UNPKG

@zoom/videosdk

Version:
2 lines 1.03 MB
/*! For license information please see js_media.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("disk-file-writer")):"function"==typeof define&&define.amd?define("JsMediaSDK_Instance",["disk-file-writer"],t):"object"==typeof exports?exports.JsMediaSDK_Instance=t(require("disk-file-writer")):e.JsMediaSDK_Instance=t(e["disk-file-writer"])}(self,(e=>(()=>{var t,i,r={8935:(e,t,i)=>{"use strict";function r(){return/\bCrOS\b/.test(navigator.userAgent)}function s(){var e,t;if(r())return!1;const i=((null==navigator?void 0:navigator.userAgent)||"").toLowerCase();if(/ipad|android(?!.*mobile)|tablet/i.test(i))return!0;const s=Math.min((null==(e=null==window?void 0:window.screen)?void 0:e.width)||0,(null==(t=null==window?void 0:window.screen)?void 0:t.height)||0),a="ontouchstart"in window||navigator.maxTouchPoints>0;return s>=600&&s<=1280&&a&&"orientation"in window}function a(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||/iPad/i.test(navigator.userAgent)||/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))}i.d(t,{Cd:()=>Ke,D:()=>je,D$:()=>He,GN:()=>Le,GQ:()=>xe,GY:()=>c,HR:()=>Ge,Pg:()=>s,Qf:()=>Qe,R_:()=>m,U0:()=>Xe,U4:()=>Ee,UP:()=>Me,Xb:()=>a,Y9:()=>Be,Z_:()=>Ue,Zs:()=>r,_J:()=>Oe,bw:()=>h,cX:()=>p,gG:()=>be,gi:()=>Ye,gm:()=>Ve,j4:()=>Je,j9:()=>Ze,lT:()=>De,n_:()=>u,nr:()=>Ne,pb:()=>d,uF:()=>f,uw:()=>l,vb:()=>n,vk:()=>We,w_:()=>ze,zG:()=>o,zQ:()=>$e,zX:()=>Fe});const o=()=>!!(navigator.maxTouchPoints&&navigator.maxTouchPoints>2)&&(/iPad/.test(navigator.platform)||/MacIntel/.test(navigator.platform)),n=()=>/MSFT Teams Android Room/i.test(navigator.userAgent),d=()=>{const e=null==window?void 0:window.meetingHost;return!!e&&"MSFT"===e.getHostState().vendorId&&!n()},c=()=>/GoogleMeetRoomDeviceWebViewApp/.test(navigator.userAgent),h=()=>/TESLA/.test(navigator.userAgent),l=()=>/(iPhone)/.test(navigator.userAgent),u=()=>/(iPad|iPhone)/g.test(navigator.userAgent),p=()=>navigator.platform.indexOf("Mac")>-1,f=()=>navigator.platform.indexOf("Win")>-1,m=async()=>{var e,t;if(-1!=navigator.userAgent.indexOf("WOW64"))return!0;if(null!=(e=null==navigator?void 0:navigator.userAgentData)&&e.getHighEntropyValues){const e=await(null==(t=null==navigator?void 0:navigator.userAgentData)?void 0:t.getHighEntropyValues(["wow64"]));return!(null==e||!e.wow64)}return!1},g=e=>"string"==typeof e,v=(e,t)=>{if(g(e))return e=y(/^\s\s*/,e),void 0===t?e:e.substring(0,500)},_=e=>g(e)?e.toLowerCase():e,A=(e,t)=>{if("object"==typeof e&&e.length>0){for(var i in e)if(_(e[i])==_(t))return!0;return!1}return!!g(e)&&-1!==_(t).indexOf(_(e))},S=(e,t)=>{for(let i in t)if("object"==typeof t[i]&&t[i].length>0){for(let r=0;r<t[i].length;r++)if(A(t[i][r],e))return"?"===i?void 0:i}else if(A(t[i],e))return"?"===i?void 0:i;return"*"in t?t["*"]:e},y=(e,t)=>g(t)?t.replace(e,""):t,C=e=>g(e)&&y(/[^\d\.]/g,e).split(".")[0]||"",b=e=>g(e)&&y(/[^\d\.]/g,e).split(".")[1]||"",w=e=>/^\d/.test(String(e)),E=(e,t)=>{let i={};if(!e||!t)return{};let r,s,a,o,n,d,c=0;for(;c<t.length&&!n;){const h=t[c],l=t[c+1];for(r=0,s=0;r<h.length&&!n&&h[r];)if(n=h[r++].exec(e),n)for(i.matchRegex=String(h[r-1]),a=0;a<l.length;a++)d=n[++s],o=l[a],"object"==typeof o&&o.length>0?2===o.length?"function"==typeof o[1]?i[o[0]]=o[1](d):i[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?i[o[0]]=d?d.replace(o[1],o[2]):void 0:i[o[0]]=d?o[1](d,o[2]):void 0:4===o.length&&(i[o[0]]=d?o[3](d.replace(o[1],o[2])):void 0):i[o]=d||void 0;c+=2}return i||{}},T=e=>{const t=e.split(".");for(;t.length>1&&0===parseInt(t[t.length-1],10);)t.pop();return t.join(".")},R="version",I="name",D="type",M="inapp",k="model",P="vendor",O="architecture",V="console",x="mobile",N="tablet",L="smarttv",W="wearable",U="xr",B="embedded",F="Amazon",G="Apple",H="ASUS",j="BlackBerry",K="Google",z="Huawei",q="Lenovo",X="Honor",Q="LG",Y="Microsoft",J="Motorola",$="Nvidia",Z="OnePlus",ee="OPPO",te="Samsung",ie="Sharp",re="Sony",se="Xiaomi",ae="Zebra",oe="Chrome",ne="Chromecast",de="Firefox",ce="Opera",he="Facebook",le="Sogou",ue="Mobile Safari",pe=" Browser",fe="Chromium OS",me="Mac OS",ge={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ve=[[/\b(?:crmo|crios)\/([\w\.]+)/i],[R,[I,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[R,[I,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[I,R],[/opios[\/ ]+([\w\.]+)/i],[R,[I,ce+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[R,[I,ce+" GX"]],[/\bopr\/([\w\.]+)/i],[R,[I,ce]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[R,[I,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[R,[I,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[I,R],[/quark(?:pc)?\/([-\w\.]+)/i],[R,[I,"Quark"]],[/\bddg\/([\w\.]+)/i],[R,[I,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[R,[I,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[R,[I,"WeChat"]],[/konqueror\/([\w\.]+)/i],[R,[I,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[R,[I,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[R,[I,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[R,[I,"Smart "+q+pe]],[/(avast|avg)\/([\w\.]+)/i],[[I,/(.+)/,"$1 Secure"+pe],R],[/\bfocus\/([\w\.]+)/i],[R,[I,de+" Focus"]],[/\bopt\/([\w\.]+)/i],[R,[I,ce+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[R,[I,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[R,[I,"Dolphin"]],[/coast\/([\w\.]+)/i],[R,[I,ce+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[R,[I,"MIUI"+pe]],[/fxios\/([\w\.-]+)/i],[R,[I,""+de]],[/\bqihoobrowser\/?([\w\.]*)/i],[R,[I,"360"]],[/\b(qq)\/([\w\.]+)/i],[[I,/(.+)/,"$1Browser"],R],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[I,/(.+)/,"$1"+pe],R],[/samsungbrowser\/([\w\.]+)/i],[R,[I,te+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[R,[I,le+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[I,le+" Mobile"],R],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[I,R],[/(lbbrowser|rekonq)/i],[I],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[R,I],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[I,he],R,[D,M]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[I,R,[D,M]],[/\bgsa\/([\w\.]+) .*safari\//i],[R,[I,"GSA"],[D,M]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[R,[I,"TikTok"],[D,M]],[/\[(linkedin)app\]/i],[I,[D,M]],[/(chromium)[\/ ]([-\w\.]+)/i],[I,R],[/headlesschrome(?:\/([\w\.]+)| )/i],[R,[I,oe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[I,oe+" WebView"],R],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[R,[I,"Android"+pe]],[/chrome\/([\w\.]+) mobile/i],[R,[I,"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[I,R],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[R,[I,ue]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[I,ue]],[/version\/([\w\.\,]+) .*(safari)/i],[R,I],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[I,[R,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[I,R],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[I,""+de],R],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[I,"Netscape"],R],[/(wolvic|librewolf)\/([\w\.]+)/i],[I,R],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[R,[I,de+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[I,[R,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[I,[R,/[^\d\.]+./,""]]],_e=[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[k,[P,te],[D,N]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[k,[P,te],[D,x]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[k,[P,G],[D,x]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[k,[P,G],[D,N]],[/(macintosh);/i],[k,[P,G]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[k,[P,ie],[D,x]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[k,[P,X],[D,N]],[/honor([-\w ]+)[;\)]/i],[k,[P,X],[D,x]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[k,[P,z],[D,N]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[k,[P,z],[D,x]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[k,/_/g," "],[P,se],[D,N]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[k,/_/g," "],[P,se],[D,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[k,[P,ee],[D,x]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[k,[P,S,{OnePlus:["304","403","203"],"*":ee}],[D,N]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[k,[P,"Vivo"],[D,x]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[k,[P,"Realme"],[D,x]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[k,[P,J],[D,x]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[k,[P,J],[D,N]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[k,[P,Q],[D,N]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[k,[P,Q],[D,x]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[k,[P,q],[D,N]],[/(nokia) (t[12][01])/i],[P,k,[D,N]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?(([-\w\.]*))/i],[[k,/_/g," "],[D,x],[P,"Nokia"]],[/(pixel (c|tablet))\b/i],[k,[P,K],[D,N]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[k,[P,K],[D,x]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[k,[P,re],[D,x]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[k,"Xperia Tablet"],[P,re],[D,N]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[k,[P,Z],[D,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[k,[P,F],[D,N]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[k,/(.+)/g,"Fire Phone $1"],[P,F],[D,x]],[/(playbook);[-\w\),; ]+(rim)/i],[k,P,[D,N]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[k,[P,j],[D,x]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[k,[P,H],[D,N]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[k,[P,H],[D,x]],[/(nexus 9)/i],[k,[P,"HTC"],[D,N]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[P,[k,/_/g," "],[D,x]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[k,[P,"TCL"],[D,N]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[k,[P,"TCL"],[D,x]],[/(itel) ((\w+))/i],[[P,_],k,[D,S,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[k,[P,"Acer"],[D,N]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[k,[P,"Meizu"],[D,x]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[k,[P,"Ulefone"],[D,x]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[k,[P,"Energizer"],[D,x]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[k,[P,"Cat"],[D,x]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[k,[P,"Smartfren"],[D,x]],[/droid.+; (a(?:015|06[35]|142p?))/i],[k,[P,"Nothing"],[D,x]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[P,k,[D,N]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[P,k,[D,x]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[P,k,[D,N]],[/(surface duo)/i],[k,[P,Y],[D,N]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[k,[P,"Fairphone"],[D,x]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[k,[P,$],[D,N]],[/(sprint) (\w+)/i],[P,k,[D,x]],[/(kin\.[onetw]{3})/i],[[k,/\./g," "],[P,Y],[D,x]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[k,[P,ae],[D,N]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[k,[P,ae],[D,x]],[/smart-tv.+(samsung)/i],[P,[D,L]],[/hbbtv.+maple;(\d+)/i],[[k,/^/,"SmartTV"],[P,te],[D,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[P,Q],[D,L]],[/(apple) ?tv/i],[P,[k,G+" TV"],[D,L]],[/crkey.*devicetype\/chromecast/i],[[k,ne+" Third Generation"],[P,K],[D,L]],[/crkey.*devicetype\/([^/]*)/i],[[k,/^/,"Chromecast "],[P,K],[D,L]],[/fuchsia.*crkey/i],[[k,ne+" Nest Hub"],[P,K],[D,L]],[/crkey/i],[[k,ne],[P,K],[D,L]],[/droid.+aft(\w+)( bui|\))/i],[k,[P,F],[D,L]],[/(shield \w+ tv)/i],[k,[P,$],[D,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[k,[P,ie],[D,L]],[/(bravia[\w ]+)( bui|\))/i],[k,[P,re],[D,L]],[/(mi(tv|box)-?\w+) bui/i],[k,[P,se],[D,L]],[/Hbbtv.*(technisat) (.*);/i],[P,k,[D,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[P,v],[k,v],[D,L]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[k,[D,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[D,L]],[/(ouya)/i,/(nintendo) (\w+)/i],[P,k,[D,V]],[/droid.+; (shield)( bui|\))/i],[k,[P,$],[D,V]],[/(playstation \w+)/i],[k,[P,re],[D,V]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[k,[P,Y],[D,V]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[k,[P,te],[D,W]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[P,k,[D,W]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[k,[P,ee],[D,W]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[k,[P,G],[D,W]],[/(opwwe\d{3})/i],[k,[P,Z],[D,W]],[/(moto 360)/i],[k,[P,J],[D,W]],[/(smartwatch 3)/i],[k,[P,re],[D,W]],[/(g watch r)/i],[k,[P,Q],[D,W]],[/droid.+; (wt63?0{2,3})\)/i],[k,[P,ae],[D,W]],[/droid.+; (glass) \d/i],[k,[P,K],[D,U]],[/(pico) (4|neo3(?: link|pro)?)/i],[P,k,[D,U]],[/; (quest( \d| pro)?)/i],[k,[P,he],[D,U]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[P,[D,B]],[/(aeobc)\b/i],[k,[P,F],[D,B]],[/(homepod).+mac os/i],[k,[P,G],[D,B]],[/windows iot/i],[[D,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[k,[D,S,{mobile:"Mobile",xr:"VR","*":N}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[D,N]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[D,x]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[k,[P,"Generic"]]],Ae=[[/microsoft (windows) (vista|xp)/i],[I,R],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[I,[R,S,ge]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[R,S,ge],[I,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[R,/_/g,"."],[I,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[I,me],[R,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[R,[I,ne+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[R,[I,ne+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[R,[I,ne+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[R,[I,ne+" Linux"]],[/crkey\/([\d\.]+)/i],[R,[I,ne]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[R,I],[/(ubuntu) ([\w\.]+) like android/i],[[I,/(.+)/,"$1 Touch"],R],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[I,R],[/\(bb(10);/i],[R,[I,j]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[R,[I,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[R,[I,de+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[R,[I,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[R,[I,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[I,fe],R],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[I,R],[/(sunos) ?([\w\.\d]*)/i],[[I,"Solaris"],R],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[I,R]],Se=[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[O,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)\b/i],[[O,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[O,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[O,/ower/,"",_]],[/ sun4\w[;\)]/i],[[O,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[O,_]]],ye=[[/windows.+ edge\/([\w\.]+)/i],[R,[I,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[I,R],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[R,[I,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[I,R],[/ladybird\//i],[[I,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[R,I]],Ce=new class{constructor(){this.ua=navigator.userAgent}removeMatchRegex(e){if(!e.matchRegex)return e;const{matchRegex:t,...i}=e;return i}getDefaultResult(e){const t=(e=>{const t=E(e,ve);return null!=t&&t.version&&(t.major=C(String(t.version))||"",t.minor=b(String(t.version))||""),t})(e||this.ua),i=(o=e||this.ua,E(o,ye)),r=(e=>{var t,i;const r=E(e,_e);return!r.type&&null!=navigator&&navigator.userAgentData&&null!=(t=null==navigator?void 0:navigator.userAgentData)&&t.mobile&&(r.type=null==(i=null==navigator?void 0:navigator.userAgentData)?void 0:i.mobile),"Macintosh"==r.model&&navigator&&void 0!==(null==navigator?void 0:navigator.standalone)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&(r.model="iPad",r.type="tablet"),r})(e||this.ua),s=(e=>{var t,i;const r=E(e,Ae);return!r.name&&null!=navigator&&navigator.userAgentData&&null!=(t=null==navigator?void 0:navigator.userAgentData)&&t.platform&&(r.name=null==(i=null==navigator?void 0:navigator.userAgentData)?void 0:i.platform),null!=r&&r.version&&w(null==r?void 0:r.version)&&(r.major=C(String(r.version))||"",r.minor=b(String(r.version))||""),r})(e||this.ua),a=(e=>{const t=E(e,Se);return t.architecture||(t.architecture=""),t})(e||this.ua);var o;return{ua:e||this.ua,browser:this.removeMatchRegex(t),device:this.removeMatchRegex(r),os:this.removeMatchRegex(s),cpu:this.removeMatchRegex(a),engine:this.removeMatchRegex(i)}}async getResult(e){const t=this.getDefaultResult(e);if(e||!this.isSupportUserAgentData())return t;let i={};try{i=await this.getHighEntropyValues()}catch(e){return{...t,error:e}}const r=this.handleBrowser(i,t.browser),s=this.handleDevice(i,t.device),a=this.handleOs(i,t.os),o=this.handleCpu(i,t.cpu),n=this.handleEngine(i,t.engine);return{ua:this.ua,browser:this.removeMatchRegex(r),device:this.removeMatchRegex(s),os:this.removeMatchRegex(a),cpu:this.removeMatchRegex(o),engine:this.removeMatchRegex(n),originHighEntropyValues:i}}isSupportUserAgentData(){return"object"==typeof navigator&&"userAgentData"in navigator}async getHighEntropyValues(){return this.isSupportUserAgentData()?await navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness"]):{}}handleBrowser(e,t){let i=t||{};const r=e.fullVersionList||e.brands;let s="";if(r)for(let e in r){let t=r[e].brand,a=r[e].version;/not.a.brand/i.test(t)||s&&(!/chrom/i.test(s)||"Chromium"==t)||(t=S(t,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome"}),s=t,i={name:t,version:a,major:a?C(a):"",minor:a?b(a):""})}return i}handleEngine(e,t){let i=t||{};const r=e.fullVersionList||e.brands;if(r)for(let e in r){let t=r[e].brand,s=r[e].version;"Chromium"===t&&(i.version=s)}return i}handleDevice(e,t){const i=t;if(e.mobile&&(i.type="mobile"),e.model&&(i.model=e.model,!i.type||!i.vendor)){let t=E("droid 9; "+e.model+")",_e);!i.type&&t.type&&(i.type=t.type),!i.vendor&&t.vendor&&(i.vendor=t.vendor)}"Macintosh"==i.model&&navigator&&void 0!==(null==navigator?void 0:navigator.standalone)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&(i.model="iPad",i.type="tablet");const r={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0};if(e.formFactors){let t;if("string"!=typeof e.formFactors)for(var s=0;!t&&s<e.formFactors.length;)t=S(e.formFactors[s++],r);else t=S(e.formFactors,r);t&&(i.type=t)}return i}handleOs(e,t){var i,r;const s=t||{};!s.name&&navigator.userAgentData&&null!=(i=navigator.userAgentData)&&i.platform&&(s.name=null==(r=navigator.userAgentData)?void 0:r.platform);const a=e.platform;if(a){let t=e.platformVersion;if(a.includes("win")&&t){const e=parseInt(C(t),10)||0;t=e>=13?"11":e>0?"10":"7"}s.name=a,s.version=t,t&&w(t)?(s.major=C(t)||"",s.minor=b(t)||""):(s.major="",s.minor="")}return s.name&&(s.name=s.name.replace(/chrome os/i,fe).replace(/macos/i,me)),s}handleCpu(e,t){let i=t||{},r=e.architecture;return r&&(r&&"64"==e.bitness&&(r+="64"),i=E(r+";",Se)),i}};let be=Ce.getDefaultResult(),we=!1;const Ee=async()=>{if(we)return be;try{if(Ce.isSupportUserAgentData()){const e=await Ce.getResult();be=Object.assign({},e),we=!0}}catch(e){return we=!1,Promise.reject(e)}return be},Te=()=>(null==be?void 0:be.os)||{},Re=()=>{var e;return(null==(e=null==be?void 0:be.browser)?void 0:e.name)||""},Ie=()=>{var e;return(null==(e=null==be?void 0:be.os)?void 0:e.name)||""},De=()=>{const e=Re();return["IE","IEMobile"].includes(e)},Me=()=>"Edge"===Re(),ke=()=>{const e=Re();return["Chrome","Chrome Headless","Chrome WebView"].includes(e)},Pe=()=>"Chromium"===Re(),Oe=()=>ke()||Pe(),Ve=()=>{const e=Re();return["Firefox","Firefox Focus","Firefox Reality","Iceweasel"].includes(e)},xe=()=>{const e=Re();return["Opera","Opera Coast","Opera GX","Opera Mini","Opera Mobi","Opera Tablet","Opera Touch"].includes(e)},Ne=()=>{var e;return null==(e=Re().toLocaleLowerCase())?void 0:e.includes("safari")},Le=()=>{var e;const t=Ie();return/android/i.test(navigator.userAgent)||(null==(e=t.toLocaleLowerCase())?void 0:e.includes("android"))},We=()=>"webos"===Ie().toLowerCase(),Ue=()=>"Oculus Browser"===Re(),Be=()=>ke()&&/windows/i.test(navigator.userAgent),Fe=()=>"OpenHarmony"===Ie(),Ge=()=>"HarmonyOS"===Ie()||Fe(),He=(e,t)=>{if((e=e.toString())===(t=t.toString()))return!0;const i=T(e),r=T(t),s=i.split("."),a=r.split("."),o=s.length,n=a.length,d=Math.min(n,o);for(let e=0;e<d;e++){const t=parseInt(s[e],10),i=parseInt(a[e],10);if(t!==i)return t>i}return o>=n},je=(e,t="")=>{if(!t){const{version:e}=(null==be?void 0:be.browser)||{};t=e||""}return He(t||"",e)},Ke=()=>{const{major:e}=Te();return e?parseInt(e,10):0},ze=()=>{const{minor:e}=Te();return e?parseInt(e,10):0},qe=(()=>{let e={vendor:"",renderInfo:"",isAstcSupported:!1,isWebGLContextInvalid:!0};const t={noCanvas:"",noContext:"",contextLost:"",noVendor:"",catchError:""};try{const i=document.createElement("canvas");if(!i)return t.noCanvas="Error: document.createElement return a null canvas!",{attrs:e,errorMsg:t};let r=i.getContext("webgl")||i.getContext("moz-webgl")||i.getContext("webkit-3d")||i.getContext("experimental-webgl");if(!r)return t.noContext=`Error: canvas.getContext fail, context:${r}, size:(${i.width},${i.height})`,{attrs:e,errorMsg:t};if(r){let s,a,o;e.isWebGLContextInvalid=!1,null!=r&&r.isContextLost()&&(t.contextLost=`Error: webgl context is lost, canvas(${i.width},${i.height})!`),Ve()?(s=r.getParameter(r.RENDERER),a=r.getParameter(r.VENDOR)):(o=r.getExtension("WEBGL_debug_renderer_info"),s=r.getParameter(o.UNMASKED_RENDERER_WEBGL),a=r.getParameter(o.UNMASKED_VENDOR_WEBGL)),e.renderInfo=null==s?void 0:s.toLowerCase(),e.vendor=null==a?void 0:a.toLowerCase(),e.isAstcSupported=-1!==r.getSupportedExtensions().indexOf("WEBGL_compressed_texture_astc"),""==a&&(t.noVendor=`Error: vendor is null, debug:${o}, render:${o.UNMASKED_RENDERER_WEBGL}, vendor:${o.UNMASKED_VENDOR_WEBGL}, contextLost:${r.isContextLost()}!`)}}catch(e){t.catchError=e}return{attrs:e,errorMsg:t}})(),Xe=()=>"Mac OS"===Ie()&&!o(),Qe=()=>{try{return!(!Ne()||navigator.maxTouchPoints&&!(navigator.maxTouchPoints<=2)||qe.attrs.isAstcSupported||!p())}catch{return!1}},Ye=()=>{var e;try{return!!((ke()||Pe())&&(!navigator.maxTouchPoints||navigator.maxTouchPoints<=2)&&(null==(e=qe.attrs.vendor)?void 0:e.indexOf("intel"))>-1&&p())}catch{return!1}},Je=()=>Qe()||Ye(),$e=()=>{const e=p()||Xe();return Ne()&&e},Ze=()=>{var e;return(null==(e=null==navigator?void 0:navigator.platform)?void 0:e.indexOf("Linux"))>-1&&!r()&&!Le()}},1241:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});const r=!1},3750:(e,t,i)=>{"use strict";i.d(t,{p:()=>n,E:()=>d});var r=i(2754),s=i(9415);class a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._unusedIds=[],this._nextId=e}generateNextId(){let e;return this._unusedIds.length>0?e=this._unusedIds.shift():(e=this._nextId,this._nextId+=1),e}release(e){this._unusedIds.push(e)}}class o{constructor(e){this._onmessage=null,this._messager=e}set onmessage(e){var t,i;null!==this._onmessage&&this._messager.removeEventListener("message",this._onmessage),this._messager.addEventListener("message",e),null===this._onmessage&&(null===(i=(t=this._messager).start)||void 0===i||i.call(t)),this._onmessage=e}postMessage(e,t){this._messager.postMessage(e,t)}close(){var e,t;null!==this._onmessage&&(this._messager.removeEventListener("message",this._onmessage),this._onmessage=null),null===(t=(e=this._messager).close)||void 0===t||t.call(e)}}class n{constructor(){this._connection=null}set connection(e){this._connection=e}get connection(){return(0,r.vA)(null!==this._connection),this._connection}}class d{constructor(e,t,i,r){this._idGenerator=new a(2),this._invokeHandlers={},this._invokeResults=new Set,this._resolveInvokeResultsSended=null,this._responseHandlers=new Map,this._notifyHandlers={},this._transferObjs=[],this._closed=!1,this._onClose=null,this._messager=new o(e),this._messager.onmessage=this._handleMessage.bind(this),this._logErrorFn=r,t&&(this.localPeerObject=t),i&&(this._proxyFuncs=i);const s=new Promise((e=>{this._resolveCloseSent=e})),n=new Promise((e=>{this._resolveCloseReceived=e}));Promise.all([s,n]).then((()=>{this._messager.close(),this._messager=null}))}set localPeerObject(e){let t;if(this._invokeHandlers={},e instanceof n){const i=Object.getPrototypeOf(e);t=Object.getOwnPropertyNames(i)}else t=Object.getOwnPropertyNames(e);const i=t.filter((t=>"function"==typeof e[t]&&"constructor"!==t&&!t.startsWith("_")));for(const t of i)this.expose(t,(function(){return e[t](...arguments)}));this._localPeerObject=e,e instanceof n&&(e.connection=this)}get localPeerObject(){return this._localPeerObject}get remotePeerProxy(){var e=this;if(this._remotePeerProxy)return this._remotePeerProxy;const t=new Map;return this._remotePeerProxy=new Proxy({},{get:(i,r,s)=>{var a;let o=null===(a=this._proxyFuncs)||void 0===a?void 0:a[r];return o||(o=t.get(r),o||(o=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return e.invoke(r,...i)},t.set(r,o),o))}}),this._remotePeerProxy}_logError(e,t){var i;null===(i=this._logErrorFn)||void 0===i||i.call(this,e,t)}transfer(e){return this._transferObjs.push(e),e}expose(e,t){this._invokeHandlers[e]=t}on(e,t){this._notifyHandlers[e]=t}notify(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];this._postRequest(1,e,i)}invoke(e){const t=this._idGenerator.generateNextId(),i=new Promise(((e,i)=>{this._responseHandlers.set(t,{resolve:e,reject:i})}));for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];return this._postRequest(t,e,s),i}_postRequest(e,t,i){if(this._closed)throw new Error("Can not postRequest after closed!!");try{this._messager.postMessage({id:e,name:t,args:i},this._transferObjs)}catch(e){(0,s.B)().tracing.Log_Error("[rpc] Error in postRequest",e)}this._transferObjs=[]}_postReponse(e,t){if(this._closed)throw new Error("Can not postReponse after closed!!");this._messager.postMessage({id:0,resId:e,response:t},this._transferObjs),this._transferObjs=[]}_serializeError(e){return e instanceof Error?{message:e.message,name:e.name,stack:e.stack}:e}_handleMessage(e){const t=e.data;if("id"in t)try{if(t.id<0)-1===t.id?(this._closePeerIfNeeded(t.reason),this._resolveCloseReceived()):(0,r.Yu)();else{if(0===t.id){const e=this._responseHandlers.get(t.resId);if(!e)return void this._logError("DualRPC.handleMessage: ".concat(t.resId," not found!"));const i=t.response;return"ret"in i?e.resolve(i.ret):"err"in i?(e.reject(i.err),this._logError("DualRPC.handleMessage err: ".concat(i.err))):(0,r.Yu)("Invalid Response"),this._responseHandlers.delete(t.resId),void this._idGenerator.release(t.resId)}if(1===t.id){try{const e=this._notifyHandlers[t.name];e&&e(...t.args)}catch(e){}return}{if((0,r.vA)(t.id>1),!(t.name in this._invokeHandlers))return void this._logError("DualRPC.handleMessage: ".concat(t.name," not registered!"));let e,i;try{const i=this._invokeHandlers[t.name];e=i(...t.args)}catch(e){i=e}if(i)return void this._postReponse(t.id,{err:this._serializeError(i)});if(!(e instanceof Promise)){try{this._postReponse(t.id,{ret:e})}catch(e){this._postReponse(t.id,{err:this._serializeError(e)})}return}this._invokeResults.add(e),e.then((e=>{this._postReponse(t.id,{ret:e})})).catch((e=>{this._postReponse(t.id,{err:this._serializeError(e)})})).finally((()=>{this._invokeResults.delete(e),this._resolveInvokeResultsSended&&0===this._invokeResults.size&&this._resolveInvokeResultsSended()}))}}}catch(e){this._logError("DualRPC.handleMessage err!!",e)}}_closePeerIfNeeded(e){this._closed||(this._closed=!0,this._onClose&&this._onClose(e),0===this._invokeResults.size?(this._messager.postMessage({id:-1,reason:e},[]),setTimeout((()=>{this._resolveCloseSent()}),10)):new Promise((e=>{this._resolveInvokeResultsSended=e})).then((()=>{this._messager.postMessage({id:-1,reason:e},[])})).then((()=>{setTimeout((()=>{this._resolveCloseSent()}),10)})))}close(e){this._closePeerIfNeeded(e)}set onClose(e){this._onClose=e}}},2484:(e,t,i)=>{"use strict";i.d(t,{n:()=>r});const r={AUDIO_BRIDGE_1:{index:1,default:15},AUDIO_BRIDGE_2:{index:2,default:1},HW_ENCODER_FOR_360P:{index:3,default:0},WEBGL_CONTEXT_LOST_OPT:{index:4,default:0},RECEIVE_720P_ON_SAFARI:{index:5,default:0},MULTI_VIEW_ON_MOBILE:{index:8,default:0},CHROMEOS_AEC:{index:10,default:1},AUDIO_DENOISE:{index:11,default:1,candidates:{NO_CONFIG:0,SHOW_IN_PROFILE:1,DEFAULT_VALUE_GREATER_THAN_4_CORES:2}},VB_ON_FIREFOX:{index:12,default:0},ENABLE_DECODE_720P_ON_IOS:{index:15,default:1},UNIFIED_RENDER:{index:20,default:0},WEBGPU_RENDERER:{index:21,default:0},ORIGINAL_SOUND:{index:22,default:0},SEND_1080P_VIDEO:{index:24,default:0},SEND_1080P_VIDEO_SHARE:{index:25,default:0},VB_ON_SAFARI_17:{index:27,default:0},WEBGL2_RENDERER:{index:29,default:1},AUDIO_ECHO_DETECT:{index:31,default:0},UNIFIED_RENDER_ON_MOBILE:{index:34,default:0},WEBCODEC_DECODE_OPTION:{index:36,default:0},HW_WEBCODEC_ON_SAFARI:{index:37,default:1},HW_DECODE_FOR_360P:{index:38,default:0},WEBCODEC_ON_ANDROID_CHROME:{index:39,default:0},WEBCODEC_ENCODE_OPT_1ON1:{index:41,default:0},CAP_WEBCODEC_SUPPORT:{index:42,default:0},WEBRTC_STG:{index:43,default:0},WEBGL_CANVAS_OPTION_OPT:{index:44,default:1},DEFAULT_RENDERER:{index:45,default:3},WEB_TRANSPORT_CONTROL:{index:46,default:0},ENABLE_TP_RLB_WEBSOCKET:{index:47,default:0},ENABLE_TRANSFERABLE_RTC_DATACHANNEL:{index:48,default:1},ENABLE_WEBRTC_FEATURE:{index:49,default:0},WEBRTC_SMART_AUTO_STG_1:{index:50,default:0,candidates:{NO_CONFIG:0,MOB_ANDROID:1,MOB_IOS:2,DESKTOP:4,SAB_OFF_NO_OFFSCREENCANVAS_NO_GPU:8}},WEBRTC_SMART_AUTO_STG_2:{index:51,default:0,candidates:{NO_CONFIG:0,AUDIO_ON_BROWSER_32BIT:1,VIDEO_ON_BROWSER_32BIT:2,DESKTOP_LOW_PERF_DEVICE:4}},ENABLE_WEBRTC_TURN_SERVERS:{index:52,default:0},EXTRA_DEVICE_INTERVAL_ENUMERATE:{index:53,default:0,candidates:{DISABLE:0,ENABLE:1}},ENABLE_MEDIA_PROCESSOR:{index:54,default:0,candidates:{NONE:0,VIDEO_PROCESSOR:1,AUDIO_PROCESSOR:2,SHARE_PROCESSOR:4}},MOBILE_FORCE_AUTO_CHOOSE_AUDIO_DEVICE:{index:55,default:0,candidates:{DISABLE:0,IOS:1,ANDROID:2,ANDROID_EARPIECE:4}},ENABLE_TRANSFERABLE_MEDIA_STREAM_TRACK:{index:56,default:0,candidates:{DISABLE:0,ENABLE:1}},WEBRTC_SMART_AUTO_STG_3:{index:57,default:0,candidates:{NO_CONFIG:0,WEBCODEC_NOT_SUPPORT:1}},WEBRTC_SMART_AUTO_STG_4:{index:58,default:0,candidates:{NO_CONFIG:0}},WASM_MOBILE_30FPS:{index:59,default:0},ENABLE_FALLBACK_TO_TAG_RENDERER:{index:61,default:0,candidates:{NO_CONFIG:0,FALLBACK_TO_TAG_RENDERER_ON_CHROME:1,FALLBACK_TO_TAG_RENDERER_ON_SAFARI:2,FALLBACK_TO_TAG_RENDERER_ON_FIREFOX:4}},ENABLE_WASM_TAG_RENDERER:{index:62,default:0,candidates:{NO_CONFIG:0,TAG_RENDERER_ON_CHROME:1,TAG_RENDERER_ON_SAFARI:2,TAG_RENDERER_ON_FIREFOX:4}},ENABLE_WEBRTC_AUDIO_2_0:{index:63,default:0,candidates:{DISABLE:0,ENABLE:1}},SUPPORT_ANNOTATION:{index:64,default:0,candidates:{VIEWER:1,PRESENTER:2}},ANDROID_WEBCODEC_CAP:{index:65,default:2,candidates:{DISABLE_ENCODER:1,DISABLE_DECODER:2}},HW_ENC_ENABLE_L1T1:{index:66,default:0,candidates:{DISABLE:0,ANDROID:1,CHROMEOS:2,HARMONY:4,ALL:8}},ENABLE_MESH:{index:67,default:0,candidates:{WEBNIAR:2,WITHSTUN:3,ALLOWTALK_ENABLE:64}},MESH_NODE:{index:68,default:11},SUPPORT_AV_SIMULTANEOUS_FALLBACK:{index:70,default:0,candidates:{DISABLE:0,ENABLE:1}},ENABLE_FALLBACK_WEBRTC_AUDIO_STG:{index:69,default:0,candidates:{DISABLE:0,ENABLE:1}},ENABLE_CLONE_AUDIO_STREAM:{index:71,default:0,candidates:{DISABLE:0,ENABLE:1}}}},5830:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var r=i(5408);const s=class{static read(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!e)return r.Ay.error("[ABOptionsReader] error in read(): options(".concat(e,") is invalid, ").concat(t,", ").concat(i,", ").concat(s)),s;const a=e.length;if(t<0||i<=0||t>a||t+i-1>a)return r.Ay.warn("[ABOptionsReader] error in read(): invalid parameters! opLen=".concat(a,", bitIndex=").concat(t,", readCount=").concat(i)),s;const o=a-t-i+1,n=a-t+1;try{const t=e.slice(o,n),i=parseInt(t,16);return isNaN(i)?s:i}catch(e){r.Ay.error("[ABOptionsReader] error in read()",e)}return s}static batchRead(e,t){const i=new Map;for(let r=0;r<t.length;r++){const{bitIndex:s,readCount:a=1,defaultVal:o=0}=t[r],n=this.read(e,s,a,o);i.set(s,n)}return i}}},2754:(e,t,i)=>{"use strict";i.d(t,{HB:()=>n,KR:()=>d,Yu:()=>o,vA:()=>a});var r=i(1241),s=i(9415);const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e)return;const i=new Error(t);if((0,s.B)().tracing.Log_Error("Assert: ".concat(t),i),r._)throw i},o=function(e){const t=new Error(e);if((0,s.B)().tracing.Log_Error("AssertWithFailed: ".concat(e),t),r._)throw t},n=function(){const e=new Error("Unreachable code reached!");if((0,s.B)().tracing.Log_Error("Unreachable!",e),r._)throw e},d=function(){const e=new Error("call abstract method!");if((0,s.B)().tracing.Log_Error("AbstractMethod!",e),r._)throw e}},3323:(e,t,i)=>{"use strict";i.d(t,{bQ:()=>s,ey:()=>o});var r=i(5408);class s{constructor(e){this.options=Object.assign({analyserFrequent:100},e||{}),this.asnTime=performance.now(),this.audioStream=null,this.analyserNodeBufferDataArray=null,this.audioCtx=null,this.destinationNode=null,"function"==typeof AudioContext&&(this.audioCtx=new window.AudioContext,this.destinationNode=new MediaStreamAudioDestinationNode(this.audioCtx),this.initAnalyserNode()),this.lastUILevel=0}initAnalyserNode(){this.analyserNode=this.audioCtx.createAnalyser(),this.analyserNode.connect(this.destinationNode),this.analyserNode.fftSize=1024}setAudioStream(e){this.audioStream=e}start(){if(this.audioCtx)return this.getAnalyzingStatus()&&this.stop(),this.getDestroyedStatus()?Promise.reject(new Error("instance is destroyed already")):new Promise((e=>{this.setAnalyzingStatus(!0),this.sourceNode=this.audioCtx.createMediaStreamSource(this.audioStream),this.sourceNode.connect(this.analyserNode),this.resumeAudioCtx(),this.setAnalyzeInterval(),e(!0)}))}stop(){this.setAnalyzingStatus(!1),this.clearAnalyzeInterval()}destroy(){var e;this.stop(),this.analyserNode&&this.destinationNode&&this.analyserNode.disconnect(this.destinationNode),this.setDestroyedStatus(!0),null===(e=this.audioCtx)||void 0===e||e.suspend().finally((()=>{var e;return null===(e=this.audioCtx)||void 0===e?void 0:e.close()})),this.audioStream=null,this.analyserNodeBufferDataArray=null}analyserNodeIntervalCallback(){if(!this.analyserNodeBufferDataArray)return;this.analyserNode.getFloatTimeDomainData(this.analyserNodeBufferDataArray);let{sumRms:e,absMax:t}=function(e){let t=0,i=0;for(let r=0;r<e.length;r+=2){i+=e[r]*e[r];let s=Math.abs(e[r]);s>t&&(t=s)}return t=t>1?1:t,{sumRms:i/e.length/2,absMax:t}}(this.analyserNodeBufferDataArray);const i=o(t);i!==this.lastUILevel&&(this.lastUILevel=i,this.options.analyserCallback(i))}setAnalyzeInterval(){this.clearAnalyzeInterval();const e=this.analyserNode.fftSize;this.analyserNodeBufferDataArray=new Float32Array(e),this.analyserNodeTimer=window.setInterval(this.analyserNodeIntervalCallback.bind(this),this.options.analyserFrequent)}clearAnalyzeInterval(){this.analyserNodeTimer&&(window.clearInterval(this.analyserNodeTimer),this.analyserNodeTimer=null,this.analyserNodeBufferDataArray=null)}getAnalyzingStatus(){return!!this.isAnalyzing}setAnalyzingStatus(e){this.isAnalyzing=!!e}getDestroyedStatus(){return!!this.isDestroyed}setDestroyedStatus(e){this.isDestroyed=!!e}resumeAudioCtx(){"running"!==this.audioCtx.state&&this.audioCtx.resume().catch((e=>{r.Ay.error("audio-level audio context resume error: ",e)}))}}const a=[0,1,2,3,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,8,9,9,9,9,9,9,9,9,9,9,9];function o(e){if("number"!=typeof e||e<0||e>1)return-1;let t=Math.floor(32768*e/1e3);return 0==t&&e>250&&(t=1),a[t]}},9482:(e,t,i)=>{"use strict";i.d(t,{BX:()=>h,Go:()=>a,Tl:()=>n,Xt:()=>o,_c:()=>d,d:()=>c,is:()=>l,oB:()=>s,wd:()=>r});const r={ZOOM_CONNECTION_COMMAND:0,ZOOM_CONNECTION_AUDIO:1,ZOOM_CONNECTION_VIDEO:2,ZOOM_CONNECTION_SHARING_JPEG:3,ZOOM_CONNECTION_SHARING_VIDEO:4,ZOOM_CONNECTION_MEDIA_LOG:5,ZOOM_CONNECTION_SHARING_REMOTE_CONTROL:6,ZOOM_CONNECTION_UNKNOW:7},s={NET_WEBSOCKET:0,NET_DATACHANNEL:1,NET_WEBTRANSPORT:2},a={encode:1,decode:2},o={AUDIO:1,SHARING:2,VIDEO:3,MESH:4},n={UNKNOWN:0,WIN:1,MAC:2,PAD:3,MOBILE:4,CALL_IN:5,LINUX:6,WEB:7,CHROME:8},d={VIDEO_ENCODE:"0",VIDEO_DECODE:"1",AUDIO_ENCODE:"2",AUDIO_DECODE:"3",SHARING_ENCODE:"4",SHARING_DECODE:"5",WORKER_SERVICE:"6",NET:"net",MESH:"mesh"},c=(()=>{const e={};for(const t in d)e[d[t]]="WCL_"+t;return e})(),h={ComputerAudio_Null:0,ComputerAudio_Connecting:1,ComputerAudio_Connected:2,DesktopAudio_Null:0,DesktopAudio_Connecting:1,DesktopAudio_Connected:2},l={[d.AUDIO_ENCODE]:"audio.encode",[d.AUDIO_DECODE]:"audio.decode",[d.VIDEO_ENCODE]:"video.encode",[d.VIDEO_DECODE]:"video.decode",[d.SHARING_ENCODE]:"share.encode",[d.SHARING_DECODE]:"share.decode",[d.NET]:"net.thread",[d.MESH]:"mesh.thread"}},5600:(e,t,i)=>{"use strict";i.d(t,{S_:()=>l,Yd:()=>c,r1:()=>h,r9:()=>d});var r=i(9407),s=i(1461),a=i(5408),o=i(701);const n="function"!=typeof importScripts;function d(e){postMessage({status:r.Bi,data:e})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n?a.Ay.error(e,t):h(e,t)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;var i,s;if(t instanceof Error||t instanceof ErrorEvent){const r=t;e+=" Code: "+(null==r?void 0:r.code)+" Message: "+(null==t?void 0:t.message)+" Stack: "+(null!==(s=null===(i=null==r?void 0:r.error)||void 0===i?void 0:i.stack)&&void 0!==s?s:null==r?void 0:r.stack),t=null}postMessage({status:r.AC,errorMessage:e,errorEvent:t})}function l(e){n?(0,o.iK)(s.AoB,e):postMessage({status:r.V_,where:e})}},9470:(e,t,i)=>{"use strict";i.d(t,{H0:()=>s,JF:()=>l,LZ:()=>o,PF:()=>u,b2:()=>d,cO:()=>h,i$:()=>n});var r=i(8935);const s=()=>r.gG.browser||{},a=(e,t)=>{const{version:i}=s();return"chrome"!==e&&"chromium"!==e||!((0,r._J)()||(0,r.UP)()||(0,r.GQ)())?!!{safari:(0,r.nr)(),edge:(0,r.UP)(),firefox:(0,r.gm)(),opera:(0,r.GQ)(),ie:(0,r.lT)()}[e]&&(0,r.D$)(i,String(t)):(0,r.D$)(i,String(t))},o=function(){return a("chrome",arguments.length>0&&void 0!==arguments[0]?arguments[0]:90)},n=e=>a("firefox",e),d=e=>a("safari",e);function c(e,t,i){const r=e.match(t);return r&&r.length>=i&&parseInt(r[i],10)}const h=()=>{if("undefined"==typeof window||!window.navigator)return{browser:"",version:""};const{major:e}=s(),t=parseInt(e,10);return(0,r._J)()?(0,r.n_)()?{browser:"safari",version:c(navigator.userAgent,/AppleWebKit\/(\d+)\./,1)}:{browser:"chrome",version:t}:(0,r.gm)()?{browser:"firefox",version:t}:(0,r.UP)()?{browser:"edge",version:t}:(0,r.nr)()?{browser:"safari",version:c(navigator.userAgent,/AppleWebKit\/(\d+)\./,1)}:{browser:"",version:""}},l=()=>{const{major:e}=s();return e?parseInt(e,10):"other"},u=()=>{var e,t,i,s,a;try{let o={osType:0,os:"",osVersion:"",browser:{},kernal:{}};const n=Object.assign({},r.gG);"Chromium"===(null===(e=null==n?void 0:n.browser)||void 0===e?void 0:e.name)&&(n.browser.name="Chrome");let d="tablet"==(null===(t=null==n?void 0:n.device)||void 0===t?void 0:t.type)||(0,r.Pg)(),c="mobile"==(null===(i=null==n?void 0:n.device)||void 0===i?void 0:i.type)||(0,r.Xb)(),h=null===(s=null==n?void 0:n.os)||void 0===s?void 0:s.name,l=null===(a=null==n?void 0:n.os)||void 0===a?void 0:a.version,u=0;if(d?u=4:c&&(u=1),!h){const e=navigator.userAgent.match(/\(([^;]+); OpenHarmony ([\d.]+)\)/);e&&e.length>2&&(h="OpenHarmony",l=e[2],"Tablet"===e[1]?u=4:"Phone"===e[1]&&(u=1))}return o.osType=u,o.osVersion=l,o.browser=Object.assign({},n.browser),o.kernal=Object.assign({},n.engine),o.os=h,navigator.userAgentData||((null==h?void 0:h.toLowerCase().includes("mac"))&&(d||c)&&(o.os="iOS"),(null==h?void 0:h.toLowerCase().includes("linux"))&&(d||c)&&(o.os="Android")),o}catch(e){return{}}}},9415:(e,t,i)=>{"use strict";let r;function s(e){r=e}i.d(t,{B:()=>a,d:()=>s});const a=()=>r},5999:(e,t,i)=>{"use strict";var r;i.d(t,{Mr:()=>a,f7:()=>s,xv:()=>o,zu:()=>r}),function(e){e.MainAudio="MainAudio",e.ShareAudio="ShareAudio",e.MainVideo="MainVideo",e.ShareVideo="ShareVideo"}(r||(r={}));const s={Track:"Track",CodecsChange:"CodecsChange",SignalingStateChange:"SignalingStateChange",IceConnectionStateChange:"IceConnectionStateChange",ConnectionStateChange:"ConnectionStateChange",NegotiationNeeded:"NegotiationNeeded",IceGatheringStateChange:"IceGatheringStateChange",IceCandidateError:"IceCandidateError",StatsReport:"StatsReport",LocalCandidateStats:"LocalCandidateStats",RemoteCandidateStats:"RemoteCandidateStats",CandidatePairStats:"CandidatePairStats",TransportStats:"TransportStats",MediaSourceStats:"MediaSourceStats",OutboundRtpStats:"OutboundRtpStats",RemoteInboundRtpStats:"RemoteInboundRtpStats",InboundRtpStats:"InboundRtpStats",RemoteOutboundRtpStats:"RemoteOutboundRtpStats"},a=1e3;function o(e){switch(e){case r.MainAudio:case r.ShareAudio:return"audio";case r.MainVideo:case r.ShareVideo:return"video";default:return}}},9102:(e,t,i)=>{"use strict";i.d(t,{e:()=>A});var r=i(6984),s=i.n(r),a=i(1241),o=i(3750),n=i(2754),d=i(9407),c=i(5408),h=i(9415),l=i(3021);class u{constructor(e,t){this._connection=null,this._services=[],this._registerPromise=null,this._serviceName=e,this._serviceCtor=t}register(e){if(null!==this._registerPromise)return;const t=new MessageChannel;this._connection=new o.E(t.port1,{requestPort:e=>{const t=this.accquirePort(e);return this._connection.transfer(t)}}),this._registerPromise=l.D.registerService(this._serviceName,l.D.transfer(t.port2),e)}unregister(){if(null===this._registerPromise)return;const e=this._connection;this._registerPromise.then((t=>{l.D.unregisterService(this._serviceName,t),e.close()})),this._connection=null,this._registerPromise=null}registerPromise(){return e=this,t=void 0,r=function*(){return this._registerPromise.then((e=>e>=0))},new((i=void 0)||(i=Promise))((function(s,a){function o(e){try{d(r.next(e))}catch(e){a(e)}}function n(e){try{d(r.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,n)}d((r=r.apply(e,t||[])).next())}));var e,t,i,r}accquirePort(e){const t=new MessageChannel,i=new this._serviceCtor(e);return new o.E(t.port1,i).onClose=()=>{this._services.splice(this._services.indexOf(i),1),i.closeService()},this._services.push(i),t.port2}close(){this.unregister();for(const e of this._services)e.closeService(),e.connection.close();this._services=[]}}class p{constructor(e,t){this._provider=null,this._serviceName=e,this._serviceCtor=t}exposed(){return null!==this._provider}exposeService(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._provider||(this._provider=new u(this._serviceName,this._serviceCtor)),t&&this._provider.register(e),this._provider}unexposeService(){this._provider&&this._provider.unregister()}}var f=i(5600),m=function(e,t,i,r){return new(i||(i=Promise))((function(s,a){function o(e){try{d(r.next(e))}catch(e){a(e)}}function n(e){try{d(r.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,n)}d((r=r.apply(e,t||[])).next())}))};class g{constructor(){this.nextServiceId=0,this.serviceMap=new Map,this.loadingServiceModules=new Map,this.loadedServiceModules=new Set}clear(){for(const[e,t]of this.serviceMap)for(const{connection:e}of t)e.close();this.serviceMap.clear()}}let v=new g;class _ extends l.k{closeService(){(0,n.HB)()}registerService(e,t,i){const r=v.nextServiceId++,s=new o.E(t),a=v.serviceMap.get(e),n={serviceId:r,connection:s,constraints:i};return a?a.push(n):v.serviceMap.set(e,[n]),r}unregisterService(e,t){const i=v.serviceMap.get(e);if(!i)return;const r=i.findIndex((e=>e.serviceId===t));i.splice(r,1)}_fetchBlob(e){return m(this,void 0,void 0,(function*(){const t=(0,h.B)().config.getBaseScriptUrl(),i="".concat(t,"/").concat(e,".min.js"),r=yield fetch(i),s=yield r.arrayBuffer();return new Blob([s],{type:"application/javascript"})}))}_loadServiceModule(e){return new Promise((t=>{this._fetchBlob(e).then((i=>{const r=s().createObjectURL(i);let n;n=a._?new Worker(r,{name:e}):new Worker(r),n.onerror=i=>{(0,f.Yd)("Load service ".concat(e,": worker error!!"),i),t(!1)},n.onmessage=e=>{const t=e.data;if(t.status===d.AC)if("low"==t.level)c.Ay.directReport("".concat(t.errorMessage));else{const e="Error from worker service: ".concat(t.errorMessage);-1==e.indexOf("E:H")&&c.Ay.error(e,t.errorEvent)}};const l=new o.E(n),u=(0,h.B)().config;return l.remotePeerProxy.load(l.transfer(A.exposeService().accquirePort()),{renderUserAgentInfo:(0,h.B)().userAgent.info(),renderCapabilitiesDesc:(0,h.B)().capabilities.desc(),renderConfigDesc:u.desc()})})).then((e=>{t(e)})).catch((i=>{(0,f.Yd)("Load service ".concat(e," error!!"),i),t(!1)}))}))}findService(e,t){return m(this,void 0,void 0,(function*(){let t=v,i=t.serviceMap.get(e);if(!i||0===i.length){const i=e.split("/");(0,n.vA)(2===i.length);const r=i[0