@agora-js/shared
Version:
internal utils shared across @agora-js packages
5 lines (4 loc) • 254 kB
JavaScript
/**
* AgoraWebSDK_N-v4.24.2-0-g002485b1-dirty Copyright AgoraInc.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).AgoraRTCShared={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math===Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},s=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=s,c=Function.prototype,u=c.apply,d=c.call,l="object"==typeof Reflect&&Reflect.apply||(a?d.bind(u):function(){return d.apply(u,arguments)}),E=s,p=Function.prototype,h=p.call,f=E&&p.bind.bind(h,h),_=E?f:function(e){return function(){return h.apply(e,arguments)}},m=_,T=m({}.toString),R=m("".slice),A=function(e){return R(T(e),8,-1)},S=A,O=_,I=function(e){if("Function"===S(e))return O(e)},b="object"==typeof document&&document.all,g=void 0===b&&void 0!==b?function(e){return"function"==typeof e||e===b}:function(e){return"function"==typeof e},N={},C=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=s,w=Function.prototype.call,v=y?w.bind(w):function(){return w.apply(w,arguments)},D={},L={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,M=P&&!L.call({1:2},1);D.f=M?function(e){var t=P(this,e);return!!t&&t.enumerable}:L;var U,F,k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=o,B=A,V=Object,j=_("".split),K=x((function(){return!V("z").propertyIsEnumerable(0)}))?function(e){return"String"===B(e)?j(e,""):V(e)}:V,G=function(e){return null==e},W=G,H=TypeError,Y=function(e){if(W(e))throw new H("Can't call method on "+e);return e},z=K,q=Y,J=function(e){return z(q(e))},X=g,Q=function(e){return"object"==typeof e?null!==e:X(e)},$={},Z=$,ee=i,te=g,re=function(e){return te(e)?e:void 0},ne=function(e,t){return arguments.length<2?re(Z[e])||re(ee[e]):Z[e]&&Z[e][t]||ee[e]&&ee[e][t]},ie=_({}.isPrototypeOf),oe=i.navigator,se=oe&&oe.userAgent,ae=se?String(se):"",ce=i,ue=ae,de=ce.process,le=ce.Deno,Ee=de&&de.versions||le&&le.version,pe=Ee&&Ee.v8;pe&&(F=(U=pe.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!F&&ue&&(!(U=ue.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=ue.match(/Chrome\/(\d+)/))&&(F=+U[1]);var he=F,fe=he,_e=o,me=i.String,Te=!!Object.getOwnPropertySymbols&&!_e((function(){var e=Symbol("symbol detection");return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fe&&fe<41})),Re=Te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ae=ne,Se=g,Oe=ie,Ie=Object,be=Re?function(e){return"symbol"==typeof e}:function(e){var t=Ae("Symbol");return Se(t)&&Oe(t.prototype,Ie(e))},ge=String,Ne=function(e){try{return ge(e)}catch(e){return"Object"}},Ce=g,ye=Ne,we=TypeError,ve=function(e){if(Ce(e))return e;throw new we(ye(e)+" is not a function")},De=ve,Le=G,Pe=function(e,t){var r=e[t];return Le(r)?void 0:De(r)},Me=v,Ue=g,Fe=Q,ke=TypeError,xe={exports:{}},Be=i,Ve=Object.defineProperty,je=i,Ke=function(e,t){try{Ve(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},Ge="__core-js_shared__",We=xe.exports=je[Ge]||Ke(Ge,{});(We.versions||(We.versions=[])).push({version:"3.46.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var He=xe.exports,Ye=He,ze=function(e,t){return Ye[e]||(Ye[e]=t||{})},qe=Y,Je=Object,Xe=function(e){return Je(qe(e))},Qe=Xe,$e=_({}.hasOwnProperty),Ze=Object.hasOwn||function(e,t){return $e(Qe(e),t)},et=_,tt=0,rt=Math.random(),nt=et(1.1.toString),it=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nt(++tt+rt,36)},ot=ze,st=Ze,at=it,ct=Te,ut=Re,dt=i.Symbol,lt=ot("wks"),Et=ut?dt.for||dt:dt&&dt.withoutSetter||at,pt=function(e){return st(lt,e)||(lt[e]=ct&&st(dt,e)?dt[e]:Et("Symbol."+e)),lt[e]},ht=v,ft=Q,_t=be,mt=Pe,Tt=function(e,t){var r,n;if("string"===t&&Ue(r=e.toString)&&!Fe(n=Me(r,e)))return n;if(Ue(r=e.valueOf)&&!Fe(n=Me(r,e)))return n;if("string"!==t&&Ue(r=e.toString)&&!Fe(n=Me(r,e)))return n;throw new ke("Can't convert object to primitive value")},Rt=TypeError,At=pt("toPrimitive"),St=function(e,t){if(!ft(e)||_t(e))return e;var r,n=mt(e,At);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!ft(r)||_t(r))return r;throw new Rt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tt(e,t)},Ot=be,It=function(e){var t=St(e,"string");return Ot(t)?t:t+""},bt=Q,gt=i.document,Nt=bt(gt)&&bt(gt.createElement),Ct=function(e){return Nt?gt.createElement(e):{}},yt=Ct,wt=!C&&!o((function(){return 7!==Object.defineProperty(yt("div"),"a",{get:function(){return 7}}).a})),vt=C,Dt=v,Lt=D,Pt=k,Mt=J,Ut=It,Ft=Ze,kt=wt,xt=Object.getOwnPropertyDescriptor;N.f=vt?xt:function(e,t){if(e=Mt(e),t=Ut(t),kt)try{return xt(e,t)}catch(e){}if(Ft(e,t))return Pt(!Dt(Lt.f,e,t),e[t])};var Bt=o,Vt=g,jt=/#|\.prototype\./,Kt=function(e,t){var r=Wt[Gt(e)];return r===Yt||r!==Ht&&(Vt(t)?Bt(t):!!t)},Gt=Kt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},Wt=Kt.data={},Ht=Kt.NATIVE="N",Yt=Kt.POLYFILL="P",zt=Kt,qt=ve,Jt=s,Xt=I(I.bind),Qt=function(e,t){return qt(e),void 0===t?e:Jt?Xt(e,t):function(){return e.apply(t,arguments)}},$t={},Zt=C&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),er=Q,tr=String,rr=TypeError,nr=function(e){if(er(e))return e;throw new rr(tr(e)+" is not an object")},ir=C,or=wt,sr=Zt,ar=nr,cr=It,ur=TypeError,dr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,Er="enumerable",pr="configurable",hr="writable";$t.f=ir?sr?function(e,t,r){if(ar(e),t=cr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=lr(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:Er in r?r[Er]:n[Er],writable:!1})}return dr(e,t,r)}:dr:function(e,t,r){if(ar(e),t=cr(t),ar(r),or)try{return dr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new ur("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var fr=$t,_r=k,mr=C?function(e,t,r){return fr.f(e,t,_r(1,r))}:function(e,t,r){return e[t]=r,e},Tr=i,Rr=l,Ar=I,Sr=g,Or=N.f,Ir=zt,br=$,gr=Qt,Nr=mr,Cr=Ze,yr=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return Rr(e,this,arguments)};return t.prototype=e.prototype,t},wr=function(e,t){var r,n,i,o,s,a,c,u,d,l=e.target,E=e.global,p=e.stat,h=e.proto,f=E?Tr:p?Tr[l]:Tr[l]&&Tr[l].prototype,_=E?br:br[l]||Nr(br,l,{})[l],m=_.prototype;for(o in t)n=!(r=Ir(E?o:l+(p?".":"#")+o,e.forced))&&f&&Cr(f,o),a=_[o],n&&(c=e.dontCallGetSet?(d=Or(f,o))&&d.value:f[o]),s=n&&c?c:t[o],(r||h||typeof a!=typeof s)&&(u=e.bind&&n?gr(s,Tr):e.wrap&&n?yr(s):h&&Sr(s)?Ar(s):s,(e.sham||s&&s.sham||a&&a.sham)&&Nr(u,"sham",!0),Nr(_,o,u),h&&(Cr(br,i=l+"Prototype")||Nr(br,i,{}),Nr(br[i],o,s),e.real&&m&&(r||!m[o])&&Nr(m,o,s)))},vr=it,Dr=ze("keys"),Lr=function(e){return Dr[e]||(Dr[e]=vr(e))},Pr=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mr=Ze,Ur=g,Fr=Xe,kr=Pr,xr=Lr("IE_PROTO"),Br=Object,Vr=Br.prototype,jr=kr?Br.getPrototypeOf:function(e){var t=Fr(e);if(Mr(t,xr))return t[xr];var r=t.constructor;return Ur(r)&&t instanceof r?r.prototype:t instanceof Br?Vr:null},Kr=_,Gr=ve,Wr=Q,Hr=function(e){return Wr(e)||null===e},Yr=String,zr=TypeError,qr=function(e,t,r){try{return Kr(Gr(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Jr=Q,Xr=Y,Qr=function(e){if(Hr(e))return e;throw new zr("Can't set "+Yr(e)+" as a prototype")},$r=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=qr(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Xr(r),Qr(n),Jr(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Zr={},en=Math.ceil,tn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?tn:en)(t)},nn=function(e){var t=+e;return t!=t||0===t?0:rn(t)},on=nn,sn=Math.max,an=Math.min,cn=nn,un=Math.min,dn=function(e){var t=cn(e);return t>0?un(t,9007199254740991):0},ln=function(e){return dn(e.length)},En=J,pn=function(e,t){var r=on(e);return r<0?sn(r+t,0):an(r,t)},hn=ln,fn=function(e){return function(t,r,n){var i=En(t),o=hn(i);if(0===o)return!e&&-1;var s,a=pn(n,o);if(e&&r!=r){for(;o>a;)if((s=i[a++])!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}},_n={includes:fn(!0),indexOf:fn(!1)},mn={},Tn=Ze,Rn=J,An=_n.indexOf,Sn=mn,On=_([].push),In=function(e,t){var r,n=Rn(e),i=0,o=[];for(r in n)!Tn(Sn,r)&&Tn(n,r)&&On(o,r);for(;t.length>i;)Tn(n,r=t[i++])&&(~An(o,r)||On(o,r));return o},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gn=In,Nn=bn.concat("length","prototype");Zr.f=Object.getOwnPropertyNames||function(e){return gn(e,Nn)};var Cn={};Cn.f=Object.getOwnPropertySymbols;var yn=ne,wn=Zr,vn=Cn,Dn=nr,Ln=_([].concat),Pn=yn("Reflect","ownKeys")||function(e){var t=wn.f(Dn(e)),r=vn.f;return r?Ln(t,r(e)):t},Mn=Ze,Un=Pn,Fn=N,kn=$t,xn={},Bn=In,Vn=bn,jn=Object.keys||function(e){return Bn(e,Vn)},Kn=C,Gn=Zt,Wn=$t,Hn=nr,Yn=J,zn=jn;xn.f=Kn&&!Gn?Object.defineProperties:function(e,t){Hn(e);for(var r,n=Yn(t),i=zn(t),o=i.length,s=0;o>s;)Wn.f(e,r=i[s++],n[r]);return e};var qn,Jn=ne("document","documentElement"),Xn=nr,Qn=xn,$n=bn,Zn=mn,ei=Jn,ti=Ct,ri="prototype",ni="script",ii=Lr("IE_PROTO"),oi=function(){},si=function(e){return"<"+ni+">"+e+"</"+ni+">"},ai=function(e){e.write(si("")),e.close();var t=e.parentWindow.Object;return e=null,t},ci=function(){try{qn=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;ci="undefined"!=typeof document?document.domain&&qn?ai(qn):(t=ti("iframe"),r="java"+ni+":",t.style.display="none",ei.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(si("document.F=Object")),e.close(),e.F):ai(qn);for(var n=$n.length;n--;)delete ci[ri][$n[n]];return ci()};Zn[ii]=!0;var ui=Object.create||function(e,t){var r;return null!==e?(oi[ri]=Xn(e),r=new oi,oi[ri]=null,r[ii]=e):r=ci(),void 0===t?r:Qn.f(r,t)},di=Q,li=mr,Ei=Error,pi=_("".replace),hi=String(new Ei("zxcasd").stack),fi=/\n\s*at [^:]*:[^\n]*/,_i=fi.test(hi),mi=k,Ti=!o((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",mi(1,7)),7!==e.stack)})),Ri=mr,Ai=function(e,t){if(_i&&"string"==typeof e&&!Ei.prepareStackTrace)for(;t--;)e=pi(e,fi,"");return e},Si=Ti,Oi=Error.captureStackTrace,Ii={},bi=Ii,gi=pt("iterator"),Ni=Array.prototype,Ci={};Ci[pt("toStringTag")]="z";var yi="[object z]"===String(Ci),wi=yi,vi=g,Di=A,Li=pt("toStringTag"),Pi=Object,Mi="Arguments"===Di(function(){return arguments}()),Ui=wi?Di:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Pi(e),Li))?r:Mi?Di(t):"Object"===(n=Di(t))&&vi(t.callee)?"Arguments":n},Fi=Ui,ki=Pe,xi=G,Bi=Ii,Vi=pt("iterator"),ji=function(e){if(!xi(e))return ki(e,Vi)||ki(e,"@@iterator")||Bi[Fi(e)]},Ki=v,Gi=ve,Wi=nr,Hi=Ne,Yi=ji,zi=TypeError,qi=v,Ji=nr,Xi=Pe,Qi=Qt,$i=v,Zi=nr,eo=Ne,to=function(e){return void 0!==e&&(bi.Array===e||Ni[gi]===e)},ro=ln,no=ie,io=function(e,t){var r=arguments.length<2?Yi(e):t;if(Gi(r))return Wi(Ki(r,e));throw new zi(Hi(e)+" is not iterable")},oo=ji,so=function(e,t,r){var n,i;Ji(e);try{if(!(n=Xi(e,"return"))){if("throw"===t)throw r;return r}n=qi(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Ji(n),r},ao=TypeError,co=function(e,t){this.stopped=e,this.result=t},uo=co.prototype,lo=function(e,t,r){var n,i,o,s,a,c,u,d=r&&r.that,l=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),f=Qi(t,d),_=function(e){return n&&so(n,"normal"),new co(!0,e)},m=function(e){return l?(Zi(e),h?f(e[0],e[1],_):f(e[0],e[1])):h?f(e,_):f(e)};if(E)n=e.iterator;else if(p)n=e;else{if(!(i=oo(e)))throw new ao(eo(e)+" is not iterable");if(to(i)){for(o=0,s=ro(e);s>o;o++)if((a=m(e[o]))&&no(uo,a))return a;return new co(!1)}n=io(e,i)}for(c=E?e.next:n.next;!(u=$i(c,n)).done;){try{a=m(u.value)}catch(e){so(n,"throw",e)}if("object"==typeof a&&a&&no(uo,a))return a}return new co(!1)},Eo=Ui,po=String,ho=function(e){if("Symbol"===Eo(e))throw new TypeError("Cannot convert a Symbol value to a string");return po(e)},fo=ho,_o=wr,mo=ie,To=jr,Ro=$r,Ao=function(e,t,r){for(var n=Un(t),i=kn.f,o=Fn.f,s=0;s<n.length;s++){var a=n[s];Mn(e,a)||r&&Mn(r,a)||i(e,a,o(t,a))}},So=ui,Oo=mr,Io=k,bo=function(e,t){di(t)&&"cause"in t&&li(e,"cause",t.cause)},go=function(e,t,r,n){Si&&(Oi?Oi(e,t):Ri(e,"stack",Ai(r,n)))},No=lo,Co=function(e,t){return void 0===e?arguments.length<2?"":t:fo(e)},yo=pt("toStringTag"),wo=Error,vo=[].push,Do=function(e,t){var r,n=mo(Lo,this);Ro?r=Ro(new wo,n?To(this):Lo):(r=n?this:So(Lo),Oo(r,yo,"Error")),void 0!==t&&Oo(r,"message",Co(t)),go(r,Do,r.stack,1),arguments.length>2&&bo(r,arguments[2]);var i=[];return No(e,vo,{that:i}),Oo(r,"errors",i),r};Ro?Ro(Do,wo):Ao(Do,wo,{name:!0});var Lo=Do.prototype=So(wo.prototype,{constructor:Io(1,Do),message:Io(1,""),name:Io(1,"AggregateError")});_o({global:!0,constructor:!0,arity:2},{AggregateError:Do});var Po,Mo,Uo,Fo=g,ko=i.WeakMap,xo=Fo(ko)&&/native code/.test(String(ko)),Bo=i,Vo=Q,jo=mr,Ko=Ze,Go=He,Wo=Lr,Ho=mn,Yo="Object already initialized",zo=Bo.TypeError,qo=Bo.WeakMap;if(xo||Go.state){var Jo=Go.state||(Go.state=new qo);Jo.get=Jo.get,Jo.has=Jo.has,Jo.set=Jo.set,Po=function(e,t){if(Jo.has(e))throw new zo(Yo);return t.facade=e,Jo.set(e,t),t},Mo=function(e){return Jo.get(e)||{}},Uo=function(e){return Jo.has(e)}}else{var Xo=Wo("state");Ho[Xo]=!0,Po=function(e,t){if(Ko(e,Xo))throw new zo(Yo);return t.facade=e,jo(e,Xo,t),t},Mo=function(e){return Ko(e,Xo)?e[Xo]:{}},Uo=function(e){return Ko(e,Xo)}}var Qo,$o,Zo,es={set:Po,get:Mo,has:Uo,enforce:function(e){return Uo(e)?Mo(e):Po(e,{})},getterFor:function(e){return function(t){var r;if(!Vo(t)||(r=Mo(t)).type!==e)throw new zo("Incompatible receiver, "+e+" required");return r}}},ts=C,rs=Ze,ns=Function.prototype,is=ts&&Object.getOwnPropertyDescriptor,os=rs(ns,"name"),ss={EXISTS:os,PROPER:os&&"something"===function(){}.name,CONFIGURABLE:os&&(!ts||ts&&is(ns,"name").configurable)},as=mr,cs=function(e,t,r,n){return n&&n.enumerable?e[t]=r:as(e,t,r),e},us=o,ds=g,ls=Q,Es=ui,ps=jr,hs=cs,fs=pt("iterator"),_s=!1;[].keys&&("next"in(Zo=[].keys())?($o=ps(ps(Zo)))!==Object.prototype&&(Qo=$o):_s=!0);var ms=!ls(Qo)||us((function(){var e={};return Qo[fs].call(e)!==e}));ds((Qo=ms?{}:Es(Qo))[fs])||hs(Qo,fs,(function(){return this}));var Ts={IteratorPrototype:Qo,BUGGY_SAFARI_ITERATORS:_s},Rs=Ui,As=yi?{}.toString:function(){return"[object "+Rs(this)+"]"},Ss=yi,Os=$t.f,Is=mr,bs=Ze,gs=As,Ns=pt("toStringTag"),Cs=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(bs(i,Ns)||Os(i,Ns,{configurable:!0,value:t}),n&&!Ss&&Is(i,"toString",gs))},ys=Ts.IteratorPrototype,ws=ui,vs=k,Ds=Cs,Ls=Ii,Ps=function(){return this},Ms=wr,Us=v,Fs=ss,ks=function(e,t,r,n){var i=t+" Iterator";return e.prototype=ws(ys,{next:vs(+!n,r)}),Ds(e,i,!1,!0),Ls[i]=Ps,e},xs=jr,Bs=Cs,Vs=cs,js=Ii,Ks=Ts,Gs=Fs.PROPER,Ws=Ks.BUGGY_SAFARI_ITERATORS,Hs=pt("iterator"),Ys="keys",zs="values",qs="entries",Js=function(){return this},Xs=function(e,t,r,n,i,o,s){ks(r,t,n);var a,c,u,d=function(e){if(e===i&&f)return f;if(!Ws&&e&&e in p)return p[e];switch(e){case Ys:case zs:case qs:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",E=!1,p=e.prototype,h=p[Hs]||p["@@iterator"]||i&&p[i],f=!Ws&&h||d(i),_="Array"===t&&p.entries||h;if(_&&(a=xs(_.call(new e)))!==Object.prototype&&a.next&&(Bs(a,l,!0,!0),js[l]=Js),Gs&&i===zs&&h&&h.name!==zs&&(E=!0,f=function(){return Us(h,this)}),i)if(c={values:d(zs),keys:o?f:d(Ys),entries:d(qs)},s)for(u in c)(Ws||E||!(u in p))&&Vs(p,u,c[u]);else Ms({target:t,proto:!0,forced:Ws||E},c);return s&&p[Hs]!==f&&Vs(p,Hs,f,{name:i}),js[t]=f,c},Qs=function(e,t){return{value:e,done:t}},$s=J,Zs=Ii,ea=es;$t.f;var ta=Xs,ra=Qs,na="Array Iterator",ia=ea.set,oa=ea.getterFor(na);ta(Array,"Array",(function(e,t){ia(this,{type:na,target:$s(e),index:0,kind:t})}),(function(){var e=oa(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ra(void 0,!0);switch(e.kind){case"keys":return ra(r,!1);case"values":return ra(t[r],!1)}return ra([r,t[r]],!1)}),"values"),Zs.Arguments=Zs.Array;var sa=i,aa=ae,ca=A,ua=function(e){return aa.slice(0,e.length)===e},da=ua("Bun/")?"BUN":ua("Cloudflare-Workers")?"CLOUDFLARE":ua("Deno/")?"DENO":ua("Node.js/")?"NODE":sa.Bun&&"string"==typeof Bun.version?"BUN":sa.Deno&&"object"==typeof Deno.version?"DENO":"process"===ca(sa.process)?"NODE":sa.window&&sa.document?"BROWSER":"REST",la="NODE"===da,Ea=$t,pa=function(e,t,r){return Ea.f(e,t,r)},ha=ne,fa=pa,_a=C,ma=pt("species"),Ta=ie,Ra=TypeError,Aa=g,Sa=He,Oa=_(Function.toString);Aa(Sa.inspectSource)||(Sa.inspectSource=function(e){return Oa(e)});var Ia=Sa.inspectSource,ba=_,ga=o,Na=g,Ca=Ui,ya=Ia,wa=function(){},va=ne("Reflect","construct"),Da=/^\s*(?:class|function)\b/,La=ba(Da.exec),Pa=!Da.test(wa),Ma=function(e){if(!Na(e))return!1;try{return va(wa,[],e),!0}catch(e){return!1}},Ua=function(e){if(!Na(e))return!1;switch(Ca(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pa||!!La(Da,ya(e))}catch(e){return!0}};Ua.sham=!0;var Fa,ka,xa,Ba,Va=!va||ga((function(){var e;return Ma(Ma.call)||!Ma(Object)||!Ma((function(){e=!0}))||e}))?Ua:Ma,ja=Va,Ka=Ne,Ga=TypeError,Wa=nr,Ha=function(e){if(ja(e))return e;throw new Ga(Ka(e)+" is not a constructor")},Ya=G,za=pt("species"),qa=function(e,t){var r,n=Wa(e).constructor;return void 0===n||Ya(r=Wa(n)[za])?t:Ha(r)},Ja=_([].slice),Xa=TypeError,Qa=/(?:ipad|iphone|ipod).*applewebkit/i.test(ae),$a=i,Za=l,ec=Qt,tc=g,rc=Ze,nc=o,ic=Jn,oc=Ja,sc=Ct,ac=function(e,t){if(e<t)throw new Xa("Not enough arguments");return e},cc=Qa,uc=la,dc=$a.setImmediate,lc=$a.clearImmediate,Ec=$a.process,pc=$a.Dispatch,hc=$a.Function,fc=$a.MessageChannel,_c=$a.String,mc=0,Tc={},Rc="onreadystatechange";nc((function(){Fa=$a.location}));var Ac=function(e){if(rc(Tc,e)){var t=Tc[e];delete Tc[e],t()}},Sc=function(e){return function(){Ac(e)}},Oc=function(e){Ac(e.data)},Ic=function(e){$a.postMessage(_c(e),Fa.protocol+"//"+Fa.host)};dc&&lc||(dc=function(e){ac(arguments.length,1);var t=tc(e)?e:hc(e),r=oc(arguments,1);return Tc[++mc]=function(){Za(t,void 0,r)},ka(mc),mc},lc=function(e){delete Tc[e]},uc?ka=function(e){Ec.nextTick(Sc(e))}:pc&&pc.now?ka=function(e){pc.now(Sc(e))}:fc&&!cc?(Ba=(xa=new fc).port2,xa.port1.onmessage=Oc,ka=ec(Ba.postMessage,Ba)):$a.addEventListener&&tc($a.postMessage)&&!$a.importScripts&&Fa&&"file:"!==Fa.protocol&&!nc(Ic)?(ka=Ic,$a.addEventListener("message",Oc,!1)):ka=Rc in sc("script")?function(e){ic.appendChild(sc("script"))[Rc]=function(){ic.removeChild(this),Ac(e)}}:function(e){setTimeout(Sc(e),0)});var bc={set:dc,clear:lc},gc=i,Nc=C,Cc=Object.getOwnPropertyDescriptor,yc=function(){this.head=null,this.tail=null};yc.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var wc,vc,Dc,Lc,Pc,Mc=yc,Uc=/ipad|iphone|ipod/i.test(ae)&&"undefined"!=typeof Pebble,Fc=/web0s(?!.*chrome)/i.test(ae),kc=i,xc=function(e){if(!Nc)return gc[e];var t=Cc(gc,e);return t&&t.value},Bc=Qt,Vc=bc.set,jc=Mc,Kc=Qa,Gc=Uc,Wc=Fc,Hc=la,Yc=kc.MutationObserver||kc.WebKitMutationObserver,zc=kc.document,qc=kc.process,Jc=kc.Promise,Xc=xc("queueMicrotask");if(!Xc){var Qc=new jc,$c=function(){var e,t;for(Hc&&(e=qc.domain)&&e.exit();t=Qc.get();)try{t()}catch(e){throw Qc.head&&wc(),e}e&&e.enter()};Kc||Hc||Wc||!Yc||!zc?!Gc&&Jc&&Jc.resolve?((Lc=Jc.resolve(void 0)).constructor=Jc,Pc=Bc(Lc.then,Lc),wc=function(){Pc($c)}):Hc?wc=function(){qc.nextTick($c)}:(Vc=Bc(Vc,kc),wc=function(){Vc($c)}):(vc=!0,Dc=zc.createTextNode(""),new Yc($c).observe(Dc,{characterData:!0}),wc=function(){Dc.data=vc=!vc}),Xc=function(e){Qc.head||wc(),Qc.add(e)}}var Zc=Xc,eu=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tu=i.Promise,ru=i,nu=tu,iu=g,ou=zt,su=Ia,au=pt,cu=da,uu=he,du=nu&&nu.prototype,lu=au("species"),Eu=!1,pu=iu(ru.PromiseRejectionEvent),hu=ou("Promise",(function(){var e=su(nu),t=e!==String(nu);if(!t&&66===uu)return!0;if(!du.catch||!du.finally)return!0;if(!uu||uu<51||!/native code/.test(e)){var r=new nu((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[lu]=n,!(Eu=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==cu&&"DENO"!==cu||pu)})),fu={CONSTRUCTOR:hu,REJECTION_EVENT:pu,SUBCLASSING:Eu},_u={},mu=ve,Tu=TypeError,Ru=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new Tu("Bad Promise constructor");t=e,r=n})),this.resolve=mu(t),this.reject=mu(r)};_u.f=function(e){return new Ru(e)};var Au,Su,Ou,Iu=wr,bu=la,gu=i,Nu=$,Cu=v,yu=cs,wu=Cs,vu=function(e){var t=ha(e);_a&&t&&!t[ma]&&fa(t,ma,{configurable:!0,get:function(){return this}})},Du=ve,Lu=g,Pu=Q,Mu=function(e,t){if(Ta(t,e))return e;throw new Ra("Incorrect invocation")},Uu=qa,Fu=bc.set,ku=Zc,xu=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},Bu=eu,Vu=Mc,ju=es,Ku=tu,Gu=fu,Wu=_u,Hu="Promise",Yu=Gu.CONSTRUCTOR,zu=Gu.REJECTION_EVENT,qu=ju.getterFor(Hu),Ju=ju.set,Xu=Ku&&Ku.prototype,Qu=Ku,$u=Xu,Zu=gu.TypeError,ed=gu.document,td=gu.process,rd=Wu.f,nd=rd,id=!!(ed&&ed.createEvent&&gu.dispatchEvent),od="unhandledrejection",sd=function(e){var t;return!(!Pu(e)||!Lu(t=e.then))&&t},ad=function(e,t){var r,n,i,o=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{a?(s||(2===t.rejection&&Ed(t),t.rejection=1),!0===a?r=o:(d&&d.enter(),r=a(o),d&&(d.exit(),i=!0)),r===e.promise?u(new Zu("Promise-chain cycle")):(n=sd(r))?Cu(n,r,c,u):c(r)):u(o)}catch(e){d&&!i&&d.exit(),u(e)}},cd=function(e,t){e.notified||(e.notified=!0,ku((function(){for(var r,n=e.reactions;r=n.get();)ad(r,e);e.notified=!1,t&&!e.rejection&&dd(e)})))},ud=function(e,t,r){var n,i;id?((n=ed.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),gu.dispatchEvent(n)):n={promise:t,reason:r},!zu&&(i=gu["on"+e])?i(n):e===od&&xu("Unhandled promise rejection",r)},dd=function(e){Cu(Fu,gu,(function(){var t,r=e.facade,n=e.value;if(ld(e)&&(t=Bu((function(){bu?td.emit("unhandledRejection",n,r):ud(od,r,n)})),e.rejection=bu||ld(e)?2:1,t.error))throw t.value}))},ld=function(e){return 1!==e.rejection&&!e.parent},Ed=function(e){Cu(Fu,gu,(function(){var t=e.facade;bu?td.emit("rejectionHandled",t):ud("rejectionhandled",t,e.value)}))},pd=function(e,t,r){return function(n){e(t,n,r)}},hd=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,cd(e,!0))},fd=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new Zu("Promise can't be resolved itself");var n=sd(t);n?ku((function(){var r={done:!1};try{Cu(n,t,pd(fd,r,e),pd(hd,r,e))}catch(t){hd(r,t,e)}})):(e.value=t,e.state=1,cd(e,!1))}catch(t){hd({done:!1},t,e)}}};Yu&&($u=(Qu=function(e){Mu(this,$u),Du(e),Cu(Au,this);var t=qu(this);try{e(pd(fd,t),pd(hd,t))}catch(e){hd(t,e)}}).prototype,(Au=function(e){Ju(this,{type:Hu,done:!1,notified:!1,parent:!1,reactions:new Vu,rejection:!1,state:0,value:null})}).prototype=yu($u,"then",(function(e,t){var r=qu(this),n=rd(Uu(this,Qu));return r.parent=!0,n.ok=!Lu(e)||e,n.fail=Lu(t)&&t,n.domain=bu?td.domain:void 0,0===r.state?r.reactions.add(n):ku((function(){ad(n,r)})),n.promise})),Su=function(){var e=new Au,t=qu(e);this.promise=e,this.resolve=pd(fd,t),this.reject=pd(hd,t)},Wu.f=rd=function(e){return e===Qu||e===Ou?new Su(e):nd(e)}),Iu({global:!0,constructor:!0,wrap:!0,forced:Yu},{Promise:Qu}),Ou=Nu.Promise,wu(Qu,Hu,!1,!0),vu(Hu);var _d=pt("iterator"),md=!1;try{var Td=0,Rd={next:function(){return{done:!!Td++}},return:function(){md=!0}};Rd[_d]=function(){return this},Array.from(Rd,(function(){throw 2}))}catch(e){}var Ad=tu,Sd=function(e,t){try{if(!t&&!md)return!1}catch(e){return!1}var r=!1;try{var n={};n[_d]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Od=fu.CONSTRUCTOR||!Sd((function(e){Ad.all(e).then(void 0,(function(){}))})),Id=v,bd=ve,gd=_u,Nd=eu,Cd=lo;wr({target:"Promise",stat:!0,forced:Od},{all:function(e){var t=this,r=gd.f(t),n=r.resolve,i=r.reject,o=Nd((function(){var r=bd(t.resolve),o=[],s=0,a=1;Cd(e,(function(e){var c=s++,u=!1;a++,Id(r,t,e).then((function(e){u||(u=!0,o[c]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise}});var yd=wr,wd=fu.CONSTRUCTOR;tu&&tu.prototype,yd({target:"Promise",proto:!0,forced:wd,real:!0},{catch:function(e){return this.then(void 0,e)}});var vd=v,Dd=ve,Ld=_u,Pd=eu,Md=lo;wr({target:"Promise",stat:!0,forced:Od},{race:function(e){var t=this,r=Ld.f(t),n=r.reject,i=Pd((function(){var i=Dd(t.resolve);Md(e,(function(e){vd(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Ud=_u;wr({target:"Promise",stat:!0,forced:fu.CONSTRUCTOR},{reject:function(e){var t=Ud.f(this);return(0,t.reject)(e),t.promise}});var Fd=nr,kd=Q,xd=_u,Bd=function(e,t){if(Fd(e),kd(t)&&t.constructor===e)return t;var r=xd.f(e);return(0,r.resolve)(t),r.promise},Vd=wr,jd=tu,Kd=fu.CONSTRUCTOR,Gd=Bd,Wd=ne("Promise"),Hd=!Kd;Vd({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Gd(Hd&&this===Wd?jd:this,e)}});var Yd=v,zd=ve,qd=_u,Jd=eu,Xd=lo;wr({target:"Promise",stat:!0,forced:Od},{allSettled:function(e){var t=this,r=qd.f(t),n=r.resolve,i=r.reject,o=Jd((function(){var r=zd(t.resolve),i=[],o=0,s=1;Xd(e,(function(e){var a=o++,c=!1;s++,Yd(r,t,e).then((function(e){c||(c=!0,i[a]={status:"fulfilled",value:e},--s||n(i))}),(function(e){c||(c=!0,i[a]={status:"rejected",reason:e},--s||n(i))}))})),--s||n(i)}));return o.error&&i(o.value),r.promise}});var Qd=v,$d=ve,Zd=ne,el=_u,tl=eu,rl=lo,nl="No one promise resolved";wr({target:"Promise",stat:!0,forced:Od},{any:function(e){var t=this,r=Zd("AggregateError"),n=el.f(t),i=n.resolve,o=n.reject,s=tl((function(){var n=$d(t.resolve),s=[],a=0,c=1,u=!1;rl(e,(function(e){var d=a++,l=!1;c++,Qd(n,t,e).then((function(e){l||u||(u=!0,i(e))}),(function(e){l||u||(l=!0,s[d]=e,--c||o(new r(s,nl)))}))})),--c||o(new r(s,nl))}));return s.error&&o(s.value),n.promise}});var il=wr,ol=l,sl=Ja,al=_u,cl=ve,ul=eu,dl=i.Promise,ll=!1;il({target:"Promise",stat:!0,forced:!dl||!dl.try||ul((function(){dl.try((function(e){ll=8===e}),8)})).error||!ll},{try:function(e){var t=arguments.length>1?sl(arguments,1):[],r=al.f(this),n=ul((function(){return ol(cl(e),void 0,t)}));return(n.error?r.reject:r.resolve)(n.value),r.promise}});var El=_u;wr({target:"Promise",stat:!0},{withResolvers:function(){var e=El.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var pl=wr,hl=tu,fl=o,_l=ne,ml=g,Tl=qa,Rl=Bd,Al=hl&&hl.prototype;pl({target:"Promise",proto:!0,real:!0,forced:!!hl&&fl((function(){Al.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Tl(this,_l("Promise")),r=ml(e);return this.then(r?function(r){return Rl(t,e()).then((function(){return r}))}:e,r?function(r){return Rl(t,e()).then((function(){throw r}))}:e)}});var Sl=_,Ol=nn,Il=ho,bl=Y,gl=Sl("".charAt),Nl=Sl("".charCodeAt),Cl=Sl("".slice),yl=function(e){return function(t,r){var n,i,o=Il(bl(t)),s=Ol(r),a=o.length;return s<0||s>=a?e?"":void 0:(n=Nl(o,s))<55296||n>56319||s+1===a||(i=Nl(o,s+1))<56320||i>57343?e?gl(o,s):n:e?Cl(o,s,s+2):i-56320+(n-55296<<10)+65536}},wl={codeAt:yl(!1),charAt:yl(!0)}.charAt,vl=ho,Dl=es,Ll=Xs,Pl=Qs,Ml="String Iterator",Ul=Dl.set,Fl=Dl.getterFor(Ml);Ll(String,"String",(function(e){Ul(this,{type:Ml,string:vl(e),index:0})}),(function(){var e,t=Fl(this),r=t.string,n=t.index;return n>=r.length?Pl(void 0,!0):(e=wl(r,n),t.index+=e.length,Pl(e,!1))}));var kl=$.Promise,xl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bl=i,Vl=Cs,jl=Ii;for(var Kl in xl)Vl(Bl[Kl],Kl),jl[Kl]=jl.Array;var Gl=r(kl);const Wl=()=>{};function Hl(){const e={promise:void 0,isResolved:!1,isRejected:!1,isFinished:!1,resolve:void 0,reject:void 0,cancel:Wl};return e.promise=new Gl(((t,r)=>{e.resolve=r=>{e.isFinished||(e.isResolved=!0,e.isFinished=!0,t(r),e.value=r)},e.reject=t=>{e.isFinished||(e.isRejected=!0,e.isFinished=!0,r(t))}})),e}const Yl=new Map,zl=new Map,ql=new Map;var Jl=_n.includes;wr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return Jl(this,e,arguments.length>1?arguments[1]:void 0)}});var Xl=i,Ql=$,$l=function(e,t){var r=Ql[e+"Prototype"],n=r&&r[t];if(n)return n;var i=Xl[e],o=i&&i.prototype;return o&&o[t]},Zl=$l("Array","includes"),eE=Q,tE=A,rE=pt("match"),nE=function(e){var t;return eE(e)&&(void 0!==(t=e[rE])?!!t:"RegExp"===tE(e))},iE=nE,oE=TypeError,sE=pt("match"),aE=wr,cE=function(e){if(iE(e))throw new oE("The method doesn't accept regular expressions");return e},uE=Y,dE=ho,lE=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[sE]=!1,"/./"[e](t)}catch(e){}}return!1},EE=_("".indexOf);aE({target:"String",proto:!0,forced:!lE("includes")},{includes:function(e){return!!~EE(dE(uE(this)),dE(cE(e)),arguments.length>1?arguments[1]:void 0)}});var pE=$l("String","includes"),hE=ie,fE=Zl,_E=pE,mE=Array.prototype,TE=String.prototype,RE=r((function(e){var t=e.includes;return e===mE||hE(mE,e)&&t===mE.includes?fE:"string"==typeof e||e===TE||hE(TE,e)&&t===TE.includes?_E:t}));let AE=function(e){return e.WIN_10="Windows 10",e.WIN_81="Windows 8.1",e.WIN_8="Windows 8",e.WIN_7="Windows 7",e.WIN_VISTA="Windows Vista",e.WIN_SERVER_2003="Windows Server 2003",e.WIN_XP="Windows XP",e.WIN_2000="Windows 2000",e.ANDROID="Android",e.HARMONY_OS="HarmonyOS",e.OPEN_BSD="Open BSD",e.SUN_OS="Sun OS",e.LINUX="Linux",e.IOS="iOS",e.MAC_OS="Mac OS",e.CHROMIUM_OS="Chromium OS",e.QNX="QNX",e.UNIX="UNIX",e.BEOS="BeOS",e.OS_2="OS/2",e.SEARCH_BOT="Search Bot",e}({}),SE=function(e){return e.CHROME="Chrome",e.SAFARI="Safari",e.EDGE="Edge",e.FIREFOX="Firefox",e.OPERA="OPR",e.QQ="QQBrowser",e.WECHAT="MicroMessenger",e}({});var OE={exports:{}};!function(e,r){!function(t,n){var i="function",o="undefined",s="object",a="string",c="major",u="model",d="name",l="type",E="vendor",p="version",h="architecture",f="console",_="mobile",m="tablet",T="smarttv",R="wearable",A="embedded",S="Amazon",O="Apple",I="ASUS",b="BlackBerry",g="Browser",N="Chrome",C="Firefox",y="Google",w="Honor",v="Huawei",D="LG",L="Microsoft",P="Motorola",M="Nvidia",U="OnePlus",F="Opera",k="OPPO",x="Samsung",B="Sharp",V="Sony",j="Xiaomi",K="Zebra",G="Facebook",W="Chromium OS",H="Mac OS",Y=" Browser",z=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},q=function(e,t){return typeof e===a&&-1!==J(t).indexOf(J(e))},J=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},Q=function(e,t){for(var r,o,a,c,u,d,l=0;l<t.length&&!u;){var E=t[l],p=t[l+1];for(r=o=0;r<E.length&&!u&&E[r];)if(u=E[r++].exec(e))for(a=0;a<p.length;a++)d=u[++o],typeof(c=p[a])===s&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,d):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=d?d.replace(c[1],c[2]):n:this[c[0]]=d?c[1].call(this,d,c[2]):n:4===c.length&&(this[c[0]]=d?c[3].call(this,d.replace(c[1],c[2])):n):this[c]=d||n;l+=2}},$=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(q(t[r][i],e))return"?"===r?n:r}else if(q(t[r],e))return"?"===r?n:r;return t.hasOwnProperty("*")?t["*"]:e},Z={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"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[d,F+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[d,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[d,"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],[d,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+g]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[d,"Smart Lenovo "+g]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+g],p],[/\bfocus\/([\w\.]+)/i],[p,[d,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI"+Y]],[/fxios\/([\w\.-]+)/i],[p,[d,C]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+Y],p],[/samsungbrowser\/([\w\.]+)/i],[p,[d,x+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,G],p],[/(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,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,N+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,N+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+g]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,C+" 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],[d,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[h,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[h,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[h,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[h,/ower/,"",J]],[/ sun4\w[;\)]/i],[[h,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[h,J]]],device:[[/\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],[u,[E,x],[l,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[E,x],[l,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[E,O],[l,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[E,O],[l,m]],[/(macintosh);/i],[u,[E,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[E,B],[l,_]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[E,w],[l,m]],[/honor([-\w ]+)[;\)]/i],[u,[E,w],[l,_]],[/\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],[u,[E,v],[l,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[E,v],[l,_]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[E,j],[l,m]],[/\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],[[u,/_/g," "],[E,j],[l,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[E,k],[l,_]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[E,$,{OnePlus:["304","403","203"],"*":k}],[l,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[E,"Vivo"],[l,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[E,"Realme"],[l,_]],[/\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],[u,[E,P],[l,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[E,P],[l,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[E,D],[l,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[E,D],[l,_]],[/(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],[u,[E,"Lenovo"],[l,m]],[/(nokia) (t[12][01])/i],[E,u,[l,m]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[l,_],[E,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[E,y],[l,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[E,y],[l,_]],[/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],[u,[E,V],[l,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[E,V],[l,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[E,U],[l,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[E,S],[l,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[E,S],[l,_]],[/(playbook);[-\w\),; ]+(rim)/i],[u,E,[l,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[E,b],[l,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[E,I],[l,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[E,I],[l,_]],[/(nexus 9)/i],[u,[E,"HTC"],[l,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[E,[u,/_/g," "],[l,_]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[E,"TCL"],[l,m]],[/(itel) ((\w+))/i],[[E,J],u,[l,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[E,"Acer"],[l,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[E,"Meizu"],[l,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[E,"Ulefone"],[l,_]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[E,"Energizer"],[l,_]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[E,"Cat"],[l,_]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[E,"Smartfren"],[l,_]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[E,"Nothing"],[l,_]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[E,"Archos"],[l,m]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[E,"Archos"],[l,_]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[E,u,[l,m]],[/(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],[E,u,[l,_]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[E,u,[l,m]],[/(surface duo)/i],[u,[E,L],[l,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[E,"Fairphone"],[l,_]],[/(u304aa)/i],[u,[E,"AT&T"],[l,_]],[/\bsie-(\w*)/i],[u,[E,"Siemens"],[l,_]],[/\b(rct\w+) b/i],[u,[E,"RCA"],[l,m]],[/\b(venue[\d ]{2,7}) b/i],[u,[E,"Dell"],[l,m]],[/\b(q(?:mv|ta)\w+) b/i],[u,[E,"Verizon"],[l,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[E,"Barnes & Noble"],[l,m]],[/\b(tm\d{3}\w+) b/i],[u,[E,"NuVision"],[l,m]],[/\b(k88) b/i],[u,[E,"ZTE"],[l,m]],[/\b(nx\d{3}j) b/i],[u,[E,"ZTE"],[l,_]],[/\b(gen\d{3}) b.+49h/i],[u,[E,"Swiss"],[l,_]],[/\b(zur\d{3}) b/i],[u,[E,"Swiss"],[l,m]],[/\b((zeki)?tb.*\b) b/i],[u,[E,"Zeki"],[l,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[E,"Dragon Touch"],u,[l,m]],[/\b(ns-?\w{0,9}) b/i],[u,[E,"Insignia"],[l,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[E,"NextBook"],[l,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[E,"Voice"],u,[l,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[E,"LvTel"],u,[l,_]],[/\b(ph-1) /i],[u,[E,"Essential"],[l,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[E,"Envizen"],[l,m]],[/\b(trio[-\w\. ]+) b/i],[u,[E,"MachSpeed"],[l,m]],[/\btu_(1491) b/i],[u,[E,"Rotor"],[l,m]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[E,M],[l,m]],[/(sprint) (\w+)/i],[E,u,[l,_]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[E,L],[l,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[E,K],[l,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[E,K],[l,_]],[/smart-tv.+(samsung)/i],[E,[l,T]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[E,x],[l,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[E,D],[l,T]],[/(apple) ?tv/i],[E,[u,O+" TV"],[l,T]],[/crkey/i],[[u,N+"cast"],[E,y],[l,T]],[/droid.+aft(\w+)( bui|\))/i],[u,[E,S],[l,T]],[/(shield \w+ tv)/i],[u,[E,M],[l,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[E,B],[l,T]],[/(bravia[\w ]+)( bui|\))/i],[u,[E,V],[l,T]],[/(mi(tv|box)-?\w+) bui/i],[u,[E,j],[l,T]],[/Hbbtv.*(technisat) (.*);/i],[E,u,[l,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[E,X],[u,X],[l,T]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[l,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[E,u,[l,f]],[/droid.+; (shield)( bui|\))/i],[u,[E,M],[l,f]],[/(playstation \w+)/i],[u,[E,V],[l,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[E,L],[l,f]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[E,x],[l,R]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[E,u,[l,R]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[E,k],[l,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[E,O],[l,R]],[/(opwwe\d{3})/i],[u,[E,U],[l,R]],[/(moto 360)/i],[u,[E,P],[l,R]],[/(smartwatch 3)/i],[u,[E,V],[l,R]],[/(g watch r)/i],[u,[E,D],[l,R]],[/droid.+; (wt63?0{2,3})\)/i],[u,[E,K],[l,R]],[/droid.+; (glass) \d/i],[u,[E,y],[l,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[E,u,[l,R]],[/; (quest( \d| pro)?)/i],[u,[E,G],[l,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[E,[l,A]],[/(aeobc)\b/i],[u,[E,S],[l,A]],[/(homepod).+mac os/i],[u,[E,O],[l,A]],[/windows iot/i],[[l,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[l,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[l,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,_]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[E,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"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],[d,p],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[p,$,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,$,Z],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,H],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],p],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,p],[/\(bb(10);/i],[p,[d,b]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[d,N+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,W],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,p]]},te=function(e,r){if(typeof e===s&&(r=e,e=n),!(this instanceof te))return new te(e,r).getResult();var f=typeof t!==o&&t.navigator?t.navigator:n,T=e||(f&&f.userAgent?f.userAgent:""),R=f&&f.userAgentData?f.userAgentData:n,A=r?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(ee,r):ee,S=f&&f.userAgent==T;return this.getBrowser=function(){var e={};return e[d]=n,e[p]=n,Q.call(e,T,A.browser),e[c]=function(e){return typeof e===a?e.replace(/[^\d\.]/g,"").split(".")[0]:n}(e[p]),S&&f&&f.brave&&typeof f.brave.isBrave==i&&(e[d]="Brave"),e},this.getCPU=function(){var e={};return e[h]=n,Q.call(e,T,A.cpu),e},this.getDevice=function(){var e={};return e[E]=n,e[u]=n,e[l]=n,Q.call(e,T,A.device),S&&!e[l]&&R&&R.mobile&&(e[l]=_),S&&"Macintosh"==e[u]&&f&&typeof f.standalone!==o&&f.maxTouchPoints&&f.maxTouchPoints>2&&(e[u]="iPad",e[l]=m),e},this.getEngine=function(){var e={};return e[d]=n,e[p]=n,Q.call(e,T,A.engine),e},this.getOS=function(){var e={};return e[d]=n,e[p]=n,Q.call(e,T,A.os),S&&!e[d]&&R&&R.platform&&"Unknown"!=R.platform&&(e[d]=R.platform.replace(/chrome os/i,W).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return T},this.setUA=function(e){return T=typeof e===a&&e.length>500?X(e,500):