/*! * 51LA Analysis Javascript Software Development Kit * js-sdk-pro v1.58.4 * Copyright © 2016-2025 51.la All Rights Reserved */ (function(exports){"use strict";var root=window,doc=root.document,encode=encodeURIComponent,IvhHwu=typeOf("Object"),GKrgXX=typeOf("Number"),lFiNzq=typeOf("String"),CwrTjU=typeOf("Array"),FScnhW=typeOf("Function"),DIubzH=typeOf("RegExp");function bPlIKf(t,e){return void 0!==t&&-1!==t.indexOf(e)}function arrayIndexOf(t,e){for(var r=0,n=t.length;rt}var utils={root:root,doc:doc,IvhHwu:IvhHwu,GKrgXX:GKrgXX,FScnhW:FScnhW,DIubzH:DIubzH,lFiNzq:lFiNzq,CwrTjU:CwrTjU,bPlIKf:bPlIKf,extend:extend,mpccLL:mpccLL,trim:trim,now:now,arrayIndexOf:arrayIndexOf,checkChormeMoblie:checkChormeMoblie},VxlCev=function(){var t,e=getTagName("meta"),r=getTagName("title"),n={kw:"",ds:""};n.tt=utils.trim(r.length?r[0].innerHTML:""),n.tt=n.tt.slice(0,1e3);for(var o=0;o>>8,n[2*o+1]=a%256}return n},LUhU:function(t){return null==t?"":e.NEmg(t,6,(function(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$".charAt(t)}))},Frdx:function(r){return e.NEmg(r,16,(function(e){return t(e)}))},NEmg:function(t,e,r){if(null==t)return"";var n,o,i,a={},s={},c="",u="",f="",l=2,d=3,p=2,h=[],g=0,v=0;for(i=0;i>=1}else{for(o=1,n=0;n>=1}0==--l&&(l=Math.pow(2,p),p++),delete s[f]}else for(o=a[f],n=0;n>=1;0==--l&&(l=Math.pow(2,p),p++),a[u]=d++,f=String(c)}if(""!==f){if(Object.prototype.hasOwnProperty.call(s,f)){if(f.charCodeAt(0)<256){for(n=0;n>=1}else{for(o=1,n=0;n>=1}0==--l&&(l=Math.pow(2,p),p++),delete s[f]}else for(o=a[f],n=0;n>=1;0==--l&&(l=Math.pow(2,p),p++)}for(o=2,n=0;n>=1;for(;;){if(g<<=1,v==e-1){h.push(r(g));break}v++}return h.join("")}};return e}();function _typeof(t){return _typeof="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},_typeof(t)}var tj={parse:function parse(sJSON){return eval("("+sJSON+")")},stringify:(toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,escMap={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},escFunc=function(t){return escMap[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)},escRE=/[\\"\u0000-\u001F\u2028\u2029]/g,function t(e){if(null==e)return"null";if("number"==typeof e)return isFinite(e)?e.toString():"null";if("boolean"==typeof e)return e.toString();if("object"===_typeof(e)){if("function"==typeof e.toJSON)return t(e.toJSON());if(a=e,"[object Array]"===toString.call(a)){for(var r="[",n=0;n>>1|(21845&p)<<1;h=(61680&(h=(52428&h)>>>2|(13107&h)<<2))>>>4|(3855&h)<<4,d[p]=((65280&h)>>>8|(255&h)<<8)>>>1}var g=function(t,r,n){for(var o=t.length,i=0,a=new e(r);i>>u]=f}else for(s=new e(o),i=0;i>>15-t[i]);return s},v=new t(288);for(p=0;p<144;++p)v[p]=8;for(p=144;p<256;++p)v[p]=9;for(p=256;p<280;++p)v[p]=7;for(p=280;p<288;++p)v[p]=8;var y=new t(32);for(p=0;p<32;++p)y[p]=5;var m=g(v,9,0),b=g(y,5,0),w=function(t){return(t/8|0)+(7&t&&1)},x=function(n,o,i){(null==o||o<0)&&(o=0),(null==i||i>n.length)&&(i=n.length);var a=new(n instanceof e?e:n instanceof r?r:t)(i-o);return a.set(n.subarray(o,i)),a},S=function(t,e,r){r<<=7&e;var n=e/8|0;t[n]|=r,t[n+1]|=r>>>8},A=function(t,e,r){r<<=7&e;var n=e/8|0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},O=function(r,n){for(var o=[],i=0;ih&&(h=s[i].s);var g=new e(h+1),v=C(o[d-1],g,0);if(v>n){i=0;var y=0,m=v-n,b=1<n))break;y+=b-(1<>>=m;y>0;){var x=s[i].s;g[x]=0&&y;--i){var S=s[i].s;g[S]==n&&(--g[S],++y)}v=n}return[new t(g),v]},C=function(t,e,r){return-1==t.s?Math.max(C(t.l,e,r+1),C(t.r,e,r+1)):e[t.s]=r},k=function(t){for(var r=t.length;r&&!t[--r];);for(var n=new e(++r),o=0,i=t[0],a=1,s=function(t){n[o++]=t},c=1;c<=r;++c)if(t[c]==i&&c!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[c]}return[n.subarray(0,o),r]},U=function(t,e){for(var r=0,n=0;n>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i4&&!X[i[F-1]];--F);var $,q,B,G,Q=p+5<<3,W=U(c,v)+U(u,y)+f,Y=U(c,x)+U(u,_)+f+14+3*F+U(N,X)+(2*N[16]+3*N[17]+7*N[18]);if(Q<=W&&Q<=Y)return L(r,h,t.subarray(d,d+p));if(S(r,h,1+(Y15&&(S(r,h,tt[K]>>>5&127),h+=tt[K]>>>12)}}}else $=m,q=v,B=b,G=y;for(K=0;K255){et=s[K]>>>18&31;A(r,h,$[et+257]),h+=q[et+257],et>7&&(S(r,h,s[K]>>>23&31),h+=n[et]);var rt=31&s[K];A(r,h,B[rt]),h+=G[rt],rt>3&&(A(r,h,s[K]>>>5&8191),h+=o[rt])}else A(r,h,$[s[K]]),h+=q[s[K]];return A(r,h,$[256]),h+q[256]},_=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),I=new t(0),E=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,n=9;--n;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),j=function(){var t=-1;return{p:function(e){for(var r=t,n=0;n>>8;t=r},d:function(){return~t}}},M=function(i,a,s,c,f){return function(i,a,s,c,f,d){var p=i.length,h=new t(c+p+5*(1+Math.ceil(p/7e3))+f),g=h.subarray(c,h.length-f),v=0;if(!a||p<8)for(var y=0;y<=p;y+=65535){var m=y+65535;m>>13,A=8191&b,O=(1<7e3||K>24576)&&q>423){v=T(i,g,0,M,R,D,N,K,X,y-X,v),K=P=N=0,X=y;for(var B=0;B<286;++B)R[B]=0;for(B=0;B<30;++B)D[B]=0}var G=2,Q=0,W=A,Y=F-$&32767;if(q>2&&z==j(y-Y))for(var Z=Math.min(S,q)-1,V=Math.min(32767,y),J=Math.min(258,q);Y<=V&&--W&&F!=$;){if(i[y+G]==i[y+G-Y]){for(var tt=0;ttG){if(G=tt,Q=Y,tt>Z)break;var et=Math.min(Y,tt-2),rt=0;for(B=0;Brt&&(rt=ot,$=nt)}}}Y+=(F=$)-($=C[F])+32768&32767}if(Q){M[K++]=268435456|u[G]<<18|l[Q];var it=31&u[G],at=31&l[Q];N+=n[it]+o[at],++R[257+it],++D[at],H=y+G,++P}else M[K++]=i[y],++R[i[y]]}}v=T(i,g,d,M,R,D,N,K,X,y-X,v),!d&&7&v&&(v=L(g,v+1,I))}return x(h,0,c+w(v)+f)}(i,null==a.level?6:a.level,null==a.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+a.mem,s,c,!f)},R=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},D=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&R(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var n=0;n<=r.length;++n)t[n+10]=r.charCodeAt(n)}},P=function(t){return 10+(t.filename&&t.filename.length+1||0)},N="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(I,{stream:!0})}catch(t){}return{gzipSync:function(t,e){e||(e={});var r=j(),n=t.length;r.p(t);var o=M(t,e,P(e),8),i=o.length;return D(o,e),R(o,i-8,r.d()),R(o,i-4,n),o},strToU8:function(e,r){if(r){for(var n=new t(e.length),o=0;o>1)),s=0,c=function(t){a[s++]=t};for(o=0;oa.length){var u=new t(s+8+(i-o<<1));u.set(a),a=u}var f=e.charCodeAt(o);f<128||r?c(f):f<2048?(c(192|f>>6),c(128|63&f)):f>55295&&f<57344?(c(240|(f=65536+(1047552&f)|1023&e.charCodeAt(++o))>>18),c(128|f>>12&63),c(128|f>>6&63),c(128|63&f)):(c(224|f>>12),c(128|f>>6&63),c(128|63&f))}return x(a,0,s)}}}return!1}var minifyString=minifyStr();function detectIE(){var t,e,r,n;return n=utils.root.navigator.userAgent,utils.root.ActiveXObject&&(e=n.indexOf("MSIE "))>0?parseInt(n.substring(e+5,n.indexOf(".",e)),10):n.indexOf("Trident/")>0?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"))>0&&parseInt(n.substring(t+5,n.indexOf(".",t)),10)}function reportData(t,e,r){var n,o,i,a,s,c,u,f=[],l=[],d=0,p=detectIE()||NaN;function h(t,e){var r;return r=function(t,e){var r,n;if(null!=Array.prototype.indexOf)return t.indexOf(e);for(n=t.length,r=-1;++rs?c=!1:(c=!0,i=navigator.userAgent,"ArrayBufferView"in utils.root||(-1!==i.indexOf("Android")?c=!1:-1!==i.indexOf("CPU OS ")?(-1!==i.indexOf("CPU OS 6_")||-1!==i.indexOf("CPU OS 5_")||-1!==i.indexOf("CPU OS 4_")||-1!==i.indexOf("CPU OS 3_"))&&(c=!1):-1!==i.indexOf("CPU iPhone OS ")?(-1!==i.indexOf("iPhone OS 6_")||-1!==i.indexOf("iPhone OS 5_")||-1!==i.indexOf("iPhone OS 4_"))&&(c=!1):-1!==i.indexOf("Intel Mac OS X")&&(-1!==i.indexOf("Mac OS X 10_6")||-1!==i.indexOf("Mac OS X 10_7"))&&(c=!1))),f=[],l=[],u="undefined"==typeof Uint8Array||null===Uint8Array?utils.root.XMLHttpRequest&&7!==p?LZString.zvtY(tj.stringify(e)):LZString.LUhU(tj.stringify(e)):minifyString.gzipSync(minifyString.strToU8(tj.stringify(e)),{level:6,mem:8}),i=t+(t.indexOf("?")<0?"?":"&")+"dt=4",utils.root.laWaitTime=(new Date).valueOf()+300,utils.root.XMLHttpRequest&&7!==p?"withCredentials"in(n=new XMLHttpRequest)?(n.open("POST",i,!0),n.withCredentials=!0,n.onreadystatechange=function(){return 4===n.readyState&&(utils.root.laWaitTime=(new Date).valueOf()+10)&&function(t){var e;return-1!==(e=f.indexOf(t))?f.splice(e,1):void 0}(n)&&200===n.status},n.send("undefined"!=typeof ArrayBuffer&&null!==ArrayBuffer?c?u:u.buffer:u),f.push(n)):"undefined"!=typeof XDomainRequest&&(n=new XDomainRequest,"http:"===document.location.protocol&&(i=t+(t.indexOf("?")<0?"?":"&")+"dt=1"),n.open("POST",i),n.onload=function(){return h(n,r)},n.onerror=function(t){return h(n,r)},n.onprogress=function(){return{}},n.ontimeout=function(){return{}},n.send(u),l.push(n)):("http:"===utils.root.location.protocol&&(o=t.replace("https://","http://")+(t.indexOf("?")<0?"?":"&")+"dt=2&data=".concat(u)),o.length<=2036&&function(t,e){var r;return(r=document.createElement("img")).width=1,r.height=1,r.onload=function(){return g(r,e)},r.onerror=r.onabort=function(){return g(r,e)},r.src=t,l.push(r)}(o,r))}var send={report:reportData},cookie={get:function(t){return decodeURIComponent(utils.doc.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[-.+*]/g,"\\$&")+"\\s*\\=s*([^;]*).*$)|^.*$"),"$1"))||null},set:function(t,e,r,n,o,i){if(!t||/^(?:expires|max-age|path|domain|secure)$/i.test(t))return!1;var a="";if(r)switch(r.constructor){case Number:a=r===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case String:a="; expires="+r;break;case Date:a="; expires="+r.toUTCString()}return utils.doc.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+a+(o?"; domain="+o:"")+(n?"; path="+n:"")+(i?"; secure":""),!0}},store$1={get:function(t){return tj.parse((dom.isMobi?utils.root.localStorage.getItem(t):cookie.get(t))||"{}")},set:function(t,e,r,n){return dom.isMobi?utils.root.localStorage.setItem(t,e):cookie.set(t,e,r,n)}},storeUtils={cookie:cookie,store:store$1},bind=utils.doc.addEventListener?function(t,e,r){t.addEventListener(e,r,!0)}:utils.doc.attachEvent?function(t,e,r){t.attachEvent("on"+e,r)}:function(t,e,r){t["on"+e]=r};function eventOn(t,e,r){for(var n=e.split(" "),o=0,i=n.length;o>>24,e>>>16&255,e>>>8&255,255&e,(e=parseInt(t.slice(9,13),16))>>>8,255&e,(e=parseInt(t.slice(14,18),16))>>>8,255&e,(e=parseInt(t.slice(19,23),16))>>>8,255&e,(e=parseInt(t.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,255&e)}const byteToHex=[];for(let t=0;t<256;++t)byteToHex.push((t+256).toString(16).slice(1));function unsafeStringify(t,e=0){return(byteToHex[t[e+0]]+byteToHex[t[e+1]]+byteToHex[t[e+2]]+byteToHex[t[e+3]]+"-"+byteToHex[t[e+4]]+byteToHex[t[e+5]]+"-"+byteToHex[t[e+6]]+byteToHex[t[e+7]]+"-"+byteToHex[t[e+8]]+byteToHex[t[e+9]]+"-"+byteToHex[t[e+10]]+byteToHex[t[e+11]]+byteToHex[t[e+12]]+byteToHex[t[e+13]]+byteToHex[t[e+14]]+byteToHex[t[e+15]]).toLowerCase()}function stringToBytes(t){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r>>32-e}function sha1(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],n=new Uint8Array(t.length+1);n.set(t),n[t.length]=128;const o=(t=n).length/4+2,i=Math.ceil(o/16),a=new Array(i);for(let e=0;e>>0;u=c,c=s,s=ROTL(i,30)>>>0,i=o,o=a}r[0]=r[0]+o>>>0,r[1]=r[1]+i>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+u>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])}function v5(t,e,r,n){return v35(80,sha1,t,e,r,n)}v5.DNS=DNS,v5.URL=URL;var store=storeUtils.store;function MqwSyC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})).toUpperCase()}function isPlaceholer(){return"placeholder"in document.createElement("input")}function ypLKZa(){var t=navigator.userAgent;return!!(t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1)&&(new RegExp("MSIE (\\d+\\.\\d+);").test(t),parseFloat(RegExp.$1)<10||!isPlaceholer()||void 0)}function noUint8Array(){return"undefined"==typeof Uint8Array||null===Uint8Array}function lkSYwp(t){var e=t.connection||t.mozConnection||t.webkitConnection||t.oConnection;return utils.bPlIKf(t.userAgent,"mobile")&&e?e.type:"unknow"}function getDayEndExpires(t,e){var r=new Date(new Date(new Date(new Date((new Date).getTime()).setHours(0,0,0,0))).getTime()+864e5-1).getTime();return r-t<=18e5?r:t+e}function kCRKtO(t,e,r){var n,o=getDayEndExpires(t,e.SessionTimeout),i=e.ck;try{(n=store.get("__vtins__"+i))&&utils.GKrgXX(n.expires)&&n.expirest?0:1,s=a?1:n.vd+1,c=a?tool.ypLKZa()||tool.noUint8Array()?tool.MqwSyC():v5("\n ".concat(i,"\n ").concat(r.userAgent,"\n ").concat(t,"\n ").concat(Math.random().toString(36).substr(-8),"\n "),tool.MqwSyC()):n.sid,u=o,f=utils.GKrgXX(n.ct)&&parseInt(t)-parseInt(n.ct)>0?parseInt(t)-parseInt(n.ct):0,l=utils.GKrgXX(n.stt)?parseInt(n.stt)+f:f;store.set("__vtins__"+i,tj.stringify({sid:c,vd:s,stt:l,dr:f,expires:u,ct:t}),null,"/");var d=storeUtils.cookie.get("__51uvsct__"+i);return!utils.GKrgXX(parseInt(d))||isNaN(parseInt(d))?(storeUtils.cookie.set("__51uvsct__"+i,1,1/0,"/"),d=1):0==f&&(d=parseInt(d)+1,storeUtils.cookie.set("__51uvsct__"+i,d,1/0,"/")),[a,a?c:store.get("__vtins__"+i).sid,s,l,f,d]}function EfyrjP(t){return t.language||t.browserLanguage}function tvpXCm(t){var e,r,n="";return e=utils.root.history.pushState,r=utils.root.history.replaceState,null!=e&&(utils.root.history.pushState=function(r){return function(){return r.prevUrl=utils.root.location.toString(),e.apply(utils.root.history,arguments),setTimeout((function(){return t()}),0)}}(this)),null!=r&&(utils.root.history.replaceState=function(){return n=utils.root.location.toString(),r.apply(utils.root.history,arguments),setTimeout((function(){return t()}),0)}),null!=e&&(n=dom.zyAAdz(),"function"==typeof Object.defineProperty&&Object.defineProperty(utils.doc,"referrer",{get:function(){return n},configurable:!0}),eventOn(utils.root,"popstate",t)),eventOn(utils.root,"hashchange",t)}function objectKeys(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function isArray(t){return"[object Array]"==Object.prototype.toString.call(t)}function arrayFilter(t,e){if(t.length&&isArray(t)&&"function"==typeof e){for(var r=[],n=0;n-1&&e[r]&&e[r](t[r]))return n.push(r),!0})),i=0;i-1))return null;var r={};if(-1!=(e="?".concat(t.split("?")[1])).indexOf("?"))for(var n=e.substr(1).split("&"),o=0;o=0){r=!isCdnUrl$1(s);break}}return r?!n&&/^http[s]?/.test(e)?"".concat(e.replace(/\/$/,""),"/js-sdk-event.min.js?u=").concat(t):!n&&/^\/\//.test(e)&&"//"!==e?"".concat("https:"===self.location.protocol?"https:":"http:").concat(e.replace(/\/$/,""),"/js-sdk-event.min.js?u=").concat(t):!n&&e?"/".concat(e.replace(/\/$/,"").replace(/^\//,""),"/js-sdk-event.min.js?u=").concat(t):"/js-sdk-event.min.js?u=".concat(t):("https:"===self.location.protocol?"https:":"http:")+"//sdk.51.la/event/js-sdk-event.min.js?u=".concat(t)}function isCdnUrl$1(t){return!!t&&t.indexOf("sdk.51.la")>=0}function getAutoTrack(t,e,r){var n=getEventSDKUrl(t,e?decodeURIComponent(e):""),o=document.createElement("script");o.setAttribute("id","LA_CODELESS"),o.setAttribute("src",n),o.setAttribute("data-LA-ev",t),o.setAttribute("crossorigin","anonymous"),o.setAttribute("charset","UTF-8"),document.getElementsByTagName("head")[0].appendChild(o),o.readyState?o.onreadystatechange=function(){("complete"==o.readyState||"loaded"==o.readyState)&&r&&r()}:o.onload=function(){r&&r()}}function getRecorderSDKUrl(t,e){var r=!1,n=/sdk\.51\.la/.test(e),o=document.getElementById("LA_COLLECT"),i="1.0.0-beta";if(o)r=!isCdnUrl(c=o.getAttribute("src"));else for(var a=document.getElementsByTagName("script"),s=0;s<=a.length-1;s++){var c;if(r=!0,(c=a[s].getAttribute("src")).indexOf("js-sdk-pro.min.js")>=0){r=!isCdnUrl(c);break}}return r?!n&&/^http[s]?/.test(e)?"".concat(e.replace(/\/$/,""),"/js-sdk-recorder.min.js?v=").concat(i):!n&&/^\/\//.test(e)&&"//"!==e?"".concat("https:"===self.location.protocol?"https:":"http:").concat(e.replace(/\/$/,""),"/js-sdk-recorder.min.js?v=").concat(i):!n&&e?"/".concat(e.replace(/\/$/,"").replace(/^\//,""),"/js-sdk-recorder.min.js?v=").concat(i):"/js-sdk-recorder.min.js?v=".concat(i):("https:"===self.location.protocol?"https:":"http:")+"//sdk.51.la/recorder/js-sdk-recorder.min.js?v=".concat(i)}function isCdnUrl(t){return!!t&&t.indexOf("sdk.51.la")>=0}function getScreenRecorder(t,e,r){var n=getRecorderSDKUrl(t,e?decodeURIComponent(e):""),o=document.createElement("script");o.setAttribute("id","LA_RECORDER"),o.setAttribute("src",n),o.setAttribute("data-LA-re",t),o.setAttribute("crossorigin","anonymous"),o.setAttribute("charset","UTF-8"),document.getElementsByTagName("head")[0].appendChild(o),o.readyState?o.onreadystatechange=function(){("complete"==o.readyState||"loaded"==o.readyState)&&r&&r()}:o.onload=function(){r&&r()}}function init(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"{}"===tj.stringify(t)?utils.root.LA&&(t=utils.root.LA.config?utils.extend(t,utils.root.LA.config):utils.extend(t,utils.root.LA._config)):utils.root.LA.config=t;var e=tool.fhvLlv(t,{hashMode:function(t){return"boolean"==typeof t},SessionTimeout:function(t){return!!(utils.GKrgXX(t)&&t>=18e5&&t<=72e5)},autoTrack:function(t){return"boolean"==typeof t},screenRecord:function(t){return"boolean"==typeof t},prefix:function(t){return"/"===t?"":t}}),r=utils.root.location,n=utils.extend({url:("https:"===r.protocol?"https:":"http:")+"//collect-v6.51.la/v6/collect",v5ComId:t.v5ComId,id:t.id||t.v5ComId,ck:t.ck||t.id,hashMode:!1,autoTrack:!1,screenRecord:!1,SessionTimeout:18e5,prefix:""},e),o=utils.now(),i=utils.root.navigator,a=tool.kCRKtO(o,n,i),s=utils.root.screen,c=tool.ypLKZa()||tool.noUint8Array()?tool.MqwSyC():v5("\n ".concat(n.id,"\n ").concat(i.userAgent,"\n ").concat(o,"\n ").concat(dom.zyAAdz(),"\n ").concat(s.width+"*"+s.height,"\n ").concat(a[1],"\n ").concat(tool.lkSYwp(i),"\n ").concat(Math.random().toString(36).substr(-8),"\n "),tool.MqwSyC()),u=r.href,f={v5ComId:n.v5ComId,id:n.id,rt:o,tt:dom.VxlCev.tt,kw:dom.VxlCev.kw,ds:dom.VxlCev.ds,sid:a[1],cu:r.href,pu:dom.zyAAdz(),rl:s.width+"*"+s.height,lang:tool.EfyrjP(i),ct:tool.lkSYwp(i),svd:a[2],ce:i.cookieEnabled?1:0,cd:s.colorDepth||s.pixelDepth,stt:a[3],dr:a[4],uvsc:a[5]},l=cookieExchange(utils.extend(n,f),c);f.uid=l.uid,f.uft=l.uft;var d=tool.getQueryStringInURL("LA_RM_TK")||"",p=utils.checkChormeMoblie(45);!d&&p&&send.report(n.url,f,f.uid),n.autoTrack||!utils.root.LA||utils.root.LA.track||(utils.root.LA.track=function(){utils.root.console&&utils.root.console.warn&&console.warn("自2022年5月1日起,51.LA事件分析功能将调整为默认不开启,如您需要继续使用,可查看配置教程进行开启->https://support.qq.com/products/400900/faqs/117264")}),n.hashMode&&tool.tvpXCm((function(){if(u!==utils.root.location.href){u=utils.root.location.href;var t=utils.now(),e=tool.kCRKtO(t,n,i),r=dom.getMeta1(),o=(f=utils.extend(f,{id:n.id,pu:f.cu,rt:t,tt:r.tt,kw:r.kw,ds:r.ds,sid:e[1],svd:e[2],stt:e[3],dr:e[4],uvsc:e[5],cu:utils.root.location.href})).uid=cookieExchange(utils.extend(n,f),c);f.uid=o.uid,f.uft=o.uft,p&&send.report(n.url,f,f.uid)}})),n.autoTrack&&p&&getAutoTrack(f.id,n.prefix),n.screenRecord&&getScreenRecorder(f.id,n.prefix)}utils.root.LA&&utils.root.LA.config&&init(),utils.root.LA&&utils.root.LA.ids&&utils.CwrTjU(utils.root.LA.ids)&&utils.root.LA.ids.length>0&&(utils.root.LA._config=utils.root.LA.ids.shift(),init());try{var scriptDom=utils.doc.getElementById("LA_COLLECT");if(scriptDom){var scriptUrl=scriptDom&&scriptDom.getAttribute("src")||"";if(scriptUrl){var scriptParamsObj=tool.GetQueryString(scriptUrl);scriptParamsObj&&init(scriptParamsObj)}}}catch(t){}exports.init=init,Object.defineProperty(exports,"__esModule",{value:!0})})(this.LA=this.LA||{});