trtc-cloud-js-sdk
Version:
Tencent Cloud RTC SDK for Web And Electron
1 lines • 182 kB
JavaScript
!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("trtc-sdk-v5"),require("trtc-sdk-v5/plugins/video-effect/virtual-background")):"function"==typeof define&&define.amd?define(["exports","trtc-sdk-v5","trtc-sdk-v5/plugins/video-effect/virtual-background"],e):e((A="undefined"!=typeof globalThis?globalThis:A||self).TRTCCloud={},A.TRTC,A.virtualBackground)}(this,(function(A,e,t){function r(A){return A&&"object"==typeof A&&"default"in A?A:{default:A}}var i=r(e),o=function(A,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},o(A,e)};var n=function(){return n=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i]);return A},n.apply(this,arguments)};function g(A,e,t,r){return new(t||(t=Promise))((function(i,o){function n(A){try{a(r.next(A))}catch(e){o(e)}}function g(A){try{a(r.throw(A))}catch(e){o(e)}}function a(A){var e;A.done?i(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(n,g)}a((r=r.apply(A,e||[])).next())}))}function a(A,e){var t,r,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:g(0),throw:g(1),return:g(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function g(g){return function(a){return function(g){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,g[0]&&(n=0)),n;)try{if(t=1,r&&(i=2&g[0]?r.return:g[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,g[1])).done)return i;switch(r=0,i&&(g=[2&g[0],i.value]),g[0]){case 0:case 1:i=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,r=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==g[0]&&2!==g[0])){n=0;continue}if(3===g[0]&&(!i||g[1]>i[0]&&g[1]<i[3])){n.label=g[1];break}if(6===g[0]&&n.label<i[1]){n.label=i[1],i=g;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(g);break}i[2]&&n.ops.pop(),n.trys.pop();continue}g=e.call(A,n)}catch(a){g=[6,a],r=0}finally{t=i=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,a])}}}function s(A,e,t){if(t||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return A.concat(r||Array.prototype.slice.call(e))}var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(A,e){return A(e={exports:{}},e.exports),e.exports}var B,c,Q,u,E,l,d,h,y=C((function(A){var e=Object.prototype.hasOwnProperty,t="~";function r(){}function i(A,e,t){this.fn=A,this.context=e,this.once=t||!1}function o(A,e,r,o,n){if("function"!=typeof r)throw new TypeError("The listener must be a function");var g=new i(r,o||A,n),a=t?t+e:e;return A._events[a]?A._events[a].fn?A._events[a]=[A._events[a],g]:A._events[a].push(g):(A._events[a]=g,A._eventsCount++),A}function n(A,e){0==--A._eventsCount?A._events=new r:delete A._events[e]}function g(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(t=!1)),g.prototype.eventNames=function(){var A,r,i=[];if(0===this._eventsCount)return i;for(r in A=this._events)e.call(A,r)&&i.push(t?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(A)):i},g.prototype.listeners=function(A){var e=t?t+A:A,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,n=new Array(o);i<o;i++)n[i]=r[i].fn;return n},g.prototype.listenerCount=function(A){var e=t?t+A:A,r=this._events[e];return r?r.fn?1:r.length:0},g.prototype.emit=function(A,e,r,i,o,n){var g=t?t+A:A;if(!this._events[g])return!1;var a,s,I=this._events[g],C=arguments.length;if(I.fn){switch(I.once&&this.removeListener(A,I.fn,void 0,!0),C){case 1:return I.fn.call(I.context),!0;case 2:return I.fn.call(I.context,e),!0;case 3:return I.fn.call(I.context,e,r),!0;case 4:return I.fn.call(I.context,e,r,i),!0;case 5:return I.fn.call(I.context,e,r,i,o),!0;case 6:return I.fn.call(I.context,e,r,i,o,n),!0}for(s=1,a=new Array(C-1);s<C;s++)a[s-1]=arguments[s];I.fn.apply(I.context,a)}else{var B,c=I.length;for(s=0;s<c;s++)switch(I[s].once&&this.removeListener(A,I[s].fn,void 0,!0),C){case 1:I[s].fn.call(I[s].context);break;case 2:I[s].fn.call(I[s].context,e);break;case 3:I[s].fn.call(I[s].context,e,r);break;case 4:I[s].fn.call(I[s].context,e,r,i);break;default:if(!a)for(B=1,a=new Array(C-1);B<C;B++)a[B-1]=arguments[B];I[s].fn.apply(I[s].context,a)}}return!0},g.prototype.on=function(A,e,t){return o(this,A,e,t,!1)},g.prototype.once=function(A,e,t){return o(this,A,e,t,!0)},g.prototype.removeListener=function(A,e,r,i){var o=t?t+A:A;if(!this._events[o])return this;if(!e)return n(this,o),this;var g=this._events[o];if(g.fn)g.fn!==e||i&&!g.once||r&&g.context!==r||n(this,o);else{for(var a=0,s=[],I=g.length;a<I;a++)(g[a].fn!==e||i&&!g[a].once||r&&g[a].context!==r)&&s.push(g[a]);s.length?this._events[o]=1===s.length?s[0]:s:n(this,o)}return this},g.prototype.removeAllListeners=function(A){var e;return A?(e=t?t+A:A,this._events[e]&&n(this,e)):(this._events=new r,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prefixed=t,g.EventEmitter=g,A.exports=g}));A.TRTCVideoResolution=void 0,(B=A.TRTCVideoResolution||(A.TRTCVideoResolution={}))[B.TRTCVideoResolution_120_120=1]="TRTCVideoResolution_120_120",B[B.TRTCVideoResolution_160_160=3]="TRTCVideoResolution_160_160",B[B.TRTCVideoResolution_270_270=5]="TRTCVideoResolution_270_270",B[B.TRTCVideoResolution_480_480=7]="TRTCVideoResolution_480_480",B[B.TRTCVideoResolution_160_120=50]="TRTCVideoResolution_160_120",B[B.TRTCVideoResolution_240_180=52]="TRTCVideoResolution_240_180",B[B.TRTCVideoResolution_280_210=54]="TRTCVideoResolution_280_210",B[B.TRTCVideoResolution_320_240=56]="TRTCVideoResolution_320_240",B[B.TRTCVideoResolution_400_300=58]="TRTCVideoResolution_400_300",B[B.TRTCVideoResolution_480_360=60]="TRTCVideoResolution_480_360",B[B.TRTCVideoResolution_640_480=62]="TRTCVideoResolution_640_480",B[B.TRTCVideoResolution_960_720=64]="TRTCVideoResolution_960_720",B[B.TRTCVideoResolution_160_90=100]="TRTCVideoResolution_160_90",B[B.TRTCVideoResolution_256_144=102]="TRTCVideoResolution_256_144",B[B.TRTCVideoResolution_320_180=104]="TRTCVideoResolution_320_180",B[B.TRTCVideoResolution_480_270=106]="TRTCVideoResolution_480_270",B[B.TRTCVideoResolution_640_360=108]="TRTCVideoResolution_640_360",B[B.TRTCVideoResolution_960_540=110]="TRTCVideoResolution_960_540",B[B.TRTCVideoResolution_1280_720=112]="TRTCVideoResolution_1280_720",B[B.TRTCVideoResolution_1920_1080=114]="TRTCVideoResolution_1920_1080",A.TRTCVideoStreamType=void 0,(c=A.TRTCVideoStreamType||(A.TRTCVideoStreamType={}))[c.TRTCVideoStreamTypeBig=0]="TRTCVideoStreamTypeBig",c[c.TRTCVideoStreamTypeSmall=1]="TRTCVideoStreamTypeSmall",c[c.TRTCVideoStreamTypeSub=2]="TRTCVideoStreamTypeSub",A.TRTCVideoFillMode=void 0,(Q=A.TRTCVideoFillMode||(A.TRTCVideoFillMode={}))[Q.TRTCVideoFillMode_Fill=0]="TRTCVideoFillMode_Fill",Q[Q.TRTCVideoFillMode_Fit=1]="TRTCVideoFillMode_Fit",A.TRTCVideoMirrorType=void 0,(u=A.TRTCVideoMirrorType||(A.TRTCVideoMirrorType={}))[u.TRTCVideoMirrorType_Auto=0]="TRTCVideoMirrorType_Auto",u[u.TRTCVideoMirrorType_Enable=1]="TRTCVideoMirrorType_Enable",u[u.TRTCVideoMirrorType_Disable=2]="TRTCVideoMirrorType_Disable",A.TRTCBeautyStyle=void 0,(E=A.TRTCBeautyStyle||(A.TRTCBeautyStyle={}))[E.TRTCBeautyStyleSmooth=0]="TRTCBeautyStyleSmooth",E[E.TRTCBeautyStyleNature=1]="TRTCBeautyStyleNature",A.TRTCAppScene=void 0,(l=A.TRTCAppScene||(A.TRTCAppScene={}))[l.TRTCAppSceneVideoCall=0]="TRTCAppSceneVideoCall",l[l.TRTCAppSceneLIVE=1]="TRTCAppSceneLIVE",l[l.TRTCAppSceneAudioCall=2]="TRTCAppSceneAudioCall",l[l.TRTCAppSceneVoiceChatRoom=3]="TRTCAppSceneVoiceChatRoom",A.TRTCRoleType=void 0,(d=A.TRTCRoleType||(A.TRTCRoleType={}))[d.TRTCRoleAnchor=20]="TRTCRoleAnchor",d[d.TRTCRoleAudience=21]="TRTCRoleAudience",A.TRTCAudioQuality=void 0,(h=A.TRTCAudioQuality||(A.TRTCAudioQuality={}))[h.TRTCAudioQualitySpeech=1]="TRTCAudioQualitySpeech",h[h.TRTCAudioQualityDefault=2]="TRTCAudioQualityDefault",h[h.TRTCAudioQualityMusic=3]="TRTCAudioQualityMusic";var p,f,T=function(A,e,t,r,i){void 0===A&&(A=""),void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r=""),void 0===i&&(i=""),this.deviceId=A,this.deviceName=e,this.kind=t,this.label=r,this.groupId=i};A.TRTCDeviceState=void 0,(p=A.TRTCDeviceState||(A.TRTCDeviceState={}))[p.TRTCDeviceStateAdd=0]="TRTCDeviceStateAdd",p[p.TRTCDeviceStateRemove=1]="TRTCDeviceStateRemove",p[p.TRTCDeviceStateActive=2]="TRTCDeviceStateActive",A.TRTCDeviceType=void 0,(f=A.TRTCDeviceType||(A.TRTCDeviceType={}))[f.TRTCDeviceTypeUnknow=-1]="TRTCDeviceTypeUnknow",f[f.TRTCDeviceTypeMic=0]="TRTCDeviceTypeMic",f[f.TRTCDeviceTypeSpeaker=1]="TRTCDeviceTypeSpeaker",f[f.TRTCDeviceTypeCamera=2]="TRTCDeviceTypeCamera";var R,v=function(e,t,r,i,o,n,g,a,s,I,C){void 0===e&&(e=0),void 0===t&&(t=""),void 0===r&&(r=""),void 0===i&&(i=0),void 0===o&&(o=""),void 0===n&&(n=A.TRTCRoleType.TRTCRoleAnchor),void 0===g&&(g=null),void 0===s&&(s=null),void 0===I&&(I=null),void 0===C&&(C=30),this.sdkAppId=e,this.userId=t,this.userSig=r,this.roomId=i,this.strRoomId=o,this.role=n,this.privateMapKey=g,this.streamId=s,this.userDefineRecordId=I,this.frameWorkType=C},w=function(e,t,r,i){void 0===e&&(e=A.TRTCVideoResolution.TRTCVideoResolution_640_360),void 0===t&&(t=A.TRTCVideoResolutionMode.TRTCVideoResolutionModeLandscape),void 0===r&&(r=15),void 0===i&&(i=550),this.videoResolution=e,this.resMode=t,this.videoFps=r,this.videoBitrate=i};A.TRTCVideoRotation=void 0,(R=A.TRTCVideoRotation||(A.TRTCVideoRotation={}))[R.TRTCVideoRotation0=0]="TRTCVideoRotation0",R[R.TRTCVideoRotation90=1]="TRTCVideoRotation90",R[R.TRTCVideoRotation180=2]="TRTCVideoRotation180",R[R.TRTCVideoRotation270=3]="TRTCVideoRotation270";var D,m=function(e,t,r){void 0===e&&(e=A.TRTCVideoRotation.TRTCVideoRotation0),void 0===t&&(t=A.TRTCVideoFillMode.TRTCVideoFillMode_Fit),void 0===r&&(r=A.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable),this.rotation=e,this.fillMode=t,this.mirrorType=r};A.TRTCQuality=void 0,(D=A.TRTCQuality||(A.TRTCQuality={}))[D.TRTCQuality_Unknown=0]="TRTCQuality_Unknown",D[D.TRTCQuality_Excellent=1]="TRTCQuality_Excellent",D[D.TRTCQuality_Good=2]="TRTCQuality_Good",D[D.TRTCQuality_Poor=3]="TRTCQuality_Poor",D[D.TRTCQuality_Bad=4]="TRTCQuality_Bad",D[D.TRTCQuality_Vbad=5]="TRTCQuality_Vbad",D[D.TRTCQuality_Down=6]="TRTCQuality_Down";var S,G,M,b=function(e,t){void 0===e&&(e=""),void 0===t&&(t=A.TRTCQuality.TRTCQuality_Unknown),this.userId=e,this.quality=t},N=function(A,e){void 0===A&&(A=""),void 0===e&&(e=0),this.userId=A,this.volume=e},L=function(A,e,t){void 0===A&&(A=0),void 0===e&&(e=0),void 0===t&&(t=null),this.appId=A,this.bizId=e,this.url=t},F=function(e,t,r,i,o,n,g){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===g&&(g=A.TRTCVideoStreamType.TRTCVideoStreamTypeBig),this.width=e,this.height=t,this.frameRate=r,this.videoBitrate=i,this.audioBitrate=n,this.streamType=g},_=function(e,t,r,i,o,n,g,a,s,I,C,B,c,Q){void 0===e&&(e=""),void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===Q&&(Q=A.TRTCVideoStreamType.TRTCVideoStreamTypeBig),this.userId=e,this.width=r,this.height=i,this.frameRate=o,this.videoBitrate=n,this.audioBitrate=a,this.streamType=Q},k=function(A,e,t,r,i,o,n,g,a,s,I){void 0===A&&(A=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===g&&(g=[]),void 0===a&&(a=0),void 0===s&&(s=[]),void 0===I&&(I=0),this.upLoss=A,this.downLoss=e,this.rtt=i,this.receivedBytes=o,this.sentBytes=n,this.localStatisticsArray=g,this.localStatisticsArraySize=a,this.remoteStatisticsArray=s,this.remoteStatisticsArraySize=I};A.TRTCVideoResolutionMode=void 0,(S=A.TRTCVideoResolutionMode||(A.TRTCVideoResolutionMode={}))[S.TRTCVideoResolutionModeLandscape=0]="TRTCVideoResolutionModeLandscape",S[S.TRTCVideoResolutionModePortrait=1]="TRTCVideoResolutionModePortrait",A.TRTCVideoQosPreference=void 0,(G=A.TRTCVideoQosPreference||(A.TRTCVideoQosPreference={}))[G.TRTCVideoQosPreferenceSmooth=1]="TRTCVideoQosPreferenceSmooth",G[G.TRTCVideoQosPreferenceClear=2]="TRTCVideoQosPreferenceClear",A.TRTCQosControlMode=void 0,(M=A.TRTCQosControlMode||(A.TRTCQosControlMode={}))[M.TRTCQosControlModeClient=0]="TRTCQosControlModeClient",M[M.TRTCQosControlModeServer=1]="TRTCQosControlModeServer";var Y,V,U=function(e,t){void 0===e&&(e=A.TRTCVideoQosPreference.TRTCVideoQosPreferenceClear),void 0===t&&(t=A.TRTCQosControlMode.TRTCQosControlModeServer),this.preference=e,this.controlMode=t},P=function(A,e,t,r){void 0===A&&(A=new ArrayBuffer(0)),void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),this.buffer=A,this.length=e,this.width=t,this.height=r};A.TRTCLogLevel=void 0,(Y=A.TRTCLogLevel||(A.TRTCLogLevel={}))[Y.TRTCLogLevelVerbose=0]="TRTCLogLevelVerbose",Y[Y.TRTCLogLevelDebug=1]="TRTCLogLevelDebug",Y[Y.TRTCLogLevelInfo=2]="TRTCLogLevelInfo",Y[Y.TRTCLogLevelWarn=3]="TRTCLogLevelWarn",Y[Y.TRTCLogLevelError=4]="TRTCLogLevelError",Y[Y.TRTCLogLevelFatal=5]="TRTCLogLevelFatal",Y[Y.TRTCLogLevelNone=6]="TRTCLogLevelNone",A.TRTCScreenCaptureSourceType=void 0,(V=A.TRTCScreenCaptureSourceType||(A.TRTCScreenCaptureSourceType={}))[V.TRTCScreenCaptureSourceTypeUnknown=-1]="TRTCScreenCaptureSourceTypeUnknown",V[V.TRTCScreenCaptureSourceTypeWindow=0]="TRTCScreenCaptureSourceTypeWindow",V[V.TRTCScreenCaptureSourceTypeScreen=1]="TRTCScreenCaptureSourceTypeScreen",V[V.TRTCScreenCaptureSourceTypeCustom=2]="TRTCScreenCaptureSourceTypeCustom";var J,H=function(e,t,r,i,o,n){void 0===e&&(e=A.TRTCScreenCaptureSourceType.TRTCScreenCaptureSourceTypeUnknown),void 0===t&&(t=""),void 0===r&&(r=""),void 0===i&&(i=new P),void 0===o&&(o=new P),void 0===n&&(n=!1),this.type=e,this.sourceId=t,this.sourceName=r,this.thumbBGRA=i,this.iconBGRA=o,this.isMinimizeWindow=n},K=function(A,e,t,r){void 0===A&&(A=0),void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),this.left=A,this.top=e,this.right=t,this.bottom=r},O=function(e,t,r,i,o,n,g,a,s,I,C,B,c,Q,u){void 0===e&&(e=A.TRTCTranscodingConfigMode.TRTCTranscodingConfigMode_Unknown),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===g&&(g=15),void 0===a&&(a=2),void 0===s&&(s=0),void 0===I&&(I=""),void 0===C&&(C=64),void 0===B&&(B=48e3),void 0===c&&(c=1),void 0===Q&&(Q=[]),void 0===u&&(u=""),this.mode=e,this.appId=t,this.bizId=r,this.videoWidth=i,this.videoHeight=o,this.videoBitrate=n,this.videoFramerate=g,this.videoGOP=a,this.backgroundColor=s,this.backgroundImage=I,this.audioSampleRate=C,this.audioBitrate=B,this.audioChannels=c,this.mixUsersArray=Q,this.mixUsersArraySize=Q.length,this.streamId=u};A.TRTCTranscodingConfigMode=void 0,(J=A.TRTCTranscodingConfigMode||(A.TRTCTranscodingConfigMode={}))[J.TRTCTranscodingConfigMode_Unknown=0]="TRTCTranscodingConfigMode_Unknown",J[J.TRTCTranscodingConfigMode_Manual=1]="TRTCTranscodingConfigMode_Manual",J[J.TRTCTranscodingConfigMode_Template_PureAudio=2]="TRTCTranscodingConfigMode_Template_PureAudio",J[J.TRTCTranscodingConfigMode_Template_PresetLayout=3]="TRTCTranscodingConfigMode_Template_PresetLayout",J[J.TRTCTranscodingConfigMode_Template_ScreenSharing=4]="TRTCTranscodingConfigMode_Template_ScreenSharing",J[J.TRTC_TranscodingConfigMode_Unknown=5]="TRTC_TranscodingConfigMode_Unknown",J[J.TRTC_TranscodingConfigMode_Manual=6]="TRTC_TranscodingConfigMode_Manual",J[J.TRTC_TranscodingConfigMode_Template_PureAudio=7]="TRTC_TranscodingConfigMode_Template_PureAudio",J[J.TRTC_TranscodingConfigMode_Template_PresetLayout=8]="TRTC_TranscodingConfigMode_Template_PresetLayout",J[J.TRTC_TranscodingConfigMode_Template_ScreenSharing=9]="TRTC_TranscodingConfigMode_Template_ScreenSharing";var x,j=function(e,t,r,i,o,n,g,a){void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r=null),void 0===i&&(i=0),void 0===o&&(o=!1),void 0===n&&(n=A.TRTCVideoStreamType.TRTCVideoStreamTypeBig),void 0===g&&(g=A.TRTCMixInputType.TRTCMixInputTypeUndefined),void 0===a&&(a=0),this.userId=e,this.roomId=t,this.rect=r,this.zOrder=i,this.pureAudio=o,this.streamType=n,this.inputType=g,this.renderMode=a};A.TRTCMixInputType=void 0,(x=A.TRTCMixInputType||(A.TRTCMixInputType={}))[x.TRTCMixInputTypeUndefined=0]="TRTCMixInputTypeUndefined",x[x.TRTCMixInputTypeAudioVideo=1]="TRTCMixInputTypeAudioVideo",x[x.TRTCMixInputTypePureVideo=2]="TRTCMixInputTypePureVideo",x[x.TRTCMixInputTypePureAudio=3]="TRTCMixInputTypePureAudio";var Z,W="onError",z="onWarning",q="rtc",X="live",$="VirtualBackground",AA="BasicBeauty",eA="blur",tA="image",rA={20:"anchor",21:"audience"},iA={0:q,1:X,2:q,3:X};!function(A){A[A.ActiveExitRoom=0]="ActiveExitRoom",A[A.KickedExitRoom=1]="KickedExitRoom"}(Z||(Z={}));var oA="enum";function nA(){return Math.floor(performance.now())}var gA=function(A){return void 0===A},aA=function(A){return"number"==typeof A},sA=function(A){return"boolean"==typeof A};function IA(A){if("string"!=typeof A)return A;var e;try{var t=JSON.parse(A);e="object"==typeof t&&t?t:A}catch(r){e=A}return e}var CA,BA,cA=function(A){return A&&A.Math===Math&&A},QA=cA("object"==typeof globalThis&&globalThis)||cA("object"==typeof window&&window)||cA("object"==typeof self&&self)||cA("object"==typeof I&&I)||function(){return this}()||I||Function("return this")(),uA=function(A){try{return!!A()}catch(e){return!0}},EA=!uA((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),lA=!uA((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")})),dA=Function.prototype.call,hA=lA?dA.bind(dA):function(){return dA.apply(dA,arguments)},yA={}.propertyIsEnumerable,pA=Object.getOwnPropertyDescriptor,fA={f:pA&&!yA.call({1:2},1)?function(A){var e=pA(this,A);return!!e&&e.enumerable}:yA},TA=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}},RA=Function.prototype,vA=RA.call,wA=lA&&RA.bind.bind(vA,vA),DA=lA?wA:function(A){return function(){return vA.apply(A,arguments)}},mA=DA({}.toString),SA=DA("".slice),GA=function(A){return SA(mA(A),8,-1)},MA=Object,bA=DA("".split),NA=uA((function(){return!MA("z").propertyIsEnumerable(0)}))?function(A){return"String"===GA(A)?bA(A,""):MA(A)}:MA,LA=function(A){return null==A},FA=TypeError,_A=function(A){if(LA(A))throw FA("Can't call method on "+A);return A},kA=function(A){return NA(_A(A))},YA="object"==typeof document&&document.all,VA={all:YA,IS_HTMLDDA:void 0===YA&&void 0!==YA},UA=VA.all,PA=VA.IS_HTMLDDA?function(A){return"function"==typeof A||A===UA}:function(A){return"function"==typeof A},JA=VA.all,HA=VA.IS_HTMLDDA?function(A){return"object"==typeof A?null!==A:PA(A)||A===JA}:function(A){return"object"==typeof A?null!==A:PA(A)},KA=function(A,e){return arguments.length<2?(t=QA[A],PA(t)?t:void 0):QA[A]&&QA[A][e];var t},OA=DA({}.isPrototypeOf),xA="undefined"!=typeof navigator&&String(navigator.userAgent)||"",jA=QA.process,ZA=QA.Deno,WA=jA&&jA.versions||ZA&&ZA.version,zA=WA&&WA.v8;zA&&(BA=(CA=zA.split("."))[0]>0&&CA[0]<4?1:+(CA[0]+CA[1])),!BA&&xA&&(!(CA=xA.match(/Edge\/(\d+)/))||CA[1]>=74)&&(CA=xA.match(/Chrome\/(\d+)/))&&(BA=+CA[1]);var qA=BA,XA=QA.String,$A=!!Object.getOwnPropertySymbols&&!uA((function(){var A=Symbol("symbol detection");return!XA(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&qA&&qA<41})),Ae=$A&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=Object,te=Ae?function(A){return"symbol"==typeof A}:function(A){var e=KA("Symbol");return PA(e)&&OA(e.prototype,ee(A))},re=String,ie=TypeError,oe=function(A){if(PA(A))return A;throw ie(function(A){try{return re(A)}catch(e){return"Object"}}(A)+" is not a function")},ne=function(A,e){var t=A[e];return LA(t)?void 0:oe(t)},ge=TypeError,ae=Object.defineProperty,se=function(A,e){try{ae(QA,A,{value:e,configurable:!0,writable:!0})}catch(t){QA[A]=e}return e},Ie="__core-js_shared__",Ce=QA[Ie]||se(Ie,{}),Be=C((function(A){(A.exports=function(A,e){return Ce[A]||(Ce[A]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ce=Object,Qe=function(A){return ce(_A(A))},ue=DA({}.hasOwnProperty),Ee=Object.hasOwn||function(A,e){return ue(Qe(A),e)},le=0,de=Math.random(),he=DA(1..toString),ye=function(A){return"Symbol("+(void 0===A?"":A)+")_"+he(++le+de,36)},pe=QA.Symbol,fe=Be("wks"),Te=Ae?pe.for||pe:pe&&pe.withoutSetter||ye,Re=function(A){return Ee(fe,A)||(fe[A]=$A&&Ee(pe,A)?pe[A]:Te("Symbol."+A)),fe[A]},ve=TypeError,we=Re("toPrimitive"),De=function(A,e){if(!HA(A)||te(A))return A;var t,r=ne(A,we);if(r){if(void 0===e&&(e="default"),t=hA(r,A,e),!HA(t)||te(t))return t;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(A,e){var t,r;if("string"===e&&PA(t=A.toString)&&!HA(r=hA(t,A)))return r;if(PA(t=A.valueOf)&&!HA(r=hA(t,A)))return r;if("string"!==e&&PA(t=A.toString)&&!HA(r=hA(t,A)))return r;throw ge("Can't convert object to primitive value")}(A,e)},me=function(A){var e=De(A,"string");return te(e)?e:e+""},Se=QA.document,Ge=HA(Se)&&HA(Se.createElement),Me=function(A){return Ge?Se.createElement(A):{}},be=!EA&&!uA((function(){return 7!==Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),Ne=Object.getOwnPropertyDescriptor,Le={f:EA?Ne:function(A,e){if(A=kA(A),e=me(e),be)try{return Ne(A,e)}catch(t){}if(Ee(A,e))return TA(!hA(fA.f,A,e),A[e])}},Fe=EA&&uA((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_e=String,ke=TypeError,Ye=function(A){if(HA(A))return A;throw ke(_e(A)+" is not an object")},Ve=TypeError,Ue=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Je="enumerable",He="configurable",Ke="writable",Oe={f:EA?Fe?function(A,e,t){if(Ye(A),e=me(e),Ye(t),"function"==typeof A&&"prototype"===e&&"value"in t&&Ke in t&&!t[Ke]){var r=Pe(A,e);r&&r[Ke]&&(A[e]=t.value,t={configurable:He in t?t[He]:r[He],enumerable:Je in t?t[Je]:r[Je],writable:!1})}return Ue(A,e,t)}:Ue:function(A,e,t){if(Ye(A),e=me(e),Ye(t),be)try{return Ue(A,e,t)}catch(r){}if("get"in t||"set"in t)throw Ve("Accessors not supported");return"value"in t&&(A[e]=t.value),A}},xe=EA?function(A,e,t){return Oe.f(A,e,TA(1,t))}:function(A,e,t){return A[e]=t,A},je=Function.prototype,Ze=EA&&Object.getOwnPropertyDescriptor,We=Ee(je,"name"),ze={EXISTS:We,PROPER:We&&"something"===function(){}.name,CONFIGURABLE:We&&(!EA||EA&&Ze(je,"name").configurable)},qe=DA(Function.toString);PA(Ce.inspectSource)||(Ce.inspectSource=function(A){return qe(A)});var Xe,$e,At,et=Ce.inspectSource,tt=QA.WeakMap,rt=PA(tt)&&/native code/.test(String(tt)),it=Be("keys"),ot=function(A){return it[A]||(it[A]=ye(A))},nt={},gt="Object already initialized",at=QA.TypeError,st=QA.WeakMap;if(rt||Ce.state){var It=Ce.state||(Ce.state=new st);It.get=It.get,It.has=It.has,It.set=It.set,Xe=function(A,e){if(It.has(A))throw at(gt);return e.facade=A,It.set(A,e),e},$e=function(A){return It.get(A)||{}},At=function(A){return It.has(A)}}else{var Ct=ot("state");nt[Ct]=!0,Xe=function(A,e){if(Ee(A,Ct))throw at(gt);return e.facade=A,xe(A,Ct,e),e},$e=function(A){return Ee(A,Ct)?A[Ct]:{}},At=function(A){return Ee(A,Ct)}}var Bt={set:Xe,get:$e,has:At,enforce:function(A){return At(A)?$e(A):Xe(A,{})},getterFor:function(A){return function(e){var t;if(!HA(e)||(t=$e(e)).type!==A)throw at("Incompatible receiver, "+A+" required");return t}}},ct=C((function(A){var e=ze.CONFIGURABLE,t=Bt.enforce,r=Bt.get,i=String,o=Object.defineProperty,n=DA("".slice),g=DA("".replace),a=DA([].join),s=EA&&!uA((function(){return 8!==o((function(){}),"length",{value:8}).length})),I=String(String).split("String"),C=A.exports=function(A,r,C){"Symbol("===n(i(r),0,7)&&(r="["+g(i(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),C&&C.getter&&(r="get "+r),C&&C.setter&&(r="set "+r),(!Ee(A,"name")||e&&A.name!==r)&&(EA?o(A,"name",{value:r,configurable:!0}):A.name=r),s&&C&&Ee(C,"arity")&&A.length!==C.arity&&o(A,"length",{value:C.arity});try{C&&Ee(C,"constructor")&&C.constructor?EA&&o(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch(c){}var B=t(A);return Ee(B,"source")||(B.source=a(I,"string"==typeof r?r:"")),A};Function.prototype.toString=C((function(){return PA(this)&&r(this).source||et(this)}),"toString")})),Qt=function(A,e,t,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(PA(t)&&ct(t,o,r),r.global)i?A[e]=t:se(e,t);else{try{r.unsafe?A[e]&&(i=!0):delete A[e]}catch(n){}i?A[e]=t:Oe.f(A,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return A},ut=Math.ceil,Et=Math.floor,lt=Math.trunc||function(A){var e=+A;return(e>0?Et:ut)(e)},dt=function(A){var e=+A;return e!=e||0===e?0:lt(e)},ht=Math.max,yt=Math.min,pt=Math.min,ft=function(A){return A>0?pt(dt(A),9007199254740991):0},Tt=function(A){return ft(A.length)},Rt=function(A){return function(e,t,r){var i,o=kA(e),n=Tt(o),g=function(A,e){var t=dt(A);return t<0?ht(t+e,0):yt(t,e)}(r,n);if(A&&t!=t){for(;n>g;)if((i=o[g++])!=i)return!0}else for(;n>g;g++)if((A||g in o)&&o[g]===t)return A||g||0;return!A&&-1}},vt={includes:Rt(!0),indexOf:Rt(!1)}.indexOf,wt=DA([].push),Dt=function(A,e){var t,r=kA(A),i=0,o=[];for(t in r)!Ee(nt,t)&&Ee(r,t)&&wt(o,t);for(;e.length>i;)Ee(r,t=e[i++])&&(~vt(o,t)||wt(o,t));return o},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=mt.concat("length","prototype"),Gt={f:Object.getOwnPropertyNames||function(A){return Dt(A,St)}},Mt={f:Object.getOwnPropertySymbols},bt=DA([].concat),Nt=KA("Reflect","ownKeys")||function(A){var e=Gt.f(Ye(A)),t=Mt.f;return t?bt(e,t(A)):e},Lt=function(A,e,t){for(var r=Nt(e),i=Oe.f,o=Le.f,n=0;n<r.length;n++){var g=r[n];Ee(A,g)||t&&Ee(t,g)||i(A,g,o(e,g))}},Ft=/#|\.prototype\./,_t=function(A,e){var t=Yt[kt(A)];return t===Ut||t!==Vt&&(PA(e)?uA(e):!!e)},kt=_t.normalize=function(A){return String(A).replace(Ft,".").toLowerCase()},Yt=_t.data={},Vt=_t.NATIVE="N",Ut=_t.POLYFILL="P",Pt=_t,Jt=Le.f,Ht=function(A,e){var t,r,i,o,n,g=A.target,a=A.global,s=A.stat;if(t=a?QA:s?QA[g]||se(g,{}):(QA[g]||{}).prototype)for(r in e){if(o=e[r],i=A.dontCallGetSet?(n=Jt(t,r))&&n.value:t[r],!Pt(a?r:g+(s?".":"#")+r,A.forced)&&void 0!==i){if(typeof o==typeof i)continue;Lt(o,i)}(A.sham||i&&i.sham)&&xe(o,"sham",!0),Qt(t,r,o,A)}},Kt={};Kt[Re("toStringTag")]="z";var Ot,xt="[object z]"===String(Kt),jt=Re("toStringTag"),Zt=Object,Wt="Arguments"===GA(function(){return arguments}()),zt=xt?GA:function(A){var e,t,r;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=function(A,e){try{return A[e]}catch(t){}}(e=Zt(A),jt))?t:Wt?GA(e):"Object"===(r=GA(e))&&PA(e.callee)?"Arguments":r},qt=String,Xt=function(A){if("Symbol"===zt(A))throw TypeError("Cannot convert a Symbol value to a string");return qt(A)},$t=function(){var A=Ye(this),e="";return A.hasIndices&&(e+="d"),A.global&&(e+="g"),A.ignoreCase&&(e+="i"),A.multiline&&(e+="m"),A.dotAll&&(e+="s"),A.unicode&&(e+="u"),A.unicodeSets&&(e+="v"),A.sticky&&(e+="y"),e},Ar=QA.RegExp,er=uA((function(){var A=Ar("a","y");return A.lastIndex=2,null!==A.exec("abcd")})),tr=er||uA((function(){return!Ar("a","y").sticky})),rr={BROKEN_CARET:er||uA((function(){var A=Ar("^r","gy");return A.lastIndex=2,null!==A.exec("str")})),MISSED_STICKY:tr,UNSUPPORTED_Y:er},ir=Object.keys||function(A){return Dt(A,mt)},or=EA&&!Fe?Object.defineProperties:function(A,e){Ye(A);for(var t,r=kA(e),i=ir(e),o=i.length,n=0;o>n;)Oe.f(A,t=i[n++],r[t]);return A},nr={f:or},gr=KA("document","documentElement"),ar="prototype",sr="script",Ir=ot("IE_PROTO"),Cr=function(){},Br=function(A){return"<"+sr+">"+A+"</"+sr+">"},cr=function(A){A.write(Br("")),A.close();var e=A.parentWindow.Object;return A=null,e},Qr=function(){try{Ot=new ActiveXObject("htmlfile")}catch(i){}var A,e,t;Qr="undefined"!=typeof document?document.domain&&Ot?cr(Ot):(e=Me("iframe"),t="java"+sr+":",e.style.display="none",gr.appendChild(e),e.src=String(t),(A=e.contentWindow.document).open(),A.write(Br("document.F=Object")),A.close(),A.F):cr(Ot);for(var r=mt.length;r--;)delete Qr[ar][mt[r]];return Qr()};nt[Ir]=!0;var ur,Er,lr=Object.create||function(A,e){var t;return null!==A?(Cr[ar]=Ye(A),t=new Cr,Cr[ar]=null,t[Ir]=A):t=Qr(),void 0===e?t:nr.f(t,e)},dr=QA.RegExp,hr=uA((function(){var A=dr(".","s");return!(A.dotAll&&A.exec("\n")&&"s"===A.flags)})),yr=QA.RegExp,pr=uA((function(){var A=yr("(?<a>b)","g");return"b"!==A.exec("b").groups.a||"bc"!=="b".replace(A,"$<a>c")})),fr=Bt.get,Tr=Be("native-string-replace",String.prototype.replace),Rr=RegExp.prototype.exec,vr=Rr,wr=DA("".charAt),Dr=DA("".indexOf),mr=DA("".replace),Sr=DA("".slice),Gr=(Er=/b*/g,hA(Rr,ur=/a/,"a"),hA(Rr,Er,"a"),0!==ur.lastIndex||0!==Er.lastIndex),Mr=rr.BROKEN_CARET,br=void 0!==/()??/.exec("")[1];(Gr||br||Mr||hr||pr)&&(vr=function(A){var e,t,r,i,o,n,g,a=this,s=fr(a),I=Xt(A),C=s.raw;if(C)return C.lastIndex=a.lastIndex,e=hA(vr,C,I),a.lastIndex=C.lastIndex,e;var B=s.groups,c=Mr&&a.sticky,Q=hA($t,a),u=a.source,E=0,l=I;if(c&&(Q=mr(Q,"y",""),-1===Dr(Q,"g")&&(Q+="g"),l=Sr(I,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==wr(I,a.lastIndex-1))&&(u="(?: "+u+")",l=" "+l,E++),t=new RegExp("^(?:"+u+")",Q)),br&&(t=new RegExp("^"+u+"$(?!\\s)",Q)),Gr&&(r=a.lastIndex),i=hA(Rr,c?t:a,l),c?i?(i.input=Sr(i.input,E),i[0]=Sr(i[0],E),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:Gr&&i&&(a.lastIndex=a.global?i.index+i[0].length:r),br&&i&&i.length>1&&hA(Tr,i[0],t,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&B)for(i.groups=n=lr(null),o=0;o<B.length;o++)n[(g=B[o])[0]]=i[g[1]];return i});var Nr=vr;Ht({target:"RegExp",proto:!0,forced:/./.exec!==Nr},{exec:Nr});var Lr="\t\n\v\f\r \u2028\u2029\ufeff",Fr=DA("".replace),_r=RegExp("^["+Lr+"]+"),kr=RegExp("(^|[^"+Lr+"])["+Lr+"]+$"),Yr=function(A){return function(e){var t=Xt(_A(e));return 1&A&&(t=Fr(t,_r,"")),2&A&&(t=Fr(t,kr,"$1")),t}},Vr={start:Yr(1),end:Yr(2),trim:Yr(3)}.trim,Ur=DA("".charAt),Pr=QA.parseFloat,Jr=QA.Symbol,Hr=Jr&&Jr.iterator,Kr=1/Pr(Lr+"-0")!=-Infinity||Hr&&!uA((function(){Pr(Object(Hr))}))?function(A){var e=Vr(Xt(A)),t=Pr(e);return 0===t&&"-"===Ur(e,0)?-0:t}:Pr;Ht({global:!0,forced:parseFloat!==Kr},{parseFloat:Kr});var Or=function(A){if("Function"===GA(A))return DA(A)},xr=Re("species"),jr=RegExp.prototype,Zr=DA("".charAt),Wr=DA("".charCodeAt),zr=DA("".slice),qr=function(A){return function(e,t){var r,i,o=Xt(_A(e)),n=dt(t),g=o.length;return n<0||n>=g?A?"":void 0:(r=Wr(o,n))<55296||r>56319||n+1===g||(i=Wr(o,n+1))<56320||i>57343?A?Zr(o,n):r:A?zr(o,n,n+2):i-56320+(r-55296<<10)+65536}},Xr={codeAt:qr(!1),charAt:qr(!0)}.charAt,$r=function(A,e,t){return e+(t?Xr(A,e).length:1)},Ai=TypeError,ei=function(A,e){var t=A.exec;if(PA(t)){var r=hA(t,A,e);return null!==r&&Ye(r),r}if("RegExp"===GA(A))return hA(Nr,A,e);throw Ai("RegExp#exec called on incompatible receiver")};!function(A,e,t,r){var i=Re(A),o=!uA((function(){var e={};return e[i]=function(){return 7},7!==""[A](e)})),n=o&&!uA((function(){var e=!1,t=/a/;return"split"===A&&((t={}).constructor={},t.constructor[xr]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e}));if(!o||!n||t){var g=Or(/./[i]),a=e(i,""[A],(function(A,e,t,r,i){var n=Or(A),a=e.exec;return a===Nr||a===jr.exec?o&&!i?{done:!0,value:g(e,t,r)}:{done:!0,value:n(t,e,r)}:{done:!1}}));Qt(String.prototype,A,a[0]),Qt(jr,i,a[1])}r&&xe(jr[i],"sham",!0)}("match",(function(A,e,t){return[function(e){var t=_A(this),r=LA(e)?void 0:ne(e,A);return r?hA(r,e,t):new RegExp(e)[A](Xt(t))},function(A){var r=Ye(this),i=Xt(A),o=t(e,r,i);if(o.done)return o.value;if(!r.global)return ei(r,i);var n=r.unicode;r.lastIndex=0;for(var g,a=[],s=0;null!==(g=ei(r,i));){var I=Xt(g[0]);a[s]=I,""===I&&(r.lastIndex=$r(i,ft(r.lastIndex),n)),s++}return 0===s?null:a}]}));var ti=Array.isArray||function(A){return"Array"===GA(A)},ri=TypeError,ii=function(A){if(A>9007199254740991)throw ri("Maximum allowed index exceeded");return A},oi=function(A,e,t){var r=me(e);r in A?Oe.f(A,r,TA(0,t)):A[r]=t},ni=function(){},gi=[],ai=KA("Reflect","construct"),si=/^\s*(?:class|function)\b/,Ii=DA(si.exec),Ci=!si.exec(ni),Bi=function(A){if(!PA(A))return!1;try{return ai(ni,gi,A),!0}catch(e){return!1}},ci=function(A){if(!PA(A))return!1;switch(zt(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ci||!!Ii(si,et(A))}catch(e){return!0}};ci.sham=!0;var Qi,ui=!ai||uA((function(){var A;return Bi(Bi.call)||!Bi(Object)||!Bi((function(){A=!0}))||A}))?ci:Bi,Ei=Re("species"),li=Array,di=function(A,e){return new(function(A){var e;return ti(A)&&(e=A.constructor,(ui(e)&&(e===li||ti(e.prototype))||HA(e)&&null===(e=e[Ei]))&&(e=void 0)),void 0===e?li:e}(A))(0===e?0:e)},hi=Re("species"),yi=Re("isConcatSpreadable"),pi=qA>=51||!uA((function(){var A=[];return A[yi]=!1,A.concat()[0]!==A})),fi=function(A){if(!HA(A))return!1;var e=A[yi];return void 0!==e?!!e:ti(A)};Ht({target:"Array",proto:!0,arity:1,forced:!(pi&&(Qi="concat",qA>=51||!uA((function(){var A=[];return(A.constructor={})[hi]=function(){return{foo:1}},1!==A[Qi](Boolean).foo}))))},{concat:function(A){var e,t,r,i,o,n=Qe(this),g=di(n,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(fi(o=-1===e?n:arguments[e]))for(i=Tt(o),ii(a+i),t=0;t<i;t++,a++)t in o&&oi(g,a,o[t]);else ii(a+1),oi(g,a++,o);return g.length=a,g}});var Ti=window.navigator&&window.navigator.userAgent||"",Ri=/AppleWebKit\/([\d.]+)/i.exec(Ti);Ri&&parseFloat(Ri.pop());var vi=/iPad/i.test(Ti),wi=/iPhone/i.test(Ti)&&!vi,Di=/iPod/i.test(Ti),mi=wi||vi||Di,Si=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(Ti);mi&&function(){var A=Ti.match(/OS (\d+)_/i);A&&A[1]&&A[1]}();var Gi=/Android/i.test(Ti);Gi&&function(){var A=Ti.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!A)return null;var e=A[1]&&parseFloat(A[1]),t=A[2]&&parseFloat(A[2]);e&&t&&parseFloat("".concat(A[1],".").concat(A[2]))}();Gi&&/webkit/i.test(Ti),/Firefox/i.test(Ti)&&function(){var A=Ti.match(/Firefox\/(\d+)/);A&&A[1]&&parseFloat(A[1])}();var Mi=/Edge\//i.test(Ti);Mi&&function(){var A=Ti.match(/Edge\/(\d+)/i);if(A&&A[1])A[1]}();var bi=/Edg\//i.test(Ti);bi&&function(){var A=Ti.match(/Edg\/(\d+)/);A&&A[1]&&parseFloat(A[1])}();var Ni=/SogouMobileBrowser\//i.test(Ti);Ni&&function(){var A=Ti.match(/SogouMobileBrowser\/(\d+)/);A&&A[1]&&parseFloat(A[1])}();var Li=/MetaSr\s/i.test(Ti);Li&&function(){var A=Ti.match(/MetaSr(\s\d+(\.\d+)+)/);A&&A[1]&&parseFloat(A[1])}();var Fi=/TBS\/\d+/i.test(Ti);Fi&&function(){var A=Ti.match(/TBS\/(\d+)/i);if(A&&A[1])A[1]}();var _i=/XWEB\/\d+/i.test(Ti);_i&&function(){var A=Ti.match(/XWEB\/(\d+)/i);if(A&&A[1])A[1]}(),/MSIE\s8\.0/.test(Ti),/MSIE\/\d+/i.test(Ti)&&function(){var A=/MSIE\s(\d+)\.\d/.exec(Ti),e=A&&parseFloat(A[1]);!e&&/Trident\/7.0/i.test(Ti)&&/rv:11.0/.test(Ti)&&(e=11)}(),/(micromessenger|webbrowser)/i.test(Ti)&&function(){var A=Ti.match(/MicroMessenger\/(\d+)/i);if(A&&A[1])A[1]}();var ki=!Fi&&/MQQBrowser\/\d+/i.test(Ti)&&/COVC\/\d+/i.test(Ti),Yi=!Fi&&/MQQBrowser\/\d+/i.test(Ti)&&!/COVC\/\d+/i.test(Ti);(Yi||ki)&&function(){var A=Ti.match(/ MQQBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var Vi=!Fi&&/ QQBrowser\/\d+/i.test(Ti);Vi&&function(){var A=Ti.match(/ QQBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var Ui=!Fi&&/QQBrowserLite\/\d+/i.test(Ti);Ui&&function(){var A=Ti.match(/QQBrowserLite\/([\d.]+)/);A&&A[1]&&A[1]}();var Pi=!Fi&&/MQBHD\/\d+/i.test(Ti);Pi&&function(){var A=Ti.match(/MQBHD\/([\d.]+)/);A&&A[1]&&A[1]}(),/Windows/i.test(Ti),!mi&&/MAC OS X/i.test(Ti),!Gi&&/Linux/i.test(Ti),/MicroMessenger/i.test(Ti),/UCBrowser/i.test(Ti),/Electron/i.test(Ti);var Ji=/MiuiBrowser/i.test(Ti);Ji&&function(){var A=Ti.match(/MiuiBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var Hi=/HuaweiBrowser/i.test(Ti);/Huawei/i.test(Ti),Hi&&function(){var A=Ti.match(/HuaweiBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var Ki=/SamsungBrowser/i.test(Ti);Ki&&function(){var A=Ti.match(/SamsungBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var Oi=/HeyTapBrowser/i.test(Ti);Oi&&function(){var A=Ti.match(/HeyTapBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var xi=/VivoBrowser/i.test(Ti);xi&&function(){var A=Ti.match(/VivoBrowser\/([\d.]+)/);A&&A[1]&&A[1]}();var ji,Zi,Wi,zi=/Chrome/i.test(Ti),qi=!Mi&&!Li&&!Ni&&!Fi&&!_i&&!bi&&!Vi&&!Ji&&!Hi&&!Ki&&!Oi&&!xi&&/Chrome/i.test(Ti);qi&&function(){var A=Ti.match(/Chrome\/(\d+)/);A&&A[1]&&parseFloat(A[1])}(),qi&&function(){var A=Ti.match(/Chrome\/([\d.]+)/);A&&A[1]&&A[1]}(),!zi&&!Yi&&!ki&&!Ui&&!Pi&&/Safari/i.test(Ti)&&function(){var A=Ti.match(/Version\/([\d.]+)/);A&&A[1]&&A[1]}(),"file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname),function(A){A.LIVE="live",A.RTC="rtc"}(ji||(ji={})),function(A){A.CONTAIN="contain",A.COVER="cover",A.FILL="fill"}(Zi||(Zi={})),function(A){A[A.exitRoom=0]="exitRoom",A[A.banned=1]="banned",A[A.roomDisband=2]="roomDisband"}(Wi||(Wi={}));var Xi=-3340,$i=-1301,Ao=-1314,eo=-1315,to=-1316,ro=-1302,io=-1317,oo=-1318,no=-1319,go=-70252,ao={code:-1001,message:"参数错误, 请检查参数格式、是否非空等"},so={code:-1005,message:"not supported"},Io="2.9.0",Co=Object.defineProperty,Bo=(A,e,t)=>((A,e,t)=>e in A?Co(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t)(A,"symbol"!=typeof e?e+"":e,t);function co(A){return{name:"BasicBeautyOptions",type:"object",required:!0,allowEmpty:!1,properties:{beauty:{required:!1,type:"number"},brightness:{required:!1,type:"number"},ruddy:{required:!1,type:"number"}},validate(e,t,r,i){let{RtcError:o,ErrorCode:n,ErrorCodeDictionary:g}=A.errorModule;if(A.utils.isOverseaSdkAppId(e.sdkAppId))throw new o({code:n.INVALID_OPERATION,extraCode:g.INVALID_OPERATION,message:"This feature is not yet available in your country or region. If you have any questions, you can go to the community for consultation: https://zhiliao.qq.com/s/cWSPGIIM62CC/c3TPGIIM62CQ"})}}}var Qo,uo,Eo=(uo="undefined"!=typeof document?null==(Qo=document.currentScript)?void 0:Qo.src:void 0,function(A={}){var e,t,r=Object.assign({},A),i=new Promise(((A,r)=>{e=A,t=r})),o=Object.assign({},r),n="";"undefined"!=typeof document&&document.currentScript&&(n=document.currentScript.src),uo&&(n=uo),n=n.startsWith("blob:")?"":n.substr(0,n.replace(/[?#].*/,"").lastIndexOf("/")+1);var g,a=r.print||console.log.bind(console),s=r.printErr||console.error.bind(console);function I(A){if(S(A))return function(A){for(var e=atob(A),t=new Uint8Array(e.length),r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}(A.slice(m.length))}Object.assign(r,o),o=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(g=r.wasmBinary);var C,B,c,Q,u,E,l,d,h,y=!1,p=[],f=[],T=[],R=0,v=null;function w(A){var e;null==(e=r.onAbort)||e.call(r,A),s(A="Aborted("+A+")"),y=!0,A+=". Build with -sASSERTIONS for more info.";var i=new WebAssembly.RuntimeError(A);throw t(i),i}var D,m="data:application/octet-stream;base64,",S=A=>A.startsWith(m);function G(A){return Promise.resolve().then((()=>function(A){if(A==D&&g)return new Uint8Array(g);var e=I(A);if(e)return e;throw"both async and sync fetching of the wasm failed"}(A)))}function M(A,e,t,r){return function(A,e,t){return G(A).then((A=>WebAssembly.instantiate(A,e))).then(t,(A=>{s(`failed to asynchronously prepare wasm: ${A}`),w(A)}))}(e,t,r)}var b=A=>{for(;A.length>0;)A.shift()(r)};r.noExitRuntime;class N{constructor(A){this.excPtr=A,this.ptr=A-24}set_type(A){l[this.ptr+4>>2]=A}get_type(){return l[this.ptr+4>>2]}set_destructor(A){l[this.ptr+8>>2]=A}get_destructor(){return l[this.ptr+8>>2]}set_caught(A){A=A?1:0,B[this.ptr+12]=A}get_caught(){return 0!=B[this.ptr+12]}set_rethrown(A){A=A?1:0,B[this.ptr+13]=A}get_rethrown(){return 0!=B[this.ptr+13]}init(A,e){this.set_adjusted_ptr(0),this.set_type(A),this.set_destructor(e)}set_adjusted_ptr(A){l[this.ptr+16>>2]=A}get_adjusted_ptr(){return l[this.ptr+16>>2]}get_exception_ptr(){if(Be(this.get_type()))return l[this.excPtr>>2];var A=this.get_adjusted_ptr();return 0!==A?A:this.excPtr}}var L,F,_,k=A=>{for(var e="",t=A;c[t];)e+=L[c[t++]];return e},Y={},V={},U={},P=A=>{throw new F(A)},J=A=>{throw new _(A)},H=(A,e,t)=>{function r(e){var r=t(e);r.length!==A.length&&J("Mismatched type converter count");for(var i=0;i<A.length;++i)K(A[i],r[i])}A.forEach((function(A){U[A]=e}));var i=new Array(e.length),o=[],n=0;e.forEach(((A,e)=>{V.hasOwnProperty(A)?i[e]=V[A]:(o.push(A),Y.hasOwnProperty(A)||(Y[A]=[]),Y[A].push((()=>{i[e]=V[A],++n===o.length&&r(i)})))})),0===o.length&&r(i)};function K(A,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(A,e,t={}){var r=e.name;if(A||P(`type "${r}" must have a positive integer typeid pointer`),V.hasOwnProperty(A)){if(t.ignoreDuplicateRegistrations)return;P(`Cannot register type '${r}' twice`)}if(V[A]=e,delete U[A],Y.hasOwnProperty(A)){var i=Y[A];delete Y[A],i.forEach((A=>A()))}}(A,e,t)}var O,x=A=>({count:A.count,deleteScheduled:A.deleteScheduled,preservePointerOnDelete:A.preservePointerOnDelete,ptr:A.ptr,ptrType:A.ptrType,smartPtr:A.smartPtr,smartPtrType:A.smartPtrType}),j=A=>{P(A.$$.ptrType.registeredClass.name+" instance already deleted")},Z=!1,W=A=>{},z=A=>{A.count.value-=1,0===A.count.value&&(A=>{A.smartPtr?A.smartPtrType.rawDestructor(A.smartPtr):A.ptrType.registeredClass.rawDestructor(A.ptr)})(A)},q=(A,e,t)=>{if(e===t)return A;if(void 0===t.baseClass)return null;var r=q(A,e,t.baseClass);return null===r?null:t.downcast(r)},X={},$=()=>Object.keys(iA).length,AA=()=>{var A=[];for(var e in iA)iA.hasOwnProperty(e)&&A.push(iA[e]);return A},eA=[],tA=()=>{for(;eA.length;){var A=eA.pop();A.$$.deleteScheduled=!1,A.delete()}},rA=A=>{O=A,eA.length&&O&&O(tA)},iA={},oA=(A,e)=>(e=((A,e)=>{for(void 0===e&&P("ptr should not be undefined");A.baseClass;)e=A.upcast(e),A=A.baseClass;return e})(A,e),iA[e]),nA=(A,e)=>((!e.ptrType||!e.ptr)&&J("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&J("Both smartPtrType and smartPtr must be specified"),e.count={value:1},aA(Object.create(A,{$$:{value:e,writable:!0}})));function gA(A){var e=this.getPointee(A);if(!e)return this.destructor(A),null;var t=oA(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=A,t.clone();var r=t.clone();return this.destructor(A),r}function i(){return this.isSmartPointer?nA(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:A}):nA(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var o,n=this.registeredClass.getActualType(e),g=X[n];if(!g)return i.call(this);o=this.isConst?g.constPointerType:g.pointerType;var a=q(e,this.registeredClass,o.registeredClass);return null===a?i.call(this):this.isSmartPointer?nA(o.registeredClass.instancePrototype,{ptrType:o,ptr:a,smartPtrType:this,smartPtr:A}):nA(o.registeredClass.instancePrototype,{ptrType:o,ptr:a})}var aA=A=>"undefined"==typeof FinalizationRegistry?(aA=A=>A,A):(Z=new FinalizationRegistry((A=>{z(A.$$)})),W=A=>Z.unregister(A),(aA=A=>{var e=A.$$;if(e.smartPtr){var t={$$:e};Z.register(A,t,A)}return A})(A));function sA(){}var IA=(A,e)=>Object.defineProperty(e,"name",{value:A}),CA=(A,e,t)=>{if(void 0===A[e].overloadTable){var r=A[e];A[e]=function(...r){return A[e].overloadTable.hasOwnProperty(r.length)||P(`Function '${t}' called with an invalid number of arguments (${r.length}) - expects one of (${A[e].overloadTable})!`),A[e].overloadTable[r.length].apply(this,r)},A[e].overloadTable=[],A[e].overloadTable[r.argCount]=r}};function BA(A,e,t,r,i,o,n,g){this.name=A,this.constructor=e,this.instancePrototype=t,this.rawDestructor=r,this.baseClass=i,this.getActualType=o,this.upcast=n,this.downcast=g,this.pureVirtualFunctions=[]}var cA=(A,e,t)=>{for(;e!==t;)e.upcast||P(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),A=e.upcast(A),e=e.baseClass;return A};function QA(A,e){if(null===e)return this.isReference&&P(`null is not a valid ${this.name}`),0;e.$$||P(`Cannot pass "${UA(e)}" as a ${this.name}`),e.$$.ptr||P(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass;return cA(e.$$.ptr,t,this.registeredClass)}function uA(A,e){var t;if(null===e)return this.isReference&&P(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==A&&A.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&P(`Cannot pass "${UA(e)}" as a ${this.name}`),e.$$.ptr||P(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&P(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass;if(t=cA(e.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&P("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:P(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,YA.toHandle((()=>i.delete()))),null!==A&&A.push(this.rawDestructor,t)}break;default:P("Unsupporting sharing policy")}return t}function EA(A,e){if(null===e)return this.isReference&&P(`null is not a valid ${this.name}`),0;e.$$||P(`Cannot pass "${UA(e)}" as a ${this.name}`),e.$$.ptr||P(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&P(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass;return cA(e.$$.ptr,t,this.registeredClass)}function lA(A){return this.fromWireType(l[A>>2])}function dA(A,e,t,r,i,o,n,g,a,s,I){this.name=A,this.registeredClass=e,this.isReference=t,this.isConst=r,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=n,this.rawGetPointee=g,this.rawConstructor=a,this.rawShare=s,this.rawDestructor=I,i||void 0!==e.baseClass?this.toWireType=uA:r?(this.toWireType=QA,this.destructorFunction=null):(this.toWireType=EA,this.destructorFunction=null)}var hA,yA,pA=[],fA=A=>{var e=pA[A];return e||(A>=pA.length&&(pA.length=A+1),pA[A]=e=hA.get(A)),e},TA=(A,e,t=[])=>A.includes("j")?((A,e,t)=>(A=A.replace(/p/g,"i"),(0,r["dynCall_"+A])(e,...t)))(A,e,t):fA(e)(...t),RA=(A,e)=>{var t=(A=k(A)).includes("j")?((A,e)=>(...t)=>TA(A,e,t))(A,e):fA(e);return"function"!=typeof t&&P(`unknown function pointer with signature ${A}: ${e}`),t},vA=A=>{var e=Ie(A),t=k(e);return Ce(e),t},wA=(A,e)=>{var t=[],r={};throw e.forEach((function A(e){if(!r[e]&&!V[e]){if(U[e])return void U[e].forEach(A);t.push(e),r[e]=!0}})),new yA(`${A}: `+t.map(vA).join([", "]))},DA=(A,e)=>{for(var t=[],r=0;r<A;r++)t.push(l[e+4*r>>2]);return t},mA=A=>{for(;A.length;){var e=A.pop();A.pop()(e)}};function SA(A,e,t,r,i,o){var n=e.length;n<2&&P("argTypes array size mismatch! Must at least get return value and 'this' types!");var g=null!==e[1]&&null!==t,a=function(A){for(var e=1;e<A.length;++e)if(null!==A[e]&&void 0===A[e].destructorFunction)return!0;return!1}(e),s="void"!==e[0].name,I=n-2,C=new Array(I),B=[],c=[];return IA(A,(function(...t){var o;t.length!==I&&P(`function ${A} called with ${t.length} arguments, expected ${I}`),c.length=0,B.length=g?2:1,B[0]=i,g&&(o=e[1].toWireType(c,this),B[1]=o);for(var n=0;n<I;++n)C[n]=e[n+2].toWireType(c,t[n]),B.push(C[n]);return function(A){if(a)mA(c);else for(var t=g?1:2;t<e.length;t++){var r=1===t?o:C[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(r)}if(s)return e[0].fromWireType(A)}(r(...B))}))}var GA,MA,bA,NA=(A,e,t)=>(A instanceof Object||P(`${t} with invalid "this": ${A}`),A instanceof e.registeredClass.constructor||P(`${t} incompatible with "this" of type ${A.constructor.name}`),A.$$.ptr||P(`cannot call emscripten binding method ${t} on deleted object`),cA(A.$$.ptr,A.$$.ptrType.registeredClass,e.registeredClass)),LA=[],FA=[],_A=A=>{A>9&&0==--FA[A+1]&&(FA[A]=void 0,LA.push(A))},kA=()=>FA.length/2-5-LA.length,YA={toValue:A=>(A||P("Cannot use deleted val. handle = "+A),FA[A]),toHandle:A=>{switch(A){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=LA.pop()||FA.length;return FA[e]=A,FA[e+1]=1,e}}}},VA={name:"emscripten::val",fromWireType:A=>{var e=YA.toValue(A);return _A(A),e},toWireType:(A,e)=>YA.toHandle(e),argPackAdvance:8,readValueFromPointer:lA,destructorFunction:null},UA=A=>{if(null===A)return"null";var e=typeof A;return"object"===e||"array"===e||"function"===e?A.toString():""+A},PA=(A,e)=>{switch(e){case 4:return function(A){return this.fromWireType(d[A>>2])};case 8:return function(A){return this.fromWireType(h[A>>3])};default:throw new TypeError(`invalid float width (${e}): ${A}`)}},JA=(A,e,t)=>{switch(e){case 1:return t?A=>B[A]:A=>c[A];case 2:return t?A=>Q[A>>1]:A=>u[A>>1];case 4:return t?A=>E[A>>2]:A=>l[A>>2];default:throw new TypeError(`invalid integer width (${e}): ${A}`)}},HA="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,KA=(A,e,t)=>{for(var r=e+t,i=e;A[i]&&!(i>=r);)++i;if(i-e>16&&A.buffer&&HA)return HA.decode(A.subarray(e,i));for(var o="";e<i;){var n=A[e++];if(128&n){var g=63&A[e++];if(192!=(224&n)){var a=63&A[e++];if((n=224==(240&n)?(15&n)<<12|g<<6|a:(7&n)<<18|g<<12|a<<6|63&A[e++])<65536)o+=String.fromCharCode(n);else{var s=n-65536;o+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else o+=String.fromCharCode((31&n)<<6|g)}else o+=String.fromCharCode(n)}return o},OA=(A,e)=>A?KA(c,A,e):"",xA="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,jA=(A,e)=>{for(var t=A,r=t>>1,i=r+e/2;!(r>=i)&&u[r];)++r;if((t=r<<1)-A>32&&xA)return xA.decode(c.subarray(A,t));for(var o="",n=0;!(n>=e/2);++n){var g=Q[A+2*n>>1];if(0==g)break;o+=String.fromCharCode(g)}return o},ZA=(A,e,t)=>{i