UNPKG

@zoom/cobrowsesdk

Version:
1 lines 3.64 MB
function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(e);if(t){var a=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n,o){return Object.defineProperty(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o})}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(t,n,o,a){var r=n&&n.prototype instanceof p?n:p,i=Object.create(r.prototype);return c(i,"_invoke",function(t,n,o){var a=1;return function(r,i){if(3===a)throw Error("Generator is already running");if(4===a){if("throw"===r)throw i;return{value:e,done:!0}}for(o.method=r,o.arg=i;;){var s=o.delegate;if(s){var c=k(s,o);if(c){if(c===d)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===a)throw a=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a=3;var u=l(t,n,o);if("normal"===u.type){if(a=o.done?4:2,u.arg===d)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(a=4,o.method="throw",o.arg=u.arg)}}}(t,o,new E(a||[])),!0),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d={};function p(){}function h(){}function m(){}var g={};c(g,r,(function(){return this}));var f=Object.getPrototypeOf,v=f&&f(f(C([])));v&&v!==n&&o.call(v,r)&&(g=v);var y=m.prototype=p.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,r,i,s){var c=l(e[a],e,r);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==_typeof(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var a;c(this,"_invoke",(function(e,o){function r(){return new t((function(t,a){n(e,o,t,a)}))}return a=a?a.then(r,r):r()}),!0)}function k(t,n){var o=n.method,a=t.i[o];if(a===e)return n.delegate=null,"throw"===o&&t.i.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),d;var r=l(a,t.i,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,d;var i=r.arg;return i?i.done?(n[t.r]=i.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function w(e){this.tryEntries.push(e)}function S(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(w,this),this.reset(!0)}function C(t){if(null!=t){var n=t[r];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a<t.length;)if(o.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(_typeof(t)+" is not iterable")}return h.prototype=m,c(y,"constructor",m),c(m,"constructor",h),h.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,i,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,o,a,r){void 0===r&&(r=Promise);var i=new _(u(e,n,o,a),r);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(y),c(y,s,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.unshift(o);return function e(){for(;n.length;)if((o=n.pop())in t)return e.value=o,e.done=!1,e;return e.done=!0,e}},t.values=C,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(e){i.type="throw",i.arg=t,n.next=e}for(var a=n.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],i=r[4],s=this.prev,c=r[1],u=r[2];if(-1===r[0])return o("end"),!1;if(!c&&!u)throw Error("try statement without catch or finally");if(null!=r[0]&&r[0]<=s){if(s<c)return this.method="next",this.arg=e,o(c),!0;if(s<u)return o(u),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var a=o;break}}a&&("break"===e||"continue"===e)&&a[0]<=t&&t<=a[2]&&(a=null);var r=a?a[4]:{};return r.type=e,r.arg=t,a?(this.method="next",this.next=a[2],d):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var o=n[4];if("throw"===o.type){var a=o.arg;S(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={i:C(t),r:n,n:o},"next"===this.method&&(this.arg=e),d}},t}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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(e,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).ZoomCobrowseAgentSDK=t()}(this,(function(){"use strict";function e(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))}var t=_createClass((function e(){var t=this;_classCallCheck(this,e),this.promise=new Promise((function(e,n){t.reject=n,t.resolve=e})),this.promise.then((function(e){return t.resolved=!0,e})).catch((function(){t.resolved=!1})).finally((function(){t.finished=!0,t.finishedTimestamp=Date.now()}))}));function n(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var t=encodeURI(e);return btoa(t)}return Buffer.from(e).toString("base64")}var o=function(e){return n(e)},a=function(){function e(t){var n=t.requestOrigin,a=t.parentFrameId;_classCallCheck(this,e),this.parentFrameId=a;var r=o(n);a&&(r=a+"--"+r),this.frameId=r}return _createClass(e,[{key:"equal",value:function(e){var t=e.requestOrigin,n=e.parentFrameId;return n===this.parentFrameId&&this.frameId===n+"--"+o(t)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),r=function(){function e(t){_classCallCheck(this,e),this.frames=new Map,this.tabId=t}return _createClass(e,[{key:"getFrame",value:function(e){var t=e.requestOrigin,n=e.parentFrameId,o=null;return this.frames.forEach((function(e){e.equal({requestOrigin:t,parentFrameId:n})&&(o=e)})),o}},{key:"checkAddFrame",value:function(e){var t=this,n=e.requestOrigin,o=e.parentFrameId,a=this.getFrame({requestOrigin:n,parentFrameId:o});if(a)return a;if(this.tabId===o)return this.addFrame({requestOrigin:n,parentFrameId:o});var r=null;return this.frames.forEach((function(e){r||e.isParentFrame(o)&&(r=t.addFrame({requestOrigin:n,parentFrameId:o}))})),r}},{key:"getSubFrames",value:function(e){var t=[];return this.frames.forEach((function(n){n.isSubFrame(e)&&t.push(n)})),t}},{key:"addFrame",value:function(e){var t=e.requestOrigin,n=e.parentFrameId,o=new a({requestOrigin:t,parentFrameId:n});return this.frames.set(o.frameId,o),o}}]),e}(),i=function(){function e(){_classCallCheck(this,e),this.tabs=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var t=e.requestOrigin,n=e.parentFrameId,a="";return n?(this.tabs.forEach((function(e){if(!a){var o=e.checkAddFrame({requestOrigin:t,parentFrameId:n});o&&(a=o.frameId)}})),a):this.tabs.size?(this.tabs.forEach((function(e,t){a||(a=t)})),a):(a=o(t),this.tabs.set(a,new r(a)),a)}},{key:"makeViewerRequest",value:function(e){var t=e.parentFrameId,n="";return this.tabs.forEach((function(e){var o;if(t){if(n)return;var a=e.getSubFrames(t);n=(null===(o=a[0])||void 0===o?void 0:o.frameId)||""}else n=e.tabId})),n}}]),e}(),s=new(function(){function e(){_classCallCheck(this,e),this.rooms=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var t=e.roomId,n=e.requestOrigin,o=e.parentFrameId,a=e.isViewer;this.rooms.get(t)||this.rooms.set(t,new i);var r=this.rooms.get(t);return r?a?r.makeViewerRequest({parentFrameId:o}):r.makeRequest({requestOrigin:n,parentFrameId:o}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=s);var c,u,l,d=function(e,t){return"".concat(e).concat(t)},p={log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\/]+)/}};!function e(t,n){var o={},a=function(){var a=t[r];"string"==typeof a?o[r]=d(n,a):"function"==typeof a?o[r]=function(){return d(n,a.apply(void 0,arguments))}:"object"===_typeof(a)&&(a instanceof RegExp||(o[r]=e(a,n)))};for(var r in t)a();return o}(p,"/co-browsing"),function(e){e.LOCAL="local",e.PROD="prod"}(c||(c={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(u||(u={})),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"}(l||(l={}));var h,m,g,f,v,y,b,_,k;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(h||(h={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(h.FOLLOWER,"|").concat(h.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"}(m||(m={})),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(g||(g={})),f="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,v="undefined"!=typeof window,y="function"==typeof importScripts,b=f&&!y,_=!f&&!v,y?g.BROWSER_WORKER:v?g.BROWSER:_?g.NODE:b?g.NODE_WORKER:g.UNKNOW,function(e){e.PING="sdk-ping",e.PONG="sdk-pong"}(k||(k={}));var w=new(function(){function e(){_classCallCheck(this,e),this._initTimer=null,this._bindedPongHandler=null,this.receivedPong=!1,this.currentInstance=null,this.pingPongTimeout=500}return _createClass(e,[{key:"initCallback",value:function(e){this.currentInstance&&this.currentCallback?this.currentCallback.call(this.currentInstance,e):this.isTopLevel=e}},{key:"registerCallback",value:function(e,t){this.currentInstance=e,this.currentCallback=t,void 0!==this.isTopLevel&&t.call(e,this.isTopLevel)}},{key:"ping",value:function(){this.addListener();try{if(window.parent===window)return void this.initCallback(!0);window.parent.postMessage(k.PING,"*")}catch(e){return this.stopInitTimer(),void this.initCallback(!0)}this.startInitTimer()}},{key:"startInitTimer",value:function(){var e=this;this.stopInitTimer(),this._initTimer=setTimeout((function(){e.receivedPong||e.initCallback(!0)}),this.pingPongTimeout)}},{key:"stopInitTimer",value:function(){this.removeListener(),this._initTimer&&(clearTimeout(this._initTimer),this._initTimer=null)}},{key:"addListener",value:function(){this._bindedPongHandler=this.handlePong.bind(this),window.addEventListener("message",this._bindedPongHandler)}},{key:"removeListener",value:function(){this._bindedPongHandler&&window.removeEventListener("message",this._bindedPongHandler)}},{key:"handlePong",value:function(e){var t;try{e.data===k.PING&&(null===(t=e.source)||void 0===t||t.postMessage(k.PONG,"*")),e.data===k.PONG&&(this.receivedPong=!0,this.initCallback(!1))}catch(e){this.stopInitTimer(),this.initCallback(!0)}}}]),e}()),S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},E=function(e){return e&&e.Math===Math&&e},C=E("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||E("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||E("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||E("object"==_typeof(S)&&S)||E("object"==_typeof(S)&&S)||function(){return this}()||Function("return this")(),T=function(e){try{return!!e()}catch(e){return!0}},O=!T((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),I=O,R=Function.prototype,j=R.apply,A=R.call,D="object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&Reflect.apply||(I?A.bind(j):function(){return A.apply(j,arguments)}),N=O,x=Function.prototype,P=x.call,L=N&&x.bind.bind(P,P),M=N?L:function(e){return function(){return P.apply(e,arguments)}},z=M,F=z({}.toString),B=z("".slice),U=function(e){return B(F(e),8,-1)},W=U,V=M,H=function(e){if("Function"===W(e))return V(e)},G="object"==("undefined"==typeof document?"undefined":_typeof(document))&&document.all,Y=void 0===G&&void 0!==G?function(e){return"function"==typeof e||e===G}:function(e){return"function"==typeof e},$={},K=!T((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Z=O,q=Function.prototype.call,J=Z?q.bind(q):function(){return q.apply(q,arguments)},X={},Q={}.propertyIsEnumerable,ee=Object.getOwnPropertyDescriptor,te=ee&&!Q.call({1:2},1);X.f=te?function(e){var t=ee(this,e);return!!t&&t.enumerable}:Q;var ne,oe,ae=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},re=T,ie=U,se=Object,ce=M("".split),ue=re((function(){return!se("z").propertyIsEnumerable(0)}))?function(e){return"String"===ie(e)?ce(e,""):se(e)}:se,le=function(e){return null==e},de=le,pe=TypeError,he=function(e){if(de(e))throw new pe("Can't call method on "+e);return e},me=ue,ge=he,fe=function(e){return me(ge(e))},ve=Y,ye=function(e){return"object"==_typeof(e)?null!==e:ve(e)},be={},_e=be,ke=C,we=Y,Se=function(e){return we(e)?e:void 0},Ee=function(e,t){return arguments.length<2?Se(_e[e])||Se(ke[e]):_e[e]&&_e[e][t]||ke[e]&&ke[e][t]},Ce=M({}.isPrototypeOf),Te=C.navigator,Oe=Te&&Te.userAgent,Ie=Oe?String(Oe):"",Re=C,je=Ie,Ae=Re.process,De=Re.Deno,Ne=Ae&&Ae.versions||De&&De.version,xe=Ne&&Ne.v8;xe&&(oe=(ne=xe.split("."))[0]>0&&ne[0]<4?1:+(ne[0]+ne[1])),!oe&&je&&(!(ne=je.match(/Edge\/(\d+)/))||ne[1]>=74)&&(ne=je.match(/Chrome\/(\d+)/))&&(oe=+ne[1]);var Pe=oe,Le=Pe,Me=T,ze=C.String,Fe=!!Object.getOwnPropertySymbols&&!Me((function(){var e=Symbol("symbol detection");return!ze(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Le&&Le<41})),Be=Fe&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),Ue=Ee,We=Y,Ve=Ce,He=Object,Ge=Be?function(e){return"symbol"==_typeof(e)}:function(e){var t=Ue("Symbol");return We(t)&&Ve(t.prototype,He(e))},Ye=String,$e=function(e){try{return Ye(e)}catch(e){return"Object"}},Ke=Y,Ze=$e,qe=TypeError,Je=function(e){if(Ke(e))return e;throw new qe(Ze(e)+" is not a function")},Xe=Je,Qe=le,et=function(e,t){var n=e[t];return Qe(n)?void 0:Xe(n)},tt=J,nt=Y,ot=ye,at=TypeError,rt={},it={get exports(){return rt},set exports(e){rt=e}},st=C,ct=Object.defineProperty,ut=C,lt=function(e,t){try{ct(st,e,{value:t,configurable:!0,writable:!0})}catch(n){st[e]=t}return t},dt="__core-js_shared__",pt=it.exports=ut[dt]||lt(dt,{});(pt.versions||(pt.versions=[])).push({version:"3.45.1",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ht=rt,mt=function(e,t){return ht[e]||(ht[e]=t||{})},gt=he,ft=Object,vt=function(e){return ft(gt(e))},yt=vt,bt=M({}.hasOwnProperty),_t=Object.hasOwn||function(e,t){return bt(yt(e),t)},kt=M,wt=0,St=Math.random(),Et=kt(1.1.toString),Ct=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Et(++wt+St,36)},Tt=mt,Ot=_t,It=Ct,Rt=Fe,jt=Be,At=C.Symbol,Dt=Tt("wks"),Nt=jt?At.for||At:At&&At.withoutSetter||It,xt=function(e){return Ot(Dt,e)||(Dt[e]=Rt&&Ot(At,e)?At[e]:Nt("Symbol."+e)),Dt[e]},Pt=J,Lt=ye,Mt=Ge,zt=et,Ft=function(e,t){var n,o;if("string"===t&&nt(n=e.toString)&&!ot(o=tt(n,e)))return o;if(nt(n=e.valueOf)&&!ot(o=tt(n,e)))return o;if("string"!==t&&nt(n=e.toString)&&!ot(o=tt(n,e)))return o;throw new at("Can't convert object to primitive value")},Bt=TypeError,Ut=xt("toPrimitive"),Wt=function(e,t){if(!Lt(e)||Mt(e))return e;var n,o=zt(e,Ut);if(o){if(void 0===t&&(t="default"),n=Pt(o,e,t),!Lt(n)||Mt(n))return n;throw new Bt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Ft(e,t)},Vt=Ge,Ht=function(e){var t=Wt(e,"string");return Vt(t)?t:t+""},Gt=ye,Yt=C.document,$t=Gt(Yt)&&Gt(Yt.createElement),Kt=function(e){return $t?Yt.createElement(e):{}},Zt=Kt,qt=!K&&!T((function(){return 7!==Object.defineProperty(Zt("div"),"a",{get:function(){return 7}}).a})),Jt=K,Xt=J,Qt=X,en=ae,tn=fe,nn=Ht,on=_t,an=qt,rn=Object.getOwnPropertyDescriptor;$.f=Jt?rn:function(e,t){if(e=tn(e),t=nn(t),an)try{return rn(e,t)}catch(e){}if(on(e,t))return en(!Xt(Qt.f,e,t),e[t])};var sn=T,cn=Y,un=/#|\.prototype\./,ln=function(e,t){var n=pn[dn(e)];return n===mn||n!==hn&&(cn(t)?sn(t):!!t)},dn=ln.normalize=function(e){return String(e).replace(un,".").toLowerCase()},pn=ln.data={},hn=ln.NATIVE="N",mn=ln.POLYFILL="P",gn=ln,fn=Je,vn=O,yn=H(H.bind),bn=function(e,t){return fn(e),void 0===t?e:vn?yn(e,t):function(){return e.apply(t,arguments)}},_n={},kn=K&&T((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wn=ye,Sn=String,En=TypeError,Cn=function(e){if(wn(e))return e;throw new En(Sn(e)+" is not an object")},Tn=K,On=qt,In=kn,Rn=Cn,jn=Ht,An=TypeError,Dn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,xn="enumerable",Pn="configurable",Ln="writable";_n.f=Tn?In?function(e,t,n){if(Rn(e),t=jn(t),Rn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ln in n&&!n[Ln]){var o=Nn(e,t);o&&o[Ln]&&(e[t]=n.value,n={configurable:Pn in n?n[Pn]:o[Pn],enumerable:xn in n?n[xn]:o[xn],writable:!1})}return Dn(e,t,n)}:Dn:function(e,t,n){if(Rn(e),t=jn(t),Rn(n),On)try{return Dn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new An("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Mn=_n,zn=ae,Fn=K?function(e,t,n){return Mn.f(e,t,zn(1,n))}:function(e,t,n){return e[t]=n,e},Bn=C,Un=D,Wn=H,Vn=Y,Hn=$.f,Gn=gn,Yn=be,$n=bn,Kn=Fn,Zn=_t,qn=function(e){var t=function t(n,o,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,o)}return new e(n,o,a)}return Un(e,this,arguments)};return t.prototype=e.prototype,t},Jn=function(e,t){var n,o,a,r,i,s,c,u,l,d=e.target,p=e.global,h=e.stat,m=e.proto,g=p?Bn:h?Bn[d]:Bn[d]&&Bn[d].prototype,f=p?Yn:Yn[d]||Kn(Yn,d,{})[d],v=f.prototype;for(r in t)o=!(n=Gn(p?r:d+(h?".":"#")+r,e.forced))&&g&&Zn(g,r),s=f[r],o&&(c=e.dontCallGetSet?(l=Hn(g,r))&&l.value:g[r]),i=o&&c?c:t[r],(n||m||_typeof(s)!=_typeof(i))&&(u=e.bind&&o?$n(i,Bn):e.wrap&&o?qn(i):m&&Vn(i)?Wn(i):i,(e.sham||i&&i.sham||s&&s.sham)&&Kn(u,"sham",!0),Kn(f,r,u),m&&(Zn(Yn,a=d+"Prototype")||Kn(Yn,a,{}),Kn(Yn[a],r,i),e.real&&v&&(n||!v[r])&&Kn(v,r,i)))},Xn=Ct,Qn=mt("keys"),eo=function(e){return Qn[e]||(Qn[e]=Xn(e))},to=!T((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),no=_t,oo=Y,ao=vt,ro=to,io=eo("IE_PROTO"),so=Object,co=so.prototype,uo=ro?so.getPrototypeOf:function(e){var t=ao(e);if(no(t,io))return t[io];var n=t.constructor;return oo(n)&&t instanceof n?n.prototype:t instanceof so?co:null},lo=M,po=Je,ho=ye,mo=function(e){return ho(e)||null===e},go=String,fo=TypeError,vo=function(e,t,n){try{return lo(po(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},yo=ye,bo=he,_o=function(e){if(mo(e))return e;throw new fo("Can't set "+go(e)+" as a prototype")},ko=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=vo(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return bo(n),_o(o),yo(n)?(t?e(n,o):n.__proto__=o,n):n}}():void 0),wo={},So=Math.ceil,Eo=Math.floor,Co=Math.trunc||function(e){var t=+e;return(t>0?Eo:So)(t)},To=function(e){var t=+e;return t!=t||0===t?0:Co(t)},Oo=To,Io=Math.max,Ro=Math.min,jo=To,Ao=Math.min,Do=function(e){var t=jo(e);return t>0?Ao(t,9007199254740991):0},No=function(e){return Do(e.length)},xo=fe,Po=function(e,t){var n=Oo(e);return n<0?Io(n+t,0):Ro(n,t)},Lo=No,Mo=function(e){return function(t,n,o){var a=xo(t),r=Lo(a);if(0===r)return!e&&-1;var i,s=Po(o,r);if(e&&n!=n){for(;r>s;)if((i=a[s++])!=i)return!0}else for(;r>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},zo={includes:Mo(!0),indexOf:Mo(!1)},Fo={},Bo=_t,Uo=fe,Wo=zo.indexOf,Vo=Fo,Ho=M([].push),Go=function(e,t){var n,o=Uo(e),a=0,r=[];for(n in o)!Bo(Vo,n)&&Bo(o,n)&&Ho(r,n);for(;t.length>a;)Bo(o,n=t[a++])&&(~Wo(r,n)||Ho(r,n));return r},Yo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$o=Go,Ko=Yo.concat("length","prototype");wo.f=Object.getOwnPropertyNames||function(e){return $o(e,Ko)};var Zo={};Zo.f=Object.getOwnPropertySymbols;var qo=Ee,Jo=wo,Xo=Zo,Qo=Cn,ea=M([].concat),ta=qo("Reflect","ownKeys")||function(e){var t=Jo.f(Qo(e)),n=Xo.f;return n?ea(t,n(e)):t},na=_t,oa=ta,aa=$,ra=_n,ia={},sa=Go,ca=Yo,ua=Object.keys||function(e){return sa(e,ca)},la=K,da=kn,pa=_n,ha=Cn,ma=fe,ga=ua;ia.f=la&&!da?Object.defineProperties:function(e,t){ha(e);for(var n,o=ma(t),a=ga(t),r=a.length,i=0;r>i;)pa.f(e,n=a[i++],o[n]);return e};var fa,va=Ee("document","documentElement"),ya=Cn,ba=ia,_a=Yo,ka=Fo,wa=va,Sa=Kt,Ea="prototype",Ca="script",Ta=eo("IE_PROTO"),Oa=function(){},Ia=function(e){return"<"+Ca+">"+e+"</"+Ca+">"},Ra=function(e){e.write(Ia("")),e.close();var t=e.parentWindow.Object;return e=null,t},ja=function(){try{fa=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;ja="undefined"!=typeof document?document.domain&&fa?Ra(fa):(t=Sa("iframe"),n="java"+Ca+":",t.style.display="none",wa.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Ia("document.F=Object")),e.close(),e.F):Ra(fa);for(var o=_a.length;o--;)delete ja[Ea][_a[o]];return ja()};ka[Ta]=!0;var Aa=Object.create||function(e,t){var n;return null!==e?(Oa[Ea]=ya(e),n=new Oa,Oa[Ea]=null,n[Ta]=e):n=ja(),void 0===t?n:ba.f(n,t)},Da=ye,Na=Fn,xa=Error,Pa=M("".replace),La=String(new xa("zxcasd").stack),Ma=/\n\s*at [^:]*:[^\n]*/,za=Ma.test(La),Fa=ae,Ba=!T((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fa(1,7)),7!==e.stack)})),Ua=Fn,Wa=function(e,t){if(za&&"string"==typeof e&&!xa.prepareStackTrace)for(;t--;)e=Pa(e,Ma,"");return e},Va=Ba,Ha=Error.captureStackTrace,Ga={},Ya=Ga,$a=xt("iterator"),Ka=Array.prototype,Za={};Za[xt("toStringTag")]="z";var qa="[object z]"===String(Za),Ja=qa,Xa=Y,Qa=U,er=xt("toStringTag"),tr=Object,nr="Arguments"===Qa(function(){return arguments}()),or=Ja?Qa:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=tr(e),er))?n:nr?Qa(t):"Object"===(o=Qa(t))&&Xa(t.callee)?"Arguments":o},ar=or,rr=et,ir=le,sr=Ga,cr=xt("iterator"),ur=function(e){if(!ir(e))return rr(e,cr)||rr(e,"@@iterator")||sr[ar(e)]},lr=J,dr=Je,pr=Cn,hr=$e,mr=ur,gr=TypeError,fr=J,vr=Cn,yr=et,br=bn,_r=J,kr=Cn,wr=$e,Sr=function(e){return void 0!==e&&(Ya.Array===e||Ka[$a]===e)},Er=No,Cr=Ce,Tr=function(e,t){var n=arguments.length<2?mr(e):t;if(dr(n))return pr(lr(n,e));throw new gr(hr(e)+" is not iterable")},Or=ur,Ir=function(e,t,n){var o,a;vr(e);try{if(!(o=yr(e,"return"))){if("throw"===t)throw n;return n}o=fr(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return vr(o),n},Rr=TypeError,jr=function(e,t){this.stopped=e,this.result=t},Ar=jr.prototype,Dr=function(e,t,n){var o,a,r,i,s,c,u,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),g=br(t,l),f=function(e){return o&&Ir(o,"normal"),new jr(!0,e)},v=function(e){return d?(kr(e),m?g(e[0],e[1],f):g(e[0],e[1])):m?g(e,f):g(e)};if(p)o=e.iterator;else if(h)o=e;else{if(!(a=Or(e)))throw new Rr(wr(e)+" is not iterable");if(Sr(a)){for(r=0,i=Er(e);i>r;r++)if((s=v(e[r]))&&Cr(Ar,s))return s;return new jr(!1)}o=Tr(e,a)}for(c=p?e.next:o.next;!(u=_r(c,o)).done;){try{s=v(u.value)}catch(e){Ir(o,"throw",e)}if("object"==_typeof(s)&&s&&Cr(Ar,s))return s}return new jr(!1)},Nr=or,xr=String,Pr=function(e){if("Symbol"===Nr(e))throw new TypeError("Cannot convert a Symbol value to a string");return xr(e)},Lr=Pr,Mr=Jn,zr=Ce,Fr=uo,Br=ko,Ur=function(e,t,n){for(var o=oa(t),a=ra.f,r=aa.f,i=0;i<o.length;i++){var s=o[i];na(e,s)||n&&na(n,s)||a(e,s,r(t,s))}},Wr=Aa,Vr=Fn,Hr=ae,Gr=function(e,t){Da(t)&&"cause"in t&&Na(e,"cause",t.cause)},Yr=function(e,t,n,o){Va&&(Ha?Ha(e,t):Ua(e,"stack",Wa(n,o)))},$r=Dr,Kr=function(e,t){return void 0===e?arguments.length<2?"":t:Lr(e)},Zr=xt("toStringTag"),qr=Error,Jr=[].push,Xr=function(e,t){var n,o=zr(Qr,this);Br?n=Br(new qr,o?Fr(this):Qr):(n=o?this:Wr(Qr),Vr(n,Zr,"Error")),void 0!==t&&Vr(n,"message",Kr(t)),Yr(n,Xr,n.stack,1),arguments.length>2&&Gr(n,arguments[2]);var a=[];return $r(e,Jr,{that:a}),Vr(n,"errors",a),n};Br?Br(Xr,qr):Ur(Xr,qr,{name:!0});var Qr=Xr.prototype=Wr(qr.prototype,{constructor:Hr(1,Xr),message:Hr(1,""),name:Hr(1,"AggregateError")});Mr({global:!0,constructor:!0,arity:2},{AggregateError:Xr});var ei,ti,ni,oi=Y,ai=C.WeakMap,ri=oi(ai)&&/native code/.test(String(ai)),ii=C,si=ye,ci=Fn,ui=_t,li=rt,di=eo,pi=Fo,hi="Object already initialized",mi=ii.TypeError,gi=ii.WeakMap;if(ri||li.state){var fi=li.state||(li.state=new gi);fi.get=fi.get,fi.has=fi.has,fi.set=fi.set,ei=function(e,t){if(fi.has(e))throw new mi(hi);return t.facade=e,fi.set(e,t),t},ti=function(e){return fi.get(e)||{}},ni=function(e){return fi.has(e)}}else{var vi=di("state");pi[vi]=!0,ei=function(e,t){if(ui(e,vi))throw new mi(hi);return t.facade=e,ci(e,vi,t),t},ti=function(e){return ui(e,vi)?e[vi]:{}},ni=function(e){return ui(e,vi)}}var yi,bi,_i,ki={set:ei,get:ti,has:ni,enforce:function(e){return ni(e)?ti(e):ei(e,{})},getterFor:function(e){return function(t){var n;if(!si(t)||(n=ti(t)).type!==e)throw new mi("Incompatible receiver, "+e+" required");return n}}},wi=K,Si=_t,Ei=Function.prototype,Ci=wi&&Object.getOwnPropertyDescriptor,Ti=Si(Ei,"name"),Oi={EXISTS:Ti,PROPER:Ti&&"something"===function(){}.name,CONFIGURABLE:Ti&&(!wi||wi&&Ci(Ei,"name").configurable)},Ii=Fn,Ri=function(e,t,n,o){return o&&o.enumerable?e[t]=n:Ii(e,t,n),e},ji=T,Ai=Y,Di=ye,Ni=Aa,xi=uo,Pi=Ri,Li=xt("iterator"),Mi=!1;[].keys&&("next"in(_i=[].keys())?(bi=xi(xi(_i)))!==Object.prototype&&(yi=bi):Mi=!0);var zi=!Di(yi)||ji((function(){var e={};return yi[Li].call(e)!==e}));Ai((yi=zi?{}:Ni(yi))[Li])||Pi(yi,Li,(function(){return this}));var Fi={IteratorPrototype:yi,BUGGY_SAFARI_ITERATORS:Mi},Bi=or,Ui=qa?{}.toString:function(){return"[object "+Bi(this)+"]"},Wi=qa,Vi=_n.f,Hi=Fn,Gi=_t,Yi=Ui,$i=xt("toStringTag"),Ki=function(e,t,n,o){var a=n?e:e&&e.prototype;a&&(Gi(a,$i)||Vi(a,$i,{configurable:!0,value:t}),o&&!Wi&&Hi(a,"toString",Yi))},Zi=Fi.IteratorPrototype,qi=Aa,Ji=ae,Xi=Ki,Qi=Ga,es=function(){return this},ts=Jn,ns=J,os=Oi,as=function(e,t,n,o){var a=t+" Iterator";return e.prototype=qi(Zi,{next:Ji(+!o,n)}),Xi(e,a,!1,!0),Qi[a]=es,e},rs=uo,is=Ki,ss=Ri,cs=Ga,us=Fi,ls=os.PROPER,ds=us.BUGGY_SAFARI_ITERATORS,ps=xt("iterator"),hs="keys",ms="values",gs="entries",fs=function(){return this},vs=function(e,t,n,o,a,r,i){as(n,t,o);var s,c,u,l=function(e){if(e===a&&g)return g;if(!ds&&e&&e in h)return h[e];switch(e){case hs:case ms:case gs:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,h=e.prototype,m=h[ps]||h["@@iterator"]||a&&h[a],g=!ds&&m||l(a),f="Array"===t&&h.entries||m;if(f&&(s=rs(f.call(new e)))!==Object.prototype&&s.next&&(is(s,d,!0,!0),cs[d]=fs),ls&&a===ms&&m&&m.name!==ms&&(p=!0,g=function(){return ns(m,this)}),a)if(c={values:l(ms),keys:r?g:l(hs),entries:l(gs)},i)for(u in c)(ds||p||!(u in h))&&ss(h,u,c[u]);else ts({target:t,proto:!0,forced:ds||p},c);return i&&h[ps]!==g&&ss(h,ps,g,{name:a}),cs[t]=g,c},ys=function(e,t){return{value:e,done:t}},bs=fe,_s=function(){},ks=Ga,ws=ki,Ss=(_n.f,vs),Es=ys,Cs="Array Iterator",Ts=ws.set,Os=ws.getterFor(Cs);Ss(Array,"Array",(function(e,t){Ts(this,{type:Cs,target:bs(e),index:0,kind:t})}),(function(){var e=Os(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Es(void 0,!0);switch(e.kind){case"keys":return Es(n,!1);case"values":return Es(t[n],!1)}return Es([n,t[n]],!1)}),"values");ks.Arguments=ks.Array;_s(),_s(),_s();var Is=C,Rs=Ie,js=U,As=function(e){return Rs.slice(0,e.length)===e},Ds=As("Bun/")?"BUN":As("Cloudflare-Workers")?"CLOUDFLARE":As("Deno/")?"DENO":As("Node.js/")?"NODE":Is.Bun&&"string"==typeof Bun.version?"BUN":Is.Deno&&"object"==_typeof(Deno.version)?"DENO":"process"===js(Is.process)?"NODE":Is.window&&Is.document?"BROWSER":"REST",Ns="NODE"===Ds,xs=_n,Ps=Ee,Ls=function(e,t,n){return xs.f(e,t,n)},Ms=K,zs=xt("species"),Fs=Ce,Bs=TypeError,Us=Y,Ws=rt,Vs=M(Function.toString);Us(Ws.inspectSource)||(Ws.inspectSource=function(e){return Vs(e)});var Hs=Ws.inspectSource,Gs=M,Ys=T,$s=Y,Ks=or,Zs=Hs,qs=function(){},Js=Ee("Reflect","construct"),Xs=/^\s*(?:class|function)\b/,Qs=Gs(Xs.exec),ec=!Xs.test(qs),tc=function(e){if(!$s(e))return!1;try{return Js(qs,[],e),!0}catch(e){return!1}},nc=function(e){if(!$s(e))return!1;switch(Ks(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ec||!!Qs(Xs,Zs(e))}catch(e){return!0}};nc.sham=!0;var oc,ac,rc,ic,sc=!Js||Ys((function(){var e;return tc(tc.call)||!tc(Object)||!tc((function(){e=!0}))||e}))?nc:tc,cc=sc,uc=$e,lc=TypeError,dc=Cn,pc=function(e){if(cc(e))return e;throw new lc(uc(e)+" is not a constructor")},hc=le,mc=xt("species"),gc=function(e,t){var n,o=dc(e).constructor;return void 0===o||hc(n=dc(o)[mc])?t:pc(n)},fc=M([].slice),vc=TypeError,yc=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ie),bc=C,_c=D,kc=bn,wc=Y,Sc=_t,Ec=T,Cc=va,Tc=fc,Oc=Kt,Ic=function(e,t){if(e<t)throw new vc("Not enough arguments");return e},Rc=yc,jc=Ns,Ac=bc.setImmediate,Dc=bc.clearImmediate,Nc=bc.process,xc=bc.Dispatch,Pc=bc.Function,Lc=bc.MessageChannel,Mc=bc.String,zc=0,Fc={},Bc="onreadystatechange";Ec((function(){oc=bc.location}));var Uc=function(e){if(Sc(Fc,e)){var t=Fc[e];delete Fc[e],t()}},Wc=function(e){return function(){Uc(e)}},Vc=function(e){Uc(e.data)},Hc=function(e){bc.postMessage(Mc(e),oc.protocol+"//"+oc.host)};Ac&&Dc||(Ac=function(e){Ic(arguments.length,1);var t=wc(e)?e:Pc(e),n=Tc(arguments,1);return Fc[++zc]=function(){_c(t,void 0,n)},ac(zc),zc},Dc=function(e){delete Fc[e]},jc?ac=function(e){Nc.nextTick(Wc(e))}:xc&&xc.now?ac=function(e){xc.now(Wc(e))}:Lc&&!Rc?(ic=(rc=new Lc).port2,rc.port1.onmessage=Vc,ac=kc(ic.postMessage,ic)):bc.addEventListener&&wc(bc.postMessage)&&!bc.importScripts&&oc&&"file:"!==oc.protocol&&!Ec(Hc)?(ac=Hc,bc.addEventListener("message",Vc,!1)):ac=Bc in Oc("script")?function(e){Cc.appendChild(Oc("script"))[Bc]=function(){Cc.removeChild(this),Uc(e)}}:function(e){setTimeout(Wc(e),0)});var Gc={set:Ac,clear:Dc},Yc=C,$c=K,Kc=Object.getOwnPropertyDescriptor,Zc=function(){this.head=null,this.tail=null};Zc.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var qc,Jc,Xc,Qc,eu,tu=Zc,nu=/ipad|iphone|ipod/i.test(Ie)&&"undefined"!=typeof Pebble,ou=/web0s(?!.*chrome)/i.test(Ie),au=C,ru=function(e){if(!$c)return Yc[e];var t=Kc(Yc,e);return t&&t.value},iu=bn,su=Gc.set,cu=tu,uu=yc,lu=nu,du=ou,pu=Ns,hu=au.MutationObserver||au.WebKitMutationObserver,mu=au.document,gu=au.process,fu=au.Promise,vu=ru("queueMicrotask");if(!vu){var yu=new cu,bu=function(){var e,t;for(pu&&(e=gu.domain)&&e.exit();t=yu.get();)try{t()}catch(e){throw yu.head&&qc(),e}e&&e.enter()};uu||pu||du||!hu||!mu?!lu&&fu&&fu.resolve?((Qc=fu.resolve(void 0)).constructor=fu,eu=iu(Qc.then,Qc),qc=function(){eu(bu)}):pu?qc=function(){gu.nextTick(bu)}:(su=iu(su,au),qc=function(){su(bu)}):(Jc=!0,Xc=mu.createTextNode(""),new hu(bu).observe(Xc,{characterData:!0}),qc=function(){Xc.data=Jc=!Jc}),vu=function(e){yu.head||qc(),yu.add(e)}}var _u=vu,ku=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},wu=C.Promise,Su=C,Eu=wu,Cu=Y,Tu=gn,Ou=Hs,Iu=xt,Ru=Ds,ju=Pe,Au=Eu&&Eu.prototype,Du=Iu("species"),Nu=!1,xu=Cu(Su.PromiseRejectionEvent),Pu=Tu("Promise",(function(){var e=Ou(Eu),t=e!==String(Eu);if(!t&&66===ju)return!0;if(!Au.catch||!Au.finally)return!0;if(!ju||ju<51||!/native code/.test(e)){var n=new Eu((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Du]=o,!(Nu=n.then((function(){}))instanceof o))return!0}return!(t||"BROWSER"!==Ru&&"DENO"!==Ru||xu)})),Lu={CONSTRUCTOR:Pu,REJECTION_EVENT:xu,SUBCLASSING:Nu},Mu={},zu=Je,Fu=TypeError,Bu=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new Fu("Bad Promise constructor");t=e,n=o})),this.resolve=zu(t),this.reject=zu(n)};Mu.f=function(e){return new Bu(e)};var Uu,Wu,Vu,Hu=Jn,Gu=Ns,Yu=C,$u=be,Ku=J,Zu=Ri,qu=Ki,Ju=function(e){var t=Ps(e);Ms&&t&&!t[zs]&&Ls(t,zs,{configurable:!0,get:function(){return this}})},Xu=Je,Qu=Y,el=ye,tl=function(e,t){if(Fs(t,e))return e;throw new Bs("Incorrect invocation")},nl=gc,ol=Gc.set,al=_u,rl=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},il=ku,sl=tu,cl=ki,ul=wu,ll=Lu,dl=Mu,pl="Promise",hl=ll.CONSTRUCTOR,ml=ll.REJECTION_EVENT,gl=cl.getterFor(pl),fl=cl.set,vl=ul&&ul.prototype,yl=ul,bl=vl,_l=Yu.TypeError,kl=Yu.document,wl=Yu.process,Sl=dl.f,El=Sl,Cl=!!(kl&&kl.createEvent&&Yu.dispatchEvent),Tl="unhandledrejection",Ol=function(e){var t;return!(!el(e)||!Qu(t=e.then))&&t},Il=function(e,t){var n,o,a,r=t.value,i=1===t.state,s=i?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(i||(2===t.rejection&&Nl(t),t.rejection=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?u(new _l("Promise-chain cycle")):(o=Ol(n))?Ku(o,n,c,u):c(n)):u(r)}catch(e){l&&!a&&l.exit(),u(e)}},Rl=function(e,t){e.notified||(e.notified=!0,al((function(){for(var n,o=e.reactions;n=o.get();)Il(n,e);e.notified=!1,t&&!e.rejection&&Al(e)})))},jl=function(e,t,n){var o,a;Cl?((o=kl.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),Yu.dispatchEvent(o)):o={promise:t,reason:n},!ml&&(a=Yu["on"+e])?a(o):e===Tl&&rl("Unhandled promise rejection",n)},Al=function(e){Ku(ol,Yu,(function(){var t,n=e.facade,o=e.value;if(Dl(e)&&(t=il((function(){Gu?wl.emit("unhandledRejection",o,n):jl(Tl,n,o)})),e.rejection=Gu||Dl(e)?2:1,t.error))throw t.value}))},Dl=function(e){return 1!==e.rejection&&!e.parent},Nl=function(e){Ku(ol,Yu,(function(){var t=e.facade;Gu?wl.emit("rejectionHandled",t):jl("rejectionhandled",t,e.value)}))},xl=function(e,t,n){return function(o){e(t,o,n)}},Pl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Rl(e,!0))},Ll=function e(t,n,o){if(!t.done){t.done=!0,o&&(t=o);try{if(t.facade===n)throw new _l("Promise can't be resolved itself");var a=Ol(n);a?al((function(){var o={done:!1};try{Ku(a,n,xl(e,o,t),xl(Pl,o,t))}catch(e){Pl(o,e,t)}})):(t.value=n,t.state=1,Rl(t,!1))}catch(e){Pl({done:!1},e,t)}}};hl&&(bl=(yl=function(e){tl(this,bl),Xu(e),Ku(Uu,this);var t=gl(this);try{e(xl(Ll,t),xl(Pl,t))}catch(e){Pl(t,e)}}).prototype,(Uu=function(e){fl(this,{type:pl,done:!1,notified:!1,parent:!1,reactions:new sl,rejection:!1,state:0,value:null})}).prototype=Zu(bl,"then",(function(e,t){var n=gl(this),o=Sl(nl(this,yl));return n.parent=!0,o.ok=!Qu(e)||e,o.fail=Qu(t)&&t,o.domain=Gu?wl.domain:void 0,0===n.state?n.reactions.add(o):al((function(){Il(o,n)})),o.promise})),Wu=function(){var e=new Uu,t=gl(e);this.promise=e,this.resolve=xl(Ll,t),this.reject=xl(Pl,t)},dl.f=Sl=function(e){return e===yl||e===Vu?new Wu(e):El(e)}),Hu({global:!0,constructor:!0,wrap:!0,forced:hl},{Promise:yl}),Vu=$u.Promise,qu(yl,pl,!1,!0),Ju(pl);var Ml=xt("iterator"),zl=!1;try{var Fl=0,Bl={next:function(){return{done:!!Fl++}},return:function(){zl=!0}};Bl[Ml]=function(){return this},Array.from(Bl,(function(){throw 2}))}catch(e){}var Ul=wu,Wl=function(e,t){try{if(!t&&!zl)return!1}catch(e){return!1}var n=!1;try{var o={};o[Ml]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n},Vl=Lu.CONSTRUCTOR||!Wl((function(e){Ul.all(e).then(void 0,(function(){}))})),Hl=J,Gl=Je,Yl=Mu,$l=ku,Kl=Dr;Jn({target:"Promise",stat:!0,forced:Vl},{all:function(e){var t=this,n=Yl.f(t),o=n.resolve,a=n.reject,r=$l((function(){var n=Gl(t.resolve),r=[],i=0,s=1;Kl(e,(function(e){var c=i++,u=!1;s++,Hl(n,t,e).then((function(e){u||(u=!0,r[c]=e,--s||o(r))}),a)})),--s||o(r)}));return r.error&&a(r.value),n.promise}});var Zl=Jn,ql=Lu.CONSTRUCTOR;wu&&wu.prototype,Zl({target:"Promise",proto:!0,forced:ql,real:!0},{catch:function(e){return this.then(void 0,e)}});var Jl=J,Xl=Je,Ql=Mu,ed=ku,td=Dr;Jn({target:"Promise",stat:!0,forced:Vl},{race:function(e){var t=this,n=Ql.f(t),o=n.reject,a=ed((function(){var a=Xl(t.resolve);td(e,(function(e){Jl(a,t,e).then(n.resolve,o)}))}));return a.error&&o(a.value),n.promise}});var nd=Mu;Jn({target:"Promise",stat:!0,forced:Lu.CONSTRUCTOR},{reject:function(e){var t=nd.f(this);return(0,t.reject)(e),t.promise}});var od=Cn,ad=ye,rd=Mu,id=function(e,t){if(od(e),ad(t)&&t.constructor===e)return t;var n=rd.f(e);return(0,n.resolve)(t),n.promise},sd=Jn,cd=wu,ud=Lu.CONSTRUCTOR,ld=id,dd=Ee("Promise"),pd=!ud;sd({target:"Promise",stat:!0,forced:true},{resolve:function(e){return ld(pd&&this===dd?cd:this,e)}});var hd=J,md=Je,gd=Mu,fd=ku,vd=Dr;Jn({target:"Promise",stat:!0,forced:Vl},{allSettled:function(e){var t=this,n=gd.f(t),o=n.resolve,a=n.reject,r=fd((function(){var n=md(t.resolve),a=[],r=0,i=1;vd(e,(function(e){var s=r++,c=!1;i++,hd(n,t,e).then((function(e){c||(c=!0,a[s]={status:"fulfilled",value:e},--i||o(a))}),(function(e){c||(c=!0,a[s]={status:"rejected",reason:e},--i||o(a))}))})),--i||o(a)}));return r.error&&a(r.value),n.promise}});var yd=J,bd=Je,_d=Ee,kd=Mu,wd=ku,Sd=Dr,Ed="No one promise resolved";Jn({target:"Promise",stat:!0,forced:Vl},{any:function(e){var t=this,n=_d("AggregateError"),o=kd.f(t),a=o.resolve,r=o.reject,i=wd((function(){var o=bd(t.resolve),i=[],s=0,c=1,u=!1;Sd(e,(function(e){var l=s++,d=!1;c++,yd(o,t,e).then((function(e){d||u||(u=!0,a(e))}),(function(e){d||u||(d=!0,i[l]=e,--c||r(new n(i,Ed)))}))})),--c||r(new n(i,Ed))}));return i.error&&r(i.value),o.promise}});var Cd=Jn,Td=D,Od=fc,Id=Mu,Rd=Je,jd=ku,Ad=C.Promise,Dd=!1;Cd({target:"Promise",stat:!0,forced:!Ad||!Ad.try||jd((function(){Ad.try((function(e){Dd=8===e}),8)})).error||!Dd},{try:function(e){var t=arguments.length>1?Od(arguments,1):[],n=Id.f(this),o=jd((function(){return Td(Rd(e),void 0,t)}));return(o.error?n.reject:n.resolve)(o.value),n.promise}});var Nd=Mu;Jn({target:"Promise",stat:!0},{withResolvers:function(){var e=Nd.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var xd=Jn,Pd=wu,Ld=T,Md=Ee,zd=Y,Fd=gc,Bd=id,Ud=Pd&&Pd.prototype;xd({target:"Promise",proto:!0,real:!0,forced:!!Pd&&Ld((function(){Ud.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Fd(this,Md("Promise")),n=zd(e);return this.then(n?function(n){return Bd(t,e()).then((function(){return n}))}:e,n?function(n){return Bd(t,e()).then((function(){throw n}))}:e)}});var Wd=M,Vd=To,Hd=Pr,Gd=he,Yd=Wd("".charAt),$d=Wd("".charCodeAt),Kd=Wd("".slice),Zd=function(e){return function(t,n){var o,a,r=Hd(Gd(t)),i=Vd(n),s=r.length;return i<0||i>=s?e?"":void 0:(o=$d(r,i))<55296||o>56319||i+1===s||(a=$d(r,i+1))<56320||a>57343?e?Yd(r,i):o:e?Kd(r,i,i+2):a-56320+(o-55296<<10)+65536}},qd={codeAt:Zd(!1),charAt:Zd(!0)}.charAt,Jd=Pr,Xd=ki,Qd=vs,ep=ys,tp="String Iterator",np=Xd.set,op=Xd.getterFor(tp);Qd(String,"String",(function(e){np(this,{type:tp,string:Jd(e),index:0})}),(function(){var e,t=op(this),n=t.string,o=t.index;return o>=n.length?ep(void 0,!0):(e=qd(n,o),t.index+=e.length,ep(e,!1))}));var ap=be.Promise,rp={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ip=C,sp=Ki,cp=Ga;for(var up in rp)sp(ip[up],up),cp[up]=cp.Array;var lp,dp=ap;!function(e){e.CSS="text/css",e.JS="application/javascript"}(lp||(lp={}));var pp=function(){function n(e){_classCallCheck(this,n),this.options=e,this.codeBlobMap=new Map,this.enableBlob=!1;var t=this.options.doc;this.doc=t,w.registerCallback(this,this.initCallback)}return _createClass(n,[{key:"initCallback",value:function(t){return e(this,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))}},{key:"addScript",value:function(e,t,n,o,a){var r=e.createElement("script");if(r.type="text/javascript",this.enableBlob?(r.src=n,r.async=!1):r.textContent=n,r.id=a,o)for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i]);t.appendChild(r)}},{key:"addLink",value:function(e,t,n,o,a){var r=this.enableBlob?"link":"style",i=e.createElement(r);if(this.enableBlob?(i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",n)):i.textContent=n,i.setAttribute("class","CBS-internal-block"),i.id=a,o)for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s]);t.appendChild(i)}},{key:"appendByFragment",value:function(t,n,o,a,r){return e(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.createDocumentFragment(),e.next=3,this.getTrunkBlobUrl(n,o);case 3:e.sent.forEach((function(e){var n=e.url,o=e.attrs,r=e.name;a(t,i,n,o,r)})),r.appendChild(i);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getTrunkBlobUrl",value:function(n,o){return e(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.enableBlob){e.next=6;break}return e.next=3,dp.all(n.map((function(e){var n=e.url,r=e.lazyContent;if(a.codeBlobMap.get(n))return dp.resolve(null);var i=new t;return a.codeBlobMap.set(n,i),r.then((function(e){return a.getBlobUrl(e.default,o)})).then((function(e){i.resolve(e)})).catch((function(e){i.reject(e),a.codeBlobMap.delete(n)}))})));case 3:return e.abrupt("return",dp.all(n.map((function(e){var t=e.url,n=e.attrs,o=e.name;return a.codeBlobMap.get(t).promise.then((function(e){return{url:e,attrs:n,name:o}}))}))));case 6:return e.abrupt("return",dp.all(n.map((function(e){var t=e.lazyContent,n=e.attrs,o=e.name;return t.then((function(e){return{url:e.default,attrs:n,name:o}}))}))));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"getBlobUrl",value:function(e,t){var n=new Blob([e],{type:t});return URL.createObjectURL(n)}}]),n}();w.ping();var hp="__$ZCB_GLOBAL_PURE_WINDOW$__",mp=function(){var e=!1;return new dp((function(t){var n=document.createElement("iframe");n.addEventListener("load",(function(){var a,r,i=document.getElementById("zcb-sdk-polyfill");if(i&&i.textContent){var s=null===(a=n.contentWindow)||void 0===a?void 0:a.document.createElement("script");s&&(s.id="zcb-sdk-iframe-polyfill",s.textContent=i.textContent,null===(r=n.contentWindow)||void 0===r||r.document.head.appendChild(s))}clearTimeout(o),window[hp]=n.contentWindow,e||(e=!0,t(n.contentWindow))})),n.src="about:blank",n.style.display="none",document.head.appendChild(n);var o=setTimeout((function(){window[hp]||e||(console.warn("initGlobalCacheWindow timeout, fallback to window"),window[hp]=window,clearTimeout(o),document.head.removeChild(n),t(window))}),1e4)}))},gp=function(){function e(t,n){_classCallCheck(this,e),this.sessionInfo=t,this.metaInfo=n,this.isViewer=!0}return _createClass(e,[{key:"sessionId",get:function(){var e;return(null===(e=this.sessionInfo)||void 0===e?void 0:e.session_id)||""}},{key:"sdkVersion",get:function(){var e;return(null===(e=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.sdkVersion)||""}},{key:"domain",get:function(){return this.metaInfo.zoomHostName}},{key:"appKey",get:function(){return this.metaInfo.appKey}},{key:"authToken",get:function(){var e,t;return(null===(t=null===(e=this.sessionInfo)||void 0===e?void 0:e.current_user)||void 0===t?void 0:t.auth_token)||""}}]),e}(),fp="ZoomCobrowseAgentPortal",vp=function(n){_inherits(a,n);var o=_createSuper(a);function a(e){var n;return _classCallCheck(this,a),a.instance?_possibleConstructorReturn(n,a.instance):((n=o.call(this,e)).initPromise=new t,n.sdkVersion="2.9.0",a.instance=_assertThisInitialized(n),window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT=new gp(null,n.getMetaInfo()),_possibleConstructorReturn(n,_assertThisInitialized(n)))}return _createClass(a,[{key:"getMetaInfo",value:function(){var e=this.options||{};return{appKey:e.appKey,zoomHostName:e.zoomHostName}}},{key:"fullScriptsSrc",get:function(){return[{name:"zcb-sdk-client-agent",url:"./sdk-client-agent",lazyContent:Promise.resolve().then((function(){return bp}))}]}},{key:"polyfillSrc",get:function(){return[{name:"zcb-sdk-polyfill",url:"./sdk-polyfill",lazyContent:Promise.resolve().then((function(){return _p}))}]}},{key:"initCallback",value:function(t){return e(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var n=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.appendByFragment(this.doc,this.polyfillSrc,lp.JS,this.addScript.bind(this),this.doc.head);case 2:return e.next=4,mp();case 4:if(!t){e.next=7;break}return e.next=7,dp.all([this.appendByFragment(this.doc,this.fullScriptsSrc,lp.JS,this.addScript.bind(this),this.doc.head)]).then((function(){n.initPromise.resolve(!0)}));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"outerFrameScript",get:function(){return[{name:"zcb-sdk-channel",url:"./sdk-channel",lazyContent:Promise.resolve().then((function(){return kp}))},{name:"zcb-sdk-controller",url:"./sdk-controller",lazyContent:Promise.resolve().then((function(){return wp}))},{name:"zcb-sdk-portal-agent",url:"./sdk-portal-agent",lazyContent:Promise.resolve().then((function(){return Sp