@techdocs/cli 1.10.4 → 1.10.5-next.0

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.
Files changed (101) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bin/techdocs-cli +4 -2
  3. package/dist/commands/generate/generate.cjs.js +1 -1
  4. package/dist/commands/generate/generate.cjs.js.map +1 -1
  5. package/dist/commands/publish/publish.cjs.js +1 -1
  6. package/dist/commands/publish/publish.cjs.js.map +1 -1
  7. package/dist/commands/serve/serve.cjs.js +1 -1
  8. package/dist/commands/serve/serve.cjs.js.map +1 -1
  9. package/dist/embedded-app/.config-schema.json +0 -33
  10. package/dist/embedded-app/index.html +1 -1
  11. package/dist/embedded-app/index.html.tmpl +1 -1
  12. package/dist/embedded-app/static/1749.b97ecd54.chunk.js +2 -0
  13. package/dist/embedded-app/static/{1749.12caaf36.chunk.js.map → 1749.b97ecd54.chunk.js.map} +1 -1
  14. package/dist/embedded-app/static/1994.4ab66df0.chunk.js +2 -0
  15. package/dist/embedded-app/static/{1994.10e5e0a5.chunk.js.map → 1994.4ab66df0.chunk.js.map} +1 -1
  16. package/dist/embedded-app/static/4645.cc59b13f.chunk.js +2 -0
  17. package/dist/embedded-app/static/{4645.2529d0aa.chunk.js.map → 4645.cc59b13f.chunk.js.map} +1 -1
  18. package/dist/embedded-app/static/{6138.9fb528c4.chunk.js → 4648.da64256f.chunk.js} +2 -2
  19. package/dist/embedded-app/static/{4648.df344fd4.chunk.js.map → 4648.da64256f.chunk.js.map} +1 -1
  20. package/dist/embedded-app/static/6138.d73686cf.chunk.js +2 -0
  21. package/dist/embedded-app/static/{6138.9fb528c4.chunk.js.map → 6138.d73686cf.chunk.js.map} +1 -1
  22. package/dist/embedded-app/static/7174.820ed772.chunk.js +2 -0
  23. package/dist/embedded-app/static/7174.820ed772.chunk.js.map +1 -0
  24. package/dist/embedded-app/static/{7186.0b7e4914.chunk.js → 7186.52010672.chunk.js} +2 -2
  25. package/dist/embedded-app/static/{7186.0b7e4914.chunk.js.map → 7186.52010672.chunk.js.map} +1 -1
  26. package/dist/embedded-app/static/7203.a3686a7b.chunk.js +2 -0
  27. package/dist/embedded-app/static/{7203.c157eeae.chunk.js.map → 7203.a3686a7b.chunk.js.map} +1 -1
  28. package/dist/embedded-app/static/7382.3e144128.chunk.js +2 -0
  29. package/dist/embedded-app/static/{7382.75824f8e.chunk.js.map → 7382.3e144128.chunk.js.map} +1 -1
  30. package/dist/embedded-app/static/7526.1ff30a44.chunk.js +2 -0
  31. package/dist/embedded-app/static/{7526.dd1429dd.chunk.js.map → 7526.1ff30a44.chunk.js.map} +1 -1
  32. package/dist/embedded-app/static/9050.c23899d5.chunk.js +2 -0
  33. package/dist/embedded-app/static/{9050.21dcd5d1.chunk.js.map → 9050.c23899d5.chunk.js.map} +1 -1
  34. package/dist/embedded-app/static/9230.99f9d012.chunk.js +2 -0
  35. package/dist/embedded-app/static/{9230.885db42d.chunk.js.map → 9230.99f9d012.chunk.js.map} +1 -1
  36. package/dist/embedded-app/static/9579.0eda17f2.chunk.js +2 -0
  37. package/dist/embedded-app/static/{9579.84d1dba2.chunk.js.map → 9579.0eda17f2.chunk.js.map} +1 -1
  38. package/dist/embedded-app/static/main.4899331a.js +527 -0
  39. package/dist/embedded-app/static/main.4899331a.js.map +1 -0
  40. package/dist/embedded-app/static/main.831e465c.css +2 -0
  41. package/dist/embedded-app/static/main.831e465c.css.map +1 -0
  42. package/dist/embedded-app/static/{module-date-fns.fe699224.js → module-date-fns.bfd1b82f.js} +2 -2
  43. package/dist/embedded-app/static/{module-date-fns.fe699224.js.map → module-date-fns.bfd1b82f.js.map} +1 -1
  44. package/dist/embedded-app/static/module-i18next.c154323c.js +2 -0
  45. package/dist/embedded-app/static/{module-i18next.685d0b2d.js.map → module-i18next.c154323c.js.map} +1 -1
  46. package/dist/embedded-app/static/module-lodash.c50623b1.js +2 -0
  47. package/dist/embedded-app/static/module-lodash.c50623b1.js.map +1 -0
  48. package/dist/embedded-app/static/module-material-table.40a11f4e.js +2 -0
  49. package/dist/embedded-app/static/{module-material-table.5a3a2d93.js.map → module-material-table.40a11f4e.js.map} +1 -1
  50. package/dist/embedded-app/static/module-material-ui.3c48b777.js +2 -0
  51. package/dist/embedded-app/static/{module-material-ui.9517effb.js.map → module-material-ui.3c48b777.js.map} +1 -1
  52. package/dist/embedded-app/static/module-mui.c5efba64.js +2 -0
  53. package/dist/embedded-app/static/{module-mui.375d6d62.js.map → module-mui.c5efba64.js.map} +1 -1
  54. package/dist/embedded-app/static/{module-react-beautiful-dnd.29de0c3a.js → module-react-beautiful-dnd.6e061f96.js} +2 -2
  55. package/dist/embedded-app/static/{module-react-beautiful-dnd.29de0c3a.js.map → module-react-beautiful-dnd.6e061f96.js.map} +1 -1
  56. package/dist/embedded-app/static/module-react-dom.c631e87d.js +2 -0
  57. package/dist/embedded-app/static/{module-react-dom.44002a3f.js.map → module-react-dom.c631e87d.js.map} +1 -1
  58. package/dist/embedded-app/static/module-remix-run.d87774b0.js +2 -0
  59. package/dist/embedded-app/static/{module-remix-run.8b5ff4b7.js.map → module-remix-run.d87774b0.js.map} +1 -1
  60. package/dist/embedded-app/static/module-zod.c31bff05.js +2 -0
  61. package/dist/embedded-app/static/{module-zod.4600b494.js.map → module-zod.c31bff05.js.map} +1 -1
  62. package/dist/embedded-app/static/react-syntax-highlighter/lowlight-import.df3f7284.chunk.js +2 -0
  63. package/dist/embedded-app/static/react-syntax-highlighter/{lowlight-import.7b0d2cbc.chunk.js.map → lowlight-import.df3f7284.chunk.js.map} +1 -1
  64. package/dist/embedded-app/static/{runtime.f12aa553.js → runtime.f9c0ec96.js} +2 -2
  65. package/dist/embedded-app/static/{runtime.f12aa553.js.map → runtime.f9c0ec96.js.map} +1 -1
  66. package/dist/embedded-app/static/vendor.e4357869.js +2 -0
  67. package/dist/embedded-app/static/{vendor.c30d98c8.js.map → vendor.e4357869.js.map} +1 -1
  68. package/dist/lib/httpServer.cjs.js +1 -1
  69. package/dist/lib/httpServer.cjs.js.map +1 -1
  70. package/dist/lib/livereload.cjs.js.map +1 -1
  71. package/dist/lib/utility.cjs.js +4 -4
  72. package/dist/lib/utility.cjs.js.map +1 -1
  73. package/dist/package.json.cjs.js +1 -1
  74. package/package.json +7 -7
  75. package/dist/embedded-app/static/1749.12caaf36.chunk.js +0 -2
  76. package/dist/embedded-app/static/1994.10e5e0a5.chunk.js +0 -2
  77. package/dist/embedded-app/static/3222.d20eecea.chunk.js +0 -2
  78. package/dist/embedded-app/static/3222.d20eecea.chunk.js.map +0 -1
  79. package/dist/embedded-app/static/4645.2529d0aa.chunk.js +0 -2
  80. package/dist/embedded-app/static/4648.df344fd4.chunk.js +0 -2
  81. package/dist/embedded-app/static/7203.c157eeae.chunk.js +0 -2
  82. package/dist/embedded-app/static/7382.75824f8e.chunk.js +0 -2
  83. package/dist/embedded-app/static/7526.dd1429dd.chunk.js +0 -2
  84. package/dist/embedded-app/static/9050.21dcd5d1.chunk.js +0 -2
  85. package/dist/embedded-app/static/9230.885db42d.chunk.js +0 -2
  86. package/dist/embedded-app/static/9579.84d1dba2.chunk.js +0 -2
  87. package/dist/embedded-app/static/main.0c6dd09c.css +0 -2
  88. package/dist/embedded-app/static/main.0c6dd09c.css.map +0 -1
  89. package/dist/embedded-app/static/main.bd200dfa.js +0 -550
  90. package/dist/embedded-app/static/main.bd200dfa.js.map +0 -1
  91. package/dist/embedded-app/static/module-i18next.685d0b2d.js +0 -2
  92. package/dist/embedded-app/static/module-lodash.7d4f904e.js +0 -2
  93. package/dist/embedded-app/static/module-lodash.7d4f904e.js.map +0 -1
  94. package/dist/embedded-app/static/module-material-table.5a3a2d93.js +0 -2
  95. package/dist/embedded-app/static/module-material-ui.9517effb.js +0 -2
  96. package/dist/embedded-app/static/module-mui.375d6d62.js +0 -2
  97. package/dist/embedded-app/static/module-react-dom.44002a3f.js +0 -2
  98. package/dist/embedded-app/static/module-remix-run.8b5ff4b7.js +0 -2
  99. package/dist/embedded-app/static/module-zod.4600b494.js +0 -2
  100. package/dist/embedded-app/static/react-syntax-highlighter/lowlight-import.7b0d2cbc.chunk.js +0 -2
  101. package/dist/embedded-app/static/vendor.c30d98c8.js +0 -2
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["9343"],{31533(e,t,a){var r,s,i,n,d,u,o;let l;a.d(t,{E$:()=>eE,bz:()=>eN,g1:()=>eR,RZ:()=>e$,Ik:()=>ej,YO:()=>eS,Yj:()=>eA,eu:()=>eP,KC:()=>eI}),(d=r||(r={})).assertEqual=e=>{},d.assertIs=function(e){},d.assertNever=function(e){throw Error()},d.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},d.getValidEnumValues=e=>{let t=d.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),a={};for(let r of t)a[r]=e[r];return d.objectValues(a)},d.objectValues=e=>d.objectKeys(e).map(function(t){return e[t]}),d.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},d.find=(e,t)=>{for(let a of e)if(t(a))return a},d.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,d.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},d.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let c=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),h=e=>{switch(typeof e){case"undefined":return c.undefined;case"string":return c.string;case"number":return Number.isNaN(e)?c.nan:c.number;case"boolean":return c.boolean;case"function":return c.function;case"bigint":return c.bigint;case"symbol":return c.symbol;case"object":if(Array.isArray(e))return c.array;if(null===e)return c.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return c.promise;if("undefined"!=typeof Map&&e instanceof Map)return c.map;if("undefined"!=typeof Set&&e instanceof Set)return c.set;if("undefined"!=typeof Date&&e instanceof Date)return c.date;return c.object;default:return c.unknown}},p=r.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 m extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},a={_errors:[]},r=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(r);else if("invalid_return_type"===s.code)r(s.returnTypeError);else if("invalid_arguments"===s.code)r(s.argumentsError);else if(0===s.path.length)a._errors.push(t(s));else{let e=a,r=0;for(;r<s.path.length;){let a=s.path[r];r===s.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(s))):e[a]=e[a]||{_errors:[]},e=e[a],r++}}};return r(this),a}static assert(e){if(!(e instanceof m))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let r of this.issues)if(r.path.length>0){let a=r.path[0];t[a]=t[a]||[],t[a].push(e(r))}else a.push(e(r));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}m.create=e=>new m(e);let f=(e,t)=>{let a;switch(e.code){case p.invalid_type:a=e.received===c.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:a=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case p.invalid_union:a="Invalid input";break;case p.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case p.invalid_enum_value:a=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case p.invalid_arguments:a="Invalid function arguments";break;case p.invalid_return_type:a="Invalid function return type";break;case p.invalid_date:a="Invalid date";break;case p.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}"`:r.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case p.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||"bigint"===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 p.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 p.custom:a="Invalid input";break;case p.invalid_intersection_types:a="Intersection results could not be merged";break;case p.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case p.not_finite:a="Number must be finite";break;default:a=t.defaultError,r.assertNever(e)}return{message:a}};(u=i||(i={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},u.toString=e=>"string"==typeof e?e:e?.message;let _=e=>{let{data:t,path:a,errorMaps:r,issueData:s}=e,i=[...a,...s.path||[]],n={...s,path:i};if(void 0!==s.message)return{...s,path:i,message:s.message};let d="";for(let e of r.filter(e=>!!e).slice().reverse())d=e(n,{data:t,defaultError:d}).message;return{...s,path:i,message:d}};function y(e,t){let a=_({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,f,void 0].filter(e=>!!e)});e.common.issues.push(a)}class g{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let r of t){if("aborted"===r.status)return v;"dirty"===r.status&&e.dirty(),a.push(r.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,r=await e.value;a.push({key:t,value:r})}return g.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let r of t){let{key:t,value:s}=r;if("aborted"===t.status||"aborted"===s.status)return v;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==s.value||r.alwaysSet)&&(a[t.value]=s.value)}return{status:e.value,value:a}}}let v=Object.freeze({status:"aborted"}),k=e=>({status:"dirty",value:e}),b=e=>({status:"valid",value:e}),x=e=>"undefined"!=typeof Promise&&e instanceof Promise;class w{constructor(e,t,a,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let T=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new m(e.common.issues);return this._error=t,this._error}}};function Z(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:s}=e;if(t&&(a||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(t,s)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??s.defaultError}:void 0===s.data?{message:i??r??s.defaultError}:"invalid_type"!==t.code?{message:s.defaultError}:{message:i??a??s.defaultError}},description:s}}class O{get description(){return this._def.description}_getType(e){return h(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:h(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new g,ctx:{common:e.parent.common,data:e.data,parsedType:h(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(x(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){let a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)},r=this._parseSync({data:e,path:a.path,parent:a});return T(a,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)};if(!this["~standard"].async)try{let a=this._parseSync({data:e,path:[],parent:t});return"valid"===a.status?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:h(e)},r=this._parse({data:e,path:a.path,parent:a});return T(a,await (x(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((a,r)=>{let s=e(a),i=()=>r.addIssue({code:p.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(i(),!1)):!!s||(i(),!1)})}refinement(e,t){return this._refinement((a,r)=>!!e(a)||(r.addIssue("function"==typeof t?t(a,r):t),!1))}_refinement(e){return new ev({schema:this,typeName:n.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ek.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ea.create(this)}promise(){return eg.create(this,this._def)}or(e){return es.create([this,e],this._def)}and(e){return ed.create(this,e,this._def)}transform(e){return new ev({...Z(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ex({...Z(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:n.ZodDefault})}brand(){return new eZ({typeName:n.ZodBranded,type:this,...Z(this._def)})}catch(e){return new ew({...Z(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eO.create(this,e)}readonly(){return eC.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let C=/^c[^\s-]{8,}$/i,A=/^[0-9a-z]+$/,N=/^[0-9A-HJKMNP-TV-Z]{26}$/i,S=/^[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,j=/^[a-z0-9_-]{21}$/i,I=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,E=/^[-+]?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)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$=/^(?:(?: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])$/,P=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,F=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,L=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,z=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,D="((\\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])))",V=RegExp(`^${D}$`);function U(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}class K extends O{_parse(e){var t,a,s,i;let n;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.string){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.string,received:t.parsedType}),v}let d=new g;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(y(n=this._getOrReturnCtx(e,n),{code:p.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),d.dirty());else if("max"===u.kind)e.data.length>u.value&&(y(n=this._getOrReturnCtx(e,n),{code:p.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),d.dirty());else if("length"===u.kind){let t=e.data.length>u.value,a=e.data.length<u.value;(t||a)&&(n=this._getOrReturnCtx(e,n),t?y(n,{code:p.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):a&&y(n,{code:p.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),d.dirty())}else if("email"===u.kind)R.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"email",code:p.invalid_string,message:u.message}),d.dirty());else if("emoji"===u.kind)l||(l=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),l.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"emoji",code:p.invalid_string,message:u.message}),d.dirty());else if("uuid"===u.kind)S.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"uuid",code:p.invalid_string,message:u.message}),d.dirty());else if("nanoid"===u.kind)j.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"nanoid",code:p.invalid_string,message:u.message}),d.dirty());else if("cuid"===u.kind)C.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"cuid",code:p.invalid_string,message:u.message}),d.dirty());else if("cuid2"===u.kind)A.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"cuid2",code:p.invalid_string,message:u.message}),d.dirty());else if("ulid"===u.kind)N.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"ulid",code:p.invalid_string,message:u.message}),d.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{y(n=this._getOrReturnCtx(e,n),{validation:"url",code:p.invalid_string,message:u.message}),d.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"regex",code:p.invalid_string,message:u.message}),d.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(y(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),d.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(y(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{startsWith:u.value},message:u.message}),d.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(y(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:{endsWith:u.value},message:u.message}),d.dirty()):"datetime"===u.kind?(function(e){let t=`${D}T${U(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(y(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"datetime",message:u.message}),d.dirty()):"date"===u.kind?V.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"date",message:u.message}),d.dirty()):"time"===u.kind?RegExp(`^${U(u)}$`).test(e.data)||(y(n=this._getOrReturnCtx(e,n),{code:p.invalid_string,validation:"time",message:u.message}),d.dirty()):"duration"===u.kind?E.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"duration",code:p.invalid_string,message:u.message}),d.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(a=u.version)||!a)&&$.test(t)||("v6"===a||!a)&&F.test(t))&&1&&(y(n=this._getOrReturnCtx(e,n),{validation:"ip",code:p.invalid_string,message:u.message}),d.dirty())):"jwt"===u.kind?!function(e,t){if(!I.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),s=JSON.parse(atob(r));if("object"!=typeof s||null===s||"typ"in s&&s?.typ!=="JWT"||!s.alg||t&&s.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(y(n=this._getOrReturnCtx(e,n),{validation:"jwt",code:p.invalid_string,message:u.message}),d.dirty()):"cidr"===u.kind?(s=e.data,!(("v4"===(i=u.version)||!i)&&P.test(s)||("v6"===i||!i)&&M.test(s))&&1&&(y(n=this._getOrReturnCtx(e,n),{validation:"cidr",code:p.invalid_string,message:u.message}),d.dirty())):"base64"===u.kind?L.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"base64",code:p.invalid_string,message:u.message}),d.dirty()):"base64url"===u.kind?z.test(e.data)||(y(n=this._getOrReturnCtx(e,n),{validation:"base64url",code:p.invalid_string,message:u.message}),d.dirty()):r.assertNever(u);return{status:d.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:p.invalid_string,...i.errToObj(a)})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(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:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new K({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new K({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new K({...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 isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}K.create=e=>new K({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...Z(e)});class W extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==c.number){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.number,received:t.parsedType}),v}let a=new g;for(let s of this._def.checks)"int"===s.kind?r.isInteger(e.data)||(y(t=this._getOrReturnCtx(e,t),{code:p.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(y(t=this._getOrReturnCtx(e,t),{code:p.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(y(t=this._getOrReturnCtx(e,t),{code:p.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):"multipleOf"===s.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=a>r?a:r;return Number.parseInt(e.toFixed(s).replace(".",""))%Number.parseInt(t.toFixed(s).replace(".",""))/10**s}(e.data,s.value)&&(y(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):"finite"===s.kind?Number.isFinite(e.data)||(y(t=this._getOrReturnCtx(e,t),{code:p.not_finite,message:s.message}),a.dirty()):r.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,a,r){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:i.toString(r)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let 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&&r.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"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)}}W.create=e=>new W({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...Z(e)});class B extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==c.bigint)return this._getInvalidInput(e);let a=new g;for(let s of this._def.checks)"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(y(t=this._getOrReturnCtx(e,t),{code:p.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(y(t=this._getOrReturnCtx(e,t),{code:p.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):"multipleOf"===s.kind?e.data%s.value!==BigInt(0)&&(y(t=this._getOrReturnCtx(e,t),{code:p.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):r.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,a,r){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:i.toString(r)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}B.create=e=>new B({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...Z(e)});class q extends O{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.boolean){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.boolean,received:t.parsedType}),v}return b(e.data)}}q.create=e=>new q({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...Z(e)});class J extends O{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.date){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.date,received:t.parsedType}),v}if(Number.isNaN(e.data.getTime()))return y(this._getOrReturnCtx(e),{code:p.invalid_date}),v;let a=new g;for(let s of this._def.checks)"min"===s.kind?e.data.getTime()<s.value&&(y(t=this._getOrReturnCtx(e,t),{code:p.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),a.dirty()):"max"===s.kind?e.data.getTime()>s.value&&(y(t=this._getOrReturnCtx(e,t),{code:p.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),a.dirty()):r.assertNever(s);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let 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(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}J.create=e=>new J({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...Z(e)});class Y extends O{_parse(e){if(this._getType(e)!==c.symbol){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.symbol,received:t.parsedType}),v}return b(e.data)}}Y.create=e=>new Y({typeName:n.ZodSymbol,...Z(e)});class H extends O{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.undefined,received:t.parsedType}),v}return b(e.data)}}H.create=e=>new H({typeName:n.ZodUndefined,...Z(e)});class G extends O{_parse(e){if(this._getType(e)!==c.null){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.null,received:t.parsedType}),v}return b(e.data)}}G.create=e=>new G({typeName:n.ZodNull,...Z(e)});class X extends O{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}X.create=e=>new X({typeName:n.ZodAny,...Z(e)});class Q extends O{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}Q.create=e=>new Q({typeName:n.ZodUnknown,...Z(e)});class ee extends O{_parse(e){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.never,received:t.parsedType}),v}}ee.create=e=>new ee({typeName:n.ZodNever,...Z(e)});class et extends O{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.void,received:t.parsedType}),v}return b(e.data)}}et.create=e=>new et({typeName:n.ZodVoid,...Z(e)});class ea extends O{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),r=this._def;if(t.parsedType!==c.array)return y(t,{code:p.invalid_type,expected:c.array,received:t.parsedType}),v;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,s=t.data.length<r.exactLength.value;(e||s)&&(y(t,{code:e?p.too_big:p.too_small,minimum:s?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),a.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(y(t,{code:p.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),a.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(y(t,{code:p.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>r.type._parseAsync(new w(t,e,t.path,a)))).then(e=>g.mergeArray(a,e));let s=[...t.data].map((e,a)=>r.type._parseSync(new w(t,e,t.path,a)));return g.mergeArray(a,s)}get element(){return this._def.type}min(e,t){return new ea({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new ea({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new ea({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}ea.create=(e,t)=>new ea({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...Z(t)});class er extends O{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.object){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.object,received:t.parsedType}),v}let{status:t,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof ee&&"strip"===this._def.unknownKeys))for(let e in a.data)s.includes(e)||i.push(e);let n=[];for(let e of s){let t=r[e],s=a.data[e];n.push({key:{status:"valid",value:e},value:t._parse(new w(a,s,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof ee){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)n.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)i.length>0&&(y(a,{code:p.unrecognized_keys,keys:i}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let r=a.data[t];n.push({key:{status:"valid",value:t},value:e._parse(new w(a,r,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of n){let a=await t.key,r=await t.value;e.push({key:a,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>g.mergeObjectSync(t,e)):g.mergeObjectSync(t,n)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new er({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{let r=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new er({...this._def,unknownKeys:"strip"})}passthrough(){return new er({...this._def,unknownKeys:"passthrough"})}extend(e){return new er({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new er({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new er({...this._def,catchall:e})}pick(e){let t={};for(let a of r.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new er({...this._def,shape:()=>t})}omit(e){let t={};for(let a of r.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new er({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof er){let a={};for(let r in t.shape){let s=t.shape[r];a[r]=ek.create(e(s))}return new er({...t._def,shape:()=>a})}if(t instanceof ea)return new ea({...t._def,type:e(t.element)});if(t instanceof ek)return ek.create(e(t.unwrap()));if(t instanceof eb)return eb.create(e(t.unwrap()));if(t instanceof eu)return eu.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let a of r.objectKeys(this.shape)){let r=this.shape[a];e&&!e[a]?t[a]=r:t[a]=r.optional()}return new er({...this._def,shape:()=>t})}required(e){let t={};for(let a of r.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof ek;)e=e._def.innerType;t[a]=e}return new er({...this._def,shape:()=>t})}keyof(){return ef(r.objectKeys(this.shape))}}er.create=(e,t)=>new er({shape:()=>e,unknownKeys:"strip",catchall:ee.create(),typeName:n.ZodObject,...Z(t)}),er.strictCreate=(e,t)=>new er({shape:()=>e,unknownKeys:"strict",catchall:ee.create(),typeName:n.ZodObject,...Z(t)}),er.lazycreate=(e,t)=>new er({shape:e,unknownKeys:"strip",catchall:ee.create(),typeName:n.ZodObject,...Z(t)});class es extends O{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let 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(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new m(e.ctx.common.issues));return y(t,{code:p.invalid_union,unionErrors:a}),v});{let e,r=[];for(let s of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&r.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=r.map(e=>new m(e));return y(t,{code:p.invalid_union,unionErrors:s}),v}}get options(){return this._def.options}}es.create=(e,t)=>new es({options:e,typeName:n.ZodUnion,...Z(t)});let ei=e=>{if(e instanceof ep)return ei(e.schema);if(e instanceof ev)return ei(e.innerType());if(e instanceof em)return[e.value];if(e instanceof e_)return e.options;if(e instanceof ey)return r.objectValues(e.enum);else if(e instanceof ex)return ei(e._def.innerType);else if(e instanceof H)return[void 0];else if(e instanceof G)return[null];else if(e instanceof ek)return[void 0,...ei(e.unwrap())];else if(e instanceof eb)return[null,...ei(e.unwrap())];else if(e instanceof eZ)return ei(e.unwrap());else if(e instanceof eC)return ei(e.unwrap());else if(e instanceof ew)return ei(e._def.innerType);else return[]};class en extends O{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.object)return y(t,{code:p.invalid_type,expected:c.object,received:t.parsedType}),v;let a=this.discriminator,r=t.data[a],s=this.optionsMap.get(r);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(y(t,{code:p.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),v)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){let r=new Map;for(let a of t){let t=ei(a.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of t){if(r.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);r.set(s,a)}}return new en({typeName:n.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Z(a)})}}class ed extends O{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),s=(e,s)=>{if("aborted"===e.status||"aborted"===s.status)return v;let i=function e(t,a){let s=h(t),i=h(a);if(t===a)return{valid:!0,data:t};if(s===c.object&&i===c.object){let s=r.objectKeys(a),i=r.objectKeys(t).filter(e=>-1!==s.indexOf(e)),n={...t,...a};for(let r of i){let s=e(t[r],a[r]);if(!s.valid)return{valid:!1};n[r]=s.data}return{valid:!0,data:n}}if(s===c.array&&i===c.array){if(t.length!==a.length)return{valid:!1};let r=[];for(let s=0;s<t.length;s++){let i=e(t[s],a[s]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(s===c.date&&i===c.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return i.valid?(("dirty"===e.status||"dirty"===s.status)&&t.dirty(),{status:t.value,value:i.data}):(y(a,{code:p.invalid_intersection_types}),v)};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,t])=>s(e,t)):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}))}}ed.create=(e,t,a)=>new ed({left:e,right:t,typeName:n.ZodIntersection,...Z(a)});class eu extends O{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.array)return y(a,{code:p.invalid_type,expected:c.array,received:a.parsedType}),v;if(a.data.length<this._def.items.length)return y(a,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),v;!this._def.rest&&a.data.length>this._def.items.length&&(y(a,{code:p.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...a.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new w(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(r).then(e=>g.mergeArray(t,e)):g.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eu({...this._def,rest:e})}}eu.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:n.ZodTuple,rest:null,...Z(t)})};class eo extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.object)return y(a,{code:p.invalid_type,expected:c.object,received:a.parsedType}),v;let r=[],s=this._def.keyType,i=this._def.valueType;for(let e in a.data)r.push({key:s._parse(new w(a,e,a.path,e)),value:i._parse(new w(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?g.mergeObjectAsync(t,r):g.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,a){return new eo(t instanceof O?{keyType:e,valueType:t,typeName:n.ZodRecord,...Z(a)}:{keyType:K.create(),valueType:e,typeName:n.ZodRecord,...Z(t)})}}class el extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.map)return y(a,{code:p.invalid_type,expected:c.map,received:a.parsedType}),v;let r=this._def.keyType,s=this._def.valueType,i=[...a.data.entries()].map(([e,t],i)=>({key:r._parse(new w(a,e,a.path,[i,"key"])),value:s._parse(new w(a,t,a.path,[i,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of i){let r=await a.key,s=await a.value;if("aborted"===r.status||"aborted"===s.status)return v;("dirty"===r.status||"dirty"===s.status)&&t.dirty(),e.set(r.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of i){let r=a.key,s=a.value;if("aborted"===r.status||"aborted"===s.status)return v;("dirty"===r.status||"dirty"===s.status)&&t.dirty(),e.set(r.value,s.value)}return{status:t.value,value:e}}}}el.create=(e,t,a)=>new el({valueType:t,keyType:e,typeName:n.ZodMap,...Z(a)});class ec extends O{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.set)return y(a,{code:p.invalid_type,expected:c.set,received:a.parsedType}),v;let r=this._def;null!==r.minSize&&a.data.size<r.minSize.value&&(y(a,{code:p.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&a.data.size>r.maxSize.value&&(y(a,{code:p.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let s=this._def.valueType;function i(e){let a=new Set;for(let r of e){if("aborted"===r.status)return v;"dirty"===r.status&&t.dirty(),a.add(r.value)}return{status:t.value,value:a}}let n=[...a.data.values()].map((e,t)=>s._parse(new w(a,e,a.path,t)));return a.common.async?Promise.all(n).then(e=>i(e)):i(n)}min(e,t){return new ec({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ec({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ec.create=(e,t)=>new ec({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...Z(t)});class eh extends O{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.function)return y(t,{code:p.invalid_type,expected:c.function,received:t.parsedType}),v;function a(e,a){return _({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f,f].filter(e=>!!e),issueData:{code:p.invalid_arguments,argumentsError:a}})}function r(e,a){return _({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f,f].filter(e=>!!e),issueData:{code:p.invalid_return_type,returnTypeError:a}})}let s={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof eg){let e=this;return b(async function(...t){let n=new m([]),d=await e._def.args.parseAsync(t,s).catch(e=>{throw n.addIssue(a(t,e)),n}),u=await Reflect.apply(i,this,d);return await e._def.returns._def.type.parseAsync(u,s).catch(e=>{throw n.addIssue(r(u,e)),n})})}{let e=this;return b(function(...t){let n=e._def.args.safeParse(t,s);if(!n.success)throw new m([a(t,n.error)]);let d=Reflect.apply(i,this,n.data),u=e._def.returns.safeParse(d,s);if(!u.success)throw new m([r(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eh({...this._def,args:eu.create(e).rest(Q.create())})}returns(e){return new eh({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new eh({args:e||eu.create([]).rest(Q.create()),returns:t||Q.create(),typeName:n.ZodFunction,...Z(a)})}}class ep extends O{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ep.create=(e,t)=>new ep({getter:e,typeName:n.ZodLazy,...Z(t)});class em extends O{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return y(t,{received:t.data,code:p.invalid_literal,expected:this._def.value}),v}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new e_({values:e,typeName:n.ZodEnum,...Z(t)})}em.create=(e,t)=>new em({value:e,typeName:n.ZodLiteral,...Z(t)});class e_ extends O{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return y(t,{expected:r.joinValues(a),received:t.parsedType,code:p.invalid_type}),v}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return y(t,{received:t.data,code:p.invalid_enum_value,options:a}),v}return b(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return e_.create(e,{...this._def,...t})}exclude(e,t=this._def){return e_.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}e_.create=ef;class ey extends O{_parse(e){let t=r.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==c.string&&a.parsedType!==c.number){let e=r.objectValues(t);return y(a,{expected:r.joinValues(e),received:a.parsedType,code:p.invalid_type}),v}if(this._cache||(this._cache=new Set(r.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=r.objectValues(t);return y(a,{received:a.data,code:p.invalid_enum_value,options:e}),v}return b(e.data)}get enum(){return this._def.values}}ey.create=(e,t)=>new ey({values:e,typeName:n.ZodNativeEnum,...Z(t)});class eg extends O{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==c.promise&&!1===t.common.async?(y(t,{code:p.invalid_type,expected:c.promise,received:t.parsedType}),v):b((t.parsedType===c.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eg.create=(e,t)=>new eg({type:e,typeName:n.ZodPromise,...Z(t)});class ev extends O{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:e=>{y(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===s.type){let e=s.transform(a.data,i);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return v;let r=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===r.status?v:"dirty"===r.status||"dirty"===t.value?k(r.value):r});{if("aborted"===t.value)return v;let r=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===r.status?v:"dirty"===r.status||"dirty"===t.value?k(r.value):r}}if("refinement"===s.type){let e=e=>{let t=s.refinement(e,i);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?v:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let r=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===r.status?v:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===s.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>"valid"!==e.status?v:Promise.resolve(s.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if("valid"!==e.status)return v;let r=s.transform(e.value,i);if(r instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}r.assertNever(s)}}ev.create=(e,t,a)=>new ev({schema:e,typeName:n.ZodEffects,effect:t,...Z(a)}),ev.createWithPreprocess=(e,t,a)=>new ev({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...Z(a)});class ek extends O{_parse(e){return this._getType(e)===c.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:n.ZodOptional,...Z(t)});class eb extends O{_parse(e){return this._getType(e)===c.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:n.ZodNullable,...Z(t)});class ex extends O{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===c.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Z(t)});class ew extends O{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return x(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new m(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new m(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Z(t)});class eT extends O{_parse(e){if(this._getType(e)!==c.nan){let t=this._getOrReturnCtx(e);return y(t,{code:p.invalid_type,expected:c.nan,received:t.parsedType}),v}return{status:"valid",value:e.data}}}eT.create=e=>new eT({typeName:n.ZodNaN,...Z(e)}),Symbol("zod_brand");class eZ extends O{_parse(e){let{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 eO extends O{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),k(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?v:"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 eO({in:e,out:t,typeName:n.ZodPipeline})}}class eC extends O{_parse(e){let t=this._def.innerType._parse(e),a=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:n.ZodReadonly,...Z(t)}),er.lazycreate,(o=n||(n={})).ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly";let eA=K.create;W.create,eT.create,B.create,q.create,J.create,Y.create,H.create,G.create;let eN=X.create;Q.create,ee.create,et.create;let eS=ea.create,ej=er.create;er.strictCreate;let eI=es.create;en.create;let eE=ed.create;eu.create;let eR=eo.create;el.create,ec.create,eh.create;let e$=ep.create,eP=em.create;e_.create,ey.create,eg.create,ev.create,ek.create,eb.create,ev.createWithPreprocess,eO.create}}]);
2
- //# sourceMappingURL=module-zod.4600b494.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["8508"],{42878(e,t,n){"use strict";var r=n(86638),i=a(Error);function a(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=a(EvalError),i.range=a(RangeError),i.reference=a(ReferenceError),i.syntax=a(SyntaxError),i.type=a(TypeError),i.uri=a(URIError),i.create=a},86638(e){var t;function n(e){for(var t,n,r,i,a=1,l=[].slice.call(arguments),s=0,o=e.length,c="",g=!1,u=!1,d=function(){return l[a++]};s<o;++s)if(t=e[s],g)switch(g=!1,"."==t?(u=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(u=!0,s+=2,t=e[s]):u=!0,i=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null}(),t){case"b":c+=parseInt(d(),10).toString(2);break;case"c":"string"==typeof(n=d())||n instanceof String?c+=n:c+=String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(d(),10);break;case"f":r=String(parseFloat(d()).toFixed(i||6)),c+=u?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(d());break;case"o":c+="0"+parseInt(d(),10).toString(8);break;case"s":c+=d();break;case"x":c+="0x"+parseInt(d(),10).toString(16);break;case"X":c+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?g=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})},81072(e){function t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(n){var r=e[n];"object"!=typeof r||Object.isFrozen(r)||t(r)}),e}t.default=t;class n{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}class a{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=r(e)}openNode(e){if(!e.kind)return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){e.kind&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"==typeof e||e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{l._collapse(e)}))}}class s extends l{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){let n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new a(this,this.options).value()}finalize(){return!0}}function o(e){return e?"string"==typeof e?e:e.source:null}let c=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,g="[a-zA-Z]\\w*",u="[a-zA-Z_]\\w*",d="\\b\\d+(\\.\\d+)?",h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",f="\\b(0b[01]+)",p={begin:"\\\\[\\s\\S]",relevance:0},m={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},b=function(e,t,n={}){let r=i({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(m),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},x=b("//","$"),E=b("/\\*","\\*/"),v=b("#","$"),y={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[p,{begin:/\[/,end:/\]/,relevance:0,contains:[p]}]}]};var N=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:g,UNDERSCORE_IDENT_RE:u,NUMBER_RE:d,C_NUMBER_RE:h,BINARY_NUMBER_RE:f,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>o(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),i({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:p,APOS_STRING_MODE:{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[p]},QUOTE_STRING_MODE:{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[p]},PHRASAL_WORDS_MODE:m,COMMENT:b,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:v,NUMBER_MODE:{className:"number",begin:d,relevance:0},C_NUMBER_MODE:{className:"number",begin:h,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:f,relevance:0},CSS_NUMBER_MODE:{className:"number",begin:d+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:y,TITLE_MODE:{className:"title",begin:g,relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:u,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+u,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function w(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function R(e,t){!t||e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=w,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function _(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>o(e)).join("|")+")"}(...e.illegal))}function k(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function M(e,t){void 0===e.relevance&&(e.relevance=1)}let O=["of","and","for","in","not","or","if","then","parent","list","value"],I={"after:highlightElement":({el:e,result:t,text:n})=>{let i=A(e);if(!i.length)return;let a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,n){let i=0,a="",l=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function o(e){a+="<"+L(e)+[].map.call(e.attributes,function(e){return" "+e.nodeName+'="'+r(e.value)+'"'}).join("")+">"}function c(e){a+="</"+L(e)+">"}function g(e){("start"===e.event?o:c)(e.node)}for(;e.length||t.length;){let t=s();if(a+=r(n.substring(i,t[0].offset)),i=t[0].offset,t===e){l.reverse().forEach(c);do g(t.splice(0,1)[0]),t=s();while(t===e&&t.length&&t[0].offset===i);l.reverse().forEach(o)}else"start"===t[0].event?l.push(t[0].node):l.pop(),g(t.splice(0,1)[0])}return a+r(n.substr(i))}(i,A(a),n)}};function L(e){return e.nodeName.toLowerCase()}function A(e){let t=[];return!function e(n,r){for(let i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),L(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}let S={},j=e=>{console.error(e)},T=(e,...t)=>{console.log(`WARN: ${e}`,...t)},B=(e,t)=>{S[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),S[`${e}/${t}`]=!0)},P=Symbol("nomatch");e.exports=function(e){var a;let l,g=Object.create(null),u=Object.create(null),d=[],h=!0,f=/(^(<[^>]+>|\t|)+|\n)/gm,p="Could not find the language '{}', did you forget to load/include a language module?",m={disableAutodetect:!0,name:"Plain text",contains:[]},b={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:s};function x(e){return b.noHighlightRe.test(e)}function E(e,t,n,r){let i="",a="";"object"==typeof t?(i=e,n=t.ignoreIllegals,a=t.language,r=void 0):(B("10.7.0","highlight(lang, code, ...args) has been deprecated."),B("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,i=t);let l={code:i,language:a};U("before:highlight",l);let s=l.result?l.result:v(l.language,l.code,n,r);return s.code=l.code,U("after:highlight",s),s}function v(e,t,a,l){function s(){null!=w.subLanguage?function(){if(""===S)return;let e=null;if("string"==typeof w.subLanguage){if(!g[w.subLanguage])return L.addText(S);e=v(w.subLanguage,S,!0,I[w.subLanguage]),I[w.subLanguage]=e.top}else e=y(S,w.subLanguage.length?w.subLanguage:null);w.relevance>0&&(T+=e.relevance),L.addSublanguage(e.emitter,e.language)}():function(){if(!w.keywords)return L.addText(S);let e=0;w.keywordPatternRe.lastIndex=0;let t=w.keywordPatternRe.exec(S),n="";for(;t;){n+=S.substring(e,t.index);let r=function(e,t){let n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}(w,t);if(r){let[e,i]=r;if(L.addText(n),n="",T+=i,e.startsWith("_"))n+=t[0];else{let n=x.classNameAliases[e]||e;L.addKeyword(t[0],n)}}else n+=t[0];e=w.keywordPatternRe.lastIndex,t=w.keywordPatternRe.exec(S)}n+=S.substr(e),L.addText(n)}(),S=""}function u(e){return e.className&&L.openNode(x.classNameAliases[e.className]||e.className),w=Object.create(e,{parent:{value:w}})}let f={};function m(r,i){let l=i&&i[0];if(S+=r,null==l)return s(),0;if("begin"===f.type&&"end"===i.type&&f.index===i.index&&""===l){if(S+=t.slice(i.index,i.index+1),!h){let t=Error("0 width match regex");throw t.languageName=e,t.badRule=f.rule,t}return 1}if(f=i,"begin"===i.type){let e=i[0],t=i.rule,r=new n(t);for(let n of[t.__beforeBegin,t["on:begin"]])if(n&&(n(i,r),r.isMatchIgnored))return 0===w.matcher.regexIndex?(S+=e[0],1):(H=!0,0);return t&&t.endSameAsBegin&&(t.endRe=RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),t.skip?S+=e:(t.excludeBegin&&(S+=e),s(),t.returnBegin||t.excludeBegin||(S=e)),u(t),t.returnBegin?0:e.length}if("illegal"!==i.type||a){if("end"===i.type){let e=function(e){let r=e[0],i=t.substr(e.index),a=function e(t,r,i){var a;let l,s=(a=t.endRe,(l=a&&a.exec(i))&&0===l.index);if(s){if(t["on:end"]){let e=new n(t);t["on:end"](r,e),e.isMatchIgnored&&(s=!1)}if(s){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,r,i)}(w,e,i);if(!a)return P;let l=w;l.skip?S+=r:(l.returnEnd||l.excludeEnd||(S+=r),s(),l.excludeEnd&&(S=r));do w.className&&L.closeNode(),w.skip||w.subLanguage||(T+=w.relevance),w=w.parent;while(w!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),u(a.starts)),l.returnEnd?0:r.length}(i);if(e!==P)return e}}else{let e=Error('Illegal lexeme "'+l+'" for mode "'+(w.className||"<unnamed>")+'"');throw e.mode=w,e}if("illegal"===i.type&&""===l)return 1;if(C>1e5&&C>3*i.index)throw Error("potential infinite loop, way more iterations than matches");return S+=l,l.length}let x=D(e);if(!x)throw j(p.replace("{}",e)),Error('Unknown language: "'+e+'"');let E=function(e,{plugins:t}){function n(t,n){return RegExp(o(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=RegExp(e.toString()+"|").exec("").length-1+1}compile(){0===this.regexes.length&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){let n=0;return e.map(e=>{let t=n+=1,r=o(e),i="";for(;r.length>0;){let e=c.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function t(r,l){let s;if(r.isCompiled)return r;[k].forEach(e=>e(r,l)),e.compilerExtensions.forEach(e=>e(r,l)),r.__beforeBegin=null,[R,_,M].forEach(e=>e(r,l)),r.isCompiled=!0;let c=null;if("object"==typeof r.keywords&&(c=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=function e(t,n,r="keyword"){let i={};return"string"==typeof t?a(r,t.split(" ")):Array.isArray(t)?a(r,t):Object.keys(t).forEach(function(r){Object.assign(i,e(t[r],n,r))}),i;function a(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach(function(t){var n,r,a;let l=t.split("|");i[l[0]]=[e,(n=l[0],(r=l[1])?Number(r):+(a=n,!O.includes(a.toLowerCase())))]})}}(r.keywords,e.case_insensitive)),r.lexemes&&c)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||r.lexemes||/\w+/,r.keywordPatternRe=n(c,!0),l&&(r.begin||(r.begin=/\B|\b/),r.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(r.endRe=n(r.end)),r.terminatorEnd=o(r.end)||"",r.endsWithParent&&l.terminatorEnd&&(r.terminatorEnd+=(r.end?"|":"")+l.terminatorEnd)),r.illegal&&(r.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(e){var t;return((t="self"===e?r:e).variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return i(t,{variants:null},e)})),t.cachedVariants)?t.cachedVariants:!function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(t)?Object.isFrozen(t)?i(t):t:i(t,{starts:t.starts?i(t.starts):null})})),r.contains.forEach(function(e){t(e,r)}),r.starts&&t(r.starts,l),s=new a,r.contains.forEach(e=>s.addRule(e.begin,{rule:e,type:"begin"})),r.terminatorEnd&&s.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&s.addRule(r.illegal,{type:"illegal"}),r.matcher=s,r}(e)}(x,{plugins:d}),N="",w=l||E,I={},L=new b.__emitter(b),A=[];for(let e=w;e!==x;e=e.parent)e.className&&A.unshift(e.className);A.forEach(e=>L.openNode(e));let S="",T=0,B=0,C=0,H=!1;try{for(w.matcher.considerAll();;){C++,H?H=!1:w.matcher.considerAll(),w.matcher.lastIndex=B;let e=w.matcher.exec(t);if(!e)break;let n=t.substring(B,e.index),r=m(n,e);B=e.index+r}return m(t.substr(B)),L.closeAllNodes(),L.finalize(),N=L.toHTML(),{relevance:Math.floor(T),value:N,language:e,illegal:!1,emitter:L,top:w}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:t.slice(B-100,B+100),mode:n.mode},sofar:N,relevance:0,value:r(t),emitter:L};if(h)return{illegal:!1,relevance:0,value:r(t),emitter:L,language:e,top:w,errorRaised:n};throw n}}function y(e,t){let n;t=t||b.languages||Object.keys(g);let i=((n={relevance:0,emitter:new b.__emitter(b),value:r(e),illegal:!1,top:m}).emitter.addText(e),n),a=t.filter(D).filter($).map(t=>v(t,e,!1));a.unshift(i);let[l,s]=a.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(D(e.language).supersetOf===t.language)return 1;else if(D(t.language).supersetOf===e.language)return -1}return 0});return l.second_best=s,l}let w=/^(<[^>]+>|\t)+/gm;function L(e){var t;let n,r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";let n=b.languageDetectRe.exec(t);if(n){let t=D(n[1]);return t||(T(p.replace("{}",n[1])),T("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>x(e)||D(e))}(e);if(x(r))return;U("before:highlightElement",{el:e,language:r});let i=e.textContent,a=r?E(i,{language:r,ignoreIllegals:!0}):y(i);U("after:highlightElement",{el:e,result:a,text:i}),e.innerHTML=a.value,t=a.language,n=r?u[r]:t,e.classList.add("hljs"),n&&e.classList.add(n),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}let A=()=>{A.called||(A.called=!0,B("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(L))},S=!1;function C(){if("loading"===document.readyState){S=!0;return}document.querySelectorAll("pre code").forEach(L)}function D(e){return g[e=(e||"").toLowerCase()]||g[u[e]]}function H(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{u[e.toLowerCase()]=t})}function $(e){let t=D(e);return t&&!t.disableAutodetect}function U(e,t){d.forEach(function(n){n[e]&&n[e](t)})}for(let n in"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){S&&C()},!1),Object.assign(e,{highlight:E,highlightAuto:y,highlightAll:C,fixMarkup:function(e){var t;return B("10.2.0","fixMarkup will be removed entirely in v11.0"),B("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,b.tabReplace||b.useBR?t.replace(f,e=>"\n"===e?b.useBR?"<br>":e:b.tabReplace?e.replace(/\t/g,b.tabReplace):e):t},highlightElement:L,highlightBlock:function(e){return B("10.7.0","highlightBlock will be removed entirely in v12.0"),B("10.7.0","Please use highlightElement now."),L(e)},configure:function(e){e.useBR&&(B("10.3.0","'useBR' will be removed entirely in v11.0"),B("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),b=i(b,e)},initHighlighting:A,initHighlightingOnLoad:function(){B("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),S=!0},registerLanguage:function(t,n){let r=null;try{r=n(e)}catch(e){if(j("Language definition for '{}' could not be registered.".replace("{}",t)),h)j(e);else throw e;r=m}r.name||(r.name=t),g[t]=r,r.rawDefinition=n.bind(null,e),r.aliases&&H(r.aliases,{languageName:t})},unregisterLanguage:function(e){for(let t of(delete g[e],Object.keys(u)))u[t]===e&&delete u[t]},listLanguages:function(){return Object.keys(g)},getLanguage:D,registerAliases:H,requireLanguage:function(e){B("10.4.0","requireLanguage will be removed entirely in v11."),B("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");let t=D(e);if(t)return t;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:$,inherit:i,addPlugin:function(e){var t;(t=e)["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))}),d.push(e)},vuePlugin:(a=e,{Component:l={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!a.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,r(this.code);let e={};return this.autoDetect?(e=a.highlightAuto(this.code),this.detectedLanguage=e.language):(e=a.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),e.value},autoDetect(){var e;return!this.language||!!((e=this.autodetect)||""===e)},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},VuePlugin:{install(e){e.component("highlightjs",l)}}}).VuePlugin}),e.debugMode=function(){h=!1},e.safeMode=function(){h=!0},e.versionString="10.7.3",N)"object"==typeof N[n]&&t(N[n]);return Object.assign(e,N),e.addPlugin({"before:highlightElement":({el:e})=>{b.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{b.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}}),e.addPlugin(I),e.addPlugin({"after:highlightElement":({result:e})=>{b.tabReplace&&(e.value=e.value.replace(w,e=>e.replace(/\t/g,b.tabReplace)))}}),e}({})},63341(e,t,n){"use strict";var r=n(81072),i=n(42878);t.highlight=l,t.highlightAuto=function(e,t){var n,s,o,c,g=t||{},u=g.subset||r.listLanguages(),d=g.prefix,h=u.length,f=-1;if(null==d&&(d=a),"string"!=typeof e)throw i("Expected `string` for value, got `%s`",e);for(s={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};++f<h;)c=u[f],r.getLanguage(c)&&((o=l(c,e,t)).language=c,o.relevance>s.relevance&&(s=o),o.relevance>n.relevance&&(s=n,n=o));return s.language&&(n.secondBest=s),n},t.registerLanguage=function(e,t){r.registerLanguage(e,t)},t.listLanguages=function(){return r.listLanguages()},t.registerAlias=function(e,t){var n,i=e;for(n in t&&((i={})[e]=t),i)r.registerAliases(i[n],{languageName:n})},s.prototype.addText=function(e){var t,n,r=this.stack;""!==e&&((n=(t=r[r.length-1]).children[t.children.length-1])&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e}))},s.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},s.prototype.addSublanguage=function(e,t){var n=this.stack,r=n[n.length-1],i=e.rootNode.children;r.children=r.children.concat(t?{type:"element",tagName:"span",properties:{className:[t]},children:i}:i)},s.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],i={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(i),t.push(i)},s.prototype.closeNode=function(){this.stack.pop()},s.prototype.closeAllNodes=o,s.prototype.finalize=o,s.prototype.toHTML=function(){return""};var a="hljs-";function l(e,t,n){var l,o=r.configure({}),c=(n||{}).prefix;if("string"!=typeof e)throw i("Expected `string` for name, got `%s`",e);if(!r.getLanguage(e))throw i("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw i("Expected `string` for value, got `%s`",t);if(null==c&&(c=a),r.configure({__emitter:s,classPrefix:c}),l=r.highlight(t,{language:e,ignoreIllegals:!0}),r.configure(o||{}),l.errorRaised)throw l.errorRaised;return{relevance:l.relevance,language:l.language,value:l.emitter.rootNode.children}}function s(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function o(){}}}]);
2
- //# sourceMappingURL=lowlight-import.7b0d2cbc.chunk.js.map