jubo-sdk 1.5.0-beta.1 โ†’ 1.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -7932,6 +7932,6 @@ exports.default = JuboSdk;
7932
7932
  exports.ls = ls;
7933
7933
 
7934
7934
  if(typeof window !== 'undefined') {
7935
- window._juboSDK_VERSION_ = '1.5.0-beta.1'
7935
+ window._juboSDK_VERSION_ = '1.5.0-beta.2'
7936
7936
  }
7937
7937
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.esm.js CHANGED
@@ -7925,6 +7925,6 @@ if (process.env.NODE_ENV === 'development') {
7925
7925
  export { AppNameEnum, ChannelClient, ChannelParent, JuboSdk as default, ls, shellTypeEnum, supporterTypeEnum, systemTypeEnum };
7926
7926
 
7927
7927
  if(typeof window !== 'undefined') {
7928
- window._juboSDK_VERSION_ = '1.5.0-beta.1'
7928
+ window._juboSDK_VERSION_ = '1.5.0-beta.2'
7929
7929
  }
7930
7930
  //# sourceMappingURL=index.esm.js.map
package/dist/index.js CHANGED
@@ -7938,6 +7938,6 @@
7938
7938
  }));
7939
7939
 
7940
7940
  if(typeof window !== 'undefined') {
7941
- window._juboSDK_VERSION_ = '1.5.0-beta.1'
7941
+ window._juboSDK_VERSION_ = '1.5.0-beta.2'
7942
7942
  }
