@zoom/videosdk
Version:
Zoom Web Video SDK
1 lines • 1.91 MB
JavaScript
"use strict";function e(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Object.defineProperty(exports,"__esModule",{value:!0});var t=0;function r(e){return"__private_"+t+++"_"+e}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s=0;function u(e){return"__private_"+s+++"_"+e}const c="4.0.0",d=`https://dmogdx0jrul3u.cloudfront.net/${c}/lib/av`,l=`https://source.zoom.us/${c}/lib/av`,h=`https://jssdk.zoomus.cn/${c}/lib/av`,f="function"==typeof Buffer,p="function"==typeof TextDecoder?new TextDecoder:void 0,v="function"==typeof TextEncoder?new TextEncoder:void 0,g=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),m=(()=>{let e={};return g.forEach(((t,r)=>e[t]=r)),e})(),y=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,S=String.fromCharCode.bind(String),A="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),b=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),E="function"==typeof btoa?e=>btoa(e):f?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,i,a="";const o=e.length%3;for(let o=0;o<e.length;){if((r=e.charCodeAt(o++))>255||(n=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,a+=g[t>>18&63]+g[t>>12&63]+g[t>>6&63]+g[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},k=f?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(S.apply(null,e.subarray(r,r+4096)));return E(t.join(""))},C=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?S(192|t>>>6)+S(128|63&t):S(224|t>>>12&15)+S(128|t>>>6&63)+S(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return S(240|t>>>18&7)+S(128|t>>>12&63)+S(128|t>>>6&63)+S(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,T=f?e=>Buffer.from(e,"utf8").toString("base64"):v?e=>k(v.encode(e)):e=>E((e=>e.replace(w,C))(e)),R=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,I=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return S((t>>>10)+55296)+S(56320+(1023&t));case 3:return S((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return S((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},D="function"==typeof atob?e=>atob(b(e)):f?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!y.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,i="";for(let a=0;a<e.length;)t=m[e.charAt(a++)]<<18|m[e.charAt(a++)]<<12|(r=m[e.charAt(a++)])<<6|(n=m[e.charAt(a++)]),i+=64===r?S(t>>16&255):64===n?S(t>>16&255,t>>8&255):S(t>>16&255,t>>8&255,255&t);return i},M=f?e=>A(Buffer.from(e,"base64")):e=>A(D(e).split("").map((e=>e.charCodeAt(0)))),O=f?e=>Buffer.from(e,"base64").toString("utf8"):p?e=>p.decode(M(e)):e=>(e=>e.replace(R,I))(D(e)),x=(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")))(T(e)):T(e),P=e=>O((e=>b(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))))(e));function L(e){return x(e,!0)}function N(e){return P(e)}const V=e=>{try{const t=new URL(e);return!("data:"===t.protocol&&"null"===t.origin)&&t.origin!==location.origin}catch(e){return!0}};[d,h,l].map((e=>function(e,t){let r=e;/^https?:\/\//.test(r)||(r=`https://${e}`);try{const e=new URL(r);if(!t)return e.href;if(t.hostname)return e.hostname}catch(e){return""}return""}(e,{hostname:!0})));var U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var F,B={exports:{}},W=B.exports,G=(F||(F=1,function(e,t){var r,n,i=["matchRegex"],a=["el"];function o(e){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&p(i,r.prototype),i}(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},o(e)}function s(e,t,r,n){var i=u(h(e.prototype),t,r);return"function"==typeof i?function(e){return i.apply(r,e)}:i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},u.apply(null,arguments)}function c(e,t,r){return t=h(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(e,l()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){return m(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||b(e,t)||g()}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){if(Array.isArray(e))return e}function y(e){return function(e){if(Array.isArray(e))return E(e)}(e)||S(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function A(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}})),e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function b(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=M(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M(n.key),n)}}function D(e,t,r){return t&&I(e.prototype,t),r&&I(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==j(t)?t:t+""}function O(){var e=F(),t=e.m(O),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function a(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,i[e],t)},delegateYield:function(e,i,a){return t.resultName=i,r(n.d,x(e),a)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(O=function(){return{wrap:function(t,r,n,i){return e.w(a(t),r,n,i&&i.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new X(e,t)},AsyncIterator:V,async:function(e,t,r,i,o){return(n(t)?N:L)(a(e),t,r,i,o)},keys:P,values:x}})()}function x(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(j(e)+" is not iterable")}function P(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function L(e,t,r,n,i){var a=N(e,t,r,n,i);return a.next().then((function(e){return e.done?e.value:a.next()}))}function N(e,t,r,n,i){return new V(F().w(e,t,r,n),i||Promise)}function V(e,t){function r(n,i,a,o){try{var s=e[n](i),u=s.value;return u instanceof X?t.resolve(u.v).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,o)}))}catch(e){o(e)}}var n;this.next||(B(V.prototype),B(V.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),B(this,"_invoke",(function(e,i,a){function o(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(o,o):o()}),!0)}function F(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function a(r,n,i,a){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return B(c,"_invoke",function(r,n,i){var a,s,u,c=0,d=i||[],l=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,r){return a=t,s=0,u=e,h.n=r,o}};function f(r,n){for(s=r,u=n,t=0;!l&&c&&!i&&t<d.length;t++){var i,a=d[t],f=h.p,p=a[2];r>3?(i=p===n)&&(u=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((i=r<2&&f<a[1])?(s=0,h.v=n,h.n=a[1]):f<p&&(i=r<3||a[0]>n||n>p)&&(a[4]=r,a[5]=n,h.n=p,s=0))}if(i||r>1)return o;throw l=!0,n}return function(i,d,p){if(c>1)throw TypeError("Generator is already running");for(l&&1===d&&f(d,p),s=d,u=p;(t=s<2?e:u)||!l;){a||(s?s<3?(s>1&&(h.n=-1),f(s,u)):h.n=u:h.v=u);try{if(c=2,a){if(s||(i="next"),t=a[i]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);a=e}else if((t=(l=h.n<0)?u:r.call(n,h))!==o)break}catch(t){a=e,s=1,u=t}finally{c=1}}return{value:t,done:l}}}(r,i,a),!0),c}var o={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(B(t={},n,(function(){return this})),t),l=c.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,B(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return u.prototype=c,B(l,"constructor",c),B(c,"constructor",u),u.displayName="GeneratorFunction",B(c,i,"GeneratorFunction"),B(l),B(l,i,"Generator"),B(l,n,(function(){return this})),B(l,"toString",(function(){return"[object Generator]"})),(F=function(){return{w:a,m:h}})()}function B(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(B=function(e,t,r,n){if(t)i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var a=function(t,r){B(e,t,(function(e){return this._invoke(t,r,e)}))};a("next",0),a("throw",1),a("return",2)}})(e,t,r,n)}function G(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function H(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){G(a,n,i,o,s,"next",e)}function s(e){G(a,n,i,o,s,"throw",e)}o(void 0)}))}}function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e){return function(){return new z(e.apply(this,arguments))}}function z(e){var t,r;function n(t,r){try{var a=e[t](r),o=a.value,s=o instanceof X;Promise.resolve(s?o.v:o).then((function(r){if(s){var u="return"===t?"return":"next";if(!o.k||r.done)return n(u,r);r=e[u](r).value}i(a.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function q(e){return new X(e,0)}function Y(e){var t={},r=!1;function n(t,n){return r=!0,{done:!1,value:new X(n=new Promise((function(r){r(e[t](n))})),1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):n("return",e)}),t}function X(e,t){this.v=e,this.k=t}function Q(e){var t,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new J(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function J(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(J=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new J(e)}z.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},z.prototype.next=function(e){return this._invoke("next",e)},z.prototype.throw=function(e){return this._invoke("throw",e)},z.prototype.return=function(e){return this._invoke("return",e)},r=W,n=function(e){var t;function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError";var n="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,a=0,o=0,s="";i=t.charAt(o++);~i&&(n=a%4?64*n+i:i,a++%4)?s+=String.fromCharCode(255&n>>(-2*a&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function u(e){this.message=e}function l(e,t){if("string"!=typeof e)throw new u("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(n(t).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}catch(e){return n(t)}}(e.split(".")[r]))}catch(e){throw new u("Invalid token specified: "+e.message)}}u.prototype=new Error,u.prototype.name="InvalidTokenError";var h,p=function(e){return e[e.START_MEDIA=0]="START_MEDIA",e[e.ADD_RENDER_VIDEO=1]="ADD_RENDER_VIDEO",e[e.STOP_RENDER_VIDEO=2]="STOP_RENDER_VIDEO",e[e.START_CAPTURE_VIDEO=3]="START_CAPTURE_VIDEO",e[e.STOP_CAPTURE_VIDEO=4]="STOP_CAPTURE_VIDEO",e[e.ADD_RENDER_AUDIO=5]="ADD_RENDER_AUDIO",e[e.STOP_RENDER_AUDIO=6]="STOP_RENDER_AUDIO",e[e.UNMUTE_AUDIO=7]="UNMUTE_AUDIO",e[e.MUTE_AUDIO=8]="MUTE_AUDIO",e[e.CHANGE_FRAME_RATE=9]="CHANGE_FRAME_RATE",e[e.CHANGE_VIDEO_RESOLUTION=10]="CHANGE_VIDEO_RESOLUTION",e[e.CHANGE_AUDIO_SPEAKER=11]="CHANGE_AUDIO_SPEAKER",e[e.CHANGE_VIDEO_CAPTURE_DEVICE=12]="CHANGE_VIDEO_CAPTURE_DEVICE",e[e.CHANGE_CURRENT_ACTIVE_SSRC=13]="CHANGE_CURRENT_ACTIVE_SSRC",e[e.REMOVE_AUDIO_CAPTURE=14]="REMOVE_AUDIO_CAPTURE",e[e.LEAVE_MEETING=15]="LEAVE_MEETING",e[e.MEETING_FAIL_OVER=16]="MEETING_FAIL_OVER",e[e.END_MEDIA=17]="END_MEDIA",e[e.CHANGE_AUDIO_MIC=18]="CHANGE_AUDIO_MIC",e[e.WEBRTC_RESTART=19]="WEBRTC_RESTART",e[e.REMOVE_RENDER_AUDIO=20]="REMOVE_RENDER_AUDIO",e[e.LEAVE_COMPUTER_AUDIO=21]="LEAVE_COMPUTER_AUDIO",e[e.JOIN_COMPUTER_AUDIO=22]="JOIN_COMPUTER_AUDIO",e[e.START_SHARING=23]="START_SHARING",e[e.STOP_SHARING=24]="STOP_SHARING",e[e.SWITCH_CANVAS_FOR_VIDEO_CAPTURE=25]="SWITCH_CANVAS_FOR_VIDEO_CAPTURE",e[e.START_REMOTE_CONTROL=26]="START_REMOTE_CONTROL",e[e.UPDATE_REMOTE_CONTROL_PROPERTIES=27]="UPDATE_REMOTE_CONTROL_PROPERTIES",e[e.CANCEL_REMOTE_CONTROL=28]="CANCEL_REMOTE_CONTROL",e[e.UPDATE_SUBSCRIBE_VIDEO=29]="UPDATE_SUBSCRIBE_VIDEO",e[e.START_DESKTOP_SHARING=30]="START_DESKTOP_SHARING",e[e.STOP_DESKTOP_SHARING=31]="STOP_DESKTOP_SHARING",e[e.PAUSE_DESKTOP_SHARING=32]="PAUSE_DESKTOP_SHARING",e[e.RESUME_DESKTOP_SHARING=33]="RESUME_DESKTOP_SHARING",e[e.CHECK_CHROME_SHARING_EXTENSION=34]="CHECK_CHROME_SHARING_EXTENSION",e[e.SWITCH_CANVAS_FOR_SHARING_CAPTURE=35]="SWITCH_CANVAS_FOR_SHARING_CAPTURE",e[e.CHANGE_CURRENT_SHARING_ACTIVE_SSRC=36]="CHANGE_CURRENT_SHARING_ACTIVE_SSRC",e[e.COMMAND_SOCKET_MESSAGE_NOTIFY=40]="COMMAND_SOCKET_MESSAGE_NOTIFY",e[e.RESEND_REMOTE_CONTROL_POSITION_PDU=41]="RESEND_REMOTE_CONTROL_POSITION_PDU",e[e.AES_GCM_IV_VALUE=42]="AES_GCM_IV_VALUE",e[e.USER_NODE_LIST=43]="USER_NODE_LIST",e[e.UPDATE_SHARING_DECODE_PARAM=44]="UPDATE_SHARING_DECODE_PARAM",e[e.PAUSE_OR_RESUME_AUDIO_DECODE=45]="PAUSE_OR_RESUME_AUDIO_DECODE",e[e.UPDATE_CANVAS_SIZE=46]="UPDATE_CANVAS_SIZE",e[e.CLEAR_CANVAS=47]="CLEAR_CANVAS",e[e.ZOOM_RENDER=48]="ZOOM_RENDER",e[e.SET_OTHER_AUDIO_VOLUME_LEVEL=50]="SET_OTHER_AUDIO_VOLUME_LEVEL",e[e.AUIOD_INTERPRETATION_MUTE=58]="AUIOD_INTERPRETATION_MUTE",e[e.AUDIO_INTERPRETATION_SELECT_LANGUAGE=59]="AUDIO_INTERPRETATION_SELECT_LANGUAGE",e[e.AUDIO_INTERPRETATION_LIST_INFO=60]="AUDIO_INTERPRETATION_LIST_INFO",e[e.AUDIO_INTERPRETATION_ENABLE=61]="AUDIO_INTERPRETATION_ENABLE",e[e.VIDEO_MASK_SETTING=62]="VIDEO_MASK_SETTING",e[e.UPDATE_BG_IMAGE=63]="UPDATE_BG_IMAGE",e[e.UPDATE_MASK_INFO=64]="UPDATE_MASK_INFO",e[e.FINISH_MASK_SETTING=65]="FINISH_MASK_SETTING",e[e.START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS=66]="START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS",e[e.VIDEO_ENABLE_DECODE_HW=70]="VIDEO_ENABLE_DECODE_HW",e[e.VIDEO_ENABLE_ENCODE_HW=71]="VIDEO_ENABLE_ENCODE_HW",e[e.JOIN_DESKTOP_AUDIO=72]="JOIN_DESKTOP_AUDIO",e[e.LEAVE_DESKTOP_AUDIO=73]="LEAVE_DESKTOP_AUDIO",e[e.SET_DESKTOP_VOLUME=74]="SET_DESKTOP_VOLUME",e[e.MIRROR_MY_VIDEO=75]="MIRROR_MY_VIDEO",e[e.QOS_SENDER_REPORT=1176]="QOS_SENDER_REPORT",e[e.CHANGE_AUDIO_VOLUME=1177]="CHANGE_AUDIO_VOLUME",e[e.UPDATE_COOK=1178]="UPDATE_COOK",e[e.ENABLE_VIDEO_OBSERVER=99]="ENABLE_VIDEO_OBSERVER",e[e.NOTIFY_SDK_JOIN_RWG_SUCCESS=113]="NOTIFY_SDK_JOIN_RWG_SUCCESS",e[e.SWITCH_WATER_MARK_FLAG=90]="SWITCH_WATER_MARK_FLAG",e}(p||{}),E=function(e){return e[e.INIT_SUCCESS_VIDEO=1.1]="INIT_SUCCESS_VIDEO",e[e.INIT_SUCCESS_VIDEO_ENCODE=1]="INIT_SUCCESS_VIDEO_ENCODE",e[e.INIT_SUCCESS_VIDEO_DECODE=2]="INIT_SUCCESS_VIDEO_DECODE",e[e.INIT_SUCCESS_AUDIO=1.2]="INIT_SUCCESS_AUDIO",e[e.INIT_SUCCESS_AUDIO_ENCODE=1]="INIT_SUCCESS_AUDIO_ENCODE",e[e.INIT_SUCCESS_AUDIO_DECODE=2]="INIT_SUCCESS_AUDIO_DECODE",e[e.INIT_SUCCESS_SHARING=1.3]="INIT_SUCCESS_SHARING",e[e.INIT_SUCCESS_SHARING_ENCODE=1]="INIT_SUCCESS_SHARING_ENCODE",e[e.INIT_SUCCESS_SHARING_DECODE=2]="INIT_SUCCESS_SHARING_DECODE",e[e.USER_GRANT_AUDIO_CAPTURE=2]="USER_GRANT_AUDIO_CAPTURE",e[e.CURRENT_VIDEO_RESOLUTION=3]="CURRENT_VIDEO_RESOLUTION",e[e.JPEG_DEC_THREAD_OK=4]="JPEG_DEC_THREAD_OK",e[e.JPEG_DATA=5]="JPEG_DATA",e[e.SHARING_PARA=6]="SHARING_PARA",e[e.SHARING_MORE_INFO=6.1]="SHARING_MORE_INFO",e[e.VIDEO_DECODE_MAX_SIZE=7]="VIDEO_DECODE_MAX_SIZE",e[e.CURRENT_CAPTURE_VIDEO_WIDTH_HEIGHT=8]="CURRENT_CAPTURE_VIDEO_WIDTH_HEIGHT",e[e.START_VIDEO_CAPTURE_SUCCESS=9]="START_VIDEO_CAPTURE_SUCCESS",e[e.STOP_VIDEO_CAPTURE_SUCCESS=10]="STOP_VIDEO_CAPTURE_SUCCESS",e[e.START_REMOTE_CONTROL_SUCCESS=11]="START_REMOTE_CONTROL_SUCCESS",e[e.CANCEL_REMOTE_CONTROL_SUCCESS=12]="CANCEL_REMOTE_CONTROL_SUCCESS",e[e.REMOTE_CONTROL_COPIED_TEXT_NOTIFY=13]="REMOTE_CONTROL_COPIED_TEXT_NOTIFY",e[e.MONITOR_LOG=14]="MONITOR_LOG",e[e.SHARING_DECODE_MAX_SIZE=18]="SHARING_DECODE_MAX_SIZE",e[e.SEND_MESSAGE_TO_RWG=20]="SEND_MESSAGE_TO_RWG",e[e.AES_GCM_IV_RESPONSE=21]="AES_GCM_IV_RESPONSE",e[e.SHARING_DESKTOP_STREAM_HAVE_AUDIO=23]="SHARING_DESKTOP_STREAM_HAVE_AUDIO",e[e.JOIN_COMPUTER_AUDIO_COMPLETE=24]="JOIN_COMPUTER_AUDIO_COMPLETE",e[e.JOIN_DESKTOP_AUDIO_COMPLETE=25]="JOIN_DESKTOP_AUDIO_COMPLETE",e[e.LEAVE_COMPUTER_AUDIO_COMPLETE=26]="LEAVE_COMPUTER_AUDIO_COMPLETE",e[e.LEAVE_DESKTOP_AUDIO_COMPLETE=27]="LEAVE_DESKTOP_AUDIO_COMPLETE",e[e.QOS_RECEIVER_CMD=1128]="QOS_RECEIVER_CMD",e[e.VIDEO_REQUEST_IDR=1128.5]="VIDEO_REQUEST_IDR",e[e.FIRST_FRAME=1190]="FIRST_FRAME",e[e.DATACHANNEL_OPEN=1128]="DATACHANNEL_OPEN",e[e.DATACHANNEL_CLOSE=1130]="DATACHANNEL_CLOSE",e[e.DATACHANNEL_RECOVER=1140]="DATACHANNEL_RECOVER",e[e.START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS=66]="START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS",e[e.CURRENT_DECODE_VIDEO_QUALITY=66.5]="CURRENT_DECODE_VIDEO_QUALITY",e[e.SHARING_FIRST_DECODE_FRAME_RECEIVED_SSRC=70]="SHARING_FIRST_DECODE_FRAME_RECEIVED_SSRC",e[e.INIT_FAILED=-1]="INIT_FAILED",e[e.INIT_FAILED_VIDEO=-1.1]="INIT_FAILED_VIDEO",e[e.INIT_FAILED_VIDEO_ENCODE=-1]="INIT_FAILED_VIDEO_ENCODE",e[e.INIT_FAILED_VIDEO_DECODE=-2]="INIT_FAILED_VIDEO_DECODE",e[e.INIT_FAILED_AUDIO=-1.2]="INIT_FAILED_AUDIO",e[e.INIT_FAILED_AUDIO_ENCODE=-1]="INIT_FAILED_AUDIO_ENCODE",e[e.INIT_FAILED_AUDIO_DECODE=-2]="INIT_FAILED_AUDIO_DECODE",e[e.INIT_FAILED_SHARING=-1.3]="INIT_FAILED_SHARING",e[e.USER_FORBIDDED_CAPTURE_AUDIO=-2]="USER_FORBIDDED_CAPTURE_AUDIO",e[e.AUDIO_WEBSOCKET_BROKEN=-3]="AUDIO_WEBSOCKET_BROKEN",e[e.VIDEO_WEBSOCKET_BROKEN=-4]="VIDEO_WEBSOCKET_BROKEN",e[e.JPEG_DEC_THREAD_FAILED=-5]="JPEG_DEC_THREAD_FAILED",e[e.AUDIO_ZERO_DATA=-6]="AUDIO_ZERO_DATA",e[e.USER_FORBIDDED_CAPTURE_VIDEO=-8]="USER_FORBIDDED_CAPTURE_VIDEO",e[e.USER_CAMERA_IS_TAKEN_BY_OTHER_PROGRAMS=-9]="USER_CAMERA_IS_TAKEN_BY_OTHER_PROGRAMS",e[e.START_REMOTE_CONTROL_FAILED=-11]="START_REMOTE_CONTROL_FAILED",e[e.AUDIO_SPEAKER_SET_ERROR=-12]="AUDIO_SPEAKER_SET_ERROR",e[e.DATA_CHANNEL_OFFER=20]="DATA_CHANNEL_OFFER",e[e.AUDIO_AUTO_PLAY_FAILED=-24]="AUDIO_AUTO_PLAY_FAILED",e[e.SHARING_DESKTOP_STREAM_HAVE_NO_AUDIO=-27]="SHARING_DESKTOP_STREAM_HAVE_NO_AUDIO",e[e.WEBGL_LOST_IN_MULTI_VIEW=-32]="WEBGL_LOST_IN_MULTI_VIEW",e[e.FAIL_OVER_RESULT_TO_OUTSIDE_SDK=21]="FAIL_OVER_RESULT_TO_OUTSIDE_SDK",e[e.MASK_SETTING_PARA_ERROR=-33]="MASK_SETTING_PARA_ERROR",e}(E||{}),k="VIDEO_QOS_DATA",I={exports:{}};I.exports=(h=window["disk-file-writer"],function(){var e,t,r={8935:function(e,t,r){function n(){return/\bCrOS\b/.test(navigator.userAgent)}function a(){var e,t;if(n())return!1;var r=((null==navigator?void 0:navigator.userAgent)||"").toLowerCase();if(/ipad|android(?!.*mobile)|tablet/i.test(r))return!0;var i=Math.min((null==(e=null==window?void 0:window.screen)?void 0:e.width)||0,(null==(t=null==window?void 0:window.screen)?void 0:t.height)||0),a="ontouchstart"in window||navigator.maxTouchPoints>0;return i>=600&&i<=1280&&a&&"orientation"in window}function o(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||/iPad/i.test(navigator.userAgent)||/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))}r.d(t,{Cd:function(){return Ze},D:function(){return $e},D$:function(){return Je},GN:function(){return Ke},GQ:function(){return He},GY:function(){return d},HR:function(){return Qe},Pg:function(){return a},Qf:function(){return nt},R_:function(){return g},U0:function(){return rt},U4:function(){return xe},UP:function(){return Ue},Xb:function(){return o},Y9:function(){return Ye},Z_:function(){return qe},Zs:function(){return n},_J:function(){return We},bw:function(){return l},cX:function(){return p},gG:function(){return Me},gi:function(){return it},gm:function(){return Ge},j4:function(){return at},j9:function(){return st},lT:function(){return Ve},n_:function(){return f},nr:function(){return je},pb:function(){return c},uF:function(){return v},uw:function(){return h},vb:function(){return u},vk:function(){return ze},w_:function(){return et},zG:function(){return s},zQ:function(){return ot},zX:function(){return Xe}});var s=function(){return!!(navigator.maxTouchPoints&&navigator.maxTouchPoints>2)&&(/iPad/.test(navigator.platform)||/MacIntel/.test(navigator.platform))},u=function(){return/MSFT Teams Android Room/i.test(navigator.userAgent)},c=function(){var e=null==window?void 0:window.meetingHost;return!!e&&"MSFT"===e.getHostState().vendorId&&!u()},d=function(){return/GoogleMeetRoomDeviceWebViewApp/.test(navigator.userAgent)},l=function(){return/TESLA/.test(navigator.userAgent)},h=function(){return/(iPhone)/.test(navigator.userAgent)},f=function(){return/(iPad|iPhone)/g.test(navigator.userAgent)},p=function(){return navigator.platform.indexOf("Mac")>-1},v=function(){return navigator.platform.indexOf("Win")>-1},g=function(){var e=H(O().mark((function e(){var t,r,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1==navigator.userAgent.indexOf("WOW64")){e.next=2;break}return e.abrupt("return",!0);case 2:if(null==(t=null==navigator?void 0:navigator.userAgentData)||!t.getHighEntropyValues){e.next=7;break}return e.next=5,null==(r=null==navigator?void 0:navigator.userAgentData)?void 0:r.getHighEntropyValues(["wow64"]);case 5:return n=e.sent,e.abrupt("return",!(null==n||!n.wow64));case 7:return e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(e){return"string"==typeof e},y=function(e,t){if(m(e))return e=b(/^\s\s*/,e),void 0===t?e:e.substring(0,500)},_=function(e){return m(e)?e.toLowerCase():e},S=function(e,t){if("object"==j(e)&&e.length>0){for(var r in e)if(_(e[r])==_(t))return!0;return!1}return!!m(e)&&-1!==_(t).indexOf(_(e))},A=function(e,t){for(var r in t)if("object"==j(t[r])&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(S(t[r][n],e))return"?"===r?void 0:r}else if(S(t[r],e))return"?"===r?void 0:r;return"*"in t?t["*"]:e},b=function(e,t){return m(t)?t.replace(e,""):t},E=function(e){return m(e)&&b(/[^\d\.]/g,e).split(".")[0]||""},k=function(e){return m(e)&&b(/[^\d\.]/g,e).split(".")[1]||""},w=function(e){return/^\d/.test(String(e))},I=function(e,t){var r={};if(!e||!t)return{};for(var n,i,a,o,s,u,c=0;c<t.length&&!s;){var d=t[c],l=t[c+1];for(n=0,i=0;n<d.length&&!s&&d[n];)if(s=d[n++].exec(e))for(r.matchRegex=String(d[n-1]),a=0;a<l.length;a++)u=s[++i],"object"==j(o=l[a])&&o.length>0?2===o.length?"function"==typeof o[1]?r[o[0]]=o[1](u):r[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?r[o[0]]=u?u.replace(o[1],o[2]):void 0:r[o[0]]=u?o[1](u,o[2]):void 0:4===o.length&&(r[o[0]]=u?o[3](u.replace(o[1],o[2])):void 0):r[o]=u||void 0;c+=2}return r||{}},M=function(e){for(var t=e.split(".");t.length>1&&0===parseInt(t[t.length-1],10);)t.pop();return t.join(".")},x="version",P="name",L="type",N="inapp",V="model",U="vendor",F="architecture",B="console",W="mobile",G="tablet",K="smarttv",z="wearable",q="xr",Y="embedded",X="Amazon",Q="Apple",J="ASUS",$="BlackBerry",Z="Google",ee="Huawei",te="Lenovo",re="Honor",ne="LG",ie="Microsoft",ae="Motorola",oe="Nvidia",se="OnePlus",ue="OPPO",ce="Samsung",de="Sharp",le="Sony",he="Xiaomi",fe="Zebra",pe="Chrome",ve="Chromecast",ge="Firefox",me="Opera",ye="Facebook",_e="Sogou",Se="Mobile Safari",Ae=" Browser",be="Chromium OS",Ee="Mac OS",ke={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ce=[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[P,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[P,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[P,x],[/opios[\/ ]+([\w\.]+)/i],[x,[P,me+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[x,[P,me+" GX"]],[/\bopr\/([\w\.]+)/i],[x,[P,me]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[x,[P,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[x,[P,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[P,x],[/quark(?:pc)?\/([-\w\.]+)/i],[x,[P,"Quark"]],[/\bddg\/([\w\.]+)/i],[x,[P,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[P,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[x,[P,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[P,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[P,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[P,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[x,[P,"Smart "+te+Ae]],[/(avast|avg)\/([\w\.]+)/i],[[P,/(.+)/,"$1 Secure"+Ae],x],[/\bfocus\/([\w\.]+)/i],[x,[P,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[P,me+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[P,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[P,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[P,me+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[P,"MIUI"+Ae]],[/fxios\/([\w\.-]+)/i],[x,[P,""+ge]],[/\bqihoobrowser\/?([\w\.]*)/i],[x,[P,"360"]],[/\b(qq)\/([\w\.]+)/i],[[P,/(.+)/,"$1Browser"],x],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[P,/(.+)/,"$1"+Ae],x],[/samsungbrowser\/([\w\.]+)/i],[x,[P,ce+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[x,[P,_e+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[P,_e+" Mobile"],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[P,x],[/(lbbrowser|rekonq)/i],[P],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[x,P],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[P,ye],x,[L,N]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[P,x,[L,N]],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[P,"GSA"],[L,N]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[x,[P,"TikTok"],[L,N]],[/\[(linkedin)app\]/i],[P,[L,N]],[/(chromium)[\/ ]([-\w\.]+)/i],[P,x],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[P,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[P,pe+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[P,"Android"+Ae]],[/chrome\/([\w\.]+) mobile/i],[x,[P,"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[P,x],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[x,[P,Se]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[P,Se]],[/version\/([\w\.\,]+) .*(safari)/i],[x,P],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[P,[x,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[P,x],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[P,""+ge],x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[P,"Netscape"],x],[/(wolvic|librewolf)\/([\w\.]+)/i],[P,x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[P,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[P,[x,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[P,[x,/[^\d\.]+./,""]]],we=[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[V,[U,ce],[L,G]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[V,[U,ce],[L,W]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[V,[U,Q],[L,W]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[V,[U,Q],[L,G]],[/(macintosh);/i],[V,[U,Q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[V,[U,de],[L,W]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[V,[U,re],[L,G]],[/honor([-\w ]+)[;\)]/i],[V,[U,re],[L,W]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[V,[U,ee],[L,G]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[V,[U,ee],[L,W]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[V,/_/g," "],[U,he],[L,G]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[V,/_/g," "],[U,he],[L,W]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[V,[U,ue],[L,W]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[V,[U,A,{OnePlus:["304","403","203"],"*":ue}],[L,G]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[V,[U,"Vivo"],[L,W]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[V,[U,"Realme"],[L,W]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[V,[U,ae],[L,W]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[V,[U,ae],[L,G]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[V,[U,ne],[L,G]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[V,[U,ne],[L,W]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[V,[U,te],[L,G]],[/(nokia) (t[12][01])/i],[U,V,[L,G]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?(([-\w\.]*))/i],[[V,/_/g," "],[L,W],[U,"Nokia"]],[/(pixel (c|tablet))\b/i],[V,[U,Z],[L,G]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[V,[U,Z],[L,W]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[V,[U,le],[L,W]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[V,"Xperia Tablet"],[U,le],[L,G]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[V,[U,se],[L,W]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[V,[U,X],[L,G]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[V,/(.+)/g,"Fire Phone $1"],[U,X],[L,W]],[/(playbook);[-\w\),; ]+(rim)/i],[V,U,[L,G]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[V,[U,$],[L,W]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[V,[U,J],[L,G]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[V,[U,J],[L,W]],[/(nexus 9)/i],[V,[U,"HTC"],[L,G]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[U,[V,/_/g," "],[L,W]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[V,[U,"TCL"],[L,G]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[V,[U,"TCL"],[L,W]],[/(itel) ((\w+))/i],[[U,_],V,[L,A,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[V,[U,"Acer"],[L,G]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[V,[U,"Meizu"],[L,W]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[V,[U,"Ulefone"],[L,W]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[V,[U,"Energizer"],[L,W]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[V,[U,"Cat"],[L,W]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[V,[U,"Smartfren"],[L,W]],[/droid.+; (a(?:015|06[35]|142p?))/i],[V,[U,"Nothing"],[L,W]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[U,V,[L,G]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[U,V,[L,W]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[U,V,[L,G]],[/(surface duo)/i],[V,[U,ie],[L,G]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[V,[U,"Fairphone"],[L,W]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[V,[U,oe],[L,G]],[/(sprint) (\w+)/i],[U,V,[L,W]],[/(kin\.[onetw]{3})/i],[[V,/\./g," "],[U,ie],[L,W]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[V,[U,fe],[L,G]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[V,[U,fe],[L,W]],[/smart-tv.+(samsung)/i],[U,[L,K]],[/hbbtv.+maple;(\d+)/i],[[V,/^/,"SmartTV"],[U,ce],[L,K]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[U,ne],[L,K]],[/(apple) ?tv/i],[U,[V,Q+" TV"],[L,K]],[/crkey.*devicetype\/chromecast/i],[[V,ve+" Third Generation"],[U,Z],[L,K]],[/crkey.*devicetype\/([^/]*)/i],[[V,/^/,"Chromecast "],[U,Z],[L,K]],[/fuchsia.*crkey/i],[[V,ve+" Nest Hub"],[U,Z],[L,K]],[/crkey/i],[[V,ve],[U,Z],[L,K]],[/droid.+aft(\w+)( bui|\))/i],[V,[U,X],[L,K]],[/(shield \w+ tv)/i],[V,[U,oe],[L,K]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[V,[U,de],[L,K]],[/(bravia[\w ]+)( bui|\))/i],[V,[U,le],[L,K]],[/(mi(tv|box)-?\w+) bui/i],[V,[U,he],[L,K]],[/Hbbtv.*(technisat) (.*);/i],[U,V,[L,K]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[U,y],[V,y],[L,K]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[V,[L,K]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[L,K]],[/(ouya)/i,/(nintendo) (\w+)/i],[U,V,[L,B]],[/droid.+; (shield)( bui|\))/i],[V,[U,oe],[L,B]],[/(playstation \w+)/i],[V,[U,le],[L,B]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[V,[U,ie],[L,B]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[V,[U,ce],[L,z]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[U,V,[L,z]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[V,[U,ue],[L,z]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[V,[U,Q],[L,z]],[/(opwwe\d{3})/i],[V,[U,se],[L,z]],[/(moto 360)/i],[V,[U,ae],[L,z]],[/(smartwatch 3)/i],[V,[U,le],[L,z]],[/(g watch r)/i],[V,[U,ne],[L,z]],[/droid.+; (wt63?0{2,3})\)/i],[V,[U,fe],[L,z]],[/droid.+; (glass) \d/i],[V,[U,Z],[L,q]],[/(pico) (4|neo3(?: link|pro)?)/i],[U,V,[L,q]],[/; (quest( \d| pro)?)/i],[V,[U,ye],[L,q]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[U,[L,Y]],[/(aeobc)\b/i],[V,[U,X],[L,Y]],[/(homepod).+mac os/i],[V,[U,Q],[L,Y]],[/windows iot/i],[[L,Y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[V,[L,A,{mobile:"Mobile",xr:"VR","*":G}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[L,G]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[L,W]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[V,[U,"Generic"]]],Te=[[/microsoft (windows) (vista|xp)/i],[P,x],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[P,[x,A,ke]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[x,A,ke],[P,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[P,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[P,Ee],[x,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[x,[P,ve+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[x,[P,ve+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[x,[P,ve+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[x,[P,ve+" Linux"]],[/crkey\/([\d\.]+)/i],[x,[P,ve]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,P],[/(ubuntu) ([\w\.]+) like android/i],[[P,/(.+)/,"$1 Touch"],x],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[P,x],[/\(bb(10);/i],[x,[P,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[P,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[P,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[P,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[x,[P,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[P,be],x],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[P,x],[/(sunos) ?([\w\.\d]*)/i],[[P,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[P,x]],Re=[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[F,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)\b/i],[[F,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[F,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[F,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[F,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[F,/ower/,"",_]],[/ sun4\w[;\)]/i],[[F,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[F,_]]],Ie=[[/windows.+ edge\/([\w\.]+)/i],[x,[P,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[P,x],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[P,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[P,x],[/ladybird\//i],[[P,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,P]],De=new(D((function e(){R(this,e),this.ua=navigator.userAgent}),[{key:"removeMatchRegex",value:function(e){return e.matchRegex?(e.matchRegex,T(e,i)):e}},{key:"getDefaultResult",value:function(e){var t,r,n,i=(t=e||this.ua,null!=(r=I(t,Ce))&&r.version&&(r.major=E(String(r.version))||"",r.minor=k(String(r.version))||""),r),a=(n=e||this.ua,I(n,Ie)),o=function(e){var t,r,n=I(e,we);return!n.type&&null!=navigator&&navigator.userAgentData&&null!=(t=null==navigator?void 0:navigator.userAgentData)&&t.mobile&&(n.type=null==(r=null==navigator?void 0:navigator.userAgentData)?void 0:r.mobile),"Macintosh"==n.model&&navigator&&void 0!==(null==navigator?void 0:navigator.standalone)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&(n.model="iPad",n.type="tablet"),n}(e||this.ua),s=function(e){var t,r,n=I(e,Te);return!n.name&&null!=navigator&&navigator.userAgentData&&null!=(t=null==navigator?void 0:navigator.userAgentData)&&t.platform&&(n.name=null==(r=null==navigator?void 0:navigator.userAgentData)?void 0:r.platform),null!=n&&n.version&&w(null==n?void 0:n.version)&&(n.major=E(String(n.version))||"",n.minor=k(String(n.version))||""),n}(e||this.ua),u=function(e){var t=I(e,Re);return t.architecture||(t.architecture=""),t}(e||this.ua);return{ua:e||this.ua,browser:this.removeMatchRegex(i),device:this.removeMatchRegex(o),os:this.removeMatchRegex(s),cpu:this.removeMatchRegex(u),engine:this.removeMatchRegex(a)}}},{key:"getResult",value:function(){var e=H(O().mark((function e(t){var r,n,i,a,o,s,u;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getDefaultResult(t),!t&&this.isSupportUserAgentData()){e.next=3;break}return e.abrupt("return",r);case 3:return n={},e.prev=4,e.next=7,this.getHighEntropyValues();case 7:n=e.sent,e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(4),e.abrupt("return",C(C({},r),{},{error:e.t0}));case 13:return i=this.handleBrowser(n,r.browser),a=this.handleDevice(n,r.device),o=this.handleOs(n,r.os),s=this.handleCpu(n,r.cpu),u=this.handleEngine(n,r.engine),e.abrupt("return",{ua:this.ua,browser:this.removeMatchRegex(i),device:this.removeMatchRegex(a),os:this.removeMatchRegex(o),cpu:this.removeMatchRegex(s),engine:this.removeMatchRegex(u),originHighEntropyValues:n});case 15:case"end":return e.stop()}}),e,this,[[4,10]])})));return function(t){return e.apply(this,arguments)}}()},{key:"isSupportUserAgentData",value:function(){return"object"==("undefined"==typeof navigator?"undefined":j(navigator))&&"userAgentData"in navigator}},{key:"getHighEntropyValues",val