@zoom/cobrowsesdk 2.7.0 → 2.8.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/README.md +1 -1
- package/esm/agent.js +1 -1
- package/esm/customer.js +1 -1
- package/esm/sdk-channel.js +1 -1
- package/esm/sdk-client-agent.js +1 -1
- package/esm/sdk-client.js +1 -1
- package/esm/sdk-controller.js +1 -1
- package/esm/sdk-core-css.js +1 -1
- package/esm/sdk-core.js +1 -1
- package/esm/sdk-portal-agent.js +1 -1
- package/esm/sdk-portal-customer-css.js +1 -1
- package/esm/sdk-portal-customer.js +1 -1
- package/package.json +1 -1
- package/types/agent-umd.d.ts +100 -0
- package/types/agent.d.ts +100 -0
- package/types/customer-umd.d.ts +113 -3
- package/types/customer.d.ts +113 -3
- package/umd/agent.js +1 -1
- package/umd/customer.js +1 -1
package/esm/sdk-client.js
CHANGED
|
@@ -1 +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};
|
|
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 t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,n):void 0}}function _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 t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function _inherits(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_setPrototypeOf(e,n)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var t,o=_getPrototypeOf(e);if(n){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,n){if(n&&("object"==_typeof(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _defineProperty(e,n,t){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _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 t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var n=_toPrimitive(e,"string");return"symbol"==_typeof(n)?n:n+""}function _toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}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,t;(null===(e=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document))&&window.ZCB_CoBrowseConfigController.setCoBrowsingConfig(Object.assign({isViewer:null===(n=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===n?void 0:n.isViewer,appKey:null===(t=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===t?void 0:t.appKey},window.parent.ZCB_CoBrowseConfigController.coBrowsingConfig))}}],[{key:"create",value:function(){return window.ZCB_CoBrowseConfigController||new e}}]),e})().create();var t,o,r,i=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var o={},r=function(){var r=n[_];"string"==typeof r?o[_]=i(t,r):"function"==typeof r?o[_]=function(){return i(t,r.apply(void 0,arguments))}:"object"===_typeof(r)&&(r instanceof RegExp||(o[_]=e(r,t)))};for(var _ in n)r();return o}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing"),function(e){e.LOCAL="local",e.PROD="prod"}(t||(t={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(o||(o={})),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=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");a={},s.forEach((function(e,n){return a[e]=n})),String.fromCharCode.bind(String);var S,u,c,l,T,R,O,I,C,d,D,A,N,f,g,p,P,L,m,y,h,M,F,v,b,B,U,w,V,W,x,H,G=function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);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"}(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"}(u||(u={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(c||(c={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(l||(l={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}(T||(T={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(R||(R={})),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"}(I||(I={})),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"}(d||(d={})),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",e[e.END_DEACTIVE_ROOM=10001]="END_DEACTIVE_ROOM"}(N||(N={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(f||(f={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},N.END_ROOM,f.END_SESSION),N.DESTROY_DEACTIVE_ROOM,f.DEACTIVE_SESSION),N.DESTROY_SLEEP_ROOM,f.DEACTIVE_SESSION),N.END_DEACTIVE_ROOM,f.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(g||(g={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(p||(p={})),_defineProperty(_defineProperty({},g.LEAVE_ROOM,p.LEAVE_SESSION),g.DISCONNECTED,p.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"}(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"}(m||(m={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(y||(y={})),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."}(h||(h={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(M||(M={})),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"}(F||(F={})),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"}(v||(v={})),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"}(B||(B={})),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"}(U||(U={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(w||(w={})),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",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(W||(W={})),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"}(x||(x={})),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"}(H||(H={}));var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function J(e){if(e.__esModule)return e;var n=e.default;if("function"==typeof n){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(n,t))}return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach((function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})})),t}var k={},K={get exports(){return k},set exports(e){k=e}};var z,j={},Z={get exports(){return j},set exports(e){j=e}},X=J(Object.freeze({__proto__:null,default:{}}));function Q(){return z||(z=1,Z.exports=(e=e||function(e,n){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==Y&&Y.crypto&&(t=Y.crypto),!t)try{t=X}catch(e){}var o=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},_=i.lib={},E=_.Base={extend:function(e){var n=r(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=_.WordArray=E.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||S).stringify(this)},concat:function(e){var n=this.words,t=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<r;i++){var _=t[i>>>2]>>>24-i%4*8&255;n[o+i>>>2]|=_<<24-(o+i)%4*8}else for(var E=0;E<r;E+=4)n[o+E>>>2]=t[E>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,t=this.sigBytes;n[t>>>2]&=4294967295<<32-t%4*8,n.length=e.ceil(t/4)},clone:function(){var e=E.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],t=0;t<e;t+=4)n.push(o());return new a.init(n,e)}}),s=i.enc={},S=s.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o+=2)t[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new a.init(t,n/2)}},u=s.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o++)t[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new a.init(t,n)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},l=_.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,o=this._data,r=o.words,i=o.sigBytes,_=this.blockSize,E=i/(4*_),s=(E=n?e.ceil(E):e.max((0|E)-this._minBufferSize,0))*_,S=e.min(4*s,i);if(s){for(var u=0;u<s;u+=_)this._doProcessBlock(r,u);t=r.splice(0,s),o.sigBytes-=S}return new a.init(t,S)},clone:function(){var e=E.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});_.Hasher=l.extend({cfg:E.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(n,t){return new e.init(t).finalize(n)}},_createHmacHelper:function(e){return function(n,t){return new T.HMAC.init(e,t).finalize(n)}}});var T=i.algo={};return i}(Math),e)),j;var e}var q,$={},ee={get exports(){return $},set exports(e){$=e}};function ne(){return q||(q=1,ee.exports=(e=Q(),function(){var n=e,t=n.lib.WordArray;function o(e,n,o){for(var r=[],i=0,_=0;_<n;_++)if(_%4){var E=o[e.charCodeAt(_-1)]<<_%4*2|o[e.charCodeAt(_)]>>>6-_%4*2;r[i>>>2]|=E<<24-i%4*8,i++}return t.create(r,i)}n.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,o=this._map;e.clamp();for(var r=[],i=0;i<t;i+=3)for(var _=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,E=0;E<4&&i+.75*E<t;E++)r.push(o.charAt(_>>>6*(3-E)&63));var a=o.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(e){var n=e.length,t=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<t.length;i++)r[t.charCodeAt(i)]=i}var _=t.charAt(64);if(_){var E=e.indexOf(_);-1!==E&&(n=E)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),$;var e}var te,oe={},re={get exports(){return oe},set exports(e){oe=e}};function ie(){return te||(te=1,re.exports=(e=Q(),function(n){var t=e,o=t.lib,r=o.WordArray,i=o.Hasher,_=t.algo,E=[];!function(){for(var e=0;e<64;e++)E[e]=4294967296*n.abs(n.sin(e+1))|0}();var a=_.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var o=n+t,r=e[o];e[o]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,_=e[n+0],a=e[n+1],l=e[n+2],T=e[n+3],R=e[n+4],O=e[n+5],I=e[n+6],C=e[n+7],d=e[n+8],D=e[n+9],A=e[n+10],N=e[n+11],f=e[n+12],g=e[n+13],p=e[n+14],P=e[n+15],L=i[0],m=i[1],y=i[2],h=i[3];L=s(L,m,y,h,_,7,E[0]),h=s(h,L,m,y,a,12,E[1]),y=s(y,h,L,m,l,17,E[2]),m=s(m,y,h,L,T,22,E[3]),L=s(L,m,y,h,R,7,E[4]),h=s(h,L,m,y,O,12,E[5]),y=s(y,h,L,m,I,17,E[6]),m=s(m,y,h,L,C,22,E[7]),L=s(L,m,y,h,d,7,E[8]),h=s(h,L,m,y,D,12,E[9]),y=s(y,h,L,m,A,17,E[10]),m=s(m,y,h,L,N,22,E[11]),L=s(L,m,y,h,f,7,E[12]),h=s(h,L,m,y,g,12,E[13]),y=s(y,h,L,m,p,17,E[14]),L=S(L,m=s(m,y,h,L,P,22,E[15]),y,h,a,5,E[16]),h=S(h,L,m,y,I,9,E[17]),y=S(y,h,L,m,N,14,E[18]),m=S(m,y,h,L,_,20,E[19]),L=S(L,m,y,h,O,5,E[20]),h=S(h,L,m,y,A,9,E[21]),y=S(y,h,L,m,P,14,E[22]),m=S(m,y,h,L,R,20,E[23]),L=S(L,m,y,h,D,5,E[24]),h=S(h,L,m,y,p,9,E[25]),y=S(y,h,L,m,T,14,E[26]),m=S(m,y,h,L,d,20,E[27]),L=S(L,m,y,h,g,5,E[28]),h=S(h,L,m,y,l,9,E[29]),y=S(y,h,L,m,C,14,E[30]),L=u(L,m=S(m,y,h,L,f,20,E[31]),y,h,O,4,E[32]),h=u(h,L,m,y,d,11,E[33]),y=u(y,h,L,m,N,16,E[34]),m=u(m,y,h,L,p,23,E[35]),L=u(L,m,y,h,a,4,E[36]),h=u(h,L,m,y,R,11,E[37]),y=u(y,h,L,m,C,16,E[38]),m=u(m,y,h,L,A,23,E[39]),L=u(L,m,y,h,g,4,E[40]),h=u(h,L,m,y,_,11,E[41]),y=u(y,h,L,m,T,16,E[42]),m=u(m,y,h,L,I,23,E[43]),L=u(L,m,y,h,D,4,E[44]),h=u(h,L,m,y,f,11,E[45]),y=u(y,h,L,m,P,16,E[46]),L=c(L,m=u(m,y,h,L,l,23,E[47]),y,h,_,6,E[48]),h=c(h,L,m,y,C,10,E[49]),y=c(y,h,L,m,p,15,E[50]),m=c(m,y,h,L,O,21,E[51]),L=c(L,m,y,h,f,6,E[52]),h=c(h,L,m,y,T,10,E[53]),y=c(y,h,L,m,A,15,E[54]),m=c(m,y,h,L,a,21,E[55]),L=c(L,m,y,h,d,6,E[56]),h=c(h,L,m,y,P,10,E[57]),y=c(y,h,L,m,I,15,E[58]),m=c(m,y,h,L,g,21,E[59]),L=c(L,m,y,h,R,6,E[60]),h=c(h,L,m,y,N,10,E[61]),y=c(y,h,L,m,l,15,E[62]),m=c(m,y,h,L,D,21,E[63]),i[0]=i[0]+L|0,i[1]=i[1]+m|0,i[2]=i[2]+y|0,i[3]=i[3]+h|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var i=n.floor(o/4294967296),_=o;t[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(r+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),e.sigBytes=4*(t.length+1),this._process();for(var E=this._hash,a=E.words,s=0;s<4;s++){var S=a[s];a[s]=16711935&(S<<8|S>>>24)|4278255360&(S<<24|S>>>8)}return E},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,n,t,o,r,i,_){var E=e+(n&t|~n&o)+r+_;return(E<<i|E>>>32-i)+n}function S(e,n,t,o,r,i,_){var E=e+(n&o|t&~o)+r+_;return(E<<i|E>>>32-i)+n}function u(e,n,t,o,r,i,_){var E=e+(n^t^o)+r+_;return(E<<i|E>>>32-i)+n}function c(e,n,t,o,r,i,_){var E=e+(t^(n|~o))+r+_;return(E<<i|E>>>32-i)+n}t.MD5=i._createHelper(a),t.HmacMD5=i._createHmacHelper(a)}(Math),e.MD5)),oe;var e}var _e,Ee={},ae={get exports(){return Ee},set exports(e){Ee=e}},se={},Se={get exports(){return se},set exports(e){se=e}};function ue(){return _e||(_e=1,Se.exports=(E=Q(),n=(e=E).lib,t=n.WordArray,o=n.Hasher,r=e.algo,i=[],_=r.SHA1=o.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,o=t[0],r=t[1],_=t[2],E=t[3],a=t[4],s=0;s<80;s++){if(s<16)i[s]=0|e[n+s];else{var S=i[s-3]^i[s-8]^i[s-14]^i[s-16];i[s]=S<<1|S>>>31}var u=(o<<5|o>>>27)+a+i[s];u+=s<20?1518500249+(r&_|~r&E):s<40?1859775393+(r^_^E):s<60?(r&_|r&E|_&E)-1894007588:(r^_^E)-899497514,a=E,E=_,_=r<<30|r>>>2,r=o,o=u}t[0]=t[0]+o|0,t[1]=t[1]+r|0,t[2]=t[2]+_|0,t[3]=t[3]+E|0,t[4]=t[4]+a|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(o+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=o._createHelper(_),e.HmacSHA1=o._createHmacHelper(_),E.SHA1)),se;var e,n,t,o,r,i,_,E}var ce,le,Te={},Re={get exports(){return Te},set exports(e){Te=e}};function Oe(){return le||(le=1,ae.exports=function(e){return function(){var n=e,t=n.lib,o=t.Base,r=t.WordArray,i=n.algo,_=i.MD5,E=i.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:_,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,o=this.cfg,i=o.hasher.create(),_=r.create(),E=_.words,a=o.keySize,s=o.iterations;E.length<a;){t&&i.update(t),t=i.update(e).finalize(n),i.reset();for(var S=1;S<s;S++)t=i.finalize(t),i.reset();_.concat(t)}return _.sigBytes=4*a,_}});n.EvpKDF=function(e,n,t){return E.create(t).compute(e,n)}}(),e.EvpKDF}(Q(),ue(),ce||(ce=1,Re.exports=(e=Q(),t=(n=e).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=t.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=o.parse(n));var t=e.blockSize,r=4*t;n.sigBytes>r&&(n=e.finalize(n)),n.clamp();for(var i=this._oKey=n.clone(),_=this._iKey=n.clone(),E=i.words,a=_.words,s=0;s<t;s++)E[s]^=1549556828,a[s]^=909522486;i.sigBytes=_.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,t=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(t))}})))))),Ee;var e,n,t,o}var Ie,Ce,de={},De={get exports(){return de},set exports(e){de=e}};K.exports=function(e){return function(){var n=e,t=n.lib.BlockCipher,o=n.algo,r=[],i=[],_=[],E=[],a=[],s=[],S=[],u=[],c=[],l=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var t=0,o=0;for(n=0;n<256;n++){var T=o^o<<1^o<<2^o<<3^o<<4;T=T>>>8^255&T^99,r[t]=T,i[T]=t;var R=e[t],O=e[R],I=e[O],C=257*e[T]^16843008*T;_[t]=C<<24|C>>>8,E[t]=C<<16|C>>>16,a[t]=C<<8|C>>>24,s[t]=C,C=16843009*I^65537*O^257*R^16843008*t,S[T]=C<<24|C>>>8,u[T]=C<<16|C>>>16,c[T]=C<<8|C>>>24,l[T]=C,t?(t=R^e[e[e[I^R]]],o^=e[e[o]]):t=o=1}}();var T=[0,1,2,4,8,16,32,64,128,27,54],R=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,o=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],_=0;_<o;_++)_<t?i[_]=n[_]:(s=i[_-1],_%t?t>6&&_%t==4&&(s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s]):(s=r[(s=s<<8|s>>>24)>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s],s^=T[_/t|0]<<24),i[_]=i[_-t]^s);for(var E=this._invKeySchedule=[],a=0;a<o;a++){if(_=o-a,a%4)var s=i[_];else s=i[_-4];E[a]=a<4||_<=4?s:S[r[s>>>24]]^u[r[s>>>16&255]]^c[r[s>>>8&255]]^l[r[255&s]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,_,E,a,s,r)},decryptBlock:function(e,n){var t=e[n+1];e[n+1]=e[n+3],e[n+3]=t,this._doCryptBlock(e,n,this._invKeySchedule,S,u,c,l,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,o,r,i,_,E){for(var a=this._nRounds,s=e[n]^t[0],S=e[n+1]^t[1],u=e[n+2]^t[2],c=e[n+3]^t[3],l=4,T=1;T<a;T++){var R=o[s>>>24]^r[S>>>16&255]^i[u>>>8&255]^_[255&c]^t[l++],O=o[S>>>24]^r[u>>>16&255]^i[c>>>8&255]^_[255&s]^t[l++],I=o[u>>>24]^r[c>>>16&255]^i[s>>>8&255]^_[255&S]^t[l++],C=o[c>>>24]^r[s>>>16&255]^i[S>>>8&255]^_[255&u]^t[l++];s=R,S=O,u=I,c=C}R=(E[s>>>24]<<24|E[S>>>16&255]<<16|E[u>>>8&255]<<8|E[255&c])^t[l++],O=(E[S>>>24]<<24|E[u>>>16&255]<<16|E[c>>>8&255]<<8|E[255&s])^t[l++],I=(E[u>>>24]<<24|E[c>>>16&255]<<16|E[s>>>8&255]<<8|E[255&S])^t[l++],C=(E[c>>>24]<<24|E[s>>>16&255]<<16|E[S>>>8&255]<<8|E[255&u])^t[l++],e[n]=R,e[n+1]=O,e[n+2]=I,e[n+3]=C},keySize:8});n.AES=t._createHelper(R)}(),e.AES}(Q(),ne(),ie(),Oe(),Ie||(Ie=1,De.exports=(Ce=Q(),Oe(),void(Ce.lib.Cipher||function(e){var n=Ce,t=n.lib,o=t.Base,r=t.WordArray,i=t.BufferedBlockAlgorithm,_=n.enc;_.Utf8;var E=_.Base64,a=n.algo.EvpKDF,s=t.Cipher=i.extend({cfg:o.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,t){this.cfg=this.cfg.extend(t),this._xformMode=e,this._key=n,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:O}return function(n){return{encrypt:function(t,o,r){return e(o).encrypt(n,t,o,r)},decrypt:function(t,o,r){return e(o).decrypt(n,t,o,r)}}}}()});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var S=n.mode={},u=t.BlockCipherMode=o.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),c=S.CBC=function(){var n=u.extend();function t(n,t,o){var r,i=this._iv;i?(r=i,this._iv=e):r=this._prevBlock;for(var _=0;_<o;_++)n[t+_]^=r[_]}return n.Encryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize;t.call(this,e,n,r),o.encryptBlock(e,n),this._prevBlock=e.slice(n,n+r)}}),n.Decryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize,i=e.slice(n,n+r);o.decryptBlock(e,n),t.call(this,e,n,r),this._prevBlock=i}}),n}(),l=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,o=t-e.sigBytes%t,i=o<<24|o<<16|o<<8|o,_=[],E=0;E<o;E+=4)_.push(i);var a=r.create(_,o);e.concat(a)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:c,padding:l}),reset:function(){var e;s.reset.call(this);var n=this.cfg,t=n.iv,o=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=o.createEncryptor:(e=o.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(o,this,t&&t.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var T=t.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),R=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?r.create([1398893684,1701076831]).concat(t).concat(n):n).toString(E)},parse:function(e){var n,t=E.parse(e),o=t.words;return 1398893684==o[0]&&1701076831==o[1]&&(n=r.create(o.slice(2,4)),o.splice(0,4),t.sigBytes-=16),T.create({ciphertext:t,salt:n})}},O=t.SerializableCipher=o.extend({cfg:o.extend({format:R}),encrypt:function(e,n,t,o){o=this.cfg.extend(o);var r=e.createEncryptor(t,o),i=r.finalize(n),_=r.cfg;return T.create({ciphertext:i,key:t,iv:_.iv,algorithm:e,mode:_.mode,padding:_.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,n,t,o){return o=this.cfg.extend(o),n=this._parse(n,o.format),e.createDecryptor(t,o).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),I=(n.kdf={}).OpenSSL={execute:function(e,n,t,o,i){if(o||(o=r.random(8)),i)_=a.create({keySize:n+t,hasher:i}).compute(e,o);else var _=a.create({keySize:n+t}).compute(e,o);var E=r.create(_.words.slice(n),4*t);return _.sigBytes=4*n,T.create({key:_,iv:E,salt:o})}},C=t.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:I}),encrypt:function(e,n,t,o){var r=(o=this.cfg.extend(o)).kdf.execute(t,e.keySize,e.ivSize,o.salt,o.hasher);o.iv=r.iv;var i=O.encrypt.call(this,e,n,r.key,o);return i.mixIn(r),i},decrypt:function(e,n,t,o){o=this.cfg.extend(o),n=this._parse(n,o.format);var r=o.kdf.execute(t,e.keySize,e.ivSize,n.salt,o.hasher);return o.iv=r.iv,O.decrypt.call(this,e,n,r.key,o)}})}()))));var Ae,Ne,fe={};!function(e,n){e.exports=function(e){return e.enc.Utf8}(Q())}({get exports(){return fe},set exports(e){fe=e}}),function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(Ae||(Ae={})),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"}(Ne||(Ne={})),Ne.RECORD_OVERHEAD_CAPACITY,Ne.RECORD_OVERHEAD_CAPACITY;var ge,pe={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.START_RECORD_UNAVAILABLE,"start record api not available"),Ne.START_RECORD_INVALID_BODY,"start record response body invalid"),Ne.END_RECORD_UNAVAILABLE,"end record api not available"),Ne.END_RECORD_INVALID_BODY,"end record response body invalid"),Ne.EXIST_RECORD_CONFLICT,"already has an existed recording"),Ne.NO_ACTIVE_RECORD,"no existed recording"),Ne.RECORD_IN_START_PROGRESS,"recording is in start progress"),Ne.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),Ne.RECORD_ALREADY_PAUSED,"recording already paused"),Ne.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.RECORD_NOT_ENABLED,"recording not enabled"),Ne.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),Ne.LEADER_NOT_JOINED,"leader not joined room"),Ne.LEADER_DENIED,"leader denied recording"),Ne.RECORD_ABORTED,"recording aborted"),Ne.CHS_JWT_MISSING,"CHS JWT is empty"),Ne.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),Ne.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),Ne.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),Ne.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.CHS_JWT_VERIFY_FAILED,"token verify failed"),Ne.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),Ne.AID_IN_JWT_MISSING,"aid in token is required"),Ne.UID_IN_JWT_MISSING,"uid in token is required"),Ne.RECORD_ID_MISSING,"recordId is empty"),Ne.RECORD_TASK_NOT_EXIST,"record task not exist"),Ne.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),Ne.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),Ne.PAGE_LOAD_HTML_FAILED,"page load html failed"),Ne.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),Ne.PAGE_START_FAILED,"page start record failed"),Ne.PAGE_STOP_FAILED,"page start stop failed"),Ne.RECORDER_INIT_FAILED,"PageRecorder init failed"),Ne.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),Ne.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),Ne.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),Ne.DISK_USAGE_FULL,"Server disk is full"),Ne.CONNECT_CHS_FAILED,"CHS is not available"),Ne.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),Ne.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),Ne.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),Ne.UDS_INIT_FAILED,"UDSManager init failed"),Ne.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),Ne.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),Ne.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),Ne.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),Ne.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),Ne.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.FILE_META_INIT_FAILED,"MetaDataManager init failed"),Ne.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),Ne.FILE_META_OPEN_FAILED,"open metadata failed"),Ne.FILE_META_LOCK_FAILED,"metadata lock failed"),Ne.FILE_META_RELEASE_FAILED,"metadata release failed"),Ne.FILE_META_WRITE_FAILED,"metadata write failed"),Ne.ZCB_WEB_NOT_AVAILABLE,"web is not available"),Ne.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),Ne.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),Ne.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(pe,Ne.REDIS_GET_START_TIME_FAILED,"get record start time failed"),Ne.REDIS_SET_START_TIME_FAILED,"set record start time failed"),Ne.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),Ne.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"}(ge||(ge={}));var Pe,Le;!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"}(Pe||(Pe={})),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"}(Le||(Le={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Le.ANNOTATION,!0),Le.INTERACTION,!0),Le.INTERACTION_BINARY,!0),Le.FLYING_CURSOR,!0),_defineProperty({},Le.RTT,!0);var me={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(me,Le.INTERACTION,!0),Le.INTERACTION_BINARY,!0),Le.FULL_SNAPSHOT_REQUEST,!0),Le.REMOTE_CONTROL_STATUS,!0),Le.REMOTE_CONTROL_REQUEST,!0),Le.REMOTE_CONTROL_RESPONSE,!0),Le.REMOTE_CONTROL_GIVE_UP,!0),Le.REMOTE_CONTROL_TAKE_BACK,!0),Le.REMOTE_CONTROL_REJECT,!0),Le.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(me,Le.START_RECORD,!0),Le.RESUME_RECORD,!0),Le.PAUSE_RECORD,!0),Le.STOP_RECORD,!0),Le.ANNOTATION,!0),Le.FLYING_CURSOR,!0);var ye,he,Me={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Me,Le.INTERACTION,!0),Le.INTERACTION_BINARY,!0),Le.FULL_SNAPSHOT_REQUEST,!0),Le.USER_ROSTER,!0),Le.ROOM_ROSTER,!0),Le.REMOTE_CONTROL_STATUS,!0),Le.REMOTE_CONTROL_REQUEST,!0),Le.REMOTE_CONTROL_RESPONSE,!0),Le.REMOTE_CONTROL_GIVE_UP,!0),Le.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Me,Le.REMOTE_CONTROL_REJECT,!0),Le.REMOTE_CONTROL_CANCEL,!0),Le.START_RECORD,!0),Le.RESUME_RECORD,!0),Le.PAUSE_RECORD,!0),Le.STOP_RECORD,!0),Le.START_RECORD_RESPONSE,!0),Le.STOP_RECORD_RESPONSE,!0),Le.PAUSE_RECORD_RESPONSE,!0),Le.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Me,Le.RECORD_APPROVE_REQUEST,!0),Le.RECORD_APPROVE_RESPONSE,!0),Le.ANNOTATION,!0),Le.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},Le.RECORD_APPROVE_RESPONSE,!0),Le.LEAVE_ROOM,!0),Le.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},H.RegisterCustomerCursorDOM,!0),H.UnregisterUser,!0),H.RegisterOtherAgentCursorDOM,!0),H.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT"}(ye||(ye={})),_defineProperty(_defineProperty({},ye.IN_PROGRESS,"remote control is in progress"),ye.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"}(he||(he={})),he.LEAVE_ROOM,he.WEB_REPORT_USER_JOIN_FAILED,he.AUTH_CONFLICT,he.AUTH_VERIFY_FAILED,he.LEADER_CONFLICT,he.FOLLOWER_CONFLICT,he.USER_CONFLICT,he.SESSION_ALREADY_ENDED,he.ROOM_ID_MISSING,he.AUTH_PAYLOAD_MISSING,he.START_URL_INVALID,he.END_ROOM,he.DESTROY_DEACTIVE_ROOM,he.DESTROY_SLEEP_ROOM,he.NO_OTHER_ACTIVE_USER,he.RECORD_ALREADY_ENDED,he.REACHED_LEADER_LIMIT,he.REACHED_FOLLOWER_LIMIT,he.SESSION_ALREADY_ENDED,he.END_ROOM,he.DESTROY_DEACTIVE_ROOM;var Fe,ve,be,Be,Ue={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ue,he.LEAVE_ROOM,"normal leave"),he.DISCONNECTED,"user disconnected"),he.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),he.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),he.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),he.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),he.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),he.AUTH_CONFLICT,"auth is already consumed once"),he.AUTH_VERIFY_FAILED,"auth payload is denyed"),he.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ue,he.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),he.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),he.ROOM_NOT_EXIST,"room not exist or create failed"),he.ROOM_ADD_USER_FAILED,"room add new user failed"),he.LEADER_CONFLICT,"leader already exist"),he.FOLLOWER_CONFLICT,"follower already exist"),he.ROOM_DEPRECATED,"room is deprecated"),he.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),he.USER_CONFLICT,"user conflict"),he.SESSION_ALREADY_ENDED,"room is already ended"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ue,he.ROOM_ID_MISSING,"room id is required"),he.AUTH_PAYLOAD_MISSING,"auth payload is required"),he.START_URL_INVALID,"startUrl is invalid"),he.SERVER_RESTARTED,"server restarted"),he.WSSGW_REMOVE_NODE,"wssgw node instance removed"),he.META_DATA_INVALID,"message meta data invalid"),he.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),he.END_ROOM,"The user actively clicked \'end\'."),he.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),he.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ue,he.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),he.RECORD_ALREADY_ENDED,"record already ended"),he.RECORD_START_FAILED,"record start failed"),he.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),he.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(Fe||(Fe={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(ve||(ve={})),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",e[e.DUPLICATE_LAUNCH_SESSION=10024]="DUPLICATE_LAUNCH_SESSION"}(be||(be={})),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"}(Be||(Be={}));var we="Create channel failed.",Ve="Create session failed.",We="End session failed.",xe="Pin code update failed",He="Start session failed.",Ge="Session connecting.",Ye="Session persisting.",Je="Session canceling.",ke="Session id not found.",Ke="Session connect timeout.",ze="Session already exists.",je="Unknown Service Exception.",Ze="SDK version not match.",Xe={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Xe,be.ALL_PING_FAILED,Ve),be.EMPTY_PING_LIST,Ve),be.SESSION_CREATE_FAILED,Ve),be.FRAME_LEVEL_NOT_READY,Ve),be.PARTICIPANT_TYPE_ERROR,He),be.REFRESH_PIN_CODE_FAILED,xe),be.SESSION_START_FAILED,He),be.SESSION_END_FAILED,We),be.SESSION_ID_NOT_FOUND,ke),be.CONNECT_SERVER_FAILED,we),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Xe,be.CREATE_CHANNEL_FAILED,we),be.SESSION_CONNECTING,Ge),be.SESSION_PERSISTING,Ye),be.SESSION_CANCELING,Je),be.UNKNOWN_SERVICE_EXCEPTION,je),be.SOCKET_RECONNECT_FAILED,we),be.SOCKET_FAIL_OVER_FAILED,we),be.DUPLICATE_SESSION,ze),be.DUPLICATE_LAUNCH_SESSION,ze),be.SDK_VERSION_NOT_MATCH,Ze),_defineProperty({},Be.CONNECT_TIMEOUT_FAILED,Ke);var Qe,qe="The user actively clicked \'end\'.",$e="normal",en="user disconnected",nn="customer already exist",tn="agent already exist",on="get auth from redis failed",rn="auth payload is denyed",_n="auth is already used",En="room id is invalid",an="room not exist or create failed",sn="room add new user failed",Sn="server restarted",un="wssgw node instance removed",cn="The session ended automatically because there was only 1 user present for 3 minutes.",ln="The session ended automatically due to no user activity in the session for 5 minutes.",Tn="user conflict",Rn="meta data invalid",On="wssgw instance not found",In="the number of customers has reached the limit",Cn="the number of agents has reached the limit",dn={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(dn,he.DISCONNECTED,en),he.END_ROOM,qe),he.LEAVE_ROOM,$e),he.LEADER_CONFLICT,nn),he.FOLLOWER_CONFLICT,tn),he.AUTH_DB_QUERY_ERROR,on),he.AUTH_VERIFY_FAILED,rn),he.AUTH_CONFLICT,_n),he.ROOM_ID_MISSING,En),he.ROOM_NOT_EXIST,an),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(dn,he.ROOM_ADD_USER_FAILED,sn),he.SERVER_RESTARTED,Sn),he.WSSGW_REMOVE_NODE,un),he.DESTROY_DEACTIVE_ROOM,cn),he.DESTROY_SLEEP_ROOM,ln),he.USER_CONFLICT,Tn),he.META_DATA_INVALID,Rn),he.WSSGW_INSTANCE_NOT_FOUND,On),he.REACHED_LEADER_LIMIT,In),he.REACHED_FOLLOWER_LIMIT,Cn),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"}(Qe||(Qe={}));var Dn,An="Service exception.",Nn="Invalid token.",fn="Invalid pincode.",gn="No permission.",pn="Invalid business type.",Pn="App Key not found.",Ln="Session not found.",mn="Pincode is required.",yn="Pincode has been used.",hn="Network error.",Mn="Invalid sdk cdn url.",Fn="Inactive sdk version.",vn={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(vn,Qe.INVALID_TOKEN,Nn),Qe.INVALID_TOKEN_MAX,Nn),Qe.TOKEN_EXPIRED,Nn),Qe.INVALID_TOKEN2,Nn),Qe.INVALID_TOKEN_3,Nn),Qe.INVALID_TOKEN_4,Nn),Qe.PIN_CODE_ERROR,fn),Qe.PIN_CODE_NOT_FOUND,fn),Qe.PIN_CODE_EXPIRED,fn),Qe.PIN_CODE_NOT_READY,fn),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(vn,Qe.PIN_CODE_INVALID,fn),Qe.NO_PERMISSION,gn),Qe.APPKEY_NOT_FOUND,Pn),Qe.SESSION_NOT_FOUND,Ln),Qe.PIN_CODE_IS_REQUIRED,mn),Qe.PIN_CODE_HAS_BEEN_USED,yn),Qe.INVALID_BUSINESS_TYPE2,pn),Qe.INVALID_BUSINESS_TYPE,pn),Qe.UNKNOWN,An),Qe.LOCKED,An),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(vn,Qe.PROVIDE_DATA,An),Qe.INVALID_RECORDING_ID,An),Qe.MISSING_FIELD,An),Qe.INVALID_SDK_CDN_URL,Mn),Qe.INACTIVE_SDK_VERSION,Fn),Qe.SEARCH_ERROR,An),Qe.FILE_SERVER_ERROR,An),Qe.FILE_SERVICE_ERROR,An),Qe.FILE_SERVICE_ERROR2,An),Qe.INVALID_START_TIME,An),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(vn,Qe.INVALID_ACTION,An),Qe.INVALID_REGION,An),Qe.EXCEEDED_FAILED,An),Qe.INVALID_END_TIME,An),Qe.SERVER_ERROR1,An),Qe.SERVER_ERROR2,An),Qe.SERVER_ERROR3,An),Qe.SERVER_ERROR4,An),Qe.NETWORK_ERROR,hn),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(Dn||(Dn={}));var bn,Bn,Un,wn,Vn="Canceled and ended session.",Wn="Canceled and left session.";_defineProperty(_defineProperty({},Dn.CANCEL_END_ROOM,Vn),Dn.CANCEL_LEAVE_ROOM,Wn),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(bn||(bn={})),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"}(Bn||(Bn={})),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"}(Un||(Un={})),Un.SESSION_PRE_INIT,Un.SESSION_JOINED,Un.SESSION_LEFT,Un.SESSION_ENDED,Un.SESSION_ERROR,Un.REMOTE_ASSIST_ACCEPTED,Un.REMOTE_ASSIST_REJECTED,Un.REMOTE_ASSIST_STARTED,Un.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"}(wn||(wn={})),wn.SEND_SESSION_OPTIONS,wn.START_REMOTE_ASSIST,wn.STOP_REMOTE_ASSIST;function xn(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function Hn(){return xn()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function Gn(){return"MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window)}function Yn(){return Gn()||function(){var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var o="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,r="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return o&&r}()}Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0});var Jn,kn,Kn,zn=(Jn=null,kn=null,Kn=null,{get isIOS(){return null===Jn&&(Jn=xn()),Jn},get isIOSDevice(){return null===kn&&(kn=xn()||Gn()),kn},get isMobileDeviceOrDesktopUA(){return null===Kn&&(Kn=!(!Hn()&&!Yn())),Kn}}),jn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!ot(t))return Xn();if(t.scale>1){var o=t.width*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!ot(t))return Qn();if(t.scale>1){var o=t.height*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return t.height}}]),e}(),Zn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!ot(t))return Xn();if(t.scale>1){var o=Math.max(t.width*t.scale,window.innerWidth);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!ot(t))return Qn();if(t.scale>1){var o=Math.max(t.height*t.scale,window.innerHeight);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return Math.max(t.height,window.innerHeight)}}]),e}();function Xn(){return document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Qn(){return document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var qn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return Xn()}},{key:"calculateHeight",value:function(){return Qn()}}]),e}(),$n=function(){var e,n=!1;function t(){e=zn.isMobileDeviceOrDesktopUA&&ot(window.visualViewport)?zn.isIOSDevice?new jn:new Zn:new qn,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var et,nt,tt=new WeakMap;function ot(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=tt.get(e);if(void 0!==n)return n}var t=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 t&&tt.set(e,t),t}function rt(){}function it(){it.init.call(this)}function _t(e){return void 0===e._maxListeners?it.defaultMaxListeners:e._maxListeners}function Et(e,n,t,o){var r,i,_,E;if("function"!=typeof t)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),i=e._events),_=i[n]):(i=e._events=new rt,e._eventsCount=0),_){if("function"==typeof _?_=i[n]=o?[t,_]:[_,t]:o?_.unshift(t):_.push(t),!_.warned&&(r=_t(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]=t,++e._eventsCount;return e}function at(e,n,t){var o=!1;function r(){e.removeListener(n,r),o||(o=!0,t.apply(e,arguments))}return r.listener=t,r}function st(e){var n=this._events;if(n){var t=n[e];if("function"==typeof t)return 1;if(t)return t.length}return 0}function St(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}$n.getWidth(),$n.getHeight(),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"}(et||(et={})),function(e){e.SESSION_START_FAILED="session_start_failed",e.SESSION_END_FAILED="session_end_failed",e.SESSION_CREATE_FAILED="session_create_failed"}(nt||(nt={})),rt.prototype=Object.create(null),it.EventEmitter=it,it.usingDomains=!1,it.prototype.domain=void 0,it.prototype._events=void 0,it.prototype._maxListeners=void 0,it.defaultMaxListeners=10,it.init=function(){this.domain=null,it.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new rt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},it.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},it.prototype.getMaxListeners=function(){return _t(this)},it.prototype.emit=function(e){var n,t,o,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(!(t=_[e]))return!1;var S="function"==typeof t;switch(o=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var o=e.length,r=St(e,o),i=0;i<o;++i)r[i].call(t)}(t,S,this);break;case 2:!function(e,n,t,o){if(n)e.call(t,o);else for(var r=e.length,i=St(e,r),_=0;_<r;++_)i[_].call(t,o)}(t,S,this,arguments[1]);break;case 3:!function(e,n,t,o,r){if(n)e.call(t,o,r);else for(var i=e.length,_=St(e,i),E=0;E<i;++E)_[E].call(t,o,r)}(t,S,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,o,r,i){if(n)e.call(t,o,r,i);else for(var _=e.length,E=St(e,_),a=0;a<_;++a)E[a].call(t,o,r,i)}(t,S,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(o-1),i=1;i<o;i++)r[i-1]=arguments[i];!function(e,n,t,o){if(n)e.apply(t,o);else for(var r=e.length,i=St(e,r),_=0;_<r;++_)i[_].apply(t,o)}(t,S,this,r)}return!0},it.prototype.addListener=function(e,n){return Et(this,e,n,!1)},it.prototype.on=it.prototype.addListener,it.prototype.prependListener=function(e,n){return Et(this,e,n,!0)},it.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,at(this,e,n)),this},it.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,at(this,e,n)),this},it.prototype.removeListener=function(e,n){var t,o,r,i,_;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(o=this._events))return this;if(!(t=o[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new rt:(delete o[e],o.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(r=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){_=t[i].listener,r=i;break}if(r<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new rt,this;delete o[e]}else!function(e,n){for(var t=n,o=t+1,r=e.length;o<r;t+=1,o+=1)e[t]=e[o];e.pop()}(t,r);o.removeListener&&this.emit("removeListener",e,_||n)}return this},it.prototype.off=function(e,n){return this.removeListener(e,n)},it.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new rt,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new rt:delete t[e]),this;if(0===arguments.length){for(var o,r=Object.keys(t),i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new rt,this._eventsCount=0,this}if("function"==typeof(n=t[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},it.prototype.listeners=function(e){var n,t=this._events;return t&&(n=t[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}(n):[]},it.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):st.call(e,n)},it.prototype.listenerCount=st,it.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var ut=function(e){_inherits(o,e);var t=_createSuper(o);function o(e,n){var r;return _classCallCheck(this,o),(r=t.call(this)).settings=e,r.setMaxListeners(100),r.init(n),r}return _createClass(o,[{key:"init",value:function(e){n.init(this.settings,(function(n){var t=n.success,o=n.sdkInfo,r=n.session,i=n.error;t&&r?e&&e({success:!0,sdkInfo:o,session:r}):e&&e({success:!1,sdkInfo:o,error:i})}))}}]),o}(it),ct=function(e,n){new ut(e,n)},lt=G({}),Tt=G({});return(null===window||void 0===window?void 0:window.ZoomCobrowseSDKInitArgs)&&(ct.apply(void 0,_toConsumableArray(window.ZoomCobrowseSDKInitArgs)),delete window.ZoomCobrowseSDKInitArgs),e.SESSION_ERROR=Tt,e.SESSION_EVENT=lt,e.init=ct,Object.defineProperty(e,"__esModule",{value:!0}),e}({},ZCBController);\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/me2n8fwg/zcb-client.js.map\n';export{e as default};
|