7943
7943
  //# sourceMappingURL=index.js.map
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- !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).JuboSDK={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(e){try{return!!e()}catch(e){return!0}},i=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),o=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=o,s=Function.prototype,c=s.call,u=a&&s.bind.bind(c,c),l=a?u:function(e){return function(){return c.apply(e,arguments)}},f=function(e){return null==e},d=f,p=TypeError,g=function(e){if(d(e))throw new p("Can't call method on "+e);return e},h=g,v=Object,b=function(e){return v(h(e))},m=b,y=l({}.hasOwnProperty),w=Object.hasOwn||function(e,t){return y(m(e),t)},S=i,j=w,P=Function.prototype,O=S&&Object.getOwnPropertyDescriptor,x=j(P,"name"),k={EXISTS:x,PROPER:x&&"something"===function(){}.name,CONFIGURABLE:x&&(!S||S&&O(P,"name").configurable)},_={exports:{}},I="object"==typeof document&&document.all,T={all:I,IS_HTMLDDA:void 0===I&&void 0!==I},R=T.all,M=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},A=function(e){return e&&e.Math===Math&&e},E=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof t&&t)||A("object"==typeof t&&t)||function(){return this}()||Function("return this")(),D=E,N=Object.defineProperty,C=function(e,t){try{N(D,e,{value:t,configurable:!0,writable:!0})}catch(n){D[e]=t}return t},V=C,L="__core-js_shared__",K=E[L]||V(L,{}),B=M,H=K,U=l(Function.toString);B(H.inspectSource)||(H.inspectSource=function(e){return U(e)});var q,W,J=H.inspectSource,F=M,z=E.WeakMap,G=F(z)&&/native code/.test(String(z)),X=M,$=T.all,Q=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:X(e)||e===$}:function(e){return"object"==typeof e?null!==e:X(e)},Y={},Z=Q,ee=E.document,te=Z(ee)&&Z(ee.createElement),ne=function(e){return te?ee.createElement(e):{}},re=ne,ie=!i&&!r((function(){return 7!==Object.defineProperty(re("div"),"a",{get:function(){return 7}}).a})),oe=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ae=Q,se=String,ce=TypeError,ue=function(e){if(ae(e))return e;throw new ce(se(e)+" is not an object")},le=o,fe=Function.prototype.call,de=le?fe.bind(fe):function(){return fe.apply(fe,arguments)},pe=E,ge=M,he=function(e,t){return arguments.length<2?(n=pe[e],ge(n)?n:void 0):pe[e]&&pe[e][t];var n},ve=l({}.isPrototypeOf),be="undefined"!=typeof navigator&&String(navigator.userAgent)||"",me=E,ye=be,we=me.process,Se=me.Deno,je=we&&we.versions||Se&&Se.version,Pe=je&&je.v8;Pe&&(W=(q=Pe.split("."))[0]>0&&q[0]<4?1:+(q[0]+q[1])),!W&&ye&&(!(q=ye.match(/Edge\/(\d+)/))||q[1]>=74)&&(q=ye.match(/Chrome\/(\d+)/))&&(W=+q[1]);var Oe=W,xe=Oe,ke=r,_e=E.String,Ie=!!Object.getOwnPropertySymbols&&!ke((function(){var e=Symbol("symbol detection");return!_e(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xe&&xe<41})),Te=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Re=he,Me=M,Ae=ve,Ee=Object,De=Te?function(e){return"symbol"==typeof e}:function(e){var t=Re("Symbol");return Me(t)&&Ae(t.prototype,Ee(e))},Ne=String,Ce=function(e){try{return Ne(e)}catch(e){return"Object"}},Ve=M,Le=Ce,Ke=TypeError,Be=function(e){if(Ve(e))return e;throw new Ke(Le(e)+" is not a function")},He=Be,Ue=f,qe=function(e,t){var n=e[t];return Ue(n)?void 0:He(n)},We=de,Je=M,Fe=Q,ze=TypeError,Ge={exports:{}},Xe=K;(Ge.exports=function(e,t){return Xe[e]||(Xe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"ยฉ 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=Ge.exports,Qe=l,Ye=0,Ze=Math.random(),et=Qe(1..toString),tt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+et(++Ye+Ze,36)},nt=$e,rt=w,it=tt,ot=Ie,at=Te,st=E.Symbol,ct=nt("wks"),ut=at?st.for||st:st&&st.withoutSetter||it,lt=function(e){return rt(ct,e)||(ct[e]=ot&&rt(st,e)?st[e]:ut("Symbol."+e)),ct[e]},ft=de,dt=Q,pt=De,gt=qe,ht=function(e,t){var n,r;if("string"===t&&Je(n=e.toString)&&!Fe(r=We(n,e)))return r;if(Je(n=e.valueOf)&&!Fe(r=We(n,e)))return r;if("string"!==t&&Je(n=e.toString)&&!Fe(r=We(n,e)))return r;throw new ze("Can't convert object to primitive value")},vt=TypeError,bt=lt("toPrimitive"),mt=function(e,t){if(!dt(e)||pt(e))return e;var n,r=gt(e,bt);if(r){if(void 0===t&&(t="default"),n=ft(r,e,t),!dt(n)||pt(n))return n;throw new vt("Can't convert object to primitive value")}return void 0===t&&(t="number"),ht(e,t)},yt=De,wt=function(e){var t=mt(e,"string");return yt(t)?t:t+""},St=i,jt=ie,Pt=oe,Ot=ue,xt=wt,kt=TypeError,_t=Object.defineProperty,It=Object.getOwnPropertyDescriptor,Tt="enumerable",Rt="configurable",Mt="writable";Y.f=St?Pt?function(e,t,n){if(Ot(e),t=xt(t),Ot(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Mt in n&&!n[Mt]){var r=It(e,t);r&&r[Mt]&&(e[t]=n.value,n={configurable:Rt in n?n[Rt]:r[Rt],enumerable:Tt in n?n[Tt]:r[Tt],writable:!1})}return _t(e,t,n)}:_t:function(e,t,n){if(Ot(e),t=xt(t),Ot(n),jt)try{return _t(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new kt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var At,Et,Dt,Nt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ct=Y,Vt=Nt,Lt=i?function(e,t,n){return Ct.f(e,t,Vt(1,n))}:function(e,t,n){return e[t]=n,e},Kt=tt,Bt=$e("keys"),Ht=function(e){return Bt[e]||(Bt[e]=Kt(e))},Ut={},qt=G,Wt=E,Jt=Q,Ft=Lt,zt=w,Gt=K,Xt=Ht,$t=Ut,Qt="Object already initialized",Yt=Wt.TypeError,Zt=Wt.WeakMap;if(qt||Gt.state){var en=Gt.state||(Gt.state=new Zt);en.get=en.get,en.has=en.has,en.set=en.set,At=function(e,t){if(en.has(e))throw new Yt(Qt);return t.facade=e,en.set(e,t),t},Et=function(e){return en.get(e)||{}},Dt=function(e){return en.has(e)}}else{var tn=Xt("state");$t[tn]=!0,At=function(e,t){if(zt(e,tn))throw new Yt(Qt);return t.facade=e,Ft(e,tn,t),t},Et=function(e){return zt(e,tn)?e[tn]:{}},Dt=function(e){return zt(e,tn)}}var nn={set:At,get:Et,has:Dt,enforce:function(e){return Dt(e)?Et(e):At(e,{})},getterFor:function(e){return function(t){var n;if(!Jt(t)||(n=Et(t)).type!==e)throw new Yt("Incompatible receiver, "+e+" required");return n}}},rn=l,on=r,an=M,sn=w,cn=i,un=k.CONFIGURABLE,ln=J,fn=nn.enforce,dn=nn.get,pn=String,gn=Object.defineProperty,hn=rn("".slice),vn=rn("".replace),bn=rn([].join),mn=cn&&!on((function(){return 8!==gn((function(){}),"length",{value:8}).length})),yn=String(String).split("String"),wn=_.exports=function(e,t,n){"Symbol("===hn(pn(t),0,7)&&(t="["+vn(pn(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!sn(e,"name")||un&&e.name!==t)&&(cn?gn(e,"name",{value:t,configurable:!0}):e.name=t),mn&&n&&sn(n,"arity")&&e.length!==n.arity&&gn(e,"length",{value:n.arity});try{n&&sn(n,"constructor")&&n.constructor?cn&&gn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=fn(e);return sn(r,"source")||(r.source=bn(yn,"string"==typeof t?t:"")),e};Function.prototype.toString=wn((function(){return an(this)&&dn(this).source||ln(this)}),"toString");var Sn,jn,Pn,On,xn=_.exports,kn=xn,_n=Y,In=function(e,t,n){return n.get&&kn(n.get,t,{getter:!0}),n.set&&kn(n.set,t,{setter:!0}),_n.f(e,t,n)},Tn=i,Rn=k.EXISTS,Mn=l,An=In,En=Function.prototype,Dn=Mn(En.toString),Nn=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Cn=Mn(Nn.exec);Tn&&!Rn&&An(En,"name",{configurable:!0,get:function(){try{return Cn(Nn,Dn(this))[1]}catch(e){return""}}}),e.systemTypeEnum=void 0,(Sn=e.systemTypeEnum||(e.systemTypeEnum={})).windows="windows",Sn.mac="mac",Sn.linux="linux",Sn.ios="ios",Sn.android="android",e.supporterTypeEnum=void 0,(jn=e.supporterTypeEnum||(e.supporterTypeEnum={})).chrome="chrome",jn.safari="safari",jn.firefox="firefox",jn.opera="opera",jn.ie="ie",jn.edge="edge",e.shellTypeEnum=void 0,(Pn=e.shellTypeEnum||(e.shellTypeEnum={})).wechat="wechat",Pn["wechat-miniprogram"]="wechat-miniprogram",Pn.alipay="alipay",Pn["alipay-miniprogram"]="alipay-miniprogram",Pn.qq="qq",Pn.uc="uc",e.AppNameEnum=void 0,(On=e.AppNameEnum||(e.AppNameEnum={})).Airmart="Airmart",On.Saigo="Saigo";var Vn={},Ln={},Kn={}.propertyIsEnumerable,Bn=Object.getOwnPropertyDescriptor,Hn=Bn&&!Kn.call({1:2},1);Ln.f=Hn?function(e){var t=Bn(this,e);return!!t&&t.enumerable}:Kn;var Un=l,qn=Un({}.toString),Wn=Un("".slice),Jn=function(e){return Wn(qn(e),8,-1)},Fn=r,zn=Jn,Gn=Object,Xn=l("".split),$n=Fn((function(){return!Gn("z").propertyIsEnumerable(0)}))?function(e){return"String"===zn(e)?Xn(e,""):Gn(e)}:Gn,Qn=$n,Yn=g,Zn=function(e){return Qn(Yn(e))},er=i,tr=de,nr=Ln,rr=Nt,ir=Zn,or=wt,ar=w,sr=ie,cr=Object.getOwnPropertyDescriptor;Vn.f=er?cr:function(e,t){if(e=ir(e),t=or(t),sr)try{return cr(e,t)}catch(e){}if(ar(e,t))return rr(!tr(nr.f,e,t),e[t])};var ur=M,lr=Y,fr=xn,dr=C,pr=function(e,t,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:t;if(ur(n)&&fr(n,o,r),r.global)i?e[t]=n:dr(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:lr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},gr={},hr=Math.ceil,vr=Math.floor,br=Math.trunc||function(e){var t=+e;return(t>0?vr:hr)(t)},mr=function(e){var t=+e;return t!=t||0===t?0:br(t)},yr=mr,wr=Math.max,Sr=Math.min,jr=function(e,t){var n=yr(e);return n<0?wr(n+t,0):Sr(n,t)},Pr=mr,Or=Math.min,xr=function(e){return e>0?Or(Pr(e),9007199254740991):0},kr=xr,_r=function(e){return kr(e.length)},Ir=Zn,Tr=jr,Rr=_r,Mr=function(e){return function(t,n,r){var i,o=Ir(t),a=Rr(o),s=Tr(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Ar={includes:Mr(!0),indexOf:Mr(!1)},Er=w,Dr=Zn,Nr=Ar.indexOf,Cr=Ut,Vr=l([].push),Lr=function(e,t){var n,r=Dr(e),i=0,o=[];for(n in r)!Er(Cr,n)&&Er(r,n)&&Vr(o,n);for(;t.length>i;)Er(r,n=t[i++])&&(~Nr(o,n)||Vr(o,n));return o},Kr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Br=Lr,Hr=Kr.concat("length","prototype");gr.f=Object.getOwnPropertyNames||function(e){return Br(e,Hr)};var Ur={};Ur.f=Object.getOwnPropertySymbols;var qr=he,Wr=gr,Jr=Ur,Fr=ue,zr=l([].concat),Gr=qr("Reflect","ownKeys")||function(e){var t=Wr.f(Fr(e)),n=Jr.f;return n?zr(t,n(e)):t},Xr=w,$r=Gr,Qr=Vn,Yr=Y,Zr=r,ei=M,ti=/#|\.prototype\./,ni=function(e,t){var n=ii[ri(e)];return n===ai||n!==oi&&(ei(t)?Zr(t):!!t)},ri=ni.normalize=function(e){return String(e).replace(ti,".").toLowerCase()},ii=ni.data={},oi=ni.NATIVE="N",ai=ni.POLYFILL="P",si=ni,ci=E,ui=Vn.f,li=Lt,fi=pr,di=C,pi=function(e,t,n){for(var r=$r(t),i=Yr.f,o=Qr.f,a=0;a<r.length;a++){var s=r[a];Xr(e,s)||n&&Xr(n,s)||i(e,s,o(t,s))}},gi=si,hi=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,u=e.stat;if(n=c?ci:u?ci[s]||di(s,{}):(ci[s]||{}).prototype)for(r in t){if(o=t[r],i=e.dontCallGetSet?(a=ui(n,r))&&a.value:n[r],!gi(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;pi(o,i)}(e.sham||i&&i.sham)&&li(o,"sham",!0),fi(n,r,o,e)}},vi=hi,bi=i,mi=Y.f;vi({target:"Object",stat:!0,forced:Object.defineProperty!==mi,sham:!bi},{defineProperty:mi});var yi={},wi=Lr,Si=Kr,ji=Object.keys||function(e){return wi(e,Si)},Pi=i,Oi=oe,xi=Y,ki=ue,_i=Zn,Ii=ji;yi.f=Pi&&!Oi?Object.defineProperties:function(e,t){ki(e);for(var n,r=_i(t),i=Ii(t),o=i.length,a=0;o>a;)xi.f(e,n=i[a++],r[n]);return e};var Ti,Ri=he("document","documentElement"),Mi=ue,Ai=yi,Ei=Kr,Di=Ut,Ni=Ri,Ci=ne,Vi="prototype",Li="script",Ki=Ht("IE_PROTO"),Bi=function(){},Hi=function(e){return"<"+Li+">"+e+"</"+Li+">"},Ui=function(e){e.write(Hi("")),e.close();var t=e.parentWindow.Object;return e=null,t},qi=function(){try{Ti=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;qi="undefined"!=typeof document?document.domain&&Ti?Ui(Ti):(t=Ci("iframe"),n="java"+Li+":",t.style.display="none",Ni.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Hi("document.F=Object")),e.close(),e.F):Ui(Ti);for(var r=Ei.length;r--;)delete qi[Vi][Ei[r]];return qi()};Di[Ki]=!0;var Wi=Object.create||function(e,t){var n;return null!==e?(Bi[Vi]=Mi(e),n=new Bi,Bi[Vi]=null,n[Ki]=e):n=qi(),void 0===t?n:Ai.f(n,t)},Ji=lt,Fi=Wi,zi=Y.f,Gi=Ji("unscopables"),Xi=Array.prototype;void 0===Xi[Gi]&&zi(Xi,Gi,{configurable:!0,value:Fi(null)});var $i,Qi,Yi,Zi=function(e){Xi[Gi][e]=!0},eo={},to=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),no=w,ro=M,io=b,oo=to,ao=Ht("IE_PROTO"),so=Object,co=so.prototype,uo=oo?so.getPrototypeOf:function(e){var t=io(e);if(no(t,ao))return t[ao];var n=t.constructor;return ro(n)&&t instanceof n?n.prototype:t instanceof so?co:null},lo=r,fo=M,po=Q,go=uo,ho=pr,vo=lt("iterator"),bo=!1;[].keys&&("next"in(Yi=[].keys())?(Qi=go(go(Yi)))!==Object.prototype&&($i=Qi):bo=!0);var mo=!po($i)||lo((function(){var e={};return $i[vo].call(e)!==e}));mo&&($i={}),fo($i[vo])||ho($i,vo,(function(){return this}));var yo={IteratorPrototype:$i,BUGGY_SAFARI_ITERATORS:bo},wo=Y.f,So=w,jo=lt("toStringTag"),Po=function(e,t,n){e&&!n&&(e=e.prototype),e&&!So(e,jo)&&wo(e,jo,{configurable:!0,value:t})},Oo=yo.IteratorPrototype,xo=Wi,ko=Nt,_o=Po,Io=eo,To=function(){return this},Ro=l,Mo=Be,Ao=M,Eo=String,Do=TypeError,No=function(e,t,n){try{return Ro(Mo(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Co=ue,Vo=function(e){if("object"==typeof e||Ao(e))return e;throw new Do("Can't set "+Eo(e)+" as a prototype")},Lo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=No(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Co(n),Vo(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ko=hi,Bo=de,Ho=M,Uo=function(e,t,n,r){var i=t+" Iterator";return e.prototype=xo(Oo,{next:ko(+!r,n)}),_o(e,i,!1),Io[i]=To,e},qo=uo,Wo=Lo,Jo=Po,Fo=Lt,zo=pr,Go=eo,Xo=k.PROPER,$o=k.CONFIGURABLE,Qo=yo.IteratorPrototype,Yo=yo.BUGGY_SAFARI_ITERATORS,Zo=lt("iterator"),ea="keys",ta="values",na="entries",ra=function(){return this},ia=function(e,t,n,r,i,o,a){Uo(n,t,r);var s,c,u,l=function(e){if(e===i&&h)return h;if(!Yo&&e&&e in p)return p[e];switch(e){case ea:case ta:case na:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,g=p[Zo]||p["@@iterator"]||i&&p[i],h=!Yo&&g||l(i),v="Array"===t&&p.entries||g;if(v&&(s=qo(v.call(new e)))!==Object.prototype&&s.next&&(qo(s)!==Qo&&(Wo?Wo(s,Qo):Ho(s[Zo])||zo(s,Zo,ra)),Jo(s,f,!0)),Xo&&i===ta&&g&&g.name!==ta&&($o?Fo(p,"name",ta):(d=!0,h=function(){return Bo(g,this)})),i)if(c={values:l(ta),keys:o?h:l(ea),entries:l(na)},a)for(u in c)(Yo||d||!(u in p))&&zo(p,u,c[u]);else Ko({target:t,proto:!0,forced:Yo||d},c);return p[Zo]!==h&&zo(p,Zo,h,{name:i}),Go[t]=h,c},oa=function(e,t){return{value:e,done:t}},aa=Zn,sa=Zi,ca=eo,ua=nn,la=Y.f,fa=ia,da=oa,pa=i,ga="Array Iterator",ha=ua.set,va=ua.getterFor(ga),ba=fa(Array,"Array",(function(e,t){ha(this,{type:ga,target:aa(e),index:0,kind:t})}),(function(){var e=va(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,da(void 0,!0);switch(e.kind){case"keys":return da(n,!1);case"values":return da(t[n],!1)}return da([n,t[n]],!1)}),"values"),ma=ca.Arguments=ca.Array;if(sa("keys"),sa("values"),sa("entries"),pa&&"values"!==ma.name)try{la(ma,"name",{value:"values"})}catch(e){}var ya={exports:{}},wa={},Sa=wt,ja=Y,Pa=Nt,Oa=function(e,t,n){var r=Sa(t);r in e?ja.f(e,r,Pa(0,n)):e[r]=n},xa=jr,ka=_r,_a=Oa,Ia=Array,Ta=Math.max,Ra=Jn,Ma=Zn,Aa=gr.f,Ea=function(e,t,n){for(var r=ka(e),i=xa(t,r),o=xa(void 0===n?r:n,r),a=Ia(Ta(o-i,0)),s=0;i<o;i++,s++)_a(a,s,e[i]);return a.length=s,a},Da="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];wa.f=function(e){return Da&&"Window"===Ra(e)?function(e){try{return Aa(e)}catch(e){return Ea(Da)}}(e):Aa(Ma(e))};var Na=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ca=r,Va=Q,La=Jn,Ka=Na,Ba=Object.isExtensible,Ha=Ca((function(){Ba(1)}))||Ka?function(e){return!!Va(e)&&((!Ka||"ArrayBuffer"!==La(e))&&(!Ba||Ba(e)))}:Ba,Ua=!r((function(){return Object.isExtensible(Object.preventExtensions({}))})),qa=hi,Wa=l,Ja=Ut,Fa=Q,za=w,Ga=Y.f,Xa=gr,$a=wa,Qa=Ha,Ya=Ua,Za=!1,es=tt("meta"),ts=0,ns=function(e){Ga(e,es,{value:{objectID:"O"+ts++,weakData:{}}})},rs=ya.exports={enable:function(){rs.enable=function(){},Za=!0;var e=Xa.f,t=Wa([].splice),n={};n[es]=1,e(n).length&&(Xa.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===es){t(r,i,1);break}return r},qa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$a.f}))},fastKey:function(e,t){if(!Fa(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!za(e,es)){if(!Qa(e))return"F";if(!t)return"E";ns(e)}return e[es].objectID},getWeakData:function(e,t){if(!za(e,es)){if(!Qa(e))return!0;if(!t)return!1;ns(e)}return e[es].weakData},onFreeze:function(e){return Ya&&Za&&Qa(e)&&!za(e,es)&&ns(e),e}};Ja[es]=!0;var is=ya.exports,os=Jn,as=l,ss=function(e){if("Function"===os(e))return as(e)},cs=Be,us=o,ls=ss(ss.bind),fs=function(e,t){return cs(e),void 0===t?e:us?ls(e,t):function(){return e.apply(t,arguments)}},ds=eo,ps=lt("iterator"),gs=Array.prototype,hs={};hs[lt("toStringTag")]="z";var vs="[object z]"===String(hs),bs=vs,ms=M,ys=Jn,ws=lt("toStringTag"),Ss=Object,js="Arguments"===ys(function(){return arguments}()),Ps=bs?ys:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ss(e),ws))?n:js?ys(t):"Object"===(r=ys(t))&&ms(t.callee)?"Arguments":r},Os=Ps,xs=qe,ks=f,_s=eo,Is=lt("iterator"),Ts=function(e){if(!ks(e))return xs(e,Is)||xs(e,"@@iterator")||_s[Os(e)]},Rs=de,Ms=Be,As=ue,Es=Ce,Ds=Ts,Ns=TypeError,Cs=de,Vs=ue,Ls=qe,Ks=fs,Bs=de,Hs=ue,Us=Ce,qs=function(e){return void 0!==e&&(ds.Array===e||gs[ps]===e)},Ws=_r,Js=ve,Fs=function(e,t){var n=arguments.length<2?Ds(e):t;if(Ms(n))return As(Rs(n,e));throw new Ns(Es(e)+" is not iterable")},zs=Ts,Gs=function(e,t,n){var r,i;Vs(e);try{if(!(r=Ls(e,"return"))){if("throw"===t)throw n;return n}r=Cs(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Vs(r),n},Xs=TypeError,$s=function(e,t){this.stopped=e,this.result=t},Qs=$s.prototype,Ys=function(e,t,n){var r,i,o,a,s,c,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=Ks(t,l),v=function(e){return r&&Gs(r,"normal",e),new $s(!0,e)},b=function(e){return f?(Hs(e),g?h(e[0],e[1],v):h(e[0],e[1])):g?h(e,v):h(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(i=zs(e)))throw new Xs(Us(e)+" is not iterable");if(qs(i)){for(o=0,a=Ws(e);a>o;o++)if((s=b(e[o]))&&Js(Qs,s))return s;return new $s(!1)}r=Fs(e,i)}for(c=d?e.next:r.next;!(u=Bs(c,r)).done;){try{s=b(u.value)}catch(e){Gs(r,"throw",e)}if("object"==typeof s&&s&&Js(Qs,s))return s}return new $s(!1)},Zs=ve,ec=TypeError,tc=function(e,t){if(Zs(t,e))return e;throw new ec("Incorrect invocation")},nc=lt("iterator"),rc=!1;try{var ic=0,oc={next:function(){return{done:!!ic++}},return:function(){rc=!0}};oc[nc]=function(){return this},Array.from(oc,(function(){throw 2}))}catch(e){}var ac=function(e,t){try{if(!t&&!rc)return!1}catch(e){return!1}var n=!1;try{var r={};r[nc]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},sc=M,cc=Q,uc=Lo,lc=hi,fc=E,dc=l,pc=si,gc=pr,hc=is,vc=Ys,bc=tc,mc=M,yc=f,wc=Q,Sc=r,jc=ac,Pc=Po,Oc=function(e,t,n){var r,i;return uc&&sc(r=t.constructor)&&r!==n&&cc(i=r.prototype)&&i!==n.prototype&&uc(e,i),e},xc=pr,kc=he,_c=In,Ic=i,Tc=lt("species"),Rc=function(e){var t=kc(e);Ic&&t&&!t[Tc]&&_c(t,Tc,{configurable:!0,get:function(){return this}})},Mc=Wi,Ac=In,Ec=function(e,t,n){for(var r in t)xc(e,r,t[r],n);return e},Dc=fs,Nc=tc,Cc=f,Vc=Ys,Lc=ia,Kc=oa,Bc=Rc,Hc=i,Uc=is.fastKey,qc=nn.set,Wc=nn.getterFor,Jc={getConstructor:function(e,t,n,r){var i=e((function(e,i){Nc(e,o),qc(e,{type:t,index:Mc(null),first:void 0,last:void 0,size:0}),Hc||(e.size=0),Cc(i)||Vc(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=Wc(t),s=function(e,t,n){var r,i,o=a(e),s=c(e,t);return s?s.value=n:(o.last=s={index:i=Uc(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),Hc?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},c=function(e,t){var n,r=a(e),i=Uc(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return Ec(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Hc?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=c(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),Hc?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Dc(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Ec(o,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),Hc&&Ac(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=Wc(t),o=Wc(r);Lc(e,t,(function(e,t){qc(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Kc("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,Kc(void 0,!0))}),n?"entries":"values",!n,!0),Bc(t)}};(function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=fc[e],s=a&&a.prototype,c=a,u={},l=function(e){var t=dc(s[e]);gc(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(i&&!wc(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return i&&!wc(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(i&&!wc(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(pc(e,!mc(a)||!(i||s.forEach&&!Sc((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),hc.enable();else if(pc(e,!0)){var f=new c,d=f[o](i?{}:-0,1)!==f,p=Sc((function(){f.has(1)})),g=jc((function(e){new a(e)})),h=!i&&Sc((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));g||((c=t((function(e,t){bc(e,s);var n=Oc(new a,e,c);return yc(t)||vc(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(l("delete"),l("has"),r&&l("get")),(h||d)&&l(o),i&&s.clear&&delete s.clear}u[e]=c,lc({global:!0,constructor:!0,forced:c!==a},u),Pc(c,e),i||n.setStrong(c,e,r)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Jc);var Fc=Ps,zc=vs?{}.toString:function(){return"[object "+Fc(this)+"]"};vs||pr(Object.prototype,"toString",zc,{unsafe:!0});var Gc=Ps,Xc=String,$c=function(e){if("Symbol"===Gc(e))throw new TypeError("Cannot convert a Symbol value to a string");return Xc(e)},Qc=l,Yc=mr,Zc=$c,eu=g,tu=Qc("".charAt),nu=Qc("".charCodeAt),ru=Qc("".slice),iu=function(e){return function(t,n){var r,i,o=Zc(eu(t)),a=Yc(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=nu(o,a))<55296||r>56319||a+1===s||(i=nu(o,a+1))<56320||i>57343?e?tu(o,a):r:e?ru(o,a,a+2):i-56320+(r-55296<<10)+65536}},ou={codeAt:iu(!1),charAt:iu(!0)},au=ou.charAt,su=$c,cu=nn,uu=ia,lu=oa,fu="String Iterator",du=cu.set,pu=cu.getterFor(fu);uu(String,"String",(function(e){du(this,{type:fu,string:su(e),index:0})}),(function(){var e,t=pu(this),n=t.string,r=t.index;return r>=n.length?lu(void 0,!0):(e=au(n,r),t.index+=e.length,lu(e,!1))}));var gu={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},hu=ne("span").classList,vu=hu&&hu.constructor&&hu.constructor.prototype,bu=vu===Object.prototype?void 0:vu,mu=E,yu=gu,wu=bu,Su=ba,ju=Lt,Pu=lt,Ou=Pu("iterator"),xu=Pu("toStringTag"),ku=Su.values,_u=function(e,t){if(e){if(e[Ou]!==ku)try{ju(e,Ou,ku)}catch(t){e[Ou]=ku}if(e[xu]||ju(e,xu,t),yu[t])for(var n in Su)if(e[n]!==Su[n])try{ju(e,n,Su[n])}catch(t){e[n]=Su[n]}}};for(var Iu in yu)_u(mu[Iu]&&mu[Iu].prototype,Iu);_u(wu,"DOMTokenList");var Tu=i,Ru=l,Mu=de,Au=r,Eu=ji,Du=Ur,Nu=Ln,Cu=b,Vu=$n,Lu=Object.assign,Ku=Object.defineProperty,Bu=Ru([].concat),Hu=!Lu||Au((function(){if(Tu&&1!==Lu({b:1},Lu(Ku({},"a",{enumerable:!0,get:function(){Ku(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==Lu({},e)[n]||Eu(Lu({},t)).join("")!==r}))?function(e,t){for(var n=Cu(e),r=arguments.length,i=1,o=Du.f,a=Nu.f;r>i;)for(var s,c=Vu(arguments[i++]),u=o?Bu(Eu(c),o(c)):Eu(c),l=u.length,f=0;l>f;)s=u[f++],Tu&&!Mu(a,c,s)||(n[s]=c[s]);return n}:Lu,Uu=Hu;hi({target:"Object",stat:!0,arity:2,forced:Object.assign!==Uu},{assign:Uu});var qu="process"===Jn(E.process),Wu=l,Ju=r,Fu=M,zu=Ps,Gu=J,Xu=function(){},$u=[],Qu=he("Reflect","construct"),Yu=/^\s*(?:class|function)\b/,Zu=Wu(Yu.exec),el=!Yu.test(Xu),tl=function(e){if(!Fu(e))return!1;try{return Qu(Xu,$u,e),!0}catch(e){return!1}},nl=function(e){if(!Fu(e))return!1;switch(zu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return el||!!Zu(Yu,Gu(e))}catch(e){return!0}};nl.sham=!0;var rl,il,ol,al,sl=!Qu||Ju((function(){var e;return tl(tl.call)||!tl(Object)||!tl((function(){e=!0}))||e}))?nl:tl,cl=sl,ul=Ce,ll=TypeError,fl=ue,dl=function(e){if(cl(e))return e;throw new ll(ul(e)+" is not a constructor")},pl=f,gl=lt("species"),hl=o,vl=Function.prototype,bl=vl.apply,ml=vl.call,yl="object"==typeof Reflect&&Reflect.apply||(hl?ml.bind(bl):function(){return ml.apply(bl,arguments)}),wl=l([].slice),Sl=TypeError,jl=/(?:ipad|iphone|ipod).*applewebkit/i.test(be),Pl=E,Ol=yl,xl=fs,kl=M,_l=w,Il=r,Tl=Ri,Rl=wl,Ml=ne,Al=function(e,t){if(e<t)throw new Sl("Not enough arguments");return e},El=jl,Dl=qu,Nl=Pl.setImmediate,Cl=Pl.clearImmediate,Vl=Pl.process,Ll=Pl.Dispatch,Kl=Pl.Function,Bl=Pl.MessageChannel,Hl=Pl.String,Ul=0,ql={},Wl="onreadystatechange";Il((function(){rl=Pl.location}));var Jl=function(e){if(_l(ql,e)){var t=ql[e];delete ql[e],t()}},Fl=function(e){return function(){Jl(e)}},zl=function(e){Jl(e.data)},Gl=function(e){Pl.postMessage(Hl(e),rl.protocol+"//"+rl.host)};Nl&&Cl||(Nl=function(e){Al(arguments.length,1);var t=kl(e)?e:Kl(e),n=Rl(arguments,1);return ql[++Ul]=function(){Ol(t,void 0,n)},il(Ul),Ul},Cl=function(e){delete ql[e]},Dl?il=function(e){Vl.nextTick(Fl(e))}:Ll&&Ll.now?il=function(e){Ll.now(Fl(e))}:Bl&&!El?(al=(ol=new Bl).port2,ol.port1.onmessage=zl,il=xl(al.postMessage,al)):Pl.addEventListener&&kl(Pl.postMessage)&&!Pl.importScripts&&rl&&"file:"!==rl.protocol&&!Il(Gl)?(il=Gl,Pl.addEventListener("message",zl,!1)):il=Wl in Ml("script")?function(e){Tl.appendChild(Ml("script"))[Wl]=function(){Tl.removeChild(this),Jl(e)}}:function(e){setTimeout(Fl(e),0)});var Xl={set:Nl,clear:Cl},$l=function(){this.head=null,this.tail=null};$l.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Ql,Yl,Zl,ef,tf,nf=$l,rf=/ipad|iphone|ipod/i.test(be)&&"undefined"!=typeof Pebble,of=/web0s(?!.*chrome)/i.test(be),af=E,sf=fs,cf=Vn.f,uf=Xl.set,lf=nf,ff=jl,df=rf,pf=of,gf=qu,hf=af.MutationObserver||af.WebKitMutationObserver,vf=af.document,bf=af.process,mf=af.Promise,yf=cf(af,"queueMicrotask"),wf=yf&&yf.value;if(!wf){var Sf=new lf,jf=function(){var e,t;for(gf&&(e=bf.domain)&&e.exit();t=Sf.get();)try{t()}catch(e){throw Sf.head&&Ql(),e}e&&e.enter()};ff||gf||pf||!hf||!vf?!df&&mf&&mf.resolve?((ef=mf.resolve(void 0)).constructor=mf,tf=sf(ef.then,ef),Ql=function(){tf(jf)}):gf?Ql=function(){bf.nextTick(jf)}:(uf=sf(uf,af),Ql=function(){uf(jf)}):(Yl=!0,Zl=vf.createTextNode(""),new hf(jf).observe(Zl,{characterData:!0}),Ql=function(){Zl.data=Yl=!Yl}),wf=function(e){Sf.head||Ql(),Sf.add(e)}}var Pf=wf,Of=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},xf=E.Promise,kf="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,_f=!kf&&!qu&&"object"==typeof window&&"object"==typeof document,If=E,Tf=xf,Rf=M,Mf=si,Af=J,Ef=lt,Df=_f,Nf=kf,Cf=Oe;Tf&&Tf.prototype;var Vf=Ef("species"),Lf=!1,Kf=Rf(If.PromiseRejectionEvent),Bf=Mf("Promise",(function(){var e=Af(Tf),t=e!==String(Tf);if(!t&&66===Cf)return!0;if(!Cf||Cf<51||!/native code/.test(e)){var n=new Tf((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Vf]=r,!(Lf=n.then((function(){}))instanceof r))return!0}return!t&&(Df||Nf)&&!Kf})),Hf={CONSTRUCTOR:Bf,REJECTION_EVENT:Kf,SUBCLASSING:Lf},Uf={},qf=Be,Wf=TypeError,Jf=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Wf("Bad Promise constructor");t=e,n=r})),this.resolve=qf(t),this.reject=qf(n)};Uf.f=function(e){return new Jf(e)};var Ff,zf,Gf,Xf=hi,$f=qu,Qf=E,Yf=de,Zf=pr,ed=Lo,td=Po,nd=Rc,rd=Be,id=M,od=Q,ad=tc,sd=function(e,t){var n,r=fl(e).constructor;return void 0===r||pl(n=fl(r)[gl])?t:dl(n)},cd=Xl.set,ud=Pf,ld=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},fd=Of,dd=nf,pd=nn,gd=xf,hd=Uf,vd="Promise",bd=Hf.CONSTRUCTOR,md=Hf.REJECTION_EVENT,yd=Hf.SUBCLASSING,wd=pd.getterFor(vd),Sd=pd.set,jd=gd&&gd.prototype,Pd=gd,Od=jd,xd=Qf.TypeError,kd=Qf.document,_d=Qf.process,Id=hd.f,Td=Id,Rd=!!(kd&&kd.createEvent&&Qf.dispatchEvent),Md="unhandledrejection",Ad=function(e){var t;return!(!od(e)||!id(t=e.then))&&t},Ed=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Ld(t),t.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===e.promise?u(new xd("Promise-chain cycle")):(r=Ad(n))?Yf(r,n,c,u):c(n)):u(o)}catch(e){l&&!i&&l.exit(),u(e)}},Dd=function(e,t){e.notified||(e.notified=!0,ud((function(){for(var n,r=e.reactions;n=r.get();)Ed(n,e);e.notified=!1,t&&!e.rejection&&Cd(e)})))},Nd=function(e,t,n){var r,i;Rd?((r=kd.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Qf.dispatchEvent(r)):r={promise:t,reason:n},!md&&(i=Qf["on"+e])?i(r):e===Md&&ld("Unhandled promise rejection",n)},Cd=function(e){Yf(cd,Qf,(function(){var t,n=e.facade,r=e.value;if(Vd(e)&&(t=fd((function(){$f?_d.emit("unhandledRejection",r,n):Nd(Md,n,r)})),e.rejection=$f||Vd(e)?2:1,t.error))throw t.value}))},Vd=function(e){return 1!==e.rejection&&!e.parent},Ld=function(e){Yf(cd,Qf,(function(){var t=e.facade;$f?_d.emit("rejectionHandled",t):Nd("rejectionhandled",t,e.value)}))},Kd=function(e,t,n){return function(r){e(t,r,n)}},Bd=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Dd(e,!0))},Hd=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new xd("Promise can't be resolved itself");var r=Ad(t);r?ud((function(){var n={done:!1};try{Yf(r,t,Kd(Hd,n,e),Kd(Bd,n,e))}catch(t){Bd(n,t,e)}})):(e.value=t,e.state=1,Dd(e,!1))}catch(t){Bd({done:!1},t,e)}}};if(bd&&(Od=(Pd=function(e){ad(this,Od),rd(e),Yf(Ff,this);var t=wd(this);try{e(Kd(Hd,t),Kd(Bd,t))}catch(e){Bd(t,e)}}).prototype,(Ff=function(e){Sd(this,{type:vd,done:!1,notified:!1,parent:!1,reactions:new dd,rejection:!1,state:0,value:void 0})}).prototype=Zf(Od,"then",(function(e,t){var n=wd(this),r=Id(sd(this,Pd));return n.parent=!0,r.ok=!id(e)||e,r.fail=id(t)&&t,r.domain=$f?_d.domain:void 0,0===n.state?n.reactions.add(r):ud((function(){Ed(r,n)})),r.promise})),zf=function(){var e=new Ff,t=wd(e);this.promise=e,this.resolve=Kd(Hd,t),this.reject=Kd(Bd,t)},hd.f=Id=function(e){return e===Pd||undefined===e?new zf(e):Td(e)},id(gd)&&jd!==Object.prototype)){Gf=jd.then,yd||Zf(jd,"then",(function(e,t){var n=this;return new Pd((function(e,t){Yf(Gf,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete jd.constructor}catch(e){}ed&&ed(jd,Od)}Xf({global:!0,constructor:!0,wrap:!0,forced:bd},{Promise:Pd}),td(Pd,vd,!1),nd(vd);var Ud=xf,qd=Hf.CONSTRUCTOR||!ac((function(e){Ud.all(e).then(void 0,(function(){}))})),Wd=de,Jd=Be,Fd=Uf,zd=Of,Gd=Ys;hi({target:"Promise",stat:!0,forced:qd},{all:function(e){var t=this,n=Fd.f(t),r=n.resolve,i=n.reject,o=zd((function(){var n=Jd(t.resolve),o=[],a=0,s=1;Gd(e,(function(e){var c=a++,u=!1;s++,Wd(n,t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var Xd=hi,$d=Hf.CONSTRUCTOR,Qd=xf,Yd=he,Zd=M,ep=pr,tp=Qd&&Qd.prototype;if(Xd({target:"Promise",proto:!0,forced:$d,real:!0},{catch:function(e){return this.then(void 0,e)}}),Zd(Qd)){var np=Yd("Promise").prototype.catch;tp.catch!==np&&ep(tp,"catch",np,{unsafe:!0})}var rp=de,ip=Be,op=Uf,ap=Of,sp=Ys;hi({target:"Promise",stat:!0,forced:qd},{race:function(e){var t=this,n=op.f(t),r=n.reject,i=ap((function(){var i=ip(t.resolve);sp(e,(function(e){rp(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var cp=de,up=Uf;hi({target:"Promise",stat:!0,forced:Hf.CONSTRUCTOR},{reject:function(e){var t=up.f(this);return cp(t.reject,void 0,e),t.promise}});var lp=ue,fp=Q,dp=Uf,pp=hi,gp=Hf.CONSTRUCTOR,hp=function(e,t){if(lp(e),fp(t)&&t.constructor===e)return t;var n=dp.f(e);return(0,n.resolve)(t),n.promise};let vp;he("Promise"),pp({target:"Promise",stat:!0,forced:gp},{resolve:function(e){return hp(this,e)}});const bp=new Uint8Array(16);function mp(){if(!vp&&(vp="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vp(bp)}const yp=[];for(let e=0;e<256;++e)yp.push((e+256).toString(16).slice(1));var wp={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Sp(e,t,n){if(wp.randomUUID&&!t&&!e)return wp.randomUUID();const r=(e=e||{}).random||(e.rng||mp)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return yp[e[t+0]]+yp[e[t+1]]+yp[e[t+2]]+yp[e[t+3]]+"-"+yp[e[t+4]]+yp[e[t+5]]+"-"+yp[e[t+6]]+yp[e[t+7]]+"-"+yp[e[t+8]]+yp[e[t+9]]+"-"+yp[e[t+10]]+yp[e[t+11]]+yp[e[t+12]]+yp[e[t+13]]+yp[e[t+14]]+yp[e[t+15]]}(r)}var jp={failedTime:3e3},Pp=function(){function e(e){var t=this;Object.defineProperty(this,"clientWindow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentWindow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"origin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"failedTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"requestCache",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var n=Object.assign({},e,jp),r=n.clientWindow,i=n.parentWindow,o=n.origin,a=n.failedTime;this.clientWindow=r,this.parentWindow=i,this.origin=o,this.failedTime=a,r.onmessage=function(e){t.receiveResponse(e)}}return Object.defineProperty(e.prototype,"receiveResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if("*"===this.origin||e.origin===this.origin){var t=e.data;if("response"===t.type&&this.requestCache.has(t.requestId)){var n=this.requestCache.get(t.requestId);t.isSuccess?n.success(t.body):n.failed(t.body)}}}}),Object.defineProperty(e.prototype,"call",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r={requestId:Sp(),handlerName:e,body:t};return console.log("๐Ÿš€ ~ file: ChannelClient.ts:87 ~ ChannelClient ~ call ~ request:",r),new Promise((function(e,t){n.parentWindow.postMessage(r,n.origin),n.requestCache.set(r.requestId,{success:e,failed:t}),setTimeout((function(){n.timeoutFailed(r.requestId)}),n.failedTime)}))}}),Object.defineProperty(e.prototype,"timeoutFailed",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.requestCache.has(e)){var t=this.requestCache.get(e);this.requestCache.delete(e),t.failed("Request Timeout")}}}),e}(),Op=function(){function e(){var e=this;Object.defineProperty(this,"requestHandlerMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),window.onmessage=function(t){e.receiveRequest(t)}}return Object.defineProperty(e.prototype,"receiveRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.data;console.log("๐Ÿš€ ~ file: ChannelParent.ts:19 ~ ChannelParent ~ receiveRequest ~ request:",t),t.requestId&&this.requestHandlerMap.has(t.handlerName)&&e.source&&e.source.postMessage(this.handleRequest(t),e.origin)}}),Object.defineProperty(e.prototype,"handleRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.requestId,n=e.handlerName,r={type:"response",requestId:t,handlerName:n};try{var i=this.requestHandlerMap.get(n);i&&(r.isSuccess=!0,r.body=i(e.body))}catch(e){r.isSuccess=!1,r.body=e}return r}}),Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.requestHandlerMap.set(e,t)}}),e}(),xp=Jn,kp=Array.isArray||function(e){return"Array"===xp(e)},_p=kp,Ip=sl,Tp=Q,Rp=lt("species"),Mp=Array,Ap=function(e){var t;return _p(e)&&(t=e.constructor,(Ip(t)&&(t===Mp||_p(t.prototype))||Tp(t)&&null===(t=t[Rp]))&&(t=void 0)),void 0===t?Mp:t},Ep=function(e,t){return new(Ap(e))(0===t?0:t)},Dp=fs,Np=$n,Cp=b,Vp=_r,Lp=Ep,Kp=l([].push),Bp=function(e){var t=1===e,n=2===e,r=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(c,u,l,f){for(var d,p,g=Cp(c),h=Np(g),v=Dp(u,l),b=Vp(h),m=0,y=f||Lp,w=t?y(c,b):n||a?y(c,0):void 0;b>m;m++)if((s||m in h)&&(p=v(d=h[m],m,g),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Kp(w,d)}else switch(e){case 4:return!1;case 7:Kp(w,d)}return o?-1:r||i?i:w}},Hp={forEach:Bp(0),map:Bp(1),filter:Bp(2),some:Bp(3),every:Bp(4),find:Bp(5),findIndex:Bp(6),filterReject:Bp(7)},Up=r,qp=Oe,Wp=lt("species"),Jp=function(e){return qp>=51||!Up((function(){var t=[];return(t.constructor={})[Wp]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Fp=Hp.map;hi({target:"Array",proto:!0,forced:!Jp("map")},{map:function(e){return Fp(this,e,arguments.length>1?arguments[1]:void 0)}});var zp="\t\n\v\f\r ย แš€โ€€โ€โ€‚โ€ƒโ€„โ€…โ€†โ€‡โ€ˆโ€‰โ€Šโ€ฏโŸใ€€\u2028\u2029\ufeff",Gp=g,Xp=$c,$p=zp,Qp=l("".replace),Yp=RegExp("^["+$p+"]+"),Zp=RegExp("(^|[^"+$p+"])["+$p+"]+$"),eg=function(e){return function(t){var n=Xp(Gp(t));return 1&e&&(n=Qp(n,Yp,"")),2&e&&(n=Qp(n,Zp,"$1")),n}},tg={start:eg(1),end:eg(2),trim:eg(3)},ng=E,rg=r,ig=l,og=$c,ag=tg.trim,sg=zp,cg=ng.parseInt,ug=ng.Symbol,lg=ug&&ug.iterator,fg=/^[+-]?0x/i,dg=ig(fg.exec),pg=8!==cg(sg+"08")||22!==cg(sg+"0x16")||lg&&!rg((function(){cg(Object(lg))}))?function(e,t){var n=ag(og(e));return cg(n,t>>>0||(dg(fg,n)?16:10))}:cg;hi({global:!0,forced:parseInt!==pg},{parseInt:pg});var gg=r,hg=function(e,t){var n=[][e];return!!n&&gg((function(){n.call(null,t||function(){return 1},1)}))},vg=Hp.forEach,bg=hg("forEach")?[].forEach:function(e){return vg(this,e,arguments.length>1?arguments[1]:void 0)};hi({target:"Array",proto:!0,forced:[].forEach!==bg},{forEach:bg});var mg=E,yg=gu,wg=bu,Sg=bg,jg=Lt,Pg=function(e){if(e&&e.forEach!==Sg)try{jg(e,"forEach",Sg)}catch(t){e.forEach=Sg}};for(var Og in yg)yg[Og]&&Pg(mg[Og]&&mg[Og].prototype);Pg(wg);var xg=TypeError,kg=hi,_g=r,Ig=kp,Tg=Q,Rg=b,Mg=_r,Ag=function(e){if(e>9007199254740991)throw xg("Maximum allowed index exceeded");return e},Eg=Oa,Dg=Ep,Ng=Jp,Cg=Oe,Vg=lt("isConcatSpreadable"),Lg=Cg>=51||!_g((function(){var e=[];return e[Vg]=!1,e.concat()[0]!==e})),Kg=function(e){if(!Tg(e))return!1;var t=e[Vg];return void 0!==t?!!t:Ig(e)};function Bg(e,t){for(var n=e.split(".").map((function(e){return parseInt(e,10)})),r=t.split(".").map((function(e){return parseInt(e,10)})),i=0;i<Math.max(n.length,r.length);i++){var o=n[i]||0,a=r[i]||0;if(o!==a)return o>a?1:-1}return 0}function Hg(e){if(!e)return{};var t=e.split("?")[1];if(!t)return{};var n={};return t.split("&").forEach((function(e){var t=e.split("=")[0],r=e.split("=")[1];n[t]=r})),n}kg({target:"Array",proto:!0,arity:1,forced:!Lg||!Ng("concat")},{concat:function(e){var t,n,r,i,o,a=Rg(this),s=Dg(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Kg(o=-1===t?a:arguments[t]))for(i=Mg(o),Ag(c+i),n=0;n<i;n++,c++)n in o&&Eg(s,c,o[n]);else Ag(c+1),Eg(s,c++,o);return s.length=c,s}});var Ug=b,qg=ji;hi({target:"Object",stat:!0,forced:r((function(){qg(1)}))},{keys:function(e){return qg(Ug(e))}});var Wg=localStorage,Jg={prefixKey:"jubo_",cacheTime:2592e3},Fg=function(){function e(e,t){Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:Jg}),this.storage=e||Wg,this.options=Object.assign({},t,Jg)}return Object.defineProperty(e.prototype,"getKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return"".concat(this.options.prefixKey).concat(e).toUpperCase()}}),Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=n&&~~n||this.options.cacheTime;-1===r&&(r=void 0);var i=JSON.stringify({value:t,expire:r?(new Date).getTime()+1e3*r:null});this.storage.setItem(this.getKey(e),i)}}),Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=void 0);var n=this.storage.getItem(this.getKey(e));if(n)try{var r=JSON.parse(n),i=r.value,o=r.expire;if(null===o||o>=(new Date).getTime())return i;this.remove(e)}catch(e){return t}return t}}),Object.defineProperty(e.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.storage.removeItem(this.getKey(e))}}),Object.defineProperty(e.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.storage.clear()}}),e}(),zg=function(e,t){return new Fg(e,t)},Gg=zg(localStorage);zg(sessionStorage);var Xg=hi,$g=Hp.find,Qg=Zi,Yg="find",Zg=!0;Yg in[]&&Array(1)[Yg]((function(){Zg=!1})),Xg({target:"Array",proto:!0,forced:Zg},{find:function(e){return $g(this,e,arguments.length>1?arguments[1]:void 0)}}),Qg(Yg);var eh=hi,th=Ar.indexOf,nh=hg,rh=ss([].indexOf),ih=!!rh&&1/rh([1],1,-0)<0;eh({target:"Array",proto:!0,forced:ih||!nh("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ih?rh(this,e,t)||0:th(this,e,t)}});var oh,ah,sh=ue,ch=function(){var e=sh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},uh=r,lh=E.RegExp,fh=uh((function(){var e=lh("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),dh=fh||uh((function(){return!lh("a","y").sticky})),ph={BROKEN_CARET:fh||uh((function(){var e=lh("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:dh,UNSUPPORTED_Y:fh},gh=r,hh=E.RegExp,vh=gh((function(){var e=hh(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),bh=r,mh=E.RegExp,yh=bh((function(){var e=mh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wh=de,Sh=l,jh=$c,Ph=ch,Oh=ph,xh=Wi,kh=nn.get,_h=vh,Ih=yh,Th=$e("native-string-replace",String.prototype.replace),Rh=RegExp.prototype.exec,Mh=Rh,Ah=Sh("".charAt),Eh=Sh("".indexOf),Dh=Sh("".replace),Nh=Sh("".slice),Ch=(ah=/b*/g,wh(Rh,oh=/a/,"a"),wh(Rh,ah,"a"),0!==oh.lastIndex||0!==ah.lastIndex),Vh=Oh.BROKEN_CARET,Lh=void 0!==/()??/.exec("")[1];(Ch||Lh||Vh||_h||Ih)&&(Mh=function(e){var t,n,r,i,o,a,s,c=this,u=kh(c),l=jh(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=wh(Mh,f,l),c.lastIndex=f.lastIndex,t;var d=u.groups,p=Vh&&c.sticky,g=wh(Ph,c),h=c.source,v=0,b=l;if(p&&(g=Dh(g,"y",""),-1===Eh(g,"g")&&(g+="g"),b=Nh(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ah(l,c.lastIndex-1))&&(h="(?: "+h+")",b=" "+b,v++),n=new RegExp("^(?:"+h+")",g)),Lh&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Ch&&(r=c.lastIndex),i=wh(Rh,p?n:c,b),p?i?(i.input=Nh(i.input,v),i[0]=Nh(i[0],v),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Ch&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Lh&&i&&i.length>1&&wh(Th,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=xh(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var Kh=Mh;hi({target:"RegExp",proto:!0,forced:/./.exec!==Kh},{exec:Kh});var Bh=ss,Hh=pr,Uh=Kh,qh=r,Wh=lt,Jh=Lt,Fh=Wh("species"),zh=RegExp.prototype,Gh=function(e,t,n,r){var i=Wh(e),o=!qh((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),a=o&&!qh((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Fh]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=Bh(/./[i]),c=t(i,""[e],(function(e,t,n,r,i){var a=Bh(e),c=t.exec;return c===Uh||c===zh.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Hh(String.prototype,e,c[0]),Hh(zh,i,c[1])}r&&Jh(zh[i],"sham",!0)},Xh=ou.charAt,$h=function(e,t,n){return t+(n?Xh(e,t).length:1)},Qh=l,Yh=b,Zh=Math.floor,ev=Qh("".charAt),tv=Qh("".replace),nv=Qh("".slice),rv=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iv=/\$([$&'`]|\d{1,2})/g,ov=de,av=ue,sv=M,cv=Jn,uv=Kh,lv=TypeError,fv=function(e,t){var n=e.exec;if(sv(n)){var r=ov(n,e,t);return null!==r&&av(r),r}if("RegExp"===cv(e))return ov(uv,e,t);throw new lv("RegExp#exec called on incompatible receiver")},dv=yl,pv=de,gv=l,hv=Gh,vv=r,bv=ue,mv=M,yv=f,wv=mr,Sv=xr,jv=$c,Pv=g,Ov=$h,xv=qe,kv=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,c=iv;return void 0!==i&&(i=Yh(i),c=rv),tv(o,c,(function(o,c){var u;switch(ev(c,0)){case"$":return"$";case"&":return e;case"`":return nv(t,0,n);case"'":return nv(t,a);case"<":u=i[nv(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var f=Zh(l/10);return 0===f?o:f<=s?void 0===r[f-1]?ev(c,1):r[f-1]+ev(c,1):o}u=r[l-1]}return void 0===u?"":u}))},_v=fv,Iv=lt("replace"),Tv=Math.max,Rv=Math.min,Mv=gv([].concat),Av=gv([].push),Ev=gv("".indexOf),Dv=gv("".slice),Nv="$0"==="a".replace(/./,"$0"),Cv=!!/./[Iv]&&""===/./[Iv]("a","$0");hv("replace",(function(e,t,n){var r=Cv?"$":"$0";return[function(e,n){var r=Pv(this),i=yv(e)?void 0:xv(e,Iv);return i?pv(i,e,r,n):pv(t,jv(r),e,n)},function(e,i){var o=bv(this),a=jv(e);if("string"==typeof i&&-1===Ev(i,r)&&-1===Ev(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var c=mv(i);c||(i=jv(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var f,d=[];null!==(f=_v(o,a))&&(Av(d,f),l);){""===jv(f[0])&&(o.lastIndex=Ov(a,Sv(o.lastIndex),u))}for(var p,g="",h=0,v=0;v<d.length;v++){for(var b,m=jv((f=d[v])[0]),y=Tv(Rv(wv(f.index),a.length),0),w=[],S=1;S<f.length;S++)Av(w,void 0===(p=f[S])?p:String(p));var j=f.groups;if(c){var P=Mv([m],w,y,a);void 0!==j&&Av(P,j),b=jv(dv(i,void 0,P))}else b=kv(m,a,y,w,j,i);y>=h&&(g+=Dv(a,h,y)+b,h=y+m.length)}return g+Dv(a,h)}]}),!!vv((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Nv||Cv);var Vv=k.PROPER,Lv=r,Kv=zp,Bv=tg.trim;hi({target:"String",proto:!0,forced:function(e){return Lv((function(){return!!Kv[e]()||"โ€‹ย…แ Ž"!=="โ€‹ย…แ Ž"[e]()||Vv&&Kv[e].name!==e}))}("trim")},{trim:function(){return Bv(this)}});var Hv=function(){return Hv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Hv.apply(this,arguments)};function Uv(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var qv=de,Wv=w,Jv=ve,Fv=ch,zv=RegExp.prototype,Gv=k.PROPER,Xv=pr,$v=ue,Qv=$c,Yv=r,Zv=function(e){var t=e.flags;return void 0!==t||"flags"in zv||Wv(e,"flags")||!Jv(zv,e)?t:qv(Fv,e)},eb="toString",tb=RegExp.prototype[eb],nb=Yv((function(){return"/a/b"!==tb.call({source:"a",flags:"b"})})),rb=Gv&&tb.name!==eb;(nb||rb)&&Xv(RegExp.prototype,eb,(function(){var e=$v(this);return"/"+Qv(e.source)+"/"+Qv(Zv(e))}),{unsafe:!0});var ib=de,ob=ue,ab=f,sb=xr,cb=$c,ub=g,lb=qe,fb=$h,db=fv;Gh("match",(function(e,t,n){return[function(t){var n=ub(this),r=ab(t)?void 0:lb(t,e);return r?ib(r,t,n):new RegExp(t)[e](cb(n))},function(e){var r=ob(this),i=cb(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return db(r,i);var a=r.unicode;r.lastIndex=0;for(var s,c=[],u=0;null!==(s=db(r,i));){var l=cb(s[0]);c[u]=l,""===l&&(r.lastIndex=fb(i,sb(r.lastIndex),a)),u++}return 0===u?null:c}]})),hi({target:"Array",stat:!0},{isArray:kp});var pb=Hp.some;hi({target:"Array",proto:!0,forced:!hg("some")},{some:function(e){return pb(this,e,arguments.length>1?arguments[1]:void 0)}});var gb=[{system:"windows",systemRegexp:/windows|win32|win64|wow32|wow64/g,systemVersionArr:[{systemVersion:"2000",systemVersionRegexp:/windows nt 5.0|windows 2000/g},{systemVersion:"xp",systemVersionRegexp:/windows nt 5.1|windows xp/g},{systemVersion:"2003",systemVersionRegexp:/windows nt 5.2|windows 2003/g},{systemVersion:"vista",systemVersionRegexp:/windows nt 6.0|windows vista/g},{systemVersion:"7",systemVersionRegexp:/windows nt 6.1|windows 7/g},{systemVersion:"8",systemVersionRegexp:/windows nt 6.2|windows 8/g},{systemVersion:"8.1",systemVersionRegexp:/windows nt 6.3|windows 8.1/g},{systemVersion:"10",systemVersionRegexp:/windows nt 10.0|windows 10/g}]},{system:"mac",systemRegexp:/macintosh|macintel/g,systemVersionRegexp:/os x [\d._]+/g},{system:"linux",systemRegexp:/x11/g},{system:"ios",systemRegexp:/iphone|ipad|ipod|ios|iwatch/g,systemVersionRegexp:/os [\d._]+/g},{system:"android",systemRegexp:/android|adr/g,systemVersionRegexp:/android [\d._]+|adr [\d._]+/g}],hb=[{engine:"webkit",engineRegexp:/applewebkit/g,engineVersionRegexp:/applewebkit\/[\d._]+/g},{engine:"gecko",engineRegexp:/gecko/g,engineVersionRegexp:/gecko\/[\d._]+/g},{engine:"presto",engineRegexp:/presto/g,engineVersionRegexp:/presto\/[\d._]+/g},{engine:"trident",engineRegexp:/trident/g,engineVersionRegexp:/trident\/[\d._]+/g},{engine:"blink",engineRegexp:/blink/g,engineVersionRegexp:/blink\/[\d._]+/g}],vb=[{supporter:"chrome",supporterRegexp:/chrome/g,supporterVersionRegexp:/chrome\/[\d._]+/g},{supporter:"safari",supporterRegexp:/safari/g,supporterVersionRegexp:/version\/[\d._]+/g},{supporter:"firefox",supporterRegexp:/firefox/g,supporterVersionRegexp:/firefox\/[\d._]+/g},{supporter:"opera",supporterRegexp:/opera/g,supporterVersionRegexp:/opera\/[\d._]+/g},{supporter:"ie",supporterRegexp:/msie|trident/g,supporterVersionRegexp:/msie [\d._]+|rv:[\d._]+/g},{supporter:"edge",supporterRegexp:/edge/g,supporterVersionRegexp:/edge\/[\d._]+/g}],bb=[{shell:"wechat-miniprogram",shellRegexp:/(?=.*micromessenger)(?=.*miniprogram)/g,shellValueRegexp:/miniprogram\/[\d._]+/g},{shell:"wechat",shellRegexp:/micromessenger/g,shellValueRegexp:/micromessenger\/[\d._]+/g},{shell:"alipay-miniprogram",shellRegexp:/(?=.*aliapp)(?=.*miniprogram)/g,shellValueRegexp:/miniprogram\/[\d._]+/g},{shell:"alipay",shellRegexp:/aliapp/g,shellValueRegexp:/aliapp\(AP\/([\d.]+)\)/g},{shell:"qq",shellRegexp:/qqbrowser/g,shellValueRegexp:/qqbrowser\/([\d.]+)*/g},{shell:"uc",shellRegexp:/ucbrowser/g,shellValueRegexp:/ucbrowser\/([\d.]+)*/g}];var mb,yb=function(e){for(var t=navigator.userAgent.toLowerCase(),n=function(e){return e.test(t)},r=function(e){return(t.match(e)||"").toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},i="unknown",o="unknown",a="unknown",s="unknown",c="unknown",u="unknown",l="unknown",f=[],d=0;d<gb.length;d++){var p=gb[d];if(n(p.systemRegexp)){if(p.systemVersionRegexp&&(o=r(p.systemVersionRegexp)),!o&&Array.isArray(p.systemVersionArr)&&p.systemVersionArr.length)for(var g=0;g<p.systemVersionArr.length;g++){var h=p.systemVersionArr[g];if(n(h.systemVersionRegexp)){o=h.systemVersion;break}}i=p.system;break}}for("windows"===i||"mac"===i||"linux"===i?a="desktop":("ios"===i||"android"===i||n(/mobile/g))&&(a="mobile"),d=0;d<hb.length;d++){var v=hb[d];if(n(v.engineRegexp)){s=v.engine,c=r(v.engineVersionRegexp);break}}for(d=0;d<vb.length;d++){var b=vb[d];if(n(b.supporterRegexp)){u=b.supporter,l=r(b.supporterVersionRegexp);break}}var m=Uv(Uv([],bb,!0),(null==e?void 0:e.shellArr)||[],!0);for(d=0;d<m.length;d++){var y=m[d];if(n(y.shellRegexp)){var w={shell:y.shell,value:r(y.shellValueRegexp)};f.push(w)}}return{system:i,systemVersion:o,platform:a,engine:s,engineVersion:c,supporter:u,supporterVersion:l,shell:"unknown",shellVersion:"unknown",shellArr:m,isShell:function(e){return f.some((function(t){return t.shell===e}))},getShell:function(e){var t;return null===(t=f.find((function(t){return t.shell===e})))||void 0===t?void 0:t.value}}}({shellArr:[{shell:"airmart",shellRegexp:/airmart/g,shellValueRegexp:/airmart\/[\d._]+/g},{shell:"channel",shellRegexp:/channel/g,shellValueRegexp:/channel=[\d._]+/g}]}),wb={exports:{}};mb="object"==typeof window&&window,wb.exports=function(e,t){var n,r,i,o,a,s,c,u,l,f,d,p,g,h,v,b,m,y,w,S,j,P;if(e)return e.jWeixin?e.jWeixin:(n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=function(){var e,t={};for(e in n)t[n[e]]=e;return t}(),i=e.document,o=i.title,a=navigator.userAgent.toLowerCase(),p=navigator.platform.toLowerCase(),s=!(!p.match("mac")&&!p.match("win")),c=-1!=a.indexOf("wxdebugger"),u=-1!=a.indexOf("micromessenger"),l=-1!=a.indexOf("android"),f=-1!=a.indexOf("iphone")||-1!=a.indexOf("ipad"),d=(p=a.match(/micromessenger\/(\d+\.\d+\.\d+)/)||a.match(/micromessenger\/(\d+\.\d+)/))?p[1]:"",g={initStartTime:A(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:l?2:-1,clientVersion:d,url:encodeURIComponent(location.href)},v={},b={_completes:[]},m={state:0,data:{}},E((function(){g.initEndTime=A()})),y=!1,w=[],S={config:function(t){R("config",v=t);var r=!1!==v.check;E((function(){if(r)O(n.config,{verifyJsApiList:T(v.jsApiList),verifyOpenTagList:T(v.openTagList)},(b._complete=function(e){g.preVerifyEndTime=A(),m.state=1,m.data=e},b.success=function(e){h.isPreVerifyOk=0},b.fail=function(e){b._fail?b._fail(e):m.state=-1},(o=b._completes).push((function(){M()})),b.complete=function(e){for(var t=0,n=o.length;t<n;++t)o[t]();b._completes=[]},b)),g.preVerifyStartTime=A();else{m.state=1;for(var e=b._completes,t=0,i=e.length;t<i;++t)e[t]();b._completes=[]}var o})),S.invoke||(S.invoke=function(t,n,r){e.WeixinJSBridge&&WeixinJSBridge.invoke(t,k(n),r)},S.on=function(t,n){e.WeixinJSBridge&&WeixinJSBridge.on(t,n)})},ready:function(e){(0!=m.state||(b._completes.push(e),!u&&v.debug))&&e()},error:function(e){d<"6.0.2"||(-1==m.state?e(m.data):b._fail=e)},checkJsApi:function(e){O("checkJsApi",{jsApiList:T(e.jsApiList)},(e._complete=function(e){l&&(n=e.checkResult)&&(e.checkResult=JSON.parse(n));var t,n=e,i=n.checkResult;for(t in i){var o=r[t];o&&(i[o]=i[t],delete i[t])}},e))},onMenuShareTimeline:function(e){x(n.onMenuShareTimeline,{complete:function(){O("shareTimeline",{title:e.title||o,desc:e.title||o,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(e){x(n.onMenuShareAppMessage,{complete:function(t){"favorite"===t.scene?O("sendAppMessage",{title:e.title||o,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""}):O("sendAppMessage",{title:e.title||o,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareQQ:function(e){x(n.onMenuShareQQ,{complete:function(){O("shareQQ",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){x(n.onMenuShareWeibo,{complete:function(){O("shareWeiboApp",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){x(n.onMenuShareQZone,{complete:function(){O("shareQZone",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},updateTimelineShareData:function(e){O("updateTimelineShareData",{title:e.title,link:e.link,imgUrl:e.imgUrl},e)},updateAppMessageShareData:function(e){O("updateAppMessageShareData",{title:e.title,desc:e.desc,link:e.link,imgUrl:e.imgUrl},e)},startRecord:function(e){O("startRecord",{},e)},stopRecord:function(e){O("stopRecord",{},e)},onVoiceRecordEnd:function(e){x("onVoiceRecordEnd",e)},playVoice:function(e){O("playVoice",{localId:e.localId},e)},pauseVoice:function(e){O("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){O("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){x("onVoicePlayEnd",e)},uploadVoice:function(e){O("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){O("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){O("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){O("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(l){var t=e.localIds;try{t&&(e.localIds=JSON.parse(t))}catch(e){}}},e))},getLocation:function(e){e=e||{},O(n.getLocation,{type:e.type||"wgs84"},(e._complete=function(e){delete e.type},e))},previewImage:function(e){O(n.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){O("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){O("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===y?(y=!0,O("getLocalImgData",{localId:e.localId},(e._complete=function(e){var t;y=!1,0<w.length&&(t=w.shift(),wx.getLocalImgData(t))},e))):w.push(e)},getNetworkType:function(e){O("getNetworkType",{},(e._complete=function(e){var t=e,n=(e=t.errMsg,t.errMsg="getNetworkType:ok",t.subtype);if(delete t.subtype,n)t.networkType=n;else{n=e.indexOf(":");var r=e.substring(n+1);switch(r){case"wifi":case"edge":case"wwan":t.networkType=r;break;default:t.errMsg="getNetworkType:fail"}}},e))},openLocation:function(e){O("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)},hideOptionMenu:function(e){O("hideOptionMenu",{},e)},showOptionMenu:function(e){O("showOptionMenu",{},e)},closeWindow:function(e){O("closeWindow",{},e=e||{})},hideMenuItems:function(e){O("hideMenuItems",{menuList:e.menuList},e)},showMenuItems:function(e){O("showMenuItems",{menuList:e.menuList},e)},hideAllNonBaseMenuItem:function(e){O("hideAllNonBaseMenuItem",{},e)},showAllNonBaseMenuItem:function(e){O("showAllNonBaseMenuItem",{},e)},scanQRCode:function(e){O("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){var t;f&&(t=e.resultStr)&&(t=JSON.parse(t),e.resultStr=t&&t.scan_code&&t.scan_code.scan_result)},e))},openAddress:function(e){O(n.openAddress,{},(e._complete=function(e){e.postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo},e))},openProductSpecificView:function(e){O(n.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)},addCard:function(e){for(var t=e.cardList,r=[],i=0,o=t.length;i<o;++i){var a={card_id:(a=t[i]).cardId,card_ext:a.cardExt};r.push(a)}O(n.addCard,{card_list:r},(e._complete=function(e){if(t=e.card_list){for(var t,n=0,r=(t=JSON.parse(t)).length;n<r;++n){var i=t[n];i.cardId=i.card_id,i.cardExt=i.card_ext,i.isSuccess=!!i.is_succ,delete i.card_id,delete i.card_ext,delete i.is_succ}e.cardList=t,delete e.card_list}},e))},chooseCard:function(e){O("chooseCard",{app_id:v.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))},openCard:function(e){for(var t=e.cardList,r=[],i=0,o=t.length;i<o;++i){var a={card_id:(a=t[i]).cardId,code:a.code};r.push(a)}O(n.openCard,{card_list:r},e)},consumeAndShareCard:function(e){O(n.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)},chooseWXPay:function(e){O(n.chooseWXPay,_(e),e),M({jsApiName:"chooseWXPay"})},openEnterpriseRedPacket:function(e){O(n.openEnterpriseRedPacket,_(e),e)},startSearchBeacons:function(e){O(n.startSearchBeacons,{ticket:e.ticket},e)},stopSearchBeacons:function(e){O(n.stopSearchBeacons,{},e)},onSearchBeacons:function(e){x(n.onSearchBeacons,e)},openEnterpriseChat:function(e){O("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)},launchMiniProgram:function(e){O("launchMiniProgram",{targetAppId:e.targetAppId,path:function(e){var t;if("string"==typeof e&&0<e.length)return t=e.split("?")[0],t+=".html",void 0!==(e=e.split("?")[1])?t+"?"+e:t}(e.path),envVersion:e.envVersion},e)},openBusinessView:function(e){O("openBusinessView",{businessType:e.businessType,queryString:e.queryString||"",envVersion:e.envVersion},(e._complete=function(e){if(l){var t=e.extraData;if(t)try{e.extraData=JSON.parse(t)}catch(t){e.extraData={}}}},e))},miniProgram:{navigateBack:function(e){e=e||{},E((function(){O("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:e.delta||1}},e)}))},navigateTo:function(e){E((function(){O("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:e.url}},e)}))},redirectTo:function(e){E((function(){O("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:e.url}},e)}))},switchTab:function(e){E((function(){O("invokeMiniProgramAPI",{name:"switchTab",arg:{url:e.url}},e)}))},reLaunch:function(e){E((function(){O("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:e.url}},e)}))},postMessage:function(e){E((function(){O("invokeMiniProgramAPI",{name:"postMessage",arg:e.data||{}},e)}))},getEnv:function(t){E((function(){t({miniprogram:"miniprogram"===e.__wxjs_environment})}))}}},j=1,P={},i.addEventListener("error",(function(e){var t,n,r;l||(r=(t=e.target).tagName,n=t.src,"IMG"!=r&&"VIDEO"!=r&&"AUDIO"!=r&&"SOURCE"!=r)||-1!=n.indexOf("wxlocalresource://")&&(e.preventDefault(),e.stopPropagation(),(r=t["wx-id"])||(r=j++,t["wx-id"]=r),P[r]||(P[r]=!0,wx.ready((function(){wx.getLocalImgData({localId:n,success:function(e){t.src=e.localData}})}))))}),!0),i.addEventListener("load",(function(e){var t;l||(t=(e=e.target).tagName,e.src,"IMG"!=t&&"VIDEO"!=t&&"AUDIO"!=t&&"SOURCE"!=t)||(t=e["wx-id"])&&(P[t]=!1)}),!0),t&&(e.wx=e.jWeixin=S),S);function O(t,n,r){e.WeixinJSBridge?WeixinJSBridge.invoke(t,k(n),(function(e){I(t,e,r)})):R(t,r)}function x(t,n,r){e.WeixinJSBridge?WeixinJSBridge.on(t,(function(e){r&&r.trigger&&r.trigger(e),I(t,e,n)})):R(t,r||n)}function k(e){return(e=e||{}).appId=v.appId,e.verifyAppId=v.appId,e.verifySignType="sha1",e.verifyTimestamp=v.timestamp+"",e.verifyNonceStr=v.nonceStr,e.verifySignature=v.signature,e}function _(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function I(e,t,n){"openEnterpriseChat"!=e&&"openBusinessView"!==e||(t.errCode=t.err_code),delete t.err_code,delete t.err_desc,delete t.err_detail;var i=t.errMsg;switch(i||(i=t.err_msg,delete t.err_msg,i=function(e,t){var n,i=r[e];return i&&(e=i),i="ok",t&&(n=t.indexOf(":"),"access denied"!=(i=(i=(i=-1!=(i=-1!=(i="failed"==(i="confirm"==(i=t.substring(n+1))?"ok":i)?"fail":i).indexOf("failed_")?i.substring(7):i).indexOf("fail_")?i.substring(5):i).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=i||(i="permission denied"),""==(i="config"==e&&"function not exist"==i?"ok":i))&&(i="fail"),e+":"+i}(e,i),t.errMsg=i),(n=n||{})._complete&&(n._complete(t),delete n._complete),i=t.errMsg||"",v.debug&&!n.isInnerInvoke&&alert(JSON.stringify(t)),e=i.indexOf(":"),i.substring(e+1)){case"ok":n.success&&n.success(t);break;case"cancel":n.cancel&&n.cancel(t);break;default:n.fail&&n.fail(t)}n.complete&&n.complete(t)}function T(e){if(e){for(var t=0,r=e.length;t<r;++t){var i=e[t];(i=n[i])&&(e[t]=i)}return e}}function R(e,t){var n;!v.debug||t&&t.isInnerInvoke||((n=r[e])&&(e=n),t&&t._complete&&delete t._complete,console.log('"'+e+'",',t||""))}function M(e){var t;s||c||v.debug||d<"6.0.2"||h.systemType<0||(t=new Image,h.appId=v.appId,h.initTime=g.initEndTime-g.initStartTime,h.preVerifyTime=g.preVerifyEndTime-g.preVerifyStartTime,S.getNetworkType({isInnerInvoke:!0,success:function(n){h.networkType=n.networkType,n="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url+"&jsapi_name="+(e?e.jsApiName:""),t.src=n}}))}function A(){return(new Date).getTime()}function E(t){u&&(e.WeixinJSBridge?t():i.addEventListener&&i.addEventListener("WeixinJSBridgeReady",t,!1))}console.warn("can't use weixin-js-sdk in server side")}(mb);var Sb=n(wb.exports),jb={default:t,call:function(e,t,n){var r="";"function"==typeof t&&(n=t,t={});var i={data:void 0===t?null:t};if("function"==typeof n){var o="dscb"+window.dscb++;window[o]=n,i._dscbstub=o}return i=JSON.stringify(i),window._dsbridge?r=_dsbridge.call(e,i):(window._dswk||-1!=navigator.userAgent.indexOf("_dsbridge"))&&(r=prompt("_dsbridge="+e,i)),JSON.parse(r||"{}").data},register:function(e,t,n){var r=n?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout((function(){jb.call("_dsb.dsinit")}),0)),"object"==typeof t?r._obs[e]=t:r[e]=t},registerAsyn:function(e,t){this.register(e,t,!0)},hasNativeMethod:function(e,t){return this.call("_dsb.hasNativeMethod",{name:e,type:t||"all"})},disableJavascriptDialogBlock:function(e){this.call("_dsb.disableJavascriptDialogBlock",{disable:!1!==e})}};!function(){if(!window._dsf){var e={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:jb,close:function(){jb.call("_dsb.closePage")},_handleMessageFromNative:function(e){var t=JSON.parse(e.data),n={id:e.callbackId,complete:!0},r=this._dsf[e.method],i=this._dsaf[e.method],o=function(e,r){n.data=e.apply(r,t),jb.call("_dsb.returnValue",n)},a=function(e,r){t.push((function(e,t){n.data=e,n.complete=!1!==t,jb.call("_dsb.returnValue",n)})),e.apply(r,t)};if(r)o(r,this._dsf);else if(i)a(i,this._dsaf);else{var s=e.method.split(".");if(s.length<2)return;var c=s.pop(),u=s.join("."),l=this._dsf._obs,f=l[u]||{},d=f[c];if(d&&"function"==typeof d)return void o(d,f);if((d=(f=(l=this._dsaf._obs)[u]||{})[c])&&"function"==typeof d)return void a(d,f)}}};for(var t in e)window[t]=e[t];jb.register("_hasJavascriptMethod",(function(e,t){var n=e.split(".");if(n.length<2)return!(!_dsf[n]&&!_dsaf[n]);e=n.pop();var r=n.join("."),i=_dsf._obs[r]||_dsaf._obs[r];return i&&!!i[e]}))}}();var Pb=n(jb),Ob=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isApp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isMiniProgram",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isAlipayMini",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isKwaiH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIframe",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIos",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isCanShowNav",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"device",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"channel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isfull",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isOldApp",{enumerable:!0,configurable:!0,writable:!0,value:!0});var t=Gg.get("device")||"",n=Gg.get("isfull")||"",r=yb.getShell("airmart")||Gg.get("version")||"",i=yb.getShell("channel")||Gg.get("channel")||"";return this.options=e,this.name=e.name,this.isApp=yb.isShell("airmart")||"ios"===t||"android"===t,this.isMiniProgram=yb.isShell("wechat-miniprogram")||"wx"===t,this.isH5="h5"===t,this.isKwaiH5="kwai_h5"===t,this.isIframe="h5"===t&&window.top!==window.self,this.isIos="ios"===yb.system||"ios"===t,this.device=this.isMiniProgram?"wx":this.isApp?yb.system:"",this.isCanShowNav=this.isApp&&Bg(r,"2.5.0")>=0&&n,this.version=r,this.channel=i,this.isfull=n,this}return Object.defineProperty(e.prototype,"detection",{get:function(){return console.log("๐Ÿš€ this.device",this.device),!!this.device||(console.error("่ฏทๅœจๅ…ƒๆฐ—้ฉฌ็‰นappไธญ่ฐƒ็”จ"),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getOjbUrlFn",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!e)return"";if(this.options.handleOjbUrlFn)return this.options.handleOjbUrlFn(e);var t=e.split("?")[0],n=Hg(e),r=(this.options.ojbRouter||[]).find((function(e){return-1!==e.key.indexOf(t)}));if("ojb://call_wechat_path"===(null==r?void 0:r.key)&&n.appid!==this.options.miniProgramLogin)return this.getOjbUrlFn("ojb://call_mini_program?".concat(e.split("?")[1]));if("[event]"===(null==r?void 0:r.val))return"";var i=(null==r?void 0:r.val)||"";return i.replace(/\{(.*?)}/g,(function(e,t){return n[t.trim()]||""})),i=i.replace(/{.*}/g,""),"ojb://call_wechat_path"===(null==r?void 0:r.key)?decodeURIComponent(i):i}}),Object.defineProperty(e.prototype,"getToken",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;if(console.log("juboSDK.getToken"),!this.detection)return"";var t=this.device,n="";try{"android"===t?n=window.jubo.getToken(""):"ios"===t&&(n=(null===(e=window.getToken)||void 0===e?void 0:e.call(window))||"")}catch(e){console.error("juboSDK.getToken error",e)}return n}}),Object.defineProperty(e.prototype,"goLogin",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.goLogin"),new Promise((function(t,n){if(!e.detection)return n();var r=e.device;try{switch(r){case"android":window.jubo.goLogin();break;case"ios":window.webkit.messageHandlers.juboGoLogin.postMessage({a:1});break;case"wx":Sb.miniProgram.navigateTo({url:"/pages/login/index"})}t("")}catch(e){console.log("๐Ÿš€ ~ juboSDK.goLogin",e)}}))}}),Object.defineProperty(e.prototype,"setMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.isMiniProgram?Sb.miniProgram.postMessage({message:e}):this.isAlipayMini&&my.postMessage({message:e})}}),Object.defineProperty(e.prototype,"goRoute",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.goRoute",e),this.detection){var n=this.device;try{switch(n){case"android":window.jubo.goRoute(e);break;case"ios":window.webkit.messageHandlers.juboGoRoute.postMessage({route:e});break;case"wx":var r=this.getOjbUrlFn(e);if(r){var i=(this.options.miniProgramTabBar||["/pages/home/index","/pages/boxHome/index","/pages/csgoPage/index","/pages/mine/index","/pages/ipHome/index"]).find((function(e){return-1!==r.indexOf(e)}));i?Sb.miniProgram.switchTab({url:r}):t?Sb.miniProgram.redirectTo({url:r}):Sb.miniProgram.navigateTo({url:r})}}}catch(e){console.log("๐Ÿš€ ~ juboSDK.goRoute",e)}}}}),Object.defineProperty(e.prototype,"shareMiniProgram",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.shareH5",e),this.detection){var n={event:"NewUserInvite",data:{page_url:e.webpage,activity_id:e.activity_id,activity_name:e.activity_name,product_id:e.product_id,product_name:e.product_name}},r=this.device;try{switch(r){case"android":var i=Hv(Hv(Hv({},e),n),{trackData:t});window.jubo.shareH5(JSON.stringify(i));break;case"ios":window.webkit.messageHandlers.juboShareH5.postMessage(Hv(Hv(Hv({},e),n),{trackData:t}));break;case"wx":Sb.miniProgram.postMessage({data:{shareData:{title:e.title,path:e.webpage,imageUrl:e.thumbImage,base64:e.base64,saInfo:n,trackData:t,shareOptions:e.shareOptions||{}}}})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareH5",e)}}}}),Object.defineProperty(e.prototype,"postReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:515 ~ postReport",e,t)}}),Object.defineProperty(e.prototype,"sensorsReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:524 ~ sensorsReport",e,t)}}),Object.defineProperty(e.prototype,"shareWXImg",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Hv({type:0},e);if(console.log("juboSDK.shareWXImg",t),this.detection){var n=this.device;try{switch(n){case"android":window.jubo.shareWXImg(JSON.stringify(t));break;case"ios":window.webkit.messageHandlers.juboShareWXImg.postMessage(t)}}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareWXiMG",e)}}}}),Object.defineProperty(e.prototype,"setNavTitle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:270 ~ OldJuboSdk ~ title:",e)}}),Object.defineProperty(e.prototype,"writeToClipboard",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:270 ~ OldJuboSdk ~ title:",e)}}),Object.defineProperty(e.prototype,"hideNavBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.hiddenSystemStatus"),this.detection){var t=this.device;try{switch(t){case"android":e?window.jubo.hiddenSystemStatus():window.jubo.showSystemStatus();break;case"ios":e?window.webkit.messageHandlers.juboHiddenSystemStatus.postMessage({a:1}):window.webkit.messageHandlers.juboShowSystemStatus.postMessage({a:1})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.hiddenSystemStatus",e)}}}}),Object.defineProperty(e.prototype,"setOrientation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.webPageSetLandscape"),this.detection){var t=this.device;try{switch(t){case"android":window.jubo.webPageSetLandscape(JSON.stringify({isPortrait:e}));break;case"ios":window.webkit.messageHandlers.juboWebPageSetLandscape.postMessage({isPortrait:e})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.webPageSetLandscape",e)}}}}),Object.defineProperty(e.prototype,"toPayPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.onPay"),new Promise((function(n,r){if(!t.detection)return r();var i=e.activityId,o=e.amount,a=e.success,s=e.fail,c=t.device;try{switch(c){case"android":window.jubo.onPay(i,o,a,s);break;case"ios":window.webkit.messageHandlers.juboOnPay.postMessage(e);break;case"wx":Sb.miniProgram.navigateTo({url:"/pages/webPay/index?activity_id=".concat(i,"&price=").concat(o,"&success=").concat(a,"&fail=").concat(s)})}n("")}catch(e){console.log("๐Ÿš€ ~ juboSDK.onPay",e),r(e)}}))}}),Object.defineProperty(e.prototype,"hideStatusBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:365 ~ OldJuboSdk ~ hideStatusBar ~ isHide:",e)}}),Object.defineProperty(e.prototype,"quit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;if(console.log("juboSDK.quit"),this.detection){var t=this.device;try{switch(t){case"android":null===(e=null===window||void 0===window?void 0:window.jubo)||void 0===e||e.quit();break;case"ios":window.webkit.messageHandlers.juboQuit.postMessage({a:1})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.quit",e)}}}}),Object.defineProperty(e.prototype,"goBack",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,n,r,i;if(console.log("juboSDK.goBack"),this.detection){var o=this.device;try{switch(o){case"android":null===(e=null===window||void 0===window?void 0:window.jubo)||void 0===e||e.goBack();break;case"ios":null===(i=null===(r=null===(n=null===(t=null===window||void 0===window?void 0:window.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.juboGoBack)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,{a:1})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.goBack",e)}}}}),Object.defineProperty(e.prototype,"shareHtml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n,r,i,o,a;console.log("juboSDK.shareHtml");var s=Hv({type:0},e);if(console.log("juboSDK.shareHtml",s),this.detection){var c=this.device;try{switch(c){case"android":null===(n=null===(t=null===window||void 0===window?void 0:window.jubo)||void 0===t?void 0:t.shareWXHtml)||void 0===n||n.call(t,JSON.stringify(s));break;case"ios":null===(a=null===(o=null===(i=null===(r=null===window||void 0===window?void 0:window.webkit)||void 0===r?void 0:r.messageHandlers)||void 0===i?void 0:i.juboShareWXHtml)||void 0===o?void 0:o.postMessage)||void 0===a||a.call(o,s)}}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareHtml",e)}}}}),Object.defineProperty(e.prototype,"checkAppNotice",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkAppNotice"),new Promise((function(t,n){if(!e.detection)return n();var r=e.device;try{switch(r){case"android":window.jubo.checkPushNotificationEnable();break;case"ios":window.webkit.messageHandlers.juboCheckPushNotificationEnable.postMessage({a:1})}t(!0)}catch(e){console.log("๐Ÿš€ ~ juboSDK.checkAppNotice",e),n(e)}}))}}),Object.defineProperty(e.prototype,"checkNetStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkNetStatus"),new Promise((function(t,n){var r,i;if(!e.detection&&e.isMiniProgram)return n();var o=e.device;try{var a=!1;if("android"===o?a=window.jubo.isNetworkConnected():"ios"===o&&(a=(null===(r=window.isNetworkConnected)||void 0===r?void 0:r.call(window))||!1),a){var s=!1;"android"===o?s=window.jubo.isWifiConnected():"ios"===o&&(s=(null===(i=window.isWifiConnected)||void 0===i?void 0:i.call(window))||!1),t(s?2:1)}else t(0)}catch(e){console.error("juboSDK.checkNetStatus error",e),n()}}))}}),Object.defineProperty(e.prototype,"hcAuthorization",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.hcAuthorization"),new Promise((function(n,r){var i,o,a,s,c,u;if(!t.detection&&t.isMiniProgram)return r();var l=t.device;try{switch(l){case"android":null===(o=null===(i=null===window||void 0===window?void 0:window.jubo)||void 0===i?void 0:i.authorizationForH5)||void 0===o||o.call(i,JSON.stringify(e));break;case"ios":null===(u=null===(c=null===(s=null===(a=null===window||void 0===window?void 0:window.webkit)||void 0===a?void 0:a.messageHandlers)||void 0===s?void 0:s.juboAuthorizationForH5)||void 0===c?void 0:c.postMessage)||void 0===u||u.call(c,e)}n({isSuccess:!1})}catch(e){console.error("juboSDK.hcAuthorization error",e),r()}}))}}),Object.defineProperty(e.prototype,"getStatusBarHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.getStatusBarHeight"),!this.detection)return 0;var e=this.device,t=0;try{"ios"===e&&(t=window.screen.height>=812&&window.devicePixelRatio>=2?44:20),"android"===e&&(t=window.jubo.getWindowTopOffset())}catch(e){console.log("๐Ÿš€ ~ juboSDK.getStatusBarHeight",e)}return t}}),Object.defineProperty(e.prototype,"goHome",{enumerable:!1,configurable:!0,writable:!0,value:function(){console.log("juboSDK.goHome"),this.goRoute(this.options.appHome||"ojb://ip_home")}}),e}();window.JuboSdk=Ob;var xb="/pages/login/index",kb=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isApp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isMiniProgram",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isAlipayMini",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isKwaiH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIframe",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIos",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isCanShowNav",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"device",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"channel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isfull",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isOldApp",{enumerable:!0,configurable:!0,writable:!0,value:!1});var t=Gg.get("device")||"",n=Gg.get("isfull")||"",r=yb.getShell("airmart")||Gg.get("version")||"",i=yb.getShell("channel")||Gg.get("channel")||"";if(this.options=e,this.name=e.name,this.isApp=yb.isShell("airmart")||"ios"===t||"android"===t,this.isMiniProgram=yb.isShell("wechat-miniprogram")||"wx"===t,this.isAlipayMini=yb.isShell("alipay-miniprogram")||"alipay"===t,this.isH5="h5"===t,this.isKwaiH5="kwai_h5"===t,this.isIframe="h5"===t&&window.top!==window.self,this.isIos="ios"===yb.system||"ios"===t,this.device="h5"===t?"h5":this.isAlipayMini?"alipay":this.isMiniProgram?"wx":this.isApp?yb.system:t,this.isCanShowNav=this.isApp&&!0,this.version=r,this.channel=i,this.isfull=n,this.isOldApp=this.isApp&&Bg(r,this.options.oldAppVersion)<=0,this.isOldApp)return new Ob(e);if(this.isAlipayMini){var o=document.createElement("script");o.type="text/javascript",o.src="https://appx/web-view.min.js ",document.body.appendChild(o)}return this}return Object.defineProperty(e.prototype,"detection",{get:function(){return console.log("๐Ÿš€ this.device",this.device),!!this.device||(console.error("่ฏทๅœจๅ…ƒๆฐ—้ฉฌ็‰นappไธญ่ฐƒ็”จ"),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getOjbUrlFn",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!e)return"";if(this.options.handleOjbUrlFn)return this.options.handleOjbUrlFn(e);var t=e.split("?")[0],n=Hg(e),r=(this.options.ojbRouter||[]).find((function(e){return-1!==e.key.indexOf(t)}));if("ojb://call_wechat_path"===(null==r?void 0:r.key)&&n.appid!==this.options.miniProgramLogin)return this.getOjbUrlFn("ojb://call_mini_program?".concat(e.split("?")[1]));if("[event]"===(null==r?void 0:r.val))return"";var i=(null==r?void 0:r.val)||"";return i=(i=i.replace(/\{(.*?)}/g,(function(e,t){return n[t.trim()]||""}))).replace(/{.*}/g,""),"ojb://call_wechat_path"===(null==r?void 0:r.key)?decodeURIComponent(i):i}}),Object.defineProperty(e.prototype,"getToken",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.getToken"),!this.detection&&this.isMiniProgram)return"";try{var e=Pb.call("getToken",{});return"string"==typeof e&&(e=JSON.parse(e)),null==e?void 0:e.token}catch(e){console.error("juboSDK.getToken error",e)}return""}}),Object.defineProperty(e.prototype,"goLogin",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.goLogin"),new Promise((function(t,n){if(!e.detection)return n();try{e.isMiniProgram?(Sb.miniProgram.navigateTo({url:e.options.miniProgramLogin||xb}),t("")):e.isAlipayMini?(my.navigateTo({url:e.options.miniProgramLogin||xb}),t("")):Pb.call("toLogin",{},(function(e){var n=JSON.parse(e);t(null==n?void 0:n.token)}))}catch(e){console.error("juboSDK.goLogin error",e),n(e)}}))}}),Object.defineProperty(e.prototype,"setMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("juboSDK.setMessage"),this.isMiniProgram?Sb.miniProgram.postMessage({message:e}):this.isAlipayMini&&my.postMessage({message:e})}}),Object.defineProperty(e.prototype,"goRoute",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.goRoute",e),this.detection)try{if(this.isMiniProgram){var n=this.getOjbUrlFn(e);if(n){var r=(this.options.miniProgramTabBar||["/pages/home/index","/pages/boxHome/index","/pages/csgoPage/index","/pages/mine/index","/pages/ipHome/index"]).find((function(e){return-1!==n.indexOf(e)}));r?Sb.miniProgram.switchTab({url:n}):t?Sb.miniProgram.redirectTo({url:n}):Sb.miniProgram.navigateTo({url:n})}}else Pb.call("goRoute",{url:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.goRoute",e)}}}),Object.defineProperty(e.prototype,"shareMiniProgram",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n,r,i,o,a,s,c,u;if(console.log("juboSDK.shareH5",e,t),this.detection){var l={event:"NewUserInvite",data:{page_url:e.webpage,activity_id:e.activity_id,activity_name:e.activity_name,product_id:e.product_id,product_name:e.product_name}};try{this.isMiniProgram?Sb.miniProgram.postMessage({data:{shareData:{title:e.title,path:e.webpage,imageUrl:e.thumbImage,base64:e.base64,saInfo:l,trackData:t,shareOptions:e.shareOptions||{}}}}):this.isAlipayMini?my.postMessage({data:{shareData:{title:e.title,path:e.webpage,imageUrl:e.thumbImage}}}):(Pb.call("shareMiniProgram",{imgUrl:e.thumbImage,title:e.title,base64:e.base64,webpage:e.webpage}),this.postReport("NewUserInvite",{page_url:e.webpage,activity_id:null===(r=null===(n=e.saInfo)||void 0===n?void 0:n.data)||void 0===r?void 0:r.activity_id,activity_name:null===(o=null===(i=e.saInfo)||void 0===i?void 0:i.data)||void 0===o?void 0:o.activity_name,product_id:null===(s=null===(a=e.saInfo)||void 0===a?void 0:a.data)||void 0===s?void 0:s.product_id,product_name:null===(u=null===(c=e.saInfo)||void 0===c?void 0:c.data)||void 0===u?void 0:u.product_name}),t&&t.event&&t.data&&this.sensorsReport(t.event,t.data))}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareH5",e)}}}}),Object.defineProperty(e.prototype,"postReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.postReport",e,t),this.detection||!this.isMiniProgram)try{Pb.call("postReport",{keyName:e,data:t})}catch(e){console.log("๐Ÿš€ ~ juboSDK.postReport",e)}}}),Object.defineProperty(e.prototype,"sensorsReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.sensorsReport",e,t),this.detection||!this.isMiniProgram)try{Pb.call("sensorsReport",{keyName:e,data:t})}catch(e){console.log("๐Ÿš€ ~ juboSDK.sensorsReport",e)}}}),Object.defineProperty(e.prototype,"shareWXImg",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Hv({type:0},e);if(console.log("juboSDK.shareWXImg",t),this.detection||!this.isMiniProgram)try{Pb.call("shareWXImg",t)}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareWXImg",e)}}}),Object.defineProperty(e.prototype,"setNavTitle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.setNavTitle",e),this.detection||!this.isMiniProgram)try{Pb.call("setNavTitle",{title:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.setNavTitle",e)}}}),Object.defineProperty(e.prototype,"writeToClipboard",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.writeToClipboard",e),this.detection||!this.isMiniProgram)try{Pb.call("writeToClipboard",{content:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.writeToClipboard",e)}}}),Object.defineProperty(e.prototype,"hideNavBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.hideNavBar"),this.detection||!this.isMiniProgram)try{Pb.call("hideNavBar",{isHide:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.hideNavBar",e)}}}),Object.defineProperty(e.prototype,"setOrientation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.setOrientation"),this.detection||!this.isMiniProgram)try{Pb.call("setOrientation",{isLandscape:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.setOrientation",e)}}}),Object.defineProperty(e.prototype,"toPayPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.toPayPage"),new Promise((function(n,r){if(!t.detection)return r();try{t.isMiniProgram?(Sb.miniProgram.navigateTo({url:"".concat(t.options.miniProgramPayPage||"/pages/webPay/index","?activity_id=").concat(e.activityId,"&price=").concat(e.amount,"&success=").concat(e.success,"&fail=").concat(e.fail)}),n("")):Pb.call("toPayPage",e,(function(e){var t=JSON.parse(e);n(null==t?void 0:t.isSuccess)}))}catch(e){console.error("juboSDK.toPayPage error",e),r(e)}}))}}),Object.defineProperty(e.prototype,"hideStatusBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.hideStatusBar"),this.detection||!this.isMiniProgram)try{Pb.call("hideStatusBar",{isHide:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.hideStatusBar",e)}}}),Object.defineProperty(e.prototype,"quit",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.quit"),this.detection||!this.isMiniProgram)try{Pb.call("quit",{})}catch(e){console.log("๐Ÿš€ ~ juboSDK.quit",e)}}}),Object.defineProperty(e.prototype,"goBack",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.goBack"),this.detection||!this.isMiniProgram)try{Pb.call("goBack",{})}catch(e){console.log("๐Ÿš€ ~ juboSDK.goBack",e)}}}),Object.defineProperty(e.prototype,"shareHtml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.shareHtml"),this.detection||!this.isMiniProgram)try{var t=Hv({type:0},e);Pb.call("shareHtml",t)}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareHtml",e)}}}),Object.defineProperty(e.prototype,"checkAppNotice",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkAppNotice"),new Promise((function(t,n){if(!e.detection&&e.isMiniProgram)return n();try{Pb.call("checkAppNotice",{},(function(e){var n=JSON.parse(e);t(null==n?void 0:n.isOpen)}))}catch(e){console.error("juboSDK.checkAppNotice error",e),n()}}))}}),Object.defineProperty(e.prototype,"checkNetStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkNetStatus"),new Promise((function(t,n){if(!e.detection&&e.isMiniProgram)return n();try{Pb.call("checkNetStatus",{},(function(e){var n=JSON.parse(e);t(null==n?void 0:n.status)}))}catch(e){console.error("juboSDK.checkNetStatus error",e),n()}}))}}),Object.defineProperty(e.prototype,"hcAuthorization",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.hcAuthorization"),new Promise((function(n,r){if(!t.detection&&t.isMiniProgram)return r();try{Pb.call("hcAuthorization",e,(function(e){var t=JSON.parse(e);n(t)}))}catch(e){console.error("juboSDK.hcAuthorization error",e),r()}}))}}),Object.defineProperty(e.prototype,"getStatusBarHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.getStatusBarHeight"),!this.detection&&this.isMiniProgram)return 0;try{if(this.isIos)return window.screen.height>=812&&window.devicePixelRatio>=2?44:20;var e=Pb.call("getStatusBarHeight",{});return"string"==typeof e&&(e=JSON.parse(e)),null==e?void 0:e.height}catch(e){console.error("juboSDK.getStatusBarHeight error",e)}return 0}}),Object.defineProperty(e.prototype,"goHome",{enumerable:!1,configurable:!0,writable:!0,value:function(){console.log("juboSDK.goHome"),this.goRoute(this.options.appHome||"ojb://ip_home")}}),e}();window.JuboSdk=kb;var _b=require("../package.json"),Ib=Hg(location.href),Tb=Ib.device||Gg.get("device")||"",Rb=Ib.isfull||Gg.get("isfull")||"",Mb=Ib.version||Gg.get("version")||"",Ab=Ib.channel||Gg.get("channel")||"";Gg.set("device",Tb),Gg.set("isfull",Rb),Gg.set("version",Mb),Gg.set("channel",Ab),"development"===process.env.NODE_ENV&&function(e,t){new Promise((function(n,r){return e?t?void function(e){return new Promise((function(t,n){if(!e)return n(new Error("name is required"));var r="https://registry.npmjs.org/".concat(e,"/latest");fetch(r).then((function(e){e.ok?e.json().then((function(e){t(e)})).catch(n):n(new Error(e.statusText))})).catch(n)}))}(e).then((function(r){var i=null==r?void 0:r.version,o=null==r?void 0:r.updateDoc,a=Bg(t,i);n(a),-1===a&&(console.warn("".concat(e," ๆœ‰ๆœ€ๆ–ฐ็‰ˆๆœฌ: ").concat(i,"๏ผŒ่ฏทๆณจๆ„ๆ›ดๆ–ฐ๏ผ")),o&&console.warn(o))})).catch(r):r(new Error("version is required")):r(new Error("name is required"))}))}(_b.name,_b.version),e.ChannelClient=Pp,e.ChannelParent=Op,e.default=kb,e.ls=Gg,Object.defineProperty(e,"__esModule",{value:!0})})),"undefined"!=typeof window&&(window._juboSDK_VERSION_="1.5.0-beta.1");
1
+ !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).JuboSDK={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(e){try{return!!e()}catch(e){return!0}},i=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),o=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=o,s=Function.prototype,c=s.call,u=a&&s.bind.bind(c,c),l=a?u:function(e){return function(){return c.apply(e,arguments)}},f=function(e){return null==e},d=f,p=TypeError,g=function(e){if(d(e))throw new p("Can't call method on "+e);return e},h=g,v=Object,b=function(e){return v(h(e))},m=b,y=l({}.hasOwnProperty),w=Object.hasOwn||function(e,t){return y(m(e),t)},S=i,j=w,P=Function.prototype,O=S&&Object.getOwnPropertyDescriptor,x=j(P,"name"),k={EXISTS:x,PROPER:x&&"something"===function(){}.name,CONFIGURABLE:x&&(!S||S&&O(P,"name").configurable)},_={exports:{}},I="object"==typeof document&&document.all,T={all:I,IS_HTMLDDA:void 0===I&&void 0!==I},R=T.all,M=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},A=function(e){return e&&e.Math===Math&&e},E=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof t&&t)||A("object"==typeof t&&t)||function(){return this}()||Function("return this")(),D=E,N=Object.defineProperty,C=function(e,t){try{N(D,e,{value:t,configurable:!0,writable:!0})}catch(n){D[e]=t}return t},V=C,L="__core-js_shared__",K=E[L]||V(L,{}),B=M,H=K,U=l(Function.toString);B(H.inspectSource)||(H.inspectSource=function(e){return U(e)});var q,W,J=H.inspectSource,F=M,z=E.WeakMap,G=F(z)&&/native code/.test(String(z)),X=M,$=T.all,Q=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:X(e)||e===$}:function(e){return"object"==typeof e?null!==e:X(e)},Y={},Z=Q,ee=E.document,te=Z(ee)&&Z(ee.createElement),ne=function(e){return te?ee.createElement(e):{}},re=ne,ie=!i&&!r((function(){return 7!==Object.defineProperty(re("div"),"a",{get:function(){return 7}}).a})),oe=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ae=Q,se=String,ce=TypeError,ue=function(e){if(ae(e))return e;throw new ce(se(e)+" is not an object")},le=o,fe=Function.prototype.call,de=le?fe.bind(fe):function(){return fe.apply(fe,arguments)},pe=E,ge=M,he=function(e,t){return arguments.length<2?(n=pe[e],ge(n)?n:void 0):pe[e]&&pe[e][t];var n},ve=l({}.isPrototypeOf),be="undefined"!=typeof navigator&&String(navigator.userAgent)||"",me=E,ye=be,we=me.process,Se=me.Deno,je=we&&we.versions||Se&&Se.version,Pe=je&&je.v8;Pe&&(W=(q=Pe.split("."))[0]>0&&q[0]<4?1:+(q[0]+q[1])),!W&&ye&&(!(q=ye.match(/Edge\/(\d+)/))||q[1]>=74)&&(q=ye.match(/Chrome\/(\d+)/))&&(W=+q[1]);var Oe=W,xe=Oe,ke=r,_e=E.String,Ie=!!Object.getOwnPropertySymbols&&!ke((function(){var e=Symbol("symbol detection");return!_e(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xe&&xe<41})),Te=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Re=he,Me=M,Ae=ve,Ee=Object,De=Te?function(e){return"symbol"==typeof e}:function(e){var t=Re("Symbol");return Me(t)&&Ae(t.prototype,Ee(e))},Ne=String,Ce=function(e){try{return Ne(e)}catch(e){return"Object"}},Ve=M,Le=Ce,Ke=TypeError,Be=function(e){if(Ve(e))return e;throw new Ke(Le(e)+" is not a function")},He=Be,Ue=f,qe=function(e,t){var n=e[t];return Ue(n)?void 0:He(n)},We=de,Je=M,Fe=Q,ze=TypeError,Ge={exports:{}},Xe=K;(Ge.exports=function(e,t){return Xe[e]||(Xe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"ยฉ 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=Ge.exports,Qe=l,Ye=0,Ze=Math.random(),et=Qe(1..toString),tt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+et(++Ye+Ze,36)},nt=$e,rt=w,it=tt,ot=Ie,at=Te,st=E.Symbol,ct=nt("wks"),ut=at?st.for||st:st&&st.withoutSetter||it,lt=function(e){return rt(ct,e)||(ct[e]=ot&&rt(st,e)?st[e]:ut("Symbol."+e)),ct[e]},ft=de,dt=Q,pt=De,gt=qe,ht=function(e,t){var n,r;if("string"===t&&Je(n=e.toString)&&!Fe(r=We(n,e)))return r;if(Je(n=e.valueOf)&&!Fe(r=We(n,e)))return r;if("string"!==t&&Je(n=e.toString)&&!Fe(r=We(n,e)))return r;throw new ze("Can't convert object to primitive value")},vt=TypeError,bt=lt("toPrimitive"),mt=function(e,t){if(!dt(e)||pt(e))return e;var n,r=gt(e,bt);if(r){if(void 0===t&&(t="default"),n=ft(r,e,t),!dt(n)||pt(n))return n;throw new vt("Can't convert object to primitive value")}return void 0===t&&(t="number"),ht(e,t)},yt=De,wt=function(e){var t=mt(e,"string");return yt(t)?t:t+""},St=i,jt=ie,Pt=oe,Ot=ue,xt=wt,kt=TypeError,_t=Object.defineProperty,It=Object.getOwnPropertyDescriptor,Tt="enumerable",Rt="configurable",Mt="writable";Y.f=St?Pt?function(e,t,n){if(Ot(e),t=xt(t),Ot(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Mt in n&&!n[Mt]){var r=It(e,t);r&&r[Mt]&&(e[t]=n.value,n={configurable:Rt in n?n[Rt]:r[Rt],enumerable:Tt in n?n[Tt]:r[Tt],writable:!1})}return _t(e,t,n)}:_t:function(e,t,n){if(Ot(e),t=xt(t),Ot(n),jt)try{return _t(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new kt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var At,Et,Dt,Nt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ct=Y,Vt=Nt,Lt=i?function(e,t,n){return Ct.f(e,t,Vt(1,n))}:function(e,t,n){return e[t]=n,e},Kt=tt,Bt=$e("keys"),Ht=function(e){return Bt[e]||(Bt[e]=Kt(e))},Ut={},qt=G,Wt=E,Jt=Q,Ft=Lt,zt=w,Gt=K,Xt=Ht,$t=Ut,Qt="Object already initialized",Yt=Wt.TypeError,Zt=Wt.WeakMap;if(qt||Gt.state){var en=Gt.state||(Gt.state=new Zt);en.get=en.get,en.has=en.has,en.set=en.set,At=function(e,t){if(en.has(e))throw new Yt(Qt);return t.facade=e,en.set(e,t),t},Et=function(e){return en.get(e)||{}},Dt=function(e){return en.has(e)}}else{var tn=Xt("state");$t[tn]=!0,At=function(e,t){if(zt(e,tn))throw new Yt(Qt);return t.facade=e,Ft(e,tn,t),t},Et=function(e){return zt(e,tn)?e[tn]:{}},Dt=function(e){return zt(e,tn)}}var nn={set:At,get:Et,has:Dt,enforce:function(e){return Dt(e)?Et(e):At(e,{})},getterFor:function(e){return function(t){var n;if(!Jt(t)||(n=Et(t)).type!==e)throw new Yt("Incompatible receiver, "+e+" required");return n}}},rn=l,on=r,an=M,sn=w,cn=i,un=k.CONFIGURABLE,ln=J,fn=nn.enforce,dn=nn.get,pn=String,gn=Object.defineProperty,hn=rn("".slice),vn=rn("".replace),bn=rn([].join),mn=cn&&!on((function(){return 8!==gn((function(){}),"length",{value:8}).length})),yn=String(String).split("String"),wn=_.exports=function(e,t,n){"Symbol("===hn(pn(t),0,7)&&(t="["+vn(pn(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!sn(e,"name")||un&&e.name!==t)&&(cn?gn(e,"name",{value:t,configurable:!0}):e.name=t),mn&&n&&sn(n,"arity")&&e.length!==n.arity&&gn(e,"length",{value:n.arity});try{n&&sn(n,"constructor")&&n.constructor?cn&&gn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=fn(e);return sn(r,"source")||(r.source=bn(yn,"string"==typeof t?t:"")),e};Function.prototype.toString=wn((function(){return an(this)&&dn(this).source||ln(this)}),"toString");var Sn,jn,Pn,On,xn=_.exports,kn=xn,_n=Y,In=function(e,t,n){return n.get&&kn(n.get,t,{getter:!0}),n.set&&kn(n.set,t,{setter:!0}),_n.f(e,t,n)},Tn=i,Rn=k.EXISTS,Mn=l,An=In,En=Function.prototype,Dn=Mn(En.toString),Nn=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Cn=Mn(Nn.exec);Tn&&!Rn&&An(En,"name",{configurable:!0,get:function(){try{return Cn(Nn,Dn(this))[1]}catch(e){return""}}}),e.systemTypeEnum=void 0,(Sn=e.systemTypeEnum||(e.systemTypeEnum={})).windows="windows",Sn.mac="mac",Sn.linux="linux",Sn.ios="ios",Sn.android="android",e.supporterTypeEnum=void 0,(jn=e.supporterTypeEnum||(e.supporterTypeEnum={})).chrome="chrome",jn.safari="safari",jn.firefox="firefox",jn.opera="opera",jn.ie="ie",jn.edge="edge",e.shellTypeEnum=void 0,(Pn=e.shellTypeEnum||(e.shellTypeEnum={})).wechat="wechat",Pn["wechat-miniprogram"]="wechat-miniprogram",Pn.alipay="alipay",Pn["alipay-miniprogram"]="alipay-miniprogram",Pn.qq="qq",Pn.uc="uc",e.AppNameEnum=void 0,(On=e.AppNameEnum||(e.AppNameEnum={})).Airmart="Airmart",On.Saigo="Saigo";var Vn={},Ln={},Kn={}.propertyIsEnumerable,Bn=Object.getOwnPropertyDescriptor,Hn=Bn&&!Kn.call({1:2},1);Ln.f=Hn?function(e){var t=Bn(this,e);return!!t&&t.enumerable}:Kn;var Un=l,qn=Un({}.toString),Wn=Un("".slice),Jn=function(e){return Wn(qn(e),8,-1)},Fn=r,zn=Jn,Gn=Object,Xn=l("".split),$n=Fn((function(){return!Gn("z").propertyIsEnumerable(0)}))?function(e){return"String"===zn(e)?Xn(e,""):Gn(e)}:Gn,Qn=$n,Yn=g,Zn=function(e){return Qn(Yn(e))},er=i,tr=de,nr=Ln,rr=Nt,ir=Zn,or=wt,ar=w,sr=ie,cr=Object.getOwnPropertyDescriptor;Vn.f=er?cr:function(e,t){if(e=ir(e),t=or(t),sr)try{return cr(e,t)}catch(e){}if(ar(e,t))return rr(!tr(nr.f,e,t),e[t])};var ur=M,lr=Y,fr=xn,dr=C,pr=function(e,t,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:t;if(ur(n)&&fr(n,o,r),r.global)i?e[t]=n:dr(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:lr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},gr={},hr=Math.ceil,vr=Math.floor,br=Math.trunc||function(e){var t=+e;return(t>0?vr:hr)(t)},mr=function(e){var t=+e;return t!=t||0===t?0:br(t)},yr=mr,wr=Math.max,Sr=Math.min,jr=function(e,t){var n=yr(e);return n<0?wr(n+t,0):Sr(n,t)},Pr=mr,Or=Math.min,xr=function(e){return e>0?Or(Pr(e),9007199254740991):0},kr=xr,_r=function(e){return kr(e.length)},Ir=Zn,Tr=jr,Rr=_r,Mr=function(e){return function(t,n,r){var i,o=Ir(t),a=Rr(o),s=Tr(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Ar={includes:Mr(!0),indexOf:Mr(!1)},Er=w,Dr=Zn,Nr=Ar.indexOf,Cr=Ut,Vr=l([].push),Lr=function(e,t){var n,r=Dr(e),i=0,o=[];for(n in r)!Er(Cr,n)&&Er(r,n)&&Vr(o,n);for(;t.length>i;)Er(r,n=t[i++])&&(~Nr(o,n)||Vr(o,n));return o},Kr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Br=Lr,Hr=Kr.concat("length","prototype");gr.f=Object.getOwnPropertyNames||function(e){return Br(e,Hr)};var Ur={};Ur.f=Object.getOwnPropertySymbols;var qr=he,Wr=gr,Jr=Ur,Fr=ue,zr=l([].concat),Gr=qr("Reflect","ownKeys")||function(e){var t=Wr.f(Fr(e)),n=Jr.f;return n?zr(t,n(e)):t},Xr=w,$r=Gr,Qr=Vn,Yr=Y,Zr=r,ei=M,ti=/#|\.prototype\./,ni=function(e,t){var n=ii[ri(e)];return n===ai||n!==oi&&(ei(t)?Zr(t):!!t)},ri=ni.normalize=function(e){return String(e).replace(ti,".").toLowerCase()},ii=ni.data={},oi=ni.NATIVE="N",ai=ni.POLYFILL="P",si=ni,ci=E,ui=Vn.f,li=Lt,fi=pr,di=C,pi=function(e,t,n){for(var r=$r(t),i=Yr.f,o=Qr.f,a=0;a<r.length;a++){var s=r[a];Xr(e,s)||n&&Xr(n,s)||i(e,s,o(t,s))}},gi=si,hi=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,u=e.stat;if(n=c?ci:u?ci[s]||di(s,{}):(ci[s]||{}).prototype)for(r in t){if(o=t[r],i=e.dontCallGetSet?(a=ui(n,r))&&a.value:n[r],!gi(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;pi(o,i)}(e.sham||i&&i.sham)&&li(o,"sham",!0),fi(n,r,o,e)}},vi=hi,bi=i,mi=Y.f;vi({target:"Object",stat:!0,forced:Object.defineProperty!==mi,sham:!bi},{defineProperty:mi});var yi={},wi=Lr,Si=Kr,ji=Object.keys||function(e){return wi(e,Si)},Pi=i,Oi=oe,xi=Y,ki=ue,_i=Zn,Ii=ji;yi.f=Pi&&!Oi?Object.defineProperties:function(e,t){ki(e);for(var n,r=_i(t),i=Ii(t),o=i.length,a=0;o>a;)xi.f(e,n=i[a++],r[n]);return e};var Ti,Ri=he("document","documentElement"),Mi=ue,Ai=yi,Ei=Kr,Di=Ut,Ni=Ri,Ci=ne,Vi="prototype",Li="script",Ki=Ht("IE_PROTO"),Bi=function(){},Hi=function(e){return"<"+Li+">"+e+"</"+Li+">"},Ui=function(e){e.write(Hi("")),e.close();var t=e.parentWindow.Object;return e=null,t},qi=function(){try{Ti=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;qi="undefined"!=typeof document?document.domain&&Ti?Ui(Ti):(t=Ci("iframe"),n="java"+Li+":",t.style.display="none",Ni.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Hi("document.F=Object")),e.close(),e.F):Ui(Ti);for(var r=Ei.length;r--;)delete qi[Vi][Ei[r]];return qi()};Di[Ki]=!0;var Wi=Object.create||function(e,t){var n;return null!==e?(Bi[Vi]=Mi(e),n=new Bi,Bi[Vi]=null,n[Ki]=e):n=qi(),void 0===t?n:Ai.f(n,t)},Ji=lt,Fi=Wi,zi=Y.f,Gi=Ji("unscopables"),Xi=Array.prototype;void 0===Xi[Gi]&&zi(Xi,Gi,{configurable:!0,value:Fi(null)});var $i,Qi,Yi,Zi=function(e){Xi[Gi][e]=!0},eo={},to=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),no=w,ro=M,io=b,oo=to,ao=Ht("IE_PROTO"),so=Object,co=so.prototype,uo=oo?so.getPrototypeOf:function(e){var t=io(e);if(no(t,ao))return t[ao];var n=t.constructor;return ro(n)&&t instanceof n?n.prototype:t instanceof so?co:null},lo=r,fo=M,po=Q,go=uo,ho=pr,vo=lt("iterator"),bo=!1;[].keys&&("next"in(Yi=[].keys())?(Qi=go(go(Yi)))!==Object.prototype&&($i=Qi):bo=!0);var mo=!po($i)||lo((function(){var e={};return $i[vo].call(e)!==e}));mo&&($i={}),fo($i[vo])||ho($i,vo,(function(){return this}));var yo={IteratorPrototype:$i,BUGGY_SAFARI_ITERATORS:bo},wo=Y.f,So=w,jo=lt("toStringTag"),Po=function(e,t,n){e&&!n&&(e=e.prototype),e&&!So(e,jo)&&wo(e,jo,{configurable:!0,value:t})},Oo=yo.IteratorPrototype,xo=Wi,ko=Nt,_o=Po,Io=eo,To=function(){return this},Ro=l,Mo=Be,Ao=M,Eo=String,Do=TypeError,No=function(e,t,n){try{return Ro(Mo(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Co=ue,Vo=function(e){if("object"==typeof e||Ao(e))return e;throw new Do("Can't set "+Eo(e)+" as a prototype")},Lo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=No(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Co(n),Vo(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ko=hi,Bo=de,Ho=M,Uo=function(e,t,n,r){var i=t+" Iterator";return e.prototype=xo(Oo,{next:ko(+!r,n)}),_o(e,i,!1),Io[i]=To,e},qo=uo,Wo=Lo,Jo=Po,Fo=Lt,zo=pr,Go=eo,Xo=k.PROPER,$o=k.CONFIGURABLE,Qo=yo.IteratorPrototype,Yo=yo.BUGGY_SAFARI_ITERATORS,Zo=lt("iterator"),ea="keys",ta="values",na="entries",ra=function(){return this},ia=function(e,t,n,r,i,o,a){Uo(n,t,r);var s,c,u,l=function(e){if(e===i&&h)return h;if(!Yo&&e&&e in p)return p[e];switch(e){case ea:case ta:case na:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,g=p[Zo]||p["@@iterator"]||i&&p[i],h=!Yo&&g||l(i),v="Array"===t&&p.entries||g;if(v&&(s=qo(v.call(new e)))!==Object.prototype&&s.next&&(qo(s)!==Qo&&(Wo?Wo(s,Qo):Ho(s[Zo])||zo(s,Zo,ra)),Jo(s,f,!0)),Xo&&i===ta&&g&&g.name!==ta&&($o?Fo(p,"name",ta):(d=!0,h=function(){return Bo(g,this)})),i)if(c={values:l(ta),keys:o?h:l(ea),entries:l(na)},a)for(u in c)(Yo||d||!(u in p))&&zo(p,u,c[u]);else Ko({target:t,proto:!0,forced:Yo||d},c);return p[Zo]!==h&&zo(p,Zo,h,{name:i}),Go[t]=h,c},oa=function(e,t){return{value:e,done:t}},aa=Zn,sa=Zi,ca=eo,ua=nn,la=Y.f,fa=ia,da=oa,pa=i,ga="Array Iterator",ha=ua.set,va=ua.getterFor(ga),ba=fa(Array,"Array",(function(e,t){ha(this,{type:ga,target:aa(e),index:0,kind:t})}),(function(){var e=va(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,da(void 0,!0);switch(e.kind){case"keys":return da(n,!1);case"values":return da(t[n],!1)}return da([n,t[n]],!1)}),"values"),ma=ca.Arguments=ca.Array;if(sa("keys"),sa("values"),sa("entries"),pa&&"values"!==ma.name)try{la(ma,"name",{value:"values"})}catch(e){}var ya={exports:{}},wa={},Sa=wt,ja=Y,Pa=Nt,Oa=function(e,t,n){var r=Sa(t);r in e?ja.f(e,r,Pa(0,n)):e[r]=n},xa=jr,ka=_r,_a=Oa,Ia=Array,Ta=Math.max,Ra=Jn,Ma=Zn,Aa=gr.f,Ea=function(e,t,n){for(var r=ka(e),i=xa(t,r),o=xa(void 0===n?r:n,r),a=Ia(Ta(o-i,0)),s=0;i<o;i++,s++)_a(a,s,e[i]);return a.length=s,a},Da="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];wa.f=function(e){return Da&&"Window"===Ra(e)?function(e){try{return Aa(e)}catch(e){return Ea(Da)}}(e):Aa(Ma(e))};var Na=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ca=r,Va=Q,La=Jn,Ka=Na,Ba=Object.isExtensible,Ha=Ca((function(){Ba(1)}))||Ka?function(e){return!!Va(e)&&((!Ka||"ArrayBuffer"!==La(e))&&(!Ba||Ba(e)))}:Ba,Ua=!r((function(){return Object.isExtensible(Object.preventExtensions({}))})),qa=hi,Wa=l,Ja=Ut,Fa=Q,za=w,Ga=Y.f,Xa=gr,$a=wa,Qa=Ha,Ya=Ua,Za=!1,es=tt("meta"),ts=0,ns=function(e){Ga(e,es,{value:{objectID:"O"+ts++,weakData:{}}})},rs=ya.exports={enable:function(){rs.enable=function(){},Za=!0;var e=Xa.f,t=Wa([].splice),n={};n[es]=1,e(n).length&&(Xa.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===es){t(r,i,1);break}return r},qa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$a.f}))},fastKey:function(e,t){if(!Fa(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!za(e,es)){if(!Qa(e))return"F";if(!t)return"E";ns(e)}return e[es].objectID},getWeakData:function(e,t){if(!za(e,es)){if(!Qa(e))return!0;if(!t)return!1;ns(e)}return e[es].weakData},onFreeze:function(e){return Ya&&Za&&Qa(e)&&!za(e,es)&&ns(e),e}};Ja[es]=!0;var is=ya.exports,os=Jn,as=l,ss=function(e){if("Function"===os(e))return as(e)},cs=Be,us=o,ls=ss(ss.bind),fs=function(e,t){return cs(e),void 0===t?e:us?ls(e,t):function(){return e.apply(t,arguments)}},ds=eo,ps=lt("iterator"),gs=Array.prototype,hs={};hs[lt("toStringTag")]="z";var vs="[object z]"===String(hs),bs=vs,ms=M,ys=Jn,ws=lt("toStringTag"),Ss=Object,js="Arguments"===ys(function(){return arguments}()),Ps=bs?ys:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ss(e),ws))?n:js?ys(t):"Object"===(r=ys(t))&&ms(t.callee)?"Arguments":r},Os=Ps,xs=qe,ks=f,_s=eo,Is=lt("iterator"),Ts=function(e){if(!ks(e))return xs(e,Is)||xs(e,"@@iterator")||_s[Os(e)]},Rs=de,Ms=Be,As=ue,Es=Ce,Ds=Ts,Ns=TypeError,Cs=de,Vs=ue,Ls=qe,Ks=fs,Bs=de,Hs=ue,Us=Ce,qs=function(e){return void 0!==e&&(ds.Array===e||gs[ps]===e)},Ws=_r,Js=ve,Fs=function(e,t){var n=arguments.length<2?Ds(e):t;if(Ms(n))return As(Rs(n,e));throw new Ns(Es(e)+" is not iterable")},zs=Ts,Gs=function(e,t,n){var r,i;Vs(e);try{if(!(r=Ls(e,"return"))){if("throw"===t)throw n;return n}r=Cs(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Vs(r),n},Xs=TypeError,$s=function(e,t){this.stopped=e,this.result=t},Qs=$s.prototype,Ys=function(e,t,n){var r,i,o,a,s,c,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=Ks(t,l),v=function(e){return r&&Gs(r,"normal",e),new $s(!0,e)},b=function(e){return f?(Hs(e),g?h(e[0],e[1],v):h(e[0],e[1])):g?h(e,v):h(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(i=zs(e)))throw new Xs(Us(e)+" is not iterable");if(qs(i)){for(o=0,a=Ws(e);a>o;o++)if((s=b(e[o]))&&Js(Qs,s))return s;return new $s(!1)}r=Fs(e,i)}for(c=d?e.next:r.next;!(u=Bs(c,r)).done;){try{s=b(u.value)}catch(e){Gs(r,"throw",e)}if("object"==typeof s&&s&&Js(Qs,s))return s}return new $s(!1)},Zs=ve,ec=TypeError,tc=function(e,t){if(Zs(t,e))return e;throw new ec("Incorrect invocation")},nc=lt("iterator"),rc=!1;try{var ic=0,oc={next:function(){return{done:!!ic++}},return:function(){rc=!0}};oc[nc]=function(){return this},Array.from(oc,(function(){throw 2}))}catch(e){}var ac=function(e,t){try{if(!t&&!rc)return!1}catch(e){return!1}var n=!1;try{var r={};r[nc]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},sc=M,cc=Q,uc=Lo,lc=hi,fc=E,dc=l,pc=si,gc=pr,hc=is,vc=Ys,bc=tc,mc=M,yc=f,wc=Q,Sc=r,jc=ac,Pc=Po,Oc=function(e,t,n){var r,i;return uc&&sc(r=t.constructor)&&r!==n&&cc(i=r.prototype)&&i!==n.prototype&&uc(e,i),e},xc=pr,kc=he,_c=In,Ic=i,Tc=lt("species"),Rc=function(e){var t=kc(e);Ic&&t&&!t[Tc]&&_c(t,Tc,{configurable:!0,get:function(){return this}})},Mc=Wi,Ac=In,Ec=function(e,t,n){for(var r in t)xc(e,r,t[r],n);return e},Dc=fs,Nc=tc,Cc=f,Vc=Ys,Lc=ia,Kc=oa,Bc=Rc,Hc=i,Uc=is.fastKey,qc=nn.set,Wc=nn.getterFor,Jc={getConstructor:function(e,t,n,r){var i=e((function(e,i){Nc(e,o),qc(e,{type:t,index:Mc(null),first:void 0,last:void 0,size:0}),Hc||(e.size=0),Cc(i)||Vc(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=Wc(t),s=function(e,t,n){var r,i,o=a(e),s=c(e,t);return s?s.value=n:(o.last=s={index:i=Uc(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),Hc?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},c=function(e,t){var n,r=a(e),i=Uc(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return Ec(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Hc?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=c(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),Hc?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Dc(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Ec(o,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),Hc&&Ac(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=Wc(t),o=Wc(r);Lc(e,t,(function(e,t){qc(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Kc("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,Kc(void 0,!0))}),n?"entries":"values",!n,!0),Bc(t)}};(function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=fc[e],s=a&&a.prototype,c=a,u={},l=function(e){var t=dc(s[e]);gc(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(i&&!wc(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return i&&!wc(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(i&&!wc(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(pc(e,!mc(a)||!(i||s.forEach&&!Sc((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),hc.enable();else if(pc(e,!0)){var f=new c,d=f[o](i?{}:-0,1)!==f,p=Sc((function(){f.has(1)})),g=jc((function(e){new a(e)})),h=!i&&Sc((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));g||((c=t((function(e,t){bc(e,s);var n=Oc(new a,e,c);return yc(t)||vc(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(l("delete"),l("has"),r&&l("get")),(h||d)&&l(o),i&&s.clear&&delete s.clear}u[e]=c,lc({global:!0,constructor:!0,forced:c!==a},u),Pc(c,e),i||n.setStrong(c,e,r)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Jc);var Fc=Ps,zc=vs?{}.toString:function(){return"[object "+Fc(this)+"]"};vs||pr(Object.prototype,"toString",zc,{unsafe:!0});var Gc=Ps,Xc=String,$c=function(e){if("Symbol"===Gc(e))throw new TypeError("Cannot convert a Symbol value to a string");return Xc(e)},Qc=l,Yc=mr,Zc=$c,eu=g,tu=Qc("".charAt),nu=Qc("".charCodeAt),ru=Qc("".slice),iu=function(e){return function(t,n){var r,i,o=Zc(eu(t)),a=Yc(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=nu(o,a))<55296||r>56319||a+1===s||(i=nu(o,a+1))<56320||i>57343?e?tu(o,a):r:e?ru(o,a,a+2):i-56320+(r-55296<<10)+65536}},ou={codeAt:iu(!1),charAt:iu(!0)},au=ou.charAt,su=$c,cu=nn,uu=ia,lu=oa,fu="String Iterator",du=cu.set,pu=cu.getterFor(fu);uu(String,"String",(function(e){du(this,{type:fu,string:su(e),index:0})}),(function(){var e,t=pu(this),n=t.string,r=t.index;return r>=n.length?lu(void 0,!0):(e=au(n,r),t.index+=e.length,lu(e,!1))}));var gu={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},hu=ne("span").classList,vu=hu&&hu.constructor&&hu.constructor.prototype,bu=vu===Object.prototype?void 0:vu,mu=E,yu=gu,wu=bu,Su=ba,ju=Lt,Pu=lt,Ou=Pu("iterator"),xu=Pu("toStringTag"),ku=Su.values,_u=function(e,t){if(e){if(e[Ou]!==ku)try{ju(e,Ou,ku)}catch(t){e[Ou]=ku}if(e[xu]||ju(e,xu,t),yu[t])for(var n in Su)if(e[n]!==Su[n])try{ju(e,n,Su[n])}catch(t){e[n]=Su[n]}}};for(var Iu in yu)_u(mu[Iu]&&mu[Iu].prototype,Iu);_u(wu,"DOMTokenList");var Tu=i,Ru=l,Mu=de,Au=r,Eu=ji,Du=Ur,Nu=Ln,Cu=b,Vu=$n,Lu=Object.assign,Ku=Object.defineProperty,Bu=Ru([].concat),Hu=!Lu||Au((function(){if(Tu&&1!==Lu({b:1},Lu(Ku({},"a",{enumerable:!0,get:function(){Ku(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==Lu({},e)[n]||Eu(Lu({},t)).join("")!==r}))?function(e,t){for(var n=Cu(e),r=arguments.length,i=1,o=Du.f,a=Nu.f;r>i;)for(var s,c=Vu(arguments[i++]),u=o?Bu(Eu(c),o(c)):Eu(c),l=u.length,f=0;l>f;)s=u[f++],Tu&&!Mu(a,c,s)||(n[s]=c[s]);return n}:Lu,Uu=Hu;hi({target:"Object",stat:!0,arity:2,forced:Object.assign!==Uu},{assign:Uu});var qu="process"===Jn(E.process),Wu=l,Ju=r,Fu=M,zu=Ps,Gu=J,Xu=function(){},$u=[],Qu=he("Reflect","construct"),Yu=/^\s*(?:class|function)\b/,Zu=Wu(Yu.exec),el=!Yu.test(Xu),tl=function(e){if(!Fu(e))return!1;try{return Qu(Xu,$u,e),!0}catch(e){return!1}},nl=function(e){if(!Fu(e))return!1;switch(zu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return el||!!Zu(Yu,Gu(e))}catch(e){return!0}};nl.sham=!0;var rl,il,ol,al,sl=!Qu||Ju((function(){var e;return tl(tl.call)||!tl(Object)||!tl((function(){e=!0}))||e}))?nl:tl,cl=sl,ul=Ce,ll=TypeError,fl=ue,dl=function(e){if(cl(e))return e;throw new ll(ul(e)+" is not a constructor")},pl=f,gl=lt("species"),hl=o,vl=Function.prototype,bl=vl.apply,ml=vl.call,yl="object"==typeof Reflect&&Reflect.apply||(hl?ml.bind(bl):function(){return ml.apply(bl,arguments)}),wl=l([].slice),Sl=TypeError,jl=/(?:ipad|iphone|ipod).*applewebkit/i.test(be),Pl=E,Ol=yl,xl=fs,kl=M,_l=w,Il=r,Tl=Ri,Rl=wl,Ml=ne,Al=function(e,t){if(e<t)throw new Sl("Not enough arguments");return e},El=jl,Dl=qu,Nl=Pl.setImmediate,Cl=Pl.clearImmediate,Vl=Pl.process,Ll=Pl.Dispatch,Kl=Pl.Function,Bl=Pl.MessageChannel,Hl=Pl.String,Ul=0,ql={},Wl="onreadystatechange";Il((function(){rl=Pl.location}));var Jl=function(e){if(_l(ql,e)){var t=ql[e];delete ql[e],t()}},Fl=function(e){return function(){Jl(e)}},zl=function(e){Jl(e.data)},Gl=function(e){Pl.postMessage(Hl(e),rl.protocol+"//"+rl.host)};Nl&&Cl||(Nl=function(e){Al(arguments.length,1);var t=kl(e)?e:Kl(e),n=Rl(arguments,1);return ql[++Ul]=function(){Ol(t,void 0,n)},il(Ul),Ul},Cl=function(e){delete ql[e]},Dl?il=function(e){Vl.nextTick(Fl(e))}:Ll&&Ll.now?il=function(e){Ll.now(Fl(e))}:Bl&&!El?(al=(ol=new Bl).port2,ol.port1.onmessage=zl,il=xl(al.postMessage,al)):Pl.addEventListener&&kl(Pl.postMessage)&&!Pl.importScripts&&rl&&"file:"!==rl.protocol&&!Il(Gl)?(il=Gl,Pl.addEventListener("message",zl,!1)):il=Wl in Ml("script")?function(e){Tl.appendChild(Ml("script"))[Wl]=function(){Tl.removeChild(this),Jl(e)}}:function(e){setTimeout(Fl(e),0)});var Xl={set:Nl,clear:Cl},$l=function(){this.head=null,this.tail=null};$l.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Ql,Yl,Zl,ef,tf,nf=$l,rf=/ipad|iphone|ipod/i.test(be)&&"undefined"!=typeof Pebble,of=/web0s(?!.*chrome)/i.test(be),af=E,sf=fs,cf=Vn.f,uf=Xl.set,lf=nf,ff=jl,df=rf,pf=of,gf=qu,hf=af.MutationObserver||af.WebKitMutationObserver,vf=af.document,bf=af.process,mf=af.Promise,yf=cf(af,"queueMicrotask"),wf=yf&&yf.value;if(!wf){var Sf=new lf,jf=function(){var e,t;for(gf&&(e=bf.domain)&&e.exit();t=Sf.get();)try{t()}catch(e){throw Sf.head&&Ql(),e}e&&e.enter()};ff||gf||pf||!hf||!vf?!df&&mf&&mf.resolve?((ef=mf.resolve(void 0)).constructor=mf,tf=sf(ef.then,ef),Ql=function(){tf(jf)}):gf?Ql=function(){bf.nextTick(jf)}:(uf=sf(uf,af),Ql=function(){uf(jf)}):(Yl=!0,Zl=vf.createTextNode(""),new hf(jf).observe(Zl,{characterData:!0}),Ql=function(){Zl.data=Yl=!Yl}),wf=function(e){Sf.head||Ql(),Sf.add(e)}}var Pf=wf,Of=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},xf=E.Promise,kf="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,_f=!kf&&!qu&&"object"==typeof window&&"object"==typeof document,If=E,Tf=xf,Rf=M,Mf=si,Af=J,Ef=lt,Df=_f,Nf=kf,Cf=Oe;Tf&&Tf.prototype;var Vf=Ef("species"),Lf=!1,Kf=Rf(If.PromiseRejectionEvent),Bf=Mf("Promise",(function(){var e=Af(Tf),t=e!==String(Tf);if(!t&&66===Cf)return!0;if(!Cf||Cf<51||!/native code/.test(e)){var n=new Tf((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Vf]=r,!(Lf=n.then((function(){}))instanceof r))return!0}return!t&&(Df||Nf)&&!Kf})),Hf={CONSTRUCTOR:Bf,REJECTION_EVENT:Kf,SUBCLASSING:Lf},Uf={},qf=Be,Wf=TypeError,Jf=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Wf("Bad Promise constructor");t=e,n=r})),this.resolve=qf(t),this.reject=qf(n)};Uf.f=function(e){return new Jf(e)};var Ff,zf,Gf,Xf=hi,$f=qu,Qf=E,Yf=de,Zf=pr,ed=Lo,td=Po,nd=Rc,rd=Be,id=M,od=Q,ad=tc,sd=function(e,t){var n,r=fl(e).constructor;return void 0===r||pl(n=fl(r)[gl])?t:dl(n)},cd=Xl.set,ud=Pf,ld=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},fd=Of,dd=nf,pd=nn,gd=xf,hd=Uf,vd="Promise",bd=Hf.CONSTRUCTOR,md=Hf.REJECTION_EVENT,yd=Hf.SUBCLASSING,wd=pd.getterFor(vd),Sd=pd.set,jd=gd&&gd.prototype,Pd=gd,Od=jd,xd=Qf.TypeError,kd=Qf.document,_d=Qf.process,Id=hd.f,Td=Id,Rd=!!(kd&&kd.createEvent&&Qf.dispatchEvent),Md="unhandledrejection",Ad=function(e){var t;return!(!od(e)||!id(t=e.then))&&t},Ed=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Ld(t),t.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===e.promise?u(new xd("Promise-chain cycle")):(r=Ad(n))?Yf(r,n,c,u):c(n)):u(o)}catch(e){l&&!i&&l.exit(),u(e)}},Dd=function(e,t){e.notified||(e.notified=!0,ud((function(){for(var n,r=e.reactions;n=r.get();)Ed(n,e);e.notified=!1,t&&!e.rejection&&Cd(e)})))},Nd=function(e,t,n){var r,i;Rd?((r=kd.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Qf.dispatchEvent(r)):r={promise:t,reason:n},!md&&(i=Qf["on"+e])?i(r):e===Md&&ld("Unhandled promise rejection",n)},Cd=function(e){Yf(cd,Qf,(function(){var t,n=e.facade,r=e.value;if(Vd(e)&&(t=fd((function(){$f?_d.emit("unhandledRejection",r,n):Nd(Md,n,r)})),e.rejection=$f||Vd(e)?2:1,t.error))throw t.value}))},Vd=function(e){return 1!==e.rejection&&!e.parent},Ld=function(e){Yf(cd,Qf,(function(){var t=e.facade;$f?_d.emit("rejectionHandled",t):Nd("rejectionhandled",t,e.value)}))},Kd=function(e,t,n){return function(r){e(t,r,n)}},Bd=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Dd(e,!0))},Hd=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new xd("Promise can't be resolved itself");var r=Ad(t);r?ud((function(){var n={done:!1};try{Yf(r,t,Kd(Hd,n,e),Kd(Bd,n,e))}catch(t){Bd(n,t,e)}})):(e.value=t,e.state=1,Dd(e,!1))}catch(t){Bd({done:!1},t,e)}}};if(bd&&(Od=(Pd=function(e){ad(this,Od),rd(e),Yf(Ff,this);var t=wd(this);try{e(Kd(Hd,t),Kd(Bd,t))}catch(e){Bd(t,e)}}).prototype,(Ff=function(e){Sd(this,{type:vd,done:!1,notified:!1,parent:!1,reactions:new dd,rejection:!1,state:0,value:void 0})}).prototype=Zf(Od,"then",(function(e,t){var n=wd(this),r=Id(sd(this,Pd));return n.parent=!0,r.ok=!id(e)||e,r.fail=id(t)&&t,r.domain=$f?_d.domain:void 0,0===n.state?n.reactions.add(r):ud((function(){Ed(r,n)})),r.promise})),zf=function(){var e=new Ff,t=wd(e);this.promise=e,this.resolve=Kd(Hd,t),this.reject=Kd(Bd,t)},hd.f=Id=function(e){return e===Pd||undefined===e?new zf(e):Td(e)},id(gd)&&jd!==Object.prototype)){Gf=jd.then,yd||Zf(jd,"then",(function(e,t){var n=this;return new Pd((function(e,t){Yf(Gf,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete jd.constructor}catch(e){}ed&&ed(jd,Od)}Xf({global:!0,constructor:!0,wrap:!0,forced:bd},{Promise:Pd}),td(Pd,vd,!1),nd(vd);var Ud=xf,qd=Hf.CONSTRUCTOR||!ac((function(e){Ud.all(e).then(void 0,(function(){}))})),Wd=de,Jd=Be,Fd=Uf,zd=Of,Gd=Ys;hi({target:"Promise",stat:!0,forced:qd},{all:function(e){var t=this,n=Fd.f(t),r=n.resolve,i=n.reject,o=zd((function(){var n=Jd(t.resolve),o=[],a=0,s=1;Gd(e,(function(e){var c=a++,u=!1;s++,Wd(n,t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var Xd=hi,$d=Hf.CONSTRUCTOR,Qd=xf,Yd=he,Zd=M,ep=pr,tp=Qd&&Qd.prototype;if(Xd({target:"Promise",proto:!0,forced:$d,real:!0},{catch:function(e){return this.then(void 0,e)}}),Zd(Qd)){var np=Yd("Promise").prototype.catch;tp.catch!==np&&ep(tp,"catch",np,{unsafe:!0})}var rp=de,ip=Be,op=Uf,ap=Of,sp=Ys;hi({target:"Promise",stat:!0,forced:qd},{race:function(e){var t=this,n=op.f(t),r=n.reject,i=ap((function(){var i=ip(t.resolve);sp(e,(function(e){rp(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var cp=de,up=Uf;hi({target:"Promise",stat:!0,forced:Hf.CONSTRUCTOR},{reject:function(e){var t=up.f(this);return cp(t.reject,void 0,e),t.promise}});var lp=ue,fp=Q,dp=Uf,pp=hi,gp=Hf.CONSTRUCTOR,hp=function(e,t){if(lp(e),fp(t)&&t.constructor===e)return t;var n=dp.f(e);return(0,n.resolve)(t),n.promise};let vp;he("Promise"),pp({target:"Promise",stat:!0,forced:gp},{resolve:function(e){return hp(this,e)}});const bp=new Uint8Array(16);function mp(){if(!vp&&(vp="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vp(bp)}const yp=[];for(let e=0;e<256;++e)yp.push((e+256).toString(16).slice(1));var wp={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Sp(e,t,n){if(wp.randomUUID&&!t&&!e)return wp.randomUUID();const r=(e=e||{}).random||(e.rng||mp)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return yp[e[t+0]]+yp[e[t+1]]+yp[e[t+2]]+yp[e[t+3]]+"-"+yp[e[t+4]]+yp[e[t+5]]+"-"+yp[e[t+6]]+yp[e[t+7]]+"-"+yp[e[t+8]]+yp[e[t+9]]+"-"+yp[e[t+10]]+yp[e[t+11]]+yp[e[t+12]]+yp[e[t+13]]+yp[e[t+14]]+yp[e[t+15]]}(r)}var jp={failedTime:3e3},Pp=function(){function e(e){var t=this;Object.defineProperty(this,"clientWindow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parentWindow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"origin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"failedTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"requestCache",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var n=Object.assign({},e,jp),r=n.clientWindow,i=n.parentWindow,o=n.origin,a=n.failedTime;this.clientWindow=r,this.parentWindow=i,this.origin=o,this.failedTime=a,r.onmessage=function(e){t.receiveResponse(e)}}return Object.defineProperty(e.prototype,"receiveResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if("*"===this.origin||e.origin===this.origin){var t=e.data;if("response"===t.type&&this.requestCache.has(t.requestId)){var n=this.requestCache.get(t.requestId);t.isSuccess?n.success(t.body):n.failed(t.body)}}}}),Object.defineProperty(e.prototype,"call",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r={requestId:Sp(),handlerName:e,body:t};return console.log("๐Ÿš€ ~ file: ChannelClient.ts:87 ~ ChannelClient ~ call ~ request:",r),new Promise((function(e,t){n.parentWindow.postMessage(r,n.origin),n.requestCache.set(r.requestId,{success:e,failed:t}),setTimeout((function(){n.timeoutFailed(r.requestId)}),n.failedTime)}))}}),Object.defineProperty(e.prototype,"timeoutFailed",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.requestCache.has(e)){var t=this.requestCache.get(e);this.requestCache.delete(e),t.failed("Request Timeout")}}}),e}(),Op=function(){function e(){var e=this;Object.defineProperty(this,"requestHandlerMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),window.onmessage=function(t){e.receiveRequest(t)}}return Object.defineProperty(e.prototype,"receiveRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.data;console.log("๐Ÿš€ ~ file: ChannelParent.ts:19 ~ ChannelParent ~ receiveRequest ~ request:",t),t.requestId&&this.requestHandlerMap.has(t.handlerName)&&e.source&&e.source.postMessage(this.handleRequest(t),e.origin)}}),Object.defineProperty(e.prototype,"handleRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.requestId,n=e.handlerName,r={type:"response",requestId:t,handlerName:n};try{var i=this.requestHandlerMap.get(n);i&&(r.isSuccess=!0,r.body=i(e.body))}catch(e){r.isSuccess=!1,r.body=e}return r}}),Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.requestHandlerMap.set(e,t)}}),e}(),xp=Jn,kp=Array.isArray||function(e){return"Array"===xp(e)},_p=kp,Ip=sl,Tp=Q,Rp=lt("species"),Mp=Array,Ap=function(e){var t;return _p(e)&&(t=e.constructor,(Ip(t)&&(t===Mp||_p(t.prototype))||Tp(t)&&null===(t=t[Rp]))&&(t=void 0)),void 0===t?Mp:t},Ep=function(e,t){return new(Ap(e))(0===t?0:t)},Dp=fs,Np=$n,Cp=b,Vp=_r,Lp=Ep,Kp=l([].push),Bp=function(e){var t=1===e,n=2===e,r=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(c,u,l,f){for(var d,p,g=Cp(c),h=Np(g),v=Dp(u,l),b=Vp(h),m=0,y=f||Lp,w=t?y(c,b):n||a?y(c,0):void 0;b>m;m++)if((s||m in h)&&(p=v(d=h[m],m,g),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Kp(w,d)}else switch(e){case 4:return!1;case 7:Kp(w,d)}return o?-1:r||i?i:w}},Hp={forEach:Bp(0),map:Bp(1),filter:Bp(2),some:Bp(3),every:Bp(4),find:Bp(5),findIndex:Bp(6),filterReject:Bp(7)},Up=r,qp=Oe,Wp=lt("species"),Jp=function(e){return qp>=51||!Up((function(){var t=[];return(t.constructor={})[Wp]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Fp=Hp.map;hi({target:"Array",proto:!0,forced:!Jp("map")},{map:function(e){return Fp(this,e,arguments.length>1?arguments[1]:void 0)}});var zp="\t\n\v\f\r ย แš€โ€€โ€โ€‚โ€ƒโ€„โ€…โ€†โ€‡โ€ˆโ€‰โ€Šโ€ฏโŸใ€€\u2028\u2029\ufeff",Gp=g,Xp=$c,$p=zp,Qp=l("".replace),Yp=RegExp("^["+$p+"]+"),Zp=RegExp("(^|[^"+$p+"])["+$p+"]+$"),eg=function(e){return function(t){var n=Xp(Gp(t));return 1&e&&(n=Qp(n,Yp,"")),2&e&&(n=Qp(n,Zp,"$1")),n}},tg={start:eg(1),end:eg(2),trim:eg(3)},ng=E,rg=r,ig=l,og=$c,ag=tg.trim,sg=zp,cg=ng.parseInt,ug=ng.Symbol,lg=ug&&ug.iterator,fg=/^[+-]?0x/i,dg=ig(fg.exec),pg=8!==cg(sg+"08")||22!==cg(sg+"0x16")||lg&&!rg((function(){cg(Object(lg))}))?function(e,t){var n=ag(og(e));return cg(n,t>>>0||(dg(fg,n)?16:10))}:cg;hi({global:!0,forced:parseInt!==pg},{parseInt:pg});var gg=r,hg=function(e,t){var n=[][e];return!!n&&gg((function(){n.call(null,t||function(){return 1},1)}))},vg=Hp.forEach,bg=hg("forEach")?[].forEach:function(e){return vg(this,e,arguments.length>1?arguments[1]:void 0)};hi({target:"Array",proto:!0,forced:[].forEach!==bg},{forEach:bg});var mg=E,yg=gu,wg=bu,Sg=bg,jg=Lt,Pg=function(e){if(e&&e.forEach!==Sg)try{jg(e,"forEach",Sg)}catch(t){e.forEach=Sg}};for(var Og in yg)yg[Og]&&Pg(mg[Og]&&mg[Og].prototype);Pg(wg);var xg=TypeError,kg=hi,_g=r,Ig=kp,Tg=Q,Rg=b,Mg=_r,Ag=function(e){if(e>9007199254740991)throw xg("Maximum allowed index exceeded");return e},Eg=Oa,Dg=Ep,Ng=Jp,Cg=Oe,Vg=lt("isConcatSpreadable"),Lg=Cg>=51||!_g((function(){var e=[];return e[Vg]=!1,e.concat()[0]!==e})),Kg=function(e){if(!Tg(e))return!1;var t=e[Vg];return void 0!==t?!!t:Ig(e)};function Bg(e,t){for(var n=e.split(".").map((function(e){return parseInt(e,10)})),r=t.split(".").map((function(e){return parseInt(e,10)})),i=0;i<Math.max(n.length,r.length);i++){var o=n[i]||0,a=r[i]||0;if(o!==a)return o>a?1:-1}return 0}function Hg(e){if(!e)return{};var t=e.split("?")[1];if(!t)return{};var n={};return t.split("&").forEach((function(e){var t=e.split("=")[0],r=e.split("=")[1];n[t]=r})),n}kg({target:"Array",proto:!0,arity:1,forced:!Lg||!Ng("concat")},{concat:function(e){var t,n,r,i,o,a=Rg(this),s=Dg(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Kg(o=-1===t?a:arguments[t]))for(i=Mg(o),Ag(c+i),n=0;n<i;n++,c++)n in o&&Eg(s,c,o[n]);else Ag(c+1),Eg(s,c++,o);return s.length=c,s}});var Ug=b,qg=ji;hi({target:"Object",stat:!0,forced:r((function(){qg(1)}))},{keys:function(e){return qg(Ug(e))}});var Wg=localStorage,Jg={prefixKey:"jubo_",cacheTime:2592e3},Fg=function(){function e(e,t){Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:Jg}),this.storage=e||Wg,this.options=Object.assign({},t,Jg)}return Object.defineProperty(e.prototype,"getKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return"".concat(this.options.prefixKey).concat(e).toUpperCase()}}),Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=n&&~~n||this.options.cacheTime;-1===r&&(r=void 0);var i=JSON.stringify({value:t,expire:r?(new Date).getTime()+1e3*r:null});this.storage.setItem(this.getKey(e),i)}}),Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=void 0);var n=this.storage.getItem(this.getKey(e));if(n)try{var r=JSON.parse(n),i=r.value,o=r.expire;if(null===o||o>=(new Date).getTime())return i;this.remove(e)}catch(e){return t}return t}}),Object.defineProperty(e.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.storage.removeItem(this.getKey(e))}}),Object.defineProperty(e.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.storage.clear()}}),e}(),zg=function(e,t){return new Fg(e,t)},Gg=zg(localStorage);zg(sessionStorage);var Xg=hi,$g=Hp.find,Qg=Zi,Yg="find",Zg=!0;Yg in[]&&Array(1)[Yg]((function(){Zg=!1})),Xg({target:"Array",proto:!0,forced:Zg},{find:function(e){return $g(this,e,arguments.length>1?arguments[1]:void 0)}}),Qg(Yg);var eh=hi,th=Ar.indexOf,nh=hg,rh=ss([].indexOf),ih=!!rh&&1/rh([1],1,-0)<0;eh({target:"Array",proto:!0,forced:ih||!nh("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ih?rh(this,e,t)||0:th(this,e,t)}});var oh,ah,sh=ue,ch=function(){var e=sh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},uh=r,lh=E.RegExp,fh=uh((function(){var e=lh("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),dh=fh||uh((function(){return!lh("a","y").sticky})),ph={BROKEN_CARET:fh||uh((function(){var e=lh("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:dh,UNSUPPORTED_Y:fh},gh=r,hh=E.RegExp,vh=gh((function(){var e=hh(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),bh=r,mh=E.RegExp,yh=bh((function(){var e=mh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wh=de,Sh=l,jh=$c,Ph=ch,Oh=ph,xh=Wi,kh=nn.get,_h=vh,Ih=yh,Th=$e("native-string-replace",String.prototype.replace),Rh=RegExp.prototype.exec,Mh=Rh,Ah=Sh("".charAt),Eh=Sh("".indexOf),Dh=Sh("".replace),Nh=Sh("".slice),Ch=(ah=/b*/g,wh(Rh,oh=/a/,"a"),wh(Rh,ah,"a"),0!==oh.lastIndex||0!==ah.lastIndex),Vh=Oh.BROKEN_CARET,Lh=void 0!==/()??/.exec("")[1];(Ch||Lh||Vh||_h||Ih)&&(Mh=function(e){var t,n,r,i,o,a,s,c=this,u=kh(c),l=jh(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=wh(Mh,f,l),c.lastIndex=f.lastIndex,t;var d=u.groups,p=Vh&&c.sticky,g=wh(Ph,c),h=c.source,v=0,b=l;if(p&&(g=Dh(g,"y",""),-1===Eh(g,"g")&&(g+="g"),b=Nh(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ah(l,c.lastIndex-1))&&(h="(?: "+h+")",b=" "+b,v++),n=new RegExp("^(?:"+h+")",g)),Lh&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Ch&&(r=c.lastIndex),i=wh(Rh,p?n:c,b),p?i?(i.input=Nh(i.input,v),i[0]=Nh(i[0],v),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Ch&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Lh&&i&&i.length>1&&wh(Th,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=xh(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var Kh=Mh;hi({target:"RegExp",proto:!0,forced:/./.exec!==Kh},{exec:Kh});var Bh=ss,Hh=pr,Uh=Kh,qh=r,Wh=lt,Jh=Lt,Fh=Wh("species"),zh=RegExp.prototype,Gh=function(e,t,n,r){var i=Wh(e),o=!qh((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),a=o&&!qh((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Fh]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=Bh(/./[i]),c=t(i,""[e],(function(e,t,n,r,i){var a=Bh(e),c=t.exec;return c===Uh||c===zh.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Hh(String.prototype,e,c[0]),Hh(zh,i,c[1])}r&&Jh(zh[i],"sham",!0)},Xh=ou.charAt,$h=function(e,t,n){return t+(n?Xh(e,t).length:1)},Qh=l,Yh=b,Zh=Math.floor,ev=Qh("".charAt),tv=Qh("".replace),nv=Qh("".slice),rv=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iv=/\$([$&'`]|\d{1,2})/g,ov=de,av=ue,sv=M,cv=Jn,uv=Kh,lv=TypeError,fv=function(e,t){var n=e.exec;if(sv(n)){var r=ov(n,e,t);return null!==r&&av(r),r}if("RegExp"===cv(e))return ov(uv,e,t);throw new lv("RegExp#exec called on incompatible receiver")},dv=yl,pv=de,gv=l,hv=Gh,vv=r,bv=ue,mv=M,yv=f,wv=mr,Sv=xr,jv=$c,Pv=g,Ov=$h,xv=qe,kv=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,c=iv;return void 0!==i&&(i=Yh(i),c=rv),tv(o,c,(function(o,c){var u;switch(ev(c,0)){case"$":return"$";case"&":return e;case"`":return nv(t,0,n);case"'":return nv(t,a);case"<":u=i[nv(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var f=Zh(l/10);return 0===f?o:f<=s?void 0===r[f-1]?ev(c,1):r[f-1]+ev(c,1):o}u=r[l-1]}return void 0===u?"":u}))},_v=fv,Iv=lt("replace"),Tv=Math.max,Rv=Math.min,Mv=gv([].concat),Av=gv([].push),Ev=gv("".indexOf),Dv=gv("".slice),Nv="$0"==="a".replace(/./,"$0"),Cv=!!/./[Iv]&&""===/./[Iv]("a","$0");hv("replace",(function(e,t,n){var r=Cv?"$":"$0";return[function(e,n){var r=Pv(this),i=yv(e)?void 0:xv(e,Iv);return i?pv(i,e,r,n):pv(t,jv(r),e,n)},function(e,i){var o=bv(this),a=jv(e);if("string"==typeof i&&-1===Ev(i,r)&&-1===Ev(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var c=mv(i);c||(i=jv(i));var u,l=o.global;l&&(u=o.unicode,o.lastIndex=0);for(var f,d=[];null!==(f=_v(o,a))&&(Av(d,f),l);){""===jv(f[0])&&(o.lastIndex=Ov(a,Sv(o.lastIndex),u))}for(var p,g="",h=0,v=0;v<d.length;v++){for(var b,m=jv((f=d[v])[0]),y=Tv(Rv(wv(f.index),a.length),0),w=[],S=1;S<f.length;S++)Av(w,void 0===(p=f[S])?p:String(p));var j=f.groups;if(c){var P=Mv([m],w,y,a);void 0!==j&&Av(P,j),b=jv(dv(i,void 0,P))}else b=kv(m,a,y,w,j,i);y>=h&&(g+=Dv(a,h,y)+b,h=y+m.length)}return g+Dv(a,h)}]}),!!vv((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Nv||Cv);var Vv=k.PROPER,Lv=r,Kv=zp,Bv=tg.trim;hi({target:"String",proto:!0,forced:function(e){return Lv((function(){return!!Kv[e]()||"โ€‹ย…แ Ž"!=="โ€‹ย…แ Ž"[e]()||Vv&&Kv[e].name!==e}))}("trim")},{trim:function(){return Bv(this)}});var Hv=function(){return Hv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Hv.apply(this,arguments)};function Uv(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var qv=de,Wv=w,Jv=ve,Fv=ch,zv=RegExp.prototype,Gv=k.PROPER,Xv=pr,$v=ue,Qv=$c,Yv=r,Zv=function(e){var t=e.flags;return void 0!==t||"flags"in zv||Wv(e,"flags")||!Jv(zv,e)?t:qv(Fv,e)},eb="toString",tb=RegExp.prototype[eb],nb=Yv((function(){return"/a/b"!==tb.call({source:"a",flags:"b"})})),rb=Gv&&tb.name!==eb;(nb||rb)&&Xv(RegExp.prototype,eb,(function(){var e=$v(this);return"/"+Qv(e.source)+"/"+Qv(Zv(e))}),{unsafe:!0});var ib=de,ob=ue,ab=f,sb=xr,cb=$c,ub=g,lb=qe,fb=$h,db=fv;Gh("match",(function(e,t,n){return[function(t){var n=ub(this),r=ab(t)?void 0:lb(t,e);return r?ib(r,t,n):new RegExp(t)[e](cb(n))},function(e){var r=ob(this),i=cb(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return db(r,i);var a=r.unicode;r.lastIndex=0;for(var s,c=[],u=0;null!==(s=db(r,i));){var l=cb(s[0]);c[u]=l,""===l&&(r.lastIndex=fb(i,sb(r.lastIndex),a)),u++}return 0===u?null:c}]})),hi({target:"Array",stat:!0},{isArray:kp});var pb=Hp.some;hi({target:"Array",proto:!0,forced:!hg("some")},{some:function(e){return pb(this,e,arguments.length>1?arguments[1]:void 0)}});var gb=[{system:"windows",systemRegexp:/windows|win32|win64|wow32|wow64/g,systemVersionArr:[{systemVersion:"2000",systemVersionRegexp:/windows nt 5.0|windows 2000/g},{systemVersion:"xp",systemVersionRegexp:/windows nt 5.1|windows xp/g},{systemVersion:"2003",systemVersionRegexp:/windows nt 5.2|windows 2003/g},{systemVersion:"vista",systemVersionRegexp:/windows nt 6.0|windows vista/g},{systemVersion:"7",systemVersionRegexp:/windows nt 6.1|windows 7/g},{systemVersion:"8",systemVersionRegexp:/windows nt 6.2|windows 8/g},{systemVersion:"8.1",systemVersionRegexp:/windows nt 6.3|windows 8.1/g},{systemVersion:"10",systemVersionRegexp:/windows nt 10.0|windows 10/g}]},{system:"mac",systemRegexp:/macintosh|macintel/g,systemVersionRegexp:/os x [\d._]+/g},{system:"linux",systemRegexp:/x11/g},{system:"ios",systemRegexp:/iphone|ipad|ipod|ios|iwatch/g,systemVersionRegexp:/os [\d._]+/g},{system:"android",systemRegexp:/android|adr/g,systemVersionRegexp:/android [\d._]+|adr [\d._]+/g}],hb=[{engine:"webkit",engineRegexp:/applewebkit/g,engineVersionRegexp:/applewebkit\/[\d._]+/g},{engine:"gecko",engineRegexp:/gecko/g,engineVersionRegexp:/gecko\/[\d._]+/g},{engine:"presto",engineRegexp:/presto/g,engineVersionRegexp:/presto\/[\d._]+/g},{engine:"trident",engineRegexp:/trident/g,engineVersionRegexp:/trident\/[\d._]+/g},{engine:"blink",engineRegexp:/blink/g,engineVersionRegexp:/blink\/[\d._]+/g}],vb=[{supporter:"chrome",supporterRegexp:/chrome/g,supporterVersionRegexp:/chrome\/[\d._]+/g},{supporter:"safari",supporterRegexp:/safari/g,supporterVersionRegexp:/version\/[\d._]+/g},{supporter:"firefox",supporterRegexp:/firefox/g,supporterVersionRegexp:/firefox\/[\d._]+/g},{supporter:"opera",supporterRegexp:/opera/g,supporterVersionRegexp:/opera\/[\d._]+/g},{supporter:"ie",supporterRegexp:/msie|trident/g,supporterVersionRegexp:/msie [\d._]+|rv:[\d._]+/g},{supporter:"edge",supporterRegexp:/edge/g,supporterVersionRegexp:/edge\/[\d._]+/g}],bb=[{shell:"wechat-miniprogram",shellRegexp:/(?=.*micromessenger)(?=.*miniprogram)/g,shellValueRegexp:/miniprogram\/[\d._]+/g},{shell:"wechat",shellRegexp:/micromessenger/g,shellValueRegexp:/micromessenger\/[\d._]+/g},{shell:"alipay-miniprogram",shellRegexp:/(?=.*aliapp)(?=.*miniprogram)/g,shellValueRegexp:/miniprogram\/[\d._]+/g},{shell:"alipay",shellRegexp:/aliapp/g,shellValueRegexp:/aliapp\(AP\/([\d.]+)\)/g},{shell:"qq",shellRegexp:/qqbrowser/g,shellValueRegexp:/qqbrowser\/([\d.]+)*/g},{shell:"uc",shellRegexp:/ucbrowser/g,shellValueRegexp:/ucbrowser\/([\d.]+)*/g}];var mb,yb=function(e){for(var t=navigator.userAgent.toLowerCase(),n=function(e){return e.test(t)},r=function(e){return(t.match(e)||"").toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},i="unknown",o="unknown",a="unknown",s="unknown",c="unknown",u="unknown",l="unknown",f=[],d=0;d<gb.length;d++){var p=gb[d];if(n(p.systemRegexp)){if(p.systemVersionRegexp&&(o=r(p.systemVersionRegexp)),!o&&Array.isArray(p.systemVersionArr)&&p.systemVersionArr.length)for(var g=0;g<p.systemVersionArr.length;g++){var h=p.systemVersionArr[g];if(n(h.systemVersionRegexp)){o=h.systemVersion;break}}i=p.system;break}}for("windows"===i||"mac"===i||"linux"===i?a="desktop":("ios"===i||"android"===i||n(/mobile/g))&&(a="mobile"),d=0;d<hb.length;d++){var v=hb[d];if(n(v.engineRegexp)){s=v.engine,c=r(v.engineVersionRegexp);break}}for(d=0;d<vb.length;d++){var b=vb[d];if(n(b.supporterRegexp)){u=b.supporter,l=r(b.supporterVersionRegexp);break}}var m=Uv(Uv([],bb,!0),(null==e?void 0:e.shellArr)||[],!0);for(d=0;d<m.length;d++){var y=m[d];if(n(y.shellRegexp)){var w={shell:y.shell,value:r(y.shellValueRegexp)};f.push(w)}}return{system:i,systemVersion:o,platform:a,engine:s,engineVersion:c,supporter:u,supporterVersion:l,shell:"unknown",shellVersion:"unknown",shellArr:m,isShell:function(e){return f.some((function(t){return t.shell===e}))},getShell:function(e){var t;return null===(t=f.find((function(t){return t.shell===e})))||void 0===t?void 0:t.value}}}({shellArr:[{shell:"airmart",shellRegexp:/airmart/g,shellValueRegexp:/airmart\/[\d._]+/g},{shell:"channel",shellRegexp:/channel/g,shellValueRegexp:/channel=[\d._]+/g}]}),wb={exports:{}};mb="object"==typeof window&&window,wb.exports=function(e,t){var n,r,i,o,a,s,c,u,l,f,d,p,g,h,v,b,m,y,w,S,j,P;if(e)return e.jWeixin?e.jWeixin:(n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=function(){var e,t={};for(e in n)t[n[e]]=e;return t}(),i=e.document,o=i.title,a=navigator.userAgent.toLowerCase(),p=navigator.platform.toLowerCase(),s=!(!p.match("mac")&&!p.match("win")),c=-1!=a.indexOf("wxdebugger"),u=-1!=a.indexOf("micromessenger"),l=-1!=a.indexOf("android"),f=-1!=a.indexOf("iphone")||-1!=a.indexOf("ipad"),d=(p=a.match(/micromessenger\/(\d+\.\d+\.\d+)/)||a.match(/micromessenger\/(\d+\.\d+)/))?p[1]:"",g={initStartTime:A(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:l?2:-1,clientVersion:d,url:encodeURIComponent(location.href)},v={},b={_completes:[]},m={state:0,data:{}},E((function(){g.initEndTime=A()})),y=!1,w=[],S={config:function(t){R("config",v=t);var r=!1!==v.check;E((function(){if(r)O(n.config,{verifyJsApiList:T(v.jsApiList),verifyOpenTagList:T(v.openTagList)},(b._complete=function(e){g.preVerifyEndTime=A(),m.state=1,m.data=e},b.success=function(e){h.isPreVerifyOk=0},b.fail=function(e){b._fail?b._fail(e):m.state=-1},(o=b._completes).push((function(){M()})),b.complete=function(e){for(var t=0,n=o.length;t<n;++t)o[t]();b._completes=[]},b)),g.preVerifyStartTime=A();else{m.state=1;for(var e=b._completes,t=0,i=e.length;t<i;++t)e[t]();b._completes=[]}var o})),S.invoke||(S.invoke=function(t,n,r){e.WeixinJSBridge&&WeixinJSBridge.invoke(t,k(n),r)},S.on=function(t,n){e.WeixinJSBridge&&WeixinJSBridge.on(t,n)})},ready:function(e){(0!=m.state||(b._completes.push(e),!u&&v.debug))&&e()},error:function(e){d<"6.0.2"||(-1==m.state?e(m.data):b._fail=e)},checkJsApi:function(e){O("checkJsApi",{jsApiList:T(e.jsApiList)},(e._complete=function(e){l&&(n=e.checkResult)&&(e.checkResult=JSON.parse(n));var t,n=e,i=n.checkResult;for(t in i){var o=r[t];o&&(i[o]=i[t],delete i[t])}},e))},onMenuShareTimeline:function(e){x(n.onMenuShareTimeline,{complete:function(){O("shareTimeline",{title:e.title||o,desc:e.title||o,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(e){x(n.onMenuShareAppMessage,{complete:function(t){"favorite"===t.scene?O("sendAppMessage",{title:e.title||o,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""}):O("sendAppMessage",{title:e.title||o,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareQQ:function(e){x(n.onMenuShareQQ,{complete:function(){O("shareQQ",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){x(n.onMenuShareWeibo,{complete:function(){O("shareWeiboApp",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){x(n.onMenuShareQZone,{complete:function(){O("shareQZone",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},updateTimelineShareData:function(e){O("updateTimelineShareData",{title:e.title,link:e.link,imgUrl:e.imgUrl},e)},updateAppMessageShareData:function(e){O("updateAppMessageShareData",{title:e.title,desc:e.desc,link:e.link,imgUrl:e.imgUrl},e)},startRecord:function(e){O("startRecord",{},e)},stopRecord:function(e){O("stopRecord",{},e)},onVoiceRecordEnd:function(e){x("onVoiceRecordEnd",e)},playVoice:function(e){O("playVoice",{localId:e.localId},e)},pauseVoice:function(e){O("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){O("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){x("onVoicePlayEnd",e)},uploadVoice:function(e){O("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){O("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){O("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){O("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(l){var t=e.localIds;try{t&&(e.localIds=JSON.parse(t))}catch(e){}}},e))},getLocation:function(e){e=e||{},O(n.getLocation,{type:e.type||"wgs84"},(e._complete=function(e){delete e.type},e))},previewImage:function(e){O(n.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){O("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){O("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===y?(y=!0,O("getLocalImgData",{localId:e.localId},(e._complete=function(e){var t;y=!1,0<w.length&&(t=w.shift(),wx.getLocalImgData(t))},e))):w.push(e)},getNetworkType:function(e){O("getNetworkType",{},(e._complete=function(e){var t=e,n=(e=t.errMsg,t.errMsg="getNetworkType:ok",t.subtype);if(delete t.subtype,n)t.networkType=n;else{n=e.indexOf(":");var r=e.substring(n+1);switch(r){case"wifi":case"edge":case"wwan":t.networkType=r;break;default:t.errMsg="getNetworkType:fail"}}},e))},openLocation:function(e){O("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)},hideOptionMenu:function(e){O("hideOptionMenu",{},e)},showOptionMenu:function(e){O("showOptionMenu",{},e)},closeWindow:function(e){O("closeWindow",{},e=e||{})},hideMenuItems:function(e){O("hideMenuItems",{menuList:e.menuList},e)},showMenuItems:function(e){O("showMenuItems",{menuList:e.menuList},e)},hideAllNonBaseMenuItem:function(e){O("hideAllNonBaseMenuItem",{},e)},showAllNonBaseMenuItem:function(e){O("showAllNonBaseMenuItem",{},e)},scanQRCode:function(e){O("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){var t;f&&(t=e.resultStr)&&(t=JSON.parse(t),e.resultStr=t&&t.scan_code&&t.scan_code.scan_result)},e))},openAddress:function(e){O(n.openAddress,{},(e._complete=function(e){e.postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo},e))},openProductSpecificView:function(e){O(n.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)},addCard:function(e){for(var t=e.cardList,r=[],i=0,o=t.length;i<o;++i){var a={card_id:(a=t[i]).cardId,card_ext:a.cardExt};r.push(a)}O(n.addCard,{card_list:r},(e._complete=function(e){if(t=e.card_list){for(var t,n=0,r=(t=JSON.parse(t)).length;n<r;++n){var i=t[n];i.cardId=i.card_id,i.cardExt=i.card_ext,i.isSuccess=!!i.is_succ,delete i.card_id,delete i.card_ext,delete i.is_succ}e.cardList=t,delete e.card_list}},e))},chooseCard:function(e){O("chooseCard",{app_id:v.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))},openCard:function(e){for(var t=e.cardList,r=[],i=0,o=t.length;i<o;++i){var a={card_id:(a=t[i]).cardId,code:a.code};r.push(a)}O(n.openCard,{card_list:r},e)},consumeAndShareCard:function(e){O(n.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)},chooseWXPay:function(e){O(n.chooseWXPay,_(e),e),M({jsApiName:"chooseWXPay"})},openEnterpriseRedPacket:function(e){O(n.openEnterpriseRedPacket,_(e),e)},startSearchBeacons:function(e){O(n.startSearchBeacons,{ticket:e.ticket},e)},stopSearchBeacons:function(e){O(n.stopSearchBeacons,{},e)},onSearchBeacons:function(e){x(n.onSearchBeacons,e)},openEnterpriseChat:function(e){O("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)},launchMiniProgram:function(e){O("launchMiniProgram",{targetAppId:e.targetAppId,path:function(e){var t;if("string"==typeof e&&0<e.length)return t=e.split("?")[0],t+=".html",void 0!==(e=e.split("?")[1])?t+"?"+e:t}(e.path),envVersion:e.envVersion},e)},openBusinessView:function(e){O("openBusinessView",{businessType:e.businessType,queryString:e.queryString||"",envVersion:e.envVersion},(e._complete=function(e){if(l){var t=e.extraData;if(t)try{e.extraData=JSON.parse(t)}catch(t){e.extraData={}}}},e))},miniProgram:{navigateBack:function(e){e=e||{},E((function(){O("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:e.delta||1}},e)}))},navigateTo:function(e){E((function(){O("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:e.url}},e)}))},redirectTo:function(e){E((function(){O("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:e.url}},e)}))},switchTab:function(e){E((function(){O("invokeMiniProgramAPI",{name:"switchTab",arg:{url:e.url}},e)}))},reLaunch:function(e){E((function(){O("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:e.url}},e)}))},postMessage:function(e){E((function(){O("invokeMiniProgramAPI",{name:"postMessage",arg:e.data||{}},e)}))},getEnv:function(t){E((function(){t({miniprogram:"miniprogram"===e.__wxjs_environment})}))}}},j=1,P={},i.addEventListener("error",(function(e){var t,n,r;l||(r=(t=e.target).tagName,n=t.src,"IMG"!=r&&"VIDEO"!=r&&"AUDIO"!=r&&"SOURCE"!=r)||-1!=n.indexOf("wxlocalresource://")&&(e.preventDefault(),e.stopPropagation(),(r=t["wx-id"])||(r=j++,t["wx-id"]=r),P[r]||(P[r]=!0,wx.ready((function(){wx.getLocalImgData({localId:n,success:function(e){t.src=e.localData}})}))))}),!0),i.addEventListener("load",(function(e){var t;l||(t=(e=e.target).tagName,e.src,"IMG"!=t&&"VIDEO"!=t&&"AUDIO"!=t&&"SOURCE"!=t)||(t=e["wx-id"])&&(P[t]=!1)}),!0),t&&(e.wx=e.jWeixin=S),S);function O(t,n,r){e.WeixinJSBridge?WeixinJSBridge.invoke(t,k(n),(function(e){I(t,e,r)})):R(t,r)}function x(t,n,r){e.WeixinJSBridge?WeixinJSBridge.on(t,(function(e){r&&r.trigger&&r.trigger(e),I(t,e,n)})):R(t,r||n)}function k(e){return(e=e||{}).appId=v.appId,e.verifyAppId=v.appId,e.verifySignType="sha1",e.verifyTimestamp=v.timestamp+"",e.verifyNonceStr=v.nonceStr,e.verifySignature=v.signature,e}function _(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function I(e,t,n){"openEnterpriseChat"!=e&&"openBusinessView"!==e||(t.errCode=t.err_code),delete t.err_code,delete t.err_desc,delete t.err_detail;var i=t.errMsg;switch(i||(i=t.err_msg,delete t.err_msg,i=function(e,t){var n,i=r[e];return i&&(e=i),i="ok",t&&(n=t.indexOf(":"),"access denied"!=(i=(i=(i=-1!=(i=-1!=(i="failed"==(i="confirm"==(i=t.substring(n+1))?"ok":i)?"fail":i).indexOf("failed_")?i.substring(7):i).indexOf("fail_")?i.substring(5):i).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=i||(i="permission denied"),""==(i="config"==e&&"function not exist"==i?"ok":i))&&(i="fail"),e+":"+i}(e,i),t.errMsg=i),(n=n||{})._complete&&(n._complete(t),delete n._complete),i=t.errMsg||"",v.debug&&!n.isInnerInvoke&&alert(JSON.stringify(t)),e=i.indexOf(":"),i.substring(e+1)){case"ok":n.success&&n.success(t);break;case"cancel":n.cancel&&n.cancel(t);break;default:n.fail&&n.fail(t)}n.complete&&n.complete(t)}function T(e){if(e){for(var t=0,r=e.length;t<r;++t){var i=e[t];(i=n[i])&&(e[t]=i)}return e}}function R(e,t){var n;!v.debug||t&&t.isInnerInvoke||((n=r[e])&&(e=n),t&&t._complete&&delete t._complete,console.log('"'+e+'",',t||""))}function M(e){var t;s||c||v.debug||d<"6.0.2"||h.systemType<0||(t=new Image,h.appId=v.appId,h.initTime=g.initEndTime-g.initStartTime,h.preVerifyTime=g.preVerifyEndTime-g.preVerifyStartTime,S.getNetworkType({isInnerInvoke:!0,success:function(n){h.networkType=n.networkType,n="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url+"&jsapi_name="+(e?e.jsApiName:""),t.src=n}}))}function A(){return(new Date).getTime()}function E(t){u&&(e.WeixinJSBridge?t():i.addEventListener&&i.addEventListener("WeixinJSBridgeReady",t,!1))}console.warn("can't use weixin-js-sdk in server side")}(mb);var Sb=n(wb.exports),jb={default:t,call:function(e,t,n){var r="";"function"==typeof t&&(n=t,t={});var i={data:void 0===t?null:t};if("function"==typeof n){var o="dscb"+window.dscb++;window[o]=n,i._dscbstub=o}return i=JSON.stringify(i),window._dsbridge?r=_dsbridge.call(e,i):(window._dswk||-1!=navigator.userAgent.indexOf("_dsbridge"))&&(r=prompt("_dsbridge="+e,i)),JSON.parse(r||"{}").data},register:function(e,t,n){var r=n?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout((function(){jb.call("_dsb.dsinit")}),0)),"object"==typeof t?r._obs[e]=t:r[e]=t},registerAsyn:function(e,t){this.register(e,t,!0)},hasNativeMethod:function(e,t){return this.call("_dsb.hasNativeMethod",{name:e,type:t||"all"})},disableJavascriptDialogBlock:function(e){this.call("_dsb.disableJavascriptDialogBlock",{disable:!1!==e})}};!function(){if(!window._dsf){var e={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:jb,close:function(){jb.call("_dsb.closePage")},_handleMessageFromNative:function(e){var t=JSON.parse(e.data),n={id:e.callbackId,complete:!0},r=this._dsf[e.method],i=this._dsaf[e.method],o=function(e,r){n.data=e.apply(r,t),jb.call("_dsb.returnValue",n)},a=function(e,r){t.push((function(e,t){n.data=e,n.complete=!1!==t,jb.call("_dsb.returnValue",n)})),e.apply(r,t)};if(r)o(r,this._dsf);else if(i)a(i,this._dsaf);else{var s=e.method.split(".");if(s.length<2)return;var c=s.pop(),u=s.join("."),l=this._dsf._obs,f=l[u]||{},d=f[c];if(d&&"function"==typeof d)return void o(d,f);if((d=(f=(l=this._dsaf._obs)[u]||{})[c])&&"function"==typeof d)return void a(d,f)}}};for(var t in e)window[t]=e[t];jb.register("_hasJavascriptMethod",(function(e,t){var n=e.split(".");if(n.length<2)return!(!_dsf[n]&&!_dsaf[n]);e=n.pop();var r=n.join("."),i=_dsf._obs[r]||_dsaf._obs[r];return i&&!!i[e]}))}}();var Pb=n(jb),Ob=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isApp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isMiniProgram",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isAlipayMini",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isKwaiH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIframe",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIos",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isCanShowNav",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"device",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"channel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isfull",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isOldApp",{enumerable:!0,configurable:!0,writable:!0,value:!0});var t=Gg.get("device")||"",n=Gg.get("isfull")||"",r=yb.getShell("airmart")||Gg.get("version")||"",i=yb.getShell("channel")||Gg.get("channel")||"";return this.options=e,this.name=e.name,this.isApp=yb.isShell("airmart")||"ios"===t||"android"===t,this.isMiniProgram=yb.isShell("wechat-miniprogram")||"wx"===t,this.isH5="h5"===t,this.isKwaiH5="kwai_h5"===t,this.isIframe="h5"===t&&window.top!==window.self,this.isIos="ios"===yb.system||"ios"===t,this.device=this.isMiniProgram?"wx":this.isApp?yb.system:"",this.isCanShowNav=this.isApp&&Bg(r,"2.5.0")>=0&&n,this.version=r,this.channel=i,this.isfull=n,this}return Object.defineProperty(e.prototype,"detection",{get:function(){return console.log("๐Ÿš€ this.device",this.device),!!this.device||(console.error("่ฏทๅœจๅ…ƒๆฐ—้ฉฌ็‰นappไธญ่ฐƒ็”จ"),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getOjbUrlFn",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!e)return"";if(this.options.handleOjbUrlFn)return this.options.handleOjbUrlFn(e);var t=e.split("?")[0],n=Hg(e),r=(this.options.ojbRouter||[]).find((function(e){return-1!==e.key.indexOf(t)}));if("ojb://call_wechat_path"===(null==r?void 0:r.key)&&n.appid!==this.options.miniProgramLogin)return this.getOjbUrlFn("ojb://call_mini_program?".concat(e.split("?")[1]));if("[event]"===(null==r?void 0:r.val))return"";var i=(null==r?void 0:r.val)||"";return i.replace(/\{(.*?)}/g,(function(e,t){return n[t.trim()]||""})),i=i.replace(/{.*}/g,""),"ojb://call_wechat_path"===(null==r?void 0:r.key)?decodeURIComponent(i):i}}),Object.defineProperty(e.prototype,"getToken",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;if(console.log("juboSDK.getToken"),!this.detection)return"";var t=this.device,n="";try{"android"===t?n=window.jubo.getToken(""):"ios"===t&&(n=(null===(e=window.getToken)||void 0===e?void 0:e.call(window))||"")}catch(e){console.error("juboSDK.getToken error",e)}return n}}),Object.defineProperty(e.prototype,"goLogin",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.goLogin"),new Promise((function(t,n){if(!e.detection)return n();var r=e.device;try{switch(r){case"android":window.jubo.goLogin();break;case"ios":window.webkit.messageHandlers.juboGoLogin.postMessage({a:1});break;case"wx":Sb.miniProgram.navigateTo({url:"/pages/login/index"})}t("")}catch(e){console.log("๐Ÿš€ ~ juboSDK.goLogin",e)}}))}}),Object.defineProperty(e.prototype,"setMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.isMiniProgram?Sb.miniProgram.postMessage({message:e}):this.isAlipayMini&&my.postMessage({message:e})}}),Object.defineProperty(e.prototype,"goRoute",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.goRoute",e),this.detection){var n=this.device;try{switch(n){case"android":window.jubo.goRoute(e);break;case"ios":window.webkit.messageHandlers.juboGoRoute.postMessage({route:e});break;case"wx":var r=this.getOjbUrlFn(e);if(r){var i=(this.options.miniProgramTabBar||["/pages/home/index","/pages/boxHome/index","/pages/csgoPage/index","/pages/mine/index","/pages/ipHome/index"]).find((function(e){return-1!==r.indexOf(e)}));i?Sb.miniProgram.switchTab({url:r}):t?Sb.miniProgram.redirectTo({url:r}):Sb.miniProgram.navigateTo({url:r})}}}catch(e){console.log("๐Ÿš€ ~ juboSDK.goRoute",e)}}}}),Object.defineProperty(e.prototype,"shareMiniProgram",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.shareH5",e),this.detection){var n={event:"NewUserInvite",data:{page_url:e.webpage,activity_id:e.activity_id,activity_name:e.activity_name,product_id:e.product_id,product_name:e.product_name}},r=this.device;try{switch(r){case"android":var i=Hv(Hv(Hv({},e),n),{trackData:t});window.jubo.shareH5(JSON.stringify(i));break;case"ios":window.webkit.messageHandlers.juboShareH5.postMessage(Hv(Hv(Hv({},e),n),{trackData:t}));break;case"wx":Sb.miniProgram.postMessage({data:{shareData:{title:e.title,path:e.webpage,imageUrl:e.thumbImage,base64:e.base64,saInfo:n,trackData:t,shareOptions:e.shareOptions||{}}}})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareH5",e)}}}}),Object.defineProperty(e.prototype,"postReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:515 ~ postReport",e,t)}}),Object.defineProperty(e.prototype,"sensorsReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:524 ~ sensorsReport",e,t)}}),Object.defineProperty(e.prototype,"shareWXImg",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Hv({type:0},e);if(console.log("juboSDK.shareWXImg",t),this.detection){var n=this.device;try{switch(n){case"android":window.jubo.shareWXImg(JSON.stringify(t));break;case"ios":window.webkit.messageHandlers.juboShareWXImg.postMessage(t)}}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareWXiMG",e)}}}}),Object.defineProperty(e.prototype,"setNavTitle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:270 ~ OldJuboSdk ~ title:",e)}}),Object.defineProperty(e.prototype,"writeToClipboard",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:270 ~ OldJuboSdk ~ title:",e)}}),Object.defineProperty(e.prototype,"hideNavBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.hiddenSystemStatus"),this.detection){var t=this.device;try{switch(t){case"android":e?window.jubo.hiddenSystemStatus():window.jubo.showSystemStatus();break;case"ios":e?window.webkit.messageHandlers.juboHiddenSystemStatus.postMessage({a:1}):window.webkit.messageHandlers.juboShowSystemStatus.postMessage({a:1})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.hiddenSystemStatus",e)}}}}),Object.defineProperty(e.prototype,"setOrientation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.webPageSetLandscape"),this.detection){var t=this.device;try{switch(t){case"android":window.jubo.webPageSetLandscape(JSON.stringify({isPortrait:e}));break;case"ios":window.webkit.messageHandlers.juboWebPageSetLandscape.postMessage({isPortrait:e})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.webPageSetLandscape",e)}}}}),Object.defineProperty(e.prototype,"toPayPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.onPay"),new Promise((function(n,r){if(!t.detection)return r();var i=e.activityId,o=e.amount,a=e.success,s=e.fail,c=t.device;try{switch(c){case"android":window.jubo.onPay(i,o,a,s);break;case"ios":window.webkit.messageHandlers.juboOnPay.postMessage(e);break;case"wx":Sb.miniProgram.navigateTo({url:"/pages/webPay/index?activity_id=".concat(i,"&price=").concat(o,"&success=").concat(a,"&fail=").concat(s)})}n("")}catch(e){console.log("๐Ÿš€ ~ juboSDK.onPay",e),r(e)}}))}}),Object.defineProperty(e.prototype,"hideStatusBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("๐Ÿš€ ~ file: OldJuboSdk.ts:365 ~ OldJuboSdk ~ hideStatusBar ~ isHide:",e)}}),Object.defineProperty(e.prototype,"quit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;if(console.log("juboSDK.quit"),this.detection){var t=this.device;try{switch(t){case"android":null===(e=null===window||void 0===window?void 0:window.jubo)||void 0===e||e.quit();break;case"ios":window.webkit.messageHandlers.juboQuit.postMessage({a:1})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.quit",e)}}}}),Object.defineProperty(e.prototype,"goBack",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,n,r,i;if(console.log("juboSDK.goBack"),this.detection){var o=this.device;try{switch(o){case"android":null===(e=null===window||void 0===window?void 0:window.jubo)||void 0===e||e.goBack();break;case"ios":null===(i=null===(r=null===(n=null===(t=null===window||void 0===window?void 0:window.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.juboGoBack)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,{a:1})}}catch(e){console.log("๐Ÿš€ ~ juboSDK.goBack",e)}}}}),Object.defineProperty(e.prototype,"shareHtml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n,r,i,o,a;console.log("juboSDK.shareHtml");var s=Hv({type:0},e);if(console.log("juboSDK.shareHtml",s),this.detection){var c=this.device;try{switch(c){case"android":null===(n=null===(t=null===window||void 0===window?void 0:window.jubo)||void 0===t?void 0:t.shareWXHtml)||void 0===n||n.call(t,JSON.stringify(s));break;case"ios":null===(a=null===(o=null===(i=null===(r=null===window||void 0===window?void 0:window.webkit)||void 0===r?void 0:r.messageHandlers)||void 0===i?void 0:i.juboShareWXHtml)||void 0===o?void 0:o.postMessage)||void 0===a||a.call(o,s)}}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareHtml",e)}}}}),Object.defineProperty(e.prototype,"checkAppNotice",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkAppNotice"),new Promise((function(t,n){if(!e.detection)return n();var r=e.device;try{switch(r){case"android":window.jubo.checkPushNotificationEnable();break;case"ios":window.webkit.messageHandlers.juboCheckPushNotificationEnable.postMessage({a:1})}t(!0)}catch(e){console.log("๐Ÿš€ ~ juboSDK.checkAppNotice",e),n(e)}}))}}),Object.defineProperty(e.prototype,"checkNetStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkNetStatus"),new Promise((function(t,n){var r,i;if(!e.detection&&e.isMiniProgram)return n();var o=e.device;try{var a=!1;if("android"===o?a=window.jubo.isNetworkConnected():"ios"===o&&(a=(null===(r=window.isNetworkConnected)||void 0===r?void 0:r.call(window))||!1),a){var s=!1;"android"===o?s=window.jubo.isWifiConnected():"ios"===o&&(s=(null===(i=window.isWifiConnected)||void 0===i?void 0:i.call(window))||!1),t(s?2:1)}else t(0)}catch(e){console.error("juboSDK.checkNetStatus error",e),n()}}))}}),Object.defineProperty(e.prototype,"hcAuthorization",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.hcAuthorization"),new Promise((function(n,r){var i,o,a,s,c,u;if(!t.detection&&t.isMiniProgram)return r();var l=t.device;try{switch(l){case"android":null===(o=null===(i=null===window||void 0===window?void 0:window.jubo)||void 0===i?void 0:i.authorizationForH5)||void 0===o||o.call(i,JSON.stringify(e));break;case"ios":null===(u=null===(c=null===(s=null===(a=null===window||void 0===window?void 0:window.webkit)||void 0===a?void 0:a.messageHandlers)||void 0===s?void 0:s.juboAuthorizationForH5)||void 0===c?void 0:c.postMessage)||void 0===u||u.call(c,e)}n({isSuccess:!1})}catch(e){console.error("juboSDK.hcAuthorization error",e),r()}}))}}),Object.defineProperty(e.prototype,"getStatusBarHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.getStatusBarHeight"),!this.detection)return 0;var e=this.device,t=0;try{"ios"===e&&(t=window.screen.height>=812&&window.devicePixelRatio>=2?44:20),"android"===e&&(t=window.jubo.getWindowTopOffset())}catch(e){console.log("๐Ÿš€ ~ juboSDK.getStatusBarHeight",e)}return t}}),Object.defineProperty(e.prototype,"goHome",{enumerable:!1,configurable:!0,writable:!0,value:function(){console.log("juboSDK.goHome"),this.goRoute(this.options.appHome||"ojb://ip_home")}}),e}();window.JuboSdk=Ob;var xb="/pages/login/index",kb=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isApp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isMiniProgram",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isAlipayMini",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isKwaiH5",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIframe",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isIos",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isCanShowNav",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"device",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"channel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isfull",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isOldApp",{enumerable:!0,configurable:!0,writable:!0,value:!1});var t=Gg.get("device")||"",n=Gg.get("isfull")||"",r=yb.getShell("airmart")||Gg.get("version")||"",i=yb.getShell("channel")||Gg.get("channel")||"";if(this.options=e,this.name=e.name,this.isApp=yb.isShell("airmart")||"ios"===t||"android"===t,this.isMiniProgram=yb.isShell("wechat-miniprogram")||"wx"===t,this.isAlipayMini=yb.isShell("alipay-miniprogram")||"alipay"===t,this.isH5="h5"===t,this.isKwaiH5="kwai_h5"===t,this.isIframe="h5"===t&&window.top!==window.self,this.isIos="ios"===yb.system||"ios"===t,this.device="h5"===t?"h5":this.isAlipayMini?"alipay":this.isMiniProgram?"wx":this.isApp?yb.system:t,this.isCanShowNav=this.isApp&&!0,this.version=r,this.channel=i,this.isfull=n,this.isOldApp=this.isApp&&Bg(r,this.options.oldAppVersion)<=0,this.isOldApp)return new Ob(e);if(this.isAlipayMini){var o=document.createElement("script");o.type="text/javascript",o.src="https://appx/web-view.min.js ",document.body.appendChild(o)}return this}return Object.defineProperty(e.prototype,"detection",{get:function(){return console.log("๐Ÿš€ this.device",this.device),!!this.device||(console.error("่ฏทๅœจๅ…ƒๆฐ—้ฉฌ็‰นappไธญ่ฐƒ็”จ"),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getOjbUrlFn",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!e)return"";if(this.options.handleOjbUrlFn)return this.options.handleOjbUrlFn(e);var t=e.split("?")[0],n=Hg(e),r=(this.options.ojbRouter||[]).find((function(e){return-1!==e.key.indexOf(t)}));if("ojb://call_wechat_path"===(null==r?void 0:r.key)&&n.appid!==this.options.miniProgramLogin)return this.getOjbUrlFn("ojb://call_mini_program?".concat(e.split("?")[1]));if("[event]"===(null==r?void 0:r.val))return"";var i=(null==r?void 0:r.val)||"";return i=(i=i.replace(/\{(.*?)}/g,(function(e,t){return n[t.trim()]||""}))).replace(/{.*}/g,""),"ojb://call_wechat_path"===(null==r?void 0:r.key)?decodeURIComponent(i):i}}),Object.defineProperty(e.prototype,"getToken",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.getToken"),!this.detection&&this.isMiniProgram)return"";try{var e=Pb.call("getToken",{});return"string"==typeof e&&(e=JSON.parse(e)),null==e?void 0:e.token}catch(e){console.error("juboSDK.getToken error",e)}return""}}),Object.defineProperty(e.prototype,"goLogin",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.goLogin"),new Promise((function(t,n){if(!e.detection)return n();try{e.isMiniProgram?(Sb.miniProgram.navigateTo({url:e.options.miniProgramLogin||xb}),t("")):e.isAlipayMini?(my.navigateTo({url:e.options.miniProgramLogin||xb}),t("")):Pb.call("toLogin",{},(function(e){var n=JSON.parse(e);t(null==n?void 0:n.token)}))}catch(e){console.error("juboSDK.goLogin error",e),n(e)}}))}}),Object.defineProperty(e.prototype,"setMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){console.log("juboSDK.setMessage"),this.isMiniProgram?Sb.miniProgram.postMessage({message:e}):this.isAlipayMini&&my.postMessage({message:e})}}),Object.defineProperty(e.prototype,"goRoute",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.goRoute",e),this.detection)try{if(this.isMiniProgram){var n=this.getOjbUrlFn(e);if(n){var r=(this.options.miniProgramTabBar||["/pages/home/index","/pages/boxHome/index","/pages/csgoPage/index","/pages/mine/index","/pages/ipHome/index"]).find((function(e){return-1!==n.indexOf(e)}));r?Sb.miniProgram.switchTab({url:n}):t?Sb.miniProgram.redirectTo({url:n}):Sb.miniProgram.navigateTo({url:n})}}else Pb.call("goRoute",{url:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.goRoute",e)}}}),Object.defineProperty(e.prototype,"shareMiniProgram",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n,r,i,o,a,s,c,u;if(console.log("juboSDK.shareH5",e,t),this.detection){var l={event:"NewUserInvite",data:{page_url:e.webpage,activity_id:e.activity_id,activity_name:e.activity_name,product_id:e.product_id,product_name:e.product_name}};try{this.isMiniProgram?Sb.miniProgram.postMessage({data:{shareData:{title:e.title,path:e.webpage,imageUrl:e.thumbImage,base64:e.base64,saInfo:l,trackData:t,shareOptions:e.shareOptions||{}}}}):this.isAlipayMini?my.postMessage({data:{shareData:{title:e.title,path:e.webpage,imageUrl:e.thumbImage}}}):(Pb.call("shareMiniProgram",{imgUrl:e.thumbImage,title:e.title,base64:e.base64,webpage:e.webpage}),this.postReport("NewUserInvite",{page_url:e.webpage,activity_id:null===(r=null===(n=e.saInfo)||void 0===n?void 0:n.data)||void 0===r?void 0:r.activity_id,activity_name:null===(o=null===(i=e.saInfo)||void 0===i?void 0:i.data)||void 0===o?void 0:o.activity_name,product_id:null===(s=null===(a=e.saInfo)||void 0===a?void 0:a.data)||void 0===s?void 0:s.product_id,product_name:null===(u=null===(c=e.saInfo)||void 0===c?void 0:c.data)||void 0===u?void 0:u.product_name}),t&&t.event&&t.data&&this.sensorsReport(t.event,t.data))}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareH5",e)}}}}),Object.defineProperty(e.prototype,"postReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.postReport",e,t),this.detection||!this.isMiniProgram)try{Pb.call("postReport",{keyName:e,data:t})}catch(e){console.log("๐Ÿš€ ~ juboSDK.postReport",e)}}}),Object.defineProperty(e.prototype,"sensorsReport",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(console.log("juboSDK.sensorsReport",e,t),this.detection||!this.isMiniProgram)try{Pb.call("sensorsReport",{keyName:e,data:t})}catch(e){console.log("๐Ÿš€ ~ juboSDK.sensorsReport",e)}}}),Object.defineProperty(e.prototype,"shareWXImg",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Hv({type:0},e);if(console.log("juboSDK.shareWXImg",t),this.detection||!this.isMiniProgram)try{Pb.call("shareWXImg",t)}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareWXImg",e)}}}),Object.defineProperty(e.prototype,"setNavTitle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.setNavTitle",e),this.detection||!this.isMiniProgram)try{Pb.call("setNavTitle",{title:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.setNavTitle",e)}}}),Object.defineProperty(e.prototype,"writeToClipboard",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.writeToClipboard",e),this.detection||!this.isMiniProgram)try{Pb.call("writeToClipboard",{content:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.writeToClipboard",e)}}}),Object.defineProperty(e.prototype,"hideNavBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.hideNavBar"),this.detection||!this.isMiniProgram)try{Pb.call("hideNavBar",{isHide:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.hideNavBar",e)}}}),Object.defineProperty(e.prototype,"setOrientation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.setOrientation"),this.detection||!this.isMiniProgram)try{Pb.call("setOrientation",{isLandscape:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.setOrientation",e)}}}),Object.defineProperty(e.prototype,"toPayPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.toPayPage"),new Promise((function(n,r){if(!t.detection)return r();try{t.isMiniProgram?(Sb.miniProgram.navigateTo({url:"".concat(t.options.miniProgramPayPage||"/pages/webPay/index","?activity_id=").concat(e.activityId,"&price=").concat(e.amount,"&success=").concat(e.success,"&fail=").concat(e.fail)}),n("")):Pb.call("toPayPage",e,(function(e){var t=JSON.parse(e);n(null==t?void 0:t.isSuccess)}))}catch(e){console.error("juboSDK.toPayPage error",e),r(e)}}))}}),Object.defineProperty(e.prototype,"hideStatusBar",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.hideStatusBar"),this.detection||!this.isMiniProgram)try{Pb.call("hideStatusBar",{isHide:e})}catch(e){console.log("๐Ÿš€ ~ juboSDK.hideStatusBar",e)}}}),Object.defineProperty(e.prototype,"quit",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.quit"),this.detection||!this.isMiniProgram)try{Pb.call("quit",{})}catch(e){console.log("๐Ÿš€ ~ juboSDK.quit",e)}}}),Object.defineProperty(e.prototype,"goBack",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.goBack"),this.detection||!this.isMiniProgram)try{Pb.call("goBack",{})}catch(e){console.log("๐Ÿš€ ~ juboSDK.goBack",e)}}}),Object.defineProperty(e.prototype,"shareHtml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(console.log("juboSDK.shareHtml"),this.detection||!this.isMiniProgram)try{var t=Hv({type:0},e);Pb.call("shareHtml",t)}catch(e){console.log("๐Ÿš€ ~ juboSDK.shareHtml",e)}}}),Object.defineProperty(e.prototype,"checkAppNotice",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkAppNotice"),new Promise((function(t,n){if(!e.detection&&e.isMiniProgram)return n();try{Pb.call("checkAppNotice",{},(function(e){var n=JSON.parse(e);t(null==n?void 0:n.isOpen)}))}catch(e){console.error("juboSDK.checkAppNotice error",e),n()}}))}}),Object.defineProperty(e.prototype,"checkNetStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return console.log("juboSDK.checkNetStatus"),new Promise((function(t,n){if(!e.detection&&e.isMiniProgram)return n();try{Pb.call("checkNetStatus",{},(function(e){var n=JSON.parse(e);t(null==n?void 0:n.status)}))}catch(e){console.error("juboSDK.checkNetStatus error",e),n()}}))}}),Object.defineProperty(e.prototype,"hcAuthorization",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return console.log("juboSDK.hcAuthorization"),new Promise((function(n,r){if(!t.detection&&t.isMiniProgram)return r();try{Pb.call("hcAuthorization",e,(function(e){var t=JSON.parse(e);n(t)}))}catch(e){console.error("juboSDK.hcAuthorization error",e),r()}}))}}),Object.defineProperty(e.prototype,"getStatusBarHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(console.log("juboSDK.getStatusBarHeight"),!this.detection&&this.isMiniProgram)return 0;try{if(this.isIos)return window.screen.height>=812&&window.devicePixelRatio>=2?44:20;var e=Pb.call("getStatusBarHeight",{});return"string"==typeof e&&(e=JSON.parse(e)),null==e?void 0:e.height}catch(e){console.error("juboSDK.getStatusBarHeight error",e)}return 0}}),Object.defineProperty(e.prototype,"goHome",{enumerable:!1,configurable:!0,writable:!0,value:function(){console.log("juboSDK.goHome"),this.goRoute(this.options.appHome||"ojb://ip_home")}}),e}();window.JuboSdk=kb;var _b=require("../package.json"),Ib=Hg(location.href),Tb=Ib.device||Gg.get("device")||"",Rb=Ib.isfull||Gg.get("isfull")||"",Mb=Ib.version||Gg.get("version")||"",Ab=Ib.channel||Gg.get("channel")||"";Gg.set("device",Tb),Gg.set("isfull",Rb),Gg.set("version",Mb),Gg.set("channel",Ab),"development"===process.env.NODE_ENV&&function(e,t){new Promise((function(n,r){return e?t?void function(e){return new Promise((function(t,n){if(!e)return n(new Error("name is required"));var r="https://registry.npmjs.org/".concat(e,"/latest");fetch(r).then((function(e){e.ok?e.json().then((function(e){t(e)})).catch(n):n(new Error(e.statusText))})).catch(n)}))}(e).then((function(r){var i=null==r?void 0:r.version,o=null==r?void 0:r.updateDoc,a=Bg(t,i);n(a),-1===a&&(console.warn("".concat(e," ๆœ‰ๆœ€ๆ–ฐ็‰ˆๆœฌ: ").concat(i,"๏ผŒ่ฏทๆณจๆ„ๆ›ดๆ–ฐ๏ผ")),o&&console.warn(o))})).catch(r):r(new Error("version is required")):r(new Error("name is required"))}))}(_b.name,_b.version),e.ChannelClient=Pp,e.ChannelParent=Op,e.default=kb,e.ls=Gg,Object.defineProperty(e,"__esModule",{value:!0})})),"undefined"!=typeof window&&(window._juboSDK_VERSION_="1.5.0-beta.2");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jubo-sdk",
3
- "version": "1.5.0-beta.1",
3
+ "version": "1.5.0-beta.2",
4
4
  "description": "juboSDK",
5
5
  "updateDoc": "ๆ–ฐๅขžๆ”ฏไป˜ๅฎๅฐ็จ‹ๅบๅˆคๆ–ญ",
6
6
  "keywords": [