From 73b4fc33bfa5bb61786c573c8034f7e56c64b8f4 Mon Sep 17 00:00:00 2001 From: chenxuting Date: Wed, 24 Jul 2024 20:07:45 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Electron=20SampleCod?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SampleCode/Electron/README.md | 28 ++++++++ SampleCode/Electron/package.json | 19 ++++++ SampleCode/Electron/src/index.css | 7 ++ SampleCode/Electron/src/index.html | 104 +++++++++++++++++++++++++++++ SampleCode/Electron/src/index.js | 97 +++++++++++++++++++++++++++ SampleCode/Electron/src/preload.js | 5 ++ 6 files changed, 260 insertions(+) create mode 100644 SampleCode/Electron/README.md create mode 100644 SampleCode/Electron/package.json create mode 100644 SampleCode/Electron/src/index.css create mode 100644 SampleCode/Electron/src/index.html create mode 100644 SampleCode/Electron/src/index.js create mode 100644 SampleCode/Electron/src/preload.js diff --git a/SampleCode/Electron/README.md b/SampleCode/Electron/README.md new file mode 100644 index 0000000..8298154 --- /dev/null +++ b/SampleCode/Electron/README.md @@ -0,0 +1,28 @@ + +### NEMeeting Electron Sample Code + +### 1. 权限申请 + +在开始集成之前,请确保您已完成以下操作: +联系云信商务获取开通以下权限,并联系技术支持配置产品服务和功能 + +1. 通过文档[应用创建和服务开通](https://github.com/netease-kit/documents/blob/main/%E4%B8%9A%E5%8A%A1%E7%BB%84%E4%BB%B6/%E4%BC%9A%E8%AE%AE%E7%BB%84%E4%BB%B6/%E5%BA%94%E7%94%A8%E5%88%9B%E5%BB%BA%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%BC%80%E9%80%9A.md)完成相关权限开通; +2. 获取对应 AppKey; + +### 运行环境 + +- Node 18.19.0 + + + + +### 安装依赖并启动 + + +``` +npn install + +npm run start +``` + + + diff --git a/SampleCode/Electron/package.json b/SampleCode/Electron/package.json new file mode 100644 index 0000000..378d7f0 --- /dev/null +++ b/SampleCode/Electron/package.json @@ -0,0 +1,19 @@ +{ + "name": "example-meeting-kit-electron", + "private": true, + "productName": "example-meeting-kit-electron", + "version": "1.0.0", + "description": "Electron 会议组件应用示例", + "main": "src/index.js", + "scripts": { + "start": "electron ." + }, + "keywords": [], + "license": "MIT", + "dependencies": { + "nemeeting-electron-sdk": "^4.7.0" + }, + "devDependencies": { + "electron": "24.8.3" + } +} diff --git a/SampleCode/Electron/src/index.css b/SampleCode/Electron/src/index.css new file mode 100644 index 0000000..8856f90 --- /dev/null +++ b/SampleCode/Electron/src/index.css @@ -0,0 +1,7 @@ +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, + Arial, sans-serif; + margin: auto; + max-width: 38rem; + padding: 2rem; +} diff --git a/SampleCode/Electron/src/index.html b/SampleCode/Electron/src/index.html new file mode 100644 index 0000000..768e73d --- /dev/null +++ b/SampleCode/Electron/src/index.html @@ -0,0 +1,104 @@ + + + + + 会议组件使用示例 + + +

💖 会议组件使用示例

+
+ + + + +
未初始化
+
+
+ + + + + +
未登录
+
+
+ + + +
+ + + diff --git a/SampleCode/Electron/src/index.js b/SampleCode/Electron/src/index.js new file mode 100644 index 0000000..5f7801a --- /dev/null +++ b/SampleCode/Electron/src/index.js @@ -0,0 +1,97 @@ +const { app, BrowserWindow, ipcMain } = require('electron') +const path = require('node:path') +const { default: NEMeetingKit } = require('nemeeting-electron-sdk') + +const createWindow = () => { + // Create the browser window. + const mainWindow = new BrowserWindow({ + width: 800, + height: 600, + webPreferences: { + contextIsolation: false, + nodeIntegration: true, + enableRemoteModule: true, + preload: path.join(__dirname, './preload.js'), + }, + }) + + // and load the index.html of the app. + mainWindow.loadFile(path.join(__dirname, 'index.html')) + + // Open the DevTools. + mainWindow.webContents.openDevTools() + + ipcMain.handle('initialize', (_, value) => { + const neMeetingKit = NEMeetingKit.getInstance() + const appKey = value.appKey + const serverUrl = 'https://roomkit.netease.im' + + return neMeetingKit.initialize({ + appKey, + serverUrl, + }) + }) + + ipcMain.handle('loginByPassword', async (_, value) => { + //使用 账号密码 登录 + const neMeetingKit = NEMeetingKit.getInstance() + const accountService = neMeetingKit.getAccountService() + // 用户账户 + const userUuid = value.userUuid + // 用户密码 + const password = value.password + + try { + const res = await accountService.loginByPassword(userUuid, password) + + return res + } catch (error) { + return error + } + }) + + ipcMain.handle('startMeeting', async (_, value) => { + //使用 账号密码 登录 + const neMeetingKit = NEMeetingKit.getInstance() + const meetingService = neMeetingKit.getMeetingService() + + const param = { + displayName: value.displayName, + } + + try { + const res = await meetingService.startMeeting(param) + + return res + } catch (error) { + return error + } + }) +} + +// This method will be called when Electron has finished +// initialization and is ready to create browser windows. +// Some APIs can only be used after this event occurs. +app.whenReady().then(() => { + createWindow() + + // On OS X it's common to re-create a window in the app when the + // dock icon is clicked and there are no other windows open. + app.on('activate', () => { + if (BrowserWindow.getAllWindows().length === 0) { + createWindow() + } + }) +}) + +// Quit when all windows are closed, except on macOS. There, it's common +// for applications and their menu bar to stay active until the user quits +// explicitly with Cmd + Q. +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') { + app.quit() + } +}) + +// In this file you can include the rest of your app's specific main process +// code. You can also put them in separate files and import them here. diff --git a/SampleCode/Electron/src/preload.js b/SampleCode/Electron/src/preload.js new file mode 100644 index 0000000..ca3f904 --- /dev/null +++ b/SampleCode/Electron/src/preload.js @@ -0,0 +1,5 @@ +// See the Electron documentation for details on how to use preload scripts: +// https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts +const { ipcRenderer } = require('electron') + +window.ipcRenderer = ipcRenderer From 49244e007ee5cf48948004ad46564479600901fb Mon Sep 17 00:00:00 2001 From: chenxuting Date: Wed, 24 Jul 2024 20:26:15 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=F0=9F=90=9B=20rm=20serverUrl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SampleCode/Electron/src/index.html | 5 +---- SampleCode/Electron/src/index.js | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SampleCode/Electron/src/index.html b/SampleCode/Electron/src/index.html index 768e73d..e0b7c5c 100644 --- a/SampleCode/Electron/src/index.html +++ b/SampleCode/Electron/src/index.html @@ -9,7 +9,6 @@

💖 会议组件使用示例

-
未初始化
@@ -34,15 +33,13 @@

💖 会议组件使用示例

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