(()=>{"use strict";var e={821:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tDate.now())return Promise.resolve("lack");m._d=Date.now()+1050*d.frequency}function o(n){t.silent||(0,r.gtag)("event","afg-"+e+"-"+n)}if(t=t||{},!(e=e||""))return o("no"),Promise.resolve("no");var a={type:e};return o("request"),n&&(d.stop&&d.stop(),t.stop&&t.stop()),function(e){var t="reward"===e?3:"preroll"===e?1:2;return(0,c.default)("adShow",t).then((function(e){if(!e||!e.isViewed)return Promise.reject(e&&e.adBreak?"":"no")}))}(e).catch((function(t){return"no"!==t&&"not"!==t?Promise.reject(t):new Promise((function(t,n){function i(e){["frequencyCapped","viewed"].includes(e)?t():n(e)}var s=setTimeout((function(){o("time-afc"),AFCInit(e).then(i,n)}),300);a.adBreakDone=function(e){var t=e.breakStatus;"frequencyCapped"===t&&clearTimeout(s),o("done-"+e.breakFormat+"-"+t),sConsole.log("adBreakDone",e),i(t)},"reward"===e?(a.beforeReward=function(e){clearTimeout(s),e()},a.adDismissed=function(e){},a.adViewed=function(e){}):"preroll"===e?clearTimeout(s):a.beforeBreak=function(){clearTimeout(s)},(0,r.adBreak)(a)}))})).then((function(){sConsole.log("adBreak success")})).catch((function(t){return sConsole.log("adBreak fail",t),"reward"!==e&&(m._d=0),Promise.reject(t)})).finally((function(){n&&(d.start&&d.start(),t.start&&t.start())}))}["single","pure","direct"].forEach((function(e){return d[e]=e in l?l[e]:d[e]}))},889:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(538),i=(o=r)&&o.__esModule?o:{default:o},a=n(322);function s(e){this.constructor=i.default,this.constructor.call(this),this.options=e||{},this.zIndex=this.options.z||s.zIndex++,this.options.styleInit="position:relative;"+(this.options.styleInit||"")}s.zIndex=1e9,s.prototype={__proto__:i.default.prototype,visible:!1,addDom:function(e){this.$el.appendChild(e)},addHTML:function(e){this.addDom((0,a.htmlToNode)(e))},remove:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},setup:function(){var e=this;return e.visible=!1,e.remove(),e.$el=document.createElement(e.options.tag||"div"),e.$el.style.cssText=e.options.styleInit||"",(e.options.container||document.body||document.documentElement).appendChild(e.$el),e.emit("setup"),e.$el.addEventListener("click",(function(t){return e.emit("click",t)})),e.$el.addEventListener("touchstart",(function(t){return e.emit("touchstart",t)})),e.$el.addEventListener("mousedown",(function(t){return e.emit("mousedown",t)})),e},$:function(e){return this.$el.querySelector(e)},show:function(){var e=this;if(!e.visible)return e.$el||e.setup(),e.visible=!0,e.$el.style.cssText=[e.options.styleInit,e.options.styleShow||"","z-index:"+e.zIndex].join(";"),e.emit("show"),!0},hide:function(e){var t=this;t.$el&&t.visible&&(t.visible=!1,t.$el.style.cssText=[t.options.styleInit,t.options.styleHide||"","z-index:"+t.zIndex].join(";"),t.emit("hide",e))}},t.default=s},846:()=>{window.onerror=function(e,t,n){return(new Image).src="https://"+location.hostname.split(".").slice(-2).join(".").toLowerCase()+"/ads.txt?m="+encodeURI(e)+"&u="+encodeURI(t)+"&l="+n+"&v=2022-09-21T08:19:30.117Z&a="+encodeURIComponent(document.title)+"&p="+encodeURIComponent(location.href),!0}},721:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.refreshRecommend=c,t.default=function(){a&&c(),s&&s.addEventListener("click",c)};var o=n(322),r=n(538);function i(e){return'head'}var a=document.querySelector("#recommend_detail"),s=document.querySelector("#refresh");function c(){(0,o.loadJs)("/fish/r"+Math.floor(20*Math.random()).toString().padStart(3,"0")+".js")}window._r_g=function(e){a&&(a.innerHTML=e.map(i).join("")),r.globalEventBus.emit("newAnchor")}},867:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(538),i=(o=r)&&o.__esModule?o:{default:o};function a(e,t){this.constructor=i.default,this.constructor.call(this),this.slider=e,this.options=t||{},this.options.model=this.options.model||"both",this.handleEvent=this.handleEvent.bind(this),this.init()}a.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,a.eventTouchStart=a.touch?"touchstart":"mousedown",a.eventTouchEnd=a.touch?"touchend":"mouseup",a.eventTouchMove=a.touch?"touchmove":"mousemove",a.prototype={__proto__:i.default.prototype,startPos:null,endPos:null,slider:null,domPos:null,isTouch:!1,availArea:null,startPosReal:null,handleEvent:function(e){e.type===a.eventTouchStart?this.start(e):e.type===a.eventTouchMove?this.move(e):e.type===a.eventTouchEnd&&this.end(e)},start:function(e){e.preventDefault();var t=a.touch?e.targetTouches[0]:e,n=this.slider.getBoundingClientRect(),o=n.top,r=n.left,i=n.width,s=n.height,c=this.options.target,u=c?c.offsetWidth:window.innerWidth,l=c?c.offsetHeight:window.innerHeight;this.startPosReal={x:r,y:o},this.startPos={x:t.pageX,y:t.pageY,time:+new Date};var d="both"===this.options.model||"vertical"===this.options.model,f="both"===this.options.model||"horizon"===this.options.model;this.availArea={canHorizon:f,canVertical:d,leftMin:-1*r,leftMax:u-r-i,topMin:-1*o,topMax:l-o-s},this.domPos={x:this.slider.offsetLeft,y:this.slider.offsetTop},document.documentElement.addEventListener(a.eventTouchMove,this.handleEvent,!1),document.documentElement.addEventListener(a.eventTouchEnd,this.handleEvent,!1),this.emit("touchstart",e)},move:function(e){if(this.isTouch=!0,!(e.targetTouches&&e.targetTouches.length>1||e.scale&&1!==e.scale)){var t=a.touch?e.targetTouches[0]:e;this.endPos={x:Math.min(Math.max(this.availArea.leftMin,t.pageX-this.startPos.x),this.availArea.leftMax),y:Math.min(Math.max(this.availArea.topMin,t.pageY-this.startPos.y),this.availArea.topMax)},this.slider.style.transform="translate("+(this.availArea.canHorizon?this.endPos.x:0)+"px,"+(this.availArea.canVertical?this.endPos.y:0)+"px)",this.emit("touchmove",e)}},end:function(e){e.preventDefault(),this.emit("touchend",e),this.isTouch&&(this.slider.style.bottom="auto",this.slider.style.right="auto",this.isTouch=!1,this.availArea.canHorizon&&(this.slider.style.left=parseInt(this.startPosReal.x+this.endPos.x)+"px",this.isTouch=0!==this.endPos.x),this.availArea.canVertical&&(this.slider.style.top=parseInt(this.startPosReal.y+this.endPos.y)+"px",this.isTouch=0!==this.endPos.y),this.slider.style.transform="",this.endPos=null,this.availArea=null),!this.isTouch&&e.path.includes(this.slider)&&this.emit("tap",e),this.isTouch=!1,document.documentElement.removeEventListener(a.eventTouchMove,this.handleEvent,!1),document.documentElement.removeEventListener(a.eventTouchEnd,this.handleEvent,!1)},init:function(){this.slider.addEventListener(a.eventTouchStart,this.handleEvent,!1)}},t.default=a},223:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e=e||{},s.visible||(clearTimeout(d),f(e.time||("reward"===e.type?15:"preroll"===e.type||"start"===e.type?5:7),"reward"===e.type?"Reward":"Could be closed"),s.emit("closeOff"),s.show(),function(e){var t=l.querySelector(".ad-box");t&&l.removeChild(t);l.appendChild((0,a.htmlToNode)(['
"].join(" "))),(adsbygoogle=window.adsbygoogle||[]).push({})}(e)),s.once("close",(function(t){e.splashDown&&e.splashDown(t)}))};var o,r=n(889),i=(o=r)&&o.__esModule?o:{default:o},a=n(322);var s=new i.default({z:2147483647,styleInit:["position:fixed","display:none","left:0","right:0","top:0","bottom:0","background:rgba(52,58,65,0.6)","backdrop-filter: blur(6px)"].join(";"),styleShow:["display: block"].join(";"),styleHide:["display: none"].join(";")});s.setup(),s.addHTML(['
','
','
','
',"
",'
',"
","
",'
'].join(""));var c=s.$(".splash-count-down"),u=s.$(".splash-close"),l=s.$(".splash-box"),d=void 0;function f(e,t){s._leftTime=e,e>=0?(c.innerText=t+" in "+e+" seconds",d=setTimeout((function(){f(--e,t)}),1e3)):(s.emit("closeOn"),c.innerText=" Ad ")}function h(e){s.emit("close",s._leftTime>=0?"dismissed":"viewed"),s.hide(),(0,a.prevent)(e)}u.addEventListener("touchstart",h),u.addEventListener("mousedown",h),u.addEventListener("pointerdown",h),s.on("closeOff",(function(){u.style.width="0"})),s.on("closeOn",(function(){u.style.width="30px"}))},378:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=new i.default({styleInit:["position:fixed","background-color:rgba(0,0,0,0.3)","font-family: Roboto;","line-height: 3;","font-size: 0;","color: white;","top:45%","right:0","left:0","text-align:center","opacity:0","transition:opacity 0.5s;"].join(";"),styleShow:["opacity:1","font-size: 16px;"].join(";"),styleHide:["opacity:0"].join(";")});e.setup(),e.$el.innerHTML=["Loading Ad..."].join(""),e.show=function(t,n){return i.default.prototype.show.call(e),e.$el.innerHTML=t,clearTimeout(e._prev),e._prev=setTimeout((function(){e.hide()}),n||1e3),e._prev};var t=function(t,n){e.show(t,n)};return t.def=e,t};var o,r=n(889),i=(o=r)&&o.__esModule?o:{default:o}},935:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=document.querySelector("#back"),n=e.getBoundingClientRect();function o(){setTimeout((function(){t.style.left=window.innerWidth-70+"px",t.style.top="10px",t.style.width="30px",t.style.borderRadius="999px"}),300)}t.style.left=n.left+"px",t.style.top=n.top+"px",t.style.width=n.width+"px",t.style.borderRadius="5px",t.style.opacity=1,t.style.transition="width .3s,top 0.5s,left 0.7s",o(),setTimeout((function(){t.style.opacity=.5,t.style.transition="none"}),1200);var r="onorientationchange"in window?"orientationchange":"resize";window.addEventListener(r,o,{passive:!0})}},865:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return o.noop;function i(r){(new Image).src=(0,o.appendParam)("https://"+o.topDomain+"/s/game/report",{gaid:e,event_id:n,game_id:t,cmd:r,timestamp:Date.now()/1e3|0})}return r.globalEventBus.once("play",(function(){i("play")})),r.globalEventBus.once("enjoy",(function(){i("enjoy")})),setInterval((function(){i("heart")}),15e3),i};var o=n(322),r=n(538)},375:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.ga||(e.ga=function(){e.ga.q.push(arguments)},e.ga.q=[],e.ga.l=1*new Date,Object.defineProperty(e,"GoogleAnalyticsObject",{get:function(){return"ga"},set:function(t){sConsole.log("GoogleAnalyticsObject",t),e[t]=e.ga}})),e.dataLayer=e.dataLayer||[],e.gtag=function(){sConsole.log("gtag",arguments),e.dataLayer.push(arguments)},e.adsbygoogle=e.adsbygoogle||[],e.adConfig=e.adBreak=function(t){sConsole.log("adBreak",t),e.adsbygoogle.push(t)},e.gameReady=(0,o.limitHandler)((function(){(0,o.gtag)("event","ready")})),e.gameLoaded=(0,o.limitHandler)((function(){(0,o.gtag)("event","loaded")})),console.log=console.info=console.warn=console.error=console.table=o.noop;var t=e.document.documentElement;e.addEventListener("message",(function(e){if(e.data&&"attr"===e.data.type)switch(e.data.name){case"class":t.classList?t.classList[e.data.method||"add"](e.data.value):"remove"===e.data.method?t.className=t.className.replace(e.data.value,""):t.className+=" "+e.data.value;break;default:t[e.data.method||"setAttribute"](e.data.name,e.data.value)}}))};var o=n(322)},181:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=/\.(png|jpe?g)/i,t="x-oss-process=";function n(n){return n&&e.test(n)&&!n.includes(t)?n+(n.includes("?")?"&":"?")+"x-oss-process=image/quality,q_75/format,webp":n}Element.prototype.setAttribute=(o=Element.prototype.setAttribute,function(){return"src"===arguments[0]&&(arguments[1]=n(arguments[1])),o.apply(this,arguments)});var o;var r=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");r.set=function(e){return function(t){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i2?r-2:0),a=2;a{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if(e.console)return e.console;var n=t.document.createElement("iframe");return n.style.display="none",t.document.documentElement.appendChild(n),t.sConsole=e.console=n.contentWindow.console}},599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.HUTAFG=e.HUTAFG||{playAfg:function(){return AFGInit("next")},playRewardedAfg:function(){return AFGInit("reward")}},e.doggyAFG=e.doggyAFG||e.AFGInit,e.doggyAFC=e.doggyAFC||e.AFCInit}},270:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.isSingle=e.globalGame&&e.globalGame.single||!!(0,o.getQuery)("single"),function(){var e=["","webkit","moz","ms"],t=["requestFullScreen","requestFullscreen"],n=void 0,r=void 0;o.isTop||(r=function(){return Promise.resolve()});e.forEach((function(e){t.forEach((function(t){e&&(t=t.charAt(0).toUpperCase()+t.substr(1)),n||(n=Element.prototype[e+t]),Element.prototype[e+t]=r||n}))}))}(),e.gameReady=o.noop,e.gameLoaded=o.noop};var o=n(322)},554:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e.__called_i)return;e.__called_i=!0,e.__csAttr=s.csAttr,e._isTop=s.isTop,(0,o.default)(e),(0,r.default)(e),(0,i.default)(e),(0,a.default)(e),"data-orientation"in s.csAttr&&e.parent.postMessage({type:"attr",name:"class",method:"add",value:"orientation-"+(s.csAttr["data-orientation"]||"landscape")},"*")};var o=c(n(641)),r=c(n(375)),i=c(n(181)),a=c(n(270)),s=n(322);function c(e){return e&&e.__esModule?e:{default:e}}},132:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={},n=Object.keys(e);n.forEach((function(n){o.isTop?window[n]=e[n]:window[n]=function(){var e=[].slice.call(arguments,0);return new Promise((function(t,r){var i=(0,o.uuid)();top.postMessage({name:s,event:n,id:i,args:u(e,n)},"*");window.addEventListener(c,(function e(s){var u=s.data;if(u.name!==a||u.id!==i)return!1;sConsole.log(o.isTop,a,n,u),window.removeEventListener(c,e),window[n]._called=!0,u.fail?r(u.fail):t(u.done)}))}))},t[n]=window[n]})),setInterval((function(){n.forEach((function(e){window[e]!==t[e]&&(window[e]=t[e])}))}),33)};var o=n(322),r={},i="CACB",a="CCB",s="CE",c="message";window.addEventListener(c,(function(e){var t=e.data;if(t.name!==i)return!1;var n=r[t.id];n&&n(l(e.source,t.data)),delete r[t.id]}));var u=function(e,t){return(0,o.deepTouchFactory)("function")(e,(function(e,n){var a=(0,o.uuid)(8);return r[a]=function(r){sConsole.log(o.isTop,i,t,n,r),e(r)},"function "+a}))},l=function(e,t,n){return(0,o.deepTouchFactory)("string")(t,(function(t){var o=(t.match(/^function (.{8})$/)||[])[1];return o?function(t){e.postMessage({name:i,id:o,data:u(t,n)},"*")}:t}))};o.isTop&&window.addEventListener(c,(function(e){var t=e.data;if(t.name!==s)return!1;var n={name:a,id:t.id};if("function"==typeof window[t.event]){sConsole.log(o.isTop,s,t.event,t);var r=e.source,i=window[t.event].apply(window,l(r,t.args,t.event));(i&&i.then&&i||Promise.resolve(i)).then((function(e){n.done=e}),(function(e){n.fail=e})).finally((function(){r.postMessage(n,"*")}))}}))},538:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n-1&&n.splice(o,1)}else n.length=0}}},{key:"emit",value:function(e){for(var t=this.get(e),n=[].slice.call(arguments,1),o=0;o0&&(t[o].t-=1,0===t[o].t&&(this.off(e,t[o].h),o--))}}},{key:"inherit",value:function(e){var t=this;Object.entries(e._listener||{}).forEach((function(e){e[1]&&e[1].length&&e[1].forEach((function(n){t.on(e[0],n.h,n.t)}))}))}}]),e}();t.globalEventBus=window._eventBus=window._eventBus||new o,t.globalEventCache=window._cacheBus=window._cacheBus||{};t.default=o},383:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inAPP=t.AM=t.GM=void 0;var o,r,i,a=n(535),s=(o=a)&&o.__esModule?o:{default:o},c=(r=s.default.mark((function e(t,n){var o,r,i,a,l=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=[].slice.call(l,0),r=Date.now(),i=(0,u.uuid)(4),sConsole.log(r+"NativeCall",t+i,n),h){e.next=6;break}throw"not";case 6:return c.c=(c.c||0)+1,a="_nativeCall"+c.c,e.abrupt("return",new Promise((function(e,s){window[a]=function(t){delete window[a],e(t)};var c=void 0;try{d?c=d[t]?o.length>1?d[t](r,n):d[t](r):d.doAndroidAction(r,t,JSON.stringify({method:a,args:n})):f&&(c=f.doAndroidAction(r,t,JSON.stringify({method:a,args:n}))),void 0!==c&&(0,u.parseJSON)(c)!==c&&e(c)}catch(e){sConsole.log(r+"NativeError",t+i,e),s(e)}})).then((function(e){if(e=(0,u.parseJSON)(e),sConsole.log(r+"NativeResult",t+i,e),e.response&&404===e.response.code)throw"no";return e})));case 9:case"end":return e.stop()}}),e,this)})),i=function(){var e=r.apply(this,arguments);return new Promise((function(t,n){function o(r,i){try{var a=e[r](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then((function(e){o("next",e)}),(function(e){o("throw",e)}));t(s)}return o("next")}))},function(e,t){return i.apply(this,arguments)}),u=n(322),l=n(538);var d=t.GM=window.GameMethod,f=t.AM=window.AndroidMethod&&window.AndroidMethod.doAndroidAction?window.AndroidMethod:void 0,h=t.inAPP=!!d||!!f;window.appOnDestroy=function(){l.globalEventBus.emit("destroy")},window.appOnResume=function(){l.globalEventBus.emit("resume")},window.appOnPause=function(){l.globalEventBus.emit("pause")},t.default=c},322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(){}function i(e,t,o){if("object"===(void 0===t?"undefined":n(t)))for(var r in t)t.hasOwnProperty(r)&&(e=i(e,r,t[r]));else new RegExp("(?:\\?|\\&)"+t+"=").test(e)||void 0===o||(e+=(e.indexOf("?")>-1?"&":"?")+t+"="+encodeURIComponent(o));return e}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object.fromEntries(e.split("&").map((function(e){return e.split("=")})).map((function(e){var t=o(e,2),n=t[0],r=t[1];return[n,r&&decodeURIComponent(r)]})))}function s(e){return[].reduce.call(e.attributes,(function(e,t){return e[t.name]=t.value,e}),{})}t.noop=r,t.limitHandler=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){if(!(t<1))return t--,e.apply(this,arguments)}},t.isEmpty=function(e){return null==e},t.deepTouchFactory=function(e){return function t(o,r,i){return Array.isArray(o)?o.map((function(e){return t(e,r,i)})):"[object Object]"===Object.prototype.toString.call(o)?Object.fromEntries(Object.keys(o).map((function(e){return[e,t(o[e],r,e)]}))):(void 0===o?"undefined":n(o))===e?r(o,i):o}},t.uuid=function e(t,n){return t=+t||8,Math.random().toString(32).slice(2,Math.min(8,t)+2)+(n||"")+(t>8?e(t-8,n):"")},t.loadJs=function(e,t,n){var o=(document.createElementOrigin||document.createElement).call(document,"script");if(o.async=!0,o.src=e,n)for(var r in n)o.setAttribute(r,n[r]);return setTimeout((function(){(t||document.body||document.head||document.documentElement).appendChild(o)})),o},t.appendParam=i,t.overwriteParam=function e(t,o,r){if("object"===(void 0===o?"undefined":n(o)))for(var a in o)o.hasOwnProperty(a)&&(t=e(t,a,o[a]));else{var s=new RegExp("((\\?|&)?"+o+"=).*?(?=&|\\?|$|#)");t=s.test(t)?void 0!==r?t.replace(s,"$1"+encodeURIComponent(r)):t.replace(s,"$2").replace(/&+(#.*)?$/,"$1"):i(t,o,r)}return t},t.query2Obj=a,t.obj2Query=function(e){return Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")},t.parseUrl=function(e){return{path:e.split("?")[0],query:a(e.split("?")[1])}},t.getQuery=function(e,t){return((t||location.search).match(new RegExp("(?:^|\\?|&|#)"+e+"=(.*?)(?=$|&|#)"))||[])[1]},t.attribute2Obj=s,t.prevent=function(e){return e.stopImmediatePropagation(),e.preventDefault(),!1},t.adConfig=function(e){window.adConfig&&window.adConfig(e)},t.adBreak=function(e){window.adBreak&&window.adBreak(e)},t.gtag=function(){window.gtag&&window.gtag.apply(null,arguments)},t.parseJSON=function(e){if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(e){return}},t.tap=function(e,t){var n=void 0;function o(e,o){n&&(n=null,setTimeout((function(){t.call(e,o)}),125))}e.addEventListener("touchstart",(function(e){n=e})),e.addEventListener("mousedown",(function(e){n=e})),e.addEventListener("touchend",(function(e){o(this,e)})),e.addEventListener("mouseup",(function(e){o(this,e)}))},t.activeResizeFont=function(){var e=document.documentElement,t="currentFontSize";function n(){var n=Math.max(Math.min(Math.floor(e.clientWidth/320),24),10);if(n===e[t])return!1;e.style.fontSize=n+"px",e[t]=n}window.addEventListener("resize",n),n()},t.htmlToNode=function(e){var t=document.createElement("template");return t.innerHTML=e,document.importNode(t.content,!0)},Object.fromEntries=Object.fromEntries||function(e){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports=n(238)},238:(e,t,n)=>{var o=function(){return this}()||Function("return this")(),r=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,i=r&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=n(760),r)o.regeneratorRuntime=i;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},760:(e,t,n)=>{e=n.nmd(e);var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(t){var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",l="object"===o(e),d=t.regeneratorRuntime;if(d)l&&(e.exports=d);else{(d=t.regeneratorRuntime=l?e.exports:{}).wrap=_;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",m={},y={};y[s]=function(){return this};var g=Object.getPrototypeOf,w=g&&g(g(C([])));w&&w!==r&&i.call(w,s)&&(y=w);var b=j.prototype=x.prototype=Object.create(y);A.prototype=b.constructor=j,j.constructor=A,j[u]=A.displayName="GeneratorFunction",d.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},d.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(b),e},d.awrap=function(e){return{__await:e}},P(T.prototype),T.prototype[c]=function(){return this},d.AsyncIterator=T,d.async=function(e,t,n,o){var r=new T(_(e,t,n,o));return d.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},P(b),b[u]="Generator",b[s]=function(){return this},b.toString=function(){return"[object Generator]"},d.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},d.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,r){return s.type="throw",s.arg=e,t.next=o,r&&(t.method="next",t.arg=n),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:C(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,o){var r=t&&t.prototype instanceof x?t:x,i=Object.create(r.prototype),a=new k(o||[]);return i._invoke=function(e,t,n){var o=f;return function(r,i){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===r)throw i;return S()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=E(e,t,n);if("normal"===c.type){if(o=n.done?v:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function A(){}function j(){}function P(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,a,s){var c=E(e[n],e,r);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"===(void 0===l?"undefined":o(l))&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):Promise.resolve(l).then((function(e){u.value=e,a(u)}),s)}s(c.arg)}var n;this._invoke=function(e,o){function r(){return new Promise((function(n,r){t(e,o,n,r)}))}return n=n?n.then(r,r):r()}}function M(e,t){var o=e.iterator[t.method];if(o===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=E(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function C(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o{n.r(t)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o](i,i.exports,n),i.loaded=!0,i.exports}n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e=v(n(535));n(426);var t=v(n(821)),o=n(538),r=v(n(132)),i=v(n(378)),a=v(n(867));n(846);var s=v(n(865)),c=v(n(721)),u=v(n(935)),l=v(n(554)),d=v(n(599)),f=n(383),h=v(f),p=n(322);function v(e){return e&&e.__esModule?e:{default:e}}var m=window.globalGame||{},y=!!m.id,g={gaID:m.gaID||"UA-186052164-4",debug:(0,p.getQuery)("debug")},w=g.sid=(0,p.getQuery)("sid")||(0,p.uuid)(8),b=m.id||+(0,p.getQuery)("game_id")||0,_=(0,p.getQuery)("gaid")||"",E=(0,p.getQuery)("a")||"",x=(0,p.getQuery)("b")||"";E&&x&&(_=_||E.substr(0,4)+x+E.substr(4));var A=((location||{}).pathname||"").toLowerCase(),j=(0,p.getQuery)("utm_source")||(f.AM?"mini":f.GM?"box":document.referrer||location.hostname),P={event_category:A.includes("play")?"mobi":A.includes("category")?"list":"home",event_label:document.title,custom_map:{dimension1:"h5_version_code",dimension2:"app_version_code",dimension3:"apkch",dimension4:"adch"},h5_version_code:"1.0.0",app_version_code:0,apkch:"(unknown)",adch:"(unknown)"};function T(){function e(e,t){return!!e.getAttribute("data-m-"+t)}function t(e,t){return e.setAttribute("data-m-"+t,"1")}[].forEach.call(document.querySelectorAll("a[data-label]"),(function(n){if(!e(n,"label")){t(n,"label");var o=n.getAttribute("data-label");o&&n.addEventListener("click",(function(){(0,p.gtag)("event",o),window.userReport("other")}))}})),document.referrer&&[].forEach.call(document.querySelectorAll(".home"),(function(n){e(n,"home")||(t(n,"home"),n.addEventListener("click",(function(e){(0,p.prevent)(e),history.go(-1),setTimeout((function(){location.href=n.href}),300)})))})),[].forEach.call(document.querySelectorAll("a[href]"),(function(n){if(!e(n,"href")){t(n,"href");var o=n.href;o=(o=(0,p.overwriteParam)(o,{utm_source:j,gaid:_,game_id:b,sid:w})).replace(/\{GP}/g,m.gp||"").replace(/\{DOMAIN}/g,location.hostname),n.href=o;var r=n.getAttribute("data-gp");if(r){if(!f.inAPP)return;n.setAttribute("target","_blank"),n.addEventListener("click",(function(e){return fetch("/apk/"+r+".json").then((function(e){return e.json()})).then((function(e){return(0,h.default)("playGame",JSON.stringify(e))})).then((function(e){return!1===e||void 0===e&&Promise.reject("web")})).catch((function(){location.href=o})),(0,p.prevent)(e)}))}}}))}function M(){function e(){return(m.pure?Promise.resolve():AFGInit("start")).finally((function(){window.postMessage({type:"attr",name:"class",method:"add",value:"in-play"},"*")}))}var t=document.querySelector("#back"),n=document.querySelector("#play");if(n?n.addEventListener("click",(function(o){e().finally((function(){t&&(0,u.default)(n)})),(0,p.prevent)(o)})):y&&!m.direct&&e(),t){var o=new a.default(t,{target:document.querySelector("#game")});o.start=function(e){t.style.opacity=1,a.default.prototype.start.call(this,e)},o.end=function(e){t.style.opacity=.5,a.default.prototype.end.call(this,e)},o.on("tap",(function(e){window.postMessage({type:"attr",name:"class",method:"remove",value:"in-play"},"*"),(0,p.prevent)(e)}));var r=document.querySelector("#desc");r&&(r.offsetHeight||(0,u.default)(n))}}!function(n){var a=this;if(!n.__called_a){if(n.__called_a=!0,o.globalEventBus.on("newAnchor",T),(0,p.activeResizeFont)(),(0,l.default)(n),(0,t.default)(n),(0,d.default)(n),(0,r.default)({userReport:(0,s.default)(_,b,w),$toast:i.default}),o.globalEventBus.emit("newAnchor"),!document.querySelector('link[href*="hub.min.css"]')){var u=document.createElement("link");u.setAttribute("rel","stylesheet"),u.setAttribute("href","/hub.min.css"),document.documentElement.appendChild(u)}var v,E;n.addEventListener("load",n.gameLoaded),p.isTop?(y&&(m.direct?setTimeout(M,1e4):M()),(0,c.default)(),(f.AM?(0,h.default)("getClientInfo").then((v=e.default.mark((function t(n){var o,r;return e.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P.app_version_code=n.appVersionCode,P.apkch=n.apkch,!n.deviceId){e.next=13;break}return e.prev=3,e.next=6,get("https://"+p.topDomain+"/feeds/outer/branch/info?gaid="+n.deviceId);case 6:o=e.sent,r=o.adch,P.adch=r||"",e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:P.adch=n.adch;case 14:case"end":return e.stop()}}),t,a,[[3,11]])})),E=function(){var e=v.apply(this,arguments);return new Promise((function(t,n){return function o(r,i){try{var a=e[r](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then((function(e){o("next",e)}),(function(e){o("throw",e)}));t(s)}("next")}))},function(e){return E.apply(this,arguments)})):f.GM?(0,h.default)("getAppinfo").then((function(e){var t=e.appInfo;P.app_version_code=t.clientVersionCode,P.apkch=t.channel})):Promise.resolve()).finally((function(){(0,p.gtag)("js",new Date),(0,p.gtag)("config",n.gaID||g.gaID,P)}))):n.ga=p.noop}}(window)})()})();