bundle.js 408 KB

1
  1. !function(){"use strict";class t{constructor(){}static init(){Laya.ClassUtils.regClass}}t.width=1334,t.height=750,t.scaleMode="fixedheight",t.screenMode="horizontal",t.alignV="top",t.alignH="left",t.startScene="",t.sceneRoot="",t.debug=!1,t.stat=!1,t.physicsDebug=!1,t.exportSceneToJson=!0,t.init();let e={game:"asset/fgui/game",loading:"fgui/loading"},i={full:"full",flower:"flower"},s={timeOut:"1",notTouch:"2",wrongTouch:"3",wrongHole:"4",rootHole:"5"},n="ALL_BALL_STOP",a="WAIT_SHOOT",o="D3RES_LOADED",h="BALL_SHOOT",l="FIRST_BALL_HOLE",r="RESET_GAME",c="COIN_CHANGE",d="DIAMOND_CHANGE",u="RESTART_GAME",g="GET_USER_INFO",m="CHANGE_SECRETARY",y="POWER_CHANGE",p="POWER_TIME",x="https://mygame1.tangro.cn/headimg/",C={inHoleEft:"inHoleEft",d3ball:"d3ball",iceEft:"iceEft",hitEft:"hitEft",fireworksEft:"fireworksEft"};var f,b,I,k,w,N,L,v;!function(t){t[t.classic=0]="classic",t[t.bigMove=1]="bigMove",t[t.placeBall=2]="placeBall"}(f||(f={})),function(t){t[t.highSpace=0]="highSpace",t[t.breakArmy=1]="breakArmy",t[t.ice=2]="ice",t[t.fireworks=3]="fireworks",t[t.GuanYu=4]="GuanYu"}(b||(b={})),function(t){t[t.directShoot=0]="directShoot",t[t.bigPower=1]="bigPower",t[t.anotherShoot=2]="anotherShoot",t[t.perfectShow=3]="perfectShow",t[t.hardShoot=4]="hardShoot"}(I||(I={})),function(t){t[t.powerNode=0]="powerNode",t[t.d2Root=1]="d2Root",t[t.moveNode=2]="moveNode",t[t.rulerNode=3]="rulerNode"}(k||(k={})),function(t){t[t.normal=0]="normal",t[t.challenge=1]="challenge"}(w||(w={})),function(t){t[t.upSkill=0]="upSkill",t[t.addDiamond=1]="addDiamond",t[t.placeBallNextLevel=2]="placeBallNextLevel",t[t.regretBall=3]="regretBall",t[t.longHelpLine=4]="longHelpLine",t[t.addFailCoin=5]="addFailCoin",t[t.sign=6]="sign",t[t.draw=7]="draw",t[t.triple=8]="triple",t[t.randomDiamond=9]="randomDiamond",t[t.getPower=10]="getPower",t[t.box=11]="box",t[t.try=12]="try",t[t.againSign=13]="againSign",t[t.addCoin=14]="addCoin"}(N||(N={})),function(t){t[t.diamond=1]="diamond",t[t.coin=2]="coin",t[t.gan1=3]="gan1",t[t.gan2=4]="gan2",t[t.gan3=5]="gan3",t[t.gan4=6]="gan4"}(L||(L={})),function(t){t[t.exitGame=0]="exitGame",t[t.foul=1]="foul"}(v||(v={}));class U{constructor(t,e){this.type=t,this.num=e}}var S=Object.freeze({fguiRes:e,ballCamp:i,FoulType:s,ALL_BALL_STOP:n,WAIT_SHOOT:a,D3RES_LOADED:o,BALL_SHOOT:h,FIRST_BALL_HOLE:l,RESET_GAME:r,COIN_CHANGE:c,DIAMOND_CHANGE:d,RESTART_GAME:u,GET_USER_INFO:g,CHANGE_SECRETARY:m,POWER_CHANGE:y,POWER_TIME:p,baseHeadUrl:x,poolKey:C,get GameMode(){return f},get SkillType(){return b},get ClassicWordsType(){return I},get PressType(){return k},get PlaceBallType(){return w},get EAdType(){return N},get Prop(){return L},get TipsType(){return v},AwardType:U});let B=new class{constructor(){this.winSize={width:0,height:0},this.notchHeight=0,this.bannerHeight=0}init(t,e){this.winSize={width:Laya.Browser.clientWidth,height:Laya.Browser.clientHeight},this.notchHeight=this.getNotchHeight(),this.bannerHeight=this.getBannerHeight(),Laya.loader.load(t,Laya.Handler.create(this,()=>{e&&e()}))}getNotchHeight(){let t=50;if(Laya.Browser.onMiniGame){let e=wx.getSystemInfoSync();Laya.Browser.onIOS?-1!=e.model.search("iPhone X")?t=e.statusBarHeight-10:(375==e.screenWidth&&812==e.screenHeight||414==e.screenWidth&&896==e.screenHeight)&&(t=e.statusBarHeight-10):Laya.Browser.onAndroid&&e.screenWidth/e.screenHeight<9/16&&(t=e.statusBarHeight)}return t}getBannerHeight(){return 0}};var M=Laya.Handler,T=Laya.Tween;function getRandStr(t){let e=[0,1,2,3,4,5,6,7,8,9,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],i="";for(let s=0;s<t;s++){i+=e[random(0,e.length)]}return i}function random(t,e){var i=e-t,s=Math.random()*i;return Math.floor(s)+t}function getScreenImg(){let t=Laya.WebGLContext.mainContext,e=new Uint8Array(t.drawingBufferWidth*t.drawingBufferHeight*4);t.readPixels(0,0,t.drawingBufferWidth,t.drawingBufferHeight,t.RGBA,t.UNSIGNED_BYTE,e);let i=t.drawingBufferWidth,s=t.drawingBufferHeight,n=new Laya.Texture2D(i,s,Laya.TextureFormat.R8G8B8A8,!1,!1);return n.setPixels(e),new Laya.Texture(n)}function getDistance(t,e,i,s){return Math.pow((t-i)*(t-i)+(e-s)*(e-s),.5)}function fixNumber(t,e){return(""+t).length<e?(new Array(e+1).join("0")+t).slice(-e):""+t}function toThousands(t){return t.replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")}let O=["","K","M","B","T","AK","AM","AB","AT","BK","BM","BB","BT","CK","CM","CB","CT"];let R=0;var j,P=Object.freeze({playClickEffect:function(t){t&&Laya.Tween.to(t,{scaleX:1.05,scaleY:1.05},20,null,Laya.Handler.create(null,()=>{t&&Laya.Tween.to(t,{scaleX:.96,scaleY:.96},30,null,Laya.Handler.create(null,()=>{t&&Laya.Tween.to(t,{scaleX:1,scaleY:1},20,null,null,0,!0)}),0,!0)}),0,!0)},getNumList:function(t){let e=[];if(t){let s=t.split(",");for(var i in s)e.push(Number(s[i]))}return e},getStrList:function(t){let e=[];if(t){let s=t.split("|");for(var i in s)e.push(String(s[i]))}return e},getRandStr:getRandStr,getUserId:function(){return getRandStr(12)+Laya.timer.currTimer%1e6},formatPos:function(t,e=2){let i=Math.pow(10,e);return t.x=Math.floor(t.x*i)/i,t.y=Math.floor(t.y*i)/i,t.z&&(t.z=Math.floor(t.z*i)/i),t},setPosInt:function(t){return t.x=t.x>0?Math.ceil(t.x):Math.floor(t.x),t.y=t.y>0?Math.ceil(t.y):Math.floor(t.y),t.z=t.z>0?Math.ceil(t.z):Math.floor(t.z),t},random:random,randomList:function(t,e){if(t.length<=e)return t;let i=[];t.forEach(t=>{i.push(t)});let s=[];for(let t=0;t<e;t++){let t=random(0,i.length),e=i[t];s.push(e),i.splice(t,1)}return s},worldToScreen:function(t,e,i){t.viewport.project(e,t.projectionViewMatrix,i),i.x=i.x/Laya.stage.clientScaleX,i.y=i.y/Laya.stage.clientScaleY},getStringLenght:function(t){return t.replace(/[\u4e00-\u9fa5]/g,"xx").length},reviseString:function(t,e){if(t.replace(/[\u4e00-\u9fa5]/g,"xx").length>e){let i=Math.floor(e/2),s=t.substring(0,i),n=s.replace(/[\u4e00-\u9fa5]/g,"xx").length;for(;n+2<e;)i++,n=(s=t.substring(0,i)).replace(/[\u4e00-\u9fa5]/g,"xx").length;return s+"..."}return t},getCoinString:function(t){if(t<1e4)return t.toString();if(t<1e6)return Math.ceil(t/100)/10+"k";return t<1e9?Math.ceil(t/1e5)/10+"m":t<1e12?Math.ceil(t/1e8)/10+"b":t<1e15?Math.ceil(t/1e11)/10+"t":void 0},getV3Dest:function(t,e,i,s){return e.x*=i,e.y*=i,e.z*=i,Laya.Vector3.add(t,e,s),s},getV2Dest:function(t,e,i,s,n){return n.x=t+i.x*s,n.y=e+i.y*s,n},getV2Dir:function(t,e,i,s,n){return n.x=i-t,n.y=s-e,Laya.Vector2.normalize(n,n),n},getV3Dir:function(t,e,i){return Laya.Vector3.subtract(t,e,i),Laya.Vector3.normalize(i,i),i},copyPos:function(t,e){return e.x=t.x,e.y=t.y,t.z&&(e.z=t.z),e},getScreenImg:getScreenImg,playMoveByPositions:function(t,e,i,s){let n,a=()=>{0!=e.length?(n=e[0],e.splice(0,1),Laya.Tween.to(t,{x:n.x,y:n.y},getDistance(t.x,t.y,n.x,n.y)/i*1e3,null,M.create(this,()=>{a()}))):s()};a()},setStarPos:function(t,e,i){for(let s=1;s<=5;s++){let n=t.getChildAt(s-1);if(n.width=n.height=30,n.pivotX=n.pivotY=.5,n.gray=s>e,n.visible=s<=i,3==i)n.x=t.width/2+30*(s-2)-15,n.y=t.height-40,2==s&&(n.y=t.height-30);else if(5==i){let e=Math.abs(s-3);n.x=t.width/2+20*(s-3)-15,n.y=t.height-8*e-30}}},playLoopAnimRotate:function(t,e,i=!0){let s;t.rotation=t.rotation%360,s=i?-360:360,T.to(t,{rotation:s},e,null,M.create(this,()=>{this.playLoopAnimRotate(t,e,i)}))},playLoopAnimPosition:function(t,e,i,s,n,a,o=!0){let h,l;o?(h=e,l=s):(h=i,l=n),T.to(t,{x:h,y:l},a,null,M.create(this,()=>{this.playLoopAnimPosition(t,e,i,s,n,a,!o)}))},playLoopAnimScale:function playLoopAnimScale(t,e,i,s,n=!0){let a;a=n?e:i,T.to(t,{scaleX:a,scaleY:a},s,null,M.create(this,()=>{playLoopAnimScale(t,e,i,s,!n)}))},playLoopAnimRotation:function playLoopAnimRotation(t,e,i,s,n=!0,a=8){let o;o=n?e:i,a?(a--,T.to(t,{rotation:o},s,null,M.create(this,()=>{playLoopAnimRotation(t,e,i,s,!n,a)}))):t.rotation=0},inRect:function(t,e){return e.x>=t.x&&e.x<=t.x+t.w&&e.y>=t.y&&e.y<=t.y+t.h},getNumberK:function(t){return t<1e3?t.toString():(t/1e3).toFixed(1)+"k"},pointInsideCircle:function(t,e,i){if(0===i)return!1;var s=e.x-t.x,n=e.y-t.y;return s*s+n*n<=i*i},formatString:function(t,e){if(!t||null==e)return t;if("object"!=typeof e){var i=arguments,s=new RegExp("{([0-"+(i.length-1)+"])}","g");return t.replace(s,function(t,e){return i[e- -1]})}for(var n in e)e.hasOwnProperty(n)&&(t=t.replace(new RegExp("{"+n+"}","g"),e[n]));return t},getIntersection:function(t,e){let i=[];for(var s=0;s<t.length;s++)for(var n=0;n<e.length;n++)t[s]==e[n]&&i.push(t[s]);return i},getComplement:function(t,e){let i=[],s=!1;for(var n=0;n<t.length;n++){s=!1;for(var a=0;a<e.length;a++)if(t[n]==e[a]){s=!0;break}s||i.push(t[n])}return i},geSpriteStageRect:function(t){var e=t.localToGlobal(Laya.Point.TEMP.setTo(0,0));return{x:e.x,y:e.y,width:t.width*t.globalScaleX,height:t.height*t.globalScaleY}},touchButton:function(t){let e=new Laya.Event;t.event(Laya.Event.CLICK,e.setTo(Laya.Event.CLICK,t,t))},setColor:function(t,e,i,s){var n=[e/255,0,0,0,0,i/255,0,0,0,0,s/255,0,0,0,0,0,0,0,1,0],a=new Laya.ColorFilter(n);t.filters=[a]},clone:function clone(t,e={}){for(var i in t)"object"==typeof t[i]?e[i]=clone(t[i],e[i]):e[i]=t[i];return e},sort:function(t,e){if(!Array.isArray(t))throw new Error("sort的参数必须为数组");return function _ms(t,e,i,s){const n=s-i;if(n<=1)return;const a=s+i>>1;if(_ms(t,e,i,a),_ms(t,e,a,s),e(t[a-1],t[a])<=0)return;const o=[];let h=i,l=a;for(;o.length<n;)h===a?o.push(t[l++]):l===s?o.push(t[h++]):e(t[h],t[l])<=0?o.push(t[h++]):o.push(t[l++]);t.splice(i,n,...o)}(t,e,0,t.length),t},getLanguage:function(t){},getLanguageByTip:function(t){},toWeights:function(t){let e=0;for(var i=0;i<t.length;i++)e+=t[i],0==t[i]?t[i]=0:t[i]=e;return t},unique:function(t){for(var e,i,s={},n=[],a=(t.length,0);a<t.length;a++)i=typeof(e=t[a]),s[e]?s[e].indexOf(i)<0&&(s[e].push(i),n.push(e)):(s[e]=[i],n.push(e));return n},unique1:function(t){for(var e=[],i=0,s=t.length;i<s;i++){for(var n=i+1;n<s;n++)t[i]==t[n]&&++i;e.push(t[i])}return e},getDistance:getDistance,getV2Dis:function(t,e){return Math.pow((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y),.5)},getV2SqDis:function(t,e){return(t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)},getDis:function(t,e,i,s){return(t-i)*(t-i)+(e-s)*(e-s)},getDeltaxy:function(t,e,i,s){return Math.abs(t-i)+Math.abs(e-s)},getSymbolNumber:function(t){return t>0?"+"+t:t.toString()},fixNumber:fixNumber,toThousands:toThousands,fmtMoney:function(t){0==(t=toThousands(t.replace(/^0+/,""))).length&&(t="0");let e=0;for(var i=0;i<t.length;i++)","==t.charAt(i)&&e++;if(0==e)return t;{let i=t.indexOf(",");return i&&(t=t.slice(0,i+2)+O[e]),t.replace(",",".")}},flatten:function(t){for(;t.some(t=>Array.isArray(t));)t=[].concat(...t);return t},getDistanceByPoint:function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},getAngleByPoint:function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)*(180/Math.PI)},toIntByArray:function(t){for(var e=0;e<t.length;e++)t[e]=parseInt(t[e]);return t},getAngle0To360:function(t){for(;t<0;)t+=360;for(;t>=360;)t-=360;return t},toAngle:function(t){return 180*t/Math.PI},toRadian:function(t){return t*Math.PI/180},getArrayValueRandom:function(t){return t[random(0,t.length-1)]},promptByTip:function(t,e="#FFFFFF",i=null,s=1e3,n=35,a=1){},promptByErrorCode:function(t,e="#FFFFFF",i="#FF8B00",s=1e3,n=35,a=1){},fmtTimeMMSS:function(t){return t=t<0?0:Math.floor(t),fixNumber(Math.floor(t/60),2)+":"+fixNumber(t%60,2)},fmtTimeMS:function(t){return t<0&&(t=0),fixNumber(Math.floor(t/60),2)+"m"+fixNumber(t%60,2)+"s"},fmtTimeHHMM:function(t){return t<0&&(t=0),t=Math.floor(t/1e3),fixNumber(Math.floor(t/3600),2)+":"+fixNumber(Math.floor(t%3600/60),2)+":"+fixNumber(Math.floor(t%60),2)},getServerTime:function(){return new Date((new Date).getTime()-R)},setServerTime:function(t){R=(new Date).getTime()-t}});class D{constructor(){D._instance=this}static getInstance(){return this._instance||(this._instance=new D),this._instance}sendPost(t,e,i){let s=new Laya.HttpRequest;s.http.timeout=5e3,s.once(Laya.Event.COMPLETE,this,function(t){if(t&&t.length>0){let e=JSON.parse(t);i&&i(e)}}),s.once(Laya.Event.ERROR,this,function(t){console.log("errorHandler:"+t)}),s.send(t,e,"post","text",["Content-Type","application/json; charset=UTF-8"])}sendGet(t,e){let i=new Laya.HttpRequest;i.http.timeout=5e3,i.once(Laya.Event.COMPLETE,this,function(t){t&&t.length>0&&e&&e(t)}),i.once(Laya.Event.ERROR,this,function(t){console.log("errorHandler:"+t)}),i.send(t,"","get")}}D._instance=null;class E extends Laya.Sprite{constructor(){super(),this._time=0,this._sin=0,this.initShader()}initShader(){this.shaderValue=new Laya.Value2D(E.DissolveSurfaceSaveName,E.DissolveSurfaceSaveName),this.customRenderEnable=!0,this.shaderValue.shader=new Laya.Shader2X("\n #define FSHIGHPRECISION\n attribute vec4 posuv;\t\n uniform vec2 size;\t\t\n varying vec4 v_texcoord;\n void main() {\n vec4 pos = vec4(posuv.xy,0.,1.);\n vec4 pos1 =vec4((pos.x/size.x-0.5)*2.0,(0.5-pos.y/size.y)*2.0,0.,1.0);\n gl_Position=pos1;\n v_texcoord.xy = posuv.xy;\n \n }\n ","\n #define FSHIGHPRECISION\n precision highp float;\n varying vec4 v_texcoord;\n uniform vec2 size;\n uniform sampler2D texture;\n uniform float u_Time;\n\n void main() {\n vec4 color= texture2D(texture, v_texcoord.xy);\n float width = 0.2;\n float start = u_Time;\n float offset = 1.0;\n vec2 myuv = vec2(v_texcoord.x/size.x,v_texcoord.y/size.y);\n\n if( myuv.x < (start - offset * myuv.y) && myuv.x > (start - offset * myuv.y - width))\n {\n color.r=1.1;\n color.g=1.1;\n color.b=1.1;\n gl_FragColor = color;\n\n } else {\n gl_FragColor = color;\n }\n }\n ",E.DissolveSurfaceSaveName)}customRender(t,e,i){if(this.onUpdate(),!this.texture)return;let s=e-this.pivotX,n=i-this.pivotY;t.drawTarget(this.texture,s,n,this.width,this.height,null,this.shaderValue)}onUpdate(){this._time+=2*Laya.timer.delta*.001,this._sin=Math.sin(this._time),this._sin>.99&&(this._sin=0,this._time=0),this.shaderValue.u_Time=this._sin}}E.DissolveSurfaceSaveName=9997;class A extends fairygui.Window{constructor(){super(),this.isEject=!0,this.isHide=!0,this.showbanner=!0,this.className="",this.isMuti=!1,this.showbanner=!1,this.onConstructor()}checkActive(t){}getUIName(){return A.uiName}onConstructor(){}onInit(){this.contentPane&&this.contentPane.setSize(fairygui.GRoot.inst.width,fairygui.GRoot.inst.height),this.setPivot(.5,.5,!1)}doShowAnimation(){if(!this.isEject)return;super.doShowAnimation(),Laya.Tween.clearTween(this),this.scaleX=this.scaleY=.8;(t=>{Laya.Tween.to(this,{scaleX:1.1,scaleY:1.1},100,Laya.Ease.linearIn,Laya.Handler.create(this,t))})(t=>{Laya.Tween.to(this,{scaleX:1,scaleY:1},60,Laya.Ease.linearOut,Laya.Handler.create(this,this.refresh))})}show(...t){super.show(),this._openParam=t,this.isHide=!1,Bo.uiMgr.checkUIState()}moveBannerButton(){}showBannerButton(){this.bannerButton.visible=!0,Laya.Tween.to(this.bannerButton,{alpha:1},500,Laya.Ease.linearOut,Laya.Handler.create(this,()=>{this.bannerButton.touchable=!0}))}hide(){super.hide(),this.isHide=!0,Bo.uiMgr.checkUIState()}Dispose(){super.dispose()}myUpdate(t){}refresh(){}addUIClick(t,e,i=null){t.onClick(this,e,i),t.onClick(this,this.playBtnSound)}offUIClick(t,e){t.offClick(this,e)}playBtnSound(){Bo.soundMgr.playSound(Bo.common.btnClickStr)}}A.lastShowBanner=0,A.showBannerNum=0,A.uiName="";class G extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIDraw")}onConstruct(){this.n1=this.getChild("n1"),this.extraNode=this.getChild("extraNode"),this.myNode=this.getChild("myNode"),this.closeNode=this.getChild("closeNode"),this.moneyNode=this.getChild("moneyNode"),this.n38=this.getChild("n38"),this.secretary=this.getChild("secretary"),this.drawBtn=this.getChild("drawBtn"),this.talkNode=this.getChild("talkNode"),this.t0=this.getTransition("t0")}}G.URL="ui://isxx5ak7wcn5v4ke";class H extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIBox")}onConstruct(){this.n0=this.getChild("n0"),this.n12=this.getChild("n12"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.bar=this.getChild("bar"),this.closeBtn=this.getChild("closeBtn"),this.openBtn=this.getChild("openBtn"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}H.URL="ui://isxx5ak7erstv4nm";class F extends A{constructor(){super(),this.boxNum=0,this.boxMax=10,this.inAd=!1,this.isClose=!1}onConstructor(){this.ui=H.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.onCloseBox),this.addUIClick(this.ui.openBtn,this.onOpenBox),Laya.timer.loop(1e3,this,this.update)}update(){this.boxNum>0&&this.boxNum<this.boxMax&&(this.boxNum-=1,this.upBar())}upBar(){this.boxNum>this.boxMax&&(this.boxNum=this.boxMax),this.ui.bar.value=10*this.boxNum}show(){super.show(),this.isClose=!1,this.boxNum=0,this.inAd=!1,this.upBar(),this.ui.t0.play(),this.ui.closeBtn.visible=!1,Laya.timer.once(3e3,this,()=>{this.ui.closeBtn.visible=!0,this.ui.bar.alpha=1}),Laya.timer.once(500,this,()=>{this.ui.t1.play()})}hide(){Laya.timer.clearAll(this),Moyu.showBannerAd(!1),super.hide()}onOpenBox(){this.boxNum++,this.boxNum<this.boxMax?W.getRand()<W.boxInsertRate&&Moyu.showInsertAd(0,W.insertGap):this.boxNum==this.boxMax?W.getRand()<W.boxVideoRate?(this.ui.openBtn.c1.selectedIndex=13,this.inAd=!0):this.getAward():this.inAd&&Moyu.showVideoAd(()=>{this.getAward()},N.box),this.upBar()}onCloseBox(){this.isClose?this.hide():W.getRand()<W.boxBannerRate?(this.isClose=!0,W.showBanner(!0,0,3e3)):this.hide()}getAward(){let t="";if(Math.random()<.5){let e=Moyu.isLegal?500:2500,i=Bo.tools.random(e,500+e);jo.setCoin(i),t="金币x"+i}else{let e=Moyu.isLegal?10:30,i=Bo.tools.random(e,30+e);jo.setDiamond(i),t="钻石x"+i}Bo.showTip("恭喜获得-"+t),this.hide()}}F.uiName="UIBox";class _ extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITry")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}_.URL="ui://isxx5ak7cj92v4o4";class V extends A{constructor(){super(),this.closeTime=0,this.closeNum=0,this.skillUrl=Bo.common.skillIconList}onConstructor(){this.ui=_.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.myNode.cancelBtn,this.onCancel),this.addUIClick(this.ui.myNode.videoBtn,this.onTry)}show(){super.show(),this.closeNum=0,this.closeTime=15,this.ui.t0.play(),W.showRateBanner(),this.ui.myNode.txtTime.text=this.closeTime.toString(),Laya.timer.loop(1e3,this,this.updateTime);let t=this.skillUrl[Bo.common.curPlayerSkillType];this.ui.myNode.n29.skillicon.url=Bo.common.getGameIconUrl(t),Bo.common.gameMgr.gamePause=!0}updateTime(){this.closeTime>1?(this.closeTime--,this.ui.myNode.txtTime.text=this.closeTime.toString()):this.hide()}hide(){Laya.timer.clearAll(this),Moyu.showBannerAd(!1),super.hide(),Bo.common.gameMgr.gamePause=!1}onTry(){Moyu.showVideoAd(()=>{let t=Bo.common.curPlayerSkillType;jo.gameData.trySkill=t,jo.gameData.tryTime=Laya.timer.currTimer+3e5,jo.saveGameData(),jo.setBigSkill(t,1),Bo.showTip("试用成功"),this.hide()},N.try)}onCancel(){if(this.closeNum>0)return this.closeNum--,void(this.closeNum<2&&this.hide());W.getRand()<W.tryVideoRate?this.onTry():W.getRand()<W.tryClose3Rate?this.closeNum=3:this.hide()}}V.uiName="UITry";class W{static initConfig(){if(this.lastVt=0,Moyu.platConfig){for(let t in Moyu.platConfig){let e=this[t],i=Moyu.platConfig[t];null!=e&&null!=i&&(this[t]=i)}Moyu.setBannerPos(.5,1)}}static rand100(t){return Bo.tools.random(0,100)<t}static isMisVideo(){return Laya.timer.currTimer-this.lastVt>this.forceVideoGap&&this.rand100(this.forceVideoRate)?(this.lastVt=Laya.timer.currTimer,!0):(this.rand100(this.fullVideoRate)&&Moyu.showInsertAd(0,0,"full"),!1)}static showVideo(t,e){Moyu.showVideoAd(()=>{this.lastVt=Laya.timer.currTimer,t&&t()},e)}static showInsert(t=!1){if(this.getRand()<this.insertRate){let e=t?this.insertDelay:0;Moyu.showInsertAd(e,this.insertGap)}}static gameInsert(){this.getRand()<this.gameInsertRate&&Moyu.showInsertAd(Bo.tools.random(2e3,5100),this.insertGap)}static showRateBanner(){this.getRand()<this.bannerRate&&this.showBanner(!0,this.bannerDelay,3e3)}static showBanner(t,e=0,i=0){t?(Laya.timer.clear(this,this.bannerShow),e>0?Laya.timer.once(e,this,this.bannerShow,[!0]):this.bannerShow(!0),i>0&&Laya.timer.once(i,this,this.bannerShow,[!1])):Moyu.showBannerAd(!1)}static bannerShow(t){Moyu.showBannerAd(t),console.log("showBanner"+t)}static getRand(){return Bo.tools.random(0,100)}static openBox(){this.getRand()<this.boxRate&&Bo.uiMgr.Show(F)}static openTry(){Laya.timer.currTimer<jo.gameData.tryTime||(this.getRand()<this.tryRate?Bo.uiMgr.Show(V):1==jo.gameData.gameCount&&Bo.uiMgr.Show(V))}}W.forceShare=0,W.signAdRate=0,W.forceVideoRate=0,W.forceVideoGap=0,W.fullVideoRate=0,W.gameInsertRate=0,W.insertGap=0,W.insertDelay=0,W.insertRate=0,W.boxRate=0,W.boxVideoRate=0,W.boxInsertRate=0,W.boxBannerRate=0,W.tryRate=0,W.tryClose3Rate=0,W.tryVideoRate=0,W.bannerRate=0,W.lastVt=0;class Y extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIAddProp")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.closeBtn=this.getChild("closeBtn"),this.t0=this.getTransition("t0")}}Y.URL="ui://isxx5ak7p4tr42k";class X{constructor(t,e=null){this.loaded=!1,this.spineName="",this.loadedCallback=e,this.templet=new Laya.Templet,this.templet.on(Laya.Event.COMPLETE,this,this.parseComplete),this.templet.on(Laya.Event.ERROR,this,this.onError),this.templet.loadAni(`spine/${t}.sk`),this.templet.lock=!0,this.spineName=t}onError(){console.log("spine加载出错")}parseComplete(){this.loaded=!0,this.loadedCallback&&this.loadedCallback()}dispose(){this.templet&&!this.templet.destroyed&&this.templet.destroy(),this.templet=null}play(t,e,i=!0,s,n,a=null){if(!this.loaded)return;let o;return(o=a||this.createSpine(t,s)).play(e,i,!0,0,0,!0),i||o.on(Laya.Event.STOPPED,this,()=>{o.offAll(Laya.Event.STOPPED),n&&n(o)}),o}createSpine(t,e,i=1){let s;return(s=this.templet.buildArmature(i)).showSkinByIndex(0),e.addChild(s),s.pos(t.x,t.y),s.scale(t.scaleX,t.scaleY,!0),s}}!function(t){t[t.none=0]="none",t[t.idle=1]="idle",t[t.reset=2]="reset",t[t.move=3]="move",t[t.wait=4]="wait",t[t.select=5]="select",t[t.turn=6]="turn",t[t.shoot=7]="shoot",t[t.leave=8]="leave"}(j||(j={}));class z{constructor(){this.dtime=30,this.awayTime=0,this.awayNum=0,this.hideTime=0,this.rootMoveTime=0,this.isGuide=!1,this.state=j.none,this.waitTime=0,this.forceNum=0,this.forceMax=0,this.ballSize=33,this.selectNum=0,this.destRot=0,this.aiLv=10,this.kickBall=[],this.lineBall=[],this.scoreBall=[],this.holeBall=[],this.turnNum=0,this.setNum=0,this.setMax=0,this.setRate=0,this.rectL=0,this.rectR=0,this.rectT=0,this.rectB=0,this.rootPos={x:0,y:0},this.bestForce=0,this.bestAngle=180,this.bestPos={x:0,y:0},this.bestKick={x:0,y:0},this.posList=[],this.posIdx=0,this.chatTime=3e3,this.tempDir1=new Laya.Vector2,this.tempDir2=new Laya.Vector2,this.tempDir3=new Laya.Vector2,Laya.timer.loop(this.dtime,this,this.onUpdate),Bo.eventMgr.off(r,this,this.resetAI),Bo.eventMgr.on(r,this,this.resetAI),this.gameSrc=Bo.common.gameUI,this.hideTime=Laya.timer.currTimer,Moyu.setOnTipCall(t=>{20012==t&&(this.hideTime=Laya.timer.currTimer);{let t=Laya.timer.currTimer-this.hideTime;console.log("onshow"+t),t>3e4&&this.state>j.none&&Bo.common.gameMgr.aiGameEnd(!1)}},this)}init(){this.isGuide=jo.getSkillGuide()<1||jo.gameData.gameCount<1,this.awayTime=Bo.tools.random(5e3,1e4),this.awayNum=0,this.hideTime=Laya.timer.currTimer;let t=Bo.common.d2World.borderRect;if(this.rectL=Math.ceil(t.x)+17,this.rectT=Math.ceil(t.y)+17,this.rectR=Math.floor(t.x+t.width)-17,this.rectB=Math.floor(t.y+t.height)-17,this.wBall=Bo.common.d2World.rootBall,this.ballSize=this.wBall.gameObj.width-1,this.posList.length<1){let t=40;for(let e=this.rectL;e<this.rectR+t;e+=t)for(let i=this.rectT;i<this.rectB+t;i+=t){let t=e<this.rectR?e:this.rectR,s=i<this.rectB?i:this.rectB,n=Bo.tools.random(0,1e3);this.posList.push({x:t,y:s,order:n})}this.posList.sort(function(t,e){return t.order-e.order}),this.setMax=this.posList.length}this.state=j.idle}setAiLevel(t){this.aiLv=t}initBall(){this.rootPos.x=this.wBall.gameObj.x,this.rootPos.y=this.wBall.gameObj.y,this.initHoleBall()}initHoleBall(){this.kickBall=[],this.lineBall=[],this.scoreBall=[],this.holeBall=[],this.selectNum=0,this.forceNum=0,this.forceMax=0,this.turnNum=0;let t=Bo.common.d2World.ballArr;if(t.length<20&&!this.isGuide){let e=Bo.common.gameMgr.holePosList;for(let i=0;i<t.length;i++){let s=t[i];if(!s)continue;if(s.kickPos.x=0,s.kickPos.y=0,s.poleAngle=0,s.hard=0,s.borderDis=0,s.kickAngle=180,0==s.number)continue;if(s.ballType==Bo.common.gameMgr.selfCamp)continue;if(8==s.number&&0==Bo.common.gameMode&&(Bo.common.gameMgr.aiBallArr.length>0||!Bo.common.gameMgr.ensureBallType))continue;let n=s.gameObj,a=this.rootPos,o=a.x-n.x,h=a.y-n.y;if(s.borderDis=Bo.tools.random(0,100),this.kickBall.push(s),!this.isLine(a,s))continue;s.kickAngle=Bo.tools.random(90,180),s.kickPos.x=n.x,s.kickPos.y=n.y,this.lineBall.push(s);let l=999999,r=!1;for(let t=0;t<e.length;t++){let i=e[t];if(!(o>=0&&i.x>n.x+100)&&!(o<=0&&i.x<n.x-100||h<-10&&i.y<a.y||h>10&&i.y>a.y||this.isBlock(s.number,n.x,n.y,i.x,i.y))){let t=Bo.tools.getDeltaxy(n.x,n.y,i.x,i.y);if(t<l){let e=n.x-this.tempDir1.x*this.ballSize,o=n.y-this.tempDir1.y*this.ballSize;if(this.tempDir3.x=this.tempDir1.x,this.tempDir3.y=this.tempDir1.y,!this.isBlock(this.wBall.number,a.x,a.y,e,o,s.number)){s.kickPos.x=e,s.kickPos.y=o;let a=Laya.Vector2.dot(this.tempDir1,this.tempDir3);a>1&&(a=1),s.kickAngle=57.3*Math.acos(a),(n.x<this.rectL+2||n.x>this.rectR-2||n.y<this.rectT+2||n.y>this.rectB-2)&&(t*=2),Math.abs(i.x-600)<100&&(t+=50),s.hard=t+3*s.kickAngle,r=!0}}}}r&&(this.scoreBall.push(s),this.holeBall.push(s))}this.scoreBall.sort(function(t,e){return t.hard-e.hard}),this.holeBall.sort(function(t,e){return t.kickAngle-e.kickAngle}),this.kickBall.sort(function(t,e){return t.borderDis-e.borderDis})}else{let e=t.length-1,i=Bo.tools.random(0,e);for(;i<=e;i++){let s=t[i>=e?i-=e:i];if(s&&0!=s.number){s.kickAngle=Bo.tools.random(90,180),s.kickPos.x=s.gameObj.x+Bo.tools.random(-10,10),s.kickPos.y=s.gameObj.y+Bo.tools.random(-10,10),this.lineBall.push(s);break}}}}selectBall(){let t=null;this.destRot=0;let e=this.isGuide?1:3-Math.ceil(this.aiLv/4)+Bo.tools.random(0,2),i=110-10*this.aiLv,s=.005*Bo.tools.random(-i,i),n=!1;if(this.scoreBall.length<1)if(this.lineBall.length<1)for(let t=0;t<this.kickBall.length;t++){let e=[],i=this.kickBall[t],n=i.gameObj,a=Bo.common.d2World.borderRect,o=this.wBall.gameObj,h=n.y-a.y-20,l=o.y-a.y-50;if(h>0&&l>0){let t=0,i=o.y-a.y,s=o.x,n=a.y-i;e.push({order:h,bx:0,by:a.y,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.y+a.height-n.y-20,l=a.y+a.height-o.y-50,h>0&&l>0){let t=0,i=a.y+a.height-o.y,s=o.x,n=a.y+a.height+i;e.push({order:h,bx:0,by:a.y+a.height,spx:s,spy:n,dlenx:t,dleny:i})}if(h=n.x-a.x-20,l=o.x-a.x-50,h>0&&l>0){let t=o.x-a.x,i=0,s=a.x-t,n=o.y;e.push({order:h,bx:a.x,by:0,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.x+a.width-n.x-20,l=a.x+a.width-o.x-50,h>0&&l>0){let t=a.x+a.width-o.x,i=0,s=a.x+a.width+t,n=o.y;e.push({order:h,bx:a.x+a.width,by:0,spx:s,spy:n,dlenx:t,dleny:i})}e.sort(function(t,e){return t.order-e.order});for(let t=0;t<e.length;t++){let a=e[t],h=o.x-n.x,l=o.y-n.y;Bo.tools.getV2Dir(a.spx,a.spy,n.x,n.y,this.tempDir1),Bo.tools.getV2Dir(a.spx,a.spy,o.x,o.y,this.tempDir2);let r=Laya.Vector2.dot(this.tempDir1,this.tempDir2);r>1&&(r=1);let c=Math.acos(r);c>1.57?c=1.57:c<.01&&(c=.01);let d=Math.tan(c),u=d*a.dleny,g=d*a.dlenx,m=a.bx>0?a.bx:o.x+(h>0?-u:u);if(Math.abs(m-667)<40)continue;let y=a.by>0?a.by:o.y+(l>0?-g:g);if(!this.isBlock(0,o.x,o.y,m,y)&&!this.isBlock(i.number,n.x,n.y,m,y)){let t=Math.abs(a.dlenx)+Math.abs(a.dleny)+Bo.tools.getDistance(m,y,i.gameObj.x,i.gameObj.y);return this.forceMax=.08*t,this.destRot+=.1*s,this.setKick(m,y),!0}}}else t=Bo.common.getRandArrEle(this.lineBall);else{for(let e=0;e<this.scoreBall.length;e++){if(!(e<this.scoreBall.length-1)){t=this.scoreBall[e];break}{let i=70+10*this.aiLv+10*e;if(Bo.tools.random(0,100)<i){t=this.scoreBall[e];break}}}n=!0,this.selectNum++}if(t||(t=Bo.common.getRandArrEle(Bo.common.d2World.ballArr)),this.selectNum>=e){let e=t.gameObj.x,i=t.gameObj.y,a=0;if(n){e=t.kickPos.x,i=t.kickPos.y,this.tempDir2=Bo.tools.getV2Dir(this.wBall.gameObj.x,this.wBall.gameObj.y,e,i,this.tempDir2),this.tempDir3=Bo.tools.getV2Dir(e,i,t.gameObj.x,t.gameObj.y,this.tempDir3);let n=Laya.Vector2.dot(this.tempDir3,this.tempDir2);if(n>1&&(n=1),(a=57.3*Math.acos(n))>45){let n=t.kickPos.x-t.gameObj.x,a=t.kickPos.y-t.gameObj.y;e=t.kickPos.x-n*s*.3,i=t.kickPos.y-a*s*.3}else this.destRot+=s}else 0!=t.poleAngle&&(this.destRot+=t.poleAngle);if(0==Bo.common.gameMode){let e=.08*a;this.forceMax=.1*t.hard+e*e}this.setKick(e,i)}else{let i=5*this.aiLv+40;t=Bo.tools.random(0,100)<i&&this.scoreBall.length>0?Bo.common.getRandArrEle(this.scoreBall):Bo.common.getRandArrEle(Bo.common.d2World.ballArr),i=3*this.aiLv+40+20*this.selectNum,Bo.tools.random(0,100)>i&&(this.selectNum=e),this.setState(j.select,Bo.tools.random(500,1e3)),this.selectNum++}t.onClick(0,!0)}isBlock(t,e,i,s,n,a=-1){this.tempDir1=Bo.tools.getV2Dir(e,i,s,n,this.tempDir1);let o=Bo.common.d2World.ballArr,h=Bo.tools.getDis(s,n,e,i);for(let s=0;s<o.length;s++){let n=o[s];if(0==n.number)continue;if(n.number==t||n.number==a)continue;let l=Bo.tools.getDistance(n.gameObj.x,n.gameObj.y,e,i);if(l*l>h)continue;this.tempDir2=Bo.tools.getV2Dir(e,i,n.gameObj.x,n.gameObj.y,this.tempDir2);let r=Laya.Vector2.dot(this.tempDir1,this.tempDir2);if((r>1&&(r=1),!(r<0))&&Math.sin(Math.acos(r))*l<this.ballSize)return!0}return!1}isLine(t,e){let i=t.x,s=t.y;if(this.isBlock(0,i,s,e.gameObj.x,e.gameObj.y,e.number)){let n=e.getDestDis(t),a=Math.asin((e.gameObj.width-3)/n),o=Math.sin(a),h=Math.cos(a);this.tempDir3=Bo.tools.getV2Dir(i,s,e.gameObj.x,e.gameObj.y,this.tempDir3),this.tempDir2.x=this.tempDir3.x*h-this.tempDir3.y*o,this.tempDir2.y=this.tempDir3.x*o+this.tempDir3.y*h;let l=i+this.tempDir2.x*n,r=s+this.tempDir2.y*n,c=this.isBlock(0,i,s,l,r,e.number);o=Math.sin(-a),h=Math.cos(-a),this.tempDir2.x=this.tempDir3.x*h-this.tempDir3.y*o,this.tempDir2.y=this.tempDir3.x*o+this.tempDir3.y*h,l=i+this.tempDir2.x*n,r=s+this.tempDir2.y*n;let d=this.isBlock(0,i,s,l,r,e.number);if(c&&d)return!1;e.poleAngle=c?57.3*-a:57.3*a}return!0}turnPole(){this.turnNum++;let t=Bo.common.d2World.d2Gan.ui.rotation%360,e=t-this.destRot,i=Math.abs(e)%360;i>180&&(t>180&&(t-=360),this.destRot>180&&(this.destRot-=360));let s=5*this.turnNum+5*this.aiLv;if(i<.2&&Bo.tools.random(0,100)<s){Bo.common.d2World.d2Gan.rotDest(this.destRot);let t=Bo.tools.random(1e3,2e3);this.onAway(3)||(t+=Bo.tools.random(1e4,15e3)),this.setState(j.shoot,t)}else{let s=0;i>3?s=1+Bo.tools.random(2,6)*i*.01:Math.random()>.6&&(s=.1*Bo.tools.random(1,10)),s=e>0?-s:s,Bo.common.d2World.d2Gan.rotDest(t+s)}}setKick(t,e){this.forceMax+=.1*this.wBall.getDestDis({x:t,y:e}),this.tempDir2=Bo.tools.getV2Dir(this.wBall.gameObj.x,this.wBall.gameObj.y,t,e,this.tempDir2),this.tempDir1.x=0,this.tempDir1.y=1,this.tempDir2.y=-this.tempDir2.y;let i=Laya.Vector2.dot(this.tempDir1,this.tempDir2);i>1&&(i=1);let s=57.3*Math.acos(i);this.tempDir2.x<0&&(s=360-s),this.destRot+=s,Bo.common.gameMgr.finishOneShoot||(this.forceMax+=Bo.tools.random(10,50),this.forceMax-=2*this.aiLv,this.forceMax<20&&(this.forceMax=20)),this.forceMax>100?this.forceMax=101:this.forceMax<10&&(this.forceMax+=Bo.tools.random(0,10)),1==Bo.common.gameMode?this.forceMax=Bo.tools.random(80,100):this.forceMax=Bo.tools.random(.5*this.forceMax,this.forceMax);let n=2e3-100*this.aiLv;Math.random()>.8&&(n+=Bo.tools.random(100,2e3)),this.setState(j.turn,Bo.tools.random(500,n))}shoot(){if(this.waitTime<0&&Math.abs(this.forceNum-this.forceMax)<4)Math.random()>.8&&(this.gameSrc.aiForce(1),this.setState(j.wait));else{let t=Bo.tools.random(3,8);this.forceNum<this.forceMax?this.forceNum+=t:this.forceNum-=t;let e=this.gameSrc.ui.powerNode.y+this.gameSrc.ui.powerNode.height*this.forceNum*.01;this.gameSrc.aiForce(2,e)}}reset(){for(let t=0;t<4;t++){this.setRate--,this.setNum++;let t=this.posList[this.posIdx];this.rootPos.x=t.x+Bo.tools.random(-20,20),this.rootPos.y=t.y+Bo.tools.random(-20,20),!Bo.common.gameMgr.isTouchedBall&&this.rootPos.x>387&&(this.rootPos.x=387),this.rootPos.x<this.rectL?this.rootPos.x=this.rectL:this.rootPos.x>this.rectR&&(this.rootPos.x=this.rectR),this.rootPos.y<this.rectT?this.rootPos.y=this.rectT:this.rootPos.y>this.rectB&&(this.rootPos.y=this.rectB),this.posIdx++;let e=this.posList.length;this.posIdx>=e&&(this.posIdx-=e),this.initHoleBall();let i=null;this.scoreBall.length>0?i=this.scoreBall[0]:this.lineBall.length>0&&(i=Bo.common.getRandArrEle(this.lineBall)),i&&i.kickAngle<this.bestAngle&&(this.bestAngle=i.kickAngle,this.bestKick.x=i.kickPos.x,this.bestKick.y=i.kickPos.y,this.bestPos.x=this.rootPos.x,this.bestPos.y=this.rootPos.y,this.bestForce=.08*i.hard)}this.setNum>=this.setMax&&(this.setMax=0),this.setRate<1&&(this.setState(j.move,0),this.rootMoveTime=Laya.timer.currTimer,this.gameSrc.aiRootMove(!0))}delayLine(){this.gameSrc.aiRootMove(!1)}move(){this.bestPos.x<1&&(this.bestPos=this.rootPos);let t=this.wBall.gameObj,e=t.x,i=t.y,s=Math.abs(e-this.bestPos.x),n=Math.abs(i-this.bestPos.y),a=3+.03*s,o=3+.03*n;if(s<4&&n<4){let t=Laya.timer.currTimer-this.rootMoveTime;if(t=t<1e3?1e3-t:0,this.setMax>0){let t=.3*this.setMax+5*this.aiLv;this.setRate=Bo.tools.random(t,this.setMax),this.setState(j.reset,0)}else this.destRot=0,this.forceMax=this.bestForce,this.setKick(this.bestKick.x,this.bestKick.y);t>100?(Laya.timer.clear(this,this.delayLine),Laya.timer.once(t,this,this.delayLine)):this.gameSrc.aiRootMove(!1)}else s>4&&(e=t.x<this.bestPos.x?t.x+a:t.x-a),n>4&&(i=t.y<this.bestPos.y?t.y+o:t.y-o),this.gameSrc.onRootMove({x:e,y:i})}resetRoot(){this.bestAngle=180,this.bestForce=0,this.setMax=this.posList.length,this.posIdx=Bo.tools.random(0,this.setMax);let t=.3*this.setMax+5*this.aiLv;this.setRate=Bo.tools.random(t,this.setMax);let e=2e3-100*this.aiLv;Math.random()>.8&&(e+=Bo.tools.random(100,1e3)),this.isGuide?this.setState(j.select,500):this.onAway(2)?this.setState(j.reset,Bo.tools.random(400,e)):this.setState(j.none),Bo.common.gameMgr.finishOneShoot&&this.chat()}runAI(){this.state>j.idle||(this.initBall(),this.onGame(2500),Math.random()>.6&&this.chat())}stopRun(){this.setState(j.idle)}onGame(t){let e=t-100*this.aiLv;Math.random()>.8&&(e+=Bo.tools.random(100,1e3)),this.onAway(2)?this.setState(j.select,Bo.tools.random(500,e)):this.setState(j.none)}setState(t,e=0){this.state!=j.none&&(this.state=t,this.waitTime=e)}onUpdate(){if(this.state!=j.none)if(this.awayTime-=this.dtime,this.awayTime<1&&(this.awayTime=Bo.tools.random(6e3,1e4),this.awayNum+=11-this.aiLv,this.onAway(1)),this.waitTime>=0)this.waitTime-=this.dtime;else switch(this.state){case j.idle:this.chat();break;case j.reset:this.reset();break;case j.move:this.move();break;case j.leave:this.state=j.none,Bo.common.gameMgr.aiGameEnd(!0);break;case j.select:this.selectBall();break;case j.turn:this.turnPole();break;case j.shoot:this.shoot()}}onAway(t){if(1==t){let t=Bo.common.gameMgr.aiBallArr.length-Bo.common.gameMgr.selfBallArr.length,e=this.awayNum+20*t;t>0&&e>0&&Bo.tools.random(0,1e4)<e&&this.state==j.idle&&(Bo.common.gameMgr.aiLeave(),this.setState(j.leave,6666))}else if(2==t){let t=Bo.common.gameMgr.aiBallArr.length-Bo.common.gameMgr.selfBallArr.length,e=this.awayNum+30*t;if(Bo.tools.random(0,1e4)<e)return!1}else if(3==t){let t=Bo.common.gameMgr.aiBallArr.length-Bo.common.gameMgr.selfBallArr.length,e=this.awayNum+10*t;if(Bo.tools.random(0,4e3)<e)return!1}return!0}chat(){if(this.chatTime>0)return void(this.chatTime-=this.dtime);this.chatTime=Bo.tools.random(2e3,1e4);let t=Bo.tools.random(0,100);t<15?this.talk():t<35&&this.emotion()}talk(){Bo.common.talkMgr.showAITalk(0)}emotion(){Bo.common.talkMgr.showAIEmotion(0)}resetAI(){this.stopRun(),this.state=j.none}}class K extends Laya.Script3D{constructor(){super(),this.duration=2e3}onAwake(){this.gameObj=this.owner}onEnable(){this.openTimer()}openTimer(){Laya.timer.once(this.duration,this,this.disappear)}setCallback(t,e){this.obj=t,this.callback=e,Laya.timer.clearAll(this),Laya.timer.once(this.duration,this,this.disappear)}disappear(){Bo.poolD3Mgr.putItem(this.gameObj.name,this.gameObj),this.callback&&this.callback(this.obj)}}class q extends Laya.Script3D{constructor(){super(),this.posV3=new Laya.Vector3,this.rotRate=2.1,this.rotSpeed=new Laya.Vector3,this.myIndex=0}onAwake(){this.gameObj=this.owner,this.transform=this.gameObj.transform,this.ballNode=this.gameObj.getChildByName("Ball"),this.shadowNode=this.gameObj.getChildByName("shadow")}initSelf(t,e,i,s){this.d2BallSrc=s,this.myIndex=t,this.setAlbedoTexture(),this.setTransPos(e,i),this.setScale(),this.ballNode.transform.localRotationEulerX=90}setAlbedoTexture(t=!1){let e;e=t?"res/d3Res/ballTexture/ice.jpg":`res/d3Res/ballTexture/ball${this.myIndex}.png`,Laya.Texture2D.load(e,Laya.Handler.create(this,t=>{this.ballNode.meshRenderer.material.albedoTexture=t}))}runFireworks(t,e,i){Laya.timer.clearAll(this),Laya.timer.once(e+1,this,()=>{let e=Bo.poolD3Mgr.getItem(C.fireworksEft);e.transform.localPositionX=this.transform.localPositionX,e.transform.localPositionY=this.transform.localPositionY,e.transform.localPositionZ=this.transform.localPositionZ;let s=e.getComponent(K);s.duration=1e3,s.setCallback(t,i);let n=Bo.poolD3Mgr.getItem(C.hitEft);n.transform.localPositionX=this.transform.localPositionX,n.transform.localPositionY=this.transform.localPositionY,n.transform.localPositionZ=this.transform.localPositionZ})}setTransPos(t,e){this.setRotation(),Bo.common.pos2to3Convert(t,e,this.posV3),this.transform.localPositionX=this.posV3.x,this.transform.localPositionY=0,this.transform.localPositionZ=this.posV3.z,this.transform.localRotationEulerX=0,this.transform.localRotationEulerY=0,this.transform.localRotationEulerZ=0,this.shadowNode.transform.localPositionX=this.posV3.x/30,this.shadowNode.transform.localPositionY=.1,this.shadowNode.transform.localPositionZ=this.posV3.z/30}setRotation(){if(this.d2BallSrc.canRot){let t=this.d2BallSrc.rigy.linearVelocity;this.rotSpeed.x=t.x*this.rotRate,this.rotSpeed.z=t.y*this.rotRate,this.rotSpeed.y=this.d2BallSrc.rotY,this.ballNode.transform.rotate(this.rotSpeed,!1,!1)}else Math.abs(this.d2BallSrc.rotY)>.1&&(this.rotSpeed.x=this.rotSpeed.y=0,this.rotSpeed.y=this.d2BallSrc.rotY,this.ballNode.transform.rotate(this.rotSpeed,!1,!1))}setScale(){let t=Bo.common.d2World.rootBall.ui.width,e=Bo.common.scale2to3Convert(t);this.transform.localScaleX=e,this.transform.localScaleY=e,this.transform.localScaleZ=e}playInHoleEft(){Bo.poolD3Mgr.getItem(C.inHoleEft).transform.position=this.transform.position}playIceEft(){Bo.poolD3Mgr.getItem(C.iceEft).transform.position=this.transform.position}get scaleXYZ(){return this.transform.localScaleX}set scaleXYZ(t){this.transform.localScaleX=t,this.transform.localScaleY=t,this.transform.localScaleZ=t}get posX(){return this.transform.localPositionX}set posX(t){this.transform.localPositionX=t}get posY(){return this.transform.localPositionY}set posY(t){this.transform.localPositionY=t}get posZ(){return this.transform.localPositionZ}set posZ(t){this.transform.localPositionZ=t}destroySelf(){this.posV3=null,this.rotSpeed=null,this.d2BallSrc=null,this.ballNode=null,this.gameObj.destroy(!0),this.transform=null,this.destroy()}}class Z extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","D2Ball")}onConstruct(){this.myIcon=this.getChild("myIcon"),this.inner=this.getChild("inner"),this.n8=this.getChild("n8"),this.n4=this.getChild("n4"),this.wrongTips=this.getChild("wrongTips"),this.rightTips=this.getChild("rightTips"),this.breathAni=this.getTransition("breathAni")}}Z.URL="ui://isxx5ak7kt443qi";class $ extends Laya.Script{constructor(){super(),this.number=0,this.startX=0,this.startY=0,this.angleV2=new Laya.Vector2,this.isRootBall=!1,this.isBlackBall=!1,this.ballType="",this.canRot=!0,this.rotY=0,this.poleAngle=0,this.kickPos={x:0,y:0},this.hard=0,this.kickAngle=0,this.borderDis=0,this.speedP10=5.6,this.lastSpeed={x:0,y:0},this.stillSpeed=.12,this.ballFunc="normal",this.isRunSkillAni=!1,this.isInHole=!1,this.iceOwner="",this.forceRun=!1,this.myUNID="",this.rectL=0,this.rectR=0,this.rectT=0,this.rectB=0,this.forceVec=new Laya.Vector2,this.lastDis=0,this.helpOut={type:"",x:0,y:0}}initSelf(t,e,s,n){this.gameObj||(this.gameObj=this.owner),this.number=t,this.startX=e,this.startY=s,this.d3Ball=n,this.isRootBall=!1,this.isBlackBall=!1,this.ballType="",0==t?this.isRootBall=!0:8==t?this.isBlackBall=!0:this.ballType=t<=7?i.full:i.flower,this.setInfo(),this.setD3Ball(),this.owner.mySrc=this,this.rigy.linearDamping=1,$._unid++,this.myUNID="d2ball"+$._unid;let a=Bo.common.d2World.borderRect;this.rectL=Math.ceil(a.x)+20,this.rectT=Math.ceil(a.y)+20,this.rectR=Math.floor(a.x+a.width)-20,this.rectB=Math.floor(a.y+a.height)-20}setInfo(){this.gameObj.x=this.startX,this.gameObj.y=this.startY;let t=this.ui.width/2;this.gameObj.width=2*t,this.gameObj.height=2*t,Bo.common.showDebug?(this.ui.myIcon.alpha=1,this.ui.inner.alpha=1):(this.ui.myIcon.alpha=0,this.ui.inner.alpha=0)}setD3Ball(){this.d3Ball=this.d3Ball,this.d3BallSrc=this.d3Ball.getComponent(q),this.d3BallSrc.initSelf(this.number,this.startX,this.startY,this)}onUpdate(){Bo.common.gameMgr.gamePause||this.isInHole||Bo.common.d2World.openCheckStill&&this.runBall()}runBall(){this.lastSpeed.x=this.rigy.linearVelocity.x,this.lastSpeed.y=this.rigy.linearVelocity.y,this.d3BallSrc.setTransPos(this.gameObj.x,this.gameObj.y),this.judgeBorder()}getDestDis(t){return Bo.tools.getDistance(t.x,t.y,this.gameObj.x,this.gameObj.y)}setmyXY(t,e){this.d3BallSrc.setTransPos(t,e)}getSpeed(){let t=this.rigy.linearVelocity;return t.x*t.x+t.y*t.y}onTriggerEnter(t){if(!t||!t.owner)return;let e="collide",i=this.getSpeed(),s=this.speedP10*this.speedP10;if("ball"==t.label){if(i<9&&0!=this.number?e="":i<s?e="collide_4":i<6.2*s?e="collide_3":i<25*s?e="collide_2":i<56*s&&(e="collide_1"),Bo.soundMgr.playSound(e),(this.gameObj.x<this.rectL||this.gameObj.x>this.rectR||this.gameObj.y<this.rectT||this.gameObj.y>this.rectB)&&t.owner){let e=t.owner.getComponent($);Math.abs(e.rigy.linearVelocity.x)>0&&(e.lastSpeed.x=e.rigy.linearVelocity.x),Math.abs(e.rigy.linearVelocity.y)>0&&(e.lastSpeed.y=e.rigy.linearVelocity.y);let i=Math.abs(.4*e.lastSpeed.x),s=Math.abs(.5*e.lastSpeed.y),n=0,a=0;this.gameObj.x<this.rectL?n=i:this.gameObj.x>this.rectR?n=-i:this.gameObj.y<this.rectT?a=s:this.gameObj.y>this.rectB&&(a=-s),this.rigy.applyLinearImpulseToCenter({x:n,y:a})}if(0!=this.number)return;this.forceRun&&(console.log("randon force"),this.applyForce(t)),Bo.common.d2World.isOnSameLine&&(Bo.common.d2World.isOnSameLine=!1,this.rigy.linearVelocity={x:0,y:0}),null==Bo.common.gameMgr.firstColliObj&&(Bo.common.gameMgr.firstColliObj=t.owner.mySrc.number,Bo.common.gameMgr.isTouchedBall=!0)}else{Bo.common.recoverCameraView();let t="";i<9||i<s||(i<6.2*s?t="wall_30":i<25*s?t="wall_50":i<56*s&&(t="wall_80")),Bo.soundMgr.playSound(t)}}applyForce(t){let e=t.owner.mySrc;this.forceVec.x=e.gameObj.x-this.gameObj.x,this.forceVec.y=e.gameObj.y-this.gameObj.y,Laya.Vector2.normalize(this.forceVec,this.forceVec),Laya.Vector2.scale(this.forceVec,50,this.forceVec),e.rigy.applyLinearImpulseToCenter({x:this.forceVec.x,y:this.forceVec.y})}checkWrongBall(t=!0){if(this.isInHole)return;Bo.common.gameMgr.inHoleBalls.push(this.number),0!=this.number&&t&&this.d3BallSrc.playInHoleEft();let e="inpocket_1",i=this.getSpeed(),s=this.speedP10*this.speedP10*.8;i<9&&0!=this.number?e="":i<6.2*s?e="inpocket_4":i<25*s?e="collide_3":i<56*s&&(e="collide_2"),Bo.soundMgr.playSound(e),this.isInHole=!0,0==this.number?(console.log("白球进了。。"),this.reset(),this.rigy.linearVelocity={x:0,y:0},this.hideSelf(),Bo.common.gameUI.ui.whiteAni.visible=!0,Bo.common.gameUI.ui.whiteAni.t0.play(Laya.Handler.create(this,()=>{Bo.common.gameUI.ui.whiteAni.visible=!1}))):(Bo.common.playClassicEmotion(this.number,this.gameObj.x,this.gameObj.y),Bo.common.d2World.removeOneBall(this),this.destroySelf(),Bo.common.playHappySound(this.number),this.runFlyEft())}runFlyEft(){Bo.common.gameMode==f.placeBall&&Bo.common.gameMgr.placeBallData.type==w.challenge&&Bo.common.playAwardSpine(this.gameObj.x+100,this.gameObj.y-100)}hideSelf(){this.d3Ball&&(this.d3Ball.active=!1)}showSelf(){this.isInHole=!1,this.d3Ball&&!this.d3Ball.active&&(this.d3Ball.active=!0)}isStill(){let t=this.rigy.linearVelocity;return Math.abs(t.x)<=this.stillSpeed&&Math.abs(t.y)<=this.stillSpeed&&(this.rigy.linearVelocity={x:0,y:0},!0)}reset(){}destroySelf(){this.d3BallSrc.destroySelf(),this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose(),this.ui=null),this.outColli=null,this.innerColli=null,this.rigy=null,this.d3Ball=null,this.d3BallSrc=null,this.angleV2=null,this.gameObj.destroy(!0),this.destroy()}judgeBorder(){if(this.forceRun&&this.owner==Bo.common.d2World.rootBall.owner)return;if(this.destroyed)return;if(Bo.common.gameMode==f.classic)return;Bo.common.checkBallOverBorder(this.gameObj.x,this.gameObj.y)&&this.checkWrongBall()}onClick(t,e=!1){if(0==this.number)return;if(e);else{if(Bo.common.d2World.openCheckStill)return;if(!Bo.common.gameMgr.selfTurn)return}if(!Bo.common.gameMgr.finishOneShoot)return;let i=Bo.common.d2World.rootBall.gameObj,s=this.gameObj.x-i.x,n=this.gameObj.y-i.y,a=Bo.common.getfguiRotation(s,n);Bo.common.d2World.d2Gan.ui.rotation=a,Bo.common.d2World.getHelpLine(),Bo.common.clickedBall=!0,this.checkGuide()}checkGuide(){0==jo.getSkillGuide()&&Bo.common.gameMode==f.bigMove&&0==Bo.common.guideStep&&(Bo.common.guideStep++,Bo.common.gameUI.ui.guide1.visible=!1,Bo.common.gameUI.ui.guide2.visible=!0)}checkDistance(t,e,i){let s=this.gameObj.width-1,n=Math.pow(t-this.gameObj.x,2)+Math.pow(e-this.gameObj.y,2);if(this.lastDis){if(n>this.lastDis)return this.helpOut.type="remove",this.helpOut}else this.lastDis=n;if(n<=Math.pow(s,2)){let n=.01,a=0,o=t-this.gameObj.x,h=e-this.gameObj.y;for(;Math.pow(s,2)-(o*o+h*h)>.01;)a+=n,o=t-this.gameObj.x-a*Math.sin(i*Math.PI/180),h=e-this.gameObj.y-a*-Math.cos(i*Math.PI/180);return this.helpOut.type="ok",this.helpOut.x=o+this.gameObj.x,this.helpOut.y=h+this.gameObj.y,this.helpOut}return this.helpOut.type="no",this.helpOut}clearBallEft(){this.clearBallRightEft(),this.clearBallWrongEft()}clearBallRightEft(){this.ui.breathAni.stop(),this.ui.rightTips.visible=!1}clearBallWrongEft(){this.ui.wrongTips.visible=!1}showWrongEft(){Bo.common.gameMgr.selfTurn&&(this.ui.wrongTips.visible=!0)}showRightEft(){Bo.common.gameMgr.selfTurn&&(this.ui.rightTips.visible=!0,this.ui.rightTips.scaleX=1,this.ui.rightTips.scaleY=1,this.ui.breathAni.play())}setBallFunc(t,e){"ice"==t?(this.ballFunc=t,this.d3BallSrc.setAlbedoTexture(!0),this.rigy.type="static",this.iceOwner=e):e==this.iceOwner&&(this.ballFunc=t,this.d3BallSrc.setAlbedoTexture(!1),this.rigy.type="dynamic")}}$._unid=0;class J extends ${constructor(){super(),this.maxSpeed=0,this.classicMaxSpeed=2.2,this.bigSkillMaxSpeed=4,this.angle=0,this.allPercent=0,this.linearPercent=0,this.anglePercent=0,this.maxAngleRate=.6,this.baseRot=7,this.angleMax=0,this.speed=new Laya.Vector2,this.rotSpeed=new Laya.Vector2}isStill(){let t=this.rigy.linearVelocity;return Math.abs(t.x)<=this.stillSpeed&&Math.abs(t.y)<=this.stillSpeed&&!this.forceRun&&this.anglePercent<=.1&&(this.rigy.linearVelocity={x:0,y:0},!0)}reset(){this.linearPercent=0,this.anglePercent=0}setSpeed(t,e){this.allPercent=t,this.angle=e,this.setAngleSpeed(),this.setLinearSpeed();let i="hit";t<25?i="hit03":t<50?i="hit02":t<75&&(i="hit01"),Bo.soundMgr.playSound(i)}setAngleSpeed(){let t=Bo.common.rodOffest,e=.5*Math.abs(t.y/82);t.y>0?this.angleMax=2*-this.baseRot:this.angleMax=this.baseRot,this.rotY=-t.x/82*100,this.anglePercent=this.maxAngleRate*e*this.allPercent,this.linearPercent=this.allPercent-this.anglePercent}setLinearSpeed(){if(Bo.common.gameMode==f.classic&&3==jo.getChallengeTimes()&&Bo.common.gameMgr.selfTurn&&Bo.common.gameMgr.aiBallArr.length<=2&&Bo.common.gameMgr.ensureBallType&&!Bo.common.longHelpLine){let t=-150+Bo.common.randomNum(0,300);t/=100,this.angle+=t}let t=Math.sin(this.angle*Math.PI/180),e=Math.cos(this.angle*Math.PI/180);switch(Bo.common.gameMode){case f.classic:this.maxSpeed=this.classicMaxSpeed;break;case f.bigMove:this.maxSpeed=this.bigSkillMaxSpeed;break;case f.placeBall:1==cfgTable.placeballData[Bo.common.placeBallCurLevel].type?this.maxSpeed=this.bigSkillMaxSpeed:this.maxSpeed=this.classicMaxSpeed}this.speed.x=this.maxSpeed*this.linearPercent*t,this.speed.y=-this.maxSpeed*this.linearPercent*e,this.rotSpeed.x=-this.angleMax*t*this.anglePercent,this.rotSpeed.y=this.angleMax*e*this.anglePercent,this.rigy.applyLinearImpulseToCenter(this.speed)}onUpdate(){if(this.anglePercent>.1){this.anglePercent*=.97,this.rotSpeed.x=-this.angleMax*Math.sin(this.angle*Math.PI/180)*this.anglePercent,this.rotSpeed.y=this.angleMax*Math.cos(this.angle*Math.PI/180)*this.anglePercent,this.rigy.applyForceToCenter(this.rotSpeed),Laya.Vector2.normalize(this.rigy.linearVelocity,this.speed),Laya.Vector2.normalize(this.rotSpeed,this.rotSpeed),Laya.Vector2.dot(this.speed,this.rotSpeed)>.9&&(this.canRot=!0)}else this.canRot=!0;Math.abs(this.rotY)>.1&&(this.rotY*=.98),super.onUpdate()}destroySelf(){super.destroySelf(),this.speed=null}}class Q extends Laya.Sprite{constructor(t=!1){super(),this.ui=Z.createInstance(),this.pivotX=this.ui.width/2,this.pivotY=this.ui.width/2,this.x=0,this.y=0,this.addChild(this.ui.displayObject),this.ui.displayObject.x+=this.ui.width/2,this.ui.displayObject.y+=this.ui.width/2,this.d2Src=t?this.addComponent(J):this.addComponent($),this.d2Src.ui=this.ui,this.addCircleCollider(),this.addInnerCircleCollider(),this.addRigyBody()}addCircleCollider(){let t=Bo.common.getCollider("circle");t.radius=this.ui.width/2,this.addComponentIntance(t),this.d2Src.outColli=t,t.label="ball"}addInnerCircleCollider(){let t=Bo.common.getCollider("circle");t.radius=this.ui.inner.width/2,t.x=(this.ui.width-this.ui.inner.width)/2,t.y=(this.ui.width-this.ui.inner.width)/2,this.addComponentIntance(t),this.d2Src.innerColli=t,t.label="inner"}addRigyBody(){let t=Bo.common.getRigbody();t.type="dynamic",this.addComponentIntance(t),this.d2Src.rigy=t}disposeSelf(){this.ui.isDisposed||(this.ui.dispose(),this.ui.removeFromParent(),this.ui=null)}}class tt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","D2Gan")}onConstruct(){this.myIcon=this.getChild("myIcon"),this.selfRodIcon=this.getChild("selfRodIcon"),this.selfEftRoot=this.getChild("selfEftRoot"),this.self=this.getChild("self"),this.aiRodIcon=this.getChild("aiRodIcon"),this.aiEftRoot=this.getChild("aiEftRoot"),this.ai=this.getChild("ai")}}tt.URL="ui://isxx5ak7sdh33qp";class et{constructor(){this.offset=.15,this.cell=1.5,this.onBallCell=.4,this.lastInfo={x:0,y:0,rotation:0},this.moveNum=70,this.rulerRate=.1,this.ui=tt.createInstance(),this.changeSelfRod(),this.changeAIRod()}changeSelfRod(){let t=jo.getCurBallRod(),e=cfgTable.ballrodData[t+1];this.ui.selfEftRoot.displayObject&&this.ui.selfEftRoot.displayObject.destroyChildren(),this.selfMySpine&&this.selfMySpine.dispose(),this.ui.selfRodIcon.url=Bo.common.getGameIconUrl(e.img),e.spine&&(this.ui.selfEftRoot.url=Bo.common.getGameIconUrl(e.img),this.selfMySpine=new X(e.spine,()=>{let t={x:this.ui.selfEftRoot.width/2,y:this.ui.selfEftRoot.height/2,scaleX:1,scaleY:1};this.selfMySpine.play(t,0,!0,this.ui.selfEftRoot.displayObject).rotation=-90}))}changeAIRod(){let t=Object.keys(cfgTable.ballrodData).length,e=Math.floor(t*Math.random())+1,i=cfgTable.ballrodData[e];this.ui.aiEftRoot.displayObject&&this.ui.aiEftRoot.displayObject.destroyChildren(),this.aiMySpine&&this.aiMySpine.dispose(),this.ui.aiRodIcon.url=Bo.common.getGameIconUrl(i.img),i.spine&&(this.ui.aiEftRoot.url=Bo.common.getGameIconUrl(i.img),this.aiMySpine=new X(i.spine,()=>{let t={x:this.ui.aiEftRoot.width/2,y:this.ui.aiEftRoot.height/2,scaleX:1,scaleY:1};this.aiMySpine.play(t,0,!0,this.ui.aiEftRoot.displayObject).rotation=-90}))}setGanLastInfo(){this.lastInfo.rotation=this.ui.rotation,this.lastInfo.x=this.ui.x,this.lastInfo.y=this.ui.y}rotateSelf(t,e=!1){let i;t*=this.offset,i=Bo.common.d2World.isHelpLineOnBall?t*this.onBallCell:t*this.cell,e&&(i*=this.rulerRate),this.ui.rotation+=i,Bo.common.d2World.getHelpLine()}checkDistance(){let t=Bo.common.d2World.targetBall,e=Bo.common.d2World.rootBall;return null==t?1:Math.pow(t.gameObj.x-e.gameObj.x,2)+Math.pow(t.gameObj.y-e.gameObj.y,2)<=2500?5:1}rotDest(t){this.ui.rotation=t,Bo.common.d2World.getHelpLine()}storagePower(t){let e=t/100*this.moveNum,i=-Math.sin(Math.PI*this.ui.rotation/180)*e,s=Math.cos(Math.PI*this.ui.rotation/180)*e;this.ui.x=this.lastInfo.x+i,this.ui.y=this.lastInfo.y+s}shoot(){this.storagePower(0),this.ui.visible=!1}destroySelf(){this.ui.selfEftRoot.displayObject&&this.ui.selfEftRoot.displayObject.destroyChildren(),this.ui.aiEftRoot.displayObject&&this.ui.aiEftRoot.displayObject.destroyChildren(),this.selfMySpine&&this.selfMySpine.dispose(),this.aiMySpine&&this.aiMySpine.dispose(),this.lastInfo=null,this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose())}}class it extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","HelpLine")}onConstruct(){this.n10=this.getChild("n10"),this.rect=this.getChild("rect"),this.dir11=this.getChild("dir11"),this.dir=this.getChild("dir"),this.rootDir=this.getChild("rootDir"),this.dirDot=this.getChild("dirDot")}}it.URL="ui://isxx5ak7sdh33qs";class st{constructor(){this.starX=0,this.starY=0,this.ui=it.createInstance(),Bo.common.gameUI.ui.ballNode.addChild(this.ui),this.starX=this.ui.rect.x,this.starY=this.ui.rect.y}shoot(){this.ui.visible=!1}destroySelf(){this.ui.isDisposed&&(this.ui.removeFromParent(),this.ui.dispose())}}class nt extends Laya.Script{constructor(){super(),this.ballArr=[],this.openCheckStill=!1,this.checkArr=[],this.borderRect={x:169,y:179.25,width:996,height:495,openBallW:236},this.isHelpLineOnBall=!1,this.isOnSameLine=!1,this.reflectAngle=0,this.powerPercent=0,this.inHolesSpeed=[],this.outDir=new Laya.Vector2,this.rootDir=new Laya.Vector2,this.aiLv=0,this.rootPos=new Laya.Vector2,this.tempDir1=new Laya.Vector2,this.tempDir2=new Laya.Vector2,this.tempDir3=new Laya.Vector2,this.ballSize=33,this.destRot=0}initSelf(){this.createBalls(),Bo.eventMgr.off(n,this,this.allBallStop),Bo.eventMgr.on(n,this,this.allBallStop),Bo.eventMgr.off(a,this,this.waitShoot),Bo.eventMgr.on(a,this,this.waitShoot),Bo.eventMgr.on(r,this,this.resetGame)}setBorderRect(){let t=Bo.common.gameUI.ui,e=t.border.bar5.x+t.border.bar5.width/2,i=t.border.bar1.y+t.border.bar1.height/2,s=Math.abs(t.border.bar6.x-t.border.bar5.x-t.border.bar5.width),n=Math.abs(t.border.bar3.y-t.border.bar1.y-t.border.bar1.height);this.borderRect.x=e,this.borderRect.y=i,this.borderRect.width=s,this.borderRect.height=n}resetGame(){let t;this.openCheckStill=!1;for(let e=0;e<this.ballArr.length;e++)(t=this.ballArr[e]).destroySelf();Bo.common.d3World.ballRoot.destroyChildren(),Bo.common.gameUI.ui.ballNode.removeChildren(),console.log("进入摧毁逻辑"),this.d2Gan.destroySelf(),this.d2HelpLine.destroySelf(),this.ballArr=[]}setD2Gan(){let t=this.rootBall.ui,e=new et;this.d2Gan=e;let i=e.ui;t.addChild(i),i.pivotX=i.pivotX,i.pivotY=i.pivotY,i.x=i.myIcon.width/2,i.y=this.rootBall.gameObj.width,e.setGanLastInfo()}setHelpLine(){let t=new st;this.d2HelpLine=t}createBalls(){let t;switch(Bo.common.gameMode){case f.classic:t=Bo.cfgMgr.getRandomClassicLevel();break;case f.bigMove:t=Bo.cfgMgr.getBigMoveLevelByIndex(Bo.common.bigMoveLevelIndex);break;case f.placeBall:t=Bo.cfgMgr.getPlaceBallByLevel(Bo.common.placeBallCurLevel)}t=JSON.parse(JSON.stringify(t));for(const e in t)if(0==t[e].value){this.createRootBall(t[e]),delete t[e];break}this.createOtherBalls(t)}createRootBall(t){let e=new Q(!0);Bo.common.gameUI.ui.ballNode.displayObject.addChild(e),this.rootBall=e.d2Src;let i=Bo.poolD3Mgr.getItem(C.d3ball),s=i.getComponent(q);Bo.common.d3World.rootBall=i,Bo.common.d3World.rootBallSrc=s;let n=t.x,a=t.y,o=t.value;Bo.common.gameMgr.lastRootBallPos.setValue(n,a),this.rootBall.initSelf(o,n,a,i),this.ballArr.push(this.rootBall),this.setD2Gan(),this.setHelpLine()}createOtherBalls(t){let e,i,s;for(const n in t){s=t[n],e=new Q,Bo.common.gameUI.ui.ballNode.displayObject.addChild(e),i=e.d2Src;let a=Bo.poolD3Mgr.getItem(C.d3ball);i.initSelf(s.value,s.x,s.y,a),this.ballArr.push(i)}}shoot(t){this.powerPercent=t,this.openCheckStill=!0;let e=this.d2Gan.ui.rotation;this.rootBall.setSpeed(t,e),this.clearBallAllEft(),this.changePlayerView()}onUpdate(){this.openCheckStill&&this.checkStill()}checkStill(){for(let t=0;t<this.ballArr.length;t++)if(!this.ballArr[t].isStill())return;Bo.eventMgr.event(n)}allBallStop(){this.openCheckStill=!1,Bo.common.recoverCameraView()}waitShoot(){this.d2Gan.ui.isDisposed||(this.d2Gan.ui.visible=!0),this.d2HelpLine.ui.isDisposed||(this.d2HelpLine.ui.visible=!0),this.clearBallAllEft(),this.showBallRightEft(),this.getHelpLine(),this.inHolesSpeed=[],this.selectOneBall()}_getAllBallArr(){let t=this.ballArr,e=[];for(let i=0;i<t.length;i++)t[i]instanceof J||"ice"!=t[i].ballFunc&&(t[i].destroyed||e.push(t[i]));return e}_getBlackObj(){let t=this.ballArr;for(let e=0;e<t.length;e++)if(8==t[e].number&&Bo.common.gameMode==f.classic)return t[e]}selectOneBall(){let t,e=this._getAllBallArr();switch(Bo.common.gameMode){case f.classic:if(Bo.common.gameMgr.selfTurn){let i=Bo.common.gameMgr.selfBallArr,s=this._getBlackObj();if(Bo.common.gameMgr.ensureBallType)if(i.length>0){let s=[];for(let t=0;t<e.length;t++)i.indexOf(e[t].number)>-1&&s.push(e[t]);t=this.selectBestEnterOne(s)}else t=this.selectBestEnterOne([s]);else t=this.selectBestEnterOne(e)}else t=this.selectBestEnterOne(e);break;case f.bigMove:t=this.selectBestEnterOne(e);break;case f.placeBall:e.length>0&&(t=this.selectBestEnterOne(e))}if(t&&!t.destroyed&&t.onClick){t.onClick(0,!0);let e=-200+Bo.common.randomNum(0,400);e/=150,Bo.common.longHelpLine&&(e=0),this.destRot+=e,Bo.common.d2World.d2Gan.rotDest(this.destRot)}}removeOneBall(t){for(let e=0;e<this.ballArr.length;e++)if(this.ballArr[e].id==t.id){this.ballArr.splice(e,1);break}}getHelpLine(){this.d2HelpLine.ui.dirDot.visible=!1,this.isOnSameLine=!1;let t=this.rootBall.gameObj.x,e=this.rootBall.gameObj.y,i=this.getBorderDot(t,e,this.d2Gan.ui.rotation);if(null==i)return this.d2HelpLine.ui.visible=!1,void console.error("辅助线异常");this.d2HelpLine.ui.visible=!0;let s=this.d2Gan.ui.rotation,n=t+i*Math.sin(s*Math.PI/180),a=e+i*-Math.cos(s*Math.PI/180),o=Bo.common.isBlock(t,e,n,a);if(null==o)this.getColliPos(n,a,16.5,s),Bo.common.d2World.isHelpLineOnBall=!1,this.targetBall=null,this.reflectAngle=0,this.showBallWrongEft();else{let i=o.src,n=16.5,a=4*n*n-o.disVer*o.disVer;a=Math.sqrt(a);let h=o.disHon-a,l=o.dir,r=t+l.x*h,c=e+l.y*h;this.getColliPos(r,c,n,s);let d=this.getReflectLine(r,c,n,i.gameObj)-180;if(Math.abs(d-s)<=.02){let t=Bo.common.rodOffest;Math.abs(t.x)<1&&Math.abs(t.y)<1&&(this.isOnSameLine=!0)}this.getRootDirLine(d,s,r,c,i),Bo.common.d2World.isHelpLineOnBall=!0,this.targetBall=i,this.reflectAngle=d,this.showBallWrongEft(),Bo.common.longHelpLine&&this.delayReflectLine(i,d)}}getBorderDot(t,e,i){let s,n;return s=-(this.borderRect.y-e+17)/Math.cos(i*Math.PI/180),null!=(n=this.judgeUpDown(s,i,t))?n:(s=-(this.borderRect.y+this.borderRect.height-e-17)/Math.cos(i*Math.PI/180),null!=(n=this.judgeUpDown(s,i,t))?n:(s=(this.borderRect.x-t+17)/Math.sin(i*Math.PI/180),null!=(n=this.judgeLeftRight(s,i,e))?n:(s=(this.borderRect.x+this.borderRect.width-t-17)/Math.sin(i*Math.PI/180),null!=(n=this.judgeLeftRight(s,i,e))?n:void 0)))}judgeUpDown(t,e,i){let s=Math.sin(e*Math.PI/180),n=i+t*Math.sin(e*Math.PI/180);if(t>=0)if(s>0){if(n<this.borderRect.x+this.borderRect.width)return t}else if(n>this.borderRect.x)return t}judgeLeftRight(t,e,i){let s=-Math.cos(e*Math.PI/180),n=i+t*-Math.cos(e*Math.PI/180);if(t>=0)if(s>0){if(n<this.borderRect.y+this.borderRect.height)return t}else if(n>this.borderRect.y)return t}clearBallAllEft(){let t;for(let e=0;e<this.ballArr.length;e++)(t=this.ballArr[e]).clearBallEft()}showBallRightEft(){let t,e=Bo.common.gameMgr,i=e.selfTurn?e.selfBallArr:e.aiBallArr;if(!(i.length<=0))for(let e=0;e<this.ballArr.length;e++)t=this.ballArr[e],i.indexOf(t.number)>-1&&t.showRightEft()}showBallWrongEft(){let t,e=Bo.common.gameMgr,i=e.selfTurn?e.selfBallArr:e.aiBallArr;if(!(i.length<=0))for(let e=0;e<this.ballArr.length;e++)t=this.ballArr[e],this.targetBall&&this.targetBall.number==t.number&&i.indexOf(t.number)<=-1?t.showWrongEft():t.clearBallWrongEft()}getColliPos(t,e,i,s){this.d2HelpLine.ui.x=t,this.d2HelpLine.ui.y=e;let n=t-this.rootBall.gameObj.x,a=e-this.rootBall.gameObj.y,o=Math.pow(n*n+a*a,.5);o<=0&&(o=0),this.d2HelpLine.ui.rect.height=0,this.d2HelpLine.ui.rect.height=o,this.d2HelpLine.ui.rect.rotation=Bo.common.getfguiRotation(n,a),o<this.rootBall.gameObj.width?this.d2HelpLine.ui.rect.visible=!1:this.d2HelpLine.ui.rect.visible=!0,this.d2HelpLine.ui.dir.visible=!1,this.d2HelpLine.ui.rootDir.visible=!1}getReflectLine(t,e,i,s){this.d2HelpLine.ui.dir.visible=!0;let n=s.x-t,a=s.y-e,o=Bo.common.getfguiRotation(n,a)+180;return this.d2HelpLine.ui.dir.x=this.d2HelpLine.starX,this.d2HelpLine.ui.dir.y=this.d2HelpLine.starY,this.d2HelpLine.ui.dir.height=48,this.d2HelpLine.ui.dir.rotation=o,this.d2HelpLine.ui.dir.x-=2*i*Math.sin(o*Math.PI/180),this.d2HelpLine.ui.dir.y-=2*i*-Math.cos(o*Math.PI/180),o}getRootDirLine(t,e,i,s,n){let a=Bo.common.d2World.rootBall.gameObj.x,o=Bo.common.d2World.rootBall.gameObj.y,h=n.gameObj.x,l=n.gameObj.y;this.outDir.setValue(h-i,l-s),this.rootDir.setValue(a-i,o-s);let r=Math.PI/2,c=Math.sin(r),d=Math.cos(r),u=this.outDir.x*d-this.outDir.y*c,g=this.outDir.x*c+this.outDir.y*d;this.outDir.setValue(u,g),Laya.Vector2.normalize(this.rootDir,this.rootDir),Laya.Vector2.normalize(this.outDir,this.outDir);let m=Laya.Vector2.dot(this.rootDir,this.outDir);Math.abs(m)<=.08?this.d2HelpLine.ui.rootDir.visible=!1:(m>0?t+=90:m<0&&(t-=90),this.d2HelpLine.ui.rootDir.visible=!0,this.d2HelpLine.ui.rootDir.x=this.d2HelpLine.starX,this.d2HelpLine.ui.rootDir.y=this.d2HelpLine.starY,this.d2HelpLine.ui.rootDir.rotation=t)}delayReflectLine(t,e){if(Bo.common.gameMode!=f.placeBall&&!Bo.common.gameMgr.selfTurn)return;this.isOnSameLine=!1;let i=t.gameObj.x,s=t.gameObj.y,n=this.getBorderDot(i,s,e);if(null==n)return void(this.d2HelpLine.ui.dirDot.visible=!1);this.d2HelpLine.ui.visible=!0;let a=i+n*Math.sin(e*Math.PI/180),o=s+n*-Math.cos(e*Math.PI/180),h=Bo.common.isBlock(i,s,a,o,t);if(null==h)this.setDelayLine(a,o,t,e);else{let n=16,a=4*n*n-h.disVer*h.disVer;a=Math.sqrt(a);let o=h.disHon-a,l=h.dir,r=i+l.x*o,c=s+l.y*o;this.setDelayLine(r,c,t,e)}}setDelayLine(t,e,i,s){let n=t-i.gameObj.x,a=e-i.gameObj.y,o=Math.pow(n*n+a*a,.5);o<=0&&(o=0),this.d2HelpLine.ui.dir.height=o,this.d2HelpLine.ui.dirDot.visible=!0,this.d2HelpLine.ui.dirDot.x=17,this.d2HelpLine.ui.dirDot.y=17,this.d2HelpLine.ui.dirDot.x+=(o+34)*Math.sin(s*Math.PI/180),this.d2HelpLine.ui.dirDot.y+=(o+34)*-Math.cos(s*Math.PI/180)}changePlayerView(){if(Math.random()>=.7)return;if(!this.targetBall)return;if(!Bo.common.gameMgr.selfTurn)return;switch(Bo.common.gameMode){case f.classic:if(Bo.common.gameMgr.selfBallArr.indexOf(this.targetBall.number)<=-1&&8!=this.targetBall.number)return;break;case f.bigMove:return;case f.placeBall:}let t=this.targetBall.gameObj.x,e=this.targetBall.gameObj.y,i=this.reflectAngle,s=this.getBorderDot(t,e,i),n=t+s*Math.sin(i*Math.PI/180),a=e+s*-Math.cos(i*Math.PI/180);if(Bo.common.isBlock(t,e,n,a,this.targetBall))return;let o,h,l,r,c=Bo.common.gameMgr.posObj;for(const s in c)if(o=c[s],l=t+(h=Math.pow((t-o.x)*(t-o.x)+(e-o.y)*(e-o.y),.5))*Math.sin(i*Math.PI/180),r=e+h*-Math.cos(i*Math.PI/180),(l-o.x)*(l-o.x)+(r-o.y)*(r-o.y)<40){Bo.common.showOneCamera("angle"+s),Bo.common.gameUI.ui.d2Node.alpha=0,Laya.physicsTimer.scale=.7;break}}selectBestEnterOne(t){return this.aiLv=Bo.tools.random(1,11),this.aiLv=10,this.wBall=Bo.common.d2World.rootBall,this.rootPos.x=this.wBall.gameObj.x,this.rootPos.y=this.wBall.gameObj.y,this.initHoleBall(t),this.selectBall()}selectBall(){let t=null;this.destRot=0;let e=110-10*this.aiLv,i=.005*Bo.tools.random(-e,e),s=!1;if(this.scoreBall.length<1)if(this.lineBall.length<1)for(let t=0;t<this.kickBall.length;t++){let e=[],s=this.kickBall[t],n=s.gameObj,a=Bo.common.d2World.borderRect,o=this.wBall.gameObj,h=n.y-a.y-20,l=o.y-a.y-50;if(h>0&&l>0){let t=0,i=o.y-a.y,s=o.x,n=a.y-i;e.push({order:h,bx:0,by:a.y,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.y+a.height-n.y-20,l=a.y+a.height-o.y-50,h>0&&l>0){let t=0,i=a.y+a.height-o.y,s=o.x,n=a.y+a.height+i;e.push({order:h,bx:0,by:a.y+a.height,spx:s,spy:n,dlenx:t,dleny:i})}if(h=n.x-a.x-20,l=o.x-a.x-50,h>0&&l>0){let t=o.x-a.x,i=0,s=a.x-t,n=o.y;e.push({order:h,bx:a.x,by:0,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.x+a.width-n.x-20,l=a.x+a.width-o.x-50,h>0&&l>0){let t=a.x+a.width-o.x,i=0,s=a.x+a.width+t,n=o.y;e.push({order:h,bx:a.x+a.width,by:0,spx:s,spy:n,dlenx:t,dleny:i})}e.sort(function(t,e){return t.order-e.order});for(let t=0;t<e.length;t++){let a=e[t],h=o.x-n.x,l=o.y-n.y;Bo.tools.getV2Dir(a.spx,a.spy,n.x,n.y,this.tempDir1),Bo.tools.getV2Dir(a.spx,a.spy,o.x,o.y,this.tempDir2);let r=Laya.Vector2.dot(this.tempDir1,this.tempDir2);r>1&&(r=1);let c=Math.acos(r);c>1.57?c=1.57:c<.01&&(c=.01);let d=Math.tan(c),u=d*a.dleny,g=d*a.dlenx,m=a.bx>0?a.bx:o.x+(h>0?-u:u);if(Math.abs(m-667)<40)continue;let y=a.by>0?a.by:o.y+(l>0?-g:g);if(!this.isBlock(0,o.x,o.y,m,y)&&!this.isBlock(s.number,n.x,n.y,m,y)){let t=Math.abs(a.dlenx)+Math.abs(a.dleny)+Bo.tools.getDistance(m,y,s.gameObj.x,s.gameObj.y);return this.forceMax=.08*t,this.destRot+=.1*i,this.setKick(m,y),!0}}}else t=Bo.common.getRandArrEle(this.lineBall);else{for(let e=0;e<this.scoreBall.length;e++){if(!(e<this.scoreBall.length-1)){t=this.scoreBall[e];break}{let i=70+10*this.aiLv+10*e;if(Bo.tools.random(0,100)<i){t=this.scoreBall[e];break}}}s=!0,this.selectNum++}t||(t=Bo.common.getRandArrEle(Bo.common.d2World.ballArr));let n=t.gameObj.x,a=t.gameObj.y,o=0;if(s){n=t.kickPos.x,a=t.kickPos.y,this.tempDir2=Bo.tools.getV2Dir(this.wBall.gameObj.x,this.wBall.gameObj.y,n,a,this.tempDir2),this.tempDir3=Bo.tools.getV2Dir(n,a,t.gameObj.x,t.gameObj.y,this.tempDir3);let e=Laya.Vector2.dot(this.tempDir3,this.tempDir2);if(e>1&&(e=1),(o=57.3*Math.acos(e))>45){let e=t.kickPos.x-t.gameObj.x,s=t.kickPos.y-t.gameObj.y;n=t.kickPos.x-e*i*.3,a=t.kickPos.y-s*i*.3}else this.destRot+=i}else 0!=t.poleAngle&&(this.destRot+=t.poleAngle);if(0==Bo.common.gameMode){let e=.08*o;this.forceMax=.1*t.hard+e*e}return this.setKick(n,a),t}initHoleBall(t){this.kickBall=[],this.lineBall=[],this.scoreBall=[],this.holeBall=[],this.selectNum=0,this.forceNum=0,this.forceMax=0,this.turnNum=0;let e=t,i=Bo.common.gameMgr.holePosList,s=Bo.common.aiPlayer;for(let t=0;t<e.length;t++){let n=e[t];if(!n)continue;n.kickPos.x=0,n.kickPos.y=0,n.poleAngle=0,n.hard=0,n.borderDis=0,n.kickAngle=180;let a=n.gameObj,o=this.rootPos,h=o.x-a.x,l=o.y-a.y;if(n.borderDis=Bo.tools.random(0,100),this.kickBall.push(n),!this.isLine(o,n))continue;n.kickAngle=Bo.tools.random(90,180),n.kickPos.x=a.x,n.kickPos.y=a.y,this.lineBall.push(n);let r=999999,c=!1;for(let t=0;t<i.length;t++){let e=i[t];if(!(h>=0&&e.x>a.x+100)&&!(h<=0&&e.x<a.x-100||l<-10&&e.y<o.y||l>10&&e.y>o.y||this.isBlock(n.number,a.x,a.y,e.x,e.y))){let t=Bo.tools.getDeltaxy(a.x,a.y,e.x,e.y);if(t<r){let i=a.x-this.tempDir1.x*this.ballSize,h=a.y-this.tempDir1.y*this.ballSize;if(this.tempDir3.x=this.tempDir1.x,this.tempDir3.y=this.tempDir1.y,!this.isBlock(this.wBall.number,o.x,o.y,i,h,n.number)){n.kickPos.x=i,n.kickPos.y=h;let o=Laya.Vector2.dot(this.tempDir1,this.tempDir3);o>1&&(o=1),n.kickAngle=57.3*Math.acos(o),(a.x<s.rectL+2||a.x>s.rectR-2||a.y<s.rectT+2||a.y>s.rectB-2)&&(t*=2),Math.abs(e.x-600)<100&&(t+=50),n.hard=t+3*n.kickAngle,c=!0}}}}c&&(this.scoreBall.push(n),this.holeBall.push(n))}this.scoreBall.sort(function(t,e){return t.hard-e.hard}),this.holeBall.sort(function(t,e){return t.kickAngle-e.kickAngle}),this.kickBall.sort(function(t,e){return t.borderDis-e.borderDis})}isBlock(t,e,i,s,n,a=-1){this.tempDir1=Bo.tools.getV2Dir(e,i,s,n,this.tempDir1);let o=Bo.common.d2World.ballArr,h=Bo.tools.getDis(s,n,e,i);for(let s=0;s<o.length;s++){let n=o[s];if(0==n.number)continue;if(n.number==t||n.number==a)continue;let l=Bo.tools.getDistance(n.gameObj.x,n.gameObj.y,e,i);if(l*l>h)continue;this.tempDir2=Bo.tools.getV2Dir(e,i,n.gameObj.x,n.gameObj.y,this.tempDir2);let r=Laya.Vector2.dot(this.tempDir1,this.tempDir2);if((r>1&&(r=1),!(r<0))&&Math.sin(Math.acos(r))*l<this.ballSize)return!0}return!1}isLine(t,e){let i=t.x,s=t.y;if(this.isBlock(0,i,s,e.gameObj.x,e.gameObj.y,e.number)){let n=e.getDestDis(t),a=Math.asin((e.gameObj.width-3)/n),o=Math.sin(a),h=Math.cos(a);this.tempDir3=Bo.tools.getV2Dir(i,s,e.gameObj.x,e.gameObj.y,this.tempDir3),this.tempDir2.x=this.tempDir3.x*h-this.tempDir3.y*o,this.tempDir2.y=this.tempDir3.x*o+this.tempDir3.y*h;let l=i+this.tempDir2.x*n,r=s+this.tempDir2.y*n,c=this.isBlock(0,i,s,l,r,e.number);o=Math.sin(-a),h=Math.cos(-a),this.tempDir2.x=this.tempDir3.x*h-this.tempDir3.y*o,this.tempDir2.y=this.tempDir3.x*o+this.tempDir3.y*h,l=i+this.tempDir2.x*n,r=s+this.tempDir2.y*n;let d=this.isBlock(0,i,s,l,r,e.number);if(c&&d)return!1;e.poleAngle=c?57.3*-a:57.3*a}return!0}setKick(t,e){this.forceMax+=.1*this.wBall.getDestDis({x:t,y:e}),this.tempDir2=Bo.tools.getV2Dir(this.wBall.gameObj.x,this.wBall.gameObj.y,t,e,this.tempDir2),this.tempDir1.x=0,this.tempDir1.y=1,this.tempDir2.y=-this.tempDir2.y;let i=Laya.Vector2.dot(this.tempDir1,this.tempDir2);i>1&&(i=1);let s=57.3*Math.acos(i);this.tempDir2.x<0&&(s=360-s),this.destRot+=s}}class at extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGame")}onConstruct(){this.c1=this.getController("c1"),this.d3Root=this.getChild("d3Root"),this.clickNode=this.getChild("clickNode"),this.d2Root=this.getChild("d2Root"),this.topNode=this.getChild("topNode"),this.n72=this.getChild("n72"),this.n40=this.getChild("n40"),this.rulerNode=this.getChild("rulerNode"),this.rulerClickNode=this.getChild("rulerClickNode"),this.n50=this.getChild("n50"),this.keduNode=this.getChild("keduNode"),this.powerTxt=this.getChild("powerTxt"),this.powerNode=this.getChild("powerNode"),this.colorNode=this.getChild("colorNode"),this.powerEft=this.getChild("powerEft"),this.myPowerNode=this.getChild("myPowerNode"),this.ganNode=this.getChild("ganNode"),this.rodMethodNode=this.getChild("rodMethodNode"),this.placeChallengeNode=this.getChild("placeChallengeNode"),this.placeNormalNode=this.getChild("placeNormalNode"),this.skillRod=this.getChild("skillRod"),this.border=this.getChild("border"),this.bigSkillNode=this.getChild("bigSkillNode"),this.classicWorldsNode=this.getChild("classicWorldsNode"),this.bigMoveWorldsNode=this.getChild("bigMoveWorldsNode"),this.classicEmotionSpineNode=this.getChild("classicEmotionSpineNode"),this.awardSpineNode=this.getChild("awardSpineNode"),this.guanyuNode=this.getChild("guanyuNode"),this.helpBtn=this.getChild("helpBtn"),this.wordsBtn=this.getChild("wordsBtn"),this.aiWordsBtn=this.getChild("aiWordsBtn"),this.returnBtn=this.getChild("returnBtn"),this.ballNode=this.getChild("ballNode"),this.whiteAni=this.getChild("whiteAni"),this.blackAni=this.getChild("blackAni"),this.selfTurn=this.getChild("selfTurn"),this.aiTurn=this.getChild("aiTurn"),this.deskNode=this.getChild("deskNode"),this.moveNode=this.getChild("moveNode"),this.selfTalk=this.getChild("selfTalk"),this.aiTalk=this.getChild("aiTalk"),this.d2Node=this.getChild("d2Node"),this.snowNode=this.getChild("snowNode"),this.guide2=this.getChild("guide2"),this.guide1=this.getChild("guide1"),this.guide3=this.getChild("guide3"),this.guideNode=this.getChild("guideNode")}}at.URL="ui://isxx5ak7kt443qg";class ot extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGameEnd")}onConstruct(){this.c1=this.getController("c1"),this.n22=this.getChild("n22"),this.n2=this.getChild("n2"),this.n52=this.getChild("n52"),this.n53=this.getChild("n53"),this.coinNode=this.getChild("coinNode"),this.closeNode=this.getChild("closeNode"),this.moneyNode=this.getChild("moneyNode"),this.secretary=this.getChild("secretary"),this.n27=this.getChild("n27"),this.n29=this.getChild("n29"),this.talkNode=this.getChild("talkNode"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.starNumNode=this.getChild("starNumNode"),this.awardNode=this.getChild("awardNode"),this.n47=this.getChild("n47"),this.conditionNode=this.getChild("conditionNode"),this.isGetAward=this.getChild("isGetAward"),this.leftBtn=this.getChild("leftBtn"),this.rightBtn=this.getChild("rightBtn"),this.btnNode=this.getChild("btnNode")}}ot.URL="ui://isxx5ak7hkrz3u3";class ht extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIAddCoin")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}ht.URL="ui://isxx5ak7uxuev4hs";class lt extends A{constructor(){super(),this.coinNum=2e3}onConstructor(){this.ui=ht.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoAddCoin)}show(){super.show(),this.ui.t0.play()}videoAddCoin(){Moyu.showVideoAd(()=>{Bo.common.playObjFlyAnim(this.coinNum,L.coin),this.hide()},N.addFailCoin)}}lt.uiName="UIAddCoin";class rt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIInvitation")}onConstruct(){this.n14=this.getChild("n14"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}rt.URL="ui://isxx5ak7lrxgv50r";class ct extends A{constructor(){super()}onConstructor(){this.ui=rt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.enterBtn,this.enterGame)}show(){super.show()}enterGame(){Bo.common.gameMode=f.classic,jo.setChallengeTimes(1),Bo.common.passAwardCoin=2e3;let t=Bo.common.classicNiceNeddCoin;jo.coinEnough(t)?(jo.setCoin(-t),Bo.eventMgr.event(u,!0),Moyu.sendDataEvent("enterChallenge",{mode:Bo.common.gameMode})):Bo.eventMgr.event(u,!0),this.hide()}hide(){super.hide()}}ct.uiName="UIInvitation";class dt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMain")}onConstruct(){this.n47=this.getChild("n47"),this.n10=this.getChild("n10"),this.secretary=this.getChild("secretary"),this.n33=this.getChild("n33"),this.shopBtn=this.getChild("shopBtn"),this.moneyNode=this.getChild("moneyNode"),this.headNode=this.getChild("headNode"),this.bigMoveBtn=this.getChild("bigMoveBtn"),this.placeBallBtn=this.getChild("placeBallBtn"),this.classicBtn=this.getChild("classicBtn"),this.weeklyBtn=this.getChild("weeklyBtn"),this.globalBtn=this.getChild("globalBtn"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n64=this.getChild("n64"),this.n66=this.getChild("n66"),this.n44=this.getChild("n44"),this.signBtn=this.getChild("signBtn"),this.drawBtn=this.getChild("drawBtn"),this.settingNode=this.getChild("settingNode"),this.n45=this.getChild("n45"),this.secretaryBtn=this.getChild("secretaryBtn"),this.n85=this.getChild("n85"),this.rankBtn=this.getChild("rankBtn"),this.n46=this.getChild("n46"),this.liucheng1=this.getChild("liucheng1"),this.rightBtn=this.getChild("rightBtn"),this.n75=this.getChild("n75"),this.secretaryGuide=this.getChild("secretaryGuide"),this.liucheng2=this.getChild("liucheng2"),this.guideBtn=this.getChild("guideBtn"),this.n73=this.getChild("n73"),this.wordsNode=this.getChild("wordsNode"),this.enterGuide=this.getChild("enterGuide"),this.talkNode=this.getChild("talkNode"),this.n83=this.getChild("n83"),this.n84=this.getChild("n84")}}dt.URL="ui://isxx5ak7kt443qc";class ut extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","UIMoyu")}onConstruct(){this.ageTip=this.getChild("ageTip"),this.mainBg=this.getChild("mainBg"),this.xyNode=this.getChild("xyNode"),this.rnNode=this.getChild("rnNode"),this.fcmNode=this.getChild("fcmNode"),this.ageNode=this.getChild("ageNode"),this.tipNode=this.getChild("tipNode"),this.msgNode=this.getChild("msgNode")}}ut.URL="ui://37nctnhwxe62v4ea";class gt{static initMoyu(){this.moyuView=new mt,Laya.stage.addChild(this.moyuView.ui.displayObject),this.moyuView.ui.x=(Laya.stage.width-1334)/2,this.moyuView.ui.displayObject.zOrder=1e3,this.moyuView.init(),this.moyuView.showTip(!0),this.moyuView.showAge(!0,0,Laya.stage.height-320),window.XApk=this}static showAge(t){this.moyuView&&this.moyuView.showAge(t)}static onPlatMsg(t){gt.moyuView&&"0"==t&&gt.moyuView.showTip(!1)}static showAgree(t){this.moyuView?this.moyuView.showAgree(t):t&&t()}static showXy(t=1){this.moyuView&&this.moyuView.showXy(t)}}gt.isAdvise=!1;class mt{constructor(){this.ysxyNum=1,this.ysJson=null,this.ui=ut.createInstance()}init(){this.ui.mainBg.visible=!1,this.ui.xyNode.visible=!1,this.ui.ageNode.visible=!1,this.ui.tipNode.visible=!1,this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!1,this.ui.ageTip.visible=!1,this.ui.msgNode.visible=!1,this.ui.visible=!1,this.ui.xyNode.xyList.setVirtual(),this.ui.xyNode.xyList.itemRenderer=Laya.Handler.create(this,this.renderListItem,null,!1),this.ui.ageNode.btnAge.onClick(this,this.onClick,[this.ui.ageNode.btnAge]),this.ui.tipNode.onClick(this,this.onClick,[this.ui.tipNode]),this.ui.ageTip.onClick(this,this.onClick,[this.ui.ageTip]),this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.btnXy1.visible=this.ui.xyNode.btnXy2.visible=!1,this.ui.xyNode.btnSure.visible=this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy1.onClick(this,this.onClick,[this.ui.xyNode.btnXy1]),this.ui.xyNode.btnXy2.onClick(this,this.onClick,[this.ui.xyNode.btnXy2]),this.ui.xyNode.btnXy3.onClick(this,this.onClick,[this.ui.xyNode.btnXy3]),this.ui.xyNode.btnNo.onClick(this,this.onClick,[this.ui.xyNode.btnNo]),this.ui.xyNode.btnYes.onClick(this,this.onClick,[this.ui.xyNode.btnYes]),this.ui.xyNode.btnSure.onClick(this,this.onClick,[this.ui.xyNode.btnSure]),this.ui.xyNode.btnBack.onClick(this,this.onClick,[this.ui.xyNode.btnBack]),this.ui.xyNode.btnKnown.onClick(this,this.onClick,[this.ui.xyNode.btnKnown]),this.ui.rnNode.btnExit.onClick(this,this.onClick,[this.ui.rnNode.btnExit]),this.ui.rnNode.btnCheck.onClick(this,this.onClick,[this.ui.rnNode.btnCheck]),this.ui.rnNode.btnDone.onClick(this,this.onClick,[this.ui.rnNode.btnDone]),this.ui.fcmNode.btnRn.onClick(this,this.onClick,[this.ui.fcmNode.btnRn]),(Moyu.isVVApk||Moyu.isOPApk||Moyu.isTTApk||Moyu.isOppo||Moyu.isVivo)&&(this.ysxyNum=2)}onClick(t){switch(Bo.soundMgr.playSound(Bo.common.btnClickStr),t){case this.ui.ageTip:Moyu.isTTApk&&(this.ui.ageNode.visible=!0,this.ui.mainBg.visible=!0);break;case this.ui.tipNode:this.showTip(!1);break;case this.ui.ageNode.btnAge:this.ui.ageNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.xyNode.visible||this.ui.rnNode.visible||(this.ui.visible=!1);break;case this.ui.xyNode.btnXy3:case this.ui.xyNode.btnXy1:this.loadXy(1);break;case this.ui.xyNode.btnXy2:this.loadXy(2);break;case this.ui.xyNode.btnBack:this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1;break;case this.ui.xyNode.btnKnown:this.ui.xyNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.visible=!1;break;case this.ui.rnNode.btnCheck:this.check();break;case this.ui.rnNode.btnExit:case this.ui.xyNode.btnNo:this.ysxyNum--,this.ysxyNum>0?this.showMsg("再次拒绝退出游戏"):(Moyu.userAgree(!1),Moyu.exit());break;case this.ui.xyNode.btnSure:case this.ui.xyNode.btnYes:jo.userData.isAgree=!0,jo.saveUserData(),this.onAgree();break;case this.ui.rnNode.btnDone:this.ui.rnNode.visible=!1,this.ui.visible=!1;break;case this.ui.fcmNode.btnRn:this.showRn()}}showTip(t){(Moyu.isVVApk||Moyu.isOPApk)&&(t?(gt.isAdvise=!0,this.ui.visible=!0,this.ui.tipNode.visible=!0,this.ui.tipNode.alpha=1,Laya.timer.once(1e3,this,this.showTip,[!1])):(this.ui.tipNode.alpha=1,this.ui.tipNode.visible=!0,Laya.Tween.to(this.ui.tipNode,{alpha:0},500,null,Laya.Handler.create(this.ui,()=>{this.ui.tipNode.visible=!1,gt.isAdvise=!1}),1e3)))}showAge(t,e=0,i=0){Moyu.platType>10&&!Moyu.isIos&&(this.ui.ageTip.x=e,this.ui.ageTip.y=i,this.ui.ageTip.visible=t,t&&(this.ui.visible=!0))}showAgree(t){this.agreeCall=t,!Moyu.hasAgree||jo.userData.isAgree||Moyu.isIos?this.onAgree():this.showXy(0)}onAgree(){this.ui.ageNode.visible||(this.ui.visible=!1),this.ui.xyNode.visible=!1,Moyu.userAgree(!0),this.showAge(!1),this.agreeCall&&this.agreeCall(),this.showRn()}showMsg(t){this.ui.msgNode.txtMsg.text=t,this.ui.msgNode.visible=!0,this.ui.msgNode.alpha=1,this.ui.visible=!0,Laya.Tween.to(this.ui.msgNode,{alpha:0},600,null,Laya.Handler.create(this.ui,()=>{this.ui.msgNode.visible=!1}),2500,!0)}showRn(){if((Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(!Moyu.isRealName||Moyu.gameTime<999))return this.ui.rnNode.rn1.visible=!0,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn3.visible=!1,this.ui.rnNode.rn4.visible=!1,this.ui.rnNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.rnNode.btnDone.visible=!1,this.ui.rnNode.btnExit.visible=!0,this.ui.rnNode.btnCheck.visible=!0,this.ui.fcmNode.visible=!1,void(this.ui.visible=!0);this.showFcm()}showFcm(){(Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(Moyu.initFCM(!0),Moyu.gameTime<1?this.fcmLoop():Moyu.gameTime<999&&Laya.timer.loop(1e4,this.ui,this.fcmLoop))}fcmLoop(){Moyu.gameTime<1&&(this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.visible=!0,this.ui.fcmNode.btnRn.visible=!Moyu.isLegal,Laya.timer.clear(this.ui,this.fcmLoop))}check(){if(this.ui.rnNode.rn2.visible||this.ui.rnNode.rn1.visible)this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn4.visible=!0;else if(this.ui.rnNode.rn4.visible){let t=this.ui.rnNode.inputName.text,e=this.ui.rnNode.inputCode.text;e&&18==e.length?(this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn4.visible=!1,Moyu.authenticate(t,e,t=>{this.ui.rnNode.rn2.visible=!t,this.ui.rnNode.rn3.visible=t,this.ui.rnNode.btnDone.visible=t,this.ui.rnNode.btnExit.visible=!t,this.ui.rnNode.btnCheck.visible=!t,t&&this.showFcm()})):this.showMsg("信息填写不完整")}}loadXy(t=0){this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!0,this.ui.xyNode.xyList.scrollToView(0),1==t?Laya.loader.load("app/xy/yiiwan_ys.json",Laya.Handler.create(this,this.createXY)):2==t&&Laya.loader.load("app/xy/yiiwan_yh.json",Laya.Handler.create(this,this.createXY))}showXy(t=0){this.xyBtn(),0==t?Moyu.isPlat(MoyuPlat.f399Apk)?this.ui.xyNode.btnSure.visible=!0:(this.ui.xyNode.btnYes.visible=!0,this.ui.xyNode.btnNo.visible=!0):(this.ui.xyNode.btnKnown.visible=!0,this.ui.mainBg.visible=!0),this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.visible=!0,this.ui.visible=!0}xyBtn(){this.ui.xyNode.btnSure.visible=!1,this.ui.xyNode.btnYes.visible=!1,this.ui.xyNode.btnNo.visible=!1,this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy2.visible=!0,this.ui.xyNode.btnXy1.visible=!0,this.ui.xyNode.xy1.text="欢迎来到《万宁台球》"}createXY(t){this.ysJson=t.content,this.ui.xyNode.txtTitle.text=t.title.replace("GAMENAME","万宁台球"),this.ui.xyNode.xyList.numItems=this.ysJson.length,this.ui.xyNode.xy2.visible=!0}renderListItem(t,e){let i=this.ysJson[t];e.height=30*i.line,e.xyItem.text=i.text}onDestroy(){this.agreeCall=null}}class yt{constructor(t){this.showSetting=!1,this.openSound=!0,this.openShake=!0,this.ui=t,this.ui.soundBtn.onClick(this,this.switchSound),this.ui.shakeBtn.onClick(this,this.switchShake),this.ui.xyBtn.onClick(this,this.onXy),this.ui.clickNode.onClick(this,this.changeSetting),this.ui.xyBtn.visible=Moyu.isVivo||Moyu.isOppo||Moyu.isOPApk||Moyu.isVVApk}changeSetting(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.showSetting=!this.showSetting,this.ui.c1.selectedIndex=this.showSetting?1:0}switchSound(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.openSound=!this.openSound,Moyu.onSetting(this.openSound,this.openShake),Bo.soundMgr.onSetting(this.openSound),this.ui.soundBtn.c1.selectedIndex=this.openSound?0:1}switchShake(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.openShake=!this.openShake,Moyu.onSetting(this.openSound,this.openShake),this.ui.shakeBtn.c1.selectedIndex=this.openShake?0:1}onXy(){Bo.soundMgr.playSound(Bo.common.btnClickStr),gt.showXy(1)}}class pt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UILevelDisplay")}onConstruct(){this.n9=this.getChild("n9"),this.myNode=this.getChild("myNode"),this.closeNode=this.getChild("closeNode")}}pt.URL="ui://isxx5ak7avag46o";class xt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UILevelProp")}onConstruct(){this.n16=this.getChild("n16"),this.myNode=this.getChild("myNode"),this.closeBtn=this.getChild("closeBtn"),this.moneyNode=this.getChild("moneyNode"),this.t1=this.getTransition("t1")}}xt.URL="ui://isxx5ak7xs1r47l";class Ct extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ShowItem")}onConstruct(){this.myImg=this.getChild("myImg")}}Ct.URL="ui://isxx5ak710hfv49o";class ft{constructor(){this.ui=Ct.createInstance()}destroySelf(){this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose())}setParent(t){t.addChild(this.ui)}setPos(t,e){this.ui.x=t,this.ui.y=e}setUrl(t){this.ui.myImg.url=Bo.common.getGameIconUrl("q"+t)}}class bt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIPower")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}bt.URL="ui://isxx5ak7jpszv4n1";class It extends A{constructor(){super()}onConstructor(){this.ui=bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoGetPower)}show(){super.show(),this.ui.t0.play()}videoGetPower(){Moyu.showVideoAd(()=>{jo.setPower(Bo.common.videoPower,!0),Bo.eventMgr.event(p),this.hide()},N.getPower)}}It.uiName="UIPower";class kt extends A{constructor(){super(),this.firstPos=385,this.secondPos=467,this.showItemArr=[]}onConstructor(){this.ui=xt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.hide),this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.myNode.startBtn,this.startGame)}show(t){super.show(),this.ui.t1.play(),this.level=t,this.data=cfgTable.placeballData[this.level],this.updateSelf(),this.showPreView(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange()}showPreView(){let t,e;for(let e=0;e<this.showItemArr.length;e++)(t=this.showItemArr[e]).destroySelf();this.showItemArr=[];let i=Bo.cfgMgr.getPlaceBallByLevel(this.level);for(const s in i)e=i[s],(t=new ft).setParent(this.ui.myNode.displayRoot),t.setPos(e.x,e.y),t.setUrl(e.value),this.showItemArr.push(t)}updateSelf(){this.ui.myNode.levelTxt.text=`第${this.level}关`,this.ui.myNode.modeNode.c1.selectedIndex=this.data.type,-1==this.data.ball?this.ui.myNode.conditionTxt.text="打进场上所有球":this.ui.myNode.conditionTxt.text="奖励关卡";let t=jo.getPlaceBallLevel(this.level).getAward,e=cfgTable.placeballData[this.level],i=this.data.award[0],s=this.data.award[1];e.type==w.challenge&&(s=0,i=100),this.ui.myNode.coinNode.visible=0!=i,this.ui.myNode.diamondNode.visible=0!=s,this.ui.myNode.coinNode.numTxt.text=i+"",e.type==w.challenge&&(this.ui.myNode.coinNode.numTxt.text=""),this.ui.myNode.diamondNode.numTxt.text=s+"",i>0&&s>0?(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=467):(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=385),t?(this.ui.myNode.diamondNode.c1.selectedIndex=1,this.ui.myNode.coinNode.c1.selectedIndex=1):(this.ui.myNode.coinNode.c1.selectedIndex=0,this.ui.myNode.diamondNode.c1.selectedIndex=0)}startGame(){jo.powerEnough()?(this.ui.myNode.startBtn.touchable=!1,this.ui.myNode.startBtn.powerEft.t0.play(Laya.Handler.create(this,()=>{this.ui.myNode.startBtn.touchable=!0,jo.setPower(-1),Bo.eventMgr.event(p),Bo.common.gameMode=f.placeBall,Bo.common.placeBallCurLevel=this.level,Bo.uiMgr.Show(ge),Bo.uiMgr.Hide(Nt),Bo.uiMgr.Hide(Yt),this.hide()}))):Bo.uiMgr.Show(It)}hide(){super.hide()}}kt.uiName="UILevelProp";class wt{constructor(t,e){this.index=0,this.ui=t,this.index=e,this.ui.onClick(this,this.clickSelf),this.updateSelf(),this.ui.levelTxt.text=this.index+1+"",this.ui.challenge.levelTxt.text=this.index+1+"",this.ui.special.levelTxt.text=this.index+1+""}updateSelf(){let t=this.index+1;this.data=jo.getPlaceBallLevel(t),this.ui.starNode.c1.selectedIndex=this.data.star;let e=cfgTable.placeballData[t].type;this.data.isCur?this.ui.c1.selectedIndex=e?5:2:this.data.play?3==this.data.star?this.ui.c1.selectedIndex=0:this.ui.c1.selectedIndex=1:this.ui.c1.selectedIndex=e?4:3}clickSelf(){this.data.play&&(Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.uiMgr.Show(kt,this.index+1))}}class Nt extends A{constructor(){super()}onConstructor(){this.ui=pt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.myList=this.ui.myNode.myList,this.addUIClick(this.ui.closeNode.closeBtn,this.hide),this.levelItemArr=[];let t=Bo.cfgMgr.getMaxPlaceBall();this.myList.itemRenderer=Laya.Handler.create(this,this.levelItemRender,null,!1),this.myList.numItems=t,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}levelItemRender(t,e){let i=new wt(e,t);this.levelItemArr.push(i)}show(){super.show(),this.updateLevel(),this.scrollToPlace()}updateLevel(){let t;for(let e=0;e<this.levelItemArr.length;e++)(t=this.levelItemArr[e]).updateSelf()}scrollToPlace(){let t=Bo.cfgMgr.getMaxPlaceBall(),e=jo.getPlaceBallLevelList().length;e>=t-1&&(e=t-1),this.myList.scrollToView(e,!0,!0)}hide(){super.hide()}}Nt.uiName="UILevelDisplay";class Lt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMatching")}onConstruct(){this.n5=this.getChild("n5"),this.n49=this.getChild("n49"),this.n51=this.getChild("n51"),this.n64=this.getChild("n64"),this.n2=this.getChild("n2"),this.n53=this.getChild("n53"),this.n54=this.getChild("n54"),this.n56=this.getChild("n56"),this.n58=this.getChild("n58"),this.n59=this.getChild("n59"),this.n57=this.getChild("n57"),this.n60=this.getChild("n60"),this.n62=this.getChild("n62"),this.awardTxt=this.getChild("awardTxt"),this.n61=this.getChild("n61"),this.selfHead=this.getChild("selfHead"),this.aiHead=this.getChild("aiHead"),this.n82=this.getChild("n82"),this.n84=this.getChild("n84"),this.n83=this.getChild("n83"),this.t1=this.getTransition("t1"),this.t2=this.getTransition("t2"),this.t3=this.getTransition("t3"),this.t4=this.getTransition("t4")}}Lt.URL="ui://isxx5ak7n0xy3y2";class vt extends A{constructor(){super()}onConstructor(){this.ui=Lt.createInstance(),this.contentPane=this.ui,this.isEject=!1}show(t){super.show(),W.showBanner(!0),this.callback=t;let e=Moyu.getUserInfo();switch(this.selfPot||(this.selfPot=new Laya.Point(this.ui.selfHead.x,this.ui.selfHead.y)),this.aiPot||(this.aiPot=new Laya.Point(this.ui.aiHead.x,this.ui.aiHead.y)),this.ui.awardTxt.text=Bo.common.passAwardCoin+"",this.ui.selfHead.nameTxt.text=e.nickName,Bo.common.createHead(this.ui.selfHead.headImg,e.headIcon),this.ui.aiHead.nameTxt.text="???",this.ui.aiHead.headImg.url=Bo.common.getGameIconUrl("cstx"),this.ui.selfHead.c1.selectedIndex=0,this.ui.aiHead.c1.selectedIndex=0,this.ui.selfHead.x=this.selfPot.x,this.ui.selfHead.y=this.selfPot.y,this.ui.aiHead.x=this.aiPot.x,this.ui.aiHead.y=this.aiPot.y,Bo.common.gameMode){case f.classic:break;case f.bigMove:this.initSkillData()}this.ui.t1.play(Laya.Handler.create(this,()=>{this.ui.t2.play(Laya.Handler.create(this,()=>{switch(Bo.common.gameMode){case f.classic:this.waitingPeople();break;case f.bigMove:this.skillSelectFinish(Bo.common.curPlayerSkillType)}}))}))}initSkillData(){this.skillSelectData=[];let t=Bo.common.skillIconList,e=Bo.common.skillNameList,i=jo.getBigSkillList(),s=[b.highSpace,b.breakArmy,b.ice,b.GuanYu];for(let n=0;n<5;n++){let a={};a.skillImg=t[n],a.skillName=e[n],a.skillType=s[n],a.skillLevel=i[n],this.skillSelectData.push(a)}}getAISkillLevel(t){let e,i;return(e=(i=Bo.common.upSkillLevel?Bo.common.randomNum(-2,-1):t<=5?Bo.common.randomNum(1,3):t<=9?Bo.common.randomNum(-2,1):Bo.common.randomNum(-4,0))+t)<=1&&(e=1),e>=10&&(e=10),e}getAISkillType(){return Bo.common.randomNum(1,4)}getAISkillData(t){let e=this.skillSelectData[t].skillLevel,i=this.getAISkillLevel(e),s=this.getAISkillType()-1;return({aiLevel:i,aiType:s}={aiLevel:i,aiType:s})}skillSelectFinish(t){let e=this.getAISkillData(t);Bo.common.gameMgr.selfCurSkill=t,Bo.common.gameMgr.aiCurSkill=e.aiType,Bo.common.gameMgr.aiSkillLevelNum=e.aiLevel,this.ui.selfHead.c1.selectedIndex=1,this.ui.aiHead.c1.selectedIndex=1;let i=this.skillSelectData[t];this.ui.selfHead.skillImg.url=Bo.common.getGameIconUrl(i.skillImg);let s=jo.getSkillGuide();this.ui.selfHead.skillTxt.text=0==s?i.skillName+" 满级":i.skillName+"Lv."+i.skillLevel;let n=this.skillSelectData[e.aiType];this.ui.aiHead.skillImg.url=Bo.common.getGameIconUrl(n.skillImg),this.ui.aiHead.skillTxt.text=n.skillName+"Lv."+e.aiLevel,this.waitingPeople()}waitingPeople(){let t=Bo.common.randomNum(1e3,3e3);t+=1e3,Laya.timer.once(t,this,()=>{this.matchingSuccess()})}matchingSuccess(){let t=Bo.common.gameUI,e=t.ui.topNode.aiNameTxt.text,i=t.ui.topNode.aiHeadLoader.url;this.ui.aiHead.nameTxt.text=e,this.ui.aiHead.headImg.url=i,e=t.ui.topNode.selfNameTxt.text,i=t.ui.topNode.selfHeadLoader.url,this.ui.selfHead.nameTxt.text=e,this.ui.selfHead.headImg.url=i,this.ui.t3.play(Laya.Handler.create(this,()=>{this.callback&&this.callback(),this.ui.t4.play(Laya.Handler.create(this,()=>{this.destroySelf()}))}))}destroySelf(){this.callback=null,this.skillSelectData=null,this.selfPot=null,this.aiPot=null,this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose()),Bo.uiMgr.destroyUI(this)}}vt.uiName="UIMatching";class Ut extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIRanking")}onConstruct(){this.n26=this.getChild("n26"),this.myNode=this.getChild("myNode")}}Ut.URL="ui://isxx5ak7p7rrv4p8";class St extends A{constructor(){super(),this.showSelf=!0,this.rankType=1,this.rankList=[],this.myIndex=0,this.myStar=0}onConstructor(){this.ui=Ut.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.closeBtn,this.hide),this.addUIClick(this.ui.myNode.changeBtn,this.changeSelfNode),this.addUIClick(this.ui.myNode.starBtn,this.changeList,[1]),this.addUIClick(this.ui.myNode.levelBtn,this.changeList,[2]),this.ui.myNode.myList.setVirtual(),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.updateItemUI,null,!1)}show(){super.show(),this.myIndex=51,Moyu.getRankList({rankId:Bo.common.curRankID,type:MoyuRankType.total,page:1,pageSize:50},this,this.updateItemData),this.updateSelf(),Moyu.getUserInfo().isAuth||Moyu.initUser(this,()=>{jo.upRankData()})}updateSelfItem(){let t=Moyu.getUserInfo();this.ui.myNode.selfNode.c1.selectedIndex=this.myIndex<4?this.myIndex-1:3,this.ui.myNode.selfNode.rankTxt.text=this.myIndex>50?"未上榜":this.myIndex.toString(),this.ui.myNode.selfNode.valueTxt.text=this.myStar+"",this.ui.myNode.selfNode.nameTxt.text=Moyu.platType<11?t.nickName:"我自己",Bo.common.createHead(this.ui.myNode.selfNode.headNode.head.myIcon,t.headIcon)}updateItemData(t){if(this.myStar=Bo.common.getAllStarNum(),this.rankList.length<2){this.rankList=t;let e=Moyu.getUserInfo();for(let i=0;i<t.length;i++){if(this.rankList[i].userId==e.userId){this.rankList.splice(i,1);break}}for(let i=0;i<t.length;i++){if(this.rankList[i].rankScore<this.myStar&&this.myIndex>50){this.myIndex=i+1;let t={headIcon:e.headIcon,nickName:"我自己"},s={user:t,data:{}},n={rankScore:this.myStar.toString(),userId:e.userId,userData:JSON.stringify(s)};Moyu.platType<11&&(t.headIcon=e.headIcon,t.nickName=e.nickName),this.rankList.splice(i,0,n);break}}}this.updateSelfItem(),this.ui.myNode.myList.numItems=this.rankList.length}updateItemUI(t,e){let i=this.rankList[t],s=JSON.parse(i.userData).user;switch(e.nameTxt.text=s.nickName.toString(),e.valueTxt.text=i.rankScore,Bo.common.createHead(e.headNode.head.myIcon,s.headIcon,80),e.rankTxt.text=t+1,t){case 0:this.setImg(e,1,0,0),e.rankTxt.color="#FFC047";break;case 1:this.setImg(e,0,1,0),e.rankTxt.color="#ACACAC";break;case 2:this.setImg(e,0,0,1),e.rankTxt.color="#D09672";break;default:this.setImg(e,0,0,0),e.rankTxt.color="#496FAB"}}setImg(t,e,i,s){t.img1.visible=!!e,t.img2.visible=!!i,t.img3.visible=!!s}changeList(t){this.rankType=t,this.updateSelf()}changeSelfNode(){this.showSelf=!this.showSelf,this.updateSelf()}updateSelf(){this.ui.myNode.changeBtn.c1.selectedIndex=this.showSelf?0:1,this.ui.myNode.c2.selectedIndex=this.showSelf?0:1,this.ui.myNode.c1.selectedIndex=1==this.rankType?0:1,this.ui.myNode.levelBtn.c1.selectedIndex=1==this.rankType?1:0,this.ui.myNode.starBtn.c1.selectedIndex=1==this.rankType?0:1}}St.uiName="UIRanking";class Bt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISecretary")}onConstruct(){this.n0=this.getChild("n0"),this.myNode=this.getChild("myNode"),this.rightBtn=this.getChild("rightBtn"),this.leftBtn=this.getChild("leftBtn"),this.closeBtn=this.getChild("closeBtn"),this.t0=this.getTransition("t0")}}Bt.URL="ui://isxx5ak7s46iv4f1";class Mt extends A{constructor(){super(),this.curIndex=1}onConstructor(){this.ui=Bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.leftBtn,this.turnLeft),this.addUIClick(this.ui.rightBtn,this.turnRight),this.nodeObj={left:null,right:null,cur:null},this.nodeObj.left=this.ui.myNode.gameNode1,this.nodeObj.right=this.ui.myNode.gameNode2,this.nodeObj.cur=this.ui.myNode.gameNode3}show(){super.show(),this.ui.t0.play(),this.updateData()}addSecretarySpine(t,e){if("mishu"==e)if(this.secretarySpine1)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine1,t.displayObject);else{let e=new X("mishu",()=>{this.secretarySpine1=e,this.playWoman(this.secretarySpine1,t.displayObject)})}else if(this.secretarySpine2)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine2,t.displayObject);else{let e=new X("xiaomishu2",()=>{this.secretarySpine2=e,this.playWoman(this.secretarySpine2,t.displayObject)})}}playWoman(t,e){let i=this.ui.myNode.gameNode1.secretary.width/2,s=this.ui.myNode.gameNode1.secretary.height,n=1.5;t==this.secretarySpine2&&(n=1.2);let a={x:i,y:s,scaleX:n,scaleY:n};t.play(a,1,!0,e)}turnLeft(){this.curIndex--,this.curIndex<1&&(this.curIndex=2);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(t,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(e,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(i,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(e,2),this.nodeObj.left=i,this.nodeObj.right=t,this.nodeObj.cur=e}turnRight(){this.curIndex++,this.curIndex>2&&(this.curIndex=1);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(i,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(t,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(e,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(t,2),this.nodeObj.left=e,this.nodeObj.right=i,this.nodeObj.cur=t}updateData(){let t,e,i=cfgTable.secretaryshopData,s=this.ui.myNode._children;for(let n=0;n<s.length;n++){t=s[n],2==n?(e=i[this.curIndex],t.purchaseBtn.touchable=!0):(t.purchaseBtn.touchable=!1,e=1==this.curIndex?i[2]:i[1]),t.heightTxt.text=e.height,t.foodTxt.text=e.food,t.historyTxt.text=e.history,t.nameImg.url=Bo.common.getGameIconUrl(e.nameImg),this.addSecretarySpine(t.secretary,e.spine);let a=e.id-1,o=jo.getSecretary(a),h=jo.getCurSecretary();o?t.purchaseBtn.c1.selectedIndex=h==a?1:2:(t.purchaseBtn.c1.selectedIndex=0,t.purchaseBtn.diamondTxt.text=e.price+""),t.purchaseBtn.offClick(this,this.clickSecretary),t.purchaseBtn.onClick(this,this.clickSecretary,[o,h,a,e.price])}}clickSecretary(t,e,i,s){if(Bo.soundMgr.playSound(Bo.common.btnClickStr),t)e!=i&&(console.log(),jo.setCurSecretary(i),this.updateData());else{let t=s;jo.diamondEnough(t)?(jo.setDiamond(-t),jo.setSecretary(i,1),jo.setCurSecretary(i),this.updateData()):Bo.uiMgr.Show(me,1)}}closeSelf(){this.hide()}}Mt.uiName="UISecretary";class Tt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIShop")}onConstruct(){this.n48=this.getChild("n48"),this.n0=this.getChild("n0"),this.secretary=this.getChild("secretary"),this.talkNode=this.getChild("talkNode"),this.closeNode=this.getChild("closeNode"),this.moneyNode=this.getChild("moneyNode"),this.myNode=this.getChild("myNode")}}Tt.URL="ui://isxx5ak7g1giv4ep";class Ot{constructor(t,e){this.index=0,this.uiIndex=0,this.ui=t,this.index=e,this.initData()}initData(){this.ui.purchaseBtn.onClick(this,this.buyBallRod);let t=cfgTable.ballrodData[this.index+1];this.ui.nameTxt.text=t.name,this.ui.rodImg.url=Bo.common.getGameIconUrl(t.img),this.ui.levelNode.c1.selectedIndex=t.quality,this.ui.purchaseBtn.diamondTxt.text=t.price+"",t.spine&&(this.mySpine=new X(t.spine,()=>{let t={x:150,y:70,scaleX:1,scaleY:1};this.mySpine.play(t,0,!0,this.ui.eftRod.displayObject)}))}updateSelf(){let t=jo.getBallRod(this.index);null==t&&(t=1);let e=jo.getCurBallRod();t?e==this.index?this.ui.purchaseBtn.c1.selectedIndex=0:this.ui.purchaseBtn.c1.selectedIndex=1:this.ui.purchaseBtn.c1.selectedIndex=2}buyBallRod(){switch(Bo.soundMgr.playSound(Bo.common.btnClickStr),this.ui.purchaseBtn.c1.selectedIndex){case 0:break;case 1:jo.setCurBallRod(this.index),Bo.uiMgr.getUI(Rt).updateBallRod();break;case 2:let t=cfgTable.ballrodData[this.index+1].price;if(jo.diamondEnough(t)){jo.setDiamond(-t),jo.setBallRod(this.index,1),jo.setCurBallRod(this.index),Bo.uiMgr.getUI(Rt).updateBallRod()}else Bo.uiMgr.Show(me,1)}}}class Rt extends A{constructor(){super(),this.itemNums=0}onConstructor(){this.ui=Tt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui,this.interuptSecretary),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.renderBallRod,null,!1),this.ballRodArr=[],this.itemNums=Object.keys(cfgTable.ballrodData).length,this.ui.myNode.myList.numItems=this.itemNums,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.updateBallRod()}updateBallRod(){for(let t=0;t<this.ballRodArr.length;t++)this.ballRodArr[t].updateSelf()}renderBallRod(t,e){let i=this.getIndexBySort(t+1)-1,s=new Ot(e,i);this.ballRodArr.push(s)}getIndexBySort(t){let e=cfgTable.ballrodData;for(const i in e)if(e[i].sort==t)return parseInt(i)}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=Bo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=Bo.common.randomNum(4,7);Bo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}closeSelf(){this.hide()}}Rt.uiName="UIShop";class jt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISign")}onConstruct(){this.n6=this.getChild("n6"),this.closeNode=this.getChild("closeNode"),this.myNode=this.getChild("myNode"),this.moneyNode=this.getChild("moneyNode"),this.secretary=this.getChild("secretary"),this.talkNode=this.getChild("talkNode"),this.tripleBtn=this.getChild("tripleBtn"),this.normalBtn=this.getChild("normalBtn"),this.tipsNode=this.getChild("tipsNode"),this.againBtn=this.getChild("againBtn"),this.t0=this.getTransition("t0")}}jt.URL="ui://isxx5ak7bf9jv4jj";class Pt{constructor(t){this.ui=t}updateSelf(t,e,i){let s=cfgTable.signData[t+1];this.ui.titleTxt.text=s.title;let n=s.award[0].split("-"),a=s.award[1].split("-"),o=parseInt(n[1]),h=parseInt(a[1]);this.ui.numTxt1.text=o+"",this.ui.numTxt2.text=h+"",this.ui.myIcon1.url=Bo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon2.url=Bo.common.getGameIconUrl(s.icon[1]),Bo.common.signAwardContainsRod([s.award[0]])?this.ui.numTxt1.visible=!1:this.ui.numTxt1.visible=!0,Bo.common.signAwardContainsRod([s.award[1]])?this.ui.numTxt2.visible=!1:this.ui.numTxt2.visible=!0,this.ui.c1.selectedIndex=t<i?1:t==i?2:0}}class Dt{constructor(t){this.ui=t}updateSelf(t,e,i){let s=cfgTable.signData[t+1];this.ui.titleTxt.text=s.title;let n=s.award[0].split("-"),a=parseInt(n[0]),o=parseInt(n[1]);this.ui.numTxt.text=o+"",a>2?(this.ui.myIcon.url=Bo.common.getComponentUrl("s"+s.icon[0]),this.ui.myIcon.rotation=0):(this.ui.myIcon.url=Bo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon.rotation=0),Bo.common.signAwardContainsRod(s.award)?this.ui.numTxt.visible=!1:this.ui.numTxt.visible=!0,this.ui.c1.selectedIndex=t<i?1:t==i?2:0}}class Et extends A{constructor(){super(),this.curDayIndex=0,this.starX=0}onConstructor(){this.ui=jt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.initSignItem(),this.addUIClick(this.ui.normalBtn,this.normalGetAward),this.addUIClick(this.ui.againBtn,this.againGetAward)}show(){super.show(),this.ui.t0.play(),this.playSecretaryIdle(),this.updateSign()}initSignItem(){this.signArr=[];for(let t=0;t<6;t++){let e=new Dt(this.ui.myNode["day"+(t+1)]);this.signArr.push(e)}this.signMax=new Pt(this.ui.myNode.day7),Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}updateSign(){let t=Bo.common.judgeSameDay();if(this.curDayIndex=jo.getSignData(),(!this.curDayIndex||this.curDayIndex>=7&&!t)&&(this.curDayIndex=0),t){this.ui.normalBtn.visible=!1;let t=jo.getExtraSign(),e=!1,i=this.curDayIndex;0==i&&(i=7);let s=cfgTable.signData[i].award[0].split("-")[0];"1"!=s&&"2"!=s||(e=!0);let n=0==t&&e;this.ui.againBtn.visible=n,this.ui.tipsNode.visible=!n}else this.ui.normalBtn.visible=!0,this.ui.tipsNode.visible=!1,this.ui.againBtn.visible=!1;for(let e=0;e<this.signArr.length;e++)this.signArr[e].updateSelf(e,t,this.curDayIndex);this.signMax.updateSelf(6,t,this.curDayIndex)}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}closeSelf(){this.hide()}normalGetAward(){if(!Bo.common.judgeSameDay()){let t,e,i,s=cfgTable.signData[this.curDayIndex+1].award,n=[];for(let a=0;a<s.length;a++){t=s[a].split("-"),e=parseInt(t[0]),i=parseInt(t[1]);let o=new U;o.num=i,o.type=e,n.push(o)}Bo.common.getAward(n,t=>{this.curDayIndex++,this.curDayIndex>7&&(this.curDayIndex=0),jo.setSignData(this.curDayIndex),jo.setSignTime((new Date).getTime()),t&&(jo.setExtraSign(1),Moyu.sendDataEvent("signIn1")),this.updateSign()})}}againGetAward(){Moyu.sendDataEvent("signIn2"),Moyu.showVideoAd(()=>{let t=this.curDayIndex;0==t&&(t=7);let e,i,s,n=cfgTable.signData[t].award;for(let t=0;t<n.length;t++)e=n[t].split("-"),i=parseInt(e[0]),s=3*parseInt(e[1]),Bo.common.playObjFlyAnim(s,i);jo.setExtraSign(1),this.updateSign()},N.againSign)}}Et.uiName="UISign";class At extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISkill")}onConstruct(){this.n48=this.getChild("n48"),this.n0=this.getChild("n0"),this.secretary=this.getChild("secretary"),this.talkNode=this.getChild("talkNode"),this.closeNode=this.getChild("closeNode"),this.moneyNode=this.getChild("moneyNode"),this.skillNode=this.getChild("skillNode"),this.guideNode=this.getChild("guideNode")}}At.URL="ui://isxx5ak7j69a40z";class Gt{constructor(t,e,i){this.starX=0,this.starY=0,this.index=0,this.ui=t,this.data=e,this.index=i,this.initSelf()}initSelf(){this.ui.normalBtn.onClick(this,this.clickAddLevel),this.ui.nameTxt.text=this.data.name,this.ui.describeTxt.text=this.data.describe,this.ui.skillImg.url=Bo.common.getGameIconUrl(this.data.icon),this.ui.startBtn.onClick(this,this.startGame),this.updateSelf()}updateSelf(){this.checkTry();let t=jo.getBigSkillByIndex(this.index);this.ui.c1.selectedIndex=t>=Bo.common.maxSkillLevel?1:0}checkTry(){let t=this.index,e=jo.getBigSkillByIndex(t);null==e&&(jo.setBigSkill(t,1,!1),e=1),this.ui.levelTxt.text="LV."+e,this.index==jo.gameData.trySkill&&Laya.timer.currTimer<jo.gameData.tryTime?this.ui.tryNode.visible=!0:this.ui.tryNode.visible=!1}clickAddLevel(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Moyu.sendDataEvent("UpSkill",{id:this.data.index}),Moyu.showVideoAd(()=>{jo.setBigSkill(this.data.index,1),this.updateSelf(),Bo.common.upSkillLevel=!0},N.upSkill)}startGame(){Bo.soundMgr.playSound(Bo.common.btnClickStr);let t=Bo.common.bigMoveNeedCoin;Bo.common.passAwardCoin=2e3;let e=jo.getSkillGuide();Bo.common.temSelfLevel=0,0==e&&(t=0,Bo.common.temSelfLevel=100),jo.coinEnough(t)?(jo.setCoin(-t),Bo.common.curPlayerSkillType=this.index,0==e&&(Bo.common.curPlayerSkillType=0),Bo.uiMgr.Show(ge),Bo.uiMgr.Hide(Yt),Bo.uiMgr.Show(vt,()=>{Bo.common.gameUI.ui.alpha=1,Bo.common.gameUI.startGame(),Bo.uiMgr.Hide(Ht)})):(Bo.uiMgr.Show(me,0),Moyu.sendDataEvent("AddCoinVideo"))}}class Ht extends A{constructor(){super(),this.skillData=[]}onConstructor(){this.ui=At.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.initSkillData(),this.addUIClick(this.ui.closeNode.closeBtn,this.returnUIMain),this.ui.skillNode.skillList.itemRenderer=Laya.Handler.create(this,this.updateSkillItem,null,!1),this.displayList=[],this.ui.skillNode.skillList.numItems=4,this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.guideNode.guideBtn,this.enterGuideLevel),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.moneyNode.ui.c1.selectedIndex=1,Laya.timer.clearAll(this),Bo.soundMgr.playSound("s_start"),Bo.common.showGirlTalkPop(13,this.ui.talkNode,this.ui.talkNode.womanTxt);let t=jo.getSkillGuide();this.ui.guideNode.visible=0==t;let e=this.getSkillItemByUIIndex(0);e.ui.c1.selectedIndex=0==t?1:0,this.ui.guideNode.guideBtn.visible=0==t;for(let t=0;t<this.displayList.length;t++)this.displayList[t].checkTry()}getSkillItemByUIIndex(t){for(let e=0;e<this.displayList.length;e++)if(this.displayList[e].index==t)return this.displayList[e]}enterGuideLevel(){this.getSkillItemByUIIndex(0).startGame(),jo.getNewUser()&&Moyu.sendDataEvent("gameStart1")}initSkillData(){this.skillData=[];let t,e=Bo.common.skillNameList,i=Bo.common.skillIconList,s=["跳杆击球后,球高高跃起,砸在桌面上,直接打进额外1颗球","普通击球后,球杆向随机方向—扫,将杆子范围内1颗可击打球扫入球袋","我方击球后,在场地上将随机1颗球冻结,敌方无法击打冰冻球,且其他球碰到冰冻球会弹开","击球后在球桌上斩出一刀,并击飞斩中的球。(球不会飞出球桌)"];for(let n=0;n<e.length;n++)(t={}).name=e[n],t.icon=i[n],t.describe=s[n],t.index=n,this.skillData.push(t)}updateSkillItem(t,e){if(null==this.displayList[t]){let i;switch(t){case 0:i=1;break;case 1:i=0;break;case 2:i=2;break;case 3:i=3}let s=new Gt(e,this.skillData[i],i);this.displayList.push(s)}}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}returnUIMain(){this.hide(),Bo.common.stopGirlPop(this.ui.talkNode),Bo.uiMgr.Show(Yt)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=Bo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=Bo.common.randomNum(4,7);Bo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}}Ht.uiName="UISkill";class Ft extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMsg")}onConstruct(){this.tipsNode=this.getChild("tipsNode")}}Ft.URL="ui://isxx5ak7hkrz3qt";class _t extends A{constructor(){super()}onConstructor(){this.ui=Ft.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.isMuti=!0}show(t,e){super.show(),this.ui.tipsNode.msgTxt.text=t,this.ui.alpha=1,Laya.Tween.to(this.ui,{alpha:0},500,null,Laya.Handler.create(this,()=>{this.hide(),e&&e()}),1e3)}}_t.uiName="UIMsg";class Vt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIModeSelection")}onConstruct(){this.n19=this.getChild("n19"),this.closeBtn=this.getChild("closeBtn"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}Vt.URL="ui://isxx5ak7rz5r458";class Wt extends A{constructor(){super()}onConstructor(){this.ui=Vt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.type1,this.enterGame,[1]),this.addUIClick(this.ui.myNode.type2,this.enterGame,[2]),this.addUIClick(this.ui.myNode.type3,this.enterGame,[3]),this.addUIClick(this.ui.closeBtn,this.hide),this.peopleArr=[650,6900,3800],this.peopleOffest=[50,500,200],this.updateSelf()}show(t){super.show(),this.ui.t0.play(),this.callback=t}updateSelf(){let t=cfgTable.modeselectData;for(let e=1;e<=3;e++){let i=this.ui.myNode["type"+e];i.need.text=t[e].need,i.tipsTxt.text=`最低${t[e].need}可入场`,i.peopleTxt.text=this.getRandPeople(e-1)}}enterGame(t){Bo.common.classicRoomType=t;let e=cfgTable.modeselectData[t],i=e.need;Bo.common.passAwardCoin=e.award,jo.coinEnough(i)?(jo.setCoin(-i),this.ui.myNode["type"+t].t0.play(),Laya.timer.once(200,this,()=>{this.callback&&this.callback()})):(Moyu.sendDataEvent("AddCoinVideo"),Bo.uiMgr.Show(me,0))}getRandPeople(t){let e=this.peopleOffest[t];return this.peopleArr[t]+Bo.common.randomNum(-e,e)}}Wt.uiName="UIModeSelection";class Yt extends A{constructor(){super(),this.firstEnter=!0}onConstructor(){this.ui=dt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addEvent(),this.addClickSpine(),this.settingNode=new yt(this.ui.settingNode),this.moneyNode=new ye(this.ui.moneyNode),Bo.eventMgr.on(u,this,this.beginGame),Bo.eventMgr.on(g,this,this.onGetUserInfo),Bo.eventMgr.on(m,this,this.changeSecretary);let t=jo.getCurSecretary();this.changeSecretary(t),this.ui.talkNode.visible=!1;let e=jo.getSkillGuide();Bo.common.isNewDay&&1==e&&(Bo.common.isNewDay=!1,Bo.soundMgr.playSound("s_main01"),Bo.common.showGirlTalkPop(1,this.ui.talkNode,this.ui.talkNode.womanTxt),console.log("播放小秘书每天语音")),this.onGetUserInfo(),this.ui.n83.visible=!1,Moyu.setShareInfo("万宁台球",["台球","万宁","桌球"],"2300002254")}changeSecretary(t){let e=cfgTable.secretaryshopData[t+1].spine;Bo.common.secretary&&Bo.common.secretary.dispose(),this.addSecretarySpine(e)}addSecretarySpine(t){let e=new X(t,()=>{this.playSecretaryIdle()});Bo.common.secretary=e}addClickSpine(){let t=new X("dianji",()=>{Laya.stage.on(Laya.Event.CLICK,this,e=>{let i=Laya.stage,s={x:e.stageX,y:e.stageY,scaleX:.8,scaleY:.8};t.play(s,0,!1,i,t=>{t.destroy(!0)})})})}addEvent(){this.addUIClick(this.ui.classicBtn,this.startGame,[f.classic]),this.addUIClick(this.ui.bigMoveBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.globalBtn,this.startGlobal),this.addUIClick(this.ui.weeklyBtn,this.startWeekly),this.addUIClick(this.ui.placeBallBtn,this.startPlaceBall),this.addUIClick(this.ui.headNode,this.onGetUserInfo,[!0]),this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.rightBtn,this.ensureSecretary),this.addUIClick(this.ui.guideBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.secretaryBtn,this.openSecretaryView),this.addUIClick(this.ui.shopBtn,this.openShopView),this.addUIClick(this.ui.signBtn,this.openSignView),this.addUIClick(this.ui.drawBtn,this.openDrawView),this.addUIClick(this.ui.rankBtn,this.openRanking)}show(t){if(super.show(),this.moneyNode.ui.c1.selectedIndex=1,this.playSecretaryIdle(),Bo.soundMgr.playMusic("caromhall01"),Laya.timer.clearAll(this),this.playSecretaryRandomSound(),t&&setTimeout(()=>{let t=Math.random()<=.5?"s_main02":"s_main03",e=-1;e="s_main02"==t?2:3,Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),Bo.soundMgr.playSound(t)},300),this.showGuide(),this.ui.guideBtn.x=this.ui.liucheng2.myMask.x,this.ui.guideBtn.y=this.ui.liucheng2.myMask.y,1==jo.getSkillGuide()){let t=Bo.common.randomNum(300,800);this.firstEnter&&(this.firstEnter=!1,t+=900),Laya.timer.once(t,this,()=>{Bo.common.autoPopUIView()})}}checkActive(t){}showGuide(){let t=jo.getSkillGuide();this.ui.guideBtn.visible=0==t,this.ui.enterGuide.visible=!1,this.ui.secretaryGuide.visible=0==t,0==t&&(Bo.soundMgr.playSound("s_guide"),Bo.common.showGirlTalkPop(16,this.ui.talkNode,this.ui.talkNode.womanTxt))}ensureSecretary(){this.ui.secretaryGuide.visible=!1,this.ui.enterGuide.visible=!0,this.ui.wordsNode.t0.play(),jo.getNewUser()&&Moyu.sendDataEvent("gameReady")}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}startGame(t){switch(Bo.common.gameMode=t,Moyu.sendDataEvent("PlayGame",{type:t}),Bo.common.gameMode){case f.classic:0==jo.getChallengeTimes()?Bo.uiMgr.Show(ct):this.beginGame();break;case f.bigMove:this.beginGame(),jo.getNewUser()&&Moyu.sendDataEvent("gameStart0")}}beginGame(t=!1){Bo.common.gameMode==f.classic?t?this.enterClassic():Bo.uiMgr.Show(Wt,()=>{this.enterClassic()}):Bo.common.gameMode==f.bigMove&&(this.ui.enterGuide.visible=!1,Bo.uiMgr.Show(Ht))}enterClassic(){Bo.uiMgr.Show(ge),Bo.uiMgr.Show(vt,()=>{this.isHide||this.hide(),Bo.common.gameUI.ui.alpha=1,Bo.common.gameUI.startGame(),Bo.uiMgr.Hide(Xt)})}startGlobal(){Bo.uiMgr.Show(_t,"敬请期待~")}startWeekly(){Bo.uiMgr.Show(_t,"敬请期待~")}startPlaceBall(){Bo.uiMgr.Show(Nt)}hide(){super.hide(),Bo.common.stopGirlPop(this.ui.talkNode)}onGetUserInfo(t=!1){if(Moyu.isWx){let t=Moyu.getSystemInfo();t&&Moyu.createWXUserBtn(0,0,t.width,t.height,"res/wxuser.png",this.freshUser)}else Moyu.initUser(this,this.freshUser,t);if(!Moyu.hasUserInfo){Moyu.getUserInfo().headIcon="res/ty_touxiang.png"}this.freshUser()}freshUser(){let t=Moyu.getUserInfo();t.isAuth?jo.upRankData():t.headIcon="res/ty_touxiang.png",this.ui.headNode.nameTxt.text=Bo.tools.reviseString(t.nickName,16),Bo.common.createHead(this.ui.headNode.headRoot.headImg,t.headIcon)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=Bo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=Bo.common.randomNum(4,7);Bo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}openSecretaryView(){Bo.uiMgr.Show(Mt),Moyu.sendDataEvent("secretary")}openShopView(){Bo.uiMgr.Show(Rt)}openSignView(){Bo.uiMgr.Show(Et)}openDrawView(){Bo.uiMgr.Show(pe)}openRanking(){Bo.uiMgr.Show(St),Moyu.sendDataEvent("rankingList")}}Yt.uiName="UIMain";class Xt extends A{constructor(){super(),this.success=!1,this.awardCoinNum=1e3,this.awardDiamondNum=10}onConstructor(){this.ui=ot.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.leftBtn,this.clickLeftBtn),this.addUIClick(this.ui.closeNode.closeBtn,this.returnHome),this.addUIClick(this.ui.rightBtn,this.clickRightBtn),this.moneyNode=new ye(this.ui.moneyNode),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}updateType(){switch(Bo.common.gameMode){case f.classic:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,this.success||Laya.timer.once(500,this,()=>{Bo.uiMgr.Show(lt)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.bigMove:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,Bo.common.gameMode==f.bigMove&&(this.success?(jo.setSkillSuccessTimes(1,!0),jo.setSkillAccTimes(1)):jo.setSkillSuccessTimes(0,!1)),this.success||Laya.timer.once(500,this,()=>{Bo.uiMgr.Show(lt)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.placeBall:this.ui.coinNode.visible=!1,this.success?3==Bo.common.placeBallStarNum?this.ui.c1.selectedIndex=2:this.ui.c1.selectedIndex=3:this.ui.c1.selectedIndex=4;let t=cfgTable.placeballData[Bo.common.placeBallCurLevel];t.type==w.challenge&&(this.ui.c1.selectedIndex=2),this.ui.conditionNode.conditionTxt.text=0==t.type?"打进场上所有球":`打进${t.ball}颗球`,this.updatePlaceBallBtn(),this.updatePlaceBallStarNum(),this.updatePlaceBallAwardState(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange(),jo.upRankData()}}updatePlaceBallBtn(){this.ui.leftBtn.c1.selectedIndex=5,this.success?this.ui.rightBtn.c1.selectedIndex=14:3==Bo.common.placeBallStarNum?this.ui.rightBtn.c1.selectedIndex=14:this.ui.rightBtn.c1.selectedIndex=1}updatePlaceBallStarNum(){let t=Bo.common.placeBallStarNum;this.ui.starNumNode.c1.selectedIndex=0==t?3:t-1}updatePlaceBallAwardState(){let t=Bo.common.placeBallCurLevel,e=Bo.common.placeBallStarNum,i=jo.getPlaceBallLevel(t).getAward,s=cfgTable.placeballData[t].award,n=cfgTable.placeballData[t];this.awardDiamondNum=s[1],this.awardCoinNum=s[0],n.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*Bo.common.gameMgr.finishBalls),this.ui.awardNode.diamondNode.visible=this.awardDiamondNum>0,this.ui.awardNode.coinNode.visible=this.awardCoinNum>0,n.type==w.challenge&&(this.ui.awardNode.coinNode.visible=!0),this.awardCoinNum>0&&this.awardDiamondNum>0?(this.ui.awardNode.diamondNode.x=265,this.ui.awardNode.coinNode.x=354):(this.ui.awardNode.diamondNode.x=291,this.ui.awardNode.coinNode.x=291),this.ui.awardNode.diamondNode.numTxt.text=this.awardDiamondNum+"",this.ui.awardNode.coinNode.numTxt.text=this.awardCoinNum+"",0==this.awardCoinNum&&(this.ui.awardNode.coinNode.numTxt.text=""),i?(this.ui.isGetAward.visible=!0,this.ui.awardNode.diamondNode.c1.selectedIndex=2,this.ui.awardNode.coinNode.c1.selectedIndex=2):(this.ui.isGetAward.visible=!1,3==e&&n.type==w.challenge?(this.ui.awardNode.diamondNode.c1.selectedIndex=0,this.ui.awardNode.coinNode.c1.selectedIndex=0):(this.ui.awardNode.diamondNode.c1.selectedIndex=1,this.ui.awardNode.coinNode.c1.selectedIndex=1))}show(t){super.show(),Bo.eventMgr.event(r),this.success=t,Laya.timer.clearAll(this),this.playSecretaryAni(),Moyu.sendDataEvent("GameEnd",{id:Bo.common.gameMode,res:this.success?1:2});let e=(new Date).getTime()-Bo.common.gameStartTime;e=Math.floor(e/1e3),Moyu.sendDataEvent("gameOver",{isWin:this.success?1:0,timeConsuming:e,gameType:Bo.common.gameMode}),this.updateType(),Laya.timer.once(200,this,()=>{this.addAward(()=>{this.updateType(),Laya.timer.once(500,this,()=>{this.showChallengeLevel()})})}),this.success?(Bo.soundMgr.playSound("slots_roll01"),Bo.soundMgr.playSound("s_win"),Bo.common.showGirlTalkPop(8,this.ui.talkNode,this.ui.talkNode.womanTxt)):(Bo.soundMgr.playSound("matchwin01"),Bo.soundMgr.playSound("s_lose"),Bo.common.showGirlTalkPop(9,this.ui.talkNode,this.ui.talkNode.womanTxt)),Moyu.isLegal||W.showBanner(!0);let i=jo.getChallengeTimes();Bo.common.gameMode==f.classic&&i>=1&&i<=3&&jo.setChallengeTimes(1),this.success&&Bo.common.gameMode==f.classic&&jo.setClassicTimes()}showChallengeLevel(){if(0!=jo.getChallengeTimes())return;let t=jo.getSkillAccTimes(),e=jo.getPlaceBallLevelList().length;(t>=3||e>=5)&&(Bo.uiMgr.Show(ct),this.hide())}addAward(t){if(this.success)switch(Bo.common.gameMode){case f.classic:this.awardCoinNum=Bo.common.passAwardCoin,this.awardDiamondNum=0,Bo.common.playObjFlyAnim(this.awardCoinNum,L.coin);break;case f.bigMove:this.awardCoinNum=Bo.common.passAwardCoin,this.awardDiamondNum=0,Bo.common.playObjFlyAnim(this.awardCoinNum,L.coin),t&&t();break;case f.placeBall:let e=Bo.common.placeBallCurLevel;if(Moyu.sendDataEvent("PlaceBall",{id:e,res:this.success?1:2}),3!=Bo.common.placeBallStarNum)return void(t&&t());if(jo.getPlaceBallLevel(e).getAward)return void(t&&t());let i=cfgTable.placeballData[e],s=cfgTable.placeballData[e].award;this.awardCoinNum=s[0],this.awardDiamondNum=s[1],i.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*Bo.common.gameMgr.finishBalls);let n,a=new U(L.coin,this.awardCoinNum);this.awardDiamondNum>0?(n=new U(L.diamond,this.awardDiamondNum),Bo.common.getAward([n,a],t)):Bo.common.getAward([a],t),i.type==w.normal&&jo.setPlaceBallAward(e)}else t&&t()}playSecretaryAni(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};if(this.success){let e=Math.random()<=.5?2:3;Bo.common.secretary.play(n,e,!1,t,()=>{Bo.common.secretary.play(n,1,!0,t)})}else Bo.common.secretary.play(n,0,!0,t)}restartGame(){switch(Bo.common.gameMode){case f.classic:Bo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:Bo.common.gameMode});break;case f.bigMove:this.hide(),Bo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:Bo.common.gameMode})}}hide(){super.hide(),Bo.common.stopGirlPop(this.ui.talkNode),W.showBanner(!1)}returnHome(){this.hide();let t=!this.success;Bo.uiMgr.Show(Yt,t)}clickLeftBtn(){switch(Bo.common.gameMode){case f.classic:case f.bigMove:this.returnHome();break;case f.placeBall:let t=Bo.common.placeBallCurLevel;this.powerStartPlaceBallLevel(t,this.ui.leftBtn),Moyu.sendDataEvent("GameAgain",{mode:Bo.common.gameMode})}}powerStartPlaceBallLevel(t,e){jo.powerEnough()?(e.touchable=!1,e.powerEft.t0.play(Laya.Handler.create(this,()=>{e.touchable=!0,jo.setPower(-1),Bo.eventMgr.event(p),this.startPlaceBallLevel(t)}))):Bo.uiMgr.Show(It,0)}clickRightBtn(){switch(Bo.common.gameMode){case f.classic:case f.bigMove:this.restartGame();break;case f.placeBall:let t=Bo.common.placeBallCurLevel,e=jo.getPlaceBallLevel(t);e.play&&!e.isCur?this.powerStartPlaceBallLevel(t+1,this.ui.rightBtn):(Moyu.sendDataEvent("placeBallNextLevel"),Moyu.showVideoAd(()=>{jo.setPlaceBallLevel(t,1),this.startPlaceBallLevel(t+1)},Bo.define.EAdType.placeBallNextLevel))}}startPlaceBallLevel(t){Bo.common.gameMode=f.placeBall,Bo.common.placeBallCurLevel=t,Bo.uiMgr.Show(ge),this.hide()}}Xt.uiName="UIGameEnd";class zt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIRepentProp")}onConstruct(){this.c1=this.getController("c1"),this.n11=this.getChild("n11"),this.regretNode=this.getChild("regretNode"),this.helpLineNode=this.getChild("helpLineNode"),this.t0=this.getTransition("t0")}}zt.URL="ui://isxx5ak7trk948v";class Kt extends A{constructor(){super(),this.viewType=0,this.regretType=0}onConstructor(){this.ui=zt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.regretNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.regretNode.videoBtn,this.videoRegret),this.addUIClick(this.ui.helpLineNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.helpLineNode.videoBtn,this.videoAddHelpLine)}show(t,e,i){if(W.showInsert(!0),this.viewType=t,this.regretType=e,this.callback=i,super.show(),this.ui.t0.play(),this.ui.c1.selectedIndex=this.viewType,this.ui.regretNode.tipsTxt.text=0==this.regretType?"未打进目标球":"白球进洞",0==this.viewType){let t=jo.getGuideHelpLine();this.ui.helpLineNode.c1.selectedIndex=0==t?1:0,this.ui.helpLineNode.videoBtn.c1.selectedIndex=0==t?1:0}Bo.common.gameMgr.gamePause=!0}hideSelf(){Bo.common.gameMgr.gamePause=!1,this.callback&&this.callback(!1),this.hide()}videoRegret(){Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.regretBall)}videoAddHelpLine(){0==jo.getGuideHelpLine()?(this.callback&&this.callback(!0),this.hideSelf(),jo.setGuideHelpLine(),Bo.common.gameUI.ui.guideNode.visible=!1):Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.longHelpLine)}}Kt.uiName="UIRepentProp";class qt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIVideoShare")}onConstruct(){this.n10=this.getChild("n10"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}qt.URL="ui://isxx5ak7hkrz3tj";class Zt extends A{constructor(){super(),this.success=!1,this.awardNum=0,this.isShared=!0}onConstructor(){this.ui=qt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.closeBtn,this.hideSelf),this.addUIClick(this.ui.myNode.shareBtn,this.videoShare),this.addUIClick(this.ui.myNode.share2Btn,this.shareGame),this.addUIClick(this.ui.myNode.tipsNode.shareNode,this.checkForceShare)}show(t){super.show(),this.ui.myNode.screenNode.screenImg.displayObject.texture=Bo.common.screenImg,this.ui.myNode.screenNode.screenImg.displayObject.scaleY=-1,this.ui.myNode.screenNode.screenImg.displayObject.y=this.ui.myNode.screenNode.screenImg.y+.5*this.ui.myNode.screenNode.screenImg.height,this.success=t;let e=Bo.common.randomNum(600,1500);Moyu.showInsertAd(e,6e4),t&&Bo.soundMgr.playSound("applause"),this.ui.t0.play(),this.checkShareState();let i=jo.getDailyVideoShareTimes();this.awardNum=0==i?2e3:200,this.ui.myNode.awardNode.coinTxt.text="x"+this.awardNum}checkShareState(){0==W.forceShare?(this.ui.myNode.closeBtn.visible=!0,this.ui.myNode.tipsNode.visible=!1,this.ui.myNode.closeBtn.x=90,this.ui.myNode.shareBtn.x=342):1==W.forceShare&&(this.ui.myNode.closeBtn.visible=!1,this.ui.myNode.tipsNode.visible=!0,this.ui.myNode.shareBtn.x=218,this.isShared=!0,this.ui.myNode.tipsNode.shareNode.c1.selectedIndex=this.isShared?0:1)}checkForceShare(){this.isShared=!this.isShared,this.ui.myNode.tipsNode.shareNode.c1.selectedIndex=this.isShared?0:1}videoShare(){1==W.forceShare?this.isShared?this.shareGame():this.hideSelf():this.shareGame()}shareGame(){Moyu.sendDataEvent("VideoShare"),Moyu.canShare()>100?Moyu.shareGame(t=>{t&&(jo.setDailyVideoShareTimes(1),jo.setCoin(this.awardNum)),this.hideSelf()},this):(Bo.uiMgr.Show(_t,"录屏时间不足,分享失败"),this.hideSelf())}hideSelf(){this.hide(),Bo.uiMgr.Show(Xt,this.success),Bo.common.screenImg&&!Bo.common.screenImg.destroyed&&(Bo.common.screenImg.destroy(),Bo.common.screenImg=null)}}Zt.uiName="UIVideoShare";class $t extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITips")}onConstruct(){this.n0=this.getChild("n0"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}$t.URL="ui://isxx5ak7mnrs42z";class Jt extends A{constructor(){super(),this.type=0}onConstructor(){this.ui=$t.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.clickLeftBtn),this.addUIClick(this.ui.myNode.sureBtn,this.clickRightBtn)}show(t,e,i){switch(super.show(),this.ui.t0.play(),this.ui.myNode.tipsTxt.text=t,this.ui.myNode.womanTxt.text=e,W.showInsert(!0),this.ui.myNode.c1.selectedIndex=i,this.type=i,this.type){case v.exitGame:Bo.common.gameMgr.gamePause=!0;break;case v.foul:Laya.timer.once(200,this,()=>{Bo.common.gameMgr.gamePause=!0})}}clickLeftBtn(){switch(this.hide(),Bo.common.gameMgr.gamePause=!1,this.type){case v.exitGame:case v.foul:}}clickRightBtn(){switch(this.hide(),this.type){case v.exitGame:Bo.eventMgr.event(r),Bo.uiMgr.Show(Yt),Moyu.recordEnd(this,null),Bo.common.longHelpLine=!1;break;case v.foul:Bo.common.gameMgr.gamePause=!1,Laya.timer.clearAll(this)}}}Jt.uiName="UITips";class Qt{constructor(){this.selfCamp="",this.selfFoulNum=0,this.selfBallArr=[],this.selfTimer=0,this.selfScore=0,this.aiCamp="",this.aiFoulNum=0,this.aiBallArr=[],this.aiTimer=0,this.aiScore=0,this.aiSkillLevelNum=1,this.targertScore=0,this.setTime=30,this.selfTurnRate=.5,this.accTime=0,this.curFoul="",this.maxFoulTimes=3,this.isFirstInGame=!0,this.firstColliObj=null,this.inHoleBalls=[],this.blackNum=8,this.success=!1,this.holePosList=[],this.posObj={},this._selfTurn=!1,this.lastRootBallPos=new Laya.Vector2(311,430),this.ensureBallType=!1,this.isOpenBall=!0,this.finishOneShoot=!0,this.isEnd=!1,this.isChangeTurn=!1,this.isInterrupt=!1,this.aiPlayedBreakArmy=!1,this.isTouchedBall=!1,this.finishBalls=0,this.needBalls=0,this.allBallNum=0,this.placeBallPosData={},this.curHP=0,this.showLongView=!1,this.firstShoot=!0,this._gamePause=!1,this.trunCount=0,this.isBlackInHole=!1,this.isEnter=!0,Bo.eventMgr.offAll(n),Bo.eventMgr.on(n,this,this.gameRun),Bo.eventMgr.off(h,this,this.ballShoot),Bo.eventMgr.on(h,this,this.ballShoot),Bo.eventMgr.off(l,this,this.ensureCamp),Bo.eventMgr.on(l,this,this.ensureCamp),Bo.eventMgr.off(r,this,this.resetGame),Bo.eventMgr.on(r,this,this.resetGame)}get gamePause(){return this._gamePause}set gamePause(t){t?Laya.physicsTimer.pause():Laya.physicsTimer.resume(),this._gamePause=t}get selfTurn(){return this._selfTurn}set selfTurn(t){this.trunCount++,this._selfTurn=t,t?(Bo.common.d2World.d2Gan.ui.self.visible=!0,Bo.common.d2World.d2Gan.ui.ai.visible=!1):(Bo.common.d2World.d2Gan.ui.self.visible=!1,Bo.common.d2World.d2Gan.ui.ai.visible=!0,this.trunCount>1&&W.openBox())}resetGame(){this.inHoleBalls=[],this.isFirstInGame=!0,this.firstColliObj=null,this.aiCamp="",this.selfCamp="",this.aiFoulNum=0,this.selfFoulNum=0,this.selfBallArr=[],this.aiBallArr=[],this.gamePause=!1,this.ensureBallType=!1,this.isInterrupt=!1,this.updateLeftBall(),this.clearTime(),this.aiPlayedBreakArmy=!1,this.isBlackInHole=!1,this.placeBallPosData={},Bo.common.d3World.knifeRoot&&Bo.common.d3World.knifeRoot.destroyChildren()}gameReady(){this.trunCount=0,this.firstColliObj=null,this.isFirstInGame=!0,this.selfTurn=Math.random()<=this.selfTurnRate;let t=jo.getChallengeTimes();Bo.common.gameMode==f.classic&&t>=1&&t<=3&&(this.selfTurn=!0),Bo.common.gameMode==f.placeBall&&(this.selfTurn=!0),Bo.common.gameMode!=f.bigMove||jo.getSkillGuide()||(this.selfTurn=!0),Bo.common.gameUI.setTurnAlpha(this.selfTurn),this.checkGuide(),Bo.common.uiRodMethod&&Bo.common.uiRodMethod.resetRod(),Bo.common.d2World.getHelpLine(),this.isOpenBall=!0,this.isTouchedBall=!1,Bo.common.aiPlayer.stopRun(),this.setTime=30;let e=Bo.common.gameUI.ui;switch(Bo.common.gameMode){case f.classic:Bo.common.aiPlayer.init(),this.blackNum=8,this.placeRootBall(),this.peoplePlay(9,10),e.wordsBtn.visible=!0,e.aiWordsBtn.visible=!0,Bo.common.talkMgr.changeAIState(!0),jo.gameData.gameCount++,jo.saveGameData();break;case f.bigMove:this.blackNum=-1,this.selfScore=0,this.aiScore=0,Bo.common.aiPlayer.init(),this.targertScore=cfgTable.bigmoveData[Bo.common.bigMoveLevelIndex].target,this.updateSelfScore(),this.updateAIScore(),this.updateTargetSroce(),this.placeRootBall(),this.peoplePlay(9,10),e.wordsBtn.visible=!0,e.aiWordsBtn.visible=!0,Bo.common.talkMgr.changeAIState(!0),jo.getSkillGuide()<1?jo.gameData.gameCount=0:(jo.gameData.gameCount++,jo.saveGameData(),W.openTry()),Bo.common.d3World.knifeRoot&&Bo.common.d3World.knifeRoot.destroyChildren();break;case f.placeBall:this.blackNum=-1,this.selfTurn=!0,this.setTime=1e4,this.placeBallData=cfgTable.placeballData[Bo.common.placeBallCurLevel],this.curHP=this.placeBallData.hp,-1==this.placeBallData.ball?this.needBalls=Bo.common.d2World.ballArr.length-1:this.needBalls=this.placeBallData.ball,console.log("需要的进球数目",this.needBalls),this.allBallNum=Bo.common.d2World.ballArr.length-1,this.finishBalls=0,this.placeBallPosData={},this.updatePlaceBallPos(),this.updatePlaceBallState(),this.finishOneShoot=!0,Bo.common.gameUI.ui.moveNode.visible=!1,this.isOpenBall=!1,Bo.common.d2World.d2Gan.ui.ai.visible=!1,e.wordsBtn.visible=!1,e.aiWordsBtn.visible=!1,Bo.common.talkMgr.changeAIState(!1),Laya.timer.frameOnce(Bo.tools.random(2e3,5100),this,()=>{W.openBox()})}this.showLongView=!1,Bo.common.wordsMgr.comboTimes=1,jo.getSkillGuide()&&Bo.eventMgr.event(a),Bo.common.upSkillLevel=!1,Bo.common.gameStartTime=(new Date).getTime(),this.firstShoot=!0}checkGuide(){let t=jo.getSkillGuide(),e=Bo.common.gameUI.ui;if(e.guide1.visible=!1,e.guide2.visible=!1,e.guide3.visible=!1,0!=t||Bo.common.gameMode!=f.bigMove)return;this.selfTurn=!0;let i=this.getOneBall();e.guide1.visible=!0,e.guide1.fingerNode.x=i.gameObj.x,e.guide1.fingerNode.y=i.gameObj.y}getOneBall(){let t=Bo.common.d2World.ballArr;for(let e=0;e<t.length;e++)if(0!=t[e].number)return t[e]}updateSelfScore(){Bo.common.gameUI.ui.topNode.selfScoreTxt.text=this.selfScore+""}updateAIScore(){Bo.common.gameUI.ui.topNode.aiScoreTxt.text=this.aiScore+""}updateTargetSroce(){Bo.common.gameUI.ui.topNode.middleNode.targetScoreTxt.text=this.targertScore+""}updateLeftBall(){let t=Bo.common.gameUI.ui.topNode;t.selfBallList.numItems=this.selfBallArr.length,t.aiBallList.numItems=this.aiBallArr.length}ballShoot(){this.clearTime(),this.finishOneShoot=!1,Bo.common.gameUI.ui.moveNode.visible=!1,Bo.common.gameUI.ui.guideNode.visible&&(Bo.common.gameUI.ui.guideNode.visible=!1),this.firstShoot&&(this.firstShoot=!1,Moyu.sendDataEvent(`gameType${Bo.common.gameMode}`))}ensureCamp(t){if(this.ensureBallType=!0,this.isOpenBall=!1,Bo.common.gameMode!=f.classic)return;let e=[1,2,3,4,5,6,7],s=[9,10,11,12,13,14,15],n="";this.selfTurn?t<=7?(this.selfCamp=i.full,this.selfBallArr=e,this.aiCamp=i.flower,this.aiBallArr=s,n=cfgTable.wordsData[3].msg):(this.selfCamp=i.flower,this.selfBallArr=s,this.aiCamp=i.full,this.aiBallArr=e,n=cfgTable.wordsData[4].msg):t<=7?(this.selfCamp=i.flower,this.selfBallArr=s,this.aiCamp=i.full,this.aiBallArr=e,n=cfgTable.wordsData[2].msg):(this.selfCamp=i.full,this.selfBallArr=e,this.aiCamp=i.flower,this.aiBallArr=s,n=cfgTable.wordsData[1].msg),this.updateLeftBall(),Bo.uiMgr.Show(_t,n)}updatePlaceBallState(){let t=Bo.common.gameUI.ui;switch(this.placeBallData.type){case w.normal:let e=t.placeNormalNode;e.hpTxt.text=this.curHP+"",this.updatePlaceBallStar(e),e.ballTxt.text=this.finishBalls+"/"+this.needBalls,e.levelTxt.text=`第${Bo.common.placeBallCurLevel}关`;break;case w.challenge:let i=t.placeChallengeNode;i.hpTxt.text="杆数:"+this.curHP,i.ballTxt.text=this.finishBalls+"/"+this.allBallNum,i.levelTxt.text=`第${Bo.common.placeBallCurLevel}关`,i.tipsTxt.text=`打进${this.needBalls}颗球`}}playSubHpAni(){let t=Bo.common.gameUI.ui;switch(this.placeBallData.type){case w.normal:let e=t.placeNormalNode;e.hpTxt.visible=!1,e.starAni.c1.selectedIndex=1,e.starAni.t0.play(Laya.Handler.create(this,()=>{e.hpTxt.visible=!0,e.starAni.c1.selectedIndex=0}))}}getEndStarNum(){let t,e=Bo.common.placeBallCurLevel;t=this.curHP==this.placeBallData.hp?3:this.curHP<=1?1:2,this.success?jo.setPlaceBallLevel(e,t):t=0;let i=cfgTable.placeballData[e].type;this.success&&1==i&&(t=3),Bo.common.placeBallStarNum=t}updatePlaceBallStar(t){let e,i=0;i=this.curHP==this.placeBallData.hp?3:this.curHP>=2?2:1==this.curHP?1:0;for(let s=1;s<=3;s++)(e=t["star"+s]).c1.selectedIndex=i>=s?1:0;t.myProgress.value=i/3*100}openRegretView(t,e,i=!1){let s=-1;t?s=1:e<=0&&(s=0),i&&(s=1),-1!=s&&Bo.uiMgr.Show(Kt,1,s,t=>{t?(this.curHP++,this.updatePlaceBallState(),this.setPlaceBallAllPos(),Bo.common.gameUI.ui.moveNode.visible=!1):(this.curHP<=0&&(this.success=!1,this.gameEnd()),this.playSubHpAni()),this.updatePlaceBallState(),this.updatePlaceBallPos()})}setPlaceBallAllPos(){let t,e,i=Bo.common.d2World.ballArr,s=this.placeBallPosData;for(let n=0;n<i.length;n++)(t=i[n]).destroyed||(e=s[t.myUNID])&&e.src&&!e.src.destroyed&&(t.gameObj.x=e.posX,t.gameObj.y=e.posY,t.d3BallSrc.setTransPos(e.posX,e.posY));Bo.common.d2World.getHelpLine()}updatePlaceBallPos(){let t,e,i=Bo.common.d2World.ballArr;for(let e=0;e<i.length;e++)t=i[e],this.placeBallPosData[t.myUNID]?(this.placeBallPosData[t.myUNID].posX=t.gameObj.x,this.placeBallPosData[t.myUNID].posY=t.gameObj.y):this.placeBallPosData[t.myUNID]={src:t,posX:t.gameObj.x,posY:t.gameObj.y};for(const t in this.placeBallPosData)(e=this.placeBallPosData[t]).src.destroyed&&delete this.placeBallPosData[t]}gameRun(t){if(!this.gamePause)if(this.curFoul=this.getFoulType(),t&&(Bo.common.d2World.d2Gan.shoot(),Bo.common.gameUI.forceCancel(),this.curFoul=t),this.isEnd=!1,this.isChangeTurn=!0,Bo.common.gameMode==f.classic)this.judgeClassic(this.curFoul),this.checkClassicWords(()=>{Bo.common.destroyClassicEmotion(),this.isEnd?this.isBlackInHole?(Bo.common.gameUI.ui.blackAni.visible=!0,Bo.common.gameUI.ui.blackAni.t0.play(Laya.Handler.create(this,()=>{Bo.common.gameUI.ui.blackAni.visible=!1,this.gameEnd()}))):this.gameEnd():(this.waitShoot(),Bo.eventMgr.event(a))});else if(Bo.common.gameMode==f.bigMove){Bo.common.aiPlayer.stopRun();let t=this.getScore(this.curFoul);this.judgeScoreEnd(t[0],t[1])&&(this.isEnd=!0),this.checkBigSkillWords(()=>{this.isEnd?this.gameEnd():(this.waitShoot(),Bo.eventMgr.event(a))})}else if(Bo.common.gameMode==f.placeBall){Bo.common.destroyAwardSpine();let t=this.curFoul==s.rootHole,e=this.inHoleBalls.length;this.inHoleBalls.indexOf(0)>-1&&(e-=1),t&&this.placeRootBall(),console.log("neeballs",this.needBalls),console.log("当前完成的goalNum",e),this.finishBalls+=e,console.log("当前完成的finishballs",this.finishBalls);let i=this.needBalls;if(this.placeBallData.type==w.challenge&&(i+=100),this.finishBalls>=i)this.success=!0,this.gameEnd();else switch(this.placeBallData.type){case w.normal:!t&&e>0?(this.updatePlaceBallPos(),this.updatePlaceBallState()):(this.curHP--,this.openRegretView(t,e)),this.waitShoot(),Bo.eventMgr.event(a);break;case w.challenge:this.curHP--,this.updatePlaceBallState(),t?this.openRegretView(t,e,!0):(this.updatePlaceBallPos(),this.curHP<=0&&(this.success=!0,this.gameEnd())),this.waitShoot(),Bo.eventMgr.event(a)}}}checkClassicWords(t){Bo.common.wordsMgr.setClassicCombo(this.isChangeTurn);let e=!this.isChangeTurn&&(""==this.curFoul||this.curFoul==s.wrongTouch),i=this.getClassicWordsType();if(e&&-1!=i){let e=Math.random()<=.5?"hint01":"hint02";Bo.soundMgr.playSound(e),Bo.common.wordsMgr.playClassicWords(i,t)}else Laya.timer.once(300,this,()=>{t&&t()})}getClassicWordsType(){let t=Bo.common.d2World,e=-1;if(!this.isInterrupt&&this.judgeNormalSuccess())return e=I.perfectShow;if(1==this.inHoleBalls.length&&t.targetBall&&this.inHoleBalls[0]==t.targetBall.number&&t.isOnSameLine)return e=I.directShoot;if(this.inHoleBalls.length>0&&(null==t.targetBall||this.inHoleBalls.indexOf(t.targetBall.number)<=-1))return e=I.anotherShoot;if(100==t.powerPercent&&this.inHoleBalls.length>0)return e=I.bigPower;return 1==this.inHoleBalls.length&&Bo.common.d2World.inHolesSpeed[0]<=1?e=I.hardShoot:this.inHoleBalls.length>0?e=I.directShoot:e}checkBigSkillWords(t){if(this.curFoul==s.timeOut)t&&t();else{let e=!1;this.selfTurn?e=!0:(this.aiPlayedBreakArmy||(this.aiPlayedBreakArmy=!0,e=!0),this.aiCurSkill!=b.breakArmy&&(e=!0)),Bo.common.skillMgr.playedLastSkill&&(Bo.common.skillMgr.playedLastSkill=!1,e=!1),e?Bo.common.skillMgr.runBigSkill(e=>{let i=0,s=0;this.selfTurn?i+=e:s+=e,this.judgeScoreEnd(i,s)&&(this.isEnd=!0),this.playBigSkillTimes(t)}):this.playBigSkillTimes(t)}}playBigSkillTimes(t){let e=this.inHoleBalls.length;this.inHoleBalls.indexOf(0)>-1&&(e=this.inHoleBalls.length-1),e<=0?t&&t():Bo.common.wordsMgr.playBigSkillTimes(e,()=>{t&&t()})}playSkillTips(){let t,e=0;this.selfTurn?(e=jo.getBigSkillByIndex(this.selfCurSkill),(t=this.selfCurSkill)==jo.gameData.trySkill&&Laya.timer.currTimer<jo.gameData.tryTime&&(e+=5)):(e=this.aiSkillLevelNum,t=this.aiCurSkill);let i="";switch(t){case b.highSpace:i=`额外移动了${Bo.common.extraMoveNum}颗球`;break;case b.breakArmy:i=`额外打进了${e}颗球`;break;case b.ice:i=`额外冻住了${2*e}颗球`;break;case b.fireworks:i=`额外爆炸了${e}颗球`;break;case b.GuanYu:i=`进行了${Bo.common.extraMoveNum}段位移`}Bo.uiMgr.Show(_t,i)}getFoulType(){let t="";if(null==this.firstColliObj)return 1==this.inHoleBalls.length&&0==this.inHoleBalls[0]?s.rootHole:s.notTouch;{if(this.selfTurn?this.selfBallArr.length>0?this.selfBallArr.indexOf(this.firstColliObj)<=-1&&(t=s.wrongTouch):this.ensureBallType||this.firstColliObj==this.blackNum&&(t=s.wrongTouch):this.aiBallArr.length>0?this.aiBallArr.indexOf(this.firstColliObj)<=-1&&(t=s.wrongTouch):this.ensureBallType||this.firstColliObj==this.blackNum&&(t=s.wrongTouch),this.inHoleBalls.length<=0)return t;let e,i;if(this.inHoleBalls.indexOf(0)>-1)t=s.rootHole;else for(let i=0;i<this.inHoleBalls.length;i++)if(e=this.inHoleBalls[i],this.selfTurn){if(this.aiBallArr.indexOf(e)>-1&&!this.isOpenBall){t=s.wrongHole;break}}else if(this.selfBallArr.indexOf(e)>-1&&!this.isOpenBall){t=s.wrongHole;break}for(let t=0;t<this.inHoleBalls.length;t++)e=this.inHoleBalls[t],(i=this.selfBallArr.indexOf(e))>-1&&this.selfBallArr.splice(i,1),(i=this.aiBallArr.indexOf(e))>-1&&this.aiBallArr.splice(i,1);this.updateLeftBall()}return t}judgeGameEndByBlack(t){if(this.selfTurn){if(this.selfBallArr.length>0&&t.indexOf(this.blackNum)>-1)return this.selfFoulNum=this.maxFoulTimes,!0}else if(this.aiBallArr.length>0&&t.indexOf(this.blackNum)>-1)return this.aiFoulNum=this.maxFoulTimes,!0}judgeClassic(t){if(this.isBlackInHole=this.judgeGameEndByBlack(this.inHoleBalls),Bo.common.aiPlayer.stopRun(),this.judgeNormalSuccess())return void(this.isEnd=!0);let e=t==s.timeOut||t==s.rootHole;if(this.selfTurn){if(e&&this.selfFoulNum++,this.selfFoulNum>=this.maxFoulTimes)return this.success=!1,void(this.isEnd=!0)}else if(e&&this.aiFoulNum++,this.aiFoulNum>=this.maxFoulTimes)return this.success=!0,void(this.isEnd=!0);(""==t||t==s.wrongTouch)&&this.inHoleBalls.length>0?this.isChangeTurn=!1:this.isInterrupt=!0}waitShoot(){if(Bo.common.gameMode==f.classic)switch(this.curFoul){case s.timeOut:case s.rootHole:this.selfTurn=!this.selfTurn,this.peoplePlay(5,6,!0);break;case s.notTouch:this.selfTurn=!this.selfTurn,this.peoplePlay(7,7);break;case s.wrongHole:this.selfTurn=!this.selfTurn,this.peoplePlay(11,11);break;default:this.inHoleBalls.length>0?this.peoplePlay(0,0,!1,!1):(this.selfTurn=!this.selfTurn,this.peoplePlay(7,7))}else Bo.common.gameMode==f.bigMove?this.curFoul==s.timeOut?(this.selfTurn=!this.selfTurn,this.peoplePlay(14,15),this.placeRootBall()):(this.selfTurn=!this.selfTurn,this.curFoul==s.rootHole?(this.peoplePlay(12,13),this.placeRootBall()):this.peoplePlay(0,0,!1,!1)):Bo.common.gameMode==f.placeBall&&(this.finishOneShoot=!0);this.gameResult()}gameResult(){this.firstColliObj=null,this.inHoleBalls=[];let t=Bo.common.d2World.rootBall.gameObj.x,e=Bo.common.d2World.rootBall.gameObj.y;Bo.common.gameMgr.lastRootBallPos.setValue(t,e),Bo.common.uiRodMethod&&Bo.common.uiRodMethod.resetRod(),Bo.common.d2World.rootBall.showSelf(),this.clearIceSkill(),this.selfTurn&&(console.log("gameResult"),W.gameInsert()),Bo.common.d3World.knifeRoot.destroyChildren(),this.selfTurn?(Bo.common.gameUI.showHelpLineGuide(),Bo.common.gameUI.setTurnAlpha(!0)):Bo.common.gameUI.setTurnAlpha(!1)}getScore(t){let e=0,i=0;return t==s.timeOut?this.selfTurn?i+=3:e+=3:this.inHoleBalls.length>0&&(this.selfTurn?t==s.rootHole?(i+=3,this.inHoleBalls.length-1>0&&(e+=this.inHoleBalls.length-1)):e+=this.inHoleBalls.length:t==s.rootHole?(e+=3,this.inHoleBalls.length-1>0&&(i+=this.inHoleBalls.length-1)):i+=this.inHoleBalls.length),[e,i]}judgeScoreEnd(t,e){if(this.selfScore+=t,this.aiScore+=e,this.updateAIScore(),this.updateSelfScore(),this.selfScore>=this.targertScore)return this.success=!0,!0;if(this.aiScore>=this.targertScore)return this.success=!1,!0;let i=Bo.common.d2World.ballArr;return 1==i.length&&0==i[0].number?this.selfScore>this.aiScore?(this.success=!0,!0):this.selfScore<this.aiScore?(this.success=!1,!0):(this.selfTurn?this.success=!1:this.success=!0,!0):void 0}clearIceSkill(){let t,e=Bo.common.d2World.ballArr;if(this.selfTurn){if(this.selfCurSkill==b.ice)for(let i=0;i<e.length;i++)"ice"==(t=e[i]).ballFunc&&t.setBallFunc("normal","self")}else if(this.aiCurSkill==b.ice)for(let i=0;i<e.length;i++)"ice"==(t=e[i]).ballFunc&&t.setBallFunc("normal","ai")}judgeNormalSuccess(){if(this.selfTurn){if(this.selfBallArr.length<=0&&this.inHoleBalls.indexOf(this.blackNum)>-1)return this.success=!0,!0}else if(this.aiBallArr.length<=0&&this.inHoleBalls.indexOf(this.blackNum)>-1)return this.success=!1,!0}gameEnd(){Moyu.isTT&&(Bo.common.screenImg=getScreenImg()),console.log("游戏结束",this.success),Bo.common.aiPlayer.stopRun(),Bo.common.gameMode==f.placeBall&&(this.getEndStarNum(),this.updatePlaceBallState()),this.isEnter=!1,Moyu.recordEnd(this,()=>{this.isEnter||(this.isEnter=!0,console.log("进入录结束回调"),this.enterNext())}),Laya.timer.once(1e3,this,()=>{this.isEnter||(this.isEnter=!0,this.enterNext())}),Bo.common.longHelpLine=!1}enterNext(){Laya.timer.clearAll(this),Moyu.canShare()>100||Moyu.isKs?Bo.uiMgr.Show(Zt,this.success):Bo.uiMgr.Show(Xt,this.success)}aiLeave(){Bo.common.gameUI.ui.topNode.aiNameTxt.text="离线"}aiGameEnd(t){this.success=t,Bo.common.aiPlayer.stopRun(),this.success&&(Bo.uiMgr.Show(_t,"对手已逃跑!"),Laya.timer.once(1e3,this,()=>{this.clearTime(),this.gameEnd()}))}openTimer(){let t=Bo.common.gameUI;this.selfTurn?(t.ui.topNode.selfProgress.visible=!0,t.ui.topNode.aiProgress.visible=!1,this.curTimer=t.ui.topNode.selfProgress):(t.ui.topNode.selfProgress.visible=!1,t.ui.topNode.aiProgress.visible=!0,this.curTimer=t.ui.topNode.aiProgress),this.accTime=0,Laya.timer.clearAll(this),Laya.timer.loop(20,this,this.updateTime,[.02]),this.curTimer.value=100}updateTime(t){this.gamePause||(this.accTime+=t,this.curTimer.value=100*(this.setTime-this.accTime)/this.setTime,this.accTime>=this.setTime&&(this.clearTime(),console.log("时钟进入了gameRun"),this.gameRun(s.timeOut)))}clearTime(){let t=Bo.common.gameUI;t.ui.topNode.selfProgress.visible=!1,t.ui.topNode.aiProgress.visible=!1,Laya.timer.clearAll(this)}peoplePlay(t,e,i=!1,n=!0){let a,o,h=Bo.common.gameUI.ui;if(n&&(a=cfgTable.wordsData[t].msg,o=cfgTable.wordsData[e].msg,i&&(a=a.replace("$",this.aiFoulNum+""),o=o.replace("$",this.selfFoulNum+""),this.placeRootBall(),!this.selfTurn&&Bo.common.gameMode==f.classic)))if(this.curFoul==s.rootHole){if(!jo.getRootBallFoul()){jo.setRootBallFoul(),o="";let t="白球进洞了,3次犯规本局游戏失败。",e="老板,下次注意啦~";Bo.uiMgr.Show(Jt,t,e,v.foul)}}else if(this.curFoul==s.timeOut&&!jo.getTimeoutFoul()){jo.setTimeoutFoul(),o="";let t="游戏超时,3次犯规本局游戏失败。",e="老板,注意时间楼~";Bo.uiMgr.Show(Jt,t,e,v.foul)}if(this.selfTurn)n&&Bo.uiMgr.Show(_t,a,()=>{h.selfTurn.visible=!0,h.aiTurn.visible=!1,h.selfTurn.t0.play(),Moyu.vibration()});else{let t=Bo.tools.random(1,11),e=jo.getChallengeTimes(),i=!1;if(Bo.common.gameMode==f.classic&&e>=1&&e<=3&&(t=9,this.aiBallArr.length<=2&&this.ensureBallType&&(t=3,3==e&&(this.showLongView||(this.showLongView=!0,i=!0)))),i)return void Bo.uiMgr.Show(Kt,0,0,e=>{e?(Bo.common.longHelpLine=!0,Bo.common.d2World.getHelpLine()):t=10,Bo.common.aiPlayer.setAiLevel(t),n?Bo.uiMgr.Show(_t,o,()=>{Bo.common.aiPlayer.runAI(),h.selfTurn.visible=!1,h.aiTurn.visible=!0,h.aiTurn.t0.play()}):Bo.common.aiPlayer.runAI(),this.openTimer(),this.finishOneShoot=!0,this.selfTurn?(h.topNode.selfKuang.visible=!0,h.topNode.aiKuang.visible=!1,h.topNode.selfTips.visible=!0,h.topNode.aiTips.visible=!1):(h.topNode.selfKuang.visible=!1,h.topNode.aiKuang.visible=!0,h.topNode.selfTips.visible=!1,h.topNode.aiTips.visible=!0)});if(Bo.common.gameMode==f.classic){let e=cfgTable.modeselectData[Bo.common.classicRoomType];if(e){let i=Bo.common.randomNum(e.aiLevel[0],e.aiLevel[1]);t=i}}Bo.common.aiPlayer.setAiLevel(t),n?Bo.uiMgr.Show(_t,o,()=>{Bo.common.aiPlayer.runAI(),h.selfTurn.visible=!1,h.aiTurn.visible=!0,h.aiTurn.t0.play()}):Bo.common.aiPlayer.runAI()}this.openTimer(),this.finishOneShoot=!0,this.selfTurn?(h.topNode.selfKuang.visible=!0,h.topNode.aiKuang.visible=!1,h.topNode.selfTips.visible=!0,h.topNode.aiTips.visible=!1):(h.topNode.selfKuang.visible=!1,h.topNode.aiKuang.visible=!0,h.topNode.selfTips.visible=!1,h.topNode.aiTips.visible=!0)}placeRootBall(){let t=Bo.common.d2World.rootBall;if(!t)return;t.gameObj.x=this.lastRootBallPos.x,t.gameObj.y=this.lastRootBallPos.y,t.d3BallSrc.setTransPos(this.lastRootBallPos.x,this.lastRootBallPos.y);let e=Bo.common.gameUI.ui.moveNode;e.visible=!0,e.x=this.lastRootBallPos.x,e.y=this.lastRootBallPos.y,this.selfTurn||Bo.common.aiPlayer.resetRoot()}}class te extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","guanyuAni")}onConstruct(){this.n0=this.getChild("n0")}}te.URL="ui://isxx5ak7jaakv55u";class ee extends A{constructor(){super()}onConstructor(){this.isEject=!1}show(t){super.show()}}ee.uiName="UIFireworks";class ie extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGuanYu")}onConstruct(){this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}ie.URL="ui://isxx5ak7dt0av4yc";class se extends A{constructor(){super()}onConstructor(){this.ui=ie.createInstance(),this.contentPane=this.ui,this.isEject=!1}show(t){super.show(),this.ui.t0.play(Laya.Handler.create(this,()=>{t&&t(),this.hide()}))}}se.uiName="UIGuanYu";class ne{constructor(){this.leveNum=0,this.extraScore=0,this.selfTurn=!1,this.playedLastSkill=!1,this.tweenArr=[],this._finishNum=0,this._curFinish=0,this._rootX=0,this._rootY=0,this.knifeTimes=0,this.knifeV2=new Laya.Vector2,this.knifeV3=new Laya.Vector3,this.rtStarX=0,this.rtStarY=0,this.addBigSkillSpine(),Bo.eventMgr.on(r,this,this.resetGame)}addBigSkillSpine(){this.skillSpine2=new X("yxz_dazhao",()=>{console.log("extra2 success")})}runBigSkill(t){this.tweenArr=[],this.callback=t,this.judgeSkill(),this.leveNum=jo.getBigSkillByIndex(this.curSkill);let e=jo.getSkillGuide();Bo.common.gameMgr.selfTurn?(0!=Bo.common.temSelfLevel&&(this.leveNum=Bo.common.temSelfLevel),this.curSkill==jo.gameData.trySkill&&Laya.timer.currTimer<jo.gameData.tryTime&&(this.leveNum+=5)):this.leveNum=Bo.common.gameMgr.aiSkillLevelNum,0==e&&(jo.setSkillGuide(1),jo.getNewUser()&&(Moyu.sendDataEvent("gameFirstPlay"),jo.setNewUser())),this.playSpineAni(()=>{switch(this.curSkill){case b.highSpace:this.runHighSpace();break;case b.breakArmy:this.runBreakArmy();break;case b.ice:this.runIce();break;case b.fireworks:this.runFireworks();break;case b.GuanYu:this.runGuanYu()}})}judgeSkill(){let t,e=[b.highSpace,b.breakArmy,b.ice,b.GuanYu],i=Bo.common.gameMgr;for(let s=0;s<e.length;s++)if(t=e[s],i.selfTurn){if(i.selfCurSkill==t)return this.selfTurn=!0,void(this.curSkill=t)}else if(i.aiCurSkill==t)return this.selfTurn=!1,void(this.curSkill=t)}playSpineAni(t){let e={x:0,y:0,scaleX:1.2,scaleY:1.2},i=Bo.common.gameUI.ui.bigSkillNode.displayObject;i.destroyChildren();let s,n=0;switch(this.curSkill){case b.highSpace:n=1,Bo.soundMgr.playSound("skill01"),s=this.skillSpine2,e.scaleX=.5,e.scaleY=.5,s.play(e,1,!1,i,()=>{t&&t()});break;case b.breakArmy:n=2,Bo.soundMgr.playSound("skill02"),s=this.skillSpine2,e.scaleX=.5,e.scaleY=.5,s.play(e,2,!1,i,()=>{t&&t()});break;case b.ice:n=0,Bo.soundMgr.playSound("skill03"),s=this.skillSpine2,e.scaleX=.5,e.scaleY=.5,s.play(e,0,!1,i,()=>{t&&t()});break;case b.fireworks:Bo.soundMgr.playSound("skill_04_01"),Bo.soundMgr.playSound("skill04"),Bo.uiMgr.Show(ee,t);break;case b.GuanYu:Bo.soundMgr.playSound("skill05_1"),Bo.soundMgr.playSound("skill05"),Bo.uiMgr.Show(se,t)}}getAllBallArr(){let t=Bo.common.d2World.ballArr,e=[];for(let i=0;i<t.length;i++)t[i]instanceof J||"ice"!=t[i].ballFunc&&(t[i].destroyed||e.push(t[i]));return e}getOneArr(t){let e,i=this.getAllBallArr();for(let s=0;s<i.length;s++)if((e=i[s]).id==t.id){i.splice(s,1);break}return i}getNearBallBag(t){let e=Bo.common.gameUI.ui,i=[];for(let t=1;t<=6;t++)i.push(e.border["circle"+t]);let s,n=0,a=Math.pow(i[0].x-t.gameObj.x,2)+Math.pow(i[0].y-t.gameObj.y,2),o=0;for(let e=1;e<i.length;e++)s=i[e],(o=Math.pow(s.x-t.gameObj.x,2)+Math.pow(s.y-t.gameObj.y,2))<a&&(a=o,n=e);return[i[n],n]}ballFlyToBag(t,e=300){let i,s;this._finishNum=t.length,this._curFinish=0;let n={},a={1:0,2:0,3:0,4:0,5:0,6:0};for(let o=0;o<t.length;o++){(i=t[o]).outColli.isSensor=!0,i.innerColli.isSensor=!0,i.isRunSkillAni=!0;let h=this.getNearBallBag(i);s=h[0],n[o]=h[1],i.d3BallSrc.scaleXYZ=.5,this.tweenArr.push(i.d3BallSrc,i),Laya.Tween.to(i.d3BallSrc,{scaleXYZ:1},e,Laya.Ease.sineOut,Laya.Handler.create(this,()=>{Laya.Tween.to(i.d3BallSrc,{scaleXYZ:.5},e,Laya.Ease.sineIn)})),Laya.Tween.to(i,{myX:s.x,myY:s.y},2*e+10,null,Laya.Handler.create(this,()=>{let e=n[this._curFinish];if(a[e]?t[this._curFinish].checkWrongBall(!1):(a[e]=1,t[this._curFinish].checkWrongBall()),this._curFinish++,this._curFinish>=this._finishNum)if(this.curSkill==b.highSpace);else if(this.curSkill==b.breakArmy){let t=Bo.common.d2World.rootBall;t.gameObj.x=this._rootX,t.gameObj.y=this._rootY,t.d3BallSrc.setTransPos(this._rootX,this._rootY),Bo.common.d2World.d2Gan.ui.visible=!0,Bo.common.d2World.d2HelpLine.ui.visible=!0,Bo.common.d2World.getHelpLine(),this.callback&&this.callback(this.extraScore)}}))}}runHighSpace(){let t=Bo.common.d2World.rootBall;t.showSelf();let e=t.d3BallSrc,i=this.getAllBallArr();if(i.length<=0)return void(this.callback&&this.callback(0));let s=Bo.common.d2World.targetBall,n=s&&s.destroyed;s&&!n&&"ice"!=s.ballFunc||(s=Bo.common.getRandArrEle(i));let a=s.d3BallSrc;Bo.common.d2World.d2Gan.ui.visible=!1,Bo.common.d2World.d2HelpLine.ui.visible=!1,e.scaleXYZ=.5,this.tweenArr.push(e),Laya.Tween.to(e,{scaleXYZ:1,posX:a.posX,posZ:a.posZ},1e3,Laya.Ease.sineOut,Laya.Handler.create(this,()=>{Laya.Tween.to(e,{scaleXYZ:.5},500,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{let i=Bo.poolD3Mgr.getItem(C.hitEft);i.transform.localPositionX=e.transform.localPositionX,i.transform.localPositionY=e.transform.localPositionY,i.transform.localPositionZ=e.transform.localPositionZ;let n=[s],a=this.leveNum-1;if(a>0){let t=this.getOneArr(s);if(t.length>0){Bo.common.botherArr(t),a>=t.length&&(a=t.length);for(let e=0;e<a;e++)n.push(t[e])}}Bo.common.extraMoveNum=a+1,this.extraScore=a+1,this._rootX=s.gameObj.x,this._rootY=s.gameObj.y,t.gameObj.x=this._rootX,t.gameObj.y=this._rootY,t.d3BallSrc.setTransPos(this._rootX,this._rootY),Laya.Tween.clearAll(e),this.addRandomForce(n)}))}))}addRandomForce(t){let e;t.length>0&&(Bo.common.d2World.openCheckStill=!0,this.playedLastSkill=!0);for(let i=0;i<t.length;i++){let s=Bo.common.randomNum(0,360),n=Bo.common.randomNum(65,100);e=t[i],this.setLinearSpeed(s,e.rigy,n)}}setLinearSpeed(t,e,i){let s=Math.sin(t*Math.PI/180),n=Math.cos(t*Math.PI/180),a=new Laya.Vector2;a.x=4*i*s,a.y=-4*i*n,e.applyLinearImpulseToCenter(a)}runBreakArmy(){Bo.common.d2World.d2Gan.ui.visible=!1,Bo.common.d2World.d2HelpLine.ui.visible=!1;let t=Bo.common.gameUI.ui;t.skillRod.visible=!0,t.skillRod.rotation=110;let e=this.getAllBallArr();if(e.length<=0)return t.skillRod.visible=!1,void(this.callback&&this.callback(0));Bo.common.botherArr(e),this.leveNum>=e.length&&(this.leveNum=e.length);let i=e.length-this.leveNum;e.splice(0,i),this.extraScore=this.leveNum;let s=t.skillRod.x,n=t.skillRod.y;this._rootX=Bo.common.d2World.rootBall.gameObj.x,this._rootY=Bo.common.d2World.rootBall.gameObj.y;let a=[];for(let t=0;t<e.length;t++){let i=e[t],o=Math.pow(i.gameObj.x-s,2)+Math.pow(i.gameObj.y-n,2);o=Math.pow(o,.5),a.push(o)}this.tweenArr.push(t.skillRod),Laya.Tween.to(t.skillRod,{rotation:20},800,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{})).update=Laya.Handler.create(this,(i,o,h)=>{let l,r,c,d=t.skillRod.rotation;for(let t=0;t<e.length;t++)c=e[t],l=s+a[t]*Math.sin(d*Math.PI/180),r=n-a[t]*Math.cos(d*Math.PI/180),r-=20,c.gameObj.x=l,c.gameObj.y=r,c.d3BallSrc.setTransPos(l,r);d<=60&&(Laya.Tween.clearAll(t.skillRod),this.ballFlyToBag(e,150),t.skillRod.visible=!1)},null,!1)}runIce(){let t=Bo.common.d2World.ballArr;this.leveNum*=2,this.leveNum>=t.length-1&&(this.leveNum=t.length-1);let e,i=[],s=[];for(let e=0;e<t.length;e++)t[e]instanceof J||i.push(t[e]);if(i.length<=0)this.callback&&this.callback(0);else{Bo.common.botherArr(i);for(let t=0;t<this.leveNum;t++)s.push(i[t]);this.extraScore=this.leveNum;for(let t=0;t<s.length;t++)(e=s[t]).d3BallSrc.playIceEft();Laya.timer.once(2e3,this,()=>{for(let t=0;t<s.length;t++){e=s[t];let i=Bo.common.gameMgr.selfTurn?"self":"ai";e.setBallFunc("ice",i)}this.callback&&this.callback(0)})}}runFireworks(){let t=this.getAllBallArr();if(t.length<=0)return void(this.callback&&this.callback(0));Bo.common.d2World.d2Gan.ui.visible=!1,Bo.common.d2World.d2HelpLine.ui.visible=!1;let e=[],i=this.leveNum;if(i>0&&t.length>0){Bo.common.botherArr(t),i>=t.length&&(i=t.length);for(let s=0;s<i;s++)e.push(t[s])}Bo.common.extraMoveNum=i,this.extraScore=i,this.addRandmomFireworks(e)}addRandmomFireworks(t){let e;Laya.timer.once(1100,this,()=>{t.length>0&&(Bo.common.d2World.openCheckStill=!0,this.playedLastSkill=!0)}),Bo.soundMgr.playSound("skill_04_02");let i=-200;for(let s=0;s<t.length;s++)i+=200,(e=t[s]).d3BallSrc.runFireworks(e,i,t=>{let e=Bo.common.randomNum(0,360);e=this.getFireworksAngle(t);let i=Bo.common.randomNum(45,80);t.destroyed||this.setLinearSpeed(e,t.rigy,i)})}getFireworksAngle(t){let e=Bo.common.d2World.rootBall;return Bo.common.getfguiRotation(t.gameObj.x-e.gameObj.x,t.gameObj.y-e.gameObj.y)}resetGame(){if(Laya.timer.clearAll(this),this.tweenArr)for(let t=0;t<this.tweenArr.length;t++)Laya.Tween.clearAll(this.tweenArr[t]);this.tweenArr=null}runGuanYu(){Bo.common.d2World.d2Gan.ui.visible=!1,Bo.common.d2World.d2HelpLine.ui.visible=!1;let t=Bo.common.d2World.rootBall;t.isInHole&&(t.gameObj.x=Bo.common.gameMgr.lastRootBallPos.x,t.gameObj.y=Bo.common.gameMgr.lastRootBallPos.y,t.d3BallSrc.setTransPos(t.gameObj.x,t.gameObj.y),t.showSelf()),this.rtStarX=t.gameObj.x,this.rtStarY=t.gameObj.y,this.knifeTimes=0,this.playedLastSkill=!0,t.forceRun=!0,t.rigy.type="static",Bo.common.d2World.openCheckStill=!0,this.guanyuRandomKnife()}guanyuRandomKnife(){let t=Bo.common.d2World.rootBall,e=this.getRandDir(),i=Bo.common.getfguiRotation(e.x,e.y);console.log("当前angle",i),this.cloneKnife(t.gameObj.x,t.gameObj.y,180-i),this.cloneGuanYuEft(t.gameObj.x,t.gameObj.y,i);let s=this.rtStarX+324*Math.sin(i*Math.PI/180),n=this.rtStarY+324*-Math.cos(i*Math.PI/180);Laya.Tween.to(t.gameObj,{x:s,y:n},150,null,Laya.Handler.create(this,()=>{let e;this.rtStarX=t.gameObj.x,this.rtStarY=t.gameObj.y,this.knifeTimes++,(e=Bo.common.gameMgr.selfTurn?jo.getBigSkillByIndex(4):Bo.common.gameMgr.aiSkillLevelNum)||(e=1),e+=2,this.knifeTimes<e?Laya.timer.once(400,this,()=>{this.guanyuRandomKnife()}):(t.forceRun=!1,t.rigy.type="dynamic",Bo.common.extraMoveNum=e)}))}getRandDir(){let t=Bo.common.d2World.rootBall,e=this.getAllBallArr(),i=Bo.common.getRandArrEle(e);return this.knifeV2.setValue(i.gameObj.x-t.gameObj.x,i.gameObj.y-t.gameObj.y),this.knifeV2}cloneKnife(t,e,i){let s=Bo.common.d3World.knifeRoot,n=Bo.common.d3World.knife.clone();return s.addChild(n),Bo.common.pos2to3Convert(t,e,this.knifeV3),n.transform.localPositionX=this.knifeV3.x,n.transform.localPositionY=0,n.transform.localPositionZ=this.knifeV3.z,n.transform.localRotationEulerX=0,n.transform.localRotationEulerY=i,n.transform.localRotationEulerZ=0,n.active=!0,n}cloneGuanYuEft(t,e,i){}}class ae extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIWordsList")}onConstruct(){this.c1=this.getController("c1"),this.n74=this.getChild("n74"),this.clickNode=this.getChild("clickNode"),this.myNode=this.getChild("myNode"),this.n68=this.getChild("n68"),this.n66=this.getChild("n66"),this.n55=this.getChild("n55"),this.wordsBtn=this.getChild("wordsBtn"),this.emotionBtn=this.getChild("emotionBtn"),this.mybggg=this.getChild("mybggg"),this.wordsList=this.getChild("wordsList"),this.emotionList=this.getChild("emotionList"),this.myRoot=this.getChild("myRoot")}}ae.URL="ui://isxx5ak7i4k243i";class oe{constructor(t,e){this.ui=e,this.index=t,this.ui.onClick(this,this.clickSelf),this.updateSelf()}updateSelf(){let t=cfgTable.emotionData[this.index+1];this.ui.myIcon.url=Bo.common.getGameIconUrl(t.icon)}clickSelf(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.common.talkMgr.showSelfEmotion(this.index+1),Bo.common.talkMgr.closeTalkView()}}class he{constructor(t,e){this.ui=e,this.index=t,this.ui.onClick(this,this.clickSelf),this.updateSelf()}updateSelf(){let t=cfgTable.talkwordsData[this.index+1];this.ui.txt.text=t.msg}clickSelf(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.common.talkMgr.showSelfTalk(this.index+1),Bo.common.talkMgr.closeTalkView()}}class le extends A{constructor(){super()}onConstructor(){this.ui=ae.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.wordsBtn,this.openTalkList),this.addUIClick(this.ui.emotionBtn,this.openEmotionList),this.addUIClick(this.ui.clickNode,this.hide),this.initTalkList(),this.initEmotionList()}show(){super.show()}initTalkList(){this.ui.wordsList.itemRenderer=Laya.Handler.create(this,this.renderTalkItem,null,!1);let t=cfgTable.talkwordsData,e=Object.keys(t).length;this.ui.wordsList.numItems=e}initEmotionList(){this.ui.emotionList.itemRenderer=Laya.Handler.create(this,this.renderEmotionItem,null,!1);let t=cfgTable.emotionData,e=Object.keys(t).length;this.ui.emotionList.numItems=e}renderTalkItem(t,e){new he(t,e)}renderEmotionItem(t,e){new oe(t,e)}openTalkList(){this.ui.c1.selectedIndex=0}openEmotionList(){this.ui.c1.selectedIndex=1}}le.uiName="UIWordsList";class re{constructor(){this.aiSpeak=!0,this.emotionList=[],this.talkList=[],this.addEvent(),Bo.eventMgr.on(r,this,this.resetGame),this.emotionList=[],this.talkList=[];for(let t in cfgTable.emotionData)this.emotionList.push(cfgTable.emotionData[t].id);for(let t in cfgTable.talkwordsData)this.talkList.push(cfgTable.talkwordsData[t].id)}addEvent(){let t=Bo.common.gameUI.ui;t.wordsBtn.visible=!0,t.wordsBtn.onClick(this,this.openTalkView),t.aiWordsBtn.visible=!0,t.aiWordsBtn.onClick(this,this.clickAIState)}openTalkView(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.uiMgr.Show(le)}closeTalkView(){Bo.uiMgr.Hide(le)}clickAIState(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.aiSpeak=!this.aiSpeak,this.changeAIState(this.aiSpeak)}changeAIState(t){this.aiSpeak=t;let e=Bo.common.gameUI.ui.aiWordsBtn;e.c1.selectedIndex=t?0:1}showSelfTalk(t){let e=Bo.common.gameUI.ui;e.selfTalk.visible=!0,e.selfTalk.myNode.c1.selectedIndex=1,e.selfTalk.myNode.txt.text=cfgTable.talkwordsData[t].msg,e.selfTalk.t0.play()}showSelfEmotion(t){let e=Bo.common.gameUI.ui;e.selfTalk.visible=!0,e.selfTalk.myNode.c1.selectedIndex=0,this.selfSpine&&this.selfSpine.dispose(),e.selfTalk.myNode.spineRoot&&e.selfTalk.myNode.spineRoot.displayObject.destroyChildren();let i=cfgTable.emotionData[t].spine;this.selfSpine=new X(i,()=>{let t={x:e.selfTalk.myNode.spineRoot.width/2-2,y:e.selfTalk.myNode.spineRoot.height/2,scaleX:.35,scaleY:.35};this.selfSpine.play(t,0,!1,e.selfTalk.myNode.spineRoot.displayObject)}),e.selfTalk.t0.play()}showAITalk(t){if(!this.aiSpeak)return;if(jo.gameData.gameCount<2)return;t<1&&(t=this.getRandTalk());let e=Bo.common.gameUI.ui;e.aiTalk.visible=!0,e.aiTalk.myNode.c1.selectedIndex=1,e.aiTalk.myNode.txt.text=cfgTable.talkwordsData[t].msg,e.aiTalk.t0.play()}getRandTalk(){let t=Bo.tools.random(0,this.talkList.length);return this.emotionList[t]}getRandEmotion(){let t=Bo.tools.random(0,this.emotionList.length);return this.emotionList[t]}showAIEmotion(t){if(!this.aiSpeak)return;if(jo.gameData.gameCount<2)return;t<1&&(t=this.getRandEmotion());let e=Bo.common.gameUI.ui;e.aiTalk.visible=!0,e.aiTalk.myNode.c1.selectedIndex=0,this.aiSpine&&this.aiSpine.dispose(),e.aiTalk.myNode.spineRoot&&e.aiTalk.myNode.spineRoot.displayObject.destroyChildren();let i=cfgTable.emotionData[t].spine;this.aiSpine=new X(i,()=>{let t={x:e.aiTalk.myNode.spineRoot.width/2-2,y:e.aiTalk.myNode.spineRoot.height/2,scaleX:.35,scaleY:.35};this.aiSpine.play(t,0,!1,e.aiTalk.myNode.spineRoot.displayObject)}),e.aiTalk.t0.play()}resetGame(){let t=Bo.common.gameUI.ui;t.aiTalk.visible=!1,t.selfTalk.visible=!1,this.aiSpine&&this.aiSpine.dispose(),this.selfSpine&&this.selfSpine.dispose(),t.aiTalk.myNode.spineRoot&&t.aiTalk.myNode.spineRoot.displayObject.destroyChildren(),t.selfTalk.myNode.spineRoot&&t.selfTalk.myNode.spineRoot.displayObject.destroyChildren(),this.closeTalkView()}}class ce{constructor(){this.comboTimes=1,this.skillTimes=0,this.wordsSpine=new X("yxz_jingqiu"),this.comboSpine=new X("yxz_liangan"),this.skillSpine=new X("yiganxqiu"),this.scoreSpine=new X("defen")}setClassicCombo(t){t&&(this.comboTimes=0)}playClassicWords(t,e){this.callback=e;let i=t,s=Bo.common.gameUI.ui.classicWorldsNode.displayObject,n=this.wordsSpine.play({x:0,y:0,scaleX:1,scaleY:1},i,!1,s,()=>{n.destroy(!0),this.playClassicTimes()})}playClassicTimes(){if(this.comboTimes++,this.comboTimes<=1)this.callback&&this.callback();else{let t=this.comboTimes-1,e={x:0,y:0,scaleX:1,scaleY:1},i=Bo.common.gameUI.ui.classicWorldsNode.displayObject,s=this.comboSpine.play(e,t,!1,i,()=>{s.destroy(!0),this.callback&&this.callback()})}}playBigSkillTimes(t,e){if(t<=0)return void(e&&e());this.callback=e;let i="sz_0",s=0;this.getWordsImg(t,i,()=>{let e={x:0,y:0,scaleX:1,scaleY:1},i=Bo.common.gameUI.ui.bigMoveWorldsNode.displayObject,n=this.skillSpine.createSpine(e,i,1),a="",o="";t<=9?(a=`res/d2Res/sz_0${t}.png`,n.setSlotSkin("sz_6",Laya.loader.getRes(a)),s=0):(a=`res/d2Res/sz_0${t%10}.png`,o=`res/d2Res/sz_0${Math.floor(t/10)}.png`,n.setSlotSkin("sz_7",Laya.loader.getRes(a)),n.setSlotSkin("sz_6",Laya.loader.getRes(o)),s=1),this.skillSpine.play(e,s,!1,i,()=>{n.destroy(!0),Bo.common.gameMgr.playSkillTips(),this.playScore(t),Bo.common.playRandomMutiBallBigSkillSound()},n)})}playScore(t){let e=0;this.getWordsImg(t,"sz_",()=>{let i={x:0,y:0,scaleX:1,scaleY:1},s=Bo.common.gameUI.ui.bigMoveWorldsNode.displayObject,n=this.scoreSpine.createSpine(i,s,1),a="",o="";t<=9?(a=`res/d2Res/sz_${t}.png`,n.setSlotSkin("sz_6",Laya.loader.getRes(a)),e=0):(a=`res/d2Res/sz_${t%10}.png`,o=`res/d2Res/sz_${Math.floor(t/10)}.png`,n.setSlotSkin("sz_6",Laya.loader.getRes(a)),n.setSlotSkin("sz_7",Laya.loader.getRes(o)),e=1),this.scoreSpine.play(i,e,!1,s,()=>{n.destroy(!0),this.callback&&this.callback()},n)})}getWordsImg(t,e="",i){let s=[];t<=9?s.push({url:`res/d2Res/${e+t}.png`,type:Laya.Loader.IMAGE}):s.push({url:`res/d2Res/${e}${t%10}.png`,type:Laya.Loader.IMAGE},{url:`res/d2Res/${e}${Math.floor(t/10)}.png`,type:Laya.Loader.IMAGE}),Laya.loader.load(s,Laya.Handler.create(this,()=>{i&&i()}))}}class de extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIRodMethod")}onConstruct(){this.n24=this.getChild("n24"),this.white=this.getChild("white"),this.dot=this.getChild("dot"),this.sureBtn=this.getChild("sureBtn"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n5=this.getChild("n5"),this.n14=this.getChild("n14"),this.t0=this.getTransition("t0")}}de.URL="ui://isxx5ak7hkrz3tv";class ue extends A{constructor(){super(),this.isPressd=!1}onConstructor(){this.ui=de.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.sureBtn,this.closeSelf),this.moveDir=new Laya.Vector2,this.moveDest=new Laya.Vector2,this.centerPos=new Laya.Vector2,Bo.common.uiRodMethod=this}show(){super.show(),Bo.common.gameMgr.gamePause=!0,this.openPressDotEvent(),this.gameRod=Bo.common.gameUI.ui.rodMethodNode,this.centerPos.x=this.ui.white.x,this.centerPos.y=this.ui.white.y,this.moveDest.x=this.centerPos.x-Bo.common.rodOffest.x,this.moveDest.y=this.centerPos.y-Bo.common.rodOffest.y,this.setDot()}setDot(){this.ui.dot.x=this.moveDest.x,this.ui.dot.y=this.moveDest.y}closeSelf(){Bo.common.rodOffest.x=this.centerPos.x-this.moveDest.x,Bo.common.rodOffest.y=this.centerPos.y-this.moveDest.y,this.gameRod.dot.x=this.gameRod.bg.x-Bo.common.rodOffest.x,this.gameRod.dot.y=this.gameRod.bg.y-Bo.common.rodOffest.y,Bo.common.gameMgr.gamePause=!1,this.hide()}openPressDotEvent(){this.closePressDotEvent(),this.ui.dot.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_MOVE,this,this.onDown)}closePressDotEvent(){this.ui.dot.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_MOVE,this,this.onDown)}onDown(t){if(t.type==Laya.Event.MOUSE_DOWN?this.isPressd=!0:t.type==Laya.Event.MOUSE_UP&&this.isPressd&&(this.isPressd=!1),!this.isPressd)return;this.moveDest.x=t.stageX,this.moveDest.y=t.stageY,Bo.tools.getV2SqDis(this.moveDest,this.centerPos)>6724&&(this.moveDir=Bo.tools.getV2Dir(this.centerPos.x,this.centerPos.y,t.stageX,t.stageY,this.moveDir),this.moveDest=Bo.tools.getV2Dest(this.centerPos.x,this.centerPos.y,this.moveDir,82,this.moveDest)),this.setDot()}resetRod(){this.ui.dot.x=this.ui.white.x,this.ui.dot.y=this.ui.white.y,this.gameRod.dot.x=this.gameRod.bg.x,this.gameRod.dot.y=this.gameRod.bg.y,Bo.common.rodOffest.x=0,Bo.common.rodOffest.y=0}}ue.uiName="UIRodMethod";class ge extends A{constructor(){super(),this.powerNum=0,this.isD3Inited=!1,this.isPrePlay=!1,this.isMoveRod=!1,this.eventObj={curX:0,curY:0,lastX:0,lastY:0,starX:0,starY:0},this.rulerDis=20,this.rulerOffset=0}onConstructor(){this.ui=at.createInstance(),this.contentPane=this.ui,this.ui.x+=Bo.common.sysOffestNum,this.ui.border.alpha=Bo.common.showDebug?1:0,this.isEject=!1,Bo.common.gameUI=this,this.initSelf()}isTurnSelf(){if(!Bo.common.d2World.openCheckStill&&Bo.common.gameMgr.selfTurn&&Bo.common.gameMgr.finishOneShoot)return!0}initSelf(){let t=this.ui.topNode;t.selfBallList.itemRenderer=Laya.Handler.create(this,this.renderSelfDisplayBalls,null,!1),t.aiBallList.itemRenderer=Laya.Handler.create(this,this.renderAIDisplayBalls,null,!1),this.barInfo={},this.barInfo.curY=0,this.barInfo.height=this.ui.powerNode.height,this.barInfo.showStarY=this.ui.powerNode.showImg.y,this.barInfo.powerStartY=this.ui.powerNode.y,Bo.common.aiPlayer=new z,Bo.common.gameMgr=new Qt,Bo.common.skillMgr=new ne,Bo.common.wordsMgr=new ce,Bo.common.talkMgr=new re,Bo.common.classicEmotionSpine=new X("yxz_bqwz",()=>{console.log("加载经典模式表情文件chenggon !")}),Bo.common.awardSpine=new X("jinbi",()=>{console.log("挑战模式奖励模式spine加载成功!")}),Bo.eventMgr.off(r,this,this.resetGame),Bo.eventMgr.on(r,this,this.resetGame),this.addUIClick(this.ui.rodMethodNode,this.addRodMethodClick),this.addUIClick(this.ui.returnBtn,this.returnHome),this.addUIClick(this.ui.helpBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeChallengeNode.helpLineBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeNormalNode.helpLineBtn,this.clickHelpLineBtn)}returnHome(){Bo.uiMgr.Show(Jt,"确定退出游戏吗?","老板,要不您再玩会儿?",v.exitGame)}addRodMethodClick(){this.isTurnSelf()&&Bo.uiMgr.Show(ue)}clickHelpLineBtn(t=!1){this.isTurnSelf()&&Bo.uiMgr.Show(Kt,0,0,t=>{t&&(Bo.common.longHelpLine=!0,Bo.common.d2World.getHelpLine(),Moyu.sendDataEvent("guideNum"))})}renderSelfDisplayBalls(t,e){let i="q"+Bo.common.gameMgr.selfBallArr[t];e.myImg.url=Bo.common.getGameIconUrl(i)}renderAIDisplayBalls(t,e){let i="q"+Bo.common.gameMgr.aiBallArr[t];e.myImg.url=Bo.common.getGameIconUrl(i)}updateMode(){Bo.common.gameMode==f.classic?this.ui.topNode.scoreNode.visible=!1:Bo.common.gameMode==f.bigMove&&(this.ui.topNode.scoreNode.visible=!0)}show(){super.show(),this.ui.alpha=0,this.updateSelf(),Bo.soundMgr.playMusic("gamemusic01"),Bo.common.gameMgr.gamePause=!1,Bo.common.gameUI.ui.blackAni.visible=!1,Bo.common.gameUI.ui.whiteAni.visible=!1,this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1,this.updateHead()}updateSelf(){if(Bo.common.gameMode==f.classic)this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=0,this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.awardTxt.text=Bo.common.passAwardCoin+"";else if(Bo.common.gameMode==f.bigMove){this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=1,this.ui.topNode.middleNode.visible=!1;let t=Bo.cfgMgr.getMaxBigMoveLength(),e=Bo.common.randomNum(1,t);0==jo.getSkillGuide()&&(e=1),Bo.common.bigMoveLevelIndex=e}else if(Bo.common.gameMode==f.placeBall){let t=cfgTable.placeballData[Bo.common.placeBallCurLevel];this.ui.c1.selectedIndex=1+t.type,this.ui.alpha=1,this.startGame()}this.updateMode(),this.initD3world(),this.initD2world()}startGame(){this.ui.snowNode.visible=Math.random()<=.1,this.ui.d2Node.visible=!1,Bo.common.d3World.d3Hand.gameObj.active=!1,Bo.common.d3World.tableSrc.init(),Bo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06,this.cameraViewChange(()=>{switch(Bo.common.d3World.tableSrc.gameObj.transform.localPositionY=0,Bo.common.gameMode){case f.classic:Bo.common.d3World.d3Hand.gameObj.active=!0,this.playPutBallD3Ani();break;case f.bigMove:this.enterGame(),Laya.timer.once(500,this,()=>{this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.t0.play()});break;case f.placeBall:this.enterGame()}}),W.showBanner(!1)}enterGame(){this.ui.d2Node.visible=!0,Bo.common.d3World.d3Hand.gameObj.active=!1,Bo.common.showOneCamera("mainCamera"),Moyu.recordGame(30,!0),this.isPrePlay||(this.isPrePlay=!0,Bo.common.d3World.prePlayEft()),Bo.common.gameMgr.gameReady(),this.openAllEvent(),this.ui.snowNode.visible=!1;let t=Bo.common.gameMode!=f.bigMove&&1==jo.getGuideHelpLine();this.ui.helpBtn.visible=t}showHelpLineGuide(){let t=jo.getGuideHelpLine();Bo.common.gameMode==f.classic&&0==t&&(this.ui.helpBtn.visible=!0,this.ui.guideNode.visible=!0)}setTurnAlpha(t){this.ui.keduNode.alpha=t,this.ui.ganNode.alpha=t,this.ui.rodMethodNode.alpha=t,this.ui.helpBtn.alpha=t?1:0}cameraViewChange(t){Bo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06;let e=Bo.common.d3World.cameraObj.visitAngle.transform;Bo.common.showOneCamera("visitAngle"),e.localRotationEulerY=180,e.localRotationEulerZ=0,Laya.Tween.to(e,{localRotationEulerY:0},3e3,null,Laya.Handler.create(this,()=>{Laya.Tween.to(e,{localRotationEulerZ:-70},800,null,Laya.Handler.create(this,()=>{t&&t()}))}))}playPutBallD3Ani(){Bo.common.showOneCamera("mainCamera");let t=Bo.common.d3World.d3Hand;t.gameObj.active=!0,t.transform.localPositionZ=3,Laya.Tween.to(t,{posZ:0},500,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{Laya.Tween.to(t,{posZ:10},400,null,Laya.Handler.create(this,()=>{t.gameObj.active=!1,this.enterGame()}),400)}))}updateHead(){let t=Moyu.getUserInfo();this.ui.topNode.selfNameTxt.text=t.nickName,Bo.common.createHead(this.ui.topNode.selfHeadLoader,t.headIcon,80);let e=Bo.cfgMgr.getRandomUserInfo();jo.getSkillGuide()<1?(this.ui.topNode.aiNameTxt.text="万宁台球",this.ui.topNode.aiHeadLoader.url="res/icon.png"):(this.ui.topNode.aiNameTxt.text=e.name,this.ui.topNode.aiHeadLoader.url=x+e.icon)}initD2world(){let t=this.ui.d2Root.displayObject;t.getComponent(nt)||(Bo.common.d2World=t.addComponent(nt)),Bo.common.d2World.initSelf()}initD3world(){if(this.isD3Inited)return;this.isD3Inited=!0;let t=Bo.common.d3Scene;this.ui.d3Root.displayObject.addChild(t),t.active=!0,Bo.common.d3World.tableSrc.setBorderPos()}onRootMove(t){let e=Bo.common.d2World.rootBall;this.ui.moveNode.x=t.x,this.ui.moveNode.y=t.y,e.gameObj.x=t.x,e.gameObj.y=t.y,e.d3BallSrc.setTransPos(t.x,t.y)}aiRootMove(t){t?this.hideBallUI():(this.showBallUI(),Bo.common.d2World.getHelpLine())}aiForce(t,e=0){this.pressTarget=k.powerNode,1==t?this.onEventUp({force:!0}):2==t&&this.onEventMove({stageY:e,force:!0})}onEventPress(t){if(t.stopPropagation&&t.stopPropagation(),!this.isTurnSelf())return;switch(t.target){case this.ui.myPowerNode.displayObject:this.pressTarget=k.powerNode,this.barInfo.curY=t.stageY,this.updateBarInfo();break;case this.ui.moveNode.displayObject:this.pressTarget=k.moveNode,this.hideBallUI(),this.eventObj.curX=this.ui.moveNode.x,this.eventObj.curY=this.ui.moveNode.y,this.ui.moveNode.finger.visible=!1,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY;break;case this.ui.rulerClickNode.displayObject:this.pressTarget=k.rulerNode,this.eventObj.lastY=t.stageY;break;case this.ui.d2Root.displayObject:this.pressTarget=k.d2Root,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY,this.eventObj.starX=t.stageX,this.eventObj.starY=t.stageY,this.eventObj.curX=0,this.eventObj.curY=0,Bo.common.d2World.d2Gan.setGanLastInfo(),this.rulerOffset=0}}onEventMove(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:this.barInfo.curY=t.stageY,this.updateBarInfo(),this.isMoveRod=!0;break;case k.moveNode:let e=Bo.common.d2World.rootBall,i=e.gameObj.width/2,s=this.eventObj.curX+t.stageX-this.eventObj.lastX,n=this.eventObj.curY+t.stageY-this.eventObj.lastY,a=Bo.common.d2World.borderRect;s<=a.x+i?s=a.x+i:s>=a.x+a.width-i&&(s=a.x+a.width-i),n<=a.y+i?n=a.y+i:n>=a.y+a.height-i&&(n=a.y+a.height-i),Bo.common.gameMgr.isOpenBall&&s>=a.x+a.openBallW-i&&(s=a.x+a.openBallW-i),this.ui.moveNode.x=s,this.ui.moveNode.y=n,e.gameObj.x=s,e.gameObj.y=n,e.d3BallSrc.setTransPos(s,n),this.isMoveRod=!0;break;case k.rulerNode:let o=t.stageY-this.eventObj.lastY;this.eventObj.lastY=t.stageY;let h=this.ui.rulerNode.img1,l=this.ui.rulerNode.img2;h.y+=o,l.y+=o,this.rulerOffset+=o,Math.abs(this.rulerOffset)>=this.rulerDis&&(this.rulerOffset=0,Bo.soundMgr.playSound("inch",1,10)),Bo.common.d2World.d2Gan.rotateSelf(o,!0);let r=h.height;if(this.checkGuide(),this.isMoveRod=!0,h.y>=r)return h.y=-r,void(l.y=0);if(h.y<=-r)return h.y=r,void(l.y=0);if(l.y>=r)return l.y=-r,void(h.y=0);if(l.y<=-r)return l.y=r,void(h.y=0);break;case k.d2Root:this.eventObj.curX=t.stageX,this.eventObj.curY=t.stageY;let c=this.checkRodMoveDir();Bo.common.d2World.d2Gan.rotateSelf(c),this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY}}onEventUp(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:if(this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text="",this.powerNum>0){Bo.eventMgr.event(h),Bo.common.d2World.shoot(this.powerNum),Bo.common.d2World.d2Gan.shoot(),Bo.common.d2World.d2HelpLine.shoot(),this.finishGuide(),this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1;let t="";t=this.powerNum<=30?"gan_30":this.powerNum<=60?"gan_50":"gan_80",Bo.soundMgr.playSound(t)}break;case k.moveNode:let e=Bo.common.d2World.rootBall,i=Bo.common.gameMgr.lastRootBallPos.x,s=Bo.common.gameMgr.lastRootBallPos.y;this.judgeBallIntersect()?(this.ui.moveNode.x=i,this.ui.moveNode.y=s,e.gameObj.x=i,e.gameObj.y=s,e.d3BallSrc.setTransPos(i,s),Bo.uiMgr.Show(_t,"错误的放置位置")):(Bo.common.gameMgr.lastRootBallPos.x=e.gameObj.x,Bo.common.gameMgr.lastRootBallPos.y=e.gameObj.y),this.showBallUI(),this.ui.moveNode.finger.visible=!0,Bo.common.d2World.getHelpLine();break;case k.rulerNode:break;case k.d2Root:Math.pow(this.eventObj.starX-t.stageX,2)+Math.pow(this.eventObj.starY-t.stageY,2)<=25&&this.moveToClickDot(t)}this.pressTarget=-1}checkGuide(){0==jo.getSkillGuide()&&Bo.common.gameMode==f.bigMove&&1==Bo.common.guideStep&&(Bo.common.guideStep++,Bo.common.gameUI.ui.guide2.visible=!1,Bo.common.gameUI.ui.guide3.visible=!0)}finishGuide(){0==jo.getSkillGuide()&&Bo.common.gameMode==f.bigMove&&(Bo.common.guideStep=10,this.closeAllGuide())}closeAllGuide(){Bo.common.gameUI.ui.guide1.visible=!1,Bo.common.gameUI.ui.guide2.visible=!1,Bo.common.gameUI.ui.guide3.visible=!1}updateBarInfo(){let t=this.ui.powerNode.y,e=(this.barInfo.curY-t)/this.barInfo.height;e>=1&&(e=1),e<=0&&(e=0),this.powerNum=Math.ceil(100*e),this.ui.powerNode.value=this.powerNum,this.ui.powerNode.showImg.y=this.barInfo.showStarY+this.powerNum/100*this.barInfo.height,this.ui.colorNode.value=this.powerNum,this.ui.powerEft.y=this.barInfo.powerStartY+this.powerNum/100*this.barInfo.height,this.ui.powerEft.visible=0!=this.powerNum,this.ui.colorNode.visible=0!=this.powerNum,this.ui.powerTxt.text=this.powerNum+"",Bo.common.d2World.d2Gan.storagePower(this.powerNum)}forceCancel(){this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text=""}checkRodMoveDir(){let t=this.eventObj.lastX-Bo.common.sysOffestNum-Bo.common.d2World.rootBall.gameObj.x,e=this.eventObj.lastY-Bo.common.d2World.rootBall.gameObj.y;return t>=0&&e<=0?this.checkDir():t<0&&e<0?this.checkDir(1,-1):t<0&&e>0?this.checkDir(-1,-1):this.checkDir(-1,1)}checkDir(t=1,e=1){let i=this.eventObj.curX-this.eventObj.lastX,s=this.eventObj.curY-this.eventObj.lastY;if(0==s)return i*t;if(0==i)return s*e;let n=s/i;return Math.abs(n)>=1?s*e:i*t}judgeBallIntersect(){let t,e=Bo.common.d2World.rootBall,i=Bo.common.d2World.ballArr,s=e.gameObj.width/2,n=!1;for(let a=0;a<i.length&&((t=i[a]).number==e.number||!(n=Math.pow(e.gameObj.x-t.gameObj.x,2)+Math.pow(e.gameObj.y-t.gameObj.y,2)<=4*s*s));a++);return n}hideBallUI(){let t=Bo.common.d2World.d2Gan;t.ui.isDisposed||(t.ui.visible=!1);let e=Bo.common.d2World.d2HelpLine;e.ui.isDisposed||(e.ui.visible=!1);let i=Bo.common.d2World.rootBall;i.destroyed||(i.gameObj.active=!1)}showBallUI(){let t=Bo.common.d2World.d2Gan;t.ui.isDisposed||(t.ui.visible=!0);let e=Bo.common.d2World.d2HelpLine;e.ui.isDisposed||(e.ui.visible=!0);let i=Bo.common.d2World.rootBall;i.destroyed||(i.gameObj.active=!0)}moveToClickDot(t){if(!this.isMoveRod&&!Bo.common.clickedBall){let e=Bo.common.d2World.rootBall.gameObj,i=t.stageX-Bo.common.sysOffestNum,s=t.stageY,n=i-e.x,a=s-e.y,o=Bo.common.getfguiRotation(n,a);Bo.common.d2World.d2Gan.ui.rotation=o,Bo.common.d2World.getHelpLine()}this.isMoveRod=!1,Bo.common.clickedBall=!1}openAllEvent(){this.closeAllEvent(),this.ui.myPowerNode.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.moveNode.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.rulerClickNode.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.on(Laya.Event.MOUSE_MOVE,this,this.onEventMove),this.ui.on(Laya.Event.MOUSE_UP,this,this.onEventUp),this.ui.on(Laya.Event.MOUSE_OUT,this,this.onEventUp)}closeAllEvent(){this.ui.myPowerNode.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.moveNode.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.rulerClickNode.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.off(Laya.Event.MOUSE_MOVE,this,this.onEventMove),this.ui.off(Laya.Event.MOUSE_UP,this,this.onEventUp),this.ui.off(Laya.Event.MOUSE_OUT,this,this.onEventUp)}resetGame(){this.closeAllEvent(),this.hideBallUI(),Bo.common.gameMgr.gamePause=!0}}ge.uiName="UIGame";class me extends A{constructor(){super(),this.curType=""}onConstructor(){this.ui=Y.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.myNode.coinBtn,this.switchBtn,["coin"]),this.addUIClick(this.ui.myNode.diamondBtn,this.switchBtn,["diamond"]),this.updateUI(),this.addUIClick(this.ui.myNode.node1,this.shareGetDiamond),this.addUIClick(this.ui.myNode.node2,this.videoGetDiamond),this.addUIClick(this.ui.myNode.node6,this.openPutBallView),this.addUIClick(this.ui.myNode.node3,this.videoGetCoin),this.addUIClick(this.ui.myNode.node4,this.convertCoin,[4]),this.addUIClick(this.ui.myNode.node5,this.convertCoin,[5])}show(t){super.show(),this.curType=0==t?"coin":"diamond",this.switchBtn(""),this.ui.t0.play(),this.ui.myNode.node1.c1.selectedIndex=Moyu.isTT?0:1,W.showInsert(!0)}closeSelf(){this.hide()}updateUI(){let t,e,i=cfgTable.moneyData;for(const s in i)t=i[s],e=this.ui.myNode["node"+s],parseInt(s)<=2?e.diamondTxt.text="+"+t.num:(e.coinTxt.text=t.num,e.diamondTxt.text=t.get.split("_")[1]);this.updateDiamondShare()}updateDiamondShare(){let t=jo.getShareDiamondTimes();t>=Bo.common.maxShareDiamondTimes?(this.ui.myNode.node1.shareTxt.text="明日再来",this.ui.myNode.node1.touchable=!1):(this.ui.myNode.node1.shareTxt.text=`(${t}/${Bo.common.maxShareDiamondTimes})`,this.ui.myNode.node1.touchable=!0)}switchBtn(t){if(""==t)t=this.curType;else{if(this.curType==t)return;this.curType=t}"coin"==t?(this.ui.myNode.coinBtn.c1.selectedIndex=0,this.ui.myNode.diamondBtn.c1.selectedIndex=1,this.ui.myNode.coinBtn.displayObject.zOrder=10,this.ui.myNode.diamondBtn.displayObject.zOrder=9,this.ui.myNode.c1.selectedIndex=0):(this.ui.myNode.coinBtn.c1.selectedIndex=1,this.ui.myNode.diamondBtn.c1.selectedIndex=0,this.ui.myNode.coinBtn.displayObject.zOrder=9,this.ui.myNode.diamondBtn.displayObject.zOrder=10,this.ui.myNode.c1.selectedIndex=1)}convertCoin(t){let e=cfgTable.moneyData[t],i=e.num,s=e.get.split("_")[1],n=parseInt(s);jo.diamondEnough(n)?(jo.setDiamond(-n),Bo.common.playObjFlyAnim(i,L.coin),Bo.uiMgr.Show(_t,"兑换成功!")):(Bo.uiMgr.Show(_t,"钻石不足~"),this.switchBtn("diamond"))}videoGetDiamond(){let t=cfgTable.moneyData[2].num;Moyu.showVideoAd(()=>{Bo.common.playObjFlyAnim(t,L.diamond),this.closeSelf()},N.addDiamond)}videoGetCoin(){Moyu.showVideoAd(()=>{Bo.common.playObjFlyAnim(2e3,L.coin),this.closeSelf()},N.addCoin)}shareGetDiamond(){if(jo.getShareDiamondTimes()>=Bo.common.maxShareDiamondTimes)Bo.uiMgr.Show(_t,"明日再来~");else if(Moyu.isTT){let t=cfgTable.moneyData[1].num;Moyu.shareVideo="",Moyu.shareGame(e=>{e?(Bo.uiMgr.Show(_t,"分享成功!"),Bo.common.playObjFlyAnim(t,L.diamond),jo.setShareDiamondTimes(1),this.updateDiamondShare()):Bo.uiMgr.Show(_t,"分享失败!")})}else Moyu.showVideoAd(()=>{let t=Bo.common.randomNum(50,100);Bo.common.playObjFlyAnim(t,L.diamond),jo.setShareDiamondTimes(1),this.updateDiamondShare()},N.randomDiamond)}openPutBallView(){let t=Bo.uiMgr.getUI(Xt),e=Bo.uiMgr.getUI(Ht),i=Bo.uiMgr.getUI(Nt),s=Bo.uiMgr.getUI(ge);t&&!t.isHide&&(Bo.uiMgr.Hide(Xt),Bo.uiMgr.Show(Yt)),e&&!e.isHide&&Bo.uiMgr.Hide(Ht),s&&!s.isHide&&Bo.uiMgr.Hide(ge),i&&!i.isHide||Bo.uiMgr.Show(Nt),this.closeSelf()}}me.uiName="UIAddProp";class ye{constructor(t){this.leftTime=0,this.ui=t,this.ui.addCoinBtn.onClick(this,this.addCoin),this.ui.addDiamondBtn.onClick(this,this.addDiamond),this.ui.addPowerBtn.onClick(this,this.addPower),this.ui.c1.selectedIndex=1,Bo.eventMgr.on(c,this,this.coinChange),Bo.eventMgr.on(d,this,this.diamondChange),Bo.eventMgr.on(y,this,this.powerChange),Bo.eventMgr.on(p,this,this.checkPowerTime),this.coinChange(),this.diamondChange(),this.powerChange()}addPower(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.uiMgr.Show(It)}powerChange(){let t=jo.getPower();this.ui.powerTxt.text=t+""}checkPowerTime(){let t=(new Date).getTime(),e=jo.getPowerTime();0==e&&(e=t,jo.setPowerTime(t));let i=jo.getPower(),s=Math.floor((t-e)/(1e3*Bo.common.powerRecoverNum));if(Laya.timer.clearAll(this),i>=Bo.common.natureMaxPower)return this.ui.powerTimeTxt.text="",void jo.setPowerTime(t);if(i+s>=Bo.common.natureMaxPower)jo.setPower(Bo.common.natureMaxPower,!1),this.ui.powerTimeTxt.text="",jo.setPowerTime(t);else{s>0&&(jo.setPower(s),jo.setPowerTime(t));let i=Math.floor((t-e-s*Bo.common.powerRecoverNum*1e3)/1e3);this.leftTime=Bo.common.powerRecoverNum-i,this.leftTime<=0&&(this.leftTime=0),this.ui.powerTimeTxt.text=Bo.common.getMSTime(this.leftTime),Laya.timer.loop(1e3,this,this.updatePowerTime)}}updatePowerTime(){this.leftTime-=1,this.ui.powerTimeTxt.text=Bo.common.getMSTime(this.leftTime),this.leftTime<=0&&this.checkPowerTime()}coinChange(){this.ui.coinTxt.text=jo.getCoin()+""}diamondChange(){this.ui.diamondTxt.text=jo.getDiamond()+""}addCoin(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Moyu.sendDataEvent("AddCoinBtn"),Bo.uiMgr.Show(me,0)}addDiamond(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Moyu.sendDataEvent("AddDiamondBtn"),Bo.uiMgr.Show(me,1)}}class pe extends A{constructor(){super(),this.curKey=0}onConstructor(){this.ui=G.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui.drawBtn,this.startDraw),this.initDraw(),this.initUI(),this.ui.myNode.flashNode.c1.selectedIndex=1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.ui.t0.play(),this.playSecretaryIdle(),this.updateDraw(),this.checkFree(),W.bannerDelay>0&&(this.ui.closeNode.closeBtn.visible=!1,Laya.timer.once(W.bannerDelay,this,()=>{this.ui.closeNode.closeBtn.visible=!0})),W.showRateBanner()}hide(){Laya.timer.clearAll(this),super.hide()}checkFree(){let t=jo.getDailyfreeDrawTimes();this.ui.drawBtn.c1.selectedIndex=t>0?0:1}initDraw(){this.drawObj=[];let t,e=cfgTable.drawData,i=0;for(const s in e)i+=(t=e[s]).weight,this.drawObj.push(i);this.allWeight=i}initUI(){let t,e,i,s=cfgTable.drawData;for(const n in s)t=s[n],e=this.ui.myNode.rotNode["img"+n],i=this.ui.myNode.rotNode["txt"+n],e.url=Bo.common.getGameIconUrl(t.icon),i.visible=!0,t.award>2?(e.rotation=0,i.text=cfgTable.ballrodData[t.award-1].name):(e.rotation=t.rotation,i.text=t.num)}getCurkey(){let t,e=Math.random()*this.allWeight;for(let i=0;i<this.drawObj.length-1;i++)if(t=this.drawObj[i],0==i){if(e<t)return i+1}else if(e>=t&&e<this.drawObj[i+1])return i+1;return 2}startDraw(){jo.getDailyfreeDrawTimes()>0?(this.beginDraw(),jo.setDailyfreeDrawTimes(0),this.checkFree()):(Moyu.sendDataEvent("turntable"),Moyu.showVideoAd(()=>{this.beginDraw()},N.draw))}beginDraw(){this.ui.myNode.flashNode.c1.selectedIndex=0,this.ui.drawBtn.touchable=!1,this.curKey=this.getCurkey(),console.log("当前key",this.curKey);let t=60*(this.curKey-1)+1080,e=this.ui.myNode.rotNode;e.rotation=0,Laya.Tween.to(e,{rotation:t},1500,Laya.Ease.cubicOut,Laya.Handler.create(this,()=>{console.log("旋转完成"),this.ui.drawBtn.touchable=!0,this.getAward()}))}getAward(){let t=cfgTable.drawData[this.curKey],e=new U;e.type=t.award,e.num=t.num,Bo.common.getAward([e],()=>{jo.setDrawTimes(1),this.updateDraw(),this.ui.myNode.flashNode.c1.selectedIndex=1})}updateDraw(){let t=jo.getDrawTimes(),e=jo.getDrawAwardTimes();Math.floor(t/3)>e?(this.ui.extraNode.boxBtn.t0.play(null,-1),this.ui.extraNode.boxBtn.touchable=!0,this.ui.extraNode.tipsTxt.text="3/3",this.ui.extraNode.barNode.width=265,this.getExtraAward()):(this.ui.extraNode.boxBtn.t0.stop(),this.ui.extraNode.boxBtn.touchable=!1,this.ui.extraNode.tipsTxt.text=`${t%3}/3`,this.ui.extraNode.barNode.width=t%3*265/3);let i=cfgTable.drawData[1];if(0==e)this.ui.myNode.rotNode.img1.url=Bo.common.getComponentUrl("s"+i.icon),this.ui.myNode.rotNode.txt1.text=cfgTable.ballrodData[i.award-1].name,this.ui.myNode.rotNode.img1.rotation=0;else{let t=i.nextid;this.ui.myNode.rotNode.img1.url=Bo.common.getGameIconUrl(t[2]),this.ui.myNode.rotNode.txt1.text=t[1],this.ui.myNode.rotNode.img1.rotation=0}}getExtraAward(){let t=jo.getDrawTimes(),e=jo.getDrawAwardTimes(),i=cfgTable.drawData[1],s=new U;0==e?(s.num=i.num,s.type=i.award,Bo.common.getAward([s],()=>{let e=Math.floor(t/3);jo.setDrawAwardTimes(e),this.updateDraw()})):(s.num=parseInt(i.nextid[1]),s.type=parseInt(i.nextid[0]),Bo.common.getAward([s],()=>{let e=Math.floor(t/3);jo.setDrawAwardTimes(e),this.updateDraw()}))}closeSelf(){this.hide()}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}}pe.uiName="UIDraw";class xe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIFlyEft")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.iconNode=this.getChild("iconNode"),this.txt=this.getChild("txt"),this.txtNode=this.getChild("txtNode")}}xe.URL="ui://isxx5ak7lj6tv4mf";class Ce extends A{constructor(){super(),this.max=8,this.delay=0}onConstructor(){this.ui=xe.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.isMuti=!0,this.ui.x+=Bo.common.sysOffestNum}getArrPos(){if(this.iconPos&&this.iconPos.length>0)return;let t;this.iconPos=[];for(let e=0;e<this.max;e++)t=this.ui["n"+e],this.iconPos.push([t.x,t.y])}show(t,e,i,s,n){super.show(),this.parent.setChildIndex(this,this.parent.numChildren-1),this.getArrPos(),this.updateUI(s),this.updatePos(),this.runFly(e,n),this.runWorlds(t,i)}updateUI(t){let e,i;for(let s=0;s<this.max;s++)e=this.ui["n"+s],i=this.getIconStr(t),e.url=Bo.common.getGameIconUrl(i)}getIconStr(t){switch(t){case L.diamond:return"ty_zs";case L.coin:return"ty_jb"}}updatePos(){let t;for(let e=0;e<this.max;e++)(t=this.ui["n"+e]).x=this.iconPos[e][0],t.y=this.iconPos[e][1]}runFly(t,e){let i,s=0;for(let n=0;n<this.max;n++)(i=this.ui["n"+n]).visible=!0,Laya.Tween.to(i,{x:t.x,y:t.y},600,Laya.Ease.cubicInOut,Laya.Handler.create(this,()=>{i.visible=!1,++s>=this.max&&e&&e()}),20*n)}runWorlds(t,e){let i="+"+e;this.ui.txt.text=i;let s=t.x,n=t.y+50;this.ui.txt.x=s,this.ui.txt.y=n,this.ui.txt.visible=!0,this.ui.txt.alpha=1,Laya.Tween.to(this.ui.txt,{x:s,y:n-30},500,null,Laya.Handler.create(this,()=>{Laya.Tween.to(this.ui.txt,{alpha:0},500,null,Laya.Handler.create(this,()=>{this.ui.txt.visible=!1,this.hide()}))}))}}Ce.uiName="UIFlyEft";class fe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGetAward")}onConstruct(){this.n4=this.getChild("n4"),this.n0=this.getChild("n0"),this.myList=this.getChild("myList"),this.n1=this.getChild("n1"),this.eftNode=this.getChild("eftNode"),this.btnNode=this.getChild("btnNode"),this.t0=this.getTransition("t0")}}fe.URL="ui://isxx5ak7p4tr426";class be extends A{constructor(){super(),this.showTriple=!0}onConstructor(){this.ui=fe.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.btnNode.tripleBtn,this.tripleGetAward),this.addUIClick(this.ui.btnNode.normalBtn,this.normalGetAward),this.ui.myList.itemRenderer=Laya.Handler.create(this,this.renderItem,null,!1)}show(t,e,i){super.show(),this.ui.t0.play(),this.ui.eftNode.visible=!0,this.ui.eftNode.t0.play(Laya.Handler.create(this,()=>{this.ui.eftNode.visible=!1}),1,0,0,.9),this.awardArr=t,this.showTriple=e,this.callback=i,this.ui.btnNode.c1.selectedIndex=this.showTriple?0:1,this.ui.myList.numItems=t.length,Bo.soundMgr.playSound("getaward")}updateSelf(t,e){let i=this.awardArr[t],s=this.getIcon(i.type),n=s;i.type>2&&(n="s"+s),e.myIcon.url=Bo.common.getGameIconUrl(n),e.myIcon.rotation=0,e.numTxt.text=i.num+"",e.numTxt.visible=!(i.type>2),e.nameTxt.text=this.getNameStr(i.type)}renderItem(t,e){this.updateSelf(t,e)}tripleGetAward(){Moyu.showVideoAd(()=>{this.getAward(3)},N.triple)}normalGetAward(){W.isMisVideo()?this.tripleGetAward():this.getAward()}getAward(t=1){this.hide();for(let e=0;e<this.awardArr.length;e++)this.awardArr[e].num*=t;this.callback&&this.callback(1!=t)}getIcon(t){switch(t){case L.diamond:return"ty_zs";case L.coin:return"ty_jb";case L.gan1:return"qg1";case L.gan2:return"qg2";case L.gan3:return"qg3";case L.gan4:return"qg4"}}getNameStr(t){switch(t){case L.diamond:return"钻石";case L.coin:return"金币";case L.gan1:case L.gan2:case L.gan3:case L.gan4:return cfgTable.ballrodData[t-1].name}}}be.uiName="UIGetAward";class Ie{constructor(){this.convertNum=.025,this.VectorUp=new Laya.Vector3(0,1,0),this.scaleV3One=new Laya.Vector3,this.scaleV3Two=new Laya.Vector3,this.posV4=new Laya.Vector4,this.showDebug=!1,this.openGuide=!0,this.rodOffest=new Laya.Vector2(0,0),this.rodAngle=0,this.gameMode=f.classic,this.bigMoveLevelIndex=1,this.bigMoveNeedCoin=1e3,this.classicNiceNeddCoin=1e3,this.passAwardCoin=2e3,this.classicRoomType=1,this.maxPower=20,this.natureMaxPower=5,this.videoPower=2,this.powerRecoverNum=900,this.curPlayerSkillType=0,this.isNewDay=!1,this.clickedBall=!1,this.placeBallCurLevel=0,this.placeBallStarNum=0,this.longHelpLine=!1,this.maxShareDiamondTimes=3,this.guideStep=0,this.temSelfLevel=0,this.extraMoveNum=0,this.curRankID=0,this.rankID={normalStar:12e3,wxStar:12001},this.skillNameList=["从天而降","横扫千军","冰冻杆法","关公杆法"],this.skillIconList=["gf_jn1","gf_jn2","gf_jn4","gf_jn6"],this.btnClickStr="buttonclick",this.maxSkillLevel=10,this.upSkillLevel=!1,this.gameStartTime=0,this._sysOffestNum=0,this.angleV2=new Laya.Vector2,this.rootV=new Laya.Vector2(0,1),this.tempDir1=new Laya.Vector2,this.tempDir2=new Laya.Vector2,this.ballSize=33,this.stPos=new Laya.Point,this.edPos=new Laya.Point,Ie._instance=this,window.common=this}static getInstance(){return this._instance||(this._instance=new Ie),this._instance}get sysOffestNum(){return 0==this._sysOffestNum&&(this._sysOffestNum=(Laya.stage.width-1334)/2),this._sysOffestNum}testShader(){let t=new E;t.texture="res/d3Res/ballTexture/ball1.png",Laya.stage.addChild(t)}playScale(t){Laya.Tween.to(t,{scaleX:1.1,scaleY:1.1},100,null,Laya.Handler.create(this,()=>{Laya.Tween.to(t,{scaleX:1,scaleY:1},100,null,Laya.Handler.create(this,()=>{}))}))}setGroup(t,...e){let i=0;for(let t=0;t<e.length;t++)0==t?i=Laya.Physics3DUtils[`COLLISIONFILTERGROUP_CUSTOMFILTER${e[t]}`]:i|=Laya.Physics3DUtils[`COLLISIONFILTERGROUP_CUSTOMFILTER${e[t]}`];t.collisionGroup=i}setCanGroupWith(t,...e){let i=0;for(let t=0;t<e.length;t++)0==t?i=Laya.Physics3DUtils[`COLLISIONFILTERGROUP_CUSTOMFILTER${e[t]}`]:i|=Laya.Physics3DUtils[`COLLISIONFILTERGROUP_CUSTOMFILTER${e[t]}`];t.canCollideWith=i}loadPrefab(t,e){Laya.loader.create(`prefab/${t}.json`,Laya.Handler.create(this,i=>{let s=new Laya.Prefab;s.json=i;let n=Laya.Pool.getItemByCreateFun(t,s.create,s);e&&e(n)}))}pos2to3Convert(t,e,i){t+=this.sysOffestNum,i.setValue(t,e,0),this.d3World.camera.convertScreenCoordToOrthographicCoord(i,i)||console.error("转换出错了。。。。。。。。")}scale2to3Convert(t){return this.scaleV3One.setValue(0,0,0),this.d3World.camera.convertScreenCoordToOrthographicCoord(this.scaleV3One,this.scaleV3One),this.scaleV3Two.setValue(0,t,0),this.d3World.camera.convertScreenCoordToOrthographicCoord(this.scaleV3Two,this.scaleV3Two),Math.abs(this.scaleV3One.x-this.scaleV3Two.x)}pos3to2Convert(t){this.d3World.camera.viewport.project(t,this.d3World.camera.projectionViewMatrix,this.posV4),t.x=this.posV4.x/Laya.stage.clientScaleX,t.y=this.posV4.y/Laya.stage.clientScaleY,t.x-=this.sysOffestNum}scale3to2Convert(t){return t/this.scale2to3Convert(1)}getCollider(t,e=.9,i=10){let s;return(s="box"==t?new Laya.BoxCollider:new Laya.CircleCollider).friction=0,s.restitution=e,s.density=i,s}getRigbody(){let t=new Laya.RigidBody;return t.bullet=!0,t.allowRotation=!1,t.allowSleep=!1,t.gravityScale=0,t}getfguiRotation(t,e){this.angleV2.setValue(t,e),Laya.Vector2.normalize(this.angleV2,this.angleV2);let i=180*Math.acos(Laya.Vector2.dot(this.rootV,this.angleV2))/Math.PI;return(this.angleV2.x>=0&&this.angleV2.y>=0||this.angleV2.x>=0&&this.angleV2.y<0)&&(i=-i),180+i}getAngle(t,e){return this.angleV2.setValue(t,e),Laya.Vector2.normalize(this.angleV2,this.angleV2),180*Math.acos(Laya.Vector2.dot(this.rootV,this.angleV2))/Math.PI}randomNum(t,e){return t+Math.floor((e-t+1)*Math.random())}getRandArrEle(t){return t[Math.floor(t.length*Math.random())]}getSign(t){return t>=0?1:-1}botherArr(t){let e,i,s,n=t.length+2,a=t.length;for(let o=0;o<n;o++)e=Math.floor(Math.random()*a),i=Math.floor(Math.random()*a),s=t[e],t[e]=t[i],t[i]=s}getGameIconUrl(t){return"ui://game/"+t}getComponentUrl(t){return"ui://game/"+t}getAnimation(){}judgeSkillType(t=b.highSpace){if(this.gameMode==f.classic)return;let e=this.gameMgr;if(e.selfTurn){if(e.selfCurSkill==t)return!0}else if(e.aiCurSkill==t)return!0}ballColliHole(t){Bo.common.gameMgr.isFirstInGame&&0!=t.owner.mySrc.number&&(Bo.common.gameMgr.isFirstInGame=!1,Bo.eventMgr.event(l,t.owner.mySrc.number)),t.owner.mySrc.checkWrongBall()}getArrMaxEle(t){let e=-1/0;for(let i=0;i<t.length;i++)e=Math.max(t[i],e);return e}getArrMinEle(t){let e=1/0;for(let i=0;i<t.length;i++)e=Math.min(t[i],e);return e}playRandomMutiBallBigSkillSound(){if(Math.random()<=.5)return;let t="ganfa0"+this.randomNum(1,6);Bo.soundMgr.playSound(t)}showOneCamera(t){let e=Bo.common.d3World.cameraObj;for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i].init(),e[i].owner.active=i==t)}checkBallOverBorder(t,e){if(this._checkBorder(t+17,e)||this._checkBorder(t-17,e)||this._checkBorder(t,e+17)||this._checkBorder(t,e-17))return!0}_checkBorder(t,e){let i=this.d2World.borderRect;return e<=i.y-20||(e>=i.y+i.height+20||(t<=i.x-20||(t>=i.x+i.width+20||void 0)))}initWeight(t){let e={data:{},allWeightNum:0},i=e.data,s=0;for(const e in t)i[e]={},i[e].id=t[e].id,i[e].minWeight=s,s+=t[e].weight,i[e].maxWeight=s;return e.allWeightNum=s,e}getRandomWeightData(t){let e=t.data,i=t.allWeightNum,s=Math.floor(Math.random()*i);for(const t in e)if(s>e[t].minWeight&&s<=e[t].maxWeight)return e[t];return e[1]}showGirlTalkPop(t,e,i){e.visible=!0,i.text=cfgTable.secretaryData[t].msg,e.t0.play(Laya.Handler.create(this,()=>{e.visible=!1}))}stopGirlPop(t){t.t0.stop(),t.visible=!1}createHead(t,e,i=107){if("Browser"!=Laya.Browser.name)if(Moyu.isTT){let s=new Image;s.src=e,s.onload=(()=>{let e=new Laya.Texture2D;e.width=i,e.height=i,t.displayObject.graphics.drawImage(new Laya.Texture(e),0,0),e.loadImageSource(s)})}else t.url=e;else t.url=e}addTestCoin(t){jo.setCoin(t)}addTestDiamond(t){jo.setDiamond(t)}addTestSkill(){jo.setBigSkill(0,99),jo.setBigSkill(1,99),jo.setBigSkill(2,99)}playClassicEmotion(t,e,i){if(this.gameMode==f.bigMove)return;let s=this.randomNum(0,2),n={x:e,y:i,scaleX:1,scaleY:1},a=this.gameUI.ui.classicEmotionSpineNode.displayObject;this.gameMgr.selfTurn?this.gameMgr.selfBallArr.indexOf(t)>-1?this.classicEmotionSpine.play(n,s,!1,a):this.gameMgr.aiBallArr.indexOf(t)>-1||(t==this.gameMgr.blackNum?0==this.gameMgr.selfBallArr.length&&this.classicEmotionSpine.play(n,s,!1,a):this.classicEmotionSpine.play(n,s,!1,a)):this.gameMgr.aiBallArr.indexOf(t)>-1?this.classicEmotionSpine.play(n,s,!1,a):this.gameMgr.selfBallArr.indexOf(t)>-1||(t==this.gameMgr.blackNum?0==this.gameMgr.aiBallArr.length&&this.classicEmotionSpine.play(n,s,!1,a):this.classicEmotionSpine.play(n,s,!1,a))}playHappySound(t){if(this.gameMode!=f.classic)return;if(8==t)return;let e=!1;this.gameMgr.selfTurn?this.gameMgr.ensureBallType?this.gameMgr.selfBallArr.indexOf(t)>-1&&(e=!0):e=!0:this.gameMgr.ensureBallType?this.gameMgr.aiBallArr.indexOf(t)>-1&&(e=!0):e=!0,e&&Bo.soundMgr.playSound("applause")}destroyClassicEmotion(){if(this.gameMode==f.bigMove)return;this.gameUI.ui.classicEmotionSpineNode.displayObject.destroyChildren()}playAwardSpine(t,e){let i={x:t,y:e,scaleX:1,scaleY:1},s=this.gameUI.ui.awardSpineNode.displayObject;this.awardSpine.play(i,0,!1,s)}destroyAwardSpine(){this.gameUI.ui.awardSpineNode.displayObject.destroyChildren()}isBlock(t,e,i,s,n=null){this.tempDir1=Bo.tools.getV2Dir(t,e,i,s,this.tempDir1);let a=Bo.common.d2World.ballArr,o=[];for(let i=0;i<a.length;i++){let s=a[i];if(0==s.number)continue;if(s==n)continue;let h=Bo.tools.getDistance(s.gameObj.x,s.gameObj.y,t,e);this.tempDir2=Bo.tools.getV2Dir(t,e,s.gameObj.x,s.gameObj.y,this.tempDir2);let l=Laya.Vector2.dot(this.tempDir1,this.tempDir2);(l>=1&&(l=1),l<0)||Math.sin(Math.acos(l))*h<this.ballSize&&o.push({dis:Bo.tools.getDis(t,e,s.gameObj.x,s.gameObj.y),disHon:Math.cos(Math.acos(l))*h,disVer:Math.sin(Math.acos(l))*h,src:a[i],dir:this.tempDir1})}if(o.length>0)return o.sort((t,e)=>t.dis-e.dis),o[0]}AngleBetween(t,e){return Math.acos(Laya.Vector2.dot(t,e))*(180/Math.PI)}getSecretaryScale(){return"mishu"==this.secretary.spineName?1.28:1.024}signAwardContainsRod(t){let e;for(let i=0;i<t.length;i++)if(e=t[i].split("-")[0],parseInt(e)>2)return!0}judgeSameDay(){let t=jo.getSignTime(),e=(new Date).getTime();return new Date(t).toDateString()===new Date(e).toDateString()}getAward(t,e){let i=t[0].type<=2;Bo.uiMgr.Show(be,t,i,i=>{let s;for(let e=0;e<t.length;e++)switch((s=t[e]).type){case 1:case 2:this.playObjFlyAnim(s.num,s.type);break;case 3:case 4:case 5:case 6:jo.setBallRod(s.type-2,1),jo.setCurBallRod(s.type-2)}e&&e(i)})}getMoneyNode(){let t,e=Bo.uiMgr.getUI(Et),i=Bo.uiMgr.getUI(pe),s=Bo.uiMgr.getUI(Xt),n=Bo.uiMgr.getUI(Ht);e&&!e.isHide&&(t=e.ui.moneyNode),i&&!i.isHide&&(t=i.ui.moneyNode),s&&!s.isHide&&(t=s.ui.moneyNode),n&&!n.isHide&&(t=n.ui.moneyNode);let a=(!e||e.isHide)&&(!i||i.isHide)&&(!n||n.isHide),o=Bo.uiMgr.getUI(Yt);return a&&o&&!o.isHide&&(t=o.ui.moneyNode),t}playObjFlyAnim(t,e,i=null){this.stPos.x=Laya.stage.width/2,this.stPos.y=Laya.stage.height/2;let s=this.getMoneyNode();switch(e){case L.diamond:this.edPos.x=s.x+s.diamondImg.x,this.edPos.y=s.y+s.diamondImg.y,s.diamondImg.displayObject.localToGlobal(this.edPos),this.edPos.x/=2,this.edPos.y/=2;break;case L.coin:this.edPos.x=s.x+s.coinImg.x,this.edPos.y=s.y+s.coinImg.y,s.coinImg.displayObject.localToGlobal(this.edPos),this.edPos.x/=2,this.edPos.y/=2}Bo.soundMgr.playSound("coinbag"),Bo.uiMgr.Show(Ce,this.stPos,this.edPos,t,e,()=>{switch(e){case L.diamond:jo.setDiamond(t);break;case L.coin:jo.setCoin(t)}i&&i()})}autoPopUIView(){let t=[];if(!this.judgeSameDay()&&t.push("sign"),jo.getDailyfreeDrawTimes()>0&&t.push("draw"),!(t.length<=0))switch(this.getRandArrEle(t)){case"sign":Bo.uiMgr.Show(Et);break;case"draw":Bo.uiMgr.Show(pe)}}getMSTime(t){let e=Math.floor(t/60),i=Math.floor(t-60*e);return i<10&&(i="0"+i),e<10&&(e="0"+e),`${e}:${i}`}testPower(){jo.setPower(0,!1)}getAllStarNum(){let t=jo.getPlaceBallLevelList(),e=0;for(let i=0;i<t.length;i++)e+=t[i].star;return e}recoverCameraView(){Laya.timer.once(900,this,()=>{Bo.common.showOneCamera("mainCamera"),0==Bo.common.gameUI.ui.d2Node.alpha&&(Bo.common.gameUI.ui.d2Node.alpha=1,Bo.common.gameUI.ui.border.alpha=0,Laya.physicsTimer.scale<1&&(Laya.physicsTimer.scale=1))})}getClassicLevel(){let t,e=jo.getClassicTimes(),i="",s="",n=cfgTable.classictimesData;for(const a in n)e<=(t=n[a]).times&&(i=a),s=a;return""==i&&(i=s),n[i]}}Ie._instance=null;class ke extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component92")}onConstruct(){this.n0=this.getChild("n0")}}ke.URL="ui://isxx5ak710hfv49p";class we extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","Component129")}onConstruct(){this.bar_v=this.getChild("bar_v"),this.n84=this.getChild("n84")}}we.URL="ui://isxx5ak7748uv4mp";class Ne extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component130")}onConstruct(){this.ani=this.getChild("ani"),this.t0=this.getTransition("t0")}}Ne.URL="ui://isxx5ak7748uv4mq";class Le extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","powerEft")}onConstruct(){this.ani=this.getChild("ani"),this.n88=this.getChild("n88"),this.n89=this.getChild("n89")}}Le.URL="ui://isxx5ak79u9xv4mr";class ve extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","PutBallLevelDisplay")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n15=this.getChild("n15"),this.challenge=this.getChild("challenge"),this.n17=this.getChild("n17"),this.n3=this.getChild("n3"),this.starNode=this.getChild("starNode"),this.levelTxt=this.getChild("levelTxt"),this.n14=this.getChild("n14"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.special=this.getChild("special")}}ve.URL="ui://isxx5ak7avag476";class Ue extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component79")}onConstruct(){this.c1=this.getController("c1"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12")}}Ue.URL="ui://isxx5ak7avag477";class Se extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component80")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.myList=this.getChild("myList"),this.t0=this.getTransition("t0")}}Se.URL="ui://isxx5ak7avag47b";class Be extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","SignNormal")}onConstruct(){this.c1=this.getController("c1"),this.n7=this.getChild("n7"),this.n15=this.getChild("n15"),this.titleTxt=this.getChild("titleTxt"),this.n8=this.getChild("n8"),this.myIcon=this.getChild("myIcon"),this.numTxt=this.getChild("numTxt"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n17=this.getChild("n17"),this.n14=this.getChild("n14")}}Be.URL="ui://isxx5ak7bf9jv4jv";class Me extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","screenNode")}onConstruct(){this.n9=this.getChild("n9"),this.screenImg=this.getChild("screenImg")}}Me.URL="ui://isxx5ak7brgy3ux";class Te extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","GetAwrad_com1")}onConstruct(){this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}Te.URL="ui://isxx5ak7brwtv4mh";class Oe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","GetAwrad_com2")}onConstruct(){this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0")}}Oe.URL="ui://isxx5ak7brwtv4mj";class Re extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component128")}onConstruct(){this.n38=this.getChild("n38"),this.n40=this.getChild("n40")}}Re.URL="ui://isxx5ak7brwtv4mk";class je extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component100_1")}onConstruct(){this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}je.URL="ui://isxx5ak7brwtv4ml";class Pe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component142")}onConstruct(){this.n41=this.getChild("n41"),this.n42=this.getChild("n42")}}Pe.URL="ui://isxx5ak7c50vv4y6";class De extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","main_guang")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}De.URL="ui://isxx5ak7cj92v4o3";class Ee extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","try_com1")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n9=this.getChild("n9"),this.n24=this.getChild("n24"),this.titleTxt=this.getChild("titleTxt"),this.n32=this.getChild("n32"),this.n29=this.getChild("n29"),this.n36=this.getChild("n36"),this.txtTime=this.getChild("txtTime"),this.t0=this.getTransition("t0")}}Ee.URL="ui://isxx5ak7cj92v4o5";class Ae extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","try_com2")}onConstruct(){this.skillicon=this.getChild("skillicon"),this.n35=this.getChild("n35"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34")}}Ae.URL="ui://isxx5ak7cj92v4o6";class Ge extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","try_com3")}onConstruct(){this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.t0=this.getTransition("t0")}}Ge.URL="ui://isxx5ak7cj92v4o9";class He extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component121")}onConstruct(){this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}He.URL="ui://isxx5ak7cy72v4ib";class Fe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","huihe1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}Fe.URL="ui://isxx5ak7d1pb47h";class _e extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","huihe2")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}_e.URL="ui://isxx5ak7d1pb47k";class Ve extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component143")}onConstruct(){this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.t0=this.getTransition("t0")}}Ve.URL="ui://isxx5ak7dt0av4yn";class We extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi2")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n10=this.getChild("n10"),this.t0=this.getTransition("t0")}}We.URL="ui://isxx5ak7ehtov4g0";class Ye extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi2_1")}onConstruct(){this.n1=this.getChild("n1"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0")}}Ye.URL="ui://isxx5ak7ehtov4g1";class Xe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi3")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n10=this.getChild("n10"),this.t0=this.getTransition("t0")}}Xe.URL="ui://isxx5ak7ehtov4g2";class ze extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi3_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}ze.URL="ui://isxx5ak7ehtov4g3";class Ke extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_jinbi1")}onConstruct(){this.n20=this.getChild("n20"),this.n25=this.getChild("n25"),this.coinTxt=this.getChild("coinTxt"),this.n28=this.getChild("n28"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n45=this.getChild("n45"),this.getTips=this.getChild("getTips"),this.n39=this.getChild("n39"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n46=this.getChild("n46"),this.n47=this.getChild("n47"),this.n48=this.getChild("n48"),this.t0=this.getTransition("t0")}}Ke.URL="ui://isxx5ak7ehtov4gd";class qe extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_jinbi2")}onConstruct(){this.n20=this.getChild("n20"),this.n25=this.getChild("n25"),this.coinTxt=this.getChild("coinTxt"),this.n28=this.getChild("n28"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n43=this.getChild("n43"),this.n44=this.getChild("n44"),this.n45=this.getChild("n45"),this.t0=this.getTransition("t0")}}qe.URL="ui://isxx5ak7ehtov4ge";class Ze extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_jinbi3")}onConstruct(){this.n20=this.getChild("n20"),this.n25=this.getChild("n25"),this.coinTxt=this.getChild("coinTxt"),this.n28=this.getChild("n28"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n43=this.getChild("n43"),this.n44=this.getChild("n44"),this.n45=this.getChild("n45"),this.t0=this.getTransition("t0")}}Ze.URL="ui://isxx5ak7ehtov4gf";class $e extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component104")}onConstruct(){this.c1=this.getController("c1"),this.n12=this.getChild("n12"),this.coinBtn=this.getChild("coinBtn"),this.diamondBtn=this.getChild("diamondBtn"),this.node3=this.getChild("node3"),this.node4=this.getChild("node4"),this.node5=this.getChild("node5"),this.node1=this.getChild("node1"),this.node2=this.getChild("node2"),this.node6=this.getChild("node6"),this.t0=this.getTransition("t0")}}$e.URL="ui://isxx5ak7ehtov4gg";class Je extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component105")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48")}}Je.URL="ui://isxx5ak7ehtov4gh";class Qe extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component106")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48")}}Qe.URL="ui://isxx5ak7ehtov4gj";class ti extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_zs1")}onConstruct(){this.c1=this.getController("c1"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.shareTxt=this.getChild("shareTxt"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n44=this.getChild("n44"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n45=this.getChild("n45"),this.n47=this.getChild("n47"),this.n48=this.getChild("n48"),this.randTxt=this.getChild("randTxt"),this.n50=this.getChild("n50"),this.t0=this.getTransition("t0")}}ti.URL="ui://isxx5ak7ehtov4gk";class ei extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs1")}onConstruct(){this.n10=this.getChild("n10"),this.n9=this.getChild("n9"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n11=this.getChild("n11"),this.t0=this.getTransition("t0")}}ei.URL="ui://isxx5ak7ehtov4gm";class ii extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs1_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}ii.URL="ui://isxx5ak7ehtov4gn";class si extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_zs2")}onConstruct(){this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n44=this.getChild("n44"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n45=this.getChild("n45"),this.t0=this.getTransition("t0")}}si.URL="ui://isxx5ak7ehtov4gu";class ni extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_zs3")}onConstruct(){this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n47=this.getChild("n47"),this.t0=this.getTransition("t0")}}ni.URL="ui://isxx5ak7ehtov4gv";class ai extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs2")}onConstruct(){this.n10=this.getChild("n10"),this.n9=this.getChild("n9"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n11=this.getChild("n11"),this.t0=this.getTransition("t0")}}ai.URL="ui://isxx5ak7ehtov4gw";class oi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs2_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}oi.URL="ui://isxx5ak7ehtov4gx";class hi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs3")}onConstruct(){this.n10=this.getChild("n10"),this.n9=this.getChild("n9"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n11=this.getChild("n11"),this.t0=this.getTransition("t0")}}hi.URL="ui://isxx5ak7ehtov4gy";class li extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs3_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}li.URL="ui://isxx5ak7ehtov4gz";class ri extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component107")}onConstruct(){this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.levelTxt=this.getChild("levelTxt"),this.t0=this.getTransition("t0")}}ri.URL="ui://isxx5ak7ehtov4h0";class ci extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","box_com1")}onConstruct(){this.n14=this.getChild("n14"),this.n6=this.getChild("n6"),this.t0=this.getTransition("t0")}}ci.URL="ui://isxx5ak7erstv4nl";class di extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","box_com2")}onConstruct(){this.bg0=this.getChild("bg0"),this.bg=this.getChild("bg"),this.bar=this.getChild("bar"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12")}}di.URL="ui://isxx5ak7erstv4nt";class ui extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","box_com4")}onConstruct(){this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}ui.URL="ui://isxx5ak7erstv4nx";class gi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","box_com3")}onConstruct(){this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}gi.URL="ui://isxx5ak7erstv4ny";class mi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component97")}onConstruct(){this.c1=this.getController("c1"),this.n46=this.getChild("n46"),this.diamondNode=this.getChild("diamondNode"),this.coinNode=this.getChild("coinNode"),this.t0=this.getTransition("t0")}}mi.URL="ui://isxx5ak7g1giv4eb";class yi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component98")}onConstruct(){this.n8=this.getChild("n8"),this.n40=this.getChild("n40")}}yi.URL="ui://isxx5ak7g1giv4ed";class pi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component28_11")}onConstruct(){this.c1=this.getController("c1"),this.n12=this.getChild("n12"),this.n17=this.getChild("n17"),this.n13=this.getChild("n13"),this.diamondTxt=this.getChild("diamondTxt"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16")}}pi.URL="ui://isxx5ak7g1giv4eh";class xi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component58_11")}onConstruct(){this.n23=this.getChild("n23"),this.n41=this.getChild("n41"),this.myList=this.getChild("myList"),this.n45=this.getChild("n45"),this.n44=this.getChild("n44"),this.t0=this.getTransition("t0")}}xi.URL="ui://isxx5ak7g1giv4el";class Ci extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component100")}onConstruct(){this.c1=this.getController("c1"),this.n75=this.getChild("n75"),this.n76=this.getChild("n76"),this.n80=this.getChild("n80"),this.txt=this.getChild("txt"),this.spineRoot=this.getChild("spineRoot")}}Ci.URL="ui://isxx5ak7g1giv4ex";class fi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component101")}onConstruct(){this.c1=this.getController("c1"),this.n36=this.getChild("n36"),this.n35=this.getChild("n35"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34")}}fi.URL="ui://isxx5ak7g1giv4ey";class bi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component53")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.t0=this.getTransition("t0")}}bi.URL="ui://isxx5ak7g1ie43u";class Ii extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component58")}onConstruct(){this.n23=this.getChild("n23"),this.n41=this.getChild("n41"),this.n8=this.getChild("n8"),this.skillList=this.getChild("skillList"),this.t0=this.getTransition("t0")}}Ii.URL="ui://isxx5ak7gg0z445";class ki extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component59")}onConstruct(){this.n3=this.getChild("n3"),this.msgTxt=this.getChild("msgTxt"),this.t0=this.getTransition("t0")}}ki.URL="ui://isxx5ak7gg0z446";class wi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","RulerNode")}onConstruct(){this.n6=this.getChild("n6"),this.n4=this.getChild("n4"),this.img1=this.getChild("img1"),this.img2=this.getChild("img2")}}wi.URL="ui://isxx5ak7ghnw3x8";class Ni extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component108")}onConstruct(){this.n19=this.getChild("n19"),this.t0=this.getTransition("t0")}}Ni.URL="ui://isxx5ak7gpvxv4ha";class Li extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component63")}onConstruct(){this.n66=this.getChild("n66"),this.n56=this.getChild("n56"),this.n63=this.getChild("n63"),this.n65=this.getChild("n65"),this.t0=this.getTransition("t0")}}Li.URL="ui://isxx5ak7h657452";class vi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","topNode")}onConstruct(){this.selfProgress=this.getChild("selfProgress"),this.aiProgress=this.getChild("aiProgress"),this.selfKuang=this.getChild("selfKuang"),this.aiKuang=this.getChild("aiKuang"),this.selfHeadLoader=this.getChild("selfHeadLoader"),this.aiHeadLoader=this.getChild("aiHeadLoader"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.selfNameTxt=this.getChild("selfNameTxt"),this.aiNameTxt=this.getChild("aiNameTxt"),this.selfBallList=this.getChild("selfBallList"),this.aiBallList=this.getChild("aiBallList"),this.middleNode=this.getChild("middleNode"),this.selfScoreTxt=this.getChild("selfScoreTxt"),this.aiScoreTxt=this.getChild("aiScoreTxt"),this.scoreNode=this.getChild("scoreNode"),this.selfTips=this.getChild("selfTips"),this.aiTips=this.getChild("aiTips")}}vi.URL="ui://isxx5ak7hkrz3qu";class Ui extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","selfProgress")}onConstruct(){this.n3=this.getChild("n3"),this.bar=this.getChild("bar")}}Ui.URL="ui://isxx5ak7hkrz3sf";class Si extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","aiProgress")}onConstruct(){this.n3=this.getChild("n3"),this.bar=this.getChild("bar")}}Si.URL="ui://isxx5ak7hkrz3sh";class Bi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ballDisplay")}onConstruct(){this.myImg=this.getChild("myImg")}}Bi.URL="ui://isxx5ak7hkrz3sk";class Mi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","moveNode")}onConstruct(){this.n8=this.getChild("n8"),this.finger=this.getChild("finger")}}Mi.URL="ui://isxx5ak7hkrz3t9";class Ti extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","cancelBtn")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1")}}Ti.URL="ui://isxx5ak7hkrz3tm";class Oi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","shareBtn")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6")}}Oi.URL="ui://isxx5ak7hkrz3tn";class Ri extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","share2Btn")}onConstruct(){this.n3=this.getChild("n3")}}Ri.URL="ui://isxx5ak7hkrz3tr";class ji extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","rodMethodNode")}onConstruct(){this.bg=this.getChild("bg"),this.dot=this.getChild("dot")}}ji.URL="ui://isxx5ak7hkrz3u1";class Pi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","sureBtn")}onConstruct(){this.n2=this.getChild("n2"),this.n1=this.getChild("n1")}}Pi.URL="ui://isxx5ak7hkrz3u2";class Di extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component18")}onConstruct(){this.c1=this.getController("c1"),this.nameTxt=this.getChild("nameTxt"),this.headImg=this.getChild("headImg"),this.n24=this.getChild("n24"),this.skillImg=this.getChild("skillImg"),this.skillTxt=this.getChild("skillTxt")}}Di.URL="ui://isxx5ak7hxtr3yv";class Ei extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component45")}onConstruct(){this.c1=this.getController("c1"),this.n40=this.getChild("n40"),this.n41=this.getChild("n41"),this.targetScoreTxt=this.getChild("targetScoreTxt"),this.n42=this.getChild("n42"),this.awardTxt=this.getChild("awardTxt"),this.n44=this.getChild("n44"),this.t0=this.getTransition("t0")}}Ei.URL="ui://isxx5ak7i4k2438";class Ai extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","emotionDisplay")}onConstruct(){this.myIcon=this.getChild("myIcon")}}Ai.URL="ui://isxx5ak7i4k243h";class Gi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component49")}onConstruct(){this.n69=this.getChild("n69"),this.n56=this.getChild("n56")}}Gi.URL="ui://isxx5ak7i4k243n";class Hi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component50")}onConstruct(){this.n54=this.getChild("n54"),this.n65=this.getChild("n65")}}Hi.URL="ui://isxx5ak7i4k243o";class Fi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component51")}onConstruct(){this.c1=this.getController("c1"),this.n51=this.getChild("n51"),this.n54=this.getChild("n54")}}Fi.URL="ui://isxx5ak7i4k243p";class _i extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Button5")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2")}}_i.URL="ui://isxx5ak7i7rdv4jg";class Vi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component124")}onConstruct(){this.n22=this.getChild("n22"),this.shareNode=this.getChild("shareNode")}}Vi.URL="ui://isxx5ak7i7rdv4jh";class Wi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component125")}onConstruct(){this.n29=this.getChild("n29"),this.coinTxt=this.getChild("coinTxt")}}Wi.URL="ui://isxx5ak7i7rdv4ji";class Yi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component52")}onConstruct(){this.n35=this.getChild("n35"),this.n36=this.getChild("n36")}}Yi.URL="ui://isxx5ak7ihpy43t";class Xi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","drawBtn")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n5=this.getChild("n5")}}Xi.URL="ui://isxx5ak7iqrhv4mt";class zi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component43")}onConstruct(){this.n49=this.getChild("n49")}}zi.URL="ui://isxx5ak7iveg434";class Ki extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","wordsDisplay")}onConstruct(){this.txt=this.getChild("txt"),this.n63=this.getChild("n63")}}Ki.URL="ui://isxx5ak7iveg436";class qi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component3")}onConstruct(){this.n26=this.getChild("n26"),this.n24=this.getChild("n24"),this.nameTxt=this.getChild("nameTxt"),this.headRoot=this.getChild("headRoot")}}qi.URL="ui://isxx5ak7ixm43xh";class Zi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component4")}onConstruct(){this.n44=this.getChild("n44"),this.headImg=this.getChild("headImg")}}Zi.URL="ui://isxx5ak7ixm43xi";class $i extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component7")}onConstruct(){this.n17=this.getChild("n17")}}$i.URL="ui://isxx5ak7ixm43xq";class Ji extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component8")}onConstruct(){this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21")}}Ji.URL="ui://isxx5ak7ixm43xr";class Qi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component9")}onConstruct(){this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20")}}Qi.URL="ui://isxx5ak7ixm43xs";class ts extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component10")}onConstruct(){this.c1=this.getController("c1"),this.n40=this.getChild("n40"),this.n41=this.getChild("n41")}}ts.URL="ui://isxx5ak7ixm43xt";class es extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component11")}onConstruct(){this.n34=this.getChild("n34"),this.n42=this.getChild("n42")}}es.URL="ui://isxx5ak7ixm43xu";class is extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component12")}onConstruct(){this.n35=this.getChild("n35"),this.n43=this.getChild("n43"),this.t0=this.getTransition("t0")}}is.URL="ui://isxx5ak7ixm43xv";class ss extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component13")}onConstruct(){this.n27=this.getChild("n27"),this.n36=this.getChild("n36")}}ss.URL="ui://isxx5ak7ixm43xw";class ns extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component16")}onConstruct(){this.n30=this.getChild("n30"),this.n39=this.getChild("n39")}}ns.URL="ui://isxx5ak7ixm43xz";class as extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tuowei")}onConstruct(){this.n19=this.getChild("n19"),this.n18=this.getChild("n18"),this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n20=this.getChild("n20"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}as.URL="ui://isxx5ak7j69a40n";class os extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tw_g")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}os.URL="ui://isxx5ak7j69a40o";class hs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_xingxing")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n0=this.getChild("n0"),this.t2=this.getTransition("t2"),this.t1=this.getTransition("t1")}}hs.URL="ui://isxx5ak7j69a40p";class ls extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_jiazai")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}ls.URL="ui://isxx5ak7j69a40q";class rs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_xingxing2")}onConstruct(){this.c1=this.getController("c1"),this.n3=this.getChild("n3"),this.n5=this.getChild("n5"),this.n4=this.getChild("n4"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2")}}rs.URL="ui://isxx5ak7j69a40r";class cs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tuowei2")}onConstruct(){this.n19=this.getChild("n19"),this.n21=this.getChild("n21"),this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n23=this.getChild("n23"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}cs.URL="ui://isxx5ak7j69a40s";class ds extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tw_g_1")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.t0=this.getTransition("t0")}}ds.URL="ui://isxx5ak7j69a40t";class us extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shibai_1")}onConstruct(){this.n4=this.getChild("n4"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.idle=this.getTransition("idle"),this.attack=this.getTransition("attack")}}us.URL="ui://isxx5ak7j69a40w";class gs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","special")}onConstruct(){this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.levelTxt=this.getChild("levelTxt"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.t0=this.getTransition("t0")}}gs.URL="ui://isxx5ak7j979v4i6";class ms extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component145")}onConstruct(){this.guanyuNode=this.getChild("guanyuNode")}}ms.URL="ui://isxx5ak7jaakv51f";class ys extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","longBtn")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n4=this.getChild("n4")}}ys.URL="ui://isxx5ak7jaakv55v";class ps extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component146")}onConstruct(){this.n89=this.getChild("n89"),this.n90=this.getChild("n90"),this.guideBtn=this.getChild("guideBtn")}}ps.URL="ui://isxx5ak7jaakv55w";class xs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component146_11")}onConstruct(){this.n89=this.getChild("n89"),this.n90=this.getChild("n90"),this.guideBtn=this.getChild("guideBtn")}}xs.URL="ui://isxx5ak7jaakv55x";class Cs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component111_1")}onConstruct(){this.n68=this.getChild("n68"),this.myMask=this.getChild("myMask")}}Cs.URL="ui://isxx5ak7jaakv55y";class fs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component64_1")}onConstruct(){this.n57=this.getChild("n57"),this.n54=this.getChild("n54"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56"),this.t1=this.getTransition("t1")}}fs.URL="ui://isxx5ak7jaakv55z";class bs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com123")}onConstruct(){this.type1=this.getChild("type1"),this.type2=this.getChild("type2"),this.type3=this.getChild("type3"),this.n38=this.getChild("n38"),this.t0=this.getTransition("t0")}}bs.URL="ui://isxx5ak7jaakv561";class Is extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component132_2")}onConstruct(){this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.t0=this.getTransition("t0")}}Is.URL="ui://isxx5ak7jpszv4mw";class ks extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIPower")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}ks.URL="ui://isxx5ak7jpszv4n1";class ws extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component133")}onConstruct(){this.n29=this.getChild("n29"),this.n30=this.getChild("n30")}}ws.URL="ui://isxx5ak7jpszv4n3";class Ns extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component134")}onConstruct(){this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.t0=this.getTransition("t0")}}Ns.URL="ui://isxx5ak7jpszv4n4";class Ls extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component135")}onConstruct(){this.n30=this.getChild("n30"),this.t0=this.getTransition("t0")}}Ls.URL="ui://isxx5ak7jpszv4n6";class vs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component137")}onConstruct(){this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n32=this.getChild("n32")}}vs.URL="ui://isxx5ak7jpszv4n8";class Us extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zuanshi")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4")}}Us.URL="ui://isxx5ak7jpszv4n9";class Ss extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component138")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.t0=this.getTransition("t0")}}Ss.URL="ui://isxx5ak7jpszv4nf";class Bs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component139")}onConstruct(){this.n0=this.getChild("n0"),this.t0=this.getTransition("t0")}}Bs.URL="ui://isxx5ak7jpszv4ng";class Ms extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component140")}onConstruct(){this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}Ms.URL="ui://isxx5ak7jpszv4nh";class Ts extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component141")}onConstruct(){this.n0=this.getChild("n0"),this.t0=this.getTransition("t0")}}Ts.URL="ui://isxx5ak7jpszv4ni";class Os extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","powerNode")}onConstruct(){this.n2=this.getChild("n2"),this.bar_v=this.getChild("bar_v"),this.showImg=this.getChild("showImg"),this.n12=this.getChild("n12")}}Os.URL="ui://isxx5ak7kt443qh";class Rs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}Rs.URL="ui://isxx5ak7kys749e";class js extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component94")}onConstruct(){this.n77=this.getChild("n77")}}js.URL="ui://isxx5ak7l1574b6";class Ps extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component95")}onConstruct(){this.n77=this.getChild("n77")}}Ps.URL="ui://isxx5ak7l1574b7";class Ds extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component126")}onConstruct(){this.c1=this.getController("c1"),this.normalBtn=this.getChild("normalBtn"),this.tripleBtn=this.getChild("tripleBtn")}}Ds.URL="ui://isxx5ak7lhrrv4lg";class Es extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component60")}onConstruct(){this.c1=this.getController("c1"),this.n48=this.getChild("n48"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}Es.URL="ui://isxx5ak7llhd44g";class As extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component98_3")}onConstruct(){this.c1=this.getController("c1"),this.n8=this.getChild("n8"),this.n41=this.getChild("n41"),this.n40=this.getChild("n40")}}As.URL="ui://isxx5ak7lp3lv4j2";class Gs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com1")}onConstruct(){this.n34=this.getChild("n34"),this.n36=this.getChild("n36"),this.n22=this.getChild("n22"),this.n20=this.getChild("n20"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n33=this.getChild("n33"),this.coinImg=this.getChild("coinImg"),this.need=this.getChild("need"),this.n35=this.getChild("n35"),this.n29=this.getChild("n29"),this.tipsTxt=this.getChild("tipsTxt"),this.n30=this.getChild("n30"),this.peopleTxt=this.getChild("peopleTxt"),this.t0=this.getTransition("t0")}}Gs.URL="ui://isxx5ak7lrxgv50m";class Hs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com2")}onConstruct(){this.n36=this.getChild("n36"),this.n34=this.getChild("n34"),this.n22=this.getChild("n22"),this.n20=this.getChild("n20"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n33=this.getChild("n33"),this.coinImg=this.getChild("coinImg"),this.need=this.getChild("need"),this.n35=this.getChild("n35"),this.n29=this.getChild("n29"),this.tipsTxt=this.getChild("tipsTxt"),this.n30=this.getChild("n30"),this.peopleTxt=this.getChild("peopleTxt"),this.t0=this.getTransition("t0")}}Hs.URL="ui://isxx5ak7lrxgv50n";class Fs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com3")}onConstruct(){this.n34=this.getChild("n34"),this.n36=this.getChild("n36"),this.n22=this.getChild("n22"),this.n20=this.getChild("n20"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n33=this.getChild("n33"),this.coinImg=this.getChild("coinImg"),this.need=this.getChild("need"),this.n35=this.getChild("n35"),this.n29=this.getChild("n29"),this.tipsTxt=this.getChild("tipsTxt"),this.n30=this.getChild("n30"),this.peopleTxt=this.getChild("peopleTxt"),this.t0=this.getTransition("t0")}}Fs.URL="ui://isxx5ak7lrxgv50o";class _s extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Invitation_com1")}onConstruct(){this.n14=this.getChild("n14"),this.n13=this.getChild("n13"),this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.enterBtn=this.getChild("enterBtn"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n15=this.getChild("n15"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}_s.URL="ui://isxx5ak7lrxgv513";class Vs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component87_1")}onConstruct(){this.n74=this.getChild("n74"),this.n73=this.getChild("n73"),this.ballTxt=this.getChild("ballTxt"),this.n76=this.getChild("n76"),this.helpLineBtn=this.getChild("helpLineBtn"),this.levelTxt=this.getChild("levelTxt"),this.n87=this.getChild("n87"),this.n84=this.getChild("n84"),this.hpTxt=this.getChild("hpTxt"),this.n89=this.getChild("n89"),this.tipsTxt=this.getChild("tipsTxt")}}Vs.URL="ui://isxx5ak7luq648t";class Ws extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg1")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}Ws.URL="ui://isxx5ak7mif8v4ma";class Ys extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg2")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}Ys.URL="ui://isxx5ak7mif8v4mb";class Xs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg3")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}Xs.URL="ui://isxx5ak7mif8v4mc";class zs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg4")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}zs.URL="ui://isxx5ak7mif8v4md";class Ks extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component36")}onConstruct(){this.c1=this.getController("c1"),this.n53=this.getChild("n53"),this.n56=this.getChild("n56")}}Ks.URL="ui://isxx5ak7mnrs42r";class qs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component37")}onConstruct(){this.c1=this.getController("c1"),this.n52=this.getChild("n52"),this.n54=this.getChild("n54")}}qs.URL="ui://isxx5ak7mnrs42s";class Zs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISetting")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.soundBtn=this.getChild("soundBtn"),this.shakeBtn=this.getChild("shakeBtn"),this.clickNode=this.getChild("clickNode"),this.xyBtn=this.getChild("xyBtn")}}Zs.URL="ui://isxx5ak7mnrs42t";class $s extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component39")}onConstruct(){this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}$s.URL="ui://isxx5ak7mnrs42v";class Js extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component40")}onConstruct(){this.n46=this.getChild("n46"),this.n47=this.getChild("n47")}}Js.URL="ui://isxx5ak7mnrs42y";class Qs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.titleTxt=this.getChild("titleTxt"),this.n2=this.getChild("n2"),this.msgTips=this.getChild("msgTips"),this.numTxt=this.getChild("numTxt"),this.n18=this.getChild("n18"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n10=this.getChild("n10")}}Qs.URL="ui://isxx5ak7mnrs430";class tn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component42")}onConstruct(){this.c1=this.getController("c1"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.tipsTxt=this.getChild("tipsTxt"),this.cancelBtn=this.getChild("cancelBtn"),this.sureBtn=this.getChild("sureBtn"),this.n11=this.getChild("n11"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}tn.URL="ui://isxx5ak7mnrs431";class en extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shengli")}onConstruct(){this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.attack=this.getTransition("attack"),this.idle=this.getTransition("idle")}}en.URL="ui://isxx5ak7n43d3v0";class sn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shengli_g")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}sn.URL="ui://isxx5ak7n43d3v1";class nn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shibai")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.idle=this.getTransition("idle"),this.attack=this.getTransition("attack")}}nn.URL="ui://isxx5ak7n43d3v2";class an extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_ganfa")}onConstruct(){this.n27=this.getChild("n27"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n12=this.getChild("n12"),this.n11=this.getChild("n11"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17"),this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.t0=this.getTransition("t0")}}an.URL="ui://isxx5ak7n43d3vl";class on extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_ganzi")}onConstruct(){this.n3=this.getChild("n3"),this.n2=this.getChild("n2"),this.t0=this.getTransition("t0")}}on.URL="ui://isxx5ak7n43d3vm";class hn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_sc_guang")}onConstruct(){this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}hn.URL="ui://isxx5ak7n43d3vn";class ln extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_shangcheng")}onConstruct(){this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}ln.URL="ui://isxx5ak7n43d3vo";class rn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_wanfa")}onConstruct(){this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}rn.URL="ui://isxx5ak7n43d3vp";class cn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component53_1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.t0=this.getTransition("t0")}}cn.URL="ui://isxx5ak7nqgqv4y4";class dn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component30")}onConstruct(){this.c1=this.getController("c1"),this.n46=this.getChild("n46"),this.n47=this.getChild("n47"),this.numTxt=this.getChild("numTxt"),this.n50=this.getChild("n50"),this.n53=this.getChild("n53"),this.n54=this.getChild("n54"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56")}}dn.URL="ui://isxx5ak7p4tr41y";class un extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component30_1")}onConstruct(){this.c1=this.getController("c1"),this.n46=this.getChild("n46"),this.n47=this.getChild("n47"),this.numTxt=this.getChild("numTxt"),this.n50=this.getChild("n50"),this.n51=this.getChild("n51"),this.n52=this.getChild("n52"),this.n53=this.getChild("n53"),this.n54=this.getChild("n54")}}un.URL="ui://isxx5ak7p4tr41z";class gn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component31")}onConstruct(){this.n55=this.getChild("n55"),this.n54=this.getChild("n54"),this.conditionTxt=this.getChild("conditionTxt"),this.n57=this.getChild("n57"),this.t0=this.getTransition("t0")}}gn.URL="ui://isxx5ak7p4tr423";class mn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component32")}onConstruct(){this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}mn.URL="ui://isxx5ak7p4tr42f";class yn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","AwardItem")}onConstruct(){this.n9=this.getChild("n9"),this.myIcon=this.getChild("myIcon"),this.numTxt=this.getChild("numTxt"),this.nameTxt=this.getChild("nameTxt"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17")}}yn.URL="ui://isxx5ak7p4tr42h";class pn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com1")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48"),this.n50=this.getChild("n50")}}pn.URL="ui://isxx5ak7p7rrv4pr";class xn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com2")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48"),this.n50=this.getChild("n50")}}xn.URL="ui://isxx5ak7p7rrv4ps";class Cn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com3")}onConstruct(){this.n17=this.getChild("n17"),this.myIcon=this.getChild("myIcon")}}Cn.URL="ui://isxx5ak7p7rrv4pw";class fn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com4")}onConstruct(){this.n16=this.getChild("n16"),this.head=this.getChild("head")}}fn.URL="ui://isxx5ak7p7rrv4px";class bn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com5")}onConstruct(){this.c1=this.getController("c1"),this.c2=this.getController("c2"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.levelBtn=this.getChild("levelBtn"),this.starBtn=this.getChild("starBtn"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.myList=this.getChild("myList"),this.selfNode=this.getChild("selfNode"),this.n9=this.getChild("n9"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n39=this.getChild("n39"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n45=this.getChild("n45"),this.changeBtn=this.getChild("changeBtn"),this.closeBtn=this.getChild("closeBtn"),this.t0=this.getTransition("t0")}}bn.URL="ui://isxx5ak7p7rrv4pz";class In extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","RankItem")}onConstruct(){this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.rankTxt=this.getChild("rankTxt"),this.headNode=this.getChild("headNode"),this.nameTxt=this.getChild("nameTxt"),this.n19=this.getChild("n19"),this.valueTxt=this.getChild("valueTxt"),this.img1=this.getChild("img1"),this.img2=this.getChild("img2"),this.img3=this.getChild("img3")}}In.URL="ui://isxx5ak7p7rrv4q1";class kn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com9")}onConstruct(){this.c1=this.getController("c1"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.headNode=this.getChild("headNode"),this.rankTxt=this.getChild("rankTxt"),this.nameTxt=this.getChild("nameTxt"),this.n34=this.getChild("n34"),this.valueTxt=this.getChild("valueTxt"),this.n36=this.getChild("n36"),this.n37=this.getChild("n37"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40")}}kn.URL="ui://isxx5ak7p7rrv4q3";class wn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com10")}onConstruct(){this.n23=this.getChild("n23"),this.n24=this.getChild("n24")}}wn.URL="ui://isxx5ak7p7rrv4q4";class Nn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com11")}onConstruct(){this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.t0=this.getTransition("t0")}}Nn.URL="ui://isxx5ak7p7rrv4q5";class Ln extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com13")}onConstruct(){this.c1=this.getController("c1"),this.n44=this.getChild("n44"),this.n45=this.getChild("n45"),this.n46=this.getChild("n46")}}Ln.URL="ui://isxx5ak7p7rrv4qa";class vn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component122")}onConstruct(){this.gameNode1=this.getChild("gameNode1"),this.gameNode2=this.getChild("gameNode2"),this.gameNode3=this.getChild("gameNode3")}}vn.URL="ui://isxx5ak7pf2sv4ic";class Un extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","skillItem")}onConstruct(){this.c1=this.getController("c1"),this.n31=this.getChild("n31"),this.n6=this.getChild("n6"),this.skillImg=this.getChild("skillImg"),this.nameTxt=this.getChild("nameTxt"),this.levelTxt=this.getChild("levelTxt"),this.n28=this.getChild("n28"),this.describeTxt=this.getChild("describeTxt"),this.n32=this.getChild("n32"),this.mutiBtn=this.getChild("mutiBtn"),this.tryNode=this.getChild("tryNode"),this.normalBtn=this.getChild("normalBtn"),this.startBtn=this.getChild("startBtn"),this.n42=this.getChild("n42"),this.n43=this.getChild("n43"),this.n44=this.getChild("n44")}}Un.URL="ui://isxx5ak7qlo041q";class Sn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component26")}onConstruct(){this.n11=this.getChild("n11"),this.n30=this.getChild("n30"),this.n34=this.getChild("n34")}}Sn.URL="ui://isxx5ak7qlo041r";class Bn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component28")}onConstruct(){this.n12=this.getChild("n12"),this.n31=this.getChild("n31"),this.curTxt=this.getChild("curTxt"),this.n33=this.getChild("n33")}}Bn.URL="ui://isxx5ak7qlo041t";class Mn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component113")}onConstruct(){this.n85=this.getChild("n85"),this.n86=this.getChild("n86"),this.n77=this.getChild("n77"),this.n79=this.getChild("n79"),this.n80=this.getChild("n80"),this.n81=this.getChild("n81"),this.n82=this.getChild("n82"),this.n84=this.getChild("n84"),this.n87=this.getChild("n87"),this.t0=this.getTransition("t0")}}Mn.URL="ui://isxx5ak7r5f8v4hv";class Tn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component114")}onConstruct(){this.n77=this.getChild("n77"),this.t0=this.getTransition("t0")}}Tn.URL="ui://isxx5ak7r5f8v4hw";class On extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component115")}onConstruct(){this.n83=this.getChild("n83"),this.fingerNode=this.getChild("fingerNode"),this.n84=this.getChild("n84")}}On.URL="ui://isxx5ak7r5f8v4hx";class Rn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component117")}onConstruct(){this.n87=this.getChild("n87"),this.n88=this.getChild("n88"),this.n84=this.getChild("n84"),this.n85=this.getChild("n85"),this.n86=this.getChild("n86"),this.t0=this.getTransition("t0")}}Rn.URL="ui://isxx5ak7r5f8v4hz";class jn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component98_1")}onConstruct(){this.c1=this.getController("c1"),this.n8=this.getChild("n8"),this.n41=this.getChild("n41"),this.n40=this.getChild("n40")}}jn.URL="ui://isxx5ak7s46iv4f0";class Pn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component61")}onConstruct(){this.n14=this.getChild("n14"),this.n6=this.getChild("n6"),this.t0=this.getTransition("t0")}}Pn.URL="ui://isxx5ak7s8sz44h";class Dn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component62")}onConstruct(){this.n66=this.getChild("n66"),this.n56=this.getChild("n56"),this.n63=this.getChild("n63"),this.n65=this.getChild("n65"),this.t0=this.getTransition("t0")}}Dn.URL="ui://isxx5ak7s8sz44u";class En extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","d3Root")}onConstruct(){}}En.URL="ui://isxx5ak7sdh33ql";class An extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","d2Root")}onConstruct(){}}An.URL="ui://isxx5ak7sdh33qm";class Gn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ballNode")}onConstruct(){}}Gn.URL="ui://isxx5ak7sdh33qn";class Hn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","border")}onConstruct(){this.bar1=this.getChild("bar1"),this.bar2=this.getChild("bar2"),this.bar3=this.getChild("bar3"),this.bar4=this.getChild("bar4"),this.bar5=this.getChild("bar5"),this.bar6=this.getChild("bar6"),this.circle1=this.getChild("circle1"),this.circle2=this.getChild("circle2"),this.circle3=this.getChild("circle3"),this.circle4=this.getChild("circle4"),this.circle5=this.getChild("circle5"),this.circle6=this.getChild("circle6"),this.n28=this.getChild("n28")}}Hn.URL="ui://isxx5ak7sdh33qq";class Fn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41_2")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.n19=this.getChild("n19"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n9=this.getChild("n9"),this.n22=this.getChild("n22"),this.tipsTxt=this.getChild("tipsTxt"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.titleTxt=this.getChild("titleTxt")}}Fn.URL="ui://isxx5ak7trk948w";class _n extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41_1")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n27=this.getChild("n27"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.n36=this.getChild("n36"),this.n1=this.getChild("n1"),this.n37=this.getChild("n37"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1"),this.t2=this.getTransition("t2"),this.t3=this.getTransition("t3")}}_n.URL="ui://isxx5ak7trk9491";class Vn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","againBtn")}onConstruct(){this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n5=this.getChild("n5")}}Vn.URL="ui://isxx5ak7u58xv509";class Wn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component118")}onConstruct(){this.c1=this.getController("c1"),this.n14=this.getChild("n14"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.diamondTxt=this.getChild("diamondTxt"),this.n13=this.getChild("n13"),this.n15=this.getChild("n15")}}Wn.URL="ui://isxx5ak7u8eiv4i2";class Yn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component119")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n13=this.getChild("n13"),this.n6=this.getChild("n6"),this.screenNode=this.getChild("screenNode"),this.n15=this.getChild("n15"),this.closeBtn=this.getChild("closeBtn"),this.share2Btn=this.getChild("share2Btn"),this.shareBtn=this.getChild("shareBtn"),this.tipsNode=this.getChild("tipsNode"),this.awardNode=this.getChild("awardNode")}}Yn.URL="ui://isxx5ak7u8eiv4i3";class Xn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component132_1")}onConstruct(){this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.t0=this.getTransition("t0")}}Xn.URL="ui://isxx5ak7uih8v568";class zn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","SecretaryDisplay")}onConstruct(){this.n2=this.getChild("n2"),this.levelTxt=this.getChild("levelTxt"),this.n4=this.getChild("n4"),this.secretary=this.getChild("secretary"),this.purchaseBtn=this.getChild("purchaseBtn"),this.n16=this.getChild("n16"),this.n37=this.getChild("n37"),this.n41=this.getChild("n41"),this.n14=this.getChild("n14"),this.n17=this.getChild("n17"),this.heightTxt=this.getChild("heightTxt"),this.n46=this.getChild("n46"),this.n36=this.getChild("n36"),this.n38=this.getChild("n38"),this.foodTxt=this.getChild("foodTxt"),this.n47=this.getChild("n47"),this.n40=this.getChild("n40"),this.n42=this.getChild("n42"),this.historyTxt=this.getChild("historyTxt"),this.n48=this.getChild("n48"),this.nameImg=this.getChild("nameImg"),this.n12=this.getChild("n12"),this.n49=this.getChild("n49"),this.t0=this.getTransition("t0")}}zn.URL="ui://isxx5ak7uqohv4lo";class Kn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","BallRodDisplay")}onConstruct(){this.c1=this.getController("c1"),this.n31=this.getChild("n31"),this.n6=this.getChild("n6"),this.nameTxt=this.getChild("nameTxt"),this.rodImg=this.getChild("rodImg"),this.levelNode=this.getChild("levelNode"),this.eftRod=this.getChild("eftRod"),this.purchaseBtn=this.getChild("purchaseBtn")}}Kn.URL="ui://isxx5ak7uqohv4lr";class qn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component109")}onConstruct(){this.n65=this.getChild("n65"),this.n64=this.getChild("n64"),this.n62=this.getChild("n62"),this.n63=this.getChild("n63"),this.t0=this.getTransition("t0")}}qn.URL="ui://isxx5ak7vhzhv4hi";class Zn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component110")}onConstruct(){this.n65=this.getChild("n65"),this.n64=this.getChild("n64"),this.n62=this.getChild("n62"),this.n63=this.getChild("n63"),this.t0=this.getTransition("t0")}}Zn.URL="ui://isxx5ak7vhzhv4hj";class $n extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component111_11")}onConstruct(){this.n68=this.getChild("n68"),this.n69=this.getChild("n69")}}$n.URL="ui://isxx5ak7vhzhv4hk";class Jn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component112")}onConstruct(){this.n68=this.getChild("n68"),this.n70=this.getChild("n70"),this.myMask=this.getChild("myMask")}}Jn.URL="ui://isxx5ak7vhzhv4ho";class Qn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component111")}onConstruct(){this.n68=this.getChild("n68"),this.myMask=this.getChild("myMask")}}Qn.URL="ui://isxx5ak7vhzhv4hq";class ta extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component144")}onConstruct(){this.n8=this.getChild("n8")}}ta.URL="ui://isxx5ak7vv6av515";class ea extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com2")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}ea.URL="ui://isxx5ak7wcn5v4k1";class ia extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_guang")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}ia.URL="ui://isxx5ak7wcn5v4k4";class sa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","SignMax")}onConstruct(){this.c1=this.getController("c1"),this.n7=this.getChild("n7"),this.n15=this.getChild("n15"),this.n8=this.getChild("n8"),this.titleTxt=this.getChild("titleTxt"),this.myIcon1=this.getChild("myIcon1"),this.numTxt1=this.getChild("numTxt1"),this.myIcon2=this.getChild("myIcon2"),this.n20=this.getChild("n20"),this.n17=this.getChild("n17"),this.numTxt2=this.getChild("numTxt2"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n21=this.getChild("n21"),this.n14=this.getChild("n14")}}sa.URL="ui://isxx5ak7wcn5v4k6";class na extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com2_1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}na.URL="ui://isxx5ak7wcn5v4k7";class aa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com5")}onConstruct(){this.n3=this.getChild("n3"),this.n29=this.getChild("n29"),this.n4=this.getChild("n4"),this.day1=this.getChild("day1"),this.day2=this.getChild("day2"),this.day3=this.getChild("day3"),this.day4=this.getChild("day4"),this.day5=this.getChild("day5"),this.day6=this.getChild("day6"),this.day7=this.getChild("day7"),this.t0=this.getTransition("t0")}}aa.URL="ui://isxx5ak7wcn5v4k9";class oa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com8")}onConstruct(){this.n48=this.getChild("n48"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}oa.URL="ui://isxx5ak7wcn5v4ka";class ha extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com6")}onConstruct(){this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}ha.URL="ui://isxx5ak7wcn5v4kb";class la extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com7")}onConstruct(){this.n29=this.getChild("n29"),this.n2=this.getChild("n2")}}la.URL="ui://isxx5ak7wcn5v4kd";class ra extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com1_2")}onConstruct(){this.n5=this.getChild("n5"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0")}}ra.URL="ui://isxx5ak7wcn5v4kr";class ca extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com2")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.n6=this.getChild("n6"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17"),this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33")}}ca.URL="ui://isxx5ak7wcn5v4ks";class da extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com1_1")}onConstruct(){this.n5=this.getChild("n5"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0")}}da.URL="ui://isxx5ak7wcn5v4kt";class ua extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com5")}onConstruct(){this.flashNode=this.getChild("flashNode"),this.rotNode=this.getChild("rotNode"),this.n3=this.getChild("n3"),this.n21=this.getChild("n21"),this.t0=this.getTransition("t0")}}ua.URL="ui://isxx5ak7wcn5v4kz";class ga extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com7")}onConstruct(){this.n2=this.getChild("n2"),this.n35=this.getChild("n35"),this.img1=this.getChild("img1"),this.img2=this.getChild("img2"),this.img3=this.getChild("img3"),this.img4=this.getChild("img4"),this.img6=this.getChild("img6"),this.img5=this.getChild("img5"),this.txt1=this.getChild("txt1"),this.txt2=this.getChild("txt2"),this.txt3=this.getChild("txt3"),this.txt4=this.getChild("txt4"),this.txt5=this.getChild("txt5"),this.txt6=this.getChild("txt6")}}ga.URL="ui://isxx5ak7wcn5v4l1";class ma extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com9")}onConstruct(){this.n38=this.getChild("n38"),this.n39=this.getChild("n39")}}ma.URL="ui://isxx5ak7wcn5v4l8";class ya extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com10")}onConstruct(){this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0")}}ya.URL="ui://isxx5ak7wcn5v4l9";class pa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com11")}onConstruct(){this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0")}}pa.URL="ui://isxx5ak7wcn5v4la";class xa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com12")}onConstruct(){this.n43=this.getChild("n43"),this.barNode=this.getChild("barNode"),this.tipsTxt=this.getChild("tipsTxt"),this.n45=this.getChild("n45"),this.boxBtn=this.getChild("boxBtn")}}xa.URL="ui://isxx5ak7wcn5v4lb";class Ca extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com1")}onConstruct(){this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.t0=this.getTransition("t0")}}Ca.URL="ui://isxx5ak7wcn5v4lc";class fa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com3")}onConstruct(){this.n48=this.getChild("n48"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}fa.URL="ui://isxx5ak7wcn5v4ld";class ba extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","cancelBtn2")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.powerEft=this.getChild("powerEft")}}ba.URL="ui://isxx5ak7wehi3ue";class Ia extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","shareBtn2")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n24=this.getChild("n24"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n23=this.getChild("n23"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.powerEft=this.getChild("powerEft")}}Ia.URL="ui://isxx5ak7wehi3uf";class ka extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMoney")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.coinImg=this.getChild("coinImg"),this.addCoinBtn=this.getChild("addCoinBtn"),this.coinTxt=this.getChild("coinTxt"),this.n7=this.getChild("n7"),this.addDiamondBtn=this.getChild("addDiamondBtn"),this.diamondTxt=this.getChild("diamondTxt"),this.diamondImg=this.getChild("diamondImg"),this.n12=this.getChild("n12"),this.powerImg=this.getChild("powerImg"),this.addPowerBtn=this.getChild("addPowerBtn"),this.powerTxt=this.getChild("powerTxt"),this.powerTimeTxt=this.getChild("powerTimeTxt")}}ka.URL="ui://isxx5ak7wehi3ug";class wa extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","backBtn")}onConstruct(){this.n0=this.getChild("n0"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}wa.URL="ui://isxx5ak7wehi3ul";class Na extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","MoneyBtn")}onConstruct(){this.button=this.getController("button"),this.n0=this.getChild("n0")}}Na.URL="ui://isxx5ak7wehi3un";class La extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMoneyBtn")}onConstruct(){this.n1=this.getChild("n1"),this.closeBtn=this.getChild("closeBtn")}}La.URL="ui://isxx5ak7wehi3up";class va extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component64")}onConstruct(){this.n57=this.getChild("n57"),this.n54=this.getChild("n54"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56"),this.t1=this.getTransition("t1")}}va.URL="ui://isxx5ak7wp26456";class Ua extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41_3")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n9=this.getChild("n9"),this.n24=this.getChild("n24"),this.n27=this.getChild("n27"),this.titleTxt=this.getChild("titleTxt"),this.n28=this.getChild("n28"),this.t0=this.getTransition("t0")}}Ua.URL="ui://isxx5ak7wyzsv4o1";class Sa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs_4")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}Sa.URL="ui://isxx5ak7wyzsv4o2";class Ba extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component71_1")}onConstruct(){this.n17=this.getChild("n17"),this.t0=this.getTransition("t0")}}Ba.URL="ui://isxx5ak7xs1r47w";class Ma extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component83")}onConstruct(){this.c1=this.getController("c1"),this.n17=this.getChild("n17"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20")}}Ma.URL="ui://isxx5ak7xs1r47z";class Ta extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component84")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.numTxt=this.getChild("numTxt"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26")}}Ta.URL="ui://isxx5ak7xs1r480";class Oa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component84_1")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.numTxt=this.getChild("numTxt"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26")}}Oa.URL="ui://isxx5ak7xs1r481";class Ra extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component85")}onConstruct(){this.n1=this.getChild("n1"),this.n6=this.getChild("n6"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.levelTxt=this.getChild("levelTxt"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.modeNode=this.getChild("modeNode"),this.n18=this.getChild("n18"),this.conditionTxt=this.getChild("conditionTxt"),this.diamondNode=this.getChild("diamondNode"),this.coinNode=this.getChild("coinNode"),this.startBtn=this.getChild("startBtn"),this.n28=this.getChild("n28"),this.displayRoot=this.getChild("displayRoot"),this.t0=this.getTransition("t0")}}Ra.URL="ui://isxx5ak7xs1r482";class ja extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component86")}onConstruct(){this.n15=this.getChild("n15"),this.t0=this.getTransition("t0")}}ja.URL="ui://isxx5ak7xs1r483";class Pa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component87")}onConstruct(){this.n66=this.getChild("n66"),this.myProgress=this.getChild("myProgress"),this.starAni=this.getChild("starAni"),this.hpTxt=this.getChild("hpTxt"),this.n74=this.getChild("n74"),this.n73=this.getChild("n73"),this.ballTxt=this.getChild("ballTxt"),this.n76=this.getChild("n76"),this.helpLineBtn=this.getChild("helpLineBtn"),this.levelTxt=this.getChild("levelTxt"),this.star1=this.getChild("star1"),this.star2=this.getChild("star2"),this.star3=this.getChild("star3")}}Pa.URL="ui://isxx5ak7xs1r48m";class Da extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","Component88")}onConstruct(){this.n68=this.getChild("n68"),this.bar=this.getChild("bar")}}Da.URL="ui://isxx5ak7xs1r48n";class Ea extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component89")}onConstruct(){this.c1=this.getController("c1"),this.n71=this.getChild("n71"),this.n72=this.getChild("n72")}}Ea.URL="ui://isxx5ak7xs1r48o";class Aa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component90")}onConstruct(){this.c1=this.getController("c1"),this.n64=this.getChild("n64"),this.n65=this.getChild("n65"),this.n66=this.getChild("n66"),this.t0=this.getTransition("t0")}}Aa.URL="ui://isxx5ak7xs1r48p";class Ga extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component127")}onConstruct(){this.n5=this.getChild("n5")}}Ga.URL="ui://isxx5ak7yjr4v4m6";class Ha{static bindAll(){fgui.UIObjectFactory.setExtension(Ct.URL,Ct),fgui.UIObjectFactory.setExtension(ke.URL,ke),fgui.UIObjectFactory.setExtension(we.URL,we),fgui.UIObjectFactory.setExtension(Ne.URL,Ne),fgui.UIObjectFactory.setExtension(Le.URL,Le),fgui.UIObjectFactory.setExtension(pt.URL,pt),fgui.UIObjectFactory.setExtension(ve.URL,ve),fgui.UIObjectFactory.setExtension(Ue.URL,Ue),fgui.UIObjectFactory.setExtension(Se.URL,Se),fgui.UIObjectFactory.setExtension(jt.URL,jt),fgui.UIObjectFactory.setExtension(Be.URL,Be),fgui.UIObjectFactory.setExtension(Me.URL,Me),fgui.UIObjectFactory.setExtension(Te.URL,Te),fgui.UIObjectFactory.setExtension(Oe.URL,Oe),fgui.UIObjectFactory.setExtension(Re.URL,Re),fgui.UIObjectFactory.setExtension(je.URL,je),fgui.UIObjectFactory.setExtension(Pe.URL,Pe),fgui.UIObjectFactory.setExtension(De.URL,De),fgui.UIObjectFactory.setExtension(_.URL,_),fgui.UIObjectFactory.setExtension(Ee.URL,Ee),fgui.UIObjectFactory.setExtension(Ae.URL,Ae),fgui.UIObjectFactory.setExtension(Ge.URL,Ge),fgui.UIObjectFactory.setExtension(He.URL,He),fgui.UIObjectFactory.setExtension(Fe.URL,Fe),fgui.UIObjectFactory.setExtension(_e.URL,_e),fgui.UIObjectFactory.setExtension(ie.URL,ie),fgui.UIObjectFactory.setExtension(Ve.URL,Ve),fgui.UIObjectFactory.setExtension(We.URL,We),fgui.UIObjectFactory.setExtension(Ye.URL,Ye),fgui.UIObjectFactory.setExtension(Xe.URL,Xe),fgui.UIObjectFactory.setExtension(ze.URL,ze),fgui.UIObjectFactory.setExtension(Ke.URL,Ke),fgui.UIObjectFactory.setExtension(qe.URL,qe),fgui.UIObjectFactory.setExtension(Ze.URL,Ze),fgui.UIObjectFactory.setExtension($e.URL,$e),fgui.UIObjectFactory.setExtension(Je.URL,Je),fgui.UIObjectFactory.setExtension(Qe.URL,Qe),fgui.UIObjectFactory.setExtension(ti.URL,ti),fgui.UIObjectFactory.setExtension(ei.URL,ei),fgui.UIObjectFactory.setExtension(ii.URL,ii),fgui.UIObjectFactory.setExtension(si.URL,si),fgui.UIObjectFactory.setExtension(ni.URL,ni),fgui.UIObjectFactory.setExtension(ai.URL,ai),fgui.UIObjectFactory.setExtension(oi.URL,oi),fgui.UIObjectFactory.setExtension(hi.URL,hi),fgui.UIObjectFactory.setExtension(li.URL,li),fgui.UIObjectFactory.setExtension(ri.URL,ri),fgui.UIObjectFactory.setExtension(ci.URL,ci),fgui.UIObjectFactory.setExtension(H.URL,H),fgui.UIObjectFactory.setExtension(di.URL,di),fgui.UIObjectFactory.setExtension(ui.URL,ui),fgui.UIObjectFactory.setExtension(gi.URL,gi),fgui.UIObjectFactory.setExtension(mi.URL,mi),fgui.UIObjectFactory.setExtension(yi.URL,yi),fgui.UIObjectFactory.setExtension(pi.URL,pi),fgui.UIObjectFactory.setExtension(xi.URL,xi),fgui.UIObjectFactory.setExtension(Tt.URL,Tt),fgui.UIObjectFactory.setExtension(Ci.URL,Ci),fgui.UIObjectFactory.setExtension(fi.URL,fi),fgui.UIObjectFactory.setExtension(bi.URL,bi),fgui.UIObjectFactory.setExtension(Ii.URL,Ii),fgui.UIObjectFactory.setExtension(ki.URL,ki),fgui.UIObjectFactory.setExtension(wi.URL,wi),fgui.UIObjectFactory.setExtension(Ni.URL,Ni),fgui.UIObjectFactory.setExtension(Li.URL,Li),fgui.UIObjectFactory.setExtension(Ft.URL,Ft),fgui.UIObjectFactory.setExtension(vi.URL,vi),fgui.UIObjectFactory.setExtension(Ui.URL,Ui),fgui.UIObjectFactory.setExtension(Si.URL,Si),fgui.UIObjectFactory.setExtension(Bi.URL,Bi),fgui.UIObjectFactory.setExtension(Mi.URL,Mi),fgui.UIObjectFactory.setExtension(qt.URL,qt),fgui.UIObjectFactory.setExtension(Ti.URL,Ti),fgui.UIObjectFactory.setExtension(Oi.URL,Oi),fgui.UIObjectFactory.setExtension(Ri.URL,Ri),fgui.UIObjectFactory.setExtension(de.URL,de),fgui.UIObjectFactory.setExtension(ji.URL,ji),fgui.UIObjectFactory.setExtension(Pi.URL,Pi),fgui.UIObjectFactory.setExtension(ot.URL,ot),fgui.UIObjectFactory.setExtension(Di.URL,Di),fgui.UIObjectFactory.setExtension(Ei.URL,Ei),fgui.UIObjectFactory.setExtension(Ai.URL,Ai),fgui.UIObjectFactory.setExtension(ae.URL,ae),fgui.UIObjectFactory.setExtension(Gi.URL,Gi),fgui.UIObjectFactory.setExtension(Hi.URL,Hi),fgui.UIObjectFactory.setExtension(Fi.URL,Fi),fgui.UIObjectFactory.setExtension(_i.URL,_i),fgui.UIObjectFactory.setExtension(Vi.URL,Vi),fgui.UIObjectFactory.setExtension(Wi.URL,Wi),fgui.UIObjectFactory.setExtension(Yi.URL,Yi),fgui.UIObjectFactory.setExtension(Xi.URL,Xi),fgui.UIObjectFactory.setExtension(zi.URL,zi),fgui.UIObjectFactory.setExtension(Ki.URL,Ki),fgui.UIObjectFactory.setExtension(qi.URL,qi),fgui.UIObjectFactory.setExtension(Zi.URL,Zi),fgui.UIObjectFactory.setExtension($i.URL,$i),fgui.UIObjectFactory.setExtension(Ji.URL,Ji),fgui.UIObjectFactory.setExtension(Qi.URL,Qi),fgui.UIObjectFactory.setExtension(ts.URL,ts),fgui.UIObjectFactory.setExtension(es.URL,es),fgui.UIObjectFactory.setExtension(is.URL,is),fgui.UIObjectFactory.setExtension(ss.URL,ss),fgui.UIObjectFactory.setExtension(ns.URL,ns),fgui.UIObjectFactory.setExtension(as.URL,as),fgui.UIObjectFactory.setExtension(os.URL,os),fgui.UIObjectFactory.setExtension(hs.URL,hs),fgui.UIObjectFactory.setExtension(ls.URL,ls),fgui.UIObjectFactory.setExtension(rs.URL,rs),fgui.UIObjectFactory.setExtension(cs.URL,cs),fgui.UIObjectFactory.setExtension(ds.URL,ds),fgui.UIObjectFactory.setExtension(us.URL,us),fgui.UIObjectFactory.setExtension(At.URL,At),fgui.UIObjectFactory.setExtension(gs.URL,gs),fgui.UIObjectFactory.setExtension(ms.URL,ms),fgui.UIObjectFactory.setExtension(te.URL,te),fgui.UIObjectFactory.setExtension(ys.URL,ys),fgui.UIObjectFactory.setExtension(ps.URL,ps),fgui.UIObjectFactory.setExtension(xs.URL,xs),fgui.UIObjectFactory.setExtension(Cs.URL,Cs),fgui.UIObjectFactory.setExtension(fs.URL,fs),fgui.UIObjectFactory.setExtension(bs.URL,bs),fgui.UIObjectFactory.setExtension(Is.URL,Is),fgui.UIObjectFactory.setExtension(ks.URL,ks),fgui.UIObjectFactory.setExtension(ws.URL,ws),fgui.UIObjectFactory.setExtension(Ns.URL,Ns),fgui.UIObjectFactory.setExtension(Ls.URL,Ls),fgui.UIObjectFactory.setExtension(vs.URL,vs),fgui.UIObjectFactory.setExtension(Us.URL,Us),fgui.UIObjectFactory.setExtension(Ss.URL,Ss),fgui.UIObjectFactory.setExtension(Bs.URL,Bs),fgui.UIObjectFactory.setExtension(Ms.URL,Ms),fgui.UIObjectFactory.setExtension(Ts.URL,Ts),fgui.UIObjectFactory.setExtension(dt.URL,dt),fgui.UIObjectFactory.setExtension(at.URL,at),fgui.UIObjectFactory.setExtension(Os.URL,Os),fgui.UIObjectFactory.setExtension(Z.URL,Z),fgui.UIObjectFactory.setExtension(Rs.URL,Rs),fgui.UIObjectFactory.setExtension(js.URL,js),fgui.UIObjectFactory.setExtension(Ps.URL,Ps),fgui.UIObjectFactory.setExtension(Ds.URL,Ds),fgui.UIObjectFactory.setExtension(xe.URL,xe),fgui.UIObjectFactory.setExtension(Es.URL,Es),fgui.UIObjectFactory.setExtension(As.URL,As),fgui.UIObjectFactory.setExtension(Gs.URL,Gs),fgui.UIObjectFactory.setExtension(Hs.URL,Hs),fgui.UIObjectFactory.setExtension(Fs.URL,Fs),fgui.UIObjectFactory.setExtension(rt.URL,rt),fgui.UIObjectFactory.setExtension(_s.URL,_s),fgui.UIObjectFactory.setExtension(Vs.URL,Vs),fgui.UIObjectFactory.setExtension(Ws.URL,Ws),fgui.UIObjectFactory.setExtension(Ys.URL,Ys),fgui.UIObjectFactory.setExtension(Xs.URL,Xs),fgui.UIObjectFactory.setExtension(zs.URL,zs),fgui.UIObjectFactory.setExtension(Ks.URL,Ks),fgui.UIObjectFactory.setExtension(qs.URL,qs),fgui.UIObjectFactory.setExtension(Zs.URL,Zs),fgui.UIObjectFactory.setExtension($s.URL,$s),fgui.UIObjectFactory.setExtension(Js.URL,Js),fgui.UIObjectFactory.setExtension($t.URL,$t),fgui.UIObjectFactory.setExtension(Qs.URL,Qs),fgui.UIObjectFactory.setExtension(tn.URL,tn),fgui.UIObjectFactory.setExtension(Lt.URL,Lt),fgui.UIObjectFactory.setExtension(en.URL,en),fgui.UIObjectFactory.setExtension(sn.URL,sn),fgui.UIObjectFactory.setExtension(nn.URL,nn),fgui.UIObjectFactory.setExtension(an.URL,an),fgui.UIObjectFactory.setExtension(on.URL,on),fgui.UIObjectFactory.setExtension(hn.URL,hn),fgui.UIObjectFactory.setExtension(ln.URL,ln),fgui.UIObjectFactory.setExtension(rn.URL,rn),fgui.UIObjectFactory.setExtension(cn.URL,cn),fgui.UIObjectFactory.setExtension(dn.URL,dn),fgui.UIObjectFactory.setExtension(un.URL,un),fgui.UIObjectFactory.setExtension(gn.URL,gn),fgui.UIObjectFactory.setExtension(fe.URL,fe),fgui.UIObjectFactory.setExtension(mn.URL,mn),fgui.UIObjectFactory.setExtension(yn.URL,yn),fgui.UIObjectFactory.setExtension(Y.URL,Y),fgui.UIObjectFactory.setExtension(Ut.URL,Ut),fgui.UIObjectFactory.setExtension(pn.URL,pn),fgui.UIObjectFactory.setExtension(xn.URL,xn),fgui.UIObjectFactory.setExtension(Cn.URL,Cn),fgui.UIObjectFactory.setExtension(fn.URL,fn),fgui.UIObjectFactory.setExtension(bn.URL,bn),fgui.UIObjectFactory.setExtension(In.URL,In),fgui.UIObjectFactory.setExtension(kn.URL,kn),fgui.UIObjectFactory.setExtension(wn.URL,wn),fgui.UIObjectFactory.setExtension(Nn.URL,Nn),fgui.UIObjectFactory.setExtension(Ln.URL,Ln),fgui.UIObjectFactory.setExtension(vn.URL,vn),fgui.UIObjectFactory.setExtension(Un.URL,Un),fgui.UIObjectFactory.setExtension(Sn.URL,Sn),fgui.UIObjectFactory.setExtension(Bn.URL,Bn),fgui.UIObjectFactory.setExtension(Mn.URL,Mn),fgui.UIObjectFactory.setExtension(Tn.URL,Tn),fgui.UIObjectFactory.setExtension(On.URL,On),fgui.UIObjectFactory.setExtension(Rn.URL,Rn),fgui.UIObjectFactory.setExtension(Vt.URL,Vt),fgui.UIObjectFactory.setExtension(jn.URL,jn),fgui.UIObjectFactory.setExtension(Bt.URL,Bt),fgui.UIObjectFactory.setExtension(Pn.URL,Pn),fgui.UIObjectFactory.setExtension(Dn.URL,Dn),fgui.UIObjectFactory.setExtension(En.URL,En),fgui.UIObjectFactory.setExtension(An.URL,An),fgui.UIObjectFactory.setExtension(Gn.URL,Gn),fgui.UIObjectFactory.setExtension(tt.URL,tt),fgui.UIObjectFactory.setExtension(Hn.URL,Hn),fgui.UIObjectFactory.setExtension(it.URL,it),fgui.UIObjectFactory.setExtension(zt.URL,zt),fgui.UIObjectFactory.setExtension(Fn.URL,Fn),fgui.UIObjectFactory.setExtension(_n.URL,_n),fgui.UIObjectFactory.setExtension(Vn.URL,Vn),fgui.UIObjectFactory.setExtension(Wn.URL,Wn),fgui.UIObjectFactory.setExtension(Yn.URL,Yn),fgui.UIObjectFactory.setExtension(Xn.URL,Xn),fgui.UIObjectFactory.setExtension(zn.URL,zn),fgui.UIObjectFactory.setExtension(Kn.URL,Kn),fgui.UIObjectFactory.setExtension(ht.URL,ht),fgui.UIObjectFactory.setExtension(qn.URL,qn),fgui.UIObjectFactory.setExtension(Zn.URL,Zn),fgui.UIObjectFactory.setExtension($n.URL,$n),fgui.UIObjectFactory.setExtension(Jn.URL,Jn),fgui.UIObjectFactory.setExtension(Qn.URL,Qn),fgui.UIObjectFactory.setExtension(ta.URL,ta),fgui.UIObjectFactory.setExtension(ea.URL,ea),fgui.UIObjectFactory.setExtension(ia.URL,ia),fgui.UIObjectFactory.setExtension(sa.URL,sa),fgui.UIObjectFactory.setExtension(na.URL,na),fgui.UIObjectFactory.setExtension(aa.URL,aa),fgui.UIObjectFactory.setExtension(oa.URL,oa),fgui.UIObjectFactory.setExtension(ha.URL,ha),fgui.UIObjectFactory.setExtension(la.URL,la),fgui.UIObjectFactory.setExtension(G.URL,G),fgui.UIObjectFactory.setExtension(ra.URL,ra),fgui.UIObjectFactory.setExtension(ca.URL,ca),fgui.UIObjectFactory.setExtension(da.URL,da),fgui.UIObjectFactory.setExtension(ua.URL,ua),fgui.UIObjectFactory.setExtension(ga.URL,ga),fgui.UIObjectFactory.setExtension(ma.URL,ma),fgui.UIObjectFactory.setExtension(ya.URL,ya),fgui.UIObjectFactory.setExtension(pa.URL,pa),fgui.UIObjectFactory.setExtension(xa.URL,xa),fgui.UIObjectFactory.setExtension(Ca.URL,Ca),fgui.UIObjectFactory.setExtension(fa.URL,fa),fgui.UIObjectFactory.setExtension(ba.URL,ba),fgui.UIObjectFactory.setExtension(Ia.URL,Ia),fgui.UIObjectFactory.setExtension(ka.URL,ka),fgui.UIObjectFactory.setExtension(wa.URL,wa),fgui.UIObjectFactory.setExtension(Na.URL,Na),fgui.UIObjectFactory.setExtension(La.URL,La),fgui.UIObjectFactory.setExtension(va.URL,va),fgui.UIObjectFactory.setExtension(Ua.URL,Ua),fgui.UIObjectFactory.setExtension(Sa.URL,Sa),fgui.UIObjectFactory.setExtension(xt.URL,xt),fgui.UIObjectFactory.setExtension(Ba.URL,Ba),fgui.UIObjectFactory.setExtension(Ma.URL,Ma),fgui.UIObjectFactory.setExtension(Ta.URL,Ta),fgui.UIObjectFactory.setExtension(Oa.URL,Oa),fgui.UIObjectFactory.setExtension(Ra.URL,Ra),fgui.UIObjectFactory.setExtension(ja.URL,ja),fgui.UIObjectFactory.setExtension(Pa.URL,Pa),fgui.UIObjectFactory.setExtension(Da.URL,Da),fgui.UIObjectFactory.setExtension(Ea.URL,Ea),fgui.UIObjectFactory.setExtension(Aa.URL,Aa),fgui.UIObjectFactory.setExtension(Ga.URL,Ga)}}class Fa extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn6")}onConstruct(){this.n6=this.getChild("n6"),this.n1=this.getChild("n1")}}Fa.URL="ui://37nctnhwc6l6v4em";class _a extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","xyItem")}onConstruct(){this.xyItem=this.getChild("xyItem")}}_a.URL="ui://37nctnhwcpayv4el";class Va extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("loading","loadinfo")}onConstruct(){this.bg=this.getChild("bg"),this.bar=this.getChild("bar"),this.title=this.getChild("title"),this.ani=this.getChild("ani")}}Va.URL="ui://37nctnhwis36c";class Wa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","xyNode")}onConstruct(){this.n0=this.getChild("n0"),this.btnYes=this.getChild("btnYes"),this.btnNo=this.getChild("btnNo"),this.btnKnown=this.getChild("btnKnown"),this.btnSure=this.getChild("btnSure"),this.txtWelcom=this.getChild("txtWelcom"),this.txtXy=this.getChild("txtXy"),this.n75=this.getChild("n75"),this.btnXy1=this.getChild("btnXy1"),this.btnXy3=this.getChild("btnXy3"),this.btnXy2=this.getChild("btnXy2"),this.n74=this.getChild("n74"),this.xy1=this.getChild("xy1"),this.txtTitle=this.getChild("txtTitle"),this.btnBack=this.getChild("btnBack"),this.xyList=this.getChild("xyList"),this.xy2=this.getChild("xy2"),this.xyNode=this.getChild("xyNode")}}Wa.URL="ui://37nctnhwjvenv4ee";class Ya extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","ageNode")}onConstruct(){this.n3=this.getChild("n3"),this.n7=this.getChild("n7"),this.n4=this.getChild("n4"),this.btnAge=this.getChild("btnAge"),this.ageNode=this.getChild("ageNode")}}Ya.URL="ui://37nctnhwjvenv4ef";class Xa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","rnNode")}onConstruct(){this.n28=this.getChild("n28"),this.n30=this.getChild("n30"),this.n33=this.getChild("n33"),this.rn1=this.getChild("rn1"),this.n40=this.getChild("n40"),this.n41=this.getChild("n41"),this.rn3=this.getChild("rn3"),this.n37=this.getChild("n37"),this.n39=this.getChild("n39"),this.rn2=this.getChild("rn2"),this.n47=this.getChild("n47"),this.n49=this.getChild("n49"),this.n44=this.getChild("n44"),this.inputCode=this.getChild("inputCode"),this.inputName=this.getChild("inputName"),this.n48=this.getChild("n48"),this.n50=this.getChild("n50"),this.rn4=this.getChild("rn4"),this.btnCheck=this.getChild("btnCheck"),this.btnExit=this.getChild("btnExit"),this.btnDone=this.getChild("btnDone"),this.rnNode=this.getChild("rnNode")}}Xa.URL="ui://37nctnhwjvenv4eg";class za extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","tipNode")}onConstruct(){this.bg=this.getChild("bg"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56"),this.tipNode=this.getChild("tipNode")}}za.URL="ui://37nctnhwjvenv4eh";class Ka extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","fcmNode")}onConstruct(){this.n63=this.getChild("n63"),this.n62=this.getChild("n62"),this.btnRn=this.getChild("btnRn"),this.n61=this.getChild("n61"),this.n58=this.getChild("n58"),this.fcmNode=this.getChild("fcmNode")}}Ka.URL="ui://37nctnhwjvenv4ei";class qa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","msgNode")}onConstruct(){this.n69=this.getChild("n69"),this.txtMsg=this.getChild("txtMsg"),this.msgNode=this.getChild("msgNode")}}qa.URL="ui://37nctnhwjvenv4ek";class Za extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","dh_zy_ganfa")}onConstruct(){this.n1=this.getChild("n1"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n12=this.getChild("n12"),this.n11=this.getChild("n11"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17"),this.n18=this.getChild("n18"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.t0=this.getTransition("t0")}}Za.URL="ui://37nctnhwkys71u";class $a extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn5")}onConstruct(){this.n9=this.getChild("n9"),this.n1=this.getChild("n1")}}$a.URL="ui://37nctnhwm0q7v4ed";class Ja extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","UILoading")}onConstruct(){this.n12=this.getChild("n12"),this.loadinfo=this.getChild("loadinfo"),this.n13=this.getChild("n13"),this.txtLoad=this.getChild("txtLoad"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.t_d=this.getChild("t_d"),this.n18=this.getChild("n18")}}Ja.URL="ui://37nctnhwphc33";class Qa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","AgeItem")}onConstruct(){this.txtAge=this.getChild("txtAge")}}Qa.URL="ui://37nctnhwxe622n";class to extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn1")}onConstruct(){this.n6=this.getChild("n6"),this.n1=this.getChild("n1")}}to.URL="ui://37nctnhwxe622p";class eo extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn3")}onConstruct(){this.n9=this.getChild("n9"),this.n1=this.getChild("n1")}}eo.URL="ui://37nctnhwxe622s";class io extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn2")}onConstruct(){this.n6=this.getChild("n6"),this.n1=this.getChild("n1")}}io.URL="ui://37nctnhwxe622t";class so extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnBack")}onConstruct(){this.n6=this.getChild("n6"),this.n7=this.getChild("n7")}}so.URL="ui://37nctnhwxe622u";class no extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnXy1")}onConstruct(){this.n1=this.getChild("n1")}}no.URL="ui://37nctnhwxe622w";class ao extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnXy2")}onConstruct(){this.n1=this.getChild("n1")}}ao.URL="ui://37nctnhwxe622x";class oo extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnXy3")}onConstruct(){this.n1=this.getChild("n1")}}oo.URL="ui://37nctnhwxe622y";class ho extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn4")}onConstruct(){this.n9=this.getChild("n9"),this.n1=this.getChild("n1")}}ho.URL="ui://37nctnhwxe622z";class lo{static bindAll(){fgui.UIObjectFactory.setExtension(Fa.URL,Fa),fgui.UIObjectFactory.setExtension(_a.URL,_a),fgui.UIObjectFactory.setExtension(Va.URL,Va),fgui.UIObjectFactory.setExtension(Wa.URL,Wa),fgui.UIObjectFactory.setExtension(Ya.URL,Ya),fgui.UIObjectFactory.setExtension(Xa.URL,Xa),fgui.UIObjectFactory.setExtension(za.URL,za),fgui.UIObjectFactory.setExtension(Ka.URL,Ka),fgui.UIObjectFactory.setExtension(qa.URL,qa),fgui.UIObjectFactory.setExtension(Za.URL,Za),fgui.UIObjectFactory.setExtension($a.URL,$a),fgui.UIObjectFactory.setExtension(Ja.URL,Ja),fgui.UIObjectFactory.setExtension(Qa.URL,Qa),fgui.UIObjectFactory.setExtension(to.URL,to),fgui.UIObjectFactory.setExtension(eo.URL,eo),fgui.UIObjectFactory.setExtension(io.URL,io),fgui.UIObjectFactory.setExtension(so.URL,so),fgui.UIObjectFactory.setExtension(no.URL,no),fgui.UIObjectFactory.setExtension(ao.URL,ao),fgui.UIObjectFactory.setExtension(oo.URL,oo),fgui.UIObjectFactory.setExtension(ho.URL,ho),fgui.UIObjectFactory.setExtension(ut.URL,ut)}}class ro{constructor(){this._stage=null,this._uiList=[],this._showList=[],this._bindPkgList=[],this.uiIndex=0}static get inst(){return null==ro._inst&&(ro._inst=new ro),ro._inst}setStage(t){this._stage?console.log("ViewMgr::Stage->舞台不可赋值两次"):this._stage=t}init(){this.setStage(Laya.stage),fairygui.UIConfig.defaultFont="微软雅黑",fairygui.UIConfig.modalLayerColor="rgba(0,0,0,0.9)",fairygui.UIConfig.packageFileExtension="obj",fairygui.UIConfig.bringWindowToFrontOnClick=!1,Laya.stage.addChild(fairygui.GRoot.inst.displayObject),fairygui.GRoot.inst.width=Laya.stage.width,fairygui.GRoot.inst.height=Laya.stage.height,Laya.timer.frameLoop(1,this,this.addAllUpdate)}addAllUpdate(){for(this.uiIndex=0;this.uiIndex<this._uiList.length;this.uiIndex++)this._uiList[this.uiIndex]&&this._uiList[this.uiIndex].isShowing&&this._uiList[this.uiIndex].myUpdate&&this._uiList[this.uiIndex].myUpdate(.001*Laya.timer.delta)}bindFUI(t){if(!(this._bindPkgList.indexOf(t)>=0))switch(t){case e.loading:fairygui.UIPackage.addPackage(t),lo.bindAll(),this._bindPkgList.push(t);break;case e.game:fairygui.UIPackage.addPackage(t),Ha.bindAll(),this._bindPkgList.push(t)}}Show(t,...e){let i=t.uiName;for(let t=this._uiList.length-1;t>=0;t--){let s=this._uiList[t];if(s.className==i){if(!s.isMuti)return s.show(...e),this._uiList.splice(t,1),this._uiList.push(s),s;if(s.isHide)return s.show(...e),this._uiList.splice(t,1),this._uiList.push(s),s}}let s=new t;return s.className=i,this._showUI(s,e),s}destroyUI(t){for(let e=this._uiList.length-1;e>=0;e--){if(this._uiList[e].className==t.className){this._uiList.splice(e,1);break}}this.checkUIState()}_showUI(t,e){this._uiList.push(t),t.show(...e)}Hide(t){let e=this.getUI(t);e&&!e.isHide&&e.hide()}getUI(t){let e=t.uiName;for(let t=0;t<this._uiList.length;t++){let i=this._uiList[t];if(i.className==e)return i}return null}isShow(t){for(var e of this._uiList)if(e instanceof t)return e.isShowing;return!1}showUINum(){let t=0;for(var e of this._uiList)e.isShowing&&t++;return t}checkUIState(){Laya.timer.clear(this,this._uiCheck),Laya.timer.once(400,this,this._uiCheck)}_uiCheck(){let t=[];for(var e of this._uiList)e.isHide||t.push(e);for(let e=0;e<t.length;e++)e==t.length-1?t[e].checkActive(!0):t[e].checkActive(!1)}showTip(t,e=600,i=30){}}class co{constructor(){this.soundMax=4,this.isLoad=!1,this.soundMap={},this.isSound=!0,this.openShake=!0,co._instance=this}static getInstance(){return this._instance||(this._instance=new co),this._instance}init(){Laya.SoundManager.autoReleaseSound=!0,Laya.SoundManager.autoStopMusic=!0,Laya.SoundManager.musicVolume=.3,Laya.SoundManager.soundVolume=.5,this.musicPlayed=!1,Moyu.isNeedOgg?this.audioUrl="asset/sound/ogg/":this.audioUrl="asset/sound/mp3/",this.isLoad=!0}onSetting(t){this.isSound=t,this.mute(!this.isSound)}clearCount(){for(var t in this.soundMap)delete this.soundMap[t]}playMusic(t,e=0){if(this.musicPath=t,!this.isLoad)return;if(!t||""==t)return;if(!this.isSound)return;this.musicPlayed=!0;let i=this.getUrl(t);Laya.Browser.onPC?Laya.loader.load(i,Laya.Handler.create(this,()=>{this.play(i,e)})):this.play(i,e)}play(t,e){Laya.SoundManager.playMusic(t,e)}getUrl(t){let e=this.audioUrl+t;return Moyu.isNeedOgg?e+=".ogg":e+=".mp3",e}pauseMusic(t){t?this.mute(!0):this.isSound&&this.mute(!1)}stopMusic(){Laya.SoundManager.stopMusic(),Moyu.isNeedPlatAudio&&Moyu.stopMusic()}mute(t){Moyu.isNeedPlatAudio?Moyu.pauseMusic(t):(Laya.SoundManager.musicMuted=t,t||this.musicPlayed||!this.musicPath||this.playMusic(this.musicPath))}stopSound(t){let e=this.getUrl(t);Laya.SoundManager.stopSound(e)}playSound(t,e=1,i=this.soundMax){if(!this.isLoad)return;if(!this.isSound)return;if(!t||""==t)return;let s=this.getUrl(t);if(Moyu.isNeedPlatAudio)Moyu.playSound(t,0==e);else{let n=1;if(this.soundMap[t]&&(n=this.soundMap[t]+1),n>i)return;this.soundMap[t]=n,Laya.SoundManager.playSound(s,e),Laya.timer.once(500*e,this,this.removePath,[t],!1)}}removePath(t){if(this.soundMap[t]){let e=this.soundMap[t];--e<1?delete this.soundMap[t]:this.soundMap[t]=e}}playBtnSound(){this.playSound("btn")}playGetSound(){}playCloseUISound(){}}co._instance=null;var uo,go=Laya.Handler;!function(t){t[t.none=0]="none",t[t.nromal=1]="nromal",t[t.td=2]="td",t[t.sk=3]="sk"}(uo||(uo={}));class mo{constructor(t,e){this.completrCall=t,this.progressCall=e,this.progressHander=new go(this,this.onProgress),this.tdResMap={}}load(t){this.resCount=0,this.loadCount=0;for(let e=0;e<t.length;e++){let i=t[e];if(!i)continue;this.resCount++;let s=this.getResType(i);s==uo.nromal?this.loadNromal(i):s==uo.td&&this.loadTd(i)}}getRes(t){let e=this.getResType(t);if(e==uo.nromal)return Laya.loader.getRes(t);if(e==uo.td){let e=this.tdResMap[t];return e?e.clone():null}}destroy(){this.progressHander.clear(),this.progressHander=null}clearRes(t){let e=this.getResType(t);if(e==uo.nromal)Laya.loader.clearRes(t);else if(e==uo.td){let e=this.tdResMap[t];e&&e.destroy(),delete this.tdResMap[t]}}getResType(t){let e=this.getExtension(t);return"sk"==e?uo.sk:"ls"==e||"lh"==e||"lm"==e?uo.td:uo.nromal}getExtension(t){var e=t.lastIndexOf(".");return t.substr(e+1)}loadNromal(t){Laya.loader.load(t,Laya.Handler.create(this,e=>{e?this.onLoad():console.log("load res fail:"+t)}),this.progressHander)}loadSk(){}loadTd(t){this.tdResMap[t]?this.onLoad():Laya.Sprite3D.load(t,go.create(this,e=>{e?(this.tdResMap[t]=e,this.onLoad()):console.log("load res fail:"+t)}))}onLoad(){this.loadCount++,this.onProgress(1),this.loadCount>=this.resCount&&this.completrCall.run()}onProgress(t){let e=(this.loadCount+t)/this.resCount;this.progressCall.runWith(e)}}var yo=Laya.Handler;class po{constructor(){this.index=0}}class xo{constructor(){this.resList=[],this.doneList=[],this.resMap={},this.currentLoad=null,this.completeHandler=new yo(this,this.onComplete),this.progressHandler=new yo(this,this.onProgress),this.loader=new mo(this.completeHandler,this.progressHandler)}static getInstance(){return null==xo._instance&&(xo._instance=new xo),xo._instance}loadList(t,e,i){if(t.length<1)return void e.run();let s=this.getResInfo();s.resList=t,s.completeHandler=e,s.progressHandler=i,this.resList.push(s),this.startLoad()}loadFguiRes(t,e,i){Laya.loader.load(t,e,i)}loadAny(t,e,i){Laya.loader.load(t,e,i)}load(t,e,i){let s=this.resMap[t];s&&s>0?e&&e.run():this.loadList([t],e,i)}getRes(t){if(this.resMap[t])return this.loader.getRes(t);this.showLog("资源不存在:"+t)}clearList(t,e=!1){if(!t||t.length<1)return;Laya.timer.clearAll(this),Laya.timer.once(2e3,this,()=>{for(const i in t){let s=t[i];if(s)if(e)this.loader.clearRes(s),delete this.resMap[s];else{let t=this.resMap[s];t&&t>1?(t--,this.resMap[s]=t):(this.loader.clearRes(s),delete this.resMap[s])}}window.hasOwnProperty("ks")||Laya.Resource.destroyUnusedResources()})}clear3D(){for(const t in this.loader.tdResMap)this.loader.clearRes(t),this.resMap[t]&&delete this.resMap[t];window.hasOwnProperty("ks")||Laya.Resource.destroyUnusedResources()}clear(t,e=!1){this.clearList([t],e)}getResInfo(){return this.doneList.length>0?this.doneList.pop():new po}startLoad(){this.currentLoad||(this.currentLoad=this.resList.pop(),this.currentLoad&&this.loader.load(this.currentLoad.resList))}onComplete(){if(this.currentLoad){for(const t in this.currentLoad.resList){let e=this.currentLoad.resList[t],i=this.resMap[e];i?i++:i=1,this.resMap[e]=i}this.currentLoad.completeHandler&&this.currentLoad.completeHandler.run(),this.doneList.push(this.currentLoad),this.currentLoad=null,this.startLoad()}}onProgress(t){this.currentLoad&&this.currentLoad.progressHandler&&this.currentLoad.progressHandler.runWith(t)}showLog(t,...e){console.log("[ResLoader] "+t)}}xo._instance=null;let Co=new class extends Laya.EventDispatcher{};class fo{static getInstance(){return this._instance||(this._instance=new fo),this._instance}init(){this.npcJson=Laya.loader.getRes("res/json/npc.json").Data,this.classicCfg=Laya.loader.getRes("res/json/classicCfg.json"),this.levelCfg=Laya.loader.getRes("res/json/levelCfg.json"),this.placeBallCfg=Laya.loader.getRes("res/json/placeBallCfg.json")}getUserInfoByIndex(t){return this.npcJson[t]}getRandomUserInfo(){let t=Bo.tools.random(0,this.npcJson.length);return this.npcJson[t]}getMaxBigMoveLength(){return Object.keys(this.levelCfg).length}getBigMoveLevelByIndex(t){let e=this.levelCfg;return e=e[t]}getRandomClassicLevel(){let t=this.classicCfg,e=Object.keys(t).length;return t[Bo.common.randomNum(1,e)]}getPlaceBallByLevel(t){return this.placeBallCfg[t]}getMaxPlaceBall(){return Object.keys(this.placeBallCfg).length}}class bo{constructor(){this.pool={}}static get ins(){return this._ins||(this._ins=new bo)}createList(t,e,i){this.pool[t]||(this.pool[t]={},this.pool[t].prefab=e,this.pool[t].list=[],this.pool[t].parent=i)}getItem(t){if(!this.pool[t])return;let e;return this.pool[t].list.length>0?e=this.pool[t].list.pop():(e=this.pool[t].prefab.clone(),this.pool[t].parent&&this.pool[t].parent.addChild(e)),e.active=!0,e}putItem(t,e){this.pool[t]&&(e.active=!1,this.pool[t].list.push(e))}}let Io=B,ko=ro.inst,wo=co.getInstance(),No=xo.getInstance(),Lo=D.getInstance(),vo=Ie.getInstance(),Uo=fo.getInstance(),So=bo.ins;let Bo={context:Io,eventMgr:Co,resMgr:No,uiMgr:ko,soundMgr:wo,define:S,tools:P,httpMgr:Lo,d3TexUrl:"res/d3Res/",d3ModeUrl:"res/unityRes/",common:vo,cfgMgr:Uo,poolD3Mgr:So,setStageSize:function(t){t.width&&(t.width=Laya.stage.width,t.height=Laya.stage.height)},filledBg:function(t){Laya.stage.height/Laya.stage.width>16/9?(t.height=Laya.stage.height,t.width=Laya.stage.height/1334*750):(t.width=Laya.stage.width,t.height=Laya.stage.width/750*1334)},setNotch:function(t){t.height&&(t.y+=Io.notchHeight)},showTip:function(t){ko.Show(_t,t)},log:function(...t){console.log(t)}};window.xGame=Bo;let Mo="tBall_";class To{constructor(){this.userId="",this.isAgree=!1,this.coinNum=0,this.gemNum=0,this.sound=!0,this.vibration=!0,this.currentDate=0,this.createTime=0,this.awardTime=0,this.roleId=1,this.roleList=[],this.roleAds=[],this.dressId=101,this.itemId=201,this.bigSkills=[1,1,1,1,1],this.coin=4e3,this.diamond=0,this.skillSuccessTimes=0,this.skillGuide=0,this.skillAccTimes=0,this.placeBallData=[],this.shareDiamondTimes=0,this.dailyVideoShareTimes=0,this.secretary=[1,0],this.curSecretary=0,this.ballRod=[1,0,0,0,0,1],this.curBallRod=5,this.signData=0,this.signTime=0,this.drawTimes=0,this.drawAwardTimes=0,this.dailyfreeDrawTimes=1,this.power=5,this.powerTime=0,this.challengeTimes=0,this.extraSign=0,this.classicTimes=0,this.guideHelpLine=0,this.newUser=!0,this.rootBallFoul=0,this.timeoutFoul=0,this.roleList=[1]}saveData(){let t={};for(let e in this)t[e.toString()]=this[e];Laya.LocalStorage.setItem(Mo+"userdata",JSON.stringify(t))}getData(){let t=Laya.LocalStorage.getItem(Mo+"userdata");if(t){let e=JSON.parse(t);if(e)for(let t in this){let i=e[t.toString()];null!=i&&(this[t]=i)}}}}class Oo{constructor(){this.itemList={},this.itemList[101]={id:101,count:1,adnum:0,active:!0},this.itemList[201]={id:201,count:1,adnum:0,active:!0}}saveData(){Laya.LocalStorage.setItem(Mo+"itemdata",JSON.stringify(this.itemList))}getData(){let t=Laya.LocalStorage.getItem(Mo+"itemdata");if(t){let e=JSON.parse(t);e&&(this.itemList=e)}}}class Ro{constructor(){this.curLevel=0,this.gameType=1,this.signIdx=0,this.signMax=0,this.rotaryTime=0,this.rotaryCount=0,this.rotaryList=[],this.diyCount=3,this.awardIdx=0,this.shareNum=2,this.rankWeek=0,this.rankScore=0,this.gameCount=0,this.trySkill=-1,this.tryTime=0}saveData(){let t={};for(let e in this)t[e.toString()]=this[e];Laya.LocalStorage.setItem(Mo+"gamedata",JSON.stringify(t))}getData(){let t=Laya.LocalStorage.getItem(Mo+"gamedata");if(t){let e=JSON.parse(t);if(e)for(let t in this){let i=e[t.toString()];null!=i&&(this[t]=i)}}}}class jo{static Init(){this.userData=new To,this.gameData=new Ro,this.itemData=new Oo,this.userData.getData(),this.gameData.getData(),this.itemData.getData(),this.roleId=this.userData.roleId,this.resetUse()}static isNewDay(){Moyu.isNewDay(this,t=>{Bo.common.isNewDay=t,t&&(jo.setShareDiamondTimes(0,!1),jo.setDailyVideoShareTimes(0,!1),jo.setDailyfreeDrawTimes(1),jo.setExtraSign(0))})}static deletData(){Laya.LocalStorage.clear()}static upRankData(){let t=Bo.common.getAllStarNum();t>0&&Moyu.upRankData(Bo.common.curRankID,t)}static addItem(t,e=1){let i=this.itemData.itemList[t];i?i.active?i.count+=e:(i.count=e,i.active=!0):i={id:t,count:e,adnum:0,active:!0},this.itemData.itemList[t]=i,Bo.soundMgr.playGetSound(),this.saveItemData()}static hasItem(t){let e=this.itemData.itemList[t];return!(!e||!e.active)}static getItem(t){return this.itemData.itemList[t]}static getItemCount(t){let e=this.itemData.itemList[t];return e&&e.active?e.count:0}static getItemAd(t){let e=this.itemData.itemList[t];return e?e.adnum:0}static onItemAd(t,e=1){let i=this.itemData.itemList[t];i?i.adnum+=e:i={id:t,count:1,adnum:e,active:!1},this.itemData.itemList[t]=i,this.saveItemData()}static costItem(t,e){let i=this.itemData.itemList[t];return!(!i||!i.active)&&(!(i.count<e)&&(i.count-=e,this.itemData.itemList[t]=i,!0))}static resetUse(){this.dressId=this.userData.dressId,this.itemId=this.userData.itemId}static passLevel(){this.curLevel==this.gameData.curLevel&&this.curLevel<=this.maxLevel&&this.gameData.curLevel++,this.curLevel=this.gameData.curLevel,this.saveGameData()}static useRole(t){this.roleId=t,this.hasRole(t)&&(this.userData.roleId=t,this.saveUserData())}static addRole(t){this.hasRole(t)||(this.userData.roleList.push(t),this.saveUserData())}static hasRole(t){return this.userData.roleList.indexOf(t)>=0}static gemEnough(t){return this.userData.gemNum>=t}static roleHasAd(t){let e=this.userData.roleAds[t];return null!=e&&e>=0}static saveUserData(t=1e3,e,i){this.userSaving||(this.userSaving=!0,Laya.timer.once(t,this,()=>{this.userSaving=!1,this.userData.saveData(),e&&Bo.eventMgr.event(e,i)}))}static saveGameData(){this.gameSaving||(this.gameSaving=!0,Laya.timer.once(1e3,this,()=>{this.gameSaving=!1,this.gameData.saveData()}))}static saveItemData(){let t=()=>{this.itemData.saveData()};Laya.timer.clear(this,t),Laya.timer.once(500,this,t)}static saveData(){this.saveUserData(),this.saveGameData()}static getBigSkillList(){return this.userData.bigSkills}static getBigSkillByIndex(t){return this.userData.bigSkills[t]}static setBigSkill(t,e,i=!0){i?this.userData.bigSkills[t]+=e:this.userData.bigSkills[t]=e,this.saveUserData()}static coinEnough(t){if("number"==typeof t)return this.userData.coin>=t;console.error("金币格式错误")}static setCoin(t){"number"==typeof t&&(this.userData.coin+=t,this.saveUserData(),Bo.eventMgr.event(c))}static getCoin(){return this.userData.coin}static diamondEnough(t){if("number"==typeof t)return this.userData.diamond>=t;console.error("金币格式错误")}static setDiamond(t){"number"==typeof t&&(this.userData.diamond+=t,this.saveUserData(),Bo.eventMgr.event(d))}static getDiamond(){return this.userData.diamond}static getSkillSuccessTimes(){return this.userData.skillSuccessTimes}static setSkillSuccessTimes(t,e=!0){e?this.userData.skillSuccessTimes+=t:this.userData.skillSuccessTimes=t,this.saveUserData()}static getSkillAccTimes(){return this.userData.skillAccTimes}static setSkillAccTimes(t){this.userData.skillAccTimes+=t,this.saveUserData()}static getSkillGuide(){return Bo.common.openGuide?this.userData.skillGuide:1}static setSkillGuide(t){this.userData.skillGuide=t,this.saveUserData()}static getPlaceBallLevelList(){return this.userData.placeBallData}static getPlaceBallLevel(t){let e,i=this.userData.placeBallData,s=t-1;if(i[s])e=i[s];else{e=i.length==s?{star:0,play:!0,isCur:!0,getAward:!1}:{star:0,play:!1,getAward:!1}}return e}static setPlaceBallLevel(t,e){let i=this.userData.placeBallData,s=t-1;if(i[s])i[s].star=Math.max(i[s].star,e);else{i.length==s?i.push({star:e,play:!0,getAward:!1}):console.error("关卡存储出错")}this.saveUserData()}static setPlaceBallAward(t){let e=this.userData.placeBallData,i=t-1;e[i]&&(e[i].getAward=!0),this.saveUserData()}static getShareDiamondTimes(){return this.userData.shareDiamondTimes}static setShareDiamondTimes(t,e=!0){e?this.userData.shareDiamondTimes+=t:this.userData.shareDiamondTimes=t,this.saveUserData()}static getDailyVideoShareTimes(){return this.userData.dailyVideoShareTimes}static setDailyVideoShareTimes(t,e=!0){e?this.userData.dailyVideoShareTimes+=t:this.userData.dailyVideoShareTimes=t,this.saveUserData()}static getSecretary(t){return this.userData.secretary[t]}static setSecretary(t,e){this.userData.secretary[t]=e,this.saveUserData()}static getCurSecretary(){return this.userData.curSecretary}static setCurSecretary(t){this.userData.curSecretary=t,this.saveUserData(),Bo.eventMgr.event(m,t)}static getBallRod(t){return this.userData.ballRod[t]}static setBallRod(t,e){this.userData.ballRod[t]=e,this.saveUserData()}static getCurBallRod(){return this.userData.curBallRod}static setCurBallRod(t){this.userData.curBallRod=t,this.saveUserData()}static setSignData(t){this.userData.signData=t,this.saveUserData()}static getSignData(){return this.userData.signData}static setSignTime(t){this.userData.signTime=t,this.saveUserData()}static getSignTime(){return this.userData.signTime}static getDrawTimes(){return this.userData.drawTimes}static setDrawTimes(t,e=!0){e?this.userData.drawTimes+=t:this.userData.drawTimes=t,this.saveUserData()}static getDrawAwardTimes(){return this.userData.drawAwardTimes}static setDrawAwardTimes(t){this.userData.drawAwardTimes=t,this.saveUserData()}static getDailyfreeDrawTimes(){return this.userData.dailyfreeDrawTimes}static setDailyfreeDrawTimes(t){this.userData.dailyfreeDrawTimes=t,this.saveUserData()}static setPower(t,e=!0){e?this.userData.power+=t:this.userData.power=t,this.userData.power>=Bo.common.maxPower&&(this.userData.power=Bo.common.maxPower),Bo.eventMgr.event(y,t),this.saveUserData()}static getPower(){return this.userData.power}static setPowerTime(t){this.userData.powerTime=t,this.saveUserData()}static getPowerTime(){return this.userData.powerTime}static powerEnough(){return this.getPower()>0}static getChallengeTimes(){return this.userData.challengeTimes}static setChallengeTimes(t){this.userData.challengeTimes+=t,this.saveUserData()}static getExtraSign(){return this.userData.extraSign}static setExtraSign(t){this.userData.extraSign=t,this.saveUserData()}static getClassicTimes(){return this.userData.classicTimes}static setClassicTimes(){this.userData.classicTimes+=1,this.saveUserData()}static getGuideHelpLine(){return this.userData.guideHelpLine}static setGuideHelpLine(){this.userData.guideHelpLine=1,this.saveUserData()}static getNewUser(){return this.userData.newUser}static setNewUser(){this.userData.newUser=!1,this.saveUserData()}static getRootBallFoul(){return this.userData.rootBallFoul}static setRootBallFoul(){this.userData.rootBallFoul=1,this.saveUserData()}static getTimeoutFoul(){return this.userData.timeoutFoul}static setTimeoutFoul(){this.userData.timeoutFoul=1,this.saveUserData()}}jo.isNewUser=!1,jo.fristEnter=!0,jo.levelType=0,jo.awardId=0,jo.awardCoin=0,jo.sceneId=-1,jo.tryId=0,jo.curLevel=1,jo.vipLevel=0,jo.maxLevel=0,jo.awardRatio=1,jo.gameList=[],jo.rankList=[],jo.recoverTime=48e4,jo.minScore=0,jo.rankDis=0,jo.userSaving=!1,jo.gameSaving=!1;class Po extends Laya.Script3D{constructor(){super(),this.isInited=!1}init(){this.isInited||(this.isInited=!0,this.gameObj=this.owner,this.transform=this.gameObj.transform)}get rotX(){return this.transform.localRotationEulerX}set rotX(t){this.transform.localRotationEulerX=t}get rotY(){return this.transform.localRotationEulerY}set rotY(t){this.transform.localRotationEulerY=t}get rotZ(){return this.transform.localRotationEulerZ}set rotZ(t){this.transform.localRotationEulerZ=t}get posX(){return this.transform.localPositionX}set posX(t){this.transform.localPositionX=t}get posY(){return this.transform.localPositionY}set posY(t){this.transform.localPositionY=t}get posZ(){return this.transform.localPositionZ}set posZ(t){this.transform.localPositionZ=t}get rotation(){return this.transform.localRotation}set rotation(t){this.transform.localRotation=t}}class Do extends Laya.Script{constructor(){super()}onTriggerEnter(t){if((!Bo.common.d2World.rootBall.forceRun||t.owner!=Bo.common.d2World.rootBall.owner)&&"inner"==t.label&&Bo.common.d2World.openCheckStill){if(t.owner.mySrc.isRunSkillAni)return;0!=t.owner.mySrc.number&&Bo.common.d2World.inHolesSpeed.push(t.owner.mySrc.rigy.speed),Bo.common.ballColliHole(t),Bo.common.recoverCameraView()}}}class Eo extends Laya.Script3D{constructor(){super(),this.isSetBorder=!1,this.inited=!1}onAwake(){this.init()}init(){this.inited||(this.inited=!0,this.gameObj=this.owner,this.border=this.gameObj.getChildByName("border"))}setBorderPos(){if(this.isSetBorder)return;this.isSetBorder=!0;let t=Bo.common.gameUI.ui,e=this.border.getChildByName("bar1"),i=this.border.getChildByName("bar2"),s=this.border.getChildByName("bar3"),n=this.border.getChildByName("bar4"),a=this.border.getChildByName("bar5"),o=this.border.getChildByName("bar6");this.setInfo(e,t.border.bar1,"box"),this.setInfo(i,t.border.bar2,"box"),this.setInfo(s,t.border.bar3,"box"),this.setInfo(n,t.border.bar4,"box"),this.setInfo(a,t.border.bar5,"box"),this.setInfo(o,t.border.bar6,"box");let h=this.border.getChildByName("circle1"),l=this.border.getChildByName("circle2"),r=this.border.getChildByName("circle3"),c=this.border.getChildByName("circle4"),d=this.border.getChildByName("circle5"),u=this.border.getChildByName("circle6");this.setInfo(h,t.border.circle1,"circle"),this.setInfo(l,t.border.circle2,"circle"),this.setInfo(r,t.border.circle3,"circle"),this.setInfo(c,t.border.circle4,"circle"),this.setInfo(d,t.border.circle5,"circle"),this.setInfo(u,t.border.circle6,"circle"),this.initHolePos(t.border.circle1.x,t.border.circle1.y),this.initHolePos(t.border.circle2.x,t.border.circle2.y),this.initHolePos(t.border.circle3.x,t.border.circle3.y),this.initHolePos(t.border.circle4.x,t.border.circle4.y),this.initHolePos(t.border.circle5.x,t.border.circle5.y),this.initHolePos(t.border.circle6.x,t.border.circle6.y);let g=Bo.common.gameMgr.holePosList;Bo.common.gameMgr.posObj={1:g[0],3:g[2],4:g[3],6:g[5]}}initHolePos(t,e){t<300?t+=25:t>1e3?t-=25:e>200?e-=10:e+=10,e<200?e+=30:e>500&&(e-=30),Bo.common.gameMgr.holePosList.push({x:t,y:e})}setInfo(t,e,i){let s=Bo.common.gameUI.ui,n=new Laya.Sprite;s.border.displayObject.addChild(n);let a=Bo.common.getCollider(i);n.addComponentIntance(a);let o=Bo.common.getRigbody();o.type="static",n.addComponentIntance(o);let h=t.transform.position;Bo.common.pos3to2Convert(h);let l=t.transform.localScaleX,r=t.transform.localScaleZ,c=Bo.common.scale3to2Convert(r),d=Bo.common.scale3to2Convert(l);n.pivotX=c/2,n.pivotY=d/2,n.x=h.x,n.y=h.y,n.width=c,n.height=d,e.x=h.x,e.y=h.y,e.width=c,e.height=d,"box"==i?(a.width=c,a.height=d,a.isSensor=!1,a.label="border"):(a.radius=c/2,a.isSensor=!0,a.label="hole",n.addComponent(Do))}}class Ao extends Laya.Script3D{constructor(){super(),this.loadNum=0,this.setLoadNum=7,this.visitRootObj={posX:0,posY:0,posZ:0,rotX:0,rotY:0,rotZ:0}}onAwake(){}loadScene(){this.scene=this.owner;Laya.loader.create("res/unityRes/root.lh",Laya.Handler.create(this,t=>{this.scene.addChild(t),this.camera=this.scene.getChildByName("root").getChildByName("cameraRoot").getChildByName("mainCamera"),this.putCameraInfo(),this.camera.enableHDR=!1,this.ballRoot=this.scene.getChildByName("root").getChildByName("ballRoot"),this.tableRoot=this.scene.getChildByName("root").getChildByName("tableRoot"),this.roomRoot=this.scene.getChildByName("root").getChildByName("roomRoot"),this.particialRoot=this.scene.getChildByName("root").getChildByName("particialRoot"),this.knifeRoot=this.scene.getChildByName("root").getChildByName("knifeRoot"),this.knife=this.scene.getChildByName("root").getChildByName("knife"),this.knife.active=!1,this.loadD3Obj()}))}putCameraInfo(){let t=this.scene.getChildByName("root").getChildByName("cameraRoot");this.cameraObj=new Go,this.cameraObj.angle1=t.getChildByName("angle1").addComponent(Po),this.cameraObj.angle3=t.getChildByName("angle3").addComponent(Po),this.cameraObj.angle4=t.getChildByName("angle4").addComponent(Po),this.cameraObj.angle6=t.getChildByName("angle6").addComponent(Po),this.cameraObj.firstAngle=t.getChildByName("firstAngle").addComponent(Po),this.cameraObj.visitAngle=t.getChildByName("visitAngle").addComponent(Po),this.visitAngleChild=t.getChildByName("visitAngle").getChildByName("visitAngle").addComponent(Po),this.visitAngleChild.init(),this.visitRootObj.posX=this.visitAngleChild.posX,this.visitRootObj.posY=this.visitAngleChild.posY,this.visitRootObj.posZ=this.visitAngleChild.posZ,this.visitRootObj.rotX=this.visitAngleChild.rotX,this.visitRootObj.rotY=this.visitAngleChild.rotY,this.visitRootObj.rotZ=this.visitAngleChild.rotZ,this.cameraObj.mainCamera=t.getChildByName("mainCamera").addComponent(Po),Bo.common.showOneCamera("mainCamera")}loadD3Obj(){this.loadTable(),this.loadRoom(),this.loadInHoleParticial(),this.loadIceParticial(),this.loadHitParticial(),this.loadFireworksParticial(),this.loadBall()}loadInHoleParticial(){this.loadD3Res("inHoleEft","",t=>{t.addComponent(K),Bo.poolD3Mgr.createList(C.inHoleEft,t,this.particialRoot)})}loadIceParticial(){this.loadD3Res("iceEft","",t=>{t.addComponent(K),Bo.poolD3Mgr.createList(C.iceEft,t,this.particialRoot)})}loadHitParticial(){this.loadD3Res("hitEft","",t=>{t.addComponent(K),Bo.poolD3Mgr.createList(C.hitEft,t,this.particialRoot)})}loadFireworksParticial(){this.loadD3Res("fireworksEft","",t=>{t.addComponent(K),Bo.poolD3Mgr.createList(C.fireworksEft,t,this.particialRoot)})}loadBall(t=1){this.loadD3Res("ball",t,t=>{this.ballPrefab=t,this.ballPrefab.addComponent(q),Bo.poolD3Mgr.createList(C.d3ball,this.ballPrefab,this.ballRoot)})}loadTable(t=1){this.loadD3Res("table",t,t=>{this.tableSrc=t.addComponent(Eo),this.d3Hand=t.getChildByName("hand").addComponent(Po),this.d3Hand.init(),this.tableRoot.addChild(t)})}loadRoom(t=1){this.loadD3Res("room",t,t=>{this.roomRoot.addChild(t)})}loadD3Res(t,e,i){let s=`res/unityRes/${t}${e}.lh`;Laya.Sprite3D.load(s,Laya.Handler.create(this,t=>{i&&i(t),this.checkResLoad()}))}checkResLoad(){this.loadNum++,this.loadNum>=this.setLoadNum&&Bo.eventMgr.event(o)}prePlayEft(){let t=Bo.poolD3Mgr.getItem(C.inHoleEft);t.transform.localPositionX=0,t.transform.localPositionY=-5,t.transform.localPositionZ=0,t.active=!0;let e=Bo.poolD3Mgr.getItem(C.iceEft);e.transform.localPositionX=0,e.transform.localPositionY=-5,e.transform.localPositionZ=0,e.active=!0;let i=Bo.poolD3Mgr.getItem(C.hitEft);i.transform.localPositionX=0,i.transform.localPositionY=-5,i.transform.localPositionZ=0,i.active=!0;let s=Bo.poolD3Mgr.getItem(C.fireworksEft);s.transform.localPositionX=0,s.transform.localPositionY=-5,s.transform.localPositionZ=0,s.active=!0}}class Go{}class Ho{static initMoyu(){this.moyuView=new Fo,Laya.stage.addChild(this.moyuView.ui.displayObject),this.moyuView.ui.x=(Laya.stage.width-1334)/2,this.moyuView.ui.displayObject.zOrder=1e3,this.moyuView.init(),this.moyuView.showTip(!0),this.moyuView.showAge(!0,0,Laya.stage.height-320),window.XApk=this}static showAge(t){this.moyuView&&this.moyuView.showAge(t)}static onPlatMsg(t){Ho.moyuView&&"0"==t&&Ho.moyuView.showTip(!1)}static showAgree(t){this.moyuView?this.moyuView.showAgree(t):t&&t()}static showXy(t=1){this.moyuView&&this.moyuView.showXy(t)}}Ho.isAdvise=!1;class Fo{constructor(){this.ysxyNum=1,this.ysJson=null,this.ui=ut.createInstance()}init(){this.ui.mainBg.visible=!1,this.ui.xyNode.visible=!1,this.ui.ageNode.visible=!1,this.ui.tipNode.visible=!1,this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!1,this.ui.ageTip.visible=!1,this.ui.msgNode.visible=!1,this.ui.visible=!1,this.ui.xyNode.xyList.setVirtual(),this.ui.xyNode.xyList.itemRenderer=Laya.Handler.create(this,this.renderListItem,null,!1),this.ui.ageNode.btnAge.onClick(this,this.onClick,[this.ui.ageNode.btnAge]),this.ui.tipNode.onClick(this,this.onClick,[this.ui.tipNode]),this.ui.ageTip.onClick(this,this.onClick,[this.ui.ageTip]),this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.btnXy1.visible=this.ui.xyNode.btnXy2.visible=!1,this.ui.xyNode.btnSure.visible=this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy1.onClick(this,this.onClick,[this.ui.xyNode.btnXy1]),this.ui.xyNode.btnXy2.onClick(this,this.onClick,[this.ui.xyNode.btnXy2]),this.ui.xyNode.btnXy3.onClick(this,this.onClick,[this.ui.xyNode.btnXy3]),this.ui.xyNode.btnNo.onClick(this,this.onClick,[this.ui.xyNode.btnNo]),this.ui.xyNode.btnYes.onClick(this,this.onClick,[this.ui.xyNode.btnYes]),this.ui.xyNode.btnSure.onClick(this,this.onClick,[this.ui.xyNode.btnSure]),this.ui.xyNode.btnBack.onClick(this,this.onClick,[this.ui.xyNode.btnBack]),this.ui.xyNode.btnKnown.onClick(this,this.onClick,[this.ui.xyNode.btnKnown]),this.ui.rnNode.btnExit.onClick(this,this.onClick,[this.ui.rnNode.btnExit]),this.ui.rnNode.btnCheck.onClick(this,this.onClick,[this.ui.rnNode.btnCheck]),this.ui.rnNode.btnDone.onClick(this,this.onClick,[this.ui.rnNode.btnDone]),this.ui.fcmNode.btnRn.onClick(this,this.onClick,[this.ui.fcmNode.btnRn]),(Moyu.isVVApk||Moyu.isOPApk||Moyu.isTTApk||Moyu.isOppo||Moyu.isVivo)&&(this.ysxyNum=2)}onClick(t){switch(Bo.soundMgr.playSound(Bo.common.btnClickStr),t){case this.ui.ageTip:Moyu.isTTApk&&(this.ui.ageNode.visible=!0,this.ui.mainBg.visible=!0);break;case this.ui.tipNode:this.showTip(!1);break;case this.ui.ageNode.btnAge:this.ui.ageNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.xyNode.visible||this.ui.rnNode.visible||(this.ui.visible=!1);break;case this.ui.xyNode.btnXy3:case this.ui.xyNode.btnXy1:this.loadXy(1);break;case this.ui.xyNode.btnXy2:this.loadXy(2);break;case this.ui.xyNode.btnBack:this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1;break;case this.ui.xyNode.btnKnown:this.ui.xyNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.visible=!1;break;case this.ui.rnNode.btnCheck:this.check();break;case this.ui.rnNode.btnExit:case this.ui.xyNode.btnNo:this.ysxyNum--,this.ysxyNum>0?this.showMsg("再次拒绝退出游戏"):(Moyu.userAgree(!1),Moyu.exit());break;case this.ui.xyNode.btnSure:case this.ui.xyNode.btnYes:jo.userData.isAgree=!0,jo.saveUserData(),this.onAgree();break;case this.ui.rnNode.btnDone:this.ui.rnNode.visible=!1,this.ui.visible=!1;break;case this.ui.fcmNode.btnRn:this.showRn()}}showTip(t){(Moyu.isVVApk||Moyu.isOPApk)&&(t?(Ho.isAdvise=!0,this.ui.visible=!0,this.ui.tipNode.visible=!0,this.ui.tipNode.alpha=1,Laya.timer.once(1e3,this,this.showTip,[!1])):(this.ui.tipNode.alpha=1,this.ui.tipNode.visible=!0,Laya.Tween.to(this.ui.tipNode,{alpha:0},500,null,Laya.Handler.create(this.ui,()=>{this.ui.tipNode.visible=!1,Ho.isAdvise=!1}),1e3)))}showAge(t,e=0,i=0){Moyu.platType>10&&!Moyu.isIos&&(this.ui.ageTip.x=e,this.ui.ageTip.y=i,this.ui.ageTip.visible=t,t&&(this.ui.visible=!0))}showAgree(t){this.agreeCall=t,!Moyu.hasAgree||jo.userData.isAgree||Moyu.isIos?this.onAgree():this.showXy(0)}onAgree(){this.ui.ageNode.visible||(this.ui.visible=!1),this.ui.xyNode.visible=!1,Moyu.userAgree(!0),this.showAge(!1),this.agreeCall&&this.agreeCall(),this.showRn()}showMsg(t){this.ui.msgNode.txtMsg.text=t,this.ui.msgNode.visible=!0,this.ui.msgNode.alpha=1,this.ui.visible=!0,Laya.Tween.to(this.ui.msgNode,{alpha:0},600,null,Laya.Handler.create(this.ui,()=>{this.ui.msgNode.visible=!1}),2500,!0)}showRn(){if((Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(!Moyu.isRealName||Moyu.gameTime<999))return this.ui.rnNode.rn1.visible=!0,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn3.visible=!1,this.ui.rnNode.rn4.visible=!1,this.ui.rnNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.rnNode.btnDone.visible=!1,this.ui.rnNode.btnExit.visible=!0,this.ui.rnNode.btnCheck.visible=!0,this.ui.fcmNode.visible=!1,void(this.ui.visible=!0);this.showFcm()}showFcm(){(Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(Moyu.initFCM(!0),Moyu.gameTime<1?this.fcmLoop():Moyu.gameTime<999&&Laya.timer.loop(1e4,this.ui,this.fcmLoop))}fcmLoop(){Moyu.gameTime<1&&(this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.visible=!0,this.ui.fcmNode.btnRn.visible=!Moyu.isLegal,Laya.timer.clear(this.ui,this.fcmLoop))}check(){if(this.ui.rnNode.rn2.visible||this.ui.rnNode.rn1.visible)this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn4.visible=!0;else if(this.ui.rnNode.rn4.visible){let t=this.ui.rnNode.inputName.text,e=this.ui.rnNode.inputCode.text;e&&18==e.length?(this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn4.visible=!1,Moyu.authenticate(t,e,t=>{this.ui.rnNode.rn2.visible=!t,this.ui.rnNode.rn3.visible=t,this.ui.rnNode.btnDone.visible=t,this.ui.rnNode.btnExit.visible=!t,this.ui.rnNode.btnCheck.visible=!t,t&&this.showFcm()})):this.showMsg("信息填写不完整")}}loadXy(t=0){this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!0,this.ui.xyNode.xyList.scrollToView(0),1==t?Laya.loader.load("app/xy/yiiwan_ys.json",Laya.Handler.create(this,this.createXY)):2==t&&Laya.loader.load("app/xy/yiiwan_yh.json",Laya.Handler.create(this,this.createXY))}showXy(t=0){this.xyBtn(),0==t?Moyu.isPlat(MoyuPlat.f399Apk)?this.ui.xyNode.btnSure.visible=!0:(this.ui.xyNode.btnYes.visible=!0,this.ui.xyNode.btnNo.visible=!0):(this.ui.xyNode.btnKnown.visible=!0,this.ui.mainBg.visible=!0),this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.visible=!0,this.ui.visible=!0}xyBtn(){this.ui.xyNode.btnSure.visible=!1,this.ui.xyNode.btnYes.visible=!1,this.ui.xyNode.btnNo.visible=!1,this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy2.visible=!0,this.ui.xyNode.btnXy1.visible=!0,this.ui.xyNode.xy1.text="欢迎来到《万宁台球》"}createXY(t){this.ysJson=t.content,this.ui.xyNode.txtTitle.text=t.title.replace("GAMENAME","万宁台球"),this.ui.xyNode.xyList.numItems=this.ysJson.length,this.ui.xyNode.xy2.visible=!0}renderListItem(t,e){let i=this.ysJson[t];e.height=30*i.line,e.xyItem.text=i.text}onDestroy(){this.agreeCall=null}}class _o extends A{constructor(){super(),this.accTime=0,this.curNum=0,this.rate=1,this.loadSubOk=!1,this.loadResOK=!1,this.openLoading=!0,this.beginLoadRes=!1,this.finishD2=!1,this.finishD3=!1}onConstructor(){this.ui=Ja.createInstance(),this.contentPane=this.ui,this.isEject=!1,this._initUI(),this._addEvent()}_initUI(){Ho.initMoyu()}_addEvent(){Bo.eventMgr.off(o,this,this.d3ResFinish),Bo.eventMgr.on(o,this,this.d3ResFinish)}show(){super.show(),function(t){var e=["asset","res","spine"];let i=0;for(var s=0;s<e.length;s++){let n=e[s];Moyu.loadSubRes(n,e=>{t&&t(e,!1)}).then(()=>{++i>=e.length&&t&&t(1,!0)})}}(this.subResProgress.bind(this)),this.ui.txtLoad.text="加载分包中..."}subResProgress(t,e){this.curNum=t,e&&(this.curNum=1,this.loadSubOk=!0)}laodD3Res(){let t=new Laya.Scene3D;Bo.common.d3Scene=t,Bo.common.d3World=t.addComponent(Ao),Bo.common.d3World.loadScene()}loadD2Res(){Laya.loader.load([{url:"asset/fgui/game.obj",type:Laya.Loader.BUFFER},{url:"asset/fgui/game_atlas0.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas0_1.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas0_2.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas0_3.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas10.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_n43d3v3.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_n43d3v4.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr427.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr42b.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr42c.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr42e.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_rz5r457.jpg",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_s8sz44t.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_s8sz44v.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_wehi3uc.jpg",type:Laya.Loader.IMAGE},{url:"res/json/npc.json",type:Laya.Loader.JSON},{url:"res/json/classicCfg.json",type:Laya.Loader.JSON},{url:"res/json/levelCfg.json",type:Laya.Loader.JSON},{url:"res/json/placeBallCfg.json",type:Laya.Loader.JSON}],Laya.Handler.create(this,()=>{this.finishD2=!0,this.checkLoadAll(),this.curNum=1}),Laya.Handler.create(this,t=>{this.curNum=t},null,!1))}d3ResFinish(){this.finishD3=!0,this.checkLoadAll()}checkLoadAll(){this.finishD2&&this.finishD3&&(this.loadResOK=!0)}loadRes(){this.laodD3Res(),this.loadD2Res()}myUpdate(t){this.openLoading&&(this.accTime+=t*this.rate,this.accTime>=this.curNum&&(this.accTime=this.curNum),this.ui.loadinfo.value=100*this.accTime,this.accTime>=1&&this.loadSubOk&&!Ho.isAdvise&&(this.beginLoadRes||(this.beginLoadRes=!0,this.ui.txtLoad.text="加载资源中...",this.curNum=0,this.accTime=0,this.loadRes()),this.loadResOK&&(this.openLoading=!1,Laya.timer.once(300,this,()=>{Bo.common.d3Scene.active=!1,Ho.showAgree(enterGame)}))))}release(){}hide(){super.hide(),this.release()}onClose(){this.hide()}}_o.uiName="UILoading";class Vo extends A{constructor(){super(),this.viewType=0,this.regretType=0}onConstructor(){this.ui=zt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.regretNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.regretNode.videoBtn,this.videoRegret),this.addUIClick(this.ui.helpLineNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.helpLineNode.videoBtn,this.videoAddHelpLine)}show(t,e,i){if(W.showInsert(!0),this.viewType=t,this.regretType=e,this.callback=i,super.show(),this.ui.t0.play(),this.ui.c1.selectedIndex=this.viewType,this.ui.regretNode.tipsTxt.text=0==this.regretType?"未打进目标球":"白球进洞",0==this.viewType){let t=jo.getGuideHelpLine();this.ui.helpLineNode.c1.selectedIndex=0==t?1:0,this.ui.helpLineNode.videoBtn.c1.selectedIndex=0==t?1:0}Bo.common.gameMgr.gamePause=!0}hideSelf(){Bo.common.gameMgr.gamePause=!1,this.callback&&this.callback(!1),this.hide()}videoRegret(){Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.regretBall)}videoAddHelpLine(){0==jo.getGuideHelpLine()?(this.callback&&this.callback(!0),this.hideSelf(),jo.setGuideHelpLine(),Bo.common.gameUI.ui.guideNode.visible=!1):Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.longHelpLine)}}Vo.uiName="UIRepentProp";class Wo extends A{constructor(){super(),this.isPressd=!1}onConstructor(){this.ui=de.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.sureBtn,this.closeSelf),this.moveDir=new Laya.Vector2,this.moveDest=new Laya.Vector2,this.centerPos=new Laya.Vector2,Bo.common.uiRodMethod=this}show(){super.show(),Bo.common.gameMgr.gamePause=!0,this.openPressDotEvent(),this.gameRod=Bo.common.gameUI.ui.rodMethodNode,this.centerPos.x=this.ui.white.x,this.centerPos.y=this.ui.white.y,this.moveDest.x=this.centerPos.x-Bo.common.rodOffest.x,this.moveDest.y=this.centerPos.y-Bo.common.rodOffest.y,this.setDot()}setDot(){this.ui.dot.x=this.moveDest.x,this.ui.dot.y=this.moveDest.y}closeSelf(){Bo.common.rodOffest.x=this.centerPos.x-this.moveDest.x,Bo.common.rodOffest.y=this.centerPos.y-this.moveDest.y,this.gameRod.dot.x=this.gameRod.bg.x-Bo.common.rodOffest.x,this.gameRod.dot.y=this.gameRod.bg.y-Bo.common.rodOffest.y,Bo.common.gameMgr.gamePause=!1,this.hide()}openPressDotEvent(){this.closePressDotEvent(),this.ui.dot.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_MOVE,this,this.onDown)}closePressDotEvent(){this.ui.dot.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_MOVE,this,this.onDown)}onDown(t){if(t.type==Laya.Event.MOUSE_DOWN?this.isPressd=!0:t.type==Laya.Event.MOUSE_UP&&this.isPressd&&(this.isPressd=!1),!this.isPressd)return;this.moveDest.x=t.stageX,this.moveDest.y=t.stageY,Bo.tools.getV2SqDis(this.moveDest,this.centerPos)>6724&&(this.moveDir=Bo.tools.getV2Dir(this.centerPos.x,this.centerPos.y,t.stageX,t.stageY,this.moveDir),this.moveDest=Bo.tools.getV2Dest(this.centerPos.x,this.centerPos.y,this.moveDir,82,this.moveDest)),this.setDot()}resetRod(){this.ui.dot.x=this.ui.white.x,this.ui.dot.y=this.ui.white.y,this.gameRod.dot.x=this.gameRod.bg.x,this.gameRod.dot.y=this.gameRod.bg.y,Bo.common.rodOffest.x=0,Bo.common.rodOffest.y=0}}Wo.uiName="UIRodMethod";class Yo extends A{constructor(){super()}onConstructor(){this.ui=Ft.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.isMuti=!0}show(t,e){super.show(),this.ui.tipsNode.msgTxt.text=t,this.ui.alpha=1,Laya.Tween.to(this.ui,{alpha:0},500,null,Laya.Handler.create(this,()=>{this.hide(),e&&e()}),1e3)}}Yo.uiName="UIMsg";class Xo extends A{constructor(){super(),this.type=0}onConstructor(){this.ui=$t.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.clickLeftBtn),this.addUIClick(this.ui.myNode.sureBtn,this.clickRightBtn)}show(t,e,i){switch(super.show(),this.ui.t0.play(),this.ui.myNode.tipsTxt.text=t,this.ui.myNode.womanTxt.text=e,W.showInsert(!0),this.ui.myNode.c1.selectedIndex=i,this.type=i,this.type){case v.exitGame:Bo.common.gameMgr.gamePause=!0;break;case v.foul:Laya.timer.once(200,this,()=>{Bo.common.gameMgr.gamePause=!0})}}clickLeftBtn(){switch(this.hide(),Bo.common.gameMgr.gamePause=!1,this.type){case v.exitGame:case v.foul:}}clickRightBtn(){switch(this.hide(),this.type){case v.exitGame:Bo.eventMgr.event(r),Bo.uiMgr.Show(xh),Moyu.recordEnd(this,null),Bo.common.longHelpLine=!1;break;case v.foul:Bo.common.gameMgr.gamePause=!1,Laya.timer.clearAll(this)}}}Xo.uiName="UITips";class zo extends A{constructor(){super(),this.powerNum=0,this.isD3Inited=!1,this.isPrePlay=!1,this.isMoveRod=!1,this.eventObj={curX:0,curY:0,lastX:0,lastY:0,starX:0,starY:0},this.rulerDis=20,this.rulerOffset=0}onConstructor(){this.ui=at.createInstance(),this.contentPane=this.ui,this.ui.x+=Bo.common.sysOffestNum,this.ui.border.alpha=Bo.common.showDebug?1:0,this.isEject=!1,Bo.common.gameUI=this,this.initSelf()}isTurnSelf(){if(!Bo.common.d2World.openCheckStill&&Bo.common.gameMgr.selfTurn&&Bo.common.gameMgr.finishOneShoot)return!0}initSelf(){let t=this.ui.topNode;t.selfBallList.itemRenderer=Laya.Handler.create(this,this.renderSelfDisplayBalls,null,!1),t.aiBallList.itemRenderer=Laya.Handler.create(this,this.renderAIDisplayBalls,null,!1),this.barInfo={},this.barInfo.curY=0,this.barInfo.height=this.ui.powerNode.height,this.barInfo.showStarY=this.ui.powerNode.showImg.y,this.barInfo.powerStartY=this.ui.powerNode.y,Bo.common.aiPlayer=new z,Bo.common.gameMgr=new Qt,Bo.common.skillMgr=new ne,Bo.common.wordsMgr=new ce,Bo.common.talkMgr=new re,Bo.common.classicEmotionSpine=new X("yxz_bqwz",()=>{console.log("加载经典模式表情文件chenggon !")}),Bo.common.awardSpine=new X("jinbi",()=>{console.log("挑战模式奖励模式spine加载成功!")}),Bo.eventMgr.off(r,this,this.resetGame),Bo.eventMgr.on(r,this,this.resetGame),this.addUIClick(this.ui.rodMethodNode,this.addRodMethodClick),this.addUIClick(this.ui.returnBtn,this.returnHome),this.addUIClick(this.ui.helpBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeChallengeNode.helpLineBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeNormalNode.helpLineBtn,this.clickHelpLineBtn)}returnHome(){Bo.uiMgr.Show(Xo,"确定退出游戏吗?","老板,要不您再玩会儿?",v.exitGame)}addRodMethodClick(){this.isTurnSelf()&&Bo.uiMgr.Show(Wo)}clickHelpLineBtn(t=!1){this.isTurnSelf()&&Bo.uiMgr.Show(Vo,0,0,t=>{t&&(Bo.common.longHelpLine=!0,Bo.common.d2World.getHelpLine(),Moyu.sendDataEvent("guideNum"))})}renderSelfDisplayBalls(t,e){let i="q"+Bo.common.gameMgr.selfBallArr[t];e.myImg.url=Bo.common.getGameIconUrl(i)}renderAIDisplayBalls(t,e){let i="q"+Bo.common.gameMgr.aiBallArr[t];e.myImg.url=Bo.common.getGameIconUrl(i)}updateMode(){Bo.common.gameMode==f.classic?this.ui.topNode.scoreNode.visible=!1:Bo.common.gameMode==f.bigMove&&(this.ui.topNode.scoreNode.visible=!0)}show(){super.show(),this.ui.alpha=0,this.updateSelf(),Bo.soundMgr.playMusic("gamemusic01"),Bo.common.gameMgr.gamePause=!1,Bo.common.gameUI.ui.blackAni.visible=!1,Bo.common.gameUI.ui.whiteAni.visible=!1,this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1,this.updateHead()}updateSelf(){if(Bo.common.gameMode==f.classic)this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=0,this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.awardTxt.text=Bo.common.passAwardCoin+"";else if(Bo.common.gameMode==f.bigMove){this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=1,this.ui.topNode.middleNode.visible=!1;let t=Bo.cfgMgr.getMaxBigMoveLength(),e=Bo.common.randomNum(1,t);0==jo.getSkillGuide()&&(e=1),Bo.common.bigMoveLevelIndex=e}else if(Bo.common.gameMode==f.placeBall){let t=cfgTable.placeballData[Bo.common.placeBallCurLevel];this.ui.c1.selectedIndex=1+t.type,this.ui.alpha=1,this.startGame()}this.updateMode(),this.initD3world(),this.initD2world()}startGame(){this.ui.snowNode.visible=Math.random()<=.1,this.ui.d2Node.visible=!1,Bo.common.d3World.d3Hand.gameObj.active=!1,Bo.common.d3World.tableSrc.init(),Bo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06,this.cameraViewChange(()=>{switch(Bo.common.d3World.tableSrc.gameObj.transform.localPositionY=0,Bo.common.gameMode){case f.classic:Bo.common.d3World.d3Hand.gameObj.active=!0,this.playPutBallD3Ani();break;case f.bigMove:this.enterGame(),Laya.timer.once(500,this,()=>{this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.t0.play()});break;case f.placeBall:this.enterGame()}}),W.showBanner(!1)}enterGame(){this.ui.d2Node.visible=!0,Bo.common.d3World.d3Hand.gameObj.active=!1,Bo.common.showOneCamera("mainCamera"),Moyu.recordGame(30,!0),this.isPrePlay||(this.isPrePlay=!0,Bo.common.d3World.prePlayEft()),Bo.common.gameMgr.gameReady(),this.openAllEvent(),this.ui.snowNode.visible=!1;let t=Bo.common.gameMode!=f.bigMove&&1==jo.getGuideHelpLine();this.ui.helpBtn.visible=t}showHelpLineGuide(){let t=jo.getGuideHelpLine();Bo.common.gameMode==f.classic&&0==t&&(this.ui.helpBtn.visible=!0,this.ui.guideNode.visible=!0)}setTurnAlpha(t){this.ui.keduNode.alpha=t,this.ui.ganNode.alpha=t,this.ui.rodMethodNode.alpha=t,this.ui.helpBtn.alpha=t?1:0}cameraViewChange(t){Bo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06;let e=Bo.common.d3World.cameraObj.visitAngle.transform;Bo.common.showOneCamera("visitAngle"),e.localRotationEulerY=180,e.localRotationEulerZ=0,Laya.Tween.to(e,{localRotationEulerY:0},3e3,null,Laya.Handler.create(this,()=>{Laya.Tween.to(e,{localRotationEulerZ:-70},800,null,Laya.Handler.create(this,()=>{t&&t()}))}))}playPutBallD3Ani(){Bo.common.showOneCamera("mainCamera");let t=Bo.common.d3World.d3Hand;t.gameObj.active=!0,t.transform.localPositionZ=3,Laya.Tween.to(t,{posZ:0},500,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{Laya.Tween.to(t,{posZ:10},400,null,Laya.Handler.create(this,()=>{t.gameObj.active=!1,this.enterGame()}),400)}))}updateHead(){let t=Moyu.getUserInfo();this.ui.topNode.selfNameTxt.text=t.nickName,Bo.common.createHead(this.ui.topNode.selfHeadLoader,t.headIcon,80);let e=Bo.cfgMgr.getRandomUserInfo();jo.getSkillGuide()<1?(this.ui.topNode.aiNameTxt.text="万宁台球",this.ui.topNode.aiHeadLoader.url="res/icon.png"):(this.ui.topNode.aiNameTxt.text=e.name,this.ui.topNode.aiHeadLoader.url=x+e.icon)}initD2world(){let t=this.ui.d2Root.displayObject;t.getComponent(nt)||(Bo.common.d2World=t.addComponent(nt)),Bo.common.d2World.initSelf()}initD3world(){if(this.isD3Inited)return;this.isD3Inited=!0;let t=Bo.common.d3Scene;this.ui.d3Root.displayObject.addChild(t),t.active=!0,Bo.common.d3World.tableSrc.setBorderPos()}onRootMove(t){let e=Bo.common.d2World.rootBall;this.ui.moveNode.x=t.x,this.ui.moveNode.y=t.y,e.gameObj.x=t.x,e.gameObj.y=t.y,e.d3BallSrc.setTransPos(t.x,t.y)}aiRootMove(t){t?this.hideBallUI():(this.showBallUI(),Bo.common.d2World.getHelpLine())}aiForce(t,e=0){this.pressTarget=k.powerNode,1==t?this.onEventUp({force:!0}):2==t&&this.onEventMove({stageY:e,force:!0})}onEventPress(t){if(t.stopPropagation&&t.stopPropagation(),!this.isTurnSelf())return;switch(t.target){case this.ui.myPowerNode.displayObject:this.pressTarget=k.powerNode,this.barInfo.curY=t.stageY,this.updateBarInfo();break;case this.ui.moveNode.displayObject:this.pressTarget=k.moveNode,this.hideBallUI(),this.eventObj.curX=this.ui.moveNode.x,this.eventObj.curY=this.ui.moveNode.y,this.ui.moveNode.finger.visible=!1,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY;break;case this.ui.rulerClickNode.displayObject:this.pressTarget=k.rulerNode,this.eventObj.lastY=t.stageY;break;case this.ui.d2Root.displayObject:this.pressTarget=k.d2Root,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY,this.eventObj.starX=t.stageX,this.eventObj.starY=t.stageY,this.eventObj.curX=0,this.eventObj.curY=0,Bo.common.d2World.d2Gan.setGanLastInfo(),this.rulerOffset=0}}onEventMove(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:this.barInfo.curY=t.stageY,this.updateBarInfo(),this.isMoveRod=!0;break;case k.moveNode:let e=Bo.common.d2World.rootBall,i=e.gameObj.width/2,s=this.eventObj.curX+t.stageX-this.eventObj.lastX,n=this.eventObj.curY+t.stageY-this.eventObj.lastY,a=Bo.common.d2World.borderRect;s<=a.x+i?s=a.x+i:s>=a.x+a.width-i&&(s=a.x+a.width-i),n<=a.y+i?n=a.y+i:n>=a.y+a.height-i&&(n=a.y+a.height-i),Bo.common.gameMgr.isOpenBall&&s>=a.x+a.openBallW-i&&(s=a.x+a.openBallW-i),this.ui.moveNode.x=s,this.ui.moveNode.y=n,e.gameObj.x=s,e.gameObj.y=n,e.d3BallSrc.setTransPos(s,n),this.isMoveRod=!0;break;case k.rulerNode:let o=t.stageY-this.eventObj.lastY;this.eventObj.lastY=t.stageY;let h=this.ui.rulerNode.img1,l=this.ui.rulerNode.img2;h.y+=o,l.y+=o,this.rulerOffset+=o,Math.abs(this.rulerOffset)>=this.rulerDis&&(this.rulerOffset=0,Bo.soundMgr.playSound("inch",1,10)),Bo.common.d2World.d2Gan.rotateSelf(o,!0);let r=h.height;if(this.checkGuide(),this.isMoveRod=!0,h.y>=r)return h.y=-r,void(l.y=0);if(h.y<=-r)return h.y=r,void(l.y=0);if(l.y>=r)return l.y=-r,void(h.y=0);if(l.y<=-r)return l.y=r,void(h.y=0);break;case k.d2Root:this.eventObj.curX=t.stageX,this.eventObj.curY=t.stageY;let c=this.checkRodMoveDir();Bo.common.d2World.d2Gan.rotateSelf(c),this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY}}onEventUp(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:if(this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text="",this.powerNum>0){Bo.eventMgr.event(h),Bo.common.d2World.shoot(this.powerNum),Bo.common.d2World.d2Gan.shoot(),Bo.common.d2World.d2HelpLine.shoot(),this.finishGuide(),this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1;let t="";t=this.powerNum<=30?"gan_30":this.powerNum<=60?"gan_50":"gan_80",Bo.soundMgr.playSound(t)}break;case k.moveNode:let e=Bo.common.d2World.rootBall,i=Bo.common.gameMgr.lastRootBallPos.x,s=Bo.common.gameMgr.lastRootBallPos.y;this.judgeBallIntersect()?(this.ui.moveNode.x=i,this.ui.moveNode.y=s,e.gameObj.x=i,e.gameObj.y=s,e.d3BallSrc.setTransPos(i,s),Bo.uiMgr.Show(Yo,"错误的放置位置")):(Bo.common.gameMgr.lastRootBallPos.x=e.gameObj.x,Bo.common.gameMgr.lastRootBallPos.y=e.gameObj.y),this.showBallUI(),this.ui.moveNode.finger.visible=!0,Bo.common.d2World.getHelpLine();break;case k.rulerNode:break;case k.d2Root:Math.pow(this.eventObj.starX-t.stageX,2)+Math.pow(this.eventObj.starY-t.stageY,2)<=25&&this.moveToClickDot(t)}this.pressTarget=-1}checkGuide(){0==jo.getSkillGuide()&&Bo.common.gameMode==f.bigMove&&1==Bo.common.guideStep&&(Bo.common.guideStep++,Bo.common.gameUI.ui.guide2.visible=!1,Bo.common.gameUI.ui.guide3.visible=!0)}finishGuide(){0==jo.getSkillGuide()&&Bo.common.gameMode==f.bigMove&&(Bo.common.guideStep=10,this.closeAllGuide())}closeAllGuide(){Bo.common.gameUI.ui.guide1.visible=!1,Bo.common.gameUI.ui.guide2.visible=!1,Bo.common.gameUI.ui.guide3.visible=!1}updateBarInfo(){let t=this.ui.powerNode.y,e=(this.barInfo.curY-t)/this.barInfo.height;e>=1&&(e=1),e<=0&&(e=0),this.powerNum=Math.ceil(100*e),this.ui.powerNode.value=this.powerNum,this.ui.powerNode.showImg.y=this.barInfo.showStarY+this.powerNum/100*this.barInfo.height,this.ui.colorNode.value=this.powerNum,this.ui.powerEft.y=this.barInfo.powerStartY+this.powerNum/100*this.barInfo.height,this.ui.powerEft.visible=0!=this.powerNum,this.ui.colorNode.visible=0!=this.powerNum,this.ui.powerTxt.text=this.powerNum+"",Bo.common.d2World.d2Gan.storagePower(this.powerNum)}forceCancel(){this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text=""}checkRodMoveDir(){let t=this.eventObj.lastX-Bo.common.sysOffestNum-Bo.common.d2World.rootBall.gameObj.x,e=this.eventObj.lastY-Bo.common.d2World.rootBall.gameObj.y;return t>=0&&e<=0?this.checkDir():t<0&&e<0?this.checkDir(1,-1):t<0&&e>0?this.checkDir(-1,-1):this.checkDir(-1,1)}checkDir(t=1,e=1){let i=this.eventObj.curX-this.eventObj.lastX,s=this.eventObj.curY-this.eventObj.lastY;if(0==s)return i*t;if(0==i)return s*e;let n=s/i;return Math.abs(n)>=1?s*e:i*t}judgeBallIntersect(){let t,e=Bo.common.d2World.rootBall,i=Bo.common.d2World.ballArr,s=e.gameObj.width/2,n=!1;for(let a=0;a<i.length&&((t=i[a]).number==e.number||!(n=Math.pow(e.gameObj.x-t.gameObj.x,2)+Math.pow(e.gameObj.y-t.gameObj.y,2)<=4*s*s));a++);return n}hideBallUI(){let t=Bo.common.d2World.d2Gan;t.ui.isDisposed||(t.ui.visible=!1);let e=Bo.common.d2World.d2HelpLine;e.ui.isDisposed||(e.ui.visible=!1);let i=Bo.common.d2World.rootBall;i.destroyed||(i.gameObj.active=!1)}showBallUI(){let t=Bo.common.d2World.d2Gan;t.ui.isDisposed||(t.ui.visible=!0);let e=Bo.common.d2World.d2HelpLine;e.ui.isDisposed||(e.ui.visible=!0);let i=Bo.common.d2World.rootBall;i.destroyed||(i.gameObj.active=!0)}moveToClickDot(t){if(!this.isMoveRod&&!Bo.common.clickedBall){let e=Bo.common.d2World.rootBall.gameObj,i=t.stageX-Bo.common.sysOffestNum,s=t.stageY,n=i-e.x,a=s-e.y,o=Bo.common.getfguiRotation(n,a);Bo.common.d2World.d2Gan.ui.rotation=o,Bo.common.d2World.getHelpLine()}this.isMoveRod=!1,Bo.common.clickedBall=!1}openAllEvent(){this.closeAllEvent(),this.ui.myPowerNode.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.moveNode.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.rulerClickNode.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.on(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.on(Laya.Event.MOUSE_MOVE,this,this.onEventMove),this.ui.on(Laya.Event.MOUSE_UP,this,this.onEventUp),this.ui.on(Laya.Event.MOUSE_OUT,this,this.onEventUp)}closeAllEvent(){this.ui.myPowerNode.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.moveNode.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.rulerClickNode.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.off(Laya.Event.MOUSE_DOWN,this,this.onEventPress),this.ui.off(Laya.Event.MOUSE_MOVE,this,this.onEventMove),this.ui.off(Laya.Event.MOUSE_UP,this,this.onEventUp),this.ui.off(Laya.Event.MOUSE_OUT,this,this.onEventUp)}resetGame(){this.closeAllEvent(),this.hideBallUI(),Bo.common.gameMgr.gamePause=!0}}zo.uiName="UIGame";class Ko extends A{constructor(){super(),this.coinNum=2e3}onConstructor(){this.ui=ht.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoAddCoin)}show(){super.show(),this.ui.t0.play()}videoAddCoin(){Moyu.showVideoAd(()=>{Bo.common.playObjFlyAnim(this.coinNum,L.coin),this.hide()},N.addFailCoin)}}Ko.uiName="UIAddCoin";class qo extends A{constructor(){super()}onConstructor(){this.ui=rt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.enterBtn,this.enterGame)}show(){super.show()}enterGame(){Bo.common.gameMode=f.classic,jo.setChallengeTimes(1),Bo.common.passAwardCoin=2e3;let t=Bo.common.classicNiceNeddCoin;jo.coinEnough(t)?(jo.setCoin(-t),Bo.eventMgr.event(u,!0),Moyu.sendDataEvent("enterChallenge",{mode:Bo.common.gameMode})):Bo.eventMgr.event(u,!0),this.hide()}hide(){super.hide()}}qo.uiName="UIInvitation";class Zo extends A{constructor(){super()}onConstructor(){this.ui=bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoGetPower)}show(){super.show(),this.ui.t0.play()}videoGetPower(){Moyu.showVideoAd(()=>{jo.setPower(Bo.common.videoPower,!0),Bo.eventMgr.event(p),this.hide()},N.getPower)}}Zo.uiName="UIPower";class $o extends A{constructor(){super(),this.success=!1,this.awardCoinNum=1e3,this.awardDiamondNum=10}onConstructor(){this.ui=ot.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.leftBtn,this.clickLeftBtn),this.addUIClick(this.ui.closeNode.closeBtn,this.returnHome),this.addUIClick(this.ui.rightBtn,this.clickRightBtn),this.moneyNode=new oh(this.ui.moneyNode),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}updateType(){switch(Bo.common.gameMode){case f.classic:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,this.success||Laya.timer.once(500,this,()=>{Bo.uiMgr.Show(Ko)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.bigMove:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,Bo.common.gameMode==f.bigMove&&(this.success?(jo.setSkillSuccessTimes(1,!0),jo.setSkillAccTimes(1)):jo.setSkillSuccessTimes(0,!1)),this.success||Laya.timer.once(500,this,()=>{Bo.uiMgr.Show(Ko)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.placeBall:this.ui.coinNode.visible=!1,this.success?3==Bo.common.placeBallStarNum?this.ui.c1.selectedIndex=2:this.ui.c1.selectedIndex=3:this.ui.c1.selectedIndex=4;let t=cfgTable.placeballData[Bo.common.placeBallCurLevel];t.type==w.challenge&&(this.ui.c1.selectedIndex=2),this.ui.conditionNode.conditionTxt.text=0==t.type?"打进场上所有球":`打进${t.ball}颗球`,this.updatePlaceBallBtn(),this.updatePlaceBallStarNum(),this.updatePlaceBallAwardState(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange(),jo.upRankData()}}updatePlaceBallBtn(){this.ui.leftBtn.c1.selectedIndex=5,this.success?this.ui.rightBtn.c1.selectedIndex=14:3==Bo.common.placeBallStarNum?this.ui.rightBtn.c1.selectedIndex=14:this.ui.rightBtn.c1.selectedIndex=1}updatePlaceBallStarNum(){let t=Bo.common.placeBallStarNum;this.ui.starNumNode.c1.selectedIndex=0==t?3:t-1}updatePlaceBallAwardState(){let t=Bo.common.placeBallCurLevel,e=Bo.common.placeBallStarNum,i=jo.getPlaceBallLevel(t).getAward,s=cfgTable.placeballData[t].award,n=cfgTable.placeballData[t];this.awardDiamondNum=s[1],this.awardCoinNum=s[0],n.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*Bo.common.gameMgr.finishBalls),this.ui.awardNode.diamondNode.visible=this.awardDiamondNum>0,this.ui.awardNode.coinNode.visible=this.awardCoinNum>0,n.type==w.challenge&&(this.ui.awardNode.coinNode.visible=!0),this.awardCoinNum>0&&this.awardDiamondNum>0?(this.ui.awardNode.diamondNode.x=265,this.ui.awardNode.coinNode.x=354):(this.ui.awardNode.diamondNode.x=291,this.ui.awardNode.coinNode.x=291),this.ui.awardNode.diamondNode.numTxt.text=this.awardDiamondNum+"",this.ui.awardNode.coinNode.numTxt.text=this.awardCoinNum+"",0==this.awardCoinNum&&(this.ui.awardNode.coinNode.numTxt.text=""),i?(this.ui.isGetAward.visible=!0,this.ui.awardNode.diamondNode.c1.selectedIndex=2,this.ui.awardNode.coinNode.c1.selectedIndex=2):(this.ui.isGetAward.visible=!1,3==e&&n.type==w.challenge?(this.ui.awardNode.diamondNode.c1.selectedIndex=0,this.ui.awardNode.coinNode.c1.selectedIndex=0):(this.ui.awardNode.diamondNode.c1.selectedIndex=1,this.ui.awardNode.coinNode.c1.selectedIndex=1))}show(t){super.show(),Bo.eventMgr.event(r),this.success=t,Laya.timer.clearAll(this),this.playSecretaryAni(),Moyu.sendDataEvent("GameEnd",{id:Bo.common.gameMode,res:this.success?1:2});let e=(new Date).getTime()-Bo.common.gameStartTime;e=Math.floor(e/1e3),Moyu.sendDataEvent("gameOver",{isWin:this.success?1:0,timeConsuming:e,gameType:Bo.common.gameMode}),this.updateType(),Laya.timer.once(200,this,()=>{this.addAward(()=>{this.updateType(),Laya.timer.once(500,this,()=>{this.showChallengeLevel()})})}),this.success?(Bo.soundMgr.playSound("slots_roll01"),Bo.soundMgr.playSound("s_win"),Bo.common.showGirlTalkPop(8,this.ui.talkNode,this.ui.talkNode.womanTxt)):(Bo.soundMgr.playSound("matchwin01"),Bo.soundMgr.playSound("s_lose"),Bo.common.showGirlTalkPop(9,this.ui.talkNode,this.ui.talkNode.womanTxt)),Moyu.isLegal||W.showBanner(!0);let i=jo.getChallengeTimes();Bo.common.gameMode==f.classic&&i>=1&&i<=3&&jo.setChallengeTimes(1),this.success&&Bo.common.gameMode==f.classic&&jo.setClassicTimes()}showChallengeLevel(){if(0!=jo.getChallengeTimes())return;let t=jo.getSkillAccTimes(),e=jo.getPlaceBallLevelList().length;(t>=3||e>=5)&&(Bo.uiMgr.Show(qo),this.hide())}addAward(t){if(this.success)switch(Bo.common.gameMode){case f.classic:this.awardCoinNum=Bo.common.passAwardCoin,this.awardDiamondNum=0,Bo.common.playObjFlyAnim(this.awardCoinNum,L.coin);break;case f.bigMove:this.awardCoinNum=Bo.common.passAwardCoin,this.awardDiamondNum=0,Bo.common.playObjFlyAnim(this.awardCoinNum,L.coin),t&&t();break;case f.placeBall:let e=Bo.common.placeBallCurLevel;if(Moyu.sendDataEvent("PlaceBall",{id:e,res:this.success?1:2}),3!=Bo.common.placeBallStarNum)return void(t&&t());if(jo.getPlaceBallLevel(e).getAward)return void(t&&t());let i=cfgTable.placeballData[e],s=cfgTable.placeballData[e].award;this.awardCoinNum=s[0],this.awardDiamondNum=s[1],i.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*Bo.common.gameMgr.finishBalls);let n,a=new U(L.coin,this.awardCoinNum);this.awardDiamondNum>0?(n=new U(L.diamond,this.awardDiamondNum),Bo.common.getAward([n,a],t)):Bo.common.getAward([a],t),i.type==w.normal&&jo.setPlaceBallAward(e)}else t&&t()}playSecretaryAni(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};if(this.success){let e=Math.random()<=.5?2:3;Bo.common.secretary.play(n,e,!1,t,()=>{Bo.common.secretary.play(n,1,!0,t)})}else Bo.common.secretary.play(n,0,!0,t)}restartGame(){switch(Bo.common.gameMode){case f.classic:Bo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:Bo.common.gameMode});break;case f.bigMove:this.hide(),Bo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:Bo.common.gameMode})}}hide(){super.hide(),Bo.common.stopGirlPop(this.ui.talkNode),W.showBanner(!1)}returnHome(){this.hide();let t=!this.success;Bo.uiMgr.Show(xh,t)}clickLeftBtn(){switch(Bo.common.gameMode){case f.classic:case f.bigMove:this.returnHome();break;case f.placeBall:let t=Bo.common.placeBallCurLevel;this.powerStartPlaceBallLevel(t,this.ui.leftBtn),Moyu.sendDataEvent("GameAgain",{mode:Bo.common.gameMode})}}powerStartPlaceBallLevel(t,e){jo.powerEnough()?(e.touchable=!1,e.powerEft.t0.play(Laya.Handler.create(this,()=>{e.touchable=!0,jo.setPower(-1),Bo.eventMgr.event(p),this.startPlaceBallLevel(t)}))):Bo.uiMgr.Show(Zo,0)}clickRightBtn(){switch(Bo.common.gameMode){case f.classic:case f.bigMove:this.restartGame();break;case f.placeBall:let t=Bo.common.placeBallCurLevel,e=jo.getPlaceBallLevel(t);e.play&&!e.isCur?this.powerStartPlaceBallLevel(t+1,this.ui.rightBtn):(Moyu.sendDataEvent("placeBallNextLevel"),Moyu.showVideoAd(()=>{jo.setPlaceBallLevel(t,1),this.startPlaceBallLevel(t+1)},Bo.define.EAdType.placeBallNextLevel))}}startPlaceBallLevel(t){Bo.common.gameMode=f.placeBall,Bo.common.placeBallCurLevel=t,Bo.uiMgr.Show(zo),this.hide()}}$o.uiName="UIGameEnd";class Jo{constructor(){this.ui=Ct.createInstance()}destroySelf(){this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose())}setParent(t){t.addChild(this.ui)}setPos(t,e){this.ui.x=t,this.ui.y=e}setUrl(t){this.ui.myImg.url=Bo.common.getGameIconUrl("q"+t)}}class Qo extends A{constructor(){super(),this.firstPos=385,this.secondPos=467,this.showItemArr=[]}onConstructor(){this.ui=xt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.hide),this.moneyNode=new oh(this.ui.moneyNode),this.addUIClick(this.ui.myNode.startBtn,this.startGame)}show(t){super.show(),this.ui.t1.play(),this.level=t,this.data=cfgTable.placeballData[this.level],this.updateSelf(),this.showPreView(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange()}showPreView(){let t,e;for(let e=0;e<this.showItemArr.length;e++)(t=this.showItemArr[e]).destroySelf();this.showItemArr=[];let i=Bo.cfgMgr.getPlaceBallByLevel(this.level);for(const s in i)e=i[s],(t=new Jo).setParent(this.ui.myNode.displayRoot),t.setPos(e.x,e.y),t.setUrl(e.value),this.showItemArr.push(t)}updateSelf(){this.ui.myNode.levelTxt.text=`第${this.level}关`,this.ui.myNode.modeNode.c1.selectedIndex=this.data.type,-1==this.data.ball?this.ui.myNode.conditionTxt.text="打进场上所有球":this.ui.myNode.conditionTxt.text="奖励关卡";let t=jo.getPlaceBallLevel(this.level).getAward,e=cfgTable.placeballData[this.level],i=this.data.award[0],s=this.data.award[1];e.type==w.challenge&&(s=0,i=100),this.ui.myNode.coinNode.visible=0!=i,this.ui.myNode.diamondNode.visible=0!=s,this.ui.myNode.coinNode.numTxt.text=i+"",e.type==w.challenge&&(this.ui.myNode.coinNode.numTxt.text=""),this.ui.myNode.diamondNode.numTxt.text=s+"",i>0&&s>0?(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=467):(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=385),t?(this.ui.myNode.diamondNode.c1.selectedIndex=1,this.ui.myNode.coinNode.c1.selectedIndex=1):(this.ui.myNode.coinNode.c1.selectedIndex=0,this.ui.myNode.diamondNode.c1.selectedIndex=0)}startGame(){jo.powerEnough()?(this.ui.myNode.startBtn.touchable=!1,this.ui.myNode.startBtn.powerEft.t0.play(Laya.Handler.create(this,()=>{this.ui.myNode.startBtn.touchable=!0,jo.setPower(-1),Bo.eventMgr.event(p),Bo.common.gameMode=f.placeBall,Bo.common.placeBallCurLevel=this.level,Bo.uiMgr.Show(zo),Bo.uiMgr.Hide(eh),Bo.uiMgr.Hide(xh),this.hide()}))):Bo.uiMgr.Show(Zo)}hide(){super.hide()}}Qo.uiName="UILevelProp";class th{constructor(t,e){this.index=0,this.ui=t,this.index=e,this.ui.onClick(this,this.clickSelf),this.updateSelf(),this.ui.levelTxt.text=this.index+1+"",this.ui.challenge.levelTxt.text=this.index+1+"",this.ui.special.levelTxt.text=this.index+1+""}updateSelf(){let t=this.index+1;this.data=jo.getPlaceBallLevel(t),this.ui.starNode.c1.selectedIndex=this.data.star;let e=cfgTable.placeballData[t].type;this.data.isCur?this.ui.c1.selectedIndex=e?5:2:this.data.play?3==this.data.star?this.ui.c1.selectedIndex=0:this.ui.c1.selectedIndex=1:this.ui.c1.selectedIndex=e?4:3}clickSelf(){this.data.play&&(Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.uiMgr.Show(Qo,this.index+1))}}class eh extends A{constructor(){super()}onConstructor(){this.ui=pt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.myList=this.ui.myNode.myList,this.addUIClick(this.ui.closeNode.closeBtn,this.hide),this.levelItemArr=[];let t=Bo.cfgMgr.getMaxPlaceBall();this.myList.itemRenderer=Laya.Handler.create(this,this.levelItemRender,null,!1),this.myList.numItems=t,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}levelItemRender(t,e){let i=new th(e,t);this.levelItemArr.push(i)}show(){super.show(),this.updateLevel(),this.scrollToPlace()}updateLevel(){let t;for(let e=0;e<this.levelItemArr.length;e++)(t=this.levelItemArr[e]).updateSelf()}scrollToPlace(){let t=Bo.cfgMgr.getMaxPlaceBall(),e=jo.getPlaceBallLevelList().length;e>=t-1&&(e=t-1),this.myList.scrollToView(e,!0,!0)}hide(){super.hide()}}eh.uiName="UILevelDisplay";class ih extends A{constructor(){super()}onConstructor(){this.ui=Lt.createInstance(),this.contentPane=this.ui,this.isEject=!1}show(t){super.show(),W.showBanner(!0),this.callback=t;let e=Moyu.getUserInfo();switch(this.selfPot||(this.selfPot=new Laya.Point(this.ui.selfHead.x,this.ui.selfHead.y)),this.aiPot||(this.aiPot=new Laya.Point(this.ui.aiHead.x,this.ui.aiHead.y)),this.ui.awardTxt.text=Bo.common.passAwardCoin+"",this.ui.selfHead.nameTxt.text=e.nickName,Bo.common.createHead(this.ui.selfHead.headImg,e.headIcon),this.ui.aiHead.nameTxt.text="???",this.ui.aiHead.headImg.url=Bo.common.getGameIconUrl("cstx"),this.ui.selfHead.c1.selectedIndex=0,this.ui.aiHead.c1.selectedIndex=0,this.ui.selfHead.x=this.selfPot.x,this.ui.selfHead.y=this.selfPot.y,this.ui.aiHead.x=this.aiPot.x,this.ui.aiHead.y=this.aiPot.y,Bo.common.gameMode){case f.classic:break;case f.bigMove:this.initSkillData()}this.ui.t1.play(Laya.Handler.create(this,()=>{this.ui.t2.play(Laya.Handler.create(this,()=>{switch(Bo.common.gameMode){case f.classic:this.waitingPeople();break;case f.bigMove:this.skillSelectFinish(Bo.common.curPlayerSkillType)}}))}))}initSkillData(){this.skillSelectData=[];let t=Bo.common.skillIconList,e=Bo.common.skillNameList,i=jo.getBigSkillList(),s=[b.highSpace,b.breakArmy,b.ice,b.GuanYu];for(let n=0;n<5;n++){let a={};a.skillImg=t[n],a.skillName=e[n],a.skillType=s[n],a.skillLevel=i[n],this.skillSelectData.push(a)}}getAISkillLevel(t){let e,i;return(e=(i=Bo.common.upSkillLevel?Bo.common.randomNum(-2,-1):t<=5?Bo.common.randomNum(1,3):t<=9?Bo.common.randomNum(-2,1):Bo.common.randomNum(-4,0))+t)<=1&&(e=1),e>=10&&(e=10),e}getAISkillType(){return Bo.common.randomNum(1,4)}getAISkillData(t){let e=this.skillSelectData[t].skillLevel,i=this.getAISkillLevel(e),s=this.getAISkillType()-1;return({aiLevel:i,aiType:s}={aiLevel:i,aiType:s})}skillSelectFinish(t){let e=this.getAISkillData(t);Bo.common.gameMgr.selfCurSkill=t,Bo.common.gameMgr.aiCurSkill=e.aiType,Bo.common.gameMgr.aiSkillLevelNum=e.aiLevel,this.ui.selfHead.c1.selectedIndex=1,this.ui.aiHead.c1.selectedIndex=1;let i=this.skillSelectData[t];this.ui.selfHead.skillImg.url=Bo.common.getGameIconUrl(i.skillImg);let s=jo.getSkillGuide();this.ui.selfHead.skillTxt.text=0==s?i.skillName+" 满级":i.skillName+"Lv."+i.skillLevel;let n=this.skillSelectData[e.aiType];this.ui.aiHead.skillImg.url=Bo.common.getGameIconUrl(n.skillImg),this.ui.aiHead.skillTxt.text=n.skillName+"Lv."+e.aiLevel,this.waitingPeople()}waitingPeople(){let t=Bo.common.randomNum(1e3,3e3);t+=1e3,Laya.timer.once(t,this,()=>{this.matchingSuccess()})}matchingSuccess(){let t=Bo.common.gameUI,e=t.ui.topNode.aiNameTxt.text,i=t.ui.topNode.aiHeadLoader.url;this.ui.aiHead.nameTxt.text=e,this.ui.aiHead.headImg.url=i,e=t.ui.topNode.selfNameTxt.text,i=t.ui.topNode.selfHeadLoader.url,this.ui.selfHead.nameTxt.text=e,this.ui.selfHead.headImg.url=i,this.ui.t3.play(Laya.Handler.create(this,()=>{this.callback&&this.callback(),this.ui.t4.play(Laya.Handler.create(this,()=>{this.destroySelf()}))}))}destroySelf(){this.callback=null,this.skillSelectData=null,this.selfPot=null,this.aiPot=null,this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose()),Bo.uiMgr.destroyUI(this)}}ih.uiName="UIMatching";class sh{constructor(t,e,i){this.starX=0,this.starY=0,this.index=0,this.ui=t,this.data=e,this.index=i,this.initSelf()}initSelf(){this.ui.normalBtn.onClick(this,this.clickAddLevel),this.ui.nameTxt.text=this.data.name,this.ui.describeTxt.text=this.data.describe,this.ui.skillImg.url=Bo.common.getGameIconUrl(this.data.icon),this.ui.startBtn.onClick(this,this.startGame),this.updateSelf()}updateSelf(){this.checkTry();let t=jo.getBigSkillByIndex(this.index);this.ui.c1.selectedIndex=t>=Bo.common.maxSkillLevel?1:0}checkTry(){let t=this.index,e=jo.getBigSkillByIndex(t);null==e&&(jo.setBigSkill(t,1,!1),e=1),this.ui.levelTxt.text="LV."+e,this.index==jo.gameData.trySkill&&Laya.timer.currTimer<jo.gameData.tryTime?this.ui.tryNode.visible=!0:this.ui.tryNode.visible=!1}clickAddLevel(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Moyu.sendDataEvent("UpSkill",{id:this.data.index}),Moyu.showVideoAd(()=>{jo.setBigSkill(this.data.index,1),this.updateSelf(),Bo.common.upSkillLevel=!0},N.upSkill)}startGame(){Bo.soundMgr.playSound(Bo.common.btnClickStr);let t=Bo.common.bigMoveNeedCoin;Bo.common.passAwardCoin=2e3;let e=jo.getSkillGuide();Bo.common.temSelfLevel=0,0==e&&(t=0,Bo.common.temSelfLevel=100),jo.coinEnough(t)?(jo.setCoin(-t),Bo.common.curPlayerSkillType=this.index,0==e&&(Bo.common.curPlayerSkillType=0),Bo.uiMgr.Show(zo),Bo.uiMgr.Hide(xh),Bo.uiMgr.Show(ih,()=>{Bo.common.gameUI.ui.alpha=1,Bo.common.gameUI.startGame(),Bo.uiMgr.Hide(nh)})):(Bo.uiMgr.Show(ah,0),Moyu.sendDataEvent("AddCoinVideo"))}}class nh extends A{constructor(){super(),this.skillData=[]}onConstructor(){this.ui=At.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new oh(this.ui.moneyNode),this.initSkillData(),this.addUIClick(this.ui.closeNode.closeBtn,this.returnUIMain),this.ui.skillNode.skillList.itemRenderer=Laya.Handler.create(this,this.updateSkillItem,null,!1),this.displayList=[],this.ui.skillNode.skillList.numItems=4,this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.guideNode.guideBtn,this.enterGuideLevel),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.moneyNode.ui.c1.selectedIndex=1,Laya.timer.clearAll(this),Bo.soundMgr.playSound("s_start"),Bo.common.showGirlTalkPop(13,this.ui.talkNode,this.ui.talkNode.womanTxt);let t=jo.getSkillGuide();this.ui.guideNode.visible=0==t;let e=this.getSkillItemByUIIndex(0);e.ui.c1.selectedIndex=0==t?1:0,this.ui.guideNode.guideBtn.visible=0==t;for(let t=0;t<this.displayList.length;t++)this.displayList[t].checkTry()}getSkillItemByUIIndex(t){for(let e=0;e<this.displayList.length;e++)if(this.displayList[e].index==t)return this.displayList[e]}enterGuideLevel(){this.getSkillItemByUIIndex(0).startGame(),jo.getNewUser()&&Moyu.sendDataEvent("gameStart1")}initSkillData(){this.skillData=[];let t,e=Bo.common.skillNameList,i=Bo.common.skillIconList,s=["跳杆击球后,球高高跃起,砸在桌面上,直接打进额外1颗球","普通击球后,球杆向随机方向—扫,将杆子范围内1颗可击打球扫入球袋","我方击球后,在场地上将随机1颗球冻结,敌方无法击打冰冻球,且其他球碰到冰冻球会弹开","击球后在球桌上斩出一刀,并击飞斩中的球。(球不会飞出球桌)"];for(let n=0;n<e.length;n++)(t={}).name=e[n],t.icon=i[n],t.describe=s[n],t.index=n,this.skillData.push(t)}updateSkillItem(t,e){if(null==this.displayList[t]){let i;switch(t){case 0:i=1;break;case 1:i=0;break;case 2:i=2;break;case 3:i=3}let s=new sh(e,this.skillData[i],i);this.displayList.push(s)}}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}returnUIMain(){this.hide(),Bo.common.stopGirlPop(this.ui.talkNode),Bo.uiMgr.Show(xh)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=Bo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=Bo.common.randomNum(4,7);Bo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}}nh.uiName="UISkill";class ah extends A{constructor(){super(),this.curType=""}onConstructor(){this.ui=Y.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.myNode.coinBtn,this.switchBtn,["coin"]),this.addUIClick(this.ui.myNode.diamondBtn,this.switchBtn,["diamond"]),this.updateUI(),this.addUIClick(this.ui.myNode.node1,this.shareGetDiamond),this.addUIClick(this.ui.myNode.node2,this.videoGetDiamond),this.addUIClick(this.ui.myNode.node6,this.openPutBallView),this.addUIClick(this.ui.myNode.node3,this.videoGetCoin),this.addUIClick(this.ui.myNode.node4,this.convertCoin,[4]),this.addUIClick(this.ui.myNode.node5,this.convertCoin,[5])}show(t){super.show(),this.curType=0==t?"coin":"diamond",this.switchBtn(""),this.ui.t0.play(),this.ui.myNode.node1.c1.selectedIndex=Moyu.isTT?0:1,W.showInsert(!0)}closeSelf(){this.hide()}updateUI(){let t,e,i=cfgTable.moneyData;for(const s in i)t=i[s],e=this.ui.myNode["node"+s],parseInt(s)<=2?e.diamondTxt.text="+"+t.num:(e.coinTxt.text=t.num,e.diamondTxt.text=t.get.split("_")[1]);this.updateDiamondShare()}updateDiamondShare(){let t=jo.getShareDiamondTimes();t>=Bo.common.maxShareDiamondTimes?(this.ui.myNode.node1.shareTxt.text="明日再来",this.ui.myNode.node1.touchable=!1):(this.ui.myNode.node1.shareTxt.text=`(${t}/${Bo.common.maxShareDiamondTimes})`,this.ui.myNode.node1.touchable=!0)}switchBtn(t){if(""==t)t=this.curType;else{if(this.curType==t)return;this.curType=t}"coin"==t?(this.ui.myNode.coinBtn.c1.selectedIndex=0,this.ui.myNode.diamondBtn.c1.selectedIndex=1,this.ui.myNode.coinBtn.displayObject.zOrder=10,this.ui.myNode.diamondBtn.displayObject.zOrder=9,this.ui.myNode.c1.selectedIndex=0):(this.ui.myNode.coinBtn.c1.selectedIndex=1,this.ui.myNode.diamondBtn.c1.selectedIndex=0,this.ui.myNode.coinBtn.displayObject.zOrder=9,this.ui.myNode.diamondBtn.displayObject.zOrder=10,this.ui.myNode.c1.selectedIndex=1)}convertCoin(t){let e=cfgTable.moneyData[t],i=e.num,s=e.get.split("_")[1],n=parseInt(s);jo.diamondEnough(n)?(jo.setDiamond(-n),Bo.common.playObjFlyAnim(i,L.coin),Bo.uiMgr.Show(Yo,"兑换成功!")):(Bo.uiMgr.Show(Yo,"钻石不足~"),this.switchBtn("diamond"))}videoGetDiamond(){let t=cfgTable.moneyData[2].num;Moyu.showVideoAd(()=>{Bo.common.playObjFlyAnim(t,L.diamond),this.closeSelf()},N.addDiamond)}videoGetCoin(){Moyu.showVideoAd(()=>{Bo.common.playObjFlyAnim(2e3,L.coin),this.closeSelf()},N.addCoin)}shareGetDiamond(){if(jo.getShareDiamondTimes()>=Bo.common.maxShareDiamondTimes)Bo.uiMgr.Show(Yo,"明日再来~");else if(Moyu.isTT){let t=cfgTable.moneyData[1].num;Moyu.shareVideo="",Moyu.shareGame(e=>{e?(Bo.uiMgr.Show(Yo,"分享成功!"),Bo.common.playObjFlyAnim(t,L.diamond),jo.setShareDiamondTimes(1),this.updateDiamondShare()):Bo.uiMgr.Show(Yo,"分享失败!")})}else Moyu.showVideoAd(()=>{let t=Bo.common.randomNum(50,100);Bo.common.playObjFlyAnim(t,L.diamond),jo.setShareDiamondTimes(1),this.updateDiamondShare()},N.randomDiamond)}openPutBallView(){let t=Bo.uiMgr.getUI($o),e=Bo.uiMgr.getUI(nh),i=Bo.uiMgr.getUI(eh),s=Bo.uiMgr.getUI(zo);t&&!t.isHide&&(Bo.uiMgr.Hide($o),Bo.uiMgr.Show(xh)),e&&!e.isHide&&Bo.uiMgr.Hide(nh),s&&!s.isHide&&Bo.uiMgr.Hide(zo),i&&!i.isHide||Bo.uiMgr.Show(eh),this.closeSelf()}}ah.uiName="UIAddProp";class oh{constructor(t){this.leftTime=0,this.ui=t,this.ui.addCoinBtn.onClick(this,this.addCoin),this.ui.addDiamondBtn.onClick(this,this.addDiamond),this.ui.addPowerBtn.onClick(this,this.addPower),this.ui.c1.selectedIndex=1,Bo.eventMgr.on(c,this,this.coinChange),Bo.eventMgr.on(d,this,this.diamondChange),Bo.eventMgr.on(y,this,this.powerChange),Bo.eventMgr.on(p,this,this.checkPowerTime),this.coinChange(),this.diamondChange(),this.powerChange()}addPower(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Bo.uiMgr.Show(Zo)}powerChange(){let t=jo.getPower();this.ui.powerTxt.text=t+""}checkPowerTime(){let t=(new Date).getTime(),e=jo.getPowerTime();0==e&&(e=t,jo.setPowerTime(t));let i=jo.getPower(),s=Math.floor((t-e)/(1e3*Bo.common.powerRecoverNum));if(Laya.timer.clearAll(this),i>=Bo.common.natureMaxPower)return this.ui.powerTimeTxt.text="",void jo.setPowerTime(t);if(i+s>=Bo.common.natureMaxPower)jo.setPower(Bo.common.natureMaxPower,!1),this.ui.powerTimeTxt.text="",jo.setPowerTime(t);else{s>0&&(jo.setPower(s),jo.setPowerTime(t));let i=Math.floor((t-e-s*Bo.common.powerRecoverNum*1e3)/1e3);this.leftTime=Bo.common.powerRecoverNum-i,this.leftTime<=0&&(this.leftTime=0),this.ui.powerTimeTxt.text=Bo.common.getMSTime(this.leftTime),Laya.timer.loop(1e3,this,this.updatePowerTime)}}updatePowerTime(){this.leftTime-=1,this.ui.powerTimeTxt.text=Bo.common.getMSTime(this.leftTime),this.leftTime<=0&&this.checkPowerTime()}coinChange(){this.ui.coinTxt.text=jo.getCoin()+""}diamondChange(){this.ui.diamondTxt.text=jo.getDiamond()+""}addCoin(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Moyu.sendDataEvent("AddCoinBtn"),Bo.uiMgr.Show(ah,0)}addDiamond(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Moyu.sendDataEvent("AddDiamondBtn"),Bo.uiMgr.Show(ah,1)}}class hh{constructor(t){this.showSetting=!1,this.openSound=!0,this.openShake=!0,this.ui=t,this.ui.soundBtn.onClick(this,this.switchSound),this.ui.shakeBtn.onClick(this,this.switchShake),this.ui.xyBtn.onClick(this,this.onXy),this.ui.clickNode.onClick(this,this.changeSetting),this.ui.xyBtn.visible=Moyu.isVivo||Moyu.isOppo||Moyu.isOPApk||Moyu.isVVApk}changeSetting(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.showSetting=!this.showSetting,this.ui.c1.selectedIndex=this.showSetting?1:0}switchSound(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.openSound=!this.openSound,Moyu.onSetting(this.openSound,this.openShake),Bo.soundMgr.onSetting(this.openSound),this.ui.soundBtn.c1.selectedIndex=this.openSound?0:1}switchShake(){Bo.soundMgr.playSound(Bo.common.btnClickStr),this.openShake=!this.openShake,Moyu.onSetting(this.openSound,this.openShake),this.ui.shakeBtn.c1.selectedIndex=this.openShake?0:1}onXy(){Bo.soundMgr.playSound(Bo.common.btnClickStr),Ho.showXy(1)}}class lh extends A{constructor(){super(),this.curKey=0}onConstructor(){this.ui=G.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new oh(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui.drawBtn,this.startDraw),this.initDraw(),this.initUI(),this.ui.myNode.flashNode.c1.selectedIndex=1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.ui.t0.play(),this.playSecretaryIdle(),this.updateDraw(),this.checkFree(),W.bannerDelay>0&&(this.ui.closeNode.closeBtn.visible=!1,Laya.timer.once(W.bannerDelay,this,()=>{this.ui.closeNode.closeBtn.visible=!0})),W.showRateBanner()}hide(){Laya.timer.clearAll(this),super.hide()}checkFree(){let t=jo.getDailyfreeDrawTimes();this.ui.drawBtn.c1.selectedIndex=t>0?0:1}initDraw(){this.drawObj=[];let t,e=cfgTable.drawData,i=0;for(const s in e)i+=(t=e[s]).weight,this.drawObj.push(i);this.allWeight=i}initUI(){let t,e,i,s=cfgTable.drawData;for(const n in s)t=s[n],e=this.ui.myNode.rotNode["img"+n],i=this.ui.myNode.rotNode["txt"+n],e.url=Bo.common.getGameIconUrl(t.icon),i.visible=!0,t.award>2?(e.rotation=0,i.text=cfgTable.ballrodData[t.award-1].name):(e.rotation=t.rotation,i.text=t.num)}getCurkey(){let t,e=Math.random()*this.allWeight;for(let i=0;i<this.drawObj.length-1;i++)if(t=this.drawObj[i],0==i){if(e<t)return i+1}else if(e>=t&&e<this.drawObj[i+1])return i+1;return 2}startDraw(){jo.getDailyfreeDrawTimes()>0?(this.beginDraw(),jo.setDailyfreeDrawTimes(0),this.checkFree()):(Moyu.sendDataEvent("turntable"),Moyu.showVideoAd(()=>{this.beginDraw()},N.draw))}beginDraw(){this.ui.myNode.flashNode.c1.selectedIndex=0,this.ui.drawBtn.touchable=!1,this.curKey=this.getCurkey(),console.log("当前key",this.curKey);let t=60*(this.curKey-1)+1080,e=this.ui.myNode.rotNode;e.rotation=0,Laya.Tween.to(e,{rotation:t},1500,Laya.Ease.cubicOut,Laya.Handler.create(this,()=>{console.log("旋转完成"),this.ui.drawBtn.touchable=!0,this.getAward()}))}getAward(){let t=cfgTable.drawData[this.curKey],e=new U;e.type=t.award,e.num=t.num,Bo.common.getAward([e],()=>{jo.setDrawTimes(1),this.updateDraw(),this.ui.myNode.flashNode.c1.selectedIndex=1})}updateDraw(){let t=jo.getDrawTimes(),e=jo.getDrawAwardTimes();Math.floor(t/3)>e?(this.ui.extraNode.boxBtn.t0.play(null,-1),this.ui.extraNode.boxBtn.touchable=!0,this.ui.extraNode.tipsTxt.text="3/3",this.ui.extraNode.barNode.width=265,this.getExtraAward()):(this.ui.extraNode.boxBtn.t0.stop(),this.ui.extraNode.boxBtn.touchable=!1,this.ui.extraNode.tipsTxt.text=`${t%3}/3`,this.ui.extraNode.barNode.width=t%3*265/3);let i=cfgTable.drawData[1];if(0==e)this.ui.myNode.rotNode.img1.url=Bo.common.getComponentUrl("s"+i.icon),this.ui.myNode.rotNode.txt1.text=cfgTable.ballrodData[i.award-1].name,this.ui.myNode.rotNode.img1.rotation=0;else{let t=i.nextid;this.ui.myNode.rotNode.img1.url=Bo.common.getGameIconUrl(t[2]),this.ui.myNode.rotNode.txt1.text=t[1],this.ui.myNode.rotNode.img1.rotation=0}}getExtraAward(){let t=jo.getDrawTimes(),e=jo.getDrawAwardTimes(),i=cfgTable.drawData[1],s=new U;0==e?(s.num=i.num,s.type=i.award,Bo.common.getAward([s],()=>{let e=Math.floor(t/3);jo.setDrawAwardTimes(e),this.updateDraw()})):(s.num=parseInt(i.nextid[1]),s.type=parseInt(i.nextid[0]),Bo.common.getAward([s],()=>{let e=Math.floor(t/3);jo.setDrawAwardTimes(e),this.updateDraw()}))}closeSelf(){this.hide()}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}}lh.uiName="UIDraw";class rh extends A{constructor(){super(),this.showSelf=!0,this.rankType=1,this.rankList=[],this.myIndex=0,this.myStar=0}onConstructor(){this.ui=Ut.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.closeBtn,this.hide),this.addUIClick(this.ui.myNode.changeBtn,this.changeSelfNode),this.addUIClick(this.ui.myNode.starBtn,this.changeList,[1]),this.addUIClick(this.ui.myNode.levelBtn,this.changeList,[2]),this.ui.myNode.myList.setVirtual(),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.updateItemUI,null,!1)}show(){super.show(),this.myIndex=51,Moyu.getRankList({rankId:Bo.common.curRankID,type:MoyuRankType.total,page:1,pageSize:50},this,this.updateItemData),this.updateSelf(),Moyu.getUserInfo().isAuth||Moyu.initUser(this,()=>{jo.upRankData()})}updateSelfItem(){let t=Moyu.getUserInfo();this.ui.myNode.selfNode.c1.selectedIndex=this.myIndex<4?this.myIndex-1:3,this.ui.myNode.selfNode.rankTxt.text=this.myIndex>50?"未上榜":this.myIndex.toString(),this.ui.myNode.selfNode.valueTxt.text=this.myStar+"",this.ui.myNode.selfNode.nameTxt.text=Moyu.platType<11?t.nickName:"我自己",Bo.common.createHead(this.ui.myNode.selfNode.headNode.head.myIcon,t.headIcon)}updateItemData(t){if(this.myStar=Bo.common.getAllStarNum(),this.rankList.length<2){this.rankList=t;let e=Moyu.getUserInfo();for(let i=0;i<t.length;i++){if(this.rankList[i].userId==e.userId){this.rankList.splice(i,1);break}}for(let i=0;i<t.length;i++){if(this.rankList[i].rankScore<this.myStar&&this.myIndex>50){this.myIndex=i+1;let t={headIcon:e.headIcon,nickName:"我自己"},s={user:t,data:{}},n={rankScore:this.myStar.toString(),userId:e.userId,userData:JSON.stringify(s)};Moyu.platType<11&&(t.headIcon=e.headIcon,t.nickName=e.nickName),this.rankList.splice(i,0,n);break}}}this.updateSelfItem(),this.ui.myNode.myList.numItems=this.rankList.length}updateItemUI(t,e){let i=this.rankList[t],s=JSON.parse(i.userData).user;switch(e.nameTxt.text=s.nickName.toString(),e.valueTxt.text=i.rankScore,Bo.common.createHead(e.headNode.head.myIcon,s.headIcon,80),e.rankTxt.text=t+1,t){case 0:this.setImg(e,1,0,0),e.rankTxt.color="#FFC047";break;case 1:this.setImg(e,0,1,0),e.rankTxt.color="#ACACAC";break;case 2:this.setImg(e,0,0,1),e.rankTxt.color="#D09672";break;default:this.setImg(e,0,0,0),e.rankTxt.color="#496FAB"}}setImg(t,e,i,s){t.img1.visible=!!e,t.img2.visible=!!i,t.img3.visible=!!s}changeList(t){this.rankType=t,this.updateSelf()}changeSelfNode(){this.showSelf=!this.showSelf,this.updateSelf()}updateSelf(){this.ui.myNode.changeBtn.c1.selectedIndex=this.showSelf?0:1,this.ui.myNode.c2.selectedIndex=this.showSelf?0:1,this.ui.myNode.c1.selectedIndex=1==this.rankType?0:1,this.ui.myNode.levelBtn.c1.selectedIndex=1==this.rankType?1:0,this.ui.myNode.starBtn.c1.selectedIndex=1==this.rankType?0:1}}rh.uiName="UIRanking";class ch extends A{constructor(){super(),this.curIndex=1}onConstructor(){this.ui=Bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.leftBtn,this.turnLeft),this.addUIClick(this.ui.rightBtn,this.turnRight),this.nodeObj={left:null,right:null,cur:null},this.nodeObj.left=this.ui.myNode.gameNode1,this.nodeObj.right=this.ui.myNode.gameNode2,this.nodeObj.cur=this.ui.myNode.gameNode3}show(){super.show(),this.ui.t0.play(),this.updateData()}addSecretarySpine(t,e){if("mishu"==e)if(this.secretarySpine1)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine1,t.displayObject);else{let e=new X("mishu",()=>{this.secretarySpine1=e,this.playWoman(this.secretarySpine1,t.displayObject)})}else if(this.secretarySpine2)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine2,t.displayObject);else{let e=new X("xiaomishu2",()=>{this.secretarySpine2=e,this.playWoman(this.secretarySpine2,t.displayObject)})}}playWoman(t,e){let i=this.ui.myNode.gameNode1.secretary.width/2,s=this.ui.myNode.gameNode1.secretary.height,n=1.5;t==this.secretarySpine2&&(n=1.2);let a={x:i,y:s,scaleX:n,scaleY:n};t.play(a,1,!0,e)}turnLeft(){this.curIndex--,this.curIndex<1&&(this.curIndex=2);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(t,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(e,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(i,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(e,2),this.nodeObj.left=i,this.nodeObj.right=t,this.nodeObj.cur=e}turnRight(){this.curIndex++,this.curIndex>2&&(this.curIndex=1);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(i,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(t,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(e,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(t,2),this.nodeObj.left=e,this.nodeObj.right=i,this.nodeObj.cur=t}updateData(){let t,e,i=cfgTable.secretaryshopData,s=this.ui.myNode._children;for(let n=0;n<s.length;n++){t=s[n],2==n?(e=i[this.curIndex],t.purchaseBtn.touchable=!0):(t.purchaseBtn.touchable=!1,e=1==this.curIndex?i[2]:i[1]),t.heightTxt.text=e.height,t.foodTxt.text=e.food,t.historyTxt.text=e.history,t.nameImg.url=Bo.common.getGameIconUrl(e.nameImg),this.addSecretarySpine(t.secretary,e.spine);let a=e.id-1,o=jo.getSecretary(a),h=jo.getCurSecretary();o?t.purchaseBtn.c1.selectedIndex=h==a?1:2:(t.purchaseBtn.c1.selectedIndex=0,t.purchaseBtn.diamondTxt.text=e.price+""),t.purchaseBtn.offClick(this,this.clickSecretary),t.purchaseBtn.onClick(this,this.clickSecretary,[o,h,a,e.price])}}clickSecretary(t,e,i,s){if(Bo.soundMgr.playSound(Bo.common.btnClickStr),t)e!=i&&(console.log(),jo.setCurSecretary(i),this.updateData());else{let t=s;jo.diamondEnough(t)?(jo.setDiamond(-t),jo.setSecretary(i,1),jo.setCurSecretary(i),this.updateData()):Bo.uiMgr.Show(ah,1)}}closeSelf(){this.hide()}}ch.uiName="UISecretary";class dh{constructor(t,e){this.index=0,this.uiIndex=0,this.ui=t,this.index=e,this.initData()}initData(){this.ui.purchaseBtn.onClick(this,this.buyBallRod);let t=cfgTable.ballrodData[this.index+1];this.ui.nameTxt.text=t.name,this.ui.rodImg.url=Bo.common.getGameIconUrl(t.img),this.ui.levelNode.c1.selectedIndex=t.quality,this.ui.purchaseBtn.diamondTxt.text=t.price+"",t.spine&&(this.mySpine=new X(t.spine,()=>{let t={x:150,y:70,scaleX:1,scaleY:1};this.mySpine.play(t,0,!0,this.ui.eftRod.displayObject)}))}updateSelf(){let t=jo.getBallRod(this.index);null==t&&(t=1);let e=jo.getCurBallRod();t?e==this.index?this.ui.purchaseBtn.c1.selectedIndex=0:this.ui.purchaseBtn.c1.selectedIndex=1:this.ui.purchaseBtn.c1.selectedIndex=2}buyBallRod(){switch(Bo.soundMgr.playSound(Bo.common.btnClickStr),this.ui.purchaseBtn.c1.selectedIndex){case 0:break;case 1:jo.setCurBallRod(this.index),Bo.uiMgr.getUI(uh).updateBallRod();break;case 2:let t=cfgTable.ballrodData[this.index+1].price;if(jo.diamondEnough(t)){jo.setDiamond(-t),jo.setBallRod(this.index,1),jo.setCurBallRod(this.index),Bo.uiMgr.getUI(uh).updateBallRod()}else Bo.uiMgr.Show(ah,1)}}}class uh extends A{constructor(){super(),this.itemNums=0}onConstructor(){this.ui=Tt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new oh(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui,this.interuptSecretary),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.renderBallRod,null,!1),this.ballRodArr=[],this.itemNums=Object.keys(cfgTable.ballrodData).length,this.ui.myNode.myList.numItems=this.itemNums,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.updateBallRod()}updateBallRod(){for(let t=0;t<this.ballRodArr.length;t++)this.ballRodArr[t].updateSelf()}renderBallRod(t,e){let i=this.getIndexBySort(t+1)-1,s=new dh(e,i);this.ballRodArr.push(s)}getIndexBySort(t){let e=cfgTable.ballrodData;for(const i in e)if(e[i].sort==t)return parseInt(i)}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=Bo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=Bo.common.randomNum(4,7);Bo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}closeSelf(){this.hide()}}uh.uiName="UIShop";class gh{constructor(t){this.ui=t}updateSelf(t,e,i){let s=cfgTable.signData[t+1];this.ui.titleTxt.text=s.title;let n=s.award[0].split("-"),a=s.award[1].split("-"),o=parseInt(n[1]),h=parseInt(a[1]);this.ui.numTxt1.text=o+"",this.ui.numTxt2.text=h+"",this.ui.myIcon1.url=Bo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon2.url=Bo.common.getGameIconUrl(s.icon[1]),Bo.common.signAwardContainsRod([s.award[0]])?this.ui.numTxt1.visible=!1:this.ui.numTxt1.visible=!0,Bo.common.signAwardContainsRod([s.award[1]])?this.ui.numTxt2.visible=!1:this.ui.numTxt2.visible=!0,this.ui.c1.selectedIndex=t<i?1:t==i?2:0}}class mh{constructor(t){this.ui=t}updateSelf(t,e,i){let s=cfgTable.signData[t+1];this.ui.titleTxt.text=s.title;let n=s.award[0].split("-"),a=parseInt(n[0]),o=parseInt(n[1]);this.ui.numTxt.text=o+"",a>2?(this.ui.myIcon.url=Bo.common.getComponentUrl("s"+s.icon[0]),this.ui.myIcon.rotation=0):(this.ui.myIcon.url=Bo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon.rotation=0),Bo.common.signAwardContainsRod(s.award)?this.ui.numTxt.visible=!1:this.ui.numTxt.visible=!0,this.ui.c1.selectedIndex=t<i?1:t==i?2:0}}class yh extends A{constructor(){super(),this.curDayIndex=0,this.starX=0}onConstructor(){this.ui=jt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new oh(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.initSignItem(),this.addUIClick(this.ui.normalBtn,this.normalGetAward),this.addUIClick(this.ui.againBtn,this.againGetAward)}show(){super.show(),this.ui.t0.play(),this.playSecretaryIdle(),this.updateSign()}initSignItem(){this.signArr=[];for(let t=0;t<6;t++){let e=new mh(this.ui.myNode["day"+(t+1)]);this.signArr.push(e)}this.signMax=new gh(this.ui.myNode.day7),Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}updateSign(){let t=Bo.common.judgeSameDay();if(this.curDayIndex=jo.getSignData(),(!this.curDayIndex||this.curDayIndex>=7&&!t)&&(this.curDayIndex=0),t){this.ui.normalBtn.visible=!1;let t=jo.getExtraSign(),e=!1,i=this.curDayIndex;0==i&&(i=7);let s=cfgTable.signData[i].award[0].split("-")[0];"1"!=s&&"2"!=s||(e=!0);let n=0==t&&e;this.ui.againBtn.visible=n,this.ui.tipsNode.visible=!n}else this.ui.normalBtn.visible=!0,this.ui.tipsNode.visible=!1,this.ui.againBtn.visible=!1;for(let e=0;e<this.signArr.length;e++)this.signArr[e].updateSelf(e,t,this.curDayIndex);this.signMax.updateSelf(6,t,this.curDayIndex)}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}closeSelf(){this.hide()}normalGetAward(){if(!Bo.common.judgeSameDay()){let t,e,i,s=cfgTable.signData[this.curDayIndex+1].award,n=[];for(let a=0;a<s.length;a++){t=s[a].split("-"),e=parseInt(t[0]),i=parseInt(t[1]);let o=new U;o.num=i,o.type=e,n.push(o)}Bo.common.getAward(n,t=>{this.curDayIndex++,this.curDayIndex>7&&(this.curDayIndex=0),jo.setSignData(this.curDayIndex),jo.setSignTime((new Date).getTime()),t&&(jo.setExtraSign(1),Moyu.sendDataEvent("signIn1")),this.updateSign()})}}againGetAward(){Moyu.sendDataEvent("signIn2"),Moyu.showVideoAd(()=>{let t=this.curDayIndex;0==t&&(t=7);let e,i,s,n=cfgTable.signData[t].award;for(let t=0;t<n.length;t++)e=n[t].split("-"),i=parseInt(e[0]),s=3*parseInt(e[1]),Bo.common.playObjFlyAnim(s,i);jo.setExtraSign(1),this.updateSign()},N.againSign)}}yh.uiName="UISign";class ph extends A{constructor(){super()}onConstructor(){this.ui=Vt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.type1,this.enterGame,[1]),this.addUIClick(this.ui.myNode.type2,this.enterGame,[2]),this.addUIClick(this.ui.myNode.type3,this.enterGame,[3]),this.addUIClick(this.ui.closeBtn,this.hide),this.peopleArr=[650,6900,3800],this.peopleOffest=[50,500,200],this.updateSelf()}show(t){super.show(),this.ui.t0.play(),this.callback=t}updateSelf(){let t=cfgTable.modeselectData;for(let e=1;e<=3;e++){let i=this.ui.myNode["type"+e];i.need.text=t[e].need,i.tipsTxt.text=`最低${t[e].need}可入场`,i.peopleTxt.text=this.getRandPeople(e-1)}}enterGame(t){Bo.common.classicRoomType=t;let e=cfgTable.modeselectData[t],i=e.need;Bo.common.passAwardCoin=e.award,jo.coinEnough(i)?(jo.setCoin(-i),this.ui.myNode["type"+t].t0.play(),Laya.timer.once(200,this,()=>{this.callback&&this.callback()})):(Moyu.sendDataEvent("AddCoinVideo"),Bo.uiMgr.Show(ah,0))}getRandPeople(t){let e=this.peopleOffest[t];return this.peopleArr[t]+Bo.common.randomNum(-e,e)}}ph.uiName="UIModeSelection";class xh extends A{constructor(){super(),this.firstEnter=!0}onConstructor(){this.ui=dt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addEvent(),this.addClickSpine(),this.settingNode=new hh(this.ui.settingNode),this.moneyNode=new oh(this.ui.moneyNode),Bo.eventMgr.on(u,this,this.beginGame),Bo.eventMgr.on(g,this,this.onGetUserInfo),Bo.eventMgr.on(m,this,this.changeSecretary);let t=jo.getCurSecretary();this.changeSecretary(t),this.ui.talkNode.visible=!1;let e=jo.getSkillGuide();Bo.common.isNewDay&&1==e&&(Bo.common.isNewDay=!1,Bo.soundMgr.playSound("s_main01"),Bo.common.showGirlTalkPop(1,this.ui.talkNode,this.ui.talkNode.womanTxt),console.log("播放小秘书每天语音")),this.onGetUserInfo(),this.ui.n83.visible=!1,Moyu.setShareInfo("万宁台球",["台球","万宁","桌球"],"2300002254")}changeSecretary(t){let e=cfgTable.secretaryshopData[t+1].spine;Bo.common.secretary&&Bo.common.secretary.dispose(),this.addSecretarySpine(e)}addSecretarySpine(t){let e=new X(t,()=>{this.playSecretaryIdle()});Bo.common.secretary=e}addClickSpine(){let t=new X("dianji",()=>{Laya.stage.on(Laya.Event.CLICK,this,e=>{let i=Laya.stage,s={x:e.stageX,y:e.stageY,scaleX:.8,scaleY:.8};t.play(s,0,!1,i,t=>{t.destroy(!0)})})})}addEvent(){this.addUIClick(this.ui.classicBtn,this.startGame,[f.classic]),this.addUIClick(this.ui.bigMoveBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.globalBtn,this.startGlobal),this.addUIClick(this.ui.weeklyBtn,this.startWeekly),this.addUIClick(this.ui.placeBallBtn,this.startPlaceBall),this.addUIClick(this.ui.headNode,this.onGetUserInfo,[!0]),this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.rightBtn,this.ensureSecretary),this.addUIClick(this.ui.guideBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.secretaryBtn,this.openSecretaryView),this.addUIClick(this.ui.shopBtn,this.openShopView),this.addUIClick(this.ui.signBtn,this.openSignView),this.addUIClick(this.ui.drawBtn,this.openDrawView),this.addUIClick(this.ui.rankBtn,this.openRanking)}show(t){if(super.show(),this.moneyNode.ui.c1.selectedIndex=1,this.playSecretaryIdle(),Bo.soundMgr.playMusic("caromhall01"),Laya.timer.clearAll(this),this.playSecretaryRandomSound(),t&&setTimeout(()=>{let t=Math.random()<=.5?"s_main02":"s_main03",e=-1;e="s_main02"==t?2:3,Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),Bo.soundMgr.playSound(t)},300),this.showGuide(),this.ui.guideBtn.x=this.ui.liucheng2.myMask.x,this.ui.guideBtn.y=this.ui.liucheng2.myMask.y,1==jo.getSkillGuide()){let t=Bo.common.randomNum(300,800);this.firstEnter&&(this.firstEnter=!1,t+=900),Laya.timer.once(t,this,()=>{Bo.common.autoPopUIView()})}}checkActive(t){}showGuide(){let t=jo.getSkillGuide();this.ui.guideBtn.visible=0==t,this.ui.enterGuide.visible=!1,this.ui.secretaryGuide.visible=0==t,0==t&&(Bo.soundMgr.playSound("s_guide"),Bo.common.showGirlTalkPop(16,this.ui.talkNode,this.ui.talkNode.womanTxt))}ensureSecretary(){this.ui.secretaryGuide.visible=!1,this.ui.enterGuide.visible=!0,this.ui.wordsNode.t0.play(),jo.getNewUser()&&Moyu.sendDataEvent("gameReady")}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=Bo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};Bo.common.secretary.play(n,1,!0,t)}startGame(t){switch(Bo.common.gameMode=t,Moyu.sendDataEvent("PlayGame",{type:t}),Bo.common.gameMode){case f.classic:0==jo.getChallengeTimes()?Bo.uiMgr.Show(qo):this.beginGame();break;case f.bigMove:this.beginGame(),jo.getNewUser()&&Moyu.sendDataEvent("gameStart0")}}beginGame(t=!1){Bo.common.gameMode==f.classic?t?this.enterClassic():Bo.uiMgr.Show(ph,()=>{this.enterClassic()}):Bo.common.gameMode==f.bigMove&&(this.ui.enterGuide.visible=!1,Bo.uiMgr.Show(nh))}enterClassic(){Bo.uiMgr.Show(zo),Bo.uiMgr.Show(ih,()=>{this.isHide||this.hide(),Bo.common.gameUI.ui.alpha=1,Bo.common.gameUI.startGame(),Bo.uiMgr.Hide($o)})}startGlobal(){Bo.uiMgr.Show(Yo,"敬请期待~")}startWeekly(){Bo.uiMgr.Show(Yo,"敬请期待~")}startPlaceBall(){Bo.uiMgr.Show(eh)}hide(){super.hide(),Bo.common.stopGirlPop(this.ui.talkNode)}onGetUserInfo(t=!1){if(Moyu.isWx){let t=Moyu.getSystemInfo();t&&Moyu.createWXUserBtn(0,0,t.width,t.height,"res/wxuser.png",this.freshUser)}else Moyu.initUser(this,this.freshUser,t);if(!Moyu.hasUserInfo){Moyu.getUserInfo().headIcon="res/ty_touxiang.png"}this.freshUser()}freshUser(){let t=Moyu.getUserInfo();t.isAuth?jo.upRankData():t.headIcon="res/ty_touxiang.png",this.ui.headNode.nameTxt.text=Bo.tools.reviseString(t.nickName,16),Bo.common.createHead(this.ui.headNode.headRoot.headImg,t.headIcon)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=Bo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=Bo.common.randomNum(4,7);Bo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}Bo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}openSecretaryView(){Bo.uiMgr.Show(ch),Moyu.sendDataEvent("secretary")}openShopView(){Bo.uiMgr.Show(uh)}openSignView(){Bo.uiMgr.Show(yh)}openDrawView(){Bo.uiMgr.Show(lh)}openRanking(){Bo.uiMgr.Show(rh),Moyu.sendDataEvent("rankingList")}}function appInit(){Bo.context.init([{url:"fgui/loading_atlas0.png",type:Laya.Loader.IMAGE},{url:"fgui/loading.obj",type:Laya.Loader.BUFFER}],initCallback)}function initCallback(){window.DataMgr=jo,jo.Init(),Moyu.init(function(){let t=new MoyuCfg;if(t.plat=MoyuPlat.tt,t.myId=120,t.myKey="8848a885774230a4",t.version=0,window.hasOwnProperty("gamebox"))t.plat=MoyuPlat.f399,t.version=0;else if(window.hasOwnProperty("ks"))t.plat=MoyuPlat.ks,t.version=0,t.ads.ksVideoId="2300002254_01",t.ads.ksInsertId="2300002254_02";else if(Laya.Browser.onTTMiniGame)t.plat=MoyuPlat.tt,t.version=0,t.ads.ttVideoId="55lg4hiq6cl1i98a01",t.ads.ttInsertId="163l1f09abb0fm5l05",t.ads.ttBannerId="349ld7libg2l5h9a3l";else if(Laya.Browser.onMiniGame)t.plat=MoyuPlat.wx,t.ads.wxBannerId="adunit-fb4acc9e4c4d8c7c",t.ads.wxInsertId="adunit-1c0437c20853677c",t.ads.wxVideoId="adunit-51758e3d8d649e01";else if(Laya.Browser.onQQMiniGame)t.plat=MoyuPlat.qq;else if(Laya.Browser.onQGMiniGame)t.plat=MoyuPlat.op,t.ads.opVideoId="455502",t.ads.opBannerId="455507";else if(Laya.Browser.onVVMiniGame)t.plat=MoyuPlat.vv,t.version=0,t.ads.vvVideoId="405d0513a3964187bfb37aca09da5f45",t.ads.vvInsertId="72b18a69075c410986ff16e43fb2b0f0",t.ads.vvBannerId="fe2d2b92dbc144e086df5150b7d3d3d1";else if(Laya.Browser.onHWMiniGame)t.plat=MoyuPlat.hw;else if(window.mz)t.plat=MoyuPlat.mz;else{let t=window.conchConfig;if(t){var e=t.getOS();"Conch-ios"==e&&(t.plat=MoyuPlat.ios)}}return t}(),this,()=>{jo.isNewDay(),W.initConfig(),Bo.common.curRankID=Moyu.isWx?Bo.common.rankID.wxStar:Bo.common.rankID.normalStar},!0),Bo.soundMgr.init(),Bo.uiMgr.init(),Bo.uiMgr.bindFUI(e.loading),Bo.uiMgr.Show(_o)}function enterGame(){Bo.cfgMgr.init(),Bo.soundMgr.onSetting(jo.userData.sound),Moyu.onSetting(jo.userData.sound,jo.userData.vibration),Bo.uiMgr.Hide(_o),fgui.UIPackage.removePackage(e.loading),Bo.uiMgr.bindFUI(e.game),Bo.uiMgr.Show(xh),jo.getNewUser()&&Moyu.sendDataEvent("logOn",{newPlayerTime:new Date})}xh.uiName="UIMain";new class{constructor(){window.Laya3D?Laya3D.init(t.width,t.height,null,Laya.Handler.create(this,this.initMain)):(Laya.init(t.width,t.height,Laya.WebGL),this.initMain())}initMain(){Laya.Physics&&Laya.Physics.enable(),Laya.DebugPanel&&Laya.DebugPanel.enable(),Laya.stage.scaleMode=t.scaleMode,Laya.stage.screenMode=t.screenMode,Laya.stage.alignV=t.alignV,Laya.stage.alignH=t.alignH,Laya.URL.exportSceneToJson=t.exportSceneToJson,(t.debug||"true"==Laya.Utils.getQueryString("debug"))&&Laya.enableDebugPanel(),t.physicsDebug&&Laya.PhysicsDebugDraw&&Laya.PhysicsDebugDraw.enable(),t.stat&&Laya.Stat.show(),Laya.alertGlobalError(!0),Laya.ResourceVersion.enable("version.json",Laya.Handler.create(this,this.onVersionLoaded),Laya.ResourceVersion.FILENAME_VERSION)}onVersionLoaded(){appInit()}}}();