From e6b4b100c9f43bea1bb1bf51ccf4767d7102c0b0 Mon Sep 17 00:00:00 2001 From: winsan Date: Wed, 6 Nov 2024 10:22:01 +0800 Subject: [PATCH] update: 4.9.1 (#256) Co-authored-by: zhangxiaochang --- SampleCode/H5/NEMeetingKit_h5_v4.9.1.js | 5197 +++++++++++++++++++++++ SampleCode/H5/index.html | 2 +- SampleCode/Web/NEMeetingKit_v4.9.1.js | 5022 ++++++++++++++++++++++ SampleCode/Web/index.html | 2 +- SampleCode/WebLive/NeWebMeetingLive.js | 16 +- 5 files changed, 10229 insertions(+), 10 deletions(-) create mode 100644 SampleCode/H5/NEMeetingKit_h5_v4.9.1.js create mode 100644 SampleCode/Web/NEMeetingKit_v4.9.1.js diff --git a/SampleCode/H5/NEMeetingKit_h5_v4.9.1.js b/SampleCode/H5/NEMeetingKit_h5_v4.9.1.js new file mode 100644 index 00000000..de0b1c05 --- /dev/null +++ b/SampleCode/H5/NEMeetingKit_h5_v4.9.1.js @@ -0,0 +1,5197 @@ +(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$2 = 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$2,(function(e){var t="undefined"!=typeof document?document.currentScript:null;function n(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 i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}});}}));})),Object.freeze(e)}var i,o,r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0)&&!(i=r.next()).done;)a.push(i.value);}catch(e){o={error:e};}finally{try{i&&!i.done&&(n=r.return)&&n.call(r);}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError,function(e){e.assertEqual=e=>e,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]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const 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;}(i||(i={})),function(e){e.mergeShapes=(e,t)=>({...e,...t});}(o||(o={}));const c=i.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),u=e=>{switch(typeof e){case"undefined":return c.undefined;case"string":return c.string;case"number":return isNaN(e)?c.nan:c.number;case"boolean":return c.boolean;case"function":return c.function;case"bigint":return c.bigint;case"symbol":return c.symbol;case"object":return Array.isArray(e)?c.array:null===e?c.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?c.promise:"undefined"!=typeof Map&&e instanceof Map?c.map:"undefined"!=typeof Set&&e instanceof Set?c.set:"undefined"!=typeof Date&&e instanceof Date?c.date:c.object;default:return c.unknown}},d=i.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class p 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:[]},i=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(i);else if("invalid_return_type"===o.code)i(o.returnTypeError);else if("invalid_arguments"===o.code)i(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else {let e=n,i=0;for(;ie.message){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return {formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}p.create=e=>new p(e);const g=(e,t)=>{let n;switch(e.code){case d.invalid_type:n=e.received===c.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case d.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,i.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:n=`Unrecognized key(s) in object: ${i.joinValues(e.keys,", ")}`;break;case d.invalid_union:n="Invalid input";break;case d.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${i.joinValues(e.options)}`;break;case d.invalid_enum_value:n=`Invalid enum value. Expected ${i.joinValues(e.options)}, received '${e.received}'`;break;case d.invalid_arguments:n="Invalid function arguments";break;case d.invalid_return_type:n="Invalid function return type";break;case d.invalid_date:n="Invalid date";break;case d.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}"`:i.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case d.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 d.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 d.custom:n="Invalid input";break;case d.invalid_intersection_types:n="Intersection results could not be merged";break;case d.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case d.not_finite:n="Number must be finite";break;default:n=t.defaultError,i.assertNever(e);}return {message:n}};let m=g;function f(){return m}const h=e=>{const{data:t,path:n,errorMaps:i,issueData:o}=e,r=[...n,...o.path||[]],a={...o,path:r};if(void 0!==o.message)return {...o,path:r,message:o.message};let s="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(a,{data:t,defaultError:s}).message;return {...o,path:r,message:s}};function v(e,t){const n=f(),i=h({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===g?void 0:g].filter((e=>!!e))});e.common.issues.push(i);}class A{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 i of t){if("aborted"===i.status)return b;"dirty"===i.status&&e.dirty(),n.push(i.value);}return {status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,i=await e.value;n.push({key:t,value:i});}return A.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:o}=i;if("aborted"===t.status)return b;if("aborted"===o.status)return b;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!i.alwaysSet||(n[t.value]=o.value);}return {status:e.value,value:n}}}const b=Object.freeze({status:"aborted"}),y=e=>({status:"dirty",value:e}),x=e=>({status:"valid",value:e}),w=e=>"aborted"===e.status,C=e=>"dirty"===e.status,E=e=>"valid"===e.status,S=e=>"undefined"!=typeof Promise&&e instanceof Promise;function M(e,t,n,i){if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function O(e,t,n,i,o){if("function"==typeof t?e!==t||!o:!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 I,T,k;"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;}(I||(I={}));class N{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i;}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const R=(e,t)=>{if(E(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 p(e.common.issues);return this._error=t,this._error}}};function B(e){if(!e)return {};const{errorMap:t,invalid_type_error:n,required_error:i,description:o}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return {errorMap:t,description:o};return {errorMap:(t,o)=>{var r,a;const{message:s}=e;return "invalid_enum_value"===t.code?{message:null!=s?s:o.defaultError}:void 0===o.data?{message:null!==(r=null!=s?s:i)&&void 0!==r?r:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!=s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}class j{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this);}get description(){return this._def.description}_getType(e){return u(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:u(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return {status:new A,ctx:{common:e.parent.common,data:e.data,parsedType:u(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(S(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 i={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:u(e)},o=this._parseSync({data:e,path:i.path,parent:i});return R(i,o)}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:u(e)},i=this._parse({data:e,path:n.path,parent:n}),o=await(S(i)?i:Promise.resolve(i));return R(n,o)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const o=e(t),r=()=>i.addIssue({code:d.custom,...n(t)});return "undefined"!=typeof Promise&&o instanceof Promise?o.then((e=>!!e||(r(),!1))):!!o||(r(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new Te({schema:this,typeName:Ve.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ke.create(this,this._def)}nullable(){return Ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ue.create(this,this._def)}promise(){return Ie.create(this,this._def)}or(e){return ge.create([this,e],this._def)}and(e){return ve.create(this,e,this._def)}transform(e){return new Te({...B(this._def),schema:this,typeName:Ve.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Re({...B(this._def),innerType:this,defaultValue:t,typeName:Ve.ZodDefault})}brand(){return new Le({typeName:Ve.ZodBranded,type:this,...B(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Be({...B(this._def),innerType:this,catchValue:t,typeName:Ve.ZodCatch})}describe(e){return new(this.constructor)({...this._def,description:e})}pipe(e){return De.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P=/^c[^\s-]{8,}$/i,L=/^[0-9a-z]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/,F=/^[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,z=/^[a-z0-9_-]{21}$/i,U=/^[-+]?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)?)??$/,V=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let H;const W=/^(?:(?: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])$/,Q=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,G=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,K="((\\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])))",q=new RegExp(`^${K}$`);function Y(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 Z(e){let t=`${K}T${Y(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 J(e,t){return !("v4"!==t&&t||!W.test(e))||!("v6"!==t&&t||!Q.test(e))}class X extends j{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==c.string){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.string,received:t.parsedType}),b}const t=new A;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.lengtho.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:d.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const i=e.data.length>o.value,r=e.data.lengthe.test(t)),{validation:t,code:d.invalid_string,...I.errToObj(n)})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.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,...I.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,...I.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...I.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new X({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new X({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new X({...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.valuei?n:i;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}X.create=e=>{var t;return new X({checks:[],typeName:Ve.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...B(e)})};class $ extends j{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)!==c.number){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.number,received:t.parsedType}),b}let t;const n=new A;for(const o of this._def.checks)if("int"===o.kind)i.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),v(t,{code:d.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else if("min"===o.kind){(o.inclusive?e.datao.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:d.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty());}else "multipleOf"===o.kind?0!==_(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:d.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),v(t,{code:d.not_finite,message:o.message}),n.dirty()):i.assertNever(o);return {status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,n,i){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.toString(e)})}get minValue(){let e=null;for(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&&i.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 $({checks:[],typeName:Ve.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...B(e)});class ee extends j{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)!==c.bigint){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.bigint,received:t.parsedType}),b}let t;const n=new A;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.datao.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:d.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty());}else "multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),v(t,{code:d.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):i.assertNever(o);return {status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,n,i){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}get minValue(){let e=null;for(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 ee({checks:[],typeName:Ve.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...B(e)})};class te extends j{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==c.boolean){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.boolean,received:t.parsedType}),b}return x(e.data)}}te.create=e=>new te({typeName:Ve.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...B(e)});class ne extends j{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==c.date){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.date,received:t.parsedType}),b}if(isNaN(e.data.getTime())){return v(this._getOrReturnCtx(e),{code:d.invalid_date}),b}const t=new A;let n;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()o.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:d.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):i.assertNever(o);return {status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ne({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:I.toString(t)})}get minDate(){let e=null;for(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 ne({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ve.ZodDate,...B(e)});class ie extends j{_parse(e){if(this._getType(e)!==c.symbol){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.symbol,received:t.parsedType}),b}return x(e.data)}}ie.create=e=>new ie({typeName:Ve.ZodSymbol,...B(e)});class oe extends j{_parse(e){if(this._getType(e)!==c.undefined){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.undefined,received:t.parsedType}),b}return x(e.data)}}oe.create=e=>new oe({typeName:Ve.ZodUndefined,...B(e)});class re extends j{_parse(e){if(this._getType(e)!==c.null){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.null,received:t.parsedType}),b}return x(e.data)}}re.create=e=>new re({typeName:Ve.ZodNull,...B(e)});class ae extends j{constructor(){super(...arguments),this._any=!0;}_parse(e){return x(e.data)}}ae.create=e=>new ae({typeName:Ve.ZodAny,...B(e)});class se extends j{constructor(){super(...arguments),this._unknown=!0;}_parse(e){return x(e.data)}}se.create=e=>new se({typeName:Ve.ZodUnknown,...B(e)});class le extends j{_parse(e){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.never,received:t.parsedType}),b}}le.create=e=>new le({typeName:Ve.ZodNever,...B(e)});class ce extends j{_parse(e){if(this._getType(e)!==c.undefined){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.void,received:t.parsedType}),b}return x(e.data)}}ce.create=e=>new ce({typeName:Ve.ZodVoid,...B(e)});class ue extends j{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==c.array)return v(t,{code:d.invalid_type,expected:c.array,received:t.parsedType}),b;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,o=t.data.lengthi.maxLength.value&&(v(t,{code:d.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new N(t,e,t.path,n))))).then((e=>A.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>i.type._parseSync(new N(t,e,t.path,n))));return A.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ue({...this._def,minLength:{value:e,message:I.toString(t)}})}max(e,t){return new ue({...this._def,maxLength:{value:e,message:I.toString(t)}})}length(e,t){return new ue({...this._def,exactLength:{value:e,message:I.toString(t)}})}nonempty(e){return this.min(1,e)}}function de(e){if(e instanceof pe){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=ke.create(de(i));}return new pe({...e._def,shape:()=>t})}return e instanceof ue?new ue({...e._def,type:de(e.element)}):e instanceof ke?ke.create(de(e.unwrap())):e instanceof Ne?Ne.create(de(e.unwrap())):e instanceof Ae?Ae.create(e.items.map((e=>de(e)))):e}ue.create=(e,t)=>new ue({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ve.ZodArray,...B(t)});class pe extends j{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend;}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=i.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==c.object){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.object,received:t.parsedType}),b}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),r=[];if(!(this._def.catchall instanceof le&&"strip"===this._def.unknownKeys))for(const e in n.data)o.includes(e)||r.push(e);const a=[];for(const e of o){const t=i[e],o=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new N(n,o,n.path,e)),alwaysSet:e in n.data});}if(this._def.catchall instanceof le){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of r)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)r.length>0&&(v(n,{code:d.unrecognized_keys,keys:r}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else {const e=this._def.catchall;for(const t of r){const i=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new N(n,i,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,i=await t.value;e.push({key:n,value:i,alwaysSet:t.alwaysSet});}return e})).then((e=>A.mergeObjectSync(t,e))):A.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new pe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,o,r,a;const s=null!==(r=null===(o=(i=this._def).errorMap)||void 0===o?void 0:o.call(i,t,n).message)&&void 0!==r?r:n.defaultError;return "unrecognized_keys"===t.code?{message:null!==(a=I.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new pe({...this._def,unknownKeys:"strip"})}passthrough(){return new pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ve.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pe({...this._def,catchall:e})}pick(e){const t={};return i.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n]);})),new pe({...this._def,shape:()=>t})}omit(e){const t={};return i.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n]);})),new pe({...this._def,shape:()=>t})}deepPartial(){return de(this)}partial(e){const t={};return i.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional();})),new pe({...this._def,shape:()=>t})}required(e){const t={};return i.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else {let e=this.shape[n];for(;e instanceof ke;)e=e._def.innerType;t[n]=e;}})),new pe({...this._def,shape:()=>t})}keyof(){return Se(i.objectKeys(this.shape))}}pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:le.create(),typeName:Ve.ZodObject,...B(t)}),pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:le.create(),typeName:Ve.ZodObject,...B(t)}),pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:le.create(),typeName:Ve.ZodObject,...B(t)});class ge extends j{_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 p(e.ctx.common.issues)));return v(t,{code:d.invalid_union,unionErrors:n}),b}));{let e;const i=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},r=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:n}),n.common.issues.length&&i.push(n.common.issues);}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=i.map((e=>new p(e)));return v(t,{code:d.invalid_union,unionErrors:o}),b}}get options(){return this._def.options}}ge.create=(e,t)=>new ge({options:e,typeName:Ve.ZodUnion,...B(t)});const me=e=>e instanceof Ce?me(e.schema):e instanceof Te?me(e.innerType()):e instanceof Ee?[e.value]:e instanceof Me?e.options:e instanceof Oe?i.objectValues(e.enum):e instanceof Re?me(e._def.innerType):e instanceof oe?[void 0]:e instanceof re?[null]:e instanceof ke?[void 0,...me(e.unwrap())]:e instanceof Ne?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof Be?me(e._def.innerType):[];class fe extends j{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.object)return v(t,{code:d.invalid_type,expected:c.object,received:t.parsedType}),b;const n=this.discriminator,i=t.data[n],o=this.optionsMap.get(i);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(v(t,{code:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=me(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 o of t){if(i.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);i.set(o,n);}}return new fe({typeName:Ve.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...B(n)})}}function he(e,t){const n=u(e),o=u(t);if(e===t)return {valid:!0,data:e};if(n===c.object&&o===c.object){const n=i.objectKeys(t),o=i.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of o){const i=he(e[n],t[n]);if(!i.valid)return {valid:!1};r[n]=i.data;}return {valid:!0,data:r}}if(n===c.array&&o===c.array){if(e.length!==t.length)return {valid:!1};const n=[];for(let i=0;i{if(w(e)||w(i))return b;const o=he(e.value,i.value);return o.valid?((C(e)||C(i))&&t.dirty(),{status:t.value,value:o.data}):(v(n,{code:d.invalid_intersection_types}),b)};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])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ve.create=(e,t,n)=>new ve({left:e,right:t,typeName:Ve.ZodIntersection,...B(n)});class Ae extends j{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==c.array)return v(n,{code:d.invalid_type,expected:c.array,received:n.parsedType}),b;if(n.data.lengththis._def.items.length&&(v(n,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new N(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>A.mergeArray(t,e))):A.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new Ae({...this._def,rest:e})}}Ae.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ae({items:e,typeName:Ve.ZodTuple,rest:null,...B(t)})};class be extends j{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!==c.object)return v(n,{code:d.invalid_type,expected:c.object,received:n.parsedType}),b;const i=[],o=this._def.keyType,r=this._def.valueType;for(const e in n.data)i.push({key:o._parse(new N(n,e,n.path,e)),value:r._parse(new N(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?A.mergeObjectAsync(t,i):A.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new be(t instanceof j?{keyType:e,valueType:t,typeName:Ve.ZodRecord,...B(n)}:{keyType:X.create(),valueType:e,typeName:Ve.ZodRecord,...B(t)})}}class ye extends j{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!==c.map)return v(n,{code:d.invalid_type,expected:c.map,received:n.parsedType}),b;const i=this._def.keyType,o=this._def.valueType,r=[...n.data.entries()].map((([e,t],r)=>({key:i._parse(new N(n,e,n.path,[r,"key"])),value:o._parse(new N(n,t,n.path,[r,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of r){const i=await n.key,o=await n.value;if("aborted"===i.status||"aborted"===o.status)return b;"dirty"!==i.status&&"dirty"!==o.status||t.dirty(),e.set(i.value,o.value);}return {status:t.value,value:e}}))}{const e=new Map;for(const n of r){const i=n.key,o=n.value;if("aborted"===i.status||"aborted"===o.status)return b;"dirty"!==i.status&&"dirty"!==o.status||t.dirty(),e.set(i.value,o.value);}return {status:t.value,value:e}}}}ye.create=(e,t,n)=>new ye({valueType:t,keyType:e,typeName:Ve.ZodMap,...B(n)});class xe extends j{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==c.set)return v(n,{code:d.invalid_type,expected:c.set,received:n.parsedType}),b;const i=this._def;null!==i.minSize&&n.data.sizei.maxSize.value&&(v(n,{code:d.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const o=this._def.valueType;function r(e){const n=new Set;for(const i of e){if("aborted"===i.status)return b;"dirty"===i.status&&t.dirty(),n.add(i.value);}return {status:t.value,value:n}}const a=[...n.data.values()].map(((e,t)=>o._parse(new N(n,e,n.path,t))));return n.common.async?Promise.all(a).then((e=>r(e))):r(a)}min(e,t){return new xe({...this._def,minSize:{value:e,message:I.toString(t)}})}max(e,t){return new xe({...this._def,maxSize:{value:e,message:I.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}xe.create=(e,t)=>new xe({valueType:e,minSize:null,maxSize:null,typeName:Ve.ZodSet,...B(t)});class we extends j{constructor(){super(...arguments),this.validate=this.implement;}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.function)return v(t,{code:d.invalid_type,expected:c.function,received:t.parsedType}),b;function n(e,n){return h({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f(),g].filter((e=>!!e)),issueData:{code:d.invalid_arguments,argumentsError:n}})}function i(e,n){return h({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f(),g].filter((e=>!!e)),issueData:{code:d.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof Ie){const e=this;return x((async function(...t){const a=new p([]),s=await e._def.args.parseAsync(t,o).catch((e=>{throw a.addIssue(n(t,e)),a})),l=await Reflect.apply(r,this,s),c=await e._def.returns._def.type.parseAsync(l,o).catch((e=>{throw a.addIssue(i(l,e)),a}));return c}))}{const e=this;return x((function(...t){const a=e._def.args.safeParse(t,o);if(!a.success)throw new p([n(t,a.error)]);const s=Reflect.apply(r,this,a.data),l=e._def.returns.safeParse(s,o);if(!l.success)throw new p([i(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new we({...this._def,args:Ae.create(e).rest(se.create())})}returns(e){return new we({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new we({args:e||Ae.create([]).rest(se.create()),returns:t||se.create(),typeName:Ve.ZodFunction,...B(n)})}}class Ce extends j{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ce.create=(e,t)=>new Ce({getter:e,typeName:Ve.ZodLazy,...B(t)});class Ee extends j{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return v(t,{received:t.data,code:d.invalid_literal,expected:this._def.value}),b}return {status:"valid",value:e.data}}get value(){return this._def.value}}function Se(e,t){return new Me({values:e,typeName:Ve.ZodEnum,...B(t)})}Ee.create=(e,t)=>new Ee({value:e,typeName:Ve.ZodLiteral,...B(t)});class Me extends j{constructor(){super(...arguments),T.set(this,void 0);}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return v(t,{expected:i.joinValues(n),received:t.parsedType,code:d.invalid_type}),b}if(M(this,T)||O(this,T,new Set(this._def.values)),!M(this,T).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return v(t,{received:t.data,code:d.invalid_enum_value,options:n}),b}return x(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 Me.create(e,{...this._def,...t})}exclude(e,t=this._def){return Me.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}T=new WeakMap,Me.create=Se;class Oe extends j{constructor(){super(...arguments),k.set(this,void 0);}_parse(e){const t=i.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==c.string&&n.parsedType!==c.number){const e=i.objectValues(t);return v(n,{expected:i.joinValues(e),received:n.parsedType,code:d.invalid_type}),b}if(M(this,k)||O(this,k,new Set(i.getValidEnumValues(this._def.values))),!M(this,k).has(e.data)){const e=i.objectValues(t);return v(n,{received:n.data,code:d.invalid_enum_value,options:e}),b}return x(e.data)}get enum(){return this._def.values}}k=new WeakMap,Oe.create=(e,t)=>new Oe({values:e,typeName:Ve.ZodNativeEnum,...B(t)});class Ie extends j{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.promise&&!1===t.common.async)return v(t,{code:d.invalid_type,expected:c.promise,received:t.parsedType}),b;const n=t.parsedType===c.promise?t.data:Promise.resolve(t.data);return x(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Ie.create=(e,t)=>new Ie({type:e,typeName:Ve.ZodPromise,...B(t)});class Te extends j{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),o=this._def.effect||null,r={addIssue:e=>{v(n,e),e.fatal?t.abort():t.dirty();},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===o.type){const e=o.transform(n.data,r);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return b;const i=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return "aborted"===i.status?b:"dirty"===i.status||"dirty"===t.value?y(i.value):i}));{if("aborted"===t.value)return b;const i=this._def.schema._parseSync({data:e,path:n.path,parent:n});return "aborted"===i.status?b:"dirty"===i.status||"dirty"===t.value?y(i.value):i}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,r);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 i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return "aborted"===i.status?b:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?b:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===o.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!E(e))return e;const i=o.transform(e.value,r);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return {status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>E(e)?Promise.resolve(o.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}i.assertNever(o);}}Te.create=(e,t,n)=>new Te({schema:e,typeName:Ve.ZodEffects,effect:t,...B(n)}),Te.createWithPreprocess=(e,t,n)=>new Te({schema:t,effect:{type:"preprocess",transform:e},typeName:Ve.ZodEffects,...B(n)});class ke extends j{_parse(e){return this._getType(e)===c.undefined?x(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Ve.ZodOptional,...B(t)});class Ne extends j{_parse(e){return this._getType(e)===c.null?x(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Ve.ZodNullable,...B(t)});class Re extends j{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===c.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:Ve.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...B(t)});class Be extends j{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return S(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new p(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new p(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Be.create=(e,t)=>new Be({innerType:e,typeName:Ve.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...B(t)});class je extends j{_parse(e){if(this._getType(e)!==c.nan){const t=this._getOrReturnCtx(e);return v(t,{code:d.invalid_type,expected:c.nan,received:t.parsedType}),b}return {status:"valid",value:e.data}}}je.create=e=>new je({typeName:Ve.ZodNaN,...B(e)});const Pe=Symbol("zod_brand");class Le extends j{_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 De extends j{_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?b:"dirty"===e.status?(t.dirty(),y(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?b:"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 De({in:e,out:t,typeName:Ve.ZodPipeline})}}class Fe extends j{_parse(e){const t=this._def.innerType._parse(e),n=e=>(E(e)&&(e.value=Object.freeze(e.value)),e);return S(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function ze(e,t={},n){return e?ae.create().superRefine(((i,o)=>{var r,a;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,s=null===(a=null!==(r=e.fatal)&&void 0!==r?r:n)||void 0===a||a,l="string"==typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s});}})):ae.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:Ve.ZodReadonly,...B(t)});const Ue={object:pe.lazycreate};var Ve;!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";}(Ve||(Ve={}));const He=X.create,We=$.create,Qe=je.create,Ge=ee.create,Ke=te.create,qe=ne.create,Ye=ie.create,Ze=oe.create,Je=re.create,Xe=ae.create,_e=se.create,$e=le.create,et=ce.create,tt=ue.create,nt=pe.create,it=pe.strictCreate,ot=ge.create,rt=fe.create,at=ve.create,st=Ae.create,lt=be.create,ct=ye.create,ut=xe.create,dt=we.create,pt=Ce.create,gt=Ee.create,mt=Me.create,ft=Oe.create,ht=Ie.create,vt=Te.create,At=ke.create,bt=Ne.create,yt=Te.createWithPreprocess,xt=De.create,wt={string:e=>X.create({...e,coerce:!0}),number:e=>$.create({...e,coerce:!0}),boolean:e=>te.create({...e,coerce:!0}),bigint:e=>ee.create({...e,coerce:!0}),date:e=>ne.create({...e,coerce:!0})},Ct=b;var Et,St,Mt,Ot,It,Tt,kt,Nt,Rt,Bt,jt,Pt,Lt,Dt,Ft,zt,Ut,Vt,Ht,Wt,Qt,Gt,Kt,qt,Yt,Zt,Jt,Xt,_t,$t,en,tn,nn,on,rn,an,sn,ln,cn,un,dn,pn,gn,mn,fn,hn,vn,An,bn,yn,xn,wn,Cn,En,Sn,Mn,On,In,Tn,kn,Nn,Rn,Bn,jn,Pn,Ln,Dn,Fn,zn,Un,Vn,Hn,Wn,Qn,Gn=Object.freeze({__proto__:null,defaultErrorMap:g,setErrorMap:function(e){m=e;},getErrorMap:f,makeIssue:h,EMPTY_PATH:[],addIssueToContext:v,ParseStatus:A,INVALID:b,DIRTY:y,OK:x,isAborted:w,isDirty:C,isValid:E,isAsync:S,get util(){return i},get objectUtil(){return o},ZodParsedType:c,getParsedType:u,ZodType:j,datetimeRegex:Z,ZodString:X,ZodNumber:$,ZodBigInt:ee,ZodBoolean:te,ZodDate:ne,ZodSymbol:ie,ZodUndefined:oe,ZodNull:re,ZodAny:ae,ZodUnknown:se,ZodNever:le,ZodVoid:ce,ZodArray:ue,ZodObject:pe,ZodUnion:ge,ZodDiscriminatedUnion:fe,ZodIntersection:ve,ZodTuple:Ae,ZodRecord:be,ZodMap:ye,ZodSet:xe,ZodFunction:we,ZodLazy:Ce,ZodLiteral:Ee,ZodEnum:Me,ZodNativeEnum:Oe,ZodPromise:Ie,ZodEffects:Te,ZodTransformer:Te,ZodOptional:ke,ZodNullable:Ne,ZodDefault:Re,ZodCatch:Be,ZodNaN:je,BRAND:Pe,ZodBranded:Le,ZodPipeline:De,ZodReadonly:Fe,custom:ze,Schema:j,ZodSchema:j,late:Ue,get ZodFirstPartyTypeKind(){return Ve},coerce:wt,any:Xe,array:tt,bigint:Ge,boolean:Ke,date:qe,discriminatedUnion:rt,effect:vt,enum:mt,function:dt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ze((t=>t instanceof e),t),intersection:at,lazy:pt,literal:gt,map:ct,nan:Qe,nativeEnum:ft,never:$e,null:Je,nullable:bt,number:We,object:nt,oboolean:()=>Ke().optional(),onumber:()=>We().optional(),optional:At,ostring:()=>He().optional(),pipeline:xt,preprocess:yt,promise:ht,record:lt,set:ut,strictObject:it,string:He,symbol:Ye,transformer:vt,tuple:st,undefined:Ze,union:ot,unknown:_e,void:et,NEVER:Ct,ZodIssueCode:d,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:p});function Kn(e,t){return {code:St.SUCCESS,message:t||Mt.SUCCESS,data:e}}function qn(e,t,n){if(e){if(e.code)throw {code:n||e.code,message:e.msg||e.message||Mt.FAILURE};throw {code:n||St.FAILURE,message:t||Mt.FAILURE,data:e}}throw {code:n||St.FAILURE,message:t||Mt.FAILURE}}function Yn(e,t,n){return {code:St.FAILURE,message:t||Mt.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";}(Et||(Et={})),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";}(St||(St={})),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";}(Mt||(Mt={})),function(e){e[e.kNEAudioDumpTypePCM=0]="kNEAudioDumpTypePCM",e[e.kNEAudioDumpTypeAll=1]="kNEAudioDumpTypeAll",e[e.kNEAudioDumpTypeWAV=2]="kNEAudioDumpTypeWAV";}(Ot||(Ot={})),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";}(It||(It={})),function(e){e[e.unknown=0]="unknown",e[e.SIP=1]="SIP",e[e.APP=2]="APP";}(Tt||(Tt={})),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";}(kt||(kt={})),function(e){e[e.SIP=1]="SIP",e[e.H323=2]="H323";}(Nt||(Nt={})),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";}(Rt||(Rt={})),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";}(Bt||(Bt={})),function(e){e[e.kNEAudioScenarioDefault=0]="kNEAudioScenarioDefault",e[e.kNEAudioScenarioSpeech=1]="kNEAudioScenarioSpeech",e[e.kNEAudioScenarioMusic=2]="kNEAudioScenarioMusic";}(jt||(jt={})),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";}(Pt||(Pt={})),function(e){e[e.HIGH=0]="HIGH",e[e.LOW=1]="LOW";}(Lt||(Lt={})),function(e){e[e.NONE=0]="NONE",e[e.GALLERY=1]="GALLERY",e[e.FOCUS=2]="FOCUS",e[e.SCREEN_SHARE=4]="SCREEN_SHARE";}(Dt||(Dt={})),function(e){e[e.INVALID=0]="INVALID",e[e.INIT=1]="INIT",e[e.STARTED=2]="STARTED",e[e.ENDED=3]="ENDED";}(Ft||(Ft={})),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";}(zt||(zt={})),function(e){e[e["LC-AAC"]=0]="LC-AAC",e[e["HE-AAC"]=1]="HE-AAC";}(Ut||(Ut={})),function(e){e.CHINESE="CHINESE",e.ENGLISH="ENGLISH",e.JAPANESE="JAPANESE";}(Vt||(Vt={})),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";}(Ht||(Ht={})),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";}(Wt||(Wt={})),function(e){e[e.kNEVirtualBackgroundSupportFull=0]="kNEVirtualBackgroundSupportFull",e[e.kNEVirtualBackgroundSupportHardwareLimit=1]="kNEVirtualBackgroundSupportHardwareLimit",e[e.kNEVirtualBackgroundSupportPerformanceLimit=2]="kNEVirtualBackgroundSupportPerformanceLimit";}(Qt||(Qt={})),function(e){e[e.None=-1]="None",e[e.P2P=0]="P2P";}(Gt||(Gt={})),function(e){e[e.FORWARD=0]="FORWARD",e[e.BACKWARD=1]="BACKWARD";}(Kt||(Kt={})),function(e){e[e.COMMON=0]="COMMON",e[e.WAITING_ROOM=1]="WAITING_ROOM";}(qt||(qt={})),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";}(Yt||(Yt={})),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";}(Zt||(Zt={})),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";}(Jt||(Jt={})),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";}(Xt||(Xt={})),function(e){e[e.RecordingStart=0]="RecordingStart",e[e.RecordingStop=1]="RecordingStop";}(_t||(_t={})),function(e){e[e.Disconnect=0]="Disconnect",e[e.Reconnect=1]="Reconnect";}($t||($t={})),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";}(en||(en={})),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";}(tn||(tn={})),function(e){e[e.NONE=0]="NONE",e[e.CHINESE=1]="CHINESE",e[e.ENGLISH=2]="ENGLISH",e[e.JAPANESE=3]="JAPANESE";}(nn||(nn={})),e.NEClientInnerType=void 0,(on=e.NEClientInnerType||(e.NEClientInnerType={})).WEB="web",on.ANDROID="android",on.IOS="ios",on.PC="pc",on.MINIAPP="miniApp",on.MAC="mac",on.SIP="SIP",on.UNKNOWN="unknown",e.NEClientReportType=void 0,(rn=e.NEClientReportType||(e.NEClientReportType={})).WEB="Web",rn.PC="Windows",rn.MINIAPP="miniApp",rn.MAC="macOS",rn.UNKNOWN="unknown",e.NEClientType=void 0,(an=e.NEClientType||(e.NEClientType={}))[an.UNKNOWN=0]="UNKNOWN",an[an.IOS=1]="IOS",an[an.ANDROID=2]="ANDROID",an[an.PC=3]="PC",an[an.WEB=4]="WEB",an[an.SIP=5]="SIP",an[an.MAC=6]="MAC",an[an.MINIAPP=7]="MINIAPP",an[an.H323=8]="H323",e.NEMeetingRole=void 0,(sn=e.NEMeetingRole||(e.NEMeetingRole={})).participant="member",sn.host="host",sn.coHost="cohost",sn.ghost="ghost",e.AttendeeOffType=void 0,(ln=e.AttendeeOffType||(e.AttendeeOffType={})).offNotAllowSelfOn="offNotAllowSelfOn",ln.offAllowSelfOn="offAllowSelfOn",ln.disable="disable",e.NEMeetingIdDisplayOption=void 0,(cn=e.NEMeetingIdDisplayOption||(e.NEMeetingIdDisplayOption={}))[cn.DISPLAY_ALL=0]="DISPLAY_ALL",cn[cn.DISPLAY_LONG_ID_ONLY=1]="DISPLAY_LONG_ID_ONLY",cn[cn.DISPLAY_SHORT_ID_ONLY=2]="DISPLAY_SHORT_ID_ONLY",e.Role=void 0,(un=e.Role||(e.Role={})).member="member",un.host="host",un.coHost="cohost",un.observer="observer",un.guest="guest",e.NEMeetingAppNoticeTipType=void 0,(dn=e.NEMeetingAppNoticeTipType||(e.NEMeetingAppNoticeTipType={}))[dn.NEMeetingAppNoticeTipTypeUnknown=0]="NEMeetingAppNoticeTipTypeUnknown",dn[dn.NEMeetingAppNoticeTipTypeText=1]="NEMeetingAppNoticeTipTypeText",dn[dn.NEMeetingAppNoticeTipTypeUrl=2]="NEMeetingAppNoticeTipTypeUrl",e.NEMeetingLeaveType=void 0,(pn=e.NEMeetingLeaveType||(e.NEMeetingLeaveType={}))[pn.LEAVE_BY_SELF=0]="LEAVE_BY_SELF",pn[pn.KICK_OUT=2]="KICK_OUT",pn[pn.CLOSE_BY_MEMBER=3]="CLOSE_BY_MEMBER",pn[pn.NetworkError=4]="NetworkError",pn[pn.UNKNOWN=6]="UNKNOWN",pn[pn.OTHER=7]="OTHER",pn[pn.LOGIN_STATE_ERROR=8]="LOGIN_STATE_ERROR",pn[pn.CLOSE_BY_BACKEND=9]="CLOSE_BY_BACKEND",pn[pn.SYNC_DATA_ERROR=10]="SYNC_DATA_ERROR",pn[pn.ALL_MEMBERS_OUT=11]="ALL_MEMBERS_OUT",pn[pn.END_OF_LIFE=12]="END_OF_LIFE",pn[pn.kICK_BY_SELF=13]="kICK_BY_SELF",pn[pn.JOIN_TIMEOUT=14]="JOIN_TIMEOUT",e.NEMeetingLanguage=void 0,(gn=e.NEMeetingLanguage||(e.NEMeetingLanguage={})).AUTOMATIC="*",gn.CHINESE="zh",gn.ENGLISH="en",gn.JAPANESE="ja",e.NEMeetingStatus=void 0,(mn=e.NEMeetingStatus||(e.NEMeetingStatus={}))[mn.MEETING_STATUS_FAILED=-1]="MEETING_STATUS_FAILED",mn[mn.MEETING_STATUS_IDLE=0]="MEETING_STATUS_IDLE",mn[mn.MEETING_STATUS_WAITING=1]="MEETING_STATUS_WAITING",mn[mn.MEETING_STATUS_CONNECTING=2]="MEETING_STATUS_CONNECTING",mn[mn.MEETING_STATUS_INMEETING=3]="MEETING_STATUS_INMEETING",mn[mn.MEETING_STATUS_IN_WAITING_ROOM=5]="MEETING_STATUS_IN_WAITING_ROOM",mn[mn.MEETING_STATUS_DISCONNECTING=6]="MEETING_STATUS_DISCONNECTING",mn[mn.MEETING_STATUS_INMEETING_MINIMIZED=4]="MEETING_STATUS_INMEETING_MINIMIZED",mn[mn.MEETING_STATUS_DEVICE_TESTING=7]="MEETING_STATUS_DEVICE_TESTING",mn[mn.MEETING_STATUS_UNKNOWN=100]="MEETING_STATUS_UNKNOWN",e.NEMeetingCode=void 0,(fn=e.NEMeetingCode||(e.NEMeetingCode={}))[fn.MEETING_DISCONNECTING_BY_SELF=0]="MEETING_DISCONNECTING_BY_SELF",fn[fn.MEETING_DISCONNECTING_REMOVED_BY_HOST=1]="MEETING_DISCONNECTING_REMOVED_BY_HOST",fn[fn.MEETING_DISCONNECTING_CLOSED_BY_HOST=2]="MEETING_DISCONNECTING_CLOSED_BY_HOST",fn[fn.MEETING_DISCONNECTING_LOGIN_ON_OTHER_DEVICE=3]="MEETING_DISCONNECTING_LOGIN_ON_OTHER_DEVICE",fn[fn.MEETING_DISCONNECTING_CLOSED_BY_SELF_AS_HOST=4]="MEETING_DISCONNECTING_CLOSED_BY_SELF_AS_HOST",fn[fn.MEETING_DISCONNECTING_AUTH_INFO_EXPIRED=5]="MEETING_DISCONNECTING_AUTH_INFO_EXPIRED",fn[fn.MEETING_DISCONNECTING_NOT_EXIST=7]="MEETING_DISCONNECTING_NOT_EXIST",fn[fn.MEETING_DISCONNECTING_SYNC_DATA_ERROR=8]="MEETING_DISCONNECTING_SYNC_DATA_ERROR",fn[fn.MEETING_DISCONNECTING_RTC_INIT_ERROR=9]="MEETING_DISCONNECTING_RTC_INIT_ERROR",fn[fn.MEETING_DISCONNECTING_JOIN_CHANNEL_ERROR=10]="MEETING_DISCONNECTING_JOIN_CHANNEL_ERROR",fn[fn.MEETING_DISCONNECTING_JOIN_TIMEOUT=11]="MEETING_DISCONNECTING_JOIN_TIMEOUT",fn[fn.MEETING_DISCONNECTING_END_OF_LIFE=12]="MEETING_DISCONNECTING_END_OF_LIFE",fn[fn.MEETING_WAITING_VERIFY_PASSWORD=20]="MEETING_WAITING_VERIFY_PASSWORD",fn[fn.MEETING_JOIN_CHANNEL_START=21]="MEETING_JOIN_CHANNEL_START",fn[fn.MEETING_JOIN_CHANNEL_SUCCESS=22]="MEETING_JOIN_CHANNEL_SUCCESS",e.NEMeetingInviteStatus=void 0,(hn=e.NEMeetingInviteStatus||(e.NEMeetingInviteStatus={}))[hn.unknown=0]="unknown",hn[hn.waitingCall=1]="waitingCall",hn[hn.calling=2]="calling",hn[hn.rejected=3]="rejected",hn[hn.noAnswer=4]="noAnswer",hn[hn.error=5]="error",hn[hn.removed=6]="removed",hn[hn.canceled=7]="canceled",hn[hn.waitingJoin=8]="waitingJoin",hn[hn.busy=9]="busy";class Zn{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 s(this,void 0,void 0,(function*(){try{const i=Gn.string(),o=Gn.number(),r=Gn.number();i.parse(e,{path:["name"]}),o.parse(t,{path:["pageSize"]}),r.parse(n,{path:["pageNum"]});}catch(e){throw qn(void 0,e.message)}return this._neMeeting.searchAccount({name:e,pageSize:t,pageNum:n}).then((e=>Kn(e.map(this._formatNEContact))))}))}searchContactListByPhoneNumber(e,t,n){return s(this,void 0,void 0,(function*(){try{const i=Gn.string(),o=Gn.number(),r=Gn.number();i.parse(e,{path:["phoneNumber"]}),o.parse(t,{path:["pageSize"]}),r.parse(n,{path:["pageNum"]});}catch(e){throw qn(void 0,e.message)}return this._neMeeting.searchAccount({phoneNumber:e,pageSize:t,pageNum:n}).then((e=>Kn(e.map(this._formatNEContact))))}))}getContactsInfo(e){try{Gn.array(Gn.string()).parse(e,{path:["userUuids"]});}catch(e){throw qn(void 0,e.message)}return this._neMeeting.getAccountInfoList(e).then((e=>{var t;return Kn({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||""}}}e.NEMenuVisibility=void 0,(vn=e.NEMenuVisibility||(e.NEMenuVisibility={}))[vn.VISIBLE_ALWAYS=0]="VISIBLE_ALWAYS",vn[vn.VISIBLE_EXCLUDE_HOST=1]="VISIBLE_EXCLUDE_HOST",vn[vn.VISIBLE_TO_HOST_ONLY=2]="VISIBLE_TO_HOST_ONLY",vn[vn.VISIBLE_EXCLUDE_ROOM_SYSTEM_DEVICE=3]="VISIBLE_EXCLUDE_ROOM_SYSTEM_DEVICE",vn[vn.VISIBLE_TO_OWNER_ONLY=4]="VISIBLE_TO_OWNER_ONLY",vn[vn.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";}(An||(An={})),function(e){e[e.GMCryptoSM4ECB=0]="GMCryptoSM4ECB";}(bn||(bn={})),function(e){e[e.Normal=1]="Normal",e[e.Whiteboard=2]="Whiteboard";}(yn||(yn={})),function(e){e[e.Base=0]="Base",e[e.Stateful=1]="Stateful";}(xn||(xn={})),e.EndRoomReason=void 0,(e.EndRoomReason||(e.EndRoomReason={})).JOIN_TIMEOUT="JOIN_TIMEOUT",e.EventType=void 0,(wn=e.EventType||(e.EventType={})).MemberAudioMuteChanged="memberAudioMuteChanged",wn.MemberJoinRoom="memberJoinRoom",wn.MemberNameChanged="memberNameChanged",wn.MemberJoinRtcChannel="memberJoinRtcChannel",wn.MemberLeaveChatroom="memberLeaveChatroom",wn.MemberLeaveRoom="memberLeaveRoom",wn.MemberLeaveRtcChannel="memberLeaveRtcChannel",wn.MemberRoleChanged="memberRoleChanged",wn.MemberScreenShareStateChanged="memberScreenShareStateChanged",wn.MemberSystemAudioShareStateChanged="MemberSystemAudioShareStateChanged",wn.MemberVideoMuteChanged="memberVideoMuteChanged",wn.MemberWhiteboardStateChanged="memberWhiteboardStateChanged",wn.RoomPropertiesChanged="roomPropertiesChanged",wn.RoomLockStateChanged="roomLockStateChanged",wn.RoomWatermarkChanged="roomWatermarkChanged",wn.MemberPropertiesChanged="memberPropertiesChanged",wn.MemberAudioConnectStateChanged="memberAudioConnectStateChanged",wn.MemberPropertiesDeleted="memberPropertiesDeleted",wn.RoomPropertiesDeleted="roomPropertiesDeleted",wn.RoomEnded="roomEnded",wn.RtcActiveSpeakerChanged="rtcActiveSpeakerChanged",wn.RtcChannelError="rtcChannelError",wn.RtcAudioVolumeIndication="rtcAudioVolumeIndication",wn.RtcLocalAudioVolumeIndication="rtcLocalAudioVolumeIndication",wn.RoomLiveStateChanged="roomLiveStateChanged",wn.NetworkQuality="networkQuality",wn.RtcStats="rtcStats",wn.RoomConnectStateChanged="roomConnectStateChanged",wn.CameraDeviceChanged="cameraDeviceChanged",wn.PlayoutDeviceChanged="playoutDeviceChanged",wn.RecordDeviceChanged="recordDeviceChanged",wn.ReceiveChatroomMessages="receiveChatroomMessages",wn.ChatroomMessageAttachmentProgress="chatroomMessageAttachmentProgress",wn.ReceivePassThroughMessage="receivePassThroughMessage",wn.ReceiveScheduledMeetingUpdate="receiveScheduledMeetingUpdate",wn.ReceivePluginMessage="receivePluginMessage",wn.ReceiveAccountInfoUpdate="receiveAccountInfoUpdate",wn.DeviceChange="deviceChange",wn.NetworkError="networkError",wn.ClientBanned="ClientBanned",wn.AutoPlayNotAllowed="autoplayNotAllowed",wn.NetworkReconnect="networkReconnect",wn.NetworkReconnectSuccess="networkReconnectSuccess",wn.CheckNeedHandsUp="checkNeedHandsUp",wn.NeedVideoHandsUp="needVideoHandsUp",wn.NeedAudioHandsUp="needAudioHandsUp",wn.MeetingExits="meetingExits",wn.roomRemainingSecondsRenewed="roomRemainingSecondsRenewed",wn.roomCloudRecordStateChanged="roomCloudRecordStateChanged",wn.RtcScreenCaptureStatus="rtcScreenCaptureStatus",wn.onVideoFrameData="onVideoFrameData",wn.previewVideoFrameData="previewVideoFrameData",wn.rtcVirtualBackgroundSourceEnabled="rtcVirtualBackgroundSourceEnabled",wn.meetingStatusChanged="meetingStatusChanged",wn.RoomsCustomEvent="roomsCustomEvent",wn.RoomsSendEvent="roomsSendEvent",wn.MemberJoinWaitingRoom="memberJoinWaitingRoom",wn.MemberLeaveWaitingRoom="memberLeaveWaitingRoom",wn.MemberAdmitted="memberAdmitted",wn.MemberNameChangedInWaitingRoom="memberNameChangedInWaitingRoom",wn.MyWaitingRoomStatusChanged="myWaitingRoomStatusChanged",wn.WaitingRoomInfoUpdated="waitingRoomInfoUpdated",wn.WaitingRoomAllMembersKicked="waitingRoomAllMembersKicked",wn.WaitingRoomOnManagersUpdated="WaitingRoomOnManagersUpdated",wn.RoomLiveBackgroundInfoChanged="roomLiveBackgroundInfoChanged",wn.RoomBlacklistStateChanged="onRoomBlacklistStateChanged",wn.MemberSipInviteStateChanged="onMemberSipInviteStateChanged",wn.MemberAppInviteStateChanged="onMemberAppInviteStateChanged",wn.AcceptInvite="acceptInvite",wn.AcceptInviteJoinSuccess="acceptInviteJoinSuccess",wn.ActiveSpeakerActiveChanged="OnActiveSpeakerActiveChanged",wn.ActiveSpeakerListChanged="OnActiveSpeakerListChanged",wn.onSessionMessageReceived="onSessionMessageReceived",wn.onSessionMessageRecentChanged="onSessionMessageRecentChanged",wn.OnMeetingInviteStatusChange="onMeetingInviteStatusChanged",wn.OnMeetingInvite="onMeetingInvite",wn.onSessionMessageDeleted="onSessionMessageDeleted",wn.OnDeleteAllSessionMessage="onDeleteAllSessionMessage",wn.onInterpretationSettingChange="onInterpretationSettingChange",wn.ChangeDeviceFromSetting="changeDeviceFromSetting",wn.OnPrivateChatMemberIdSelected="onPrivateChatMemberIdSelected",wn.OnScheduledMeetingPageModeChanged="onScheduledMeetingPageModeChanged",wn.OnHistoryMeetingPageModeChanged="onHistoryMeetingPageModeChanged",wn.RoomAnnotationEnableChanged="onRoomAnnotationEnableChanged",wn.RoomAnnotationWebJsBridge="roomAnnotationWebJsBridge",wn.AuthEvent="AuthEvent",wn.RtcScreenShareVideoResize="rtcScreenShareVideoResize",wn.RoomMaxMembersChanged="roomMaxMembersChanged",wn.ReceiveCaptionMessages="receiveCaptionMessages",wn.CaptionStateChanged="captionStateChanged",wn.OnInterpreterLeaveAll="onInterpreterLeaveAll",wn.OnAccessDenied="onAccessDenied",wn.OnStartPlayMedia="onStartPlayMedia",wn.OnInterpreterLeave="onInterpreterLeave",wn.MyInterpreterRemoved="MyInterpreterRemoved",wn.RtcChannelDisconnect="RtcChannelDisconnect",wn.OnStopMemberActivities="OnStopMemberActivities",wn.OnEmoticonsReceived="OnEmoticonsReceived",wn.ShowDeviceTest="ShowDeviceTest",e.MeetingEventType=void 0,(Cn=e.MeetingEventType||(e.MeetingEventType={})).rtcChannelError="meetingRtcChannelError",Cn.needShowRecordTip="needShowRecordTip",Cn.leaveOrEndRoom="leaveOrEndRoom",Cn.noCameraPermission="noCameraPermission",Cn.noMicPermission="noMicPermission",Cn.changeMemberListTab="changeMemberListTab",Cn.waitingRoomMemberListChange="waitingRoomMemberListChange",Cn.rejoinAfterAdmittedToRoom="rejoinAfterAdmittedToRoom",Cn.updateWaitingRoomUnReadCount="updateWaitingRoomUnReadCount",Cn.updateMeetingInfo="updateMeetingInfo",Cn.openCaption="openCaption",Cn.openTranscriptionWindow="openTranscriptionWindow",Cn.transcriptionMsgCountChange="transcriptionMsgCountChange",e.UserEventType=void 0,(En=e.UserEventType||(e.UserEventType={})).Login="login",En.Logout="logout",En.LoginWithPassword="loginWithPassword",En.CreateMeeting="createMeeting",En.JoinMeeting="joinMeeting",En.GuestJoinMeeting="guestJoinMeeting",En.AnonymousJoinMeeting="anonymousJoinMeeting",En.SetLeaveCallback="setLeaveCallback",En.onMeetingStatusChanged="onMeetingStatusChanged",En.RejoinMeeting="rejoinMeeting",En.JoinOtherMeeting="joinOtherMeeting",En.JoinMeetingFromDeviceTest="joinMeetingFromDeviceTest",En.CancelJoin="cancelJoin",En.SetScreenSharingSourceId="setScreenSharingSourceId",En.EndMeeting="endMeeting",En.LeaveMeeting="leaveMeeting",En.UpdateMeetingInfo="updateMeetingInfo",En.GetReducerMeetingInfo="getReducerMeetingInfo",En.OnScreenSharingStatusChange="onScreenSharingStatusChange",En.UpdateInjectedMenuItem="updateInjectedMenuItem",En.OnInjectedMenuItemClick="onInjectedMenuItemClick",En.OpenSettingsWindow="openSettingsWindow",En.OpenPluginWindow="openPluginWindow",En.OpenFeedbackWindow="OpenFeedbackWindow",En.OpenChatWindow="openChatWindow",En.StopWhiteboard="StopWhiteboard",En.StopSharingComputerSound="stopSharingComputerSound",e.memberAction=void 0,(Sn=e.memberAction||(e.memberAction={}))[Sn.muteAudio=51]="muteAudio",Sn[Sn.unmuteAudio=56]="unmuteAudio",Sn[Sn.muteVideo=50]="muteVideo",Sn[Sn.unmuteVideo=55]="unmuteVideo",Sn[Sn.muteScreen=52]="muteScreen",Sn[Sn.unmuteScreen=57]="unmuteScreen",Sn[Sn.handsUp=58]="handsUp",Sn[Sn.handsDown=59]="handsDown",Sn[Sn.openWhiteShare=60]="openWhiteShare",Sn[Sn.closeWhiteShare=61]="closeWhiteShare",Sn[Sn.shareWhiteShare=62]="shareWhiteShare",Sn[Sn.cancelShareWhiteShare=63]="cancelShareWhiteShare",Sn[Sn.pinView=67]="pinView",Sn[Sn.unpinView=68]="unpinView",Sn[Sn.modifyMeetingNickName=104]="modifyMeetingNickName",Sn[Sn.takeBackTheHost=105]="takeBackTheHost",Sn[Sn.privateChat=106]="privateChat",e.SecurityItem=void 0,(Mn=e.SecurityItem||(e.SecurityItem={})).screenSharePermission="screenSharePermission",Mn.unmuteAudioBySelfPermission="unmuteAudioBySelfPermission",Mn.unmuteVideoBySelfPermission="unmuteVideoBySelfPermission",Mn.updateNicknamePermission="updateNicknamePermission",Mn.whiteboardPermission="whiteboardPermission",Mn.localRecordPermission="localRecordPermission",Mn.annotationPermission="annotationPermission",e.MeetingSecurityCtrlValue=void 0,(On=e.MeetingSecurityCtrlValue||(e.MeetingSecurityCtrlValue={}))[On.ANNOTATION_DISABLE=1]="ANNOTATION_DISABLE",On[On.SCREEN_SHARE_DISABLE=2]="SCREEN_SHARE_DISABLE",On[On.WHILE_BOARD_SHARE_DISABLE=4]="WHILE_BOARD_SHARE_DISABLE",On[On.EDIT_NAME_DISABLE=8]="EDIT_NAME_DISABLE",On[On.AUDIO_OFF=16]="AUDIO_OFF",On[On.AUDIO_NOT_ALLOW_SELF_ON=32]="AUDIO_NOT_ALLOW_SELF_ON",On[On.VIDEO_OFF=64]="VIDEO_OFF",On[On.VIDEO_NOT_ALLOW_SELF_ON=128]="VIDEO_NOT_ALLOW_SELF_ON",On[On.EMOJI_RESP_DISABLE=256]="EMOJI_RESP_DISABLE",On[On.LOCAL_RECORD_DISABLE=512]="LOCAL_RECORD_DISABLE",On[On.PLAY_SOUND=1024]="PLAY_SOUND",On[On.AVATAR_HIDE=2048]="AVATAR_HIDE",On[On.SMART_SUMMARY=4096]="SMART_SUMMARY",e.SecurityCtrlEnum=void 0,(In=e.SecurityCtrlEnum||(e.SecurityCtrlEnum={})).ANNOTATION_DISABLE="ANNOTATION_DISABLE",In.SCREEN_SHARE_DISABLE="SCREEN_SHARE_DISABLE",In.WHILE_BOARD_SHARE_DISABLE="WHILE_BOARD_SHARE_DISABLE",In.EDIT_NAME_DISABLE="EDIT_NAME_DISABLE",In.AUDIO_OFF="AUDIO_OFF",In.AUDIO_NOT_ALLOW_SELF_ON="AUDIO_NOT_ALLOW_SELF_ON",In.VIDEO_OFF="VIDEO_OFF",In.VIDEO_NOT_ALLOW_SELF_ON="VIDEO_NOT_ALLOW_SELF_ON",In.EMOJI_RESP_DISABLE="EMOJI_RESP_DISABLE",In.LOCAL_RECORD_DISABLE="LOCAL_RECORD_DISABLE",In.PLAY_SOUND="PLAY_SOUND",In.AVATAR_HIDE="AVATAR_HIDE",In.SMART_SUMMARY="SMART_SUMMARY",e.hostAction=void 0,(Tn=e.hostAction||(e.hostAction={}))[Tn.remove=0]="remove",Tn[Tn.muteMemberVideo=10]="muteMemberVideo",Tn[Tn.muteMemberAudio=11]="muteMemberAudio",Tn[Tn.muteAllAudio=12]="muteAllAudio",Tn[Tn.lockMeeting=13]="lockMeeting",Tn[Tn.muteAllVideo=14]="muteAllVideo",Tn[Tn.unmuteMemberVideo=15]="unmuteMemberVideo",Tn[Tn.unmuteMemberAudio=16]="unmuteMemberAudio",Tn[Tn.unmuteAllAudio=17]="unmuteAllAudio",Tn[Tn.unlockMeeting=18]="unlockMeeting",Tn[Tn.unmuteAllVideo=19]="unmuteAllVideo",Tn[Tn.muteVideoAndAudio=20]="muteVideoAndAudio",Tn[Tn.unmuteVideoAndAudio=21]="unmuteVideoAndAudio",Tn[Tn.transferHost=22]="transferHost",Tn[Tn.setCoHost=23]="setCoHost",Tn[Tn.unSetCoHost=9999]="unSetCoHost",Tn[Tn.setFocus=30]="setFocus",Tn[Tn.unsetFocus=31]="unsetFocus",Tn[Tn.forceMuteAllAudio=40]="forceMuteAllAudio",Tn[Tn.rejectHandsUp=42]="rejectHandsUp",Tn[Tn.forceMuteAllVideo=43]="forceMuteAllVideo",Tn[Tn.closeScreenShare=53]="closeScreenShare",Tn[Tn.closeAudioShare=54]="closeAudioShare",Tn[Tn.openWhiteShare=60]="openWhiteShare",Tn[Tn.closeWhiteShare=61]="closeWhiteShare",Tn[Tn.moveToWaitingRoom=66]="moveToWaitingRoom",Tn[Tn.openWatermark=64]="openWatermark",Tn[Tn.closeWatermark=65]="closeWatermark",Tn[Tn.changeChatPermission=70]="changeChatPermission",Tn[Tn.changeWaitingRoomChatPermission=71]="changeWaitingRoomChatPermission",Tn[Tn.changeGuestJoin=72]="changeGuestJoin",Tn[Tn.annotationPermission=73]="annotationPermission",Tn[Tn.screenSharePermission=74]="screenSharePermission",Tn[Tn.unmuteAudioBySelfPermission=75]="unmuteAudioBySelfPermission",Tn[Tn.unmuteVideoBySelfPermission=76]="unmuteVideoBySelfPermission",Tn[Tn.updateNicknamePermission=77]="updateNicknamePermission",Tn[Tn.whiteboardPermission=78]="whiteboardPermission",Tn[Tn.localRecordPermission=79]="localRecordPermission",e.RecordState=void 0,(kn=e.RecordState||(e.RecordState={})).NotStart="notStart",kn.Recording="recording",kn.Starting="starting",kn.Stopping="stopping",e.NEChatPermission=void 0,(Nn=e.NEChatPermission||(e.NEChatPermission={}))[Nn.FREE_CHAT=1]="FREE_CHAT",Nn[Nn.PUBLIC_CHAT_ONLY=2]="PUBLIC_CHAT_ONLY",Nn[Nn.PRIVATE_CHAT_HOST_ONLY=3]="PRIVATE_CHAT_HOST_ONLY",Nn[Nn.NO_CHAT=4]="NO_CHAT",e.NEWaitingRoomChatPermission=void 0,(Rn=e.NEWaitingRoomChatPermission||(e.NEWaitingRoomChatPermission={}))[Rn.NO_CHAT=0]="NO_CHAT",Rn[Rn.PRIVATE_CHAT_HOST_ONLY=1]="PRIVATE_CHAT_HOST_ONLY",e.WATERMARK_STRATEGY=void 0,(Bn=e.WATERMARK_STRATEGY||(e.WATERMARK_STRATEGY={}))[Bn.CLOSE=0]="CLOSE",Bn[Bn.OPEN=1]="OPEN",Bn[Bn.FORCE_OPEN=2]="FORCE_OPEN",e.WATERMARK_STYLE=void 0,(jn=e.WATERMARK_STYLE||(e.WATERMARK_STYLE={}))[jn.SINGLE=1]="SINGLE",jn[jn.MULTI=2]="MULTI",e.ActionType=void 0,(Pn=e.ActionType||(e.ActionType={})).UPDATE_GLOBAL_CONFIG="updateGlobalConfig",Pn.UPDATE_NAME="updateName",Pn.RESET_NAME="resetName",Pn.UPDATE_MEMBER="updateMember",Pn.RESET_MEMBER="resetMember",Pn.UPDATE_MEMBER_PROPERTIES="updateMemberProperties",Pn.DELETE_MEMBER_PROPERTIES="deleteMemberProperties",Pn.ADD_MEMBER="addMember",Pn.REMOVE_MEMBER="removeMember",Pn.UPDATE_MEETING_INFO="updateMeetingInfo",Pn.SET_MEETING="setMeeting",Pn.RESET_MEETING="resetMeeting",Pn.JOIN_LOADING="joinLoading",Pn.WAITING_ROOM_ADD_MEMBER="waitingRoomAddMember",Pn.WAITING_ROOM_REMOVE_MEMBER="waitingRoomRemoveMember",Pn.WAITING_ROOM_UPDATE_MEMBER="waitingRoomUpdateMember",Pn.WAITING_ROOM_UPDATE_INFO="waitingRoomUpdateInfo",Pn.WAITING_ROOM_SET_MEMBER_LIST="waitingRoomSetMemberList",Pn.WAITING_ROOM_ADD_MEMBER_LIST="waitingRoomAddMemberList",Pn.SIP_ADD_MEMBER="sipAddMember",Pn.SIP_REMOVE_MEMBER="sipRemoveMember",Pn.SIP_UPDATE_MEMBER="sipUpdateMember",Pn.SIP_RESET_MEMBER="sipResetMember",e.BrowserType=void 0,(Ln=e.BrowserType||(e.BrowserType={})).WX="WX",Ln.UC="UC",Ln.QQ="QQ",Ln.UNKNOWN="unknown",Ln.OTHER="other",e.LoginType=void 0,(Dn=e.LoginType||(e.LoginType={}))[Dn.LoginByToken=1]="LoginByToken",Dn[Dn.LoginByPassword=2]="LoginByPassword",e.MeetingErrorCode=void 0,(Fn=e.MeetingErrorCode||(e.MeetingErrorCode={}))[Fn.MeetingNumIncorrect=-5]="MeetingNumIncorrect",Fn[Fn.ReuseIMError=112001]="ReuseIMError",Fn[Fn.RtcNetworkError=10002]="RtcNetworkError",Fn[Fn.NoPermission=10212]="NoPermission",Fn[Fn.RepeatJoinRtc=30004]="RepeatJoinRtc",e.LayoutTypeEnum=void 0,(zn=e.LayoutTypeEnum||(e.LayoutTypeEnum={})).Gallery="gallery",zn.Speaker="speaker",e.NEMenuIDs=void 0,(Un=e.NEMenuIDs||(e.NEMenuIDs={}))[Un.mic=0]="mic",Un[Un.camera=1]="camera",Un[Un.screenShare=2]="screenShare",Un[Un.participants=3]="participants",Un[Un.manageParticipants=4]="manageParticipants",Un[Un.gallery=5]="gallery",Un[Un.invite=20]="invite",Un[Un.chat=21]="chat",Un[Un.whiteBoard=22]="whiteBoard",Un[Un.myVideoControl=23]="myVideoControl",Un[Un.sip=24]="sip",Un[Un.live=25]="live",Un[Un.security=26]="security",Un[Un.record=27]="record",Un[Un.setting=28]="setting",Un[Un.notification=29]="notification",Un[Un.interpretation=31]="interpretation",Un[Un.annotation=30]="annotation",Un[Un.caption=32]="caption",Un[Un.transcription=33]="transcription",Un[Un.feedback=34]="feedback",Un[Un.emoticons=35]="emoticons",e.SingleMenuIds=void 0,(Vn=e.SingleMenuIds||(e.SingleMenuIds={}))[Vn.participants=3]="participants",Vn[Vn.manageParticipants=4]="manageParticipants",Vn[Vn.invite=20]="invite",Vn[Vn.chat=21]="chat",e.MultipleMenuIds=void 0,(Hn=e.MultipleMenuIds||(e.MultipleMenuIds={}))[Hn.mic=0]="mic",Hn[Hn.camera=1]="camera",Hn[Hn.screenShare=2]="screenShare",Hn[Hn.gallery=5]="gallery",Hn[Hn.whiteBoard=22]="whiteBoard",e.NECloudRecordStrategyType=void 0,(Wn=e.NECloudRecordStrategyType||(e.NECloudRecordStrategyType={}))[Wn.HOST_JOIN=0]="HOST_JOIN",Wn[Wn.MEMBER_JOIN=1]="MEMBER_JOIN",e.NEChatMessageNotificationType=void 0,function(e){e[e.barrage=0]="barrage",e[e.bubble=1]="bubble",e[e.noRemind=2]="noRemind";}(e.NEChatMessageNotificationType||(e.NEChatMessageNotificationType={})),e.StaticReportType=void 0,(Qn=e.StaticReportType||(e.StaticReportType={})).MeetingKit_login="MeetingKit_login",Qn.Account_info="account_info",Qn.Roomkit_login="roomkit_login",Qn.MeetingKit_start_meeting="MeetingKit_start_meeting",Qn.MeetingKit_join_meeting="MeetingKit_join_meeting",Qn.Create_room="create_room",Qn.Join_room="join_room",Qn.Join_rtc="join_rtc",Qn.Server_join_rtc="server_join_rtc",Qn.Anonymous_login="anonymous_login",Qn.Meeting_info="meeting_info",Qn.MeetingKit_meeting_end="MeetingKit_meeting_end",Qn.MeetingKit_access_denied="MeetingKit_access_denied";var Jn,Xn,_n,$n,ei,ti,ni,ii,oi,ri;e.NERoomBeautyEffectType=void 0,(Jn=e.NERoomBeautyEffectType||(e.NERoomBeautyEffectType={}))[Jn.kNERoomBeautyWhiteTeeth=0]="kNERoomBeautyWhiteTeeth",Jn[Jn.kNERoomBeautyLightEye=1]="kNERoomBeautyLightEye",Jn[Jn.kNERoomBeautyWhiten=2]="kNERoomBeautyWhiten",Jn[Jn.kNERoomBeautySmooth=3]="kNERoomBeautySmooth",Jn[Jn.kNERoomBeautySmallNose=4]="kNERoomBeautySmallNose",Jn[Jn.kNERoomBeautyEyeDis=5]="kNERoomBeautyEyeDis",Jn[Jn.kNERoomBeautyEyeAngle=6]="kNERoomBeautyEyeAngle",Jn[Jn.kNERoomBeautyMouth=7]="kNERoomBeautyMouth",Jn[Jn.kNERoomcBeautyBigEye=8]="kNERoomcBeautyBigEye",Jn[Jn.kNERoomBeautySmallFace=9]="kNERoomBeautySmallFace",Jn[Jn.kNERoomBeautyJaw=10]="kNERoomBeautyJaw",Jn[Jn.kNERoomBeautyThinFace=11]="kNERoomBeautyThinFace",Jn[Jn.kNERoomBeautyFaceRuddy=12]="kNERoomBeautyFaceRuddy",Jn[Jn.kNERoomBeautyLongNose=13]="kNERoomBeautyLongNose",Jn[Jn.kNERoomBeautyRenZhong=14]="kNERoomBeautyRenZhong",Jn[Jn.kNERoomBeautyMouthAngle=15]="kNERoomBeautyMouthAngle",Jn[Jn.kNERoomBeautyRoundEye=16]="kNERoomBeautyRoundEye",Jn[Jn.kNERoomBeautyOpenEyeAngle=17]="kNERoomBeautyOpenEyeAngle",Jn[Jn.kNERoomBeautyVFace=18]="kNERoomBeautyVFace",Jn[Jn.kNERoomBeautyThinUnderjaw=19]="kNERoomBeautyThinUnderjaw",Jn[Jn.kNERoomBeautyNarrowFace=20]="kNERoomBeautyNarrowFace",Jn[Jn.kNERoomBeautyCheekBone=21]="kNERoomBeautyCheekBone",Jn[Jn.kNERoomBeautyFaceSharpen=22]="kNERoomBeautyFaceSharpen",e.tagNERoomScreenCaptureStatus=void 0,(Xn=e.tagNERoomScreenCaptureStatus||(e.tagNERoomScreenCaptureStatus={}))[Xn.kNERoomScreenCaptureStatusStart=1]="kNERoomScreenCaptureStatusStart",Xn[Xn.kNERoomScreenCaptureStatusPause=2]="kNERoomScreenCaptureStatusPause",Xn[Xn.kNERoomScreenCaptureStatusResume=3]="kNERoomScreenCaptureStatusResume",Xn[Xn.kNERoomScreenCaptureStatusStop=4]="kNERoomScreenCaptureStatusStop",Xn[Xn.kNERoomScreenCaptureStatusCovered=5]="kNERoomScreenCaptureStatusCovered",e.tagNERoomRtcAudioProfileType=void 0,(_n=e.tagNERoomRtcAudioProfileType||(e.tagNERoomRtcAudioProfileType={}))[_n.kNEAudioProfileDefault=0]="kNEAudioProfileDefault",_n[_n.kNEAudioProfileStandard=1]="kNEAudioProfileStandard",_n[_n.kNEAudioProfileStandardExtend=2]="kNEAudioProfileStandardExtend",_n[_n.kNEAudioProfileMiddleQuality=3]="kNEAudioProfileMiddleQuality",_n[_n.kNEAudioProfileMiddleQualityStereo=4]="kNEAudioProfileMiddleQualityStereo",_n[_n.kNEAudioProfileHighQuality=5]="kNEAudioProfileHighQuality",_n[_n.kNEAudioProfileHighQualityStereo=6]="kNEAudioProfileHighQualityStereo",e.tagNERoomRtcAudioScenarioType=void 0,($n=e.tagNERoomRtcAudioScenarioType||(e.tagNERoomRtcAudioScenarioType={}))[$n.kNEAudioScenarioDefault=0]="kNEAudioScenarioDefault",$n[$n.kNEAudioScenarioSpeech=1]="kNEAudioScenarioSpeech",$n[$n.kNEAudioScenarioMusic=2]="kNEAudioScenarioMusic",e.UpdateType=void 0,function(e){e[e.noUpdate=0]="noUpdate",e[e.normalUpdate=1]="normalUpdate",e[e.forceUpdate=2]="forceUpdate";}(e.UpdateType||(e.UpdateType={})),e.ClientType=void 0,(ei=e.ClientType||(e.ClientType={}))[ei.TV=1]="TV",ei[ei.iOS=2]="iOS",ei[ei.AOS=3]="AOS",ei[ei.Windows=4]="Windows",ei[ei.MAC=5]="MAC",ei[ei.web=6]="web",ei[ei.RoomsWindows=7]="RoomsWindows",ei[ei.RoomsMac=8]="RoomsMac",ei[ei.ElectronWindows=15]="ElectronWindows",ei[ei.ElectronMac=16]="ElectronMac",ei[ei.RoomsAndroid=20]="RoomsAndroid",e.MeetingRepeatType=void 0,(ti=e.MeetingRepeatType||(e.MeetingRepeatType={}))[ti.NoRepeat=1]="NoRepeat",ti[ti.Everyday=2]="Everyday",ti[ti.EveryWeekday=3]="EveryWeekday",ti[ti.EveryWeek=4]="EveryWeek",ti[ti.EveryTwoWeek=5]="EveryTwoWeek",ti[ti.EveryMonth=6]="EveryMonth",ti[ti.Custom=7]="Custom",e.MeetingEndType=void 0,(ni=e.MeetingEndType||(e.MeetingEndType={}))[ni.Day=1]="Day",ni[ni.Times=2]="Times",e.MeetingRepeatCustomStepUnit=void 0,(ii=e.MeetingRepeatCustomStepUnit||(e.MeetingRepeatCustomStepUnit={}))[ii.Day=1]="Day",ii[ii.Week=2]="Week",ii[ii.MonthOfDay=3]="MonthOfDay",ii[ii.MonthOfWeek=4]="MonthOfWeek",e.MeetingRepeatFrequencyType=void 0,(oi=e.MeetingRepeatFrequencyType||(e.MeetingRepeatFrequencyType={}))[oi.Day=1]="Day",oi[oi.Week=2]="Week",oi[oi.Month=3]="Month",function(e){e[e.IP=1]="IP",e[e.H323=2]="H323";}(ri||(ri={}));let ai=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(t,n){return s(this,void 0,void 0,(function*(){try{const e=this._getJoinParamSchema({meetingNum:Gn.string()}),i=this._getJoinOptsSchema();e.parse(t,{path:["param"]}),i.parse(n,{path:["opts"]});}catch(e){throw Yn(0,e.message)}const i=this._joinMeetingOptionsToJoinOptions(t,n);return new Promise(((t,n)=>{this._neMeeting.eventEmitter.emit(e.EventType.AcceptInvite,i,(o=>{o?(console.log("acceptInvite error",o),n(o)):(this._neMeeting.eventEmitter.emit(e.EventType.AcceptInviteJoinSuccess,i.nickName),t(Kn(void 0)));}));}))}))}rejectInvite(e){return s(this,void 0,void 0,(function*(){var t,n;try{Gn.number().parse(e,{path:["meetingId"]});}catch(e){throw qn(void 0,e.message)}const i=this._meetingIdToMeetingNumMap.get(e),o=null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.data.roomUuid;if(o)return null===(n=this._neMeeting)||void 0===n?void 0:n.rejectInvite(o).then((()=>Kn(void 0)));throw Yn(0,"roomUuid not found")}))}callOutRoomSystem(e){return s(this,void 0,void 0,(function*(){var t;if(this._neMeeting.sipController){const n=e.protocol===ri.IP?Nt.SIP:Nt.H323,i=Object.assign(Object.assign({},e),{protocol:n});return null===(t=this._neMeeting.sipController)||void 0===t?void 0:t.callOutRoomSystem(i).then((e=>Kn(e)))}return qn(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(t){var n,i,o,r,a,s,l,c;this._globalConfig||(this._globalConfig=JSON.parse(localStorage.getItem("nemeeting-global-config")||"{}"));const u=null===(n=this._globalConfig)||void 0===n?void 0:n.appConfig.notifySenderAccid;if(u&&(null==t?void 0:t.sessionId)===u){if(t.data){const e="[object Object]"===Object.prototype.toString.call(t.data)?t.data:JSON.parse(t.data);t.data=e;}if("MEETING.INVITE"===(null===(o=null===(i=t.data)||void 0===i?void 0:i.data)||void 0===o?void 0:o.type)){const n=null===(r=t.data)||void 0===r?void 0:r.data;null===(s=null===(a=t.data)||void 0===a?void 0:a.data)||void 0===s||s.timestamp,n.inviteInfo&&(n.inviteInfo.timestamp=null===(c=null===(l=t.data)||void 0===l?void 0:l.data)||void 0===c?void 0:c.timestamp,n.inviteInfo.inviterAvatar=n.inviteInfo.inviterIcon,n.inviteInfo.preMeetingInvitation=n.inviteInfo.outOfMeeting,n.inviteInfo.meetingNum=n.meetingNum),this._event.emit(e.EventType.OnMeetingInviteStatusChange,e.NEMeetingInviteStatus.calling,n.meetingId,n.inviteInfo,t),this._emitInviteInfo(e.NEMeetingInviteStatus.calling,t),this._meetingIdToMeetingNumMap.set(n.meetingId,t),this._roomUuidToMeetingNumMap.set(n.roomUuid,t);}}}_handleMeetingInviteStatusChanged(t){var n,i;if(82===t.commandId){const{member:i,roomUuid:o}=t.data,r=this._roomUuidToMeetingNumMap.get(o),a=null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data;if(!a||i.subState!==e.NEMeetingInviteStatus.calling)return void console.log("roomUuid not found",a,i.subState);this._event.emit(e.EventType.OnMeetingInviteStatusChange,i.subState,a.meetingId,a.inviteInfo,r),this._emitInviteInfo(i.subState,r);}else if([33,51,30].includes(t.commandId)){const n=this._roomUuidToMeetingNumMap.get(t.roomUuid),o=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data;if(o){const i=33===t.commandId||30===t.commandId?e.NEMeetingInviteStatus.removed:e.NEMeetingInviteStatus.canceled;this._event.emit(e.EventType.OnMeetingInviteStatusChange,i,o.meetingId,o),this._emitInviteInfo(i,n);}}}_emitInviteInfo(e,t){var n,i,o,r,a,s;const l=null===(n=t.data)||void 0===n?void 0:n.data;null===(o=null===(i=t.data)||void 0===i?void 0:i.data)||void 0===o||o.timestamp,l.inviteInfo&&(l.inviteInfo.timestamp=null===(a=null===(r=t.data)||void 0===r?void 0:r.data)||void 0===a?void 0:a.timestamp,l.inviteInfo.inviterAvatar=l.inviteInfo.inviterIcon,l.inviteInfo.preMeetingInvitation=l.inviteInfo.outOfMeeting,l.inviteInfo.meetingNum=l.meetingNum),this._listeners.forEach((n=>{var i;null===(i=null==n?void 0:n.onMeetingInviteStatusChanged)||void 0===i||i.call(n,e,l.inviteInfo,l.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("NEMeetingKitListener::NEMeetingInviteService",{module:"NEMeetingInviteService",event:"onMeetingInviteStatusChanged",payload:[e,l.inviteInfo,l.meetingId,Object.assign(Object.assign({},t),{data:"object"==typeof t.data?JSON.stringify(t.data):t.data})]});}_initListener(){this._neMeeting.eventEmitter.on(e.EventType.onSessionMessageReceived,this._handleReceiveSessionMessage.bind(this)),this._neMeeting.eventEmitter.on(e.EventType.OnMeetingInviteStatusChange,this._handleMeetingInviteStatusChanged.bind(this));}_joinMeetingOptionsToJoinOptions(e,t){var n;let i;e.encryptionConfig&&(i={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:i,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 Gn.object(Object.assign({displayName:Gn.string(),avatar:Gn.string().optional(),tag:Gn.string().optional(),password:Gn.string().optional(),encryptionConfig:Gn.object({encryptionType:Gn.string(),encryptKey:Gn.string()}).optional(),watermarkConfig:Gn.object({name:Gn.string().optional(),phone:Gn.string().optional(),email:Gn.string().optional(),jobNumber:Gn.string().optional()}).optional()},e))}_getJoinOptsSchema(){return Gn.object({cloudRecordConfig:Gn.object({enable:Gn.boolean(),recordStrategy:Gn.nativeEnum(e.NECloudRecordStrategyType)}).optional(),enableWaitingRoom:Gn.boolean().optional(),enableGuestJoin:Gn.boolean().optional(),noMuteAllVideo:Gn.boolean().optional(),noMuteAllAudio:Gn.boolean().optional(),noVideo:Gn.boolean().optional(),noAudio:Gn.boolean().optional(),showMeetingTime:Gn.boolean().optional(),enableSpeakerSpotlight:Gn.boolean().optional(),enableShowNotYetJoinedMembers:Gn.boolean().optional(),noInvite:Gn.boolean().optional(),noSip:Gn.boolean().optional(),noChat:Gn.boolean().optional(),noSwitchAudioMode:Gn.boolean().optional(),noWhiteBoard:Gn.boolean().optional(),noRename:Gn.boolean().optional(),noLive:Gn.boolean().optional(),showMeetingRemainingTip:Gn.boolean().optional(),showScreenShareUserVideo:Gn.boolean().optional(),enableTransparentWhiteboard:Gn.boolean().optional(),showFloatingMicrophone:Gn.boolean().optional(),showMemberTag:Gn.boolean().optional(),detectMutedMic:Gn.boolean().optional(),defaultWindowMode:Gn.nativeEnum(yn).optional(),meetingIdDisplayOption:Gn.nativeEnum(e.NEMeetingIdDisplayOption).optional(),joinTimeout:Gn.number().optional(),showCloudRecordMenuItem:Gn.boolean().optional(),showCloudRecordingUI:Gn.boolean().optional(),noNotifyCenter:Gn.boolean().optional(),noWebApps:Gn.boolean().optional()}).optional()}};const si={10461:"LBS: 主线路请求发生错误",10001:"errorCodes.10001",10119:"errorCodes.10119",10229:"errorCodes.10229",10212:"errorCodes.10212"},li="ne-meeting-recent-meeting-list",ci="userinfoV2",ui="__ne_meeting_account_info__",di="ne-meeting-setting",pi="ne-meeting-custom-langs",gi="ne-meeting-language",mi="$majorAudio",fi="10.5.0",hi="5.6.40";var vi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal$2?commonjsGlobal$2:"undefined"!=typeof self?self:{};function Ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bi(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}});})),t}var yi,xi={exports:{}},wi=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i0;)a[r=i[o]]||(t[r]=e[r],a[r]=!0);e=Object.getPrototypeOf(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Si,kindOfTest:Mi,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return -1!==i&&i===n},toArray:function(e){if(!e)return null;var t=e.length;if(Ii(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:Ui,isFileList:Pi},Hi=Vi;function Wi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Qi=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(Hi.isURLSearchParams(t))i=t.toString();else {var o=[];Hi.forEach(t,(function(e,t){null!=e&&(Hi.isArray(e)?t+="[]":e=[e],Hi.forEach(e,(function(e){Hi.isDate(e)?e=e.toISOString():Hi.isObject(e)&&(e=JSON.stringify(e)),o.push(Wi(t)+"="+Wi(e));})));})),i=o.join("&");}if(i){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+i;}return e},Gi=Vi;function Ki(){this.handlers=[];}Ki.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},Ki.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null);},Ki.prototype.forEach=function(e){Gi.forEach(this.handlers,(function(t){null!==t&&e(t);}));};var qi=Ki,Yi=Vi,Zi=Vi;function Ji(e,t,n,i,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o);}Zi.inherits(Ji,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 Xi=Ji.prototype,_i={};["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){_i[e]={value:e};})),Object.defineProperties(Ji,_i),Object.defineProperty(Xi,"isAxiosError",{value:!0}),Ji.from=function(e,t,n,i,o,r){var a=Object.create(Xi);return Zi.toFlatObject(e,a,(function(e){return e!==Error.prototype})),Ji.call(a,e.message,t,n,i,o),a.name=e.name,r&&Object.assign(a,r),a};var $i=Ji,eo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},to=Vi;var no=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":to.isDate(e)?e.toISOString():to.isArrayBuffer(e)||to.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,r){if(to.isPlainObject(o)||to.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+r);n.push(o),to.forEach(o,(function(n,o){if(!to.isUndefined(n)){var a,s=r?r+"."+o:o;if(n&&!r&&"object"==typeof n)if(to.endsWith(o,"{}"))n=JSON.stringify(n);else if(to.endsWith(o,"[]")&&(a=to.toArray(n)))return void a.forEach((function(e){!to.isUndefined(e)&&t.append(s,i(e));}));e(n,s);}})),n.pop();}else t.append(r,i(o));}(e),t},io=$i,oo=Vi,ro=oo.isStandardBrowserEnv()?{write:function(e,t,n,i,o,r){var a=[];a.push(e+"="+encodeURIComponent(t)),oo.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),oo.isString(i)&&a.push("path="+i),oo.isString(o)&&a.push("domain="+o),!0===r&&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(){}},ao=function(e){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},so=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},lo=function(e,t){return e&&!ao(t)?so(e,t):t},co=Vi,uo=["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"],po=Vi,go=po.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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=i(window.location.href),function(t){var n=po.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return !0},mo=$i;function fo(e){mo.call(this,null==e?"canceled":e,mo.ERR_CANCELED),this.name="CanceledError";}Vi.inherits(fo,mo,{__CANCEL__:!0});var ho=fo,vo=Vi,Ao=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new io("Request failed with status code "+n.status,[io.ERR_BAD_REQUEST,io.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n);},bo=ro,yo=Qi,xo=lo,wo=function(e){var t,n,i,o={};return e?(co.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=co.trim(e.substr(0,i)).toLowerCase(),n=co.trim(e.substr(i+1)),t){if(o[t]&&uo.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n;}})),o):o},Co=go,Eo=eo,So=$i,Mo=ho,Oo=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},Io=function(e){return new Promise((function(t,n){var i,o=e.data,r=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i);}vo.isFormData(o)&&vo.isStandardBrowserEnv()&&delete r["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.Authorization="Basic "+btoa(c+":"+u);}var d=xo(e.baseURL,e.url);function p(){if(l){var i="getAllResponseHeaders"in l?wo(l.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:i,config:e,request:l};Ao((function(e){t(e),s();}),(function(e){n(e),s();}),o),l=null;}}if(l.open(e.method.toUpperCase(),yo(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(p);},l.onabort=function(){l&&(n(new So("Request aborted",So.ECONNABORTED,e,l)),l=null);},l.onerror=function(){n(new So("Network Error",So.ERR_NETWORK,e,l,l)),l=null;},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||Eo;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new So(t,i.clarifyTimeoutError?So.ETIMEDOUT:So.ECONNABORTED,e,l)),l=null;},vo.isStandardBrowserEnv()){var g=(e.withCredentials||Co(d))&&e.xsrfCookieName?bo.read(e.xsrfCookieName):void 0;g&&(r[e.xsrfHeaderName]=g);}"setRequestHeader"in l&&vo.forEach(r,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete r[t]:l.setRequestHeader(t,e);})),vo.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(i=function(e){l&&(n(!e||e&&e.type?new Mo:e),l.abort(),l=null);},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i))),o||(o=null);var m=Oo(d);m&&-1===["http","https","file"].indexOf(m)?n(new So("Unsupported protocol "+m+":",So.ERR_BAD_REQUEST,e)):l.send(o);}))},To=Vi,ko=function(e,t){Yi.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i]);}));},No=$i,Ro=no,Bo={"Content-Type":"application/x-www-form-urlencoded"};function jo(e,t){!To.isUndefined(e)&&To.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}var Po,Lo={transitional:eo,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Po=Io),Po),transformRequest:[function(e,t){if(ko(t,"Accept"),ko(t,"Content-Type"),To.isFormData(e)||To.isArrayBuffer(e)||To.isBuffer(e)||To.isStream(e)||To.isFile(e)||To.isBlob(e))return e;if(To.isArrayBufferView(e))return e.buffer;if(To.isURLSearchParams(e))return jo(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=To.isObject(e),o=t&&t["Content-Type"];if((n=To.isFileList(e))||i&&"multipart/form-data"===o){var r=this.env&&this.env.FormData;return Ro(n?{"files[]":e}:e,r&&new r)}return i||"application/json"===o?(jo(t,"application/json"),function(e,t){if(To.isString(e))try{return (t||JSON.parse)(e),To.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return (0, JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Lo.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&To.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw No.from(e,No.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},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};To.forEach(["delete","get","head"],(function(e){Lo.headers[e]={};})),To.forEach(["post","put","patch"],(function(e){Lo.headers[e]=To.merge(Bo);}));var Do=Lo,Fo=Vi,zo=Do,Uo=function(e){return !(!e||!e.__CANCEL__)},Vo=Vi,Ho=function(e,t,n){var i=this||zo;return Fo.forEach(n,(function(n){e=n.call(i,e,t);})),e},Wo=Uo,Qo=Do,Go=ho;function Ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Go}var qo=Vi,Yo=function(e,t){t=t||{};var n={};function i(e,t){return qo.isPlainObject(e)&&qo.isPlainObject(t)?qo.merge(e,t):qo.isPlainObject(t)?qo.merge({},t):qo.isArray(t)?t.slice():t}function o(n){return qo.isUndefined(t[n])?qo.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function r(e){if(!qo.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return qo.isUndefined(t[n])?qo.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function s(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var l={url:r,method:r,data:r,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 qo.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,i=t(e);qo.isUndefined(i)&&t!==s||(n[e]=i);})),n},Zo="0.27.2",Jo=Zo,Xo=$i,_o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){_o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e};}));var $o={};_o.transitional=function(e,t,n){function i(e,t){return "[Axios v"+Jo+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,r){if(!1===e)throw new Xo(i(o," has been removed"+(t?" in "+t:"")),Xo.ERR_DEPRECATED);return t&&!$o[o]&&($o[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}};var er={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Xo("options must be an object",Xo.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var r=i[o],a=t[r];if(a){var s=e[r],l=void 0===s||a(s,r,e);if(!0!==l)throw new Xo("option "+r+" must be "+l,Xo.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Xo("Unknown option "+r,Xo.ERR_BAD_OPTION)}},validators:_o},tr=Vi,nr=Qi,ir=qi,or=function(e){return Ko(e),e.headers=e.headers||{},e.data=Ho.call(e,e.data,e.headers,e.transformRequest),e.headers=Vo.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Vo.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t];})),(e.adapter||Qo.adapter)(e).then((function(t){return Ko(e),t.data=Ho.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Wo(t)||(Ko(e),t&&t.response&&(t.response.data=Ho.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},rr=Yo,ar=lo,sr=er,lr=sr.validators;function cr(e){this.defaults=e,this.interceptors={request:new ir,response:new ir};}cr.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=rr(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&&sr.assertOptions(n,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected));}));var r,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected);})),!o){var s=[or,void 0];for(Array.prototype.unshift.apply(s,i),s=s.concat(a),r=Promise.resolve(t);s.length;)r=r.then(s.shift(),s.shift());return r}for(var l=t;i.length;){var c=i.shift(),u=i.shift();try{l=c(l);}catch(e){u(e);break}}try{r=or(l);}catch(e){return Promise.reject(e)}for(;a.length;)r=r.then(a.shift(),a.shift());return r},cr.prototype.getUri=function(e){e=rr(this.defaults,e);var t=ar(e.baseURL,e.url);return nr(t,e.params,e.paramsSerializer)},tr.forEach(["delete","get","head","options"],(function(e){cr.prototype[e]=function(t,n){return this.request(rr(n||{},{method:e,url:t,data:(n||{}).data}))};})),tr.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(rr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}cr.prototype[e]=t(),cr.prototype[e+"Form"]=t(!0);}));var ur=cr,dr=ho;function pr(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,i=n._listeners.length;for(t=0;t",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},va=function(e){return ha[e]};function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i);}return n}function ba(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};xa=ba(ba({},xa),e);}(e.options.react),function(e){ya=e;}(e);}},Oa=Sr.exports.createContext(),Ia=function(){function e(){Ca(this,e),this.usedNamespaces={};}return Sa(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0);}));}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Ta(e){if(Array.isArray(e))return e}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,i=Sr.exports.useContext(Oa)||{},o=i.i18n,r=i.defaultNS,a=n||o||wa();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Ia),!a){da("You will need to pass in an i18next instance by using initReactI18next");var s=function(e,t){return "string"==typeof t?t:t&&"object"===xr(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&void 0!==a.options.react.wait&&da("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Pa(Pa(Pa({},xa),a.options.react),t),u=c.useSuspense,d=c.keyPrefix,p=r||a.options&&a.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var g=(a.isInitialized||a.initializedStoreOnce)&&p.every((function(e){return function(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,i){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return !1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.languages[0],o=!!t.options&&t.options.fallbackLng,r=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return !0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===i||2===i};return !(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(i,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(i,e)||o&&!a(r,e)))}(e,t,n):(da("i18n.languages were undefined or empty",t.languages),!0)}(e,a,c)}));function m(){return a.getFixedT(t.lng||null,"fallback"===c.nsMode?p:p[0],d)}var f=Ba(Sr.exports.useState(m),2),h=f[0],v=f[1],A=p.join();t.lng&&(A="".concat(t.lng).concat(A));var b=function(e,t){var n=Sr.exports.useRef();return Sr.exports.useEffect((function(){n.current=e;}),[e,t]),n.current}(A),y=Sr.exports.useRef(!0);Sr.exports.useEffect((function(){var e=c.bindI18n,n=c.bindI18nStore;function i(){y.current&&v(m);}return y.current=!0,g||u||(t.lng?ma(a,t.lng,p,(function(){y.current&&v(m);})):ga(a,p,(function(){y.current&&v(m);}))),g&&b&&b!==A&&y.current&&v(m),e&&a&&a.on(e,i),n&&a&&a.store.on(n,i),function(){y.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,i)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,i)}));}}),[a,A]);var x=Sr.exports.useRef(!0);Sr.exports.useEffect((function(){y.current&&!x.current&&v(m),x.current=!1;}),[a,d]);var w=[h,a,g];if(w.t=h,w.i18n=a,w.ready=g,g)return w;if(!g&&!u)return w;throw new Promise((function(e){t.lng?ma(a,t.lng,p,(function(){return e()})):ga(a,p,(function(){return e()}));}))}var Da={};Object.defineProperty(Da,"__esModule",{value:!0});var Fa=Da.Md5=void 0,za=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,i,o,r,a=e.hexChars,s=e.hexOut;for(r=0;r<4;r+=1)for(i=8*r,n=t[r],o=0;o<8;o+=2)s[i+1+o]=a.charAt(15&n),n>>>=4,s[i+0+o]=a.charAt(15&n),n>>>=4;return s.join("")},e._md5cycle=function(e,t){var n=e[0],i=e[1],o=e[2],r=e[3];i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+t[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&o)+t[1]-389564586|0)<<12|r>>>20)+n|0)&n|~r&i)+t[2]+606105819|0)<<17|o>>>15)+r|0)&r|~o&n)+t[3]-1044525330|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+t[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&o)+t[5]+1200080426|0)<<12|r>>>20)+n|0)&n|~r&i)+t[6]-1473231341|0)<<17|o>>>15)+r|0)&r|~o&n)+t[7]-45705983|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+t[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&o)+t[9]-1958414417|0)<<12|r>>>20)+n|0)&n|~r&i)+t[10]-42063|0)<<17|o>>>15)+r|0)&r|~o&n)+t[11]-1990404162|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+t[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&o)+t[13]-40341101|0)<<12|r>>>20)+n|0)&n|~r&i)+t[14]-1502002290|0)<<17|o>>>15)+r|0)&r|~o&n)+t[15]+1236535329|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+t[1]-165796510|0)<<5|n>>>27)+i|0)&o|i&~o)+t[6]-1069501632|0)<<9|r>>>23)+n|0)&i|n&~i)+t[11]+643717713|0)<<14|o>>>18)+r|0)&n|r&~n)+t[0]-373897302|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+t[5]-701558691|0)<<5|n>>>27)+i|0)&o|i&~o)+t[10]+38016083|0)<<9|r>>>23)+n|0)&i|n&~i)+t[15]-660478335|0)<<14|o>>>18)+r|0)&n|r&~n)+t[4]-405537848|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+t[9]+568446438|0)<<5|n>>>27)+i|0)&o|i&~o)+t[14]-1019803690|0)<<9|r>>>23)+n|0)&i|n&~i)+t[3]-187363961|0)<<14|o>>>18)+r|0)&n|r&~n)+t[8]+1163531501|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+t[13]-1444681467|0)<<5|n>>>27)+i|0)&o|i&~o)+t[2]-51403784|0)<<9|r>>>23)+n|0)&i|n&~i)+t[7]+1735328473|0)<<14|o>>>18)+r|0)&n|r&~n)+t[12]-1926607734|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+t[5]-378558|0)<<4|n>>>28)+i|0)^i^o)+t[8]-2022574463|0)<<11|r>>>21)+n|0)^n^i)+t[11]+1839030562|0)<<16|o>>>16)+r|0)^r^n)+t[14]-35309556|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+t[1]-1530992060|0)<<4|n>>>28)+i|0)^i^o)+t[4]+1272893353|0)<<11|r>>>21)+n|0)^n^i)+t[7]-155497632|0)<<16|o>>>16)+r|0)^r^n)+t[10]-1094730640|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+t[13]+681279174|0)<<4|n>>>28)+i|0)^i^o)+t[0]-358537222|0)<<11|r>>>21)+n|0)^n^i)+t[3]-722521979|0)<<16|o>>>16)+r|0)^r^n)+t[6]+76029189|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+t[9]-640364487|0)<<4|n>>>28)+i|0)^i^o)+t[12]-421815835|0)<<11|r>>>21)+n|0)^n^i)+t[15]+530742520|0)<<16|o>>>16)+r|0)^r^n)+t[2]-995338651|0)<<23|i>>>9)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+t[0]-198630844|0)<<6|n>>>26)+i|0)|~o))+t[7]+1126891415|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+t[14]-1416354905|0)<<15|o>>>17)+r|0)|~n))+t[5]-57434055|0)<<21|i>>>11)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+t[12]+1700485571|0)<<6|n>>>26)+i|0)|~o))+t[3]-1894986606|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+t[10]-1051523|0)<<15|o>>>17)+r|0)|~n))+t[1]-2054922799|0)<<21|i>>>11)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+t[8]+1873313359|0)<<6|n>>>26)+i|0)|~o))+t[15]-30611744|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+t[6]-1560198380|0)<<15|o>>>17)+r|0)|~n))+t[13]+1309151649|0)<<21|i>>>11)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+t[4]-145523070|0)<<6|n>>>26)+i|0)|~o))+t[11]-1120210379|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+t[2]+718787259|0)<<15|o>>>17)+r|0)|~n))+t[9]-343485551|0)<<21|i>>>11)+o|0,e[0]=n+e[0]|0,e[1]=i+e[1]|0,e[2]=o+e[2]|0,e[3]=r+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,i,o=this._buffer8,r=this._buffer32,a=this._bufferLength;for(i=0;i>>6),o[a++]=63&n|128;else if(n<55296||n>56319)o[a++]=224+(n>>>12),o[a++]=n>>>6&63|128,o[a++]=63&n|128;else {if((n=1024*(n-55296)+(t.charCodeAt(++i)-56320)+65536)>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");o[a++]=240+(n>>>18),o[a++]=n>>>12&63|128,o[a++]=n>>>6&63|128,o[a++]=63&n|128;}a>=64&&(this._dataLength+=64,e._md5cycle(this._state,r),a-=64,r[0]=r[16]);}return this._bufferLength=a,this},e.prototype.appendAsciiStr=function(t){for(var n,i=this._buffer8,o=this._buffer32,r=this._bufferLength,a=0;;){for(n=Math.min(t.length-a,64-r);n--;)i[r++]=t.charCodeAt(a++);if(r<64)break;this._dataLength+=64,e._md5cycle(this._state,o),r=0;}return this._bufferLength=r,this},e.prototype.appendByteArray=function(t){for(var n,i=this._buffer8,o=this._buffer32,r=this._bufferLength,a=0;;){for(n=Math.min(t.length-a,64-r);n--;)i[r++]=t[a++];if(r<64)break;this._dataLength+=64,e._md5cycle(this._state,o),r=0;}return this._bufferLength=r,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,i=e.state,o=this._state;for(this._dataLength=e.length,this._bufferLength=e.buflen,o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],t=0;t>2);this._dataLength+=n;var a=8*this._dataLength;if(i[n]=128,i[n+1]=i[n+2]=i[n+3]=0,o.set(e.buffer32Identity.subarray(r),r),n>55&&(e._md5cycle(this._state,o),o.set(e.buffer32Identity)),a<=4294967295)o[14]=a;else {var s=a.toString(16).match(/(.*?)(.{0,8})$/);if(null===s)return;var l=parseInt(s[2],16),c=parseInt(s[1],16)||0;o[14]=l,o[15]=c;}return e._md5cycle(this._state,o),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(Fa=Da.Md5=za,"5d41402abc4b2a76b9719d911017c592"!==za.hashStr("hello"))throw new Error("Md5 self test failed.");var Ua={exports:{}};!function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i});},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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 i=n(3),o=n(27).f,r=n(74),a=n(9),s=n(12),l=n(14),c=n(13),u=function(e){var t=function(t,n,i){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,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,p,g,m,f,h,v,A=e.target,b=e.global,y=e.stat,x=e.proto,w=b?i:y?i[A]:(i[A]||{}).prototype,C=b?a:a[A]||(a[A]={}),E=C.prototype;for(p in t)n=!r(b?p:A+(y?".":"#")+p,e.forced)&&w&&c(w,p),m=C[p],n&&(f=e.noTargetGet?(v=o(w,p))&&v.value:w[p]),g=n&&f?f:t[p],n&&typeof m==typeof g||(h=e.bind&&n?s(g,i):e.wrap&&n?u(g):x&&"function"==typeof g?s(Function.call,g):g,(e.sham||g&&g.sham||m&&m.sham)&&l(h,"sham",!0),C[p]=h,x&&(c(a,d=A+"Prototype")||l(a,d,{}),a[d][p]=g,e.real&&E&&!E[p]&&l(E,p,g)));};},function(e,t,n){var i=n(10);e.exports=function(e){if(!i(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 i=n(1),o=n(116),r=n(29),a=n(12),s=n(82),l=n(117),c=function(e,t){this.stopped=e,this.result=t;};e.exports=function(e,t,n){var u,d,p,g,m,f,h,v=n&&n.that,A=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),x=a(t,v,1+A+y),w=function(e){return u&&l(u),new c(!0,e)},C=function(e){return A?(i(e),y?x(e[0],e[1],w):x(e[0],e[1])):y?x(e,w):x(e)};if(b)u=e;else {if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(p=0,g=r(e.length);g>p;p++)if((m=C(e[p]))&&m instanceof c)return m;return new c(!1)}u=d.call(e);}for(f=u.next;!(h=f.call(u)).done;){try{m=C(h.value);}catch(e){throw l(u),e}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)};},function(e,t,n){var i=n(9),o=n(13),r=n(68),a=n(15).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||a(t,e,{value:r.f(e)});};},function(e,t,n){var i=n(3),o=n(53),r=n(13),a=n(40),s=n(58),l=n(81),c=o("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return r(c,e)&&(s||"string"==typeof c[e])||(s&&r(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[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 i=n(7);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}));},function(e,t,n){var i=n(8);e.exports=function(e,t,n){if(i(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,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}};},function(e,t,n){var i=n(19),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(i(e),t)};},function(e,t,n){var i=n(11),o=n(15),r=n(22);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e};},function(e,t,n){var i=n(11),o=n(73),r=n(1),a=n(37),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)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 i=n(9),o=n(3),r=function(e){return "function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]};},function(e,t,n){var i=n(2),o=n(224);e.exports=i?o:function(e){return Map.prototype.entries.call(e)};},function(e,t,n){var i=n(72),o=n(36);e.exports=function(e){return i(o(e))};},function(e,t,n){var i=n(36);e.exports=function(e){return Object(i(e))};},function(e,t,n){var i,o,r,a=n(89),s=n(3),l=n(10),c=n(14),u=n(13),d=n(54),p=n(39),g=n(30),m=s.WeakMap;if(a||d.state){var f=d.state||(d.state=new m),h=f.get,v=f.has,A=f.set;i=function(e,t){if(v.call(f,e))throw new TypeError("Object already initialized");return t.facade=e,A.call(f,e,t),t},o=function(e){return h.call(f,e)||{}},r=function(e){return v.call(f,e)};}else {var b=p("state");g[b]=!0,i=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},r=function(e){return u(e,b)};}e.exports={set:i,get:o,has:r,enforce:function(e){return r(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}};},function(e,t,n){var i=n(9);e.exports=function(e){return i[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 i=n(59),o=n(15).f,r=n(14),a=n(13),s=n(119),l=n(6)("toStringTag");e.exports=function(e,t,n,c){if(e){var u=n?e:e.prototype;a(u,l)||o(u,l,{configurable:!0,value:t}),c&&!i&&r(u,"toString",s);}};},function(e,t,n){var i=n(12),o=n(72),r=n(19),a=n(29),s=n(63),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,p=7==e,g=5==e||d;return function(m,f,h,v){for(var A,b,y=r(m),x=o(y),w=i(f,h,3),C=a(x.length),E=0,S=v||s,M=t?S(m,C):n||p?S(m,0):void 0;C>E;E++)if((g||E in x)&&(b=w(A=x[E],E,y),e))if(t)M[E]=b;else if(b)switch(e){case 3:return !0;case 5:return A;case 6:return E;case 2:l.call(M,A);}else switch(e){case 4:return !1;case 7:l.call(M,A);}return d?-1:c||u?u:M}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)};},function(e,t,n){e.exports=n(107);},function(e,t,n){var i=n(11),o=n(71),r=n(22),a=n(18),s=n(37),l=n(13),c=n(73),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.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 i=n(42),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0};},function(e,t){e.exports={};},function(e,t,n){var i=n(14);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:i(e,t,n);};},function(e,t,n){var i=n(1),o=n(8),r=n(6)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[r])?t:o(n)};},function(e,t,n){var i=n(8),o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i;})),this.resolve=i(t),this.reject=i(n);};e.exports.f=function(e){return new o(e)};},function(e,t,n){n(128);var i=n(129),o=n(3),r=n(45),a=n(14),s=n(23),l=n(6)("toStringTag");for(var c in i){var u=o[c],d=u&&u.prototype;d&&r(d)!==l&&a(d,l,c),s[c]=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 i=n(10);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")};},function(e,t,n){e.exports=n(111);},function(e,t,n){var i=n(53),o=n(40),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))};},function(e,t){var n=0,i=Math.random();e.exports=function(e){return "Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)};},function(e,t,n){var i,o=n(1),r=n(76),a=n(57),s=n(30),l=n(80),c=n(51),u=n(39)("IE_PROTO"),d=function(){},p=function(e){return " + +