@verdocs/web-sdk 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-button.cjs.entry.js +26 -0
- package/dist/cjs/verdocs-dialog.cjs.entry.js +27 -0
- package/dist/cjs/{verdocs-button_2.cjs.entry.js → verdocs-help-icon.cjs.entry.js} +0 -20
- package/dist/cjs/{verdocs-settings-organization_2.cjs.entry.js → verdocs-settings-api-keys_4.cjs.entry.js} +165 -2
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-table.cjs.entry.js +27 -0
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/controls/verdocs-table/verdocs-table.css +25 -0
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js +71 -0
- package/dist/collection/components/controls/verdocs-table/verdocs-table.stories.js +25 -0
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.css +35 -0
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +45 -0
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.stories.js +17 -0
- package/dist/collection/components/embeds/verdocs-settings/verdocs-settings.js +1 -1
- package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.css +38 -0
- package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.js +179 -0
- package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.stories.js +11 -0
- package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.css +38 -0
- package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.js +210 -0
- package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.stories.js +17 -0
- package/dist/components/Strings.js +6 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/verdocs-dialog.d.ts +11 -0
- package/dist/components/verdocs-dialog.js +41 -0
- package/dist/components/verdocs-settings-api-keys.d.ts +11 -0
- package/dist/components/verdocs-settings-api-keys.js +6 -0
- package/dist/components/verdocs-settings-api-keys2.js +108 -0
- package/dist/components/verdocs-settings-members.d.ts +11 -0
- package/dist/components/verdocs-settings-members.js +6 -0
- package/dist/components/verdocs-settings-members2.js +123 -0
- package/dist/components/verdocs-settings.js +31 -13
- package/dist/components/verdocs-table.d.ts +11 -0
- package/dist/components/verdocs-table.js +6 -0
- package/dist/components/verdocs-table2.js +41 -0
- package/dist/docs.json +282 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-button.entry.js +22 -0
- package/dist/esm/verdocs-dialog.entry.js +23 -0
- package/dist/esm/{verdocs-button_2.entry.js → verdocs-help-icon.entry.js} +1 -20
- package/dist/esm/{verdocs-settings-organization_2.entry.js → verdocs-settings-api-keys_4.entry.js} +164 -3
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-table.entry.js +23 -0
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-button.entry.js +1 -0
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -0
- package/dist/esm-es5/verdocs-help-icon.entry.js +1 -0
- package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -0
- package/dist/esm-es5/verdocs-settings.entry.js +1 -1
- package/dist/esm-es5/verdocs-table.entry.js +1 -0
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-table/verdocs-table.d.ts +21 -0
- package/dist/types/components/controls/verdocs-table/verdocs-table.stories.d.ts +7 -0
- package/dist/types/components/dialogs/verdocs-dialog/verdocs-dialog.d.ts +12 -0
- package/dist/types/components/dialogs/verdocs-dialog/verdocs-dialog.stories.d.ts +7 -0
- package/dist/types/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.d.ts +44 -0
- package/dist/types/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.stories.d.ts +4 -0
- package/dist/types/components/settings/verdocs-settings-members/verdocs-settings-members.d.ts +43 -0
- package/dist/types/components/settings/verdocs-settings-members/verdocs-settings-members.stories.d.ts +8 -0
- package/dist/types/components.d.ts +133 -0
- package/dist/verdocs-web-sdk/p-268a29a9.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-606e0405.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/p-7213a107.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-84f9fe5d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a69359d3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ab26744f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d309ef6f.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d734ced3.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-db4cfbfe.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-df90b36d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e248947e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-fbabbcea.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/custom-elements.json +0 -1975
- package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
- package/dist/esm-es5/verdocs-settings-organization_2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0fecb805.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-229a6849.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4821f318.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-888adbc2.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ce22913a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-de192808.system.entry.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-151c0874.js";import{c as createPopper}from"./popper-15e448b4.js";var verdocsButtonCss='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var VerdocsButton=function(){function t(t){registerInstance(this,t);this.label=undefined;this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return h("button",{disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?h("span",{class:"icon start",innerHTML:this.startIcon}):null,h("span",{class:"button-label"},this.label),this.endIcon?h("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}();VerdocsButton.style=verdocsButtonCss;var verdocsHelpIconCss='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var helpIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var VerdocsHelpIcon=function(){function t(t){registerInstance(this,t);this.text="";this.icon=helpIcon;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,o;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(o=this.popperInstance)===null||o===void 0?void 0:o.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return h(Host,{class:{}},h("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(o){return t.iconEl=o}}),h("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltipEl=o}},h("span",{innerHTML:this.text}),h("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}();VerdocsHelpIcon.style=verdocsHelpIconCss;export{VerdocsButton as verdocs_button,VerdocsHelpIcon as verdocs_help_icon};
|
@@ -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))};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-151c0874.js";import"./Types-5f31149e.js";import{g as getOrganization,u as updateOrganization,a as getCurrentProfile,b as updateProfile}from"./Profiles-7645e6f1.js";import{V as VerdocsEndpoint}from"./VerdocsEndpoint-d58d5544.js";import{d as convertToE164}from"./utils-51d998e2.js";import{V as VerdocsToast}from"./Toast-f3b8fd46.js";import"./_commonjsHelpers-5ec8f9b7.js";import"./Envelopes-5e32159f.js";import"./Files-70a192df.js";import"./Types-de18e225.js";import"./index-914ed6f7.js";var util;(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}})(util||(util={}));var objectUtil;(function(e){e.mergeShapes=function(e,t){return __assign(__assign({},e),t)}})(objectUtil||(objectUtil={}));var ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var getParsedType=function(e){var t=typeof e;switch(t){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return isNaN(e)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":if(Array.isArray(e)){return ZodParsedType.array}if(e===null){return ZodParsedType.null}if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function"){return ZodParsedType.promise}if(typeof Map!=="undefined"&&e instanceof Map){return ZodParsedType.map}if(typeof Set!=="undefined"&&e instanceof Set){return ZodParsedType.set}if(typeof Date!=="undefined"&&e instanceof Date){return ZodParsedType.date}return ZodParsedType.object;default:return ZodParsedType.unknown}};var ZodIssueCode=util.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 quotelessJson=function(e){var t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};var ZodError=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 d=s.path[u];var c=u===s.path.length-1;if(!c){o[d]=o[d]||{_errors:[]}}else{o[d]=o[d]||{_errors:[]};o[d]._errors.push(t(s))}o=o[d];u++}}}};n(this);return r};t.prototype.toString=function(){return this.message};Object.defineProperty(t.prototype,"message",{get:function(){return JSON.stringify(this.issues,util.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);ZodError.create=function(e){var t=new ZodError(e);return t};var errorMap=function(e,t){var r;switch(e.code){case ZodIssueCode.invalid_type:if(e.received===ZodParsedType.undefined){r="Required"}else{r="Expected ".concat(e.expected,", received ").concat(e.received)}break;case ZodIssueCode.invalid_literal:r="Invalid literal value, expected ".concat(JSON.stringify(e.expected,util.jsonStringifyReplacer));break;case ZodIssueCode.unrecognized_keys:r="Unrecognized key(s) in object: ".concat(util.joinValues(e.keys,", "));break;case ZodIssueCode.invalid_union:r="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:r="Invalid discriminator value. Expected ".concat(util.joinValues(e.options));break;case ZodIssueCode.invalid_enum_value:r="Invalid enum value. Expected ".concat(util.joinValues(e.options),", received '").concat(e.received,"'");break;case ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case ZodIssueCode.invalid_date:r="Invalid date";break;case ZodIssueCode.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{util.assertNever(e.validation)}}else if(e.validation!=="regex"){r="Invalid ".concat(e.validation)}else{r="Invalid"}break;case ZodIssueCode.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 ZodIssueCode.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 ZodIssueCode.custom:r="Invalid input";break;case ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:r="Number must be a multiple of ".concat(e.multipleOf);break;case ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError;util.assertNever(e)}return{message:r}};var overrideErrorMap=errorMap;function setErrorMap(e){overrideErrorMap=e}function getErrorMap(){return overrideErrorMap}var makeIssue=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 d=0,c=u;d<c.length;d++){var l=c[d];o=l(s,{data:t,defaultError:o}).message}return __assign(__assign({},a),{path:i,message:a.message||o})};var EMPTY_PATH=[];function addIssueToContext(e,t){var r=makeIssue({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,getErrorMap(),errorMap].filter((function(e){return!!e}))});e.common.issues.push(r)}var ParseStatus=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 INVALID;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 d;return __generator(this,(function(c){switch(c.label){case 0:n=[];a=0,i=r;c.label=1;case 1:if(!(a<i.length))return[3,5];s=i[a];u=(o=n).push;d={};return[4,s.key];case 2:d.key=c.sent();return[4,s.value];case 3:u.apply(o,[(d.value=c.sent(),d)]);c.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 INVALID;if(o.status==="aborted")return INVALID;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 INVALID=Object.freeze({status:"aborted"});var DIRTY=function(e){return{status:"dirty",value:e}};var OK=function(e){return{status:"valid",value:e}};var isAborted=function(e){return e.status==="aborted"};var isDirty=function(e){return e.status==="dirty"};var isValid=function(e){return e.status==="valid"};var isAsync=function(e){return typeof Promise!=="undefined"&&e instanceof Promise};var errorUtil;(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}})(errorUtil||(errorUtil={}));var ParseInputLazyPath=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 handleResult=function(e,t){if(isValid(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 ZodError(e.common.issues);this._error=t;return this._error}}}};function processCreateParams(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 ZodType=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 getParsedType(e.data)};e.prototype._getOrReturnCtx=function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}};e.prototype._processInputParams=function(e){return{status:new ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:getParsedType(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}};e.prototype._parseSync=function(e){var t=this._parse(e);if(isAsync(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:getParsedType(e)};var a=this._parseSync({data:e,path:n.path,parent:n});return handleResult(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:getParsedType(e)};n=this._parse({data:e,path:r.path,parent:r});return[4,isAsync(n)?n:Promise.resolve(n)];case 1:a=i.sent();return[2,handleResult(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:ZodIssueCode.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 ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:e}})};e.prototype.superRefine=function(e){return this._refinement(e)};e.prototype.optional=function(){return ZodOptional.create(this,this._def)};e.prototype.nullable=function(){return ZodNullable.create(this,this._def)};e.prototype.nullish=function(){return this.nullable().optional()};e.prototype.array=function(){return ZodArray.create(this,this._def)};e.prototype.promise=function(){return ZodPromise.create(this,this._def)};e.prototype.or=function(e){return ZodUnion.create([this,e],this._def)};e.prototype.and=function(e){return ZodIntersection.create(this,e,this._def)};e.prototype.transform=function(e){return new ZodEffects(__assign(__assign({},processCreateParams(this._def)),{schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:e}}))};e.prototype.default=function(e){var t=typeof e==="function"?e:function(){return e};return new ZodDefault(__assign(__assign({},processCreateParams(this._def)),{innerType:this,defaultValue:t,typeName:ZodFirstPartyTypeKind.ZodDefault}))};e.prototype.brand=function(){return new ZodBranded(__assign({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this},processCreateParams(this._def)))};e.prototype.catch=function(e){var t=typeof e==="function"?e:function(){return e};return new ZodCatch(__assign(__assign({},processCreateParams(this._def)),{innerType:this,catchValue:t,typeName:ZodFirstPartyTypeKind.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 ZodPipeline.create(this,e)};e.prototype.readonly=function(){return ZodReadonly.create(this)};e.prototype.isOptional=function(){return this.safeParse(undefined).success};e.prototype.isNullable=function(){return this.safeParse(null).success};return e}();var cuidRegex=/^c[^\s-]{8,}$/i;var cuid2Regex=/^[a-z][a-z0-9]*$/;var ulidRegex=/[0-9A-HJKMNP-TV-Z]{26}/;var uuidRegex=/^[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 emailRegex=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;var emojiRegex=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;var ipv4Regex=/^(((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 ipv6Regex=/^(([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 datetimeRegex=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 isValidIP(e,t){if((t==="v4"||!t)&&ipv4Regex.test(e)){return true}if((t==="v6"||!t)&&ipv6Regex.test(e)){return true}return false}var ZodString=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:ZodIssueCode.invalid_string},errorUtil.errToObj(n)))};r.nonempty=function(e){return r.min(1,errorUtil.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!==ZodParsedType.string){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:r.parsedType});return INVALID}var n=new ParseStatus;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);addIssueToContext(a,{code:ZodIssueCode.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);addIssueToContext(a,{code:ZodIssueCode.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 d=e.data.length<o.value;if(u||d){a=this._getOrReturnCtx(e,a);if(u){addIssueToContext(a,{code:ZodIssueCode.too_big,maximum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}else if(d){addIssueToContext(a,{code:ZodIssueCode.too_small,minimum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}n.dirty()}}else if(o.kind==="email"){if(!emailRegex.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"email",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="emoji"){if(!emojiRegex.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"emoji",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="uuid"){if(!uuidRegex.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"uuid",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="cuid"){if(!cuidRegex.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"cuid",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="cuid2"){if(!cuid2Regex.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="ulid"){if(!ulidRegex.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"ulid",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="url"){try{new URL(e.data)}catch(t){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"url",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="regex"){o.regex.lastIndex=0;var c=o.regex.test(e.data);if(!c){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"regex",code:ZodIssueCode.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);addIssueToContext(a,{code:ZodIssueCode.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);addIssueToContext(a,{code:ZodIssueCode.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);addIssueToContext(a,{code:ZodIssueCode.invalid_string,validation:{endsWith:o.value},message:o.message});n.dirty()}}else if(o.kind==="datetime"){var l=datetimeRegex(o);if(!l.test(e.data)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{code:ZodIssueCode.invalid_string,validation:"datetime",message:o.message});n.dirty()}}else if(o.kind==="ip"){if(!isValidIP(e.data,o.version)){a=this._getOrReturnCtx(e,a);addIssueToContext(a,{validation:"ip",code:ZodIssueCode.invalid_string,message:o.message});n.dirty()}}else{util.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"},errorUtil.errToObj(e)))};t.prototype.url=function(e){return this._addCheck(__assign({kind:"url"},errorUtil.errToObj(e)))};t.prototype.emoji=function(e){return this._addCheck(__assign({kind:"emoji"},errorUtil.errToObj(e)))};t.prototype.uuid=function(e){return this._addCheck(__assign({kind:"uuid"},errorUtil.errToObj(e)))};t.prototype.cuid=function(e){return this._addCheck(__assign({kind:"cuid"},errorUtil.errToObj(e)))};t.prototype.cuid2=function(e){return this._addCheck(__assign({kind:"cuid2"},errorUtil.errToObj(e)))};t.prototype.ulid=function(e){return this._addCheck(__assign({kind:"ulid"},errorUtil.errToObj(e)))};t.prototype.ip=function(e){return this._addCheck(__assign({kind:"ip"},errorUtil.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},errorUtil.errToObj(e===null||e===void 0?void 0:e.message)))};t.prototype.regex=function(e,t){return this._addCheck(__assign({kind:"regex",regex:e},errorUtil.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},errorUtil.errToObj(t===null||t===void 0?void 0:t.message)))};t.prototype.startsWith=function(e,t){return this._addCheck(__assign({kind:"startsWith",value:e},errorUtil.errToObj(t)))};t.prototype.endsWith=function(e,t){return this._addCheck(__assign({kind:"endsWith",value:e},errorUtil.errToObj(t)))};t.prototype.min=function(e,t){return this._addCheck(__assign({kind:"min",value:e},errorUtil.errToObj(t)))};t.prototype.max=function(e,t){return this._addCheck(__assign({kind:"max",value:e},errorUtil.errToObj(t)))};t.prototype.length=function(e,t){return this._addCheck(__assign({kind:"length",value:e},errorUtil.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}(ZodType);ZodString.create=function(e){var t;return new ZodString(__assign({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},processCreateParams(e)))};function floatSafeRemainder(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 ZodNumber=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!==ZodParsedType.number){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:r.parsedType});return INVALID}var n=undefined;var a=new ParseStatus;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="int"){if(!util.isInteger(e.data)){n=this._getOrReturnCtx(e,n);addIssueToContext(n,{code:ZodIssueCode.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);addIssueToContext(n,{code:ZodIssueCode.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="max"){var d=o.inclusive?e.data>o.value:e.data>=o.value;if(d){n=this._getOrReturnCtx(e,n);addIssueToContext(n,{code:ZodIssueCode.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="multipleOf"){if(floatSafeRemainder(e.data,o.value)!==0){n=this._getOrReturnCtx(e,n);addIssueToContext(n,{code:ZodIssueCode.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);addIssueToContext(n,{code:ZodIssueCode.not_finite,message:o.message});a.dirty()}}else{util.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,errorUtil.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,errorUtil.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,errorUtil.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,errorUtil.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:errorUtil.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:errorUtil.toString(e)})};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:errorUtil.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:errorUtil.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:errorUtil.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:errorUtil.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.toString(t)})};t.prototype.finite=function(e){return this._addCheck({kind:"finite",message:errorUtil.toString(e)})};t.prototype.safe=function(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:errorUtil.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"&&util.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}(ZodType);ZodNumber.create=function(e){return new ZodNumber(__assign({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(e===null||e===void 0?void 0:e.coerce)||false},processCreateParams(e)))};var ZodBigInt=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!==ZodParsedType.bigint){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:r.parsedType});return INVALID}var n=undefined;var a=new ParseStatus;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);addIssueToContext(n,{code:ZodIssueCode.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message});a.dirty()}}else if(o.kind==="max"){var d=o.inclusive?e.data>o.value:e.data>=o.value;if(d){n=this._getOrReturnCtx(e,n);addIssueToContext(n,{code:ZodIssueCode.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);addIssueToContext(n,{code:ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else{util.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,errorUtil.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,errorUtil.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,errorUtil.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,errorUtil.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:errorUtil.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:errorUtil.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:errorUtil.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:errorUtil.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:errorUtil.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.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}(ZodType);ZodBigInt.create=function(e){var t;return new ZodBigInt(__assign({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},processCreateParams(e)))};var ZodBoolean=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!==ZodParsedType.boolean){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:r.parsedType});return INVALID}return OK(e.data)};return t}(ZodType);ZodBoolean.create=function(e){return new ZodBoolean(__assign({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(e===null||e===void 0?void 0:e.coerce)||false},processCreateParams(e)))};var ZodDate=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!==ZodParsedType.date){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:r.parsedType});return INVALID}if(isNaN(e.data.getTime())){var n=this._getOrReturnCtx(e);addIssueToContext(n,{code:ZodIssueCode.invalid_date});return INVALID}var a=new ParseStatus;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);addIssueToContext(i,{code:ZodIssueCode.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);addIssueToContext(i,{code:ZodIssueCode.too_big,message:u.message,inclusive:true,exact:false,maximum:u.value,type:"date"});a.dirty()}}else{util.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:errorUtil.toString(t)})};t.prototype.max=function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:errorUtil.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}(ZodType);ZodDate.create=function(e){return new ZodDate(__assign({checks:[],coerce:(e===null||e===void 0?void 0:e.coerce)||false,typeName:ZodFirstPartyTypeKind.ZodDate},processCreateParams(e)))};var ZodSymbol=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!==ZodParsedType.symbol){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:r.parsedType});return INVALID}return OK(e.data)};return t}(ZodType);ZodSymbol.create=function(e){return new ZodSymbol(__assign({typeName:ZodFirstPartyTypeKind.ZodSymbol},processCreateParams(e)))};var ZodUndefined=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!==ZodParsedType.undefined){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:r.parsedType});return INVALID}return OK(e.data)};return t}(ZodType);ZodUndefined.create=function(e){return new ZodUndefined(__assign({typeName:ZodFirstPartyTypeKind.ZodUndefined},processCreateParams(e)))};var ZodNull=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!==ZodParsedType.null){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:r.parsedType});return INVALID}return OK(e.data)};return t}(ZodType);ZodNull.create=function(e){return new ZodNull(__assign({typeName:ZodFirstPartyTypeKind.ZodNull},processCreateParams(e)))};var ZodAny=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 OK(e.data)};return t}(ZodType);ZodAny.create=function(e){return new ZodAny(__assign({typeName:ZodFirstPartyTypeKind.ZodAny},processCreateParams(e)))};var ZodUnknown=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 OK(e.data)};return t}(ZodType);ZodUnknown.create=function(e){return new ZodUnknown(__assign({typeName:ZodFirstPartyTypeKind.ZodUnknown},processCreateParams(e)))};var ZodNever=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);addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:t.parsedType});return INVALID};return t}(ZodType);ZodNever.create=function(e){return new ZodNever(__assign({typeName:ZodFirstPartyTypeKind.ZodNever},processCreateParams(e)))};var ZodVoid=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!==ZodParsedType.undefined){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:r.parsedType});return INVALID}return OK(e.data)};return t}(ZodType);ZodVoid.create=function(e){return new ZodVoid(__assign({typeName:ZodFirstPartyTypeKind.ZodVoid},processCreateParams(e)))};var ZodArray=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!==ZodParsedType.array){addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:r.parsedType});return INVALID}if(a.exactLength!==null){var i=r.data.length>a.exactLength.value;var s=r.data.length<a.exactLength.value;if(i||s){addIssueToContext(r,{code:i?ZodIssueCode.too_big:ZodIssueCode.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){addIssueToContext(r,{code:ZodIssueCode.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){addIssueToContext(r,{code:ZodIssueCode.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 ParseInputLazyPath(r,e,r.path,t))}))).then((function(e){return ParseStatus.mergeArray(n,e)}))}var o=__spreadArray([],r.data,true).map((function(e,t){return a.type._parseSync(new ParseInputLazyPath(r,e,r.path,t))}));return ParseStatus.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:errorUtil.toString(r)}}))};t.prototype.max=function(e,r){return new t(__assign(__assign({},this._def),{maxLength:{value:e,message:errorUtil.toString(r)}}))};t.prototype.length=function(e,r){return new t(__assign(__assign({},this._def),{exactLength:{value:e,message:errorUtil.toString(r)}}))};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(ZodType);ZodArray.create=function(e,t){return new ZodArray(__assign({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray},processCreateParams(t)))};function deepPartialify(e){if(e instanceof ZodObject){var t={};for(var r in e.shape){var n=e.shape[r];t[r]=ZodOptional.create(deepPartialify(n))}return new ZodObject(__assign(__assign({},e._def),{shape:function(){return t}}))}else if(e instanceof ZodArray){return new ZodArray(__assign(__assign({},e._def),{type:deepPartialify(e.element)}))}else if(e instanceof ZodOptional){return ZodOptional.create(deepPartialify(e.unwrap()))}else if(e instanceof ZodNullable){return ZodNullable.create(deepPartialify(e.unwrap()))}else if(e instanceof ZodTuple){return ZodTuple.create(e.items.map((function(e){return deepPartialify(e)})))}else{return e}}var ZodObject=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=util.objectKeys(e);return this._cached={shape:e,keys:t}};t.prototype._parse=function(e){var t=this;var r=this._getType(e);if(r!==ZodParsedType.object){var n=this._getOrReturnCtx(e);addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:n.parsedType});return INVALID}var a=this._processInputParams(e),i=a.status,s=a.ctx;var o=this._getCached(),u=o.shape,d=o.keys;var c=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip")){for(var l in s.data){if(!d.includes(l)){c.push(l)}}}var p=[];for(var f=0,y=d;f<y.length;f++){var l=y[f];var h=u[l];var m=s.data[l];p.push({key:{status:"valid",value:l},value:h._parse(new ParseInputLazyPath(s,m,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof ZodNever){var v=this._def.unknownKeys;if(v==="passthrough"){for(var _=0,g=c;_<g.length;_++){var l=g[_];p.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}})}}else if(v==="strict"){if(c.length>0){addIssueToContext(s,{code:ZodIssueCode.unrecognized_keys,keys:c});i.dirty()}}else if(v==="strip");else{throw new Error("Internal ZodObject error: invalid unknownKeys value.")}}else{var T=this._def.catchall;for(var Z=0,b=c;Z<b.length;Z++){var l=b[Z];var m=s.data[l];p.push({key:{status:"valid",value:l},value:T._parse(new ParseInputLazyPath(s,m,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 ParseStatus.mergeObjectSync(i,e)}))}else{return ParseStatus.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=errorUtil.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:ZodFirstPartyTypeKind.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={};util.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={};util.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 deepPartialify(this)};t.prototype.partial=function(e){var r=this;var n={};util.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={};util.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 ZodOptional){i=i._def.innerType}n[t]=i}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.keyof=function(){return createZodEnum(util.objectKeys(this.shape))};return t}(ZodType);ZodObject.create=function(e,t){return new ZodObject(__assign({shape:function(){return e},unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject},processCreateParams(t)))};ZodObject.strictCreate=function(e,t){return new ZodObject(__assign({shape:function(){return e},unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject},processCreateParams(t)))};ZodObject.lazycreate=function(e,t){return new ZodObject(__assign({shape:e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject},processCreateParams(t)))};var ZodUnion=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 ZodError(e.ctx.common.issues)}));addIssueToContext(n,{code:ZodIssueCode.invalid_union,unionErrors:u});return INVALID}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,d=a;u<d.length;u++){var c=d[u];var l=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]}),parent:null});var p=c._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 ZodError(e)}));addIssueToContext(n,{code:ZodIssueCode.invalid_union,unionErrors:f});return INVALID}};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});return t}(ZodType);ZodUnion.create=function(e,t){return new ZodUnion(__assign({options:e,typeName:ZodFirstPartyTypeKind.ZodUnion},processCreateParams(t)))};var getDiscriminator=function(e){if(e instanceof ZodLazy){return getDiscriminator(e.schema)}else if(e instanceof ZodEffects){return getDiscriminator(e.innerType())}else if(e instanceof ZodLiteral){return[e.value]}else if(e instanceof ZodEnum){return e.options}else if(e instanceof ZodNativeEnum){return Object.keys(e.enum)}else if(e instanceof ZodDefault){return getDiscriminator(e._def.innerType)}else if(e instanceof ZodUndefined){return[undefined]}else if(e instanceof ZodNull){return[null]}else{return null}};var ZodDiscriminatedUnion=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!==ZodParsedType.object){addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType});return INVALID}var r=this.discriminator;var n=t.data[r];var a=this.optionsMap.get(n);if(!a){addIssueToContext(t,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]});return INVALID}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=getDiscriminator(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 d=0,c=u;d<c.length;d++){var l=c[d];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:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a},processCreateParams(n)))};return t}(ZodType);function mergeValues(e,t){var r=getParsedType(e);var n=getParsedType(t);if(e===t){return{valid:true,data:e}}else if(r===ZodParsedType.object&&n===ZodParsedType.object){var a=util.objectKeys(t);var i=util.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 d=u[o];var c=mergeValues(e[d],t[d]);if(!c.valid){return{valid:false}}s[d]=c.data}return{valid:true,data:s}}else if(r===ZodParsedType.array&&n===ZodParsedType.array){if(e.length!==t.length){return{valid:false}}var l=[];for(var p=0;p<e.length;p++){var f=e[p];var y=t[p];var c=mergeValues(f,y);if(!c.valid){return{valid:false}}l.push(c.data)}return{valid:true,data:l}}else if(r===ZodParsedType.date&&n===ZodParsedType.date&&+e===+t){return{valid:true,data:e}}else{return{valid:false}}}var ZodIntersection=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(isAborted(e)||isAborted(t)){return INVALID}var a=mergeValues(e.value,t.value);if(!a.valid){addIssueToContext(n,{code:ZodIssueCode.invalid_intersection_types});return INVALID}if(isDirty(e)||isDirty(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}(ZodType);ZodIntersection.create=function(e,t,r){return new ZodIntersection(__assign({left:e,right:t,typeName:ZodFirstPartyTypeKind.ZodIntersection},processCreateParams(r)))};var ZodTuple=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!==ZodParsedType.array){addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:a.parsedType});return INVALID}if(a.data.length<this._def.items.length){addIssueToContext(a,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return INVALID}var i=this._def.rest;if(!i&&a.data.length>this._def.items.length){addIssueToContext(a,{code:ZodIssueCode.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 ParseInputLazyPath(a,e,a.path,r))})).filter((function(e){return!!e}));if(a.common.async){return Promise.all(s).then((function(e){return ParseStatus.mergeArray(n,e)}))}else{return ParseStatus.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}(ZodType);ZodTuple.create=function(e,t){if(!Array.isArray(e)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new ZodTuple(__assign({items:e,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null},processCreateParams(t)))};var ZodRecord=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!==ZodParsedType.object){addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:n.parsedType});return INVALID}var a=[];var i=this._def.keyType;var s=this._def.valueType;for(var o in n.data){a.push({key:i._parse(new ParseInputLazyPath(n,o,n.path,o)),value:s._parse(new ParseInputLazyPath(n,n.data[o],n.path,o))})}if(n.common.async){return ParseStatus.mergeObjectAsync(r,a)}else{return ParseStatus.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 ZodType){return new t(__assign({keyType:e,valueType:r,typeName:ZodFirstPartyTypeKind.ZodRecord},processCreateParams(n)))}return new t(__assign({keyType:ZodString.create(),valueType:e,typeName:ZodFirstPartyTypeKind.ZodRecord},processCreateParams(r)))};return t}(ZodType);var ZodMap=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!==ZodParsedType.map){addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:a.parsedType});return INVALID}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 ParseInputLazyPath(a,r,a.path,[t,"key"])),value:s._parse(new ParseInputLazyPath(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,INVALID]}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 d=new Map;for(var c=0,l=o;c<l.length;c++){var p=l[c];var f=p.key;var y=p.value;if(f.status==="aborted"||y.status==="aborted"){return INVALID}if(f.status==="dirty"||y.status==="dirty"){n.dirty()}d.set(f.value,y.value)}return{status:n.value,value:d}}};return t}(ZodType);ZodMap.create=function(e,t,r){return new ZodMap(__assign({valueType:t,keyType:e,typeName:ZodFirstPartyTypeKind.ZodMap},processCreateParams(r)))};var ZodSet=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!==ZodParsedType.set){addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:n.parsedType});return INVALID}var a=this._def;if(a.minSize!==null){if(n.data.size<a.minSize.value){addIssueToContext(n,{code:ZodIssueCode.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){addIssueToContext(n,{code:ZodIssueCode.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 INVALID;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 ParseInputLazyPath(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:errorUtil.toString(r)}}))};t.prototype.max=function(e,r){return new t(__assign(__assign({},this._def),{maxSize:{value:e,message:errorUtil.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}(ZodType);ZodSet.create=function(e,t){return new ZodSet(__assign({valueType:e,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet},processCreateParams(t)))};var ZodFunction=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!==ZodParsedType.function){addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:t.parsedType});return INVALID}function r(e,r){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((function(e){return!!e})),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:r}})}function n(e,r){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((function(e){return!!e})),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:r}})}var a={errorMap:t.common.contextualErrorMap};var i=t.data;if(this._def.returns instanceof ZodPromise){var s=this;return OK((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,d;return __generator(this,(function(c){switch(c.label){case 0:t=new ZodError([]);return[4,s._def.args.parseAsync(e,a).catch((function(n){t.addIssue(r(e,n));throw t}))];case 1:o=c.sent();return[4,Reflect.apply(i,this,o)];case 2:u=c.sent();return[4,s._def.returns._def.type.parseAsync(u,a).catch((function(e){t.addIssue(n(u,e));throw t}))];case 3:d=c.sent();return[2,d]}}))}))}))}else{var o=this;return OK((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 ZodError([r(e,s.error)])}var u=Reflect.apply(i,this,s.data);var d=o._def.returns.safeParse(u,a);if(!d.success){throw new ZodError([n(u,d.error)])}return d.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:ZodTuple.create(e).rest(ZodUnknown.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:ZodTuple.create([]).rest(ZodUnknown.create()),returns:r||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction},processCreateParams(n)))};return t}(ZodType);var ZodLazy=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}(ZodType);ZodLazy.create=function(e,t){return new ZodLazy(__assign({getter:e,typeName:ZodFirstPartyTypeKind.ZodLazy},processCreateParams(t)))};var ZodLiteral=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);addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_literal,expected:this._def.value});return INVALID}return{status:"valid",value:e.data}};Object.defineProperty(t.prototype,"value",{get:function(){return this._def.value},enumerable:false,configurable:true});return t}(ZodType);ZodLiteral.create=function(e,t){return new ZodLiteral(__assign({value:e,typeName:ZodFirstPartyTypeKind.ZodLiteral},processCreateParams(t)))};function createZodEnum(e,t){return new ZodEnum(__assign({values:e,typeName:ZodFirstPartyTypeKind.ZodEnum},processCreateParams(t)))}var ZodEnum=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;addIssueToContext(t,{expected:util.joinValues(r),received:t.parsedType,code:ZodIssueCode.invalid_type});return INVALID}if(this._def.values.indexOf(e.data)===-1){var t=this._getOrReturnCtx(e);var r=this._def.values;addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_enum_value,options:r});return INVALID}return OK(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}(ZodType);ZodEnum.create=createZodEnum;var ZodNativeEnum=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=util.getValidEnumValues(this._def.values);var r=this._getOrReturnCtx(e);if(r.parsedType!==ZodParsedType.string&&r.parsedType!==ZodParsedType.number){var n=util.objectValues(t);addIssueToContext(r,{expected:util.joinValues(n),received:r.parsedType,code:ZodIssueCode.invalid_type});return INVALID}if(t.indexOf(e.data)===-1){var n=util.objectValues(t);addIssueToContext(r,{received:r.data,code:ZodIssueCode.invalid_enum_value,options:n});return INVALID}return OK(e.data)};Object.defineProperty(t.prototype,"enum",{get:function(){return this._def.values},enumerable:false,configurable:true});return t}(ZodType);ZodNativeEnum.create=function(e,t){return new ZodNativeEnum(__assign({values:e,typeName:ZodFirstPartyTypeKind.ZodNativeEnum},processCreateParams(t)))};var ZodPromise=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!==ZodParsedType.promise&&r.common.async===false){addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:r.parsedType});return INVALID}var n=r.parsedType===ZodParsedType.promise?r.data:Promise.resolve(r.data);return OK(n.then((function(e){return t._def.type.parseAsync(e,{path:r.path,errorMap:r.common.contextualErrorMap})})))};return t}(ZodType);ZodPromise.create=function(e,t){return new ZodPromise(__assign({type:e,typeName:ZodFirstPartyTypeKind.ZodPromise},processCreateParams(t)))};var ZodEffects=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===ZodFirstPartyTypeKind.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){addIssueToContext(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 d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(d.status==="aborted")return INVALID;if(d.status==="dirty")n.dirty();u(d.value);return{status:n.value,value:d.value}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(e.status==="aborted")return INVALID;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 c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!isValid(c))return c;var l=i.transform(c.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(!isValid(e))return e;return Promise.resolve(i.transform(e.value,s)).then((function(e){return{status:n.value,value:e}}))}))}}util.assertNever(i)};return t}(ZodType);ZodEffects.create=function(e,t,r){return new ZodEffects(__assign({schema:e,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:t},processCreateParams(r)))};ZodEffects.createWithPreprocess=function(e,t,r){return new ZodEffects(__assign({schema:t,effect:{type:"preprocess",transform:e},typeName:ZodFirstPartyTypeKind.ZodEffects},processCreateParams(r)))};var ZodOptional=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===ZodParsedType.undefined){return OK(undefined)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(ZodType);ZodOptional.create=function(e,t){return new ZodOptional(__assign({innerType:e,typeName:ZodFirstPartyTypeKind.ZodOptional},processCreateParams(t)))};var ZodNullable=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===ZodParsedType.null){return OK(null)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(ZodType);ZodNullable.create=function(e,t){return new ZodNullable(__assign({innerType:e,typeName:ZodFirstPartyTypeKind.ZodNullable},processCreateParams(t)))};var ZodDefault=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===ZodParsedType.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}(ZodType);ZodDefault.create=function(e,t){return new ZodDefault(__assign({innerType:e,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof t.default==="function"?t.default:function(){return t.default}},processCreateParams(t)))};var ZodCatch=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(isAsync(a)){return a.then((function(e){return{status:"valid",value:e.status==="valid"?e.value:t._def.catchValue({get error(){return new ZodError(n.common.issues)},input:n.data})}}))}else{return{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ZodError(n.common.issues)},input:n.data})}}};t.prototype.removeCatch=function(){return this._def.innerType};return t}(ZodType);ZodCatch.create=function(e,t){return new ZodCatch(__assign({innerType:e,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:function(){return t.catch}},processCreateParams(t)))};var ZodNaN=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!==ZodParsedType.nan){var r=this._getOrReturnCtx(e);addIssueToContext(r,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:r.parsedType});return INVALID}return{status:"valid",value:e.data}};return t}(ZodType);ZodNaN.create=function(e){return new ZodNaN(__assign({typeName:ZodFirstPartyTypeKind.ZodNaN},processCreateParams(e)))};var BRAND=Symbol("zod_brand");var ZodBranded=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}(ZodType);var ZodPipeline=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,INVALID];if(e.status==="dirty"){n.dirty();return[2,DIRTY(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 INVALID;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:ZodFirstPartyTypeKind.ZodPipeline})};return t}(ZodType);var ZodReadonly=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(isValid(t)){t.value=Object.freeze(t.value)}return t};return t}(ZodType);ZodReadonly.create=function(e,t){return new ZodReadonly(__assign({innerType:e,typeName:ZodFirstPartyTypeKind.ZodReadonly},processCreateParams(t)))};var custom=function(e,t,r){if(t===void 0){t={}}if(e)return ZodAny.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 d=typeof o==="string"?{message:o}:o;a.addIssue(__assign(__assign({code:"custom"},d),{fatal:u}))}}));return ZodAny.create()};var late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind;(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"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));var instanceOfType=function(e,t){if(t===void 0){t={message:"Input not instance of ".concat(e.name)}}return custom((function(t){return t instanceof e}),t)};var stringType=ZodString.create;var numberType=ZodNumber.create;var nanType=ZodNaN.create;var bigIntType=ZodBigInt.create;var booleanType=ZodBoolean.create;var dateType=ZodDate.create;var symbolType=ZodSymbol.create;var undefinedType=ZodUndefined.create;var nullType=ZodNull.create;var anyType=ZodAny.create;var unknownType=ZodUnknown.create;var neverType=ZodNever.create;var voidType=ZodVoid.create;var arrayType=ZodArray.create;var objectType=ZodObject.create;var strictObjectType=ZodObject.strictCreate;var unionType=ZodUnion.create;var discriminatedUnionType=ZodDiscriminatedUnion.create;var intersectionType=ZodIntersection.create;var tupleType=ZodTuple.create;var recordType=ZodRecord.create;var mapType=ZodMap.create;var setType=ZodSet.create;var functionType=ZodFunction.create;var lazyType=ZodLazy.create;var literalType=ZodLiteral.create;var enumType=ZodEnum.create;var nativeEnumType=ZodNativeEnum.create;var promiseType=ZodPromise.create;var effectsType=ZodEffects.create;var optionalType=ZodOptional.create;var nullableType=ZodNullable.create;var preprocessType=ZodEffects.createWithPreprocess;var pipelineType=ZodPipeline.create;var ostring=function(){return stringType().optional()};var onumber=function(){return numberType().optional()};var oboolean=function(){return booleanType().optional()};var coerce={string:function(e){return ZodString.create(__assign(__assign({},e),{coerce:true}))},number:function(e){return ZodNumber.create(__assign(__assign({},e),{coerce:true}))},boolean:function(e){return ZodBoolean.create(__assign(__assign({},e),{coerce:true}))},bigint:function(e){return ZodBigInt.create(__assign(__assign({},e),{coerce:true}))},date:function(e){return ZodDate.create(__assign(__assign({},e),{coerce:true}))}};var NEVER=INVALID;var z=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:EMPTY_PATH,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:INVALID,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return util},get objectUtil(){return objectUtil},ZodParsedType:ZodParsedType,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:BRAND,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:late,get ZodFirstPartyTypeKind(){return ZodFirstPartyTypeKind},coerce:coerce,any:anyType,array:arrayType,bigint:bigIntType,boolean:booleanType,date:dateType,discriminatedUnion:discriminatedUnionType,effect:effectsType,enum:enumType,function:functionType,instanceof:instanceOfType,intersection:intersectionType,lazy:lazyType,literal:literalType,map:mapType,nan:nanType,nativeEnum:nativeEnumType,never:neverType,null:nullType,nullable:nullableType,number:numberType,object:objectType,oboolean:oboolean,onumber:onumber,optional:optionalType,ostring:ostring,pipeline:pipelineType,preprocess:preprocessType,promise:promiseType,record:recordType,set:setType,strictObject:strictObjectType,string:stringType,symbol:symbolType,transformer:effectsType,tuple:tupleType,undefined:undefinedType,union:unionType,unknown:unknownType,void:voidType,NEVER:NEVER,ZodIssueCode:ZodIssueCode,quotelessJson:quotelessJson,ZodError:ZodError});var TimeZones=[["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 verdocsSettingsOrganizationCss='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 timeZoneOptions=TimeZones.map((function(e){return{value:e[2],label:e[2]}}));var schema$1=z.object({name:z.string().trim().min(1,"Name is required").max(30),business_name:z.string().trim().max(30).optional(),contact_email:z.string().trim().email("Invalid email").optional().or(z.literal("")),phone:z.preprocess((function(e){return convertToE164(String(e).trim())}),z.string().optional()),address:z.string().trim().max(30).optional(),address2:z.string().trim().max(30).optional(),timezone:z.string().trim().optional(),url:z.string().trim().optional()});var VerdocsSettingsOrganization=function(){function e(e){registerInstance(this,e);this.sdkError=createEvent(this,"sdkError",7);this.organizationUpdated=createEvent(this,"organizationUpdated",7);this.endpoint=VerdocsEndpoint.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,getOrganization(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();updateOrganization(VerdocsEndpoint.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 VerdocsToast("Error updating organization: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=schema$1.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 h(Host,{class:"authentication-required"},"Must be authenticated")}return h(Host,null,h("h1",null,"Organization Profile"),h("form",{onSubmit:function(t){return e.handleSubmit(t)}},h("div",{class:"columns"},h("div",{class:"column"},h("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()}}),h("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()}}),h("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()}}),h("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()}})),h("div",{class:"column"},h("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()}}),h("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()}}),h("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()}}),h("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()}}),h("verdocs-select-input",{options:timeZoneOptions,value:this.timezone,label:"Time Zone"}))),h("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}();VerdocsSettingsOrganization.style=verdocsSettingsOrganizationCss;var verdocsSettingsProfileCss='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 schema=z.object({first_name:z.string().trim().min(1,"First name is required").max(30),last_name:z.string().trim().min(1,"Last name is required").max(30),email:z.string().trim().email("Invalid email").min(1,"Email is required"),phone:z.preprocess((function(e){return convertToE164(String(e).trim())}),z.string())});var VerdocsSettingsProfile=function(){function e(e){registerInstance(this,e);this.sdkError=createEvent(this,"sdkError",7);this.profileUpdated=createEvent(this,"profileUpdated",7);this.endpoint=VerdocsEndpoint.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,getCurrentProfile(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();updateProfile(VerdocsEndpoint.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 VerdocsToast("Error updating profile: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=schema.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 h(Host,{class:"authentication-required"},"Must be authenticated")}return h(Host,null,h("h1",null,"My Profile"),h("form",{onSubmit:function(t){return e.handleSubmit(t)}},h("div",{class:"columns"},h("div",{class:"column"},h("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()}}),h("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()}})),h("div",{class:"column"},h("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()}}),h("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()}}))),h("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}();VerdocsSettingsProfile.style=verdocsSettingsProfileCss;export{VerdocsSettingsOrganization as verdocs_settings_organization,VerdocsSettingsProfile as verdocs_settings_profile};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as o,H as n}from"./p-6d3e0994.js";import{c as e}from"./p-7c0dcd00.js";const i=class{constructor(o){t(this,o),this.label=void 0,this.startIcon=null,this.endIcon=null,this.size="normal",this.type="button",this.variant="standard",this.disabled=!1}render(){return o("button",{disabled:this.disabled,type:this.type,class:`${this.variant} ${this.size} ${this.type}`},this.startIcon?o("span",{class:"icon start",innerHTML:this.startIcon}):null,o("span",{class:"button-label"},this.label),this.endIcon?o("span",{class:"icon end",innerHTML:this.endIcon}):null)}};i.style='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';const s=class{constructor(o){t(this,o),this.text="",this.icon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>',this.containerId=`verdocs-help-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=e(this.iconEl,this.tooltipEl,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var t,o;null===(t=this.tooltipEl)||void 0===t||t.setAttribute("data-show",""),null===(o=this.popperInstance)||void 0===o||o.update().catch((()=>{}))}hide(){var t;null===(t=this.tooltipEl)||void 0===t||t.removeAttribute("data-show")}render(){return o(n,{class:{}},o("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:t=>this.iconEl=t}),o("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:t=>this.tooltipEl=t},o("span",{innerHTML:this.text}),o("div",{"data-popper-arrow":"true",class:"arrow"})))}};s.style='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';export{i as verdocs_button,s as verdocs_help_icon}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as t,h as s,H as i}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{g as n,u as r,a,b as o}from"./p-075dc36d.js";import{V as u}from"./p-af048fad.js";import{d as c}from"./p-449f38bb.js";import{V as l}from"./p-ed416acf.js";import"./p-eab67c09.js";import"./p-38d827d3.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";var d,h;!function(e){e.assertEqual=e=>e,e.assertIs=function(){},e.assertNever=function(){throw new Error},e.arrayToEnum=e=>{const t={};for(const s of e)t[s]=s;return t},e.getValidEnumValues=t=>{const s=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of s)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.push(s);return t},e.find=(e,t)=>{for(const s of e)if(t(s))return s},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(d||(d={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(h||(h={}));const p=d.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),m=e=>{switch(typeof e){case"undefined":return p.undefined;case"string":return p.string;case"number":return isNaN(e)?p.nan:p.number;case"boolean":return p.boolean;case"function":return p.function;case"bigint":return p.bigint;case"symbol":return p.symbol;case"object":return Array.isArray(e)?p.array:null===e?p.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?p.promise:"undefined"!=typeof Map&&e instanceof Map?p.map:"undefined"!=typeof Set&&e instanceof Set?p.set:"undefined"!=typeof Date&&e instanceof Date?p.date:p.object;default:return p.unknown}},f=d.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class T extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},s={_errors:[]},i=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(i);else if("invalid_return_type"===n.code)i(n.returnTypeError);else if("invalid_arguments"===n.code)i(n.argumentsError);else if(0===n.path.length)s._errors.push(t(n));else{let e=s,i=0;for(;i<n.path.length;){const s=n.path[i];i===n.path.length-1?(e[s]=e[s]||{_errors:[]},e[s]._errors.push(t(n))):e[s]=e[s]||{_errors:[]},e=e[s],i++}}};return i(this),s}toString(){return this.message}get message(){return JSON.stringify(this.issues,d.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},s=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):s.push(e(i));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}T.create=e=>new T(e);const v=(e,t)=>{let s;switch(e.code){case f.invalid_type:s=e.received===p.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case f.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(e.expected,d.jsonStringifyReplacer)}`;break;case f.unrecognized_keys:s=`Unrecognized key(s) in object: ${d.joinValues(e.keys,", ")}`;break;case f.invalid_union:s="Invalid input";break;case f.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${d.joinValues(e.options)}`;break;case f.invalid_enum_value:s=`Invalid enum value. Expected ${d.joinValues(e.options)}, received '${e.received}'`;break;case f.invalid_arguments:s="Invalid function arguments";break;case f.invalid_return_type:s="Invalid function return type";break;case f.invalid_date:s="Invalid date";break;case f.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(s=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(s=`${s} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?s=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?s=`Invalid input: must end with "${e.validation.endsWith}"`:d.assertNever(e.validation):s="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case f.too_small:s="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case f.too_big:s="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case f.custom:s="Invalid input";break;case f.invalid_intersection_types:s="Intersection results could not be merged";break;case f.not_multiple_of:s=`Number must be a multiple of ${e.multipleOf}`;break;case f.not_finite:s="Number must be finite";break;default:s=t.defaultError,d.assertNever(e)}return{message:s}};let M=v;function g(){return M}const y=e=>{const{data:t,path:s,errorMaps:i,issueData:n}=e,r=[...s,...n.path||[]],a={...n,path:r};let o="";const u=i.filter((e=>!!e)).slice().reverse();for(const e of u)o=e(a,{data:t,defaultError:o}).message;return{...n,path:r,message:n.message||o}};function G(e,t){const s=y({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,g(),v].filter((e=>!!e))});e.common.issues.push(s)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const i of t){if("aborted"===i.status)return b;"dirty"===i.status&&e.dirty(),s.push(i.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const e of t)s.push({key:await e.key,value:await e.value});return x.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const i of t){const{key:t,value:n}=i;if("aborted"===t.status)return b;if("aborted"===n.status)return b;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"===t.value||void 0===n.value&&!i.alwaysSet||(s[t.value]=n.value)}return{status:e.value,value:s}}}const b=Object.freeze({status:"aborted"}),w=e=>({status:"dirty",value:e}),k=e=>({status:"valid",value:e}),N=e=>"aborted"===e.status,_=e=>"dirty"===e.status,S=e=>"valid"===e.status,Z=e=>"undefined"!=typeof Promise&&e instanceof Promise;var E;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(E||(E={}));class I{constructor(e,t,s,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const A=(e,t)=>{if(S(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new T(e.common.issues);return this._error=t,this._error}}};function C(e){if(!e)return{};const{errorMap:t,invalid_type_error:s,required_error:i,description:n}=e;if(t&&(s||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=i?i:t.defaultError}:{message:null!=s?s:t.defaultError},description:n}}class j{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return m(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:m(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:m(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Z(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){var s;const i={common:{issues:[],async:null!==(s=null==t?void 0:t.async)&&void 0!==s&&s,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:m(e)},n=this._parseSync({data:e,path:i.path,parent:i});return A(i,n)}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:m(e)},i=this._parse({data:e,path:s.path,parent:s}),n=await(Z(i)?i:Promise.resolve(i));return A(s,n)}refine(e,t){const s=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const n=e(t),r=()=>i.addIssue({code:f.custom,...s(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then((e=>!!e||(r(),!1))):!!n||(r(),!1)}))}refinement(e,t){return this._refinement(((s,i)=>!!e(s)||(i.addIssue("function"==typeof t?t(s,i):t),!1)))}_refinement(e){return new Ge({schema:this,typeName:Ce.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return xe.create(this,this._def)}nullable(){return be.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return se.create(this,this._def)}promise(){return ye.create(this,this._def)}or(e){return re.create([this,e],this._def)}and(e){return ce.create(this,e,this._def)}transform(e){return new Ge({...C(this._def),schema:this,typeName:Ce.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new we({...C(this._def),innerType:this,defaultValue:t,typeName:Ce.ZodDefault})}brand(){return new Se({typeName:Ce.ZodBranded,type:this,...C(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ke({...C(this._def),innerType:this,catchValue:t,typeName:Ce.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Ze.create(this,e)}readonly(){return Ee.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P=/^c[^\s-]{8,}$/i,$=/^[a-z][a-z0-9]*$/,z=/[0-9A-HJKMNP-TV-Z]{26}/,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,D=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,L=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,U=/^(((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}))$/,O=/^(([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})))$/;class K extends j{constructor(){super(...arguments),this._regex=(e,t,s)=>this.refinement((t=>e.test(t)),{validation:t,code:f.invalid_string,...E.errToObj(s)}),this.nonempty=e=>this.min(1,E.errToObj(e)),this.trim=()=>new K({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new K({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new K({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.string,received:t.parsedType}),b}const t=new x;let s;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(s=this._getOrReturnCtx(e,s),G(s,{code:f.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(s=this._getOrReturnCtx(e,s),G(s,{code:f.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const i=e.data.length>a.value,n=e.data.length<a.value;(i||n)&&(s=this._getOrReturnCtx(e,s),i?G(s,{code:f.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):n&&G(s,{code:f.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)D.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"email",code:f.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)L.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"emoji",code:f.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)B.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"uuid",code:f.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)P.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"cuid",code:f.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)$.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"cuid2",code:f.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)z.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"ulid",code:f.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){s=this._getOrReturnCtx(e,s),G(s,{validation:"url",code:f.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{validation:"regex",code:f.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(e,s),G(s,{code:f.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(s=this._getOrReturnCtx(e,s),G(s,{code:f.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(s=this._getOrReturnCtx(e,s),G(s,{code:f.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?((r=a).precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):0===r.precision?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(s=this._getOrReturnCtx(e,s),G(s,{code:f.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"ip"===a.kind?(i=e.data,("v4"!==(n=a.version)&&n||!U.test(i))&&("v6"!==n&&n||!O.test(i))&&(s=this._getOrReturnCtx(e,s),G(s,{validation:"ip",code:f.invalid_string,message:a.message}),t.dirty())):d.assertNever(a);var i,n,r;return{status:t.value,value:e.data}}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...E.errToObj(e)})}url(e){return this._addCheck({kind:"url",...E.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...E.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...E.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...E.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...E.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...E.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...E.errToObj(e)})}datetime(e){var t;return this._addCheck("string"==typeof e?{kind:"datetime",precision:null,offset:!1,message:e}:{kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...E.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...E.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...E.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...E.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...E.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...E.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...E.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...E.errToObj(t)})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function F(e,t){const s=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=s>i?s:i;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}K.create=e=>{var t;return new K({checks:[],typeName:Ce.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...C(e)})};class R extends j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==p.number){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.number,received:t.parsedType}),b}let t;const s=new x;for(const i of this._def.checks)"int"===i.kind?d.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),G(t,{code:f.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),G(t,{code:f.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),G(t,{code:f.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):"multipleOf"===i.kind?0!==F(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),G(t,{code:f.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),G(t,{code:f.not_finite,message:i.message}),s.dirty()):d.assertNever(i);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,E.toString(t))}gt(e,t){return this.setLimit("min",e,!1,E.toString(t))}lte(e,t){return this.setLimit("max",e,!0,E.toString(t))}lt(e,t){return this.setLimit("max",e,!1,E.toString(t))}setLimit(e,t,s,i){return new R({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:E.toString(i)}]})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:E.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:E.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:E.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:E.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:E.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:E.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:E.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:E.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:E.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&d.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if("finite"===s.kind||"int"===s.kind||"multipleOf"===s.kind)return!0;"min"===s.kind?(null===t||s.value>t)&&(t=s.value):"max"===s.kind&&(null===e||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}R.create=e=>new R({checks:[],typeName:Ce.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...C(e)});class V extends j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==p.bigint){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.bigint,received:t.parsedType}),b}let t;const s=new x;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),G(t,{code:f.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),G(t,{code:f.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),G(t,{code:f.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):d.assertNever(i);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,E.toString(t))}gt(e,t){return this.setLimit("min",e,!1,E.toString(t))}lte(e,t){return this.setLimit("max",e,!0,E.toString(t))}lt(e,t){return this.setLimit("max",e,!1,E.toString(t))}setLimit(e,t,s,i){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:E.toString(i)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:E.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:E.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:E.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:E.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:E.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}V.create=e=>{var t;return new V({checks:[],typeName:Ce.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...C(e)})};class q extends j{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==p.boolean){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.boolean,received:t.parsedType}),b}return k(e.data)}}q.create=e=>new q({typeName:Ce.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...C(e)});class W extends j{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.date,received:t.parsedType}),b}if(isNaN(e.data.getTime()))return G(this._getOrReturnCtx(e),{code:f.invalid_date}),b;const t=new x;let s;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),G(s,{code:f.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),G(s,{code:f.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):d.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:E.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:E.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}W.create=e=>new W({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ce.ZodDate,...C(e)});class H extends j{_parse(e){if(this._getType(e)!==p.symbol){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.symbol,received:t.parsedType}),b}return k(e.data)}}H.create=e=>new H({typeName:Ce.ZodSymbol,...C(e)});class J extends j{_parse(e){if(this._getType(e)!==p.undefined){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.undefined,received:t.parsedType}),b}return k(e.data)}}J.create=e=>new J({typeName:Ce.ZodUndefined,...C(e)});class Y extends j{_parse(e){if(this._getType(e)!==p.null){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.null,received:t.parsedType}),b}return k(e.data)}}Y.create=e=>new Y({typeName:Ce.ZodNull,...C(e)});class Q extends j{constructor(){super(...arguments),this._any=!0}_parse(e){return k(e.data)}}Q.create=e=>new Q({typeName:Ce.ZodAny,...C(e)});class X extends j{constructor(){super(...arguments),this._unknown=!0}_parse(e){return k(e.data)}}X.create=e=>new X({typeName:Ce.ZodUnknown,...C(e)});class ee extends j{_parse(e){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.never,received:t.parsedType}),b}}ee.create=e=>new ee({typeName:Ce.ZodNever,...C(e)});class te extends j{_parse(e){if(this._getType(e)!==p.undefined){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.void,received:t.parsedType}),b}return k(e.data)}}te.create=e=>new te({typeName:Ce.ZodVoid,...C(e)});class se extends j{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),i=this._def;if(t.parsedType!==p.array)return G(t,{code:f.invalid_type,expected:p.array,received:t.parsedType}),b;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,n=t.data.length<i.exactLength.value;(e||n)&&(G(t,{code:e?f.too_big:f.too_small,minimum:n?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),s.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(G(t,{code:f.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),s.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(G(t,{code:f.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map(((e,s)=>i.type._parseAsync(new I(t,e,t.path,s))))).then((e=>x.mergeArray(s,e)));const n=[...t.data].map(((e,s)=>i.type._parseSync(new I(t,e,t.path,s))));return x.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new se({...this._def,minLength:{value:e,message:E.toString(t)}})}max(e,t){return new se({...this._def,maxLength:{value:e,message:E.toString(t)}})}length(e,t){return new se({...this._def,exactLength:{value:e,message:E.toString(t)}})}nonempty(e){return this.min(1,e)}}function ie(e){if(e instanceof ne){const t={};for(const s in e.shape)t[s]=xe.create(ie(e.shape[s]));return new ne({...e._def,shape:()=>t})}return e instanceof se?new se({...e._def,type:ie(e.element)}):e instanceof xe?xe.create(ie(e.unwrap())):e instanceof be?be.create(ie(e.unwrap())):e instanceof le?le.create(e.items.map((e=>ie(e)))):e}se.create=(e,t)=>new se({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ce.ZodArray,...C(t)});class ne extends j{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=d.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==p.object){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.object,received:t.parsedType}),b}const{status:t,ctx:s}=this._processInputParams(e),{shape:i,keys:n}=this._getCached(),r=[];if(!(this._def.catchall instanceof ee&&"strip"===this._def.unknownKeys))for(const e in s.data)n.includes(e)||r.push(e);const a=[];for(const e of n)a.push({key:{status:"valid",value:e},value:i[e]._parse(new I(s,s.data[e],s.path,e)),alwaysSet:e in s.data});if(this._def.catchall instanceof ee){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of r)a.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)r.length>0&&(G(s,{code:f.unrecognized_keys,keys:r}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of r)a.push({key:{status:"valid",value:t},value:e._parse(new I(s,s.data[t],s.path,t)),alwaysSet:t in s.data})}return s.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const s=await t.key;e.push({key:s,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>x.mergeObjectSync(t,e))):x.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return new ne({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,s)=>{var i,n,r,a;const o=null!==(r=null===(n=(i=this._def).errorMap)||void 0===n?void 0:n.call(i,t,s).message)&&void 0!==r?r:s.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=E.errToObj(e).message)&&void 0!==a?a:o}:{message:o}}}:{}})}strip(){return new ne({...this._def,unknownKeys:"strip"})}passthrough(){return new ne({...this._def,unknownKeys:"passthrough"})}extend(e){return new ne({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ne({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ce.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ne({...this._def,catchall:e})}pick(e){const t={};return d.objectKeys(e).forEach((s=>{e[s]&&this.shape[s]&&(t[s]=this.shape[s])})),new ne({...this._def,shape:()=>t})}omit(e){const t={};return d.objectKeys(this.shape).forEach((s=>{e[s]||(t[s]=this.shape[s])})),new ne({...this._def,shape:()=>t})}deepPartial(){return ie(this)}partial(e){const t={};return d.objectKeys(this.shape).forEach((s=>{const i=this.shape[s];t[s]=e&&!e[s]?i:i.optional()})),new ne({...this._def,shape:()=>t})}required(e){const t={};return d.objectKeys(this.shape).forEach((s=>{if(e&&!e[s])t[s]=this.shape[s];else{let e=this.shape[s];for(;e instanceof xe;)e=e._def.innerType;t[s]=e}})),new ne({...this._def,shape:()=>t})}keyof(){return ve(d.objectKeys(this.shape))}}ne.create=(e,t)=>new ne({shape:()=>e,unknownKeys:"strip",catchall:ee.create(),typeName:Ce.ZodObject,...C(t)}),ne.strictCreate=(e,t)=>new ne({shape:()=>e,unknownKeys:"strict",catchall:ee.create(),typeName:Ce.ZodObject,...C(t)}),ne.lazycreate=(e,t)=>new ne({shape:e,unknownKeys:"strip",catchall:ee.create(),typeName:Ce.ZodObject,...C(t)});class re extends j{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;if(t.common.async)return Promise.all(s.map((async e=>{const s={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const s of e)if("dirty"===s.result.status)return t.common.issues.push(...s.ctx.common.issues),s.result;const s=e.map((e=>new T(e.ctx.common.issues)));return G(t,{code:f.invalid_union,unionErrors:s}),b}));{let e;const i=[];for(const n of s){const s={...t,common:{...t.common,issues:[]},parent:null},r=n._parseSync({data:t.data,path:t.path,parent:s});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:s}),s.common.issues.length&&i.push(s.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const n=i.map((e=>new T(e)));return G(t,{code:f.invalid_union,unionErrors:n}),b}}get options(){return this._def.options}}re.create=(e,t)=>new re({options:e,typeName:Ce.ZodUnion,...C(t)});const ae=e=>e instanceof fe?ae(e.schema):e instanceof Ge?ae(e.innerType()):e instanceof Te?[e.value]:e instanceof Me?e.options:e instanceof ge?Object.keys(e.enum):e instanceof we?ae(e._def.innerType):e instanceof J?[void 0]:e instanceof Y?[null]:null;class oe extends j{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.object)return G(t,{code:f.invalid_type,expected:p.object,received:t.parsedType}),b;const s=this.discriminator,i=this.optionsMap.get(t.data[s]);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(G(t,{code:f.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,s){const i=new Map;for(const s of t){const t=ae(s.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(i.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,s)}}return new oe({typeName:Ce.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...C(s)})}}function ue(e,t){const s=m(e),i=m(t);if(e===t)return{valid:!0,data:e};if(s===p.object&&i===p.object){const s=d.objectKeys(t),i=d.objectKeys(e).filter((e=>-1!==s.indexOf(e))),n={...e,...t};for(const s of i){const i=ue(e[s],t[s]);if(!i.valid)return{valid:!1};n[s]=i.data}return{valid:!0,data:n}}if(s===p.array&&i===p.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const n=ue(e[i],t[i]);if(!n.valid)return{valid:!1};s.push(n.data)}return{valid:!0,data:s}}return s===p.date&&i===p.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ce extends j{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),i=(e,i)=>{if(N(e)||N(i))return b;const n=ue(e.value,i.value);return n.valid?((_(e)||_(i))&&t.dirty(),{status:t.value,value:n.data}):(G(s,{code:f.invalid_intersection_types}),b)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ce.create=(e,t,s)=>new ce({left:e,right:t,typeName:Ce.ZodIntersection,...C(s)});class le extends j{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==p.array)return G(s,{code:f.invalid_type,expected:p.array,received:s.parsedType}),b;if(s.data.length<this._def.items.length)return G(s,{code:f.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),b;!this._def.rest&&s.data.length>this._def.items.length&&(G(s,{code:f.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...s.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new I(s,e,s.path,t)):null})).filter((e=>!!e));return s.common.async?Promise.all(i).then((e=>x.mergeArray(t,e))):x.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new le({...this._def,rest:e})}}le.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new le({items:e,typeName:Ce.ZodTuple,rest:null,...C(t)})};class de extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==p.object)return G(s,{code:f.invalid_type,expected:p.object,received:s.parsedType}),b;const i=[],n=this._def.keyType,r=this._def.valueType;for(const e in s.data)i.push({key:n._parse(new I(s,e,s.path,e)),value:r._parse(new I(s,s.data[e],s.path,e))});return s.common.async?x.mergeObjectAsync(t,i):x.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,s){return new de(t instanceof j?{keyType:e,valueType:t,typeName:Ce.ZodRecord,...C(s)}:{keyType:K.create(),valueType:e,typeName:Ce.ZodRecord,...C(t)})}}class he extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==p.map)return G(s,{code:f.invalid_type,expected:p.map,received:s.parsedType}),b;const i=this._def.keyType,n=this._def.valueType,r=[...s.data.entries()].map((([e,t],r)=>({key:i._parse(new I(s,e,s.path,[r,"key"])),value:n._parse(new I(s,t,s.path,[r,"value"]))})));if(s.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const s of r){const i=await s.key,n=await s.value;if("aborted"===i.status||"aborted"===n.status)return b;"dirty"!==i.status&&"dirty"!==n.status||t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const s of r){const i=s.key,n=s.value;if("aborted"===i.status||"aborted"===n.status)return b;"dirty"!==i.status&&"dirty"!==n.status||t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}}}he.create=(e,t,s)=>new he({valueType:t,keyType:e,typeName:Ce.ZodMap,...C(s)});class pe extends j{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==p.set)return G(s,{code:f.invalid_type,expected:p.set,received:s.parsedType}),b;const i=this._def;null!==i.minSize&&s.data.size<i.minSize.value&&(G(s,{code:f.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&s.data.size>i.maxSize.value&&(G(s,{code:f.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const n=this._def.valueType;function r(e){const s=new Set;for(const i of e){if("aborted"===i.status)return b;"dirty"===i.status&&t.dirty(),s.add(i.value)}return{status:t.value,value:s}}const a=[...s.data.values()].map(((e,t)=>n._parse(new I(s,e,s.path,t))));return s.common.async?Promise.all(a).then((e=>r(e))):r(a)}min(e,t){return new pe({...this._def,minSize:{value:e,message:E.toString(t)}})}max(e,t){return new pe({...this._def,maxSize:{value:e,message:E.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}pe.create=(e,t)=>new pe({valueType:e,minSize:null,maxSize:null,typeName:Ce.ZodSet,...C(t)});class me extends j{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.function)return G(t,{code:f.invalid_type,expected:p.function,received:t.parsedType}),b;function s(e,s){return y({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,g(),v].filter((e=>!!e)),issueData:{code:f.invalid_arguments,argumentsError:s}})}function i(e,s){return y({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,g(),v].filter((e=>!!e)),issueData:{code:f.invalid_return_type,returnTypeError:s}})}const n={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof ye){const e=this;return k((async function(...t){const a=new T([]),o=await e._def.args.parseAsync(t,n).catch((e=>{throw a.addIssue(s(t,e)),a})),u=await Reflect.apply(r,this,o);return await e._def.returns._def.type.parseAsync(u,n).catch((e=>{throw a.addIssue(i(u,e)),a}))}))}{const e=this;return k((function(...t){const a=e._def.args.safeParse(t,n);if(!a.success)throw new T([s(t,a.error)]);const o=Reflect.apply(r,this,a.data),u=e._def.returns.safeParse(o,n);if(!u.success)throw new T([i(o,u.error)]);return u.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new me({...this._def,args:le.create(e).rest(X.create())})}returns(e){return new me({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,s){return new me({args:e||le.create([]).rest(X.create()),returns:t||X.create(),typeName:Ce.ZodFunction,...C(s)})}}class fe extends j{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}fe.create=(e,t)=>new fe({getter:e,typeName:Ce.ZodLazy,...C(t)});class Te extends j{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:f.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ve(e,t){return new Me({values:e,typeName:Ce.ZodEnum,...C(t)})}Te.create=(e,t)=>new Te({value:e,typeName:Ce.ZodLiteral,...C(t)});class Me extends j{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e);return G(t,{expected:d.joinValues(this._def.values),received:t.parsedType,code:f.invalid_type}),b}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:f.invalid_enum_value,options:this._def.values}),b}return k(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return Me.create(e)}exclude(e){return Me.create(this.options.filter((t=>!e.includes(t))))}}Me.create=ve;class ge extends j{_parse(e){const t=d.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==p.string&&s.parsedType!==p.number){const e=d.objectValues(t);return G(s,{expected:d.joinValues(e),received:s.parsedType,code:f.invalid_type}),b}if(-1===t.indexOf(e.data)){const e=d.objectValues(t);return G(s,{received:s.data,code:f.invalid_enum_value,options:e}),b}return k(e.data)}get enum(){return this._def.values}}ge.create=(e,t)=>new ge({values:e,typeName:Ce.ZodNativeEnum,...C(t)});class ye extends j{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.promise&&!1===t.common.async)return G(t,{code:f.invalid_type,expected:p.promise,received:t.parsedType}),b;const s=t.parsedType===p.promise?t.data:Promise.resolve(t.data);return k(s.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}ye.create=(e,t)=>new ye({type:e,typeName:Ce.ZodPromise,...C(t)});class Ge extends j{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:e=>{G(s,e),e.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===i.type){const e=i.transform(s.data,n);return s.common.issues.length?{status:"dirty",value:s.data}:s.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:s.path,parent:s}))):this._def.schema._parseSync({data:e,path:s.path,parent:s})}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,n);if(s.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===s.common.async){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return"aborted"===i.status?b:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then((s=>"aborted"===s.status?b:("dirty"===s.status&&t.dirty(),e(s.value).then((()=>({status:t.value,value:s.value}))))))}if("transform"===i.type){if(!1===s.common.async){const e=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!S(e))return e;const r=i.transform(e.value,n);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then((e=>S(e)?Promise.resolve(i.transform(e.value,n)).then((e=>({status:t.value,value:e}))):e))}d.assertNever(i)}}Ge.create=(e,t,s)=>new Ge({schema:e,typeName:Ce.ZodEffects,effect:t,...C(s)}),Ge.createWithPreprocess=(e,t,s)=>new Ge({schema:t,effect:{type:"preprocess",transform:e},typeName:Ce.ZodEffects,...C(s)});class xe extends j{_parse(e){return this._getType(e)===p.undefined?k(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}xe.create=(e,t)=>new xe({innerType:e,typeName:Ce.ZodOptional,...C(t)});class be extends j{_parse(e){return this._getType(e)===p.null?k(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}be.create=(e,t)=>new be({innerType:e,typeName:Ce.ZodNullable,...C(t)});class we extends j{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===p.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}we.create=(e,t)=>new we({innerType:e,typeName:Ce.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...C(t)});class ke extends j{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Z(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new T(s.common.issues)},input:s.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new T(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Ce.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...C(t)});class Ne extends j{_parse(e){if(this._getType(e)!==p.nan){const t=this._getOrReturnCtx(e);return G(t,{code:f.invalid_type,expected:p.nan,received:t.parsedType}),b}return{status:"valid",value:e.data}}}Ne.create=e=>new Ne({typeName:Ce.ZodNaN,...C(e)});const _e=Symbol("zod_brand");class Se extends j{_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.type._parse({data:t.data,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ze extends j{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),w(e.value)):this._def.out._parseAsync({data:e.value,path:s.path,parent:s})})();{const e=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:s.path,parent:s})}}static create(e,t){return new Ze({in:e,out:t,typeName:Ce.ZodPipeline})}}class Ee extends j{_parse(e){const t=this._def.innerType._parse(e);return S(t)&&(t.value=Object.freeze(t.value)),t}}Ee.create=(e,t)=>new Ee({innerType:e,typeName:Ce.ZodReadonly,...C(t)});const Ie=(e,t={},s)=>e?Q.create().superRefine(((i,n)=>{var r,a;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(a=null!==(r=e.fatal)&&void 0!==r?r:s)||void 0===a||a;n.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:o})}})):Q.create(),Ae={object:ne.lazycreate};var Ce;!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"}(Ce||(Ce={}));const je=K.create,Pe=R.create,$e=q.create,ze=Ge.create,Be={string:e=>K.create({...e,coerce:!0}),number:e=>R.create({...e,coerce:!0}),boolean:e=>q.create({...e,coerce:!0}),bigint:e=>V.create({...e,coerce:!0}),date:e=>W.create({...e,coerce:!0})};var De=Object.freeze({__proto__:null,defaultErrorMap:v,setErrorMap:function(e){M=e},getErrorMap:g,makeIssue:y,EMPTY_PATH:[],addIssueToContext:G,ParseStatus:x,INVALID:b,DIRTY:w,OK:k,isAborted:N,isDirty:_,isValid:S,isAsync:Z,get util(){return d},get objectUtil(){return h},ZodParsedType:p,getParsedType:m,ZodType:j,ZodString:K,ZodNumber:R,ZodBigInt:V,ZodBoolean:q,ZodDate:W,ZodSymbol:H,ZodUndefined:J,ZodNull:Y,ZodAny:Q,ZodUnknown:X,ZodNever:ee,ZodVoid:te,ZodArray:se,ZodObject:ne,ZodUnion:re,ZodDiscriminatedUnion:oe,ZodIntersection:ce,ZodTuple:le,ZodRecord:de,ZodMap:he,ZodSet:pe,ZodFunction:me,ZodLazy:fe,ZodLiteral:Te,ZodEnum:Me,ZodNativeEnum:ge,ZodPromise:ye,ZodEffects:Ge,ZodTransformer:Ge,ZodOptional:xe,ZodNullable:be,ZodDefault:we,ZodCatch:ke,ZodNaN:Ne,BRAND:_e,ZodBranded:Se,ZodPipeline:Ze,ZodReadonly:Ee,custom:Ie,Schema:j,ZodSchema:j,late:Ae,get ZodFirstPartyTypeKind(){return Ce},coerce:Be,any:Q.create,array:se.create,bigint:V.create,boolean:$e,date:W.create,discriminatedUnion:oe.create,effect:ze,enum:Me.create,function:me.create,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ie((t=>t instanceof e),t),intersection:ce.create,lazy:fe.create,literal:Te.create,map:he.create,nan:Ne.create,nativeEnum:ge.create,never:ee.create,null:Y.create,nullable:be.create,number:Pe,object:ne.create,oboolean:()=>$e().optional(),onumber:()=>Pe().optional(),optional:xe.create,ostring:()=>je().optional(),pipeline:Ze.create,preprocess:Ge.createWithPreprocess,promise:ye.create,record:de.create,set:pe.create,strictObject:ne.strictCreate,string:je,symbol:H.create,transformer:ze,tuple:le.create,undefined:J.create,union:re.create,unknown:X.create,void:te.create,NEVER:b,ZodIssueCode:f,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:T});const Le=[["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"]].map((e=>({value:e[2],label:e[2]}))),Ue=De.object({name:De.string().trim().min(1,"Name is required").max(30),business_name:De.string().trim().max(30).optional(),contact_email:De.string().trim().email("Invalid email").optional().or(De.literal("")),phone:De.preprocess((e=>c(String(e).trim())),De.string().optional()),address:De.string().trim().max(30).optional(),address2:De.string().trim().max(30).optional(),timezone:De.string().trim().optional(),url:De.string().trim().optional()}),Oe=class{constructor(s){e(this,s),this.sdkError=t(this,"sdkError",7),this.organizationUpdated=t(this,"organizationUpdated",7),this.endpoint=u.getDefault(),this.valid=!1,this.dirty=!1,this.submitting=!1,this.name="",this.business_name="",this.contact_email="",this.phone="",this.address="",this.address2="",this.timezone="",this.url=""}componentWillLoad(){this.endpoint.loadSession(),this.endpoint.session||console.log("[SETTINGS] Must be authenticated")}async componentDidLoad(){const e=await n(this.endpoint,this.endpoint.session.organization_id);console.log("[SETTINGS] Loaded organization",e),this.resetForm(e)}resetForm(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=!1,this.valid=!0}handleSubmit(e){e.preventDefault(),e.stopPropagation(),r(u.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((e=>{var t;console.log("[SETTINGS] Update result",e),null===(t=this.organizationUpdated)||void 0===t||t.emit({endpoint:this.endpoint,organization:e}),this.resetForm(e)})).catch((e=>l(`Error updating organization: ${e.message}`,{style:"error"})))}processFields(){const e=Ue.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=!0}render(){return this.endpoint.session?s(i,null,s("h1",null,"Organization Profile"),s("form",{onSubmit:e=>this.handleSubmit(e)},s("div",{class:"columns"},s("div",{class:"column"},s("verdocs-text-input",{id:"verdocs-organization-name",value:this.name,autocomplete:"off",label:"Name",required:!0,placeholder:"Enter your organization's name...",onInput:e=>this.name=e.target.value,onFocusout:e=>{this.name=e.target.value.trim(),this.processFields()}}),s("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:e=>this.business_name=e.target.value,onFocusout:e=>{this.business_name=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-organization-url",value:this.url,autocomplete:"off",label:"Web URL",placeholder:"Enter your Web URL...",onInput:e=>this.url=e.target.value,onFocusout:e=>{this.url=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-organization-phone",value:this.phone,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:e=>this.phone=e.target.value,onFocusout:e=>{this.phone=e.target.value.trim(),this.processFields()}})),s("div",{class:"column"},s("verdocs-text-input",{id:"verdocs-organization-address",value:this.address,autocomplete:"off",label:"Address",required:!0,placeholder:"Enter your address...",onInput:e=>this.address=e.target.value,onFocusout:e=>{this.address=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-organization-address",value:this.address2,autocomplete:"off",label:"Address 2",required:!0,placeholder:"Address line 2...",onInput:e=>this.address2=e.target.value,onFocusout:e=>{this.address2=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-organization-address2",value:this.address2,clearable:!0,autocomplete:"off",label:"Address 2",placeholder:"Enter your address...",onInput:e=>this.address2=e.target.value,onFocusout:e=>{this.address2=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-organization-email",value:this.contact_email,clearable:!0,autocomplete:"off",label:"Contact Email",placeholder:"Enter your contact email address...",onInput:e=>this.contact_email=e.target.value,onFocusout:e=>{this.contact_email=e.target.value.trim(),this.processFields()}}),s("verdocs-select-input",{options:Le,value:this.timezone,label:"Time Zone"}))),s("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty}))):(console.log("[SETTINGS] Must be authenticated"),s(i,{class:"authentication-required"},"Must be authenticated"))}};Oe.style='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}}';const Ke=De.object({first_name:De.string().trim().min(1,"First name is required").max(30),last_name:De.string().trim().min(1,"Last name is required").max(30),email:De.string().trim().email("Invalid email").min(1,"Email is required"),phone:De.preprocess((e=>c(String(e).trim())),De.string())}),Fe=class{constructor(s){e(this,s),this.sdkError=t(this,"sdkError",7),this.profileUpdated=t(this,"profileUpdated",7),this.endpoint=u.getDefault(),this.valid=!1,this.dirty=!1,this.submitting=!1,this.first_name="",this.last_name="",this.email="",this.phone=""}componentWillLoad(){this.endpoint.loadSession(),this.endpoint.session||console.log("[SETTINGS] Must be authenticated")}async componentDidLoad(){const e=await a(this.endpoint);console.log("[SETTINGS] Loaded profile",e),this.resetForm(e)}resetForm(e){this.first_name=e.first_name,this.last_name=e.last_name,this.email=e.email,this.phone=e.phone,this.dirty=!1,this.valid=!0}handleSubmit(e){e.preventDefault(),e.stopPropagation(),o(u.getDefault(),this.endpoint.session.profile_id,{first_name:this.first_name,last_name:this.last_name,phone:this.phone}).then((e=>{var t;console.log("[SETTINGS] Update result",e),null===(t=this.profileUpdated)||void 0===t||t.emit({endpoint:this.endpoint,profile:e}),this.resetForm(e)})).catch((e=>l(`Error updating profile: ${e.message}`,{style:"error"})))}processFields(){const e=Ke.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=!0}render(){return this.endpoint.session?s(i,null,s("h1",null,"My Profile"),s("form",{onSubmit:e=>this.handleSubmit(e)},s("div",{class:"columns"},s("div",{class:"column"},s("verdocs-text-input",{id:"verdocs-profile-first-name",value:this.first_name,autocomplete:"off",label:"First Name",required:!0,placeholder:"Enter your first name...",onInput:e=>this.first_name=e.target.value,onFocusout:e=>{this.first_name=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-profile-last-name",value:this.last_name,autocomplete:"off",label:"Last Name",required:!0,placeholder:"Enter your last name...",onInput:e=>this.last_name=e.target.value,onFocusout:e=>{this.last_name=e.target.value.trim(),this.processFields()}})),s("div",{class:"column"},s("verdocs-text-input",{id:"verdocs-profile-email",value:this.email,autocomplete:"off",label:"Email Address",required:!0,disabled:!0,placeholder:"Enter your email address...",onInput:e=>this.email=e.target.value,onFocusout:e=>{this.email=e.target.value.trim(),this.processFields()}}),s("verdocs-text-input",{id:"verdocs-profile-phone",value:this.phone,clearable:!0,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:e=>this.phone=e.target.value,onFocusout:e=>{this.phone=e.target.value.trim(),this.processFields()}}))),s("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty}))):(console.log("[SETTINGS] Must be authenticated"),s(i,{class:"authentication-required"},"Must be authenticated"))}};Fe.style='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}}';export{Oe as verdocs_settings_organization,Fe as verdocs_settings_profile}
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./p-2dbc05c6.system.js","./p-9a5ff58c.system.js"],(function(t){"use strict";var o,n,e,i;return{setters:[function(t){o=t.r;n=t.h;e=t.H},function(t){i=t.c}],execute:function(){var r='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var s=t("verdocs_button",function(){function t(t){o(this,t);this.label=undefined;this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return n("button",{disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?n("span",{class:"icon start",innerHTML:this.startIcon}):null,n("span",{class:"button-label"},this.label),this.endIcon?n("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}());s.style=r;var c='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var a='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var l=t("verdocs_help_icon",function(){function t(t){o(this,t);this.text="";this.icon=a;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=i(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,o;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(o=this.popperInstance)===null||o===void 0?void 0:o.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return n(e,{class:{}},n("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(o){return t.iconEl=o}}),n("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltipEl=o}},n("span",{innerHTML:this.text}),n("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}());l.style=c}}}));
|
@@ -1 +0,0 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o["throw"](t))}catch(t){r(t)}}function l(t){t.done?n(t.value):i(t.value).then(s,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];i=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-187b20b7.system.js"],(function(t){"use strict";var e,n,o,i,r,s;return{setters:[function(t){e=t.r;n=t.c;o=t.h;i=t.H},function(){},function(t){r=t.V},function(t){s=t.S}],execute:function(){var a='verdocs-settings{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-settings .tabs{gap:4px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;border-bottom:1px solid #654dcb}verdocs-settings .tabs .tab{cursor:pointer;padding:5px 10px;color:#ffffff;background-color:#777777}verdocs-settings .tabs .tab.active{color:#ffffff;background-color:#654dcb}';var l=t("verdocs_settings",function(){function t(t){e(this,t);this.sdkError=n(this,"sdkError",7);this.endpoint=r.getDefault();this.tab="profile"}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n;return __generator(this,(function(o){try{this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Unable to start session, must be authenticated");return[2]}}catch(o){console.log("[SETTINGS] Error with session",o);(t=this.sdkError)===null||t===void 0?void 0:t.emit(new s(o.message,(e=o.response)===null||e===void 0?void 0:e.status,(n=o.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};t.prototype.render=function(){var t=this;if(!this.endpoint.session){return o(i,null,o("verdocs-loader",null))}return o(i,null,o("div",{class:"tabs"},o("div",{class:"tab ".concat(this.tab==="profile"?"active":""),onClick:function(){return t.tab="profile"}},"Profile"),o("div",{class:"tab ".concat(this.tab==="organization"?"active":""),onClick:function(){return t.tab="organization"}},"Organization")),this.tab==="profile"&&o("verdocs-settings-profile",{endpoint:this.endpoint}),this.tab==="organization"&&o("verdocs-settings-organization",{endpoint:this.endpoint}))};return t}());l.style=a}}}));
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,c as o,h as s,H as t}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{V as e}from"./p-af048fad.js";import{S as r}from"./p-7a1b2643.js";const n=class{constructor(s){i(this,s),this.sdkError=o(this,"sdkError",7),this.endpoint=e.getDefault(),this.tab="profile"}async componentWillLoad(){var i,o,s;try{if(this.endpoint.loadSession(),!this.endpoint.session)return void console.log("[SETTINGS] Unable to start session, must be authenticated")}catch(t){console.log("[SETTINGS] Error with session",t),null===(i=this.sdkError)||void 0===i||i.emit(new r(t.message,null===(o=t.response)||void 0===o?void 0:o.status,null===(s=t.response)||void 0===s?void 0:s.data))}}render(){return this.endpoint.session?s(t,null,s("div",{class:"tabs"},s("div",{class:"tab "+("profile"===this.tab?"active":""),onClick:()=>this.tab="profile"},"Profile"),s("div",{class:"tab "+("organization"===this.tab?"active":""),onClick:()=>this.tab="organization"},"Organization")),"profile"===this.tab&&s("verdocs-settings-profile",{endpoint:this.endpoint}),"organization"===this.tab&&s("verdocs-settings-organization",{endpoint:this.endpoint})):s(t,null,s("verdocs-loader",null))}};n.style='verdocs-settings{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-settings .tabs{gap:4px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;border-bottom:1px solid #654dcb}verdocs-settings .tabs .tab{cursor:pointer;padding:5px 10px;color:#ffffff;background-color:#777777}verdocs-settings .tabs .tab.active{color:#ffffff;background-color:#654dcb}';export{n as verdocs_settings}
|