vona-cli-set-api 1.1.56 → 1.1.58
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/cli/templates/create/project/cabloy-basic/boilerplate/package.original.json +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-fetch-xJMm3m7z.js → a-fetch-YzHk711M.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-form-D6lk3-QB.js → a-form-CJbNk_a4.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-interceptor-C82K1tcj.js → a-interceptor-BFdXFJSP.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-model-ChDGSkgy.js → a-model-y3NpezkT.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-openapi-VZZ_ENhD.js → a-openapi-CDuvYop1.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-router-D2eIG1nV.js → a-router-zQhwH7PI.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-routerstack-CwL8iM03.js → a-routerstack-CEvqWLO5.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-routertabs-B1bLGttt.js → a-routertabs-Cf2JP3j0.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{a-style-Btfm8xPf.js → a-style-Bptpa0Nf.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/axios-BJVU4Xrx.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/basic-captcha-DqL5nR3w.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-page-B6uWCyol.js → basic-page-q740wiYi.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{basic-pageentry-50kQPX_7.js → basic-pageentry-CMpVR28D.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/esm-DN6eCNyn.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-base-D8orfqda.js → home-base-DU4wjhii.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-layouttabs-BVLFIDzU.js → home-layouttabs-CvwmxIEl.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/home-login-DIux5ZeO.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-passport-Dfn92lVG.js → home-passport-DheDOpqk.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{home-theme-DOTbB8eW.js → home-theme-BHBqwk1a.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{index-DV8BqCgG.js → index-B1GTBAQx.js} +2 -2
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{rest-resource-CaSDngLm.js → rest-resource-BmTflwIi.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-DCW_4Dqq.js → src-BAPrk_ar.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-CwZOKDP92.js → src-BgaZ69o-2.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-B-vCAV--.js → src-BkWHz7zc.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-DuNRxldB.js → src-BlLOYh_w.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-1PV9VZGC.js → src-BrM2bug6.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-CZl_X-UE.js → src-CBtD_9AW.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-CvJSb_sx.js → src-CFccZiyy.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-CnHNoqlK.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-DpeOVuPo2.js → src-D1Vhc0WL2.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-D5b8C4sO.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-DxisCeUh.js → src-DNtm3hXd.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-BxDrnx-j.js → src-DO3078sr.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-COeVCvyL2.js → src-DX0FEULL2.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-DaUYa7Xx2.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-DlZxjFJJ.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-TecxGx4h2.js → src-DyVeg_4Y2.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-BifhVFHd.js → src-N6ApuNkM.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{src-Da2uqmNg2.js → src-fmQN8PnG2.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/tanstack-form-BQPGw0kD.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-query-BJ2E4xRz.js → tanstack-query-CrKhPNCo.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/tanstack-query-Dz8KqXkv.js +1 -0
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{tanstack-query-CgQJ7zPq.js → tanstack-query-DzPgb581.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{utils-DoTOQY6x.js → utils-BhuCEm64.js} +2 -2
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/{zova-NSyNi3VB.js → zova-CVKJc3VZ.js} +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/handler.js +194 -194
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/quasar.manifest.json +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/package.json +1 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/zovaRest/cabloy-basic-admin/package.json +4 -4
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/package.json +1 -1
- package/cli/templates/create/project/cabloy-start/boilerplate/package.original.json +1 -1
- package/package.json +2 -2
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/axios-BNphgcsF.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/basic-captcha-CPE22PfT.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/esm-CjUgZy6j.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/home-login-lwk179Q1.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-AbxT5TGi.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-Cy53ww7p2.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-GveXhR48.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/src-K73Z4m-s.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/tanstack-form-xH74mVWU.js +0 -1
- package/cli/templates/create/project/cabloy-basic/boilerplate/src/suite/cabloy-basic/modules/basic-siteadmin/assets/site/ssr-cabloyBasicAdmin-5.0.0/client/assets/tanstack-query-v7Qzr-o3.js +0 -1
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"./package.json": "./package.json"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tanstack/query-core": "^5.
|
|
16
|
-
"@tanstack/vue-query": "^5.
|
|
15
|
+
"@tanstack/query-core": "^5.100.10",
|
|
16
|
+
"@tanstack/vue-query": "^5.100.10",
|
|
17
17
|
"openapi3-ts": "^4.5.0",
|
|
18
18
|
"table-identity": "^1.1.4",
|
|
19
19
|
"typestyle": "^2.4.0",
|
|
20
20
|
"vue": "^3.5.32",
|
|
21
21
|
"zod": "^4.3.6",
|
|
22
|
-
"zova": "^5.1.
|
|
22
|
+
"zova": "^5.1.62",
|
|
23
23
|
"zova-jsx": "^1.1.37",
|
|
24
24
|
"zova-module-a-api": "^5.1.10",
|
|
25
25
|
"zova-module-a-bean": "^5.1.17",
|
|
26
26
|
"zova-module-a-behavior": "^5.1.13",
|
|
27
|
-
"zova-module-a-command": "^5.1.
|
|
27
|
+
"zova-module-a-command": "^5.1.20",
|
|
28
28
|
"zova-module-a-form": "^5.1.21",
|
|
29
29
|
"zova-module-a-icon": "^5.1.14",
|
|
30
30
|
"zova-module-a-interceptor": "^5.1.16",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli-set-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.58",
|
|
4
4
|
"gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
|
|
5
5
|
"description": "vona cli-set-api",
|
|
6
6
|
"keywords": [
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"uuid": "^11.1.0",
|
|
63
63
|
"why-is-node-running": "^3.2.2",
|
|
64
64
|
"yargs-parser": "^22.0.0",
|
|
65
|
+
"@cabloy/cli": "^3.1.10",
|
|
65
66
|
"@cabloy/extend": "^3.2.5",
|
|
66
67
|
"@cabloy/dotenv": "^1.2.5",
|
|
67
68
|
"@cabloy/module-glob": "^5.3.8",
|
|
68
69
|
"@cabloy/utils": "^2.1.17",
|
|
69
|
-
"@cabloy/cli": "^3.1.10",
|
|
70
70
|
"babel-plugin-vona-bean-module": "^1.1.6",
|
|
71
71
|
"vona-core": "^5.1.13"
|
|
72
72
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-DSSfW_98.js";import{d as n,f as r,m as o,p as s}from"./fecha-BQnQQpNY.js";import{a as i,c as a,i as c,n as l,o as u,r as f,s as d,t as p}from"./wrapAsyncGenerator-qSdF7uIP.js";function h(e,t){return function(){return e.apply(t,arguments)}}var m,y,b,g,w,E,R,O,S,v,T,A,C,N,x,_,j,P,U,F,L,B,D,k,q,I,M,z,H,$,J,W,V,K,X,G,Q,Y,Z,ee,te,ne,re,oe,se,ie,ae,ce,le,ue,fe,de,pe,he,me,ye,be,ge,we,Ee,Re=e(()=>{});function Oe(e){return null!==e&&!S(e)&&null!==e.constructor&&!S(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function Se(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer),t}function ve(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),O(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Oe(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function Te(e,t){if(Oe(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}function Ae(){const{caseless:e,skipUndefined:t}=X(this)&&this||{},n={},r=(r,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=e&&Te(n,o)||o;_(n[s])&&_(r)?n[s]=Ae(n[s],r):_(r)?n[s]=Ae({},r):O(r)?n[s]=r.slice():t&&S(r)||(n[s]=r)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ve(arguments[o],r);return n}function Ce(e){return!!(e&&A(e.append)&&"FormData"===e[g]&&e[b])}var Ne,xe,_e=e(()=>{var e,t,n,r,o,s;Re(),({toString:m}=Object.prototype),({getPrototypeOf:y}=Object),({iterator:b,toStringTag:g}=Symbol),e=Object.create(null),w=t=>{const n=m.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())},E=e=>(e=e.toLowerCase(),t=>w(t)===e),R=e=>t=>typeof t===e,({isArray:O}=Array),S=R("undefined"),v=E("ArrayBuffer"),T=R("string"),A=R("function"),C=R("number"),N=e=>null!==e&&"object"==typeof e,x=e=>!0===e||!1===e,_=e=>{if("object"!==w(e))return!1;const t=y(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||g in e||b in e)},j=e=>{if(!N(e)||Oe(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},P=E("Date"),U=E("File"),F=e=>!(!e||void 0===e.uri),L=e=>e&&void 0!==e.getParts,B=E("Blob"),D=E("FileList"),k=e=>N(e)&&A(e.pipe),q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},I=void 0!==q.FormData?q.FormData:void 0,M=e=>{let t;return e&&(I&&e instanceof I||A(e.append)&&("formdata"===(t=w(e))||"object"===t&&A(e.toString)&&"[object FormData]"===e.toString()))},z=E("URLSearchParams"),[H,$,J,W]=["ReadableStream","Request","Response","Headers"].map(E),V=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,X=e=>!S(e)&&e!==K,G=(e,t,n,{allOwnKeys:r}={})=>(ve(t,(t,r)=>{n&&A(t)?Object.defineProperty(e,r,{value:h(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Q=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),Y=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ee=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},te=e=>{if(!e)return null;if(O(e))return e;let t=e.length;if(!C(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},t="undefined"!=typeof Uint8Array&&y(Uint8Array),ne=e=>t&&e instanceof t,re=(e,t)=>{const n=(e&&e[b]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},oe=(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},se=E("HTMLFormElement"),ie=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),ae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ce=E("RegExp"),le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ve(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)},ue=e=>{le(e,(t,n)=>{if(A(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];A(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},fe=(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return O(e)?r(e):r(String(e).split(t)),n},de=()=>{},pe=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,he=e=>{const t=new Array(10),n=(e,r)=>{if(N(e)){if(t.indexOf(e)>=0)return;if(Oe(e))return e;if(!("toJSON"in e)){t[r]=e;const o=O(e)?[]:{};return ve(e,(e,t)=>{const s=n(e,r+1);!S(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},me=E("AsyncFunction"),ye=e=>e&&(N(e)||A(e))&&A(e.then)&&A(e.catch),n="function"==typeof setImmediate,r=A(K.postMessage),be=n?setImmediate:r?(o=`axios@${Math.random()}`,s=[],K.addEventListener("message",({source:e,data:t})=>{e===K&&t===o&&s.length&&s.shift()()},!1),e=>{s.push(e),K.postMessage(o,"*")}):e=>setTimeout(e),ge="undefined"!=typeof queueMicrotask?queueMicrotask.bind(K):"undefined"!=typeof process&&process.nextTick||be,we=e=>null!=e&&A(e[b]),Ee={isArray:O,isArrayBuffer:v,isBuffer:Oe,isFormData:M,isArrayBufferView:Se,isString:T,isNumber:C,isBoolean:x,isObject:N,isPlainObject:_,isEmptyObject:j,isReadableStream:H,isRequest:$,isResponse:J,isHeaders:W,isUndefined:S,isDate:P,isFile:U,isReactNativeBlob:F,isReactNative:L,isBlob:B,isRegExp:ce,isFunction:A,isStream:k,isURLSearchParams:z,isTypedArray:ne,isFileList:D,forEach:ve,merge:Ae,extend:G,trim:V,stripBOM:Q,inherits:Y,toFlatObject:Z,kindOf:w,kindOfTest:E,endsWith:ee,toArray:te,forEachEntry:re,matchAll:oe,isHTMLForm:se,hasOwnProperty:ae,hasOwnProp:ae,reduceDescriptors:le,freezeMethods:ue,toObjectSet:fe,toCamelCase:ie,noop:de,toFiniteNumber:pe,findKey:Te,global:K,isContextDefined:X,isSpecCompliantForm:Ce,toJSONObject:he,isAsyncFn:me,isThenable:ye,setImmediate:be,asap:ge,isIterable:we}}),je=e(()=>{_e(),(Ne=class AxiosError$1 extends Error{static from(e,t,n,r,o,s){const i=new AxiosError$1(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),s&&Object.assign(i,s),i}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.status}}}).ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ne.ERR_BAD_OPTION="ERR_BAD_OPTION",Ne.ECONNABORTED="ECONNABORTED",Ne.ETIMEDOUT="ETIMEDOUT",Ne.ERR_NETWORK="ERR_NETWORK",Ne.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ne.ERR_DEPRECATED="ERR_DEPRECATED",Ne.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ne.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ne.ERR_CANCELED="ERR_CANCELED",Ne.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ne.ERR_INVALID_URL="ERR_INVALID_URL"}),Pe=e(()=>{});function Ue(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function Fe(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function Le(e,t,n){return e?e.concat(t).map(function(e,t){return e=Fe(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function Be(e,t,n){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ee.isUndefined(t[e])})).metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ee.isDate(e))return e.toISOString();if(Ee.isBoolean(e))return e.toString();if(!a&&Ee.isBlob(e))throw new Ne("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(e)||Ee.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(Ee.isReactNative(t)&&Ee.isReactNativeBlob(e))return t.append(Le(o,n,s),c(e)),!1;if(e&&!o&&"object"==typeof e)if(Ee.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ee.isArray(e)&&function(e){return Ee.isArray(e)&&!e.some(Ue)}(e)||(Ee.isFileList(e)||Ee.endsWith(n,"[]"))&&(a=Ee.toArray(e)))return n=Fe(n),a.forEach(function(e,r){!Ee.isUndefined(e)&&null!==e&&t.append(!0===i?Le([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!Ue(e)||(t.append(Le(o,n,s),c(e)),!1)}const u=[],f=Object.assign(xe,{defaultVisitor:l,convertValue:c,isVisitable:Ue});if(!Ee.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ee.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ee.forEach(n,function(n,s){!0===(!(Ee.isUndefined(n)||null===n)&&o.call(t,n,Ee.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])}),u.pop()}}(e),t}var De,ke=e(()=>{_e(),je(),Pe(),xe=Ee.toFlatObject(Ee,{},null,function(e){return/^is[A-Z]/.test(e)})});function qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ie(e,t){this._pairs=[],e&&Be(e,this,t)}var Me=e(()=>{ke(),(De=Ie.prototype).append=function(e,t){this._pairs.push([e,t])},De.toString=function(e){const t=e?function(t){return e.call(this,t,qe)}:qe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")}});function ze(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||ze,o=Ee.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(i=s?s(t,o):Ee.isURLSearchParams(t)?t.toString():new Ie(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var $e,Je,We,Ve,Ke,Xe,Ge,Qe,Ye,Ze,et,tt,nt=e(()=>{_e(),Me()}),rt=e(()=>{_e(),$e=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ee.forEach(this.handlers,function(t){null!==t&&e(t)})}}}),ot=e(()=>{Je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0}}),st=e(()=>{Me(),We="undefined"!=typeof URLSearchParams?URLSearchParams:Ie}),it=e(()=>{Ve="undefined"!=typeof FormData?FormData:null}),at=e(()=>{Ke="undefined"!=typeof Blob?Blob:null}),ct=e(()=>{st(),it(),at(),Xe={isBrowser:!0,classes:{URLSearchParams:We,FormData:Ve,Blob:Ke},protocols:["http","https","file","blob","url","data"]}}),lt=t({hasBrowserEnv:()=>Ge,hasStandardBrowserEnv:()=>Ye,hasStandardBrowserWebWorkerEnv:()=>Ze,navigator:()=>Qe,origin:()=>et}),ut=e(()=>{Ge="undefined"!=typeof window&&"undefined"!=typeof document,Qe="object"==typeof navigator&&navigator||void 0,Ye=Ge&&(!Qe||["ReactNative","NativeScript","NS"].indexOf(Qe.product)<0),Ze="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,et=Ge&&window.location.href||"http://localhost"}),ft=e(()=>{ct(),ut(),r(),tt=n(n({},lt),Xe)});var dt=e(()=>{_e(),ke(),ft(),r()});function pt(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&Ee.isArray(r)?r.length:s,a?(Ee.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&Ee.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&Ee.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const n={};return Ee.forEachEntry(e,(e,r)=>{t(function(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}var ht,mt=e(()=>{_e()});var yt,bt,gt,wt,Et,Rt,Ot=e(()=>{_e(),je(),ot(),ke(),dt(),ft(),mt(),ht={transitional:Je,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,s=Ee.isObject(e);if(s&&Ee.isHTMLForm(e)&&(e=new FormData(e)),Ee.isFormData(e))return o?JSON.stringify(pt(e)):e;if(Ee.isArrayBuffer(e)||Ee.isBuffer(e)||Ee.isStream(e)||Ee.isFile(e)||Ee.isBlob(e)||Ee.isReadableStream(e))return e;if(Ee.isArrayBufferView(e))return e.buffer;if(Ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Be(e,new tt.classes.URLSearchParams,n({visitor:function(e,t,n,r){return tt.isNode&&Ee.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Be(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||o?(t.setContentType("application/json",!1),function(e,t,n){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ht.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ee.isResponse(e)||Ee.isReadableStream(e))return e;if(e&&Ee.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ne.from(o,Ne.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},Ee.forEach(["delete","get","head","post","put","patch"],e=>{ht.headers[e]={}})}),St=e(()=>{_e(),yt=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bt=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&yt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t}});function vt(e,t){if(!1!==e&&null!=e)if(Ee.isArray(e))e.forEach(e=>vt(e,t));else if(!wt(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function Tt(e){return e&&String(e).trim().toLowerCase()}function At(e){return!1===e||null==e?e:Ee.isArray(e)?e.map(At):function(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(10!==n&&13!==n)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function Ct(e,t,n,r,o){return Ee.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ee.isString(t)?Ee.isString(r)?-1!==t.indexOf(r):Ee.isRegExp(r)?r.test(t):void 0:void 0)}var Nt=e(()=>{_e(),St(),gt=Symbol("internals"),wt=e=>!/[\r\n]/.test(e),Et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),Rt=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Tt(t);if(!o)throw new Error("header name must be a non-empty string");const s=Ee.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(vt(e,t),r[s||t]=At(e))}const s=(e,t)=>Ee.forEach(e,(e,n)=>o(e,n,t));if(Ee.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Ee.isString(e)&&(e=e.trim())&&!Et(e))s(bt(e),t);else if(Ee.isObject(e)&&Ee.isIterable(e)){let n,r,o={};for(const t of e){if(!Ee.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Ee.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Tt(e)){const n=Ee.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ee.isFunction(t))return t.call(this,e,n);if(Ee.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Tt(e)){const n=Ee.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ct(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Tt(e)){const o=Ee.findKey(n,e);!o||t&&!Ct(0,n[o],o,t)||(delete n[o],r=!0)}}return Ee.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ct(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ee.forEach(this,(r,o)=>{const s=Ee.findKey(n,o);if(s)return t[s]=At(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=At(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ee.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ee.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Tt(e);t[r]||(!function(e,t){const n=Ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Ee.isArray(e)?e.forEach(r):r(e),this}},Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ee.reduceDescriptors(Rt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Ee.freezeMethods(Rt)});function xt(e,t){const n=this||ht,r=t||n,o=Rt.from(r.headers);let s=r.data;return Ee.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}var _t=e(()=>{_e(),Ot(),Nt()});function jt(e){return!(!e||!e.__CANCEL__)}var Pt,Ut=e(()=>{}),Ft=e(()=>{je(),Pt=class extends Ne{constructor(e,t,n){super(null==e?"canceled":e,Ne.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}});function Lt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ne("Request failed with status code "+n.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Bt=e(()=>{je()});var Dt=e(()=>{});var kt=e(()=>{});var qt,It,Mt,zt,Ht,$t=e(()=>{}),Jt=e(()=>{kt(),$t(),_e(),qt=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},It=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Mt=e=>(...t)=>Ee.asap(()=>e(...t))}),Wt=e(()=>{ft(),zt=tt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0}),Vt=e(()=>{_e(),ft(),Ht=tt.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Ee.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Ee.isString(r)&&a.push(`path=${r}`),Ee.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),Ee.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}}});var Kt=e(()=>{});var Xt=e(()=>{});function Gt(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Qt,Yt=e(()=>{Kt(),Xt()});function Zt(e,t){t=t||{};const r={};function o(e,t,n,r){return Ee.isPlainObject(e)&&Ee.isPlainObject(t)?Ee.merge.call({caseless:r},e,t):Ee.isPlainObject(t)?Ee.merge({},t):Ee.isArray(t)?t.slice():t}function s(e,t,n,r){return Ee.isUndefined(t)?Ee.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function i(e,t){if(!Ee.isUndefined(t))return o(void 0,t)}function a(e,t){return Ee.isUndefined(t)?Ee.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function c(n,r,s){return s in t?o(n,r):s in e?o(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t,n)=>s(Qt(e),Qt(t),0,!0)};return Ee.forEach(Object.keys(n(n({},e),t)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const o=Ee.hasOwnProp(l,n)?l[n]:s,i=o(e[n],t[n],n);Ee.isUndefined(i)&&o!==c||(r[n]=i)}),r}var en,tn,nn,rn,on,sn,an,cn,ln,un,fn,dn,pn,hn,mn,yn,bn,gn,wn,En,Rn=e(()=>{_e(),Nt(),r(),Qt=e=>e instanceof Rt?n({},e):e}),On=e(()=>{ft(),_e(),Wt(),Vt(),Yt(),Rn(),Nt(),nt(),en=e=>{const t=Zt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Rt.from(i),t.url=He(Gt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Ee.isFormData(n))if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Ee.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(tt.hasStandardBrowserEnv&&(r&&Ee.isFunction(r)&&(r=r(t)),r||!1!==r&&zt(t.url))){const e=o&&s&&Ht.read(s);e&&i.set(o,e)}return t}}),Sn=e(()=>{_e(),Bt(),ot(),je(),Ft(),Dt(),ft(),Nt(),Jt(),On(),tn="undefined"!=typeof XMLHttpRequest,nn=tn&&function(e){return new Promise(function(t,n){const r=en(e);let o=r.data;const s=Rt.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=Rt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Lt(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new Ne("Request aborted",Ne.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new Ne(t&&t.message?t.message:"Network Error",Ne.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Je;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ne(t,o.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&Ee.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Ee.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=qt(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=qt(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Pt(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===tt.protocols.indexOf(b)?n(new Ne("Unsupported protocol "+b+":",Ne.ERR_BAD_REQUEST,e)):m.send(o||null)})}}),vn=e(()=>{Ft(),je(),_e(),rn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ne?t:new Pt(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new Ne(`timeout of ${t}ms exceeded`,Ne.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>Ee.asap(i),a}}}),Tn=e(()=>{a(),u(),c(),l(),o(),on=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},sn=function(){var e=p(function*(e,t){var n,r=!1,o=!1;try{for(var s,a=d(an(e));r=!(s=yield i(a.next())).done;r=!1){const e=s.value;yield*f(d(on(e,t)))}}catch(c){o=!0,n=c}finally{try{r&&null!=a.return&&(yield i(a.return()))}finally{if(o)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),an=function(){var e=p(function*(e){if(e[Symbol.asyncIterator])return void(yield*f(d(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield i(t.read());if(e)break;yield n}}finally{yield i(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),cn=(e,t,n,r)=>{const o=sn(e,t);let i,a=0,c=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({pull:e=>s(function*(){try{const{done:t,value:r}=yield o.next();if(t)return c(),void e.close();let s=r.byteLength;n&&n(a+=s),e.enqueue(new Uint8Array(r))}catch(t){throw c(t),t}})(),cancel:e=>(c(e),o.return())},{highWaterMark:2})}}),An=e(()=>{ft(),_e(),je(),vn(),Tn(),Nt(),Jt(),On(),Bt(),o(),r(),({isFunction:ln}=Ee),un=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ee.global),({ReadableStream:fn,TextEncoder:dn}=Ee.global),pn=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},hn=e=>{e=Ee.merge.call({skipUndefined:!0},un,e);const{fetch:t,Request:r,Response:o}=e,i=t?ln(t):"function"==typeof fetch,a=ln(r),c=ln(o);if(!i)return!1;const l=i&&ln(fn),u=i&&("function"==typeof dn?(d=new dn,e=>d.encode(e)):(f=s(function*(e){return new Uint8Array(yield new r(e).arrayBuffer())}),function(e){return f.apply(this,arguments)}));var f,d;const p=a&&l&&pn(()=>{let e=!1;const t=new fn,n=new r(tt.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!n}),h=c&&l&&pn(()=>Ee.isReadableStream(new o("").body)),m={stream:h&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ne(`Response type '${e}' is not supported`,Ne.ERR_NOT_SUPPORT,n)})});const y=(b=s(function*(e){return null==e?0:Ee.isBlob(e)?e.size:Ee.isSpecCompliantForm(e)?(yield new r(tt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:Ee.isArrayBufferView(e)||Ee.isArrayBuffer(e)?e.byteLength:(Ee.isURLSearchParams(e)&&(e+=""),Ee.isString(e)?(yield u(e)).byteLength:void 0)}),function(e){return b.apply(this,arguments)});var b;const g=(w=s(function*(e,t){const n=Ee.toFiniteNumber(e.getContentLength());return null==n?y(t):n}),function(e,t){return w.apply(this,arguments)});var w,E;return E=s(function*(e){let{url:s,method:i,data:c,signal:l,cancelToken:u,timeout:f,onDownloadProgress:d,onUploadProgress:y,responseType:b,headers:w,withCredentials:E="same-origin",fetchOptions:R}=en(e),O=t||fetch;b=b?(b+"").toLowerCase():"text";let S=rn([l,u&&u.toAbortSignal()],f),v=null;const T=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let A;try{if(y&&p&&"get"!==i&&"head"!==i&&0!==(A=yield g(w,c))){let e,t=new r(s,{method:"POST",body:c,duplex:"half"});if(Ee.isFormData(c)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const[e,n]=It(A,qt(Mt(y)));c=cn(t.body,65536,e,n)}}Ee.isString(E)||(E=E?"include":"omit");const t=a&&"credentials"in r.prototype,l=n(n({},R),{},{signal:S,method:i.toUpperCase(),headers:w.normalize().toJSON(),body:c,duplex:"half",credentials:t?E:void 0});v=a&&new r(s,l);let u=yield a?O(v,R):O(s,l);const f=h&&("stream"===b||"response"===b);if(h&&(d||f&&T)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=Ee.toFiniteNumber(u.headers.get("content-length")),[n,r]=d&&It(t,qt(Mt(d),!0))||[];u=new o(cn(u.body,65536,n,()=>{r&&r(),T&&T()}),e)}b=b||"text";let C=yield m[Ee.findKey(m,b)||"text"](u,e);return!f&&T&&T(),yield new Promise((t,n)=>{Lt(t,n,{data:C,headers:Rt.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:v})})}catch(C){if(T&&T(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,e,v,C&&C.response),{cause:C.cause||C});throw Ne.from(C,C&&C.code,e,v,C&&C.response)}}),function(e){return E.apply(this,arguments)}},mn=new Map,(yn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=mn;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:hn(t)),l=a;return a})()});function Cn(e,t){e=Ee.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!wn(r)&&(o=bn[(n=String(r)).toLowerCase()],void 0===o))throw new Ne(`Unknown adapter '${n}'`);if(o&&(Ee.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ne("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(gn).join("\n"):" "+gn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o}var Nn=e(()=>{_e(),Pe(),Sn(),An(),je(),bn={http:null,xhr:nn,fetch:{get:yn}},Ee.forEach(bn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}),gn=e=>`- ${e}`,wn=e=>Ee.isFunction(e)||null===e||!1===e,En={getAdapter:Cn,adapters:bn}});function xn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pt(null,e)}function _n(e){return xn(e),e.headers=Rt.from(e.headers),e.data=xt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),En.getAdapter(e.adapter||ht.adapter,e)(e).then(function(t){return xn(e),t.data=xt.call(e,e.transformResponse,t),t.headers=Rt.from(t.headers),t},function(t){return jt(t)||(xn(e),t&&t.response&&(t.response.data=xt.call(e,e.transformResponse,t.response),t.response.headers=Rt.from(t.response.headers))),Promise.reject(t)})}var jn,Pn,Un,Fn,Ln=e(()=>{_t(),Ut(),Ot(),Ft(),Nt(),Nn()}),Bn=e(()=>{jn="1.15.0"});function Dn(e,t,n){if("object"!=typeof e)throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Ne("option "+s+" must be "+n,Ne.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ne("Unknown option "+s,Ne.ERR_BAD_OPTION)}}var kn,qn,In,Mn=e(()=>{Bn(),je(),Pn={},["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}),Un={},Pn.transitional=function(e,t,n){function r(e,t){return"[Axios v"+jn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new Ne(r(o," has been removed"+(t?" in "+t:"")),Ne.ERR_DEPRECATED);return t&&!Un[o]&&(Un[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},Pn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)},Fn={assertOptions:Dn,validators:Pn}}),zn=e(()=>{_e(),nt(),rt(),Ln(),Rn(),Yt(),Mn(),Nt(),ot(),o(),kn=Fn.validators,qn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $e,response:new $e}}request(e,t){var n=this;return s(function*(){try{return yield n._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(r.stack){if(t){const e=t.indexOf("\n"),n=-1===e?-1:t.indexOf("\n",e+1),o=-1===n?"":t.slice(n+1);String(r.stack).endsWith(o)||(r.stack+="\n"+t)}}else r.stack=t}catch(o){}}throw r}})()}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Zt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Fn.assertOptions(n,{silentJSONParsing:kn.transitional(kn.boolean),forcedJSONParsing:kn.transitional(kn.boolean),clarifyTimeoutError:kn.transitional(kn.boolean),legacyInterceptorReqResOrdering:kn.transitional(kn.boolean)},!1),null!=r&&(Ee.isFunction(r)?t.paramsSerializer={serialize:r}:Fn.assertOptions(r,{encode:kn.function,serialize:kn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Fn.assertOptions(t,{baseUrl:kn.spelling("baseURL"),withXsrfToken:kn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Ee.merge(o.common,o[t.method]);o&&Ee.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Rt.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||Je;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!a){const e=[_n.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{l=_n.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return He(Gt((e=Zt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}},Ee.forEach(["delete","get","head","options"],function(e){qn.prototype[e]=function(t,n){return this.request(Zt(n||{},{method:e,url:t,data:(n||{}).data}))}}),Ee.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Zt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}qn.prototype[e]=t(),qn.prototype[e+"Form"]=t(!0)})}),Hn=e(()=>{Ft(),In=class CancelToken$1{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Pt(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new CancelToken$1(function(t){e=t}),cancel:e}}}});function $n(e){return function(t){return e.apply(null,t)}}var Jn=e(()=>{});function Wn(e){return Ee.isObject(e)&&!0===e.isAxiosError}var Vn,Kn,Xn=e(()=>{_e()}),Gn=e(()=>{Vn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526},Object.entries(Vn).forEach(([e,t])=>{Vn[t]=e})});function Qn(e){const t=new qn(e),n=h(qn.prototype.request,t);return Ee.extend(n,qn.prototype,t,{allOwnKeys:!0}),Ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Qn(Zt(e,t))},n}var Yn,Zn,er,tr,nr,rr,or,sr,ir,ar,cr,lr,ur,fr,dr,pr,hr=e(()=>{_e(),Re(),zn(),Rn(),Ot(),mt(),Ft(),Hn(),Ut(),Bn(),ke(),je(),Jn(),Xn(),Nt(),Nn(),Gn(),(Kn=Qn(ht)).Axios=qn,Kn.CanceledError=Pt,Kn.CancelToken=In,Kn.isCancel=jt,Kn.VERSION=jn,Kn.toFormData=Be,Kn.AxiosError=Ne,Kn.Cancel=Kn.CanceledError,Kn.all=function(e){return Promise.all(e)},Kn.spread=$n,Kn.isAxiosError=Wn,Kn.mergeConfig=Zt,Kn.AxiosHeaders=Rt,Kn.formToJSON=e=>pt(Ee.isHTMLForm(e)?new FormData(e):e),Kn.getAdapter=En.getAdapter,Kn.HttpStatusCode=Vn,Kn.default=Kn}),mr=e(()=>{hr(),({Axios:Yn,AxiosError:Zn,CanceledError:er,isCancel:tr,CancelToken:nr,VERSION:rr,all:or,Cancel:sr,isAxiosError:ir,spread:ar,toFormData:cr,AxiosHeaders:lr,HttpStatusCode:ur,formToJSON:fr,getAdapter:dr,mergeConfig:pr}=Kn)});export{mr as n,Kn as r,Yn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as a}from"./rolldown-runtime-DSSfW_98.js";import{d as t,l as e,r as i,v as r}from"./vue-B6iEDFba.js";import{n as o}from"./vue-CVoE89_5.js";import{d as s,f as n,m as c,p as l}from"./fecha-BQnQQpNY.js";import{b as p,c as u,k as h,l as m,m as d,o as f,p as v,u as b,w as D,x as C}from"./zova-Dxk4Lwim.js";import{t as $}from"./zova-BLZKBFDw.js";import{h as F,o as g,t as j}from"./a-bean-in5SzpIT.js";var y,z,k,S=a(()=>{y={InputCaptcha:"Please input captcha"}}),x=a(()=>{z={InputCaptcha:"请输入验证码"}});function w(a,...t){const e=f(),i=`basic-captcha::${a}`;return C(()=>e.meta.text(i,...t))}var _,I,O,P,E,T,V,A,B,M,N=a(()=>{$(),S(),x(),k={"en-us":y,"zh-cn":z}});var R,q,G,H,J,K,L=a(()=>{var a,t,u,m,d,f;o(),c(),n(),$(),j(),B=v("a-form","formField"),_=F(),I=h({module:"basic-captcha"}),O=D({injectionScope:"host",beanFullName:"a-form.controller.form"}),P=Reflect.metadata("design:type","undefined"==typeof ControllerForm?Object:ControllerForm),M=_(E=I((A=class ControllerFormFieldCaptcha extends p{constructor(...a){var t,e,i,r;super(...a),this.eventFormSubmission=void 0,this.captchaData=void 0,t=this,e="$$form",r=this,(i=V)&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}__init__(){var a=this;return l(function*(){a.eventFormSubmission=a.app.meta.event.on("a-form:formSubmission",(t,e)=>(t.form.formId===a.$$form.form.formId&&t.error&&a.refreshCaptchaData(),e())),a.createCaptchaData()})()}__dispose__(){this.eventFormSubmission&&this.eventFormSubmission()}get captchaScene(){return this.$props.options.scene}createCaptchaData(){var a=this;return l(function*(){a.captchaData=yield a.$api.captcha.create({scene:a.captchaScene},{authToken:!1}),a.setFieldCaptchaData()})()}refreshCaptchaData(){var a=this;return l(function*(){a.captchaData=yield a.$api.captcha.refresh({id:a.captchaData.id,scene:a.captchaScene},{authToken:!1}),a.setFieldCaptchaData()})()}setFieldCaptchaData(){var a,t;this.$$form.setFieldValue(this.$props.name,{id:null===(a=this.captchaData)||void 0===a?void 0:a.id,token:null===(t=this.captchaData)||void 0===t?void 0:t.token})}render(){return e(i,null,[e(B,r(this.$props,{slotDefault:({props:a},t)=>{var i;return e("input",s(s({},a),{},{type:"text",class:"grow input",placeholder:this.scope.locale.InputCaptcha(),value:null===(i=this.captchaData)||void 0===i?void 0:i.token,onInput:a=>{var e;const i=a.target.value;this.captchaData&&(this.captchaData.token=i),t.setValue({id:null===(e=this.captchaData)||void 0===e?void 0:e.id,token:i})}}),null)}}),null),e("label",{class:"flex items-center gap-2 w-full",style:{height:"50px"}},[e(b,null,{default:()=>{var a;return[(null===(a=this.captchaData)||void 0===a?void 0:a.payload)&&e("img",{class:"cursor-pointer",src:this.captchaData.payload,onClick:()=>{this.refreshCaptchaData()}},null)]}})])])}},A.$propsDefault={options:{scene:"captcha-simple:simple"}},A.$componentOptions={inheritAttrs:!1,deepExtendDefault:!0},a=(T=A).prototype,t="$$form",u=[O,P],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},f={},Object.keys(m).forEach(function(a){f[a]=m[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=u.slice().reverse().reduce(function(e,i){return i(a,t,e)||e},f),d&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(d):void 0,f.initializer=void 0),V=void 0===f.initializer?(Object.defineProperty(a,t,f),null):f,E=T))||E)||E}),Q=a(()=>{o(),$(),L(),R=t(a=>(m(M,void 0,void 0),()=>{}),u(M.$componentOptions))});function U(a){return`basic-captcha::${a}`}var W=a(()=>{$(),L(),Q(),Q(),j(),J={formFieldCaptcha:R},q=g(),G=h({module:"basic-captcha"}),K=q(H=G(H=class ScopeModuleBasicCaptcha extends d{})||H)||H}),X=a(()=>{N(),W()});export{R as a,k as c,U as i,K as n,M as o,J as r,w as s,X as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as t}from"./rolldown-runtime-DSSfW_98.js";import{b as e,h as i,m as s}from"./vue-CfvGewIg.js";import{k as o}from"./vue-B6iEDFba.js";import{C as n,D as r,O as a,S as l,_ as u,d,f as c,i as h,m as v,p as f,r as m,v as p,w as g,x as b}from"./fecha-BQnQQpNY.js";import{a as M}from"./extends-CGQ1Wj9A.js";var y,S,V,A,E,F,w,L,T,I,k,D,O=t(()=>{y=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(y||{})});function j(t,e,i){var s,o,n;const r="object"==typeof t,a=r?t:void 0;return{next:null===(s=r?t.next:t)||void 0===s?void 0:s.bind(a),error:null===(o=r?t.error:e)||void 0===o?void 0:o.bind(a),complete:null===(n=r?t.complete:i)||void 0===n?void 0:n.bind(a)}}function B(t){try{++D,t()}finally{--D||_()}}function C(t){const e=t.depsTail;let i=void 0!==e?e.nextDep:t.deps;for(;void 0!==i;)i=E(i,t)}function _(){if(!(D>0)){for(;T<I;){const t=S[T];S[T++]=void 0,t.notify()}T=0,I=0}}function x(t,e){const i="function"==typeof t,s=t,o={_snapshot:i?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?y.None:y.Mutable,get:()=>(void 0!==k&&A(o,k,V),o._snapshot),subscribe(t){const e=j(t),i={current:!1},s=function(t){const e=()=>{const e=k;k=i,++V,i.depsTail=void 0,i.flags=y.Watching|y.RecursedCheck;try{return t()}finally{k=e,i.flags&=~y.RecursedCheck,C(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:y.Watching|y.RecursedCheck,notify(){const t=this.flags;t&y.Dirty||t&y.Pending&&w(this.deps,this)?e():this.flags=y.Watching},stop(){this.flags=y.None,this.depsTail=void 0,C(this)}};return e(),i}(()=>{var t;(o.get(),i.current)?null===(t=e.next)||void 0===t||t.call(e,o._snapshot):i.current=!0});return{unsubscribe:()=>{s.stop()}}},_update(t){var n;const r=k,a=null!==(n=null==e?void 0:e.compare)&&void 0!==n?n:Object.is;if(i)k=o,++V,o.depsTail=void 0;else if(void 0===t)return!1;i&&(o.flags=y.Mutable|y.RecursedCheck);try{const e=o._snapshot,n="function"==typeof t?t(e):void 0===t&&i?s(e):t;return(void 0===e||!a(e,n))&&(o._snapshot=n,!0)}finally{k=r,i&&(o.flags&=~y.RecursedCheck),C(o)}}};return i?(o.flags=y.Mutable|y.Dirty,o.get=function(){const t=o.flags;if(t&y.Dirty||t&y.Pending&&w(o.deps,o)){if(o._update()){const t=o.subs;void 0!==t&&L(t)}}else t&y.Pending&&(o.flags=t&~y.Pending);return void 0!==k&&A(o,k,V),o._snapshot}):o.set=function(t){if(o._update(t)){const t=o.subs;void 0!==t&&(F(t),L(t),_())}},o}var P,$,W=t(()=>{O(),S=[],V=0,({link:A,unlink:E,propagate:F,checkDirty:w,shallowPropagate:L}=function({update:t,notify:e,unwatched:i}){return{link:function(t,e,i){const s=e.depsTail;if(void 0!==s&&s.dep===t)return;const o=void 0!==s?s.nextDep:e.deps;if(void 0!==o&&o.dep===t)return o.version=i,void(e.depsTail=o);const n=t.subsTail;if(void 0!==n&&n.version===i&&n.sub===e)return;const r=e.depsTail=t.subsTail={version:i,dep:t,sub:e,prevDep:s,nextDep:o,prevSub:n,nextSub:void 0};void 0!==o&&(o.prevDep=r),void 0!==s?s.nextDep=r:e.deps=r,void 0!==n?n.nextSub=r:t.subs=r},unlink:function(t,e=t.sub){const s=t.dep,o=t.prevDep,n=t.nextDep,r=t.nextSub,a=t.prevSub;return void 0!==n?n.prevDep=o:e.depsTail=o,void 0!==o?o.nextDep=n:e.deps=n,void 0!==r?r.prevSub=a:s.subsTail=a,void 0!==a?a.nextSub=r:void 0===(s.subs=r)&&i(s),n},propagate:function(t){let i,s=t.nextSub;t:for(;;){const n=t.sub;let r=n.flags;if(60&r?12&r?4&r?48&r||!o(t,n)?r=0:(n.flags=40|r,r&=1):n.flags=-9&r|32:r=0:n.flags=32|r,2&r&&e(n),1&r){const e=n.subs;if(void 0!==e){const o=(t=e).nextSub;void 0!==o&&(i={value:s,prev:i},s=o);continue}}if(void 0===(t=s)){for(;void 0!==i;)if(t=i.value,i=i.prev,void 0!==t){s=t.nextSub;continue t}break}s=t.nextSub}},checkDirty:function(e,i){let o,n=0,r=!1;t:for(;;){const a=e.dep,l=a.flags;if(16&i.flags)r=!0;else if(17&~l){if(!(33&~l)){void 0===e.nextSub&&void 0===e.prevSub||(o={value:e,prev:o}),e=a.deps,i=a,++n;continue}}else if(t(a)){const t=a.subs;void 0!==t.nextSub&&s(t),r=!0}if(!r){const t=e.nextDep;if(void 0!==t){e=t;continue}}for(;n--;){const n=i.subs,a=void 0!==n.nextSub;if(a?(e=o.value,o=o.prev):e=n,r){if(t(i)){a&&s(n),i=e.sub;continue}r=!1}else i.flags&=-33;i=e.sub;const l=e.nextDep;if(void 0!==l){e=l;continue t}}return r}},shallowPropagate:s};function s(t){do{const i=t.sub,s=i.flags;32==(48&s)&&(i.flags=16|s,2==(6&s)&&e(i))}while(void 0!==(t=t.nextSub))}function o(t,e){let i=e.depsTail;for(;void 0!==i;){if(i===t)return!0;i=i.prevDep}return!1}}({update:t=>t._update(),notify(t){S[I++]=t,t.flags&=~y.Watching},unwatched(t){void 0!==t.depsTail&&(t.depsTail=void 0,t.flags=y.Mutable|y.Dirty,C(t))}})),T=0,I=0,D=0});function R(t){return"function"==typeof t?new $(t):new P(t)}var N,z=t(()=>{W(),P=class{constructor(t){this.atom=x(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(j(t))}},$=class{constructor(t){this.atom=x(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(j(t))}}}),U=t(()=>{W(),z()});var q,G,K,H,J,Q,X,Y,Z,tt,et,it,st,ot,nt,rt,at,lt,ut,dt,ct,ht,vt,ft,mt,pt,gt,bt,Mt,yt,St,Vt,At=t(()=>{N=class{constructor(t,e){this.fn=t,this.options=e,this.lastExecutionTime=0,this.isPending=!1,this.maybeExecute=(...t)=>{const e=Date.now()-this.lastExecutionTime;if(this.options.leading&&e>=this.options.wait)this.execute(...t);else if(this.lastArgs=t,!this.timeoutId&&this.options.trailing){const t=this.options.wait-e;this.isPending=!0,this.timeoutId=setTimeout(()=>{void 0!==this.lastArgs&&this.execute(...this.lastArgs)},t)}},this.execute=(...t)=>{var e,i;this.fn(...t),null===(e=(i=this.options).onExecute)||void 0===e||e.call(i,t,this),this.lastExecutionTime=Date.now(),this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.flush=()=>{this.isPending&&this.lastArgs&&this.execute(...this.lastArgs)},this.cancel=()=>{this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.clearTimeout=()=>{this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)},void 0===this.options.leading&&void 0===this.options.trailing&&(this.options.leading=!0,this.options.trailing=!0)}}}),Et=t(()=>{At()}),Ft=t(()=>{a(),g(),l(),q=new WeakMap,G=new WeakMap,K=new WeakMap,H=new WeakMap,J=new WeakMap,Q=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,tt=new WeakMap,et=new WeakMap,it=new WeakMap,st=new WeakMap,ot=new WeakMap,nt=new WeakMap,rt=new WeakMap,at=class{constructor({pluginId:t,debug:e=!1,enabled:i=!0,reconnectEveryMs:s=300}){r(this,q,!0),r(this,G,void 0),r(this,K,void 0),r(this,H,void 0),r(this,J,void 0),r(this,Q,void 0),r(this,X,void 0),r(this,Y,void 0),r(this,Z,0),r(this,tt,5),r(this,et,!1),r(this,it,!1),r(this,st,null),r(this,ot,()=>{this.debugLog("Connected to event bus"),n(Q,this,!0),n(et,this,!1),this.debugLog("Emitting queued events",b(J,this)),b(J,this).forEach(t=>this.emitEventToBus(t)),n(J,this,[]),this.stopConnectLoop(),b(K,this).call(this).removeEventListener("tanstack-connect-success",b(ot,this))}),r(this,nt,()=>{var t;if(b(Z,this)<b(tt,this))return n(Z,this,(t=b(Z,this),++t)),void this.dispatchCustomEvent("tanstack-connect",{});b(K,this).call(this).removeEventListener("tanstack-connect",b(nt,this)),n(it,this,!0),this.debugLog("Max retries reached, giving up on connection"),this.stopConnectLoop()}),r(this,rt,()=>{b(et,this)||(n(et,this,!0),b(K,this).call(this).addEventListener("tanstack-connect-success",b(ot,this)),b(nt,this).call(this))}),n(G,this,t),n(q,this,i),n(K,this,this.getGlobalTarget),n(H,this,e),this.debugLog(" Initializing event subscription for plugin",b(G,this)),n(J,this,[]),n(Q,this,!1),n(it,this,!1),n(X,this,null),n(Y,this,s)}startConnectLoop(){null!==b(X,this)||b(Q,this)||(this.debugLog(`Starting connect loop (every ${b(Y,this)}ms)`),n(X,this,setInterval(b(nt,this),b(Y,this))))}stopConnectLoop(){n(et,this,!1),null!==b(X,this)&&(clearInterval(b(X,this)),n(X,this,null),n(J,this,[]),this.debugLog("Stopped connect loop"))}debugLog(...t){b(H,this)&&console.log(`🌴 [tanstack-devtools:${b(G,this)}-plugin]`,...t)}getGlobalTarget(){if("undefined"!=typeof globalThis&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog("Using global event target"),globalThis.__TANSTACK_EVENT_TARGET__;if("undefined"!=typeof window&&void 0!==window.addEventListener)return this.debugLog("Using window as event target"),window;const t="undefined"!=typeof EventTarget?new EventTarget:void 0;return void 0===t||void 0===t.addEventListener?(this.debugLog("No event mechanism available, running in non-web environment"),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog("Using new EventTarget as fallback"),t)}getPluginId(){return b(G,this)}dispatchCustomEventShim(t,e){try{const i=new Event(t,{detail:e});b(K,this).call(this).dispatchEvent(i)}catch(i){this.debugLog("Failed to dispatch shim event")}}dispatchCustomEvent(t,e){try{b(K,this).call(this).dispatchEvent(new CustomEvent(t,{detail:e}))}catch(i){this.dispatchCustomEventShim(t,e)}}emitEventToBus(t){this.debugLog("Emitting event to client bus",t),this.dispatchCustomEvent("tanstack-dispatch-event",t)}createEventPayload(t,e){return{type:`${b(G,this)}:${t}`,payload:e,pluginId:b(G,this)}}emit(t,e){if(b(q,this)){if(b(st,this)&&(this.debugLog("Emitting event to internal event target",t,e),b(st,this).dispatchEvent(new CustomEvent(`${b(G,this)}:${t}`,{detail:this.createEventPayload(t,e)}))),!b(it,this))return b(Q,this)?this.emitEventToBus(this.createEventPayload(t,e)):(this.debugLog("Bus not available, will be pushed as soon as connected"),b(J,this).push(this.createEventPayload(t,e)),void("undefined"==typeof CustomEvent||b(et,this)||(b(rt,this).call(this),this.startConnectLoop())));this.debugLog("Previously failed to connect, not emitting to bus")}else this.debugLog("Event bus client is disabled, not emitting event",t,e)}on(t,e,i){var s;const o=null!==(s=null==i?void 0:i.withEventTarget)&&void 0!==s&&s,r=`${b(G,this)}:${t}`;if(o&&(b(st,this)||n(st,this,new EventTarget),b(st,this).addEventListener(r,t=>{e(t.detail)})),!b(q,this))return this.debugLog("Event bus client is disabled, not registering event",r),()=>{};const a=t=>{this.debugLog("Received event from bus",t.detail),e(t.detail)};return b(K,this).call(this).addEventListener(r,a),this.debugLog("Registered event to bus",r),()=>{var t;o&&(null===(t=b(st,this))||void 0===t||t.removeEventListener(r,a));b(K,this).call(this).removeEventListener(r,a)}}onAll(t){if(!b(q,this))return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const e=e=>{const i=e.detail;t(i)};return b(K,this).call(this).addEventListener("tanstack-devtools-global",e),()=>b(K,this).call(this).removeEventListener("tanstack-devtools-global",e)}onAllPluginEvents(t){if(!b(q,this))return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const e=e=>{const i=e.detail;b(G,this)&&i.pluginId!==b(G,this)||t(i)};return b(K,this).call(this).addEventListener("tanstack-devtools-global",e),()=>b(K,this).call(this).removeEventListener("tanstack-devtools-global",e)}}}),wt=t(()=>{Ft()}),Lt=t(()=>{wt(),lt=new class extends at{constructor(){super({pluginId:"form-devtools",reconnectEveryMs:1e3})}}});function Tt(t,e){return"function"==typeof t?t(e):t}function It(t,e){return Dt(e).reduce((t,e)=>null===t?null:void 0!==t?t[e]:void 0,t)}function kt(t,e,i){const s=Dt(e);return function t(e){if(!s.length)return Tt(i,e);const o=s.shift();if("string"==typeof o||"number"==typeof o&&!Array.isArray(e))return"object"==typeof e?(null===e&&(e={}),d(d({},e),{},{[o]:t(e[o])})):{[o]:t()};if(Array.isArray(e)&&"number"==typeof o){const i=e.slice(0,o);return[...i.length?i:new Array(o),t(e[o]),...e.slice(o+1)]}return[...new Array(o),t()]}(t)}function Dt(t){if(Array.isArray(t))return[...t];if("string"!=typeof t)throw new Error("Path must be a string.");return t.replace(/(^\[)|]/gm,"").replace(/\[/g,".").replace(ut,mt).replace(dt,`.${mt}.`).replace(ct,`${mt}.`).replace(ht,`.${mt}`).replace(vt,".").split(".").map(t=>{if(t.startsWith(ft)){const e=t.substring(7),i=parseInt(e,10);return String(i)===e?i:e}return t})}function Ot(t){return!(Array.isArray(t)&&0===t.length)}function jt(t,e){return e.validationLogic({form:e.form,validators:e.validators,event:{type:t,async:!1},runValidation:t=>t.validators.filter(Boolean).map(t=>({cause:t.cause,validate:t.fn}))})}function Bt(t,e){const{asyncDebounceMs:i}=e,{onBlurAsyncDebounceMs:s,onChangeAsyncDebounceMs:o,onDynamicAsyncDebounceMs:n}=e.validators||{},r=null!=i?i:0;return e.validationLogic({form:e.form,validators:e.validators,event:{type:t,async:!0},runValidation:e=>e.validators.filter(Boolean).map(e=>{const i=(null==e?void 0:e.cause)||t;let a=r;switch(i){case"change":a=null!=o?o:r;break;case"blur":a=null!=s?s:r;break;case"dynamic":a=null!=n?n:r;break;case"submit":a=0}return"submit"===t&&(a=0),{cause:i,validate:e.fn,debounceMs:a}})})}function Ct(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[i,s]of t)if(!e.has(i)||!Object.is(s,e.get(i)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0}const i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!1;for(const o of i)if(!s.includes(o)||!Ct(t[o],e[o]))return!1;return!0}function _t(t,e){return null==t?e:d(d({},t),e)}var xt,Pt,$t,Wt,Rt,Nt=t(()=>{for((Et(),Lt(),c(),u(),h(),ut=/^(\d+)$/gm,dt=/\.(\d+)(?=\.)/gm,ct=/^(\d+)\./gm,ht=/\.(\d+$)/gm,vt=/\.{2,}/gm,mt=`${ft="__int__"}$1`,pt=t=>!!t&&"object"==typeof t&&"fields"in t,gt=({newFormValidatorError:t,isPreviousErrorFromFormValidator:e,previousErrorValue:i})=>t?{newErrorValue:t,newSource:"form"}:e?{newErrorValue:void 0,newSource:void 0}:i?{newErrorValue:i,newSource:"field"}:{newErrorValue:void 0,newSource:void 0},bt=({formLevelError:t,fieldLevelError:e})=>e?{newErrorValue:e,newSource:"field"}:t?{newErrorValue:t,newSource:"form"}:{newErrorValue:void 0,newSource:void 0},Mt=256,yt=[]);Mt--;)yt[Mt]=(Mt+256).toString(16).substring(1);Vt=new N(t=>lt.emit("form-state",{id:t.formId,state:t.store.state}),{wait:300}).maybeExecute}),zt=t(()=>{c(),xt=({mode:t="submit",modeAfterSubmission:e="change"}={})=>i=>{var s;if(0===Object.keys(null!==(s=i.validators)&&void 0!==s?s:{}).length)return i.runValidation({validators:[],form:i.form});const o={fn:i.event.async?i.validators.onDynamicAsync:i.validators.onDynamic,cause:"dynamic"},n=[];[0===i.form.state.submissionAttempts?t:e,"submit"].includes(i.event.type)&&n.push(o);let r=[];return Pt(d(d({},i),{},{runValidation:t=>{r=t.validators}})),0===n.length?i.runValidation({validators:r,form:i.form}):i.runValidation({validators:[...r,...n],form:i.form})},Pt=t=>{if(!t.validators)return t.runValidation({validators:[],form:t.form});const e=t.event.async,i=e?void 0:{fn:t.validators.onMount,cause:"mount"},s={fn:e?t.validators.onChangeAsync:t.validators.onChange,cause:"change"},o={fn:e?t.validators.onBlurAsync:t.validators.onBlur,cause:"blur"},n={fn:e?t.validators.onSubmitAsync:t.validators.onSubmit,cause:"submit"},r=e?void 0:{fn:()=>{},cause:"server"};switch(t.event.type){case"mount":return t.runValidation({validators:[i],form:t.form});case"submit":return t.runValidation({validators:[s,o,n,r],form:t.form});case"server":return t.runValidation({validators:[],form:t.form});case"blur":return t.runValidation({validators:[o,r],form:t.form});case"change":return t.runValidation({validators:[s,r],form:t.form});default:throw new Error(`Unknown validation event type: ${t.event.type}`)}}});var Ut,qt=t(()=>{v(),$t=(t,e)=>{const i=function(t,e){const i=new Map;for(const n of t){var s,o;const t=null!==(s=n.path)&&void 0!==s?s:[];let r=e,a="";for(let e=0;e<t.length;e++){const i=t[e];if(void 0===i)continue;const s="object"==typeof i?i.key:i,o=Number(s);Array.isArray(r)&&!Number.isNaN(o)?a+=`[${o}]`:a+=(e>0?".":"")+String(s),r="object"==typeof r&&null!==r?r[s]:void 0}i.set(a,(null!==(o=i.get(a))&&void 0!==o?o:[]).concat(n))}return Object.fromEntries(i)}(t,e);return{form:i,fields:i}},Wt={validate({value:t,validationSource:e},i){const s=i["~standard"].validate(t);if(s instanceof Promise)throw new Error("async function passed to sync validator");if(s.issues)return"field"===e?s.issues:$t(s.issues,t)},validateAsync:({value:t,validationSource:e},i)=>f(function*(){const s=yield i["~standard"].validate(t);if(s.issues)return"field"===e?s.issues:$t(s.issues,t)})()},Rt=t=>!!t&&"~standard"in t});function Gt(t){function e(t,e){return`${t}[${e}]`}function i(i,s,o,n){const r=[e(i,s)];switch(o){case"swap":r.push(e(i,n));break;case"move":{const[t,o]=[Math.min(s,n),Math.max(s,n)];for(let s=t;s<=o;s++)r.push(e(i,s));break}default:{const o=t.getFieldValue(i),n=Array.isArray(o)?o.length:0;for(let t=s+1;t<n;t++)r.push(e(i,t));break}}return Object.keys(t.fieldInfo).filter(t=>r.some(e=>t.startsWith(e)))}function s(e,i){("up"===i?e:[...e].reverse()).forEach(e=>{const s=function(t,e){return t.replace(/\[(\d+)\]/,(t,i)=>{const s=parseInt(i,10);return`[${"up"===e?s+1:Math.max(0,s-1)}]`})}(e.toString(),i),n=t.getFieldMeta(s);n?t.setFieldMeta(e,n):t.setFieldMeta(e,o())})}const o=()=>Ut;return{handleArrayMove:function(o,n,r){const a=i(o,n,"move",r),l=Math.min(n,r),u=Math.max(n,r);for(let t=l;t<=u;t++)a.push(e(o,t));const d=Object.keys(t.fieldInfo).reduce((i,s)=>(s.startsWith(e(o,n))&&i.set(s,t.getFieldMeta(s)),i),new Map);s(a,n<r?"up":"down"),Object.keys(t.fieldInfo).filter(t=>t.startsWith(e(o,r))).forEach(i=>{const s=i.replace(e(o,r),e(o,n)),a=d.get(s);a&&t.setFieldMeta(i,a)})},handleArrayRemove:function(t,e){s(i(t,e,"remove"),"up")},handleArraySwap:function(s,o,n){i(s,o,"swap",n).forEach(i=>{if(!i.toString().startsWith(e(s,o)))return;const r=i.toString().replace(e(s,o),e(s,n)),[a,l]=[t.getFieldMeta(i),t.getFieldMeta(r)];a&&t.setFieldMeta(r,a),l&&t.setFieldMeta(i,l)})},handleArrayInsert:function(n,r){const a=i(n,r,"insert");s(a,"down"),a.forEach(i=>{i.toString().startsWith(e(n,r))&&t.setFieldMeta(i,o())})}}}var Kt,Ht=t(()=>{Ut={isValidating:!1,isTouched:!1,isBlurred:!1,isDirty:!1,isPristine:!0,isValid:!0,isDefaultValue:!0,errors:[],errorMap:{},errorSourceMap:{}}});function Jt(t){var e,i,s,o,n,r,a,l,u;return{values:null!==(e=t.values)&&void 0!==e?e:{},errorMap:null!==(i=t.errorMap)&&void 0!==i?i:{},fieldMetaBase:null!==(s=t.fieldMetaBase)&&void 0!==s?s:{},isSubmitted:null!==(o=t.isSubmitted)&&void 0!==o&&o,isSubmitting:null!==(n=t.isSubmitting)&&void 0!==n&&n,isValidating:null!==(r=t.isValidating)&&void 0!==r&&r,submissionAttempts:null!==(a=t.submissionAttempts)&&void 0!==a?a:0,isSubmitSuccessful:null!==(l=t.isSubmitSuccessful)&&void 0!==l&&l,validationMetaMap:null!==(u=t.validationMetaMap)&&void 0!==u?u:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}}}function Qt(t){return t?pt(t)?{formError:Qt(t.form).formError,fieldErrors:t.fields}:{formError:t}:{formError:void 0}}function Xt(t){switch(t){case"submit":return"onSubmit";case"blur":return"onBlur";case"mount":return"onMount";case"server":return"onServer";case"dynamic":return"onDynamic";default:return"onChange"}}var Yt,Zt=t(()=>{U(),Nt(),zt(),qt(),Ht(),Lt(),c(),v(),Kt=class{constructor(t){var e,i,s,o,n,r,a,l,u,c,h=this;this.options={},this.fieldInfo={},this.mount=()=>{var t,e;const i=this.store.subscribe(()=>{Vt(this)}),s=lt.on("request-form-state",t=>{t.payload.id===this._formId&<.emit("form-api",{id:this._formId,state:this.store.state,options:this.options})}),o=lt.on("request-form-reset",t=>{t.payload.id===this._formId&&this.reset()}),n=lt.on("request-form-force-submit",t=>{t.payload.id===this._formId&&(this._devtoolsSubmissionOverride=!0,this.handleSubmit(),this._devtoolsSubmissionOverride=!1)}),r=()=>{n(),o(),s(),i.unsubscribe(),lt.emit("form-unmounted",{id:this._formId})};null===(t=this.options.listeners)||void 0===t||null===(e=t.onMount)||void 0===e||e.call(t,{formApi:this});const{onMount:a}=this.options.validators||{};return lt.emit("form-api",{id:this._formId,state:this.store.state,options:this.options}),a?(this.validateSync("mount"),r):r},this.update=t=>{if(!t)return;const e=this.options;this.options=t;const i=t.defaultValues&&!Ct(t.defaultValues,e.defaultValues)&&!this.state.isTouched,s=!Ct(t.defaultState,e.defaultState)&&!this.state.isTouched;(i||s)&&(B(()=>{this.baseStore.setState(()=>Jt(Object.assign({},this.state,s?t.defaultState:{},i?{values:t.defaultValues}:{})))}),lt.emit("form-api",{id:this._formId,state:this.store.state,options:this.options}))},this.reset=(t,e)=>{const{fieldMeta:i}=this.state,s=this.resetFieldMeta(i);t&&!(null==e?void 0:e.keepDefaultValues)&&(this.options=d(d({},this.options),{},{defaultValues:t})),this.baseStore.setState(()=>{var e,i;return Jt(d(d({},this.options.defaultState),{},{values:null!==(e=null!=t?t:this.options.defaultValues)&&void 0!==e?e:null===(i=this.options.defaultState)||void 0===i?void 0:i.values,fieldMetaBase:s}))})},this.validateAllFields=(o=f(function*(t){const e=[];return B(()=>{Object.values(h.fieldInfo).forEach(i=>{if(!i.instance)return;const s=i.instance;e.push(Promise.resolve().then(()=>s.validate(t,{skipFormValidation:!0}))),i.instance.state.meta.isTouched||i.instance.setMeta(t=>d(d({},t),{},{isTouched:!0}))})}),(yield Promise.all(e)).flat()}),function(t){return o.apply(this,arguments)}),this.validateArrayFieldsStartingFrom=(n=f(function*(t,e,i){const s=h.getFieldValue(t),o=Array.isArray(s)?Math.max(s.length-1,0):null,n=[`${t}[${e}]`];for(let l=e+1;l<=(null!=o?o:0);l++)n.push(`${t}[${l}]`);const r=Object.keys(h.fieldInfo).filter(t=>n.some(e=>t.startsWith(e))),a=[];return B(()=>{r.forEach(t=>{a.push(Promise.resolve().then(()=>h.validateField(t,i)))})}),(yield Promise.all(a)).flat()}),function(t,e,i){return n.apply(this,arguments)}),this.validateField=(t,e)=>{var i;const s=null===(i=this.fieldInfo[t])||void 0===i?void 0:i.instance;if(!s){const{hasErrored:i}=this.validateSync(e);var o,n;return i&&!this.options.asyncAlways?null!==(o=null===(n=this.getFieldMeta(t))||void 0===n?void 0:n.errors)&&void 0!==o?o:[]:this.validateAsync(e).then(()=>{var e,i;return null!==(e=null===(i=this.getFieldMeta(t))||void 0===i?void 0:i.errors)&&void 0!==e?e:[]})}return s.state.meta.isTouched||s.setMeta(t=>d(d({},t),{},{isTouched:!0})),s.validate(e)},this.validateSync=t=>{const e=jt(t,d(d({},this.options),{},{form:this,validationLogic:this.options.validationLogic||Pt}));let i=!1;const s={};return B(()=>{var o,n;for(const t of e){var r;if(!t.validate)continue;const{formError:e,fieldErrors:o}=Qt(this.runValidator({validate:t.validate,value:{value:this.state.values,formApi:this,validationSource:"form"},type:"validate"})),n=Xt(t.cause),l=new Set([...Object.keys(this.state.fieldMeta),...Object.keys(o||{})]);for(const t of l){var a;if(void 0===this.baseStore.state.fieldMetaBase[t]&&!(null==o?void 0:o[t]))continue;const{errorMap:e,errorSourceMap:i}=null!==(a=this.getFieldMeta(t))&&void 0!==a?a:Ut,r=null==o?void 0:o[t],{newErrorValue:l,newSource:u}=gt({newFormValidatorError:r,isPreviousErrorFromFormValidator:"form"===(null==i?void 0:i[n]),previousErrorValue:null==e?void 0:e[n]});"form"===u&&(s[t]=d(d({},s[t]),{},{[n]:r})),(null==e?void 0:e[n])!==l&&this.setFieldMeta(t,(t=Ut)=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[n]:l}),errorSourceMap:d(d({},t.errorSourceMap),{},{[n]:u})}))}(null===(r=this.state.errorMap)||void 0===r?void 0:r[n])!==e&&this.baseStore.setState(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[n]:e})})),(e||o)&&(i=!0)}const l=Xt("submit");(null===(o=this.state.errorMap)||void 0===o?void 0:o[l])&&"submit"!==t&&!i&&this.baseStore.setState(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[l]:void 0})}));const u=Xt("server");(null===(n=this.state.errorMap)||void 0===n?void 0:n[u])&&"server"!==t&&!i&&this.baseStore.setState(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[u]:void 0})}))}),{hasErrored:i,fieldsErrorMap:s}},this.validateAsync=(r=f(function*(t){const e=Bt(t,d(d({},h.options),{},{form:h,validationLogic:h.options.validationLogic||Pt}));h.state.isFormValidating||h.baseStore.setState(t=>d(d({},t),{},{isFormValidating:!0}));const i=[];let s;for(const r of e){if(!r.validate)continue;const t=Xt(r.cause),e=h.state.validationMetaMap[t];null==e||e.lastAbortController.abort();const o=new AbortController;h.state.validationMetaMap[t]={lastAbortController:o},i.push(new Promise(function(){var t=f(function*(t){let e;try{e=yield new Promise((t,e)=>{setTimeout(f(function*(){if(o.signal.aborted)return t(void 0);try{t(yield h.runValidator({validate:r.validate,value:{value:h.state.values,formApi:h,validationSource:"form",signal:o.signal},type:"validateAsync"}))}catch(i){e(i)}}),r.debounceMs)})}catch(l){e=l}const{formError:i,fieldErrors:n}=Qt(e);n&&(s=s?d(d({},s),n):n);const a=Xt(r.cause);for(const o of Object.keys(h.state.fieldMeta)){if(void 0===h.baseStore.state.fieldMetaBase[o])continue;const t=h.getFieldMeta(o);if(!t)continue;const{errorMap:e,errorSourceMap:i}=t,{newErrorValue:n,newSource:r}=gt({newFormValidatorError:null==s?void 0:s[o],isPreviousErrorFromFormValidator:"form"===(null==i?void 0:i[a]),previousErrorValue:null==e?void 0:e[a]});(null==e?void 0:e[a])!==n&&h.setFieldMeta(o,t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[a]:n}),errorSourceMap:d(d({},t.errorSourceMap),{},{[a]:r})}))}h.baseStore.setState(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[a]:i})})),t(s?{fieldErrors:s,errorMapKey:a}:void 0)});return function(e){return t.apply(this,arguments)}}()))}let o=[];const n={};if(i.length){o=yield Promise.all(i);for(const t of o)if(null==t?void 0:t.fieldErrors){const{errorMapKey:e}=t;for(const[i,s]of Object.entries(t.fieldErrors))n[i]=d(d({},n[i]||{}),{},{[e]:s})}}return h.baseStore.setState(t=>d(d({},t),{},{isFormValidating:!1})),n}),function(t){return r.apply(this,arguments)}),this.validate=t=>{const{hasErrored:e,fieldsErrorMap:i}=this.validateSync(t);return e&&!this.options.asyncAlways?i:this.validateAsync(t)},this._handleSubmit=(a=f(function*(t){var e,i;h.baseStore.setState(t=>d(d({},t),{},{isSubmitted:!1,submissionAttempts:t.submissionAttempts+1,isSubmitSuccessful:!1})),B(()=>{Object.values(h.fieldInfo).forEach(t=>{t.instance&&(t.instance.state.meta.isTouched||t.instance.setMeta(t=>d(d({},t),{},{isTouched:!0})))})});const s=null!=t?t:h.options.onSubmitMeta;var o,n;if(!h.state.canSubmit&&!h._devtoolsSubmissionOverride)return void(null===(o=(n=h.options).onSubmitInvalid)||void 0===o||o.call(n,{value:h.state.values,formApi:h,meta:s}));h.baseStore.setState(t=>d(d({},t),{},{isSubmitting:!0}));const r=()=>{h.baseStore.setState(t=>d(d({},t),{},{isSubmitting:!1}))};var a,l,u,c;if(yield h.validateAllFields("submit"),!h.state.isFieldsValid)return r(),null===(a=(l=h.options).onSubmitInvalid)||void 0===a||a.call(l,{value:h.state.values,formApi:h,meta:s}),void lt.emit("form-submission",{id:h._formId,submissionAttempt:h.state.submissionAttempts,successful:!1,stage:"validateAllFields",errors:Object.values(h.state.fieldMeta).map(t=>t.errors).flat()});if(yield h.validate("submit"),!h.state.isValid)return r(),null===(u=(c=h.options).onSubmitInvalid)||void 0===u||u.call(c,{value:h.state.values,formApi:h,meta:s}),void lt.emit("form-submission",{id:h._formId,submissionAttempt:h.state.submissionAttempts,successful:!1,stage:"validate",errors:h.state.errors});B(()=>{Object.values(h.fieldInfo).forEach(t=>{var e,i;null===(e=t.instance)||void 0===e||null===(e=e.options.listeners)||void 0===e||null===(i=e.onSubmit)||void 0===i||i.call(e,{value:t.instance.state.value,fieldApi:t.instance})})}),null===(e=h.options.listeners)||void 0===e||null===(i=e.onSubmit)||void 0===i||i.call(e,{formApi:h,meta:s});try{var v,f;yield null===(v=(f=h.options).onSubmit)||void 0===v?void 0:v.call(f,{value:h.state.values,formApi:h,meta:s}),B(()=>{h.baseStore.setState(t=>d(d({},t),{},{isSubmitted:!0,isSubmitSuccessful:!0})),lt.emit("form-submission",{id:h._formId,submissionAttempt:h.state.submissionAttempts,successful:!0}),r()})}catch(m){throw h.baseStore.setState(t=>d(d({},t),{},{isSubmitSuccessful:!1})),lt.emit("form-submission",{id:h._formId,submissionAttempt:h.state.submissionAttempts,successful:!1,stage:"inflight",onError:m}),r(),m}}),function(t){return a.apply(this,arguments)}),this.getFieldValue=t=>It(this.state.values,t),this.getFieldMeta=t=>this.state.fieldMeta[t],this.getFieldInfo=t=>{var e;return(e=this.fieldInfo)[t]||(e[t]={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}})},this.setFieldMeta=(t,e)=>{this.baseStore.setState(i=>d(d({},i),{},{fieldMetaBase:d(d({},i.fieldMetaBase),{},{[t]:Tt(e,i.fieldMetaBase[t])})}))},this.resetFieldMeta=t=>Object.keys(t).reduce((t,e)=>(t[e]=Ut,t),{}),this.setFieldValue=(t,e,i)=>{var s,o,n;const r=null!==(s=null==i?void 0:i.dontUpdateMeta)&&void 0!==s&&s,a=null!==(o=null==i?void 0:i.dontRunListeners)&&void 0!==o&&o,l=null!==(n=null==i?void 0:i.dontValidate)&&void 0!==n&&n;var u;(B(()=>{r||this.setFieldMeta(t,t=>d(d({},t),{},{isTouched:!0,isDirty:!0,errorMap:d(d({},null==t?void 0:t.errorMap),{},{onMount:void 0})})),this.baseStore.setState(i=>d(d({},i),{},{values:kt(i.values,t,e)}))}),a)||(null===(u=this.getFieldInfo(t).instance)||void 0===u||u.triggerOnChangeListener());l||this.validateField(t,"change")},this.deleteField=t=>{const e=[...Object.keys(this.fieldInfo).filter(e=>{const i=t.toString();return e!==i&&e.startsWith(i)}),t];this.baseStore.setState(t=>{const i=d({},t);return e.forEach(t=>{i.values=function(t,e){const i=Dt(e);return function t(e){if(!e)return;if(1===i.length){const t=i[0];if(Array.isArray(e)&&"number"==typeof t)return e.filter((e,i)=>i!==t);const{[t]:s}=e;return m(e,[t].map(p))}const s=i.shift();if(("string"==typeof s||"number"==typeof s&&!Array.isArray(e))&&"object"==typeof e)return d(d({},e),{},{[s]:t(e[s])});if("number"==typeof s&&Array.isArray(e)){if(s>=e.length)return e;const i=e.slice(0,s);return[...i.length?i:new Array(s),t(e[s]),...e.slice(s+1)]}throw new Error("It seems we have created an infinite loop in deleteBy. ")}(t)}(i.values,t),delete this.fieldInfo[t],delete i.fieldMetaBase[t]}),i})},this.pushFieldValue=(t,e,i)=>{this.setFieldValue(t,t=>[...Array.isArray(t)?t:[],e],i)},this.insertFieldValue=(l=f(function*(t,e,i,s){var o;h.setFieldValue(t,t=>[...t.slice(0,e),i,...t.slice(e)],_t(s,{dontValidate:!0}));const n=null!==(o=null==s?void 0:s.dontValidate)&&void 0!==o&&o;n||(yield h.validateField(t,"change")),Gt(h).handleArrayInsert(t,e),n||(yield h.validateArrayFieldsStartingFrom(t,e,"change"))}),function(t,e,i,s){return l.apply(this,arguments)}),this.replaceFieldValue=(u=f(function*(t,e,i,s){var o;h.setFieldValue(t,t=>t.map((t,s)=>s===e?i:t),_t(s,{dontValidate:!0})),null!==(o=null==s?void 0:s.dontValidate)&&void 0!==o&&o||(yield h.validateField(t,"change"),yield h.validateArrayFieldsStartingFrom(t,e,"change"))}),function(t,e,i,s){return u.apply(this,arguments)}),this.removeFieldValue=(c=f(function*(t,e,i){var s;const o=h.getFieldValue(t),n=Array.isArray(o)?Math.max(o.length-1,0):null;if(h.setFieldValue(t,t=>t.filter((t,i)=>i!==e),_t(i,{dontValidate:!0})),Gt(h).handleArrayRemove(t,e),null!==n){const e=`${t}[${n}]`;h.deleteField(e)}null!==(s=null==i?void 0:i.dontValidate)&&void 0!==s&&s||(yield h.validateField(t,"change"),yield h.validateArrayFieldsStartingFrom(t,e,"change"))}),function(t,e,i){return c.apply(this,arguments)}),this.swapFieldValues=(t,e,i,s)=>{var o;this.setFieldValue(t,t=>{const s=t[e],o=t[i];return kt(kt(t,`${e}`,o),`${i}`,s)},_t(s,{dontValidate:!0})),Gt(this).handleArraySwap(t,e,i),null!==(o=null==s?void 0:s.dontValidate)&&void 0!==o&&o||(this.validateField(t,"change"),this.validateField(`${t}[${e}]`,"change"),this.validateField(`${t}[${i}]`,"change"))},this.moveFieldValues=(t,e,i,s)=>{var o;this.setFieldValue(t,t=>{const s=[...t];return s.splice(i,0,s.splice(e,1)[0]),s},_t(s,{dontValidate:!0})),Gt(this).handleArrayMove(t,e,i),null!==(o=null==s?void 0:s.dontValidate)&&void 0!==o&&o||(this.validateField(t,"change"),this.validateField(`${t}[${e}]`,"change"),this.validateField(`${t}[${i}]`,"change"))},this.clearFieldValues=(t,e)=>{var i;const s=this.getFieldValue(t),o=Array.isArray(s)?Math.max(s.length-1,0):null;if(this.setFieldValue(t,[],_t(e,{dontValidate:!0})),null!==o)for(let n=0;n<=o;n++){const e=`${t}[${n}]`;this.deleteField(e)}null!==(i=null==e?void 0:e.dontValidate)&&void 0!==i&&i||this.validateField(t,"change")},this.resetField=t=>{this.baseStore.setState(e=>d(d({},e),{},{fieldMetaBase:d(d({},e.fieldMetaBase),{},{[t]:Ut}),values:this.options.defaultValues?kt(e.values,t,It(this.options.defaultValues,t)):e.values}))},this.setErrorMap=t=>{B(()=>{Object.entries(t).forEach(([t,e])=>{const i=t;if(pt(e)){const{formError:t,fieldErrors:s}=Qt(e);for(const e of Object.keys(this.fieldInfo))this.getFieldMeta(e)&&this.setFieldMeta(e,t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[i]:null==s?void 0:s[e]}),errorSourceMap:d(d({},t.errorSourceMap),{},{[i]:"form"})}));this.baseStore.setState(e=>d(d({},e),{},{errorMap:d(d({},e.errorMap),{},{[i]:t})}))}else this.baseStore.setState(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[i]:e})}))})})},this.getAllErrors=()=>({form:{errors:this.state.errors,errorMap:this.state.errorMap},fields:Object.entries(this.state.fieldMeta).reduce((t,[e,i])=>(Object.keys(i).length&&i.errors.length&&(t[e]={errors:i.errors,errorMap:i.errorMap}),t),{})}),this.parseValuesWithSchema=t=>Wt.validate({value:this.state.values,validationSource:"form"},t),this.parseValuesWithSchemaAsync=t=>Wt.validateAsync({value:this.state.values,validationSource:"form"},t),this.timeoutIds={validations:{},listeners:{},formListeners:{}},this._formId=null!==(e=null==t?void 0:t.formId)&&void 0!==e?e:function(){let t,e=0,i="";if(!St||Mt+16>256){for(St=new Array(256),e=256;e--;)St[e]=256*Math.random()|0;e=0,Mt=0}for(;e<16;e++)t=St[Mt+e],i+=6===e?yt[15&t|64]:8===e?yt[63&t|128]:yt[t],1&e&&e>1&&e<11&&(i+="-");return Mt++,i}(),this._devtoolsSubmissionOverride=!1;let v,g,b=Jt(d(d({},null==t?void 0:t.defaultState),{},{values:null!==(i=null==t?void 0:t.defaultValues)&&void 0!==i?i:null==t||null===(s=t.defaultState)||void 0===s?void 0:s.values}));if(null==t?void 0:t.transform){b=t.transform({state:b}).state;for(const t of Object.keys(b.errorMap)){const e=b.errorMap[t];if(void 0!==e&&pt(e))for(const i of Object.keys(e.fields)){var M,y;const s=e.fields[i];if(void 0===s)continue;const o=b.fieldMetaBase[i];b.fieldMetaBase[i]=d(d({isTouched:!1,isValidating:!1,isBlurred:!1,isDirty:!1},null!=o?o:{}),{},{errorSourceMap:d(d({},null!==(M=null==o?void 0:o.errorSourceMap)&&void 0!==M?M:{}),{},{onChange:"form"}),errorMap:d(d({},null!==(y=null==o?void 0:o.errorMap)&&void 0!==y?y:{}),{},{[t]:s})})}}}this.baseStore=R(b),this.fieldMetaDerived=R(t=>{const e=this.baseStore.get();let i=0;const s={};for(const l of Object.keys(e.fieldMetaBase)){var o,n;const u=e.fieldMetaBase[l],c=null==v?void 0:v.fieldMetaBase[l],h=null==t?void 0:t[l],f=It(e.values,l);let m=null==h?void 0:h.errors;if(!c||u.errorMap!==c.errorMap){var r,a;m=Object.values(null!==(r=u.errorMap)&&void 0!==r?r:{}).filter(t=>void 0!==t);const t=null===(a=this.getFieldInfo(l))||void 0===a?void 0:a.instance;t&&t.options.disableErrorFlat||(m=m.flat(1))}const p=!Ot(m),g=!u.isDirty,b=Ct(f,It(this.options.defaultValues,l))||Ct(f,null===(o=this.getFieldInfo(l))||void 0===o||null===(o=o.instance)||void 0===o?void 0:o.options.defaultValue);h&&h.isPristine===g&&h.isValid===p&&h.isDefaultValue===b&&h.errors===m&&u===c?(s[l]=h,i++):s[l]=d(d({},u),{},{errors:null!==(n=m)&&void 0!==n?n:[],isPristine:g,isValid:p,isDefaultValue:b})}return Object.keys(e.fieldMetaBase).length?t&&i===Object.keys(e.fieldMetaBase).length?t:(v=this.baseStore.get(),s):s}),this.store=R(t=>{var e,i,s,o;const n=this.baseStore.get(),r=this.fieldMetaDerived.get(),a=Object.values(r).filter(Boolean),l=a.some(t=>t.isValidating),u=a.every(t=>t.isValid),c=a.some(t=>t.isTouched),h=a.some(t=>t.isBlurred),v=a.every(t=>t.isDefaultValue),f=c&&(null===(e=n.errorMap)||void 0===e?void 0:e.onMount),m=a.some(t=>t.isDirty),p=!m,b=Boolean((null===(i=n.errorMap)||void 0===i?void 0:i.onMount)||a.some(t=>{var e;return null==t||null===(e=t.errorMap)||void 0===e?void 0:e.onMount})),M=!!l;let y=null!==(s=null==t?void 0:t.errors)&&void 0!==s?s:[];g&&n.errorMap===g.errorMap||(y=Object.values(n.errorMap).reduce((t,e)=>void 0===e?t:e&&pt(e)?(t.push(e.form),t):(t.push(e),t),[]));const S=0===y.length,V=u&&S,A=null!==(o=this.options.canSubmitWhenInvalid)&&void 0!==o&&o,E=0===n.submissionAttempts&&!c&&!b||!M&&!n.isSubmitting&&V||A;let F=n.errorMap;if(f&&(y=y.filter(t=>t!==n.errorMap.onMount),F=Object.assign(F,{onMount:void 0})),t&&g&&t.errorMap===F&&t.fieldMeta===this.fieldMetaDerived.state&&t.errors===y&&t.isFieldsValidating===l&&t.isFieldsValid===u&&t.isFormValid===S&&t.isValid===V&&t.canSubmit===E&&t.isTouched===c&&t.isBlurred===h&&t.isPristine===p&&t.isDefaultValue===v&&t.isDirty===m&&Ct(g,n))return t;const w=d(d({},n),{},{errorMap:F,fieldMeta:this.fieldMetaDerived.state,errors:y,isFieldsValidating:l,isFieldsValid:u,isFormValid:S,isValid:V,canSubmit:E,isTouched:c,isBlurred:h,isPristine:p,isDefaultValue:v,isDirty:m});return g=this.baseStore.get(),w}),this.handleSubmit=this.handleSubmit.bind(this),this.update(t||{})}get state(){return this.store.state}get formId(){return this._formId}runValidator(t){return Rt(t.validate)?Wt[t.type](t.value,t.validate):t.validate(t.value)}handleSubmit(t){return this._handleSubmit(t)}}});function te(t){if(t)return t}function ee(t){switch(t){case"submit":return"onSubmit";case"blur":return"onBlur";case"mount":return"onMount";case"server":return"onServer";case"dynamic":return"onDynamic";default:return"onChange"}}var ie=t(()=>{U(),qt(),Ht(),Nt(),zt(),c(),v(),Yt=class{constructor(t){var e,i=this;this.options={},this.mount=()=>{var t,e;void 0===this.options.defaultValue||this.getMeta().isTouched||this.form.setFieldValue(this.name,this.options.defaultValue,{dontUpdateMeta:!0});this.getInfo().instance=this,this.update(this.options);const{onMount:i}=this.options.validators||{};if(i){const t=this.runValidator({validate:i,value:{value:this.state.value,fieldApi:this,validationSource:"field"},type:"validate"});t&&this.setMeta(e=>d(d({},e),{},{errorMap:d(d({},null==e?void 0:e.errorMap),{},{onMount:t}),errorSourceMap:d(d({},null==e?void 0:e.errorSourceMap),{},{onMount:"field"})}))}return null===(t=this.options.listeners)||void 0===t||null===(e=t.onMount)||void 0===e||e.call(t,{value:this.state.value,fieldApi:this}),()=>{var t,e,i,s;for(const[n,r]of Object.entries(this.timeoutIds.validations))r&&(clearTimeout(r),this.timeoutIds.validations[n]=null);for(const[n,r]of Object.entries(this.timeoutIds.listeners))r&&(clearTimeout(r),this.timeoutIds.listeners[n]=null);for(const[n,r]of Object.entries(this.timeoutIds.formListeners))r&&(clearTimeout(r),this.timeoutIds.formListeners[n]=null);const o=this.form.fieldInfo[this.name];if(o&&o.instance===this){for(const[t,e]of Object.entries(o.validationMetaMap))null==e||e.lastAbortController.abort(),o.validationMetaMap[t]=void 0;this.form.baseStore.setState(t=>{var e,i,s,o,n,r;return d(d({},t),{},{fieldMetaBase:d(d({},t.fieldMetaBase),{},{[this.name]:d(d({},Ut),{},{isTouched:null!==(e=null===(i=t.fieldMetaBase[this.name])||void 0===i?void 0:i.isTouched)&&void 0!==e?e:Ut.isTouched,isBlurred:null!==(s=null===(o=t.fieldMetaBase[this.name])||void 0===o?void 0:o.isBlurred)&&void 0!==s?s:Ut.isBlurred,isDirty:null!==(n=null===(r=t.fieldMetaBase[this.name])||void 0===r?void 0:r.isDirty)&&void 0!==n?n:Ut.isDirty})})})}),o.instance=null,null===(t=this.options.listeners)||void 0===t||null===(e=t.onUnmount)||void 0===e||e.call(t,{value:this.state.value,fieldApi:this}),null===(i=this.form.options.listeners)||void 0===i||null===(s=i.onFieldUnmount)||void 0===s||s.call(i,{formApi:this.form,fieldApi:this})}}},this.update=t=>{this.options=t,this.name=t.name,this.state.meta.isTouched||void 0===this.options.defaultValue||Ct(this.form.getFieldValue(this.name),t.defaultValue)||this.form.setFieldValue(this.name,t.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0}),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,this.state.meta)},this.getValue=()=>this.form.getFieldValue(this.name),this.setValue=(t,e)=>{this.form.setFieldValue(this.name,t,_t(e,{dontRunListeners:!0,dontValidate:!0})),(null==e?void 0:e.dontRunListeners)||this.triggerOnChangeListener(),(null==e?void 0:e.dontValidate)||this.validate("change")},this.getMeta=()=>this.store.state.meta,this.setMeta=t=>this.form.setFieldMeta(this.name,t),this.getInfo=()=>this.form.getFieldInfo(this.name),this.pushValue=(t,e)=>{this.form.pushFieldValue(this.name,t,_t(e,{dontRunListeners:!0})),(null==e?void 0:e.dontRunListeners)||this.triggerOnChangeListener()},this.insertValue=(t,e,i)=>{this.form.insertFieldValue(this.name,t,e,_t(i,{dontRunListeners:!0})),(null==i?void 0:i.dontRunListeners)||this.triggerOnChangeListener()},this.replaceValue=(t,e,i)=>{this.form.replaceFieldValue(this.name,t,e,_t(i,{dontRunListeners:!0})),(null==i?void 0:i.dontRunListeners)||this.triggerOnChangeListener()},this.removeValue=(t,e)=>{this.form.removeFieldValue(this.name,t,_t(e,{dontRunListeners:!0})),(null==e?void 0:e.dontRunListeners)||this.triggerOnChangeListener()},this.swapValues=(t,e,i)=>{this.form.swapFieldValues(this.name,t,e,_t(i,{dontRunListeners:!0})),(null==i?void 0:i.dontRunListeners)||this.triggerOnChangeListener()},this.moveValue=(t,e,i)=>{this.form.moveFieldValues(this.name,t,e,_t(i,{dontRunListeners:!0})),(null==i?void 0:i.dontRunListeners)||this.triggerOnChangeListener()},this.clearValues=t=>{this.form.clearFieldValues(this.name,_t(t,{dontRunListeners:!0})),(null==t?void 0:t.dontRunListeners)||this.triggerOnChangeListener()},this.getLinkedFields=t=>{const e=Object.values(this.form.fieldInfo),i=[];for(const s of e){if(!s.instance)continue;const{onChangeListenTo:e,onBlurListenTo:o}=s.instance.options.validators||{};"change"===t&&(null==e?void 0:e.includes(this.name))&&i.push(s.instance),"blur"===t&&(null==o?void 0:o.includes(this.name))&&i.push(s.instance)}return i},this.validateSync=(t,e)=>{var i;const s=jt(t,d(d({},this.options),{},{form:this.form,validationLogic:this.form.options.validationLogic||Pt})),o=this.getLinkedFields(t).reduce((e,i)=>{const s=jt(t,d(d({},i.options),{},{form:i.form,validationLogic:i.form.options.validationLogic||Pt}));return s.forEach(t=>{t.field=i}),e.concat(s)},[]);let n=!1;B(()=>{const t=(t,i)=>{var s;const o=ee(i.cause),r=i.validate?te(t.runValidator({validate:i.validate,value:{value:t.store.state.value,validationSource:"field",fieldApi:t},type:"validate"})):void 0,a=e[o],{newErrorValue:l,newSource:u}=bt({formLevelError:a,fieldLevelError:r});(null===(s=t.state.meta.errorMap)||void 0===s?void 0:s[o])!==l&&t.setMeta(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[o]:l}),errorSourceMap:d(d({},t.errorSourceMap),{},{[o]:u})})),l&&(n=!0)};for(const e of s)t(this,e);for(const e of o)e.validate&&t(e.field,e)});const r=ee("submit");return(null===(i=this.state.meta.errorMap)||void 0===i?void 0:i[r])&&"submit"!==t&&!n&&this.setMeta(t=>d(d({},t),{},{errorMap:d(d({},t.errorMap),{},{[r]:void 0}),errorSourceMap:d(d({},t.errorSourceMap),{},{[r]:void 0})})),{hasErrored:n}},this.validateAsync=(e=f(function*(t,e){const s=Bt(t,d(d({},i.options),{},{form:i.form,validationLogic:i.form.options.validationLogic||Pt})),o=yield e,n=i.getLinkedFields(t),r=n.reduce((e,i)=>{const s=Bt(t,d(d({},i.options),{},{form:i.form,validationLogic:i.form.options.validationLogic||Pt}));return s.forEach(t=>{t.field=i}),e.concat(s)},[]),a=[],l=[],u=s.some(t=>t.validate)||r.some(t=>t.validate);if(u){i.state.meta.isValidating||i.setMeta(t=>d(d({},t),{},{isValidating:!0}));for(const t of n)t.setMeta(t=>d(d({},t),{},{isValidating:!0}))}const c=(t,e,s)=>{const n=ee(e.cause),r=t.getInfo(),a=r.validationMetaMap[n];null==a||a.lastAbortController.abort();const l=new AbortController;var u;r.validationMetaMap[n]={lastAbortController:l},s.push(new Promise((u=f(function*(s){var r;let a;try{a=yield new Promise((s,o)=>{t.timeoutIds.validations[e.cause]&&clearTimeout(t.timeoutIds.validations[e.cause]),t.timeoutIds.validations[e.cause]=setTimeout(f(function*(){if(l.signal.aborted)return s(void 0);try{s(yield i.runValidator({validate:e.validate,value:{value:t.store.state.value,fieldApi:t,signal:l.signal,validationSource:"field"},type:"validateAsync"}))}catch(n){o(n)}}),e.debounceMs)})}catch(v){a=v}if(l.signal.aborted)return s(void 0);const u=te(a),{newErrorValue:c,newSource:h}=bt({formLevelError:null===(r=o[t.name])||void 0===r?void 0:r[n],fieldLevelError:u});if(t.getInfo().instance!==t)return s(void 0);t.setMeta(t=>d(d({},t),{},{errorMap:d(d({},null==t?void 0:t.errorMap),{},{[n]:c}),errorSourceMap:d(d({},t.errorSourceMap),{},{[n]:h})})),s(c)}),function(t){return u.apply(this,arguments)})))};for(const d of s)d.validate&&c(i,d,a);for(const i of r)i.validate&&c(i.field,i,l);let h=[];if((a.length||l.length)&&(h=yield Promise.all(a),yield Promise.all(l)),u){i.setMeta(t=>d(d({},t),{},{isValidating:!1}));for(const t of n)t.setMeta(t=>d(d({},t),{},{isValidating:!1}))}return h.filter(Boolean)}),function(t,i){return e.apply(this,arguments)}),this.validate=(t,e)=>{var i;if(!this.state.meta.isTouched)return[];const{fieldsErrorMap:s}=(null==e?void 0:e.skipFormValidation)?{fieldsErrorMap:{}}:this.form.validateSync(t),{hasErrored:o}=this.validateSync(t,null!==(i=s[this.name])&&void 0!==i?i:{});var n;if(o&&!this.options.asyncAlways)return null===(n=this.getInfo().validationMetaMap[ee(t)])||void 0===n||n.lastAbortController.abort(),this.state.meta.errors;const r=(null==e?void 0:e.skipFormValidation)?Promise.resolve({}):this.form.validateAsync(t);return this.validateAsync(t,r)},this.handleChange=t=>{this.setValue(t)},this.handleBlur=()=>{this.state.meta.isTouched||this.setMeta(t=>d(d({},t),{},{isTouched:!0})),this.state.meta.isBlurred||this.setMeta(t=>d(d({},t),{},{isBlurred:!0})),this.validate("blur"),this.triggerOnBlurListener()},this.setErrorMap=t=>{this.setMeta(e=>d(d({},e),{},{errorMap:d(d({},e.errorMap),t)}))},this.parseValueWithSchema=t=>Wt.validate({value:this.state.value,validationSource:"field"},t),this.parseValueWithSchemaAsync=t=>Wt.validateAsync({value:this.state.value,validationSource:"field"},t),this.triggerOnChangeListener=()=>{var t,e;const i=null===(t=this.form.options.listeners)||void 0===t?void 0:t.onChangeDebounceMs;var s,o;i&&i>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{var t,e;null===(t=this.form.options.listeners)||void 0===t||null===(e=t.onChange)||void 0===e||e.call(t,{formApi:this.form,fieldApi:this})},i)):null===(s=this.form.options.listeners)||void 0===s||null===(o=s.onChange)||void 0===o||o.call(s,{formApi:this.form,fieldApi:this});const n=null===(e=this.options.listeners)||void 0===e?void 0:e.onChangeDebounceMs;var r,a;n&&n>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{var t,e;null===(t=this.options.listeners)||void 0===t||null===(e=t.onChange)||void 0===e||e.call(t,{value:this.state.value,fieldApi:this})},n)):null===(r=this.options.listeners)||void 0===r||null===(a=r.onChange)||void 0===a||a.call(r,{value:this.state.value,fieldApi:this})},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.store=R(e=>{var i;this.form.store.get();const s=null!==(i=this.form.getFieldMeta(this.name))&&void 0!==i?i:d(d({},Ut),t.defaultMeta);let o=this.form.getFieldValue(this.name);return s.isTouched||void 0!==o||void 0===this.options.defaultValue||Ct(o,this.options.defaultValue)||(o=this.options.defaultValue),e&&e.value===o&&e.meta===s?e:{value:o,meta:s}})}get state(){return this.store.state}runValidator(t){return Rt(t.validate)?Wt[t.type](t.value,t.validate):t.validate(t.value)}triggerOnBlurListener(){var t,e;const i=null===(t=this.form.options.listeners)||void 0===t?void 0:t.onBlurDebounceMs;var s,o;i&&i>0?(this.timeoutIds.formListeners.blur&&clearTimeout(this.timeoutIds.formListeners.blur),this.timeoutIds.formListeners.blur=setTimeout(()=>{var t,e;null===(t=this.form.options.listeners)||void 0===t||null===(e=t.onBlur)||void 0===e||e.call(t,{formApi:this.form,fieldApi:this})},i)):null===(s=this.form.options.listeners)||void 0===s||null===(o=s.onBlur)||void 0===o||o.call(s,{formApi:this.form,fieldApi:this});const n=null===(e=this.options.listeners)||void 0===e?void 0:e.onBlurDebounceMs;var r,a;n&&n>0?(this.timeoutIds.listeners.blur&&clearTimeout(this.timeoutIds.listeners.blur),this.timeoutIds.listeners.blur=setTimeout(()=>{var t,e;null===(t=this.options.listeners)||void 0===t||null===(e=t.onBlur)||void 0===e||e.call(t,{value:this.state.value,fieldApi:this})},n)):null===(r=this.options.listeners)||void 0===r||null===(a=r.onBlur)||void 0===a||a.call(r,{value:this.state.value,fieldApi:this})}}}),se=t(()=>{Zt(),ie(),Nt(),zt()});function oe(t,n=t=>t,r={}){var a;const l=i(n(t.get())),u=null!==(a=r.equal)&&void 0!==a?a:ne;return o(()=>t,(t,i,s)=>{const o=t.subscribe(t=>{const i=n(t);u(e(l.value),i)||(l.value=i)}).unsubscribe;s(()=>{o()})},{immediate:!0}),s(l)}function ne(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[i,s]of t)if(!e.has(i)||!Object.is(s,e.get(i)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!1;for(let s=0;s<i.length;s++)if(!Object.prototype.hasOwnProperty.call(e,i[s])||!Object.is(t[i[s]],e[i[s]]))return!1;return!0}var re=t(()=>{M(),U()});export{Kt as a,It as c,Yt as i,pt as l,oe as n,xt as o,se as r,gt as s,re as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DSSfW_98.js";import{c as i,l as o}from"./vue-B6iEDFba.js";import{n as s,t as r}from"./vue-CVoE89_5.js";import{m as a,p as t}from"./fecha-BQnQQpNY.js";import{_ as n,g as l,k as u,m as d,o as c,p as m,s as p,w as h,x as b}from"./zova-Dxk4Lwim.js";import{t as f}from"./zova-BLZKBFDw.js";import{_ as g,h as v,o as w,t as x}from"./a-bean-in5SzpIT.js";import{r as y,t as L}from"./a-model-ChDGSkgy.js";import{a as F,d as j,t as P}from"./a-behavior-YFeIegB-.js";var _,z,$,H,k,G,S,Y,O,B,U,C,E,I,A,D,M,R,q,T,V,Z,J,K=e(()=>{a(),f(),x(),L(),_=v(),z=u({module:"home-login"}),H=_($=z($=class ControllerPageLogin extends n{constructor(...e){super(...e),this.user={username:"",password:"",captcha:{id:"",token:""}}}__init__(){var e=this;return t(function*(){"development"===e.sys.env.META_MODE&&(e.user.username="admin",e.user.password="123456"),yield y(()=>e.$passport.apiSchemasLogin.sdk)})()}get schema(){return this.$passport.schemaLogin}submitLogin(e){var i=this;return t(function*(){yield i.$passport.login().mutateAsync(e.value)})()}loginGitHub(){var e=this;return t(function*(){const i=e.$passport.getOauthLoginUrl("auth-github","github","default");window.location.assign(i)})()}})||$)||$}),N=e(()=>{s(),f(),x(),Y=m("a-icon","icon"),O=m("a-form","formFieldPreset"),B=m("a-form","formFieldBlank"),U=m("a-form","form"),k=g(),G=u({module:"home-login"}),C=k(S=G(S=class RenderPageLogin extends l{render(){return o("div",{class:"min-h-screen bg-base-200 flex items-center"},[o("div",{class:"card mx-auto w-full max-w-5xl shadow-xl"},[o("div",{class:"grid md:grid-cols-2 grid-cols-1 bg-base-100 rounded-xl"},[this._renderLandingInfo(),o("div",{class:"py-24 px-10"},[o("h2",{class:"text-2xl font-semibold mb-2 text-center"},[this.scope.locale.Login()]),o("div",{class:"mb-4"},[this._renderForm(),o("div",{class:"divider"},[i("OR")]),this._renderGithub()])])])])])}_renderLandingInfo(){return o("div",{class:"min-h-full rounded-l-xl bg-base-200"},[o("div",{class:"py-12"},[o("h1",{class:"text-3xl text-center font-bold"},[i("Zova")]),o("h5",{class:"text-2xl text-center opacity-40"},[i("Less is more, while more is less")])])])}_renderForm(){return o(U,{data:this.user,schema:this.schema,formProvider:{behaviors:{FormFieldLayout:"home-login:formFieldLayoutLogin"}},onSubmitData:e=>this.submitLogin(e),onShowError:({error:e})=>{window.alert(e.message)}},{default:()=>[o(O,{name:"username",render:"basic-input:formFieldInput",options:{type:"text",placeholder:this.scope.locale.YourUsername()},class:"grow",layout:{iconPrefix:":daisy:person"}},null),o(O,{name:"password",class:"grow",render:"basic-input:formFieldInput",options:{type:"password",placeholder:this.scope.locale.YourPassword()},layout:{iconPrefix:":daisy:lock"}},null),o(O,{name:"captcha"},null),o(B,{slotDefault:e=>o("button",{disabled:e.formState.isSubmitting,type:"submit",class:"btn mt-2 w-full btn-primary"},[this.scope.locale.Login()])},null)]})}_renderGithub(){return o("button",{class:"btn mt-2 w-full btn-default",onClick:()=>{this.loginGitHub()}},[o(Y,{name:":auth:github",width:24},null),this.scope.locale.LoginGitHub()])}})||S)||S}),Q=e(()=>{f(),K(),N(),E=p(H,C,void 0)}),W=e(()=>{Q(),I=[{path:"",component:E,meta:{layout:"empty",requiresAuth:!1}}]});var X,ee,ie,oe,se,re,ae=e(()=>{var e,i,r,a,t,n;s(),f(),P(),Z=m("a-icon","icon"),A=F(),D=u({module:"home-login"}),M=h({injectionScope:"host"}),R=Reflect.metadata("design:type","undefined"==typeof ControllerFormField?Object:ControllerFormField),J=A(q=D((T=class BehaviorFormFieldLayoutLogin extends j{constructor(...e){var i,o,s,r;super(...e),i=this,o="$$formField",r=this,(s=V)&&Object.defineProperty(i,o,{enumerable:s.enumerable,configurable:s.configurable,writable:s.writable,value:s.initializer?s.initializer.call(r):void 0})}render(e,i){const s=this.$$formField.field,r=e.propsBucket.layout;e.propsBucket.needHandleBorder=(null==r?void 0:r.disable)||!(null==r?void 0:r.inline);const a=i(e);if(null==r?void 0:r.disable)return a;const t=null==r?void 0:r.iconPrefix,n=s.state.meta.errors[0];return o("label",{class:"input input-bordered flex items-center gap-2 w-full"},[o(Z,{class:"opacity-70",name:t,width:16},null),a,!s.state.meta.isValid&&o("div",{class:"label"},[o("span",{class:"label-text-alt text-error"},[null==n?void 0:n.message])])])}},e=T.prototype,i="$$formField",r=[M,R],a={configurable:!0,enumerable:!0,writable:!0,initializer:null},n={},Object.keys(a).forEach(function(e){n[e]=a[e]}),n.enumerable=!!n.enumerable,n.configurable=!!n.configurable,("value"in n||n.initializer)&&(n.writable=!0),n=r.slice().reverse().reduce(function(o,s){return s(e,i,o)||o},n),t&&void 0!==n.initializer&&(n.value=n.initializer?n.initializer.call(t):void 0,n.initializer=void 0),V=void 0===n.initializer?(Object.defineProperty(e,i,n),null):n,q=T))||q)||q});function te(e){return`home-login::${e}`}var ne,le,ue,de=e(()=>{f(),K(),Q(),W(),N(),ae(),P(),s(),r(),x(),oe={},se={},X=w(),ee=u({module:"home-login"}),re=X(ie=ee(ie=class ScopeModuleHomeLogin extends d{})||ie)||ie}),ce=e(()=>{ne={YourUsername:"Your Username",YourPassword:"Your Password",Login:"Login",LoginGitHub:"Sign in with GitHub"}}),me=e(()=>{le={YourUsername:"您的用户名",YourPassword:"您的密码",Login:"登录",LoginGitHub:"使用GitHub登录"}});function pe(e,...i){const o=c(),s=`home-login::${e}`;return b(()=>o.meta.text(s,...i))}var he=e(()=>{f(),ce(),me(),ue={"en-us":ne,"zh-cn":le}}),be=e(()=>{de(),he()});export{te as a,J as c,C as d,H as f,re as i,I as l,pe as n,se as o,ue as r,oe as s,be as t,E as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,i as s,n as r,o,r as t,t as e}from"./a-routerstack-CwL8iM03.js";e();export{a as ControllerRouterViewStack,o as ModelStack,r as ScopeModuleARouterstack,s as ZRouterViewStack,t as components};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s,i as a,n as o,r,t as p}from"./home-passport-Dfn92lVG.js";p();export{s as ModelPassport,r as Monkey,o as ScopeModuleHomePassport,a as config};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,i as s,n as r,o,r as t,t as e}from"./a-routertabs-B1bLGttt.js";e();export{a as ControllerRouterViewTabs,o as ModelTabs,r as ScopeModuleARoutertabs,s as ZRouterViewTabs,t as components};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,i as s,n as e,r as m,t as o}from"./home-theme-DOTbB8eW.js";o();export{a as CssBase,e as ScopeModuleHomeTheme,s as ThemeDefault,m as ThemeOrange};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as t}from"./rolldown-runtime-DSSfW_98.js";import{C as r,d as s,k as e,p as a,w as o}from"./vue-B6iEDFba.js";import{n}from"./vue-CVoE89_5.js";import{d as i,f as m}from"./fecha-BQnQQpNY.js";import{a as u,i as l,n as f,r as d,t as c}from"./esm-CjUgZy6j.js";function p(t){const s=(()=>{const r=new l(i(i({},t),{},{form:t.form,name:t.name}));return r.Field=v,r})(),a=f(s.store,t=>t);let n;return r(()=>{n=s.mount()}),o(()=>{n()}),e(()=>t,()=>{s.update(i(i({},t),{},{form:t.form}))}),{api:s,state:a}}var v,h=t(()=>{d(),c(),n(),m(),v=s((t,r)=>{const s=p(i(i({},t),r.attrs));return()=>r.slots.default({field:s.api,state:s.state.value})},{name:"Field",inheritAttrs:!1})});function j(t){const e=(()=>{const r=new u(t),e=r;return e.Field=s((t,s)=>()=>a(v,i(i(i({},t),s.attrs),{},{form:r}),s.slots),{name:"APIField",inheritAttrs:!1}),e.useField=t=>p(i(i({},t),{},{form:r})),e.useStore=t=>f(r.store,t),e.Subscribe=s((t,s)=>{var e;const a=null!==(e=i(i({},t),s.attrs).selector)&&void 0!==e?e:t=>t,o=f(r.store,a);return()=>s.slots.default(o.value)},{name:"Subscribe",inheritAttrs:!1}),e})();return r(e.mount),e.update(t),e}var F=t(()=>{d(),c(),n(),h(),m()}),b=t(()=>{d(),c(),h(),F()});export{j as n,p as r,b as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as t}from"./rolldown-runtime-DSSfW_98.js";import{C as e,D as s,E as i,O as n,S as r,T as a,b as o,d as u,f as l,i as h,m as c,p as d,r as f,w as v,x as p,y}from"./fecha-BQnQQpNY.js";import{i as m,n as b,r as g,t as w}from"./extends-CGQ1Wj9A.js";var O,M,S,P,k,q,C,F,R,W=t(()=>{O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}}),A=t(()=>{W(),n(),v(),r(),M=new WeakMap,S=new WeakMap,P=new WeakMap,k=new class extends O{constructor(){super(),s(this,M,void 0),s(this,S,void 0),s(this,P,void 0),e(P,this,t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){p(S,this)||this.setEventListener(p(P,this))}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(S,this))||void 0===t||t.call(this),e(S,this,void 0))}setEventListener(t){var s;e(P,this,t),null===(s=p(S,this))||void 0===s||s.call(this),e(S,this,t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){p(M,this)!==t&&(e(M,this,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return"boolean"==typeof p(M,this)?p(M,this):"hidden"!==(null===(t=globalThis.document)||void 0===t?void 0:t.visibilityState)}}});function j(t){setTimeout(t,0)}var E,T,D,Q=t(()=>{n(),r(),v(),F={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},q=new WeakMap,C=new WeakMap,R=new class{constructor(){s(this,q,F),s(this,C,!1)}setTimeoutProvider(t){e(q,this,t)}setTimeout(t,e){return p(q,this).setTimeout(t,e)}clearTimeout(t){p(q,this).clearTimeout(t)}setInterval(t,e){return p(q,this).setInterval(t,e)}clearInterval(t){p(q,this).clearInterval(t)}}});function x(){}function U(t){return"number"==typeof t&&t>=0&&t!==1/0}function K(t,e){return Math.max(t+(e||0)-Date.now(),0)}function I(t,e){return"function"==typeof t?t(e):t}function L(t,e){return"function"==typeof t?t(e):t}function H(t,e){const{type:s="all",exact:i,fetchStatus:n,predicate:r,queryKey:a,stale:o}=t;if(a)if(i){if(e.queryHash!==N(a,e.options))return!1}else if(!B(e.queryKey,a))return!1;if("all"!==s){const t=e.isActive();if("active"===s&&!t)return!1;if("inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&((!n||n===e.state.fetchStatus)&&!(r&&!r(e)))}function G(t,e){const{exact:s,status:i,predicate:n,mutationKey:r}=t;if(r){if(!e.options.mutationKey)return!1;if(s){if(_(e.options.mutationKey)!==_(r))return!1}else if(!B(e.options.mutationKey,r))return!1}return(!i||e.state.status===i)&&!(n&&!n(e))}function N(t,e){return((null==e?void 0:e.queryKeyHashFn)||_)(t)}function _(t){return JSON.stringify(t,(t,e)=>V(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function B(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&Object.keys(e).every(s=>B(t[s],e[s])))}function z(t,e,s=0){if(t===e)return t;if(s>500)return e;const i=$(t)&&$(e);if(!(i||V(t)&&V(e)))return e;const n=(i?t:Object.keys(t)).length,r=i?e:Object.keys(e),a=r.length,o=i?new Array(a):{};let u=0;for(let l=0;l<a;l++){const a=i?l:r[l],h=t[a],c=e[a];if(h===c){o[a]=h,(i?l<n:T.call(t,a))&&u++;continue}if(null===h||null===c||"object"!=typeof h||"object"!=typeof c){o[a]=c;continue}const d=z(h,c,s+1);o[a]=d,d===h&&u++}return n===a&&u===n?t:o}function J(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function $(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function V(t){if(!X(t))return!1;const e=t.constructor;if(void 0===e)return!0;const s=e.prototype;return!!X(s)&&(!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}function X(t){return"[object Object]"===Object.prototype.toString.call(t)}function Y(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?z(t,e):e}function Z(t,e,s=0){const i=[...t,e];return s&&i.length>s?i.slice(1):i}function tt(t,e,s=0){const i=[e,...t];return s&&i.length>s?i.slice(0,-1):i}function et(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==D?t.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}function st(t,e){return"function"==typeof t?t(...e):!!t}var it,nt=t(()=>{Q(),E="undefined"==typeof window||"Deno"in globalThis,T=Object.prototype.hasOwnProperty,D=Symbol()}),rt=t(()=>{nt(),it=(()=>{let t=()=>E;return{isServer:()=>t(),setIsServer(e){t=e}}})()});function at(){let t,e;const s=new Promise((s,i)=>{t=s,e=i});function i(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{i({status:"fulfilled",value:e}),t(e)},s.reject=t=>{i({status:"rejected",reason:t}),e(t)},s}var ot,ut,lt=t(()=>{nt()});function ht(t){return t}function ct(t){return"success"===t.state.status}function dt(t,e,s){var i,n,r,a;if("object"!=typeof e||null===e)return;const o=t.getMutationCache(),l=t.getQueryCache(),h=null!==(i=null!==(n=null==s||null===(r=s.defaultOptions)||void 0===r?void 0:r.deserializeData)&&void 0!==n?n:null===(a=t.getDefaultOptions().hydrate)||void 0===a?void 0:a.deserializeData)&&void 0!==i?i:ht,c=e.mutations||[],d=e.queries||[];c.forEach(e=>{var i,n;let{state:r}=e,a=f(e,ot);o.build(t,u(u(u({},null===(i=t.getDefaultOptions().hydrate)||void 0===i?void 0:i.mutations),null==s||null===(n=s.defaultOptions)||void 0===n?void 0:n.mutations),a),r)}),d.forEach(({queryKey:e,state:i,queryHash:n,meta:r,promise:a,dehydratedAt:o})=>{const c=a?function(t){var e;let s;if(null===(e=t.then(t=>(s=t,t),x))||void 0===e||e.catch(x),void 0!==s)return{data:s}}(a):void 0,d=void 0===i.data?null==c?void 0:c.data:i.data,v=void 0===d?d:h(d);let p=l.get(n);const y="pending"===(null==p?void 0:p.state.status),m="fetching"===(null==p?void 0:p.state.fetchStatus);if(p){const t=c&&void 0!==o&&o>p.state.dataUpdatedAt;if(i.dataUpdatedAt>p.state.dataUpdatedAt||t){const{fetchStatus:t}=i,e=f(i,ut);p.setState(u(u({},e),{},{data:v}))}}else{var b,g;p=l.build(t,u(u(u({},null===(b=t.getDefaultOptions().hydrate)||void 0===b?void 0:b.queries),null==s||null===(g=s.defaultOptions)||void 0===g?void 0:g.queries),{},{queryKey:e,queryHash:n,meta:r}),u(u({},i),{},{data:v,fetchStatus:"idle",status:void 0!==v?"success":i.status}))}a&&!y&&!m&&(void 0===o||o>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(a).then(h)}).catch(x)})}var ft,vt,pt=t(()=>{lt(),nt(),l(),h(),ot=["state"],ut=["fetchStatus"]});function yt(){let t=[],e=0,s=t=>{t()},i=t=>{t()},n=ft;const r=i=>{e?t.push(i):n(()=>{s(i)})};return{batch:r=>{let a;e++;try{a=r()}finally{e--,e||(()=>{const e=t;t=[],e.length&&n(()=>{i(()=>{e.forEach(t=>{s(t)})})})})()}return a},batchCalls:t=>(...e)=>{r(()=>{t(...e)})},schedule:r,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{n=t}}}var mt,bt,gt,wt,Ot,Mt=t(()=>{Q(),ft=j,vt=yt()}),St=t(()=>{W(),n(),v(),r(),mt=new WeakMap,bt=new WeakMap,gt=new WeakMap,wt=new class extends O{constructor(){super(),s(this,mt,!0),s(this,bt,void 0),s(this,gt,void 0),e(gt,this,t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}})}onSubscribe(){p(bt,this)||this.setEventListener(p(gt,this))}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(bt,this))||void 0===t||t.call(this),e(bt,this,void 0))}setEventListener(t){var s;e(gt,this,t),null===(s=p(bt,this))||void 0===s||s.call(this),e(bt,this,t(this.setOnline.bind(this)))}setOnline(t){p(mt,this)!==t&&(e(mt,this,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return p(mt,this)}}});function Pt(t){return Math.min(1e3*Math.pow(2,t),3e4)}function kt(t){return"online"!==(null!=t?t:"online")||wt.isOnline()}function qt(t){let e,s=!1,i=0;const n=at(),r=()=>"pending"!==n.status,a=()=>k.isFocused()&&("always"===t.networkMode||wt.isOnline())&&t.canRun(),o=()=>kt(t.networkMode)&&t.canRun(),u=t=>{r()||(null==e||e(),n.resolve(t))},l=t=>{r()||(null==e||e(),n.reject(t))},h=()=>new Promise(s=>{var i;e=t=>{(r()||a())&&s(t)},null===(i=t.onPause)||void 0===i||i.call(t)}).then(()=>{var s;(e=void 0,r())||(null===(s=t.onContinue)||void 0===s||s.call(t))}),c=()=>{if(r())return;let e;const n=0===i?t.initialPromise:void 0;try{e=null!=n?n:t.fn()}catch(o){e=Promise.reject(o)}Promise.resolve(e).then(u).catch(e=>{var n,o,u;if(r())return;const d=null!==(n=t.retry)&&void 0!==n?n:it.isServer()?0:3,f=null!==(o=t.retryDelay)&&void 0!==o?o:Pt,v="function"==typeof f?f(i,e):f,p=!0===d||"number"==typeof d&&i<d||"function"==typeof d&&d(i,e);var y;!s&&p?(i++,null===(u=t.onFail)||void 0===u||u.call(t,i,e),(y=v,new Promise(t=>{R.setTimeout(t,y)})).then(()=>a()?void 0:h()).then(()=>{s?l(e):c()})):l(e)})};return{promise:n,status:()=>n.status,cancel:e=>{if(!r()){var s;const i=new Ot(e);l(i),null===(s=t.onCancel)||void 0===s||s.call(t,i)}},continue:()=>(null==e||e(),n),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:o,start:()=>(o()?c():h().then(c),n)}}var Ct,Ft,Rt,Wt,At,jt,Et,Tt,Dt,Qt,xt,Ut=t(()=>{A(),St(),lt(),rt(),nt(),Ot=class extends Error{constructor(t){super("CancelledError"),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}}),Kt=t(()=>{Q(),rt(),nt(),n(),v(),r(),Ct=new WeakMap,Ft=class{constructor(){s(this,Ct,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),U(this.gcTime)&&e(Ct,this,R.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:it.isServer()?1/0:3e5)}clearGcTimeout(){void 0!==p(Ct,this)&&(R.clearTimeout(p(Ct,this)),e(Ct,this,void 0))}}});function It(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}function Lt(t){this.state=(s=>{switch(t.type){case"failed":return u(u({},s),{},{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return u(u({},s),{},{fetchStatus:"paused"});case"continue":return u(u({},s),{},{fetchStatus:"fetching"});case"fetch":var i;return u(u(u({},s),Ht(s.data,this.options)),{},{fetchMeta:null!==(i=t.meta)&&void 0!==i?i:null});case"success":const n=u(u(u({},s),Gt(t.data,t.dataUpdatedAt)),{},{dataUpdateCount:s.dataUpdateCount+1},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return e(Wt,this,t.manual?n:void 0),n;case"error":const r=t.error;return u(u({},s),{},{error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0});case"invalidate":return u(u({},s),{},{isInvalidated:!0});case"setState":return u(u({},s),t.state)}})(this.state),vt.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),p(At,this).notify({query:this,type:"updated",action:t})})}function Ht(t,e){return u({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kt(e.networkMode)?"fetching":"paused"},void 0===t&&{error:null,status:"pending"})}function Gt(t,e){return{data:t,dataUpdatedAt:null!=e?e:Date.now(),error:null,isInvalidated:!1,status:"success"}}function Nt(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var _t,Bt,zt,Jt,$t,Vt,Xt,Yt,Zt,te,ee,se,ie,ne,re,ae,oe,ue=t(()=>{nt(),Mt(),Ut(),Kt(),o(),n(),v(),r(),l(),i(),c(),Rt=new WeakMap,Wt=new WeakMap,At=new WeakMap,jt=new WeakMap,Et=new WeakMap,Tt=new WeakMap,Dt=new WeakMap,Qt=new WeakSet,xt=class extends Ft{constructor(t){var i;super(),y(this,Qt),s(this,Rt,void 0),s(this,Wt,void 0),s(this,At,void 0),s(this,jt,void 0),s(this,Et,void 0),s(this,Tt,void 0),s(this,Dt,void 0),e(Dt,this,!1),e(Tt,this,t.defaultOptions),this.setOptions(t.options),this.observers=[],e(jt,this,t.client),e(At,this,p(jt,this).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,e(Rt,this,Nt(this.options)),this.state=null!==(i=t.state)&&void 0!==i?i:p(Rt,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return null===(t=p(Et,this))||void 0===t?void 0:t.promise}setOptions(t){if(this.options=u(u({},p(Tt,this)),t),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const t=Nt(this.options);void 0!==t.data&&(this.setState(Gt(t.data,t.dataUpdatedAt)),e(Rt,this,t))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||p(At,this).remove(this)}setData(t,e){const s=Y(this.state.data,t,this.options);return a(Qt,this,Lt).call(this,{data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){a(Qt,this,Lt).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,s;const i=null===(e=p(Et,this))||void 0===e?void 0:e.promise;return null===(s=p(Et,this))||void 0===s||s.cancel(t),i?i.then(x).catch(x):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return p(Rt,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==L(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===D||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===I(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!K(this.state.dataUpdatedAt,t))}onFocus(){var t;const e=this.observers.find(t=>t.shouldFetchOnWindowFocus());null==e||e.refetch({cancelRefetch:!1}),null===(t=p(Et,this))||void 0===t||t.continue()}onOnline(){var t;const e=this.observers.find(t=>t.shouldFetchOnReconnect());null==e||e.refetch({cancelRefetch:!1}),null===(t=p(Et,this))||void 0===t||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),p(At,this).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(p(Et,this)&&(p(Dt,this)||a(Qt,this,It).call(this)?p(Et,this).cancel({revert:!0}):p(Et,this).cancelRetry()),this.scheduleGc()),p(At,this).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||a(Qt,this,Lt).call(this,{type:"invalidate"})}fetch(t,s){var i=this;return d(function*(){var n,r,o;if("idle"!==i.state.fetchStatus&&"rejected"!==(null===(n=p(Et,i))||void 0===n?void 0:n.status()))if(void 0!==i.state.data&&(null==s?void 0:s.cancelRefetch))i.cancel({silent:!0});else if(p(Et,i))return p(Et,i).continueRetry(),p(Et,i).promise;if(t&&i.setOptions(t),!i.options.queryFn){const t=i.observers.find(t=>t.options.queryFn);t&&i.setOptions(t.options)}const l=new AbortController,h=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e(Dt,i,!0),l.signal)})},c=()=>{const t=et(i.options,s),n=(()=>{const t={client:p(jt,i),queryKey:i.queryKey,meta:i.meta};return h(t),t})();return e(Dt,i,!1),i.options.persister?i.options.persister(t,n,i):t(n)},d=(()=>{const t={fetchOptions:s,options:i.options,queryKey:i.queryKey,client:p(jt,i),state:i.state,fetchFn:c};return h(t),t})();var f;(null===(r=i.options.behavior)||void 0===r||r.onFetch(d,i),e(Wt,i,i.state),"idle"===i.state.fetchStatus||i.state.fetchMeta!==(null===(o=d.fetchOptions)||void 0===o?void 0:o.meta))&&a(Qt,i,Lt).call(i,{type:"fetch",meta:null===(f=d.fetchOptions)||void 0===f?void 0:f.meta});e(Et,i,qt({initialPromise:null==s?void 0:s.initialPromise,fn:d.fetchFn,onCancel:t=>{t instanceof Ot&&t.revert&&i.setState(u(u({},p(Wt,i)),{},{fetchStatus:"idle"})),l.abort()},onFail:(t,e)=>{a(Qt,i,Lt).call(i,{type:"failed",failureCount:t,error:e})},onPause:()=>{a(Qt,i,Lt).call(i,{type:"pause"})},onContinue:()=>{a(Qt,i,Lt).call(i,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{var v,y,m,b;const t=yield p(Et,i).start();if(void 0===t)throw new Error(`${i.queryHash} data is undefined`);return i.setData(t),null===(v=(y=p(At,i).config).onSuccess)||void 0===v||v.call(y,t,i),null===(m=(b=p(At,i).config).onSettled)||void 0===m||m.call(b,t,i.state.error,i),t}catch(S){var g,w,O,M;if(S instanceof Ot){if(S.silent)return p(Et,i).promise;if(S.revert){if(void 0===i.state.data)throw S;return i.state.data}}throw a(Qt,i,Lt).call(i,{type:"error",error:S}),null===(g=(w=p(At,i).config).onError)||void 0===g||g.call(w,S,i),null===(O=(M=p(At,i).config).onSettled)||void 0===O||O.call(M,i.state.data,S,i),S}finally{i.scheduleGc()}})()}}});function le(t){a(ae,this,ye).call(this);let e=p(Bt,this).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(x)),e}function he(){a(ae,this,ve).call(this);const t=I(this.options.staleTime,p(Bt,this));if(it.isServer()||p(Jt,this).isStale||!U(t))return;const s=K(p(Jt,this).dataUpdatedAt,t)+1;e(se,this,R.setTimeout(()=>{p(Jt,this).isStale||this.updateResult()},s))}function ce(){var t;return null!==(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval(p(Bt,this)):this.options.refetchInterval)&&void 0!==t&&t}function de(t){a(ae,this,pe).call(this),e(ne,this,t),!it.isServer()&&!1!==L(this.options.enabled,p(Bt,this))&&U(p(ne,this))&&0!==p(ne,this)&&e(ie,this,R.setInterval(()=>{(this.options.refetchIntervalInBackground||k.isFocused())&&a(ae,this,le).call(this)},p(ne,this)))}function fe(){a(ae,this,he).call(this),a(ae,this,de).call(this,a(ae,this,ce).call(this))}function ve(){void 0!==p(se,this)&&(R.clearTimeout(p(se,this)),e(se,this,void 0))}function pe(){void 0!==p(ie,this)&&(R.clearInterval(p(ie,this)),e(ie,this,void 0))}function ye(){const t=p(_t,this).getQueryCache().build(p(_t,this),this.options);if(t===p(Bt,this))return;const s=p(Bt,this);e(Bt,this,t),e(zt,this,t.state),this.hasListeners()&&(null==s||s.removeObserver(this),t.addObserver(this))}function me(t){vt.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(p(Jt,this))}),p(_t,this).getQueryCache().notify({query:p(Bt,this),type:"observerResultsUpdated"})})}function be(t,e){return function(t,e){return!1!==L(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&ge(t,e,e.refetchOnMount)}function ge(t,e,s){if(!1!==L(e.enabled,t)&&"static"!==I(e.staleTime,t)){const i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&Oe(t,e)}return!1}function we(t,e,s,i){return(t!==e||!1===L(i.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&Oe(t,s)}function Oe(t,e){return!1!==L(e.enabled,t)&&t.isStaleByTime(I(e.staleTime,t))}var Me=t(()=>{A(),rt(),Mt(),ue(),W(),lt(),nt(),Q(),o(),n(),v(),r(),i(),m(),b(),l(),_t=new WeakMap,Bt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,$t=new WeakMap,Vt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Zt=new WeakMap,te=new WeakMap,ee=new WeakMap,se=new WeakMap,ie=new WeakMap,ne=new WeakMap,re=new WeakMap,ae=new WeakSet,oe=class extends O{constructor(t,i){super(),y(this,ae),s(this,_t,void 0),s(this,Bt,void 0),s(this,zt,void 0),s(this,Jt,void 0),s(this,$t,void 0),s(this,Vt,void 0),s(this,Xt,void 0),s(this,Yt,void 0),s(this,Zt,void 0),s(this,te,void 0),s(this,ee,void 0),s(this,se,void 0),s(this,ie,void 0),s(this,ne,void 0),s(this,re,new Set),this.options=i,e(_t,this,t),e(Yt,this,null),e(Xt,this,at()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(p(Bt,this).addObserver(this),be(p(Bt,this),this.options)?a(ae,this,le).call(this):this.updateResult(),a(ae,this,fe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ge(p(Bt,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ge(p(Bt,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,a(ae,this,ve).call(this),a(ae,this,pe).call(this),p(Bt,this).removeObserver(this)}setOptions(t){const e=this.options,s=p(Bt,this);if(this.options=p(_t,this).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof L(this.options.enabled,p(Bt,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");a(ae,this,ye).call(this),p(Bt,this).setOptions(this.options),e._defaulted&&!J(this.options,e)&&p(_t,this).getQueryCache().notify({type:"observerOptionsUpdated",query:p(Bt,this),observer:this});const i=this.hasListeners();i&&we(p(Bt,this),s,this.options,e)&&a(ae,this,le).call(this),this.updateResult(),!i||p(Bt,this)===s&&L(this.options.enabled,p(Bt,this))===L(e.enabled,p(Bt,this))&&I(this.options.staleTime,p(Bt,this))===I(e.staleTime,p(Bt,this))||a(ae,this,he).call(this);const n=a(ae,this,ce).call(this);!i||p(Bt,this)===s&&L(this.options.enabled,p(Bt,this))===L(e.enabled,p(Bt,this))&&n===p(ne,this)||a(ae,this,de).call(this,n)}getOptimisticResult(t){const s=p(_t,this).getQueryCache().build(p(_t,this),t),i=this.createResult(s,t);var n;return n=i,J(this.getCurrentResult(),n)||(e(Jt,this,i),e(Vt,this,this.options),e($t,this,p(Bt,this).state)),i}getCurrentResult(){return p(Jt,this)}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),null==e||e(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==p(Xt,this).status||p(Xt,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){p(re,this).add(t)}getCurrentQuery(){return p(Bt,this)}refetch(t={}){let e=w({},(g(t),t));return this.fetch(u({},e))}fetchOptimistic(t){const e=p(_t,this).defaultQueryOptions(t),s=p(_t,this).getQueryCache().build(p(_t,this),e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return a(ae,this,le).call(this,u(u({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then(()=>(this.updateResult(),p(Jt,this)))}createResult(t,s){const i=p(Bt,this),n=this.options,r=p(Jt,this),a=p($t,this),o=p(Vt,this),l=t!==i?t.state:p(zt,this),{state:h}=t;let c,d=u({},h),f=!1;if(s._optimisticResults){const e=this.hasListeners(),r=!e&&be(t,s),a=e&&we(t,i,s,n);(r||a)&&(d=u(u({},d),Ht(h.data,t.options))),"isRestoring"===s._optimisticResults&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:m}=d;c=d.data;let b=!1;if(void 0!==s.placeholderData&&void 0===c&&"pending"===m){let t;var g;if((null==r?void 0:r.isPlaceholderData)&&s.placeholderData===(null==o?void 0:o.placeholderData))t=r.data,b=!0;else t="function"==typeof s.placeholderData?s.placeholderData(null===(g=p(ee,this))||void 0===g?void 0:g.state.data,p(ee,this)):s.placeholderData;void 0!==t&&(m="success",c=Y(null==r?void 0:r.data,t,s),f=!0)}if(s.select&&void 0!==c&&!b)if(r&&c===(null==a?void 0:a.data)&&s.select===p(Zt,this))c=p(te,this);else try{e(Zt,this,s.select),c=s.select(c),c=Y(null==r?void 0:r.data,c,s),e(te,this,c),e(Yt,this,null)}catch(q){e(Yt,this,q)}p(Yt,this)&&(v=p(Yt,this),c=p(te,this),y=Date.now(),m="error");const w="fetching"===d.fetchStatus,O="pending"===m,M="error"===m,S=O&&w,P=void 0!==c,k={status:m,fetchStatus:d.fetchStatus,isPending:O,isSuccess:"success"===m,isError:M,isInitialLoading:S,isLoading:S,data:c,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!O,isLoadingError:M&&!P,isPaused:"paused"===d.fetchStatus,isPlaceholderData:f,isRefetchError:M&&P,isStale:Oe(t,s),refetch:this.refetch,promise:p(Xt,this),isEnabled:!1!==L(s.enabled,t)};if(this.options.experimental_prefetchInRender){const s=void 0!==k.data,n="error"===k.status&&!s,r=t=>{n?t.reject(k.error):s&&t.resolve(k.data)},a=()=>{r(e(Xt,this,k.promise=at()))},o=p(Xt,this);switch(o.status){case"pending":t.queryHash===i.queryHash&&r(o);break;case"fulfilled":(n||k.data!==o.value)&&a();break;case"rejected":n&&k.error===o.reason||a()}}return k}updateResult(){const t=p(Jt,this),s=this.createResult(p(Bt,this),this.options);if(e($t,this,p(Bt,this).state),e(Vt,this,this.options),void 0!==p($t,this).data&&e(ee,this,p(Bt,this)),J(s,t))return;e(Jt,this,s);a(ae,this,me).call(this,{listeners:(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!p(re,this).size)return!0;const i=new Set(null!=s?s:p(re,this));return this.options.throwOnError&&i.add("error"),Object.keys(p(Jt,this)).some(e=>{const s=e;return p(Jt,this)[s]!==t[s]&&i.has(s)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&a(ae,this,fe).call(this)}}});function Se(t){return{onFetch:(e,s)=>{var i,n,r;const a=e.options,o=null===(i=e.fetchOptions)||void 0===i||null===(i=i.meta)||void 0===i||null===(i=i.fetchMore)||void 0===i?void 0:i.direction,u=(null===(n=e.state.data)||void 0===n?void 0:n.pages)||[],l=(null===(r=e.state.data)||void 0===r?void 0:r.pageParams)||[];let h={pages:[],pageParams:[]},c=0;const f=(v=d(function*(){let s=!1;const i=t=>{!function(t,e,s){let i,n=!1;Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t;return null!==(t=i)&&void 0!==t||(i=e()),n||(n=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i}})}(t,()=>e.signal,()=>s=!0)},n=et(e.options,e.fetchOptions),r=(f=d(function*(t,r,a){if(s)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);const o=yield n((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:r,direction:a?"backward":"forward",meta:e.options.meta};return i(t),t})()),{maxPages:u}=e.options,l=a?tt:Z;return{pages:l(t.pages,o,u),pageParams:l(t.pageParams,r,u)}}),function(t,e,s){return f.apply(this,arguments)});var f;if(o&&u.length){const t="backward"===o,e=t?ke:Pe,s={pages:u,pageParams:l};h=yield r(s,e(a,s),t)}else{const e=null!=t?t:u.length;do{var v;const t=0===c?null!==(v=l[0])&&void 0!==v?v:a.initialPageParam:Pe(a,h);if(c>0&&null==t)break;h=yield r(h,t),c++}while(c<e)}return h}),function(){return v.apply(this,arguments)});var v;e.options.persister?e.fetchFn=()=>{var t,i;return null===(t=(i=e.options).persister)||void 0===t?void 0:t.call(i,f,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s)}:e.fetchFn=f}}}function Pe(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function ke(t,{pages:e,pageParams:s}){var i;return e.length>0?null===(i=t.getPreviousPageParam)||void 0===i?void 0:i.call(t,e[0],e,s[0],s):void 0}var qe,Ce,Fe,Re,We,Ae,je=t(()=>{nt(),c()});function Ee(t){this.state=(e=>{switch(t.type){case"failed":return u(u({},e),{},{failureCount:t.failureCount,failureReason:t.error});case"pause":return u(u({},e),{},{isPaused:!0});case"continue":return u(u({},e),{},{isPaused:!1});case"pending":return u(u({},e),{},{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 u(u({},e),{},{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return u(u({},e),{},{data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}})(this.state),vt.batch(()=>{p(Ce,this).forEach(e=>{e.onMutationUpdate(t)}),p(Fe,this).notify({mutation:this,type:"updated",action:t})})}var Te,De,Qe,xe,Ue=t(()=>{Mt(),Kt(),Ut(),o(),n(),v(),r(),i(),c(),l(),qe=new WeakMap,Ce=new WeakMap,Fe=new WeakMap,Re=new WeakMap,We=new WeakSet,Ae=class extends Ft{constructor(t){super(),y(this,We),s(this,qe,void 0),s(this,Ce,void 0),s(this,Fe,void 0),s(this,Re,void 0),e(qe,this,t.client),this.mutationId=t.mutationId,e(Fe,this,t.mutationCache),e(Ce,this,[]),this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){p(Ce,this).includes(t)||(p(Ce,this).push(t),this.clearGcTimeout(),p(Fe,this).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){e(Ce,this,p(Ce,this).filter(e=>e!==t)),this.scheduleGc(),p(Fe,this).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){p(Ce,this).length||("pending"===this.state.status?this.scheduleGc():p(Fe,this).remove(this))}continue(){var t,e;return null!==(t=null===(e=p(Re,this))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}execute(t){var s=this;return d(function*(){var i;const n=()=>{a(We,s,Ee).call(s,{type:"continue"})},r={client:p(qe,s),meta:s.options.meta,mutationKey:s.options.mutationKey};e(Re,s,qt({fn:()=>s.options.mutationFn?s.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{a(We,s,Ee).call(s,{type:"failed",failureCount:t,error:e})},onPause:()=>{a(We,s,Ee).call(s,{type:"pause"})},onContinue:n,retry:null!==(i=s.options.retry)&&void 0!==i?i:0,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>p(Fe,s).canRun(s)}));const o="pending"===s.state.status,u=!p(Re,s).canStart();try{var l,h,c,d,f,v,y,m;if(o)n();else{var b,g;a(We,s,Ee).call(s,{type:"pending",variables:t,isPaused:u}),p(Fe,s).config.onMutate&&(yield p(Fe,s).config.onMutate(t,s,r));const e=yield null===(b=(g=s.options).onMutate)||void 0===b?void 0:b.call(g,t,r);e!==s.state.context&&a(We,s,Ee).call(s,{type:"pending",context:e,variables:t,isPaused:u})}const e=yield p(Re,s).start();return yield null===(l=(h=p(Fe,s).config).onSuccess)||void 0===l?void 0:l.call(h,e,t,s.state.context,s,r),yield null===(c=(d=s.options).onSuccess)||void 0===c?void 0:c.call(d,e,t,s.state.context,r),yield null===(f=(v=p(Fe,s).config).onSettled)||void 0===f?void 0:f.call(v,e,null,s.state.variables,s.state.context,s,r),yield null===(y=(m=s.options).onSettled)||void 0===y?void 0:y.call(m,e,null,t,s.state.context,r),a(We,s,Ee).call(s,{type:"success",data:e}),e}catch(F){try{var w,O;yield null===(w=(O=p(Fe,s).config).onError)||void 0===w?void 0:w.call(O,F,t,s.state.context,s,r)}catch(R){Promise.reject(R)}try{var M,S;yield null===(M=(S=s.options).onError)||void 0===M?void 0:M.call(S,F,t,s.state.context,r)}catch(R){Promise.reject(R)}try{var P,k;yield null===(P=(k=p(Fe,s).config).onSettled)||void 0===P?void 0:P.call(k,void 0,F,s.state.variables,s.state.context,s,r)}catch(R){Promise.reject(R)}try{var q,C;yield null===(q=(C=s.options).onSettled)||void 0===q?void 0:q.call(C,void 0,F,t,s.state.context,r)}catch(R){Promise.reject(R)}throw a(We,s,Ee).call(s,{type:"error",error:F}),F}finally{p(Fe,s).runNext(s)}})()}}});function Ke(t){var e;return null===(e=t.options.scope)||void 0===e?void 0:e.id}var Ie,Le,He,Ge,Ne,_e,Be=t(()=>{Mt(),Ue(),nt(),W(),n(),v(),r(),l(),Te=new WeakMap,De=new WeakMap,Qe=new WeakMap,xe=class extends O{constructor(t={}){super(),s(this,Te,void 0),s(this,De,void 0),s(this,Qe,void 0),this.config=t,e(Te,this,new Set),e(De,this,new Map),e(Qe,this,0)}build(t,s,i){var n;const r=new Ae({client:t,mutationCache:this,mutationId:e(Qe,this,(n=p(Qe,this),++n)),options:t.defaultMutationOptions(s),state:i});return this.add(r),r}add(t){p(Te,this).add(t);const e=Ke(t);if("string"==typeof e){const s=p(De,this).get(e);s?s.push(t):p(De,this).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(p(Te,this).delete(t)){const e=Ke(t);if("string"==typeof e){const s=p(De,this).get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&p(De,this).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=Ke(t);if("string"==typeof e){const s=p(De,this).get(e),i=null==s?void 0:s.find(t=>"pending"===t.state.status);return!i||i===t}return!0}runNext(t){const e=Ke(t);if("string"==typeof e){var s,i;const n=null===(s=p(De,this).get(e))||void 0===s?void 0:s.find(e=>e!==t&&e.state.isPaused);return null!==(i=null==n?void 0:n.continue())&&void 0!==i?i:Promise.resolve()}return Promise.resolve()}clear(){vt.batch(()=>{p(Te,this).forEach(t=>{this.notify({type:"removed",mutation:t})}),p(Te,this).clear(),p(De,this).clear()})}getAll(){return Array.from(p(Te,this))}find(t){const e=u({exact:!0},t);return this.getAll().find(t=>G(e,t))}findAll(t={}){return this.getAll().filter(e=>G(t,e))}notify(t){vt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return vt.batch(()=>Promise.all(t.map(t=>t.continue().catch(x))))}}});function ze(){var t,s;const i=null!==(t=null===(s=p(He,this))||void 0===s?void 0:s.state)&&void 0!==t?t:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};e(Le,this,u(u({},i),{},{isPending:"pending"===i.status,isSuccess:"success"===i.status,isError:"error"===i.status,isIdle:"idle"===i.status,mutate:this.mutate,reset:this.reset}))}function Je(t){vt.batch(()=>{if(p(Ge,this)&&this.hasListeners()){const h=p(Le,this).variables,c=p(Le,this).context,d={client:p(Ie,this),meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===(null==t?void 0:t.type)){try{var e,s;null===(e=(s=p(Ge,this)).onSuccess)||void 0===e||e.call(s,t.data,h,c,d)}catch(l){Promise.reject(l)}try{var i,n;null===(i=(n=p(Ge,this)).onSettled)||void 0===i||i.call(n,t.data,null,h,c,d)}catch(l){Promise.reject(l)}}else if("error"===(null==t?void 0:t.type)){try{var r,a;null===(r=(a=p(Ge,this)).onError)||void 0===r||r.call(a,t.error,h,c,d)}catch(l){Promise.reject(l)}try{var o,u;null===(o=(u=p(Ge,this)).onSettled)||void 0===o||o.call(u,void 0,t.error,h,c,d)}catch(l){Promise.reject(l)}}}this.listeners.forEach(t=>{t(p(Le,this))})})}var $e,Ve,Xe,Ye,Ze,ts,es,ss,is,ns,rs,as,os,us,ls=t(()=>{Ue(),Mt(),W(),nt(),o(),n(),v(),i(),r(),l(),Ie=new WeakMap,Le=new WeakMap,He=new WeakMap,Ge=new WeakMap,Ne=new WeakSet,_e=class extends O{constructor(t,i){super(),y(this,Ne),s(this,Ie,void 0),s(this,Le,void 0),s(this,He,void 0),s(this,Ge,void 0),e(Ie,this,t),this.setOptions(i),this.bindMethods(),a(Ne,this,ze).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const s=this.options;this.options=p(Ie,this).defaultMutationOptions(t),J(this.options,s)||p(Ie,this).getMutationCache().notify({type:"observerOptionsUpdated",mutation:p(He,this),observer:this}),(null==s?void 0:s.mutationKey)&&this.options.mutationKey&&_(s.mutationKey)!==_(this.options.mutationKey)?this.reset():"pending"===(null===(e=p(He,this))||void 0===e?void 0:e.state.status)&&p(He,this).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(null===(t=p(He,this))||void 0===t||t.removeObserver(this))}onMutationUpdate(t){a(Ne,this,ze).call(this),a(Ne,this,Je).call(this,t)}getCurrentResult(){return p(Le,this)}reset(){var t;null===(t=p(He,this))||void 0===t||t.removeObserver(this),e(He,this,void 0),a(Ne,this,ze).call(this),a(Ne,this,Je).call(this)}mutate(t,s){var i;return e(Ge,this,s),null===(i=p(He,this))||void 0===i||i.removeObserver(this),e(He,this,p(Ie,this).getMutationCache().build(p(Ie,this),this.options)),p(He,this).addObserver(this),p(He,this).execute(t)}}}),hs=t(()=>{nt(),ue(),Mt(),W(),n(),v(),r(),l(),$e=new WeakMap,Ve=class extends O{constructor(t={}){super(),s(this,$e,void 0),this.config=t,e($e,this,new Map)}build(t,e,s){var i;const n=e.queryKey,r=null!==(i=e.queryHash)&&void 0!==i?i:N(n,e);let a=this.get(r);return a||(a=new xt({client:t,queryKey:n,queryHash:r,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(a)),a}add(t){p($e,this).has(t.queryHash)||(p($e,this).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=p($e,this).get(t.queryHash);e&&(t.destroy(),e===t&&p($e,this).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){vt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return p($e,this).get(t)}getAll(){return[...p($e,this).values()]}find(t){const e=u({exact:!0},t);return this.getAll().find(t=>H(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>H(t,e)):e}notify(t){vt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}}}),cs=t(()=>{nt(),hs(),Be(),A(),St(),Mt(),je(),n(),v(),r(),c(),l(),Xe=new WeakMap,Ye=new WeakMap,Ze=new WeakMap,ts=new WeakMap,es=new WeakMap,ss=new WeakMap,is=new WeakMap,ns=new WeakMap,rs=class{constructor(t={}){s(this,Xe,void 0),s(this,Ye,void 0),s(this,Ze,void 0),s(this,ts,void 0),s(this,es,void 0),s(this,ss,void 0),s(this,is,void 0),s(this,ns,void 0),e(Xe,this,t.queryCache||new Ve),e(Ye,this,t.mutationCache||new xe),e(Ze,this,t.defaultOptions||{}),e(ts,this,new Map),e(es,this,new Map),e(ss,this,0)}mount(){var t,s,i,n=this;(e(ss,this,(t=p(ss,this),++t)),1===p(ss,this))&&(e(is,this,k.subscribe((s=d(function*(t){t&&(yield n.resumePausedMutations(),p(Xe,n).onFocus())}),function(t){return s.apply(this,arguments)}))),e(ns,this,wt.subscribe((i=d(function*(t){t&&(yield n.resumePausedMutations(),p(Xe,n).onOnline())}),function(t){return i.apply(this,arguments)}))))}unmount(){var t,s,i;e(ss,this,(t=p(ss,this),--t)),0===p(ss,this)&&(null===(s=p(is,this))||void 0===s||s.call(this),e(is,this,void 0),null===(i=p(ns,this))||void 0===i||i.call(this),e(ns,this,void 0))}isFetching(t){return p(Xe,this).findAll(u(u({},t),{},{fetchStatus:"fetching"})).length}isMutating(t){return p(Ye,this).findAll(u(u({},t),{},{status:"pending"})).length}getQueryData(t){var e;const s=this.defaultQueryOptions({queryKey:t});return null===(e=p(Xe,this).get(s.queryHash))||void 0===e?void 0:e.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=p(Xe,this).build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(I(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return p(Xe,this).findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),n=p(Xe,this).get(i.queryHash),r=function(t,e){return"function"==typeof t?t(e):t}(e,null==n?void 0:n.state.data);if(void 0!==r)return p(Xe,this).build(this,i).setData(r,u(u({},s),{},{manual:!0}))}setQueriesData(t,e,s){return vt.batch(()=>p(Xe,this).findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){var e;const s=this.defaultQueryOptions({queryKey:t});return null===(e=p(Xe,this).get(s.queryHash))||void 0===e?void 0:e.state}removeQueries(t){const e=p(Xe,this);vt.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=p(Xe,this);return vt.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(u({type:"active"},t),e)))}cancelQueries(t,e={}){const s=u({revert:!0},e),i=vt.batch(()=>p(Xe,this).findAll(t).map(t=>t.cancel(s)));return Promise.all(i).then(x).catch(x)}invalidateQueries(t,e={}){return vt.batch(()=>{var s,i;return p(Xe,this).findAll(t).forEach(t=>{t.invalidate()}),"none"===(null==t?void 0:t.refetchType)?Promise.resolve():this.refetchQueries(u(u({},t),{},{type:null!==(s=null!==(i=null==t?void 0:t.refetchType)&&void 0!==i?i:null==t?void 0:t.type)&&void 0!==s?s:"active"}),e)})}refetchQueries(t,e={}){var s;const i=u(u({},e),{},{cancelRefetch:null===(s=e.cancelRefetch)||void 0===s||s}),n=vt.batch(()=>p(Xe,this).findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(x)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(n).then(x)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=p(Xe,this).build(this,e);return s.isStaleByTime(I(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(x).catch(x)}fetchInfiniteQuery(t){return t.behavior=Se(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(x).catch(x)}ensureInfiniteQueryData(t){return t.behavior=Se(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return wt.isOnline()?p(Ye,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(Xe,this)}getMutationCache(){return p(Ye,this)}getDefaultOptions(){return p(Ze,this)}setDefaultOptions(t){e(Ze,this,t)}setQueryDefaults(t,e){p(ts,this).set(_(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...p(ts,this).values()],s={};return e.forEach(e=>{B(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){p(es,this).set(_(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...p(es,this).values()],s={};return e.forEach(e=>{B(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e=u(u(u(u({},p(Ze,this).queries),this.getQueryDefaults(t.queryKey)),t),{},{_defaulted:!0});return e.queryHash||(e.queryHash=N(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===D&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:u(u(u(u({},p(Ze,this).mutations),(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey)),t),{},{_defaulted:!0})}clear(){p(Xe,this).clear(),p(Ye,this).clear()}}}),ds=t(()=>{}),fs=t(()=>{pt(),Be(),ls(),hs(),cs(),Me(),nt(),ds()});function vs(t){setTimeout(t,0)}var ps=t(()=>{n(),r(),v(),us={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},as=new WeakMap,os=new WeakMap,new class{constructor(){s(this,as,us),s(this,os,!1)}setTimeoutProvider(t){e(as,this,t)}setTimeout(t,e){return p(as,this).setTimeout(t,e)}clearTimeout(t){p(as,this).clearTimeout(t)}setInterval(t,e){return p(as,this).setInterval(t,e)}clearInterval(t){p(as,this).clearInterval(t)}}});function ys(t,e){const{type:s="all",exact:i,fetchStatus:n,predicate:r,queryKey:a,stale:o}=t;if(a)if(i){if(e.queryHash!==function(t,e){return((null==e?void 0:e.queryKeyHashFn)||ms)(t)}(a,e.options))return!1}else if(!bs(e.queryKey,a))return!1;if("all"!==s){const t=e.isActive();if("active"===s&&!t)return!1;if("inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&((!n||n===e.state.fetchStatus)&&!(r&&!r(e)))}function ms(t){return JSON.stringify(t,(t,e)=>function(t){if(!gs(t))return!1;const e=t.constructor;if(void 0===e)return!0;const s=e.prototype;return!!gs(s)&&(!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function bs(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&Object.keys(e).every(s=>bs(t[s],e[s])))}function gs(t){return"[object Object]"===Object.prototype.toString.call(t)}var ws,Os,Ms=t(()=>{"undefined"==typeof window||"Deno"in globalThis});function Ss(){let t=[],e=0,s=t=>{t()},i=t=>{t()},n=ws;const r=i=>{e?t.push(i):n(()=>{s(i)})};return{batch:r=>{let a;e++;try{a=r()}finally{e--,e||(()=>{const e=t;t=[],e.length&&n(()=>{i(()=>{e.forEach(t=>{s(t)})})})})()}return a},batchCalls:t=>(...e)=>{r(()=>{t(...e)})},schedule:r,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{n=t}}}var Ps=t(()=>{ps(),ws=vs,Os=Ss()}),ks=t(()=>{}),qs=t(()=>{Ps(),Ms(),ks()});export{bs as a,Ve as c,oe as d,ct as f,st as g,E as h,ys as i,_e as l,_ as m,Os as n,fs as o,dt as p,ms as r,rs as s,qs as t,xe as u};
|