window._zhugeSdk=function(t){var e={};
function i(n){if(e[n])return e[n].exports;
var r=e[n]={i:n,l:!1,exports:{}};
return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;
if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;
var n=Object.create(null);
if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));
return n},i.n=function(t){var e=t&&t.__esModule?function(){return t['default']}:function(){return t};
return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=27)}([function(t,e){var i,n,r,o,a,s,c,u,d,l,p,f=window.navigator,h=window.document,g=f.userAgent,v=Array.prototype,m=Object.prototype,_=m.toString,y=v.forEach,w=Array.isArray,k=v.slice,S=m.hasOwnProperty,b={},T=[],A=null,E={each:function(t,e,i){if(null!=t)if(y&&t.forEach===y)t.forEach(e,i);
else if(t.length===+t.length){for(var n=0,r=t.length;
n<r;
n++)if(n in t&&e.call(i,t[n],n,t)===b)return}else for(var o in t)if(S.call(t,o)&&e.call(i,t[o],o,t)===b)return},extend:function(t){return E.each(k.call(arguments,1),(function(e){for(var i in e)void 0!==e[i]&&(t[i]=e[i])})),t},isUndefined:function(t){return void 0===t},type:function(t){return _.call(t)},isString:function(t){return"[object String]"==_.call(t)},isArray:w||function(t){return"[object Array]"===_.call(t)},isFunction:function(t){return"[object Function]"===_.call(t)},isObject:function(t){return"[object Object]"===_.call(t)&&void 0!==t},hasMobileSdk:function(){var t=function(){return!!(window.zhugeTracker||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.zhugeTracker)},e=/ZGSDK/.test(window.navigator.userAgent)||t(),i=t(),n=this;
return i||A||(A=setInterval((function(){if(t()){for(var e=0;
e<T.length;
e++){var i=T[e],r=n.hasMobileSdk();
r[i[0]].apply(r,i[1])}T=[],clearInterval(A)}}),50)),{flag:e,track:function(t,n){e&&(i?window.zhugeTracker?window.zhugeTracker.trackProperty(t,E.JSONEncode(n)):window.webkit.messageHandlers.zhugeTracker.postMessage({type:"track",name:t,prop:n}):T.push(["track",[t,n]]))},identify:function(t,n){e&&(i?window.zhugeTracker?window.zhugeTracker.identifyProperty(t,E.JSONEncode(n)):window.webkit.messageHandlers.zhugeTracker.postMessage({type:"identify",name:t,prop:n}):T.push(["identify",[t,n]]))},autoTrack:function(t,n){e&&(i?window.zhugeTracker?window.zhugeTracker.autoTrackProperty(t,E.JSONEncode(n)):window.webkit.messageHandlers.zhugeTracker.postMessage({type:"autoTrack",name:t,prop:n}):T.push(["autoTrack",[t,n]]))},getDid:function(){if(e&&window.zhugeTracker){if(E.isString(window.zhugeTracker.did))return window.zhugeTracker.did;
if(E.isFunction(window.zhugeTracker.getDid))return window.zhugeTracker.getDid();
if(E.isString(window.zhugeDid))return window.zhugeDid}}}},includes:function(t,e){return-1!==t.indexOf(e)},encode:function(t,e){var i={};
for(var n in t)e&&/^\$/.test(n)?i[n]=t[n]:i["_"+n]=t[n];
return i},truncate:function(t,e){var i;
return"string"==typeof t?i=t.slice(0,e):E.isArray(t)?(i=[],E.each(t,(function(t){i.push(E.truncate(t,e))}))):E.isObject(t)?(i={},E.each(t,(function(t,n){i[n]=E.truncate(t,e)}))):i=t,i},strip_empty_properties:function(t){var e={};
return E.each(t,(function(t,i){E.isString(t)&&t.length>0&&(e[i]=t)})),e},trim:function(t){return(t||"").replace(/\s+/g," ").replace(/^\s+/,"").replace(/\s+$/,"")},random:function(t,e){return Math.round(Math.random()*(e-t))+t},jsonp:function(t,e,i){var n="cb"+Math.random().toString().split(".")[1],r=h.createElement("script");
r.src=t+"?callback="+n,window[n]=function(t){e(t)},r.onerror=function(){i()},h.head?h.head.appendChild(r):h.getElementsByTagName("head")[0].appendChild(r)},isEqual:function(t,e){if(this.type(t)!==this.type(e))return!1;
if(this.isObject(t)){var i=!0;
for(var n in t)t[n]!==e[n]&&(i=!1);
return i}return this.JSONEncode(t)===this.JSONEncode(e)},JSONEncode:function(t){var e=function(t){var e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
return e.lastIndex=0,e.test(t)?'"'+t.replace(e,(function(t){var e=i[t];
return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'},i=function(t,n){var r="",o=0,a="",s="",c=0,u=r,d=[],l=n[t];
switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),typeof l){case"string":return e(l);
case"number":return isFinite(l)?String(l):"null";
case"boolean":case"null":return String(l);
case"object":if(!l)return"null";
if(r+="    ",d=[],"[object Array]"===_.apply(l)){for(c=l.length,o=0;
o<c;
o+=1)d[o]=i(o,l)||"null";
return s=0===d.length?"[]":r?"[\n"+r+d.join(",\n"+r)+"\n"+u+"]":"["+d.join(",")+"]",r=u,s}for(a in l)S.call(l,a)&&(s=i(a,l))&&d.push(e(a)+(r?": ":":")+s);
return s=0===d.length?"{}":r?"{"+d.join(",")+u+"}":"{"+d.join(",")+"}",r=u,s}};
return i("",{"":t})},JSONDecode:(s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(t){throw{name:"SyntaxError",message:t,at:n,text:o}},u=function(t){return t&&t!==r&&c("Expected '"+t+"' instead of '"+r+"'"),r=o.charAt(n),n+=1,r},d=function(){var t,e="";
for("-"===r&&(e="-",u("-"));
r>="0"&&r<="9";
)e+=r,u();
if("."===r)for(e+=".";
u()&&r>="0"&&r<="9";
)e+=r;
if("e"===r||"E"===r)for(e+=r,u(),"-"!==r&&"+"!==r||(e+=r,u());
r>="0"&&r<="9";
)e+=r,u();
if(t=+e,isFinite(t))return t;
c("Bad number")},l=function(){var t,e,i,n="";
if('"'===r)for(;
u();
){if('"'===r)return u(),n;
if("\\"===r)if(u(),"u"===r){for(i=0,e=0;
e<4&&(t=parseInt(u(),16),isFinite(t));
e+=1)i=16*i+t;
n+=String.fromCharCode(i)}else{if("string"!=typeof s[r])break;
n+=s[r]}else n+=r}c("Bad string")},p=function(){for(;
r&&r<=" ";
)u()},a=function(){switch(p(),r){case"{":return function(){var t,e={};
if("{"===r){if(u("{"),p(),"}"===r)return u("}"),e;
for(;
r;
){if(t=l(),p(),u(":"),Object.hasOwnProperty.call(e,t)&&c('Duplicate key "'+t+'"'),e[t]=a(),p(),"}"===r)return u("}"),e;
u(","),p()}}c("Bad object")}();
case"[":return function(){var t=[];
if("["===r){if(u("["),p(),"]"===r)return u("]"),t;
for(;
r;
){if(t.push(a()),p(),"]"===r)return u("]"),t;
u(","),p()}}c("Bad array")}();
case'"':return l();
case"-":return d();
default:return r>="0"&&r<="9"?d():function(){switch(r){case"t":return u("t"),u("r"),u("u"),u("e"),!0;
case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;
case"n":return u("n"),u("u"),u("l"),u("l"),null}c("Unexpected '"+r+"'")}()}},function(t){var e;
return o=t,n=0,r=" ",e=a(),p(),r&&c("Syntax error"),e}),HTTPBuildQuery:function(t,e){var i,n,r=[];
return void 0===e&&(e="&"),E.each(t,(function(t,e){i=encodeURIComponent(t.toString()),n=encodeURIComponent(e),r[r.length]=n+"="+i})),r.join(e)},getQueryParam:function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var i=new RegExp("[\\?&#]"+e+"=([^&#]*)").exec(t);
if(null===i||i&&"string"!=typeof i[1]&&i[1].length)return"";
var n=i[1];
try{n=decodeURIComponent(decodeURIComponent(n)).replace(/\+/g," ")}catch(t){}return n},getDomain:function(t){var e=t.match(/\/\/\S*?\//);
return e&&e.length?e[0].replace(/\//g,""):""},register_event:function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,i,n,r){if(e)if(e.addEventListener&&!r)e.addEventListener(i,n,!1);
else{var o="on"+i,a=e[o];
e[o]=function(e,i,n){return function(r){if(r=r||t(window.event)){var o,a,s=!0;
return E.isFunction(n)&&(o=n(r)),a=i.call(e,r),!1!==o&&!1!==a||(s=!1),s}}}(e,n,a)}else console&&console.error("No valid element provided to register_event")}}(),cookie:{get:function(t){for(var e=t+"=",i=h.cookie.split(";
"),n=0;
n<i.length;
n++){for(var r=i[n];
" "==r.charAt(0);
)r=r.substring(1,r.length);
if(0==r.indexOf(e))return decodeURIComponent(r.substring(e.length,r.length))}return null},parse:function(t){var e;
try{e=E.JSONDecode(E.cookie.get(t))||{}}catch(t){}return e},set:function(t,e,i,n,r){var o="",a="",s="";
if(n){var c=h.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i),u=c?c[0]:"";
o=u?";
 domain=."+u:""}if(i){var d=new Date;
d.setTime(d.getTime()+24*i*60*60*1e3),a=";
 expires="+d.toGMTString()}r&&(s=";
 secure"),h.cookie=t+"="+encodeURIComponent(e)+a+";
 path=/"+o+s},remove:function(t){var e=h.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i),i=e?e[0]:"";
E.cookie.set(t,"",-1,"."+i)}},info:{campaignParams:function(t){t||(t="{}"),E.isString(t)&&(t=E.JSONDecode(t));
var e="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),i="",n={};
return E.each(e,(function(e){((i=E.getQueryParam(h.URL,e)).length||t[e])&&(n["$"+e]=t[e]||i)})),n},searchEngine:function(t){return 0===t.search("https?://(.*)google.([^/?]*)")?"google":0===t.search("https?://(.*)baidu.com")?"baidu":0===t.search("https?://(.*)sogou.com")?"sogou":0===t.search("https?://(.*)haosou.com")?"haosou":null},searchKeyword:function(t){var e=E.info.searchEngine(t);
return"google"==e?E.getQueryParam(t,"q"):"baidu"==e?E.getQueryParam(t,"wd"):"sogou"==e?E.getQueryParam(t,"query"):"haosou"==e?E.getQueryParam(t,"q"):null},referringDomain:function(t){var e=t.split("/");
return e.length>=3?e[2]:""},browser:function(t,e,i){e=e||"";
return i?E.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":E.includes(t,"FBIOS")?"Facebook Mobile":E.includes(t,"Chrome")?"Chrome":E.includes(t,"CriOS")?"Chrome iOS":E.includes(e,"Apple")?E.includes(t,"Mobile")?"Mobile Safari":"Safari":E.includes(t,"Android")?"Android Mobile":E.includes(t,"Konqueror")?"Konqueror":E.includes(t,"Firefox")?"Firefox":E.includes(t,"MSIE")||E.includes(t,"Trident/")?"Internet Explorer":E.includes(t,"Gecko")?"Mozilla":""},os:function(){var t=g;
return/Windows/i.test(t)?/Phone/.test(t)?"Windows Mobile":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":""},device:function(t){return/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Windows Phone/i.test(t)?"Windows Phone":/Android/.test(t)?"Android":""},resolution:function(){return screen.width+"*"+screen.height}},UUID:(i=function(){for(var t=1*new Date,e=0;
t==1*new Date;
)e++;
return t.toString(16)+e.toString(16)},function(){var t=(screen.height*screen.width).toString(16);
return i()+"-"+Math.random().toString(16).replace(".","")+"-"+function(t){var e,i,n=g,r=[],o=0;
function a(t,e){var i,n=0;
for(i=0;
i<e.length;
i++)n|=r[i]<<8*i;
return t^n}for(e=0;
e<n.length;
e++)i=n.charCodeAt(e),r.unshift(255&i),r.length>=4&&(o=a(o,r),r=[]);
return r.length>0&&(o=a(o,r)),o.toString(16)}()+"-"+t+"-"+i()})};
t.exports=E},function(t,e,i){var n=i(6),r=i(0);
t.exports=r.extend({getRect:function(t,e){var i=t.getBoundingClientRect(),n=this.css(t,"position");
return{position:"fixed"===n?"fixed":"absolute",width:t.offsetWidth,height:t.offsetHeight,top:i.top+("fixed"===n||e?0:window.pageYOffset),bottom:i.bottom,left:i.left+("fixed"===n||e?0:window.pageXOffset),right:i.right}},getOffset:function(t){for(var e={position:"fixed"===this.css(t,"position")?"fixed":"absolute",width:t.offsetWidth,height:t.offsetHeight,top:t.offsetTop,left:t.offsetLeft};
t.offsetParent;
){var i=t.offsetParent;
"fixed"===this.css(i,"position")&&(e.position="fixed"),e.top+=i.offsetTop,e.left+=i.offsetLeft,t=i}return e},css:function(t,e){if(r.isString(e))return window.getComputedStyle(t)[e];
for(var i in e)t.style[i]=e[i]},addStyleRules:function(t){var e,i=document.createElement("style");
document.head?document.head.appendChild(i):document.getElementsByTagName("head")[0].appendChild(i),e=i.sheet;
for(var n=0,r=t.length;
n<r;
n++){var o=1,a=t[n],s=t[n][0],c="";
"[object Array]"===Object.prototype.toString.call(a[1][0])&&(a=a[1],o=0);
for(var u=a.length;
o<u;
o++){var d=a[o];
c+=d[0]+":"+d[1]+(d[2]?" !important":"")+";
\n"}e.insertRule(s+"{"+c+"}",e.cssRules.length)}},append:function(t,e){r.isString(e)?t.insertAdjacentHTML("beforeend",e):t.appendChild(e)},html:function(t,e){t.innerHTML=e},remove:function(t){t.parentNode&&t.parentNode.removeChild(t)},contains:function(t,e){for(var i=!1;
this.getParent(e)&&"body"!==n.getTagName(e);
){if(this.getParent(e)===t){i=!0;
break}e=this.getParent(e)}return i},show:function(t,e){return r.isArray(t)?t.forEach((function(t){this.css(t,{display:e||"block"})}),this):this.css(t,{display:e||"block"}),t},hide:function(t){return r.isArray(t)?t.forEach((function(t){this.css(t,{display:"none"})}),this):this.css(t,{display:"none"}),t},child:function(t){for(var e=[],i=0,n=t.childNodes.length;
i<n;
i++)this.isTextNode(t.childNodes[i])||e.push(t.childNodes[i]);
return e},siblings:function(t,e){var i=[];
return this.child(this.getParent(t)).forEach((function(n){n!==t&&this.is(n,e)&&i.push(n)}),this),i},setContext:function(t,e){t.textContent=e},delegate:function(t,e,i,n,r){var o=this;
return this.bind(t,e,(function(t){var e=t.target,a=o.is(e,i);
if(a.flag)return n.call(r,t,a.target)}),r)},scroll:function(t){n.bind(t,"mousewheel",(function(e){var i=this.getRect(t).height,n=t.scrollHeight;
(t.scrollTop===n-i&&e.deltaY>0||0===t.scrollTop&&e.deltaY<0)&&e.preventDefault()}),this)},prev:function(t){var e=t.previousSibling;
return!e||this.isTextNode(t)?null:e},prevAll:function(t){for(var e=[];
this.prev(t);
)e.push(this.prev(t)),t=this.prev(t);
return e},fixPosition:function(t){var e=this.css(t,"position");
/absolute|fixed/.test(e)||this.css(t,{position:"relative"})},locate:function(t,e){var i=this.getRect(t,!0),n=this.getRect(e),r={top:i.top,left:i.left+i.width};
r.top+n.height>=window.innerHeight&&(r.top=Math.max(r.top-(r.top+n.height-window.innerHeight),0)),r.left+n.width>=window.innerWidth&&(r.left=Math.max(i.left-n.width,0)),this.css(e,{top:r.top+"px",left:r.left+"px"})},removeData:function(t,e){delete(t.dataset||{})[e]},empty:function(t){return t.innerHTML="",t},scrollTo:function(t){var e=this.getRect(this.body),i=this.getRect(t),n=i.top-e.height/2,r=i.left-e.width/2;
this.body.scrollTop=n,this.body.scrollLeft=r}},n)},,,,function(t,e,i){var n=i(0),r=4;
function o(){return window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}function a(t,e){var i=t.responseText;
switch(e){case"json":i=n.JSONDecode(i);
break;
default:console&&console.error(arguments,this)}return i}function s(t){var e=[];
for(var i in t){var r=t[i];
e.push(encodeURIComponent(i)+"="+encodeURIComponent(n.isString(r)?r:n.JSONEncode(r)))}return e.join("&")}t.exports=function(t,e){var i=n.extend({type:"post",data:{},headers:{},dataType:"json",success:null,error:null,sync:!0,context:this,jsonp:!1},e);
try{i.jsonp?function(t,e){var i=function(t,i){n.isFunction(e[t])&&e[t].call(e.context,i)},r=document.createElement("script"),o="callback"+Math.random().toString().split(".")[1],a=t+"?";
e.data.callback=o,window[o]=function(t){i("success",t)},r.src=a+s(e.data),r.onerror=function(){i("error")},document.body.appendChild(r)}(t,i):function(t,e){var i=o(),c=function(t){n.isFunction(e[t])&&e[t].call(e.context,a(i,e.dataType))};
switch(i.onreadystatechange=function(){if(i.readyState===r)if(i.status>=200&&i.status<=299)try{c("success")}catch(t){c("error")}else c("error")},i.onerror=function(){c("error"),console&&console.error(arguments,this)},i.withCredentials=!0,e.type.toLowerCase()){case"get":t+="?"+s(e.data),i.open(e.type,t,e.sync);
break;
case"post":var u=s(e.data);
i.open(e.type,t,e.sync),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
break;
default:console&&console.error(arguments,this)}for(var d in e.headers)i.setRequestHeader(d,e.headers[d]);
i.send(u)}(t,i)}catch(t){}}},function(t,e,i){var n=i(0),r=!0;
!function(){try{document.querySelector(":scope *")}catch(t){r=!1}}();
var o={prefix:{expand:"zhuge-auto-track-",interface:"zhuge-interface-"},body:document.getElementsByTagName("body")[0],ready:function(t,e){if(this.body)t.call(e);
else var i=this,n=setInterval((function(){window.document.body&&(i.body=window.document.body,clearInterval(n),t.call(e))}),50)},addClass:function(t,e){var i=this.getAttr(t,"class")||"";
new RegExp(e).test(i)||(i+=" "+e,o.setAttr(t,"class",n.trim(i)))},removeClass:function(t,e){var i=this.getAttr(t,"class")||"";
o.setAttr(t,"class",n.trim(i.replace(e,"")))},bind:function(t,e,i,r){r=r||t;
var o=function(e){if((e.target=e.target||e.srcElement,n.isFunction(i))&&!1===i.call(r,e||window.event,t))return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.returnValue&&(e.returnValue=!1),e.cancelBubble&&(e.cancelBubble=!0),!1};
if(t.addEventListener)t.addEventListener(e,o,!0);
else if(t.attachEvent)t.attachEvent("on"+e,o);
else{var a="on"+e,s=t[a];
t[a]=function(e){return n.isFunction(s)&&s.call(t,e||window.event),i.call(r,e||window.event,t)}}return{unbind:function(){t.removeEventListener?t.removeEventListener(e,o,!0):t.detachEvent&&t.detachEvent("on"+e,o)}}},data:function(t,e){var i=t.dataset||{};
if(n.isString(e))return i[e];
for(var r in e)i[r]=e[r]},getStylePropertyValue:function(t,e){return t&&e?window.getComputedStyle?window.getComputedStyle(t).getPropertyValue(e):t.currentStyle?t.currentStyle[e]:"":""},getTagName:function(t){return t&&t.tagName&&t.tagName.toLowerCase?t.tagName.toLowerCase():""},getAttr:function(t,e){return t&&t.getAttribute?t.getAttribute(e):""},setAttr:function(t,e,i){if(n.isObject(e))for(var r in e)t.setAttribute(r,e[r]);
else t.setAttribute(e,i)},isValidLink:function(t){return"a"===this.getTagName(t)&&this.getAttr(t,"href")&&!/^javascript:/.test(this.getAttr(t,"href"))},is:function(t,e){for(var i=!1,n=this.query(e),r=t;
r&&!i&&"body"!==this.getTagName(r);
){for(var o=0,a=n.length;
o<a;
o++){if(n[o]===r){i=!0;
break}}i||(r=this.getParent(r))}return{flag:i,target:r}},isClickAble:function(t,e,i){if(!t||this.isTextNode(t))return{flag:!1};
var r=this.getTagName(t),o=this.getAttr(t,"type"),a=this.isValidLink(t),s={flag:!1,target:t,isValidLink:a,form:null};
switch(r){case"a":if(a){s.flag=!0;
break}case"button":t.disabled||(s.flag=!0);
break;
case"input":/button|reset|submit/.test(o)&&!t.disabled&&(s.flag=!0,"submit"===o&&(s.form=t.form));
break;
case"body":s.flag=!1;
break;
default:if(this.hasBindClick(t)||n.isFunction(e)&&e(t))s.flag=!0;
else if(!i)return this.isClickAble(this.getParent(t))}return s},hasBindClick:function(t){return!!(t.onclick||window.jQuery&&(window.jQuery._data||window.jQuery.data)&&n.isFunction(window.jQuery._data||window.jQuery.data)&&(window.jQuery._data||window.jQuery.data)(t,"events"))},getParent:function(t){return t.parentNode},getIndexInParent:function(t){for(var e=this.getParent(t),i=this.getSelector(t),n=o.query(e,i),r=0,a=n.length;
r<a;
r++){if(n[r]===t)return r}return 0},getSelector:function(t){for(var e=this.getAttr(t,"id"),i=this.getTagName(t),r=n.trim(this.getAttr(t,"class")).split(/\s/),o=[],a=0,s=r.length;
a<s;
a++)new RegExp(this.prefix.interface+"|"+this.prefix.expand).test(r[a])||o.push(r[a]);
return o=o.join("."),e?"#"+e:i+(o=o?"."+o:"")},getUniqueSelector:function(t,e){var i=this.getSelector(t);
return/#/.test(i)||"body"===this.getTagName(t)?(e&&(i=i+">"+e),i):this.getParent(t)?(i+=":eq("+this.getIndexInParent(t)+")",e&&(i=i+">"+e),this.getUniqueSelector(this.getParent(t),i)):""},getTextContent:function(t){return t&&(t.textContent||t.innerText||this.getAttr(t,"type")||t.value)||""},query:function(){var t="",e=window.document,i=/:eq\(\d+\)/g;
if(n.isString(arguments[0])?t=arguments[0]:(e=arguments[0]||e,t=arguments[1]),this.isTextNode(e))return[];
if(i.test(t)){for(var o=t.split(i),a=t.match(i),s=null,c=0,u=o.length;
c<u;
c++){var d=o[c].replace(/^>/,":scope>");
if(!d)break;
if(s=this.query(s||e,d),!(a.length>c))return s;
var l=a[c].match(/\d+/)[0];
if(!(s&&l<s.length))return[];
s=s[l]}return[s]}if(n.isString(t)){var p=t.match(/^[a-z|>|:]*[#.]\d/);
if(p&&p.length){var f=(p[0]||"").length-1;
t=t.slice(0,f)+"\\00003"+t.slice(f)}}var h=/:scope(?![\w-])/gi,g=null;
if(!r&&e.setAttribute&&t&&h.test(t)){var v="q"+Math.floor(1e6*Math.random());
return t=t.replace(h,"["+v+"]"),e.setAttribute(v,""),g=e.querySelectorAll(t),e.removeAttribute(v),g}return e.querySelectorAll(t)},isTextNode:function(t){return"#text"===t.nodeName},loadJs:function(t){t=n.extend({async:!0,src:"",onLoad:null,onError:null,context:null},t||{});
var e=document.createElement("script");
this.setAttr(e,{async:t.async,src:t.src}),this.bind(e,"load",t.onLoad,t.context),this.bind(e,"error",t.onError,t.context),document.body.appendChild(e)}};
t.exports=o},function(t,e){t.exports={MODE:{NORMAL:0,CREATE:1,CREATING_EVENT:2,ADD_SAME:3,ADDING_SAME_AUTO:4,ADDING_SAME_CUSTOM:5,ADD_PROPERTY:6,ADDING_PROPERTY:7},SESSION_KEYS:{IS_ANALYSIS_MODE:"isZhugeVisualizerMode",PARAMS:"jsVisualizerParam"},URL:{DATA_LIST:"https://adata.isolarcloud.com/data/datalist.jsp",DELETE_EVENT:"https://adata.isolarcloud.com/appvisual/delete.jsp",CREATE_EVENT:"https://adata.isolarcloud.com/appvisual/create.jsp",UPDATE_EVENT:"https://adata.isolarcloud.com/appvisual/update.jsp",CHECK_NAME:"https://adata.isolarcloud.com/appvisual/checkName.jsp",QUERY_VISUAL_LIST:"https://adata.isolarcloud.com/appvisual/queryVisualList.jsp"}}},function(t,e){function i(t,e){var i=(65535&t)+(65535&e);
return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function n(t,e,n,r,o,a){return i((s=i(i(e,t),i(r,a)))<<(c=o)|s>>>32-c,n);
var s,c}function r(t,e,i,r,o,a,s){return n(e&i|~e&r,t,e,o,a,s)}function o(t,e,i,r,o,a,s){return n(e&r|i&~r,t,e,o,a,s)}function a(t,e,i,r,o,a,s){return n(e^i^r,t,e,o,a,s)}function s(t,e,i,r,o,a,s){return n(i^(e|~r),t,e,o,a,s)}function c(t,e){var n,c,u,d,l;
t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;
var p=1732584193,f=-271733879,h=-1732584194,g=271733878;
for(n=0;
n<t.length;
n+=16)c=p,u=f,d=h,l=g,p=r(p,f,h,g,t[n],7,-680876936),g=r(g,p,f,h,t[n+1],12,-389564586),h=r(h,g,p,f,t[n+2],17,606105819),f=r(f,h,g,p,t[n+3],22,-1044525330),p=r(p,f,h,g,t[n+4],7,-176418897),g=r(g,p,f,h,t[n+5],12,1200080426),h=r(h,g,p,f,t[n+6],17,-1473231341),f=r(f,h,g,p,t[n+7],22,-45705983),p=r(p,f,h,g,t[n+8],7,1770035416),g=r(g,p,f,h,t[n+9],12,-1958414417),h=r(h,g,p,f,t[n+10],17,-42063),f=r(f,h,g,p,t[n+11],22,-1990404162),p=r(p,f,h,g,t[n+12],7,1804603682),g=r(g,p,f,h,t[n+13],12,-40341101),h=r(h,g,p,f,t[n+14],17,-1502002290),p=o(p,f=r(f,h,g,p,t[n+15],22,1236535329),h,g,t[n+1],5,-165796510),g=o(g,p,f,h,t[n+6],9,-1069501632),h=o(h,g,p,f,t[n+11],14,643717713),f=o(f,h,g,p,t[n],20,-373897302),p=o(p,f,h,g,t[n+5],5,-701558691),g=o(g,p,f,h,t[n+10],9,38016083),h=o(h,g,p,f,t[n+15],14,-660478335),f=o(f,h,g,p,t[n+4],20,-405537848),p=o(p,f,h,g,t[n+9],5,568446438),g=o(g,p,f,h,t[n+14],9,-1019803690),h=o(h,g,p,f,t[n+3],14,-187363961),f=o(f,h,g,p,t[n+8],20,1163531501),p=o(p,f,h,g,t[n+13],5,-1444681467),g=o(g,p,f,h,t[n+2],9,-51403784),h=o(h,g,p,f,t[n+7],14,1735328473),p=a(p,f=o(f,h,g,p,t[n+12],20,-1926607734),h,g,t[n+5],4,-378558),g=a(g,p,f,h,t[n+8],11,-2022574463),h=a(h,g,p,f,t[n+11],16,1839030562),f=a(f,h,g,p,t[n+14],23,-35309556),p=a(p,f,h,g,t[n+1],4,-1530992060),g=a(g,p,f,h,t[n+4],11,1272893353),h=a(h,g,p,f,t[n+7],16,-155497632),f=a(f,h,g,p,t[n+10],23,-1094730640),p=a(p,f,h,g,t[n+13],4,681279174),g=a(g,p,f,h,t[n],11,-358537222),h=a(h,g,p,f,t[n+3],16,-722521979),f=a(f,h,g,p,t[n+6],23,76029189),p=a(p,f,h,g,t[n+9],4,-640364487),g=a(g,p,f,h,t[n+12],11,-421815835),h=a(h,g,p,f,t[n+15],16,530742520),p=s(p,f=a(f,h,g,p,t[n+2],23,-995338651),h,g,t[n],6,-198630844),g=s(g,p,f,h,t[n+7],10,1126891415),h=s(h,g,p,f,t[n+14],15,-1416354905),f=s(f,h,g,p,t[n+5],21,-57434055),p=s(p,f,h,g,t[n+12],6,1700485571),g=s(g,p,f,h,t[n+3],10,-1894986606),h=s(h,g,p,f,t[n+10],15,-1051523),f=s(f,h,g,p,t[n+1],21,-2054922799),p=s(p,f,h,g,t[n+8],6,1873313359),g=s(g,p,f,h,t[n+15],10,-30611744),h=s(h,g,p,f,t[n+6],15,-1560198380),f=s(f,h,g,p,t[n+13],21,1309151649),p=s(p,f,h,g,t[n+4],6,-145523070),g=s(g,p,f,h,t[n+11],10,-1120210379),h=s(h,g,p,f,t[n+2],15,718787259),f=s(f,h,g,p,t[n+9],21,-343485551),p=i(p,c),f=i(f,u),h=i(h,d),g=i(g,l);
return[p,f,h,g]}function u(t){var e,i="",n=32*t.length;
for(e=0;
e<n;
e+=8)i+=String.fromCharCode(t[e>>5]>>>e%32&255);
return i}function d(t){var e,i=[];
for(i[(t.length>>2)-1]=void 0,e=0;
e<i.length;
e+=1)i[e]=0;
var n=8*t.length;
for(e=0;
e<n;
e+=8)i[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;
return i}function l(t){var e,i,n="";
for(i=0;
i<t.length;
i+=1)e=t.charCodeAt(i),n+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);
return n}function p(t){return unescape(encodeURIComponent(t))}function f(t){return function(t){return u(c(d(t),8*t.length))}(p(t))}function h(t,e){return function(t,e){var i,n,r=d(t),o=[],a=[];
for(o[15]=a[15]=void 0,r.length>16&&(r=c(r,8*t.length)),i=0;
i<16;
i+=1)o[i]=909522486^r[i],a[i]=1549556828^r[i];
return n=c(o.concat(d(e)),512+8*e.length),u(c(a.concat(n),640))}(p(t),p(e))}t.exports=function(t,e,i){return e?i?h(e,t):l(h(e,t)):i?f(t):l(f(t))}},function(t,e){t.exports.url={CHECK_LOGIN:"https://adata.isolarcloud.com/user/checkAuthorization.jsp",EVENT_LIST:"https://adata.isolarcloud.com/data/datalist.jsp",LOAD_ENV_DATA:"https://adata.isolarcloud.com/appusergroup/getEventEnvData.jsp",LOAD_USER_PROPS:"https://adata.isolarcloud.com/appusergroup/getUserPropMeta.jsp"}},,,,,function(t,e){t.exports={SESSION_KEYS:{PARAMS:"zhugeJsHeatMapParams"},URL:{DATA_LIST:"https://adata.isolarcloud.com/data/datalist.jsp"}}},,,,,,,,,,,,,function(t,e,i){var n=i(28),r=i(6);
DEFAULT_CONFIG={api_host:"https://adata.isolarcloud.com/web_event/web.gif?method=web_event_srv.upload",api_host_bac:"https://adata.isolarcloud.com/web_event/web.gif?method=web_event_srv.upload",debug:!1,inherit_user_data:!0,ping:!1,ping_interval:12e3,idle_timeout:3e5,idle_threshold:1e4,track_link_timeout:300,cookie_expire_days:365,did_cookie_expire_days:365,cookie_cross_subdomain:!0,cookie_secure:!1,info_upload_interval_days:7,session_interval_mins:30,app_channel:"js",app_version:"1.0",superProperty:"{}",platform:"{}",autoTrack:!1,openLanding:!0,isClickAble:null,redirectAfterTrack:!1,singlePage:!1,visualizer:!1,deepShare:!1,onLoadDeepShare:null,utm:{},adTrack:!1,zgsee:!1,autoUploadByApp:!0,did:"",wechart:!1,updateUtm:!1,shareToUtm:{}};
for(var o=window.zhuge||[],a=new n(DEFAULT_CONFIG),s=0;
s<o.length;
s++)if("_init"===o[s][0]){var c=o.shift(),u=c.shift();
c.push((function(){for(;
o&&o.length>0;
){var t=o.shift(),e=t.shift();
a[e]&&a[e].apply(a,t)}})),a[u]&&a[u].apply(a,c);
break}if(a.config.deepShare){var d=new Date,l=d.getFullYear().toString()+d.getMonth().toString()+d.getDate().toString();
r.loadJs({src:"https://adata.isolarcloud.com/deepshare.min.js?v="+l,onLoad:a.config.onLoadDeepShare})}a.env=Object({ZHUGE_ORIGIN:"https://adata.isolarcloud.com",WEBSITE_API_ORIGIN:"https://adata.isolarcloud.com",API_SERVER_ORIGIN:"https://adata.isolarcloud.com",LOG_API_ORIGIN:"https://adata.isolarcloud.com",LOG_API_ORIGIN_BAC:"https://adata.isolarcloud.com",ANALYSIS_CODE_SRC:"https://adata.isolarcloud.com/analysis.min.js",VISUALIZER_CODE_SRC:"https://adata.isolarcloud.com/visualizer.min.js",HEATMAP_CODE_SRC:"https://adata.isolarcloud.com/heatMap.min.js",DEEPSHARE_CODE_SRC:"https://adata.isolarcloud.com/deepshare.min.js",ZGSEE_SDK_SRC:"https://static.clevertools.cn/zgsee.min.js",ZGSEE_SOCKET:"ws://54.222.232.87:3000",ZGSEE_APPKEY:"http://54.222.232.87"}),window.zhuge=a},function(t,e,i){var n=i(0),r=i(5),o=i(29),a=i(30),s=i(31),c=i(6),u=i(32),d=[],l=["identify","track","page"],p=null,f=["eid","ct","tz","cuid","cn","sid","url","os","ov","wv","mnet","referrer_domain","net","vn","wxeid","uid","share_id","share_title","title","path","share_level"],h=(i(9),i(14)),g=i(7),v=function(t){this.config={},n.extend(this.config,t),this.idle=0,this.last_activity=new Date,this.is_landing=!1,this.pageUtm=null};
v.prototype._init=function(t,e,i){if(this._key=t,this._jsc=function(){},n.isObject(e))for(var r in n.extend(this.config,e),this.config)n.isObject(this.config[r])&&(this.config[r]=n.JSONEncode(this.config[r]));
var o=this,a=function(t,e){o._getQueryParam(),o._initDid(t),o.cookie=new u("zg_"+o._key,o.config);
var i=n.cookie.get("_zg");
i&&o.config.inherit_user_data?(o.cookie.register_once(n.JSONDecode(i),""),n.cookie.remove("_zg")):o.cookie.register_once({sid:0,updated:0,info:0,superProperty:o.config.superProperty,platform:o.config.platform},""),o.cookie.register({superProperty:o.config.superProperty,platform:o.config.platform});
var r=o._session(e);
if(o.config.autoTrack&&(o.is_landing=o._checkLanding(r)),o._info(),o._startPing(),o.config.updateUtm){var a=n.info.campaignParams();
o.pageUtm=a}o.config.wechart&&(o._openShare(),o.config.autoTrack||o._trackPV()),o._initAutoTrack(),o.is_landing&&o.config.openLanding&&o._initLanding(),o._startZgSee()};
this.config.adTrack?(o._wrapTrackerFunction(),n.jsonp("https://adata.isolarcloud.com/v2/zgadtrack/header",(function(t){a(t.zg_adver_did,t.zg_adver_sid),i(),o._doTrackerQueue()}),(function(){a(),i(),o._doTrackerQueue()}))):(a(),i())},v.prototype._getQueryParam=function(){for(var t={},e=decodeURIComponent(location.search).replace("?","").split("&"),i=0;
i<e.length;
i++){var r=e[i],o=r.split("=")[0],a=r.split("=")[1];
t[o]=a}return this._queryParam=t,sessionStorage&&sessionStorage.setItem("shareData",n.JSONEncode({path:location.pathname,param:t})),t},v.prototype._checkLanding=function(t){if(this.config.autoTrack){var e=!1,i=n.getDomain(location.href)!==n.getDomain(document.referrer);
return t?i&&(e=!0,this.cookie.register({landHref:location.href})):i&&location.href===this.cookie.props.landHref&&(e=!0),e}},v.prototype._initLanding=function(){var t=this,e=0,i=function(i){t.config.autoTrack&&(p&&clearTimeout(p),p=setTimeout((function(){var i=Math.floor(window.innerHeight+(window.scrollY||window.pageYOffset));
e!==i&&(e=i,t.batchTrack([{dt:"abp",eid:"scroll",param:{$page_url:window.location.href,$page_title:window.document.title,$scroll:i}}]))}),50))};
c.ready((function(){c.bind(window,"scroll",i)}),this)},v.prototype._wrapTrackerFunction=function(){var t=this,e={},i="",r=0;
for(r=0;
r<l.length;
r++)e[i=l[r]]=v.prototype[i],v.prototype[i]=function(i){return function(){t.cookie?n.isFunction(e[i])&&e[i].apply(t,arguments):d.push([e[i],arguments])}}(i)},v.prototype._doTrackerQueue=function(){var t=0,e=null;
for(t=0;
t<d.length;
t++)e=d[t]||[],n.isFunction(e[0])&&e[0].apply(this,e[1]||[]);
d=[]},v.prototype._startZgSee=function(){var t=this;
t.config.zgsee&&r("http://54.222.232.87/appkey/"+this.getKey(),{type:"get",success:function(e){if(0===e.policy||-1===e.policy){window.zgsee=[{init:[{socketUrl:"ws://54.222.232.87:3000",appKey:t.getKey()},t]}];
var i=new Date,n=i.getFullYear().toString()+i.getMonth().toString()+i.getDate().toString();
c.loadJs({src:"https://static.clevertools.cn/zgsee.min.js?r="+n})}},error:function(t){console.error(t)}})},v.prototype._initAutoTrack=function(){var t=!0,e=new a(this,{open:this.config.visualizer,stopTrack:function(){t=!1}}),i=new o(this,{open:this.config.autoTrack,isClickAble:this.config.isClickAble,singlePage:this.config.singlePage,isLanding:this.is_landing}),n=new s(this,{open:this.config.autoTrack}),r=this,u=function(n){if(t){var o=c.isClickAble(n.target,r.config.isClickAble);
if(o.flag){var a=[];
r.config.autoTrack&&a.push(i.getEvent(o)),r.config.visualizer&&(a=e.getEvent(o).concat(a));
var s=n.target||n.srcElement||{},u=s.clickedByZgSdk,d=c.getAttr(o.target,"target");
if(r.config.redirectAfterTrack&&document.body.addEventListener&&(!d||"_self"===d))return!0===u||!a.length||(r.batchTrack(a,(function(){s.clickedByZgSdk=!0,s.click()})),!1);
a.length&&r.batchTrack(a)}}},d=function(t){var r=t.origin,o=t.data;
if("https://adata.isolarcloud.com"===r)switch(o.command){case"pageReload":window.sessionStorage.removeItem("zhugeAnalysisModeType"),o.href?location.replace(o.href):location.reload();
break;
case"authorized":var a=window.opener||window.parent;
if(a===window)return;
a.postMessage({command:"hasOpenAutoTrackAnalysis"},"https://adata.isolarcloud.com"),i._loadAnalysisCode();
break;
case"openJsVisualizer":window.opener.postMessage({command:"getQueryParam"},r);
break;
case"getQueryParam":window.sessionStorage.setItem(g.SESSION_KEYS.PARAMS,JSON.stringify(o.data)),e._loadAnalysisCode();
break;
case"openJsHeatMap":n._initQueryParam();
break;
case"getHeatMapQueryParam":window.sessionStorage.setItem(h.SESSION_KEYS.PARAMS,JSON.stringify(o.params)),n._loadAnalysisCode();
break;
default:console.warn("无法识别的message",o)}};
c.ready((function(){c.bind(c.body,"click",u),c.bind(window,"message",d)}),this)},v.prototype._session=function(t){var e=!1,i=this.cookie.props.updated,r=this.cookie.props.sid,o=1*new Date,a=new Date;
if(0==r||o>i+60*this.config.session_interval_mins*1e3){if(r>0&&i>0){var s={dt:"se",pr:{}};
s.pr.$ct=i,s.pr.$tz=6e4*-a.getTimezoneOffset(),s.pr.$dru=i-r,s.pr.$sid=r,s.pr.$cuid=this.cookie.props.cuid,this.cookie.register({zs:0,sc:0,firstScreen:a.getTime()}),this._batchTrack(s)}r=t||o,r*=1;
var c={dt:"ss",pr:{}},u=n.info.campaignParams(this.config.utm);
c.pr=n.extend(c.pr,u),this.cookie.register({utm:n.JSONEncode(u)},""),c.pr.$ct=a.getTime(),c.pr.$sid=r,c.pr.$cuid=this.cookie.props.cuid,c.pr.$cn=this.config.app_channel,c.pr.$vn=this.config.app_version,c.pr.$tz=6e4*-a.getTimezoneOffset(),c.pr.$url=location.href,c.pr.$ref=document.referrer;
var d=n.getDomain(document.referrer);
c.pr.$referrer_domain=d,this.cookie.register({referrerDomain:d},""),this._batchTrack(c),this.cookie.register({sid:r},""),e=!0}return this.cookie.register({updated:o},""),e},v.prototype._info=function(t){var e=this.cookie.props.info,i=1*new Date;
if(i>e+24*this.config.info_upload_interval_days*60*60*1e3||t){var r={dt:"pl",pr:{$rs:n.info.resolution()}},o=new Date;
r.pr.$tz=6e4*-o.getTimezoneOffset(),r.pr.$ct=o.getTime(),r.pr.$cuid=this.cookie.props.cuid,r.pr=n.extend(r.pr,n.encode(n.JSONDecode(this.cookie.props.platform))),1===this.cookie.props.zs&&(r.pr.$zs=1),this._batchTrack(r),this.cookie.register({info:i},"")}},v.prototype.debug=function(t){this.config.debug=t},v.prototype.identify=function(t,e,i){t+="";
var r=n.isObject(e)?e:{},o=n.isObject(e)?i:e;
this.cookie.register({cuid:t},""),this._session();
var a=n.hasMobileSdk();
if(this.config.autoUploadByApp&&a.flag)a.identify(t,r),n.isFunction(o)&&o();
else{var s={dt:"usr",pr:{}},c=new Date;
s.pr.$ct=c.getTime(),s.pr.$tz=6e4*-c.getTimezoneOffset(),s.pr.$cuid=t,s.pr.$sid=this.cookie.props.sid,s.pr.$url=location.href,s.pr.$ref=document.referrer,s.pr=n.extend(s.pr,n.encode(r)),this._batchTrack(s,o)}},v.prototype.identifyCross=function(t,e){var i=new Date,n={dt:"musr",pr:{$cuid:e||this.cookie.props.cuid,$cfuid:t,$tz:6e4*-i.getTimezoneOffset(),$ct:i.getTime()}};
this._batchTrack(n)},v.prototype.setUserProperties=function(t,e){this.identify(this.cookie.props.cuid,t,e)},v.prototype.page=function(t,e){this._session();
var i=document.location.href,n={et:"pg"};
n.pid=i,n.pn=void 0===t?i:t,n.tl=document.title,n.ref=document.referrer,n.sid=this.cookie.props.sid,this._batchTrack(n,e)},v.prototype.setWxProperties=function(t,e,i){if(t&&e){var r=new Date,o={dt:"um",pr:{$push_ch:"zgwx",$wx_appid:t,$wx_openid:e,$ct:r.getTime(),$tz:6e4*-r.getTimezoneOffset()}},a=this.cookie.props.cuid;
a&&(o.pr.$cuid=a),this._batchTrack(o,i)}else n.isFunction(i)&&i()},v.prototype.setUTM=function(t){t=n.info.campaignParams(t),this.cookie.register({utm:n.JSONEncode(t)},"")},v.prototype.track=function(t,e,i){var r=n.isObject(e)?e:{},o=n.isObject(e)?i:e,a=n.hasMobileSdk();
this.config.autoUploadByApp&&a.flag?(a.track(t,r),n.isFunction(o)&&o()):this.batchTrack([{dt:"evt",eid:t,param:r}],o)},v.prototype.batchTrack=function(t,e){var i=n.hasMobileSdk();
if(this.config.autoUploadByApp&&i.flag)for(var r=0,o=t.length;
r<o;
r++){var a=t[r];
i.autoTrack(a.eid,a.param),n.isFunction(e)&&e()}else{this._session();
var s=[],c=new Date,u=this.cookie.props.utm?n.JSONDecode(this.cookie.props.utm):{};
this.config.updateUtm&&this.pageUtm&&!n.isEqual(this.pageUtm,{})&&(u=this.pageUtm,this.cookie.register({utm:n.JSONEncode(u)},""));
for(r=0,o=t.length;
r<o;
r++){if((a=t[r])&&a.dt){var d={dt:a.dt,pr:{}};
for(var l in d.pr.$ct=c.getTime(),d.pr.$tz=6e4*-c.getTimezoneOffset(),d.pr.$cuid=this.cookie.props.cuid,d.pr.$sid=this.cookie.props.sid,d.pr.$url=location.href,d.pr.$ref=document.referrer,d.pr.$referrer_domain=this.cookie.props.referrerDomain,d.pr.$eid=a.eid,u)d.pr[l]=u[l];
"evt"===a.dt?d.pr=n.extend(d.pr,n.encode(a.param)):d.pr=n.extend(d.pr,a.param),d.pr=n.extend(d.pr,n.encode(n.JSONDecode(this.cookie.props.superProperty))),s.push(d)}}s.length&&this._batchTrack(s,e)}},v.prototype._moved=function(t){this.last_activity=new Date,this.idle=0},v.prototype._startPing=function(){var t=this;
n.register_event(window,"mousemove",(function(){t._moved.apply(t,arguments)})),void 0===this.pingInterval&&(this.pingInterval=window.setInterval((function(){t._ping()}),this.config.ping_interval))},v.prototype._stopPing=function(){void 0!==this.pingInterval&&(window.clearInterval(this.pingInterval),delete this.pingInterval)},v.prototype._ping=function(){if(this.config.ping&&this.idle<this.config.idle_timeout){var t={type:"ping",sdk:"web",sdkv:"2.0"};
t.ak=this._key,t.did=this.did.props.did,t.cuid=this.cookie.props.cuid,this._sendTrackRequest(t)}else this._stopPing();
var e=new Date;
return e-this.last_activity>this.config.idle_threshold&&(this.idle=e-this.last_activity),this},v.prototype.getDid=function(){return this.did.props.did},v.prototype.getSid=function(){return this.cookie.props.sid},v.prototype.setSuperProperty=function(t){n.isObject(t)&&this.cookie.register({superProperty:n.JSONEncode(t)})},v.prototype.setSuperPropertyFromURL=function(t){if(n.isArray(t)){var e=n.JSONDecode(this.cookie.props.superProperty||"{}");
n.each(t,(function(t){var i=n.getQueryParam(document.URL,t);
i.length&&(e[t]=i)})),this.cookie.register({superProperty:n.JSONEncode(e)})}},v.prototype.setPlatform=function(t){n.isObject(t)&&(this.cookie.register({platform:n.JSONEncode(t),info:0}),this._info())},v.prototype._batchTrack=function(t,e){if(!this.config.autoUploadByApp||!n.hasMobileSdk().flag){var i={},r=new Date;
i.sln="itn",i.pl="js",i.sdk="zg-js",i.sdkv="2.0",i.owner="zg",i.ut=[r.getFullYear(),r.getMonth()+1,r.getDate()].join("-")+" "+r.toTimeString().match(/\d{2}:\d{2}:\d{2}/)[0],i.tz=6e4*-r.getTimezoneOffset(),i.debug=this.config.debug?1:0,i.ak=this._key,i.usr={did:this.did.props.did};
var o=[];
n.isArray(t)?o=t:o.push(t),i.data=o,this._sendTrackRequest(i,this._prepareCallback(e,i))}},v.prototype._prepareCallback=function(t,e){if(!n.isFunction(t))return null;
return function(i){t(i,e)}},v.prototype._initDid=function(t){var e=n.cookie.get("_zg"),i="",r=n.hasMobileSdk();
r.flag&&(i=r.getDid()),t=t||this.config.did||i||n.UUID(),e&&n.JSONDecode(e).uuid&&(t=n.JSONDecode(e).uuid),n.cookie.get("zg_did")||n.cookie.remove("zg_"+this._key);
var o=n.extend({},this.config);
o.cookie_expire_days=this.config.did_cookie_expire_days,this.did=new u("zg_did",o),this.did.register_once({did:t},"")},v.prototype._sendTrackRequest=function(t,e){var i=n.truncate(t,255),r={event:n.JSONEncode(i),_:(new Date).getTime().toString()},o={bac:this.config.api_host_bac+"&"+n.HTTPBuildQuery(r),normal:this.config.api_host+"&"+n.HTTPBuildQuery(r)};
t.data.length&&"zgsee-web"===t.data[0].dt?e(t):this._sendRequest(o,e)},v.prototype._sendRequest=function(t,e){var i=new Image,n=!1,r=setTimeout((function(){!n&&e&&(e(),n=!0)}),500),o=function(){!n&&e&&(clearTimeout(r),e())};
i.onload=o,i.onerror=function(){var e=new Image;
e.onload=o,e.onerror=o,e.src=t.bac},i.src=t.normal},v.prototype.push=function(t){var e=t.shift();
this[e]&&this[e].apply(this,t)},v.prototype.getKey=function(){return this._key},v.prototype._trackPV=function(t){if(!this._trackedPv||t){var e={$page_url:window.location.href,$page_title:window.document.title};
this.is_landing&&(e.$landing_page=!0);
var i=this._getQueryParam();
if(i.zg_share_id&&i.zg_uid){e.$title=e.$page_title,e.$share_level=i.zg_share_level;
var r={};
for(var o in i)f.includes(o.replace("zg_",""))||0!==o.indexOf("zg_")||(r[o.replace("zg_","")]=i[o]);
e=n.extend(e,n.encode(r))}this.batchTrack([{dt:"abp",eid:"pv",param:e}]),this._trackedPv=!0}},v.prototype.pv=function(){this._trackPV(!0)},v.prototype._openShare=function(){var t=this._queryParam;
if(t.zg_share_id&&t.zg_uid){var e={$uid:t.zg_uid,$share_id:t.zg_share_id,$title:window.document.title||"",$path:location.pathname||"",$share_level:t.zg_share_level},i={};
for(var r in t)f.includes(r.replace("zg_",""))||0!==r.indexOf("zg_")||(i[r.replace("zg_","")]=t[r]);
var o=n.JSONDecode(this.config.shareToUtm);
if(n.isObject(o)&&!n.isEqual(o,{})){var a={};
for(var s in o)i[s]&&(a[o[s]]=i[s]);
n.isEqual(a,{})||(a.utm_campaign||(a.utm_campaign="分享打开"),this.setUTM(a))}this.batchTrack([{dt:"abp",eid:"wxsopen",param:n.extend(e,n.encode(i))}])}},v.prototype.trackShare=function(t,e,i,r){if(n.isFunction(e)){var o=this.getDid(),a=this.cookie.props.cuid,s=(new Date).getTime(),c=a||o,u=null;
if(sessionStorage){var d=sessionStorage.getItem("shareData");
d&&(u=JSON.parse(d))}var l=1;
!r&&u&&u.path===location.pathname&&parseInt(u.param.zg_share_level)&&(s=parseInt(u.param.zg_share_id),l=parseInt(u.param.zg_share_level)+1);
var p=n.extend({uid:c,share_id:s,share_level:l,shareType:i?"朋友圈":"朋友"},t),f={};
for(var h in p)f["zg_"+h]=p[h];
var g=this;
e(n.HTTPBuildQuery(f),(function(){g.batchTrack([{dt:"abp",eid:"wxshare",param:n.extend({$uid:c,$share_id:s,$share_title:t.title,$title:window.document.title||"",$path:location.pathname||"",$share_level:l,_shareType:f.zg_shareType},n.encode(t))}])}))}else console.error("param error")},v.prototype.trackRevenue=function(t){var e=n.extend({price:0,total:0,productID:null,productQuantity:0,revenueType:null},t);
e.total=function(t,e){var i=0;
try{i+=t.toString().split(".")[1].length}catch(t){}try{i+=e.toString().split(".")[1].length}catch(t){}return Number(t.toString().replace(".",""))*Number(e.toString().replace(".",""))/Math.pow(10,i)}(e.price,e.productQuantity);
var i=["productID","revenueType"],r=["price","total","productQuantity"],o={};
for(var a in e)if(-1!==i.indexOf(a)||-1!==r.indexOf(a)){var s=e[a];
r.indexOf(a)>-1&&(s=Number(s))!=s&&(s=0),o["$"+a]=s}this.batchTrack([{dt:"abp",eid:"revenue",param:o}])},t.exports=v},function(t,e,i){var n=i(0),r=i(6),o=i(8),a=i(9),s=i(5);
function c(t,e){this.tracker=t,this.config=n.extend({open:!1,isClickAble:null,singlePage:!1},e),this.loaded=!1,this.config.open&&this._init()}c.prototype={constructor:c,_init:function(){this.config.singlePage&&this._initHistoryHook(),this._onView();
var t=this;
r.ready((function(){t._initEventBind(),setTimeout((function(){t._checkPermissions()}),1e3)}),this)},_initHistoryHook:function(){var t=window.history;
if(t&&t.pushState){var e=t.pushState,i=this;
t.pushState=function(n){var r=e.apply(t,arguments);
return i._onView(),r}}if(t&&t.replaceState){var n=t.replaceState;
i=this;
t.replaceState=function(e){var r=n.apply(t,arguments);
return i._onView(),r}}},_initEventBind:function(){this.config.singlePage&&(r.bind(window,"popstate",this._onView,this),r.bind(window,"hashchange",this._onView,this))},_checkPermissions:function(){"analysis"===window.sessionStorage.getItem("zhugeAnalysisModeType")&&s(a.url.CHECK_LOGIN,{type:a.json?"get":"post",context:this,success:function(t){t.authorized&&this._loadAnalysisCode()},error:function(t){console&&console.error("加载分析脚本失败",t)}})},_loadAnalysisCode:function(){if(!this.loaded){this.loaded=!0,window.sessionStorage.setItem("zhugeAnalysisModeType","analysis");
var t="https://adata.isolarcloud.com/analysis.min.js".replace(/\"/g,"");
r.loadJs({src:t+"?a="+Math.random()})}},_onView:function(){this.tracker._trackPV()},getEvent:function(t){var e=r.getUniqueSelector(t.target);
if(e){var i=t.target,n={$page_url:window.location.href,$page_title:window.document.title,$element_id:r.getAttr(i,"id"),$element_content:r.getTextContent(i),$element_type:r.getTagName(i),$element_style:r.getAttr(i,"class"),$element_selector:o(e),$element_link:t.isValidLink?r.getAttr(i,"href"):null};
return this.config.isLanding&&(n.$landing_page=!0),{dt:"abp",eid:"click",param:n}}}},t.exports=c},function(t,e,i){var n=i(0),r=i(6),o=i(5),a=i(7);
function s(t,e){this.config=n.extend({open:!1,stopTrack:null},e||{}),this.tracker=t,this.eventList=[],this.loaded=!1,this.config.open&&this._init()}s.prototype={constructor:s,_init:function(){r.ready((function(){this._initEventBind(),this._loadEventList(),window.sessionStorage.getItem(a.SESSION_KEYS.IS_ANALYSIS_MODE)&&this._loadAnalysisCode()}),this)},_initEventBind:function(){},_loadEventList:function(){o("https://adata.isolarcloud.com/v2/visual",{type:"get",data:{url:location.href,app_key:this.tracker.getKey(),platform:3},context:this,jsonp:!0,success:function(t){10001===t.code&&(this.eventList=t.visual_events)}})},_loadAnalysisCode:function(){if(!this.loaded){this.loaded=!0,this.config.stopTrack(),window.sessionStorage.setItem(a.SESSION_KEYS.IS_ANALYSIS_MODE,JSON.stringify({flag:!0}));
var t="https://adata.isolarcloud.com/visualizer.min.js".replace(/\"/g,"");
r.loadJs({src:t+"?a="+Math.random()})}},getEvent:function(t){for(var e=[],i=0,n=this.eventList.length;
i<n;
i++)for(var o=this.eventList[i],a=0;
a<o.element.length;
a++)if(r.is(t.target,o.element[a]).flag){for(var s={element_content:r.getTextContent(t.target),element_link:t.isValidLink?r.getAttr(t.target,"href"):null},c=0;
c<o.attr.length;
c++){var u=o.attr[c];
s[u.name]=r.getTextContent(r.query(u.selector)[0])}var d={dt:"evt",eid:o.event_name,param:s};
e.push(d)}return e}},t.exports=s},function(t,e,i){var n=i(0),r=i(1);
i(14);
function o(t,e){(this.config=n.extend({open:!1},e||{}),this.tracker=t,this.loaded=!1,this.config.open)&&(this._init(),"heatMap"===(window.sessionStorage.getItem("zhugeAnalysisModeType")||"")&&this._initQueryParam())}o.prototype={constructor:o,_init:function(){r.ready((function(){this._initEventBind()}),this)},_initEventBind:function(){},_initQueryParam:function(){(window.opener||window.parent).postMessage({command:"getHeatMapQueryParam",data:{rect:r.getRect(r.body)}},"https://adata.isolarcloud.com")},_loadAnalysisCode:function(){if(!this.loaded){this.loaded=!0,window.sessionStorage.setItem("zhugeAnalysisModeType","heatMap");
var t="https://adata.isolarcloud.com/heatMap.min.js".replace(/\"/g,"");
r.loadJs({src:t+"?a="+Math.random()})}}},t.exports=o},function(t,e,i){var n=i(0),r=function(t,e){this.name=t,this.props={},this.config=n.extend({},e),this.load()};
r.prototype.load=function(){var t=n.cookie.parse(this.name);
t&&(this.props=n.extend({},t))},r.prototype.save=function(){n.cookie.set(this.name,n.JSONEncode(this.props),this.config.cookie_expire_days,this.config.cookie_cross_subdomain,this.config.cookie_secure)},r.prototype.register_once=function(t,e){return!!n.isObject(t)&&(void 0===e&&(e="None"),n.each(t,(function(t,i){this.props[i]&&this.props[i]!==e||(this.props[i]=t)}),this),this.save(),!0)},r.prototype.register=function(t){return!!n.isObject(t)&&(n.extend(this.props,t),this.save(),!0)},t.exports=r}]);
