!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).nativeApi=e()}(this,function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i=function(t){return t&&t.Math==Math&&t},g=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),c=Function.prototype,s=c.apply,f=c.call,l="object"==typeof Reflect&&Reflect.apply||(u?f.bind(s):function(){return f.apply(s,arguments)}),p=Function.prototype,v=p.bind,d=p.call,h=u&&v.bind(d,d),m=u?function(t){return t&&h(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},b=function(t){return"function"==typeof t},y=!a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),w=Function.prototype.call,O=u?w.bind(w):function(){return w.apply(w,arguments)},S={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,j={f:x&&!S.call({1:2},1)?function(t){var e=x(this,t);return!!e&&e.enumerable}:S},T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},k=m({}.toString),C=m("".slice),A=function(t){return C(k(t),8,-1)},P=Object,_=m("".split),E=a(function(){return!P("z").propertyIsEnumerable(0)})?function(t){return"String"==A(t)?_(t,""):P(t)}:P,I=TypeError,N=function(t){if(null==t)throw I("Can't call method on "+t);return t},M=function(t){return E(N(t))},L=function(t){return"object"==typeof t?null!==t:b(t)},R={},F=function(t){return b(t)?t:void 0},V=function(t,e){return arguments.length<2?F(R[t])||F(g[t]):R[t]&&R[t][e]||g[t]&&g[t][e]},D=m({}.isPrototypeOf),B=V("navigator","userAgent")||"",G=g.process,H=g.Deno,U=G&&G.versions||H&&H.version,W=U&&U.v8;W&&(o=0<(r=W.split("."))[0]&&r[0]<4?1:+(r[0]+r[1])),!o&&B&&(!(r=B.match(/Edge\/(\d+)/))||74<=r[1])&&(r=B.match(/Chrome\/(\d+)/))&&(o=+r[1]);var J=o,z=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41}),q=z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,$=q?function(t){return"symbol"==typeof t}:function(t){var e=V("Symbol");return b(e)&&D(e.prototype,K(t))},Y=String,X=function(t){try{return Y(t)}catch(t){return"Object"}},Q=TypeError,Z=function(t){if(b(t))return t;throw Q(X(t)+" is not a function")},tt=function(t,e){var n=t[e];return null==n?void 0:Z(n)},et=TypeError,nt=Object.defineProperty,rt="__core-js_shared__",ot=g[rt]||function(e,n){try{nt(g,e,{value:n,configurable:!0,writable:!0})}catch(t){g[e]=n}return n}(rt,{}),it=n(function(t){(t.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.1",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),at=Object,ut=function(t){return at(N(t))},ct=m({}.hasOwnProperty),st=Object.hasOwn||function(t,e){return ct(ut(t),e)},ft=0,lt=Math.random(),pt=m(1..toString),vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+pt(++ft+lt,36)},dt=it("wks"),ht=g.Symbol,yt=ht&&ht.for,gt=q?ht:ht&&ht.withoutSetter||vt,mt=function(t){if(!st(dt,t)||!z&&"string"!=typeof dt[t]){var e="Symbol."+t;z&&st(ht,t)?dt[t]=ht[t]:dt[t]=q&&yt?yt(e):gt(e)}return dt[t]},bt=TypeError,wt=mt("toPrimitive"),Ot=function(t,e){if(!L(t)||$(t))return t;var n,r=tt(t,wt);if(r){if(void 0===e&&(e="default"),n=O(r,t,e),!L(n)||$(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&b(n=t.toString)&&!L(r=O(n,t)))return r;if(b(n=t.valueOf)&&!L(r=O(n,t)))return r;if("string"!==e&&b(n=t.toString)&&!L(r=O(n,t)))return r;throw et("Can't convert object to primitive value")}(t,e)},St=function(t){var e=Ot(t,"string");return $(e)?e:e+""},xt=g.document,jt=L(xt)&&L(xt.createElement),Tt=function(t){return jt?xt.createElement(t):{}},kt=!y&&!a(function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a}),Ct=Object.getOwnPropertyDescriptor,At={f:y?Ct:function(t,e){if(t=M(t),e=St(e),kt)try{return Ct(t,e)}catch(t){}if(st(t,e))return T(!O(j.f,t,e),t[e])}},Pt=/#|\.prototype\./,_t=function(t,e){var n=It[Et(t)];return n==Mt||n!=Nt&&(b(e)?a(e):!!e)},Et=_t.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},It=_t.data={},Nt=_t.NATIVE="N",Mt=_t.POLYFILL="P",Lt=_t,Rt=m(m.bind),Ft=function(t,e){return Z(t),void 0===e?t:u?Rt(t,e):function(){return t.apply(e,arguments)}},Vt=y&&a(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Dt=String,Bt=TypeError,Gt=function(t){if(L(t))return t;throw Bt(Dt(t)+" is not an object")},Ht=TypeError,Ut=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Jt="enumerable",zt="configurable",qt="writable",Kt={f:y?Vt?function(t,e,n){if(Gt(t),e=St(e),Gt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&qt in n&&!n[qt]){var r=Wt(t,e);r&&r[qt]&&(t[e]=n.value,n={configurable:zt in n?n[zt]:r[zt],enumerable:Jt in n?n[Jt]:r[Jt],writable:!1})}return Ut(t,e,n)}:Ut:function(t,e,n){if(Gt(t),e=St(e),Gt(n),kt)try{return Ut(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ht("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},$t=y?function(t,e,n){return Kt.f(t,e,T(1,n))}:function(t,e,n){return t[e]=n,t},Yt=At.f,Xt=function(r){var o=function(t,e,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return l(r,this,arguments)};return o.prototype=r.prototype,o},Qt=function(t,e){var n,r,o,i,a,u,c,s,f=t.target,l=t.global,p=t.stat,v=t.proto,d=l?g:p?g[f]:(g[f]||{}).prototype,h=l?R:R[f]||$t(R,f,{})[f],y=h.prototype;for(o in e)n=!Lt(l?o:f+(p?".":"#")+o,t.forced)&&d&&st(d,o),a=h[o],n&&(u=t.dontCallGetSet?(s=Yt(d,o))&&s.value:d[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(c=t.bind&&n?Ft(i,g):t.wrap&&n?Xt(i):v&&b(i)?m(i):i,(t.sham||i&&i.sham||a&&a.sham)&&$t(c,"sham",!0),$t(h,o,c),v&&(st(R,r=f+"Prototype")||$t(R,r,{}),$t(R[r],o,i),t.real&&y&&!y[o]&&$t(y,o,i)))},Zt=Kt.f;Qt({target:"Object",stat:!0,forced:Object.defineProperty!==Zt,sham:!y},{defineProperty:Zt});var te,ee=n(function(t){var r=R.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)}),ne=ee,re=e(n(function(t){t.exports=function(t,e,n){return e in t?ne(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports})),oe=Math.ceil,ie=Math.floor,ae=Math.trunc||function(t){var e=+t;return(0o;)st(r,n=e[o++])&&(~ye(i,n)||ge(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=Object.keys||function(t){return me(t,be)},Oe={f:y&&!Vt?Object.defineProperties:function(t,e){Gt(t);for(var n,r=M(e),o=we(e),i=o.length,a=0;a"+t+""},_e=function(t){t.write(Pe("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ee=function(){try{te=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ee="undefined"!=typeof document?document.domain&&te?_e(te):((e=Tt("iframe")).style.display="none",Se.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pe("document.F=Object")),t.close(),t.F):_e(te);for(var n=be.length;n--;)delete Ee[Te][be[n]];return Ee()};he[Ce]=!0;var Ie=Object.create||function(t,e){var n;return null!==t?(Ae[Te]=Gt(t),n=new Ae,Ae[Te]=null,n[Ce]=t):n=Ee(),void 0===e?n:Oe.f(n,e)};Qt({target:"Object",stat:!0,sham:!y},{create:Ie});var Ne=R.Object,Me=function(t,e){return Ne.create(t,e)},Le={},Re=m(Function.toString);b(ot.inspectSource)||(ot.inspectSource=function(t){return Re(t)});var Fe,Ve,De,Be=ot.inspectSource,Ge=g.WeakMap,He=b(Ge)&&/native code/.test(Be(Ge)),Ue="Object already initialized",We=g.TypeError,Je=g.WeakMap;if(He||ot.state){var ze=ot.state||(ot.state=new Je),qe=m(ze.get),Ke=m(ze.has),$e=m(ze.set);Fe=function(t,e){if(Ke(ze,t))throw new We(Ue);return e.facade=t,$e(ze,t,e),e},Ve=function(t){return qe(ze,t)||{}},De=function(t){return Ke(ze,t)}}else{var Ye=je("state");he[Ye]=!0,Fe=function(t,e){if(st(t,Ye))throw new We(Ue);return e.facade=t,$t(t,Ye,e),e},Ve=function(t){return st(t,Ye)?t[Ye]:{}},De=function(t){return st(t,Ye)}}var Xe,Qe,Ze,tn={set:Fe,get:Ve,has:De,enforce:function(t){return De(t)?Ve(t):Fe(t,{})},getterFor:function(n){return function(t){var e;if(!L(t)||(e=Ve(t)).type!==n)throw We("Incompatible receiver, "+n+" required");return e}}},en=Function.prototype,nn=y&&Object.getOwnPropertyDescriptor,rn=st(en,"name"),on={EXISTS:rn,PROPER:rn&&"something"===function(){}.name,CONFIGURABLE:rn&&(!y||y&&nn(en,"name").configurable)},an=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),un=je("IE_PROTO"),cn=Object,sn=cn.prototype,fn=an?cn.getPrototypeOf:function(t){var e=ut(t);if(st(e,un))return e[un];var n=e.constructor;return b(n)&&e instanceof n?n.prototype:e instanceof cn?sn:null},ln=function(t,e,n,r){return r&&r.enumerable?t[e]=n:$t(t,e,n),t},pn=mt("iterator"),vn=!1;[].keys&&("next"in(Ze=[].keys())?(Qe=fn(fn(Ze)))!==Object.prototype&&(Xe=Qe):vn=!0),Xe=null==Xe||a(function(){var t={};return Xe[pn].call(t)!==t})?{}:Ie(Xe),b(Xe[pn])||ln(Xe,pn,function(){return this});var dn={IteratorPrototype:Xe,BUGGY_SAFARI_ITERATORS:vn},hn={};hn[mt("toStringTag")]="z";var yn="[object z]"===String(hn),gn=mt("toStringTag"),mn=Object,bn="Arguments"==A(function(){return arguments}()),wn=yn?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=mn(t),gn))?n:bn?A(e):"Object"==(r=A(e))&&b(e.callee)?"Arguments":r},On=yn?{}.toString:function(){return"[object "+wn(this)+"]"},Sn=Kt.f,xn=mt("toStringTag"),jn=function(t,e,n,r){if(t){var o=n?t:t.prototype;st(o,xn)||Sn(o,xn,{configurable:!0,value:e}),r&&!yn&&$t(o,"toString",On)}},Tn=dn.IteratorPrototype,kn=function(){return this},Cn=String,An=TypeError,Pn=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=m(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return Gt(t),function(t){if("object"==typeof t||b(t))return;throw An("Can't set "+Cn(t)+" as a prototype")}(e),r?n(t,e):t.__proto__=e,t}}():void 0),_n=on.PROPER,En=dn.BUGGY_SAFARI_ITERATORS,In=mt("iterator"),Nn="values",Mn="entries",Ln=function(){return this},Rn=function(t,e,n,r,o,i,a){var u,c,s,f;c=r,f=e+" Iterator",(u=n).prototype=Ie(Tn,{next:T(+!s,c)}),jn(u,f,!1,!0),Le[f]=kn;var l,p,v,d=function(t){if(t===o&&b)return b;if(!En&&t in g)return g[t];switch(t){case"keys":case Nn:case Mn:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",y=!1,g=t.prototype,m=g[In]||g["@@iterator"]||o&&g[o],b=!En&&m||d(o),w="Array"==e&&g.entries||m;if(w&&(l=fn(w.call(new t)))!==Object.prototype&&l.next&&(jn(l,h,!0,!0),Le[h]=Ln),_n&&o==Nn&&m&&m.name!==Nn&&(y=!0,b=function(){return O(m,this)}),o)if(p={values:d(Nn),keys:i?b:d("keys"),entries:d(Mn)},a)for(v in p)!En&&!y&&v in g||ln(g,v,p[v]);else Qt({target:e,proto:!0,forced:En||y},p);return a&&g[In]!==b&&ln(g,In,b,{name:o}),Le[e]=b,p},Fn="Array Iterator",Vn=tn.set,Dn=tn.getterFor(Fn),Bn=(Rn(Array,"Array",function(t,e){Vn(this,{type:Fn,target:M(t),index:0,kind:e})},function(){var t=Dn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Le.Arguments=Le.Array,mt("toStringTag"));for(var Gn in{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}){var Hn=g[Gn],Un=Hn&&Hn.prototype;Un&&wn(Un)!==Bn&&$t(Un,Bn,Gn),Le[Gn]=Le.Array}var Wn=Array.isArray||function(t){return"Array"==A(t)},Jn=function(){},zn=[],qn=V("Reflect","construct"),Kn=/^\s*(?:class|function)\b/,$n=m(Kn.exec),Yn=!Kn.exec(Jn),Xn=function(t){if(!b(t))return!1;try{return qn(Jn,zn,t),!0}catch(t){return!1}},Qn=function(t){if(!b(t))return!1;switch(wn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yn||!!$n(Kn,Be(t))}catch(t){return!0}};Qn.sham=!0;var Zn=!qn||a(function(){var t;return Xn(Xn.call)||!Xn(Object)||!Xn(function(){t=!0})||t})?Qn:Xn,tr=mt("species"),er=Array,nr=function(t,e){return Wn(n=t)&&(r=n.constructor,Zn(r)&&(r===er||Wn(r.prototype))?r=void 0:L(r)&&null===(r=r[tr])&&(r=void 0)),new(void 0===r?er:r)(0===e?0:e);var n,r},rr=m([].push),or=function(v){var d=1==v,h=2==v,y=3==v,g=4==v,m=6==v,b=7==v,w=5==v||m;return function(t,e,n,r){for(var o,i,a=ut(t),u=E(a),c=Ft(e,n),s=pe(u),f=0,l=r||nr,p=d?l(t,s):h||b?l(t,0):void 0;f=n.length?{value:void 0,done:!0}:(t=Ra(n,r),e.index+=t.length,{value:t,done:!1})});var Ba=R.Promise,Ga=/MSIE .\./.test(B),Ha=g.Function,Ua=function(i){return Ga?function(t,e){var n=2u;)void 0!==(n=o(r,e=i[u++]))&&Rr(a,e,n);return a}});var qu=R.Object.getOwnPropertyDescriptors,Ku=Oe.f;Qt({target:"Object",stat:!0,forced:Object.defineProperties!==Ku,sham:!y},{defineProperties:Ku});var $u=n(function(t){var n=R.Object,e=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(e.sham=!0)}),Yu=ee;Qt({target:"Array",stat:!0},{isArray:Wn});var Xu,Qu=R.Array.isArray,Zu=n(function(t){t.exports=function(t){if(Qu(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports});e(Zu),ru("asyncIterator"),ru("hasInstance"),ru("isConcatSpreadable"),ru("iterator"),ru("match"),ru("matchAll"),ru("replace"),ru("search"),ru("species"),ru("split"),ru("toPrimitive"),ou(),ru("toStringTag"),jn(V("Symbol"),"Symbol"),ru("unscopables"),jn(g.JSON,"JSON",!0),(Xu=Object.freeze({__proto__:null}))&&Xu.default;var tc=R.Symbol;ru("asyncDispose"),ru("dispose"),ru("matcher"),ru("metadataKey"),ru("observable"),ru("metadata"),ru("patternMatch"),ru("replaceAll");var ec=tc,nc=Oo,rc=n(function(t){t.exports=function(t,e){var n=null==t?null:void 0!==ec&&nc(t)||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports});e(rc);var oc=Vr("slice"),ic=mt("species"),ac=Array,uc=Math.max;Qt({target:"Array",proto:!0,forced:!oc},{slice:function(t,e){var n,r,o,i=M(this),a=pe(i),u=fe(t,a),c=fe(void 0===e?a:e,a);if(Wn(i)&&(n=i.constructor,Zn(n)&&(n===ac||Wn(n.prototype))?n=void 0:L(n)&&null===(n=n[ic])&&(n=void 0),n===ac||void 0===n))return zr(i,u,c);for(r=new(void 0===n?ac:n)(uc(c-u,0)),o=0;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n+r[f]){s=!1;break}}return s}(function(){var t="3.11.1";try{var e=Pc(),n=navigator.userAgent.toLocaleLowerCase().match(/bigo-baiguoyuan.*/i),r=e&&n&&n[0].split("bigo-baiguoyuan");t=r[r.length-1].split("__")[2]}catch(t){console.warn("get app version failed")}return t}(),"3.11.1")&&!_c;function zc(t){var e=1this.expiredTime},doGetToken:null};window.globalToken=nf;var rf=0,of=3;function af(){return new Ba(function(e,n){nf.isExpired()?nf.doGetToken().then(function(t){rf=0,nf.setValue(t),uf(),e({token:t})},function(t){of<=rf?(rf=0,uf()):(Ka(af,0),rf+=1),n(t)}):(ef||(nf.expiredTime=+new Date,af()),e({token:nf.getValue()}))})}function uf(){clearTimeout(ef),ef=Ka(af,tf)}document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&af()});var cf,sf=function(){},ff={getAppVersionCode:function(t){return t[0]},getChannel:function(t){return t[0]},getCountryCode:function(t){return t[0]},getNetworkType:function(t){return 1==+t[0]?"Wi-Fi":"4G"},getLanguageCode:function(t){return t[0]},getToken:function(t){return t[1]},getFullVersion:function(t){return{system:t[1],systemVersion:t[2],appVersion:t[3],machine:t[4]}},getVideoInfo:function(t){return{videoTag:t.hashtag,videoType:t.hashtag_type,isPrivate:1===t.private}},getVideoResult:function(t){return{resType:t.resType,videoId:t.video}}},lf={get:function(t,e){return ff[t](e)},link:sf,event:sf,operation:sf},pf={facebook:1,twitter:2,vk:3},vf={appShare:function(){var t=0