From cf6357b4fbe6dfd24c3ecb7df87e825c9233e330 Mon Sep 17 00:00:00 2001 From: winsan Date: Thu, 24 Oct 2024 14:35:50 +0800 Subject: [PATCH] update: meting4.9.0 (#255) Co-authored-by: zhangxiaochang --- SampleCode/H5/NEMeetingKit_h5_v4.9.0.js | 216 ++++++++++++++++++++++++ SampleCode/H5/index.html | 2 +- SampleCode/Web/NEMeetingKit_v4.9.0.js | 41 +++++ SampleCode/Web/index.html | 2 +- 4 files changed, 259 insertions(+), 2 deletions(-) create mode 100644 SampleCode/H5/NEMeetingKit_h5_v4.9.0.js create mode 100644 SampleCode/Web/NEMeetingKit_v4.9.0.js diff --git a/SampleCode/H5/NEMeetingKit_h5_v4.9.0.js b/SampleCode/H5/NEMeetingKit_h5_v4.9.0.js new file mode 100644 index 0000000..4c95f3e --- /dev/null +++ b/SampleCode/H5/NEMeetingKit_h5_v4.9.0.js @@ -0,0 +1,216 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('url')) : + typeof define === 'function' && define.amd ? define(['exports', 'url'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.NEMeetingKit = {}, global.require$$0)); +})(this, (function (exports, require$$0) { 'use strict'; + + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; + + function getDefaultExportFromCjs (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; + } + + var index_umd = {exports: {}}; + + (function (module, exports) { + !function(e,t){t(exports);}(commonjsGlobal,(function(exports){var _documentCurrentScript="undefined"!=typeof document?document.currentScript:null;function _mergeNamespaces(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}});}}));})),Object.freeze(e)}var __assign$3=function(){return __assign$3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$2(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value);}catch(e){i={error:e};}finally{try{r&&!r.done&&(n=o.return)&&n.call(o);}finally{if(i)throw i.error}}return a}function __spreadArray$2(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;ie,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},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;}(util||(util={})),function(e){e.mergeShapes=(e,t)=>({...e,...t});}(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=e=>{switch(typeof e){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":return Array.isArray(e)?ZodParsedType.array:null===e?ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},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"]),quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ZodError 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},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else {let e=n,r=0;for(;re.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return {formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}ZodError.create=e=>new ZodError(e);const errorMap=(e,t)=>{let n;switch(e.code){case ZodIssueCode.invalid_type:n=e.received===ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case ZodIssueCode.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:n=`Unrecognized key(s) in object: ${util.joinValues(e.keys,", ")}`;break;case ZodIssueCode.invalid_union:n="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${util.joinValues(e.options)}`;break;case ZodIssueCode.invalid_enum_value:n=`Invalid enum value. Expected ${util.joinValues(e.options)}, received '${e.received}'`;break;case ZodIssueCode.invalid_arguments:n="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:n="Invalid function return type";break;case ZodIssueCode.invalid_date:n="Invalid date";break;case ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:util.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case ZodIssueCode.too_small:n="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 ZodIssueCode.too_big:n="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 ZodIssueCode.custom:n="Invalid input";break;case ZodIssueCode.invalid_intersection_types:n="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ZodIssueCode.not_finite:n="Number must be finite";break;default:n=t.defaultError,util.assertNever(e);}return {message:n}};let overrideErrorMap=errorMap;function setErrorMap(e){overrideErrorMap=e;}function getErrorMap(){return overrideErrorMap}const makeIssue=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return {...i,path:o,message:i.message};let s="";const c=r.filter((e=>!!e)).slice().reverse();for(const e of c)s=e(a,{data:t,defaultError:s}).message;return {...i,path:o,message:s}},EMPTY_PATH=[];function addIssueToContext(e,t){const n=getErrorMap(),r=makeIssue({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===errorMap?void 0:errorMap].filter((e=>!!e))});e.common.issues.push(r);}class ParseStatus{constructor(){this.value="valid";}dirty(){"valid"===this.value&&(this.value="dirty");}abort(){"aborted"!==this.value&&(this.value="aborted");}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return INVALID;"dirty"===r.status&&e.dirty(),n.push(r.value);}return {status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r});}return ParseStatus.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return INVALID;if("aborted"===i.status)return INVALID;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||void 0===i.value&&!r.alwaysSet||(n[t.value]=i.value);}return {status:e.value,value:n}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=e=>({status:"dirty",value:e}),OK=e=>({status:"valid",value:e}),isAborted=e=>"aborted"===e.status,isDirty=e=>"dirty"===e.status,isValid=e=>"valid"===e.status,isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise;function __classPrivateFieldGet(e,t,n,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function __classPrivateFieldSet(e,t,n,r,i){if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var errorUtil,_ZodEnum_cache,_ZodNativeEnum_cache;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;}(errorUtil||(errorUtil={}));class ParseInputLazyPath{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r;}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 handleResult=(e,t)=>{if(isValid(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 ZodError(e.common.issues);return this._error=t,this._error}}};function processCreateParams(e){if(!e)return {};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return {errorMap:t,description:i};return {errorMap:(t,i)=>{var o,a;const{message:s}=e;return "invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(o=null!=s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!=s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}class ZodType{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 getParsedType(e.data)}_getOrReturnCtx(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}}_processInputParams(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}}}_parseSync(e){const t=this._parse(e);if(isAsync(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 n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:getParsedType(e)},i=this._parseSync({data:e,path:r.path,parent:r});return handleResult(r,i)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={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:getParsedType(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(isAsync(r)?r:Promise.resolve(r));return handleResult(n,i)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:ZodIssueCode.custom,...n(t)});return "undefined"!=typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(e){return ZodUnion.create([this,e],this._def)}and(e){return ZodIntersection.create(this,e,this._def)}transform(e){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:t,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:t,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(e){return new(this.constructor)({...this._def,description:e})}pipe(e){return ZodPipeline.create(this,e)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/,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,nanoidRegex=/^[a-z0-9_-]{21}$/i,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,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})))$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function timeRegex(e){return new RegExp(`^${timeRegexSource(e)}$`)}function datetimeRegex(e){let t=`${dateRegexSource}T${timeRegexSource(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function isValidIP(e,t){return !("v4"!==t&&t||!ipv4Regex.test(e))||!("v6"!==t&&t||!ipv6Regex.test(e))}class ZodString extends ZodType{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==ZodParsedType.string){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:t.parsedType}),INVALID}const t=new ParseStatus;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),addIssueToContext(n,{code:ZodIssueCode.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const i=e.data.length>r.value,o=e.data.lengthe.test(t)),{validation:t,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(n)})}_addCheck(e){return new ZodString({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...errorUtil.errToObj(e)})}datetime(e){var t,n;return "string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({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,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...errorUtil.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return "string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...errorUtil.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...errorUtil.errToObj(t)})}nonempty(e){return this.min(1,errorUtil.errToObj(e))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return !!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return !!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return !!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return !!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return !!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return !!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return !!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return !!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return !!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return !!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return !!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return !!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return !!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return !!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}ZodString.create=e=>{var t;return new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...processCreateParams(e)})};class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf;}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==ZodParsedType.number){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:t.parsedType}),INVALID}let t;const n=new ParseStatus;for(const r of this._def.checks)if("int"===r.kind)util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty());}else "multipleOf"===r.kind?0!==floatSafeRemainder(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_finite,message:r.message}),n.dirty()):util.assertNever(r);return {status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,errorUtil.toString(t))}setLimit(e,t,n,r){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:errorUtil.toString(r)}]})}_addCheck(e){return new ZodNumber({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.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"int"===e.kind||"multipleOf"===e.kind&&util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return !0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...processCreateParams(e)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte;}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:t.parsedType}),INVALID}let t;const n=new ParseStatus;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty());}else "multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),addIssueToContext(t,{code:ZodIssueCode.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):util.assertNever(r);return {status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,errorUtil.toString(t))}setLimit(e,t,n,r){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:errorUtil.toString(r)}]})}_addCheck(e){return new ZodBigInt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:errorUtil.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{var t;return new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...processCreateParams(e)})};class ZodBoolean extends ZodType{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:t.parsedType}),INVALID}return OK(e.data)}}ZodBoolean.create=e=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...processCreateParams(e)});class ZodDate extends ZodType{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==ZodParsedType.date){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:t.parsedType}),INVALID}if(isNaN(e.data.getTime())){return addIssueToContext(this._getOrReturnCtx(e),{code:ZodIssueCode.invalid_date}),INVALID}const t=new ParseStatus;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),addIssueToContext(n,{code:ZodIssueCode.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):util.assertNever(r);return {status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ZodDate({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:errorUtil.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.valuenew ZodDate({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(e)});class ZodSymbol extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:t.parsedType}),INVALID}return OK(e.data)}}ZodSymbol.create=e=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(e)});class ZodUndefined extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:t.parsedType}),INVALID}return OK(e.data)}}ZodUndefined.create=e=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(e)});class ZodNull extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.null){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:t.parsedType}),INVALID}return OK(e.data)}}ZodNull.create=e=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(e)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0;}_parse(e){return OK(e.data)}}ZodAny.create=e=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(e)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0;}_parse(e){return OK(e.data)}}ZodUnknown.create=e=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(e)});class ZodNever extends ZodType{_parse(e){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:t.parsedType}),INVALID}}ZodNever.create=e=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(e)});class ZodVoid extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:t.parsedType}),INVALID}return OK(e.data)}}ZodVoid.create=e=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(e)});class ZodArray extends ZodType{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==ZodParsedType.array)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:t.parsedType}),INVALID;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(addIssueToContext(t,{code:ZodIssueCode.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new ParseInputLazyPath(t,e,t.path,n))))).then((e=>ParseStatus.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new ParseInputLazyPath(t,e,t.path,n))));return ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new ZodArray({...this._def,minLength:{value:e,message:errorUtil.toString(t)}})}max(e,t){return new ZodArray({...this._def,maxLength:{value:e,message:errorUtil.toString(t)}})}length(e,t){return new ZodArray({...this._def,exactLength:{value:e,message:errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function deepPartialify(e){if(e instanceof ZodObject){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ZodOptional.create(deepPartialify(r));}return new ZodObject({...e._def,shape:()=>t})}return e instanceof ZodArray?new ZodArray({...e._def,type:deepPartialify(e.element)}):e instanceof ZodOptional?ZodOptional.create(deepPartialify(e.unwrap())):e instanceof ZodNullable?ZodNullable.create(deepPartialify(e.unwrap())):e instanceof ZodTuple?ZodTuple.create(e.items.map((e=>deepPartialify(e)))):e}ZodArray.create=(e,t)=>new ZodArray({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(t)});class ZodObject extends ZodType{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=util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==ZodParsedType.object){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType}),INVALID}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(const e in n.data)i.includes(e)||o.push(e);const a=[];for(const e of i){const t=r[e],i=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new ParseInputLazyPath(n,i,n.path,e)),alwaysSet:e in n.data});}if(this._def.catchall instanceof ZodNever){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)o.length>0&&(addIssueToContext(n,{code:ZodIssueCode.unrecognized_keys,keys:o}),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 o){const r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new ParseInputLazyPath(n,r,n.path,t)),alwaysSet:t in n.data});}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet});}return e})).then((e=>ParseStatus.mergeObjectSync(t,e))):ParseStatus.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return "unrecognized_keys"===t.code?{message:null!==(a=errorUtil.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(e){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ZodObject({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ZodObject({...this._def,catchall:e})}pick(e){const t={};return util.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n]);})),new ZodObject({...this._def,shape:()=>t})}omit(e){const t={};return util.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n]);})),new ZodObject({...this._def,shape:()=>t})}deepPartial(){return deepPartialify(this)}partial(e){const t={};return util.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional();})),new ZodObject({...this._def,shape:()=>t})}required(e){const t={};return util.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else {let e=this.shape[n];for(;e instanceof ZodOptional;)e=e._def.innerType;t[n]=e;}})),new ZodObject({...this._def,shape:()=>t})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)}),ZodObject.strictCreate=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)}),ZodObject.lazycreate=(e,t)=>new ZodObject({shape:e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(t)});class ZodUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return {result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new ZodError(e.ctx.common.issues)));return addIssueToContext(t,{code:ZodIssueCode.invalid_union,unionErrors:n}),INVALID}));{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues);}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new ZodError(e)));return addIssueToContext(t,{code:ZodIssueCode.invalid_union,unionErrors:i}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(e,t)=>new ZodUnion({options:e,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(t)});const getDiscriminator=e=>e instanceof ZodLazy?getDiscriminator(e.schema):e instanceof ZodEffects?getDiscriminator(e.innerType()):e instanceof ZodLiteral?[e.value]:e instanceof ZodEnum?e.options:e instanceof ZodNativeEnum?util.objectValues(e.enum):e instanceof ZodDefault?getDiscriminator(e._def.innerType):e instanceof ZodUndefined?[void 0]:e instanceof ZodNull?[null]:e instanceof ZodOptional?[void 0,...getDiscriminator(e.unwrap())]:e instanceof ZodNullable?[null,...getDiscriminator(e.unwrap())]:e instanceof ZodBranded||e instanceof ZodReadonly?getDiscriminator(e.unwrap()):e instanceof ZodCatch?getDiscriminator(e._def.innerType):[];class ZodDiscriminatedUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.object)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:t.parsedType}),INVALID;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);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}):(addIssueToContext(t,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=getDiscriminator(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const i of t){if(r.has(i))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n);}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...processCreateParams(n)})}}function mergeValues(e,t){const n=getParsedType(e),r=getParsedType(t);if(e===t)return {valid:!0,data:e};if(n===ZodParsedType.object&&r===ZodParsedType.object){const n=util.objectKeys(t),r=util.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const n of r){const r=mergeValues(e[n],t[n]);if(!r.valid)return {valid:!1};i[n]=r.data;}return {valid:!0,data:i}}if(n===ZodParsedType.array&&r===ZodParsedType.array){if(e.length!==t.length)return {valid:!1};const n=[];for(let r=0;r{if(isAborted(e)||isAborted(r))return INVALID;const i=mergeValues(e.value,r.value);return i.valid?((isDirty(e)||isDirty(r))&&t.dirty(),{status:t.value,value:i.data}):(addIssueToContext(n,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return n.common.async?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((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ZodIntersection.create=(e,t,n)=>new ZodIntersection({left:e,right:t,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(n)});class ZodTuple extends ZodType{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ZodParsedType.array)return addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:n.parsedType}),INVALID;if(n.data.lengththis._def.items.length&&(addIssueToContext(n,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new ParseInputLazyPath(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>ParseStatus.mergeArray(t,e))):ParseStatus.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ZodTuple({...this._def,rest:e})}}ZodTuple.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:e,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(t)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ZodParsedType.object)return addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:n.parsedType}),INVALID;const r=[],i=this._def.keyType,o=this._def.valueType;for(const e in n.data)r.push({key:i._parse(new ParseInputLazyPath(n,e,n.path,e)),value:o._parse(new ParseInputLazyPath(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?ParseStatus.mergeObjectAsync(t,r):ParseStatus.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new ZodRecord(t instanceof ZodType?{keyType:e,valueType:t,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(n)}:{keyType:ZodString.create(),valueType:e,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(t)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ZodParsedType.map)return addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:n.parsedType}),INVALID;const r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new ParseInputLazyPath(n,e,n.path,[o,"key"])),value:i._parse(new ParseInputLazyPath(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of o){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return INVALID;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value);}return {status:t.value,value:e}}))}{const e=new Map;for(const n of o){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return INVALID;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value);}return {status:t.value,value:e}}}}ZodMap.create=(e,t,n)=>new ZodMap({valueType:t,keyType:e,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(n)});class ZodSet extends ZodType{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ZodParsedType.set)return addIssueToContext(n,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:n.parsedType}),INVALID;const r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(addIssueToContext(n,{code:ZodIssueCode.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const n=new Set;for(const r of e){if("aborted"===r.status)return INVALID;"dirty"===r.status&&t.dirty(),n.add(r.value);}return {status:t.value,value:n}}const a=[...n.data.values()].map(((e,t)=>i._parse(new ParseInputLazyPath(n,e,n.path,t))));return n.common.async?Promise.all(a).then((e=>o(e))):o(a)}min(e,t){return new ZodSet({...this._def,minSize:{value:e,message:errorUtil.toString(t)}})}max(e,t){return new ZodSet({...this._def,maxSize:{value:e,message:errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ZodSet.create=(e,t)=>new ZodSet({valueType:e,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(t)});class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement;}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.function)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:t.parsedType}),INVALID;function n(e,n){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((e=>!!e)),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:n}})}function r(e,n){return makeIssue({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,getErrorMap(),errorMap].filter((e=>!!e)),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ZodPromise){const e=this;return OK((async function(...t){const a=new ZodError([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw a.addIssue(n(t,e)),a})),c=await Reflect.apply(o,this,s),l=await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw a.addIssue(r(c,e)),a}));return l}))}{const e=this;return OK((function(...t){const a=e._def.args.safeParse(t,i);if(!a.success)throw new ZodError([n(t,a.error)]);const s=Reflect.apply(o,this,a.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new ZodError([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ZodFunction({...this._def,args:ZodTuple.create(e).rest(ZodUnknown.create())})}returns(e){return new ZodFunction({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ZodFunction({args:e||ZodTuple.create([]).rest(ZodUnknown.create()),returns:t||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(n)})}}class ZodLazy extends ZodType{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})}}ZodLazy.create=(e,t)=>new ZodLazy({getter:e,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(t)});class ZodLiteral extends ZodType{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return {status:"valid",value:e.data}}get value(){return this._def.value}}function createZodEnum(e,t){return new ZodEnum({values:e,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(t)})}ZodLiteral.create=(e,t)=>new ZodLiteral({value:e,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(t)});class ZodEnum extends ZodType{constructor(){super(...arguments),_ZodEnum_cache.set(this,void 0);}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return addIssueToContext(t,{expected:util.joinValues(n),received:t.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodEnum_cache)||__classPrivateFieldSet(this,_ZodEnum_cache,new Set(this._def.values)),!__classPrivateFieldGet(this,_ZodEnum_cache).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return addIssueToContext(t,{received:t.data,code:ZodIssueCode.invalid_enum_value,options:n}),INVALID}return OK(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,t=this._def){return ZodEnum.create(e,{...this._def,...t})}exclude(e,t=this._def){return ZodEnum.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}_ZodEnum_cache=new WeakMap,ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{constructor(){super(...arguments),_ZodNativeEnum_cache.set(this,void 0);}_parse(e){const t=util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ZodParsedType.string&&n.parsedType!==ZodParsedType.number){const e=util.objectValues(t);return addIssueToContext(n,{expected:util.joinValues(e),received:n.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodNativeEnum_cache)||__classPrivateFieldSet(this,_ZodNativeEnum_cache,new Set(util.getValidEnumValues(this._def.values))),!__classPrivateFieldGet(this,_ZodNativeEnum_cache).has(e.data)){const e=util.objectValues(t);return addIssueToContext(n,{received:n.data,code:ZodIssueCode.invalid_enum_value,options:e}),INVALID}return OK(e.data)}get enum(){return this._def.values}}_ZodNativeEnum_cache=new WeakMap,ZodNativeEnum.create=(e,t)=>new ZodNativeEnum({values:e,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(t)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==ZodParsedType.promise&&!1===t.common.async)return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:t.parsedType}),INVALID;const n=t.parsedType===ZodParsedType.promise?t.data:Promise.resolve(t.data);return OK(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}ZodPromise.create=(e,t)=>new ZodPromise({type:e,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(t)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{addIssueToContext(n,e),e.fatal?t.abort():t.dirty();},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return INVALID;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return "aborted"===r.status?INVALID:"dirty"===r.status||"dirty"===t.value?DIRTY(r.value):r}));{if("aborted"===t.value)return INVALID;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return "aborted"===r.status?INVALID:"dirty"===r.status||"dirty"===t.value?DIRTY(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.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===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return "aborted"===r.status?INVALID:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?INVALID:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!isValid(e))return e;const o=r.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return {status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>isValid(e)?Promise.resolve(r.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}util.assertNever(r);}}ZodEffects.create=(e,t,n)=>new ZodEffects({schema:e,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:t,...processCreateParams(n)}),ZodEffects.createWithPreprocess=(e,t,n)=>new ZodEffects({schema:t,effect:{type:"preprocess",transform:e},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(n)});class ZodOptional extends ZodType{_parse(e){return this._getType(e)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodOptional.create=(e,t)=>new ZodOptional({innerType:e,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(t)});class ZodNullable extends ZodType{_parse(e){return this._getType(e)===ZodParsedType.null?OK(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodNullable.create=(e,t)=>new ZodNullable({innerType:e,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(t)});class ZodDefault extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ZodDefault.create=(e,t)=>new ZodDefault({innerType:e,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...processCreateParams(t)});class ZodCatch extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return isAsync(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ZodError(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(e,t)=>new ZodCatch({innerType:e,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...processCreateParams(t)});class ZodNaN extends ZodType{_parse(e){if(this._getType(e)!==ZodParsedType.nan){const t=this._getOrReturnCtx(e);return addIssueToContext(t,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:t.parsedType}),INVALID}return {status:"valid",value:e.data}}}ZodNaN.create=e=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(e)});const BRAND=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return (async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return "aborted"===e.status?INVALID:"dirty"===e.status?(t.dirty(),DIRTY(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return "aborted"===e.status?INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ZodPipeline({in:e,out:t,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(e){const t=this._def.innerType._parse(e),n=e=>(isValid(e)&&(e.value=Object.freeze(e.value)),e);return isAsync(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function custom(e,t={},n){return e?ZodAny.create().superRefine(((r,i)=>{var o,a;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a,c="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...c,fatal:s});}})):ZodAny.create()}ZodReadonly.create=(e,t)=>new ZodReadonly({innerType:e,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(t)});const 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={}));const instanceOfType=(e,t={message:`Input not instance of ${e.name}`})=>custom((t=>t instanceof e),t),stringType=ZodString.create,numberType=ZodNumber.create,nanType=ZodNaN.create,bigIntType=ZodBigInt.create,booleanType=ZodBoolean.create,dateType=ZodDate.create,symbolType=ZodSymbol.create,undefinedType=ZodUndefined.create,nullType=ZodNull.create,anyType=ZodAny.create,unknownType=ZodUnknown.create,neverType=ZodNever.create,voidType=ZodVoid.create,arrayType=ZodArray.create,objectType=ZodObject.create,strictObjectType=ZodObject.strictCreate,unionType=ZodUnion.create,discriminatedUnionType=ZodDiscriminatedUnion.create,intersectionType=ZodIntersection.create,tupleType=ZodTuple.create,recordType=ZodRecord.create,mapType=ZodMap.create,setType=ZodSet.create,functionType=ZodFunction.create,lazyType=ZodLazy.create,literalType=ZodLiteral.create,enumType=ZodEnum.create,nativeEnumType=ZodNativeEnum.create,promiseType=ZodPromise.create,effectsType=ZodEffects.create,optionalType=ZodOptional.create,nullableType=ZodNullable.create,preprocessType=ZodEffects.createWithPreprocess,pipelineType=ZodPipeline.create,ostring=()=>stringType().optional(),onumber=()=>numberType().optional(),oboolean=()=>booleanType().optional(),coerce={string:e=>ZodString.create({...e,coerce:!0}),number:e=>ZodNumber.create({...e,coerce:!0}),boolean:e=>ZodBoolean.create({...e,coerce:!0}),bigint:e=>ZodBigInt.create({...e,coerce:!0}),date:e=>ZodDate.create({...e,coerce:!0})},NEVER=INVALID;var z$3=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,datetimeRegex:datetimeRegex,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}),E$2,o$2,i,n$4,e$3,N$2,_,A$2,t$3,O$3,S$2,I$2,T$2,C$2,r$2,u$2,R$2,c$1,d$2,a,D$3,P$3,L$3,l$5,f$2,k$3,U$3,M$2,s$1,B$3,H$3,V$4,G$3,NEClientInnerType,NEClientReportType,NEClientType,NEMeetingRole,AttendeeOffType,NEMeetingIdDisplayOption,Role,NEMeetingAppNoticeTipType,NEMeetingLeaveType,NEMeetingLanguage,NEMeetingStatus,NEMeetingCode,NEMeetingInviteStatus,NEMenuVisibility,NEMeetingRoleType,NEEncryptionMode,NEWindowMode,MenuClickType,EndRoomReason,EventType,MeetingEventType,UserEventType,memberAction,SecurityItem,MeetingSecurityCtrlValue,SecurityCtrlEnum,hostAction,RecordState,NEChatPermission,NEWaitingRoomChatPermission,WATERMARK_STRATEGY,WATERMARK_STYLE,ActionType,BrowserType,LoginType,MeetingErrorCode,LayoutTypeEnum,NEMenuIDs,SingleMenuIds,MultipleMenuIds,NECloudRecordStrategyType,StaticReportType;function m$4(e,t){return {code:o$2.SUCCESS,message:t||i.SUCCESS,data:e}}function p$4(e,t,n){if(e){if(e.code)throw {code:n||e.code,message:e.msg||e.message||i.FAILURE};throw {code:n||o$2.FAILURE,message:t||i.FAILURE,data:e}}throw {code:n||o$2.FAILURE,message:t||i.FAILURE}}function g$1(e,t,n){return e?e.code?{code:n||e.code,message:e.msg||i.FAILURE,data:e}:{code:n||o$2.FAILURE,message:t||i.FAILURE,data:e}:{code:n||o$2.FAILURE,message:t||i.FAILURE,data:null}}!function(e){e[e.KICK_OUT=0]="KICK_OUT",e[e.UNAUTHORIZED=1]="UNAUTHORIZED",e[e.FORBIDDEN=2]="FORBIDDEN",e[e.ACCOUNT_TOKEN_ERROR=3]="ACCOUNT_TOKEN_ERROR",e[e.LOGGED_IN=4]="LOGGED_IN",e[e.LOGGED_OUT=5]="LOGGED_OUT",e[e.NET_BROKEN=6]="NET_BROKEN",e[e.TOKEN_EXPIRED=1026]="TOKEN_EXPIRED",e[e.TOKEN_INCORRECT=1027]="TOKEN_INCORRECT";}(E$2||(E$2={})),function(e){e[e.FAILURE=-1]="FAILURE",e[e.SUCCESS=0]="SUCCESS",e[e.UNAUTHORIZED=402]="UNAUTHORIZED",e[e.TOKEN_EXPIRED=1026]="TOKEN_EXPIRED",e[e.TOKEN_INCORRECT=1027]="TOKEN_INCORRECT",e[e.IM_REUSE_NOT_LOGIN=100004]="IM_REUSE_NOT_LOGIN",e[e.IM_REUSE_ACCOUNT_NOT_MATCH=100005]="IM_REUSE_ACCOUNT_NOT_MATCH";}(o$2||(o$2={})),function(e){e.SUCCESS="success",e.FAILURE="failure",e.NOT_SUPPORT="not support",e.NOT_INIT_RTC="not init rtc",e.NOT_INIT_CHATROOM="not init chatroom",e.NOT_JOIN_ROOMKIT="not join roomkit",e.NOT_JOIN_RTC="not join rtc",e.NOT_JOIN_WHITEBOARD="not join whiteboard",e.NOT_INIT_PREVIEW="not init preview",e.NOT_JOIN_CHATROOM="not join chatroom",e.CHATROOM_JOIN_FAIL="join chatroom fail",e.NO_UUID="lack of uuid",e.NO_DEVICEID="no deviceId",e.GET_REMOTE_MEMBER_FAILED_BY_UUID="get remote member fail by uuid",e.NO_MESSAGE_CONTENT="lack of message content",e.NO_APPKEY="lack of appKey",e.NOT_OPEN_VIDEO="not open video",e.NOT_SHARING_SCREEN="Member is not sharing screen",e.MEMBER_IS_EMPTY="Member is empty",e.PARAMS_IS_INCORRECT="params is incorrect";}(i||(i={})),function(e){e[e.kNEAudioDumpTypePCM=0]="kNEAudioDumpTypePCM",e[e.kNEAudioDumpTypeAll=1]="kNEAudioDumpTypeAll",e[e.kNEAudioDumpTypeWAV=2]="kNEAudioDumpTypeWAV";}(n$4||(n$4={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.IOS=1]="IOS",e[e.ANDROID=2]="ANDROID",e[e.PC=3]="PC",e[e.WEB=4]="WEB",e[e.SIP=5]="SIP",e[e.MAC=6]="MAC",e[e.MINIAPP=7]="MINIAPP",e[e.H323=8]="H323";}(e$3||(e$3={})),function(e){e[e.unknown=0]="unknown",e[e.SIP=1]="SIP",e[e.APP=2]="APP";}(N$2||(N$2={})),function(e){e[e.unknown=0]="unknown",e[e.waitingCall=1]="waitingCall",e[e.calling=2]="calling",e[e.rejected=3]="rejected",e[e.noAnswer=4]="noAnswer",e[e.error=5]="error",e[e.removed=6]="removed",e[e.canceled=7]="canceled",e[e.waitingJoin=8]="waitingJoin",e[e.busy=9]="busy";}(_||(_={})),function(e){e[e.SIP=1]="SIP",e[e.H323=2]="H323";}(A$2||(A$2={})),function(e){e.speech_low_quality="speech_low_quality",e.speech_standard="speech_standard",e.music_standard="music_standard",e.standard_stereo="standard_stereo",e.high_quality="high_quality",e.high_quality_stereo="high_quality_stereo";}(t$3||(t$3={})),function(e){e[e.kNEAudioProfileDefault=0]="kNEAudioProfileDefault",e[e.kNEAudioProfileStandard=1]="kNEAudioProfileStandard",e[e.kNEAudioProfileStandardExtend=2]="kNEAudioProfileStandardExtend",e[e.kNEAudioProfileMiddleQuality=3]="kNEAudioProfileMiddleQuality",e[e.kNEAudioProfileMiddleQualityStereo=4]="kNEAudioProfileMiddleQualityStereo",e[e.kNEAudioProfileHighQuality=5]="kNEAudioProfileHighQuality",e[e.kNEAudioProfileHighQualityStereo=6]="kNEAudioProfileHighQualityStereo";}(O$3||(O$3={})),function(e){e[e.kNEAudioScenarioDefault=0]="kNEAudioScenarioDefault",e[e.kNEAudioScenarioSpeech=1]="kNEAudioScenarioSpeech",e[e.kNEAudioScenarioMusic=2]="kNEAudioScenarioMusic";}(S$2||(S$2={})),function(e){e[e.kNEVideoProfileUsingTemplate=-1]="kNEVideoProfileUsingTemplate",e[e.kNEVideoProfileLowest=0]="kNEVideoProfileLowest",e[e.kNEVideoProfileLow=1]="kNEVideoProfileLow",e[e.kNEVideoProfileStandard=2]="kNEVideoProfileStandard",e[e.kNEVideoProfileHD720P=3]="kNEVideoProfileHD720P",e[e.kNEVideoProfileHD1080P=4]="kNEVideoProfileHD1080P",e[e.kNEVideoProfile4KUHD=5]="kNEVideoProfile4KUHD",e[e.kNEVideoProfile8KUHD=6]="kNEVideoProfile8KUHD",e[e.kNEVideoProfileNone=7]="kNEVideoProfileNone",e[e.kNEVideoProfileMAX=6]="kNEVideoProfileMAX";}(I$2||(I$2={})),function(e){e[e.HIGH=0]="HIGH",e[e.LOW=1]="LOW";}(T$2||(T$2={})),function(e){e[e.NONE=0]="NONE",e[e.GALLERY=1]="GALLERY",e[e.FOCUS=2]="FOCUS",e[e.SCREEN_SHARE=4]="SCREEN_SHARE";}(C$2||(C$2={})),function(e){e[e.INVALID=0]="INVALID",e[e.INIT=1]="INIT",e[e.STARTED=2]="STARTED",e[e.ENDED=3]="ENDED";}(r$2||(r$2={})),function(e){e[e.SAMPLE_RATE_32000=32e3]="SAMPLE_RATE_32000",e[e.SAMPLE_RATE_44100=44100]="SAMPLE_RATE_44100",e[e.SAMPLE_RATE_48000=48e3]="SAMPLE_RATE_48000";}(u$2||(u$2={})),function(e){e[e["LC-AAC"]=0]="LC-AAC",e[e["HE-AAC"]=1]="HE-AAC";}(R$2||(R$2={})),function(e){e.CHINESE="CHINESE",e.ENGLISH="ENGLISH",e.JAPANESE="JAPANESE";}(c$1||(c$1={})),function(e){e[e.unknown=0]="unknown",e[e.init=1]="init",e[e.inRoom=2]="inRoom",e[e.leave=3]="leave",e[e.inviting=4]="inviting";}(d$2||(d$2={})),function(e){e[e.kConnectionUnknown=0]="kConnectionUnknown",e[e.kConnectionEthernet=1]="kConnectionEthernet",e[e.kConnectionWifi=2]="kConnectionWifi",e[e.kConnection2G=3]="kConnection2G",e[e.kConnection3G=4]="kConnection3G",e[e.kConnection4G=5]="kConnection4G",e[e.kConnectionNone=6]="kConnectionNone";}(a||(a={})),function(e){e[e.kNEVirtualBackgroundSupportFull=0]="kNEVirtualBackgroundSupportFull",e[e.kNEVirtualBackgroundSupportHardwareLimit=1]="kNEVirtualBackgroundSupportHardwareLimit",e[e.kNEVirtualBackgroundSupportPerformanceLimit=2]="kNEVirtualBackgroundSupportPerformanceLimit";}(D$3||(D$3={})),function(e){e[e.None=-1]="None",e[e.P2P=0]="P2P";}(P$3||(P$3={})),function(e){e[e.FORWARD=0]="FORWARD",e[e.BACKWARD=1]="BACKWARD";}(L$3||(L$3={})),function(e){e[e.COMMON=0]="COMMON",e[e.WAITING_ROOM=1]="WAITING_ROOM";}(l$5||(l$5={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.ONLINE_NORMAL=1]="ONLINE_NORMAL",e[e.GUEST_DESC=2]="GUEST_DESC",e[e.GUEST_ASC=3]="GUEST_ASC";}(f$2||(f$2={})),function(e){e.TEXT="text",e.IMAGE="image",e.AUDIO="audio",e.VIDEO="video",e.FILE="file",e.GEO="geo",e.CUSTOM="custom",e.TIP="tip",e.NOTIFICATION="notification",e.ATTACHSTR="attachStr";}(k$3||(k$3={})),function(e){e[e.STATE_ENABLE_CAPTION_FAIL=0]="STATE_ENABLE_CAPTION_FAIL",e[e.STATE_DISABLE_CAPTION_FAIL=1]="STATE_DISABLE_CAPTION_FAIL",e[e.STATE_ENABLE_CAPTION_SUCCESS=2]="STATE_ENABLE_CAPTION_SUCCESS",e[e.STATE_DISABLE_CAPTION_SUCCESS=3]="STATE_DISABLE_CAPTION_SUCCESS";}(U$3||(U$3={})),function(e){e[e.CODE_SUCCESS=200]="CODE_SUCCESS",e[e.CODE_INVALID_REQUEST=400]="CODE_INVALID_REQUEST",e[e.CODE_NOT_LOGGED_IN=402]="CODE_NOT_LOGGED_IN",e[e.CODE_INVALID_PARAMS=601]="CODE_INVALID_PARAMS",e[e.CODE_NO_PERMISSION=611]="CODE_NO_PERMISSION",e[e.CODE_NO_BACKEND_SERVICE=612]="CODE_NO_BACKEND_SERVICE";}(M$2||(M$2={})),function(e){e[e.RecordingStart=0]="RecordingStart",e[e.RecordingStop=1]="RecordingStop";}(s$1||(s$1={})),function(e){e[e.Disconnect=0]="Disconnect",e[e.Reconnect=1]="Reconnect";}(B$3||(B$3={})),function(e){e.UNKNOWN="UNKNOWN",e.LOGIN_STATE_ERROR="LOGIN_STATE_ERROR",e.CLOSE_BY_BACKEND="CLOSE_BY_BACKEND",e.ALL_MEMBERS_OUT="ALL_MEMBERS_OUT",e.END_OF_LIFE="END_OF_LIFE",e.CLOSE_BY_MEMBER="CLOSE_BY_MEMBER",e.KICK_OUT="KICK_OUT",e.SYNC_DATA_ERROR="SYNC_DATA_ERROR",e.LEAVE_BY_SELF="LEAVE_BY_SELF",e.kICK_BY_SELF="kICK_BY_SELF",e.MOVE_TO_WAITING_ROOM="MOVE_TO_WAITING_ROOM";}(H$3||(H$3={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.EXCELLENT=1]="EXCELLENT",e[e.GOOD=2]="GOOD",e[e.POOR=3]="POOR",e[e.BAD=4]="BAD",e[e.VERYBAD=5]="VERYBAD",e[e.DOWN=6]="DOWN";}(V$4||(V$4={})),function(e){e[e.NONE=0]="NONE",e[e.CHINESE=1]="CHINESE",e[e.ENGLISH=2]="ENGLISH",e[e.JAPANESE=3]="JAPANESE";}(G$3||(G$3={})),exports.NEClientInnerType=void 0,NEClientInnerType=exports.NEClientInnerType||(exports.NEClientInnerType={}),NEClientInnerType.WEB="web",NEClientInnerType.ANDROID="android",NEClientInnerType.IOS="ios",NEClientInnerType.PC="pc",NEClientInnerType.MINIAPP="miniApp",NEClientInnerType.MAC="mac",NEClientInnerType.SIP="SIP",NEClientInnerType.UNKNOWN="unknown",exports.NEClientReportType=void 0,NEClientReportType=exports.NEClientReportType||(exports.NEClientReportType={}),NEClientReportType.WEB="Web",NEClientReportType.PC="Windows",NEClientReportType.MINIAPP="miniApp",NEClientReportType.MAC="macOS",NEClientReportType.UNKNOWN="unknown",exports.NEClientType=void 0,NEClientType=exports.NEClientType||(exports.NEClientType={}),NEClientType[NEClientType.UNKNOWN=0]="UNKNOWN",NEClientType[NEClientType.IOS=1]="IOS",NEClientType[NEClientType.ANDROID=2]="ANDROID",NEClientType[NEClientType.PC=3]="PC",NEClientType[NEClientType.WEB=4]="WEB",NEClientType[NEClientType.SIP=5]="SIP",NEClientType[NEClientType.MAC=6]="MAC",NEClientType[NEClientType.MINIAPP=7]="MINIAPP",NEClientType[NEClientType.H323=8]="H323",exports.NEMeetingRole=void 0,NEMeetingRole=exports.NEMeetingRole||(exports.NEMeetingRole={}),NEMeetingRole.participant="member",NEMeetingRole.host="host",NEMeetingRole.coHost="cohost",NEMeetingRole.ghost="ghost",exports.AttendeeOffType=void 0,AttendeeOffType=exports.AttendeeOffType||(exports.AttendeeOffType={}),AttendeeOffType.offNotAllowSelfOn="offNotAllowSelfOn",AttendeeOffType.offAllowSelfOn="offAllowSelfOn",AttendeeOffType.disable="disable",exports.NEMeetingIdDisplayOption=void 0,NEMeetingIdDisplayOption=exports.NEMeetingIdDisplayOption||(exports.NEMeetingIdDisplayOption={}),NEMeetingIdDisplayOption[NEMeetingIdDisplayOption.DISPLAY_ALL=0]="DISPLAY_ALL",NEMeetingIdDisplayOption[NEMeetingIdDisplayOption.DISPLAY_LONG_ID_ONLY=1]="DISPLAY_LONG_ID_ONLY",NEMeetingIdDisplayOption[NEMeetingIdDisplayOption.DISPLAY_SHORT_ID_ONLY=2]="DISPLAY_SHORT_ID_ONLY",exports.Role=void 0,Role=exports.Role||(exports.Role={}),Role.member="member",Role.host="host",Role.coHost="cohost",Role.observer="observer",Role.guest="guest",exports.NEMeetingAppNoticeTipType=void 0,NEMeetingAppNoticeTipType=exports.NEMeetingAppNoticeTipType||(exports.NEMeetingAppNoticeTipType={}),NEMeetingAppNoticeTipType[NEMeetingAppNoticeTipType.NEMeetingAppNoticeTipTypeUnknown=0]="NEMeetingAppNoticeTipTypeUnknown",NEMeetingAppNoticeTipType[NEMeetingAppNoticeTipType.NEMeetingAppNoticeTipTypeText=1]="NEMeetingAppNoticeTipTypeText",NEMeetingAppNoticeTipType[NEMeetingAppNoticeTipType.NEMeetingAppNoticeTipTypeUrl=2]="NEMeetingAppNoticeTipTypeUrl",exports.NEMeetingLeaveType=void 0,NEMeetingLeaveType=exports.NEMeetingLeaveType||(exports.NEMeetingLeaveType={}),NEMeetingLeaveType[NEMeetingLeaveType.LEAVE_BY_SELF=0]="LEAVE_BY_SELF",NEMeetingLeaveType[NEMeetingLeaveType.KICK_OUT=2]="KICK_OUT",NEMeetingLeaveType[NEMeetingLeaveType.CLOSE_BY_MEMBER=3]="CLOSE_BY_MEMBER",NEMeetingLeaveType[NEMeetingLeaveType.NetworkError=4]="NetworkError",NEMeetingLeaveType[NEMeetingLeaveType.UNKNOWN=6]="UNKNOWN",NEMeetingLeaveType[NEMeetingLeaveType.OTHER=7]="OTHER",NEMeetingLeaveType[NEMeetingLeaveType.LOGIN_STATE_ERROR=8]="LOGIN_STATE_ERROR",NEMeetingLeaveType[NEMeetingLeaveType.CLOSE_BY_BACKEND=9]="CLOSE_BY_BACKEND",NEMeetingLeaveType[NEMeetingLeaveType.SYNC_DATA_ERROR=10]="SYNC_DATA_ERROR",NEMeetingLeaveType[NEMeetingLeaveType.ALL_MEMBERS_OUT=11]="ALL_MEMBERS_OUT",NEMeetingLeaveType[NEMeetingLeaveType.END_OF_LIFE=12]="END_OF_LIFE",NEMeetingLeaveType[NEMeetingLeaveType.kICK_BY_SELF=13]="kICK_BY_SELF",NEMeetingLeaveType[NEMeetingLeaveType.JOIN_TIMEOUT=14]="JOIN_TIMEOUT",exports.NEMeetingLanguage=void 0,NEMeetingLanguage=exports.NEMeetingLanguage||(exports.NEMeetingLanguage={}),NEMeetingLanguage.AUTOMATIC="*",NEMeetingLanguage.CHINESE="zh",NEMeetingLanguage.ENGLISH="en",NEMeetingLanguage.JAPANESE="ja",exports.NEMeetingStatus=void 0,NEMeetingStatus=exports.NEMeetingStatus||(exports.NEMeetingStatus={}),NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_FAILED=-1]="MEETING_STATUS_FAILED",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_IDLE=0]="MEETING_STATUS_IDLE",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_WAITING=1]="MEETING_STATUS_WAITING",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_CONNECTING=2]="MEETING_STATUS_CONNECTING",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_INMEETING=3]="MEETING_STATUS_INMEETING",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_IN_WAITING_ROOM=5]="MEETING_STATUS_IN_WAITING_ROOM",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_DISCONNECTING=6]="MEETING_STATUS_DISCONNECTING",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_INMEETING_MINIMIZED=4]="MEETING_STATUS_INMEETING_MINIMIZED",NEMeetingStatus[NEMeetingStatus.MEETING_STATUS_UNKNOWN=100]="MEETING_STATUS_UNKNOWN",exports.NEMeetingCode=void 0,NEMeetingCode=exports.NEMeetingCode||(exports.NEMeetingCode={}),NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_BY_SELF=0]="MEETING_DISCONNECTING_BY_SELF",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_REMOVED_BY_HOST=1]="MEETING_DISCONNECTING_REMOVED_BY_HOST",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_CLOSED_BY_HOST=2]="MEETING_DISCONNECTING_CLOSED_BY_HOST",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_LOGIN_ON_OTHER_DEVICE=3]="MEETING_DISCONNECTING_LOGIN_ON_OTHER_DEVICE",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_CLOSED_BY_SELF_AS_HOST=4]="MEETING_DISCONNECTING_CLOSED_BY_SELF_AS_HOST",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_AUTH_INFO_EXPIRED=5]="MEETING_DISCONNECTING_AUTH_INFO_EXPIRED",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_NOT_EXIST=7]="MEETING_DISCONNECTING_NOT_EXIST",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_SYNC_DATA_ERROR=8]="MEETING_DISCONNECTING_SYNC_DATA_ERROR",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_RTC_INIT_ERROR=9]="MEETING_DISCONNECTING_RTC_INIT_ERROR",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_JOIN_CHANNEL_ERROR=10]="MEETING_DISCONNECTING_JOIN_CHANNEL_ERROR",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_JOIN_TIMEOUT=11]="MEETING_DISCONNECTING_JOIN_TIMEOUT",NEMeetingCode[NEMeetingCode.MEETING_DISCONNECTING_END_OF_LIFE=12]="MEETING_DISCONNECTING_END_OF_LIFE",NEMeetingCode[NEMeetingCode.MEETING_WAITING_VERIFY_PASSWORD=20]="MEETING_WAITING_VERIFY_PASSWORD",NEMeetingCode[NEMeetingCode.MEETING_JOIN_CHANNEL_START=21]="MEETING_JOIN_CHANNEL_START",NEMeetingCode[NEMeetingCode.MEETING_JOIN_CHANNEL_SUCCESS=22]="MEETING_JOIN_CHANNEL_SUCCESS",exports.NEMeetingInviteStatus=void 0,NEMeetingInviteStatus=exports.NEMeetingInviteStatus||(exports.NEMeetingInviteStatus={}),NEMeetingInviteStatus[NEMeetingInviteStatus.unknown=0]="unknown",NEMeetingInviteStatus[NEMeetingInviteStatus.waitingCall=1]="waitingCall",NEMeetingInviteStatus[NEMeetingInviteStatus.calling=2]="calling",NEMeetingInviteStatus[NEMeetingInviteStatus.rejected=3]="rejected",NEMeetingInviteStatus[NEMeetingInviteStatus.noAnswer=4]="noAnswer",NEMeetingInviteStatus[NEMeetingInviteStatus.error=5]="error",NEMeetingInviteStatus[NEMeetingInviteStatus.removed=6]="removed",NEMeetingInviteStatus[NEMeetingInviteStatus.canceled=7]="canceled",NEMeetingInviteStatus[NEMeetingInviteStatus.waitingJoin=8]="waitingJoin",NEMeetingInviteStatus[NEMeetingInviteStatus.busy=9]="busy";class NEContactsService{constructor(e){Object.defineProperty(this,"_logger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_neMeeting",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._logger=e.logger,this._neMeeting=e.neMeeting;}searchContactListByName(e,t,n){return __awaiter$3(this,void 0,void 0,(function*(){try{const r=z$3.string(),i=z$3.number(),o=z$3.number();r.parse(e,{path:["name"]}),i.parse(t,{path:["pageSize"]}),o.parse(n,{path:["pageNum"]});}catch(e){throw p$4(void 0,e.message)}return this._neMeeting.searchAccount({name:e,pageSize:t,pageNum:n}).then((e=>m$4(e.map(this._formatNEContact))))}))}searchContactListByPhoneNumber(e,t,n){return __awaiter$3(this,void 0,void 0,(function*(){try{const r=z$3.string(),i=z$3.number(),o=z$3.number();r.parse(e,{path:["phoneNumber"]}),i.parse(t,{path:["pageSize"]}),o.parse(n,{path:["pageNum"]});}catch(e){throw p$4(void 0,e.message)}return this._neMeeting.searchAccount({phoneNumber:e,pageSize:t,pageNum:n}).then((e=>m$4(e.map(this._formatNEContact))))}))}getContactsInfo(e){try{z$3.array(z$3.string()).parse(e,{path:["userUuids"]});}catch(e){throw p$4(void 0,e.message)}return this._neMeeting.getAccountInfoList(e).then((e=>{var t;return m$4({foundList:(null===(t=e.meetingAccountListResp)||void 0===t?void 0:t.map(this._formatNEContact))||[],notFoundList:e.notFindUserUuids})}))}_formatNEContact(e){return {userUuid:e.userUuid,name:e.name,avatar:e.avatar||"",dept:e.dept||"",phoneNumber:e.phoneNumber||""}}}exports.NEMenuVisibility=void 0,NEMenuVisibility=exports.NEMenuVisibility||(exports.NEMenuVisibility={}),NEMenuVisibility[NEMenuVisibility.VISIBLE_ALWAYS=0]="VISIBLE_ALWAYS",NEMenuVisibility[NEMenuVisibility.VISIBLE_EXCLUDE_HOST=1]="VISIBLE_EXCLUDE_HOST",NEMenuVisibility[NEMenuVisibility.VISIBLE_TO_HOST_ONLY=2]="VISIBLE_TO_HOST_ONLY",NEMenuVisibility[NEMenuVisibility.VISIBLE_EXCLUDE_ROOM_SYSTEM_DEVICE=3]="VISIBLE_EXCLUDE_ROOM_SYSTEM_DEVICE",NEMenuVisibility[NEMenuVisibility.VISIBLE_TO_OWNER_ONLY=4]="VISIBLE_TO_OWNER_ONLY",NEMenuVisibility[NEMenuVisibility.VISIBLE_TO_HOST_EXCLUDE_COHOST=5]="VISIBLE_TO_HOST_EXCLUDE_COHOST",function(e){e[e.host=0]="host",e[e.coHost=1]="coHost",e[e.member=2]="member",e[e.guest=3]="guest";}(NEMeetingRoleType||(NEMeetingRoleType={})),function(e){e[e.GMCryptoSM4ECB=0]="GMCryptoSM4ECB";}(NEEncryptionMode||(NEEncryptionMode={})),function(e){e[e.Normal=1]="Normal",e[e.Whiteboard=2]="Whiteboard";}(NEWindowMode||(NEWindowMode={})),function(e){e[e.Base=0]="Base",e[e.Stateful=1]="Stateful";}(MenuClickType||(MenuClickType={})),exports.EndRoomReason=void 0,EndRoomReason=exports.EndRoomReason||(exports.EndRoomReason={}),EndRoomReason.JOIN_TIMEOUT="JOIN_TIMEOUT",exports.EventType=void 0,EventType=exports.EventType||(exports.EventType={}),EventType.MemberAudioMuteChanged="memberAudioMuteChanged",EventType.MemberJoinRoom="memberJoinRoom",EventType.MemberNameChanged="memberNameChanged",EventType.MemberJoinRtcChannel="memberJoinRtcChannel",EventType.MemberLeaveChatroom="memberLeaveChatroom",EventType.MemberLeaveRoom="memberLeaveRoom",EventType.MemberLeaveRtcChannel="memberLeaveRtcChannel",EventType.MemberRoleChanged="memberRoleChanged",EventType.MemberScreenShareStateChanged="memberScreenShareStateChanged",EventType.MemberSystemAudioShareStateChanged="MemberSystemAudioShareStateChanged",EventType.MemberVideoMuteChanged="memberVideoMuteChanged",EventType.MemberWhiteboardStateChanged="memberWhiteboardStateChanged",EventType.RoomPropertiesChanged="roomPropertiesChanged",EventType.RoomLockStateChanged="roomLockStateChanged",EventType.RoomWatermarkChanged="roomWatermarkChanged",EventType.MemberPropertiesChanged="memberPropertiesChanged",EventType.MemberAudioConnectStateChanged="memberAudioConnectStateChanged",EventType.MemberPropertiesDeleted="memberPropertiesDeleted",EventType.RoomPropertiesDeleted="roomPropertiesDeleted",EventType.RoomEnded="roomEnded",EventType.RtcActiveSpeakerChanged="rtcActiveSpeakerChanged",EventType.RtcChannelError="rtcChannelError",EventType.RtcAudioVolumeIndication="rtcAudioVolumeIndication",EventType.RtcLocalAudioVolumeIndication="rtcLocalAudioVolumeIndication",EventType.RoomLiveStateChanged="roomLiveStateChanged",EventType.NetworkQuality="networkQuality",EventType.RtcStats="rtcStats",EventType.RoomConnectStateChanged="roomConnectStateChanged",EventType.CameraDeviceChanged="cameraDeviceChanged",EventType.PlayoutDeviceChanged="playoutDeviceChanged",EventType.RecordDeviceChanged="recordDeviceChanged",EventType.ReceiveChatroomMessages="receiveChatroomMessages",EventType.ChatroomMessageAttachmentProgress="chatroomMessageAttachmentProgress",EventType.ReceivePassThroughMessage="receivePassThroughMessage",EventType.ReceiveScheduledMeetingUpdate="receiveScheduledMeetingUpdate",EventType.ReceivePluginMessage="receivePluginMessage",EventType.ReceiveAccountInfoUpdate="receiveAccountInfoUpdate",EventType.DeviceChange="deviceChange",EventType.NetworkError="networkError",EventType.ClientBanned="ClientBanned",EventType.AutoPlayNotAllowed="autoplayNotAllowed",EventType.NetworkReconnect="networkReconnect",EventType.NetworkReconnectSuccess="networkReconnectSuccess",EventType.CheckNeedHandsUp="checkNeedHandsUp",EventType.NeedVideoHandsUp="needVideoHandsUp",EventType.NeedAudioHandsUp="needAudioHandsUp",EventType.MeetingExits="meetingExits",EventType.roomRemainingSecondsRenewed="roomRemainingSecondsRenewed",EventType.roomCloudRecordStateChanged="roomCloudRecordStateChanged",EventType.RtcScreenCaptureStatus="rtcScreenCaptureStatus",EventType.onVideoFrameData="onVideoFrameData",EventType.previewVideoFrameData="previewVideoFrameData",EventType.rtcVirtualBackgroundSourceEnabled="rtcVirtualBackgroundSourceEnabled",EventType.meetingStatusChanged="meetingStatusChanged",EventType.RoomsCustomEvent="roomsCustomEvent",EventType.RoomsSendEvent="roomsSendEvent",EventType.MemberJoinWaitingRoom="memberJoinWaitingRoom",EventType.MemberLeaveWaitingRoom="memberLeaveWaitingRoom",EventType.MemberAdmitted="memberAdmitted",EventType.MemberNameChangedInWaitingRoom="memberNameChangedInWaitingRoom",EventType.MyWaitingRoomStatusChanged="myWaitingRoomStatusChanged",EventType.WaitingRoomInfoUpdated="waitingRoomInfoUpdated",EventType.WaitingRoomAllMembersKicked="waitingRoomAllMembersKicked",EventType.WaitingRoomOnManagersUpdated="WaitingRoomOnManagersUpdated",EventType.RoomLiveBackgroundInfoChanged="roomLiveBackgroundInfoChanged",EventType.RoomBlacklistStateChanged="onRoomBlacklistStateChanged",EventType.MemberSipInviteStateChanged="onMemberSipInviteStateChanged",EventType.MemberAppInviteStateChanged="onMemberAppInviteStateChanged",EventType.AcceptInvite="acceptInvite",EventType.AcceptInviteJoinSuccess="acceptInviteJoinSuccess",EventType.ActiveSpeakerActiveChanged="OnActiveSpeakerActiveChanged",EventType.ActiveSpeakerListChanged="OnActiveSpeakerListChanged",EventType.onSessionMessageReceived="onSessionMessageReceived",EventType.onSessionMessageRecentChanged="onSessionMessageRecentChanged",EventType.OnMeetingInviteStatusChange="onMeetingInviteStatusChanged",EventType.OnMeetingInvite="onMeetingInvite",EventType.onSessionMessageDeleted="onSessionMessageDeleted",EventType.OnDeleteAllSessionMessage="onDeleteAllSessionMessage",EventType.onInterpretationSettingChange="onInterpretationSettingChange",EventType.ChangeDeviceFromSetting="changeDeviceFromSetting",EventType.OnPrivateChatMemberIdSelected="onPrivateChatMemberIdSelected",EventType.OnScheduledMeetingPageModeChanged="onScheduledMeetingPageModeChanged",EventType.OnHistoryMeetingPageModeChanged="onHistoryMeetingPageModeChanged",EventType.RoomAnnotationEnableChanged="onRoomAnnotationEnableChanged",EventType.RoomAnnotationWebJsBridge="roomAnnotationWebJsBridge",EventType.AuthEvent="AuthEvent",EventType.RtcScreenShareVideoResize="rtcScreenShareVideoResize",EventType.RoomMaxMembersChanged="roomMaxMembersChanged",EventType.ReceiveCaptionMessages="receiveCaptionMessages",EventType.CaptionStateChanged="captionStateChanged",EventType.OnInterpreterLeaveAll="onInterpreterLeaveAll",EventType.OnAccessDenied="onAccessDenied",EventType.OnStartPlayMedia="onStartPlayMedia",EventType.OnInterpreterLeave="onInterpreterLeave",EventType.MyInterpreterRemoved="MyInterpreterRemoved",EventType.RtcChannelDisconnect="RtcChannelDisconnect",EventType.OnStopMemberActivities="OnStopMemberActivities",EventType.OnEmoticonsReceived="OnEmoticonsReceived",exports.MeetingEventType=void 0,MeetingEventType=exports.MeetingEventType||(exports.MeetingEventType={}),MeetingEventType.rtcChannelError="meetingRtcChannelError",MeetingEventType.needShowRecordTip="needShowRecordTip",MeetingEventType.leaveOrEndRoom="leaveOrEndRoom",MeetingEventType.noCameraPermission="noCameraPermission",MeetingEventType.noMicPermission="noMicPermission",MeetingEventType.changeMemberListTab="changeMemberListTab",MeetingEventType.waitingRoomMemberListChange="waitingRoomMemberListChange",MeetingEventType.rejoinAfterAdmittedToRoom="rejoinAfterAdmittedToRoom",MeetingEventType.updateWaitingRoomUnReadCount="updateWaitingRoomUnReadCount",MeetingEventType.updateMeetingInfo="updateMeetingInfo",MeetingEventType.openCaption="openCaption",MeetingEventType.openTranscriptionWindow="openTranscriptionWindow",MeetingEventType.transcriptionMsgCountChange="transcriptionMsgCountChange",exports.UserEventType=void 0,UserEventType=exports.UserEventType||(exports.UserEventType={}),UserEventType.Login="login",UserEventType.Logout="logout",UserEventType.LoginWithPassword="loginWithPassword",UserEventType.CreateMeeting="createMeeting",UserEventType.JoinMeeting="joinMeeting",UserEventType.GuestJoinMeeting="guestJoinMeeting",UserEventType.AnonymousJoinMeeting="anonymousJoinMeeting",UserEventType.SetLeaveCallback="setLeaveCallback",UserEventType.onMeetingStatusChanged="onMeetingStatusChanged",UserEventType.RejoinMeeting="rejoinMeeting",UserEventType.JoinOtherMeeting="joinOtherMeeting",UserEventType.CancelJoin="cancelJoin",UserEventType.SetScreenSharingSourceId="setScreenSharingSourceId",UserEventType.EndMeeting="endMeeting",UserEventType.LeaveMeeting="leaveMeeting",UserEventType.UpdateMeetingInfo="updateMeetingInfo",UserEventType.GetReducerMeetingInfo="getReducerMeetingInfo",UserEventType.OnScreenSharingStatusChange="onScreenSharingStatusChange",UserEventType.UpdateInjectedMenuItem="updateInjectedMenuItem",UserEventType.OnInjectedMenuItemClick="onInjectedMenuItemClick",UserEventType.OpenSettingsWindow="openSettingsWindow",UserEventType.OpenPluginWindow="openPluginWindow",UserEventType.OpenFeedbackWindow="OpenFeedbackWindow",UserEventType.OpenChatWindow="openChatWindow",UserEventType.StopWhiteboard="StopWhiteboard",UserEventType.StopSharingComputerSound="stopSharingComputerSound",exports.memberAction=void 0,memberAction=exports.memberAction||(exports.memberAction={}),memberAction[memberAction.muteAudio=51]="muteAudio",memberAction[memberAction.unmuteAudio=56]="unmuteAudio",memberAction[memberAction.muteVideo=50]="muteVideo",memberAction[memberAction.unmuteVideo=55]="unmuteVideo",memberAction[memberAction.muteScreen=52]="muteScreen",memberAction[memberAction.unmuteScreen=57]="unmuteScreen",memberAction[memberAction.handsUp=58]="handsUp",memberAction[memberAction.handsDown=59]="handsDown",memberAction[memberAction.openWhiteShare=60]="openWhiteShare",memberAction[memberAction.closeWhiteShare=61]="closeWhiteShare",memberAction[memberAction.shareWhiteShare=62]="shareWhiteShare",memberAction[memberAction.cancelShareWhiteShare=63]="cancelShareWhiteShare",memberAction[memberAction.pinView=67]="pinView",memberAction[memberAction.unpinView=68]="unpinView",memberAction[memberAction.modifyMeetingNickName=104]="modifyMeetingNickName",memberAction[memberAction.takeBackTheHost=105]="takeBackTheHost",memberAction[memberAction.privateChat=106]="privateChat",exports.SecurityItem=void 0,SecurityItem=exports.SecurityItem||(exports.SecurityItem={}),SecurityItem.screenSharePermission="screenSharePermission",SecurityItem.unmuteAudioBySelfPermission="unmuteAudioBySelfPermission",SecurityItem.unmuteVideoBySelfPermission="unmuteVideoBySelfPermission",SecurityItem.updateNicknamePermission="updateNicknamePermission",SecurityItem.whiteboardPermission="whiteboardPermission",SecurityItem.localRecordPermission="localRecordPermission",SecurityItem.annotationPermission="annotationPermission",exports.MeetingSecurityCtrlValue=void 0,MeetingSecurityCtrlValue=exports.MeetingSecurityCtrlValue||(exports.MeetingSecurityCtrlValue={}),MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.ANNOTATION_DISABLE=1]="ANNOTATION_DISABLE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.SCREEN_SHARE_DISABLE=2]="SCREEN_SHARE_DISABLE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.WHILE_BOARD_SHARE_DISABLE=4]="WHILE_BOARD_SHARE_DISABLE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.EDIT_NAME_DISABLE=8]="EDIT_NAME_DISABLE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.AUDIO_OFF=16]="AUDIO_OFF",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.AUDIO_NOT_ALLOW_SELF_ON=32]="AUDIO_NOT_ALLOW_SELF_ON",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.VIDEO_OFF=64]="VIDEO_OFF",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.VIDEO_NOT_ALLOW_SELF_ON=128]="VIDEO_NOT_ALLOW_SELF_ON",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.EMOJI_RESP_DISABLE=256]="EMOJI_RESP_DISABLE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.LOCAL_RECORD_DISABLE=512]="LOCAL_RECORD_DISABLE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.PLAY_SOUND=1024]="PLAY_SOUND",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.AVATAR_HIDE=2048]="AVATAR_HIDE",MeetingSecurityCtrlValue[MeetingSecurityCtrlValue.SMART_SUMMARY=4096]="SMART_SUMMARY",exports.SecurityCtrlEnum=void 0,SecurityCtrlEnum=exports.SecurityCtrlEnum||(exports.SecurityCtrlEnum={}),SecurityCtrlEnum.ANNOTATION_DISABLE="ANNOTATION_DISABLE",SecurityCtrlEnum.SCREEN_SHARE_DISABLE="SCREEN_SHARE_DISABLE",SecurityCtrlEnum.WHILE_BOARD_SHARE_DISABLE="WHILE_BOARD_SHARE_DISABLE",SecurityCtrlEnum.EDIT_NAME_DISABLE="EDIT_NAME_DISABLE",SecurityCtrlEnum.AUDIO_OFF="AUDIO_OFF",SecurityCtrlEnum.AUDIO_NOT_ALLOW_SELF_ON="AUDIO_NOT_ALLOW_SELF_ON",SecurityCtrlEnum.VIDEO_OFF="VIDEO_OFF",SecurityCtrlEnum.VIDEO_NOT_ALLOW_SELF_ON="VIDEO_NOT_ALLOW_SELF_ON",SecurityCtrlEnum.EMOJI_RESP_DISABLE="EMOJI_RESP_DISABLE",SecurityCtrlEnum.LOCAL_RECORD_DISABLE="LOCAL_RECORD_DISABLE",SecurityCtrlEnum.PLAY_SOUND="PLAY_SOUND",SecurityCtrlEnum.AVATAR_HIDE="AVATAR_HIDE",SecurityCtrlEnum.SMART_SUMMARY="SMART_SUMMARY",exports.hostAction=void 0,hostAction=exports.hostAction||(exports.hostAction={}),hostAction[hostAction.remove=0]="remove",hostAction[hostAction.muteMemberVideo=10]="muteMemberVideo",hostAction[hostAction.muteMemberAudio=11]="muteMemberAudio",hostAction[hostAction.muteAllAudio=12]="muteAllAudio",hostAction[hostAction.lockMeeting=13]="lockMeeting",hostAction[hostAction.muteAllVideo=14]="muteAllVideo",hostAction[hostAction.unmuteMemberVideo=15]="unmuteMemberVideo",hostAction[hostAction.unmuteMemberAudio=16]="unmuteMemberAudio",hostAction[hostAction.unmuteAllAudio=17]="unmuteAllAudio",hostAction[hostAction.unlockMeeting=18]="unlockMeeting",hostAction[hostAction.unmuteAllVideo=19]="unmuteAllVideo",hostAction[hostAction.muteVideoAndAudio=20]="muteVideoAndAudio",hostAction[hostAction.unmuteVideoAndAudio=21]="unmuteVideoAndAudio",hostAction[hostAction.transferHost=22]="transferHost",hostAction[hostAction.setCoHost=23]="setCoHost",hostAction[hostAction.unSetCoHost=9999]="unSetCoHost",hostAction[hostAction.setFocus=30]="setFocus",hostAction[hostAction.unsetFocus=31]="unsetFocus",hostAction[hostAction.forceMuteAllAudio=40]="forceMuteAllAudio",hostAction[hostAction.rejectHandsUp=42]="rejectHandsUp",hostAction[hostAction.forceMuteAllVideo=43]="forceMuteAllVideo",hostAction[hostAction.closeScreenShare=53]="closeScreenShare",hostAction[hostAction.closeAudioShare=54]="closeAudioShare",hostAction[hostAction.openWhiteShare=60]="openWhiteShare",hostAction[hostAction.closeWhiteShare=61]="closeWhiteShare",hostAction[hostAction.moveToWaitingRoom=66]="moveToWaitingRoom",hostAction[hostAction.openWatermark=64]="openWatermark",hostAction[hostAction.closeWatermark=65]="closeWatermark",hostAction[hostAction.changeChatPermission=70]="changeChatPermission",hostAction[hostAction.changeWaitingRoomChatPermission=71]="changeWaitingRoomChatPermission",hostAction[hostAction.changeGuestJoin=72]="changeGuestJoin",hostAction[hostAction.annotationPermission=73]="annotationPermission",hostAction[hostAction.screenSharePermission=74]="screenSharePermission",hostAction[hostAction.unmuteAudioBySelfPermission=75]="unmuteAudioBySelfPermission",hostAction[hostAction.unmuteVideoBySelfPermission=76]="unmuteVideoBySelfPermission",hostAction[hostAction.updateNicknamePermission=77]="updateNicknamePermission",hostAction[hostAction.whiteboardPermission=78]="whiteboardPermission",hostAction[hostAction.localRecordPermission=79]="localRecordPermission",exports.RecordState=void 0,RecordState=exports.RecordState||(exports.RecordState={}),RecordState.NotStart="notStart",RecordState.Recording="recording",RecordState.Starting="starting",RecordState.Stopping="stopping",exports.NEChatPermission=void 0,NEChatPermission=exports.NEChatPermission||(exports.NEChatPermission={}),NEChatPermission[NEChatPermission.FREE_CHAT=1]="FREE_CHAT",NEChatPermission[NEChatPermission.PUBLIC_CHAT_ONLY=2]="PUBLIC_CHAT_ONLY",NEChatPermission[NEChatPermission.PRIVATE_CHAT_HOST_ONLY=3]="PRIVATE_CHAT_HOST_ONLY",NEChatPermission[NEChatPermission.NO_CHAT=4]="NO_CHAT",exports.NEWaitingRoomChatPermission=void 0,NEWaitingRoomChatPermission=exports.NEWaitingRoomChatPermission||(exports.NEWaitingRoomChatPermission={}),NEWaitingRoomChatPermission[NEWaitingRoomChatPermission.NO_CHAT=0]="NO_CHAT",NEWaitingRoomChatPermission[NEWaitingRoomChatPermission.PRIVATE_CHAT_HOST_ONLY=1]="PRIVATE_CHAT_HOST_ONLY",exports.WATERMARK_STRATEGY=void 0,WATERMARK_STRATEGY=exports.WATERMARK_STRATEGY||(exports.WATERMARK_STRATEGY={}),WATERMARK_STRATEGY[WATERMARK_STRATEGY.CLOSE=0]="CLOSE",WATERMARK_STRATEGY[WATERMARK_STRATEGY.OPEN=1]="OPEN",WATERMARK_STRATEGY[WATERMARK_STRATEGY.FORCE_OPEN=2]="FORCE_OPEN",exports.WATERMARK_STYLE=void 0,WATERMARK_STYLE=exports.WATERMARK_STYLE||(exports.WATERMARK_STYLE={}),WATERMARK_STYLE[WATERMARK_STYLE.SINGLE=1]="SINGLE",WATERMARK_STYLE[WATERMARK_STYLE.MULTI=2]="MULTI",exports.ActionType=void 0,ActionType=exports.ActionType||(exports.ActionType={}),ActionType.UPDATE_GLOBAL_CONFIG="updateGlobalConfig",ActionType.UPDATE_NAME="updateName",ActionType.RESET_NAME="resetName",ActionType.UPDATE_MEMBER="updateMember",ActionType.RESET_MEMBER="resetMember",ActionType.UPDATE_MEMBER_PROPERTIES="updateMemberProperties",ActionType.DELETE_MEMBER_PROPERTIES="deleteMemberProperties",ActionType.ADD_MEMBER="addMember",ActionType.REMOVE_MEMBER="removeMember",ActionType.UPDATE_MEETING_INFO="updateMeetingInfo",ActionType.SET_MEETING="setMeeting",ActionType.RESET_MEETING="resetMeeting",ActionType.JOIN_LOADING="joinLoading",ActionType.WAITING_ROOM_ADD_MEMBER="waitingRoomAddMember",ActionType.WAITING_ROOM_REMOVE_MEMBER="waitingRoomRemoveMember",ActionType.WAITING_ROOM_UPDATE_MEMBER="waitingRoomUpdateMember",ActionType.WAITING_ROOM_UPDATE_INFO="waitingRoomUpdateInfo",ActionType.WAITING_ROOM_SET_MEMBER_LIST="waitingRoomSetMemberList",ActionType.WAITING_ROOM_ADD_MEMBER_LIST="waitingRoomAddMemberList",ActionType.SIP_ADD_MEMBER="sipAddMember",ActionType.SIP_REMOVE_MEMBER="sipRemoveMember",ActionType.SIP_UPDATE_MEMBER="sipUpdateMember",ActionType.SIP_RESET_MEMBER="sipResetMember",exports.BrowserType=void 0,BrowserType=exports.BrowserType||(exports.BrowserType={}),BrowserType.WX="WX",BrowserType.UC="UC",BrowserType.QQ="QQ",BrowserType.UNKNOWN="unknown",BrowserType.OTHER="other",exports.LoginType=void 0,LoginType=exports.LoginType||(exports.LoginType={}),LoginType[LoginType.LoginByToken=1]="LoginByToken",LoginType[LoginType.LoginByPassword=2]="LoginByPassword",exports.MeetingErrorCode=void 0,MeetingErrorCode=exports.MeetingErrorCode||(exports.MeetingErrorCode={}),MeetingErrorCode[MeetingErrorCode.MeetingNumIncorrect=-5]="MeetingNumIncorrect",MeetingErrorCode[MeetingErrorCode.ReuseIMError=112001]="ReuseIMError",MeetingErrorCode[MeetingErrorCode.RtcNetworkError=10002]="RtcNetworkError",MeetingErrorCode[MeetingErrorCode.NoPermission=10212]="NoPermission",MeetingErrorCode[MeetingErrorCode.RepeatJoinRtc=30004]="RepeatJoinRtc",exports.LayoutTypeEnum=void 0,LayoutTypeEnum=exports.LayoutTypeEnum||(exports.LayoutTypeEnum={}),LayoutTypeEnum.Gallery="gallery",LayoutTypeEnum.Speaker="speaker",exports.NEMenuIDs=void 0,NEMenuIDs=exports.NEMenuIDs||(exports.NEMenuIDs={}),NEMenuIDs[NEMenuIDs.mic=0]="mic",NEMenuIDs[NEMenuIDs.camera=1]="camera",NEMenuIDs[NEMenuIDs.screenShare=2]="screenShare",NEMenuIDs[NEMenuIDs.participants=3]="participants",NEMenuIDs[NEMenuIDs.manageParticipants=4]="manageParticipants",NEMenuIDs[NEMenuIDs.gallery=5]="gallery",NEMenuIDs[NEMenuIDs.invite=20]="invite",NEMenuIDs[NEMenuIDs.chat=21]="chat",NEMenuIDs[NEMenuIDs.whiteBoard=22]="whiteBoard",NEMenuIDs[NEMenuIDs.myVideoControl=23]="myVideoControl",NEMenuIDs[NEMenuIDs.sip=24]="sip",NEMenuIDs[NEMenuIDs.live=25]="live",NEMenuIDs[NEMenuIDs.security=26]="security",NEMenuIDs[NEMenuIDs.record=27]="record",NEMenuIDs[NEMenuIDs.setting=28]="setting",NEMenuIDs[NEMenuIDs.notification=29]="notification",NEMenuIDs[NEMenuIDs.interpretation=31]="interpretation",NEMenuIDs[NEMenuIDs.annotation=30]="annotation",NEMenuIDs[NEMenuIDs.caption=32]="caption",NEMenuIDs[NEMenuIDs.transcription=33]="transcription",NEMenuIDs[NEMenuIDs.feedback=34]="feedback",NEMenuIDs[NEMenuIDs.emoticons=35]="emoticons",exports.SingleMenuIds=void 0,SingleMenuIds=exports.SingleMenuIds||(exports.SingleMenuIds={}),SingleMenuIds[SingleMenuIds.participants=3]="participants",SingleMenuIds[SingleMenuIds.manageParticipants=4]="manageParticipants",SingleMenuIds[SingleMenuIds.invite=20]="invite",SingleMenuIds[SingleMenuIds.chat=21]="chat",exports.MultipleMenuIds=void 0,MultipleMenuIds=exports.MultipleMenuIds||(exports.MultipleMenuIds={}),MultipleMenuIds[MultipleMenuIds.mic=0]="mic",MultipleMenuIds[MultipleMenuIds.camera=1]="camera",MultipleMenuIds[MultipleMenuIds.screenShare=2]="screenShare",MultipleMenuIds[MultipleMenuIds.gallery=5]="gallery",MultipleMenuIds[MultipleMenuIds.whiteBoard=22]="whiteBoard",exports.NECloudRecordStrategyType=void 0,NECloudRecordStrategyType=exports.NECloudRecordStrategyType||(exports.NECloudRecordStrategyType={}),NECloudRecordStrategyType[NECloudRecordStrategyType.HOST_JOIN=0]="HOST_JOIN",NECloudRecordStrategyType[NECloudRecordStrategyType.MEMBER_JOIN=1]="MEMBER_JOIN",exports.NEChatMessageNotificationType=void 0,function(e){e[e.barrage=0]="barrage",e[e.bubble=1]="bubble",e[e.noRemind=2]="noRemind";}(exports.NEChatMessageNotificationType||(exports.NEChatMessageNotificationType={})),exports.StaticReportType=void 0,StaticReportType=exports.StaticReportType||(exports.StaticReportType={}),StaticReportType.MeetingKit_login="MeetingKit_login",StaticReportType.Account_info="account_info",StaticReportType.Roomkit_login="roomkit_login",StaticReportType.MeetingKit_start_meeting="MeetingKit_start_meeting",StaticReportType.MeetingKit_join_meeting="MeetingKit_join_meeting",StaticReportType.Create_room="create_room",StaticReportType.Join_room="join_room",StaticReportType.Join_rtc="join_rtc",StaticReportType.Server_join_rtc="server_join_rtc",StaticReportType.Anonymous_login="anonymous_login",StaticReportType.Meeting_info="meeting_info",StaticReportType.MeetingKit_meeting_end="MeetingKit_meeting_end",StaticReportType.MeetingKit_access_denied="MeetingKit_access_denied";const CustomButtonIdBoundaryValue=100;var NERoomBeautyEffectType,tagNERoomScreenCaptureStatus,tagNERoomRtcAudioProfileType,tagNERoomRtcAudioScenarioType,ClientType,MeetingRepeatType,MeetingEndType,MeetingRepeatCustomStepUnit,MeetingRepeatFrequencyType,NERoomSipDeviceInviteProtocolType;exports.NERoomBeautyEffectType=void 0,NERoomBeautyEffectType=exports.NERoomBeautyEffectType||(exports.NERoomBeautyEffectType={}),NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyWhiteTeeth=0]="kNERoomBeautyWhiteTeeth",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyLightEye=1]="kNERoomBeautyLightEye",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyWhiten=2]="kNERoomBeautyWhiten",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautySmooth=3]="kNERoomBeautySmooth",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautySmallNose=4]="kNERoomBeautySmallNose",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyEyeDis=5]="kNERoomBeautyEyeDis",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyEyeAngle=6]="kNERoomBeautyEyeAngle",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyMouth=7]="kNERoomBeautyMouth",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomcBeautyBigEye=8]="kNERoomcBeautyBigEye",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautySmallFace=9]="kNERoomBeautySmallFace",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyJaw=10]="kNERoomBeautyJaw",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyThinFace=11]="kNERoomBeautyThinFace",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyFaceRuddy=12]="kNERoomBeautyFaceRuddy",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyLongNose=13]="kNERoomBeautyLongNose",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyRenZhong=14]="kNERoomBeautyRenZhong",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyMouthAngle=15]="kNERoomBeautyMouthAngle",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyRoundEye=16]="kNERoomBeautyRoundEye",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyOpenEyeAngle=17]="kNERoomBeautyOpenEyeAngle",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyVFace=18]="kNERoomBeautyVFace",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyThinUnderjaw=19]="kNERoomBeautyThinUnderjaw",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyNarrowFace=20]="kNERoomBeautyNarrowFace",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyCheekBone=21]="kNERoomBeautyCheekBone",NERoomBeautyEffectType[NERoomBeautyEffectType.kNERoomBeautyFaceSharpen=22]="kNERoomBeautyFaceSharpen",exports.tagNERoomScreenCaptureStatus=void 0,tagNERoomScreenCaptureStatus=exports.tagNERoomScreenCaptureStatus||(exports.tagNERoomScreenCaptureStatus={}),tagNERoomScreenCaptureStatus[tagNERoomScreenCaptureStatus.kNERoomScreenCaptureStatusStart=1]="kNERoomScreenCaptureStatusStart",tagNERoomScreenCaptureStatus[tagNERoomScreenCaptureStatus.kNERoomScreenCaptureStatusPause=2]="kNERoomScreenCaptureStatusPause",tagNERoomScreenCaptureStatus[tagNERoomScreenCaptureStatus.kNERoomScreenCaptureStatusResume=3]="kNERoomScreenCaptureStatusResume",tagNERoomScreenCaptureStatus[tagNERoomScreenCaptureStatus.kNERoomScreenCaptureStatusStop=4]="kNERoomScreenCaptureStatusStop",tagNERoomScreenCaptureStatus[tagNERoomScreenCaptureStatus.kNERoomScreenCaptureStatusCovered=5]="kNERoomScreenCaptureStatusCovered",exports.tagNERoomRtcAudioProfileType=void 0,tagNERoomRtcAudioProfileType=exports.tagNERoomRtcAudioProfileType||(exports.tagNERoomRtcAudioProfileType={}),tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileDefault=0]="kNEAudioProfileDefault",tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileStandard=1]="kNEAudioProfileStandard",tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileStandardExtend=2]="kNEAudioProfileStandardExtend",tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileMiddleQuality=3]="kNEAudioProfileMiddleQuality",tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileMiddleQualityStereo=4]="kNEAudioProfileMiddleQualityStereo",tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileHighQuality=5]="kNEAudioProfileHighQuality",tagNERoomRtcAudioProfileType[tagNERoomRtcAudioProfileType.kNEAudioProfileHighQualityStereo=6]="kNEAudioProfileHighQualityStereo",exports.tagNERoomRtcAudioScenarioType=void 0,tagNERoomRtcAudioScenarioType=exports.tagNERoomRtcAudioScenarioType||(exports.tagNERoomRtcAudioScenarioType={}),tagNERoomRtcAudioScenarioType[tagNERoomRtcAudioScenarioType.kNEAudioScenarioDefault=0]="kNEAudioScenarioDefault",tagNERoomRtcAudioScenarioType[tagNERoomRtcAudioScenarioType.kNEAudioScenarioSpeech=1]="kNEAudioScenarioSpeech",tagNERoomRtcAudioScenarioType[tagNERoomRtcAudioScenarioType.kNEAudioScenarioMusic=2]="kNEAudioScenarioMusic",exports.UpdateType=void 0,function(e){e[e.noUpdate=0]="noUpdate",e[e.normalUpdate=1]="normalUpdate",e[e.forceUpdate=2]="forceUpdate";}(exports.UpdateType||(exports.UpdateType={})),exports.ClientType=void 0,ClientType=exports.ClientType||(exports.ClientType={}),ClientType[ClientType.TV=1]="TV",ClientType[ClientType.iOS=2]="iOS",ClientType[ClientType.AOS=3]="AOS",ClientType[ClientType.Windows=4]="Windows",ClientType[ClientType.MAC=5]="MAC",ClientType[ClientType.web=6]="web",ClientType[ClientType.RoomsWindows=7]="RoomsWindows",ClientType[ClientType.RoomsMac=8]="RoomsMac",ClientType[ClientType.ElectronWindows=15]="ElectronWindows",ClientType[ClientType.ElectronMac=16]="ElectronMac",ClientType[ClientType.RoomsAndroid=20]="RoomsAndroid",exports.MeetingRepeatType=void 0,MeetingRepeatType=exports.MeetingRepeatType||(exports.MeetingRepeatType={}),MeetingRepeatType[MeetingRepeatType.NoRepeat=1]="NoRepeat",MeetingRepeatType[MeetingRepeatType.Everyday=2]="Everyday",MeetingRepeatType[MeetingRepeatType.EveryWeekday=3]="EveryWeekday",MeetingRepeatType[MeetingRepeatType.EveryWeek=4]="EveryWeek",MeetingRepeatType[MeetingRepeatType.EveryTwoWeek=5]="EveryTwoWeek",MeetingRepeatType[MeetingRepeatType.EveryMonth=6]="EveryMonth",MeetingRepeatType[MeetingRepeatType.Custom=7]="Custom",exports.MeetingEndType=void 0,MeetingEndType=exports.MeetingEndType||(exports.MeetingEndType={}),MeetingEndType[MeetingEndType.Day=1]="Day",MeetingEndType[MeetingEndType.Times=2]="Times",exports.MeetingRepeatCustomStepUnit=void 0,MeetingRepeatCustomStepUnit=exports.MeetingRepeatCustomStepUnit||(exports.MeetingRepeatCustomStepUnit={}),MeetingRepeatCustomStepUnit[MeetingRepeatCustomStepUnit.Day=1]="Day",MeetingRepeatCustomStepUnit[MeetingRepeatCustomStepUnit.Week=2]="Week",MeetingRepeatCustomStepUnit[MeetingRepeatCustomStepUnit.MonthOfDay=3]="MonthOfDay",MeetingRepeatCustomStepUnit[MeetingRepeatCustomStepUnit.MonthOfWeek=4]="MonthOfWeek",exports.MeetingRepeatFrequencyType=void 0,MeetingRepeatFrequencyType=exports.MeetingRepeatFrequencyType||(exports.MeetingRepeatFrequencyType={}),MeetingRepeatFrequencyType[MeetingRepeatFrequencyType.Day=1]="Day",MeetingRepeatFrequencyType[MeetingRepeatFrequencyType.Week=2]="Week",MeetingRepeatFrequencyType[MeetingRepeatFrequencyType.Month=3]="Month",function(e){e[e.IP=1]="IP",e[e.H323=2]="H323";}(NERoomSipDeviceInviteProtocolType||(NERoomSipDeviceInviteProtocolType={}));const MODULE_NAME$4="NEMeetingInviteService",LISTENER_CHANNEL$4=`NEMeetingKitListener::${MODULE_NAME$4}`;let NEMeetingInviteService$1=class{constructor(e){Object.defineProperty(this,"_neMeeting",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_globalConfig",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_meetingIdToMeetingNumMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"_roomUuidToMeetingNumMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this._neMeeting=e.neMeeting,this._event=e.eventEmitter,this._initListener();}acceptInvite(e,t){return __awaiter$3(this,void 0,void 0,(function*(){try{const n=this._getJoinParamSchema({meetingNum:z$3.string()}),r=this._getJoinOptsSchema();n.parse(e,{path:["param"]}),r.parse(t,{path:["opts"]});}catch(e){throw g$1(void 0,e.message)}const n=this._joinMeetingOptionsToJoinOptions(e,t);return new Promise(((e,t)=>{this._neMeeting.eventEmitter.emit(exports.EventType.AcceptInvite,n,(r=>{r?(console.log("acceptInvite error",r),t(r)):(this._neMeeting.eventEmitter.emit(exports.EventType.AcceptInviteJoinSuccess,n.nickName),e(m$4(void 0)));}));}))}))}rejectInvite(e){return __awaiter$3(this,void 0,void 0,(function*(){var t,n;try{z$3.number().parse(e,{path:["meetingId"]});}catch(e){throw p$4(void 0,e.message)}const r=this._meetingIdToMeetingNumMap.get(e),i=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.data.roomUuid;if(i)return null===(n=this._neMeeting)||void 0===n?void 0:n.rejectInvite(i).then((()=>m$4(void 0)));throw g$1(void 0,"roomUuid not found")}))}callOutRoomSystem(e){return __awaiter$3(this,void 0,void 0,(function*(){var t;if(this._neMeeting.sipController){const n=e.protocol===NERoomSipDeviceInviteProtocolType.IP?A$2.SIP:A$2.H323,r=Object.assign(Object.assign({},e),{protocol:n});return null===(t=this._neMeeting.sipController)||void 0===t?void 0:t.callOutRoomSystem(r).then((e=>m$4(e)))}return p$4(void 0,"sipController not found")}))}addMeetingInviteStatusListener(e){this._listeners.push(e);}removeMeetingInviteStatusListener(e){this._listeners=this._listeners.filter((t=>t!==e));}on(e,t){t&&this._event.on(e,t);}off(e,t){t?this._event.off(e,t):this._event.off(e);}destroy(){this._meetingIdToMeetingNumMap.clear(),this._roomUuidToMeetingNumMap.clear(),this._event.removeAllListeners();}_handleReceiveSessionMessage(e){var t,n,r,i,o,a,s,c;this._globalConfig||(this._globalConfig=JSON.parse(localStorage.getItem("nemeeting-global-config")||"{}"));const l=null===(t=this._globalConfig)||void 0===t?void 0:t.appConfig.notifySenderAccid;if(l&&(null==e?void 0:e.sessionId)===l){if(e.data){const t="[object Object]"===Object.prototype.toString.call(e.data)?e.data:JSON.parse(e.data);e.data=t;}if("MEETING.INVITE"===(null===(r=null===(n=e.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.type)){const t=null===(i=e.data)||void 0===i?void 0:i.data;null===(a=null===(o=e.data)||void 0===o?void 0:o.data)||void 0===a||a.timestamp,t.inviteInfo&&(t.inviteInfo.timestamp=null===(c=null===(s=e.data)||void 0===s?void 0:s.data)||void 0===c?void 0:c.timestamp,t.inviteInfo.inviterAvatar=t.inviteInfo.inviterIcon,t.inviteInfo.preMeetingInvitation=t.inviteInfo.outOfMeeting,t.inviteInfo.meetingNum=t.meetingNum),this._event.emit(exports.EventType.OnMeetingInviteStatusChange,exports.NEMeetingInviteStatus.calling,t.meetingId,t.inviteInfo,e),this._emitInviteInfo(exports.NEMeetingInviteStatus.calling,e),this._meetingIdToMeetingNumMap.set(t.meetingId,e),this._roomUuidToMeetingNumMap.set(t.roomUuid,e);}}}_handleMeetingInviteStatusChanged(e){var t,n;if(82===e.commandId){const{member:n,roomUuid:r}=e.data,i=this._roomUuidToMeetingNumMap.get(r),o=null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.data;if(!o||n.subState!==exports.NEMeetingInviteStatus.calling)return void console.log("roomUuid not found",o,n.subState);this._event.emit(exports.EventType.OnMeetingInviteStatusChange,n.subState,o.meetingId,o.inviteInfo,i),this._emitInviteInfo(n.subState,i);}else if([33,51,30].includes(e.commandId)){const t=this._roomUuidToMeetingNumMap.get(e.roomUuid),r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.data;if(r){const n=33===e.commandId||30===e.commandId?exports.NEMeetingInviteStatus.removed:exports.NEMeetingInviteStatus.canceled;this._event.emit(exports.EventType.OnMeetingInviteStatusChange,n,r.meetingId,r),this._emitInviteInfo(n,t);}}}_emitInviteInfo(e,t){var n,r,i,o,a,s;const c=null===(n=t.data)||void 0===n?void 0:n.data;null===(i=null===(r=t.data)||void 0===r?void 0:r.data)||void 0===i||i.timestamp,c.inviteInfo&&(c.inviteInfo.timestamp=null===(a=null===(o=t.data)||void 0===o?void 0:o.data)||void 0===a?void 0:a.timestamp,c.inviteInfo.inviterAvatar=c.inviteInfo.inviterIcon,c.inviteInfo.preMeetingInvitation=c.inviteInfo.outOfMeeting,c.inviteInfo.meetingNum=c.meetingNum),this._listeners.forEach((n=>{var r;null===(r=null==n?void 0:n.onMeetingInviteStatusChanged)||void 0===r||r.call(n,e,c.inviteInfo,c.meetingId,Object.assign(Object.assign({},t),{data:"object"==typeof t.data?JSON.stringify(t.data):t.data}));})),null===(s=window.ipcRenderer)||void 0===s||s.send(LISTENER_CHANNEL$4,{module:"NEMeetingInviteService",event:"onMeetingInviteStatusChanged",payload:[e,c.inviteInfo,c.meetingId,Object.assign(Object.assign({},t),{data:"object"==typeof t.data?JSON.stringify(t.data):t.data})]});}_initListener(){this._neMeeting.eventEmitter.on(exports.EventType.onSessionMessageReceived,this._handleReceiveSessionMessage.bind(this)),this._neMeeting.eventEmitter.on(exports.EventType.OnMeetingInviteStatusChange,this._handleMeetingInviteStatusChanged.bind(this));}_joinMeetingOptionsToJoinOptions(e,t){var n;let r;e.encryptionConfig&&(r={encryptionType:"sm4-128-ecb",encryptKey:e.encryptionConfig.encryptKey});return Object.assign(Object.assign({},t),{meetingNum:null!==(n=e.meetingNum)&&void 0!==n?n:"",nickName:e.displayName.trim(),video:!1!==(null==t?void 0:t.noVideo)?2:1,audio:!1!==(null==t?void 0:t.noAudio)?2:1,defaultWindowMode:null==t?void 0:t.defaultWindowMode,noRename:null==t?void 0:t.noRename,memberTag:null==e?void 0:e.tag,password:e.password,showMemberTag:null==t?void 0:t.showMemberTag,muteBtnConfig:{showMuteAllAudio:!(!0===(null==t?void 0:t.noMuteAllAudio)),showUnMuteAllAudio:!(!0===(null==t?void 0:t.noMuteAllAudio)),showMuteAllVideo:!(!0===(null==t?void 0:t.noMuteAllVideo)),showUnMuteAllVideo:!(!0===(null==t?void 0:t.noMuteAllVideo))},showMeetingRemainingTip:null==t?void 0:t.showMeetingRemainingTip,noSip:null==t?void 0:t.noSip,enableUnmuteBySpace:null==t?void 0:t.enableUnmuteBySpace,enableTransparentWhiteboard:null==t?void 0:t.enableTransparentWhiteboard,enableFixedToolbar:null==t?void 0:t.enableFixedToolbar,enableVideoMirror:null==t?void 0:t.enableVideoMirror,showDurationTime:null==t?void 0:t.showMeetingTime,meetingIdDisplayOption:null==t?void 0:t.meetingIdDisplayOption,encryptionConfig:r,showCloudRecordMenuItem:null==t?void 0:t.showCloudRecordMenuItem,showCloudRecordingUI:null==t?void 0:t.showCloudRecordingUI,avatar:e.avatar,watermarkConfig:null==e?void 0:e.watermarkConfig,noNotifyCenter:null==t?void 0:t.noNotifyCenter,noWebApps:null==t?void 0:t.noWebApps,showScreenShareUserVideo:null==t?void 0:t.showScreenShareUserVideo,detectMutedMic:null==t?void 0:t.detectMutedMic})}_getJoinParamSchema(e){return z$3.object(Object.assign({displayName:z$3.string(),avatar:z$3.string().optional(),tag:z$3.string().optional(),password:z$3.string().optional(),encryptionConfig:z$3.object({encryptionType:z$3.string(),encryptKey:z$3.string()}).optional(),watermarkConfig:z$3.object({name:z$3.string().optional(),phone:z$3.string().optional(),email:z$3.string().optional(),jobNumber:z$3.string().optional()}).optional()},e))}_getJoinOptsSchema(){return z$3.object({cloudRecordConfig:z$3.object({enable:z$3.boolean(),recordStrategy:z$3.nativeEnum(exports.NECloudRecordStrategyType)}).optional(),enableWaitingRoom:z$3.boolean().optional(),enableGuestJoin:z$3.boolean().optional(),noMuteAllVideo:z$3.boolean().optional(),noMuteAllAudio:z$3.boolean().optional(),noVideo:z$3.boolean().optional(),noAudio:z$3.boolean().optional(),showMeetingTime:z$3.boolean().optional(),enableSpeakerSpotlight:z$3.boolean().optional(),enableShowNotYetJoinedMembers:z$3.boolean().optional(),noInvite:z$3.boolean().optional(),noSip:z$3.boolean().optional(),noChat:z$3.boolean().optional(),noSwitchAudioMode:z$3.boolean().optional(),noWhiteBoard:z$3.boolean().optional(),noRename:z$3.boolean().optional(),noLive:z$3.boolean().optional(),showMeetingRemainingTip:z$3.boolean().optional(),showScreenShareUserVideo:z$3.boolean().optional(),enableTransparentWhiteboard:z$3.boolean().optional(),showFloatingMicrophone:z$3.boolean().optional(),showMemberTag:z$3.boolean().optional(),detectMutedMic:z$3.boolean().optional(),defaultWindowMode:z$3.nativeEnum(NEWindowMode).optional(),meetingIdDisplayOption:z$3.nativeEnum(exports.NEMeetingIdDisplayOption).optional(),joinTimeout:z$3.number().optional(),showCloudRecordMenuItem:z$3.boolean().optional(),showCloudRecordingUI:z$3.boolean().optional(),noNotifyCenter:z$3.boolean().optional(),noWebApps:z$3.boolean().optional()}).optional()}};const errorCodeMap={10461:"LBS: 主线路请求发生错误",10001:"errorCodes.10001",10119:"errorCodes.10119",10229:"errorCodes.10229",10212:"errorCodes.10212"},LOCAL_STORAGE_KEY="ne-meeting-recent-meeting-list",LOCALSTORAGE_USER_INFO="userinfoV2",ACCOUNT_INFO_KEY="__ne_meeting_account_info__",LOCALSTORAGE_MEETING_SETTING="ne-meeting-setting",LOCALSTORAGE_LOGIN_BACK="ne-meeting-loginBackUrl",LOCALSTORAGE_CUSTOM_LANGS="ne-meeting-custom-langs",LANGUAGE_KEY="ne-meeting-language",MAJOR_AUDIO="$majorAudio",MAJOR_DEFAULT_VOLUME=25,PLAYOUT_DEFAULT_VOLUME=70,RECORD_DEFAULT_VOLUME=100,IM_VERSION="10.5.0",RTC_VERSION="5.6.40";var commonjsGlobal$3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}});})),t}var axios$5={exports:{}},bind$5=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function endsWith$1(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n}function toArray$8(e){if(!e)return null;var t=e.length;if(isUndefined$1(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var isTypedArray$1=(TypedArray="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return TypedArray&&e instanceof TypedArray}),TypedArray,utils$A={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$1,isFormData:isFormData$1,isArrayBufferView:isArrayBufferView$1,isString:isString$3,isNumber:isNumber$1,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined:isUndefined$1,isDate:isDate$1,isFile:isFile$1,isBlob:isBlob$1,isFunction:isFunction$2,isStream:isStream$1,isURLSearchParams:isURLSearchParams$1,isStandardBrowserEnv:isStandardBrowserEnv$1,forEach:forEach$1,merge:merge$4,extend:extend$4,trim:trim$3,stripBOM:stripBOM$1,inherits:inherits$1,toFlatObject:toFlatObject$1,kindOf:kindOf$1,kindOfTest:kindOfTest$1,endsWith:endsWith$1,toArray:toArray$8,isTypedArray:isTypedArray$1,isFileList:isFileList$1},utils$z=utils$A;function encode$1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$5=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(utils$z.isURLSearchParams(t))r=t.toString();else {var i=[];utils$z.forEach(t,(function(e,t){null!=e&&(utils$z.isArray(e)?t+="[]":e=[e],utils$z.forEach(e,(function(e){utils$z.isDate(e)?e=e.toISOString():utils$z.isObject(e)&&(e=JSON.stringify(e)),i.push(encode$1(t)+"="+encode$1(e));})));})),r=i.join("&");}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r;}return e},utils$y=utils$A;function InterceptorManager$3(){this.handlers=[];}InterceptorManager$3.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},InterceptorManager$3.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null);},InterceptorManager$3.prototype.forEach=function(e){utils$y.forEach(this.handlers,(function(t){null!==t&&e(t);}));};var InterceptorManager_1$1=InterceptorManager$3,utils$x=utils$A,normalizeHeaderName$3=function(e,t){utils$x.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r]);}));},utils$w=utils$A;function AxiosError$b(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i);}utils$w.inherits(AxiosError$b,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var prototype$1=AxiosError$b.prototype,descriptors$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){descriptors$1[e]={value:e};})),Object.defineProperties(AxiosError$b,descriptors$1),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$b.from=function(e,t,n,r,i,o){var a=Object.create(prototype$1);return utils$w.toFlatObject(e,a,(function(e){return e!==Error.prototype})),AxiosError$b.call(a,e.message,t,n,r,i),a.name=e.name,o&&Object.assign(a,o),a};var AxiosError_1$1=AxiosError$b,transitional$1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},utils$v=utils$A;function toFormData$3(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":utils$v.isDate(e)?e.toISOString():utils$v.isArrayBuffer(e)||utils$v.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(utils$v.isPlainObject(i)||utils$v.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+o);n.push(i),utils$v.forEach(i,(function(n,i){if(!utils$v.isUndefined(n)){var a,s=o?o+"."+i:i;if(n&&!o&&"object"==typeof n)if(utils$v.endsWith(i,"{}"))n=JSON.stringify(n);else if(utils$v.endsWith(i,"[]")&&(a=utils$v.toArray(n)))return void a.forEach((function(e){!utils$v.isUndefined(e)&&t.append(s,r(e));}));e(n,s);}})),n.pop();}else t.append(o,r(i));}(e),t}var toFormData_1$1=toFormData$3,AxiosError$a=AxiosError_1$1,settle$3=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new AxiosError$a("Request failed with status code "+n.status,[AxiosError$a.ERR_BAD_REQUEST,AxiosError$a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n);},utils$u=utils$A,cookies$3=utils$u.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),utils$u.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),utils$u.isString(r)&&a.push("path="+r),utils$u.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ");},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5);}}:{write:function(){},read:function(){return null},remove:function(){}},isAbsoluteURL$3=function(e){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},combineURLs$3=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL$2=isAbsoluteURL$3,combineURLs$2=combineURLs$3,buildFullPath$5=function(e,t){return e&&!isAbsoluteURL$2(t)?combineURLs$2(e,t):t},utils$t=utils$A,ignoreDuplicateOf$1=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],parseHeaders$3=function(e){var t,n,r,i={};return e?(utils$t.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=utils$t.trim(e.substr(0,r)).toLowerCase(),n=utils$t.trim(e.substr(r+1)),t){if(i[t]&&ignoreDuplicateOf$1.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n;}})),i):i},utils$s=utils$A,isURLSameOrigin$3=utils$s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=utils$s.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return !0},AxiosError$9=AxiosError_1$1,utils$r=utils$A;function CanceledError$7(e){AxiosError$9.call(this,null==e?"canceled":e,AxiosError$9.ERR_CANCELED),this.name="CanceledError";}utils$r.inherits(CanceledError$7,AxiosError$9,{__CANCEL__:!0});var CanceledError_1$1=CanceledError$7,parseProtocol$3=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},utils$q=utils$A,settle$2=settle$3,cookies$2=cookies$3,buildURL$4=buildURL$5,buildFullPath$4=buildFullPath$5,parseHeaders$2=parseHeaders$3,isURLSameOrigin$2=isURLSameOrigin$3,transitionalDefaults$3=transitional$1,AxiosError$8=AxiosError_1$1,CanceledError$6=CanceledError_1$1,parseProtocol$2=parseProtocol$3,xhr$1=function(e){return new Promise((function(t,n){var r,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r);}utils$q.isFormData(i)&&utils$q.isStandardBrowserEnv()&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u);}var d=buildFullPath$4(e.baseURL,e.url);function p(){if(c){var r="getAllResponseHeaders"in c?parseHeaders$2(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c};settle$2((function(e){t(e),s();}),(function(e){n(e),s();}),i),c=null;}}if(c.open(e.method.toUpperCase(),buildURL$4(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p);},c.onabort=function(){c&&(n(new AxiosError$8("Request aborted",AxiosError$8.ECONNABORTED,e,c)),c=null);},c.onerror=function(){n(new AxiosError$8("Network Error",AxiosError$8.ERR_NETWORK,e,c,c)),c=null;},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||transitionalDefaults$3;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new AxiosError$8(t,r.clarifyTimeoutError?AxiosError$8.ETIMEDOUT:AxiosError$8.ECONNABORTED,e,c)),c=null;},utils$q.isStandardBrowserEnv()){var m=(e.withCredentials||isURLSameOrigin$2(d))&&e.xsrfCookieName?cookies$2.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m);}"setRequestHeader"in c&&utils$q.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e);})),utils$q.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){c&&(n(!e||e&&e.type?new CanceledError$6:e),c.abort(),c=null);},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),i||(i=null);var h=parseProtocol$2(d);h&&-1===["http","https","file"].indexOf(h)?n(new AxiosError$8("Unsupported protocol "+h+":",AxiosError$8.ERR_BAD_REQUEST,e)):c.send(i);}))},_null$1=null,utils$p=utils$A,normalizeHeaderName$2=normalizeHeaderName$3,AxiosError$7=AxiosError_1$1,transitionalDefaults$2=transitional$1,toFormData$2=toFormData_1$1,DEFAULT_CONTENT_TYPE$1={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset$1(e,t){!utils$p.isUndefined(e)&&utils$p.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}function getDefaultAdapter$1(){var e;return ("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=xhr$1),e}function stringifySafely$1(e,t,n){if(utils$p.isString(e))try{return (t||JSON.parse)(e),utils$p.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return (0, JSON.stringify)(e)}var defaults$9={transitional:transitionalDefaults$2,adapter:getDefaultAdapter$1(),transformRequest:[function(e,t){if(normalizeHeaderName$2(t,"Accept"),normalizeHeaderName$2(t,"Content-Type"),utils$p.isFormData(e)||utils$p.isArrayBuffer(e)||utils$p.isBuffer(e)||utils$p.isStream(e)||utils$p.isFile(e)||utils$p.isBlob(e))return e;if(utils$p.isArrayBufferView(e))return e.buffer;if(utils$p.isURLSearchParams(e))return setContentTypeIfUnset$1(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=utils$p.isObject(e),i=t&&t["Content-Type"];if((n=utils$p.isFileList(e))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return toFormData$2(n?{"files[]":e}:e,o&&new o)}return r||"application/json"===i?(setContentTypeIfUnset$1(t,"application/json"),stringifySafely$1(e)):e}],transformResponse:[function(e){var t=this.transitional||defaults$9.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&utils$p.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw AxiosError$7.from(e,AxiosError$7.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_null$1},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$p.forEach(["delete","get","head"],(function(e){defaults$9.headers[e]={};})),utils$p.forEach(["post","put","patch"],(function(e){defaults$9.headers[e]=utils$p.merge(DEFAULT_CONTENT_TYPE$1);}));var defaults_1$1=defaults$9,utils$o=utils$A,defaults$8=defaults_1$1,transformData$3=function(e,t,n){var r=this||defaults$8;return utils$o.forEach(n,(function(n){e=n.call(r,e,t);})),e},isCancel$3=function(e){return !(!e||!e.__CANCEL__)},utils$n=utils$A,transformData$2=transformData$3,isCancel$2=isCancel$3,defaults$7=defaults_1$1,CanceledError$5=CanceledError_1$1;function throwIfCancellationRequested$1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$5}var dispatchRequest$3=function(e){return throwIfCancellationRequested$1(e),e.headers=e.headers||{},e.data=transformData$2.call(e,e.data,e.headers,e.transformRequest),e.headers=utils$n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),utils$n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t];})),(e.adapter||defaults$7.adapter)(e).then((function(t){return throwIfCancellationRequested$1(e),t.data=transformData$2.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return isCancel$2(t)||(throwIfCancellationRequested$1(e),t&&t.response&&(t.response.data=transformData$2.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},utils$m=utils$A,mergeConfig$7=function(e,t){t=t||{};var n={};function r(e,t){return utils$m.isPlainObject(e)&&utils$m.isPlainObject(t)?utils$m.merge(e,t):utils$m.isPlainObject(t)?utils$m.merge({},t):utils$m.isArray(t)?t.slice():t}function i(n){return utils$m.isUndefined(t[n])?utils$m.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!utils$m.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return utils$m.isUndefined(t[n])?utils$m.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return utils$m.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,r=t(e);utils$m.isUndefined(r)&&t!==s||(n[e]=r);})),n},data$1={version:"0.27.2"},VERSION$1=data$1.version,AxiosError$6=AxiosError_1$1,validators$4={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){validators$4[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e};}));var deprecatedWarnings$1={};function assertOptions$1(e,t,n){if("object"!=typeof e)throw new AxiosError$6("options must be an object",AxiosError$6.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new AxiosError$6("option "+o+" must be "+c,AxiosError$6.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new AxiosError$6("Unknown option "+o,AxiosError$6.ERR_BAD_OPTION)}}validators$4.transitional=function(e,t,n){function r(e,t){return "[Axios v"+VERSION$1+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new AxiosError$6(r(i," has been removed"+(t?" in "+t:"")),AxiosError$6.ERR_DEPRECATED);return t&&!deprecatedWarnings$1[i]&&(deprecatedWarnings$1[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var validator$3={assertOptions:assertOptions$1,validators:validators$4},utils$l=utils$A,buildURL$3=buildURL$5,InterceptorManager$2=InterceptorManager_1$1,dispatchRequest$2=dispatchRequest$3,mergeConfig$6=mergeConfig$7,buildFullPath$3=buildFullPath$5,validator$2=validator$3,validators$3=validator$2.validators;function Axios$3(e){this.defaults=e,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2};}Axios$3.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=mergeConfig$6(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&validator$2.assertOptions(n,{silentJSONParsing:validators$3.transitional(validators$3.boolean),forcedJSONParsing:validators$3.transitional(validators$3.boolean),clarifyTimeoutError:validators$3.transitional(validators$3.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected));}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected);})),!i){var s=[dispatchRequest$2,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;r.length;){var l=r.shift(),u=r.shift();try{c=l(c);}catch(e){u(e);break}}try{o=dispatchRequest$2(c);}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},Axios$3.prototype.getUri=function(e){e=mergeConfig$6(this.defaults,e);var t=buildFullPath$3(e.baseURL,e.url);return buildURL$3(t,e.params,e.paramsSerializer)},utils$l.forEach(["delete","get","head","options"],(function(e){Axios$3.prototype[e]=function(t,n){return this.request(mergeConfig$6(n||{},{method:e,url:t,data:(n||{}).data}))};})),utils$l.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(mergeConfig$6(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Axios$3.prototype[e]=t(),Axios$3.prototype[e+"Form"]=t(!0);}));var Axios_1$1=Axios$3,CanceledError$4=CanceledError_1$1;function CancelToken$1(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e;}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return !0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};return !(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function hasLoadedNamespace(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return !1}}):oldI18nextHasLoadedNamespace(e,t,n):(warnOnce("i18n.languages were undefined or empty",t.languages),!0)}var matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=function(e){return htmlEntities[e]},unescape$1=function(e){return e.replace(matchHtmlEntity,unescapeHtmlEntity)};function ownKeys$a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function _objectSpread$8(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};defaultOptions=_objectSpread$8(_objectSpread$8({},defaultOptions),e);}function getDefaults(){return defaultOptions}function setI18n(e){i18nInstance=e;}function getI18n(){return i18nInstance}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=react.exports.useContext(I18nContext)||{},i=r.i18n,o=r.defaultNS,a=n||i||getI18n();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new ReportNamespaces),!a){warnOnce("You will need to pass in an i18next instance by using initReactI18next");var s=function(e,t){return "string"==typeof t?t:t&&"object"===_typeof$1(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},c=[s,{},!1];return c.t=s,c.i18n={},c.ready=!1,c}a.options.react&&void 0!==a.options.react.wait&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=_objectSpread$7(_objectSpread$7(_objectSpread$7({},getDefaults()),a.options.react),t),u=l.useSuspense,d=l.keyPrefix,p=o||a.options&&a.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var m=(a.isInitialized||a.initializedStoreOnce)&&p.every((function(e){return hasLoadedNamespace(e,a,l)}));function h(){return a.getFixedT(t.lng||null,"fallback"===l.nsMode?p:p[0],d)}var f=_slicedToArray(react.exports.useState(h),2),g=f[0],v=f[1],y=p.join();t.lng&&(y="".concat(t.lng).concat(y));var b=usePrevious(y),A=react.exports.useRef(!0);react.exports.useEffect((function(){var e=l.bindI18n,n=l.bindI18nStore;function r(){A.current&&v(h);}return A.current=!0,m||u||(t.lng?loadLanguages(a,t.lng,p,(function(){A.current&&v(h);})):loadNamespaces(a,p,(function(){A.current&&v(h);}))),m&&b&&b!==y&&A.current&&v(h),e&&a&&a.on(e,r),n&&a&&a.store.on(n,r),function(){A.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,r)}));}}),[a,y]);var S=react.exports.useRef(!0);react.exports.useEffect((function(){A.current&&!S.current&&v(h),S.current=!1;}),[a,d]);var C=[g,a,m];if(C.t=g,C.i18n=a,C.ready=m,m)return C;if(!m&&!u)return C;throw new Promise((function(e){t.lng?loadLanguages(a,t.lng,p,(function(){return e()})):loadNamespaces(a,p,(function(){return e()}));}))}var md5={};Object.defineProperty(md5,"__esModule",{value:!0});var Md5_1=md5.Md5=void 0,Md5=function(){function e(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start();}return e.hashStr=function(e,t){return void 0===t&&(t=!1),this.onePassHasher.start().appendStr(e).end(t)},e.hashAsciiStr=function(e,t){return void 0===t&&(t=!1),this.onePassHasher.start().appendAsciiStr(e).end(t)},e._hex=function(t){var n,r,i,o,a=e.hexChars,s=e.hexOut;for(o=0;o<4;o+=1)for(r=8*o,n=t[o],i=0;i<8;i+=2)s[r+1+i]=a.charAt(15&n),n>>>=4,s[r+0+i]=a.charAt(15&n),n>>>=4;return s.join("")},e._md5cycle=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0;},e.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(e.stateIdentity),this},e.prototype.appendStr=function(t){var n,r,i=this._buffer8,o=this._buffer32,a=this._bufferLength;for(r=0;r>>6),i[a++]=63&n|128;else if(n<55296||n>56319)i[a++]=224+(n>>>12),i[a++]=n>>>6&63|128,i[a++]=63&n|128;else {if((n=1024*(n-55296)+(t.charCodeAt(++r)-56320)+65536)>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");i[a++]=240+(n>>>18),i[a++]=n>>>12&63|128,i[a++]=n>>>6&63|128,i[a++]=63&n|128;}a>=64&&(this._dataLength+=64,e._md5cycle(this._state,o),a-=64,o[0]=o[16]);}return this._bufferLength=a,this},e.prototype.appendAsciiStr=function(t){for(var n,r=this._buffer8,i=this._buffer32,o=this._bufferLength,a=0;;){for(n=Math.min(t.length-a,64-o);n--;)r[o++]=t.charCodeAt(a++);if(o<64)break;this._dataLength+=64,e._md5cycle(this._state,i),o=0;}return this._bufferLength=o,this},e.prototype.appendByteArray=function(t){for(var n,r=this._buffer8,i=this._buffer32,o=this._bufferLength,a=0;;){for(n=Math.min(t.length-a,64-o);n--;)r[o++]=t[a++];if(o<64)break;this._dataLength+=64,e._md5cycle(this._state,i),o=0;}return this._bufferLength=o,this},e.prototype.getState=function(){var e=this._state;return {buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[e[0],e[1],e[2],e[3]]}},e.prototype.setState=function(e){var t,n=e.buffer,r=e.state,i=this._state;for(this._dataLength=e.length,this._bufferLength=e.buflen,i[0]=r[0],i[1]=r[1],i[2]=r[2],i[3]=r[3],t=0;t>2);this._dataLength+=n;var a=8*this._dataLength;if(r[n]=128,r[n+1]=r[n+2]=r[n+3]=0,i.set(e.buffer32Identity.subarray(o),o),n>55&&(e._md5cycle(this._state,i),i.set(e.buffer32Identity)),a<=4294967295)i[14]=a;else {var s=a.toString(16).match(/(.*?)(.{0,8})$/);if(null===s)return;var c=parseInt(s[2],16),l=parseInt(s[1],16)||0;i[14]=c,i[15]=l;}return e._md5cycle(this._state,i),t?this._state:e._hex(this._state)},e.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),e.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e.hexChars="0123456789abcdef",e.hexOut=[],e.onePassHasher=new e,e}();if(Md5_1=md5.Md5=Md5,"5d41402abc4b2a76b9719d911017c592"!==Md5.hashStr("hello"))throw new Error("Md5 self test failed.");var dist={exports:{}};!function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r});},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=106)}([function(e,t,n){var r=n(3),i=n(27).f,o=n(74),a=n(9),s=n(12),c=n(14),l=n(13),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,p,m,h,f,g,v,y=e.target,b=e.global,A=e.stat,S=e.proto,C=b?r:A?r[y]:(r[y]||{}).prototype,x=b?a:a[y]||(a[y]={}),E=x.prototype;for(p in t)n=!o(b?p:y+(A?".":"#")+p,e.forced)&&C&&l(C,p),h=x[p],n&&(f=e.noTargetGet?(v=i(C,p))&&v.value:C[p]),m=n&&f?f:t[p],n&&typeof h==typeof m||(g=e.bind&&n?s(m,r):e.wrap&&n?u(m):S&&"function"==typeof m?s(Function.call,m):m,(e.sham||m&&m.sham||h&&h.sham)&&c(g,"sham",!0),x[p]=g,S&&(l(a,d=y+"Prototype")||c(a,d,{}),a[d][p]=m,e.real&&E&&!E[p]&&c(E,p,m)));};},function(e,t,n){var r=n(10);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e};},function(e,t){e.exports=!0;},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")();}).call(this,n(110));},function(e,t,n){var r=n(1),i=n(116),o=n(29),a=n(12),s=n(82),c=n(117),l=function(e,t){this.stopped=e,this.result=t;};e.exports=function(e,t,n){var u,d,p,m,h,f,g,v=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),S=a(t,v,1+y+A),C=function(e){return u&&c(u),new l(!0,e)},x=function(e){return y?(r(e),A?S(e[0],e[1],C):S(e[0],e[1])):A?S(e,C):S(e)};if(b)u=e;else {if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,m=o(e.length);m>p;p++)if((h=x(e[p]))&&h instanceof l)return h;return new l(!1)}u=d.call(e);}for(f=u.next;!(g=f.call(u)).done;){try{h=x(g.value);}catch(e){throw c(u),e}if("object"==typeof h&&h&&h instanceof l)return h}return new l(!1)};},function(e,t,n){var r=n(9),i=n(13),o=n(68),a=n(15).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)});};},function(e,t,n){var r=n(3),i=n(53),o=n(13),a=n(40),s=n(58),c=n(81),l=i("wks"),u=r.Symbol,d=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[e]};},function(e,t){e.exports=function(e){try{return !!e()}catch(e){return !0}};},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e};},function(e,t){e.exports={};},function(e,t){e.exports=function(e){return "object"==typeof e?null!==e:"function"==typeof e};},function(e,t,n){var r=n(7);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}));},function(e,t,n){var r=n(8);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}};},function(e,t,n){var r=n(19),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)};},function(e,t,n){var r=n(11),i=n(15),o=n(22);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e};},function(e,t,n){var r=n(11),i=n(73),o=n(1),a=n(37),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return "value"in n&&(e[t]=n.value),e};},function(e,t,n){var r=n(9),i=n(3),o=function(e){return "function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]};},function(e,t,n){var r=n(2),i=n(224);e.exports=r?i:function(e){return Map.prototype.entries.call(e)};},function(e,t,n){var r=n(72),i=n(36);e.exports=function(e){return r(i(e))};},function(e,t,n){var r=n(36);e.exports=function(e){return Object(r(e))};},function(e,t,n){var r,i,o,a=n(89),s=n(3),c=n(10),l=n(14),u=n(13),d=n(54),p=n(39),m=n(30),h=s.WeakMap;if(a||d.state){var f=d.state||(d.state=new h),g=f.get,v=f.has,y=f.set;r=function(e,t){if(v.call(f,e))throw new TypeError("Object already initialized");return t.facade=e,y.call(f,e,t),t},i=function(e){return g.call(f,e)||{}},o=function(e){return v.call(f,e)};}else {var b=p("state");m[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,l(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)};}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}};},function(e,t,n){var r=n(9);e.exports=function(e){return r[e+"Prototype"]};},function(e,t){e.exports=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}};},function(e,t){e.exports={};},function(e,t,n){var r=n(59),i=n(15).f,o=n(14),a=n(13),s=n(119),c=n(6)("toStringTag");e.exports=function(e,t,n,l){if(e){var u=n?e:e.prototype;a(u,c)||i(u,c,{configurable:!0,value:t}),l&&!r&&o(u,"toString",s);}};},function(e,t,n){var r=n(12),i=n(72),o=n(19),a=n(29),s=n(63),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,p=7==e,m=5==e||d;return function(h,f,g,v){for(var y,b,A=o(h),S=i(A),C=r(f,g,3),x=a(S.length),E=0,T=v||s,w=t?T(h,x):n||p?T(h,0):void 0;x>E;E++)if((m||E in S)&&(b=C(y=S[E],E,A),e))if(t)w[E]=b;else if(b)switch(e){case 3:return !0;case 5:return y;case 6:return E;case 2:c.call(w,y);}else switch(e){case 4:return !1;case 7:c.call(w,y);}return d?-1:l||u?u:w}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)};},function(e,t,n){e.exports=n(107);},function(e,t,n){var r=n(11),i=n(71),o=n(22),a=n(18),s=n(37),c=n(13),l=n(73),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])};},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)};},function(e,t,n){var r=n(42),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0};},function(e,t){e.exports={};},function(e,t,n){var r=n(14);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n);};},function(e,t,n){var r=n(1),i=n(8),o=n(6)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)};},function(e,t,n){var r=n(8),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r;})),this.resolve=r(t),this.reject=r(n);};e.exports.f=function(e){return new i(e)};},function(e,t,n){n(128);var r=n(129),i=n(3),o=n(45),a=n(14),s=n(23),c=n(6)("toStringTag");for(var l in r){var u=i[l],d=u&&u.prototype;d&&o(d)!==c&&a(d,c,l),s[l]=s.Array;}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0;},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e};},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")};},function(e,t,n){e.exports=n(111);},function(e,t,n){var r=n(53),i=n(40),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))};},function(e,t){var n=0,r=Math.random();e.exports=function(e){return "Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)};},function(e,t,n){var r,i=n(1),o=n(76),a=n(57),s=n(30),c=n(80),l=n(51),u=n(39)("IE_PROTO"),d=function(){},p=function(e){return " + +