@verdocs/web-sdk 2.2.0 → 2.2.1

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 (75) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/verdocs-button.cjs.entry.js +26 -0
  3. package/dist/cjs/{verdocs-button_2.cjs.entry.js → verdocs-help-icon.cjs.entry.js} +0 -20
  4. package/dist/cjs/{verdocs-settings-organization_2.cjs.entry.js → verdocs-settings-api-keys_4.cjs.entry.js} +165 -2
  5. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-table.cjs.entry.js +27 -0
  7. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +3 -0
  9. package/dist/collection/components/controls/verdocs-table/verdocs-table.css +25 -0
  10. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +71 -0
  11. package/dist/collection/components/controls/verdocs-table/verdocs-table.stories.js +25 -0
  12. package/dist/collection/components/embeds/verdocs-settings/verdocs-settings.js +1 -1
  13. package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.css +38 -0
  14. package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.js +179 -0
  15. package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.stories.js +11 -0
  16. package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.css +38 -0
  17. package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.js +210 -0
  18. package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.stories.js +17 -0
  19. package/dist/components/Strings.js +6 -0
  20. package/dist/components/index.d.ts +3 -0
  21. package/dist/components/index.js +3 -0
  22. package/dist/components/verdocs-settings-api-keys.d.ts +11 -0
  23. package/dist/components/verdocs-settings-api-keys.js +6 -0
  24. package/dist/components/verdocs-settings-api-keys2.js +108 -0
  25. package/dist/components/verdocs-settings-members.d.ts +11 -0
  26. package/dist/components/verdocs-settings-members.js +6 -0
  27. package/dist/components/verdocs-settings-members2.js +123 -0
  28. package/dist/components/verdocs-settings.js +31 -13
  29. package/dist/components/verdocs-table.d.ts +11 -0
  30. package/dist/components/verdocs-table.js +6 -0
  31. package/dist/components/verdocs-table2.js +41 -0
  32. package/dist/custom-elements.json +24 -0
  33. package/dist/docs.json +254 -3
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/verdocs-button.entry.js +22 -0
  36. package/dist/esm/{verdocs-button_2.entry.js → verdocs-help-icon.entry.js} +1 -20
  37. package/dist/esm/{verdocs-settings-organization_2.entry.js → verdocs-settings-api-keys_4.entry.js} +164 -3
  38. package/dist/esm/verdocs-settings.entry.js +1 -1
  39. package/dist/esm/verdocs-table.entry.js +23 -0
  40. package/dist/esm/verdocs-web-sdk.js +1 -1
  41. package/dist/esm-es5/loader.js +1 -1
  42. package/dist/esm-es5/verdocs-button.entry.js +1 -0
  43. package/dist/esm-es5/verdocs-help-icon.entry.js +1 -0
  44. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -0
  45. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  46. package/dist/esm-es5/verdocs-table.entry.js +1 -0
  47. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  48. package/dist/types/components/controls/verdocs-table/verdocs-table.d.ts +21 -0
  49. package/dist/types/components/controls/verdocs-table/verdocs-table.stories.d.ts +7 -0
  50. package/dist/types/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.d.ts +44 -0
  51. package/dist/types/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.stories.d.ts +4 -0
  52. package/dist/types/components/settings/verdocs-settings-members/verdocs-settings-members.d.ts +43 -0
  53. package/dist/types/components/settings/verdocs-settings-members/verdocs-settings-members.stories.d.ts +8 -0
  54. package/dist/types/components.d.ts +112 -0
  55. package/dist/verdocs-web-sdk/p-268a29a9.system.entry.js +1 -0
  56. package/dist/verdocs-web-sdk/p-606e0405.entry.js +1 -0
  57. package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
  58. package/dist/verdocs-web-sdk/p-7213a107.system.entry.js +1 -0
  59. package/dist/verdocs-web-sdk/p-84f9fe5d.entry.js +1 -0
  60. package/dist/verdocs-web-sdk/p-ab26744f.system.entry.js +1 -0
  61. package/dist/verdocs-web-sdk/p-d309ef6f.entry.js +1 -0
  62. package/dist/verdocs-web-sdk/p-db4cfbfe.entry.js +1 -0
  63. package/dist/verdocs-web-sdk/p-df90b36d.entry.js +1 -0
  64. package/dist/verdocs-web-sdk/p-e248947e.system.entry.js +1 -0
  65. package/dist/verdocs-web-sdk/p-fbabbcea.system.entry.js +1 -0
  66. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  67. package/package.json +1 -1
  68. package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
  69. package/dist/esm-es5/verdocs-settings-organization_2.entry.js +0 -1
  70. package/dist/verdocs-web-sdk/p-0fecb805.entry.js +0 -1
  71. package/dist/verdocs-web-sdk/p-229a6849.entry.js +0 -1
  72. package/dist/verdocs-web-sdk/p-4821f318.system.entry.js +0 -1
  73. package/dist/verdocs-web-sdk/p-888adbc2.system.entry.js +0 -1
  74. package/dist/verdocs-web-sdk/p-ce22913a.entry.js +0 -1
  75. package/dist/verdocs-web-sdk/p-de192808.system.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function o(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(s,o)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-cbebc039.system.js","./p-4422958b.system.js","./p-169fa979.system.js","./p-ca13070e.system.js","./p-bbee73c8.system.js","./p-11e34f77.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,r,n,a,i,s,o,u,c,d,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;a=e.H},function(){},function(e){i=e.g;s=e.u;o=e.a;u=e.b},function(e){c=e.V},function(e){d=e.d},function(e){l=e.V},function(){},function(){},function(){},function(){},function(){}],execute:function(){var p;(function(e){e.assertEqual=function(e){return e};function t(e){}e.assertIs=t;function r(e){throw new Error}e.assertNever=r;e.arrayToEnum=function(e){var t={};for(var r=0,n=e;r<n.length;r++){var a=n[r];t[a]=a}return t};e.getValidEnumValues=function(t){var r=e.objectKeys(t).filter((function(e){return typeof t[t[e]]!=="number"}));var n={};for(var a=0,i=r;a<i.length;a++){var s=i[a];n[s]=t[s]}return e.objectValues(n)};e.objectValues=function(t){return e.objectKeys(t).map((function(e){return t[e]}))};e.objectKeys=typeof Object.keys==="function"?function(e){return Object.keys(e)}:function(e){var t=[];for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t.push(r)}}return t};e.find=function(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];if(t(a))return a}return undefined};e.isInteger=typeof Number.isInteger==="function"?function(e){return Number.isInteger(e)}:function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e};function n(e,t){if(t===void 0){t=" | "}return e.map((function(e){return typeof e==="string"?"'".concat(e,"'"):e})).join(t)}e.joinValues=n;e.jsonStringifyReplacer=function(e,t){if(typeof t==="bigint"){return t.toString()}return t}})(p||(p={}));var f;(function(e){e.mergeShapes=function(e,t){return __assign(__assign({},e),t)}})(f||(f={}));var h=p.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var v=function(e){var t=typeof e;switch(t){case"undefined":return h.undefined;case"string":return h.string;case"number":return isNaN(e)?h.nan:h.number;case"boolean":return h.boolean;case"function":return h.function;case"bigint":return h.bigint;case"symbol":return h.symbol;case"object":if(Array.isArray(e)){return h.array}if(e===null){return h.null}if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function"){return h.promise}if(typeof Map!=="undefined"&&e instanceof Map){return h.map}if(typeof Set!=="undefined"&&e instanceof Set){return h.set}if(typeof Date!=="undefined"&&e instanceof Date){return h.date}return h.object;default:return h.unknown}};var _=p.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"]);var m=function(e){var t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};var y=function(e){__extends(t,e);function t(t){var r=this.constructor;var n=e.call(this)||this;n.issues=[];n.addIssue=function(e){n.issues=__spreadArray(__spreadArray([],n.issues,true),[e],false)};n.addIssues=function(e){if(e===void 0){e=[]}n.issues=__spreadArray(__spreadArray([],n.issues,true),e,true)};var a=r.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(n,a)}else{n.__proto__=a}n.name="ZodError";n.issues=t;return n}Object.defineProperty(t.prototype,"errors",{get:function(){return this.issues},enumerable:false,configurable:true});t.prototype.format=function(e){var t=e||function(e){return e.message};var r={_errors:[]};var n=function(e){for(var a=0,i=e.issues;a<i.length;a++){var s=i[a];if(s.code==="invalid_union"){s.unionErrors.map(n)}else if(s.code==="invalid_return_type"){n(s.returnTypeError)}else if(s.code==="invalid_arguments"){n(s.argumentsError)}else if(s.path.length===0){r._errors.push(t(s))}else{var o=r;var u=0;while(u<s.path.length){var c=s.path[u];var d=u===s.path.length-1;if(!d){o[c]=o[c]||{_errors:[]}}else{o[c]=o[c]||{_errors:[]};o[c]._errors.push(t(s))}o=o[c];u++}}}};n(this);return r};t.prototype.toString=function(){return this.message};Object.defineProperty(t.prototype,"message",{get:function(){return JSON.stringify(this.issues,p.jsonStringifyReplacer,2)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.issues.length===0},enumerable:false,configurable:true});t.prototype.flatten=function(e){if(e===void 0){e=function(e){return e.message}}var t={};var r=[];for(var n=0,a=this.issues;n<a.length;n++){var i=a[n];if(i.path.length>0){t[i.path[0]]=t[i.path[0]]||[];t[i.path[0]].push(e(i))}else{r.push(e(i))}}return{formErrors:r,fieldErrors:t}};Object.defineProperty(t.prototype,"formErrors",{get:function(){return this.flatten()},enumerable:false,configurable:true});return t}(Error);y.create=function(e){var t=new y(e);return t};var g=function(e,t){var r;switch(e.code){case _.invalid_type:if(e.received===h.undefined){r="Required"}else{r="Expected ".concat(e.expected,", received ").concat(e.received)}break;case _.invalid_literal:r="Invalid literal value, expected ".concat(JSON.stringify(e.expected,p.jsonStringifyReplacer));break;case _.unrecognized_keys:r="Unrecognized key(s) in object: ".concat(p.joinValues(e.keys,", "));break;case _.invalid_union:r="Invalid input";break;case _.invalid_union_discriminator:r="Invalid discriminator value. Expected ".concat(p.joinValues(e.options));break;case _.invalid_enum_value:r="Invalid enum value. Expected ".concat(p.joinValues(e.options),", received '").concat(e.received,"'");break;case _.invalid_arguments:r="Invalid function arguments";break;case _.invalid_return_type:r="Invalid function return type";break;case _.invalid_date:r="Invalid date";break;case _.invalid_string:if(typeof e.validation==="object"){if("includes"in e.validation){r='Invalid input: must include "'.concat(e.validation.includes,'"');if(typeof e.validation.position==="number"){r="".concat(r," at one or more positions greater than or equal to ").concat(e.validation.position)}}else if("startsWith"in e.validation){r='Invalid input: must start with "'.concat(e.validation.startsWith,'"')}else if("endsWith"in e.validation){r='Invalid input: must end with "'.concat(e.validation.endsWith,'"')}else{p.assertNever(e.validation)}}else if(e.validation!=="regex"){r="Invalid ".concat(e.validation)}else{r="Invalid"}break;case _.too_small:if(e.type==="array")r="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)");else if(e.type==="string")r="String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)");else if(e.type==="number")r="Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum);else if(e.type==="date")r="Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum)));else r="Invalid input";break;case _.too_big:if(e.type==="array")r="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)");else if(e.type==="string")r="String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)");else if(e.type==="number")r="Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="bigint")r="BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="date")r="Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum)));else r="Invalid input";break;case _.custom:r="Invalid input";break;case _.invalid_intersection_types:r="Intersection results could not be merged";break;case _.not_multiple_of:r="Number must be a multiple of ".concat(e.multipleOf);break;case _.not_finite:r="Number must be finite";break;default:r=t.defaultError;p.assertNever(e)}return{message:r}};var b=g;function T(e){b=e}function M(){return b}var x=function(e){var t=e.data,r=e.path,n=e.errorMaps,a=e.issueData;var i=__spreadArray(__spreadArray([],r,true),a.path||[],true);var s=__assign(__assign({},a),{path:i});var o="";var u=n.filter((function(e){return!!e})).slice().reverse();for(var c=0,d=u;c<d.length;c++){var l=d[c];o=l(s,{data:t,defaultError:o}).message}return __assign(__assign({},a),{path:i,message:a.message||o})};var k=[];function G(e,t){var r=x({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,M(),g].filter((function(e){return!!e}))});e.common.issues.push(r)}var w=function(){function e(){this.value="valid"}e.prototype.dirty=function(){if(this.value==="valid")this.value="dirty"};e.prototype.abort=function(){if(this.value!=="aborted")this.value="aborted"};e.mergeArray=function(e,t){var r=[];for(var n=0,a=t;n<a.length;n++){var i=a[n];if(i.status==="aborted")return S;if(i.status==="dirty")e.dirty();r.push(i.value)}return{status:e.value,value:r}};e.mergeObjectAsync=function(t,r){return __awaiter(this,void 0,void 0,(function(){var n,a,i,s,o,u;var c;return __generator(this,(function(d){switch(d.label){case 0:n=[];a=0,i=r;d.label=1;case 1:if(!(a<i.length))return[3,5];s=i[a];u=(o=n).push;c={};return[4,s.key];case 2:c.key=d.sent();return[4,s.value];case 3:u.apply(o,[(c.value=d.sent(),c)]);d.label=4;case 4:a++;return[3,1];case 5:return[2,e.mergeObjectSync(t,n)]}}))}))};e.mergeObjectSync=function(e,t){var r={};for(var n=0,a=t;n<a.length;n++){var i=a[n];var s=i.key,o=i.value;if(s.status==="aborted")return S;if(o.status==="aborted")return S;if(s.status==="dirty")e.dirty();if(o.status==="dirty")e.dirty();if(s.value!=="__proto__"&&(typeof o.value!=="undefined"||i.alwaysSet)){r[s.value]=o.value}}return{status:e.value,value:r}};return e}();var S=Object.freeze({status:"aborted"});var Z=function(e){return{status:"dirty",value:e}};var O=function(e){return{status:"valid",value:e}};var j=function(e){return e.status==="aborted"};var P=function(e){return e.status==="dirty"};var C=function(e){return e.status==="valid"};var A=function(e){return typeof Promise!=="undefined"&&e instanceof Promise};var N;(function(e){e.errToObj=function(e){return typeof e==="string"?{message:e}:e||{}};e.toString=function(e){return typeof e==="string"?e:e===null||e===void 0?void 0:e.message}})(N||(N={}));var E=function(){function e(e,t,r,n){this._cachedPath=[];this.parent=e;this.data=t;this._path=r;this._key=n}Object.defineProperty(e.prototype,"path",{get:function(){var e,t;if(!this._cachedPath.length){if(this._key instanceof Array){(e=this._cachedPath).push.apply(e,__spreadArray(__spreadArray([],this._path,false),this._key,false))}else{(t=this._cachedPath).push.apply(t,__spreadArray(__spreadArray([],this._path,false),[this._key],false))}}return this._cachedPath},enumerable:false,configurable:true});return e}();var I=function(e,t){if(C(t)){return{success:true,data:t.value}}else{if(!e.common.issues.length){throw new Error("Validation failed but no issues detected.")}return{success:false,get error(){if(this._error)return this._error;var t=new y(e.common.issues);this._error=t;return this._error}}}};function R(e){if(!e)return{};var t=e.errorMap,r=e.invalid_type_error,n=e.required_error,a=e.description;if(t&&(r||n)){throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.')}if(t)return{errorMap:t,description:a};var i=function(e,t){if(e.code!=="invalid_type")return{message:t.defaultError};if(typeof t.data==="undefined"){return{message:n!==null&&n!==void 0?n:t.defaultError}}return{message:r!==null&&r!==void 0?r:t.defaultError}};return{errorMap:i,description:a}}var z=function(){function e(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)}Object.defineProperty(e.prototype,"description",{get:function(){return this._def.description},enumerable:false,configurable:true});e.prototype._getType=function(e){return v(e.data)};e.prototype._getOrReturnCtx=function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:v(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}};e.prototype._processInputParams=function(e){return{status:new w,ctx:{common:e.parent.common,data:e.data,parsedType:v(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}};e.prototype._parseSync=function(e){var t=this._parse(e);if(A(t)){throw new Error("Synchronous parse encountered promise.")}return t};e.prototype._parseAsync=function(e){var t=this._parse(e);return Promise.resolve(t)};e.prototype.parse=function(e,t){var r=this.safeParse(e,t);if(r.success)return r.data;throw r.error};e.prototype.safeParse=function(e,t){var r;var n={common:{issues:[],async:(r=t===null||t===void 0?void 0:t.async)!==null&&r!==void 0?r:false,contextualErrorMap:t===null||t===void 0?void 0:t.errorMap},path:(t===null||t===void 0?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:v(e)};var a=this._parseSync({data:e,path:n.path,parent:n});return I(n,a)};e.prototype.parseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.safeParseAsync(e,t)];case 1:r=n.sent();if(r.success)return[2,r.data];throw r.error}}))}))};e.prototype.safeParseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){switch(i.label){case 0:r={common:{issues:[],contextualErrorMap:t===null||t===void 0?void 0:t.errorMap,async:true},path:(t===null||t===void 0?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:v(e)};n=this._parse({data:e,path:r.path,parent:r});return[4,A(n)?n:Promise.resolve(n)];case 1:a=i.sent();return[2,I(r,a)]}}))}))};e.prototype.refine=function(e,t){var r=function(e){if(typeof t==="string"||typeof t==="undefined"){return{message:t}}else if(typeof t==="function"){return t(e)}else{return t}};return this._refinement((function(t,n){var a=e(t);var i=function(){return n.addIssue(__assign({code:_.custom},r(t)))};if(typeof Promise!=="undefined"&&a instanceof Promise){return a.then((function(e){if(!e){i();return false}else{return true}}))}if(!a){i();return false}else{return true}}))};e.prototype.refinement=function(e,t){return this._refinement((function(r,n){if(!e(r)){n.addIssue(typeof t==="function"?t(r,n):t);return false}else{return true}}))};e.prototype._refinement=function(e){return new Se({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:e}})};e.prototype.superRefine=function(e){return this._refinement(e)};e.prototype.optional=function(){return Ze.create(this,this._def)};e.prototype.nullable=function(){return Oe.create(this,this._def)};e.prototype.nullish=function(){return this.nullable().optional()};e.prototype.array=function(){return ue.create(this,this._def)};e.prototype.promise=function(){return we.create(this,this._def)};e.prototype.or=function(e){return le.create([this,e],this._def)};e.prototype.and=function(e){return ve.create(this,e,this._def)};e.prototype.transform=function(e){return new Se(__assign(__assign({},R(this._def)),{schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:e}}))};e.prototype.default=function(e){var t=typeof e==="function"?e:function(){return e};return new je(__assign(__assign({},R(this._def)),{innerType:this,defaultValue:t,typeName:Le.ZodDefault}))};e.prototype.brand=function(){return new Ne(__assign({typeName:Le.ZodBranded,type:this},R(this._def)))};e.prototype.catch=function(e){var t=typeof e==="function"?e:function(){return e};return new Pe(__assign(__assign({},R(this._def)),{innerType:this,catchValue:t,typeName:Le.ZodCatch}))};e.prototype.describe=function(e){var t=this.constructor;return new t(__assign(__assign({},this._def),{description:e}))};e.prototype.pipe=function(e){return Ee.create(this,e)};e.prototype.readonly=function(){return Ie.create(this)};e.prototype.isOptional=function(){return this.safeParse(undefined).success};e.prototype.isNullable=function(){return this.safeParse(null).success};return e}();var L=/^c[^\s-]{8,}$/i;var D=/^[a-z][a-z0-9]*$/;var U=/[0-9A-HJKMNP-TV-Z]{26}/;var B=/^[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;var F=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;var V=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;var K=/^(((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}))$/;var q=/^(([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})))$/;var W=function(e){if(e.precision){if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(e.precision,"}(([+-]\\d{2}(:?\\d{2})?)|Z)$"))}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(e.precision,"}Z$"))}}else if(e.precision===0){if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$")}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$")}}else{if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$")}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")}}};function H(e,t){if((t==="v4"||!t)&&K.test(e)){return true}if((t==="v6"||!t)&&q.test(e)){return true}return false}var $=function(e){__extends(t,e);function t(){var r=e.apply(this,arguments)||this;r._regex=function(e,t,n){return r.refinement((function(t){return e.test(t)}),__assign({validation:t,code:_.invalid_string},N.errToObj(n)))};r.nonempty=function(e){return r.min(1,N.errToObj(e))};r.trim=function(){return new t(__assign(__assign({},r._def),{checks:__spreadArray(__spreadArray([],r._def.checks,true),[{kind:"trim"}],false)}))};r.toLowerCase=function(){return new t(__assign(__assign({},r._def),{checks:__spreadArray(__spreadArray([],r._def.checks,true),[{kind:"toLowerCase"}],false)}))};r.toUpperCase=function(){return new t(__assign(__assign({},r._def),{checks:__spreadArray(__spreadArray([],r._def.checks,true),[{kind:"toUpperCase"}],false)}))};return r}t.prototype._parse=function(e){if(this._def.coerce){e.data=String(e.data)}var t=this._getType(e);if(t!==h.string){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.string,received:r.parsedType});return S}var n=new w;var a=undefined;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="min"){if(e.data.length<o.value){a=this._getOrReturnCtx(e,a);G(a,{code:_.too_small,minimum:o.value,type:"string",inclusive:true,exact:false,message:o.message});n.dirty()}}else if(o.kind==="max"){if(e.data.length>o.value){a=this._getOrReturnCtx(e,a);G(a,{code:_.too_big,maximum:o.value,type:"string",inclusive:true,exact:false,message:o.message});n.dirty()}}else if(o.kind==="length"){var u=e.data.length>o.value;var c=e.data.length<o.value;if(u||c){a=this._getOrReturnCtx(e,a);if(u){G(a,{code:_.too_big,maximum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}else if(c){G(a,{code:_.too_small,minimum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}n.dirty()}}else if(o.kind==="email"){if(!F.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"email",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="emoji"){if(!V.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"emoji",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="uuid"){if(!B.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"uuid",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="cuid"){if(!L.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"cuid",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="cuid2"){if(!D.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"cuid2",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="ulid"){if(!U.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"ulid",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="url"){try{new URL(e.data)}catch(t){a=this._getOrReturnCtx(e,a);G(a,{validation:"url",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="regex"){o.regex.lastIndex=0;var d=o.regex.test(e.data);if(!d){a=this._getOrReturnCtx(e,a);G(a,{validation:"regex",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="trim"){e.data=e.data.trim()}else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:{includes:o.value,position:o.position},message:o.message});n.dirty()}}else if(o.kind==="toLowerCase"){e.data=e.data.toLowerCase()}else if(o.kind==="toUpperCase"){e.data=e.data.toUpperCase()}else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:{startsWith:o.value},message:o.message});n.dirty()}}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:{endsWith:o.value},message:o.message});n.dirty()}}else if(o.kind==="datetime"){var l=W(o);if(!l.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:"datetime",message:o.message});n.dirty()}}else if(o.kind==="ip"){if(!H(e.data,o.version)){a=this._getOrReturnCtx(e,a);G(a,{validation:"ip",code:_.invalid_string,message:o.message});n.dirty()}}else{p.assertNever(o)}}return{status:n.value,value:e.data}};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.email=function(e){return this._addCheck(__assign({kind:"email"},N.errToObj(e)))};t.prototype.url=function(e){return this._addCheck(__assign({kind:"url"},N.errToObj(e)))};t.prototype.emoji=function(e){return this._addCheck(__assign({kind:"emoji"},N.errToObj(e)))};t.prototype.uuid=function(e){return this._addCheck(__assign({kind:"uuid"},N.errToObj(e)))};t.prototype.cuid=function(e){return this._addCheck(__assign({kind:"cuid"},N.errToObj(e)))};t.prototype.cuid2=function(e){return this._addCheck(__assign({kind:"cuid2"},N.errToObj(e)))};t.prototype.ulid=function(e){return this._addCheck(__assign({kind:"ulid"},N.errToObj(e)))};t.prototype.ip=function(e){return this._addCheck(__assign({kind:"ip"},N.errToObj(e)))};t.prototype.datetime=function(e){var t;if(typeof e==="string"){return this._addCheck({kind:"datetime",precision:null,offset:false,message:e})}return this._addCheck(__assign({kind:"datetime",precision:typeof(e===null||e===void 0?void 0:e.precision)==="undefined"?null:e===null||e===void 0?void 0:e.precision,offset:(t=e===null||e===void 0?void 0:e.offset)!==null&&t!==void 0?t:false},N.errToObj(e===null||e===void 0?void 0:e.message)))};t.prototype.regex=function(e,t){return this._addCheck(__assign({kind:"regex",regex:e},N.errToObj(t)))};t.prototype.includes=function(e,t){return this._addCheck(__assign({kind:"includes",value:e,position:t===null||t===void 0?void 0:t.position},N.errToObj(t===null||t===void 0?void 0:t.message)))};t.prototype.startsWith=function(e,t){return this._addCheck(__assign({kind:"startsWith",value:e},N.errToObj(t)))};t.prototype.endsWith=function(e,t){return this._addCheck(__assign({kind:"endsWith",value:e},N.errToObj(t)))};t.prototype.min=function(e,t){return this._addCheck(__assign({kind:"min",value:e},N.errToObj(t)))};t.prototype.max=function(e,t){return this._addCheck(__assign({kind:"max",value:e},N.errToObj(t)))};t.prototype.length=function(e,t){return this._addCheck(__assign({kind:"length",value:e},N.errToObj(t)))};Object.defineProperty(t.prototype,"isDatetime",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="datetime"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmail",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="email"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isURL",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="url"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmoji",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="emoji"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isUUID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="uuid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isCUID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="cuid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isCUID2",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="cuid2"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isULID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="ulid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isIP",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="ip"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"minLength",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxLength",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e},enumerable:false,configurable:true});return t}(z);$.create=function(e){var t;return new $(__assign({checks:[],typeName:Le.ZodString,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},R(e)))};function J(e,t){var r=(e.toString().split(".")[1]||"").length;var n=(t.toString().split(".")[1]||"").length;var a=r>n?r:n;var i=parseInt(e.toFixed(a).replace(".",""));var s=parseInt(t.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Y=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.min=t.gte;t.max=t.lte;t.step=t.multipleOf;return t}t.prototype._parse=function(e){if(this._def.coerce){e.data=Number(e.data)}var t=this._getType(e);if(t!==h.number){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.number,received:r.parsedType});return S}var n=undefined;var a=new w;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="int"){if(!p.isInteger(e.data)){n=this._getOrReturnCtx(e,n);G(n,{code:_.invalid_type,expected:"integer",received:"float",message:o.message});a.dirty()}}else if(o.kind==="min"){var u=o.inclusive?e.data<o.value:e.data<=o.value;if(u){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="max"){var c=o.inclusive?e.data>o.value:e.data>=o.value;if(c){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="multipleOf"){if(J(e.data,o.value)!==0){n=this._getOrReturnCtx(e,n);G(n,{code:_.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else if(o.kind==="finite"){if(!Number.isFinite(e.data)){n=this._getOrReturnCtx(e,n);G(n,{code:_.not_finite,message:o.message});a.dirty()}}else{p.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,N.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,N.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,N.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,N.toString(t))};t.prototype.setLimit=function(e,r,n,a){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:r,inclusive:n,message:N.toString(a)}],false)}))};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.int=function(e){return this._addCheck({kind:"int",message:N.toString(e)})};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:N.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:N.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:N.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:N.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:N.toString(t)})};t.prototype.finite=function(e){return this._addCheck({kind:"finite",message:N.toString(e)})};t.prototype.safe=function(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:N.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:N.toString(e)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isInt",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="int"||e.kind==="multipleOf"&&p.isInteger(e.value)}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinite",{get:function(){var e=null,t=null;for(var r=0,n=this._def.checks;r<n.length;r++){var a=n[r];if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf"){return true}else if(a.kind==="min"){if(t===null||a.value>t)t=a.value}else if(a.kind==="max"){if(e===null||a.value<e)e=a.value}}return Number.isFinite(t)&&Number.isFinite(e)},enumerable:false,configurable:true});return t}(z);Y.create=function(e){return new Y(__assign({checks:[],typeName:Le.ZodNumber,coerce:(e===null||e===void 0?void 0:e.coerce)||false},R(e)))};var Q=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.min=t.gte;t.max=t.lte;return t}t.prototype._parse=function(e){if(this._def.coerce){e.data=BigInt(e.data)}var t=this._getType(e);if(t!==h.bigint){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.bigint,received:r.parsedType});return S}var n=undefined;var a=new w;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="min"){var u=o.inclusive?e.data<o.value:e.data<=o.value;if(u){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message});a.dirty()}}else if(o.kind==="max"){var c=o.inclusive?e.data>o.value:e.data>=o.value;if(c){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message});a.dirty()}}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0)){n=this._getOrReturnCtx(e,n);G(n,{code:_.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else{p.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,N.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,N.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,N.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,N.toString(t))};t.prototype.setLimit=function(e,r,n,a){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:r,inclusive:n,message:N.toString(a)}],false)}))};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:N.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:N.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:N.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:N.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:N.toString(t)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e},enumerable:false,configurable:true});return t}(z);Q.create=function(e){var t;return new Q(__assign({checks:[],typeName:Le.ZodBigInt,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},R(e)))};var X=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(this._def.coerce){e.data=Boolean(e.data)}var t=this._getType(e);if(t!==h.boolean){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.boolean,received:r.parsedType});return S}return O(e.data)};return t}(z);X.create=function(e){return new X(__assign({typeName:Le.ZodBoolean,coerce:(e===null||e===void 0?void 0:e.coerce)||false},R(e)))};var ee=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(this._def.coerce){e.data=new Date(e.data)}var t=this._getType(e);if(t!==h.date){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.date,received:r.parsedType});return S}if(isNaN(e.data.getTime())){var n=this._getOrReturnCtx(e);G(n,{code:_.invalid_date});return S}var a=new w;var i=undefined;for(var s=0,o=this._def.checks;s<o.length;s++){var u=o[s];if(u.kind==="min"){if(e.data.getTime()<u.value){i=this._getOrReturnCtx(e,i);G(i,{code:_.too_small,message:u.message,inclusive:true,exact:false,minimum:u.value,type:"date"});a.dirty()}}else if(u.kind==="max"){if(e.data.getTime()>u.value){i=this._getOrReturnCtx(e,i);G(i,{code:_.too_big,message:u.message,inclusive:true,exact:false,maximum:u.value,type:"date"});a.dirty()}}else{p.assertNever(u)}}return{status:a.value,value:new Date(e.data.getTime())}};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.min=function(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:N.toString(t)})};t.prototype.max=function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:N.toString(t)})};Object.defineProperty(t.prototype,"minDate",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxDate",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});return t}(z);ee.create=function(e){return new ee(__assign({checks:[],coerce:(e===null||e===void 0?void 0:e.coerce)||false,typeName:Le.ZodDate},R(e)))};var te=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.symbol){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.symbol,received:r.parsedType});return S}return O(e.data)};return t}(z);te.create=function(e){return new te(__assign({typeName:Le.ZodSymbol},R(e)))};var re=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.undefined){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.undefined,received:r.parsedType});return S}return O(e.data)};return t}(z);re.create=function(e){return new re(__assign({typeName:Le.ZodUndefined},R(e)))};var ne=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.null){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.null,received:r.parsedType});return S}return O(e.data)};return t}(z);ne.create=function(e){return new ne(__assign({typeName:Le.ZodNull},R(e)))};var ae=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._any=true;return t}t.prototype._parse=function(e){return O(e.data)};return t}(z);ae.create=function(e){return new ae(__assign({typeName:Le.ZodAny},R(e)))};var ie=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._unknown=true;return t}t.prototype._parse=function(e){return O(e.data)};return t}(z);ie.create=function(e){return new ie(__assign({typeName:Le.ZodUnknown},R(e)))};var se=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getOrReturnCtx(e);G(t,{code:_.invalid_type,expected:h.never,received:t.parsedType});return S};return t}(z);se.create=function(e){return new se(__assign({typeName:Le.ZodNever},R(e)))};var oe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.undefined){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.void,received:r.parsedType});return S}return O(e.data)};return t}(z);oe.create=function(e){return new oe(__assign({typeName:Le.ZodVoid},R(e)))};var ue=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.ctx,n=t.status;var a=this._def;if(r.parsedType!==h.array){G(r,{code:_.invalid_type,expected:h.array,received:r.parsedType});return S}if(a.exactLength!==null){var i=r.data.length>a.exactLength.value;var s=r.data.length<a.exactLength.value;if(i||s){G(r,{code:i?_.too_big:_.too_small,minimum:s?a.exactLength.value:undefined,maximum:i?a.exactLength.value:undefined,type:"array",inclusive:true,exact:true,message:a.exactLength.message});n.dirty()}}if(a.minLength!==null){if(r.data.length<a.minLength.value){G(r,{code:_.too_small,minimum:a.minLength.value,type:"array",inclusive:true,exact:false,message:a.minLength.message});n.dirty()}}if(a.maxLength!==null){if(r.data.length>a.maxLength.value){G(r,{code:_.too_big,maximum:a.maxLength.value,type:"array",inclusive:true,exact:false,message:a.maxLength.message});n.dirty()}}if(r.common.async){return Promise.all(__spreadArray([],r.data,true).map((function(e,t){return a.type._parseAsync(new E(r,e,r.path,t))}))).then((function(e){return w.mergeArray(n,e)}))}var o=__spreadArray([],r.data,true).map((function(e,t){return a.type._parseSync(new E(r,e,r.path,t))}));return w.mergeArray(n,o)};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.type},enumerable:false,configurable:true});t.prototype.min=function(e,r){return new t(__assign(__assign({},this._def),{minLength:{value:e,message:N.toString(r)}}))};t.prototype.max=function(e,r){return new t(__assign(__assign({},this._def),{maxLength:{value:e,message:N.toString(r)}}))};t.prototype.length=function(e,r){return new t(__assign(__assign({},this._def),{exactLength:{value:e,message:N.toString(r)}}))};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(z);ue.create=function(e,t){return new ue(__assign({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray},R(t)))};function ce(e){if(e instanceof de){var t={};for(var r in e.shape){var n=e.shape[r];t[r]=Ze.create(ce(n))}return new de(__assign(__assign({},e._def),{shape:function(){return t}}))}else if(e instanceof ue){return new ue(__assign(__assign({},e._def),{type:ce(e.element)}))}else if(e instanceof Ze){return Ze.create(ce(e.unwrap()))}else if(e instanceof Oe){return Oe.create(ce(e.unwrap()))}else if(e instanceof _e){return _e.create(e.items.map((function(e){return ce(e)})))}else{return e}}var de=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._cached=null;t.nonstrict=t.passthrough;t.augment=t.extend;return t}t.prototype._getCached=function(){if(this._cached!==null)return this._cached;var e=this._def.shape();var t=p.objectKeys(e);return this._cached={shape:e,keys:t}};t.prototype._parse=function(e){var t=this;var r=this._getType(e);if(r!==h.object){var n=this._getOrReturnCtx(e);G(n,{code:_.invalid_type,expected:h.object,received:n.parsedType});return S}var a=this._processInputParams(e),i=a.status,s=a.ctx;var o=this._getCached(),u=o.shape,c=o.keys;var d=[];if(!(this._def.catchall instanceof se&&this._def.unknownKeys==="strip")){for(var l in s.data){if(!c.includes(l)){d.push(l)}}}var p=[];for(var f=0,v=c;f<v.length;f++){var l=v[f];var m=u[l];var y=s.data[l];p.push({key:{status:"valid",value:l},value:m._parse(new E(s,y,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof se){var g=this._def.unknownKeys;if(g==="passthrough"){for(var b=0,T=d;b<T.length;b++){var l=T[b];p.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}})}}else if(g==="strict"){if(d.length>0){G(s,{code:_.unrecognized_keys,keys:d});i.dirty()}}else if(g==="strip");else{throw new Error("Internal ZodObject error: invalid unknownKeys value.")}}else{var M=this._def.catchall;for(var x=0,k=d;x<k.length;x++){var l=k[x];var y=s.data[l];p.push({key:{status:"valid",value:l},value:M._parse(new E(s,y,s.path,l)),alwaysSet:l in s.data})}}if(s.common.async){return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,r,n,a,i,s;var o;return __generator(this,(function(u){switch(u.label){case 0:e=[];t=0,r=p;u.label=1;case 1:if(!(t<r.length))return[3,5];n=r[t];return[4,n.key];case 2:a=u.sent();s=(i=e).push;o={key:a};return[4,n.value];case 3:s.apply(i,[(o.value=u.sent(),o.alwaysSet=n.alwaysSet,o)]);u.label=4;case 4:t++;return[3,1];case 5:return[2,e]}}))}))})).then((function(e){return w.mergeObjectSync(i,e)}))}else{return w.mergeObjectSync(i,p)}};Object.defineProperty(t.prototype,"shape",{get:function(){return this._def.shape()},enumerable:false,configurable:true});t.prototype.strict=function(e){var r=this;return new t(__assign(__assign(__assign({},this._def),{unknownKeys:"strict"}),e!==undefined?{errorMap:function(t,n){var a,i,s,o;var u=(s=(i=(a=r._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;if(t.code==="unrecognized_keys")return{message:(o=N.errToObj(e).message)!==null&&o!==void 0?o:u};return{message:u}}}:{}))};t.prototype.strip=function(){return new t(__assign(__assign({},this._def),{unknownKeys:"strip"}))};t.prototype.passthrough=function(){return new t(__assign(__assign({},this._def),{unknownKeys:"passthrough"}))};t.prototype.extend=function(e){var r=this;return new t(__assign(__assign({},this._def),{shape:function(){return __assign(__assign({},r._def.shape()),e)}}))};t.prototype.merge=function(e){var r=this;var n=new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:function(){return __assign(__assign({},r._def.shape()),e._def.shape())},typeName:Le.ZodObject});return n};t.prototype.setKey=function(e,t){var r;return this.augment((r={},r[e]=t,r))};t.prototype.catchall=function(e){return new t(__assign(__assign({},this._def),{catchall:e}))};t.prototype.pick=function(e){var r=this;var n={};p.objectKeys(e).forEach((function(t){if(e[t]&&r.shape[t]){n[t]=r.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.omit=function(e){var r=this;var n={};p.objectKeys(this.shape).forEach((function(t){if(!e[t]){n[t]=r.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.deepPartial=function(){return ce(this)};t.prototype.partial=function(e){var r=this;var n={};p.objectKeys(this.shape).forEach((function(t){var a=r.shape[t];if(e&&!e[t]){n[t]=a}else{n[t]=a.optional()}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.required=function(e){var r=this;var n={};p.objectKeys(this.shape).forEach((function(t){if(e&&!e[t]){n[t]=r.shape[t]}else{var a=r.shape[t];var i=a;while(i instanceof Ze){i=i._def.innerType}n[t]=i}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.keyof=function(){return xe(p.objectKeys(this.shape))};return t}(z);de.create=function(e,t){return new de(__assign({shape:function(){return e},unknownKeys:"strip",catchall:se.create(),typeName:Le.ZodObject},R(t)))};de.strictCreate=function(e,t){return new de(__assign({shape:function(){return e},unknownKeys:"strict",catchall:se.create(),typeName:Le.ZodObject},R(t)))};de.lazycreate=function(e,t){return new de(__assign({shape:e,unknownKeys:"strip",catchall:se.create(),typeName:Le.ZodObject},R(t)))};var le=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t;var r=this;var n=this._processInputParams(e).ctx;var a=this._def.options;function i(e){var t;for(var r=0,a=e;r<a.length;r++){var i=a[r];if(i.result.status==="valid"){return i.result}}for(var s=0,o=e;s<o.length;s++){var i=o[s];if(i.result.status==="dirty"){(t=n.common.issues).push.apply(t,i.ctx.common.issues);return i.result}}var u=e.map((function(e){return new y(e.ctx.common.issues)}));G(n,{code:_.invalid_union,unionErrors:u});return S}if(n.common.async){return Promise.all(a.map((function(e){return __awaiter(r,void 0,void 0,(function(){var t;var r;return __generator(this,(function(a){switch(a.label){case 0:t=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]}),parent:null});r={};return[4,e._parseAsync({data:n.data,path:n.path,parent:t})];case 1:return[2,(r.result=a.sent(),r.ctx=t,r)]}}))}))}))).then(i)}else{var s=undefined;var o=[];for(var u=0,c=a;u<c.length;u++){var d=c[u];var l=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]}),parent:null});var p=d._parseSync({data:n.data,path:n.path,parent:l});if(p.status==="valid"){return p}else if(p.status==="dirty"&&!s){s={result:p,ctx:l}}if(l.common.issues.length){o.push(l.common.issues)}}if(s){(t=n.common.issues).push.apply(t,s.ctx.common.issues);return s.result}var f=o.map((function(e){return new y(e)}));G(n,{code:_.invalid_union,unionErrors:f});return S}};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});return t}(z);le.create=function(e,t){return new le(__assign({options:e,typeName:Le.ZodUnion},R(t)))};var pe=function(e){if(e instanceof Te){return pe(e.schema)}else if(e instanceof Se){return pe(e.innerType())}else if(e instanceof Me){return[e.value]}else if(e instanceof ke){return e.options}else if(e instanceof Ge){return Object.keys(e.enum)}else if(e instanceof je){return pe(e._def.innerType)}else if(e instanceof re){return[undefined]}else if(e instanceof ne){return[null]}else{return null}};var fe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==h.object){G(t,{code:_.invalid_type,expected:h.object,received:t.parsedType});return S}var r=this.discriminator;var n=t.data[r];var a=this.optionsMap.get(n);if(!a){G(t,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]});return S}if(t.common.async){return a._parseAsync({data:t.data,path:t.path,parent:t})}else{return a._parseSync({data:t.data,path:t.path,parent:t})}};Object.defineProperty(t.prototype,"discriminator",{get:function(){return this._def.discriminator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"optionsMap",{get:function(){return this._def.optionsMap},enumerable:false,configurable:true});t.create=function(e,r,n){var a=new Map;for(var i=0,s=r;i<s.length;i++){var o=s[i];var u=pe(o.shape[e]);if(!u){throw new Error("A discriminator value for key `".concat(e,"` could not be extracted from all schema options"))}for(var c=0,d=u;c<d.length;c++){var l=d[c];if(a.has(l)){throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(l)))}a.set(l,o)}}return new t(__assign({typeName:Le.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a},R(n)))};return t}(z);function he(e,t){var r=v(e);var n=v(t);if(e===t){return{valid:true,data:e}}else if(r===h.object&&n===h.object){var a=p.objectKeys(t);var i=p.objectKeys(e).filter((function(e){return a.indexOf(e)!==-1}));var s=__assign(__assign({},e),t);for(var o=0,u=i;o<u.length;o++){var c=u[o];var d=he(e[c],t[c]);if(!d.valid){return{valid:false}}s[c]=d.data}return{valid:true,data:s}}else if(r===h.array&&n===h.array){if(e.length!==t.length){return{valid:false}}var l=[];for(var f=0;f<e.length;f++){var _=e[f];var m=t[f];var d=he(_,m);if(!d.valid){return{valid:false}}l.push(d.data)}return{valid:true,data:l}}else if(r===h.date&&n===h.date&&+e===+t){return{valid:true,data:e}}else{return{valid:false}}}var ve=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.status,n=t.ctx;var a=function(e,t){if(j(e)||j(t)){return S}var a=he(e.value,t.value);if(!a.valid){G(n,{code:_.invalid_intersection_types});return S}if(P(e)||P(t)){r.dirty()}return{status:r.value,value:a.data}};if(n.common.async){return Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((function(e){var t=e[0],r=e[1];return a(t,r)}))}else{return a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};return t}(z);ve.create=function(e,t,r){return new ve(__assign({left:e,right:t,typeName:Le.ZodIntersection},R(r)))};var _e=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;if(a.parsedType!==h.array){G(a,{code:_.invalid_type,expected:h.array,received:a.parsedType});return S}if(a.data.length<this._def.items.length){G(a,{code:_.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return S}var i=this._def.rest;if(!i&&a.data.length>this._def.items.length){G(a,{code:_.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"});n.dirty()}var s=__spreadArray([],a.data,true).map((function(e,r){var n=t._def.items[r]||t._def.rest;if(!n)return null;return n._parse(new E(a,e,a.path,r))})).filter((function(e){return!!e}));if(a.common.async){return Promise.all(s).then((function(e){return w.mergeArray(n,e)}))}else{return w.mergeArray(n,s)}};Object.defineProperty(t.prototype,"items",{get:function(){return this._def.items},enumerable:false,configurable:true});t.prototype.rest=function(e){return new t(__assign(__assign({},this._def),{rest:e}))};return t}(z);_e.create=function(e,t){if(!Array.isArray(e)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new _e(__assign({items:e,typeName:Le.ZodTuple,rest:null},R(t)))};var me=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"keySchema",{get:function(){return this._def.keyType},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"valueSchema",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.status,n=t.ctx;if(n.parsedType!==h.object){G(n,{code:_.invalid_type,expected:h.object,received:n.parsedType});return S}var a=[];var i=this._def.keyType;var s=this._def.valueType;for(var o in n.data){a.push({key:i._parse(new E(n,o,n.path,o)),value:s._parse(new E(n,n.data[o],n.path,o))})}if(n.common.async){return w.mergeObjectAsync(r,a)}else{return w.mergeObjectSync(r,a)}};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.create=function(e,r,n){if(r instanceof z){return new t(__assign({keyType:e,valueType:r,typeName:Le.ZodRecord},R(n)))}return new t(__assign({keyType:$.create(),valueType:e,typeName:Le.ZodRecord},R(r)))};return t}(z);var ye=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"keySchema",{get:function(){return this._def.keyType},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"valueSchema",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;if(a.parsedType!==h.map){G(a,{code:_.invalid_type,expected:h.map,received:a.parsedType});return S}var i=this._def.keyType;var s=this._def.valueType;var o=__spreadArray([],a.data.entries(),true).map((function(e,t){var r=e[0],n=e[1];return{key:i._parse(new E(a,r,a.path,[t,"key"])),value:s._parse(new E(a,n,a.path,[t,"value"]))}}));if(a.common.async){var u=new Map;return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,r,a,i;return __generator(this,(function(s){switch(s.label){case 0:e=0,t=o;s.label=1;case 1:if(!(e<t.length))return[3,5];r=t[e];return[4,r.key];case 2:a=s.sent();return[4,r.value];case 3:i=s.sent();if(a.status==="aborted"||i.status==="aborted"){return[2,S]}if(a.status==="dirty"||i.status==="dirty"){n.dirty()}u.set(a.value,i.value);s.label=4;case 4:e++;return[3,1];case 5:return[2,{status:n.value,value:u}]}}))}))}))}else{var c=new Map;for(var d=0,l=o;d<l.length;d++){var p=l[d];var f=p.key;var v=p.value;if(f.status==="aborted"||v.status==="aborted"){return S}if(f.status==="dirty"||v.status==="dirty"){n.dirty()}c.set(f.value,v.value)}return{status:n.value,value:c}}};return t}(z);ye.create=function(e,t,r){return new ye(__assign({valueType:t,keyType:e,typeName:Le.ZodMap},R(r)))};var ge=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.status,n=t.ctx;if(n.parsedType!==h.set){G(n,{code:_.invalid_type,expected:h.set,received:n.parsedType});return S}var a=this._def;if(a.minSize!==null){if(n.data.size<a.minSize.value){G(n,{code:_.too_small,minimum:a.minSize.value,type:"set",inclusive:true,exact:false,message:a.minSize.message});r.dirty()}}if(a.maxSize!==null){if(n.data.size>a.maxSize.value){G(n,{code:_.too_big,maximum:a.maxSize.value,type:"set",inclusive:true,exact:false,message:a.maxSize.message});r.dirty()}}var i=this._def.valueType;function s(e){var t=new Set;for(var n=0,a=e;n<a.length;n++){var i=a[n];if(i.status==="aborted")return S;if(i.status==="dirty")r.dirty();t.add(i.value)}return{status:r.value,value:t}}var o=__spreadArray([],n.data.values(),true).map((function(e,t){return i._parse(new E(n,e,n.path,t))}));if(n.common.async){return Promise.all(o).then((function(e){return s(e)}))}else{return s(o)}};t.prototype.min=function(e,r){return new t(__assign(__assign({},this._def),{minSize:{value:e,message:N.toString(r)}}))};t.prototype.max=function(e,r){return new t(__assign(__assign({},this._def),{maxSize:{value:e,message:N.toString(r)}}))};t.prototype.size=function(e,t){return this.min(e,t).max(e,t)};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(z);ge.create=function(e,t){return new ge(__assign({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet},R(t)))};var be=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.validate=t.implement;return t}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==h.function){G(t,{code:_.invalid_type,expected:h.function,received:t.parsedType});return S}function r(e,r){return x({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,M(),g].filter((function(e){return!!e})),issueData:{code:_.invalid_arguments,argumentsError:r}})}function n(e,r){return x({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,M(),g].filter((function(e){return!!e})),issueData:{code:_.invalid_return_type,returnTypeError:r}})}var a={errorMap:t.common.contextualErrorMap};var i=t.data;if(this._def.returns instanceof we){var s=this;return O((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return __awaiter(this,void 0,void 0,(function(){var t,o,u,c;return __generator(this,(function(d){switch(d.label){case 0:t=new y([]);return[4,s._def.args.parseAsync(e,a).catch((function(n){t.addIssue(r(e,n));throw t}))];case 1:o=d.sent();return[4,Reflect.apply(i,this,o)];case 2:u=d.sent();return[4,s._def.returns._def.type.parseAsync(u,a).catch((function(e){t.addIssue(n(u,e));throw t}))];case 3:c=d.sent();return[2,c]}}))}))}))}else{var o=this;return O((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var s=o._def.args.safeParse(e,a);if(!s.success){throw new y([r(e,s.error)])}var u=Reflect.apply(i,this,s.data);var c=o._def.returns.safeParse(u,a);if(!c.success){throw new y([n(u,c.error)])}return c.data}))}};t.prototype.parameters=function(){return this._def.args};t.prototype.returnType=function(){return this._def.returns};t.prototype.args=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}return new t(__assign(__assign({},this._def),{args:_e.create(e).rest(ie.create())}))};t.prototype.returns=function(e){return new t(__assign(__assign({},this._def),{returns:e}))};t.prototype.implement=function(e){var t=this.parse(e);return t};t.prototype.strictImplement=function(e){var t=this.parse(e);return t};t.create=function(e,r,n){return new t(__assign({args:e?e:_e.create([]).rest(ie.create()),returns:r||ie.create(),typeName:Le.ZodFunction},R(n)))};return t}(z);var Te=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"schema",{get:function(){return this._def.getter()},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})};return t}(z);Te.create=function(e,t){return new Te(__assign({getter:e,typeName:Le.ZodLazy},R(t)))};var Me=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(e.data!==this._def.value){var t=this._getOrReturnCtx(e);G(t,{received:t.data,code:_.invalid_literal,expected:this._def.value});return S}return{status:"valid",value:e.data}};Object.defineProperty(t.prototype,"value",{get:function(){return this._def.value},enumerable:false,configurable:true});return t}(z);Me.create=function(e,t){return new Me(__assign({value:e,typeName:Le.ZodLiteral},R(t)))};function xe(e,t){return new ke(__assign({values:e,typeName:Le.ZodEnum},R(t)))}var ke=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(typeof e.data!=="string"){var t=this._getOrReturnCtx(e);var r=this._def.values;G(t,{expected:p.joinValues(r),received:t.parsedType,code:_.invalid_type});return S}if(this._def.values.indexOf(e.data)===-1){var t=this._getOrReturnCtx(e);var r=this._def.values;G(t,{received:t.data,code:_.invalid_enum_value,options:r});return S}return O(e.data)};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.values},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"enum",{get:function(){var e={};for(var t=0,r=this._def.values;t<r.length;t++){var n=r[t];e[n]=n}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Values",{get:function(){var e={};for(var t=0,r=this._def.values;t<r.length;t++){var n=r[t];e[n]=n}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Enum",{get:function(){var e={};for(var t=0,r=this._def.values;t<r.length;t++){var n=r[t];e[n]=n}return e},enumerable:false,configurable:true});t.prototype.extract=function(e){return t.create(e)};t.prototype.exclude=function(e){return t.create(this.options.filter((function(t){return!e.includes(t)})))};return t}(z);ke.create=xe;var Ge=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=p.getValidEnumValues(this._def.values);var r=this._getOrReturnCtx(e);if(r.parsedType!==h.string&&r.parsedType!==h.number){var n=p.objectValues(t);G(r,{expected:p.joinValues(n),received:r.parsedType,code:_.invalid_type});return S}if(t.indexOf(e.data)===-1){var n=p.objectValues(t);G(r,{received:r.data,code:_.invalid_enum_value,options:n});return S}return O(e.data)};Object.defineProperty(t.prototype,"enum",{get:function(){return this._def.values},enumerable:false,configurable:true});return t}(z);Ge.create=function(e,t){return new Ge(__assign({values:e,typeName:Le.ZodNativeEnum},R(t)))};var we=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.unwrap=function(){return this._def.type};t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e).ctx;if(r.parsedType!==h.promise&&r.common.async===false){G(r,{code:_.invalid_type,expected:h.promise,received:r.parsedType});return S}var n=r.parsedType===h.promise?r.data:Promise.resolve(r.data);return O(n.then((function(e){return t._def.type.parseAsync(e,{path:r.path,errorMap:r.common.contextualErrorMap})})))};return t}(z);we.create=function(e,t){return new we(__assign({type:e,typeName:Le.ZodPromise},R(t)))};var Se=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.innerType=function(){return this._def.schema};t.prototype.sourceType=function(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema};t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;var i=this._def.effect||null;var s={addIssue:function(e){G(a,e);if(e.fatal){n.abort()}else{n.dirty()}},get path(){return a.path}};s.addIssue=s.addIssue.bind(s);if(i.type==="preprocess"){var o=i.transform(a.data,s);if(a.common.issues.length){return{status:"dirty",value:a.data}}if(a.common.async){return Promise.resolve(o).then((function(e){return t._def.schema._parseAsync({data:e,path:a.path,parent:a})}))}else{return this._def.schema._parseSync({data:o,path:a.path,parent:a})}}if(i.type==="refinement"){var u=function(e){var t=i.refinement(e,s);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(a.common.async===false){var c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(c.status==="aborted")return S;if(c.status==="dirty")n.dirty();u(c.value);return{status:n.value,value:c.value}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(e.status==="aborted")return S;if(e.status==="dirty")n.dirty();return u(e.value).then((function(){return{status:n.value,value:e.value}}))}))}}if(i.type==="transform"){if(a.common.async===false){var d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!C(d))return d;var l=i.transform(d.value,s);if(l instanceof Promise){throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.")}return{status:n.value,value:l}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(!C(e))return e;return Promise.resolve(i.transform(e.value,s)).then((function(e){return{status:n.value,value:e}}))}))}}p.assertNever(i)};return t}(z);Se.create=function(e,t,r){return new Se(__assign({schema:e,typeName:Le.ZodEffects,effect:t},R(r)))};Se.createWithPreprocess=function(e,t,r){return new Se(__assign({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects},R(r)))};var Ze=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t===h.undefined){return O(undefined)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(z);Ze.create=function(e,t){return new Ze(__assign({innerType:e,typeName:Le.ZodOptional},R(t)))};var Oe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t===h.null){return O(null)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(z);Oe.create=function(e,t){return new Oe(__assign({innerType:e,typeName:Le.ZodNullable},R(t)))};var je=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var r=t.data;if(t.parsedType===h.undefined){r=this._def.defaultValue()}return this._def.innerType._parse({data:r,path:t.path,parent:t})};t.prototype.removeDefault=function(){return this._def.innerType};return t}(z);je.create=function(e,t){return new je(__assign({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof t.default==="function"?t.default:function(){return t.default}},R(t)))};var Pe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e).ctx;var n=__assign(__assign({},r),{common:__assign(__assign({},r.common),{issues:[]})});var a=this._def.innerType._parse({data:n.data,path:n.path,parent:__assign({},n)});if(A(a)){return a.then((function(e){return{status:"valid",value:e.status==="valid"?e.value:t._def.catchValue({get error(){return new y(n.common.issues)},input:n.data})}}))}else{return{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new y(n.common.issues)},input:n.data})}}};t.prototype.removeCatch=function(){return this._def.innerType};return t}(z);Pe.create=function(e,t){return new Pe(__assign({innerType:e,typeName:Le.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:function(){return t.catch}},R(t)))};var Ce=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.nan){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.nan,received:r.parsedType});return S}return{status:"valid",value:e.data}};return t}(z);Ce.create=function(e){return new Ce(__assign({typeName:Le.ZodNaN},R(e)))};var Ae=Symbol("zod_brand");var Ne=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})};t.prototype.unwrap=function(){return this._def.type};return t}(z);var Ee=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;if(a.common.async){var i=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this._def.in._parseAsync({data:a.data,path:a.path,parent:a})];case 1:e=t.sent();if(e.status==="aborted")return[2,S];if(e.status==="dirty"){n.dirty();return[2,Z(e.value)]}else{return[2,this._def.out._parseAsync({data:e.value,path:a.path,parent:a})]}return[2]}}))}))};return i()}else{var s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});if(s.status==="aborted")return S;if(s.status==="dirty"){n.dirty();return{status:"dirty",value:s.value}}else{return this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}};t.create=function(e,r){return new t({in:e,out:r,typeName:Le.ZodPipeline})};return t}(z);var Ie=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._def.innerType._parse(e);if(C(t)){t.value=Object.freeze(t.value)}return t};return t}(z);Ie.create=function(e,t){return new Ie(__assign({innerType:e,typeName:Le.ZodReadonly},R(t)))};var Re=function(e,t,r){if(t===void 0){t={}}if(e)return ae.create().superRefine((function(n,a){var i,s;if(!e(n)){var o=typeof t==="function"?t(n):typeof t==="string"?{message:t}:t;var u=(s=(i=o.fatal)!==null&&i!==void 0?i:r)!==null&&s!==void 0?s:true;var c=typeof o==="string"?{message:o}:o;a.addIssue(__assign(__assign({code:"custom"},c),{fatal:u}))}}));return ae.create()};var ze={object:de.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={}));var De=function(e,t){if(t===void 0){t={message:"Input not instance of ".concat(e.name)}}return Re((function(t){return t instanceof e}),t)};var Ue=$.create;var Be=Y.create;var Fe=Ce.create;var Ve=Q.create;var Ke=X.create;var qe=ee.create;var We=te.create;var He=re.create;var $e=ne.create;var Je=ae.create;var Ye=ie.create;var Qe=se.create;var Xe=oe.create;var et=ue.create;var tt=de.create;var rt=de.strictCreate;var nt=le.create;var at=fe.create;var it=ve.create;var st=_e.create;var ot=me.create;var ut=ye.create;var ct=ge.create;var dt=be.create;var lt=Te.create;var pt=Me.create;var ft=ke.create;var ht=Ge.create;var vt=we.create;var _t=Se.create;var mt=Ze.create;var yt=Oe.create;var gt=Se.createWithPreprocess;var bt=Ee.create;var Tt=function(){return Ue().optional()};var Mt=function(){return Be().optional()};var xt=function(){return Ke().optional()};var kt={string:function(e){return $.create(__assign(__assign({},e),{coerce:true}))},number:function(e){return Y.create(__assign(__assign({},e),{coerce:true}))},boolean:function(e){return X.create(__assign(__assign({},e),{coerce:true}))},bigint:function(e){return Q.create(__assign(__assign({},e),{coerce:true}))},date:function(e){return ee.create(__assign(__assign({},e),{coerce:true}))}};var Gt=S;var wt=Object.freeze({__proto__:null,defaultErrorMap:g,setErrorMap:T,getErrorMap:M,makeIssue:x,EMPTY_PATH:k,addIssueToContext:G,ParseStatus:w,INVALID:S,DIRTY:Z,OK:O,isAborted:j,isDirty:P,isValid:C,isAsync:A,get util(){return p},get objectUtil(){return f},ZodParsedType:h,getParsedType:v,ZodType:z,ZodString:$,ZodNumber:Y,ZodBigInt:Q,ZodBoolean:X,ZodDate:ee,ZodSymbol:te,ZodUndefined:re,ZodNull:ne,ZodAny:ae,ZodUnknown:ie,ZodNever:se,ZodVoid:oe,ZodArray:ue,ZodObject:de,ZodUnion:le,ZodDiscriminatedUnion:fe,ZodIntersection:ve,ZodTuple:_e,ZodRecord:me,ZodMap:ye,ZodSet:ge,ZodFunction:be,ZodLazy:Te,ZodLiteral:Me,ZodEnum:ke,ZodNativeEnum:Ge,ZodPromise:we,ZodEffects:Se,ZodTransformer:Se,ZodOptional:Ze,ZodNullable:Oe,ZodDefault:je,ZodCatch:Pe,ZodNaN:Ce,BRAND:Ae,ZodBranded:Ne,ZodPipeline:Ee,ZodReadonly:Ie,custom:Re,Schema:z,ZodSchema:z,late:ze,get ZodFirstPartyTypeKind(){return Le},coerce:kt,any:Je,array:et,bigint:Ve,boolean:Ke,date:qe,discriminatedUnion:at,effect:_t,enum:ft,function:dt,instanceof:De,intersection:it,lazy:lt,literal:pt,map:ut,nan:Fe,nativeEnum:ht,never:Qe,null:$e,nullable:yt,number:Be,object:tt,oboolean:xt,onumber:Mt,optional:mt,ostring:Tt,pipeline:bt,preprocess:gt,promise:vt,record:ot,set:ct,strictObject:rt,string:Ue,symbol:We,transformer:_t,tuple:st,undefined:He,union:nt,unknown:Ye,void:Xe,NEVER:Gt,ZodIssueCode:_,quotelessJson:m,ZodError:y});var St=[["International Date Line West","GMT-11:00","(GMT-11:00) International Date Line West"],["Midway Island","GMT-11:00","(GMT-11:00) Midway Island"],["Samoa","GMT-11:00","(GMT-11:00) Samoa"],["Hawaii","GMT-10:00","(GMT-10:00) Hawaii"],["Alaska","GMT-09:00","(GMT-09:00) Alaska"],["Pacific Time (US & Canada)","GMT-08:00","(GMT-08:00) Pacific Time (US & Canada)"],["Tijuana","GMT-08:00","(GMT-08:00) Tijuana"],["Arizona","GMT-07:00","(GMT-07:00) Arizona"],["Chihuahua","GMT-07:00","(GMT-07:00) Chihuahua"],["Mazatlan","GMT-07:00","(GMT-07:00) Mazatlan"],["Mountain Time (US & Canada)","GMT-07:00","(GMT-07:00) Mountain Time (US & Canada)"],["Central America","GMT-06:00","(GMT-06:00) Central America"],["Central Time (US & Canada)","GMT-06:00","(GMT-06:00) Central Time (US & Canada)"],["Guadalajara","GMT-06:00","(GMT-06:00) Guadalajara"],["Mexico City","GMT-06:00","(GMT-06:00) Mexico City"],["Monterrey","GMT-06:00","(GMT-06:00) Monterrey"],["Saskatchewan","GMT-06:00","(GMT-06:00) Saskatchewan"],["Bogota","GMT-05:00","(GMT-05:00) Bogota"],["Eastern Time (US & Canada)","GMT-05:00","(GMT-05:00) Eastern Time (US & Canada)"],["Indiana (East)","GMT-05:00","(GMT-05:00) Indiana (East)"],["Lima","GMT-05:00","(GMT-05:00) Lima"],["Quito","GMT-05:00","(GMT-05:00) Quito"],["Caracas","GMT-04:30","(GMT-04:30) Caracas"],["Atlantic Time (Canada)","GMT-04:00","(GMT-04:00) Atlantic Time (Canada)"],["Georgetown","GMT-04:00","(GMT-04:00) Georgetown"],["La Paz","GMT-04:00","(GMT-04:00) La Paz"],["Santiago","GMT-04:00","(GMT-04:00) Santiago"],["Newfoundland","GMT-03:30","(GMT-03:30) Newfoundland"],["Brasilia","GMT-03:00","(GMT-03:00) Brasilia"],["Buenos Aires","GMT-03:00","(GMT-03:00) Buenos Aires"],["Greenland","GMT-03:00","(GMT-03:00) Greenland"],["Mid-Atlantic","GMT-02:00","(GMT-02:00) Mid-Atlantic"],["Azores","GMT-01:00","(GMT-01:00) Azores"],["Cape Verde Is.","GMT-01:00","(GMT-01:00) Cape Verde Is."],["Casablanca","GMT+00:00","(GMT+00:00) Casablanca"],["Dublin","GMT+00:00","(GMT+00:00) Dublin"],["Edinburgh","GMT+00:00","(GMT+00:00) Edinburgh"],["Lisbon","GMT+00:00","(GMT+00:00) Lisbon"],["London","GMT+00:00","(GMT+00:00) London"],["Monrovia","GMT+00:00","(GMT+00:00) Monrovia"],["UTC","GMT+00:00","(GMT+00:00) UTC"],["Amsterdam","GMT+01:00","(GMT+01:00) Amsterdam"],["Belgrade","GMT+01:00","(GMT+01:00) Belgrade"],["Berlin","GMT+01:00","(GMT+01:00) Berlin"],["Bern","GMT+01:00","(GMT+01:00) Bern"],["Bratislava","GMT+01:00","(GMT+01:00) Bratislava"],["Brussels","GMT+01:00","(GMT+01:00) Brussels"],["Budapest","GMT+01:00","(GMT+01:00) Budapest"],["Copenhagen","GMT+01:00","(GMT+01:00) Copenhagen"],["Ljubljana","GMT+01:00","(GMT+01:00) Ljubljana"],["Madrid","GMT+01:00","(GMT+01:00) Madrid"],["Paris","GMT+01:00","(GMT+01:00) Paris"],["Prague","GMT+01:00","(GMT+01:00) Prague"],["Rome","GMT+01:00","(GMT+01:00) Rome"],["Sarajevo","GMT+01:00","(GMT+01:00) Sarajevo"],["Skopje","GMT+01:00","(GMT+01:00) Skopje"],["Stockholm","GMT+01:00","(GMT+01:00) Stockholm"],["Vienna","GMT+01:00","(GMT+01:00) Vienna"],["Warsaw","GMT+01:00","(GMT+01:00) Warsaw"],["West Central Africa","(GMT+01:00","(GMT+01:00) West Central Africa"],["Zagreb","GMT+01:00","(GMT+01:00) Zagreb"],["Athens","GMT+02:00","(GMT+02:00) Athens"],["Bucharest","GMT+02:00","(GMT+02:00) Bucharest"],["Cairo","GMT+02:00","(GMT+02:00) Cairo"],["Harare","GMT+02:00","(GMT+02:00) Harare"],["Helsinki","GMT+02:00","(GMT+02:00) Helsinki"],["Istanbul","GMT+02:00","(GMT+02:00) Istanbul"],["Jerusalem","GMT+02:00","(GMT+02:00) Jerusalem"],["Kyiv","GMT+02:00","(GMT+02:00) Kyiv"],["Minsk","GMT+02:00","(GMT+02:00) Minsk"],["Pretoria","GMT+02:00","(GMT+02:00) Pretoria"],["Riga","GMT+02:00","(GMT+02:00) Riga"],["Sofia","GMT+02:00","(GMT+02:00) Sofia"],["Tallinn","GMT+02:00","(GMT+02:00) Tallinn"],["Vilnius","GMT+02:00","(GMT+02:00) Vilnius"],["Baghdad","GMT+03:00","(GMT+03:00) Baghdad"],["Kuwait","GMT+03:00","(GMT+03:00) Kuwait"],["Moscow","GMT+03:00","(GMT+03:00) Moscow"],["Nairobi","GMT+03:00","(GMT+03:00) Nairobi"],["Riyadh","GMT+03:00","(GMT+03:00) Riyadh"],["St. Petersburg","GMT+03:00","(GMT+03:00) St. Petersburg"],["Volgograd","GMT+03:00","(GMT+03:00) Volgograd"],["Tehran","GMT+03:30","(GMT+03:30) Tehran"],["Abu Dhabi","GMT+04:00","(GMT+04:00) Abu Dhabi"],["Baku","GMT+04:00","(GMT+04:00) Baku"],["Muscat","GMT+04:00","(GMT+04:00) Muscat"],["Tbilisi","GMT+04:00","(GMT+04:00) Tbilisi"],["Yerevan","GMT+04:00","(GMT+04:00) Yerevan"],["Kabul","GMT+04:30","(GMT+04:30) Kabul"],["Ekaterinburg","GMT+05:00","(GMT+05:00) Ekaterinburg"],["Islamabad","GMT+05:00","(GMT+05:00) Islamabad"],["Karachi","GMT+05:00","(GMT+05:00) Karachi"],["Tashkent","GMT+05:00","(GMT+05:00) Tashkent"],["Chennai","GMT+05:30","(GMT+05:30) Chennai"],["Kolkata","GMT+05:30","(GMT+05:30) Kolkata"],["Mumbai","GMT+05:30","(GMT+05:30) Mumbai"],["New Delhi","GMT+05:30","(GMT+05:30) New Delhi"],["Sri Jayawardenepura","GMT+05:30","(GMT+05:30) Sri Jayawardenepura"],["Kathmandu","GMT+05:45","(GMT+05:45) Kathmandu"],["Almaty","GMT+06:00","(GMT+06:00) Almaty"],["Astana","GMT+06:00","(GMT+06:00) Astana"],["Dhaka","GMT+06:00","(GMT+06:00) Dhaka"],["Novosibirsk","GMT+06:00","(GMT+06:00) Novosibirsk"],["Rangoon","GMT+06:30","(GMT+06:30) Rangoon"],["Bangkok","GMT+07:00","(GMT+07:00) Bangkok"],["Hanoi","GMT+07:00","(GMT+07:00) Hanoi"],["Jakarta","GMT+07:00","(GMT+07:00) Jakarta"],["Krasnoyarsk","GMT+07:00","(GMT+07:00) Krasnoyarsk"],["Beijing","GMT+08:00","(GMT+08:00) Beijing"],["Chongqing","GMT+08:00","(GMT+08:00) Chongqing"],["Hong Kong","GMT+08:00","(GMT+08:00) Hong Kong"],["Irkutsk","GMT+08:00","(GMT+08:00) Irkutsk"],["Kuala Lumpur","GMT+08:00","(GMT+08:00) Kuala Lumpur"],["Perth","GMT+08:00","(GMT+08:00) Perth"],["Singapore","GMT+08:00","(GMT+08:00) Singapore"],["Taipei","GMT+08:00","(GMT+08:00) Taipei"],["Ulaan Bataar","GMT+08:00","(GMT+08:00) Ulaan Bataar"],["Urumqi","GMT+08:00","(GMT+08:00) Urumqi"],["Osaka","GMT+09:00","(GMT+09:00) Osaka"],["Sapporo","GMT+09:00","(GMT+09:00) Sapporo"],["Seoul","GMT+09:00","(GMT+09:00) Seoul"],["Tokyo","GMT+09:00","(GMT+09:00) Tokyo"],["Yakutsk","GMT+09:00","(GMT+09:00) Yakutsk"],["Adelaide","GMT+09:30","(GMT+09:30) Adelaide"],["Darwin","GMT+09:30","(GMT+09:30) Darwin"],["Brisbane","GMT+10:00","(GMT+10:00) Brisbane"],["Canberra","GMT+10:00","(GMT+10:00) Canberra"],["Guam","GMT+10:00","(GMT+10:00) Guam"],["Hobart","GMT+10:00","(GMT+10:00) Hobart"],["Melbourne","GMT+10:00","(GMT+10:00) Melbourne"],["Port Moresby","GMT+10:00","(GMT+10:00) Port Moresby"],["Sydney","GMT+10:00","(GMT+10:00) Sydney"],["Vladivostok","GMT+10:00","(GMT+10:00) Vladivostok"],["Kamchatka","GMT+11:00","(GMT+11:00) Kamchatka"],["Magadan","GMT+11:00","(GMT+11:00) Magadan"],["New Caledonia","GMT+11:00","(GMT+11:00) New Caledonia"],["Solomon Is.","GMT+11:00","(GMT+11:00) Solomon Is."],["Auckland","GMT+12:00","(GMT+12:00) Auckland"],["Fiji","GMT+12:00","(GMT+12:00) Fiji"],["Marshall Is.","GMT+12:00","(GMT+12:00) Marshall Is."],["Wellington","GMT+12:00","(GMT+12:00) Wellington"],["Nuku'alofa","GMT+13:00","(GMT+13:00) Nuku'alofa"]];var Zt='verdocs-settings-organization{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-organization .columns{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}verdocs-settings-organization .column{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-settings-organization verdocs-text-input{margin:10px 0}verdocs-settings-organization verdocs-text-input input{height:32px}@media screen and (max-width: 600px){verdocs-settings-organization .columns{gap:0;-ms-flex-direction:column;flex-direction:column}}';var Ot=St.map((function(e){return{value:e[2],label:e[2]}}));var jt=wt.object({name:wt.string().trim().min(1,"Name is required").max(30),business_name:wt.string().trim().max(30).optional(),contact_email:wt.string().trim().email("Invalid email").optional().or(wt.literal("")),phone:wt.preprocess((function(e){return d(String(e).trim())}),wt.string().optional()),address:wt.string().trim().max(30).optional(),address2:wt.string().trim().max(30).optional(),timezone:wt.string().trim().optional(),url:wt.string().trim().optional()});var Pt=e("verdocs_settings_organization",function(){function e(e){t(this,e);this.sdkError=r(this,"sdkError",7);this.organizationUpdated=r(this,"organizationUpdated",7);this.endpoint=c.getDefault();this.valid=false;this.dirty=false;this.submitting=false;this.name="";this.business_name="";this.contact_email="";this.phone="";this.address="";this.address2="";this.timezone="";this.url=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,i(this.endpoint,this.endpoint.session.organization_id)];case 1:e=t.sent();console.log("[SETTINGS] Loaded organization",e);this.resetForm(e);return[2]}}))}))};e.prototype.resetForm=function(e){this.name=e.name;this.business_name=e.business_name;this.contact_email=e.contact_email;this.phone=e.phone;this.address=e.address;this.address2=e.address2;this.timezone=e.timezone;this.url=e.url;this.dirty=false;this.valid=true};e.prototype.handleSubmit=function(e){var t=this;e.preventDefault();e.stopPropagation();s(c.getDefault(),this.endpoint.session.organization_id,{name:this.name,business_name:this.business_name,contact_email:this.contact_email,phone:this.phone,address:this.address,address2:this.address2,timezone:this.timezone,url:this.url}).then((function(e){var r;console.log("[SETTINGS] Update result",e);(r=t.organizationUpdated)===null||r===void 0?void 0:r.emit({endpoint:t.endpoint,organization:e});t.resetForm(e)})).catch((function(e){return l("Error updating organization: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=jt.safeParse({name:this.name,business_name:this.business_name,contact_email:this.contact_email,phone:this.phone,address:this.address,address2:this.address2,timezone:this.timezone,url:this.url});console.log("[SETTINGS] Validation result",e);this.valid=e.success;this.dirty=true};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return n(a,{class:"authentication-required"},"Must be authenticated")}return n(a,null,n("h1",null,"Organization Profile"),n("form",{onSubmit:function(t){return e.handleSubmit(t)}},n("div",{class:"columns"},n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-organization-name",value:this.name,autocomplete:"off",label:"Name",required:true,placeholder:"Enter your organization's name...",onInput:function(t){return e.name=t.target.value},onFocusout:function(t){e.name=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-business-name",value:this.business_name,autocomplete:"off",label:"d/b/a",placeholder:"Enter your d/b/a, if any...",onInput:function(t){return e.business_name=t.target.value},onFocusout:function(t){e.business_name=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-url",value:this.url,autocomplete:"off",label:"Web URL",placeholder:"Enter your Web URL...",onInput:function(t){return e.url=t.target.value},onFocusout:function(t){e.url=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-phone",value:this.phone,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:function(t){return e.phone=t.target.value},onFocusout:function(t){e.phone=t.target.value.trim();e.processFields()}})),n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-organization-address",value:this.address,autocomplete:"off",label:"Address",required:true,placeholder:"Enter your address...",onInput:function(t){return e.address=t.target.value},onFocusout:function(t){e.address=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-address",value:this.address2,autocomplete:"off",label:"Address 2",required:true,placeholder:"Address line 2...",onInput:function(t){return e.address2=t.target.value},onFocusout:function(t){e.address2=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-address2",value:this.address2,clearable:true,autocomplete:"off",label:"Address 2",placeholder:"Enter your address...",onInput:function(t){return e.address2=t.target.value},onFocusout:function(t){e.address2=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-email",value:this.contact_email,clearable:true,autocomplete:"off",label:"Contact Email",placeholder:"Enter your contact email address...",onInput:function(t){return e.contact_email=t.target.value},onFocusout:function(t){e.contact_email=t.target.value.trim();e.processFields()}}),n("verdocs-select-input",{options:Ot,value:this.timezone,label:"Time Zone"}))),n("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());Pt.style=Zt;var Ct='verdocs-settings-profile{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-profile .columns{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}verdocs-settings-profile .column{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-settings-profile verdocs-text-input{margin:10px 0}verdocs-settings-profile verdocs-text-input input{height:32px}@media screen and (max-width: 600px){verdocs-settings-profile .columns{gap:0;-ms-flex-direction:column;flex-direction:column}}';var At=wt.object({first_name:wt.string().trim().min(1,"First name is required").max(30),last_name:wt.string().trim().min(1,"Last name is required").max(30),email:wt.string().trim().email("Invalid email").min(1,"Email is required"),phone:wt.preprocess((function(e){return d(String(e).trim())}),wt.string())});var Nt=e("verdocs_settings_profile",function(){function e(e){t(this,e);this.sdkError=r(this,"sdkError",7);this.profileUpdated=r(this,"profileUpdated",7);this.endpoint=c.getDefault();this.valid=false;this.dirty=false;this.submitting=false;this.first_name="";this.last_name="";this.email="";this.phone=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,o(this.endpoint)];case 1:e=t.sent();console.log("[SETTINGS] Loaded profile",e);this.resetForm(e);return[2]}}))}))};e.prototype.resetForm=function(e){this.first_name=e.first_name;this.last_name=e.last_name;this.email=e.email;this.phone=e.phone;this.dirty=false;this.valid=true};e.prototype.handleSubmit=function(e){var t=this;e.preventDefault();e.stopPropagation();u(c.getDefault(),this.endpoint.session.profile_id,{first_name:this.first_name,last_name:this.last_name,phone:this.phone}).then((function(e){var r;console.log("[SETTINGS] Update result",e);(r=t.profileUpdated)===null||r===void 0?void 0:r.emit({endpoint:t.endpoint,profile:e});t.resetForm(e)})).catch((function(e){return l("Error updating profile: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=At.safeParse({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone});console.log("[SETTINGS] Validation result",e);this.valid=e.success;this.dirty=true};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return n(a,{class:"authentication-required"},"Must be authenticated")}return n(a,null,n("h1",null,"My Profile"),n("form",{onSubmit:function(t){return e.handleSubmit(t)}},n("div",{class:"columns"},n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-profile-first-name",value:this.first_name,autocomplete:"off",label:"First Name",required:true,placeholder:"Enter your first name...",onInput:function(t){return e.first_name=t.target.value},onFocusout:function(t){e.first_name=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-profile-last-name",value:this.last_name,autocomplete:"off",label:"Last Name",required:true,placeholder:"Enter your last name...",onInput:function(t){return e.last_name=t.target.value},onFocusout:function(t){e.last_name=t.target.value.trim();e.processFields()}})),n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-profile-email",value:this.email,autocomplete:"off",label:"Email Address",required:true,disabled:true,placeholder:"Enter your email address...",onInput:function(t){return e.email=t.target.value},onFocusout:function(t){e.email=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-profile-phone",value:this.phone,clearable:true,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:function(t){return e.phone=t.target.value},onFocusout:function(t){e.phone=t.target.value.trim();e.processFields()}}))),n("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());Nt.style=Ct}}}));