!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var n=o();for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}("undefined"!=typeof self?self:this,function(){return function(e){function o(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,o),i.l=!0,i.exports}var n={};return o.m=e,o.c=n,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},o.p="/public/",o(o.s="+lsH")}({"+72Q":function(e,o){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var o=[],n=0;n<e.length;n++)o.push(255&e.charCodeAt(n));return o},bytesToString:function(e){for(var o=[],n=0;n<e.length;n++)o.push(String.fromCharCode(e[n]));return o.join("")}}};e.exports=n},"+lsH":function(e,o,n){"use strict";n("P1ae"),function(o,t){function i(){}var a,r=n("V0Zq"),c={SCHEME:"scheme",HFP:"hfp",UC_API:"uc_api"},s={domain:{sysHost:{test:"//sys.assistant.9game.cn/client/pullup",prod:"//sys.assistant.9game.cn/client/pullup"},nglogger:{test:"//cdn.9game.cn/static/9game/ali/ng-logger/bundle/index.umd.js",prod:"//cdn.9game.cn/static/9game/ali/ng-logger/bundle/index.umd.js"}}},u={hiddenStyle:"display:none;width:0px;height:0px;",createIfr:function(e){var o=document.querySelector(".call_up_iframe")||document.createElement("iframe");return o.className="call_up_iframe",o.src=e,o.style.cssText=this.hiddenStyle,o},createALink:function(e){var o=document.createElement("a");return o.className="call_up_a_link",o.href=e,o.style.cssText=this.hiddenStyle,o},isDocHidden:function(){return document.hidden||document.webkitHidden||document.msHidden},visibilityChangeName:function(){var e;return void 0!==document.hidden?e="visibilitychange":void 0!==document.msHidden?e="msvisibilitychange":void 0!==document.webkitHidden&&(e="webkitvisibilitychange"),e},getUrlProtocol:function(e){e=e||window.location}};i.prototype.environment="prod",i.prototype.host="http://127.0.0.1:9998",i.prototype.timeout=1e3,i.prototype.platformInfo={},i.prototype.LINK_IOS="https://itunes.apple.com/cn/app/id1266136303?mt=8",i.prototype.LINK_SHARE_PAGE="https://web.9game.cn/share",i.prototype.DEF_RECENT_ROOT="empty_pullup",i.prototype.DEF_RECENT_ROOT_KEY="pullUpFrom",i.prototype.DEF_SCHEME_URL="ninegame://web.9game.cn/share?",i.prototype.DEF_SCHEME_OPT="download",i.prototype.DEF_SCHEME_OPT_MATCH="game_detail",i.prototype.supportSchemeVersion="5.0.5.0",i.prototype.schemeTimeout=1500,i.prototype.DIRECT_WA_URL="//track.uc.cn/collect?appid=27c025181b51",i.prototype.pkgName="cn.ninegame.gamemanager",i.prototype.isFirstUc=!0,i.prototype.getURLParameters=function(e,o){var n={};return e.replace(/[?&]+([^=&]+)=([^&#]*)/gi,function(e,o,t){n[o]=decodeURIComponent(t)}),o?n[o]:n},i.prototype.loadScript=function(e,o,n){var t=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.crossorigin="anonymous",i.src=e,t.appendChild(i),i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(console.log("[load success] ==>"+e),o&&"function"==typeof o&&o.apply(this,[!1])),i.onload=i.onreadystatechange=i.onerror=null},i.onerror=function(){console.warn("[load fail] ==>"+e),n&&"function"==typeof n&&n.apply(this,[!1]),i.onload=i.onreadystatechange=i.onerror=null}},i.prototype.getQueryByKey=function(e){var o,n,t,i,a=window.location.search.substring(1).split("&"),r={};if(a[0]){for(var c in a)i=a[c].match(/=/g)&&a[c].match(/=/g).length,i>1?(t=a[c].indexOf("="),r[a[c].substring(0,t)]=a[c].substring(t+1)):(n=a[c].split("="),r[n[0]]=n[1]);o=e?r[e]:r}return o},i.prototype.isWeChat=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/MicroMessenger/i)},i.prototype.isAlipay=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/AlipayClient/i)},i.prototype.isQQ=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/\s+QQ\/|Qzone/i)},i.prototype.isAndroid=function(){var e=navigator.userAgent;return e&&e.match(/Android/i)},i.prototype.isSDKClient=function(){var e=navigator.userAgent;return e&&e.match(/ucsdk/i)},i.prototype.getSDKClientVersion=function(){var e=navigator.userAgent,o=e&&e.match(/\bucsdk\/([^\s]+)\b/i);return o&&o.length>1?o[1]:""},i.prototype.isApple=function(){var e=navigator.userAgent;return e&&e.match(/(iPad|iPhone|iPod)/i)},i.prototype.isIOS=function(){return this.isApple()},i.prototype.isNineGameClient=function(){var e=navigator.userAgent;return e&&e.match(/NineGameClient/i)},i.prototype.isUCBrowser=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/UCBrowser/i)&&"object"==typeof ucapi&&ucapi.biz&&"function"==typeof ucapi.biz.queryApp&&"function"==typeof ucapi.biz.startApp},i.prototype.isYouku=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/Youku/i)},i.prototype.isWeibo=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/WeiBo/i)},i.prototype.isChrome=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/Chrome/i)},i.prototype.isFirefox=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/Firefox/i)},i.prototype.isVivo=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/vivo/i)},i.prototype.isHuaWei=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/huawei/i)},i.prototype.isOppo=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/oppo/i)},i.prototype.isXiaoMi=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/xiaomi/i)},i.prototype.isSamSung=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/samsung/i)},i.prototype.isLenovo=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/lenovo/i)},i.prototype.isHtc=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/htc/i)},i.prototype.isHonor=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/honor/i)},i.prototype.isBaidu=function(){var e=navigator.userAgent.toLowerCase();return e&&e.match(/baidu/i)},i.prototype.isAndroidClient=function(){var e=navigator.userAgent;return e&&e.match(/NineGameClient\/android/i)},i.prototype.isIOSClient=function(){var e=navigator.userAgent;return e&&e.match(/NineGameClient\/ios/i)},i.prototype.isCStyleIOSClient=function(){var e=navigator.userAgent;return e&&e.match(/NineGameClientCS\/ios/i)},i.prototype.isSafari=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0},i.prototype.isIOSNotSupportPullVersion=function(){return navigator.userAgent&&/\sOS\s7_.*\sSafari/.test(navigator.userAgent)},i.prototype.isIOS9OrAbove=function(){return this.compareIOSVersion("9.0")},i.prototype.compareIOSVersion=function(e){var o=this.getIOSVersion();return o?this.compareVersion(o,e):-1},i.prototype.isWKWebView=function(){return!!(this.isApple()&&window.webkit&&window.webkit.messageHandlers)},i.prototype.getIOSVersion=function(){var e=navigator.userAgent&&/\sOS\s([\d_]*)\s.*Safari/.exec(navigator.userAgent);return e&&e[1]?e[1].replace("_","."):null},i.prototype.getCookie=function(e){for(var o=e+"=",n=document.cookie.split(";"),t=0;t<n.length;t++){var i=n[t].trim();if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},i.prototype.setCookie=function(e,o,n){n=n||{};var t=new Date;n.expires&&t.setTime(t.getTime()+864e5*n.expires),document.cookie=[e+"="+escape(o),n.expires?"; expires="+t.toUTCString():"",n.path?"; path="+n.path:"; path=/",n.domain?"; domain="+n.domain:"",n.secure?"; secure="+n.secure:""].join("")},i.prototype.getUuid=function(){var e=this,o=e.getCookie("uuid")||e.getCookie("tid")||e.getCookie("sid")||null;try{if(!o){var n=e.ngLogger?e.ngLogger.exportCommonParams():{},o=n.uuid||e.ngLogger?e.ngLogger.exportUuid():"null";e.setCookie("uuid",o)}}catch(e){console.warn(e)}return o},i.prototype.getRecentRoot=function(e){return e=e||this.getQueryByKey(this.DEF_RECENT_ROOT_KEY)||this.DEF_RECENT_ROOT},i.prototype.getRecentRootId=function(e){var o=this;return(e=o.getRecentRoot(e))+"_"+o.getUuid()},i.prototype.getSchemeOpt=function(e,o){return e=e&&e.length?e:o===this.DEF_SCHEME_OPT_MATCH?this.DEF_SCHEME_OPT:""},i.prototype.reCode=function(e,o){var n=Object.keys(e),t=[];return n.forEach(function(n){e[n]&&(o?t.push(o+"_"+n+"="+e[n]):t.push(n+"="+e[n]))}),t.join("&")};var l,p;i.prototype.wakeupIOS=function(e,o,n){var t,i=this;if("boolean"==typeof n&&(e.ch="KD_188"),e.ch=e.ch||"KD_188",o=o||function(){},location.href.indexOf("//web.9game.cn/share")<0){var a=this.getSchemeUrl(e);return a=a.replace(/ninegame:\/\//g,"https://"),void(location.href=a)}var r=this.getIOSVersion();if(i.report("wakeup_ios",e,{version:r,message:"wakeup ios"}),this.isIOSNotSupportPullVersion())i.report("wakeup_fail",e,{version:r,message:"Firmware NOT support"}),console.warn("The firmware doesn't support pull up, failure callback will be called."),o(!1,"unSupport");else{if(t=this.getSchemeUrl(e),i.isIOS9OrAbove())return console.warn("The firmware's greater than 9.0, so the pulling result is UNKNOWN, no callback will be called."),i.report("wakeup_succ",e,{version:r,message:"Firmware > 9.0. result UNKNOWN"}),void(window.location=t);l&&clearTimeout(l),p?p.src=t:(p=document.createElement("iframe"),p.id="pull_up_iframe",p.style.display="none",p.src=t,document.body.appendChild(p),window.addEventListener("pagehide",function(){clearTimeout(l)},!0),window.addEventListener("pageshow",function(){clearTimeout(l)},!0));var c=+new Date;l=setTimeout(function(){l=setTimeout(function(){var n=+new Date;if(n-c>600){var t="pull up success! start:"+c+" end:"+n+" duration:"+(n-c);i.report("wakeup_success",e,{version:r,message:t}),o(!0,"success",t)}else{var a="pull up failed, not install app! start:"+c+" end:"+n+" duration:"+(n-c);i.report("wakeup_fail",e,{version:r,message:a}),o(!1,"unInstall",a)}clearTimeout(l)},500)},50)}},i.prototype.wakeupCStyleIOS=function(e,o){var n,t=this,i="ninegamecs://web.9game.cn/cstyle-share?";if(e.ch=e.ch||"KD_188",o=o||function(){},location.href.indexOf("//web.9game.cn/cstyle-share")<0){var a=this.getSchemeUrl(e,void 0,void 0,i);return a=a.replace(/ninegamecs:\/\//g,"https://"),void(location.href=a)}var r=this.getIOSVersion();if(t.report("wakeup_cstyle_ios",e,{version:r,message:"wakeup ios"}),this.isIOSNotSupportPullVersion())t.report("wakeup_cstyle_fail",e,{version:r,message:"Firmware NOT support"}),console.warn("The firmware doesn't support pull up, failure callback will be called."),o(!1,"unSupport");else{if(n=this.getSchemeUrl(e,void 0,void 0,i),t.isIOS9OrAbove())return console.warn("The firmware's greater than 9.0, so the pulling result is UNKNOWN, no callback will be called."),t.report("wakeup_cstyle_succ",e,{version:r,message:"Firmware > 9.0. result UNKNOWN"}),void(window.location=n);l&&clearTimeout(l),p?p.src=n:(p=document.createElement("iframe"),p.id="pull_up_iframe",p.style.display="none",p.src=n,document.body.appendChild(p),window.addEventListener("pagehide",function(){clearTimeout(l)},!0),window.addEventListener("pageshow",function(){clearTimeout(l)},!0));var c=+new Date;l=setTimeout(function(){l=setTimeout(function(){var n=+new Date;if(n-c>600){var i="pull up success! start:"+c+" end:"+n+" duration:"+(n-c);t.report("wakeup_cstyle_success",e,{version:r,message:i}),o(!0,"success",i)}else{var a="pull up failed, not install app! start:"+c+" end:"+n+" duration:"+(n-c);t.report("wakeup_cstyle_fail",e,{version:r,message:a}),o(!1,"unInstall",a)}clearTimeout(l)},500)},50)}},i.prototype.wakeupSDK=function(e){var o=e.params||{},n=e.type||e.pageType,t=this,i={pullup_name:n,pullup_action:e.action,pullup_params:e.params||e||{},tarVer:e.tarVer||651};o.scene&&(i.scene=o.scene),e.ch&&(i.channelId=e.ch),e.silent&&(i.silent=e.silent),e.pullUpFrom&&(i.pullUpFrom=e.pullUpFrom);var a=t.getSDKClientVersion();if(t.compareVersion(a,"8.4.0")>=0)i.protocol="v3",i.pullup_params={url:e},i.schemaUrl=t.getSchemeUrl(e);else if(t.compareVersion(a,"7.3.5")>=0)i.protocol="v2",i.pullup_params={url:e};else if(i.protocol="v1",e.target){var r=decodeURIComponent(e.target),c=this.getURLParameters(r);Object.keys(c).forEach(function(e){i.pullup_params.hasOwnProperty(e)||(i.pullup_params[e]=c[e])})}var s="jumpToSdkDownLoadNineGame";prompt(JSON.stringify(i),"gap:"+JSON.stringify(["CommonService",s,1,!0])),this.report("wakeup_success",{protocol:"intent",type:n,action:s,service:"CommonService",params:o,channel:e.channel},{message:"wakeup sdk"})},i.prototype.getSchemeUrl=function(e,o,n,t){var i=["version","closeSelf","action","a1","a2","a3","actionStatus","customPopup","isIntercept","protocol","ch","code","checkTime","loading","autoPullUp","tarVer","downloadUrl"];t=t||this.DEF_SCHEME_URL;var a={};Object.keys(e).forEach(function(o){if(null!==e[o]&&"object"==typeof e[o]){var n=e[o];Object.keys(n).forEach(function(e){i.indexOf(e)<=-1&&null!==n[e]&&void 0!==n[e]&&(a[e]=n[e])})}"type"!==o||a.pageType?"action"!==o||a.opt?i.indexOf(o)<=-1&&null!==e[o]&&void 0!==e[o]&&"object"!=typeof e[o]&&(a[o]=e[o]):a.opt=e[o]:a.pageType=e[o]}),"game"===a.pageType&&(a.pageType="game_detail"),a.pullUpFrom&&a.pullUpFrom.length||(a.pullUpFrom=this.getRecentRoot()),"game_detail"!==a.pageType||a.opt||(a.opt=this.getSchemeOpt(null,"game_detail"));var r=[];Object.keys(a).forEach(function(e){if("target"!==e){var o=a[e];r.push([e,"=",encodeURIComponent(o)].join(""))}});var c=a.pullUpFrom||this.DEF_RECENT_ROOT,s=this.getRecentRootId(c);r.push(["pullUpSource","=",s].join("")),o&&r.push(["pullUpRepeatFilter","=","true"].join(""));var u=a.target;if(u){var l=/%2F|%26/.test(u)?u:encodeURIComponent(u);r.push(["target","=",l].join(""))}return t+=n?"tpe="+encodeURIComponent(r.join("&")):r.join("&")},i.prototype.wakeupInterval=function(e,o,n){window.schemeTimeout&&clearInterval(window.schemeTimeout);var t=this,i=0;o=o||80,n=n||2e3;var a=!1;t.report("wakeup_interval",e),window.schemeTimeout=setInterval(function(){!a&&i<o&&t.getVersion(function(o){if(i++,o)a=!0,t.report("wakeup_success",e,{protocol:c.SCHEME,version:o,msg:"wakeup_interval"}),t.report("wakeup_success_interval",e,{protocol:c.SCHEME,version:o}),clearInterval(window.schemeTimeout);else{var n=t.getSchemeUrl(e,!0);if(t.isFirefox()){var r=u.createIfr(n);document.body.appendChild(r)}else window.location=n}})},n)},i.prototype.showLoadingMask=function(){var e=document.getElementById("nineClientPullupLoadingMask");if(e)e.style.display="block";else{var o=document.createElement("style");o.type="text/css",o.innerHTML="@-webkit-keyframes pullupLoading {100%{background-position:-600px 0;}}",document.getElementsByTagName("head")[0].appendChild(o);var n=document.createElement("div");n.style="width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); position: fixed; bottom: 0; z-index: 999",n.id="nineClientPullupLoadingMask";n.innerHTML="<div class='load-con' style='width: 200px;text-align: center;position: absolute; left: 50%; top: 50%; margin-left: -100px; margin-top: -58px;'> <div class='load-logo' style='width: 75px; height: 75px; margin: 0 auto;background-image:url( https://image.9game.cn/s/uae/g/3b/9game/app/sdk/load-android.png); background-size:auto 75px; -webkit-animation:pullupLoading .6s steps(8) infinite 0s;'></div><div class='load-info' style='padding: 10px 0; font-size: 14px; line-height: 20px; color: #fff; text-align: center'>正在跳转，请稍候...</div></div>",document.body.appendChild(n)}},i.prototype.hideLoadingMask=function(){var e=document.getElementById("nineClientPullupLoadingMask");e&&(e.style.display="none")},i.prototype.wakeupScheme=function(e,o){var n=this,t=n.getSchemeUrl(e),i=n.getSchemeDownloadUrl(e),a=void 0!==e.loading&&e.loading,r=e.checkTime||1e3,s=Math.floor(r/200),u=0,l=null;l=0===e.checkTime?0:s||10;var p=!1,f=!1;a&&!(n.isWeChat()||n.isQQ()||n.isWeibo()||n.isAlipay())&&n.showLoadingMask();var d=document.hidden||!1;if(document.addEventListener("visibilitychange",function(){if(!1===d&&document.hidden){if(!f){var e=Date.now(),o=(e-window.NineGameClientPullUp.beginTime)/1e3;n.report("wakeup_page_hidden_time",{},{cust_code:Math.floor(o)})}f=!0}},!1),n.isUCBrowser()&&n.isFirstUc)n.wakeupUcApi(e,o);else{n.info(t,"scheme pullup"),n.report("wakeup_scheme_start",e,{protocol:c.SCHEME}),window.location=t;var g=setInterval(function(){if(p)return n.info("已经成功拉起,清除定时器","schemeTimeout"),void clearInterval(g);!p&&u<l?(u++,n.info("tryTime: "+u,"schemeTimeout"),n.getVersion(function(t){t&&(n.report("wakeup_success",e,{protocol:c.SCHEME,version:t}),clearInterval(g),p=!0,setTimeout(function(){n.hideLoadingMask()},500),o(null,!!t,"",{protocol:c.SCHEME}))})):!p&&u>=l&&(clearInterval(g),n.info("安卓端外定时查询页面可见性 hasPullupByVisibility,根据可见性判定是否拉起","schemeTimeout"),f?(n.info("判定到拉起成功,埋点并回调","schemeTimeout"),n.report("wakeup_success",e,{protocol:c.SCHEME,judge:"page_visibility"}),o(null,"","",{protocol:c.SCHEME,judge:"page_visibility"})):(n.info("判定到拉起失败,回传抛包地址==>"+i,"schemeTimeout"),n.report("wakeup_fail",e,{protocol:c.SCHEME,cust_code:200*u}),n.report("wakeup_download",e,{protocol:c.SCHEME}),o("connect fail",!1,i,{protocol:c.HFP})),setTimeout(function(){n.hideLoadingMask()},1500))},200)}},i.prototype.wakeupUcApi=function(e,o){var n=this;n.info("端内app也进入这个链路","scheme ucapi"),n.report("wakeup_uc_api_start",e,{protocol:c.UC_API}),n.info("请求 uc 接口","scheme ucapi"),ucapi.biz.queryApp({pkgs:[n.pkgName],success:function(t){n.info(t,"scheme ucapi.biz.queryApp success");var i=t[n.pkgName+""],a=i.versionName;a&&n.report("wakeup_uc_has_installed",e,{protocol:c.UC_API,version:a});var r=n.getMinVersion(e),s=a&&n.compareVersion(a,r)>=0&&n.compareVersion(a,"5.2.1.2")>=0,u=window.navigator.userAgent.match(/\bUCBrowser\/([\d.]+)\b/),l=s&&n.compareVersion(u[1],"12.0.2.0")>=0,p=null;p=l?n.getSchemeUrl(e):n.pkgName,a&&s?(n.info("ucapi.biz.startApp","scheme ucapi"),ucapi.biz.startApp({pkg:p,data:n.getSchemeUrl(e),appstoreURL:n.LINK_IOS,success:function(t){n.info(t,"scheme ucapi startApp success"),t&&t.result?(n.report("wakeup_uc_api_success",e,{protocol:c.UC_API,version:a}),n.report("wakeup_success",e,{protocol:c.UC_API,version:a})):(n.info("scheme ucapi startApp fail","scheme ucapi startApp fail"),n.report("wakeup_uc_api_fail"),n.isFirstUc=!1,n.wakeupScheme(e,o))},fail:function(){n.info("scheme ucapi startApp fail","scheme ucapi startApp fail"),n.report("wakeup_fail",e,{protocol:c.UC_API,version:a}),n.isFirstUc=!1,n.wakeupScheme(e,o)}})):(n.info("ucapi.biz.queryApp no support","scheme ucapi"),n.isFirstUc=!1,n.report("wakeup_fail",e,{protocol:c.UC_API}),n.wakeupScheme(e,o))},fail:function(){n.isFirstUc=!1,n.info("ucapi.biz.queryApp fail","scheme ucapi"),n.report("wakeup_fail",e,{protocol:c.UC_API}),n.wakeupScheme(e,o)}})},i.prototype.wakeupHfp=function(e,o){var n=this;n.report("wakeup_hfp_start",e,{protocol:c.HFP}),n.checkVersion(e,function(t,i){if(e.code=e.code||n.encodeProtocol(e),e.downloadUrl=e.downloadUrl||n.getSchemeDownloadUrl(e),t){var a=n.host+"?hfp="+e.code;n.info("ninegame exist && version "+i+" match, try wakeup: "+a),n.report("wakeup_maybe",e,{protocol:c.HFP,version:i}),n.ajaxGet(a,function(t){n.info("wakeup fail with statusText: "+t),n.report("wakeup_fail",e,{protocol:c.HFP,version:i,message:t}),setTimeout(function(){n.hideLoadingMask()},500),o("connect fail",!!i,e.downloadUrl,{protocol:c.HFP}),(void 0===e.autoPullUp||e.autoPullUp)&&n.wakeupInterval(e)},function(t){t.result?(n.info("wakeup success: "+JSON.stringify(t)),n.report("wakeup_success",e,{protocol:c.HFP,version:i}),setTimeout(function(){n.hideLoadingMask()},500),o(null,!!i,t,{protocol:c.HFP})):(n.info("wakeup fail with response: "+JSON.stringify(t)),n.report("wakeup_fail",e,{protocol:c.HFP,version:i}),setTimeout(function(){n.hideLoadingMask()},500),o("response fail",!!i,e.downloadUrl,{protocol:c.HFP}),(void 0===e.autoPullUp||e.autoPullUp)&&n.wakeupInterval(e))})}else n.report("wakeup_download",e,{protocol:c.HFP,version:i}),setTimeout(function(){n.hideLoadingMask()},500),o("needDownload",!!i,e.downloadUrl,{protocol:c.HFP}),(void 0===e.autoPullUp||e.autoPullUp)&&n.wakeupInterval(e)})},i.prototype.ajaxGet=function(e,o,n){var t=document.querySelector("#csrf-token"),i=t&&t.getAttribute("value");i&&(e+="?_csrf="+i);var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n(JSON.parse(a.response)):o(a.statusText))},a.send()},i.prototype.pullupHack=function(e,o){var n=this;this.info("针对各种极端环境的 hack ","hack");var t=n.getSchemeDownloadUrl(e);return!this.isBaidu()||(this.info("百度浏览器一定拉不起","hack"),window.setTimeout(function(){n.download(t)},500),o("baidu pullup fail",!1,t,{}),!1)},i.prototype.wakeup=function(e,o){o=o||function(){};var n=this;if(n.report("wakeup",e,{message:"start pullup"}),n.isApple())return void n.wakeupIOS(e,o);if(n.isAndroid()){if(!n.pullupHack(e,o))return;var t=n.getSDKClientVersion();return void(n.isSDKClient()&&n.compareVersion(t,"4.0.0")>=0?(n.info("sdk 4.0 以上版本走入 sdk 拉起","wakeup"),n.wakeupSDK(e,o)):(n.info("安卓非 sdk 4.0 以上场景,统一走 scheme 拉起链路","wakeup"),n.wakeupScheme(e,o)))}setTimeout(function(){n.report("wakeup_fail_nomobile",e,{message:"unknown platform"}),n.download(n.getSchemeDownloadUrl(e))},0)},i.prototype.checkVersion=function(e,o){var n=this;n.getVersion(function(t){var i=n.getMinVersion(e),a=t&&n.compareVersion(t,i)>=0;n.info("currentVersion: "+t+", minVersion: "+i+" -> needUpdate: "+!a),o(a,t,i)})},i.prototype.download=function(e,o){var n=this;if(n.report("wakeup_download_self",{},{cust_code:e}),n.info("调用端下载事件 wakeup_download_self","download"),this.isAndroidClient()){var t,i=prompt(JSON.stringify({clz:"NineGameClient",method:"getEnv",args:{key:"apk_version"}}));o&&i?prompt(JSON.stringify({clz:"NineGameClient",method:"openWindow",args:{url:e,params:{},target:"system",options:{}}})):i?this.compareVersion(i,"3.3.1")<0?(t={key:{gameId:79532,pkgName:"cn.ninegame.gamemanager",pkgId:695329,versionCode:18},base:{gameId:79532,gameName:"九游",shortName:"九游",gameIcon:"http://image.game.uc.cn/2014/1/3/9587508_.png",isSimple:!0,opStatus:"运营",category:"软件",playType:1,operationType:"免费",fileSize:6360158},pkg:{apk:{pkgId:695329,pkgName:"cn.ninegame.gamemanager",downloadUrl:e,fileSize:6360158,versionCode:18,versionName:"1.0.10.0",lowVer:"8|2.2",targetVer:"14|4.0"},data:[]}},prompt(JSON.stringify({clz:"NineGameClient",method:"startDownloadApp",args:{gameInfo:t}}))):(t={base:{gameId:79532,gameOldId:75386,name:"九游",shortName:"九游",iconUrl:"http://image.game.uc.cn/2014/1/3/9587508_.png",isSimple:!0,playType:1,category:"软件",isFollowEnable:!0},pkgBase:{pkgId:695329,pkgName:"cn.ninegame.gamemanager",downloadUrl:e,fileSize:6360158,versionCode:"18",versionName:"4.0.0"},pkgDetail:{lowVer:"10|2.3.3",targetVer:"17|4.2"}},prompt(JSON.stringify({clz:"NineGameClient",method:"startDownloadApp",args:{gameInfo:t}}))):(t={id:695329,gameId:79532,platformId:2,gameName:"九游",logoImagePath:"http://image.game.uc.cn/2014/1/3/9587508_.png",downUrl:e,name:"九游",fileSize:6360158,type:0,dataPackageIds:"",packageName:"cn.ninegame.gamemanager",versionName:"4.0.0",versionCode:18,signMD5:"cc20fc7c235c3411e147d27ff6adf4f1",description:"",versionUpdateDesc:"",gameType:1,category:"软件",categoryId:0,datapkgRootEntries:"",pkgDescription:"",orgVersionCode:18,playType:1},prompt(JSON.stringify({clz:"NineGameClient",method:"downloadApp",args:{jsonObj:t}})))}else window.location.href=e},i.prototype.sign=function(e){return e+r(e).toString().substring(0,4)},i.prototype.getCh=function(e){return e.ch?e.ch:e.apkName?e.apkName.replace("ninegame_","").replace(".apk",""):"KD_481"},i.prototype.aliYunDownloadUrl=function(e,o){var n=this,t=s.domain.sysHost[n.environment],i=window.location.protocol||"http:",a=i.indexOf("https")>-1?"1":"0",r=i+t,c=r+"?ch="+e+"&useHttps="+a+"&paramStr="+o;return n.info(c,"aliYunDownloadUrl"),c},i.prototype.getDownloadUrl=function(e){var o=this;e.code=e.code||o.encodeProtocol(e),void 0===e.udf&&(e.udf=!0);var n="";if(e.udf){var t=this.getCh(e),i="ninegame_"+e.code+".apk";n=this.aliYunDownloadUrl(t,i)}else{n="http://down0.game.uc.cn/highspeed/"+(e.ch?"ninegame_"+e.ch+".apk":e.apkName)+"?apkname=ninegame_"+e.code}return n},i.prototype.getSchemeDownloadUrl=function(e){var o=encodeURIComponent(this.getSchemeUrl(e,!1,!0)),n=this.getCh(e);return this.aliYunDownloadUrl(n,o)},i.prototype.encodeProtocol=function(e){e=e||{};var o=this,n=e.type||e.pageType||"",t=e.action||e.opt||"",i=e.params||{},a=i.gameId||e.gameId||"",r=i.sceneId||e.sceneId||"",c=i.from||e.from||"",s={version:"1"};i.ucid&&(isNaN(i.ucid)||(i.ucid=+i.ucid),i.ucid=i.ucid.toString(16));var u=i.ucid||e.ucid||"";switch(i.starUcid&&(isNaN(i.starUcid)||(i.starUcid=+i.starUcid),i.starUcid=i.starUcid.toString(16)),n){case"main":s.bussiness="11",s.method="11",s.params=[i.index||e.index];break;case"game_detail":case"game":s.bussiness="12",o.assertParams(a,"gameId"),"follow"===t?(s.method="12",s.params=[a,u,i.nickName||e.nickName]):"download"===t?(s.method="13",s.params=[a,i.chId||e.chId]):(s.method="11",s.params=[a,i.tag||e.tag]);break;case"article":var l=i.articleId||e.articleId;s.bussiness="13",s.method="11",s.params=[l],o.assertParams(l,"articleId");break;case"gift":s.bussiness="14","follow"===t?(s.method="12",s.params=[a,u,c],o.assertParams(a,"gameId")):"get"===t?(s.method="14",s.params=[r,u,c],o.assertParams(r,"sceneId")):"subscribe"===t?(s.method="15",s.params=[r,u,c],o.assertParams(r,"sceneId")):(s.method="11",s.params=[r],o.assertParams(r,"sceneId"));break;case"guild":var p=i.guildId||e.guildId||"";s.bussiness="20",s.method="11",s.params=[p,u],o.assertParams(p,"guildId");break;case"feed_list":s.bussiness="34",s.method="11";break;case"feed_detail":var f=i.topicId||e.topicId||"";s.bussiness="35",s.method="11",s.params=[f],o.assertParams(f,"topicId");break;case"post_feed":s.bussiness="36",s.method="11";break;case"live_room_page":var d=i.roomId||e.roomId;s.bussiness="37",s.method="11",s.params=[d],o.assertParams(d,"roomId");break;case"live_home_page":s.bussiness="38",s.method="11";break;case"guild_base":s.bussiness="22",s.method="11",s.params=[i.ucid];break;case"guild_gift":s.bussiness="21",s.method="11",s.params=[r,u,c],o.assertParams(r,"sceneId");break;case"forum":s.bussiness="25",s.method="11",s.params=[u];break;case"forum_thread":var g=i.tid||e.tid||"";s.bussiness="27",s.method="11",s.params=[g,u],o.assertParams(g,"tid");break;case"im_group_chat":var m=i.targetId||e.targetId||"",h=i.bizType||e.bizType||"";s.bussiness="30",s.method="11",s.params=[m,h],o.assertParams(m,"targetId"),o.assertParams(h,"bizType");break;case"remote":var L=i.pageId||e.pageId||"";if(s.bussiness="15",s.method="11",s.params=[L],i.data){var v=[];for(var w in i.data)if(i.data.hasOwnProperty(w)){var y=w.replace(/_/gi,"@@"),A=String(i.data[w]||"").replace(/_/g,"@@");v.push(y+"="+A)}v.length>0&&s.params.push(v.join("^"))}o.assertParams(L,"pageId");break;case"info":s.bussiness="16",s.method="17";break;case"profile":s.bussiness="31",s.method="11",s.params=[u],o.assertParams(u,"ucid");break;case"star_rank_list":s.bussiness="32",s.method="11",s.params=[i.tab||e.tab];break;case"star_detail":var x=i.starUcid||e.starUcid;s.bussiness="33",s.method="11",s.params=[x,i.tab||e.tab||""],o.assertParams(x,"starUcid");break;default:console.warn("unknown Helper: ",n,t,e)}var b;s.params&&(b=encodeURIComponent(s.params.join("_")));var I=o.formatStr("g{0}b{1}m{2}{3}",s.version,s.bussiness,s.method,b?"p"+b:"p"),k=o.sign(I);return o.info(k,"[encodeProtocol]"),k},i.prototype.getVersion=function(e){var o=this;if(o.isAndroidClient()){o.info("app端内直接判定拉起成功");e(prompt(JSON.stringify({clz:"NineGameClient",method:"getEnv",args:{key:"apk_version"}})))}else e()},i.prototype.getMinVersion=function(e){e=e||{};var o=e.version;if(!o)switch(e.type){case"game":case"article":o="2.7.0";break;case"gift":o="2.2.2";break;case"im_group_chat":o="4.1.2";break;case"remote":case"guild":case"guild_gift":case"guild_base":case"main":default:o="4.0.0"}return o},i.prototype.compareVersion=function(e,o){if(typeof e+typeof o!="stringstring")return!1;for(var n=e.split("."),t=o.split("."),i=0,a=Math.max(n.length,t.length);i<a;i++){if(n[i]&&!t[i]&&parseInt(n[i])>0||parseInt(n[i])>parseInt(t[i]))return 1;if(t[i]&&!n[i]&&parseInt(t[i])>0||parseInt(n[i])<parseInt(t[i]))return-1}return 0},i.prototype.assertParams=function(e,o){if("object"==typeof e&&!e[o])return e.key;if(e)return e;throw"missig params: "+o},i.prototype.formatStr=function(e,o){return o="object"==typeof o?o:Array.prototype.slice.call(arguments,1),e.replace(/\{\{|\}\}|\{(\w+)\}/g,function(e,n){return"{{"===e?"{":"}}"===e?"}":o.hasOwnProperty(n)?o[n]:""})},i.prototype.report=function(e,o,n){o=o||{},n=n||{};var t=o.params||{},i={};i.tag=e,i.pageType=o.type||o.pageType,i.ch=this.getCh(o),i.recent_root=this.getRecentRoot(o.pullUpFrom),i.recent_root_id=this.getRecentRootId(o.pullUpFrom),i.opt=this.getSchemeOpt(o.action||o.opt,o.type||o.pageType),i.protocol=n.protocol,i.gameId=o.gameId||t.gameId,i.ucid=o.ucid||t.ucid,i.downloadUrl=o.downloadUrl,i.schemeUrl=this.getSchemeUrl(o),this.sendLog(i,n)},i.prototype.sendLog=function(e,o){var n=this,t=e.tag,i=o&&o.cust_code?o.cust_code:"",a={game_id:e.gameId||"",ucid:e.ucid||"",recent_root:e.recent_root,k1:e.pageType||"",k2:e.opt,k3:encodeURIComponent(e.downloadUrl||""),k4:i,k5:e.protocol||"",k6:e.recent_root_id,k7:encodeURIComponent(e.schemeUrl||""),k8:n.ngLogger_link||"",ch:e.ch};n.loadNgLogger(function(){n.ngLogger.log(t,a)})},i.prototype.loadNgLogger=function(e,o){var n=this;if(o=o||{},void 0!==window.NgLogger&&n.ngLogger)e();else{var t=s.domain.nglogger[n.environment],i=t+"?t="+Math.ceil(new Date),a=!("test"!==n.environment&&"true"!==n.getQueryByKey("hitPre"));n.loadScript(i,function(){n.ngLogger=new window.NgLogger({pageName:"NineGameClientPullUp",isPreloadLogger:!1,isPerformanceLogger:!1,isDebugMode:a,isErrorLogger:!0,isRegisterPageView:!1});var t=n.ngLogger.exportUrlPart();n.ngLogger_link=t&&t.urlPart?t.urlPart:window.location.host,setTimeout(e,o.delay||0)},function(e){console.warn(e)})}},i.prototype.init=function(){var e=this,o="true"===e.getQueryByKey("isForceDebug");e.environment=o?"test":"prod",setTimeout(function(){e.info("初始化 window.NineGameClientPullUp with environment: "+e.environment),e.loadNgLogger(function(){e.report("init")},{delay:200})},0)},i.prototype.info=function(e,o){var n=this;!("test"!==n.environment&&"true"!==n.getQueryByKey("hitPre"))&&(o=o||"info",console.info("[PullUp "+o+"]",e))},void 0!==e&&e.exports?(e.exports=window.NineGameClientPullUp=new i,window.NineGameClientPullUp.beginTime=Date.now()):(a=o.JSBridge=o.JSBridge||{},window.NineGameClientPullUp=a.pullup=new i,window.NineGameClientPullUp.beginTime=Date.now()),window.NineGameClientPullUp.init()}(this)},"5SCX":function(e,o){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function t(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(n(e)||t(e)||!!e._isBuffer)}},P1ae:function(module,exports,__webpack_require__){var require;!function(context){function extenducapi(){var e,o=apiDef.ucapi;for(e in o)window.ucapi[e]=o[e]}var require,define;!function(){function e(e){var o=e.factory;return e.exports={},delete e.factory,o(function(o){var n=o;return"."===o.charAt(0)&&(n=e.id.slice(0,e.id.lastIndexOf("."))+"."+o.slice(2)),require(n)},e.exports,e),e.exports}var o={},n=[],t={};require=function(i){if(!o[i])throw"module "+i+" not found";if(i in t)throw"Cycle in require graph: "+n.slice(t[i]).join("->")+"->"+i;if(o[i].factory)try{return t[i]=n.length,n.push(i),e(o[i])}finally{delete t[i],n.pop()}return o[i].exports},define=function(e,n){if(o[e])throw"module "+e+" already defined";o[e]={id:e,factory:n}},define.remove=function(e){delete o[e]},define.moduleMap=o}(),define("util",function(e,o,n){function t(e){var o,n,i=e;if(e&&((n=e instanceof Array)||e instanceof Object))for(o in i=n?[]:{},e)e.hasOwnProperty(o)&&(i[o]=t(e[o]));return i}var i=e("constant"),a=Object.prototype.toString,r={getTop:function(e){var o=e.offsetTop;return null!=e.offsetParent&&(o+=r.getTop(e.offsetParent)),o},getLeft:function(e){var o=e.offsetLeft;return null!=e.offsetParent&&(o+=r.getLeft(e.offsetParent)),o},getCss3offsetTop:function(e){var o=getComputedStyle(e,null).webkitTransform,o="none"==o?0:parseInt(o.split(",")[5].replace(")",""));return"BODY"!=e.parentNode.tagName&&(o+=r.getCss3offsetTop(e.parentNode)),o},getCss3offsetLeft:function(e){var o=getComputedStyle(e,null).webkitTransform,o="none"==o?0:parseInt(o.split(",")[4]);return"BODY"!=e.parentNode.tagName&&(o+=r.getCss3offsetLeft(e.parentNode)),o},getNodePosById:function(e){return(e=document.getElementById(e))?[r.getLeft(e)+r.getCss3offsetLeft(e),r.getTop(e)+r.getCss3offsetTop(e),e.offsetWidth,e.offsetHeight]:""}};o.getPlatform=function(){return window.UCShellJava?i.platform.ANDROID:window.__BrowserJSBridgeObj?i.platform.IPHONE:i.platform.OTHERS},o.isString=function(e){return"[object String]"===a.call(e)},o.isFunction=function(e){return"[object Function]"===a.call(e)},o.isArray=function(e){return"[object Array]"===a.call(e)},o.isEmptyObj=function(e){for(var o in e)if(e.hasOwnProperty(o))return!1;return!0},o.clone=t,o.getNodePosById=r.getNodePosById,o.debugLog=function(e){if(ucapi&&ucapi.debug){console.log(e);var o=navigator.userAgent;(o.match(/(Android)\s+([\d.]+)/)||o.match(/(iPhone\sOS)\s([\d_]+)/))&&alert(e)}},o.log=function(e,o){encodeURIComponent(location.href)}}),define("constant",function(e,o,n){o.platform={ALL:"all",ANDROID:"android",IPHONE:"iphone",OTHERS:"others"},o.debug=!1,o.callbackStatus={OK:0,ACCESS_DENY:1,INVALID_METHOD:2,INVALID_PARAM:3,UNKNOWN_ERROR:4},o.callbackStatusMessage=["OK","ACCESS_DENY","INVALID_METHOD","INVALID_PARAMS","UNKNOWN_ERROR"]}),define("bridge",function(g,e,m){function b(e){return e=e.replace("+","%20"),decodeURIComponent(e)}function h(e){if(ucapi.invoke)return!0;e&&e.fail&&e.fail.call(this,{errCode:a.callbackStatus.INVALID_METHOD,errMsg:"ucapi.invoke not exsit, should load in UCBrowser !"})}function c(e,o,n){e&&e.call(this,{errCode:o,errMsg:n})}var f=g("util"),a=g("constant"),n={};e.exec=function(e,o,n){if(f.log(e,"invoke"),h(o)){var t=f.getPlatform();if(n!==a.platform.ALL&&t!==n)o&&o.fail&&c(o.fail,a.callbackStatus.INVALID_METHOD,"this api not supported this platform");else{if(o&&o.fail){var i=o.fail;o.fail=function(o){f.log(e,"fail"),o.errMsg=a.callbackStatusMessage[o.errCode],i.call(this,o),"function"==typeof ucapi.onFail&&ucapi.onFail(e,o)}}else"function"==typeof ucapi.onFail&&(o=o||{},o.fail=function(o){ucapi.onFail(e,o)});ucapi.invoke(e,o)}}},e.subscribeEvent=function(e,o,n){h(o)&&e&&o.success&&ucapi.on(e,o.success)},e.onEvent=function(e,o,t){f.log(e,"invoke"),o&&(f.getPlatform()!=a.platform.ANDROID||"biz.onShare"!=e||!o.screenshotHtmlNodeId||""==o.screenshotHtmlNodeId||o.screenshotRect&&""!=o.screenshotRect||(t=f.getNodePosById(o.screenshotHtmlNodeId),""!=t&&(t=t.join(",")),o.screenshotRect=t),n[e]=o)},e.offEvent=function(e){n[e]=void 0},e.triggerEvent=function(e){if(e&&e.method)if(n[e.method]){var o=n[e.method];if(f.getPlatform()==a.platform.ANDROID){if(e.channel&&"invokeJs"==e.channel){var t="";o.trigger&&(t=o.trigger(e.data)),void 0==t?(e=f.clone(o),e.success&&delete e.success,e.fail&&delete e.fail,e.trigger&&delete e.trigger):e=t}else t={},t.method=e.method,e.callbackId&&(t.callbackId=e.callbackId),t.args=o,ucapi.base.triggerEventCallback(t),e=void 0;return e}((t=o.trigger&&o.trigger(e.data))&&"object"==typeof t||e.callbackId)&&ucapi.base.triggerEventCallback({method:e.method,callbackId:e.callbackId,args:o,trigger_result:t})}else f.getPlatform()!==a.platform.ANDROID&&e.callbackId&&e.method&&"biz.onShare"!=e.method&&ucapi.base.triggerEventCallback({method:e.method,callbackId:e.callbackId})},e.invokeJs=function(a){if(a.js&&a.callbackId){var c=b(a.js);if(a={result:"",callbackId:a.callbackId},eval(c),void 0!=ucapi.base.injectInvokeJs)try{f.log("base.injectInvokeJs","inject");var d=ucapi.base.injectInvokeJs();d||(d=""),a.result=d}catch(e){f.log("base.injectInvokeJs","error")}ucapi.base.invokeJsCallback(a)}}}),define("apidef",function(e,o,n){var t=e("constant").platform,i=e("apiCompatibleImpl"),a=e("bridge"),r=e("util");o.ucapi={exec:function(e,o){i.exec(e,o,t.ALL)},onEvent:function(e,o){r.isFunction(o.trigger)?a.onEvent(e,o):r.isFunction(o.success)?a.subscribeEvent(e,o):a.onEvent(e,o)},offEvent:function(e){a.offEvent(e)},base:{checkAPI:function(e){a.exec("base.checkAPI",e,t.ALL)},getVersion:function(e){a.exec("base.getVersion",e,t.ALL)},displayMode:function(e){a.exec("base.displayMode",e,t.ALL)},setDisplayMode:function(e){a.exec("base.setDisplayMode",e,t.ALL)},imageMode:function(e){a.exec("base.imageMode",e,t.ALL)},onDisplayModeChange:function(e){a.subscribeEvent("base.onDisplayModeChange",e,t.ANDROID)},onImageModeChange:function(e){a.subscribeEvent("base.onImageModeChange",e,t.ANDROID)},triggerEvent:function(e){return a.triggerEvent(e)},triggerEventCallback:function(e){a.exec("base.triggerEventCallback",e,t.ALL)},invokeJs:function(e){a.invokeJs(e)},invokeJsCallback:function(e){a.exec("base.invokeJsCallback",e,t.ANDROID)},setImageReader:function(e){a.exec("base.setImageReader",e,t.IPHONE)},sendBeacon:function(e){a.exec("base.sendBeacon",e,t.IPHONE)},copyToClipboard:function(e){a.exec("base.copyToClipboard",e,t.ALL)},addBookmark:function(e){a.exec("base.addBookmark",e,t.ALL)},checkBookmarkIsExist:function(e){a.exec("base.checkBookmarkIsExist",e,t.ALL)},addFavorite:function(e){a.exec("base.addFavorite",e,t.ALL)},addHomeBookMark:function(e){a.exec("base.addHomeBookMark",e,t.ALL)},checkHomeBookMarkIsExist:function(e){a.exec("base.checkHomeBookMarkIsExist",e,t.ALL)},ulog:function(e){a.exec("base.ulog",e,t.ALL)}},device:{batteryLevel:function(e){a.exec("device.batteryLevel",e,t.ALL)},setScreenSleepTime:function(e){a.exec("device.setScreenSleepTime",e,t.ANDROID)},setScreenBrightness:function(e){a.exec("device.setScreenBrightness",e,t.ANDROID)},getScreenBrightness:function(e){a.exec("device.getScreenBrightness",e,t.ANDROID)},getNetworkStatus:function(e){a.exec("device.getNetworkStatus",e,t.ALL)},getDeviceInfo:function(e){a.exec("device.getDeviceInfo",e,t.ANDROID)},getSoundInfo:function(e){a.exec("device.getSoundInfo",e,t.ALL)},vibrate:function(e){a.exec("device.vibrate",e,t.IPHONE)}},biz:{gestureDisabled:function(e){a.exec("biz.gestureDisabled",e,t.ALL)},queryApp:function(e){a.exec("biz.queryApp",e,t.ALL)},startApp:function(e){a.exec("biz.startApp",e,t.ALL)},quickDownload:function(e){a.exec("biz.quickDownload",e,t.ANDROID)},queryAppIsDl:function(e){a.exec("biz.queryAppIsDl",e,t.ANDROID)},installApp:function(e){a.exec("biz.installApp",e,t.ANDROID)},checkUpdate:function(e){a.exec("biz.checkUpdate",e,t.ANDROID)},copyPlainTextToClipboard:function(e){a.exec("biz.copyPlainTextToClipboard",e,t.IPHONE)},saveImageToPhotoAlbum:function(e){a.exec("biz.saveImageToPhotoAlbum",e,t.IPHONE)},openWindow:function(e){a.exec("biz.openWindow",e,t.ALL)},customBar:function(e){a.exec("biz.customBar",e,t.ALL)},setStatusBarBgColor:function(e){a.exec("biz.setStatusBarBgColor",e,t.ALL)},share:function(e){i.exec("biz.share",e,t.ALL)},shareEx:function(e){a.exec("biz.shareEx",e,t.ALL)},onShare:function(e){a.onEvent("biz.onShare",e,t.ALL)},loadBizModeUrl:function(e){a.exec("biz.loadBizModeUrl",e,t.IPHONE)},customSiteNotify:function(e){a.exec("biz.customSiteNotify",e,t.ANDROID)},openVoice:function(e){a.exec("biz.openVoice",e,t.ALL)},createDestopShortcut:function(e){a.exec("biz.createDestopShortcut",e,t.ANDROID)},openInExternal:function(e){a.exec("biz.openInExternal",e,t.IPHONE)},openAppStore:function(e){a.exec("biz.openAppStore",e,t.IPHONE)},installIPA:function(e){a.exec("biz.installIPA",e,t.IPHONE)},setFullScreen:function(e){a.exec("biz.setFullScreen",e,t.ALL)},getFullScreenStatus:function(e){a.exec("biz.getFullScreenStatus",e,t.ALL)},gous:function(e){a.exec("biz.gous",e,t.IPHONE)},onBizItemClicked:function(e){a.onEvent("biz.onBizItemClicked",e,t.ALL)},imageDidFlip:function(e){a.exec("biz.imageDidFlip",e,t.ALL)},hiddenComponent:function(e){a.exec("biz.hiddenComponent",e,t.ALL)},closeWebPage:function(e){a.exec("biz.closeWebPage",e,t.ALL)},handlePageError:function(e){a.exec("biz.handlePageError",e,t.ANDROID)},getUserType:function(e){a.exec("biz.getUserType",e,t.ALL)},getNewbieType:function(e){a.exec("biz.getNewbieType",e,t.ALL)},ucparams:function(e){a.exec("biz.ucparams",e,t.ALL)},openPicViewer:function(e){a.exec("biz.openPicViewer",e,t.ALL)},pageDiversion:function(e){a.exec("biz.pageDiversion",e,t.IPHONE)},handleExt:function(e){a.exec("biz.handleExt",e,t.ANDROID)},needShowUcnewsBanner:function(e){a.exec("biz.needShowUcnewsBanner",e,t.ALL)},queryInstalledApps:function(e){a.exec("biz.queryInstalledApps",e,t.ANDROID)},onInstalledApp:function(e){a.onEvent("biz.onInstalledApp",e,t.ANDROID)},queryScheme:function(e){a.exec("biz.queryScheme",e,t.ANDROID)},queryStraightEntrance:function(e){a.exec("biz.queryStraightEntrance",e,t.ALL)},notifyElementInfo:function(e){a.exec("biz.notifyElementInfo",e,t.ALL)},enterSearchWord:function(e){a.exec("biz.enterSearchWord",e,t.ALL)},openTaobao:function(e){a.exec("biz.openTaobao",e,t.ALL)},notifyVoteStatus:function(e){a.exec("biz.notifyVoteStatus",e,t.ALL)},notifyLikeStatusChange:function(e){a.exec("biz.notifyLikeStatusChange",e,t.ALL)},getCMSResource:function(e){a.exec("biz.getCMSResource",e,t.ANDROID)},getCDParams:function(e){a.exec("biz.getCDParams",e,t.ALL)},postBroadcastMessage:function(e){a.exec("biz.postBroadcastMessage",e,t.ALL)},addBroadcastMessageListener:function(e){a.exec("biz.addBroadcastMessageListener",e,t.ALL)},onBroadcastMessage:function(e){a.onEvent("biz.onBroadcastMessage",e,t.ALL)},openAppInApp:function(e){a.exec("biz.openAppInApp",e,t.IPHONE)},preloadApp:function(e){a.exec("biz.preloadApp",e,t.IPHONE)},getStoreData:function(e){a.exec("biz.getStoreData",e,t.ALL)},deleteStoreData:function(e){a.exec("biz.deleteStoreData",e,t.ALL)},setStoreData:function(e){a.exec("biz.setStoreData",e,t.ALL)},openContentEditWindow:function(e){a.exec("biz.openContentEditWindow",e,t.ALL)},openWebSettingPanel:function(e){a.exec("biz.openWebSettingPanel",e,t.ALL)},gotoPushSetting:function(e){a.exec("biz.gotoPushSetting",e,t.ANDROID)},getPushState:function(e){a.exec("biz.getPushState",e,t.ANDROID)},getToolBarItemInfo:function(e){a.exec("biz.getToolBarItemInfo",e,t.ALL)},getABTestInfo:function(e){a.exec("biz.getABTestInfo",e,t.ALL)}},video:{getFollowedVideos:function(e){a.exec("video.getFollowedVideos",e,t.ALL)},play:function(e){a.exec("video.play",e,t.ALL)},onPlayEnd:function(e){a.onEvent("video.onPlayEnd",e,t.ALL)},getPlayList:function(e){a.exec("video.getPlayList",e,t.ALL)},openTagWindow:function(e){a.exec("video.openTagWindow",e,t.ALL)},setVideoCloudEnable:function(e){a.exec("video.setVideoCloudEnable",e,t.IPHONE)}},theme:{setEnableSwipeGesture:function(e){a.exec("theme.setEnableSwipeGesture",e,t.ANDROID)},applySkin:function(e){a.exec("theme.applySkin",e,t.ANDROID)},onlineSkinPreview:function(e){a.exec("theme.onlineSkinPreview",e,t.ANDROID)},getThemeList:function(e){a.exec("theme.getThemeList",e,t.ANDROID)}},infoflow:{notifyFlushWebItemInfo:function(e){a.exec("infoflow.notifyFlushWebItemInfo",e,t.ALL)},openInfoFlowImageGallery:function(e){a.exec("infoflow.openInfoFlowImageGallery",e,t.ALL)},notifyContentPosState:function(e){a.exec("infoflow.notifyContentPosState",e,t.ALL)},getNewsData:function(e){a.exec("infoflow.getNewsData",e,t.ALL)},priseFinishNotify:function(e){a.exec("infoflow.priseFinishNotify",e,t.ALL)},queryPageInfo:function(e){a.exec("infoflow.queryPageInfo",e,t.IPHONE)},backToList:function(e){a.exec("infoflow.backToList",e,t.ANDROID)},openChannelWindow:function(e){a.exec("infoflow.openChannelWindow",e,t.ALL)},onUserClick:function(e){a.exec("infoflow.onUserClick",e,t.IPHONE)},statsUserClick:function(e){a.exec("infoflow.statsUserClick",e,t.ANDROID)},userDidScroll:function(e){a.exec("infoflow.userDidScroll",e,t.ALL)},notifyFollowInfo:function(e){a.exec("infoflow.notifyFollowInfo",e,t.ALL)},flushWeMediaInfo:function(e){a.exec("infoflow.flushWeMediaInfo",e,t.ALL)},switchSearch:function(e){a.exec("infoflow.switchSearch",e,t.ALL)},statEvent:function(e){a.exec("infoflow.statEvent",e,t.ALL)},interceptUrl:function(e){a.exec("infoflow.interceptUrl",e,t.ANDROID)},setArticleRect:function(e){a.exec("infoflow.setArticleRect",e,t.ANDROID)},jumpPage:function(e){a.exec("infoflow.jumpPage",e,t.ALL)},openArticleItemWithInfo:function(e){a.exec("infoflow.openArticleItemWithInfo",e,t.ALL)},tagInteraction:function(e){a.exec("infoflow.tagInteraction",e,t.ALL)},notifyImgZoom:function(e){a.exec("infoflow.notifyImgZoom",e,t.ALL)},getMainDocInfo:function(e){a.exec("infoflow.getMainDocInfo",e,t.ALL)},getWindowNewsData:function(e){a.exec("infoflow.getWindowNewsData",e,t.ALL)},exchangeUtStatInfos:function(e){a.exec("infoflow.exchangeUtStatInfos",e,t.ALL)},operateFavo:function(e){a.exec("infoflow.operateFavo",e,t.ALL)},actionShouldOpenUrl:function(e){a.onEvent("infoflow.actionShouldOpenUrl",e,t.ALL)},openPopWindow:function(e){a.exec("infoflow.openPopWindow",e,t.ALL)}},promotion:{getContent:function(e){a.exec("promotion.getContent",e,t.IPHONE)},actionNotify:function(e){a.exec("promotion.actionNotify",e,t.IPHONE)},getHcAd:function(e){a.exec("promotion.getHcAd",e,t.ANDROID)},getPageInfo:function(e){a.exec("promotion.getPageInfo",e,t.ALL)},handleJSAdCommand:function(e){a.exec("promotion.handleJSAdCommand",e,t.IPHONE)},getUMaxAnimationParam:function(e){a.exec("promotion.getUMaxAnimationParam",e,t.ALL)},getUMaxVideoParam:function(e){a.exec("promotion.getUMaxVideoParam",e,t.ALL)}},comment:{configInput:function(e){a.exec("comment.configInput",e,t.ALL)},onSendComment:function(e){},onSendComment3rd:function(e){},notifySendResult:function(e){a.exec("comment.notifySendResult",e,t.ALL)},openCommentWebview:function(e){a.exec("comment.openCommentWebview",e,t.IPHONE)},notifyCommentServiceInfo:function(e){a.exec("comment.notifyCommentServiceInfo",e,t.ALL)},notifyCommentCount:function(e){a.exec("comment.notifyCommentCount",e,t.ALL)},setSendCommentPlaceHolder:function(e){a.exec("comment.setSendCommentPlaceHolder",e,t.ALL)},showCommentsPanel:function(e){a.exec("comment.showCommentsPanel",e,t.ALL)},notifyCommentLikeInfo:function(e){a.exec("comment.notifyCommentLikeInfo",e,t.ALL)}},account:{openLoginWindow:function(e){a.exec("account.openLoginWindow",e,t.ALL)},getUserInfo:function(e){a.exec("account.getUserInfo",e,t.ALL)},getSignedUserInfo:function(e){a.exec("account.getSignedUserInfo",e,t.ALL)},onAccountStateChange:function(e){a.onEvent("account.onAccountStateChange",e,t.ALL)},thirdpartGetUserInfo:function(e){a.exec("account.thirdpartGetUserInfo",e,t.IPHONE)},getUserVipInfo:function(e){a.exec("account.getUserVipInfo",e,t.ALL)},refreshUserVipStatus:function(e){a.exec("account.refreshUserVipStatus",e,t.ALL)},openAssetMergePrompt:function(e){a.exec("account.openAssetMergePrompt",e,t.ALL)},getNewUserInfo:function(e){a.exec("account.getNewUserInfo",e,t.ALL)},openIdentificationWindow:function(e){a.exec("account.openIdentificationWindow",e,t.ALL)},quickLogin:function(e){a.exec("account.quickLogin",e,t.ALL)},getBindUserInfo:function(e){a.exec("account.getBindUserInfo",e,t.ALL)},bindThirdPartyAccount:function(e){a.exec("account.bindThirdPartyAccount",e,t.ALL)},unbindThirdPartyAccount:function(e){a.exec("account.unbindThirdPartyAccount",e,t.ALL)},getThirdPartyToken:function(e){a.exec("account.getThirdPartyToken",e,t.ALL)}},ucmap:{launchUCMap:function(e){a.exec("ucmap.launchUCMap",e,t.ALL)},config:function(e){a.exec("ucmap.config",e,t.ALL)}},novel:{setNovelH5Bookshelf:function(e){a.exec("novel.setNovelH5Bookshelf",e,t.ANDROID)},pushLogger:function(e){a.exec("novel.pushLogger",e,t.ANDROID)},getUserInfo:function(e){a.exec("novel.getUserInfo",e,t.ALL)},openRechargePanel:function(e){a.exec("novel.openRechargePanel",e,t.ALL)},openBatchBuyPanel:function(e){a.exec("novel.openBatchBuyPanel",e,t.ANDROID)},updateProgressData:function(e){a.exec("novel.updateProgressData",e,t.ALL)},addToBookshelf:function(e){a.exec("novel.addToBookshelf",e,t.ALL)},getBookStatus:function(e){a.exec("novel.getBookStatus",e,t.ALL)},getReadingConfig:function(e){a.exec("novel.getReadingConfig",e,t.ALL)},setReadingConfig:function(e){a.exec("novel.setReadingConfig",e,t.ALL)},stat:function(e){a.exec("novel.stat",e,t.ALL)},notifySignProgress:function(e){a.exec("novel.notifySignProgress",e,t.ALL)},notifyException:function(e){a.exec("novel.notifyException",e,t.ALL)},downloadProgress:function(e){a.exec("novel.downloadProgress",e,t.ALL)},getVoiceBookStatus:function(e){a.exec("novel.getVoiceBookStatus",e,t.ALL)},updateVoiceBookDownloadProgress:function(e){a.exec("novel.updateVoiceBookDownloadProgress",e,t.ALL)},addVoiceBookToBookshelf:function(e){a.exec("novel.addVoiceBookToBookshelf",e,t.ALL)},openDownloadManager:function(e){a.exec("novel.openDownloadManager",e,t.ALL)},operateVoiceBookTrackDownload:function(e){a.exec("novel.operateVoiceBookTrackDownload",e,t.ALL)},getAudioDownloadInfo:function(e){a.exec("novel.getAudioDownloadInfo",e,t.ALL)},openAudioDownloadWindow:function(e){a.exec("novel.openAudioDownloadWindow",e,t.ALL)},notifyDataLoadFinish:function(e){a.exec("novel.notifyDataLoadFinish",e,t.ALL)},openVoiceBookPlayer:function(e){a.exec("novel.openVoiceBookPlayer",e,t.ALL)},getNewGuidePackageInfo:function(e){a.exec("novel.getNewGuidePackageInfo",e,t.ALL)},getReadTimeInfo:function(e){a.exec("novel.getReadTimeInfo",e,t.ALL)},rechargeDirectly:function(e){a.exec("novel.rechargeDirectly",e,t.ALL)},openWebWindow:function(e){a.exec("novel.openWebWindow",e,t.ALL)},handleWindowTitle:function(e){a.exec("novel.handleWindowTitle",e,t.ALL)},openReadTimeConvertWindow:function(e){a.exec("novel.openReadTimeConvertWindow",e,t.ALL)},openVipPurchaseWindow:function(e){a.exec("novel.openVipPurchaseWindow",e,t.ALL)},notifyWebResult:function(e){a.exec("novel.notifyWebResult",e,t.ALL)},notifyCurrentReadNovelInfo:function(e){a.exec("novel.notifyCurrentReadNovelInfo",e,t.ALL)},getLatestReadBookInfo:function(e){a.exec("novel.getLatestReadBookInfo",e,t.ALL)},openRewardVideoActivity:function(e){a.exec("novel.openRewardVideoActivity",e,t.ALL)},onNovelToolBarItemClick:function(e){a.onEvent("novel.onNovelToolBarItemClick",e,t.ALL)},onGetVideoRewardComplete:function(e){a.onEvent("novel.onGetVideoRewardComplete",e,t.ALL)}},feedback:{getScreenshot:function(e){a.exec("feedback.getScreenshot",e,t.ANDROID)},getUserlogurl:function(e){a.exec("feedback.getUserlogurl",e,t.ALL)}},mall:{missionDetail:function(e){a.exec("mall.missionDetail",e,t.IPHONE)},doMission:function(e){a.exec("mall.doMission",e,t.IPHONE)}},pay:{doPay:function(e){a.exec("pay.doPay",e,t.ALL)},openOrderCenter:function(e){a.exec("pay.openOrderCenter",e,t.ALL)},onPaymentStateChange:function(e){a.onEvent("pay.onPaymentStateChange",e,t.ALL)},notifyChargeResult:function(e){a.exec("pay.notifyChargeResult",e,t.ALL)},ucPay:function(e){a.exec("pay.ucpay",e,t.IPHONE)}},cms:{executeAction:function(e){a.exec("cms.executeAction",e,t.ALL)}},settings:{switchInputMethod:function(e){a.exec("settings.switchInputMethod",e,t.ANDROID)}},smspring:{interactiveEvent:function(e){a.exec("smspring.interactiveEvent",e,t.IPHONE)}},wemedia:{openHomePage:function(e){a.exec("wemedia.openHomePage",e,t.ALL)},onFollow:function(e){a.onEvent("wemedia.onFollow",e,t.ALL)},followWemedia:function(e){a.exec("wemedia.followWemedia",e,t.ALL)},switchToGuide:function(e){a.exec("wemedia.switchToGuide",e,t.ALL)},releaseStrategy:function(e){a.exec("wemedia.releaseStrategy",e,t.ALL)},playVideo:function(e){a.exec("wemedia.playVideo",e,t.ALL)},playVideoList:function(e){a.exec("wemedia.playVideoList",e,t.ALL)},onPlayNextVideo:function(e){a.onEvent("wemedia.onPlayNextVideo",e,t.ALL)},onPlayingVideoItem:function(e){a.onEvent("wemedia.onPlayingVideoItem",e,t.ALL)},notifyFollowStatus:function(e){a.exec("wemedia.notifyFollowStatus",e,t.ALL)},openWeMediaSearch:function(e){a.exec("wemedia.openWeMediaSearch",e,t.ALL)}},smlbs:{locationEvent:function(e){a.exec("smlbs.locationEvent",e,t.IPHONE)}},pp:{setNoBlock:function(e){a.exec("pp.setNoBlock",e,t.ANDROID)},setNoBlockDUrl:function(e){a.exec("pp.setNoBlockDUrl",e,t.ANDROID)}},notification:{getMsgBoxInfo:function(e){a.exec("notification.getMsgBoxInfo",e,t.ANDROID)}},spam:{getActivityToken:function(e){a.exec("spam.getActivityToken",e,t.ALL)},encrypt:function(e){a.exec("spam.encrypt",e,t.ALL)},sign:function(e){a.exec("spam.sign",e,t.ALL)}},activity:{playGameNotify:function(e){a.exec("activity.playGameNotify",e,t.ALL)},onPlayGameCallback:function(e){a.onEvent("activity.onPlayGameCallback",e,t.ALL)},getVerifyInfo:function(e){a.exec("activity.getVerifyInfo",e,t.ALL)},takeJob:function(e){a.exec("activity.takeJob",e,t.ALL)}},download:{downSilent:function(e){a.exec("download.downSilent",e,t.ANDROID)},onDownloadStateChange:function(e){a.onEvent("download.onDownloadStateChange",e,t.ANDROID)},checkDownloadState:function(e){a.exec("download.checkDownloadState",e,t.ANDROID)},continuePausedDownload:function(e){a.exec("download.continuePausedDownload",e,t.ANDROID)},installAppForDownload:function(e){a.exec("download.installAppForDownload",e,t.ANDROID)},disableAppExchangeRecommend:function(e){a.exec("download.disableAppExchangeRecommend",e,t.ANDROID)}},picviewer:{open:function(e){a.exec("picviewer.open",e,t.ALL)},onPageChange:function(e){a.onEvent("picviewer.onPageChange",e,t.ALL)},notifyEvent:function(e){a.exec("picviewer.notifyEvent",e,t.ALL)},onNotifyPosition:function(e){a.onEvent("picviewer.onNotifyPosition",e,t.ALL)}},cartoon:{openReader:function(e){a.exec("cartoon.openReader",e,t.ALL)},exitReader:function(e){a.exec("cartoon.exitReader",e,t.ALL)},getReadRecord:function(e){a.exec("cartoon.getReadRecord",e,t.ALL)},checkDownload:function(e){a.exec("cartoon.checkDownload",e,t.ALL)},downLoad:function(e){a.exec("cartoon.downLoad",e,t.ALL)},addFavorite:function(e){a.exec("cartoon.addFavorite",e,t.ALL)},getFavorite:function(e){a.exec("cartoon.getFavorite",e,t.ALL)},setReadingConfig:function(e){a.exec("cartoon.setReadingConfig",e,t.ALL)},getReadingConfig:function(e){a.exec("cartoon.getReadingConfig",e,t.ALL)},updateProgressData:function(e){a.exec("cartoon.updateProgressData",e,t.ALL)},onPageIndexChange:function(e){a.onEvent("cartoon.onPageIndexChange",e,t.ALL)},onChapterChange:function(e){a.onEvent("cartoon.onChapterChange",e,t.ALL)},showToolbar:function(e){a.exec("cartoon.showToolbar",e,t.ALL)},readerLoaded:function(e){a.exec("cartoon.readerLoaded",e,t.ALL)},getChapterList:function(e){a.exec("cartoon.getChapterList",e,t.ALL)},readerOverFlow:function(e){a.exec("cartoon.readerOverFlow",e,t.ALL)},readerUrlJump:function(e){a.exec("cartoon.readerUrlJump",e,t.ALL)},removeLoading:function(e){a.exec("cartoon.removeLoading",e,t.ALL)},getCacheInfo:function(e){a.exec("cartoon.getCacheInfo",e,t.ALL)},clearCache:function(e){a.exec("cartoon.clearCache",e,t.ALL)},openSearchWindow:function(e){a.exec("cartoon.openSearchWindow",e,t.ALL)},readerPayAlert:function(e){a.exec("cartoon.readerPayAlert",e,t.ALL)},finishPurchase:function(e){a.exec("cartoon.finishPurchase",e,t.ALL)},onConfirmPurchase:function(e){a.onEvent("cartoon.onConfirmPurchase",e,t.ALL)},onConfigChange:function(e){a.onEvent("cartoon.onConfigChange",e,t.ALL)},notifyCheckInFinish:function(e){a.exec("cartoon.notifyCheckInFinish",e,t.ALL)},getDownloadInfo:function(e){a.exec("cartoon.getDownloadInfo",e,t.ALL)},jumpToDownloadWindow:function(e){a.exec("cartoon.jumpToDownloadWindow",e,t.ALL)}},window:{getWindowNumber:function(e){a.exec("window.getWindowNumber",e,t.ALL)},openMultiWindowMenu:function(e){a.exec("window.openMultiWindowMenu",e,t.ALL)},setConfig:function(e){a.exec("window.setConfig",e,t.ALL)}},freeflow:{retriveUserInfo:function(e){a.exec("freeflow.retriveUserInfo",e,t.ALL)},recordVerifyinfo:function(e){a.exec("freeflow.recordVerifyinfo",e,t.ALL)},activePackage:function(e){a.exec("freeflow.activePackage",e,t.ALL)},getCarrierToken:function(e){a.exec("freeflow.getCarrierToken",e,t.ALL)},setCarrierToken:function(e){a.exec("freeflow.setCarrierToken",e,t.ALL)},getSwitch:function(e){a.exec("freeflow.getSwitch",e,t.ALL)},setSwitch:function(e){a.exec("freeflow.setSwitch",e,t.ALL)},refreshOrder:function(e){a.exec("freeflow.refreshOrder",e,t.ALL)},setPendingOrder:function(e){a.exec("freeflow.setPendingOrder",e,t.ALL)}},gameCenter:{openNaviWindow:function(e){a.exec("gameCenter.openNaviWindow",e,t.IPHONE)},backToLastNaviWindow:function(e){a.exec("gameCenter.backToLastNaviWindow",e,t.IPHONE)},onNaviWindowActive:function(e){a.onEvent("gameCenter.onNaviWindowActive",e,t.IPHONE)}},webview:{notifyPageStatus:function(e){a.exec("webview.notifyPageStatus",e,t.IPHONE)},preloadResources:function(e){a.exec("webview.preloadResources",e,t.ALL)},cleanClientCache:function(e){a.exec("webview.cleanClientCache",e,t.ALL)},enableMediaAutoPlay:function(e){a.exec("webview.enableMediaAutoPlay",e,t.IPHONE)},playVideo:function(e){a.exec("webview.playVideo",e,t.ALL)}},usercenter:{doScoreRefresh:function(e){a.exec("usercenter.doScoreRefresh",e,t.ALL)},goScoreTask:function(e){a.exec("usercenter.goScoreTask",e,t.ALL)},openDuibaUrl:function(e){a.exec("usercenter.openDuibaUrl",e,t.ALL)},switchGoldHunterMode:function(e){a.exec("usercenter.switchGoldHunterMode",e,t.ALL)}},poplayer:{display:function(e){a.exec("poplayer.display",e,t.ALL)},close:function(e){a.exec("poplayer.close",e,t.ALL)},getInfo:function(e){a.exec("poplayer.getInfo",e,t.ALL)},setModalThreshold:function(e){a.exec("poplayer.setModalThreshold",e,t.ALL)},increaseReadTimes:function(e){a.exec("poplayer.increaseReadTimes",e,t.ALL)},setAlphaMode:function(e){a.exec("poplayer.setAlphaMode",e,t.ALL)},navToUrl:function(e){a.exec("poplayer.navToUrl",e,t.ALL)},selectAndOperate:function(e){a.exec("poplayer.selectAndOperate",e,t.ALL)},operateTrackingView:function(e){a.exec("poplayer.operateTrackingView",e,t.ALL)},enableMock:function(e){a.exec("poplayer.enableMock",e,t.ALL)},triggerShow:function(e){a.exec("poplayer.triggerShow",e,t.ALL)}},iap:{pay:function(e){a.exec("iap.pay",e,t.IPHONE)},onPaymentStateChange:function(e){a.onEvent("iap.onPaymentStateChange",e,t.IPHONE)}},ar:{loadModelData:function(e){a.exec("ar.loadModelData",e,t.ALL)},startSession:function(e){a.exec("ar.startSession",e,t.ALL)},stopSession:function(e){a.exec("ar.stopSession",e,t.ALL)},startRecognition:function(e){a.exec("ar.startRecognition",e,t.ALL)},stopRecognition:function(e){a.exec("ar.stopRecognition",e,t.ALL)},openPage:function(e){a.exec("ar.openPage",e,t.ALL)},onRecognize:function(e){a.onEvent("ar.onRecognize",e,t.ALL)}},operate:{addEntrancePriority:function(e){a.exec("operate.addEntrancePriority",e,t.ALL)}},weex:{emitWeexEvent:function(e){a.exec("weex.emitWeexEvent",e,t.ALL)}},ut:{toUT2:function(e){a.exec("ut.toUT2",e,t.ALL)},getTicketId:function(e){a.exec("ut.getTicketId",e,t.ALL)},addNextPageProperties:function(e){a.exec("ut.addNextPageProperties",e,t.ALL)}},qa:{notifyMetaInfo:function(e){a.exec("qa.notifyMetaInfo",e,t.ALL)}},millionwinner:{tryOpenFloat:function(e){a.exec("millionwinner.tryOpenFloat",e,t.ALL)},tryCloseFloat:function(e){a.exec("millionwinner.tryCloseFloat",e,t.ALL)},isFloatOpen:function(e){a.exec("millionwinner.isFloatOpen",e,t.ALL)},openFloatPermission:function(e){a.exec("millionwinner.openFloatPermission",e,t.ALL)},onFloatChanged:function(e){a.onEvent("millionwinner.onFloatChanged",e,t.ALL)}},security:{captchaVerify:function(e){a.exec("security.captchaVerify",e,t.ALL)},encrypt:function(e){a.exec("security.encrypt",e,t.ALL)}},sport:{notifyMatchFollow:function(e){a.exec("sport.notifyMatchFollow",e,t.ALL)}},vturbo:{start:function(e){a.exec("vturbo.start",e,t.ALL)}},wa:{toWa:function(e){a.exec("wa.toWa",e,t.ALL)}},clouddrive:{notifyMemberInfoChange:function(e){a.exec("clouddrive.notifyMemberInfoChange",e,t.ALL)},onBackupStateChange:function(e){a.subscribeEvent("clouddrive.onBackupStateChange",e,t.ALL)},onDownloadStateChange:function(e){a.subscribeEvent("clouddrive.onDownloadStateChange",e,t.ALL)},onDownloadSessionStateChange:function(e){a.subscribeEvent("clouddrive.onDownloadSessionStateChange",e,t.ALL)},onUploadStateChange:function(e){a.subscribeEvent("clouddrive.onUploadStateChange",e,t.ALL)},onUploadSessionStateChange:function(e){a.subscribeEvent("clouddrive.onUploadSessionStateChange",e,t.ALL)}},message:{getMessage:function(e){a.exec("message.getMessage",e,t.ALL)},markMessageRead:function(e){a.exec("message.markMessageRead",e,t.ALL)}},mission:{getProgress:function(e){a.exec("mission.getProgress",e,t.ALL)},getAllProgress:function(e){a.exec("mission.getAllProgress",e,t.ALL)},confirm:function(e){a.exec("mission.confirm",e,t.ALL)},batchConfirm:function(e){a.exec("mission.batchConfirm",e,t.ALL)},trigger:function(e){a.exec("mission.trigger",e,t.ALL)},resetTask:function(e){a.exec("mission.resetTask",e,t.ALL)},onStateChange:function(e){a.onEvent("mission.onStateChange",e,t.ALL)}}}}),define("apiCompatibleImpl",function(e,o,n){function t(e,o){for(var n="",t=e.split(","),i=0;i<t.length;i++){var a=t[i],r=o[t[i]];r&&(a=r),n=""!==n?n+","+a:a}return n}function i(e,o,n){e&&e.call(this,{errCode:o,errMsg:n})}var a=e("constant"),r=e("util"),c=e("bridge"),s={QRcode:"QRcodeGenerator"},u={SinaWeibo:"kSinaWeibo",WechatFriends:"kWeixin",WechatTimeline:"kWeixinFriend",QQ:"kQQ",Qzone:"KQZone",QRcodeGenerator:"QRcodeGenerator",DingDing:"DingDing",ClipBoard:"ClipBoard"};o.exec=function(e,o,n){r.log(e,"apiCompatibleImpl exec");var l;ucapi.invoke?l=!0:(i(o.fail,a.callbackStatus.INVALID_METHOD,"ucapi.invoke not exsit, should load in UCBrowser !"),l=!1),l?(l=r.getPlatform(),n!==a.platform.ALL&&l!==n?o&&o.fail&&i(o.fail,a.callbackStatus.INVALID_METHOD,"this api not supported this platform"):("biz.share"===e?(r.getPlatform()==a.platform.ANDROID?(o.sourceUrl&&(o.url=o.sourceUrl,delete o.sourceUrl),o.imageUrl&&(o.image_url=o.imageUrl,delete o.imageUrl),o.screenshotHtmlNodeId&&(""!=o.screenshotHtmlNodeId&&(l=r.getNodePosById(o.screenshotHtmlNodeId),""!=l&&(l=l.join(",")),o.share_rect=l),delete o.screenshotHtmlNodeId),o.target&&(o.target=t(o.target,s)),o.disableTarget&&(o.invisible_platforms=t(o.disableTarget,s),delete o.disableTarget),window.ucweb.startRequest("shell.share",[JSON.stringify(o)])):(o.screenshotHtmlNodeId&&(o.htmlNode=o.screenshotHtmlNodeId,delete o.screenshotHtmlNodeId),o.target&&(o.target=t(o.target,u)),o.disableTarget&&(o.disableTarget=t(o.disableTarget,u)),o.type&&(o.shareStyle="img"===o.type?"shareImage":o.type,delete o.type),o.triggerFn&&(o.jsCallBackFun=o.triggerFn,delete o.triggerFn),ucbrowser.web_shareEX(JSON.stringify(o))),l=!0):l=!1,l||c.exec(e,o,n))):r.log(e,"should load in UCBrowser")}});var apiDef=require("apidef"),util=require("util");window.ucapi&&window.ucapi.debug&&window.addEventListener("error",function(e){util.debugLog("onerror:"+e)}),window.ucapi?extenducapi():window.ucapi=apiDef.ucapi,Object.defineProperty(ucapi,"buildDate",{value:"2019-09-03 17:45:26",writable:!1}),Object.defineProperty(ucapi,"version",{value:"2.8.60",writable:!1})}(window)},Tzja:function(e,o){!function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,o){return e<<o|e>>>32-o},rotr:function(e,o){return e<<32-o|e>>>o},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var o=0;o<e.length;o++)e[o]=n.endian(e[o]);return e},randomBytes:function(e){for(var o=[];e>0;e--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(e){for(var o=[],n=0,t=0;n<e.length;n++,t+=8)o[t>>>5]|=e[n]<<24-t%32;return o},wordsToBytes:function(e){for(var o=[],n=0;n<32*e.length;n+=8)o.push(e[n>>>5]>>>24-n%32&255);return o},bytesToHex:function(e){for(var o=[],n=0;n<e.length;n++)o.push((e[n]>>>4).toString(16)),o.push((15&e[n]).toString(16));return o.join("")},hexToBytes:function(e){for(var o=[],n=0;n<e.length;n+=2)o.push(parseInt(e.substr(n,2),16));return o},bytesToBase64:function(e){for(var n=[],t=0;t<e.length;t+=3)for(var i=e[t]<<16|e[t+1]<<8|e[t+2],a=0;a<4;a++)8*t+6*a<=8*e.length?n.push(o.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],t=0,i=0;t<e.length;i=++t%4)0!=i&&n.push((o.indexOf(e.charAt(t-1))&Math.pow(2,-2*i+8)-1)<<2*i|o.indexOf(e.charAt(t))>>>6-2*i);return n}};e.exports=n}()},V0Zq:function(e,o,n){!function(){var o=n("Tzja"),t=n("+72Q").utf8,i=n("5SCX"),a=n("+72Q").bin,r=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?a.stringToBytes(e):t.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var c=o.bytesToWords(e),s=8*e.length,u=1732584193,l=-271733879,p=-1732584194,f=271733878,d=0;d<c.length;d++)c[d]=16711935&(c[d]<<8|c[d]>>>24)|4278255360&(c[d]<<24|c[d]>>>8);c[s>>>5]|=128<<s%32,c[14+(s+64>>>9<<4)]=s;for(var g=r._ff,m=r._gg,h=r._hh,L=r._ii,d=0;d<c.length;d+=16){var v=u,w=l,y=p,A=f;u=g(u,l,p,f,c[d+0],7,-680876936),f=g(f,u,l,p,c[d+1],12,-389564586),p=g(p,f,u,l,c[d+2],17,606105819),l=g(l,p,f,u,c[d+3],22,-1044525330),u=g(u,l,p,f,c[d+4],7,-176418897),f=g(f,u,l,p,c[d+5],12,1200080426),p=g(p,f,u,l,c[d+6],17,-1473231341),l=g(l,p,f,u,c[d+7],22,-45705983),u=g(u,l,p,f,c[d+8],7,1770035416),f=g(f,u,l,p,c[d+9],12,-1958414417),p=g(p,f,u,l,c[d+10],17,-42063),l=g(l,p,f,u,c[d+11],22,-1990404162),u=g(u,l,p,f,c[d+12],7,1804603682),f=g(f,u,l,p,c[d+13],12,-40341101),p=g(p,f,u,l,c[d+14],17,-1502002290),l=g(l,p,f,u,c[d+15],22,1236535329),u=m(u,l,p,f,c[d+1],5,-165796510),f=m(f,u,l,p,c[d+6],9,-1069501632),p=m(p,f,u,l,c[d+11],14,643717713),l=m(l,p,f,u,c[d+0],20,-373897302),u=m(u,l,p,f,c[d+5],5,-701558691),f=m(f,u,l,p,c[d+10],9,38016083),p=m(p,f,u,l,c[d+15],14,-660478335),l=m(l,p,f,u,c[d+4],20,-405537848),u=m(u,l,p,f,c[d+9],5,568446438),f=m(f,u,l,p,c[d+14],9,-1019803690),p=m(p,f,u,l,c[d+3],14,-187363961),l=m(l,p,f,u,c[d+8],20,1163531501),u=m(u,l,p,f,c[d+13],5,-1444681467),f=m(f,u,l,p,c[d+2],9,-51403784),p=m(p,f,u,l,c[d+7],14,1735328473),l=m(l,p,f,u,c[d+12],20,-1926607734),u=h(u,l,p,f,c[d+5],4,-378558),f=h(f,u,l,p,c[d+8],11,-2022574463),p=h(p,f,u,l,c[d+11],16,1839030562),l=h(l,p,f,u,c[d+14],23,-35309556),u=h(u,l,p,f,c[d+1],4,-1530992060),f=h(f,u,l,p,c[d+4],11,1272893353),p=h(p,f,u,l,c[d+7],16,-155497632),l=h(l,p,f,u,c[d+10],23,-1094730640),u=h(u,l,p,f,c[d+13],4,681279174),f=h(f,u,l,p,c[d+0],11,-358537222),p=h(p,f,u,l,c[d+3],16,-722521979),l=h(l,p,f,u,c[d+6],23,76029189),u=h(u,l,p,f,c[d+9],4,-640364487),f=h(f,u,l,p,c[d+12],11,-421815835),p=h(p,f,u,l,c[d+15],16,530742520),l=h(l,p,f,u,c[d+2],23,-995338651),u=L(u,l,p,f,c[d+0],6,-198630844),f=L(f,u,l,p,c[d+7],10,1126891415),p=L(p,f,u,l,c[d+14],15,-1416354905),l=L(l,p,f,u,c[d+5],21,-57434055),u=L(u,l,p,f,c[d+12],6,1700485571),f=L(f,u,l,p,c[d+3],10,-1894986606),p=L(p,f,u,l,c[d+10],15,-1051523),l=L(l,p,f,u,c[d+1],21,-2054922799),u=L(u,l,p,f,c[d+8],6,1873313359),f=L(f,u,l,p,c[d+15],10,-30611744),p=L(p,f,u,l,c[d+6],15,-1560198380),l=L(l,p,f,u,c[d+13],21,1309151649),u=L(u,l,p,f,c[d+4],6,-145523070),f=L(f,u,l,p,c[d+11],10,-1120210379),p=L(p,f,u,l,c[d+2],15,718787259),l=L(l,p,f,u,c[d+9],21,-343485551),u=u+v>>>0,l=l+w>>>0,p=p+y>>>0,f=f+A>>>0}return o.endian([u,l,p,f])};r._ff=function(e,o,n,t,i,a,r){var c=e+(o&n|~o&t)+(i>>>0)+r;return(c<<a|c>>>32-a)+o},r._gg=function(e,o,n,t,i,a,r){var c=e+(o&t|n&~t)+(i>>>0)+r;return(c<<a|c>>>32-a)+o},r._hh=function(e,o,n,t,i,a,r){var c=e+(o^n^t)+(i>>>0)+r;return(c<<a|c>>>32-a)+o},r._ii=function(e,o,n,t,i,a,r){var c=e+(n^(o|~t))+(i>>>0)+r;return(c<<a|c>>>32-a)+o},r._blocksize=16,r._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var t=o.wordsToBytes(r(e,n));return n&&n.asBytes?t:n&&n.asString?a.bytesToString(t):o.bytesToHex(t)}}()}})});