ylh-quick-app-ad-sdk
Version:
安装命令: 通过 `npm` 安装: ```sh npm install ylh-quick-app-ad-sdk ``` 通过 `yarn` 安装: ```sh yarn add ylh-quick-app-ad-sdk ```
3 lines • 229 kB
JavaScript
/*! For license information please see ylh-sdk-core-v1.7.1070.min.js.LICENSE.txt */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,(()=>(()=>{var t={70:function(t,e,n){var r;t.exports=(r=n(995),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)},255:()=>{},360:function(t,e,n){var r;t.exports=(r=n(995),function(){var t=r,e=t.lib.WordArray;function n(t,n,r){for(var i=[],s=0,o=0;o<n;o++)if(o%4){var c=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[s>>>2]|=c<<24-s%4*8,s++}return e.create(i,s)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],s=0;s<n;s+=3)for(var o=(e[s>>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<n;c++)i.push(r.charAt(o>>>6*(3-c)&63));var a=r.charAt(64);if(a)for(;i.length%4;)i.push(a);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var o=r.charAt(64);if(o){var c=t.indexOf(o);-1!==c&&(e=c)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)},410:function(t,e,n){var r;t.exports=(r=n(995),function(t){var e=r,n=e.lib,i=n.WordArray,s=n.Hasher,o=e.algo,c=[];!function(){for(var e=0;e<64;e++)c[e]=4294967296*t.abs(t.sin(e+1))|0}();var a=o.MD5=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var s=this._hash.words,o=t[e+0],a=t[e+1],l=t[e+2],p=t[e+3],g=t[e+4],m=t[e+5],y=t[e+6],v=t[e+7],b=t[e+8],w=t[e+9],_=t[e+10],x=t[e+11],O=t[e+12],A=t[e+13],C=t[e+14],I=t[e+15],S=s[0],E=s[1],P=s[2],k=s[3];S=u(S,E,P,k,o,7,c[0]),k=u(k,S,E,P,a,12,c[1]),P=u(P,k,S,E,l,17,c[2]),E=u(E,P,k,S,p,22,c[3]),S=u(S,E,P,k,g,7,c[4]),k=u(k,S,E,P,m,12,c[5]),P=u(P,k,S,E,y,17,c[6]),E=u(E,P,k,S,v,22,c[7]),S=u(S,E,P,k,b,7,c[8]),k=u(k,S,E,P,w,12,c[9]),P=u(P,k,S,E,_,17,c[10]),E=u(E,P,k,S,x,22,c[11]),S=u(S,E,P,k,O,7,c[12]),k=u(k,S,E,P,A,12,c[13]),P=u(P,k,S,E,C,17,c[14]),S=h(S,E=u(E,P,k,S,I,22,c[15]),P,k,a,5,c[16]),k=h(k,S,E,P,y,9,c[17]),P=h(P,k,S,E,x,14,c[18]),E=h(E,P,k,S,o,20,c[19]),S=h(S,E,P,k,m,5,c[20]),k=h(k,S,E,P,_,9,c[21]),P=h(P,k,S,E,I,14,c[22]),E=h(E,P,k,S,g,20,c[23]),S=h(S,E,P,k,w,5,c[24]),k=h(k,S,E,P,C,9,c[25]),P=h(P,k,S,E,p,14,c[26]),E=h(E,P,k,S,b,20,c[27]),S=h(S,E,P,k,A,5,c[28]),k=h(k,S,E,P,l,9,c[29]),P=h(P,k,S,E,v,14,c[30]),S=f(S,E=h(E,P,k,S,O,20,c[31]),P,k,m,4,c[32]),k=f(k,S,E,P,b,11,c[33]),P=f(P,k,S,E,x,16,c[34]),E=f(E,P,k,S,C,23,c[35]),S=f(S,E,P,k,a,4,c[36]),k=f(k,S,E,P,g,11,c[37]),P=f(P,k,S,E,v,16,c[38]),E=f(E,P,k,S,_,23,c[39]),S=f(S,E,P,k,A,4,c[40]),k=f(k,S,E,P,o,11,c[41]),P=f(P,k,S,E,p,16,c[42]),E=f(E,P,k,S,y,23,c[43]),S=f(S,E,P,k,w,4,c[44]),k=f(k,S,E,P,O,11,c[45]),P=f(P,k,S,E,I,16,c[46]),S=d(S,E=f(E,P,k,S,l,23,c[47]),P,k,o,6,c[48]),k=d(k,S,E,P,v,10,c[49]),P=d(P,k,S,E,C,15,c[50]),E=d(E,P,k,S,m,21,c[51]),S=d(S,E,P,k,O,6,c[52]),k=d(k,S,E,P,p,10,c[53]),P=d(P,k,S,E,_,15,c[54]),E=d(E,P,k,S,a,21,c[55]),S=d(S,E,P,k,b,6,c[56]),k=d(k,S,E,P,I,10,c[57]),P=d(P,k,S,E,y,15,c[58]),E=d(E,P,k,S,A,21,c[59]),S=d(S,E,P,k,g,6,c[60]),k=d(k,S,E,P,x,10,c[61]),P=d(P,k,S,E,l,15,c[62]),E=d(E,P,k,S,w,21,c[63]),s[0]=s[0]+S|0,s[1]=s[1]+E|0,s[2]=s[2]+P|0,s[3]=s[3]+k|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var s=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,a=c.words,u=0;u<4;u++){var h=a[u];a[u]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return c},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,i,s,o){var c=t+(e&n|~e&r)+i+o;return(c<<s|c>>>32-s)+e}function h(t,e,n,r,i,s,o){var c=t+(e&r|n&~r)+i+o;return(c<<s|c>>>32-s)+e}function f(t,e,n,r,i,s,o){var c=t+(e^n^r)+i+o;return(c<<s|c>>>32-s)+e}function d(t,e,n,r,i,s,o){var c=t+(n^(e|~r))+i+o;return(c<<s|c>>>32-s)+e}e.MD5=s._createHelper(a),e.HmacMD5=s._createHmacHelper(a)}(Math),r.MD5)},462:function(t,e,n){var r;t.exports=(r=n(995),n(70),n(360),n(410),r)},646:(t,e)=>{var n,r,i,s,o,c,a,u,h,f={},d={};function l(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function p(t,e){return new g(t,e)}function g(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function m(){return new g(null)}function y(t){return z.charAt(t)}function v(t,e){var n=i[t.charCodeAt(e)];return null==n?-1:n}function b(t){var e=m();return e.fromInt(t),e}function w(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function _(t){this.m=t}function x(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function O(t,e){return t&e}function A(t,e){return t|e}function C(t,e){return t^e}function I(t,e){return t&~e}function S(t){if(0==t)return-1;var e=0;return!(65535&t)&&(t>>=16,e+=16),!(255&t)&&(t>>=8,e+=8),!(15&t)&&(t>>=4,e+=4),!(3&t)&&(t>>=2,e+=2),!(1&t)&&++e,e}function E(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function P(){}function k(t){return t}function D(t){this.r2=m(),this.q3=m(),g.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}function T(t){for(var e,n,r="",i=0,s=0;s<t.length&&t.charAt(s)!=L;++s)(n=N.indexOf(t.charAt(s)))<0||(0==i?(r+=y(n>>2),e=3&n,i=1):1==i?(r+=y(e<<2|n>>4),e=15&n,i=2):2==i?(r+=y(e),r+=y(n>>2),e=3&n,i=3):(r+=y(e<<2|n>>4),r+=y(15&n),i=0));return 1==i&&(r+=y(e<<2)),r}function j(t,e){if(-1==t.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return void 0!==e?t=(t=t.replace(new RegExp("^[^]*-----BEGIN "+e+"-----"),"")).replace(new RegExp("-----END "+e+"-----[^]*$"),""):t=(t=t.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""),function(t){var e=t.replace(/[^0-9A-Za-z\/+=]*/g,"");return T(e)}(t)}void 0!==f&&f||(f={}),void 0!==f.crypto&&f.crypto||(f.crypto={}),void 0!==d&&d||(d={}),(n={}).userAgent=!1;var L="=",N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z="0123456789abcdefghijklmnopqrstuvwxyz";const M={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"};for(l.prototype.verifyWithMessageHash=function(t,e){var n;if(e.length!=Math.ceil(this.n.bitLength()/4))return!1;if((n=p(e,16)).bitLength()>this.n.bitLength())return 0;var r=function(t){var e,n,r;for(e in M)if(r=(n=M[e]).length,t.substring(0,r)==n)return[e,t.substring(r)];return[]}(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=r.length&&(r[0],r[1]==t)},l.prototype.readPKCS8PubKeyHex=function(t){var e=u.getTLVbyListEx(t,0,[1,0]);this.readPKCS5PubKeyHex(e)},l.prototype.readPKCS5PubKeyHex=function(t){var e,n,r=u,i=r.getV,s=r.getChildIdx(t,0);if(2!==s.length||"02"!==t.substr(s[0],2)||"02"!==t.substr(s[1],2))throw new Error("wrong hex for PKCS#5 public key");e=i(t,s[0]),n=i(t,s[1]),this.setPublic(e,n)},l.prototype.type="RSA",l.prototype.setPublic=function(t,e){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof t)this.n=t,this.e=e;else{if(!(null!=t&&null!=e&&t.length>0&&e.length>0))throw"Invalid RSA public key";this.n=p(t,16),this.e=parseInt(e,16)}},l.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},"Microsoft Internet Explorer"==n.appName?(g.prototype.am=function(t,e,n,r,i,s){for(var o=32767&e,c=e>>15;--s>=0;){var a=32767&this[t],u=this[t++]>>15,h=c*a+u*o;i=((a=o*a+((32767&h)<<15)+n[r]+(1073741823&i))>>>30)+(h>>>15)+c*u+(i>>>30),n[r++]=1073741823&a}return i},r=30):"Netscape"!=n.appName?(g.prototype.am=function(t,e,n,r,i,s){for(;--s>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},r=26):(g.prototype.am=function(t,e,n,r,i,s){for(var o=16383&e,c=e>>14;--s>=0;){var a=16383&this[t],u=this[t++]>>14,h=c*a+u*o;i=((a=o*a+((16383&h)<<14)+n[r]+i)>>28)+(h>>14)+c*u,n[r++]=268435455&a}return i},r=28),g.prototype.DB=r,g.prototype.DM=(1<<r)-1,g.prototype.DV=1<<r,g.prototype.FV=Math.pow(2,52),g.prototype.F1=52-r,g.prototype.F2=2*r-52,z="0123456789abcdefghijklmnopqrstuvwxyz",i=[],s="0".charCodeAt(0),o=0;o<=9;++o)i[s++]=o;for(s="a".charCodeAt(0),o=10;o<36;++o)i[s++]=o;for(s="A".charCodeAt(0),o=10;o<36;++o)i[s++]=o;var B,R,q,K,H,V,U,$,W,G,F;_.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},_.prototype.revert=function(t){return t},_.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},_.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},_.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},x.prototype.convert=function(t){var e=m();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(g.ZERO)>0&&this.m.subTo(e,e),e},x.prototype.revert=function(t){var e=m();return t.copyTo(e),this.reduce(e),e},x.prototype.reduce=function(t){for(var e,n,r;t.t<=this.mt2;)t[t.t++]=0;for(e=0;e<this.m.t;++e)for(r=(n=32767&t[e])*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM,t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++;t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},x.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},x.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},g.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},g.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},g.prototype.fromString=function(t,e){var n,r;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;)(r=8==n?255&t[i]:v(t,i))<0?"-"==t.charAt(i)&&(s=!0):(s=!1,0==o?this[this.t++]=r:o+n>this.DB?(this[this.t-1]|=(r&(1<<this.DB-o)-1)<<o,this[this.t++]=r>>this.DB-o):this[this.t-1]|=r<<o,(o+=n)>=this.DB&&(o-=this.DB));8==n&&128&t[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&g.ZERO.subTo(this,this)},g.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},g.prototype.dlShiftTo=function(t,e){for(var n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},g.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},g.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,s=Math.floor(t/this.DB),o=this.s<<n&this.DM,c=this.t-1;c>=0;--c)e[c+s+1]=this[c]>>r|o,o=(this[c]&i)<<n;for(c=s-1;c>=0;--c)e[c]=0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},g.prototype.rShiftTo=function(t,e){var n,r;if(e.s=this.s,(n=Math.floor(t/this.DB))>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;for(e[0]=this[n]>>i,r=n+1;r<this.t;++r)e[r-n-1]|=(this[r]&o)<<s,e[r-n]=this[r]>>i;i>0&&(e[this.t-n-1]|=(this.s&o)<<s),e.t=this.t-n,e.clamp()}},g.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},g.prototype.multiplyTo=function(t,e){var n=this.abs(),r=t.abs(),i=n.t;for(e.t=i+r.t;--i>=0;)e[i]=0;for(i=0;i<r.t;++i)e[i+n.t]=n.am(0,r[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&g.ZERO.subTo(e,e)},g.prototype.squareTo=function(t){for(var e,n=this.abs(),r=t.t=2*n.t;--r>=0;)t[r]=0;for(r=0;r<n.t-1;++r)e=n.am(r,n[r],t,2*r,0,1),(t[r+n.t]+=n.am(r+1,2*n[r],t,2*r+1,e,n.t-r-1))>=n.DV&&(t[r+n.t]-=n.DV,t[r+n.t+1]=1);t.t>0&&(t[t.t-1]+=n.am(r,n[r],t,2*r,0,1)),t.s=0,t.clamp()},g.prototype.divRemTo=function(t,e,n){var r,i,s,o,c=t.abs();if(!(c.t<=0)){if((r=this.abs()).t<c.t)return null!=e&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=m());var a=m(),u=this.s,h=t.s,f=this.DB-w(c[c.t-1]);if(f>0?(c.lShiftTo(f,a),r.lShiftTo(f,n)):(c.copyTo(a),r.copyTo(n)),0!=(s=a[(i=a.t)-1])){var d=s*(1<<this.F1)+(i>1?a[i-2]>>this.F2:0),l=this.FV/d,p=(1<<this.F1)/d,y=1<<this.F2,v=n.t,b=v-i,_=null==e?m():e;for(a.dlShiftTo(b,_),n.compareTo(_)>=0&&(n[n.t++]=1,n.subTo(_,n)),g.ONE.dlShiftTo(i,_),_.subTo(a,a);a.t<i;)a[a.t++]=0;for(;--b>=0;)if(o=n[--v]==s?this.DM:Math.floor(n[v]*l+(n[v-1]+y)*p),(n[v]+=a.am(0,o,n,b,0,i))<o)for(a.dlShiftTo(b,_),n.subTo(_,n);n[v]<--o;)n.subTo(_,n);null!=e&&(n.drShiftTo(i,e),u!=h&&g.ZERO.subTo(e,e)),n.t=i,n.clamp(),f>0&&n.rShiftTo(f,n),u<0&&g.ZERO.subTo(n,n)}}},g.prototype.invDigit=function(){var t,e;return this.t<1?0:1&(t=this[0])?(e=(e=(e=(e=(e=3&t)*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e:0},g.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},g.prototype.exp=function(t,e){var n;if(t>4294967295||t<1)return g.ONE;var r=m(),i=m(),s=e.convert(this),o=w(t)-1;for(s.copyTo(r);--o>=0;)e.sqrTo(r,i),(t&1<<o)>0?e.mulTo(i,s,r):(n=r,r=i,i=n);return e.revert(r)},g.prototype.toString=function(t){var e;if(this.s<0)return"-"+this.negate().toString(t);if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,s="",o=this.t,c=this.DB-o*this.DB%e;if(o-- >0)for(c<this.DB&&(n=this[o]>>c)>0&&(i=!0,s=y(n));o>=0;)c<e?n=(this[o]&(1<<c)-1)<<e-c|this[--o]>>(c+=this.DB-e):(n=this[o]>>(c-=e)&r,c<=0&&(c+=this.DB,--o)),n>0&&(i=!0),i&&(s+=y(n));return i?s:"0"},g.prototype.negate=function(){var t=m();return g.ZERO.subTo(this,t),t},g.prototype.abs=function(){return this.s<0?this.negate():this},g.prototype.compareTo=function(t){var e,n=this.s-t.s;if(0!=n)return n;if(0!=(n=(e=this.t)-t.t))return this.s<0?-n:n;for(;--e>=0;)if(0!=(n=this[e]-t[e]))return n;return 0},g.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+w(this[this.t-1]^this.s&this.DM)},g.prototype.mod=function(t){var e=m();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(g.ZERO)>0&&t.subTo(e,e),e},g.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new _(e):new x(e),this.exp(t,n)},g.ZERO=b(0),g.ONE=b(1),P.prototype.convert=k,P.prototype.revert=k,P.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},P.prototype.sqrTo=function(t,e){t.squareTo(e)},D.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=m();return t.copyTo(e),this.reduce(e),e},D.prototype.revert=function(t){return t},D.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},D.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},D.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},a=67108864/(c=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997])[c.length-1],g.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},g.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=b(n),i=m(),s=m(),o="";for(this.divRemTo(r,i,s);i.signum()>0;)o=(n+s.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,s);return s.intValue().toString(t)+o},g.prototype.fromRadix=function(t,e){var n,r;this.fromInt(0),null==e&&(e=10);var i=this.chunkSize(e),s=Math.pow(e,i),o=!1,c=0,a=0;for(n=0;n<t.length;++n)(r=v(t,n))<0?"-"==t.charAt(n)&&0==this.signum()&&(o=!0):(a=e*a+r,++c>=i&&(this.dMultiply(s),this.dAddOffset(a,0),c=0,a=0));c>0&&(this.dMultiply(Math.pow(e,c)),this.dAddOffset(a,0)),o&&g.ZERO.subTo(this,this)},g.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(g.ONE.shiftLeft(t-1),A,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(g.ONE.shiftLeft(t-1),this);else{var r=[],i=7&t;r.length=1+(t>>3),e.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},g.prototype.bitwiseTo=function(t,e,n){for(var r,i=Math.min(t.t,this.t),s=0;s<i;++s)n[s]=e(this[s],t[s]);if(t.t<this.t){for(r=t.s&this.DM,s=i;s<this.t;++s)n[s]=e(this[s],r);n.t=this.t}else{for(r=this.s&this.DM,s=i;s<t.t;++s)n[s]=e(r,t[s]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},g.prototype.changeBit=function(t,e){var n=g.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},g.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},g.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},g.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},g.prototype.multiplyLowerTo=function(t,e,n){var r,i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(r=Math.min(t.t,e);i<r;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},g.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},g.prototype.modInt=function(t){var e,n,r;if(t<=0)return 0;if(e=this.DV%t,n=this.s<0?t-1:0,this.t>0)if(0==e)n=this[0]%t;else for(r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},g.prototype.millerRabin=function(t){var e,n,r,i,s,o=this.subtract(g.ONE),a=o.getLowestSetBit();if(a<=0)return!1;for(e=o.shiftRight(a),(t=t+1>>1)>c.length&&(t=c.length),n=m(),r=0;r<t;++r)if(n.fromInt(c[Math.floor(Math.random()*c.length)]),0!=(i=n.modPow(e,this)).compareTo(g.ONE)&&0!=i.compareTo(o)){for(s=1;s++<a&&0!=i.compareTo(o);)if(0==(i=i.modPowInt(2,this)).compareTo(g.ONE))return!1;if(0!=i.compareTo(o))return!1}return!0},g.prototype.clone=function(){var t=m();return this.copyTo(t),t},g.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},g.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},g.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},g.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},g.prototype.toByteArray=function(){var t,e,n,r=this.t,i=[];if(i[0]=this.s,t=this.DB-r*this.DB%8,n=0,r-- >0)for(t<this.DB&&(e=this[r]>>t)!=(this.s&this.DM)>>t&&(i[n++]=e|this.s<<this.DB-t);r>=0;)t<8?e=(this[r]&(1<<t)-1)<<8-t|this[--r]>>(t+=this.DB-8):(e=this[r]>>(t-=8)&255,t<=0&&(t+=this.DB,--r)),!!(128&e)&&(e|=-256),0==n&&(128&this.s)!=(128&e)&&++n,(n>0||e!=this.s)&&(i[n++]=e);return i},g.prototype.equals=function(t){return 0==this.compareTo(t)},g.prototype.min=function(t){return this.compareTo(t)<0?this:t},g.prototype.max=function(t){return this.compareTo(t)>0?this:t},g.prototype.and=function(t){var e=m();return this.bitwiseTo(t,O,e),e},g.prototype.or=function(t){var e=m();return this.bitwiseTo(t,A,e),e},g.prototype.xor=function(t){var e=m();return this.bitwiseTo(t,C,e),e},g.prototype.andNot=function(t){var e=m();return this.bitwiseTo(t,I,e),e},g.prototype.not=function(){for(var t=m(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},g.prototype.shiftLeft=function(t){var e=m();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},g.prototype.shiftRight=function(t){var e=m();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},g.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+S(this[t]);return this.s<0?this.t*this.DB:-1},g.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=E(this[n]^e);return t},g.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},g.prototype.setBit=function(t){return this.changeBit(t,A)},g.prototype.clearBit=function(t){return this.changeBit(t,I)},g.prototype.flipBit=function(t){return this.changeBit(t,C)},g.prototype.add=function(t){var e=m();return this.addTo(t,e),e},g.prototype.subtract=function(t){var e=m();return this.subTo(t,e),e},g.prototype.multiply=function(t){var e=m();return this.multiplyTo(t,e),e},g.prototype.divide=function(t){var e=m();return this.divRemTo(t,e,null),e},g.prototype.remainder=function(t){var e=m();return this.divRemTo(t,null,e),e},g.prototype.divideAndRemainder=function(t){var e=m(),n=m();return this.divRemTo(t,e,n),[e,n]},g.prototype.modPow=function(t,e){var n,r,i,s=t.bitLength(),o=b(1);if(s<=0)return o;n=s<18?1:s<48?3:s<144?4:s<768?5:6,r=s<8?new _(e):e.isEven()?new D(e):new x(e);var c=[],a=3,u=n-1,h=(1<<n)-1;if(c[1]=r.convert(this),n>1)for(i=m(),r.sqrTo(c[1],i);a<=h;)c[a]=m(),r.mulTo(i,c[a-2],c[a]),a+=2;var f,d,l=t.t-1,p=!0,g=m();for(s=w(t[l])-1;l>=0;){for(s>=u?f=t[l]>>s-u&h:(f=(t[l]&(1<<s+1)-1)<<u-s,l>0&&(f|=t[l-1]>>this.DB+s-u)),a=n;!(1&f);)f>>=1,--a;if((s-=a)<0&&(s+=this.DB,--l),p)c[f].copyTo(o),p=!1;else{for(;a>1;)r.sqrTo(o,g),r.sqrTo(g,o),a-=2;a>0?r.sqrTo(o,g):(d=o,o=g,g=d),r.mulTo(g,c[f],o)}for(;l>=0&&!(t[l]&1<<s);)r.sqrTo(o,g),d=o,o=g,g=d,--s<0&&(s=this.DB-1,--l)}return r.revert(o)},g.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return g.ZERO;for(var n=t.clone(),r=this.clone(),i=b(1),s=b(0),o=b(0),c=b(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(i.isEven()&&s.isEven()||(i.addTo(this,i),s.subTo(t,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&c.isEven()||(o.addTo(this,o),c.subTo(t,c)),o.rShiftTo(1,o)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(r)>=0?(n.subTo(r,n),e&&i.subTo(o,i),s.subTo(c,s)):(r.subTo(n,r),e&&o.subTo(i,o),c.subTo(s,c))}return 0!=r.compareTo(g.ONE)?g.ZERO:c.compareTo(t)>=0?c.subtract(t):c.signum()<0?(c.addTo(t,c),c.signum()<0?c.add(t):c):c},g.prototype.pow=function(t){return this.exp(t,new P)},g.prototype.gcd=function(t){var e,n,r,i=this.s<0?this.negate():this.clone(),s=t.s<0?t.negate():t.clone();if(i.compareTo(s)<0&&(e=i,i=s,s=e),n=i.getLowestSetBit(),(r=s.getLowestSetBit())<0)return i;for(n<r&&(r=n),r>0&&(i.rShiftTo(r,i),s.rShiftTo(r,s));i.signum()>0;)(n=i.getLowestSetBit())>0&&i.rShiftTo(n,i),(n=s.getLowestSetBit())>0&&s.rShiftTo(n,s),i.compareTo(s)>=0?(i.subTo(s,i),i.rShiftTo(1,i)):(s.subTo(i,s),s.rShiftTo(1,s));return r>0&&s.lShiftTo(r,s),s},g.prototype.isProbablePrime=function(t){var e,n,r,i=this.abs();if(1==i.t&&i[0]<=c[c.length-1]){for(e=0;e<c.length;++e)if(i[0]==c[e])return!0;return!1}if(i.isEven())return!1;for(e=1;e<c.length;){for(n=c[e],r=e+1;r<c.length&&n<a;)n*=c[r++];for(n=i.modInt(n);e<r;)if(n%c[e++]==0)return!1}return i.millerRabin(t)},g.prototype.square=function(){var t=m();return this.squareTo(t),t},g.prototype.sqrt=function(){for(var t,e=g.ZERO.setBit(this.bitLength()/2),n=e;;){if((t=e.add(this.divide(e)).shiftRight(1)).equals(e)||t.equals(n))return t;n=e,e=t}},(u=new function(){}).getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var n=parseInt(t.substr(e+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},u.getL=function(t,e){var n=u.getLblen(t,e);return n<1?"":t.substr(e+2,2*n)},u.getVblen=function(t,e){var n;return""==(n=u.getL(t,e))?-1:("8"===n.substr(0,1)?new g(n.substr(2),16):new g(n,16)).intValue()},u.getVidx=function(t,e){var n=u.getLblen(t,e);return n<0?n:e+2*(n+1)},u.getV=function(t,e){var n=u.getVidx(t,e),r=u.getVblen(t,e);return t.substr(n,2*r)},u.getTLV=function(t,e){return t.substr(e,2)+u.getL(t,e)+u.getV(t,e)},u.getTLVblen=function(t,e){return 2+2*u.getLblen(t,e)+2*u.getVblen(t,e)},u.getNextSiblingIdx=function(t,e){return u.getVidx(t,e)+2*u.getVblen(t,e)},u.getChildIdx=function(t,e){var n,r,i,s,o,c=u,a=[];for(n=c.getVidx(t,e),r=2*c.getVblen(t,e),"03"==t.substr(e,2)&&(n+=2,r-=2),i=0,s=n;i<=r&&((i+=o=c.getTLVblen(t,s))<=r&&a.push(s),s+=o,!(i>=r)););return a},u.getNthChildIdx=function(t,e,n){return u.getChildIdx(t,e)[n]},u.getIdxbyList=function(t,e,n,r){var i,s,o=u;return 0==n.length?void 0!==r&&t.substr(e,2)!==r?-1:e:(i=n.shift())>=(s=o.getChildIdx(t,e)).length?-1:o.getIdxbyList(t,s[i],n,r)},u.getIdxbyListEx=function(t,e,n,r){var i,s,o,c,a,h=u;if(0==n.length)return void 0!==r&&t.substr(e,2)!==r?-1:e;for(i=n.shift(),s=h.getChildIdx(t,e),o=0,c=0;c<s.length;c++){if(a=t.substr(s[c],2),"number"==typeof i&&!h.isContextTag(a)&&o==i||"string"==typeof i&&h.isContextTag(a,i))return h.getIdxbyListEx(t,s[c],n,r);h.isContextTag(a)||o++}return-1},u.getTLVbyList=function(t,e,n,r){var i=u,s=i.getIdxbyList(t,e,n,r);return-1==s||s>=t.length?null:i.getTLV(t,s)},u.getTLVbyListEx=function(t,e,n,r){var i=u,s=i.getIdxbyListEx(t,e,n,r);return-1==s?null:i.getTLV(t,s)},u.getVbyList=function(t,e,n,r,i){var s,o,c=u;return-1==(s=c.getIdxbyList(t,e,n,r))||s>=t.length?null:(o=c.getV(t,s),!0===i&&(o=o.substr(2)),o)},u.getVbyListEx=function(t,e,n,r,i){var s,o,c=u;return-1==(s=c.getIdxbyListEx(t,e,n,r))?null:(o=c.getV(t,s),"03"==t.substr(s,2)&&!1!==i&&(o=o.substr(2)),o)},u.getInt=function(t,e,n){var r,i;null==n&&(n=-1);try{return"02"!=(r=t.substr(e,2))&&"03"!=r?n:(i=u.getV(t,e),"02"==r?parseInt(i,16):bitstrtoint(i))}catch(t){return n}},u.getOID=function(t,e,n){null==n&&(n=null);try{if("06"!=t.substr(e,2))return n;var r=u.getV(t,e);return hextooid(r)}catch(t){return n}},u.getOIDName=function(t,e,n){var r,i;null==n&&(n=null);try{return(r=u.getOID(t,e,n))==n?n:""==(i=f.asn1.x509.OID.oid2name(r))?r:i}catch(t){return n}},u.getString=function(t,e,n){null==n&&(n=null);try{var r=u.getV(t,e);return hextorstr(r)}catch(t){return n}},u.hextooidstr=function(t){var e,n,r,i,s,o,c=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},a=[],u=t.substr(0,2),h=parseInt(u,16);for(a[0]=new String(Math.floor(h/40)),a[1]=new String(h%40),e=t.substr(2),n=[],s=0;s<e.length/2;s++)n.push(parseInt(e.substr(2*s,2),16));for(r=[],i="",s=0;s<n.length;s++)128&n[s]?i+=c((127&n[s]).toString(2),7):(i+=c((127&n[s]).toString(2),7),r.push(new String(parseInt(i,2))),i="");return o=a.join("."),r.length>0&&(o=o+"."+r.join(".")),o},u.dump=function(t,e,n,r){var i,s,o,c,a,h,d,l=u,p=l.getV,g=l.dump,m=l.getChildIdx,y=t;if(t instanceof f.asn1.ASN1Object&&(y=t.tohex()),i=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)},void 0===e&&(e={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r=""),s=e.ommit_long_octet,"01"==(c=y.substr(n,2)))return"00"==(d=p(y,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==c)return r+"INTEGER "+i(d=p(y,n),s)+"\n";if("03"==c)return d=p(y,n),l.isASN1HEX(d.substr(2))?(O=r+"BITSTRING, encapsulates\n")+g(d.substr(2),e,0,r+" "):r+"BITSTRING "+i(d,s)+"\n";if("04"==c)return d=p(y,n),l.isASN1HEX(d)?(O=r+"OCTETSTRING, encapsulates\n")+g(d,e,0,r+" "):r+"OCTETSTRING "+i(d,s)+"\n";if("05"==c)return r+"NULL\n";if("06"==c){var v=p(y,n),b=f.asn1.ASN1Util.oidHexToInt(v),w=f.asn1.x509.OID.oid2name(b),_=b.replace(/\./g," ");return""!=w?r+"ObjectIdentifier "+w+" ("+_+")\n":r+"ObjectIdentifier ("+_+")\n"}if("0a"==c)return r+"ENUMERATED "+parseInt(p(y,n))+"\n";if("0c"==c)return r+"UTF8String '"+hextoutf8(p(y,n))+"'\n";if("13"==c)return r+"PrintableString '"+hextoutf8(p(y,n))+"'\n";if("14"==c)return r+"TeletexString '"+hextoutf8(p(y,n))+"'\n";if("16"==c)return r+"IA5String '"+hextoutf8(p(y,n))+"'\n";if("17"==c)return r+"UTCTime "+hextoutf8(p(y,n))+"\n";if("18"==c)return r+"GeneralizedTime "+hextoutf8(p(y,n))+"\n";if("1a"==c)return r+"VisualString '"+hextoutf8(p(y,n))+"'\n";if("1e"==c)return r+"BMPString '"+ucs2hextoutf8(p(y,n))+"'\n";if("30"==c){if("3000"==y.substr(n,4))return r+"SEQUENCE {}\n";var x,O=r+"SEQUENCE\n",A=e;for((2==(x=m(y,n)).length||3==x.length)&&"06"==y.substr(x[0],2)&&"04"==y.substr(x[x.length-1],2)&&(w=l.oidname(p(y,x[0])),(o=JSON.parse(JSON.stringify(e))).x509ExtName=w,A=o),h=0;h<x.length;h++)O+=g(y,A,x[h],r+" ");return O}if("31"==c){for(O=r+"SET\n",x=m(y,n),h=0;h<x.length;h++)O+=g(y,e,x[h],r+" ");return O}if(128&(c=parseInt(c,16))){if(a=31&c,32&c){for(O=r+"["+a+"]\n",x=m(y,n),h=0;h<x.length;h++)O+=g(y,e,x[h],r+" ");return O}return d=p(y,n),u.isASN1HEX(d)?(O=r+"["+a+"]\n")+g(d,e,0,r+" "):(("68747470"==d.substr(0,8)||"subjectAltName"===e.x509ExtName&&2==a)&&(d=hextoutf8(d)),r+"["+a+"] "+d+"\n")}return r+"UNKNOWN("+c+") "+p(y,n)+"\n"},u.parse=function(t){var e,n,r,i,s,o,c=u,a=c.parse,h=c.isASN1HEX,d=c.getV,l=c.getTLV,p=c.getChildIdx,g=f.asn1,m=g.ASN1Util.oidHexToInt,y=g.x509.OID.oid2name,v=hextoutf8,b=ucs2hextoutf8,w=iso88591hextoutf8,_={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},x=t.substr(0,2),O={},A=d(t,0);if("01"==x)return"0101ff"==t?{bool:!0}:{bool:!1};if("02"==x)return{int:{hex:A}};if("03"==x)try{if("00"!=A.substr(0,2))throw"not encap";if(!h(e=A.substr(2)))throw"not encap";return{bitstr:{obj:a(e)}}}catch(t){return n=null,A.length<=10&&(n=bitstrtobinstr(A)),null==n?{bitstr:{hex:A}}:{bitstr:{bin:n}}}else if("04"==x)try{if(!h(A))throw"not encap";return{octstr:{obj:a(A)}}}catch(t){return{octstr:{hex:A}}}else{if("05"==x)return{null:""};if("06"==x)return""==(i=y(r=m(A)))?{oid:r}:{oid:i};if("0a"==x)return A.length>4?{enum:{hex:A}}:{enum:parseInt(A,16)};if("30"==x||"31"==x)return O[_[x]]=function(t){for(var e=[],n=p(t,0),r=0;r<n.length;r++){var i=n[r],s=l(t,i),o=a(s);e.push(o)}return e}(t),O;if("14"==x)return s=w(A),O[_[x]]={str:s},O;if("1e"==x)return s=b(A),O[_[x]]={str:s},O;if(-1!=":0c:12:13:16:17:18:1a:".indexOf(x))return s=v(A),O[_[x]]={str:s},O;if(x.match(/^8[0-9]$/))return null==(s=v(A))|""==s||null!=s.match(/[\x00-\x1F\x7F-\x9F]/)||null!=s.match(/[\u0000-\u001F\u0080–\u009F]/)?{tag:{tag:x,explicit:!1,hex:A}}:{tag:{tag:x,explicit:!1,str:s}};if(!x.match(/^a[0-9]$/))return(o=new f.asn1.ASN1Object).hV=A,{asn1:{tlv:x+o.getLengthHexFromValue()+A}};try{if(!h(A))throw new Error("not encap");return{tag:{tag:x,explicit:!0,obj:a(A)}}}catch(t){return{tag:{tag:x,explicit:!0,hex:A}}}}},u.isContextTag=function(t,e){var n,r;t=t.toLowerCase();try{n=parseInt(t,16)}catch(t){return-1}if(void 0===e)return 128==(192&n);try{return null!=e.match(/^\[[0-9]+\]$/)&&(!((r=parseInt(e.substr(1,e.length-1),10))>31)&&(128==(192&n)&&(31&n)==r))}catch(t){return!1}},u.isASN1HEX=function(t){var e=u;if(t.length%2==1)return!1;var n=e.getVblen(t,0),r=t.substr(0,2),i=e.getL(t,0);return t.length-r.length-i.length==2*n},u.checkStrictDER=function(t,e,n,r,i){var s,o,c,a,h,d,l=u;if(void 0===n){if("string"!=typeof t)throw new Error("not hex string");if(t=t.toLowerCase(),!f.lang.String.isHex(t))throw new Error("not hex string");n=t.length,i=(r=t.length/2)<128?1:Math.ceil(r.toString(16))+1}if(l.getL(t,e).length>2*i)throw new Error("L of TLV too long: idx="+e);if((s=l.getVblen(t,e))>r)throw new Error("value of L too long than hex: idx="+e);if((c=(o=l.getTLV(t,e)).length-2-l.getL(t,e).length)!==2*s)throw new Error("V string length and L's value not the same:"+c+"/"+2*s);if(0===e&&t.length!=o.length)throw new Error("total length and TLV length unmatch:"+t.length+"!="+o.length);if("02"===(a=t.substr(e,2))&&(h=l.getVidx(t,e),"00"==t.substr(h,2)&&t.charCodeAt(h+2)<56))throw new Error("not least zeros for DER INTEGER");if(32&parseInt(a,16)){var p=l.getVblen(t,e),g=0,m=l.getChildIdx(t,e);for(d=0;d<m.length;d++)g+=l.getTLV(t,m[d]).length,l.checkStrictDER(t,m[d],n,r,i);if(2*p!=g)throw new Error("sum of children's TLV length and L unmatch: "+2*p+"!="+g)}},u.oidname=function(t){var e,n=f.asn1;return f.lang.String.isHex(t)&&(t=n.ASN1Util.oidHexToInt(t)),""===(e=n.x509.OID.oid2name(t))&&(e=t),e},h=h||(B=Math,q=(R={}).lib={},K=q.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),H=q.WordArray=K.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||U).stringify(this)},concat:function(t){var e,n,r=this.words,i=t.words,s=this.sigBytes,o=t.sigBytes;if(this.clamp(),s%4)for(n=0;n<o;n++)e=i[n>>>2]>>>24-n%4*8&255,r[s+n>>>2]|=e<<24-(s+n)%4*8;else for(n=0;n<o;n+=4)r[s+n>>>2]=i[n>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=B.ceil(e/4)},clone:function(){var t=K.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(4294967296*B.random()|0);return new H.init(e,t)}}),V=R.enc={},U=V.Hex={stringify:function(t){for(var e,n=t.words,r=t.sigBytes,i=[],s=0;s<r;s++)e=n[s>>>2]>>>24-s%4*8&255,i.push((e>>>4).toString(16)),i.push((15&e).toString(16));return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new H.init(n,e/2)}},$=V.Latin1={stringify:function(t){for(var e,n=t.words,r=t.sigBytes,i=[],s=0;s<r;s++)e=n[s>>>2]>>>24-s%4*8&255,i.push(String.fromCharCode(e));return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new H.init(n,e)}},W=V.Utf8={stringify:function(t){try{return decodeURIComponent(escape($.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return $.parse(unescape(encodeURIComponent(t)))}},G=q.BufferedBlockAlgorithm=K.extend({reset:function(){this._data=new H.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=W.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e,n,r,i,s=this._data,o=s.words,c=s.sigBytes,a=this.blockSize,u=c/(4*a);if(e=(u=t?B.ceil(u):B.max((0|u)-this._minBufferSize,0))*a,n=B.min(4*e,c),e){for(r=0;r<e;r+=a)this._doProcessBlock(o,r);i=o.splice(0,e),s.sigBytes-=n}return new H.init(i,n)},clone:function(){var t=K.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),q.Hasher=G.extend({cfg:K.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){G.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new F.HMAC.init(t,n).finalize(e)}}}),F=R.algo={},R),function(t){var e,n,r=h,i=r.lib,s=i.WordArray,o=i.Hasher,c=r.algo,a=[],u=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(a[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++}(),e=[],n=c.SHA256=o.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(t,n){for(var r=this._hash.words,i=r[0],s=r[1],o=r[2],c=r[3],a=r[4],h=r[5],f=r[6],d=r[7],l=0;l<64;l++){if(l<16)e[l]=0|t[n+l];else{var p=e[l-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=e[l-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;e[l]=g+e[l-7]+y+e[l-16]}var v=i&s^i&o^s&o,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&f)+u[l]+e[l];d=f,f=h,h=a,a=c+w|0,c=o,o=s,s=i,i=w+(b+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+s|0,r[2]=r[2]+o|0,r[3]=r[3]+c|0,r[4]=r[4]+a|0,r[5]=r[5]+h|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA256=o._createHelper(n),r.HmacSHA256=o._createHmacHelper(n)}(Math),d.getKey=function(t){if(void 0!==l&&t instanceof l)return t;var e=j(t,"PUBLIC KEY");return d._getKeyFromPublicPKCS8Hex(e)},d._getKeyFromPublicPKCS8Hex=function(t){var e;return(e=new l).readPKCS8PubKeyHex(t),e},f.crypto.Signature=function(t){var e=null;if(this._setAlgNames=function(){var t=this.algName.match(/^(.+)with(.+)$/);t&&(this.mdAlgName=t[1].toLowerCase(),this.pubkeyAlgName=t[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(t,e){for(var n="",r=e/4-t.length,i=0;i<r;i++)n+="0";return n+t},this.setAlgAndProvider=function(t,e){if(this._setAlgNames(),"cryptojs/jsrsa"!=e)throw new Error("provider not supported: "+e);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new f.crypto.MessageDigest({alg:this.mdAlgName})}catch(t){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+t)}this.init=function(t,e){var n=null;try{n=void 0===e?d.getKey(t):d.getKey(t,e)}catch(t){throw"init failed:"+t}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(t){this.md.updateString(t)},this.verify=function(t){if(this.sHashHex=this.md.digest(),"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,t);throw"Please Use RSA, Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=t,void 0!==t&&(void 0!==t.alg&&(this.algName=t.alg,this.provName=void 0===t.prov?"cryptojs/jsrsa":t.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==t.psssaltlen&&(this.pssSaltLen=t.psssaltlen),void 0!==t.prvkeypem)){if(void 0!==t.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{e=d.getKey(t.prvkeypem),this.init(e)}catch(t){throw"fatal error to load pem private key: "+t}}},f.crypto.MessageDigest=function(t){this.setAlgAndProvider=function(t,e){if(t=f.crypto.MessageDigest.getCanonicalAlgName(t),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(t)&&"cryptojs"==e){try{this.md=h.algo.SHA256.create()}catch(e){throw"setAlgAndProvider hash alg set fail alg="+t+"/"+e}this.updateString=function(t){this.md.update(t)},this.digest=function(){return this.md.finalize().toString(h.enc.Hex)}}},this.updateString=function(){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==t&&void 0!==t.alg&&(this.algName=t.alg,void 0===t.prov&&(this.provName="cryptojs"),this.setAlgAndProvider(this.algName,this.provName))},f.crypto.MessageDigest.getCanonicalAlgName=function(t){return"string"==typeof t&&(t=(t=t.toLowerCase()).replace(/-/,"")),t},e.b64tohex=T,e.KJUR=f,e.crypto=f.crypto},995:function(t,e,n){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(255)}catch(t){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},c=o.lib={},a=c.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var s=0;s<i;s++){var o=n[s>>>2]>>>24-s%4*8&255;e[r+s>>>2]|=o<<24-(r+s)%4*8}else for(var c=0;c<i;c+=4)e[r+c>>>2]=n[c>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new u.init(e,t)}}),h=o.enc={},f=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var s=e[i>>>2]>>>24-i%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},d=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var s=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},l=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},p=c.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,s=r.sigBytes,o=this.blockSize,c=s/(4*o),a=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*o,h=t.min(4*a,s);if(a){for(var f=0;f<a;f+=o)this._doProcessBlock(i,f);n=i.splice(0,a),r.sigBytes-=h}return new u.init(n,h)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),o.algo={});return o}(Math),r)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>ku});var t=n(462),e=n.n(t);const i="-1000",s="-999",o=["net","in","sl","ic","bl","5g","5go","bri","mf","dm","pn","das","pw","ph","dp"],c=["da","db","dx","dy","ra","rb","ex","ey","rwd","pk","pkm","si"],a=["g","sc","ec","aa","ab","ba","bb","p","x","click_area","am","sld","am"],u={da:1,db:1,ra:1,rb:1,dx:1,dy:1,ex:1,ey:1,aa:1,ab:1,ba:1,bb:1,ph:1,pw:1},h="unknown",f=["os_version","model","manufacturer"],d=["placementId","count","appId"],l=0,p=1,g=4,m=8,y=16,v=12,b=5,w=7,_=6,x=9,O=10,A=245,C=246,I=247,S=248,E="request_immutable",P="request_mutable",k="anti_immutable",D="anti_mutable",T="device_info",j="app_info",L="app_manifest",N=0,z=2,M=4,B=3,R=2,q={FEED:"feed",SPLASH:"splash",REWARD_VIDEO:"reward_video",REWARD_BROWSE:"reward_browse"},K={feed:6,splash:3,reward_video:5},H="splash",V=1,U=4,$=9,W=10,G="#3185fc",F="onClickAd",Y="onReward",X="onRemainingTime",Z="onVideoStop",J="onVideoPlay",Q={"com.baidu.appsearch":1,"com.qihoo.appstore":2,"com.xiaomi.market":3,"com.tencent.android.qqdownloader":4,"cn.goapk.market":5,"com.tencent.qqpimsecure":6,"com.oppo.market":7,"com.huawei.appmarket":8,"com.bbk.appstore":9},tt=0,et="1",nt={FETCH:1400002,FETCH_SUCCESS:1400003,FETCH_FAIL:1400004,NO_AD:1400006,HAS_AD:1400007,ON_AD_PREPARED:1400009,ON_AD_CONTENT_NO_RIGHT:1400020,ON_SPLASH_IMAGE_SUCCESS:1401008,ON_SPLASH_IMAGE_FAIL:1401009,ON_READY_NEXT_TICK:3000200,ON_YLH_AD_INIT:3000100,ON_YLH_AD_READY:3000406,ON_YLH_AD_APPEAR:1401e3,ON_YLH_AD_DESTROY:3000313,ON_READY_ERROR:3000210,ON_READY_NEXTTICK:3000211,ON_READY_SETTIMEOUT:3000212,ON_APP_STATUS_ERROR:3000213,ON_HELP_READY_NEXT_TICK:3000201,ON_CHECK_EXPOSE_APPEAR:3000300,CHECK_EXPOSE_REPEAT_FIRST:3000311,CHECK_EXPOSE_REPEAT:3000312,ON_AD_SHOW_FAIL:1401001,ON_AD_SHOW_SUCCESS:1401002,EXPOSE:1402e3,EXPOSE_SUCCESS:1402001,EXPOSE_FAIL:1402002,AD_CLICK:1402100,AD_CLICK_CGI_FAIL:4000002,AD_CLICK_CGI_SUCCESS:4000003,AD_CLICK_CGI_TOTAL:4000001,AD_CLICK_COORDINATE_INVALID:4000004,AD_TRACE_CGI_FAIL:4001006,AD_TRACE_CGI_TOTAL:4001001,HIT_AA:3000400,HIT_AB:3000401,EXP_AD_EXPOSE:3000407,EXP_INSTALL_DETECTION:3000408,EXP_OPEN_LINK_OPTIMIZATION:3000409,EXP_AD_EXPOSE_OPT_POLL_TIME:3000410,EXP_AD_EXPOSE_OPT_REVERSE:3000411,QUICK_APP_REQUEST_TIMEOUT:3000412,CS_ACTIVATE:3000402,CS_LAUNCH:3000403,CS_UPDATE:3000404,PV_UPDATE:3000405},rt={UNKNOWN:0,SHOW:1,AD_FAIL:2,VIEW_FAIL:3,FETCH_PARAM_FAIL:4,IN_POLL:5,IN_SETTIMEOUT:6,HAS_EXPOSED:7},it=1,st=0,ot=200,ct=/ylh-sdk-[a-z]+-v\d+\.\d+\.\d+/,at="https://sdk.e.qq.com",ut=1e3,ht=1001,ft=1002,dt=1003,lt="exposure",pt="click",gt=201,mt=Math.PI;function yt(t,e){return t**e}function vt(t){return Math.sqrt(t)}function bt(t){return yt(t,2)}function wt(t){return Math.ceil(t)}function _t(){return Math.random()}function xt(t){return Math.round(t)}function Ot(){return Object.getPrototypeOf(n.g)||n.g}function At(){return Ot().$YLHSDK||{}}function Ct(){return Date.now()}function It(t){return e().MD5(t).toString()}function St(){return It(`${Ct()}${t=1e3*_t(),Math.floor(t)}`);var t}function Et(){return St()}function Pt(t,e){return Object.prototype.toString.call(t)===`[object ${e}]`}function kt(t){return Pt(t,"Object")}function Dt(t){return Array.isArray(t)}function Tt(t){return Pt(t,"Number")}function jt(t){return void 0===t}function Lt(){return Pt(Ot(),"Window")}function Nt(t){return`${Number(t)}`}function zt(t){return String(t)}function Mt(t){return parseFloat(t)}function Bt(t){return JSON.stringify(t)}function Rt(t){try{return JSON.parse(t)}catch(t){return{}}}function qt(t){return Rt(Bt(t))}function Kt(t,e,n){const r=e.length;let i=t;for(let t=0;t<r;t+=1){const n=e[t];if(!i)break;i=i[n]}return void 0===i?n:i}function Ht(t={}){return t.screenWidth<t.screenHeight?0:1}function Vt(t=[]){const e={};return t.forEach(((t={})=>{kt(t)&&Object.keys(t).forEach((n=>{e[n]=t[n]}))})),e}function Ut(t){return null==t||t.getBoundingClientRect({success:t=>{},fail:t=>{}}),new Promise(((e,n)=>{if(t)t.getBoundingClientRect({success:e,fail:(t,e)=>{const r={code:rt.AD_FAIL,msg:`错误原因:${JSON.stringify(t)}, 错误代码:${e}`};n(r)}});else{const t={code:rt.AD_FAIL,msg:"错误原因:dom不存在, 错误代码:AD_FAIL"};n(t)}}))}function $t(){const t=At();return(null==t?void 0:t.system)||{}}function Wt(t,e,n){const r=xt(t/e);return n?`${r}`:r}function Gt(t,e){const n={};return t.forEach((t=>{n[t]=e})),n}function Ft(t){return parseInt(t,10)}function Yt(t){return parseFloat(t)}function Xt(t){let e="";return Object.keys(t).forEach((n=>{const r=t[n],i=kt(r)?Bt(r):r;e+=e?`&${n}=${i}`:`${n}=${i}`})),e}function Zt(t){return new Promise(((e,n)=>{const{storage:r}=$t()||{};r.get({key:t,success:e,fail:n})}))}function Jt(t){const{storage:e}=$t()||{};return e.set(t)}function Qt(t){return Promise.resolve(t)}function te(t){return Promise.reject(t)}function ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ne(t){return decodeURIComponent(t)}function re(t=""){const e={};return t.replace(/\?/g,"").replace(/;$/g,"").split(";").forEach((t=>{const[n,r]=t.split(":"),i=function(t=""){return t.trim().replace(/-([a-z])/gi,((t,e)=>e.toUpperCase()))}(n);e[i]=r})),e}function ie(t,e=0){if(Tt(t)&&Tt(e))return t.toFixed(e);throw TypeError("numberToFixed params invalid")}function se(t,e,n){let r=!0;return t.forEach((t=>{jt(e[t])&&(r=!1)})),r}function oe(t,e){if(kt(t)&&!kt(e))return t;if(!kt(t)&&kt(e))return e;const n=qt(t),r=qt(e);if(Dt(n)&&Dt(r))return n.concat(r);if(kt(n)&&kt(r)){const t={};return Object.keys(n).forEach((e=>{t[e]=n[e]})),Object.keys(r).forEach((e=>{ee(t,e)&&kt(t[e])&&kt(r[e])?t[e]=oe(t[e],r[e]):t[e]=r[e]})),t}return r}function ce(t,e=2){return parseFloat(Number(t).toFixed(e))}function ae(t,e){const{ww:n,wh:r}=t,{top:i,right:s,bottom:o,left:c,width:a,height:u}=e||{};let h=0,f=0;return c<=0&&s>0&&(h=a+c),c>0&&s<=n&&(h=a),c<n&&s>=n&&(h=n-c),i<=0&&o>0&&(f=u+i),i>0&&o<=r&&(f=u),i<=r&&o>r&&(f=r-i),{appearWidth:h||0,appearHeight:f||0}}function ue(t){const e=Tt(t);return!e||e&&t<=0?0:60*t*1e3}const he=t=>{const e={};return Object.keys(t).forEach((n=>{const r=t[n];"id"!==n&&null!=r&&""!==r&&("object"!=typeof r||Array.isArray(r)?e[n]=r:e[n]=he(r))})),e};const fe=new class{constructor(){this.cacheMap=new Map}set(t,e){const n=this.get(t);if(kt(n)&&kt(e)){const r={};Object.keys(n).concat(Object.keys(e)).forEach((t=>{const i=n[t],s=e[t];ee(e,t)?kt(i)&&kt(s)?(Object.assign(i,s),r[t]=i):r[t]=s:r[t]=i})),this.cacheMap.set(t,r)}else this.cacheMap.set(t,e);return this}get(t){return this.cacheMap.get(t)}remove(t){return this.cacheMap.delete(t),this}},de="ads_data",le="expose_timestamp",pe="system_collect_data",ge="cs_cache_config",me="sdk_experiment";function ye(t,e){fe.set(t,e)}function ve(t){return fe.get(t)}function be(t,e={}){fe.set(de,{[t]:e})}function we(t){t&&fe.set(de,{[t]:null})}function _e(){return fe.get(de)||{}}function xe(t){const e=_e();return e&&(Object.keys(e).forEach((n=>{const r=e[n];r&&r.adType===t&&delete e[n]})),function(t){fe.get(de,t)}(e)),e}function Oe(t){const e={};if(!t)return e;return(_e()||e)[t]||e}function Ae(t){fe.set(le,{[t]:Ct()})}function Ce(t){return(fe.get(le)||{})[t]||0}function Ie(t,e){return fe.set(pe,{[t]:e}),e}function Se(t){return(fe.get(pe)||{})[t]}function Ee(){return fe.get(ge)}function Pe(t){return fe.set(ge,t)}function ke(t){return fe.set(me,t)}function De(){const t=Se(j)||{},{packageName:e}=t;return e}function Te(){const{designWidth:t=750}=function(){const{config:t={}}=Se(L)||{};return t}();return t}function je(){const{app:t}=$t();if(t){const e=t.getInfo();return Ie(j,e),{app:e}}return{}}function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Ne(t){var e=function(t,e){if("object"!=Le(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Le(e)?e:e+""}function ze(t,e,n){return(e=Ne(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Re(t,e,n){this.events||(this.events=Object.create(null)),this.events[t]?n?this.events[t].unshift(e):this.events[t].push(e):this.events[t]=[e]}function qe(t,e){Array.isArray(this.events[t])&&(e?this.events[t]=this.events[t].filter((t=>t!==e&&t.origin!==e)):delete this.events[t])}function Ke(t,e){const n=(...n)=>{e.apply(this,n),this.remove(t,e)};n.origin=e,this.on(t,n)}function He(t,...e){Array.isArray(this.events[t])&&this.events[t].forEach((t=>{t.apply(this,e)}))}const Ve={};function Ue(t){return Ve[t]||(Ve[t]={events:{},on:Re,remove:qe,once:Ke,emit:He}),Ve[t]}const $e={createEmitter:Ue,getEmitter:function(t){return Ve[t]},eventEmitters:Ve};const We="https://qzs.gdtimg.com/union/res/union_cdn/page";function Ge(t){return function(t){return/\.[\w]+$/.test(t)}(t)?`${t}`:`${t}.png`}function Fe(t){const e=Ge(t);return`${We}/ams_icon/${e}`}function Ye(t){const e=Ge(t);return`${We}/temp_v2/${e}`}const Xe="0",Ze="1",Je="2",Qe="ams_logo",tn=`${Qe}_dark`,en=`${tn}_fb`,nn=`${Qe}_light`,rn=`${nn}_fb`,sn=`${Qe}_transparent`,on=`${sn}_fb`,cn="normal",an="feedback",un=(Fe(tn),Fe(en),Fe(nn),Fe(rn),Fe(sn),Fe(on),{lifetimes:{onInit(){this.logo=Fe("ad_logo_transparent")}},onError(){this.logo=function({type:t="png",base64:e}={}){return`data:image/${t};base64,${e}`}({base64:"iVBORw0KGgoAAAANSUhEUgAAAFgAAAAgCAMAAAChOk+qAAAAtFBMVEUAAACxsbGysrKzs7Ovr6+wsLDDw8O0tLTJycmzs7Ozs7O2tra0tLSwsLC0tLSzs7Ozs7Ozs7PJycmzs7PQ0NCzs7Ozs7PQ0NC7u7vJycnR0dG0tLTOzs7T09O1tbXR0dHOzs7Q0NDR0dGzs7PS0tK0tLTT09O0tLTKysrQ0NC0tLTQ0NDR0dG4uLjR0dHS0tLNzc3Dw8PPz8/AwMC0tLTQ0NDS0tK3t7ezs7PQ0NDMzMy5ubmT16ElAAAAOHRSTlMAgOBgIEAEnwf88DDSEPTqsFALb/vAkYQaEru3SS8q9fHl3qF9dm5bIcnJs6Wllz4p9tyVhWJbSlPoQFYAAAG5SURBVEjH7dTXcuJAEAXQqxEaZRSwyMlkZ29u4f//r+0Z13olMyCKJz9wXqagVLdaPd3C1dVX1rFxILTRrOWmIR/eZrjyYGAFce1xyvg/QqNBRJRIYFWW5W9UxY6WUdd5B6VDrbOC4xER+X2Mbzi4hyqb6oQuWAjLsgqyNAfHyLVPRCPsbjl39vIp2GnVgBWBYAEJrYNjskSV0s/v9rrgwaAWrKLqXFL30dyKMOLc9lY+0du+fMhfht97J4MzsnFOsExVg9ew+Hi7G/QXZXkzOVlxiLOC83tOfJJhW9X96j2UTcGC/e+xcmz4234Rq4Ej30ZPDcZQVoIPZ/oADLyw7zlZ7qXEXIznfIGLiXydeA3v22B67ycOILvERt6fgGh/O84fZ7PnfysH0zJXOMbNUIWmgO2/D5zqx7eN3HA75tDSyLTgVOHC4KcK7GKaqItzoOv+kY/VoiygFakxuHKVxmAVGE2xJtaB56ufOzyqwfgFLbAuChZcaMhzwYFLQPLEJVPgmYNXEopD2UXBmRBb/REKljGf2yRSV7EbznsetC7FxmDrQ+DiEqKAMVh8oMuClzaaW3F1dcpfAXE6Lrthq3sAAAAASUVORK5CYII="})}});function hn(t={}){const{type:e,changedTouches:n=[]}=t;return/^touch/.test(e)&&n.length>0}function fn(t){const{type:e}=t;return/^click/.test(e)}function dn(t){if(!t)return{};const{timeStamp:e,clientX:n,clientY:r,changedTouches:i=[]}=t;let s=n,o=r;if(hn(t)){const[{clientX:t,clientY:e}]=i;s=t,o=e}return{timeStamp:e,clientX:s,clientY:o}}function ln(t,e){!function(t){null==t||t.stopPropagation()}(e);const{clientX:n,clientY:r}=dn(e);return Ut(t).then((t=>{const e=function(t={}){const{point:e={},rect:n}=t,{clientX:r,clientY:i}=e,{left:s,right:o,top:c,bottom:a}=n;return r>=s&&r<=o&&i<=a&&i>=c}({point:{clientX:n,clientY:r},rect:t});return{isInner:e}})).catch((()=>({isInner:!0})))}function pn(t){return t.detail}const gn="1",mn="2",yn="3";function vn(t,e){const{ext:n}=t,{appid:r}=n,i=Xt({type:e,id:r,title:Kt(n,["app_channel_info","app_name"],"")});return`${We}/app_info/index.html?${encodeURIComponent(i)}`}function bn(t){const e=t.ext.app_channel_info||{},n=function(t){const{producttype:e}=t;return e!==v?{}:{permissions:vn(t,gn),privacy:vn(t,mn),description:vn(t,yn)}}(t);if(t.producttype!==v)return{};const{app_name:r,author_name:i,version_name:s,icp_number:o,suitable_age:c,package_size_bytes:a}=e,{permissions:u,privacy:h,description:f}=n,d=o||"未备案",l=c||"-";return{name:`名称:${r}`,author:`开发者:${i}`,version:`版本号:${s}`,icpNum:`备案号:${d}`,suitableAge:`适用年龄:${l}`,icpNumber:d,appSuitableAge:l,appName:r,authorName:i,versionName:s,permissions:u,privacy:h,description:f,packageSize:a}}const wn={lifetimes:{onInit(){this.id=Et();const t=Oe(this.adId),e=function(t){var e;const{producttype:n,ext:r}=t;return n===v&&!(null===(e=r.app_channel_info)||void 0===e||!e.app_name)}(t);if(!e)return;this.isShow=e;const n=bn(t),r=[{id:"name",value:n.name},{id:"author",value:n.author},{id:"version",value:n.version},{id:"icpNum",value:n.icpNum},{id:"suitableAge",value:n.suitableAge}];this.showItems=r,this.webItems=[{id:"permissions",value:"权限列表"},{id:"privacy",value:"隐私协议"},{id:"description",value:"功能介绍"}],this.info=n}},onClick(t,e){const n=$t(),r=this.info[t];if(!r||!n.webview||"render"!==this.type)return;ln(this.$element(t),e).then((({isInner:t})=>{t&&n.webview.loadUrl({url:r,showloadingdialog:!0})}))}},_n={lifetimes:{onInit(){this.$on(Y,this.onReward),this.$on(X,this.onRemainingTimeChange)}},onReward(){this.rewardedTips="恭喜获得奖励",this.isRewarded=!0},onRemainingTimeChange(t){const e=pn(t),n=e<1?1:e;this.showRemainingTime=n}},xn="#ffffff",On="background";function An({color:t,fontSize:e}){return`color:${t};font-size:${e};`}function Cn(t,e=On){const{isLoading:n,customStyle:r,buttonSize:i,bgColor:s,progressBackColor:o}=t;let c="";return c=n&&e===On?o:s,`${r};${i};background-color:${c}`}const In={lifetimes:{onInit(){const t=this.onCtaStatusChange.bind(this);this.$watch("status",t),this.$watch("progress",t);const e=Oe(this.adId),{producttype:n}=e;this.pt=n;const r=re(this.customStyle),{width:i="670px",height:s="80px",fontSize:o="28px",color:c=xn,backgroundColor:a=G}=r;this.color=c,this.fontSize=o,this.bgColor=a,this.shakeIcon=Ye("shake_icon"),this.txtStyle=An({fontSize:o,color:c}),this.bgTxtStyle=An({fontSize:o,color:a});const u=`border-radius:${parseFloat(s)/2}px;`;this.buttonSize=`width:${i};height:${s};${u}`,this.containerStyle=Cn(this),this.loadingStyle=Cn(this,"foreground"),this.onCtaStatusChange()},onReady(){}},onCtaStatusChange(){const{pt:t,status:e,progress:n,color:r,bgColor:i}=this,s=function(t){let e="";const{pt:n,status:r,progress:i,prefixTxt:s="摇动/点击"}=t,o=`${s}查看详情`;switch(n){case v:switch(r){case g:e=`下载中 ${i}%`;break;case m:e=`${s}立即安装`;break;case p:e=`${s}立即打开`;break;default:e=`${s}下载或打开第三方应用`}break;case 53:e=`${s}打开快应用`;break;case 25:case 30:case 1e3:e=`${s}查看详情`;break;default:e=o}return e}({pt:t,status:e,progress:n});this.ctaTxt=s;const o=e===g;this.isLoading=o,this.bgTxtStyle=An({fontSize:this.fontSize,color:o?i:r}),this.containerStyle=Cn(this),this.loadingStyle=Cn(this,"foreground")}};const Sn={c2:"c2",v2:"v2",ttc:"ttc",sdk:"sdk"};async function En(t,e){return t}async function Pn(t){const e=await En(t,Sn.c2);return En(e,Sn.ttc)}async function kn(t){return En(t,Sn.v2)}async function Dn(t){return En(t,Sn.sdk)}const Tn={POST:"POST",GET:"GET"},jn={TEXT:"text",JSON:"json"};function Ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zn(t,e={}){return new Promise(((n,r)=>{const i=$t();i&&t?i.fetch.fetch(Nn(Nn({url:t},e),{},{success:t=>{const{code:e,data:i}=t;e>=200&&e<300&&n(i),e>=400&&e<600&&r(t)},fail:(t,e)=>{const n={code:it,data:`错误原因:${JSON.stringify(t)}, 错误代码:${e}`};r(n)}})):r()}))}async function Mn(t,e){return zn(`${await kn(t)}&${Xt(e)}`)}async function Bn(t,e){return zn(`${await Pn(t)}&${Xt(e)}`).then((t=>Rt(t).data))}function Rn(t={}){return zn("https://v.gdt.qq.com/gdt_stats.fcg",{method:Tn.POST,responseType:jn.TEXT,data:t})}function qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qn(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hn(){return new Promise(((t,e)=>{const{device:n}=$t()||{};if(n)n.getInfo({success:e=>{Object.assign(e,{oww:e.windowWidth,owh:e.windowHeight}),!e||e.windowWidth||e.windowHeight||Object.assign(e,{windowWidth:e.screenWidth,windowHeight:e.screenHeight-e.statusBarHeight}),t(e)},fail:(t,n)=>{const r={code:rt.VIEW_FAIL,msg:`错误原因:${JSON.stringify(t)}, 错误代码:${n}`};e(r)}});else{const t={code:rt.VIEW_FAIL,msg:"错误原因:divice不存在, 错误代码:VIEW_FAIL"};e(t)}}))}function Vn(){return new Promise(((t,e)=>{const n=Te(),r={ww:750,wh:812};Hn().then((e=>{const r=((t,e)=>{const{windowWidth:n,windowHeight:r}=e,i=t/n;return{ww:n*i,wh:r*i}})(n,e);t(Kn(Kn({},r),e))})).catch((n=>{n?e(n):t(r)}))}))}function Un(){const t=Se(T),{manufacturer:e="none",vendorOsName:n="",vendorOsVersion:r=""}=t,i=/\d+\.\d+\.\d+/,s=e.toLowerCase();let o="";i.test(n)&&([o]=n.match(i)),i.test(r)&&([o]=r.match(i));const[c="0"]=o.split("."),a=/magic/i.test(n)&&/honor/i.test(s),u=a&&Mt(c)>=8,h=a&&Mt(c)<8;return{isHonor:u,isHuawei:/huawei/i.test(s)||h,isVivo:/vivo/i.test(s),isXiaomi:/xiaomi|redmi/i.test(s),isOppo:/oppo|realme|oneplus/i.test(s)}}function $n({$app:t,scene:e}){const n=function({$app:t,scene:e}){return Kt(t,["$def","ylh_sdk",e,"traceId"])}({$app:t,scene:e}),r=Oe(n),{placementId:i}=r;return i}function Wn(t){const{adType:e}=Oe(t)||{};return e===q.REWARD_VIDEO}function Gn(t){const{adType:e}=Oe(t)||{};return e===q.REWARD_VIDEO||e===q.REWARD_BROWSE}function Fn(t){const{adType:e}=Oe(t)||{};return e===q.FEED}function Yn(t){const{adType:e}=Oe(t)||{};return e===q.SPLASH}function Xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xn(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jn(t,e={}){const n=function(t,e={}){const{viewId:n,duration:r=0,currentTime:i=0,pauseCount:s}=t,o=xt(r),c=xt(i);return{viewid:n,video:Zn({bt:"0",et:`${"1"===e.ef?o:c}`,bf:"1",ef:"0",pp:"3",pa:s>0?"2":"1",pb:"1",ps:"0",vt:`${o}`},e)}}(t,e);Rn(n)}const Qn={lifetimes:{onInit(){this.id=Et(),this.$on(F,this.onAdClick),this.$on(Z,this.onVideoStop),this.$on(J,this.onVideoPlay),this.$on("onPageShow",this.onPageShow),this.$on("onPageHide",this.onPageHide),this.$on("onShowEndCard",this.onShowEndCardChange);const t=re(this.customStyle),e={width:"100%",height:"100%"},{adId:n}=this;Wn(n)&&Object.assign(e,{objectFit:"contain"}),Yn(n)&&Object.assign(e,{objectFit:"cover"});const r=Zn(Zn({},e),t);this.containerStyle=r,this.videoStyle=e,this.maskStyle={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,0,0,0.001)"};const i=Oe(this.adId),{viewId:s}=i;this.viewId=s,this.errCount=0,this.pauseCount=0,this.isShowEndCard=!1},onReady(){this.$nextTick((()=>{const t=this.$element(this.id);t&&(t.setCurrentTime=()=>{})}))}},onPageShow(){this.visible=!0;const{isVivo:t}=Un();t&&!this.isShowEndCard&&this.onPlay()},onPageHide(){this.visible=!1},onPlay(){this.$element(this.id).start()},onPrepared({duration:t}){this.duration=t,this.$emit("prepared",{duration:t})},onStart(){this.$emit("start")},onPause(){const t=Ct();t-(this.prevTime||0)<500||(this.prevTime=t,this.pauseCount+=1,this.$emit("pause"),Jn(this))},onFinish(){Jn(this,{ef:"1"}),this.$emit("finish")},onTimeupdate({currenttime:t}){this.errCount=0,this.currentTime=t,this.$emit("timeupdate",{currentTime:t})},onError(){const{isHuawei:t}=Un();t&&(this.errCount+=1,this.errCount<5)||(t&&this.$valid||!t&&this.$valid&&this.visible)&&(Jn(this,{ps:"2"}),this.$emit("error"))},onVideoPlay(){this.onPlay(),Jn(this,{pa:"2"})},onVideoStop(){this.$element(this.id).pause()},onAdClick(){Jn(this,{ps:"3"})},onShowEndCardChange(){this.isShowEndCard=!0}},tr=Qn;var er=n(646);const nr="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCHQqMS+P3aIwKsWUqOUGy2IknA\npuyDg97H5iICPn+8dAEuX9+0CXUXVfkm+Bx4M3yGm9YyZGV0PAOeCx3+kTg0c5Cn\nzApxMRh2rvHyVM9DBYOSxAHJxZAXEMiyPNacFIOZE4hFxxUdUSs2HRpbGDofpLTN\nC92UHZzs/8gqw0DNfwIDAQAB\n-----END PUBLIC KEY-----";function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sr(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}const or=["traceId","enumCode"],cr=["enumCode","traceId"],ar=["traceId","errorCode","ext","enumCode"],ur=["ext"],hr=["enumCode"],fr=["errorCode","ext"],dr=["errorCode","ext"],lr=["traceId"],pr=["traceId"],gr=["traceId","ext","enumCode"],mr=["traceId","enumCode"],yr=["traceId","enumCode"],vr=["traceId","enumCode"];function br(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?br(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _r(t){return 0===t?1:1===t?2:0}function xr(t){try{const e=At();if(!e.analysis)return;e.analysis.onUserAction(t)}catch(t){}}function Or(t){const{traceId:e,enumCode:n}=t,r=sr(t,or);xr(wr({ei:nt.EXPOSE,trace_id:e,enum_code:n},r))}function Ar(t){const{enumCode:e,traceId:n}=t,r=sr(t,cr);xr(wr({ei:nt.EXPOSE_SUCCESS,enum_code:e,trace_id:n},r))}function Cr(t){const{traceId:e,errorCode:n,ext:r={},enumCode:i}=t,s=sr(t,ar);xr(wr({ei:nt.EXPOSE_FAIL,error_code:n,ext:r,trace_id:e,enum_code:i},s))}function Ir(t){const{errorCode:e,ext:n={}}=t,r=sr(t,dr);xr(wr({ei:nt.NO_AD,error_code:e,ext:n},r))}function Sr(t){const{traceId:e}=t;xr({ei:nt.ON_YLH_AD_INIT,trace_id:e})}function Er(t){const{traceId:e,channel:n}=t;xr({ei:nt.CHECK_EXPOSE_REPEAT_FIRST,trace_id:e,enum_code:"setTimeout"===n?1:2})}function Pr(t){const{errorCode:e,traceId:n,ext:r}=t;xr({ei:nt.ON_AD_SHOW_FAIL,error_code:e,ext:r,trace_id:n})}function kr(t){const{traceId:e}=t;xr({ei:nt.ON_AD_SHOW_SUCCESS,trace_id:e})}function Dr(t){const{errorCode:e,enumCode:n,traceId:r,ext:i}=t;xr({ei:nt.AD_CLICK,error_code:e,enum_code:n,ext:i||{},trace_id:r})}function Tr(t){const{traceId:e,errorCode:n,ext:r}=t;xr({ei:nt.ON_YLH_AD_READY,trace_id:e,error_code:n,ext:r})}function jr(t){const{traceId:e,ext:n,enumCode:r}=t,i=sr(t,gr);xr(wr({ei:nt.ON_YLH_AD_DESTROY,trace_id:e,enum_code:r,ext:n},i))}function Lr(t){let{traceId:e,enumCode:n=0}=t,r=sr(t,mr);xr(wr({ei:nt.AD_CLICK_CGI_TOTAL,trace_id:e,enum_code:n},r))}function Nr(t){let{traceId:e,enumCode:n=0}=t,r=sr(t,yr);xr(wr({ei:nt.AD_CLICK_CGI_FAIL,trace_id:e,enum_code:n},r))}function zr(t){let{traceId:e,enumCode:n=0}=t,r=sr(t,vr);xr(wr({ei:nt.AD_CLICK_CGI_SUCCESS,trace_id:e,enum_code:n},r))}function Mr({traceId:t,params:e,event:n,rect:r}){const{s:i={},mu_p:o={}}=e,c=wr(wr({},i),o);Object.keys(c).some((t=>{const e=c[t];return/null|NaN/.test(e)||!e||/-\d/.test(e)&&e!==s}))&&xr({ei:nt.AD_CLICK_COORDINATE_INVALID,trace_id:t,ext:{params:e,rect:r,event:n}})}const Br="cs_cache_pv";const Rr="cs_cache_config",qr="cs_seq",Kr="cs_display",Hr="cs_placement",Vr="cs_sdk",Ur="cs_plugin",$r="exp_cfg",Wr=1e5,Gr=t=>`${t}Settings key不存在`;function Fr(t,e,n,r){let i=!0;return i=!(!e||!t)&&function(t={}){const{data:e,sign:n}=t;try{const t=new er.KJUR.crypto.Signature({alg:"SHA256withRSA",prvkeypem:nr});return t.updateString(e),t.verify(er.b64tohex(n))}catch(t){return!1}}({sign:t,data:e,type:r,from:n}),i}function Yr(t){return!jt(t)&&""!==t}function Xr(t){const n=function(t){return e().enc.Base64.parse(t).toString(e().enc.Utf8)}(t);return Rt(n)}function Zr(t,e=!1){return t?Zt(t).then((t=>e&&t?Rt(t):t)):te(Gr("get"))}function Jr(t,e,n){return t?Jt({key:t,value:n?Bt(e):e}):te(Gr("set"))}function Qr({sign:t,data:e,cacheKey:n}={}){if(!Fr(t,e,n,"set"))return!1;const r=Xr(e);return!!r&&(ye(n,{sign:t,data:r}),Jr(n,{sign:t,data:e},!0),r)}async function ti({cacheKey:t}){const e=ve(t);return e||Zr(t,!0).then((e=>{const{sign:n,data:r}=e;if(!(!n||!r)&&Fr(n,r,t,"get")){const t=Xr(r);if(t)return{sign:n,data:t}}return{}})).catch((t=>({data:{}})))}function ei(){return ti({cacheKey:Vr})}async function ni(){const t={},e=Ee();return e||Zr(Rr,!0).catch((()=>t))}function ri({plainConfig:t}){if(!t)return te();delete t.setting.app,delete t.sig.app;const{sig:{placement:e,sdk:n,jar:r,url:i}={},setting:{placement:s,sdk:o}={}}=t,c=qt(t);if(e&&s){const t=function({sign:t,data:e}){return Qr({sign:t,data:e,cacheKey:Hr})}({sign:e,data:s});t&&(c.setting.placement=t)}if(n&&o){const t=function({sign:t,data:e}){return Qr({sign:t,data:e,cacheKey:Vr})}({sign:n,data:o});t&&(c.setting.sdk=t)}return r&&i&&function({sign:t,data:e}){ct.test(e)&&(ye(Ur,{sign:t,data:e}),Jr(Ur,{sign:t,data:e},!0))}({sign:r,data:i}),Pe(c),Jr(Rr,t,!0)}async function ii({key:t,placementId:e}){if(!t)return te();let n;try{if(e){const r=ve(Kr)||{data:{}};0;const i=Kt(r.data,["ctrl_config",t]);if(Yr(i))n=i;else{0;const r=Kt((await ti({cacheKey:Hr})).data,[e,t]);if(Yr(r))n=r;else{0;const e=Kt((await ei()).data,[t]);Yr(e)&&(n=e)}}if(Tt(n)&&n>Wr){return Kt(r.data,["cfg","playcfg",n])}}else{0;const e=Kt((await ei()).data,[t]);Yr(e)&&(n=e)}}catch(t){return n}return n}async function si({key:t}){return ii({key:t})}function oi({key:t,placementId:e}){return ii({key:t,placementId:e})}function ci(t={}){const{seq:e,setting:{display:n}}=t;!function(t){if(!t)return;const e=Ee();e&&(e.seq=t,Pe(e),ni().then((e=>{e&&(e.seq=t,Jr(qr,e,!0))})))}(e),function(t={}){ye(Kr,{data:t})}(n)}async function ai({key:t}){let e;try{const n=await si({key:t});if(!(Tt(n)&&n>Wr))return n;const r=function(t){return(fe.get(me)||{})[t]}(t);return jt(r)?Zr($r).then((n=>{if(n){const e=Rt(n);return ke(e),e[t]}return e})).catch((()=>e)):r}catch(t){return e}}const ui=class{constructor(t={}){const{duration:e,timeout:n=1e3,itemTimeoutCb:r=()=>{},timeoutCb:i=()=>{}}=t;this.startTime=0,this.pauseTime=0,this.diffTime=0,this.duration=e,this.remaining=e,this.timeout=n,this.paused=!0,this.timer=null,this.timeoutCb=i,this.itemTimeoutCb=r}start(){if(this.paused=!1,clearTimeout(this.timer),this.remaining>0){const{diffTime:t}=this,e=t?this.timeout-t:this.timeout;if(this.diffTime=0,this.paused)return void clearTimeout(this.timer);const n=Ct();this.startTime=n,this.timer=setTimeout((()=>{if(this.paused)return void clearTimeout(this.timer);const t=Ct()-n;this.remaining-=e+t-this.timeout,this.remaining<=0?(this.timeoutCb(),clearTimeout(this.timer)):(this.itemTimeoutCb(this.remaining),this.start())}),e)}}pause(){this.paused=!0,this.pauseTime=Ct();const t=this.pauseTime-this.startTime;this.diffTime=t,this.remaining-=t,clearTimeout(this.timer)}},hi=100,fi={lifetimes:{onInit(){},onReady(){this.startCountDown()},onDestroy(){this.timer.pause(),this.timer=null},onPageShow(){this.timer&&this.timer.start()},onPageHide(){this.timer&&this.timer.pause()}},async startCountDown(){if(!this.timer)try{const t=$n({$app:this.$app,scene:H}),e=1e3*(await oi({placementId:t,key:"qasplsst"})||5),n=40;setTimeout((()=>{let t=100;const r=new ui({duration:e,timeout:n,itemTimeoutCb:n=>{t=n/e*hi;const r=n%1e3,i=wt(n/1e3);0===r&&this.$emit("timeoutUpdate",{remainingTime:i}),this.drawCircle({progress:t})},timeoutCb:()=>{this.drawCircle({progress:0}),this.$emit("skip")}});r.start(),this.timer=r}),10)}catch(t){}},drawCircle(t={}){if(!this.timer)return;const{progress:e}=t,n=1.5*mt;let r=-.5*mt;r=e<=25?(1.5+e/hi*2)*mt:e>25&&e<hi?(e/hi*2-.5)*mt:-.5*mt;const i=this.$element("cvs").getContext("2d"),s=this.bgSize/2,o=s,c=this.circleRadius,a=this.bgSize;i.clearRect(0,0,a,a),i.beginPath(),i.arc(s,o,c,n,r),i.lineWidth=this.lineWidth||2,i.lineCap=e>=hi?"square":"round",i.strokeStyle=this.strokeStyle||"rgba(255,255,255,0.6)",i.stroke()},onSkip(){this.timer.pause(),this.$emit("skip")}},di={lifetimes:{onInit(){this.defaultStyle="width:52px;height: 52px;border-radius:26px;background-color:rgba(0,0,0,0.5);"}},onClose(t){ln(this.$element(this.id),t).then((({isInner:t})=>{t&&this.$emit("close")}))}};function li(){return new Promise(((t,e)=>{const n=$t();n.volume?n.volume.getMediaValue({success(e){t(e.value)},fail:e}):e()}))}const pi="mutedChange",gi={lifetimes:{onInit(){this.$watch("muted",this.onMutedChange.bind(this)),this.id=Et(),this.defaultStyle="position:relative;background-color:rgba(0,0,0,0.5);align-items:center;justify-content:center;height:52px;border-radius:52px;",function({muted:t}={}){return new Promise(((e,n)=>{t?e({muted:!0}):li().then((t=>{e({muted:!t})})).catch(n)}))}({muted:this.muted}).then((({muted:t})=>{this.$emit(pi,{muted:t}),this.onMutedChange(t)}))}},onMutedChange(t){const e="volume_"+(t?"muted":"voice");this.volumeIcon=Ye(e)},onVolumeChange(t){ln(this.$element(this.id),t).then((({isInner:t})=>{t&&function({currentMuted:t}){return new Promise(((e,n)=>{t?li().then((t=>{e({muted:!t})})).catch(n):e({muted:!0})}))}({currentMuted:this.muted}).then((({muted:t})=>{this.onMutedChange(t),this.$emit(pi,{muted:t})}))}))}},mi="errorCode",yi="errorMsg",vi="请在真机环境调试";class bi{constructor(){this.events={}}on(t,e,n=!1){this.events[t]||(this.events[t]=[]),this.events[t].push({isOnce:n,handler:e})}emit(t,...e){this.events[t]&&this.events[t].forEach((n=>{const{handler:r,isOnce:i}=n;r(...e),i&&this.off(t,r)}))}off(t,e){this.events[t]&&(this.events[t]=this.events[t].filter((({handler:t})=>t!==e)))}once(t,e){this.on(t,e,!0)}}const wi="AD_LOAD",_i="AD_CLOSE",xi="AD_ERROR",Oi="AD_EXPOSE",Ai="AD_CLICK",Ci="AD_REWARD",Ii="AD_VIDEO_FINISH",Si="qaaralcen",Ei="qasecmodule";async function Pi(){return await ai({key:"qasecmodulepparams"})}!function(t){const e=152,n=149,r=147,i=153,s=1190,o=1168,c=1158,a=141,u=150,h=137,f=146,d=157,l=143,p=139,g=787,m=537,y=t();function v(t,e,n,r){return zi(r- -m,n)}function b(t,e,n,r){return zi(e-g,n)}for(;;)try{if(574868===parseInt(v(0,0,-e,-143))/1+parseInt(v(0,0,-n,-r))/2*(-parseInt(v(0,0,-142,-i))/3)+parseInt(b(0,1187,s))/4*(-parseInt(b(0,o,c))/5)+-parseInt(v(0,0,-a,-u))/6+-parseInt(v(0,0,-h,-f))/7+-parseInt(v(0,0,-d,-e))/8*(parseInt(v(0,0,-146,-157))/9)+parseInt(v(0,0,-l,-p))/10)break;y.push(y.shift())}catch(t){y.push(y.shift())}}(ji);const ki={};function Di(t,e,n,r){return zi(r-69,e)}ki.da="",ki.db="",ki.dx="",ki.dy="",ki.ex="",ki.ey="",ki.ra="",ki.rb="",ki.g="",ki.sc="",ki.ec="",ki.aa="",ki.ab="",ki.ba="",ki.bb="",ki.sld="",ki[Di(0,448,0,452)]="",ki.am="",ki.p="",ki.x="",ki.sr="",ki.mp="",ki[Ni(843,855,851,846)]="",ki.ia="",ki[Ni(851,848,855,848)]="",ki.ic="",ki.bl="",ki[Di(0,446,0,457)]="",ki.br="",ki.mf="",ki.dm="",ki.pn="",ki.pw="",ki.ph="",ki.dp="",ki.in="",ki["5g"]="",ki["5go"]="",ki[Di(0,457,0,455)]="",ki.pk="",ki[Ni(843,855,852,842)]="",ki.si="",ki[Ni(858,854,856,852)]="",ki.sl="",ki[Ni(862,863,858,857)]="";const Ti=ki;function ji(){const t=["CgTT","otK2ntbxvgHfENG","q0Xjq0S","y3rZ","zgfZ","mZuZodG1nJbqA2roqwi","CNDK","mZzVCgXPt2O","y2XPy2S","nJnfwwvWt0y","ndC4nZvXBLfQBge","uKvrvuvtva","y2XPy2TFyxjLyq","m0vVvefxwG","mte0otq2nfPxy0TJAG","BMv0","nJm1ntHgzgjXq2W","yNjP","yxnZAwDU","mJiZmJe0oeDXy0zYvq","ntKXnteWnuPJy2LeBW","DM9S"];return(ji=function(){return t})()}const Li=["sr","mp",Di(0,457,0,461),"ia","cts"];function Ni(t,e,n,r){return zi(n-459,e)}function zi(t,e){const n=ji();return zi=function(e,r){let i=n[e-=380];if(void 0===zi.moVbPt){zi.yoTRvS=function(t){let e="",n="";for(let n,r,i=0,s=0;r=t.charAt(s++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t<r;t++)n+="%"+("00"+e.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(n)},t=arguments,zi.moVbPt=!0}const s=e+n[0],o=t[s];return o?i=o:(i=zi.yoTRvS(i),t[s]=i),i},zi(t,e)}class Mi{constructor(t={}){var e,n;Object[(e=1112,n=1104,Di(0,e,0,n-646))](this,Ti,t)}}const Bi={EXPOSURE:"exposure"};Bi[Di(0,454,0,464)]=Di(0,460,0,470),Bi[Di(0,442,0,451)]="request";const Ri=Bi;class qi{}function Ki(t,e,n,r){return Gi(n- -707,e)}function Hi(t,e){const n=196,r=251,i=242,s=655,o=223,c=215,a=213,u=704,h=302,f=267,d=973,l=1052,p=1045,g=1033,m=1064,y=1055,v=1032,b=981,w=1009,_=984,x=977,O=880,A=922,C=829,I=248,S=288,E={};function P(t,e,n,r){return Gi(e-S,t)}function k(t,e,n,r){return Gi(r- -182,e)}E[P(700,670,629,641)]=function(t,e){return t!==e},E[k(0,237,0,n)]=k(0,r,0,i),E[P(602,s)]="SVaqb";const D=E;var T=Object.keys(t);if(Object[k(0,184,0,o)+"ertySymbols"]){var j=Object["getOwnProp"+k(0,c,0,a)+"s"](t);e&&(j=j[P(u,721)]((function(e){function n(t,e,n,r){return P(e,r-I)}function r(t,e,n,r){return k(0,n,0,e-C)}if(D[r(0,1029,d)](D.UmEKS,D.CpSXd))return Object[r(0,l,p)+"ertyDescri"+r(0,g,m)](t,e)[r(0,y,v)];_0xebc8f9[n(0,b,0,w)+n(0,_,0,x)](_0x237740,_0x21d857,_0x247e87[r(0,l,1105)+n(0,997,0,954)+n(0,O,0,A)](_0x4ea034,_0x2de0a8))}))),T[k(0,h,0,f)].apply(T,j)}return T}function Vi(t){const e=905,n=868,r=935,i=1292,s=1332,o=1321,c=1269,a=1338,u=1295,h=979,f=926,d=964,l=978,p=862,g=869,m=856,y=819,v=876,b=790,w=838,_=930,x=883,O=844,A=879,C=643,I=243,S=544,E=536,P=557,k=370,D=346,T=366,j=47,L=1189,N=88,z=912,M={ycGVF:function(t,e,n,r){return t(e,n,r)},iyKmQ:function(t,e){return t<e},OVwba:function(t,e){return t!=e},rEZGN:function(t,e){return t%e},fwstj:function(t,e,n){return t(e,n)},RhtFm:function(t,e){return t(e)},Ysuwe:function(t,e){return t(e)}};function B(t,e,n,r){return Gi(t-z,n)}for(var R=1;M.iyKmQ(R,arguments[K(959,e,n,r)]);R++){var q=M[B(i,0,1264)](null,arguments[R])?arguments[R]:{};M.rEZGN(R,2)?M[B(s,0,1344)](Hi,M[B(o,0,c)](Object,q),!0)[B(a,0,u)]((function(e){M.ycGVF(ze,t,e,q[e])})):Object["getOwnPropertyDescri"+K(h,f,d,l)]?Object.defineProperties(t,Object[K(899,p,g,m)+K(y,875,v,840)+"ptors"](q)):M.RhtFm(Hi,M[K(b,w,847,841)](Object,q))[K(_,x,O,A)]((function(e){function n(t,e,n,r){return K(t-j,e- -L,n-N,n)}function r(t,e,n,r){return B(e- -773,0,n)}Object[r(0,612,C)+n(-I,-291,-242)](t,e,Object[r(0,S,E)+r(0,P,578)+n(-k,-D,-T)](q,e))}))}function K(t,e,n,r){return Gi(e-457,r)}return t}function Ui(){const t=["mZGZmZKWmw15ugnNyG","mZq0otu1ognYy0P0rW","ChrVCG","t0HUCu8","DhDOyvu","z0nSAwvUDfjLyW","u1jYD3K","qurFrKfjta","Dg91y2GG5lQl5lU2ioE8UG","vgHYsMm","CfzLyK4","zxj0Evn5BwjVBa","v1nf","mti5mZK5ndr2wKTcz3G","uMT1CLy","wKP2BNi","sw50zxjHy3rPBW","BwjsDxG","r1PHq0u","zxjYB3jeyxrHoG","sgX0ANy","z2v0t3DUuhjVCa","nZG3nZyWwLnfuw9w","z0XLqM0","zw51BwvYywjSzq","uMH0rM0","ENf5DMy","EMnNBuS","vff4qNe","ode1nJG2ohjkwxbjAG","nefpz0vfuW","ve55BLi","z2v0uMv3yxjKvG","6zsz6k+V5y6F5zUG77YA","zxj0EurLC2nYAq","q2Lqr2e","zNDZDgO","EuLbANK","twjcEue","A2v5CW","AKrxveG","DevStxK","zM9YrwfJAa","D1nJExC","lcdPLjNOR6/KU6pNOihVVjO","z2v0qwrdBgLJAW","mtb5DhL6DMq","wwfJqNO","ANPxA1m","zMLSDgvY","rMH4Bee","ww11rey","y29Kzq","t1DTCvu","nZuZnZG2nvLryvLkEa","x0zbsuW","mZy1mtiYnwvAsKfrBG","zxj0Eq","uNPtCgK","C2zkrvu","BKLUzM8","zwnvvK0","uKvxqvjex0jstW","CLbHCMfTCW","BgvUz3rO","ChvZAa","uxLLrKS","uLnvv1q","vNjiA0i","nfnmCePyta","Eu5fvei","Aw5LCLnPEMu","sfbuEe0","AwrLB0LUzM8","qMvbrgq","uhvQzNO","z2v0uMvJDa","uwLIs0m","vuT3B3G","z2v0qM91BMrPBG","AfDjBvy","5zYOlcdPLjNOR6/KU6pNOihVVjPbra","yxbWBhK","tMfxDNC","z2v0qwrdB250yq","ChrVCNm","EwHwuxG","t1zHrgm","BxnN","zgvMAw5LuhjVCa","BvP3BKu","BfzTz08","vK1HyxG","tuLruwy","uKvxqvjex1zjra","Bg9N","q3btwgq","CvDnv2S","z0Xwuuu","shjKrwq","5BcrihrVDwnOC3rH","vxzfvwO","BMvHAKu","t3bWuNO","Bu5Ks1G","thbjug4","CvH5Bg0","vw1fs1m","z2v0qwrszw5Kzq","t1z3yMe","wxn1D2u","tuPOChy","r1PiANa"];return(Ui=function(){return t})()}function $i(t,e,n,r){return Gi(r-117,n)}function Wi(t){const e=617,n=1020,r=996,i=1002,s=625,o=674,c=556;function a(t,e,n,r){return Gi(r-c,e)}const u={ochjU:function(t,e){return t(e)},hWImV:function(t,e){return t===e}};function h(t,e,n,r){return Gi(t-229,r)}const{adType:f}=u.ochjU(Oe,t)||{};return u.hWImV(f,q[h(594,0,0,e)+"EO"])||u[a(0,1069,0,n)](f,q[a(0,r,0,i)+h(s,0,0,o)])}function Gi(t,e){const n=Ui();return Gi=function(e,r){let i=n[e-=364];if(void 0===Gi.Mmwlvn){Gi.dzNvWy=function(t){let e="",n="";for(let n,r,i=0,s=0;r=t.charAt(s++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t<r;t++)n+="%"+("00"+e.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(n)},t=arguments,Gi.Mmwlvn=!0}const s=e+n[0],o=t[s];return o?i=o:(i=Gi.dzNvWy(i),t[s]=i),i},Gi(t,e)}!function(t){const e=1217,n=779,r=740,i=813,s=847,o=1256,c=1258,a=1241,u=1283,h=786,f=756,d=758,l=736,p=770,g=821,m=1187,y=1132,v=1233,b=1222,w=803;function _(t,e,n,r){return Gi(t-373,n)}const x=t();function O(t,e,n,r){return Gi(t-w,n)}for(;;)try{if(909060===parseInt(O(e,0,1163))/1*(parseInt(_(n,0,r))/2)+-parseInt(_(i,0,s))/3+-parseInt(O(o,0,c))/4*(parseInt(O(a,0,u))/5)+parseInt(_(h,0,f))/6+-parseInt(_(d,0,l))/7+parseInt(_(p,0,g))/8+parseInt(O(m,0,y))/9*(-parseInt(O(v,0,b))/10))break;x.push(x.shift())}catch(t){x.push(x.shift())}}(Ui);const Fi={};Fi[$i(0,0,536,577)]=function(t){const e=671,n=685,r=628,i=122,s=155,o=130,c=688,a=659,u=107,h=162,f=141,d=699,l=677,p=670,g=627,m=103,y=94,v=113,b=761,w=192,_=183,x=170,O=209,A=144,C=198,I=167,S=207,E=207,P=265,k=295,D=263,T=475,j=449,L=426,N=177,z=373,M=254,B=302,R=408,q=458,K=223,H=195,V=517,U=536,$=504,W=496,G=423,F=340,Y=296,X=390,Z=423,J=294,Q=253,tt=272,et=285,nt=247,it=499,st=466,ot=472,ct=291,at=472,ut=488,ht=486,ft=273,dt=241,lt=447,pt=300,gt=266,mt=531,yt=308,vt=491,bt=167,wt=417,_t=426,xt=523,Ot=457,At=222,Ct=436,It=459,St=199,Et=194,Pt=315,kt=275,Dt=202,Tt=220,jt=259,Lt=281,Nt=269,zt=467,Mt=528,Bt=430,Rt=191,qt=297,Kt=433,Ht=233,Vt=197,Ut=381,$t=515,Wt=467,Gt=141,Ft=74,Yt=112,Xt=98,Zt=159,Jt=138,Qt=1239,te=926,ee=963,ne=256,re=282,ie=253,se=259,oe=300,ce=310,ae=258,ue=275,he=263,fe=469,de=436,le=440,pe=56,ge=207,me=449,ye=296;function ve(t,e,n,r){return Gi(t-ye,e)}const be={NaWvw:function(t,e){return t!==e},fzfQa:ve(715,672),xjNLi:ve(e,645),neajE:"getBoundin"+ve(n,r)+"t res:",YacBz:"getBoundin"+we(i,s,o,133)+"t err:",FhxlA:function(t,e){return t(e)},yhVQx:function(t,e){return t(e)},UvEUj:ve(c,a)+we(u,h,f,115)+"rt",LpIPn:function(t,e){return t(e)},TNynR:function(t){return t()},GZHjp:function(t,e){return t(e)},yIAjy:function(t,e){return t-e},qXylm:function(t,e){return t-e},gLeBm:function(t,e){return t-e},WAbom:function(t,e){return t-e},wScyw:function(t,e){return t-e},QyeFK:function(t,e,n,r){return t(e,n,r)},GZaCE:function(t,e,n){return t(e,n)},twhaU:function(t,e,n,r){return t(e,n,r)},ThrJc:function(t,e){return t<e},qvahn:function(t,e){return t!=e},OHnqO:function(t,e){return t%e},ZJvnr:function(t,e,n){return t(e,n)},fwlem:function(t,e){return t(e)},OVaDc:function(t,e){return t(e)},sOQoc:ve(d,692),tElMy:function(t,e){return t(e)},VMaax:ve(660,l),ecUVM:ve(p,g),IGEpa:"tfGFG",YIBsS:"cAUsM",HrdEd:we(123,m,y,v),HPTxM:"错误原因:dom不存"+ve(b,765)+we(222,w,206,_),mZwnE:function(t,e){return t(e)},RSUWT:function(t,e){return t===e},yNETB:function(t,e){return t===e}};function we(t,e,n,r){return Gi(r- -ne,n)}return be[we(x,O,251,195)](t,null)||be[we(194,205,A,C)](t,void 0)||t[we(I,S,171,E)+"gClientRect"]({success:t=>{const e=1202;function n(t,e,n,r){return we(t-pe,e-ge,r,t- -me)}function r(t,n,r,i){return ve(r- -e,t)}if(!be.NaWvw(be.fzfQa,be.xjNLi)){const t={_0x3f95a5:19,_0x4960fd:67,_0x334956:91,_0x188e32:84},e={_0x1e45c3:12,_0x48fe2f:409};var i=_0x54694a[n(-re,-ie,0,-se)](_0x5cbf31);if(_0x1c67fb[n(-oe,-335,0,-302)+n(-ce,-ae,0,-oe)+"s"]){var s=_0x32a7fb[n(-oe,-ue,0,-he)+"ertySymbols"](_0x252d5c);_0x4187f8&&(s=s[r(-fe,0,-473)]((function(n){return _0x4032f3[(t._0x3f95a5,i=-t._0x4960fd,s=-t._0x334956,t._0x188e32,r(s,e._0x1e45c3,i-434,e._0x48fe2f)+"ertyDescriptor")](_0x137786,n).enumerable;var i,s}))),i.push[r(-de,0,-le)](i,s)}return i}},fail:t=>{}}),new Promise(((e,n)=>{const r=489,i=462,s=614,o={YmuDF:be[c(-290,-P,-k,-D)],VrHkB:be.sOQoc,xAPuj:function(t,e){return be[(n=te,r=ee,i=926,c(n-491,n,r-1206,i-94))](t,e);var n,r,i},OWmqU:function(t,e,n,r){return be.QyeFK(t,e,n,r)}};function c(t,e,n,r){return we(0,0,e,n- -412)}function a(t,e,n,r){return ve(r- -1189,n)}if(be[a(0,0,-j,-L)](be[c(0,-N,-192)],be[a(0,0,-z,-417)]))_0x1e87a2[c(0,-M,-B)](o[a(0,0,-R,-q)],_0x3b74b8);else if(t){if(!be.NaWvw(be[c(0,-249,-K)],be.IGEpa)){if(!_0x1818e2&&be[a(0,0,-W,-459)](_0x226ce1,_0x1b48cd))throw be[a(0,0,-372,-G)](_0x254a2a,be[c(0,-F,-Y)]);const{left:t,top:e}=_0xa7df5d;if(be[a(0,0,-X,-Z)](_0x328ba4,_0x3399b4)&&be.yhVQx(_0x2edca7,_0x71a16)){const{timeStamp:n,clientX:r,clientY:i}=be.LpIPn(_0x484718,_0x3d4fa4),{timeStamp:s,clientX:o,clientY:u}=be.LpIPn(_0x567bdf,_0x5445fa),h=be[c(0,-J,-Q)](_0x85a442);return be[c(0,-tt,-et)](_0x2adfeb,{g:be[c(0,-246,-nt)](s,n),sc:be[c(0,-298,-nt)](h,n),ec:be[a(0,0,-st,-ot)](h,s),aa:be[c(0,-300,-ct)](r,t),ab:be[a(0,0,-it,-at)](i,e),ba:be[a(0,0,-ut,-ht)](o,t),bb:be.WAbom(u,e)})}const n={};n.g=_0x48de73,n.sc=_0x360a3a,n.ec=_0x539081;let r=n;if(be.LpIPn(_0x480658,_0x19b1fa)){const{clientX:n,clientY:i}=_0xb3ddba,s=be.yIAjy(n,t),o=be[c(0,-ft,-dt)](i,e),u={};return u.aa=s,u.ab=o,u.ba=s,u.bb=o,r=be[a(0,0,-ht,-443)](_0x534e69,be[c(0,-pt,-gt)](_0x29ed90,{},r),{},u),be[a(0,0,-mt,-V)](_0xf67785,r)}const i={};return i.aa=_0x4ca293,i.ab=_0x31d268,i.ba=_0x26ffdf,i.bb=_0x3483dc,r=be[c(0,-yt,-280)](_0xa5086b,be[a(0,0,-lt,-vt)](_0x2aed0d,{},r),{},i),be[c(0,-bt,-198)](_0x14fc72,r)}t[c(0,-H,-205)+a(0,0,-U,-$)+"t"]({success:e,fail:(t,e)=>{const r=1709;const i={code:rt[h(73,Gt,Ft,Yt)],msg:h(Xt,81,Zt,Jt)+JSON.stringify(t)+(c=1244,u=Qt,a(0,0,u,c-r))+e};var c,u;function h(t,e,n,r){return a(0,0,n,r-s)}o.xAPuj(n,i)}})}else{if(!be[a(0,0,-wt,-_t)](be.YIBsS,be[a(0,0,-536,-xt)])){const t={_0x412e2d:278,_0x27c3ce:373,_0x1f6d31:230,_0x155a9d:228,_0x28a8f3:264,_0x2e7f6c:249,_0x2f5d70:495,_0x146505:518,_0x5cb617:505,_0x460c51:256,_0x29b134:245,_0x3e9f4b:192},e={_0xaae09d:165,_0x11919e:20,_0x203d4b:993};for(var u=1;be[c(0,-Pt,-kt)](u,arguments[c(0,-Dt,-Tt)]);u++){var h=be.qvahn(null,arguments[u])?arguments[u]:{};be[c(0,-jt,-Lt)](u,2)?be[c(0,-297,-Nt)](_0x551011,be.fwlem(_0x196552,h),!0)[a(0,0,-506,-zt)]((function(t){var e,n;o[(e=r,n=i,a(0,0,n,e-945))](_0x411dab,_0x103850,t,h[t])})):_0x1b631b[c(0,-237,-D)+a(0,0,-Mt,-T)+a(0,0,-Bt,-424)]?_0x13a856[c(0,-Rt,-195)+"erties"](_0x25d7e1,_0x2ba6e8[c(0,-qt,-D)+a(0,0,-Ct,-T)+a(0,0,-Kt,-424)](h)):be[c(0,-Ht,-Vt)](_0x57e1f8,be[a(0,0,-Ut,-423)](_0x302359,h))[a(0,0,-$t,-Wt)]((function(n){const r=752;function i(t,e,n,i){return a(0,0,t,n-r)}var s,o;_0xc37c22[i(t._0x412e2d,0,332,t._0x27c3ce)+"erty"](_0x423619,n,_0x211624[i(t._0x1f6d31,t._0x155a9d,t._0x28a8f3,t._0x2e7f6c)+(s=t._0x2f5d70,o=t._0x146505,t._0x5cb617,a(e._0xaae09d,e._0x11919e,s,o-e._0x203d4b))+i(251,t._0x460c51,t._0x29b134,t._0x3e9f4b)](h,n))}))}return _0x2da494}{const t={};t[a(0,0,-454,-Ot)]=rt[c(0,-At,-277)],t[a(0,0,-Ct,-421)]=be[a(0,0,-It,-437)];const e=t;be[c(0,-St,-Et)](n,e)}}}))},Fi[$i(0,0,576,585)+$i(0,0,560,572)]=function(t){const{width:e,height:n,left:r,top:i,right:s,bottom:o}=t,c={};return c.da=e,c.db=n,c.dx=r,c.dy=i,c.ex=s,c.ey=o,c.ra=e,c.rb=n,c},Fi[Ki(0,-296,-291)+Ki(0,-283,-250)]=function(t){return{rwd:{Hltjv:function(t,e){return t(e)}}[(e=48,n=41,Gi(n- -363,e))](Wi,t)?"1":"0"};var e,n},Fi[Ki(0,-227,-278)+Ki(0,-343,-307)+Ki(0,-309,-263)]=function({startEvent:t,endEvent:e,rect:n}){const r=1032,i=1019,o=1072,c=771,a=851,u=817,h=846,f=820,d=814,l=769,p=806,g=844,m=782,y=797,v=849,b=821,w=796,_=841,x=813,O=818,A=851,C=721,I=682,S=707,E=1120,P=1034,k=1069,D=1063,T=1057,j=1164,L=1181,N=1149,z=1176,M=1092,B=1090,R=1086,q=1096,K=1102,H=757,V=775,U=1068,$=1013,W=1111,G=1132,F=1133,Y=1172,X=1132,Z=1171,J=1123,Q=1140,tt=1161,et=1113,nt=1198,rt=1147,it=1198,st=801,ot=802,ct=755,at=359,ut={SGkpQ:function(t,e){return t(e)},BeADd:function(t,e){return t(e)},QibKC:mt(1087,1079,1146,1093)+mt(r,i,1101,o)+"rt",UKwox:function(t,e){return t(e)},RkurV:function(t,e){return t(e)},Pujfz:function(t){return t()},LbVIL:function(t,e){return t(e)},qWMWk:function(t,e){return t-e},lVmgO:function(t,e){return t-e},zcgmK:function(t,e){return t-e},mbRux:function(t,e){return t-e},jzWkS:function(t,e){return t-e},MbByA:function(t,e,n,r){return t(e,n,r)},TQxBq:function(t,e,n){return t(e,n)},sfJEU:function(t,e){return t(e)},RzSpi:function(t,e,n,r){return t(e,n,r)},tLCNX:function(t,e){return t(e)}};if(!t&&ut.SGkpQ(hn,e))throw ut[lt(c,a,u,815)](TypeError,ut[lt(846,h,f,d)]);const{left:ht,top:ft}=n;if(ut[lt(854,l,u,p)](hn,t)&&ut[lt(g,m,817,y)](hn,e)){const{timeStamp:n,clientX:r,clientY:i}=ut[lt(828,v,b,w)](dn,t),{timeStamp:s,clientX:o,clientY:c}=ut.RkurV(dn,e),a=ut[lt(_,x,O,A)](Ct);return ut.LbVIL(Qt,{g:ut.qWMWk(s,n),sc:ut[lt(C,I,727,S)](a,n),ec:ut[mt(E,P,1081,k)](a,s),aa:ut[mt(D,T,1087,k)](r,ht),ab:ut[mt(j,L,N,z)](i,ft),ba:ut[mt(M,B,k,1112)](o,ht),bb:ut[mt(R,k,q,K)](c,ft)})}const dt={};function lt(t,e,n,r){return Gi(n-at,r)}dt.g=s,dt.sc=s,dt.ec=s;let pt=dt;if(ut[lt(0,0,H,V)](fn,e)){const{clientX:t,clientY:n}=e,r=ut[mt(1080,U,$,k)](t,ht),i=ut[mt(1111,W,G,F)](n,ft),s={};return s.aa=r,s.ab=i,s.ba=r,s.bb=i,pt=ut[mt(Y,X,Z,J)](Vi,ut[mt(Q,tt,1065,et)](Vi,{},pt),{},s),ut[mt(nt,rt,it,1144)](Qt,pt)}const gt={};function mt(t,e,n,r){return Gi(r-701,t)}return gt.aa=s,gt.ab=s,gt.ba=s,gt.bb=s,pt=ut[lt(0,0,st,ot)](Vi,ut[lt(0,0,c,ct)](Vi,{},pt),{},gt),ut.tLCNX(Qt,pt)},Fi[$i(0,0,465,496)+$i(0,0,614,564)]=function(t){const e=385,n=775,r={pVebN:function(t,e){return t(e)},bHWgM:function(t,e){return t-e},zqyvf:function(t){return t()},SRrwy:function(t,e){return t(e)}},i=r[u(-381,-396,-394,-406)](Ce,t);if(r.pVebN(Tt,i))return{p:""+r.bHWgM(r[(o=-230,c=-283,Gi(o- -640,c))](Ct),i)};var o,c;const a={};function u(t,e,r,i){return Gi(t- -n,i)}return a.p=s,a.x=s,r[u(-e,0,0,-339)](Qt,a)};const Yi=Fi;class Xi extends qi{constructor(t){super(),this.collector=t}collect(){return this.collector.collect()}}function Zi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ji(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zi(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class Qi extends Xi{constructor(t,e,n,r){super(),this.adView=e,this.adInfo=n,this.collector=t,this.scenes=r}async collect(){try{let t=null;t=this.collector?await super.collect():new Mi;const e=await Yi.getRect(this.adView),n=Yi.getAdContainerSize(e),r=Yi.getRewardVideoInfo(this.adInfo);return Object.assign(t,Ji(Ji({},n),r)),t}catch(t){return{}}}async collectMotionEvent(t,e,n){try{const r=await Yi.getAdClickInteractionInfo(t),i=await Yi.getAdRenderParams(e);return Object.assign(n,Ji(Ji({},r),i)),n}catch(t){return{}}}collectClickDynamicParams(t,e,n){return Object.assign(n,t),n}}class ts extends qi{constructor(t,e,n){super(),this.adId=n,this.autoCollectedInfo=new Mi,this.viewCollector=new Qi(null,e,n,Ri.NONE)}collect(){return this.autoCollectedInfo.id=this.adId,this.autoCollectedInfo}collectMotionEvent(t){this.viewCollector.collectMotionEvent(t,this.adId,this.autoCollectedInfo)}collectClickDynamicParams(t){this.viewCollector.collectClickDynamicParams(t,this.adId,this.autoCollectedInfo)}}function es(t){return new Promise(((e,n)=>{const{pkg:r}=$t();r&&t?r.hasInstalled({package:t,success:({result:t})=>{e(t)},fail:n}):n()}))}function ns(t){return[v].includes(t)}function rs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function is(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rs(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const ss={wifi:"1","2g":"2","3g":"3","4g":"4","5g":"5"},os={none:0,others:0,wifi:1,"2g":2,"3g":3,"4g":4,"5g":7};function cs(t){const e={};return Object.keys(t).forEach((n=>{"object"!=typeof t[n]?e[n]=`${t[n]}`:e[n]=cs(t[n])})),e}function as(t){return(e=t,new Promise(((t,n)=>{const{pkg:r}=$t();r&&e?r.getSignatureDigests({package:e,success:t,fail:n}):n("[YLH SDK ERR]: pkg or appName is undefined")}))).then((({signatureDigests:t})=>({si:It(t[0])}))).catch((()=>({si:i})));var e}async function us(){var t;const{$app:e}=At();if(null!=e&&null!==(t=e.$def)&&void 0!==t&&t.manifest){var n;const{package:t}=(null==e||null===(n=e.$def)||void 0===n?void 0:n.manifest)||{},{app:r}=je(),{packageName:i}=r;return is({pk:i,pkm:t},await as(i))}return{pk:i,pkm:i,si:i}}let hs=null;async function fs(){const t=T,e=Se(t);return e||(hs||(hs=Hn().then((e=>Ie(t,e))).catch((()=>({}))).finally((()=>{hs=null})),hs))}async function ds(t,e){const n={},{dp:r,pw:o}=t;return Object.keys(t).forEach((c=>{const a=t[c];if(a!==s&&a!==i&&u[c])if(/p(?:w|h)/.test(c))n[c]=Wt(a,Yt(r),!0);else{const t=e/o;n[c]=Wt(a/t,Yt(r),!0)}else n[c]=a})),n}function ls(t,e){const n={},{dp:r,pw:o}=t;return Object.keys(t).forEach((c=>{const a=t[c];if(a!==s&&a!==i&&u[c])if(/p(?:w|h)/.test(c))n[c]=Wt(a,Yt(r),!0);else{const t=e/o;n[c]=Wt(a/t,Yt(r),!0)}else n[c]=a})),n}async function ps(){const t={req:{connect_type:0},anti:{"5g":i,"5go":i,net:i}},{network:e}=$t();if(!e)return t;const n="networkType",r=Se(n)||{},{time:o=0}=r;if(0===o||(t=>Ct()-t>ue(30))(o))return e.getType().then((({data:{type:t}})=>{const e=os[t]||0,r=ss[t],i="5"===r?"1":"0",o={time:Ct(),type:t,req:{connect_type:e},anti:{"5g":i,"5go":i,net:r||s}};return Ie(n,o),o})).catch((()=>t));const{type:c,req:a,anti:u}=r;return{type:c,req:a,anti:u}}function gs(){const{shortcut:t}=$t(),e={in:i};return t?t.hasInstalled().then((({data:t})=>({in:Nt(t)}))).catch((()=>e)):e}function ms(){const{keyguard:t}=$t(),e={sl:i};return t?new Promise((n=>{t.getKeyguardLockedStatus({success:({isKeyguardLocked:t})=>{n({sl:Nt(t||!1)})},fail:()=>{n(e)}})})):e}function ys(){const{battery:t}=$t(),e={ic:i,bl:i};return t?t.getStatus().then((({data:{charging:t,level:e}})=>({ic:Nt(t),bl:`${ie(e,1)}`}))).catch((()=>e)):e}function vs(){const{brightness:t}=$t(),e={bri:i};return t?t.getValue().then((({data:{value:t}})=>({bri:`${t}`}))).catch((()=>e)):e}function bs(){const{device:t}=$t(),e={das:i};return t?t.getAvailableStorage().then((({data:{availableStorage:t}})=>({das:`${xt(t/1024/1024)}`}))).catch((()=>e)):e}function ws(){const t=k,e=Se(t);return e||Promise.all([fs().then((t=>{const{brand:e,model:n,product:r,screenWidth:i,screenHeight:s,manufacturer:o,screenDensity:c}=t;return{br:e,mf:o,dm:n,pn:r,pw:i,ph:s,dp:`${ie(c,2)}`}}))]).then(Vt).then((e=>(Ie(t,e),e)))}function _s(){const t=D,e=Se(t);return e||Promise.all([gs(),vs(),ps().then((t=>t.anti)),ys(),us(),bs(),ms()]).then(Vt).then((e=>Ie(t,e)))}function xs(){return Lt()?{}:Promise.all([ws(),_s()]).then(Vt)}function Os(t){const{width:e,height:n,left:r,top:i,right:s,bottom:o}=t;return{da:e,db:n,dx:r,dy:i,ex:s,ey:o,ra:e,rb:n}}function As(t){return{rwd:Gn(t)?"1":"0"}}function Cs(t={}){return is({sld:N},t)}function Is({startEvent:t,endEvent:e,rect:n}){if(!t&&hn(e))throw TypeError("touch 事件 缺少 touchstart");const{left:r,top:i}=n;if(hn(t)&&hn(e)){const{timeStamp:n,clientX:s,clientY:o}=dn(t),{timeStamp:c,clientX:a,clientY:u}=dn(e),h=Ct();return Qt({g:c-n,sc:h-n,ec:h-c,aa:s-r,ab:o-i,ba:a-r,bb:u-i})}let o={g:s,sc:s,ec:s};if(fn(e)){const{clientX:t,clientY:n}=e,s=t-r,c=n-i;return o=is(is({},o),{},{aa:s,ab:c,ba:s,bb:c}),Qt(o)}return o=is(is({},o),{},{aa:s,ab:s,ba:s,bb:s}),Qt(o)}function Ss(t){const e=Ce(t);return Tt(e)?{p:""+(Ct()-e),x:s}:Qt({p:s,x:s})}function Es(){const t=Gt(o,s);return xs().then((e=>Vt([t,e]))).catch((()=>t))}function Ps(t={}){const{id:e,rect:n}=t,r=Gt(o.concat(c),s);return Promise.all([Es(),Os(n),As(e)]).then(Vt).then((t=>Vt([r,t]))).catch((()=>r))}function ks(t){const{ext:e={}}=t,n=Te();return function(t){const{id:e}=t,n=Gt(o.concat(c,a),s);return Promise.all([Ps(t),Is(t),Ss(e),As(e)]).then(Vt).then(Cs).then((t=>Vt([n,t]))).catch((()=>n))}(t).then((t=>ds(t,n))).then((t=>Vt([t,e]))).then(cs)}!function(t){const e=1088,n=1091,r=158,i=1129,s=25,o=129,c=935,a=40,u=1026,h=1018,f=1027,d=972,l=166,p=147,g=991,m=182;function y(t,e,n,r){return Js(r- -m,n)}function v(t,e,n,r){return Js(t-623,n)}const b=t();for(;;)try{if(280240===parseInt(v(864,0,1052))/1+-parseInt(v(e,0,n))/2*(-parseInt(y(0,0,180,r))/3)+parseInt(v(942,0,i))/4*(parseInt(y(0,0,s,o))/5)+-parseInt(v(1033,0,c))/6*(-parseInt(y(0,0,-91,a))/7)+-parseInt(v(u,0,h))/8*(parseInt(v(f,0,d))/9)+parseInt(y(0,0,l,p))/10+-parseInt(v(g,0,890))/11)break;b.push(b.shift())}catch(t){b.push(b.shift())}}(Ns);const Ds=[ao(276,298,368,418)];function Ts(t,e){const n=381,r=351,i=1015,s=927,o=848,c=968,a=1258,u=1105,h=1109,f=1122,d=1072,l=1216,p=1209,g=857,m=936,y=793,v=1096,b=1206,w=1148,_=1047,x=149,O=137,A=1127,C=1112,I=1164,S=1139,E=1072,P=1181,k=1141,D=1254,T=1096,j=1116,L=463,N=403,z=423,M=234,B=303,R=264,q=380,K=519,H=623,V=783,U=840,$=64,W=233,G=115,F=31,Y=413,X=38;function Z(t,e,n,r){return ao(t-F,e-Y,t,r- -X)}const J={FpcGl:function(t,e){return t(e)},xmjst:function(t,e){return t!==e},Zctve:tt(1202,1131,1145,1062),ZXTjM:Z(n,r,0,328),WHCwr:function(t,e,n){return t(e,n)},MzGrL:function(t){return t()},mpCIm:function(t,e){return t!==e},Usqve:tt(i,s,o,c),elzCP:tt(a,u,h,f)};var Q=Object[tt(d,l,1400,p)](t);function tt(t,e,n,r){return ao(t-G,e-42,r,e-803)}if(Object[tt(g,m,0,y)+"ertySymbols"]){if(!J[tt(v,1100,0,b)](J[tt(w,_,0,1217)],J.elzCP)){const t={_0x480659:572,_0x301be7:465,_0x3599de:610},e={vZyMe:function(e,n,r){const i=402,s=728;return J[(o=-t._0x480659,c=-t._0x301be7,a=-t._0x3599de,Z(a,c-i,0,o- -s))](e,n,r);var o,c,a}};return J[tt(D,T,0,j)](_0x52c862)[Z(L,N,0,z)]((t=>{const n=958;const{brand:r,model:i,product:s,screenWidth:o,screenHeight:c,manufacturer:a,screenDensity:u}=t;return{br:r,mf:a,dm:i,pn:s,pw:o,ph:c,dp:""+e[(h=M,f=B,d=R,tt(h-461,d- -n,0,f))](_0x45a216,u,2)};var h,f,d}))}var et=Object[Z(x,O,0,95)+tt(A,C,0,1263)+"s"](t);e&&(et=et[tt(1083,I,0,S)]((function(e){const n=304,r=305,i=424;function s(t,e,n,s){return Z(t,e-r,0,e-i)}if(J.xmjst(J.Zctve,J.ZXTjM))return Object[s(q,K)+"ertyDescri"+s(H,V)](t,e)[s(U,784)];var o,c;J[(o=-$,c=-W,Z(o,c-496,0,c- -n))](_0x7952bc,_0x22ffc9)}))),Q.push[tt(E,P,0,k)](Q,et)}return Q}function js(t){const e=83,n=47,r=132,i=58,s=9,o=4,c=149,a=87,u=84,h=782,f=540,d=680,l=125,p=573,g=685,m=214,y=191,v=126,b=124,w=0,_=15,x=21,O=43,A=35,C=308,I=176,S=214,E=127,P=53,k=201,D=88,T=315,j=353,L=190,N=77,z=121,M=75,B=83,R=77,q=159,K=21,H=126,V=51,U=9,$=172,W=71,G=194,F=29,Y=127,X=190,Z=225,J=37,Q=170,tt=145,et=174,nt=180,rt=353,it=1189,st=1315,ot=803,ct=202,at=128,ut=297,ht=226;function ft(t,e,n,r){return ao(t-303,e-ut,t,n- -ht)}const dt={jlvUT:function(t,e,n){return t(e,n)},YryRY:function(t,e,n){return t(e,n)},jovfn:function(t,e){return t(e)},zcWiW:function(t,e){return t===e},OjxLT:"nbrvQ",LhgJX:function(t,e,n,r){return t(e,n,r)},HGDfu:function(t,e){return t===e},sHDrG:function(t){return t()},naSxo:function(t,e){return t||e},nbZlb:function(t,e,n){return t(e,n)},wNXvu:function(t,e){return t!==e},VTuTq:ft(-152,-128,-e),amMpm:function(t,e){return t<e},VIJBq:function(t,e){return t!=e},tGVeH:function(t,e){return t%e},bxjBS:function(t,e){return t(e)}};function lt(t,e,n,r){return ao(t-at,e-464,t,r- -818)}for(var pt=1;dt[ft(-n,200,r)](pt,arguments[ft(i,118,s)]);pt++){var gt=dt[ft(o,-c,-a)](null,arguments[pt])?arguments[pt]:{};dt.tGVeH(pt,2)?dt[ft(u,43,46)](Ts,dt[lt(-h,-f,0,-d)](Object,gt),!0)[ft(-l,-37,-77)]((function(e){const n=222,r=1628;function i(t,e,i,s){return lt(s,e-n,0,e-r)}if(!dt[i(0,1084,0,1229)](dt[i(0,it,0,st)],dt.OjxLT)){const{brand:t,model:e,product:n,screenWidth:r,screenHeight:s,manufacturer:o,screenDensity:c,screenRefreshRate:a,mp:u}=_0x2674aa;return{br:t,mf:o,dm:e,pn:n,pw:r,ph:s,dp:""+dt[i(0,988,0,ot)](_0xe505e8,c,2),sr:""+dt.YryRY(_0x587801,a,2),mp:dt.jovfn(_0x14eca5,u)}}var s,o;dt[(s=20,o=94,ft(s,o-ct,o-151))](ze,t,e,gt[e])})):Object[lt(-680,-p,0,-g)+ft(375,238,m)+ft(y,v,b)]?Object[ft(w,-18,-66)+ft(_,x,O)](t,Object["getOwnProp"+ft(C,I,S)+ft(E,P,124)](gt)):dt[ft(-k,A,-D)](Ts,dt[lt(-T,-j,0,-415)](Object,gt))[ft(62,-L,-N)]((function(e){const n=567,r=623,i=261,s=11,o=16,c=195,a=640;function u(t,e,n,r){return lt(e,e-nt,0,r-rt)}function h(t,e,n,r){return lt(r,e-et,0,e-458)}const f={oDnPc:function(t,e){return dt[(n=-121,r=-tt,Js(r- -a,n))](t,e);var n,r},ImEaE:function(t){return dt[(e=s,n=o,Js(n- -c,e))](t);var e,n},yioVy:function(t,e){return dt.naSxo(t,e)},jMwSR:function(t,e,s){return dt[(o=n,c=r,Js(c-i,o))](t,e,s);var o,c}};if(dt[h(0,z,0,M)](dt[u(0,B,0,-R)],dt[u(0,-q,0,-R)])){const t=_0x4227d7[_0x531ac7]||0,e=_0x458578[_0x211cc3],n=f[h(0,K,0,H)](e,"5")?"1":"0",r={};r[u(0,-V,0,-U)+"pe"]=t;const i={time:f.ImEaE(_0x3777fe),type:_0x17cf0d,req:r,anti:{"5g":n,"5go":n,net:f[h(0,-$,0,-W)](e,_0x53e29c)}};return f[u(0,-G,0,-F)](_0x2e8275,_0x51b567,i),i}Object["defineProp"+u(0,-Y,0,-X)](t,e,Object[h(0,-227,0,-201)+h(0,80,0,Z)+h(0,J,0,Q)](gt,e))}))}return t}function Ls(t,e,n,r){return Js(n-57,t)}function Ns(){const t=["ugPbsuS","z2v0rgv2AwnLua","mJeZnJKWnenHCg10ta","q0Tfq2O","C2L6zq","DhvZ","y1PjqMC","DeHQreu","DM9SDw1LugfYyq","sxzxqMS","wuf5tNm","yNjPz2H0BMvZCW","ALbvCvq","swfZCfm","z2v0q3b1sw5MBW","DhLWzq","BNPPz3C","txPhCKW","v0XJuKm","rM1SrM0","77YAvKLfv19gquLm","Bxbdsw0","z2v0qMf0DgvYEq","s2zWrMy","yuHvtMm","teLUEwm","t1jmsvG","CKzODLu","EvHLwum","sfLfthe","DfnPEMu","B3LYDwS","z2v0tMv0D29YAW","zxj0Evn5BwjVBa","y1z5Efe","z2HQrum","wwfSsKy","oef5tNHLEa","ndu1otK2n3bVD0fWvW","zxfAuw8","y24Uz29HCgSUBq","r2vLuMe","rKnuzwq","CKrrwfq","nLLWuNDHzq","6zsz6k+V5y6F5zUG77YA","C2nYzwvUsgvPzW","jgrLzG","wwDrBgW","zNvpwMO","BfrJs2K","yxjRzxq","r3novuu","zgz1EuW","AM9PBG","tLn1CNq","ChvZAa","DeXPC3q","v0Tdq0K","B2nzzey","C2LutMm","r3vPrhm","yxbWC3rVCMu","BMzVioE8K+wTMoAvSoAnRUwTMowCQa","z2v0vMfSDwu","D2fYBG","DffLwfe","y0LlAgO","r21jDKS","z2v0uefUDgLezq","vgforLq","qMDOr3e","vKLfv19gquLm","AK9Ztg8","ChrVCNm","AgnW","z2v0uxvPy2TbCa","ENr0C1a","lcdPLjNOR6/KU6pNOihVVjO","A2zYC0u","CMvZB2X2zq","CNHPwxG","yw1nCg0","DLrfBLG","y29TlMHPy29Yzq","zMLSDgvY","BgT5B0q","sNzjvMG","wwjqEvy","BgvtDg9YywDL","A3zLyMO","zgjRD2i","D2LUzg93sgvPzW","zgPPALu","y3rZ","Bwzguwm","C3rHDhvZqMfYsa","tNrOs0C","sM5nvxK","mM5kthD4CW","BNrPzNjHDwq","CufWBfm","yxbWBhK","t2P4tfq","y29TlNrTCMKUyq","B0rUugm","D3jzugG","D2LMAq","EfnpDLO","whnjAg0","BMf0Aw9UywWUyq","BhLhEg4","vLr1vhe","tLLPAxG","y2f0y2G","yu93CLO","sw5ZDgfSBgvKqq","D2fHBeO","sKDouLO","uejgChC","uMfrAfq","ChrVCG","zw51BwvYywjSzq","zeXrs04","DLj0qNu","CLLvB0u","qMHYvM0","yNHQqLm","r2TAtLq","seDezNu","sw5qCvC","D2LUzg93v2LKDa","zufeANq","tLLisK8","A1Dytg0","lM1HCMTLDa","z2v0tw9Kzq","A2v5CW","y29TlNnTAwXLlG","DM9S","zeXVy2TLzfn0yq","Aw5JBhvKzxm","DgLTzq","DLP5twu","vgLJA2v0","uhn6veq","AxnbChbjBNn0yq","uM5SCKi","EMzI","AuH3whC","sePTqNa","BhvL","yvvlAxG","Axntyw1L","Cxz2z1e","uvHAyxi","CxfKB3DUBg9Hza","AxnlzxLNDwfYza","ywXS","zvfuAve","AK13u1i","s01dEKy","Bfn0ANe","y29TlMH1yxDLAq","zxj0EurLC2nYAq","yxbWC2vHCMnO","rLLYrxC","BxnN","AwzLC3q","yNjP","yxbWr2v0sw5MBW","6zsz6k+V5y6F5zUG77YAzgL2Awm","B0niuhu","wLPdB3C","DMvYC2LVBKnVza","BMrYB2LK","oIdOV5tLM57MLRdMLBdMJA7VVjO","D3DIwM4","z0jQBMC","Cgf5Ae1HBMLMzq","y29UBMvJDf90Eq","EhbqywK","wK1Xy3y","EfjqsLC","ENbQqvy","DgHLBG","wejkzLa","rK9fyMu","zxn0","C0vYA1u","r3Hbu0G","ChvZAe1HBMLMzq","Dc5TBq","Bg1Ls2q","Agvszwu","EwDWAg9Uzq","v0HIA0m","C1r3q1q","qLL4BKK","s2PLD2u","z2v0qxzHAwXHyG","su5tvefmteve","B25LCNi","q1DnzMC","Cef4D0q","D05yDNu","C3rYAw5NAwz5","A05cvvu","ENHYEMC","AgfZsw5ZDgfSBa","rNbJr2W","uNPhrMm","zY5WAw5KDw9KDq","w0fUDgLtCgfTxq","BwfUAwzLC3q","y29TlNfPAg9VlG","ywnJB3vUDe1HBG","BvzAr2i","uLLrDeS","BwfW","CefUDgLjBMzV","DKX6A0e","C0HeCKC","zM9ivg0","yNnUAu8","wwrXs3y","sxn5rem","BNjQBg0","D2vTzq","B2Tiwwm","zwrbChbnyxjRzq","zLP3B1y","ChaUBwfPBG","ndG2ndKZBejcveff","z2v0t3DUuhjVCa","tgLzuu4","vxH0BKu","CwXZDeW","DgX6wuG","AM92zM4","vKLkqNe","y05lvMi","B2X1zNe","z2v0sw5MBW","wuvvAfC","ywrnyw5PzMvZDa","zfD6vfq","Dgferhy","Chn0B3jL","Agffs2q","zM9YrwfJAa","DgTSDMK","mJK3nJfRqKLYBwG","zMHvCNO","qM1LvNi","rLrMseO","vhf2AMW","C2XfC1y","y29TlMjIAY5HCa","ENLuB1K","r3rZteK","zgvMAw5LuhjVCa","z2v0ufbHCMfTCW","6zEU6Aky77Ym6k+35Qoa5P+LoG","DfLKC1a","CuHbrw0","zunMv3y","y29TlNnZlMfUza","z2LMBwfRzxi","EhvVt2G","tgHNsLG","t0HSv0S","y29TlMjHAwr1lG","rLzjzfy","wfbJtMO","vwvNve8","z2v0s2v5z3vHCG","ChrHuNm","zMLUywXSEq","AMX2vvq","AKfTtK0","t2vLsuu","yw50Aq","DLnlrg8","txP6AhO","5Bgp54Q25Ocb","BMv0D29YA1r5Ca","CMvX","vg9mvfC","EwLVvNK","zxjYB3i","thrbDLi","lML0CW","y050u1m","DMLrAwO","v0HdD3i","BvDICK0","CM9Pzc51z2mUyq","y24UEhvLEgKUyq","uenstKu","swDQsMi","y2riu3O","sM9VrLu","ENr5yxO","Bg9N","zMvvuLO","ugfezxm","BMv0","D3DPqve","z2v0u2HVDen1Da","DLfQs0y","vhLWzq","D3vSAue","y29Kzq","z2v0twvKAwfwyq","t2vIwhu","y29TlNH1BM1LBG","t1bqy1m","y29TlNrLBMnLBG","qMPzBw4","y0fes2y","EhnZrxm","mJmXodKWzwj2thHy","A3L3Dxy","Dc5HBMrYB2LKlG","BeHtwK4","y29TlNHPyw9TAq","wNPdwe8","ELrSCKO","CM9Pzc5HBgLWyq","mJHPz1fzv1y","ugfYyw1Z","B3b2ELu","D0fTC3e","u3rHDhvZ","z2v0sw5ZDgfSBa","BgvUz3rO","nwDV","CKDQsuK","rfnRr0u","mJm5mJKWmenZq1DnqG","shzMzwu","zEs4JEwTMowCQcWG6zsz6k+V5lUJ56cb","qxflt28","B21OtKS","vxnXDMu","Dg90r2K","q1vwCva","AKzxB2S","C01wAK4","tg9JA2vKios4UIdPLie","otuZoteZuK10wuDf","zwLNAhq","swjsz0q","y24Uz292lNrHEa","C3rHDhnnyw5PzG","DMvYC2LVBK5HBq","r29KChq","B3rOzxjZ","DNzJzhe","ve9ozxi","vu5Fsu5tvefmta","Bg9hvKW","zg5Zsgi","yxbWu3rVCMvqAW","wNPeDKu","rfLvse4","CgTT","z05HBwv2zxjZAq","t0ziENK","zxj0AwvZ","BNfmELO","z2v0uhjVDMLKzq","BMjABgi","rensDwG","EMnxAvC","zxj0Eq"];return(Ns=function(){return t})()}let zs=null;const Ms={none:0};Ms[ao(333,426,118,257)]=0,Ms[Ls(419,0,530)]=1,Ms["2g"]=2,Ms["3g"]=3,Ms["4g"]=4,Ms["5g"]=7;const Bs=Ms,Rs={};Rs[Ls(464,0,530)]="1",Rs["2g"]="2",Rs["3g"]="3",Rs["4g"]="4",Rs["5g"]="5";const qs=Rs,Ks={};Ks[Ls(337,0,318)+ao(573,540,343,441)]=1,Ks[Ls(355,0,261)+ao(291,216,180,338)]=2,Ks[ao(258,183,362,225)+ao(466,315,271,411)]=3,Ks[Ls(235,0,364)+ao(111,199,404,223)+Ls(455,0,579)+"er"]=4,Ks[Ls(464,0,463)+Ls(572,0,474)]=5,Ks[ao(188,170,229,217)+"t.qqpimsecure"]=6,Ks["com.oppo.m"+Ls(645,0,474)]=7,Ks[Ls(457,0,586)+".appmarket"]=8,Ks[Ls(303,0,304)+Ls(316,0,294)]=9;const Hs=Ks,Vs={};Vs[Ls(407,0,364)+ao(572,466,505,468)]="wx",Vs["com.eg.and"+ao(81,369,80,228)+Ls(524,0,618)]=Ls(553,0,571),Vs[ao(79,96,206,166)+ao(258,203,64,196)+ao(65,306,202,127)]="dy",Vs[ao(503,544,585,414)+ao(272,7,344,167)]="ks",Vs[Ls(455,0,362)+Ls(158,0,258)]="pdd",Vs[ao(357,289,454,380)+Ls(313,0,278)]="jg",Vs[Ls(366,0,344)+ao(326,587,561,451)]="xx",Vs[Ls(566,0,507)+ao(489,273,270,386)+ao(294,243,513,376)]="fz",Vs["com.Mobile"+ao(324,401,458,420)]=ao(172,234,507,351),Vs[Ls(359,0,400)+ao(236,302,263,191)]="gs";const Us=Vs,$s=[Ls(552,0,364)+Ls(495,0,615)],Ws={};Ws[Ls(622,0,624)]="2",Ws[Ls(448,0,407)]="1";const Gs=Ws;function Fs(){const t=153,e=79,n=415,r=265,s=490,o=359,c=641,a=601,u=361,h=0,f=112,{battery:d}={DYUHN:function(t){return t()}}[p(t,e,n,r)]($t);const l={};function p(t,e,n,r){return ao(t-175,e-u,n,r-h)}l.ic=i,l.bl=i;const g=l;return d?d.getStatus()[p(s,o,c,461)]((({data:{charging:t,level:e}})=>({ic:Nt(t),bl:""+ie(e,1)})))[(m=a,y=649,Ls(m,0,y-f))]((()=>g)):g;var m,y}const Ys=()=>{const t=837,e=363,n=9;function r(t,e,r,i){return Ls(i,0,r-n)}const{device:s}={qvvgQ:function(t){return t()}}[(o=895,c=t,Ls(c,0,o-318))]($t);var o,c;const a={};a.mp=i;const u=a;return s[r(0,0,446,e)]().then((({data:{cpuInfo:t}})=>{const e={};e.mp=t;return e})).catch((t=>u))};function Xs(){const t=93,e=76,n=5,r=25,i=52,s=223,o=327,c=269,a=352,u=164,h=307,f=238,d=301,l=71,p=60,g=83,m=49,y=211,v=145,b=54,w=613,_=611,x=651,O=707,A=89,C=255,I=425,S=612,E=475,P=617,k=252,D=340,T=422,j=439,L=444,N=528,z=708,M=543,B=235,R=195,q=153,K=20,H=510,V=415,U=4,$=430,W=539,G=551,F=459,Y=201,X=258,Z=240,J=238,Q=460,tt=432,et=374,nt=598,it=424,st=139,ot=524,ct=59,at=1224,ut=1104,ht=465,ft=236,dt=854;function lt(t,e,n,r){return ao(t-487,e-42,r,e- -dt)}const pt={dfuyL:function(t,e){return t(e)},NcczA:function(t,e){return t-e},VspDG:"getDeviceI"+gt(103,291,201,121)+gt(-74,-11,-65,t),UxtnE:function(t,e,n,r){return t(e,n,r)},jdhJH:function(t,e){return t(e)},JvIVh:function(t,e){return t===e},waalJ:"iUDci",tlzYH:function(t){return t()},Hvfee:function(t,e){return t!==e},ToLTW:gt(e,n,r,i),vLzkA:gt(s,o,c,a),LiYQN:gt(u,h,f,d),aVBoE:gt(-l,-p,g,m),NthKG:gt(y,158,v,b)+lt(-679,-w,0,-_)+":VIEW_FAIL"};function gt(t,e,n,r){return ao(t-67,e-ht,n,t- -ft)}return new Promise(((t,e)=>{const n=615,r=300,i=424,s=302,o=397,c=419,a=558,u=179,h=146,f=431,d=405,l=212,p=236,g=107,m=372,y=908,v={eADjt:function(t,e){return pt.NcczA(t,e)},zXDMe:pt.VspDG,kywuv:function(t,e){return pt[(n=at,r=ut,Js(r-685,n))](t,e);var n,r},slEsV:function(t,e,n,r){return pt[(i=941,s=y,Js(s-683,i))](t,e,n,r);var i,s},kNBUU:function(t,e){return pt.jdhJH(t,e)}};function b(t,e,n,r){return lt(t-g,t-m,0,r)}function w(t,e,n,r){return gt(e-ot,e-ct,n)}if(pt[w(0,x,O)](pt[b(-A,0,0,-10)],pt[b(-A,0,0,-C)])){const{device:n}=pt[w(0,I,S)]($t)||{};if(n)pt.Hvfee(pt[w(0,E,P)],pt[b(-362,0,0,-k)])?n[b(-D,0,0,-j)]({success:e=>{const n=455;function r(t,e,n,r){return w(0,r- -p,t)}function i(t,e,r,i){return w(0,t- -n,e)}Object.assign(e,{oww:e[r(G,0,0,F)+"h"],owh:e[i(Y,X)+"ht"]}),e&&!e[i(Z,J)+"h"]&&!e.windowHeight&&Object.assign(e,{windowWidth:e.screenWidth,windowHeight:v[r(286,0,0,Q)](e[r(tt,0,0,et)+"ht"],e[r(nt,0,0,it)+r(st,0,0,303)])}),v.kywuv(t,e)},fail:(t,n)=>{const p=496;function g(t,e,n,r){return w(0,r- -l,n)}const m={code:rt[g(0,0,r,i)],msg:g(0,0,s,o)+JSON[g(0,0,c,a)](t)+(y=u,v=h,w(0,v- -p,y))+n};var y,v;pt[g(0,0,f,d)](e,m)}}):v[w(0,L,336)](_0x292a1a,_0x1f6aa7,_0x3b5fcc,_0x25be5b[_0x36c84d]);else if(pt[w(0,N,z)](pt[w(0,T,M)],pt.aVBoE)){const t={};t[b(-270,0,0,-B)]=rt.VIEW_FAIL,t.msg=pt[b(-109,0,0,-R)];const n=t;pt[b(-q,0,0,-K)](e,n)}else _0x54776b?v[w(0,H,V)](_0x21f75e,_0x4eaa28):v[b(1,0,0,U)](_0x40a117,_0x5dcfda)}else _0x26eba0[w(0,$,W)]({package:_0x270868,success:({versionCode:t,versionName:e})=>{const r={};var i,s;r[(i=n,s=n,b(i-647,0,0,s)+"e")]=t,r.versionName=e,v.kNBUU(_0x241847,r)},fail:_0x4f8d28})}))}async function Zs(){const t=1429,e=1373,n=1190,r=1089,i=1230,s=1414,o=805,c=481,a=877,u={xssEs:function(t,e){return t(e)},jOsLo:function(t){return t()}},h=T,f=u[d(1152,1138,1244,1386)](Se,h);function d(t,e,n,r){return Ls(e,0,n-a)}function l(t,e,n,r){return Ls(t,0,n-c)}return f||(zs||(zs=u[d(0,t,e)](Xs)[l(n,0,r)]((t=>Ie(h,t)))[d(0,i,s)]((()=>({})))[l(760,0,o)]((()=>{zs=null})),zs))}function Js(t,e){const n=Ns();return Js=function(e,r){let i=n[e-=198];if(void 0===Js.PCvcrK){Js.LwIreO=function(t){let e="",n="";for(let n,r,i=0,s=0;r=t.charAt(s++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t<r;t++)n+="%"+("00"+e.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(n)},t=arguments,Js.PCvcrK=!0}const s=e+n[0],o=t[s];return o?i=o:(i=Js.LwIreO(i),t[s]=i),i},Js(t,e)}function Qs(){const t=653,e=640,n=1543,r=1474,i=1518,s=1492,o=1519,c=329,a=349,u=53,h=109,f=412,d=479,l=149,p=53,g=330;function m(t,e,n,r){return ao(t-l,e-p,e,r-g)}function y(t,e,n,r){return ao(t-f,e-d,e,r-1057)}const v={okHYc:function(t,e,n){return t(e,n)},ztyaz:function(t,e,n){return t(e,n)},QmnIc:function(t,e){return t(e)},cVyxQ:function(t){return t()},BEGCY:function(t){return t()}};return Promise[m(719,647,0,764)]([v[m(t,584,0,e)](Zs),v.BEGCY(Ys)])[y(n,r,0,i)](Vt)[y(s,o,0,i)]((t=>{const e=342,n=210;const{brand:r,model:i,product:s,screenWidth:o,screenHeight:f,manufacturer:d,screenDensity:l,screenRefreshRate:p,mp:g}=t;return{br:r,mf:d,dm:i,pn:s,pw:o,ph:f,dp:""+v[(_=c,x=315,O=a,m(_-u,x,0,O- -h))](ie,l,2),sr:""+v[(b=1049,w=967,y(b-e,w,0,b- -n))](ie,p,2),mp:v.QmnIc(It,g)};var b,w,_,x,O}))}function to(){const t=967,e=940,n=1109,r=1043,s=941;const{brightness:o}={olufq:function(t){return t()}}[u(855,t,e,844)]($t),c={};c.bri=i;const a=c;if(!o)return a;function u(t,e,n,r){return Ls(e,0,r-556)}return o[u(0,n,0,r)]().then((({data:{value:t}})=>({bri:""+t})))[(h=-469,f=-404,Ls(h,0,f- -s))]((()=>a));var h,f}const eo=()=>Promise[Ls(747,0,581)]([to()])[Ls(458,0,608)](Vt),no=()=>{const t=274,e=383,n=163,r=18,s=63,o=359,c=372,a=1386,u=7,h=86,f=175,d=81,l=28,p=397,g={tWZXe:function(t,e){return t(e)},bsniO:function(t){return t()}},{volume:m}=g[v(-t,-85,-e,-n)]($t),y={};function v(t,e,n,r){return ao(t-d,e-l,r,t- -p)}y[v(r,-s,0,118)]=i;const b=y;return m[v(-184,-o,0,-c)+(w=a,_=1349,Ls(w,0,_-775))]().then((({data:{value:t}})=>({vol:g.tWZXe(ce,t)})))[v(-u,h,0,f)]((()=>b));var w,_};function ro(){const t=989,e=300,n=988,r=1015,s=549,o=731,c=1274,a=1324,u=455,h=488,f=454,d=410,l=467,p=394,g=587;function m(t,e,n,r){return Ls(r,0,n-658)}const y={XsIhm:m(0,0,1238,1352)+"Locked 为 锁"+m(0,0,t,968),Mzzhz:function(t){return t()},RnlrB:function(t,e){return t===e},lmeKd:w(e,473,561,558),lkyoD:"EpAaj"},{shortcut:v}=y[m(0,0,n,r)]($t),b={};function w(t,e,n,r){return ao(t-122,e-106,n,e-126)}b.in=i;const _=b;if(!v){if(!y[w(560,s,o)](y[m(0,0,c,a)],y[w(u,h,f)]))return _;_0x1d0eb8[w(d,l,p)](y[m(0,0,1190,1289)])}return v.hasInstalled()[w(509,g,645)]((({data:t})=>({in:Nt(t)}))).catch((()=>_))}function io(){const t=751,e=809,n=788,r=1098,s=1019,o=1153,c=1319,a=1307,u=983,h=1158,f=1042,d=1311,l=1362,p=1472,g=696,m=357,y=524,v=394,b=579,w=282,_=419,x=734,O=578,A=532,C=457,I=320,S=445,E=573,P=441,k=13,D=332,T=363,j=200,L=248,N=730,z=606,M=764,B=528,R=395,q=455,K=199,H=314,V=786,U=872,$=381,W=302,G=363,F=302,Y=837,X=288,Z=290,J=195,Q=962,tt=782,et=269,nt=543,rt=1126,it=983,st=925,ot=128,ct={Kjewe:function(t,e){return t!==e},tcOZQ:ut(625,854,914,729),cNtSS:function(t,e){return t(e)},vQjKF:ut(t,e,n,722)+dt(r,956,1174,s)+dt(o,c,a,1059),YywGe:function(t,e){return t(e)},FOEbe:dt(u,h,1136,f),FCTed:dt(c,d,l,p),ZzsDZ:"isKeyguard"+ut(g,599,m,y)+ut(v,b,w,459),cZIBg:function(t,e){return t(e)},PjAIK:function(t,e){return t||e},zpjAV:function(t,e){return t!==e},BhrVm:"LMAej",vLmYG:ut(634,_,x,O),OHlWK:function(t){return t()}},{keyguard:at}=ct[ut(A,C,I,S)]($t);function ut(t,e,n,r){return Ls(n,0,r-ot)}const ht={};ht.sl=i;const ft=ht;function dt(t,e,n,r){return Ls(r,0,t-710)}return at?new Promise((t=>{const e=583,n=653,r=600,i=638,s=1215,o=1229,c=1603,a=1494,u=616,h=576;function f(t,e,n,r){return ut(0,0,n,r- -st)}const d={rDQXT:ct[f(0,0,-E,-P)],mWbrM:function(t,e){return ct.YywGe(t,e)},YgQll:function(t,e){return ct[(n=u,r=h,f(0,0,n,r-751))](t,e);var n,r},NYHJO:ct[f(0,0,-k,-187)],siTNc:ct[f(0,0,-452,-D)],QiJIR:ct.ZzsDZ,djijU:function(t,e){return ct[(n=rt,r=it,f(0,0,r,n-a))](t,e);var n,r},uUoeY:function(t,e){return ct[(n=s,r=o,f(0,0,n,r-c))](t,e);var n,r}};function l(t,e,n,r){return dt(t- -nt,0,0,n)}if(ct[f(0,0,-T,-190)](ct[f(0,0,-j,-L)],ct.vLmYG))at["getKeyguar"+l(N,0,z)+"tus"]({success:({isKeyguardLocked:e})=>{function n(t,e,n,r){return f(0,0,t,n-12)}function r(t,e,n,r){return l(n-149,0,e)}if(d[n(-K,0,-H)](d[r(0,V,872)],d[r(0,1027,U)]))return _0x25754a;if(e&&d[r(0,849,787)](d[n(-$,0,-W)],d[n(-G,0,-F)])){const t={};t[r(0,Y,675)]=_0x437f86[n(-X,0,-Z)],t[n(-155,0,-J)]=d[r(0,Q,tt)];const e=t;d[r(0,739,658)](_0x5480a8,e)}d[n(-429,0,-et)](t,{sl:d.mWbrM(Nt,d.uUoeY(e,!1))})},fail:()=>{const s=1096;if(ct[(a=e,u=n,f(0,0,u,a-758))](ct.tcOZQ,ct.tcOZQ))return _0x40730b;var o,c,a,u;ct[(o=r,c=i,f(0,0,o,c-s))](t,ft)}});else{const t={};t[l(M,0,695)+"e"]=_0x5668ba,t[f(0,0,-B,-R)+"e"]=_0x152bd3,d[f(0,0,-448,-q)](_0xa17e62,t)}})):ft}async function so(){const t=325,e=209,n=365,r=527,o=492,c=577,a=487,u=660,h=693,f=866,d=605,l=710,p=540,g=629,m=355,y=638,v=808,b=498,w=727,_=698,x=329,O=336,A=381,C=478,I=486,S=314,E=491,P=623,k=295,D=260,T=124,j=90,L=292,N=275,z=71,M=91,B=147,R=63,q=51,K=73,H=182,V=173,U=526,$=356,W=55,G=107,F=338,Y=338,X=332,Z=43,J=199,Q=32,tt=177,et=260,nt=235,rt=408,it=310,st={nqLzZ:function(t){return t()},wwiAQ:function(t,e){return t===e},dbkwb:ut(882,1063,751,1020),sTwCT:bt(-t,-e,-n,-r),totGi:function(t){return t()},opvzU:function(t,e){return t||e},pAxwD:function(t,e,n){return t(e,n)},xSOvZ:bt(-o,-c,-a,-u)+"e",SskDj:function(t,e){return t(e)},ukvgs:function(t,e){return t===e}},ot={connect_type:0},ct={};ct["5g"]=i,ct[ut(h,f,d,l)]=i,ct.net=i;const at={};function ut(t,e,n,r){return Ls(r,0,t-it)}at[bt(-p,-g,-486,-m)]=ot,at[ut(y,573,v,b)]=ct;const ht=at,{network:ft}=st[ut(w,0,0,_)]($t);if(!ft)return ht;const dt=st[bt(-x,-256,-288,-O)],lt=st.SskDj(Se,dt)||{},{time:pt=0}=lt;if(st.ukvgs(pt,0)||st.SskDj((t=>Ct()-t>ue(30)),pt))return ft.getType().then((({data:{type:t}})=>{const e=620,n=390,r=191,i=109;function o(t,e,s,o){return bt(t-n,e-r,s-i,t)}function c(t,e,n,r){return bt(t-nt,e-rt,n-160,t)}const a={rGjII:function(t){return st[(n=-tt,r=-et,Js(r- -e,n))](t);var n,r}};if(st.wwiAQ(st[c(-k,-D,-145)],st[o(-11,-T,-j)])){const{device:t}=a[c(-L,-424,-N)](_0x111cf),e={};e.das=_0x524210;const n=e;return t?t["getAvailab"+c(-z,-M,-B)]()[c(-233,R,-q)]((({data:{availableStorage:t}})=>({das:""+_0x4a0676(t/1024/1024)})))[o(-K,-H,-V)]((()=>n)):n}{const e=Bs[t]||0,n=qs[t],r=st[o(-405,-U,-$)](n,"5")?"1":"0",i={};i[o(-33,-W,-G)+"pe"]=e;const a={time:st[o(-142,-129,-318)](Ct),type:t,req:i,anti:{"5g":r,"5go":r,net:st[o(-F,-Y,-X)](n,s)}};return st[c(-Z,-J,-Q)](Ie,dt,a),a}}))[ut(847,0,0,1020)]((()=>ht));const{type:gt,req:mt,anti:yt}=lt,vt={};function bt(t,e,n,r){return Ls(r,0,n- -819)}return vt[bt(-490,-409,-A,-C)]=gt,vt[bt(0,0,-I,-S)]=mt,vt[bt(0,0,-E,-P)]=yt,vt}function oo(){const t=690,e=82;function n(t,n,r,i){return Ls(n,0,r-e)}return(r=so,r())[n(0,779,t)]((t=>t[n(0,462,410)]));var r}async function co(){const t=37,e=25,n=355,r=413,s=267,o=405,c=544,a=370,u=2,h=132,f=428,d=485,l=596,p=36,g=383,m=218,y=244,v=214,b=394,w=142,_=240,x=57,O=174,A=164,C=438,I=539,S=400,E=200,P=177,k=112,D=190,T=81,j=196,L=137,N=280,z=583,M=95,B=114,R=299,q=420,K=380,H=477,V=453,U={cIKhj:function(t){return t()},cNKVb:function(t,e){return t!==e},wrYPh:function(t,e){return t!==e},qlstL:function(t,e){return t===e},DSkGE:function(t,e){return t===e},LtAvR:function(t){return t()},omhNK:function(t,e){return t(e)},WKCCI:function(t,e,n){return t(e,n)}};function $(t,e,n,r){return ao(t-H,e-V,r,n-162)}var W;function G(t,e,n,r){return ao(t-R,e-q,r,t- -K)}const{$app:F}=U[G(-t,-181,0,-e)](At);if(U[$(n,r,302,s)](F,null)&&U[$(395,o,c,a)](F,void 0)&&U[G(u,h,0,87)](W=F[$(f,528,d,l)],null)&&U[G(u,p,0,144)](W,void 0)&&W[G(-s,-g,0,-m)]){var Y;const{package:t}=(U[G(-y,-v,0,-b)](F,null)||U.DSkGE(F,void 0)||U[G(-w,32,0,-_)](Y=F[G(-x,-O,0,-A)],null)||U[$(C,I,S,297)](Y,void 0)?void 0:Y[G(-267,-E,0,-k)])||{},{app:e}=U[G(-D,-T,0,-j)](je),{packageName:n}=e,r=await U[G(-L,-N,0,-213)](as,n),i={};return i.pk=n,i[$(z,549,428,323)]=t,U[G(-46,-P,0,-M)](js,i,r)}const X={};return X.pk=i,X[G(-B,-189,0,-178)]=i,X.si=i,X}function ao(t,e,n,r){return Js(r- -90,n)}function uo(){const t=1175,e=1111,n=29,r=153,s=1068,o=668,c=1042,a=1010,u=171,h=1351,f=1198,d=1179,l=1127,p=197,g=295,m={dnsHb:function(t,e){return t(e)},DCRuh:function(t){return t()},gwIHp:function(t,e){return t&&e},JnMUy:function(t,e){return t!==e},oCHPu:"zQHCB"};function y(t,e,n,r){return ao(0,0,e,r-737)}const{device:v}=m.DCRuh($t),b={};function w(t,e,n,r){return ao(0,0,t,e- -g)}b.das=i;const _=b;if(!v){if(!m[y(0,t,0,e)](m.oCHPu,m[w(n,r)]))return _;{const t={_0x4e7e89:246,_0x34b442:462,_0x13c6b0:668},e={_0x23fa2b:1049,_0x8094bd:743,_0x2c61a0:890},n={IbRgD:function(t,n){const r=923;return m[(e._0x23fa2b,i=e._0x8094bd,s=e._0x2c61a0,w(i,s-r))](t,n);var i,s}},{pkg:r}=m[y(0,s,0,1010)](_0x4f2c20);m.gwIHp(r,_0x375f4f)?r[y(0,o,0,845)+"ed"]({package:_0x3c953f,success:({result:e})=>{var r,i;n[(r=321,i=p,y(t._0x4e7e89,i,t._0x34b442,r- -t._0x13c6b0))](_0x4f7689,e)},fail:_0x1c43df}):m[y(0,c,0,a)](_0x482369)}}return v["getAvailab"+w(u,70)]()[y(0,h,0,f)]((({data:{availableStorage:t}})=>({das:""+xt(t/1024/1024)})))[y(0,d,0,l)]((()=>_))}function ho(t){const e=222,n=257,r=78,i=222,s=508,o=539,c=362,a=31,u=52,h=45,f=173,d=198,l=149,p=235,g=245,m=514,y=346,v=323,b=344,w=738,_=744,x=677,O=246,A=428,C=1150,I=1012,S=929,E=994,P=656,k=855,D=843,T=104,j=696,L=112,N={RYQtK:function(t,e){return t(e)},kWXLm:z(723,679,749,611)+M(e,n,137,r)+z(i,s,o,c),TONer:function(t,e){return t(e)},ulyug:function(t,e){return t||e},aUKix:function(t){return t()},CWMfg:function(t,e){return t&&e},YfZtq:function(t,e){return t!==e},taDDv:M(-a,70,u,-h),PBFpw:M(f,d,l,p)};function z(t,e,n,r){return ao(0,0,t,r-178)}function M(t,e,n,r){return ao(0,0,e,n- -L)}return new Promise(((e,n)=>{function r(t,e,n,r){return M(0,t,n-j)}const{pkg:i}=N[s(-g,-m,-y,-395)]($t);function s(t,e,n,r){return M(0,e,r- -711)}N[s(0,-v,0,-b)](i,t)?i[r(w,0,692)+"ed"]({package:t,success:({result:t})=>{var n,r;N[(n=-T,r=16,s(0,r,0,n-602))](e,t)},fail:n}):N.YfZtq(N[s(0,-_,0,-x)],N[s(0,-O,0,-A)])?N[r(C,0,I)](n):(_0x47ca2a&&_0x2f9c1b.warn(N[r(S,0,E)]),N[s(0,-P,0,-706)](_0x32a7d8,{sl:N[r(k,0,D)](_0x4b12ec,N.ulyug(_0x52db7e,!1))}))}))}function fo(t){const e=413,n=214,r=261,i=222,s=221,o=260,c=351,a=420,u=504,h=453,f=153,d=336,l=415,p=425,g=278,m=378,y=373,v=95,b=309,w=252,_=70,x=166,O=188,A=219,C=8,I=112,S=11,E={feURZ:function(t,e){return t(e)},cdHSz:function(t,e){return t===e},fhUrz:k(136,187,94,198),cVvgj:T(e,n,r,i),IgjJb:function(t){return t()},FmlFm:function(t,e){return t&&e},QTEXk:T(s,o,350,c),GQDhK:"NpnYM",cNmUl:function(t){return t()},aHUNc:function(t,e){return t===e}};var P;function k(t,e,n,r){return Ls(r,0,e- -140)}const D=t||(E[T(329,300,436,306)](P=Object[k(0,a,0,u)](Hs),null)||E[T(h,f,d,l)](P,void 0)?void 0:P[0]);function T(t,e,n,r){return Ls(r,0,n- -S)}return new Promise(((t,e)=>{const n=304,r=253,i=225,s=680,o=581,c=305,a=395,u=674,h=452,f=709;function d(t,e,n,r){return T(0,0,n- -f,t)}function l(t,e,n,r){return T(0,0,r- -h,e)}const{pkg:S}=E[d(-242,0,-374)]($t);if(E[d(-p,0,-g)](S,D))if(E[d(-m,0,-y)](E.QTEXk,E.GQDhK)){const t={code:_0x1ea638[l(0,v,0,32)],msg:d(-b,0,-w)+_0x2db71d[l(0,_,0,x)](_0xa41614)+d(-O,0,-A)+_0x276039};E[l(0,-C,0,-I)](_0x361f32,t)}else S.getInfo({package:D,success:({versionCode:e,versionName:h})=>{const f=263;function l(t,e,n,r){return d(n,0,e-u)}if(E[l(0,301,n)](E[l(0,r,i)],E.cVvgj))return _0x2834b9;{const n={};n[l(0,551,445)+"e"]=e,n[(p=-s,g=-o,d(p,0,g- -f)+"e")]=h,E[l(0,c,a)](t,n)}var p,g},fail:e});else E.cNmUl(e)}))}function lo(){const t=335,e=359,n=408,r=173,i=309,s=220,o=327,c=237,a=444,u=462,h=499,f=1378,d=1400,l=354,p=508,g=615,m=192,y=242,v=1426,b=1614,w=505,_=250,x=181,O=525,A=526,C=378,I=365,S=435,E=611,P=126,k=272,D=472,T=327,j=438,L=12,N=174,z=143,M=4,B=1552,R=430,q=481,K=793,H=722,V=773,U=69,$=74,W=169,G=7,F=87,Y=3,X=179,Z=50,J=147,Q=125,tt=174,et=170,nt=226,rt=237,it=172,st=109,ot=408,ct=311,at=373,ut=384,ht=181,ft=152,dt=297,lt=153,pt=145,gt=122,mt=353,yt=180,vt=200,bt=965,wt={tYdsP:function(t){return t()},FTfHJ:_t(1228,1092,1227,1241)+Ot(-t,-e,-n,-r)+Ot(-288,-148,-14,-i),rYUoE:function(t,e){return t!==e},GtsLI:Ot(-205,-s,-o,-c),mVZGb:function(t,e){return t(e)},Godpt:function(t,e,n){return t(e,n)},lyGxn:function(t,e,n){return t(e,n)},xuoOh:function(t,e){return t!==e},GuiDs:Ot(-a,-338,-u,-h)};function _t(t,e,n,r){return ao(0,0,e,t-bt)}const xt=Object[_t(f,d)](Us)[Ot(-l,-p,-g,-633)]((t=>ho(t)[Ot(-263,-165,-81,-177)]((e=>{const n=15,r=460,i=458;function s(t,e,s,o){return Ot(t-n,t-r,s-i,e)}function o(t,e,n,r){return Ot(t-132,r-56,n-vt,t)}if(wt[o(-U,0,-$,-W)](wt[s(-G,F,-67)],wt.GtsLI)){const{brightness:t}=wt[s(-Y,-X,-Z)](_0x3f4399),e={};e[o(-42,0,-J,-Q)]=_0x412857;const n=e;return t?t[s(tt,et,nt)]()[o(-rt,0,-it,-st)]((({data:{value:t}})=>({bri:""+t})))[s(224,ot,306)]((()=>n)):n}{const n=Us[t],r={};r[n]=e?Gs[s(ct,at,ut)]:Gs[o(-402,0,-ht,-310)];const i=r;return $s[o(-ft,0,-dt,-lt)](t)?wt.mVZGb(fo,t)[o(-pt,0,-gt,-109)]((({versionName:t})=>(i[n]=(e?Gs.INSTALLED:Gs.UN_INSTALL)+","+t,i)))[o(-mt,0,-261,-yt)]((t=>{})):i}}))));function Ot(t,e,n,r){return Ls(r,0,e- -V)}return Promise[Ot(0,-m,0,-y)](xt)[_t(v,b)]((t=>{const e=1050,n=236,r=228,i=999,s={wwbZn:function(t,e){return wt[(n=-K,r=-H,Js(n- -i,r))](t,e);var n,r},zxrzg:function(t){return wt[(e=R,n=q,Js(n-r,e))](t);var e,n}};function o(t,e,n,r){return _t(e- -B,n)}function c(t,e,r,i){return Ot(0,r- -n,0,i)}if(wt[o(0,-419,-w)](wt[o(0,-_,-x)],wt[c(0,0,-O,-A)])){const t={_0x2d3b94:490,_0xa36357:1172},n={_0x52b197:984,_0x4bf58e:928,_0x1632b8:935},r={_0x87bab1:419,_0x1d560f:1062,_0x484622:149},i={TaNFT:function(t,e){return s[(i=n._0x52b197,c=n._0x4bf58e,n._0x1632b8,o(r._0x87bab1,c-r._0x1d560f,i,r._0x484622))](t,e);var i,c}},{volume:a}=s[c(0,0,-C,-284)](_0x55ceae),u={};u[c(0,0,-447,-323)]=_0x1ea330;const h=u;return a[o(0,-374,-I)+c(0,0,-S,-E)]()[o(0,-P,-k)]((({data:{value:n}})=>{var r,s;return{vol:i[(r=e,s=931,o(t._0x2d3b94,s-t._0xa36357,r))](_0x221a94,n)}}))[c(0,0,-D,-T)]((()=>h))}{let e={};t[o(0,-j,-584)]((t=>{const n=343;function r(t,e,r,i){return o(0,e-n,i)}e=wt[r(0,L,0,-N)](js,wt[r(0,z,0,M)](js,{},e),t)}));const n={};return n.ia=e,n}}))}const po={};po[ao(0,0,205,298)+Ls(387,0,380)]=Fs,po.getAntiDeviceInfo=function(){const t=725,e=860,n=899,r=1029,i=1041,s=1079,o=432,c=588,a=1120,u=1111,h=1183,f=1133,d=305,l=371,p=433,g=588;function m(t,e,n,r){return Ls(t,0,r-g)}function y(t,e,n,r){return Ls(r,0,t-p)}const v={WLcRC:function(t){return t()},HZnvn:function(t,e){return t===e},JooFU:m(809,0,0,909),lHSZN:y(t,0,0,e),sMVjN:function(t,e,n){return t(e,n)}};return v[m(n,0,0,r)](Zs)[y(i,0,0,s)]((t=>{const e=6,n={ZzCXO:function(t){return v[(n=378,r=221,Js(n- -e,r))](t);var n,r}};function r(t,e,n,r){return m(e,0,0,t- -l)}function i(t,e,n,r){return y(n-d,0,0,e)}if(!v.HZnvn(v[r(565,o)],v[r(c,468)])){const{brand:e,model:n,product:r,screenWidth:s,screenHeight:o,manufacturer:c,screenDensity:a}=t;return{br:e,mf:c,dm:n,pn:r,pw:s,ph:o,dp:""+v[i(0,h,f)](ie,a,2)}}n[i(0,a,u)](_0x58a23)}))},po[ao(0,0,287,345)+"viceInfo"]=Qs,po[ao(0,0,112,287)+"Params"]=eo,po[Ls(284,0,431)+"ms"]=no,po[Ls(183,0,355)]=ro,po[Ls(215,0,322)+"dLockedSta"+Ls(597,0,428)]=io,po[ao(0,0,140,308)+Ls(403,0,357)]=oo,po[Ls(422,0,499)+ao(0,0,65,119)]=co,po[Ls(689,0,623)+ao(0,0,214,365)]=uo,po["getViewpor"+Ls(592,0,453)]=function(){const t=150,e=65,n=374,r=375,i=183,s=300,o=198,c=154,a=17,u=1042,h=1063,f=1133,d=1009,l=1133,p=1,g=144,m=1106,y=1178,v=1115,b=1246,w=910,_=1187,x=1152,O=62,A=21,C=333,I=321,S=1203,E=1161,P=96,k=20,D=266,T=402,j=51,L=90,N=899;function z(t,e,n,r){return ao(0,0,t,e- -461)}function M(t,e,n,r){return Ls(t,0,r- -N)}const B={fZwoV:function(t,e){return t!==e},QXZar:z(-277,-256),IEPul:function(t,e){return t/e},zTlrJ:function(t,e){return t*e},FYrEw:function(t,e){return t*e},RKUSA:function(t,e,n,r){return t(e,n,r)},RzGFc:function(t,e){return t<e},fRtRr:function(t,e){return t!=e},foHTm:function(t,e){return t%e},XPcNj:function(t,e,n){return t(e,n)},sErkU:function(t,e){return t(e)},GeeRa:function(t,e){return t(e)},eqZQo:function(t,e){return t!==e},dWGMY:z(-t,-e),BjYmn:function(t,e){return t(e)},rxiYx:function(t,e,n){return t(e,n)},GxASH:"ZkorU",OFHzy:function(t,e){return t!==e},CKECj:M(-n,0,0,-r),NYiix:M(-i,0,0,-278),GkZNT:z(-s,-o)+"gNameversi"+z(-c,a),WHbkC:function(t,e){return t(e)},vTEnX:function(t){return t()},BJxPb:function(t,e){return t===e},OEMKP:"dpiXv",IaspS:"svWhI"};return new Promise(((t,e)=>{const n=1227,r=1325,i=610,s=1378,o=1558,c=591,a=779,N=1191,M=1023,R=1301,q=1467,K=541,H=478,V=387,U=594,$=471,W=1183,G=522,F=594,Y=606,X=745,Z=1379,J=1372,Q=1367,tt=1186,et=1166,nt=1080,rt=1376,it=1285,st=767,ot=894,ct=1302,at=814,ut=640,ht=451,ft=139,dt=21,lt=1017,pt=146,gt=1352,mt=1177,yt=1241,vt=109,bt=1180,wt=1183,_t=27,xt=43,Ot=1383,At=174,Ct=1040,It=1064,St=42,Et=78,Pt=181,kt=50,Dt=950,Tt=1132,jt=1176,Lt=700,Nt=842,zt=1107,Mt=75,Bt=1235;function Rt(t,e,n,r){return z(e,n-Bt)}function qt(t,e,n,r){return z(t,e-Mt)}const Kt={Tqvjl:function(t){return B.vTEnX(t)},tHjDE:function(t,e){return B.BJxPb(t,e)}};if(!B[Rt(0,1203,u)](B.OEMKP,B[Rt(0,1093,h)])){const t={_0x5b7289:472,_0x355d6c:573},e={_0x41f61b:461,_0x231198:340},n={_0x4e006b:233,_0x190242:269,_0x5de426:368},r={};r[qt(-227,-g)]=B[Rt(0,m,y)];const i=r;return B[Rt(0,v,b)](_0x55df81,_0x35b59e).then((({versionName:t})=>{const e=1471,r=160;var i,s,o,c;return _0x2b137b[_0x17ff7d]=(_0x4432c2?_0x2acb26[(n._0x4e006b,o=-n._0x190242,c=-220,n._0x5de426,Rt(0,o,c- -e))]:_0x47fd9a[(i=34,s=126,qt(s,i-r))])+","+t,_0x7f364e})).catch((n=>{var r,s;_0x566821.log(i[(t._0x5b7289,r=-t._0x355d6c,s=-405,qt(s,r- -429,e._0x41f61b,e._0x231198))],n)}))}{const u=B[Rt(0,1108,f)](Te),h={ww:750,wh:812},g=h,m=(t,e)=>{function n(t,e,n,r){return qt(r,e- -107)}function r(t,e,n,r){return qt(t,e-zt)}if(!B[r(w,851)](B[r(_,x)],B[n(0,-O,0,A)])){const{windowWidth:r,windowHeight:i}=e,s=B.IEPul(t,r),o=B[n(0,-D,0,-T)](r,s),c=B[n(0,-j,0,L)](i,s),a={};return a.ww=o,a.wh=c,a}_0x31ca99[n(0,-C,0,-I)+"erty"](_0x159110,_0x594e56,_0x27be51["getOwnProp"+r(S,E)+n(0,-P,0,-k)](_0x4c05be,_0x24a860))};B[Rt(0,d,l)](Xs)[qt(-p,75)]((e=>{const n=769,r=1062,i=963,s=863,o=772,c=491;function a(t,e,n,r){return Rt(0,t,e-117)}const h={PCRNE:function(t,e,n,r){return B.RKUSA(t,e,n,r)},viQij:function(t,e){return B[(n=o,r=691,Js(r-c,n))](t,e);var n,r},XyPSJ:function(t,e){return B.fRtRr(t,e)},YAyNs:function(t,e){return B[(n=Lt,r=Nt,Js(r-630,n))](t,e);var n,r},IvWBk:function(t,e,n){return B[(r=-623,i=-600,Js(i- -s,r))](t,e,n);var r,i},nzigw:function(t,e){return B[(n=r,s=i,Js(s-408,n))](t,e);var n,s},GLJjr:function(t,e){return B[(r=Tt,i=jt,Js(i-n,r))](t,e);var r,i}};function f(t,e,n,r){return Rt(0,r,n- -Dt)}if(B[f(0,0,ft,dt)](B.dWGMY,B.dWGMY)){const t={_0x240a69:380,_0x18a212:388,_0x3a7e39:477,_0x5469a8:331,_0x5ae722:524,_0x274f7d:662,_0x5e3972:708,_0x48956e:742,_0x2f1c13:619,_0x1ce52b:626,_0x29ae72:502},e={_0x4a7e7c:1205,_0x2a4252:1251,_0x448a02:1255},n={_0x564a71:166,_0x39514c:245};for(var d=1;h[a(lt,1084)](d,arguments[f(0,0,59,pt)]);d++){var l=h.XyPSJ(null,arguments[d])?arguments[d]:{};h[a(gt,mt)](d,2)?h[f(0,0,vt,49)](_0x30ec51,h[a(bt,wt)](_0x1711ab,l),!0)[f(0,0,-_t,ft)]((function(t){var r,i;h[(r=e._0x4a7e7c,e._0x2a4252,i=e._0x448a02,a(r,i-n._0x564a71,0,n._0x39514c))](_0x57e513,_0x53496f,t,l[t])})):_0x3813c8[f(0,0,-xt,-dt)+"ertyDescri"+a(Ot,yt)]?_0x26cce7.defineProperties(_0x475731,_0x4d621e["getOwnPropertyDescri"+f(0,0,At,102)](l)):h.GLJjr(_0x56f1c7,h.GLJjr(_0x5bfd07,l))[a(874,Ct)]((function(e){const n=669,r=1428;function i(t,e,r,i){return a(r,e- -n)}var s,o;_0xd563bc["defineProp"+i(t._0x240a69,497,t._0x18a212,t._0x3a7e39)](_0x365ce3,e,_0x205b7a[(s=-t._0x5469a8,o=-404,a(s,o- -r)+i(t._0x5ae722,t._0x274f7d,t._0x5e3972)+i(t._0x48956e,t._0x2f1c13,t._0x1ce52b,t._0x29ae72))](l,e))}))}return _0x529833}{const n=B[a(1119,It)](m,u,e);B[f(0,0,St,-Et)](t,B.XPcNj(js,B[f(0,0,Pt,kt)](js,{},n),e))}}))[qt(189,4)]((u=>{const h=138;function f(t,e,n,r){return Rt(0,n,t- -ht)}function d(t,e,n,r){return Rt(0,r,t-h)}if(B[d(n,0,0,r)](B[f(789,0,i)],B[d(s,0,0,o)]))_0x5908d2.push(_0x2db351);else if(u){if(!B[f(c,0,a)](B[d(N,0,0,M)],B[d(R,0,0,q)])){const{push:t,pay:e,stats:n,account:r,ad:i}=Kt[f(H,0,V)](_0xe6d850),s=t[f(U,0,$)+"r"](),o=e[d(W,0,0,1238)+"r"](),c=n.getProvider(),a=r[f(U,0,G)+"r"](),u=i[f(F,0,779)+"r"](),h=Kt[f(Y,0,X)](new _0x19e855([s,o,c,a,u]).size,1),l={};l[d(Z,0,0,J)+"st"]=s,l[d(Q,0,0,tt)+"st"]=o,l[d(et,0,0,nt)+d(rt,0,0,it)]=c,l[d(1027,0,0,1032)+f(st,0,ot)]=a,l.adManifest=u,l[d(1341,0,0,ct)]=h;const p=l;return _0x2d4390[f(679,0,at)](p)}B[f(K,0,640)](e,u)}else B[f(ut,0,609)](t,g)}))}}))},po[ao(0,0,549,422)+"lled"]=ho,po[ao(0,0,438,446)]=fo,po[Ls(519,0,381)+Ls(170,0,276)+ao(0,0,339,333)]=function(){const t=269,e=176,n=497,r=353,i=202,s=82,o=518,c=452,a=1491,u=1037,h=1128,f=1218,d=1387,l=1375,p=1548,g=1298,m=904,y=300;function v(t,e,n,r){return ao(0,0,e,t-84)}const b={mfFQc:function(t,e){return t===e},ZMqcv:_(1444,1280,1171,1275),ZZCow:function(t){return t()},FVIdV:function(t,e){return t||e},vSKDo:function(t,e,n){return t(e,n)},jAmNM:v(t,e)+"e",heRee:function(t,e){return t(e)},YbPyV:function(t,e){return t===e},zyToY:function(t,e){return t!==e},yXeYC:"kKYhD",PszTD:"pPVnI"},w=Object[v(n,r)](Hs)[v(i,s)]((t=>ho(t).then((e=>{if(b[(i=l,s=p,o=g,_(i-220,s,o-274,i- -52))](b.ZMqcv,b[(n=842,r=m,v(n-y,r))])){return[Hs[t],e,t]}return _0x1a2bde;var n,r,i,s,o}))));function _(t,e,n,r){return ao(0,0,e,r-1056)}return Promise[v(o,c)](w)[_(0,a,0,1517)]((t=>{const e=597,n=636,r=433,i=254,s=722,o=655,c=710,a=574,l=654,p=665,g=624,m=505,y=461,w=682,_=782,x=486,O=712,A=629,C=690,I=879,S=873,E=828,P=604,k=704,D=417,T=804,j=76,L=38,N=178,z=312,M=1190,B=613;const R=[];function q(t,e,n,r){return v(t-804,n)}return t[q(u,0,h)]((([t,u])=>{const h=1109,f=1037,d=901,v=470,K=22,H=374,V=236,U=183,$=316,W=257,G=15,F=274,Y=201,X=813;function Z(t,e,n,r){return q(t- -B,0,n)}const J={ptaRs:function(t,e){return b[(n=1270,r=M,Js(n-809,r))](t,e);var n,r},ZzDvE:function(t){return b[(e=-F,n=-Y,Js(e- -X,n))](t);var e,n},HJmBp:function(t,e){return b[(n=z,r=165,Js(n-50,r))](t,e);var n,r},tklvi:function(t,e,n){return b[(r=$,i=W,Js(i- -G,r))](t,e,n);var r,i},gUaId:b[Q(e,735,n,445)],wuliA:function(t,e){return b[(n=-j,r=L,i=-N,Q(n- -964,r-V,i,i-U))](t,e);var n,r,i},KMCzF:function(t,e){return b[(n=T,r=876,Q(n-K,n-206,r,r-H))](t,e);var n,r}};function Q(t,e,n,r){return q(t- -v,0,n)}if(u){if(!b[Z(r,0,i)](b[Q(s,0,o)],b[Q(839,0,c)])){const t={_0x4493f2:683,_0x34addd:593,_0x5dca2f:710,_0x45b718:510,_0x4edd1b:439,_0x388b9c:438,_0x23f656:396,_0x129d6e:777,_0x19505f:801,_0x288db9:787,_0x30c489:679,_0x26e170:521},e={_0x50fffc:1312,_0x4f94cc:186},n={_0x557314:529,_0xda695:407,_0x126bb0:29},r={_0x225512:76,_0x1fd029:81,_0x5b7a0d:254,_0x59acd7:121},i={_0x273dfd:920,_0x47c74d:480},s={LInyc:function(t,e){return J[(n=f,r=d,Q(n-443,0,r))](t,e);var n,r},haEKd:function(t){return J.ZzDvE(t)},ciboo:function(t,e){return J[(n=-r._0x225512,r._0x1fd029,r._0x5b7a0d,s=-r._0x59acd7,Q(n- -i._0x273dfd,i._0x47c74d,s))](t,e);var n,s},jFWok:function(t,e,r){return J[(i=1097,s=h,Q(i-n._0x557314,n._0xda695,s,n._0x126bb0))](t,e,r);var i,s}},o={connect_type:0},c={};c["5g"]=_0x89590a,c[Q(l,0,p)]=_0x194159,c[Q(g,0,m)]=_0xe8ff4;const a={};a[Z(y,0,633)]=o,a.anti=c;const u=a,{network:v}=J[Q(w,0,_)](_0x198581);if(!v)return u;const b=J.gUaId,T=t=>_0x41974d()-t>_0x24d698(30),j=J[Z(x,0,546)](_0x4fc83d,b)||{},{time:L=0}=j;if(J[Z(O,0,567)](L,0)||J[Q(A,0,C)](T,L))return v.getType()[Q(I,0,S)]((({data:{type:n}})=>{const r=157,i=_0xee72f6[n]||0,o=_0x22c23a[n];function c(t,n,r,i){return Q(r- -e._0x50fffc,e._0x4f94cc,i)}const a=s[c(t._0x4493f2,0,-t._0x34addd,-t._0x5dca2f)](o,"5")?"1":"0",u={};u[c(t._0x45b718,t._0x4edd1b,-t._0x388b9c,-t._0x23f656)+"pe"]=i;const h={time:s[c(0,0,-746,-t._0x129d6e)](_0x21f385),type:n,req:u,anti:{"5g":a,"5go":a,net:s.ciboo(o,_0x4d872a)}};return s[(t._0x19505f,f=t._0x288db9,d=t._0x30c489,t._0x26e170,Z(d-r,0,f))](_0x49166e,b,h),h;var f,d}))[Z(p,0,E)]((()=>u));const{type:N,req:z,anti:M}=j,B={};return B.type=N,B[Q(P,0,k)]=z,B[Q(599,0,D)]=M,B}R[Z(607,0,a)](t)}})),{c_market:R[q(f,0,d)](",")}}))},po[ao(0,0,327,161)+Ls(404,0,539)+"ppMarketList"]=lo,po[ao(0,0,348,277)+Ls(373,0,377)]=function(){const t=632,e=245,n=164,r=187,i=1285,s=1298,o=1370,c=908,a=812,u=761,h=398,f=234,d=492,l=386,p=1140,g=1190,m=1373,y=1131,v=1272,b=263,w=350,_=1101,x=1122,O=1023,A=451,C=280,I=205,S=371,E=342,P=509,k=1257,D=1166,T=261,j=339,L=250,N=205,z=294,M=272,B=530,R=844,q=796,K={kfrsE:function(t){return t()},jMBVC:function(t,e){return t!==e},eQTiQ:"BIlZT",cFdEP:V(1195,1294,1018,1329),xpPai:function(t,e,n){return t(e,n)},NSurt:U(-585,-528,-441,-t)+U(-e,-n,-r,-415),vvcdq:function(t,e,n){return t(e,n)},KfpFf:function(t,e){return t(e)},bUeVj:function(t,e){return t/e},BmeVr:function(t,e,n){return t(e,n)},ghjEC:function(t,e){return t===e},GmIvK:function(t,e){return t(e)},JGNRZ:function(t,e){return t===e},ocYdF:V(1187,i,s,o),tQeXQ:function(t){return t()},HYELq:function(t){return t()},lTcKi:function(t){return t()},CUVqP:function(t){return t()},xSuxX:function(t){return t()},lStjq:V(c,a,u,838)+": 返回cache数据:"},H="sec_pdevice";function V(t,e,n,r){return ao(0,0,r,t-q)}function U(t,e,n,r){return Ls(e,0,t- -R)}const $=K[U(-h,-f)](Se,H)||{},W=Math.floor(K.bUeVj(Date.now(),1e3)),{time:G=0}=$,F=K[U(-544,-d)](sr,$,Ds);if(K[U(-l,-348)](G,0)||K[V(p,0,0,1277)]((t=>Ct()-t>ue(1440)),G)){if(K[V(g,0,0,m)](K[V(y,0,0,1239)],K[V(y,0,0,v)]))return Promise[U(-b,-w)]([K.kfrsE(ro),K[U(-355,-300)](eo),K[V(_,0,0,985)](oo),K[V(x,0,0,O)](Fs),K.tQeXQ(co),K[U(-A,-C)](uo),K[U(-371,-I)](io),K[U(-S,-352)](Qs),K.xSuxX(no),K[U(-E,-P)](lo)])[V(k,0,0,1120)](Vt)[U(-236,-264)]((t=>{const e=914;function n(t,e,n,r){return U(n-B,e)}function r(t,n,r,i){return V(t- -e,0,0,n)}if(K.jMBVC(K[n(0,308,268)],K.cFdEP)){const e={};e.time=W,K.xpPai(Ie,H,K[r(j,L)](js,e,t));const n={};return n.cts=W,K[r(j,163)](js,n,t)}{const t={0:"1",1:"2"},e=t,{brightness:i}=K[n(0,N,188)](_0x5043a0),s={};s.bm=_0x1387d4;const o=s;return i?i[n(0,93,245)]()[n(0,267,z)]((({data:{mode:t}})=>({bm:e[t]})))[r(M,88)]((()=>o)):o}})).catch((()=>{}));{const{brand:t,model:e,product:n,screenWidth:r,screenHeight:i,manufacturer:s,screenDensity:o}=_0x33988;return{br:t,mf:s,dm:e,pn:n,pw:r,ph:i,dp:""+K[U(-439,-T)](_0x128f43,o,2)}}}const Y={};return Y[V(D,0,0,1172)]=W,K.vvcdq(js,Y,F)};const go=po;class mo extends Xi{constructor(t){super(),this.collector=t}async collect(){try{let t=null;t=this.collector?await super.collect():new Mi;const e=await go.getDevicePParams();return Object.assign(t,e),t}catch(t){return{}}}}function yo(t,e){const n=Co();return yo=function(e,r){let i=n[e-=315];if(void 0===yo.WfmWMD){yo.XMdRuh=function(t){let e="",n="";for(let n,r,i=0,s=0;r=t.charAt(s++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t<r;t++)n+="%"+("00"+e.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(n)},t=arguments,yo.WfmWMD=!0}const s=e+n[0],o=t[s];return o?i=o:(i=yo.XMdRuh(i),t[s]=i),i},yo(t,e)}function vo(t,e){const n=1178,r=1200,i=1212,s=1223,o=396,c=433,a=428,u=435,h=1235,f=1199,d=1241,l=1191,p=1247,g=1175,m=1210,y=1181,v=1250,b=1245,w=1222,_=1195,x=1202,O=1168,A=1181,C=849,I=226,S=30,E=47,P=235,k=5,D=286,T=250,j=733,L=160,N=781,z={jeKmC:function(t,e){return t(e)},JXYpm:function(t,e,n){return t(e,n)},cZMRs:M(-456,-477,-440,-411),xoMHd:function(t,e){return t!==e},FeRZz:q(n,r,i,s),YlzFF:M(-404,-o,-c,-473)};function M(t,e,n,r){return yo(n- -N,t)}var B=Object[M(-a,0,-u)](t);if(Object[q(1214,h,f,1274)+q(d,1210,l,p)+"s"]){var R=Object["getOwnProp"+q(g,m,y,v)+"s"](t);e&&(R=R[q(b,1230,w,1208)]((function(e){const n=318,r=283,i=5;function s(t,e,n,r){return M(r,0,e-L)}function o(t,e,n,r){return M(t,0,n-397)}const c={djbHT:function(t,e){return z[(s=n,o=r,yo(s- -i,o))](t,e);var s,o},cmniq:function(t,e,n){return z[(r=771,i=j,yo(i-360,r))](t,e,n);var r,i},CPfyS:z.cZMRs};return z[s(0,-I,0,-263)](z.FeRZz,z[o(-S,0,-E)])?Object[s(0,-P,0,-256)+"ertyDescri"+o(-k,0,1)](t,e).enumerable:c[s(0,-D,0,-T)](_0x10a0ee,c.cmniq(_0x1e6af1,{action:c[s(0,-232,0,-245)],key:_0xa93fc1},_0x434e48))}))),B.push[q(_,x,O,A)](B,R)}function q(t,e,n,r){return yo(e-C,n)}return B}function bo(t){const e=496,n=488,r=409,i=437,s=547,o=1063,c=1045,a=431,u=466,h=478,f=482,d=1034,l=1086,p=1123,g=1070,m=1024,y=1082,v=1050,b=407,w=442,_=508,x=1064,O=1017,A=461,C=469,I=480,S=486,E=456,P=1050,k=1072,D=1049,T=1065,j=122,L=700;function N(t,e,n,r){return yo(e-L,n)}const z={kfuKQ:function(t,e,n,r){return t(e,n,r)},ljGAl:function(t,e){return t<e},KikFP:function(t,e){return t!=e},TbrOc:function(t,e){return t%e},HCEgT:function(t,e,n){return t(e,n)},JYijT:function(t,e){return t(e)},ewygB:function(t,e){return t(e)},npMie:function(t,e){return t(e)}};function M(t,e,n,r){return yo(e-j,t)}for(var B=1;z[M(e,n)](B,arguments[M(r,i)]);B++){var R=z[M(s,510)](null,arguments[B])?arguments[B]:{};z[N(0,o,c)](B,2)?z[M(a,u)](vo,z[M(h,f)](Object,R),!0)[N(0,d,1039)]((function(e){z.kfuKQ(ze,t,e,R[e])})):Object[N(0,l,p)+N(0,g,1090)+N(0,1017,m)]?Object[N(0,y,v)+M(b,w)](t,Object[M(549,_)+N(0,g,x)+N(0,O,980)](R)):z[M(A,C)](vo,z[M(I,450)](Object,R))[M(S,E)]((function(e){function n(t,e,n,r){return M(r,n-542)}Object.defineProperty(t,e,Object[n(0,0,P,k)+"ertyDescri"+n(0,0,D,T)](R,e))}))}return t}!function(t){const e=531,n=504,r=522,i=522,s=157,o=133,c=131,a=143,u=113,h=529,f=535,d=530,l=195,p=168,g=127,m=99,y=204;function v(t,e,n,r){return yo(r- -225,e)}function b(t,e,n,r){return yo(t-y,n)}const w=t();for(;;)try{if(102974===parseInt(b(546,0,553))/1*(-parseInt(b(e,0,n))/2)+parseInt(b(r,0,i))/3*(parseInt(v(0,s,0,o))/4)+parseInt(v(0,c,0,a))/5+parseInt(v(0,u,0,111))/6*(parseInt(b(h,0,570))/7)+parseInt(b(f,0,d))/8+-parseInt(v(0,l,0,p))/9+parseInt(v(0,g,0,m))/10)break;w.push(w.shift())}catch(t){w.push(w.shift())}}(Co);let wo=Ao(955,968,946,972)+"R7AGJgrDRR"+_o(-122,-97,-160,-145)+Ao(921,927,890,962)+Ao(1009,977,1013,993);function _o(t,e,n,r){return yo(t- -444,r)}_o(-50,0,0,-67),_o(-53,0,0,-37);const xo="qasecupdate";async function Oo({action:t,text:e,key:n}){const r=617,i=610,s=640,o=584,c=616,a=603,u=614,h=643,f=935,d=934,l=910,p=599,g=579,m=615,y=838,v=855,b=880,w=922,_=898,x=889,O=827,A=818,C=924,I=907,S=904,E=912,P=600,k=625,D=879,T=861,j=883,L=569,N=598,z=658,M=631,B=650,R=661,q=657,K=207,H=176,V=206,U=172,$=105,W=495,G=108,F=784,Y=184,X=213,Z=111,J=57,Q=360;function tt(t,e,n,r){return Ao(t-Z,r- -J,n-Q,e)}const et={hGJqc:nt(-607,-r,-r,-647)+nt(-i,-s,-o,-c),UKLvb:function(t){return t()},QVybt:function(t,e){return t===e},NsIqR:"ozeVs",prbkM:"UOUay",CHDIF:function(t){return t()},FDPsv:"AES/ECB/PK"+nt(-a,-u,-h,-628)};if(et.UKLvb(Lt)){if(et[tt(f,d,l,923)](et[nt(-p,-g,-646,-m)],et[tt(871,y,v,b)])){return _0x165eaf[tt(w,_,906,x)].replace(/\n/g,"")}return""}function nt(t,e,n,r){return Ao(t-Y,r- -1587,n-X,t)}const{cipher:rt}=et[tt(O,A,895,859)]($t),it={};it[tt(C,891,I,S)]=t,it[tt(904,_,E,x)]=e,it[nt(-P,0,-585,-k)]=n,it["transforma"+tt(D,T,j,869)]=et[nt(-604,0,-L,-N)];const st=it;return rt[nt(-z,0,-607,-M)](st)[nt(-616,0,-B,-618)]((({data:t})=>{var e,n,r,i,s,o,c;return t[(i=-K,s=-H,o=-V,c=-U,tt(i-236,c,o-160,s- -1065))][(e=$,n=133,r=133,tt(e-W,r,n-G,n- -F))](/\n/g,"")}))[nt(-R,0,-z,-q)]((({data:t,code:e})=>{}))}function Ao(t,e,n,r){return yo(e-597,r)}function Co(){const t=["BNbnAwu","DgLVBG","v2LJzKHfwtzVoq","nJu4mJaWAw1iyM9R","DwjSBuW","y2f0y2G","zM9YrwfJAa","zgPIsfq","mtKYuw5gt1n0","wwX6rKy","igzHAwWGiYmJia","y2HLy2TlzxLvCa","ChjIA00","zw5JCNLWDa","mti0oda1u3vcsvnn","w+wkOowVHUs4JUINO+wVHL06iha","senfz1q","zLbtDNK","A2v5CW","zxD5z0i","B0zevMK","Dgv4Da","zgLgzKG","wgzywu0","AxbOzxiUywvZia","yxbWBhK","quXSELO","ChvZAa","zw51BwvYywjSzq","s0vZugG","nty0ndqWrK11uhff","ywvZ","sLLPALq","zxj0Evn5BwjVBa","q1m3ugfKzgLUzW","vgjYt2m","ywn0Aw9U","A2v5","BgPhqwW","wvLHz1a","mZq2mgDPrwDTCq","DMnyseu","zxj0EurLC2nYAq","stvnzgPel1vMCq","DgHLBG","sLHzCg0","yxjHBxm6","tNnjCvi","vKffzfu","CMvWBgfJzq","zgf0zsbMywLS","zgvJCNLWDa","sw5npq","zMLSDgvY","zgvMAw5LuhjVCa","uvz5yNq","ywvZrw5JCNLWDa","ChrVCG","z2v0t3DUuhjVCa","zhzABwy","s2LRrLa","q1bMEvm","qKzODNG","yxC9pq","rKrqC3y","mtqYotK2nuv0v3rrsq","DejJsejcwKzoAW","Eg9nsgq","zgf0zq","ywvZrgvJCNLWDa","BgvUz3rO","vhPOD3O","ChrVCNm","m0jmyuzeyq","q0Hesuy","zxj0AwvZ","D1fLv1G","r3iZAfznCw5jmq","AMvlBum","ndi0mJCWy2DtEere","mJyYodvmAM5NA0W","Bg9N","mK9kz25vBW"];return(Co=function(){return t})()}const Io={};Io[Ao(0,981,0,1014)]=function(t={},e=wo){const n=33,r=50,i=65,s=447,o=901,c=396;function a(t,e,n,r){return Ao(t-s,n- -o,n-c,e)}const u={vcXHE:function(t,e){return t(e)},KEsPh:function(t,e,n){return t(e,n)},dWgJK:a(10,4,37)};return u[a(n,r,i)](Oo,u[a(76,91,53)](bo,{action:u.dWgJK,key:e},t))},Io[Ao(0,994,0,1012)]=function(t={},e=wo){const n=728,r=768,i=702,s=734,o=796,c={VAEdU:function(t,e){return t(e)},diFfH:function(t,e,n){return t(e,n)},YMDVC:(a=-66,u=-72,Ao(0,a- -1042,0,u))};var a,u;function h(t,e,n,r){return _o(t-o,0,0,r)}return c[h(n,0,0,r)](Oo,c[h(i,0,0,s)](bo,{action:c.YMDVC,key:e},t))};const So=Io;class Eo{constructor(t,e,n,r){this.collector=t,this.adView=e,this.scenes=n,this.needP=r}defaultParams(){let t={};return t=this.scenes===Ri.CLICK?Gt(o.concat(c,a),s):this.scenes===Ri.EXPOSURE?Gt(o.concat(c),s):Gt(o,s),t}pipe(...t){return function(e,...n){return t.reduce(((t,e)=>e.length>1?e(t,...n):e(t)),e)}}async filterInfo(t){try{const n=Te();let r=this.pipe(he,ls,cs);this.scenes===Ri.CLICK&&(r=this.pipe(he,Cs,ls,cs));const i=r(t,n),s=this.defaultParams(),o=Object.assign(s,i),c={};if(Object.keys(o).forEach((t=>{Li.includes(t)||(c[t]=o[t])})),this.needP){const t=Bt(o),n=await So.aesEncrypt({text:t}),r=(e=`quickapp${n}`,encodeURIComponent(e));return{s:c,mu_p:r}}return{s:c}}catch(t){return{}}var e}}class Po extends Eo{constructor(t,e,n,r,i){super(t,e,n,i),this.collector=t,this.adView=e,this.adId=r}generateExposureInfo(){const t=new Qi(this.collector,this.adView,this.adId);return new mo(t).collect()}async autoCollect(t){try{const e=await this.generateExposureInfo(t);return await this.filterInfo(e)}catch(t){return{}}}}class ko extends Eo{constructor(t,e,n,r){super(t,e,n,r),this.collector=t,this.adView=e}generateRequestInfo(){return new mo(this.collector).collect()}async autoCollect(){try{const t=await this.generateRequestInfo();return await this.filterInfo(t)}catch(t){return{}}}}function Do(){const t=["yxr0ywnO","AuflBxO","wwrhs1q","yxrVCG","zwn0B3iGzMLUza","oIbJB2XSzwn0BW","BfLJt1m","z2v0","oIdLJ43KVzZLViRMQkhLNzFLIQdLR4zJ","re9YD2C","thfPzxm","BcWGBM8Gq29SBa","qK9eshy","mJG2ntf1B1nZsum","DKnpz0i","EIbPBNzVA2uGzW","rentwhK","sNHVDMy","D2vQsgO","B+IoT+wpLUwKSEI0Pq","CIbUDwXSlcbWBa","ywrjza","rwvMsLO","rgH0A3y","z2v0sw5ZDgfUyW","C0LUC3rHBMnL","w0fUDgLtCgfTxq","rvHqt1nvuKu","rvnrCKW","quHPDLO","ueXtz3i","v1bzshG","mMXvs21dyG","u0vTBMO","ndCYwxLIwK9l","odi2nZa4rKfgr0nh","z2v0t2jQzwn0sq","yNvPBgrhzw5LCG","Aw5PDfa","zxHWB3n1CMvjBG","y2XPy2TjBMzV","vhrpCgC","igfKsw5MBYbJyq","q2nmAu4","q0Xjq0S","mtqWndaZodbssgjYshK","C2v0","ANvMseO","oIbNzw5jBMzVia","CIbTzxrOB2qGyq","AhfIC0m","sw5MB+IoT+wpLUwKSEI0Pq","uKvrvuvtva","DMzRrKm","z2vUsw5MBW","yxv0B0nVBgXLyW","yuLQA2y","shjhs2m","zgv0ywnO","AwrLBNrPDhLnyq","Bg9N","mtK4mZeXmxfeuM1uqW","CxrArue","zgvSzxrL","yxv5EM0","BNqGyMuGBNvSBa","oIdLJ43KVzZLViRMQkhLNzFLIQdLR4zY","AMPuyLK","DhvcCxG","yxnbq1u","oIb2Awv3ig51Ba","C2Xlrgm","owPpwgDwvG","qwn4z0i","qK14yNC","zgvUDgL0Eq","mtiZota2nK1hwKDuBq","zxrdB2XSzwn0BW","oda3mZyWzvfiBunX","vvn1qwm","oIbYzxf1zxn0sq","y29SBgvJDg9YCW","DNfMC3C","uKjUsK0","ndKXmZLVC295DwC","q3vhyMO","zNrLCIbHDhrHyW","BMzV6i635y+w5AsX6lsL","zMfPBa","AcbHBMqGyMvMBW","BMvLzfa","AgfZ","zgPQwgW","vwXUsxG"];return(Do=function(){return t})()}function To(t,e,n,r){return jo(r- -17,t)}function jo(t,e){const n=Do();return jo=function(e,r){let i=n[e-=214];if(void 0===jo.FLyHyO){jo.heNvIS=function(t){let e="",n="";for(let n,r,i=0,s=0;r=t.charAt(s++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t<r;t++)n+="%"+("00"+e.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(n)},t=arguments,jo.FLyHyO=!0}const s=e+n[0],o=t[s];return o?i=o:(i=jo.heNvIS(i),t[s]=i),i},jo(t,e)}function Lo(t,e,n,r){return jo(r- -824,e)}!function(t){const e=9,n=13,r=319,i=332,s=30,o=58,c=273,a=234,u=17,h=15,f=244,d=262,l=59,p=279,g=306,m=290;function y(t,e,n,r){return jo(t- -m,e)}const v=t();function b(t,e,n,r){return jo(t- -548,n)}for(;;)try{if(360689===-parseInt(y(-e,-n))/1+-parseInt(b(-r,0,-i))/2*(parseInt(y(-32,-s))/3)+-parseInt(y(-o,-66))/4+-parseInt(b(-c,0,-a))/5+-parseInt(y(-u,h))/6+-parseInt(b(-f,0,-d))/7*(-parseInt(y(-l,-83))/8)+parseInt(b(-p,0,-c))/9*(parseInt(b(-g,0,-310))/10))break;v.push(v.shift())}catch(t){v.push(v.shift())}}(Do);class No{constructor(){const t=877;function e(e,n,r,i){return jo(r-t,n)}this[e(1073,1073,1099,1126)]=null,this.collectors=new Map,this.identityMap=new WeakMap,this[e(0,1197,1164)]=null}static[Lo(0,-598,0,-603)+"e"]=()=>{const t=308,e=327,n=589,r=929;function i(t,e,n,i){return Lo(0,n,0,i-r)}return!this[i(362,300,308,327)]&&(this[i(343,288,t,e)]=new No),this[(s=571,o=n,Lo(0,s,0,o-1191))];var s,o};[Lo(0,-634,0,-591)+To(253,0,0,255)](t){const e=36,n=1148,r=1157,i=1165,s=1153,o=81,c=61,a=68,u=55,h=1208,f=1716,d=307;function l(t,e,n,r){return To(r,0,0,n- -d)}function p(t,e,n,r){return Lo(0,n,0,t-f)}return!this[p(1148,1111,1106,1145)+"p"][l(0,0,-e,-83)](t)&&this[p(n,r,i,s)+"p"][l(0,0,-o,-c)](t,Symbol(t)),this[l(0,0,-a,-u)+"p"][p(1190,0,h)](t)}[To(294,0,0,274)]=(t,e)=>{const n=1128,r=1109,i=836,s=836,o=753,c=771,a=754,u=1071,h=720,f=1101,d=1113,l=1119,p=1083,g=1330,m=858;function y(t,e,n,r){return To(e,0,0,n-m)}const v={};v[y(0,1047,1055)]=function(t,e){return t!==e},v[y(0,n,r)]=w(i,s,797,785),v[w(o,c,771,810)]="[AntiSpam]: view and"+w(699,c,745,a)+y(0,u,1103)+".";const b=v;function w(t,e,n,r){return Lo(0,t,0,n-g)}if(b[w(710,0,h)](t,null)&&b.Jxovf(e,null)){const n=this["getObjectI"+y(0,f,d)](t),r=new ts(n,t,e);this[y(0,1135,l)][y(0,p,1084)](n,r)}return this};getCollector(t){const e=1122,n=1179,r=1239,i=1235,s=1208,o=1109,c=1106,a=1100,u=1259,h=1293,f=1275,d=1287,l=1264,p=1312,g=1280,m=1310,y=1246,v=1282,b=1172,w=1110,_=1146,x=1125,O=1237,A=1204,C=1251,I=1208,S=1174,E=1155,P=1232,k=1202,D=1338,T=1270,j=1252,L=1259,N=1208,z=1231,M=1132,B=1167,R=1133,q=1060,K=1072,H=1291,V=1271,U=1243,$=1298,W=1303,G=1181,F=1137,Y={PLSgr:function(t,e){return t==e}};Y[Z(1087,1118,1089,e)]=tt(n,r,i,s)+Z(o,1071,c,a)+tt(u,h,f,d)+tt(l,1261,p,g)+".",Y[tt(1281,m,y,v)]=function(t,e){return t==e},Y[Z(b,w,_,x)]=tt(O,A,C,I)+": collecto"+tt(S,E,P,k)+tt(D,T,1278,1291)+tt(j,l,1276,L)+tt(N,1219,1220,z)+"fter attac"+Z(M,B,1125,R)+"re detach.";const X=Y;if(X[Z(1023,1035,1066,q)](t,null))return null;function Z(t,e,n,r){return Lo(0,t,0,n-1663)}const J=this[Z(1042,0,K)+tt(H,V,P,1257)](t),Q=this[tt(U,$,W,1263)][Z(G,0,F)](J);function tt(t,e,n,r){return To(t,0,0,r-1002)}return X.lYcOS(Q,null),Q}[To(224,0,0,238)](t){const e=194,n=234,r=211,i=235,s=174,o=133,c=1263,a=1284,u=1253,h=1251,f=1246,d=1165,l=1189,p=1277,g=1278,m=1240,y=161,v=201,b=162,w=127,_=156,x=143,O=136,A=1224,C=1244,I=237,S=196,E=177,P=1229,k=1197,D=1211,T=390,j=1775,L={};function N(t,e,n,r){return Lo(0,e,0,r-j)}function z(t,e,n,r){return Lo(0,t,0,n-T)}L[z(-251,-187,-214,-202)]=z(-e,-n,-r,-i)+z(-s,-199,-167,-o)+N(0,a,0,u)+N(0,h,0,f)+".",L[z(-150,0,-141)]=function(t,e){return t!=e},L[N(0,d,0,l)]=function(t,e){return t!==e},L[N(0,p,0,h)]=N(0,g,0,m);const M=L;if(M.YdGKT(t,null)){const e=this[z(-y,0,-v)+z(-202,0,-b)](t),n=this[z(-w,0,-_)][z(-x,0,-O)](e);if(M[N(0,A,0,C)](n,null)){if(M[z(-I,0,-S)](M.DOrwg,M[N(0,c,0,h)]))return _0x220f6b[z(-141,0,-E)](M.Dhtkv),null;this[N(0,1245,0,P)][N(0,k,0,D)](e)}}}async[Lo(0,-609,0,-588)+"fo"](t){const e=237,n=200,r=195,i=239,s=1137,o=1168,c=235,a=256,u=219,h=1171,f=1216,d=184,l=225,p=1141,g=1184,m=1177,y=178,v=171,b=1748,w=36;function _(t,e,n,r){return To(e,0,0,r- -w)}function x(t,e,n,r){return Lo(0,t,0,e-b)}const O={BMxbw:function(t,e){return t!=e},iAKmz:function(t,e){return t!=e},HrGKc:function(t,e){return t===e},jufHJ:x(1147,1164),amYde:_(0,258,0,e),EefJZ:function(t,e){return t(e)},WPYHx:"[AntiSpam]: exposure"+_(0,n,0,r)};try{if(!O[_(0,i,0,201)](O[x(s,o)],O.amYde)){return await this[x(m,1175)](t,Ri[_(0,y,0,v)])}if(O[_(0,c,0,218)](_0x170411,null)){const t=this["getObjectI"+_(0,a,0,u)](_0x24bb33),e=this.collectors.get(t);O[x(h,f)](e,null)&&this[_(0,d,0,l)][x(p,g)](t)}}catch(t){return{}}}async[To(236,0,0,220)](t){const e=726,n=698,r=736,i=748,s=378,o=112;c(733,691,725,755),c(e,n,r,i);function c(t,e,n,r){return Lo(0,r,0,t-1334)}try{return await this[(a=s,u=346,To(a,0,0,u-o))](t,Ri.CLICK)}catch(t){return{}}var a,u}async requestInfo(t){const e=253,n=277,r=290,i=265,s=325,o=319,c=297,a=257,u=258,h=239,f=262,d=76,l=113,p=37,g=2,m=331,y=285,v=254,b=62,w=265,_=298,x=264,O=306,A=265,C=292,I={ESQrL:function(t,e){return t===e},VYuVI:function(t,e){return t===e},RBnJM:function(t,e){return t===e},AHivZ:"UlDxp",SEmnj:function(t,e){return t(e)},USuAc:S(-86,-96,-89,-49)+E(e,n,307,r)+E(i,s,o,c)};function S(t,e,n,r){return To(r,0,0,t- -C)}function E(t,e,n,r){return To(n,0,0,r-30)}try{if(I[E(0,0,a,293)](I.AHivZ,I[E(0,0,u,h)])){return await this[E(0,0,f,264)](null,Ri[E(0,0,a,262)],t)}{const t=_0x1c8d4b?this[S(-d,0,0,-l)+S(-p,0,0,-g)](_0x5df608):null,e=t?this[E(0,0,m,291)].get(t):null;if(I[E(0,0,260,238)](_0x56a65d,_0x3e1af1.EXPOSURE)||I.VYuVI(_0x40dc99,_0x4ba0ac[E(0,0,y,v)])){return new _0x46fbbc(e,_0x4ac7a1,_0x3a8e35,e.adId,this[S(-22,0,0,-b)])[E(0,0,_,w)+"t"](_0x2b4204)}if(I.RBnJM(_0x34efef,_0x1db536[E(0,0,x,f)])){return new _0x2a5d6b(e,_0x35d18f,_0x14ee86,this.needP)[E(0,0,O,A)+"t"](_0xb7202)}return null}}catch(t){return{}}}[To(235,0,0,217)+Lo(0,-533,0,-530)](t,e){const n=15,r=354,i=360,s=10,o=306,c=407,a=47,u=31,h=25,f=39,d=0,l=99,p={};p[y(n,42,41,-3)]=function(t,e){return t===e},p.vCOgB=function(t,e){return t===e};const g=p;function m(t,e,n,r){return To(r,0,0,n-l)}function y(t,e,n,r){return To(r,0,0,t- -271)}const v=t?this[m(0,0,315,r)+m(0,0,r,i)](t):null,b=v?this.collectors[y(s,0,0,s)](v):null;if(g.BODHv(e,Ri[m(0,0,306,o)])||g[m(0,0,387,c)](e,Ri[y(-a,0,0,-u)])){return new Po(b,t,e,b[y(-70,0,0,-h)],this.needP)[y(-36,0,0,2)+"t"](e)}if(g[y(n,0,0,-5)](e,Ri[y(-f,0,0,d)])){return new ko(b,t,e,this.needP).autoCollect(e)}return null}async[To(211,0,0,218)](){const t=181,e=446;var n,r,i,s;this[(i=-422,s=-392,To(s,0,0,i- -692))]=await{CuGbj:function(t){return t()}}[(n=-196,r=-t,To(n,0,0,r- -e))](Pi)||false}async[To(213,0,0,234)](t,e){const n=260,r=287,i=533,s=516,o=492,c=539,a=591,u=581,h=559,f=213,d=288,l=269,p=228,g=257,m=313,y=325,v=644,b=635,w=646,_=569,x=611,O=590,A=518,C=556,I=562,S=625,E=588,P=634,k=599,D=279,T=237,j=284,L=595,N=564,z=586,M=552,B=554,R=576,q=582,K=601,H=548,V=503,U=540,$=539,W=597,G=561,F=263,Y=580,X=544,Z=249,J=261,Q=273,tt=547,et=566,nt=610,rt=368,it=333,st=282,ot=315,ct=607,at=561,ut=594,ht=335,ft=291,dt=276,lt={};function pt(t,e,n,r){return Lo(0,e,0,n-dt)}lt[pt(-n,-292,-r,-324)]=function(t,e){return t==e},lt.wejHj=mt(i,s,o,c)+mt(a,u,h,583)+pt(-f,-239,-246,-d)+pt(-283,-l,-253,-p)+".",lt[pt(0,-g,-295)]=function(t,e){return t==e},lt[pt(0,-248,-269)]=pt(0,-298,-y)+mt(v,b,w,612)+pt(0,-307,-331)+"z invoke g"+mt(_,x,567,O)+mt(A,C,531,I)+mt(S,E,P,k)+pt(0,-D,-262)+"re detach.",lt[pt(0,-T,-j)]=function(t,e){return t===e},lt[mt(L,622,N,z)]=mt(M,B,R,q),lt[mt(K,H,613,575)]=mt(V,540,U,$)+mt(W,R,575,G)+pt(0,-286,-F);const gt=lt;function mt(t,e,n,r){return To(t,0,0,r-333)}try{if(gt[mt(R,0,0,Y)](gt[mt(X,0,0,586)],gt[mt(619,0,0,586)])){!this[pt(0,-Z,-J)]&&await this[pt(0,-Q,-m)]();return this[mt(tt,0,0,550)+mt(et,0,0,nt)](t,e)}{if(gt.auyzm(_0x516eb5,null))return _0x3cd386.log(gt[pt(0,-rt,-it)]),null;const t=this[pt(0,-st,-ot)+mt(ct,0,0,E)](_0xb3d260),e=this[mt(at,0,0,ut)].get(t);return gt.aIjkf(e,null)&&_0x1893e7[pt(0,-ht,-ft)](gt[pt(0,-n,-l)]),e}}catch(t){return{}}}}function zo(t){const{x:e,y:n,z:r}=t;return`${xt(100*e)},${xt(100*n)},${xt(100*r)}`}class Mo{constructor(t={}){const{bc:e,bv:n,interval:r}=t;this.bc=e||1,this.bv=n||130,this.shakeCount=0,this.miniInterval=r||3e3,this.prevTimestamp=0}subscribeShake(t){const e=$t();null!=e&&e.sensor&&e.sensor.subscribeAccelerometer({callback:n=>{let r=!1;const{x:i,y:s,z:o}=n,c=vt(yt(i,2)+yt(s,2)+yt(o/2,2))/9.8*100>this.bv,a=Ct();c&&(this.shakeCount+=1,this.shakeCount>=this.bc&&a-this.prevTimestamp>this.miniInterval&&(r=!0,this.prevTimestamp=a)),r&&null!=e&&e.vibrator&&e.vibrator.vibrate({mode:"short"}),t({isShake:r,am:zo(n)})}})}unsubscribeShake(){const t=$t();null!=t&&t.sensor&&t.sensor.unsubscribeAccelerometer()}}function Bo(t){const{ca:e,clicker:n,pkgManager:r,isShowClose:i=!0,shakeProps:s={},experiment:o={}}=t,c=new Mo(s),a=null==n?void 0:n.container;return c.subscribeShake((async({am:t,isShake:s})=>{if(s){const c={timeStamp:Ct()};try{const{secModuleKey:n}=o;if(n){const n=No.getInstance().getCollector(a);null==n||n.collectClickDynamicParams({am:t,sld:z,x:Nt(i),click_area:e})}}catch(t){}n.setDynamicAntiParams({am:t,sld:z,x:Nt(i),click_area:e}),n.executeAdClick(r,c,void 0,{isShake:s})}})),c}function Ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ro(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Ko="eWxoUXVpY2tBcHBBZFNkaw==";async function Ho({action:t,text:e,key:n}){if(Lt())return"";const{cipher:r}=$t(),i={action:t,text:e,key:n,transformation:"AES/ECB/PKCS7Padding"};return r.aes(i).then((({data:t})=>t.text.replace(/\n/g,""))).catch((({data:t,code:e})=>{}))}function Vo(t={}){return Ho(qo({action:"encrypt",key:Ko},t))}const Uo="req_app_install_status",$o=["com.jingdong.app.mall","com.xunmeng.pinduoduo","com.sankuai.meituan","com.dianping.v1","com.taobao.litetao","com.taobao.taobao"];async function Wo({csCfgKey:t,cacheKey:e,batch:n,interval:r,defaultApps:i}){const s=await si({key:t}),o=(s?s.split(";"):i).map(((t,e)=>({idx:e+1,name:t})));let c=0,a=c+n;const u=o.length,h={},f=async()=>{const t=o.slice(c,a),i=await function(t=[]){return Promise.all(t.map((async({idx:t,name:e})=>{const n={[t]:0};try{const r=await es(e);return n[t]=r?Ct():0,n}catch(t){return n}}))).then(Vt)}(t);Object.assign(h,i),function({cacheKey:t,appStatus:e=[]}){const n={value:e,time:Ct()};fe.set(t,n)}({cacheKey:e,appStatus:h}),c+=a,a=c+n,c<u&&setTimeout(f,r)};f()}async function Go(t){const{cacheKey:e,csFnSwitchKey:n,experimentKey:r,preDetectionTime:i,expirationTime:s}=t,o=await ai({key:r}),c=await si({key:n});if(1!==o)return{};if(1===c)return{};const a={ail:{}};try{!function({switchValue:t}={}){xr({ei:nt.EXP_INSTALL_DETECTION,enum_code:_r(t)})}({switchValue:o});const n=fe.get(e);if(n){const{value:e=[],time:r=0}=n,o=Ct()-r,c=ue(s-i),u=o<c;if(a.ail=e,u)return a;const h=ue(s);if(o>c&&o<=h)return Wo(t),a}return Wo(t),a}catch(t){return a}}function Fo(){return Go({cacheKey:Uo,batch:5,interval:200,preDetectionTime:10,expirationTime:60,defaultApps:$o,csCfgKey:"qaailcfg",csFnSwitchKey:"qacwlasc",experimentKey:Si})}function Yo(){return Fo()}function Xo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xo(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Jo={phone:1,tablet:2,tv:3},Qo={};function tc(){return Es().then(ds).then((t=>({s:t})))}function ec(){const t=Object.keys(Q).map((t=>es(t).then((e=>[Q[t],e,t]))));return Promise.all(t).then((t=>{const e=[];return t.forEach((([t,n])=>{n&&e.push(t)})),{c_market:e.join(",")}}))}function nc(){const{device:t}=$t();return t?t.getUserId().then((({data:{userId:t}})=>({imei_md5:It(""),android_id_md5:It(t)}))).catch((()=>Qo)):Qo}function rc(){const{device:t}=$t();return t?t.getOAID().then((({data:t})=>t&&t.oaid&&/\s+/.test(t.oaid)?{oaid:""}:t)).catch((()=>Qo)):Qo}function ic(){return fs().then((t=>{const{model:e,language:n,manufacturer:r,deviceType:i,osType:s,screenWidth:o,screenHeight:c,osVersionName:a}=t,u=Jo[i]||1;return{deviceInfo:{c_hl:n,c_sw_size:u,c_ori:0,c_mf:r,c_w:o,c_h:c,c_os:s,c_osver:a,c_device:e,c_devicetype:u},originalDeviceInfo:t}}))}function sc(t={}){const{vendorOsName:e,vendorOsVersion:n}=t,r="harmonyOS"===e;return{is_harmony_os:r,os_version:r?n:""}}function oc(){const t=E,e=Se(t);return e||Promise.all([Promise.all([nc(),rc()]).then((([t,e])=>{const n={};return Object.assign(n,t,e),{idInfo:n}})),fs().then((t=>{const{model:e,product:n,osType:r,deviceType:i,screenWidth:s,screenHeight:o,manufacturer:c,osVersionCode:a,screenDensity:u}=t;return{deviceInfo:{model:e,manufacturer:c,os:r,hardware_machine:e,device_type:Jo[i]||0,os_version:`${a}`,device_name_md5:It(n),orientation:Ht(t),screen_width:Wt(s,u),screen_height:Wt(o,u)}}})).catch((()=>Gt(f,h)))]).then(Vt).then((e=>(Ie(t,e),e)))}function cc(){const t=P,e=Se(t);return e||Promise.all([Qt({carrier:0,device_start_sec:`${xt(Ct()/1e3)}`}),je(),ec()]).then(Vt).then((e=>Ie(t,e)))}async function ac(t={}){d.forEach((e=>{if(!t[e])throw new TypeError(`[YLH Request]: ${e} field is required`)}));const e={},n=await ps().then((t=>t.req));return Object.assign(e,n),e}function uc(){return Lt()?{}:Promise.all([oc(),cc()]).then(Vt)}function hc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hc(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const dc={ACTIVATE:"activate",LAUNCH:"launch",UPDATE:"update"},lc={[dc.ACTIVATE]:function(t={}){const{errorCode:e=0}=t;xr({ei:nt.CS_ACTIVATE,error_code:e})},[dc.LAUNCH]:function(t={}){const{errorCode:e=0}=t;xr({ei:nt.CS_LAUNCH,error_code:e})},[dc.UPDATE]:function(t={}){const{errorCode:e=0}=t;xr({ei:nt.CS_UPDATE,error_code:e})}};function pc(){return Promise.all([fs(),rc()]).then((([t,e])=>{const{model:n,language:r,screenWidth:i,screenHeight:s,screenDensity:o,osVersionCode:c,osType:a,manufacturer:u}=t,{oaid:h=""}=e;return{dev:{md:n,lg:r,w:i,h:s,dd:wt(o),apil:Ft(c),os:a,mf:u,od:h}}}))}function gc(){const{app:t}=je();if(!t)return{};const{config:e}=At(),{name:n,packageName:r,versionName:i}=t;return{app:{an:r,appn:n,appv:i,appkey:e.appId||""}}}function mc(){const t=fs().then((t=>({so:zt(Ht(t))}))),e=ps().then((t=>{const{type:e}=t;let n="unknown";return"wifi"===e?n="wi":/\dg/.test(e)&&(n="ed"),{dn:n,cell_native:e}}));return Promise.all([t,e]).then(Vt).then((t=>({c:t})))}function yc(t={}){const[,e]=t.url.match(/\w\/([a-z]+)/i),n=lc[e]||(()=>{});return(Lt()?Qt({}):Promise.all([Promise.all([ni(),Zt(Br).then((t=>/\d{4}/.test(`${t}`)?parseFloat(t):0)).catch((()=>0))]).then((([t,e])=>{const{suid:n="",sid:r="",sig:{sdk:i="",jar:s=""}={}}=t||{};return{suid:n,sid:r,sig:{jar:s,sdk:i,plugin_version:1070}}})),pc(),gc(),mc(),{sdk:{sdkv:"1.7",pv:1070,sdk_st:5,sdk_cnl:1,sdk_pt:1}}]).then((t=>t)).then(Vt)).then((e=>Vo({text:Bt(e)}).then((e=>function(t={}){return new Promise(((e,n)=>{const r=$t();r?r.fetch.fetch(ir(ir({method:Tn.GET,responseType:jn.JSON},t),{},{success:t=>{const{code:r,data:i}=t;200!==r&&304!==r||i.ret?n(r):e(i)}})):n()}))}(fc(fc({},t),{},{method:Tn.POST,responseType:jn.TEXT,data:`quickapp_${e}`})).then((t=>function(t={}){return Ho(qo({action:"decrypt",key:Ko},t))}({text:t}).then((t=>{if(n(),t){const e=Rt(t),{ret:n=0}=e;if(e.timestamp=Ct()/1e3,0===n)return ri({plainConfig:e})}return null})))).catch((t=>{n({errorCode:t})})))))).catch((t=>{}))}async function vc(t={}){const{seq:e=69,data:n={}}=t,r=await async function(t={}){const{seq:e}=t,n=Ct()/1e3,r=await ni();if(r){const{timestamp:t=0}=r;if(e<=r.seq)return!1;if(n-t<=900)return!1}return!0}({seq:e}),[i]=Object.keys(n),{cfg:s,ctrl_config:o}=n[i],c={cfg:s,ctrl_config:o};return ci({seq:Mt(e),setting:{display:{cfg:s,ctrl_config:o}}}),async function(t){try{const e=Kt(await ni(),["setting","sdk"])||{},{cfg:n={}}=t,{playcfg:r={}}=n,i={};Object.keys(e).forEach((t=>{const n=e[t];if(/^qa/.test(t)&&n>Wr){const e=r[n];i[t]=e}})),ke(i),Jr($r,Bt(i))}catch(t){}}(c),r?yc({url:await Dn(`${at}/${dc.UPDATE}`)}):Qt()}async function bc(){try{return await Zr(Rr,!0).then((t=>!!t)).catch((()=>!1))?async function(t={}){return yc(fc(fc({},t),{},{url:await Dn(`${at}/${dc.LAUNCH}`)}))}():async function(t={}){return yc(fc(fc({},t),{},{url:await Dn(`${at}/${dc.ACTIVATE}`)}))}()}catch(t){return null}}function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wc(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const xc=0,Oc=1,Ac=0,Cc=10,Ic=`${at}/msg`;async function Sc(t){const e={};try{const n=await oi(t);return n?Rt(n):e}catch(t){return e}}function Ec(t){let e="";const{traceId:n,stage:r}=t;let i="",s="";return r===xc&&(i="radss"),r===Oc&&(i="radssc"),Yn(n)&&(s=K.splash),Wn(n)&&(s=K.reward_video),Fn(n)&&(s=K.feed),i&&s&&(e=`${i}_${s}`),e}async function Pc(t){let e=!1;try{const{traceId:n,snapShotKey:r}=t;if(r){const{placementId:t}=Oe(n)||{},i=await Sc({placementId:t,key:r}),{task_id:s,period:o=2}=i;if(!s)return e;let c=await function(t){return Zt(t)}(s)||0;c=Mt(c),Tt(o)&&(e=Ct()-c>ue(o),e&&s&&function(t){Jt({key:t,value:Ct()})}(s))}return e}catch(t){return e}}function kc(t){return Promise.all([Vn(),Ut(t)]).then((([t,e])=>{const{width:n,height:r}=e||{},{appearWidth:i,appearHeight:s}=ae(t,e);return xt(100*(1-i*s/(n*r)))}))}function Dc(t){const{element:e,ref:n,level:r=0}=t,i={};Object.keys(e.oldStyles||{}).forEach((t=>{const n=e.oldStyles[t];null===n||Dt(n)&&0===n.length||(i[t]=n)}));const s={attr:_c({class:(e.classList||[]).join(" ")},e.attr),tag:e.nodeName.toLowerCase(),styles:e.styleObject||i||""};if(0===r&&e.ref!==n)return s;const o=r-1,c=e.childNodes||e.pureChildren||[];return c&&c.length>0&&(s.children=c.map((t=>Dc({ref:n,element:t,level:o})))),s}function Tc(t){let e=t,n=0;for(;e.parentNode&&n<2;)e=e.parentNode,n+=1;return Bt(Dc({element:e,ref:t.ref,level:2}))}async function jc(t){try{const{snapShotKey:n,container:r}=t,{quality:i=10}=await Sc({key:n});return new Promise(((t,n)=>{r?r.toTempFilePath({fileType:"jpg",quality:i/100,success:r=>{const{tempFilePath:i}=r,{file:s}=$t()||{};s&&s.readArrayBuffer({uri:i,success(n){const r=function(t){const n=e().lib.WordArray.create(t);return e().enc.Base64.stringify(n)}(n.buffer);t(r),s.delete({uri:i,success:()=>{}})},fail(t,e){n(e)}})},fail:t=>{n()}}):n()}))}catch(t){return""}}function Lc({traceId:t,snapShotKey:e,container:n}){return Promise.all([pc(),gc(),{sdk:{sdkv:"1.7",pv:1070,sdk_st:5,sdk_cnl:1,sdk_pt:1}}]).then(Vt).then((async(r={})=>{const{dev:i,app:s,sdk:o}=r,c=Oe(t)||{},{placementId:a}=c,[u,h,f,d]=await Promise.all([jc({snapShotKey:e,container:n}),kc(n),Tc(n),Sc({placementId:a,key:e})]);return{dev:{os:i.os},app:{an:`${s.an}`,appkey:s.appkey},sdk:{sdkv:o.sdkv,pv:o.pv,sdk_st:o.sdk_st},plc:{adtype:K[c.adType],posid:a||""},biz:{code:1011,data:{task_id:d.task_id||"-999",aid:c.cl||"",mn:i.md,tid:"",ad_view:u,is_video:!!c.video,ov:zt(i.apil),render_type:Fn(t)?Ac:Cc,hierarchy:f,covered_ratio:h}}}}))}async function Nc(t){const e=await(n=Ic,En(n,Sn.sdk));var n;const r=Bt(t);return zn(e,{data:`quickapp_${await Vo({text:r})}`,method:Tn.POST,responseType:jn.TEXT})}async function zc(t){try{let e=_c(_c({},t),{},{stage:xc});const n=Ec(e);e=_c(_c({},e),{},{snapShotKey:n});if(!await Pc(e))return!1;const r=await async function(t={}){try{const{stage:e}=t;return oe(await Lc(t),{biz:{data:{view:{stage:e}}}})}catch(t){return{}}}(_c(_c({},e),{},{snapShotKey:n}));return Nc(r)}catch(t){return!1}}async function Mc(t){try{let e=_c(_c({},t),{},{stage:Oc});const n=Ec(e);e=_c(_c({},e),{},{snapShotKey:n});if(!await Pc(e))return!1;const r=await async function(t){const{stage:e,sParams:n={}}=t;return oe(await Lc(t),{biz:{data:{view:{stage:e,aa:n.aa,ab:n.ab,ba:n.ba,bb:n.bb,da:n.da,db:n.db,sld:n.sld}}}})}(e);return Nc(r)}catch(t){return!1}}class Bc{static instance=null;app=null;isVisible=!1;onCreateCbs=[];onShowCbs=[];onHideCbs=[];onDestroyCbs=[];static getInstance(t){return Bc.instance||(Bc.instance=new Bc(t)),Bc.instance}constructor(t){this.app=t}onCreate(){this.onCreateCbs.forEach((t=>{t.call(this.app)}))}onShow(){this.isVisible=!0,this.onShowCbs.forEach((t=>{t.call(this.app)}))}onHide(){this.isVisible=!1,this.onHideCbs.forEach((t=>{t.call(this.app)}))}onDestroy(){this.onDestroyCbs.forEach((t=>{t.call(this.app)}))}isForeground(){return this.isVisible}onLifetimes(t,e){var n;if("function"==typeof e)switch(t){case"create":case"show":case"hide":case"destroy":this[`on${n=t,n.toLowerCase().replace(/^\w/,(t=>t.toUpperCase()))}Cbs`].push(e)}}}const Rc="report_server_cache_cgi",qc=()=>{const t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate();return new Date(e,n,r,23,59,59).getTime()},Kc=()=>{const{network:t}=$t();return!!t&&t.getType().then((({data:{type:t}})=>/(?:4|5)g|wifi/.test(t))).catch((()=>!1))},Hc=async(t,e,n,r)=>{r.redo_report=1;const{placementId:i,cl:s,producttype:o,adType:c,video:a}=Oe(t)||{},u={id:t,type:e,expired:qc(),url:n,params:r,repeat:0,adInfo:{placementId:i,cl:s,producttype:o,adType:c,video:a}};try{const n=Rt(await Zt(Rc)||"[]");if(Array.isArray(n)&&n.length>0){n.some((n=>n.id===t&&n.type===e&&(n.repeat+=1,!0)))||n.push(u),n.length>200&&n.splice(0,1),Jt({key:Rc,value:Bt(n)}).then((()=>{}))}else Jt({key:Rc,value:Bt([u])}).then((()=>{}))}catch(t){}},Vc=async(t,e,n)=>{if(1!==await si({key:"qaskecerty"}))return;const r=await kn(e);Hc(t,lt,r,n)},Uc=async(t,e,n)=>{if(1!==await si({key:"qaskccerty"}))return;const r=await Pn(e);Hc(t,pt,r,n)},$c=async(t,e)=>{try{const n=await Zt(Rc);if(n){let r=Rt(n);if(Array.isArray(r)&&r.length>0){const n=await si({key:"qacgirepeat"})||3;r=r.map((n=>(n.id===t&&n.type===e&&(n.repeat+=1),n)));const i=r.filter((t=>t.repeat<n));i.length,r.length,Jt({key:Rc,value:Bt(i)})}}}catch(t){}},Wc=async(t,e)=>{try{const n=await Zt(Rc);if(n){let r=Rt(n);Array.isArray(r)&&r.length>0&&(r=r.filter((n=>!(n.id===t&&n.type===e))),await Jt({key:Rc,value:Bt(r)}))}}catch(t){}},Gc=async t=>{await Wc(t,lt)},Fc=async t=>{await Wc(t,pt)},Yc=async()=>{const t=(()=>{const{isHuawei:t}=Un();return t||Bc.getInstance().isForeground()})();if(!t)return;const e=await si({key:"qaskecerty"}),n=await si({key:"qaskccerty"});if(1===e||1===n)try{const r=await Zt(Rc)||"[]";if(r){const i=Rt(r);if(0===i.length)return;const s=await si({key:"qacgirepeat"})||3,o=i.length>50?50:i.length;for(let r=0;r<o;r+=1){const{id:o,type:c,expired:a,url:u,params:h,repeatCount:f=0,adInfo:d}=i[r],l=Date.now();if(!t)return;if(!await Kc())return;if(l>a||f>=s){await Wc(o,c);continue}let p,g,m,y;switch(c){case lt:1===e&&(p=Mn,g=Or,m=Ar,y=Cr);break;case pt:1===n&&(p=Bn,g=Lr,m=zr,y=Nr)}if(p){const t={traceId:o,ad:d,enumCode:gt};g(t);try{await p(u,h),m(t),Wc(o,c)}catch(e){await $c(o,c),y(t);break}}}}}catch(t){}};class Xc{static isRedoing=!1;static async redoReportCgi(){Xc.isRedoing||(Xc.isRedoing=!0,await Yc(),Xc.isRedoing=!1)}static sdkInit(){setTimeout((()=>{Xc.redoReportCgi()}),1e4)}}function Zc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zc(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class Qc{constructor(t){this.traceId=t,this.failure=[],this.errorCode=rt.UNKNOWN}addFailed(t,e){this.errorCode=t||rt.UNKNOWN,this.failure.push(e),this.autoReport()}report(t){this.getTotal()>=t&&(Pr({errorCode:this.errorCode,traceId:this.traceId,ext:this.failure}),this.clear())}autoReport(){this.report(10)}forceReport(){this.report(1)}getTotal(){var t;return(null===(t=this.failure)||void 0===t?void 0:t.length)||0}clear(){this.failure=[]}}class ta{constructor(t){this.timer=null,this.isExposed=!1,this.isVisible=!1,this.isCheckExpose=!0,this.eLink=t.eLink,this.id=t.id,this.container=t.container,this.onAdExpose=t.onAdExpose,this.threshold=t.threshold||.5,this.anti=t.antiParams||{},this.exposerAnalysis=new Qc(this.id),this.isActiveTriggerAppear=t.isActiveTriggerAppear||!1,this.experiment=t.experiment||{}}clearExposeListen(){this.timer&&clearInterval(this.timer)}onStartExposeListen(){const{container:t}=this;t&&this.checkExpose()}checkExpose(){if(this.isCheckExpose&&Er({traceId:this.id}),this.isCheckExpose=!1,!this.isExposed){const t=()=>{this.timer=setTimeout((()=>{if(this.isExposed)return this.clearExposeListen(),this.exposerAnalysis.addFailed(rt.HAS_EXPOSED,{err:`错误原因:已经曝光过, 错误代码:${rt.HAS_EXPOSED}`}),void this.exposerAnalysis.forceReport();Promise.all([Vn(),Ut(this.container)]).then((([e,n])=>{var r;if(this.isExposed)return this.exposerAnalysis.addFailed(rt.HAS_EXPOSED,{err:`错误原因:已经曝光过, 错误代码:${rt.HAS_EXPOSED}`}),void this.exposerAnalysis.forceReport();const{ww:i,wh:s}=e,{top:o,right:c,bottom:a,left:u,width:h,height:f}=n||{},d={oww:ce(i),owh:ce(s),w:ce(h),h:ce(f)};if(i<=0||s<=0?this.exposerAnalysis.addFailed(rt.VIEW_FAIL,d):(h<=0||f<=0)&&this.exposerAnalysis.addFailed(rt.AD_FAIL,d),f<=0)return void this.exposerAnalysis.forceReport();const{appearWidth:l,appearHeight:p}=ae(e,n),g={aw:ce(l),ah:ce(p),left:ce(u),right:ce(c),top:ce(o),bottom:ce(a)};if(l*p==0)return this.clearExposeListen(),this.isVisible=!1,this.exposerAnalysis.addFailed(rt.SHOW,Jc(Jc(Jc({},g),d),{},{ratio:0})),this.exposerAnalysis.forceReport(),this.isActiveTriggerAppear?void t():void 0;this.isVisible=!0;const m=l*p/(h*f),y=0===(null===(r=this.experiment)||void 0===r?void 0:r.secModuleKey)?ht:ut;!this.isExposed&&m>=this.threshold?(this.isExposed=!0,function(t={}){const{ext:e={}}=t,n=Te();return Ps(t).then((t=>ds(t,n))).then((t=>Vt([t,e]))).then(cs)}({rect:n,id:this.id}).then((t=>{this.exposerAnalysis.forceReport(),kr({traceId:this.id}),Ae(this.id),Or({traceId:this.id,enumCode:y}),Vc(this.id,this.eLink,{s:t}),Mn(this.eLink,{s:t}).then((async()=>{try{await Gc(this.id),Xc.redoReportCgi()}catch(t){}Ar({traceId:this.id,enumCode:y})})).catch((t=>{Cr({traceId:this.id,errorCode:null==t?void 0:t.code,ext:{msg:null==t?void 0:t.data},enumCode:y})})),this.onAdExpose&&this.onAdExpose(this.id),Yo()})).catch((t=>{this.exposerAnalysis.addFailed(rt.FETCH_PARAM_FAIL,{err:t}),this.exposerAnalysis.forceReport()})),this.clearExposeListen(),zc({traceId:this.id,container:this.container})):(this.exposerAnalysis.addFailed(rt.SHOW,Jc(Jc(Jc({},g),d),{},{ratio:ce(m)})),t())})).catch((t=>{if(!t||null==t||!t.code)return this.exposerAnalysis.addFailed(rt.UNKNOWN,{err:t}),void this.exposerAnalysis.forceReport();const{code:e,msg:n}=t;this.exposerAnalysis.addFailed(e,{err:n}),this.exposerAnalysis.forceReport(),Yo()}))}),200)};t()}}}function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class ra{constructor(t){this.id=t.id,this.anti=t.antiParams||{},this.container=t.container,this.onAdClick=t.onAdClick,this.clickableElements=t.clickableElements,this.cLink=`${t.cLink}&${function(t){const e=Oe(t),{producttype:n,acttype:r}=e,i={acttype:r};return n!==v&&Object.assign(i,{rsptype:1}),Xt(i)}(this.id)}`,this.experiment=t.experiment||{}}setDynamicAntiParams(t={}){this.anti=na(na({},this.anti),t)}executeAdClick(t,e,n,r={}){var i;const{isShake:s}=r;s||delete this.anti.am,Ut(this.container).then((r=>{ks({startEvent:n,endEvent:e,id:this.id,rect:r,ext:this.anti}).then((n=>{Lr({traceId:this.id}),Uc(this.id,this.cLink,{s:n},this.id),Bn(this.cLink,{s:n}).then((async({clickid:e,dstlink:n}={})=>{t.productTypeDispatcher({clickId:e,dstLink:n});try{await Fc(this.id),Xc.redoReportCgi()}catch(t){}zr({traceId:this.id})})).catch((t=>{Nr({traceId:this.id})})),Mr({rect:r,traceId:this.id,event:e,params:n}),this.onAdClick&&(this.onAdClick(this.id),Mc({traceId:this.id,container:this.container,sParams:n}))})).catch((t=>{}))}));const o=0===(null===(i=this.experiment)||void 0===i?void 0:i.secModuleKey)?ht:ut;Dr({traceId:this.id,enumCode:o})}onStartClickListen(t,e,n){this.executeAdClick(t,e,n)}}const ia=new class{constructor(){this.loadingStatus={},this.statusUpdates={},this.traceCGI={}}addUpdate(t,e,n){this.getUpdates(t)||(this.statusUpdates[t]={}),this.statusUpdates[t][e]=n}getUpdates(t){var e;return null===(e=this.statusUpdates)||void 0===e?void 0:e[t]}getUpdate(t,e){return this.getUpdates(t)[e]}getUpdateList(t){const e=[],n=this.getUpdates(t);return n&&Object.keys(n).forEach((t=>{const r=n[t];e.push(r)})),e}removeUpdates(t,e){e.forEach((e=>{this.statusUpdates[t][e]=null}))}removeCurrentPageUpdates(t){const{isHuawei:e}=Un();e&&this.resetAllLoadingStatus(),Object.keys(this.statusUpdates).forEach((e=>{this.removeUpdates(e,t)}))}resetAllLoadingStatus(){this.loadingStatus={}}getDownloading(t){return this.loadingStatus[t]}setDownloading(t,e){this.loadingStatus[t]=e}};const sa=new class{constructor(){this.cgi={}}addCGI(t,e){ia.loadingStatus[t]||(this.cgi[t]=e)}getCGI(t){return this.cgi[t]}removeCGI(t){this.cgi[t]=null}};function oa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ca(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oa(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const aa="auto",ua="store";class ha{constructor(t){const{adInfo:e={},onApkStatusUpdate:n=()=>{}}=t,{ext:r={}}=e,i=r.packagename||r.pkg_name;this.pkgName=i,this.id=e.traceid,this.pt=e.producttype,this.destType=e.dest_type,this.productId=e.productid,this.deepLink=e.customized_invoke_url,this.downloadTips="应用正在下载中",this.pkgSize=0,this.filePath="",this.dPkgName=function(t=""){return t.replace(/\./g,"_")}(i),this.adInfo=e,ia.addUpdate(this.dPkgName,this.id,n)}getTraceCgiParams(t){const e={actionid:t};return Object.assign(e,sa.getCGI(this.pkgName)),e}reportAppTraceCgi(t){const e=this.getTraceCgiParams(t);var n;e.clickid&&e.tagetid&&(n=e,zn(`https://c.gdt.qq.com/gdt_trace_a.fcg?${Xt(Object.assign(n,{targettype:6}))}`))}getDeepLinkCgiParams(t){const e=Se(E);return{conv_type:t,click_id:this.clickId,pkg_name:De(),imei:e.oaid}}reportDeepLinkTraceCgi(t){const e=this.getDeepLinkCgiParams(t);var n;n=e,Qt(Xt(Object.assign(n,{app_type:"ANDROID",client_ip:"",conv_time:xt(Ct()/1e3)})))}getAkpSize(){return new Promise((t=>{const{storage:e}=$t()||{};e.get({key:this.dPkgName,success(e=0){const n=Yt(e);t(n)},fail(){t(0)}})}))}cacheApkSize(t){const{storage:e}=$t()||{};e.set({key:this.dPkgName,value:t})}getApkFilePath(){const{isHuawei:t}=Un();return`internal://mass${t?"/Download":""}/${this.dPkgName}.apk`}isApkDownloading(){return ia.getDownloading(this.dPkgName)}isApplicationInstalled(){return es(this.pkgName)}isDownloadedApk(){const{file:t}=$t(),e=this.getApkFilePath();return Promise.all([this.getAkpSize(),t.get({uri:e})]).then((t=>{const[e=0,n={}]=t,{code:r,uri:i,length:s}=n.data||{};return void 0!==r?!r:!!i&&s===e})).catch((()=>!1))}installAppInStore(){return t=this.pkgName,new Promise(((e,n)=>{const{pkg:r}=$t();r&&t?r.install({package:t,success({result:t}){e(t)},fail:n}):n()}));var t}openAppInStore(){return this.installAppInStore()}openInRouter(t){return this.installAppInRouter(t)}installAppInRouter(t){const{router:e}=$t(),n=this.getApkFilePath(),r=e.push(t||{uri:n}),{isHuawei:i}=Un();return i||/success|onConfirm/.test(r)?Qt():te(r)}startAppDeepLink({openType:t}={}){this.reportDeepLinkTraceCgi(A),this.openInRouter({uri:this.deepLink}).then((()=>{this.reportDeepLinkTraceCgi(C)})).catch((e=>{t!==aa&&this.openAppInStore()}))}openLandingPage(){return this.openInRouter({uri:this.dstLink})}deleteAppApk(){const{isVivo:t}=Un();t||function({uri:t}){new Promise(((e,n)=>{const r=$t();r&&r.file.delete({uri:t,success:e,fail:n})}))}({uri:this.getApkFilePath()})}checkAppStatus(){if(!ns(this.pt))return;if(this.isApkDownloading())return;const t=ia.getUpdate(this.dPkgName,this.id);this.isApplicationInstalled().then((e=>{e?(t({status:p,progress:100}),this.deleteAppApk()):this.isDownloadedApk().then((e=>{t(e?{status:m,progress:100}:{status:l,progress:0})}))}))}async productTypeDispatcher(t){const{clickId:e,dstLink:n}=t;this.clickId=e,this.dstLink=n,sa.addCGI(this.pkgName,{clickid:this.clickId,tagetid:this.productId,sellerid:this.productId});const{isVivo:r}=Un();if(this.deepLink){try{const t=await ai({key:"qaoplkopt"});if(function({traceId:t,switchValue:e}={}){xr({ei:nt.EXP_OPEN_LINK_OPTIMIZATION,trace_id:t,enum_code:_r(e)})}({traceId:this.id,switchValue:t}),t&&(i=this.deepLink,/^weixin:\/\//.test(i)))return void this.openInRouter({uri:this.deepLink})}catch(t){}if(this.pkgName)this.isApplicationInstalled().then((t=>t?(this.reportDeepLinkTraceCgi(I),void this.startAppDeepLink()):r?void this.installAppInStore().then((t=>{t&&r&&(this.reportAppTraceCgi(x),this.pollCheckAppInstallStatus(ua))})):this.dstLink?(this.reportDeepLinkTraceCgi(S),void this.startDownload()):void this.installAppInStore()));else{const{isHuawei:t}=Un();t?this.openLandingPage().then((()=>{this.openInRouter({uri:this.deepLink})})):this.openInRouter({uri:this.deepLink}).catch((()=>{this.openLandingPage()}))}}else{var i;switch(this.pt){case v:this.isApplicationInstalled().then((t=>{t?this.openAppInStore():!r&&n?this.startDownload():this.installAppInStore().then((t=>{t&&r&&(this.reportAppTraceCgi(x),this.pollCheckAppInstallStatus())}))}));break;case 53:this.openInRouter({uri:this.adInfo.quick_app_link||n});break;case 25:case 30:case 1e3:if(!this.dstLink)return;this.openInRouter({uri:n})}}}startDownload(){ns(this.pt)&&(this.isApkDownloading()?this.showDownloadingToast():this.isDownloadedApk().then((t=>{t?(this.emitApkStatusUpdates({status:m,progress:100}),this.installAppInRouter().then((()=>{this.pollCheckAppInstallStatus()})).catch((()=>{this.installAppInStore()}))):(this.emitApkStatusUpdates({status:l,progress:0}),this.startApkDownloadTask())})).catch((t=>{})))}startApkDownloadTask(){const t=this.getApkFilePath(),{downloadTask:e}=$t();if(function(t){let e=1;const{network:n}=$t();n.subscribe({callback:({type:n})=>{const r=/\dg|wifi/.test(n)?1:0,i=e;e=r,t({prevOnline:i,curOnline:r})}})}((({prevOnline:t,curOnline:e})=>{if(ia.getDownloading(this.dPkgName)){if(t&&!e&&(this.emitApkStatusUpdates({status:y,progress:0}),this.isApkDownloading())){$e.createEmitter(this.id).emit("CHECK_APP_STATUS_ERROR",{traceId:this.id})}!t&&e&&(ia.setDownloading(this.dPkgName,!1),this.startApkDownloadTask())}})),this.isApkDownloading())return void this.showDownloadingToast();ia.setDownloading(this.dPkgName,!0),this.emitApkStatusUpdates({progress:0,status:g}),this.reportAppTraceCgi(b);const{isHuawei:n}=Un(),r=function(t,e=1e3){let n=0;return function(...r){const i=+new Date;i-n>e&&(n=i,t.apply(this,r))}}((t=>{n&&ia.setDownloading(this.dPkgName,!0);const{progress:e,totalBytesExpectedToWrite:r}=t;this.pkgSize=r,this.emitApkStatusUpdates({progress:e,status:g})}),500),i={};n?Object.assign(i,{filename:`${this.dPkgName}.apk`}):Object.assign(i,{filePath:t}),function({traceId:t}){xr({ei:nt.AD_TRACE_CGI_TOTAL,trace_id:t})}({traceId:this.id});const s=e.downloadFile(ca(ca({},i),{},{url:this.dstLink,success:t=>{!function(){const{network:t}=$t();t.unsubscribe()}(),this.reportAppTraceCgi(w),this.cacheApkSize(this.pkgSize),s.offProgressUpdate(r),this.emitApkStatusUpdates({status:m,progress:100}),this.installAppInRouter({uri:t.filePath}).then((()=>{this.pollCheckAppInstallStatus()})),ia.setDownloading(this.dPkgName,!1)},fail:(t,e)=>{this.emitApkStatusUpdates({status:y,progress:0}),function({traceId:t}){xr({ei:nt.AD_TRACE_CGI_FAIL,trace_id:t})}({traceId:this.id}),this.reportAppTraceCgi(x),this.installAppInStore(),this.pollCheckAppInstallStatus(ua);$e.createEmitter(this.id).emit("CHECK_APP_STATUS_ERROR",{traceId:this.id,errorCode:e,ext:t})}}));s.onProgressUpdate(r)}emitApkStatusUpdates(t){try{ia.getUpdateList(this.dPkgName).forEach((e=>{e&&e(t)}))}catch(t){}}showDownloadingToast(t){!function(t){const{prompt:e}=$t();e.showToast(t)}({message:t||this.downloadTips})}pollCheckAppInstallStatus(t){this.clearInstallTimeout();const e=1e3;let n=10;let r=2e3;const i=s=>{r>=18e4||(this.installTimer=setTimeout((()=>{const s=e*n;r+=s,n=n>3?n-1:n,this.isApplicationInstalled().then((e=>{if(e){const{isVivo:e,isOppo:n}=Un();n&&this.deepLink&&this.startAppDeepLink({openType:aa});const r=e||t===ua?O:_;this.reportAppTraceCgi(r),sa.removeCGI(this.pkgName),this.emitApkStatusUpdates({status:p,progress:0}),this.clearInstallTimeout(),this.deleteAppApk()}else i(s)}))}),s))};i(2e3)}clearInstallTimeout(){const t=this.installTimer;t&&clearTimeout(t)}}function fa(){const t=$t()||{},{router:e}=t;return e}function da(t={}){const e=fa();e&&e.push(t)}function la(t={}){const e=fa();e&&e.back(t)}function pa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ga(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pa(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class ma{constructor(t){this.traceId=t,this.failure=[],this.errorCode=rt.UNKNOWN}addFailed(t,e){this.errorCode=t||rt.UNKNOWN,this.failure.push(e),this.autoReport()}report(t){this.getTotal()>=t&&(Pr({errorCode:this.errorCode,traceId:this.traceId,ext:this.failure}),this.clear())}autoReport(){this.report(10)}forceReport(){this.report(1)}getTotal(){var t;return(null===(t=this.failure)||void 0===t?void 0:t.length)||0}clear(){this.failure=[]}}class ya{constructor(t){this.timer=null,this.isExposed=!1,this.isVisible=!1,this.isCheckExpose=!0,this.eLink=t.eLink,this.id=t.id,this.container=t.container,this.onAdExpose=t.onAdExpose,this.threshold=t.threshold||.5,this.anti=t.antiParams||{},this.exposerAnalysis=new ma(this.id),this.antiSpam=No.getInstance(),this.isActiveTriggerAppear=t.isActiveTriggerAppear||!1,this.experiment=t.experiment||{}}clearExposeListen(){this.timer&&clearInterval(this.timer)}onStartExposeListen(){const{container:t}=this;t&&this.checkExpose()}async checkExpose(){if(this.isCheckExpose&&Er({traceId:this.id}),this.isCheckExpose=!1,!this.isExposed){const t=()=>{this.timer=setTimeout((()=>{if(this.isExposed)return this.clearExposeListen(),this.exposerAnalysis.addFailed(rt.HAS_EXPOSED,{err:`错误原因:已经曝光过, 错误代码:${rt.HAS_EXPOSED}`}),void this.exposerAnalysis.forceReport();Promise.all([Vn(),Ut(this.container)]).then((([e,n])=>{if(this.isExposed)return this.exposerAnalysis.addFailed(rt.HAS_EXPOSED,{err:`错误原因:已经曝光过, 错误代码:${rt.HAS_EXPOSED}`}),void this.exposerAnalysis.forceReport();const{ww:r,wh:i}=e,{top:s,right:o,bottom:c,left:a,width:u,height:h}=n||{},f={oww:ce(r),owh:ce(i),w:ce(u),h:ce(h)};if(r<=0||i<=0?this.exposerAnalysis.addFailed(rt.VIEW_FAIL,f):(u<=0||h<=0)&&this.exposerAnalysis.addFailed(rt.AD_FAIL,f),h<=0)return void this.exposerAnalysis.forceReport();const{appearWidth:d,appearHeight:l}=ae(e,n),p={aw:ce(d),ah:ce(l),left:ce(a),right:ce(o),top:ce(s),bottom:ce(c)};if(d*l==0)return this.clearExposeListen(),this.isVisible=!1,this.exposerAnalysis.addFailed(rt.SHOW,ga(ga(ga({},p),f),{},{ratio:0})),this.exposerAnalysis.forceReport(),this.isActiveTriggerAppear?void t():void 0;this.isVisible=!0;const g=d*l/(u*h);!this.isExposed&&g>=this.threshold?(this.isExposed=!0,this.antiSpam.exposureInfo(this.container).then((t=>{const e=null!=t&&t.mu_p?dt:ft;this.exposerAnalysis.forceReport(),kr({traceId:this.id}),Ae(this.id),Or({traceId:this.id,enumCode:e}),Vc(this.id,this.eLink,t),Mn(this.eLink,t).then((async()=>{try{await Gc(this.id),Xc.redoReportCgi()}catch(t){}Ar({traceId:this.id,enumCode:e})})).catch((t=>{Cr({traceId:this.id,errorCode:null==t?void 0:t.code,ext:{msg:null==t?void 0:t.data},enumCode:e})})),this.onAdExpose&&this.onAdExpose(this.id),Yo()})).catch((t=>{this.exposerAnalysis.addFailed(rt.FETCH_PARAM_FAIL,{err:t}),this.exposerAnalysis.forceReport()})),this.clearExposeListen(),zc({traceId:this.id,container:this.container})):(this.exposerAnalysis.addFailed(rt.SHOW,ga(ga(ga({},p),f),{},{ratio:ce(g)})),t())})).catch((t=>{if(!t||null==t||!t.code)return this.exposerAnalysis.addFailed(rt.UNKNOWN,{err:t}),void this.exposerAnalysis.forceReport();const{code:e,msg:n}=t;this.exposerAnalysis.addFailed(e,{err:n}),this.exposerAnalysis.forceReport(),Yo()}))}),200)};t()}}}function va(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ba(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?va(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class wa{constructor(t){this.id=t.id,this.anti=t.antiParams||{},this.container=t.container,this.onAdClick=t.onAdClick,this.clickableElements=t.clickableElements,this.cLink=`${t.cLink}&${function(t){const e=Oe(t),{producttype:n,acttype:r}=e,i={acttype:r};return n!==v&&Object.assign(i,{rsptype:1}),Xt(i)}(this.id)}`,this.antiSpam=No.getInstance(),this.experiment=t.experiment||{}}setDynamicAntiParams(t={}){this.anti=ba(ba({},this.anti),t)}executeAdClick(t,e,n,r={}){var i,o;const{isShake:c}=r;c||delete this.anti.am;const a=this.antiSpam.getCollector(this.container);!c&&null!=a&&null!==(i=a.autoCollectedInfo)&&void 0!==i&&i.am&&(a.autoCollectedInfo.am=s),Ut(this.container).then((r=>{null==a||a.collectMotionEvent({startEvent:n,endEvent:e,rect:r}),this.antiSpam.clickInfo(this.container).then((n=>{Lr({traceId:this.id}),Uc(this.id,this.cLink,n,this.id),Bn(this.cLink,n).then((async({clickid:e,dstlink:n}={})=>{t.productTypeDispatcher({clickId:e,dstLink:n});try{await Fc(this.id),Xc.redoReportCgi()}catch(t){}zr({traceId:this.id})})).catch((t=>{Nr({traceId:this.id})})),Mr({rect:r,traceId:this.id,event:e,params:n}),this.onAdClick&&(this.onAdClick(this.id),Mc({traceId:this.id,container:this.container,sParams:null==n?void 0:n.s}))})).catch((t=>{}))}));const u=null!==(o=this.antiSpam)&&void 0!==o&&o.needP?dt:ft;Dr({traceId:this.id,enumCode:u})}onStartClickListen(t,e,n){this.executeAdClick(t,e,n)}}const _a="qarwdclstm",xa=(t,e)=>((t,e)=>t<e)(t,e)?t:e;function Oa(){return this.$app.$def.ylh_sdk.rewardVideo}function Aa(t,...e){Oa.call(this).emitter.emit(t,...e)}const Ca={lifetimes:{async onInit(){const{traceId:t}=Oa.call(this),e=Oe(t),{placementId:n,muted:r=!1,video_duration:i}=e;this.adId=t,this.adData=e,this.videoMuted=r,this.detainmentTitle=(i>30?"观看满 30 秒":"完整观看")+"即可获得奖励",this.scoreIcon=Ye("end_card_stars"),this.shakeBv=await oi({placementId:n,key:"qarwdshbv"});const s=await oi({placementId:n,key:_a});jt(s)||(this[_a]=s),this.showCloseTime=jt(s)?i:s,Sr({traceId:t})},onReady(){this.$nextTick((async()=>{const t=this.$element("rwd"),e=this.adData,{traceid:n,apurl:r,rl:i}=e;var s;(this.secModuleKey=await ai({key:Ei}),this.antiSpam=this.secModuleKey?No.getInstance():null,this.secModuleKey)&&(null===(s=this.antiSpam)||void 0===s||s.attach(t,n));const o=this.secModuleKey?ya:ta;this.exposer=new o({container:t,eLink:r,id:n,onAdExpose:t=>{Aa.call(this,Oi)},experiment:{secModuleKey:this.secModuleKey}}),this.exposer.onStartExposeListen();const c=new ha({adInfo:e,onApkStatusUpdate:t=>{const{status:e,progress:n}=t;this.appStatus=e,this.downloadProgress=Ft(ie(n))}});c.checkAppStatus(),this.pkgManager=c;const a=this.secModuleKey?wa:ra;this.clicker=new a({container:t,pkgManager:c,id:n,cLink:i,onAdClick:t=>{Aa.call(this,Ai),this.$broadcast(F)},experiment:{secModuleKey:this.secModuleKey}}),this.initShakeClick(),this.adData.video||this.onShowEndCard()})),Tr({traceId:this.adId})},onDestroy(){var t;this.secModuleKey&&(null===(t=this.antiSpam)||void 0===t||t.detach(this.$element("rwd")));jr({traceId:this.adId}),this.shake.unsubscribeShake(),we(this.adId),ia.removeCurrentPageUpdates([this.adId])},onPageShow(){this.visible=!0,this.pkgManager&&(this.pkgManager.checkAppStatus(),this.clicker&&this.initShakeClick())},onPageHide(){this.visible=!1,this.shake.unsubscribeShake()}},initShakeClick(){this.shake=Bo({shakeProps:{bv:this.shakeBv},pkgManager:this.pkgManager,clicker:this.clicker,isShowClose:this.isRewarded,ca:this.isShowEndCard?R:B,experiment:{secModuleKey:this.secModuleKey}})},onShowEndCard(){this.isShowEndCard=!0,this.$broadcast("onShowEndCard"),this.isShowed||(this.isShowed=!0,this.$nextTick((async()=>{const t=this.$element("endCard");if(!t)return;var e;this.secModuleKey&&(null===(e=this.antiSpam)||void 0===e||e.attach(t,this.adId));const n=this.secModuleKey?wa:ra;this.clicker=new n({container:t,id:this.adId,cLink:this.adData.rl,onAdClick:e=>{var n;(Aa.call(this,Ai),this.$broadcast(F),this.secModuleKey)&&(null===(n=this.antiSpam)||void 0===n||n.detach(t))},experiment:{secModuleKey:this.secModuleKey}}),this.initShakeClick()})))},onTouchstart(t){this.touchstartEvent=t},onTouchend(t,e){if(this.secModuleKey){var n,r;const e=null===(n=this.antiSpam)||void 0===n?void 0:n.getCollector(null===(r=this.clicker)||void 0===r?void 0:r.container);null==e||e.collectClickDynamicParams({sld:M,x:Nt(this.isRewarded),click_area:t.params.ca})}this.clicker.setDynamicAntiParams({sld:M,x:Nt(this.isRewarded),click_area:t.params.ca}),this.clicker.executeAdClick(this.pkgManager,e,this.touchstartEvent)},onAdClose(){Aa.call(this,_i),la()},onVideoPrepared(t){const{duration:e}=pn(t);this.videoDuration=e,this.isPrepared=!0,jt(this[_a])&&(this.showCloseTime=xa(e,30))},onVideoStart(){},onVideoPause(){},onVideoFinish(){this.onRewarded(),this.isFinish=!0,this.onShowEndCard(),Aa.call(this,Ii)},onVideoTimeupdate(t){const{currentTime:e}=pn(t);if(this.isShowClose||e>=this.showCloseTime&&(this.isShowClose=!0),this.isRewarded)this.rewardTips="恭喜获得奖励";else{const t=wt(xa(this.videoDuration,30)-e);this.$broadcast(X,t),t<=0&&this.onRewarded()}const n=e/this.videoDuration*100;this.playProgress=n,n>=100&&Aa.call(this,Ii)},onVideoError(){this.onShowEndCard(),Aa.call(this,xi,{errorCode:5003,errorMsg:"视频素材播放异常"})},onPlayPageClose(){this.isRewarded?this.onShowEndCard():this.isShowDetainmentDialog=!0,this.$broadcast(Z)},onMutedChange(t){const{muted:e}=pn(t);this.videoMuted=e},onRewarded(){this.isRewarded||(this.isRewarded=!0,this.$broadcast(Y),Aa.call(this,Ci))},onDialogConfirm(){this.$broadcast(J),this.isShowDetainmentDialog=!1},onDialogCancel(){this.$broadcast(Z),this.onAdClose()}},Ia=0,Sa=360;async function Ea({startEvent:t,endEvent:e,eventConfig:n={}}){const{type:r,params:i={}}=n,s=!0,{sys:o}=i;if(1===o)return s;switch(r){case"click":default:return s;case"slide":{const{as:n=[],ds:r=[]}=i;return r.some(((r,i)=>{const[s=Ia,o=Sa]=n[i]||[],{clientX:c,clientY:a}=dn(t),{clientX:u,clientY:h}=dn(e),f={x:c,y:a},d={x:u,y:h},l=function(t,e){const n=e.x-t.x,r=e.y-t.y;return vt(bt(n)+bt(r))}(f,d),p=function(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.atan2(r,n)/mt*180;return i>=0?i:360+i}(f,d);return l>=r&&p>=s&&p<=o}))}}}function Pa(){return this.$app.$def.ylh_sdk.splash}function ka(t,...e){Pa.call(this).emitter.emit(t,...e)}const Da={lifetimes:{async onInit(){const{traceId:t}=Pa.call(this),e=Oe(t);this.adId=t,this.adData=e;const{placementId:n}=this.adData;this.shakeBv=await oi({placementId:n,key:"qasplshbv"}),Sr({traceId:t})},onReady(){try{this.$nextTick((async()=>{const t=this.$element("splash"),e=this.adData,{traceid:n,apurl:r,rl:i}=e;var s;(this.secModuleKey=await ai({key:Ei}),this.antiSpam=this.secModuleKey?No.getInstance():null,this.secModuleKey)&&(null===(s=this.antiSpam)||void 0===s||s.attach(t,n));const o=this.secModuleKey?ya:ta;this.exposer=new o({container:t,eLink:r,id:n,onAdExpose:t=>{ka.call(this,Oi)},experiment:{secModuleKey:this.secModuleKey}}),this.exposer.onStartExposeListen();const c=new ha({adInfo:e,onApkStatusUpdate:t=>{const{status:e,progress:n}=t;this.appStatus=e,this.downloadProgress=Ft(ie(n))}});c.checkAppStatus(),this.pkgManager=c;const a=this.secModuleKey?wa:ra;this.clicker=new a({container:t,pkgManager:c,id:n,cLink:i,onAdClick:t=>{ka.call(this,Ai),this.$broadcast(F)},experiment:{secModuleKey:this.secModuleKey}}),this.initShakeClick();this.$element(this.adId)&&(t.setCurrentTime=()=>{})})),Tr({traceId:this.adId})}catch(t){}},onDestroy(){var t;this.secModuleKey&&(null===(t=this.antiSpam)||void 0===t||t.detach(this.$element("splash")));jr({traceId:this.adId}),this.shake.unsubscribeShake(),we(this.adId),ia.removeCurrentPageUpdates([this.adId])},onPageShow(){this.pkgManager&&(this.pkgManager.checkAppStatus(),this.clicker&&this.initShakeClick())},onPageHide(){this.shake.unsubscribeShake()}},async initShakeClick(){this.shake=Bo({shakeProps:{bv:this.shakeBv},pkgManager:this.pkgManager,clicker:this.clicker,isShowClose:!0,ca:B,experiment:{secModuleKey:this.secModuleKey}})},onTouchstart(t){this.touchstartEvent=t},async onTouchend(t,e){const{placementId:n}=this.adData,r=await oi({placementId:n,key:"qasplmsld"});return jt(r)||(t.params.ds=[r]),Ea({startEvent:this.touchstartEvent,endEvent:e,eventConfig:t}).then((n=>{if(!n)return!1;const{params:r={}}=t;if(this.secModuleKey){var i;const t=null===(i=this.antiSpam)||void 0===i?void 0:i.getCollector(this.$element("splash"));null==t||t.collectClickDynamicParams({sld:M,x:et,click_area:r.ca})}return this.clicker.setDynamicAntiParams({sld:M,x:et,click_area:r.ca}),this.clicker.executeAdClick(this.pkgManager,e,this.touchstartEvent),!0}))},onVideoFinish(){ka.call(this,Ii)},onImageError(){!function({traceId:t}){xr({ei:nt.ON_SPLASH_IMAGE_FAIL,trace_id:t})}({traceId:this.adId})},onImageComplete(){!function({traceId:t}){xr({ei:nt.ON_SPLASH_IMAGE_SUCCESS,trace_id:t})}({traceId:this.adId})},onSkip(){ka.call(this,_i);const{entry:t}=Pa.call(this);if(!t)return void la();(function(){const t=fa();return t?t.getPages():[]})().some((e=>e.path===t))?la({path:t}):function(t={}){const e=fa();e&&e.replace(t)}({uri:t})}};const Ta=function(t,e){const n={isFirstAppear:!1,hasInView:!1,timer:null,isReadyExpose:!1,startTime:Ct()};t.on("ON_FIRST_APPEAR",(()=>{n.isFirstAppear=!0})),t.on("CHECK_APP_STATUS_ERROR",(t=>{!function(t){const{traceId:e,errorCode:n,ext:r}=t;xr({ei:nt.ON_APP_STATUS_ERROR,trace_id:e,error_code:n,ext:r})}({traceId:e,ext:{err:t}})})),t.on("ON_DESTROY_ANALYSIS",(()=>{let t=!1;(n.isReadyExpose||n.isFirstAppear)&&(t=!0);const r=Ct()-n.startTime;jr({traceId:e,enumCode:t?1:2,ext:{duration:r}})}))},{getEmitter:ja}=$e,La={lifetimes:{async onInit(){if(this.$on("onPageShow",this.onPageShow),this.$on("onPageHide",this.onPageHide),this.emitter=ja(this.adId),this.isFirstAppear=!1,this.isAdExposed=!1,this.pollingTimeDiff=0,this.isPollingEventReport=!1,!this.adId||!this.emitter)return;this.$watch("adId",this.watchAdIdChange),Ta(this.emitter,this.adId),this.emitter.on("AdClick",(({event:t,clickableElements:e})=>{this.$valid&&this.emitter.emit("AD_CLICK",{event:t,clickableElements:e,container:this.$element(`ylh-ad-${this.adId}`),onAdClick:t=>{this.$emit("AdClick",t)},experiment:{secModuleKey:this.secModuleKey}})})),this.emitter.on("APP_STATUS_CHANGE",(t=>{this.$valid&&this.$emit("AppStatusChange",t)})),this.$on("onPageShow",(()=>{this.emitter.emit("ON_PAGE_SHOW")})),Sr({traceId:this.adId});const t=await ai({key:"qaadminsize"});if(1===t){const t="1px";this.customStyle={minWith:t,minHeight:t}}!function({traceId:t,switchValue:e}={}){xr({ei:nt.EXP_AD_EXPOSE,trace_id:t,enum_code:_r(e)})}({traceId:this.adId,switchValue:t})},async onReady(){try{this.emitter.emit("INIT_PKG_MANAGER"),this.secModuleKey=await ai({key:Ei})}catch(t){this.emitter.emit("ON_READY_ERROR",0,t)}Tr({traceId:this.adId}),this.$nextTick((()=>{this.emitter.emit("ON_READY_NEXTTICK"),this.emitter.emit("TRIGGER_READY_EVENT",this.$element(`ylh-ad-${this.adId}`)),this.secModuleKey&&No.getInstance().attach(this.$element(`ylh-ad-${this.adId}`),this.adId)})),setTimeout((async()=>{if(this.executeAppearTimer(),this.isFirstAppear||this.isAdExposed)return;1===(await si({key:"qaappearbackup"})||0)&&setTimeout((()=>{this.onAppear(null,!0)}),200)}),200)},onDestroy(){this.clearAppearTimer(),this.secModuleKey&&No.getInstance().detach(this.$element(`ylh-ad-${this.adId}`));const t=ja(this.adId);t.emit("ON_DESTROY_ANALYSIS"),t.emit("ON_DESTROY")}},onPageShow(){setTimeout((()=>{this.executeAppearTimer()}),200)},onPageHide(){this.clearAppearTimer()},async executeAppearTimer(){if(this.isFirstAppear||this.isAdExposed)return void(this.updateTimer&&this.clearAppearTimer());const t=await ai({key:"qaadonappoclose"})||0;if(1===t)return void function({traceId:t,switchValue:e}={}){xr({ei:nt.EXP_AD_EXPOSE_OPT_REVERSE,trace_id:t,enum_code:e||0})}({traceId:this.adId,switchValue:t});if(1!==await si({key:"qaadonapcb"}))return;const e=await ai({key:"qaadonappotime"})||400,n=this.$element(`ylh-ad-${this.adId}`),r=await(async t=>{try{const[e,n]=await Promise.all([Vn(),Ut(t)]),{appearWidth:r,appearHeight:i}=ae(e,n);return r>0||i>0}catch(t){return!1}})(n),i=r?e:1e3;this.pollingTimeDiff=Ct()-this.pollingTimeDiff,this.pollingTimeDiff<i||(this.updateTimer=setTimeout((()=>{this.isAdExposed||(this.isShowPlaceholder=!this.isShowPlaceholder,this.executeAppearTimer(),this.isPollingEventReport||(this.isPollingEventReport=!0,function({traceId:t,switchValue:e}={}){xr({ei:nt.EXP_AD_EXPOSE_OPT_POLL_TIME,trace_id:t,enum_code:e||0})}({traceId:this.adId,switchValue:i})))}),i))},clearAppearTimer(){this.isPollingEventReport=!1,this.updateTimer&&clearTimeout(this.updateTimer)},onAppear(t,e=!1){var n,r;this.isFirstAppear||(null===(r=this.emitter)||void 0===r||r.emit("ON_FIRST_APPEAR"),function(t){const{traceId:e}=t;xr({ei:nt.ON_YLH_AD_APPEAR,trace_id:e})}({traceId:this.adId}),this.isFirstAppear=!0);null===(n=this.emitter)||void 0===n||n.emit("AD_EXPOSE",{container:this.$element(`ylh-ad-${this.adId}`),onAdExpose:t=>{this.$emit("AdExpose",t),this.isAdExposed=!0},experiment:{secModuleKey:this.secModuleKey},isActiveTriggerAppear:e})},watchAdIdChange(t,e){}};function Na(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function za(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Na(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const{getEmitter:Ma}=$e;function Ba(t,e={}){const n=function(t,e={}){const{viewId:n,duration:r=0,currentTime:i=0,pauseCount:s}=t,o=xt(r),c=xt(i);return{viewid:n,video:za({bt:"0",et:`${"1"===e.ef?o:c}`,bf:"1",ef:"0",pp:"1",pa:s>0?"2":"1",pb:"1",ps:"0",vt:`${o}`},e)}}(t,e);Rn(n)}const Ra={lifetimes:{onInit(){const t=Oe(this.adId);this.viewId=t.viewId,this.pauseCount=0,this.src=t.video,this.poster=t.img,this.videoStyle={height:this.videoHeight||"auto",width:this.videoWidth||"auto"},this.needMask=!0,this.maskStyle={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,0,0,0.001)"}},onReady(){if(this.emitter=Ma(this.adId),!this.emitter)return;this.emitter.on("AD_CLICK",(()=>{Ba(this,{ps:"3"})}));const t=this.$element(`ylh-ad-video-${this.adId}`),{setCurrentTime:e}=t;t.setCurrentTime=function(){},this.$emit("videoready",{$video:{start:t.start,pause:t.pause,replay:()=>{t.start(),e.call(t,{currenttime:0})}}})}},onAppear(){this.onAppearAutoplay=this.autoplay;const t=this.$element(`ylh-ad-video-${this.adId}`);this.autoplay&&t.start()},onDisAppear(){this.$element(`ylh-ad-video-${this.adId}`).pause()},onPrepared({duration:t}){this.duration=t,this.$emit("prepared",{duration:t})},onStart(){this.needMask=!0,this.$emit("start")},onPause(){this.$emit("pause"),this.pauseCount+=1,Ba(this)},onFinish(){Ba(this,{ef:"1"}),this.$emit("finish")},onTimeupdate({currenttime:t}){this.currentTime=t,this.$emit("timeupdate",{currentTime:t})},onError(){const{isHuawei:t}=Un();t&&(this.needMask=!1,this.errCount=this.errCount?this.errCount+1:1,this.errCount<5)||(Ba(this,{ps:"2"}),this.$emit("error"))}},{getEmitter:qa}=$e,Ka={lifetimes:{onInit(){},onReady(){this.emitter=qa(this.adId),this.emitter}},onClick(t){const e=[this.$element(`ylh-ad-clickable-${this.adId}`)];this.emitter.emit("AdClick",{event:t,clickableElements:e})}},Ha=["actionPrice","highestLossPrice"],Va=["actionPrice","actionLoss","actionSeatId"];function Ua(t,e,n){const{getBiddingCipherText:r}=function(){const t=Ot();return t?t.$ylhUtils:{}}();return ne(t).replace(/\$\{([^{}]+)\}/g,((t,i)=>{const s=e[i],o=n[i];if(s&&r){return r(s)}return jt(o)?o||t:o}))}function $a(t){const e=Oe(t);return jt(e.ecpm)?-1:e.ecpm}function Wa({url:t}){return zn(t)}async function Ga(t={}){const{adId:e,actionPrice:n,highestLossPrice:r}=t;se(Ha,t);const{nurl:i}=Oe(e);return Wa({url:Ua(i,{AUCTION_PRICE:zt(n),HIGHEST_LOSS_PRICE:zt(r)},{})})}function Fa(t={}){const{adId:e,actionPrice:n,actionLoss:r,actionSeatId:i}=t;se(Va,t);const{lurl:s}=Oe(e);return Wa({url:Ua(s,{AUCTION_PRICE:zt(n)},{AUCTION_LOSS:r,AUCTION_SEAT_ID:zt(i)})})}function Ya(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ya(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Za(){let t="",e="",n={status:!0};const r=Oe(this.traceId);if(r?this.isValid()?r.is_showed&&(t=4015,e="同一条广告不允许多次展示"):(t=5012,e="广告数据过期"):(t=4014,e="广告位成功返回或广告无效时, 启动了广告展示"),t){const r={[mi]:t,[yi]:e};this.emitter.emit(xi,r),n=Xa({status:!1},r)}return n}const Ja=class{constructor(t,e){const{config:{appId:n}}=At();this.traceId="",this.emitter=new bi,this.isLoading=!0,this.params=Xa({count:1,appId:n,placementId:t.placementId,muted:t.muted||!1},t),this.ylhSdk=e}load(){}show(){}destroy(){const t=Oe(this.traceId);t&&xe(t.adType)}isValid(){const t=Oe(this.traceId),{adExpireTimestamp:e=0}=t||{};return Ct()<=e}getECPM(){return $a(this.traceId)||-1}sendWinNotification(t={}){return Ga(Xa({adId:this.traceId},t))}sendLossNotification(t={}){return Fa(Xa({adId:this.traceId},t))}onLoad(t){return this.emitter.on(wi,t),this}offLoad(t){return this.emitter.off(wi,t),this}onClose(t){return this.emitter.on(_i,t),this}offClose(t){return this.emitter.off(_i,t),this}onError(t){return this.emitter.on(xi,t),this}offError(t){return this.emitter.off(xi,t),this}onExpose(t){return this.emitter.on(Oi,t),this}offExpose(t){return this.emitter.off(Oi,t),this}onClick(t){return this.emitter.on(Ai,t),this}offClick(t){return this.emitter.off(Ai,t),this}onVideoFinish(t){return this.emitter.on(Ii,t),this}offVideoFinish(t){return this.emitter.off(Ii,t),this}};function Qa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qa(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eu(t={},e={}){const{system:{fetch:n}={}}=At();return new Promise(((r,i)=>{if(!function(){const t=Se(T)||{},{platformVersionCode:e}=t;return e>=1100}()){return void i({code:2004,message:"当前快应用版本小于 1100, SDK无法发起广告请求"})}const{isCheckPkgName:s=!0}=e;if(s){const e=function(t={}){const e=Kt(t,["data","ext","req"],{}),{c_pkgname:n,c_real_time_pkg_name:r}=e;return n&&n===r}(t);if(!e){return void i({code:5006,message:"包名校验不通过"})}}(()=>{if(n){const e={method:Tn.POST,responseType:jn.JSON,success:(t={})=>{const{code:e,data:n={}}=t;if(200===e&&0===n.ret)r(n.data),vc(n);else{const t={code:n.ret,message:n.msg};i(t)}},fail:(t,e)=>{const n={code:it,message:`错误原因:${JSON.stringify(t)}, 错误代码:${e}`};i(n)}};Object.assign(e,t),n.fetch(e)}else{i({code:"100000",message:"未知异常"})}})()}))}async function nu(t,e){const{config:{appId:n}}=At();t.appId=n;const r=ut,i=await function(t){return Promise.all([uc(),ac(t),tc(),ic(),Fo()]).then(Vt).then((e=>{const{s:n,app:r,ail:i,carrier:s,idInfo:o,deviceInfo:c,originalDeviceInfo:a,connect_type:u,c_market:h=""}=e,{appId:f,placementId:d,count:l=1,devExt:p={},extReq:g={},debug:m}=t,{packageName:y,versionName:v}=r,{oaid:b,imei_md5:w,android_id_md5:_}=o;return{count:l,adposcount:1,datatype:2,posid:d,support_https:1,ext:{req:Zo(Zo({carrier:s,conn:u,ail:i,appid:f,sdk_st:1,sdk_cnl:0,s_hd:0,sdkver:"1.7.1070",hostver:v,support_app_landing_page:0,support_tpl2:2,c_market:h,c_sdfree:1024*Yt(n.das)*1024,c_pkgname:y,c_real_time_pkg_name:n.pkm,c_signature:n.si},c),{},{sdk_src:"quick_app_sdk",deep_link_version:1,support_app_store:0,tmpallpt:!0,m1:w,m3:_,oaid:b,harmony_sys_info:sc(a)},g)},s:n,dev_ext:p,r:_t()}}))}(t),s=await async function(){return"https://mi.gdt.qq.com/gdt_mview.fcg"}(),o={};return new Promise(((n,c)=>{const a={ad:{placementId:t.placementId},enum_code:r};!function(t={}){const{ext:e={}}=t,n=sr(t,ur);xr(wr({ei:nt.FETCH,ext:e},n))}(a),eu({header:o,url:s,data:i}).then((r=>{!function(t){const{enumCode:e}=t,n=sr(t,hr);xr(wr({ei:nt.FETCH_SUCCESS,enum_code:e},n))}(tu(tu({},a),{},{enumCode:ot}));const[i]=Object.keys(r),{ret:s,msg:o,list:u=[]}=r[i];if(0!==s){return c({code:s,message:o}),void Ir(tu({errorCode:s,ext:{msg:o}},a))}let h=!1;u.forEach((n=>{n.traceid||(n.traceid=Et()),n.appId=t.appId,n.placementId=t.placementId,n.adType=e,n.traceid=n.traceid||Et(),n.muted=t.muted||!1,n.viewId=function(t){const e=ne(t);let n="";const r=/viewid=([^&]+)/;return r.test(e)&&([,n=""]=e.match(r)||{}),n}(n.apurl),n.adExpireTimestamp=Ct()+ue(n.ad_expire||720);const r="customized_invoke_url";n[r]=/:\/\//.test(n[r])?n[r]:"",h||n.desc&&n.img||(!function(t){const{traceId:e}=t,n=sr(t,pr);xr(wr({ei:nt.ON_AD_CONTENT_NO_RIGHT,trace_id:e},n))}(a),h=!0)})),n(u),u&&u.length?(function(t={}){xr(wr({ei:nt.HAS_AD},t))}(a),function(t){const{traceId:e}=t,n=sr(t,lr);xr(wr({ei:nt.ON_AD_PREPARED,trace_id:e},n))}(a)):Ir(tu(tu({},a),{},{errorCode:st})),Xc.redoReportCgi()})).catch((t=>{!function(t){const{errorCode:e,ext:n={}}=t,r=sr(t,fr);xr(wr({ei:nt.FETCH_FAIL,error_code:e,ext:n},r))}(tu(tu({},a),{},{errorCode:null==t?void 0:t.code,ext:{msg:null==t?void 0:t.message}})),c(t)}))}))}class ru extends Ja{load(){this.isLoading&&(Lt()?this.emitter.emit(xi,{[mi]:2005,[yi]:vi}):async function(t){const{preload:e,aid:n}=t,r={};n&&Object.assign(r,{aid:n,debug:!0,nomatch:!0});const{config:{appId:i}}=At(),s=tu(tu({},t),{},{appId:i,extReq:{support_features:65536,max_duration:61,support_reward_page:1,render_type:V,prld:e||tt,placement_type:W,from_js:0}});return n&&(s.debug=r),nu(s,q.REWARD_VIDEO).then((t=>{const[e]=t;return e}))}(this.params).then((t=>{const e=t.traceid;this.isLoading=!1,this.traceId=e,be(e,t),this.emitter.emit(wi)})).catch((t=>{this.isLoading=!1,this.emitter.emit(xi,{[mi]:t.code,[yi]:""})})))}show(){const{status:t}=Za.call(this);if(t){da({uri:"/YlhAds/RewardVideoAd"});const{traceId:t}=this,e=Oe(t);e.is_showed=!0,be(t,e)}}destroy(){super.destroy(),this.ylhSdk&&(this.ylhSdk.rewardVideo=null)}onReward(t){return this.emitter.on(Ci,t),this}offReward(t){return this.emitter.off(Ci,t),this}}function iu(t){return this.$app.$def.ylh_sdk.rewardVideo=new ru(t,this.$app.$def.ylh_sdk),this.$app.$def.ylh_sdk.rewardVideo}class su extends Ja{constructor(t,e){super(t,e),this.setEntry(t)}setEntry(t){const{entry:e}=t;e&&(this.entry=t.entry)}load(){this.isLoading&&(Lt()?this.emitter.emit(xi,{[mi]:2005,[yi]:vi}):async function(t){const{preload:e,aid:n}=t,r={},{config:{appId:i}}=At();n&&Object.assign(r,{aid:n,debug:!0,nomatch:!0});const s=tu(tu({},t),{},{appId:i,extReq:{rtld:1,support_features:67584,render_type:V,prld:e||tt,placement_type:U,from_js:0}});return n&&(s.debug=r),nu(s,q.SPLASH).then((t=>{const[e]=t;return e}))}(this.params).then((t=>{const e=t.traceid;this.isLoading=!1,this.traceId=e,be(e,t),this.emitter.emit(wi)})).catch((t=>{this.isLoading=!1,this.emitter.emit(xi,{[mi]:t.code,[yi]:""})})))}show(){const{status:t}=Za.call(this);if(t){da({uri:"/YlhAds/SplashAd"});const{traceId:t}=this,e=Oe(t);e.is_showed=!0,be(t,e)}}destroy(){super.destroy(),this.ylhSdk&&(this.ylhSdk.splash=null)}}function ou(t){return this.$app.$def.ylh_sdk.splash=new su(t,this.$app.$def.ylh_sdk),this.$app.$def.ylh_sdk.splash}class cu{constructor(t){const{adInfo:e}=t,{traceid:n,txt:r,desc:i,producttype:s,img:o,img2:c,pic_width:a,pic_height:u,video:h,video_height:f,video_width:d,video_duration:l,img_list:p=[]}=e,g=bn(e);this.id=n,this.imgs=((t=[])=>{const e=[];return t.length>0?(e.length=3,t.forEach(((t,n)=>{e[n]=t})),e.fill("",t.length),e):e})(p),this.patternType=(t=>{const{img_list:e=[]}=t;return e.length>0?"NATIVE_3IMAGE":"NATIVE_NORMAL"})(e),this.adLogo=Fe("ad_logo_light"),this.title=r,this.desc=i,this.img=o,this.imgWidth=a,this.imgHeight=u,this.hasVideo=!!h,this.videoHeight=f,this.videoWidth=d,this.videoDuration=l,this.avatar=c,this.isApp=12===s,this.btnTxt=12===s?"立即下载":"查看详情",this.appName=g.appName,this.authorName=g.authorName,this.appVersion=g.versionName,this.icpNumber=g.icpNumber,this.appSuitableAge=g.appSuitableAge,this.pkgSizeBytes=g.packageSize,this.permissionsUrl=g.permissions,this.privacyAgreement=g.privacy,this.descriptionUrl=g.description,be(this.id,e)}}const au=function(t){const e=$e.createEmitter(t.id),n=Oe(t.id),r={pkgManager:void 0,adExposer:void 0};e.on("INIT_PKG_MANAGER",(()=>{r.pkgManager||(r.pkgManager=new ha({id:t.id,adInfo:n,onApkStatusUpdate:t=>{e&&e.emit("APP_STATUS_CHANGE",t)}}));const{pkgManager:i}=r;i.checkAppStatus()})),e.on("AD_CLICK",(({event:e,onAdClick:i,container:s,clickableElements:o,experiment:c})=>{const{secModuleKey:a}=c,u=new(a?wa:ra)({id:t.id,container:s,cLink:n.rl,onAdClick:i,clickableElements:o,experiment:{secModuleKey:a}}),{pkgManager:h}=r;h&&u.executeAdClick(h,e)})),e.on("AD_EXPOSE",(async({onAdExpose:i,container:s,channel:o,experiment:c,isActiveTriggerAppear:a=!1})=>{if(e&&e.emit("CHECK_EXPOSE_REPEAT",{channel:o,isFirst:!r.adExposer}),!r.adExposer){const{secModuleKey:e}=c,o=e?ya:ta;r.adExposer=new o({id:t.id,container:s,eLink:n.apurl,onAdExpose:i,isActiveTriggerAppear:a,experiment:{secModuleKey:e}})}const{adExposer:u}=r;u.checkExpose(o)})),e.on("ON_PAGE_SHOW",(()=>{const{pkgManager:t}=r;t&&t.checkAppStatus()})),e.on("ON_DESTROY",(()=>{e&&(e.remove("APP_STATUS_CHANGE"),e.remove("AD_CLICK")),Ve[t.id]=null,we(t.id),ia.removeCurrentPageUpdates([t.id])}))};function uu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uu(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const fu=class extends cu{constructor(t){super(t),au(this),this.getECPM=()=>$a(this.id),this.sendWinNotification=(t={})=>Ga(hu({adId:this.id},t)),this.sendLossNotification=(t={})=>Fa(hu({adId:this.id},t))}};const du=function(t){return async function(t){const{preload:e}=t,{config:{appId:n}}=At();return nu(tu(tu({},t),{},{appId:n,extReq:{support_features:65536,render_type:V,placement_type:$,prld:e||tt,support_container:!0}}),q.FEED)}(t).then(((t=[])=>t.map((t=>new fu({adInfo:t})))))};function lu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lu(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gu(t,e={}){return new Promise(((n,r)=>{const{success:i,fail:s}=e;t(pu(pu({},e),{},{success:t=>{n(t),"function"==typeof i&&i(t)},fail:(t,e)=>{r(t,e),"function"==typeof s&&s(t,e)}}))}))}const mu=t=>{const{storage:e}=$t();return gu(e.get,{key:t})},yu=(t,e)=>{const{storage:n}=$t();return gu(n.set,{key:t,value:e})},vu=t=>{const{storage:e}=$t();return gu(e.delete,{key:t})},bu=()=>{const{network:t}=$t();return gu(t.getType)},wu={FEED:{value:"feed",analysis:4},SPLASH:{value:"splash",analysis:3},REWARD_VIDEO:{value:"reward_video",analysis:5},REWARD_BROWSE:{value:"reward_browse",analysis:5}};function _u(t){const e=Object.keys(wu).find((e=>wu[e].value===t));return e?wu[e].analysis:0}function xu(t){const e="fulfilled"===t.status?t.value:{},{type:n}=e;return os[n]||0}function Ou(t={}){const{ad:e}=t,n=t.trace_id,r=e||Oe(n),{placementId:i,cl:s,producttype:o,adType:c,video:a}=r;return{pid:i||(null==e?void 0:e.placementId)||"",aid:s,traceId:n,pt:o,adt:_u(c),vdo:a?2:1,tid:"",rt:1}}class Au{constructor(t){this.storage={get:mu,set:yu,delete:vu},this.maxNum=2e3,this.STORAGE_KEY=`ylh_analysis_${t}`,this.events=[],this.seq=1,this.init()}async init(){const t=await this.storage.get(this.STORAGE_KEY)||"{}",{events:e=[],seq:n=1}=JSON.parse(t);this.events=e,this.seq=n}getNextSeq(){return this.seq+=1,this.updateToStorage(),this.seq}async updateToStorage(){const{events:t=[],seq:e=1}=this;await this.storage.set(this.STORAGE_KEY,{events:t,seq:e})}concatEvents(t=[]){const{events:e=[]}=this;this.events=[...e,...t].slice(0,this.maxNum),this.updateToStorage()}getEvents(){return this.events}clearEvents(t=[]){const{events:e=[]}=this,n=Object.fromEntries(t.map((t=>[t.seq,t])));this.events=e.filter((t=>!n[t.seq])),this.updateToStorage()}}function Cu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Iu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cu(Object(n),!0).forEach((function(e){ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class Su{constructor(t){t.appId&&(this.appId=t.appId,this.store=new Au(this.appId),this.init(t))}async init(t){const{app:e}=$t();this.appInfo=e.getInfo(),this.deviceInfo=await fs(),function(){const{$app:t}=At(),e=Kt(t,["$def","manifest","config","network"],{});xr({ei:nt.QUICK_APP_REQUEST_TIMEOUT,ext:{network:e}})}(),this.cycleSend(t.delay?t.delay:5e3)}cycleSend(t){setTimeout((async()=>{const e=this.store.getEvents().slice(0,20);if(null!=e&&e.length)try{await this.realSend(e),this.store.clearEvents(e)}catch(t){}finally{this.cycleSend(t)}else this.cycleSend(t)}),t)}onUserAction(t={}){t.biz=Ou(t),delete t.ad,setTimeout((()=>{this.onReport(t,!1)}))}onDirectUserAction(t={}){t.biz=Ou(t),this.onReport(t,!0)}async onReport({ei:t,enum_code:e,error_code:n,ext:r={},biz:i},s=!1){if(!t)return;const o=[{ct:xu(await bu()),sv:"1.7",plv:1070,ei:t,enum_code:e,biz:i,ext:"string"==typeof r?r:JSON.stringify(r).substr(0,1e3),seq:this.store.getNextSeq(),ts:Date.now(),error_code:n}];s?await this.realSend(o,s):this.store.concatEvents(o)}async realSend(t,e=!1){const n=await bu(),r=function({appInfo:t,deviceInfo:e={},networkTypeRes:n}){const{packageName:r,versionName:i}=t,{language:s,osVersionName:o,osVersionCode:c,model:a,product:u,manufacturer:h,vendorOsVersion:f,screenWidth:d,screenHeight:l}=e;return{ct:xu(n),lg:s,ca:0,pkg:r,av:i,sv:"1.7",plv:1070,sdk_st:5,sdk_cnl:5,ov:o,al:c,os:2,md:a,pl:`${h}/${a}/${f}`,mn:u,w:d,h:l,harmony_sys_info:sc(e)}}({appInfo:this.appInfo,deviceInfo:this.deviceInfo,networkTypeRes:n}),i=Iu(Iu({ts:Date.now(),app:this.appId.toString()},r),{},{events:t}),s=await function(t){return En(t,Sn.sdk)}("https://sdk.e.qq.com/event");try{const t=Bt(i),e=await Vo({text:t});await function({url:t,method:e,data:n}){const{system:{fetch:r}={}}=At();return new Promise(((i,s)=>{null==r||r.fetch({url:t,method:e,data:n,success:t=>{const{code:e,data:n={}}=t;if(200===e&&0===n.ret)i(n.data);else{const t={code:n.ret,message:n.msg};s(t)}},fail:t=>{s(t)}})}))}({url:s,method:"POST",data:`quickapp_${e}`})}catch(n){e&&this.store.concatEvents(t)}}}function Eu(t){!function(t){const e="applc:onCreate",n="applc:onShow",r="applc:onHide",i="applc:onDestroy";if(!(t._events&&t._events[e]&&t._events[n]&&t._events[r]&&t._events[i]))return;const s=Bc.getInstance(t);s.onCreate.bind(s)(),s.onShow.bind(s)(),t._events[e].push(s.onCreate.bind(s)),t._events[n].push(s.onShow.bind(s)),t._events[r].push(s.onHide.bind(s)),t._events[i].push(s.onDestroy.bind(s))}(t),Xc.sdkInit()}const Pu={AmsLogo:un,AppInfo:wn,CtaButton:In,RewardTips:_n,CloseButton:di,CircleClose:fi,VolumeButton:gi,VideoPlayer:tr,SplashAd:Da,RewardVideoAd:Ca,YlhAd:La,YlhAdVideo:Ra,YlhAdClickableArea:Ka};function ku(t){const e=Ot();t&&(e.$YLHSDK=t);const{$app:n,config:{appId:r="testAppId"}={}}=At();!function(t){const{manifest:e}=t.$def;Ie(L,e)}(n);Date.now();(Ot()?(Date.now(),Promise.all([uc(),xs()]).then((()=>{})).catch((t=>{}))):{}).then((()=>{Object.assign(n.$def.ylh_sdk,{$app:n,version:"1.7.1070",components:Pu,createSplashAd:ou,createRewardVideoAd:iu,loadFeedAd:du}),function(t){const e=Ue("INNER_EMITTER");t.$def.ylh_sdk=Be(Be({},t.$def.ylh_sdk),{},{onYlhReadyCallback:t.$def.ylh_sdk.onYlhReadyCallback||[],SDK_CORE_READY:!0}),e.on("SDK_CORE_READY",(()=>{t.$def.ylh_sdk.onYlhReadyCallback.forEach((t=>{t.apply()})),t.$def.ylh_sdk.onYlhReadyCallback=[]})),e.emit("SDK_CORE_READY")}(n),e.$YLHSDK.analysis=new Su({appId:r})})),Eu(n),bc(),Yo(),async function(){const t=1129,e=1227,n=1194,r=1214,i=1186,s=1104,o=1141,c=1122,a=1124,u=1187,h=1140,f=1157,d=1105,l=997,p=1055,g=992,m=1030,y=982,v=989,b=1004,w=948,_=968,x=973,O=966,A=983,C=1040,I=1006,S=1026,E=1041,P=1032,k=1039,D=1026,T=1013,j=1173,L=1171,N=1107,z=1145,M=1179,B=1143,R=55,q=1234,K={wQeWX:function(t,e){return t(e)},Tzhwz:H(1142,1111,1137,t)+H(e,n,r,i),ALlzZ:function(t,e){return t!==e},fPSvy:H(s,o,s,c),dvZmf:H(a,u,h,f),BFhvx:H(d,h,f,t)+V(l,p,g,m)};function H(t,e,n,r){return _o(r-q,0,0,n)}function V(t,e,n,r){return Ao(0,r-R,0,e)}try{const t={};t[V(y,1014,v,1017)]=xo;const e=await K[V(b,w,_,x)](si,t);e&&(wo=e)}catch(t){if(K[V(O,A,C,I)](K[H(0,0,1172,1135)],K[V(S,E,P,k)]));else{const t={_0x3827cd:942,_0x4b8113:976,_0x2d9292:983,_0x26e214:902,_0x2a353a:957,_0x22e51c:943,_0x69dac2:928,_0x5ac7d8:910};var U=_0xd7a50e["getOwnProp"+V(997,982,D,T)+"s"](_0x19bd71);_0x5710bb&&(U=U[H(0,0,j,L)]((function(e){const n=11,r=80;function i(t,e,i,s){return V(t-291,s,i-n,t- -r)}return _0x4fdba6["getOwnProp"+i(t._0x3827cd,t._0x4b8113,t._0x2d9292,t._0x26e214)+i(t._0x2a353a,0,995,t._0x22e51c)](_0x3dad6d,e)[i(t._0x69dac2,0,t._0x5ac7d8,889)]}))),_0x1e99b0[H(0,0,N,z)][H(0,0,M,B)](_0x1bd5aa,U)}}}()}})(),r=r.default})()));
//# sourceMappingURL=ylh-sdk-core-v1.7.1070.min.js.map