@zoom/cobrowsesdk
Version:
ZOOM Cobrowse sdk
1 lines • 634 kB
JavaScript
var e='function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function ownKeys(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(o),!0).forEach((function(t){_defineProperty(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function _wrapNativeSuper(e){var t="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!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(o,e)},_wrapNativeSuper(e)}function _construct(e,t,o){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return o&&_setPrototypeOf(a,o.prototype),a}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,o){var n=_superPropBase(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?e:o):a.value}},_get.apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(e);if(t){var a=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)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 _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 _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),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 _createForOfIteratorHelper(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,r=!0,s=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return r=e.done,e},e:function(e){s=!0,i=e},f:function(){try{r||null==o.return||o.return()}finally{if(s)throw i}}}}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 t};var e,t={},o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",r=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,o,n){return Object.defineProperty(e,t,{value:o,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(e){c=function(e,t,o){return e[t]=o}}function u(t,o,n,a){var i=o&&o.prototype instanceof d?o:d,r=Object.create(i.prototype);return c(r,"_invoke",function(t,o,n){var a=1;return function(i,r){if(3===a)throw Error("Generator is already running");if(4===a){if("throw"===i)throw r;return{value:e,done:!0}}for(n.method=i,n.arg=r;;){var s=n.delegate;if(s){var c=b(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===a)throw a=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=3;var u=l(t,o,n);if("normal"===u.type){if(a=n.done?4:2,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=4,n.method="throw",n.arg=u.arg)}}}(t,n,new S(a||[])),!0),r}function l(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p={};function d(){}function h(){}function m(){}var g={};c(g,i,(function(){return this}));var f=Object.getPrototypeOf,v=f&&f(f(T([])));v&&v!==o&&n.call(v,i)&&(g=v);var y=m.prototype=d.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(a,i,r,s){var c=l(e[a],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==_typeof(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,r,s)}),(function(e){o("throw",e,r,s)})):t.resolve(p).then((function(e){u.value=e,r(u)}),(function(e){return o("throw",e,r,s)}))}s(c.arg)}var a;c(this,"_invoke",(function(e,n){function i(){return new t((function(t,a){o(e,n,t,a)}))}return a=a?a.then(i,i):i()}),!0)}function b(t,o){var n=o.method,a=t.i[n];if(a===e)return o.delegate=null,"throw"===n&&t.i.return&&(o.method="return",o.arg=e,b(t,o),"throw"===o.method)||"return"!==n&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),p;var i=l(a,t.i,o.arg);if("throw"===i.type)return o.method="throw",o.arg=i.arg,o.delegate=null,p;var r=i.arg;return r?r.done?(o[t.r]=r.value,o.next=t.n,"return"!==o.method&&(o.method="next",o.arg=e),o.delegate=null,p):r:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,p)}function E(e){this.tryEntries.push(e)}function w(t){var o=t[4]||{};o.type="normal",o.arg=e,t[4]=o}function S(e){this.tryEntries=[[-1]],e.forEach(E,this),this.reset(!0)}function T(t){if(null!=t){var o=t[i];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,r=function o(){for(;++a<t.length;)if(n.call(t,a))return o.value=t[a],o.done=!1,o;return o.value=e,o.done=!0,o};return r.next=r}}throw new TypeError(_typeof(t)+" is not iterable")}return h.prototype=m,c(y,"constructor",m),c(m,"constructor",h),h.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},k(_.prototype),c(_.prototype,r,(function(){return this})),t.AsyncIterator=_,t.async=function(e,o,n,a,i){void 0===i&&(i=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise);var r=new _(u(e,o,n,a),i);return t.isGeneratorFunction(o)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var n in t)o.unshift(n);return function e(){for(;o.length;)if((n=o.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=T,S.prototype={constructor:S,reset:function(t){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(w),!t)for(var o in this)"t"===o.charAt(0)&&n.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var o=this;function n(e){r.type="throw",r.arg=t,o.next=e}for(var a=o.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],r=i[4],s=this.prev,c=i[1],u=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!u)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<c)return this.method="next",this.arg=e,n(c),!0;if(s<u)return n(u),!1}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var a=n;break}}a&&("break"===e||"continue"===e)&&a[0]<=t&&t<=a[2]&&(a=null);var i=a?a[4]:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a[2],p):this.complete(i)},complete:function(e,t){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&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[2]===e)return this.complete(o[4],o[3]),w(o),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[0]===e){var n=o[4];if("throw"===n.type){var a=n.arg;w(o)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,o,n){return this.delegate={i:T(t),r:o,n:n},"next"===this.method&&(this.arg=e),p}},t}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_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,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function _iterableToArrayLimit(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,a,i,r,s=[],c=!0,u=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(n=i.call(o)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=o.return&&(r=o.return(),Object(r)!==r))return}finally{if(u)throw a}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}"undefined"==typeof globalThis&&(window.globalThis=window),void 0===globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__&&(globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__=globalThis,console.warn("[GLOBAL-PROTECT] __$ZCB_GLOBAL_PURE_WINDOW$__ is not defined and is assigned to globalThis. Please check if the iframe is loaded. Protection may not work as expected.")),globalThis.__$ZCB_GLOBAL_CACHE$__&&"function"==typeof globalThis.__$ZCB_GLOBAL_CACHE$__.$update?globalThis.__$ZCB_GLOBAL_CACHE$__.$update({Promise:globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__.Promise}):globalThis.__$ZCB_GLOBAL_CACHE$__=function(){var e,t={Promise:globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__.Promise},o=!1;function n(e,t,n){Object.defineProperty(e,t,{get:function(){return n},set:function(e){o?n=e:console.warn("[GLOBAL-PROTECT] Direct modification of __$GLOBAL_CACHE$__ is not allowed. Use __$GLOBAL_CACHE$__.$update() instead.")},enumerable:!0,configurable:!1})}if("function"!=typeof Proxy){e={};for(const o in t)t.hasOwnProperty(o)&&n(e,o,t[o])}else e=new Proxy(t,{set:function(e,t,n,a){return o||"$update"===t?(e[t]=n,!0):(console.warn("[GLOBAL-PROTECT] Direct modification of __$GLOBAL_CACHE$__ is not allowed. Use __$GLOBAL_CACHE$__.$update() instead."),!1)},get:function(e,t,o){return e[t]},deleteProperty:function(e,t){return console.warn("[GLOBAL-PROTECT] Deletion of __$GLOBAL_CACHE$__ properties is not allowed."),!1}});return Object.defineProperty(e,"$update",{value:function(e){if("object"!=typeof e||null===e)throw new Error("[GLOBAL-PROTECT] $update() expects an object with key-value pairs: $update({key1: value1, key2: value2})");o=!0;try{for(const[t,o]of Object.entries(e))this[t]=o}finally{o=!1}},writable:!1,enumerable:!1,configurable:!1}),e}();var ZCBCoChannel=function(e,t,o,n,a,i){"use strict";function r(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o}function s(e,t,o,n){return new(o||(o=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise))((function(a,i){function r(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,s)}c((n=n.apply(e,t||[])).next())}))}var c,u,l="evt";!function(e){e.USER_ROSTER="msg_user_roster",e.ROOM_ROSTER="msg_room_roster",e.DYNAMIC_FEATURE_CHANGE="msg_dynamic_feature_change",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"}(c||(c={})),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_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.REMOTE_ASSIST_REQUESTED="remote_assist_requested",e.REMOTE_ASSIST_CANCELLED="remote_assist_cancelled",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped",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"}(u||(u={}));var p,d,h,m,g,f,v,y,k="_room_session",_="_room_token",b="_room_token_save_time",E="_room_session_pin_code",w="$$_ZCB_SESSION_$$";!function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(p||(p={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(d||(d={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}(h||(h={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(m||(m={})),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"}(g||(g={})),function(e){e.UNKNOWN="unknown"}(f||(f={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(v||(v={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="persist"}(y||(y={}));var S,T,C,R,j,O,I,A,N,D,L,P,z,M;!function(e){e.zcc="zcc",e.common="common"}(S||(S={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(T||(T={})),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",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.END_DEACTIVE_ROOM=10001]="END_DEACTIVE_ROOM"}(C||(C={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(R||(R={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},C.END_ROOM,R.END_SESSION),C.DESTROY_DEACTIVE_ROOM,R.DEACTIVE_SESSION),C.DESTROY_SLEEP_ROOM,R.DEACTIVE_SESSION),C.END_DEACTIVE_ROOM,R.DEACTIVE_SESSION),C.DESTROY_NO_VALID_OPERATION_ROOM,R.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(j||(j={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(O||(O={})),_defineProperty(_defineProperty({},j.LEAVE_ROOM,O.LEAVE_SESSION),j.DISCONNECTED,O.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",e.CUSTOMER_TRANSFERRED="The session has been transferred to this page."}(I||(I={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(A||(A={})),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"}(N||(N={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(D||(D={})),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."}(L||(L={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(P||(P={})),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",e.CAN_NOT_RECEIVE_INVITE_SESSION_CC="CAN_NOT_RECEIVE_INVITE_SESSION",e.JOIN_WITH_PAIRING_CODE="JOIN_WITH_PAIRING_CODE"}(z||(z={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(M||(M={}));var x,F,B,U="/sdkapi/zcb/frame-templates/desk",V="/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"}(x||(x={})),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",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped"}(F||(F={})),F.SESSION_PRE_INIT,F.SESSION_JOINED,F.SESSION_LEFT,F.SESSION_ENDED,F.SESSION_ERROR,F.REMOTE_ASSIST_ACCEPTED,F.REMOTE_ASSIST_REJECTED,F.REMOTE_ASSIST_STARTED,F.REMOTE_ASSIST_STOPPED,function(e){e.SEND_SESSION_OPTIONS="send_session_options",e.START_REMOTE_ASSIST="start_remote_assist",e.STOP_REMOTE_ASSIST="stop_remote_assist"}(B||(B={})),B.SEND_SESSION_OPTIONS,B.START_REMOTE_ASSIST,B.STOP_REMOTE_ASSIST;var W;Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0}),function(e){e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",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"}(W||(W={}));var H,G={PIN_UPDATE_FAILED:"Pincode update failed"},Z={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},W.CONNECT_TIMEOUT_FAILED,Z.CONNECT_TIMEOUT_FAILED),W.REFRESH_PIN_CODE_FAILED,G.PIN_UPDATE_FAILED),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(H||(H={}));var K="Canceled and ended session.",J="Canceled and left session.";_defineProperty(_defineProperty({},H.CANCEL_END_ROOM,K),H.CANCEL_LEAVE_ROOM,J);var Y,q={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},$={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},X={NOT_FOUND:"Session does not exist or has ended."},Q={LIMIT:"A session is already active."},ee={PIN_NOT_FOUND:"Pincode is not found."},te={PIN_EXPIRED:"Pincode has expired."},oe={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},ne={PIN_REQUIRED:"Pincode is required."},ae={PIN_CONFLICT:"Pincode has already been used."},ie={INTERNAL_ERROR:"Session join failed due to an internal error.",SDK_INVALID:"SDK version is invalid.",SESSION_NOT_FOUND:"Session does not exist or has ended.",INVALID_URL:"The website link is invalid.",RECONNECT_FAILED:"Failed to make a connection after multiple attempts.",FAIL_OVER_FAILED:"Failed to reconnect after fail over with multiple attempts."},re={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},se={AGENT_LIMIT:"Maximum number of agents in a session reached."},ce={DUPLICATE_AGENT:"The agent is already in the session."},ue={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},le={CANCELING:"Operation failed, the session is being canceled."},pe={JWT_INVALID:"JWT token is invalid.",JWT_NO_PERMISSIONS:"JWT token has no permissions.",JWT_EXPIRED:"JWT token has expired.",JWT_ACCESS_ERROR:"JWT token access error.",INTERNAL_ERROR:"Internal token error."},de={SERVICE_ERROR:"Service error occurred.",API_RATE_LIMIT:"API request rate limit, try again later.",SESSION_ERROR:"Session error occurred.",SESSION_ERROR_WITH_RETRY:"Session error occurred, try again later."};!function(e){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.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",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.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",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.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED"}(Y||(Y={}));var he,me=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t={},Y.WEB_REPORT_REGION_FAILED,ie.INTERNAL_ERROR),Y.WEB_REPORT_REGION_NOT_MATCH,ie.INTERNAL_ERROR),Y.WEB_REPORT_USER_JOIN_FAILED,ie.INTERNAL_ERROR),Y.WEB_REPORT_USER_JOIN_EMPTY,ie.INTERNAL_ERROR),Y.WEB_REPORT_USER_JOIN_EMPTY_USER,ie.INTERNAL_ERROR),Y.AUTH_CONFLICT,ie.INTERNAL_ERROR),Y.AUTH_VERIFY_FAILED,ie.INTERNAL_ERROR),Y.AUTH_DB_QUERY_ERROR,ie.INTERNAL_ERROR),Y.ROOM_NOT_EXIST,ie.INTERNAL_ERROR),Y.ROOM_ADD_USER_FAILED,ie.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Y.SESSION_ALREADY_ENDED,ie.SESSION_NOT_FOUND),Y.ROOM_DEPRECATED,ie.INTERNAL_ERROR),Y.ROOM_ID_MISSING,ie.INTERNAL_ERROR),Y.AUTH_PAYLOAD_MISSING,ie.INTERNAL_ERROR),Y.START_URL_INVALID,ie.INTERNAL_ERROR),Y.META_DATA_INVALID,ie.INTERNAL_ERROR),Y.WSSGW_INSTANCE_NOT_FOUND,ie.INTERNAL_ERROR),Y.LEADER_CONFLICT,re.CUSTOMER_LIMIT),Y.REACHED_LEADER_LIMIT,re.CUSTOMER_LIMIT),Y.FOLLOWER_CONFLICT,se.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Y.REACHED_FOLLOWER_LIMIT,se.AGENT_LIMIT),Y.USER_CONFLICT,ce.DUPLICATE_AGENT),Y.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,de.SESSION_ERROR_WITH_RETRY),Y.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,de.SESSION_ERROR));!function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_LAUNCH_SESSION=10024]="DUPLICATE_LAUNCH_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION"}(he||(he={}));var ge,fe,ve=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(o={},he.ALL_PING_FAILED,ie.INTERNAL_ERROR),he.EMPTY_PING_LIST,ie.INTERNAL_ERROR),he.SOCKET_RECONNECT_FAILED,ie.RECONNECT_FAILED),he.SOCKET_FAIL_OVER_FAILED,ie.FAIL_OVER_FAILED),he.FRAME_LEVEL_NOT_READY,ie.INTERNAL_ERROR),he.SESSION_CONNECTING,$.CONNECTING),he.SESSION_PERSISTING,$.PERSISTING),he.DUPLICATE_SESSION,Q.LIMIT),he.DUPLICATE_LAUNCH_SESSION,Q.LIMIT),he.SESSION_CANCELING,le.CANCELING),_defineProperty(o,he.UNKNOWN_SERVICE_EXCEPTION,de.SERVICE_ERROR));!function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(ge||(ge={})),_defineProperty(_defineProperty({},ge.Unauthorized,pe.JWT_INVALID),ge.Forbidden,pe.JWT_INVALID),function(e){e[e.INVALID_URL=30105]="INVALID_URL",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE=30600]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT=30601]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_EXCEEDED_MAX_LENGTH=30307]="PIN_CODE_EXCEEDED_MAX_LENGTH",e[e.PIN_INVALID_CHARACTERS=30311]="PIN_INVALID_CHARACTERS",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.INVALID_SDK_VERSION=30106]="INVALID_SDK_VERSION",e[e.ERROR_SDK_VERSION=30107]="ERROR_SDK_VERSION",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SDK_VERSION_NOT_FOUND=30110]="SDK_VERSION_NOT_FOUND",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.INVALID_EXPIRED=129]="INVALID_EXPIRED",e[e.TOKEN_ACCESS_ERROR=30304]="TOKEN_ACCESS_ERROR",e[e.UNKNOWN=-1]="UNKNOWN",e[e.LOCKED=126]="LOCKED",e[e.PIN_PUSH_FAILED=128]="PIN_PUSH_FAILED",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.SEARCH_ERROR=30200]="SEARCH