@zoom/cobrowsesdk 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ var e='function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var o=_superPropBase(e,n);if(o){var r=Object.getOwnPropertyDescriptor(o,n);return r.get?r.get.call(arguments.length<3?e:t):r.value}},_get.apply(null,arguments)}function _superPropBase(e,n){for(;!{}.hasOwnProperty.call(e,n)&&null!==(e=_getPrototypeOf(e)););return e}function _createForOfIteratorHelper(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)},_wrapNativeSuper(e)}function _construct(e,n,t){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,n);var r=new(e.bind.apply(e,o));return t&&_setPrototypeOf(r,t.prototype),r}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}function _defineProperty(e,n,t){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _inherits(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_setPrototypeOf(e,n)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var t,o=_getPrototypeOf(e);if(n){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,n){if(n&&("object"==_typeof(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _typeof(e){return _typeof="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},_typeof(e)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function(){return n};var e,n={},t=Object.prototype,o=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function u(e,n,t,o){return Object.defineProperty(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o})}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(n,t,o,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype);return u(a,"_invoke",function(n,t,o){var r=1;return function(i,a){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var u=T(s,o);if(u){if(u===_)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===r)throw r=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=3;var c=l(n,t,o);if("normal"===c.type){if(r=o.done?4:2,c.arg===_)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=4,o.method="throw",o.arg=c.arg)}}}(n,o,new h(r||[])),!0),a}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var _={};function d(){}function E(){}function f(){}var g={};u(g,i,(function(){return this}));var S=Object.getPrototypeOf,p=S&&S(S(v([])));p&&p!==t&&o.call(p,i)&&(g=p);var I=f.prototype=d.prototype=Object.create(g);function R(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(r,i,a,s){var u=l(e[r],e,i);if("throw"!==u.type){var c=u.arg,_=c.value;return _&&"object"==_typeof(_)&&o.call(_,"__await")?n.resolve(_.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(_).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(u.arg)}var r;u(this,"_invoke",(function(e,o){function i(){return new n((function(n,r){t(e,o,n,r)}))}return r=r?r.then(i,i):i()}),!0)}function T(n,t){var o=t.method,r=n.i[o];if(r===e)return t.delegate=null,"throw"===o&&n.i.return&&(t.method="return",t.arg=e,T(n,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a \'"+o+"\' method")),_;var i=l(r,n.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,_;var a=i.arg;return a?a.done?(t[n.r]=a.value,t.next=n.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,_):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}function O(e){this.tryEntries.push(e)}function m(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function h(e){this.tryEntries=[[-1]],e.forEach(O,this),this.reset(!0)}function v(n){if(null!=n){var t=n[i];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,a=function t(){for(;++r<n.length;)if(o.call(n,r))return t.value=n[r],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(_typeof(n)+" is not iterable")}return E.prototype=f,u(I,"constructor",f),u(f,"constructor",E),E.displayName=u(f,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===E||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,s,"GeneratorFunction")),e.prototype=Object.create(I),e},n.awrap=function(e){return{__await:e}},R(C.prototype),u(C.prototype,a,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,o,r,i){void 0===i&&(i=Promise);var a=new C(c(e,t,o,r),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(I),u(I,s,"Generator"),u(I,i,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var o in n)t.unshift(o);return function e(){for(;t.length;)if((o=t.pop())in n)return e.value=o,e.done=!1,e;return e.done=!0,e}},n.values=v,h.prototype={constructor:h,reset:function(n){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(m),!n)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(e){a.type="throw",a.arg=n,t.next=e}for(var r=t.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i[4],s=this.prev,u=i[1],c=i[2];if(-1===i[0])return o("end"),!1;if(!u&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<u)return this.method="next",this.arg=e,o(u),!0;if(s<c)return o(c),!1}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var r=o;break}}r&&("break"===e||"continue"===e)&&r[0]<=n&&n<=r[2]&&(r=null);var i=r?r[4]:{};return i.type=e,i.arg=n,r?(this.method="next",this.next=r[2],_):this.complete(i)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),_},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[2]===e)return this.complete(t[4],t[3]),m(t),_}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[0]===e){var o=t[4];if("throw"===o.type){var r=o.arg;m(t)}return r}}throw Error("illegal catch attempt")},delegateYield:function(n,t,o){return this.delegate={i:v(n),r:t,n:o},"next"===this.method&&(this.arg=e),_}},n}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,n):void 0}}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function _iterableToArrayLimit(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var n=_toPrimitive(e,"string");return"symbol"==_typeof(n)?n:n+""}function _toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var ZoomCobrowseAgentSDK=function(e,n){"use strict";function t(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}function o(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))}var r,i;!function(e){e[e.info=0]="info",e[e.debug=1]="debug",e[e.log=2]="log",e[e.warn=3]="warn",e[e.error=4]="error"}(r||(r={})),function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"}(i||(i={}));var a=_createClass((function e(){_classCallCheck(this,e)})),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){if(e.__esModule)return e;var n=e.default;if("function"==typeof n){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(n,t))}return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),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 c={},l={get exports(){return c},set exports(e){c=e}};var _,d={},E={get exports(){return d},set exports(e){d=e}},f=u(Object.freeze({__proto__:null,default:{}}));function g(){return _||(_=1,E.exports=(e=e||function(e,n){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==s&&s.crypto&&(t=s.crypto),!t)try{t=f}catch(e){}var o=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},a=i.lib={},u=a.Base={extend:function(e){var n=r(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||_).stringify(this)},concat:function(e){var n=this.words,t=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n[o+i>>>2]|=a<<24-(o+i)%4*8}else for(var s=0;s<r;s+=4)n[o+s>>>2]=t[s>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,t=this.sigBytes;n[t>>>2]&=4294967295<<32-t%4*8,n.length=e.ceil(t/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],t=0;t<e;t+=4)n.push(o());return new c.init(n,e)}}),l=i.enc={},_=l.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o+=2)t[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new c.init(t,n/2)}},d=l.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o++)t[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new c.init(t,n)}},E=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=E.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,o=this._data,r=o.words,i=o.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,i);if(u){for(var _=0;_<u;_+=a)this._doProcessBlock(r,_);t=r.splice(0,u),o.sigBytes-=l}return new c.init(t,l)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(n,t){return new e.init(t).finalize(n)}},_createHmacHelper:function(e){return function(n,t){return new S.HMAC.init(e,t).finalize(n)}}});var S=i.algo={};return i}(Math),e)),d;var e}l.exports=g().enc.Utf8;var S={};!function(e,n){var t;e.exports=(t=g(),function(){var e=t,n=e.lib.WordArray;function o(e,t,o){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=o[e.charCodeAt(a-1)]<<a%4*2|o[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return n.create(r,i)}e.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,o=this._map;e.clamp();for(var r=[],i=0;i<t;i+=3)for(var a=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<t;s++)r.push(o.charAt(a>>>6*(3-s)&63));var u=o.charAt(64);if(u)for(;r.length%4;)r.push(u);return r.join("")},parse:function(e){var n=e.length,t=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<t.length;i++)r[t.charCodeAt(i)]=i}var a=t.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}({get exports(){return S},set exports(e){S=e}});var p=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var I,R,C,T=(I=(new Date).getTime(),R=performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random();return I>0?(n=(I+n)%16|0,I=Math.floor(I/16)):(n=(R+n)%16|0,R=Math.floor(R/16)),("x"===e?n:3&n|8).toString(16)}))),O=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t},m=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t="".concat(e);t.length<n;)t="0".concat(t);return t},h=function(e){var n=new Date(e),t=n.getUTCFullYear(),o=m(n.getUTCMonth()+1),r=m(n.getUTCDate()),i=m(n.getUTCHours()),a=m(n.getUTCMinutes()),s=m(n.getUTCSeconds()),u=m(n.getUTCMilliseconds(),3);return"".concat(t,"-").concat(o,"-").concat(r," ").concat(i,":").concat(a,":").concat(s,".").concat(u)},v={version:"000001",flag:"0"},A=function(e){return e.reduce((function(e,n){var t,o,i,a,s,u,c,l=(o=(t=n).message,i=t.logLevel,a=t.tags,s=t.timestamp,t.id,u=O(t,["message","logLevel","tags","timestamp","id"]),c=Object.assign({time:h(s),logLevel:r[i],message:o,tags:a,laplaceSessionId:T},u),p(c)),_=function(e){for(var n=e.length,t=e.length-1;t>=0;t--){var o=e.charCodeAt(t);o>127&&o<=2047?n++:o>2047&&o<=65535&&(n+=2),o>=56320&&o<=57343&&t--}return n}(l),d=e[e.length-1];return d.currentSize+_>30720?e.push({messages:[l],ids:[n.id],currentSize:_}):(d.messages.push(l),d.ids.push(n.id),d.currentSize+=_),e}),[{messages:[],ids:[],currentSize:0}]).filter((function(e){return e.currentSize>0})).map((function(e){return{messages:e.messages.join("\\n"),ids:e.ids,meta:v}}))};function N(e){return new Promise((function(n,t){e.oncomplete=e.onsuccess=function(){return n(e.result)},e.onabort=e.onerror=function(){return t(e.error)}}))}function D(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var o=N(t);return function(e,t){return o.then((function(o){return t(o.transaction(n,e).objectStore(n))}))}}function y(){return C||(C=D("keyval-store","keyval")),C}function b(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:y())("readwrite",(function(t){return t.put(n,e),N(t.transaction)}))}function P(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:y())("readwrite",(function(n){return e.forEach((function(e){return n.delete(e)})),N(n.transaction)}))}function w(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:y())("readwrite",(function(e){return e.clear(),N(e.transaction)}))}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y();return e("readonly",(function(n){if(n.getAll&&n.getAllKeys)return Promise.all([N(n.getAllKeys()),N(n.getAll())]).then((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];return t.map((function(e,n){return[e,o[n]]}))}));var t=[];return e("readonly",(function(e){return function(e,n){return e.openCursor().onsuccess=function(){this.result&&(n(this.result),this.result.continue())},N(e.transaction)}(e,(function(e){return t.push([e.key,e.value])})).then((function(){return t}))}))}))}var M=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},F=new(function(){function e(){_classCallCheck(this,e),this.queue=[],this.processing=!1}return _createClass(e,[{key:"enqueue",value:function(e){var n=this;return new Promise((function(t,o){n.queue.push((function(){return M(n,void 0,void 0,_regeneratorRuntime().mark((function n(){var r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e();case 3:r=n.sent,t(r),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),o(n.t0);case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))})),n.processing||n.processNext()}))}},{key:"processNext",value:function(){return M(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue.length){e.next=3;break}return this.processing=!1,e.abrupt("return");case 3:return this.processing=!0,n=this.queue.shift(),e.prev=5,e.next=8,n();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("Task error:",e.t0);case 13:this.processNext();case 14:case"end":return e.stop()}}),e,this,[[5,10]])})))}}]),e}()),k=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},U=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.set=function(e,n){try{return!t.disableDB&&F.enqueue((function(){return k(t,void 0,void 0,_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",b(e,n,this.store));case 1:case"end":return t.stop()}}),t,this)})))}))}catch(e){t.disableDB=!0}},this.makeNextId=function(){return t.nextId+=1,t.nextId},this.addLog=function(e){t.addToMemory(e);var n=e.id;return Number.isNaN(n),t.set("".concat(n),e)},this.addToMemory=function(e,n){t.memoryStoreData=n?[].concat(e):t.memoryStoreData.concat(e)},this.syncFromIDB=function(){return k(t,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,o,r,i,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F.enqueue((function(){return k(a,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",L(this.store));case 1:case"end":return e.stop()}}),e,this)})))}));case 2:if(t=e.sent,o=t.filter((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];return!(null==o?void 0:o.id)&&0!==(null==o?void 0:o.id)||!Number.isInteger(Number(t))})),r=o.map((function(e){return e[0]})),i=t.filter((function(e){var n=_slicedToArray(e,1)[0];return!r.includes(n)})).sort((function(e,n){var t,o;return(null===(t=e[1])||void 0===t?void 0:t.id)-(null===(o=n[1])||void 0===o?void 0:o.id)})).map((function(e){return _slicedToArray(e,2)[1]})),this.addToMemory(i,!0),!(r.length>0)){e.next=10;break}return e.next=10,this.deleteLogs(r);case 10:return this.nextId=0===this.memoryStoreData.length?0:null===(n=this.memoryStoreData[this.memoryStoreData.length-1])||void 0===n?void 0:n.id,e.abrupt("return",this.memoryStoreData);case 12:case"end":return e.stop()}}),e,this)})))},this.getStore=function(){return t.memoryStoreData},this.filterStore=function(e){var n=[e].flatMap((function(e){return e}));return e?t.memoryStoreData.filter((function(e){return n.some((function(n){return"string"==typeof n?e.tags.some((function(e){return n===e})):"function"==typeof n&&n(e)}))})):t.memoryStoreData},this.deleteLogs=function(e){return k(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",F.enqueue((function(){return k(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",P(e.map((function(e){return"".concat(e)})),this.store));case 1:case"end":return n.stop()}}),n,this)})))})));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteLogsAfterReport=function(e){return k(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",P(e.map((function(e){return"".concat(e)})),this.store));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteMemoryLogs=function(e){t.memoryStoreData=t.memoryStoreData.filter((function(n){var t;return!(null===(t=e.includes)||void 0===t?void 0:t.call(e,n.id))}))},this.reset=function(){t.memoryStoreData=[],F.enqueue((function(){return k(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",w(this.store));case 1:case"end":return e.stop()}}),e,this)})))}))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,F.enqueue((function(){return k(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",D(n,n+"-store"));case 1:case"end":return e.stop()}}),e)})))})).then((function(e){t.store=e}))}));function x(e,n,t){var o=e.plugins;return Array.isArray(o)?o.map((function(e){return e[n]})).reduce((function(n,t){var o=null==t?void 0:t(e,n);return null!=o?o:n}),t):t}var B=function(e){return new Promise((function(n){var t=new XMLHttpRequest;t.open(e.type||"GET",e.url,!0),t.withCredentials=e.withCredentials,t.onerror=function(t){n({error:t,report:e.reportItem})},t.onreadystatechange=function(){if(4===t.readyState){var o=t.status;n(o>=200&&o<300?{report:e.reportItem}:{error:"Request failed, status: ".concat(o,", responseText: ").concat(t.responseText),report:e.reportItem})}},Object.entries(e.headers).forEach((function(e){var n=_slicedToArray(e,2),o=n[0],r=n[1];r&&o&&t.setRequestHeader(o,r)})),t.send(e.data)}))},V="Expected a function",W=NaN,G="[object Symbol]",H=/^\\s+|\\s+$/g,J=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,Y=/^0o[0-7]+$/i,Z=parseInt,K="object"==_typeof(s)&&s&&s.Object===Object&&s,z="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,q=K||z||Function("return this")(),X=Object.prototype.toString,Q=Math.max,$=Math.min,ee=function(){return q.Date.now()};function ne(e,n,t){var o,r,i,a,s,u,c=0,l=!1,_=!1,d=!0;if("function"!=typeof e)throw new TypeError(V);function E(n){var t=o,i=r;return o=r=void 0,c=n,a=e.apply(i,t)}function f(e){var t=e-u;return void 0===u||t>=n||t<0||_&&e-c>=i}function g(){var e=ee();if(f(e))return S(e);s=setTimeout(g,function(e){var t=n-(e-u);return _?$(t,i-(e-c)):t}(e))}function S(e){return s=void 0,d&&o?E(e):(o=r=void 0,a)}function p(){var e=ee(),t=f(e);if(o=arguments,r=this,u=e,t){if(void 0===s)return function(e){return c=e,s=setTimeout(g,n),l?E(e):a}(u);if(_)return s=setTimeout(g,n),E(u)}return void 0===s&&(s=setTimeout(g,n)),a}return n=re(n)||0,te(t)&&(l=!!t.leading,i=(_="maxWait"in t)?Q(re(t.maxWait)||0,n):i,d="trailing"in t?!!t.trailing:d),p.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=u=r=s=void 0},p.flush=function(){return void 0===s?a:S(ee())},p}function te(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function oe(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e)}(e)&&X.call(e)==G}function re(e){if("number"==typeof e)return e;if(oe(e))return W;if(te(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=te(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(H,"");var t=j.test(e);return t||Y.test(e)?Z(e.slice(2),t?2:8):J.test(e)?W:+e}var ie=function(e,n,t){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(V);return te(t)&&(o="leading"in t?!!t.leading:o,r="trailing"in t?!!t.trailing:r),ne(e,n,{leading:o,maxWait:n,trailing:r})},ae=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},se={databaseName:"laplace-default-db"},ue=function(e,n,t,o){var r=Date.now();return Object.assign({message:e,logLevel:t,tags:n,timestamp:r},o)},ce=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.cacheFilter=[],this.log=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.log,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ae(t,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,s,u;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=[n,this.publicTags].flatMap((function(e){return e})),s=ue(e,r,o,Object.assign(Object.assign({},this.publicAttributes),a)),(u=x(this,i.beforeLog,s)).id=this.idbManager.makeNextId(),this.idbManager.addLog(u),x(this,i.afterLog,u);case 6:case"end":return t.stop()}}),t,this)})))},this.deleteLog=function(e,n){if(!Array.isArray(n)||(t.idbManager.deleteLogs(n),e)){var o=t.idbManager.filterStore(e).map((function(e){return e.id}));t.idbManager.deleteLogs(o)}},this.deleteAll=function(){t.idbManager.reset()},this.getLogs=function(e){return t.idbManager.filterStore(e)},this.setReportUrl=function(e){t.reportUrl=e},this.throttleReport=ie((function(e){t.reportByHttps(e),t.cacheFilter=[]}),5e3,{leading:!0,trailing:!0}),this.reportByFilter=function(e){t.cacheFilter=t.cacheFilter.concat(e),t.throttleReport(t.cacheFilter)},this.reportByHttps=function(e){return ae(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=function(){return ae(o,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((t=this.idbManager.filterStore(e))&&0!==t.length){n.next=3;break}return n.abrupt("return");case 3:return o=x(this,i.beforeReport,t),r=A(o),n.abrupt("return",this.commonReport(r));case 6:case"end":return n.stop()}}),n,this)})))},F.enqueue(t);case 2:case"end":return n.stop()}}),n)})))},this.directReport=function(e,n){var o,i,a,s,u=null!==(o=n.sampleRate)&&void 0!==o?o:1;if(!(Math.random()>u))return s=n.useRawData?e:Object.assign({message:e,time:h(Date.now()),tags:[].concat(_toConsumableArray(null!==(i=null==n?void 0:n.tags)&&void 0!==i?i:[]),_toConsumableArray(t.publicTags)),logLevel:null!==(a=null==n?void 0:n.logLevel)&&void 0!==a?a:r.log,laplaceSessionId:T},t.publicAttributes),t.commonReport([{messages:s,meta:v}],!1)},this.commonReport=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.reportUrl)return Promise.all(e.map((function(e){return{url:t.reportUrl,type:"POST",withCredentials:!1,headers:{},data:p({messages:e.messages,meta:e.meta}),reportItem:e}})).map(B)).then((function(e){var o=e.filter((function(e){return!e.error})).flatMap((function(e){return e.report.ids}));if(x(t,i.afterReport,{removeIds:o}),n)return t.idbManager.deleteLogsAfterReport(o)}))};var o=n.databaseName,a=n.reportUrl,s=void 0===a?"":a,u=n.plugins,c=void 0===u?[]:u,l=n.idbManager,_=n.publicTags,d=void 0===_?[]:_,E=n.publicAttributes,f=void 0===E?{}:E;this.databaseName=o,this.reportUrl=s,this.plugins=c,this.idbManager=l,this.publicTags=d,this.publicAttributes=f,x(this,i.afterInit)}));ce.init=function(e){return ae(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.databaseName,o=new U(void 0===t?"laplace-default-db":t),n.next=4,o.syncFromIDB();case 4:return n.abrupt("return",new ce(Object.assign(Object.assign(Object.assign({},se),e),{idbManager:o})));case 5:case"end":return n.stop()}}),n)})))};var le,_e,de={enable:!0,gatewayEndPoint:"",logLevel:{debug:!1,log:!0,info:!1,print:!1,warn:!0,error:!0},logLevelAutoReport:{debug:!0,log:!0,info:!0,warn:!0,error:!0}},Ee=(null===window||void 0===window?void 0:window.ZMCoBrowsingConfig)||{},fe={enable:Ee.enableZCBClientLog,gatewayEndPoint:Ee.gatewayEndPoint},ge=function(){var e,n=null!==(e=fe.gatewayEndPoint)&&void 0!==e?e:de.gatewayEndPoint;return n||""}(),Se=de,pe=(le="",_e=void 0,{setDynamicReportUrl:function(e){le=e},getDynamicReportUrl:function(){return le},getCurrentReportUrl:function(){return le||ge},setDynamicLaplaceEnabled:function(e){_e=e},getDynamicLaplaceEnabled:function(){return _e}}),Ie=function(){return void 0!==pe.getDynamicLaplaceEnabled()?pe.getDynamicLaplaceEnabled():!!(null!==(e=fe.enable)&&void 0!==e?e:null==de?void 0:de.enable);var e},Re=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;return _classCallCheck(this,t),(o=n.call(this)).config={debug:!1},o.debugLog=function(e){o.config.debug&&console.log("[AutoCleanLogPlugin]: ".concat(e))},o.afterInit=function(e){var n=o.config.expireBefore;if(n){var t=e.idbManager.getStore(),r=("function"==typeof n?t.filter(n):t.filter((function(e){return e.timestamp<n}))).map((function(e){return e.id}));e.deleteLog(void 0,r),o.debugLog("afterInit, clean log id: ".concat(r))}else o.debugLog("early return on beforeInit because expireBefore is falsy")},e&&(o.config=e),o}return _createClass(t)}(a),Ce=["RESOURCE_ERROR","JS_ERROR","UNHANDLED_PROMISE_REJECTION"],Te=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;return _classCallCheck(this,t),(o=n.call(this)).config={debug:!1,publicTags:[]},o.errorCount=0,o.hashErrors={},o.addPublicTags=function(e){var n;return null===(n=o.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},o.debugLog=function(e){o.config.debug&&console.log("[AutoLogErrorPlugin]:",e)},o.ignore=function(e){var n,t,r,i,a;return void 0!==(null===(n=o.config)||void 0===n?void 0:n.maxErrorCount)&&o.errorCount>=(null===(t=o.config)||void 0===t?void 0:t.maxErrorCount)||!!(null===(r=o.config)||void 0===r?void 0:r.ignoredErrorMsgKeywords)&&(e&&(null===(a=null===(i=o.config)||void 0===i?void 0:i.ignoredErrorMsgKeywords)||void 0===a?void 0:a.some((function(n){return null==e?void 0:e.includes(n)}))))},o.report=ie((function(e){}),600,{trailing:!0,leading:!1}),o.afterInit=function(e){if(self.addEventListener){var n=function(n,t,i,a){o.debugLog(i),o.errorCount+=1;try{return(s=n,u=(new TextEncoder).encode(s),crypto.subtle.digest("SHA-1",u).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))).then((function(i){return o.hashErrors[i]?"dismissed":(o.hashErrors[i]=!0,e.log(n,o.addPublicTags([].concat(t)),null!=a?a:r.error,{extraProperties:{messageHash:i}}).then((function(){return e.reportByFilter(Ce)})))})).catch(console.error)}catch(e){return console.error(e),Promise.resolve(e)}var s,u};try{self.addEventListener("error",(function(e){var t,r,i,a,s,u,c;if(!o.ignore(null==e?void 0:e.message)){if("function"==typeof o.config.onError){var l=o.config.onError(e),_=l.message,d=l.tags,E=l.logLevel;return n(_,["JS_ERROR"].concat(_toConsumableArray(d)),e,E)}if((null==e?void 0:e.target)&&((null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.src)||(null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.href))){var f="Load Resource Error in ".concat(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.tagName," element: ").concat((null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.src)||(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.href));return n(f,"RESOURCE_ERROR",e)}var g="Javascript Runtime Error in ".concat(null==e?void 0:e.filename," (").concat(null==e?void 0:e.lineno,":").concat(null==e?void 0:e.colno,"): ").concat(null==e?void 0:e.message,"\\nStack: ").concat(null!==(c=null===(u=null==e?void 0:e.error)||void 0===u?void 0:u.stack)&&void 0!==c?c:null==e?void 0:e.stack);return n(g,"JS_ERROR",e)}})),self.addEventListener("unhandledrejection",(function(e){var t;if(!o.ignore(null===(t=null==e?void 0:e.reason)||void 0===t?void 0:t.message)){if("function"==typeof o.config.onError){var r=o.config.onError(e),i=r.message,a=r.tags,s=r.logLevel;return n(i,["UNHANDLED_PROMISE_REJECTION"].concat(_toConsumableArray(a)),e,s)}var u,c=null==e?void 0:e.reason;return u="string"==typeof c?"Promise Error: ".concat(c):c instanceof Error?"Promise Error: ".concat(c.message," ").concat(c.name," ").concat(c.stack):"object"===_typeof(c)?"Promise Error with reason: ".concat(p(c)):"Promise Error with unrecognized reason: ".concat(c),n(u,"UNHANDLED_PROMISE_REJECTION",e)}}))}catch(e){console.error(e)}o.debugLog("afterInit, add listener")}},e&&(o.config=e),o.config.publicTags=[].concat(null==e?void 0:e.publicTags),o}return _createClass(t)}(a),Oe="__lodash_hash_undefined__",me=9007199254740991,he="[object Arguments]",ve="[object Function]",Ae="[object GeneratorFunction]",Ne="[object Symbol]",De=/^\\[object .+?Constructor\\]$/,ye=/^(?:0|[1-9]\\d*)$/,be="object"==_typeof(s)&&s&&s.Object===Object&&s,Pe="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,we=be||Pe||Function("return this")();function Le(e,n){return!!(e?e.length:0)&&function(e,n,t){if(n!=n)return function(e,n,t,o){var r=e.length,i=t+(o?1:-1);for(;o?i--:++i<r;)if(n(e[i],i,e))return i;return-1}(e,Ue,t);var o=t-1,r=e.length;for(;++o<r;)if(e[o]===n)return o;return-1}(e,n,0)>-1}function Me(e,n,t){for(var o=-1,r=e?e.length:0;++o<r;)if(t(n,e[o]))return!0;return!1}function Fe(e,n){for(var t=-1,o=e?e.length:0,r=Array(o);++t<o;)r[t]=n(e[t],t,e);return r}function ke(e,n){for(var t=-1,o=n.length,r=e.length;++t<o;)e[r+t]=n[t];return e}function Ue(e){return e!=e}function xe(e,n){return e.has(n)}function Be(e,n){return function(t){return e(n(t))}}var Ve,We=Array.prototype,Ge=Function.prototype,He=Object.prototype,Je=we["__core-js_shared__"],je=(Ve=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||""))?"Symbol(src)_1."+Ve:"",Ye=Ge.toString,Ze=He.hasOwnProperty,Ke=He.toString,ze=RegExp("^"+Ye.call(Ze).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),qe=we.Symbol,Xe=Be(Object.getPrototypeOf,Object),Qe=He.propertyIsEnumerable,$e=We.splice,en=qe?qe.isConcatSpreadable:void 0,nn=Object.getOwnPropertySymbols,tn=Math.max,on=pn(we,"Map"),rn=pn(Object,"create");function an(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function sn(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function un(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function cn(e){var n=-1,t=e?e.length:0;for(this.__data__=new un;++n<t;)this.add(e[n])}function ln(e,n){var t=hn(e)||mn(e)?function(e,n){for(var t=-1,o=Array(e);++t<e;)o[t]=n(t);return o}(e.length,String):[],o=t.length,r=!!o;for(var i in e)!n&&!Ze.call(e,i)||r&&("length"==i||Tn(i,o))||t.push(i);return t}function _n(e,n){for(var t,o,r=e.length;r--;)if((t=e[r][0])===(o=n)||t!=t&&o!=o)return r;return-1}function dn(e,n,t,o,r){var i=-1,a=e.length;for(t||(t=Cn),r||(r=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?dn(s,n-1,t,o,r):ke(r,s):o||(r[r.length]=s)}return r}function En(e){if(!Nn(e)||(n=e,je&&je in n))return!1;var n,t=An(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?ze:De;return t.test(function(e){if(null!=e){try{return Ye.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function fn(e){if(!Nn(e))return function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}(e);var n,t,o,r=(t=(n=e)&&n.constructor,o="function"==typeof t&&t.prototype||He,n===o),i=[];for(var a in e)("constructor"!=a||!r&&Ze.call(e,a))&&i.push(a);return i}function gn(e){return function(e,n,t){var o=n(e);return hn(e)?o:ke(o,t(e))}(e,yn,Rn)}function Sn(e,n){var t,o,r=e.__data__;return("string"==(o=_typeof(t=n))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?r["string"==typeof n?"string":"hash"]:r.map}function pn(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return En(t)?t:void 0}an.prototype.clear=function(){this.__data__=rn?rn(null):{}},an.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},an.prototype.get=function(e){var n=this.__data__;if(rn){var t=n[e];return t===Oe?void 0:t}return Ze.call(n,e)?n[e]:void 0},an.prototype.has=function(e){var n=this.__data__;return rn?void 0!==n[e]:Ze.call(n,e)},an.prototype.set=function(e,n){return this.__data__[e]=rn&&void 0===n?Oe:n,this},sn.prototype.clear=function(){this.__data__=[]},sn.prototype.delete=function(e){var n=this.__data__,t=_n(n,e);return!(t<0)&&(t==n.length-1?n.pop():$e.call(n,t,1),!0)},sn.prototype.get=function(e){var n=this.__data__,t=_n(n,e);return t<0?void 0:n[t][1]},sn.prototype.has=function(e){return _n(this.__data__,e)>-1},sn.prototype.set=function(e,n){var t=this.__data__,o=_n(t,e);return o<0?t.push([e,n]):t[o][1]=n,this},un.prototype.clear=function(){this.__data__={hash:new an,map:new(on||sn),string:new an}},un.prototype.delete=function(e){return Sn(this,e).delete(e)},un.prototype.get=function(e){return Sn(this,e).get(e)},un.prototype.has=function(e){return Sn(this,e).has(e)},un.prototype.set=function(e,n){return Sn(this,e).set(e,n),this},cn.prototype.add=cn.prototype.push=function(e){return this.__data__.set(e,Oe),this},cn.prototype.has=function(e){return this.__data__.has(e)};var In=nn?Be(nn,Object):Ln,Rn=nn?function(e){for(var n=[];e;)ke(n,In(e)),e=Xe(e);return n}:Ln;function Cn(e){return hn(e)||mn(e)||!!(en&&e&&e[en])}function Tn(e,n){return!!(n=null==n?me:n)&&("number"==typeof e||ye.test(e))&&e>-1&&e%1==0&&e<n}function On(e){if("string"==typeof e||function(e){return"symbol"==_typeof(e)||Dn(e)&&Ke.call(e)==Ne}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function mn(e){return function(e){return Dn(e)&&vn(e)}(e)&&Ze.call(e,"callee")&&(!Qe.call(e,"callee")||Ke.call(e)==he)}var hn=Array.isArray;function vn(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=me}(e.length)&&!An(e)}function An(e){var n=Nn(e)?Ke.call(e):"";return n==ve||n==Ae}function Nn(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function Dn(e){return!!e&&"object"==_typeof(e)}function yn(e){return vn(e)?ln(e,!0):fn(e)}var bn,Pn,wn=(bn=function(e,n){return null==e?{}:(n=Fe(dn(n,1),On),function(e,n){return function(e,n,t){for(var o=-1,r=n.length,i={};++o<r;){var a=n[o],s=e[a];t(s,a)&&(i[a]=s)}return i}(e=Object(e),n,(function(n,t){return t in e}))}(e,function(e,n,t,o){var r,i=-1,a=Le,s=!0,u=e.length,c=[],l=n.length;if(!u)return c;t&&(n=Fe(n,(r=t,function(e){return r(e)}))),o?(a=Me,s=!1):n.length>=200&&(a=xe,s=!1,n=new cn(n));e:for(;++i<u;){var _=e[i],d=t?t(_):_;if(_=o||0!==_?_:0,s&&d==d){for(var E=l;E--;)if(n[E]===d)continue e;c.push(_)}else a(n,d,o)||c.push(_)}return c}(gn(e),n)))},Pn=tn(void 0===Pn?bn.length-1:Pn,0),function(){for(var e=arguments,n=-1,t=tn(e.length-Pn,0),o=Array(t);++n<t;)o[n]=e[Pn+n];n=-1;for(var r=Array(Pn+1);++n<Pn;)r[n]=e[n];return r[Pn]=o,function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}(bn,this,r)});function Ln(){return[]}var Mn=wn,Fn=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},kn=["STATIC_RESOURCE_TIMING"],Un=function(e,n){if(!n)return!0;for(var t=0;t<n.length;t++)if(e.includes(n[t]))return!0;return!1};var xn=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;return _classCallCheck(this,t),(o=n.call(this)).config={debug:!1,publicTags:[],excludeResourceTimingKeys:[],userRegion:"",enable:!1},o.entryList=[],o.debugLog=function(e){o.config.debug&&console.log("[AutoLogStaticResourcePlugin]:",e)},o.addPublicTags=function(e){var n;return null===(n=o.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},o.pickEntryProperties=function(e){var n,t=e.domainLookupEnd,r=e.domainLookupStart,i=e.redirectStart,a=e.redirectEnd,s=e.connectStart,u=e.connectEnd,c=e.secureConnectionStart,l=e.responseEnd,_=e.responseStart,d=e.requestStart,E=0!==r,f=E?Math.round(t-r):-1,g=E?Math.round(_-d):-1,S=E?Math.round(a-i):-1,p=E?Math.round(u-s):-1;c&&E&&(p=Math.round(u-c));var I,R,C=E?Math.round(l-_):-1,T=navigator.connection?navigator.connection.effectiveType:"Unknown",O=Mn(e,o.config.excludeResourceTimingKeys.concat("toJSON","Symbol(Symbol.toStringTag)","serverTiming")),m=(I=null!==(n=O.name)&&void 0!==n?n:"",(R=(I=I.replace(/\\/+$/,"")).match(/[^/]+$/))?R[0]:null);return Object.assign(Object.assign({},O),{name:m,url:O.name,dns:f,ttfb:g,redirect:S,connect:p,download:C,network:T,duration:Math.round(e.duration),userRegion:o.config.userRegion})},o.afterInit=function(e){var n=o.addPublicTags(["STATIC_RESOURCE_TIMING"]),t=Boolean(o.config.enable);new PerformanceObserver((function(i){i.getEntries().forEach((function(i){return Fn(_assertThisInitialized(o),void 0,void 0,_regeneratorRuntime().mark((function o(){var a,s;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=i.name,!Un(a,this.config.includeResourceList)){o.next=11;break}if(s=this.pickEntryProperties(i),!t){o.next=9;break}return o.next=6,e.log(s,n,r.info);case 6:t&&e.reportByFilter(kn),o.next=11;break;case 9:return o.next=11,e.log(s,n,r.info);case 11:case"end":return o.stop()}}),o,this)})))}))})).observe({type:"resource",buffered:!0})},e&&(o.config=Object.assign({},o.config,e)),o}return _createClass(t)}(a),Bn=function(){function e(){_classCallCheck(this,e),window.ZCB_CoBrowseConfigController=this,this.requestNpmModeAgentConfig()}return _createClass(e,[{key:"getCoBrowsingConfig",value:function(e){var n;return e?window.ZMCoBrowsingConfig?window.ZMCoBrowsingConfig[e]:null===(n=this.coBrowsingConfig)||void 0===n?void 0:n[e]:window.ZMCoBrowsingConfig||this.coBrowsingConfig}},{key:"setCoBrowsingConfig",value:function(e){this.coBrowsingConfig=Object.assign(Object.assign({},this.coBrowsingConfig),e)}},{key:"requestNpmModeAgentConfig",value:function(){var e,n,t;(null===(e=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document))&&window.ZCB_CoBrowseConfigController.setCoBrowsingConfig(Object.assign({isViewer:null===(n=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===n?void 0:n.isViewer,appKey:null===(t=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===t?void 0:t.appKey},window.parent.ZCB_CoBrowseConfigController.coBrowsingConfig))}}],[{key:"create",value:function(){return window.ZCB_CoBrowseConfigController||new e}}]),e}().create(),Vn=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var o={},r=function(){var r=n[i];"string"==typeof r?o[i]=Vn(t,r):"function"==typeof r?o[i]=function(){return Vn(t,r.apply(void 0,arguments))}:"object"===_typeof(r)&&(r instanceof RegExp||(o[i]=e(r,t)))};for(var i in n)r();return o}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing");var Wn,Gn={get createSession(){return"/sdkapi/zcb/sessions"},get getSessionStatus(){return"/sdkapi/zcb/sessions"},get refreshZCBToken(){return"/sdkapi/zcb/refresh-tokens"},get joinSession(){return"/sdkapi/zcb/cobrowse-codes/{pinCode}/session"}},Hn=["zcb.zoomdev.us","dev-zcb.zoomdev.us","go-zcb.zoom.us","us01-zcb.zoom.us","eu01-zcb.zoom.us"];!function(e){e.LOCAL="local",e.PROD="prod"}(Wn||(Wn={}));var Jn,jn,Yn=function(e){try{var n=new URL(e||"");if(Hn.includes(n.hostname))return n.origin+n.pathname}catch(e){console.log("getUrlExcludeDesk: parser url error")}return e};!function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(Jn||(Jn={})),function(e){e.IMG="IMG",e.SOURCE="SOURCE",e.LINK="LINK",e.A="A",e.AUDIO="AUDIO",e.IFRAME="IFRAME",e.FORM="FORM",e.SCRIPT="SCRIPT",e.STYLE="STYLE"}(jn||(jn={}));var Zn,Kn;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(Zn||(Zn={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(Zn.FOLLOWER,"|").concat(Zn.LEADER,")")),function(e){e[e.TYPE_UNKNOWN=-1]="TYPE_UNKNOWN",e[e.TYPE_TOP=1]="TYPE_TOP",e[e.TYPE_FRAME=2]="TYPE_FRAME",e[e.TYPE_AUX=3]="TYPE_AUX",e[e.TYPE_SCRIPT=4]="TYPE_SCRIPT",e[e.TYPE_MODULE=5]="TYPE_MODULE",e[e.TYPE_LINK=6]="TYPE_LINK",e[e.TYPE_XHR=7]="TYPE_XHR",e[e.TYPE_RESOURCE=8]="TYPE_RESOURCE",e[e.TYPE_WORKER=9]="TYPE_WORKER",e[e.TYPE_WORKER_SCOPE=10]="TYPE_WORKER_SCOPE",e[e.TYPE_REDIRECT=11]="TYPE_REDIRECT",e[e.TYPE_PAWS=12]="TYPE_PAWS",e[e.TYPE_CONTINUATION=13]="TYPE_CONTINUATION"}(Kn||(Kn={}));var zn,qn,Xn,Qn,$n,et,nt,tt,ot,rt,it,at,st,ut,ct,lt,_t,dt,Et,ft,gt,St,pt,It,Rt,Ct,Tt,Ot,mt,ht,vt,At,Nt,Dt,yt=function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN||window.ZCB_NPM_SDK_CUSTOMER_MAIN},bt=function(){return window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT},Pt=function(){return Bn.getCoBrowsingConfig("sdkVersion")},wt=function(){return!!Bn.getCoBrowsingConfig("originalSdkVersion")},Lt=function(){return Bn.getCoBrowsingConfig("originalSdkVersion")};!function(e){e.USER_ROSTER="msg_user_roster",e.ROOM_ROSTER="msg_room_roster",e.SESSION_CLOSED="msg_session_closed",e.SESSION_STARTED="msg_session_started",e.SESSION_PERSISTED="msg_session_persisted",e.ERROR="msg_error",e.SESSION_CONNECTING="msg_session_connecting",e.SESSION_RECONNECTING="msg_session_reconnecting",e.RECORD_APPROVE_REQUEST="msg_record_approve_request",e.START_RECORD_RESPONSE="msg_record_started_response",e.STOP_RECORD_RESPONSE="msg_record_stopped_response",e.PAUSE_RECORD_RESPONSE="msg_record_paused_response",e.RESUME_RECORD_RESPONSE="msg_record_resumed_response",e.SOCKET_OPEN="msg_socket_open",e.RECORD_APPROVE_RESPONSE="msg_record_approve_response",e.USER_BE_HOLD_STATUS_CHANGE="msg_user_be_hold_status_change",e.REMOTE_CONTROL_REQUEST="msg_remote_control_request",e.REMOTE_CONTROL_RESPONSE="msg_remote_control_response",e.REMOTE_CONTROL_GIVE_UP="msg_remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="msg_remote_control_take_back",e.REMOTE_CONTROL_REJECT="msg_remote_control_reject",e.REMOTE_CONTROL_CANCEL="msg_remote_control_cancel",e.LEADER_PAGE_VISIBILITY="msg_leader_page_visibility"}(zn||(zn={})),function(e){e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STARTED="remote_control_started",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred"}(qn||(qn={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(Xn||(Xn={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(Qn||(Qn={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat"}($n||($n={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(et||(et={})),function(e){e.NOT_CREATED="session_not_created",e.RECOVERABLE="session_recoverable",e.STARTED="session_started",e.CONNECT_FAILED="connect_failed",e.CONNECTING="session_connecting",e.CANCELING="session_canceling",e.RECONNECTING="session_reconnecting",e.CAN_PERSIST="session_can_persist",e.PERSISTING="session_persisting"}(nt||(nt={})),function(e){e.UNKNOWN="unknown"}(tt||(tt={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(ot||(ot={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="persist"}(rt||(rt={})),function(e){e.zcc="zcc",e.common="common"}(it||(it={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(at||(at={})),function(e){e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM"}(st||(st={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(ut||(ut={})),_defineProperty(_defineProperty(_defineProperty({},st.END_ROOM,ut.END_SESSION),st.DESTROY_DEACTIVE_ROOM,ut.DEACTIVE_SESSION),st.DESTROY_SLEEP_ROOM,ut.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(ct||(ct={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(lt||(lt={})),_defineProperty(_defineProperty({},ct.LEAVE_ROOM,lt.LEAVE_SESSION),ct.DISCONNECTED,lt.DISCONNECT_SESSION),function(e){e.CUSTOMER_END_COBROWSE="Customer has left the Cobrowse session.",e.AGENT_END_COBROWSE="Agent has left the Cobrowse session.",e.END_COBROWSE_CC="THE_COBROWSE_SESSION_HAS_BEEN_ENDED"}(_t||(_t={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(dt||(dt={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session. Please wait....",e.CONNECTING_SESSION="Joining Cobrowse session...",e.UNABLE_JOIN_SESSION_TITLE="Unable to join the Cobrowse session",e.FAILED_RECONNECT_SESSION_TITLE="Failed to reconnect to the Cobrowse session",e.FAILED_RECONNECT_SESSION_CONTENT="The Cobrowse session has ended automatically due to failed reconnection. Please check your network connection and restart the session.",e.ENDED_RECONNECT_SESSION_TITLE="Cobrowse session has ended",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="JOINING_COBROWSE_SESSION",e.UNABLE_JOIN_SESSION_TITLE_CC="UNABLE_JOIN_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_TITLE_CC="FAILED_RECONNECT_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_CONTENT_CC="FAILED_RECONNECT_SESSION_CONTENT",e.ENDED_RECONNECT_SESSION_TITLE_CC="ENDED_RECONNECT_SESSION_TITLE",e.TRANSFER_FAILED_ERROR_TITLE="Failed to transfer to new tab"}(Et||(Et={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(ft||(ft={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session...",e.CONNECTING_SESSION="Connecting to Cobrowse session...",e.GIVE_CONSUMER_CODE="Give the pairing code to your consumer to join:",e.COBROWSE_PIN_CODE="Cobrowse code",e.COBROWSE_PIN_CODE_TIPS="Please inform the following pin code to your support agent, your agent and you will browse this page together.",e.COBROWSE_PIN_CODE_TIPS_MOBILE="Please give this code to your agent.",e.GIVE_CONSUMER_CODE_CC="GIVE_CONSUMER_CODE",e.COBROWSE_PIN_CODE_ERROR_TITLE="Unable to generate pin code",e.COBROWSE_PIN_CODE_ERROR_TIPS="Unable to generate pin code. Please try again later."}(gt||(gt={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(St||(St={})),function(e){e.SESSION_TIMER="SESSION_TIMER",e.AUTO_END_SESSION="AUTO_END_SESSION",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="CONNECTING_TO_COBROWSE_SESSION"}(pt||(pt={})),function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.RemoteControl=7]="RemoteControl"}(It||(It={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}(Rt||(Rt={})),function(e){e[e.Annotation=16]="Annotation"}(Ct||(Ct={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(Tt||(Tt={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(Ot||(Ot={})),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(mt||(mt={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION"}(ht||(ht={})),function(e){e.TRANSFERRING="transferring_in",e.SUCCESS="transfer_in_success",e.FAIL="transfer_in_failed",e.CANCEL="transfer_in_cancelled",e.TRANSFER_OUT_SUCCESS="transfer_out_success"}(vt||(vt={})),function(e){e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local"}(At||(At={})),function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(Nt||(Nt={})),function(e){e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED"}(Dt||(Dt={})),Dt.RECORD_OVERHEAD_CAPACITY,Dt.RECORD_OVERHEAD_CAPACITY;var Mt,Ft={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.START_RECORD_UNAVAILABLE,"start record api not available"),Dt.START_RECORD_INVALID_BODY,"start record response body invalid"),Dt.END_RECORD_UNAVAILABLE,"end record api not available"),Dt.END_RECORD_INVALID_BODY,"end record response body invalid"),Dt.EXIST_RECORD_CONFLICT,"already has an existed recording"),Dt.NO_ACTIVE_RECORD,"no existed recording"),Dt.RECORD_IN_START_PROGRESS,"recording is in start progress"),Dt.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),Dt.RECORD_ALREADY_PAUSED,"recording already paused"),Dt.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.RECORD_NOT_ENABLED,"recording not enabled"),Dt.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),Dt.LEADER_NOT_JOINED,"leader not joined room"),Dt.LEADER_DENIED,"leader denied recording"),Dt.RECORD_ABORTED,"recording aborted"),Dt.CHS_JWT_MISSING,"CHS JWT is empty"),Dt.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),Dt.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),Dt.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),Dt.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.CHS_JWT_VERIFY_FAILED,"token verify failed"),Dt.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),Dt.AID_IN_JWT_MISSING,"aid in token is required"),Dt.UID_IN_JWT_MISSING,"uid in token is required"),Dt.RECORD_ID_MISSING,"recordId is empty"),Dt.RECORD_TASK_NOT_EXIST,"record task not exist"),Dt.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),Dt.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),Dt.PAGE_LOAD_HTML_FAILED,"page load html failed"),Dt.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),Dt.PAGE_START_FAILED,"page start record failed"),Dt.PAGE_STOP_FAILED,"page start stop failed"),Dt.RECORDER_INIT_FAILED,"PageRecorder init failed"),Dt.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),Dt.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),Dt.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),Dt.DISK_USAGE_FULL,"Server disk is full"),Dt.CONNECT_CHS_FAILED,"CHS is not available"),Dt.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),Dt.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),Dt.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),Dt.UDS_INIT_FAILED,"UDSManager init failed"),Dt.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),Dt.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),Dt.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),Dt.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),Dt.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),Dt.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.FILE_META_INIT_FAILED,"MetaDataManager init failed"),Dt.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),Dt.FILE_META_OPEN_FAILED,"open metadata failed"),Dt.FILE_META_LOCK_FAILED,"metadata lock failed"),Dt.FILE_META_RELEASE_FAILED,"metadata release failed"),Dt.FILE_META_WRITE_FAILED,"metadata write failed"),Dt.ZCB_WEB_NOT_AVAILABLE,"web is not available"),Dt.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),Dt.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),Dt.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ft,Dt.REDIS_GET_START_TIME_FAILED,"get record start time failed"),Dt.REDIS_SET_START_TIME_FAILED,"set record start time failed"),Dt.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),Dt.ASSETS_WRITE_FAILED,"write assets to local disk failed"),function(e){e[e.INIT=0]="INIT",e[e.RUNNING=1]="RUNNING",e[e.PAUSE=2]="PAUSE",e[e.FINISH=3]="FINISH"}(Mt||(Mt={}));var kt,Ut;!function(e){e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=8194]="WS_DOC_JSON_JOIN_RES"}(kt||(kt={})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP"}(Ut||(Ut={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Ut.ANNOTATION,!0),Ut.INTERACTION,!0),Ut.INTERACTION_BINARY,!0),Ut.FLYING_CURSOR,!0),_defineProperty({},Ut.RTT,!0);var xt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(xt,Ut.INTERACTION,!0),Ut.INTERACTION_BINARY,!0),Ut.FULL_SNAPSHOT_REQUEST,!0),Ut.REMOTE_CONTROL_STATUS,!0),Ut.REMOTE_CONTROL_REQUEST,!0),Ut.REMOTE_CONTROL_RESPONSE,!0),Ut.REMOTE_CONTROL_GIVE_UP,!0),Ut.REMOTE_CONTROL_TAKE_BACK,!0),Ut.REMOTE_CONTROL_REJECT,!0),Ut.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(xt,Ut.START_RECORD,!0),Ut.RESUME_RECORD,!0),Ut.PAUSE_RECORD,!0),Ut.STOP_RECORD,!0),Ut.ANNOTATION,!0),Ut.FLYING_CURSOR,!0);var Bt,Vt,Wt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Wt,Ut.INTERACTION,!0),Ut.INTERACTION_BINARY,!0),Ut.FULL_SNAPSHOT_REQUEST,!0),Ut.USER_ROSTER,!0),Ut.ROOM_ROSTER,!0),Ut.REMOTE_CONTROL_STATUS,!0),Ut.REMOTE_CONTROL_REQUEST,!0),Ut.REMOTE_CONTROL_RESPONSE,!0),Ut.REMOTE_CONTROL_GIVE_UP,!0),Ut.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Wt,Ut.REMOTE_CONTROL_REJECT,!0),Ut.REMOTE_CONTROL_CANCEL,!0),Ut.START_RECORD,!0),Ut.RESUME_RECORD,!0),Ut.PAUSE_RECORD,!0),Ut.STOP_RECORD,!0),Ut.START_RECORD_RESPONSE,!0),Ut.STOP_RECORD_RESPONSE,!0),Ut.PAUSE_RECORD_RESPONSE,!0),Ut.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Wt,Ut.RECORD_APPROVE_REQUEST,!0),Ut.RECORD_APPROVE_RESPONSE,!0),Ut.ANNOTATION,!0),Ut.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},Ut.RECORD_APPROVE_RESPONSE,!0),Ut.LEAVE_ROOM,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},At.RegisterCustomerCursorDOM,!0),At.UnregisterUser,!0),At.RegisterOtherAgentCursorDOM,!0),At.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT"}(Bt||(Bt={})),_defineProperty(_defineProperty({},Bt.IN_PROGRESS,"remote control is in progress"),Bt.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED"}(Vt||(Vt={})),Vt.LEAVE_ROOM,Vt.WEB_REPORT_USER_JOIN_FAILED,Vt.AUTH_CONFLICT,Vt.AUTH_VERIFY_FAILED,Vt.LEADER_CONFLICT,Vt.FOLLOWER_CONFLICT,Vt.USER_CONFLICT,Vt.SESSION_ALREADY_ENDED,Vt.ROOM_ID_MISSING,Vt.AUTH_PAYLOAD_MISSING,Vt.START_URL_INVALID,Vt.END_ROOM,Vt.DESTROY_DEACTIVE_ROOM,Vt.DESTROY_SLEEP_ROOM,Vt.NO_OTHER_ACTIVE_USER,Vt.RECORD_ALREADY_ENDED,Vt.REACHED_LEADER_LIMIT,Vt.REACHED_FOLLOWER_LIMIT,Vt.SESSION_ALREADY_ENDED,Vt.END_ROOM,Vt.DESTROY_DEACTIVE_ROOM;var Gt,Ht,Jt,jt,Yt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Yt,Vt.LEAVE_ROOM,"normal leave"),Vt.DISCONNECTED,"user disconnected"),Vt.WEB_REPORT_REGION_FAILED,"report region failed"),Vt.WEB_REPORT_REGION_NOT_MATCH,"report region not match"),Vt.WEB_REPORT_USER_JOIN_EMPTY,"report user join status empty result"),Vt.WEB_REPORT_USER_JOIN_FAILED,"report user join status failed"),Vt.WEB_REPORT_USER_JOIN_EMPTY_USER,"report user join response have no current user info"),Vt.AUTH_CONFLICT,"auth is already consumed once"),Vt.AUTH_VERIFY_FAILED,"auth payload is denyed"),Vt.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Yt,Vt.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),Vt.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),Vt.ROOM_NOT_EXIST,"room not exist or create failed"),Vt.ROOM_ADD_USER_FAILED,"room add new user failed"),Vt.LEADER_CONFLICT,"leader already exist"),Vt.FOLLOWER_CONFLICT,"follower already exist"),Vt.ROOM_DEPRECATED,"room is deprecated"),Vt.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),Vt.USER_CONFLICT,"user conflict"),Vt.SESSION_ALREADY_ENDED,"room is already ended"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Yt,Vt.ROOM_ID_MISSING,"room id is required"),Vt.AUTH_PAYLOAD_MISSING,"auth payload is required"),Vt.START_URL_INVALID,"startUrl is invalid"),Vt.SERVER_RESTARTED,"server restarted"),Vt.WSSGW_REMOVE_NODE,"wssgw node instance removed"),Vt.META_DATA_INVALID,"message meta data invalid"),Vt.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),Vt.END_ROOM,"The user actively clicked \'end\'."),Vt.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),Vt.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Yt,Vt.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),Vt.RECORD_ALREADY_ENDED,"record already ended"),Vt.RECORD_START_FAILED,"record start failed"),Vt.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),Vt.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(Gt||(Gt={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(Ht||(Ht={})),function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SESSION_START_FAILED=10004]="SESSION_START_FAILED",e[e.SESSION_END_FAILED=10005]="SESSION_END_FAILED",e[e.SESSION_CREATE_FAILED=10006]="SESSION_CREATE_FAILED",e[e.PARTICIPANT_TYPE_ERROR=10007]="PARTICIPANT_TYPE_ERROR",e[e.CONNECT_SERVER_FAILED=10008]="CONNECT_SERVER_FAILED",e[e.CREATE_CHANNEL_FAILED=10009]="CREATE_CHANNEL_FAILED",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_ID_NOT_FOUND=10011]="SESSION_ID_NOT_FOUND",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SDK_VERSION_NOT_MATCH=10026]="SDK_VERSION_NOT_MATCH",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION"}(Jt||(Jt={})),function(e){e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION"}(jt||(jt={}));var Zt="Create channel failed.",Kt="Create session failed.",zt="End session failed.",qt="Pin code update failed",Xt="Start session failed.",Qt="Session connecting.",$t="Session persisting.",eo="Session canceling.",no="Session id not found.",to="Session connect timeout.",oo="Session already exists.",ro="Unknown Service Exception.",io="SDK version not match.",ao={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ao,Jt.ALL_PING_FAILED,Kt),Jt.EMPTY_PING_LIST,Kt),Jt.SESSION_CREATE_FAILED,Kt),Jt.FRAME_LEVEL_NOT_READY,Kt),Jt.PARTICIPANT_TYPE_ERROR,Xt),Jt.REFRESH_PIN_CODE_FAILED,qt),Jt.SESSION_START_FAILED,Xt),Jt.SESSION_END_FAILED,zt),Jt.SESSION_ID_NOT_FOUND,no),Jt.CONNECT_SERVER_FAILED,Zt),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ao,Jt.CREATE_CHANNEL_FAILED,Zt),Jt.SESSION_CONNECTING,Qt),Jt.SESSION_PERSISTING,$t),Jt.SESSION_CANCELING,eo),Jt.UNKNOWN_SERVICE_EXCEPTION,ro),Jt.SOCKET_RECONNECT_FAILED,Zt),Jt.SOCKET_FAIL_OVER_FAILED,Zt),Jt.DUPLICATE_SESSION,oo),Jt.SDK_VERSION_NOT_MATCH,io),_defineProperty({},jt.CONNECT_TIMEOUT_FAILED,to);var so,uo="The user actively clicked \'end\'.",co="normal",lo="user disconnected",_o="customer already exist",Eo="agent already exist",fo="get auth from redis failed",go="auth payload is denyed",So="auth is already used",po="room id is invalid",Io="room not exist or create failed",Ro="room add new user failed",Co="server restarted",To="wssgw node instance removed",Oo="The session ended automatically because there was only 1 user present for 3 minutes.",mo="The session ended automatically due to no user activity in the session for 5 minutes.",ho="user conflict",vo="meta data invalid",Ao="wssgw instance not found",No="the number of customers has reached the limit",Do="the number of agents has reached the limit",yo={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(yo,Vt.DISCONNECTED,lo),Vt.END_ROOM,uo),Vt.LEAVE_ROOM,co),Vt.LEADER_CONFLICT,_o),Vt.FOLLOWER_CONFLICT,Eo),Vt.AUTH_DB_QUERY_ERROR,fo),Vt.AUTH_VERIFY_FAILED,go),Vt.AUTH_CONFLICT,So),Vt.ROOM_ID_MISSING,po),Vt.ROOM_NOT_EXIST,Io),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(yo,Vt.ROOM_ADD_USER_FAILED,Ro),Vt.SERVER_RESTARTED,Co),Vt.WSSGW_REMOVE_NODE,To),Vt.DESTROY_DEACTIVE_ROOM,Oo),Vt.DESTROY_SLEEP_ROOM,mo),Vt.USER_CONFLICT,ho),Vt.META_DATA_INVALID,vo),Vt.WSSGW_INSTANCE_NOT_FOUND,Ao),Vt.REACHED_LEADER_LIMIT,No),Vt.REACHED_FOLLOWER_LIMIT,Do),function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.LOCKED=126]="LOCKED",e[e.INVALID_TOKEN_MAX=127]="INVALID_TOKEN_MAX",e[e.INVALID_TOKEN_3=129]="INVALID_TOKEN_3",e[e.INVALID_TOKEN_4=401]="INVALID_TOKEN_4",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.PROVIDE_DATA=30100]="PROVIDE_DATA",e[e.TOKEN_EXPIRED=30101]="TOKEN_EXPIRED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.APPKEY_NOT_FOUND=30202]="APPKEY_NOT_FOUND",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.INVALID_TOKEN2=30304]="INVALID_TOKEN2",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_ERROR=30307]="PIN_CODE_ERROR",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.PIN_CODE_INVALID=30311]="PIN_CODE_INVALID",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4"}(so||(so={}));var bo,Po="Service exception.",wo="Invalid token.",Lo="Invalid pincode.",Mo="No permission.",Fo="Invalid business type.",ko="App Key not found.",Uo="Session not found.",xo="Pincode is required.",Bo="Pincode has been used.",Vo="Network error.",Wo="Invalid sdk cdn url.",Go="Inactive sdk version.",Ho=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},so.INVALID_TOKEN,wo),so.INVALID_TOKEN_MAX,wo),so.TOKEN_EXPIRED,wo),so.INVALID_TOKEN2,wo),so.INVALID_TOKEN_3,wo),so.INVALID_TOKEN_4,wo),so.PIN_CODE_ERROR,Lo),so.PIN_CODE_NOT_FOUND,Lo),so.PIN_CODE_EXPIRED,Lo),so.PIN_CODE_NOT_READY,Lo),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,so.PIN_CODE_INVALID,Lo),so.NO_PERMISSION,Mo),so.APPKEY_NOT_FOUND,ko),so.SESSION_NOT_FOUND,Uo),so.PIN_CODE_IS_REQUIRED,xo),so.PIN_CODE_HAS_BEEN_USED,Bo),so.INVALID_BUSINESS_TYPE2,Fo),so.INVALID_BUSINESS_TYPE,Fo),so.UNKNOWN,Po),so.LOCKED,Po),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,so.PROVIDE_DATA,Po),so.INVALID_RECORDING_ID,Po),so.MISSING_FIELD,Po),so.INVALID_SDK_CDN_URL,Wo),so.INACTIVE_SDK_VERSION,Go),so.SEARCH_ERROR,Po),so.FILE_SERVER_ERROR,Po),so.FILE_SERVICE_ERROR,Po),so.FILE_SERVICE_ERROR2,Po),so.INVALID_START_TIME,Po),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,so.INVALID_ACTION,Po),so.INVALID_REGION,Po),so.EXCEEDED_FAILED,Po),so.INVALID_END_TIME,Po),so.SERVER_ERROR1,Po),so.SERVER_ERROR2,Po),so.SERVER_ERROR3,Po),so.SERVER_ERROR4,Po),so.NETWORK_ERROR,Vo));!function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(bo||(bo={}));var Jo,jo="Canceled and ended session.",Yo="Canceled and left session.";_defineProperty(_defineProperty({},bo.CANCEL_END_ROOM,jo),bo.CANCEL_LEAVE_ROOM,Yo),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(Jo||(Jo={}));var Zo,Ko,zo="/sdkapi/zcb/frame-templates/desk",qo="/sdkapi/zcb/frame-templates/viewer";!function(e){e.CustomerFloatingToolbar="customerFloatingToolbar",e.CustomerFloatingToolbarIcon="customerFloatingToolbarIcon",e.CustomerFloatingToolbarText="customerFloatingToolbarText",e.CustomerFloatingToolbarButton="customerFloatingToolbarButton",e.CustomerFloatingToolbarButtonPrefixIcon="customerFloatingToolbarButtonPrefixIcon",e.CustomerScreenBorder="customerScreenBorder",e.CustomerAnnotationToolbarMouseButton="customerAnnotationToolbarMouseButton",e.CustomerAnnotationToolbarVanishingPenButton="customerAnnotationToolbarVanishingPenButton",e.CustomerAnnotationToolbarPenButton="customerAnnotationToolbarPenButton",e.CustomerAnnotationToolbarVanishingRectangleButton="customerAnnotationToolbarVanishingRectangleButton",e.CustomerAnnotationToolbarRectangleButton="customerAnnotationToolbarRectangleButton",e.CustomerAnnotationToolbarEraserButton="customerAnnotationToolbarEraserButton",e.CustomerAnnotationToolbarColorButton="customerAnnotationToolbarColorButton",e.CustomerAnnotationToolbarClearButton="customerAnnotationToolbarClearButton",e.CustomerAnnotationToolbarCloseButton="customerAnnotationToolbarCloseButton",e.CustomerAnnotationToolbarOpenButton="customerAnnotationToolbarOpenButton",e.CustomerJoinSessionDialogOverall="customerJoinSessionDialogOverall",e.CustomerJoinSessionDialogTitle="customerJoinSessionDialogTitle",e.CustomerJoinSessionDialogTitleContent="customerJoinSessionDialogTitleContent",e.CustomerJoinSessionDialogTitleIcon="customerJoinSessionDialogTitleIcon",e.CustomerJoinSessionDialogTopRightCloseButton="customerJoinSessionDialogTopRightCloseButton",e.CustomerJoinSessionDialogLoadingPinCodeIcon="customerJoinSessionDialogLoadingPinCodeIcon",e.CustomerJoinSessionDialogPinCodeTipText="customerJoinSessionDialogPinCodeTipText",e.CustomerJoinSessionDialogPinCodeContent="customerJoinSessionDialogPinCodeContent",e.CustomerJoinSessionDialogFooterContainer="customerJoinSessionDialogFooterContainer",e.CustomerJoinSessionDialogCancelButton="customerJoinSessionDialogCancelButton",e.CustomerEndSessionDialogOverall="customerEndSessionDialogOverall",e.CustomerEndSessionDialogTitleContainer="customerEndSessionDialogTitleContainer",e.CustomerEndSessionDialogContentContainer="customerEndSessionDialogContentContainer",e.CustomerEndSessionDialogFooterContainer="customerEndSessionDialogFooterContainer",e.CustomerEndSessionDialogTitleContent="customerEndSessionDialogTitleContent",e.CustomerEndSessionDialogTitleIcon="customerEndSessionDialogTitleIcon",e.CustomerEndSessionDialogTextContent="customerEndSessionDialogTextContent",e.CustomerEndSessionDialogTopRightCloseButton="customerEndSessionDialogTopRightCloseButton",e.CustomerEndSessionDialogCancelButton="customerEndSessionDialogCancelButton",e.CustomerEndSessionDialogEndSessionButton="customerEndSessionDialogEndSessionButton",e.CustomerReconnectDialogOverall="customerReconnectDialogOverall",e.CustomerReconnectDialogContentContainer="customerReconnectDialogContentContainer",e.CustomerReconnectDialogFooterContainer="customerReconnectDialogFooterContainer",e.CustomerReconnectDialogLoadingIcon="customerReconnectDialogLoadingIcon",e.CustomerReconnectDialogTextContent="customerReconnectDialogTextContent",e.CustomerReconnectDialogCloseButton="customerReconnectDialogCloseButton",e.CustomerReconnectDialogCloseButtonPrefixIcon="customerReconnectDialogCloseButtonPrefixIcon",e.CustomerConnectDialogOverall="customerConnectDialogOverall",e.CustomerConnectDialogContentContainer="customerConnectDialogContentContainer",e.CustomerConnectDialogFooterContainer="customerConnectDialogFooterContainer",e.CustomerConnectDialogLoadingIcon="customerConnectDialogLoadingIcon",e.CustomerConnectDialogTextContent="customerConnectDialogTextContent",e.CustomerConnectDialogCloseButton="customerConnectDialogCloseButton",e.CustomerConnectDialogCloseButtonPrefixIcon="customerConnectDialogCloseButtonPrefixIcon",e.CustomerJoinFailedDialogOverall="customerJoinFailedDialogOverall",e.CustomerJoinFailedDialogTitleContainer="customerJoinFailedDialogTitleContainer",e.CustomerJoinFailedDialogContentContainer="customerJoinFailedDialogContentContainer",e.CustomerJoinFailedDialogFooterContainer="customerJoinFailedDialogFooterContainer",e.CustomerJoinFailedDialogTitleContent="customerJoinFailedDialogTitleContent",e.CustomerJoinFailedDialogTitleIcon="customerJoinFailedDialogTitleIcon",e.CustomerJoinFailedDialogTextContent="customerJoinFailedDialogTextContent",e.CustomerJoinFailedDialogTextSecondaryContent="customerJoinFailedDialogTextSecondaryContent",e.CustomerJoinFailedDialogOkButton="customerJoinFailedDialogOkButton",e.CustomerTransferFailedTitleContent="CustomerTransferFailedTitleContent",e.CustomerTransferFailedTextSecondaryContent="CustomerTransferFailedTextSecondaryContent",e.CustomerTransferFailedOkButton="CustomerTransferFailedOkButton",e.CustomerReconnectFailedDialogOverall="customerReconnectFailedDialogOverall",e.CustomerReconnectFailedDialogTitleContainer="customerReconnectFailedDialogTitleContainer",e.CustomerReconnectFailedDialogContentContainer="customerReconnectFailedDialogContentContainer",e.CustomerReconnectFailedDialogFooterContainer="customerReconnectFailedDialogFooterContainer",e.CustomerReconnectFailedDialogTitleContent="customerReconnectFailedDialogTitleContent",e.CustomerReconnectFailedDialogTitleIcon="customerReconnectFailedDialogTitleIcon",e.CustomerReconnectFailedDialogTextContent="customerReconnectFailedDialogTextContent",e.CustomerReconnectFailedDialogTextSecondaryContent="customerReconnectFailedDialogTextSecondaryContent",e.CustomerReconnectFailedDialogOkButton="customerReconnectFailedDialogOkButton",e.CustomerReconnectTimeoutDialogOverall="customerReconnectTimeoutDialogOverall",e.CustomerReconnectTimeoutDialogTitleContainer="customerReconnectTimeoutDialogTitleContainer",e.CustomerReconnectTimeoutDialogContentContainer="customerReconnectTimeoutDialogContentContainer",e.CustomerReconnectTimeoutDialogFooterContainer="customerReconnectTimeoutDialogFooterContainer",e.CustomerReconnectTimeoutDialogTitleContent="customerReconnectTimeoutDialogTitleContent",e.CustomerReconnectTimeoutDialogTitleIcon="customerReconnectTimeoutDialogTitleIcon",e.CustomerReconnectTimeoutDialogTextContent="customerReconnectTimeoutDialogTextContent",e.CustomerReconnectTimeoutDialogTextSecondaryContent="customerReconnectTimeoutDialogTextSecondaryContent",e.CustomerReconnectTimeoutDialogOkButton="customerReconnectTimeoutDialogOkButton",e.CustomerReconnectTimeoutDialogTopRightCloseButton="customerReconnectTimeoutDialogTopRightCloseButton",e.CustomerDisconnectDialogOverall="customerDisconnectDialogOverall",e.CustomerDisconnectDialogContentContainer="customerDisconnectDialogContentContainer",e.CustomerDisconnectDialogFooterContainer="customerDisconnectDialogFooterContainer",e.CustomerDisconnectDialogLoadingIcon="customerDisconnectDialogLoadingIcon",e.CustomerDisconnectDialogFirstLineTextContent="customerDisconnectDialogFirstLineTextContent",e.CustomerDisconnectDialogSecondLineTextContent="customerDisconnectDialogSecondLineTextContent",e.CustomerDisconnectDialogPinCode="customerDisconnectDialogPinCode",e.CustomerDisconnectDialogEndButton="customerDisconnectDialogCloseButton",e.CustomerDisconnectDialogEndButtonPrefixIcon="customerDisconnectDialogCloseButtonPrefixIcon",e.CustomerToastSuccessPrefixIcon="customerToastSuccessPrefixIcon",e.CustomerToastSuccessWrapper="customerToastSuccessWrapper",e.CustomerToastErrorPrefixIcon="customerToastErrorPrefixIcon",e.CustomerToastErrorWrapper="customerToastErrorWrapper",e.CustomerToastWarningPrefixIcon="customerToastWarningPrefixIcon",e.CustomerToastWarningWrapper="customerToastWarningWrapper",e.CustomerToastDefaultPrefixIcon="customerToastDefaultPrefixIcon",e.CustomerToastDefaultWrapper="customerToastDefaultWrapper",e.CustomerToastInfoPrefixIcon="customerToastInfoPrefixIcon",e.CustomerToastInfoWrapper="customerToastInfoWrapper",e.AgentToolbarVerticalWrapper="agentToolbarVerticalWrapper",e.AgentToolbarHorizontalWrapper="agentToolbarHorizontalWrapper",e.AgentToolbarAllowRotation="agentToolbarAllowRotation",e.AgentToolbarDefaultVertical="agentToolbarDefaultVertical",e.AgentToolbarVerticalNormalBtnsWrapper="agentToolbarVerticalNormalBtnsWrapper",e.AgentToolbarHorizontalNormalBtnsWrapper="agentToolbarHorizontalNormalBtnsWrapper",e.AgentToolbarButtonCommon="agentToolbarButtonCommon",e.AgentToolbarButtonActiveCommon="agentToolbarButtonActiveCommon",e.AgentToolbarTooltipCommon="agentToolbarTooltipCommon",e.AgentToolbarVerticalDivider="agentToolbarVerticalDivider",e.AgentToolbarHorizontalDivider="agentToolbarHorizontalDivider",e.AgentToolbarZoomInButton="agentToolbarZoomInButton",e.AgentToolbarZoomInIcon="agentToolbarZoomInIcon",e.AgentToolbarZoomOutButton="agentToolbarZoomOutButton",e.AgentToolbarZoomOutIcon="agentToolbarZoomOutIcon",e.AgentToolbarZoomMenuButton="agentToolbarZoomMenuButton",e.AgentToolbarZoomMenuIcon="agentToolbarZoomMenuIcon",e.AgentToolbarFullScreenButton="agentToolbarFullScreenButton",e.AgentToolbarFullScreenIcon="agentToolbarFullScreenIcon",e.AgentToolbarExitFullScreenButton="agentToolbarExitFullScreenButton",e.AgentToolbarExitFullScreenIcon="agentToolbarExitFullScreenIcon",e.AgentToolbarVanishingPenButton="agentToolbarVanishingPenButton",e.AgentToolbarVanishingPenIcon="agentToolbarVanishingPenIcon",e.AgentToolbarPenButton="agentToolbarPenButton",e.AgentToolbarPenIcon="agentToolbarPenIcon",e.AgentToolbarEndSessionButton="agentToolbarEndSessionButton",e.AgentToolbarEndSessionIcon="agentToolbarEndSessionIcon",e.AgentToolbarRemoteAssistIcon="agentToolbarRemoteAssistIcon",e.AgentVanishingPenSubMenuVerticalWrapper="agentVanishingPenSubMenuVerticalWrapper",e.AgentVanishingPenSubMenuHorizontalWrapper="agentVanishingPenSubMenuHorizontalWrapper",e.AgentVanishingPenSubMenuButtonCommon="agentVanishingPenSubMenuButtonCommon",e.AgentVanishingPenMenuButtonActiveCommon="agentVanishingPenSubMenuButtonActiveCommon",e.AgentVanishingPenSubMenuMouseButton="agentVanishingPenSubMenuMouseButton",e.AgentVanishingPenSubMenuMouseIcon="agentVanishingPenSubMenuMouseIcon",e.AgentVanishingPenSubMenuVanishingPenButton="agentVanishingPenSubMenuVanishingPenButton",e.AgentVanishingPenSubMenuVanishingPenIcon="agentVanishingPenSubMenuVanishingPenIcon",e.AgentVanishingPenSubMenuVanishingRectangleButton="agentVanishingPenSubMenuVanishingRectangleButton",e.AgentVanishingPenSubMenuVanishingRectangleIcon="agentVanishingPenSubMenuVanishingRectangleIcon",e.AgentVanishingPenSubMenuVanishingColorButton="agentVanishingPenSubMenuVanishingColorButton",e.AgentVanishingPenSubMenuVanishingColorIcon="agentVanishingPenSubMenuVanishingColorIcon",e.AgentPenAnnotationSubMenuVerticalWrapper="agentPenAnnotationSubMenuVerticalWrapper",e.AgentPenAnnotationSubMenuHorizontalWrapper="agentPenAnnotationSubMenuHorizontalWrapper",e.AgentPenAnnotationSubMenuButtonCommon="agentPenAnnotationSubMenuButtonCommon",e.AgentPenAnnotationSubMenuButtonActiveCommon="agentPenAnnotationSubMenuButtonActiveCommon",e.AgentPenAnnotationSubMenuMouseButton="agentPenAnnotationSubMenuMouseButton",e.AgentPenAnnotationSubMenuMouseIcon="agentPenAnnotationSubMenuMouseIcon",e.AgentPenAnnotationSubMenuPenButton="agentPenAnnotationSubMenuPenButton",e.AgentPenAnnotationSubMenuPenIcon="agentPenAnnotationSubMenuPenIcon",e.AgentPenAnnotationSubMenuRectangleButton="agentPenAnnotationSubMenuRectangleButton",e.AgentPenAnnotationSubMenuRectangleIcon="agentPenAnnotationSubMenuRectangleIcon",e.AgentPenAnnotationSubMenuEraserButton="agentPenAnnotationSubMenuEraserButton",e.AgentPenAnnotationSubMenuEraserIcon="agentPenAnnotationSubMenuEraserIcon",e.AgentPenAnnotationSubMenuColorButton="agentPenAnnotationSubMenuColorButton",e.AgentPenAnnotationSubMenuColorIcon="agentPenAnnotationSubMenuColorIcon",e.AgentPenAnnotationSubMenuUndoButton="agentPenAnnotationSubMenuUndoButton",e.AgentPenAnnotationSubMenuUndoIcon="agentPenAnnotationSubMenuUndoIcon",e.AgentPenAnnotationSubMenuRedoButton="agentPenAnnotationSubMenuRedoButton",e.AgentPenAnnotationSubMenuRedoIcon="agentPenAnnotationSubMenuRedoIcon",e.AgentPenAnnotationSubMenuClearButton="agentPenAnnotationSubMenuClearButton",e.AgentPenAnnotationSubMenuClearIcon="agentPenAnnotationSubMenuClearIcon",e.AgentPenSubMenuVerticalWrapper="agentPenSubMenuVerticalWrapper",e.AgentPenSubMenuHorizontalWrapper="agentPenSubMenuHorizontalWrapper",e.AgentPenSubMenuButtonCommon="agentPenSubMenuButtonCommon",e.AgentPenSubMenuButtonActiveCommon="agentPenSubMenuButtonActiveCommon",e.AgentPenSubMenuDrawText="agentPenSubMenuDrawText",e.AgentPenSubMenuLineWidthText="agentPenSubMenuLineWidthText",e.AgentColorSubMenuVerticalWrapper="agentColorSubMenuVerticalWrapper",e.AgentColorSubMenuHorizontalWrapper="agentColorSubMenuHorizontalWrapper",e.AgentColorSubMenuButtonCommon="agentColorSubMenuButtonCommon",e.AgentColorSubMenuActiveButtonCommon="agentColorSubMenuActiveButtonCommon",e.AgentZoomInOutMenuVerticalWrapper="agentZoomInOutMenuVerticalWrapper",e.AgentZoomInOutMenuHorizontalWrapper="agentZoomInOutMenuHorizontalWrapper",e.AgentZoomInOutMenuRoot="agentZoomInOutMenuRoot",e.AgentZoomInOutMenuItem="agentZoomInOutMenuItem",e.AgentZoomInOutMenuItemFitToWindow="agentZoomInOutMenuItemFitToWindow",e.AgentZoomInOutMenuItemActualSize="agentZoomInOutMenuItemActualSize",e.AgentSingleAgentEndSessionDialogOverall="agentSingleAgentEndSessionDialogOverall",e.AgentSingleAgentEndSessionDialogTitleContainer="agentSingleAgentEndSessionDialogTitleContainer",e.AgentSingleAgentEndSessionDialogContentContainer="agentSingleAgentEndSessionDialogContentContainer",e.AgentSingleAgentEndSessionDialogFooterContainer="agentSingleAgentEndSessionDialogFooterContainer",e.AgentSingleAgentEndSessionDialogTitleIcon="agentSingleAgentEndSessionDialogTitleIcon",e.AgentSingleAgentEndSessionDialogTitleContent="agentSingleAgentEndSessionDialogTitleContent",e.AgentSingleAgentEndSessionDialogTextContent="agentSingleAgentEndSessionDialogTextContent",e.AgentSingleAgentEndSessionDialogTopRightCloseButton="agentSingleAgentEndSessionDialogTopRightCloseButton",e.AgentSingleAgentEndSessionDialogCancelButton="agentSingleAgentEndSessionDialogCancelButton",e.AgentSingleAgentEndSessionDialogEndSessionButton="agentSingleAgentEndSessionDialogEndSessionButton",e.AgentMultiAgentsEndSessionDialogOverall="agentMultiAgentsEndSessionDialogOverall",e.AgentMultiAgentsEndSessionDialogTitleContainer="agentMultiAgentsEndSessionDialogTitleContainer",e.AgentMultiAgentsEndSessionDialogContentContainer="agentMultiAgentsEndSessionDialogContentContainer",e.AgentMultiAgentsEndSessionDialogFooterContainer="agentMultiAgentsEndSessionDialogFooterContainer",e.AgentMultiAgentsEndSessionDialogTitleIcon="agentMultiAgentsEndSessionDialogTitleIcon",e.AgentMultiAgentsEndSessionDialogTitleContent="agentMultiAgentsEndSessionDialogTitleContent",e.AgentMultiAgentsEndSessionDialogTextContent="agentMultiAgentsEndSessionDialogTextContent",e.AgentMultiAgentsEndSessionDialogTopRightCloseButton="agentMultiAgentsEndSessionDialogTopRightCloseButton",e.AgentMultiAgentsEndSessionDialogCancelButton="agentMultiAgentsEndSessionDialogCancelButton",e.AgentMultiAgentsEndSessionDialogLeaveSessionButton="agentMultiAgentsEndSessionDialogLeaveSessionButton",e.AgentMultiAgentsEndSessionDialogEndSessionButton="agentMultiAgentsEndSessionDialogEndSessionButton",e.AgentJoinFailedDialogOverall="agentJoinFailedDialogOverall",e.AgentJoinFailedDialogTitleContainer="agentJoinFailedDialogTitleContainer",e.AgentJoinFailedDialogContentContainer="agentJoinFailedDialogContentContainer",e.AgentJoinFailedDialogFooterContainer="agentJoinFailedDialogFooterContainer",e.AgentJoinFailedDialogTitleIcon="agentJoinFailedDialogTitleIcon",e.AgentJoinFailedDialogTitleContent="agentJoinFailedDialogTitleContent",e.AgentJoinFailedDialogTextContent="agentJoinFailedDialogTextContent",e.AgentJoinFailedDialogTopRightCloseButton="agentJoinFailedDialogTopRightCloseButton",e.AgentJoinFailedDialogOkButton="agentJoinFailedDialogOkButton",e.AgentFloatingPinToolbarWrapper="agentFloatingPinToolbarWrapper",e.AgentFloatingPinToolbarPrefixIcon="agentFloatingPinToolbarPrefixIcon",e.AgentFloatingPinToolbarContentText="agentFloatingPinToolbarContentText",e.AgentFloatingPinToolbarCopyIcon="agentFloatingPinToolbarCopyIcon",e.AgentToastSuccessPrefixIcon="agentToastSuccessPrefixIcon",e.AgentToastSuccessWrapper="agentToastSuccessWrapper",e.AgentToastErrorPrefixIcon="agentToastErrorPrefixIcon",e.AgentToastErrorWrapper="agentToastErrorWrapper",e.AgentToastWarningPrefixIcon="agentToastWarningPrefixIcon",e.AgentToastWarningWrapper="agentToastWarningWrapper",e.AgentToastDefaultPrefixIcon="agentToastDefaultPrefixIcon",e.AgentToastDefaultWrapper="agentToastDefaultWrapper",e.AgentToastInfoPrefixIcon="agentToastInfoPrefixIcon",e.AgentToastInfoWrapper="agentToastInfoWrapper"}(Zo||(Zo={})),function(e){e.SESSION_PRE_INIT="session_pre_init",e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error"}(Ko||(Ko={}));var Xo,Qo=[Ko.SESSION_PRE_INIT,Ko.SESSION_JOINED,Ko.SESSION_LEFT,Ko.SESSION_ENDED,Ko.SESSION_ERROR];!function(e){e.SEND_SESSION_OPTIONS="send_session_options"}(Xo||(Xo={})),Xo.SEND_SESSION_OPTIONS;Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0}),document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth,document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight;var $o,er="function"==typeof Buffer,nr="function"==typeof TextDecoder?new TextDecoder:void 0,tr="function"==typeof TextEncoder?new TextEncoder:void 0,or=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),rr=($o={},or.forEach((function(e,n){return $o[e]=n})),$o),ir=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,ar=String.fromCharCode.bind(String),sr="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},ur=function(e){return e.replace(/=/g,"").replace(/[+\\/]/g,(function(e){return"+"==e?"-":"_"}))},cr=function(e){return e.replace(/[^A-Za-z0-9\\+\\/]/g,"")},lr=function(e){for(var n,t,o,r,i="",a=e.length%3,s=0;s<e.length;){if((t=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=or[(n=t<<16|o<<8|r)>>18&63]+or[n>>12&63]+or[n>>6&63]+or[63&n]}return a?i.slice(0,a-3)+"===".substring(a):i},_r="function"==typeof btoa?function(e){return btoa(e)}:er?function(e){return Buffer.from(e,"binary").toString("base64")}:lr,dr=er?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var n=[],t=0,o=e.length;t<o;t+=4096)n.push(ar.apply(null,e.subarray(t,t+4096)));return _r(n.join(""))},Er=function(e){if(e.length<2)return(n=e.charCodeAt(0))<128?e:n<2048?ar(192|n>>>6)+ar(128|63&n):ar(224|n>>>12&15)+ar(128|n>>>6&63)+ar(128|63&n);var n=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return ar(240|n>>>18&7)+ar(128|n>>>12&63)+ar(128|n>>>6&63)+ar(128|63&n)},fr=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g,gr=function(e){return e.replace(fr,Er)},Sr=er?function(e){return Buffer.from(e,"utf8").toString("base64")}:tr?function(e){return dr(tr.encode(e))}:function(e){return _r(gr(e))},pr=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?ur(Sr(e)):Sr(e)},Ir=/[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g,Rr=function(e){switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return ar(55296+(n>>>10))+ar(56320+(1023&n));case 3:return ar((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ar((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Cr=function(e){return e.replace(Ir,Rr)},Tr=function(e){if(e=e.replace(/\\s+/g,""),!ir.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var n,t,o,r="",i=0;i<e.length;)n=rr[e.charAt(i++)]<<18|rr[e.charAt(i++)]<<12|(t=rr[e.charAt(i++)])<<6|(o=rr[e.charAt(i++)]),r+=64===t?ar(n>>16&255):64===o?ar(n>>16&255,n>>8&255):ar(n>>16&255,n>>8&255,255&n);return r},Or="function"==typeof atob?function(e){return atob(cr(e))}:er?function(e){return Buffer.from(e,"base64").toString("binary")}:Tr,mr=er?function(e){return sr(Buffer.from(e,"base64"))}:function(e){return sr(Or(e).split("").map((function(e){return e.charCodeAt(0)})))},hr=er?function(e){return Buffer.from(e,"base64").toString("utf8")}:nr?function(e){return nr.decode(mr(e))}:function(e){return Cr(Or(e))},vr=function(e){return cr(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},Ar=function(e){return hr(vr(e))},Nr=pr,Dr=Ar;function yr(e){var n=!0;try{return Nr(e,!0)}catch(e){n=!1}if(!n)try{return btoa(e)}catch(e){}return e}var br=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(o=n.call(this,e)).msg=e,o.code=r,o.statusCode=i,o}return _createClass(t)}();function Pr(e,n){var r=this,i=n||{},a=i.retry,s=i.handleJsonResponse,u=t(i,["retry","handleJsonResponse"]),c=s||function(e){return o(r,void 0,void 0,_regeneratorRuntime().mark((function n(){var t;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.ok){n.next=4;break}return n.abrupt("return",e);case 4:return n.next=6,e.json();case 6:throw t=n.sent,new br(t.message,t.code,e.status);case 8:case"end":return n.stop()}}),n)})))},l=Object.assign({limit:3},a),_=l.limit,d=l.delay;return new Promise((function(n,t){var r=function(r){var a,s;return o(this,void 0,void 0,_regeneratorRuntime().mark((function o(){var l,d,E;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,fetch(e,u);case 3:return l=o.sent,o.next=6,c(l);case 6:return d=o.sent,n(d),o.abrupt("return");case 11:if(o.prev=11,o.t0=o.catch(0),E=o.t0&&null!==(s=null!==(a=o.t0.statusCode)&&void 0!==a?a:o.t0.status)&&void 0!==s?s:1/0,!(r>=_||E<500&&0!==E)){o.next=17;break}return!o.t0||o.t0 instanceof TypeError&&/Load failed|fetch/i.test(o.t0.message)?t(new br(Ho[so.NETWORK_ERROR],so.NETWORK_ERROR)):t(o.t0),o.abrupt("return");case 17:i(r);case 18:case"end":return o.stop()}}),o,null,[[0,11]])})))};function i(e){void 0!==d?window.setTimeout((function(){r(++e)}),d):r(++e)}r(0)}))}var wr=["table index is out of bounds","ResizeObserver loop completed with undelivered notifications"],Lr=(new Date).getTime()-6048e5,Mr=[],Fr=[],kr={log:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.log,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function o(){return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:Mr.push({message:e,tag:n,logLevel:t,extraProperties:Object.assign({timestamp:Date.now()},i)});case 1:case"end":return o.stop()}}),o)})))},reportByFilter:function(e){},directReport:function(e,n){Fr.push({payload:e,options:n})},getLogs:function(e){},setReportUrl:function(e){pe.setDynamicReportUrl(e)}},Ur=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ie()&&!yt())return Promise.resolve();var n,t,o,r,i,a=(o=e.zmTrackingId,r=void 0===o?"":o,i=[new Re({debug:!1,cleanAfterReport:!0,expireBefore:Lr}),new Te({enable:!0,debug:!1,ignoredErrorMsgKeywords:wr,maxErrorCount:223,publicTags:[r,"ZCB-CLIENT","ERROR",null!==(n=null===location||void 0===location?void 0:location.host)&&void 0!==n?n:""]}),new xn({enable:!1,debug:!1,publicTags:[r,"STATIC_RESOURCE",null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"","ZCB-CLIENT"],includeResourceList:["zcb-core.css","zcb-core.js"],excludeResourceTimingKeys:[],userRegion:""})],{databaseName:"laplace-zcb-client-database",maxSize:49283072,reportUrl:pe.getCurrentReportUrl(),plugins:i});return ce.init(a).then((function(e){var n,t,o,r;e&&(n=kr,o=(null==(t=e)?void 0:t.getLogs("ZCB-CLIENT"))||[],r=new Set(o.map((function(e){return null==e?void 0:e.id}))),((null==n?void 0:n.getLogs("ZCB-CLIENT"))||[]).forEach((function(e){if(e&&!r.has(null==e?void 0:e.id)){var n=e||{},t=n.message,o=n.tags,i=n.logLevel,a=n.host,s=n.timestamp;Mr.push({message:t,tag:o,logLevel:i,extraProperties:{host:a,timestamp:s}})}})),kr=e,Ie()&&(Mr.length&&Promise.allSettled(Mr.map((function(e){var n=e.message,t=e.tag,o=e.logLevel,r=e.extraProperties;return kr.log(n,t,o,r)}))).then((function(){Mr.length=0,kr.reportByFilter(["ZCB-CLIENT"])})),Fr.length&&Promise.allSettled(Fr.map((function(e){var n=e.payload,t=e.options;return kr.directReport(n,t)}))).then((function(){Fr.length=0}))))})).catch((function(e){console.error("initLaplace ERROR:",e)}))};function xr(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function Br(e,n,t,o,r,i){return xr((a=xr(xr(n,e),xr(o,i)))<<(s=r)|a>>>32-s,t);var a,s}function Vr(e,n,t,o,r,i,a){return Br(n&t|~n&o,e,n,r,i,a)}function Wr(e,n,t,o,r,i,a){return Br(n&o|t&~o,e,n,r,i,a)}function Gr(e,n,t,o,r,i,a){return Br(n^t^o,e,n,r,i,a)}function Hr(e,n,t,o,r,i,a){return Br(t^(n|~o),e,n,r,i,a)}function Jr(e,n){var t,o,r,i,a;e[n>>5]|=128<<n%32,e[14+(n+64>>>9<<4)]=n;var s=1732584193,u=-271733879,c=-1732584194,l=271733878;for(t=0;t<e.length;t+=16)o=s,r=u,i=c,a=l,s=Vr(s,u,c,l,e[t],7,-680876936),l=Vr(l,s,u,c,e[t+1],12,-389564586),c=Vr(c,l,s,u,e[t+2],17,606105819),u=Vr(u,c,l,s,e[t+3],22,-1044525330),s=Vr(s,u,c,l,e[t+4],7,-176418897),l=Vr(l,s,u,c,e[t+5],12,1200080426),c=Vr(c,l,s,u,e[t+6],17,-1473231341),u=Vr(u,c,l,s,e[t+7],22,-45705983),s=Vr(s,u,c,l,e[t+8],7,1770035416),l=Vr(l,s,u,c,e[t+9],12,-1958414417),c=Vr(c,l,s,u,e[t+10],17,-42063),u=Vr(u,c,l,s,e[t+11],22,-1990404162),s=Vr(s,u,c,l,e[t+12],7,1804603682),l=Vr(l,s,u,c,e[t+13],12,-40341101),c=Vr(c,l,s,u,e[t+14],17,-1502002290),s=Wr(s,u=Vr(u,c,l,s,e[t+15],22,1236535329),c,l,e[t+1],5,-165796510),l=Wr(l,s,u,c,e[t+6],9,-1069501632),c=Wr(c,l,s,u,e[t+11],14,643717713),u=Wr(u,c,l,s,e[t],20,-373897302),s=Wr(s,u,c,l,e[t+5],5,-701558691),l=Wr(l,s,u,c,e[t+10],9,38016083),c=Wr(c,l,s,u,e[t+15],14,-660478335),u=Wr(u,c,l,s,e[t+4],20,-405537848),s=Wr(s,u,c,l,e[t+9],5,568446438),l=Wr(l,s,u,c,e[t+14],9,-1019803690),c=Wr(c,l,s,u,e[t+3],14,-187363961),u=Wr(u,c,l,s,e[t+8],20,1163531501),s=Wr(s,u,c,l,e[t+13],5,-1444681467),l=Wr(l,s,u,c,e[t+2],9,-51403784),c=Wr(c,l,s,u,e[t+7],14,1735328473),s=Gr(s,u=Wr(u,c,l,s,e[t+12],20,-1926607734),c,l,e[t+5],4,-378558),l=Gr(l,s,u,c,e[t+8],11,-2022574463),c=Gr(c,l,s,u,e[t+11],16,1839030562),u=Gr(u,c,l,s,e[t+14],23,-35309556),s=Gr(s,u,c,l,e[t+1],4,-1530992060),l=Gr(l,s,u,c,e[t+4],11,1272893353),c=Gr(c,l,s,u,e[t+7],16,-155497632),u=Gr(u,c,l,s,e[t+10],23,-1094730640),s=Gr(s,u,c,l,e[t+13],4,681279174),l=Gr(l,s,u,c,e[t],11,-358537222),c=Gr(c,l,s,u,e[t+3],16,-722521979),u=Gr(u,c,l,s,e[t+6],23,76029189),s=Gr(s,u,c,l,e[t+9],4,-640364487),l=Gr(l,s,u,c,e[t+12],11,-421815835),c=Gr(c,l,s,u,e[t+15],16,530742520),s=Hr(s,u=Gr(u,c,l,s,e[t+2],23,-995338651),c,l,e[t],6,-198630844),l=Hr(l,s,u,c,e[t+7],10,1126891415),c=Hr(c,l,s,u,e[t+14],15,-1416354905),u=Hr(u,c,l,s,e[t+5],21,-57434055),s=Hr(s,u,c,l,e[t+12],6,1700485571),l=Hr(l,s,u,c,e[t+3],10,-1894986606),c=Hr(c,l,s,u,e[t+10],15,-1051523),u=Hr(u,c,l,s,e[t+1],21,-2054922799),s=Hr(s,u,c,l,e[t+8],6,1873313359),l=Hr(l,s,u,c,e[t+15],10,-30611744),c=Hr(c,l,s,u,e[t+6],15,-1560198380),u=Hr(u,c,l,s,e[t+13],21,1309151649),s=Hr(s,u,c,l,e[t+4],6,-145523070),l=Hr(l,s,u,c,e[t+11],10,-1120210379),c=Hr(c,l,s,u,e[t+2],15,718787259),u=Hr(u,c,l,s,e[t+9],21,-343485551),s=xr(s,o),u=xr(u,r),c=xr(c,i),l=xr(l,a);return[s,u,c,l]}function jr(e){var n,t="",o=32*e.length;for(n=0;n<o;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function Yr(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n<t.length;n+=1)t[n]=0;var o=8*e.length;for(n=0;n<o;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function Zr(e){var n,t,o="0123456789abcdef",r="";for(t=0;t<e.length;t+=1)n=e.charCodeAt(t),r+=o.charAt(n>>>4&15)+o.charAt(15&n);return r}function Kr(e){return unescape(encodeURIComponent(e))}function zr(e){return function(e){return jr(Jr(Yr(e),8*e.length))}(Kr(e))}function qr(e,n){return function(e,n){var t,o,r=Yr(e),i=[],a=[];for(i[15]=a[15]=void 0,r.length>16&&(r=Jr(r,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^r[t],a[t]=1549556828^r[t];return o=Jr(i.concat(Yr(n)),512+8*n.length),jr(Jr(a.concat(o),640))}(Kr(e),Kr(n))}function Xr(e,n,t){return n?t?qr(n,e):function(e,n){return Zr(qr(e,n))}(n,e):t?zr(e):Zr(zr(e))}var Qr,$r=function(e){return Boolean(null==e?void 0:e.log)},ei=function(e,n){return[e,n].flatMap((function(e){return e})).map((function(e){return"function"==typeof e?e():e})).filter((function(e){return Boolean(e)}))},ni=new Uint8Array(16);function ti(){if(!Qr&&!(Qr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qr(ni)}for(var oi=[],ri=0;ri<256;++ri)oi.push((ri+256).toString(16).slice(1));var ii={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ai(e,n,t){if(ii.randomUUID&&!n&&!e)return ii.randomUUID();var o=(e=e||{}).random||(e.rng||ti)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n){t=t||0;for(var r=0;r<16;++r)n[t+r]=o[r];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi[e[n+0]]+oi[e[n+1]]+oi[e[n+2]]+oi[e[n+3]]+"-"+oi[e[n+4]]+oi[e[n+5]]+"-"+oi[e[n+6]]+oi[e[n+7]]+"-"+oi[e[n+8]]+oi[e[n+9]]+"-"+oi[e[n+10]]+oi[e[n+11]]+oi[e[n+12]]+oi[e[n+13]]+oi[e[n+14]]+oi[e[n+15]]}(o)}var si=function(){function e(){_classCallCheck(this,e),this.ZCB_ZmTrackingIds={}}return _createClass(e,[{key:"setZmTrackingIds",value:function(e){var n=e.zmWebTrackingId,t=e.zmChsTrackingId,o=e.zmTrackingId;this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:o}}},{key:"genZmTrackingId",value:function(){var e=ai(),n="zcb_client_".concat(e,"_0"),t="".concat(e,"_0");return this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e},{zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e}}},{key:"getZmTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmTrackingId;return n||(console.warn("getZmTrackingId failed, generate new zmTrackingId: ".concat(n)),n=this.genZmTrackingId().zmTrackingId),n}},{key:"clearZmTrackingId",value:function(){this.ZCB_ZmTrackingIds={}}},{key:"genFailOverZmChsTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;n||(n=this.genZmTrackingId().zmChsTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var o=parseInt(t[0])+1,r=n.substring(0,t.index)+o;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmChsTrackingId=r),r}return this.genZmTrackingId().zmChsTrackingId}},{key:"getZmTrackingIdForWeb",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmWebTrackingId;n||(n=this.genZmTrackingId().zmWebTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var o=parseInt(t[0])+1,r=n.substring(0,t.index)+o;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmWebTrackingId=r),r}return this.genZmTrackingId().zmWebTrackingId}},{key:"getZmTrackingIdForChs",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;return n||(n=this.genZmTrackingId().zmChsTrackingId),n}}]),e}(),ui=window.ZCB_TrackingIdController||new si;window.ZCB_TrackingIdController=ui;function ci(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var n=encodeURI(e);return btoa(n)}return Buffer.from(e).toString("base64")}var li,_i,di,Ei,fi,gi,Si=function(e){return ci(e)},pi=function(){function e(n){var t=n.requestOrigin,o=n.parentFrameId;_classCallCheck(this,e),this.parentFrameId=o;var r=Si(t);o&&(r=o+"--"+r),this.frameId=r}return _createClass(e,[{key:"equal",value:function(e){var n=e.requestOrigin,t=e.parentFrameId;return t===this.parentFrameId&&this.frameId===t+"--"+Si(n)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),Ii=function(){function e(n){_classCallCheck(this,e),this.frames=new Map,this.tabId=n}return _createClass(e,[{key:"getFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,o=null;return this.frames.forEach((function(e){e.equal({requestOrigin:n,parentFrameId:t})&&(o=e)})),o}},{key:"checkAddFrame",value:function(e){var n=this,t=e.requestOrigin,o=e.parentFrameId,r=this.getFrame({requestOrigin:t,parentFrameId:o});if(r)return r;if(this.tabId===o)return this.addFrame({requestOrigin:t,parentFrameId:o});var i=null;return this.frames.forEach((function(e){i||e.isParentFrame(o)&&(i=n.addFrame({requestOrigin:t,parentFrameId:o}))})),i}},{key:"getSubFrames",value:function(e){var n=[];return this.frames.forEach((function(t){t.isSubFrame(e)&&n.push(t)})),n}},{key:"addFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,o=new pi({requestOrigin:n,parentFrameId:t});return this.frames.set(o.frameId,o),o}}]),e}(),Ri=function(){function e(){_classCallCheck(this,e),this.tabs=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,o="";return t?(this.tabs.forEach((function(e){if(!o){var r=e.checkAddFrame({requestOrigin:n,parentFrameId:t});r&&(o=r.frameId)}})),o):this.tabs.size?(this.tabs.forEach((function(e,n){o||(o=n)})),o):(o=Si(n),this.tabs.set(o,new Ii(o)),o)}},{key:"makeViewerRequest",value:function(e){var n=e.parentFrameId,t="";return this.tabs.forEach((function(e){var o;if(n){if(t)return;var r=e.getSubFrames(n);t=(null===(o=r[0])||void 0===o?void 0:o.frameId)||""}else t=e.tabId})),t}}]),e}(),Ci=new(function(){function e(){_classCallCheck(this,e),this.rooms=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.roomId,t=e.requestOrigin,o=e.parentFrameId,r=e.isViewer;this.rooms.get(n)||this.rooms.set(n,new Ri);var i=this.rooms.get(n);return i?r?i.makeViewerRequest({parentFrameId:o}):i.makeRequest({requestOrigin:t,parentFrameId:o}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=Ci),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(li||(li={})),_i="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,di="undefined"!=typeof window,Ei="function"==typeof importScripts,fi=_i&&!Ei,gi=!_i&&!di,Ei?li.BROWSER_WORKER:di?li.BROWSER:gi?li.NODE:fi?li.NODE_WORKER:li.UNKNOW;var Ti=_createClass((function e(){var n=this;_classCallCheck(this,e),this.promise=new Promise((function(e,t){n.reject=t,n.resolve=e})),this.promise.then((function(e){return n.resolved=!0,e})).catch((function(){n.resolved=!1})).finally((function(){n.finished=!0,n.finishedTimestamp=Date.now()}))}));var Oi=function(){function e(n){_classCallCheck(this,e),this.cache=new Map,this.limit=n}return _createClass(e,[{key:"get",value:function(e){if(this.cache.has(e)){var n=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,n),n}}},{key:"set",value:function(e,n){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.limit){var t=this.cache.keys().next().value;this.cache.delete(t)}this.cache.set(e,n)}},{key:"has",value:function(e){return this.cache.has(e)}},{key:"delete",value:function(e){return this.cache.delete(e)}},{key:"clear",value:function(){this.cache.clear()}},{key:"keys",value:function(){return Array.from(this.cache.keys())}},{key:"values",value:function(){return Array.from(this.cache.values())}}]),e}(),mi="function",hi="object",vi="string",Ai="model",Ni="name",Di="type",yi="vendor",bi="version",Pi="architecture",wi="hardwareConcurrency",Li="console",Mi="mobile",Fi="tablet",ki="smarttv",Ui="wearable",xi="Amazon",Bi="Apple",Vi="ASUS",Wi="BlackBerry",Gi="Browser",Hi="Chrome",Ji="Firefox",ji="Google",Yi="Huawei",Zi="LG",Ki="Microsoft",zi="Motorola",qi="Opera",Xi="Samsung",Qi="Sharp",$i="Sony",ea="Xiaomi",na="Zebra",ta="Facebook",oa={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"},ra=function(e){return e.toLowerCase()},ia=function(e,n){return _typeof(e)===vi&&-1!==ra(n).indexOf(ra(e))},aa=function(e,n){return _typeof(e)===vi?(e=e.replace(/^\\s\\s*/,""),"undefined"===_typeof(n)?e:e.substring(0,350)):""},sa=function(e,n){for(var t in n)if(_typeof(n[t])===hi&&n[t].length>0){for(var o=0;o<n[t].length;o++)if(ia(n[t][o],e))return"?"===t?void 0:t}else if(ia(n[t],e))return"?"===t?void 0:t;return e},ua={browser:[[/(ZoomApps)\\/([\\w\\.]+)/i],[Ni,bi],[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[bi,[Ni,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[bi,[Ni,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[Ni,bi],[/opios[\\/ ]+([\\w\\.]+)/i],[bi,[Ni,qi+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[bi,[Ni,qi]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[Ni,bi],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[bi,[Ni,"UC"+Gi]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[bi,[Ni,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[bi,[Ni,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[bi,[Ni,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[bi,[Ni,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[bi,[Ni,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[Ni,/(.+)/,"$1 Secure "+Gi],bi],[/\\bfocus\\/([\\w\\.]+)/i],[bi,[Ni,Ji+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[bi,[Ni,qi+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[bi,[Ni,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[bi,[Ni,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[bi,[Ni,qi+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[bi,[Ni,"MIUI "+Gi]],[/fxios\\/([-\\w\\.]+)/i],[bi,[Ni,Ji]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[Ni,"360 "+Gi]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[Ni,/(.+)/,"$1 "+Gi],bi],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[Ni,/_/g," "],bi],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[Ni,bi],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[Ni],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[Ni,ta],bi],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[Ni,bi],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[bi,[Ni,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[bi,[Ni,Hi+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[Ni,Hi+" WebView"],bi],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[bi,[Ni,"Android "+Gi]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[Ni,bi],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[bi,[Ni,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[bi,Ni],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[Ni,[bi,sa,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[Ni,bi],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[Ni,"Netscape"],bi],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[bi,[Ni,Ji+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[Ni,bi],[/(cobalt)\\/([\\w\\.]+)/i],[Ni,[bi,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[Pi,"amd64"]],[/(ia32(?=;))/i],[[Pi,ra]],[/((?:i[346]|x)86)[;\\)]/i],[[Pi,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[Pi,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[Pi,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Pi,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[Pi,/ower/,"",ra]],[/(sun4\\w)[;\\)]/i],[[Pi,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[Pi,ra]]],device:[[/\\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],[Ai,[yi,Xi],[Di,Fi]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[Ai,[yi,Xi],[Di,Mi]],[/((ipod|iphone)\\d+,\\d+)/i],[Ai,[yi,Bi],[Di,Mi]],[/(ipad\\d+,\\d+)/i],[Ai,[yi,Bi],[Di,Fi]],[/\\((ip(?:hone|od)[\\w ]*);/i],[Ai,[yi,Bi],[Di,Mi]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[Ai,[yi,Bi],[Di,Fi]],[/(macintosh);/i],[Ai,[yi,Bi]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[Ai,[yi,Yi],[Di,Fi]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[Ai,[yi,Yi],[Di,Mi]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[Ai,/_/g," "],[yi,ea],[Di,Mi]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[Ai,/_/g," "],[yi,ea],[Di,Fi]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[Ai,[yi,"OPPO"],[Di,Mi]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[Ai,[yi,"Vivo"],[Di,Mi]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[Ai,[yi,"Realme"],[Di,Mi]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[Ai,[yi,zi],[Di,Mi]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[Ai,[yi,zi],[Di,Fi]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[Ai,[yi,Zi],[Di,Fi]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[Ai,[yi,Zi],[Di,Mi]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[Ai,[yi,"Lenovo"],[Di,Fi]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[Ai,/_/g," "],[yi,"Nokia"],[Di,Mi]],[/(pixel c)\\b/i],[Ai,[yi,ji],[Di,Fi]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[Ai,[yi,ji],[Di,Mi]],[/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],[Ai,[yi,$i],[Di,Mi]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[Ai,"Xperia Tablet"],[yi,$i],[Di,Fi]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[Ai,[yi,"OnePlus"],[Di,Mi]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[Ai,[yi,xi],[Di,Fi]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[Ai,/(.+)/g,"Fire Phone $1"],[yi,xi],[Di,Mi]],[/(playbook);[-\\w\\),; ]+(rim)/i],[Ai,yi,[Di,Fi]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[Ai,[yi,Wi],[Di,Mi]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[Ai,[yi,Vi],[Di,Fi]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[Ai,[yi,Vi],[Di,Mi]],[/(nexus 9)/i],[Ai,[yi,"HTC"],[Di,Fi]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[yi,[Ai,/_/g," "],[Di,Mi]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[Ai,[yi,"Acer"],[Di,Fi]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[Ai,[yi,"Meizu"],[Di,Mi]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[Ai,[yi,Qi],[Di,Mi]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[yi,Ai,[Di,Mi]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[yi,Ai,[Di,Fi]],[/(surface duo)/i],[Ai,[yi,Ki],[Di,Fi]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[Ai,[yi,"Fairphone"],[Di,Mi]],[/(u304aa)/i],[Ai,[yi,"AT&T"],[Di,Mi]],[/\\bsie-(\\w*)/i],[Ai,[yi,"Siemens"],[Di,Mi]],[/\\b(rct\\w+) b/i],[Ai,[yi,"RCA"],[Di,Fi]],[/\\b(venue[\\d ]{2,7}) b/i],[Ai,[yi,"Dell"],[Di,Fi]],[/\\b(q(?:mv|ta)\\w+) b/i],[Ai,[yi,"Verizon"],[Di,Fi]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[Ai,[yi,"Barnes & Noble"],[Di,Fi]],[/\\b(tm\\d{3}\\w+) b/i],[Ai,[yi,"NuVision"],[Di,Fi]],[/\\b(k88) b/i],[Ai,[yi,"ZTE"],[Di,Fi]],[/\\b(nx\\d{3}j) b/i],[Ai,[yi,"ZTE"],[Di,Mi]],[/\\b(gen\\d{3}) b.+49h/i],[Ai,[yi,"Swiss"],[Di,Mi]],[/\\b(zur\\d{3}) b/i],[Ai,[yi,"Swiss"],[Di,Fi]],[/\\b((zeki)?tb.*\\b) b/i],[Ai,[yi,"Zeki"],[Di,Fi]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[yi,"Dragon Touch"],Ai,[Di,Fi]],[/\\b(ns-?\\w{0,9}) b/i],[Ai,[yi,"Insignia"],[Di,Fi]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[Ai,[yi,"NextBook"],[Di,Fi]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[yi,"Voice"],Ai,[Di,Mi]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[yi,"LvTel"],Ai,[Di,Mi]],[/\\b(ph-1) /i],[Ai,[yi,"Essential"],[Di,Mi]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[Ai,[yi,"Envizen"],[Di,Fi]],[/\\b(trio[-\\w\\. ]+) b/i],[Ai,[yi,"MachSpeed"],[Di,Fi]],[/\\btu_(1491) b/i],[Ai,[yi,"Rotor"],[Di,Fi]],[/(shield[\\w ]+) b/i],[Ai,[yi,"Nvidia"],[Di,Fi]],[/(sprint) (\\w+)/i],[yi,Ai,[Di,Mi]],[/(kin\\.[onetw]{3})/i],[[Ai,/\\./g," "],[yi,Ki],[Di,Mi]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[Ai,[yi,na],[Di,Fi]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[Ai,[yi,na],[Di,Mi]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[yi,Ai,[Di,Li]],[/droid.+; (shield) bui/i],[Ai,[yi,"Nvidia"],[Di,Li]],[/(playstation [345portablevi]+)/i],[Ai,[yi,$i],[Di,Li]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[Ai,[yi,Ki],[Di,Li]],[/smart-tv.+(samsung)/i],[yi,[Di,ki]],[/hbbtv.+maple;(\\d+)/i],[[Ai,/^/,"SmartTV"],[yi,Xi],[Di,ki]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[yi,Zi],[Di,ki]],[/(apple) ?tv/i],[yi,[Ai,Bi+" TV"],[Di,ki]],[/crkey/i],[[Ai,Hi+"cast"],[yi,ji],[Di,ki]],[/droid.+aft(\\w)( bui|\\))/i],[Ai,[yi,xi],[Di,ki]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[Ai,[yi,Qi],[Di,ki]],[/(bravia[\\w ]+)( bui|\\))/i],[Ai,[yi,$i],[Di,ki]],[/(mitv-\\w{5}) bui/i],[Ai,[yi,ea],[Di,ki]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[yi,aa],[Ai,aa],[Di,ki]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[Di,ki]],[/((pebble))app/i],[yi,Ai,[Di,Ui]],[/droid.+; (glass) \\d/i],[Ai,[yi,ji],[Di,Ui]],[/droid.+; (wt63?0{2,3})\\)/i],[Ai,[yi,na],[Di,Ui]],[/(quest( 2)?)/i],[Ai,[yi,ta],[Di,Ui]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[yi,[Di,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[Ai,[Di,Mi]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[Ai,[Di,Fi]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[Di,Fi]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[Di,Mi]],[/(android[-\\w\\. ]{0,9});.+buil/i],[Ai,[yi,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[bi,[Ni,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[bi,[Ni,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[Ni,bi],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[bi,Ni]],os:[[/microsoft (windows) (vista|xp)/i],[Ni,bi],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[Ni,[bi,sa,oa]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[Ni,"Windows"],[bi,sa,oa]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[bi,/_/g,"."],[Ni,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[Ni,"Mac OS"],[bi,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[bi,Ni],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[Ni,bi],[/\\(bb(10);/i],[bi,[Ni,Wi]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[bi,[Ni,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[bi,[Ni,Ji+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[bi,[Ni,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[bi,[Ni,Hi+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[Ni,"Chromium OS"],bi],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/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],[Ni,bi],[/(sunos) ?([\\w\\.\\d]*)/i],[[Ni,"Solaris"],bi],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[Ni,bi]]},ca=function(){function e(n){var t;_classCallCheck(this,e),this.ua=(null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||"",this.navigator=(null===window||void 0===window?void 0:window.navigator)||{},n&&(this.ua=n),this.regexes=ua}return _createClass(e,[{key:"rgxMapper",value:function(e,n){for(var t={},o=0,r=0,i=0,a=0,s=void 0,u=void 0,c=void 0;o<n.length&&!u;){var l=n[o],_=n[o+1];for(r=i=0;r<l.length&&!u;)if(u=l[r++].exec(e))for(a=0;a<_.length;a++)c=u[++i],_typeof(s=_[a])===hi&&s.length>0?2===s.length?_typeof(s[1])==mi?t[s[0]]=s[1](c):t[s[0]]=s[1]:3===s.length?_typeof(s[1])!==mi||s[1].exec&&s[1].test?t[s[0]]=c?c.replace(s[1],s[2]):void 0:t[s[0]]=c?s[1](c,s[2]):void 0:4===s.length&&(t[s[0]]=c?s[3](c.replace(s[1],s[2])):void 0):t[s]=c||void 0;o+=2}return t}},{key:"getBrowser",value:function(){var e={};e[Ni]=void 0,e[bi]=void 0;var n=this.rgxMapper(this.ua,this.regexes.browser);return e.major=function(e){return _typeof(e)===vi?e.replace(/[^\\d\\.]/g,"").split(".")[0]:void 0}(n.version),Object.assign(e,n),e}},{key:"getCPU",value:function(){var e={};e[Pi]=void 0,e[wi]=this.navigator[wi];var n=this.rgxMapper(this.ua,this.regexes.cpu);return Object.assign(e,n),e}},{key:"getDevice",value:function(){var e={};e[yi]=void 0,e[Ai]=void 0,e[Di]=void 0;var n=this.rgxMapper(this.ua,this.regexes.device);return Object.assign(e,n),e}},{key:"getEngine",value:function(){var e={};e[Ni]=void 0,e[bi]=void 0;var n=this.rgxMapper(this.ua,this.regexes.engine);return Object.assign(e,n),e}},{key:"getOS",value:function(){var e={};e[Ni]=void 0,e[bi]=void 0;var n=this.rgxMapper(this.ua,this.regexes.os);return Object.assign(e,n),e}},{key:"getUA",value:function(){return this.ua}},{key:"setUA",value:function(e){var n=_typeof(e)===vi&&e.length>350?aa(e,350):e;this.ua=n}},{key:"getResult",value:function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}}}]),e}(),la=new(function(){function e(){_classCallCheck(this,e),window.ZCB_ZmCobrowseInfo={session:{userId:"",sessionId:"",participantType:""},isCobrowseLocked:!1}}return _createClass(e,[{key:"getSession",value:function(){var e;return null===(e=window.ZCB_ZmCobrowseInfo)||void 0===e?void 0:e.session}},{key:"getCobrowse",value:function(){return window.ZCB_ZmCobrowseInfo}},{key:"setSessionId",value:function(e){window.ZCB_ZmCobrowseInfo.session.sessionId=e}},{key:"setUserId",value:function(e){window.ZCB_ZmCobrowseInfo.session.userId=e}},{key:"setParticipantType",value:function(e){window.ZCB_ZmCobrowseInfo.session.participantType=e}},{key:"setIsCobrowseLocked",value:function(e){window.ZCB_ZmCobrowseInfo.isCobrowseLocked=e}},{key:"setSession",value:function(e){Object.assign(window.ZCB_ZmCobrowseInfo.session,e)}},{key:"clearSession",value:function(){window.ZCB_ZmCobrowseInfo.session={userId:"",sessionId:"",participantType:""},window.ZCB_ZmCobrowseInfo.isCobrowseLocked=!1}}]),e}()),_a={log:new Oi(30),info:new Oi(30),debug:new Oi(30),warn:new Oi(30),error:new Oi(30)},da=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(null==e?void 0:e.some((function(e){return"NO-TRACKING"===e})))?"0000":ui.getZmTrackingId()},Ea=function(e,n,t){return["%c ".concat(e," %c ").concat(n," %c"),"background:".concat(t,";border:1px solid ").concat(t,"; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;"),"border:1px solid ".concat(t,"; padding: 1px; border-radius: 0 2px 2px 0; color: ").concat(t,";"),"background:transparent"]},fa=function(){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,o,r,i,a,s,u,c,l,_;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=window.navigator,c=(new ca).getResult(),u){e.next=4;break}return e.abrupt("return",{});case 4:if(l=Object.assign({appCodeName:u.appCodeName,appName:u.appName,appVersion:u.appVersion,language:u.language,connection:{downlink:null===(n=u.connection)||void 0===n?void 0:n.downlink,downlinkMax:null===(t=u.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(o=u.connection)||void 0===o?void 0:o.effectiveType,rtt:null===(r=u.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=u.connection)||void 0===i?void 0:i.saveData,type:null===(a=u.connection)||void 0===a?void 0:a.type},href:Yn(window.location.href)},c),!(null===(s=u.userAgentData)||void 0===s?void 0:s.getHighEntropyValues)){e.next=19;break}return e.prev=6,e.next=9,u.userAgentData.getHighEntropyValues(["architecture","bitness","fullVersionList","platformVersion","wow64","model","formFactor"]);case 9:_=e.sent,l.os&&(l.os.version=_.platformVersion),l.cpu&&(l.cpu.architecture=_.architecture,l.cpu.bitness=_.bitness),l.mobile=_.mobile,l.userAgentData=JSON.stringify(_),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),console.log("get userAgentData error",e.t0);case 19:return e.abrupt("return",l);case 20:case"end":return e.stop()}}),e,null,[[6,16]])})));case 2:n=e.sent,Ia(["navigator"]).logWithReport(JSON.stringify(n));case 4:case"end":return e.stop()}}),e)})))},ga=function(e,n){var t=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();r||!1!==t.leading||(r=u);var c=n-(u-r),l=this;c<=0||c>n?(o&&(clearTimeout(o),o=null),r=u,e.apply(l,a)):o||!1===t.trailing||(o=setTimeout((function(){r=!1===t.leading?0:Date.now(),o=null,e.apply(l,a)}),c))}}(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),o=null,r=null,i=null;return function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];o=a,r=this,i||(i=setTimeout((function(){o&&(t.apply(r,o),o=null,i=null)}),n)),t.apply(this,a)}}((function(){Ie()&&kr.reportByFilter(["ZCB-CLIENT"])}),1e4);function Sa(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.log,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,void 0,void 0,_regeneratorRuntime().mark((function o(){var r,s,u,c,l,_;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r=la.getSession(),s=r.userId,u=r.sessionId,c=r.participantType,l=Bn.getCoBrowsingConfig("appKey"),o.next=4,kr.log(e,n,i,Object.assign({host:null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"",zmDeviceId:window.ZCB_ZmDeviceId,sdkVersion:Pt(),info:{uuid:s,appKey:"{E}".concat(l,"{/E}"),sessionId:u,participantType:c}},a));case 4:return _=o.sent,ga(),o.abrupt("return",_);case 7:case"end":return o.stop()}}),o)})))}var pa,Ia=function(e){var n=_toConsumableArray(ei(["ZCB-CLIENT"],e||[]));return{log:function(e,t){return function(e,n,t){var o,i;if(null!==(i=null===(o=null==Se?void 0:Se.logLevel)||void 0===o?void 0:o.log)&&void 0!==i&&i&&$r(kr)){var a=da(t),s=ei([a],n||[]),u=ei(s,t||[]),c=Xr("".concat(a).concat(e));if(!_a.log.has(c))return _a.log.set(c,!0),Sa(e,u,r.log)}}(e,n,t)},logWithReport:function(e,t){return function(e,n,t){var o,i,a;if(null!==(i=null===(o=null==Se?void 0:Se.logLevel)||void 0===o?void 0:o.log)&&void 0!==i&&i&&$r(kr)&&Ie()){var s=da(t),u=ei([s],n||[]),c=ei(u,t||[]),l=Xr("".concat(s).concat(e));if(!_a.log.has(l)){_a.log.set(l,!0);var _=la.getSession(),d=_.userId,E=_.sessionId,f=_.participantType,g=Bn.getCoBrowsingConfig("appKey");return kr.directReport({message:e,host:null!==(a=null===location||void 0===location?void 0:location.host)&&void 0!==a?a:"",zmDeviceId:window.ZCB_ZmDeviceId,sdkVersion:Pt(),info:{uuid:d,appKey:"{E}".concat(g,"{/E}"),sessionId:E,participantType:f}},{tags:c,logLevel:r.log})}}}(e,n,t)},info:function(e,t){return function(e,n,t){var o,i;if(null!==(i=null===(o=null==Se?void 0:Se.logLevel)||void 0===o?void 0:o.info)&&void 0!==i&&i&&$r(kr)){var a=da(t),s=ei([a],n||[]),u=ei(s,t||[]),c=Xr("".concat(a).concat(e));if(!_a.info.has(c))return _a.info.set(c,!0),Sa(e,u,r.info)}}(e,n,t)},debug:function(e,t){return function(e,n,t){var o,i;if(null!==(i=null===(o=null==Se?void 0:Se.logLevel)||void 0===o?void 0:o.debug)&&void 0!==i&&i&&$r(kr)){var a=da(t),s=ei([a],n||[]),u=ei(s,t||[]),c=Xr("".concat(a).concat(e));if(!_a.debug.has(c))return _a.debug.set(c,!0),Sa(e,u,r.debug)}}(e,n,t)},error:function(e,t){return function(e,n,t){var o,i;if((o=console).error.apply(o,_toConsumableArray(Ea("laplace-error",e,"#F56C6C"))),(null===(i=null==Se?void 0:Se.logLevel)||void 0===i?void 0:i.error)&&$r(kr)){var a=da(t),s=ei([a],n||[]),u=ei(s,t||[]),c=Xr("".concat(a).concat(e));if(!_a.error.has(c))return _a.error.set(c,!0),Sa(e,u,r.error)}}(e,n,t)},warn:function(e,t){return function(e,n,t){var o,i,a;if((o=console).warn.apply(o,_toConsumableArray(Ea("laplace-warn",e,"#E6A23C"))),null!==(a=null===(i=null==Se?void 0:Se.logLevel)||void 0===i?void 0:i.warn)&&void 0!==a&&a&&$r(kr)){var s=da(t),u=ei([s],n||[]),c=ei(u,t||[]),l=Xr("".concat(s).concat(e));if(!_a.warn.has(l))return _a.warn.set(l,!0),Sa(e,c,r.warn)}}(e,n,t)},print:function(e){return function(e){var n,t;null!==(t=null===(n=null==Se?void 0:Se.logLevel)||void 0===n?void 0:n.print)&&void 0!==t&&t&&console.log(e)}(e)},performance:function(e,t){return function(e,n,t){var o,i;if(null!==(i=null===(o=null==Se?void 0:Se.logLevel)||void 0===o?void 0:o.log)&&void 0!==i&&i&&$r(kr)){var a=da(t),s=ei([a],n||[]);return Sa(e,ei(s,t||[]),r.log)}}(e,n,t)},performanceRange:function(e,t,o){return function(e,n,t,o){var i,a;if(null!==(a=null===(i=null==Se?void 0:Se.logLevel)||void 0===i?void 0:i.log)&&void 0!==a&&a&&$r(kr)){var s=da(o),u=ei([s],t||[]);return Sa(e,ei(u,o||[]),r.log,n)}}(e,t,n,o)},log_2:function(e,t){return function(e,n,t){var o,i;if(null!==(i=null===(o=null==Se?void 0:Se.logLevel)||void 0===o?void 0:o.log)&&void 0!==i&&i&&$r(kr)){var a=JSON.stringify(e),s=da(t),u=ei([s],n||[]);return Sa(a,ei(u,t||[]),r.log)}}(e,n,t)},reportNavigator:function(){fa()},setReportUrl:function(e){!function(e){if(pe.setDynamicReportUrl(e),kr&&"function"==typeof kr.setReportUrl){var n=kr.reportUrl;kr.setReportUrl(e),Ie()&&e!==n&&kr.reportByFilter(["ZCB-CLIENT"])}}(e)},setLaplaceEnabled:function(e){var n;n=e,pe.setDynamicLaplaceEnabled(n)}}};Ia(["performance-log"]),function(e){e[e.ClientInit=1]="ClientInit",e[e.ClientInitFinished=2]="ClientInitFinished",e[e.CreateSessionStart=3]="CreateSessionStart",e[e.CreateSessionEnd=4]="CreateSessionEnd",e[e.PinCodeRequest=5]="PinCodeRequest",e[e.PinCodeUpdated=6]="PinCodeUpdated",e[e.PingEndpointListDone=7]="PingEndpointListDone",e[e.initWS=8]="initWS",e[e.WSConnected2Channel=9]="WSConnected2Channel",e[e.WSConnectedSuccess=10]="WSConnectedSuccess",e[e.SessionStart=11]="SessionStart",e[e.SessionStarted=12]="SessionStarted",e[e.SessionStartFinish=13]="SessionStartFinish",e[e.StartChannel=14]="StartChannel",e[e.UserRoster=15]="UserRoster",e[e.LeaderJoined=16]="LeaderJoined",e[e.FollowerJoined=17]="FollowerJoined",e[e.CallSessionInit=18]="CallSessionInit",e[e.AfterJoined=19]="AfterJoined",e[e.SessionDestroy=20]="SessionDestroy",e[e.AgentReconnectingInAgentSide=21]="AgentReconnectingInAgentSide",e[e.CustomerDisconnectedInAgentSide=22]="CustomerDisconnectedInAgentSide",e[e.CustomerTimeoutInAgentSide=23]="CustomerTimeoutInAgentSide",e[e.AgentReconnectingSuccessInAgentSide=24]="AgentReconnectingSuccessInAgentSide",e[e.CustomerReconnectingSuccessInAgentSide=25]="CustomerReconnectingSuccessInAgentSide",e[e.AgentJoinedInAgentSide=26]="AgentJoinedInAgentSide",e[e.CustomerJoinedInAgentSide=27]="CustomerJoinedInAgentSide",e[e.StartReplayInAgentSide=28]="StartReplayInAgentSide",e[e.CustomerReconnectingInCustomerSide=29]="CustomerReconnectingInCustomerSide",e[e.AgentDisconnectedInCustomerSide=30]="AgentDisconnectedInCustomerSide",e[e.AgentTimeoutInCustomerSide=31]="AgentTimeoutInCustomerSide",e[e.CustomerReconnectingSuccessInCustomerSide=32]="CustomerReconnectingSuccessInCustomerSide",e[e.AgentReconnectingSuccessInCustomerSide=33]="AgentReconnectingSuccessInCustomerSide"}(pa||(pa={}));var Ra,Ca={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ca,pa.ClientInit,"ClientInit"),pa.ClientInitFinished,"ClientInitFinished"),pa.CreateSessionStart,"CreateSessionStart"),pa.CreateSessionEnd,"CreateSessionEnd"),pa.PinCodeRequest,"PinCodeRequest"),pa.PinCodeUpdated,"PinCodeUpdated"),pa.PingEndpointListDone,"PingEndpointListDone"),pa.initWS,"initWS"),pa.WSConnected2Channel,"WSConnected2Channel"),pa.WSConnectedSuccess,"WSConnectedSuccess"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ca,pa.SessionStart,"SessionStart"),pa.SessionStarted,"SessionStarted"),pa.SessionStartFinish,"SessionStartFinish"),pa.StartChannel,"StartChannel"),pa.UserRoster,"UserRoster"),pa.LeaderJoined,"LeaderJoined"),pa.FollowerJoined,"FollowerJoined"),pa.CallSessionInit,"CallSessionInit"),pa.AfterJoined,"AfterJoined"),pa.SessionDestroy,"SessionDestroy"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ca,pa.AgentReconnectingInAgentSide,"AgentReconnectingInAgentSide"),pa.CustomerDisconnectedInAgentSide,"CustomerDisconnectedInAgentSide"),pa.CustomerTimeoutInAgentSide,"CustomerTimeoutInAgentSide"),pa.AgentReconnectingSuccessInAgentSide,"AgentReconnectingSuccessInAgentSide"),pa.CustomerReconnectingSuccessInAgentSide,"CustomerReconnectingSuccessInAgentSide"),pa.AgentJoinedInAgentSide,"AgentJoinedInAgentSide"),pa.CustomerJoinedInAgentSide,"CustomerJoinedInAgentSide"),pa.StartReplayInAgentSide,"StartReplayInAgentSide"),pa.CustomerReconnectingInCustomerSide,"CustomerReconnectingInCustomerSide"),pa.AgentDisconnectedInCustomerSide,"AgentDisconnectedInCustomerSide"),_defineProperty(_defineProperty(_defineProperty(Ca,pa.AgentTimeoutInCustomerSide,"AgentTimeoutInCustomerSide"),pa.CustomerReconnectingSuccessInCustomerSide,"CustomerReconnectingSuccessInCustomerSide"),pa.AgentReconnectingSuccessInCustomerSide,"AgentReconnectingSuccessInCustomerSide"),function(e){e[e.IMAGE=0]="IMAGE",e[e.FONT=1]="FONT"}(Ra||(Ra={})),Ia(["cbs-connection"]);var Ta,Oa=[Rt.Input,Ct.Annotation],ma=function(){function e(n){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8;_classCallCheck(this,e),this.logger=n,this.sample=o,this.cpuState="",this.localMachineTimeDelta=new Map,this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0},this.incrementalSourceCountMap=new Map,this.eventCacheListMap=new Map,this.handlePostMessage=function(e){if("SESSION_INFO"===e.data.eventType){var n=e.data.data;ha.setSessionInfo(n)}},this.setLocalMathineTimeDelta=function(e){e.connId&&(t.localMachineTimeDelta.set(e.connId,e.delta),t.batch(e.connId))},this.setSessionInfo=function(e){t.sessionInfo=e},this.log=function(e){var n,o,r=e.cId,i=e.event_source;if(r&&Oa.includes(i)){if(t.incrementalSourceCountMap.has(r)||(t.incrementalSourceCountMap.set(r,new Map),t.incrementalSourceCountMap.get(r).set(i,0)),!e.source_count){var a=t.incrementalSourceCountMap.get(r).get(i);if(t.incrementalSourceCountMap.get(r).set(i,a+1),0!==a&&Math.random()>t.sample)return;e.source_count=t.incrementalSourceCountMap.get(r).get(i)}e.cpu_state=t.cpuState;var s=t.localMachineTimeDelta.get(r);if(void 0===s)return t.eventCacheListMap.has(r)||t.eventCacheListMap.set(r,[]),void t.eventCacheListMap.get(r).push(e);var u=e.detime-(e.ptime-s),c=Object.assign(Object.assign({},e),{rtt:u,session_id:t.sessionInfo.sessionId,session_region:t.sessionInfo.sessionRegion,start_url:t.sessionInfo.startUrl,sdk_version:Bn.getCoBrowsingConfig("sdkVersion")});null===(o=null===(n=t.logger)||void 0===n?void 0:n.log_2)||void 0===o||o.call(n,c)}},this.observePressure(),this.addEventListener()}return _createClass(e,[{key:"addEventListener",value:function(){window.addEventListener("message",this.handlePostMessage)}},{key:"removeEventListener",value:function(){window.removeEventListener("message",this.handlePostMessage)}},{key:"observePressure",value:function(){var e=this;"PressureObserver"in window?new window.PressureObserver((function(n){e.cpuState=n[n.length-1].state})).observe("cpu",{sampleInterval:1e3}).catch((function(){console.log("")})):this.cpuState=""}},{key:"batchLog",value:function(e){var n=this;(this.eventCacheListMap.get(e)||[]).forEach((function(e){n.log(e)}))}},{key:"batch",value:function(e){if(e)this.batchLog(e);else{var n,t=_createForOfIteratorHelper(this.eventCacheListMap);try{for(t.s();!(n=t.n()).done;){var o=_slicedToArray(n.value,1)[0];this.batchLog(o)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"delete",value:function(e){this.localMachineTimeDelta.delete(e),this.incrementalSourceCountMap.delete(e),this.eventCacheListMap.delete(e)}},{key:"destroy",value:function(){this.localMachineTimeDelta.clear(),this.incrementalSourceCountMap.clear(),this.eventCacheListMap.clear(),this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0},this.removeEventListener()}}]),e}(),ha=new ma(Ia(["cbs-interaction-latency"]));function va(){}function Aa(){Aa.init.call(this)}function Na(e){return void 0===e._maxListeners?Aa.defaultMaxListeners:e._maxListeners}function Da(e,n,t,o){var r,i,a,s;if("function"!=typeof t)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),i=e._events),a=i[n]):(i=e._events=new va,e._eventsCount=0),a){if("function"==typeof a?a=i[n]=o?[t,a]:[a,t]:o?a.unshift(t):a.push(t),!a.warned&&(r=Na(e))&&r>0&&a.length>r){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[n]=t,++e._eventsCount;return e}function ya(e,n,t){var o=!1;function r(){e.removeListener(n,r),o||(o=!0,t.apply(e,arguments))}return r.listener=t,r}function ba(e){var n=this._events;if(n){var t=n[e];if("function"==typeof t)return 1;if(t)return t.length}return 0}function Pa(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}function wa(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function La(e){return encodeURIComponent(e).replace(/[!\'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Ma(e,n,t){return n="+"===e||"#"===e?wa(n):La(n),t?La(t)+"="+n:n}function Fa(e){return null!=e}function ka(e){return";"===e||"&"===e||"?"===e}function Ua(e){var n=["+","#",".","/",";","?","&"];return{expand:function(t){return e.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g,(function(e,o,r){if(o){var i=null,a=[];if(-1!==n.indexOf(o.charAt(0))&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach((function(e){var n=/([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(e);a.push.apply(a,function(e,n,t,o){var r=e[t],i=[];if(Fa(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),o&&"*"!==o&&(r=r.substring(0,parseInt(o,10))),i.push(Ma(n,r,ka(n)?t:null));else if("*"===o)Array.isArray(r)?r.filter(Fa).forEach((function(e){i.push(Ma(n,e,ka(n)?t:null))})):Object.keys(r).forEach((function(e){Fa(r[e])&&i.push(Ma(n,r[e],e))}));else{var a=[];Array.isArray(r)?r.filter(Fa).forEach((function(e){a.push(Ma(n,e))})):Object.keys(r).forEach((function(e){Fa(r[e])&&(a.push(La(e)),a.push(Ma(n,r[e].toString())))})),ka(n)?i.push(La(t)+"="+a.join(",")):0!==a.length&&i.push(a.join(","))}else";"===n?Fa(r)&&i.push(La(t)):""!==r||"&"!==n&&"?"!==n?""===r&&i.push(""):i.push(La(t)+"=");return i}(t,i,n[1],n[2]||n[3]))})),i&&"+"!==i){var s=",";return"?"===i?s="&":"#"!==i&&(s=i),(0!==a.length?i:"")+a.join(s)}return a.join(",")}return wa(r)}))}}}va.prototype=Object.create(null),Aa.EventEmitter=Aa,Aa.usingDomains=!1,Aa.prototype.domain=void 0,Aa.prototype._events=void 0,Aa.prototype._maxListeners=void 0,Aa.defaultMaxListeners=10,Aa.init=function(){this.domain=null,Aa.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new va,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Aa.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError(\'"n" argument must be a positive number\');return this._maxListeners=e,this},Aa.prototype.getMaxListeners=function(){return Na(this)},Aa.prototype.emit=function(e){var n,t,o,r,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(n=arguments[1],!s){if(n instanceof Error)throw n;var c=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw c.context=n,c}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=s,n.domainThrown=!1,s.emit("error",n),!1}if(!(t=a[e]))return!1;var l="function"==typeof t;switch(o=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var o=e.length,r=Pa(e,o),i=0;i<o;++i)r[i].call(t)}(t,l,this);break;case 2:!function(e,n,t,o){if(n)e.call(t,o);else for(var r=e.length,i=Pa(e,r),a=0;a<r;++a)i[a].call(t,o)}(t,l,this,arguments[1]);break;case 3:!function(e,n,t,o,r){if(n)e.call(t,o,r);else for(var i=e.length,a=Pa(e,i),s=0;s<i;++s)a[s].call(t,o,r)}(t,l,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,o,r,i){if(n)e.call(t,o,r,i);else for(var a=e.length,s=Pa(e,a),u=0;u<a;++u)s[u].call(t,o,r,i)}(t,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(o-1),i=1;i<o;i++)r[i-1]=arguments[i];!function(e,n,t,o){if(n)e.apply(t,o);else for(var r=e.length,i=Pa(e,r),a=0;a<r;++a)i[a].apply(t,o)}(t,l,this,r)}return!0},Aa.prototype.addListener=function(e,n){return Da(this,e,n,!1)},Aa.prototype.on=Aa.prototype.addListener,Aa.prototype.prependListener=function(e,n){return Da(this,e,n,!0)},Aa.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,ya(this,e,n)),this},Aa.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,ya(this,e,n)),this},Aa.prototype.removeListener=function(e,n){var t,o,r,i,a;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(o=this._events))return this;if(!(t=o[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new va:(delete o[e],o.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(r=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){a=t[i].listener,r=i;break}if(r<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new va,this;delete o[e]}else!function(e,n){for(var t=n,o=t+1,r=e.length;o<r;t+=1,o+=1)e[t]=e[o];e.pop()}(t,r);o.removeListener&&this.emit("removeListener",e,a||n)}return this},Aa.prototype.off=function(e,n){return this.removeListener(e,n)},Aa.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new va,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new va:delete t[e]),this;if(0===arguments.length){for(var o,r=Object.keys(t),i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new va,this._eventsCount=0,this}if("function"==typeof(n=t[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},Aa.prototype.listeners=function(e){var n,t,o=this._events;return t=o&&(n=o[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}(n):[],t},Aa.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):ba.call(e,n)},Aa.prototype.listenerCount=ba,Aa.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},function(e){e[e.NOT_DEFINED=-1]="NOT_DEFINED",e[e.SESSION_NOT_FOUND=5e4]="SESSION_NOT_FOUND",e[e.SESSION_PIN_CODE_NOT_FOUND=50003]="SESSION_PIN_CODE_NOT_FOUND"}(Ta||(Ta={}));var xa=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ta.NOT_DEFINED,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(o=n.call(this,e)).msg=e,o.code=r,o.statusCode=i,o}return _createClass(t)}(),Ba=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot.UNKNOWN;return _classCallCheck(this,t),(e=n.call(this,o)).msg=o,e}return _createClass(t)}(),Va=Ia(["CoBrowsing AgentSDK","COMMON"]);function Wa(e,n){return new Promise((function(o,r){null==n||n(e);var i=e.success,a=t(e,["success"]);i?o(a):r(e.error)}))}var Ga=function(e){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.ok){n.next=7;break}return n.next=3,e.json();case 3:return t=n.sent,n.abrupt("return",t);case 7:return n.next=9,e.json();case 9:throw o=n.sent,new xa(o.message,o.code,e.status);case 11:case"end":return n.stop()}}),n)})))},Ha=function(e,n){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function o(){var r,i,a,s,u,c,l;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=(r=n||{}).headers,a=void 0===i?{}:i,s=r.authToken,u=t(r,["headers","authToken"]),c=ui.getZmTrackingIdForWeb(),Va.log("zmTrackingIdForWeb:".concat(c)),o.next=5,Pr(e,Object.assign({headers:Object.assign({"Content-Type":"application/json",Authorization:"Bearer ".concat(s),"x-zm-trackingid":c},a),method:"GET",handleJsonResponse:Ga},u));case 5:return l=o.sent,o.abrupt("return",l);case 7:case"end":return o.stop()}}),o)})))};function Ja(){var e;return"https://"+(yt()?null===(e=bt())||void 0===e?void 0:e.domain:window.ZMCoBrowsingConfig.domain)}function ja(e,n){var t=e;if(!0!==Bn.getCoBrowsingConfig("isLoadFromSDKEntry")&&(wt()&&(t="".concat(e,"/").concat(Lt())),window.location.pathname===t)){var o=new URLSearchParams(window.location.search);Object.entries(n).forEach((function(e){var n=_slicedToArray(e,2),t=n[0],r=n[1];o.set(t,r)}));var r="".concat(window.location.pathname,"?").concat(o.toString());history.replaceState({},"",r)}}var Ya,Za=function(e){return yt()&&sessionStorage.getItem(yr(e))||""};!function(e){e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error"}(Ya||(Ya={}));var Ka,za=new Map([[1001,[10004,30105]],[1002,[10010,10014]],[1003,[30300]],[1004,[10023]],[1005,[10002]],[1006,[10011,30308]],[1007,[30309]],[1008,[30307,30311]],[1009,[30315]],[1010,[30316]],[1011,[10025,10006,10008,10007,10009,10003,10001,30106,30107,40100,40101,40102,40103,40104,40200,40201,40202,40210,40211,40214,40216,40300,40301,40302,40402,40403,10021,10026,30109]],[1012,[40212,40217]],[1013,[40215,40218]],[1014,[]],[1015,[40213,40219]],[1016,[10016]],[1017,[10027]],[1018,[]],[2001,[124,125,127,129,30202,30304,401]],[3001,[26700]],[3002,[2e4,20001,20002,20003,20004,20005,20006,20007,24001,26100,26101,26102,26103,26104,26105,26106,26200,26201,26203,26204,26301,26302,26303,26304,26305,26400,26401,26402,26403,26404,26405,26500,26501,26502,26503,26504,26506,26701,26800,26801,29e3]],[3003,[21e3,21001,25203,25204,26202,26505,29001]],[3004,[22e3,29002]],[3005,[23e3,29003]],[9999,[10005,-1,126,128,30100,30101,30102,30103,30104,30200,30201,30203,30204,30205,30301,30302,30303,30305,30306,30310,30312,30313,30314,30400,30401,30402,30403,40001,24e3,24002,25100,25101,25102,25103,25104,25105,25200,25201,25202,26600,26601,26702,26703,10020,19999,30108]]]);!function(e){e[e.SESSION_START_FAILED=1001]="SESSION_START_FAILED",e[e.SESSION_CONNECTING_IN_PROGRESS=1002]="SESSION_CONNECTING_IN_PROGRESS",e[e.SESSION_NOT_FOUND=1003]="SESSION_NOT_FOUND",e[e.SESSION_COUNT_LIMIT=1004]="SESSION_COUNT_LIMIT",e[e.SESSION_REFRESH_PIN_FAILED=1005]="SESSION_REFRESH_PIN_FAILED",e[e.SESSION_JOIN_PIN_NOT_FOUND=1006]="SESSION_JOIN_PIN_NOT_FOUND",e[e.SESSION_PIN_CODE_EXPIRED=1007]="SESSION_PIN_CODE_EXPIRED",e[e.SESSION_PIN_INVALID_FORMAT=1008]="SESSION_PIN_INVALID_FORMAT",e[e.SESSION_START_PIN_REQUIRED=1009]="SESSION_START_PIN_REQUIRED",e[e.SESSION_START_PIN_CONFLICT=1010]="SESSION_START_PIN_CONFLICT",e[e.SESSION_JOIN_FAILED=1011]="SESSION_JOIN_FAILED",e[e.SESSION_CUSTOMER_COUNT_LIMIT=1012]="SESSION_CUSTOMER_COUNT_LIMIT",e[e.SESSION_AGENT_COUNT_LIMIT=1013]="SESSION_AGENT_COUNT_LIMIT",e[e.SESSION_CUSTOMIZE_OVERRIDE_ERROR=1014]="SESSION_CUSTOMIZE_OVERRIDE_ERROR",e[e.SESSION_DUPLICATE_USER=1015]="SESSION_DUPLICATE_USER",e[e.NETWORK_ERROR=1016]="NETWORK_ERROR",e[e.SESSION_CANCELING_IN_PROGRESS=1017]="SESSION_CANCELING_IN_PROGRESS",e[e.TRANSFER_TO_NEW_TAB_FAILED=1018]="TRANSFER_TO_NEW_TAB_FAILED",e[e.TOKEN_INVALID=2001]="TOKEN_INVALID",e[e.RECORD_ERROR_UNKNOWN=3001]="RECORD_ERROR_UNKNOWN",e[e.RECORD_START_FAILED=3002]="RECORD_START_FAILED",e[e.RECORD_END_FAILED=3003]="RECORD_END_FAILED",e[e.RECORD_PAUSE_FAILED=3004]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=3005]="RECORD_RESUME_FAILED",e[e.UNDEFINED=9999]="UNDEFINED"}(Ka||(Ka={}));var qa,Xa=[29e3,29001,29002,29003],Qa=new Map,$a=_createForOfIteratorHelper(za);try{var es=function(){var e=_slicedToArray(qa.value,2),n=e[0];e[1].forEach((function(e){Qa.set(e,n)}))};for($a.s();!(qa=$a.n()).done;)es()}catch(e){$a.e(e)}finally{$a.f()}var ns=Ia(["CoBrowsing AgentSDK","COMMON"]),ts="/sdkapi/zcb/frame-templates/viewer",os=new(function(){function e(){_classCallCheck(this,e),this.sessionMap=new Map}return _createClass(e,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"deleteSession",value:function(e){this.sessionMap.delete(e)}},{key:"clearDeactivedSessions",value:function(){var e=this;this.sessionMap.forEach((function(n,t){t._destroyed&&(e.deleteSession(t),t._destroy())}))}},{key:"createSession",value:function(n){if(this.isNpmMode){this.clearDeactivedSessions();var t=new is(n);return this.sessionMap.set(t,!0),t}return e.session||(e.session=new is(n)),e.session}}]),e}()),rs="Invalid token.",is=function(e){_inherits(r,e);var n=_createSuper(r);function r(e){var t;_classCallCheck(this,r),(t=n.call(this)).options=e,t.manager=os,t.autoJoinSessionDetailsPromise=null,t._destroyed=!1;var o=(e||{}).zoomAppRoot;if(t.isNpmMode){var i=new Ba(ot.NO_ROOT_DOM);if(!o||"string"!=typeof o&&!(o instanceof HTMLElement))throw i;var a="string"==typeof o?document.querySelector(o):o;if(!(null==a?void 0:a.isConnected))throw i;t.frameRoot=a}return t.messageListener=t.messageCallback.bind(_assertThisInitialized(t)),window.addEventListener("message",t.messageListener),t}return _createClass(r,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"getPayloadFromJwtToken",value:function(e){var n;if("string"!=typeof e)return null;var t=(null===(n=e.split("."))||void 0===n?void 0:n[1])||"",o=null;try{o=JSON.parse(function(e){var n=!0;try{return Dr(e)}catch(e){n=!1}if(!n)try{return atob(e)}catch(e){}return e}(t))}catch(e){}return o}},{key:"init",value:function(){var e;return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isNpmMode){n.next=6;break}if(t=Za(qo)||Za(zo),o=t?null===(e=this.getPayloadFromJwtToken(t))||void 0===e?void 0:e.session_id:"",!t||!o){n.next=6;break}return n.next=6,this.getSessionStatus({sessionId:o,authToken:t});case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionStatus",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r,i=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.sessionId,o=e.authToken,r=new URL(Gn.getSessionStatus,Ja()),ns.log("Call CommonAgentSession.getSessionStatus: check auto join"),n.abrupt("return",Ha("".concat(r,"/").concat(t),{authToken:o}).then((function(e){var n;i.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),i.autoJoinSessionDetailsPromise=new Ti,i.autoJoinSessionDetailsPromise.resolve(e)})).catch((function(){i.delTokenForRefresh()})));case 4:case"end":return n.stop()}}),n)})))}},{key:"delTokenForRefresh",value:function(){var e;this.isNpmMode&&(e=[zo,qo],yt()&&e.forEach((function(e){sessionStorage.removeItem(yr(e))})))}},{key:"storeTokenForRefresh",value:function(e){var n,t;this.isNpmMode&&e&&(n=qo,t={access_token:e},yt()?sessionStorage.setItem(yr(n),(null==t?void 0:t.access_token)||""):ja(n,t))}},{key:"createAgentViewerEndpoint",value:function(e,n){return o(this,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,r=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ns.log("Call createAgentViewerEndpoint"),t.next=3,this.authByPinCode(e).then((function(e){return ns.log("Call createAgentViewerEndpoint success, sessionId:".concat(r.sessionId)),{success:!0,agentViewerUrl:r.getAgentViewerUrl(e.current_user.auth_token)}}),(function(e){return ns.log("Call createAgentViewerEndpoint failed, error: ".concat(JSON.stringify(e))),{success:!1,error:r.handleFetchError(e)}}));case 3:return o=t.sent,t.abrupt("return",Wa(o,n));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"authByPinCode",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r,i,a,s=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.pinCode,o=e.sdkToken,r=Ua(Gn.joinSession),i=r.expand({pinCode:t||""}),this.delTokenForRefresh(),a=new URL(i,Ja()),n.abrupt("return",Ha(a,{authToken:o}).then((function(e){var n;return s.sessionId=e.session_id||"",s.pinCode=e.cobrowse_code||"",s.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),e})));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"handleFetchError",value:function(e){var n,t,o=void 0!==(null==e?void 0:e.code)?new xa(e.message,e.code,e.statusCode):401===(null==e?void 0:e.statusCode)||403===(null==e?void 0:e.statusCode)?new xa(rs,e.statusCode,e.statusCode):new xa(e,Ta.NOT_DEFINED,Ta.NOT_DEFINED),r={errorMsg:o.message,code:(t=o.code,(t?Xa.includes(t)?t:Qa.get(t):Ka.UNDEFINED)||Ka.UNDEFINED),version:yt()?null===(n=bt())||void 0===n?void 0:n.sdkVersion:window.ZMCoBrowsingConfig.sdkVersion};return this.emit(Ya.SESSION_ERROR,r),r}},{key:"getAgentViewerUrl",value:function(e){return wt()?"".concat(Ja()).concat(ts,"/").concat(Lt(),"?access_token=").concat(e):"".concat(Ja()).concat(ts,"?access_token=").concat(e)}},{key:"join",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ns.log("Call CommonAgentSession.join"),t=!e,n.abrupt("return",(t&&this.autoJoinSessionDetailsPromise?this.autoJoinSessionDetailsPromise.promise:this.authByPinCode(e)).then((function(e){var n;ns.log("Call CommonAgentSession.join success, sessionId:".concat(o.sessionId));var t=(e||{}).sdk_config||{},r=t.gateway_endpoint,i=t.enable_zcb_client_log;void 0!==i&&ns.setLaplaceEnabled(i),r&&!o.isNpmMode&&ns.setReportUrl(r);var a=document.createElement("iframe");return o.frameRoot.appendChild(a),null===(n=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===n||n.initAgentPortal(a,e),o.iframe=a,{success:!0}}),(function(e){return ns.log("Call CommonAgentSession.join failed, error: ".concat(JSON.stringify(e))),{success:!1,error:o.handleFetchError(e)}})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionInfo",value:function(){var e,n={sessionId:this.sessionId,pinCode:this.pinCode};return(null===(e=this.autoJoinSessionDetailsPromise)||void 0===e?void 0:e.resolved)&&(n.sessionStatus=nt.RECOVERABLE),n}},{key:"markAsDestroy",value:function(){this._destroyed=!0}},{key:"_destroy",value:function(){window.removeEventListener("message",this.messageListener),this.manager.deleteSession(this),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe)}},{key:"isMessageBelongToSession",value:function(e){var n;return this.isNpmMode?e.source===(null===(n=this.iframe)||void 0===n?void 0:n.contentWindow):e.origin===Ja()}},{key:"messageCallback",value:function(e){if(this.isMessageBelongToSession(e)){var n=e.data;if(n&&"object"===_typeof(n)&&n.event&&Qo.includes(n.event)){if(ns.log("agent trigger message event: ".concat(n.event)),n.event===Ko.SESSION_PRE_INIT){var o=t(this.options,["zoomAppRoot","zoomHostName","appKey"]);return void function(e,n,t){var o;null===(o=null==n?void 0:n.postMessage)||void 0===o||o.call(n,e,t)}({event:Xo.SEND_SESSION_OPTIONS,data:o},e.source,e.origin)}this.emit(n.event,n.data),(n.event===Ko.SESSION_ENDED||n.event===Ko.SESSION_LEFT||n.event===Ko.SESSION_ERROR&&(r=n.code,![Jt.DUPLICATE_SESSION,Jt.REFRESH_PIN_CODE_FAILED].includes(r)))&&this.markAsDestroy()}}var r}},{key:"on",value:function(e,n){return _get(_getPrototypeOf(r.prototype),"on",this).call(this,e,n)}},{key:"emit",value:function(e,n){return _get(_getPrototypeOf(r.prototype),"emit",this).call(this,e,n)}}]),r}(Aa),as=Ia(["CoBrowsing AgentSDK","COMMON"]),ss=function(e,n){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,r,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=ui.genZmTrackingId(),Ur({zmTrackingId:o.zmTrackingId}),as.log("session init, zmTrackingId:".concat(o.zmTrackingId)),console.log("zmTrackingId",o.zmTrackingId),r={success:!0,sdkInfo:{version:null==Pt?void 0:Pt()}},t.prev=5,i=os.createSession(e),t.next=9,i.init();case 9:r.session=i,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(5),r.success=!1,r.error=t.t0 instanceof Ba?t.t0.msg:ot.UNKNOWN;case 16:return t.abrupt("return",new Promise((function(e,t){null==n||n(r),r.success?e(r):t(r.error)})));case 17:case"end":return t.stop()}}),t,null,[[5,12]])})))};return(null===window||void 0===window?void 0:window.ZoomCobrowseAgentSDKInitArgs)&&(ss.apply(void 0,_toConsumableArray(window.ZoomCobrowseAgentSDKInitArgs)),delete window.ZoomCobrowseAgentSDKInitArgs),e.init=ss,Object.defineProperty(e,"__esModule",{value:!0}),e}({});\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mcek85sw/zcb-client-agent.js.map\n';export{e as default};