@kne-components/components-core 0.2.68 → 0.2.70
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/build/asset-manifest.json +104 -104
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1045.c94dc328.chunk.css → 1045.a6b98d5e.chunk.css} +2 -2
- package/build/static/css/{1045.c94dc328.chunk.css.map → 1045.a6b98d5e.chunk.css.map} +1 -1
- package/build/static/css/1046.7589c67f.chunk.css +2 -0
- package/build/static/css/{1046.6eaed26b.chunk.css.map → 1046.7589c67f.chunk.css.map} +1 -1
- package/build/static/css/1153.24020876.chunk.css +2 -0
- package/build/static/css/{1153.30e269be.chunk.css.map → 1153.24020876.chunk.css.map} +1 -1
- package/build/static/css/1554.d3eca279.chunk.css +2 -0
- package/build/static/css/{1554.7f7fa23c.chunk.css.map → 1554.d3eca279.chunk.css.map} +1 -1
- package/build/static/css/2716.f7894793.chunk.css +2 -0
- package/build/static/css/{2716.a5662e2e.chunk.css.map → 2716.f7894793.chunk.css.map} +1 -1
- package/build/static/css/374.e6ed6cbd.chunk.css +12 -0
- package/build/static/css/{374.aeff323c.chunk.css.map → 374.e6ed6cbd.chunk.css.map} +1 -1
- package/build/static/css/3834.4191204f.chunk.css +2 -0
- package/build/static/css/{3834.f08a997c.chunk.css.map → 3834.4191204f.chunk.css.map} +1 -1
- package/build/static/css/3900.30501d52.chunk.css +2 -0
- package/build/static/css/{3900.b13e7aea.chunk.css.map → 3900.30501d52.chunk.css.map} +1 -1
- package/build/static/css/4194.2534e3d9.chunk.css +2 -0
- package/build/static/css/{4194.12f22046.chunk.css.map → 4194.2534e3d9.chunk.css.map} +1 -1
- package/build/static/css/4602.e6d92f8d.chunk.css +2 -0
- package/build/static/css/{4602.10a4bb02.chunk.css.map → 4602.e6d92f8d.chunk.css.map} +1 -1
- package/build/static/css/4666.80283566.chunk.css +2 -0
- package/build/static/css/{4666.6dba6fe9.chunk.css.map → 4666.80283566.chunk.css.map} +1 -1
- package/build/static/css/{5371.8f799fdb.chunk.css → 5371.5bddafd8.chunk.css} +2 -2
- package/build/static/css/{5371.8f799fdb.chunk.css.map → 5371.5bddafd8.chunk.css.map} +1 -1
- package/build/static/css/5807.0391ef8f.chunk.css +2 -0
- package/build/static/css/{5807.1e6fa31a.chunk.css.map → 5807.0391ef8f.chunk.css.map} +1 -1
- package/build/static/css/5965.b78c4dd6.chunk.css +2 -0
- package/build/static/css/{5965.ffb30263.chunk.css.map → 5965.b78c4dd6.chunk.css.map} +1 -1
- package/build/static/css/{624.482f9b32.chunk.css → 624.9fd51df5.chunk.css} +2 -2
- package/build/static/css/{624.482f9b32.chunk.css.map → 624.9fd51df5.chunk.css.map} +1 -1
- package/build/static/css/6756.5909488c.chunk.css +2 -0
- package/build/static/css/{6756.629b3b38.chunk.css.map → 6756.5909488c.chunk.css.map} +1 -1
- package/build/static/css/7227.ea44bbca.chunk.css +2 -0
- package/build/static/css/{7227.fe76a6a0.chunk.css.map → 7227.ea44bbca.chunk.css.map} +1 -1
- package/build/static/css/{7253.a549f4a8.chunk.css → 7253.bdf01217.chunk.css} +2 -2
- package/build/static/css/{7253.a549f4a8.chunk.css.map → 7253.bdf01217.chunk.css.map} +1 -1
- package/build/static/css/7277.7451765b.chunk.css +2 -0
- package/build/static/css/{7277.d1b0af62.chunk.css.map → 7277.7451765b.chunk.css.map} +1 -1
- package/build/static/css/{7334.32c3b9ec.chunk.css → 7334.af40f2af.chunk.css} +2 -2
- package/build/static/css/{7334.32c3b9ec.chunk.css.map → 7334.af40f2af.chunk.css.map} +1 -1
- package/build/static/css/{7866.da8c2bdc.chunk.css → 7866.b783cb29.chunk.css} +2 -2
- package/build/static/css/{7866.da8c2bdc.chunk.css.map → 7866.b783cb29.chunk.css.map} +1 -1
- package/build/static/css/{8503.03118c56.chunk.css → 8503.ad5dd110.chunk.css} +2 -2
- package/build/static/css/{8503.03118c56.chunk.css.map → 8503.ad5dd110.chunk.css.map} +1 -1
- package/build/static/js/1045.ebaa5c97.chunk.js +2 -0
- package/build/static/js/{1045.47dee481.chunk.js.map → 1045.ebaa5c97.chunk.js.map} +1 -1
- package/build/static/js/1046.90abf792.chunk.js +2 -0
- package/build/static/js/{1046.28148504.chunk.js.map → 1046.90abf792.chunk.js.map} +1 -1
- package/build/static/js/1125.ea23f36e.chunk.js +2 -0
- package/build/static/js/1125.ea23f36e.chunk.js.map +1 -0
- package/build/static/js/{1153.77f6d436.chunk.js → 1153.24074b78.chunk.js} +3 -3
- package/build/static/js/{1153.77f6d436.chunk.js.map → 1153.24074b78.chunk.js.map} +1 -1
- package/build/static/js/1554.3f2ccb8f.chunk.js +3 -0
- package/build/static/js/{1554.07b9f8e2.chunk.js.map → 1554.3f2ccb8f.chunk.js.map} +1 -1
- package/build/static/js/1797.a5322bfc.chunk.js +3 -0
- package/build/static/js/{1797.034fc0a9.chunk.js.LICENSE.txt → 1797.a5322bfc.chunk.js.LICENSE.txt} +1 -1
- package/build/static/js/1797.a5322bfc.chunk.js.map +1 -0
- package/build/static/js/2716.ec894ff3.chunk.js +3 -0
- package/build/static/js/{2716.781e9026.chunk.js.map → 2716.ec894ff3.chunk.js.map} +1 -1
- package/build/static/js/3344.5a453b6a.chunk.js +2 -0
- package/build/static/js/3344.5a453b6a.chunk.js.map +1 -0
- package/build/static/js/{374.2cbaa006.chunk.js → 374.5160bcff.chunk.js} +2 -2
- package/build/static/js/374.5160bcff.chunk.js.map +1 -0
- package/build/static/js/{3834.a7ba13fd.chunk.js → 3834.ae2bb6ea.chunk.js} +2 -2
- package/build/static/js/{3834.a7ba13fd.chunk.js.map → 3834.ae2bb6ea.chunk.js.map} +1 -1
- package/build/static/js/3856.dbbd7d2b.chunk.js +2 -0
- package/build/static/js/{3856.d2e76f0b.chunk.js.map → 3856.dbbd7d2b.chunk.js.map} +1 -1
- package/build/static/js/{3900.94aa5ed2.chunk.js → 3900.4d44f9cf.chunk.js} +2 -2
- package/build/static/js/{3900.94aa5ed2.chunk.js.map → 3900.4d44f9cf.chunk.js.map} +1 -1
- package/build/static/js/4194.16e468e9.chunk.js +2 -0
- package/build/static/js/4194.16e468e9.chunk.js.map +1 -0
- package/build/static/js/4602.19b5bfba.chunk.js +2 -0
- package/build/static/js/4602.19b5bfba.chunk.js.map +1 -0
- package/build/static/js/{4666.7e59e6dd.chunk.js → 4666.adf7a2f0.chunk.js} +3 -3
- package/build/static/js/{4666.7e59e6dd.chunk.js.map → 4666.adf7a2f0.chunk.js.map} +1 -1
- package/build/static/js/5371.728efb9c.chunk.js +2 -0
- package/build/static/js/{5371.3f52d98d.chunk.js.map → 5371.728efb9c.chunk.js.map} +1 -1
- package/build/static/js/5807.f93bd322.chunk.js +2 -0
- package/build/static/js/{5807.3d10f6ca.chunk.js.map → 5807.f93bd322.chunk.js.map} +1 -1
- package/build/static/js/5965.bc154431.chunk.js +2 -0
- package/build/static/js/5965.bc154431.chunk.js.map +1 -0
- package/build/static/js/6213.4a765459.chunk.js +2 -0
- package/build/static/js/6213.4a765459.chunk.js.map +1 -0
- package/build/static/js/{624.d47097bb.chunk.js → 624.cb98f028.chunk.js} +2 -2
- package/build/static/js/{624.d47097bb.chunk.js.map → 624.cb98f028.chunk.js.map} +1 -1
- package/build/static/js/6900.683b756c.chunk.js +2 -0
- package/build/static/js/6900.683b756c.chunk.js.map +1 -0
- package/build/static/js/7227.09809189.chunk.js +3 -0
- package/build/static/js/{7227.a730f9c3.chunk.js.map → 7227.09809189.chunk.js.map} +1 -1
- package/build/static/js/7253.df5b6ce1.chunk.js +2 -0
- package/build/static/js/{7253.bb04e01e.chunk.js.map → 7253.df5b6ce1.chunk.js.map} +1 -1
- package/build/static/js/7277.62ba1884.chunk.js +2 -0
- package/build/static/js/{7277.981dfdba.chunk.js.map → 7277.62ba1884.chunk.js.map} +1 -1
- package/build/static/js/7334.2907423f.chunk.js +2 -0
- package/build/static/js/{7334.dda60191.chunk.js.map → 7334.2907423f.chunk.js.map} +1 -1
- package/build/static/js/{7866.1a079305.chunk.js → 7866.3ae1b0f9.chunk.js} +2 -2
- package/build/static/js/{7866.1a079305.chunk.js.map → 7866.3ae1b0f9.chunk.js.map} +1 -1
- package/build/static/js/8503.8d9cec78.chunk.js +2 -0
- package/build/static/js/{8503.a3f1e349.chunk.js.map → 8503.8d9cec78.chunk.js.map} +1 -1
- package/build/static/js/{8731.c8a10276.chunk.js → 8731.5b63acd1.chunk.js} +2 -2
- package/build/static/js/{8731.c8a10276.chunk.js.map → 8731.5b63acd1.chunk.js.map} +1 -1
- package/build/static/js/main.9a21fb34.js +2 -0
- package/build/static/js/main.9a21fb34.js.map +1 -0
- package/package.json +2 -2
- package/build/static/css/1046.6eaed26b.chunk.css +0 -2
- package/build/static/css/1153.30e269be.chunk.css +0 -2
- package/build/static/css/1554.7f7fa23c.chunk.css +0 -2
- package/build/static/css/2716.a5662e2e.chunk.css +0 -2
- package/build/static/css/374.aeff323c.chunk.css +0 -12
- package/build/static/css/3834.f08a997c.chunk.css +0 -2
- package/build/static/css/3900.b13e7aea.chunk.css +0 -2
- package/build/static/css/4194.12f22046.chunk.css +0 -2
- package/build/static/css/4602.10a4bb02.chunk.css +0 -2
- package/build/static/css/4666.6dba6fe9.chunk.css +0 -2
- package/build/static/css/5807.1e6fa31a.chunk.css +0 -2
- package/build/static/css/5965.ffb30263.chunk.css +0 -2
- package/build/static/css/6756.629b3b38.chunk.css +0 -2
- package/build/static/css/7227.fe76a6a0.chunk.css +0 -2
- package/build/static/css/7277.d1b0af62.chunk.css +0 -2
- package/build/static/js/1045.47dee481.chunk.js +0 -2
- package/build/static/js/1046.28148504.chunk.js +0 -2
- package/build/static/js/1125.2ba65e8b.chunk.js +0 -2
- package/build/static/js/1125.2ba65e8b.chunk.js.map +0 -1
- package/build/static/js/1554.07b9f8e2.chunk.js +0 -3
- package/build/static/js/1797.034fc0a9.chunk.js +0 -3
- package/build/static/js/1797.034fc0a9.chunk.js.map +0 -1
- package/build/static/js/2716.781e9026.chunk.js +0 -3
- package/build/static/js/374.2cbaa006.chunk.js.map +0 -1
- package/build/static/js/3856.d2e76f0b.chunk.js +0 -2
- package/build/static/js/4194.7baa521e.chunk.js +0 -2
- package/build/static/js/4194.7baa521e.chunk.js.map +0 -1
- package/build/static/js/4602.4c9e98b9.chunk.js +0 -2
- package/build/static/js/4602.4c9e98b9.chunk.js.map +0 -1
- package/build/static/js/5371.3f52d98d.chunk.js +0 -2
- package/build/static/js/5807.3d10f6ca.chunk.js +0 -2
- package/build/static/js/5965.cf3ddabb.chunk.js +0 -2
- package/build/static/js/5965.cf3ddabb.chunk.js.map +0 -1
- package/build/static/js/6213.0a9707a3.chunk.js +0 -2
- package/build/static/js/6213.0a9707a3.chunk.js.map +0 -1
- package/build/static/js/628.abecee2a.chunk.js +0 -2
- package/build/static/js/628.abecee2a.chunk.js.map +0 -1
- package/build/static/js/6900.e5139539.chunk.js +0 -2
- package/build/static/js/6900.e5139539.chunk.js.map +0 -1
- package/build/static/js/7227.a730f9c3.chunk.js +0 -3
- package/build/static/js/7253.bb04e01e.chunk.js +0 -2
- package/build/static/js/7277.981dfdba.chunk.js +0 -2
- package/build/static/js/7334.dda60191.chunk.js +0 -2
- package/build/static/js/8503.a3f1e349.chunk.js +0 -2
- package/build/static/js/main.791c45ed.js +0 -2
- package/build/static/js/main.791c45ed.js.map +0 -1
- /package/build/static/js/{1153.77f6d436.chunk.js.LICENSE.txt → 1153.24074b78.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.07b9f8e2.chunk.js.LICENSE.txt → 1554.3f2ccb8f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.781e9026.chunk.js.LICENSE.txt → 2716.ec894ff3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.7e59e6dd.chunk.js.LICENSE.txt → 4666.adf7a2f0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.a730f9c3.chunk.js.LICENSE.txt → 7227.09809189.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3344],{93344:(e,t,a)=>{a.r(t),a.d(t,{Consumer:()=>Ot,Global:()=>It,GlobalSetting:()=>At,GlobalValue:()=>Lt,Preset:()=>Vt,Provider:()=>Tt,context:()=>Zt,createContext:()=>wt,default:()=>Zt,useContext:()=>Ct,useGlobalContext:()=>St,useGlobalValue:()=>$t,usePreset:()=>Nt});var s,n,r=a(73884),i=a.n(r);!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const a of e)t[a]=a;return t},e.getValidEnumValues=t=>{const a=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),s={};for(const e of a)s[e]=t[e];return e.objectValues(s)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},e.find=(e,t)=>{for(const a of e)if(t(a))return a},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(s||(s={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(n||(n={}));const o=s.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),d=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?o.promise:"undefined"!==typeof Map&&e instanceof Map?o.map:"undefined"!==typeof Set&&e instanceof Set?o.set:"undefined"!==typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},c=s.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class u extends Error{constructor(e){var t;super(),t=this,this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.issues=[...t.issues,...e]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},a={_errors:[]},s=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(s);else if("invalid_return_type"===n.code)s(n.returnTypeError);else if("invalid_arguments"===n.code)s(n.argumentsError);else if(0===n.path.length)a._errors.push(t(n));else{let e=a,s=0;for(;s<n.path.length;){const a=n.path[s];s===n.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(n))):e[a]=e[a]||{_errors:[]},e=e[a],s++}}};return s(this),a}static assert(e){if(!(e instanceof u))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e.message;const t={},a=[];for(const s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}u.create=e=>new u(e);const l=(e,t)=>{let a;switch(e.code){case c.invalid_type:a=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case c.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,s.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:a=`Unrecognized key(s) in object: ${s.joinValues(e.keys,", ")}`;break;case c.invalid_union:a="Invalid input";break;case c.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${s.joinValues(e.options)}`;break;case c.invalid_enum_value:a=`Invalid enum value. Expected ${s.joinValues(e.options)}, received '${e.received}'`;break;case c.invalid_arguments:a="Invalid function arguments";break;case c.invalid_return_type:a="Invalid function return type";break;case c.invalid_date:a="Invalid date";break;case c.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:s.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case c.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case c.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case c.custom:a="Invalid input";break;case c.invalid_intersection_types:a="Intersection results could not be merged";break;case c.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case c.not_finite:a="Number must be finite";break;default:a=t.defaultError,s.assertNever(e)}return{message:a}};let h=l;function p(){return h}const m=e=>{const{data:t,path:a,errorMaps:s,issueData:n}=e,r=[...a,...n.path||[]],i={...n,path:r};if(void 0!==n.message)return{...n,path:r,message:n.message};let o="";const d=s.filter((e=>!!e)).slice().reverse();for(const c of d)o=c(i,{data:t,defaultError:o}).message;return{...n,path:r,message:o}};function f(e,t){const a=p(),s=m({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===l?void 0:l].filter((e=>!!e))});e.common.issues.push(s)}class v{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const a=[];for(const s of t){if("aborted"===s.status)return y;"dirty"===s.status&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){const a=[];for(const s of t){const e=await s.key,t=await s.value;a.push({key:e,value:t})}return v.mergeObjectSync(e,a)}static mergeObjectSync(e,t){const a={};for(const s of t){const{key:t,value:n}=s;if("aborted"===t.status)return y;if("aborted"===n.status)return y;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof n.value&&!s.alwaysSet||(a[t.value]=n.value)}return{status:e.value,value:a}}}const y=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),_=e=>({status:"valid",value:e}),b=e=>"aborted"===e.status,k=e=>"dirty"===e.status,x=e=>"valid"===e.status,w=e=>"undefined"!==typeof Promise&&e instanceof Promise;function Z(e,t,a,s){if("a"===a&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?s:"a"===a?s.call(e):s?s.value:t.get(e)}function T(e,t,a,s,n){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?n.call(e,a):n?n.value=a:t.set(e,a),a}var O,C,S;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(O||(O={}));class N{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const j=(e,t)=>{if(x(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new u(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};const{errorMap:t,invalid_type_error:a,required_error:s,description:n}=e;if(t&&(a||s))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:n};return{errorMap:(t,n)=>{var r,i;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!==o&&void 0!==o?o:n.defaultError}:"undefined"===typeof n.data?{message:null!==(r=null!==o&&void 0!==o?o:s)&&void 0!==r?r:n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:null!==(i=null!==o&&void 0!==o?o:a)&&void 0!==i?i:n.defaultError}},description:n}}class P{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return d(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:d(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new v,ctx:{common:e.parent.common,data:e.data,parsedType:d(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(w(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){var a;const s={common:{issues:[],async:null!==(a=null===t||void 0===t?void 0:t.async)&&void 0!==a&&a,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:d(e)},n=this._parseSync({data:e,path:s.path,parent:s});return j(s,n)}async parseAsync(e,t){const a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){const a={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:d(e)},s=this._parse({data:e,path:a.path,parent:a}),n=await(w(s)?s:Promise.resolve(s));return j(a,n)}refine(e,t){const a=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,s)=>{const n=e(t),r=()=>s.addIssue({code:c.custom,...a(t)});return"undefined"!==typeof Promise&&n instanceof Promise?n.then((e=>!!e||(r(),!1))):!!n||(r(),!1)}))}refinement(e,t){return this._refinement(((a,s)=>!!e(a)||(s.addIssue("function"===typeof t?t(a,s):t),!1)))}_refinement(e){return new Oe({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ce.create(this,this._def)}nullable(){return Se.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return oe.create(this,this._def)}promise(){return Te.create(this,this._def)}or(e){return ue.create([this,e],this._def)}and(e){return me.create(this,e,this._def)}transform(e){return new Oe({...E(this._def),schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Ne({...E(this._def),innerType:this,defaultValue:t,typeName:Le.ZodDefault})}brand(){return new Ie({typeName:Le.ZodBranded,type:this,...E(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new je({...E(this._def),innerType:this,catchValue:t,typeName:Le.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Re.create(this,e)}readonly(){return Ae.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I=/^c[^\s-]{8,}$/i,R=/^[0-9a-z]+$/,A=/^[0-9A-HJKMNP-TV-Z]{26}$/,$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,M=/^[a-z0-9_-]{21}$/i,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,D=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let V;const z=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,K=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,U=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,B="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",W=new RegExp(`^${B}$`);function F(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function q(e){let t=`${B}T${F(e)}`;const a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}class G extends P{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.string,received:t.parsedType}),y}const t=new v;let a;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(a=this._getOrReturnCtx(e,a),f(a,{code:c.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(a=this._getOrReturnCtx(e,a),f(a,{code:c.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const s=e.data.length>o.value,n=e.data.length<o.value;(s||n)&&(a=this._getOrReturnCtx(e,a),s?f(a,{code:c.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):n&&f(a,{code:c.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)D.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"email",code:c.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)V||(V=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),V.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"emoji",code:c.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)$.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"uuid",code:c.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)M.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"nanoid",code:c.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)I.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"cuid",code:c.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)R.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"cuid2",code:c.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)A.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"ulid",code:c.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(i){a=this._getOrReturnCtx(e,a),f(a,{validation:"url",code:c.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"regex",code:c.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(e,a),f(a,{code:c.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(a=this._getOrReturnCtx(e,a),f(a,{code:c.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(a=this._getOrReturnCtx(e,a),f(a,{code:c.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){q(o).test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{code:c.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){W.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{code:c.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${F(o)}$`).test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{code:c.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?L.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"duration",code:c.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(n=e.data,("v4"!==(r=o.version)&&r||!z.test(n))&&("v6"!==r&&r||!K.test(n))&&(a=this._getOrReturnCtx(e,a),f(a,{validation:"ip",code:c.invalid_string,message:o.message}),t.dirty())):"base64"===o.kind?U.test(e.data)||(a=this._getOrReturnCtx(e,a),f(a,{validation:"base64",code:c.invalid_string,message:o.message}),t.dirty()):s.assertNever(o);var n,r;return{status:t.value,value:e.data}}_regex(e,t,a){return this.refinement((t=>e.test(t)),{validation:t,code:c.invalid_string,...O.errToObj(a)})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...O.errToObj(e)})}url(e){return this._addCheck({kind:"url",...O.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...O.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...O.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...O.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...O.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...O.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...O.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...O.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...O.errToObj(e)})}datetime(e){var t,a;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(a=null===e||void 0===e?void 0:e.local)&&void 0!==a&&a,...O.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...O.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...O.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...O.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...O.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...O.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...O.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...O.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...O.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...O.errToObj(t)})}nonempty(e){return this.min(1,O.errToObj(e))}trim(){return new G({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function J(e,t){const a=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=a>s?a:s;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}G.create=e=>{var t;return new G({checks:[],typeName:Le.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...E(e)})};class Y extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.number,received:t.parsedType}),y}let t;const a=new v;for(const n of this._def.checks)if("int"===n.kind)s.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),f(t,{code:c.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:c.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty())}else"multipleOf"===n.kind?0!==J(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),f(t,{code:c.not_finite,message:n.message}),a.dirty()):s.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,O.toString(t))}gt(e,t){return this.setLimit("min",e,!1,O.toString(t))}lte(e,t){return this.setLimit("max",e,!0,O.toString(t))}lt(e,t){return this.setLimit("max",e,!1,O.toString(t))}setLimit(e,t,a,s){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:O.toString(s)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:O.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:O.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:O.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:O.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:O.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:O.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:O.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:O.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:O.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&s.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const a of this._def.checks){if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Y.create=e=>new Y({checks:[],typeName:Le.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...E(e)});class H extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==o.bigint){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.bigint,received:t.parsedType}),y}let t;const a=new v;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:c.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),f(t,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):s.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,O.toString(t))}gt(e,t){return this.setLimit("min",e,!1,O.toString(t))}lte(e,t){return this.setLimit("max",e,!0,O.toString(t))}lt(e,t){return this.setLimit("max",e,!1,O.toString(t))}setLimit(e,t,a,s){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:O.toString(s)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:O.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:O.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:O.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:O.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:O.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}H.create=e=>{var t;return new H({checks:[],typeName:Le.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...E(e)})};class X extends P{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.boolean,received:t.parsedType}),y}return _(e.data)}}X.create=e=>new X({typeName:Le.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...E(e)});class Q extends P{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.date,received:t.parsedType}),y}if(isNaN(e.data.getTime())){return f(this._getOrReturnCtx(e),{code:c.invalid_date}),y}const t=new v;let a;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),f(a,{code:c.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),f(a,{code:c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):s.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:O.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:O.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:Le.ZodDate,...E(e)});class ee extends P{_parse(e){if(this._getType(e)!==o.symbol){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.symbol,received:t.parsedType}),y}return _(e.data)}}ee.create=e=>new ee({typeName:Le.ZodSymbol,...E(e)});class te extends P{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.undefined,received:t.parsedType}),y}return _(e.data)}}te.create=e=>new te({typeName:Le.ZodUndefined,...E(e)});class ae extends P{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.null,received:t.parsedType}),y}return _(e.data)}}ae.create=e=>new ae({typeName:Le.ZodNull,...E(e)});class se extends P{constructor(){super(...arguments),this._any=!0}_parse(e){return _(e.data)}}se.create=e=>new se({typeName:Le.ZodAny,...E(e)});class ne extends P{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _(e.data)}}ne.create=e=>new ne({typeName:Le.ZodUnknown,...E(e)});class re extends P{_parse(e){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.never,received:t.parsedType}),y}}re.create=e=>new re({typeName:Le.ZodNever,...E(e)});class ie extends P{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.void,received:t.parsedType}),y}return _(e.data)}}ie.create=e=>new ie({typeName:Le.ZodVoid,...E(e)});class oe extends P{_parse(e){const{ctx:t,status:a}=this._processInputParams(e),s=this._def;if(t.parsedType!==o.array)return f(t,{code:c.invalid_type,expected:o.array,received:t.parsedType}),y;if(null!==s.exactLength){const e=t.data.length>s.exactLength.value,n=t.data.length<s.exactLength.value;(e||n)&&(f(t,{code:e?c.too_big:c.too_small,minimum:n?s.exactLength.value:void 0,maximum:e?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(null!==s.minLength&&t.data.length<s.minLength.value&&(f(t,{code:c.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),null!==s.maxLength&&t.data.length>s.maxLength.value&&(f(t,{code:c.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map(((e,a)=>s.type._parseAsync(new N(t,e,t.path,a))))).then((e=>v.mergeArray(a,e)));const n=[...t.data].map(((e,a)=>s.type._parseSync(new N(t,e,t.path,a))));return v.mergeArray(a,n)}get element(){return this._def.type}min(e,t){return new oe({...this._def,minLength:{value:e,message:O.toString(t)}})}max(e,t){return new oe({...this._def,maxLength:{value:e,message:O.toString(t)}})}length(e,t){return new oe({...this._def,exactLength:{value:e,message:O.toString(t)}})}nonempty(e){return this.min(1,e)}}function de(e){if(e instanceof ce){const t={};for(const a in e.shape){const s=e.shape[a];t[a]=Ce.create(de(s))}return new ce({...e._def,shape:()=>t})}return e instanceof oe?new oe({...e._def,type:de(e.element)}):e instanceof Ce?Ce.create(de(e.unwrap())):e instanceof Se?Se.create(de(e.unwrap())):e instanceof fe?fe.create(e.items.map((e=>de(e)))):e}oe.create=(e,t)=>new oe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray,...E(t)});class ce extends P{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=s.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.object,received:t.parsedType}),y}const{status:t,ctx:a}=this._processInputParams(e),{shape:s,keys:n}=this._getCached(),r=[];if(!(this._def.catchall instanceof re&&"strip"===this._def.unknownKeys))for(const o in a.data)n.includes(o)||r.push(o);const i=[];for(const o of n){const e=s[o],t=a.data[o];i.push({key:{status:"valid",value:o},value:e._parse(new N(a,t,a.path,o)),alwaysSet:o in a.data})}if(this._def.catchall instanceof re){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of r)i.push({key:{status:"valid",value:t},value:{status:"valid",value:a.data[t]}});else if("strict"===e)r.length>0&&(f(a,{code:c.unrecognized_keys,keys:r}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of r){const s=a.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new N(a,s,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of i){const a=await t.key,s=await t.value;e.push({key:a,value:s,alwaysSet:t.alwaysSet})}return e})).then((e=>v.mergeObjectSync(t,e))):v.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return O.errToObj,new ce({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{var s,n,r,i;const o=null!==(r=null===(n=(s=this._def).errorMap)||void 0===n?void 0:n.call(s,t,a).message)&&void 0!==r?r:a.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=O.errToObj(e).message)&&void 0!==i?i:o}:{message:o}}}:{}})}strip(){return new ce({...this._def,unknownKeys:"strip"})}passthrough(){return new ce({...this._def,unknownKeys:"passthrough"})}extend(e){return new ce({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ce({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Le.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ce({...this._def,catchall:e})}pick(e){const t={};return s.objectKeys(e).forEach((a=>{e[a]&&this.shape[a]&&(t[a]=this.shape[a])})),new ce({...this._def,shape:()=>t})}omit(e){const t={};return s.objectKeys(this.shape).forEach((a=>{e[a]||(t[a]=this.shape[a])})),new ce({...this._def,shape:()=>t})}deepPartial(){return de(this)}partial(e){const t={};return s.objectKeys(this.shape).forEach((a=>{const s=this.shape[a];e&&!e[a]?t[a]=s:t[a]=s.optional()})),new ce({...this._def,shape:()=>t})}required(e){const t={};return s.objectKeys(this.shape).forEach((a=>{if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof Ce;)e=e._def.innerType;t[a]=e}})),new ce({...this._def,shape:()=>t})}keyof(){return xe(s.objectKeys(this.shape))}}ce.create=(e,t)=>new ce({shape:()=>e,unknownKeys:"strip",catchall:re.create(),typeName:Le.ZodObject,...E(t)}),ce.strictCreate=(e,t)=>new ce({shape:()=>e,unknownKeys:"strict",catchall:re.create(),typeName:Le.ZodObject,...E(t)}),ce.lazycreate=(e,t)=>new ce({shape:e,unknownKeys:"strip",catchall:re.create(),typeName:Le.ZodObject,...E(t)});class ue extends P{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map((async e=>{const a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const s of e)if("dirty"===s.result.status)return t.common.issues.push(...s.ctx.common.issues),s.result;const a=e.map((e=>new u(e.ctx.common.issues)));return f(t,{code:c.invalid_union,unionErrors:a}),y}));{let e;const s=[];for(const r of a){const a={...t,common:{...t.common,issues:[]},parent:null},n=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:a}),a.common.issues.length&&s.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const n=s.map((e=>new u(e)));return f(t,{code:c.invalid_union,unionErrors:n}),y}}get options(){return this._def.options}}ue.create=(e,t)=>new ue({options:e,typeName:Le.ZodUnion,...E(t)});const le=e=>e instanceof be?le(e.schema):e instanceof Oe?le(e.innerType()):e instanceof ke?[e.value]:e instanceof we?e.options:e instanceof Ze?s.objectValues(e.enum):e instanceof Ne?le(e._def.innerType):e instanceof te?[void 0]:e instanceof ae?[null]:e instanceof Ce?[void 0,...le(e.unwrap())]:e instanceof Se?[null,...le(e.unwrap())]:e instanceof Ie||e instanceof Ae?le(e.unwrap()):e instanceof je?le(e._def.innerType):[];class he extends P{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return f(t,{code:c.invalid_type,expected:o.object,received:t.parsedType}),y;const a=this.discriminator,s=t.data[a],n=this.optionsMap.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:c.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),y)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){const s=new Map;for(const n of t){const t=le(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,n)}}return new he({typeName:Le.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...E(a)})}}function pe(e,t){const a=d(e),n=d(t);if(e===t)return{valid:!0,data:e};if(a===o.object&&n===o.object){const a=s.objectKeys(t),n=s.objectKeys(e).filter((e=>-1!==a.indexOf(e))),r={...e,...t};for(const s of n){const a=pe(e[s],t[s]);if(!a.valid)return{valid:!1};r[s]=a.data}return{valid:!0,data:r}}if(a===o.array&&n===o.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let s=0;s<e.length;s++){const n=pe(e[s],t[s]);if(!n.valid)return{valid:!1};a.push(n.data)}return{valid:!0,data:a}}return a===o.date&&n===o.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class me extends P{_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=(e,s)=>{if(b(e)||b(s))return y;const n=pe(e.value,s.value);return n.valid?((k(e)||k(s))&&t.dirty(),{status:t.value,value:n.data}):(f(a,{code:c.invalid_intersection_types}),y)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then((e=>{let[t,a]=e;return s(t,a)})):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}me.create=(e,t,a)=>new me({left:e,right:t,typeName:Le.ZodIntersection,...E(a)});class fe extends P{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.array)return f(a,{code:c.invalid_type,expected:o.array,received:a.parsedType}),y;if(a.data.length<this._def.items.length)return f(a,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),y;!this._def.rest&&a.data.length>this._def.items.length&&(f(a,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...a.data].map(((e,t)=>{const s=this._def.items[t]||this._def.rest;return s?s._parse(new N(a,e,a.path,t)):null})).filter((e=>!!e));return a.common.async?Promise.all(s).then((e=>v.mergeArray(t,e))):v.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new fe({...this._def,rest:e})}}fe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fe({items:e,typeName:Le.ZodTuple,rest:null,...E(t)})};class ve extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.object)return f(a,{code:c.invalid_type,expected:o.object,received:a.parsedType}),y;const s=[],n=this._def.keyType,r=this._def.valueType;for(const i in a.data)s.push({key:n._parse(new N(a,i,a.path,i)),value:r._parse(new N(a,a.data[i],a.path,i)),alwaysSet:i in a.data});return a.common.async?v.mergeObjectAsync(t,s):v.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,a){return new ve(t instanceof P?{keyType:e,valueType:t,typeName:Le.ZodRecord,...E(a)}:{keyType:G.create(),valueType:e,typeName:Le.ZodRecord,...E(t)})}}class ye extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.map)return f(a,{code:c.invalid_type,expected:o.map,received:a.parsedType}),y;const s=this._def.keyType,n=this._def.valueType,r=[...a.data.entries()].map(((e,t)=>{let[r,i]=e;return{key:s._parse(new N(a,r,a.path,[t,"key"])),value:n._parse(new N(a,i,a.path,[t,"value"]))}}));if(a.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const a of r){const s=await a.key,n=await a.value;if("aborted"===s.status||"aborted"===n.status)return y;"dirty"!==s.status&&"dirty"!==n.status||t.dirty(),e.set(s.value,n.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const a of r){const s=a.key,n=a.value;if("aborted"===s.status||"aborted"===n.status)return y;"dirty"!==s.status&&"dirty"!==n.status||t.dirty(),e.set(s.value,n.value)}return{status:t.value,value:e}}}}ye.create=(e,t,a)=>new ye({valueType:t,keyType:e,typeName:Le.ZodMap,...E(a)});class ge extends P{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==o.set)return f(a,{code:c.invalid_type,expected:o.set,received:a.parsedType}),y;const s=this._def;null!==s.minSize&&a.data.size<s.minSize.value&&(f(a,{code:c.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),null!==s.maxSize&&a.data.size>s.maxSize.value&&(f(a,{code:c.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());const n=this._def.valueType;function r(e){const a=new Set;for(const s of e){if("aborted"===s.status)return y;"dirty"===s.status&&t.dirty(),a.add(s.value)}return{status:t.value,value:a}}const i=[...a.data.values()].map(((e,t)=>n._parse(new N(a,e,a.path,t))));return a.common.async?Promise.all(i).then((e=>r(e))):r(i)}min(e,t){return new ge({...this._def,minSize:{value:e,message:O.toString(t)}})}max(e,t){return new ge({...this._def,maxSize:{value:e,message:O.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ge.create=(e,t)=>new ge({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet,...E(t)});class _e extends P{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return f(t,{code:c.invalid_type,expected:o.function,received:t.parsedType}),y;function a(e,a){return m({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,p(),l].filter((e=>!!e)),issueData:{code:c.invalid_arguments,argumentsError:a}})}function s(e,a){return m({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,p(),l].filter((e=>!!e)),issueData:{code:c.invalid_return_type,returnTypeError:a}})}const n={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof Te){const e=this;return _((async function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];const d=new u([]),c=await e._def.args.parseAsync(i,n).catch((e=>{throw d.addIssue(a(i,e)),d})),l=await Reflect.apply(r,this,c);return await e._def.returns._def.type.parseAsync(l,n).catch((e=>{throw d.addIssue(s(l,e)),d}))}))}{const e=this;return _((function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];const d=e._def.args.safeParse(i,n);if(!d.success)throw new u([a(i,d.error)]);const c=Reflect.apply(r,this,d.data),l=e._def.returns.safeParse(c,n);if(!l.success)throw new u([s(c,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return new _e({...this._def,args:fe.create(t).rest(ne.create())})}returns(e){return new _e({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new _e({args:e||fe.create([]).rest(ne.create()),returns:t||ne.create(),typeName:Le.ZodFunction,...E(a)})}}class be extends P{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}be.create=(e,t)=>new be({getter:e,typeName:Le.ZodLazy,...E(t)});class ke extends P{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),y}return{status:"valid",value:e.data}}get value(){return this._def.value}}function xe(e,t){return new we({values:e,typeName:Le.ZodEnum,...E(t)})}ke.create=(e,t)=>new ke({value:e,typeName:Le.ZodLiteral,...E(t)});class we extends P{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),a=this._def.values;return f(t,{expected:s.joinValues(a),received:t.parsedType,code:c.invalid_type}),y}if(Z(this,C,"f")||T(this,C,new Set(this._def.values),"f"),!Z(this,C,"f").has(e.data)){const t=this._getOrReturnCtx(e),a=this._def.values;return f(t,{received:t.data,code:c.invalid_enum_value,options:a}),y}return _(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return we.create(e,{...this._def,...t})}exclude(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return we.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}C=new WeakMap,we.create=xe;class Ze extends P{constructor(){super(...arguments),S.set(this,void 0)}_parse(e){const t=s.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==o.string&&a.parsedType!==o.number){const e=s.objectValues(t);return f(a,{expected:s.joinValues(e),received:a.parsedType,code:c.invalid_type}),y}if(Z(this,S,"f")||T(this,S,new Set(s.getValidEnumValues(this._def.values)),"f"),!Z(this,S,"f").has(e.data)){const e=s.objectValues(t);return f(a,{received:a.data,code:c.invalid_enum_value,options:e}),y}return _(e.data)}get enum(){return this._def.values}}S=new WeakMap,Ze.create=(e,t)=>new Ze({values:e,typeName:Le.ZodNativeEnum,...E(t)});class Te extends P{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return f(t,{code:c.invalid_type,expected:o.promise,received:t.parsedType}),y;const a=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return _(a.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Te.create=(e,t)=>new Te({type:e,typeName:Le.ZodPromise,...E(t)});class Oe extends P{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:a}=this._processInputParams(e),n=this._def.effect||null,r={addIssue:e=>{f(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){const e=n.transform(a.data,r);if(a.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return y;const s=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===s.status?y:"dirty"===s.status||"dirty"===t.value?g(s.value):s}));{if("aborted"===t.value)return y;const s=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===s.status?y:"dirty"===s.status||"dirty"===t.value?g(s.value):s}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,r);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===a.common.async){const s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===s.status?y:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((a=>"aborted"===a.status?y:("dirty"===a.status&&t.dirty(),e(a.value).then((()=>({status:t.value,value:a.value}))))))}if("transform"===n.type){if(!1===a.common.async){const e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!x(e))return e;const s=n.transform(e.value,r);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((e=>x(e)?Promise.resolve(n.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}s.assertNever(n)}}Oe.create=(e,t,a)=>new Oe({schema:e,typeName:Le.ZodEffects,effect:t,...E(a)}),Oe.createWithPreprocess=(e,t,a)=>new Oe({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects,...E(a)});class Ce extends P{_parse(e){return this._getType(e)===o.undefined?_(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:Le.ZodOptional,...E(t)});class Se extends P{_parse(e){return this._getType(e)===o.null?_(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Se.create=(e,t)=>new Se({innerType:e,typeName:Le.ZodNullable,...E(t)});class Ne extends P{_parse(e){const{ctx:t}=this._processInputParams(e);let a=t.data;return t.parsedType===o.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Le.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...E(t)});class je extends P{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return w(s)?s.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new u(a.common.issues)},input:a.data})}))):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new u(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}je.create=(e,t)=>new je({innerType:e,typeName:Le.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...E(t)});class Ee extends P{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return f(t,{code:c.invalid_type,expected:o.nan,received:t.parsedType}),y}return{status:"valid",value:e.data}}}Ee.create=e=>new Ee({typeName:Le.ZodNaN,...E(e)});const Pe=Symbol("zod_brand");class Ie extends P{_parse(e){const{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class Re extends P{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?y:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})()}{const e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?y:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new Re({in:e,out:t,typeName:Le.ZodPipeline})}}class Ae extends P{_parse(e){const t=this._def.innerType._parse(e),a=e=>(x(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then((e=>a(e))):a(t)}unwrap(){return this._def.innerType}}function $e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;return e?se.create().superRefine(((s,n)=>{var r,i;if(!e(s)){const e="function"===typeof t?t(s):"string"===typeof t?{message:t}:t,o=null===(i=null!==(r=e.fatal)&&void 0!==r?r:a)||void 0===i||i,d="string"===typeof e?{message:e}:e;n.addIssue({code:"custom",...d,fatal:o})}})):se.create()}Ae.create=(e,t)=>new Ae({innerType:e,typeName:Le.ZodReadonly,...E(t)});const Me={object:ce.lazycreate};var Le;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Le||(Le={}));const De=G.create,Ve=Y.create,ze=Ee.create,Ke=H.create,Ue=X.create,Be=Q.create,We=ee.create,Fe=te.create,qe=ae.create,Ge=se.create,Je=ne.create,Ye=re.create,He=ie.create,Xe=oe.create,Qe=ce.create,et=ce.strictCreate,tt=ue.create,at=he.create,st=me.create,nt=fe.create,rt=ve.create,it=ye.create,ot=ge.create,dt=_e.create,ct=be.create,ut=ke.create,lt=we.create,ht=Ze.create,pt=Te.create,mt=Oe.create,ft=Ce.create,vt=Se.create,yt=Oe.createWithPreprocess,gt=Re.create,_t={string:e=>G.create({...e,coerce:!0}),number:e=>Y.create({...e,coerce:!0}),boolean:e=>X.create({...e,coerce:!0}),bigint:e=>H.create({...e,coerce:!0}),date:e=>Q.create({...e,coerce:!0})},bt=y;var kt=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){h=e},getErrorMap:p,makeIssue:m,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:v,INVALID:y,DIRTY:g,OK:_,isAborted:b,isDirty:k,isValid:x,isAsync:w,get util(){return s},get objectUtil(){return n},ZodParsedType:o,getParsedType:d,ZodType:P,datetimeRegex:q,ZodString:G,ZodNumber:Y,ZodBigInt:H,ZodBoolean:X,ZodDate:Q,ZodSymbol:ee,ZodUndefined:te,ZodNull:ae,ZodAny:se,ZodUnknown:ne,ZodNever:re,ZodVoid:ie,ZodArray:oe,ZodObject:ce,ZodUnion:ue,ZodDiscriminatedUnion:he,ZodIntersection:me,ZodTuple:fe,ZodRecord:ve,ZodMap:ye,ZodSet:ge,ZodFunction:_e,ZodLazy:be,ZodLiteral:ke,ZodEnum:we,ZodNativeEnum:Ze,ZodPromise:Te,ZodEffects:Oe,ZodTransformer:Oe,ZodOptional:Ce,ZodNullable:Se,ZodDefault:Ne,ZodCatch:je,ZodNaN:Ee,BRAND:Pe,ZodBranded:Ie,ZodPipeline:Re,ZodReadonly:Ae,custom:$e,Schema:P,ZodSchema:P,late:Me,get ZodFirstPartyTypeKind(){return Le},coerce:_t,any:Ge,array:Xe,bigint:Ke,boolean:Ue,date:Be,discriminatedUnion:at,effect:mt,enum:lt,function:dt,instanceof:function(e){return $e((t=>t instanceof e),arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:`Input not instance of ${e.name}`})},intersection:st,lazy:ct,literal:ut,map:it,nan:ze,nativeEnum:ht,never:Ye,null:qe,nullable:vt,number:Ve,object:Qe,oboolean:()=>Ue().optional(),onumber:()=>Ve().optional(),optional:ft,ostring:()=>De().optional(),pipeline:gt,preprocess:yt,promise:pt,record:rt,set:ot,strictObject:et,string:De,symbol:We,transformer:mt,tuple:nt,undefined:Fe,union:tt,unknown:Je,void:He,NEVER:bt,ZodIssueCode:c,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:u});const xt=function(){const{name:e,callback:t,description:a}="string"===typeof(arguments.length<=0?void 0:arguments[0])?{name:arguments.length<=0?void 0:arguments[0],callback:arguments.length<=1?void 0:arguments[1],description:arguments.length<=2?void 0:arguments[2]}:{callback:arguments.length<=0?void 0:arguments[0],description:arguments.length<=1?void 0:arguments[1]},s=t(kt),{props:n,required:r}=Array.isArray(s)?{props:s[0],required:s[1]}:{props:s,required:void 0},i=kt.object(n).required(r).describe(a||""),o=e=>i.passthrough().parse(e);return o.identifier=e,o.schema=i,o},wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,r.createContext)(e),{Provider:a,Consumer:s}=t;return{context:t,Provider:a,Consumer:s,useContext:()=>(0,r.useContext)(t)}},Zt=wt({}),{Provider:Tt,Consumer:Ot,useContext:Ct}=Zt,St=Ct,Nt=()=>{const e=Ct();return Object.assign({},{apis:{}},null==e?void 0:e.preset)};function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},jt.apply(null,arguments)}const Et=["preset","children"],Pt=xt("Global",(e=>({preset:e.unknown().default({}).describe("global\u4e2d\u7684\u9884\u8bbe\u53c2\u6570\uff0c\u7ec4\u4ef6\u521d\u59cb\u5316\u65f6\u4f20\u5165\u4e0d\u53ef\u4fee\u6539"),children:e.unknown()})),"context\u7684Provider"),It=e=>{const t=Pt(e),{preset:a,children:s}=t,n=function(e,t){if(null==e)return{};var a={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;a[s]=e[s]}return a}(t,Et),[o,d]=(0,r.useState)({}),c=(0,r.useCallback)(((e,t)=>{d((a=>Object.assign({},a,{[e]:"function"===typeof t?t(a[e]):t})))}),[]);return i().createElement(Tt,{value:jt({},n,{global:o,preset:a,setGlobal:d,setGlobalWithKey:c})},s)},Rt=xt("GlobalSetting",(e=>({loader:e.function().describe("\u8bbe\u7f6e\u5230global\u7684\u503c\uff0c\u4e3a\u4e00\u4e2a\u6216\u591a\u4e2a\u952e\u503c\u5bf9\uff0c\u5c06\u4f1a\u548c\u4e4b\u524d\u7684global\u8fdb\u884cObject.assign\u5408\u5e76").returns(e.promise(e.unknown())),needReady:e.boolean().default(!0).describe("\u662f\u5426\u5728global\u503c\u8bbe\u7f6e\u597d\u4e4b\u524d\u4e0d\u663e\u793achildren"),children:e.unknown()})),"\u8bbe\u7f6eglobal\u7684\u503c\uff0c\u901a\u5e38\u662f\u901a\u8fc7\u5f02\u6b65\u83b7\u53d6"),At=e=>{const{loader:t,needReady:a,children:s}=Rt(e),[n,i]=(0,r.useState)(!1),{global:o,setGlobal:d}=Ct(),c=(0,r.useRef)(null),u=(0,r.useRef)(t);return(0,r.useEffect)((()=>{u.current().then((e=>{d((t=>{const a=Object.assign({},t,e);return c.current=a,a}))}))}),[]),(0,r.useEffect)((()=>{o===c.current&&i(!0)}),[o]),a&&!n?null:s},$t=function(){const{name:e,callback:t,description:a}="string"===typeof(arguments.length<=0?void 0:arguments[0])?{name:arguments.length<=0?void 0:arguments[0],callback:arguments.length<=1?void 0:arguments[1],description:arguments.length<=2?void 0:arguments[2]}:{callback:arguments.length<=0?void 0:arguments[0],description:arguments.length<=1?void 0:arguments[1]},{args:s,returns:n}=t(kt),r=kt.function().args(...s);n&&r.returns(n),r.describe(a||"");const i=e=>r.parse(e);return i.identifier=e,i.schema=r,i}("useGlobalValue",(e=>({args:[e.string().describe("globalKey:\u9700\u8981\u4eceglobal\u83b7\u53d6\u7684\u503c")],returns:e.unknown().describe("\u83b7\u53d6\u5230\u7684global\u7684key\u7684\u503c")})),"\u83b7\u53d6global\u91cc\u9762\u7684globalKey\u5bf9\u5e94\u7684\u503c\u7684hooks")((e=>{const{global:t}=Ct();return t[e]})),Mt=xt("GlobalValue",(e=>[{globalKey:e.string().describe("\u9700\u8981\u83b7\u53d6\u7684global\u7684key"),children:e.function().args(e.object({value:e.unknown().describe("\u83b7\u53d6\u5230\u7684global\u7684key\u7684\u503c")}))},{children:!0,globalKey:!0}]),"\u83b7\u53d6global\u4e2dglobalKey\u7684\u503c"),Lt=e=>{const{globalKey:t,children:a}=Mt(e);return a({value:$t(t)})},Dt=xt("Preset",(e=>[{children:e.function().args(e.unknown().describe("\u9884\u8bbe\u5bf9\u8c61")).describe("\u63a5\u6536\u9884\u8bbe\u5bf9\u8c61\u7684\u65b9\u6cd5")},{children:!0}]),"\u83b7\u53d6Preset\u7684\u503c"),Vt=e=>{const{children:t}=Dt(e);return t(Nt())}}}]);
|
|
2
|
+
//# sourceMappingURL=3344.5a453b6a.chunk.js.map
|