UNPKG

@zoom/cobrowsesdk

Version:
1 lines 56.7 kB
var 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 _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);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,n):void 0}}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 _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var o=0,t=Array(n);o<n;o++)t[o]=e[o];return t}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 o,t=_getPrototypeOf(e);if(n){var i=_getPrototypeOf(this).constructor;o=Reflect.construct(t,arguments,i)}else o=t.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 _defineProperty(e,n,o){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,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,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var o=0;o<n.length;o++){var t=n[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,_toPropertyKey(t.key),t)}}function _createClass(e,n,o){return n&&_defineProperties(e.prototype,n),o&&_defineProperties(e,o),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 o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,n||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}var ZoomCobrowseSDK=function(e,n){"use strict";(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,o;(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===(o=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===o?void 0:o.appKey},window.parent.ZCB_CoBrowseConfigController.coBrowsingConfig))}}],[{key:"create",value:function(){return window.ZCB_CoBrowseConfigController||new e}}]),e})().create();var o,t,i,r=function(e,n){return"".concat(e).concat(n)};!function e(n,o){var t={},i=function(){var i=n[E];"string"==typeof i?t[E]=r(o,i):"function"==typeof i?t[E]=function(){return r(o,i.apply(void 0,arguments))}:"object"===_typeof(i)&&(i instanceof RegExp||(t[E]=e(i,o)))};for(var E in n)i();return t}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing"),function(e){e.LOCAL="local",e.PROD="prod"}(o||(o={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(t||(t={})),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"}(i||(i={}));var E,_;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(E||(E={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(E.FOLLOWER,"|").concat(E.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"}(_||(_={}));var a,s=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");a={},s.forEach((function(e,n){return a[e]=n})),String.fromCharCode.bind(String);var S,R,I,u,l,T,O,c,C,N,g,D,A,d,P,f,m,L,p,M,b,F,h,y,V,v,U,B=function(e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n};!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"}(S||(S={})),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"}(R||(R={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(I||(I={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(u||(u={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}(l||(l={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(T||(T={})),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"}(O||(O={})),function(e){e.UNKNOWN="unknown"}(c||(c={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(C||(C={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="persist"}(N||(N={})),function(e){e.zcc="zcc",e.common="common"}(g||(g={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(D||(D={})),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"}(A||(A={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(d||(d={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},A.END_ROOM,d.END_SESSION),A.DESTROY_DEACTIVE_ROOM,d.DEACTIVE_SESSION),A.DESTROY_SLEEP_ROOM,d.DEACTIVE_SESSION),A.END_DEACTIVE_ROOM,d.DEACTIVE_SESSION),A.DESTROY_NO_VALID_OPERATION_ROOM,d.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(P||(P={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(f||(f={})),_defineProperty(_defineProperty({},P.LEAVE_ROOM,f.LEAVE_SESSION),P.DISCONNECTED,f.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."}(m||(m={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(L||(L={})),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"}(p||(p={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(M||(M={})),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."}(b||(b={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(F||(F={})),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"}(h||(h={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(y||(y={})),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"}(V||(V={})),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"}(v||(v={})),v.SESSION_PRE_INIT,v.SESSION_JOINED,v.SESSION_LEFT,v.SESSION_ENDED,v.SESSION_ERROR,v.REMOTE_ASSIST_ACCEPTED,v.REMOTE_ASSIST_REJECTED,v.REMOTE_ASSIST_STARTED,v.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"}(U||(U={})),U.SEND_SESSION_OPTIONS,U.START_REMOTE_ASSIST,U.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 W,G={PIN_UPDATE_FAILED:"Pincode update failed"},x={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},w.CONNECT_TIMEOUT_FAILED,x.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"}(W||(W={}));var J="Canceled and ended session.",H="Canceled and left session.";_defineProperty(_defineProperty({},W.CANCEL_END_ROOM,J),W.CANCEL_LEAVE_ROOM,H);var K,Y={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},k={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},Z={NOT_FOUND:"Session does not exist or has ended."},X={LIMIT:"A session is already active."},j={PIN_NOT_FOUND:"Pincode is not found."},z={PIN_EXPIRED:"Pincode has expired."},Q={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},q={PIN_REQUIRED:"Pincode is required."},$={PIN_CONFLICT:"Pincode has already been used."},ee={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."},ne={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},oe={AGENT_LIMIT:"Maximum number of agents in a session reached."},te={DUPLICATE_AGENT:"The agent is already in the session."},ie={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},re={CANCELING:"Operation failed, the session is being canceled."},Ee={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."},_e={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"}(K||(K={}));var ae,se={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(se,K.WEB_REPORT_REGION_FAILED,ee.INTERNAL_ERROR),K.WEB_REPORT_REGION_NOT_MATCH,ee.INTERNAL_ERROR),K.WEB_REPORT_USER_JOIN_FAILED,ee.INTERNAL_ERROR),K.WEB_REPORT_USER_JOIN_EMPTY,ee.INTERNAL_ERROR),K.WEB_REPORT_USER_JOIN_EMPTY_USER,ee.INTERNAL_ERROR),K.AUTH_CONFLICT,ee.INTERNAL_ERROR),K.AUTH_VERIFY_FAILED,ee.INTERNAL_ERROR),K.AUTH_DB_QUERY_ERROR,ee.INTERNAL_ERROR),K.ROOM_NOT_EXIST,ee.INTERNAL_ERROR),K.ROOM_ADD_USER_FAILED,ee.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(se,K.SESSION_ALREADY_ENDED,ee.SESSION_NOT_FOUND),K.ROOM_DEPRECATED,ee.INTERNAL_ERROR),K.ROOM_ID_MISSING,ee.INTERNAL_ERROR),K.AUTH_PAYLOAD_MISSING,ee.INTERNAL_ERROR),K.START_URL_INVALID,ee.INTERNAL_ERROR),K.META_DATA_INVALID,ee.INTERNAL_ERROR),K.WSSGW_INSTANCE_NOT_FOUND,ee.INTERNAL_ERROR),K.LEADER_CONFLICT,ne.CUSTOMER_LIMIT),K.REACHED_LEADER_LIMIT,ne.CUSTOMER_LIMIT),K.FOLLOWER_CONFLICT,oe.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(se,K.REACHED_FOLLOWER_LIMIT,oe.AGENT_LIMIT),K.USER_CONFLICT,te.DUPLICATE_AGENT),K.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,_e.SESSION_ERROR_WITH_RETRY),K.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,_e.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"}(ae||(ae={}));var Se,Re,Ie={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ie,ae.ALL_PING_FAILED,ee.INTERNAL_ERROR),ae.EMPTY_PING_LIST,ee.INTERNAL_ERROR),ae.SOCKET_RECONNECT_FAILED,ee.RECONNECT_FAILED),ae.SOCKET_FAIL_OVER_FAILED,ee.FAIL_OVER_FAILED),ae.FRAME_LEVEL_NOT_READY,ee.INTERNAL_ERROR),ae.SESSION_CONNECTING,k.CONNECTING),ae.SESSION_PERSISTING,k.PERSISTING),ae.DUPLICATE_SESSION,X.LIMIT),ae.DUPLICATE_LAUNCH_SESSION,X.LIMIT),ae.SESSION_CANCELING,re.CANCELING),_defineProperty(Ie,ae.UNKNOWN_SERVICE_EXCEPTION,_e.SERVICE_ERROR),function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(Se||(Se={})),_defineProperty(_defineProperty({},Se.Unauthorized,Ee.JWT_INVALID),Se.Forbidden,Ee.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_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",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.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.INVALID_TOTAL_MINUTES=30312]="INVALID_TOTAL_MINUTES",e[e.DUPLICATE_REQUEST=30313]="DUPLICATE_REQUEST",e[e.INVALID_TEMPLATE_TYPE=30314]="INVALID_TEMPLATE_TYPE",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",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL"}(Re||(Re={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Re.INVALID_TOKEN,Ee.JWT_INVALID),Re.NO_PERMISSION,Ee.JWT_NO_PERMISSIONS),Re.INVALID_EXPIRED,Ee.JWT_EXPIRED),Re.TOKEN_ACCESS_ERROR,Ee.JWT_ACCESS_ERROR);var ue,le,Te,Oe={};function ce(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function Ce(){return ce()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function Ne(){return"MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window)}function ge(){return Ne()||function(){var e=window.navigator,n=e.userAgent,o=e.platform;if(/Android/.test(n)||!/Linux/.test(o))return!1;var t="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,i="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return t&&i}()}_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,Re.INVALID_URL,Y.INVALID_URL),Re.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,Y.ACCOUNT_NO_CREDITS),Re.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,Y.ACCOUNT_NO_CREDITS),Re.SESSION_NOT_FOUND,Z.NOT_FOUND),Re.PIN_CODE_NOT_FOUND,j.PIN_NOT_FOUND),Re.PIN_CODE_EXPIRED,z.PIN_EXPIRED),Re.PIN_CODE_EXCEEDED_MAX_LENGTH,Q.PIN_INVALID_LENGTH),Re.PIN_INVALID_CHARACTERS,Q.PIN_INVALID_CHARACTERS),Re.PIN_CODE_IS_REQUIRED,q.PIN_REQUIRED),Re.PIN_CODE_HAS_BEEN_USED,$.PIN_CONFLICT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,Re.INVALID_SDK_VERSION,ee.SDK_INVALID),Re.ERROR_SDK_VERSION,ee.SDK_INVALID),Re.INACTIVE_SDK_VERSION,ee.SDK_INVALID),Re.SDK_VERSION_NOT_FOUND,ee.SDK_INVALID),Re.NETWORK_ERROR,ie.NETWORK_REQUEST_FAILED),Re.INVALID_TOKEN,Ee.INTERNAL_ERROR),Re.NO_PERMISSION,Ee.INTERNAL_ERROR),Re.INVALID_EXPIRED,Ee.INTERNAL_ERROR),Re.TOKEN_ACCESS_ERROR,Ee.INTERNAL_ERROR),Re.UNKNOWN,_e.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,Re.LOCKED,_e.SERVICE_ERROR),Re.PIN_PUSH_FAILED,_e.SERVICE_ERROR),Re.INVALID_BUSINESS_TYPE,_e.SERVICE_ERROR),Re.INVALID_RECORDING_ID,_e.SERVICE_ERROR),Re.MISSING_FIELD,_e.SERVICE_ERROR),Re.SEARCH_ERROR,_e.SERVICE_ERROR),Re.INVALID_BUSINESS_TYPE2,_e.SERVICE_ERROR),Re.FILE_SERVER_ERROR,_e.SERVICE_ERROR),Re.FILE_SERVICE_ERROR,_e.SERVICE_ERROR),Re.FILE_SERVICE_ERROR2,_e.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,Re.INVALID_START_TIME,_e.SERVICE_ERROR),Re.INVALID_ACTION,_e.SERVICE_ERROR),Re.INVALID_REGION,_e.SERVICE_ERROR),Re.EXCEEDED_FAILED,_e.API_RATE_LIMIT),Re.INVALID_END_TIME,_e.SERVICE_ERROR),Re.PIN_CODE_NOT_READY,_e.SERVICE_ERROR),Re.INVALID_TOTAL_MINUTES,_e.SERVICE_ERROR),Re.DUPLICATE_REQUEST,_e.SERVICE_ERROR),Re.INVALID_TEMPLATE_TYPE,_e.SERVICE_ERROR),Re.SERVER_ERROR1,_e.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,Re.SERVER_ERROR2,_e.SERVICE_ERROR),Re.SERVER_ERROR3,_e.SERVICE_ERROR),Re.SERVER_ERROR4,_e.SERVICE_ERROR),Re.INVALID_SDK_CDN_URL,_e.SERVICE_ERROR),function(e){e[e.RECORD_START_FAILED=29e3]="RECORD_START_FAILED",e[e.RECORD_STOP_FAILED=29001]="RECORD_STOP_FAILED",e[e.RECORD_PAUSE_FAILED=29002]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=29003]="RECORD_RESUME_FAILED"}(ue||(ue={})),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"}(le||(le={})),function(e){e.Enter="Enter",e.Space=" ",e.Escape="Escape",e.Tab="Tab",e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Delete="Delete",e.Backspace="Backspace",e.Spacebar="Spacebar"}(Te||(Te={}));var De,Ae,de,Pe=(De=null,Ae=null,de=null,{get isIOS(){return null===De&&(De=ce()),De},get isIOSDevice(){return null===Ae&&(Ae=ce()||Ne()),Ae},get isMobileDeviceOrDesktopUA(){return null===de&&(de=!(!Ce()&&!ge())),de}}),fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,o=window.visualViewport;if(!Ve(o))return Le();if(o.scale>1){var t=o.width*o.scale;return Math.min(t,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:t)}return o.width}},{key:"calculateHeight",value:function(){var e,n,o=window.visualViewport;if(!Ve(o))return pe();if(o.scale>1){var t=o.height*o.scale;return Math.min(t,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:t)}return o.height}}]),e}(),me=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,o=window.visualViewport;if(!Ve(o))return Le();if(o.scale>1){var t=Math.max(o.width*o.scale,window.innerWidth);return Math.min(t,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:t)}return Math.max(o.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,o=window.visualViewport;if(!Ve(o))return pe();if(o.scale>1){var t=Math.max(o.height*o.scale,window.innerHeight);return Math.min(t,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:t)}return Math.max(o.height,window.innerHeight)}}]),e}();function Le(){return document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function pe(){return document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var Me=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return Le()}},{key:"calculateHeight",value:function(){return pe()}}]),e}(),be=function(){var e,n=!1;function o(){e=Pe.isMobileDeviceOrDesktopUA&&Ve(window.visualViewport)?Pe.isIOSDevice?new fe:new me:new Me,n=!0}return{getWidth:function(){return n||o(),e.calculateWidth()},getHeight:function(){return n||o(),e.calculateHeight()}}}();var Fe,he,ye=new WeakMap;function Ve(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=ye.get(e);if(void 0!==n)return n}var o=function(e){return"object"===_typeof(e)&&null!==e&&"scale"in e&&"width"in e&&"height"in e&&"offsetTop"in e&&"number"==typeof e.scale&&"number"==typeof e.width&&"number"==typeof e.height&&"number"==typeof e.offsetTop}(e);return o&&ye.set(e,o),o}function ve(){}function Ue(){Ue.init.call(this)}function Be(e){return void 0===e._maxListeners?Ue.defaultMaxListeners:e._maxListeners}function we(e,n,o,t){var i,r,E,_;if("function"!=typeof o)throw new TypeError(\'"listener" argument must be a function\');if((r=e._events)?(r.newListener&&(e.emit("newListener",n,o.listener?o.listener:o),r=e._