/g,">").replace(/"/g,""").replace(/'/g,"'")},tmpl:function(t,e){var a=[],i=[];for(var o in e)a.push(o),i.push(e[o]);var n,s=r[t]||(n=["var __out__ = [];"],t.replace(/<%=([\d\D]*?)%>|<%([\d\D]*?)%>|([\d\D]+?)(?=<\%|$)/g,function(t,e,a,i){i?n.push('__out__.push(unescape("',escape(i),'"));'):e?n.push("__out__.push(",e,");"):a&&n.push(a,";")}),n.push('return __out__.join("")'),new Function(a.join(", "),n.join("")));return(r[t]=s).apply(e||{},i)},xhr:function(i){var t=new XMLHttpRequest,e=i.url,a=(i.method||"GET").toUpperCase(),o=i.data||{},n=[],s=this,r=e.split("?")[0];if(e){var l=+new Date,d=+new Date;if("GET"===a){for(var c in o)n.push(c+"="+encodeURIComponent(o[c]));e+=n.length?"?"+n.join("&"):""}t.open(a,e,!0),"POST"===a&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.withCredentials=!0,t.timeout=1e4,t.onload=function(e){d=+new Date;var a,t=e.target.responseText||"";try{a=t&&JSON.parse(t)||{},s.reportCode(r,1,a.code,d-l)}catch(t){a={code:-900,status:e.target.status},s.reportCode(r,2,a.code,d-l)}"function"==typeof i.callback&&i.callback(a)},t.onerror=function(t){d=+new Date;var e={code:-998,status:t.target.status};s.reportCode(r,2,e.code,d-l),"function"==typeof i.callback&&i.callback(e)},t.ontimeout=function(t){d=+new Date;var e={code:-999,status:t.target.status};s.reportCode(r,2,e.code,d-l),"function"==typeof i.callback&&i.callback(e)},"GET"===a?t.send():t.send(o)}},doReport:function(t){if(t.scene){this.getUrlParam("from")&&(t.params?-1==t.params.indexOf("enter")&&(t.params+=";enter="+this.getUrlParam("from")):t.params="enter="+this.getUrlParam("from")),this.getUrlParam("recommendId")&&(t.recommendId=this.getParam("recommendId")),pageIndex&&(t.params?-1==t.params.indexOf("pageid")&&(t.params+=";pageid="+pageIndex):t.params="pageid="+pageIndex);var e="";JsBridge.SCENE&JsBridge.SCENE_DOWNLOADER&&(e="env=qqdownloader"),e=JsBridge.SCENE==JsBridge.SCENE_MOBILEQ?"env=mobileq":JsBridge.SCENE==JsBridge.SCENE_WECHAT?"env=wechat":"env=webview",t.params?t.params+=";"+e:t.params=e,this.getUrlParam("from")&&(t.params+=";from="+this.getUrlParam("from")),s.channelId&&(t.params+=";channelId="+encodeURIComponent(s.channelId));var a=l.get("JsBridgeReportExtraData");a&&(t.params&&(t.params+=";"),t.params+=a),JsBridge.SCENE&JsBridge.SCENE_DOWNLOADER?t.isImmediately?JsBridge.reportImmediate(t):JsBridge.report(t):this.reportOutside(t)}},report:function(t,e,a){var i={el:t,pageId:s.PageStatId,contentId:"1_"+s.actData.id,appid:t.getAttribute("data-appid")||"",columnId:t.getAttribute("data-column-id")||"",actionId:e,statusId:a||"",extraData:t.getAttribute("data-report-ext")||"",sscene:s.statPageSourceId||"",searchId:t.getAttribute("data-recmd-id")||"",recommendId:t.getAttribute("data-recmd-id")||d.getParam("recommendId"),via:"BAYMAX."+s.actData.id,isImmediately:t.getAttribute("data-immediately")||0};if(i.pageId&&i.columnId){var o=i.columnId.split("|");2==o.length&&(o[0]=("0"+ +o[0]).slice(-2),o[1]=("00"+(+o[1]+1)).slice(-3),t.setAttribute("data-column-id",i.columnId=o.join("_"))),this.doReport({scene:i.pageId,contentId:i.contentId,sourceScene:i.sscene,appid:i.appid,slotId:i.columnId,action:i.actionId,status:i.statusId,searchId:i.searchId,params:i.extraData,recommendId:i.recommendId,via:i.via,isImmediately:i.isImmediately})}},exposureReportHandler:function(){var t,e=[],o=[];return function(){t&&clearTimeout(t),t=setTimeout(function(){t=0;var i=window.innerHeight;e.forEach(function(t){if(!(0<=o.indexOf(t))){var e=t.getBoundingClientRect(),a=(e.top+e.bottom)/2;if(0!=e.height&&0<=a&&a<=i){if(!1===this.report(t,100))return;o.push(t)}}})},100)}},refreshExposureReport:function(t){-1!=t.indexOf(".")?exposurePool=[].slice.call(document.querySelectorAll(t||".mod-card-content"),0):exposurePool=[].slice.call(document.documentElement.getElementsByClassName(t||"mod-card-content"),0),eventBinded||(window.addEventListener("scroll",exposureReportHandler,!1),eventBinded=!0),exposureReportHandler()},ping:function(){var a=0;return function(t){var e=new Image;(window[e.id="__ping"+a++]=e).onload=e.onerror=function(){window[e.id]=null,e.onload=e.onerror=null},e.src=t}},reportCode:function(t,e,a,i){var o="http://c.isdspeed.qq.com/code.cgi?domain=appicsh.qq.com&cgi="+t+"&time="+i+"&type="+e+"&code="+a+"&rate=1";this.ping()(o)},reportOutside:function(t){var e;if(e=ISDEV?"http://maweb.cs0309.3g.qq.com/"+(t.download?"AppDownloadStat":"SubjectStat"):"http://cftwebproxy.3g.qq.com/"+(t.download?"AppDownloadStat":"SubjectStat"),t.contentId||(t.contentId="1_"+s.actData.id),!t.phoneGuid){var a=localStorage.getItem("_phoneGuid");a||(a=(new Date).getTime().toString(36)+Math.random().toString(36),localStorage.setItem("_phoneGuid",a)),t.phoneGuid=a}var i=l.get("JsBridgeReportExtraData");i&&(t.params&&(t.params+=";"),t.params+=i);var o=[];for(var n in t)"appid"==n?o.push("appId="+t[n]):o.push(n+"="+t[n]);this.ping()(e+"?"+o.join("&"))},jumpOutside:function(t,e){if(t){var a=!1,i=t,o=/^(tmast:\/\/)/.test(t),n=/^(tmast:\/\/)(?!webview)\??/.test(t),s="";if(JsBridge.SCENE&JsBridge.SCENE_DOWNLOADER?o?n?a=!0:(s=decodeURIComponent(d.getUrlParam("url",t)),d.getUrlParam("gftcommontab",s)&&1==d.getUrlParam("hide")?a=!0:(a=!1,i=s)):a=!1:a=!0,a)location.href=i;else{var r={url:i,mode:0};e&&(r=this.extend(r,e,!0)),JsBridge.call("openNewWindow",r)}}},extend:function(i){function t(t,e,a){return i.apply(this,arguments)}return t.toString=function(){return i.toString()},t}(function(t,e,a){if(e instanceof Array)for(var i=0,o=e.length;i