@zoom/cobrowsesdk 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/LICENSE.md +1 -0
- package/README.md +143 -0
- package/esm/agent.js +1 -0
- package/esm/base.js +1 -0
- package/esm/customer.js +1 -0
- package/esm/sdk-channel.js +1 -0
- package/esm/sdk-client-agent.js +1 -0
- package/esm/sdk-client.js +1 -0
- package/esm/sdk-controller.js +1 -0
- package/esm/sdk-core-css.js +1 -0
- package/esm/sdk-core.js +1 -0
- package/esm/sdk-portal-agent-css.js +1 -0
- package/esm/sdk-portal-agent.js +1 -0
- package/esm/sdk-portal-customer-css.js +1 -0
- package/esm/sdk-portal-customer.js +1 -0
- package/oss_attribution.txt +5929 -0
- package/package.json +45 -0
- package/types/agent-umd.d.ts +1029 -0
- package/types/agent.d.ts +1023 -0
- package/types/customer-umd.d.ts +1031 -0
- package/types/customer.d.ts +1025 -0
- package/umd/agent.js +1 -0
- package/umd/customer.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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 r=_getPrototypeOf(this).constructor;o=Reflect.construct(t,arguments,r)}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,r,i=function(e,n){return"".concat(e).concat(n)};!function e(n,o){var t={},r=function(){var r=n[_];"string"==typeof r?t[_]=i(o,r):"function"==typeof r?t[_]=function(){return i(o,r.apply(void 0,arguments))}:"object"===_typeof(r)&&(r instanceof RegExp||(t[_]=e(r,o)))};for(var _ in n)r();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"}(r||(r={}));var _,E;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(_||(_={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(_.FOLLOWER,"|").concat(_.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"}(E||(E={}));var a,s,S,R,T,O,I,C,l,u,D,A,N,c,d,g,P,f,L,p,m,y,M,F,b,U,h,B,V,v,W,G,w,H,Y=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.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"}(a||(a={})),function(e){e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STARTED="remote_control_started",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred"}(s||(s={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(S||(S={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(R||(R={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat"}(T||(T={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(O||(O={})),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"}(I||(I={})),function(e){e.UNKNOWN="unknown"}(C||(C={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(l||(l={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="persist"}(u||(u={})),function(e){e.zcc="zcc",e.common="common"}(D||(D={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(A||(A={})),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"}(N||(N={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(c||(c={})),_defineProperty(_defineProperty(_defineProperty({},N.END_ROOM,c.END_SESSION),N.DESTROY_DEACTIVE_ROOM,c.DEACTIVE_SESSION),N.DESTROY_SLEEP_ROOM,c.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(d||(d={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(g||(g={})),_defineProperty(_defineProperty({},d.LEAVE_ROOM,g.LEAVE_SESSION),d.DISCONNECTED,g.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"}(P||(P={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(f||(f={})),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"}(L||(L={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(p||(p={})),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."}(m||(m={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(y||(y={})),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"}(M||(M={})),function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.RemoteControl=7]="RemoteControl"}(F||(F={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}(b||(b={})),function(e){e[e.Annotation=16]="Annotation"}(U||(U={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(h||(h={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(B||(B={})),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(V||(V={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION"}(v||(v={})),function(e){e.TRANSFERRING="transferring_in",e.SUCCESS="transfer_in_success",e.FAIL="transfer_in_failed",e.CANCEL="transfer_in_cancelled",e.TRANSFER_OUT_SUCCESS="transfer_out_success"}(W||(W={})),function(e){e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local"}(G||(G={})),function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(w||(w={})),function(e){e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED"}(H||(H={})),H.RECORD_OVERHEAD_CAPACITY,H.RECORD_OVERHEAD_CAPACITY;var J,x={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.START_RECORD_UNAVAILABLE,"start record api not available"),H.START_RECORD_INVALID_BODY,"start record response body invalid"),H.END_RECORD_UNAVAILABLE,"end record api not available"),H.END_RECORD_INVALID_BODY,"end record response body invalid"),H.EXIST_RECORD_CONFLICT,"already has an existed recording"),H.NO_ACTIVE_RECORD,"no existed recording"),H.RECORD_IN_START_PROGRESS,"recording is in start progress"),H.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),H.RECORD_ALREADY_PAUSED,"recording already paused"),H.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.RECORD_NOT_ENABLED,"recording not enabled"),H.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),H.LEADER_NOT_JOINED,"leader not joined room"),H.LEADER_DENIED,"leader denied recording"),H.RECORD_ABORTED,"recording aborted"),H.CHS_JWT_MISSING,"CHS JWT is empty"),H.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),H.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),H.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),H.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.CHS_JWT_VERIFY_FAILED,"token verify failed"),H.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),H.AID_IN_JWT_MISSING,"aid in token is required"),H.UID_IN_JWT_MISSING,"uid in token is required"),H.RECORD_ID_MISSING,"recordId is empty"),H.RECORD_TASK_NOT_EXIST,"record task not exist"),H.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),H.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),H.PAGE_LOAD_HTML_FAILED,"page load html failed"),H.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),H.PAGE_START_FAILED,"page start record failed"),H.PAGE_STOP_FAILED,"page start stop failed"),H.RECORDER_INIT_FAILED,"PageRecorder init failed"),H.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),H.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),H.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),H.DISK_USAGE_FULL,"Server disk is full"),H.CONNECT_CHS_FAILED,"CHS is not available"),H.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),H.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),H.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),H.UDS_INIT_FAILED,"UDSManager init failed"),H.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),H.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),H.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),H.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),H.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),H.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.FILE_META_INIT_FAILED,"MetaDataManager init failed"),H.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),H.FILE_META_OPEN_FAILED,"open metadata failed"),H.FILE_META_LOCK_FAILED,"metadata lock failed"),H.FILE_META_RELEASE_FAILED,"metadata release failed"),H.FILE_META_WRITE_FAILED,"metadata write failed"),H.ZCB_WEB_NOT_AVAILABLE,"web is not available"),H.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),H.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),H.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(x,H.REDIS_GET_START_TIME_FAILED,"get record start time failed"),H.REDIS_SET_START_TIME_FAILED,"set record start time failed"),H.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),H.ASSETS_WRITE_FAILED,"write assets to local disk failed"),function(e){e[e.INIT=0]="INIT",e[e.RUNNING=1]="RUNNING",e[e.PAUSE=2]="PAUSE",e[e.FINISH=3]="FINISH"}(J||(J={}));var K,k;!function(e){e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=8194]="WS_DOC_JSON_JOIN_RES"}(K||(K={})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP"}(k||(k={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},k.ANNOTATION,!0),k.INTERACTION,!0),k.INTERACTION_BINARY,!0),k.FLYING_CURSOR,!0),_defineProperty({},k.RTT,!0);var Z={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Z,k.INTERACTION,!0),k.INTERACTION_BINARY,!0),k.FULL_SNAPSHOT_REQUEST,!0),k.REMOTE_CONTROL_STATUS,!0),k.REMOTE_CONTROL_REQUEST,!0),k.REMOTE_CONTROL_RESPONSE,!0),k.REMOTE_CONTROL_GIVE_UP,!0),k.REMOTE_CONTROL_TAKE_BACK,!0),k.REMOTE_CONTROL_REJECT,!0),k.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Z,k.START_RECORD,!0),k.RESUME_RECORD,!0),k.PAUSE_RECORD,!0),k.STOP_RECORD,!0),k.ANNOTATION,!0),k.FLYING_CURSOR,!0);var j,X,z={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(z,k.INTERACTION,!0),k.INTERACTION_BINARY,!0),k.FULL_SNAPSHOT_REQUEST,!0),k.USER_ROSTER,!0),k.ROOM_ROSTER,!0),k.REMOTE_CONTROL_STATUS,!0),k.REMOTE_CONTROL_REQUEST,!0),k.REMOTE_CONTROL_RESPONSE,!0),k.REMOTE_CONTROL_GIVE_UP,!0),k.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(z,k.REMOTE_CONTROL_REJECT,!0),k.REMOTE_CONTROL_CANCEL,!0),k.START_RECORD,!0),k.RESUME_RECORD,!0),k.PAUSE_RECORD,!0),k.STOP_RECORD,!0),k.START_RECORD_RESPONSE,!0),k.STOP_RECORD_RESPONSE,!0),k.PAUSE_RECORD_RESPONSE,!0),k.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(z,k.RECORD_APPROVE_REQUEST,!0),k.RECORD_APPROVE_RESPONSE,!0),k.ANNOTATION,!0),k.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},k.RECORD_APPROVE_RESPONSE,!0),k.LEAVE_ROOM,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},G.RegisterCustomerCursorDOM,!0),G.UnregisterUser,!0),G.RegisterOtherAgentCursorDOM,!0),G.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT"}(j||(j={})),_defineProperty(_defineProperty({},j.IN_PROGRESS,"remote control is in progress"),j.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED"}(X||(X={})),X.LEAVE_ROOM,X.WEB_REPORT_USER_JOIN_FAILED,X.AUTH_CONFLICT,X.AUTH_VERIFY_FAILED,X.LEADER_CONFLICT,X.FOLLOWER_CONFLICT,X.USER_CONFLICT,X.SESSION_ALREADY_ENDED,X.ROOM_ID_MISSING,X.AUTH_PAYLOAD_MISSING,X.START_URL_INVALID,X.END_ROOM,X.DESTROY_DEACTIVE_ROOM,X.DESTROY_SLEEP_ROOM,X.NO_OTHER_ACTIVE_USER,X.RECORD_ALREADY_ENDED,X.REACHED_LEADER_LIMIT,X.REACHED_FOLLOWER_LIMIT,X.SESSION_ALREADY_ENDED,X.END_ROOM,X.DESTROY_DEACTIVE_ROOM;var Q,q,$,ee,ne={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne,X.LEAVE_ROOM,"normal leave"),X.DISCONNECTED,"user disconnected"),X.WEB_REPORT_REGION_FAILED,"report region failed"),X.WEB_REPORT_REGION_NOT_MATCH,"report region not match"),X.WEB_REPORT_USER_JOIN_EMPTY,"report user join status empty result"),X.WEB_REPORT_USER_JOIN_FAILED,"report user join status failed"),X.WEB_REPORT_USER_JOIN_EMPTY_USER,"report user join response have no current user info"),X.AUTH_CONFLICT,"auth is already consumed once"),X.AUTH_VERIFY_FAILED,"auth payload is denyed"),X.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne,X.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),X.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),X.ROOM_NOT_EXIST,"room not exist or create failed"),X.ROOM_ADD_USER_FAILED,"room add new user failed"),X.LEADER_CONFLICT,"leader already exist"),X.FOLLOWER_CONFLICT,"follower already exist"),X.ROOM_DEPRECATED,"room is deprecated"),X.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),X.USER_CONFLICT,"user conflict"),X.SESSION_ALREADY_ENDED,"room is already ended"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne,X.ROOM_ID_MISSING,"room id is required"),X.AUTH_PAYLOAD_MISSING,"auth payload is required"),X.START_URL_INVALID,"startUrl is invalid"),X.SERVER_RESTARTED,"server restarted"),X.WSSGW_REMOVE_NODE,"wssgw node instance removed"),X.META_DATA_INVALID,"message meta data invalid"),X.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),X.END_ROOM,"The user actively clicked \'end\'."),X.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),X.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne,X.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),X.RECORD_ALREADY_ENDED,"record already ended"),X.RECORD_START_FAILED,"record start failed"),X.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),X.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(Q||(Q={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(q||(q={})),function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SESSION_START_FAILED=10004]="SESSION_START_FAILED",e[e.SESSION_END_FAILED=10005]="SESSION_END_FAILED",e[e.SESSION_CREATE_FAILED=10006]="SESSION_CREATE_FAILED",e[e.PARTICIPANT_TYPE_ERROR=10007]="PARTICIPANT_TYPE_ERROR",e[e.CONNECT_SERVER_FAILED=10008]="CONNECT_SERVER_FAILED",e[e.CREATE_CHANNEL_FAILED=10009]="CREATE_CHANNEL_FAILED",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_ID_NOT_FOUND=10011]="SESSION_ID_NOT_FOUND",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SDK_VERSION_NOT_MATCH=10026]="SDK_VERSION_NOT_MATCH",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION"}($||($={})),function(e){e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION"}(ee||(ee={}));var oe="Create channel failed.",te="Create session failed.",re="End session failed.",ie="Pin code update failed",_e="Start session failed.",Ee="Session connecting.",ae="Session persisting.",se="Session canceling.",Se="Session id not found.",Re="Session connect timeout.",Te="Session already exists.",Oe="Unknown Service Exception.",Ie="SDK version not match.",Ce={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ce,$.ALL_PING_FAILED,te),$.EMPTY_PING_LIST,te),$.SESSION_CREATE_FAILED,te),$.FRAME_LEVEL_NOT_READY,te),$.PARTICIPANT_TYPE_ERROR,_e),$.REFRESH_PIN_CODE_FAILED,ie),$.SESSION_START_FAILED,_e),$.SESSION_END_FAILED,re),$.SESSION_ID_NOT_FOUND,Se),$.CONNECT_SERVER_FAILED,oe),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ce,$.CREATE_CHANNEL_FAILED,oe),$.SESSION_CONNECTING,Ee),$.SESSION_PERSISTING,ae),$.SESSION_CANCELING,se),$.UNKNOWN_SERVICE_EXCEPTION,Oe),$.SOCKET_RECONNECT_FAILED,oe),$.SOCKET_FAIL_OVER_FAILED,oe),$.DUPLICATE_SESSION,Te),$.SDK_VERSION_NOT_MATCH,Ie),_defineProperty({},ee.CONNECT_TIMEOUT_FAILED,Re);var le,ue="The user actively clicked \'end\'.",De="normal",Ae="user disconnected",Ne="customer already exist",ce="agent already exist",de="get auth from redis failed",ge="auth payload is denyed",Pe="auth is already used",fe="room id is invalid",Le="room not exist or create failed",pe="room add new user failed",me="server restarted",ye="wssgw node instance removed",Me="The session ended automatically because there was only 1 user present for 3 minutes.",Fe="The session ended automatically due to no user activity in the session for 5 minutes.",be="user conflict",Ue="meta data invalid",he="wssgw instance not found",Be="the number of customers has reached the limit",Ve="the number of agents has reached the limit",ve={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ve,X.DISCONNECTED,Ae),X.END_ROOM,ue),X.LEAVE_ROOM,De),X.LEADER_CONFLICT,Ne),X.FOLLOWER_CONFLICT,ce),X.AUTH_DB_QUERY_ERROR,de),X.AUTH_VERIFY_FAILED,ge),X.AUTH_CONFLICT,Pe),X.ROOM_ID_MISSING,fe),X.ROOM_NOT_EXIST,Le),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ve,X.ROOM_ADD_USER_FAILED,pe),X.SERVER_RESTARTED,me),X.WSSGW_REMOVE_NODE,ye),X.DESTROY_DEACTIVE_ROOM,Me),X.DESTROY_SLEEP_ROOM,Fe),X.USER_CONFLICT,be),X.META_DATA_INVALID,Ue),X.WSSGW_INSTANCE_NOT_FOUND,he),X.REACHED_LEADER_LIMIT,Be),X.REACHED_FOLLOWER_LIMIT,Ve),function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.LOCKED=126]="LOCKED",e[e.INVALID_TOKEN_MAX=127]="INVALID_TOKEN_MAX",e[e.INVALID_TOKEN_3=129]="INVALID_TOKEN_3",e[e.INVALID_TOKEN_4=401]="INVALID_TOKEN_4",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.PROVIDE_DATA=30100]="PROVIDE_DATA",e[e.TOKEN_EXPIRED=30101]="TOKEN_EXPIRED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.APPKEY_NOT_FOUND=30202]="APPKEY_NOT_FOUND",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.INVALID_TOKEN2=30304]="INVALID_TOKEN2",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_ERROR=30307]="PIN_CODE_ERROR",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.PIN_CODE_INVALID=30311]="PIN_CODE_INVALID",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4"}(le||(le={}));var We,Ge="Service exception.",we="Invalid token.",He="Invalid pincode.",Ye="No permission.",Je="Invalid business type.",xe="App Key not found.",Ke="Session not found.",ke="Pincode is required.",Ze="Pincode has been used.",je="Network error.",Xe="Invalid sdk cdn url.",ze="Inactive sdk version.",Qe={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qe,le.INVALID_TOKEN,we),le.INVALID_TOKEN_MAX,we),le.TOKEN_EXPIRED,we),le.INVALID_TOKEN2,we),le.INVALID_TOKEN_3,we),le.INVALID_TOKEN_4,we),le.PIN_CODE_ERROR,He),le.PIN_CODE_NOT_FOUND,He),le.PIN_CODE_EXPIRED,He),le.PIN_CODE_NOT_READY,He),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qe,le.PIN_CODE_INVALID,He),le.NO_PERMISSION,Ye),le.APPKEY_NOT_FOUND,xe),le.SESSION_NOT_FOUND,Ke),le.PIN_CODE_IS_REQUIRED,ke),le.PIN_CODE_HAS_BEEN_USED,Ze),le.INVALID_BUSINESS_TYPE2,Je),le.INVALID_BUSINESS_TYPE,Je),le.UNKNOWN,Ge),le.LOCKED,Ge),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qe,le.PROVIDE_DATA,Ge),le.INVALID_RECORDING_ID,Ge),le.MISSING_FIELD,Ge),le.INVALID_SDK_CDN_URL,Xe),le.INACTIVE_SDK_VERSION,ze),le.SEARCH_ERROR,Ge),le.FILE_SERVER_ERROR,Ge),le.FILE_SERVICE_ERROR,Ge),le.FILE_SERVICE_ERROR2,Ge),le.INVALID_START_TIME,Ge),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qe,le.INVALID_ACTION,Ge),le.INVALID_REGION,Ge),le.EXCEEDED_FAILED,Ge),le.INVALID_END_TIME,Ge),le.SERVER_ERROR1,Ge),le.SERVER_ERROR2,Ge),le.SERVER_ERROR3,Ge),le.SERVER_ERROR4,Ge),le.NETWORK_ERROR,je),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(We||(We={}));var qe,$e,en,nn,on="Canceled and ended session.",tn="Canceled and left session.";_defineProperty(_defineProperty({},We.CANCEL_END_ROOM,on),We.CANCEL_LEAVE_ROOM,tn),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(qe||(qe={})),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"}($e||($e={})),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"}(en||(en={})),en.SESSION_PRE_INIT,en.SESSION_JOINED,en.SESSION_LEFT,en.SESSION_ENDED,en.SESSION_ERROR,function(e){e.SEND_SESSION_OPTIONS="send_session_options"}(nn||(nn={})),nn.SEND_SESSION_OPTIONS;Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0}),document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth,document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight,"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;var rn,_n,En,an=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");function sn(){}function Sn(){Sn.init.call(this)}function Rn(e){return void 0===e._maxListeners?Sn.defaultMaxListeners:e._maxListeners}function Tn(e,n,o,t){var r,i,_,E;if("function"!=typeof o)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,o.listener?o.listener:o),i=e._events),_=i[n]):(i=e._events=new sn,e._eventsCount=0),_){if("function"==typeof _?_=i[n]=t?[o,_]:[_,o]:t?_.unshift(o):_.push(o),!_.warned&&(r=Rn(e))&&r>0&&_.length>r){_.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+_.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=n,a.count=_.length,E=a,"function"==typeof console.warn?console.warn(E):console.log(E)}}else _=i[n]=o,++e._eventsCount;return e}function On(e,n,o){var t=!1;function r(){e.removeListener(n,r),t||(t=!0,o.apply(e,arguments))}return r.listener=o,r}function In(e){var n=this._events;if(n){var o=n[e];if("function"==typeof o)return 1;if(o)return o.length}return 0}function Cn(e,n){for(var o=new Array(n);n--;)o[n]=e[n];return o}rn={},an.forEach((function(e,n){return rn[e]=n})),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(e){e.SESSION_STARTED="session_started",e.SESSION_ENDED="session_ended",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.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_unpaused"}(_n||(_n={})),function(e){e.SESSION_START_FAILED="session_start_failed",e.SESSION_END_FAILED="session_end_failed",e.SESSION_CREATE_FAILED="session_create_failed"}(En||(En={})),sn.prototype=Object.create(null),Sn.EventEmitter=Sn,Sn.usingDomains=!1,Sn.prototype.domain=void 0,Sn.prototype._events=void 0,Sn.prototype._maxListeners=void 0,Sn.defaultMaxListeners=10,Sn.init=function(){this.domain=null,Sn.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new sn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Sn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError(\'"n" argument must be a positive number\');return this._maxListeners=e,this},Sn.prototype.getMaxListeners=function(){return Rn(this)},Sn.prototype.emit=function(e){var n,o,t,r,i,_,E,a="error"===e;if(_=this._events)a=a&&null==_.error;else if(!a)return!1;if(E=this.domain,a){if(n=arguments[1],!E){if(n instanceof Error)throw n;var s=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw s.context=n,s}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=E,n.domainThrown=!1,E.emit("error",n),!1}if(!(o=_[e]))return!1;var S="function"==typeof o;switch(t=arguments.length){case 1:!function(e,n,o){if(n)e.call(o);else for(var t=e.length,r=Cn(e,t),i=0;i<t;++i)r[i].call(o)}(o,S,this);break;case 2:!function(e,n,o,t){if(n)e.call(o,t);else for(var r=e.length,i=Cn(e,r),_=0;_<r;++_)i[_].call(o,t)}(o,S,this,arguments[1]);break;case 3:!function(e,n,o,t,r){if(n)e.call(o,t,r);else for(var i=e.length,_=Cn(e,i),E=0;E<i;++E)_[E].call(o,t,r)}(o,S,this,arguments[1],arguments[2]);break;case 4:!function(e,n,o,t,r,i){if(n)e.call(o,t,r,i);else for(var _=e.length,E=Cn(e,_),a=0;a<_;++a)E[a].call(o,t,r,i)}(o,S,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(t-1),i=1;i<t;i++)r[i-1]=arguments[i];!function(e,n,o,t){if(n)e.apply(o,t);else for(var r=e.length,i=Cn(e,r),_=0;_<r;++_)i[_].apply(o,t)}(o,S,this,r)}return!0},Sn.prototype.addListener=function(e,n){return Tn(this,e,n,!1)},Sn.prototype.on=Sn.prototype.addListener,Sn.prototype.prependListener=function(e,n){return Tn(this,e,n,!0)},Sn.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,On(this,e,n)),this},Sn.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,On(this,e,n)),this},Sn.prototype.removeListener=function(e,n){var o,t,r,i,_;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(t=this._events))return this;if(!(o=t[e]))return this;if(o===n||o.listener&&o.listener===n)0==--this._eventsCount?this._events=new sn:(delete t[e],t.removeListener&&this.emit("removeListener",e,o.listener||n));else if("function"!=typeof o){for(r=-1,i=o.length;i-- >0;)if(o[i]===n||o[i].listener&&o[i].listener===n){_=o[i].listener,r=i;break}if(r<0)return this;if(1===o.length){if(o[0]=void 0,0==--this._eventsCount)return this._events=new sn,this;delete t[e]}else!function(e,n){for(var o=n,t=o+1,r=e.length;t<r;o+=1,t+=1)e[o]=e[t];e.pop()}(o,r);t.removeListener&&this.emit("removeListener",e,_||n)}return this},Sn.prototype.off=function(e,n){return this.removeListener(e,n)},Sn.prototype.removeAllListeners=function(e){var n,o;if(!(o=this._events))return this;if(!o.removeListener)return 0===arguments.length?(this._events=new sn,this._eventsCount=0):o[e]&&(0==--this._eventsCount?this._events=new sn:delete o[e]),this;if(0===arguments.length){for(var t,r=Object.keys(o),i=0;i<r.length;++i)"removeListener"!==(t=r[i])&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events=new sn,this._eventsCount=0,this}if("function"==typeof(n=o[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},Sn.prototype.listeners=function(e){var n,o=this._events;return o&&(n=o[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),o=0;o<n.length;++o)n[o]=e[o].listener||e[o];return n}(n):[]},Sn.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):In.call(e,n)},Sn.prototype.listenerCount=In,Sn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var ln=function(e){_inherits(t,e);var o=_createSuper(t);function t(e,n){var r;return _classCallCheck(this,t),(r=o.call(this)).settings=e,r.setMaxListeners(100),r.init(n),r}return _createClass(t,[{key:"init",value:function(e){n.init(this.settings,(function(n){var o=n.success,t=n.sdkInfo,r=n.session,i=n.error;o&&r?e&&e({success:!0,sdkInfo:t,session:r}):e&&e({success:!1,sdkInfo:t,error:i})}))}}]),t}(Sn),un=function(e,n){new ln(e,n)},Dn=Y({}),An=Y({});return(null===window||void 0===window?void 0:window.ZoomCobrowseSDKInitArgs)&&(un.apply(void 0,_toConsumableArray(window.ZoomCobrowseSDKInitArgs)),delete window.ZoomCobrowseSDKInitArgs),e.SESSION_ERROR=An,e.SESSION_EVENT=Dn,e.init=un,Object.defineProperty(e,"__esModule",{value:!0}),e}({},ZCBController);\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mcek85sw/zcb-client.js.map\n';export{e as default};
|