/** * 冰雪传奇H5 * 2022 XX信息科技有限公司 * * @author 123456 * @wx 123456 * @qq 123456 */ var __reflect=this&&this.__reflect|| function(e,t,i){ e.__class__=t, i?i.push(t):i=[t], e.__types__=e.__types__?i.concat(e.__types__):i }, __extends=this&&this.__extends|| function(e,t){ function i(){ this.constructor=e } for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]); i.prototype=t.prototype, e.prototype=new i }, __awaiter=this&&this.__awaiter|| function(e,t,i,r){ return new(i||(i=Promise))(function(n,o){ function a(e){ try{ l(r.next(e)) }catch(t){ o(t) } } function s(e){ try{ l(r["throw"](e)) }catch(t){ o(t) } } function l(e){ e.done?n(e.value):new i(function(t){ t(e.value) }).then(a,s) } l((r=r.apply(e,t||[])).next()) }) }, __generator=this&&this.__generator|| function(e,t){ function i(e){ return function(t){ return r([e,t]) } } function r(i){ if(n)throw new TypeError("Generator is already executing."); for(;l;)try{ if(n=1,o&&(a=o[2&i[0]?"return":i[0]?"throw":"next"])&&!(a=a.call(o,i[1])).done)return a; switch(o=0,a&&(i=[0,a.value]),i[0]){ case 0: case 1: a=i; break; case 4: return l.label++, { value:i[1], done:!1 }; case 5: l.label++, o=i[1], i=[0]; continue; case 7: i=l.ops.pop(), l.trys.pop(); continue; default: if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){ l=0; continue } if(3===i[0]&&(!a||i[1]>a[0]&&i[1]i;i++)t.push(this.readInt()); return t }, i.prototype.writeInts=function(){ for(var e=[],t=0;tr;r++){ var o=i[r]; this.checkCanClear(o)&&t-this._cache[o]>=e.AHhkf.CLEAR_TIME&&(delete this._cache[o],RES.destroyRes(o)) } }, t.prototype.getSound=function(e){ var t=RES.getRes(e); if(t)this._cache[e]&&(this._cache[e]=egret.getTimer()); else{ if(-1!=this._loadingCache.indexOf(e))return null; this._loadingCache.push(e), RES.getResAsync(e,this.onResourceLoadComplete,this) } return t }, t.prototype.onResourceLoadComplete=function(e,t){ var i=this._loadingCache.indexOf(t);-1!=i&&(this._loadingCache.splice(i,1),this._cache[t]=egret.getTimer(),this.loadedPlay(t)) }, t.prototype.loadedPlay=function(e){}, t.prototype.checkCanClear=function(e){ return!0 }, t }(); e.BaseSound=t, __reflect(t.prototype,"app.BaseSound") }(app||(app={})); var app;! function(e){ var t=function(){ function e(){ this._objs=new Array } return e.prototype.pushObj=function(e){ this._objs.push(e) }, e.prototype.popObj=function(){ return this._objs.length>0?this._objs.pop():null }, e.prototype.clear=function(){ for(;this._objs.length>0;)this._objs.pop() }, e.pop=function(t){ for(var i=[],r=1;r-1?!1:(t.clear&&t.clear(),e._content[i].push(t),!0) }, e.clear=function(){ e._content={} }, e.clearClass=function(t,i){ void 0===i&&(i=null); for(var r=e._content[t];r&&r.length;){ var n=r.pop(); i&&n[i](), n=null } e._content[t]=null, delete e._content[t] }, e.dealFunc=function(t,i){ var r=e._content[t]; if(null!=r){ var n=0, o=r.length; for(n;o>n;n++)r[n][i]() } }, e.wipe=function(e){ if(e)for(var t in e)e.hasOwnProperty(t)&&delete e[t] }, e._content={}, e }(); e.ObjectPool=t, __reflect(t.prototype,"app.ObjectPool") }(app||(app={})); var KdbLz; !function(e){ var t=function(){ function e(e,t){ this.m_ASMapCells=[], this.m_nMarkTag=0, this.listener=e, this.thisObj=this.thisObj } return e.prototype.initFromMap=function(e){ var t=0; this.m_ASMapCells?t=this.m_ASMapCells.length:this.m_ASMapCells=[], this.m_nWidth=e.maxX, this.m_nHeight=e.maxY; var r=this.m_nWidth*this.m_nHeight; r>this.m_ASMapCells.length&&(this.m_ASMapCells.length=r); for(var n=t;r>n;++n)this.m_ASMapCells[n]=new i; var o,a,s,l; for(s=0,o=0;ot||t>=this.m_nWidth||0>r||r>=this.m_nHeight)return[]; if(0>n||n>=this.m_nWidth||0>o||o>=this.m_nHeight)return[]; var a=this.m_ASMapCells[n*this.m_nHeight+o]; if(!a||!a.CanNotMove)return[]; this.reset(t,r); var s=!1, l=t, h=r, c=this.m_ASMapCells[l*this.m_nHeight+h]; c.GCost=0, c.LastX=-1, c.LastY=-1, c.X=l, c.Y=h, c.MarkTag=this.m_nMarkTag, c.HCost=10*(Math.abs(n-t)+Math.abs(o-r)); for(var p,g,u,m;;){ if(l==n&&h==o){ s=!0; break } for(c.State!=i.CSCLOSE&&this.closeCell(c),p=0;8>p;++p)g=l+e.NEIGHBORPOS_X_VALUES[p], u=h+e.NEIGHBORPOS_Y_VALUES[p], 0>g||g>=this.m_nWidth||0>u||u>=this.m_nHeight||(m=this.m_ASMapCells[g*this.m_nHeight+u],m.CanNotMove&&(g==n&&u==o||this.listener.call(this.thisObj,{ x:g, y:u }))&&(m.MarkTag!=this.m_nMarkTag||m.State==i.CSNONE?(m.MarkTag=this.m_nMarkTag,m.LastX=l,m.LastY=h,m.btDir=p,m.GCost=c.GCost+e.AS_MOVECOST[1&p],m.HCost=10*(Math.abs(n-g)+Math.abs(o-u)),this.openCell(m)):m.State==i.CSOPEN&&m.GCost>c.GCost+e.AS_MOVECOST[1&p]&&(m.LastX=l,m.LastY=h,m.btDir=p,m.GCost=c.GCost+e.AS_MOVECOST[1&p],this.reopenCell(m)))); if(c=this.m_LastOpenCell,null==c)break; l=c.X, h=c.Y } if(s){ var d=[]; for(d.push(c);;)if(c=this.m_ASMapCells[c.LastX*this.m_nHeight+c.LastY],d.push(c),c.LastX<=0&&c.LastY<=0||c.MarkTag!=this.m_nMarkTag)break; return d } return[] }, e.prototype.reset=function(e,t){ var i=this.m_ASMapCells[e*this.m_nHeight+t]; i.LastX=0, i.LastY=0, i.HCost=0, i.GCost=0, i.FValue=0, i.State=0, i.Prev=null, i.Next=null, i.btDir=0, this.m_LastOpenCell=null, this.m_nMarkTag=this.m_nMarkTag+1 }, e.prototype.closeCell=function(e){ e.State==i.CSOPEN&&(e.Prev&&(e.Prev.Next=e.Next),e.Next&&(e.Next.Prev=e.Prev),e==this.m_LastOpenCell&&(this.m_LastOpenCell=e.Prev)), e.State=i.CSCLOSE }, e.prototype.openCell=function(e){ e.State=i.CSOPEN; var t=e.HCost+e.GCost; e.FValue=t; var r=this.m_LastOpenCell; if(r){ for(;r.FValuet){ do i=i.Next; while(i&&i.FValue>t); e.Prev&&(e.Prev.Next=e.Next), e.Next&&(e.Next.Prev=e.Prev), i?(e.Next=i,i.Prev?(e.Prev=i.Prev,i.Prev.Next=e):e.Prev=null,i.Prev=e):(e.Prev=this.m_LastOpenCell,e.Next=null,this.m_LastOpenCell.Next=e,this.m_LastOpenCell=e) } }, e.prototype.ishidden=function(e,t){ return 0>e||e>=this.m_nWidth||0>t||t>=this.m_nHeight?!1:this.m_ASMapCells[e*this.m_nHeight+t]?3==this.m_ASMapCells[e*this.m_nHeight+t].CanNotMove:!1 }, e.prototype.isWalkableTile=function(e,t){ return 0>e||e>=this.m_nWidth||0>t||t>=this.m_nHeight?!1:this.m_ASMapCells[e*this.m_nHeight+t]?this.m_ASMapCells[e*this.m_nHeight+t].CanNotMove>0:!1 }, e.RMOVECOST=14, e.DMOVECOST=10, e.AS_MOVECOST=[e.DMOVECOST,e.RMOVECOST], e.NEIGHBORPOS_X_VALUES=[0,1,1,1,0,-1,-1,-1], e.NEIGHBORPOS_Y_VALUES=[-1,-1,0,1,1,1,0,-1], e }(); e.DVnj=t, __reflect(t.prototype,"KdbLz.DVnj"); var i=function(){ function e(){} return e.CSNONE=0, e.CSOPEN=1, e.CSCLOSE=2, e }(); e.ASMapCell=i, __reflect(i.prototype,"KdbLz.ASMapCell") }(KdbLz||(KdbLz={})); var KdbLz; !function(e){ var t=function(){ function e(){} return Object.defineProperty(e,"IsHtml5",{ get:function(){ return egret.Capabilities.runtimeType==egret.RuntimeType.WEB }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"vDCH",{ get:function(){ return egret.Capabilities.runtimeType==egret.RuntimeType.RUNTIME2 }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"iFbP",{ get:function(){ return 2==Main.vZzwB.device||egret.Capabilities.isMobile; }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsIOS",{ get:function(){ return"iOS"==egret.Capabilities.os }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsIpad",{ get:function(){ if(e.iFbP){ var t=navigator.userAgent, i=/(?:Android)/.test(t), r=/(?:Firefox)/.test(t), n=/(?:iPad|PlayBook)/.test(t)||i&&!/(?:Mobile)/.test(t)||r&&/(?:Tablet)/.test(t); return n } return!1 }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsPC",{ get:function(){ return 2!=Main.vZzwB.device&&!egret.Capabilities.isMobile }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsQQBrowser",{ get:function(){ return this.IsHtml5&&-1!=navigator.userAgent.indexOf("MQQBrowser") }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsIEBrowser",{ get:function(){ return this.IsHtml5&&-1!=navigator.userAgent.indexOf("MSIE") }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsFirefoxBrowser",{ get:function(){ return this.IsHtml5&&-1!=navigator.userAgent.indexOf("Firefox") }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsChromeBrowser",{ get:function(){ return this.IsHtml5&&-1!=navigator.userAgent.indexOf("Chrome") }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsSafariBrowser",{ get:function(){ return this.IsHtml5&&-1!=navigator.userAgent.indexOf("Safari") }, enumerable:!0, configurable:!0 }), Object.defineProperty(e,"IsOperaBrowser",{ get:function(){ return this.IsHtml5&&-1!=navigator.userAgent.indexOf("Opera") }, enumerable:!0, configurable:!0 }), e }(); e.qOtrbE=t, __reflect(t.prototype,"KdbLz.qOtrbE") }(KdbLz||(KdbLz={})); var KdbLz; !function(e){ var t=function(){ function t(){} return t.startUpHeartbeat=function(){ var e=function(){ t.heartbeatTime=egret.getTimer(), egret.ticker.update() }; t.isTimeout>5&&(t.isTimeout=10,e()), t.isTimeout++ }, t.stopUpHeartbeat=function(){ t.isTimeout=0, t.heartbeatTime=egret.getTimer() }, t.fixAll=function(){ function i(){ RES.config.config.fileSystem.profile(), console.log(r); var e=0; for(var t in r){ var i=r[t]; i instanceof egret.Texture&&(e+=i.$bitmapWidth*i.$bitmapHeight*4) } console.log("gpu size : "+(e/1024).toFixed(3)+"kb") } egret.BitmapData.$removeDisplayObject=function(t,i){ if(i){ var r=i.hashCode; if(r&&egret.BitmapData._displayList[r]){ var n=egret.BitmapData._displayList[r], o=n.indexOf(t); o>=0&&n.splice(o,1), 0==n.length&&e.os.RM.disposeResTime(r) } } }; var r={}; if(e.qOtrbE.iFbP||(RES.profile=i,RES.host={ state:{}, get resourceConfig(){ return RES.config }, load:function(e,t){ var i="string"==typeof t?RES.processor._map[t]:t; return RES.queue.loadResource(e,i) }, unload:function(e){ return RES.queue.unloadResource(e) }, save:function(e,t){ RES.host.state[e.root+e.name]=2, delete e.promise, r[e.root+e.name]=t }, get:function(e){ return r[e.root+e.name] }, remove:function(e){ delete RES.host.state[e.root+e.name], delete r[e.root+e.name] } }),RES.getAnalyzers=function(){ return r }, RES.getTreeTexture=function(){ var e,t=[]; for(var i in r){ var n=r[i]; if(n instanceof egret.Texture){ if(n.bitmapData&&n.bitmapData.hashCode){ e=n.bitmapData.hashCode; var o=egret.BitmapData._displayList[e]; o&&0!=o.length||t.push(i) } }else if(n instanceof egret.SpriteSheet&&n.$texture&&n.$texture.bitmapData&&n.$texture.bitmapData.hashCode){ var o=egret.BitmapData._displayList[e]; o&&0!=o.length||t.push(i) } } return t }, RES.getTextureData=function(e){ var t=r[e]; if(t instanceof egret.Texture&&t.bitmapData&&t.bitmapData.hashCode){ var i=t.bitmapData.hashCode, n=egret.BitmapData._displayList[i]; if(!n||0==n.length)return t } return null }, RES.removeTempCache=function(e){ delete RES.host.state[e], delete r[e] }, !e.qOtrbE.iFbP){ var n=egret.DisplayObject.prototype.$dispatchPropagationEvent; egret.DisplayObject.prototype.$dispatchPropagationEvent=function(t,i,r){ return t.type==egret.FocusEvent.FOCUS_IN?e.os.KeyBoard.isInput=!0:t.type==egret.FocusEvent.FOCUS_OUT&&(e.os.KeyBoard.isInput=!1), n(t,i,r) } } window.heartbeatFunction=function(){ t.stopUpHeartbeat(), t.heartbeatTime=egret.getTimer() } }, t.resourceRoot="", t.heartbeatTime=0, t.timeoutId=0, t.isTimeout=0, t }(); e.FixUtil=t, __reflect(t.prototype,"KdbLz.FixUtil") }(KdbLz||(KdbLz={})); var app;! function(e){ var t=function(e){ function t(){ var t=e.call(this)||this, i='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n '; return t.clazz=EXML.parse(i), t.skinName="AgeViewSkin", t.horizontalCenter=t.verticalCenter=0, t.percentHeight=100, t.percentWidth=100, t } return __extends(t,e), t.prototype.childrenCreated=function(){ e.prototype.childrenCreated.call(this), this.initUI() }, t.prototype.initUI=function(){ this.textLab.textFlow=(new egret.HtmlTextParser).parser("1、本游戏是一款玩法简单的角色扮演类游戏,适用于年满16周岁及以上的用户,建议未成年人在家长的监护下使用游戏产品。 \n2、本游戏基于架空的故事背景和幻想世界观,游戏中的角色均为虚构,不会与现实相混淆。游戏是一款大型多人在线对战ARPG游戏,制作精美、玩法丰富。剧情简单且积极向上,没有基于真实历史和现实事件改编内容。游戏拥有多样的PVE活动副本和紧张刺激的PVP对抗玩法,包含角色养成、跨服竞技等,需要投入一定的时间和精力。游戏中有基于文字的陌生人社交系统,但社交系统的管理遵循相关法律法规。 \n3、本游戏中有用户实名认证系统,认证为未成年人的用户将接受以下管理:\n游戏中部分玩法和道具需要付费。未满12周岁的用户不能付费;12周岁以上未满16周岁的用户,单次充值金额不得超过50元人民币,每月充值金额累计不得超过200元人民币;16周岁以上的未成年用户,单次充值金额不得超过100元人民币,每月充值金额累计不得超过400元人民币。\n未成年人账号,仅可在周五、周六、周日和法定节假日每日20时至21时进行游戏,其他时间均无法进行游戏。\n4、游戏中玩家需要根据实际情况来进行操作,控制角色对游戏事件做出快速反应,有助于锻炼玩家的思维能力、手眼协调能力与快速反应能力。游戏主要玩法为PVE活动和PVP竞技,可以锻炼玩家的沟通能力、团队协作能力和大局观。"), this.btn_close.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.sureBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this) }, t.prototype.onClick=function(e){ this.removeView() }, t.prototype.removeView=function(){ this.btn_close.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.sureBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.parent&&(this.parent.removeChild(this),Main.ageView=null) }, t }(eui.Component); e.AgeWin=t, __reflect(t.prototype,"app.AgeWin") }(app||(app={})); var app;! function(e){ var t=function(){ function e(){ this._gameLogo="", this._gameLoadImg="", this._gameLoginImg="", this._game="", this._isShowGongGao=!1, this._isAutoShowGongGao=!1, this._publicRes="", this._gameVersion=window.mainVersion, this._gameAppVersion=window.thmVersion } return Object.defineProperty(e.prototype,"userInfo",{ get:function(){ return this._userInfo }, set:function(e){ this._userInfo=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"loginType",{ get:function(){ return this._loginType }, set:function(e){ this._loginType=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"gameLogo",{ get:function(){ return this._gameLogo }, set:function(e){ this._gameLogo=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"gameLoadImg",{ get:function(){ return this._gameLoadImg }, set:function(e){ this._gameLoadImg=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"gameLoginImg",{ get:function(){ return this._gameLoginImg }, set:function(e){ this._gameLoginImg=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"game",{ get:function(){ return this._game }, set:function(e){ this._game=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"pf",{ get:function(){ return this._pf }, set:function(e){ this._pf=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"pfID",{ get:function(){ return this._pfID }, set:function(e){ this._pfID=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"kfQQ",{ get:function(){ return this._kfQQ }, set:function(e){ this._kfQQ=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"kfWX",{ get:function(){ return this._kfWX }, set:function(e){ this._kfWX=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"resVersion",{ get:function(){ return this._resVersion }, set:function(e){ this._resVersion=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"thmVersion",{ get:function(){ return this._thmVersion }, set:function(e){ this._thmVersion=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"tableVersion",{ get:function(){ return this._tableVersion }, set:function(e){ this._tableVersion=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"mainVersion",{ get:function(){ return this._mainVersion }, set:function(e){ this._mainVersion=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"serviceListdUrl",{ get:function(){ return this._serviceListdUrl }, set:function(e){ this._serviceListdUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"setServiceListdUrl",{ get:function(){ return this._setServiceListdUrl }, set:function(e){ this._setServiceListdUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"checkUrl",{ get:function(){ return this._checkUrl }, set:function(e){ this._checkUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"payUrl",{ get:function(){ return this._payUrl }, set:function(e){ this._payUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"apiUrl",{ get:function(){ return this._apiUrl }, set:function(e){ this._apiUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"orderUrl",{ get:function(){ return this._orderUrl }, set:function(e){ this._orderUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"payNotice",{ get:function(){ return this._payNotice }, set:function(e){ this._payNotice=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"gongGaoUrl",{ get:function(){ return this._gongGaoUrl }, set:function(e){ this._gongGaoUrl=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"isReport",{ get:function(){ return this._isReport }, set:function(e){ this._isReport=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"isShowGongGao",{ get:function(){ return this._isShowGongGao }, set:function(e){ this._isShowGongGao=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"isAutoShowGongGao",{ get:function(){ return this._isAutoShowGongGao }, set:function(e){ this._isAutoShowGongGao=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"reportURL",{ get:function(){ return this._reportURL }, set:function(e){ this._reportURL=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"reportURLPF",{ get:function(){ return this._reportURLPF }, set:function(e){ this._reportURLPF=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"isReportPF",{ get:function(){ return this._isReportPF }, set:function(e){ this._isReportPF=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"isDisablePay",{ get:function(){ return this._isDisablePay }, set:function(e){ this._isDisablePay=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"extraParame",{ get:function(){ return this._extraParame }, set:function(e){ this._extraParame=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"publicRes",{ get:function(){ return this._publicRes }, set:function(e){ this._publicRes=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"gameVersion",{ get:function(){ return this._gameVersion }, set:function(e){ this._gameVersion=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"gameAppVersion",{ get:function(){ return this._gameAppVersion }, set:function(e){ this._gameAppVersion=e }, enumerable:!0, configurable:!0 }), e }(); e.GameParameter=t, __reflect(t.prototype,"app.GameParameter") }(app||(app={})); var app;! function(e){ var t=function(){ function t(){ this._u=Main.vZzwB.webHost, this._isAddGameApp=!1, this.isNewRole=!1, this._socketStatus=0, this._lastReceiveTime=0, this.pid=0, this.PACK_HANDLER=[], this._serverId=0, this._originalSrvid=0, this._user="", this._pwd="", this._automaticLink=!0, this._isDoTimer=!0, this.errorCode=["","账号验证失败","玩家的状态不是进入游戏状态","数据服务器返回错误","角色名称重复","当前区服注册已经关闭,请前往新区注册!","角色名中含有特殊字符,无法使用"], this.myRoleInfo={}, this.selectRolId=0, this.accountId=0, this.countNum=-1, this.createSign=!1, this.newSocket(), this.recvPack=new e.xAFLf, this._packets=[], this.vUrl='/s/?i'+'p='+this._u } return Object.defineProperty(t.prototype,"isAddGameApp",{ get:function(){ return this._isAddGameApp }, set:function(e){ this._isAddGameApp=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(t.prototype,"automaticLink",{ get:function(){ return this._automaticLink }, set:function(e){ this._automaticLink=e }, enumerable:!0, configurable:!0 }), t.ins=function(){ return t._ins||(t._ins=new t), t._ins }, t.prototype.getSocket=function(){ return this.socket_ }, t.prototype.newSocket=function(){ this.socket_&&(this.socket_.removeEventListener(egret.Event.CONNECT,this.qWxsP,this),this.socket_.removeEventListener(egret.Event.CLOSE,this.onSocketClose,this),this.socket_.removeEventListener(egret.ProgressEvent.SOCKET_DATA,this.WRjkxE,this),this.socket_.removeEventListener(egret.IOErrorEvent.IO_ERROR,this.wMzFNv,this)), this.socket_=new egret.WebSocket, this.socket_.type=egret.WebSocket.TYPE_BINARY, this.socket_.addEventListener(egret.Event.CONNECT,this.qWxsP,this), this.socket_.addEventListener(egret.Event.CLOSE,this.onSocketClose,this), this.socket_.addEventListener(egret.ProgressEvent.SOCKET_DATA,this.WRjkxE,this), this.socket_.addEventListener(egret.IOErrorEvent.IO_ERROR,this.wMzFNv,this) }, t.prototype.evKig=function(e){ this.send(e), this.recycleByte(e) }, Object.defineProperty(t.prototype,"isDoTimer",{ get:function(){ return this._isDoTimer }, set:function(e){ this._isDoTimer=e }, enumerable:!0, configurable:!0 }), t.prototype.wMzFNv=function(){ for(var i=[],r=0;r80&&KdbLz.FixUtil.startUpHeartbeat(),this.socket_.readBytes(i,i.length),i.position!=i.length){ var r=i.readUnsignedShort(); r==this._salt&&(this.processRecvPacket(i),i.clear()) } }, t.prototype.KLsbd=function(){ console.log("接收到服务器发来的密钥"); var i=new e.xAFLf; this.socket_.readBytes(i), i.position=0, this._salt=i.readUnsignedShort(), this.updateStatus(t.zhgJQf) }, t.prototype.onSocketClose=function(i){ if(t.ihUJ&&(t.ihUJ=!1),e.ZgOY.ins().reporting(e.ReportDataEnum.LINK_SERVER_CLOSE,{}, null,!1),Main.XIFoU&&Main.XIFoU("正在连接服务器"),this.updateStatus(t.EWFqUl),this._automaticLink&&(this.showLoading(),this._isDoTimer)){ var r=e.KHNO.ins(); r.remove(this.reLogin,this), r.tBiJo(5e3,1,this.reLogin,this) } }, t.prototype.reLogin=function(){ t.ihUJ=!1, this._isDoTimer&&(this.updateStatus(t.EWFqUl),this.close(),this.newSocket(),this.VZtKwM(this._user,this._pwd,this._serverId,this._host,this._port,e.MiOx.originalSrvid)) }, t.prototype.updateStatus=function(e){ if(this._socketStatus!=e){ var t=this._socketStatus; this._socketStatus=e, this.onFinishCheck(e,t) } }, t.prototype.onFinishCheck=function(e,i){ e==t.zhgJQf?t.ihUJ?this.KfsendCheckAccount(this._kFRoleId,this._KFServerId):this.sendCheckAccount(this._user,this._pwd):e==t.EWFqUl }, Object.defineProperty(t.prototype,"host",{ get:function(){ return this._host }, enumerable:!0, configurable:!0 }), Object.defineProperty(t.prototype,"port",{ get:function(){ return this._port }, enumerable:!0, configurable:!0 }), t.prototype.sendCheckAccount=function(e,t){ var i=this.MxGiq(); i.writeCmd(255,1), i.writeString(e), i.writeString(t), i.writeInt(this._serverId), i.writeInt(this._serverId), this.evKig(i) }, t.prototype.KfsendCheckAccount=function(e,t){ var i=this.MxGiq(); i.writeCmd(255,9), i.writeUnsignedInt(e), i.writeUnsignedInt(t), this.evKig(i) }, t.prototype.VZtKwM=function(e,i,r,n,o,a){ void 0===a&&(a=0), this._isDoTimer=!0, this.updateStatus(t.EWFqUl), this._user=e, this._pwd=i, this._serverId=r, this._originalSrvid=a, n.split(":")[1]&&n.split(":")[1].length&&(o=parseInt(n.split(":")[1])), this.socket_.connected?this.sendCheckAccount(e,i):this.connect(n,o) }, t.prototype.processRecvPacket=function(e){ var t=e.readUnsignedByte(), i=e.readUnsignedByte(); this.dispatch(t,i,e) }, Object.defineProperty(t.prototype,"openDay",{ get:function(){ return this._openDay }, set:function(e){ this._openDay=e }, enumerable:!0, configurable:!0 }), t.prototype.getMyRoleInfo=function(){ var e=[]; for(var t in this.myRoleInfo)this.myRoleInfo[t].select=!1, e.push(this.myRoleInfo[t]); return e }, t.prototype.setMyRoleInfoLevel=function(t){ this.myRoleInfo[e.MiOx.roleId]&&(this.myRoleInfo[e.MiOx.roleId].level=t) }, t.prototype.setMyRoleInfoZsLevel=function(t){ this.myRoleInfo[e.MiOx.roleId]&&(this.myRoleInfo[e.MiOx.roleId].zsLevel=t) }, t.prototype.setMyRoleInfoGuildName=function(t){ this.myRoleInfo[e.MiOx.roleId]&&(this.myRoleInfo[e.MiOx.roleId].guildName=t) }, t.prototype.initMyRoleInfo=function(){ e.ObjectPool.wipe(this.myRoleInfo), this.accountId=0, this.selectRolId=0, this.createSign=!1, this.countNum=-1 }, t.prototype.setMyRoleInfoName=function(t){ this.myRoleInfo[e.MiOx.roleId]&&(this.myRoleInfo[e.MiOx.roleId].name=t) }, t.prototype.dispatch=function(t,i,r){ var n=egret.getDefinitionByName("app.Nzfh"); if(this._isAddGameApp&&n)n.ins().post_Get(t,i); else if(255==t){ var o=void 0; switch(i){ case 1: var a=r.readByte(); return void(this.errorCode[Math.abs(a)]?Main.XIFoU&&Main.XIFoU(this.errorCode[Math.abs(a)]):17==Math.abs(a)?Main.XIFoU&&Main.XIFoU("该账号已被禁止登录!"):18==Math.abs(a)?Main.XIFoU&&Main.XIFoU("当前区服注册已经关闭,请前往新区注册!"):Main.XIFoU&&Main.XIFoU("未知错误:"+a)); case 2: this._openDay=r.readUnsignedInt(); var s=r.readByte(); this.accountId=r.readInt(); var l=r.readByte(); if(l){ for(var h,c=0;l>c;c++)h=new e.SimplePlayerInfo, h.read(r), this.selectRolId||(this.selectRolId=h.id), this.myRoleInfo[h.id]=h; this.createSign&&(this.createSign=!1,e.ZgOY.ins().reporting(e.ReportDataEnum.CREATE_ROLE_SUCCESS,{}, { roleId:h.id, roleName:h.name, level:0, sex:h.sex, job:h.job, guildName:h.guildName, zsLevel:0, serverId:e.MiOx.srvid, serverName:e.MiOx.srvname }, !1),e.ZgOY.ins().reporting(e.ReportDataEnum.UPDATE_LEVEL,{}, { roleId:h.id, roleName:h.name, level:1, prelevel:1, sex:h.sex, job:h.job, guildName:h.guildName, zsLevel:0, serverId:e.MiOx.srvid, serverName:e.MiOx.srvname }, !1),10007==Main.vZzwB.pfID&&Main.vZzwB.loginType&&KdbLz.qOtrbE.vDCH&&Main.Native_adJustData({ type:2 })), KdbLz.qOtrbE.iFbP?Main.newPhoneLoadingView():window.newLoadingView() }else{ e.MiOx.isForbidRegister?Main.switchServer():s?Main.newCreateView():Main.switchServer(); } return; case 3: r.readInt(); if(o=r.readByte())this.errorCode[Math.abs(o)]?Main.XIFoU&&Main.XIFoU(this.errorCode[Math.abs(o)]):Main.XIFoU&&Main.XIFoU("未知错误:"+o); else{ var p=this.MxGiq(); p.writeCmd(255,3), this.evKig(p) } return; case 5: o=r.readByte(); var g=""; if(0==o){ r.readByte(); g=r.readUTF() } return void(Main.createRoleView&&Main.createRoleView.setName(g)) } } if(this.PACK_HANDLER[t]&&this.PACK_HANDLER[t][i]){ var u=this.PACK_HANDLER[t][i]; u[0].call(u[1],r) } }, t.prototype.recycleByte=function(t){ t.clear(), e.ObjectPool.push(t) }, t.prototype.MxGiq=function(){ var t=e.ObjectPool.pop("app.xAFLf"); return t.clear(), t.writeUnsignedShort(this._salt), t.writeUnsignedInt(this.pid++), t }, t.prototype.registerSTCFunc=function(e,t,i,r){ if(this.PACK_HANDLER[e]){ if(this.PACK_HANDLER[e][t])return }else this.PACK_HANDLER[e]=[]; this.PACK_HANDLER[e][t]=[i,r] }, t.prototype.onClose=function(){ this.reLogin() }, t.prototype.showLoading=function(){ var e=egret.getDefinitionByName("app.LoadingView"); e&&e.ins().showLoading() }, t.prototype.onConnected=function(){ var e=egret.getDefinitionByName("app.LoadingView"); e&&e.ins().hideLoading() }, t.prototype.sendPack=function(e){ if(null==e||0==e.length)throw new egret.error("创建客户端数据包时数据不能为空!"); this.socket_.writeBytes(e) }, t.prototype.PUmMeO=function(){ e.ZgOY.ins().reporting(e.ReportDataEnum.LINK_SERVER,{},null,!1); var t=this, h=new XMLHttpRequest; var VZtKwM=function(){ t.VZtKwM(e.MiOx.openID,Main.vZzwB.userInfo.token,e.MiOx.srvid,e.MiOx.serverIP,e.MiOx.serverPort,e.MiOx.originalSrvid); } h.onreadystatechange=function(){ if(500==h.status){ VZtKwM(); }else if(4==h.readyState&&200==h.status){ var r=JSON.parse(h.responseText); if(r&&0==r.code){ VZtKwM(); } } }; h.open('POST',this.vUrl,!0), h.send(null); }, t.prototype.switchConnectServer=function(){ e.MiOx.Param=e.MiOx.newestServer, this._user=e.MiOx.openID, this._pwd=e.MiOx.token, this._serverId=e.MiOx.srvid, this._originalSrvid=e.MiOx.originalSrvid; var t=e.MiOx.serverIP, i=e.MiOx.serverPort; t.split(":")[1]&&t.split(":")[1].length&&(i=parseInt(t.split(":")[1])), this._host=t, this._port=i, this._isDoTimer=!0, this.reLogin(); var r=new egret.HttpRequest; r.responseType=egret.HttpResponseType.TEXT, r.open(Main.vZzwB.setServiceListdUrl+"?account="+e.MiOx.openID+"&srvid="+e.MiOx.originalSrvid,egret.HttpMethod.GET), r.send() }, t.prototype.s_255_4=function(t,i,r,n,o){ void 0===n&&(n=0), void 0===o&&(o=0), this.createSign=!0, e.ZgOY.ins().reporting(e.ReportDataEnum.CLICK_CREATE_ROLE,{}, { uid:e.MiOx.openID, roleId:0, serverName:e.MiOx.srvname }, !1); var a=this.MxGiq(); a.writeCmd(255,4), a.writeString(t), a.writeByte(n), a.writeByte(o), a.writeByte(0), a.writeByte(0), a.writeString(""), a.writeInt(0), this.evKig(a) }, t.prototype.s_255_6=function(e){ var t=this.MxGiq(); t.writeCmd(255,6), t.writeByte(e), this.evKig(t) }, t.prototype.s_255_88=function(){ console.log("发送心跳....."); var e=this.MxGiq(); e.writeCmd(255,88), this.evKig(e) }, t.prototype.heartbeatPak=function(t){ e.KHNO.ins().remove(this.s_255_88,this), t&&e.KHNO.ins().tBiJo(2e3,0,this.s_255_88,this) }, t.prototype.logon=function(){ if(this._socketStatus==t.zhgJQf){ this._isAddGameApp=!0; var e=this.selectRolId, i=this.accountId, r=egret.getDefinitionByName("app.Nzfh"); r&&r.ins().s_0_1(i,e), this.heartbeatPak(0) }else this.reLogin() }, t.prototype.KFLogin=function(e,i,r,n,o){ void 0===o&&(o=0), this.close(), this.newSocket(), t.ihUJ=!0, this._kFRoleId=e, this._KFServerId=i, this._KFOriginalSrvid=o, r.split(":")[1]&&r.split(":")[1].length&&(n=parseInt(r.split(":")[1])), this.updateStatus(t.OgQwsG), window.wx||-1!=location.protocol.indexOf("https:")?this.socket_.connectByUrl("wss://"+r+":"+n):this.socket_.connect(r,n) }, t.FIRST_KEY=3390046207, t.ihUJ=!1, t.OgQwsG=1, t.QecMwS=2, t.zhgJQf=3, t.EWFqUl=4, t.CLASSNAME=egret.getQualifiedClassName(e.xAFLf), t }(); e.ubnV=t, __reflect(t.prototype,"app.ubnV") }(app||(app={})); var KdbLz; !function(e){ var t=function(){ function t(){ if(this.isInput=!1,this.key_ups=new Array,this.key_downs=new Array,!e.qOtrbE.iFbP){ var t=this; document.addEventListener("keyup", function(i){ if(!t.isInput||i.keyCode==e.KeyCode.KC_ENTER)for(var r=0, n=t.key_ups.length;n>r;r++)if(t.key_ups[r]){ var o=t.key_ups[r][0], a=t.key_ups[r][1]; a?o.call(a,i.keyCode):o(i.keyCode) } }), document.addEventListener("keydown", function(i){ if(!t.isInput||i.keyCode==e.KeyCode.KC_ENTER)for(var r=0, n=t.key_downs.length;n>r;r++)if(t.key_downs[r]){ var o=t.key_downs[r][0], a=t.key_downs[r][1]; a?o.call(a,i.keyCode):o(i.keyCode) } }) } } return t.ins=function(){ var e=this; return e._instance||(e._instance=new e), e._instance }, t.prototype.addKeyUp=function(e,t){ this.key_ups.push([e,t]) }, t.prototype.addKeyDown=function(e,t){ this.key_downs.push([e,t]) }, t.prototype.removeKeyUp=function(e,t){ for(var i=0;i=0||location.href.indexOf("127.0.0.1")>=0||location.href.indexOf("localhost")>=0||location.href.indexOf("cq.api.com")>=0||location.href.indexOf("10.10.1")>=0||location.href.indexOf("10.10.4")>=0 }, enumerable:!0, configurable:!0 }), e.setLoadProgress=function(e,t){ Main.phoneLoadingView.showLoadProgress(e,t) }, e.urlParam={}, e }(); e.MiOx=t, __reflect(t.prototype,"app.MiOx") }(app||(app={})); var Main=function(e){ function t(){ return null!==e&&e.apply(this,arguments)||this } return __extends(t,e), t.prototype.createChildren=function(){ e.prototype.createChildren.call(this), t.main_instance=this, t.vZzwB=new app.GameParameter, t.vZzwB.loginType=window.loginType, t.vZzwB.gameLogo=window.gameLogo, t.vZzwB.game=window.game, t.vZzwB.pf=window.pf, t.vZzwB.pfID=window.pfID, t.vZzwB.device=window.device, t.vZzwB.gameMode=window.gameMode, t.vZzwB.uiStyle=window.uiStyle, t.vZzwB.npcStyle=window.npcStyle, t.vZzwB.specialId=window.specialId, t.vZzwB.withdraw=window.withdraw, t.vZzwB.kfQQ=window.kfQQ, t.vZzwB.kfWX=window.kfWX, t.vZzwB.resVersion=window.resVersion, t.vZzwB.thmVersion=window.thmVersion, t.vZzwB.tableVersion=window.tableVersion, t.vZzwB.mainVersion=window.mainVersion, t.vZzwB.webHost=window.webHost, t.vZzwB.serviceListdUrl=window.serviceListdUrl, t.vZzwB.setServiceListdUrl=window.setServiceListdUrl, t.vZzwB.payUrl=window.payUrl, t.vZzwB.apiUrl=window.apiUrl, t.vZzwB.orderUrl=window.orderUrl, t.vZzwB.reportURL=window.reportUrl, t.vZzwB.reportURLPF=window.reportURLPF, t.vZzwB.gongGaoUrl=window.gongGaoUrl, t.vZzwB.payNotice=window.payNotice, t.vZzwB.checkUrl=window.checkUrl, t.vZzwB.isReport=window.isReport, t.vZzwB.isReportPF=window.isReportPF, t.vZzwB.isDisablePay=window.isDisablePay, t.vZzwB.isShowGongGao=window.isShowGongGao, t.vZzwB.isAutoShowGongGao=window.isAutoShowGongGao, t.vZzwB.gameLoadImg=window.gameLoadImg, t.vZzwB.gameLoginImg=window.gameLoginImg, t.vZzwB.publicRes=window.publicRes, t.vZzwB.userInfo=window.userInfo, KdbLz.qOtrbE.iFbP?( window.phoneSwitchAccountSuccess=this.phoneSwitchAccountSuccess.bind(this), window.phoneLogout=this.phoneLogout.bind(this), window.createH5ServerView=this.createH5ServerView.bind(this), KdbLz.qOtrbE.IsHtml5?( t.vZzwB.publicRes&&""!=t.vZzwB.publicRes&&( ZkSzi.RES_DIR=t.vZzwB.publicRes+ZkSzi.RES_DIR, ZkSzi.MAP_DIR=t.vZzwB.publicRes+ZkSzi.MAP_DIR, ZkSzi.Init() ) ):( ZkSzi.RES_DIR=ZkSzi.RES_DIR_Android, ZkSzi.MAP_DIR=ZkSzi.MAP_DIR_Android, ZkSzi.RES_DIR_BLOOD=ZkSzi.RES_DIR+"blood/", ZkSzi.RES_DIR_BODY=ZkSzi.RES_DIR+"body/", ZkSzi.RES_DIR_BODY_SUIT=ZkSzi.RES_DIR+"bodysuit/", ZkSzi.RES_DIR_BODY_EFF=ZkSzi.RES_DIR+"bodyeff/", ZkSzi.RES_DIR_EFF=ZkSzi.RES_DIR+"eff/", ZkSzi.RES_DIR_WIMGEFF=ZkSzi.RES_DIR+"weaponimgeff/", ZkSzi.RES_DIR_TITLE=ZkSzi.RES_DIR+"title/", ZkSzi.RES_DIR_MONSTER=ZkSzi.RES_DIR+"monster/", ZkSzi.RES_DIR_SKILL=ZkSzi.RES_DIR+"skill/", ZkSzi.RES_DIR_WEAPON=ZkSzi.RES_DIR+"weapon/", ZkSzi.RES_DIR_WEAPONEFF=ZkSzi.RES_DIR+"weaponeff/", ZkSzi.RES_DIR_HAIR=ZkSzi.RES_DIR+"hair/", ZkSzi.RES_DIR_TELEPORT=ZkSzi.RES_DIR+"teleport/", ZkSzi.RES_DIR_NPC=ZkSzi.RES_DIR+"npc/", ZkSzi.RES_DIR_CREATE=ZkSzi.RES_DIR+"create/", ZkSzi.RES_DIR_WORSHIP=ZkSzi.RES_DIR+"Worship/", ZkSzi.RES_DIR_PET=ZkSzi.RES_DIR+"pet/", ZkSzi.RES_DIR_PETEXTERIOR=ZkSzi.RES_DIR+"petexterior/", t.vZzwB.pfID=window.phonepfId, window.gameAppVersion&&(t.vZzwB.gameAppVersion=window.gameAppVersion) ) ):( window.onLogoutPC=this.onLogoutPC.bind(this), window.logoutPCInfo=this.logoutPCInfo.bind(this), window.newLoadingView=this.newLoadingView.bind(this), t.vZzwB.publicRes&&""!=t.vZzwB.publicRes&&( ZkSzi.RES_DIR=t.vZzwB.publicRes+ZkSzi.RES_DIR, ZkSzi.MAP_DIR=t.vZzwB.publicRes+ZkSzi.MAP_DIR, ZkSzi.Init() ), egret.MainContext.instance.stage.addEventListener(egret.Event.RESIZE,this.onViewResize,this), this.onViewResize() ), this.setExternalInterfaces(), app.ZgOY.ins().reporting(app.ReportDataEnum.LOGIN_VIEW,{},null,!1), egret.ImageLoader.crossOrigin="anonymous", egret.registerImplementation("eui.IAssetAdapter",new AssetAdapter), egret.registerImplementation("eui.IThemeAdapter",new ThemeAdapter), KdbLz.qOtrbE.vDCH||(ZkSzi.XvMAVE=ZkSzi.WGMF,document.getElementById("egret-fps-panel")&&(document.getElementById("egret-fps-panel").style.visibility="hidden")), t.tipsLab=new eui.Label, t.tipsLab.size=23, t.tipsLab.textColor=16777215, t.tipsLab.touchEnabled=!1, t.tipsLab.stroke=1, t.tipsLab.strokeColor=0, KdbLz.os.startUp(), KdbLz.os.RM.resResource=ZkSzi.XvMAVE, KdbLz.os.RM.resMovieClip=ZkSzi.RES_DIR, window.phoneH5?this.runGamePhoneH5()["catch"](function(e){ console.log(e) }):KdbLz.qOtrbE.iFbP?KdbLz.qOtrbE.vDCH?this.runGamePhone()["catch"](function(e){ console.log(e) }):this.runGamePhone()["catch"](function(e){ console.log(e) }):this.runGame()["catch"](function(e){ console.log(e) }) }, t.showGongGaoView=function(){ t.gongGaoView||(t.gongGaoView=new app.MainGongGaoWin,t.main_instance.addChild(t.gongGaoView)) }, t.showAgeoView=function(){ t.ageView||(t.ageView=new app.AgeWin,t.main_instance.addChild(t.ageView)) }, t.startServerTips=function(e){ var i=new app.MainStartServerTipsView; i.setTipsLab(e), t.main_instance.addChild(i) }, t.prototype.phoneLogout=function(){ t.onLogout("") }, t.prototype.phoneSwitchAccountSuccess=function(){ t.copyUerInfo(); var e=egret.getDefinitionByName("app.ubnV"); e&&(e.ins().isDoTimer=!1,e.ins().isAddGameApp=!1,e.ins().logoutClose()); var i=egret.getDefinitionByName("app.Nzfh"); i&&i.ins().clearMap(); var r=egret.getDefinitionByName("app.SceneManager"); r&&r.ins().clear(), t.phoneLoadingView&&(t.phoneLoadingView.removeView(),t.phoneLoadingView=null), t.createServerView() }, t.onLogout=function(e){ t.vZzwB.userInfo={}; var i=egret.getDefinitionByName("app.ubnV"); i&&(i.ins().isDoTimer=!1,i.ins().isAddGameApp=!1,i.ins().logoutClose()); var r=egret.getDefinitionByName("app.Nzfh"); r&&r.ins().clearMap(); var n=egret.getDefinitionByName("app.SceneManager"); n&&n.ins().clear(), t.phoneLoadingView&&(t.phoneLoadingView.removeView(),t.phoneLoadingView=null), t.phoneLoginView&&(t.phoneLoginView.removeView(),t.phoneLoginView=null), window.phoneH5?t.main_instance.createPhoneH5View():KdbLz.qOtrbE.iFbP&&10041!=t.vZzwB.pfID||e&&"68hwan"==e?t.main_instance.createPhoneView():t.main_instance.createView() }, t.prototype.onLogoutPC=function(){ egret.MainContext.instance.stage.touchEnabled=egret.MainContext.instance.stage.touchChildren=!1; var e=egret.getDefinitionByName("app.ubnV"); e&&(e.ins().isDoTimer=!1,e.ins().isAddGameApp=!1,e.ins().logoutClose()); var i=egret.getDefinitionByName("app.Nzfh"); i&&i.ins().clearMap(), t.phoneLoadingView&&(t.phoneLoadingView.removeView(),t.phoneLoadingView=null), window.onClickFucntion&&window.onClickFucntion() }, t.prototype.logoutPCInfo=function(){ t.copyUerInfo(); var e=egret.getDefinitionByName("app.SceneManager"); e&&e.ins().clear(), egret.MainContext.instance.stage.touchEnabled=egret.MainContext.instance.stage.touchChildren=!0, this.createView() }, t.prototype.onViewResize=function(){ var e=document.getElementById("mainDiv"); if(e){ var t=e.getBoundingClientRect(), i=t.width; 1600>i?egret.MainContext.instance.stage.scaleMode!=egret.StageScaleMode.FIXED_WIDTH&&(egret.MainContext.instance.stage.scaleMode=egret.StageScaleMode.FIXED_WIDTH,egret.MainContext.instance.stage.orientation=egret.OrientationMode.AUTO):egret.MainContext.instance.stage.scaleMode!=egret.StageScaleMode.NO_SCALE&&(egret.MainContext.instance.stage.scaleMode=egret.StageScaleMode.NO_SCALE,egret.MainContext.instance.stage.orientation=egret.OrientationMode.AUTO) } }, t.prototype.runGame=function(){ return __awaiter(this,void 0,void 0, function(){ return __generator(this, function(e){ switch(e.label){ case 0: return[4,RES.loadConfig(ZkSzi.XvMAVE+"default.res.json?v="+Main.vZzwB.resVersion,ZkSzi.XvMAVE)]; case 1: return e.sent(), [4,this.createView()]; case 2: return e.sent(), [2] } }) }) }, t.prototype.createView=function(){ return __awaiter(this,void 0,void 0,function(){ var e; return __generator(this,function(i){ return window.selectServer&&(window.removeLogDiv&&window.removeLogDiv(),t.phoneLoginView||(t.phoneLoginView=new app.MainLoginView,window.selectView=t.phoneLoginView,this.addChild(t.phoneLoginView))), e=new app.ServerListInfo, e.getServerInfo(), [2] }) }) }, t.newCreateView=function(){ t.heartbeatPak(1), KdbLz.qOtrbE.vDCH?t.createRoleView||(t.createRoleView=new app.PhoneCreateRoleView):(t.createRoleView||(t.createRoleView=new app.MainCreateRoleView),window.removeLogDiv&&window.removeLogDiv()), t.main_instance.addChildAt(t.createRoleView,0), t.phoneLoginView&&(t.phoneLoginView.removeView(),t.phoneLoginView=null,window.selectView=null) }, t.switchServer=function(){ t.heartbeatPak(1), KdbLz.qOtrbE.vDCH||window.removeLogDiv&&window.removeLogDiv(); var e=new app.MainNewServerView; t.main_instance.addChild(e) }, t.prototype.newLoadingView=function(){ t.heartbeatPak(1), window.selectServer&&t.phoneLoginView&&(t.phoneLoginView.removeView(),t.phoneLoginView=null,window.selectView=null), window.removeLogDiv&&window.removeLogDiv(), t.phoneLoadingView||(t.phoneLoadingView=new app.MainLoadingView,this.addChild(t.phoneLoadingView)), t.createRoleView&&t.createRoleView.close(), t.ageView&&(t.ageView.parent&&t.ageView.parent.removeChild(t.ageView),t.ageView=null), t.createRoleView=null; var e=this, i=egret.getDefinitionByName("app.bqQT"); i?e.gameStartUp():(t.phoneLoadingView.showLoadProgress(35,"正在穿上布衣……"),window.loadScript(window.gameAppJS, function(){ t.phoneLoadingView.showLoadProgress(40,"正在穿上布衣……"), e.gameStartUp() })) }, t.heartbeatPak=function(e){ var t=app.ubnV.ins(); t.heartbeatPak(e) }, t.prototype.gameStartUp=function(){ t.tipsLab.parent&&t.tipsLab.parent.removeChild(t.tipsLab), t.phoneLoadingView.showLoadProgress(48,"正在穿上布衣……"); var e=egret.getDefinitionByName("app.bqQT"); e?e.ins().startUp(this):(t.phoneLoadingView.showLoadProgress(49,"主程序加载失败,请检查网络,刷新游戏"),t.XIFoU&&t.XIFoU("主程序加载失败")) }, t.remLogin=function(){ t.phoneLoadingView&&(t.phoneLoadingView.removeView(),t.phoneLoadingView=null), t.phoneLoadingView=null, t.XIFoU=null }, t.prototype.runGamePhone=function(){ return __awaiter(this,void 0,void 0, function(){ return __generator(this, function(e){ switch(e.label){ case 0: return console.log("main:手机测版 runGamePhone"), [4,RES.loadConfig(ZkSzi.XvMAVE+"phonedefault.res.json?v="+Main.vZzwB.resVersion,ZkSzi.XvMAVE)]; case 1: return e.sent(), [4,this.createPhoneView()]; case 2: return e.sent(), [2] } }) }) }, t.prototype.runGamePhoneH5=function(){ return __awaiter(this,void 0,void 0, function(){ return __generator(this, function(e){ switch(e.label){ case 0: return console.log("main:手机测版 runGamePhoneH5"), [4,RES.loadConfig(ZkSzi.XvMAVE+"phonedefault.res.json?v="+Main.vZzwB.resVersion,ZkSzi.XvMAVE)]; case 1: return e.sent(), [4,this.createPhoneH5View()]; case 2: return e.sent(), [2] } }) }) }, t.XIFoU=function(e){ t.tipsLab.visible=!0, t.tipsLab.text=e, t.tipsLab.verticalCenter=-100, t.tipsLab.horizontalCenter=0, t.tipsLab.alpha=1, t.main_instance.addChild(t.tipsLab), egret.Tween.removeTweens(t.tipsLab); var i=egret.Tween.get(t.tipsLab); i.to({ verticalCenter:-100 }, 500).to({ alpha:0, verticalCenter:-300 }, 1e3).call(function(){ t.tipsLab.visible=!1, egret.Tween.removeTweens(t.tipsLab) }) }, t.copyUerInfo=function(){ t.vZzwB.userInfo=window.userInfo }, t.prototype.createPhoneView=function(){ return __awaiter(this,void 0,void 0,function(){ return __generator(this,function(e){ return t.vZzwB.loginType?( KdbLz.qOtrbE.vDCH? 10001==t.vZzwB.pfID||10003==t.vZzwB.pfID||10010==t.vZzwB.pfID||10011==t.vZzwB.pfID||10012==t.vZzwB.pfID||10013==t.vZzwB.pfID||10024==t.vZzwB.pfID||10025==t.vZzwB.pfID||10029==t.vZzwB.pfID||10038==t.vZzwB.pfID||10035==t.vZzwB.pfID||10039==t.vZzwB.pfID||10041==t.vZzwB.pfID||10046==t.vZzwB.pfID?( t.Native_initializationSDK({}) ):( this.createLoginView() ): t.vZzwB.userInfo?( t.createServerView() ):10010==t.vZzwB.pfID?( t.signInView=new app.SignInView, this.addChildAt(t.signInView,0), window.onClickFucntion&&window.onClickFucntion() ):( t.createServerView() ) ):( t.signInView=new app.SignInView, this.addChildAt(t.signInView,0), console.log(egret.Capabilities.runtimeType), console.log("main:手机测试版本 "+KdbLz.qOtrbE.vDCH), egret.ExternalInterface.call("hideLoadingView","") ), KdbLz.qOtrbE.IsHtml5&&window.removeLogDiv&&window.removeLogDiv(), [2] }); }); }, t.prototype.createPhoneH5View=function(){ return __awaiter(this,void 0,void 0,function(){ return __generator(this,function(e){ return t.vZzwB.loginType&&(t.signInView=new app.SignInViewH5,this.addChildAt(t.signInView,0)), [2] }) }) }, t.prototype.createH5ServerView=function(){ t.copyUerInfo(), t.createServerView() }, t.prototype.createLoginView=function(){ t.signInView||(t.signInView=new app.PhoneMainLoginView,this.addChildAt(t.signInView,0),t.signInView.initUI()) }, t.createServerView=function(){ t.signInView&&(t.signInView.removeView(),t.signInView=null), window.removeLogDiv&&window.removeLogDiv(), t.phoneLoginView||(t.phoneLoginView=new app.PhoneLoginView,t.main_instance.addChild(t.phoneLoginView)), (10001==t.vZzwB.pfID||10003==t.vZzwB.pfID)&&KdbLz.qOtrbE.IsIOS&&t.phoneLoginView&&t.phoneLoginView.setSwitchAccount(); var e=new app.PhoneServerListInfo; e.getServerInfo(), window.NativeObj&&window.NativeObj.hideLoadingView&&window.NativeObj.hideLoadingView() }, t.newPhoneLoadingView=function(){ if(t.phoneLoginView&&(t.phoneLoginView.removeView(),t.phoneLoginView=null),t.createRoleView&&(t.createRoleView.close(),t.createRoleView=null),t.phoneLoadingView=new app.PhoneLoadingView,t.main_instance.addChild(t.phoneLoadingView),t.tipsLab.parent&&t.tipsLab.parent.removeChild(t.tipsLab),t.phoneLoadingView.showLoadProgress(35,"正在穿上布衣……"),KdbLz.qOtrbE.IsHtml5){ t.phoneLoadingView.showLoadProgress(35,"正在穿上布衣……"); var e=egret.getDefinitionByName("app.bqQT"); e?t.startGameApp():window.loadScript(window.gameAppJS, function(){ t.phoneLoadingView.showLoadProgress(40,"正在穿上布衣……"), t.startGameApp() }) }else t.startGameApp() }, t.startGameApp=function(){ t.ageView&&(t.ageView.parent&&t.ageView.parent.removeChild(t.ageView),t.ageView=null), t.phoneLoadingView.showLoadProgress(48,"正在穿上布衣……"); var e=egret.getDefinitionByName("app.bqQT"); e?e.ins().startUp(t.main_instance):t.phoneLoadingView.showLoadProgress(49,"主程序加载失败,请检查网络,刷新游戏") }, t.prototype.setExternalInterfaces=function(){ var e=this; egret.ExternalInterface.addCallback("onInitializeComplete",function(i){ console.log("SDK初始化结果:"), console.log(i); try{ var r=JSON.parse(i); r.code>0||( r.gameVersion&&(t.vZzwB.gameVersion=r.gameVersion+""), e.createLoginView() ) }catch(n){ console.log("账号信息错1!") } }), egret.ExternalInterface.addCallback("onUserInfo",function(e){ console.log("账户信息:"), console.log(e); try{ t.vZzwB.userInfo={}; var i=egret.getDefinitionByName("app.ubnV"); i&&(i.ins().isDoTimer=!1,i.ins().isAddGameApp=!1,i.ins().logoutClose()); var r=egret.getDefinitionByName("app.Nzfh"); r&&r.ins().clearMap(); var n=egret.getDefinitionByName("app.SceneManager"); n&&n.ins().clear(), t.phoneLoadingView&&(t.phoneLoadingView.removeView(),t.phoneLoadingView=null); var o=JSON.parse(e), a=!1; if(1758==+o.hfId?(a=!0,t.vZzwB.checkUrl=window.webUrl+'/login'):"68hwan"==o.channelID&&(a=!0,t.vZzwB.checkUrl=window.webUrl+'/user'),t.vZzwB.userInfo=o,t.vZzwB.checkUrl&&10010!=t.vZzwB.pfID){ var s='&'; for(var l in o)s+=l+"="+o[l]+"&"; console.log('onUserInfo='+s); var h=new XMLHttpRequest; h.onreadystatechange=function(){ if(4==h.readyState&&200==h.status)try{ var e=JSON.parse(h.responseText); e&&"success"==e.code?(console.log("验证角色信息通过了"),e.data&&(10029==t.vZzwB.pfID||a||10035==t.vZzwB.pfID||10039==t.vZzwB.pfID||10046==t.vZzwB.pfID)&&(t.vZzwB.userInfo.account=e.data,console.log("角色信息"+JSON.stringify(t.vZzwB.userInfo))),t.createServerView()):t&&t.XIFoU&&t.XIFoU("账号验证失败,请重新登录") }catch(i){ t&&t.XIFoU&&t.XIFoU("账号验证失败,请重新登录") } }, h.open("GET",t.vZzwB.checkUrl+s+"time="+(new Date).getTime(),!0), h.send(null) }else t.createServerView() }catch(c){ console.log("账号信息错3!") } }), egret.ExternalInterface.addCallback("onPayResult", function(e){ console.log("支付结果:"), console.log(e) }), egret.ExternalInterface.addCallback("onLogout", function(e){ console.log("登出:"), console.log(e), t.onLogout(e) }), egret.ExternalInterface.addCallback("onMinor", function(e){ console.log(e) }) }, t.Native_onClickLogin=function(e){ e.loginType=t.vZzwB.loginType?1:0; var i=JSON.stringify(e); console.log("main:手机测试版本 onClickLogin"), egret.ExternalInterface.call("onClickLogin",i) }, t.Native_onClickPay=function(e){ console.log("main:手机测试版本 Native_onClickPay"); window.payFunction(e); }, t.Native_RestartApp=function(e){ e.loginType=t.vZzwB.loginType?1:0; var i=JSON.stringify(e); console.log("main:手机测试版本 restartApp"), egret.ExternalInterface.call("restartApp",i) }, t.Native_initializationSDK=function(e){ e.loginType=t.vZzwB.loginType?1:0; var i=JSON.stringify(e); console.log("main:手机测试版本 initializationSDK"), egret.ExternalInterface.call("initializationSDK",i) }, t.Native_reportPlayerData=function(e){ var t=JSON.stringify(e); console.log("main:上报 reportInfo"), egret.ExternalInterface.call("reportInfo",t) }, t.Native_adJustData=function(e){ var t=JSON.stringify(e); console.log("main:F1埋点 adJustData"), egret.ExternalInterface.call("adJustData",t) }, t.Native_onCopy=function(e){ console.log("main:手机版本复制 @onCopy"), egret.ExternalInterface.call("@onCopy",e) }, t.Native_openURL=function(e){ console.log("main:手机原生打开网址 openUrl"), egret.ExternalInterface.call("@openUrl",e) }, t.Native_honghuSwitchAccount=function(e){ window.location.href='play'; }, t.gongGaoView=null, t.ageView=null, t }(eui.UILayer); __reflect(Main.prototype,"Main"); var app;! function(e){ var t=function(t){ function i(){ var i=t.call(this)||this; i._selectJob=0, i._selectSex=0, i.isAutoEnter=!1, i.roleData=null, i.roleTexture=null, i.mcName="", i.roleMcFactory=new egret.MovieClipDataFactory, i.autoCreateStr="", e.ZgOY.ins().reporting(e.ReportDataEnum.CREATE_ROLE_VIEW,{}, null,!1); var r='\n \n \n \n \n \n \n \n '; i.jobBtn=EXML.parse(r); var n='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '; return i.clazz=EXML.parse(n), i.skinName="MainCreateRoleSkin", i.percentHeight=100, i.percentWidth=100, i.horizontalCenter=0, i.verticalCenter=0, i.job1.selected.source="login_zs_1", i.job2.selected.source="login_fs_1", i.job3.selected.source="login_ds_1", i.boy.selected.source="login_nan_1", i.girl.selected.source="login_nv_1", i.setViewSize(), i } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI() }, i.prototype.createBtnMC=function(){ var e=(RES.getRes(ZkSzi.RES_DIR+"create/create_anniu_json?v=7"),RES.getRes(ZkSzi.RES_DIR+"create/create_anniu_png?v=7"),null), t=null, i=this, r=new egret.MovieClipDataFactory; this.createMc=new egret.MovieClip, this.createMc.touchEnabled=!1, this.createMcGrp.addChild(this.createMc); var n=function(){ e&&t&&(r.clearCache(),r.mcDataSet=e,r.texture=t,i.createMc.movieClipData=r.generateMovieClipData("create_anniu"),i.createMc.gotoAndPlay(1,-1)) }; RES.getResByUrl(ZkSzi.RES_DIR+"eff/create_anniu.json?v=7", function(t,i){ t&&(e=t,n()) }, this,RES.ResourceItem.TYPE_JSON), RES.getResByUrl(ZkSzi.RES_DIR+"eff/create_anniu.png?v=7", function(e,i){ e&&(t=e,n()) }, this,RES.ResourceItem.TYPE_IMAGE) }, i.prototype.createRoleMC=function(e){ this.mcName=e, this.roleData=null, this.roleTexture=null, RES.getResByUrl(ZkSzi.RES_DIR+"create/"+this.mcName+".json?v=7",this.compFuncJson,this,RES.ResourceItem.TYPE_JSON), RES.getResByUrl(ZkSzi.RES_DIR+"create/"+this.mcName+".png?v=7",this.compFuncPng,this,RES.ResourceItem.TYPE_IMAGE) }, i.prototype.compFuncJson=function(e,t){ e&&t&&-1!=t.indexOf(this.mcName)&&(this.roleData=e,this.createBody()) }, i.prototype.compFuncPng=function(e,t){ e&&t&&-1!=t.indexOf(this.mcName)&&(this.roleTexture=e,this.createBody()) }, i.prototype.createBody=function(){ this.roleData&&this.roleTexture&&(this.roleMcFactory.mcDataSet=this.roleData,this.roleMcFactory.texture=this.roleTexture,this.roleMc.movieClipData=this.roleMcFactory.generateMovieClipData(this.mcName),this.roleMc.gotoAndPlay(1,-1)) }, i.prototype.initUI=function(){ this.autoCreateStr="秒后自动创建", this.createBtn.icon="login_btn", window.isTraditional&&(this.bgImg.source="login_bg1_jpg",this.createBtn.icon="login_btn1",this.job1.label="戰士",this.job2.label="法師",this.job3.label="道士",this.autoCreateStr="秒後自動創建"), this.selectJob=1==Main.vZzwB.gameMode?1:window.randomRange(1,3), this.selectSex=window.randomRange(0,1), this.roleMc=new egret.MovieClip, this.roleMc.touchEnabled=!1, this.roleMc.scaleX=this.roleMc.scaleY=1.4, this.roleGrp.addChild(this.roleMc), this.createBtnMC(), egret.MainContext.instance.stage.addEventListener(egret.Event.RESIZE,this.setViewSize,this), this.job1.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.job2.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.job3.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.boy.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.girl.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.createBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.diceBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this); var t=e.MiOx.nickName; "null"==t||""==t?e.ubnV.ins().s_255_6(this._selectSex):this.setName(t), this.nameInput.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.nameInput.maxChars=7; }, i.prototype.updateTiem=function(){ var e=Math.ceil((this.openTime-egret.getTimer())/1e3); this.timeLab.text=""+Math.max(e,0)+this.autoCreateStr, 0>=e&&(this.isAutoEnter=!0,this.sendCreateRole()) }, i.prototype.createRuselt=function(e){ 6==Math.abs(e) }, i.prototype.perloadProgress=function(e){ e[0], e[1] }, i.prototype.setViewSize=function(){ var e=egret.MainContext.instance.stage.stageHeight; e=i;i++){ this["job"+i].currentState='up'; } if(1==Main.vZzwB.gameMode){ this.job1.visible=this.job3.visible=!1; this.job2.currentState="selected"; this.job2.label=this.job1.label; this.job2.selected.source='login_zs_1'; }else{ this["job"+e].currentState="selected"; } 0==t?(this.boy.currentState="selected",this.girl.currentState="up"):(this.girl.currentState="selected",this.boy.currentState="up") }, i.prototype.setName=function(e){ this.nameInput.text=e, this.isAutoEnter&&this.sendCreateRole() }, i.prototype.curJob=function(){ return this._selectJob }, i.prototype.curSex=function(){ return this._selectSex }, i }(eui.Component); e.MainCreateRoleView=t, __reflect(t.prototype,"app.MainCreateRoleView") }(app||(app={})); var app;! function(e){ var t=function(e){ function t(){ var t=e.call(this)||this, i='\n \n \n \n \n\n '; return EXML.parse(i), t.skinName="GongGaoTabSkin", t } return __extends(t,e), t.prototype.dataChanged=function(){ this.data&&(this.label.text=this.data.title) }, t }(eui.ItemRenderer); e.MainGongGaoItemView=t, __reflect(t.prototype,"app.MainGongGaoItemView") }(app||(app={})); var app;! function(e){ var t=function(t){ function i(){ var e=t.call(this)||this; e.gongGaoData=[]; var i='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n '; return e.clazz=EXML.parse(i), e.skinName="MainGongGaoViewSkin", e.horizontalCenter=e.verticalCenter=0, e } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI() }, i.prototype.initUI=function(){ this.gongGaoData=[], this.tab.itemRenderer=e.MainGongGaoItemView, this.sureBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.btn_close.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.tab.addEventListener(eui.ItemTapEvent.ITEM_TAP,this.onChange,this); var t=this, i=new XMLHttpRequest; i.onreadystatechange=function(){ if(4==i.readyState&&200==i.status)try{ t.gongGaoData=JSON.parse(i.responseText), t.updateTabInfo() }catch(e){ console.log("主界面公告返回失败") } }, i.open("GET",Main.vZzwB.gongGaoUrl+"?platform="+Main.vZzwB.game+"&v="+(new Date).getTime(),!0), i.send(null), this.gongGaoScroller.viewport.scrollV=0, this.gongGaoScroller&&this.gongGaoScroller.verticalScrollBar&&(this.gongGaoScroller.verticalScrollBar.autoVisibility=!1,this.gongGaoScroller.verticalScrollBar.visible=!1) }, i.prototype.onClick=function(t){ switch(t.currentTarget){ case this.sureBtn: e.OSzbc.ins().wVgAo("anniu2_mp3"), this.removeView(); break; case this.btn_close: e.OSzbc.ins().wVgAo("anniu2_mp3"), this.removeView() } }, i.prototype.updateTabInfo=function(){ this.gongGaoData.length>0&&(this.tab.dataProvider=new eui.ArrayCollection(this.gongGaoData),this.tab.selectedIndex=0,this.updateGongGaoText()) }, i.prototype.onChange=function(e){ this.gongGaoScroller.viewport.scrollV=0, this.updateGongGaoText() }, i.prototype.updateGongGaoText=function(){ if(this.gongGaoData.length>0){ var e=this.tab.dataProvider.getItemAt(this.tab.selectedIndex); e&&e.text&&(this.textLab.textFlow=(new egret.HtmlTextParser).parser(e.text)) } }, i.prototype.removeView=function(){ this.gongGaoData=[], this.sureBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.btn_close.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.tab.removeEventListener(eui.ItemTapEvent.ITEM_TAP,this.onChange,this), this.parent&&(this.parent.removeChild(this),Main.gongGaoView=null) }, i }(eui.Component); e.MainGongGaoWin=t, __reflect(t.prototype,"app.MainGongGaoWin") }(app||(app={})); var app;! function(e){ var t=function(e){ function t(){ var t=e.call(this)||this, i='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '; return t.clazz=EXML.parse(i), t.skinName="loadingview", t.left=t.right=t.top=t.bottom=0, t } return __extends(t,e), t.prototype.childrenCreated=function(){ e.prototype.childrenCreated.call(this), this.BgImg.source=Main.vZzwB.gameLoadImg?Main.vZzwB.gameLoadImg:"mp_jzjm_png"; window.isTraditional&&(this.BgImg.source="mp_jzjm2_png",this.reloadImg.source="login_wenzi4",this.firstLoadImg.source="login_wenzi5"), this.reloadImg.addEventListener(egret.TouchEvent.TOUCH_TAP,this.reloadFunction,this) }, t.prototype.reloadFunction=function(){ location.reload() }, t.prototype.showLoadProgress=function(e,t){ this.rect.width=(100-Number(e))/100*879, this.lodingDesc.text=t+"..."+e+"%" }, t.prototype.removeView=function(){ this.reloadImg.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.reloadFunction,this), this.parent&&this.parent.removeChild(this) }, t }(eui.Component); e.MainLoadingView=t, __reflect(t.prototype,"app.MainLoadingView") }(app||(app={})); var app;! function(e){ var t=function(t){ function i(){ var e=t.call(this)||this, i='\n \n \n \n \n \n\n '; return e.clazz=EXML.parse(i), e.skinName="MainLoginViewSkin", e.left=e.right=e.top=e.bottom=0, e.isEnter=!1, e } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI() }, i.prototype.initUI=function(){ this.enterGrp.visible=!0, this.serverGrp.visible=!1, this.shuangbeiGrp.visible=!0, this.ageButton.visible=!0, this.gameLoginBg.source="mp_xfjm_png", this.gameLogo.source=Main.vZzwB.gameLogo?Main.vZzwB.gameLogo+"_png":"", this.btnList.itemRenderer=e.ListButton, this.serverList.itemRenderer=e.ServerItem, this.switchAccountGrp.visible=!0, this.selectServerImg.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.enterBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.closeBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.btnList.addEventListener(eui.ItemTapEvent.ITEM_TAP,this.onClickLeftList,this), this.serverList.addEventListener(eui.ItemTapEvent.ITEM_TAP,this.onClickRightList,this), this.gongGaoBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.ageButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.switchAccountGrp.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), KdbLz.os.KeyBoard.addKeyDown(this.keyDown,this), this.gongGaoBtn.visible=Main.vZzwB.isShowGongGao?!0:!1, this.enterBtn.icon="login_jinru", 10041==Main.vZzwB.pfID&&(this.enterGrp.verticalCenter=160), window.isTraditional&&(this.serverSelect.text="區服選擇",this.serverTypeLab0.text="順 暢",this.serverTypeLab1.text="維 護",this.serverTypeLab2.text="爆 滿",this.enterBtn.icon="login_jinru1",this.serverSelectImg.source="login_xzqf1"), Main.vZzwB.isAutoShowGongGao&&Main.showGongGaoView(); var i=''; i="资源版本: v"+Main.vZzwB.gameAppVersion, i+="\n游戏版本: v"+Main.vZzwB.gameVersion, this.versionLab.text=i; }, i.prototype.keyDown=function(e){ if(e==KdbLz.KeyCode.KC_ENTER){ this.enterGame(); } }, i.prototype.onClick=function(t){ switch(t.currentTarget){ case this.selectServerImg: e.OSzbc.ins().wVgAo("anniu2_mp3"), this.serverGrp.visible=!0, this.enterGrp.visible=!1; break; case this.enterBtn: this.enterGame(); break; case this.closeBtn: e.OSzbc.ins().wVgAo("anniu2_mp3"), this.serverGrp.visible=!1, this.enterGrp.visible=!0; break; case this.gongGaoBtn: e.OSzbc.ins().wVgAo("anniu2_mp3"); Main.showGongGaoView(); break; case this.ageButton: e.OSzbc.ins().wVgAo("anniu2_mp3"), Main.showAgeoView() break; case this.switchAccountGrp: e.OSzbc.ins().wVgAo("anniu2_mp3"); setTimeout(function(){ Main.Native_honghuSwitchAccount("1"); },500); } }, i.prototype.updateInfo=function(t,i){ this.enterBtn.visible=!0; this.btnList.selectedIndex=0, this.curServerData=i, this.curServerData.user=Main.vZzwB.userInfo.account, this.curServerData.originalSrvid||(this.curServerData.originalSrvid=this.curServerData.srvid), e.MiOx.Param=this.curServerData, this.btnList.dataProvider=new eui.ArrayCollection(t); var r=this.btnList.dataProvider.getItemAt(this.btnList.selectedIndex); r&&r.serverlist&&(this.serverList.dataProvider=new eui.ArrayCollection(r.serverlist)), this.setServerName() }, i.prototype.setNewServer=function(e){ this.curServerData=e, this.setServerName() }, i.prototype.onClickLeftList=function(t){ e.OSzbc.ins().wVgAo("anniu2_mp3"); var l=this.btnList.dataProvider.getItemAt(this.btnList.selectedIndex), s=0==this.btnList.selectedIndex?l.serverlist:l.serverlist.slice().reverse(); s&&l&&l.serverlist&&(this.serverList.dataProvider=new eui.ArrayCollection(s)) }, i.prototype.onClickRightList=function(t){ e.OSzbc.ins().wVgAo("anniu2_mp3"); this.curServerData=t.item, this.curServerData.user=Main.vZzwB.userInfo.account, this.curServerData.originalSrvid||(this.curServerData.originalSrvid=this.curServerData.srvid), this.setServerName(), this.serverGrp.visible=!1, this.enterGrp.visible=!0; this.enterGame(); }, i.prototype.setServerName=function(){ if(this.curServerData&&1e?-1:e>t?1:0 }, e.sortAscAttr=function(t,i,r){ var n; if(void 0==r)n=e.sortAsc(t,i); else{ var o=t[r], a=i[r]; n=a>o?-1:o>a?1:0 } return n }, e.sortDesc=function(e,t){ return e>t?-1:t>e?1:0 }, e.sortDescAttr=function(t,i,r){ var n; if(void 0==r)n=e.sortDesc(t,i); else{ var o=t[r], a=i[r]; n=o>a?-1:a>o?1:0 } return n }, e.binSearch=function(t,i,r){ if(void 0===r&&(r=null),!t||0==t.length)return 0; r||(r=e.sortAsc); for(var n=0, o=t.length-1;o>=n;){ var a=o+n>>1, s=t[a]; r(s,i)<=0?n=a+1:o=a-1 } return n }, e.test=function(){ for(var t=[],i=10,r=0;i>r;r++){ var n=Math.floor(1e5*Math.random()), o=e.binSearch(t,n); t.splice(o,0,n) } if(t.length!=i)for(var a=0, s=t;at[r+1]);r++); }, e }(); e.Algorithm=t, __reflect(t.prototype,"app.Algorithm") }(app||(app={})); var app;! function(e){ var t=function(t){ function i(){ var i=t.call(this)||this; i._selectJob=0, i._selectSex=0, i.isAutoEnter=!1, i.roleData=null, i.roleTexture=null, i.mcName="", i.roleMcFactory=new egret.MovieClipDataFactory, e.ZgOY.ins().reporting(e.ReportDataEnum.CREATE_ROLE_VIEW,{}, null,!1); var r='\n \n \n \n \n \n \n \n '; i.jobBtn=EXML.parse(r); var n='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '; return i.clazz=EXML.parse(n), i.skinName="PhoneCreateRole2Skin", i.percentHeight=100, i.percentWidth=100, i.horizontalCenter=0, i.verticalCenter=0, i.job1.selected.source="login_zs_1", i.job2.selected.source="login_fs_1", i.job3.selected.source="login_ds_1", i.boy.selected.source="login_nan_1", i.girl.selected.source="login_nv_1", i } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI(), e.AHhkf.ins().KVqx("chuangjian_mp3") }, i.prototype.createBtnMC=function(){ var e=(RES.getRes(ZkSzi.RES_DIR+"create/create_anniu_json?v=7"),RES.getRes(ZkSzi.RES_DIR+"create/create_anniu_png?v=7"),null), t=null, i=this, r=new egret.MovieClipDataFactory; this.createMc=new egret.MovieClip, this.createMc.touchEnabled=!1, this.createMcGrp.addChild(this.createMc); var n=function(){ e&&t&&(r.clearCache(),r.mcDataSet=e,r.texture=t,i.createMc.movieClipData=r.generateMovieClipData("create_anniu"),i.createMc.gotoAndPlay(1,-1)) }; RES.getResByUrl(ZkSzi.RES_DIR+"eff/create_anniu.json?v=7", function(t,i){ t&&(e=t,n()) }, this,RES.ResourceItem.TYPE_JSON), RES.getResByUrl(ZkSzi.RES_DIR+"eff/create_anniu.png?v=7", function(e,i){ e&&(t=e,n()) }, this,RES.ResourceItem.TYPE_IMAGE) }, i.prototype.createRoleMC=function(e){ this.mcName=e, this.roleData=null, this.roleTexture=null, RES.getResByUrl(ZkSzi.RES_DIR+"create/"+this.mcName+".json?v=7",this.compFuncJson,this,RES.ResourceItem.TYPE_JSON), RES.getResByUrl(ZkSzi.RES_DIR+"create/"+this.mcName+".png?v=7",this.compFuncPng,this,RES.ResourceItem.TYPE_IMAGE) }, i.prototype.compFuncJson=function(e,t){ e&&t&&-1!=t.indexOf(this.mcName)&&(this.roleData=e,this.createBody()) }, i.prototype.compFuncPng=function(e,t){ e&&t&&-1!=t.indexOf(this.mcName)&&(this.roleTexture=e,this.createBody()) }, i.prototype.createBody=function(){ this.roleData&&this.roleTexture&&(this.roleMcFactory.mcDataSet=this.roleData,this.roleMcFactory.texture=this.roleTexture,this.roleMc.movieClipData=this.roleMcFactory.generateMovieClipData(this.mcName),this.roleMc.gotoAndPlay(1,-1)) }, i.prototype.initUI=function(){ this.createBtn.icon="login_btn", this.selectJob=window.randomRange(1,3), this.selectSex=window.randomRange(0,1), this.roleMc=new egret.MovieClip, this.roleMc.touchEnabled=!1, this.roleMc.scaleX=this.roleMc.scaleY=1.4, this.roleGrp.addChild(this.roleMc), this.createBtnMC(), this.job1.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.job2.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.job3.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.boy.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.girl.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.createBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.diceBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this); var t=e.MiOx.nickName; "null"==t||""==t?e.ubnV.ins().s_255_6(this._selectSex):this.setName(t), this.nameInput.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.nameInput.maxChars=7 }, i.prototype.close=function(){ for(var t=[],i=0;i=i;i++)this["job"+i].currentState="up"; this["job"+e].currentState="selected", 0==t?(this.boy.currentState="selected",this.girl.currentState="up"):(this.girl.currentState="selected",this.boy.currentState="up") }, i.prototype.setName=function(e){ this.nameInput.text=e, this.isAutoEnter&&this.sendCreateRole() }, i.prototype.curJob=function(){ return this._selectJob }, i.prototype.curSex=function(){ return this._selectSex }, i }(eui.Component); e.PhoneCreateRoleView=t, __reflect(t.prototype,"app.PhoneCreateRoleView") }(app||(app={})); var app;! function(e){ var t=function(t){ function i(){ var e=t.call(this)||this, i='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '; return e.clazz=EXML.parse(i), e.skinName="PhoneLoading2Skin", e.percentHeight=100, e.percentWidth=100, e } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.BgImg.source=Main.vZzwB.gameLoadImg?Main.vZzwB.gameLoadImg:"mp_jzjm_png", e.AHhkf.ins().DHzYBI(), 10002==Main.vZzwB.pfID?this.version2.visible=!1:(10007==Main.vZzwB.pfID||10008==Main.vZzwB.pfID||10035==Main.vZzwB.pfID)&&(this.version1.visible=this.version2.visible=!1), window.isTraditional&&(this.BgImg.source="mp_jzjm2_png",this.reloadImg.source="login_wenzi4",this.firstLoadImg.source="login_wenzi5"), this.reloadImg.addEventListener(egret.TouchEvent.TOUCH_TAP,this.reloadFunction,this) }, i.prototype.reloadFunction=function(){ location.reload() }, i.prototype.showLoadProgress=function(e,t){ this.rect.width=(100-Number(e))/100*879, this.lodingDesc.text=t+"..."+e+"%" }, i.prototype.removeView=function(){ this.reloadImg.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.reloadFunction,this), this.parent&&this.parent.removeChild(this) }, i }(eui.Component); e.PhoneLoadingView=t, __reflect(t.prototype,"app.PhoneLoadingView") }(app||(app={})); var app; !function(e){ var t=function(t){ function i(){ var e=t.call(this)||this; e.httpNum=0; var i='\n \n \n \n \n'; return e.clazz=EXML.parse(i), e.skinName="PhoneLoginView2Skin", e.percentHeight=100, e.percentWidth=100, e.isEnter=!1, e } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI() }, i.prototype.initUI=function(){ if(this.privacyGrp.visible=!1,this.shuangbeiGrp.visible=!0,this.switchAccountGrp.visible=!0,KdbLz.qOtrbE.vDCH?e.AHhkf.ins().KVqx("xuanze_mp3"):KdbLz.qOtrbE.IsIOS?Main.vZzwB.isAutoShowGongGao&&egret.MainContext.instance.stage.addEventListener(egret.TouchEvent.TOUCH_TAP,this.stageClick,this):e.AHhkf.ins().KVqx("xuanze_mp3"),e.ZgOY.ins().reporting(e.ReportDataEnum.SELECT_SERVICE,{}, null,!1),this.ageButton.visible=!0,this.enterGrp.visible=!0,this.serverGrp.visible=!1,this.gameLoginBg.source="mp_xfjm_png",this.gameLogo.source=Main.vZzwB.gameLogo?Main.vZzwB.gameLogo+"_png":"",this.btnList.itemRenderer=e.ListButton,this.serverList.itemRenderer=e.ServerItem,this.gongGaoBtn.visible=Main.vZzwB.isShowGongGao?!0:!1,this.selectServerImg.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.enterBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.closeBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.btnList.addEventListener(eui.ItemTapEvent.ITEM_TAP,this.onClickLeftList,this),this.serverList.addEventListener(eui.ItemTapEvent.ITEM_TAP,this.onClickRightList,this),this.gongGaoBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.ageButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.userLab.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.privacyLab.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.userPrivacy.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.switchAccountGrp.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this),this.enterBtn.icon="login_jinru",window.isTraditional&&(this.serverSelect.text="區服選擇",this.serverTypeLab0.text="順 暢",this.serverTypeLab1.text="維 護",this.serverTypeLab2.text="爆 滿",this.enterBtn.icon="login_jinru1",this.serverSelectImg.source="login_xzqf1"),Main.vZzwB.isAutoShowGongGao&&Main.showGongGaoView(),10035==Main.vZzwB.pfID){ this.gameLogo.top=94, this.enterGrp.verticalCenter=137, this.privacyGrp.visible=this.shuangbeiGrp.visible=!0, this.version2.visible=!1, this.version1.source="zjt10_png "; var t=egret.localStorage.getItem("userCheckBox"); t&&"1"==t?this.userPrivacy.selected=!0:this.userPrivacy.selected=!1 } var i=''; Main.vZzwB.gameAppVersion&&""!=Main.vZzwB.gameAppVersion&&(i="应用版本: v"+Main.vZzwB.gameAppVersion), Main.vZzwB.gameVersion&&""!=Main.vZzwB.gameVersion&&(i+="\n游戏版本: v"+Main.vZzwB.gameVersion), this.versionLab.text=i; }, i.prototype.stageClick=function(){ e.OSzbc.ins().wVgAo("anniu2_mp3"), e.AHhkf.ins().KVqx("xuanze_mp3") }, i.prototype.onClick=function(t){ switch(t.currentTarget){ case this.selectServerImg: e.OSzbc.ins().wVgAo("anniu2_mp3"), this.serverGrp.visible=!0, this.enterGrp.visible=!1; break; case this.enterBtn: if(10035==Main.vZzwB.pfID){ var i=egret.localStorage.getItem("userCheckBox"); if(!i||"0"==i)return void Main.XIFoU("请先勾选用户协议和隐私政策") } this.enterGame(); break; case this.closeBtn: e.OSzbc.ins().wVgAo("anniu2_mp3"), this.serverGrp.visible=!1, this.enterGrp.visible=!0; break; case this.gongGaoBtn: e.OSzbc.ins().wVgAo("anniu2_mp3"), Main.showGongGaoView(); break; case this.ageButton: e.OSzbc.ins().wVgAo("anniu2_mp3"), Main.showAgeoView(); break; case this.userLab: Main.Native_openURL(window.webUrl); break; case this.privacyLab: Main.Native_openURL(window.webUrl); break; case this.userPrivacy: egret.localStorage.setItem("userCheckBox",this.userPrivacy.selected?"1":"0"); break; case this.switchAccountGrp: e.OSzbc.ins().wVgAo("anniu2_mp3"); setTimeout(function(){ Main.Native_honghuSwitchAccount("1"); },500); } }, i.prototype.updateInfo=function(e,t){ this.enterBtn.visible=!0; this.btnList.selectedIndex=0, this.curServerData=t, this.curServerData.user=Main.vZzwB.userInfo.account, this.curServerData.originalSrvid||(this.curServerData.originalSrvid=this.curServerData.srvid), this.btnList.dataProvider=new eui.ArrayCollection(e); var i=this.btnList.dataProvider.getItemAt(this.btnList.selectedIndex); i&&i.serverlist&&(this.serverList.dataProvider=new eui.ArrayCollection(i.serverlist.reverse())), this.setServerName() }, i.prototype.onClickLeftList=function(t){ e.OSzbc.ins().wVgAo("anniu2_mp3"); var i=this.btnList.dataProvider.getItemAt(this.btnList.selectedIndex), s=0==this.btnList.selectedIndex?i.serverlist:i.serverlist.slice().reverse(); s&&i&&i.serverlist&&(this.serverList.dataProvider=new eui.ArrayCollection(s)) }, i.prototype.onClickRightList=function(t){ e.OSzbc.ins().wVgAo("anniu2_mp3"), this.curServerData=t.item, this.curServerData.user=Main.vZzwB.userInfo.account, this.curServerData.originalSrvid||(this.curServerData.originalSrvid=this.curServerData.srvid), e.MiOx.Param=this.curServerData, this.setServerName(), this.serverGrp.visible=!1, this.enterGrp.visible=!0; this.enterGame(); }, i.prototype.setSwitchAccount=function(){ this.switchAccountGrp.visible=!0; }, i.prototype.setServerName=function(){ if(this.curServerData&&1=0;l--)if(s=n.serverlist[l],s.serverlist)for(var h=s.serverlist.length-1;h>=0;h--){ e.MiOx.newestServer=s.serverlist[h], e.MiOx.newestServer.user=Main.vZzwB.userInfo.account, e.MiOx.newestServer.originalSrvid||(e.MiOx.newestServer.originalSrvid=e.MiOx.newestServer.srvid); break } for(var c=[],p=[],g=[],l=0;a>l;l++)if(s=n.serverlist[l],s.serverlist&&s.serverlist.length>0&&(c.push(s),n.login&&n.login.length>0))for(var h=0;h0){ var u=[], m=c[c.length-1].serverlist; if(m&&m.length){ for(var x=0,y=m.length;x0){ for(var l=0;l0){ Main.phoneLoginView.updateInfo(c,g[0]), g=g.reverse(), c=c.reverse(), c.unshift({ name:"最近登录", serverlist:g }), u.length&&c.unshift({ name:"推荐新服", serverlist:u }); }else{ for(var d=null,l=a-1;l>=0;l--){ s=n.serverlist[l]; for(var f=s.serverlist.length-1;f>=0;f--)if(3!=s.serverlist[f].type||4!=s.serverlist[f].type){ d=s.serverlist[f]; break } if(d)break } d&&(c=c.reverse(),u.length&&c.unshift({ name:"推荐新服", serverlist:u }),Main.phoneLoginView.updateInfo(c,d)) } }else 10010==Main.vZzwB.pfID&&Main.startServerTips("【先遣1服】将于8月19日14点正式开服,敬请期待。") }, t.copyDataHandler=function(e){ var t; if(e instanceof Array)t=[]; else{ if(!(e instanceof Object))return e; t={} } for(var i=Object.keys(e),r=0,n=i.length;n>r;r++){ var o=i[r]; t[o]=this.copyDataHandler(e[o]) } return t }, t.prototype.getServiceErr=function(){ e.ZgOY.ins().reporting(e.ReportDataEnum.GET_SERVER_LIST,{ result:0 }, null,!1) }, t.prototype.onClickRightList=function(e){ this.selectSerInfo=e.item, this.selectSerInfo&&window.selectInfo(this.selectSerInfo) }, t.prototype.onButtonClick=function(){ return null==this.selectSerInfo?void(Main&&Main.XIFoU&&Main.XIFoU("请选择服务器!")):void window.onClickLogin(this.selectSerInfo) }, t }(); e.PhoneServerListInfo=t, __reflect(t.prototype,"app.PhoneServerListInfo") }(app||(app={})); var __reflect=this&&this.__reflect|| function(e,t,i){ e.__class__=t, i?i.push(t):i=[t], e.__types__=e.__types__?i.concat(e.__types__):i }, md5=function(){ function e(){ this.hexcase=0, this.b64pad="" } return e.prototype.hex_md5=function(e){ return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(e))) }, e.prototype.b64_md5=function(e){ return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(e))) }, e.prototype.any_md5=function(e,t){ return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(e)),t) }, e.prototype.hex_hmac_md5=function(e,t){ return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(e),this.str2rstr_utf8(t))) }, e.prototype.b64_hmac_md5=function(e,t){ return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(e),this.str2rstr_utf8(t))) }, e.prototype.any_hmac_md5=function(e,t,i){ return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(e),this.str2rstr_utf8(t)),i) }, e.prototype.md5_vm_test=function(){ return"900150983cd24fb0d6963f7d28e17f72"==this.hex_md5("abc").toLowerCase() }, e.prototype.rstr_md5=function(e){ return this.binl2rstr(this.binl_md5(this.rstr2binl(e),8*e.length)) }, e.prototype.rstr_hmac_md5=function(e,t){ var i=this.rstr2binl(e); i.length>16&&(i=this.binl_md5(i,8*e.length)); for(var r=Array(16),n=Array(16),o=0;16>o;o++)r[o]=909522486^i[o], n[o]=1549556828^i[o]; var a=this.binl_md5(r.concat(this.rstr2binl(t)),512+8*t.length); return this.binl2rstr(this.binl_md5(n.concat(a),640)) }, e.prototype.rstr2hex=function(e){ try{ this.hexcase }catch(t){ this.hexcase=0 } for(var i,r=this.hexcase?"0123456789ABCDEF":"0123456789abcdef",n="",o=0;o>>4&15)+r.charAt(15&i); return n }, e.prototype.rstr2b64=function(e){ try{ this.b64pad }catch(t){ this.b64pad="" } for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r="", n=e.length, o=0;n>o;o+=3)for(var a=e.charCodeAt(o)<<16|(n>o+1?e.charCodeAt(o+1)<<8:0)|(n>o+2?e.charCodeAt(o+2):0),s=0;4>s;s++)r+=8*o+6*s>8*e.length?this.b64pad:i.charAt(a>>>6*(3-s)&63); return r }, e.prototype.rstr2any=function(e,t){ var i,r,n,o,a,s=t.length, l=Array(Math.ceil(e.length/2)); for(i=0;ir;r++){ for(a=Array(),o=0,i=0;i0||n>0)&&(a[a.length]=n); c[r]=o, l=a } var p=""; for(i=c.length-1;i>=0;i--)p+=t.charAt(c[i]); return p }, e.prototype.str2rstr_utf8=function(e){ for(var t,i,r="", n=-1;++n=55296&&56319>=t&&i>=56320&&57343>=i&&(t=65536+((1023&t)<<10)+(1023&i),n++), 127>=t?r+=String.fromCharCode(t):2047>=t?r+=String.fromCharCode(192|t>>>6&31,128|63&t):65535>=t?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):2097151>=t&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t)); return r }, e.prototype.str2rstr_utf16le=function(e){ for(var t="", i=0;i>>8&255); return t }, e.prototype.str2rstr_utf16be=function(e){ for(var t="", i=0;i>>8&255,255&e.charCodeAt(i)); return t }, e.prototype.rstr2binl=function(e){ for(var t=Array(e.length>>2),i=0;i>5]|=(255&e.charCodeAt(i/8))<>5]>>>i%32&255); return t }, e.prototype.binl_md5=function(e,t){ e[t>>5]|=128<>>9<<4)+14]=t; for(var i=1732584193, r=-271733879, n=-1732584194, o=271733878, a=0;a>16)+(t>>16)+(i>>16); return r<<16|65535&i }, e.prototype.bit_rol=function(e,t){ return e<>>32-t }, e }(); __reflect(md5.prototype,"md5"); var app; !function(e){ function t(e,t){ return void 0===t&&(t=1), e>=10?e.toString():0==t?e.toString():"0"+e } var i;! function(e){ e[e.LOGIN_VIEW=1]="LOGIN_VIEW", e[e.SELECT_SERVICE=2]="SELECT_SERVICE", e[e.CLICK_LOGIN=3]="CLICK_LOGIN", e[e.LOGIN_SUCCESS=4]="LOGIN_SUCCESS", e[e.LINK_SERVER=5]="LINK_SERVER", e[e.LINK_SERVER_SUCCESS=6]="LINK_SERVER_SUCCESS", e[e.LINK_SERVER_FAIL=7]="LINK_SERVER_FAIL", e[e.LINK_SERVER_CLOSE=8]="LINK_SERVER_CLOSE", e[e.SWITCH_ROLE=9]="SWITCH_ROLE", e[e.CREATE_ROLE_VIEW=10]="CREATE_ROLE_VIEW", e[e.CLICK_CREATE_ROLE=11]="CLICK_CREATE_ROLE", e[e.CREATE_ROLE_SUCCESS=12]="CREATE_ROLE_SUCCESS", e[e.GET_SERVER_LIST=13]="GET_SERVER_LIST", e[e.Chat=15]="Chat", e[e.UserCheck=16]="UserCheck", e[e.ONCLICK_CREATE=17]="ONCLICK_CREATE", e[e.ONCLICK_WELCOME=18]="ONCLICK_WELCOME", e[e.ENTERMAIN=19]="ENTERMAIN", e[e.COMPLETETASK=20]="COMPLETETASK", e[e.MICROTERMS_DOWNLOAD=21]="MICROTERMS_DOWNLOAD", e[e.ONCLICK_WELCOME2=22]="ONCLICK_WELCOME2", e[e.GET_ROLE_LIST=23]="GET_ROLE_LIST", e[e.LOAD_GAMEAPP=24]="LOAD_GAMEAPP", e[e.UPDATE_LEVEL=1e3]="UPDATE_LEVEL", e[e.UPDATE_POWER=1001]="UPDATE_POWER", e[e.CHANGE_NAME=1002]="CHANGE_NAME", e[e.CLICK_PAY=2001]="CLICK_PAY", e[e.ERROR=9999]="ERROR", e[e.Report_10000=1e4]="Report_10000", e[e.Report_10001=10001]="Report_10001" }(i=e.ReportDataEnum||(e.ReportDataEnum={})); var r=function(){ function r(){ this.msgAry=[], this.jobAry=["","战士","法师","道士"] } return r.ins=function(){ return this._ins=this._ins||new r, this._ins }, r.prototype.reporting=function(t,r,n,o){ if(void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=!0),(!e.ubnV.ihUJ||t==i.Chat)&&(egret.log("reporttype:"+t),Main.vZzwB.isReport)){ var a=window.loginWay?1:0, s={ type:t, counter:Main.vZzwB.pfID, env:Main.vZzwB.game+"|"+a, time:Date.parse((new Date).toString())/1e3 }; s.sign=(new md5).hex_md5(t+s.env+s.time+Main.vZzwB.pfID+"ddcqweb"); var l=egret.getDefinitionByName("app.NWRFmB"), h=egret.getDefinitionByName("app.MiOx"), c=egret.getDefinitionByName("app.GameMap"), p=egret.getDefinitionByName("app.VipData"); if(r&&l){ var g=l.ins().getPayer; g&&g.propSet&&(r.roleName=g.propSet.getName(),r.level=g.propSet.mBjV(),r.zsLevel=g.propSet.MzYki(),r.sex=g.propSet.getSex(),r.job=g.propSet.getAP_JOB(),r.guildName=g.propSet.getGuildName(),r.moneyNums=g.propSet.getNotBindYuanBao(),r.guildID=g.propSet.getGuildId(),r.roleCreateTime=g.propSet.getRoleCreateTime()), h&&(r.uid=h.openID,r.roleId=h.roleId,r.serverId=h.srvid,r.serverName=h.srvname,r.serverOriginaId=h.originalSrvid), c&&(r.mapID=c.mapID), p&&(r.vipLv=p.ins().getMyVipLv()) }else r={}; if(r.uid=Main.vZzwB.userInfo.account,void 0==r.roleId&&(r.roleId=""),r.serverAlias=Main.vZzwB.userInfo.server?Main.vZzwB.userInfo.server:h?h.serverAlias:"",n)for(var u in n)r[u]=n[u]; if(Main.vZzwB.isReportPF&&(s.data=r,KdbLz.qOtrbE.vDCH?this.ReportingFunction(s):window.ReportingFunction(s)),r&&!KdbLz.qOtrbE.vDCH&&10046!=Main.vZzwB.pfID)for(var u in r)r[u]=encodeURIComponent(r[u]); s.data=r; var m=JSON.stringify(s); this.msgAry.push(m), s=null, this.callbackFun() } }, r.prototype.callbackFun=function(){ if(!this.httpReq&&this.msgAry.length){ var t=this.msgAry.shift(); this.httpReq=new egret.HttpRequest, this.httpReq.addEventListener(egret.Event.COMPLETE,this.getServiceComp,this), this.httpReq.addEventListener(egret.IOErrorEvent.IO_ERROR,this.getServiceComp,this), this.httpReq.open(Main.vZzwB.reportURL+"&msg="+t,egret.HttpMethod.GET), this.httpReq.send(), e.KHNO.ins().tBiJo(5e3,1,this.getServiceComp,this) } }, r.prototype.getServiceComp=function(t){ e.KHNO.ins().remove(this.getServiceComp,this), this.httpReq.removeEventListener(egret.Event.COMPLETE,this.getServiceComp,this), this.httpReq.removeEventListener(egret.IOErrorEvent.IO_ERROR,this.getServiceComp,this), this.httpReq=null, this.callbackFun() }, r.prototype.ReportingFunction=function(e){ if(e)if(10007==Main.vZzwB.pfID){ if(12==e.type){ var t=this.format_2(), i="?user_id="+e.data.uid+"&game_id=60&server_id="+e.data.serverId+"&role_id="+e.data.roleId+"&role_name="+e.data.roleName+"&create_date="+t+"&ts="+Date.parse((new Date).toString())/1e3, r=new egret.HttpRequest; r.open(Main.vZzwB.reportURLPF+i,egret.HttpMethod.GET), r.send() } }else if(10010==Main.vZzwB.pfID||10024==Main.vZzwB.pfID){ if(12==e.type||4==e.type||1e3==e.type){ var n=this.getVipLv(e.data.vipLv), o=1==e.data.job?"战士":2==e.data.job?"法师":"道士"; Main.Native_reportPlayerData({ dataType:e.type, serverID:e.data.serverId, serverName:e.data.serverName, roleID:e.data.roleId, roleName:e.data.roleName, roleLevel:e.data.level, moneyNum:e.data.moneyNums, roleCreateTime:e.data.roleCreateTime?Math.floor(e.data.roleCreateTime/1e3):"", roleLevelUpTime:Math.floor((new Date).getTime()/1e3), vip:n, roleCareer:o }) } }else if(2==e.type||12==e.type||4==e.type||1e3==e.type){ var n=this.getVipLv(e.data.vipLv), a={ dataType:e.type, moneyNum:e.data.moneyNums?e.data.moneyNums:0, guildID:e.data.guildID?e.data.guildID:0, guildName:e.data.guildName?e.data.guildName:"", roleCreateTime:e.data.roleCreateTime?Math.floor(e.data.roleCreateTime/1e3):"0", roleID:e.data.roleId, roleId:e.data.roleId, roleName:e.data.roleName?e.data.roleName:"", roleLevel:e.data.level?e.data.level:1, roleLevelUpTime:Math.floor((new Date).getTime()/1e3), zsLevel:e.data.zsLevel?e.data.zsLevel:0, uid:e.data.uid, serverID:e.data.serverId, serverName:e.data.serverName, serverOriginaId:e.data.serverOriginaId, vip:n, roleSex:e.data.sex?"女":0==e.data.sex?"男":"", professionId:e.data.job?e.data.job:0, profession:e.data.job?this.jobAry[e.data.job]:"" }; 10011==Main.vZzwB.pfID?a.zsLevel&&(a.roleLevel=1e3*a.zsLevel+a.roleLevel):10041==Main.vZzwB.pfID?a.serverID=e.data.serverOriginaId%1e4:10012==Main.vZzwB.pfID||10041==Main.vZzwB.pfID?4==a.dataType&&(a.dataType=1e3):10046==Main.vZzwB.pfID&&(a.serverOriginaId=e.data.serverOriginaId%1e3), Main.Native_reportPlayerData(a) } }, r.prototype.format_2=function(){ var e=new Date, i=e.getFullYear(), r=e.getMonth()+1, n=e.getDate(), o=e.getHours(), a=e.getMinutes(), s=e.getSeconds(); return i+"-"+t(r)+"-"+t(n)+" "+t(o)+":"+t(a)+":"+t(s) }, r.prototype.getVipLv=function(e){ var t=0; if(e)for(var i=4;10>i;i++){ var r=e>>i-1&1; r&&(t=i-3) } return t }, r }(); e.ZgOY=r, __reflect(r.prototype,"app.ZgOY") }(app||(app={})); var ZkSzi=function(){ function e(){} return e.Init=function(){ e.RES_DIR_BLOOD=e.RES_DIR+"blood/", e.RES_DIR_BODY=e.RES_DIR+"body/", e.RES_DIR_BODY_SUIT=e.RES_DIR+"bodysuit/", e.RES_DIR_BODY_EFF=e.RES_DIR+"bodyeff/", e.RES_DIR_EFF=e.RES_DIR+"eff/", e.RES_DIR_WIMGEFF=e.RES_DIR+"weaponimgeff/", e.RES_DIR_TITLE=e.RES_DIR+"title/", e.RES_DIR_MONSTER=e.RES_DIR+"monster/", e.RES_DIR_SKILL=e.RES_DIR+"skill/", e.RES_DIR_WEAPON=e.RES_DIR+"weapon/", e.RES_DIR_WEAPONEFF=e.RES_DIR+"weaponeff/", e.RES_DIR_HAIR=e.RES_DIR+"hair/", e.RES_DIR_TELEPORT=e.RES_DIR+"teleport/", e.RES_DIR_NPC=e.RES_DIR+"npc/", e.RES_DIR_CREATE=e.RES_DIR+"create/", e.RES_DIR_WORSHIP=e.RES_DIR+"Worship/", e.RES_DIR_PET=e.RES_DIR+"pet/", e.RES_DIR_PETEXTERIOR=e.RES_DIR+"petexterior/" }, e.RES_ROOT="", e.XvMAVE="resource/", e.WGMF="resource_Publish/", e.RES_DIR="res/", e.RES_DIR_Android="resource/assets/res/", e.MAP_DIR="map/", e.MAP_DIR_Android="resource/assets/map/", e.RES_DIR_BLOOD=e.RES_DIR+"blood/", e.RES_DIR_BODY=e.RES_DIR+"body/", e.RES_DIR_BODY_SUIT=e.RES_DIR+"bodysuit/", e.RES_DIR_BODY_EFF=e.RES_DIR+"bodyeff/", e.RES_DIR_EFF=e.RES_DIR+"eff/", e.RES_DIR_WIMGEFF=e.RES_DIR+"weaponimgeff/", e.RES_DIR_TITLE=e.RES_DIR+"title/", e.RES_DIR_MONSTER=e.RES_DIR+"monster/", e.RES_DIR_SKILL=e.RES_DIR+"skill/", e.RES_DIR_WEAPON=e.RES_DIR+"weapon/", e.RES_DIR_WEAPONEFF=e.RES_DIR+"weaponeff/", e.RES_DIR_HAIR=e.RES_DIR+"hair/", e.RES_DIR_TELEPORT=e.RES_DIR+"teleport/", e.RES_DIR_NPC=e.RES_DIR+"npc/", e.RES_DIR_CREATE=e.RES_DIR+"create/", e.RES_DIR_WORSHIP=e.RES_DIR+"Worship/", e.RES_DIR_PET=e.RES_DIR+"pet/", e.RES_DIR_PETEXTERIOR=e.RES_DIR+"petexterior/", e }(); __reflect(ZkSzi.prototype,"ZkSzi"); var KdbLz; !function(e){ var t=function(){ function e(){ this.displayList=egret.createMap(), this.resDisTime={}, this.isFirstEnter=!1, this._clearWin=3e4, this._clearRes=3e4, this._iscardMapTime=1e4, this._resResource="resource/", this._resMovieClip="res/", this._filterMoviceResource=" " } return Object.defineProperty(e.prototype,"clearWin",{ get:function(){ return this._clearWin }, set:function(e){ this._clearWin=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"clearRes",{ get:function(){ return this._clearRes }, set:function(e){ this._clearRes=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"iscardMapTime",{ get:function(){ return this._iscardMapTime }, set:function(e){ this._iscardMapTime=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"resResource",{ get:function(){ return this._resResource }, set:function(e){ this._resResource=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"resMovieClip",{ get:function(){ return this._resMovieClip }, set:function(e){ this._resMovieClip=e }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"filterMoviceResource",{ get:function(){ return this._filterMoviceResource }, set:function(e){ this._filterMoviceResource=e }, enumerable:!0, configurable:!0 }), e.ins=function(){ var e=this; return e._instance||(e._instance=new e), e._instance }, e.prototype.createMap=function(e){ var t,i,r=RES.getAnalyzers(); for(var n in r)i=r[n], i instanceof egret.Texture&&-1!=n.indexOf(e)&&(t=RES.getResourceInfo(n),t&&RES.host.unload(t)) }, e.prototype.createDiscardMap=function(e){ var t,i,r,n=RES.getAnalyzers(), o=egret.getTimer(); for(var a in n)if(-1!=a.indexOf(e)&&(r=n[a],r instanceof egret.Texture&&r.bitmapData&&r.bitmapData.hashCode)){ i=r.bitmapData.hashCode; var s=egret.BitmapData._displayList[i]; s&&0!=s.length||this.resDisTime[i]&&o-this.resDisTime[i]>this._iscardMapTime&&t&&(t=RES.getResourceInfo(a),delete this.resDisTime[i],RES.host.unload(t)) } n=null }, e.prototype.destroyWin=function(){ var e,t,i,r,n=RES.getAnalyzers(), o=egret.getTimer(); for(var a in n)-1!=a.indexOf(this.resResource)&&(i=n[a],i instanceof egret.SpriteSheet?i.$texture&&i.$texture.bitmapData&&i.$texture.bitmapData.hashCode&&(t=i.$texture.bitmapData.hashCode,r=egret.BitmapData._displayList[t],r&&0!=r.length||this.resDisTime[t]&&o-this.resDisTime[t]>this._clearWin&&(delete this.resDisTime[t],a=a.replace(this._resResource,""),RES.destroyRes(a))):i instanceof egret.Texture&&i.bitmapData&&i.bitmapData.hashCode&&(t=i.bitmapData.hashCode,r=egret.BitmapData._displayList[t],r&&0!=r.length||this.resDisTime[t]&&o-this.resDisTime[t]>this._clearWin&&(e=RES.getResourceInfo(a),e&&(delete this.resDisTime[t],RES.host.unload(e))))); n=null }, e.prototype.destroyRes=function(){ var e,t,i,r=egret.getTimer(), n=RES.getAnalyzers(); for(var o in n)if(t=n[o],t instanceof egret.Texture&&-1!=o.indexOf(this._resMovieClip)&&o.indexOf(this._filterMoviceResource)<0&&t.bitmapData&&t.bitmapData.hashCode){ e=t.bitmapData.hashCode; var a=this.displayList[e]; if(!a||!a.length){ if(!this.resDisTime[e])continue; r-this.resDisTime[e]>this._clearRes&&(i=RES.getResourceInfo(o),i&&(delete this.displayList[e],delete this.resDisTime[e],RES.host.unload(i))) } } n=null }, e.prototype.deleteDisplay=function(e){ delete this.displayList[e] }, e.prototype.getDisplay=function(e){ return this.displayList[e] }, e.prototype.addDisplay=function(e,t){ return this.displayList[e]=t }, e.prototype.disposeResTime=function(e){ this.resDisTime[e]=egret.getTimer() }, e.prototype.delResTime=function(e){ delete this.resDisTime[e] }, e }(); e.Pczy=t, __reflect(t.prototype,"KdbLz.Pczy") }(KdbLz||(KdbLz={})); var app;! function(e){ var t=function(e){ function t(){ var t=e.call(this)||this, i='\n \n \n \n \n\n '; return EXML.parse(i), t.skinName="MainLoginServerListInfoSkin", t } return __extends(t,e), t.prototype.dataChanged=function(){ this.dataInfo=this.data, this.imgState.source=4!=+this.data.type?"login_dian_"+this.data.type:"login_dian_1", this.serverText.text=this.data.serverName, 1==this.data.type?this.serverText.textFlow=[ { text:" "+this.data.serverName }, { text:"(新)", style:{ textColor:2682369 } } ]:( this.serverText.textFlow=[ { text:" "+this.data.serverName }, { text:"(满)", style:{ textColor:'0xe50000' } } ] ) }, t }(eui.ItemRenderer); e.ServerItem=t, __reflect(t.prototype,"app.ServerItem") }(app||(app={})); var app;! function(e){ var t=function(){ function t(){ this.httpNum=0, this.serverArr=[], this.leftStrArr=[] } return t.prototype.getServerInfo=function(){ this.httpReq&&(this.httpReq.removeEventListener(egret.Event.COMPLETE,this.getServiceComp,this),this.httpReq.removeEventListener(egret.IOErrorEvent.IO_ERROR,this.getServiceErr,this)), this.httpReq=new egret.HttpRequest, this.httpReq.addEventListener(egret.Event.COMPLETE,this.getServiceComp,this), this.httpReq.addEventListener(egret.IOErrorEvent.IO_ERROR,this.getServiceErr,this), Main.vZzwB.loginType?this.httpReq.open(Main.vZzwB.serviceListdUrl+"?account="+Main.vZzwB.userInfo.account+"&pf="+Main.vZzwB.pf+"&t="+egret.getTimer(),egret.HttpMethod.GET):this.httpReq.open(Main.vZzwB.serviceListdUrl+"?account="+Main.vZzwB.userInfo.account+"&pf="+Main.vZzwB.pf+"&t="+egret.getTimer(),egret.HttpMethod.GET), this.httpReq.send(), this.timer&&(this.timer.stop(),this.timer.removeEventListener(egret.TimerEvent.TIMER_COMPLETE,this.timerComFunc,this)), this.timer=new egret.Timer(5e3,1), this.timer.addEventListener(egret.TimerEvent.TIMER_COMPLETE,this.timerComFunc,this), this.httpNum+=1 }, t.prototype.timerComFunc=function(){ Main&&Main.XIFoU&&Main.XIFoU('正在拉取服务器...'), this.getServerInfo() }, t.prototype.getServiceComp=function(t){ e.ZgOY.ins().reporting(e.ReportDataEnum.GET_SERVER_LIST,{ result:1 }, null,!1), this.timer.stop(), this.timer.removeEventListener(egret.TimerEvent.TIMER_COMPLETE,this.timerComFunc,this), this.httpNum=0, this.serverArr=[], this.leftStrArr=[]; var i=t.target; if(null==i.response||0==i.response||""==i.response)return void(Main&&Main.XIFoU&&Main.XIFoU("暂无服务器!")); var r={}; try{ r=JSON.parse(i.response) }catch(n){ alert("服务器请求超时,请退出游戏重新打开!") } var o=0; r.serverlist&&(o=r.serverlist.length); for(var a,s=o-1;s>=0;s--)if(a=r.serverlist[s],a.serverlist)for(var l=a.serverlist.length-1;l>=0;l--){ e.MiOx.newestServer=a.serverlist[l], e.MiOx.newestServer.user=Main.vZzwB.userInfo.account, e.MiOx.newestServer.originalSrvid||(e.MiOx.newestServer.originalSrvid=e.MiOx.newestServer.srvid); break } if(window.selectServer){ for(var h=[],c=[],p=[],s=0;o>s;s++)if(a=r.serverlist[s],a.serverlist&&a.serverlist.length>0&&(h.push(a),r.login&&r.login.length>0))for(var l=0;l0){ var u=[], m=h[h.length-1].serverlist; if(m&&m.length){ for(var x=0,y=m.length;x0)for(var s=0;s0)window.selectView.updateInfo(h,p[0]), p=p.reverse(), h=h.reverse(), h.unshift({ name:"最近登录", serverlist:p }), u.length&&h.unshift({ name:"推荐新服", serverlist:g }); else{ for(var m=null,s=o-1;s>=0;s--){ a=r.serverlist[s]; for(var d=a.serverlist.length-1;d>=0;d--)if(3!=a.serverlist[d].type||4!=a.serverlist[d].type){ m=a.serverlist[d]; break } if(m)break } m&&( h=h.reverse(), u.length&&h.unshift({ name:"推荐新服", serverlist:u }), window.selectView.updateInfo(h,m) ) } }else 10010==Main.vZzwB.pfID&&Main.startServerTips("【先遣1服】将于8月19日14点正式开服,敬请期待。") }else{ for(var m=null,s=0;o>s;s++)if(a=r.serverlist[s],a.serverlist)for(var l=0;l PUmMeO'); return void e.ubnV.ins().PUmMeO(); } } Main&&Main.XIFoU&&Main.XIFoU("区服信息错误!") } }, t.prototype.getServiceErr=function(){ e.ZgOY.ins().reporting(e.ReportDataEnum.GET_SERVER_LIST,{ result:0 }, null,!1) }, t.prototype.onClickRightList=function(e){ this.selectSerInfo=e.item, this.selectSerInfo&&window.selectInfo(this.selectSerInfo) }, t.prototype.onButtonClick=function(){ return null==this.selectSerInfo?void(Main&&Main.XIFoU&&Main.XIFoU("请选择服务器!")):void window.onClickLogin(this.selectSerInfo) }, t }(); e.ServerListInfo=t, __reflect(t.prototype,"app.ServerListInfo") }(app||(app={})); var app;! function(e){ var t=function(t){ function i(){ var e=t.call(this)||this, i='\n \n \n \n \n \n \n \n \n \n \n \n \n'; return e.clazz=EXML.parse(i), e.skinName="PhoneTestSkin2", e.percentHeight=100, e.percentWidth=100, e } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI() }, i.prototype.initUI=function(){ if(KdbLz.qOtrbE.IsIOS?Main.vZzwB.isAutoShowGongGao&&egret.MainContext.instance.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.stageClick,this):e.AHhkf.ins().KVqx("xuanze_mp3"),Main.vZzwB.loginType)this.signInButton.visible=!1, this.input.visible=!1, this.rect.visible=!1; else{ this.signInButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this); var t=egret.localStorage.getItem("signInUID"); t&&t.length&&(this.input.text=t) } }, i.prototype.stageClick=function(){ egret.MainContext.instance.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN,this.stageClick,this), e.AHhkf.ins().KVqx("xuanze_mp3") }, i.prototype.onClick=function(e){ if(this.input.text.length){ egret.localStorage.setItem("signInUID",this.input.text); var t={ uid:this.input.text }; Main.vZzwB.userInfo=t, Main.createServerView() } }, i.prototype.removeView=function(){ egret.MainContext.instance.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN,this.stageClick,this), this.signInButton.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.parent&&this.parent.removeChild(this) }, i }(eui.Component); e.SignInView=t, __reflect(t.prototype,"app.SignInView") }(app||(app={})); var app;! function(e){ var t=function(t){ function i(){ var e=t.call(this)||this, i='\n \n \n \n \n \n \n \n \n'; return e.clazz=EXML.parse(i), e.skinName="PhoneTestSkinH5", e.percentHeight=100, e.percentWidth=100, e } return __extends(i,t), i.prototype.childrenCreated=function(){ t.prototype.childrenCreated.call(this), this.initUI() }, i.prototype.initUI=function(){ KdbLz.qOtrbE.IsIOS?Main.vZzwB.isAutoShowGongGao&&egret.MainContext.instance.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.stageClick,this):e.AHhkf.ins().KVqx("xuanze_mp3"), this.signInButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.onClick(null) }, i.prototype.stageClick=function(){ egret.MainContext.instance.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN,this.stageClick,this), e.AHhkf.ins().KVqx("xuanze_mp3") }, i.prototype.onClick=function(e){ window.loginFunction&&window.loginFunction() }, i.prototype.removeView=function(){ egret.MainContext.instance.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN,this.stageClick,this), this.signInButton.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this), this.parent&&this.parent.removeChild(this) }, i }(eui.Component); e.SignInViewH5=t, __reflect(t.prototype,"app.SignInViewH5") }(app||(app={})); var app;! function(e){ var t=function(){ function e(){ this.select=!1 } return e.prototype.read=function(e){ e&&(this.id=e.readUnsignedInt(),this.name=e.readString(),this.faceId=e.readUnsignedByte(),this.sex=e.readByte(),this.level=e.readShort(),this.level<1&&(this.level=1),this.zsLevel=e.readShort(),this.job=e.readByte(),e.readByte(),this.isBan=(1&e.readByte())>0,this.guildName=e.readString()) }, e }(); e.SimplePlayerInfo=t, __reflect(t.prototype,"app.SimplePlayerInfo") }(app||(app={})); var ThemeAdapter=function(){ function e(){} return e.prototype.getTheme=function(e,t,i,r){ function n(e){ t.call(r,e) } function o(t){ t.resItem.url==e&&(RES.removeEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,o,null),i.call(r)) } var a=this; if("undefined"!=typeof generateEUI)egret.callLater(function(){ t.call(r,generateEUI) }, this); else if("undefined"!=typeof generateEUI2)RES.getResByUrl("resource/gameEui.json?v=1.1.9", // + Math.random(), function(e,i){ window.JSONParseClass.setData(e), egret.callLater(function(){ t.call(r,generateEUI2) },a) }, this,RES.ResourceItem.TYPE_JSON); else if("undefined"!=typeof generateJSON)if(e.indexOf(".exml")>-1){ var s=e.split("/"); s.pop(); var l=s.join("/")+"_EUI.json"; generateJSON.paths[e]?egret.callLater(function(){ t.call(r,generateJSON.paths[e]) }, this):RES.getResByUrl(l, function(i){ window.JSONParseClass.setData(i), egret.callLater(function(){ t.call(r,generateJSON.paths[e]) }, a) }, this,RES.ResourceItem.TYPE_JSON) }else egret.callLater(function(){ t.call(r,generateJSON) }, this); else RES.addEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,o,null), RES.getResByUrl(e,n,this,RES.ResourceItem.TYPE_TEXT) }, e }(); __reflect(ThemeAdapter.prototype,"ThemeAdapter",["eui.IThemeAdapter"]); var app;! function(e){ var t=function(){ function t(){ this.currHandler=null, this._handlers=[], this.nexthandles=null, this._currTime=egret.getTimer(), this._currFrame=0, egret.startTick(this.onEnterFrame,this) } return t.ins=function(){ var e=this; return e._instance||(e._instance=new e), e._instance }, t.prototype.getFrameId=function(){ return this._currFrame }, t.prototype.getCurrTime=function(){ return this._currTime }, t.binFunc=function(e,t){ return e.exeTime>t.exeTime?-1:e.exeTime0){ for(var o=0, a=n;o1?(l.repeatCount--,h=!0):l.onFinish&&l.onFinish.apply(l.finishObj)),h){ var c=e.Algorithm.binSearch(this._handlers,l,t.binFunc); this._handlers.splice(c,0,l) }else t.DeleteHandle(l); if(r-this._currTime>5)break; if(this._handlers.length<=0)break; l=this._handlers[this._handlers.length-1] } return this.currHandler=null, !1 }, t.prototype.create=function(i,r,n,o,a,s,l){ if(!(0>r||0>n||null==o)){ var h=e.ObjectPool.pop("app.TimerHandler"); h.forever=0==n, h.repeatCount=n, h.delay=r, h.method=o, h.methodObj=a, h.onFinish=s, h.finishObj=l, h.exeTime=i+this._currTime; var c=e.Algorithm.binSearch(this._handlers,h,t.binFunc); this._handlers.splice(c,0,h) } }, t.prototype.tBiJo=function(e,t,i,r,n,o){ void 0===n&&(n=null), void 0===o&&(o=null), this.create(e,e,t,i,r,n,o) }, t.prototype.rqDkE=function(e,t,i,r,n,o,a){ void 0===o&&(o=null), void 0===a&&(a=null), this.create(e,t,i,r,n,o,a) }, t.prototype.doNext=function(t,i){ var r=e.ObjectPool.pop("app.TimerHandler"); r.method=t, r.methodObj=i, this.nexthandles||(this.nexthandles=[]), this.nexthandles.push(r) }, t.prototype.remove=function(e,i){ var r=this.currHandler; r&&r.method==e&&r.methodObj==i&&(r.forever=!1,r.repeatCount=0); for(var n=this._handlers.length-1;n>=0;n--){ var o=this._handlers[n]; o.method==e&&o.methodObj==i&&(this._handlers.splice(n,1),t.DeleteHandle(o)) } }, t.prototype.removeAll=function(e){ var i=this.currHandler; i&&i.methodObj==e&&(i.forever=!1,i.repeatCount=0); for(var r=this._handlers.length-1;r>=0;r--){ var n=this._handlers[r]; n.methodObj==e&&(this._handlers.splice(r,1),t.DeleteHandle(n)) } }, t.prototype.RTXtZF=function(e,t){ for(var i=0, r=this._handlers;it._highUint||this._highUint==t._highUint&&this._lowUint>t._lowUint; var i=new e; return"string"==typeof t?(i.value=t,this.isGreaterThanOrEqual(i)):"number"==typeof t?(i.value=t.toString(),this.isGreaterThanOrEqual(i)):void 0 }, e.prototype.isGreaterThanOrEqual=function(t){ if(t instanceof e)return this._highUint>t._highUint||this._highUint==t._highUint&&this._lowUint>=t._lowUint; var i=new e; return"string"==typeof t?(i.value=t,this.isGreaterThanOrEqual(i)):"number"==typeof t?(i.value=t.toString(),this.isGreaterThanOrEqual(i)):void 0 }, Object.defineProperty(e.prototype,"isZero",{ get:function(){ return 0==this._lowUint&&0==this._highUint }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"isGreaterThanZero",{ get:function(){ return this._lowUint>0||this._highUint>0 }, enumerable:!0, configurable:!0 }), e.prototype.writeByte=function(e){ e.writeUnsignedInt(this._lowUint), e.writeUnsignedInt(this._highUint) }, e.prototype.setValue=function(e,t){ void 0===e&&(e=0), void 0===t&&(t=0), this._lowUint=e, this._highUint=t }, Object.defineProperty(e.prototype,"value",{ set:function(t){ t instanceof egret.ByteArray?(this._lowUint=t.readUnsignedInt(),this._highUint=t.readUnsignedInt()):"string"==typeof t&&e.stringToUint64(t,10,this) }, enumerable:!0, configurable:!0 }), Object.defineProperty(e.prototype,"valueByString",{ set:function(e){}, enumerable:!0, configurable:!0 }), e.prototype.leftMove=function(t,i){ void 0===i&&(i=null), i=i||this; var r=e.LeftMoveMask[t], n=r&this._lowUint; n>>>=32-t, i._lowUint=this._lowUint<=e.MaxLowUint?(i._highUint++,i._lowUint=r-e.MaxLowUint):i._lowUint=r }, e.prototype.subtraction=function(t,i){ void 0===i&&(i=null), i=i||this; var r=this._lowUint-t._lowUint; i._highUint=this._highUint-t._highUint, 0>r?(i._highUint--,i._lowUint=r+e.MaxLowUint):i._lowUint=r }, e.prototype.scale=function(t,i){ void 0===i&&(i=null), i=i||this; var r=this._lowUint*t; i._highUint=this._highUint*t, i._highUint+=Math.floor(Math.abs(r/e.MaxLowUint)), i._lowUint=r%e.MaxLowUint }, e.prototype.toString=function(t){ void 0===t&&(t=10); for(var i,r,n,o="", a=this._lowUint, s=this._highUint;0!=s||0!=a;)i=s%t, n=i*e.MaxLowUint+a, r=n%t, o=r+o, s=(s-i)/t, a=(n-r)/t; return o.length?o:"0" }, e.stringToUint64=function(t,i,r){ void 0===i&&(i=10), void 0===r&&(r=null), r=r||new e; for(var n,o,a=0, s=0, l=t.length, h=0;l>h;h++)o=parseInt(t.charAt(h)), n=a*i+o, s=s*i+Math.floor(n/e.MaxLowUint), a=n%e.MaxLowUint; return r.setValue(a,s), r }, e.LeftMoveMask=[0,2147483648,1073741824,536870912,268435456,134217728,67108864,33554432,16777216,8388608,4194304,2097152,1048576,524288,262144,131072,65536,32768,16384,8192,4096,2048,1024,512,256,128,64,32,16,8,4,2,1], e.MaxLowUint=4294967296, e }(); e.uint64=t, __reflect(t.prototype,"app.uint64") }(app||(app={})); var AssetAdapter=function(){ function e(){} return e.prototype.getAsset=function(e,t,i){ function r(r){ t.call(i,r,e) } if(RES.hasRes(e)){ var n=RES.getRes(e); n?r(n):RES.getResAsync(e,r,this) }else RES.getResByUrl(e,r,this,RES.ResourceItem.TYPE_IMAGE) }, e }(); __reflect(AssetAdapter.prototype,"AssetAdapter",["eui.IAssetAdapter"]); var app;! function(e){ var t=function(e){ function t(){ var t=e.call(this)||this; return t._currBg="", t } return __extends(t,e), t.prototype.stop=function(){ this._currSoundChannel&&this.removeSoundChannel(this._currSoundChannel), this._currSoundChannel=null, this._currSound=null, this._currBg="" }, t.prototype.play=function(e){ if(this._currBg!=e){ this.stop(), this._currBg=e; var t=this.getSound(e); t&&this.playSound(t) } }, t.prototype.touchPlay=function(){ if(this._currSoundChannel&&this._currSound){ var e=this._currSoundChannel.position; this.removeSoundChannel(this._currSoundChannel), this._currSoundChannel=this._currSound.play(e,1), this.addSoundChannel(this._currSoundChannel) } }, t.prototype.playSound=function(e){ this._currSound=e, this._currSoundChannel=this._currSound.play(0,1), this.addSoundChannel(this._currSoundChannel) }, t.prototype.onSoundComplete=function(){ this._currSoundChannel&&this.removeSoundChannel(this._currSoundChannel), this.playSound(this._currSound) }, t.prototype.addSoundChannel=function(e){ e.volume=this._volume, e.addEventListener(egret.Event.SOUND_COMPLETE,this.onSoundComplete,this) }, t.prototype.removeSoundChannel=function(e){ e.removeEventListener(egret.Event.SOUND_COMPLETE,this.onSoundComplete,this), e.stop() }, t.prototype.setVolume=function(e){ this._volume=e, this._currSoundChannel&&(this._currSoundChannel.volume=this._volume) }, t.prototype.loadedPlay=function(e){ if(this._currBg==e){ var t=RES.getRes(e); if(!t)return; this.playSound(t) } }, t.prototype.checkCanClear=function(e){ return this._currBg!=e }, t }(e.BaseSound); e.gkPd=t, __reflect(t.prototype,"app.gkPd") }(app||(app={})); var app;! function(e){ var t=function(e){ function t(){ return e.call(this)||this } return __extends(t,e), t.prototype.play=function(e){ var t=this.getSound(e); t&&this.playSound(t) }, t.prototype.playSound=function(e){ var t=e.play(0,1); t.volume=this._volume }, t.prototype.setVolume=function(e){ this._volume=e }, t.prototype.loadedPlay=function(e){ var t=RES.getRes(e); t&&this.playSound(t) }, t }(e.BaseSound); e.SoundEffects=t, __reflect(t.prototype,"app.SoundEffects") }(app||(app={})); var app;! function(e){ var t=function(){ function t(){ this.bgOn=!0, this.effectOn=!0, this.bgVolume=.5, this.effectVolume=.5, this.bg=new e.gkPd, this.bg.setVolume(this.bgVolume), this.effect=new e.SoundEffects, this.effect.setVolume(this.effectVolume) } return t.ins=function(){ var e=this; return e._instance||(e._instance=new e), e._instance }, t.prototype.Uvxk=function(e){ this.effectOn&&this.effect.play(e) }, t.prototype.createPlayEffect=function(e){ this.effect.play(e) }, t.prototype.KVqx=function(e){ this.currBg=e, this.bgOn&&this.bg.play(e) }, t.prototype.createplayBg=function(e){ this.currBg=e, this.bg.play(e) }, t.prototype.DHzYBI=function(){ this.bg.stop() }, t.prototype.touchBg=function(){ egret.Capabilities.isMobile&&"iOS"==egret.Capabilities.os&&this.bg.touchPlay() }, t.prototype.setEffectOn=function(e){ this.effectOn=e }, t.prototype.setBgOn=function(e){ this.bgOn=e, this.bgOn?this.currBg&&this.KVqx(this.currBg):this.DHzYBI() }, t.prototype.setBgVolume=function(e){ e=Math.min(e,1), e=Math.max(e,0), this.bgVolume=e, this.bg.setVolume(this.bgVolume) }, t.prototype.getBgVolume=function(){ return this.bgVolume }, t.prototype.setEffectVolume=function(e){ e=Math.min(e,1), e=Math.max(e,0), this.effectVolume=e, this.effect.setVolume(this.effectVolume) }, t.prototype.getEffectVolume=function(){ return this.effectVolume }, t.CLEAR_TIME=18e4, t }(); e.AHhkf=t, __reflect(t.prototype,"app.AHhkf") }(app||(app={})); var app;! function(e){ var t=function(){ function t(){ this._delayTime=0, this._delayStartTime=0, this._runTimeGap=300, this._runTimeStart=0, this._ackTimeGap=300, this._ackTimeGapTimeStart=0, this._hitTimeGap=300, this._hitTimeStart=0, this._hit2TimeStart=0, this._dieTimeGap=400, this._dieTimeStart=0, this._die2TimeStart=0, this.monsterSound={} } return t.ins=function(){ var e=this; return e._instance||(e._instance=new e), e._instance }, t.prototype.playRunSound=function(){ egret.getTimer()-this._runTimeStart>=this._runTimeGap&&(this._runTimeStart=egret.getTimer(),e.AHhkf.ins().Uvxk(t.RUN)) }, t.prototype.playRun=function(){ egret.getTimer()-this._runTimeStart>this._runTimeGap+100&&this.playRunSound(), e.KHNO.ins().RTXtZF(this.playRunSound,this)||e.KHNO.ins().tBiJo(this._runTimeGap,0,this.playRunSound,this) }, t.prototype.stopRun=function(){ e.KHNO.ins().remove(this.playRunSound,this) }, t.prototype.Uvxk=function(t){ egret.getTimer()-this._delayStartTimethis._ackTimeGap&&(this._ackTimeGapTimeStart=egret.getTimer(),e.AHhkf.ins().Uvxk(t.ACK)) }, t.prototype.playAck2=function(sex){ if(egret.getTimer()-this._ackTimeGapTimeStart>this._ackTimeGap){ 1==window.randomRange(1,5)&&e.AHhkf.ins().Uvxk(0==sex?t.ACK_MALE:t.ACK_FEMALE); } }, t.prototype.playManHit=function(isMonster){ if(isMonster){ if(egret.getTimer()-this._hitTimeStart>this._hitTimeGap){ this._hitTimeStart=egret.getTimer(); 1==window.randomRange(1,5)&&e.AHhkf.ins().Uvxk(t.MAN_HIT); } }else{ egret.getTimer()-this._hitTimeStart>this._hitTimeGap&&(this._hitTimeStart=egret.getTimer(),e.AHhkf.ins().Uvxk(t.MAN_HIT)); } }, t.prototype.playWoManHit=function(isMonster){ if(isMonster){ if(egret.getTimer()-this._hit2TimeStart>this._hitTimeGap){ this._hit2TimeStart=egret.getTimer(); 1==window.randomRange(1,5)&&e.AHhkf.ins().Uvxk(t.WOMAN_HIT); } }else{ egret.getTimer()-this._hit2TimeStart>this._hitTimeGap&&(this._hit2TimeStart=egret.getTimer(),e.AHhkf.ins().Uvxk(t.WOMAN_HIT)); } }, t.prototype.playManDie=function(){ egret.getTimer()-this._dieTimeStart>this._dieTimeGap&&(this._dieTimeStart=egret.getTimer(),e.AHhkf.ins().Uvxk(t.MAN_DIE)) }, t.prototype.playWoManDie=function(){ egret.getTimer()-this._die2TimeStart>this._dieTimeGap&&(this._die2TimeStart=egret.getTimer(),e.AHhkf.ins().Uvxk(t.WOMAN_DIE)) }, t.prototype.wVgAo=function(t){ (!this.monsterSound[t]||this.monsterSound[t]