1(self.webpackChunkmini_game_sea_frontend=self.webpackChunkmini_game_sea_frontend||[]).push([[179],{37290:function(e,n){"use strict";n.Z={classNamePrefix:"mini-game-",LGWURL:"/lotto-thai-h5/b1/lgw",WPSURL:"/wps/relay",gameConfig:{ui:{prefix:"ui"},taixiu:{timeSetting:{BET_NOW_RED_TIME:5,BALANCE_TIME:5,NEXT_ROUND_TIME:10,WAIT_DRAW_TIME:5},symbolSplit:"",numberCount:3,groupPlayId:2675,menuInfos:[{menuPlayId:2676,playInfos:[{playInfoId:5984,betContent:"0",prizeType:"VTX_BS_BIG",key:"big"},{playInfoId:5985,betContent:"1",prizeType:"VTX_BS_SMALL",key:"small"}]}]},taixiuVN:{timeSetting:{BET_NOW_RED_TIME:5,NEXT_ROUND_TIME:10,WAIT_DRAW_TIME:5},symbolSplit:"",numberCount:3,groupPlayId:2675,menuInfos:[{menuPlayId:2676,playInfos:[{playInfoId:5984,betContent:"0",prizeType:"VTX_BS_BIG",key:"big"},{playInfoId:5985,betContent:"1",prizeType:"VTX_BS_SMALL",key:"small"}]}]},xocDia:{timeSetting:{BET_NOW_RED_TIME:5,NEXT_ROUND_TIME:10,WAIT_DRAW_TIME:5},symbolSplit:"",numberCount:3,groupPlayId:2677,menuInfos:[{menuPlayId:2678,playInfos:[{playInfoId:5986,betContent:"0",prizeType:"VXD_BS_BIG",key:"big"},{playInfoId:5987,betContent:"1",prizeType:"VXD_BS_SMALL",key:"small"}]},{menuPlayId:2679,playInfos:[{playInfoId:5988,betContent:"2",prizeType:"VXD_OE_ODD",key:"odd"},{playInfoId:5989,betContent:"3",prizeType:"VXD_OE_EVEN",key:"even"}]},{menuPlayId:2680,playInfos:[{playInfoId:5990,betContent:"1",prizeType:"VXD_4R_1",key:"4R"}]},{menuPlayId:2681,playInfos:[{playInfoId:5991,betContent:"1",prizeType:"VXD_4W_1",key:"4W"}]},{menuPlayId:2682,playInfos:[{playInfoId:5992,betContent:"1",prizeType:"VXD_3W1R_1",key:"3W1R"}]},{menuPlayId:2683,playInfos:[{playInfoId:5993,betContent:"1",prizeType:"VXD_3R1W_1",key:"1W3R"}]}]},bauCua:{timeSetting:{BET_NOW_RED_TIME:5,NEXT_ROUND_TIME:10,WAIT_DRAW_TIME:5},symbolSplit:"",numberCount:3,groupPlayId:2733,menuInfos:[{menuPlayId:2734,playInfos:[{playInfoId:6013,betContent:"4",prizeType:"VBC_DEER",key:"deer"},{playInfoId:6013,betContent:"3",prizeType:"VBC_GOURD",key:"gourd"},{playInfoId:6013,betContent:"6",prizeType:"VBC_CHICKEN",key:"chicken"},{playInfoId:6013,betContent:"1",prizeType:"VBC_FISH",key:"fish"},{playInfoId:6013,betContent:"5",prizeType:"VBC_CRAB",key:"crab"},{playInfoId:6013,betContent:"2",prizeType:"VBC_SHRIMP",key:"shrimp"}]}]},colorGame:{prefix:"colorGame",timeSetting:{BET_NOW_RED_TIME:0,NEXT_ROUND_TIME:5,WAIT_DRAW_TIME:3},symbolSplit:"",numberCount:3,groupPlayId:3058,playInfoIds:[6447,6448,6449],menuInfos:[{menuPlayId:3059,playInfos:[{playInfoId:6447,betContent:"6",prizeType:"CLR_YELLOW",key:"yellow"},{playInfoId:6447,betContent:"4",prizeType:"CLR_WHITE",key:"white"},{playInfoId:6447,betContent:"3",prizeType:"CLR_PINK",key:"pink"},{playInfoId:6447,betContent:"2",prizeType:"CLR_BLUE",key:"blue"},{playInfoId:6447,betContent:"1",prizeType:"CLR_RED",key:"red"},{playInfoId:6447,betContent:"5",prizeType:"CLR_GREEN",key:"green"}]}]},baccarat:{prefix:"baccarat",timeSetting:{BET_NOW_RED_TIME:0,NEXT_ROUND_TIME:10,WAIT_DRAW_TIME:5},symbolSplit:"",numberCount:3,groupPlayId:2889,menuInfos:[{menuPlayId:2890,playInfos:[{playInfoId:6106,betContent:"0",prizeType:"BCR_BANKER_PLAYER_TIE_0",key:"banker"},{playInfoId:6108,betContent:"2",prizeType:"BCR_BANKER_PLAYER_TIE_2",key:"player"},{playInfoId:6109,betContent:"3",prizeType:"BCR_BANKER_PLAYER_TIE_3",key:"tie"}]},{menuPlayId:2891,playInfos:[{playInfoId:6110,betContent:"1",prizeType:"BCR_BANKER_PAIR_1",key:"bankerPair"}]},{menuPlayId:2892,playInfos:[{playInfoId:6111,betContent:"1",prizeType:"BCR_PLAYER_PAIR_1",key:"playerPair"}]}]},bacbo:{prefix:"bacbo",timeSetting:{BET_NOW_RED_TIME:0,NEXT_ROUND_TIME:5,WAIT_DRAW_TIME:3},symbolSplit:"",numberCount:3,groupPlayId:3098,menuInfos:[{menuPlayId:3099,playInfos:[{playInfoId:6515,betContent:"1",prizeType:"P_BCB_PLAYER",key:"player"},{playInfoId:6516,betContent:"2",prizeType:"P_BCB_TIE",key:"tie"},{playInfoId:6514,betContent:"0",prizeType:"P_BCB_BANKER",key:"banker"}]}]}}}},41023:function(e,n,t){"use strict";var a=t(74165),i=t(15861),r=t(47313),o=t(21739),c=t(63709),s=t(48734),u=t(93433),l=t(4942),d=t(1413),m=t(23885),f=t(10412),p="èµ¢",g="åº",h="é²",v="å",b="åºå¯¹",x="é²å¯¹",y="确认",_="åæ¶",w="å
ä½£",T="éå
ä½£",k={translation:{components:{calculator:{hidden:"éè",clear:"æ¸
空",confirm:y,cancel:_},BallLists:{small:"å°",big:"大",odd:"å",even:"å",dragon:"é¾",tiger:"è"}
1,Alert:{systemNotice:"ç³»ç»æç¤º",confirm:y,cancel:_}},containers:{errorPanel:{loginTip:"å¸å·å·²æ³¨éï¼è¯·éæ°ç»å
¥",close:"å
³é",CONFIRM:y,SYSTEM_MESSAGE:"ç³»ç»ä¿¡æ¯",WARNING:"è¦å"},GameName:{taixiu:"大å°"},GameBetting:{tai:"大",xiu:"å°"},GamesPanel:{betting:"ææ³¨ä¸ ...",bettingSuccess:"ææ³¨æå : {{totalBettingAmount}}",win:"ä¸å¥ {{amount}}",odds:"èµç",totalBet:"ä¸å
±ææ³¨",player:"ç©å®¶",BALANCE_NOT_ENOUGH:"ä½é¢ä¸è¶³, 请å
å¼",BALANCE_NOT_ENOUGH_ERROR:"ä½é¢ä¸è¶³, 请å
å¼",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"游æè¿è¡ä¸ï¼è¯·åæ¢æ¸¸æååè¿è¡æ¥çã",TOKEN_TIME_OUT:"ä½ å·²ç¶é置太ä¹
äºï¼è¯·éæ°ç»å
¥",BET_LIMIT:"[{{playName}}] ææ³¨éé¢ï¼ {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"ææ³¨éé¢ï¼ {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"ææ³¨éé¢å·²è¶
è¿ {{amount}} å
å
许çä¸é",GAME_PARAM_ERROR:"ææ³¨éé¢å·²è¶
è¿ {{amount}} å
å
许çä¸é",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"æ¨çåæ°è¶
è¿å
许çä¸é",PLAYID_CLOSED:"ç©æ³ç»´æ¤ä¸ï¼è¯·ç¨ååè¯!",PARAMETER_REQUIRED:"ææ³¨åæ°ä¸ç¬¦åè§å®ï¼ææ³¨å¤±è´¥ï¼",IS_LOCK_TIME:"ææ³¨å¤±è´¥ï¼æ¤å½©ç§å·²è¿å
¥é宿",INVALID_TOKEN:"è´¦å·ç»å
¥å·²å¤±æï¼è¯·éæ°ç»å
¥",SYSTEM_ERROR:"ææ³¨å¤±è´¥ï¼ç³»ç»é误",IN_BALANCE:"平衡ä¸",BET_LOCKED:"䏿³¨ç»æ",PLEASE_BET_NOW:"请å¼å§ä¸æ³¨",AUTO_BET_ON:"èªå¨ææ³¨å·²å¯ç¨",AUTO_BET_OFF:"èªå¨ææ³¨å·²åæ¢",TRAIL_NOT_SUPPORT:"没ææé",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"å°æ¨çå¥éææ³¨äºç¹å®æ¸¸æãæ¨å°æªè¾¾å°æç³é¢å¥éçææ³¨è¦æ±ã",SYSTEM_TIME_OUT:"æå¨å°åºç½éå»¶è¿ï¼è¯·ç¨ååè¯æä¸å®¢æèç³»ï¼è°¢è°¢ï¼",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"游æåæ¢éå®, 请ç¨ååè¯",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"åä¸å±åªå¯æ¥åä¸è¾¹ææ³¨ã",betting:"ææ³¨",min_bet:"æä½ææ³¨",max_bet:"æé«ææ³¨",big:"大",small:"å°",cancel:_,all_in:"æ¢å",repeat:"éå¤",bet_now:"ç«å³ææ³¨",balance:"ä½é¢"},Baccarat:{no:"å±å·:",limit:"é红",banker:g,player:h,tie:v,bankerPair:b,playerPair:x,confirm:y,cancel:_,"comm switch":"忢å
ä½£","no commission":w,commission:T,"text-1":"åºä»¥ä»»ä½ç¹æ°åèï¼èµçé½ä¸º1:{{bonus}}ï¼å¼åæ¶é忬éã","text-2":"åºä»¥6ç¹ä»¥å¤çç¹æ°åèï¼èµç为1:{{bonus}}ï¼ä»¥6ç¹åèï¼èµç为1:{{bonusHalf}}; å¼åæ¶é忬éã"},Baucua:{game_name:"é±¼è¾è¹"},Mines:{bet:"ææ³¨",title:"å°é·",start:"å¼å§",cancel:"åæ¶"},ChickenRoad:{start:"å¼å§",cancel:"åæ¶"}},GamesIntro:{description:"æè¿°",rules:"ç©æ³ä»ç»",title:"æè¿°",odds:"èµç",betBlock:"䏿³¨å",MIN_BET:"åæ³¨ææ³¨æä½éé¢",MAX_BET:"åæ³¨ææ³¨æé«éé¢",MAX_BET_PER_DRAW:"åæææ³¨æé«éé¢",GAME_MAX_BET_PER_BET:"游æåç¬ææ³¨æå¤§éé¢",GAME_MAX_BET_PER_DRAW:"游æåæææ³¨æå¤§éé¢",MAX_BONUS_PER_BET:"åç¬æé«ä¸å¥éé¢(嫿¬é)",MAX_BONUS_PER_DRAW:"åææé«ä¸å¥éé¢(嫿¬é)",MAX_PROFIT_PER_DRAW:"åææé«å©æ¶¦éé¢(ä¸å«æ¬é)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"ä¸å¥éé¢è¶
åºåç¬ï¼åæï¼å¥éä¸éï¼è¶
åºé¨ä»½ç³»ç»å°èªå¨æ£é¤",Taixiu:{key1:"游æè¿è¡ä½¿ç¨3个骰åï¼æ»åç¹æ° 11~18为ã大ãã3~10 为ãå°ãã",key2:"æ¨åªéè¦é¢æµç»æä¸ºã大ãæãå°ãï¼å¹¶å¯¹ä»»ä½ä¸æ¹è¿è¡ä¸æ³¨ ( åªè½å¤éæ©å
¶ä¸ä¸æ¹ä¸æ³¨ )ã",key3:"è¾å
¥æ³è¦ä¸æ³¨çéé¢åæåæï¼å³å®æé¢æµä¸æ³¨ã",key4:"颿µä¸æ³¨æ¶é´æªæ¢åï¼å¯ä»¥è¿è¡ä»»æéé¢å¤æ¬¡ä¸æ³¨ã",key5:"颿µä¸æ³¨æ¶é´æªæ¢æ¶ï¼è¥ã大ãä¸ãå°ãä¹é´ææ³¨æ»é¢æè½å·®ï¼ä¼å°å¤åºçå·®é¢éç»ç©å®¶(å
䏿³¨è
ä¼å
ä¿ç)ã",key6:"å¦é任使
éå¯¼è´æ¸¸æç»ææ æ³è¢«å¤å®ï¼æ¤å±æ¸¸æä¸æç«ã"},TaixiuVN:{descriptionText:"è¶å¼å¤§å°ä½¿ç¨3个ä¸é¢æå·ç 1è³6ç骰åè¿è¡æ¸¸æãç©å®¶å¯¹3个骰åæåºæ¥çç»æè¿è¡çæµï¼å¨ææ³¨çé¢éæ©æ¨å欢çå·ç ï¼ç¥æ¨èµ¢å¾å¤§å¥ï¼",big:"- 大: ä¸ä¸ªå¼å¥å·ç æ»åå¼11~17 为ã大ããèµç{{bonusRatio}}",small:"- å°: ä¸ä¸ªå¼å¥å·ç æ»åå¼4~10 为ãå°ããèµç{{bonusRatio}}",other:"- è¥ä¸ä¸ªå·ç ç¸åãåä¸ç®ä¸å¥ï¼æ£é¤ææ³¨æ¬éã"},Xocdia:{descriptionText:"è²ç¢å¨è¶åæ¯ä¸æ¬¾é叏忬¢è¿çä¼ ç»æ¸¸æãè¿ä¸ªæ¸¸ææ¯ç¨ä¸¤ç§ä¸åé¢è²ç4æç¡¬å¸è¿è¡çãç©å®¶å¯å¨ææ³¨çé¢éæ©æ¨å欢çç©æ³ä¸åæç¡¬å¸çç»æç¸å¹é
ï¼ç¥æ¨èµ¢å¾å¤§
1å¥ï¼",even:"å",odd:"å",big:"大",small:"å°","even-des":"å
¨çº¢ï¼å
¨ç½ï¼2ç½2红","odd-des":"3红1ç½ï¼3ç½1红","big-des":"å
¨çº¢ï¼3红1ç½","small-des":"å
¨ç½ï¼3ç½1红","all-color":"ææç¡¬å¸æ¯ç½è²æçº¢è²","color3-1":"ææ³¨ç¡¬å¸ä¸º3ç½+ 1红æ3红+ 1ç½çç»æ",lose:"ä¸ä¸å¥"},Baucua:{description:"æè¿°","game rule":"游æè§å",descriptionText:"é±¼è¾è¹æ¯ä¸æ¬¾æµè¡çéª°åæ¸¸æï¼ä½¿ç¨ææ è®°çä¸ä¸ªéª°åãæ ¹æ®ä¸åå°åºï¼éª°åçæ è®°é¢å¯ä»¥ææä¸åï¼é±¼ãè¾åèè¹æ¯ä¸ä¸ªä¸»è¦æ è®°é¢ã","win multiplier":"èµ¢çåæ°",symbol:"æ è®°",bet:"ææ³¨","outcome example":"ç»æä¾å",payout:"èµä»",win:"èµ¢",lose:"è¾"},ColorGame:{description:"使ç¨3é¢6ç§é¢è²ç»æç骰åï¼å¯ä»¥åæ¶å¨å¤ä¸ªä¸æ³¨åºè¿è¡ææ³¨ï¼å¼å¥æ¶ä¼æ·3é¢éª°åï¼éª°åæä¸çé£ä¸é¢ä¸ºä¸å¥é¢è²ã\n \nå¨ææ³¨ä»é¢éæ©ä½ çæµçé¢è²ï¼ç¥æ¨èµ¢å¾å¤§å¥!",amount:"æ°é",oneDice:"å骰",twoDice:"å骰",threeDice:"ä¸éª°"},Baccarat:{rule_description:"éç¨8å¯çï¼å»å¤§å°çï¼ï¼å
±è®¡416å¼ ï¼âé²å®¶ââåºå®¶â åæ´¾ä¸¤å¼ çï¼å
âé²â å âåºâï¼å¼ç顺åºäº¦åï¼ï¼å¦é¦è½®æªåèè´ï¼åæ âçä¾âåçï¼æå¤åå1å¼ çå®è¾èµ¢ï¼ä»»ä½ä¸å®¶æ¿å°8ç¹æ9ç¹ï¼çå±ä¼ä½¿ç¨å4å¼ çè¿è¡ç»ç®ï¼ä¸ååçï¼æç»ä»¥é²å®¶ååºå®¶çåå¼ä¸ªä½æ¯å¤§å°ã",play:"ç©æ³",bonus:"èµç",limit:"é红",classic:"ç»å
¸",6106:"".concat(g,"(").concat(w,")"),6107:"".concat(g,"(").concat(T,")"),6108:h,6109:v,6110:b,6111:x},BacBo:{description:"åºå®¶ä¸é²å®¶å使ç¨2é¢éª°åï¼ä¸å¯ä»¥åæ¶ä¸æ³¨åº/é²ãå¼å¥åºå®¶/é²å®¶å°2é¢éª°åç¹æ°ç¸å ï¼æ°åè¾å¤§ç䏿¹è·èãç¹æ°ç¸åæ¶ä¸ºåå±ï¼ä¾æ®ç¹æ°æä¸åçèµçãå¨ææ³¨ä»é¢éæ©ä½ çæµçç»æï¼ç¥æ¨èµ¢å¾å¤§å¥!",rulesText:"ç¹æ°ç¸åæ¶ä¸ºåå±ï¼ä¾æ®ç¹æ°æä¸åçèµçã",banker:g,player:h,tie:v},Mines:{description:"è¶
é«èµçï¼å¯éé£é©çå°é·æ¸¸æï¼è¯·å°å¿ç¸è¯ï¼\n\nç©å®¶ä¸æ³¨åï¼æ²å¼ä»»ä¸ç³å¤´ï¼è¥ä¸ºæ°´æ¶å¯ç´¯ç§¯èµ¢åï¼å¯ä»¥éæ©ç»§ç»æ²å¼ç³å¤´ææ¯ååºèµ¢åï¼è¥ä¸ºç¸è¯å失廿æç´¯ç§¯èµ¢åã\n\n妿å¨ä¸æ³¨åç½è·¯æçº¿ï¼ç³»ç»å°èªå¨éæ©ãå
æ¢ãæ¨çèµ¢åå¹¶ç»ææ¸¸æã"},ChickenRoad:{description:"1. éæ©æ¨ç游æä¸æ³¨éé¢\r\n\r\n2. ç¹å»å¼å§\r\n\r\n3. ç»æå¯è½ä¸ºæåæå¤±è´¥ï¼å¦ææåï¼å¯ä»¥éæ©ç»§ç»åè¿ï¼ææ¯å
æ",easy:"ç®å",medium:"ä¸ç",hard:"é«ç",ace:"å°é¾"},Keno:{description:"ä¸ä¸ªç®åçå®¾ææ¸¸æï¼å
±æ40个æ°åãæ¯å±å¼å¥10个æ°åãç©å®¶å¯éæ©æå¤10个æ°åè¿è¡ä¸æ³¨ï¼æåçä¸çæ°åè¶å¤ï¼èµçè¶é«ãéæ©æ¨çæµçç»æï¼ç¥æ¨èµ¢å¾å¤§å¥ï¼",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"ææ³¨éæ©çº¢æ¹èµ¢/èæ¹èµ¢/åå±"}},GamesDrawHistory:{title:"è¿æå¼å¥",history:"å¼å¥åå²",numero:"å¼å¥ææ°",results:"å¼å¥å·ç ",Baccarat:{ratio_description:"è¿50åºæ¯èµä¸ï¼Banker, PlayeråTieè·èçæ¯ä¾",banker:g,player:h,tie:v,series:"æ",win:p}},GamesBetHistory:{today:"ä»å¤©",yesterday:"æ¨å¤©","no data":"æ¥æ èµæ",isError:"æ¥è¯¢åºé, 请åè¯ä¸æ¬¡","personal cancel order":"个人æ¤å","no draw":"æªå¼å¥",isWon:"å·²ä¸å¥","not winning":"æªä¸å¥","empty draw":"空å¼",tie:"åå±",no_series:"第 {{number}} æ","game subTotal":"⼩计","game win":"ä¸å¥",betAmount:"䏿³¨éé¢",Taixiu:{title:"ææ³¨çºªå½",game:"游æ",play:"ç©æ³",odds:"èµç",valid_bet:"注é",status:"ç¶æ",no:"å±å·:",no_data:"æ èµæ",win:p,lose:"è¾"},ColorGame:{betAmount:"䏿³¨éé¢",winAmount:"ä¸å¥éé¢",win:p,lose:"è¾"},Baccarat:{win:p,lose:"è¾",bet:"æ¼",banker:g,player:h,tie:v,bankerPair:b,playerPair:x,"no comm":w,comm:T},BacBo:{banker:g,player:h,tie:v}},RoadChart:{banker:"åº",player:"é²",tie:"å"}},dialog:{TOKEN_EXPIRED:"ç»å
¥å·²è¿æ"},others:{cancelOrder:{success:"æ¤éæå",fail:"æ¤é失败",notDrawable:"å·²è¿æè®¢åï¼
1æ æ³æ¤é",notAvailable:"æ¤é失败ï¼é宿ä¸å
许æ¤é",notFound:"æ¤é失败ï¼è®¢åä¸åå¨"}},hook:{}}},I="è´",C="è",E="é",j="å",P="èå°",S="éå°",N="確èª",B="åæ¶",A="å
å",R="éå
å",O={translation:{components:{calculator:{hidden:"é±è",clear:"æ¸
空",confirm:N,cancel:B},BallLists:{small:"å°",big:"大",odd:"å®",even:"é",dragon:"é¾",tiger:"è"},Alert:{systemNotice:"系統æç¤º",confirm:N,cancel:B}},containers:{errorPanel:{loginTip:"帳èå·²ç»åºï¼è«éæ°ç»å
¥",close:"éé"},GamesPanel:{betting:"ææ³¨ä¸ ...",bettingSuccess:"ææ³¨æå : {{totalBettingAmount}}",win:"ä¸ç {{amount}}",BALANCE_NOT_ENOUGH:"é¤é¡ä¸è¶³, è«å²å¼",BALANCE_NOT_ENOUGH_ERROR:"é¤é¡ä¸è¶³, è«å²å¼",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"éæ²é²è¡ä¸ï¼è«åæ¢éæ²å¾åé²è¡æ¥çã",TOKEN_TIME_OUT:"ä½ å·²ç¶é置太ä¹
äºï¼è«éæ°ç»é",BET_LIMIT:"[{{playName}}] ææ³¨éé¡ï¼ {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"ææ³¨éé¡ï¼ {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"ææ³¨éé¡å·²è¶
é {{amount}} å
å
許çä¸é",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"æ¨ç忏è¶
éå
許çä¸é",PLAYID_CLOSED:"ç©æ³ç¶è·ä¸ï¼è«ç¨å¾å試!",PARAMETER_REQUIRED:"ææ³¨åæ¸ä¸ç¬¦åè¦å®ï¼ææ³¨å¤±æï¼ ",IS_LOCK_TIME:"ææ³¨å¤±æï¼æ¤å½©ç¨®å·²é²å
¥é宿",INVALID_TOKEN:"帳èç»é已失æï¼è«éæ°ç»é",SYSTEM_ERROR:"ææ³¨å¤±æï¼ç³»çµ±é¯èª¤",IN_BALANCE:"平衡ä¸",BET_LOCKED:"䏿³¨çµæ",PLEASE_BET_NOW:"è«éå§ä¸æ³¨",AUTO_BET_ON:"èªåææ³¨å·²åç¨",AUTO_BET_OFF:"èªåææ³¨å·²åæ¢",TRAIL_NOT_SUPPORT:"æ²ææ¬é",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"åä¸å±åªæ¥å䏿¹ææ³¨ã ",betting:"ææ³¨",min_bet:"æä½ææ³¨",max_bet:"æé«ææ³¨",big:"大",small:"å°",cancel:B,all_in:"æ¢å",repeat:"éè¤",bet_now:"ç«å³ææ³¨",balance:"é¤é¡"},Baccarat:{no:"å±è:",limit:"éç´
",banker:C,player:E,tie:j,bankerPair:P,playerPair:S,confirm:N,cancel:B,"comm switch":"åæå
å","no commission":A,commission:R,"text-1":"è以任ä½é»æ¸ååï¼è³ çé½çº1:{{bonus}}ï¼éåæé忬éã ","text-2":"è以6é»ä»¥å¤ç黿¸ååï¼è³ ççº1:{{bonus}}ï¼ä»¥6é»ååï¼è³ ççº1:{{bonusHalf}}; éåæé忬éã "},Baucua:{game_name:"éè¦è¹"},Mines:{bet:"ææ³¨",title:"å°é·",start:"éå§",cancel:"åæ¶"}},GamesIntro:{description:"æè¿°",rules:"ç©æ³ä»ç´¹",title:"æè¿°",odds:"è³ ç",betBlock:"䏿³¨å",MIN_BET:"宿³¨ææ³¨æä½éé¡",MAX_BET:"宿³¨ææ³¨æé«éé¡",MAX_BET_PER_DRAW:"å®æææ³¨æé«éé¡",GAME_MAX_BET_PER_BET:"éæ²å®çææ³¨æå¤§éé¡",GAME_MAX_BET_PER_DRAW:"éæ²å®æææ³¨æå¤§éé¡",MAX_BONUS_PER_BET:"å®çæé«ä¸çéé¡(嫿¬é)",MAX_BONUS_PER_DRAW:"宿æé«ä¸çéé¡(嫿¬é)",MAX_PROFIT_PER_DRAW:"宿æé«å©æ½¤éé¡(ä¸å«æ¬é)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"ä¸çéé¡è¶
åºå®çï¼å®æï¼çéä¸éï¼è¶
åºé¨ä»½ç³»çµ±å°èªåæ£é¤",Taixiu:{key1:"éæ²é²è¡ä½¿ç¨3å骰åï¼ç¸½å黿¸ 11~18çºã大ãã3~10 çºãå°ãã",key2:"æ¨åªéè¦é æ¸¬çµæçºã大ãæãå°ãï¼ä¸¦å°ä»»ä½ä¸æ¹é²è¡ä¸æ³¨ ( åªè½å¤ 鏿å
¶ä¸ä¸æ¹ä¸æ³¨ )ã",key3:"輸å
¥æ³è¦ä¸æ³¨çéé¡å¾æåæï¼å³å®æé æ¸¬ä¸æ³¨ã",key4:"é æ¸¬ä¸æ³¨æéæªæ¢åï¼å¯ä»¥ä»»æéé¡å¤æ¬¡ä¸æ³¨ã",key5:"é æ¸¬ä¸æ³¨æéæªæ¢æï¼è¥ã大ãèãå°ãä¹éææ³¨ç¸½é¡æè½å·®ï¼æå°å¤åºçå·®é¡é給ç©å®¶(å
䏿³¨è
åªå
ä¿ç)ã",key6:"å¦é任使
éå°è´éæ²çµæç¡æ³è¢«å¤å®ï¼æ¤å±éæ²ä¸æç«ã"},Xocdia:{descriptionText:"è²ç¢å¨è¶åæ¯ä¸æ¬¾é叏忡è¿çå³çµ±éæ²ãéåéæ²æ¯ç¨å
©ç¨®ä¸åé¡è²ç4æç¡¬å¹£é²è¡çãç©å®¶å¯å¨ææ³¨ä»é¢é¸ææ¨åæ¡çç©æ³èåæç¡¬å¹£ççµæç¸å¹é
ï¼ç¥æ¨è´å¾å¤§çï¼ ",even:"é",odd:"å®",big:"大",small:"å°","even-des":"å
¨ç´
ï¼å
¨ç½ï¼2ç½2ç´
","odd-des":"3ç´
1ç½ï¼3ç½1ç´
","big-des":"å
¨ç´
ï¼3ç´
1ç½","small-des":"å
¨ç½ï¼3ç½1ç´
","all-color":"ææç¡¬å¹£æ¯ç½è²æç´
è²","color3-1":"ææ³¨ç¡¬å¹£çº3ç½+ 1ç´
æ3ç´
+ 1ç½ççµæ",lose:"ä¸ä¸ç"},Baucua:{description:"æè¿°","game rule":"éæ²è¦å",descriptionText:"éè¦è¹æ¯ä¸æ¬¾æµè¡ç骰åéæ²ï¼ä½¿ç¨ææ¨è¨çä¸åé
1ª°åãæ ¹æä¸åå°åï¼éª°åçæ¨è¨é¢å¯ä»¥ææä¸åï¼éãè¦åèè¹æ¯ä¸åä¸»è¦æ¨è¨é¢ã ","win multiplier":"è´ç忏",symbol:"æ¨è¨",bet:"ææ³¨","outcome example":"çµæç¯ä¾",payout:"è³ å",win:"è´",lose:"輸"},ColorGame:{description:"使ç¨3é¡6種é¡è²çµæç骰åï¼å¯ä»¥åæå¨å¤å䏿³¨åé²è¡ææ³¨ï¼éçæææ²3é¡éª°åï¼éª°åæä¸çé£ä¸é¢çºä¸çé¡è²ã \n \nå¨ææ³¨çé¢é¸æä½ çæ¸¬çé¡è²ï¼ç¥æ¨è´å¾å¤§ç!",amount:"æ¸é",oneDice:"å®éª°",twoDice:"é骰",threeDice:"ä¸éª°"},Baccarat:{rule_description:"æ¡ç¨8å¯çï¼å»å¤§å°çï¼ï¼å
±è¨416å¼µï¼ãéå®¶ããèå®¶ã åæ´¾å
©å¼µçï¼å
ãéã å¾ ãèãï¼éçé åºäº¦åï¼ï¼å¦é¦è¼ªæªååè² ï¼åæãçä¾ãåçï¼æå¤åç¼1å¼µçå®è¼¸è´ï¼ä»»ä½ä¸å®¶æ¿å°8黿9é»ï¼çå±æä½¿ç¨å4å¼µçé²è¡çµç®ï¼ä¸ååçï¼æçµä»¥éå®¶åèå®¶çåå¼å使¯å¤§å°ã ",play:"ç©æ³",bonus:"è³ ç",limit:"éç´
",classic:"ç¶å
¸",6106:"".concat(C,"(").concat(A,")"),6107:"".concat(C,"(").concat(R,")"),6108:E,6109:j,6110:P,6111:S},BacBo:{description:"èå®¶èéå®¶å使ç¨2é¡éª°åï¼ä¸å¯ä»¥åæä¸æ³¨è/éãéçèå®¶/éå®¶å°2é¡éª°å黿¸ç¸å ï¼æ¸åè¼å¤§ç䏿¹ç²åã黿¸ç¸åæçºåå±ï¼ä¾æé»æ¸æä¸åçè³ çãå¨ææ³¨çé¢é¸æä½ çæ¸¬ççµæï¼ç¥æ¨è´å¾å¤§ç!",rulesText:"黿¸ç¸åæçºåå±ï¼ä¾æé»æ¸æä¸åçè³ çã ",banker:C,player:E,tie:j},Mines:{description:"è¶
é«è³ çï¼å¯é¸é¢¨éªçå°é·éæ²ï¼è«å°å¿ç¸è¥ï¼ \n\nç©å®¶ä¸æ³¨å¾ï¼æ²éä»»ä¸ç³é ï¼è¥çºæ°´æ¶å¯ç´¯ç©è´åï¼å¯ä»¥é¸æç¹¼çºæ²éç³é ææ¯ååºè´åï¼è¥çºç¸è¥å失廿æç´¯ç©è´åã \n\n妿å¨ä¸æ³¨å¾ç¶²è·¯æ·ç·ï¼ç³»çµ±å°èªå鏿ãå
æãæ¨çè´åä¸¦çµæéæ²ã "},RPS:{description:"ææ³¨é¸æç´
æ¹è´/èæ¹è´/åå±"}},GamesDrawHistory:{title:"è¿æéç",history:"éçæ·å²",numero:"éçææ¸",results:"éçè碼",Baccarat:{ratio_description:"è¿50å ´æ¯è³½ä¸ï¼Banker, PlayeråTieç²åçæ¯ä¾",banker:C,player:E,tie:j,series:"ææ",win:I}},GamesBetHistory:{today:"ä»å¤©",yesterday:"æ¨å¤©","no data":"æ¥ç¡è³æ",isError:"æ¥è©¢åºé¯, è«åè©¦ä¸æ¬¡","personal cancel order":"å人æ¤å®","no draw":"æªéç",isWon:"å·²ä¸ç","not winning":"æªä¸ç","empty draw":"空é",tie:"åå±",no_series:"第 {{number}} æ","game subTotal":"⼩è¨","game win":"ä¸ç",betAmount:"䏿³¨éé¡",Taixiu:{title:"ææ³¨ç´é",game:"éæ²",play:"ç©æ³",odds:"è³ ç",valid_bet:"注é",status:"çæ
",no:"å±è:",no_data:"ç¡è³æ",win:I,lose:"輸"},ColorGame:{betAmount:"䏿³¨éé¡",winAmount:"ä¸çéé¡",win:I,lose:"輸"},Baccarat:{win:I,lose:"輸",bet:"æ¼",banker:C,player:E,tie:j,bankerPair:P,playerPair:S,"no comm":A,comm:R},BacBo:{banker:C,player:E,tie:j}},RoadChart:{banker:"è",player:"é",tie:"å"}},dialog:{TOKEN_EXPIRED:"ç»éå·²éæ"},others:{cancelOrder:{success:"æ¤é·æå",fail:"æ¤é·å¤±æ",notDrawable:"å·²éæè¨å®ï¼ç¡æ³æ¤é·",notAvailable:"æ¤é·å¤±æï¼é宿ä¸å
許æ¤é·",notFound:"æ¤é·å¤±æï¼è¨å®ä¸åå¨"}},hook:{}}},M="Win",Z="Lose",D="Banker",L="Player",G="Tie",W="Banker Pair",U="Player Pair",q="Limits",z="Confirm",F="Cancel",V="No charge",H="charge",Y={translation:{components:{calculator:{hidden:"Close",clear:"Clear",confirm:z,cancel:F},BallLists:{small:"S",big:"B",odd:"O",even:"E",dragon:"Dragon",tiger:"Tiger"},Alert:{systemNotice:"System Notification",confirm:z,cancel:F}},containers:{errorPanel:{loginTip:"Your Login has expired, please login again",close:"Close",CONFIRM:z,SYSTEM_MESSAGE:"System Message",WARNING:"Warning"},GameName:{taixiu:"BigSmall"},GameBetting:{tai:"Big",xiu:"Small"},GamesPanel:{betting:"Betting...",bettingSuccess:"Bet Success: {{totalBettingAmount}}",win:"Win {{amount}}",odds:"Odds",totalBet:"Total bet",player:"Player",BALANCE_NOT_ENOUGH:"Your balance is insufficient, please top up first",BALANCE_NOT_ENOUGH_ERROR:"Your balance is insufficient, please top up first",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"The game is in progress. Please stop the game before viewing.",TOKEN_TIME_OUT:"Your session has expired, please log in again",BET_LIMIT:"[{{playName}}] Stake Limit: {{rangeStr}}}",BET_LIMIT_NO_PLAYNAME:"Stake Limit: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"Bet Amount is over limit > {{amount}}",GAME_PARAM_ERROR:"Bet Amount is over limit > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"Multiple bets exceeded the maximum limit.",PLAYID_CLOSED:"Game is under maintenance, please try again.",PARAMETER_REQUIRED:"The betting failed, parameters do not meet the requirements",IS_LOCK_TIME:"Bet Locked, No More Bets.",INVALID_TOKEN:"Your Login has expired, please login again",SYSTEM_ERROR:"SYSTEM ERROR",IN_BALANCE:"In Balance",BET_LOCKED:"BET LOCKED",PLEASE_BET_NOW:"PLEASE BET NOW",AUTO_BET_ON:"Auto-betting enabled",AUTO_BET_OFF:"Auto-betting disabled",TRAIL_NOT_SUPPORT:"No permission",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"Wager your bonus on designated games. You have not yet met the wagering requirement for the claimed bonus.",SYSTEM_TIME_OUT:"The location you are trying to access the website from, is currently restricted.",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"Game is temporarily unavailable, please try again later.",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"Can't bet on different areas",betting:"BETTING",min_bet:"Min. Bet",max_bet:"Max. Bet",big:"Big",small:"Small",cancel:F,all_in:"All in",repeat:"Repeat",bet_now:"Bet Now",balance:"Balance"},Baccarat:{no:"No.",limit:q,banker:D,player:L,tie:G,bankerPair:W,playerPair:U,confirm:z,cancel:F,"comm switch":"Switch commission free","no commission":"No charge",commission:"charge","text-1":"If the dealer wins by any point, the odds are 1:{{bonus}}; the principal will be refunded when a tie is made.","text-2":"If the banker wins with points other than 6 points, the odds are 1:{{bonus}}; if the banker wins with 6 points, the odds are 1:{{bonusHalf}}; the principal will be refunded when a draw is made."},Baucua:{game_name:"Fish Prawn Crab"},Mines:{bet:"Bet",title:"Mines",start:"Start",cancel:"Cancel"},ChickenRoad:{start:"START",cancel:"CANCEL"}},GamesIntro:{description:"Description",rules:"Rules",title:"Description",odds:"Odds",betBlock:"Betting Area",MIN_BET:"Min. Bet",MAX_BET:"Max. Bet",MAX_BET_PER_DRAW:"Max Bet Per Draw",GAME_MAX_BET_PER_BET:"Game Max Bet Per Bet",GAME_MAX_BET_PER_DRAW:"Game Max Bet Per Draw",MAX_BONUS_PER_BET:"Max Bonus per Bet(Include Principle)",MAX_BONUS_PER_DRAW:"Max Bonus per Draw(Include Principle)",MAX_PROFIT_PER_DRAW:"Max Payout Per Profit (Exclude Principle)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"Bonus exceeds the maximum bonus limit per bet (per draw). System will automatically deduct the bonus if it exceeds the maximum limit",Taixiu:{key1:"The game is played with 3 dice, for the sum total of points 11~18 is [Big], 3~10 is [Small].",ke
1y2:"You only need to predict the result as [Big] or [Small] and bet on either side (you can only choose one side to bet).",key3:"Enter the amount of money you want to bet and then click agree to complete the prediction.",key4:"You can place multiple bets of any amount before the betting time expires.",key5:"If there is a difference in the total amount of bet between [Big] and [Small] at the end of the betting time, the difference will be returned to the player (the first one to place a bet will have priority).",key6:"In the event of any malfunction that causes the outcome of the game to be undecided, the game round will be invalid."},TaixiuVN:{descriptionText:"Tai Xiu is played with 3 dice of 6 numbers. Predict the outcome and choose the number to bet on them. May your lucky numbers win!",big:"- Big: The total score will be from 11 to 17 (inclusive) with the exception of a triple. Win multiplier is {{bonusRatio}}",small:"- Small: The total score will be from 4 to 10 (inclusive) with the exception of a triple. Win multiplier is {{bonusRatio}}",other:"- If the three dice are the same, no win and wonât refund the stake."},Xocdia:{descriptionText:"Xoc Dia is popular traditional game that widely popular in Vietnam. The game is played with 4 coins that have two different colors. To win, players need to place bets on a series of bet types that will match the result of the four coins.",even:"Even",odd:"Odd",big:"Big",small:"Small","even-des":"All Red, All White, 2 White 2 Red","odd-des":"3 Red 1 White, 3 White 1 Red","big-des":"All Red, 3 Red 1 White","small-des":"All White, 3 White 1 Red","all-color":"All Coins are White or Red","color3-1":"Bet on the result where Coins is 3 White + 1 Red or 3 Red + 1 White result",lose:"Lose"},Baucua:{description:"Description","game rule":"Game Rule",descriptionText:"Fish Prawn Crab is a popular dice game that uses three dice with symbols on the faces. Depending on the region, the symbols on the faces can vary, with three main faces on the symbol being Fish, Prawn, and Crab.","win multiplier":"Win multiplier",symbol
1:"Symbol",bet:"Bet","outcome example":"Outcome example",payout:"Payout",win:"Win",lose:"Lose"},ColorGame:{description:"Using three dice with six different colors, you can place bets on multiple betting areas simultaneously. \n When the dice are rolled during the draw, the winning color is determined by the face of the dice that is facing up.\n Choose the color you predict on the betting areas, and good luck to you in winning the big prize!",amount:"Amount",oneDice:"ONE DICE",twoDice:"TWO DICE",threeDice:"THREE DICE"},Baccarat:{rule_description:'Using 8 decks of cards (excluding jokers), totaling 416 cards; each player, "Player" and "Banker," is dealt two cards each, first "Player" and then "Banker" (the order of revealing cards is also the same). If there is no clear winner in the first round, additional cards will be drawn according to the "card rules," with each side receiving up to 1 additional card to determine the outcome. If either side reaches 8 or 9 points, the outcome will be determined using the first 4 cards dealt. No additional cards will be drawn. The winner is determined by comparing the last digit of the sum of the points between the Player and the Banker.',play:"playstyle",bonus:"Bonus",limit:q,classic:"Classic",6106:"".concat(D,"(").concat(V,")"),6107:"".concat(D,"(").concat(H,")"),6108:L,6109:G,6110:W,6111:U},BacBo:{description:"The banker and the player each use 2 dice. You cannot bet on both the banker and the player simultaneously. The winning side is the one with the higher sum of the two dice.Select the outcome you predict in the betting area, and good luck winning the big prize!",rulesText:"If the points are the same, itâs a tie, and different odds apply based on the points.",banker:D,player:L,tie:G},Mines:{description:"Super high payout with customizable risk â a thrilling minefield game! Watch out for explosives!\n\nAfter placing a bet, players tap on any stone.\nIf it reveals a crystal, winnings are accumulated.\nYou can then choose to continue tapping stones to increase your winnings, or cash out at any time.\nBut if you hit an explosive â you lose all accumulated winnings.\n\nIf you get disconnected after placing a bet, the system will automatically choose to âCash Outâ and end the game."},ChickenRoad:{description:"1. Choose your bet amount\r\n\r\n2. Click start\r\n\r\n3. The result may be success or failure. If successful, you can choose to continue forward or cash out.",easy:"Easy",medium:"Medium",hard:"Hard",ace:"Ace"},Keno:{description:"A simple Keno game with a total of 40 numbers. Each round draws 10 numbers. Players can choose up to 10 numbers to bet on. The more numbers you guess correctly, the higher the payout. Choose your predicted result and good luck winning big!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"Bet on Red Win / Blue Win / Draw"}},GamesDrawHistory:{title:"Recent Draw",history:"History",numero:"Numero",results:"Results",Baccarat:{ratio_description:"Banker, Player and Tie win percentages in last 50 games",banker:D,player:L,tie:G,series:"Numero",win:M}},GamesBetHistory:{today:"Today",yesterday:"Yesterday","no data":"No Records",isError:"Something error, please try again","personal cancel order":"Manual Cancelled","no draw":"Lose",isWon:"Win","not winning":"No Prize","empty draw":"Cancelled ",tie:"Tie",no_series:"no. {{number}}","game subTotal":"SubTotal","game win":"Win",betAmount:"Bet Amount",Taixiu:{title:"My Bets",game:"Games",play:"Play",odds:"Odds",valid_bet:"Valid Bet",status:"Status",no:"No.",no_data:"No Data",win:M,lose:Z},ColorGame:{betAmount:"Bet Amount",winAmount:"Win Amount",win:M,lose:Z},Baccarat:{win:M,lose:Z,bet:"bet",banker:D,player:L,tie:G,bankerPair:W,playerPair:U,"no comm":V,comm:H},BacBo:{banker:D,player:L,tie:G}},RoadChart:{banker:"B",player:"P",tie:"T"}},others:{cancelOrder:{success:"Cancelled",fail:"Cancel Failed",notDrawable:"Cancel Failed",notAvailable:"Bet Locked, Reject Cancel.",notFound:"Cancel Failed"}},hook:{}}},X="Thắng",K="Thua",Q="Nhà Cái",J="Ngưá»i ChÆ¡i",$="Hòa",ee="Nhà Cái Äôi",ne="Ngưá»i ChÆ¡i Äôi",te="Giá»i hạn",ae="XÃ
1¡c nháºn",ie="Huá»·",re="Miá»
n phÃ",oe="Thù lao",ce={translation:{components:{calculator:{hidden:"Ẩn",clear:"Xóa",confirm:ae,cancel:ie},BallLists:{small:"X",big:"T",odd:"L",even:"C",dragon:"Rá»ng",tiger:"tiger"},Alert:{systemNotice:"Thông báo há» thá»ng",confirm:ae,cancel:ie}},containers:{errorPanel:{loginTip:"Thá»i gian trò chÆ¡i cá»§a bạn Äã hết hạn, vui lòng thá» lại sau",close:"Xoá",CONFIRM:ae,SYSTEM_MESSAGE:"Thông báo há» thá»ng",WARNING:"Cảnh báo"},GameName:{taixiu:"Tà iXá»u"},GameBetting:{tai:"Tà i",xiu:"Xá»u"},GamesPanel:{betting:"Cá cược...",bettingSuccess:"Äặt cược thà nh công: {{totalBettingAmount}}",win:"Thắng {{amount}}",odds:"Tá» lá»",totalBet:"Tá»ng cược",player:"Ngưá»i chÆ¡i",BALANCE_NOT_ENOUGH:"Sá» dư không Äá»§, vui lòng nạp tiá»n",BALANCE_NOT_ENOUGH_ERROR:"Sá» dư không Äá»§, vui lòng nạp tiá»n",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"Trò chÆ¡i Äang diá»
n ra, vui lòng dừng trò chÆ¡i trưá»c khi xem.",TOKEN_TIME_OUT:"Thá»i gian trò chÆ¡i cá»§a bạn Äã hết hạn, vui lòng thá» lại sau",BET_LIMIT:"[{{playName}}] Giá»i Hạn Cược: {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"Giá»i Hạn Cược: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"Vượt quá sá» lượng cược tá»i Äa > {{amount}}",GAME_PARAM_ERROR:"Vượt quá sá» lượng cược tá»i Äa > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"Äặt cược có hiá»u lá»±c cá»§a bạn vượt quá giá»i hạn trên cho phép",PLAYID_CLOSED:"Trò chÆ¡i Äang ÄÆ°á»£c bảo trì, vui lòng thá» lại sau!",PARAMETER_REQUIRED:"Chi t
1iết veÌ cược không ÄÆ°á»£c công nháºn. Vui lòng thá» lại.",IS_LOCK_TIME:"Äặt cược thất bại, xá» sá» Äang khóa",INVALID_TOKEN:"Thá»i gian trò chÆ¡i cá»§a bạn Äã hết hạn, vui lòng thá» lại sau",SYSTEM_ERROR:"Äặt cược thất bại, lá»i há» thá»ng",IN_BALANCE:"Cược Thà nh Công",BET_LOCKED:"BET LOCKED",PLEASE_BET_NOW:"PLEASE BET NOW",AUTO_BET_ON:"Äặt cược tá»± Äá»ng Äã ÄÆ°á»£c báºt",AUTO_BET_OFF:"Äặt cược tá»± Äá»ng Äã tắt",TRAIL_NOT_SUPPORT:"không có quyá»n",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"Äặt cược tiá»n thưá»ng cá»§a bạn và o trò chÆ¡i cụ thá». Bạn chưa Äáp ứng yêu cầu cược cá»§a khoản thưá»ng Äã nháºn.",SYSTEM_TIME_OUT:"tá»c Äá» mạng Äang trì hoãn,vui lòng má»t lát sau thá» lại hoặc liên há» chÄm sóc khác hà ng, cảm Æ¡n!",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"Trò chÆ¡i tạm ngừng bán, vui lòng thá» lại sau",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"không thá» Äặt cược và o các khu vá»±c khác nhau",betting:"Cược Ngay",min_bet:"Tá»i thiá»u",max_bet:"Tá»i Äa",big:"Tà i",small:"Xá»u",cancel:ie,all_in:"Tất tay",repeat:"Lặp lại",bet_now:"Cược Ngay",balance:"Sá» dư"},Baccarat:{no:"No.",limit:te,banker:Q,player:J,tie:$,bankerPair:ee,playerPair:ne,confirm:ae,cancel:ie,"comm switch":"Chuyá»n Äá»i hoa há»ng miá»
n phÃ","no commission":"Miá»
n phÃ",commission:"Thù lao","text-1":"Nếu nhà cái thắng bất kỳ Äiá»m nà o, tá»· lá» cược là 1:{{bonus}}; tiá»n gá»c sẽ ÄÆ°á»£c hoà n trả khi hòa.","text-2":"Nếu nhà cái thắng vá»i sá» Äiá»m khác 6 Äiá»m, tá»· lá» cược là 1:{{bonus}}; nếu nhà cái thắng vá»i 6 Äiá»m, tá»· lá» cược là 1: {{bonusHalf}}; tiá»n gá»c sẽ ÄÆ°á»£c hoà n trả khi má»t tráºn hòa ÄÆ°á»£c thá»±c hiá»n."},Baucua:{game_name:"Bầu Cua"},Mines:{bet:"Cược",title:"Má»",start:"Bắt Äầu",cancel:"Há»§y bá»"},ChickenRoad:{start:"Bắt Äầu",cancel:"Há»§y bá»"}},GamesIntro:{description:"Giá»i Thiá»u",rules:"Hưá»ng dẫn ChÆ¡i",title:"Mô tả",odds:"Tá» lá»",betBlock:"Khu vá»±c cá cược",MIN_BET:"Má»i lá»nh cược tá»i thiếu",MAX_BET:"Má»i lá»nh cược tá»i Äa",MAX_BET_PER_DRAW:"Má»i kỳ cược tá»i Äa",GAME_MAX_BET_PER_BET:"Tiá»n cược tá»i Äa cá»§a má»t ÄÆ¡n cược",GAME_MAX_BET_PER_DRAW:"Tiá»n cược tá»i Äa cá»§a má»t kỳ cược",MAX_BONUS_PER_BET:"Má»i lá»nh cược trúng tá»i Äa(bao gá»m sá» vá»n)",MAX_BONUS_PER_DRAW:"Má»i kỳ trúng tá»i Äa(bao gá»m sá» vá»n)",MAX_PROFIT_PER_DRAW:"Má»i kỳ trúng lợi nhuáºn(loại trừ tiá»n gá»c)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"Sá» tiá»n thưá»ng vượt quá giá»i hạn tá»i Äa tiá»n thưá»ng má»i phiên (má»i lần rút). Há» thá»ng sẽ tá»± Äá»ng trừ tiá»n thưá»ng nếu vượt quá giá»i hạn tá»i Äa.",Taixiu:{key1:"Trong game sẽ sá» dụng 3 xà ngầu, tá»ng Äiá»m 11~18 sẽ là [tà i], 3~10 sẽ là [xá»u].",key2:"Bạn chá» cần dá»± Äoán kết quả là [tà i] hoặc [xá»u], và cược cho bất kỳ bên nà o (chá» có thá» lá»±a chá»n cược cho 1 trong 2).",key3:"Nháºp sá» tiá»n cược và nhấn Äá»ng ý, sẽ hoà n thà nh dá»± Äoán cược.",key4:"Trưá»c khi hết thá»i gian dá»± Äoán cược, bạn có thá» tiến hà nh cược thêm mức cược tùy ý.",key5:"Sau khi hết thá»i gian dá»± Äoán cược, nếu có sá»± chênh lá»ch tá»ng cược giữa [tà i] và [xá»u], sẽ trả lại cho ngưá»i chÆ¡i sá» tiá»n dư ra (ngưá»i cược trưá»c sẽ ÄÆ°á»£c giữ lại).",key6:"Nếu gặp bất kỳ sá»± cá» nà o dẫn Äến không thá» phán Äoán kết quả, vòng chÆ¡i nà y sẽ không ÄÆ°á»£c tÃnh."},TaixiuVN:{descriptionText:"Tà i Xá»u là trò chÆ¡i xúc xắc Viá»t Nam ÄÆ°á»£c chÆ¡i bằng 3 quân xà ngầu. Äá» già nh chiến thắng, ngưá»i chÆ¡i Äặt tá»ng sá» Äiá»m cá»§a 3 quân xà ngầu, có thá» Tà i hoặc Xá»u.",big:"- Tà i (Big): Tá»ng 3 quân xà ngầu từ 11 Äến 17. Bảng Thanh Toán {{bonus
1Ratio}}",small:"- Xá»u (Small): Tá»ng 3 quân xà ngầu từ 4 Äến 10. Bảng Thanh Toán {{bonusRatio}}",other:"- Nếu kết quả xuất hiá»n bá» ba (quân xà ngầu trùng sá»), ngưá»i chÆ¡i thua.Và dụ: 1,1,1 hoặc 2,2,2 hoặc 3,3,3â¦"},Xocdia:{descriptionText:"Xóc ÄÄ©a là má»t trò chÆ¡i truyá»n thá»ng phá» biến tại Viá»t Nam. Trò chÆ¡i ÄÆ°á»£c chÆ¡i vá»i 4 Äá»ng xu có hai mặt mà u khác nhau. Ngưá»i chÆ¡i cần Äặt cược và o kiá»u cược trùng vá»i kết quả cá»§a ván chÆ¡i Äá» già nh chiến thắng.",even:"Chẵn",odd:"Lẻ",big:"Tà i",small:"Xá»u","even-des":"4 Äá» , 4 Trắng , 2 Trắng 2 Äá»","odd-des":"3 Äá» 1 Trắng, 3 Trắng 1 Äá»","big-des":"4 Äá», 3 Äá» 1 Trắng","small-des":"4 Trắng, 3 Trắng 1 Äá»","all-color":"Tất cả các mặt là Äá» hoặc Trắng","color3-1":"Äặt cược và o 3 Trắng + 1 Äá» hoặc 3 Äá» + 1 Trắng",lose:"Thua"},Baucua:{description:"Sá»± miêu tả","game rule":"Luáºt chÆ¡i",descriptionText:"Bầu Cua là trò chÆ¡i xúc xắc phá» biến sá» dụng ba con xúc xắc vá»i các biá»u tượng tương ứng trên các mặt.Má»i vùng miá»n sẽ có những biá»u tượng khác nhau nhưng vẫn có 3 biá»u tượng chÃnh là Tôm, Cua & Cá.","win multiplier":"Tá»· lá» cá»a cược",symbol:"viên",bet:"Cược Äặt","outcome example":"Bảng tá»· lá»",payout:"Tá»· lá»",win:"Thắng",lose:"Thua"},ColorGame:{description:"Sá» dụng ba con xúc xắc vá»i sáu mà u khác nhau, bạn có thá» Äặt cược trên nhiá»u khu vá»±c cược cùng má»t lúc. Khi xúc xắc ÄÆ°á»£c tung trong lúc rút thÄm, mà u chiến thắng ÄÆ°á»£c xác Äá»nh bá»i mặt cá»§a xúc xắc Äang hưá»ng lên. \n Chá»n mà u bạn dá»± Äoán trên các khu vá»±c cược và chúc bạn may mắn trong viá»c già nh giải lá»n!",amount:"Sá» lượng",oneDice:"ONE DICE",twoDice:"TWO DICE",threeDice:"THREE DICE"},Baccarat:{rule_description:'Sá» dụng 8 bá» bà i (không bao gá»m bà i joker), tá»ng cá»ng 416 lá; má»i bên "Ngưá»i chÆ¡i" và "Ngân hà ng" ÄÆ°á»£c phát hai lá bà i, trưá»c "Ngưá»i chÆ¡i" sau Äó "Ngân hà ng" (thứ tá»± má» bà i cÅ©ng như nhau). Nếu không có ngưá»i chiến thắng rõ rà ng trong vòng Äầu tiên, bà i sẽ ÄÆ°á»£c rút thêm theo "quy tắc bà i," vá»i má»i bên nháºn tá»i Äa 1 lá bà i Äá» xác Äá»nh kết quả. Nếu bất kỳ bên nà o Äạt ÄÆ°á»£c 8 hoặc 9 Äiá»m, kết quả sẽ ÄÆ°á»£c xác Äá»nh bằng cách sá» dụng 4 lá bà i Äầu tiên ÄÆ°á»£c phát. Không có bà i nà o ÄÆ°á»£c rút thêm. Ngưá»i chiến thắng ÄÆ°á»£c xác Äá»nh bằng cách so sánh chữ sá» cuá»i cùng cá»§a tá»ng Äiá»m giữa Ngưá»i chÆ¡i và Ngân hà ng.',play:"Phong cách chÆ¡i",bonus:"Bonus",limit:te,classic:"Cá» Äiá»n",6106:"".concat(Q,"(").concat(re,")"),6107:"".concat(Q,"(").concat(oe,")"),6108:J,6109:$,6110:ee,6111:ne},BacBo:{description:"Nhà cái và ngưá»i chÆ¡i má»i ngưá»i sá» dụng 2 con xúc xắc. Bạn không thá» Äặt cược và o cả nhà cái và ngưá»i chÆ¡i cùng má»t lúc. Bên thắng là bên có tá»ng sá» Äiá»m cao hÆ¡n cá»§a hai con xúc xắc.Chá»n kết quả mà bạn dá»± Äoán trong giao diá»n Äặt cược và chúc bạn già nh ÄÆ°á»£c giải thưá»ng lá»n!",rulesText:"Nếu Äiá»m sá» giá»ng nhau thì sẽ hòa và tá»· lá» cược khác nhau sẽ áp dụng tùy thuá»c và o Äiá»m sá».",banker:Q,player:J,tie:$},Mines:{description:"Thanh toán cá»±c cao vá»i rá»§i ro tùy chá»nh â trò chÆ¡i mìn Äầy ká»ch tÃnh! Hãy cẩn tháºn vá»i chất ná»!\n\nSau khi Äặt cược, ngưá»i chÆ¡i chạm và o bất kỳ viên Äá nà o\nNếu nó hiá»n thá» má»t viên pha lÃ
1ª, tiá»n thắng sẽ ÄÆ°á»£c tÃch lÅ©y\nBạn có thá» chá»n tiếp tục chạm và o các viên Äá Äá» tÄng tiá»n thắng, hoặc rút tiá»n bất kỳ lúc nà o\nNhưng nếu bạn chạm và o chất ná» â bạn sẽ mất tất cả tiá»n thắng tÃch lÅ©y\n\nNếu bạn bá» ngắt kết ná»i sau khi Äặt cược, há» thá»ng sẽ tá»± Äá»ng chá»n âRút tiá»nâ và kết thúc trò chÆ¡i"},ChickenRoad:{description:"1. Chá»n sá» tiá»n Äặt cược cá»§a bạn\r\n\r\n2. Nhấn bắt Äầu\r\n\r\n3. Kết quả có thá» là thà nh công hoặc thất bại. Nếu thà nh công, bạn có thá» chá»n tiếp tục hoặc rút tiá»n",easy:"dá»
",medium:"trung bình",hard:"khó",ace:"cá»±c khó"},Keno:{description:"Trò chÆ¡i Keno ÄÆ¡n giản vá»i tá»ng cá»ng 40 con sá». Má»i vòng quay má» 10 con sá». Ngưá»i chÆ¡i có thá» chá»n tá»i Äa 10 con sá» Äá» Äặt cược. Cà ng Äoán trúng nhiá»u sá», tá»· lá» trả thưá»ng cà ng cao. Hãy chá»n kết quả bạn dá»± Äoán và chúc bạn trúng giải lá»n!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"Chá»n Äặt cược Äá» thắng / Xanh thắng / Hòa"}},GamesDrawHistory:{title:"Má» thưá»ng gần Äây",history:"kết quả má» giải",numero:"Lượt Xá»",results:"Kết Quả",Baccarat:{ratio_description:"Tá»· lá» phần trÄm thắng cá»§a Banker, Player và Tie trong 50 tráºn gần nhất",banker:Q,player:J,tie:$,series:"Con sá»",win:X}},GamesBetHistory:{today:"Hôm nay",yesterday:"Hôm qua","no data":"Há» sÆ¡ trá»ng",isError:"Äã xảy ra lá»i","personal cancel order":"Ãã há»§y cược","no draw":"Chưa má» thưá»ng",isWon:"Thắ
1ng","not winning":"Thua","empty draw":"Má» khá»ng",tie:"Hoà ",no_series:"kỳ-{{number}}","game subTotal":"Tá»ng cược","game win":"Trúng thưá»ng",betAmount:"Bet Amount",Taixiu:{title:"Lá»ch sá» cược",game:"Thá» trưá»ng",play:"Cách chÆ¡i",odds:"Tá» lá»",valid_bet:"Sá» tiá»n",status:"Trạng",no:"No.",no_data:"Không có dữ liá»u",win:X,lose:K},ColorGame:{betAmount:"Bet Amount",winAmount:"Win Amount",win:X,lose:K},Baccarat:{win:X,lose:K,bet:"cá cược",banker:Q,player:J,tie:$,bankerPair:ee,playerPair:ne,"no comm":re,comm:oe},BacBo:{banker:Q,player:J,tie:$}},RoadChart:{banker:"B",player:"P",tie:"T"}},dialog:{TOKEN_EXPIRED:"TOKEN Äã hết hạn"},others:{cancelOrder:{success:"Há»§y ÄÆ¡n thà nh công",fail:"Há»§y ÄÆ¡n thất bại",notDrawable:"Há»§y ÄÆ¡n thất bại",notAvailable:"Há»§y ÄÆ¡n thất bại, Äã chá»t cược không thá» há»§y",notFound:"Há»§y ÄÆ¡n thất bại, vé cược không tá»n tại"}},hook:{}}},se="Menang",ue="Kalah",le="Bankir",de="pemain",me="mengikat",fe="Pasangan Bankir",pe="Pasangan Pemain",ge="Batas",he="Konfirmasi",ve="Batalkan",be="Gratis",xe="Komisi",ye={translation:{components:{calculator:{hidden:"Sembunyikan",clear:"Kosongkan",confirm:he,cancel:ve},BallLists:{small:"Kecil",big:"Besar",odd:"Ganjil",even:"Genap",dragon:"Naga",tiger:"Harimau"},Alert:{systemNotice:"Notifikasi Sistem",confirm:he,cancel:ve}},containers:{errorPanel:{loginTip:"Your game time has expired, please try again later",close:"Tutup",CONFIRM:he,SYSTEM_MESSAGE:"Pesan Sistem",WARNING:"Peringatan"},GamesPanel:{betting:"Sedang bertaruh ...",bettingSuccess:"Bet Sukses: {{totalBettingAmount}}",win:"Menang {{amount}}",BALANCE_NOT_ENOUGH:"Saldo tidak mencukupi",BALANCE_NOT_ENOUGH_ERROR:"Saldo tidak mencukupi",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"Permainan sedang berlangsung, silakan hentikan permainan sebelum melihat.",TOKEN_TIME_OUT:"Sesi Anda telah berakhir, silakan masuk kembali",BET_LIMIT:"[{{playName}}] Batas taruhan: {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"Batas taruhan: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"Jumlah taruhan telah melebihi batas sebesar {{amount}}",GAME_PARAM_ERROR:"Slip taruhan penuh > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"Kelipatan taruhan Anda telah melebihi batas yang diizinkan",PLAYID_CLOSED:"Game sedang dalam perbaikan, coba lagi nanti!",PARAMETER_REQUIRED:"Rincian bet yang tidak dikenali. Silakan coba lagi.",IS_LOCK_TIME:"Taruhan gagal, permainan ini telah memasuki periode kunci",INVALID_TOKEN:"Waktu permainan Anda telah berakhir, silakan coba lagi nanti",SYSTEM_ERROR:"Taruhan gagal, kesalahan sistem",IN_BALANCE:"Saldo",BET_LOCKED:"BET LOCKED",PLEASE_BET_NOW:"PLEASE BET NOW",AUTO_BET_ON:"Taruhan otomatis diaktifkan",AUTO_BET_OFF:"Taruhan otomatis dinonaktifkan",TRAIL_NOT_SUPPORT:"Tidak ada izin",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"Gunakan bonus Anda pada permainan tertentu. Anda belum memenuhi persyaratan taruhan untuk bonus yang diklaim.",SYSTEM_TIME_OUT:"The location you are trying to access the website from, is currently restricted.",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"Permainan dihentikan sementara, silakan coba lagi nanti",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"Hanya satu sisi taruhan diterima untuk inning yang sama.",betting:"Konfirmasi",min_bet:"Min. Taruhan",max_bet:"Max. Taruhan",big:"Besar",small:"Kecil",cancel:ve,all_in:"Semua masuk",repeat:"Ulang",bet_now:"Konfirmasi",balance:"Saldo"},Baccarat:{no:"No.",limit:ge,banker:le,player:de,tie:me,bankerPair:fe,playerPair:pe,confirm:he,cancel:ve,"comm switch":"Ganti komisi gratis","no commission":"Gratis",commission:"Komisi","text-1":"Jika dealer menang dengan poin berapa pun, peluangnya adalah 1:{{bonus}}; pokok akan dikembalikan ketika dasi dibuat.","text-2":"Jika bankir menang dengan poin selain 6 poin, peluangnya adalah 1:{{bonus}}; jika bankir menang dengan 6 poin, peluangnya adalah 1:{{bonusHalf}}; pokok akan dikembalikan saat pengundian dilakukan."},Baucua:{game_name:"Ikan udang kepiting"},Mines:{bet:"Bertaruh",title:"Tambang",start:"Awal",cancel:"Membatalkan"},ChickenRoad:{start:"Awal",cancel:"Membatalkan"}},GamesIntro:{description:"Deskripsi",rules:"Pengantar Permainan",title:"Deskripsi",odds:"Peluang",betBlock:"Area Taruhan",MIN_BET:"Min. Bertaruh",MAX_BET:"Max. Bertaruh",MAX_BET_PER_DRAW:"SEMUA Maksimum Taruhan",GAME_MAX_BET_PER_BET:"Jumlah maksimum taruhan permainan tunggal",GAME_MAX_BET_PER_DRAW:"Jumlah maksimum taruhan per putaran",MAX_BONUS_PER_BET:"Pembayaran maksimum per pesanan onec(termasuk modal)",MAX_BONUS_PER_DRAW:"Tingkat pembayaran maksimum per periode(termasuk modal)",MAX_PROFIT_PER_DRAW:"Pembayaran Maksimal Per Keuntungan(tidak termasuk pokok)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"Bonus melebihi batas maksimum bonus per taruhan (per undian). Sistem akan secara otomatis mengurangi bonus jika melebihi batas maksimum.",Taixiu:{key1:"Game ini menggunakan 3 dadu, total angka di antara 11~18 adalah ãBesarã, di antara 3~10 adalah ãKecilã.",key2:"Anda hanya perlu memprediksi apakah hasilnya adalah ãBesarã atau ãKecilã, dan memasang taruhan pada salah satu sisi (hanya bisa memilih salah satu untuk taruhan).",key3:"Masukkan nilai taruhan yang ingin dipasang
1kemudian tekan konfirmasi, maka taruhan prediksi akan selesai.",key4:"Sebelum waktu taruhan prediksi berakhir, Anda dapat memasang taruhan berulang kali dengan nilai berapa pun.",key5:"Ketika taruhan prediksi berakhir, jika ada perbedaan antara total taruhan ãBesarã dan ãKecilã, selisih yang lebih akan dikembalikan kepada pemain (pemain yang memasang taruhan lebih dulu akan diprioritaskan).",key6:"Jika terjadi kerusakan yang menyebabkan hasil permainan tidak dapat ditentukan, maka permainan ini dianggap tidak valid."},Xocdia:{descriptionText:"Xoc Dia adalah permainan dadu populer di Vietnam. Permainan ini menggunakan 4 koin dengan dua warna yang berbeda. Pemain dapat memilih hasil dari keempat koin yang ingin mereka taruhkan. Semoga Anda memenangkan hadiah besar!",even:"Genap",odd:"Ganjil",big:"Besar",small:"Kecil","even-des":"Semua merah, semua putih, 2 putih 2 merah","odd-des":"3 merah 1 putih, 3 putih 1 merah","big-des":"Semua merah, 3 merah 1 putih","small-des":"Semua putih, 3 putih 1 merah","all-color":"Semua koin berwarna putih atau merah","color3-1":"Hasil taruhan adalah 3 putih + 1 merah atau 3 merah + 1 putih",lose:"Tidak menang"},Baucua:{description:"Deskripsi","game rule":"Aturan Permainan",descriptionText:"Bau Cua adalah permainan dadu populer yang menggunakan tiga dadu dengan simbol di muka dadu. Bergantung pada wilayahnya, simbol dadu dapat bervariasi dengan tiga simbol utama adalah Ikan, Udang, dan Kepiting.","win multiplier":"Pengganda Menang",symbol:"Simbol",bet:"Taruhan","outcome example":"Contoh Hasil",payout:"Pembayaran",win:"Menang",lose:"Kalah"},ColorGame:{description:"Dengan menggunakan tiga dadu dengan enam warna berbeda, Anda dapat memasang taruhan pada beberapa area taruhan secara bersamaan. \n Saat dadu digulirkan selama pengundian, warna pemenang ditentukan oleh sisi dadu yang menghadap ke atas. \n Pilih warna yang Anda prediksi pada area taruhan, dan semoga sukses untuk Anda memenangkan hadiah besar!",amount:"Jumlah",oneDice:"Satu dadu",twoDice:"Dua dadu",threeDice:"Tiga dadu"},Baccarat:{rule_description:'Menggunakan 8 set kartu (tanpa joker), dengan total 416 kartu; masing-masing "Pemain" dan "Bandar" menerima dua kartu, pertama "Pemain" kemudian "Bandar" (urutan pembukaan kartu juga sama). Jika tidak ada pemenang yang jelas dalam putaran pertama, kartu tambahan akan ditarik sesuai dengan "aturan kartu," dengan masing-masing pihak menerima hingga 1 kartu tambahan untuk menentukan hasilnya. Jika salah satu pihak mencapai 8 atau 9 poin, hasilnya akan ditentukan menggunakan 4 kartu pertama yang dibagikan. Tidak akan ada kartu tambahan yang ditarik. Pemenang ditentukan dengan membandingkan digit terakhir dari jumlah poin antara Pemain dan Bandar.',play:"gaya bermain",bonus:"Bonus",limit:ge,classic:"Klasik",6106:"".concat(le,"(").concat(be,")"),6107:"".concat(le,"(").concat(xe,")"),6108:de,6109:me,6110:fe,6111:pe},BacBo:{description:"Banker dan pemain masing-masing menggunakan 2 dadu. Anda tidak dapat bertaruh pada banker dan pemain secara bersamaan. Pemenangnya adalah pihak yang memiliki jumlah dadu yang lebih besar.Pilih hasil yang Anda prediksi di antarmuka taruhan, dan semoga Anda memenangkan hadiah besar!",rulesText:"Jika hasilnya sama, itu seri, dan peluang yang berbeda berlaku berdasarkan poin.",banker:le,player:de,tie:me},Mines:{description:"Pembayaran sangat tinggi dengan risiko yang dapat disesuaikan â permainan ladang ranjau yang mendebarkan! Waspadai bahan peledak!\n\nSetelah memasang taruhan, pemain mengetuk batu apa saja\nJika itu mengungkapkan kristal, kemenangan akan terakumulasi\nAnda kemudian dapat memilih untuk terus mengetuk batu untuk meningkatkan kemenangan Anda, atau mencairkan kapan saja\nTetapi jika Anda mengenai bahan peledak â Anda kehilangan semua kemenangan yang terakumulasi\n\nJika Anda terputus setelah memasang taruhan, sistem akan secara otomatis memilih âMencairkanâ dan mengakhiri permainan"},ChickenRoad:{description:"1. Pilih jumlah taruhan Anda\r\n\r\n2. Klik mulai\r\n\r\n3. Hasilnya bisa berupa sukses atau gagal. Jika sukses, Anda dapat memilih untuk lanjut atau cash out",easy:"mudah",medium:"sedang",hard:"tinggi",ace:"ace"},Keno:{description:"Permainan Keno sederhana dengan total 40 angka. Setiap putaran akan mengeluarkan 10 angka. Pemain dapat memilih hingga 10 angka untu
1k dipertaruhkan. Semakin banyak angka yang ditebak benar, semakin tinggi pembayarannya. Pilih hasil tebakan Anda dan semoga menang besar!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"Pertaruhkan kemenangan Merah / kemenangan Biru / Seri"}},GamesDrawHistory:{title:"Penarikan Terbaru",history:"Riwayat Penarikan",numero:"Nomor Penarikan",results:"Hasil Penarikan",Baccarat:{ratio_description:"Persentase kemenangan Banker, Player dan Tie dalam 50 pertandingan terakhir",banker:le,player:de,tie:me,series:"periode",win:se}},GamesBetHistory:{today:"Hari ini",yesterday:"Kemarin","no data":"Tidak ada data",isError:"Kesalahan query, silakan coba lagi","personal cancel order":"Membatalkan Pesanan Pribadi","no draw":"Belum ditarik",isWon:"Dalam, menang","not winning":"Tidak menang","empty draw":"Tarik kosong",tie:"Imbang",no_series:"Prajurit Ke {{number}}","game subTotal":"Subtotal","game win":"Menang",betAmount:"Bet Amount",Taixiu:{title:"Taruhan Berjalan",game:"Markets",play:"Main",odds:"Peluang",valid_bet:"Taruh",status:"Status",no:"No.",no_data:"Tidak ada data",win:se,lose:ue},ColorGame:{betAmount:"Bet Amount",winAmount:"Win Amount",win:se,lose:ue},Baccarat:{win:se,lose:ue,bet:"bertaruh",banker:le,player:de,tie:me,bankerPair:fe,playerPair:pe,"no comm":be,comm:xe},BacBo:{banker:le,player:de,tie:me}},RoadChart:{banker:"B",player:"P",tie:"T"}},dialog:{TOKEN_EXPIRED:"TOKEN telah berakhir"},others:{cancelOrder:{success:"Berhasil membatalkan pesanan",fail:"Gagal membatalkan pesanan",notDrawable:"Pesanan telah kedaluwarsa, tidak dapat dibatalkan",notAvailable:"Gagal membatalkan pesanan, periode kunci tidak memungkinkan pembatalan",notFound:"Gagal membatalkan pesanan, pesanan tidak ditemukan"}},hook:{}}},_e="áááá",we="áááá",Te="á¢ááááááá½á",ke="á¢ááááá¶ááá·á",Ie="áá¶á",Ce="áááá¢ááááááá½á",Ee="áááá¢ááááá¶ááá·á",je="ááááá·á",Pe="ááááá¶áá",Se="áááááá",Ne={translation:{components:{calculator:{hidden:"áá¶áá",clear:"áááá¢á¶á",confirm:Pe,cancel:Se},BallLists:{small:"áá¼á
",big:"áá",odd:"ááá¢ááááá·á",even:"ááá¢ááááááá¶ááá·á",dragon:"áá¶á",tiger:"ááá"},Alert:{systemNotice:"áá¶ááá¼ááááá¹ááááááááá",confirm:Pe,cancel:Se}},containers:{errorPanel:{loginTip:"ááááááá¶á ááááááááá¢ááááá»ááááááá á¾á",close:"áá·á",CONFIRM:Pe,SYSTEM_MESSAGE:"áá¶áâáááááááá",WARNING:"ááááá¶á"},GamesPanel:{betting:"áá¶ááá¶ááá ááá¹á ...",bettingSuccess:"áá¶ááá¶ááááááá¶áááááááá: {{totalBettingAmount}}",win:"áááá {{amount}}",BALANCE_NOT_ENOUGH:"áááá¶ááááá»ááááááááá¼ááá",BALANCE_NOT_ENOUGH_ERROR:"áááá¶ááááá»ááááááááá¼ááá",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"á áááááááá»ááááá¾ááá¶á áá¼áááááááá áááááá·á áá»áááááá·áá·ááááá¾á",TOKEN_TIME_OUT:"áááááááá¾áááá¶ááááááá¢ááááá¶ááá»áááááá áá¼áá
á¼ááááá¾ááááááá",BET_LIMIT:"áá¶ááááááá·ááááááááá¾ [{{playName}}]: {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"áá¶ááááááá·ááááááááá¾áááá»á: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"á
ááá½ááá¶ááá¶ááááááá¶áááá¾ááá¸áááááááááá¶áá {{amount}}",GAME_PARAM_ERROR:"áá¶ááááá¶ááááá¶áááá
ááá½ááááá¶áááá¾áá
ááá½áá¢áá·áááá¶ > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"á
ááá½ááá¶ááá¶ááááºááá¼áá¶ááááááááááááá¶ááááááááááá¶áááááááááááááá",PLAYID_CLOSED:"áááá·ááá¾ááá¶ááá¶ááá
1ááá¶áááááááááá¶áá½ááá,áá¼ááááá¶áá¶ááááááááá",PARAMETER_REQUIRED:"áá¶ááá¶áááá·ááááá¼ááá, áá¼ááááá¶áá¶ááááááááá",IS_LOCK_TIME:"áá¶áCambodia Winning Lottery áá¶ááááááá¶áááá¶áá
á¶ááááááááááá
áááááááá¶áááá áááááááá",INVALID_TOKEN:"áá¶áá
á¶áááá¶áááá¶áá¼ááá¶áá¶ááá¶áááááááááá¢ááááá¶ááá»áááááá,áá¼ááááá¶áá¶áááááááááááááááá",SYSTEM_ERROR:"áá¶ááá¶áááááá¶ááááá½ááááááááá»ááá¶ááááá",IN_BALANCE:"áá
áááá»ááá»ááááááááááá»á",BET_LOCKED:"áá¶áá(BET LOCKED)",PLEASE_BET_NOW:"áá¼ááá¶ááá¥á¡á¼áááá",AUTO_BET_ON:"áá¶ááááá¶ááááááááááááááá·áááá¼ááá¶ááá¾á",AUTO_BET_OFF:"áá¶ááááá¶ááááááááááááááá·áááá¼ááá¶áááá¢á¶á",TRAIL_NOT_SUPPORT:"áááá¶ááá¶áá¢áá»áááá¶á",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"áá¶áááááá¶ááááááá¶ááááááá¢ááááááá¶áááá¾á áááááá¶áááá¶ááá á¢ááááá·ááá¶áááá¶áááááááááááááááááá¶ááááááá¶áááááá¶ááááááá¶ááááá",SYSTEM_TIME_OUT:"áááá¿áááááá¶ááááá»áááááááááá¼ááá¶áááááá¶ááááá¼ááááá¶áá¶áááááááááá
ááááááááá«áá¶áááááááá¶ááááá¢áá·áá·áá.áá¼áá¢ááá»á",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"á ááááááá¢á¶ááá¶ááááááá¢á¶áááá áá¼ááá¶áááááááááááááááááááá",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"ááá»ááááá¶á¢áááá·ááá¶áááá¶ááááá½ááá¼ááá¾ááááá¶áááá¶áá»áááááá»áááááá",betting:"ááááá¶áá",min_bet:"á¢ááááááá¶áá",max_bet:"á¢áá·áááá¶áá",big:"áá",small:"áá¼á
",cancel:Se,all_in:"áá½ááá»ááá¶ááá¢áá",repeat:"áááá¾áááá¾ááá·áááááááá",bet_now:"ááááá¶áá",balance:"áááá»ááááááá"},Baccarat:{no:"ááá:",limit:je,banker:Te,player:ke,tie:Ie,bankerPair:Ce,playerPair:Ee,confirm:Pe,cancel:Se,"comm switch":"áááá¼ááááááááááá¼áááá·ááááá","no commission":"áááá¶áááááááá·ááá",commission:"ááááááá·ááá","text-1":"á¢ááááááá½ááááááá¶áá½ááá·áááá»áááá¶ááááá»ááá¶áá½áááááááá
á·ááá, á¢ááááááá¶áááá¶áá á¡:{{bonus}}; áááá»ááááá¸áá¶áááááááááá¶ááá¼á
áááá¶, áá¶ááá¶áááá·áááºáááá¼ááá¶ááááá¡áááá
áá¶ááá¶áááá¼ááááá»ááá¶ááá¼áááááááá","text-2":"á¢ááááááá½ááááááá¶áá½ááá·áááá»áááá¶ááááá»ááá¶áá½áááááááá
á·áááááááá¶áááá¾ááá¸á¦, á¢ááááááá¶áááá¶áááááá»ááá¶ááááááááá¶ááá¶áááááá¶ á¡:{{bonusHalf}}; áááá»ááááá¸áá¶áááááááááá¶ááá¼á
áááá¶áááááááááá¼ááá¶ááááá¡áááá
áá¶ááá¶áááá¼ááááá»ááá¶ááá¼áááááááá"},Baucua:{game_name:"Fish Prawn Crab"},Mines:{bet:"áááá¶áá",title:"á¢áááá¾á",start:"áá áá
áá ",cancel:"áááá
áá"},ChickenRoad:{start:"áá áá
áá ",cancel:"áááá
áá"}},GamesIntro:{description:"áá¶áá²áááá¾á",rules:"á
ááá¶áááá·ááááá¶áá",title:"áá¶áá²áááá¾á",odds:"á¢á¶ááááááá·áá",betBlock:"ááááááááá¶áá",MIN_BET:"á¢ááá",MAX_BET:"á¢áá·",MAX_BET_PER_DRAW:"áá¶ááááá¶áááá¶ááá¢áá",GAME_MAX_BET_PER_BET:"á
ááá½áá
ááá¶áá¢áá¡á¶áá¢áá¸ááááá»á",GAME_MAX_BET_PER_DRAW:"á
ááá½áá
ááá¶áá¢áá¡á¶ááááá»á per ááá¼ááá¶á",MAX_BONUS_PER_BET:"áá¶ááá¼áá¶áááááá¶ááá
ááá¾ááááá»ááááá»ááá½ááááá¶áá(áá½ááááá
á¼ááááááááá¼ááááá¶á)",MAX_BONUS_PER_DRAW:"á¢áááá¶áá¼áá¶áááááá¶ááá¢áá·áááá¶áááá»ááááááááá½á(áá½ááááá
á¼ááááááááá¼ááááá¶á)",MAX_PROFIT_PER_DRAW:"áááá¶ááá
ááááá¢áá·áááá¶áááá»ááááááááááá½á(ááááá¸áááá¶ááááá»á)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"á
ááá½ááááá¶ááááááá¶ááá
á»ááááááááºáá¾ááá¸áááááááááá¶áááááá¶ááááááá¶áááááá»ááá½áááá á»á (áááá»ááá½ááá¶ááááá»áááááááá
1á·)á áááááááááá¹ááááá¾áá¶ááááááá¶ááááááá¶áááááááááááááááááá·áááá¶áááá¶ááááá¶ááááááá¶áááááá»ááá½áááá á»ááááá¶áááááá¶ááááááá¾ááá¸áááááááááá¶áááááá¶ááááááá¶ááááºáá
áá¶ááá¾áá
áááá¶áááááá¶áááá",Taixiu:{key1:"á ááá¶ááá¶áá¼ááááá
áááá»ááááᣠáááááá¶ááááááááááááá¶ááááááááá¶ááá¼ááááááááááá¶áá¡á¡-á¡á¨áááááá¢áááá¶áá. á¡-á¡á áááááá¢áááá¶áá¼á
á",key2:"á¢ááááá½ááááááá¶áá¶áááá»áááááá¸ááá¶ááá¼á
áááá¶áááá»áááááááááááááºáá ᬠáá¼á
áááá½á áá¼á
áá¶áááááááááá»á ᬠáááá¢áááááá¶á áááá",key3:"áááá
á¼áá
ááá½ááá¹ááá½áááááááááááá·áááá»ááááá¶áááá¶áááááá¶ááááá»ááá¶áá¶ááááááá·áá¥á¡á¼áá
á»á
áá¾ááá¹áááá
á¡á¾áááááá»áá
ááá¶ááá",ke
1y4:"á¢áááá¢á¶á
áááá¾áá¶ááá¶áááááá¶áá
ááá¾ááá
áááá»ááá¶áá¶ááááááá¶á
ááá¾áá
ááá½ááá¶áá½áááááá¶áááááá¼áá¶áá¼á
áá
áááá»ááá¶ááá¶ááá¢á¶áá¶ááá¢áááá
áááááááááá¶ááá¶ááááááá¶ááááááááá",key5:"áááá»ááááá¸áá¶áá¢áááááá½ááá¿áááááá¶áááááááááááá·ááááá[áá] áá·á [áá¼á
] áá
áááá»ááááá¾ááá¶ááá¶áááááá¸á
á»ááááááááºáááá»ááá¹ááááá¸áá¹ááá¼ááá
á¢ááááá¶áááááááááá¶áááá·á (á¢ááááá¶ááá¶ááááááááḠáá¶ááááááá
ááááááááá»áááááááááá¢áááááááááááá)á",key6:"áááá»ááááá¸áá¶ááá·áááá»áá¶ááááááááá¶ááááááá»ááá¶áá²áááááááááááá·áááááááá¶áá¢ááááá¹ááá·áááá¼ááá
áá¶ááá¶ááá¶ááááááá¢ááááááá¶áááááááááááá"},Xocdia:{descriptionText:"áááááá¶áááºáá¶á ááááâ á
ááá½áá¤ááááá¶á áá¼á
áá¶á áá¼á
áá¶áá¶áááááá¸áá»ááá áá¶áááááá¶áá½á(Tail)á áááá
ááá½ááá·ááááááá¶áá
ááááá»ááá¶ááá¶áááááá¶áááááááá»ááááá¶áá¸ááââ áá¶ááááááá¶áááááááááá¶áááááá¾áá¹áááá¶ááááááá¾áááááááá
áááááááá·ááá¶áá»áá",even:"áááá¶ááá·á",odd:"áá¶ááá·á",big:"áá",small:"áá¼á
","even-des":"áááá¢áááááá¶á ááááá¼á
áááá¶áá¼á
á¬áááá¸","odd-des":"áááá¶áá¹ááááá¶ááá·ááá¼á
áááá¶áá¶ááááá¶ááá¼á
áá¸á","big-des":"áááá¢áááááá¶á ááááá¶ááááá¼ááá¶ááááá¶ááá¸áá¢áá·ááááá¶ááá¼á
áá½á","small-des":"áááá¶áá¼áááá¶ááá¼á
áá¼á
áááá¶áá¶ááááá¶ááá¼á
áá¸ááá·ááááá¶ááá¶áá½á","all-color":"áááá¢áááááá¶á ááááá¼á
áááá¶áá¶ááá¢áááá½ááá»áá¬áááá¸","color3-1":"áááá¢áááááá¶á ááááááááá¼á
áá¸ááá·ááááá¶ááá¼á
áá½ááááá»ááá¶â áááá¢áááááá¶á ááááá¼á
áá¸ááááá¶ááááá¶ááá·ááááá¶ááááá¶áá¸áá¢áá",lose:"áááá¶ááá¶ááááá"},Baucua:{description:"ááááá»áááá¢á¶áá¶ááááá","game rule":"á
ááá¶áááá·ááááá¶áá",descriptionText:"Fish Prawn Crab ááºáá¶áááááááááááááá·ááááá¶ááááá·ááááá¶ááááááá¢áááááááááá¾áá¶ááá¸áá¶ááááá¶áááááá¶áá¼áááá¼ááááá¾áá áá
áááááááááá¶ááá¶ááááááááááááá¢áááá¢áá¢á¶ááá¶áááááá¶ááááá¸ááááá¼á
áá¸áááá¼ááá¶ááááá³áááááá¶ááááá¶ááá
áááááá½áááááááá¶áááááá¼ááá¶áááá
á¡á¾ááááá½ááááááááááá»áááááááááááá¶ááá
áá
á¶ááááááááá¶ááááááááááá
á¶á:áá·áá¢áá·áááá¶á¢áááá¶áááááááá·ááááááá¶ááá¶ááá ","win multiplier":"á¢ááááááá",symbol:"ááá áááááááááá¶",bet:"áá¶ááááááááá
ááá½á","outcome example":"áááá¾áá»ááááá¶",payout:"áá¶ááá¶áááá¼ááááá¶áá",win:"áááá",lose:"áááá"},ColorGame:{description:"ááááááá¶áááááááá¾ááááá
áááá»ááá¶áááá ááááááá¸áááááááááá¼áááááá¶áááááááá¶ááááá½áá \n á¥á¡á¼áá¢áááá¢á¶á
áá¶áááááá¾ááá¶áááá·á
áááááááááááááá
áá¶ááááá¹áá
á¶áá
ááááááá¶áá»ááá¶ááá¶ááá¸áááá¶áá\n áááá¾ááá·áá§áá¶á áááááááááááááááá¶ááá¶áá¼á
áá¶áááá»ááááááááááá»áá¢ááááá¶áááá
áááá»ááá¶ááááá¹áá
á¶ááá¶áá¼á
áá",amount:"á
ááá½ááá¹ááááá¶áá",oneDice:"áá¶ááá¶áááááááááááááá¸áá
1áá¶",twoDice:"áááá¶á áá¶áááááá¶áááááááá¶áá½á",threeDice:"áá¶ááá¶ááᣠááááááá¹áááááááá½á"},Baccarat:{rule_description:'ááááááá¹áááááá¶áá½ááá¶áá¼áááá
áááááá¨áááá¶ááááá¼ááá¶áááºááááá»áá½á(áááá¶ááá¼á áááá) áááááá¶ááá¤á¡á¦áááá»áá
áááá; "á¢ááááá¶áá" áá·á "á¢ááááááá½á" ááá½ááá¶áááááá¶ááá
ááá¾ááá¶áááááá¶ááá¶áááááá¸á¡áááááá¶ááá"á¢ááááá¶áá" á ááá¹ááá¶ááááá ááááá
áááá»ááá¶ááááá
ááá¶áááá·ááááááá¼á
áááá¶ááá; ááááá·ááá¾áááá¶áá¢ááááááááá¶ááááááááá½ááááááá·áááááááá»áááááá áááááá¡áááá¸áááá»áááááááááááá',play:"ááá",bonus:"áááááááááá áááááááááá¶",limit:je,classic:"áááá¼á",6106:"á¢ááááááá½á (áá·áá
áááááááá·ááá)",6107:"á¢ááááá¶áá (áááááá·ááá)",6108:"á¢ááááá¶ááá·á",6109:"áá¶á",6110:"á
ááá¾ááááá¶ááááá¢áááááá¶ááá½á
",6111:"á
ááá¾ááááá¶ááááá¶áá¢á¶áá·áááá¸áááá¢áááááá¶ááá½á
"},BacBo:{description:"ááá
áááá¸áá·ááááá¶áá¢ááááá¶á áá·á á¢áááááááá¸áá½áááááá¾áá¸á 2 áá»ááááá¼áááá á¢ááááá·áá¢á¶á
áá¶áááááá¶áááá¶áááá¸áá¢ááááá¶á áá·á á¢áááááááá
ááááááá¾ááááá¶áá¶áááá á¢áááááááá¶ááá¸áá
ááá¾ááá¶ááááá¶áá¹áááááááááá¾ááá¾ááááááááááá¢áááááááá·áááá¶ááá
áááá»ááááááááááááá¶áá á á¾ááá¼ááááá¶áááá¢!",rulesText:"ááááá·ááá¾áá·áááá»áá¼á
áááá¶ áá¶ááºáá¶áá¶ááááá½áááááá½á á á¾ááá¶áááá¶áá¶áááááááááááá¶áááááá¢áááá¾áá·áááá»á",banker:Te,player:ke,tie:Ie},Mines:{description:"áá¶áááááááá¶ááááááááá¶áá½ááá¹áá á¶áá·ááááááá¢á¶á
áááá¼ááá¶á â ááááááá¶ááá¸ááááááá¾á! áá¼ááááááááááá¹ááá¶ááá¶áá»áááá»á!\n\nááááá¶áááá¸áá¶ááááá¶ááá á¾á á¢ááááááá¢á¶á
á
á»á
áá¾ááááá¶áá½áá\nááááá·ááá¾áá¶áááá á¶ááááá¸áááá¶áá ááááááá¶ááááááá¶áááá¹ááááá¼ááá¶áááááá½ááááá
á¼áá\ná¢áááá¢á¶á
áááá¾ááá¾áááááá
á»á
áá¾ááááá¾áááá¸ááááá¾ááááá¶ááááááá¶ááááááá¢ááá á¬áááááá¶áááá
ááááá¶áááá¶áá\nááá»ááááááááá·ááá¾á¢áááááááá¶ááá¶áá»áááá»á â á¢ááááá¹ááá¶ááááááááá¶ááááááá¶ááááááá¶áááááá½ááááá
á¼ááá¶ááá¢ááá\n\nááááá·ááá¾á¢ááááááá¶á
áááááá¶áááááá¶áááá¸áá¶ááááá¶áá áááááááááá¹ááááá¾ááá¾ááááááááááááááááá· âáááááá¶ááâ á á¾ááááá
áááááááá"},ChickenRoad:{description:"1. áááá¾ááá¾áá
ááá½ááááá¶áááááá¶ááááááá¢ááá\r\n\r\n2. á
á»á
á
á¶áááááá¾á\r\n\r\n3. ááááááá¢á¶á
áá¶áá¶ááá
1áááá á¬ááá¶áááá ááááá·ááá¾áááááá á¢áááá¢á¶á
áááá¾ááá¾ááááá ᬠáááááá¶áá",easy:"áá¶á",medium:"ááááá",hard:"ááááá",ace:"ááááá·áá¢áá"},Keno:{description:"áááááááá¸ááá¼áá¶áááááá½áááááá¶áá
ááá½ááááááá»á á¤á áááá»ááá½ááá»ááá¹áá
á¶áááááá
ááá½á á¡á ááá á¢ááááááá¢á¶á
áááá¾ááá¾ááá·áá·ááááá¶áá¢áá·áááá¶ á¡á ááá áááááááááá¢ááááááááááá¶ááááá¹ááááá¼áá
ááá¾á á¢áááá¶ááááááá¶áá cà ngááááá áá¾ááááááááááá¢ááááá·ááá¶ááᢠáá¼áá²ááá¢áááááááááááá¶áááá!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"áááá¾ááá¾ááááá¶áá ááááááá ááááá / áááááááááá / áááá¾áááá¶"}},GamesDrawHistory:{title:"áá¶ááááá¶áá¶ááááá¸á",history:"áááááááá·áá¶ááá¶ááááááá
",numero:"ááááááááááá",results:"áááááá",Baccarat:{ratio_description:"á¢áááááááá¶áááááá¶á á¢ááááá¶áá áááá¢ááááºáá¶ááááá¶ááááá¶áá¡á ááááá¹áá¤á ááááá¶ááá¢áááááááá¶ááááá
áá¶áá·áá¢ááááá¶ááá",banker:Te,player:ke,tie:Ie,series:"ááá",win:_e}},GamesBetHistory:{today:"ááááááá",yesterday:"áááá·ááá·á","no data":"áááá·ááá¾ááá·áááááá",isError:"ááá á»áááááááá, áá¼ááááá¶áá¶áááááááá","personal cancel order":"áá¶ááá¶áááá·áááááááááá¶ááááá
áááááá¸áá¶ááááááááááá¯ááá","no draw":"áá·ááá¶áááááá½á",isWon:"áááá","not winning":"áááá¶ááá¶ááááá","empty draw":"áá¶áááááá»á",tie:"áá¶ááá½á",no_series:"áááááááá¼áááá¸áḠ{{number}}","game subTotal":"áá¶ááá·áá·ááá","game win":"áááá",betAmount:"á
ááá½ááá¹áááááá¶ááá¶áá",Taixiu:{title:"áá¶ááá¶áá",game:"á áááá",play:"ááá",odds:"áááá¼ááááá¾á",valid_bet:"áá¶ááá¶áááá¶ááááááááááááá",status:"áááá¶ááá¶á",no:"ááááá",no_data:"áááá¶ááá·ááá",win:_e,lose:we},ColorGame:{betAmount:"áá¶ááá¶áá á
ááá½á",winAmount:"áá¶ááááááááá»ááá¶ááá¶áá áá¹ááááá¶áá",win:_e,lose:we},Baccarat:{win:_e,lose:we,bet:"áá¶ááá¶áá",banker:Te,player:ke,tie:Ie,bankerPair:Ce,playerPair:Ee,"no comm":"áááá¶áááááááá·ááá",comm:"áá¶ááá¼ááááá¹á"},BacBo:{banker:Te,player:ke,tie:Ie}},RoadChart:{banker:"á¢ááááááá½á",player:"á¢ááááá¶ááá·á",tie:"áá¶á"}},dialog:{TOKEN_EXPIRED:"áá¼áááá¶ááááá·ááááá¶áááááá¶ááá»áááááá"},others:{cancelOrder:{success:"áá¶ááááááááá¶ááááááá",fail:"ááá¶ááááááá»ááá¶áááááááááá",notDrawable:"áá¶ááá¶áááá»ááá·áá¢á¶á
áááááááá¶ááááá¸ááááááááááá",notAvailable:"áá¶áááááá¶áááá·áá¢á¶á
áááááááá¶á, ááá¶áá¢áá¡á»ááááá
á¶ááá¢á¶áááááááá»áá¢áá»áááá¶áá¢áááááááá",notFound:"áá¶áááááá¶áááá·áá¢á¶á
áááááááá¶á, ááá¶ááá·ááá¶ááá"}},hook:{}}},Be="ì¹ë¦¬",Ae="í¨ë°°",Re="ìíì",Oe="íë ì´ì´",Me="무ì¹ë¶",Ze="ìíì íì´",De
1="íë ì´ì´ íì´",Le="íì¸",Ge="ì·¨ì",We={translation:{components:{calculator:{hidden:"ì¨ê¸°ê¸°",clear:"ì§ì°ê¸°",confirm:Le,cancel:Ge},BallLists:{small:"ìì",big:"í°",odd:"í",even:"ì§",dragon:"ëë곤",tiger:"í¸ëì´"},Alert:{systemNotice:"ìì¤í
ì림",confirm:Le,cancel:Ge}},containers:{errorPanel:{loginTip:"ì¸ì
ì´ ë§ë£ëììµëë¤.",close:"ë«ê¸°",CONFIRM:Le,SYSTEM_MESSAGE:"ìì¤í
ë©ìì§",WARNING:"ê²½ê³ "},GamesPanel:{betting:"ë°°í
ì¤...",bettingSuccess:"ë°°í
ì±ê³µ: {{totalBettingAmount}}",win:"{{amount}} ì¹ë¦¬",BALANCE_NOT_ENOUGH:"ìì¡ ë¶ì¡±",BALANCE_NOT_ENOUGH_ERROR:"ìì¡ ë¶ì¡±",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"ê²ìì´ ì§í ì¤ì
ëë¤. ê²ìì ì¤ì§í í íì¸í´ 주ì¸ì.",TOKEN_TIME_OUT:"ì¸ì
ì´ ë§ë£ëììµëë¤. ë¤ì ë¡ê·¸ì¸í´ì£¼ì¸ì.",BET_LIMIT:"[{{playName}}] ë°°í
íë: {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"ë°°í
íë: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"ìµë ë°°í
íë({{amount}})를 ì´ê³¼íìµëë¤.",GAME_PARAM_ERROR:"ìµëì¹ë¥¼ ì´ê³¼íììµëë¤ > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"ë°°í
ê¸ì¡ì´ íì© íë를 ì´ê³¼íìµëë¤.",PLAYID_CLOSED:"ê´ë ¨ë ê²½ê¸°ê° ììµëë¤. ë¤ì ìëí´ì£¼ì¸ì.",PARAMETER_REQUIRED:"ì못ë ë°°í
ì
ëë¤. ë¤ì ìëí´ì£¼ì¸ì.",IS_LOCK_TIME:"ë°°í
ì¤í¨, ì´ ê²½ê¸°ë ì 겨 ììµëë¤.",INVALID_TOKEN:"ì¸ì
ì´ ë§ë£ëììµëë¤. ëì¤ì ë¤ì ìëí´ì£¼ì¸ì.",SYSTEM_ERROR:"ë°°í
ì¤í¨, ìì¤í
ì¤ë¥ì
ëë¤.",IN_BALANCE:"ìì¡ìì",BET_LOCKED:"ë°°í
ì ê¹",PLEASE_BET_NOW:"ì§ê¸ ë°°í
íì¸ì",AUTO_BET_ON:"ìë ë°°í
ì´ íì±íë¨",AUTO_BET_OFF:"ìë ë°°í
ì´ ë¹íì±íë¨",TRAIL_NOT_SUPPORT:"ë¹íê°",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"ë³´ëì¤ë¥¼ ì§ì ë ê²ìì ì¬ì©íì¸ì. ì ì²í ë³´ëì¤ì ë² í
ì¡°ê±´ì ìì§ ì¶©ì¡±íì§ ëª»íìµëë¤.",SYSTEM_TIME_OUT:"ê³ ê°ëê»ì ì ìíì ì§ìì ì¼ìì ì¼ë¡ ì ê·¼ì´ ì íë ì§ìì
ëë¤.",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"ê²ì íë§¤ê° ì¤ì§ëììµëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì.",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"ê°ì í목ì ëí ë² í
ì í ë²ë§ ê°ë¥í©ëë¤.",betting:"íì¸",min_bet:"ìµì ë² í
",max_bet:"ìµë ë² í
",big:"í°",small:"ìì",cancel:Ge,all_in:"All in",repeat:"ë°ë³µ",bet_now:"íì¸",balance:"ìì¡"},Baccarat:{no:"ì«ì:",limit:"íë",banker:Re,player:Oe,tie:Me,bankerPair:Ze,playerPair:De,confirm:Le,cancel:Ge,"comm switch":"ììë£ ì í","no commission":"ììë£ ìì",commission:"ììë£","text-1":"ìíìì ì´ë¤ ì ìë¡ë ì¹ë¦¬íë©°, ì§ë¶ë¥ ì 1:{{bonus}}ì
ëë¤. 무ì¹ë¶ì¼ ê²½ì° ë² í
ê¸ì¡ì´ ë°íë©ëë¤.","text-2":"ìíìì ì´ë¤ ì ìë¡ë ì¹ë¦¬íë©°, ì§ë¶ë¥ ì 1:{{bonus}}ì
ëë¤. 6ì 무ì¹ë¶ì ê²½ì° ì§ë¶ë¥ ì 1:{{bonusHalf}}ì´ë©°, 무ì¹ë¶ì¼ ê²½ì° ë² í
ê¸ì¡ì´ ë°íë©ëë¤."},Baucua:{game_name:"Fish Prawn Crab"},Mines:{bet:"ë´ê¸°",title:"ì§ë¢°",start:"ìì",cancel:"ì·¨ì"},ChickenRoad:{start:"ìì",cancel:"ì·¨ì"}},GamesIntro:{description:"ì¤ëª
",rules:"ê²ì ê·ì¹",title:"ì¤ëª
",odds:"ë°°ë¹ê¸",betBlock:"ë² í
구ì",MIN_BET:"ìµì",MAX_BET:"ìµë",MAX_BET_PER_DRAW:"ë´ê¸° ìµë",GAME_MAX_BET_PER_BET:"ê²ì ìµë ë² í
ê¸ì¡",GAME_MAX_BET_PER_DRAW:"ê²ì ë¨ì¼ ê¸°ê° ìµë ë² í
",MAX_BONUS_PER_BET:"주문 ë¹ ìµë ì§ë¶ê¸(ìê¸ í¬í¨)",MAX_BONUS_PER_DRAW:"ê¸°ê° ë¹ ìµë ì§ë¶ê¸ ë¹ì¨(ìê¸ í¬í¨)",MAX_PROFIT_PER_DRAW:"ì´ìµ ë¹ ìµë ì§ë¶ê¸(ìê¸ ì ì¸)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"ë¨ì¼ ë² í
ë¹ ìµë ë³´ëì¤ íë를 ì´ê³¼íìµëë¤ (í ë² ì¶ì²¨ë¹). ìì¤í
ì ìµë íë를 ì´ê³¼í ê²½ì° ë³´ëì¤ë¥¼ ìëì¼ë¡ ì°¨ê°í©ëë¤.",Taixiu:{key1:"ì´ ê²ìì 3ê°ì 주ì¬ìë¡ ì§íëë©°, 11~18ì í©ê³ë [í°], 3~10ì í©ê³ë [ìì]ì
ëë¤.",key2:"[í°] ëë [ìì] ì¤ ì´ë 쪽ì¼ë¡ 결과를 ì측íê³ ë² í
í ì ììµëë¤(í ìª½ë§ ì í ê°ë¥í©ëë¤).",key3:"ë² í
í ê¸ì¡ì ì
ë ¥íê³ ëì를 ëë¬ ì측ì ìë£í©ëë¤.",key4:"ë³ëì± ê¸°ê°ì´ ì¢
ë£ë기 ì ì ì´ë¤ ê¸ì¡ì ë¤ì¤ ë² í
ì´ ê°ë¥í©ëë¤.",key5:"í¬ê¸° ì¢
ë£ ìì ì [í°]ê³¼ [ìì]ì ì´ë² í
ê¸ì¡ì ì°¨ì´ê° ìë ê²½ì°, ì°¨ì¡ì´ íë ì´ì´ìê² ë°íë©ëë¤. (첫 ë²ì§¸ë¡ ë² í
í íë ì´ì´ê° ì°ì ê¶ì ê°ì§ëë¤.)",key6:"ê²°ê³¼ì ë¶íì¤ì±ì¼ë¡ ì¸í´ ê²ì ë¼ì´ëê° ë¬´í¨í ë©ëë¤."},Xocdia:{descriptionText:"Xocdiaë ë² í¸ë¨ìì ë§¤ì° ì¸ê¸°ìë 주ì¬ì ê²ìì
ëë¤. ì´ ê²ìììë 4 ê°ì ìë¡ ë¤ë¥¸ ììì ëì ì ì¬ì©í©ëë¤. íë ì´ì´ë ëª ê°ì ëì ê²°ê³¼ì 기ë°íì¬ íë©´ì ëìíë ìµì
ì ë² í
í©ëë¤. íì´ì ë¹ëë¤!",even:"ì§",odd:"í",big:"í°",small:"ìì","even-des":"빨ê°ì ëë í°ì ëì ì´ ë¤ ê°ì´ë©°, 빨ê°ì ëì ì´ ë ê°, í°ì ëì ì´ ë ê°ì
ëë¤.","odd-des":"빨ê°ì ëì ì´ ì¸ ê°, í°ì ëì ì´ íëì´ê±°ë, í°ì ëì ì´ ì¸ ê°, 빨ê°ì ëì ì´ íëì
ëë¤.","big-des":"빨ê°ì ëì ì´ ë¤ ê° ë
1ë 빨ê°ì ëì ì´ ì¸ ê°, í°ì ëì ì´ íëì
ëë¤.","small-des":"í°ì ëì ì´ ë¤ ê° ëë í°ì ëì ì´ ì¸ ê°, 빨ê°ì ëì ì´ íëì
ëë¤.","all-color":"모ë ëì ì´ ë¹¨ê°ì ëë í°ìì","color3-1":"빨ê°ì ëì ì´ ì¸ ê°ì´ê³ íëì í°ì ëì ì´ ìê±°ë, í°ì ëì ì´ ì¸ ê°ì´ê³ íëì 빨ê°ì ëì ì´ ìì",lose:"ì»ì ê±´ ìì"},Baucua:{description:"ì¤ëª
","game rule":"ê²ìê·ì¹",descriptionText:"Fish Prawn Crabì ê° ë©´ì 기í¸ê° ìë ì¸ ê°ì 주ì¬ì를 ì¬ì©íë ì¸ê¸°ìë 주ì¬ì ê²ìì
ëë¤. 기í¸ë ì§ìì ë°ë¼ ë¤ë¥¼ ì ìì§ë§, 주ë ì¸ ê°ì 기í¸ë ë¬¼ê³ ê¸°, ìì° ë° ê²ì
ëë¤.","win multiplier":"ì¹ë¦¬ ë°°ì",symbol:"기í¸",bet:"ë² í
","outcome example":"ê²°ê³¼ ì",payout:"ì°¸ê°ë¹",win:"ì¹ë¦¬",lose:"í¨ë°°"},ColorGame:{description:"ë¤ìí ë³´ê¸ììì ëìì ë² í
í ì ìë ì¬ì¯ ê°ì§ ë¤ë¥¸ ììì ì¸ ê°ì 주ì¬ì를 ì¬ì©íì¬ ë² í
ì í ì ììµëë¤.\n ì¶ì²¨ ì¤ì 주ì¬ìê° êµ´ë¬ ê°ë©´ ì¹ë¦¬íë ììì ìë¡ ê°ë¦¬í¤ë 주ì¬ìë©´ì¼ë¡ ê²°ì ë©ëë¤.\n ë² í
ìììì ì측 í ììì ì ííê³ í° ìê¸ì íëí기 ìí´ íì´ì ë¹ëë¤!",amount:"ê¸ì¡",oneDice:"í 주ì¬ì",twoDice:"ë 주ì¬ì",threeDice:"ì¸ ì£¼ì¬ì"},Baccarat:{rule_description:'8ê°ì ì¹´ë ë±(조커 ìì) 8ë± ì´ 416ì¥ì¼ë¡ ì§íë©ëë¤. íë ì´ì´ì ë±
커 ë ë¤ 2ì¥ì ì¹´ë를 ë°ê³ 먼ì íë ì´ì´ìê², ê·¸ ë¤ì ë±
커ìê² ì¹´ë를 ë½ìµëë¤(ì¹´ë ì¤í ìì ëì¼); 첫 ë¼ì´ëìì ì¹ìê° ìì¼ë©´ "ì¹´ë ê·ì¹"ì ë°ë¼ ì¹´ë를 í ì¥ ë ë½ìµëë¤; ì¶ê° ì¹´ëë ìµë í ì¥ë§ ë ë½íëë¤; íë ì´ì´ ëë ë±
커ì í©ì´ 8 ëë 9ì ì´ë©´ ë¼ì´ëë ì²ì 4ì¥ì ì¹´ëë¡ ì¢
ë£ë©ëë¤; ìµì¢
ê²°ê³¼ë "íë ì´ì´"ì "ë±
커"ì í¨ê° ë¹êµë¡ ê²°ì ë©ëë¤.',play:"íë ì´",bonus:"ë³´ëì¤",limit:"íë",classic:"í´ëì",6106:"ë±
커 (ììë£ ìì)",6107:"ë±
커 (ììë£)",6108:"íë ì´ì´",6109:"무ì¹ë¶",6110:"ë±
커 íì´",6111:"íë ì´ì´ íì´"},BacBo:{description:"ìíê°ì íë ì´ì´ë ê°ê° 2ê°ì 주ì¬ì를 ì¬ì©í©ëë¤. ë ê³³ì ëìì ë² í
í ì ììµëë¤. ë 주ì¬ìì í©ì´ ë í° ìª½ì´ ì¹ë¦¬í©ëë¤.ë² í
ì¸í°íì´ì¤ìì ì측 결과를 ì ííê³ ëë°ì 기ìí©ëë¤!",rulesText:"ì ìê° ê°ì¼ë©´ 무ì¹ë¶ì´ë©°, ì ìì ë°ë¼ ë¤ë¥¸ ë°°ë¹ë¥ ì´ ì ì©ë©ëë¤.",banker:Re,player:Oe,tie:Me},Mines:{description:"ì´ê³ ë°°ë¹, ìí ì íì´ ê°ë¥í ì§ë¢° ê²ì! ííì ì¡°ì¬íì¸ì!\n\níë ì´ì´ë ë² í
í ì무 ëì´ë í´ë¦í ì ìì¼ë©°, ìì (crystal)ì´ ëì¤ë©´ ì ì를 ëì í ì ììµëë¤.\nê³ì ëì í´ë¦íê±°ë ì ì를 ì¸ì¶í ì ìì¼ë©°, ííì´ ëì¤ë©´ 모ë ëì ì ì를 ìê² ë©ëë¤.\n\në² í
í ë¤í¸ìí¬ê° ë길 ê²½ì°, ìì¤í
ì´ ìëì¼ë¡ 'íì 'ì ì ííì¬ ë°°ë¹ê¸ì ì ì°íê³ ê²ìì ì¢
ë£í©ëë¤."},ChickenRoad:{description:"1. ë² í
ê¸ì¡ì ì ííì¸ì\r\n\r\n2. ììì í´ë¦íì¸ì\r\n\r\n3. ê²°ê³¼ë ì±ê³µ ëë ì¤í¨ì¼ ì ììµëë¤. ì±ê³µíë©´ ê³ì ì§ííê±°ë íê¸ ì¸ì¶í ì ììµëë¤",easy:"ì¬ì",medium:"ì¤ê°",hard:"ëì",ace:"ìì´ì¤"},Keno:{description:"ì´ 40ê°ì ì«ìë¡ êµ¬ì±ë ê°ë¨í ë¹ê³ ê²ìì
ëë¤. ê° ë¼ì´ëë§ë¤ 10ê°ì ì«ìê° ì¶ì²¨ë©ëë¤. íë ì´ì´ë ìµë 10ê°ì ì«ì를 ì ííì¬ ë² í
í ì ììµëë¤. ë§í ì«ìê° ë§ììë¡ ë°°ë¹ë¥ ì´ ëìì§ëë¤. ì측í 결과를 ì ííê³ í° ì¹ë¦¬ë¥¼ ê±°ëì¸ì!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"ë¹¨ê° í ì¹ / íë í ì¹ / 무ì¹ë¶ì ë² í
í기"}},GamesDrawHistory:{title:"ìµê·¼ ì¶ì²",history:"경기 기ë¡",numero:"ì¶ì²¨ ë²í¸",results:"ê²°ê³¼",Baccarat:{ratio_description:"ìµê·¼ 50ê²ììì ë±
커, íë ì´ì´, 무ì¹ë¶ì ì¹ë¥ ",banker:Re,player:Oe,tie:Me,series:"ì«ì",win:Be}},GamesBetHistory:{today:"ì¤ë",yesterday:"ì´ì ","no data":"ë°ì´í° ìì",isError:"ì¡°í ì¤ ì¤ë¥ê° ë°ìíìµëë¤. ë¤ì ìëí´ ì£¼ì¸ì.","personal cancel order":"ì기ì 주문ì ì·¨ìíë¤","no draw":"ì¶ì²¨ ìì",isWon:"ì¹ë¦¬","not winning":"ì¹ë¦¬ 못í¨","empty draw":"ë¹ ì¶ì²¨",tie:"무ì¹ë¶",no_series:"ìë¦¬ì¦ {{number}}","game subTotal":"ìê³","game win":"ì¹ë¦¬",betAmount:"ë² í
ê¸ì¡",Taixiu:{title:"ë² í
",game:"ê²ì",play:"íë ì´",odds:"ë°°ë¹",valid_bet:"ì í¨í ë² í
",status:"ìí",no:"ë²í¸",no_data:"ë°ì´í° ìì",win:Be,lose:Ae},ColorGame:{betAmount:"ë² í
ê¸ì¡",winAmount:"ë¹ì²¨ ê¸ì¡",win:Be,lose:Ae},Baccarat:{win:Be,lose:Ae,bet:"ë² í
",banker:Re,player:Oe,tie:Me,bankerPair:Ze,playerPair:De,"no comm":"ììë£ ìì",comm:"ììë£"},BacBo:{banker:Re,player:Oe,tie:Me}}
1,RoadChart:{banker:"ìí",player:"íë ì´ì´",tie:"무ì¹ë¶"}},dialog:{TOKEN_EXPIRED:"í í°ì´ ë§ë£ëììµëë¤."},others:{cancelOrder:{success:"ì£¼ë¬¸ì´ ì±ê³µì ì¼ë¡ ì·¨ìëììµëë¤.",fail:"주문 ì·¨ì ì¤í¨",notDrawable:"ì£¼ë¬¸ì´ ë§ê¸°ëì´ ì·¨ìí ì ììµëë¤.",notAvailable:"주문ì ì·¨ìí ì ììµëë¤. ë½ ê¸°ê°ì ì·¨ì를 íì©íì§ ììµëë¤.",notFound:"주문ì ì·¨ìí ì ììµëë¤. ì£¼ë¬¸ì´ ììµëë¤."}},hook:{}}},Ue="Vitória",qe="Derrota",ze="Banqueiro",Fe="Jogador",Ve="Empate",He="Par do Banqueiro",Ye="Par do Jogador",Xe="Limite",Ke="Confirmar",Qe="Cancelar",Je={translation:{components:{calculator:{hidden:"Esconder",clear:"Limpar",confirm:Ke,cancel:Qe},BallLists:{small:"Pequeno",big:"Grande",odd:"Ãmpar",even:"Par",dragon:"Dragão",tiger:"Tigre"},Alert:{systemNotice:"Notificação do Sistema",confirm:Ke,cancel:Qe}},containers:{errorPanel:{loginTip:"Sua sessão expirou, por favor tente novamente mais tarde",close:"Fechar",CONFIRM:Ke,SYSTEM_MESSAGE:"Mensagem do Sistema",WARNING:"Aviso"},GamesPanel:{betting:"Apostando ...",bettingSuccess:"Aposta bem-sucedida: {{totalBettingAmount}}",win:"Vencer {{amount}}",BALANCE_NOT_ENOUGH:"Saldo insuficiente",BALANCE_NOT_ENOUGH_ERROR:"Saldo insuficiente",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"O jogo está em andamento. Por favor, pare o jogo antes de visualizar.",TOKEN_TIME_OUT:"Sua sessão expirou, por favor faça login novamente",BET_LIMIT:"Limites de aposta para [{{playName}}]: {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"Limites de aposta: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"A quantidade de apostas ultrapassou o limite de {{amount}}",GAME_PARAM_ERROR:"O valor da aposta está acima do limite> {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"O valor da sua aposta ultrapassou o limite permitido",PLAYID_CLOSED:"Nenhuma recreação relacionada encontrada, por favor, tente novamente.",PARAMETER_REQUIRED:"Aposta incorreta, por favor tente novamente.",IS_LOCK_TIME:"Falha na aposta, esta loteria está bloqueada",INVALID_TOKEN:"Sua sessão expirou, por favor tente novamente mais tarde",SYSTEM_ERROR:"Falha na aposta, erro de sistema",IN_BALANCE:"Em equilÃbrio",BET_LOCKED:"APOSTA BLOQUEADA",PLEASE_BET_NOW:"POR FAVOR, APOSTE AGORA",AUTO_BET_ON:"Aposta automática ativada",AUTO_BET_OFF:"Aposta automática desativada",TRAIL_NOT_SUPPORT:"Sem permissão",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"Aposte seu bônus em jogos especÃficos. Você ainda não cumpriu os requisitos de aposta para o bônus reivindicado.",SYSTEM_TIME_OUT:"O local de onde você está tentando acessar o site está restrito no momento.",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"Jogo temporariamente indisponÃvel, tente novamente mais tarde",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"Apenas uma aposta lateral é permitida para a mesma entrada.",betting:"confirmar",min_bet:"mÃnima",max_bet:"máxima",big:"Grande",small:"Pequena",cancel:Qe,all_in:"All in",repeat:"Repetir",bet_now:"confirmar",balance:"Saldo"},Baccarat:{no:"Número:",limit:Xe,banker:ze,player:Fe,tie:Ve,bankerPair:He,playerPair:Ye,confirm:Ke,cancel:Qe,"comm switch":"Alternar comissão","no commission":"Sem comissão",commission:"Comissão","text-1":"O banqueiro vence com qualquer pontuação, a taxa de pagamento é de 1:{{bonus}}; em caso de empate, o valor apostado é devolvido.","text-2":"O banqueiro vence com qualquer pontuação, a taxa de pagamento é de 1:{{bonus}}; em caso de empate com 6 pontos, a taxa de pagamento é de 1:{{bonusHalf}}; em caso de empate, o valor apostado é devolvido."},Baucua:{game_name:"Caranguejo Camarão Peixe"},Mines:{bet:"Aposta",title:"Minas",start:"Começar",cancel:"Cancelar"},ChickenRoad:{start:"Começar",cancel:"Cancelar"}},GamesIntro:{description:"Descrição",rules:"Regras do jogo",title:"Descrição",odds:"Pagamentos",betBlock:"Ãrea de Apostas",MIN_BET:"Aposta mÃnima",MAX_BET:"Aposta máxima",MAX_BET_PER_DRAW:"Aposta máxima por sorteio",GAME_MAX_BET_PER_BET:"Valor máximo de aposta única",GAME_MAX_BET_PER_DRAW:"Valor máximo de aposta por perÃodo",MAX_BONUS_PER_BET:"Pagamento máximo por aposta(incluindo o principal)",MAX_BONUS_PER_DRAW:"Pagamento máximo por sorteio(incluindo o principal)",MAX_PROFIT_PER_DRAW:"Pagamento máximo por lucro(excluir o principal)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"O bônus excede o limite m
1áximo de bônus por aposta (por sorteio). O sistema deduzirá automaticamente o bônus se ele exceder o limite máximo.",Taixiu:{key1:"O jogo é jogado com 3 dados, para a soma total dos pontos 11~18 é [Grande], 3~10 é [Pequeno].",key2:"Você só precisa prever o resultado como [Grande] ou [Pequeno] e apostar em qualquer um dos lados (você só pode escolher um lado para apostar).",key3:"Insira a quantia que deseja apostar e clique em concordar para concluir a previsão.",key4:"Você pode fazer apostas múltiplas de qualquer valor antes que o tempo de aposta expire.",key5:"Se houver uma diferença no valor total da aposta entre [Big] e [Small] ao final do tempo de aposta, a diferença será devolvida ao jogador (o primeiro a fazer uma aposta terá prioridade).",key6:"No caso de qualquer avaria que torne o resultado do jogo indeciso, a ronda do jogo será inválida."},Xocdia:{descriptionText:"Xocdia é um jogo de dados muito popular no Vietnã. O jogo usa quatro moedas de cores diferentes. Os jogadores fazem uma aposta com base no resultado das quatro moedas e selecionam a opção correspondente na tela de apostas. Boa sorte!",even:"Par",odd:"Ãmpar",big:"Grande",small:"Pequeno","even-des":"Quatro moedas vermelhas ou brancas, duas vermelhas e duas brancas","odd-des":"Três moedas vermelhas e uma branca, três moedas brancas e uma vermelha","big-des":"Quatro moedas vermelhas ou três moedas vermelhas e uma branca","small-des":"Quatro moedas brancas ou três moedas brancas e uma vermelha","all-color":"Todas as moedas são vermelhas ou brancas","color3-1":"Aposta em três moedas vermelhas e uma branca ou três moedas brancas e uma vermelha",lose:"Sem ganhos"},Baucua:{description:"Descrição","game rule":"Regras do Jogo",descriptionText:"Fish Prawn Crab é um jogo de dados popular que usa três dados com sÃmbolos em cada face. Os sÃmbolos podem variar de acordo com a região, mas os três principais são Peixe, Camarão e Caranguejo.","win multiplier":"Multiplicador de vitórias",symbol:"SÃmbolo",bet:"Aposta","outcome example":"Exemplo de Resultado",payout:"Pagamento",win:"Vitória",lose:"Derrota"},ColorGame:{description:"Usando três dados com seis cores diferentes, você pode fazer apostas em várias áreas de apostas simultaneamente. \n Quando os dados são lançados durante o sorteio, a cor vencedora é determinada pela face do dado que está virada para cima. \n Escolha a cor que você prevê nas áreas de apostas e boa sorte para você em ganhar o grande prêmio!",amount:"Montante",oneDice:"UM DADO",twoDice:"DOIS DADOS",threeDice:"TRÃS DADOS"},Baccarat:{rule_description:'O jogo é jogado com 8 baralhos de cartas (sem coringas), totalizando 416 cartas; "Jogador" e "Banqueiro" recebem duas cartas cada, primeiro "Jogador" e depois "Banqueiro" (a ordem de abertura das cartas é a mesma); se não houver vencedor na primeira rodada, mais uma carta será distribuÃda de acordo com as "regras de cartas"; no máximo, apenas uma carta adicional será distribuÃda para determinar o resultado; se o "Jogador" ou o "Banqueiro" tiverem um total de 8 ou 9 pontos, a rodada será encerrada com as primeiras 4 cartas; o resultado final é determinado pela comparação dos valores das mãos do "Jogador" e do "Banqueiro".',play:"Jogar",bonus:"Bônus",limit:Xe,classic:"Clássico",6106:"Banqueiro (Sem comissão)",6107:"Banqueiro (Comissão)",6108:"Jogador",6109:"Empate",6110:"Par do Banqueiro",6111:"Par do Jogador"},BacBo:{description:"O banqueiro e o jogador usam 2 dados cada um. Você não pode apostar no banqueiro e no jogador ao mesmo tempo. O lado vencedor é aquele com a soma maior dos dois dados.Selecione o resultado que você prevê na interface de apostas e boa sorte para ganhar o grande prêmio!",rulesText:"Se os pontos forem iguais, é um empate, e diferentes probabilidades se aplicam com base nos pontos.",banker:ze,player:Fe,tie:Ve},Mines:{description:"Pagamento super alto com risco personalizável â um jogo de campo minado emocionante! Cuidado com os explosivos!\n\nApós fazer uma aposta, os jogadores tocam em qualquer pedra\nSe revelar um cristal, os ganhos são acumulados\nVocê pode então escolher continuar tocando nas pedras para aumentar seus ganhos, ou sacar a qualquer momento\nMas se você acertar um explosivo â você perde todos os ganhos acumulados\n\nSe você for desconectado após fazer uma aposta, o sistema escolherá automaticamente âSacarâ e encerrará o jogo"},ChickenRoad:{description:"1. Escolha o valor da sua aposta\r\n\r\n2. Clique em iniciar\r\n\r\n3. O resultado pode ser sucesso ou falha. Se for bem-sucedido, pode-se escolher prosseguir ou cash out",easy:"fácil",medium:"médio",hard:"difÃcil",ace:"ace"},Keno:{description:"Um jogo de Keno simples com um total de 40 números. Cada rodada sorteia 10 números. Os jogadores podem escolher até 10 números para apostar. Quanto mais números acertar, maior será o prêmio. Escolha o resultado que você acha e boa s
1orte para ganhar um grande prêmio!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"Aposte em Vitória Vermelha / Vitória Azul / Empate"}},GamesDrawHistory:{title:"Sorteios Recentes",history:"Histórico de Sorteios",numero:"Número do Sorteio",results:"Resultados",Baccarat:{ratio_description:"Proporção de vitórias do Banqueiro, Jogador e Empate nos últimos 50 jogos",banker:ze,player:Fe,tie:Ve,series:"Número",win:Ue}},GamesBetHistory:{today:"Hoje",yesterday:"Ontem","no data":"Nenhum dado encontrado",isError:"Erro ao consultar, por favor tente novamente","personal cancel order":"Ordem cancelada pessoalmente","no draw":"Sem sorteio",isWon:"Ganho","not winning":"Sem ganho","empty draw":"Sorteio vazio",tie:"Empate",no_series:"Série {{number}}","game subTotal":"Subtotal","game win":"Vitória",betAmount:"Valor da Aposta",Taixiu:{title:"Apostas",game:"Jogo",play:"Jogar",odds:"Odds",valid_bet:"Aposta válida",status:"Status",no:"Nº",no_data:"Sem dados",win:Ue,lose:qe},ColorGame:{betAmount:"Valor da Aposta",winAmount:"Valor Ganho",win:Ue,lose:qe},Baccarat:{win:Ue,lose:qe,bet:"Apostar",banker:ze,player:Fe,tie:Ve,bankerPair:He,playerPair:Ye,"no comm":"Sem comissão",comm:"Comissão"},BacBo:{banker:ze,player:Fe,tie:Ve}},RoadChart:{banker:"B",player:"J",tie:"E"}},dialog:{TOKEN_EXPIRED:"O TOKEN expirou"},others:{cancelOrder:{success:"Ordem cancelada com sucesso",fail:"Falha ao cancelar a ordem",notDrawable:"A ordem expirou e não pode ser cancelada",notAvailable:"Falha ao cancelar a ordem, perÃodo de bloqueio não permite cancelamentos",notFound:"Falha ao cancelar a ordem, a ordem não existe"}},hook:{}}},$e="à¸à¸à¸°",en="à¹à¸à¹",nn="à¹à¸à¹à¸²à¸¡à¸·à¸",tn="à¸à¸¹à¹à¹à¸¥à¹à¸",an="à¹à¸ªà¸¡à¸",rn="à¸à¸¹à¹à¹à¸à¹à¸²à¸¡à¸·à¸",on="à¸à¸¹à¹à¸à¸¹à¹à¹à¸¥à¹à¸",cn="à¸à¸³à¸à¸±à¸",sn="ยืà¸à¸¢à¸±à¸",un="ยà¸à¹à¸¥à¸´à¸",ln="à¹à¸¡à¹à¸¡à¸µà¸à¹à¸²à¹à¸à¹à¸à¹à¸²à¸¢",dn="à¸à¹à¸²à¹à¸à¹à¸à¹à¸²à¸¢",mn={translation:{components:{calculator:{hidden:"à¸à¹à¸à¸",clear:"ลà¹à¸²à¸",confirm:sn,cancel:un},BallLists:{small:"à¹à¸¥à¹à¸",big:"à¹à¸«à¸à¹",odd:"à¸à¸µà¹",even:"à¸à¸¹à¹",dragon:"มัà¸à¸à¸£",tiger:"à¹à¸ªà¸·à¸"},Alert:{systemNotice:"à¸à¸²à¸£à¹à¸à¹à¸à¹à¸à¸·à¸à¸à¸£à¸°à¸à¸",confirm:sn,cancel:un}},containers:{errorPanel:{loginTip:"หมà¸à¹à¸§à¸¥à¸²à¸à¸²à¸£à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸ à¹à¸à¸£à¸à¸¥à¸à¸à¸£à¸°à¸§à¸±à¸à¸´à¸à¸²à¸£à¹à¸à¹à¸à¸²à¸à¸à¸µà¹à¹à¸à¸£à¸²à¸§à¹à¹à¸à¸à¸£à¹ à¸à¸²à¸à¸à¸±à¹à¸à¹à¸«à¸¥à¸à¹à¸à¸¡à¸«à¸£à¸·à¸à¹à¸à¹à¸²à¸ªà¸¹à¹à¸£à¸°à¸à¸à¹à¸«à¸¡à¹à¸à¸µà¸à¸à¸£à¸±à¹à¸ หาà¸à¸¢à¸±à¸à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸à¹à¸²à¸£à¸°à¸à¸à¹à¸à¹ à¹à¸à¸£à¸à¸à¸´à¸à¸à¹à¸à¸à¹à¸²à¸¢à¸à¸£à¸´à¸à¸²à¸£à¸¥à¸¹à¸à¸à¹à¸²",close:"à¸à¸´à¸",CONFIRM:sn,SYSTEM_MESSAGE:"à¸à¹à¸à¸à¸§à¸²à¸¡à¸£à¸°à¸à¸",WARNING:"à¸à¸³à¹à¸à¸·à¸à¸"},GameName:{taixiu:"à¸à¸à¸²à¸"},GameBetting:{tai:"à¹à¸«à¸à¹",xiu:"à¹à¸¥à¹à¸"},GamesPanel:{betting:"à¸à¸³à¸¥à¸±à¸à¹à¸à¸´à¸¡à¸à¸±à¸ ...",bettingSuccess:"à¸à¸³à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸ªà¸³à¹à¸£à¹à¸ : {{totalBettingAmount}}",win:"à¸à¸à¸°à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥ {{amount}}",odds:"à¸à¸±à¸à¸£à¸²à¸ªà¸¹à¸",totalBet:"ยà¸à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¸£à¸§à¸¡",player:"à¸à¸¹à¹à¹à¸¥à¹à¸",BALANCE_NOT_ENOUGH:"ยà¸à¸à¸à¸à¹à¸«à¸¥à¸·à¸à¹à¸¡à¹à¸à¸",BALANCE_NOT_ENOUGH_ERROR:"ยà¸à¸à¸à¸à¹à¸«à¸¥à¸·à¸à¹à¸¡à¹à¸à¸",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"à¹à¸à¸¡à¸à¸³à¸¥à¸±à¸à¸à¸³à¹à¸à¸´à¸à¸à¸¢à¸¹à¹ à¸à¸£à¸¸à¸à¸²à¸«à¸¢à¸¸à¸à¹à¸à¸¡à¸à¹à¸à¸à¸à¸³à¸à¸²à¸£à¸à¸£à¸§à¸à¸ªà¸à¸",TOKEN_TIME_OUT:"à¹à¸à¸ªà¸à¸±à¸à¸à¸à¸à¸à¸¸à¸à¸«à¸¡à¸à¸à¸²à¸¢à¸¸à¹à¸¥à¹à¸§ à¸à¸£à¸¸à¸à¸²à¹à¸à¹à¸²à¸ªà¸¹à¹à¸£à¸°à¸à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸",BET_LIMIT:"[{{playName}}] สูà¸à¸ªà¸¸à¸à¸à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ï¼ {{rangeStr}}",BET_LIMIT_NO_PLAYNAME:"สูà¸à¸ªà¸¸à¸à¸à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ï¼ {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¸à¸µà¹à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¸´à¸à¸à¹à¸§à¸ {{amount}} à¸à¸²à¸",GAME_PARAM_ERROR:"รายà¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¹à¸¡ > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"à¹à¸à¸´à¹à¸¡à¸à¸¹à¸à¹à¸à¸´à¸à¸à¸³à¸à¸§à¸à¸à¸µà¹à¸à¸à¸¸à¸à¸²à¸",PLAYID_CLOSED:"à¹à¸à¸¡à¸à¸µà¹à¸à¸¢à¸¹à¹à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸²à¸£à¸à¸£à¸±à¸à¸à¸£à¸¸à¸à¸à¸£à¸¸à¸à¸²à¸¥à¸à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸à¹à¸à¸ ายหลัà¸!",PARAMETER_REQUIRED:"à¹à¸¡à¹à¸à¸à¸£à¸²à¸¢à¸¥à¸°à¹à¸à¸µà¸¢à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ à¹à¸à¸£à¸à¸¥à¸à¸à¹à¸«à¸¡à¹à¸à¸µà¸à¸à¸£à¸±à¹à¸",IS_LOCK_TIME:"à¸
1ารà¹à¸à¸´à¸¡à¸à¸±à¸à¸¥à¹à¸¡à¹à¸«à¸¥à¸§ à¹à¸à¸¡à¸à¸µà¹à¹à¸à¹à¸²à¸ªà¸¹à¹à¸£à¸°à¸¢à¸°à¹à¸§à¸¥à¸²à¸à¸²à¸£à¸¥à¹à¸à¸",INVALID_TOKEN:"à¹à¸§à¸¥à¸²à¹à¸à¹à¸à¸²à¸à¸«à¸¡à¸ à¸à¸£à¸¸à¸à¸²à¸¥à¸à¸à¸£à¸°à¸§à¸±à¸à¸´à¸à¸²à¸£à¹à¸à¹à¸à¸²à¸à¹à¸à¹à¸à¸£à¸²à¸§à¹à¹à¸à¸à¸£à¹à¹à¸¥à¹à¸§à¹à¸«à¸¥à¸à¹à¸à¸¡à¸«à¸£à¸·à¸à¸¥à¸à¸à¸·à¹à¸à¹à¸à¹à¸²à¹à¸à¹à¹à¸«à¸¡à¹ หาà¸à¸¢à¸±à¸à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸à¹à¸²à¸ªà¸¹à¹à¸£à¸°à¸à¸à¹à¸à¹ à¸à¸£à¸¸à¸à¸²à¸à¸´à¸à¸à¹à¸à¸à¹à¸²à¸¢à¸à¸£à¸´à¸à¸²à¸£à¸¥à¸¹à¸à¸à¹à¸²",SYSTEM_ERROR:"à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸¥à¹à¸¡à¹à¸«à¸¥à¸§ à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸£à¸°à¸à¸",IN_BALANCE:"รà¸à¸à¸£à¸±à¸",BET_LOCKED:"BET LOCKED",PLEASE_BET_NOW:"PLEASE BET NOW",AUTO_BET_ON:"à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¸±à¸à¹à¸à¸¡à¸±à¸à¸´à¹à¸à¸´à¸à¹à¸à¹à¸à¸²à¸à¹à¸¥à¹à¸§",AUTO_BET_OFF:"à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¸±à¸à¹à¸à¸¡à¸±à¸à¸´à¸à¸¹à¸à¸à¸´à¸à¹à¸à¹à¸à¸²à¸à¹à¸¥à¹à¸§",TRAIL_NOT_SUPPORT:"à¹à¸¡à¹à¸à¸à¸¸à¸à¸²à¸",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"à¹à¸à¹à¹à¸à¸à¸±à¸ªà¸à¸à¸à¸à¸¸à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¹à¸à¸¡à¸à¸µà¹à¸à¸³à¸«à¸à¸ à¸à¸¸à¸à¸¢à¸±à¸à¹à¸¡à¹à¹à¸à¹à¸à¹à¸à¸à¸²à¸¡à¸à¹à¸à¸à¸³à¸«à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¸à¸à¹à¸à¸à¸±à¸ªà¸à¸µà¹à¸à¸à¸£à¸±à¸",SYSTEM_TIME_OUT:"à¸à¸£à¸¸à¸à¸²à¸à¸£à¸§à¸à¸ªà¸à¸à¸ªà¸±à¸à¸à¸²à¸à¸à¸´à¸à¹à¸à¸à¸£à¹à¹à¸à¸ à¹à¸¥à¸° ลà¸à¸à¹à¸à¹à¸²à¸£à¸°à¸à¸à¹à¸«à¸¡à¹à¸à¸µà¸à¸à¸£à¸±à¹à¸ หรืภà¸à¸´à¸à¸à¹à¸à¸à¹à¸²à¸¢à¸à¸£à¸´à¸à¸²à¸£à¸¥à¸¹à¸à¸à¹à¸²",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"à¹à¸à¸¡à¸«à¸¢à¸¸à¸à¹à¸«à¹à¸à¸£à¸´à¸à¸²à¸£à¸à¸±à¹à¸§à¸à¸£à¸²à¸§ à¸à¸£à¸¸à¸à¸²à¸¥à¸à¸à¹à¸«à¸¡à¹à¸ ายหลัà¸",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¸à¹à¸²à¸à¸à¸£à¸à¸à¸±à¸à¹à¸à¹à¹à¸à¸µà¸¢à¸à¸à¹à¸²à¸à¹à¸à¸µà¸¢à¸§",betting:"ยืà¸à¸¢à¸±à¸",min_bet:"à¸à¸±à¹à¸à¸à¹à¸³",max_bet:"สูà¸à¸ªà¸¸à¸",big:"สูà¸",small:"à¸à¹à¸³",cancel:un,all_in:"à¸à¸à¸¥à¸à¸´à¸",repeat:"à¸à¸³à¸à¹à¸³",bet_now:"ยืà¸à¸¢à¸±à¸",balance:"ยà¸à¸"},Baccarat:{no:"à¸à¸±à¸à¸«à¸²:",limit:cn,banker:nn,player:tn,tie:an,bankerPair:rn,playerPair:on,confirm:sn,cancel:un,"comm switch":"สลัà¸à¸à¹à¸²à¸à¸à¸¡à¸¡à¸´à¸à¸à¸±à¹à¸à¸à¸£à¸µ","no commission":"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸²à¹à¸à¹à¸à¹à¸²à¸¢",commission:"à¸à¹à¸²à¹à¸à¹à¸à¹à¸²à¸¢","text-1":"หาà¸à¹à¸à¹à¸²à¸¡à¸·à¸à¸à¸à¸°à¸à¹à¸§à¸¢à¹à¸à¹à¸¡à¹à¸à¹ à¸à¸±à¸à¸£à¸²à¸à¹à¸à¸£à¸à¸à¸à¸·à¸ 1:{{bonus}}; à¹à¸à¸´à¸à¸à¹à¸à¸à¸°à¹à¸à¹à¸£à¸±à¸à¸à¸·à¸à¹à¸¡à¸·à¹à¸à¸¡à¸µà¸à¸²à¸£à¹à¸ªà¸¡à¸à¸à¸±à¸","text-2":"หาà¸à¹à¸à¹à¸²à¸¡à¸·à¸à¸à¸à¸°à¸à¹à¸§à¸¢à¹à¸à¹à¸¡à¸à¸·à¹à¸à¸à¸µà¹à¹à¸¡à¹à¹à¸à¹ 6 à¹à¸à¹à¸¡ à¸à¸±à¸à¸£à¸²à¸à¹à¸à¸£à¸à¸à¸à¸·à¸ 1:{{bonus}}; หาà¸à¹à¸à¹à¸²à¸¡à¸·à¸à¸à¸à¸°à¸à¹à¸§à¸¢ 6 à¹à¸à¹à¸¡ à¸à¸±à¸à¸£à¸²à¸à¹à¸à¸£à¸à¸à¸à¸·à¸ 1:{{bonusHalf}}; à¹à¸à¸´à¸à¸à¹à¸à¸à¸°à¹à¸à¹à¸£à¸±à¸à¸à¸·à¸à¹à¸¡à¸·à¹à¸à¸¡à¸µà¸à¸²à¸£à¸à¸±à¸à¸£à¸²à¸à¸§à¸±à¸¥"},Baucua:{game_name:"à¸à¹à¸³à¹à¸à¹à¸²à¸à¸¹à¸à¸¥à¸²"},Mines:{bet:"à¹à¸à¸´à¸¡à¸à¸±à¸",title:"à¹à¸«à¸¡à¸·à¸à¸à¹à¸£à¹",start:"à¹à¸£à¸´à¹à¸¡",cancel:"ยà¸à¹à¸¥à¸´à¸"},ChickenRoad:{start:"à¹à¸£à¸´à¹à¸¡",cancel:"ยà¸à¹à¸¥à¸´à¸"}},GamesIntro:{description:"à¸à¸³à¸à¸à¸´à¸à¸²à¸¢",rules:"à¸à¸à¹à¸à¸¡",title:"à¸à¸³à¸à¸à¸´à¸à¸²à¸¢",odds:"à¸à¹à¸²à¸¢",betBlock:"à¸à¸·à¹à¸à¸à¸µà¹à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸",MIN_BET:"à¸à¸±à¹à¸à¸à¹à¸³",MAX_BET:"สูà¸à¸ªà¸¸à¸",MAX_BET_PER_DRAW:"à¹à¸à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸à¸§à¸",GAME_MAX_BET_PER_BET:"à¹à¸à¸¡ à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸",GAME_MAX_BET_PER_DRAW:"à¹à¸à¸¡à¸à¸²à¸£à¸¥à¸à¸à¸¸à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸£à¸à¸",MAX_BONUS_PER_BET:"à¸à¸²à¸£à¸à¹à¸²à¸¢à¹à¸à¸´à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸à¸²à¸£à¸ªà¸±à¹à¸à¸à¸·à¹à¸(รวมà¸à¸¸à¸)",MAX_BONUS_PER_DRAW:"à¸à¸±à¸à¸£à¸²à¸à¸²à¸£à¸à¹à¸²à¸¢à¹à¸à¸´à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸à¸§à¸(รวมà¸à¸¸à¸)",MAX_PROFIT_PER_DRAW:"à¸à¸±à¸à¸£à¸à¸³à¹à¸£à¸à¹à¸²à¸¢à¹à¸à¸´à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸à¸§à¸(ยà¸à¹à¸§à¹à¸à¹à¸à¸´à¸à¸à¹à¸)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥à¹à¸à¸´à¸à¸à¸µà¸à¸à¸³à¸à¸±à¸à¸ªà¸¹à¸à¸ªà¸¸à¸à¸à¹à¸à¸à¸²à¸£à¹à¸à¸ (à¸à¹à¸à¸£à¸à¸à¸à¸²à¸£à¸à¸±à¸à¸ªà¸¥à¸²à¸) ระà¸à¸à¸à¸°à¸«à¸±à¸à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥à¹à¸à¸¢à¸à¸±à¸à¹à¸à¸¡à¸±à¸à¸´à¸«à¸²à¸à¹à¸à¸´à¸à¸à¸µà¸à¸à¸³à¸à¸±à¸à¸ªà¸¹à¸à¸ªà¸¸à¸",Taixiu:{key1:"à¹à¸à¸¡à¸à¸µà¹à¹à¸à¹à¸¥à¸¹à¸à¹à¸à¹à¸² 3 ลูภà¸à¸³à¸à¸§à¸à¸à¸°à¹à¸à¸à¸à¸±à¹à¸à¸«à¸¡à¸ 11~18 à¸à¸·à¸ [à¹à¸«à¸à¹] 3~10 à¸à¸·à¸ [à¹à¸¥à¹à¸]",key2:"à¸à¸¸à¸à¹à¸à¹à¸à¸²à¸¢à¸§à¹à¸²à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸°à¹à¸à¹à¸ [à¹à¸«à¸à¹] หรืภ[à¹à¸¥à¹à¸] à¹à¸¥à¸°à¸§à¸²à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¹à¸²à¸¢à¹à¸à¸à¹à¸²à¸¢à¸«à¸à¸¶à¹à¸ (à¹à¸¥à¸·à¸à¸à¹à¸à¹à¹à¸à¸µà¸¢à¸à¸à¹à¸²à¸¢à¹à¸à¸µà¸¢à¸§)",key3:"à¹à¸ªà¹à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¸à¸µà¹à¸à¸¸à¸à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸¥à¸°à¸à¸¥à¸´à¸à¸à¸à¸¥à¸ à¹à¸ªà¸£à¹à¸à¸ªà¸´à¹à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸",key4:"4à¹à¸à¸à¸«à¸¡à¸à¹à¸§à¸¥à¸²à¹à¸à¸´à¸¡à¸à¸±à¸ สามารà¸à¸§à¸²à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¹à¸«à¸¥à¸²à¸¢à¸£à¸²à¸¢à¸à¸²à¸£à¹à¸à¸à¸³à¸à¸§à¸à¹à¸à¹à¸²à¹à¸à¸à¹à¹à¸à¹",key5:"à¹à¸¡à¸·à¹à¸à¸«à¸¡à¸à¹à¸§à¸¥à¸²à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ หาà¸à¸¡à¸µà¸à¸§à¸²à¸¡à¹à¸à¸à¸à¹à¸²à¸à¹à¸à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¸±à¹à¸à¸«à¸¡à¸à¸£à¸°à¸«à¸§à¹à¸²à¸ [à¹à¸«à¸à¹] à¹à¸¥à¸° [à¹à¸¥à¹à¸] สà¹à¸§à¸à¸à¸µà¹à¹à¸à¸´à¸à¸¡à¸²à¸à¸°à¸à¸·à¸à¹à¸«à¹à¸à¸±à¸à¸à¸¹à¹à¹à¸¥à¹à¸ (à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¹à¸à¸à¸à¸à¸à¹à¸§à¹à¸à¹à¸à¸)",key6:"à¹à¸à¸à¸£à¸à¸µà¸à¸µà¹à¹à¸à¸´à¸à¸à¸§à¸²à¸¡à¸à¸´à¸à¸à¸à¸à¸´à¸à¸³à¹à¸«à¹à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¸±à¸à¸ªà¸´à¸à¸à¸¥à¸à¸à¸à¹à¸à¸¡à¹à¸à¹ à¹à¸à¸¡à¸à¸µà¹à¸à¸°à¹à¸¡à¹à¹à¸à¹à¸à¸à¸µà¹à¸¢à¸à¸¡à¸£à¸±à¸"},TaixiuVN:{descriptionText:"Tai Xiu à¹à¸à¹à¸à¹à¸à¸¡à¸à¸µà¹à¹à¸¥à¹à¸à¸à¹à¸§à¸¢à¸¥à¸¹à¸à¹à¸à¹à¸² 3 ลูภà¹à¸à¹à¸¥à¸°à¸¥à¸¹à¸à¸¡à¸µ 6 หà¸à¹à¸² à¸à¸²à¸¢à¸à¸¥à¸£à¸§à¸¡à¹à¸¥à¸°à¹à¸¥à¸·à¸à¸à¸à¸±à¸§à¹à¸¥à¸à¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ à¸à¸à¹à¸«à¹à¹à¸¥à¸à¸à¸³à¹à¸à¸à¸à¸à¸à¸à¸¸à¸à¸à¸à¸°!",big:"- à¹à¸«à¸à¹: à¸à¸¥à¸£à¸§à¸¡à¸à¸à¸à¹à¸à¹à¸¡à¸à¸°à¸à¸¢à¸¹à¹à¸£à¸°à¸«à¸§à¹à¸²à¸ 11 à¸à¸¶à¸ 17 (รวม) ยà¸à¹à¸§à¹à¸à¸à¸£à¸à¸µà¸à¸µà¹à¸à¸à¸à¹à¸à¹à¸¡à¹à¸«à¸¡à¸·à¸à¸à¸à¸±à¸à¸à¸±à¹à¸ 3 ลูภ(à¸à¸à¸) à¸à¸±à¸à¸£à¸²à¸à¸²à¸£à¸à¹à¸²à¸¢à¸à¸·à¸{{bonusRatio}}",small:"- à¹à¸¥à¹à¸: à¸à¸¥à¸£à¸§à¸¡à¸à¸à¸à¹à¸à¹à¸¡à¸à¸°à¸à¸¢à¸¹à¹à¸£à¸°à¸«à¸§à¹à¸²à¸ 4 à¸à¸¶à¸ 10 (รวม) ยà¸à¹à¸§à¹à¸à¸à¸£à¸à¸µà¸à¸µà¹à¸à¸à¸à¹à¸à¹à¸¡à¹à¸«à¸¡à¸·à¸à¸à¸à¸±à¸à¸à¸±à¹à¸ 3 ลูภ(à¸à¸à¸) à¸à¸±à¸à¸£à¸²à¸à¸²à¸£à¸à¹à¸²à¸¢à¸à¸·à¸ {{bonusRatio}}",other:"- หาà¸à¸¥à¸¹à¸à¹à¸à¹à¸²à¸à¸±à¹à¸ 3 ลูà¸à¸à¸à¸à¹à¸à¹à¸¡à¹à¸à¹à¸²à¸à¸±à¸ (à¸à¸à¸) à¸à¸°à¹à¸¡à¹à¹à¸à¹à¸£à¸±à¸à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥ à¹à¸¥à¸°à¸à¸°à¹à¸¡à¹à¸à¸·à¸à¹à¸à¸´à¸à¹à¸à¸´à¸¡à¸à¸±à¸"},Xocdia:{descriptionText:"à¹à¸à¸¡à¹à¸à¹à¸à¹à¸à¸¡à¸à¸µà¹à¹à¸à¸£à¹à¸«à¸¥à¸²à¸¢à¹à¸à¹à¸§à¸µà¸¢à¸à¸à¸²à¸¡à¹à¸à¸¢à¹à¸à¹à¹à¸«à¸£à¸µà¸¢à¸ 4 à¹à¸«à¸£à¸µà¸¢à¸à¸à¸µà¹à¸ªà¸µà¸à¹à¸²à¸à¸à¸±à¸ à¹à¸à¹à¸à¸à¸²à¸£à¹à¸¥à¹à¸à¸à¸µà¹à¸à¹à¸§à¸¢à¹à¸«à¹à¸à¸¹à¹à¹à¸¥à¹à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¸«à¸à¹à¸²à¸à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸¥à¸°à¹à¸«à¹à¸à¸¥à¸¥à¸±à¸à¸à¹à¹à¸ 4 à¹à¸«à¸£à¸µà¸¢à¸ à¸à¸à¹à¸«à¹à¸à¸¸à¸à¸à¸à¸°à¸£à¸²à¸à¸§à¸±à¸¥à¸¡à¸²à¸!",even:"à¸à¸¹à¹",odd:"à¸à¸µà¹",big:"à¹à¸«à¸à¹",small:"à¹à¸¥à¹à¸","even-des":"à¸à¸±à¹à¸à¸«à¸¡à¸à¹à¸à¹à¸à¸ªà¸µà¹à¸à¸ หรืà¸à¸à¸±à¹à¸à¸«à¸¡à¸à¹à¸à¹à¸à¸ªà¸µà¸à¸²à¸§ à¹à¸¥à¸°à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§ 2 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸ 2 à¹à¸«à¸£à¸µà¸¢à¸","odd-des":"3 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸ 1 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§ หรืภ3 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§ 1 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸","big-des":"à¸à¸±à¹à¸à¸«à¸¡à¸à¹à¸à¹à¸à¸ªà¸µà¹à¸à¸à¸«à¸£à¸·à¸ 3 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸ 1 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§","small-des":"à¸à¸±à¹à¸à¸«à¸¡à¸à¹à¸à¹à¸à¸ªà¸µà¸à¸²à¸§à¸«à¸£à¸·à¸ 3 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§ 1 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸","all-color":"à¸à¸±à¹à¸à¸«à¸¡à¸à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§à¸«à¸£à¸·à¸à¸ªà¸µà¹à¸à¸","color3-1":"à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸à¸ 3 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§+ 1 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸ หรืภ3 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¹à¸à¸+ 1 à¹à¸«à¸£à¸µà¸¢à¸à¸ªà¸µà¸à¸²à¸§",lose:"à¹à¸¡à¹à¸à¸à¸°à¸£à¸²à¸à¸§à¸±à¸¥"},Baucua:{description:"à¸à¸³à¸à¸à¸´à¸à¸²à¸¢","game rule":"à¸à¸à¹à¸
1ม",descriptionText:"Fish Prawn Crab à¹à¸à¹à¸à¹à¸à¸¡à¸¥à¸¹à¸à¹à¸à¹à¸²à¸à¸µà¹à¹à¸à¹à¸£à¸±à¸à¸à¸§à¸²à¸¡à¸à¸´à¸¢à¸¡ à¹à¸à¸¢à¹à¸à¹à¸¥à¸¹à¸à¹à¸à¹à¸²à¸ªà¸²à¸¡à¹à¸à¸à¸µà¹à¸¡à¸µà¸ªà¸±à¸à¸¥à¸±à¸à¸©à¸à¹à¹à¸à¸«à¸à¹à¸²à¸¥à¸¹à¸à¹à¸à¹à¸² à¸à¸²à¸à¸ ูมิภาà¸à¸à¹à¸²à¸à¹ สัà¸à¸¥à¸±à¸à¸©à¸à¹à¸à¸à¸à¸¥à¸¹à¸à¹à¸à¹à¸²à¸ªà¸²à¸¡à¸µà¸à¸§à¸²à¸¡à¹à¸à¸à¸à¹à¸²à¸à¸à¸±à¸ à¹à¸à¸¢à¸à¸°à¸¡à¸µà¸ªà¸±à¸à¸¥à¸±à¸à¸©à¸à¹à¸«à¸¥à¸±à¸à¸à¸µà¹à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸à¹à¹à¸à¹à¸à¸·à¸ Fish Prawn à¹à¸¥à¸° Crab","win multiplier":"à¸à¸¹à¸à¸à¸à¸°",symbol:"สัà¸à¸¥à¸±à¸à¸©à¸à¹",bet:"à¹à¸à¸´à¸¡à¸à¸±à¸","outcome example":"à¸à¸±à¸§à¸à¸¢à¹à¸²à¸à¸à¸¥",payout:"à¹à¸à¸´à¸à¸à¸à¸°",win:"à¸à¸à¸°",lose:"à¹à¸à¹"},ColorGame:{description:"à¹à¸à¸¢à¹à¸à¹à¸¥à¸¹à¸à¹à¸à¹à¸²à¸ªà¸²à¸¡à¸¥à¸¹à¸à¸à¸µà¹à¸¡à¸µà¸ªà¸µà¸«à¸à¸ªà¸µà¸à¹à¸²à¸ ๠à¸à¸¸à¸à¸ªà¸²à¸¡à¸²à¸£à¸à¸§à¸²à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¸à¸·à¹à¸à¸à¸µà¹à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸à¸«à¸¥à¸²à¸¢à¹à¸«à¸¥à¹à¸à¸à¸£à¹à¸à¸¡à¸à¸±à¸ à¸à¸à¸°à¸à¸µà¹à¸¥à¸¹à¸à¹à¸à¹à¸²à¸à¸¹à¸à¸à¸à¸à¹à¸à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸²à¸£à¸à¸±à¸à¸à¸¥à¸²à¸ สีà¸à¸µà¹à¸à¸à¸°à¸à¸°à¸à¸¹à¸à¸à¸³à¸«à¸à¸à¹à¸à¸¢à¸à¹à¸²à¸à¸à¸à¸à¸¥à¸¹à¸à¹à¸à¹à¸²à¸à¸µà¹à¸«à¸±à¸à¸à¸¶à¹à¸à¸¡à¸² \n à¹à¸¥à¸·à¸à¸à¸ªà¸µà¸à¸µà¹à¸à¸¸à¸à¸à¸²à¸¢à¹à¸à¸à¸·à¹à¸à¸à¸µà¹à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ à¹à¸¥à¸°à¸à¸à¹à¸«à¹à¹à¸à¸à¸à¸µà¹à¸à¸à¸²à¸£à¸à¸à¸°à¸£à¸²à¸à¸§à¸±à¸¥à¹à¸«à¸à¹!",amount:"à¸à¸³à¸à¸§à¸",oneDice:"ONE DICE",twoDice:"TWO DICE",threeDice:"THREE DICE"},Baccarat:{rule_description:'à¹à¸à¹à¹à¸à¹à¸à¸¸à¸à¸¥à¸° 8 สำรัภ(à¹à¸¡à¹à¸£à¸§à¸¡à¹à¸à¹à¸à¹à¸à¸à¸£à¹) รวมà¸à¸±à¹à¸à¸«à¸¡à¸ 416 à¹à¸; à¹à¸à¹à¸¥à¸°à¸à¹à¸²à¸¢ "à¸à¸¹à¹à¹à¸¥à¹à¸" à¹à¸¥à¸° "à¹à¸à¸à¸à¹à¹à¸à¸à¸£à¹" à¸à¸°à¹à¸à¹à¸£à¸±à¸à¹à¸à¹ 2 à¹à¸à¹à¸à¹à¸¥à¸°à¸à¹à¸²à¸¢à¸à¹à¸à¸ "à¸à¸¹à¹à¹à¸¥à¹à¸" à¹à¸¥à¹à¸§ "à¹à¸à¸à¸à¹à¹à¸à¸à¸£à¹" (ลำà¸à¸±à¸à¸à¸²à¸£à¹à¸à¸´à¸à¹à¸à¹à¹à¸«à¸¡à¸·à¸à¸à¸à¸±à¸) หาà¸à¹à¸¡à¹à¸¡à¸µà¸à¸¹à¹à¸à¸à¸°à¸à¸±à¸à¹à¸à¸à¹à¸à¸£à¸à¸à¹à¸£à¸ à¸à¸°à¸à¸¶à¸à¹à¸à¹à¹à¸à¸´à¹à¸¡à¸à¸²à¸¡ "à¸à¸à¸à¸²à¸£à¹à¸" à¹à¸à¸¢à¹à¸à¹à¸¥à¸°à¸à¹à¸²à¸¢à¸à¸°à¹à¸à¹à¸£à¸±à¸à¹à¸à¹à¹à¸à¸´à¹à¸¡à¹à¸à¹à¸ªà¸¹à¸à¸ªà¸¸à¸ 1 à¹à¸à¹à¸à¸·à¹à¸à¸à¸³à¸«à¸à¸à¸à¸¥à¸à¸²à¸£à¹à¸à¹à¸à¸à¸±à¸ หาà¸à¸à¹à¸²à¸¢à¹à¸à¸à¸²à¸à¸à¹à¸²à¸¢à¹à¸à¹à¸£à¸±à¸ 8 หรืภ9 à¸à¸°à¹à¸à¸à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸°à¸à¸¹à¸à¸à¸³à¸«à¸à¸à¹à¸à¸¢à¸à¸²à¸£à¹à¸à¹à¹à¸à¹ 4 à¹à¸à¹à¸£à¸à¸à¸µà¹à¹à¸à¸à¹à¸§à¹ à¸à¸°à¹à¸¡à¹à¸¡à¸µà¸à¸²à¸£à¸à¸¶à¸à¹à¸à¹à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸¡ à¸à¸¹à¹à¸à¸à¸°à¸à¸°à¸à¸¹à¸à¸à¸³à¸«à¸à¸à¹à¸à¸¢à¸à¸²à¸£à¹à¸à¸£à¸µà¸¢à¸à¹à¸à¸µà¸¢à¸à¸à¸±à¸§à¹à¸¥à¸à¸ªà¸¸à¸à¸à¹à¸²à¸¢à¸à¸à¸à¸à¸¥à¸£à¸§à¸¡à¸à¸°à¹à¸à¸à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸¹à¹à¹à¸¥à¹à¸à¹à¸¥à¸°à¹à¸à¸à¸à¹à¹à¸à¸à¸£à¹',play:"สà¹à¸à¸¥à¹à¸à¸²à¸£à¹à¸¥à¹à¸",bonus:"ราà¸à¸§à¸±à¸¥",limit:cn,classic:"à¸à¸¥à¸²à¸ªà¸ªà¸´à¸",6106:"".concat(nn,"(").concat(ln,")"),6107:"".concat(nn,"(").concat(dn,")"),6108:tn,6109:an,6110:rn,6111:on},BacBo:{description:"à¸à¸²à¸¢à¸à¸à¸²à¸à¸²à¸£à¹à¸¥à¸°à¸à¸¹à¹à¹à¸¥à¹à¸à¹à¸à¹à¸¥à¸°à¸à¸à¹à¸à¹à¸¥à¸¹à¸à¹à¸à¹à¸² 2 ลูภà¸à¸¸à¸à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¸±à¹à¸à¸ªà¸à¸à¸à¹à¸²à¸¢à¹à¸à¹à¹à¸à¹à¸§à¸¥à¸²à¹à¸à¸µà¸¢à¸§à¸à¸±à¸ à¸à¹à¸²à¸¢à¸à¸µà¹à¸à¸à¸°à¸à¸·à¸à¸à¹à¸²à¸¢à¸à¸µà¹à¸¡à¸µà¸à¸¥à¸£à¸§à¸¡à¸à¸à¸à¸¥à¸¹à¸à¹à¸à¹à¸²à¸ªà¸¹à¸à¸à¸§à¹à¸²à¹à¸¥à¸·à¸à¸à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸µà¹à¸à¸¸à¸à¸à¸²à¸à¸à¸²à¸£à¸à¹à¹à¸à¸à¸´à¸à¹à¸à¸à¸£à¹à¹à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸ à¸à¸à¹à¸«à¹à¸à¸¸à¸à¹à¸à¸à¸à¸µà¹à¸à¹à¸£à¸±à¸à¸£à¸²à¸à¸§à¸±à¸¥à¹à¸«à¸à¹!",rulesText:"หาà¸à¹à¸à¹à¸¡à¹à¸à¹à¸²à¸à¸±à¸à¸à¸°à¸à¸·à¸à¸§à¹à¸²à¹à¸ªà¸¡à¸à¸à¸±à¸ à¹à¸¥à¸°à¸à¸±à¸à¸£à¸²à¸à¹à¸à¸£à¸à¸à¸à¸°à¹à¸à¸à¸à¹à¸²à¸à¸à¸±à¸à¹à¸à¸à¸²à¸¡à¹à¸à¹à¸¡",banker:nn,player:tn,tie:an},Mines:{description:"à¸à¸²à¸£à¸à¹à¸²à¸¢à¹à¸à¸´à¸à¸ªà¸¹à¸à¸¡à¸²à¸à¸à¸£à¹à¸à¸¡à¸à¸§à¸²à¸¡à¹à¸ªà¸µà¹à¸¢à¸à¸à¸µà¹à¸à¸£à¸±à¸à¹à¸à¹ â à¹à¸à¸¡à¸à¸¸à¹à¸à¸£à¸°à¹à¸à¸´à¸à¸à¸µà¹à¸à¹à¸²à¸à¸·à¹à¸à¹à¸à¹à¸! ระวัà¸à¸§à¸±à¸à¸à¸¸à¸£à¸°à¹à¸à¸´à¸!\n\nหลัà¸à¸à¸²à¸à¸§à¸²à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸¥à¹à¸§ à¸à¸¹à¹à¹à¸¥à¹à¸à¹à¸à¸°à¸à¸µà¹à¸«à¸´à¸à¹à¸à¸à¹à¹à¸à¹\nหาà¸à¸à¸à¸à¸£à¸´à¸ªà¸à¸±à¸¥ à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥à¸
1ะสะสม\nà¸à¸²à¸à¸à¸±à¹à¸à¸à¸¸à¸à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸¥à¸·à¸à¸à¸à¸µà¹à¸à¸°à¹à¸à¸°à¸«à¸´à¸à¸à¹à¸à¹à¸à¹à¸à¸·à¹à¸à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥ หรืà¸à¸à¸à¸à¹à¸à¸´à¸à¹à¸à¹à¸à¸¥à¸à¸à¹à¸§à¸¥à¸²\nà¹à¸à¹à¸«à¸²à¸à¸à¸¸à¸à¹à¸à¸à¸§à¸±à¸à¸à¸¸à¸£à¸°à¹à¸à¸´à¸ â à¸à¸¸à¸à¸à¸°à¸ªà¸¹à¸à¹à¸ªà¸µà¸¢à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥à¸à¸µà¹à¸ªà¸°à¸ªà¸¡à¸à¸±à¹à¸à¸«à¸¡à¸\n\nหาà¸à¸à¸¸à¸à¸«à¸¥à¸¸à¸à¸à¸²à¸£à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¸«à¸¥à¸±à¸à¸à¸²à¸à¸§à¸²à¸à¹à¸à¸´à¸¡à¸à¸±à¸ ระà¸à¸à¸à¸°à¹à¸¥à¸·à¸à¸ âà¸à¸à¸à¹à¸à¸´à¸â à¹à¸¥à¸°à¸à¸à¹à¸à¸¡à¹à¸à¸¢à¸à¸±à¸à¹à¸à¸¡à¸±à¸à¸´"},ChickenRoad:{description:"1. à¹à¸¥à¸·à¸à¸à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¸à¸à¸à¸à¸¸à¸\r\n\r\n2. à¸à¸¥à¸´à¸ à¹à¸£à¸´à¹à¸¡\r\n\r\n3. à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸²à¸à¹à¸à¹à¸à¸à¸§à¸²à¸¡à¸ªà¸³à¹à¸£à¹à¸à¸«à¸£à¸·à¸à¸à¸§à¸²à¸¡à¸¥à¹à¸¡à¹à¸«à¸¥à¸§ หาà¸à¸ªà¸³à¹à¸£à¹à¸ à¸à¸¸à¸à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸¥à¸·à¸à¸à¸à¸³à¹à¸à¸´à¸à¸à¹à¸à¸«à¸£à¸·à¸ à¹à¸¥à¸à¹à¸à¸¥à¸µà¹à¸¢à¸",easy:"à¸à¹à¸²à¸¢",medium:"à¸à¸²à¸à¸à¸¥à¸²à¸",hard:"ยาà¸",ace:"ระà¸à¸±à¸à¹à¸à¸"}
1,Keno:{description:"à¹à¸à¸¡à¸à¸´à¸à¹à¸à¹à¸à¸à¸à¹à¸²à¸¢ ๠à¸à¸µà¹à¸¡à¸µà¸à¸±à¹à¸à¸«à¸¡à¸ 40 หมายà¹à¸¥à¸ à¹à¸à¹à¸à¹à¸¥à¸°à¸£à¸à¸à¸à¸°à¸¡à¸µà¸à¸²à¸£à¸ªà¸¸à¹à¸¡à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 10 หมายà¹à¸¥à¸ à¸à¸¹à¹à¹à¸¥à¹à¸à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸¥à¸·à¸à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸à¹à¸¡à¸²à¸à¸à¸µà¹à¸ªà¸¸à¸ 10 หมายà¹à¸¥à¸ ยิà¹à¸à¸à¸²à¸¢à¸à¸¹à¸à¸¡à¸²à¸à¹à¸à¹à¸²à¹à¸£ à¸à¸±à¸à¸£à¸²à¸à¸²à¸£à¸à¹à¸²à¸¢à¸à¹à¸à¸°à¸ªà¸¹à¸à¸à¸¶à¹à¸ à¹à¸¥à¸·à¸à¸à¸«à¸¡à¸²à¸¢à¹à¸¥à¸à¸à¸µà¹à¸à¸¸à¸à¸à¸²à¸à¹à¸à¸²à¹à¸§à¹ à¸à¸à¹à¸«à¹à¹à¸à¸à¸à¸µà¹à¸à¹à¸£à¸²à¸à¸§à¸±à¸¥à¹à¸«à¸à¹!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"à¹à¸¥à¸·à¸à¸à¹à¸à¸´à¸¡à¸à¸±à¸à¸§à¹à¸²à¹à¸à¸à¸à¸à¸° / à¸à¹à¸³à¹à¸à¸´à¸à¸à¸à¸° / à¹à¸ªà¸¡à¸"}},GamesDrawHistory:{title:"ราà¸à¸§à¸±à¸¥à¸à¸µà¹à¹à¸à¸´à¹à¸à¹à¸à¸´à¸à¸¥à¹à¸²à¸ªà¸¸à¸",history:"à¸à¸£à¸°à¸§à¸±à¸à¸´à¸à¸²à¸£à¹à¸£à¸µà¸¢à¸à¸à¸¹",numero:"à¸à¸§à¸à¸à¸µà¹",results:"à¸à¸¥à¸¥à¸±à¸à¸à¹",Baccarat:{ratio_description:"à¹à¸à¸à¸£à¹à¹à¸à¹à¸à¸à¹à¸à¸²à¸£à¸à¸à¸°à¸à¸à¸à¹à¸
1à¹à¸²à¸¡à¸·à¸ à¸à¸¹à¹à¹à¸¥à¹à¸ à¹à¸¥à¸°à¹à¸ªà¸¡à¸à¹à¸ 50 à¹à¸à¸¡à¸¥à¹à¸²à¸ªà¸¸à¸",banker:nn,player:tn,tie:an,series:"ระยะà¹à¸§à¸¥à¸²",win:$e}},GamesBetHistory:{today:"วัà¸à¸à¸µà¹",yesterday:"à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹","no data":"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸à¸¡à¸¹à¸¥",isError:"à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸à¸²à¸£à¸à¹à¸à¸«à¸² à¹à¸à¸£à¸à¸¥à¸à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸","personal cancel order":"ยà¸à¹à¸¥à¸´à¸à¹à¸à¸¢à¸ªà¹à¸§à¸à¸à¸±à¸§","no draw":"à¹à¸¡à¹à¸¡à¸µà¸à¸²à¸£à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥",isWon:"à¸à¸à¸°à¹à¸¥à¹à¸§","not winning":"à¹à¸¡à¹à¹à¸à¹à¸à¸à¸°","empty draw":"à¸à¸²à¸£à¹à¸à¸´à¸à¸£à¸²à¸à¸§à¸±à¸¥à¸§à¹à¸²à¸à¹à¸à¸¥à¹à¸²",tie:"à¹à¸ªà¸¡à¸",no_series:"รà¸à¸à¸à¸µà¹ {{number}}","game subTotal":"à¸à¸¥à¸£à¸§à¸¡à¹à¸à¸¡","game win":"à¸à¸³à¸ªà¸±à¹à¸à¸à¸à¸°",betAmount:"Bet Amount",Taixiu:{title:"à¸à¸£à¸°à¸§à¸±à¸à¸´à¸à¸²à¸£à¹à¸à¸´à¸¡à¸à¸±à¸",game:"à¸à¸¥à¸²à¸",play:"วิà¸à¸µà¹à¸¥à¹à¸",odds:"à¸à¹à¸²à¸¢",valid_bet:"à¹à¸ªà¹à¸£à¸²à¸à¸²",status:"สà¸à¸²à¸à¸°",no:"No.",no_data:"à¹à¸¡à¹à¸à¸à¸à¹à¸à¸¡à¸¹à¸¥",win:$e,lose:en},ColorGame:{betAmount:"Bet Amount",winAmount:"Win Amount",win:$e,lose:en},Baccarat:{win:$e,lose:en,bet:"à¹à¸à¸´à¸¡à¸à¸±à¸",banker:nn,player:tn,tie:an,bankerPair:rn,playerPair:on,"no comm":ln,comm:dn},BacBo:{banker:nn,player:tn,tie:an}},RoadChart:{banker:"B",player:"P",tie:"T"}},dialog:{TOKEN_EXPIRED:"หมà¸à¹à¸§à¸¥à¸²à¹à¸à¹à¸à¸²à¸ TOKEN"},others:{cancelOrder:{success:"ยà¸à¹à¸¥à¸´à¸à¹à¸à¸¢à¸ªà¸³à¹à¸£à¹à¸",fail:"ยà¸à¹à¸¥à¸´à¸à¹à¸à¸¢à¸¥à¹à¸¡à¹à¸«à¸¥à¸§",notDrawable:"à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸¢à¸à¹à¸¥à¸´à¸à¹à¸à¸¥à¸¥à¹à¸à¸µà¹à¸à¸¥à¸à¸à¸à¸²à¸à¸à¸±à¸à¸à¸£à¸²à¸¢à¹à¸à¹",notAvailable:"ยà¸à¹à¸¥à¸´à¸à¹à¸à¸¢à¸¥à¹à¸¡à¹à¸«à¸¥à¸§ à¹à¸¡à¹à¸à¸à¸¸à¸à¸²à¸à¹à¸«à¹à¸¢à¸à¹à¸¥à¸´à¸à¹à¸à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¸à¸µà¹à¸à¸¹à¸à¸¥à¹à¸à¸",notFound:"ยà¸à¹à¸¥à¸´à¸à¹à¸à¸¢à¸¥à¹à¸¡à¹à¸«à¸¥à¸§, à¹à¸¡à¹à¸à¸à¸à¸³à¸ªà¸±à¹à¸à¸à¸·à¹à¸à¸à¸µà¹"}},hook:{}}},fn="à¤à¥à¤¤",pn="हार",gn="बà¥à¤à¤à¤°",hn="पà¥à¤²à¥à¤¯à¤°",vn="à¤à¤¾à¤",bn="बà¥à¤à¤à¤° à¤à¥à¤¡à¤¼à¥",xn="पà¥à¤²à¥à¤¯à¤° à¤à¥à¤¡à¤¼à¥",yn="सà¥à¤®à¤¾à¤à¤",_n="पà¥à¤·à¥à¤à¤¿ à¤à¤°à¥à¤",wn="रदà¥à¤¦ à¤à¤°à¥à¤",Tn="बिना शà¥à¤²à¥à¤",kn="शà¥à¤²à¥à¤",In={translation:{components:{calculator:{hidden:"à¤à¥à¤ªà¤¾à¤à¤",clear:"à¤à¤¾à¤²à¥ à¤à¤°à¥à¤",confirm:_n,cancel:wn},BallLists:{small:"S",big:"B",odd:"O",even:"E",dragon:"Dragon",tiger:"Tiger"},Alert:{systemNotice:"सिसà¥à¤à¤® सà¥à¤à¤¨à¤¾",confirm:_n,cancel:wn}},containers:{errorPanel:{loginTip:"à¤à¤¾à¤¤à¤¾ बà¤à¤¦ à¤à¤° दिया à¤à¤¯à¤¾ हà¥, à¤à¥à¤ªà¤¯à¤¾ फिर सॠलà¥à¤à¤¿à¤¨ à¤à¤°à¥à¤à¥¤",close:"बà¤à¤¦ à¤à¤°à¥à¤",CONFIRM:_n,SYSTEM_MESSAGE:"सिसà¥à¤à¤® सà¤à¤¦à¥à¤¶",WARNING:"à¤à¥à¤¤à¤¾à¤µà¤¨à¥"},GamesPanel:{betting:"दाà¤à¤µ लà¤à¤¾à¤¯à¤¾ à¤à¤¾ रहा हà¥...",bettingSuccess:"दाà¤à¤µ सफल: {{totalBettingAmount}}",win:"à¤à¥à¤¤à¤¾ {{amount}}",BALANCE_NOT_ENOUGH:"à¤
परà¥à¤¯à¤¾à¤ªà¥à¤¤ शà¥à¤· राशि, à¤à¥à¤ªà¤¯à¤¾ रिà¤à¤¾à¤°à¥à¤ à¤à¤°à¥à¤à¥¤",BALANCE_NOT_ENOUGH_ERROR:"à¤
परà¥à¤¯à¤¾à¤ªà¥à¤¤ शà¥à¤· राशि, à¤à¥à¤ªà¤¯à¤¾ रिà¤à¤¾à¤°à¥à¤ à¤à¤°à¥à¤à¥¤",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"à¤à¥à¤² à¤à¤¾à¤°à¥ हà¥, à¤à¥à¤ªà¤¯à¤¾ दà¥à¤à¤¨à¥ सॠपहलॠà¤à¥à¤² à¤à¥ रà¥à¤à¥à¤à¥¤",TOKEN_TIME_OUT:"à¤à¤ªà¤à¤¾ सतà¥à¤° समापà¥à¤¤ हॠà¤à¤¯à¤¾ हà¥, à¤à¥à¤ªà¤¯à¤¾ फिर सॠलà¥à¤à¤¿à¤¨ à¤à¤°à¥à¤à¥¤",BET_LIMIT:"[{{playName}}] दाà¤à¤µ सà¥à¤®à¤¾: {{rangeStr}}}",BET_LIMIT_NO_PLAYNAME:"दाà¤à¤µ सà¥à¤®à¤¾: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"दाà¤à¤µ राशि {{amount}} à¤à¥ à¤
नà¥à¤®à¤¤ सà¥à¤®à¤¾ सॠà¤
धिठहॠà¤à¤ हà¥",GAME_PARAM_ERROR:"शरà¥à¤¤ राशि सà¥à¤®à¤¾ सॠà¤
धिठहॠ> {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"à¤à¤ªà¤à¤¾ à¤à¥à¤£à¤ à¤
नà¥à¤®à¤¤ सà¥à¤®à¤¾ सॠà¤
धिठहà¥à¥¤",PLAYID_CLOSED:" à¤à¥à¤² रà¤à¤°à¤à¤¾à¤µ मà¥à¤ हà¥, à¤à¥à¤ªà¤¯à¤¾ बाद मà¥à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤!",PARAMETER_REQUIRED:"सà¤à¥à¤à¤¾ पà¥à¤°à¤¾à¤®à¥à¤à¤° à¤à¤µà¤¶à¥à¤¯à¤à¤¤à¤¾à¤à¤ à¤à¥ पà¥à¤°à¤¾ नहà¥à¤ à¤à¤°à¤¤à¥, सà¤à¥à¤à¤¾ विफल!",IS_LOCK_TIME:"सà¤à¥à¤à¤¾ विफल, यह लà¥à¤à¤°à¥ लà¥à¤à¤¿à¤à¤ à¤
वधि मà¥à¤ पà¥à¤°à¤µà¥à¤¶ à¤à¤° à¤à¥à¤à¥ हà¥à¥¤",INVALID_TOKEN:"à¤à¤¾à¤¤à¤¾ लà¥à¤à¤¿à¤¨ à¤à¥ समय सà¥à¤®à¤¾ समापà¥à¤¤ हॠà¤à¤ हà¥, à¤à¥à¤ªà¤¯à¤¾ फिर सॠलà¥à¤à¤¿à¤¨ à¤à¤°à¥à¤",SYSTEM_ERROR:"दाà¤à¤µ विफल, पà¥à¤°à¤£à¤¾à¤²à¥ तà¥à
1¤°à¥à¤à¤¿",IN_BALANCE:"सà¤à¤¤à¥à¤²à¤¨ मà¥à¤",BET_LOCKED:"सà¤à¥à¤à¤¾ समापà¥à¤¤ हॠà¤à¤¯à¤¾ हà¥à¥¤",PLEASE_BET_NOW:"à¤à¥à¤ªà¤¯à¤¾ à¤
ब दाà¤à¤µ लà¤à¤¾à¤à¤",AUTO_BET_ON:"সà§à¦¬à¦¯à¦¼à¦à¦à§à¦°à¦¿à¦¯à¦¼ বাà¦à¦¿ সà¦à§à¦°à¦¿à¦¯à¦¼ à¦à¦°à¦¾ হয়à§à¦à§",AUTO_BET_OFF:"সà§à¦¬à¦¯à¦¼à¦à¦à§à¦°à¦¿à¦¯à¦¼ বাà¦à¦¿ বনà§à¦§ à¦à¦°à¦¾ হয়à§à¦à§",TRAIL_NOT_SUPPORT:"à¤à¥à¤ à¤
नà¥à¤®à¤¤à¤¿ नहà¥à¤",CUSTOMER_NOT_ALLOW_PLAY_LOTTERY:"à¤
पनॠबà¥à¤¨à¤¸ à¤à¥ निरà¥à¤¦à¤¿à¤·à¥à¤ à¤à¥à¤²à¥à¤ पर लà¤à¤¾à¤à¤à¥¤ à¤à¤ªà¤¨à¥ à¤
à¤à¥ तठदावा à¤à¤¿à¤ à¤à¤ बà¥à¤¨à¤¸ à¤à¥ वà¥à¤à¤°à¤¿à¤à¤ à¤à¤µà¤¶à¥à¤¯à¤à¤¤à¤¾ पà¥à¤°à¥ नहà¥à¤ à¤à¥ हà¥à¥¤",SYSTEM_TIME_OUT:"à¤à¤ª à¤à¤¿à¤¸ सà¥à¤¥à¤¾à¤¨ सॠवà¥à¤¬à¤¸à¤¾à¤à¤ à¤à¥ à¤à¤à¥à¤¸à¥à¤¸ à¤à¤°à¤¨à¥ à¤à¤¾ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤° रहॠहà¥à¤, वह वरà¥à¤¤à¤®à¤¾à¤¨ मà¥à¤ पà¥à¤°à¤¤à¤¿à¤¬à¤à¤§à¤¿à¤¤ हà¥à¥¤",CAN_NOT_BETTING_NOT_IN_SALE_TIME:"à¤à¥à¤² à¤
सà¥à¤¥à¤¾à¤¯à¥ रà¥à¤ª सॠà¤à¤ªà¤²à¤¬à¥à¤§ नहà¥à¤ हà¥, बाद मà¥à¤ पà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"à¤à¥à¤µà¤² à¤à¤ पà¤à¥à¤· पर दाà¤à¤µ हॠसà¤à¤¤à¤¾ हà¥",betting:"दाà¤à¤µ लà¤à¤¾à¤à¤",min_bet:"नà¥à¤¯à¥à¤¨à¤¤à¤®",max_bet:"à¤
धिà¤à¤¤à¤®",big:"बड़ा",small:"à¤à¥à¤à¤¾",cancel:wn,all_in:"पà¥à¤°à¤¾ दाà¤à¤µ",repeat:"फिर सà¥",bet_now:"à¤
à¤à¥ à¤à¤°à¥à¤¦à¥à¤",balance:"शà¥à¤· राशि"},Baccarat:{no:"No.",limit:yn,banker:gn,player:hn,tie:vn,bankerPair:bn,playerPair:xn,confirm:_n,cancel:wn,"comm switch":"बिना à¤à¤®à¥à¤¶à¤¨ सà¥à¤µà¤¿à¤ à¤à¤°à¥à¤","no commission":Tn,commission:kn,"text-1":"यदि डà¥à¤²à¤° à¤à¤¿à¤¸à¥ à¤à¥ à¤
à¤à¤ सॠà¤à¥à¤¤à¤¤à¤¾ हà¥, तॠà¤à¤¡à¥à¤¸ 1:{{bonus}} हà¥à¤; à¤à¤¾à¤ हà¥à¤¨à¥ पर मà¥à¤²à¤§à¤¨ वापस à¤à¤° दिया à¤à¤¾à¤à¤à¤¾à¥¤","text-2":"यदि बà¥à¤à¤à¤° 6 à¤
à¤à¤à¥à¤ à¤à¥ à¤
लावा à¤à¤¿à¤¸à¥ à¤
नà¥à¤¯ à¤
à¤à¤à¥à¤ सॠà¤à¥à¤¤à¤¤à¤¾ हà¥, तॠà¤à¤¡à¥à¤¸ 1:{{bonus}} हà¥à¤; यदि बà¥à¤à¤à¤° 6 à¤
à¤à¤à¥à¤ सॠà¤à¥à¤¤à¤¤à¤¾ हà¥, तॠà¤à¤¡à¥à¤¸ 1:{{bonusHalf}} हà¥à¤; डà¥à¤°à¥ हà¥à¤¨à¥ पर मà¥à¤²à¤§à¤¨ वापस à¤à¤° दिया à¤à¤¾à¤à¤à¤¾à¥¤"},Baucua:{game_name:"Fish Prawn Crab"},Mines:{bet:"शरà¥à¤¤",title:"à¤à¤¦à¤¾à¤¨à¥à¤",start:"पà¥à¤°à¤¾à¤°à¤à¤ à¤à¤°à¥à¤",cancel:"रदà¥à¤¦ à¤à¤°à¥à¤"},ChickenRoad:{start:"पà¥à¤°à¤¾à¤°à¤à¤ à¤à¤°à¥à¤",cancel:"रदà¥à¤¦ à¤à¤°à¥à¤"}},GamesIntro:{description:"परिà¤à¤¯",rules:"नियम",title:"परिà¤à¤¯",odds:"सà¤à¤à¤¾à¤µà¤¨à¤¾à¤à¤",betBlock:"Betting Area",MIN_BET:"नà¥à¤¯à¥à¤¨à¤¤à¤® बà¥à¤ राà
1¤¶à¤¿",MAX_BET:"à¤
धिà¤à¤¤à¤® बà¥à¤ राशि",MAX_BET_PER_DRAW:"पà¥à¤°à¤¤à¤¿ दà¥à¤° à¤
धिà¤à¤¤à¤® बà¥à¤ राशि",GAME_MAX_BET_PER_BET:"à¤à¥à¤² à¤à¥ à¤à¤à¤² बà¥à¤ à¤
धिà¤à¤¤à¤® राशि",GAME_MAX_BET_PER_DRAW:"à¤à¥à¤² à¤à¥ पà¥à¤°à¤¤à¤¿ दà¥à¤° à¤
धिà¤à¤¤à¤® राशि",MAX_BONUS_PER_BET:"à¤à¤à¤² सबसॠबड़ॠपà¥à¤°à¤¸à¥à¤à¤¾à¤° राशि (मà¥à¤à¥à¤¯ राशि सहित)",MAX_BONUS_PER_DRAW:"पà¥à¤°à¤¤à¤¿ दà¥à¤° सबसॠबड़ॠपà¥à¤°à¤¸à¥à¤à¤¾à¤° राशि (मà¥à¤à¥à¤¯ राशि सहित)",MAX_PROFIT_PER_DRAW:"पà¥à¤°à¤¤à¤¿ दà¥à¤° सबसॠबड़ा लाठ(मà¥à¤à¥à¤¯ राशि नहà¥à¤)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"पà¥à¤°à¤¸à¥à¤à¤¾à¤° राशि à¤à¤à¤² (पà¥à¤°à¤¤à¤¿ दà¥à¤°) सà¥à¤®à¤¾ सॠà¤
धिठहà¥, à¤
तिरिà¤à¥à¤¤ राशि सà¥à¤µà¤¤à¤ à¤à¤ à¤à¤¾à¤à¤à¥",Taixiu:{key1:"à¤à¥à¤² 3 पासà¥à¤ à¤à¥ साथ à¤à¥à¤²à¤¾ à¤à¤¾à¤¤à¤¾ हà¥, à¤à¥à¤² à¤
à¤à¤à¥à¤ à¤à¤¾ यà¥à¤ 11 सॠ18 हà¥à¤¨à¥ पर [बड़ा] à¤à¤° 3 सॠ10 हà¥à¤¨à¥ पर [à¤à¥à¤à¤¾] हà¥à¤¤à¤¾ हà¥à¥¤",key2:"à¤à¤ªà¤à¥ à¤à¥à¤µà¤² परिणाम à¤à¥ à¤à¤µà¤¿à¤·à¥à¤¯à¤µà¤¾à¤£à¥ [बड़ा] या [à¤à¥à¤à¤¾] à¤à¥ रà¥à¤ª मà¥à¤ à¤à¤°à¤¨à¥ हॠà¤à¤° à¤à¤¿à¤¸à¥ à¤à¤ पà¤à¥à¤· पर दाà¤à¤µ लà¤à¤¾à¤¨à¤¾ हॠ(à¤à¤ª à¤à¥à¤µà¤² à¤à¤ पà¤à¥à¤· à¤à¥à¤¨ सà¤à¤¤à¥ हà¥à¤)।",key3:"à¤à¤¿à¤¸ राशि पर à¤à¤ª दाà¤à¤µ लà¤à¤¾à¤¨à¤¾ à¤à¤¾à¤¹à¤¤à¥ हà¥à¤ à¤à¤¸à¥ दरà¥à¤ à¤à¤°à¥à¤ à¤à¤° à¤à¤µà¤¿à¤·à¥à¤¯à¤µà¤¾à¤£à¥ à¤à¥ पà¥à¤°à¤¾ à¤à¤°à¤¨à¥ à¤à¥ लिठसहमति पर à¤à¥à¤²à¤¿à¤ à¤à¤°à¥à¤à¥¤",key4:"à¤à¤ª दाà¤à¤µ लà¤à¤¾à¤¨à¥ à¤à¥ समय समापà¥à¤¤ हà¥à¤¨à¥ सॠपहलॠà¤à¤¿à¤¸à¥ à¤à¥ राशि à¤à¥ साथ à¤à¤ दाà¤à¤µ लà¤à¤¾ सà¤à¤¤à¥ हà¥à¤à¥¤",key5:"यदि [बड़ा] à¤à¤° [à¤à¥à¤à¤¾] à¤à¥ बà¥à¤ दाà¤à¤µ à¤à¥ à¤à¥à¤² राशि मà¥à¤ à¤
à¤à¤¤à¤° हà¥, तॠà¤
à¤à¤¤à¤° à¤à¤¿à¤²à¤¾à¤¡à¤¼à¥ à¤à¥ वापस à¤à¤° दिया à¤à¤¾à¤à¤à¤¾ (पहलॠदाà¤à¤µ लà¤à¤¾à¤¨à¥ वालॠà¤à¥ पà¥à¤°à¤¾à¤¥à¤®à¤¿à¤à¤¤à¤¾ मिलà¥à¤à¥)।",key6:"à¤à¤¿à¤¸à¥ à¤à¥ à¤à¤°à¤¾à¤¬à¥ à¤à¥ मामलॠमà¥à¤ à¤à¥ à¤à¥à¤² à¤à¥ परिणाम à¤à¥ à¤
निरà¥à¤£à¤¾à¤¯à¤ बना दà¥, à¤à¤¸ à¤à¥à¤² à¤à¥ राà¤à¤à¤¡ à¤à¥ à¤
मानà¥à¤¯ à¤à¤° दिया à¤à¤¾à¤à¤à¤¾à¥¤"},Xocdia:{descriptionText:"Xoc Dia à¤à¤ लà¥à¤à¤ªà¥à¤°à¤¿à¤¯ पारà¤à¤ªà¤°à¤¿à¤ à¤à¥à¤² हॠà¤à¥ वियतनाम मà¥à¤ वà¥à¤¯à¤¾à¤ªà¤ रà¥à¤ª सॠà¤à¥à¤²à¤¾ à¤à¤¾à¤¤à¤¾ हà¥à¥¤ à¤à¥à¤² 4 सिà¤à¥à¤à¥à¤ à¤à¥ साथ à¤à¥à¤²à¤¾ à¤à¤¾à¤¤à¤¾ हॠà¤à¤¿à¤¨à¤à¥ दॠविà¤à¤¿à¤¨à¥à¤¨ रà¤à¤ हà¥à¤¤à¥ हà¥à¤à¥¤ à¤à¥à¤¤à¤¨à¥ à¤à¥ लिà¤, à¤à¤¿à¤²à¤¾à¤¡à¤¼à¤¿à¤¯à¥à¤ à¤à¥ à¤à¤¨ दाà¤à¤µà¥à¤ पर दाà¤à¤µ लà¤à¤¾à¤¨à¤¾ हà¥à¤¤à¤¾ हॠà¤à¥ à¤à¤¾à¤° सिà¤à¥à¤à¥à¤ à¤à¥ परिणाम सॠमà¥à¤² à¤à¤¾à¤¤à¥ हà¥à¤à¥¤",even:"सम",odd:"विषम",big:"बड़ा",small:"à¤à¥à¤à¤¾","even-des":"सà¤à¥ लाल, सà¤à¥ सफà¥à¤¦, 2 सफà¥à¤¦ 2 लाल","odd-des":"3 लाल + 1 सफà¥à¤¦, 3 सफà¥à¤¦ + 1 लाल","big-des":"सà¤à¥ लाल, 3 लाल + 1 सफà¥à¤¦","small-des":"सà¤à¥ सफà¥à¤¦, 3 सफà¥à¤¦ + 1 लाल","all-color":" सà¤à¥ सिà¤à¥à¤à¥ सफà¥à¤¦ या लाल हà¥à¤","color3-1":"दाà¤à¤µ à¤à¤¸ परिणाम पर लà¤à¤¾à¤à¤ à¤à¤¿à¤¸à¤®à¥à¤ सिà¤à¥à¤à¥ 3 सफà¥à¤¦ + 1 लाल या 3 लाल + 1 सफà¥à¤¦ हà¥à¤",lose:"हार"},Baucua:{description:"परिà¤à¤¯","game rule":"नियम",descriptionText:"मà¤à¤²à¥, à¤à¥à¤à¤à¤¾, à¤à¥à¤à¤¡à¤¼à¤¾ à¤à¤ लà¥à¤à¤ªà¥à¤°à¤¿à¤¯ पासा à¤à¥à¤² हॠà¤à¤¿à¤¸à¤®à¥à¤ à¤à¤¿à¤¹à¥à¤¨à¤¿à¤¤ तà¥à¤¨ पासà¥à¤ à¤à¤¾ à¤à¤ªà¤¯à¥à¤ हà¥à¤¤à¤¾ हà¥à¥¤ विà¤à¤¿à¤¨à¥à¤¨ à¤à¥à¤·à¥à¤¤à¥à¤°à¥à¤ à¤à¥ à¤
नà¥à¤¸à¤¾à¤°, à¤à¤¿à¤¹à¥à¤¨à¤¿à¤¤ पà¤à¥à¤·à¥à¤ मà¥à¤ तà¥à¤¨ मà¥
1à¤à¥à¤¯ बदलाव हॠसà¤à¤¤à¥ हà¥à¤: मà¤à¤²à¥, à¤à¥à¤à¤à¤¾, à¤à¤° à¤à¥à¤à¤¡à¤¼à¤¾à¥¤","win multiplier":"à¤à¥à¤¤à¤¨à¥ à¤à¤¾ à¤à¥à¤£à¤",symbol:"à¤à¤¿à¤¹à¥à¤¨",bet:"दाà¤à¤µ","outcome example":"परिणाम à¤à¤¾ à¤à¤¦à¤¾à¤¹à¤°à¤£",payout:"à¤à¥à¤à¤¤à¤¾à¤¨",win:"à¤à¥à¤¤",lose:"हार"},ColorGame:{title:"विवरण",description:"à¤à¤¹ विà¤à¤¿à¤¨à¥à¤¨ रà¤à¤à¥à¤ वालॠतà¥à¤¨ पासà¥à¤ à¤à¤¾ à¤à¤ªà¤¯à¥à¤ à¤à¤°à¤¤à¥ हà¥à¤, à¤à¤ª à¤à¤ हॠसमय मà¥à¤ à¤à¤ सà¤à¥à¤à¥à¤¬à¤¾à¤à¥ à¤à¥à¤·à¥à¤¤à¥à¤°à¥à¤ पर दाà¤à¤µ लà¤à¤¾ सà¤à¤¤à¥ हà¥à¤à¥¤ à¤à¤¬ डà¥à¤°à¥ à¤à¥ दà¥à¤°à¤¾à¤¨ पासॠफà¥à¤à¤à¥ à¤à¤¾à¤¤à¥ हà¥à¤, तॠविà¤à¥à¤¤à¤¾ रà¤à¤ à¤à¤¾ निरà¥à¤§à¤¾à¤°à¤£ à¤à¤¸ पासॠà¤à¥ à¤à¥à¤¹à¤°à¥ सॠहà¥à¤¤à¤¾ हॠà¤à¥ à¤à¤ªà¤° à¤à¥ à¤à¤° हà¥à¤¤à¤¾ हà¥à¥¤\nसà¤à¥à¤à¥à¤¬à¤¾à¤à¥ à¤à¥à¤·à¥à¤¤à¥à¤°à¥à¤ पर à¤à¤¸ रà¤à¤ à¤à¤¾ à¤à¤¯à¤¨ à¤à¤°à¥à¤ à¤à¤¿à¤¸à¤à¥ à¤à¤ª à¤à¤µà¤¿à¤·à¥à¤¯à¤µà¤¾à¤£à¥ à¤à¤°à¤¤à¥ हà¥à¤, à¤à¤° बड़ॠपà¥à¤°à¤¸à¥à¤à¤¾à¤° à¤à¥à¤¤à¤¨à¥ à¤à¥ लिठà¤à¤ªà¤à¥ शà¥à¤à¤à¤¾à¤®à¤¨à¤¾à¤à¤!",amount:"राशि",odds:"सà¤à¤à¤¾à¤µà¤¨à¤¾à¤à¤",oneDice:"à¤à¤à¤² पासा",twoDice:"दà¥à¤¹à¤°à¤¾ पासा",threeDice:"तिहरा पासा"},Baccarat:{rule_description:'8 सà¥à¤ ताश (बड़ॠà¤à¥à¤à¥ राà¤à¤¾ à¤à¥ à¤à¥à¤¡à¤¼à¤à¤°) à¤à¤¾ à¤à¤ªà¤¯à¥à¤ à¤à¤¿à¤¯à¤¾ à¤à¤¯à¤¾ हà¥, à¤à¥à¤² 416 ताश; "à¤à¤¿à¤²à¤¾à¤¡à¤¼à¥" à¤à¤° "बà¥à¤à¤à¤°" पà¥à¤°à¤¤à¥à¤¯à¥à¤ à¤à¥ दॠताश मिलतॠहà¥à¤à¥¤ पहलॠ"à¤à¤¿à¤²à¤¾à¤¡à¤¼à¥" फिर "बà¥à¤à¤à¤°" (ताश दिà¤à¤¾à¤¨à¥ à¤à¤¾ à¤à¥à¤°à¤® समान हà¥à¤¤à¤¾ हà¥)। पहलॠदà¥à¤° मà¥à¤ विà¤à¥à¤¤à¤¾ निरà¥à¤§à¤¾à¤°à¤¿à¤¤ नहà¥à¤ हà¥à¤¤à¤¾ हà¥, à¤à¤¸à¤à¥ बाद "पà¥à¤°à¤¾à¤à¥à¤¤à¤¿à¤" à¤à¥ à¤à¤§à¤¾à¤° पर ताश लिया à¤à¤¾à¤¤à¤¾ हà¥, पà¥à¤°à¤¤à¥à¤¯à¥à¤ à¤
धिà¤à¤¤à¤® 1 ताश à¤à¥à¤à¤ सà¤à¤¤à¤¾ हॠताà¤à¤¿ विà¤à¥à¤¤à¤¾ à¤à¤¾ निरà¥à¤§à¤¾à¤°à¤£ हॠसà¤à¥; यदि à¤à¤¿à¤¸à¥ à¤à¥ पà¤à¥à¤· à¤à¥ 8 या 9 à¤
à¤à¤ मिलतॠहà¥à¤ (सà¥à¤µà¤¾à¤à¤¾à¤µà¤¿à¤ रà¥à¤ª सॠविà¤à¥à¤¤à¤¾), तॠपहलॠ4 ताश à¤à¤¾ à¤à¤ªà¤¯à¥à¤ à¤à¤°à¤à¥ à¤à¤£à¤¨à¤¾ à¤à¥ à¤à¤¾à¤¤à¥ हà¥, à¤à¤° फिर à¤à¥à¤ à¤à¤° ताश नहà¥à¤ लिया à¤à¤¾à¤¤à¤¾ हà¥; à¤
à¤à¤¤ मà¥à¤, à¤à¤¿à¤²à¤¾à¤¡à¤¼à¥ à¤à¤° बà¥à¤à¤à¤° à¤à¥ à¤
à¤à¤à¥à¤ à¤à¤¾ यà¥à¤ बड़ा या à¤à¥à¤à¤¾ हà¥à¤¨à¥ à¤à¥ तà¥à¤²à¤¨à¤¾ à¤à¥ à¤à¤¾à¤¤à¥ हà¥à¥¤',play:"à¤à¥à¤² à¤à¤¾ तरà¥à¤à¤¾",bonus:"à¤à¤¡à¥à¤¸",limit:yn,classic:"Classic",6106:"".concat(gn,"(").concat(Tn,")"),6107:"".concat(gn,"(").concat(kn,")"),6108:hn,6109:vn,6110:bn,6111:xn},Mines:{description:"à¤
तà¥à¤¯à¤§à¤¿à¤ à¤à¥à¤à¤¤à¤¾à¤¨ à¤à¥ साथ à¤
नà¥à¤à¥à¤²à¤¨ à¤à¥à¤à¤¿à¤® â à¤à¤ रà¥à¤®à¤¾à¤à¤à¤ माà¤à¤¨à¥à¤¸à¤«à¥à¤²à¥à¤¡ à¤à¥à¤®! विसà¥à¤«à¥à¤à¤à¥à¤ सॠसावधान रहà¥à¤!\n\nशरà¥à¤¤ लà¤à¤¾à¤¨à¥ à¤à¥ बाद, à¤à¤¿à¤²à¤¾à¤¡à¤¼à¥ à¤à¤¿à¤¸à¥ à¤à¥ पतà¥à¤¥à¤° पर à¤à¥à¤ª à¤à¤°à¤¤à¥ हà¥à¤\nयदि यह à¤à¤ à¤à¥à¤°à¤¿à¤¸à¥à¤à¤² पà¥à¤°à¤à¤ à¤à¤°à¤¤à¤¾ हà¥, तॠà¤à¥à¤¤ सà¤à¤à¤¿à¤¤ हॠà¤à¤¾à¤¤à¥ हà¥\nà¤à¤ª फिर à¤
पनॠà¤à¥à¤¤ à¤à¥ बढ़ानॠà¤à¥ लिठपतà¥à¤¥à¤°à¥à¤ पर à¤à¥à¤ª à¤à¤°à¤¨à¤¾ à¤à¤¾à¤°à¥ रà¤à¤¨à¥ à¤à¤¾ à¤à¤¯à¤¨ à¤à¤° सà¤à¤¤à¥ हà¥à¤, या à¤à¤¿à¤¸à¥ à¤à¥ समय नà¤à¤¦ निà¤à¤¾à¤² सà¤à¤¤à¥ हà¥à¤\nलà¥à¤à¤¿à¤¨ यदि à¤à¤ª à¤à¤ विसà¥à¤«à¥à¤à¤ पर हिठà¤à¤°à¤¤à¥ हà¥à¤ â तॠà¤à¤ª सà¤à¥ सà¤à¤à¤¿à¤¤ à¤à¥à¤¤ à¤à¥ दà¥à¤¤à¥ हà¥à¤\n\nयदि à¤à¤ª शरà¥à¤¤ लà¤à¤¾à¤¨à¥ à¤à¥ बाद डिसà¥à¤à¤¨à¥à¤à¥à¤ हॠà¤à¤¾à¤¤à¥ हà¥à¤, तॠसिसà¥à¤à¤® सà¥à¤µà¤à¤¾à¤²à¤¿à¤¤ रà¥à¤ª सॠâनà¤à¤¦ निà¤à¤¾à¤²à¥à¤â à¤à¥à¤¨ लà¥à¤à¤¾ à¤à¤° à¤à¥à¤² समापà¥à¤¤ à¤à¤° दà¥à¤à¤¾"}
1,ChickenRoad:{description:"1. à¤
पनॠदाà¤à¤µ राशि à¤à¥à¤¨à¥à¤\r\n\r\n2. शà¥à¤°à¥ à¤à¤°à¥à¤ पर à¤à¥à¤²à¤¿à¤ à¤à¤°à¥à¤\r\n\r\n3. परिणाम सफलता या à¤
सफलता हॠसà¤à¤¤à¤¾ हà¥à¥¤ यदि सफल हà¥à¤¤à¤¾ हà¥, तॠà¤à¤ª à¤à¤à¥ बढ़ना à¤à¥à¤¨ सà¤à¤¤à¥ हà¥à¤ या à¤à¥à¤¶ à¤à¤à¤ à¤à¤° सà¤à¤¤à¥ हà¥à¤",easy:"à¤à¤¸à¤¾à¤¨",medium:"मधà¥à¤¯à¤®",hard:"à¤à¤à¥à¤",ace:"à¤à¤¸"},Keno:{description:"à¤à¤ सरल à¤à¥à¤¨à¥ à¤à¥à¤² à¤à¤¿à¤¸à¤®à¥à¤ à¤à¥à¤² 40 नà¤à¤¬à¤° हà¥à¤à¥¤ पà¥à¤°à¤¤à¥à¤¯à¥à¤ राà¤à¤à¤¡ मà¥à¤ 10 नà¤à¤¬à¤° निà¤à¤¾à¤²à¥ à¤à¤¾à¤¤à¥ हà¥à¤à¥¤ à¤à¤¿à¤²à¤¾à¤¡à¤¼à¥ à¤
धिà¤à¤¤à¤® 10 नà¤à¤¬à¤° पर दाà¤à¤µ लà¤à¤¾ सà¤à¤¤à¥ हà¥à¤à¥¤ à¤à¤¿à¤¤à¤¨à¥ à¤
धिठनà¤à¤¬à¤° सहॠहà¥à¤à¤à¥, à¤à¤¤à¤¨à¥ à¤
धिठà¤à¥à¤¤ मिलà¥à¤à¥à¥¤ à¤
पना à¤
नà¥à¤®à¤¾à¤¨à¤¿à¤¤ परिणाम à¤à¥à¤¨à¥à¤ à¤à¤° बड़ॠà¤à¥à¤¤ à¤à¥ शà¥à¤à¤à¤¾à¤®à¤¨à¤¾à¤à¤!",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"লাল দল à¦à¦¿à¦¤à¦¬à§ / নà§à¦² দল à¦à¦¿à¦¤à¦¬à§ / ডà§à¦° - ঠবাà¦à¦¿ ধরà§à¦¨"}},GamesDrawHistory:{title:"हालिया डà¥à¤°à¤¾",history:"परिणाम",numero:"डà¥à¤°à¤¾ à¤à¥ सà¤à¤à¥à¤¯à¤¾",results:"डà¥à
1¤°à¤¾ सà¤à¤à¥à¤¯à¤¾",Baccarat:{ratio_description:"बà¥à¤à¤à¤°, पà¥à¤²à¥à¤¯à¤° à¤à¤° à¤à¤¾à¤ à¤à¥ à¤à¥à¤¤ à¤à¤¾ पà¥à¤°à¤¤à¤¿à¤¶à¤¤ पिà¤à¤²à¥ 50 à¤à¥à¤²à¥à¤ मà¥à¤",banker:gn,player:hn,tie:vn,series:"डà¥à¤°à¤¾ à¤à¥ सà¤à¤à¥à¤¯à¤¾",win:fn}},GamesBetHistory:{today:"à¤à¤",yesterday:"à¤à¤²","no data":"à¤à¥à¤ डà¥à¤à¤¾ नहà¥à¤ मिला",isError:"Query Error, Please try again","personal cancel order":"Personal Cancel Order","no draw":"Not Drawn",isWon:"à¤à¥à¤¤ à¤à¥à¤à¤¾","not winning":"à¤à¥à¤¤ नहà¥à¤","empty draw":"Empty Draw",tie:"Tie",no_series:"No. {{number}}","game subTotal":"à¤à¤ª-यà¥à¤","game win":"à¤à¥à¤¤à¤¾",betAmount:"दाà¤à¤µ राशि",Taixiu:{title:"दाà¤à¤µ à¤à¤¾ रिà¤à¥à¤°à¥à¤¡",game:"à¤à¥à¤²",play:"à¤à¥à¤² à¤à¤¾ तरà¥à¤à¤¾",odds:"à¤à¤¡à¥à¤¸",valid_bet:"दाà¤à¤µ राशि",status:"Status",no:"No.",no_data:"à¤à¥à¤ डà¥à¤à¤¾ नहà¥à¤ मिला",win:fn,lose:pn},ColorGame:{betAmount:"दाà¤à¤µ राशि",winAmount:"à¤à¥à¤¤ राशि",win:fn,lose:pn},Baccarat:{win:fn,lose:pn,bet:"दाà¤à¤µ",banker:gn,player:hn,tie:vn,bankerPair:bn,playerPair:xn,"no comm":Tn,comm:kn}},RoadChart:{banker:"B",player:"P",tie:"T"}},dialog:{TOKEN_EXPIRED:"लà¥à¤à¤¿à¤¨ à¤à¥ समय सà¥à¤®à¤¾ समापà¥à¤¤ हॠà¤à¤ हà¥à¥¤"},others:{cancelOrder:{success:"सफलतापà¥à¤°à¥à¤µà¤ रदà¥à¤¦ à¤à¤¿à¤¯à¤¾ à¤à¤¯à¤¾à¥¤",fail:"रदà¥à¤¦ à¤à¤°à¤¨à¤¾ विफल",notDrawable:"à¤à¤°à¥à¤¡à¤° à¤à¥ à¤
वधि समापà¥à¤¤ हॠà¤à¤ हà¥, रदà¥à¤¦ नहà¥à¤ à¤à¤¿à¤¯à¤¾ à¤à¤¾ सà¤à¤¤à¤¾à¥¤",notAvailable:"रदà¥à¤¦ à¤à¤°à¤¨à¤¾ विफल, लà¥à¤à¤¿à¤à¤ à¤
वधि à¤à¥ दà¥à¤°à¤¾à¤¨ रदà¥à¤¦ à¤à¤°à¤¨à¥ à¤à¥ à¤
नà¥à¤®à¤¤à¤¿ नहà¥à¤ हà¥à¥¤",notFound:"रदà¥à¤¦ à¤à¤°à¤¨à¤¾ विफल, à¤à¤°à¥à¤¡à¤° मà¥à¤à¥à¤¦ नहà¥à¤ हà¥à¥¤"}},hook:{}}},Cn="Win",En="Lose",jn="Banker",Pn="Player",Sn="Tie",Nn="Banker Pair",Bn="Player Pair",An="Limits",Rn="Confirm",On="Cancel",Mn="No charge",Zn="charge",Dn={translation:{components:{calculator:{hidden:"Close",clear:"Clear",confirm:Rn,cancel:On},BallLists:{small:"S",big:"B",odd:"O",even:"E",dragon:"Dragon",tiger:"Tiger"},Alert:{systemNotice:"System Notification",confirm:Rn,cancel:On}},containers:{errorPanel:{loginTip:"Ang account ay na-deactivate, mangyaring mag-log in muli.",close:"Isara"},GamesPanel:{betting:"Nagtataya...",bettingSuccess:"Matagumpay ang taya: {{totalBettingAmount}}",win:"Win {{amount}}",BALANCE_NOT_ENOUGH:"Hindi sapat ang balanse, mangyaring mag-top up.",BALANCE_NOT_ENOUGH_ERROR:"Your balance is insufficient, please top up first",AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY:"Kasalukuyang isinasagawa ang laro. Mangyaring ihinto muna ang laro bago tingnan.",TOKEN_TIME_OUT:"Your session has expired, please log in again",BET_LIMIT:"[{{playName}}] Stake Limit: {{rangeStr}}}",BET_LIMIT_NO_PLAYNAME:"Limitasyon sa taya: {{rangeStr}}",BETTING_AMOUNT_OVER_LIMITS_ERROR:"Lampas sa limitasyon ang halaga ng taya > {{amount}}",BETTING_MULTIPLE_OVER_LIMITS_ERROR:"Lampas ang iyong multiplier sa pinahintulutang limitasyon.",PLAYID_CLOSED:"Nasa maintenance ang laro, pakisubukang muli mamaya!",PARAMETER_REQUIRED:"Ang mga parametro ng pagtaya ay hindi tumutugon sa mga kinakailangan, nabigo ang pagtaya!",IS_LOCK_TIME:"Nabigo ang pagtaya, ang loteryang ito ay pumasok sa locking period.",INVALID_TOKEN:"Nag-expire ang pag-login ng account, mangyaring mag-log in muli.",SYSTEM_ERROR:"Nabigo ang pagtaya, error sa sistema.",IN_BALANCE:"Nasa balanse",BET_LOCKED:"Tapos na ang pagtaya.",PLEASE_BET_NOW:"PAKITAYA NA",AUTO_BET_ON:"Auto-betting enabled",AUTO_BET_OFF:"Auto-betting disabled",TRAIL_NOT_SUPPORT:"Walang pahintulot.",Taixiu:{CAN_NOT_BET_ON_DIFFERENT_AREAS:"Isang panig lamang ng pagtaya ang pinapayagan sa parehong round.",betting:"BETTING",min_bet:"Min. Bet",max_bet:"Max. Bet",big:"Big",small:"Small",cancel:On,all_in:"All in",repeat:"Repeat",bet_now:"Bet Now",balance:"Balance"},Baccarat:{no:"No.",limit:An,banker:jn,player:Pn,tie:Sn,bankerPair:Nn,playerPair:Bn,confirm:Rn,cancel:On,"comm switch":"Switch commission free","no commission":"No charge",commission:"charge","text-1":"If the dealer wins by any point, the odds are 1:{{bonus}}; the principal will be refunded when a tie is made.","text-2":"If the banker wins with points other than 6 points, the odds are 1:{{bonus}}; if the banker wins with 6 points, the odds are 1:{{bonusHalf}}; the principal will be refunded when a draw is made."},Baucua:{game_name:"Fish Prawn Crab"},Mines:{bet:"Bet",title:"Mines",start:"Start",cancel:"Cancel"}},GamesIntro:{description:"Description",rules:"Rules",title:"Description",odds:"Odds",betBlock:"Betting Area",MIN_BET:"Pinakamababang Taya",MAX_BET:"Pinakamataas na Taya",MAX_BET_PER_DRAW:"Pinakamataas na taya kada draw",GAME_MAX_BET_PER_BET:"Pinakamataas na taya sa bawat laro",GAME_MAX_BET_PER_DRAW:"Pinakamataas na taya sa laro kada draw",MAX_BONUS_PER_BET:"Pinakamataas na bonus sa bawat taya (kasama ang prinsipal)",MAX_BONUS_PER_DRAW:"Pinakamataas na bonus kada draw (kasama ang prinsipal)",MAX_PROFIT_PER_DRAW:"Pinakamataas na payout kada kita (hindi kasama ang prinsipal)",BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION:"Lampas sa pinakamataas na limitasyon ng bonus sa bawat taya (kada draw) ang bonus. Awtomatikong ibabawas ng sistema ang bonus kung ito ay lalampas sa pinakamataas na limitasyon.",Taixiu:{key1:"Ang laro ay nilalaro gamit ang 3 dice. Ang kabuuang puntos mula 11 hanggang 18 ay tinatawag na Malaki, at mula 3 hanggang 10 ay tinatawag na Maliit.",key2:"Kailangan mong hulaan kung ang resulta ay Malaki o Maliit at pumusta sa alinman sa dalawang panig (maaari lamang pumili ng isa).",key3:"Ilagay ang halaga ng pera na nais mong ipusta at pindutin ang âsang-ayonâ para tapusin ang pagtaya.",key4:"Maaari kang maglagay ng maraming pusta sa anumang halaga bago matapos ang oras ng pagtaya.",key5:"Kung may diperensya sa kabuuang halaga ng pusta sa pagitan ng Malaki at Maliit sa pagtatap
1os ng oras ng pagtaya, ang diperensyang iyon ay ibabalik sa unang naglagay ng pusta.",key6:"Kung magkaroon ng anumang sira o problema na magdudulot ng hindi matukoy na resulta, ang round ng laro ay magiging invalid."},TaixiuVN:{descriptionText:'Ang larong "Viet-style Big/Small" ay gumagamit ng 3 dice na may mga numero mula 1 hanggang 6. Ang mga manlalaro ay huhulaan ang resulta ng tatlong dice. Sa betting interface, piliin ang mga numerong gusto mo. Good luck sa pagkapanalo ng malaking premyo!',big:"- Big: The total score will be from 11 to 17 (inclusive) with the exception of a triple. Win multiplier is {{bonusRatio}}",small:"- Small: The total score will be from 4 to 10 (inclusive) with the exception of a triple. Win multiplier is {{bonusRatio}}",other:"- If the three dice are the same, no win and wonât refund the stake."},Xocdia:{descriptionText:"Ang Xoc Dia ay isang sikat na tradisyonal na laro na laganap sa Vietnam. Ang laro ay nilalaro gamit ang 4 na barya na may dalawang magkakaibang kulay sa bawat bahagi. Ilalagay ng mga manlalaro ang kanilang pusta sa iba't ibang uri ng taya na tumutugma sa kinalabasan ng apat na barya. Para manalo, kailangang hulaan ng mga manlalaro ng tama ang resulta ng mga barya matapos itong haluin.",even:"Even",odd:"Odd",big:"Big",small:"Small","even-des":"All Red, All White, 2 White 2 Red","odd-des":"3 Red 1 White, 3 White 1 Red","big-des":"All Red, 3 Red 1 White","small-des":"All White, 3 White 1 Red","all-color":"All Coins are White or Red","color3-1":"Bet on the result where Coins is 3 White + 1 Red or 3 Red + 1 White result",lose:"Lose"},Baucua:{description:"Description","game rule":"Game Rule",descriptionText:"Ang Fish Prawn Crab ay isang tanyag na laro ng tatlong dice na may ibaât ibang simbolo depende sa rehiyon, kabilang ang Isda, Hipon, at Alimango.","win multiplier":"Win multiplier",symbol
1:"Symbol",bet:"Bet","outcome example":"Outcome example",payout:"Payout",win:"Win",lose:"Lose"},ColorGame:{description:"Gumagamit ng tatlong dice na may anim na magkakaibang kulay, maaari kang maglagay ng pusta sa maraming betting areas nang sabay-sabay. Kapag pinatingkad ang dice sa draw, ang panalong kulay ay batay sa mukha ng dice na nakaharap pataas. Piliin ang kulay na iyong huhulaan sa mga betting areas, at nawa'y suwertehin ka sa pagkapanalo ng malaking premyo!",amount:"Amount",oneDice:"ONE DICE",twoDice:"TWO DICE",threeDice:"THREE DICE"},Baccarat:{rule_description:'Gumagamit ng 8 set ng baraha (hindi kasama ang malaki, maliit, at hari), kabuuang 416 na baraha. Parehong humihila ng dalawang baraha ang "Player" at "Banker". Unang humila ang Player, saka ang Banker; pareho ang pagkakasunod ng paglalantad ng baraha. Hindi pa natutukoy ang panalo sa unang round; sa susunod, batay sa "Natural" na panuntunan, maaaring humila ng isa pang baraha ang bawat panig upang matukoy ang panalo. Kapag may 8 o 9 puntos ang alinmang panig sa unang apat na baraha ("Natural"), hindi na humihila pa ng baraha. Sa huli, ikinumpara ang kabuuang puntos ng Player at Banker upang malaman kung sino ang mas malaki.',play:"playstyle",bonus:"Bonus",limit:An,classic:"Classic",6106:"".concat(jn,"(").concat(Mn,")"),6107:"".concat(jn,"(").concat(Zn,")"),6108:Pn,6109:Sn,6110:Nn,6111:Bn},BacBo:{description:"Ang banker at ang player ay parehong gumagamit ng 2 dice. Hindi pwedeng tumaya sa parehong banker at player nang sabay. Ang panalong panig ay ang may mas mataas na kabuuang puntos mula sa dalawang dice. Pumili ng magiging resulta na iyong hinuhulaan sa betting area, at nawa'y swertehin ka sa pagkapanalo ng malaking premyo!",rulesText:"If the points are the same, itâs a tie, and different odds apply based on the points.",banker:jn,player:Pn,tie:Sn},Mines:{description:"Napakataas na payout na may nako-customize na risk â isang nakakakilig na larong minefield! Mag-ingat sa mga pampasabog!\n\nPagkatapos maglagay ng taya, maaaring pumili ang manlalaro ng anumang bato na tatapikin.\nKapag lumitaw ang kristal, madaragdagan ang iyong panalo.\nMaaari mong ipagpatuloy ang pagpili ng mga bato upang madagdagan pa ang panalo, o mag-cash out anumang oras.\nNgunit kung mabangga mo ang pampasabog â mawawala ang lahat ng iyong napanalunan.\n\nKung mawalan ka ng koneksyon matapos maglagay ng taya, awtomatikong pipiliin ng sistema ang âCash Outâ at tatapusin ang laro."},Keno:{description:"Isang simpleng laro ng keno na may kabuuang 40 numero. Sa bawat round ay huhugutin ang 10 numero. Maaaring pumili ang mga manlalaro ng hanggang 10 numero para pagtayaan. Kapag mas marami kang nahulaan ng tama, mas mataas ang iyong premyo. Pumili ng iyong inaasahang resulta at good luck sa malaking panaloï¼",AUTO_PLAY:"AUTO PLAY",BET:"Bet",AUTO_COUNT:"Auto Count",CANCEL:"CANCEL",START:"START",RANDOM:"RANDOM",CLEAR:"CLEAR"},RPS:{description:"Pumili ng taya: Panalo ang Pula / Panalo ang Asul / Tabla"}},GamesDrawHistory:{title:"Recent Draw",history:"History",numero:"Numero",results:"Results",Baccarat:{ratio_description:"Banker, Player and Tie win percentages in last 50 games",banker:jn,player:Pn,tie:Sn,series:"Numero",win:Cn}},GamesBetHistory:{today:"Today",yesterday:"Yesterday","no data":"No Data",isError:"Query Error, Please try again","personal cancel order":"Personal Cancel Order","no draw":"Not Drawn",isWon:"Won","not winning":"Not winning","empty draw":"Empty Draw",tie:"Tie",no_series:"Series {{number}}","game subTotal":"Subtotal","game win":"Win",betAmount:"Bet Amount",Taixiu:{title:"My Bets",game:"Games",play:"Play",odds:"Odds",valid_bet:"Valid Bet",status:"Status",no:"No.",no_data:"No Data",win:Cn,lose:En},ColorGame:{betAmount:"Bet Amount",winAmount:"Win Amount",win:Cn,lose:En},Baccarat:{win:Cn,lose:En,bet:"bet",banker:jn,player:Pn,tie:Sn,bankerPair:Nn,playerPair:Bn,"no comm":Mn,comm:Zn},BacBo:{banker:jn,player:Pn,tie:Sn}},RoadChart:{banker:"B",player:"P",tie:"T"}},dialog:{TOKEN_EXPIRED:"Nag-expire ang login."},others:{cancelOrder:{success:"Matagumpay ang pagkansela.",fail:"Nabigo ang pagkansela.",n
1otDrawable:"Expired na ang order, hindi maaaring kanselahin.",notAvailable:"Nabigo ang pagkansela, hindi pinapayagan ang pagkansela sa panahon ng locking.",notFound:"Nabigo ang pagkansela, wala ang order."}},hook:{}}},Ln=t(73337),Gn=function e(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];var i=t[0],r=t[1],o=t.slice(2),c=Object.keys((0,d.Z)((0,d.Z)({},i),r)).reduce((function(n,t){var a;return"object"==typeof i[t]&&"object"==typeof r[t]?(0,d.Z)((0,d.Z)({},n),{},(0,l.Z)({},t,e(i[t],r[t]))):(0,d.Z)((0,d.Z)({},n),{},(0,l.Z)({},t,null!==(a=r[t])&&void 0!==a?a:i[t]))}),{});return o.length?e.apply(void 0,[c].concat((0,u.Z)(o))):c},Wn={en:Y,zh:Gn(Y,k),tw:Gn(Y,O),vi:Gn(Y,ce),id:Gn(Y,ye),km:Gn(Y,Ne),ko:Gn(Y,We),pt:Gn(Y,Je),th:Gn(Y,mn),hi:Gn(Y,In),ty:Gn(Y,Dn)};m.ZP.use(f.Db).init({resources:Wn,lng:Ln.Z.getI18nLanguage(),interpolation:{escapeValue:!1}});var Un=m.ZP,qn=t(7905),zn=t(14529),Fn=t(86729),Vn=t(15671),Hn=t(43144),Yn=t(57334),Xn=t.n(Yn),Kn=t(34010),Qn=function(e){return!e||/^\s*$/.test(e)},Jn=function(){function e(){(0,Vn.Z)(this,e),this.endpoint="",this.connected=!1,this.disconnected=!1,this.sockjs=void 0,this.stompClient=void 0,this.reconnectTimer=void 0,this.reconnectTimeout=1e4,this.retryTimes=0}return(0,Hn.Z)(e,[{key:"connect",value:function(e,n,t){var a=this;if(Qn(n)){if(Qn(a.endpoint))throw new Error("connect endpoint is null.")}else{if(a.stompClient)try{a.stompClient.disconnect()}catch(e){}a.token=e,a.endpoint=n,a.connectedCallback=t,a.disconnected=!1}a.sockjs=new(Xn())(a.endpoint,null,{transports:["websocket","jsonp-polling","xhr-polling"]}),a.stompClient=Kn.Stomp.over(a.sockjs),a.stompClient.debug=null,a.stompClient.connect(e,e,(function(){a.connected=!0,a.retryTimes=0,t&&t()}),(function(){a.disconnected||(console.warn("stomp reconnect ..."),a.disconnected=!1,a.connected=!1,a.reconnect(a.token,a.endpoint,a.connectedCallback))}))}},{key:"disconnect",value:function(){if(clearTimeout(this.reconnectTimer),this.disconnected=!0,this.stompClient){try{this.stompClient.disconnect()}catch(e){}this.connected=!1,this.stompClient=void 0,delete this.sockjs,this.sockjs=void 0}}},{key:"subscribe",value:function(e,n){return this.connected?this.stompClient.subscribe(e,n):null}},{key:"reconnect",value:function(){var n=this;clearInterval(n.reconnectTimer),n.retryTimes>=e.maxRetryTimes?n.disconnected=!0:n.reconnectTimer=setTimeout((function(){n.retryTimes+=1,n.connect(n.token,n.endpoint,n.connectedCallback)}),this.reconnectTimeout)}}]),e}();Jn.maxRetryTimes=10;var $n=function(){function e(n){(0,Vn.Z)(this,e),this.messageBridge=n,this.subscription=null,this.funcCallback=null,this.onSubscribeCallback=void 0,this.topic="",this.message="",this.reconnectTimeout=1e4}return(0,Hn.Z)(e,[{key:"subscribe",value:function(e,n){var t=this;this.funcCallback=e,this.onSubscribeCallback=n,t.subscription=t.messageBridge.subscribe(t.topic,(function(n){t.message=n,e&&e(n.body)})),t.subscription&&"function"==typeof n&&n(),t.doConnectedChange=setTimeout((function(){t.onConnectedChange()}),1500)}},{key:"resubscribe",value:function(){var e=this;e.subscribe(e.funcCallback,e.onSubscribeCallback)}},{key:"unsubscribe",value:function(){this.subscription&&this.subscription.unsubscribe(),this.subscription=null,this.funcCallback=null,this.message="",clearInterval(this.doConnectedChange),clearInterval(this.checkConnectedChange)}},{key:"onConnectedChange",value:function(){var e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];clearInterval(this.checkConnectedChange);var t=this.messageBridge.connected,a=this.messageBridge.disconnected;a||((a||n===t||t)&&this.subscription||this.subscribe(this.funcCallback,this.onSubscribeCallback),a||(this.checkConnectedChange=setTimeout((function(){e.onConnectedChange(t)}),this.reconnectTimeout)))}}]),e}(),et=new Jn,nt=function(){function e(){(0,Vn.Z)(this,e)}return(0,Hn.Z)(e,null,[{key:"WebMessageBridge",value:function(){return et}},{key:"StompTopic",value:function(){return new $n(et)}}]),e}(),tt=function(){function e(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/m/lotto-vn-h5";(0,Vn.Z)(this,e),this.subscribeDrawResult=function(t,a,i){var r="/topic/draw_number/".concat(t);e.drawNumberTopic[t]=nt.StompTopic(),e.drawNumberTopic[t].topic=r,n.unsubscribeDrawResult();try{e.drawNumberTopic[t].subscribe((function(e){return a(e)}),i)}catch(e){}},this.unsubscribeDrawResult=function(n){e.drawNumberTopic[n]&&(e.drawNumberTopic[n].unsubscribe(),delete e.drawNumberTopic[n])},this.subscribeGameBotBet=function(t,a){var i="/topic/game_bot_bet/".concat(t);e.gameBotBetTopic[t]=nt.StompTopic(),e.gameBotBetTopic[t].topic=i,n.unsubscribeGameBotBet();try{e.gameBotBetTopic[t].subscribe((function(e){return a(e)}))}catch(e){}},this.unsubscribeGameBotBet=function(n){e.gameBotBetTopic[n]&&(e.gameBotBetTopic[n].unsubscribe(),delete e.gameBotBetTopic[n])},this.subscribeGameBotDraw=function(t,a){var i="/topic/game_bot_draw/".concat(t);e.gameBotDrawTopic[t]=nt.StompTopic(),e.gameBotDrawTopic[t].topic=i,n.unsubscribeGameBotDraw();try{e.gameBotDrawTopic[t].subscribe((function(e){return a(e)}))}catch(e){}},this.unsubscribeGameBotDraw=function(n){e.gameBotDrawTopic[n]&&(e.gameBotDrawTopic[n].unsubscribe(),delete e.gameBotDrawTopic[n])},this.webSocketRemotePath="".concat(t,"/rtmsg")}
1return(0,Hn.Z)(e,[{key:"connect",value:function(n,t,a){var i=this;t&&(this.webSocketRemotePath="".concat(t,"/rtmsg")),nt.WebMessageBridge().connect(n,this.webSocketRemotePath,(function(){for(var t in"function"==typeof a&&a(),i.userTopic&&i.userTopic.resubscribe(),e.drawNumberTopic||{})({}).hasOwnProperty.call(e.drawNumberTopic,t)&&e.drawNumberTopic[t].resubscribe();for(var r in e.gameSettingTopic||{})({}).hasOwnProperty.call(e.gameSettingTopic,r)&&e.gameSettingTopic[r].resubscribe();for(var o in e.playMenuTopic||{})({}).hasOwnProperty.call(e.playMenuTopic,o)&&e.playMenuTopic[o].resubscribe();for(var c in e.gameBotBetTopic||{})({}).hasOwnProperty.call(e.gameBotBetTopic,c)&&e.gameBotBetTopic[c].resubscribe();for(var s in e.gameBotDrawTopic||{})({}).hasOwnProperty.call(e.gameBotDrawTopic,s)&&e.gameBotDrawTopic[s].resubscribe();e.announcementTopic.topic&&e.announcementTopic.resubscribe(),i.forceReconnect(n,a)}))}},{key:"forceReconnect",value:function(e,n){var t=this;setTimeout((function(){t.connect(e,n)}),3e5)}},{key:"subscribeUserChannel",value:function(e,n){var t="/topic/user/".concat(e);this.userTopic=nt.StompTopic(),this.userTopic.topic=t,this.userTopic.subscribe((function(e){return n(e)}))}},{key:"unsubscribeUserChannel",value:function(){this.userTopic&&this.userTopic.unsubscribe()}},{key:"subscribeGameSettingChannel",value:function(n,t){var a="/topic/setting/".concat(n);e.gameSettingTopic[n]=nt.StompTopic(),e.gameSettingTopic[n].topic=a,this.unsubscribeGameSettingChannel();try{e.gameSettingTopic[n].subscribe((function(e){return t(e)}))}catch(e){}}},{key:"unsubscribeGameSettingChannel",value:function(n){e.gameSettingTopic[n]&&(e.gameSettingTopic[n].unsubscribe(),delete e.gameSettingTopic[n])}},{key:"subscribePlayMenuChannel",value:function(n,t){var a="/topic/play_menu/".concat(n);e.playMenuTopic[n]=nt.StompTopic(),e.playMenuTopic[n].topic=a,this.unsubscribePlayMenuChannel();try{e.playMenuTopic[n].subscribe((function(e){return t(e)}))}catch(e){console.warn("subscribe game_setting channel failed ...",e)}}},{key:"unsubscribePlayMenuChannel",value:function(n){e.playMenuTopic[n]&&(e.playMenuTopic[n].unsubscribe(),delete e.playMenuTopic[n])}},{key:"subscribeAnnouncement",value:function(n){e.announcementTopic.topic="/topic/draw_center/announcement",this.unsubscribeAnnouncement();try{e.announcementTopic.subscribe((function(e){return n(e)}))}catch(e){console.warn("subscribe announcement channel failed ...",e)}}},{key:"unsubscribeAnnouncement",value:function(){e.announcementTopic.unsubscribe()}}]),e}();tt.gameSettingTopic={},tt.drawNumberTopic={},tt.playMenuTopic={},tt.gameBotBetTopic={},tt.gameBotDrawTopic={},tt.announcementTopic=nt.StompTopic(),tt.connected=nt.WebMessageBridge().connected;var at=new tt,it=[],rt=function(){var e,n,t;e=(0,zn.Yy)(void 0,{skip:tt.connected}),n=e.data,t=e.isSuccess,(0,r.useEffect)((function(){if(t&&null!=n&&n.imUrl&&!tt.connected){var e=(0,Fn.LP)();e&&at.connect(e,n.imUrl)}}),[n,t]),(0,r.useEffect)((function(){it.forEach((function(e){var n;n=e,(new Image).src=n}))}),[])},ot=t(29439),ct=t(1168),st=t(46123),ut=t.n(st),lt=t(98374),dt=t.n(lt),mt=function(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current},ft=t(79760),pt=t(37290),gt=t(54647),ht=t.p+"static/media/text.1079858706984692f8fb.png",vt=t(35486),bt=function(e,n){var a=e.gameGroupCode,i=e.mobileIconUrl,r=e.webIconUrl,o=Ln.Z.getCustomIconPath(n),c=function(e,n){if(""!==n)return n;switch(e){case"VXD":return t(15971)("./".concat(o,"/xocdia.png"));case"VBC":return t(34848)("./".concat(o,"/baucua.png"));case"CLR":return t(53829)("./".concat(o,"/colorgame.png"));case"BCR":return t(35742)("./".concat(o,"/baccarat.png"));case"MINES":return t(19374)("./".concat(o,"/mines.png"));case"CRG":return t(19852)("./".concat(o,"/chickenRoad.png"));case"MINIKENO":return t(10118)("./".concat(o,"/minikeno.png"));case"RPS":return t(12247)("./".concat(o,"/rps.png"));default:return t(49515)("./".concat(o,"/taixiu.png"))}}(a,dt()()?i:r);return{currentIcon:c}},xt=t(81889),yt={init:"init",close:"close",open:"open",icon_open:"icon_open",icon_close:"icon_close",game_open:"game_open",game_close:"game_close",game_betting:"game_betting",game_loaded:"game_loaded",drag_end:"drag_end",undo:"undo",double:"double",undo_double:"undo_double",clear_remind_mark:"clear_remind_mark",clear_remind_mark_showed:"clear_remind_mark_showed",remind_mark:"remind_mark",remind_mark_showed:"remind_mark_showed",remind_mark_bet:"remind_mark_bet",remind_mark_showed_bet:"remind_mark_showed_bet",auto_bet:"auto_bet",consecutive_bet:"consecutive_bet"},_t=function(e){var n=(0,r.useRef)(),t=(0,r.useRef)({autoBetCount:0}),a=(0,r.useRef)(!1),i=(0,r.useRef)([]);n.current=(0,xt.LZ)();var o=function(e){if(n.current){var t=(0,Fn.Z_)(),a=(0,Fn.Wf)();t&&a&&(e.action?n.current.gtag("event","".concat("minigame","_").concat(e.action),(0,d.Z)({event_label:e.label,event_category:e.category,merchant:t,customer_id:a,path:window.location.pathname},e.data)):console.warn("Event action is required"))}},c=function(e,n){if(!e){var t,a=(0,Fn.mk)(!0,"lastBetNumero"),i=a.lastBetNumero,r=a.count,c=null==n?void 0:n.currentNumero.numero;if(i===c)return;var s=r;i===(null==n||null===(t=n.previousNumero)||void 0===t?void 0:t.numero)?[2,5,10,20,50,70,100].includes(s+=1)&&o({action:"".concat(yt.consecutive_bet,"_").concat(s)}):s=1,(0,Fn.tG)(!0,"lastBetNumero",{lastBetNumero:c,count:s})}};return{sendEvent:o,handleMiniGameInitGa:function(e,n){!e&&n&&n.length>0&&o({action:yt.init})},handleRemindMarkCountGa:function(){var e=(0,Fn.mk)(!0,"gameTimingReminder"),n=(0,Fn.mk)(!0,"remindMarkCount"),t=n.count,a=n.clickCount;if(null!=e&&e.gameId||1!==t){if(t>=2&&t>a){var i=a+1;o({action:yt.clear_remind_mark_showed,data:{clickCount:i}}),(0,Fn.tG)(!0,"remindMarkCount",{count:t,clickCount:i})}}else o({action:yt.clear_remind_mark}),(0,Fn.tG)(!0,"remindMarkCount",{count:1,clickCount:1})},handleRemindMarkShowGa:function(e){if(e){var n=(0,Fn.mk)(!0,"remindMarkCount"),t=n.count,a=n.clickCount;if(t){if(t===a){var i=+t+1;o({action:yt.remind_mark_showed,data:{count:i}}),(0,Fn.tG)(!0,"remindMarkCount",{count:i,clickCount:a})}}else o({action:yt.remind_mark}),(0,Fn.tG)(!0,"remindMarkCount",{count:1})}},handleRemindMarkBetGa:function(){var e=(0,Fn.mk)(!0,"remindMarkCount").clickCount,n=(0,Fn.mk)(!0,"remindMarkBet").remindMarkBet;e>(void 0===n?0:n)&&(1===e?(o({action:yt.remind_mark_bet}),(0,Fn.tG)(!0,"remindMarkBet",{remindMarkBet:1})):(o({action:yt.remind_mark_showed_bet}),(0,Fn.tG)(!0,"remindMarkBet",{remindMarkBet:e})))},handleAutoBetGa:function(e,n){var a,i,r,c=null==n||null===(a=n.currentNumero)||void 0===a?void 0:a.numero;if((null===(i=t.current)||void 0===i?void 0:i.currentBetNumero)!==c){if(e){var s=(0,Fn.mk)(!0,"gameTimingReminder").timestamp,u=(0,Fn.b2)(s)?1:t.current.autoBetCount+1;[1,2,5,10,20,50,70,100].includes(u)&&o({action:"".concat(yt.auto_bet,"_").concat(u)}),r=u}else r=0;t.current={autoBetCount:r,currentBetNumero:c}}},handleConsecutiveBetGa:function(e,n){a.current?(c(!1,n),a.current=!1):c(e,n)},handleIsPrevBet:function(e){a.current=e},handleClickActionStack:function(n){var t=i.current;switch(n){case"double":case"betting":case"again":t.push(n);break;case"undo":"double"===t.pop()&&o({action:yt.undo_double,data:{game_code:e}})}},resetClickActionStack:function(){i.current=[]},gaEventConfig:yt}},wt=t(46417);function Tt(e){var n=e.gameMenu,t=e.index,a=e.onGameClick,i=n.gameCode,o=n.remark,c=(n.gameId,bt(n).currentIcon),s=(0,gt.q_)((function(){return{from:{transform:"translateX(0px)"},config:{tension:170,friction:26,precision:.01,duration:2e3}}}),[]),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=(0,r.useRef)(null),f=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(m.current&&f.current){var e=f.current.offsetWidth-m.current.offsetWidth;e>1?(m.current.classList.add("".concat(pt.Z.classNamePrefix,"animateText")),d.start({from:{transform:"translateX(3px)"},to:{transform:"translateX(-".concat(e,"px)")},loop:{reverse:!0},delay:1e3,onRest:function(){return d.start()}})):m.current.classList.add("".concat(pt.Z.classNamePrefix,"center"))}}),[d,t]),(0,wt.jsxs)("li",{className:"mini-game-game-icon-group",children:[(0,wt.jsx)("img",{className:"mini-game-game-icon",src:c,alt:"",onClick:function(){return a(n)}}),(0,wt.jsx)("img",{className:"mini-game-game-text-image",src:ht,alt:""}),(0,wt.jsx)("div",{ref:m,className:"mini-game-game-text",children:(0,wt.jsx)(gt.q.div,{style:l,children:(0,wt.jsx)("span",{ref:f,className:"mini-game-text-conent",children:o})})})]},i)}var kt=function(e){var n=e.onClick,t=e.direction,a=e.isMenuShow,i=(0,zn.bI)().data,r=null==i?void 0:i.slice(0,6),o=null==i?void 0:i.slice(6),c=o?function(e,n){for(var t=[];e.length;)t.push(e.splice(0,6));return t}(o):[],s=_t(),u=s.sendEvent,l=s.gaEventConfig,d=function(e){n(),ft.Z.open(e),u({action:l.game_open,data:{game_code:e.gameC
1ode}})};return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix).concat(t," ").concat(pt.Z.classNamePrefix).concat(a?"show":""),children:[(0,wt.jsx)("ul",{className:ut()("mini-game-hot-list","mini-game-size-".concat(null==r?void 0:r.length)),children:null==r?void 0:r.map((function(e,n){return(0,wt.jsx)(Tt,{gameMenu:e,index:n,onGameClick:d},n)}))}),c.length>0&&(0,wt.jsx)(vt.Z,{className:"mini-game-other-list",children:c.map((function(e,n){return(0,wt.jsx)("ul",{className:"mini-game-other-list-container",children:e.map((function(e,n){return(0,wt.jsx)(Tt,{gameMenu:e,index:n,onGameClick:d},n)}))},n)}))})]})},It=function(e,n){if(""!==n)return n;var a=Ln.Z.getCustomIconPath();switch(e){case"VXD":return t(15971)("./".concat(a,"/xocdia.png"));case"VBC":return t(34848)("./".concat(a,"/baucua.png"));case"CLR":return t(53829)("./".concat(a,"/colorgame.png"));case"BCR":return t(35742)("./".concat(a,"/baccarat.png"));case"MINIKENO":return t(10118)("./".concat(a,"/minikeno.png"));case"RPS":return t(12247)("./".concat(a,"/rps.png"));default:return t(49515)("./".concat(a,"/taixiu.png"))}};function Ct(e){var n=e.gameMenu,t=e.index,a=e.onGameClick,i=n.gameCode,o=n.gameGroupCode,c=n.mobileIconUrl,s=n.webIconUrl,u=n.remark,l=(0,gt.q_)((function(){return{from:{transform:"translateX(0px)"},config:{tension:170,friction:26,precision:.01,duration:2e3}}}),[]),d=(0,ot.Z)(l,2),m=d[0],f=d[1],p=(0,r.useRef)(null),g=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(p.current&&g.current){var e=g.current.offsetWidth-p.current.offsetWidth;e>1?(p.current.classList.add("".concat(pt.Z.classNamePrefix,"animateText")),f.start({from:{transform:"translateX(3px)"},to:{transform:"translateX(-".concat(e,"px)")},loop:{reverse:!0},delay:1e3,onRest:function(){return f.start()}})):p.current.classList.add("".concat(pt.Z.classNamePrefix,"center"))}}),[f,t]),(0,wt.jsxs)("li",{className:"mini-game-game-icon-group",children:[(0,wt.jsx)("img",{className:ut()("mini-game-game-icon",{"mini-game-game-icon-desktop":!dt()()}),src:It(o,dt()()?c:s),alt:"",onClick:function(){return a(n)}}),(0,wt.jsx)("img",{className:"mini-game-game-text-image",src:ht,alt:""}),(0,wt.jsx)("div",{ref:p,className:"mini-game-game-text",children:(0,wt.jsx)(gt.q.div,{style:m,children:(0,wt.jsx)("span",{ref:g,className:"mini-game-text-conent",children:u})})})]},i)}var Et=function(e){for(var n=e,t=4,a=1,i=4;e>=i;)a++,n-=t,i+=++t;return{row:a,rowQty:t,number:n}},jt=function(e,n){var t=Et(e).row;switch(n){case Ut.DownLeft:case Ut.UpLeft:return"-".concat(240+150*(t-1),"%");default:return"".concat(240+150*(t-1),"%")}},Pt=function(e,n){var t=Et(e).row;switch(n){case Ut.DownLeft:case Ut.DownRight:return"".concat(0+5*(t-1),"%");default:return"".concat(50+5*(t-1),"%")}},St=function(e){var n=e.onClick,t=e.isMenuShow,a=e.direction,i=(0,zn.bI)().data||[],o=i.length,c=(0,gt.bY)(i.length,(function(e){return{opacity:0,transform:"rotate(0deg) translate(".concat(jt(e,a),", ").concat(Pt(e,a),") rotate(0deg)")}}),[]),s=(0,ot.Z)(c,2),u=s[0],l=s[1],m=function(e){t&&(n(),ft.Z.open(e))};return(0,r.useEffect)((function(){l.start((function(e){var n=Et(e),i=n.rowQty,r=n.number,o=n.row,c=90/(i-1),s=jt(e,a),u=Pt(e,a),l="rotate(".concat(function(){switch(a){case Ut.DownRight:case Ut.UpLeft:return"";default:return"-"}}()).concat(r*c,"deg) translate(").concat(s,", ").concat(u,") rotate(").concat(function(){switch(a){case Ut.DownRight:case Ut.UpLeft:return"-";default:return""}}()).concat(r*c,"deg)"),d="rotate(0deg) translate(".concat(s,", ").concat(u,") rotate(0deg)");return{transform:t?l:d,opacity:t?1:0,delay:300*(o-1),config:{duration:300}}}))}),[t,o,a]),(0,wt.jsx)("ul",{className:ut()("mini-game-game-button-list"),children:u.map((function(e,n){return(0,wt.jsx)(gt.q.div,{style:(0,d.Z)({position:"absolute",pointerEvents:t?"auto":"none"},e),children:(0,wt.jsx)(Ct,{gameMenu:i[n],index:n,onGameClick:m,isMenuShow:t},n)},n)}))})},Nt=t.p+"static/media/minigame_btn_back_normal.3da7d4cd42508a2233e7.png",Bt=function(e){var n=e.direction,t=e.isZoomOut,a=e.isMenuShow,i=e.toggleZoomClick,r=n===Ut.DownRight||n===Ut.UpRight,o=n===Ut.DownLeft||n===Ut.UpLeft;t&&(r=!r,o=!o);var c=ut()({"mini-game-zoom-out-icon":!0,"mini-game-left":r,"mini-game-right":o,"mini-game-hidden":a,"mini-game-keep-right":!t&&o});return(0,wt.jsx)("img",{className:c,src:Nt,alt:"",onClick:i})},At=function(e){var n=e.isMenuShow,t=e.onMainButtonClick,a=(0,r.useRef)(null);return(0,wt.jsx)("div",{ref:a,onClick:t,className:ut()({"mini-game-main-game-icon":!0,"mini-game-show":n})})},Rt={start:"touchstart",move:"touchmove",stop:"touchend"}
1,Ot={start:"mousedown",move:"mousemove",stop:"mouseup"};function Mt(e){var n=e.isMenuShow,t=e.isZoomOut,a=e.onTouchEnd,i=void 0===a?function(){}:a,o=window.miniGameRenderStatus,c=document.getElementById(o),s=(0,r.useRef)({x:0,y:0,width:0,height:0}),u=(0,r.useRef)({x:0,y:0}),l=(0,r.useRef)(),d=(0,r.useRef)(!1),m=(0,r.useState)(!1),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=_t(),v=h.sendEvent,b=h.gaEventConfig;function x(e){var t;!n&&c&&(c.addEventListener(Ot.stop,w,!1),c.addEventListener(Rt.stop,w,!1),t=(new Date).valueOf(),l.current=setInterval((function(){(new Date).valueOf()-t>150&&(clearInterval(l.current),d.current=!0,document.body.style.overflow="hidden",g(!0),c&&(c.style.transition="none",window.addEventListener(Ot.move,y,!1),c.addEventListener(Rt.move,y,!1)))}),100))}function y(e){var n=function(e){var n=0,t=0,a=e instanceof TouchEvent,i=e instanceof MouseEvent;if(a){var r=e.changedTouches;r.length>0&&(n=r[0].clientX,t=r[0].clientY)}else i&&(n=e.clientX,t=e.clientY);return{clientX:n,clientY:t}}(e),t=n.clientX,a=n.clientY,i=window.document.documentElement.clientWidth,r=s.current,o=r.x,l=r.y,d=r.width,m=r.height;if(c){var f=c.getBoundingClientRect(),p=o<i/2,g=0;Math.round(d)!==Math.round(f.width)&&(g=p?1.5*f.width:1.5*-f.width),u.current.x=t-o-d/2+g,u.current.y=a-l-m/2;var h=u.current,v=h.x,b=h.y;c.style.transform="translate(".concat(v,"px, ").concat(b,"px)")}}function _(){if(c){var e=c.getBoundingClientRect(),n=e.x+e.width/2,t=e.y+e.height/2,a=window.document.documentElement,i=a.clientWidth,r=a.clientHeight,o=s.current,l=o.x,d=o.y,m=o.width,f=(o.height,0);if(n<i/2){var p=m!==e.width?1.5*e.width+m:0;f=l>=i/2?i-2*l-e.width-p:0}else f=l>=i/2?0:i-2*l-e.width;var g=u.current.y;t-e.height<0?g=-d:t+e.height>r&&(g=r-d-e.height),c.style.transform="translate(".concat(f,"px, ").concat(g,"px)")}}function w(e){if(c){if(d.current){var n=c.getBoundingClientRect();c.style.transition=".3s",c.addEventListener("transitionend",(function e(){c.removeEventListener("transitionend",e),c.style.transition="none",document.body.style.overflow="",d.current=!1,i(),g(!1)})),_(),v({action:b.drag_end,data:{x:Math.floor(n.x),y:Math.floor(n.y)}})}clearInterval(l.current),window.removeEventListener(Ot.move,y,!1),c.removeEventListener(Rt.move,y,!1),c.removeEventListener(Ot.stop,w,!1),c.removeEventListener(Rt.stop,w,!1)}}function T(){if(!c)return!1;var e=c.getBoundingClientRect(),n=e.width,t=e.height;return 0!==n&&0!==t}return(0,r.useEffect)((function(){return function e(){if(c){var n=c.getBoundingClientRect(),t=n.x,a=n.y,i=n.width,r=n.height;if(!T())return setTimeout((function(){e()}),100);s.current={x:t,y:a,width:i,height:r}}}(),function(){s.current={x:0,y:0,width:0,height:0}}}),[]),(0,r.useEffect)((function(){T()&&_()}),[t]),(0,r.useEffect)((function(){if(c)return c.addEventListener(Ot.start,x,!1),c.addEventListener(Rt.start,x,!1),function(){clearInterval(l.current),c.removeEventListener(Ot.start,x,!1),c.removeEventListener(Rt.start,x,!1),window.removeEventListener(Ot.move,y,!1),c.removeEventListener(Rt.move,y,!1),c.removeEventListener(Ot.stop,w,!1),c.removeEventListener(Rt.stop,w,!1)}}),[n]),{isMoving:p}}var Zt="last_game",Dt=function(){return{getLastGame:(0,r.useCallback)((function(){try{return(0,Fn.mk)(!0,Zt)||null}catch(e){return console.warn("[useLastGame] Failed to get last game:",e),null}}),[]),setLastGame:(0,r.useCallback)((function(e){try{if(!e)return void console.warn("[useLastGame] Invalid game menu provided");(0,Fn.tG)(!0,Zt,{gameId:e})}catch(e){console.error("[useLastGame] Failed to set last game:",e)}}),[]),clearLastGame:(0,r.useCallback)((function(){try{(0,Fn.tG)(!0,Zt,{})}catch(e){console.error("[useLastGame] Failed to clear last game:",e)}}),[])}},Lt=t.p+"static/media/hand-ani.8a7c2ac03cf2bf0d69b2.gif",Gt=t.p+"static/media/red-ball-ani.8e8600fbb8d035d15cf5.gif",Wt=function(e){var n=e.gameMenu,t=e.isMoving,a=_t(),i=a.sendEvent,o=a.handleRemindMarkCountGa,s=a.handleRemindMarkShowGa,u=a.gaEventConfig,l=(0,c.v9)((function(e){return e.gamePanelInfo})).type,d=bt(n,"single").currentIcon,m=(0,r.useState)(!1),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=n.gameId;(0,r.useEffect)((function(){s(p)}),[p]),(0,r.useEffect)((function(){var e=(0,Fn.mk)(!0,"gameTimingReminder");if(e)if(e.gameId===h){var n=(0,Fn.b2)(e.timestamp);g(n)}else(0,Fn.HB)(!0,"gameTimingReminder"),g(!0);else g(!0)}),[h]);var v=null!==l||p;return(0,wt.jsxs)("div",{className:ut()("mini-game-game-icon-group",v?"mini-game-hidden-countdown":"mini-game-show-countdown"),children:[(0,wt.jsx)("img",{className:"mini-game-game-icon",src:d,alt:"",onClick:function(){return function(e){if(!t){o(),ft.Z.open(e);var n={gameId:h,timestamp:Date.now()};(0,Fn.tG)(!0,"gameTimingReminder",n),g(!1),i({action:u.game_open,data:{game_code:e.gameC
1ode}})}}(n)}}),(0,wt.jsx)("img",{className:"mini-game-hand-gif",src:Lt,alt:""}),p&&(0,wt.jsx)("img",{className:"mini-game-red-ball-gif",src:Gt,alt:""})]})},Ut=function(e){return e.DownRight="down-right",e.DownLeft="down-left",e.UpLeft="up-left",e.UpRight="up-right",e}({});function qt(e){var n=e.visible,t=e.onClick;return n?ct.createPortal((0,wt.jsx)("div",{className:"mini-game-menu-mask",onClick:t}),document.querySelector("body")):null}var zt=function(e){var n=e.menuShowList,t=void 0===n||n,a=(0,r.useState)(!1),i=(0,ot.Z)(a,2),o=i[0],c=i[1],s=(0,r.useState)(!1),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=(0,r.useState)(""),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=(0,r.useRef)(!1),v=(0,r.useRef)(null),b=(0,r.useRef)(null),x=(0,zn.bI)(),y=x.data,_=x.isLoading,w=x.isError,T=x.refetch,k=(0,zn.TA)(),I=k.data,C=k.isLoading,E=(0,r.useState)(Ut.UpRight),j=(0,ot.Z)(E,2),P=j[0],S=j[1],N=_t(),B=N.gaEventConfig,A=N.sendEvent,R=N.handleMiniGameInitGa,O=Dt().getLastGame,M=mt(y),Z=function(){var e,n=null;if(h.current?b.current&&(n=b.current.getBoundingClientRect()):v.current&&(n=null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect()),null!==n){var t=window.document.documentElement,a=t.clientHeight,i=t.clientWidth,r=n,o=r.x,c=r.y;c<a/2&&o<i/2?S(Ut.DownRight):c<a/2&&o>=i/2?S(Ut.DownLeft):c>=a/2&&o>=i/2?S(Ut.UpLeft):c>=a/2&&o<i/2&&S(Ut.UpRight)}},D=Mt({isMenuShow:o,isZoomOut:l,onTouchEnd:Z}).isMoving,L=function(){c((function(e){return A(e?{action:B.close}:{action:B.open}),!e}))},G=function(){L(),v.current.classList.toggle("mini-game-show")},W=function(){D||o||(l?(A({action:B.icon_open}),d(!1),h.current=!1):(A({action:B.icon_close}),d(!0),h.current=!0))};if((0,r.useEffect)((function(){var e=Ln.Z.getI18nLanguage();e&&g(e)}),[]),(0,r.useEffect)((function(){if(y&&y.length>0&&0!==window.miniGameRenderGameId){var e=null==y?void 0:y.find((function(e){return e.gameId===window.miniGameRenderGameId}));e&&(ft.Z.open(e),A({action:B.game_open,data:{game_code:e.gameCode}}))}R(M,y)}),[y]),(0,r.useEffect)((function(){var e=window.miniGameRenderStatus,n=document.getElementById(e);if(n){if(I&&I.length>0){var t=I[0],a=t.miniGameEntranceSetting,i=t.mobileMiniGameEntranceSetting,r=dt()()?i:a;if(!r)return;var o=r.position,c=r.offset;"left"===o?(n.style.left="".concat(window.miniGameRenderInitialGap,"px"),n.style.right="initial"):"right"===o&&(n.style.left="initial",n.style.right="".concat(window.miniGameRenderInitialGap,"px")),null!=c&&(n.style.top="".concat(c,"%"),n.style.bottom="initial")}!function e(){var t=n.getBoundingClientRect(),a=t.width,i=t.height;if(0===a||0===i)return setTimeout((function(){e()}),100);Z()}()}else console.error("[MINI-GAME] Render Error - Element with id ".concat(e," not found"))}),[I]),_||C||w||!y||0===(null==y?void 0:y.length))return null;if("direct"===window.miniGameRenderType&&0!==window.miniGameRenderGameId)return null;var U=["VBC","VTX","BCR","VXD"],q=y.length>1&&y.some((function(e){return U.includes(e.gameGroupCode)}));return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("div",{id:"".concat(pt.Z.classNamePrefix,"GameButtons-preloader")}),l?(0,wt.jsxs)("div",{ref:b,children:[(0,wt.jsx)(Bt,{direction:P,isZoomOut:l,isMenuShow:o,toggleZoomClick:W}),(0,wt.jsx)("div",{className:"mini-game-main-game-small-icon",onClick:W})]}):(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Bt,{direction:P,isZoomOut:l,isMenuShow:o,toggleZoomClick:W}),y.length>1?(0,wt.jsx)(wt.Fragment,{children:q?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("div",{ref:v,className:ut()("mini-game-gamesMenu-warp",{"mini-game-sector":!t,"mini-game-list":t}),children:[t?(0,wt.jsx)(kt,{isMenuShow:o,onClick:G,direction:P}):(0,wt.jsx)(St,{isMenuShow:o,onClick:G,direction:P}),(0,wt.jsx)(At,{isMenuShow:o,onMainButtonClick:function(){if(!D){L(),v.current.classList.toggle("mini-game-show"),Z();var e=Ln.Z.getI18nLanguage();e&&p&&p!==e&&(T(),Un.changeLanguage(e),g(e))}}})]}),(0,wt.jsx)(qt,{visible:o,onClick:G})]}):(0,wt.jsx)("div",{ref:v,className:ut()("mini-game-gamesMenu-warp"),children:(0,wt.jsx)(At,{isMenuShow:o,onMainButtonClick:function(){if(!D&&y){var e=O(),n=(null==e?void 0:e.gameId)||y[0].gameId,t=e&&y.find((function(e){return e.gameId===n}))||y[0];ft.Z.open(t),A({action:B.game_open,data:{game_code:t.gameCode}});var a=Ln.Z.getI18nLanguage();if(!a)return;p&&p!==a&&(T(),Un.changeLanguage(a),g(a))}}})})}):(0,wt.jsx)("div",{ref:v,className:"mini-game-gameMenu-single",children:(0,wt.jsx)(Wt,{gameMenu:y[0],isMoving:D})})]})]})},Ft=t(24511),Vt=function(e,n){if(""!==n)return n;var a=Ln.Z.getCustomIconPath();switch(["bongvip","mu99f2","kgvnf2"].includes(a)&&(a="default"),e){case"VXD":return t(65431)("./".concat(a,"/xocdia.png"));case"VBC":return t(51384)("./".concat(a,"/baucua.png"));case"RPS":return t(58527)("./".concat(a,"/rps.png"));default:return t(16935)("./".concat(a,"/taixiu.png"))}};function Ht(e){var n=e.gameMenu,t=e.onGameClick,a=n.gameCode,i=n.gameGroupCode,r=n.mobileIconUrl,o=n.webIconUrl;return(0,wt.jsx)("li",{className:"mini-game-game-icon-group",children:(0,wt.jsx)("img",{className:"mini-game-game-icon",src:Vt(i,dt()()?r:o),alt:"",onClick:function(){return t(n)}})},a)}var Yt=function(e){var n=e.onClick,t=e.isMenuShow,a=e.direction,i=(0,zn.bI)().data,r=(0,Ft.$)().i18n,o=null==i?void 0:i.slice(0,6),c=null==i?void 0:i.slice(6),s=c?function(e,n){for(var t=[];e.length;)t.push(e.splice(0,6));return t}((0,u.Z)(c)):[],l=function(e){r.changeLanguage(Ln.Z.getI18nLanguage()),n(),ft.Z.open(e)};return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix).concat(a," ").concat(pt.Z.classNamePrefix).concat(t?"show":""),children:[(0,wt.jsx)("ul",{className:ut()("mini-game-hot-list","mini-game-size-".concat(null==o?void 0:o.length)),children:null==o?void 0:o.map((function(e,n){return(0,wt.jsx)(Ht,{gameMenu:e,onGameClick:l},n)}))}),s.length>0&&(0,wt.jsx)(vt.Z,{className:"mini-game-other-list",children:s.map((function(e,n){return(0,wt.jsx)("ul",{className:"mini-game-other-list-container",children:e.map((function(e,n){return(0,wt.jsx)(Ht,{gameMenu:e,onGameClick:l},n)}))},n)}))})]})},Xt=function(){var e;return(0,wt.jsx)("img",{className:"mini-game-main-game-close",src:(e=(0,Fn.Z_)()||"",["gi8viet"].includes(e)?t(9666)("./".concat(e,"/close.png")):t(73849)),alt:"",onClick:function(){window.miniGameHide&&"function"==typeof window.miniGameHide&&window.miniGameHide()}})},Kt=function(e){var n=e.gameMenu,t=n.gameId,a=n.gameGroupCode,i=n.mobileIconUrl,o=n.webIconUrl,c=(0,r.useState)(!1),s=(0,ot.Z)(c,2),u=s[0],l=s[1],d=Vt(a,dt()()?i:o);return(0,r.useEffect)((function(){var e=(0,Fn.mk)(!0,"gameTimingReminder");e?e.gameId===t?l((0,Fn.b2)(e.timestamp)):((0,Fn.HB)(!0,"gameTimingReminder"),l(!0)):l(!0)}),[t]),(0,wt.jsxs)("div",{className:"mini-game-game-icon-group",children:[(0,wt.jsx)("img",{className:"mini-game-game-icon",src:d,alt:"",onClick:function(){ft.Z.open(n),(0,Fn.tG)(!0,"gameTimingReminder",{gameId:t,timestamp:Date.now()}),l(!1)}}),(0,wt.jsx)("img",{className:"mini-game-hand-gif",src:Lt,alt:""}),u&&(0,wt.jsx)("img",{className:"mini-game-red-ball-gif",src:Gt,alt:""})]})};function Qt(e){var n=e.visible,t=e.onClick;return n?ct.createPortal((0,wt.jsx)("div",{className:"mini-game-menu-mask",onClick:t}),document.querySelector("body")):null}var Jt=function(){var e,n,a,i=(0,r.useState)(!1),o=(0,ot.Z)(i,2),c=o[0],s=o[1],u=(0,r.useState)(Ut.UpRight),l=(0,ot.Z)(u,2),d=l[0],m=l[1],f=(0,r.useRef)(null),p=(0,zn.bI)(),g=p.data,h=p.isLoading,v=p.isError,b=(0,zn.bP)(),x=Ln.Z.getCustomIconPath(),y=t(5702)("./".concat(x,"/minigame.png")),_=(0,r.useState)(!1),w=(0,ot.Z)(_,2),T=w[0],k=w[1],I=(0,zn.TA)(),C=I.data,E=I.isLoading,j=null==C?void 0:C[0],P=function(){var e=f.current.getBoundingClientRect(),n=window.document.documentElement,t=n.clientHeight,a=n.clientWidth,i=e.x,r=e.y;r<t/2&&i<a/2?m(Ut.DownRight):r<t/2&&i>=a/2?m(Ut.DownLeft):r>=t/2&&i>=a/2?m(Ut.UpLeft):r>=t/2&&i<a/2&&m(Ut.UpRight)},S=function(){s((function(e){return!e})),f.current.classList.toggle("mini-game-show")};return(0,r.useEffect)((function(){var e,n,t,a=function(){P()};return null===(e=f.current)||void 0===e||e.addEventListener("touchend",a),null===(n=f.current)||void 0===n||n.addEventListener("mouseup",a),null===(t=f.current)||void 0===t||t.addEventListener("mouseout",a),function(){var e,n,t;null===(e=f.current)||void 0===e||e.removeEventListener("touchend",a),null===(n=f.current)||void 0===n||n.removeEventListener("mouseup",a),null===(t=f.current)||void 0===t||t.removeEventListener("mouseout",a)}}),[g]),(0,r.useEffect)((function(){if(g&&g.length>
10&&0!==window.miniGameRenderGameId){var e=null==g?void 0:g.find((function(e){return e.gameId===window.miniGameRenderGameId}));e&&ft.Z.open(e)}}),[g]),(0,r.useEffect)((function(){if(j){var e=j.miniGameEntranceSetting,n=j.mobileMiniGameEntranceSetting,t=window.miniGameRenderStatus,a=document.getElementById(t);if(!a)return void console.error("[MINI-GAME] Render Error - Element with id ".concat(t," not found"));var i=dt()()?n:e;if(!i)return;var r=i.position,o=i.offset;window.miniGameEntrancePosition=r,"left"===r?(a.style.left="".concat(window.miniGameRenderInitialGap,"px"),a.style.right="initial"):"right"===r&&(a.style.left="initial",a.style.right="".concat(window.miniGameRenderInitialGap,"px")),null!=o&&(a.style.top="".concat(o,"%"),a.style.bottom="initial")}}),[j]),h||E||v||!g||0===g.length||"direct"===window.miniGameRenderType&&0!==window.miniGameRenderGameId?null:1===g.length?(0,wt.jsx)("div",{ref:f,className:"mini-game-gameMenu-single",children:(0,wt.jsx)(Kt,{gameMenu:g[0]})}):(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("div",{ref:f,className:ut()("mini-game-gamesMenu-warp","mini-game-list","mini-game-gamesMenu-warp-vn"),children:[(0,wt.jsx)(Yt,{onClick:S,isMenuShow:c,direction:d}),(0,wt.jsx)(Xt,{}),(0,wt.jsx)("img",{className:ut()({"mini-game-main-game-icon":!0,"mini-game-animate__pulse":T,"mini-game-is-vn":!0}),src:(n=y,a=null===(e=b.data)||void 0===e?void 0:e.url,a&&a.startsWith("https")?a:n),alt:"",onClick:function(){s((function(e){return!e})),k(!0),setTimeout((function(){k(!1)}),500),f.current.classList.toggle("mini-game-show"),P()}})]}),(0,wt.jsx)(Qt,{visible:c,onClick:S})]})},$t=t(83205),ea=function(){var e=(0,r.useState)(window.innerWidth>window.innerHeight),n=(0,ot.Z)(e,2),t=n[0],a=n[1];return(0,r.useEffect)((function(){var e=function(){a(window.innerWidth>window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),t},na=t(14964),ta=t(52351),aa=(0,ta.Ue)()((0,na.n)((function(e){return{containerScale:0,setContainerScale:function(n){return e((function(e){e.containerScale=n}))},isCloseIconTop:!1,setIsCloseIconTop:function(n){return e((function(e){e.isCloseIconTop=n}))}}}))),ia=t.p+"static/media/errorIcon.670044f9e2437d796541.png",ra=function(e){var n=e.msg,t=e.onClick,a=void 0===t?function(){}:t,i=(0,r.useRef)(null),o=(0,Fn.he)("containers.errorPanel.");return(0,wt.jsx)("div",{ref:i,className:"mini-game-gamePanel-error-warp",onClick:function(){a()},children:(0,wt.jsxs)("div",{className:"mini-game-error-content",children:[(0,wt.jsxs)("div",{className:"mini-game-content",children:[(0,wt.jsx)("img",{className:"mini-game-close",src:ia,alt:""}),(0,wt.jsx)("div",{children:n})]}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:o("close")})]})})},oa=t(44925),ca=function(e){return(0,wt.jsx)(e.Context.Consumer,{children:function(n){return e.render((0,wt.jsx)(e.Context.Provider,{value:n,children:e.children}))}})},sa=t(71438),ua=["children"],la=function(e){var n=e.children,t=(0,oa.Z)(e,ua);return(0,wt.jsx)(ca,{Context:c.ET,render:function(e){return(0,wt.jsx)(sa.Hf,(0,d.Z)((0,d.Z)({},t),{},{children:e}))},children:n})},da=t(75425),ma=t(25365),fa=t(15694),pa=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=e.betChip,a=t.moveX,i=t.moveY,o=t.styleIndex,s=(0,r.useState)(n!==$t.x3.WAIT_DRAW),u=(0,ot.Z)(s,2),l=u[0],m=u[1];return(0,wt.jsx)(ma.AM,{from:{position:[546,220]},to:{position:[a,i],visible:l||n===$t.x3.DRAW},config:{duration:n===$t.x3.WAIT_DRAW?0:900},onRest:function(){switch(m(!1),n){case $t.x3.BET_NOW:case $t.x3.BET_LOCKED:case $t.x3.BET_NOW_RED:e.setChips([])}},children:function(e){return(0,wt.jsx)(da.jy,(0,d.Z)({texture:function(){switch(o){case 0:return fa.P6Y.TextureCache["purple-chip"];case 1:return fa.P6Y.TextureCache["gold-chip"];case 2:return fa.P6Y.TextureCache["lightblue-chip"];case 3:return fa.P6Y.TextureCache["darkpurple-chip"];case 4:return fa.P6Y.TextureCache["red-chip"]}}(),width:45,height:45},e))}})},ga=function(e){var n=e.botBetChips,t=(0,r.useState)([]),a=(0,ot.Z)(t,2),i=a[0],o=a[1],s=(0,c.v9)((function(e){return e.gamePanelInfo.drawState}));return(0,r.useEffect)((function(){0===i.length&&(n.length<15?o(n):o((0,Fn.dL)(n,(0,Fn.sZ)(5,12))),s===$t.x3.WAIT_DRAW&&o(n))}),[n,s]),(0,wt.jsx)(da.W2,{children:i.map((function(e,n){return(0,wt.jsx)(pa,{betChip:e,setChips:o},n)}))})},ha=t(37762),va=function(e,n,t){return e.filter((function(e){var a="unConfirm"===n&&!e.hasConfirm||"confirm"===n&&e.hasConfirm||"betting"===n&&e.hasBetting||"confirmAndBetting"===n&&(e.hasBetting||e.hasConfirm);return t?a&&e.prizeType===t:a})).reduce((function(e,n){return e+n.amount}),0)},ba=function(e){var n=e.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")},xa=function(e,n){for(var t=e.filter((function(e){return!e.hasConfirm})),a={},i=[],r=0;r<t.length;r++){var o="".concat(t[r].playId,"-").concat(t[r].betContent);a[o]||(a[o]=[]),a[o].push(t[r])}
1return Object.keys(a).forEach((function(e){i.push({playId:a[e][0].playId,bettingString:a[e][0].betContent,singleBetPrice:n,amount:a[e].reduce((function(e,n){return e+n.amount}),0)})})),{orders:i}},ya=function(e,n){var t={menuPlayId:0,betContent:""};return e.menuInfos.forEach((function(e){e.playInfos.forEach((function(a){a.playInfoId===n&&(t.menuPlayId=e.menuPlayId,t.betContent=a.betContent)}))})),t},_a=function(e){var n=e.split(" "),t=n.indexOf("id");if(t<0)return!1;for(var a=0,i=n.slice(t),r=0;r<i.length;r++){var o=Number(i[r]);if(o&&"number"==typeof o){a=o;break}}return a},wa=function(e){switch(e){case 4:return"isWon";case 5:return"notWinning";case 12:return"emptyDraw";case 16:return"tie";case 6:case 7:case 8:return"canceled";default:return"noDraw"}},Ta=function(e,n,t){if(!e||!n)return{moveX:0,moveY:0};var a=(null==t?void 0:t.containerScale)||1,i=(null==t?void 0:t.offsetX)||0,r=(null==t?void 0:t.offsetY)||0,o=new fa.E9j(0,0),c=e.toGlobal(o),s=n.toGlobal(o);return{moveX:(c.x-s.x)/a+i,moveY:(c.y-s.y)/a+r}},ka=function(e){var n,t=new Map,a=(0,ha.Z)(e);try{for(a.s();!(n=a.n()).done;){var i=n.value,r=i.moveX,o=i.moveY;r&&o&&(t.has(r)||t.set(r,new Set),t.get(r).add(o))}}catch(e){a.e(e)}finally{a.f()}return e.map((function(e){var n=e.moveX,a=e.moveY;if(n&&a){for(var i=a-5,r=t.get(n);r.has(i);)i-=5;return r.add(i),(0,d.Z)((0,d.Z)({},e),{},{moveY:i})}return e}))},Ia=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return e.unit}));return(n.length>0?Math.max.apply(Math,(0,u.Z)(n)):1)*e||1},Ca=t(78459),Ea=t(52923);function ja(e){var n=e.gameConfig,t=e.sendBettingOrdersResult,a=e.clearChip,i=e.confirmAndStorageChip,o=(0,Fn.he)("containers.GamesPanel."),s=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),u=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(s)).data,l=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(s)).data,d=(0,zn.De)().refetch;(0,r.useEffect)((function(){if(t.isUninitialized);else if(t.isLoading)Ca.Z.show($t.k9.pixiInfo,o("betting"),8e3,!1);else if(t.isSuccess){try{Ea.eq.play("BetSuccess",{volume:1})}catch(e){console.log(e)}var e=t.data.value,r=e.reduce((function(e,n){return e+n.totalBettingAmount}),0)/(u?u.singleBetPrice:1);Ca.Z.show($t.k9.pixiInfo,o("bettingSuccess",{totalBettingAmount:r}));var c=e[0].content[0];ft.Z.playerBettingOrder({numero:c.numero,bettingContent:"1"===c.bettingContent.charAt(0)?"VTX_BS_SMALL":"VTX_BS_BIG",totalBettingAmount:r}),i(),d()}else if(t.isError&&t.error){var s,m,f,p,g=(null===(s=t.error)||void 0===s||null===(m=s.data)||void 0===m?void 0:m.errorCode)||!1,h=(null===(f=t.error)||void 0===f||null===(p=f.data)||void 0===p?void 0:p.message)||"";a(),function(e,t){switch(e){case"BETTING_TABLE_GAME_AMOUNT_LESS_LIMITS_ERROR":case"BETTING_TABLE_GAME_AMOUNT_OVER_LIMITS_ERROR":var a=function(e){var n=e.split(" "),t=n.indexOf("id");if(t<0)return!1;for(var a=0,i=n.slice(t),r=0;r<i.length;r++){var o=Number(i[r]);if(o&&"number"==typeof o){a=o;break}}return a}(t),i="",r=0,c=0;if(a){var s,d,m=function(e,n){var t={menuPlayId:0,betContent:""};return e.menuInfos.forEach((function(e){e.playInfos.forEach((function(a){a.playInfoId===n&&(t.menuPlayId=e.menuPlayId,t.betContent=a.betContent)}))})),t}(n,a),f=m.menuPlayId,p=m.betContent,g=l?null===(s=l.playMenuGroups.find((function(e){return e.playId===n.groupPlayId})))||void 0===s||null===(d=s.playMenus.find((function(e){return e.playId===f})))||void 0===d?void 0:d.playMenuInfos.find((function(e){return e.playInfoId===a})):null;r=g?g.betAmountMaxLimitByNumero:0,c=g?g.betAmountMinLimit:0,i=(0,Fn.vM)(f,p)}Ca.Z.show($t.k9.pixiInfo,o("BET_LIMIT",{playName:i,rangeStr:(0,Fn.sE)(c,r)}));break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":var h=u||{},v=h.betAmountMaxByNumero,b=void 0===v?0:v,x=h.betAmountMax,y=void 0===x?0:x,_=/numero:.*.cumulative amount:/g.test(t)?b:y;Ca.Z.show($t.k9.pixiInfo,o("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:_}));break;case"BETTING_MULTIPLE_OVER_LIMITS_ERROR":Ca.Z.show($t.k9.pixiInfo,o("BETTING_MULTIPLE_OVER_LIMITS_ERROR"));break;case"BALANCE_NOT_ENOUGH_ERROR":case"BALANCE_NOT_ENOUGH":Ca.Z.show($t.k9.pixiInfo,o("BALANCE_NOT_ENOUGH"));break;case"PLAYID_CLOSED":Ca.Z.show($t.k9.system,o("PLAYID_CLOSED"));break;case"PARAMETER_REQUIRED":case"API_PARAMETER_REQUIRED":Ca.Z.show($t.k9.pixiInfo,o("PARAMETER_REQUIRED"));break;case"IS_LOCK_TIME":Ca.Z.show($t.k9.pixiInfo,o("IS_LOCK_TIME"));break;default:Ca.Z.show($t.k9.system,o("SYSTEM_ERROR"))}}(g,h)}else a(),Ca.Z.show($t.k9.system,o("SYSTEM_ERROR"))}),[t])}var Pa=function(e){var n=e.gameId,t=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(n)).data,a=(0,r.useState)(null),i=(0,ot.Z)(a,2),o=i[0],s=i[1];return(0,r.useEffect)((function(){if(t){var e,n=null===(e=t.playMenuGroups)||void 0===e?void 0:e.reduce((function(e,n){return n.playMenus.forEac
1h((function(n){n.playMenuInfos.forEach((function(n){var t=n.playInfoId,a=n.betAmountMaxLimitByNumero,i=n.betAmountMinLimit;e[t]={betAmountMaxLimitByNumero:a,betAmountMinLimit:i,betAmountMaxLimit:n.betAmountMaxLimit}}))})),e}),{});s(n)}}),[t]),{playLimit:o}},Sa=[$t.x3.BET_NOW,$t.x3.BET_NOW_RED],Na=function(e){var n=e.ctx,t=e.x0,a=e.y0,i=e.r0,r=e.gradientColors,o=n.createRadialGradient(t,a,i,t+2*i,a+2*i,2*i);return r.forEach((function(e){return o.addColorStop(e.percentage,e.color)})),o},Ba=function(e){var n=e.stX,t=void 0===n?0:n,a=e.stY,i=void 0===a?0:a,r=e.width,o=e.height,c=e.fillStyle,s=void 0===c?"#000":c,u=e.radius,l=void 0===u?0:u,m=e.gradientConfig,f=document.createElement("canvas");f.width=r,f.height=o;var p,g=f.getContext("2d");return g&&(m&&(p=function(e){var n=e.ctx,t=e.x0,a=e.y0,i=e.x1,r=e.y1,o=e.gradientColors,c=n.createLinearGradient(t,a,i,r);return o.forEach((function(e){return c.addColorStop(e.percentage,e.color)})),c}((0,d.Z)({ctx:g},m))),function(e){var n=e.ctx,t=e.x,a=e.y,i=e.borderRadius,r=e.width,o=e.height,c=e.fillStyle;n.beginPath(),n.moveTo(t+i,a),n.lineTo(t+r-i,a),n.arc(t+r-i,a+i,i,-Math.PI/2,0),n.lineTo(t+r,a+o-i),n.arc(t+r-i,a+o-i,i,0,Math.PI/2),n.lineTo(t+i,a+o),n.arc(t+i,a+o-i,i,Math.PI/2,Math.PI),n.lineTo(t,a+i),n.arc(t+i,a+i,i,Math.PI,3*Math.PI/2),n.fillStyle=c,n.fill()}({ctx:g,x:t,y:i,borderRadius:l,width:r,height:o,fillStyle:p||s})),fa.xEZ.from(f)},Aa=function(e,n,t,a,i,r,o){for(var c=0;c<=n;c++){e.strokeStyle=i;var s=c*a+o;e.beginPath(),e.moveTo(r,s),e.lineTo(r+t*a,s),e.stroke()}for(var u=0;u<=t;u++){e.strokeStyle=i;var l=u*a+r;e.beginPath(),e.moveTo(l,o),e.lineTo(l,o+n*a),e.stroke()}},Ra=function(e,n,t,a,i,r){e.beginPath(),e.arc(n,t,a,0,2*Math.PI),e.fillStyle=i,e.fill(),r&&(e.lineWidth=1,e.strokeStyle=r,e.stroke())},Oa=function(e,n,t,a,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#ff6262",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2;e.beginPath(),e.moveTo(n,t),e.lineTo(a,i),e.strokeStyle=r,e.lineWidth=o,e.stroke()},Ma=function(e){var n=new fa.mJh,t=e>>16&255,a=e>>8&255,i=255&e;return n.matrix[0]=t/255,n.matrix[6]=a/255,n.matrix[12]=i/255,n},Za=function(e){var n=(0,r.useState)(!1),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=e.animation,c=void 0===o||o,s=function(n){i(!0),e.onpointerdown&&e.onpointerdown(n)},u=function(n){n.clear(),n.beginFill(8111615,1),n.drawCircle(0,0,(e.height||30)/2),n.filters=[new fa.T01(8,1,void 0,13)],n.endFill()};return(0,wt.jsxs)(da.W2,{children:[(0,wt.jsx)(ma.AM,{from:{scale:.327},to:{scale:a&&c?.4:.327},config:{duration:100},loop:!1,reset:!1,onRest:function(){return i(!1)},children:function(n){return(0,wt.jsx)(da.jy,(0,d.Z)((0,d.Z)({},e),{},{anchor:.5,x:(e.x||0)+(e.width||0)/2,y:(e.y||0)+(e.height||0)/2,eventMode:"static",onpointerdown:s},n))}}),(0,wt.jsx)(ma.AM,{from:{alpha:0},to:{alpha:a?.4:0},config:{duration:200},loop:!1,reset:!1,onRest:function(){return i(!1)},children:function(n){return(0,wt.jsx)(da.TC,(0,d.Z)((0,d.Z)({},n),{},{anchor:.5,x:(e.x||0)+(e.width||0)/2,y:(e.y||0)+(e.height||0)/2,draw:u}))}})]})},Da=function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.isAutoOpenCup}));return(0,wt.jsx)(Za,{x:1023,y:498,onpointerdown:function(n){Ea.eq.play("Button",{volume:1}),ft.Z.autoOpenCup(!e)},texture:e?fa.P6Y.TextureCache["enable-hand"]:fa.P6Y.TextureCache["disable-hand"],width:95,height:105,animation:!1})},La=t.p+"static/media/betting-light-left.9d68b84b857095bbf5c9.png",Ga=t.p+"static/media/betting-light-right.fc1e55dd72c1e0f7c041.png",Wa=t.p+"static/media/betting-left.5b2baef00e81598bdad2.png",Ua=t.p+"static/media/betting-right.583e3e757c318a8129f0.png",qa=function(e){var n=e.value,t=e.position,a=e.width,i=e.height,o=e.align,c=void 0===o?"center":o,s=e.letterSpacing,u=void 0===s?26:s,l=e.fontName,m=r.useState(null),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=function(e){var t=n.toString().split("").length;return"center"===e?(a-t*(i+10)/2)/2+3:"right"===e?a-15*t:5};return(0,wt.jsxs)(da.W2,{position:t,children:[function(e){var n=(new Intl.NumberFormat).format(e).toString().split(""),t=1;return n.map((function(e){return parseInt(e)||"0"===e||(t+=1),{number:e,index:t}}))}(n).map((function(e,n){return parseInt(e.number)||"0"===e.number?(0,wt.jsx)(ma.AM,{to:{y:-parseInt(e.number)*i},config:{duration:450},children:function(t){return(0,wt.jsx)(da.W2,(0,d.Z)((0,d.Z)({x:h(c)+n*u-e.index,mask:p},t),{},{children:(0,wt.jsx)(sa.Xz,{style:{fontName:l},text:"0\n1\n2\n3\n4\n5\n6\n7\n8\n9"})}))}},n):(0,wt.jsx)(sa.Xz,{x:h(c)+n*u-(e.index-5),style:{fontName:l},text:e.number},n)})),(0,wt.jsx)(da.TC,{draw:function(e){return e.beginFill(0),e.drawRect(0,0,a,i),e.endFill(),e},ref:g})]})},za=new fa.pn8({align:"center",fontFamily:"Arial",fontSize:48,fontWeight:"bold",fill:["#b37707","#ffd024","#d88803","#ffd024","#ffe480","#fcde79","#f6d068","#ecb94b","#dd9924","#d5860c","#e59f06","#e
1ca905","#ffe480","#fbde79","#f0ce68","#deb44b"," #c59124","#b37707"],lineHeight:4.5});function Fa(){var e=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),n=(0,zn.xV)(),t=n.data;if(n.error)return null;var a=t&&t[e]?function(e){var n,t,a,i=(0,Fn.G3)(),r=e.find((function(e){return e.language.toLowerCase()===i.toLowerCase()})),o=e.find((function(e){return"en"===e.language.toLowerCase()})),c=e[0];return null!==(a=(null!==(n=null!==(t=null!=r?r:o)&&void 0!==t?t:c)&&void 0!==n?n:{}).displayName)&&void 0!==a?a:""}(t[e]):"";return(0,wt.jsx)(da.xv,{anchor:.5,position:[570,160],text:a,style:za})}var Va=new fa.pn8({align:"center",fontFamily:"TTNorms-Bold",fontSize:29,fontWeight:"bold",fill:["#ffffff"],lineHeight:4.5}),Ha=new fa.pn8({align:"center",fontFamily:"TTNorms-Bold",fontSize:29,fontWeight:"bold",fill:["#fff70e"],lineHeight:4.5}),Ya=new fa.pn8({align:"center",fontFamily:"Arial",fontSize:24,fontWeight:"bold",fill:["#ffffff"],lineHeight:.15}),Xa=new fa.pn8({align:"center",fontFamily:"Arial",fontSize:24,fontWeight:"bold",fill:["#ba3030","#bc3131","#a62626"],lineHeight:.17}),Ka=function(e){return new fa.pn8({align:"left",fontFamily:"Arial-BoldMT",fontSize:e,fontWeight:"bold",fill:["#fcfa7a","#fced98","#fcde75","#ffe44d","#fefee2","#fcde75"],stroke:"#3b0f0f",dropShadow:!0,dropShadowColor:"#6D431A",dropShadowBlur:3,dropShadowAngle:Math.PI/2,dropShadowDistance:1,strokeThickness:1,lineHeight:23})},Qa=function(e){var n,t,a,i,r,o,s=e.selectedBlock,l=e.changeBetBlock,d=e.betChips,m=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,f=(0,zn.De)().data,p=(a=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),i=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(a)).data,r=pt.Z.gameConfig.taixiu,o=(null==i||null===(n=i.playMenuGroups.find((function(e){return e.playId===r.groupPlayId})))||void 0===n||null===(t=n.playMenus.find((function(e){return e.playId===r.menuInfos[0].menuPlayId})))||void 0===t?void 0:t.playMenuInfos.map((function(e){return[e.betAmountMinLimit,e.betAmountMaxLimitByNumero]})))||[[0,0]],{betAmountMinLimit:Math.min.apply(Math,(0,u.Z)(o.map((function(e){return e[0]})))),betAmountMaxLimit:Math.max.apply(Math,(0,u.Z)(o.map((function(e){return e[1]}))))}),g=p.betAmountMinLimit,h=p.betAmountMaxLimit,v=(0,Fn.he)("containers.GamesPanel.Taixiu."),b=!m||![$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(m),x=f?(0,Fn.J6)(f.availBalance):0,y=function(e){b||(Ea.eq.play("Button",{volume:1}),d.length>0&&d.some((function(n){return n.prizeType!==e.prizeType}))?Ca.Z.show($t.k9.pixiInfo,v("CAN_NOT_BET_ON_DIFFERENT_AREAS")):l(e))},_="VTX_BS_BIG"===(null==s?void 0:s.prizeType),w="VTX_BS_SMALL"===(null==s?void 0:s.prizeType),T=va(d,"unConfirm","VTX_BS_BIG"),k=va(d,"unConfirm","VTX_BS_SMALL"),I=va(d,"confirm","VTX_BS_BIG"),C=va(d,"confirm","VTX_BS_SMALL");return(0,wt.jsxs)(da.W2,{children:[(0,wt.jsxs)(da.W2,{eventMode:"static",position:[88,490],onpointerdown:function(){return y({playId:2676,prizeType:"VTX_BS_BIG",playInfoId:5984,betContent:"0"})},filters:b?[Ma(7829883)]:null,children:[(0,wt.jsx)(sa.jy,{width:316,height:75,image:_?La:Wa}),(0,wt.jsx)(da.xv,{position:[158,36],anchor:.5,text:_?"".concat(ba(T)):v("betting"),style:_?Ha:Va})]}),(0,wt.jsxs)(da.W2,{eventMode:"static",position:[703,490],onpointerdown:function(){return y({playId:2676,prizeType:"VTX_BS_SMALL",playInfoId:5985,betContent:"1"})},filters:b?[Ma(7829883)]:null,children:[(0,wt.jsx)(sa.jy,{width:316,height:75,image:w?Ga:Ua}),(0,wt.jsx)(da.xv,{position:[158,36],anchor:.5,text:w?"".concat(ba(k)):v("betting"),style:w?Ha:Va})]}),(0,wt.jsx)(da.W2,{position:[108,565],children:I>0&&(0,wt.jsx)(da.xv,{position:[158,18],anchor:.5,text:"".concat(ba(I)),style:Ha})}),(0,wt.jsx)(da.W2,{position:[683,565],children:C>0&&(0,wt.jsx)(da.xv,{position:[158,18],anchor:.5,text:"".concat(ba(C)),style:Ha})}),(0,wt.jsx)(Fa,{}),(0,wt.jsx)(da.xv,{position:[530,213],anchor:.5,text:v("balance"),style:Ya}),(0,wt.jsx)(qa,{position:[578,203],value:x,width:200,height:24,align:"left",letterSpacing:12,fontName:"balance"}),(0,wt.jsx)(da.xv,{position:[85,629],text:v("min_bet"),style:Xa}),(0,wt.jsx)(da.xv,{position:[185,627.5],text:"".concat(g),style:Ka(24)}),(0,wt.jsx)(da.xv,{position:[830,629],text:v("max_bet"),style:Xa}),(0,wt.jsx)(da.xv,{position:[936,0===h?615:627.5],text:"".concat(0===h?"â":h),style:Ka(0===h?48:24)}),(0,wt.jsx)(Da,{})]})},Ja=t(12061);function $a(e){var n=e.key,t=(0,c.v9)((function(e){return e.gamePanelInfo.info})),o=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(null==t?void 0:t.gameId)).data,s=(0,r.useState)(null),u=(0,ot.Z)(s,2),l=u[0],m=u[1];(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ln.Z.getPrizeMode();case 2:(n=e.sent)&&m(n);case 4:case"end":return e.stop()}}),e)})))()}),[]);var f=pt.Z.gameConfig.taixiu.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.taixiu.groupPlayId,menuPlayId:e.menuPlayId,className:"big"===n.key?"tai":"xiu",oddsIcon:"",bg:null,oddsText:"big"===n.key?"11 ~ 17":"4 ~ 10"},n)}))})).flat(),p=f.find((function(e){return e.key===n}));return{bonus:function(e){var n,t,a,i=e.groupPlayId,r=e.menuPlayId,c=e.playInfoId,s=e.series,u=void 0===s?0:s,d=(null==o||null===(n=o.playMenuGroups.find((function(e){return e.playId===i})))||void 0===n||null===(t=n.playMenus.find((function(e){return e.playId===r})))||void 0===t||null===(a=t.playMenuInfos.find((function(e){return e.playInfoId===c})))||void 0===a?void 0:a.bonus)||0;return"Lott"===l?new Ja.Z(d).mul(u).floor().div(100).toNumber():d}(p)}}
1var ei=function(e){var n=e.totalUser,t=e.totalAmount,a=(0,Fn.he)("containers.GamesPanel.Taixiu.big"),i=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers.split(pt.Z.gameConfig.taixiu.symbolSplit).map((function(e){return Number(e)})).reduce((function(e,n){return e+n}),0)<=10})),r=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),o=new fa.pn8({align:"center",fontFamily:"TTNorms-Medium",fontSize:24,fill:["#759eb2"],lineHeight:4.5}),s=new fa.pn8({align:"center",fontFamily:"TTNorms-Bold",fontWeight:"bold",fontSize:24,fill:["#ffffff"],lineHeight:4.5}),u=new fa.pn8({align:"center",dropShadow:!0,dropShadowAlpha:.5,dropShadowBlur:5,fill:["#000000","#4d4d4d","#000000"],fillGradientType:1,fillGradientStops:[.1,.6,.9],fontFamily:"Avenir Next",fontWeight:"bold",fontSize:55,fontStyle:"italic",letterSpacing:6,lineJoin:"round",miterLimit:0,padding:20,stroke:"#afb1b0",strokeThickness:7,wordWrapWidth:0}),l=function(e){e.clear(),e.beginFill(8111615,.7),e.arc(0,0,-150,0,Math.PI,!1),e.filters=[new fa.T01(4,1,void 0,13)],e.endFill()};return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsxs)(sa.W2,{position:[66,240],children:[r!==$t.x3.DRAW||i?null:(0,wt.jsx)(ma.AM,{reset:!0,from:{alpha:0},to:[{alpha:1},{alpha:0}],config:{tension:200,friction:5,clamp:!0},loop:!0,children:function(e){return(0,wt.jsx)(da.TC,(0,d.Z)({position:[170,160],draw:l},e))}}),(0,wt.jsx)(sa.xv,{text:"11-18",position:[117,19],style:o}),(0,wt.jsx)(qa,{position:[32,109],value:n,width:100,height:26.5,align:"left",letterSpacing:14,fontName:"onlineCount"}),(0,wt.jsx)(sa.xv,{text:"".concat($a({key:"big"}).bonus),position:[124,130],style:s}),(0,wt.jsx)(da.jy,{width:20,height:23,position:[35,70],texture:fa.P6Y.TextureCache.member}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[150,90],scale:1-.05*a("").length,text:a(""),style:u})]}),(0,wt.jsx)(qa,{position:[46,426],value:t,width:320,height:50,fontName:"betAmount"})]})},ni=function(e){var n=e.totalUser,t=e.totalAmount,a=(0,Fn.he)("containers.GamesPanel.Taixiu.small"),i=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers.split(pt.Z.gameConfig.taixiu.symbolSplit).map((function(e){return Number(e)})).reduce((function(e,n){return e+n}),0)<=10})),r=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),o=new fa.pn8({align:"center",fontFamily:"TTNorms-Medium",fontSize:24,fill:["#759eb2"],lineHeight:4.5}),s=new fa.pn8({align:"center",fontFamily:"TTNorms-Bold",fontWeight:"bold",fontSize:24,fill:["#ffffff"],lineHeight:4.5}),u=new fa.pn8({align:"center",dropShadow:!0,dropShadowAlpha:.5,dropShadowBlur:5,fill:["#aaaaaa","#e7e7e7","#aaaaaa"],fillGradientType:1,fillGradientStops:[.1,.6,.9],fontFamily:"Avenir Next",fontWeight:"bold",fontSize:55,fontStyle:"italic",letterSpacing:2,lineJoin:"round",miterLimit:0,padding:20,stroke:"#292828",strokeThickness:7,wordWrapWidth:0}),l=function(e){e.clear(),e.beginFill(8111615,.7),e.arc(0,0,-150,0,Math.PI,!1),e.filters=[new fa.T01(4,1,void 0,13)],e.endFill()};return(0,wt.jsxs)(da.W2,{children:[(0,wt.jsxs)(da.W2,{position:[710,240],children:[r===$t.x3.DRAW&&i?(0,wt.jsx)(ma.AM,{reset:!0,from:{alpha:0},to:[{alpha:1},{alpha:0}],config:{tension:200,friction:5,clamp:!0},loop:!0,children:function(e){return(0,wt.jsx)(da.TC,(0,d.Z)({position:[170,160],draw:l},e))}}):null,(0,wt.jsx)(sa.xv,{text:"3-10",position:[147,19],style:o}),(0,wt.jsx)(qa,{position:[205,108],value:n,width:100,height:26.5,align:"right",letterSpacing:14,fontName:"onlineCount"}),(0,wt.jsx)(sa.xv,{text:"".concat($a({key:"small"}).bonus),position:[145,130],style:s}),(0,wt.jsx)(da.jy,{width:20,height:23,position:[284,70],texture:fa.P6Y.TextureCache.member}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[175,90],scale:1-.05*a("").length,text:a(""),style:u})]}),(0,wt.jsx)(qa,{position:[740,426],value:t,width:320,height:50,fontName:"betAmount"})]})},ti=function(e,n,t){var a=(0,r.useRef)();(0,r.useEffect)((function(){a.current=e}),[e]),(0,r.useEffect)((function(){t&&null!==n&&a.current()}),[t]),(0,r.useEffect)((function(){if(null!==n){var e=setInterval((function(){a.current()}),n);return function(){return clearInterval(e)}}}),[n])},ai=function(e){var n=e.value,t=e.width,a=void 0===t?105:t,i=e.height,o=void 0===i?108:i,c=e.centerX,s=e.centerY,u=(0,r.useState)(),l=(0,ot.Z)(u,2),m=l[0],f=l[1],p=(0,r.useState)(),g=(0,ot.Z)(p,2),h=g[0],v=g[1],b=function(e){for(var n=fa.P6Y.TextureCache,t=[],a=0;a<15;a++)t.push(n["".concat(e,"_").concat(a,".png")]);return t};return(0,r.useEffect)((function(){f({1:b("1b"),2:b("2b"),3:b("3b"),4:b("4b"),5:b("5b"),6:b("6b")}),v(b("3b").concat(b("4b")))}),[]),void 0===m?null:Number(n)?(0,wt.jsx)(da.jy,{position:[c,s],texture:m[Number(n)][12],width:a,height:o}):(0,wt.jsx)(ma.AM,{loop:!0,from:{rotation:(0,Fn.sZ)(180,270)},to:{rotation:360},config:{duration:1e4},delay:500,children:function(e){return(0,wt.jsx)(da.Kg,(0,d.Z)({anchor:.3,position:[c+50,s+50],textures:null==h?void 0:h.sort((function(){return.5-Math.random()})),isPlaying:!0,loop:!0,animationSpeed:.4,initialFrame:0,width:a,height:o},e))}})},ii=function(e){var n=e.visible,t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers.split(pt.Z.gameConfig.taixiu.symbolSplit).map((function(e){return Number(e)||0})).reduce((function(e,n){return e+n}),0)})),a=new fa.pn8({align:"center",fontFamily:"Arial-Black",fontSize:39,fill:["#ffffff"]});return(0,wt.jsxs)(da.W2,{visible:n,position:[241,6],children:[(0,wt.jsx)(da.TC,{draw:function(e){var n=Ba({width:75,height:75,gradientConfig:{x0:37.5,y0:0,x1:37.5,y1:75,gradientColors:[{percentage:0,color:"#fcfa7a"},{percentage:.29,color:"#fbdb8d"},{percentage:.47,color:"#bda766"},{percentage:.53,color:"#ffefaf"},{percentage:.78,color:"#b8a272"},{percentage:1,color:"#c1a781"}]}}),t=Ba({width:78,height:78,gradientConfig:{x0:0,y0:34,x1:68,y1:34,gradientColors:[{percentage:0,color:"#28699b"},{percentage:1,color:"#030f59"}]},radius:34});e.clear(),e.beginTextureFill({alpha:1,texture:n}),e.drawRoundedRect(0,0,75,75,37.5),e.beginTextureFill({alpha:1,texture:t}),e.drawRoundedRect(3.5,3.5,68,68,34),e.endFill()}}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[38,38],text:"".concat(t),style:a})]})},ri=t.p+"static/media/cup.72fb9818327a42596ac2.png",oi=function(){var e=(0,r.useState)(!1),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,r.useState)(!1),o=(0,ot.Z)(i,2),s=o[0],u=o[1],l=(0,r.useState)(!1),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=(0,r.useState)([167.5,157.5]),h=(0,ot.Z)(g,2),v=h[0],b=h[1],x=(0,r.useState)([0,0]),y=(0,ot.Z)(x,2),_=y[0],w=y[1],T=(0,c.v9)((function(e){return e.gamePanelInfo})),k=T.drawState,I=T.isAutoOpenCup,C=r.useRef(),E={duration:200},j={position:[367.5,-257.5],alpha:0},P={position:[0,0],alpha:1}
1,S=function(e){if(f&&I){var n=e.data.getLocalPosition(C.current.parent);u(!0),w([n.x-v[0],n.y-v[1]])}},N=function(e){if(s){var n=e.data.getLocalPosition(C.current.parent),t=n.y-_[1]>155?155:n.y-_[1];b([n.x-_[0],t])}},B=function(){u(!1)},A=function(){u(!1)};return(0,r.useEffect)((function(){switch(k){case $t.x3.BET_LOCKED:a(!1),p(!1);break;case $t.x3.WAIT_DRAW:a(!1),p(!0);break;case $t.x3.DRAW:a(!0),p(!1)}}),[k]),(0,wt.jsx)(ma.AM,{from:{scale:1},to:{scale:f&&I?1.1:1},config:{duration:800},children:function(e){return(0,wt.jsx)(da.W2,(0,d.Z)((0,d.Z)({ref:C,position:v,pointerdown:S,pointermove:N,pointerup:B,pointerout:A,eventMode:"static"},e),{},{children:(0,wt.jsx)(ma.AM,{delay:t?0:800,from:t?P:j,to:t?j:P,config:E,onRest:function(){t&&(C.current.visible=!1)},children:function(e){return(0,wt.jsx)(da.jy,(0,d.Z)({image:ri,anchor:.5},e))}})}))}})},ci=function(e){var n=e.setShowDrawDice,t=(0,r.useState)(!1),o=(0,ot.Z)(t,2),s=o[0],u=o[1],l=(0,r.useState)(null),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),h=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),v=new fa.pn8({align:"center",fontFamily:"Impact",fontSize:48.5,fontWeight:"bold",fill:["#1f1f1e"],stroke:"#ffffff",dropShadow:!0,dropShadowColor:"#340707",dropShadowBlur:5.7,dropShadowAngle:Math.PI/3,dropShadowDistance:1,strokeThickness:4,letterSpacing:0,wordWrap:!0});ti((function(){null!==f&&(p((function(e){return e-1})),0===f&&n(!1))}),1e3,!0),(0,r.useEffect)((function(){switch(g){case $t.x3.BET_NOW:case $t.x3.BET_NOW_RED:n(!1);break;case $t.x3.BET_LOCKED:Ea.eq.play("DrawDice",{loop:!0,volume:1});break;case $t.x3.WAIT_DRAW:Ea.eq.stop("DrawDice"),u(!1),p(pt.Z.gameConfig.taixiu.timeSetting.NEXT_ROUND_TIME);break;case $t.x3.DRAW:Ea.eq.play("DrawWin",{volume:1}),u(!0)}}),[g]);var b=g===$t.x3.WAIT_DRAW||s?{x:0}:function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({x:20});case 2:return e.next=4,n({x:-20});case 4:return e.next=6,n({x:0});case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,wt.jsxs)(da.W2,{children:[(0,wt.jsx)(ai,{value:h[0],centerX:116,centerY:44}),(0,wt.jsx)(ai,{value:h[1],centerX:57,centerY:140}),(0,wt.jsx)(ai,{value:h[2],centerX:175,centerY:140}),(0,wt.jsx)(ii,{visible:s}),(0,wt.jsx)(sa.xv,{position:[113,253],text:"00:".concat((f||0)>9?f:"0".concat(f)),style:v,visible:g===$t.x3.WAIT_DRAW||s}),(0,wt.jsx)(ma.AM,{from:{x:0},to:b,loop:!0,config:{duration:200},children:function(e){return(0,wt.jsx)(da.W2,(0,d.Z)((0,d.Z)({},e),{},{children:(0,wt.jsx)(oi,{})}))}})]})},si=function(e){var n=(0,zn.ip)(e),t=n.data,a=n.refetch,i=n.isFetching;return ti((function(){if(t){var e=t.currentNumero.remainDrawTime,n=t.nextNumero.remainDrawTime,r=(0,Fn.v)(-1,e),o=(0,Fn.v)(-1,n);!i&&(r<=0||o<=0)&&a()}}),500,!1),{data:t}},ui=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,r.useState)(null),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=(0,r.useState)(!1),s=(0,ot.Z)(o,2),u=s[0],l=s[1],d=(0,r.useState)(!0),m=(0,ot.Z)(d,2),f=m[0],p=m[1],g=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),h=si(g).data,v=new fa.pn8({align:"center",fontFamily:"Avenir Next",fontSize:164,fontWeight:"bold",fill:u?["#FF0033"]:["#fccb55","#ffbf6e","#ffa129","#ff6902","#ff8a1b","#ffaf30","#ffbd2f","#ffd041"],stroke:"#f7761d",dropShadow:!0,dropShadowColor:"#340707",dropShadowBlur:5,dropShadowAngle:Math.PI/3,dropShadowDistance:6,strokeThickness:3,letterSpacing:-7,wordWrap:!0,lineHeight:137});return ti((function(){if(h){var n=(0,Fn.v)(h.currentNumero.lockTime,h.currentNumero.remainDrawTime);if(0===a&&0===n&&!u&&!f)return l(!0),i(pt.Z.gameConfig.taixiu.timeSetting.BALANCE_TIME),void Ca.Z.show($t.k9.pixiInfo,e("IN_BALANCE"),1e3*pt.Z.gameConfig.taixiu.timeSetting.BALANCE_TIME,void 0,{x:0,y:180});if(u)return void(0===a?(l(!1),p(!0)):i((function(e){return e-1})));if(!f)switch(n){case 5:case 4:case 3:case 2:case 1:Ea.eq.play("CountDown-5",{volume:1});break;case 0:Ea.eq.play("CountDown-0",{volume:1});break;default:Ea.eq.exists("DrawDice")&&Ea.eq.stop("DrawDice"),Ea.eq.play("CountDown",{volume:1})}i(n)}}),1e3,!0),(0,wt.jsx)(wt.Fragment,{children:f?(0,wt.jsx)(ci,{setShowDrawDice:p}):(0,wt.jsx)(sa.W2,{position:[168,160],children:null!==a?(0,wt.jsx)(sa.xv,{anchor:.5,text:"".concat(a),style:v}):null})})},li=t(84486),di=function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),n=function(e,n){e.clear(),e.lineStyle(n,16381632,1);var t=Math.PI/2;e.moveTo(165,0),e.arc(0,0,165,0,t,!1)};return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(ma.AM,{from:{rotation:0},to:{rotation:2*Math.PI},config:{duration:5e3},loop:!0,children:function(e){return(0,wt.jsx)(da.jy,(0,d.Z)({position:[168,160],image:li,filters:[new fa.T01(6,1)],anchor:.5,width:308,height:291},e))}}),(0,wt.jsx)(ma.AM,{from:{rotation:0},to:{rotation:2*Math.PI},config:{duration:e&&[$t.x3.BET_NOW,$t.x3.DRAW].includes(e)?2e3:500},loop:!0,children:function(e){return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(da.TC,(0,d.Z)({draw:function(e){return n(e,10)},position:[168,160],filters:[new fa.T01(3,1)],width:168,height:168},e)),(0,wt.jsx)(da.TC,(0,d.Z)({draw:function(e){return n(e,6)},position:[168,160],width:165,height:165},e))]})}})]})},mi=function(){return(0,wt.jsxs)(sa.W2,{position:[387,284],children:[(0,wt.jsx)(di,{}),(0,wt.jsx)(ui,{})]})}
1,fi=t(61424),pi={open:function(){qn.Z.getState().calculatorInfo.show||qn.Z.dispatch(fi.Z.actions.open())},close:function(){qn.Z.dispatch(fi.Z.actions.close())},setEditAmount:function(e){qn.Z.dispatch(fi.Z.actions.updateEditAmount(e))},updateEditAmount:function(e){var n=Number(e),t=String(qn.Z.getState().calculatorInfo.editAmount);if("x"===e){var a=t.substring(0,t.length-1);qn.Z.dispatch(fi.Z.actions.updateEditAmount(a.length?Number(a):0))}else{var i=Number("".concat(t).concat(n));i<99999?qn.Z.dispatch(fi.Z.actions.updateEditAmount(i)):qn.Z.dispatch(fi.Z.actions.updateEditAmount(99999))}},confirmHandle:function(){var e=qn.Z.getState().calculatorInfo.editAmount;0!==e&&null!==e&&ft.Z.updateChip(e),qn.Z.dispatch(fi.Z.actions.close())}},gi=t(1174),hi={0:t(4533),1:t(20287),2:t(18633),3:t(91547),4:gi},vi=new fa.pn8({align:"center",fontFamily:"HelveticaNeue-Medium",fontSize:24,fill:["#fcfa7a","#edc23f","#fcde75","#fefee2","#ffe44d","#f7bc5e"],fontWeight:"bold",stroke:"#392323",strokeThickness:1,dropShadow:!0,dropShadowColor:"rgba(33, 30, 28, 0.85)",dropShadowBlur:3.5,dropShadowAngle:Math.PI/6,dropShadowDistance:1}),bi=new fa.pn8({align:"center",fontFamily:"HelveticaNeue-Medium",fontSize:24,fill:["#000000"],fontWeight:"bold"}),xi=function(e){var n=e.width,t=e.height,a=e.data,i=e.marginRight,o=void 0===i?0:i,c=e.isEdit,s=e.currentIndex,u=e.handleClick,l=a.index,d=a.value,m=s===l,f=(0,r.useCallback)((function(e){e.beginFill("#fff"),e.drawRoundedRect(0,0,n,20,4),e.endFill()}),[n]);return(0,wt.jsxs)(sa.W2,{position:[l*o+l*n,m?-15:0],children:[(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:function(){u(a.index)},width:n,height:t,image:hi[l]}),c&&m&&(0,wt.jsx)(sa.TC,{position:[0,t/2-10],draw:f}),(0,wt.jsx)(sa.xv,{position:[n/2,t/2],anchor:.5,text:"".concat(d),style:c&&m?bi:vi})]})},yi=t.p+"static/media/edit-icon.4a4a291ef983b8c73504.png";function _i(e){var n=e.handleToBetting,t=(0,c.v9)((function(e){return e.calculatorInfo.show})),a=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),i=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),o=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),s=(0,r.useState)([]),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=function(e){Ea.eq.play("Button",{volume:1}),ft.Z.changeSelectedChip(e),e===i&&n()};return(0,r.useEffect)((function(){var e=a.map((function(e,n){return{index:n,value:e}}));m(e)}),[a]),(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)(sa.W2,{position:[285,673],children:[(0,wt.jsx)(sa.W2,{width:520,height:94,children:l.map((function(e){var n=t&&i===e.index?(0,d.Z)((0,d.Z)({},e),{},{value:o||0}):e;return(0,wt.jsx)(xi,{width:90,height:94,data:n,currentIndex:i,marginRight:14,isEdit:t,handleClick:f},e.index)}))}),(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:function(){Ea.eq.play("Button",{volume:1}),t?pi.close():pi.open()},position:[520,20],width:50,height:50,image:yi})]})})}var wi=function(e){return{x:e.width/2,y:e.height/2}},Ti=function(e){var n=e.containerWidth,t=e.containerHeight,a=e.width,i=e.height,r=e.scale;return{x:n/2-a*r/2,y:t/2-i*r/2}},ki=new fa.pn8({align:"center",fontFamily:"PingFangSC-Semibold",fontSize:26,fontWeight:"bold",fill:["#262521"]}),Ii=new fa.pn8({align:"center",fontFamily:"PingFangSC-Semibold",fontSize:26,fontWeight:"bold",fill:["#7a7a7a"]}),Ci=150;function Ei(e){var n=e.clearChip,t=e.betConfirm,a=e.handlePrevBet,i=e.allinClick,o=e.betChips,c=e.selectedBlock,s=(0,Fn.he)("containers.GamesPanel.Taixiu."),u=(0,r.useCallback)((function(e){return{x:Ci*e+10*e,y:0}}),[]),l=wi({width:150,height:68}),d=va(o,"unConfirm","VTX_BS_BIG"),m=va(o,"unConfirm","VTX_BS_SMALL"),f=null===c,p=0===o.length||null===c||0===m&&0===d,g=!c,h=!c;return(0,wt.jsxs)(sa.W2,{position:[260,773],children:[(0,wt.jsxs)(sa.W2,{position:u(0),eventMode:"static",onpointerdown:function(){f||(Ea.eq.play("Button",{volume:1}),n())},children:[(0,wt.jsx)(sa.jy,{width:Ci,height:68,texture:fa.P6Y.TextureCache["".concat(f?"bet-btn-cancel-disabled":"bet-btn-cancel")]}),(0,wt.jsx)(sa.xv,{text:s("cancel"),position:l,anchor:.5,style:f?Ii:ki})]}),(0,wt.jsxs)(sa.W2,{position:u(1),eventMode:"static",onpointerdown:function(){h||(Ea.eq.play("Button",{volume:1}),i())},children:[(0,wt.jsx)(sa.jy,{width:Ci,height:68,texture:fa.P6Y.TextureCache["".concat(h?"bet-btn-allin-disabled":"bet-btn-allin")]}),(0,wt.jsx)(sa.xv,{text:s("all_in"),position:l,anchor:.5,style:h?Ii:ki})]}),(0,wt.jsxs)(sa.W2,{position:u(2),eventMode:"static",onpointerdown:function(){g||(Ea.eq.play("Button",{volume:1}),a())},children:[(0,wt.jsx)(sa.jy,{width:Ci,height:68,texture:fa.P6Y.TextureCache["".concat(g?"bet-btn-repeat-disabled":"bet-btn-repeat")]}),(0,wt.jsx)(sa.xv,{text:s("repeat"),position:l,anchor:.5,style:g?Ii:ki})]}),(0,wt.jsxs)(sa.W2,{position:u(3),eventMode:"static",onpointerdown:function(){p||(Ea.eq.play("Button",{volume:1}),t())},children:[(0,wt.jsx)(sa.jy,{width:Ci,height:68,texture:fa.P6Y.TextureCache["".concat(p?"bet-btn-agree-disabled":"bet-btn-agree")]}),(0,wt.jsx)(sa.xv,{text:s("bet_now"),position:l,anchor:.5,style:p?Ii:ki})]})]})}var ji=function(e){var n=e.onClick,t=r.useState(null),a=(0,ot.Z)(t,2),i=a[0],o=a[1],s=(0,r.useState)([]),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=(0,c.v9)((function(e){return e.gameDrawHistoryInfo.drawHistory})),p=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),g=mt(f);return(0,r.useEffect)((function(){if(f.length>10){var e=p===$t.x3.DRAW?f.slice(0,11):null==g?void 0:g.slice(0,10);if(e){var n=e.map((function(e){return e.winNo.split(pt.Z.gameConfig.taixiu.symbolSplit).map((function(e){return Number(e)||0})).reduce((function(e,n){return e+n}),0)}));m(n.reverse())}}}),[p,f]),(0,wt.jsxs)(da.W2,{pointerdown:function(){return n()},eventMode:"static",position:[310,615],children:[l.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:{x:0},to:{x:p===$t.x3.DRAW?-45:0},config:{duration:p===$t.x3.DRAW?1e3:0},delay:p===$t.x3.DRAW?1e3:0,children:function(t){return(0,wt.jsxs)(da.W2,(0,d.Z)((0,d.Z)({mask:i},t),{}
1,{children:[(0,wt.jsx)(da.jy,{anchor:.5,texture:e<=10?fa.P6Y.TextureCache["number-white"]:fa.P6Y.TextureCache["number-black"],x:20+45*n,y:27,width:38,height:40}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[20+45*n,25],text:"".concat(e),style:new fa.pn8({align:"center",fontFamily:"TTNorms",fontSize:22.5,fill:e<=10?["#000000"]:["#ffffff"],fontWeight:"bold"})})]}))}},n)})),(0,wt.jsx)(da.jy,{visible:p!==$t.x3.DRAW,position:[455,7],texture:fa.P6Y.TextureCache["drawing-ball"],width:36,height:40}),(0,wt.jsx)(da.TC,{draw:function(e){return e.beginFill(0),e.drawRect(0,0,500,50),e.endFill(),e},ref:o})]})};function Pi(e){var n=e.originX,t=e.originY,a=e.chipWidth,i=e.chipHeight,o=e.margin,c=void 0===o?3:o,s=e.numero,u=e.chipGap,l=void 0===u?5:u,d=(0,r.useState)([]),m=(0,ot.Z)(d,2),f=m[0],p=m[1],g=function(){return Math.random()<.5?-1:1};return(0,r.useEffect)((function(){if(void 0!==s){for(var e=[],r=function(){for(var e=[],n=0;n<4;n++){var t=(0,Fn.sZ)(1,10);e.push(t)}var a=45-e.reduce((function(e,n){return e+n}),0);return e.push(a),e}(),o=0;o<r.length;o++)for(var u=0;u<r[o];u++){var d=1*g(),m=3*g();o>2?e.push(new fa.E9j(n+Math.floor(a/2)+a*(o-3)+c*(o-3)+d,t+i-u*l+m)):e.push(new fa.E9j(n+a*o+c*o+d,t-u*l+m))}p(e)}}),[s]),{positionData:f}}var Si=["purple","gold","lightblue","darkpurple","red"],Ni={originX:30,originY:30,chipWidth:45,chipHeight:45},Bi=function(e){var n=e.betChips,t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),a=(0,zn.ip)(t).data,i=Pi((0,d.Z)({numero:null==a?void 0:a.currentNumero.numero},Ni)).positionData,r=n.filter((function(e,n){return"VTX_BS_BIG"===e.prizeType&&n<45}));return(0,wt.jsx)(sa.W2,{position:[66,240],children:r.map((function(e,n){return(0,wt.jsx)(sa.jy,{position:i[n],texture:fa.P6Y.TextureCache["".concat(Si[e.styleIndex],"-chip")],width:45,height:45},n)}))})},Ai=["purple","gold","lightblue","darkpurple","red"],Ri={originX:140,originY:30,chipWidth:45,chipHeight:45},Oi=function(e){var n=e.betChips,t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),a=(0,zn.ip)(t).data,i=Pi((0,d.Z)({numero:null==a?void 0:a.currentNumero.numero},Ri)).positionData,r=n.filter((function(e,n){return"VTX_BS_SMALL"===e.prizeType&&n<45}));return(0,wt.jsx)(sa.W2,{position:[710,240],children:r.map((function(e,n){return(0,wt.jsx)(sa.jy,{position:i[n],texture:fa.P6Y.TextureCache["".concat(Ai[e.styleIndex],"-chip")],width:45,height:45},n)}))})},Mi=pt.Z.gameConfig.taixiu,Zi=pt.Z.gameConfig.taixiu.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.taixiu.groupPlayId,menuPlayId:e.menuPlayId,className:"big"===n.key?"tai":"xiu",oddsIcon:"",bg:null,oddsText:"big"===n.key?"11 ~ 17":"4 ~ 10"},n)}))})).flat(),Di=Zi.find((function(e){return"small"===e.key})),Li=Zi.find((function(e){return"big"===e.key})),Gi=function(e){var n=e.split(Mi.symbolSplit).map((function(e){return Number(e)})).reduce((function(e,n){return e+n}),0)<=10?Di:Li;return n?[n.prizeType]:[]},Wi=function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,n=(0,r.useState)({bigBetUser:0,smallBetUser:0}),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=(0,r.useState)({bigBetAmount:0,smallBetAmount:0}),s=(0,ot.Z)(o,2),m=s[0],f=s[1],p=function(){var e=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),n=(0,c.v9)((function(e){return e.gamePanelInfo})),t=n.bettingOrder,a=n.drawState,i=(0,r.useState)({bigBetAmount:0,smallBetAmount:0}),o=(0,ot.Z)(i,2),s=o[0],u=o[1],l=(0,Fn.mk)(!1,"".concat(e,"-betChips"));return(0,r.useEffect)((function(){var e=l.data&&l.data.filter((function(e){return"VTX_BS_BIG"===e.prizeType})).reduce((function(e,n){return e+n.amount}),0)||0,n=l.data&&l.data.filter((function(e){return"VTX_BS_SMALL"===e.prizeType})).reduce((function(e,n){return e+n.amount}),0)||0,i=t.filter((function(e){return"VTX_BS_BIG"===e.bettingContent})).reduce((function(e,n){return e+n.totalBettingAmount}),0),r=t.filter((function(e){return"VTX_BS_SMALL"===e.bettingContent})).reduce((function(e,n){return e+n.totalBettingAmount}),0),o=a&&[$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(a);
1u({bigBetAmount:i+(o?e:0),smallBetAmount:r+(o?n:0)})}),[t]),(0,r.useEffect)((function(){a===$t.x3.BET_NOW&&ft.Z.playerBettingOrder(null)}),[a]),s}(),g=function(e){var n=e.getWinPrizeType,t=e.gameConfig.menuInfos.map((function(e){return e.playInfos.map((function(e){return e.prizeType}))})).flat(),a=t.reduce((function(e,n){return(0,d.Z)((0,d.Z)({},e),{},(0,l.Z)({},n,0))}),{}),i=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),o=(0,zn.ip)(i).data,s=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),m=(0,r.useState)([]),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=(0,r.useState)(a),v=(0,ot.Z)(h,2),b=v[0],x=v[1],y=(0,r.useState)(a),_=(0,ot.Z)(y,2),w=_[0],T=_[1],k=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState;return(0,r.useEffect)((function(){k===$t.x3.DRAW?setTimeout((function(){var e=qn.Z.getState().gamePanelInfo.header.drawNumbers,t=n(e);g((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{flyTarget:t.indexOf(e.prizeType)>-1&&e.botBetFrom?[546,600]:[546,100]})}))}))}),2e3):k===$t.x3.BET_NOW&&(g([]),x(a),T(a))}),[k]),(0,r.useEffect)((function(){var e=(0,Fn.Wf)();e&&at.subscribeUserChannel(e,(function(e){var n=JSON.parse(e).content,t=/^LGSBALANCE_(\w+)_\d+_\d+_(-?\d+(.\d+)?)$/g.exec(n);if(null!==t){var a=(0,ot.Z)(t,3),i=a[1],r=a[2];if(i!==s)return;ft.Z.updateCustomerProfit(Number(r))}}));var n=(0,Fn.Z_)();return at.subscribeGameBotBet(n,(function(e){var n,t=JSON.parse(e),a=null===(n=qn.Z.getState().gamePanelInfo.info)||void 0===n?void 0:n.gameCode;if(t.gameCode===a){var i=qn.Z.getState().gamePanelInfo.drawState;if(!i||![$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(i))return;var r=t.gameBotPlayTOList,c=function e(n){var t=n.prizeType,a=n.totalAmount,i=n.randomCount,r=n.delay,c=i>0&&a>2e3?(0,Fn.sZ)(2e3,a):a;a-=c;var s="VTX_BS_BIG"===t?[(0,Fn.sZ)(85,337),(0,Fn.sZ)(270,343)]:[(0,Fn.sZ)(720,982),(0,Fn.sZ)(270,343)],l={numero:null==o?void 0:o.currentNumero.numero,playId:0,playInfoId:0,prizeType:t,betContent:"",amount:c,styleIndex:(0,Fn.sZ)(0,4),hasConfirm:!1,botBetFrom:".".concat(pt.Z.classNamePrefix,"other-users"),moveX:s[0],moveY:s[1]};g((function(e){return[].concat((0,u.Z)(e),[l])})),i>=0&&a>0&&setTimeout((function(){e({prizeType:t,totalAmount:a,delay:r,randomCount:i-1})}),r)};T((function(e){for(var n=0;n<r.length;n++){var t=r[n],a=t.prizeType,i=t.totalBetAmount;if(void 0!==e[a]){var o=i-e[a];if(e[a]=i,o>0){var s=(0,Fn.sZ)(0,20);c({prizeType:a,totalAmount:o,randomCount:s,delay:2e3/s})}}}return(0,d.Z)({},e)})),x((function(e){for(var n=0;n<r.length;n++){var t=r[n],a=t.prizeType,i=t.totalBetCount;void 0!==e[a]&&(e[a]=i)}return(0,d.Z)({},e)}))}})),function(){at.unsubscribeUserChannel(),at.unsubscribeGameBotBet(n)}}),[]),{botBetChips:p,userQtysData:b,totalAmountData:w}}({gameConfig:Mi,getWinPrizeType:Gi});return(0,r.useEffect)((function(){i({bigBetUser:g.userQtysData.VTX_BS_BIG+(0!==p.bigBetAmount?1:0),smallBetUser:g.userQtysData.VTX_BS_SMALL+(0!==p.smallBetAmount?1:0)}),f({bigBetAmount:p.bigBetAmount+g.totalAmountData.VTX_BS_BIG,smallBetAmount:p.smallBetAmount+g.totalAmountData.VTX_BS_SMALL})}),[p,g.totalAmountData]),(0,r.useEffect)((function(){e===$t.x3.BET_LOCKED&&void 0!==Mi.timeSetting.BALANCE_TIME&&setTimeout((function(){var e=Math.min.apply(Math,[m.bigBetAmount,m.smallBetAmount]);f({bigBetAmount:e,smallBetAmount:e})}),1e3*(Mi.timeSetting.BALANCE_TIME+1))}),[e]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(ei,{totalAmount:m.bigBetAmount,totalUser:a.bigBetUser}),(0,wt.jsx)(ni,{totalAmount:m.smallBetAmount,totalUser:a.smallBetUser}),(0,wt.jsx)(ga,{botBetChips:g.botBetChips})]})},Ui=function(e){var n=function(e){var n=(0,Fn.he)("containers.GamesPanel."),t=e.gameConfig,a=e.handleToBettingCondition,i=e.getWinPrizeType,o=(0,r.useState)([]),s=(0,ot.Z)(o,2),l=s[0],m=s[1],f=(0,r.useState)(null),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),b=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),x=(0,c.v9)((function(e){return e.gamePanelInfo})),y=x.drawState,_=x.customerProfit,w=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),T=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),k=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(v)).data,I=(0,zn.De)(),C=I.data,E=I.refetch,j=C?C.availBalance:0,P=(0,zn.ip)(v).data,S=(0,zn.hE)(),N=(0,ot.Z)(S,2),B=N[0],A=N[1],R=(0,r.useRef)(null),O=Pa({gameId:v}).playLimit,M=_t(),Z=M.sendEvent,D=M.handleRemindMarkBetGa,L=M.gaEventConfig,G=function(e){var t,a=O?null===(t=O[e])||void 0===t?void 0:t.betAmountMaxLimitByNumero:0,i=0===a?j:Math.min(a,j),r=i-(i===j?0:va(l,"confirm"))-va(l,"unConfirm"),o=Math.floor(r/w);if(!(o<1))return{chipsCount:o};i===j?Ca.Z.show($t.k9.pixiInfo,n("BALANCE_NOT_ENOUGH")):Ca.Z.show($t.k9.pixiInfo,n("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:i}))},W=function(){m((function(e){return e.filter((function(e){return e.hasConfirm}))})),h(null)};return ja({gameConfig:t,sendBettingOrdersResult:A,clearChip:W,confirmAndStorageChip:function(){m((function(e){var n="",t=e.map((function(e){return e.hasBetting?(n=e.numero,(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!0})):e}));return(0,Fn.tG)(!1,"".concat(v,"-betChips"),{numero:n,data:t}),t}))}}),(0,r.useEffect)((function(){y===$t.x3.DRAW?(E(),setTimeout((function(){_>0&&Ca.Z.show($t.k9.pixiWin,"YOU WIN +".concat(_)),setTimeout((function(){var e,n;e=qn.Z.getState().gamePanelInfo.header.drawNumbers,n=i(e),m((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{flyTarget:n.indexOf(e.prizeType)>-1?[546,600]:[546,100]})}))}))}),1e3)}),500)):y===$t.x3.BET_NOW&&m([]),y===$t.x3.BET_LOCKED&&(h(null),m((function(e){var n=e.filter((function(e){return e.hasConfirm}));return R.current=JSON.parse(JSON.stringify(n)),n})))}),[y]),(0,r.useEffect)((function(){var e=(0,Fn.mk)(!1,"".concat(v,"-betChips"));e&&e.data&&e.numero&&e.numero===(null==P?void 0:P.currentNumero.numero)?!l.length&&e.data.length>0&&m(e.data):(0,Fn.HB)(!1,"".concat(v,"-betChips"))}),[P,l]),{selectedBlock:g,betChips:l,getSubTotal:va,handleToBetting:function(){if(!A.isLoading&&g&&y&&Sa.includes(y)){var e=g.prizeType,n=g.betContent,t=g.playInfoId,i=g.playId;G(t)&&(a&&!a(l,{prizeType:e,betContent:n,playInfoId:t})||m((function(a){return[].concat((0,u.Z)(a),[{numero:null==P?void 0:P.currentNumero.numero,playId:i,playInfoId:t,prizeType:e,betContent:n,amount:w,styleIndex:T,hasConfirm:!1}])})))}},clearChip:W,handlePrevBet:function(e){var n;if(null==e||e.stopPropagation(),R.current&&R.current.length&&!l.find((function(e){return e.hasConfirm}))){var t=R.current[R.current.length-1],a=t.prizeType,i=t.betContent,r=t.playInfoId,o=t.playId;h({prizeType:a,betContent:i,playInfoId:r,playId:o}),m(null===(n=R.current)||void 0===n?void 0:n.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})}
1)))}},handleAllin:function(){if(!A.isLoading&&g&&y&&Sa.includes(y)){var e=g.prizeType,n=g.betContent,t=g.playInfoId,a=g.playId,i=G(t);i&&m((function(r){for(var o=[],c=0;c<i.chipsCount;c++){var s={numero:null==P?void 0:P.currentNumero.numero,playId:a,playInfoId:t,prizeType:e,betContent:n,amount:w,styleIndex:T,hasConfirm:!1};o.push(s)}return[].concat((0,u.Z)(r),o)}))}},betConfirm:function(e){if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!A.isLoading){var n=function(){for(var e=l.filter((function(e){return!e.hasConfirm})),n={},t=[],a=0;a<e.length;a++){var i="".concat(e[a].playId,"-").concat(e[a].betContent);n[i]||(n[i]=[]),n[i].push(e[a])}return Object.keys(n).forEach((function(e){t.push({playId:n[e][0].playId,bettingString:n[e][0].betContent,singleBetPrice:null==k?void 0:k.singleBetPrice,amount:n[e].reduce((function(e,n){return e+n.amount}),0)})})),{orders:t}}();if(0!==n.orders.length){Z({action:L.game_betting,data:{game_code:b}}),D();var t=n.orders.map((function(e){var n=e.playId,t=e.bettingString,a=e.singleBetPrice,i=e.amount;return{gameId:v,playId:n,bettingApproach:1,bettingSlip:null,bettingContent:t,singleBetPrice:a,winStop:!1,numero:[{numero:null==P?void 0:P.currentNumero.numero,multiple:i}]}}));m((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasBetting:!0})}))})),B(t),h(null)}}},changeBetBlock:function(e){return h(e)}}}({gameConfig:Mi,getWinPrizeType:Gi,gameKey:$t.gV.taixiu}),t=n.betChips,a=n.handleToBetting,i=n.changeBetBlock,o=n.selectedBlock,s=n.clearChip,l=n.betConfirm,m=n.handlePrevBet,f=n.handleAllin;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Bi,{betChips:t}),(0,wt.jsx)(Oi,{betChips:t}),(0,wt.jsx)(Qa,{changeBetBlock:i,selectedBlock:o,betChips:t}),(0,wt.jsx)(mi,{}),(0,wt.jsx)(ji,{onClick:e.onClick}),(0,wt.jsx)(_i,{handleToBetting:a}),(0,wt.jsx)(Ei,{clearChip:s,betConfirm:l,handlePrevBet:m,allinClick:f,betChips:t,selectedBlock:o})]})},qi=(0,r.memo)((function(e){var n=e.onClick;return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(Wi,{}),(0,wt.jsx)(Ui,{onClick:n})]})})),zi=function(e){return e[e.HISTORY=0]="HISTORY",e[e.HELP=1]="HELP",e[e.STATISTICS=2]="STATISTICS",e[e.VOICE=3]="VOICE",e}(zi||{}),Fi=function(e){var n=e.onChartClick,t=e.onIntroClick,a=e.onMyBetClick,i=(0,r.useState)(Fn.$t),o=(0,ot.Z)(i,2),c=o[0],s=o[1],u=function(e){switch(Ea.eq.play("Button",{volume:1}),e){case zi.HISTORY:a();break;case zi.HELP:t();break;case zi.STATISTICS:n();break;case zi.VOICE:var i=!c;s(i),(0,Fn.SG)(i),i?Ea.eq.muteAll():Ea.eq.unmuteAll()}};return(0,wt.jsxs)(da.W2,{children:[(0,wt.jsx)(Za,{pointerdown:function(){return u(zi.HISTORY)},x:127,y:156,texture:fa.P6Y.TextureCache.history,width:47,height:47}),(0,wt.jsx)(Za,{pointerdown:function(){return u(zi.HELP)},x:248,y:150,texture:fa.P6Y.TextureCache.help,width:22,height:55}),(0,wt.jsx)(Za,{pointerdown:function(){return u(zi.STATISTICS)},x:833,y:153,texture:fa.P6Y.TextureCache.statistics,width:51,height:47}),(0,wt.jsx)(Za,{pointerdown:function(){return u(zi.VOICE)},x:931,y:156,texture:c?fa.P6Y.TextureCache["disable-voice"]:fa.P6Y.TextureCache.voice,width:63,height:47})]})},Vi=t.p+"static/media/close.8616fd677f4b964f2ec2.png",Hi=new fa.pn8({align:"center",fontFamily:"Arial",fontSize:26,fontWeight:"bold",fill:["#ffffff"],lineHeight:.15});function Yi(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.header.numero})),n=(0,r.useCallback)((function(e){e.lineStyle(2,16769363,1),e.beginFill(0),e.drawRoundedRect(0,0,200,50,6),e.endFill()}),[]);return(0,wt.jsxs)(sa.W2,{position:[90,60],children:[(0,wt.jsx)(sa.TC,{draw:n}),(0,wt.jsx)(sa.xv,{position:[100,25],anchor:.5,text:"No.".concat(e),style:Hi})]})}var Xi=t(5873),Ki=t(64822);function Qi(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?35:a,o=e.height,c=void 0===o?35:o,s=e.icon,u=e.texture,l=e.onClick,m=(0,r.useState)(!1),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=s||(p?Ki:Xi),v={eventMode:"static",onpointerdown:function(){g(!0),l&&l()},onpointerup:function(){return g(!1)},position:t,width:i,height:c};return u?v.texture=u:v.image=h,(0,Fn.Gn)()?null:(0,wt.jsx)(sa.jy,(0,d.Z)({},v))}var Ji=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=(0,c.v9)((function(e){return e.gamePanelInfo})),t=_t(),a=t.sendEvent,i=t.gaEventConfig;return{closeGamePanel:function(){return new Promise((function(t){var r;fa.deM.resolver.reset(),fa.deM.cache.reset(),Ea.eq&&Ea.eq.removeAll(),e&&a({action:i.game_close,data:{game_code:null===(r=n.info)||void 0===r?void 0:r.gameCode}}),ft.Z.close(),requestAnimationFrame((function(){setTimeout((function(){t()}),10)}))}))}}},$i=["children"],er=function(e){e.children;var n=(0,oa.Z)(e,$i),t=n.containerScale,a=n.onChartClick,i=n.onHistoryClick,o=n.onIntroClick,s=n.onMyBetClick,u=(0,c.v9)((function(e){return e.gamePanelInfo})),l=Ji().closeGamePanel;return(0,r.useEffect)((function(){(0,Fn.$t)()?Ea.eq.muteAll():Ea.eq.unmuteAll(),Ea.eq.play("BackGround",{loop:!0,volume:.4})}),[]),null===u.info?null:(0,wt.jsxs)(sa.W2,{scale:t,children:[(0,wt.jsx)(Yi,{}),(0,wt.jsx)(sa.jy,{width:1136,height:870,texture:fa.P6Y.TextureCache["board-bg"]}),(0,wt.jsx)(Qi,{position:[1026,0],width:77,height:77,icon:Vi,onClick:l}),(0,wt.jsx)(Fi,{onChartClick:a,onIntroClick:o,onMyBetClick:s}),(0,wt.jsx)(qi,{onClick:i})]})},nr=[{src:t(44686),alias:["calculator-bg"]},{src:t(68387),alias:["green-btn-bg"]},{src:t(15663),alias:["white-btn-bg"]},{src:t(84057),alias:["red-btn-bg"]}],tr=[{src:t(1174),alias:["red-chip"]},{src:t(4533),alias:["purple-chip"]},{src:t(20287),alias:["gold-chip"]},{src:t(18633),alias:["lightblue-chip"]}
1,{src:t(91547),alias:["darkpurple-chip"]}],ar=[{src:t(21816),alias:["board-bg"]},{src:t(84486),alias:["light"]},{src:t(83954),alias:["enable-hand"]},{src:t(2841),alias:["disable-hand"]},{src:t(59194),alias:["statistics"]},{src:t(82501),alias:["history"]},{src:t(40678),alias:["help"]},{src:t(62840),alias:["voice"]},{src:t(66371),alias:["disable-voice"]},{src:t(11733),alias:["drawing-ball"]},{src:t(91014),alias:["betting-button"]},{src:t(34904),alias:["number-white"]},{src:t(29634),alias:["number-black"]},{src:t(95627),alias:["member"]}],ir=[{src:t(39357),alias:["bet-btn-cancel"]},{src:t(75293),alias:["bet-btn-allin"]},{src:t(73002),alias:["bet-btn-repeat"]},{src:t(21893),alias:["bet-btn-agree"]},{src:t(71444),alias:["bet-btn-agree-disabled"]},{src:t(76125),alias:["bet-btn-allin-disabled"]},{src:t(90925),alias:["bet-btn-cancel-disabled"]},{src:t(41867),alias:["bet-btn-repeat-disabled"]}],rr=[{src:t(43972),alias:["chart-arrow-left"]},{src:t(2605),alias:["chart-arrow-right"]},{src:t(75285),alias:["chart-back"]},{src:t(60250),alias:["chart-checkBox"]},{src:t(19181),alias:["chart-header"]},{src:t(90673),alias:["chart-tick"]}],or="".concat("/mini-game/s1","/"),cr=[{src:"".concat(or,"sprite-sheet/Taixiu/dice.json")}],sr=[].concat(ar,cr,nr,tr,ir,rr),ur={BackGround:t(58623),CountDown:t(96011),"CountDown-5":t(90353),"CountDown-0":t(74676),DrawDice:t(96113),DrawWin:t(66848),PlayerWin:t(49634),Button:t(57049),BetSuccess:t(48170)},lr={chars:[["a","z"],["0","9"],["A","Z"]," \\|/,.-^%$&*()!?"]},dr=function(e){return new fa.pn8({align:"center",fontFamily:"Impact, Roboto",fontWeight:"bold",fontSize:e,fill:["#fcfa7a","#edc23f","#fcde75","#fefee2","#ffe44d","#f7bc5e"],fillGradientStops:[0,.29,.5,.7,.99],dropShadow:!0,dropShadowColor:"#42403E",dropShadowBlur:1,dropShadowAngle:Math.PI/3,lineHeight:e})},mr=new fa.pn8({align:"left",fontFamily:"Arial, Roboto",fontWeight:"bold",fontStyle:"italic",fontSize:24,fill:["#fcfa7a","#fced98","#fcde75","#ffe44d","#fefee2","#fcde75"],stroke:"#3b0f0f",dropShadow:!0,dropShadowColor:"#6D431A",dropShadowBlur:3,dropShadowAngle:Math.PI/2,dropShadowDistance:1,strokeThickness:1,lineHeight:24}),fr=t(49987),pr={open:function(){qn.Z.dispatch(fr.Z.actions.open())},close:function(){qn.Z.dispatch(fr.Z.actions.close())},updateDrawHistory:function(e){qn.Z.dispatch(fr.Z.actions.updateDrawHistory(e))}},gr=function(e){var n=e.gameConfig,t=e.delay,a=void 0===t?0:t,i=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),o=(0,zn.ip)(i).data,s=(0,zn.VO)(i),u=s.data,l=s.refetch,d=(0,r.useRef)(null),m=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),f=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),p=(0,r.useState)(!1),g=(0,ot.Z)(p,2),h=g[0],v=g[1],b=Array.from({length:n.numberCount},(function(){return"?"})).join(n.symbolSplit);return(0,zn.xV)(),(0,r.useEffect)((function(){return at.subscribeDrawResult(m,(function(e){f!==$t.x3.DRAW&&ft.Z.updateDrawState($t.x3.WAIT_DRAW),d.current=(new Date).valueOf()+1e3*n.timeSetting.NEXT_ROUND_TIME,setTimeout((function(){l()}),20)})),function(){at.unsubscribeDrawResult(m)}}),[]),(0,r.useEffect)((function(){if(o&&o.previousNumero&&o.previousNumero.numero){var e=u&&u.length&&u.find((function(e){return e.numero===o.previousNumero.numero}));e?(v(!0),ft.Z.updateHeaderData({drawNumbers:e.winNo})):(v(!1),ft.Z.updateHeaderData({drawNumbers:b,numero:o.previousNumero.numero})),pr.updateDrawHistory(u||[])}}),[o,u]),ti((function(){if(d.current&&f&&[$t.x3.WAIT_DRAW,$t.x3.DRAW].includes(f)){var e=(0,Fn.v)(0,d.current);e<=0?(ft.Z.updateDrawState($t.x3.BET_NOW),ft.Z.updateCustomerProfit(0)):e<=n.timeSetting.WAIT_DRAW_TIME&&ft.Z.updateDrawState($t.x3.DRAW)}else if(o&&h){var t=(0,Fn.v)(o.currentNumero.lockTime+a,o.currentNumero.remainDrawTime);t<=0?(ft.Z.updateHeaderData({numero:o&&o.currentNumero.numero?o.currentNumero.numero:"---",drawNumbers:b}),ft.Z.updateDrawState($t.x3.BET_LOCKED)):t<=n.timeSetting.BET_NOW_RED_TIME?(ft.Z.updateDrawState($t.x3.BET_NOW_RED),ft.Z.updateHeaderData({numero:o&&o.currentNumero.numero?o.currentNumero.numero:"---"})):(ft.Z.updateHeaderData({numero:o&&o.currentNumero.numero?o.currentNumero.numero:"---"}),ft.Z.updateDrawState($t.x3.BET_NOW))}}),250,!0),{}},hr=t.p+"static/media/taixiu-dialog-bg.eecbe159bde446d6615f.png",vr={width:420,height:41,gradientConfig:{x0:0,y0:0,x1:420,y1:0,gradientColors:[{percentage:0,color:"rgba(57, 57, 57, 0
1)"},{percentage:.57,color:"#3e3e3e"},{percentage:1,color:"rgba(62, 62, 62, 0)"}]}},br={width:186,height:53,gradientConfig:{x0:93,y0:0,x1:93,y1:53,gradientColors:[{percentage:0,color:"#ffe869"},{percentage:.3,color:"#d9af00"},{percentage:.6,color:"#d37b14"},{percentage:1,color:"#efae00"}]},radius:8},xr=442,yr=266;function _r(e){var n=e.stageSize,t=n.width,a=n.height,i=(0,r.useState)(0),o=(0,ot.Z)(i,2),s=o[0],u=o[1],l=(0,c.v9)((function(e){return e.notificationInfo})),d=(0,Fn.he)("containers.errorPanel.");(0,r.useEffect)((function(){u(t>=1024?1:.7)}),[t]);var m=new fa.pn8({align:"center",fontFamily:"HelveticaNeue-Medium",fontSize:23,fill:["#646464"]}),f=new fa.pn8({align:"center",fontFamily:"HelveticaNeue-Medium",fontSize:23,fill:["#fff"]}),p=new fa.pn8({align:"center",fontFamily:"HelveticaNeue-Medium",fontSize:20,fill:["#0b0b0b"]}),g=Ti({containerWidth:t,containerHeight:a,width:xr,height:yr,scale:s}),h=g.x,v=g.y;return(0,wt.jsxs)(sa.W2,{width:xr*s,height:yr*s,position:[h,v],zIndex:999,children:[(0,wt.jsx)(sa.jy,{width:xr,height:yr,image:hr}),(0,wt.jsx)(sa.jy,{position:[10,14],width:420,height:41,texture:Ba(vr)}),(0,wt.jsxs)(sa.W2,{position:[128,190],eventMode:"static",onpointerdown:function(){Ca.Z.close(),fa.deM.resolver.reset(),fa.deM.cache.reset(),Ea.eq.removeAll(),ft.Z.close()},children:[(0,wt.jsx)(sa.jy,{texture:Ba(br)}),(0,wt.jsx)(sa.xv,{position:[93,27],anchor:.5,text:d("CONFIRM"),style:p})]}),(0,wt.jsx)(sa.xv,{position:[xr/2,28],anchor:.5,text:d("SYSTEM_MESSAGE"),style:m}),(0,wt.jsx)(sa.xv,{position:[xr/2,yr/2],anchor:.5,text:l.msg,style:f})]})}var wr=982;function Tr(e){var n=e.containerScale,t=e.stageSize,a=e.shift,i=(0,c.v9)((function(e){return e.notificationInfo})),o=(0,r.useRef)(null),s=(0,r.useState)(!1),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=(0,r.useRef)(null),f=(0,r.useState)(0),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=g?g+20:100,b={width:wr,height:v,gradientConfig:{x0:0,y0:0,x1:wr,y1:0,gradientColors:[{percentage:0,color:"rgba(0, 0, 0, .2)"},{percentage:.5,color:"rgba(0, 0, 0, 1)"},{percentage:1,color:"rgba(0, 0, 0, .2)"}]}},x=new fa.pn8({align:"center",fontFamily:"Arial-Black",fontSize:56,fill:["#fccb55","#ffbf6e","#ffaf30","#ffbd2f","#ffd041"],stroke:"#f7761d",dropShadow:!0,dropShadowColor:"#340707",dropShadowBlur:5,dropShadowAngle:Math.PI/3,dropShadowDistance:6,strokeThickness:3,wordWrap:!0,wordWrapWidth:wr}),y=Ti({containerWidth:t.width,containerHeight:t.height,scale:n,width:a?982-a.x:982,height:a?100-a.y:100});return(0,r.useEffect)((function(){var e;if(i.show&&(i.type===$t.k9.pixiInfo||i.type===$t.k9.pixiWin))return h((null===(e=m.current)||void 0===e?void 0:e.height)||0),d(!0),o.current=setTimeout((function(){d(!1),Ca.Z.close()}),i.delayClose),function(){o.current&&clearTimeout(o.current)}}),[i]),(0,wt.jsx)(ma.AM,{from:{opacity:0}
1,to:{opacity:1},config:{duration:500},children:function(e){return(0,wt.jsxs)(da.W2,{visible:l,position:y,scale:n,alpha:e.opacity,children:[(0,wt.jsx)(da.jy,{width:wr,height:v,texture:Ba(b)}),(0,wt.jsx)(sa.xv,{ref:m,text:i.msg,position:wi({width:wr,height:v}),anchor:.5,style:x})]})}})}function kr(e){var n=e.stageSize,t=e.containerScale,a=(0,c.v9)((function(e){return e.notificationInfo})),i=a.show&&!!a.msg;return(0,r.useEffect)((function(){return function(){Ca.Z.close()}}),[]),i?(0,wt.jsxs)(wt.Fragment,{children:[a.type===$t.k9.system&&(0,wt.jsx)(_r,{stageSize:n}),(a.type===$t.k9.pixiInfo||a.type===$t.k9.pixiWin)&&(0,wt.jsx)(Tr,{stageSize:n,containerScale:t,shift:a.shift})]}):null}var Ir=t(44686),Cr=t(15663),Er=t.p+"static/media/white-btn-active.d7c633b00f4f4f8b21c1.png",jr=t(84057),Pr=t(68387),Sr=t.p+"static/media/back.64d7bcbf6821dab5d085.png",Nr=new fa.pn8({align:"center",fontFamily:"Impact",fontSize:20,fill:["#363636"],letterSpacing:1.5}),Br=new fa.pn8({align:"center",fontFamily:"Impact",fontSize:20,fill:["#353535"],letterSpacing:1.5}),Ar=new fa.pn8({align:"center",fontFamily:"Impact",fontSize:14,fill:["#fff"],letterSpacing:.75}),Rr=68,Or=45,Mr=0,Zr=0;function Dr(e){var n=e.position,t=void 0===n?{x:0,y:0}:n,a=e.confirmClick,i=e.cancelClick,o=e.numberClick,c=e.backClick,s=e.width,u=e.height,l=e.scale,d=(0,r.useState)(null),m=(0,ot.Z)(d,2),f=m[0],p=m[1],g=[{key:1,value:1},{key:2,value:2},{key:3,value:3},{key:"Confirm",value:(0,Fn.he)("components.calculator.")("confirm")},{key:4,value:4},{key:5,value:5},{key:6,value:6},{key:0,value:0},{key:7,value:7},{key:8,value:8},{key:9,value:9},{key:"x",value:"x"}],h=(0,r.useCallback)((function(e){return{x:e%4*Rr+e%4*Zr,y:Math.floor(e/4)*Or+Math.floor(e/4)*Mr}}),[]),v=Ti({containerWidth:s,containerHeight:u,width:4*Rr,height:3*Or,scale:l});return(0,wt.jsxs)(sa.W2,{scale:l,width:s,height:u,position:t,children:[(0,wt.jsx)(sa.jy,{width:s,height:u,image:Ir}),(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:i,position:[s-50*l,u/2-16],width:32,height:32,image:Vi}
1),(0,wt.jsx)(sa.W2,{scale:l,position:v,pivot:[0,-8],children:g.map((function(e,n){return(0,wt.jsxs)(sa.W2,{eventMode:"static",position:h(n),onpointerdown:function(){return"Confirm"===(n=e.key)?a():"x"===n?c(n):void("string"!=typeof n&&(p(n),o(n)));var n},onpointerup:function(){var n;"Confirm"!==(n=e.value)&&"x"!==n&&p(null)},children:[(0,wt.jsx)(sa.jy,{width:Rr,height:Or,image:(t=e.key,"Confirm"===t?Pr:"x"===t?jr:Cr)}),"number"==typeof e.value&&f===e.value&&(0,wt.jsx)(sa.jy,{position:[5,5],width:Rr-10,height:Or-10,image:Er}),"x"===e.key?(0,wt.jsx)(sa.jy,{position:[Rr/2-14,Or/2-12],width:28,height:24,image:Sr}):(0,wt.jsx)(sa.xv,{text:"".concat(e.value),anchor:.5,position:[Rr/2,Or/2],style:"number"==typeof e.value?f===e.value?Br:Nr:Ar})]},e.key);var t}))})]})}function Lr(e){var n=e.stageSize,t=(0,c.v9)((function(e){return e.calculatorInfo.show})),a=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),i=(0,r.useRef)(null),o=(0,r.useState)(1),s=(0,ot.Z)(o,2),u=s[0],l=s[1],m=n.width;(0,r.useEffect)((function(){l(m>=1200?1.5:1)}),[m]);var f={width:i.current?i.current.clientWidth:366*u,height:i.current?i.current.clientHeight:202*u,options:{backgroundAlpha:0,resizeTo:i.current}};return t&&null!==a?(0,wt.jsx)("div",{style:{width:366*u,height:202*u},ref:i,className:"mini-game-calculator-container",children:(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},f),{},{children:(0,wt.jsx)(Dr,{width:366*u,height:202*u,scale:u,confirmClick:function(){Ea.eq.play("Button",{volume:1}),pi.confirmHandle()},cancelClick:function(){Ea.eq.play("Button",{volume:1}),pi.close()},backClick:function(e){Ea.eq.play("Button",{volume:1}),pi.updateEditAmount(e)},numberClick:function(e){Ea.eq.play("Button",{volume:1}),pi.updateEditAmount("".concat(e))}})}))}):null}var Gr=function(e){var n=e.paddingLeft,t=e.paddingTop,a=e.row,i=void 0===a?6:a,o=e.size,c=void 0===o?20:o,s=e.gap,u=void 0===s?1:s,l=(0,r.useRef)(null),d=1.5*t+i*c;return(0,r.useEffect)((function(){if(l.current){var e=l.current,a=e.getContext("2d");if(a&&(a.clearRect(0,0,e.width,e.height),a.lineWidth=1,a.font="12px Arial",a.textAlign="center",a.textBaseline="middle",u))for(var r=0;r<=i;r++){var o=r*u;a.fillStyle="white",a.fillText("".concat(o),n-c/2,(i-r)*c+t)}}}),[]),(0,wt.jsx)("div",{children:(0,wt.jsx)("canvas",{ref:l,width:n,height:d})})},Wr=function(e){var n=e.numbers,t=e.obj,a=e.row,i=e.size,o=(0,r.useRef)(null),c=(0,r.useRef)(null),s=Math.max.apply(Math,(0,u.Z)(Object.values(t).map((function(e){return e.x}))))+2,l=.5*i,m=0+s*i,f=1.5*l+a*i;return(0,r.useEffect)((function(){if(c.current&&o.current){var e=c.current,n=e.getContext("2d");if(n){n.clearRect(0,0,e.width,e.height),n.lineWidth=2,n.font="".concat(i>20?18:12,"px Arial"),n.textAlign="center",n.textBaseline="middle",Aa(n,a,s,i,"#816b38",0,l),Object.keys(t).forEach((function(e){var a=t[e],r=a.x,o=a.y,c=a.value,s=a.isBig,u=0+i/2+r*i,m=l+i/2+o*i,f=2*i/5,p={ctx:n,x0:u,y0:m,r0:f},g=Na(s?(0,d.Z)((0,d.Z)({},p),{},{gradientColors:[{percentage:0,color:"#505050"},{percentage:1,color:"#212121"}]}):(0,d.Z)((0,d.Z)({},p),{},{gradientColors:[{percentage:0,color:"#ffffff"},{percentage:1,color:"#d1d1d1"}]}));Ra(n,u,m,f,g,s?"#4b4b4b":void 0),n.fillStyle=s?"white":"#242424",n.fillText("".concat(c),u,m+1.5)}));var r=o.current;r.scrollLeft=m-r.clientWidth}}}),[n]),{canvasRef:c,containerRef:o,paddingLeft:0,paddingTop:l,chartWidth:m,chartHeight:f}},Ur=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,t=Math.floor(Math.random()*n)+e;return t>n?n:t},t=[],a=0;a<e;a++)t.push(n());return t},qr=function(e){var n=e.numbers,t=void 0===n?Ur():n,a=e.row,i=void 0===a?6:a,r=e.size,o=void 0===r?20:r,c=e.width,s=void 0===c?500:c,u=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a={},r=function(e,n){return void 0!==a["".concat(e,"-").concat(n)]},o=function(){for(var e=0;r(e,0);)e+=1;return e},c=0,s=0,u=null,l=(0,ha.Z)(e);try{for(l.s();!(n=l.n()).done;){var d=n.value,m=d>10;if(u)for(var f=u>10;r(c,s);)m===f?s<t-1?r(c,s+1)?c+=1:s+=1:c+=1:(s=0,c=o());a["".concat(c,"-").concat(s)]={x:c,y:s,value:d,isBig:m},u=d}}catch(e){l.e(e)}finally{l.f()}return a}(t),l=Wr({numbers:t,obj:u,row:i,size:o}),d=l.canvasRef,m=l.containerRef,f=l.paddingLeft,p=l.paddingTop,g=l.chartWidth,h=l.chartHeight;return(0,wt.jsx)("div",{className:"mini-game-map",children:(0,wt.jsxs)("div",{className:"mini-game-chart",style:{height:h},children:[(0,wt.jsx)(Gr,{paddingTop:p,paddingLeft:f,row:i,size:o,gap:0}),(0,wt.jsx)("div",{ref:m,className:"mini-game-scroll",style:{width:s-f,height:h},children:(0,wt.jsx)("canvas",{ref:d,width:g,height:h})})]})})},zr=function(e){var n=e.numbers,t=void 0===n?Ur():n,a=e.row,i=void 0===a?6:a,r=e.size,o=void 0===r?20:r,c=e.width,s=void 0===c?500:c,u=function(e){var n,t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r={},o=0,c=0,s=(0,ha.Z)(e);try{for(s.s();!(n=s.n()).done;){for(var u=n.value,l=u>10;t=c,void 0!==r["".concat(o,"-").concat(t)];)c<a-1?c+=1:(o+=1,c=0);r["".concat(o,"-").concat(c)]={x:o,y:c,value:u,isBig:l}}}catch(e){s.e(e)}finally{s.f()}return r}(t),l=Wr({numbers:t,obj:u,row:i,size:o}),d=l.canvasRef,m=l.containerRef,f=l.paddingLeft,p=l.paddingTop,g=l.chartWidth,h=l.chartHeight;return(0,wt.jsx)("div",{className:"mini-game-mapFull",children:(0,wt.jsxs)("div",{className:"mini-game-chart",style:{height:h},children:[(0,wt.jsx)(Gr,{paddingTop:p,paddingLeft:f,row:i,size:o,gap:0}),(0,wt.jsx)("div",{ref:m,className:"mini-game-scroll",style:{width:s-f,height:h},children:(0,wt.jsx)("canvas",{ref:d,width:g,height:h})})]})})},Fr=t(75285),Vr=function(e){var n=e.children,t=e.style,a=e.onBack;return(0,wt.jsxs)("div",{className:"mini-game-popup",style:t,children:[(0,wt.jsxs)("div",{className:"mini-game-header",children:[(0,wt.jsx)("div",{className:"mini-game-back-button",onClick:a,children:(0,wt.jsx)("img",{src:Fr,alt:""})}),(0,wt.jsx)("div",{className:"mini-game-header-background"})]}),(0,wt.jsxs)("div",{className:"mini-game-popup-content",children:[(0,wt.jsx)("div",{className:"mini-game-content-border",children:(0,wt.jsx)("div",{className:"mini-game-background"})}),(0,wt.jsx)("div",{className:"mini-game-children",children:n})]})]})},Hr=function(e){var n=e.children,t=e.style,a=e.callback;return(0,wt.jsx)(Vr,{style:t,onBack:function(){return a()},children:n})}
1,Yr=t(43972),Xr=t(2605),Kr=function(e){var n=e.onChange;return(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)("div",{className:"mini-game-arrows",children:[(0,wt.jsx)("div",{className:"mini-game-left",children:(0,wt.jsx)("img",{onClick:n,src:Yr,alt:""})}),(0,wt.jsx)("div",{className:"mini-game-right",children:(0,wt.jsx)("img",{onClick:n,src:Xr,alt:""})})]})})},Qr=function(e){var n=e.width,t=e.scale,a=e.onBack,i=e.onChange,r=(0,c.v9)((function(e){return e.gameDrawHistoryInfo.drawHistory})).slice().reverse().map((function(e){return e.winNo.split("").reduce((function(e,n){return e+Number(n)}),0)})),o=r.reduce((function(e,n){return e+(n>10?1:0)}),0),s=r.reduce((function(e,n){return e+(n<=10?1:0)}),0),u=function(e){var a=e.side,i=(0,Fn.he)("containers.GamesPanel.Taixiu."),r=(n<768?t:n>1024?.8*t:.3)+1,c={backgroundAlpha:0,autoDensity:!0,antialias:!1};if("big"===a){var u=new fa.pn8({align:"center",dropShadow:!0,dropShadowAlpha:.5,dropShadowBlur:5,fill:["#000000","#4d4d4d","#000000"],fillGradientType:1,fillGradientStops:[.1,.6,.9],fontFamily:"Avenir Next",fontWeight:"bold",fontSize:25,fontStyle:"italic",letterSpacing:6,lineJoin:"round",miterLimit:0,padding:20,stroke:"#afb1b0",strokeThickness:7,wordWrapWidth:0}),l={width:(40+7.5*i("big").length)*r,height:30*r};return(0,wt.jsxs)("div",{className:"mini-game-big-side",children:[(0,wt.jsx)(sa.Hf,{width:l.width,height:l.height,options:c,children:(0,wt.jsx)(sa.xv,{anchor:.5,position:[l.width/2,l.height/2],scale:r-.08*i("big").length,text:i("big"),style:u})}),o]})}var d=new fa.pn8({align:"center",dropShadow:!0,dropShadowAlpha:.5,dropShadowBlur:5,fill:["#aaaaaa","#e7e7e7","#aaaaaa"],fillGradientType:1,fillGradientStops:[.1,.6,.9],fontFamily:"Avenir Next",fontWeight:"bold",fontSize:25,fontStyle:"italic",letterSpacing:2,lineJoin:"round",miterLimit:0,padding:20,stroke:"#292828",strokeThickness:7,wordWrapWidth:0}),m={width:(40+7.5*i("small").length)*r,height:30*r};return(0,wt.jsxs)("div",{className:"mini-game-small-side",children:[(0,wt.jsx)(sa.Hf,{width:m.width,height:m.height,options:c,children:(0,wt.jsx)(sa.xv,{anchor:.5,position:[m.width/2,m.height/2],scale:r-.08*i("small").length,text:i("small"),style:d})}),s]})},l=n>1200?30:20;return(0,wt.jsx)("div",{className:"mini-game-maps-popup",children:(0,wt.jsx)(Hr,{callback:a,children:(0,wt.jsxs)("div",{className:"mini-game-maps",children:[(0,wt.jsxs)("div",{className:"mini-game-up",children:[(0,wt.jsx)(u,{side:"big"}),(0,wt.jsx)(qr,{size:l,numbers:r,width:n}),(0,wt.jsx)(u,{side:"small"})]}),(0,wt.jsx)(Kr,{onChange:i}),(0,wt.jsxs)("div",{className:"mini-game-down",children:[(0,wt.jsx)(u,{side:"big"}),(0,wt.jsx)(zr,{size:l,numbers:r,width:n}),(0,wt.jsx)(u,{side:"small"})]})]})})})},Jr=function(e){var n=e.numbers,t=void 0===n?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,t=Math.floor(Math.random()*n)+e;return t>n?n:t},t=[],a=0;a<e;a++)t.push(n());return t}():n,a=e.row,i=void 0===a?6:a,o=e.size,c=void 0===o?20:o,s=e.gap,u=void 0===s?3:s,l=e.width,m=void 0===l?500:l,f=(0,r.useRef)(null),p=(0,r.useRef)(null),g=t.length+1,h=c,v=.5*c,b=1.5*h+g*c,x=1.5*v+i*c;return(0,r.useEffect)((function(){if(p.current&&f.current){var e=p.current,n=e.getContext("2d");if(n){n.clearRect(0,0,e.width,e.height),n.lineWidth=2,n.font="".concat(c>20?18:12,"px Arial"),n.textAlign="center",n.textBaseline="middle",Aa(n,i,g,c,"#816b38",h,v);for(var a=0;a<t.length;a++){var r=t[a];if(a>0){var o=t[a-1],s={x:h+a*c,y:v+(i*u-o)*c/u},l={x:h+(a+1)*c,y:v+(i*u-r)*c/u};Oa(n,s.x,s.y,l.x,l.y)}}for(var m=0;m<t.length;m++){var x=t[m],y=(m+1)*c+h,_=(i*u-x)*c/u+v,w=c/2,T={ctx:n,x0:y,y0:_,r0:w},k=Na(m%2==0?(0,d.Z)((0,d.Z)({},T),{},{gradientColors:[{percentage:0,color:"#505050"},{percentage:1,color:"#212121"}]}):(0,d.Z)((0,d.Z)({},T),{},{gradientColors:[{percentage:0,color:"#ffffff"},{percentage:1,color:"#d1d1d1"}]}));Ra(n,y,_,w,k,m%2==0?"#4b4b4b":void 0),n.fillStyle=m%2==0?"white":"black",n.fillText("".concat(x),y,_+1.5)}var I=f.current;I.scrollLeft=b-I.clientWidth}}}),[t]),(0,wt.jsx)("div",{className:"mini-game-trend",children:(0,wt.jsxs)("div",{className:"mini-game-chart",style:{height:x},children:[(0,wt.jsx)(Gr,{paddingTop:v,paddingLeft:h,row:i,size:c,gap:u}),(0,wt.jsx)("div",{ref:f,className:"mini-game-scroll",style:{width:m,height:x},children:(0,wt.jsx)("canvas",{ref:p,width:b,height:x})})]})})},$r=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=Math.floor(Math.random()*n)+e;return t>n?n:t},t=[],a=0;a<e;a++)t.push(n());return t},eo=function(e){var n=e.numbersArray,t=void 0===n?[$r(),$r(),$r()]:n,a=e.isShowBalls,i=void 0===a?[!0,!0,!0]:a,o=e.colors,c=void 0===o?["green","pink","blue"]:o,s=e.toColors,u=void 0===s?[]:s,l=e.row,m=void 0===l?6:l,f=e.size,p=void 0===f?20:f,g=e.gap,h=void 0===g?1:g,v=e.width,b=void 0===v?500:v,x=(0,r.useRef)(null),y=(0,r.useRef)(null),_=t[0].length+1,w=p,T=.5*p,k=1.5*w+_*p,I=1.5*T+m*p;return(0,r.useEffect)((function(){if(y.current&&x.current){var e=y.current,n=e.getContext("2d");if(n){n.clearRect(0,0,e.width,e.height),n.lineWidth=2,n.font="".concat(p>20?18:12,"px Arial"),n.textAlign="center",n.textBaseline="middle",Aa(n,m,_,p,"#816b38",w,T);for(var a=function(e,t,a){for(var i=0;i<e.length;i++){var r=e[i];if(i>0){var o=e[i-1],c={x:w+i*p,y:T+(m*h-o)*p/h},s={x:w+(i+1)*p,y:T+(m*h-r)*p/h};Oa(n,c.x,c.y,s.x,s.y)}}for(var u=0;u<e.length;u++){var l=e[u],f=(u+1)*p+w,g=(m*h-l)*p/h+T,v=p/3;n.shadowColor="#fff",n.shadowBlur=3;var b={ctx:n,x0:f,y0:g,r0:v},x=t;a&&(x=Na((0,d.Z)((0,d.Z)({},b),{},{gradientColors:[{percentage:0,color:t},{percentage:1,color:a}]}))),Ra(n,f,g,v,x,"white")}n.shadowBlur=0},r=0;r<t.length;r++)i[r]&&a(t[r],c[r],u[r]);var o=x.current;o.scrollLeft=k-o.clientWidth}}}),[t]),(0,wt.jsx)("div",{className:"mini-game-trendEach",children:(0,wt.jsxs)("div",{className:"mini-game-chart",style:{height:I},children:[(0,wt.jsx)(Gr,{paddingTop:T,paddingLeft:w,row:m,size:p,gap:h}),(0,wt.jsx)("div",{ref:x,className:"mini-game-scroll",style:{width:b,height:I},children:(0,wt.jsx)("canvas",{ref:y,width:k,height:I})})]})})},no=t(60250),to=t(90673),ao=function(e){var n=e.ball;switch(n){case"1":return(0,wt.jsx)("div",{className:"mini-game-ball mini-game-green",children:"".concat(n)});case"2":return(0,wt.jsx)("div",{className:"mini-game-ball mini-game-pink",children:"".concat(n)});case"3":return(0,wt.jsx)("div",{className:"mini-game-ball mini-game-blue",children:"".concat(n)})}return null},io=function(e){var n=e.ball,t=e.name,a=e.isSelected,i=e.onClick;return(0,wt.jsxs)("div",{className:"mini-game-ball-checkbox",children:[(0,wt.jsx)(ao,{ball:n}),(0,wt.jsxs)("div",{className:"mini-game-checkbox",onClick:function(){return i(t,!a)},children:[(0,wt.jsx)("img",{src:no,alt:""}),a&&(0,wt.jsx)("img",{src:to,alt:""})]})]})},ro=function(e){var n=e.width,t=e.onBack,a=e.onChange,i=(0,r.useState)({checked1:!0,checked2:!0,checked3:!0}),o=(0,ot.Z)(i,2),s=o[0],u=o[1],m=(0,c.v9)((function(e){return e.gameDrawHistoryInfo.drawHistory})).slice().reverse(),f=m.map((function(e){return e.winNo.split("").reduce((function(e,n){return e+Number(n)}),0)})),p=function(e){return m.map((function(n){var t=n.winNo.split("");return Number(t[e%3])}))},g=[p(0),p(1),p(2)],h=function(e,n){u((function(t){return(0,d.Z)((0,d.Z)({},t),{},(0,l.Z)({},e,n))}
1))},v=function(){return(0,wt.jsx)("div",{className:"mini-game-boxes",children:[1,2,3].map((function(e){var n="checked".concat(e),t="".concat(e);return(0,wt.jsx)(io,{name:n,ball:t,isSelected:s[n],onClick:h},e)}))})},b=n>1200?30:20;return(0,wt.jsx)("div",{className:"mini-game-trend-popup",children:(0,wt.jsx)(Hr,{callback:t,children:(0,wt.jsxs)("div",{className:"mini-game-trends",children:[(0,wt.jsx)(v,{}),(0,wt.jsx)(Jr,{size:b,numbers:f,width:n}),(0,wt.jsx)(Kr,{onChange:a}),(0,wt.jsx)(eo,{size:b,numbersArray:g,width:n,colors:["#83f74f","#f74fa9","#4fa3f7"],toColors:["#0d7619","#7b1095","#1b55c1"],isShowBalls:Object.values(s)})]})})})},oo=function(e){var n=e.width,t=e.scale,a=e.onBack,i=(0,r.useState)(!0),o=(0,ot.Z)(i,2),c=o[0],s=o[1];return(0,wt.jsxs)(wt.Fragment,{children:[c&&(0,wt.jsx)(Qr,{width:n,scale:t,onChange:function(){return s(!1)},onBack:a}),!c&&(0,wt.jsx)(ro,{width:n,onChange:function(){return s(!0)},onBack:a})]})},co=t.p+"static/media/Dice-1.9ce9c4ed7a8bae07b45f.png",so=t.p+"static/media/Dice-2.ae5ca34e232d13678f08.png",uo=t.p+"static/media/Dice-3.fcd2714e620a45f4efd8.png",lo=t.p+"static/media/Dice-4.f342bc660103815abeee.png",mo=t.p+"static/media/Dice-5.acc5bd0609977e43d58c.png",fo=t.p+"static/media/Dice-6.9b233e8032637ae45377.png",po=function(e){var n=e.numero,t=e.winNo.split(""),a=t.reduce((function(e,n){return e+Number(n)}),0),i=a>10,r=function(e){var n=[co,so,uo,lo,mo,fo];return(0,wt.jsx)("img",{src:n[(e-1)%6],alt:""})},o={color:i?"white":"black",backgroundImage:i?"radial-gradient(circle at 50% 50%, #676767, #4a4a4a 71%)":"radial-gradient(circle at 50% 50%, #fff, #bcbcbc 71%)"};return(0,wt.jsxs)("div",{className:"mini-game-history-row",children:[(0,wt.jsx)("div",{className:"mini-game-numero",children:n}),(0,wt.jsx)("div",{className:"mini-game-dice-list",children:t.map((function(e){return(0,wt.jsx)("div",{className:"mini-game-dice",children:r(Number(e))})}))}),(0,wt.jsx)("div",{className:"mini-game-sum-ball",style:o,children:a})]})},go=function(e){var n=e.onBack,t=(0,c.v9)((function(e){return e.gameDrawHistoryInfo.drawHistory})),a=(0,Fn.he)("containers.GamesDrawHistory.");return(0,wt.jsx)("div",{className:"mini-game-draw-history-popup",children:(0,wt.jsx)(Hr,{callback:n,children:(0,wt.jsxs)("div",{className:"mini-game-draw-history",children:[(0,wt.jsx)("div",{className:"mini-game-title",children:a("title")}),(0,wt.jsx)("div",{className:"mini-game-list",children:t.map((function(e){return(0,wt.jsx)("div",{children:po((0,d.Z)({},e))})}))})]})})})},ho=function(e){var n=(0,Fn.he)("containers.GamesIntro."),t=e.onBack;return(0,wt.jsx)("div",{className:"mini-game-intro-popup",children:(0,wt.jsx)(Hr,{callback:t,children:(0,wt.jsxs)("div",{className:"mini-game-intro",children:[(0,wt.jsx)("div",{className:"mini-game-title",children:n("rules")}),(0,wt.jsxs)("ul",{children:[(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{className:"mini-game-spot"}),(0,wt.jsx)("p",{children:n("Taixiu.key1")})]}),(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{className:"mini-game-spot"}),(0,wt.jsx)("p",{children:n("Taixiu.key2")})]}),(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{className:"mini-game-spot"}),(0,wt.jsx)("p",{children:n("Taixiu.key3")})]}),(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{className:"mini-game-spot"}),(0,wt.jsx)("p",{children:n("Taixiu.key4")})]}),(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{className:"mini-game-spot"}),(0,wt.jsx)("p",{children:n("Taixiu.key5")})]}),(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{className:"mini-game-spot"}),(0,wt.jsx)("p",{children:n("Taixiu.key6")})]})]})]})})})},vo=864e5,bo=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),o=(0,r.useState)((function(){var a=new Date;return{gameId:t,size:n,page:0,from:a.setHours(0,0,0,0)-(e===$t.XK.today?0:vo),to:a.setHours(23,59,59,999)-(e===$t.XK.today?0:vo),isOverride:!0}})),s=(0,ot.Z)(o,2),l=s[0],m=s[1],f=(0,r.useState)([]),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,zn.EB)(l),b=v.data,x=v.isFetching,y=v.isError;(0,r.useEffect)((function(){x||(l.isOverride?b&&h(b):b&&b.length&&h((function(e){return[].concat((0,u.Z)(e),(0,u.Z)(b))})))}),[b,x,l.isOverride]),(0,r.useEffect)((function(){var a=new Date;m({gameId:t,size:n,page:0,from:a.setHours(0,0,0,0)-(e===$t.XK.today?0:vo),to:a.setHours(23,59,59,999)-(e===$t.XK.today?0:vo),isOverride:!0})}),[e,t,n]);var _=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(t){var i,r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Array.isArray(b)&&b.length<n||x)){e.next=2;break}return e.abrupt("return");case 2:t.stopPropagation(),i=t.target,r=i.scrollHeight-(i.clientHeight+Math.ceil(i.scrollTop))<10,o=Math.ceil(g.length/n),r&&!x&&o!==l.page&&m((function(e){return(0,d.Z)((0,d.Z)({},e),{},{page:o,isOverride:!1})}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{handleScroll:_,totalBettingOrders:g,isLoading:x,isError:y,handleCancel:function(e){h((function(n){return n.map((function(n){return n.orderDetailId===e?(0,d.Z)((0,d.Z)({},n),{},{orderStatus:8}):n}))}))}}},xo=function(e){var n=e.label,t=e.content;return(0,wt.jsxs)("div",{className:"mini-game-label-contents",children:[(0,wt.jsx)("div",{className:"mini-game-label",children:n}),(0,wt.jsx)("div",{className:"mini-game-contents",children:t})]})},yo=function(e){var n=e.onBack,t=bo($t.XK.today),a=t.totalBettingOrders,i=t.isLoading,r=t.isError,o=(0,Fn.he)("containers.GamesBetHistory.Taixiu.");return(0,wt.jsx)("div",{className:"mini-game-bet-history-popup",children:(0,wt.jsx)(Hr,{callback:n,children:(0,wt.jsxs)("div",{className:"mini-game-bet-history",children:[(0,wt.jsx)("div",{className:"mini-game-title",children:o("title")}),a&&!i&&0===a.length&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:o("no_data")}),r&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:o("isError")}),a&&a.length>0&&(0,wt.jsx)("div",{className:"mini-game-list",children:a.map((function(e,n){return function(e,n){var t=e.bettingTime,a=e.numero,i=e.actualBettingAmount,r=e.planBettingAmount,o=e.playId,c=e.playCode,s=e.bettingContent,u=e.playerOdds,l=e.winningAmou
1nt,d=e.orderStatus,m=new Date(t),f="".concat(m.getFullYear()),p=m.getMonth()+1<10?"0".concat(m.getMonth()+1):"".concat(m.getMonth()+1),g=m.getDate()<10?"0".concat(m.getDate()):"".concat(m.getDate()),h=m.getHours()<10?"0".concat(m.getHours()):"".concat(m.getHours()),v=m.getMinutes()<10?"0".concat(m.getMinutes()):"".concat(m.getMinutes()),b=m.getSeconds()<10?"0".concat(m.getSeconds()):"".concat(m.getSeconds()),x="".concat(f,"-").concat(p,"-").concat(g," ").concat(h,":").concat(v,":").concat(b),y=Number(u)/r;return(0,wt.jsxs)("div",{className:"mini-game-row",children:[(0,wt.jsxs)("div",{className:"mini-game-in-row",children:[(0,wt.jsx)(xo,{label:n("game"),content:(0,Fn.Xm)(o,c,s)}),(0,wt.jsx)("div",{className:"mini-game-time",children:x})]}),(0,wt.jsxs)("div",{className:"mini-game-in-row",children:[(0,wt.jsx)(xo,{label:n("no"),content:a}),(0,wt.jsx)(xo,{label:n("valid_bet"),content:i})]}),(0,wt.jsxs)("div",{className:"mini-game-in-row",children:[(0,wt.jsxs)("div",{className:"mini-game-group",children:[(0,wt.jsx)(xo,{label:n("play"),content:(0,Fn.vM)(o,s)}),(0,wt.jsx)(xo,{label:n("odds"),content:(0,Fn.J6)(y,2)})]}),(0,wt.jsx)(xo,{label:"",content:4===d&&l?"".concat(n("win")," +").concat(l):5===d?n("lose"):"--"})]})]})}((0,d.Z)({},e),o)}))})]})})})};function _o(e){var n=(0,gt.q_)({from:{width:"0%"},to:{width:"".concat(e.progress,"%")}});return(0,wt.jsxs)("div",{className:"mini-game-game-loading-bar",children:[(0,wt.jsx)("div",{className:"mini-game-text",children:"Loading"}),(0,wt.jsxs)("div",{className:"mini-game-progress",children:[(0,wt.jsx)("div",{className:"mini-game-black"}),(0,wt.jsx)(gt.q.div,{className:"mini-game-yellow",style:(0,d.Z)({},n)})]})]})}var wo=function(e){var n=e.progress,t=e.children;return 100===n?(0,wt.jsx)(wt.Fragment,{children:t}):(0,wt.jsx)(_o,{progress:n})},To=(0,r.memo)((function(){var e=(0,r.useState)({width:0,height:0}),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,r.useState)(""),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,c.v9)((function(e){return e.gamePanelInfo})),u=_t(),l=u.sendEvent,d=u.gaEventConfig;return(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),fa.UPD.from("onlineCount",dr(26.5),lr),fa.UPD.from("betAmount",dr(50),lr),fa.UPD.from("balance",mr,lr),fa.deM.addBundle("sounds",ur),Ea.eq.add(ur),e.next=7,fa.deM.load(sr,(function(e){var n;e>=1&&l({action:d.game_loaded,data:{game_code:null===(n=s.info)||void 0===n?void 0:n.gameCode}}),o(100*e)}));case 7:case"end":return e.stop()}}),e)})))()}),[]),t}(),p=(0,r.useRef)(null),g=(0,r.useState)(0),h=(0,ot.Z)(g,2),v=h[0],b=h[1];gr({gameConfig:pt.Z.gameConfig.taixiu});var x=function(){var e=window.innerWidth,n=window.innerHeight;o({width:e,height:n}),b(e/(e>=1024?2400:1150))};(0,r.useEffect)((function(){return window.addEventListener("resize",x),x(),function(){window.removeEventListener("resize",x)}}),[]);var y={width:1136*v,height:870*v,options:{backgroundAlpha:0,autoDensity:!0,antialias:!1}};return(0,wt.jsxs)(wo,{progress:f,children:[(0,wt.jsxs)("div",{style:{width:1136*v,height:870*v},ref:p,className:"mini-game-game-scene-container",children:[(0,wt.jsxs)(la,(0,d.Z)((0,d.Z)({},y),{},{children:[(0,wt.jsx)(er,{stageSize:t,containerScale:v,popName:l,onChartClick:function(){return m("Chart")},onHistoryClick:function(){return m("DrawHistory")},onIntroClick:function(){return m("Intro")},onMyBetClick:function(){return m("BetHistory")}}),(0,wt.jsx)(kr,{stageSize:{width:1136*v,height:870*v},containerScale:v})]})),function(){var e=function(){return m("")};switch(l){case"Chart":return(0,wt.jsx)(oo,{width:t.width,scale:v,onBack:e});case"Intro":return(0,wt.jsx)(ho,{onBack:e});case"DrawHistory":return(0,wt.jsx)(go,{onBack:e});case"BetHistory":return(0,wt.jsx)(yo,{onBack:e});default:return null}}()]}),(0,wt.jsx)(Lr,{stageSize:t})]})})),ko=To,Io=t.p+"static/media/game-logo.3b7bc7986db51a9262ba.png",Co=t.p+"static/media/numero-panel.76f34decbb0754f5dab5.png",Eo=t.p+"static/media/numero-balls-panel.6940450831ad896e3398.png",jo=t.p+"static/media/dice1.59221b9709cfdb3cf6e0.png",Po=t.p+"static/media/dice2.aceb7528c331921a30bf.png",So=t.p+"static/media/dice3.01eeeeb7d4aed50880c8.png",No=t.p+"static/media/dice4.46c96f65d8dec239a893.png",Bo=t.p+"static/media/dice5.6bea951bbf7c861d77c4.png",Ao=t.p+"static/media/dice6.6665d984c4c2ca7f1895.png",Ro=function(){var e=(0,r.useState)(1),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=[jo,Po,So,No,Bo,Ao];return ti((function(){a((0,Fn.sZ)(1,6))}),100),(0,wt.jsx)("div",{className:ut()({"mini-game-dice":!0,"mini-game-dice1":1===t,"mini-game-dice2":2===t,"mini-game-dice3":3===t,"mini-game-dice4":4===t,"mini-game-dice5":5===t,"mini-game-dice6":6===t}),children:i[t-1]&&(0,wt.jsx)("img",{src:i[t-1],alt:""})})},Oo=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.gamePanelInfo.header.numero})),t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers}
1)),a=[jo,Po,So,No,Bo,Ao],i=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),o=t.split(pt.Z.gameConfig.taixiuVN.symbolSplit);return(0,wt.jsxs)("div",{ref:e,className:"mini-game-vn-numero-panel",onClick:pr.open,children:[(0,wt.jsx)("img",{className:"mini-game-numero-panel-bg",src:Co,alt:""}),(0,wt.jsx)("img",{className:"mini-game-numero-balls-panel-bg",src:Eo,alt:""}),(0,wt.jsx)("div",{className:"mini-game-dices",children:o.map((function(e,n){if("?"===e||i===$t.x3.WAIT_DRAW)return(0,wt.jsx)(Ro,{},n);var t=Number(e);return(0,wt.jsx)("div",{className:ut()({"mini-game-dice":!0,"mini-game-dice1":1===t,"mini-game-dice2":2===t,"mini-game-dice3":3===t,"mini-game-dice4":4===t,"mini-game-dice5":5===t,"mini-game-dice6":6===t}),children:a[t-1]&&(0,wt.jsx)("img",{src:a[t-1],alt:""})},n)}))}),(0,wt.jsxs)("div",{className:"mini-game-numero",children:["No.",n]})]})},Mo=t.p+"static/media/intro.58a1fab3e248a94c25fd.png",Zo=t.p+"static/media/record.855fbf1fe310ff5db860.png",Do=t(69265),Lo={open:function(){qn.Z.dispatch(Do.Z.actions.open()),setTimeout((function(){qn.Z.dispatch(Do.Z.actions.setData())}),200)},close:function(){qn.Z.dispatch(Do.Z.actions.close())},changeDate:function(e){qn.Z.dispatch(Do.Z.actions.changeDate(e)),setTimeout((function(){qn.Z.dispatch(Do.Z.actions.setData())}),200)}},Go=t(22615),Wo={open:function(){qn.Z.dispatch(Go.Z.actions.open())},close:function(){qn.Z.dispatch(Go.Z.actions.close())}},Uo=t(73849),qo=function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo})),n=_t().sendEvent;return(0,Fn.Gn)()?null:(0,wt.jsx)("img",{className:ut()("mini-game-menus-btn",{"mini-game-menus-btn-close":!0,"mini-game-is-show-chat-room-enter-button":!Ln.Z.getIsChatRoomEnterButtonHidden()}),src:Uo,alt:"",onClick:function(){var t;n({action:"game_close",data:{game_code:null===(t=e.info)||void 0===t?void 0:t.gameCode}}),ft.Z.close()}})},zo=t.p+"static/media/chat.b31898a2eb78135e9c0c.png",Fo=function(){return Ln.Z.getIsChatRoomEnterButtonHidden()?null:(0,wt.jsx)("img",{className:"mini-game-menus-btn",src:zo,alt:"",onClick:window.openChat})},Vo=function(e){var n=e.gameType,t=(0,r.useRef)(null),a=ut()("mini-game-menus-panel","".concat(pt.Z.classNamePrefix).concat(n));return(0,wt.jsxs)("div",{ref:t,className:a,children:[(0,wt.jsx)("img",{className:"mini-game-menus-btn",src:Zo,alt:"",onClick:Lo.open}),(0,wt.jsx)(Fo,{}),(0,wt.jsx)("img",{className:"mini-game-menus-btn",src:Mo,alt:"",onClick:Wo.open}),(0,wt.jsx)(qo,{})]})},Ho=function(e){var n=e.className,t=e.containerRef,a=e.children,i=(0,r.useState)(0),o=(0,ot.Z)(i,2),c=o[0],s=o[1];return(0,r.useEffect)((function(){if(null!=t&&t.clientWidth&&"string"==typeof a){var e=a.length,n=t.clientWidth*(.3-.01*e);s(n)}}),[t]),t?(0,wt.jsx)("div",{className:n,"data-text":a,style:{fontSize:"".concat(c,"px")},children:a}):null},Yo=r.memo((function(){var e=(0,r.useState)(null),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,r.useRef)(null),o=(0,Fn.he)("containers.GameName.");return(0,wt.jsxs)("div",{className:"mini-game-header",children:[(0,wt.jsx)(Oo,{}),(0,wt.jsxs)("div",{ref:a,className:"mini-game-taixiu-logo",children:[(0,wt.jsx)("img",{className:"mini-game-logo",src:Io,alt:""}),(0,wt.jsx)(Ho,{className:"mini-game-text",containerRef:t,children:o("taixiu")})]}),(0,wt.jsx)("div",{ref:i,className:"mini-game-menus-panel-warp",children:(0,wt.jsx)(Vo,{gameType:"taixiu-vn"})})]})})),Xo=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.VO)(n).data,a=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),i=(0,r.useState)([]),o=(0,ot.Z)(i,2),s=o[0],l=o[1];return(0,r.useEffect)((function(){if(t){var e=(0,u.Z)(t),n=(a===$t.x3.DRAW?e.slice(0,13).map((function(e,n){if(e.winNo.indexOf("x")>-1||e.winNo.indexOf("X")>-1)return(0,d.Z)((0,d.Z)({},e),{},{number:0,isLight:!1});var t=e.winNo.split("").map((function(e){return Number(e)})).reduce((function(e,n){return e+n}));return{numero:e.numero,number:t,isLight:0===n}})):(a===$t.x3.WAIT_DRAW?e.slice(1,13):e.slice(0,13)).map((function(e){if(e.winNo.indexOf("x")>-1||e.winNo.indexOf("X")>-1)return(0,d.Z)((0,d.Z)({},e),{},{number:0,isLight:!1});var n=e.winNo.split(pt.Z.gameConfig.taixiuVN.symbolSplit).map((function(e){return Number(e)})).reduce((function(e,n){return e+n}));return{numero:e.numero,number:n,isLight:!1}}))).reverse();l(n)}}),[t,a]),(0,wt.jsx)("div",{ref:e,className:"mini-game-win-trend",children:s.map((function(e,n){return(0,wt.jsx)("div",{className:ut()({"mini-game-trend-ball":!0,"mini-game-small":e.number<=10,"mini-game-big":e.number>10,"mini-game-light":e.isLight}),children:(0,wt.jsx)("div",{className:"mini-game-border"})},n)}))})},Ko=t.p+"static/media/tai-win.7ca6aa85896c452f54e7.png",Qo=t.p+"static/media/xiu-win.255910203a07880391e6.png",Jo=r.memo((function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers.split(pt.Z.gameConfig.taixiuVN.symbolSplit).map((function(e){return Number(e)})).reduce((function(e,n){return e+n}),0)<=10})),n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=e?Qo:Ko;return n===$t.x3.DRAW?(0,wt.jsx)("div",{className:ut()({"mini-game-bet-blocks-win":!0,"mini-game-xiu":e,"mini-game-tai":!e}),children:(0,wt.jsx)("img",{src:t,alt:""})}):null})),$o=t.p+"static/media/tai.62b4f3440d9d346a69ca.png",ec=t.p+"static/media/xiu.6d2781e0556ec6297060.png",nc=t.p+"static/media/odds.1ed59b6f4279ce6cc9e4.png",tc=t(30208);function ac(e,n,t){var a=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(e)).data,i=(0,r.useState)([]),o=(0,ot.Z)(i,2),s=o[0],u=o[1];return(0,r.useEffect)((function(){var e,i,r,o=(null==a||null===(e=a.playMenuGroups)||void 0===e||null===(i=e.find((function(e){return e.playId===n})))||void 0===i||null===(r=i.playMenus.find((function(e){return e.playId===t})))||void 0===r?void 0:r.playMenuInfos.map((function(e){return e.bonus})))||[];u(o)}),[a,n,t]),{bonusList:s,getBonus:function(e){var i,r,o,c;return(null==a||null===(i=a.playMenuGroups)||void 0===i||null===(r=i.find((function(e){return e.playId===n})))||void 0===r||null===(o=r.playMenus.find((function(e){return e.playId===t})))||void 0===o||null===(c=o.playMenuInfos.find((function(n){return n.playInfoId===e})))||void 0===c?void 0:c.bonus)||0}}}var ic=function(e){var n=e.playInfoId,t=e.groupPlayId,a=e.menuPlayId,i=(0,c.v9)((function(e){return e.gamePanelInfo.info}));return(0,ac(null==i?void 0:i.gameId,t,a).getBonus)(n)},rc=function(e){var n,t=(0,c.v9)((function(e){return e.gamePanelInfo.info})),o=(0,zn.Ed)().data,s=(0,r.useState)(null),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=ic(e);if((0,r.useLayoutEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ln.Z.getPrizeMode();case 2:(n=e.sent)&&d(n);case 4:case"end":return e.stop()}}),e)})))()}),[]),0===m||null===l||"Lott"===l&&!o)return(0,wt.jsx)("span",{className:"mini-game-bonus-block",children:"..."});var f=(null==o||null===(n=o.find((function(e){return e.gameGroup===t.gameGroupCode})))||void 0===n?void 0:n.series)||100;return(0,wt.jsx)("span",{className:"mini-game-bonus-block",children:"Lott"===l?new Ja.Z(m).mul(f).floor().div(100).toNumber():m})},oc=r.memo((function(e){return null===(0,c.v9)((function(e){return e.gamePanelInfo.info}))?(0,wt.jsx)("span",{className:"mini-game-bonus-block"}):(0,wt.jsx)(rc,(0,d.Z)({},e))})),cc=function(e){var n=e.number,t=e.duration,a=void 0===t?200:t,i=e.orderDesc,o=e.textClass,c=(0,r.useState)(0),s=(0,ot.Z)(c,2),u=s[0],l=s[1],m=(0,r.useRef)(null);return(0,r.useEffect)((function(){l(n)}),[n]),(0,r.useEffect)((function(){var e=m.current;if(e){var n="".concat(pt.Z.classNamePrefix,"animatedNumberItem__wrapper_Trans");e.classList.toggle("".concat(n,"0"),0===u),e.classList.toggle("".concat(n,"1"),1===u),e.classList.toggle("".concat(n,"2"),2===u),e.classList.toggle("".concat(n,"3"),3===u),e.classList.toggle("".concat(n,"4"),4===u),e.classList.toggle("".concat(n,"5"),5===u),e.classList.toggle("".concat(n,"6"),6===u),e.classList.toggle("".concat(n,"7"),7===u),e.classList.toggle("".concat(n,"8"),8===u),e.classList.toggle("".concat(n,"9"),9===u)}}),[u]),(0,wt.jsx)("div",{className:"mini-game-animatedNumberItem",children:(0,wt.jsx)("div",{ref:m,className:ut()({"mini-game-animatedNumberItem__wrapper":!0,"mini-game-desc":i}),style:{transitionDuration:"".concat(a,"ms")},children:Array.from({length:10}).map((function(e,n){return(0,wt.jsx)("div",{className:ut()((0,d.Z)({"mini-game-animatedNumberItem__number":!0},o)),children:i?9-n:n},n)}))})})},sc=["value","hasComma","duration","style","className","textClass","orderDesc","minDigits"],uc=function(e){var n=e.value,t=e.hasComma,a=void 0!==t&&t,i=e.duration,o=void 0===i?200:i,c=e.style,s=e.className,u=e.textClass,m=e.orderDesc,f=e.minDigits,p=(0,oa.Z)(e,sc),g=(0,r.useMemo)((function(){var e=String(n).split("").reverse();if("number"==typeof f&&e.length<f){var t=f-e.length;Array.from({length:t}
1).forEach((function(){e.push("0")}))}return e}),[n,f]),h=(0,r.useMemo)((function(){return"-"===g[0]}),[g]),v=(0,r.useMemo)((function(){return g.findIndex((function(e){return"."===e}))}),[g]),b=(0,r.useMemo)((function(){return v>-1?g.length-v:0}),[g,v]),x=s?s.split(" ").reduce((function(e,n){return(0,d.Z)((0,d.Z)({},e),{},(0,l.Z)({},n,!0))}),{}):{},y=u?u.split(" ").reduce((function(e,n){return(0,d.Z)((0,d.Z)({},e),{},(0,l.Z)({},n,!0))}),{}):{};return(0,wt.jsx)("div",(0,d.Z)((0,d.Z)({className:ut()((0,d.Z)({"mini-game-awesomeAnimatedNumber":!0},x)),style:(0,d.Z)({},c)},p),{},{children:g.map((function(e,n){var t=a&&(!b||n<v)&&(b+n)%3==0&&0!==n&&(!h||1!==n);return(0,wt.jsxs)(r.Fragment,{children:[t&&(0,wt.jsx)("div",{className:ut()((0,d.Z)({"mini-game-awesomeAnimatedNumber__text":!0},y)),children:","}),isNaN(Number(e))?(0,wt.jsx)("div",{className:ut()((0,d.Z)({"mini-game-awesomeAnimatedNumber__text":!0},y)),children:e}):(0,wt.jsx)(cc,{number:Number(e),duration:o,orderDesc:m,textClass:y})]},n)}))}))},lc=function(e){var n=e.amount;return(0,wt.jsxs)("div",{className:"mini-game-bet-plus-icon mini-game-subtotal-bet-plus",children:[(0,wt.jsx)("div",{className:"mini-game-plus-icon",children:"+"}),(0,wt.jsx)("div",{className:"mini-game-plus-amount",children:n})]})},dc=pt.Z.gameConfig.taixiuVN.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.taixiuVN.groupPlayId,menuPlayId:e.menuPlayId},n)}))})).flat(),mc=function(e){var n=e.unConfirmSubTotalData,t=e.subTotalsData,a=(0,r.useRef)(null),i=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,o=[$t.x3.BET_NOW,$t.x3.BET_NOW_RED],s=(0,Fn.he)("containers.GamesPanel.");return(0,wt.jsx)("div",{ref:a,className:"mini-game-sub-totals-warp",children:dc.map((function(e,a){return(0,wt.jsxs)("div",{className:"mini-game-sub-total-content",children:[o.includes(i)&&n[e.prizeType]>0&&(0,wt.jsx)(lc,{amount:n[e.prizeType]}),(0,wt.jsxs)("div",{className:"mini-game-total-content",children:[(0,wt.jsx)("img",{className:"mini-game-gold-icon",src:tc,alt:""}),(0,wt.jsx)("div",{className:"mini-game-sum-text",children:(0,wt.jsx)(uc,{value:t[e.prizeType]?t[e.prizeType]:0,hasComma:!0,duration:300,orderDesc:!0,textClass:"".concat(pt.Z.classNamePrefix,"awesomeAnimatedNumberText")})})]}),(0,wt.jsxs)("div",{className:"mini-game-odds",children:[s("odds")," 1:",(0,wt.jsx)(oc,{groupPlayId:e.groupPlayId,menuPlayId:e.menuPlayId,playInfoId:e.playInfoId})]})]},a)}))})},fc=function(){return Math.random()<.5?-1:1},pc={calMoveDistance:function(e){var n=e.currentEl,t=e.targetEl;if(n&&t){var a=(0,Fn.bt)(n),i=(0,Fn.bt)(t);return i.x=i.x+Math.floor(t.clientWidth/2)-Math.floor(n.clientWidth/2),{moveX:Math.floor(i.x-a.x),moveY:Math.floor(i.y-a.y)}}return{moveX:0,moveY:0}},getRandomPlace:function(e,n){var t=n||30;if(e){var a=e.clientWidth/2-t/2,i=e.clientHeight/2-t/3;return{moveX:Math.floor(a+(0,Fn.sZ)(0,a-10)*fc()),moveY:Math.floor(i+(0,Fn.sZ)(0,i-10)*fc())}}return{moveX:0,moveY:0}}},gc=pc,hc=r.memo((function(e){var n=e.styleIndex,t=e.extraClass,a=e.amount,i=e.handleClick,o=e.active,c=e.isEdit,s=e.isSmallChip,u=e.flyTarget,l=e.botBetFrom,m=e.moveX,f=e.moveY,p=(0,r.useRef)(null),g=(0,r.useState)((function(){return!l&&m&&f?{transform:"translate(".concat(m,"px, ").concat(f,"px)")}:{}})),h=(0,ot.Z)(g,2),v=h[0],b=h[1],x=(0,r.useState)(!l),y=(0,ot.Z)(x,2),_=y[0],w=y[1],T=(0,r.useState)(!1),k=(0,ot.Z)(T,2),I=k[0],C=k[1],E=String(a).split(""),j=function(){var e=E.length;if(e>=6)return{width:5,height:9};var n=6-e+(s?3:5)+(o?4-e:0);return{width:n,height:n+4}},P=["chip",s?"chip-".concat(n,"-small"):"chip-".concat(n)];return s&&P.push("chip-small"),o&&P.push("selected"),(u||I)&&P.push("fly-chip"),t&&P.push(t),(0,r.useLayoutEffect)((function(){if(l){var e=p.current?gc.calMoveDistance({currentEl:p.current,targetEl:document.querySelector(l)}):null;e&&(b((function(n){return(0,d.Z)((0,d.Z)({},n),{},{transform:"translate(".concat(e.moveX,"px, ").concat(e.moveY,"px)")})})),w(!0))}}),[p]),(0,r.useLayoutEffect)((function(){if(u){var e=p.current&&u?gc.calMoveDistance({currentEl:p.current,targetEl:document.querySelector(u)}):null;e&&b((function(n){return(0,d.Z)((0,d.Z)({},n),{},{transform:"translate(".concat(e.moveX,"px, ").concat(e.moveY,"px)")})}))}}),[u]),(0,r.useLayoutEffect)((function(){void 0!==f&&void 0!==m&&l&&_&&setTimeout((function(){C(!0),b((function(e){return(0,d.Z)((0,d.Z)({},e),{},{transform:"translate(".concat(m,"px, ").concat(f,"px)")})}))}),20)}),[_]),(0,wt.jsx)("div",{ref:p,className:P.map((function(e){return"".concat(pt.Z.classNamePrefix).concat(e)})).join(" "),style:v,onClick:i,children:_&&(0,wt.jsxs)(wt.Fragment,{children:[c&&o&&0===a&&(0,wt.jsx)("div",{className:"mini-game-please-input",children:"0"}),c&&o&&0!==a&&(0,wt.jsx)("div",{className:"mini-game-white-input",children:(0,wt.jsx)("div",{className:"mini-game-text",children:a})}),!c&&(0,wt.jsx)("div",{className:"mini-game-text-wrap",children:E.map((function(e,n){var t=["text-pic","pic-".concat(e),o?"selected":""];return(0,wt.jsx)("div",{className:t.map((function(e){return"".concat(pt.Z.classNamePrefix).concat(e)})).join(" "),style:j()},n)}))})]})})})),vc=r.memo((function(e){var n=e.color,t=void 0===n?"#646363":n,a=e.style,i=void 0===a?{}:a,r=e.className,o=void 0===r?"":r;return(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13.157",height:"13.158",viewBox:"0 0 13.157 13.158",style:i,className:o,children:(0,wt.jsxs)("g",{transform:"translate(0.849 12.309) rotate(-90)",children:[(0,wt.jsx)("line",{fill:"none",stroke:t,strokeLinecap:"square",strokeWidth:"1.2px",x2:"11.46",y2:"11.46",transform:"translate(0)"}),(0,wt.jsx)("line",{fill:"none",stroke:t,strokeLinecap:"square",strokeWidth:"1.2px",x1:"11.46",y2:"11.46",transform:"translate(0 0)"})]})})})),bc=vc,xc=r.memo((function(e){var n=e.color,t=void 0===n?"#fff":n;return(0,wt.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"redo-alt",className:"mini-game-refresh-icon",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,wt.jsx)("path",{fill:t,d:"M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678
1110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"})})})),yc=xc,_c=r.memo((function(e){var n=e.color,t=void 0===n?"#08c05f":n;return(0,wt.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)("path",{fill:t,fillRule:"evenodd",d:"M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.236.236 0 0 1 .02-.022z"})})})),wc=_c,Tc=function(e){var n=e.clearChip,t=e.handlePrevBet,a=e.betConfirm,i=["operate-btns",e.position||"center"];return(0,wt.jsxs)("ul",{className:i.map((function(e){return"".concat(pt.Z.classNamePrefix).concat(e)})).join(" "),children:[(0,wt.jsx)("li",{className:"mini-game-clear-btn",onClick:n,children:(0,wt.jsx)(bc,{color:"#FFF"})}),(0,wt.jsx)("li",{className:"mini-game-refresh-btn",onClick:t,children:(0,wt.jsx)(yc,{color:"#FFF"})}),(0,wt.jsx)("li",{className:"mini-game-confirm-btn",onClick:a,children:(0,wt.jsx)(wc,{color:"#FFF"})})]})},kc=function(e){var n=(0,Fn.he)("containers.GamesPanel."),t=e.targetDivRef,a=e.gameConfig,i=e.handleToBettingCondition,o=e.getWinPrizeType,s=e.doSameTotalAmount,m=a.menuInfos.map((function(e){return e.playInfos.map((function(e){return e.prizeType}))})).flat(),f=m.reduce((function(e,n){return(0,d.Z)((0,d.Z)({},e),{},(0,l.Z)({},n,0))}),{}),p=(0,r.useState)([]),g=(0,ot.Z)(p,2),h=g[0],v=g[1],b=(0,r.useState)([]),x=(0,ot.Z)(b,2),y=x[0],_=x[1],w=(0,r.useState)(!1),T=(0,ot.Z)(w,2),k=T[0],I=T[1],C=(0,r.useState)(null),E=(0,ot.Z)(C,2),j=E[0],P=E[1],S=(0,r.useState)(f),N=(0,ot.Z)(S,2),B=N[0],A=N[1],R=(0,r.useState)(f),O=(0,ot.Z)(R,2),M=O[0],Z=O[1],D=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),L=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),G=(0,c.v9)((function(e){return e.gamePanelInfo.type})),W=(0,c.v9)((function(e){return e.gamePanelInfo})),U=W.drawState,q=W.customerProfit,z=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),F=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),V=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(D)).data,H=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(D)).data,Y=(0,zn.De)(),X=Y.data,K=Y.refetch,Q=X?X.availBalance:0,J=(0,zn.ip)(D).data,$=(0,zn.hE)(),ee=(0,ot.Z)($,2),ne=ee[0],te=ee[1],ae=(0,r.useRef)(null),ie=_t(),re=ie.sendEvent,oe=ie.handleRemindMarkBetGa,ce=ie.gaEventConfig,se=function(e,n,t){return e.filter((function(e){var a="unConfirm"===n&&!e.hasConfirm||"confirm"===n&&e.hasConfirm||"betting"===n&&e.hasBetting||"confirmAndBetting"===n&&(e.hasBetting||e.hasConfirm);return t?a&&e.prizeType===t:a})).reduce((function(e,n){return e+n.amount}),0)},ue=function(e){null==e||e.stopPropagation(),null==e||e.preventDefault(),v((function(e){return e.filter((function(e){return e.hasConfirm}))})),P(null)};return(0,r.useEffect)((function(){if(te.isUninitialized);else if(te.isLoading)Ca.Z.show($t.k9.info2,n("betting"),8e3,!1);else if(te.isSuccess){var e=te.data.value.reduce((function(e,n){return e+n.totalBettingAmount}),0)/(V?V.singleBetPrice:1);Ca.Z.show($t.k9.info,n("bettingSuccess",{totalBettingAmount:e})),v((function(e){var n="",t=e.map((function(e){return e.hasBetting?(n=e.numero,(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!0})):e}));return(0,Fn.tG)(!1,"".concat(D,"-betChips"),{numero:n,data:t}),t})),K()}else if(te.isError&&te.error){var t,i,r,o,c=(null===(t=te.error)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.errorCode)||!1,s=(null===(r=te.error)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.message)||"";switch(ue(),c){case"BETTING_TABLE_GAME_AMOUNT_LESS_LIMITS_ERROR":case"BETTING_TABLE_GAME_AMOUNT_OVER_LIMITS_ERROR":var u=function(e){var n=e.split(" "),t=n.indexOf("id");if(t<0)return!1;for(var a=0,i=n.slice(t),r=0;r<i.length;r++){var o=Number(i[r]);if(o&&"number"==typeof o){a=o;break}}return a}(s),l="",m=0,f=0;if(u){var p,g,h=function(e,n){var t={menuPlayId:0,betContent:""};return e.menuInfos.forEach((function(e){e.playInfos.forEach((function(a){a.playInfoId===n&&(t.menuPlayId=e.menuPlayId,t.betContent=a.betContent)}))}
1)),t}(a,u),b=h.menuPlayId,x=h.betContent,y=H?null===(p=H.playMenuGroups.find((function(e){return e.playId===a.groupPlayId})))||void 0===p||null===(g=p.playMenus.find((function(e){return e.playId===b})))||void 0===g?void 0:g.playMenuInfos.find((function(e){return e.playInfoId===u})):null;m=y?y.betAmountMaxLimitByNumero:0,f=y?y.betAmountMinLimit:0,l="baucua"===G?n("Baucua.game_name"):(0,Fn.vM)(b,x)}Ca.Z.show($t.k9.warn,n("BET_LIMIT",{playName:l,rangeStr:(0,Fn.sE)(f,m)}));break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":var _=V||{},w=_.betAmountMaxByNumero,T=void 0===w?0:w,k=_.betAmountMax,I=void 0===k?0:k,C=/numero:.*.cumulative amount:/g.test(s)?T:I;Ca.Z.show($t.k9.warn,n("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:C}));break;case"BETTING_MULTIPLE_OVER_LIMITS_ERROR":Ca.Z.show($t.k9.warn,n("BETTING_MULTIPLE_OVER_LIMITS_ERROR"));break;case"BALANCE_NOT_ENOUGH_ERROR":case"BALANCE_NOT_ENOUGH":Ca.Z.show($t.k9.warn,n("BALANCE_NOT_ENOUGH"));break;case"PLAYID_CLOSED":Ca.Z.show($t.k9.warn,n("PLAYID_CLOSED"));break;case"PARAMETER_REQUIRED":case"API_PARAMETER_REQUIRED":Ca.Z.show($t.k9.warn,n("PARAMETER_REQUIRED"));break;case"IS_LOCK_TIME":Ca.Z.show($t.k9.warn,n("IS_LOCK_TIME"));break;default:Ca.Z.show($t.k9.warn,n("SYSTEM_ERROR"))}}else ue(),Ca.Z.show($t.k9.warn,n("SYSTEM_ERROR"))}),[te]),(0,r.useEffect)((function(){U===$t.x3.DRAW?(K(),setTimeout((function(){var e,n,t,a;e=qn.Z.getState().gamePanelInfo.header.drawNumbers,n=o(e),t=".".concat(pt.Z.classNamePrefix,"user-balance"),a=".".concat(pt.Z.classNamePrefix,"logo"),v((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{flyTarget:n.indexOf(e.prizeType)>-1?t:a})}))})),_((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{flyTarget:n.indexOf(e.prizeType)>-1&&e.botBetFrom?e.botBetFrom:a})}))})),setTimeout((function(){I(!0),q>0&&Ca.Z.show($t.k9.win,"YOU WIN +".concat(q))}),1e3)}),2e3)):U===$t.x3.BET_NOW&&(I(!1),v([]),_([]),A(f),Z(f)),U===$t.x3.BET_LOCKED&&(P(null),v((function(e){var t=e.filter((function(e){return e.hasConfirm}));ae.current=JSON.parse(JSON.stringify(t));var a=se(e,"confirm");return a>0&&Ca.Z.show($t.k9.info,"".concat(n("totalBet")," : ").concat(a)),e})),s&&Z((function(e){var n=Math.min.apply(Math,(0,u.Z)(Object.values(e)));return m.reduce((function(e,t){return(0,d.Z)((0,d.Z)({},e),{},(0,l.Z)({},t,n))}),{})})))}),[U]),(0,r.useEffect)((function(){var e=(0,Fn.mk)(!1,"".concat(D,"-betChips"));e&&e.data&&e.numero&&e.numero===(null==J?void 0:J.currentNumero.numero)?!h.length&&e.data.length>0&&v(e.data):(0,Fn.HB)(!1,"".concat(D,"-betChips"))}),[J,h]),(0,r.useEffect)((function(){var e=(0,Fn.Wf)();e&&at.subscribeUserChannel(e,(function(e){var n=JSON.parse(e).content,t=/^LGSBALANCE_(\w+)_\d+_\d+_(-?\d+(.\d+)?)$/g.exec(n);if(null!==t){var a=(0,ot.Z)(t,3),i=a[1],r=a[2];if(i!==L)return;ft.Z.updateCustomerProfit(Number(r))}}));var n=(0,Fn.Z_)();return at.subscribeGameBotBet(n,(function(e){var n,a=JSON.parse(e),i=null===(n=qn.Z.getState().gamePanelInfo.info)||void 0===n?void 0:n.gameCode;if(a.gameCode===i){var r=qn.Z.getState().gamePanelInfo.drawState;if(!r||![$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(r))return;var o=a.gameBotPlayTOList,c=function e(n){var a=n.prizeType,i=n.totalAmount,r=n.randomCount,o=n.delay,c=r>0&&i>50?(0,Fn.sZ)(50,i):i;i-=c;var s=(0,d.Z)({numero:null==J?void 0:J.currentNumero.numero,playId:0,playInfoId:0,prizeType:a,betContent:"",amount:c,styleIndex:(0,Fn.sZ)(0,5),hasConfirm:!1,botBetFrom:".".concat(pt.Z.classNamePrefix,"other-users")},gc.getRandomPlace(t.current[a]));_((function(e){return[].concat((0,u.Z)(e),[s])})),r>=0&&i>0&&setTimeout((function(){e({prizeType:a,totalAmount:i,delay:o,randomCount:r-1})}),o)};Z((function(e){for(var n=0;n<o.length;n++){var t=o[n],a=t.prizeType,i=t.totalBetAmount;if(void 0!==e[a]){var r=i-e[a];if(e[a]=i,r>0){var s=(0,Fn.sZ)(0,20);c({prizeType:a,totalAmount:r,randomCount:s,delay:2e3/s})}}}return(0,d.Z)({},e)})),A((function(e){for(var n=0;n<o.length;n++){var t=o[n],a=t.prizeType,i=t.totalBetCount;void 0!==e[a]&&(e[a]=i)}return(0,d.Z)({},e)}))}})),function(){at.unsubscribeUserChannel(),at.unsubscribeGameBotBet(n)}}),[]),{hiddenChips:k,selectedBlock:j,betChips:h,botBetChips:y,getSubTotal:se,handleToBetting:function(e,a){if(!te.
1isLoading&&U&&[$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(U))if(se(h,"unConfirm")+z>Q)Ca.Z.show($t.k9.info2,n("BALANCE_NOT_ENOUGH"));else if(!i||i(h,a)){var r=a.prizeType,o=a.betContent,c=a.playInfoId;P(r),v((function(n){return[].concat((0,u.Z)(n),[(0,d.Z)({numero:null==J?void 0:J.currentNumero.numero,playId:e,playInfoId:c,prizeType:r,betContent:o,amount:z,styleIndex:F,hasConfirm:!1},gc.getRandomPlace(t.current[r]))])}))}},clearChip:ue,handlePrevBet:function(e){var n,t;null==e||e.stopPropagation(),ae.current&&ae.current.length&&(h.find((function(e){return e.hasConfirm}))||(P(ae.current[(null===(n=ae.current)||void 0===n?void 0:n.length)-1].prizeType),v(null===(t=ae.current)||void 0===t?void 0:t.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})})))))},betConfirm:function(e){if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!te.isLoading){re({action:ce.game_betting,data:{game_code:L}}),oe();var n=function(){for(var e=h.filter((function(e){return!e.hasConfirm})),n={},t=[],a=0;a<e.length;a++){var i="".concat(e[a].playId,"-").concat(e[a].betContent);n[i]||(n[i]=[]),n[i].push(e[a])}return Object.keys(n).forEach((function(e){t.push({playId:n[e][0].playId,bettingString:n[e][0].betContent,singleBetPrice:null==V?void 0:V.singleBetPrice,amount:n[e].reduce((function(e,n){return e+n.amount}),0)})})),{orders:t}}().orders.map((function(e){var n=e.playId,t=e.bettingString,a=e.singleBetPrice,i=e.amount;return{gameId:D,playId:n,bettingApproach:1,bettingSlip:null,bettingContent:t,singleBetPrice:a,winStop:!1,numero:[{numero:null==J?void 0:J.currentNumero.numero,multiple:i}]}}));v((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasBetting:!0})}))})),ne(n),P(null)}},userQtysData:B,totalAmountData:M}},Ic=r.memo((function(e){var n=e.color,t=void 0===n?"#fff":n,a=e.className;return(0,wt.jsx)("svg",{className:a,width:"8px",height:"8px",viewBox:"0 0 8 8",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,wt.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,wt.jsx)("g",{transform:"translate(-85.000000, -569.000000)",fillRule:"nonzero",children:(0,wt.jsx)("g",{transform:"translate(10.000000, 558.000000)",children:(0,wt.jsx)("g",{transform:"translate(4.000000, 4.000000)",children:(0,wt.jsxs)("g",{transform:"translate(71.000000, 7.000000)",children:[(0,wt.jsx)("path",{d:"M4,2.25 C4,2.94035594 4.55964406,3.5 5.25,3.5 C5.94035594,3.5 6.5,2.94035594 6.5,2.25 C6.5,1.55964406 5.94035594,1 5.25,1 C4.55964406,1 4,1.55964406 4,2.25 Z",fill:"#B5B5B5"}),(0,wt.jsx)("path",{d:"M7.09375,7 L3.90625,7 C3.40520833,7 3,6.59375 3,6.09375 C3,4.9375 3.9375,4 5.09375,4 L5.90625,4 C7.0625,4 8,4.9375 8,6.09375 C8,6.59375 7.59375,7 7.09375,7 Z",fill:"#B5B5B5"}),(0,wt.jsx)("path",{d:"M1.5,1.75 C1.5,2.37521479 1.8335481,2.95293709 2.37499999,3.26554449 C2.91645188,3.57815189 3.58354812,3.57815189 4.12500001,3.26554449 C4.6664519,2.95293709 5,2.37521479 5,1.75 C5,0.783501688 4.21649831,-7.57912251e-16 3.25,-7.57912251e-16 C2.28350169,-7.57912251e-16 1.5,0.783501688 1.5,1.75 L1.5,1.75 Z",fill:t}),(0,wt.jsx)("path",{d:"M5.31458333,8 L1.18541667,8 C0.53125,8 0,7.46875 0,6.81458333 C0,5.26041667 1.26041667,4 2.81458333,4 L3.68541667,4 C5.23958333,4 6.5,5.26041667 6.5,6.81458333 C6.5,7.46875 5.96875,8 5.31458333,8 Z",fill:t})]})})})})})})})),Cc=Ic,Ec=function(e){var n=e.userQtysData,t=(0,r.useRef)(null);return(0,wt.jsxs)("div",{ref:t,className:"mini-game-user-qtys-warp",children:[(0,wt.jsxs)("div",{className:"mini-game-left",children:[(0,wt.jsx)(Cc,{className:"mini-game-user-icon"}),(0,wt.jsx)("div",{className:"mini-game-qty",children:(0,wt.jsx)(uc,{value:n[pt.Z.gameConfig.taixiuVN.menuInfos[0].playInfos[0].prizeType],hasComma:!0,duration:800,orderDesc:!0})})]}),(0,wt.jsxs)("div",{className:"mini-game-right",children:[(0,wt.jsx)(Cc,{className:"mini-game-user-icon"}),(0,wt.jsx)("div",{className:"mini-game-qty",children:(0,wt.jsx)(uc,{value:n[pt.Z.gameConfig.taixiuVN.menuInfos[0].playInfos[1].prizeType],hasComma:!0,duration:800,orderDesc:!0})})]})]})},jc=pt.Z.gameConfig.taixiuVN,Pc=pt.Z.gameConfig.taixiuVN.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.taixiuVN.groupPlayId,menuPlayId:e.menuPlayId,className:"big"===n.key?"tai":"xiu",oddsIcon:nc,bg:"big"===n.key?$o:ec,oddsText:"big"===n.key?"11 ~ 17":"4 ~ 10"},n)}))})).flat(),Sc=Pc.find((function(e){return"small"===e.key})),Nc=Pc.find((function(e){return"big"===e.key})),Bc=function(e){var n=e.split(jc.symbolSplit).map((function(e){return Number(e)})).reduce((function(e,n){return e+n}),0)<=10?Sc:Nc;return n?[n.prizeType]:[]},Ac=function(){var e,n,t=(0,Fn.he)("containers.GameBetting."),a=(0,Fn.he)("containers.GamesPanel.Taixiu."),i=(0,r.useRef)({}),o=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,s=[$t.x3.BET_LOCKED,$t.x3.WAIT_DRAW,$t.x3.DRAW],u=kc({targetDivRef:i,gameConfig:jc,handleToBettingCondition:function(e,n){return!e.find((function(e){return e.prizeType!==n.prizeType}))||(Ca.Z.show($t.k9.warn,a("CAN_NOT_BET_ON_DIFFERENT_AREAS")),!1)},getWinPrizeType:Bc,doSameTotalAmount:!0,gameKey:$t.gV.taixiu}),d=u.hiddenChips,m=u.selectedBlock,f=u.betChips,p=u.botBetChips,g=u.userQtysData,h=u.totalAmountData,v=u.getSubTotal,b=u.handleToBetting,x=u.clearChip,y=u.handlePrevBet,_=u.betConfirm;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Ec,{userQtysData:g}),(0,wt.jsx)(mc,{unConfirmSubTotalData:(e={},(0,l.Z)(e,(null==Nc?void 0:Nc.prizeType)||"",v(f,"unConfirm",null==Nc?void 0:Nc.prizeType)),(0,l.Z)(e,(null==Sc?void 0:Sc.prizeType)||"",v(f,"unConfirm",null==Sc?void 0:Sc.prizeType)),e),subTotalsData:(n={},(0,l.Z)(n,(null==Nc?void 0:Nc.prizeType)||"",v(f,"confirm",null==Nc?void 0:Nc.prizeType)),(0,l.Z)(n,(null==Sc?void 0:Sc.prizeType)||"",v(f,"confirm",null==Sc?void 0:Sc.prizeType)),n)}),Pc.map((function(e,n){return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix,"bet-block-content ").concat(pt.Z.classNamePrefix).concat(e.className),children:[(0,wt.jsxs)("div",{className:"mini-game-odds",children:[(0,wt.jsx)("img",{className:"mini-game-odds-icon",src:e.oddsIcon,alt:""}),e.oddsText]}),(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"bet-block-label ").concat(pt.Z.classNamePrefix).concat(e.className),"data-text":t(e.className),children:t(e.className)}),(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"users-amount ").
1concat(pt.Z.classNamePrefix).concat(e.className),children:(0,wt.jsx)(uc,{value:h[e.prizeType],hasComma:!0,duration:800,orderDesc:!0})}),(0,wt.jsxs)("div",{className:"mini-game-chip-block",onClick:function(){return b(e.menuPlayId,e)},ref:function(n){return i.current[e.prizeType]=n},children:[!d&&p.length?p.filter((function(n){return n.prizeType===e.prizeType})).map((function(e,n){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,extraClass:"".concat((0,Fn.jd)(o)),moveX:e.moveX,moveY:e.moveY,botBetFrom:e.botBetFrom,flyTarget:e.flyTarget},n)})):null,!d&&f.length?f.filter((function(n){return n.prizeType===e.prizeType})).filter((function(e){return!s.includes(o)||e.hasConfirm})).map((function(e,n){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,flyTarget:e.flyTarget,moveX:e.moveX,moveY:e.moveY},n)})):null]}),m&&m===e.prizeType&&(0,wt.jsx)(Tc,{clearChip:x,handlePrevBet:y,betConfirm:_,position:(a=e.prizeType,a===(null==Nc?void 0:Nc.prizeType)?"left":"right")})]},n);var a}))]})},Rc=function(){return(0,wt.jsxs)("div",{className:"mini-game-bet-blocks-warp",children:[(0,wt.jsx)(Jo,{}),(0,wt.jsx)(Ac,{})]})},Oc=t(49461),Mc=t.n(Oc),Zc=t.p+"static/media/bet-now-green-text.8bca726f20ee04dc88de.png",Dc=t.p+"static/media/bet-now-green.b3b78523a2f6c46d11cb.png",Lc=t.p+"static/media/bet-now-red-text.88be154c2228632cc8a4.png",Gc=t.p+"static/media/bet-now-red.12391060afe2aeef762b.png",Wc=t.p+"static/media/bet-lock-text.9a73c0d3505faecf9963.png",Uc=t.p+"static/media/bet-lock.4cdf7943261733d05dce.png",qc=t.p+"static/media/next-round-text.89bb71c2a40eb0659892.png",zc=t.p+"static/media/next-round.cc5cc8e24510678187dc.png",Fc=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,r.useRef)(null);return(0,r.useEffect)((function(){n===$t.x3.WAIT_DRAW&&(t.current=(new Date).valueOf()+1e3*pt.Z.gameConfig.taixiuVN.timeSetting.NEXT_ROUND_TIME)}),[n]),ti((function(){if(n&&[$t.x3.WAIT_DRAW,$t.x3.DRAW].includes(n)&&e.current){var a=(0,Fn.v)(0,t.current);e.current.innerText=n===$t.x3.WAIT_DRAW&&a>5||a<=0?"":String(a)}}),200),(0,wt.jsxs)("div",{className:"mini-game-count-down-bg",children:[(n===$t.x3.DRAW||n===$t.x3.WAIT_DRAW)&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-bg",src:zc,alt:""}),(0,wt.jsx)("img",{className:"mini-game-text",src:qc,alt:""}),(0,wt.jsx)("div",{className:"mini-game-count-down-text",ref:e})]}),n===$t.x3.BET_NOW&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-bg",src:Dc,alt:""}),(0,wt.jsx)("img",{className:"mini-game-text",src:Zc,alt:""})]}),n===$t.x3.BET_NOW_RED&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-bg",src:Gc,alt:""}),(0,wt.jsx)("img",{className:"mini-game-text",src:Lc,alt:""})]}),n===$t.x3.BET_LOCKED&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-bg",src:Uc,alt:""}),(0,wt.jsx)("img",{className:"mini-game-text",src:Wc,alt:""})]})]})},Vc=t.p+"static/media/arrow-up.86d48f173dce40d172af.png",Hc=t.p+"static/media/finger.8e6aaabd7bd5d2166854.png",Yc=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),a=si(n).data,i=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),o=((0,zn.VO)(n).data,(0,r.useState)(!1)),s=(0,ot.Z)(o,2),u=s[0],l=s[1];ti((function(){if(a&&e.current&&t&&[$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(t)){var n=(0,Fn.v)(a.currentNumero.lockTime,a.currentNumero.remainDrawTime);e.current.innerText=n<=0?"":String(n)}else e.current.innerText=""}),250);var m={onStart:function(){l(!1)},onDrag:function(e,n){},onStop:function(e){t===$t.x3.WAIT_DRAW&&ft.Z.updateDrawState($t.x3.DRAW)}};return(0,r.useEffect)((function(){t===$t.x3.WAIT_DRAW&&l(!0),t===$t.x3.DRAW&&l(!1)}),[t]),(0,wt.jsx)("div",{style:t!==$t.x3.WAIT_DRAW?{pointerEvents:"none"}:{},className:ut()({"mini-game-bet-dice-cup-warp":!0}),children:(0,wt.jsxs)("div",{className:ut()({"mini-game-bet-dice-cup":!0,"mini-game-BET_LOCKED":t===$t.x3.BET_LOCKED,"mini-game-DRAW":t===$t.x3.DRAW}),children:[(0,wt.jsx)(Fc,{}),(0,wt.jsx)("div",{className:"mini-game-cup-base",children:i&&!i.includes("?")?i.split(pt.Z.gameConfig.taixiuVN.symbolSplit).map((function(e,n){var t=Number(e);return(0,wt.jsx)("div",{className:ut()({"mini-game-dice":!0,"mini-game-dice-1":1===t,"mini-game-dice-2":2===t,"mini-game-dice-3":3===t,"mini-game-dice-4":4===t,"mini-game-dice-5":5===t,"mini-game-dice-6":6===t,"mini-game-dice-position-0":0===n,"mini-game-dice-position-1":1===n,"mini-game-dice-position-2":2===n})},n)})):null}),(0,wt.jsx)(Mc(),(0,d.Z)((0,d.Z)({disabled:t!==$t.x3.WAIT_DRAW,position:{x:0,y:0}
1,bounds:{top:-40,left:-40,right:40,bottom:40}},m),{},{children:(0,wt.jsxs)("div",{className:"mini-game-cup",children:[(0,wt.jsx)("div",{ref:e,className:"mini-game-count-down"}),u&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-finger-icon",src:Hc,alt:"icon"}),(0,wt.jsx)("img",{className:"mini-game-arrow-icon",src:Vc,alt:"icon"})]})]})}))]})})},Xc=r.memo((function(){var e=(0,r.useRef)(null);return(0,wt.jsxs)("div",{ref:e,className:"mini-game-bet-board",children:[(0,wt.jsx)(Rc,{}),(0,wt.jsx)(Yc,{}),(0,wt.jsx)(Xo,{})]})})),Kc=r.memo((function(e){var n=e.color,t=void 0===n?"#000":n;return(0,wt.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"backspace",className:"mini-game-svg-inline--fa mini-game-fa-backspace mini-game-fa-w-20",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,wt.jsx)("path",{fill:t,d:"M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"})})})),Qc=Kc,Jc=r.memo((function(e){var n=e.color,t=void 0===n?"#000":n;return(0,wt.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"keyboard",className:"mini-game-svg-inline--fa mini-game-fa-keyboard mini-game-fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:(0,wt.jsx)("path",{fill:t,d:"M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"})})})),$c=Jc,es=r.memo((function(e){var n=e.color,t=void 0===n?"#fff":n;return(0,wt.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",className:"mini-game-svg-inline--fa mini-game-fa-check-circle mini-game-fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,wt.jsx)("path",{fill:t,d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"})})})),ns=es,ts=r.memo((function(e){var n=e.color,t=void 0===n?"#000":n;return(0,wt.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512.067 512.067",children:(0,wt.jsx)("g",{children:(0,wt.jsx)("g",{children:(0,wt.jsx)("path",{fill:t,d:"M499.575,187.784c16.656-16.661,16.656-43.669,0-60.331L384.887,12.509c-16.661-16.656-43.669-16.656-60.331,0 L96.034,241.117l-83.541,83.2c-16.656,16.661-16.656,43.669,0,60.331L127.18,499.592c6.299,6.231,14.381,10.347,23.125,11.776 c1.052,0.448,2.184,0.681,3.328,0.683h274.859c4.713,0,8.533-3.821,8.533-8.533s-3.82-8.533-8.533-8.533H192.034l17.067-17.067 h174.933c4.713,0,8.533-3.82,8.533-8.533s-3.82-8.533-8.533-8.533H226.252l17.067-17.067h140.715c4.713,0,8.533-3.82,8.533-8.533 s-3.82-8.533-8.533-8.533H260.386l10.667-10.581L499.575,187.784z M352.325,45.241c0.016-0.017,0.033-0.033,0.049-0.049 c3.319-3.346,8.722-3.368,12.068-0.049c0.017,0.016,0.033,0.033,0.049,0.049l102.4,102.4c3.346,3.319,3.368,8.722,0.049,12.068 c-0.016,0.017-0.033,0.033-0.049,0.049c-3.319,3.346-8.722,3.368-12.068,0.049c-0.017-0.016-0.033-0.033-0.049-0.049l-102.4-102.4 C349.029,53.99,349.007,48.587,352.325,45.241z M175.394,487.474c-10.095,9.655-26.001,9.655-36.096,0L24.61,372.786 c-9.926-9.985-9.926-26.111,0-36.096l77.824-77.483L252.876,409.65L175.394,487.474z"})})})})})),as=ts,is=["1","2","3","4","5","6","7","8","9","","0","x"],rs=r.memo((function(){var e=(0,Fn.he)("components.calculator.");return(0,wt.jsxs)("div",{className:"mini-game-calculator-warp",children:[(0,wt.jsx)("div",{className:"mini-game-numbers",children:is.map((function(e){return(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"number-btn ").concat(pt.Z.classNamePrefix).concat("x"===e?"backspace":"number-".concat(e)),onClick:function(){return pi.updateEditAmount(e)},children:e?"x"===e?(0,wt.jsx)(Qc,{color:"#fff"}):(0,wt.jsx)("div",{children:e}):null},e)}))}),(0,wt.jsxs)("div",{className:"mini-game-operates",children:[(0,wt.jsxs)("div",{className:"mini-game-hidden-btn",onClick:pi.close,children:[(0,wt.jsx)("div",{children:(0,wt.jsx)($c,{color:"#fff"})}),(0,wt.jsx)("div",{children:e("hidden")})]}),(0,wt.jsxs)("div",{className:"mini-game-clear-btn",onClick:function(){return pi.setEditAmount(0)},children:[(0,wt.jsx)("div",{children:(0,wt.jsx)(as,{color:"#fff"})}),(0,wt.jsx)("div",{children:e("clear")})]}),(0,wt.jsxs)("div",{className:"mini-game-confirm-btn",onClick:pi.confirmHandle,children:[(0,wt.jsx)("div",{children:(0,wt.jsx)(ns,{color:"#5924B
17"})}),(0,wt.jsx)("div",{children:e("confirm")})]})]})]})})),os=t.p+"static/media/setting-chip-icon.fc7cadf22a889fbcf521.png",cs=t(97729),ss=function(e,n){var t={w:"win",l:"lost","-":"minus","+":"plus",".":"o"};return(0,wt.jsx)("div",{className:"mini-game-balance-text",children:e.split("").map((function(e,a){return" "===e?(0,wt.jsx)("div",{className:"mini-game-empty"},a):n?(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"y-").concat(t[e]?t[e]:e)},a):(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"g-").concat(t[e]?t[e]:e)},a)}))})},us=function(){var e=(0,zn.De)(),n=e.data,t=e.isLoading,a=e.isError,i=(0,c.v9)((function(e){return e.gamePanelInfo})),o=i.drawState,s=i.customerProfit,u=(0,r.useState)(!1),l=(0,ot.Z)(u,2),d=l[0],m=l[1],f=n?n.availBalance:0,p={};return f>=1e8?p.zoom=.75:f>=1e7?p.zoom=.8:f>=1e6?p.zoom=.88:f>=1e5&&(p.zoom=.97),(0,r.useEffect)((function(){o===$t.x3.DRAW&&0!==s?setTimeout((function(){m(!0)}),s>0?3e3:2e3):m(!1)}),[o,s]),(0,wt.jsxs)("div",{className:"mini-game-user-balance",children:[d&&(0,wt.jsx)("div",{className:"mini-game-win-pop",children:s>0?ss("w + ".concat(Math.abs(s)),!0):ss("l - ".concat(Math.abs(s)),!1)}),(0,wt.jsx)("img",{src:cs,alt:"icon"}),(0,wt.jsx)("div",{className:"mini-game-text",style:p,children:t||a?"Loading...":(0,Fn.mT)(f)})]})},ls=r.memo((function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.calculatorInfo.show})),t=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),a=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),i=(0,c.v9)((function(e){return e.calculatorInfo.editAmount}));return(0,wt.jsxs)("div",{ref:e,className:"mini-game-footer",children:[(0,wt.jsxs)("div",{className:"mini-game-chips-block",children:[(0,wt.jsx)(us,{}),(0,wt.jsx)("div",{className:ut()({"mini-game-select-chip-btn":!0,"mini-game-is-edit":n}),children:t&&t.map((function(e,t){return(0,wt.jsx)(hc,{styleIndex:t,amount:n&&a===t?i||0:e,extraClass:"chip-icon",active:a===t,isEdit:n&&a===t,handleClick:function(){return ft.Z.changeSelectedChip(t)}},t)}))}),!n&&(0,wt.jsx)("div",{className:"mini-game-setting-chip-icon",onClick:pi.open,children:(0,wt.jsx)("img",{src:os,alt:"icon"})})]}),n&&null!==i&&(0,wt.jsx)(rs,{})]})})),ds=(0,r.memo)((0,r.forwardRef)((function(e,n){return gr({gameConfig:pt.Z.gameConfig.taixiuVN}),(0,wt.jsxs)("div",{ref:n,className:"mini-game-gamePanel-taixiu-vn-warp",children:[(0,wt.jsx)(Yo,{}),(0,wt.jsx)(Xc,{}),(0,wt.jsx)(ls,{})]})})));ds.displayName="TaixiuVN";var ms=ds,fs="xocdia",ps=[0,1,2,3,4].map((function(e){return[{src:t(68050)("./chip-".concat(e,"-selected.png")),alias:["chip-".concat(e,"-selected")]},{src:t(88431)("./chip-".concat(e,"-small.png")),alias:["chip-".concat(e,"-small")]},{src:t(49249)("./chip-".concat(e,".png")),alias:["chip-".concat(e)]}]})).reduce((function(e,n){return e.concat(n)}),[]),gs=[].concat((0,u.Z)(ps),[{src:t(48654),alias:["bet-board-bg-".concat(fs)]},{src:t(16323),alias:["game-logo-".concat(fs)]},{src:t(85767),alias:["bowl-".concat(fs)]},{src:t(89799),alias:["plate-".concat(fs)]},{src:t(98597),alias:["bet-locked-".concat(fs)]},{src:t(75934),alias:["bet-now-green-".concat(fs)]},{src:t(64472),alias:["bet-now-red-".concat(fs)]},{src:t(56282),alias:["next-round-".concat(fs)]},{src:t(10809),alias:["game-draw-history-bg-".concat(fs)]},{src:t(86965),alias:["game-intro-bg-".concat(fs)]},{src:t(89643),alias:["chips-block-".concat(fs)]}]),hs=t(16323),vs=t.p+"static/media/player-icon.00a45f5c46cce569aea0.png",bs=t.p+"static/media/others.2c6d288b93713f686131.png";function xs(){var e=(0,Fn.he)("containers.GamesPanel.");return(0,wt.jsxs)("div",{className:"mini-game-other-users",children:[(0,wt.jsxs)("div",{className:"mini-game-player-container",children:[(0,wt.jsx)("img",{className:"mini-game-player-icon",src:vs,alt:""}),(0,wt.jsx)("div",{className:"mini-game-player-text",children:e("player")})]}),(0,wt.jsx)("img",{className:"mini-game-other-bg",src:bs,alt:""})]})}var ys=function(){return(0,wt.jsxs)("div",{className:"mini-game-header",children:[(0,wt.jsx)(xs,{}),(0,wt.jsx)("img",{className:"mini-game-logo",src:hs,alt:""}),(0,wt.jsx)(Vo,{gameType:"xocdia"})]})},_s=function(e){var n=e.amount,t=e.totalAmount;return n>0?(0,wt.jsxs)("div",{className:"mini-game-bet-plus-icon2 mini-game-subtotal-bet-plus",children:[(0,wt.jsx)("div",{className:"mini-game-plus-icon",children:"+"}),(0,wt.jsx)("div",{className:"mini-game-plus-amount",children:t+n})]}):(0,wt.jsx)("div",{className:"mini-game-bet-plus-icon2 mini-game-subtotal-bet-plus mini-game-plus-total",children:(0,wt.jsxs)("div",{className:"mini-game-plus-content",children:[(0,wt.jsx)("div",{className:"mini-game-amount-icon"}),(0,wt.jsx)("div",{className:"mini-game-plus-total-amount",children:t})]})})},ws=function(e){return e.USER="USER",e.BET="BET",e.LEFT="start",e.CENTER="center",e.RIGHT="flex-end",e}({}),Ts=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=e.type,a=e.postion,i=void 0===a?ws.LEFT:a,r=e.label1,o=e.label2,s=e.showOdds,u=void 0===s||s,l=e.isReverse,d=void 0!==l&&l,m=e.isWin,f=void 0!==m&&m,p=e.unConfirmAmount,g=ut()({"mini-game-image-text-label":!0,"mini-game-user":t===ws.USER,"mini-game-bet":t===ws.BET,"mini-game-win":f,"mini-game-left":i===ws.LEFT,"mini-game-right":i===ws.RIGHT,"mini-game-reverse":d}),h=ut()({"mini-game-icon":!0,"mini-game-user":t===ws.USER,"mini-game-bet":t===ws.BET}),v=ut()({"mini-game-number":!0,"mini-game-user":t===ws.USER,"mini-game-bet":t===ws.BET}),b=!n||![$t.x3.BET_NOW_RED,$t.x3.BET_NOW].includes(n);return(0,wt.jsxs)("div",{className:g,style:{alignSelf:i,justifyContent:i},children:[t===ws.BET&&(!b&&p>0||Number(o)>0)&&(0,wt.jsx)("div",{className:"mini-game-unConfirmAmount",children:(0,wt.jsx)(_s,{amount:b?0:p,totalAmount:Number(o)||0})}),(0,wt.jsxs)("div",{className:"mini-game-image-label-1",style:t===ws.BET?{width:"100%"}:{},children:[t!==ws.BET&&(0,wt.jsx)("div",{className:h}),(0,wt.jsx)("div",{className:v,children:t===ws.BET?(0,wt.jsx)(uc,{value:Number(r)||0,hasComma:!0,duration:800,orderDesc:!0,textClass:"".concat(pt.Z.classNamePrefix,"awesomeAnimatedNumberText")}):r})]}),(0,wt.jsx)("div",{className:"mini-game-empty"}),u&&(0,wt.jsxs)("div",{className:"mini-game-image-label-2",children:[(0,wt.jsx)("div",{className:h}),(0,wt.jsx)("div",{className:v,children:t===ws.BET?(0,wt.jsx)(uc,{value:Number(o)||0,hasComma:!0,duration:300,orderDesc:!0,textClass:"".concat(pt.Z.classNamePrefix,"awesomeAnimatedNumberText")}):o})]})]})},ks=function(e){var n,t=e.betBlockData,a=e.xocDiaConfig,i=e.blockWin,r=e.type,o=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),s=[$t.x3.BET_LOCKED,$t.x3.WAIT_DRAW,$t.x3.DRAW],u=t.hiddenChips,l=t.betChips,d=t.handleToBetting,m=t.blockRef,f=t.botBetChips,p=pt.Z.classNamePrefix,g=a.menuPlayId,h=a.playInfo,v=a.prizeType,b=(0,Fn.he)("containers.GamesIntro.Xocdia.");return(0,wt.jsxs)("div",{className:"".concat(p,"chip-block ").concat(p,"bet-text ").concat(p).concat(r," ").concat(i&&p+"win"),onClick:function(){return d(g,h)},ref:function(e){return m(e,v)},children:[null===(n=b(r))||void 0===n?void 0:n.toUpperCase(),!u&&f.length?f.filter((function(e){return e.prizeType===v})).map((function(e,n){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,extraClass:"".concat((0,Fn.jd)(o)),moveX:e.moveX,moveY:e.moveY,botBetFrom:e.botBetFrom,flyTarget:e.flyTarget},n)})):null,!u&&l.length?l.filter((function(e){return e.prizeType===v})).filter((function(e){return!s.includes(o)||e.hasConfirm})).map((function(e,n){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,flyTarget:e.flyTarget,moveX:e.moveX,moveY:e.moveY},n)})):null]})},Is=pt.Z.gameConfig.xocDia,Cs={playInfo:Is.menuInfos[0].playInfos[0],menuPlayId:Is.menuInfos[0].menuPlayId,prizeType:Is.menuInfos[0].playInfos[0].prizeType},Es=pt.Z.gameConfig.xocDia,js={playInfo:Es.menuInfos[0].playInfos[1],menuPlayId:Es.menuInfos[0].menuPlayId,prizeType:Es.menuInfos[0].playInfos[1].prizeType},Ps=pt.Z.gameConfig.xocDia,Ss={playInfo:Ps.menuInfos[1].playInfos[0],menuPlayId:Ps.menuInfos[1].menuPlayId,prizeType:Ps.menuInfos[1].playInfos[0].prizeType},Ns=pt.Z.gameConfig.xocDia,Bs={playInfo:Ns.menuInfos[1].playInfos[1],menuPlayId:Ns.menuInfos[1].menuPlayId,prizeType:Ns.menuInfos[1].playInfos[1].prizeType},As=t.p+"static/media/white-piece-big.0286ef04827193ca11af.png",Rs=t.p+"static/media/red-piece-big.2809fda7204aededb698.png",Os=pt.Z.gameConfig.xocDia,Ms={W4:{playInfo:Os.menuInfos[3].playInfos[0],prizeType:Os.menuInfos[3].playInfos[0].prizeType,menuPlayId:Os.menuInfos[3].menuPlayId},W3_R1:{playInfo:Os.menuInfos[4].playInfos[0],prizeType:Os.menuInfos[4].playInfos[0].prizeType,menuPlayId:Os.menuInfos[4].menuPlayId},R3_W1:{playInfo:Os.menuInfos[5].playInfos[0],prizeType:Os.menuInfos[5].playInfos[0].prizeType,menuPlayId:Os.menuInfos[5].menuPlayId},R4:{playInfo:Os.menuInfos[2].playInfos[0],prizeType:Os.menuInfos[2].playInfos[0].prizeType,menuPlayId:Os.menuInfos[2].menuPlayId}},Zs=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers}
1)),a=function(){if(n===$t.x3.DRAW)return t.split("").filter((function(e){return"0"===e})).length>=3};return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix,"block ").concat(a()&&pt.Z.classNamePrefix+"big"),children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.RIGHT,isWin:a(),isReverse:!0,label1:e.userQtysData[Cs.prizeType],label2:(0,wt.jsxs)("span",{children:["1: ",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2678,playInfoId:5986})]})}),(0,wt.jsx)(ks,{betBlockData:e,xocDiaConfig:Cs,blockWin:a(),type:"big"}),e.selectedBlock&&e.selectedBlock===Cs.prizeType&&(0,wt.jsx)(Tc,{clearChip:e.clearChip,handlePrevBet:e.handlePrevBet,betConfirm:e.betConfirm,position:"right"}),(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.CENTER,isWin:a(),showOdds:!1,label1:e.totalAmountData?e.totalAmountData[Cs.prizeType]:0,label2:"".concat(e.getSubTotal(e.betChips,"confirm",Cs.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Cs.prizeType)})]})},Ds=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),a=function(){if(n===$t.x3.DRAW)return t.split("").filter((function(e){return"1"===e})).length>=3};return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix,"block ").concat(a()&&pt.Z.classNamePrefix+"small"),children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.LEFT,isWin:a(),label1:e.userQtysData[js.prizeType],label2:(0,wt.jsxs)("span",{children:["1: ",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2678,playInfoId:5987})]})}),(0,wt.jsx)(ks,{betBlockData:e,xocDiaConfig:js,blockWin:a(),type:"small"}),e.selectedBlock&&e.selectedBlock===js.prizeType&&(0,wt.jsx)(Tc,{clearChip:e.clearChip,handlePrevBet:e.handlePrevBet,betConfirm:e.betConfirm,position:"left"}),(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.CENTER,isWin:a(),showOdds:!1,label1:e.totalAmountData[js.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",js.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",js.prizeType)})]})},Ls=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),a=function(){if(n===$t.x3.DRAW){var e=t.split("").filter((function(e){return"0"===e})),a=t.split("").filter((function(e){return"1"===e}));if(3===e.length||3===a.length)return!0}};return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix,"block ").concat(a()&&pt.Z.classNamePrefix+"odd"),children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.RIGHT,isWin:a(),isReverse:!0,label1:e.userQtysData[Ss.prizeType],label2:(0,wt.jsxs)("span",{children:["1: ",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2679,playInfoId:5988})]})}),(0,wt.jsx)(ks,{betBlockData:e,xocDiaConfig:Ss,blockWin:a(),type:"odd"}),e.selectedBlock&&e.selectedBlock===Ss.prizeType&&(0,wt.jsx)(Tc,{clearChip:e.clearChip,handlePrevBet:e.handlePrevBet,betConfirm:e.betConfirm,position:"right"}),(0,wt.jsx)("div",{style:{width:"100%",paddingLeft:"25%",display:"flex",justifyContent:"center"},children:(0,wt.jsx)("div",{style:{width:"55%"},children:(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.RIGHT,isWin:a(),showOdds:!1,label1:e.totalAmountData[Ss.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",Ss.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Ss.prizeType)})})})]})},Gs=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),a=function(){if(n===$t.x3.DRAW){var e=new Set(t.split("")),a=t.split("").filter((function(e){return"1"===e}));if(1===e.size||2===a.length)return!0}};return(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix,"block ").concat(a()&&pt.Z.classNamePrefix+"even"),children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.LEFT,isWin:a(),label1:e.userQtysData[Bs.prizeType],label2:(0,wt.jsxs)("span",{children:["1: ",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2679,playInfoId:5989})]})}),(0,wt.jsx)(ks,{betBlockData:e,xocDiaConfig:Bs,blockWin:a(),type:"even"}),e.selectedBlock&&e.selectedBlock===Bs.prizeType&&(0,wt.jsx)(Tc,{clearChip:e.clearChip,handlePrevBet:e.handlePrevBet,betConfirm:e.betConfirm,position:"left"}),(0,wt.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:(0,wt.jsx)("div",{style:{width:"65%"},children:(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.LEFT,isWin:a(),showOdds:!1,label1:e.totalAmountData[Bs.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",Bs.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Bs.prizeType)})})})]})},Ws=function(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers}
1)),a=[$t.x3.BET_LOCKED,$t.x3.WAIT_DRAW,$t.x3.DRAW],i=function(t,i){return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("div",{className:"mini-game-piece-odds",onClick:function(){return e.handleToBetting(t.menuPlayId,t.playInfo)},ref:function(n){return e.blockRef(n,t.prizeType)},children:[!e.hiddenChips&&e.botBetChips.length?e.botBetChips.filter((function(e){return e.prizeType===t.prizeType})).map((function(e,t){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,extraClass:"".concat((0,Fn.jd)(n)),moveX:e.moveX,moveY:e.moveY,botBetFrom:e.botBetFrom,flyTarget:e.flyTarget},t)})):null,!e.hiddenChips&&e.betChips.length?e.betChips.filter((function(e){return e.prizeType===t.prizeType})).filter((function(e){return!a.includes(n)||e.hasConfirm})).map((function(e,n){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,flyTarget:e.flyTarget,moveX:e.moveX,moveY:e.moveY},n)})):null,(0,wt.jsx)("div",{className:"mini-game-piece",children:(r=i,r.map((function(e,n){return(0,wt.jsx)("img",{src:1===e?As:Rs,alt:""},n)})))}),(0,wt.jsxs)("div",{className:"mini-game-odds",children:["1:",(0,wt.jsx)(oc,{groupPlayId:Os.groupPlayId,menuPlayId:t.menuPlayId,playInfoId:t.playInfo.playInfoId})]})]}),e.selectedBlock&&e.selectedBlock===t.prizeType&&(0,wt.jsx)(Tc,{clearChip:e.clearChip,handlePrevBet:e.handlePrevBet,betConfirm:e.betConfirm})]});var r};return(0,r.useEffect)((function(){if(n===$t.x3.DRAW){if(t&&!t.includes("?")){var e=document.querySelectorAll(".".concat(pt.Z.classNamePrefix,"others >.").concat(pt.Z.classNamePrefix,"block")),a=document.createElement("div");a.className="".concat(pt.Z.classNamePrefix,"green-frame");var i=new Set(t.split(""));1===i.size&&i.has("0")&&e[3].appendChild(a),1===i.size&&i.has("1")&&e[0].appendChild(a),3===t.split("").filter((function(e){return"1"===e})).length&&e[1].appendChild(a),3===t.split("").filter((function(e){return"0"===e})).length&&e[2].appendChild(a)}}else document.querySelectorAll(".".concat(pt.Z.classNamePrefix,"green-frame")).forEac
1h((function(e){return e.remove()}))}),[n,t]),(0,wt.jsxs)("div",{className:"mini-game-others",children:[(0,wt.jsxs)("div",{className:"mini-game-block",children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.LEFT,label1:e.userQtysData[Ms.W4.prizeType],showOdds:!1}),i(Ms.W4,[1,1,1,1]),(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.CENTER,showOdds:!1,label1:e.totalAmountData[Ms.W4.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",Ms.W4.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Ms.W4.prizeType)})]}),(0,wt.jsxs)("div",{className:"mini-game-block",children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.LEFT,label1:e.userQtysData[Ms.W3_R1.prizeType],showOdds:!1}),i(Ms.W3_R1,[1,1,1,0]),(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.CENTER,showOdds:!1,label1:e.totalAmountData[Ms.W3_R1.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",Ms.W3_R1.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Ms.W3_R1.prizeType)})]}),(0,wt.jsxs)("div",{className:"mini-game-block",children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.LEFT,label1:e.userQtysData[Ms.R3_W1.prizeType],showOdds:!1}),i(Ms.R3_W1,[1,0,0,0]),(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.CENTER,showOdds:!1,label1:e.totalAmountData[Ms.R3_W1.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",Ms.R3_W1.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Ms.R3_W1.prizeType)})]}),(0,wt.jsxs)("div",{className:"mini-game-block",children:[(0,wt.jsx)(Ts,{type:ws.USER,postion:ws.LEFT,label1:e.userQtysData[Ms.R4.prizeType],showOdds:!1}),i(Ms.R4,[0,0,0,0]),(0,wt.jsx)(Ts,{type:ws.BET,postion:ws.CENTER,showOdds:!1,label1:e.totalAmountData[Ms.R4.prizeType],label2:"".concat(e.getSubTotal(e.betChips,"confirm",Ms.R4.prizeType)),unConfirmAmount:e.getSubTotal(e.betChips,"unConfirm",Ms.R4.prizeType)})]})]})},Us=t.p+"static/media/arrow-up.7309e8199244c5d75b49.png",qs=t.p+"static/media/finger.7fe6a442d84978666a94.png",zs=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=(0,r.useState)(0),i=(0,ot.Z)(a,2),o=i[0],c=i[1],s=(0,r.useState)(!1),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=(0,zn.ip)(e),f=m.data,p=m.isFetching,g=m.refetch;return ti((function(){if(f){var e=f.currentNumero,n=e.lockTime,t=e.remainDrawTime,a=f.nextNumero.remainDrawTime,i=(0,Fn.v)(n,t),r=(0,Fn.v)(n,a),o=(0,Fn.v)(-1,t),s=(0,Fn.v)(-1,a);i>0?(d(!1),c(i)):!l&&i<=0||r<=0?(d(!0),c(i)):l&&i<=0&&c(r),!p&&(o<=0||s<=0)&&g()}}),n,t),{data:f,countdown:o}},Fs=function(){var e=(0,r.useRef)(null),n=(0,r.useRef)(null),t=(0,r.useRef)(null),a=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),i=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),o=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),s=(0,r.useState)(!1),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=zs(a,1e3,!0).countdown,p={onStart:function(){m(!1)},onDrag:function(e,n){},onStop:function(e){i===$t.x3.WAIT_DRAW&&ft.Z.updateDrawState($t.x3.DRAW)}};return(0,r.useEffect)((function(){i===$t.x3.WAIT_DRAW&&(t.current=(new Date).valueOf()+1e3*pt.Z.gameConfig.xocDia.timeSetting.NEXT_ROUND_TIME,m(!0)),i===$t.x3.DRAW&&m(!1)}),[i]),ti((function(){if(i&&[$t.x3.WAIT_DRAW,$t.x3.DRAW].includes(i)&&n.current){var e=(0,Fn.v)(0,t.current);n.current.innerText=i===$t.x3.WAIT_DRAW&&e>5||e<=0?"":String(e)}else n.current.innerText=""}),200),(0,wt.jsx)("div",{className:"mini-game-draw-z-stack",style:{zIndex:i===$t.x3.BET_NOW||i===$t.x3.BET_NOW_RED?0:3},children:(0,wt.jsxs)("div",{className:"".concat(pt.Z.classNamePrefix,"plate ").concat(pt.Z.classNamePrefix+i),children:[o&&!o.includes("?")?o.split("").map((function(e,n){return(0,wt.jsx)("img",{className:ut()("mini-game-piece","".concat(pt.Z.classNamePrefix,"position-").concat(n)),src:"1"===e?As:Rs,alt:"piece"},n)})):null,(0,wt.jsx)("div",{className:"mini-game-state-label",children:(0,wt.jsx)("div",{ref:n,className:"mini-game-draw-count-down"})}),(0,wt.jsx)(Mc(),(0,d.Z)((0,d.Z)({disabled:i!==$t.x3.WAIT_DRAW,position:{x:0,y:0},bounds:{top:-40,left:-40,right:40,bottom:40}},p),{},{children:(0,wt.jsxs)("div",{className:ut()({"mini-game-bowl":!0,"mini-game-BET_LOCKED":i===$t.x3.BET_LOCKED,"mini-game-DRAW":i===$t.x3.DRAW}),children:[(0,wt.jsx)("div",{ref:e,className:ut()({"mini-game-count-down":!0,"mini-game-BET_NOW_RED":i===$t.x3.BET_NOW_RED,"mini-game-BET_LOCKED":i===$t.x3.BET_LOCKED}),children:i&&[$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(i)?f:""}),l&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-finger-icon",src:qs,alt:"icon"}),(0,wt.jsx)("img",{className:"mini-game-arrow-icon",src:Us,alt:"icon"})]})]})}))]})})},Vs=function(e){var n=e.number,t=e.className;return(0,wt.jsx)("div",{className:ut()("mini-game-vxd-ball",t),children:(0,wt.jsx)("img",{src:1===Number(n)?As:Rs,alt:""})})},Hs=function(){var e=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),n=(0,zn.VO)(e).data,t=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),a=(0,r.useState)([]),i=(0,ot.Z)(a,2),o=i[0],s=i[1];return(0,r.useEffect)((function(){if(n){var e=(0,u.Z)(n),a=(t===$t.x3.DRAW?e.slice(0,3).map((function(e,n){if(e.winNo.indexOf("x")>-1||e.winNo.indexOf("X")>-1)return(0,d.Z)((0,d.Z)({},e),{},{number:[],isLight:!1});var t=e.winNo.split("").map((function(e){return Number(e)}));return{numero:e.numero,number:t,isLight:0===n}})):(t===$t.x3.WAIT_DRAW?e.slice(1,3):e.slice(0,3)).map((function(e){if(e.winNo.indexOf("x")>-1||e.winNo.indexOf("X")>-1)return(0,d.Z)((0,d.Z)({},e),{},{number:[],isLight:!1});var n=e.winNo.split(pt.Z.gameConfig.xocDia.symbolSplit).map((function(e){return Number(e)}));return{numero:e.numero,number:n,isLight:!1}}))).reverse();s(a)}}),[n,t]),(0,wt.jsx)("div",{className:"mini-game-draw-history-bar",onClick:pr.open,children:o.map((function(e,n){return(0,wt.jsxs)("div",{className:"mini-game-piece-h-stack",children:[e.number.map((function(n,t){return(0,wt.jsx)(Vs,{number:n,className:e.isLight?"".concat(pt.Z.classNamePrefix,"piece-light"):""},t)})),o.length!==n+1?(0,wt.jsx)("div",{className:"mini-game-gap",children:"â¢"}):null]},n)}))})},Ys=pt.Z.gameConfig.xocDia,Xs=function(e){return e.red="0",e.white="1",e}(Xs||{}),Ks=function(e){for(var n=[],t={},a=e.split(""),i=0;i<a.length;i++){var r=a[i];t[r]?t[r]+=1:t[r]=1}return 2===t[Xs.red]?["VXD_OE_EVEN"]:(t[Xs.red]%2==0?n.push("VXD_OE_EVEN"):n.push("VXD_OE_ODD"),t[Xs.red]>2?n.push("VXD_BS_BIG"):n.push("VXD_BS_SMALL"),4===t[Xs.red]&&n.push("VXD_4R_1"),4===t[Xs.white]&&n.push("VXD_4W_1"),3===t[Xs.red]&&n.push("VXD_3R1W_1"),3===t[Xs.white]&&n.push("VXD_3W1R_1"),n)},Qs=function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.header.numero})),n=(0,r.useRef)({}),t=kc({targetDivRef:n,gameConfig:Ys,getWinPrizeType:Ks,gameKey:$t.gV.xocdia}),a=function(e,t){n.current[t]=e};return(0,wt.jsxs)("div",{className:"mini-game-bet-board",children:[(0,wt.jsxs)("div",{className:"mini-game-numero",children:["No.",e]}),(0,wt.jsx)(Fs,{}),(0,wt.jsxs)("div",{className:"mini-game-row-block",children:[(0,wt.jsx)(Gs,(0,d.Z)({blockRef:a},t)),(0,wt.jsx)(Ls,(0,d.Z)({blockRef:a},t))]}),(0,wt.jsxs)("div",{className:"mini-game-row-block mini-game-pt",children:[(0,wt.jsx)(Ds,(0,d.Z)({blockRef:a},t)),(0,wt.jsx)(Zs,(0,d.Z)({blockRef:a},t))]}),(0,wt.jsx)(Ws,(0,d.Z)({blockRef:a},t)),(0,wt.jsx)(Hs,{})]})},Js=r.memo((function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.calculatorInfo.show})),t=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),a=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),i=(0,c.v9)((function(e){return e.calculatorInfo.editAmount}));return(0,wt.jsxs)("div",{ref:e,className:"mini-game-footer",children:[(0,wt.jsxs)("div",{className:"mini-game-chips-block",children:[(0,wt.jsx)(us,{}),(0,wt.jsx)("div",{className:ut()({"mini-game-select-chip-btn":!0,"mini-game-is-edit":n}),children:t&&t.map((function(e,t){return(0,wt.jsx)(hc,{styleIndex:t,amount:n&&a===t?i||0:e,extraClass:"chip-icon",active:a===t,isEdit:n&&a===t,handleClick:function(){return ft.Z.changeSelectedChip(t)}},t)}))}),!n&&(0,wt.jsx)("div",{className:"mini-game-setting-chip-icon",onClick:pi.open,children:(0,wt.jsx)("img",{src:os,alt:"icon"})})]}),n&&null!==i&&(0,wt.jsx)(rs,{})]})})),$s=(0,r.memo)((0,r.forwardRef)((function(e,n){var t=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,c.v9)((function(e){return e.gamePanelInfo})),u=_t(),l=u.sendEvent,d=u.gaEventConfig;return(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),e.next=4,fa.deM.load(gs,(function(e){var n;e>=1&&l({action:d.game_loaded,data:{game_code:null===(n=s.info)||void 0===n?void 0:n.gameCode}}),o(100*e)}));case 4:case"end":return e.stop()}}),e)})))()}),[]),t}();return gr({gameConfig:pt.Z.gameConfig.xocDia}),(0,wt.jsx)(wo,{progress:t,children:(0,wt.jsxs)("div",{ref:n,className:"mini-game-gamePanel-xocdia-warp",children:[(0,wt.jsx)(ys,{}),(0,wt.jsx)(Qs,{}),(0,wt.jsx)(Js,{})]})})}))),eu="baucua",nu=[0,1,2,3,4].map((function(e){return[{src:t(68050)("./chip-".concat(e,"-selected.png")),alias:["chip-".concat(e,"-selected")]},{src:t(88431)("./chip-".concat(e,"-small.png")),alias:["chip-".concat(e,"-small")]},{src:t(49249)("./chip-".concat(e,".png")),alias:["chip-".concat(e)
1]}]})).reduce((function(e,n){return e.concat(n)}),[]),tu=[{src:t(35354),alias:["chicken-bg-".concat(eu)]},{src:t(90965),alias:["crab-bg-".concat(eu)]},{src:t(2660),alias:["deer-bg-".concat(eu)]},{src:t(25359),alias:["fish-bg-".concat(eu)]},{src:t(19813),alias:["gourd-bg-".concat(eu)]},{src:t(38327),alias:["shrimp-bg-".concat(eu)]}],au=[{src:t(37357),alias:["bowl-".concat(eu)]},{src:t(15829),alias:["plate-".concat(eu)]},{src:t(77625),alias:["bet-locked-".concat(eu)]},{src:t(79493),alias:["bet-now-green-".concat(eu)]},{src:t(4149),alias:["bet-now-red-".concat(eu)]},{src:t(576),alias:["next-round-".concat(eu)]}],iu=["chicken","crab","deer","fish","gourd","shrimp"].map((function(e){return[{src:t(9782)("./".concat(e,"-dice.png")),alias:["".concat(e,"-dice-").concat(eu)]},{src:t(51326)("./".concat(e,"-icon.png")),alias:["".concat(e,"-icon-").concat(eu)]}]})).reduce((function(e,n){return e.concat(n)}),[]),ru=[].concat((0,u.Z)(nu),tu,au,(0,u.Z)(iu),[{src:t(71446),alias:["bet-board-bg-".concat(eu)]},{src:t(57271),alias:["Bau-".concat(eu)]},{src:t(45717),alias:["cua-".concat(eu)]},{src:t(12830),alias:["game-draw-history-bg-".concat(eu)]},{src:t(68282),alias:["game-draw-history-bg1-".concat(eu)]},{src:t(68260),alias:["game-intro-bg-".concat(eu)]},{src:t(38339),alias:["chips-block-".concat(eu)]}]),ou=t.p+"static/media/arrow-up.7309e8199244c5d75b49.png",cu=t.p+"static/media/finger.7fe6a442d84978666a94.png",su=t(79493),uu=t(4149),lu=t(77625),du=t(576),mu=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),t=(0,r.useRef)(null);return(0,r.useEffect)((function(){n===$t.x3.WAIT_DRAW&&(t.current=(new Date).valueOf()+1e3*pt.Z.gameConfig.bauCua.timeSetting.NEXT_ROUND_TIME)}),[n]),ti((function(){if(n&&[$t.x3.WAIT_DRAW,$t.x3.DRAW].includes(n)&&e.current){var a=(0,Fn.v)(0,t.current);e.current.innerText=n===$t.x3.WAIT_DRAW&&a>5||a<=0?"":String(a)}}),200),(0,wt.jsxs)("div",{className:"mini-game-count-down-bg",children:[(n===$t.x3.DRAW||n===$t.x3.WAIT_DRAW)&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-bg",src:du,alt:""}),(0,wt.jsx)("div",{className:"mini-game-count-down-text",ref:e})]}),n===$t.x3.BET_NOW&&(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsx)("img",{className:"mini-game-bg",src:su,alt:""})}),n===$t.x3.BET_NOW_RED&&(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsx)("img",{className:"mini-game-bg",src:uu,alt:""})}),n===$t.x3.BET_LOCKED&&(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsx)("img",{className:"mini-game-bg",src:lu,alt:""})})]})},fu={1:t(79416),2:t(72893),3:t(10826),4:t(59804),5:t(95130),6:t(91891)},pu=function(e){var n=e.number,t=e.index;return(0,wt.jsx)("div",{className:ut()({"mini-game-baucua-dice":!0,"mini-game-dice-0":0===t,"mini-game-dice-1":1===t,"mini-game-dice-2":2===t}),children:"?"===n?"?":(0,wt.jsx)("img",{src:fu[n],alt:"icon"})})},gu=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),a=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),i=(0,r.useState)(!1),o=(0,ot.Z)(i,2),s=o[0],u=o[1],l=zs(n,1e3,!0).countdown,m={onStart:function(){u(!1)},onDrag:function(e,n){},onStop:function(e){t===$t.x3.WAIT_DRAW&&ft.Z.updateDrawState($t.x3.DRAW)}};return(0,r.useEffect)((function(){t===$t.x3.WAIT_DRAW&&u(!0),t===$t.x3.DRAW&&u(!1)}),[t]),(0,wt.jsxs)("div",{className:ut()({"mini-game-draw":!0,"mini-game-BET_LOCKED":t===$t.x3.BET_LOCKED,"mini-game-DRAW":t===$t.x3.DRAW,"mini-game-logo":!0}),children:[(0,wt.jsx)("div",{className:"mini-game-draw-plate",children:a&&!a.includes("?")?a.split(pt.Z.gameConfig.bauCua.symbolSplit).map((function(e,n){var t=Number(e);return(0,wt.jsx)(pu,{index:n,number:t},n)})):null}),(0,wt.jsx)(Mc(),(0,d.Z)((0,d.Z)({disabled:t!==$t.x3.WAIT_DRAW,position:{x:0,y:0},bounds:{top:-40,left:-40,right:40,bottom:40}},m),{},{children:(0,wt.jsxs)("div",{className:ut()({"mini-game-draw-bowl":!0,"mini-game-BET_LOCKED":t===$t.x3.BET_LOCKED,"mini-game-DRAW":t===$t.x3.DRAW}),children:[(0,wt.jsx)("div",{ref:e,className:ut()({"mini-game-number":!0,"mini-game-BET_NOW_RED":t===$t.x3.BET_NOW_RED}),children:t&&[$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(t)?l:""}),s&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("img",{className:"mini-game-finger-icon",src:cu,alt:"icon"}),(0,wt.jsx)("img",{className:"mini-game-arrow-icon",src:ou,alt:"icon"})]})]})})),(0,wt.jsx)(mu,{})]})},hu=t(57271),vu=t(45717),bu=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.gamePanelInfo.header.numero}));return(0,wt.jsxs)("div",{ref:e,className:"mini-game-header",children:[(0,wt.jsxs)("div",{className:"mini-game-top-block",children:[(0,wt.jsx)("div",{className:"mini-game-bau-title",children:(0,wt.jsx)("img",{src:hu,alt:""})}),(0,wt.jsx)(gu,{}),(0,wt.jsx)("div",{className:"mini-game-cua-title",children:(0,wt.jsx)("img",{src:vu,alt:""})})]}),(0,wt.jsxs)("div",{className:"mini-game-bottom-block",children:[(0,wt.jsx)(xs,{}),(0,wt.jsx)("div",{className:"mini-game-series-wrap",children:(0,wt.jsxs)("div",{className:"mini-game-series",children:["No.",n]})}),(0,wt.jsx)(Vo,{gameType:"baucua"})]})]})},xu=t.p+"static/media/coin-silver.bf271e076294324b08fb.png",yu=function(e){var n=e.unConfirmSubTotal,t=e.ConfirmSubTotal;return(0,wt.jsxs)("div",{className:"mini-game-subtotal",children:[n>0&&(0,wt.jsx)(lc,{amount:n}),(0,wt.jsxs)("div",{className:"mini-game-total-content",children:[(0,wt.jsx)("img",{src:tc,alt:"icon"}),(0,wt.jsx)("div",{className:"mini-game-sum-text",children:t})]})]})},_u=function(){return(0,wt.jsx)("div",{className:"mini-game-bonus-group",children:(0,wt.jsxs)("ul",{className:"mini-game-bonus-contain",children:[(0,wt.jsxs)("li",{children:["Single 1 : ",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6013})]}),(0,wt.jsxs)("li",{children:["Double 1 : ",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6014})]}),(0,wt.jsxs)("li",{children:["Triple 1 : ",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6015})]})]})})},wu={1:t(96117),2:t(33326),3:t(66293),4:t(98688),5:t(35910),6:t(38011)},Tu=function(e){var n=e.number,t=e.wrapClass;return(0,wt.jsx)("div",{className:ut()("mini-game-baucua-ball",t),children:wu[n]?(0,wt.jsx)("img",{src:wu[n],alt:"icon"}):"?"})},ku=function(){var e=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),n=(0,zn.VO)(e).data,t=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),a=(0,r.useState)([]),i=(0,ot.Z)(a,2),o=i[0],s=i[1];return(0,r.useEffect)((function(){if(n){var e=(0,u.Z)(n),a=(t===$t.x3.DRAW?e.slice(0,4).map((function(e,n){if(e.winNo.indexOf("x")>-1||e.winNo.indexOf("X")>-1)return(0,d.Z)((0,d.Z)({},e),{},{number:[],isLight:!1});var t=e.winNo.split("").map((function(e){return Number(e)}));return{numero:e.numero,number:t,isLight:0===n}})):(t===$t.x3.WAIT_DRAW?e.slice(1,4):e.slice(0,4)).map((function(e){if(e.winNo.indexOf("x")>-1||e.winNo.indexOf("X")>-1)return(0,d.Z)((0,d.Z)({},e),{},{number:[],isLight:!1});var n=e.winNo.split(pt.Z.gameConfig.bauCua.symbolSplit).map((function(e){return Number(e)}));return{numero:e.numero,number:n,isLight:!1}}))).reverse();s(a)}}),[n,t]),(0,wt.jsx)("div",{className:"mini-game-win-trend",onClick:pr.open,children:o.map((function(e,n){return e.number.map((function(t,a){return(0,wt.jsxs)(r.Fragment,{children:[(0,wt.jsx)(Tu,{number:t,wrapClass:e.isLight?"".concat(pt.Z.classNamePrefix,"trend-ball-light"):""}),n!==o.length-1&&a===e.number.length-1&&(0,wt.jsx)("div",{className:"mini-game-break-symbol"})]},a)}))}))})},Iu=pt.Z.gameConfig.bauCua,Cu=pt.Z.gameConfig.bauCua.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.bauCua.groupPlayId,menuPlayId:e.menuPlayId},n)}))})).flat(),Eu=function(e){var n={1:"VBC_FISH",2:"VBC_SHRIMP",3:"VBC_GOURD",4:"VBC_DEER",5:"VBC_CRAB",6:"VBC_CHICKEN"};return e.split("").map((function(e){return n[e]}))},ju=function(){var e=(0,r.useRef)({}),n=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,t=[$t.x3.BET_LOCKED,$t.x3.WAIT_DRAW,$t.x3.DRAW],a=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers}
1)),i=Eu(a),o=[$t.x3.BET_NOW,$t.x3.BET_NOW_RED],s=kc({targetDivRef:e,gameConfig:Iu,getWinPrizeType:Eu,gameKey:$t.gV.baucua}),u=s.hiddenChips,d=s.selectedBlock,m=s.betChips,f=s.getSubTotal,p=s.handleToBetting,g=s.clearChip,h=s.handlePrevBet,v=s.betConfirm,b=s.botBetChips,x=s.totalAmountData,y=s.userQtysData;return(0,wt.jsxs)("div",{className:"mini-game-bet-board",children:[(0,wt.jsx)("div",{className:"mini-game-bet-block-containers",children:Cu.map((function(a,r){var c;return(0,wt.jsxs)("div",{className:ut()("mini-game-bet-block-content",(c={},(0,l.Z)(c,"".concat(pt.Z.classNamePrefix).concat(a.key),!0),(0,l.Z)(c,"mini-game-bet-blocks-win",n===$t.x3.DRAW&&i.indexOf(a.prizeType)>-1),c)),children:[(0,wt.jsxs)("div",{className:"mini-game-other-users-info",children:[(0,wt.jsxs)("div",{className:"mini-game-users-amount-content",children:[(0,wt.jsx)("img",{src:xu,alt:"icon"}),(0,wt.jsx)("span",{children:x[a.prizeType]})]}),(0,wt.jsxs)("div",{className:"mini-game-users-qty-content",children:[(0,wt.jsx)(Cc,{color:"rgb(83, 83, 83)"}),(0,wt.jsx)("span",{children:y[a.prizeType]})]})]}),(0,wt.jsxs)("div",{className:"mini-game-chip-block",onClick:function(){return p(a.menuPlayId,a)},ref:function(n){return e.current[a.prizeType]=n},children:[!u&&b.length?b.filter((function(e){return e.prizeType===a.prizeType})).map((function(e,t){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,extraClass:"".concat((0,Fn.jd)(n)),moveX:e.moveX,moveY:e.moveY,botBetFrom:e.botBetFrom,flyTarget:Array.isArray(e.flyTarget)?"":e.flyTarget},t)})):null,!u&&m.length?m.filter((function(e){return e.prizeType===a.prizeType})).filter((function(e){return!t.includes(n)||e.hasConfirm})).map((function(e,n){return(0,wt.jsx)(hc,{styleIndex:e.styleIndex,amount:e.amount,isSmallChip:!0,flyTarget:Array.isArray(e.flyTarget)?"":e.flyTarget,moveX:e.moveX,moveY:e.moveY},n)})):null]}),d&&d===a.prizeType&&(0,wt.jsx)(Tc,{clearChip:g,handlePrevBet:h,betConfirm:v}),(0,wt.jsx)(yu,{unConfirmSubTotal:o.includes(n)?f(m,"unConfirm",a.prizeType):0,ConfirmSubTotal:f(m,"confirm",a.prizeType)})]},r)}))}),(0,wt.jsx)(_u,{}),(0,wt.jsx)(ku,{})]})},Pu=r.memo((function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.calculatorInfo.show})),t=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),a=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),i=(0,c.v9)((function(e){return e.calculatorInfo.editAmount}));return(0,wt.jsxs)("div",{ref:e,className:"mini-game-footer",children:[(0,wt.jsxs)("div",{className:"mini-game-chips-block",children:[(0,wt.jsx)(us,{}),(0,wt.jsx)("div",{className:ut()({"mini-game-select-chip-btn":!0,"mini-game-is-edit":n}),children:t&&t.map((function(e,t){return(0,wt.jsx)(hc,{styleIndex:t,amount:n&&a===t?i||0:e,extraClass:"chip-icon",active:a===t,isEdit:n&&a===t,handleClick:function(){return ft.Z.changeSelectedChip(t)}},t)}))}),!n&&(0,wt.jsx)("div",{className:"mini-game-setting-chip-icon",onClick:pi.open,children:(0,wt.jsx)("img",{src:os,alt:"icon"})})]}),n&&null!==i&&(0,wt.jsx)(rs,{})]})})),Su=(0,r.memo)((0,r.forwardRef)((function(e,n){var t=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,c.v9)((function(e){return e.gamePanelInfo})),u=_t(),l=u.sendEvent,d=u.gaEventConfig;return(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),e.next=4,fa.deM.load(ru,(function(e){var n;e>=1&&l({action:d.game_loaded,data:{game_code:null===(n=s.info)||void 0===n?void 0:n.gameCode}}),o(100*e)}));case 4:case"end":return e.stop()}}),e)})))()}),[]),t}();return gr({gameConfig:pt.Z.gameConfig.bauCua}),(0,wt.jsx)(wo,{progress:t,children:(0,wt.jsxs)("div",{ref:n,className:"mini-game-gamePanel-baucua-warp",children:[(0,wt.jsx)(bu,{}),(0,wt.jsx)(ju,{}),(0,wt.jsx)(Pu,{})]})})}))),Nu=t(45008),Bu=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).useDrawNear,n=void 0===e||e,t=(0,r.useState)(!0),o=(0,ot.Z)(t,2),s=o[0],u=o[1],l=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),d=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(l)).data,m=(0,zn.ip)(n?l:Nu.CN),f=m.isLoading,p=m.isError,g=(0,zn.VO)(l),h=g.isLoading,v=g.refetch,b=function(e){var n=(0,zn.eM)(e),t=n.refetch,o=n.isLoading,c=n.isError;return(0,r.useEffect)((function(){var e=(0,Fn.Z_)(),n=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===JSON.parse(n).content.indexOf("LGSGAMESETTING")){e.next=5;break}return e.next=4,(0,Fn.gw)(2e3);case 4:t();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return e&&at.subscribeGameSettingChannel(e,n),function(){e&&at.unsubscribeGameSettingChannel(e)}}),[e,t]),{isLoading:o,isError:c}}(l),x=b.isLoading,y=b.isError;return function(e){var n=(0,zn.Ij)(e),t=n.refetch,o=n.isLoading,c=n.isError;(0,r.useEffect)((function(){var e=(0,Fn.Z_)(),n=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===JSON.parse(n).content.indexOf("LGSGAMEPLAYMENU")){e.next=5;break}return e.next=4,(0,Fn.gw)(2e3);case 4:t();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return e&&at.subscribePlayMenuChannel(e,n),function(){e&&at.unsubscribePlayMenuChannel(e)}}),[e,t])}(l),(0,r.useEffect)((function(){v()}),[]),(0,r.useEffect)((function(){if(d){var e=[],n=(0,Fn.mk)(!0,"user_chips_info"),t=d.chipMode;n.selectedIndex&&void 0!==n.selectedIndex[l]?e.push(ft.Z.changeSelectedChip(n.selectedIndex[l],!1)):e.push(ft.Z.changeSelectedChip(t.defaultChipMode-1,!1)),e.push(ft.Z.setChips([t.firstModeValue,t.secondModeValue,t.thirdModeValue,t.fourthModeValue,t.fifthModeValue])),Promise.all(e).finally((function(){u(!1)}))}}),[d,x,y]),{isLoading:x||h||s||n&&f,isError:y||n&&p}},Au=2,Ru={6:"yellow",2:"blue",1:"red",5:"green",3:"pink",4:"white"},Ou={6:"CLR_YELLOW",4:"CLR_WHITE",3:"CLR_PINK",2:"CLR_BLUE",1:"CLR_RED",5:"CLR_GREEN"},Mu=["cyan","red","purple","green","blue"],Zu=[[8,8],[214,8],[420,8],[8,128],[214,128],[420,128]],Du=[320,246],Lu=[100,720],Gu=pt.Z.gameConfig.ui.prefix,Wu=pt.Z.gameConfig.colorGame.prefix,Uu=pt.Z.gameConfig.colorGame,qu=pt.Z.gameConfig.colorGame.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.colorGame.groupPlayId,menuPlayId:e.menuPlayId},n)}))})).flat(),zu=pt.Z.gameConfig.colorGame.groupPlayId,Fu=pt.Z.gameConfig.colorGame.menuInfos[0].menuPlayId,Vu=t(9025),Hu=t(53137),Yu=t(8453),Xu=t(33082),Ku=t(55082),Qu=t(3478),Ju=t(45825),$u=t(19090),el=["red","blue","pink","white","green","yellow"].map((function(e){return function(e){return t(90665)("./img_block_".concat(e,".png"))}(e)})),nl=function(e,n){var t=n.x,a=n.y,i=n.z,r=n.w,o=function(e,n){var t=n.x,a=n.y,i=n.z,r=n.w;return e.x=-t,e.y=-a,e.z=-i,e.w=r,e}(e,n),c=1/(t*t+a*a+i*i+r*r);return o.x*=c,o.y*=c,o.z*=c,o.w*=c,o},tl=function(e,n,t){var a=n,i=e.x,r=e.y,o=e.z,c=t.x,s=t.y,u=t.z,l=t.w,d=l*i+s*o-u*r,m=l*r+u*i-c*o,f=l*o+c*r-s*i,p=-c*i-s*r-u*o;return a.x=d*l+p*-c+m*-u-f*-s,a.y=m*l+p*-s+f*-c-d*-u,a.z=f*l+p*-u+d*-s-m*-c,a},al=30;function il(e){var n=e.position,t=e.status,a=e.winNo,i=(0,Ku.F)(Qu.d,el);
1i[0].colorSpace=Ju.SRGBColorSpace,i[1].colorSpace=Ju.SRGBColorSpace,i[2].colorSpace=Ju.SRGBColorSpace,i[3].colorSpace=Ju.SRGBColorSpace,i[4].colorSpace=Ju.SRGBColorSpace,i[5].colorSpace=Ju.SRGBColorSpace;var o=(0,r.useState)((function(){var e=[0,1,2,3,4,5],n=e.findIndex((function(e){return e===a-1})),t=[e[n],e[4]];return e[4]=t[0],e[n]=t[1],e.map((function(e){return{index:e,texture:i[e]}}))})),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(null),d=(0,r.useRef)(null),m=(0,r.useRef)(!1),f=(0,r.useRef)(0);(0,Ku.C)((function(){if("start"===t){var e,a;if(null!==(e=l.current)&&void 0!==e&&e.isSleeping())return;var i=null===(a=l.current)||void 0===a?void 0:a.rotation();if(i){var r=Ju.MathUtils.radToDeg(i.x),o=Ju.MathUtils.radToDeg(i.y),c=Ju.MathUtils.radToDeg(i.z);(Math.abs(r)>0||Math.abs(o)>0||Math.abs(c)>0)&&h(i)}}else if("back"===t){var s,u;null===(s=l.current)||void 0===s||s.setEnabled(!1),f.current+=1;var d=null===(u=l.current)||void 0===u?void 0:u.translation();if(d&&f.current<al){var m,g=al-f.current,v=p(g,(0,Xu.R3)(d),(0,Xu.R3)({x:n[0],y:n[1],z:n[2]}));null===(m=l.current)||void 0===m||m.setTranslation(v,!1)}}else{var b;f.current=0,null===(b=l.current)||void 0===b||b.setEnabled(!0)}}));var p=function(e,n,t){if(e<=0)return t;var a=n.x+(t.x-n.x)/e,i=n.y+(t.y-n.y)/e,r=n.z+(t.z-n.z)/e;return new Ju.Vector3(a,i,r)},g=function(e){if("number"==typeof a){var n=[0,1,2,3,4,5],t=n.indexOf(e-1);n[t]=a-1;for(var i=t+1,r=t-1;i<6;)n[i]=n[i-1]+1,i++;for(;r>=0;)n[r]=n[r+1]-1,r--;var o=n.map((function(e){return e>5?e-6:e<0?e+6:e}));u((function(e){var n,t,a=e.map((function(e,n,t){var a=o[n],i=t.find((function(e){return e.index===a}));return i||e}));return n=e.map((function(e){return e.index})),t=a.map((function(e){return e.index})),JSON.stringify(n)===JSON.stringify(t)?e:a}))}},h=function(e){var n=new $u.AO,t=new $u._f,a=Math.sin(Math.PI/4);n.set(0,1,0);var i=nl(t,e),r=tl(n,n,i);r.x>a?g(1):r.x<-a?g(2):r.y>a?g(3):r.y<-a?g(4):r.z>a?g(5):r.z<-a&&g(6)};return(0,r.useEffect)((function(){var e;"start"===t&&(m.current=!0,null===(e=l.current)||void 0===e||e.applyImpulse({x:5*(Math.random()<.5?-1:1),y:0,z:0},!0))}),[t,a]),(0,wt.jsx)(Xu.ib,{mass:1,ref:l,colliders:"cuboid",friction:.1,restitution:.4,position:n,onCollisionEnter:function(e){e.manifold,e.target,e.other},children:(0,wt.jsxs)("mesh",{receiveShadow:!0,castShadow:!0,children:[(0,wt.jsx)("boxGeometry",{args:[3,3,3],ref:d}),s.map((function(e,n){return(0,wt.jsx)("meshStandardMaterial",{attach:"material-".concat(n),map:e.texture},n)}))]})})}var rl=20,ol=10,cl=Array.from({length:rl*ol}).map((function(){return Math.random()})),sl=new Ju.PlaneGeometry(ol,rl,ol-1,rl-1),ul=sl.attributes.position.array;function ll(){return(0,wt.jsxs)(Xu.ib,{colliders:!1,rotation:[Math.PI/3,0,0],position:[0,0,8],children:[(0,wt.jsx)("mesh",{geometry:sl,children:(0,wt.jsx)("meshPhysicalMaterial",{transparent:!0,opacity:0,side:2})}),(0,wt.jsx)(Xu.dR,{args:[ol-1,rl-1,cl,{x:6*ol,y:1,z:rl/2}]})]})}cl.forEach((function(e,n){return ul[3*n+2]=e})),sl.scale(1,-1,1),sl.rotateX(-Math.PI/2),sl.rotateY(-Math.PI/2),sl.computeVertexNormals();var dl=function(){return(0,wt.jsx)(Xu.ib,{type:"fixed",colliders:"cuboid",friction:.4,position:[0,-3,10],mass:0,name:"floor",children:(0,wt.jsx)(Hu.xu,{args:[30,1,45],receiveShadow:!0,children:(0,wt.jsx)("shadowMaterial",{opacity:.4})})})};function ml(e){var n,t=e.width,a=e.height,i=(0,r.useRef)(null),o=(0,Yu.j)(c.ET),s=(0,r.useState)("stop"),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=(0,r.useState)(!0),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=(0,r.useState)(0),v=(0,ot.Z)(h,2),b=v[0],x=v[1],y=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),_=(0,r.useRef)(0),w=(0,r.useRef)(""),T=(0,c.v9)((function(e){return e.gameDrawHistoryInfo})),k=T.drawHistory||[],I=null===(n=k[0])||void 0===n?void 0:n.winNo,C=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e,n;switch(""===w.current&&k.length>0&&(w.current=null===(n=k[0])||void 0===n?void 0:n.numero),y){case $t.x3.BET_NOW:break;case $t.x3.BET_LOCKED:_.current>0&&(d("back"),setTimeout((function(){null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(Wu,"_s_dicemove"),{volume:1}),x((function(e){return e+1})),d("stop"),g(!0)}),500));break;case $t.x3.WAIT_DRAW:var t;w.current!==(null===(e=k[0])||void 0===e?void 0:e.numero)&&(d("start"),g(!1),_.current+=1,w.current=null===(t=k[0])||void 0===t?void 0:t.numero,C.current=setTimeout((function(){null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(Wu,"_s_dicerolling"),{volume:1})}),500));case $t.x3.DRAW:}}),[y,T]),(0,r.useEffect)((function(){return function(){C.current&&clearTimeout(C.current)}}),[]),(0,wt.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,margin:"auto",width:t,height:a,zIndex:1},children:(0,wt.jsx)(Vu.Xz,{ref:i,gl:{alpha:!0,antialias:!0},camera:{fov:45,near:.1,far:1e3,position:[0,10,45]},shadows:!0,children:(0,wt.jsx)(o,{children:(0,wt.jsx)(r.Suspense,{children:(0,wt.jsxs)(Xu.wI,{paused:p,gravity:[0,-200,8],colliders:!1,children:[(0,wt.jsx)("ambientLight",{intensity:2}),(0,wt.jsx)("directionalLight",{castShadow:!0,position:[10,10,10],"shadow-camera-bottom":-40,"shadow-camera-top":40,"shadow-camera-left":-40,"shadow-camera-right":40,"shadow-mapSize-width":1024,"shadow-bias":-1e-4}),k.length>0&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(il,{position:[-3.7,11.8,8],status:l,winNo:Number(I[0])}),(0,wt.jsx)(il,{position:[0,11.8,8],status:l,winNo:Number(I[1])}),(0,wt.jsx)(il,{position:[3.7,11.8,8],status:l,winNo:Number(I[2])})]}),(0,wt.jsx)(ll,{}),(0,wt.jsx)(Xu.ib,{type:"fixed",colliders:"cuboid",mass:0,friction:0,position:[0,-2,30],rotation:[Math.PI/2,0,0],children:(0,wt.jsx)(Hu.xu,{args:[30,10,10],"material-transparent":!0,"material-opacity":0})}),(0,wt.jsx)(Xu.ib,{type:"fixed",colliders:"cuboid",mass:0,friction:0,position:[-10.7,-2,7],rotation:[0,0,Math.PI/2],children:(0,wt.jsx)(Hu.xu,{args:[5,5,30],"material-transparent":!0,"material-opacity":0})}),(0,wt.jsx)(Xu.ib,{type:"fixed",colliders:"cuboid",mass:0,friction:0,position:[10.7,-2,7],rotation:[0,0,Math.PI/2],children:(0,wt.jsx)(Hu.xu,{args:[5,5,30],"material-transparent":!0,"material-opacity":0})}),(0,wt.jsx)(dl,{})]},b)})})})})}var fl,pl,gl,hl,vl,bl,xl,yl,_l,wl=pt.Z.gameConfig.ui.prefix,Tl=[{src:t(86102),alias:["".concat(wl,"_casinoChips_blue")]},{src:t(30567),alias:["".concat(wl,"_casinoChips_red")]},{src:t(63953),alias:["".concat(wl,"_casinoChips_green")]},{src:t(61923),alias:["".concat(wl,"_casinoChips_purple")]},{src:t(75783),alias:["".concat(wl,"_casinoChips_cyan")]},{src:t(94825),alias:["".concat(wl,"_casinoChips_mask")]},{src:t(48112),alias:["".concat(wl,"_casinoChips_new")]}],kl=pt.Z.gameConfig.ui.prefix,Il="".concat("/mini-game/s1","/"),Cl=[{src:"".concat(Il,"sprite-sheet/auto_bet_button/auto_bet_button.json")},{src:"".concat(Il,"sprite-sheet/auto_bet_button/auto_bet_button_v2.json")}],El=[{src:t(5209),alias:["".concat(kl,"_btn_closeAll_normal.png")]},{src:t(48474),alias:["".concat(kl,"_btn_closeAll_disable.png")]},{src:t(41574),alias:["".concat(kl,"_btn_bet_normal.png")]},{src:t(28158),alias:["".concat(kl,"_btn_bet_press.png")]},{src:t(24257),alias:["".concat(kl,"_btn_repeat_normal.png")]},{src:t(48463),alias:["".concat(kl,"_btn_repeat_disable.png")]},{src:t(96801),alias:["".concat(kl,"_btn_repeat_normal_v2.png")]},{src:t(979),alias:["".concat(kl,"_btn_repeat_disable_v2.png")]},{src:t(4518),alias:["".concat(kl,"_btn_auto_stop_v2.png")]},{src:t(74255),alias:["".concat(kl,"_btn_edit_normal.png")]},{src:t(11757),alias:["".concat(kl,"_btn_edit_normal_v2.png")]},{src:t(92766),alias:["".concat(kl,"_btn_edit_press.png")]},{src:t(73999),alias:["".concat(kl,"_btn_help_normal.png")]},{src:t(62414),alias:["".concat(kl,"_btn_help_press.png")]},{src:t(5873),alias:["".concat(kl,"_btn_leave_normal.png")]},{src:t(64822),alias:["".concat(kl,"_btn_leave_press.png")]},{src:t(2294),alias:["".concat(kl,"_btn_music_normal.png")]},{src:t(38706),alias:["".concat(kl,"_btn_music_press.png")]},{src:t(27882),alias:["".concat(kl,"_btn_auto_normal.png")]},{src:t(56184),alias:["".concat(kl,"_btn_auto_disable.png")]},{src:t(59127),alias:["".concat(kl,"_btn_auto_disable_v2.png")]},{src:t(41702),alias:["".concat(kl,"_btn_double_normal.png")]},{src:t(10116),alias:["".concat(kl,"_btn_double_disable.png")]},{src:t(5251),alias:["".concat(kl,"_btn_undo_normal.png")]},{src:t(59284),alias:["".concat(kl,"_btn_undo_disable.png")]},{src:t(31441),alias:["".concat(kl,"_btn_auto_stop.png")]}].concat(Cl),jl=pt.Z.gameConfig.ui.prefix,Pl=[{src:t(89757),alias:["".concat(jl,"_numberPeople")]}],Sl=pt.Z.gameConfig.colorGame.prefix,Nl=[{src:t(36268),alias:["".concat(Sl,"_choose_blue")]},{src:t(75374),alias:["".concat(Sl,"_choose_red")]},{src:t(2537),alias:["".concat(Sl,"_choose_green")]},{src:t(57574),alias:["".concat(Sl,"_choose_yellow")]},{src:t(88393),alias:["".concat(Sl,"_choose_pink")]},{src:t(21545),alias:["".concat(Sl,"_choose_white")]},{src:t(76297),alias:["".concat(Sl,"_choose_frame")]},{src:t(95931),alias:["".concat(Sl,"_choose_light")]},{src:t(71301),alias:["".concat(Sl,"_choose_textBar")]},{src:t(67889),alias:["".concat(Sl,"_choose_mask")]}],Bl=[{src:t(71065),alias:["".concat(Sl,"_result_blue")]},{src:t(15537),alias:["".concat(Sl,"_result_red")]},{src:t(66886),alias:["".concat(Sl,"_result_green")]},{src:t(65848),alias:["".concat(Sl,"_result_yellow")]},{src:t(78831),alias:["".concat(Sl,"_result_pink")]},{src:t(15251),alias:["".concat(Sl,"_result_white")]},{src:t(43544),alias:["".concat(Sl,"_result_frame")]}],Al=[{src:t(47889),alias:["".concat(Sl,"_box")]},{src:t(50300),alias:["".concat(Sl,"_boxbar")]}],Rl=[{src:t(67106),alias:["".concat(Sl,"_trend_main")]},{src:t(9068),alias:["".concat(Sl,"_trend_combination_black")]},{src:t(93795),alias:["".concat(Sl,"_trend_combination_new")]},{src:t(82168),alias:["".concat(Sl,"_trend_combination_yellow")]},{src:t(18465),alias:["".concat(Sl,"_trend_combination_white")]},{src:t(14174),alias:["".concat(Sl,"_trend_combination_pink")]},{src:t(62295),alias:["".concat(Sl,"_trend_combination_blue")]},{src:t(20545),alias:["".concat(Sl,"_trend_combination_red")]},{src:t(87159),alias:["".concat(Sl,"_trend_combination_green")]}],Ol=[{src:t(21427),alias:["".concat(Sl,"_odds1")]},{src:t(12210),alias:["".concat(Sl,"_odds2")]},{src:t(62750),alias:["".concat(Sl,"_odds3")]}],Ml=[{src:t(14863),alias:["".concat(Sl,"_bg")]},{src:t(52564),alias:["".concat(Sl,"_coalBall")]},{src:t(70272),alias:["".concat(Sl,"_coalBall2")]},{src:t(97729),alias:["".concat(Sl,"_coin_orange")]},{src:t(30208),alias:["".concat(Sl,"_gold")]},{src:t(97225),alias:["".concat(Sl,"_silver")]}].concat(Al,Nl,(0,u.Z)(Tl),Bl,Ol,Rl,(0,u.Z)(El),(0,u.Z)(Pl)),Zl=(fl={},(0,l.Z)(fl,"".concat(Sl,"_bgm_colorgame"),t(89426)),(0,l.Z)(fl,"".concat(Sl,"_s_dicemove"),t(97751)),(0,l.Z)(fl,"".concat(Sl,"_s_dicerolling"),t(73739)),(0,l.Z)(fl,"".concat(Sl,"_s_snowresult"),t(10465)),fl),Dl=pt.Z.gameConfig.ui.prefix,Ll=(pl={},(0,l.Z)(pl,"".concat(Dl,"_s_button_01"),t(53426)),(0,l.Z)(pl,"".concat(Dl,"_s_button_02"),t(57616)),(0,l.Z)(pl,"".concat(Dl,"_s_button_03"),t(68299)),(0,l.Z)(pl,"".concat(Dl,"_s_chip_01"),t(10903)),(0,l.Z)(pl,"".concat(Dl,"_s_chip_02"),t(54091)),(0,l.Z)(pl,"".concat(Dl,"_s_chip_03"),t(4769)),(0,l.Z)(pl,"".concat(Dl,"_s_dingding"),t(7223)),(0,l.Z)(pl,"".concat(Dl,"_s_ring"),t(5680)),(0,l.Z)(pl,"".concat(Dl,"_s_lock"),t(5625)),(0,l.Z)(pl,"".concat(Dl,"_v_betlocked_en"),t(77362)),(0,l.Z)(pl,"".concat(Dl,"_v_plsbetnow_en"),t(28769)),(0,l.Z)(pl,"".concat(Dl,"_v_betlocked_cn"),t(91104)),(0,l.Z)(pl,"".concat(Dl,"_v_plsbetnow_cn"),t(4990)),(0,l.Z)(pl,"".concat(Dl,"_s_win"),t(51459)),(0,l.Z)(pl,"".concat(Dl,"_s_playerwin"),t(11503)),pl),Gl=r.memo((function(){return(0,wt.jsx)("div",{className:"mini-game-loader"})}
1)),Wl=t(71065),Ul=t(15537),ql=t(66886),zl=t(65848),Fl=t(78831),Vl={6:zl,4:t(15251),3:Fl,2:Wl,1:Ul,5:ql},Hl=function(e){var n=e.bettingContent;return(0,wt.jsx)("div",{className:"mini-game-default-result-wrap mini-game-clr-result",children:(0,wt.jsx)("img",{src:function(e){var n=e.split(",")[0];return Vl[n]}(n),alt:"blue-result"})})},Yl=function(e){var n=e.bettingContent,t=(0,Fn.he)("containers.GamesBetHistory.BacBo."),a=function(e){return{0:"banker",1:"player",2:"tie"}[e]}(n);return(0,wt.jsx)("div",{className:"mini-game-default-result-wrap mini-game-bcb-result",children:t(a)})},Xl=t(7710),Kl=Xl.Reader,Ql=Xl.Writer,Jl=Xl.util,$l=Xl.roots.default||(Xl.roots.default={}),ed=($l.com=((_l={}).tcg=((yl={}).ws_game_server_21=((xl={}).GameBaseWs=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.gameCode="",e.prototype.orderNo="",e.prototype.payload=null,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.gameCode&&Object.hasOwnProperty.call(e,"gameCode")&&n.uint32(10).string(e.gameCode),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(18).string(e.orderNo),null!=e.payload&&Object.hasOwnProperty.call(e,"payload")&&$l.google.protobuf.Any.encode(e.payload,n.uint32(26).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.GameBaseWs;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.gameCode=e.string();break;case 2:a.orderNo=e.string();break;case 3:a.payload=$l.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.gameCode&&e.hasOwnProperty("gameCode")&&!Jl.isString(e.gameCode))return"gameCode: string expected";if(null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo))return"orderNo: string expected";if(null!=e.payload&&e.hasOwnProperty("payload")){var n=$l.google.protobuf.Any.verify(e.payload);if(n)return"payload."+n}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.GameBaseWs"},e}(),xl.crg=((vl={}).CrgWsRq=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}var n;return e.prototype.rqErrorPayload=null,e.prototype.heartbeatPayLoad=null,e.prototype.pickBlockPayload=null,e.prototype.rqStartPayload=null,e.prototype.rqEndPayload=null,e.prototype.rqInitGamePayload=null,e.prototype.rqAutoPickBlockPayload=null,Object.defineProperty(e.prototype,"payload",{get:Jl.oneOfGetter(n=["rqErrorPayload","heartbeatPayLoad","pickBlockPayload","rqStartPayload","rqEndPayload","rqInitGamePayload","rqAutoPickBlockPayload"]),set:Jl.oneOfSetter(n)}),e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.rqErrorPayload&&Object.hasOwnProperty.call(e,"rqErrorPayload")&&$l.com.tcg.ws_game_server_21.crg.RqErrorPayload.encode(e.rqErrorPayload,n.uint32(26).fork()).ldelim(),null!=e.heartbeatPayLoad&&Object.hasOwnProperty.call(e,"heartbeatPayLoad")&&$l.com.tcg.ws_game_server_21.crg.HeartbeatPayload.encode(e.heartbeatPayLoad,n.uint32(34).fork()).ldelim(),null!=e.pickBlockPayload&&Object.hasOwnProperty.call(e,"pickBlockPayload")&&$l.com.tcg.ws_game_server_21.crg.PickBlockPayload.encode(e.pickBlockPayload,n.uint32(42).fork()).ldelim(),null!=e.rqStartPayload&&Object.hasOwnProperty.call(e,"rqStartPayload")&&$l.com.tcg.ws_game_server_21.crg.RqStartPayload.encode(e.rqStartPayload,n.uint32(50).fork()).ldelim(),null!=e.rqEndPayload&&Object.hasOwnProperty.call(e,"rqEndPayload")&&$l.com.tcg.ws_game_server_21.crg.RqEndPayload.encode(e.rqEndPayload,n.uint32(58).fork()).ldelim(),null!=e.rqInitGamePayload&&Object.hasOwnProperty.call(e,"rqInitGamePayload")&&$l.com.tcg.ws_game_server_21.crg.RqInitGamePayload.encode(e.rqInitGamePayload,n.uint32(66).fork()).ldelim(),null!=e.rqAutoPickBlockPayload&&Object.hasOwnProperty.call(e,"rqAutoPickBlockPayload")&&$l.com.tcg.ws_game_server_21.crg.RqAutoPickBlockPayload.encode(e.rqAutoPickBlockPayload,n.uint32(74).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.CrgWsRq;e.pos<t;){var i=e.uint32();switch(i>>>3){case 3:a.rqErrorPayload=$l.com.tcg.ws_game_server_21.crg.RqErrorPayload.decode(e,e.uint32());break;case 4:a.heartbeatPayLoad=$l.com.tcg.ws_game_server_21.crg.HeartbeatPayload.decode(e,e.uint32());break;case 5:a.pickBlockPayload=$l.com.tcg.ws_game_server_21.crg.PickBlockPayload.decode(e,e.uint32());break;case 6:a.rqStartPayload=$l.com.tcg.ws_game_server_21.crg.RqStartPayload.decode(e,e.uint32());break;case 7:a.rqEndPayload=$l.com.tcg.ws_game_server_21.crg.RqEndPayload.decode(e,e.uint32());break;case 8:a.rqInitGamePayload=$l.com.tcg.ws_game_server_21.crg.RqInitGamePayload.decode(e,e.uint32());break;case 9:a.rqAutoPickBlockPayload=$l.com.tcg.ws_game_server_21.crg.RqAutoPickBlockPayload.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var n={};if(null!=e.rqErrorPayload&&e.hasOwnProperty("rqErrorPayload")){n.payload=1;var t=$l.com.tcg.ws_game_server_21.crg.RqErrorPayload.verify(e.rqErrorPayload);if(t)return"rqErrorPayload."+t}if(null!=e.heartbeatPayLoad&&e.hasOwnProperty("heartbeatPayLoad")){if(1===n.payload)return"payload: multiple values";n.payload=1;var a=$l.com.tcg.ws_game_server_21.crg.HeartbeatPayload.verify(e.heartbeatPayLoad);if(a)return"heartbeatPayLoad."+a}if(null!=e.pickBlockPayload&&e.hasOwnProperty("pickBlockPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var i=$l.com.tcg.ws_game_server_21.crg.PickBlockPayload.verify(e.pickBlockPayload);if(i)return"pickBlockPayload."+i}if(null!=e.rqStartPayload&&e.hasOwnProperty("rqStartPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var r=$l.com.tcg.ws_game_server_21.crg.RqStartPayload.verify(e.rqStartPayload);if(r)return"rqStartPayload."+r}if(null!=e.rqEndPayload&&e.hasOwnProperty("rqEndPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var o=$l.com.tcg.ws_game_server_21.crg.RqEndPayload.verify(e.rqEndPayload);if(o)return"rqEndPayload."+o}if(null!=e.rqInitGamePayload&&e.hasOwnProperty("rqInitGamePayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var c=$l.com.tcg.ws_game_server_21.crg.RqInitGamePayload.verify(e.rqInitGamePayload);if(c)return"rqInitGamePayload."+c}if(null!=e.rqAutoPickBlockPayload&&e.hasOwnProperty("rqAutoPickBlockPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var s=$l.com.tcg.ws_game_server_21.crg.RqAutoPickBlockPayload.verify(e.rqAutoPickBlockPayload);if(s)return"rqAutoPickBlockPayload."+s}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.CrgWsRq"},e}(),vl.RqErrorPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.code="",e.prototype.msg="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&n.uint32(10).string(e.code),null!=e.msg&&Object.hasOwnProperty.call(e,"msg")&&n.uint32(18).string(e.msg),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RqErrorPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.code=e.string();break;case 2:a.msg=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.code&&e.hasOwnProperty("code")&&!Jl.isString(e.code)?"code: string expected":null!=e.msg&&e.hasOwnProperty("msg")&&!Jl.isString(e.msg)?"msg: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RqErrorPayload"},e}(),vl.HeartbeatPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.HeartbeatPayload;e.pos<t;){var i=e.uint32();e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.HeartbeatPayload"},e}(),vl.PickBlockPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.pickedBlock=0,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.pickedBlock&&Object.hasOwnProperty.call(e,"pickedBlock")&&n.uint32(8).int32(e.pickedBlock),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.PickBlockPayload;e.pos<t;){var i=e.uint32();i>>>
13==1?a.pickedBlock=e.int32():e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.pickedBlock&&e.hasOwnProperty("pickedBlock")&&!Jl.isInteger(e.pickedBlock)?"pickedBlock: integer expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.PickBlockPayload"},e}(),vl.RqStartPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.crgNums=0,e.prototype.betAmount="",e.prototype.playId=0,e.prototype.device="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.crgNums&&Object.hasOwnProperty.call(e,"crgNums")&&n.uint32(8).int32(e.crgNums),null!=e.betAmount&&Object.hasOwnProperty.call(e,"betAmount")&&n.uint32(18).string(e.betAmount),null!=e.playId&&Object.hasOwnProperty.call(e,"playId")&&n.uint32(24).int32(e.playId),null!=e.device&&Object.hasOwnProperty.call(e,"device")&&n.uint32(34).string(e.device),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RqStartPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.crgNums=e.int32();break;case 2:a.betAmount=e.string();break;case 3:a.playId=e.int32();break;case 4:a.device=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.crgNums&&e.hasOwnProperty("crgNums")&&!Jl.isInteger(e.crgNums)?"crgNums: integer expected":null!=e.betAmount&&e.hasOwnProperty("betAmount")&&!Jl.isString(e.betAmount)?"betAmount: string expected":null!=e.playId&&e.hasOwnProperty("playId")&&!Jl.isInteger(e.playId)?"playId: integer expected":null!=e.device&&e.hasOwnProperty("device")&&!Jl.isString(e.device)?"device: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RqStartPayload"},e}(),vl.RqEndPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RqEndPayload;e.pos<t;){var i=e.uint32();e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RqEndPayload"},e}(),vl.RqInitGamePayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.roomId="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.roomId&&Object.hasOwnProperty.call(e,"roomId")&&n.uint32(10).string(e.roomId),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RqInitGamePayload;e.pos<t;){var i=e.uint32();i>>>3==1?a.roomId=e.string():e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.roomId&&e.hasOwnProperty("roomId")&&!Jl.isString(e.roomId)?"roomId: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RqInitGamePayload"},e}(),vl.RqAutoPickBlockPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.crgNums=0,e.prototype.pickedBlocks="",e.prototype.betAmount="",e.prototype.playId=0,e.prototype.device="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.crgNums&&Object.hasOwnProperty.call(e,"crgNums")&&n.uint32(8).int32(e.crgNums),null!=e.pickedBlocks&&Object.hasOwnProperty.call(e,"pickedBlocks")&&n.uint32(18).string(e.pickedBlocks),null!=e.betAmount&&Object.hasOwnProperty.call(e,"betAmount")&&n.uint32(26).string(e.betAmount),null!=e.playId&&Object.hasOwnProperty.call(e,"playId")&&n.uint32(32).int32(e.playId),null!=e.device&&Object.hasOwnProperty.call(e,"device")&&n.uint32(42).string(e.device),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RqAutoPickBlockPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.crgNums=e.int32();break;case 2:a.pickedBlocks=e.string();break;case 3:a.betAmount=e.string();break;case 4:a.playId=e.int32();break;case 5:a.device=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.crgNums&&e.hasOwnProperty("crgNums")&&!Jl.isInteger(e.crgNums)?"crgNums: integer expected":null!=e.pickedBlocks&&e.hasOwnProperty("pickedBlocks")&&!Jl.isString(e.pickedBlocks)?"pickedBlocks: string expected":null!=e.betAmount&&e.hasOwnProperty("betAmount")&&!Jl.isString(e.betAmount)?"betAmount: string expected":null!=e.playId&&e.hasOwnProperty("playId")&&!Jl.isInteger(e.playId)?"playId: integer expected":null!=e.device&&e.hasOwnProperty("device")&&!Jl.isString(e.device)?"device: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RqAutoPickBlockPayload"},e}(),vl.CrgWsRs=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}var n;return e.prototype.rsErrorPayload=null,e.prototype.blocksPayload=null,e.prototype.rsStartPayload=null,e.prototype.rsEndPayload=null,e.prototype.rsInitGamePayload=null,e.prototype.rsAutoEndPayload=null,Object.defineProperty(e.prototype,"payload",{get:Jl.oneOfGetter(n=["rsErrorPayload","blocksPayload","rsStartPayload","rsEndPayload","rsInitGamePayload","rsAutoEndPayload"]),set:Jl.oneOfSetter(n)}),e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.rsErrorPayload&&Object.hasOwnProperty.call(e,"rsErrorPayload")&&$l.com.tcg.ws_game_server_21.crg.RsErrorPayload.encode(e.rsErrorPayload,n.uint32(26).fork()).ldelim(),null!=e.blocksPayload&&Object.hasOwnProperty.call(e,"blocksPayload")&&$l.com.tcg.ws_game_server_21.crg.BlocksPayload.encode(e.blocksPayload,n.uint32(34).fork()).ldelim(),null!=e.rsStartPayload&&Object.hasOwnProperty.call(e,"rsStartPayload")&&$l.com.tcg.ws_game_server_21.crg.RsStartPayload.encode(e.rsStartPayload,n.uint32(42).fork()).ldelim(),null!=e.rsEndPayload&&Object.hasOwnProperty.call(e,"rsEndPayload")&&$l.com.tcg.ws_game_server_21.crg.RsEndPayload.encode(e.rsEndPayload,n.uint32(50).fork()).ldelim(),null!=e.rsInitGamePayload&&Object.hasOwnProperty.call(e,"rsInitGamePayload")&&$l.com.tcg.ws_game_server_21.crg.RsInitGamePayload.encode(e.rsInitGamePayload,n.uint32(58).fork()).ldelim(),null!=e.rsAutoEndPayload&&Object.hasOwnProperty.call(e,"rsAutoEndPayload")&&$l.com.tcg.ws_game_server_21.crg.RsAutoEndPayload.encode(e.rsAutoEndPayload,n.uint32(66).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.CrgWsRs;e.pos<t;){var i=e.uint32();switch(i>>>3){case 3:a.rsErrorPayload=$l.com.tcg.ws_game_server_21.crg.RsErrorPayload.decode(e,e.uint32());break;case 4:a.blocksPayload=$l.com.tcg.ws_game_server_21.crg.BlocksPayload.decode(e,e.uint32());break;case 5:a.rsStartPayload=$l.com.tcg.ws_game_server_21.crg.RsStartPayload.decode(e,e.uint32());break;case 6:a.rsEndPayload=$l.com.tcg.ws_game_server_21.crg.RsEndPayload.decode(e,e.uint32());break;case 7:a.rsInitGamePayload=$l.com.tcg.ws_game_server_21.crg.RsInitGamePayload.decode(e,e.uint32());break;case 8:a.rsAutoEndPayload=$l.com.tcg.ws_game_server_21.crg.RsAutoEndPayload.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var n={};if(null!=e.rsErrorPayload&&e.hasOwnProperty("rsErrorPayload")){n.payload=1;var t=$l.com.tcg.ws_game_server_21.crg.RsErrorPayload.verify(e.rsErrorPayload);if(t)return"rsErrorPayload."+t}if(null!=e.blocksPayload&&e.hasOwnProperty("blocksPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var a=$l.com.tcg.ws_game_server_21.crg.BlocksPayload.verify(e.blocksPayload);if(a)return"blocksPayload."+a}if(null!=e.rsStartPayload&&e.hasOwnProperty("rsStartPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var i=$l.com.tcg.ws_game_server_21.crg.RsStartPayload.verify(e.rsStartPayload);if(i)return"rsStartPayload."+i}if(null!=e.rsEndPayload&&e.hasOwnProperty("rsEndPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var r=$l.com.tcg.ws_game_server_21.crg.RsEndPayload.verify(e.rsEndPayload);if(r)return"rsEndPayload."+r}if(null!=e.rsInitGamePayload&&e.hasOwnProperty("rsInitGamePayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var o=$l.com.tcg.ws_game_server_21.crg.RsInitGamePayload.verify(e.rsInitGamePayload);if(o)return"rsInitGamePayload."+o}if(null!=e.rsAutoEndPayload&&e.hasOwnProperty("rsAutoEndPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var c=$l.com.tcg.ws_game_server_21.crg.RsAutoEndPayload.verify(e.rsAutoEndPayload);if(c)return"rsAutoEndPayload."+c}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.CrgWsRs"},e}(),vl.RsErrorPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.code="",e.prototype.msg="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&n.uint32(10).string(e.code),null!=e.msg&&Object.hasOwnProperty.call(e,"msg")&&n.uint32(18).string(e.msg),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RsErrorPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.code=e.string();break;case 2:a.msg=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.code&&e.hasOwnProperty("code")&&!Jl.isString(e.code)?"code: string expected":null!=e.msg&&e.hasOwnProperty("msg")&&!Jl.isString(e.msg)?"msg: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RsErrorPayload"},e}(),vl.BlocksPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.pickedBlock=0,e.prototype.currentResult=0,e.prototype.chooseList=null,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.pickedBlock&&Object.hasOwnProperty.call(e,"pickedBlock")&&n.uint32(16).int32(e.pickedBlock),null!=e.currentResult&&Object.hasOwnProperty.call(e,"currentResult")&&n.uint32(24).int32(e.currentResult),null!=e.chooseList&&Object.hasOwnProperty.call(e,"chooseList")&&$l.com.tcg.ws_game_server_21.crg.ChooseList.encode(e.chooseList,n.uint32(34).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.BlocksPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.pickedBlock=e.int32();break;case 3:a.currentResult=e.int32();break;case 4:a.chooseList=$l.com.tcg.ws_game_server_21.crg.ChooseList.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo))return"orderNo: string expected";if(null!=e.pickedBlock&&e.hasOwnProperty("pickedBlock")&&!Jl.isInteger(e.pickedBlock))return"pickedBlock: integer expected";if(null!=e.currentResult&&e.hasOwnProperty("currentResult")&&!Jl.isInteger(e.currentResult))return"currentResult: integer expected";if(null!=e.chooseList&&e.hasOwnProperty("chooseList")){var n=$l.com.tcg.ws_game_server_21.crg.ChooseList.verify(e.chooseList);if(n)return"chooseList."+n}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.BlocksPayload"},e}(),vl.ChooseList=function(){function e(e){if(this.chooseBlocks=[],e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.chooseBlocks=Jl.emptyArray,e.create=function(n){return new e(n)},e.encode=function(e,n){if(n||(n=Ql.create()),null!=e.chooseBlocks&&e.chooseBlocks.length){n.uint32(10).fork();for(var t=0;t<e.chooseBlocks.length;++t)n.int32(e.chooseBlocks[t]);n.ldelim()}return n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.ChooseList;e.pos<t;){var i=e.uint32();if(i>>>
13==1)if(a.chooseBlocks&&a.chooseBlocks.length||(a.chooseBlocks=[]),2==(7&i))for(var r=e.uint32()+e.pos;e.pos<r;)a.chooseBlocks.push(e.int32());else a.chooseBlocks.push(e.int32());else e.skipType(7&i)}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.chooseBlocks&&e.hasOwnProperty("chooseBlocks")){if(!Array.isArray(e.chooseBlocks))return"chooseBlocks: array expected";for(var n=0;n<e.chooseBlocks.length;++n)if(!Jl.isInteger(e.chooseBlocks[n]))return"chooseBlocks: integer[] expected"}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.ChooseList"},e}(),vl.RsStartPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.numeroNo="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.numeroNo&&Object.hasOwnProperty.call(e,"numeroNo")&&n.uint32(18).string(e.numeroNo),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RsStartPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.numeroNo=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo)?"orderNo: string expected":null!=e.numeroNo&&e.hasOwnProperty("numeroNo")&&!Jl.isString(e.numeroNo)?"numeroNo: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RsStartPayload"},e}(),vl.RsEndPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.crgResult="",e.prototype.chooseResult="",e.prototype.winAmount="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.crgResult&&Object.hasOwnProperty.call(e,"crgResult")&&n.uint32(18).string(e.crgResult),null!=e.chooseResult&&Object.hasOwnProperty.call(e,"chooseResult")&&n.uint32(26).string(e.chooseResult),null!=e.winAmount&&Object.hasOwnProperty.call(e,"winAmount")&&n.uint32(34).string(e.winAmount),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RsEndPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.crgResult=e.string();break;case 3:a.chooseResult=e.string();break;case 4:a.winAmount=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo)?"orderNo: string expected":null!=e.crgResult&&e.hasOwnProperty("crgResult")&&!Jl.isString(e.crgResult)?"crgResult: string expected":null!=e.chooseResult&&e.hasOwnProperty("chooseResult")&&!Jl.isString(e.chooseResult)?"chooseResult: string expected":null!=e.winAmount&&e.hasOwnProperty("winAmount")&&!Jl.isString(e.winAmount)?"winAmount: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RsEndPayload"},e}(),vl.RsInitGamePayload=function(){function e(e){if(this.rtpOddsSetting={},e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.roomId="",e.prototype.availBalance="",e.prototype.rtpOddsSetting=Jl.emptyObject,e.prototype.chipMod=null,e.create=function(n){return new e(n)},e.encode=function(e,n){if(n||(n=Ql.create()),null!=e.roomId&&Object.hasOwnProperty.call(e,"roomId")&&n.uint32(10).string(e.roomId),null!=e.availBalance&&Object.hasOwnProperty.call(e,"availBalance")&&n.uint32(18).string(e.availBalance),null!=e.rtpOddsSetting&&Object.hasOwnProperty.call(e,"rtpOddsSetting"))for(var t=Object.keys(e.rtpOddsSetting),a=0;a<t.length;++a)n.uint32(26).fork().uint32(8).int32(t[a]),$l.com.tcg.ws_game_server_21.crg.OddsList.encode(e.rtpOddsSetting[t[a]],n.uint32(18).fork()).ldelim().ldelim();return null!=e.chipMod&&Object.hasOwnProperty.call(e,"chipMod")&&$l.com.tcg.ws_game_server_21.crg.ChipMode.encode(e.chipMod,n.uint32(34).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t,a,i=void 0===n?e.len:e.pos+n,r=new $l.com.tcg.ws_game_server_21.crg.RsInitGamePayload;e.pos<i;){var o=e.uint32();switch(o>>>3){case 1:r.roomId=e.string();break;case 2:r.availBalance=e.string();break;case 3:r.rtpOddsSetting===Jl.emptyObject&&(r.rtpOddsSetting={});var c=e.uint32()+e.pos;for(t=0,a=null;e.pos<c;){var s=e.uint32();switch(s>>>3){case 1:t=e.int32();break;case 2:a=$l.com.tcg.ws_game_server_21.crg.OddsList.decode(e,e.uint32());break;default:e.skipType(7&s)}}r.rtpOddsSetting[t]=a;break;case 4:r.chipMod=$l.com.tcg.ws_game_server_21.crg.ChipMode.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.roomId&&e.hasOwnProperty("roomId")&&!Jl.isString(e.roomId))return"roomId: string expected";if(null!=e.availBalance&&e.hasOwnProperty("availBalance")&&!Jl.isString(e.availBalance))return"availBalance: string expected";if(null!=e.rtpOddsSetting&&e.hasOwnProperty("rtpOddsSetting")){if(!Jl.isObject(e.rtpOddsSetting))return"rtpOddsSetting: object expected";for(var n=Object.keys(e.rtpOddsSetting),t=0;t<n.length;++t){if(!Jl.key32Re.test(n[t]))return"rtpOddsSetting: integer key{k:int32} expected";var a=$l.com.tcg.ws_game_server_21.crg.OddsList.verify(e.rtpOddsSetting[n[t]]);if(a)return"rtpOddsSetting."+a}}if(null!=e.chipMod&&e.hasOwnProperty("chipMod")){var i=$l.com.tcg.ws_game_server_21.crg.ChipMode.verify(e.chipMod);if(i)return"chipMod."+i}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RsInitGamePayload"},e}(),vl.ChipMode=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.defaultMode=0,e.prototype.firstModeValue=0,e.prototype.secondModeValue=0,e.prototype.thirdModeValue=0,e.prototype.fourthModeValue=0,e.prototype.fifthModeValue=0,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.defaultMode&&Ob
1ject.hasOwnProperty.call(e,"defaultMode")&&n.uint32(8).int32(e.defaultMode),null!=e.firstModeValue&&Object.hasOwnProperty.call(e,"firstModeValue")&&n.uint32(16).int32(e.firstModeValue),null!=e.secondModeValue&&Object.hasOwnProperty.call(e,"secondModeValue")&&n.uint32(24).int32(e.secondModeValue),null!=e.thirdModeValue&&Object.hasOwnProperty.call(e,"thirdModeValue")&&n.uint32(32).int32(e.thirdModeValue),null!=e.fourthModeValue&&Object.hasOwnProperty.call(e,"fourthModeValue")&&n.uint32(40).int32(e.fourthModeValue),null!=e.fifthModeValue&&Object.hasOwnProperty.call(e,"fifthModeValue")&&n.uint32(48).int32(e.fifthModeValue),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.ChipMode;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.defaultMode=e.int32();break;case 2:a.firstModeValue=e.int32();break;case 3:a.secondModeValue=e.int32();break;case 4:a.thirdModeValue=e.int32();break;case 5:a.fourthModeValue=e.int32();break;case 6:a.fifthModeValue=e.int32();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.defaultMode&&e.hasOwnProperty("defaultMode")&&!Jl.isInteger(e.defaultMode)?"defaultMode: integer expected":null!=e.firstModeValue&&e.hasOwnProperty("firstModeValue")&&!Jl.isInteger(e.firstModeValue)?"firstModeValue: integer expected":null!=e.secondModeValue&&e.hasOwnProperty("secondModeValue")&&!Jl.isInteger(e.secondModeValue)?"secondModeValue: integer expected":null!=e.thirdModeValue&&e.hasOwnProperty("thirdModeValue")&&!Jl.isInteger(e.thirdModeValue)?"thirdModeValue: integer expected":null!=e.fourthModeValue&&e.hasOwnProperty("fourthModeValue")&&!Jl.isInteger(e.fourthModeValue)?"fourthModeValue: integer expected":null!=e.fifthModeValue&&e.hasOwnProperty("fifthModeValue")&&!Jl.isInteger(e.fifthModeValue)?"fifthModeValue: integer expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.ChipMode"},e}(),vl.OddsList=function(){function e(e){if(this.odds=[],e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.odds=Jl.emptyArray,e.create=function(n){return new e(n)},e.encode=function(e,n){if(n||(n=Ql.create()),null!=e.odds&&e.odds.length)for(var t=0;t<e.odds.length;++t)n.uint32(10).string(e.odds[t]);return n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.OddsList;e.pos<t;){var i=e.uint32();i>>>3==1?(a.odds&&a.odds.length||(a.odds=[]),a.odds.push(e.string())):e.skipType(7&i)}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.odds&&e.hasOwnProperty("odds")){if(!Array.isArray(e.odds))return"odds: array expected";for(var n=0;n<e.odds.length;++n)if(!Jl.isString(e.odds[n]))return"odds: string[] expected"}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.OddsList"},e}(),vl.RsAutoEndPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.crgResult="",e.prototype.chooseResult="",e.prototype.winAmount="",e.prototype.numeroNo="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.crgResult&&Object.hasOwnProperty.call(e,"crgResult")&&n.uint32(18).string(e.crgResult),null!=e.chooseResult&&Object.hasOwnProperty.call(e,"chooseResult")&&n.uint32(26).string(e.chooseResult),null!=e.winAmount&&Object.hasOwnProperty.call(e,"winAmount")&&n.uint32(34).string(e.winAmount),null!=e.numeroNo&&Object.hasOwnProperty.call(e,"numeroNo")&&n.uint32(42).string(e.numeroNo),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.crg.RsAutoEndPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.crgResult=e.string();break;case 3:a.chooseResult=e.string();break;case 4:a.winAmount=e.string();break;case 5:a.numeroNo=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo)?"orderNo: string expected":null!=e.crgResult&&e.hasOwnProperty("crgResult")&&!Jl.isString(e.crgResult)?"crgResult: string expected":null!=e.chooseResult&&e.hasOwnProperty("chooseResult")&&!Jl.isString(e.chooseResult)?"chooseResult: string expected":null!=e.winAmount&&e.hasOwnProperty("winAmount")&&!Jl.isString(e.winAmount)?"winAmount: string expected":null!=e.numeroNo&&e.hasOwnProperty("numeroNo")&&!Jl.isString(e.numeroNo)?"numeroNo: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.crg.RsAutoEndPayload"},e}(),vl),xl.mines=((bl={}).MinesWsRq=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}var n;return e.prototype.rqErrorPayload=null,e.prototype.heartbeatPayLoad=null,e.prototype.pickBlockPayload=null,e.prototype.rqStartPayload=null,e.prototype.rqEndPayload=null,e.prototype.rqInitGamePayload=null,e.prototype.rqAutoPickBlockPayload=null,Object.defineProperty(e.prototype,"payload",{get:Jl.oneOfGetter(n=["rqErrorPayload","heartbeatPayLoad","pickBlockPayload","rqStartPayload","rqEndPayload","rqInitGamePayload","rqAutoPickBlockPayload"]),set:Jl.oneOfSetter(n)}),e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.rqErrorPayload&&Object.hasOwnProperty.call(e,"rqErrorPayload")&&$l.com.tcg.ws_game_server_21.mines.RqErrorPayload.encode(e.rqErrorPayload,n.uint32(26).fork()).ldelim(),null!=e.heartbeatPayLoad&&Object.hasOwnProperty.call(e,"heartbeatPayLoad")&&$l.com.tcg.ws_game_server_21.mines.HeartbeatPayload.encode(e.heartbeatPayLoad,n.uint32(34).fork()).ldelim(),null!=e.pickBlockPayload&&Object.hasOwnProperty.call(e,"pickBlockPayload")&&$l.com.tcg.ws_game_server_21.mines.PickBlockPayload.encode(e.pickBlockPayload,n.uint32(42).fork()).ldelim(),null!=e.rqStartPayload&&Object.hasOwnProperty.call(e,"rqStartPayload")&&$l.com.tcg.ws_game_server_21.mines.RqStartPayload.encode(e.rqStartPayload,n.uint32(50).fork()).ldelim(),null!=e.rqEndPayload&&Object.hasOwnProperty.call(e,"rqEndPayload")&&$l.com.tcg.ws_game_server_21.mines.RqEndPayload.encode(e.rqEndPayload,n.uint32(58).fork()).ldelim(),null!=e.rqInitGamePayload&&Object.hasOwnProperty.call(e,"rqInitGamePayload")&&$l.com.tcg.ws_game_server_21.mines.RqInitGamePayload.encode(e.rqInitGamePayload,n.uint32(66).fork()).ldelim(),null!=e.rqAutoPickBlockPayload&&Object.hasOwnProperty.call(e,"rqAutoPickBlockPayload")&&$l.com.tcg.ws_game_server_21.mines.RqAutoPickBlockPayload.encode(e.rqAutoPickBlockPayload,n.uint32(74).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.MinesWsRq;e.pos<t;){var i=e.uint32();switch(i>>>3){case 3:a.rqErrorPayload=$l.com.tcg.ws_game_server_21.mines.RqErrorPayload.decode(e,e.uint32());break;case 4:a.heartbeatPayLoad=$l.com.tcg.ws_game_server_21.mines.HeartbeatPayload.decode(e,e.uint32());break;case 5:a.pickBlockPayload=$l.com.tcg.ws_game_server_21.mines.PickBlockPayload.decode(e,e.uint32());break;case 6:a.rqStartPayload=$l.com.tcg.ws_game_server_21.mines.RqStartPayload.decode(e,e.uint32());break;case 7:a.rqEndPayload=$l.com.tcg.ws_game_server_21.mines.RqEndPayload.decode(e,e.uint32());break;case 8:a.rqInitGamePayload=$l.com.tcg.ws_game_server_21.mines.RqInitGamePayload.decode(e,e.uint32());break;case 9:a.rqAutoPickBlockPayload=$l.com.tcg.ws_game_server_21.mines.RqAutoPickBlockPayload.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var n={};if(null!=e.rqErrorPayload&&e.hasOwnProperty("rqErrorPayload")){n.payload=1;var t=$l.com.tcg.ws_game_server_21.mines.RqErrorPayload.verify(e.rqErrorPayload);if(t)return"rqErrorPayload."+t}if(null!=e.heartbeatPayLoad&&e.hasOwnProperty("heartbeatPayLoad")){if(1===n.payload)return"payload: multiple values";n.payload=1;var a=$l.com.tcg.ws_game_server_21.mines.HeartbeatPayload.verify(e.heartbeatPayLoad);if(a)return"heartbeatPayLoad."+a}if(null!=e.pickBlockPayload&&e.hasOwnProperty("pickBlockPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var i=$l.com.tcg.ws_game_server_21.mines.PickBlockPayload.verify(e.pickBlockPayload);if(i)return"pickBlockPayload."+i}if(null!=e.rqStartPayload&&e.hasOwnProperty("rqStartPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var r=$l.com.tcg.ws_game_server_21.mines.RqStartPayload.verify(e.rqStartPayload);if(r)return"rqStartPayload."+r}if(null!=e.rqEndPayload&&e.hasOwnProperty("rqEndPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var o=$l.com.tcg.ws_game_server_21.mines.RqEndPayload.verify(e.rqEndPayload);if(o)return"rqEndPayload."+o}if(null!=e.rqInitGamePayload&&e.hasOwnProperty("rqInitGamePayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var c=$l.com.tcg.ws_game_server_21.mines.RqInitGamePayload.verify(e.rqInitGamePayload);if(c)return"rqInitGamePayload."+c}if(null!=e.rqAutoPickBlockPayload&&e.hasOwnProperty("rqAutoPickBlockPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var s=$l.com.tcg.ws_game_server_21.mines.RqAutoPickBlockPayload.verify(e.rqAutoPickBlockPayload);if(s)return"rqAutoPickBlockPayload."+s}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.MinesWsRq"},e}(),bl.RqErrorPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.code="",e.prototype.msg="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&n.uint32(10).string(e.code),null!=e.msg&&Object.hasOwnProperty.call(e,"msg")&&n.uint32(18).string(e.msg),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RqErrorPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.code=e.string();break;case 2:a.msg=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.code&&e.hasOwnProperty("code")&&!Jl.isString(e.code)?"code: string expected":null!=e.msg&&e.hasOwnProperty("msg")&&!Jl.isString(e.msg)?"msg: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RqErrorPayload"},e}(),bl.HeartbeatPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.HeartbeatPayload;e.pos<t;){var i=e.uint32();e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.HeartbeatPayload"},e}(),bl.PickBlockPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.pickedBlock=0,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.pickedBlock&&Object.hasOwnProperty.call(e,"pickedBlock")&&n.uint32(8).int32(e.pickedBlock),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.PickBlockPayload;e.pos<t;){var i=e.uint32();i>>>
13==1?a.pickedBlock=e.int32():e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.pickedBlock&&e.hasOwnProperty("pickedBlock")&&!Jl.isInteger(e.pickedBlock)?"pickedBlock: integer expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.PickBlockPayload"},e}(),bl.RqStartPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.minesNums=0,e.prototype.betAmount="",e.prototype.playId=0,e.prototype.device="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.minesNums&&Object.hasOwnProperty.call(e,"minesNums")&&n.uint32(8).int32(e.minesNums),null!=e.betAmount&&Object.hasOwnProperty.call(e,"betAmount")&&n.uint32(18).string(e.betAmount),null!=e.playId&&Object.hasOwnProperty.call(e,"playId")&&n.uint32(24).int32(e.playId),null!=e.device&&Object.hasOwnProperty.call(e,"device")&&n.uint32(34).string(e.device),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RqStartPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.minesNums=e.int32();break;case 2:a.betAmount=e.string();break;case 3:a.playId=e.int32();break;case 4:a.device=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.minesNums&&e.hasOwnProperty("minesNums")&&!Jl.isInteger(e.minesNums)?"minesNums: integer expected":null!=e.betAmount&&e.hasOwnProperty("betAmount")&&!Jl.isString(e.betAmount)?"betAmount: string expected":null!=e.playId&&e.hasOwnProperty("playId")&&!Jl.isInteger(e.playId)?"playId: integer expected":null!=e.device&&e.hasOwnProperty("device")&&!Jl.isString(e.device)?"device: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RqStartPayload"},e}(),bl.RqEndPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RqEndPayload;e.pos<t;){var i=e.uint32();e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RqEndPayload"},e}(),bl.RqInitGamePayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.roomId="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.roomId&&Object.hasOwnProperty.call(e,"roomId")&&n.uint32(10).string(e.roomId),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RqInitGamePayload;e.pos<t;){var i=e.uint32();i>>>3==1?a.roomId=e.string():e.skipType(7&i)}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.roomId&&e.hasOwnProperty("roomId")&&!Jl.isString(e.roomId)?"roomId: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RqInitGamePayload"},e}(),bl.RqAutoPickBlockPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.minesNums=0,e.prototype.pickedBlocks="",e.prototype.betAmount="",e.prototype.playId=0,e.prototype.device="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.minesNums&&Object.hasOwnProperty.call(e,"minesNums")&&n.uint32(8).int32(e.minesNums),null!=e.pickedBlocks&&Object.hasOwnProperty.call(e,"pickedBlocks")&&n.uint32(18).string(e.pickedBlocks),null!=e.betAmount&&Object.hasOwnProperty.call(e,"betAmount")&&n.uint32(26).string(e.betAmount),null!=e.playId&&Object.hasOwnProperty.call(e,"playId")&&n.uint32(32).int32(e.playId),null!=e.device&&Object.hasOwnProperty.call(e,"device")&&n.uint32(42).string(e.device),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RqAutoPickBlockPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.minesNums=e.int32();break;case 2:a.pickedBlocks=e.string();break;case 3:a.betAmount=e.string();break;case 4:a.playId=e.int32();break;case 5:a.device=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.minesNums&&e.hasOwnProperty("minesNums")&&!Jl.isInteger(e.minesNums)?"minesNums: integer expected":null!=e.pickedBlocks&&e.hasOwnProperty("pickedBlocks")&&!Jl.isString(e.pickedBlocks)?"pickedBlocks: string expected":null!=e.betAmount&&e.hasOwnProperty("betAmount")&&!Jl.isString(e.betAmount)?"betAmount: string expected":null!=e.playId&&e.hasOwnProperty("playId")&&!Jl.isInteger(e.playId)?"playId: integer expected":null!=e.device&&e.hasOwnProperty("device")&&!Jl.isString(e.device)?"device: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RqAutoPickBlockPayload"},e}(),bl.MinesWsRs=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}var n;return e.prototype.rsErrorPayload=null,e.prototype.blocksPayload=null,e.prototype.rsStartPayload=null,e.prototype.rsEndPayload=null,e.prototype.rsInitGamePayload=null,e.prototype.rsAutoEndPayload=null,Object.defineProperty(e.prototype,"payload",{get:Jl.oneOfGetter(n=["rsErrorPayload","blocksPayload","rsStartPayload","rsEndPayload","rsInitGamePayload","rsAutoEndPayload"]),set:Jl.oneOfSetter(n)}),e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.rsErrorPayload&&Object.hasOwnProperty.call(e,"rsErrorPayload")&&$l.com.tcg.ws_game_server_21.mines.RsErrorPayload.encode(e.rsErrorPayload,n.uint32(26).fork()).ldelim(),null!=e.blocksPayload&&Object.hasOwnProperty.call(e,"blocksPayload")&&$l.com.tcg.ws_game_server_21.mines.BlocksPayload.encode(e.blocksPayload,n.uint32(34).fork()).ldelim(),null!=e.rsStartPayload&&Object.hasOwnProperty.call(e,"rsStartPayload")&&$l.com.tcg.ws_game_server_21.mines.RsStartPayload.encode(e.rsStartPayload,n.uint32(42).fork()).ldelim(),null!=e.rsEndPayload&&Object.hasOwnProperty.call(e,"rsEndPayload")&&$l.com.tcg.ws_game_server_21.mines.RsEndPayload.encode(e.rsEndPayload,n.uint32(50).fork()).ldelim(),null!=e.rsInitGamePayload&&Object.hasOwnProperty.call(e,"rsInitGamePayload")&&$l.com.tcg.ws_game_server_21.mines.RsInitGamePayload.encode(e.rsInitGamePayload,n.uint32(58).fork()).ldelim(),null!=e.rsAutoEndPayload&&Object.hasOwnProperty.call(e,"rsAutoEndPayload")&&$l.com.tcg.ws_game_server_21.mines.RsAutoEndPayload.encode(e.rsAutoEndPayload,n.uint32(66).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.MinesWsRs;e.pos<t;){var i=e.uint32();switch(i>>>3){case 3:a.rsErrorPayload=$l.com.tcg.ws_game_server_21.mines.RsErrorPayload.decode(e,e.uint32());break;case 4:a.blocksPayload=$l.com.tcg.ws_game_server_21.mines.BlocksPayload.decode(e,e.uint32());break;case 5:a.rsStartPayload=$l.com.tcg.ws_game_server_21.mines.RsStartPayload.decode(e,e.uint32());break;case 6:a.rsEndPayload=$l.com.tcg.ws_game_server_21.mines.RsEndPayload.decode(e,e.uint32());break;case 7:a.rsInitGamePayload=$l.com.tcg.ws_game_server_21.mines.RsInitGamePayload.decode(e,e.uint32());break;case 8:a.rsAutoEndPayload=$l.com.tcg.ws_game_server_21.mines.RsAutoEndPayload.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var n={};if(null!=e.rsErrorPayload&&e.hasOwnProperty("rsErrorPayload")){n.payload=1;var t=$l.com.tcg.ws_game_server_21.mines.RsErrorPayload.verify(e.rsErrorPayload);if(t)return"rsErrorPayload."+t}if(null!=e.blocksPayload&&e.hasOwnProperty("blocksPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var a=$l.com.tcg.ws_game_server_21.mines.BlocksPayload.verify(e.blocksPayload);if(a)return"blocksPayload."+a}if(null!=e.rsStartPayload&&e.hasOwnProperty("rsStartPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var i=$l.com.tcg.ws_game_server_21.mines.RsStartPayload.verify(e.rsStartPayload);if(i)return"rsStartPayload."+i}if(null!=e.rsEndPayload&&e.hasOwnProperty("rsEndPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var r=$l.com.tcg.ws_game_server_21.mines.RsEndPayload.verify(e.rsEndPayload);if(r)return"rsEndPayload."+r}if(null!=e.rsInitGamePayload&&e.hasOwnProperty("rsInitGamePayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var o=$l.com.tcg.ws_game_server_21.mines.RsInitGamePayload.verify(e.rsInitGamePayload);if(o)return"rsInitGamePayload."+o}if(null!=e.rsAutoEndPayload&&e.hasOwnProperty("rsAutoEndPayload")){if(1===n.payload)return"payload: multiple values";n.payload=1;var c=$l.com.tcg.ws_game_server_21.mines.RsAutoEndPayload.verify(e.rsAutoEndPayload);if(c)return"rsAutoEndPayload."+c}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.MinesWsRs"},e}(),bl.RsErrorPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.code="",e.prototype.msg="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&n.uint32(10).string(e.code),null!=e.msg&&Object.hasOwnProperty.call(e,"msg")&&n.uint32(18).string(e.msg),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RsErrorPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.code=e.string();break;case 2:a.msg=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.code&&e.hasOwnProperty("code")&&!Jl.isString(e.code)?"code: string expected":null!=e.msg&&e.hasOwnProperty("msg")&&!Jl.isString(e.msg)?"msg: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RsErrorPayload"},e}(),bl.BlocksPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.pickedBlock=0,e.prototype.currentResult=0,e.prototype.chooseList=null,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.pickedBlock&&Object.hasOwnProperty.call(e,"pickedBlock")&&n.uint32(16).int32(e.pickedBlock),null!=e.currentResult&&Object.hasOwnProperty.call(e,"currentResult")&&n.uint32(24).int32(e.currentResult),null!=e.chooseList&&Object.hasOwnProperty.call(e,"chooseList")&&$l.com.tcg.ws_game_server_21.mines.ChooseList.encode(e.chooseList,n.uint32(34).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.BlocksPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.pickedBlock=e.int32();break;case 3:a.currentResult=e.int32();break;case 4:a.chooseList=$l.com.tcg.ws_game_server_21.mines.ChooseList.decode(e,e.uint32());break;default:e.skipType(7&i)}}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo))return"orderNo: string expected";if(null!=e.pickedBlock&&e.hasOwnProperty("pickedBlock")&&!Jl.isInteger(e.pickedBlock))return"pickedBlock: integer expected";if(null!=e.currentResult&&e.hasOwnProperty("currentResult")&&!Jl.isInteger(e.currentResult))return"currentResult: integer expected";if(null!=e.chooseList&&e.hasOwnProperty("chooseList")){var n=$l.com.tcg.ws_game_server_21.mines.ChooseList.verify(e.chooseList);if(n)return"chooseList."+n}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.BlocksPayload"},e}(),bl.ChooseList=function(){function e(e){if(this.chooseBlocks=[],e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.chooseBlocks=Jl.emptyArray,e.create=function(n){return new e(n)},e.encode=function(e,n){if(n||(n=Ql.create()),null!=e.chooseBlocks&&e.chooseBlocks.length){n.uint32(10).fork();for(var t=0;t<e.chooseBlocks.length;++t)n.int32(e.chooseBlocks[t]);n.ldelim()}return n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.ChooseList;e.pos<t;){var i=e.uint32();if(i>>>
13==1)if(a.chooseBlocks&&a.chooseBlocks.length||(a.chooseBlocks=[]),2==(7&i))for(var r=e.uint32()+e.pos;e.pos<r;)a.chooseBlocks.push(e.int32());else a.chooseBlocks.push(e.int32());else e.skipType(7&i)}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.chooseBlocks&&e.hasOwnProperty("chooseBlocks")){if(!Array.isArray(e.chooseBlocks))return"chooseBlocks: array expected";for(var n=0;n<e.chooseBlocks.length;++n)if(!Jl.isInteger(e.chooseBlocks[n]))return"chooseBlocks: integer[] expected"}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.ChooseList"},e}(),bl.RsStartPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.numeroNo="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.numeroNo&&Object.hasOwnProperty.call(e,"numeroNo")&&n.uint32(18).string(e.numeroNo),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RsStartPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.numeroNo=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo)?"orderNo: string expected":null!=e.numeroNo&&e.hasOwnProperty("numeroNo")&&!Jl.isString(e.numeroNo)?"numeroNo: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RsStartPayload"},e}(),bl.RsEndPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.minesResult="",e.prototype.chooseResult="",e.prototype.winAmount="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.minesResult&&Object.hasOwnProperty.call(e,"minesResult")&&n.uint32(18).string(e.minesResult),null!=e.chooseResult&&Object.hasOwnProperty.call(e,"chooseResult")&&n.uint32(26).string(e.chooseResult),null!=e.winAmount&&Object.hasOwnProperty.call(e,"winAmount")&&n.uint32(34).string(e.winAmount),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RsEndPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.minesResult=e.string();break;case 3:a.chooseResult=e.string();break;case 4:a.winAmount=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo)?"orderNo: string expected":null!=e.minesResult&&e.hasOwnProperty("minesResult")&&!Jl.isString(e.minesResult)?"minesResult: string expected":null!=e.chooseResult&&e.hasOwnProperty("chooseResult")&&!Jl.isString(e.chooseResult)?"chooseResult: string expected":null!=e.winAmount&&e.hasOwnProperty("winAmount")&&!Jl.isString(e.winAmount)?"winAmount: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RsEndPayload"},e}(),bl.RsInitGamePayload=function(){function e(e){if(this.rtpOddsSetting={},e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.roomId="",e.prototype.availBalance="",e.prototype.rtpOddsSetting=Jl.emptyObject,e.prototype.chipMod=null,e.create=function(n){return new e(n)},e.encode=function(e,n){if(n||(n=Ql.create()),null!=e.roomId&&Object.hasOwnProperty.call(e,"roomId")&&n.uint32(10).string(e.roomId),null!=e.availBalance&&Object.hasOwnProperty.call(e,"availBalance")&&n.uint32(18).string(e.availBalance),null!=e.rtpOddsSetting&&Object.hasOwnProperty.call(e,"rtpOddsSetting"))for(var t=Object.keys(e.rtpOddsSetting),a=0;a<t.length;++a)n.uint32(26).fork().uint32(8).int32(t[a]),$l.com.tcg.ws_game_server_21.mines.OddsList.encode(e.rtpOddsSetting[t[a]],n.uint32(18).fork()).ldelim().ldelim();return null!=e.chipMod&&Object.hasOwnProperty.call(e,"chipMod")&&$l.com.tcg.ws_game_server_21.mines.ChipMode.encode(e.chipMod,n.uint32(34).fork()).ldelim(),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t,a,i=void 0===n?e.len:e.pos+n,r=new $l.com.tcg.ws_game_server_21.mines.RsInitGamePayload;e.pos<i;){var o=e.uint32();switch(o>>>3){case 1:r.roomId=e.string();break;case 2:r.availBalance=e.string();break;case 3:r.rtpOddsSetting===Jl.emptyObject&&(r.rtpOddsSetting={});var c=e.uint32()+e.pos;for(t=0,a=null;e.pos<c;){var s=e.uint32();switch(s>>>3){case 1:t=e.int32();break;case 2:a=$l.com.tcg.ws_game_server_21.mines.OddsList.decode(e,e.uint32());break;default:e.skipType(7&s)}}r.rtpOddsSetting[t]=a;break;case 4:r.chipMod=$l.com.tcg.ws_game_server_21.mines.ChipMode.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.roomId&&e.hasOwnProperty("roomId")&&!Jl.isString(e.roomId))return"roomId: string expected";if(null!=e.availBalance&&e.hasOwnProperty("availBalance")&&!Jl.isString(e.availBalance))return"availBalance: string expected";if(null!=e.rtpOddsSetting&&e.hasOwnProperty("rtpOddsSetting")){if(!Jl.isObject(e.rtpOddsSetting))return"rtpOddsSetting: object expected";for(var n=Object.keys(e.rtpOddsSetting),t=0;t<n.length;++t){if(!Jl.key32Re.test(n[t]))return"rtpOddsSetting: integer key{k:int32} expected";var a=$l.com.tcg.ws_game_server_21.mines.OddsList.verify(e.rtpOddsSetting[n[t]]);if(a)return"rtpOddsSetting."+a}}if(null!=e.chipMod&&e.hasOwnProperty("chipMod")){var i=$l.com.tcg.ws_game_server_21.mines.ChipMode.verify(e.chipMod);if(i)return"chipMod."+i}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RsInitGamePayload"},e}(),bl.ChipMode=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.defaultMode=0,e.prototype.firstModeValue=0,e.prototype.secondModeValue=0,e.prototype.thirdModeValue=0,e.prototype.fourthModeValue=0,e.prototype.fifthModeValue=0,e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.defaultMode&&Ob
1ject.hasOwnProperty.call(e,"defaultMode")&&n.uint32(8).int32(e.defaultMode),null!=e.firstModeValue&&Object.hasOwnProperty.call(e,"firstModeValue")&&n.uint32(16).int32(e.firstModeValue),null!=e.secondModeValue&&Object.hasOwnProperty.call(e,"secondModeValue")&&n.uint32(24).int32(e.secondModeValue),null!=e.thirdModeValue&&Object.hasOwnProperty.call(e,"thirdModeValue")&&n.uint32(32).int32(e.thirdModeValue),null!=e.fourthModeValue&&Object.hasOwnProperty.call(e,"fourthModeValue")&&n.uint32(40).int32(e.fourthModeValue),null!=e.fifthModeValue&&Object.hasOwnProperty.call(e,"fifthModeValue")&&n.uint32(48).int32(e.fifthModeValue),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.ChipMode;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.defaultMode=e.int32();break;case 2:a.firstModeValue=e.int32();break;case 3:a.secondModeValue=e.int32();break;case 4:a.thirdModeValue=e.int32();break;case 5:a.fourthModeValue=e.int32();break;case 6:a.fifthModeValue=e.int32();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.defaultMode&&e.hasOwnProperty("defaultMode")&&!Jl.isInteger(e.defaultMode)?"defaultMode: integer expected":null!=e.firstModeValue&&e.hasOwnProperty("firstModeValue")&&!Jl.isInteger(e.firstModeValue)?"firstModeValue: integer expected":null!=e.secondModeValue&&e.hasOwnProperty("secondModeValue")&&!Jl.isInteger(e.secondModeValue)?"secondModeValue: integer expected":null!=e.thirdModeValue&&e.hasOwnProperty("thirdModeValue")&&!Jl.isInteger(e.thirdModeValue)?"thirdModeValue: integer expected":null!=e.fourthModeValue&&e.hasOwnProperty("fourthModeValue")&&!Jl.isInteger(e.fourthModeValue)?"fourthModeValue: integer expected":null!=e.fifthModeValue&&e.hasOwnProperty("fifthModeValue")&&!Jl.isInteger(e.fifthModeValue)?"fifthModeValue: integer expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.ChipMode"},e}(),bl.OddsList=function(){function e(e){if(this.odds=[],e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.odds=Jl.emptyArray,e.create=function(n){return new e(n)},e.encode=function(e,n){if(n||(n=Ql.create()),null!=e.odds&&e.odds.length)for(var t=0;t<e.odds.length;++t)n.uint32(10).string(e.odds[t]);return n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.OddsList;e.pos<t;){var i=e.uint32();i>>>3==1?(a.odds&&a.odds.length||(a.odds=[]),a.odds.push(e.string())):e.skipType(7&i)}return a},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.odds&&e.hasOwnProperty("odds")){if(!Array.isArray(e.odds))return"odds: array expected";for(var n=0;n<e.odds.length;++n)if(!Jl.isString(e.odds[n]))return"odds: string[] expected"}return null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.OddsList"},e}(),bl.RsAutoEndPayload=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.orderNo="",e.prototype.minesResult="",e.prototype.chooseResult="",e.prototype.winAmount="",e.prototype.numeroNo="",e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.orderNo&&Object.hasOwnProperty.call(e,"orderNo")&&n.uint32(10).string(e.orderNo),null!=e.minesResult&&Object.hasOwnProperty.call(e,"minesResult")&&n.uint32(18).string(e.minesResult),null!=e.chooseResult&&Object.hasOwnProperty.call(e,"chooseResult")&&n.uint32(26).string(e.chooseResult),null!=e.winAmount&&Object.hasOwnProperty.call(e,"winAmount")&&n.uint32(34).string(e.winAmount),null!=e.numeroNo&&Object.hasOwnProperty.call(e,"numeroNo")&&n.uint32(42).string(e.numeroNo),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.com.tcg.ws_game_server_21.mines.RsAutoEndPayload;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.orderNo=e.string();break;case 2:a.minesResult=e.string();break;case 3:a.chooseResult=e.string();break;case 4:a.winAmount=e.string();break;case 5:a.numeroNo=e.string();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.orderNo&&e.hasOwnProperty("orderNo")&&!Jl.isString(e.orderNo)?"orderNo: string expected":null!=e.minesResult&&e.hasOwnProperty("minesResult")&&!Jl.isString(e.minesResult)?"minesResult: string expected":null!=e.chooseResult&&e.hasOwnProperty("chooseResult")&&!Jl.isString(e.chooseResult)?"chooseResult: string expected":null!=e.winAmount&&e.hasOwnProperty("winAmount")&&!Jl.isString(e.winAmount)?"winAmount: string expected":null!=e.numeroNo&&e.hasOwnProperty("numeroNo")&&!Jl.isString(e.numeroNo)?"numeroNo: string expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/com.tcg.ws_game_server_21.mines.RsAutoEndPayload"},e}(),bl),xl),yl),_l),$l.google=((hl={}).protobuf=((gl={}).Any=function(){function e(e){if(e)for(var n=Object.keys(e),t=0;t<n.length;++t)null!=e[n[t]]&&(this[n[t]]=e[n[t]])}return e.prototype.type_url="",e.prototype.value=Jl.newBuffer([]),e.create=function(n){return new e(n)},e.encode=function(e,n){return n||(n=Ql.create()),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&n.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&n.uint32(18).bytes(e.value),n},e.decode=function(e,n){e instanceof Kl||(e=Kl.create(e));for(var t=void 0===n?e.len:e.pos+n,a=new $l.google.protobuf.Any;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:a.type_url=e.string();break;case 2:a.value=e.bytes();break;default:e.skipType(7&i)}}return a},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!Jl.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||Jl.isString(e.value))?"value: buffer expected":null},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/google.protobuf.Any"},e}(),gl),hl),function(){function e(){(0,Vn.Z)(this,e),this.requestType=$l.com.tcg.ws_game_server_21.mines.MinesWsRq,this.responseType=$l.com.tcg.ws_game_server_21.mines.MinesWsRs,this.baseType=$l.com.tcg.ws_game_server_21.GameBaseWs,this.anyType=$l.google.protobuf.Any}return(0,Hn.Z)(e,[{key:"getRequestType",value:function(){return this.requestType}},{key:"getResponseType",value:function(){return this.responseType}},{key:"encodeRequest",value:function(e){var n=e.orderNo,t=void 0===n?"":n,a=this.getRequestType(),i=a.verify(e);if(i)throw new Error("è«æ±æ¸æç¡æ: ".concat(i));var r=a.create(e),o=a.encode(r).finish(),c=this.anyType.create({type_url:"type.googleapis.com/com.tcg.ws_game_server_21.mines.MinesWsRq",value:o}),s=this.baseType.create({gameCode:"MINES",orderNo:t,payload:c});return this.baseType.encode(s).finish()}},{key:"decodeResponse",value:function(e){var n=this.baseType.decode(e);if(n.payload&&n.payload.value){var t=n.payload.value;return this.getResponseType().decode(t)}throw new Error("ç¡æçåææ ¼å¼ï¼ç¼ºå° payload")}},{key:"validateRequest",value:function(e){return this.getRequestType().verify(e)||null}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}());ed.instance=null;var nd=ed.getInstance(),td="undefined"!=typeof window&&window.location.hostname.replace(/^www\./,"").startsWith("dev-"),ad=function(e){if(td){for(var n,t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];
1(n=console).log.apply(n,[e].concat(a))}},id=function(e){if(td){for(var n,t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];(n=console).error.apply(n,[e].concat(a))}},rd=function(e){if(td){for(var n,t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];(n=console).warn.apply(n,[e].concat(a))}},od=function(e){return e.BET="bet",e.CASH_OUT="cash_out",e.STOP="stop",e}({}),cd=function(e){return e.IDLE="idle",e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e}({}),sd=function(e){return e.INIT_GAME="init_game",e.START_GAME="start_game",e.PICK_BLOCK="pick_block",e.CASH_OUT="cash_out",e.AUTO_GAME="auto_game",e}({}),ud=function(e){return e[e.Stone_Normal=1]="Stone_Normal",e[e.Stone_Selected=2]="Stone_Selected",e[e.Stone_Broken=3]="Stone_Broken",e[e.Gem_Normal=4]="Gem_Normal",e[e.Gem_Disable=5]="Gem_Disable",e[e.Bomb_Normal=6]="Bomb_Normal",e[e.Bomb_Disable=7]="Bomb_Disable",e[e.Stone_Broken_1=8]="Stone_Broken_1",e}({}),ld=function(){function e(){var n=this;(0,Vn.Z)(this,e),this.eventListeners=new Map,this.ws=null,this.status="disconnected",this.options=void 0,this.reconnectTimer=null,this.reconnectAttempts=0,this.connectionTimeout=null,this.heartbeatInterval=null,this.messageTimeout=null,this.actionTimeouts=new Map,this.connectUrl=null,this.connectPath="ws-game",this.currentGame="mines",this.showConfirmError=!0,this.connect=function(e){n.connectUrl=e,n.disconnect();try{var t=n.options.token,a=n.options.gameId;if(!t){var i=new Error("缺å°å¿
è¦åæ¸: token");return n.emit("error",i),n.setStatus("error"),id("[MinesSocket] 飿¥å¤±æ:",i.message),n}if(!a){var r=new Error("缺å°å¿
è¦åæ¸: gameId");return n.emit("error",r),n.setStatus("error"),id("[MinesSocket] 飿¥å¤±æ:",r.message),n}n.setStatus("connecting");var o="".concat(n.connectUrl,"/").concat(n.connectPath,"/").concat(n.currentGame,"?token=").concat(encodeURIComponent(t),"&gameId=").concat(a);ad("[MinesSocketService] åè©¦é£æ¥ ".concat(o)),n.ws=new WebSocket(o),n.connectionTimeout=setTimeout((function(){var e,t;(null===(e=n.ws)||void 0===e?void 0:e.readyState)!==WebSocket.OPEN&&(rd("[MinesSocketService] 飿¥è¶
æ"),null===(t=n.ws)||void 0===t||t.close(),n.setStatus("error"),n.emit("error",new Error("WebSocket 飿¥è¶
æ")))}),n.options.connectionTimeout),n.ws.onopen=n.handleOpen.bind(n),n.ws.onclose=n.handleClose.bind(n),n.ws.onerror=n.handleError.bind(n),n.ws.onmessage=n.handleMessage.bind(n)}
1catch(e){var c=e instanceof Error?e:new Error("å»ºç« WebSocket 飿¥å¤±æ");n.emit("error",c),n.setStatus("error")}return n},this.options={gameId:0,token:null,autoReconnect:!1,reconnectInterval:3e3,maxReconnectAttempts:2,connectionTimeout:1e4}}return(0,Hn.Z)(e,[{key:"setShowConfirmError",value:function(e){this.showConfirmError=e}},{key:"getShowConfirmError",value:function(){return this.showConfirmError}},{key:"on",value:function(e,n){var t=this;return this.eventListeners.has(e)||this.eventListeners.set(e,[]),this.eventListeners.get(e).push(n),function(){return t.off(e,n)}}},{key:"off",value:function(e,n){if(this.eventListeners.has(e)){var t=this.eventListeners.get(e),a=t.indexOf(n);-1!==a&&t.splice(a,1)}}},{key:"once",value:function(e,n){var t=this;return this.on(e,(function a(i){n(i),t.off(e,a)}))}},{key:"emit",value:function(e,n){this.eventListeners.has(e)&&this.eventListeners.get(e).forEach((function(t){try{t(n)}catch(n){id("[MinesSocket] äºä»¶èçå¨é¯èª¤: ".concat(e),n)}}))}},{key:"configure",value:function(e){return this.options=(0,d.Z)((0,d.Z)({},this.options),e),this}},{key:"disconnect",value:function(){if(this.clearTimeouts(),this.showConfirmError=!0,this.ws){try{var e=this.ws;e.onclose=null,e.close(1e3,"ç¨æ¶ä¸»åæ·é飿¥")}catch(e){console.warn("[MinesSocket] éé飿¥åºé¯:",e)}this.ws=null}return this.setStatus("disconnected"),this.eventListeners.clear(),this}},{key:"sendRequest",value:function(e){if(ad("[MinesSocketService] ç¼éè«æ±:",e),!this.isConnected())return this.emit("error",new Error("WebSocket æªé£æ¥ï¼ç¡æ³ç¼éæ¸æ")),!1;try{var n=nd.encodeRequest(e);return this.ws.send(n),e.rqInitGamePayload&&this.setActionTimeout(sd.INIT_GAME,(function(){(0,Td.getState().ui.setShowConfirmPopup)(!0,"SYSTEM_TIME_OUT"),ad("[MinesSocketService] INIT_GAME è¶
æ (10ç§)")}),1e4),!0}catch(e){var t=e instanceof Error?e:new Error("ç¼éæ¶æ¯å¤±æ");return this.emit("error",t),!1}}},{key:"clearMessaheTimeout",value:function(){this.messageTimeout&&clearTimeout(this.messageTimeout),this.messageTimeout=null}},{key:"setActionTimeout",value:function(e,n,t){this.clearActionTimeout(e);var a=setTimeout(n,t);this.actionTimeouts.set(e,a)}},{key:"clearActionTimeout",value:function(e){var n=this.actionTimeouts.get(e);n&&(clearTimeout(n),this.actionTimeouts.delete(e))}},{key:"clearAllActionTimeouts",value:function(){this.actionTimeouts.forEach((function(e){return clearTimeout(e)})),this.actionTimeouts.clear()}},{key:"clearActionTimeoutPublic",value:function(e){this.clearActionTimeout(e)}},{key:"sendHeartbeat",value:function(){return this.sendRequest({heartbeatPayLoad:{}})}},{key:"getStatus",value:function(){return this.status}},{key:"isConnected",value:function(){return null!==this.ws&&this.ws.readyState===WebSocket.OPEN}},{key:"addMessageHandler",value:function(e){var n=this;return this.on("message",(function(t){return n.clearMessaheTimeout(),e(t)}))}},{key:"addErrorHandler",value:function(e){return this.on("error",e)}},{key:"addStatusHandler",value:function(e){return this.on("statusChange",e)}},{key:"removeMessageHandler",value:function(e){this.off("message",e)}},{key:"removeErrorHandler",value:function(e){this.off("error",e)}},{key:"removeStatusHandler",value:function(e){this.off("statusChange",e)}},{key:"setStatus",value:function(e){this.status=e,this.emit("statusChange",e)}},{key:"clearTimeouts",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.clearAllActionTimeouts()}},{key:"handleOpen",value:function(){this.clearTimeouts(),this.reconnectAttempts=0,this.setStatus("connected"),ad("[MinesSocketService] 飿¥æå建ç«"),this.emit("open",void 0)}},{key:"handleClose",value:function(e){var n=this;if(this.clearTimeouts(),this.setStatus("disconnected"),ad("[MinesSocketService] 飿¥éé (代碼: ".concat(e.code,", åå : ").concat(e.reason||"æªæä¾",")")),this.emit("close",e),this.showConfirmError&&(0,Td.getState().ui.setShowConfirmPopup)(!0,"TOKEN_TIME_OUT"),this.options.autoReconnect)if(this.reconnectAttempts<this.options.maxReconnectAttempts){var t=this.options.reconnectInterval*Math.pow(1.5,this.reconnectAttempts);this.reconnectAttempts++,ad("[MinesSocketService] å試éé£ ".concat(this.reconnectAttempts,"/").concat(this.options.maxReconnectAttempts," (").concat(t,"ms å¾)")),this.setStatus("reconnecting"),this.reconnectTimer=setTimeout((function(){n.reconnectTimer=null,n.connectUrl&&n.connectPath&&n.connect(n.connectUrl)}),t)}else id("[MinesSocket] é尿大éé£åè©¦æ¬¡æ¸ (".concat(this.options.maxReconnectAttempts,")")),this.setStatus("error"),this.emit
1("error",new Error("ç¡æ³é£æ¥å°ä¼ºæå¨ï¼å·²å試 ".concat(this.options.maxReconnectAttempts," 次")))}},{key:"handleError",value:function(e){id("[MinesSocket] ç¼çé¯èª¤",e),this.setStatus("error"),this.emit("error",new Error("WebSocket 飿¥é¯èª¤"))}},{key:"handleMessage",value:function(e){var n=this;try{if(e.data instanceof Blob){var t=new FileReader;t.onload=function(){try{if(t.result instanceof ArrayBuffer){var e=new Uint8Array(t.result),a=nd.decodeResponse(e);n.emit("message",a)}}catch(e){id("[MinesSocket] è§£æåæå¤±æ:",e),n.emit("error",new Error("è§£æä¼ºæå¨åæå¤±æ"))}},t.onerror=function(){n.emit("error",new Error("è®åäºé²å¶æ¸æå¤±æ"))},t.readAsArrayBuffer(e.data)}}catch(e){id("[MinesSocket] èçæ¶æ¯é¯èª¤:",e),this.emit("error",new Error("èçæå卿¶æ¯å¤±æ"))}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();ld.instance=null;var dd=ld.getInstance(),md={isAutoPlaying:!1,rtpOddsSetting:{}},fd=pt.Z.gameConfig.ui.prefix,pd="Mines",gd=function(e,n){return{game:{gameId:0,minesBoxs:Array.from({length:25},(function(){return{type:ud.Stone_Normal}})),minesCount:3,state:od.BET,odds:[],oddIndex:null,orderNo:"",numeroNo:"",winAmount:"0",betAmount:0,initGame:function(e){var t=n().game.gameId;(0,n().gameUtils.setRequestStatus)(sd.INIT_GAME,cd.PENDING),dd.sendRequest({gameId:t,orderNo:"",rqInitGamePayload:{roomId:"".concat(t,"_").concat(e)}})},startGame:function(e){var t=n().game.gameId,a=n().game.orderNo,i=n().game.minesCount,r=n().game.setGameValue;(0,n().gameUtils.setRequestStatus)(sd.START_GAME,cd.PENDING),r("betAmount",e),dd.sendRequest({gameId:t,orderNo:a,rqStartPayload:{minesNums:i,betAmount:"".concat(e),playId:3111,device:dt()()?"MOBILE":"WEB"}})},resetBoxs:function(){return e((function(e){e.game.minesBoxs=Array.from({length:25},(function(){return{type:ud.Stone_Normal}}))}))},handleBet:function(e){var t=n().game.gameId,a=n().game.state,i=n().game.orderNo,r=n().gameUtils.setRequestStatus;a!==od.BET&&(r(sd.PICK_BLOCK,cd.PENDING),dd.sendRequest({gameId:t,orderNo:i,pickBlockPayload:{pickedBlock:e}}))},handleCashout:function(){var e=n().game.gameId,t=n().game.orderNo;(0,n().gameUtils.setRequestStatus)(sd.CASH_OUT,cd.PENDING),dd.sendRequest({gameId:e,orderNo:t,rqEndPayload:{}})},revealBox:function(n,t){t===ud.Bomb_Normal?e((function(e){e.game.minesBoxs[n].type=t})):e((function(e){e.game.minesBoxs[n].type=t,e.game.oddIndex=null===e.game.oddIndex?0:e.game.oddIndex+1}))},updateMinesBoxsFromEndPayload:function(n,t){25===n.length&&25===t.length?e((function(e){for(var a=0;a<25;a++){var i="2"===n[a],r="2"===t[a];e.game.minesBoxs[a].type=i?r?ud.Bomb_Normal:ud.Bomb_Disable:r?ud.Gem_Normal:ud.Gem_Disable}})):id("[MinesStore] minesResult æ chooseResult é·åº¦ä¸æ£ç¢º")},setMinesCount:function(t){return e((function(e){if(n().game.minesCount!==t){e.game.minesCount=t;var a=md.rtpOddsSetting;a&&a[t]?(e.game.odds=a[t].odds||[],e.game.oddIndex=null,ad("[MinesStore] å°é·æ¸è®æ´çº ".concat(t,"ï¼æ´æ°è³ ç:"),e.game.odds)):ad("[MinesStore] å°é·æ¸è®æ´çº ".concat(t,"ï¼ä½æ¾ä¸å°å°æè³ çè¨ç½®"))}}))},incrementOddIndex:function(){return e((function(e){e.game.oddIndex=null===e.game.oddIndex?0:e.game.oddIndex+1}))},setGameValue:function(n,t){return e((function(e){"object"==typeof n?Object.entries(n).forEach((function(n){var t=(0,ot.Z)(n,2),a=t[0],i=t[1];e.game[a]=i})):void 0!==t&&(e.game[n]=t)}))},resetGame:function(){return e((function(e){e.game.minesBoxs=Array.from({length:25},(function(){return{type:ud.Stone_Normal}})),e.game.minesCount=3,e.game.state=od.BET,e.game.odds=[],e.game.oddIndex=null,e.game.orderNo="",e.game.winAmount="0",e.game.betAmount=0}))}}}},hd=function(e,n){return{auto:{isAutoPlaying:!1,autoMinesBoxs:Array.from({length:25},(function(){return{type:ud.Stone_Normal}})),setIsAutoPlaying:function(n){md.isAutoPlaying=n,e((function(e){e.auto.isAutoPlaying=n}))},resetAutoMinesBoxs:function(){return e((function(e){e.auto.autoMinesBoxs=Array.from({length:25},(function(){return{type:ud.Stone_Normal}}))}))},handleSelectAutoBox:function(t){var a=n().auto.autoMinesBoxs,i=n().game.minesCount,r=a.filter((function(e){return e.type===ud.Stone_Selected})).length,o=a[t].type===ud.Stone_Selected;!o&&r+i>=25||e((function(e){e.auto.autoMinesBoxs[t].type=o?ud.Stone_Normal:ud.Stone_Selected}))},startAutoGame:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var i,r,o,c,s,u,l,d,m,f;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n().game,r=i.gameId,o=i.minesCount,c=i.setGameValue,s=n().auto.autoMinesBoxs,u=n().gameUtils,l=u.requestStatusMap,d=u.setRequestStatus,l[sd.AUTO_GAME]!==cd.PEND
1ING){e.next=5;break}return e.abrupt("return");case 5:d(sd.AUTO_GAME,cd.PENDING),c("betAmount",t),m=s.map((function(e,n){return e.type===ud.Stone_Selected?n:-1})).filter((function(e){return-1!==e})),f=m.join("-"),dd.sendRequest({gameId:r,orderNo:"",rqAutoPickBlockPayload:{minesNums:o,pickedBlocks:f,betAmount:"".concat(t),playId:3111,device:dt()()?"MOBILE":"WEB"}});case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),handleMinesCountChange:function(t){var a=n().auto.autoMinesBoxs.filter((function(e){return e.type===ud.Stone_Selected})).length;if(a+t>25){var i=a+t-25;if(i<=0)return;var r=0;e((function(e){for(var n=24;n>=0&&r<i;)e.auto.autoMinesBoxs[n].type===ud.Stone_Selected&&(e.auto.autoMinesBoxs[n].type=ud.Stone_Normal,r++),n--}))}},resetAuto:function(){md.isAutoPlaying=!1,e((function(e){e.auto.isAutoPlaying=!1,e.auto.autoMinesBoxs=Array.from({length:25},(function(){return{type:ud.Stone_Normal}}))}))}}};var t},vd=function(e,n){return{ui:{isShowWinPopup:!1,isShowAutoBetPopup:!1,isBoxAnimating:!1,isShowConfirmPopup:!1,confirmMsgKey:"",errorVisible:!1,errorMessage:"",isEndGameDrawing:!1,setEndGameDrawing:function(n){return e((function(e){e.ui.isEndGameDrawing=n}))},setShowConfirmPopup:function(n,t){return e((function(e){e.ui.isShowConfirmPopup=n,e.ui.confirmMsgKey=t}))},setShowWinPopup:function(n){return e((function(e){e.ui.isShowWinPopup=n}))},showWinPopup:function(){return e((function(e){e.ui.isShowWinPopup=!0}))},hiddenWinPopup:function(){return e((function(e){e.ui.isShowWinPopup=!1}))},setShowAutoBetPopup:function(n){return e((function(e){e.ui.isShowAutoBetPopup=n}))},setBoxAnimating:function(n){return e((function(e){e.ui.isBoxAnimating=n}))},hideError:function(){return e((function(e){e.ui.errorVisible=!1,e.ui.errorMessage=""}))},showError:function(n){return e((function(e){e.ui.errorVisible=!0,e.ui.errorMessage=n.errorMessage}))},resetUI:function(){return e((function(e){e.ui.isShowWinPopup=!1,e.ui.isShowAutoBetPopup=!1,e.ui.isBoxAnimating=!1,e.ui.isShowConfirmPopup=!1,e.ui.confirmMsgKey=""}))}}}},bd=function(e,n){var t;return{gameUtils:{socketStatus:"disconnected",requestStatusMap:(t={},(0,l.Z)(t,sd.INIT_GAME,cd.IDLE),(0,l.Z)(t,sd.START_GAME,cd.IDLE),(0,l.Z)(t,sd.PICK_BLOCK,cd.IDLE),(0,l.Z)(t,sd.CASH_OUT,cd.IDLE),(0,l.Z)(t,sd.AUTO_GAME,cd.IDLE),t),setRequestStatus:function(n,t){return e((function(e){e.gameUtils.requestStatusMap[n]=t}))},isAnyPending:function(){var e=n().gameUtils.requestStatusMap;return Object.values(e).some((function(e){return e===cd.PENDING}))},setSocketStatus:function(n){e((function(e){e.gameUtils.socketStatus=n}))},getAutoPlayingRef:function(){return md.isAutoPlaying},getRtpOddsSettingRef:function(){return md.rtpOddsSetting},setRtpOddsSettingRef:function(e){md.rtpOddsSetting=e},checkBalanceEnough:function(e){var t=_d.getState().prevBalance,a=(0,Fn.i0)("containers.GamesPanel.");return!(t&&t<e&&((0,n().ui.showError)({errorMessage:a("BALANCE_NOT_ENOUGH_ERROR")}),1))},resetAllState:function(){n().game.resetGame(),n().auto.resetAuto(),n().ui.resetUI(),_d.getState().resetData(),e((function(e){var n;e.gameUtils.socketStatus="disconnected",e.gameUtils.requestStatusMap=(n={},(0,l.Z)(n,sd.INIT_GAME,cd.IDLE),(0,l.Z)(n,sd.START_GAME,cd.IDLE),(0,l.Z)(n,sd.PICK_BLOCK,cd.IDLE),(0,l.Z)(n,sd.CASH_OUT,cd.IDLE),(0,l.Z)(n,sd.AUTO_GAME,cd.IDLE),n)}))}}}},xd=function(){return(0,ta.Ue)()((0,na.n)((function(e,n){return{prevBalance:null,balanceDifference:0,balanceVisible:!1,isBalanceFetching:!1,isInitialized:!1,setBalanceDifference:function(n){return e((function(e){e.balanceDifference=n}))},setBalanceVisible:function(n){return e((function(e){e.balanceVisible=n}))},setPrevBalance:function(n){return e((function(e){e.prevBalance=n}))},setIsBalanceFetching:function(n){return e((function(e){e.isBalanceFetching=n}))},initializeBalance:function(n){return e((function(e){e.isInitialized||(e.prevBalance=n,e.isInitialized=!0)}))},resetData:function(){return e((function(e){e.balanceDifference=0,e.balanceVisible=!1,e.prevBalance=null,e.isBalanceFetching=!1,e.isInitialized=!1}))},handleStartBalance:function(n){return e((function(e){var t=e.prevBalance;if(e.balanceDifference=-1*n,null!==t){var a=new Ja.Z(t),i=new Ja.Z(n),r=a.minus(i).toNumber();e.prevBalance=r,e.balanceVisible=!0}}))},handleEndGameBalance:(t=(0,i.Z)((0,a.Z)().mark((function t(i){var r,o,c,s,u;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(r=n().prevBalance)){t.next=19;break}return e((function(e){e.isBalanceFetching=!0})),t.prev=3,t.next=6,i();case 6:if(null!=(o=t.sent)&&o.data){t.next=9;break}return t.abrupt("return");case 9:c=new Ja.Z(o.data.availBalance),s=new Ja.Z(r),u=c.minus(s).toNumber(),e(u<=0?function(e){e.balanceDifference=0,e.prevBalance=o.data.availBalance,e.balanceVisible=!1,e.isBalanceFetching=!1}:function(e){e.balanceDifference=u,e.balanceVisible=!0,e.prevBalance=o.data.availBalance,e.isBalanceFetching=!1}),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),console.error("Failed to fetch account data:",t.t0),e((function(e){e.isBalanceFetching=!1}));case 19:case"end":return t.stop()}}),t,null,[[3,15]])}))),function(e){return t.apply(this,arguments)})};var t})))},yd=function(){return(0,ta.Ue)()((0,na.n)((function(e){return{containerScale:0,introVisible:!1,betHistoryVisible:!1,setBetHistoryVisible:function(n){return e((function(e){e.betHistoryVisible=n}))},setIntroVisible:function(n){return e((function(e){e.introVisible=n}))},setContainerScale:function(n){return e((function(e){e.containerScale=n}))},activePanel:null,setActivePanel:function(n){return e((function(e){e.activePanel=n}))},togglePanel:function(n){return e((function(e){e.activePanel=e.activePanel===n?null:n}))}}})))},_d=xd(),wd=yd(),Td=(0,ta.Ue)()((0,na.n)((function(){return(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},gd.apply(void 0,arguments)),hd.apply(void 0,arguments)),vd.apply(void 0,arguments)),bd.apply(void 0,arguments))}))),kd=function(e){switch(e){case ud.Gem_Normal:return t(17812);case ud.Gem_Disable:return t(18678);case ud.Bomb_Normal:return t(2302);case ud.Bomb_Disable:return t(50894);default:return""}},Id=function(e){var n=e.bettingContent,t=e.winningNumber,a=(0,r.useState)([]),i=(0,ot.Z)(a,2),o=i[0],c=i[1];return(0,r.useEffect)((function(){if(n&&t){for(var e=n.split(",")[0].split("-").map((function(e){return parseInt(e)})),a=t.split("").map((function(e){return"1"===e?ud.Gem_Disable:ud.Bomb_Disable})),i=0;i<e.length;i++){var r=a[e[i]];if(r===ud.Bomb_Disable?a[e[i]]=ud.Bomb_Normal:a[e[i]]=ud.Gem_Normal,r===ud.Bomb_Disable)break}c(a)}}),[n,t]),(0,wt.jsx)("div",{className:"mini-game-mines-result",children:o.map((function(e,n){return(0,wt.jsx)("div",{className:"mini-game-mines-box",children:(0,wt.jsx)("img",{src:kd(e),alt:"mines-box"})},n)}))})},Cd=640,Ed=850,jd=pt.Z.gameConfig.ui.prefix,Pd="ChickenRoad",Sd=22,Nd=630,Bd=417,Ad=Cd/3
1-16,Rd=154.5,Od=Ad/3,Md=397,Zd=800,Dd=100,Ld=1e3,Gd=[425,0],Wd=[319,0],Ud=[12,4],qd=[565,45],zd="#000000",Fd=.5,Vd={x:0,y:435},Hd=90,Yd=460,Xd=function(){Ea.eq&&Ea.eq.play("".concat(Pd,"_s_car_bump"),{volume:2})},Kd=function(){Ea.eq&&Ea.eq.play("".concat(Pd,"_s_go"),{volume:1})},Qd=function(){Ea.eq&&Ea.eq.play("".concat(jd,"_s_button_02"),{volume:1})},Jd=function(){Ea.eq&&Ea.eq.play("".concat(jd,"_s_button_03"),{volume:1})},$d=-31.5,em=["".concat(Pd,"_car_blue"),"".concat(Pd,"_car_pink"),"".concat(Pd,"_car_yellow"),"".concat(Pd,"_car_green")],nm=function(){return em[Math.floor(Math.random()*em.length)]},tm=function(e){var n=Math.max(0,e-1),t=Ad+n*Rd+74.25,a=118.93805309734513,i=t+a;return{finalRightX:t,displayWidthLeftRight:a,totalPhysicalWidth:i,maxCameraPanX:Math.min(0,-(i-Cd))}},am=t(86726),im=t(58942),rm=t(11802),om=t(76320),cm=function(e){var n,t,a,i,r=e.bettingContent,o=e.winningNumber,c=aa().containerScale,s=Number(null==r||null===(n=r.split(","))||void 0===n||null===(t=n[0])||void 0===t||null===(a=t.split("-"))||void 0===a?void 0:a.pop())||0,u=null!==(i=null==o?void 0:o.split(""))&&void 0!==i?i:[],l=u.length,d=u.findIndex((function(e){return"2"===e})),m=276/(l+1);return(0,wt.jsx)("div",{className:"mini-game-default-result-wrap mini-game-clr-result",children:(0,wt.jsxs)("div",{style:{position:"relative",width:276*c,height:18*c},children:[(0,wt.jsx)("img",{src:am,alt:"",style:{position:"absolute",top:0*c,left:0,width:276*c,height:18*c}}),Array.from({length:l},(function(e,n){return(0,wt.jsx)("img",{src:(t=n,t===d&&t<=s?om:t<d&&t<=s?rm:im),alt:"",style:{position:"absolute",left:(m*(n+1)-4.95)*c,top:4.05*c,width:9.9*c,height:9.9*c}},n);var t}))]})})},sm=function(e){var n=e.bettingContent,t=e.winningNumber,a=new Set((void 0===t?"":t).split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}))),i=new Set(n.split(",")[0].split("-").map((function(e){return parseInt(e,10)})));return(0,wt.jsx)("div",{className:"mini-game-keno-result",children:Array.from({length:40},(function(e,n){return n+1})).map((function(e){var n=a.has(e),t=i.has(e);return(0,wt.jsx)("div",{className:ut()("mini-game-keno-box",{"mini-game-winning":n,"mini-game-betting":t}),children:e},e)}))})},um=function(e){var n=e.bettingContent;return(0,wt.jsx)("div",{className:"mini-game-default-result-wrap mini-game-rps-result",children:(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"result-block ").concat(pt.Z.classNamePrefix,"block-").concat(n)})})},lm=function(e){var n=e.bettingContent,t=e.winningNumber,a=(0,c.v9)((function(e){return e.gamePanelInfo.type})),i=(0,Fn.eR)(n);return i?a===$t.gV.colorGame?(0,wt.jsx)(Hl,{bettingContent:n}):a===$t.gV.bacbo?(0,wt.jsx)(Yl,{bettingContent:i}):a===$t.gV.mines?(0,wt.jsx)(Id,(0,d.Z)({},e)):a===$t.gV.chickenRoad?(0,wt.jsx)(cm,{bettingContent:n,winningNumber:t}):a===$t.gV.keno?(0,wt.jsx)(sm,(0,d.Z)({},e)):a===$t.gV.rps?(0,wt.jsx)(um,{bettingContent:i}):null:(console.log("betting content is not valid"),null)},dm=function(e){var n=e.order,t=(0,Fn.he)("containers.GamesBetHistory."),a=n.orderStatus,i=n.winningAmount,r=n.actualBettingAmount,o=5===a;return(0,wt.jsxs)("div",{className:"mini-game-right-col",children:[a>=4&&(0,wt.jsx)("div",{className:o?"lose":"win",children:t(o?"ColorGame.lose":"ColorGame.win")}),(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("span",{children:[t("ColorGame.betAmount"),":"]}),(0,wt.jsx)("span",{children:r})]}),4===a&&i&&(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("span",{children:[t("ColorGame.winAmount"),":"]}),(0,wt.jsx)("span",{children:i})]})]})},mm=function(e){var n=e.order,t=(0,Fn.he)("containers.GamesBetHistory."),a=n.orderStatus,i=n.winningAmount,r=n.actualBettingAmount,o=(i||0)-r;return(0,wt.jsxs)("div",{className:"mini-game-right-col",children:[a>=4&&(0,wt.jsx)("div",{className:o<0?"lose":"win",children:t(o<0?"ColorGame.lose":"ColorGame.win")}),(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("span",{children:[t("ColorGame.betAmount"),":"]}),(0,wt.jsx)("span",{children:r})]}),4===a&&i&&(0,wt.jsxs)("div",{children:[(0,wt.jsxs)("span",{children:[t("ColorGame.winAmount"),":"]}),(0,wt.jsx)("span",{children:i})]})]})},fm=function(e){var n=e.order;return(0,c.v9)((function(e){return e.gamePanelInfo.type}))===$t.gV.keno?(0,wt.jsx)(mm,{order:n}):(0,wt.jsx)(dm,{order:n})};function pm(e){var n=e.closeBetHistory,t=e.onTabClick,a=(0,r.useState)(0),i=(0,ot.Z)(a,2),o=i[0],s=i[1],u=(0,Fn.he)("containers.GamesBetHistory."),l=bo(0===o?$t.XK.today:$t.XK.yesterday,10),d=l.totalBettingOrders,m=l.isLoading,f
1=l.isError,p=l.handleScroll,g=(0,c.v9)((function(e){return e.gamePanelInfo.type})),h=function(e){s(e),t&&t()};return(0,wt.jsxs)("div",{className:"mini-game-game-betHistory-v2",children:[(0,wt.jsx)("div",{className:"mini-game-close-btn",onClick:n,children:(0,wt.jsx)("img",{src:Xi,alt:"close-btn"})}),(0,wt.jsx)("div",{className:"mini-game-betHistory-header",children:(0,wt.jsxs)("div",{className:"mini-game-tab",children:[(0,wt.jsx)("div",{className:ut()("mini-game-tab-button",{"mini-game-active":0===o}),onClick:function(){return h(0)},children:u("today")}),(0,wt.jsx)("div",{className:ut()("mini-game-tab-button",{"mini-game-active":1===o}),onClick:function(){return h(1)},children:u("yesterday")})]})}),(0,wt.jsx)("div",{className:"mini-game-betHistory-body",onScroll:function(e){return p(e)},children:(0,wt.jsxs)("ul",{children:[0===d.length&&m&&(0,wt.jsx)(Gl,{}),d&&!m&&0===d.length&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:u("no data")}),f&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:u("isError")}),d&&d.length>0&&d.map((function(e,n){return function(e){if(null===e)switch(g){case $t.gV.mines:case $t.gV.chickenRoad:return!0;default:return!1}return!1}(null==e?void 0:e.winningNumber)?null:(0,wt.jsxs)("li",{children:[(0,wt.jsxs)("div",{className:"mini-game-left-col",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:"NO.".concat(e.numero)}),(0,wt.jsx)(lm,{bettingContent:e.bettingContent,winningNumber:e.winningNumber})]}),(0,wt.jsx)(fm,{order:e})]},n)}))]})})]})}$t.x3.BET_NOW,$t.x3.BET_NOW_RED;var gm=0,hm=function(e){var n=e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{sortNo:gm})}));return gm++,n},vm=(0,ta.Ue)()((0,na.n)((function(e){return{betChips:[],preBetChips:[],setBetChips:function(n){return e((function(e){e.betChips=hm(n)}))},clearChips:function(){return e((function(e){e.betChips=e.betChips.filter((function(e){return e.hasConfirm}))}))},resetChips:function(){return e((function(e){e.betChips=[]}))},resetPreBetChips:function(){return e((function(e){e.preBetChips=[]}))},appendBetChips:function(n){return e((function(e){var t;(t=e.betChips).push.apply(t,(0,u.Z)(hm(n)))}))},popBetChips:function(){return e((function(e){var n=Math.max.apply(Math,(0,u.Z)(e.betChips.map((function(e){return e.sortNo}))));e.betChips=e.betChips.filter((function(e){return e.sortNo!==n}))}))},updateChipsBetting:function(){return e((function(e){e.betChips=e.betChips.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasBetting:!0})}))}))},confirmAndStorageChip:function(n){return e((function(e){e.betChips=n,e.preBetChips=JSON.parse(JSON.stringify(n))}))}}}))),bm=((0,ta.Ue)()((0,na.n)((function(e){return{expectedBalance:0,balanceDifference:0,balanceVisible:!1,setBalanceDifference:function(n){return e((function(e){e.balanceDifference=n}))},setBalanceVisible:function(n){return e((function(e){e.balanceVisible=n}))},setExpectedBalance:function(n){return e((function(e){e.expectedBalance=n}))},resetData:function(){return e((function(e){e.balanceDifference=0,e.balanceVisible=!1,e.expectedBalance=0}))}}}))),(0,ta.Ue)()((0,na.n)((function(e){return{containerScale:0,introVisible:!1,betHistoryVisible:!1,setBetHistoryVisible:function(n){return e((function(e){e.betHistoryVisible=n}))},setIntroVisible:function(n){return e((function(e){e.introVisible=n}))},setContainerScale:function(n){return e((function(e){e.containerScale=n}))}}})))),xm=pt.Z.gameConfig.colorGame.groupPlayId,ym=pt.Z.gameConfig.colorGame.menuInfos[0].menuPlayId,_m=pt.Z.gameConfig.colorGame.playInfoIds;function wm(){var e=(0,Fn.he)("containers.GamesIntro."),n=bm((function(e){return e.setIntroVisible})),t=function(n){return e(0===n?"ColorGame.oneDice":1===n?"ColorGame.twoDice":"ColorGame.threeDice")};return(0,wt.jsxs)("div",{className:"mini-game-color-game-intro",children:[(0,wt.jsx)("div",{className:"mini-game-close-btn",onClick:function(){Ea.eq.play("".concat(Gu,"_s_button_03"),{volume:1}),n(!1)},children:(0,wt.jsx)("img",{src:Xi,alt:"close-btn"})}),(0,wt.jsxs)("div",{className:"mini-game-intro-content",children:[(0,wt.jsxs)("section",{className:"mini-game-intro-description",children:[(0,wt.jsxs)("h1",{children:[e("title"),":"]}),(0,wt.jsx)("p",{children:e("ColorGame.description")})]}),(0,wt.jsx)("section",{className:"mini-game-intro-table",children:(0,wt.jsxs)("div",{className:"mini-game-pay-table",children:[(0,wt.jsxs)("div",{className:"mini-game-row",children:[(0,wt.jsx)("div",{children:e("ColorGame.amount")}),(0,wt.jsx)("div",{children:e("odds")})]}),_m.map((function(e,n){return(0,wt.jsxs)("div",{className:"mini-game-row",children:[(0,wt.jsx)("div",{children:t(n)}),(0,wt.jsx)("div",{children:"1 : ".concat(ic({groupPlayId:xm,menuPlayId:ym,playInfoId:e}))})]},n)}))]})})]})]})}function Tm(e){(0,r.useEffect)((function(){var n=(0,Fn.Wf)();n&&at.subscribeUserChannel(n,(function(n){var t=JSON.parse(n).content;if("string"==typeof t){var a=/^LGSBALANCE_(\w+)_\d+_\d+_(-?\d+(.\d+)?)$/g.exec(t.replace(/,/g,""));if(null!==a){var i=(0,ot.Z)(a,3),r=i[1],o=i[2];if(r!==e)return;ft.Z.updateCustomerProfit(Number(o))}}}))}),[e])}var km=t(2294),Im=t(38706),Cm=pt.Z.gameConfig.ui.prefix;function Em(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?35:a,o=e.height,c=void 0===o?35:o,s=e.onClick,u=(0,r.useState)((0,Fn.$t)()),l=(0,ot.Z)(u,2),d=l[0],m=l[1];return(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:function(){d&&Ea.eq.play("".concat(Cm,"_s_button_01"),{volume:1});var e=!d;m(e),(0,Fn.SG)(e),e?Ea.eq.muteAll():Ea.eq.unmuteAll(),s&&s()},position:t,width:i,height:c,image:d?Im:km})}var jm=t(73999),Pm=t(62414);function Sm(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?35:a,r=e.height,o=void 0===r?35:r,c=e.onClick,s=e.visible;return(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:function(){c()},position:t,width:i,height:o,image:s?Pm:jm})}var Nm=t(41574),Bm=t(28158);function Am(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?35:a,r=e.height,o=void 0===r?35:r,c=e.onClick,s=e.visible;return(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:function(){c()},position:t,width:i,height:o,image:s?Bm:Nm})}var Rm=new fa.pn8({align:"center",fontFamily:"arial",fontSize:50,fill:["#ffffff"]}),Om=(0,r.memo)((function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),n=(0,Fn.he)("containers.GamesPanel."),t=(0,r.useState)(!1),o=(0,ot.Z)(t,2),s=o[0],u=o[1],l=(0,r.useState)(""),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=Ln.Z.getI18nLanguage(),h=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,.8),e.drawRect(0,0,640,80),e.endFill()}),[]);return(0,r.useEffect)((function(){if(null!==e)switch(e){case $t.x3.BET_NOW:"zh"===g?Ea.eq.play("".concat(Gu,"_v_plsbetnow_cn"),{volume:1}):Ea.eq.play("".concat(Gu,"_v_plsbetnow_en"),{volume:1}),p(n("PLEASE_BET_NOW")),u(!0);break;case $t.x3.BET_LOCKED:"zh"===g?Ea.eq.play("".concat(Gu,"_v_betlocked_cn"),{volume:1}):Ea.eq.play("".concat(Gu,"_v_betlocked_en"),{volume:1}),p(n("BET_LOCKED")),u(!0)}}),[e,g]),(0,wt.jsx)(ma.AM,{from:{x:640},to:function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n,t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({x:0,config:{duration:200}});case 2:return e.next=4,n({x:-640,delay:500,config:{duration:300}});case 4:u(!1);case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),reset:!0,children:function(e){return(0,wt.jsxs)(da.W2,(0,d.Z)((0,d.Z)({zIndex:4,renderable:s,position:[0,453]},e),{},{children:[(0,wt.jsx)(da.TC,{draw:h}),(0,wt.jsx)(da.xv,{position:[320,40],anchor:.5,text:f,style:Rm})]}))}})})),Mm=["data","isFetching"],Zm=function(){var e=vm().betChips,n=(0,zn.De)(),t=n.data,a=n.isFetching,i=(0,oa.Z)(n,Mm),o=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,s=(0,c.I0)(),u=(0,r.useState)(0),l=(0,ot.Z)(u,2),m=l[0],f=l[1],p=(0,r.useState)(!1),g=(0,ot.Z)(p,2),h=g[0],v=g[1],b=null==t?void 0:t.availBalance,x=function(e){f(e),h||v(!0)};return(0,r.useEffect)((function(){if(void 0!==b&&o===$t.x3.BET_NOW){var n=new Ja.Z(b),t=new Ja.Z(va(e,"unConfirm")),a=n.minus(t).toNumber();x(Math.max(a,0))}}),[b,e]),(0,r.useEffect)((function(){void 0===b||a||o!==$t.x3.BET_NOW&&x(b)}),[b,a]),(0,d.Z)({initialized:h,calculatedBalance:m,accountBalance:b||0,clearBalanceCache:function(){s(zn.nk.util.updateQueryData("getAccount",void 0,(function(e){Object.keys(e).forEach((function(n){delete e[n]}))})))}
1,data:t,isFetching:a},i)},Dm=25,Lm=new fa.pn8({align:"center",fontFamily:"arial",fontSize:15,fill:["#999999"]}),Gm=new fa.pn8({align:"center",fontFamily:"arial",fontSize:15,fill:["#fae124"]});function Wm(e){var n=e.wrapHeight,t=void 0===n?750:n,o=e.wrapWidth,s=void 0===o?640:o,u=(0,c.v9)((function(e){return e.gamePanelInfo.header.numero})),l=(0,r.useState)(0),d=(0,ot.Z)(l,2),m=d[0],f=d[1],p=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,g=Zm(),h=g.initialized,v=g.calculatedBalance,b=g.isLoading,x=g.isError,y=g.isFetching,_=g.refetch,w=b||x||!h&&y?"Loading...":(0,Fn.mT)(v),T=(0,r.useRef)(null),k=mt(v)||0,I=mt(h);return(0,r.useEffect)((function(){null==_||_()}),[_]),(0,r.useEffect)((function(){var e=!0;if(p===$t.x3.DRAW){var n=function(){var n=(0,i.Z)((0,a.Z)().mark((function n(){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Fn.gw)(2500);case 2:e&&_();case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n()}return function(){e=!1}}),[p]),(0,r.useEffect)((function(){if(I||!h){var e=new Ja.Z(v),n=new Ja.Z(k),t=e.minus(n).toNumber();T.current&&clearTimeout(T.current),f(t),T.current=setTimeout((function(){f(0)}),1e3)}}),[v,h]),(0,wt.jsxs)(sa.W2,{position:[0,t-Dm],children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(0,1),e.drawRect(0,0,s,Dm),e.endFill()}}),(0,wt.jsx)(sa.xv,{anchor:[0,.5],position:[19,12],text:"BALANCE",style:Gm}),(0,wt.jsx)(sa.xv,{anchor:[0,.5],position:[100,12],text:"".concat(w),style:Lm}),(0,wt.jsx)(sa.xv,{position:[628,12],anchor:[1,.5],text:"No.".concat(u),style:Lm}),0!==Math.abs(m)&&(0,wt.jsx)(sa.xv,{position:[95+10*w.length+5,12],anchor:[0,.5],text:"".concat(m>0?"+":"-").concat((0,Fn.mT)(Math.abs(m))),style:new fa.pn8({align:"center",fontFamily:"arial",fontWeight:"bold",fontSize:15,fill:[m>0?"#fae124":"#86141a"]})})]})}var Um=new fa.pn8({align:"center",fontFamily:"arial",fontSize:68,fill:["#ffffff"],fontWeight:"bold"});function qm(){var e=(0,r.useState)(null),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),o=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),s=(0,r.useRef)(null),u=(0,r.useRef)(null),l=si(o).data,d=(0,r.useCallback)((function(e){e.clear(),e.lineStyle(17,0,.8),e.drawCircle(0,0,56)}),[]),m=(0,r.useCallback)((function(e){if(null===t||null===u.current)return e.clear(),e.lineStyle(9,16777215,1),void e.arc(0,0,56,-.5*Math.PI,2*Math.PI);var n=-.5*Math.PI,a=2*Math.min(t/u.current,1)*Math.PI+n;e.clear(),e.lineStyle(9,16777215,1),e.arc(0,0,56,-.5*Math.PI,a)}),[t]);return ti((function(){if(l){var e=(0,Fn.v)(l.currentNumero.lockTime+Au,l.currentNumero.remainDrawTime);a(e)}}),1e3,!0),(0,r.useEffect)((function(){null!==t&&(t<5&&(Ea.eq.play("".concat(Gu,"_s_ring"),{volume:1}),0===t&&Ea.eq.play("".concat(Gu,"_s_lock"),{volume:1})),s.current===$t.x3.BET_NOW?null===u.current&&(u.current=t):s.current===$t.x3.BET_LOCKED&&(u.current=null))}),[t]),(0,r.useEffect)((function(){s.current=i}),[i]),(i===$t.x3.BET_NOW||i===$t.x3.BET_NOW_RED)&&t&&t<u.current?(0,wt.jsx)(sa.W2,{position:[325,250],children:null!==t&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.TC,{draw:d}),(0,wt.jsx)(sa.TC,{draw:m}),(0,wt.jsx)(sa.xv,{anchor:.5,text:"".concat(t),style:Um})]})}):null}var zm=t(2770),Fm=t(96277),Vm=(0,sa.Wf)("Viewport",{create:function(e){var n=new Fm.bs(e.app.renderer);n.domElement=e.app.renderer.view;var t=e.width,a=e.height,i=e.boxHeight,r=e.boxWidth,o=e.app.ticker,c=new zm.l_({screenWidth:t,screenHeight:a,worldWidth:r,worldHeight:i,ticker:o,events:n});return c.drag().clamp({left:!0,right:!0,top:!1,bottom:!1,direction:"all",underflow:"center"}).clampZoom({minScale:1,maxScale:1}).decelerate(),c},willUnmount:function(e,n){e.options.noTicker=!0,e.destroy({children:!0,texture:!0,baseTexture:!0})}}),Hm=(0,r.forwardRef)((function(e,n){var t=(0,sa.Y0)();return(0,wt.jsx)(Vm,(0,d.Z)({ref:n,app:t},e))})),Ym=pt.Z.gameConfig.colorGame.prefix,Xm=new fa.pn8({align:"center",fontFamily:"arial",fontSize:14,fill:["#404040"]}),Km=function(e){var n=3*e.length,t=[{num:1,index:4,count:0,percentage:""},{num:2,index:3,count:0,percentage:""},{num:3,index:2,count:0,percentage:""},{num:4,index:1,count:0,percentage:""},{num:5,index:5,count:0,percentage:""},{num:6,index:0,count:0,percentage:""}];return e.forEach((function(e){e.forEach((function(e){Number.isNaN(e)||t[e-1].count++}))})),t.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{percentage:(e.count/n*100).toFixed(1)+"%"})}))};function Qm(){var e=(0,r.useState)(null),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,c.v9)((function(e){return e.gameDrawHistoryInfo})),o=(0,r.useState)([]),s=(0,ot.Z)(o,2),u=s[0],l=s[1],d=(0,r.useState)([]),m=(0,ot.Z)(d,2),f=m[0],p=m[1],g=(0,c.v9)((function(e){return e.gamePanelInfo.drawState}));return(0,r.useEffect)((function(){if(!u.length||i.drawHistory.length&&g===$t.x3.DRAW){var e=(i.drawHistory||[]).slice(0,20).map((function(e){return e.winNo.split("").map((function(e){return Number(e)}))}));l(e);var n=Km(e);p(n)}}),[g,i]),(0,wt.jsxs)(sa.W2,{position:[453,45],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Ym,"_trend_main")],width:176,height:235}),(0,wt.jsx)(sa.jy,{width:88,height:55,position:[88,-42],anchor:[.5,0],texture:fa.P6Y.TextureCache["".concat(Ym,"_coalBall2")]}),(0,wt.jsxs)(sa.W2,{width:620,position:[12,52],mask:t,children:[(0,wt.jsx)(sa.TC,{draw:function(e){return e.beginFill(0),e.drawRect(0,0,176,100),e.endFill(),e},ref:a}),(0,wt.jsx)(Hm,{width:176,height:100,boxWidth:754,boxHeight:100,children:u.map((function(e,n){return(0,wt.jsxs)(sa.W2,{position:[32*n+6*n,2],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Ym,"_trend_combination_black")],width:32,height:76}),(0,wt.jsx)(sa.jy,{visible:0===n,texture:fa.P6Y.TextureCache["".concat(Ym,"_trend_combination_new")],width:32,height:76}),e.map((function(e,n){return Number.isNaN(e)?null:(0,wt.jsx)(sa.jy,{position:[4,5+20*n+3*n],texture:fa.P6Y.TextureCache["".concat(Ym,"_trend_combination_").concat(Ru[e])],width:24,height:20},n)}))]},n)}))})]}),(0,wt.jsx)(sa.W2,{position:[12,144],children:f.map((function(e,n){var t=e.index;return(0,wt.jsx)(sa.xv,{position:[24+t%3*48+t%3*4,20+40*Math.floor(t/3)+4*Math.floor(t/3)],anchor:.5,text:"".concat(e.percentage),style:Xm},n)}))})]})}var Jm=new fa.pn8({align:"center",fontFamily:"arial",fontSize:25,fill:["#ffffff"]});function $m(){var e=(0,r.useState)(!1),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),o=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers}
1));return(0,r.useEffect)((function(){switch(i){case $t.x3.BET_NOW:a(!1);break;case $t.x3.DRAW:Ea.eq.play("".concat(Wu,"_s_snowresult"),{volume:1}),a(!0)}}),[i]),(0,wt.jsx)(ma.AM,{from:{opacity:0,scale:0},to:t?{opacity:1,scale:1}:{opacity:0,scale:0},config:{duration:300},children:function(e){return(0,wt.jsxs)(da.W2,{scale:e.scale,alpha:e.opacity,position:[320,246],pivot:[157,66],zIndex:3,children:[(0,wt.jsx)(da.jy,{width:157,height:132,texture:fa.P6Y.TextureCache["".concat(Wu,"_result_frame")]}),(0,wt.jsx)(da.jy,{scale:[-1,0],width:157,height:132,position:[314,0],texture:fa.P6Y.TextureCache["".concat(Wu,"_result_frame")]}),(0,wt.jsx)(da.xv,{isSprite:!0,position:[157,6],anchor:[.5,0],text:"Result",style:Jm}),o.split("").map((function(e,n){var t=Ru[e];return o.includes("?")?null:(0,wt.jsx)(da.jy,{width:80,height:80,position:[18*n+80*n+20,38],texture:fa.P6Y.TextureCache["".concat(Wu,"_result_").concat(t)]},n)}))]})}})}var ef=[$t.x3.BET_NOW,$t.x3.BET_NOW_RED],nf=["cyan","red","purple","green","blue"],tf=function(e,n){return e.filter((function(e){return n.includes(e.prizeType)})).map((function(e){return e.prizeType})).filter((function(e,n,t){return t.indexOf(e)===n}))},af=function(e,n,t){var a=e[n];return Array.isArray(a)?"number"==typeof t?a[t]>10?50:5*a[t]:0:a>10?50:5*a},rf=t(96801),of=t(979);function cf(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.onClick,i=e.disabled,o=void 0!==i&&i,c=e.children,s=(0,r.useState)({scale:1}),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=(0,r.useState)(!1),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=function(){h(!0),m({scale:.85})},b=function(){h(!1),m({scale:1}),a&&a()},x=function(){h(!1),m({scale:1})};return(0,wt.jsx)(ma.AM,{to:(0,d.Z)({},l),config:{duration:100},children:function(e){return(0,wt.jsx)(da.W2,{eventMode:o?"none":"static",onpointerdown:v,onpointerup:b,onpointerupoutside:x,position:[t[0]+68,t[1]+44],scale:e.scale,children:c&&"function"==typeof c?c(g):c})}})}var sf=["alpha"];function uf(e){var n=e.alpha,t=void 0===n?1:n,a=(0,oa.Z)(e,sf),i=(0,r.useRef)(null),o=(0,r.useState)(!1),c=(0,ot.Z)(o,2),s=c[0],u=c[1];return(0,r.useEffect)((function(){var e=i.current;e&&requestAnimationFrame((function n(){var t;null!==(t=e.texture)&&void 0!==t&&t.valid?u(!0):requestAnimationFrame(n)}))}),[]),(0,wt.jsx)(da.xv,(0,d.Z)((0,d.Z)({},a),{},{ref:i,alpha:s?t:0}))}var lf=new fa.pn8({fontFamily:"Arial",fill:"#ffffff",fontSize:20,align:"center"});function df(e){var n=e.width,t=void 0===n?115:n,a=e.height,i=void 0===a?90:a,r=e.disabled,o=void 0!==r&&r,c=e.image,s=void 0===c?"":c,u=e.text,l=void 0===u?"":u;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(da.jy,{anchor:.5,width:t,height:i,image:s}),(0,wt.jsx)(uf,{text:l,anchor:.5,alpha:o?.5:1,x:0,y:22,style:lf})]})}function mf(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?115:a,r=e.height,o=void 0===r?90:r,c=e.onClick,s=e.disabled,u=void 0!==s&&s,l=u?of:rf;return(0,wt.jsx)(cf,{position:t,onClick:c,disabled:u,children:(0,wt.jsx)(df,{width:i,height:o,disabled:u,image:l,text:"Again"})})}var ff=t(59127),pf=t(4518),gf=new fa.pn8({fontFamily:"Arial",fill:["#ffffff"],fontSize:20,align:"center"}),hf=function(e){var n=e.width,t=e.height,a=(0,r.useState)([]),i=(0,ot.Z)(a,2),o=i[0],c=i[1];return(0,r.useEffect)((function(){!function(){for(var e=fa.P6Y.TextureCache,n=[],t=0;t<61;t++)n.push(e["auto_bet_button_v2".concat(t,".png")]);c(n)}()}),[]),(0,wt.jsxs)(wt.Fragment,{children:[(null==o?void 0:o.length)>0?(0,wt.jsx)(da.Kg,{anchor:.5,isPlaying:!0,loop:!0,width:n+15,height:t+14,textures:o}):null,(0,wt.jsx)(uf,{text:"Auto",anchor:.5,x:0,y:24,style:gf})]})};function vf(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?115:a,r=e.height,o=void 0===r?90:r,c=e.onClick,s=e.disabled,u=void 0!==s&&s,l=e.autoBetting,d=void 0!==l&&l,m=!d&&u;return(0,wt.jsx)(cf,{position:t,onClick:c,disabled:m,children:function(){return d?(0,wt.jsx)(df,{width:i,height:o,image:pf,text:"Stop"}):u?(0,wt.jsx)(df,{width:i,height:o,disabled:u,image:ff,text:"Auto"}):(0,wt.jsx)(hf,{width:i,height:o})}})}var bf=t(41702),xf=t(10116);function yf(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?115:a,r=e.height,o=void 0===r?90:r,c=e.onClick,s=e.disabled,u=void 0!==s&&s,l=u?xf:bf;return(0,wt.jsx)(cf,{position:t,onClick:c,disabled:u,children:(0,wt.jsx)(df,{width:i,height:o,disabled:u,image:l,text:"Double"})})}var _f=t(5251),wf=t(59284);function Tf(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?115:a,r=e.height,o=void 0===r?90:r,c=e.onClick,s=e.disabled,u=void 0!==s&&s,l=u?wf:_f;return(0,wt.jsx)(cf,{position:t,onClick:c,disabled:u,children:(0,wt.jsx)(df,{width:i,height:o,disabled:u,image:l,text:"Undo"})})}
1function kf(e){var n=e.width,t=e.height,a=e.color,i=(0,r.useCallback)((function(e){e.clear(),e.beginFill(a,1),e.drawRect(0,0,n,t),e.endFill()}),[n,t,a]);return(0,wt.jsx)(sa.TC,{draw:i})}function If(e){var n=e.width,t=e.height,a=e.color,i=(0,r.useCallback)((function(e){e.clear(),e.beginFill(a,1),e.drawRect(0,0,n,t),e.endFill(),e.lineStyle(6,8487297,1),e.moveTo(50,t/2-10),e.lineTo(40,t/2),e.lineTo(50,t/2+10)}),[n,t,a]);return(0,wt.jsx)(sa.TC,{draw:i})}function Cf(e){var n=e.width,t=e.height,a=e.color,i=(0,r.useCallback)((function(e){e.clear(),e.beginFill(a,1),e.drawRect(0,0,n,t),e.endFill(),e.lineStyle(6,16507219,1),e.moveTo(n/2-10,t/2),e.lineTo(n/2,t/2+10),e.lineTo(n/2+20,t/2-10)}),[n,t,a]);return(0,wt.jsx)(sa.TC,{draw:i})}function Ef(e){var n=e.position,t=(0,r.useCallback)((function(e){e.clear(),e.beginFill(8421504,1),e.moveTo(10,0),e.lineTo(0,10),e.lineTo(10,20),e.endFill(),e.closePath(),e.beginFill(8421504,1),e.drawRect(10,0,30,20),e.endFill(),e.lineStyle(2,0,1),e.moveTo(20,5),e.lineTo(30,15),e.closePath(),e.lineStyle(2,0,1),e.moveTo(30,5),e.lineTo(20,15),e.closePath()}),[]);return(0,wt.jsx)(sa.TC,{position:[n.x,n.y],draw:t})}function jf(e){var n=e.btnWidth,t=e.btnHeight,a=(0,r.useCallback)((function(e){e.clear(),e.beginFill(14540253,.4),e.drawRoundedRect(0,0,n-10,t-10,16),e.endFill()}),[n,t]);return(0,wt.jsx)(sa.TC,{position:e.position,draw:a})}var Pf=new fa.pn8({align:"center",fontFamily:"arial",fontSize:50,fill:["#ffffff"]}),Sf=new fa.pn8({align:"center",fontFamily:"arial",fontWeight:"bold",fontSize:40,fill:["#919191"],letterSpacing:.75}),Nf=new fa.pn8({align:"center",fontFamily:"arial",fontSize:20,fill:["#919191"]}),Bf=160,Af=75,Rf=0,Of=0;function Mf(e){var n=e.value,t=e.position,a=void 0===t?{x:0,y:0}:t,i=e.confirmClick,o=e.cancelClick,c=e.numberClick,s=e.backClick,u=e.width,l=e.height,d=e.zIndex,m=void 0===d?0:d,f=(0,r.useState)(null),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,Fn.he)("components.calculator."),b=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,1),e.drawRect(0,0,u,l),e.endFill()}),[u,l]),x=(0,r.useCallback)((function(e){e.clear(),e.beginFill(2894902,1),e.drawRoundedRect(0,0,630,75,16),e.endFill()}),[]),y=(0,r.useCallback)((function(e){return{x:e%3*Bf+e%3*Of,y:Math.floor(e/3)*Af+Math.floor(e/3)*Rf}}),[]);return(0,wt.jsxs)(sa.W2,{width:u,height:l,position:a,zIndex:m,children:[(0,wt.jsx)(sa.TC,{draw:b}),(0,wt.jsxs)(sa.W2,{zIndex:5,position:[5,8],eventMode:"dynamic",children:[(0,wt.jsx)(sa.TC,{draw:x}),(0,wt.jsx)(sa.xv,{text:"".concat(n),anchor:[1,.5],position:[630,37.5],style:Pf})]}),(0,wt.jsx)(sa.W2,{position:[5,91],children:[{key:1,value:1,color:2171435},{key:2,value:2,color:2894902},{key:3,value:3,color:2171435},{key:4,value:4,color:921102},{key:5,value:5,color:1513241},{key:6,value:6,color:921102},{key:7,value:7,color:2171435},{key:8,value:8,color:2894902},{key:9,value:9,color:2171435},{key:"",value:"",color:921102},{key:0,value:0,color:1513241},{key:"x",value:"x",color:921102}].map((function(e,n){return""===e.key?(0,wt.jsx)(sa.W2,{eventMode:"static",position:y(n),children:(0,wt.jsx)(kf,{width:160,height:75,color:921102})},e.key):(0,wt.jsxs)(sa.W2,{eventMode:"static",position:y(n),onpointerdown:function(){return"string"==typeof e.key?function(e){h(e),s(e)}(e.key):function(e){h(e),c(e)}(e.key)},onpointerup:function(){return e.value,void h(null)},children:[(0,wt.jsx)(kf,{width:160,height:75,color:e.color}),g===e.value&&(0,wt.jsx)(jf,{position:{x:5,y:5},btnWidth:160,btnHeight:75,color:14540253}),"x"===e.key?(0,wt.jsx)(Ef,{position:{x:55,y:27.5},width:40,height:30,color:16777215}):(0,wt.jsx)(sa.xv,{text:"".concat(e.value),anchor:.5,position:[Bf/2,Af/2],style:Sf})]},e.key)}))}),(0,wt.jsxs)(sa.W2,{position:[480,91],children:[(0,wt.jsxs)(sa.W2,{eventMode:"static",onpointerdown:o,children:[(0,wt.jsx)(If,{width:160,height:75,color:921102}),(0,wt.jsx)(sa.xv,{position:[60,37.5],anchor:[0,.5],text:v("cancel"),style:Nf})]}),(0,wt.jsx)(sa.W2,{eventMode:"static",onpointerdown:i,position:[0,75],children:(0,wt.jsx)(Cf,{width:160,height:225,color:1513241})})]})]})}var Zf=pt.Z.gameConfig.ui.prefix,Df=new fa.pn8({align:"center",fontFamily:"arial",fontSize:25,fill:["#ffffff"],fontWeight:"bold"});function Lf(e){var n=e.position,t=e.onClick,a=e.isLight,i=void 0!==a&&a,r=e.color,o=e.isMask,c=void 0!==o&&o,s=e.textValue,u=e.scale,l=void 0===u?1:u,d=e.opacity,m=void 0===d?1:d,f=e.size,p=void 0===f?75:f;return(0,wt.jsxs)(da.W2,{alpha:m,scale:l,position:n,eventMode:t?"static":"none",onpointerdown:function(){t&&t()},children:[(0,wt.jsx)(da.jy,{visible:i,anchor:.5,width:p+7,height:p+7,texture:fa.P6Y.TextureCache["".concat(Zf,"_casinoChips_new")]}
1),(0,wt.jsx)(da.jy,{anchor:.5,width:p,height:p,texture:fa.P6Y.TextureCache["".concat(Zf,"_casinoChips_").concat(r)]}),s&&(0,wt.jsx)(uf,{anchor:.5,text:"".concat(s),style:Df}),(0,wt.jsx)(da.jy,{visible:c,anchor:.5,width:p,height:p,texture:fa.P6Y.TextureCache["".concat(Zf,"_casinoChips_mask")]})]})}var Gf=t(11757);function Wf(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?35:a,r=e.height,o=void 0===r?35:r,c=e.onClick,s=e.texture,u=e.isFlipped,l=void 0!==u&&u,d=e.disabled,m=function(){c&&c()},f=(0,ot.Z)(t,2),p=f[0],g=[l?p+i:p,f[1]],h=l?{x:-1,y:1}:{x:1,y:1},v=d?"none":"static";return s?(0,wt.jsx)(sa.W2,{position:g,scale:h,children:(0,wt.jsx)(sa.jy,{eventMode:v,onpointerdown:m,width:i,height:o,texture:s})}):(0,wt.jsx)(sa.W2,{position:g,scale:h,children:(0,wt.jsx)(sa.jy,{eventMode:v,onpointerdown:m,width:i,height:o,image:Gf})})}var Uf=function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,640,70),e.endFill()},qf=function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,640,390),e.endFill()},zf=function(e){e.clear(),e.beginFill(0,.01),e.drawRect(0,0,640,745),e.endFill()},Ff=100,Vf=51.5,Hf=124,Yf=-98,Xf=[0,-12,10,10,-12,0],Kf=function(e){return Xf.slice(0,e+1).reduce((function(e,n){return e+n}),0)};function Qf(e){var n,t,a,i,r,o,c,s,u,l,d=e.position,m=void 0===d?[0,655]:d,f=e.buttons,p=e.chip,g=e.chipSelector,h=e.calculator;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(sa.W2,{position:m,children:[(0,wt.jsx)(sa.TC,{draw:Uf}),(0,wt.jsx)(vf,{position:[5,-22],onClick:null==f||null===(n=f.autoBet)||void 0===n?void 0:n.onClick,disabled:null==f||null===(t=f.autoBet)||void 0===t?void 0:t.disabled,autoBetting:null==f||null===(a=f.autoBet)||void 0===a?void 0:a.autoBetting}),(0,wt.jsx)(mf,{onClick:null==f||null===(i=f.repeatBet)||void 0===i?void 0:i.onClick,position:[135,-22],disabled:null==f||null===(r=f.repeatBet)||void 0===r?void 0:r.disabled}),(0,wt.jsx)(Lf,{color:nf[p.selectedChipIndex],textValue:"".concat(p.value),position:[323,22],isLight:!0,onClick:p.onClick,size:86},"selectedChipIndex"),(0,wt.jsx)(yf,{onClick:null==f||null===(o=f.doubleBet)||void 0===o?void 0:o.onClick,position:[374,-22],disabled:null==f||null===(c=f.doubleBet)||void 0===c?void 0:c.disabled}),(0,wt.jsx)(Tf,{onClick:null==f||null===(s=f.undo)||void 0===s?void 0:s.onClick,position:[504,-22],disabled:null==f||null===(u=f.undo)||void 0===u?void 0:u.disabled})]}),(null==g?void 0:g.show)&&g.chipValues&&(0,wt.jsxs)(sa.W2,{position:[m[0]+72,m[1]+Yf],zIndex:10,children:[(0,wt.jsx)(sa.TC,{position:[-m[0]-72,-m[1]-Yf],eventMode:"static",onpointerdown:g.onOverlayClick,draw:zf}),g.chipValues.map((function(e,n){var t=Math.PI/(g.chipValues.length-1),a=10-Math.sin(n*t)*Hf,i=[Vf+n*Ff+Kf(n),a];return(0,wt.jsx)(gt.AM,{from:{alpha:0,position:[251,120]},to:{alpha:1,position:i},children:function(t){return(0,wt.jsx)(Lf,{color:nf[n]||"",position:t.position,opacity:t.alpha,textValue:"".concat(e.value),isLight:n===p.selectedChipIndex,isMask:n!==p.selectedChipIndex,onClick:function(){var e;return null===(e=g.onSelect)||void 0===e?void 0:e.call(g,n)},size:Ff},"chipValues_".concat(n))}},"chipValues_Spring_".concat(n))})),(0,wt.jsx)(Wf,{onClick:g.onEditClick,position:[473,-47]})]}),h.show&&null!==h.value&&void 0!==h.value?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.TC,{eventMode:"static",zIndex:20,onpointerdown:h.onCancel,draw:qf}),(0,wt.jsx)(Mf,{value:null!==(l=h.value)&&void 0!==l?l:0,position:function(e){return e?{x:e[0],y:e[1]}:{x:0,y:360}}(h.position),zIndex:20,width:640,height:390,confirmClick:h.onConfirm,backClick:h.onBack,cancelClick:h.onCancel,numberClick:h.onNumber})]}):null]})}var Jf=pt.Z.gameConfig.ui.prefix;function $f(e){var n,t,a=e.position,i=e.handlePrevBet,o=e.handleUndo,s=e.handleDoubleBet,u=e.isDisabledPrevBet,l=e.isDisabledUndo,d=e.isDisabledDoubleBet,m=e.autoBetMode,f=e.autoBet,p=e.autoBetOff,g=e.autoBetOn,h=e.isAutoBetDisabled,v=(0,c.v9)((function(e){return e.calculatorInfo.show})),b=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),x=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),y=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),_=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.showChipSelector})),w=(0,r.useMemo)((function(){return y.map((function(e,n){return{index:n,value:e}}))}),[y]),T=function(){return Ea.eq&&Ea.eq.play("".concat(Jf,"_s_button_02"),{volume:1})};return(0,wt.jsx)(Qf,{position:a,buttons:{autoBet:{onClick:function(){T(),f?null==p||p():null==g||g()},autoBetting:f,disabled:!m||h},repeatBet:{onClick:function(){T(),i()},disabled:m||u},doubleBet:{onClick:function(){T(),s()},disabled:f||d},undo:{onClick:function(){T(),o()},disabled:f||l}},chip:{value:"".concat(null!==(n=null===(t=w[x])||void 0===t?void 0:t.value)&&void 0!==n?n:""),selectedChipIndex:x,onClick:function(){T(),ft.Z.toggleChipSelectorPanel()}},chipSelector:{show:_,chipValues:w,onSelect:function(e){T(),ft.Z.changeSelectedChip(e)},onEditClick:function(){T(),pi.open()},onOverlayClick:function(){T(),ft.Z.toggleChipSelectorPanel()}},calculator:{show:v,value:null!=b?b:void 0,position:[0,360],onConfirm:function(){T(),pi.confirmHandle()},onCancel:function(){T(),pi.close()},onBack:function(e){T(),pi.updateEditAmount(e)},onNumber:function(e){T(),pi.updateEditAmount("".concat(e))}}})}var ep=function(e){var n=e.menuInfos.map((function(e){return e.playInfos.map((function(e){return e.prizeType}))})).flat();return n.reduce((function(e,n){return(0,d.Z)((0,d.Z)({},e),{},(0,l.Z)({},n,0))}),{})};function np(e){var n=e.gameConfig,t=(0,r.useState)(null),a=(0,ot.Z)(t,2),i=a[0],o=a[1],c=(0,r.useState)(ep(n)),s=(0,ot.Z)(c,2),u=s[0],l=s[1],m=(0,r.useState)(ep(n)),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=(0,r.useState)(50),v=(0,ot.Z)(h,2),b=v[0],x=v[1],y=(0,r.useCallback)((function(){o(null),l(ep(n)),g(ep(n))}),[]);return(0,r.useEffect)((function(){var e=(0,Fn.Z_)();return at.subscribeGameBotBet(e,(function(e){var n,t=JSON.parse(e),a=null===(n=qn.Z.getState().gamePanelInfo.info)||void 0===n?void 0:n.gameCode;if(t.gameCode===a){var i=qn.Z.getState().gamePanelInfo.drawState;if(!i||![$t.x3.BET_NOW,$t.x3.BET_NOW_RED].includes(i))return;var r=t.gameBotPlayTOList;o(t),g((function(e){for(var n=0;n<r.length;n++){var t=r[n],a=t.prizeType,i=t.totalBetAmount;void 0!==e[a]&&e[a]<=i&&(e[a]=i)}return(0,d.Z)({},e)})),l((function(e){for(var n=0;n<r.length;n++){var t=r[n],a=t.prizeType,i=t.totalBetCount;void 0!==e[a]&&e[a]<=i&&(e[a]=i)}return(0,d.Z)({},e)}));var c=(0,Fn.sZ)(1,5)*(0,Fn.sZ)(-1,1);x((function(e){return e<40?e+Math.abs(c):e+c}
1))}})),function(){at.unsubscribeUserChannel(),at.unsubscribeGameBotBet(e)}}),[]),{totalUser:b,botData:i,userQtysData:u,totalAmountData:p,resetBotData:y}}var tp=pt.Z.gameConfig.colorGame.prefix,ap=new fa.pn8({align:"center",fontFamily:"arial",fontSize:15,fill:["#ffffff"]}),ip=function(e){var n=e.position,t=e.value,a=e.iconType,i=(0,r.useState)(0),o=(0,ot.Z)(i,2),c=o[0],s=o[1];return(0,r.useEffect)((function(){var e=fa._A.measureText(t,ap);s(e.width)}),[t]),(0,wt.jsxs)(sa.W2,{position:n,children:[(0,wt.jsx)(sa.jy,{width:150,height:25,texture:fa.P6Y.TextureCache["".concat(tp,"_choose_textBar")]}),(0,wt.jsx)(sa.jy,{anchor:.5,position:[75-c/2-18,12],width:18,height:18,texture:fa.P6Y.TextureCache["".concat(tp,"_").concat(a)]}),(0,wt.jsx)(sa.xv,{position:[75,12],anchor:.5,text:"".concat(t),style:ap})]})},rp=pt.Z.gameConfig.colorGame.prefix;function op(e){var n=e.item,t=e.index,a=e.handleClick,i=e.userAmount,r=e.botAmount,o=e.isLight,c=e.isMask,s=e.getRef,u=e.isFlash,l=new fa.E9j(Zu[t][0],Zu[t][1]),d=function(e){return(new Intl.NumberFormat).format(e).toString()};return(0,wt.jsxs)(sa.W2,{ref:s,eventMode:"static",position:l,onpointerdown:function(){return a(n,t)},children:[(0,wt.jsx)(sa.jy,{width:200,height:115,texture:fa.P6Y.TextureCache["".concat(rp,"_choose_").concat(n.key)]}),(0,wt.jsx)(ip,{position:new fa.E9j(25,6),value:d(r),iconType:"silver"}),(0,wt.jsx)(ip,{position:new fa.E9j(25,85),value:d(i),iconType:"gold"}),(0,wt.jsx)(sa.jy,{visible:o||u,position:[-8,-8],width:214,height:129,texture:fa.P6Y.TextureCache["".concat(rp,"_choose_light")]}),(0,wt.jsx)(sa.jy,{visible:c,position:[0,0],width:200,height:115,texture:fa.P6Y.TextureCache["".concat(rp,"_choose_mask")]})]})}function cp(e){return(0,r.useEffect)((function(){e.isBonus&&Ea.eq.play("".concat(Gu,"_s_win"),{volume:.4})}),[e.isBonus]),(0,wt.jsx)(sa.xv,{visible:e.isBonus,text:"X".concat(e.bonus),anchor:[.5,.5],position:[100,57],style:new fa.pn8({fontFamily:"Arial",fontSize:54,fill:["#FBEF82","#fabf23","#f0c227"],fontWeight:"bold",stroke:"#cd6c0e",strokeThickness:5,dropShadow:!0,dropShadowBlur:2,dropShadowColor:"#743604",dropShadowDistance:2})})}var sp=(0,r.forwardRef)((function(e,n){var t=e.bonusChips,o=e.position,c=e.drawState,s=e.animationState,u=e.zIndex,l=void 0===u?0:u,d=(0,r.useMemo)((function(){return ka(t)}),[t]);return(0,wt.jsx)(sa.W2,{ref:n,position:[o[0],o[1]],zIndex:l,children:d.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:{position:[0,0],opacity:0},to:function(){var n=(0,i.Z)((0,a.Z)().mark((function n(t,i){var r,o;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c!==$t.x3.DRAW){n.next=19;break}r=e.moveX,o=e.moveY,n.t0=s,n.next=n.t0===$t.SR.FlyWinTarget?6:n.t0===$t.SR.FlyOrigin?11:16;break;case 6:return n.next=8,t({opacity:1,config:{duration:0}});case 8:return n.next=10,t({position:[r-30,o],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 10:case 15:case 18:return n.abrupt("break",19);case 11:return n.next=13,t({position:[r-30,o],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 13:return n.next=15,t({opacity:0,config:{duration:200}});case 16:return n.next=18,t({opacity:0,config:{duration:0}});case 19:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),children:function(n){return(0,wt.jsx)(Lf,{position:n.position,scale:.5,color:nf[e.styleIndex],opacity:n.opacity})}},n)}))})})),up=sp,lp=(0,r.forwardRef)((function(e,n){var t=e.betChips,o=e.position,c=e.drawState,s=e.animationState,u=e.winPrizeType,l=e.zIndex,d=void 0===l?0:l,m=(0,r.useMemo)((function(){return ka(t)}),[t]);return(0,wt.jsx)(sa.W2,{ref:n,position:[o[0],o[1]],zIndex:d,children:m.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:{position:[0,0],opacity:1},to:function(){var n=(0,i.Z)((0,a.Z)().mark((function n(t,i){var r,o,l;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c!==$t.x3.DRAW){n.next=25;break}r=e.moveX,o=e.moveY,l=!u.includes(e.prizeType),n.t0=s,n.next=n.t0===$t.SR.FlyCenter?7:n.t0===$t.SR.FlyWinTarget?13:18;break;case 7:return n.next=9,t({position:[r,o],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 9:if(!l){n.next=12;break}return n.next=12,t({opacity:0,config:{duration:0}});case 12:case 17:case 22:return n.abrupt("break",23);case 13:return n.next=15,t({opacity:l?0:1,config:{duration:0}});case 15:return n.next=17,t({position:[r,o],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 18:return n.next=20,t({position:[r,o],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 20:return n.next=22,t({opacity:0,config:{duration:200}});case 23:n.next=27;break;case 25:return n.next=27,t({position:[e.moveX,e.moveY],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 27:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),children:function(n){return(0,wt.jsx)(Lf,{position:n.position,scale:.5,color:nf[e.styleIndex],opacity:n.opacity})}},n)}))})})),dp=lp,mp=pt.Z.gameConfig.ui.prefix,fp=new fa.pn8({align:"center",fontFamily:"arial",fontSize:20,fill:["#ffffff"]}),pp=function(e){var n=e.count,t=e.position,a=void 0===t?[0,0]:t;return(0,wt.jsxs)(sa.W2,{position:a,zIndex:2,children:[(0,wt.jsx)(sa.jy,{width:22,height:28,texture:fa.P6Y.TextureCache["".concat(mp,"_numberPeople")]}),(0,wt.jsx)(sa.xv,{position:[30,4],text:"".concat(n),style:fp})]})},gp=(0,r.forwardRef)((function(e,n){var t=e.botChips,r=e.position,o=e.drawState,c=e.animationState,s=e.winPrizeType,u=e.zIndex,l=void 0===u?0:u;return(0,wt.jsx)(sa.W2,{ref:n,position:[r[0],r[1]],zIndex:l,children:t.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:{position:[0,0],opacity:1},to:function(){var n=(0,i.Z)((0,a.Z)().mark((function n(t,i){var r,u,l;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.moveX,u=e.moveY,o!==$t.x3.DRAW){n.next=23;break}l=!s.includes(e.prizeType),n.t0=c,n.next=n.t0===$t.SR.FlyCenter?7:n.t0===$t.SR.FlyWinTarget||n.t0===$t.SR.FlyOrigin?15:18;break;case 7:return n.next=9,t({opacity:1,config:{duration:0}});case 9:return n.next=11,t({position:[r,u],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 11:if(!l){n.next=14;break}return n.next=14,t({opacity:0}
1);case 14:case 17:case 20:return n.abrupt("break",21);case 15:return n.next=17,t({position:[r,u],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 18:return n.next=20,t({opacity:0,config:{duration:0}});case 21:n.next=27;break;case 23:return n.next=25,t({position:[r,u],config:{duration:600,easing:gt.Z5.easeOutCubic}});case 25:return n.next=27,t({opacity:0,config:{duration:200}});case 27:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),children:function(n){return(0,wt.jsx)(Lf,(0,d.Z)({scale:.5,color:nf[e.styleIndex]},n))}},n)}))})})),hp=gp,vp=function(){return null===Ea.eq||void 0===Ea.eq?void 0:Ea.eq.play("".concat(Gu,"_s_chip_01"),{volume:1})},bp=function(){return null===Ea.eq||void 0===Ea.eq?void 0:Ea.eq.play("".concat(Gu,"_s_dingding"),{volume:1})},xp=[19,313];function yp(e){var n=e.handleToBetting,t=aa().containerScale,o=vm(),s=o.betChips,l=o.resetChips,m=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,f=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),p=np({gameConfig:Uu}),g=p.totalUser,h=p.totalAmountData,v=p.botData,b=p.resetBotData,x=(0,c.v9)((function(e){return e.gamePanelInfo.info})),y=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(null==x?void 0:x.gameId)).data,_=ac(null==x?void 0:x.gameId,zu,Fu).bonusList,w=function(e){var n=e.drawState,t=e.playSound,o=(0,r.useState)(!1),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(0);return(0,r.useEffect)((function(){if(n===$t.x3.BET_NOW){if(l.current>1){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,(0,Fn.gw)(100);case 3:return u(!1),e.next=6,(0,Fn.gw)(100);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=function(){var n=(0,i.Z)((0,a.Z)().mark((function n(){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Fn.gw)(1e3);case 2:return t(),n.next=5,e();case 5:return n.next=7,e();case 7:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();r()}}else l.current++}),[n,t]),{isFlash:s}}({drawState:m,playSound:bp}),T=w.isFlash,k=function(){return f.split("").map((function(e){return Ou[e]})).filter((function(e,n,t){return t.indexOf(e)===n}))},I=function(e){var n=e.drawState,t=e.drawNumbers,o=e.drawResultPoint,c=e.userChipsAreaPoint,s=e.originPosition,l=e.useBetChipsStore,m=e.winPrizeType,f=e.betBlockCount,p=e.betBlocksData,g=e.containerScale,h=e.resetAllChips,v=l(),b=v.betChips,x=v.setBetChips,y=(0,r.useRef)(""),_=(0,r.useRef)(t),w=(0,r.useRef)([]),T=(0,r.useRef)(m),k=(0,r.useRef)(g),I=(0,r.useRef)(b),C=(0,r.useRef)(null),E=(0,r.useState)([]),j=(0,ot.Z)(E,2),P=j[0],S=j[1],N=(0,r.useRef)([]),B=(0,r.useRef)(null),A=(0,r.useRef)(null),R=(0,r.useRef)(null),O=(0,r.useState)([]),M=(0,ot.Z)(O,2),Z=M[0],D=M[1],L=(0,r.useState)([]),G=(0,ot.Z)(L,2),W=G[0],U=G[1],q=(0,r.useRef)([]);(0,r.useEffect)((function(){k.current=g}),[g]),(0,r.useEffect)((function(){q.current=Z}),[Z]),(0,r.useEffect)((function(){I.current=(0,u.Z)(b)}),[b]),(0,r.useEffect)((function(){_.current=t}),[t]),(0,r.useEffect)((function(){N.current=(0,u.Z)(P)}),[P]),(0,r.useEffect)((function(){T.current=m}),[m]),(0,r.useEffect)((function(){w.current=Array(f).fill((0,r.createRef)())}),[f]);var z=function(){Ea.eq.play("ui_s_chip_02",{volume:1});var e=q.current.map((function(e){return T.current.includes(e.prizeType)?e:(0,d.Z)((0,d.Z)({},e),{},{moveX:o[0]-s[0],moveY:o[1]-s[1]})}));D(e);var n=tf(q.current,T.current),t=q.current.filter((function(e){return n.includes(e.prizeType)})).map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0})}));U(t)},F=function(){var e=I.current.map((function(e){return T.current.includes(e.prizeType)?e:(0,d.Z)((0,d.Z)({},e),{},{moveX:o[0]-c[0],moveY:o[1]-c[1]})}));x(e);var n=tf(I.current,T.current),t=I.current.filter((function(e){return n.includes(e.prizeType)})).map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0})}));S(t)},V=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n,t,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=tf(q.current,T.current),t=Object.fromEntries(n.map((function(e){return[e,Array(2).fill(0)]}))),i=q.current.map((function(e){if(!T.current.includes(e.prizeType))return e;t[e.prizeType][1]+=1;var n=p.findIndex((function(n){return n.prizeType===e.prizeType})),a=w.current[n];if(null===R.current||null===a)return e;var i=af(t,e.prizeType,1),r={containerScale:k.current,offsetX:w.current[n].width/2,offsetY:w.current[n].height/2-i},o=Ta(w.current[n],R.current,r),c=o.moveX,s=o.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:c,moveY:s})})),D(i),U((function(e){return 0===e.length?e:e.map((function(e){if(!t[e.prizeType])return e;t[e.prizeType][0]+=1;var n=p.findIndex((function(n){return n.prizeType===e.prizeType})),a=w.current[n];if(null===A.current||null===a)return e;var i=af(t,e.prizeType,0),r={containerScale:k.current,offsetX:w.current[n].width/2-40,offsetY:w.current[n].height/2-i},o=Ta(w.current[n],A.current,r),c=o.moveX,s=o.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:c,moveY:s})}))}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){if(0!==I.current.length){var e=tf(I.current,T.current),n=Object.fromEntries(e.map((function(e){return[e,0]}))),t=I.current.map((function(e){if(!T.current.includes(e.prizeType))return e;n[e.prizeType]+=1;var t=p.findIndex((function(n){return n.prizeType===e.prizeType}));if(null===C.current||!w.current[t])return e;var a=af(n,e.prizeType),i={containerScale:k.current,offsetX:w.current[t].width/2+40,offsetY:w.current[t].height/2-a},r=Ta(w.current[t],C.current,i),o=r.moveX,c=r.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:o,moveY:c})}));x(t);var a=N.current.map((function(e,t){n[e.prizeType]+=1;var a=p.findIndex((function(n){return n.prizeType===e.prizeType}));if(null===B.current||!w.current[a])return e;var i=af(n,e.prizeType),r={containerScale:k.current,offsetX:w.current[a].width/2+40,offsetY:w.current[a].height/2-i},o=Ta(w.current[a],B.current,r),c=o.moveX,s=o.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:c,moveY:s})}));S(a)}},Y=function(){var e=I.current.map((function(e){return T.current.includes(e.prizeType)?(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0}):e}));x(e);var n=N.current.map((function(e){if(null===C.current||null===B.current)return e;var n={containerScale:k.current},t=Ta(C.current,B.current,n),a=t.moveX,i=t.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:a,moveY:i})}
1));S(n)},X=function(){h(),D([]),S([]),U([])},K=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_.current.includes("?")){e.next=2;break}return e.abrupt("return");case 2:return y.current=$t.SR.FlyCenter,z(),F(),e.next=7,(0,Fn.gw)(1e3);case 7:return y.current=$t.SR.FlyWinTarget,V(),H(),e.next=12,(0,Fn.gw)(1e3);case 12:return y.current=$t.SR.FlyOrigin,0!==(n=q.current.map((function(e){return T.current.includes(e.prizeType)?(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0}):e}))).length&&(Ea.eq.play("ui_s_chip_03",{volume:1}),D(n),U((function(e){return 0===e.length?e:e.map((function(e){if(null===A.current||null===R.current)return e;var n={containerScale:k.current},t=Ta(R.current,A.current,n),a=t.moveX,i=t.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:a,moveY:i})}))}))),Y(),e.next=17,(0,Fn.gw)(500);case 17:y.current=$t.SR.default,X();case 19:case"end":return e.stop()}var n}),e)})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){switch(n){case $t.x3.BET_NOW:X();break;case $t.x3.DRAW:K()}}),[n]),{bonusChips:P,animationStateRef:y,chipGroupRef:C,bonusChipsGroupRef:B,bonusBotChipsGroupRef:A,betBlockRef:w,botChips:Z,botBonusChips:W,botRef:R,setBotChips:D}}({drawState:m,drawNumbers:f,drawResultPoint:Du,userChipsAreaPoint:Lu,useBetChipsStore:vm,winPrizeType:k(),betBlockCount:6,betBlocksData:qu,containerScale:t,originPosition:xp,resetAllChips:function(){l(),b()}}),C=I.bonusChips,E=I.animationStateRef,j=I.chipGroupRef,P=I.betBlockRef,S=I.bonusChipsGroupRef,N=I.botChips,B=I.botBonusChips,A=I.botRef,R=I.setBotChips,O=I.bonusBotChipsGroupRef,M=function(e,a){if(null!==j.current&&void 0!==(null==y?void 0:y.playMenuGroups)){var i=(0,Fn.sZ)(35,P.current[a].width-35),r=(0,Fn.sZ)(35,P.current[a].height-35),o={containerScale:t,offsetX:i,offsetY:r},c=Ta(P.current[a],j.current,o),s=c.moveX,u=c.moveY,l={playId:e.menuPlayId,prizeType:e.prizeType,betContent:e.betContent,playInfoId:e.playInfoId,moveX:s,moveY:u};n(l,vp)}},Z=function(e){return m===$t.x3.DRAW&&function(e){return-1!==f.split("").map((function(e){return Ru[e]})).indexOf(e)}(e)},D=function(e){return null!==m&&(void 0===(null==y?void 0:y.playMenuGroups)||[$t.x3.BET_LOCKED,$t.x3.WAIT_DRAW,$t.x3.DRAW].includes(m)&&!Z(e))},L=function(e){if(m===$t.x3.DRAW&&!f.includes("?")){var n=f.split(""),t=s.filter((function(e){return e.hasConfirm})).map((function(e){return e.prizeType})),a=n.map((function(e){return Ou[e]})).filter((function(e,n,t){return t.indexOf(e)===n}));return t.filter((function(e){return a.includes(e)})).includes("CLR_".concat(e.toLocaleUpperCase()))}return!1},G=function(e){if(f.includes("?")&&0===_.length)return 0;var n=f.split("").filter((function(n){return n===e})).length;return{1:_[0],2:_[1],3:_[2]}[n]};return(0,r.useEffect)((function(){if(v){for(var e=v.gameBotDetailTOList.map((function(e){return e.prizeType})),n=function(e){var n=qu.findIndex((function(n){return n.prizeType===e})),a=P.current[n];if(a&&A.current){var i={containerScale:t,offsetX:(0,Fn.sZ)(35,a.width-35),offsetY:(0,Fn.sZ)(35,a.height-35)},r=Ta(P.current[n],A.current,i),o=r.moveX,c=r.moveY;return{numero:"",playId:0,playInfoId:0,prizeType:qu[n].prizeType,betContent:"",amount:10,styleIndex:(0,Fn.sZ)(0,4),hasConfirm:!1,moveX:o,moveY:c}}},a=[],i=0;i<e.length;i++)for(var r=(0,Fn.sZ)(1,3),o=0;o<r;o++)if(null!==e[i]){var c=n(e[i]);c&&a.push(c)}R((function(e){return[].concat((0,u.Z)(e),a)}))}}),[v,t]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(pp,{count:g,position:[19,313]}),(0,wt.jsx)(hp,{ref:A,botChips:N,position:xp,drawState:m,animationState:E.current,winPrizeType:k(),zIndex:1}),(0,wt.jsx)(up,{ref:O,bonusChips:B,position:Du,drawState:m,animationState:E.current,zIndex:1}),(0,wt.jsx)(sa.W2,{position:[8,375],children:(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(sa.jy,{position:[0,0],width:313,height:250,texture:fa.P6Y.TextureCache["".concat(Wu,"_choose_frame")]}),(0,wt.jsx)(sa.jy,{position:[626,0],scale:[-1,0],width:313,height:250,texture:fa.P6Y.TextureCache["".concat(Wu,"_choose_frame")]}),qu.map((function(e,n){var t,a=(t=e.key,s.filter((function(e){return e.prizeType==="CLR_".concat(t.toLocaleUpperCase())})).reduce((function(e,n){return e+n.amount}),0)),i=h?h[e.prizeType]:0,r={item:e,index:n,handleClick:M,userAmount:a,botAmount:i+a,isLight:Z(e.key),isMask:D(e.key),isFlash:T,isBonus:L(e.key),getRef:function(e){return P.current[n]=e}};return(0,wt.jsx)(op,(0,d.Z)({},r),n)}))]})}),(0,wt.jsx)(dp,{ref:j,betChips:s,position:Lu,drawState:m,animationState:E.current,winPrizeType:k(),zIndex:2}),(0,wt.jsx)(up,{ref:S,bonusChips:C,position:Du,drawState:m,animationState:E.current,zIndex:2}),(0,wt.jsx)(sa.W2,{position:[8,375],zIndex:3,children:qu.map((function(e,n){var t=new fa.E9j(Zu[n][0],Zu[n][1]);return(0,wt.jsx)(sa.W2,{position:t,children:(0,wt.jsx)(cp,{isBonus:L(e.key),bonus:G(e.betContent)})},n)}))})]})}var _p=pt.Z.gameConfig.colorGame.playInfoIds,wp=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=Pa({gameId:n}).playLimit,a=Zm().calculatedBalance,i=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),r=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(n)).data;return{verifyBetting:function(n,o,c){var s=t?t[o]:null,u=va(n,"unConfirm"),l=va(n,"confirm");if(i>a)return Ca.Z.show($t.k9.gameMessage,e("BALANCE_NOT_ENOUGH")),void(c&&c());if(r){var d=r.betAmountMaxByNumero;if(0!==d&&u+l+i>d)return Ca.Z.show($t.k9.gameMessage,e("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:d})),void(c&&c())}if(s){var m=s.betAmountMaxLimitByNumero,f=s.betAmountMinLimit;if(i<f)return void Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(f,m)}
1));if(0!==m&&u+l+i>m)return Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(f,m)})),void(c&&c())}return 1},verifyDoubleBetting:function(n){var a=_p[0],i=t?t[a]:null,o=va(n,"unConfirm");if(r){var c=r.betAmountMaxByNumero;if(0!==c&&o>c)return void Ca.Z.show($t.k9.gameMessage,e("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:c}))}if(i){var s=i.betAmountMaxLimitByNumero,u=i.betAmountMinLimit;if(o<u)return void Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(u,s)}));if(0!==s&&o>s)return void Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(u,s)}))}return 1},verifyBalanceEnough:function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(va(n,"unConfirm")>a&&(t&&Ca.Z.show($t.k9.gameMessage,e("BALANCE_NOT_ENOUGH")),1))}}},Tp=pt.Z.gameConfig.colorGame,kp=function(){var e=vm(),n=e.appendBetChips,t=e.betChips,a=e.preBetChips,i=e.popBetChips,o=e.setBetChips,s=e.clearChips,u=e.confirmAndStorageChip,l=e.updateChipsBetting,m=e.resetPreBetChips,f=e.resetChips,p=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),g=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),h=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,v=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),b=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),x=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(p)).data,y=(0,zn.ip)(p).data,_=(0,zn.hE)(),w=(0,ot.Z)(_,2),T=w[0],k=w[1],I=(0,zn.Wq)(),C=(0,ot.Z)(I,1)[0],E=function(e){var n=e.gameConfig,t=(0,Fn.he)("containers.GamesPanel."),a=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),i=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(a)).data,r=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(a)).data;return function(e,a){switch(e){case"BETTING_TABLE_GAME_AMOUNT_LESS_LIMITS_ERROR":case"BETTING_TABLE_GAME_AMOUNT_OVER_LIMITS_ERROR":var o=_a(a),c=0,s=0;if(o){var u,l,d=ya(n,o).menuPlayId,m=r?null===(u=r.playMenuGroups.find((function(e){return e.playId===n.groupPlayId})))||void 0===u||null===(l=u.playMenus.find((function(e){return e.playId===d})))||void 0===l?void 0:l.playMenuInfos.find((function(e){return e.playInfoId===o})):null;c=m?m.betAmountMaxLimitByNumero:0,s=m?m.betAmountMinLimit:0}Ca.Z.show($t.k9.gameMessage,t("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(s,c)}));break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":var f=i||{},p=f.betAmountMaxByNumero,g=void 0===p?0:p,h=f.betAmountMax,v=void 0===h?0:h,b=/numero:.*.cumulative amount:/g.test(a)?g:v;Ca.Z.show($t.k9.gameMessage,t("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:b}));break;case"BETTING_MULTIPLE_OVER_LIMITS_ERROR":Ca.Z.show($t.k9.gameMessage,t("BETTING_MULTIPLE_OVER_LIMITS_ERROR"));break;case"BALANCE_NOT_ENOUGH_ERROR":case"BALANCE_NOT_ENOUGH":Ca.Z.show($t.k9.gameMessage,t("BALANCE_NOT_ENOUGH"));break;case"PLAYID_CLOSED":Ca.Z.show($t.k9.gameMessage,t("PLAYID_CLOSED"));break;case"PARAMETER_REQUIRED":case"API_PARAMETER_REQUIRED":Ca.Z.show($t.k9.gameMessage,t("PARAMETER_REQUIRED"));break;case"IS_LOCK_TIME":Ca.Z.show($t.k9.gameMessage,t("IS_LOCK_TIME"));break;default:Ca.Z.show($t.k9.gameMessage,t("SYSTEM_ERROR"))}}}({gameConfig:Tp}),j=_t(g),P=j.sendEvent,S=j.handleClickActionStack,N=j.resetClickActionStack,B=j.handleAutoBetGa,A=j.handleConsecutiveBetGa,R=j.handleRemindMarkBetGa,O=j.handleIsPrevBet,M=j.gaEventConfig,Z=(0,r.useRef)([]),D=(0,r.useRef)(y),L=wp(),G=L.verifyBetting,W=L.verifyDoubleBetting,U=L.verifyBalanceEnough,q=Zm().clearBalanceCache,z=Dt().setLastGame,F=function(e){var n=e.betChips,t=e.setBetChips,a=e.resetPreBetChips,i=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),o=(0,zn.ip)(i).data;return(0,r.useEffect)((function(){var e=(0,Fn.mk)(!1,"".concat(i,"-betChips"));e&&e.data&&e.numero&&e.numero===(null==o?void 0:o.currentNumero.numero)?!n.length&&e.data.length>0&&t(e.data):(0,Fn.HB)(!1,"".concat(i,"-betChips"))}),[o,n]),(0,r.useEffect)((function(){return function(){a()}}),[]),{cachePrevBetChips:function(e,n){(0,Fn.tG)(!1,"".concat(i,"-betChips"),{numero:e,data:n})},resetPrevBet:function(){a(),(0,Fn.HB)(!1,"".concat(i,"-betChips"))}}}({betChips:t,setBetChips:o,resetPreBetChips:m}),V=F.cachePrevBetChips,H=F.resetPrevBet,Y=function(e){var n=e.betChips,t=e.setBetChips,a=(0,Fn.he)("containers.GamesPanel."),i=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),o=(0,zn.ip)(i).data,s=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,u=(0,r.useState)(!1),l=(0,ot.Z)(u,2),m=l[0],f=l[1],p=(0,r.useRef)(!1),g=(0,r.useRef)(null),h=(0,r.useState)(!1),v=(0,ot.Z)(h,2),b=v[0],x=v[1],y=(0,r.useState)(!1),_=(0,ot.Z)(y,2),w=_[0],T=_[1],k=wp().verifyBalanceEnough,I=function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&p.current&&Ca.Z.show($t.k9.gameMessage,a("AUTO_BET_OFF")),f(!1),p.current=!1};return(0,r.useEffect)((function(){var e=(0,Fn.mk)(!1,"".concat(i,"-autoBetChips"));e&&e.data&&e.numero&&e.numero===(null==o?void 0:o.currentNumero.numero)?!n.length&&e.data.length>0&&t(e.data):(0,Fn.HB)(!1,"".concat(i,"-autoBetChips"))}),[o,n]),(0,r.useEffect)((function(){s===$t.x3.BET_NOW?(T(!1),p.current?function(){if(g.current&&g.current.length>0){var e=null==o?void 0:o.currentNumero.numero,n=g.current.map((function(n){return(0,d.Z)((0,d.Z)({},n),{},{numero:e,hasConfirm:!1})}
1));if(!k(n,!0))return x(!1),void I(!1);t(n)}}():x(!1)):s===$t.x3.BET_NOW_RED?T(!1):T(!0)}),[s]),{autoBet:m,cacheAutoBetChips:function(e,n){g.current=n,(0,Fn.tG)(!1,"".concat(i,"-autoBetChips"),{numero:e,data:n})},autoBetOn:function(){f(!0),p.current=!0,Ca.Z.show($t.k9.gameMessage,a("AUTO_BET_ON"))},autoBetOff:I,changeAutoBetMode:function(e){x(e)},autoBetMode:b,isAutoBetDisabled:w,resetAutoBet:function(){x(!1),I(),(0,Fn.HB)(!1,"".concat(i,"-autoBetChips")),g.current=null}}}({betChips:t,setBetChips:o}),X=Y.autoBet,K=Y.cacheAutoBetChips,Q=Y.autoBetOn,J=Y.autoBetOff,$=Y.changeAutoBetMode,ee=Y.autoBetMode,ne=Y.isAutoBetDisabled,te=Y.resetAutoBet;(0,r.useEffect)((function(){Z.current=t,$(0!==t.length)}),[t]),(0,r.useEffect)((function(){D.current=y}),[y]),(0,r.useEffect)((function(){if(h===$t.x3.BET_LOCKED){var e=1500*Math.random();setTimeout((function(){return ae(t)}),e),N()}}),[h]);var ae=function(e){if(!k.isLoading){var n=xa(e,null==x?void 0:x.singleBetPrice);if(0!==n.orders.length){P({action:M.game_betting,data:{game_code:g}}),R(),A(X,y),B(X,y);var t=ie(n.orders);l(),T(t)}}},ie=function(e){var n=e.map((function(e){var n,t=e.playId,a=e.bettingString,i=e.singleBetPrice,r=e.amount;return{gameId:p,playId:t,bettingApproach:1,bettingSlip:null,bettingContent:a,singleBetPrice:i,winStop:!1,numero:[{numero:null===(n=D.current)||void 0===n?void 0:n.currentNumero.numero,multiple:r}]}}));return n},re=function(){return!(h&&ef.includes(h)&&!k.isLoading&&t.length&&t.filter((function(e){return!e.hasConfirm})).length)};return(0,r.useEffect)((function(){var e,n,t,a,i,r;switch(k.status){case"fulfilled":z(p),i="",r=Z.current.map((function(e){return e.hasBetting?(i=e.numero,(0,d.Z)((0,d.Z)({},e),{},{hasBetting:!1,hasConfirm:!1})):e})),K(i,r),V(i,r),u(r);break;case"rejected":var o=(null===(e=k.error)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.errorCode)||!1,c=(null===(t=k.error)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.message)||"";E(o,c),s(),setTimeout((function(){te(),H()}),1e3)}}),[k,p]),(0,r.useEffect)((function(){return function(){!function(){var e=Z.current;if(0!==(null==e?void 0:e.length)&&null!=x&&x.singleBetPrice&&!k.isLoading){var n=e.filter((function(e){return!e.hasBetting})),t=xa(n,x.singleBetPrice);if(0!==t.orders.length){var a=ie(t.orders);z(p),C(a),q()}}}(),f()}}),[]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(yp,{handleToBetting:function(e,a){if(h&&ef.includes(h)){var i=e.prizeType,r=e.betContent,o=e.playInfoId,c=e.playId,s=e.moveX,u=e.moveY;if(G(t,o)){a&&a();var l=[{numero:null==y?void 0:y.currentNumero.numero,playId:c,playInfoId:o,prizeType:i,betContent:r,amount:v,styleIndex:b,hasConfirm:!1,moveX:s,moveY:u}];S("betting"),n(l)}}}}),(0,wt.jsx)($f,{handlePrevBet:function(){if(h&&ef.includes(h)&&!k.isLoading&&a.length&&!(t.length>0)){var e=a.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})}));U(e)&&(O(!0),S("again"),o(e))}},handleDoubleBet:function(){if(h&&ef.includes(h)&&!k.isLoading&&t.length){var e=t.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})}));if(U(e)){var a=t.concat(e);!W(a)||(S("double"),P({action:M.double,data:{game_code:g}}),n(e))}}},handleUndo:function(){re()||(S("undo"),P({action:M.undo,data:{game_code:g}}),i())},isDisabledPrevBet:function(){if(!h||!ef.includes(h))return!0;if(k.isLoading)return!0;if(!a.length)return!0;if(t.length>0)return!0;var e=a.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})}));return!U(e,!1)}(),isDisabledDoubleBet:function(){if(!h||!ef.includes(h))return!0;if(k.isLoading)return!0;if(!t.length)return!0;if(2*t.length>200)return!0;var e=t.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})}));return!U(e,!1)}(),isDisabledUndo:re(),autoBetMode:ee,autoBet:X,autoBetOff:J,autoBetOn:Q,isAutoBetDisabled:ne})]})},Ip=pt.Z.gameConfig.colorGame.prefix,Cp=pt.Z.gameConfig.colorGame.groupPlayId,Ep=pt.Z.gameConfig.colorGame.menuInfos[0].menuPlayId,jp=pt.Z.gameConfig.colorGame.playInfoIds,Pp=100,Sp=47,Np=6,Bp=new fa.pn8({fontFamily:"arial",fontSize:15,fill:"#ffffff"});function Ap(){var e=[1,2,3].map((function(e){return fa.P6Y.TextureCache["".concat(Ip,"_odds").concat(e)
1]}));return(0,wt.jsx)(sa.W2,{position:[60,45],children:e.map((function(e,n){return(0,wt.jsxs)(sa.W2,{y:n*(Sp+Np),children:[(0,wt.jsx)(sa.jy,{texture:e,width:Pp,height:Sp}),(0,wt.jsx)(uf,{anchor:[.5,0],text:"1 : ".concat(ic({groupPlayId:Cp,menuPlayId:Ep,playInfoId:jp[n]})),style:Bp,position:[Pp/2,Sp/2]})]},"Odds_Container_".concat(jp[n]))}))})}var Rp=pt.Z.gameConfig.colorGame.prefix;function Op(){var e,n=(0,c.v9)((function(e){return e.gamePanelInfo})),t=bm(),a=t.introVisible,i=t.betHistoryVisible,o=t.setBetHistoryVisible,s=t.setIntroVisible,u=aa(),l=u.containerScale,d=u.isCloseIconTop,m=Ji().closeGamePanel;return(0,r.useEffect)((function(){(0,Fn.yH)(),Ea.eq.play("".concat(Rp,"_bgm_colorgame"),{loop:!0,volume:1})}),[]),null===n.info?null:(0,wt.jsxs)(sa.W2,{scale:l,sortableChildren:!0,children:[(0,wt.jsx)(sa.jy,{width:121,height:124,position:[73,245],anchor:[.5,0],texture:fa.P6Y.TextureCache["".concat(Rp,"_coalBall")]}),(0,wt.jsxs)(sa.W2,{position:[12,120],children:[(0,wt.jsx)(Sm,{onClick:function(){Ea.eq.play("".concat(Gu,"_s_button_01"),{volume:1}),s(!0)},visible:a}),(0,wt.jsx)(Am,{position:[0,54],onClick:function(){Ea.eq.play("".concat(Gu,"_s_button_01"),{volume:1}),o(!0)},visible:i}),(0,wt.jsx)(Em,{position:[0,108]})]}),!d&&(0,wt.jsx)(Qi,{position:[590,0],onClick:m}),(0,wt.jsx)(Ap,{}),(0,wt.jsx)(Qm,{}),(0,wt.jsx)(qm,{},null===(e=n.info)||void 0===e?void 0:e.gameCode),(0,wt.jsx)($m,{}),(0,wt.jsx)(kp,{}),(0,wt.jsx)(Wm,{}),(0,wt.jsx)(Om,{})]})}var Mp=pt.Z.gameConfig.colorGame.prefix;function Zp(){return(0,wt.jsxs)(sa.W2,{position:[95,0],anchor:[.5,0],children:[(0,wt.jsx)(sa.jy,{width:450,height:378,texture:fa.P6Y.TextureCache["".concat(Mp,"_box")]}),(0,wt.jsx)(sa.jy,{anchor:.5,width:177,height:20,position:[225,94],texture:fa.P6Y.TextureCache["".concat(Mp,"_boxbar")]})]})}function Dp(e){var n=e.show,t=e.title,a=e.context,i=e.onCancelClick,r=e.onConfirmClick,o=e.showCancel,c=void 0===o||o,s=e.hasBg,u=void 0!==s&&s,l=(0,Fn.he)("components.Alert."),d=(0,gt.q_)({from:{opacity:0}
1,to:{opacity:1}}),m=function(){r&&r()};return n?(0,wt.jsxs)(wt.Fragment,{children:[u&&(0,wt.jsx)("div",{className:"mini-game-confirm-alert-background"}),(0,wt.jsxs)(gt.q.div,{className:"mini-game-confirm-alert",style:d,children:[(0,wt.jsxs)("div",{className:"mini-game-alert-content",children:[(0,wt.jsx)("div",{className:"mini-game-title",children:t}),(0,wt.jsx)("div",{className:"mini-game-context",children:a})]}),c?(0,wt.jsxs)("div",{className:"mini-game-buttons",children:[(0,wt.jsx)("div",{className:"mini-game-button mini-game-confirm",onClick:m,children:l("confirm")}),(0,wt.jsx)("div",{className:"mini-game-button mini-game-cancel",onClick:function(){i&&i()},children:l("cancel")})]}):(0,wt.jsx)("div",{className:"mini-game-buttons",children:(0,wt.jsx)("div",{className:"mini-game-button mini-game-confirm mini-game-only-confirm",onClick:m,children:l("confirm")})})]})]}):null}function Lp(){var e=(0,c.v9)((function(e){return e.notificationInfo}));return(0,wt.jsx)(Dp,{show:e.show,title:"系統ç¶ä¿®",context:"系統ç¶ä¿®ä¸ï¼è«ç¨å¾å試",onCancelClick:function(){return Ca.Z.close()},onConfirmClick:function(){window.location.reload(),Ca.Z.close()}})}function Gp(e){var n=e.show,t=e.content,a=e.style,i=void 0===a?{}:a,o=(0,r.useRef)(null),c=(0,r.useRef)(null),s=(0,gt.q_)({from:{opacity:0}
1,to:{opacity:1}});return(0,r.useEffect)((function(){o.current&&c.current&&(c.current.offsetWidth/o.current.offsetWidth>.8?o.current.classList.add("".concat(pt.Z.classNamePrefix,"small")):o.current.classList.remove("".concat(pt.Z.classNamePrefix,"normal")))}),[t]),n?(0,wt.jsx)(gt.q.div,{style:s,children:(0,wt.jsx)("div",{ref:o,className:"mini-game-message-alert",style:(0,d.Z)({},i),children:(0,wt.jsx)("div",{ref:c,children:t})})}):null}function Wp(){var e=(0,c.v9)((function(e){return e.notificationInfo})),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(e.show&&e.type===$t.k9.gameMessage)return n.current=setTimeout((function(){Ca.Z.close()}),1500),function(){n.current&&clearTimeout(n.current)}}),[e]),(0,wt.jsx)(Gp,{show:!0,content:e.msg})}function Up(e){var n=e.show,t=e.title,a=e.context,i=e.onClick,r=(0,gt.q_)({from:{opacity:0},to:{opacity:1}});return n?(0,wt.jsxs)(gt.q.div,{className:"mini-game-default-alert",style:r,children:[(0,wt.jsxs)("div",{className:"mini-game-content",children:[(0,wt.jsx)("div",{className:"mini-game-title",children:t}),(0,wt.jsx)("div",{className:"mini-game-context",children:a})]}),(0,wt.jsx)("div",{className:"mini-game-button",onClick:function(){i&&i()},children:"ç»å
¥"})]}):null}function qp(){var e=(0,c.v9)((function(e){return e.notificationInfo}));return(0,wt.jsx)(Up,{show:e.show,title:"系統ç¶ä¿®",context:"系統ç¶ä¿®ä¸ï¼è«ç¨å¾å試",onClick:function(){window.location.reload(),Ca.Z.close()}})}function zp(e){var n=(0,c.v9)((function(e){return e.notificationInfo})),t=n.show&&!!n.msg;return(0,r.useEffect)((function(){return function(){Ca.Z.close()}}),[]),t?(0,wt.jsxs)(wt.Fragment,{children:[n.type===$t.k9.gameSystem&&(0,wt.jsx)(Lp,{}),n.type===$t.k9.gameMessage&&(0,wt.jsx)(Wp,{}),n.type===$t.k9.gameRelogin&&(0,wt.jsx)(qp,{})]}):null}var Fp=function(){var e=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,c.v9)((function(e){return e.gamePanelInfo})),u=_t(),l=u.sendEvent,d=u.gaEventConfig;return(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),fa.deM.addBundle("sounds",Zl),fa.deM.addBundle("uiSounds",Ll),Ea.eq.add(Zl),Ea.eq.add(Ll),e.next=8,fa.deM.load(Ml,(function(e){var n;e>=1&&l({action:d.game_loaded,data:{game_code:null===(n=s.info)||void 0===n?void 0:n.gameCode}}),o(100*e)}));case 8:case"end":return e.stop()}}),e)})))()}),[]),t}(),n=(0,r.useRef)(null),t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),o=bm(),s=o.introVisible,u=o.betHistoryVisible,l=o.setBetHistoryVisible,m=aa().containerScale;gr({gameConfig:pt.Z.gameConfig.colorGame,delay:Au}),Tm(t);var f={width:640*m,height:750*m,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(wo,{progress:e,children:(0,wt.jsxs)("div",{style:{width:640*m,height:750*m},ref:n,className:"mini-game-jackpot-game-scene",children:[(0,wt.jsx)(ml,{width:640*m*2/3,height:750*m/2}),(0,wt.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:0},children:(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},f),{},{children:(0,wt.jsx)(sa.W2,{scale:m,children:(0,wt.jsx)(Zp,{})})}))}),(0,wt.jsx)("div",{style:{position:"relative",zIndex:2},children:(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},f),{},{children:(0,wt.jsx)(Op,{})}))}),u&&(0,wt.jsx)(pm,{closeBetHistory:function(){Ea.eq.play("".concat(Gu,"_s_button_03"),{volume:1}),l(!1)}}),s&&(0,wt.jsx)(wm,{}),(0,wt.jsx)(zp,{})]})})},Vp=function(e){return"?"===e||"xx"===e||"X"===e},Hp=function(e,n){return n(e<11?"small":"big")},Yp=function(e,n){return n(e%2==0?"even":"odd")},Xp=312,Kp=512,Qp=(pt.Z.gameConfig.ui.prefix,pt.Z.gameConfig.baccarat.prefix),Jp=pt.Z.gameConfig.baccarat,$p=pt.Z.gameConfig.baccarat.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.baccarat.groupPlayId,menuPlayId:e.menuPlayId},n)}))})).flat(),eg=(pt.Z.gameConfig.baccarat.groupPlayId,pt.Z.gameConfig.baccarat.menuInfos[0].menuPlayId,["cyan","red","purple","green","blue"]),ng=function(e){switch(e){case 1:return"A";case 11:return"J";case 12:return"Q";case 0:return"K";default:return e.toString()}},tg=function(e){var n=Number(e)%13,t=function(e){switch(Math.floor((Number(e)-1)/13)){case 0:return"spade";case 1:return"heart";case 2:return"club";default:return"diamond"}}(e);return{suit:t,displayValue:ng(n),originValue:Number(e),bcrValue:n>=10?0:n}},ag=function(e){var n=function(e){if("string"==typeof e){var n=e.split(",");return!n.find((function(e){return Vp(e)}))&&6===n.length&&{playerNums:n.slice(0,3),bankerNums:n.slice(3)}}return!!Array.isArray(e)&&!e.find((function(e){return Vp("".concat(e))}))&&6===e.length&&{playerNums:e.slice(0,3),bankerNums:e.slice(3)}}(e);if(!n)return!1;var t=n.playerNums,a=n.bankerNums.map((function(e){return tg(e)})),i=t.map((function(e){return tg(e)})),r=a.map((function(e){return e.bcrValue})),o=i.map((function(e){return e.bcrValue})),c=function(e,n){var t=(e[0]+e[1])%10,a=(e[0]+e[1]+e[2])%10,i=(n[0]+n[1])%10;if(i>=8)return{sum:t,useCard:2};var r=i<6,o=n[2];switch(t){case 0:case 1:case 2:return{sum:a,useCard:3};case 3:return r&&8===o?{sum:t,useCard:2}:{sum:a,useCard:3};case 4:return r&&[0,1,8,9].includes(o)?{sum:t,useCard:2}:{sum:a,useCard:3};case 5:return r&&[0,1,2,3,8,9].includes(o)?{sum:t,useCard:2}:{sum:a,useCard:3};case 6:return r&&[6,7].includes(o)?{sum:a,useCard:3}:{sum:t,useCard:2};default:return{sum:t,useCard:2}}}(r,o),s=function(e,n){var t=(n[0]+n[1])%10,a=(n[0]+n[1]+n[2])%10;if((e[0]+e[1])%10>=8)return{sum:t,useCard:2};switch(t){case 0:case 1:case 2:case 3:case 4:case 5:return{sum:a,useCard:3};default:return{sum:t,useCard:2}}}(r,o),u={bankerCards:a,playerCards:i,banker:c,player:s,winner:"tie",gameResult:[]};c.sum>s.sum?u.winner="banker":c.sum<s.sum&&(u.winner="player");var l=[];return l.push(u.winner),a[0].displayValue===a[1].displayValue&&l.push("bankerPair"),i[0].displayValue===i[1].displayValue&&l.push("playerPair"),u.gameResult=l,u},ig=function(e){return e[e.front=0]="front",e[e.back=1]="back",e}({}),rg=[{src:t(25628),alias:["poker_front"]},{src:t(8007),alias:["poker_back"]},{src:t(70168),alias:["spades"]},{src:t(97903),alias:["hearts"]},{src:t(34256),alias:["clubs"]},{src:t(33601),alias:["diamonds"]}],og=150;function cg(e){var n=e.width,t=void 0===n?43:n,a=e.height,i=void 0===a?58:a,r=e.point,o=e.springStyle,c=e.isFlipped,s=function(e){switch(e){case"spades":case"clubs":return"#000";default:return"#AB000B"}},u=function(e){return["spades","hearts","clubs","diamonds"][Math.floor((e-1)/13)]},l=function(e){return["K","A","2","3","4","5","6","7","8","9","10","J","Q"][e%13]},m=fa.P6Y.TextureCache.poker_front,f=fa.P6Y.TextureCache.poker_back,p=u(r);return(0,wt.jsxs)(da.W2,(0,d.Z)((0,d.Z)({},o),{},{children:[(0,wt.jsx)(ma.AM,{delay:c===ig.front?0:og,to:{scale:[c===ig.back?1:0,1]},config:{duration:og}
1,children:function(e){return(0,wt.jsx)(da.jy,{anchor:.5,position:[t/2,i/2],scale:e.scale,texture:f})}}),(0,wt.jsx)(ma.AM,{delay:c===ig.front?og:0,to:{scale:[c===ig.front?1:0,1]},config:{duration:og},children:function(e){return(0,wt.jsxs)(da.W2,{pivot:[t/2,i/2],position:[t/2,i/2],scale:e.scale,children:[(0,wt.jsx)(da.jy,{anchor:.5,position:[t/2,i/2],texture:m}),(0,wt.jsx)(da.jy,{anchor:.5,position:[30,47],texture:fa.P6Y.TextureCache["".concat(u(r))]}),(0,wt.jsx)(da.jy,{anchor:.5,position:[10,24],width:9,height:9,texture:fa.P6Y.TextureCache["".concat(u(r))]}),(0,wt.jsx)(da.xv,{anchor:.5,position:[10,10],text:l(r),style:new fa.pn8({align:"center",fontFamily:"Noto Sans",fontWeight:"bold",fontSize:14,fill:[s(p)]})})]})}})]}))}var sg=pt.Z.gameConfig.baccarat.prefix,ug=[{src:t(79135),alias:["".concat(sg,"_countdown_bg")]},{src:t(63314),alias:["".concat(sg,"_countdown_bg1")]},{src:t(5579),alias:["".concat(sg,"_countdown_bg_border")]}],lg=[{src:t(13283),alias:["".concat(sg,"_footer_bg")]},{src:t(89894),alias:["".concat(sg,"_icon_bg")]},{src:t(25576),alias:["".concat(sg,"_history_icon")]},{src:t(12551),alias:["".concat(sg,"_info_icon")]},{src:t(13102),alias:["".concat(sg,"_switch_icon")]},{src:t(51341),alias:["".concat(sg,"_trend_icon")]},{src:t(42330),alias:["".concat(sg,"_star_icon")]}],dg=[{src:t(60214),alias:["".concat(sg,"_bg")]},{src:t(57738),alias:["".concat(sg,"_text_green_bg")]},{src:t(94757),alias:["".concat(sg,"_close_icon")]},{src:t(76343),alias:["".concat(sg,"_text_gray_bg1")]},{src:t(16086),alias:["".concat(sg,"_text_gray_bg2")]},{src:t(90801),alias:["".concat(sg,"_player_icon")]},{src:t(9235),alias:["".concat(sg,"_coin_icon")]},{src:t(69061),alias:["".concat(sg,"_edit_icon")]},{src:t(80113),alias:["".concat(sg,"_arrow_left_normal")]},{src:t(87927),alias:["".concat(sg,"_arrow_left_disabled")]}].concat(ug,(0,u.Z)(rg),lg,(0,u.Z)(Tl),(0,u.Z)(El)),mg=function(e){return e[e.bcrInfo=0]="bcrInfo",e}({}),fg=function(e){return{containerScale:0,setContainerScale:function(n){return e({containerScale:n})}}},pg=function(e){return{notificationsInfo:{content:"",show:!1,type:null},showMsg:function(n,t){return e({notificationsInfo:{show:!0,type:n,content:t}})},hiddenMsg:function(){return e({notificationsInfo:{content:"",show:!1,type:null}})}}},gg=(0,ta.Ue)((function(){return(0,d.Z)((0,d.Z)({},fg.apply(void 0,arguments)),pg.apply(void 0,arguments))})),hg=gg,vg=[$t.x3.BET_NOW,$t.x3.BET_NOW_RED],bg=function(){var e=(0,zn.De)(),n=e.data,t=e.isLoading,a=e.isError,i=n?n.availBalance:0,r=t||a?"Loading...":(0,Fn.mT)(i);return(0,wt.jsxs)(sa.W2,{x:225,y:0,children:[(0,wt.jsx)(sa.jy,{width:78,height:20,texture:fa.P6Y.TextureCache["".concat(Qp,"_text_gray_bg2")]}),(0,wt.jsx)(sa.jy,{position:[-2,-2],width:25,height:25,texture:fa.P6Y.TextureCache["".concat(Qp,"_coin_icon")]}),(0,wt.jsx)(sa.xv,{text:"".concat(r),anchor:[0,.5],position:[20,10],style:new fa.pn8({align:"center",fontFamily:"arial",fontSize:10,fill:["#ffffff"]})})]})},xg=function(e){var n=e.text,t=e.x,a=e.y;return(0,wt.jsxs)(sa.W2,{x:t,y:a,children:[(0,wt.jsx)(sa.jy,{width:107,height:17,texture:fa.P6Y.TextureCache["".concat(Qp,"_text_green_bg")]}),(0,wt.jsx)(sa.xv,{text:n,anchor:[0,.5],position:[5,9],style:new fa.pn8({align:"center",fontFamily:"arial",fontSize:10,fill:["#ffffff"]})})]})};function yg(e){var n=e.selectedBlock,t=(0,Fn.he)("containers.GamesPanel.Baccarat."),a=(0,r.useState)({max:0,min:0}),i=(0,ot.Z)(a,2),o=i[0],s=i[1],u=(0,c.v9)((function(e){return e.gamePanelInfo.header.numero})),l=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),d=Pa({gameId:l}).playLimit;(0,r.useEffect)((function(){if(n&&d){var e=n.playInfoId,t=d[e];s({max:t.betAmountMaxLimitByNumero,min:t.betAmountMinLimit})}else s({max:0,min:0})}),[n,d]);var m=o.max,f=o.min,p=m>0||f>0;return(0,wt.jsxs)(sa.W2,{position:[0,40],children:[(0,wt.jsx)(xg,{text:"".concat(t("no")," ").concat(u),x:11,y:0}),p&&(0,wt.jsx)(xg,{text:"".concat(t("limit"),": ").concat((0,Fn.sE)(f,m)),x:11,y:21}),(0,wt.jsx)(bg,{})]})}function _g(){var e=(0,c.v9)((function(e){return e.gamePanelInfo.drawState})),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,r.useState)(!0),a=(0,ot.Z)(t,2),i=a[0],o=a[1],s=zs(n,1e3,!0).countdown;return(0,r.useEffect)((function(){var n=e===$t.x3.BET_NOW||e===$t.x3.BET_NOW_RED;o(n)}),[e]),(0,wt.jsxs)(sa.W2,{position:[135,85],children:[(0,wt.jsx)(sa.jy,{anch
1or:[.5,0],position:[21,38],texture:fa.P6Y.TextureCache["".concat(Qp,"_countdown_bg1")]}),(0,wt.jsx)(sa.jy,{width:42,height:39,texture:fa.P6Y.TextureCache["".concat(Qp,"_countdown_bg_border")]}),(0,wt.jsx)(sa.jy,{position:[1,1],width:40,height:37,texture:fa.P6Y.TextureCache["".concat(Qp,"_countdown_bg")]}),(0,wt.jsx)(sa.xv,{visible:i,anchor:.5,position:[21,19],text:"".concat(s),style:new fa.pn8({align:"center",fontFamily:"Optima",fontWeight:"bold",fontSize:25,fill:["#F7E437"]})})]})}function wg(e){var n=e.position,t=e.onClick,a=(0,r.useCallback)((function(e){e.clear(),e.beginFill(16733782,1),e.drawCircle(14,14,14),e.endFill()}),[]),i=(0,r.useCallback)((function(e){e.clear(),e.lineStyle(1,16777215,1),e.moveTo(0,0),e.lineTo(11.46,11.46),e.closePath(),e.moveTo(11.46,0),e.lineTo(0,11.46),e.closePath()}),[]);return(0,wt.jsxs)(sa.W2,{position:n,eventMode:t?"static":"passive",onpointerdown:function(){t&&t()},children:[(0,wt.jsx)(sa.TC,{draw:a}),(0,wt.jsx)(sa.TC,{anchor:.5,position:[7,7],draw:i})]})}function Tg(e){var n=e.position,t=e.onClick,a=(0,r.useCallback)((function(e){e.clear(),e.beginFill(16759353,1),e.drawCircle(14,14,14),e.endFill()}),[]),i=(0,r.useCallback)((function(e){e.clear(),e.beginFill(16777215,1),e.moveTo(0,0),e.bezierCurveTo(66.269,.119,126.437,26.233,170.859,68.685),e.lineTo(206.574,32.97),e.bezierCurveTo(221.694,17.851,247.545,28.559,247.545,49.941),e.lineTo(247.545,184),e.bezierCurveTo(247.545,197.255,236.8,208,223.545,208),e.lineTo(89.486,208),e.bezierCurveTo(68.104,208,57.396,182.149,72.516,167.029),e.lineTo(114.266,125.279),e.bezierCurveTo(83.402,96.38,43.465,80.372,1.036,80.006),e.bezierCurveTo(-91.362,79.208,-169.247,153.982,-168.448,249.442),e.bezierCurveTo(-167.691,340.009,-94.271,416,.545,416),e.bezierCurveTo(41.672,416,80.542,401.322,111.174,374.444),e.lineTo(150.836,414.106),e.bezierCurveTo(155.579,418.167,162.742,417.914,167.204,418.475),e.lineTo(206.866,458.137),e.bezierCurveTo(211.738,462.009,211.979,469.952,207.065,474.57),e.bezierCurveTo(122.747,471.813,64.471,496,.545,496),e.bezierCurveTo(-136.421,496,-247.454,384.967,-247.455,248.002),e.bezierCurveTo(-247.456,111.193,-135.809,-.245,0,0),e.closePath(),e.endFill(),e.scale.set(14/512,14/512)}),[]);return(0,wt.jsxs)(sa.W2,{position:n,eventMode:t?"static":"passive",onpointerdown:function(){t&&t()},children:[(0,wt.jsx)(sa.TC,{draw:a}),(0,wt.jsx)(sa.TC,{anchor:.5,position:[14,7],draw:i})]})}function kg(e){var n=e.position,t=e.onClick,a=(0,r.useCallback)((function(e){e.clear(),e.beginFill(6007980,1),e.drawCircle(14,14,14),e.endFill()}),[]),i=(0,r.useCallback)((function(e){e.clear(),e.lineStyle(2,16777215,1),e.moveTo(2,8),e.lineTo(6,12),e.lineTo(14,4)}),[]);return(0,wt.jsxs)(sa.W2,{position:n,eventMode:t?"static":"passive",onpointerdown:function(){t&&t()},children:[(0,wt.jsx)(sa.TC,{draw:a}),(0,wt.jsx)(sa.TC,{anchor:.5,position:[7,7],draw:i})]})}var Ig=function(e){var n=e.selectedBlock,t=e.clearChip,a=e.handlePrevBet,i=e.betConfirm;if(!n)return null;var r=n.playInfoId;return(0,wt.jsxs)(sa.W2,{zIndex:10,position:{6111:{x:9,y:-10},6109:{x:112,y:-10},6110:{x:214,y:-10},6108:{x:35,y:80},6106:{x:190,y:80},6107:{x:190,y:80}}[r],children:[(0,wt.jsx)(wg,{onClick:t,position:{x:0,y:0}}),(0,wt.jsx)(Tg,{onClick:a,position:{x:33,y:0}}),(0,wt.jsx)(kg,{onClick:i,position:{x:66,y:0}})]})},Cg=function(e){var n=e.bgColor,t=void 0===n?814620:n,a=e.opacity,i=void 0===a?.16:a,o=e.borderColor,c=void 0===o?5820025:o,s=e.onClick,u=e.scale,l=void 0===u?[1,1]:u,d=e.position,m=void 0===d?[0,0]:d,f=(0,r.useCallback)((function(e){e.clear(),e.beginFill(t,i),e.lineStyle(1,c,1),e.moveTo(102,1),e.lineTo(1,1),e.lineTo(1,47.4952),e.bezierCurveTo(37.2332,69.8113,63.8894,77.5444,102,85),e.endFill(),e.closePath()}),[t,i,c]);return(0,wt.jsx)(sa.TC,{position:m,draw:f,eventMode:s?"static":"auto",scale:l,onpointerdown:function(){s&&s()}})},Eg=function(e){var n=e.bgColor,t=void 0===n?814620:n,a=e.opacity,i=void 0===a?.16:a,o=e.borderColor,c=void 0===o?5820025:o,s=e.onClick,u=(0,r.useCallback)((function(e){e.clear(),e.beginFill(t,i),e.lineStyle(1,c,1),e.moveTo(103,1),e.lineTo(1,1),e.lineTo(1,85),e.bezierCurveTo(43.6454,91.7768,65.9834,90.1001,103,85),e.closePath(),e.endFill()}),[t,i,c]);return(0,wt.jsx)(sa.TC,{draw:u,eventMode:s?"static":"auto",onpointerdown:function(){s&&s()}})},jg=function(e){var n=e.bgColor,t=void 0===n?814620:n,a=e.opacity,i=void 0===a?.16:a,o=e.borderColor,c=void 0===o?1426983:o,s=e.onClick,u=e.scale,l=void 0===u?[1,1]:u,d=e.position,m=void 0===d?[0,0]:d,f=(0,r.useCallback)((function(e){e.clear(),e.beginFill(t,i),e.lineStyle(1,c,1),e.moveTo(154,43),e.bezierCurveTo(95.1634,40.7571,61.1963,32.9258,1,1),e.lineTo(1,72.5),e.bezierCurveTo(60.1679,104.266,94.2575,111.615,154,114),e.closePath(),e.endFill()}),[t,i,c]);return(0,wt.jsx)(sa.TC,{position:m,draw:f,eventMode:s?"static":"auto",scale:l,onpointerdown:function(){s&&s()}})};function Pg(e){var n=(0,Fn.he)("containers.GamesPanel.Baccarat."),t=e.isWin,a=e.handleBet,i=e.betBlockItem,r=e.betBlockRef,o=e.bonus,c=e.userAmount,s=e.userQty;return(0,wt.jsxs)(sa.W2,{ref:function(e){return r.current[0]=e},position:[3,0],children:[(0,wt.jsx)(Cg,{onClick:function(){var e=(0,d.Z)({},i);a(e,0)}}),t&&(0,wt.jsx)(Cg,{bgColor:2979071,opacity:.53,borderColor:10804991}),(0,wt.jsx)(sa.xv,{position:[6,2],text:"".concat(c),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:[1,0],position:[102,2],text:"".concat(s),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[55,30],text:"".concat(n("playerPair")),style:Gg("#0C1CAE",16)}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[55,50],text:"1: ".concat(o),style:Gg("#6EFC96",13)})]})}function Sg(e){var n=(0,Fn.he)("containers.GamesPanel.Baccarat."),t=e.isWin,a=e.handleBet,i=e.betBlockItem,r=e.betBlockRef,o=e.bonus,c=e.userAmount,s=e.userQty;return(0,wt.jsxs)(sa.W2,{ref:function(e){return r.current[1]=e},position:[105,0],children:[(0,wt.jsx)(Eg,{onClick:function(){var e=(0,d.Z)({},i);a(e,1)}}),t&&(0,wt.jsx)(Eg,{bgColor:9234480,opacity:.44,borderColor:9499948}),(0,wt.jsx)(sa.xv,{position:[6,2],text:"".concat(c),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:[1,0],position:[102,2],text:"".concat(s),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[55,30],text:"".concat(n("tie")),style:Gg("#00681D",16)}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[55,50],text:"1: ".concat(o),style:Gg("#00FF47",13)})]})}function Ng(e){var n=(0,Fn.he)("containers.GamesPanel.Baccarat."),t=e.isWin,a=e.handleBet,i=e.betBlockItem,r=e.betBlockRef,o=e.bonus,c=e.userAmount,s=e.userQty;return(0,wt.jsxs)(sa.W2,{ref:function(e){return r.current[2]=e},position:[206,0],children:[(0,wt.jsx)(Cg,{position:[104,0],scale:[-1,1],onClick:function(){var e=(0,d.Z)({},i);a(e,2)}}),t&&(0,wt.jsx)(Cg,{position:[104,0],scale:[-1,1],bgColor:16725771,opacity:.69,borderColor:16756105}),(0,wt.jsx)(sa.xv,{position:[6,2],text:"".concat(c),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:[1,0],position:[102,2],text:"".concat(s),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[55,30],text:"".concat(n("bankerPair")),style:Gg("#900000",16)}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[55,50],text:"1: ".concat(o),style:Gg("#6EFC96",13)})]})}function Bg(e){var n=(0,Fn.he)("containers.GamesPanel.Baccarat."),t=e.isWin,a=e.handleBet,i=e.betBlockItem,r=e.betBlockRef,o=e.bonus,c=e.userAmount,s=e.userQty;return(0,wt.jsxs)(sa.W2,{ref:function(e){return r.current[4]=e},position:[155,55],children:[(0,wt.jsx)(jg,{position:[155,0],scale:[-1,1],onClick:function(){var e=(0,d.Z)({},i);a(e,4)}}),t&&(0,wt.jsx)(jg,{position:[155,0],scale:[-1,1],bgColor:16725771,opacity:.69,borderColor:16756105}),(0,wt.jsx)(sa.xv,{position:[6,50],text:"".concat(c),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:[1,0],position:[150,50],text:"".concat(s),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[78,62],text:"".concat(n("banker")),style:Gg("#900000",16)}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[78,82],text:"1: ".concat(o),style:Gg("#6EFC96",13)})]})}function Ag(e){var n=(0,Fn.he)("containers.GamesPanel.Baccarat."),t=e.isWin,a=e.handleBet,i=e.betBlockItem,r=e.betBlockRef,o=e.bonus,c=e.userAmount,s=e.userQty;return(0,wt.jsxs)(sa.W2,{ref:function(e){return r.current[3]=e},position:[3,55],children:[(0,wt.jsx)(jg,{onClick:function(){var e=(0,d.Z)({},i);a(e,3)}}),t&&(0,wt.jsx)(jg,{bgColor:2979071,opacity:.53,borderColor:10804991}),(0,wt.jsx)(sa.xv,{position:[6,50],text:"".concat(c),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:[1,0],position:[150,50],text:"".concat(s),style:t?Lg:Dg}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[78,64],text:"".concat(n("player")),style:Gg("#0C1CAE",16)}),(0,wt.jsx)(sa.xv,{anchor:.5,position:[78,82],text:"1: ".concat(o),style:Gg("#6EFC96",13)})]})}var Rg=function(e){var n=e.item,t=e.blockItemProps,a=e.isWin,i=e.userAmount,r=e.userQty,o=(0,c.v9)((function(e){return e.gamePanelInfo.info})),s=n.groupPlayId,u=n.playInfoId,l=n.menuPlayId,m=(0,ac(null==o?void 0:o.gameId,s,l).getBonus)(u),f={6111:Pg,6109:Sg,6108:Ag,6110:Ng,6106:Bg,6107:Bg}[n.playInfoId];return(0,wt.jsx)(f,(0,d.Z)({isWin:a,betBlockItem:n,bonus:m,userAmount:i,userQty:r},t))},Og=function(e){var n=e.botChipsRef,t=e.botData,o=e.containerScale,s=e.betBlockRef,l=e.resetBotData,m=(0,r.useState)([]),f=(0,ot.Z)(m,2),p=f[0],g=f[1],h=(0,c.v9)((function(e){return e.gamePanelInfo.drawState}));return(0,r.useEffect)((function(){if(t){for(var e=t.gameBotDetailTOList.map((function(e){return e.prizeType})),a=function(e){var t=$p.findIndex((function(n){return n.prizeType===e})),a=s.current[t];if(a&&n.current){var i,r=new fa.E9j(0,0),c=null===(i=n.current)||void 0===i?void 0:i.toGlobal(r),u=a.toGlobal(r),l={x:(u.x-c.x)/o,y:(u.y-c.y)/o},d=s.current[t].width/2+(0,Fn.sZ)(-30,30),m=s.current[t].height/2+(0,Fn.sZ)(-10,10);return{numero:"",playId:0,playInfoId:0,prizeType:$p[t].prizeType,betContent:"",amount:10,styleIndex:(0,Fn.sZ)(0,4),hasConfirm:!1,moveX:l.x+d,moveY:l.y+m}}},i=[],r=0;r<e.length;r++)for(var c=(0,Fn.sZ)(1,3),l=0;l<c;l++)if(null!==e[r]){var d=a(e[r]);d&&i.push(d)}g((function(e){return[].concat((0,u.Z)(e),i)}))}}),[t,o]),(0,r.useEffect)((function(){if(h===$t.x3.BET_NOW)g([]),l();else if(h===$t.x3.DRAW){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.gw)(500);case 2:g((function(e){return 0===e.length?e:e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0})}))}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[h]),(0,wt.jsx)(sa.W2,{position:[180,-150],ref:n,children:p.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:{position:[0,0],opacity:1},to:function(){var n=(0,i.Z)((0,a.Z)().mark((function n(t,i){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(h!==$t.x3.DRAW){n.next=10;break}return n.next=3,t({opacity:1,delay:500,config:{duration:0}});case 3:return n.next=5,t({position:[e.moveX,e.moveY],config:{duration:600,easing:gt.Z5.easeOutCubic}});case 5:if(0!==e.moveX||0!==e.moveY){n.next=8;break}return n.next=8,t({opacity:0,config:{duration:200}});case 8:n.next=14;break;case 10:return n.next=12,t({position:[e.moveX,e.moveY],config:{duration:600,easing:gt.Z5.easeOutCubic}});case 12:return n.next=14,t({opacity:0,config:{duration:200}});case 14:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),children:function(n){return(0,wt.jsx)(Lf,(0,d.Z)({scale:.3,color:eg[e.styleIndex]},n))}},n)}))})},Mg=function(e){var n=e.betChips,t=e.setBetChips,o=e.userChipsRef,s=e.botChipsRef,u=e.containerScale,l=(0,c.v9)((function(e){return e.gamePanelInfo})),m=l.drawState,f=l.customerProfit;return(0,r.useEffect)((function(){if(m===$t.x3.DRAW){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.gw)(500);case 2:t(f>0?function(e){return 0===e.length?e:e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0})}))}:function(e){return 0===e.length?e:e.map((function(e){var n;if(null===s.current||null===o.current)return e;var t=new fa.E9j(0,0),a=null===(n=s.current)||void 0===n?void 0:n.toGlobal(t),i=o.current.toGlobal(t),r={x:(a.x-i.x)/u,y:(a.y-i.y)/u};return(0,d.Z)((0,d.Z)({},e),{},{moveX:r.x,moveY:r.y})}))});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[m,f]),(0,wt.jsx)(sa.W2,{position:[270,-150],ref:o,children:n.map((function(e,n){var t=e.moveX?e.moveX:0,r=e.moveY?e.moveY:0;return(0,wt.jsx)(ma.AM,{from:{position:[0,0],opacity:1},to:function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m!==$t.x3.DRAW){e.next=7;break}return e.next=3,n({position:[t,r],delay:500,config:{duration:600,easing:gt.Z5.easeOutCubic}});case 3:return e.next=5,n({opacity:0,config:{duration:200}});case 5:e.next=9;break;case 7:return e.next=9,n({position:[t,r],config:{duration:600,easing:gt.Z5.easeOutCubic}});case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:function(t){return(0,wt.jsx)(Lf,{position:t.position,opacity:t.opacity,scale:.3,color:eg[e.styleIndex]},n)}},n)}))})},Zg=function(e){var n=e.totalUser;return(0,wt.jsxs)(sa.W2,{x:140,y:-160,children:[(0,wt.jsx)(sa.jy,{width:76,height:20,texture:fa.P6Y.TextureCache["".concat(Qp,"_text_gray_bg1")]}),(0,wt.jsx)(sa.jy,{position:[-1,-1],width:22,height:22,texture:fa.P6Y.TextureCache["".concat(Qp,"_player_icon")]}),(0,wt.jsx)(sa.xv,{text:"".concat(n),anchor:[0,.5],position:[25,10],style:new fa.pn8({align:"center",fontFamily:"arial",fontSize:13,fill:["#ffffff"]})})]})},Dg=new fa.pn8({align:"center",fontFamily:"Optima",fontWeight:"bold",fontSize:11,fill:["#66C675"]}),Lg=new fa.pn8({align:"center",fontFamily:"Optima",fontWeight:"bold",fontSize:11,fill:["#D0FFD7"]}),Gg=function(e,n){return new fa.pn8({align:"center",fontFamily:"Optima",fontWeight:"bold",fontSize:n,fill:[e]})};function Wg(e){var n=e.betChips,t=e.setBetChips,a=e.handleToBetting,i=e.containerScale,o=e.selectedBlock,s=e.clearChip,u=e.handlePrevBet,l=e.betConfirm,m=(0,c.v9)((function(e){return e.gamePanelInfo.commission})).bonusMode,f=np({gameConfig:Jp}),p=f.totalUser,g=f.totalAmountData,h=f.botData,v=f.userQtysData,b=f.resetBotData,x=(0,r.useRef)([]),y=(0,r.useRef)(null),_=(0,r.useRef)(null),w=(0,r.useRef)(null),T=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,k=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers}
1));(0,r.useEffect)((function(){if(n.length>0){var e=n.some((function(e){return e.hasConfirm&&(6106===e.playInfoId||6107===e.playInfoId)}));ft.Z.updateCommission({disabled:e})}else ft.Z.updateCommission({disabled:!1})}),[n]),(0,r.useEffect)((function(){x.current=Array(5).fill((0,r.createRef)())}),[]);var I={handleBet:function(e,n){if(x.current[n]&&w.current){var t=new fa.E9j(0,0),r=x.current[n].toGlobal(t),o=w.current.toGlobal(t),c=(r.x-o.x)/i,s=(r.y-o.y)/i,u=x.current[n].width/2+(0,Fn.sZ)(-30,30),l=x.current[n].height/2+(0,Fn.sZ)(-10,10),d={playId:e.menuPlayId,prizeType:e.prizeType,betContent:e.betContent,playInfoId:e.playInfoId,moveX:c+u,moveY:s+l};a(d)}},betBlockRef:x};return(0,wt.jsxs)(sa.W2,{ref:y,position:[0,200],sortableChildren:!0,children:[(0,wt.jsx)(Zg,{totalUser:p}),$p.map((function(e,n){var t=function(e){if(T!==$t.x3.DRAW||k.includes("?"))return!1;var n=ag(k);return!!n&&-1!==n.gameResult.findIndex((function(n){return n===e}))}(e.key),a=g[e.prizeType]?g[e.prizeType]:0,i=v[e.prizeType]?v[e.prizeType]:0,r="banker"===e.key&&m===$t.Tl.Comm,o=(0,d.Z)((0,d.Z)({},e),{},{playInfoId:6107,betContent:"1",prizeType:"BCR_BANKER_PLAYER_TIE_1"});return(0,wt.jsx)(Rg,{item:r?o:e,isWin:t,userAmount:(0,Fn.Vm)(a),userQty:i,blockItemProps:I},n)})),(0,wt.jsx)(Og,{botChipsRef:_,botData:h,containerScale:i,betBlockRef:x,resetBotData:b}),(0,wt.jsx)(Mg,{betChips:n,setBetChips:t,userChipsRef:w,botChipsRef:_,containerScale:i}),(0,wt.jsx)(Ig,{selectedBlock:o,clearChip:s,handlePrevBet:u,betConfirm:l})]})}var Ug=t(74255);function qg(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=void 0===a?35:a,r=e.height,o=void 0===r?35:r,c=e.onClick,s=e.texture,u=e.isFlipped,l=void 0!==u&&u,d=e.disabled,m=function(){c&&c()},f=(0,ot.Z)(t,2),p=f[0],g=[l?p+i:p,f[1]],h=l?{x:-1,y:1}:{x:1,y:1},v=d?"none":"static";return s?(0,wt.jsx)(sa.W2,{position:g,scale:h,children:(0,wt.jsx)(sa.jy,{eventMode:v,onpointerdown:m,width:i,height:o,texture:s})}):(0,wt.jsx)(sa.W2,{position:g,scale:h,children:(0,wt.jsx)(sa.jy,{eventMode:v,onpointerdown:m,width:i,height:o,image:Ug})})}var zg={0:-18,1:-6,2:0,3:-6,4:-16};function Fg(e){var n=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),t=(0,c.v9)((function(e){return e.calculatorInfo.show})),a=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),i=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),o=(0,r.useState)([]),s=(0,ot.Z)(o,2),u=s[0],l=s[1],d=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,640,70),e.endFill()}),[]),m=function(){pi.close()};return(0,r.useEffect)((function(){var e=n.map((function(e,n){return{index:n,value:e}}));l(e)}),[n]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(sa.W2,{position:[0,400],children:[(0,wt.jsx)(sa.TC,{draw:d}),(0,wt.jsxs)(sa.W2,{position:[34,0],children:[u.map((function(e,n){return(0,wt.jsx)(Lf,{color:Mu[n],scale:.57,position:[48*n+5*n+4,zg[n]],textValue:"".concat(e.value),isLight:n===a,onClick:function(){return function(e){ft.Z.changeSelectedChip(e)}(n)},isMask:n!==a},n)})),(0,wt.jsx)(qg,{width:20,height:20,onClick:function(){pi.open()},position:[245,-40],texture:fa.P6Y.TextureCache["".concat(Qp,"_edit_icon")]})]})]}),t&&null!==i?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.TC,{eventMode:"static",zIndex:5,onpointerdown:m,draw:function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,312,322),e.endFill()}}),(0,wt.jsx)(sa.W2,{zIndex:6,scale:.4875,position:{x:0,y:322},children:(0,wt.jsx)(Mf,{value:i,zIndex:5,width:640,height:390,confirmClick:function(){pi.confirmHandle()},backClick:function(e){pi.updateEditAmount(e)},cancelClick:m,numberClick:function(e){pi.updateEditAmount("".concat(e))}})})]}):null]})}var Vg=t(47325),Hg={showGamePop:function(e){qn.Z.dispatch(Vg.ZP.actions.openModal(e))},closeGamePop:function(e){qn.Z.dispatch(Vg.ZP.actions.closeModal(e))}},Yg=function(e){var n=e.children,t=e.x,a=e.y,i=e.onClick;return(0,wt.jsxs)(sa.W2,{position:[t,a],eventMode:i?"static":"auto",onpointerdown:function(){i&&i()},children:[(0,wt.jsx)(sa.jy,{width:38,height:38,texture:fa.P6Y.TextureCache["".concat(Qp,"_icon_bg")]}),n]})};function Xg(){return(0,wt.jsxs)(sa.W2,{position:[20,435],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Qp,"_footer_bg")]}),(0,wt.jsxs)(sa.W2,{position:[25,7],children:[(0,wt.jsx)(Yg,{x:0,y:0,onClick:function(){return Hg.showGamePop($t.ak.Commission)}
1,children:(0,wt.jsx)(sa.jy,{anchor:.5,position:[19,19],texture:fa.P6Y.TextureCache["".concat(Qp,"_switch_icon")]})}),(0,wt.jsx)(Yg,{x:46,y:0,onClick:function(){return Hg.showGamePop($t.ak.DrawHistory)},children:(0,wt.jsx)(sa.jy,{anchor:.5,position:[19,19],texture:fa.P6Y.TextureCache["".concat(Qp,"_star_icon")]})}),(0,wt.jsx)(Yg,{x:92,y:0,onClick:function(){return Hg.showGamePop($t.ak.BetHistory)},children:(0,wt.jsx)(sa.jy,{anchor:.5,position:[19,19],texture:fa.P6Y.TextureCache["".concat(Qp,"_history_icon")]})}),(0,wt.jsx)(Yg,{x:138,y:0,onClick:function(){return Hg.showGamePop($t.ak.Intro)},children:(0,wt.jsx)(sa.jy,{anchor:.5,position:[19,24],texture:fa.P6Y.TextureCache["".concat(Qp,"_info_icon")]})}),(0,wt.jsx)(Yg,{x:184,y:0,onClick:function(){return Hg.showGamePop($t.ak.RoadChart)},children:(0,wt.jsx)(sa.jy,{anchor:.5,position:[19,19],texture:fa.P6Y.TextureCache["".concat(Qp,"_trend_icon")]})})]})]})}var Kg=function(e){var n=e.showPlayer,t=e.showBanker,a=e.playerSum,i=e.bankerSum;return(0,wt.jsxs)(da.W2,{children:[(0,wt.jsx)(da.xv,{alpha:n?1:0,anchor:.5,position:[82,110],text:"".concat(a),style:new fa.pn8({align:"center",fontFamily:"Optima",fontWeight:"bold",fontSize:18,fill:["#000"]})}),(0,wt.jsx)(da.xv,{alpha:t?1:0,anchor:.5,position:[232,110],text:"".concat(i),style:new fa.pn8({align:"center",fontFamily:"Optima",fontWeight:"bold",fontSize:18,fill:["#000"]})})]})},Qg=130,Jg={position:[253,80],rotation:-1.04,scale:[.55,.67]},$g=function(){var e=(0,c.v9)((function(e){return e.gamePanelInfo})).drawState,n=(0,c.v9)((function(e){return e.gamePanelInfo.header.drawNumbers})),t=(0,r.useState)([]),o=(0,ot.Z)(t,2),s=o[0],u=o[1],l=(0,r.useState)(null),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=(0,r.useState)(!1),h=(0,ot.Z)(g,2),v=h[0],b=h[1],x=(0,r.useState)(!1),y=(0,ot.Z)(x,2),_=y[0],w=y[1],T=(0,r.useState)({showPlayer:!1,showBanker:!1,playerSum:0,bankerSum:0}),k=(0,ot.Z)(T,2),I=k[0],C=k[1];return(0,r.useEffect)((function(){var t=ag(n);switch(e){case $t.x3.BET_NOW:case $t.x3.BET_NOW_RED:u([]),p(null),b(!1),w(!1),C((function(e){return(0,d.Z)((0,d.Z)({},e),{},{showPlayer:!1,showBanker:!1})}));break;case $t.x3.BET_LOCKED:u([{type:"banker",value:7,position:[235,Qg]},{type:"player",value:7,position:[85,Qg]},{type:"banker",value:7,position:[185,Qg]},{type:"player",value:7,position:[35,Qg]}]);break;case $t.x3.WAIT_DRAW:if(t){var r=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u([{type:"banker",value:t.bankerCards[1].originValue,position:[235,Qg]},{type:"player",value:t.playerCards[1].originValue,position:[85,Qg]},{type:"banker",value:t.bankerCards[0].originValue,position:[185,Qg]},{type:"player",value:t.playerCards[0].originValue,position:[35,Qg]}]),e.next=3,(0,Fn.gw)(1e3);case 3:return b(!0),e.next=6,(0,Fn.gw)(1e3);case 6:n=[],3===t.banker.useCard&&n.push({type:"banker",value:t.bankerCards[2].originValue,position:[260,Qg]}),3===t.player.useCard&&n.push({type:"player",value:t.playerCards[2].originValue,position:[110,Qg]}),p(n);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();r()}break;case $t.x3.DRAW:t&&(C({showBanker:!0,showPlayer:!0,playerSum:t.player.sum,bankerSum:t.banker.sum}),w(!0))}}),[e,n]),(0,wt.jsxs)(da.W2,{width:Xp,height:200,children:[(0,wt.jsx)(da.jy,{position:[275,80],rotation:-1.04,width:.55*43,height:38.86,anchor:.5,texture:fa.P6Y.TextureCache.poker_back}),(0,wt.jsx)(Kg,(0,d.Z)({},I)),s.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:Jg,to:{position:null!=f&&f.map((function(e){return e.type})).includes(e.type)?[e.position[0]-25,e.position[1]]:e.position,rotation:0,scale:[1,1]},delay:f?0:250*(s.length-n),config:{duration:100},children:function(t){return(0,wt.jsx)(cg,{springStyle:t,point:e.value,isFlipped:v?ig.front:ig.back},n)}},n)})),null==f?void 0:f.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:Jg,to:{position:e.position,rotation:0,scale:[1,1]},delay:250*(f.length-n),config:{duration:100},children:function(t){return(0,wt.jsx)(cg,{springStyle:t,point:e.value,isFlipped:_?ig.front:ig.back},n)}},n)}))]})};function eh(){var e=hg().containerScale,n=Ji().closeGamePanel,t=function(e){var n=(0,Fn.he)("containers.GamesPanel."),t=e.gameC
1onfig,a=(0,r.useState)([]),i=(0,ot.Z)(a,2),o=i[0],s=i[1],l=(0,r.useState)(null),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),h=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),v=(0,c.v9)((function(e){return e.gamePanelInfo})),b=v.drawState,x=v.customerProfit,y=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),_=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),w=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(g)).data,T=(0,c.v9)(zn.nk.endpoints.getGamePlayMenus.select(g)).data,k=(0,zn.De)(),I=k.data,C=k.refetch,E=I?I.availBalance:0,j=(0,zn.ip)(g).data,P=(0,zn.hE)(),S=(0,ot.Z)(P,2),N=S[0],B=S[1],A=(0,r.useRef)(null),R=hg().showMsg,O=_t(),M=O.sendEvent,Z=O.handleRemindMarkBetGa,D=O.gaEventConfig,L=function(){s((function(e){return e.filter((function(e){return e.hasConfirm}))})),p(null)};return(0,r.useEffect)((function(){var e,a,i,r;switch(B.status){case"fulfilled":R(mg.bcrInfo,n("bettingSuccess",{totalBettingAmount:B.data.value.reduce((function(e,n){return e+n.totalBettingAmount}),0)/(w?w.singleBetPrice:1)})),s((function(e){var n="",t=e.map((function(e){return e.hasBetting?(n=e.numero,(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!0})):e}));return A.current=JSON.parse(JSON.stringify(t)),(0,Fn.tG)(!1,"".concat(g,"-betChips"),{numero:n,data:t}),t})),C();break;case"rejected":var o=(null===(e=B.error)||void 0===e||null===(a=e.data)||void 0===a?void 0:a.errorCode)||!1,c=(null===(i=B.error)||void 0===i||null===(r=i.data)||void 0===r?void 0:r.message)||"";L(),function(e,a){switch(e){case"BETTING_TABLE_GAME_AMOUNT_LESS_LIMITS_ERROR":case"BETTING_TABLE_GAME_AMOUNT_OVER_LIMITS_ERROR":var i=_a(a),r=0,o=0;if(i){var c,s,u=JSON.parse(JSON.stringify(t));u.menuInfos[0].playInfos.push({playInfoId:6107,betContent:"1",prizeType:"BCR_BANKER_PLAYER_TIE_1",key:"banker"});var l=ya(u,i).menuPlayId,d=T?null===(c=T.playMenuGroups.find((function(e){return e.playId===t.groupPlayId})))||void 0===c||null===(s=c.playMenus.find((function(e){return e.playId===l})))||void 0===s?void 0:s.playMenuInfos.find((function(e){return e.playInfoId===i})):null;r=d?d.betAmountMaxLimitByNumero:0,o=d?d.betAmountMinLimit:0}R(mg.bcrInfo,n("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(o,r)}));break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":var m=w||{},f=m.betAmountMaxByNumero,p=void 0===f?0:f,g=m.betAmountMax,h=void 0===g?0:g,v=/numero:.*.cumulative amount:/g.test(a)?p:h;R(mg.bcrInfo,n("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:v}));break;case"BETTING_MULTIPLE_OVER_LIMITS_ERROR":R(mg.bcrInfo,n("BETTING_MULTIPLE_OVER_LIMITS_ERROR"));break;case"BALANCE_NOT_ENOUGH_ERROR":case"BALANCE_NOT_ENOUGH":R(mg.bcrInfo,n("BALANCE_NOT_ENOUGH"));break;case"PLAYID_CLOSED":R(mg.bcrInfo,n("PLAYID_CLOSED"));break;case"PARAMETER_REQUIRED":case"API_PARAMETER_REQUIRED":R(mg.bcrInfo,n("PARAMETER_REQUIRED"));break;case"IS_LOCK_TIME":R(mg.bcrInfo,n("IS_LOCK_TIME"));break;case"INVALID_TOKEN":R(mg.bcrInfo,n("INVALID_TOKEN"));break;default:L(),R(mg.bcrInfo,n("SYSTEM_ERROR"))}}(o,c)}}),[B]),(0,r.useEffect)((function(){b===$t.x3.DRAW?(C(),setTimeout((function(){x>0&&R(mg.bcrInfo,"YOU WIN +".concat(x))}),500)):b===$t.x3.BET_NOW&&s([]),b===$t.x3.BET_LOCKED&&(p(null),s((function(e){return e.filter((function(e){return e.hasBetting||e.hasConfirm}))})))}),[b]),(0,r.useEffect)((function(){var e=(0,Fn.mk)(!1,"".concat(g,"-betChips"));e&&e.data&&e.numero&&e.numero===(null==j?void 0:j.currentNumero.numero)?!o.length&&e.data.length>0&&s(e.data):(0,Fn.HB)(!1,"".concat(g,"-betChips"))}),[j,o]),{selectedBlock:f,betChips:o,handleToBetting:function(e,t){if(!B.isLoading&&b&&vg.includes(b)){var a=e.prizeType,i=e.betContent,r=e.playInfoId,c=e.playId,l=e.moveX,m=e.moveY;if(function(){if(!(va(o,"unConfirm")+y>E))return 1;R(mg.bcrInfo,n("BALANCE_NOT_ENOUGH"))}()){t&&t(),p({prizeType:a,betContent:i,playInfoId:r,playId:c});var f=o.map((function(e){return(0,d.Z)({},e)})),g=[].concat((0,u.Z)(f),[{numero:null==j?void 0:j.currentNumero.numero,playId:c,playInfoId:r,prizeType:a,betContent:i,amount:y,styleIndex:_,hasConfirm:!1,moveX:l,moveY:m}]);s(g)}}},clearChip:L,handlePrevBet:function(){var e;if(A.current&&A.current.length&&!o.find((function(e){return e.hasConfirm}))){var n=A.current[A.current.length-1],t=n.prizeType,a=n.betContent,i=n.playInfoId,r=n.playId;p({prizeType:t,betContent:a,playInfoId:i,playId:r}),s(null===(e=A.current)||void 0===e?void 0:e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1,hasBetting:!1})}
1)))}},betConfirm:function(){if(!B.isLoading){var e=xa(o,null==w?void 0:w.singleBetPrice);if(0!==e.orders.length){M({action:D.game_betting,data:{game_code:h}}),Z();var n=e.orders.map((function(e){var n=e.playId,t=e.bettingString,a=e.singleBetPrice,i=e.amount;return{gameId:g,playId:n,bettingApproach:1,bettingSlip:null,bettingContent:t,singleBetPrice:a,winStop:!1,numero:[{numero:null==j?void 0:j.currentNumero.numero,multiple:i}]}}));s((function(e){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasBetting:!0})}))})),N(n),p(null)}}},changeBetBlock:function(e){return p(e)},setBetChips:s}}({gameConfig:Jp}),a=t.selectedBlock,i=t.betChips,o={handleToBetting:t.handleToBetting,clearChip:t.clearChip,handlePrevBet:t.handlePrevBet,betConfirm:t.betConfirm,betChips:i,setBetChips:t.setBetChips,containerScale:e,selectedBlock:a};return(0,wt.jsxs)(sa.W2,{scale:e,sortableChildren:!0,sortDirty:!0,children:[(0,wt.jsx)(sa.jy,{width:Xp,height:Kp,texture:fa.P6Y.TextureCache["".concat(Qp,"_bg")]}),(0,wt.jsx)(Qi,{position:[289,3],width:20,height:20,texture:fa.P6Y.TextureCache["".concat(Qp,"_close_icon")],onClick:n}),(0,wt.jsx)(yg,{selectedBlock:a}),(0,wt.jsx)(_g,{}),(0,wt.jsx)($g,{}),(0,wt.jsx)(Wg,(0,d.Z)({},o)),(0,wt.jsx)(Fg,{}),(0,wt.jsx)(Xg,{})]})}var nh=t(94757);function th(e){var n=e.children,t=e.closeClick,a=e.isShowClose,i=void 0===a||a,r=e.maskStyle;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("div",{className:"mini-game-gradient-container-mask",style:r,onClick:t}),(0,wt.jsxs)("div",{className:"mini-game-gradient-container",children:[i&&(0,wt.jsx)("img",{src:nh,onClick:t,alt:""}),(0,wt.jsx)("div",{className:"mini-game-scroll-content",children:n})]})]})}var ah=function(e){var n=e.selected,t=e.handleSelect,a=e.bonus,i=(0,Fn.he)("containers.GamesPanel.Baccarat.");return(0,wt.jsx)("li",{onClick:function(){return t($t.Tl.Comm)},className:ut()({"mini-game-active":n===$t.Tl.Comm}),children:(0,wt.jsxs)("div",{className:"mini-game-item-content",children:[(0,wt.jsxs)("h2",{children:["â",i("banker"),"â ",i("commission")]}),(0,wt.jsx)("p",{children:i("text-1",{bonus:(0,Fn.J6)(a,4)})})]})})},ih=function(e){var n=e.selected,t=e.handleSelect,a=e.bonus,i=(0,Fn.he)("containers.GamesPanel.Baccarat.");return(0,wt.jsx)("li",{onClick:function(){return t($t.Tl.Default)},className:ut()({"mini-game-active":n===$t.Tl.Default}),children:(0,wt.jsxs)("div",{className:"mini-game-item-content",children:[(0,wt.jsxs)("h2",{children:["â",i("banker"),"â ",i("no commission")]}),(0,wt.jsx)("p",{children:i("text-2",{bonus:(0,Fn.J6)(a,4),bonusHalf:(0,Fn.J6)(a/2,4)})})]})})};function rh(){var e=(0,Fn.he)("containers.GamesPanel.Baccarat."),n=(0,c.v9)((function(e){return e.gamePanelInfo.commission})),t=n.bonusMode,a=n.disabled,i=(0,r.useState)(t),o=(0,ot.Z)(i,2),s=o[0],u=o[1],l=(0,c.v9)((function(e){return e.gamePanelInfo.info})),d=ac(null==l?void 0:l.gameId,2889,2890).getBonus,m=d(6107),f=d(6106),p=function(){Hg.closeGamePop($t.ak.Commission)},g=function(e){u(e)};return(0,wt.jsx)(th,{closeClick:p,isShowClose:!1,maskStyle:{backgroundColor:"rgba(0, 0, 0, 0)"},children:(0,wt.jsxs)("div",{className:"mini-game-commission-pop",children:[(0,wt.jsx)("div",{className:"mini-game-commission-header",children:e("comm switch")}),(0,wt.jsx)("ul",{className:"mini-game-commission-body",children:void 0!==s&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(ah,{selected:s,handleSelect:g,bonus:m}),(0,wt.jsx)(ih,{selected:s,handleSelect:g,bonus:f})]})}),(0,wt.jsxs)("div",{className:"mini-game-commission-footer",children:[(0,wt.jsx)("div",{className:"mini-game-commission-footer-btn",onClick:p,children:e("cancel")}),(0,wt.jsx)("div",{className:ut()({"mini-game-commission-footer-btn":!0,"mini-game-disabled":a}),onClick:function(){void 0===s||a||(ft.Z.updateCommission({bonusMode:s}),p())},children:e("confirm")})]})]})})}var oh=function(e){var n=(0,Fn.he)("containers.GamesIntro.Baccarat."),t=e.playInfoId,a=e.groupPlayId,i=e.menuPlayId,r=e.max,o=e.min,s=(0,c.v9)((function(e){return e.gamePanelInfo.info})),u=(0,ac(null==s?void 0:s.gameId,a,i).getBonus)(t);return(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)("div",{className:"mini-game-row-content",children:[(0,wt.jsx)("div",{children:n("".concat(t))}),(0,wt.jsxs)("div",{children:["1: ",u]}),(0,wt.jsx)("div",{children:"".concat(o," ~ ").concat(r)})]})})},ch=(0,u.Z)($p);ch.splice(1,0,{groupPlayId:2889,menuPlayId:2890,playInfoId:6107,betContent:"1",prizeType:"BCR_BANKER_PLAYER_TIE_1",key:"banker_comm"});var sh=function(){var e=(0,Fn.he)("containers.GamesIntro."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=Pa({gameId:n}).playLimit;return(0,wt.jsx)(th,{closeClick:function(){return Hg.closeGamePop($t.ak.Intro)},children:(0,wt.jsxs)("div",{className:"mini-game-baccarat-intro",children:[(0,wt.jsx)("div",{className:"mini-game-title",children:(0,wt.jsx)("h1",{children:e("rules")})}),(0,wt.jsx)("div",{className:"mini-game-rule",children:(0,wt.jsx)("p",{children:e("Baccarat.rule_description")})}),(0,wt.jsxs)("div",{className:"mini-game-baccarat-intro-content",children:[(0,wt.jsx)("div",{className:"mini-game-header",children:(0,wt.jsxs)("ul",{className:"mini-game-row",children:[(0,wt.jsx)("li",{children:e("Baccarat.play")}),(0,wt.jsx)("li",{children:e("Baccarat.bonus")}),(0,wt.jsx)("li",{children:e("Baccarat.limit")})]})}),(0,wt.jsx)("ul",{children:ch.map((function(e,n){var a,i=(a=e.playInfoId,t&&t[a]?{max:t[a].betAmountMaxLimitByNumero,min:t[a].betAmountMinLimit}:{max:0,min:0}),r=0===i.max?"â":i.max;return(0,wt.jsx)("li",{children:(0,wt.jsx)(oh,{groupPlayId:e.groupPlayId,menuPlayId:e.menuPlayId,playInfoId:e.playInfoId,max:r,min:i.min})},n)}))})]})]})})},uh=function(e){var n=e.bettingContent,t=e.menuPlayId,a=(0,Fn.he)("containers.GamesBetHistory.Baccarat."),i=Number(n[0]),r=function(e,n){var t,a=pt.Z.gameConfig.baccarat.menuInfos,i=Number(e[0]);if(2890===n&&1===i)return"banker";var r=null===(t=a.find((function(e){return e.menuPlayId===n})))||void 0===t?void 0:t.playInfos.find((function(e){return Number(e.betContent)===i}));return r?r.key:""}(n,t);return 2890!==t||0!==i&&1!==i?(0,wt.jsx)("span",{children:a(r)}):(0,wt.jsxs)("span",{children:[a(r),"(",a(0===i?"no comm":"comm"),")"]})}
1,lh=function(e){var n=e.orderStatus,t=e.winningAmount,a=(0,Fn.he)("containers.GamesBetHistory.Baccarat.");switch(wa(n)){case"notWinning":return(0,wt.jsx)("div",{className:"mini-game-lose",children:a("lose")});case"isWon":return(0,wt.jsx)("div",{className:"mini-game-win",children:(0,wt.jsxs)("div",{children:[a("win"),": ",t]})});case"tie":return(0,wt.jsx)("div",{className:"mini-game-tie",children:a("tie")});default:return(0,wt.jsx)("div",{})}},dh=function(e){var n=e.orderStatus,t=e.winningAmount,a=e.planBettingAmount,i=(0,Fn.he)("containers.GamesBetHistory.");return(0,wt.jsxs)("div",{className:"mini-game-right-col",children:[n>=4&&(0,wt.jsx)(lh,{orderStatus:n,winningAmount:t}),(0,wt.jsxs)("div",{className:"mini-game-bet-amount",children:[(0,wt.jsxs)("span",{children:[i("betAmount"),":"]}),(0,wt.jsx)("span",{children:a})]})]})},mh=function(e){var n=e.bettingContent,t=e.numero,a=e.orderStatus,i=e.winningAmount,r=e.planBettingAmount,o=e.playId,c=(0,Fn.he)("containers.GamesBetHistory.Baccarat."),s={orderStatus:a,winningAmount:i,planBettingAmount:r};return(0,wt.jsxs)("li",{className:"mini-game-betHistory-item",children:[(0,wt.jsxs)("div",{className:"mini-game-left-col",children:[(0,wt.jsx)("div",{className:"mini-game-betting-time",children:t}),(0,wt.jsxs)("div",{className:"mini-game-betting-content",children:[(0,wt.jsxs)("span",{children:[c("bet"),": "]}),(0,wt.jsx)(uh,{bettingContent:n,menuPlayId:o})]})]}),(0,wt.jsx)(dh,(0,d.Z)({},s))]})},fh=function(e){var n=e.totalBettingOrders,t=e.isLoading,a=e.isError,i=(0,Fn.he)("containers.GamesBetHistory.");return a?(0,wt.jsx)("div",{className:"mini-game-error",children:"Error"}):0===n.length&&t?(0,wt.jsx)(Gl,{}):Array.isArray(n)&&0===n.length&&!t?(0,wt.jsx)("div",{className:"mini-game-no-data",children:i("no data")}):(0,wt.jsx)("ul",{children:n.map((function(e,n){return(0,wt.jsx)(mh,(0,d.Z)({},e),n)}))})};function ph(){var e=(0,Fn.he)("containers.GamesBetHistory."),n=(0,r.useState)(0),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=bo(0===a?$t.XK.today:$t.XK.yesterday,10),c=o.totalBettingOrders,s=o.isLoading,u=o.isError,l=o.handleScroll,d=function(e){i(e)};return(0,wt.jsx)(th,{closeClick:function(){return Hg.closeGamePop($t.ak.BetHistory)},children:(0,wt.jsxs)("div",{className:"mini-game-baccarat-bethistory-pop",children:[(0,wt.jsxs)("ul",{className:"mini-game-baccarat-bethistory-header",children:[(0,wt.jsx)("li",{className:ut()({"mini-game-active":0===a}),onClick:function(){return d(0)},children:e("today")}),(0,wt.jsx)("li",{className:ut()({"mini-game-active":1===a}),onClick:function(){return d(1)},children:e("yesterday")})]}),(0,wt.jsx)("div",{className:"mini-game-baccarat-bethistory-body",onScroll:function(e){return l(e)},children:(0,wt.jsx)(fh,{totalBettingOrders:c,isLoading:s,isError:u})})]})})}var gh=function(e){return(0,wt.jsxs)("li",{className:"mini-game-baccarat-history-item",children:[(0,wt.jsx)("div",{className:""}),(0,wt.jsx)("div",{children:e.series}),(0,wt.jsx)("div",{children:"xxx (x) / xxx (x)"})]})},hh=function(e){var n=e.series,t=e.number,a=(0,Fn.he)("containers.GamesDrawHistory.Baccarat."),i=ag(t);if(t.split(",").find((function(e){return Vp(e)})))return(0,wt.jsx)(gh,{series:n});if(!i)return(0,wt.jsx)("li",{children:"-"});var r=i.winner,o=i.banker,c=i.bankerCards,s=i.player,u=i.playerCards.slice(0,s.useCard),l=c.slice(0,o.useCard);return(0,wt.jsxs)("li",{className:"mini-game-baccarat-history-item",children:[(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix).concat(r),children:a(r)}),(0,wt.jsx)("div",{children:n}),(0,wt.jsxs)("div",{children:[u.map((function(e,n){return(0,wt.jsx)("span",{children:e.displayValue},n)})),"(",s.sum,") /",l.map((function(e,n){return(0,wt.jsx)("span",{children:e.displayValue},n)})),"(",o.sum,")"]})]})};function vh(){var e=(0,Fn.he)("containers.GamesDrawHistory."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.VO)(n).data,a=function(e){var n=(0,Fn.he)("containers.GamesDrawHistory.Baccarat."),t=e.map((function(e){if(!e.winNo)return e;var n=ag(e.winNo);return n?n.winner:e})),a=t.filter((function(e){return"player"===e})),i=t.filter((function(e){return"banker"===e})),r=t.length,o=Math.floor(a.length/r*100),c=Math.floor(i.length/r*100),s=100-o-c;return{drawRatio:[{title:n("banker"),ratio:c},{title:n("player"),ratio:o},{title:n("tie"),ratio:s}]}}(t||[]).drawRatio;return(0,wt.jsx)(th,{closeClick:function(){return Hg.closeGamePop($t.ak.DrawHistory)},children:(0,wt.jsxs)("div",{className:"mini-game-baccarat-drawhistory-pop",children:[(0,wt.jsx)("h1",{children:e("history")}),(0,wt.jsxs)("div",{className:"mini-game-draw-ratio",children:[(0,wt.jsx)("ul",{children:a.map((function(e,n){return(0,wt.jsxs)("li",{children:[(0,wt.jsx)("div",{children:e.title}),(0,wt.jsxs)("span",{children:[e.ratio,"%"]})]},n)}))}),(0,wt.jsx)("p",{children:e("Baccarat.ratio_description")})]}),(0,wt.jsx)("div",{className:"mini-game-drawhistory-content-header",children:(0,wt.jsxs)("ul",{className:"mini-game-row",children:[(0,wt.jsx)("li",{children:e("Baccarat.win")}),(0,wt.jsx)("li",{children:e("Baccarat.series")}),(0,wt.jsxs)("li",{children:[e("Baccarat.player"),"/",e("Baccarat.banker")]})]})}),(0,wt.jsx)("ul",{className:"mini-game-drawhistory-content-list",children:t&&t.map((function(e,n){return(0,wt.jsx)(hh,{series:e.numero,number:e.winNo},n)}))})]})})}var bh,xh=function(e){return e[e.Big=0]="Big",e[e.BigEye=1]="BigEye",e[e.SmallEye=2]="SmallEye",e[e.Dish=3]="Dish",e[e.Cockroach=4]="Cockroach",e}({}),yh=function(e){return e[e.None=0]="None",e[e.Banker=1]="Banker",e[e.Player=2]="Player",e[e.Draw=3]="Draw",e[e.Empty=4]="Empty",e}({}),_h=function(e){return e[e.DishRoad=0]="DishRoad",e[e.BigRoad=1]="BigRoad",e}({});function wh(e){var n=e.callback,t=e.style;return(0,wt.jsx)("div",{className:"mini-game-outer-click-mask",style:t,onClick:n})}var Th=(bh={},(0,l.Z)(bh,xh.Big,{row:6,column:32}),(0,l.Z)(bh,xh.BigEye,{row:6,column:10}),(0,l.Z)(bh,xh.SmallEye,{row:6,column:10}
1),(0,l.Z)(bh,xh.Cockroach,{row:6,column:10}),(0,l.Z)(bh,xh.Dish,{row:6,column:5}),bh);function kh(e){var n,t,a=(0,r.useState)((n={},(0,l.Z)(n,xh.Big,{board:[],data:[]}),(0,l.Z)(n,xh.BigEye,{board:[],data:[]}),(0,l.Z)(n,xh.SmallEye,{board:[],data:[]}),(0,l.Z)(n,xh.Cockroach,{board:[],data:[]}),(0,l.Z)(n,xh.Dish,{board:[],data:[]}),n)),i=(0,ot.Z)(a,2),o=i[0],c=i[1],s=(0,r.useState)((t={},(0,l.Z)(t,yh.Banker,0),(0,l.Z)(t,yh.Player,0),(0,l.Z)(t,yh.Draw,0),t)),u=(0,ot.Z)(s,2),m=u[0],f=u[1];return(0,r.useEffect)((function(){if(function(){var e=o;for(var n in xh)if(!isNaN(Number(n))){var t=parseInt(n),a=Th[n];try{e[t].board=new Array(a.column);for(var i=0;i<e[t].board.length;i++)e[t].board[i]=new Array(a.row).fill(null)}catch(e){console.error(e)}}c(e)}(),Array.isArray(e)&&e.length>0){var n=e.slice(0,30).map((function(e){return e.winNo}));n.reverse(),function(e){var n,t=[];e.forEach((function(e){if(-1!==e.indexOf("xx"))t.push({resultType:yh.Empty,isBankerPair:!1,isPlayerPair:!1});else{var n=ag(e).gameResult;t.push({resultType:-1!==n.indexOf("tie")?yh.Draw:-1!==n.indexOf("player")?yh.Player:yh.Banker,isBankerPair:-1!==n.indexOf("bankerPair"),isPlayerPair:-1!==n.indexOf("playerPair")})}}));var a,i,r,s,u,m=function(e,n){var t=Th[xh.Big],a=[],i=-1,r=yh.None,o=[];return e.forEach((function(e){var n=e.resultType,t=e.isBankerPair,r=e.isPlayerPair;if(n===yh.Banker||n===yh.Player)if(-1!==i&&a[i].resultType===yh.Draw)a[i].resultType=n,a[i].isBankerPair=t,a[i].isPlayerPair=r;else{var o={resultType:n,drawCounter:0,isBankerPair:t,isPlayerPair:r};a.push(o),i++}else if(n===yh.Draw)if(-1===i){var c={resultType:n,drawCounter:1,isBankerPair:!1,isPlayerPair:!1};a.push(c),i++}else a[i].drawCounter+=1;else{var s={resultType:n,drawCounter:0,isBankerPair:t,isPlayerPair:r};a.push(s),i++}})),a.forEach((function(e,n){r!==e.resultType&&(r=e.resultType,o.push({colDatas:[]})),o[o.length-1].colDatas.push(e)})),n[xh.Big].data=o,function(e,n,t){var a=t.column,i=t.row,r=-1,o=-1,c=-1;
1n.forEach((function(n){r++,o=r,c=-1,n.colDatas.forEach((function(n){var t=o<a&&c<i;t&&(c+1<i?null!=e[o][c+1]?(o++,0===c&&r++):c++:o++,(t=o<a&&c<i)&&(e[o][c]=n))}))}))}(n[xh.Big].board,o,t),n[xh.Big]}(t,o),p=function(e,n){var t=n[xh.Dish],a=Th[xh.Dish].row;return e.forEach((function(e,n){var i=Math.floor(n/a),r=n%a;t.board[i][r]=e,0===r&&t.data.push({colDatas:[]}),t.data[t.data.length-1].colDatas.push(e)})),t}(t,o);r=(a=t).filter((function(e){return e.resultType===yh.Player})).length,s=a.filter((function(e){return e.resultType===yh.Banker})).length,u=a.filter((function(e){return e.resultType===yh.Draw})).length,f((i={},(0,l.Z)(i,yh.Banker,s),(0,l.Z)(i,yh.Player,r),(0,l.Z)(i,yh.Draw,u),i)),c(JSON.parse(JSON.stringify((0,d.Z)((0,d.Z)({},o),{},(n={},(0,l.Z)(n,xh.Big,m),(0,l.Z)(n,xh.Dish,p),n)))))}(n)}}),[e]),{roadMap:o,drawCount:m}}var Ih=function(e){var n=(0,Fn.he)("containers.GamesPanel.Baccarat.");return(0,wt.jsxs)("div",{className:"mini-game-count-block",children:[(0,wt.jsxs)("div",{className:"mini-game-banker",children:[(0,wt.jsx)("div",{className:"mini-game-banker-title",children:n("banker")}),(0,wt.jsx)("div",{children:e.drawCount[yh.Banker]})]}),(0,wt.jsxs)("div",{className:"mini-game-player",children:[(0,wt.jsx)("div",{className:"mini-game-player-title",children:n("player")}),(0,wt.jsx)("div",{children:e.drawCount[yh.Player]})]}),(0,wt.jsxs)("div",{className:"mini-game-tie",children:[(0,wt.jsx)("div",{className:"mini-game-tie-title",children:n("tie")}),(0,wt.jsx)("div",{children:e.drawCount[yh.Draw]})]})]})},Ch=t(80113),Eh=t(87927),jh=function(e){var n=e.children;return(0,wt.jsx)("div",{className:"mini-game-road-content",children:(0,wt.jsx)("div",{className:"mini-game-road",children:n})})},Ph=function(){return(0,wt.jsx)("div",{className:"mini-game-banker-pair"})},Sh=function(){return(0,wt.jsx)("div",{className:"mini-game-player-pair"})};function Nh(e){var n=e.resultType,t=e.drawCounter,a=e.isBankerPair,i=e.isPlayerPair;if(n===yh.Empty){var r=ut()("mini-game-dish-icon","gray");return(0,wt.jsx)("div",{className:r,children:"X"})}var o=ut()("mini-game-road-icon","".concat(n===yh.Banker?"mini-game-red":"mini-game-blue"));return(0,wt.jsxs)(wt.Fragment,{children:[a?(0,wt.jsx)(Ph,{}):null,(0,wt.jsx)("div",{className:o}),0!==t?(0,wt.jsx)("div",{className:"mini-game-draw"}):null,i?(0,wt.jsx)(Sh,{}):null]})}var Bh=function(){return(0,wt.jsx)("div",{className:"mini-game-relative-border",children:(0,wt.jsx)("div",{className:"mini-game-empty-icon"})})},Ah=function(e){return(0,wt.jsx)("div",{className:"mini-game-relative-border",children:(0,wt.jsx)(Nh,(0,d.Z)({},e))})},Rh=function(e){var n=e.resultType,t=e.isBankerPair,a=e.isPlayerPair,i=(0,Fn.he)("containers.RoadChart."),r="",o="";switch(n){case yh.Banker:r="red",o=i("banker");break;case yh.Player:r="blue",o=i("player");break;case yh.Draw:r="green",o=i("tie");break;case yh.Empty:r="gray",o="X"}var c=ut()("mini-game-dish-icon","".concat(pt.Z.classNamePrefix).concat(r));return(0,wt.jsxs)("div",{className:"mini-game-relative-border",children:[t?(0,wt.jsx)(Ph,{}):null,(0,wt.jsx)("div",{className:c,children:o}),a?(0,wt.jsx)(Sh,{}):null]})},Oh=function(e){var n=e.bigRoadData,t=[];return n.board.forEach((function(e,n){e.forEach((function(e,a){var i="bigIcon_".concat(n,"_").concat(a);t.push(e?(0,wt.jsx)(Ah,(0,d.Z)({},e),i):(0,wt.jsx)(Bh,{},i))}))})),(0,wt.jsx)(jh,{children:t})},Mh=function(e){var n=e.dishRoadData,t=[];return n.board.forEach((function(e,n){e.forEach((function(e,a){var i="dishIcon_".concat(n,"_").concat(a);t.push(e?(0,wt.jsx)(Rh,(0,d.Z)({},e),i):(0,wt.jsx)(Bh,{},i))}))})),(0,wt.jsx)(jh,{children:t})},Zh=function(){return(0,wt.jsx)("div",{className:"mini-game-background-color-layer",children:Array.from({length:6}).map((function(e,n){var t=ut()("mini-game-line-color","".concat(n%2==0?"mini-game-clear":"mini-game-black"));return(0,wt.jsx)("div",{className:t},n)}))})},Dh=function(e){var n=e.roadMap,t=e.tab;return(0,wt.jsxs)("div",{className:"mini-game-draw-history-block",children:[(0,wt.jsx)(Zh,{}),(0,wt.jsx)(vt.Z,{className:"mini-game-scroll-container",children:(0,wt.jsx)("div",{className:"mini-game-draw-ball-content",children:t===_h.DishRoad?(0,wt.jsx)(Mh,{dishRoadData:n[xh.Dish]}):(0,wt.jsx)(Oh,{bigRoadData:n[xh.Big]})})})]})};function Lh(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=kh((0,zn.VO)(n).data||[]),a=t.roadMap,i=t.drawCount,o=(0,r.useState)(_h.DishRoad),s=(0,ot.Z)(o,2),u=s[0],l=s[1],d=function(){Hg.closeGamePop($t.ak.RoadChart)};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(wh,{callback:d}),(0,wt.jsxs)("div",{ref:e,className:"mini-game-road-chart-el",children:[(0,wt.jsx)("img",{className:"mini-game-close-icon",src:nh,onClick:d,alt:""}),(0,wt.jsxs)("div",{className:"mini-game-chart-body",children:[(0,wt.jsx)(Ih,{drawCount:i}),(0,wt.jsx)(Dh,{roadMap:a,tab:u})]}),(0,wt.jsxs)("div",{className:"mini-game-chart-footer",children:[(0,wt.jsx)("div",{className:"mini-game-prev-button",onClick:function(){u!==_h.DishRoad&&l(_h.DishRoad)},children:u===_h.DishRoad?(0,wt.jsx)("img",{className:"mini-game-arrow-left-disabled",src:Eh,alt:"arrow-left-disabled"}):(0,wt.jsx)("img",{src:Ch,alt:"arrow-left"})}),(0,wt.jsx)("div",{className:"mini-game-next-button",onClick:function(){u!==_h.BigRoad&&l(_h.BigRoad)},children:u===_h.BigRoad?(0,wt.jsx)("img",{className:"mini-game-arrow-right-disabled",src:Eh,alt:"arrow-left-disabled"}):(0,wt.jsx)("img",{src:Ch,alt:"arrow-left"})})]})]})]})}var Gh,Wh=function(){var e=hg(),n=e.notificationsInfo,t=e.hiddenMsg,a=n.content;return function(e){var n=e.msg,t=e.show,a=e.delay,i=e.callback,o=(0,r.useRef)(null);(0,r.useEffect)((function(){if(t)return o.current=setTimeout((function(){i()}),a),function(){o.current&&clearTimeout(o.current)}}),[n,t])}({msg:a,show:n.show,delay:2e3,callback:t}),(0,wt.jsx)("div",{className:"mini-game-bcr-info-notification",children:a})},Uh=function(){var e=hg((function(e){return e.notificationsInfo})).type;return(0,wt.jsx)(wt.Fragment,{children:e===mg.bcrInfo&&(0,wt.jsx)(Wh,{})})},qh=function(){var e=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,c.v9)((function(e){return e.gamePanelInfo})),u=_t(),l=u.sendEvent,d=u.gaEventConfig;return(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),e.next=4,fa.deM.load(dg,(function(e){var n;e>=1&&l({action:d.game_loaded,data:{game_code:null===(n=s.info)||void 0===n?void 0:n.gameCode}}),o(100*e)}));case 4:case"end":return e.stop()}}),e)})))()}),[]),t}(),n=(0,r.useRef)(null),t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),o=(0,c.v9)((function(e){return e.gamePopInfo})),s=hg(),u=s.containerScale,l=s.setContainerScale;gr({gameConfig:pt.Z.gameConfig.baccarat}),Tm(t);var m=function(){var e=window.innerWidth,n=e/(e>=768?e>1280?1280:700:375),t=window.innerHeight/Kp;l(Math.min(n,t))};(0,r.useEffect)((function(){return window.addEventListener("resize",m),m(),function(){window.removeEventListener("resize",m)}}),[]);var f={width:Xp*u,height:Kp*u,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(wo,{progress:e,children:(0,wt.jsx)("div",{style:{width:Xp*u,height:Kp*u},ref:n,className:"mini-game-baccarat-game-scene",children:(0,wt.jsxs)("div",{children:[(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},f),{},{children:(0,wt.jsx)(eh,{})})),o.includes($t.ak.Commission)&&(0,wt.jsx)(rh,{}),o.includes($t.ak.Intro)&&(0,wt.jsx)(sh,{}),o.includes($t.ak.BetHistory)&&(0,wt.jsx)(ph,{}),o.includes($t.ak.DrawHistory)&&(0,wt.jsx)(vh,{}),o.includes($t.ak.RoadChart)&&(0,wt.jsx)(Lh,{}),(0,wt.jsx)(Uh,{})]})})})},zh="".concat("/mini-game/s1","/"),Fh=[{src:"".concat(zh,"sprite-sheet/ani_hand/ani_hand.json")},{src:"".concat(zh,"sprite-sheet/ani_stone_light/ani_stone_light.json")}],Vh=[{src:t(12671),alias:["".concat(pd,"_stoneBox_normal")]},{src:t(76823),alias:["".concat(pd,"_stoneBox_selected")]},{src:t(17613),alias:["".concat(pd,"_stoneBroken_normal")]},{src:t(8056),alias:["".concat(pd,"_stoneBroken1_normal")]},{src:t(17812),alias:["".concat(pd,"_gemBox_normal")]},{src:t(18678),alias:["".concat(pd,"_gemBox_disable")]},{src:t(2302),alias:["".concat(pd,"_bombBox_normal")]},{src:t(50894),alias:["".concat(pd,"_bombBox_disable")]}],Hh=[{src:t(14838),alias:["".concat(pd,"_countPanel_bg")]},{src:t(76060),alias:["".concat(pd,"_bombCount_normal")]},{src:t(7318),alias:["".concat(pd,"_bombCount_disable")]},{src:t(37555),alias:["".concat(pd,"_bombCountContent_normal")]},{src:t(32534),alias:["".concat(pd,"_bombCountContent_disable")]},{src:t(77934),alias:["".concat(pd,"_countBtn_normal")]},{src:t(51635),alias:["".concat(pd,"_countBtn_selected")]}],Yh=[{src:t(50407),alias:["".concat(pd,"_oddsBar_bg")]},{src:t(3597),alias:["".concat(pd,"_oddsBox_normal")]},{src:t(54588),alias:["".concat(pd,"_oddsBox_selected")]}],Xh=[{src:t(43062),alias:["".concat(pd,"_boxArrow_normal")]},{src:t(26553),alias:["".concat(pd,"_boxArrow_disable")]}],Kh=[{src:t(80154),alias:["".concat(pd,"_auto_normal")]},{src:t(2498),alias:["".concat(pd,"_auto_disable")]},{src:t(10952),alias:["".concat(pd,"_start_normal")]},{src:t(11263),alias:["".concat(pd,"_start_disable")]}
1,{src:t(31656),alias:["".concat(pd,"_stop_normal")]},{src:t(91153),alias:["".concat(pd,"_stop_disable")]},{src:t(2376),alias:["".concat(pd,"_bet_normal")]},{src:t(70886),alias:["".concat(pd,"_bet_disable")]},{src:t(50799),alias:["".concat(pd,"_cancel_normal")]},{src:t(3036),alias:["".concat(pd,"_cancel_disable")]},{src:t(24504),alias:["".concat(pd,"_cashout_normal")]},{src:t(23019),alias:["".concat(pd,"_cashout_disable")]}],Qh=[{src:t(62599),alias:["".concat(pd,"_bg")]},{src:t(81883),alias:["".concat(pd,"_title")]},{src:t(43593),alias:["".concat(pd,"_character")]},{src:t(15430),alias:["".concat(pd,"_winPop_normal")]}].concat(Vh,Hh,Yh,Xh,(0,u.Z)(Tl),Kh,(0,u.Z)(El),(0,u.Z)(Pl),Fh),Jh=(Gh={},(0,l.Z)(Gh,"".concat(pd,"_bgm_minesgame"),t(17371)),(0,l.Z)(Gh,"".concat(pd,"_s_stone"),t(30455)),(0,l.Z)(Gh,"".concat(pd,"_s_bombstone"),t(8337)),(0,l.Z)(Gh,"".concat(pd,"_s_crystalstone_01"),t(39175)),(0,l.Z)(Gh,"".concat(pd,"_s_crystalstone_02"),t(38694)),(0,l.Z)(Gh,"".concat(pd,"_s_crystalstone_03"),t(35508)),(0,l.Z)(Gh,"".concat(pd,"_s_crystalstone_04"),t(66656)),(0,l.Z)(Gh,"".concat(pd,"_s_crystalstone_05"),t(76078)),Gh),$h=Array.from({length:24},(function(e,n){return n+1})),ev=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new fa.pn8({align:"center",fontFamily:"arial",fontSize:21,fontWeight:e?"bold":"normal",fill:["#ffffff"]})},nv=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.minesCount,i=e.onCountChange,o=e.disabled,c=(0,Fn.he)("containers.GamesPanel."),s=(0,r.useState)(!1),u=(0,ot.Z)(s,2),l=u[0],d=u[1];return(0,r.useEffect)((function(){o&&d(!1)}),[o]),(0,wt.jsxs)(sa.W2,{position:t,children:[l&&(0,wt.jsxs)(sa.W2,{position:[0,-317],children:[(0,wt.jsx)(sa.jy,{width:256,height:305,texture:fa.P6Y.TextureCache["".concat(pd,"_countPanel_bg")]}),(0,wt.jsx)(sa.W2,{position:[12,12],children:$h.map((function(e,n){var t=n%4*60,r=48*Math.floor(n/4);return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(sa.jy,{position:[t,r],width:52,height:40,texture:fa.P6Y.TextureCache["".concat(pd,"_").concat(a===e?"countBtn_selected":"countBtn_normal")],eventMode:"static",pointerdown:function(){return n=e,Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),i(n),void d(!1);var n}}),(0,wt.jsx)(sa.xv,{position:[t+26,r+20],anchor:[.5,.5],text:"".concat(e),style:ev()})]},n)}))})]}),(0,wt.jsx)(sa.jy,{eventMode:o?"none":"static",pointerdown:function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),d(!l)},width:174,height:46,texture:fa.P6Y.TextureCache["".concat(pd,"_bombCount_").concat(o?"disable":"normal")]}),(0,wt.jsxs)(sa.W2,{position:[8,6],children:[(0,wt.jsx)(sa.jy,{width:136,height:34,texture:fa.P6Y.TextureCache["".concat(pd,"_bombCountContent_").concat(o?"disable":"normal")]}),(0,wt.jsx)(sa.xv,{alpha:o?.5:1,position:[68,17],anchor:[.5,.5],text:"".concat(c("Mines.title"),":").concat(a),style:ev(!0)})]}),(0,wt.jsx)(sa.jy,{rotation:l?Math.PI:0,position:[157,23],anchor:.5,width:14,height:12,texture:fa.P6Y.TextureCache["".concat(pd,"_boxArrow_").concat(o?"disable":"normal")]})]})},tv=function(e){var n=e.disabled,t=e.position,a=e.rotation,i=void 0===a?0:a,r=e.handleClick;return(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:r,rotation:i,position:t,anchor:.5,width:14,height:12,texture:fa.P6Y.TextureCache["".concat(pd,"_boxArrow_").concat(n?"disable":"normal")]})},av=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;return new fa.pn8({fill:e?"#fff":"#9ca8d7",fontSize:n||18,fontWeight:"bold"})},iv=function(e){return e.beginFill(0),e.drawRect(0,0,380,34),e.endFill(),e},rv=function(){var e=Td().game,n=e.odds,t=e.oddIndex,a=(0,r.useState)(null),i=(0,ot.Z)(a,2),o=i[0],c=i[1],s=(0,r.useRef)(null),u=(0,r.useState)(!1),l=(0,ot.Z)(u,2),d=l[0],m=l[1],f=(0,r.useState)(!1),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,r.useCallback)((function(){var e=s.current;if(e){var t=86*n.length+2*(n.length-1);e.x>=0?h(!0):h(!1);var a=-(t-380);e.x<=a?m(!0):m(!1)}}),[n.length]),b=function(e){if(!("right"===e&&d||"left"===e&&g)){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1});var n=s.current;if(n){var t=190-(n.x-88),a=190-(n.x+88),i="right"===e?t:a;"right"===e?m(!0):h(!0),n.animate({position:new fa.E9j(i,n.y),time:300,ease:"easeInOutQuad",callbackOnComplete:function(){v()}})}}};return(0,r.useEffect)((function(){if(s.current){var e=s.current,t=86*n.length+2*(n.length-1),a=t>380?t:380;e.resize(e.screenWidth,e.screenHeight,a,e.worldHeight),e.plugins.plugins.clamp&&e.plugins.remove("clamp"),e.clamp({left:!0,right:!0,top:!1,bottom:!1,direction:t<=380?"all":"y",underflow:"center"}),e.moveCorner(0,0);var i=function(){v()};return e.on("moved",i),v(),function(){e.off("moved",i)}}}),[n.length,v]),(0,r.useEffect)((function(){if(s.current){var e=s.current;if(null!==t){if(v(),t<n.length-2){var a=190- -88*(0===t?0:t-1);e.animate({position:new fa.E9j(a,e.y),time:300,ease:"easeInOutQuad"})}}else e.moveCorner(0,0)}}),[t,n.length]),(0,r.useEffect)((function(){if(s.current){var e=s.current;e.bounce({sides:"horizontal",friction:.5,time:200,ease:"easeInOutSine"});var n=function(){e.plugins.plugins.bounce||e.bounce({sides:"horizontal",friction:.5,time:200,ease:"easeInOutSine"})};return e.on("drag-start",n),function(){e.off("drag-start",n)}}}),[]),(0,wt.jsxs)(sa.W2,{position:[193,0],children:[(0,wt.jsx)(sa.jy,{width:436,height:46,texture:fa.P6Y.TextureCache["".concat(pd,"_oddsBar_bg")]}),(0,wt.jsx)(tv,{handleClick:function(){return b("left")},disabled:g,position:[14,23],rotation:Math.PI/2}),(0,wt.jsxs)(sa.W2,{position:[26,6],mask:o,children:[(0,wt.jsx)(sa.TC,{draw:iv,ref:c}),(0,wt.jsx)(Hm,{ref:s,width:380,height:34,boxWidth:380,boxHeight:34,children:n.map((function(e,n){var a=86*n+2*n,i=t===n,r=Number(e).toFixed(2),o=e.length>7?av(i,14):av(i);return(0,wt.jsxs)(sa.W2,{width:87,height:34,position:[a,0],children:[(0,wt.jsx)(sa.jy,{width:87,height:34,texture:fa.P6Y.TextureCache["".concat(pd,"_oddsBox_").concat(i?"selected":"normal")]}),(0,wt.jsx)(sa.xv,{position:[43,17],anchor:[.5,.5],text:"".concat(r,"x"),style:o})]},n)}))})]}),(0,wt.jsx)(tv,{handleClick:function(){return b("right")},disabled:d,position:[421,23],rotation:-Math.PI/2})]})},ov=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.width,i=e.he
1ight,r=e.onClick,o=e.texture,c=e.disabled;return(0,wt.jsx)(sa.jy,{eventMode:c?"none":"static",onpointerdown:function(){r&&r()},position:t,width:a,height:i,texture:o})},cv=function(){var e,n,t,a=Td(),i=a.game,r=a.auto,o=a.gameUtils,s=a.ui,u=i.startGame,d=i.setGameValue,m=i.handleCashout,f=i.minesBoxs,p=r.isAutoPlaying,g=o.requestStatusMap,h=o.checkBalanceEnough,v=o.isAnyPending,b=s.isEndGameDrawing,x=_d().isBalanceFetching,y=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),_=(e={},(0,l.Z)(e,od.BET,(function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),h(y)&&u(y)})),(0,l.Z)(e,od.CASH_OUT,(function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),m()})),(0,l.Z)(e,od.STOP,(function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),d("state",od.BET)})),e),w=(n={},(0,l.Z)(n,od.BET,fa.P6Y.TextureCache["".concat(pd,"_bet_normal")]),(0,l.Z)(n,od.CASH_OUT,fa.P6Y.TextureCache["".concat(pd,"_cashout_normal")]),(0,l.Z)(n,od.STOP,fa.P6Y.TextureCache["".concat(pd,"_stop_normal")]),n),T=(t={},(0,l.Z)(t,od.BET,g[sd.INIT_GAME]!==cd.SUCCESS||v()||p||b||x),(0,l.Z)(t,od.CASH_OUT,v()||!f.some((function(e){return e.type===ud.Gem_Normal}))||b||x),(0,l.Z)(t,od.STOP,x||g[sd.AUTO_GAME]===cd.PENDING),t),k=_[i.state],I=w[i.state],C=T[i.state];return(0,wt.jsx)(sa.W2,{position:[425,0],children:(0,wt.jsx)(ov,{onClick:k,width:203,height:83,texture:C?i.state===od.BET?fa.P6Y.TextureCache["".concat(pd,"_bet_disable")]:i.state===od.CASH_OUT?fa.P6Y.TextureCache["".concat(pd,"_cashout_disable")]:fa.P6Y.TextureCache["".concat(pd,"_stop_disable")]:I,disabled:C})})},sv=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.zIndex,i=void 0===a?0:a,o=e.isShow,c=(0,r.useState)([]),s=(0,ot.Z)(c,2),u=s[0],l=s[1];return(0,r.useEffect)((function(){!function(){for(var e=fa.P6Y.TextureCache,n=[],t=0;t<44;t++)n.push(e["ani_hand".concat(t,".png")]);l(n)}()}),[]),(null==u?void 0:u.length)>0&&o?(0,wt.jsx)(sa.W2,{zIndex:i,position:t,children:(0,wt.jsx)(da.Kg,{isPlaying:!0,loop:!0,width:45,height:65,textures:u,animationSpeed:.4})}):null},uv=["cyan","red","purple","green","blue"],lv=function(){var e=Td(),n=e.game,t=e.ui,a=e.auto,i=e.gameUtils,o=n.state,s=t.setShowAutoBetPopup,u=a.resetAutoMinesBoxs,l=a.isAutoPlaying,d=i.isAnyPending,m=i.requestStatusMap,f=_d().isBalanceFetching,p=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),g=(0,c.v9)((function(e){return e.calculatorInfo.show})),h=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),v=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),b=(0,r.useState)([]),x=(0,ot.Z)(b,2),y=x[0],_=x[1],w=function(){return m[sd.INIT_GAME]!==cd.SUCCESS||!!d()||l||o===od.CASH_OUT||o===od.STOP||f},T=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,640,70),e.endFill()}),[]),k=function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),pi.close()};return(0,r.useEffect)((function(){var e=p.map((function(e,n){return{index:n,value:e}}));_(e)}),[p]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(sa.W2,{position:[0,742],children:[(0,wt.jsx)(sa.W2,{position:[0,13],children:(0,wt.jsx)(sa.TC,{draw:T})}),(0,wt.jsx)(qg,{onClick:function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),pi.open()},position:[12,4],isFlipped:!0,disabled:w()}),y.map((function(e,n){return n<3?(0,wt.jsx)(Lf,{color:uv[n],position:[82*n+5*n+94,38],textValue:"".concat(e.value),isLight:n===h,onClick:function(){return function(e){o===od.BET&&(Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),ft.Z.changeSelectedChip(e))}(n)},isMask:n!==h},n):null})),(0,wt.jsx)(ov,{position:[319,0],width:98,height:83,texture:fa.P6Y.TextureCache["".concat(pd,"_auto_").concat(w()?"disable":"normal")],onClick:function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),s(!0),u()},disabled:w()}),(0,wt.jsx)(cv,{})]}),(0,wt.jsx)(sv,{zIndex:1,position:[565,787],isShow:o===od.BET}),g&&null!==v?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.TC,{eventMode:"static",zIndex:5,onpointerdown:k,draw:function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,640,435),e.endFill()}}),(0,wt.jsx)(Mf,{value:v,position:{x:0,y:435},zIndex:5,width:640,height:390,confirmClick:function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),pi.confirmHandle()},backClick:function(e){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),pi.updateEditAmount(e)},cancelClick:k,numberClick:function(e){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),pi.updateEditAmount("".concat(e))}})]}):null]})},dv=function(){var e=Td(),n=e.game,t=e.auto,o=e.ui,c=n.oddIndex,s=n.odds,u=n.setGameValue,l=n.winAmount,m=t.isAutoPlaying,f=o.isShowWinPopup,p=o.hiddenWinPopup,g=o.setEndGameDrawing,h=null===c?0:s[c],v=(0,ma.q_)((function(){return{scale:0,opacity:0,config:{tension:500,friction:12}}})),b=(0,ot.Z)(v,2),x=b[0],y=b[1],_=(0,ma.q_)((function(){return{scale:0,opacity:0,config:{tension:400,friction:12}}})),w=(0,ot.Z)(_,2),T=w[0],k=w[1],I=(0,ma.q_)((function(){return{scale:0,opacity:0,config:{tension:400,friction:12}}})),C=(0,ot.Z)(I,2),E=C[0],j=C[1],P=function(e,n){return new Promise((function(t){e.start((0,d.Z)((0,d.Z)({},n),{},{onRest:t}))}))},S=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return Ea.eq&&Ea.eq.play("".concat(fd,"_s_win"),{volume:1}
1),e.next=5,P(y,{scale:1,opacity:1,config:{duration:150}});case 5:return e.next=7,P(y,{scale:.8,config:{duration:100}});case 7:return e.next=9,P(y,{scale:1});case 9:return e.next=11,P(k,{scale:1,opacity:1,config:{duration:200}});case 11:return e.next=13,P(j,{scale:1,opacity:1,config:{duration:200}});case 13:return e.next=15,(0,Fn.gw)(200);case 15:p(),g(!1),m||u("state",od.BET);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){f?S():(y.start({scale:0,opacity:0,immediate:!0}),k.start({scale:0,opacity:0,immediate:!0}),j.start({scale:0,opacity:0,immediate:!0}))}),[f]);var N=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,.6),e.drawRect(0,0,640,825),e.endFill()}),[]);return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(da.TC,{visible:f,draw:N}),(0,wt.jsxs)(da.W2,{position:[0,232],children:[(0,wt.jsx)(da.W2,{scale:x.scale,alpha:x.opacity,position:[320,150],children:(0,wt.jsx)(da.jy,{width:640,height:300,texture:fa.P6Y.TextureCache["".concat(pd,"_winPop_normal")],anchor:.5,position:[0,0]})}),(0,wt.jsx)(da.W2,{scale:T.scale,alpha:T.opacity,position:[320,124],children:(0,wt.jsx)(da.xv,{text:"".concat(h,"x"),style:new fa.pn8({fontSize:40,fill:"#fff",fontWeight:"bold",align:"center"}),anchor:.5,position:[0,0]})}),(0,wt.jsx)(da.W2,{scale:E.scale,alpha:E.opacity,position:[320,176],children:(0,wt.jsx)(da.xv,{text:l,style:new fa.pn8({fontSize:30,fill:"#edc02c",fontWeight:"bold",align:"center"}),anchor:.5,position:[0,0]})})]})]})},mv=function(e){var n=e.opacity,t=void 0===n?.6:n,a=e.width,i=void 0===a?640:a,o=e.height,c=void 0===o?850:o,s=e.zIndex,u=void 0===s?0:s,l=e.onClick,d=e.eventMode,m=void 0===d?"static":d,f=e.stopPropagation,p=void 0!==f&&f,g=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,t),e.drawRect(0,0,i,c),e.endFill()}),[i,c,t]);return(0,wt.jsx)(sa.TC,{eventMode:m,draw:g,zIndex:u,onpointerdown:function(e){p&&e.stopPropagation(),l&&l()}})},fv=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.zIndex,i=void 0===a?0:a,o=e.isShow,c=e.isPlaying,s=void 0===c||c,u=(0,r.useState)([]),l=(0,ot.Z)(u,2),d=l[0],m=l[1];return(0,r.useEffect)((function(){!function(){for(var e=fa.P6Y.TextureCache,n=[],t=0;t<11;t++)n.push(e["ani_stone_light".concat(t,".png")]);for(var a=[],i=0;i<8;i++)a.push(e["ani_stone_light0.png"]);m([].concat(n,n,a))}()}),[]),(null==d?void 0:d.length)>0&&o?(0,wt.jsx)(sa.W2,{zIndex:i,position:t,children:(0,wt.jsx)(da.Kg,{isPlaying:s,loop:!0,width:92,height:89,textures:d,animationSpeed:.4})}):null},pv=function(e){switch(e){case ud.Stone_Normal:return fa.P6Y.TextureCache["".concat(pd,"_stoneBox_normal")];case ud.Stone_Selected:return fa.P6Y.TextureCache["".concat(pd,"_stoneBox_selected")];case ud.Stone_Broken:return fa.P6Y.TextureCache["".concat(pd,"_stoneBroken_normal")];case ud.Gem_Normal:return fa.P6Y.TextureCache["".concat(pd,"_gemBox_normal")];case ud.Gem_Disable:return fa.P6Y.TextureCache["".concat(pd,"_gemBox_disable")];case ud.Bomb_Normal:return fa.P6Y.TextureCache["".concat(pd,"_bombBox_normal")];case ud.Bomb_Disable:return fa.P6Y.TextureCache["".concat(pd,"_bombBox_disable")];case ud.Stone_Broken_1:return fa.P6Y.TextureCache["".concat(pd,"_stoneBroken1_normal")];default:return fa.P6Y.TextureCache["".concat(pd,"_stoneBox_normal")]}},gv=function(e){var n=e.type,t=e.position,o=e.onClick,c=e.disabled,s=e.onAnimationStart,u=e.onAnimationEnd,l=e.enableAnimation,m=void 0===l||l,f=e.stoneAnimationEnabled,p=void 0===f||f,g=(0,r.useState)(!1),h=(0,ot.Z)(g,2),v=h[0],b=h[1],x=(0,r.useState)(!1),y=(0,ot.Z)(x,2),_=y[0],w=y[1],T=(0,ma.q_)((function(){return{scale:1}})),k=(0,ot.Z)(T,2),I=k[0],C=k[1],E=function(e){var n;b(!0),s&&s(),C.start({to:(n=(0,i.Z)((0,a.Z)().mark((function n(t){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e&&e(),n.next=3,t({scale:.8,config:{duration:70}});case 3:return n.next=5,t({scale:1.4,config:{duration:210}});case 5:return n.next=7,t({scale:1,config:{duration:70}});case 7:return b(!1),w(!0),n.next=11,t({scale:.8,config:{duration:70}});case 11:return n.next=13,t({scale:1,config:{duration:35}});case 13:w(!1),u&&u();case 15:case"end":return n.stop()}}),n)}))),function(e){return n.apply(this,arguments)})})};(0,r.useEffect)((function(){o||n!==ud.Bomb_Normal&&n!==ud.Gem_Normal||E()}),[n,o]);var j=t[0]+46,P=t[1]+44.5,S=t[0]+58,N=t[1]+56,B=Math.floor(12),A=Math.floor(11.5);return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(da.W2,(0,d.Z)((0,d.Z)({eventMode:c?"none":"static",onpointerdown:function(){v||o&&(m?E(o):o())},position:[j,P],pivot:[46,44.5]},I),{},{children:n===ud.Stone_Normal?(0,wt.jsx)(fv,{isShow:!0,isPlaying:p}):(0,wt.jsx)(da.jy,{width:92,height:89,texture:pv(v?ud.Stone_Broken:n)})})),_&&(0,wt.jsx)(da.W2,(0,d.Z)((0,d.Z)({position:[S-B,N-A],pivot:[58,56]},I),{},{children:(0,wt.jsx)(da.jy,{width:116,height:112,texture:pv(ud.Stone_Broken_1)})}))]})},hv=function(e){var n=e.position,t=void 0===n?[68,164]:n,a=e.columns,i=void 0===a?5:a,r=e.gap,o=void 0===r?[103,96]:r,c=e.items,s=e.renderItem;return(0,wt.jsx)(sa.W2,{position:t,children:c.map((function(e,n){var t=n%i*o[0],a=Math.floor(n/i)*o[1];return s(e,n,[t,a])}))})},vv=function(){var e=Td().auto,n=e.autoMinesBoxs,t=e.handleSelectAutoBox,a=(0,r.useRef)(0),i=(0,r.useMemo)((function(){var e=!n.some((function(e){return e.type===ud.Stone_Selected}));return e||0!==a.current?e&&a.current>0&&(a.current+=1):a.current=1,e}),[n]);return(0,wt.jsx)(hv,{position:[68,164],items:n,renderItem:function(e,n,r){var o=(0,ot.Z)(r,2),c=o[0],s=o[1];return(0,wt.jsx)(gv,{position:[c,s],type:e.type,onClick:function(){return function(e){Ea.eq.play("".concat(fd,"_s_button_01"),{volume:1}),t(e)}(n)},enableAnimation:!1,stoneAnimationEnabled:i},"".concat(n,"-").concat(a.current))}})},bv=function(e){return new fa.pn8({fill:e?"#629346":"#ddfbcd",fontSize:33,fontWeight:"bold",fontFamily:"Arial"})},xv=function(){var e=Td(),n=e.game,t=e.auto,a=e.ui,i=e.gameUtils,r=n.minesCount,o=n.setMine
1sCount,s=t.startAutoGame,u=t.autoMinesBoxs,l=a.setShowAutoBetPopup,d=a.isShowAutoBetPopup,m=i.checkBalanceEnough,f=i.requestStatusMap,p=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),g=(0,Fn.he)("containers.GamesPanel.");if(!d)return null;var h=0===u.filter((function(e){return e.type===ud.Stone_Selected})).length||f[sd.AUTO_GAME]===cd.PENDING;return(0,wt.jsxs)(sa.W2,{zIndex:4,children:[(0,wt.jsx)(mv,{opacity:.8,stopPropagation:!0,zIndex:0}),(0,wt.jsx)(vv,{}),(0,wt.jsxs)(sa.W2,{position:[0,742],children:[(0,wt.jsx)(nv,{position:[12,0],minesCount:r,onCountChange:function(e){Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),o(e)}}),(0,wt.jsx)(sa.xv,{text:"".concat(g("Mines.bet"),":").concat(p),style:new fa.pn8({fill:"#fff",fontSize:19}),position:[20,56]}),(0,wt.jsxs)(sa.W2,{position:[208,0],children:[(0,wt.jsx)(ov,{width:203,height:88,texture:fa.P6Y.TextureCache["".concat(pd,"_cancel_normal")],onClick:function(){Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),l(!1)}}),(0,wt.jsx)(sa.xv,{text:g("Mines.cancel"),style:new fa.pn8({fill:"#8efafd",fontSize:33,fontWeight:"bold",fontFamily:"Arial"}),anchor:[.5,.5],position:[101,44]})]}),(0,wt.jsxs)(sa.W2,{position:[425,0],children:[(0,wt.jsx)(ov,{width:203,height:88,texture:fa.P6Y.TextureCache["".concat(pd,"_start_").concat(h?"disable":"normal")],disabled:h,onClick:function(){Ea.eq.play("".concat(fd,"_s_button_02"),{volume:1}),m(p)&&s(p)}}),(0,wt.jsx)(sa.xv,{text:g("Mines.start"),style:bv(h),anchor:[.5,.5],position:[101,44]})]})]})]})},yv=new fa.pn8({align:"center",fontFamily:"arial",fontSize:15,fill:["#999999"]}),_v=function(e){var n=e.position,t=e.balanceText,a=e.numero,i=e.balanceVisible,o=e.balanceDif,c=e.balanceDifColor,s=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,1),e.drawRect(0,0,640,25),e.endFill()}),[]);return(0,wt.jsxs)(sa.W2,{position:n,children:[(0,wt.jsx)(sa.TC,{draw:s}),(0,wt.jsx)(sa.xv,{anchor:[0,.5],position:[19,12],text:"".concat(t),style:yv}),(0,wt.jsx)(sa.xv,{position:[628,12],anchor:[1,.5],text:"".concat(a),style:yv}),i&&(0,wt.jsx)(sa.xv,{position:[14+10*t.length+5,12],anchor:[0,.5],text:o,style:new fa.pn8({align:"center",fontFamily:"arial",fontWeight:"bold",fontSize:15,fill:[c]})})]})},wv=function(){var e=Td().game.numeroNo,n=(0,zn.De)().data,t=_d(),a=t.prevBalance,i=t.balanceDifference,o=t.balanceVisible,c=t.isInitialized,s=t.initializeBalance,u=null===a?"0":(0,Fn.mT)(a),l=e?"No.".concat(e):"";return(0,r.useEffect)((function(){var e=null==n?void 0:n.availBalance;e&&e>=1&&!c&&s(e)}),[null==n?void 0:n.availBalance,c]),(0,wt.jsx)(_v,{position:[0,825],balanceText:u,numero:l,balanceVisible:o,balanceDif:"".concat(i>0?"+":"-").concat((0,Fn.mT)(Math.abs(i))),balanceDifColor:i>0?"#fae124":"#86141a"})},Tv=function(){var e=Td(),n=e.game,t=e.auto,a=e.gameUtils,i=e.ui,r=n.minesBoxs,o=n.handleBet,c=n.state,s=n.minesCount,u=t.isAutoPlaying,l=a.setRequestStatus,d=i.isBoxAnimating,m=i.setBoxAnimating,f=i.isEndGameDrawing,p=function(){m(!0),u||l(sd.PICK_BLOCK,cd.PENDING)},g=function(){m(!1)},h=function(e){if(e===ud.Stone_Selected)return!1;var n=25-r.filter((function(e){return e.type===ud.Gem_Normal})).length===s;return c===od.BET||d||e!==ud.Stone_Normal||f||n};return(0,wt.jsx)(hv,{position:[68,164],items:r,renderItem:function(e,n,t){var a=(0,ot.Z)(t,2),i=a[0],r=a[1];return(0,wt.jsx)(gv,{position:[i,r],type:e.type,onClick:u?void 0:function(){return function(e){f||d||(Ea.eq.play("".concat(pd,"_s_stone"),{volume:1}),o(e))}(n)},disabled:h(e.type),enableAnimation:!0,onAnimationStart:p,onAnimationEnd:g},n)}})},kv=function(){return{keepAlive:(0,r.useCallback)((function(){dd.isConnected()?(ad("[useKeepSocketAlive] ç¼éå¿è·³ä»¥ä¿æé£ç·"),dd.sendHeartbeat()):ad("[useKeepSocketAlive] WebSocket æªé£æ¥,è·³éå¿è·³ç¼é")}),[])}},Iv=function(e){var n=e.position,t=void 0===n?[31,17]:n,a=(0,Ft.$)().t,i=wd(),r=i.activePanel,o=i.togglePanel,c=kv().keepAlive,s=Td((function(e){return e.auto.isAutoPlaying})),u=Td((function(e){return e.gameUtils.requestStatusMap[sd.AUTO_GAME]===cd.PEND
1ING})),l=function(e){if("betHistory"!==e||!s&&!u){var n="".concat(fd,r===e?"_s_button_03":"_s_button_01");Ea.eq&&Ea.eq.play(n,{volume:1}),o(e),c()}else Td.getState().ui.showError({errorMessage:a("containers.GamesPanel.AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY")})};return(0,wt.jsxs)(sa.W2,{position:t,children:[(0,wt.jsx)(Sm,{onClick:function(){return l("intro")},visible:"intro"===r}),(0,wt.jsx)(Am,{position:[48,0],onClick:function(){return l("betHistory")},visible:"betHistory"===r}),(0,wt.jsx)(Em,{position:[96,0]})]})};function Cv(e){var n=e.dataSources,t=void 0===n?[]:n,a=e.handleClose,i=e.descriptionText,r=e.betItemTitle,o=e.rulesText,c=e.customSection,s=(0,Fn.he)("containers.GamesIntro.");return(0,wt.jsxs)("div",{className:"mini-game-game-intro-v2",children:[(0,wt.jsx)("div",{className:"mini-game-close-btn",onClick:a,children:(0,wt.jsx)("img",{src:Xi,alt:"close-btn"})}),(0,wt.jsxs)("div",{className:"mini-game-intro-content",children:[(0,wt.jsxs)("section",{className:"mini-game-intro-description",children:[(0,wt.jsxs)("h1",{children:[s("title"),":"]}),(0,wt.jsx)("p",{children:i})]}),o&&(0,wt.jsxs)("section",{className:"mini-game-intro-description",children:[(0,wt.jsxs)("h1",{children:[s("rules"),":"]}),(0,wt.jsx)("p",{children:o})]}),t.length>0&&(0,wt.jsx)("section",{className:"mini-game-intro-table",children:(0,wt.jsxs)("div",{className:"mini-game-pay-table",children:[(0,wt.jsxs)("div",{className:"mini-game-row",children:[(0,wt.jsx)("div",{children:r}),(0,wt.jsx)("div",{children:s("odds")})]}),t.map((function(e,n){return(0,wt.jsxs)("div",{className:"mini-game-row",children:[(0,wt.jsx)("div",{children:e.title}),(0,wt.jsx)("div",{children:e.bonusTxt})]},n)}))]})}),(0,wt.jsx)("section",{className:"mini-game-intro-description",children:c})]})]})}var Ev,jv=function(){var e=wd(),n=e.activePanel,t=e.setActivePanel,a=(0,Fn.he)("containers.GamesIntro."),i=kv().keepAlive;return"intro"===n?(0,wt.jsx)(Cv,{handleClose:function(){Ea.eq.play("".concat(fd,"_s_button_03"),{volume:1}),t(null),i()},descriptionText:a("Mines.description")}):null},Pv=function(){var e=Td().ui,n=e.errorVisible,t=e.errorMessage,a=e.hideError,i=(0,r.useRef)(null);return(0,r.useEffect)((function(){return n&&(i.current&&clearTimeout(i.current),i.current=setTimeout((function(){a()}),1500)),function(){i.current&&clearTimeout(i.current)}}),[n]),(0,wt.jsx)(Gp,{show:n,content:t,style:{top:"50%"}})},Sv=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,Fn.he)("components.Alert."),t=Td(),a=t.ui,i=t.gameUtils,r=a.isShowConfirmPopup,o=a.confirmMsgKey,c=i.resetAllState,s=Ji(!1).closeGamePanel;return(0,wt.jsx)(Dp,{show:r,hasBg:!0,title:n("systemNotice"),context:e(o),onConfirmClick:function(){c(),s()},showCancel:!1})},Nv=function(){var e=wd(),n=e.activePanel,t=e.setActivePanel,a=kv().keepAlive;return(0,wt.jsxs)(wt.Fragment,{children:["betHistory"===n&&(0,wt.jsx)(pm,{closeBetHistory:function(){Ea.eq&&Ea.eq.play("".concat(fd,"_s_button_03"),{volume:1}),t(null),a()},onTabClick:a}),(0,wt.jsx)(jv,{}),(0,wt.jsx)(Pv,{}),(0,wt.jsx)(Sv,{})]})},Bv=function(){var e,n,t,o,s=(0,r.useRef)(null),u=(e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],(0,c.v9)((function(e){return e.gamePanelInfo})),_t().sendEvent,(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),fa.deM.addBundle("sounds",Jh),fa.deM.addBundle("uiSounds",Ll),Ea.eq.add(Jh),Ea.eq.add(Ll),e.next=8,fa.deM.load(Qh,(function(e){o(100*e)}));case 8:case"end":return e.stop()}}),e)})))()}),[]),t),l=aa(),m=l.containerScale,f=l.isCloseIconTop,p=Td(),g=p.game,h=p.gameUtils,v=h.socketStatus,b=h.resetAllState,x=g.initGame,y=g.state,_=g.minesCount,w=g.setMinesCount,T=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),k=Ji(!1).closeGamePanel;(function(){var e=Td(),n=e.game,t=e.auto,a=n.minesCount,i=n.setGameValue,o=t.handleMinesCountChange;(0,r.useEffect)((function(){i("oddIndex",null),o(a)}),[a])})(),(0,r.useEffect)((function(){return(0,Fn.yH)(),Ea.eq.play("".concat(pd,"_bgm_minesgame"),{loop:!0,volume:1}),function(){b()}}),[]),(0,r.useEffect)((function(){if("connected"===v){var e=(0,Fn.Wf)();x(e)}}),[v]),function(e){var n=e.token,t=e.gameId,o=(0,zn.De)().refetch,s=(0,Fn.he)("containers.GamesPanel."),u=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(t)).data,l=(0,zn.Yy)(),d=l.data,m=l.isSuccess,f=Dt().setLastGame,p=function(){Ea.eq.play("".concat(pd,"_s_bombstone"),{volume:2})},g=function(){var e=Td.getState().game.minesBoxs.filter((function(e){return e.type===ud.Gem_Normal})).length,n=e>4?5:e;Ea.eq.play("".concat(pd,"_s_crystalstone_0").concat(n),{volume:1})};(0,r.useEffect)((function(){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t,i,r,c,s,u,l,d,m,f,p;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ad("[MinesSocket] éæ²çµæ:",n),t=n.winAmount,i=Td.getState().game,r=i.updateMinesBoxsFromEndPayload,c=i.setGameValue,s=Td.getState().ui.setEndGameDrawing,u=Td.getState().gameUtils.setRequestStatus,l=_d.getState(),d=l.handleEndGameBalance,m=l.setBalanceVisible,f=l.setBalanceDifference,u(sd.CASH_OUT,cd.SUCCESS),s(!0),p=Number(t)>
10,e.next=11,(0,Fn.gw)(p?0:300);case 11:return r(n.minesResult,n.chooseResult),c({state:od.BET,orderNo:"",numeroNo:"",winAmount:t}),p?Td.getState().ui.showWinPopup():s(!1),e.next=16,d(o);case 16:setTimeout((function(){m(!1),f(0)}),p?1e3:0);case 17:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),r=function(e){(0,Td.getState().gameUtils.setSocketStatus)(e),ad("[MinesSocket] WebSocket status: ".concat(e))},c=function(e){ad("[MinesSocket] WebSocket error: ".concat(e.message))};if(m&&null!=d&&d.imUrl){var l=d.imUrl;ad("[MinesSocket] ä½¿ç¨ WebSocket URL:",l),Td.getState().game.setGameValue("gameId",t),dd.configure({token:n,gameId:t}),dd.connect(l),dd.addStatusHandler(r),dd.addErrorHandler(c);var h=dd.addMessageHandler((function(n){n.rsInitGamePayload?function(e){ad("[MinesSocket] éæ²åå§åæå:",e),dd.clearActionTimeoutPublic(sd.INIT_GAME);var n=Td.getState(),t=n.game,a=n.gameUtils,i=a.setRtpOddsSettingRef,r=a.setRequestStatus;e.rtpOddsSetting&&i(e.rtpOddsSetting);var o=t.minesCount;(0,t.setGameValue)("odds",e.rtpOddsSetting[o].odds),r(sd.INIT_GAME,cd.SUCCESS)}(n.rsInitGamePayload):n.rsStartPayload?function(e){ad("[MinesSocket] éæ²éå§:",e);var n=Td.getState().game,a=n.setGameValue,i=n.betAmount,r=n.resetBoxs,o=_d.getState(),c=o.handleStartBalance,s=o.setBalanceVisible;(0,Td.getState().gameUtils.setRequestStatus)(sd.START_GAME,cd.SUCCESS),f(t),c(i),setTimeout((function(){s(!1)}),1e3),r(),a({oddIndex:null,state:od.CASH_OUT,orderNo:e.orderNo,numeroNo:e.numeroNo})}(n.rsStartPayload):n.blocksPayload?function(e){ad("[MinesSocket] éç®±çµæ:",e),(0,Td.getState().gameUtils.setRequestStatus)(sd.PICK_BLOCK,cd.SUCCESS);var n=Td.getState().game,a=n.revealBox,i=n.minesBoxs,r=n.minesCount,o=Td.getState().ui.setEndGameDrawing;f(t),2===e.currentResult?(a(e.pickedBlock,ud.Bomb_Normal),p(),o(!0)):(o(25-(i.filter((function(e){return e.type===ud.Gem_Normal})).length+1)===r),a(e.pickedBlock,ud.Gem_Normal),g())}(n.blocksPayload):n.rsEndPayload?e(n.rsEndPayload):n.rsAutoEndPayload?function(e){ad("[MinesSocket] èªåéæ²çµæ:",e),f(t),(0,Td.getState().gameUtils.setRequestStatus)(sd.AUTO_GAME,cd.SUCCESS);var n,r,c,s,u,l,d,m,h,v=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n,t){var i,r,c,s,u,l,d,m,f,p,g;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Td.getState().auto,r=i.setIsAutoPlaying,c=i.startAutoGame,s=Td.getState().game,u=s.setGameValue,l=s.betAmount,d=Td.getState().ui.showWinPopup,m=_d.getState(),f=m.handleEndGameBalance,p=m.setBalanceVisible,g=m.setBalanceDifference,n&&(u("winAmount",t),d()),e.next=7,f(o);case 7:return setTimeout((function(){p(!1),g(0)}),800),e.next=10,(0,Fn.gw)(n?1e3:800);case 10:r(!1),u({orderNo:void 0,numeroNo:void 0}),Td.getState().game.state===od.STOP&&c(l);case 13:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),b=function(){var n=(0,i.Z)((0,a.Z)().mark((function n(){var t,i,r,o,c,s,u,l,d,m,f,h;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=Td.getState().auto.autoMinesBoxs,i=Td.getState().game,r=i.revealBox,o=i.updateMinesBoxsFromEndPayload,c=Td.getState().gameUtils.getAutoPlayingRef,s=t.map((function(e,n){return e.type===ud.Stone_Selected?n:-1})).filter((function(e){return-1!==e})),u=e.minesResult,l=e.chooseResult,d=e.winAmount,m=0;case 6:if(!(m<s.length&&c())){n.next=30;break}if(f=s[m],h="2"===u[f],r(f,h?ud.Bomb_Normal:ud.Gem_Normal),h?p():g(),!h){n.next=18;break}return n.next=14,(0,Fn.gw)(600);case 14:return o(u,l),n.next=17,v(!1,d);case 17:return n.abrupt("return");case 18:if(m!==s.length-1){n.next=25;break}return n.next=21,(0,Fn.gw)(800);case 21:return o(u,l),n.next=24,v(!0,d);case 24:return n.abrupt("return");case 25:return n.next=27,(0,Fn.gw)(600);case 27:m++,n.next=6;break;case 30:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n=Td.getState().ui.setShowAutoBetPopup,r=Td.getState().auto.setIsAutoPlaying,s=(c=Td.getState().game).setGameValue,u=c.resetBoxs,l=c.betAmount,m=(d=_d.getState()).handleStartBalance,h=d.setBalanceVisible,s({state:od.STOP,oddIndex:null,orderNo:e.orderNo,numeroNo:e.numeroNo}),m(l),setTimeout((function(){return h(!1)}),1e3),u(),n(!1),r(!0),b()}(n.rsAutoEndPayload):n.rsErrorPayload&&function(e){ad("[MinesSocket] éæ²é¯èª¤:",e);var n=Td.getState().ui.showError,t=Td.getState().gameUtils.setRequestStatus,a=e.code;switch(a){case"BALANCE_NOT_ENOUGH_ERROR":return o().then((function(e){var n=_d.get
1State(),t=n.setPrevBalance,a=n.setBalanceDifference;t(e.data.availBalance),a(0)})),void n({errorMessage:s(a)});case"TRAIL_NOT_SUPPORT":return dd.setShowConfirmError(!1),void(0,Td.getState().ui.setShowConfirmPopup)(!0,"TRAIL_NOT_SUPPORT");case"BETTING_AMOUNT_OVER_LIMITS_ERROR":return n({errorMessage:s("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:null==u?void 0:u.betAmountMax})}),t(sd.START_GAME,cd.IDLE),void t(sd.AUTO_GAME,cd.IDLE);default:n({errorMessage:s(a)})}}(n.rsErrorPayload)}));return function(){dd.removeStatusHandler(r),dd.removeErrorHandler(c),h(),dd.disconnect()}}ad("[MinesSocket] çå¾
WebSocket URL...")}),[t,n,d,m])}({token:(0,Fn.LP)(),gameId:T});var I={width:640*m,height:850*m,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(wo,{progress:u,children:(0,wt.jsxs)("div",{style:{width:640*m,height:850*m},ref:s,className:"mini-game-mines-game-scene",children:[(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},I),{},{children:(0,wt.jsxs)(sa.W2,{scale:m,sortableChildren:!0,children:[(0,wt.jsx)(sa.jy,{position:[0,52],width:640,height:630,texture:fa.P6Y.TextureCache["".concat(pd,"_bg")]}),(0,wt.jsx)(sa.jy,{position:[95,50],width:260,height:95,texture:fa.P6Y.TextureCache["".concat(pd,"_title")]}),(0,wt.jsx)(sa.jy,{position:[355,3],width:225,height:163,texture:fa.P6Y.TextureCache["".concat(pd,"_character")]}),(0,wt.jsx)(Iv,{}),!f&&(0,wt.jsx)(Qi,{position:[592,0],onClick:k}),(0,wt.jsx)(Tv,{}),(0,wt.jsx)(xv,{}),(0,wt.jsxs)(sa.W2,{position:[0,688],zIndex:2,children:[(0,wt.jsx)(nv,{position:[12,0],minesCount:_,onCountChange:function(e){w(e)},disabled:y===od.CASH_OUT||y===od.STOP}),(0,wt.jsx)(rv,{})]}),(0,wt.jsx)(dv,{}),(0,wt.jsx)(lv,{}),(0,wt.jsx)(wv,{})]})})),(0,wt.jsx)(Nv,{})]})})},Av="".concat("/mini-game/s1","/"),Rv=[{src:"".concat(Av,"sprite-sheet/ani_hand/ani_hand.json")},{src:"".concat(Av,"sprite-sheet/ani_stone_light/ani_stone_light.json")},{src:"".concat(Av,"sprite-sheet/ChickenRoad/gif_chicken_success.json")},{src:"".concat(Av,"sprite-sheet/ChickenRoad/gif_chicken_hit.json")},{src:"".concat(Av,"sprite-sheet/ChickenRoad/gif_chicken_shiver.json")}],Ov=[{src:t(80154),alias:["".concat(Pd,"_auto_normal")]},{src:t(2498),alias:["".concat(Pd,"_auto_disable")]},{src:t(10952),alias:["".concat(Pd,"_start_normal")]},{src:t(11263),alias:["".concat(Pd,"_start_disable")]},{src:t(31656),alias:["".concat(Pd,"_stop_normal")]},{src:t(91153),alias:["".concat(Pd,"_stop_disable")]},{src:t(2376),alias:["".concat(Pd,"_bet_normal")]},{src:t(70886),alias:["".concat(Pd,"_bet_disable")]},{src:t(50799),alias:["".concat(Pd,"_cancel_normal")]},{src:t(24504),alias:["".concat(Pd,"_cashout_normal")]},{src:t(23019),alias:["".concat(Pd,"_cashout_disable")]}],Mv=[{src:t(76060),alias:["".concat(Pd,"_bombCount_normal")]},{src:t(7318),alias:["".concat(Pd,"_bombCount_disable")]}],Zv=[{src:t(13053),alias:["".concat(Pd,"_bg_left")]},{src:t(61177),alias:["".concat(Pd,"_bg_center")]},{src:t(45045),alias:["".concat(Pd,"_bg_line")]},{src:t(773),alias:["".concat(Pd,"_bg_right")]},{src:t(66871),alias:["".concat(Pd,"_border")]},{src:t(79366),alias:["".concat(Pd,"_window_broken_background")]},{src:t(44429),alias:["".concat(Pd,"_chicken")]},{src:t(32784),alias:["".concat(Pd,"_chicken_scared")]},{src:t(82363),alias:["".concat(Pd,"_feather")]},{src:t(51886),alias:["".concat(Pd,"_winPop_normal")]},{src:t(43420),alias:["".concat(Pd,"_drain_cover_default")]},{src:t(58397),alias:["".concat(Pd,"_drain_cover_success")]},{src:t(43580),alias:["".concat(Pd,"_drain_cover_success_now")]},{src:t(57406),alias:["".concat(Pd,"_drain_cover_fail")]},{src:t(72996),alias:["".concat(Pd,"_drain_cover_next")]},{src:t(54573),alias:["".concat(Pd,"_roadblocks")]},{src:t(86726),alias:["".concat(Pd,"_progress_bar")]},{src:t(58942),alias:["".concat(Pd,"_stage_default")]},{src:t(11802),alias:["".concat(Pd,"_stage_pass")]},{src:t(76320),alias:["".concat(Pd,"_stage_loss")]},{src:t(26993),alias:["".concat(Pd,"_stage_next")]},{src:t(84010),alias:["".concat(Pd,"_selection_frame")]},{src:t(4549),alias:["".concat(Pd,"_location_icon")]},{src:t(36578),alias:["".concat(Pd,"_chicken_icon")]},{src:t(24619),alias:["".concat(Pd,"_finish_icon")]},{src:t(42998),alias:["".concat(Pd,"_trophy")]},{src:t(48461),alias:["".concat(Pd,"_car_blue")]},{src:t(71559),alias:["".concat(Pd,"_car_pink")]},{src:t(14534),alias:["".concat(Pd,"_car_yellow")]},{src:t(50954),alias:["".concat(Pd,"_car_green")]},{src:t(89505),alias:["".concat(Pd,"_auto_play_control_background")]},{src:t(19356),alias:["".concat(Pd,"_auto_play_control_long_background")]},{src:t(29200),alias:["".concat(Pd,"_auto_play_choosen_background")]},{src:t(99284),alias:["".concat(Pd,"_button_minus")]},{src:t(39204),alias:["".concat(Pd,"_button_plus")]},{src:t(41001),alias:["".concat(Pd,"_btn_green_background")]},{src:t(87886),alias:["".concat(Pd,"_time_circle")]},{src:t(74560),alias:["".concat(Pd,"_chicken_shadow")]}].concat(Mv,(0,u.Z)(Tl),Ov,(0,u.Z)(El),(0,u.Z)(Pl),Rv),Dv=(Ev={},(0,l.Z)(Ev,"".concat(Pd,"_bgm_chickenroad"),t(22507)),(0,l.Z)(Ev,"".concat(Pd,"_s_go"),t(20134)),(0,l.Z)(Ev,"".concat(Pd,"_s_chicken_happy"),t(42509)),(0,l.Z)(Ev,"".concat(Pd,"_s_horsedown"),t(83950)),(0,l.Z)(Ev,"".concat(Pd,"_s_car_bump"),t(92104)),(0,l.Z)(Ev,"".concat(Pd,"_s_chicken_bump"),t(592)),Ev),Lv=function(e){return e.BET="bet",e.CASH_OUT="cash_out",e.STOP="stop",e}({}),Gv=function(e){return e.IDLE="idle",e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e}({}),Wv=function(e){return e.INIT_GAME="init_game",e.START_GAME="start_game",e.PICK_BLOCK="pick_block",e.CASH_OUT="cash_out",e.AUTO_GAME="auto_game",e}({}),Uv=function(e){return e[e.Stone_Normal=1]="Stone_Normal",e[e.Stone_Selected=2]="Stone_Selected",e[e.Stone_Broken=3]="Stone_Broken",e[e.Gem_Normal=4]="Gem_Normal",e[e.Gem_Disable=5]="Gem_Disable",e[e.Bomb_Normal=6]="Bomb_Normal",e[e.Bomb_Disable=7]="Bomb_Disable",e}({}),qv=function(e){return Array.from({length:e},(function(){return{type:Uv.Stone_Normal}}))},zv=function(e,n){return{game:{level:3,totalStage:Sd,gameId:0,chickenRoadBoxes:qv(Sd),pickedBlock:0,pickedBlocks:0,state:Lv.BET,odds:[],oddIndex:null,orderNo:"",numeroNo:"",winAmount:"0",betAmount:0,autoTimes:1,rtpOddsSetting:{},setRtpOddsSetting:function(n){return e((function(e){e.game.rtpOddsSetting=n}))},initGame:function(e){var t=n().game.gameId;(0,n().gameUtils.setRequestStatus)(Wv.INIT_GAME,Gv.PENDING),ib.sendRequest({gameId:t,orderNo:"",rqInitGamePayload:{roomId:"".concat(t,"_").concat(e)}})},startGame:function(e){var t=n().game,a=t.gameId,i=t.orderNo,r=t.level,o=t.setGameValue,c=n().gameUtils.setRequestStatus,s=n().ui,u=s.setIsChickenHit,l=s.resetCountdown;c(Wv.START_GAME,Gv.PENDING),l(),o("betAmount",e),u(!1),ib.sendRequest({gameId:a,orderNo:i,rqStartPayload:{crgNums:r,betAmount:"".concat(e),playId:3125,device:dt()()?"MOBILE":"WEB"}})},resetBoxs:function(){return e((function(e){e.game.chickenRoadBoxes=qv(e.game.totalStage)}))},handleBet:function(e){var t=n().game,a=t.gameId,i=t.state,r=t.orderNo,o=n().gameUtils.setRequestStatus;i!==Lv.BET&&(o(Wv.PICK_BLOCK,Gv.PENDING),n().ui.resetCountdown(),ib.sendRequest({gameId:a,orderNo:r,pickBlockPayload:{pickedBlock:e}}))},handleCashout:function(){var e=n().game,t=e.gameId,a=e.orderNo;(0,n().gameUtils.setRequestStatus)(Wv.CASH_OUT,Gv.PENDING),n().ui.resetCountdown(),ib.sendRequest({gameId:t,orderNo:a,rqEndPayload:{}})},revealBox:function(n,t){t===Uv.Bomb_Normal?e((function(e){e.game.chickenRoadBoxes[n].type=t})):e((function(e){e.game.chickenRoadBoxes[n].type=t,e.game.oddIndex=null===e.game.oddIndex?0:e.game.oddIndex+1}))},updateChickenRoadBoxsFromEndPayload:function(n,t){var a=n.length;if(a!==t.length)return id("[ChickenRoadStore] crgResult è chooseResult é·åº¦ä¸ä¸è´");e((function(e){for(var i=0;i<a;i++)if(e.game.chickenRoadBoxes[i]){var r="2"===n[i],o="2"===t[i];e.game.chickenRoadBoxes[i].type=r?o?Uv.Bomb_Normal:Uv.Bomb_Disable:o?Uv.Gem_Normal:Uv.Gem_Disable}}))},incrementOddIndex:function(){return e((function(e){e.game.oddIndex=null===e.game.oddIndex?0:e.game.oddIndex+1}))},handleWinAnimationComplete:function(){var e=n(),t=e.game,a=e.auto,i=e.ui,r=i.setIsShowWinModal,o=i.setIsEndGameDrawing;r(!1),o(!1),a.isAutoPlaying||t.setGameValue("state",Lv.BET)},setGameValue:function(n,t){return e((function(e){"object"==typeof n?Object.entries(n).forEac
1h((function(n){var t=(0,ot.Z)(n,2),a=t[0],i=t[1];e.game[a]=i})):void 0!==t&&(e.game[n]=t)}))},resetGame:function(){return e((function(e){e.game.chickenRoadBoxes=qv(Sd),e.game.level=3,e.game.totalStage=Sd,e.game.pickedBlock=0,e.game.state=Lv.BET,e.game.odds=[],e.game.oddIndex=null,e.game.orderNo="",e.game.winAmount="0",e.game.betAmount=0}))}}}},Fv=function(e,n){return{ui:{isShowWinModal:!1,isShowAutoBetModal:!1,isChickenMoving:!1,isViewportAnimating:!1,isShowConfirmModal:!1,confirmMsgKey:"",isErrorVisible:!1,errorMessage:"",isEndGameDrawing:!1,isChickenHit:!1,countdownResetTick:0,setIsEndGameDrawing:function(n){return e((function(e){e.ui.isEndGameDrawing=n}))},setIsShowConfirmModal:function(n,t){return e((function(e){e.ui.isShowConfirmModal=n,e.ui.confirmMsgKey=t}))},setIsShowWinModal:function(n){return e((function(e){e.ui.isShowWinModal=n}))},setIsShowAutoBetModal:function(n){return e((function(e){e.ui.isShowAutoBetModal=n}))},setIsChickenMoving:function(n){return e((function(e){e.ui.isChickenMoving=n}))},setIsViewportAnimating:function(n){return e((function(e){e.ui.isViewportAnimating=n}))},setIsChickenHit:function(n){return e((function(e){e.ui.isChickenHit=n}))},resetCountdown:function(){ib.sendHeartbeat(),e((function(e){e.ui.countdownResetTick+=1}))},hideError:function(){return e((function(e){e.ui.isErrorVisible=!1,e.ui.errorMessage=""}))},showError:function(n){return e((function(e){e.ui.isErrorVisible=!0,e.ui.errorMessage=n.errorMessage}))},resetUI:function(){return e((function(e){e.ui.isShowWinModal=!1,e.ui.isShowAutoBetModal=!1,e.ui.isChickenMoving=!1,e.ui.isViewportAnimating=!1,e.ui.isShowConfirmModal=!1,e.ui.confirmMsgKey="",e.ui.isChickenHit=!1}))}}}},Vv=function(e,n){var t;return{gameUtils:{socketStatus:"disconnected",requestStatusMap:(t={},(0,l.Z)(t,Wv.INIT_GAME,Gv.IDLE),(0,l.Z)(t,Wv.START_GAME,Gv.IDLE),(0,l.Z)(t,Wv.PICK_BLOCK,Gv.IDLE),(0,l.Z)(t,Wv.CASH_OUT,Gv.IDLE),(0,l.Z)(t,Wv.AUTO_GAME,Gv.IDLE),t),setRequestStatus:function(n,t){return e((function(e){e.gameUtils.requestStatusMap[n]=t}))},isAnyPending:function(){var e=n().gameUtils.requestStatusMap;return Object.values(e).some((function(e){return e===Gv.PENDING}))},setSocketStatus:function(n){e((function(e){e.gameUtils.socketStatus=n}))},checkBalanceEnough:function(e){var t=Yv.getState().prevBalance,a=(0,Fn.i0)("containers.GamesPanel.");return!(t&&t<e&&((0,n().ui.showError)({errorMessage:a("BALANCE_NOT_ENOUGH_ERROR")}),1))},resetAllState:function(){n().game.resetGame(),n().auto.resetAuto(),n().ui.resetUI(),e((function(e){var n;e.gameUtils.socketStatus="disconnected",e.gameUtils.requestStatusMap=(n={},(0,l.Z)(n,Wv.INIT_GAME,Gv.IDLE),(0,l.Z)(n,Wv.START_GAME,Gv.IDLE),(0,l.Z)(n,Wv.PICK_BLOCK,Gv.IDLE),(0,l.Z)(n,Wv.CASH_OUT,Gv.IDLE),(0,l.Z)(n,Wv.AUTO_GAME,Gv.IDLE),n)}))}}}},Hv=function(e,n){return{auto:{isAutoPlaying:!1,shouldStopAuto:!1,setIsAutoPlaying:function(n){e((function(e){e.auto.isAutoPlaying=n}))},setShouldStopAuto:function(n){e((function(e){e.auto.shouldStopAuto=n}))},startAutoGame:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var i,r,o,c,s,u,l,d,m,f;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.betAmount,r=t.pickedBlocks,o=n().game,c=o.gameId,s=o.level,u=o.setGameValue,l=n().gameUtils,d=l.requestStatusMap,m=l.setRequestStatus,f=Array.from({length:r+1},(function(e,n){return n})).join("-"),d[Wv.AUTO_GAME]!==Gv.PENDING){e.next=6;break}return e.abrupt("return");case 6:m(Wv.AUTO_GAME,Gv.PENDING),u({betAmount:i,pickedBlocks:r}),n().ui.resetCountdown(),ib.sendRequest({gameId:c,orderNo:"",rqAutoPickBlockPayload:{crgNums:s,pickedBlocks:f,betAmount:"".concat(i),playId:3125,device:dt()()?"MOBILE":"WEB"}});case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),resetAuto:function(){e((function(e){e.auto.isAutoPlaying=!1,e.auto.shouldStopAuto=!1}))}}};var t},Yv=xd(),Xv=yd(),Kv=(0,ta.Ue)()((0,na.n)((function(){return(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},zv.apply(void 0,arguments)),Hv.apply(void 0,arguments)),Fv.apply(void 0,arguments)),Vv.apply(void 0,arguments))}))),Qv=function(){function e(){(0,Vn.Z)(this,e),this.requestType=$l.com.tcg.ws_game_server_21.crg.CrgWsRq,this.responseType=$l.com.tcg.ws_game_server_21.crg.CrgWsRs,this.baseType=$l.com.tcg.ws_game_server_21.GameBaseWs,this.anyType=$l.google.protobuf.Any}return(0,Hn.Z)(e,[{key:"getRequestType",value:function(){return this.requestType}},{key:"getResponseType",value:function(){return this.responseType}},{key:"encodeRequest",value:function(e){var n=e.orderNo,t=void 0===n?"":n,a=this.getRequestType(),i=a.verify(e);if(i)throw new Error("è«æ±æ¸æç¡æ: ".concat(i));var r=a.create(e),o=a.encode(r).finish(),c=this.anyType.create({type_url:"type.googleapis.com/com.tcg.ws_game_server_21.crg.CrgWsRq",value:o}),s=this.baseType.create({gameCode:"MINICRG",orderNo:t,payload:c});return this.baseType.encode(s).finish()}},{key:"decodeResponse",value:function(e){var n=this.baseType.decode(e);if(n.payload&&n.payload.value){var t=n.payload.value;return this.getResponseType().decode(t)}throw new Error("ç¡æçåææ ¼å¼ï¼ç¼ºå° payload")}},{key:"validateRequest",value:function(e){return this.getRequestType().verify(e)||null}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();Qv.instance=null;var Jv=Qv.getInstance(),$v=function(){function e(){var n=this;(0,Vn.Z)(this,e),this.eventListeners=new Map,this.ws=null,this.status="disconnected",this.options=void 0,this.reconnectTimer=null,this.reconnectAttempts=0,this.connectionTimeout=null,this.heartbeatInterval=null,this.messageTimeout=null,this.actionTimeouts=new Map,this.connectUrl=null,this.connectPath="ws-game",this.currentGame="crg",this.showConfirmError=!0,this.connect=function(e){n.connectUrl=e,n.disconnect();try{var t=n.options.token,a=n.options.gameId;if(!t){var i=new Error("缺å°å¿
è¦åæ¸: token");return n.emit("error",i),n.setStatus("error"),id("[ChickenRoadSocket] 飿¥å¤±æ:",i.message),n}if(!a){var r=new Error("缺å°å¿
è¦åæ¸: gameId");return n.emit("error",r),n.setStatus("error"),id("[ChickenRoadSocket] 飿¥å¤±æ:",r.message),n}n.setStatus("connecting");var o="".concat(n.connectUrl,"/").concat(n.connectPath,"/").concat(n.currentGame,"?token=").concat(encodeURIComponent(t),"&gameId=").concat(a);ad("[ChickenRoadSocketService] åè©¦é£æ¥ ".concat(o)),n.ws=new WebSocket(o),n.connectionTimeout=setTimeout((function(){var e,t;(null===(e=n.ws)||void 0===e?void 0:e.readyState)!==WebSocket.OPEN&&(rd("[ChickenRoadSocketService] 飿¥è¶
æ"),null===(t=n.ws)||void 0===t||t.close(),n.setStatus("error"),n.emit("error",new Error("WebSocket 飿¥è¶
æ")))}),n.options.connectionTimeout),n.ws.onopen=n.handleOpen.bind(n),n.ws.onclose
1=n.handleClose.bind(n),n.ws.onerror=n.handleError.bind(n),n.ws.onmessage=n.handleMessage.bind(n)}catch(e){var c=e instanceof Error?e:new Error("å»ºç« WebSocket 飿¥å¤±æ");n.emit("error",c),n.setStatus("error")}return n},this.options={gameId:0,token:null,autoReconnect:!1,reconnectInterval:3e3,maxReconnectAttempts:2,connectionTimeout:1e4}}return(0,Hn.Z)(e,[{key:"setShowConfirmError",value:function(e){this.showConfirmError=e}},{key:"getShowConfirmError",value:function(){return this.showConfirmError}},{key:"on",value:function(e,n){var t=this;return this.eventListeners.has(e)||this.eventListeners.set(e,[]),this.eventListeners.get(e).push(n),function(){return t.off(e,n)}}},{key:"off",value:function(e,n){if(this.eventListeners.has(e)){var t=this.eventListeners.get(e),a=t.indexOf(n);-1!==a&&t.splice(a,1)}}},{key:"once",value:function(e,n){var t=this;return this.on(e,(function a(i){n(i),t.off(e,a)}))}},{key:"emit",value:function(e,n){this.eventListeners.has(e)&&this.eventListeners.get(e).forEach((function(t){try{t(n)}catch(n){id("[ChickenRoadSocket] äºä»¶èçå¨é¯èª¤: ".concat(e),n)}}))}},{key:"configure",value:function(e){return this.options=(0,d.Z)((0,d.Z)({},this.options),e),this}},{key:"disconnect",value:function(){if(this.clearTimeouts(),this.showConfirmError=!0,this.ws){try{var e=this.ws;e.onclose=null,e.close(1e3,"ç¨æ¶ä¸»åæ·é飿¥")}catch(e){console.warn("[ChickenRoadSocket] éé飿¥åºé¯:",e)}this.ws=null}return this.setStatus("disconnected"),this.eventListeners.clear(),this}},{key:"sendRequest",value:function(e){if(ad("[ChickenRoadSocketService] ç¼éè«æ±:",e),!this.isConnected())return this.emit("error",new Error("WebSocket æªé£æ¥ï¼ç¡æ³ç¼éæ¸æ")),!1;try{var n=Jv.encodeRequest(e);return this.ws.send(n),e.heartbeatPayLoad?this.clearMessaheTimeout():e.rqInitGamePayload?this.setActionTimeout(Wv.INIT_GAME,(function(){(0,Kv.getState().ui.setIsShowConfirmModal)(!0,"SYSTEM_TIME_OUT"),ad("[ChickenRoadSocketService] INIT_GAME è¶
æ (10ç§)")}),1e4):e.rqStartPayload||e.pickBlockPayload||e.rqEndPayload||e.rqAutoPickBlockPayload||(this.clearMessaheTimeout(),this.messageTimeout=setTimeout((function(){(0,Kv.getState().ui.showError)({errorMessage:"MessageTimeout"})}),3e3)),!0}catch(e){var t=e instanceof Error?e:new Error("ç¼éæ¶æ¯å¤±æ");return this.emit("error",t),!1}}},{key:"clearMessaheTimeout",value:function(){this.messageTimeout&&clearTimeout(this.messageTimeout),this.messageTimeout=null}},{key:"setActionTimeout",value:function(e,n,t){this.clearActionTimeout(e);var a=setTimeout(n,t);this.actionTimeouts.set(e,a)}},{key:"clearActionTimeout",value:function(e){var n=this.actionTimeouts.get(e);n&&(clearTimeout(n),this.actionTimeouts.delete(e))}},{key:"clearAllActionTimeouts",value:function(){this.actionTimeouts.forEach((function(e){return clearTimeout(e)})),this.actionTimeouts.clear()}},{key:"clearActionTimeoutPublic",value:function(e){this.clearActionTimeout(e)}},{key:"sendHeartbeat",value:function(){return this.sendRequest({heartbeatPayLoad:{}})}},{key:"getStatus",value:function(){return this.status}},{key:"isConnected",value:function(){return null!==this.ws&&this.ws.readyState===WebSocket.OPEN}},{key:"addMessageHandler",value:function(e){var n=this;return this.on("message",(function(t){return n.clearMessaheTimeout(),e(t)}))}},{key:"addErrorHandler",value:function(e){return this.on("error",e)}},{key:"addStatusHandler",value:function(e){return this.on("statusChange",e)}},{key:"removeMessageHandler",value:function(e){this.off("message",e)}},{key:"removeErrorHandler",value:function(e){this.off("error",e)}},{key:"removeStatusHandler",value:function(e){this.off("statusChange",e)}},{key:"setStatus",value:function(e){this.status=e,this.emit("statusChange",e)}},{key:"clearTimeouts",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.clearAllActionTimeouts()}},{key:"handleOpen",value:function(){this.clearTimeouts(),this.reconnectAttempts=0,this.setStatus("connected"),ad("[ChickenRoadSocketService] 飿¥æå建ç«"),this.emit
1("open",void 0)}},{key:"handleClose",value:function(e){var n=this;if(this.clearTimeouts(),this.setStatus("disconnected"),ad("[ChickenRoadSocketService] 飿¥éé (代碼: ".concat(e.code,", åå : ").concat(e.reason||"æªæä¾",")")),this.emit("close",e),this.showConfirmError&&(0,Kv.getState().ui.setIsShowConfirmModal)(!0,"TOKEN_TIME_OUT"),this.options.autoReconnect)if(this.reconnectAttempts<this.options.maxReconnectAttempts){var t=this.options.reconnectInterval*Math.pow(1.5,this.reconnectAttempts);this.reconnectAttempts++,ad("[ChickenRoadSocketService] å試éé£ ".concat(this.reconnectAttempts,"/").concat(this.options.maxReconnectAttempts," (").concat(t,"ms å¾)")),this.setStatus("reconnecting"),this.reconnectTimer=setTimeout((function(){n.reconnectTimer=null,n.connectUrl&&n.connectPath&&n.connect(n.connectUrl)}),t)}else id("[ChickenRoadSocket] é尿大éé£åè©¦æ¬¡æ¸ (".concat(this.options.maxReconnectAttempts,")")),this.setStatus("error"),this.emit("error",new Error("ç¡æ³é£æ¥å°ä¼ºæå¨ï¼å·²å試 ".concat(this.options.maxReconnectAttempts," 次")))}},{key:"handleError",value:function(e){id("[ChickenRoadSocket] ç¼çé¯èª¤",e),this.setStatus("error"),this.emit("error",new Error("WebSocket 飿¥é¯èª¤"))}},{key:"handleMessage",value:function(e){var n=this;try{if(e.data instanceof Blob){var t=new FileReader;t.onload=function(){try{if(t.result instanceof ArrayBuffer){var e=new Uint8Array(t.result),a=Jv.decodeResponse(e);n.emit("message",a)}}catch(e){id("[ChickenRoadSocket] è§£æåæå¤±æ:",e),n.emit("error",new Error("è§£æä¼ºæå¨åæå¤±æ"))}},t.onerror=function(){n.emit("error",new Error("è®åäºé²å¶æ¸æå¤±æ"))},t.readAsArrayBuffer(e.data)}}catch(e){id("[ChickenRoadSocket] èçæ¶æ¯é¯èª¤:",e),this.emit("error",new Error("èçæå卿¶æ¯å¤±æ"))}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();$v.instance=null;var eb,nb,tb,ab,ib=$v.getInstance(),rb=function(e){var n=e.token,t=e.gameId,o=(0,zn.De)().refetch,s=(0,Fn.he)("containers.GamesPanel."),u=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(t)).data,l=(0,zn.Yy)(),d=l.data,m=l.isSuccess,f=Dt().setLastGame,p=(0,r.useRef)(0),g=(0,r.useRef)(!1);(0,r.useEffect)((function(){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t,i,r,c,s,u,l,d,m,f,p;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ad("[ChickenRoadSocket] éæ²çµæ:",n),t=n.winAmount,i=Kv.getState().game,r=i.updateChickenRoadBoxsFromEndPayload,c=i.setGameValue,s=Kv.getState().ui.setIsEndGameDrawing,u=Kv.getState().gameUtils.setRequestStatus,l=Yv.getState(),d=l.handleEndGameBalance,m=l.setBalanceVisible,f=l.setBalanceDifference,u(Wv.CASH_OUT,Gv.SUCCESS),s(!0),p=Number(t)>0,e.next=11,(0,Fn.gw)(p?0:3500);case 11:return r(n.crgResult,n.chooseResult),(0,Kv.getState().game.resetBoxs)(),c({state:Lv.BET,orderNo:"",numeroNo:"",winAmount:t,pickedBlock:0}),p?Kv.getState().ui.setIsShowWinModal(!0):s(!1),e.next=18,d(o);case 18:setTimeout((function(){m(!1),f(0)}),p?Ld:0);case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),r=function(e){(0,Kv.getState().gameUtils.setSocketStatus)(e),ad("[ChickenRoadSocket] WebSocket status: ".concat(e))},c=function(e){ad("[ChickenRoadSocket] WebSocket error: ".concat(e.message))};if(m&&null!=d&&d.imUrl){var l=d.imUrl;ad("[ChickenRoadSocket] ä½¿ç¨ WebSocket URL:",l),Kv.getState().game.setGameValue("gameId",t),ib.configure({token:n,gameId:t}),ib.connect(l),ib.addStatusHandler(r),ib.addErrorHandler(c);var h=ib.addMessageHandler((function(n){n.rsInitGamePayload?function(e){ad("[ChickenRoadSocket] éæ²åå§åæå:",e),ib.clearActionTimeoutPublic(Wv.INIT_GAME);var n=Kv.getState(),t=n.game,a=n.gameUtils,i=t.setGameValue,r=t.setRtpOddsSetting,o=a.setRequestStatus;e.rtpOddsSetting&&r(e.rtpOddsSetting);var c=t.level;i("odds",e.rtpOddsSetting[c].odds),o(Wv.INIT_GAME,Gv.SUCCESS)}(n.rsInitGamePayload):n.rsStartPayload?function(e){ad("[ChickenRoadSocket] éæ²éå§:",e);var n=Kv.getState().game,a=n.setGameValue,i=n.betAmount,r=n.resetBoxs,o=Yv.getState(),c=o.handleStartBalance,s=o.setBalanceVisible;(0,Kv.getState().gameUtils.setRequestStatus)(Wv.START_GAME,Gv.SUCCESS),f(t),c(i),setTimeout((function(){s(!1)}),Ld),r(),a({oddIndex:null,state:Lv.CASH_OUT,orderNo:e.orderNo,numeroNo:e.numeroNo,pickedBlock:0})}(n.rsStartPayload):n.blocksPayload?function(e){ad("[ChickenRoadSocket] éç®±çµæ:",e),(0,Kv.getState().gameUtils.setRequestStatus)(Wv.PICK_BLOCK,Gv.SUCCESS);var n=Kv.getState().game,a=n.revealBox,i=n.totalStage,r=Kv.getState().ui.setIsEndGameDrawing;if(f(t),2===e.currentResult)a(e.pickedBlock,Uv.Bomb_Normal),r(!0);else{var o=Kv.getState().game.chickenRoadBoxes.filter((function(e){return e.type===Uv.Gem_Normal})).length+1===i;r(o),a(e.pickedBlock,Uv.Gem_Normal),o&&setTimeout((function(){Kv.getState().game.handleCashout()}),Zd)}}(n.blocksPayload):n.rsEndPayload?e(n.rsEndPayload):n.rsAutoEndPayload?function(e){if(ad("[ChickenRoadSocket] èªåéæ²çµæ:",e),g.current)return ad("[ChickenRoadSocket] æ£å¨èçèªåææ³¨ï¼å¿½ç¥æ°ç handleAutoGameEnd 調ç¨");g.current=!0,f(t),(0,Kv.getState().gameUtils.setRequestStatus)(Wv.AUTO_GAME,Gv.SUCCESS);var n,r,c,s,u,l,d,m,h,v,b,x,y=function(){var n=(0,i.Z)((0,a.Z)().mark((function n(){var t,i,r,o,c,s,u,l,d,m,f,p;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=Kv.getState().game,i=t.setGameValue,r=t.resetBoxs,o=Kv.getState().ui,c=o.setIsChickenHit,s=o.setIsShowWinModal,u=o.setIsEndGameDrawing,l=Kv.getState().auto.setIsAutoPlaying,d=Yv.getState(),m=d.handleStartBalance,f=d.setBalanceVisible,p=Kv.getState().game.betAmount,s(!1),u(!1),l(!0),r(),i({state:Lv.BET,oddIndex:null,pickedBlock:0,winAmount:"0",orderNo:e.orderNo,numeroNo:e.numeroNo}),c(!1),n.next=13,new Promise((function(e){return requestAnimationFrame(e)}));case 13:return i({state:Lv.STOP}),n.next=16,(0,Fn.gw)(Zd);case 16:m(p),setTimeout((function(){return f(!1)}),Ld);case 18:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),_=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n,t){var i,r,c,s,u,l,d,m,f,h,v,b,x,y,_,w,T,k,I;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Kv.getState().auto,r=i.setIsAutoPlaying,c=i.startAutoGame,s=i.shouldStopAuto,u=i.setShouldStopAuto,l=Kv.getState().game,d=l.setGameValue,m=l.betAmount,f=l.pickedBlocks,h=l.autoTimes,v=l.state,b=l.resetBoxs,x=Kv.getState().ui,y=x.setIsShowWinModal,_=x.setIsChickenHit,w=Yv.getState(),T=w.handleEndGameBalance,k=w.setBalanceVisible,I=w.setBalanceDifference,n&&(d({winAmount:t,oddIndex:f}),y(!0)),e.next=7,T(o);case 7:return setTimeout((function(){k(!1),I(0)}),800),e.next=10,(0,Fn.gw)(n?1e3:0);case 10:if(n&&y(!1),r(!1),d({orderNo:void 0,numeroNo:void 0}),p.current++,g.current=!1,!s){e.next=22;break}return u(!1),b(),d({state:Lv.BET,pickedBlock:0,oddIndex:null}),_(!1),p.current=0,e.abrupt("return");case 22:v===Lv.STOP&&(-1===h||p.current<h)?c({betAmount:m,pickedBlocks:f}):p.current>=h&&(b(),d({state:Lv.BET,pickedBlock:0,oddIndex:null}),_(!1),p.current=0);case 23:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),w=function(){var n=(0,i.Z)((0,a.Z)().mark((function n(){var t,i,r,o,c,s,u,l,d,m,f;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(t=Kv.getState().game,i=t.revealBox,r=t.setGameValue,o=e.crgResult,c=e.chooseResult,s=e.winAmount,u=[],l=0;l<c.length;l++)"2"===c[l]&&u.push(l);d=0;case 5:if(!(d<u.length&&Kv.getState().auto.isAutoPlaying)){n.next=26;break}return m=u[d],f="2"===o[m],Kd(),r("pickedBlock",d+1),n.next=12,(0,Fn.gw)(150);case 12:return i(m,f?Uv.Bomb_Normal:Uv.Gem_Normal),n.next=15,(0,Fn.gw)(150);case 15:if(!f){n.next=21;break}return n.next=18,(0,Fn.gw)(2e3);case 18:return n.next=20,_(!1,s);case 20:return n.abrupt("return");case 21:return n.next=23,(0,Fn.gw)(50);case 23:d++,n.next=5;break;case 26:return n.next=28,(0,Fn.gw)(150);case 28:return n.next=30,_(!0,s);case 30:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();Kv.getState().game.state!==Lv.STOP?(r=(n=Kv.getState().ui).setIsShowAutoBetModal,c=n.setIsChickenHit,s=Kv.getState().auto.setIsAutoPlaying,l=(u=Kv.getState().game).setGameValue,d=u.resetBoxs,m=u.betAmount,h=u.state,b=(v=Yv.getState()).handleStartBalance,x=v.setBalanceVisible,h!==Lv.STOP&&(p.current=0),d(),l({state:Lv.STOP,oddIndex:null,pickedBlock:0,orderNo:e.orderNo,numeroNo:e.numeroNo}),c(!1),b(m),setTimeout((function(){return x(!1)}),Ld),r(!1),s(!0),w()):y().then((function(){w()}))}(n.rsAutoEndPayload):n.rsErrorPayload&&function(e){ad("[ChickenRoadSocket] éæ²é¯èª¤:",e);var n=Kv.getState().ui.showError,t=Kv.getState().gameUtils.setRequestStatus,a=e.code;switch(t(Wv.INIT_GAME,Gv.ERROR),t(Wv.START_GAME,Gv.ERROR),t(Wv.PICK_BLOCK,Gv.ERROR),t(Wv.CASH_OUT,Gv.ERROR),t(Wv.AUTO_GAME,Gv.ERROR),a){case"BALANCE_NOT_ENOUGH_ERROR":var i=Kv.getState().game,r=i.resetBoxs,c=i.setGameValue,l=Kv.getState().ui,d=l.setIsChickenHit,m=l.setIsEndGameDrawing,f=Kv.getState().auto,h=f.setIsAutoPlaying,v=f.setShouldStopAuto;r(),c({state:Lv.BET,pickedBlock:0,oddIndex:null}),d(!1),m(!1),h(!1),v(!1),t(Wv.INIT_GAME,Gv.SUCCESS),p.current=0,g.current=!1,o().then((function(e){var n=Yv.getState(),t=n.setPrevBalance,a=n.setBalanceDifference;t(e.data.availBalance),a(0)})),n({errorMessage:s(a)});break;case"TRAIL_NOT_SUPPORT":ib.setShowConfirmError(!1),(0,Kv.getState().ui.setIsShowConfirmModal)(!0,"TRAIL_NOT_SUPPORT");break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":n({errorMessage:s("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:null==u?void 0:u.betAmountMax})}),t(Wv.INIT_GAME,Gv.SUCCESS),t(Wv.START_GAME,Gv.IDLE),t(Wv.AUTO_GAME,Gv.IDLE);break;default:n({errorMessage:s(a)})}}(n.rsErrorPayload)}));return function(){ib.removeStatusHandler(r),ib.removeErrorHandler(c),h(),ib.disconnect()}}ad("[ChickenRoadSocket] çå¾
WebSocket URL...")}),[t,n,d,m])},ob=function(e){var n=e.position,t=void 0===n?[31,17]:n,a=(0,Ft.$)().t,i=Xv(),r=i.activePanel,o=i.togglePanel,c=Kv((function(e){return e.auto.isAutoPlaying})),s=Kv((function(e){return e.gameUtils.requestStatusMap[Wv.AUTO_GAME]===Gv.PENDING})),u=function(e){"betHistory"!==e||!c&&!s?(Ea.eq&&Ea.eq.play("".concat(jd,"_s_button_01"),{volume:1}),Kv.getState().ui.resetCountdown(),o(e)):Kv.getState().ui.showError({errorMessage:a("containers.GamesPanel.AUTO_PLAY_NOT_ALLOW_CLICK_HISTORY")})};return(0,wt.jsxs)(sa.W2,{position:t,children:[(0,wt.jsx)(Sm,{onClick:function(){return u("intro")},visible:"intro"===r}),(0,wt.jsx)(Am,{position:[48,0],onClick:function(){return u("betHistory")},visible:"betHistory"===r}),(0,wt.jsx)(Em,{position:[96,0]})]})},cb=function(){var e=aa().isCloseIconTop,n=Ji(!1).closeGamePanel;return(0,wt.jsxs)(sa.W2,{zIndex:3,children:[(0,wt.jsx)(ob,{position:[31,40]}),!e&&(0,wt.jsx)(Qi,{position:[592,40],onClick:n})]})},sb=function(){var e=Kv((function(e){return e.game.numeroNo})),n=(0,zn.De)().refetch,t=Yv((function(e){return e.prevBalance})),a=Yv((function(e){return e.setPrevBalance})),i=Yv((function(e){return e.balanceDifference})),o=Yv((function(e){return e.balanceVisible})),c=null===t?"Loading...":(0,Fn.mT)(t),s=e?"No.".concat(e):"";return(0,r.useEffect)((function(){n().then((function(e){if(e.data){var n=e.data.availBalance;a(n)}}))}),[]),(0,wt.jsx)(_v,{position:[0,83],balanceText:c,numero:s,balanceVisible:o,balanceDif:"".concat(i>0?"+":"-").concat((0,Fn.mT)(Math.abs(i))),balanceDifColor:i>0?"#fae124":"#86141a"})},ub=function(e){var n=e.viewportBlock,t=Kv((function(e){return e.game.totalStage})),a=Kv((function(e){return e.game.state})),i=Yd/(t+1),o=4*i,c=Hd+i*Math.max(0,n-1)-i/2,s=(0,r.useState)(0),u=(0,ot.Z)(s,2),l=u[0],d=u[1],m=(0,r.useRef)(0);return(0,r.useEffect)((function(){m.current=c}),[c]),(0,r.useEffect)((function(){a===Lv.BET&&d(m.current)}),[a]),(0,sa.m9)((function(e){d((function(n){var t=m.current,a=t-n;return Math.abs(a)<.5?t:n+5*a*(e/60)}))})),(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_selection_frame")],position:[l,15],anchor:[0,.5],width:o,height:55})},lb=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.pickedBlock})),t=Kv((function(e){return e.game.state})),a=Yd/(e+1),i=(0,r.useState)(Hd),o=(0,ot.Z)(i,2),c=o[0],s=o[1],u=(0,r.useRef)(Hd);return(0,r.useEffect)((function(){u.current=Hd+a*n}),[n,a]),(0,r.useEffect)((function(){t===Lv.BET&&(u.current=Hd)}),[t]),(0,sa.m9)((function(e){s((function(n){var t=u.current,a=t-n;return Math.abs(a)<.5?t:n+5*a*(e/60)}))})),(0,wt.jsxs)(sa.W2,{position:[c,0],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_location_icon")],position:[0,-19.5],anchor:[.5,.5],width:25.7,height:28.5}),(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_chicken_icon")],position:[0,6],anchor:[.5,.5],width:22,height:25.7})]})},db=function(e){var n=e.setViewportBlock,t=Kv((function(e){return e.game.totalStage})),a=Yd/(t+1),i=Kv((function(e){return e.game.chickenRoadBoxes})),o=Kv((function(e){return e.game.state})),c=Kv((function(e){return e.game.pickedBlock})),s=Kv((function(e){return e.auto.isAutoPlaying})),u=(0,r.useState)(i),l=(0,ot.Z)(u,2),d=l[0],m=l[1],f=(0,r.useRef)(null),p=function(e){var n;if(o===Lv.BET)return fa.P6Y.TextureCache["".concat(Pd,"_stage_default")];var t=null===(n=d[e])||void 0===n?void 0:n.type;return t===Uv.Gem_Normal||t===Uv.Gem_Disable?fa.P6Y.TextureCache["".concat(Pd,"_stage_pass")]:t===Uv.Bomb_Normal||t===Uv.Bomb_Disable?fa.P6Y.TextureCache["".concat(Pd,"_stage_loss")]:e===d.filter((function(e){return e.type===Uv.Gem_Normal||e.type===Uv.Gem_Disable})).length?fa.P6Y.TextureCache["".concat(Pd,"_stage_next")]:fa.P6Y.TextureCache["".concat(Pd,"_stage_default")]};return(0,r.useEffect)((function(){return f.current&&clearTimeout(f.current),f.current=setTimeout((function(){m(i)}),s?Dd:Zd),function(){f.current&&clearTimeout(f.current)}}),[i,c,s]),(0,r.useEffect)((function(){o===Lv.BET&&(f.current&&clearTimeout(f.current),m(i))}),[o,i]),(0,wt.jsx)(wt.Fragment,{children:Array.from({length:t},(function(e,t){return(0,wt.jsx)(sa.jy,{texture:p(t),position:[Hd+a*(t+1),15],anchor:[.5,.5],width:16.5,height:16.5,interactive:!0,cursor:"pointer",pointerdown:function(){return null==n?void 0:n(t)}},"circle-".concat(t+1))}))})},mb=new fa.pn8({fontFamily:"Arial Black, Arial",fontSize:14,fontWeight:"900",fill:"#ffd200",stroke:"#2e3e7e",strokeThickness:4,dropShadow:!0,dropShadowColor:zd,dropShadowBlur:4,dropShadowAngle:Math.PI/4,dropShadowDistance:2,dropShadowAlpha:.4}),fb=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.odds}));return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_finish_icon")],position:[555,11],anchor:[.5,.5],width:29,height:35.9}),n[e-1]&&(0,wt.jsx)(sa.xv,{position:[555,28.95],anchor:[.5,0],text:"".concat(n[e-1],"x"),style:mb})]})},pb=function(e){var n=e.setViewportBlock,t=e.viewportBlock,a=void 0===t?0:t;return(0,wt.jsxs)(sa.W2,{position:[0,-50],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_progress_bar")],position:[Hd,0],width:Yd,height:30}
1),(0,wt.jsx)(db,{setViewportBlock:n}),(0,wt.jsx)(ub,{viewportBlock:a}),(0,wt.jsx)(lb,{}),(0,wt.jsx)(fb,{})]})},gb=function(){var e,n=Kv((function(e){return e.game.startGame})),t=Kv((function(e){return e.game.handleCashout})),a=Kv((function(e){return e.game.chickenRoadBoxes})),i=Kv((function(e){return e.game.state})),r=Kv((function(e){return e.auto.isAutoPlaying})),o=Kv((function(e){return e.auto.setShouldStopAuto})),s=Kv((function(e){return e.auto.shouldStopAuto})),u=Kv((function(e){return e.gameUtils.requestStatusMap})),d=Kv((function(e){return e.gameUtils.checkBalanceEnough})),m=Kv((function(e){return e.gameUtils.isAnyPending})),f=Kv((function(e){return e.ui.isEndGameDrawing})),p=Kv((function(e){return e.ui.isChickenMoving})),g=Yv((function(e){return e.isBalanceFetching})),h=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),v=(e={},(0,l.Z)(e,Lv.BET,{handler:function(){Qd(),d(h)&&n(h)},normalTexture:fa.P6Y.TextureCache["".concat(Pd,"_bet_normal")],disableTexture:fa.P6Y.TextureCache["".concat(Pd,"_bet_disable")],isDisabled:u[Wv.INIT_GAME]!==Gv.SUCCESS||m()||r||f||g}),(0,l.Z)(e,Lv.CASH_OUT,{handler:function(){Qd(),t()},normalTexture:fa.P6Y.TextureCache["".concat(Pd,"_cashout_normal")],disableTexture:fa.P6Y.TextureCache["".concat(Pd,"_cashout_disable")],isDisabled:m()||!a.some((function(e){return e.type===Uv.Gem_Normal}))||f||g||p}),(0,l.Z)(e,Lv.STOP,{handler:function(){Qd(),o(!0)},normalTexture:fa.P6Y.TextureCache["".concat(Pd,"_stop_normal")],disableTexture:fa.P6Y.TextureCache["".concat(Pd,"_stop_disable")],isDisabled:g}),e),b=i===Lv.STOP&&s?v[Lv.BET]:v[i];return(0,wt.jsx)(sa.W2,{position:Gd,children:(0,wt.jsx)(ov,{onClick:v[i].handler,width:203,height:83,texture:b.isDisabled?b.disableTexture:b.normalTexture,disabled:b.isDisabled})})},hb=new fa.pn8({fontSize:32,fontWeight:"bolder",fill:"#ffffff"}),vb=function(){var e,n=Kv((function(e){return e.game.state})),t=Kv((function(e){return e.game.pickedBlock})),a=Kv((function(e){return e.game.chickenRoadBoxes})),i=Kv((function(e){return e.ui.isChickenMoving})),r=Kv((function(e){return e.ui.isViewportAnimating})),o=Kv((function(e){return e.game.handleBet})),c=Kv((function(e){return e.game.setGameValue})),s=a.some((function(e){return e.type===Uv.Bomb_Normal||e.type===Uv.Bomb_Disable})),u=(null===(e=a[t])||void 0===e?void 0:e.type)!==Uv.Stone_Normal||i||s||r;return n!==Lv.CASH_OUT?null:(0,wt.jsxs)(sa.W2,{position:Wd,children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_btn_green_background")],width:98,height:83,alpha:u?.6:1,eventMode:u?"none":"static",cursor:u?"default":"pointer",pointerdown:function(){u||(Kd(),o(t),c("pickedBlock",t+1))}}),(0,wt.jsx)(sa.xv,{text:"GO",anchor:.5,position:[49,41.5],style:hb,alpha:u?.6:1})]})},bb=["cyan","red","purple","green","blue"],xb=function(){var e=Kv((function(e){return e.game.state})),n=Kv((function(e){return e.ui.setIsShowAutoBetModal})),t=Kv((function(e){return e.auto.isAutoPlaying})),a=Kv((function(e){return e.gameUtils.isAnyPending})),i=Kv((function(e){return e.gameUtils.requestStatusMap})),o=Yv((function(e){return e.isBalanceFetching})),s=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),u=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),l=s.map((function(e,n){return{index:n,value:e}})),d=i[Wv.INIT_GAME]!==Gv.SUCCESS||!!a()||t||e===Lv.CASH_OUT||e===Lv.STOP||o,m=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,Cd,70),e.endFill()}),[]);return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.W2,{position:[0,13],children:(0,wt.jsx)(sa.TC,{draw:m})}),(0,wt.jsx)(qg,{onClick:function(){Qd(),pi.open()},position:Ud,isFlipped:!0,disabled:d}),l.slice(0,3).map((function(n,t){return(0,wt.jsx)(Lf,{color:bb[t],position:[94+87*t,38],textValue:"".concat(n.value),isLight:t===u,onClick:function(){return function(n){e===Lv.BET&&(Qd(),ft.Z.changeSelectedChip(n))}(t)},isMask:t!==u},t)})),e===Lv.BET&&!t&&(0,wt.jsx)(ov,{position:Wd,width:98,height:83,texture:fa.P6Y.TextureCache["".concat(Pd,"_auto_").concat(d?"disable":"normal")],onClick:function(){Qd(),n(!0)},disabled:d}),(0,wt.jsx)(vb,{}),(0,wt.jsx)(gb,{}),(0,wt.jsx)(sv,{zIndex:1,position:qd,isShow:e===Lv.BET})]})},yb=function(e){var n=e.setViewportBlock,t=e.viewportBlock;return(0,wt.jsxs)(sa.W2,{position:[0,650],children:[(0,wt.jsx)(pb,{setVie
1wportBlock:n,viewportBlock:t}),(0,wt.jsxs)(sa.W2,{position:[0,92],children:[(0,wt.jsx)(sb,{}),(0,wt.jsx)(xb,{})]})]})},_b=function(e){return e===Uv.Gem_Normal||e===Uv.Gem_Disable||e===Uv.Bomb_Normal||e===Uv.Bomb_Disable},wb=function(e,n){return Array.from({length:n},(function(n,t){return fa.P6Y.TextureCache["".concat(e).concat(t,".png")]}))},Tb=function(){var e=(0,r.useState)(Od),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,r.useState)(Md),o=(0,ot.Z)(i,2),c=o[0],s=o[1],u=(0,r.useState)([]),l=(0,ot.Z)(u,2),d=l[0],m=l[1],f=(0,r.useState)([]),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,r.useState)([]),b=(0,ot.Z)(v,2),x=b[0],y=b[1],_=(0,r.useState)("normal"),w=(0,ot.Z)(_,2),T=w[0],k=w[1],I=(0,r.useState)(!1),C=(0,ot.Z)(I,2),E=C[0],j=C[1],P=(0,r.useState)(1),S=(0,ot.Z)(P,2),N=S[0],B=S[1],A=(0,r.useState)(1),R=(0,ot.Z)(A,2),O=R[0],M=R[1],Z=(0,r.useState)(0),D=(0,ot.Z)(Z,2),L=D[0],G=D[1],W=(0,r.useState)(1),U=(0,ot.Z)(W,2),q=U[0],z=U[1],F=(0,r.useRef)(Od),V=(0,r.useRef)(Od),H=(0,r.useRef)(0),Y=(0,r.useRef)(!1),X=(0,r.useRef)(Od),K=(0,r.useRef)(!1),Q=(0,r.useRef)(!1),J=(0,r.useRef)(null),$=(0,r.useRef)(null),ee=(0,r.useRef)(null),ne=(0,r.useRef)(null),te=(0,r.useRef)(null),ae=(0,r.useRef)("normal"),ie=(0,r.useRef)(0),re=Kv((function(e){return e.game.pickedBlock})),oe=Kv((function(e){return e.game.state})),ce=Kv((function(e){return e.ui.isChickenHit})),se=Kv((function(e){return e.ui.isChickenMoving})),ue=Kv((function(e){return e.game.chickenRoadBoxes}));return(0,r.useEffect)((function(){m(wb("gif_chicken_success",26)),h(wb("gif_chicken_hit",25)),y(wb("gif_chicken_shiver",12))}),[]),(0,r.useEffect)((function(){J.current&&clearTimeout(J.current),k("normal");var e=0===re?Od:Ad+(re-1)*Rd;Math.abs(e-F.current)>Fd&&(X.current=V.current,Kv.getState().ui.setIsChickenMoving(!0)),F.current=e}),[re]),(0,r.useEffect)((function(){ae.current=T,"success"!==T&&(ie.current=0)}),[T]),(0,r.useEffect)((function(){K.current=se,se||(s(Md),M(1),G(0))}),[se]),(0,r.useEffect)((function(){var e;if(!se){var n=Kv.getState().game,t=null===(e=n.chickenRoadBoxes[n.pickedBlock-1])||void 0===e?void 0:e.type;0!==n.pickedBlock&&(_b(t)||(te.current&&clearTimeout(te.current),te.current=setTimeout((function(){k("shivering")}),1e3)))}}),[se]),(0,r.useEffect)((function(){var e;if(0!==re&&!se){var n=null===(e=ue[re-1])||void 0===e?void 0:e.type,t=n===Uv.Gem_Normal||n===Uv.Gem_Disable;_b(n)&&(te.current&&clearTimeout(te.current),t?(k("success"),J.current&&clearTimeout(J.current),J.current=setTimeout((function(){k("normal")}),1e3)):k("scared"))}}),[ue,re,se]),(0,r.useEffect)((function(){ce&&(Ea.eq&&Ea.eq.play("".concat(Pd,"_s_chicken_bump"),{volume:2}),k("hit"),Q.current=!0,j(!0),$.current&&clearTimeout($.current),ee.current&&clearTimeout(ee.current),ne.current&&clearTimeout(ne.current),$.current=setTimeout((function(){Q.current=!1,j(!1),ee.current=setTimeout((function(){H.current=0,Y.current=!0,ne.current=setTimeout((function(){var e=Kv.getState().ui;Y.current=!1,H.current=0,e.setIsChickenHit(!1),k("normal"),B(1),a(Od),s(Md),F.current=Od}),500)}),500)}),1e3))}),[ce]),(0,r.useEffect)((function(){if(oe===Lv.BET){J.current&&clearTimeout(J.current),$.current&&clearTimeout($.current),ee.current&&clearTimeout(ee.current),ne.current&&clearTimeout(ne.current),te.current&&clearTimeout(te.current);var e=Kv.getState().ui;k("normal"),Q.current=!1,j(!1),K.current=!1,Y.current=!1,H.current=0,a(Od),s(Md),B(1),M(1),G(0),F.current=Od,e.setIsChickenHit(!1),e.setIsChickenMoving(!1)}}),[oe]),(0,sa.m9)((function(e){a((function(n){var t=F.current,a=t-n,i=Kv.getState().auto.isAutoPlaying?10:5,r=Math.abs(a)<Fd?t:n+a*i*(e/60);return V.current=r,r}));var n=K.current&&!Y.current,t=X.current,i=F.current-t,r=n&&0!==i?Math.max(0,Math.min(1,(V.current-t)/i)):0;if(n){var o=(1-Math.cos(r*Math.PI))/2;s(Md-30*Math.sin(r*Math.PI)),G((45-55*o)*Math.PI/180),M(.7+.3*o)}var c=ae.current;"hit"===c?z(0):n?z(1+.2*Math.sin(r*Math.PI)):"success"===c?(ie.current+=e/60,z(1.1+.1*Math.sin(ie.current*(2*Math.PI)/.2))):z(1),Y.current&&(H.current+=e/60*4e3,s((function(n){return n+H.current*(e/60)}))),Q.current&&B((function(n){return n+.03333333333333333*e}))})),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.W2,{position:[t,462],scale:q,children:(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_chicken_shadow")],anchor:[.5,.5],width:77.7,height:22.1})}),(0,wt.jsx)(sa.W2,{position:[t,c],scale:O,rotation:L,children:"hit"===T&&g.length>0?(0,wt.jsx)(sa.Kg,{anchor:[.5,.9],scale:N,textures:g,isPlaying:E,loop:!1,animationSpeed:.3},"hit"):"success"===T&&d.length>0?(0,wt.jsx)(sa.Kg,{anchor:[.5,.8],textures:d,isPlaying:!0,loop:!0,animationSpeed:.3},"success"):"shivering"===T&&x.length>0?(0,wt.jsx)(sa.Kg,{anchor:.5,scale:.5,textures:x,isPlaying:!0,loop:!0,animationSpeed:.3}
1,"shiver"):"scared"===T?(0,wt.jsx)(sa.jy,{anchor:.5,width:100,height:130,texture:fa.P6Y.TextureCache["".concat(Pd,"_chicken_scared")]},"scared"):(0,wt.jsx)(sa.jy,{anchor:.5,width:100,height:130,texture:fa.P6Y.TextureCache["".concat(Pd,"_chicken")]})})]})},kb=618.3987189751801,Ib=10,Cb=function(){var e=Kv((function(e){return e.game.totalStage})),n=(0,r.useMemo)((function(){var e=fa.P6Y.TextureCache["".concat(Pd,"_bg_line")];if(!e||!e.baseTexture)return null;var n=kb/e.width,t=Ib/n,a=e.width-t;return new fa.xEZ(e.baseTexture,new fa.AeJ(t,0,a,e.height))}),[]),t=tm(e),a=t.finalRightX,i=t.displayWidthLeftRight,o=t.totalPhysicalWidth,c=Math.max(0,o-2*i),s=Math.ceil(c/kb),u=c-Math.max(0,s-1)*kb,l=(0,r.useMemo)((function(){var e=fa.P6Y.TextureCache["".concat(Pd,"_bg_center")];if(!e||!e.baseTexture||0===s)return null;if(u>=618.2987189751801)return e;var n=u/.5044035228182546;return new fa.xEZ(e.baseTexture,new fa.AeJ(0,0,n,e.height))}),[s,u]),d=(0,r.useMemo)((function(){var e=fa.P6Y.TextureCache["".concat(Pd,"_bg_line")];if(!e||!e.baseTexture||0===s)return null;var n=kb/e.width,t=Ib/n;if(u<=Ib)return null;var a=(u-Ib)/n;return new fa.xEZ(e.baseTexture,new fa.AeJ(t,0,a,e.height))}),[s,u]),m=fa.P6Y.TextureCache["".concat(Pd,"_bg_left")],f=fa.P6Y.TextureCache["".concat(Pd,"_bg_right")];return(0,wt.jsxs)(sa.W2,{position:[0,52],children:[m&&(0,wt.jsx)(sa.jy,{position:[0,0],width:i,height:Nd,texture:m}),Array.from({length:s},(function(e,t){var a=t===s-1,r=i+t*kb,o=a?l:fa.P6Y.TextureCache["".concat(Pd,"_bg_center")],c=a?d:n,m=a?u:kb,f=a?Math.max(0,u-Ib):608.3987189751801;return(0,wt.jsxs)(sa.W2,{children:[o&&(0,wt.jsx)(sa.jy,{position:[r,0],width:m,height:Nd,texture:o}),c&&(0,wt.jsx)(sa.jy,{position:[r+Ib,0],width:f,height:Nd,texture:c})]},"middle-".concat(t))})),f&&(0,wt.jsx)(sa.jy,{position:[a,0],width:i,height:Nd,texture:f}),(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_trophy")],position:[Ad+Math.max(0,e-1)*Rd+Rd-22,325],anchor:[.5,.5],width:89.7,height:112.2})]})},Eb=function(e){var n=e.index,t=e.active,a=(0,r.useRef)(t),i=.618*n%1,o=(0,r.useRef)(0),c=(0,r.useRef)(1),s=(0,r.useState)({y:$d+797*i,texture:nm()}),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=(0,r.useState)(!t),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=Kv((function(e){return e.game.state}));return(0,r.useEffect)((function(){if(a.current=t,!t){var e=Kv.getState().auto.isAutoPlaying?4:2,n=setTimeout((function(){c.current=e}),300);return function(){return clearTimeout(n)}}}),[t]),(0,r.useEffect)((function(){v===Lv.BET&&(a.current=t,o.current=0,c.current=1,h(!t),t&&m({y:$d+797*i,texture:nm()}))}),[v,t,i]),(0,sa.m9)((function(e){g||(o.current>0?Date.now()>=o.current&&(o.current=0,a.current?(c.current=1,m({y:$d-Math.random()*Nd*1.5,texture:nm()})):h(!0)):m((function(n){var t=Kv.getState().auto.isAutoPlaying?2:1,i=n.y+1e3*c.current*t*(e/60);return i>765.5?a.current?(o.current=Date.now()+2e3,(0,d.Z)((0,d.Z)({},n),{},{y:765.5})):(h(!0),n):(0,d.Z)((0,d.Z)({},n),{},{y:i})})))})),g?null:(0,wt.jsx)(sa.jy,{position:[Ad+n*Rd,l.y],width:120,height:167,anchor:.5,texture:fa.P6Y.TextureCache[l.texture]})},jb=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.pickedBlock})),t=e-1;return(0,wt.jsx)(sa.W2,{children:Array.from({length:t},(function(e,t){return(0,wt.jsx)(Eb,{index:t,active:t>n},t)}))})},Pb=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.chickenRoadBoxes})),t=Kv((function(e){return e.game.state})),a=Kv((function(e){return e.game.pickedBlock})),i=Kv((function(e){return e.game.handleBet})),o=Kv((function(e){return e.game.setGameValue})),c=Kv((function(e){return e.ui.isChickenMoving})),s=Kv((function(e){return e.ui.isViewportAnimating})),u=Kv((function(e){return e.auto.isAutoPlaying})),l=(0,r.useState)(n),d=(0,ot.Z)(l,2),m=d[0],f=d[1],p=(0,r.useRef)(null),g=n.some((function(e){return e.type===Uv.Bomb_Normal||e.type===Uv.Bomb_Disable}));(0,r.useEffect)((function(){return p.current&&clearTimeout(p.current),p.current=setTimeout((function(){var e=Kv.getState().ui;f(n),e.setIsChickenMoving(!1);var t=n[a-1];(null==t?void 0:t.type)!==Uv.Gem_Normal&&(null==t?void 0:t.type)!==Uv.Gem_Disable||Ea.eq&&Ea.eq.play("".concat(Pd,"_s_chicken_happy"),{volume:1})}),u?Dd:Zd),function(){p.current&&clearTimeout(p.current)}}),[n,a,u]),(0,r.useEffect)((function(){t===Lv.BET&&(p.current&&clearTimeout(p.current),f(n),Kv.getState().ui.setIsChickenMoving(!1))}),[t,n]);var h=function(e){return t===Lv.CASH_OUT&&!(c||g||s)&&e===a},v=function(e){var n,t=null===(n=m[e])||void 0===n?void 0:n.type;return(t===Uv.Gem_Normal||t===Uv.Gem_Disable)&&e===a-1},b=function(e){var n;if(t===Lv.BET)return fa.P6Y.TextureCache["".concat(Pd,"_drain_cover_default")];var a=null===(n=m[e])||void 0===n?void 0:n.type;return a===Uv.Gem_Normal||a===Uv.Gem_Disable?fa.P6Y.TextureCache[v(e)?"".concat(Pd,"_drain_cover_success_now"):"".concat(Pd,"_drain_cover_success")]:a===Uv.Bomb_Normal||a===Uv.Bomb_Disable?fa.P6Y.TextureCache["".concat(Pd,"_drain_cover_fail")]:h(e)?fa.P6Y.TextureCache["".concat(Pd,"_drain_cover_next")]:fa.P6Y.TextureCache["".concat(Pd,"_drain_cover_default")]};return(0,wt.jsx)(sa.W2,{children:Array.from({length:e},(function(e,n){return(0,wt.jsx)(sa.jy,{position:[Ad+n*Rd,Bd],width:v(n)?160:120,height:v(n)?160:120,anchor:.5,texture:b(n),interactive:h(n),cursor:h(n)?"pointer":"default",pointerdown:function(){return function(e){t===Lv.CASH_OUT&&(c||g||s||e===a&&(Kd(),i(a),o("pickedBlock",a+1)))}(n)}},n)}))})},Sb=function(e){var n=e.index,t=(0,r.useState)(-69),a=(0,ot.Z)(t,2),i=a[0],o=a[1],c=(0,r.useRef)(!1);return(0,r.useEffect)((function(){317!==i||c.current||(c.current=!0,Ea.eq&&Ea.eq.play("".concat(Pd,"_s_horsedown"),{volume:1}))}),[i]),(0,sa.m9)((function(e){o((function(n){var t=317-n;
1return Math.abs(t)<Fd?317:n+t*(Kv.getState().auto.isAutoPlaying?30:15)*(e/60)}))})),(0,wt.jsx)(sa.jy,{position:[Ad+n*Rd,i],width:120,height:69,anchor:.5,texture:fa.P6Y.TextureCache["".concat(Pd,"_roadblocks")]})},Nb=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.chickenRoadBoxes})),t=Kv((function(e){return e.game.state})),a=Kv((function(e){return e.game.pickedBlock})),i=Kv((function(e){return e.auto.isAutoPlaying})),o=(0,r.useState)(n),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(null);return(0,r.useEffect)((function(){return l.current&&clearTimeout(l.current),l.current=setTimeout((function(){u(n)}),i?Dd:Zd),function(){l.current&&clearTimeout(l.current)}}),[n,a,i]),(0,r.useEffect)((function(){t===Lv.BET&&(l.current&&clearTimeout(l.current),u(n))}),[t,n]),(0,wt.jsx)(sa.W2,{children:Array.from({length:e-1},(function(e,n){return function(e){var n;if(t===Lv.BET)return!1;var a=null===(n=s[e])||void 0===n?void 0:n.type;return a===Uv.Gem_Normal||a===Uv.Gem_Disable}(n)?(0,wt.jsx)(Sb,{index:n},n):null}))})},Bb=function(e){var n=e.index,t=e.isSuccess,a=(0,r.useState)((function(){return nm()})),i=(0,ot.Z)(a,1)[0],o=(0,r.useState)(-167),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(-167),d=(0,r.useRef)(!1),m=Kv((function(e){return e.ui.setIsChickenHit})),f=Kv((function(e){return e.game.state}));return(0,r.useEffect)((function(){var e=t?199:437;l.current=e}),[t]),(0,r.useEffect)((function(){f===Lv.BET&&(d.current=!1)}),[f]),(0,sa.m9)((function(e){u((function(n){var a=l.current,i=a-n;if(Math.abs(i)<Fd)return a;var r=n+i*(Kv.getState().auto.isAutoPlaying?10:5)*(e/60);return t||d.current||r+83.5>=412&&(m(!0),Xd(),d.current=!0),r}))})),(0,wt.jsx)(sa.jy,{position:[Ad+n*Rd,s],width:120,height:167,anchor:.5,texture:fa.P6Y.TextureCache[i]})},Ab=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.chickenRoadBoxes})),t=Kv((function(e){return e.game.state})),a=Kv((function(e){return e.game.pickedBlock})),i=Kv((function(e){return e.auto.isAutoPlaying})),o=(0,r.useState)(n),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(null),d=e-1;return(0,r.useEffect)((function(){return l.current&&clearTimeout(l.current),l.current=setTimeout((function(){u(n)}),i?Dd:Zd),function(){l.current&&clearTimeout(l.current)}}),[n,a,i]),(0,r.useEffect)((function(){t===Lv.BET&&(l.current&&clearTimeout(l.current),u(n))}),[t,n]),(0,wt.jsx)(sa.W2,{children:Array.from({length:d},(function(e,n){var a=function(e){var n;if(t===Lv.BET)return null;var a=null===(n=s[e])||void 0===n?void 0:n.type;return a===Uv.Gem_Normal||a===Uv.Gem_Disable?{isSuccess:!0}:a===Uv.Bomb_Normal||a===Uv.Bomb_Disable?{isSuccess:!1}:null}(n);return a?(0,wt.jsx)(Bb,{index:n,isSuccess:a.isSuccess},n):null}))})},Rb=new fa.pn8({align:"center",fontFamily:"Arial Black, Arial",fontSize:20,fontWeight:"900",fill:["#f0f0f0"],fillGradientStops:[0,.5,1],stroke:"#0f1728",strokeThickness:4,dropShadow:!0,dropShadowColor:zd,dropShadowBlur:4,dropShadowAngle:Math.PI/4,dropShadowDistance:2,dropShadowAlpha:.4}),Ob=function(e){var n=e.position,t=e.targetY,a=e.text,i=e.state,o=(0,r.useState)(n[1]),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(t);return(0,r.useEffect)((function(){l.current=t}),[t]),(0,r.useEffect)((function(){i===Lv.BET&&u(Bd)}),[i]),(0,sa.m9)((function(e){u((function(n){var t=l.current,a=t-n;return Math.abs(a)<Fd?t:n+5*a*(e/60)}))})),(0,wt.jsx)(sa.xv,{position:[n[0],s],anchor:[.5,.5],text:a,style:Rb})},Mb=function(){var e=Kv((function(e){return e.game.totalStage})),n=Kv((function(e){return e.game.odds})),t=Kv((function(e){return e.game.pickedBlock})),a=Kv((function(e){return e.game.state})),i=Kv((function(e){return e.game.chickenRoadBoxes})),o=(0,r.useState)(i),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useRef)(null);return(0,r.useEffect)((function(){return l.current&&clearTimeout(l.current),l.current=setTimeout((function(){u(i)}),Zd),function(){l.current&&clearTimeout(l.current)}}),[i,t]),(0,r.useEffect)((function(){a===Lv.BET&&(l.current&&clearTimeout(l.current),u(i))}),[a,i]),(0,wt.jsx)(sa.W2,{children:Array.from({length:e},(function(e,i){var r,o=n[i],c=null===(r=s[i])||void 0===r?void 0:r.type;if(!o)return null;var u=c===Uv.Bomb_Normal||c===Uv.Bomb_Disable||i===t-1?502:Bd;return(0,wt.jsx)(Ob,{position:[Ad+i*Rd,Bd],targetY:u,text:"".concat(o,"x"),state:a},i)}))})},Zb=function(){var e=(0,r.useState)(!1),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,r.useRef)(null),o=Kv((function(e){return e.ui.isChickenHit})),c=Kv((function(e){return e.game.pickedBlock}));return(0,r.useEffect)((function(){o?i.current=setTimeout((function(){a(!0),Xd()}),1e3):i.current&&clearTimeout(i.current)}),[o]),(0,r.useEffect)((function(){0===c&&a(!1)}),[c]),t?(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_window_broken_background")],position:[0,0],width:Cd,height:Ed}),(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_feather")],position:[320,Ed/3],scale:.7,anch
1or:.5})]}):null},Db=220.27777777777777,Lb=function(e){var n=e.viewportBlock,t=(0,r.useState)(0),a=(0,ot.Z)(t,2),i=a[0],o=a[1],c=(0,r.useRef)(0),s=Kv((function(e){return e.game.state})),u=Kv((function(e){return e.game.totalStage})),l=(0,r.useMemo)((function(){return tm(u)}),[u]).maxCameraPanX;return(0,r.useEffect)((function(){var e=Od+n*Rd;if(e<=Db)c.current=0;else{var t=-(e-Db);c.current=Math.max(l,t)}}),[n,l]),(0,r.useEffect)((function(){s===Lv.BET&&(o(0),c.current=0)}),[s]),(0,sa.m9)((function(e){o((function(n){var t=c.current,a=t-n;return Math.abs(a)<Fd?t:n+5*a*(e/60)}))})),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(sa.W2,{position:[i,0],children:[(0,wt.jsx)(Cb,{}),(0,wt.jsx)(Pb,{}),(0,wt.jsx)(Mb,{}),(0,wt.jsx)(Nb,{}),(0,wt.jsx)(Ab,{}),(0,wt.jsx)(Tb,{}),(0,wt.jsx)(jb,{})]}),(0,wt.jsx)(Zb,{})]})},Gb=function(){var e=(0,r.useState)(30),n=(0,ot.Z)(e,2),t=n[0],a=n[1],i=(0,r.useRef)(null),o=Kv((function(e){return e.ui.countdownResetTick}));return(0,r.useEffect)((function(){return i.current&&clearInterval(i.current),a(30),i.current=setInterval((function(){a((function(e){if(e<=1)return clearInterval(i.current),ib.disconnect(),Kv.getState().ui.setIsShowConfirmModal(!0,"TOKEN_TIME_OUT"),0;var n=e-1;return n<=10&&Ea.eq&&Ea.eq.play("".concat(jd,"_s_ring"),{volume:1}),n}))}),1e3),function(){i.current&&clearInterval(i.current)}}),[o]),t>10?null:(0,wt.jsxs)(sa.W2,{position:[320,100],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_time_circle")],anchor:.5,width:116.8,height:116.8}),(0,wt.jsx)(sa.xv,{text:String(t),anchor:.5,style:new fa.pn8({fontSize:62.1,fill:"#ffffff",fontWeight:"bold"})})]})},Wb=function(e){var n=e.show,t=e.delay,a=e.children,i=e.position,r=(0,ma.q_)({to:{scale:n?1:0,opacity:n?1:0},delay:n?t:0,config:{tension:300,friction:15}});return(0,wt.jsx)(da.W2,{scale:r.scale,alpha:r.opacity,position:i,children:a})},Ub=function(){var e=Kv((function(e){return e.game.oddIndex})),n=Kv((function(e){return e.game.odds})),t=Kv((function(e){return e.game.winAmount})),a=Kv((function(e){return e.ui.isShowWinModal}));return(0,r.useEffect)((function(){if(a){Ea.eq&&Ea.eq.play("".concat(jd,"_s_win"),{volume:1});var e=setTimeout((function(){Kv.getState().game.handleWinAnimationComplete()}),1e3);return function(){return clearTimeout(e)}}}),[a]),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(da.TC,{visible:a,draw:function(e){e.clear(),e.beginFill(0,.6),e.drawRect(0,0,Cd,825),e.endFill()}}),(0,wt.jsxs)(da.W2,{position:[0,232],visible:a,children:[(0,wt.jsx)(Wb,{show:a,delay:0,position:[320,110],children:(0,wt.jsx)(da.jy,{width:Cd,height:250,texture:fa.P6Y.TextureCache["".concat(Pd,"_winPop_normal")],anchor:.5,position:[0,0]})}),(0,wt.jsx)(Wb,{show:a,delay:200,position:[320,84],children:(0,wt.jsx)(da.xv,{text:"".concat(null===e?0:n[e],"x"),style:new fa.pn8({fontSize:78,fill:"#2263e2",fontWeight:"bold",align:"center"}),anchor:.5,position:[0,0]})}),(0,wt.jsx)(Wb,{show:a,delay:400,position:[320,148],children:(0,wt.jsx)(da.xv,{text:t,style:new fa.pn8({fontSize:56,fill:"#f7f030",fontWeight:"bold",align:"center",stroke:"#294980",strokeThickness:6}),anchor:.5,position:[0,0]})})]})]})},qb=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,a=void 0===t?1e3:t,i=n.interval,o=void 0===i?100:i,c=(0,r.useRef)(e),s=(0,r.useRef)(null),u=(0,r.useRef)(null);c.current=e;var l=function(){s.current&&(clearTimeout(s.current),s.current=null),u.current&&(clearInterval(u.current),u.current=null)};return{onPointerDown:function(){c.current(),s.current=setTimeout((function(){u.current=setInterval((function(){return c.current()}),o)}),a)},onPointerUp:l,onPointerUpOutside:l}},zb={fontSize:33,fontFamily:"Arial"},Fb=new fa.pn8((0,d.Z)((0,d.Z)({},zb),{},{fontSize:36.8,fill:"#ffffff",fontWeight:"bold"})),Vb=new fa.pn8((0,d.Z)((0,d.Z)({},zb),{},{fontSize:28.7,fill:"#6fd9f9"})),Hb=new fa.pn8((0,d.Z)((0,d.Z)({},zb),{},{fontSize:38,fill:"#ffffff"})),Yb=new fa.pn8((0,d.Z)((0,d.Z)({},zb),{},{fill:"#ddfbcd",fontWeight:"bold"})),Xb=new fa.pn8((0,d.Z)((0,d.Z)({},zb),{},{fill:"#629346",fontWeight:"bold"})),Kb=new fa.pn8((0,d.Z)((0,d.Z)({},zb),{},{fill:"#8efafd",fontWeight:"bold"})),Qb=["5","10","20","50","100","â"],Jb=function(e){var n=e.text,t=void 0===n?"":n;return(0,wt.jsx)(sa.W2,{position:[0,0],children:(0,wt.jsx)(sa.xv,{text:t,style:Vb,anchor:[.5,.5],position:[320,15]})})},$b=function(e){var n=e.positionX,t=void 0===n?0:n,a=e.autoTimes,i=void 0===a?"10":a,r=e.currentAutoTimes,o=e.setAutoPlayParams;return(0,wt.jsxs)(sa.W2,{position:[t,18],children:[r===i&&(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_auto_play_choosen_background")],anchor:[.5,.5],width:74,height:59.3}),(0,wt.jsx)(sa.xv,{text:i,anchor:[.5,.5],style:Hb,eventMode:"static",onpointerdown:function(){Qd(),o({autoTimes:i})}})]})},ex=function(e){var n=e.value,t=e.onDecrease,a=e.onIncrease,i=e.onValueClick,r=e.min,o=void 0===r?-1/0:r,c=e.max,s=n<=o,u=n>=(void 0===c?1/0:c),l=qb(t),d=qb(a);return(0,wt.jsxs)(sa.W2,{position:[320,50],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_auto_play_control_background")],position:[0,17],anchor:[.5,.5],width:307,height:62.6}),(0,wt.jsx)(sa.W2,{position:[-115,17],children:(0,wt.jsx)(sa.jy,{eventMode:s?"none":"static",anchor:[.5,.5],width:43.7,height:43.7,alpha:s?.5:1,texture:fa.P6Y.TextureCache["".concat(Pd,"_button_minus")],onpointerdown:l.onPointerDown,onpointerup:l.onPointerUp,onpointerupoutside:l.onPointerUpOutside})}),(0,wt.jsx)(sa.xv,{position:[0,17],anchor:[.5,.5],text:n.toString(),style:Hb,eventMode:i?"static":"none",onpointerdown:i}),(0,wt.jsx)(sa.W2,{position:[115,17],children:(0,wt.jsx)(sa.jy,{eventMode:u?"none":"static",anchor:[.5,.5],width:43.7,height:43.7,alpha:u?.5:1,texture:fa.P6Y.TextureCache["".concat(Pd,"_button_plus")],onpointerdown:d.onPointerDown,onpointerup:d.onPointerUp,onpointerupoutside:d.onPointerUpOutside})})]})},nx=function(){var e=Kv((function(e){return e.auto.startAutoGame})),n=Kv((function(e){return e.ui.setIsShowAutoBetModal})),t=Kv((function(e){return e.ui.isShowAutoBetModal})),a=Kv((function(e){return e.game.setGameValue})),i=Kv((function(e){return e.gameUtils.checkBalanceEnough})),o=Kv((function(e){return e.gameUtils.requestStatusMap})),s=Kv((function(e){return e.ui.resetCountdown})),u=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),l=(0,r.useState)({pickedBlocks:1,betAmount:u,autoTimes:"10",level:3}),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=f.pickedBlocks,h=f.betAmount,v=(0,r.useRef)(!0),b=(0,Fn.he)("containers.GamesPanel."),x=function(e){var n=function(e){return e<1?1:e>Sd?Sd:e}(g+e);n!==g&&(Qd(),p((function(e){return(0,d.Z)((0,d.Z)({},e),{},{pickedBlocks:n})})))},y=function(e){var n=h+e;n<1||(Qd(),p((function(e){return(0,d.Z)((0,d.Z)({},e),{},{betAmount:n})})))};if((0,r.useEffect)((function(){void 0!==u&&p((function(e){return(0,d.Z)((0,d.Z)({},e),{},{betAmount:u})}))}),[u]),(0,r.useEffect)((function(){v.current?v.current=!1:s()}),[f.pickedBlocks,f.betAmount,f.autoTimes,s]),!t)return null;var _=o[Wv.AUTO_GAME]===Gv.PENDING;return(0,wt.jsxs)(sa.W2,{zIndex:4,children:[(0,wt.jsx)(mv,{opacity:.8,stopPropagation:!0,zIndex:0}),(0,wt.jsxs)(sa.W2,{position:[0,10],children:[(0,wt.jsx)(sa.xv,{text:"AUTO PLAY",style:Fb,anchor:[.5,0],position:[320,50]}),(0,wt.jsxs)(sa.W2,{position:[0,120],children:[(0,wt.jsx)(Jb,{text:"Cashout Rounds"}),(0,wt.jsx)(ex,{value:g,min:1,max:Sd,onDecrease:function(){return x(-1)},onIncrease:function(){return x(1)}})]}),(0,wt.jsxs)(sa.W2,{position:[0,270],children:[(0,wt.jsx)(Jb,{text:"Bet Amount"}),(0,wt.jsx)(ex,{value:h,min:1,onDecrease:function(){return y(-1)},onIncrease:function(){return y(1)},onValueClick:function(){return pi.open()}})]}),(0,wt.jsxs)(sa.W2,{position:[0,420],children:[(0,wt.jsx)(Jb,{text:"Auto Plays"}),(0,wt.jsxs)(sa.W2,{position:[320,50],children:[(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_auto_play_control_long_background")],position:[0,18],anchor:[.5,.5],width:493.6,height:62.6}),Qb.map((function(e,n){var t=540/(Qb.length+1)*(n+1)-270;return(0,wt.jsx)($b,{positionX:t,autoTimes:e,currentAutoTimes:f.autoTimes,setAutoPlayParams:function(e){return p((function(n){return(0,d.Z)((0,d.Z)({},n),e)}))}},"count-button-".concat(e))}))]})]})]}),(0,wt.jsxs)(sa.W2,{position:[0,742],children:[(0,wt.jsxs)(sa.W2,{position:[208,0],children:[(0,wt.jsx)(ov,{width:203,height:88,texture:fa.P6Y.TextureCache["".concat(Pd,"_cancel_normal")],onClick:function(){Qd(),s(),n(!1)}}),(0,wt.jsx)(sa.xv,{text:b("ChickenRoad.cancel"),style:Kb,anchor:[.5,.5],position:[101,44]})]}),(0,wt.jsxs)(sa.W2,{position:[425,0],children:[(0,wt.jsx)(ov,{width:203,height:88,texture:fa.P6Y.TextureCache["".concat(Pd,"_start_").concat(_?"disable":"normal")],disabled:_,onClick:function(){Qd(),i(h)&&(e({betAmount:h,pickedBlocks:g-1}),a("autoTimes","â"===f.autoTimes?-1:parseInt(f.autoTimes)),ft.Z.updateChip(h))}}),(0,wt.jsx)(sa.xv,{text:b("ChickenRoad.start"),style:_?Xb:Yb,anchor:[.5,.5],position:[101,44]})]})]})]})},tx=function(){var e=Xv(),n=e.activePanel,t=e.setActivePanel;return"betHistory"===n?(0,wt.jsx)(pm,{closeBetHistory:function(){Jd(),Kv.getState().ui.resetCountdown(),t(null)}}):null},ax=function(){var e=Xv(),n=e.activePanel,t=e.setActivePanel,a=(0,Fn.he)("containers.GamesIntro.");return"intro"===n?(0,wt.jsxs)("div",{className:"mini-game-chicken-road-introduction-modal",children:[(0,wt.jsx)("div",{className:"mini-game-close-btn",onClick:function(){Jd(),Kv.getState().ui.resetCountdown(),t(null)},children:(0,wt.jsx)("img",{src:Xi,alt:"close-btn"})}),(0,wt.jsx)("div",{className:"mini-game-intro-content",children:(0,wt.jsxs)("section",{className:"mini-game-intro-description",children:[(0,wt.jsxs)("h1",{children:[a("title"),":"]}),(0,wt.jsx)("p",{children:a("ChickenRoad.description")})]})})]}):null},ix=function(){var e=Kv((function(e){return e.ui.isErrorVisible})),n=Kv((function(e){return e.ui.errorMessage})),t=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(e){var n=Kv.getState().ui;t.current&&clearTimeout(t.current),t.current=setTimeout((function(){n.hideError()}),1500)}return function(){t.current&&clearTimeout(t.current)}}
1),[e]),(0,wt.jsx)(Gp,{show:e,content:n,style:{top:"50%"}})},rx=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,Fn.he)("components.Alert."),t=Kv((function(e){return e.ui.isShowConfirmModal})),a=Kv((function(e){return e.ui.confirmMsgKey})),i=Kv((function(e){return e.gameUtils.resetAllState})),r=Ji(!1).closeGamePanel;return(0,wt.jsx)(Dp,{show:t,hasBg:!0,title:n("systemNotice"),context:e(a),onConfirmClick:function(){i(),r()},showCancel:!1})},ox=function(){var e=(0,c.v9)((function(e){return e.calculatorInfo.show})),n=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),t=function(){Qd(),pi.close()};return e&&null!==n?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.TC,{eventMode:"static",zIndex:50,onpointerdown:t,draw:function(e){e.clear(),e.beginFill(0,.6),e.drawRect(0,0,Cd,435),e.endFill()}}),(0,wt.jsx)(Mf,{value:n,position:Vd,zIndex:51,width:640,height:390,confirmClick:function(){Qd(),pi.confirmHandle()},backClick:function(e){Qd(),pi.updateEditAmount(e)},cancelClick:t,numberClick:function(e){Qd(),pi.updateEditAmount("".concat(e))}})]}):null},cx=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=function(){var e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1];return(0,c.v9)((function(e){return e.gamePanelInfo})),_t().sendEvent,(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),fa.deM.addBundle("sounds",Dv),fa.deM.addBundle("uiSounds",Ll),Ea.eq.add(Dv),Ea.eq.add(Ll),e.next=8,fa.deM.load(Zv,(function(e){o(100*e)}));case 8:case"end":return e.stop()}}),e)})))()}),[]),t}(),u=aa((function(e){return e.containerScale})),l=Kv((function(e){return e.gameUtils.socketStatus})),m=Kv((function(e){return e.gameUtils.resetAllState})),f=Kv((function(e){return e.game.initGame})),p=Kv((function(e){return e.game.state})),g=Kv((function(e){return e.game.pickedBlock})),h=Kv((function(e){return e.game.totalStage})),v=Kv((function(e){return e.ui.setIsViewportAnimating})),b=Kv((function(e){return e.auto.isAutoPlaying})),x=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),y=(0,r.useState)(null),_=(0,ot.Z)(y,2),w=_[0],T=_[1],k=(0,r.useCallback)((function(e){e.clear(),e.beginFill(16777215),e.drawRoundedRect(0,52,Cd,Nd,30),e.endFill(),T(e)}),[]);(function(e){var n=e.state,t=e.pickedBlock,a=e.totalStage,i=e.setViewportBlock,o=e.setIsViewportAnimating,c=(0,r.useRef)(n);(0,r.useEffect)((function(){var e=c.current;if(e===Lv.BET&&n===Lv.CASH_OUT){i(a-1),o(!0);var t=setTimeout((function(){i(0),o(!1)}),2e3);return c.current=n,function(){return clearTimeout(t)}}e===Lv.BET&&n===Lv.STOP&&i(0),c.current=n}),[n,a,o,i]),(0,r.useEffect)((function(){i(t)}),[t,i]),(0,r.useEffect)((function(){n===Lv.BET&&i(0)}),[n,i])})({state:p,pickedBlock:g,totalStage:h,setViewportBlock:o,setIsViewportAnimating:v}),(0,r.useEffect)((function(){return(0,Fn.yH)(),Ea.eq.play("".concat(Pd,"_bgm_chickenroad"),{loop:!0,volume:1}),function(){Ea.eq.stopAll(),m()}}),[m]),(0,r.useEffect)((function(){if("connected"===l){var e=(0,Fn.Wf)();f(e)}}),[l,f]),rb({token:(0,Fn.LP)(),gameId:x});
1var I={width:Cd*u,height:Ed*u,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(wo,{progress:s,children:(0,wt.jsxs)("div",{style:{width:Cd*u,height:Ed*u},className:"mini-game-mines-game-scene",children:[(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},I),{},{children:(0,wt.jsxs)(sa.W2,{scale:u,sortableChildren:!0,children:[(0,wt.jsx)(sa.TC,{draw:k}),(0,wt.jsx)(cb,{}),(0,wt.jsx)(sa.W2,{mask:w,children:(0,wt.jsx)(Lb,{viewportBlock:t})}),(0,wt.jsx)(sa.jy,{texture:fa.P6Y.TextureCache["".concat(Pd,"_border")],width:Cd,height:Nd,position:[0,52]}),!b&&(0,wt.jsx)(Gb,{}),(0,wt.jsx)(yb,{setViewportBlock:o,viewportBlock:t}),(0,wt.jsx)(nx,{}),(0,wt.jsx)(Ub,{}),(0,wt.jsx)(ox,{})]})})),(0,wt.jsx)(tx,{}),(0,wt.jsx)(ax,{}),(0,wt.jsx)(ix,{}),(0,wt.jsx)(rx,{})]})})},sx=640,ux=805,lx=pt.Z.gameConfig.ui.prefix,dx="KENO",mx=60,fx=140,px=428,gx=155,hx=30,vx=650,bx={MODAL_WIDTH:sx,MODAL_HEIGHT:ux,TITLE_Y_BET:100,TITLE_Y_COUNT:250,COUNT_OPTIONS:[5,10,20,50,100,0]},xx=4886754,yx=16777215,_x="#52351d",wx="#002244",Tx={number:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:34,fill:_x,align:"center"}),number_matched:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:34,fill:yx,align:"center",stroke:_x,strokeThickness:3}),odds:new fa.pn8({fontFamily:"Arial",fontSize:18,fontWeight:"bold",fill:yx}),star_number:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:18,fill:wx}),button:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:20,fill:wx}),bet_button_counter:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:30,fill:yx,align:"center"})},kx={TITLE:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:22,fill:yx}),BUTTON:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:18,fill:yx}),MAIN_LABEL:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:33,fill:yx}),VALUE:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:32,fill:yx}),OPTION:new fa.pn8({fontFamily:"gothamrounded-bold",fontSize:28,fill:yx})},Ix=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{volume:1};null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(lx).concat(e),n)},Cx=function(){Ix("_s_button_02")},Ex=function(e,n){return{balanceBar:{prevBalance:null,balanceDifference:0,balanceVisible:!1,isBalanceFetching:!1,hideTimerId:null,setBalanceDifference:function(n){return e((function(e){e.balanceBar.balanceDifference=n}))},setBalanceVisible:function(n){return e((function(e){e.balanceBar.balanceVisible=n}))},setPrevBalance:function(n){return e((function(e){e.balanceBar.prevBalance=n}))},setIsBalanceFetching:function(n){return e((function(e){e.balanceBar.isBalanceFetching=n}))},resetData:function(){var t=n().balanceBar.hideTimerId;t&&clearTimeout(t),e((function(e){e.balanceBar.balanceDifference=0,e.balanceBar.balanceVisible=!1,e.balanceBar.prevBalance=null,e.balanceBar.isBalanceFetching=!1,e.balanceBar.hideTimerId=null}))},handleStartBalance:function(t){var a=n().balanceBar.hideTimerId;a&&clearTimeout(a),e((function(e){var n=e.balanceBar.prevBalance;if(e.balanceBar.balanceDifference=-1*t,null!==n){var a=new Ja.Z(n),i=new Ja.Z(t),r=a.minus(i).toNumber();e.balanceBar.prevBalance=r,e.balanceBar.balanceVisible=!0}}));var i=setTimeout((function(){e((function(e){e.balanceBar.balanceVisible=!1,e.balanceBar.hideTimerId=null}))}),1e3);e((function(e){e.balanceBar.hideTimerId=i}))},hideBalanceAfter:(r=(0,i.Z)((0,a.Z)().mark((function n(t){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t>0)){n.next=3;break}return n.next=3,(0,Fn.gw)(t);case 3:e((function(e){e.balanceBar.balanceVisible=!1}));case 4:case"end":return n.stop()}}),n)}))),function(e){return r.apply(this,arguments)}),handleEndGameBalance:(t=(0,i.Z)((0,a.Z)().mark((function t(i){var r,o,c,s,u,l,d;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(r=n().balanceBar.prevBalance)){t.next=19;break}return e((function(e){e.balanceBar.isBalanceFetching=!0})),t.prev=3,t.next=6,i();case 6:if(null!=(o=t.sent)&&o.data){t.next=9;break}return t.abrupt("return");case 9:c=new Ja.Z(o.data.availBalance),s=new Ja.Z(r),(u=c.minus(s).toNumber())<=0?e((function(e){e.balanceBar.balanceDifference=0,e.balanceBar.prevBalance=o.data.availBalance,e.balanceBar.balanceVisible=!1,e.balanceBar.isBalanceFetching=!1})):((l=n().balanceBar.hideTimerId)&&clearTimeout(l),e((function(e){e.balanceBar.balanceDifference=u,e.balanceBar.balanceVisible=!0,e.balanceBar.prevBalance=o.data.availBalance,e.balanceBar.isBalanceFetching=!1})),d=setTimeout((function(){e((function(e){e.balanceBar.balanceVisible=!1,e.balanceBar.hideTimerId=null}))}),1e3),e((function(e){e.balanceBar.hideTimerId=d}))),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),console.error("Failed to fetch account data:",t.t0),e((function(e){e.balanceBar.isBalanceFetching=!1}));case 19:case"end":return t.stop()}}),t,null,[[3,15]])}))),function(e){return t.apply(this,arguments)})}};var t,r},jx=function(e){return{viewData:{containerScale:0,introVisible:!1,betHistoryVisible:!1,activePanel:null,setContainerScale:function(n){return e((function(e){e.viewData.containerScale=n}))},setIntroVisible:function(n){return e((function(e){e.viewData.introVisible=n}))},setBetHistoryVisible:function(n){return e((function(e){e.viewData.betHistoryVisible=n}))},setActivePanel:function(n){return e((function(e){e.viewData.activePanel=n}))},togglePanel:function(n){return e((function(e){e.viewData.activePanel=e.viewData.activePanel===n?null:n}))}}}},Px=function(e){return e.INITIAL="INITIAL",e.BETTING="BETTING",e}({}),Sx=function(e){return e.START="START",e.STOP="STOP",e}({}),Nx=function(e,n){return{game:{drawState:Px.INITIAL,drawData:null,betData:{numbers:null,amount:null},setDrawState:function(n){return e((function(e){e.game.drawState=n}))},setBetData:function(n){return e((function(e){e.game.betData=n}))},setDrawData:function(n){return e((function(e){e.game.drawData=n}))},reset:function(){return e((function(e){e.game.drawState=Px.INITIAL,e.game.drawData=null,e.game.betData={numbers:null,amount:null},e.autoPlay.state=Sx.STOP,e.autoPlay.show=!1,e.autoPlay.count=null,e.autoPlay.executedCount=0}))}},autoPlay:{state:Sx.STOP,show:!1,count:null,executedCount:0,setState:function(n){return e((function(e){e.autoPlay.state=n}))},setShow:function(n){return e((function(e){e.autoPlay.show=n}))},setCount:function(n){return e((function(e){e.autoPlay.count=n}))},setExecutedCount:function(n){return e((function(e){e.autoPlay.executedCount=n}))}}}},Bx=(0,ta.Ue)()((0,na.n)((function(){return(0,d.Z)((0,d.Z)((0,d.Z)({},Nx.apply(void 0,arguments)),Ex.apply(void 0,arguments)),jx.apply(void 0,arguments))}))),Ax=function(e){var n=e.text,t=e.onClick,a=e.x,i=e.y,r=e.color,o=void 0===r?xx:r,c=e.width,s=void 0===c?120:c,u=e.height,l=void 0===u?40:u,d=e.radius,m=void 0===d?20:d;return(0,wt.jsxs)(sa.W2,{x:a,y:i,interactive:!0,cursor:"pointer",onpointerdown:function(){Cx(),t()},children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(o),e.drawRoundedRect(0,0,s,l,m),e.endFill()}}),(0,wt.jsx)(sa.xv,{text:n,x:s/2,y:l/2,anchor:.5,style:kx.BUTTON})]})},Rx=function(e){var n=e.text,t=void 0===n?"":n,a=e.y,i=void 0===a?0:a;return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(xx,1),e.drawRect(0,i,bx.MODAL_WIDTH,30),e.endFill()}}),(0,wt.jsx)(sa.xv,{text:t,style:kx.TITLE,anchor:.5,x:bx.MODAL_WIDTH/2,y:i+15})]})},Ox=function(){var e,n=(0,r.useState)(10),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=Bx((function(e){return e.autoPlay.show})),s=Bx((function(e){return e.game.betData.numbers}
1)),u=Bx((function(e){return e.game.setBetData})),l=Bx((function(e){return e.autoPlay.setShow})),d=Bx((function(e){return e.autoPlay.setCount})),m=Bx((function(e){return e.autoPlay.setExecutedCount})),f=Bx((function(e){return e.autoPlay.setState})),p=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),g=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),h=(0,r.useState)(0),v=(0,ot.Z)(h,2),b=v[0],x=v[1],y=(0,Fn.he)("containers.GamesIntro.Keno.");(0,r.useEffect)((function(){p&&void 0!==p[g]&&x(p[g])}),[p,g]);var _=null===(e=qn.Z.getState().gamePanelInfo.info)||void 0===e?void 0:e.gameId,w=zn.nk.endpoints.getGameSetting.select(_)(qn.Z.getState()).data||{},T=w.bettingModes,k=void 0===T?[]:T,I=w.singleBetPrice,C=Ia(k,void 0===I?0:I),E=function(e){Cx(),0!==b&&x(e?b>=99999?b:b+1:b<=C?b:b-1)};return o?(0,wt.jsxs)(sa.W2,{zIndex:100,interactive:!0,children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(0,0),e.drawRect(0,0,sx,ux),e.endFill()},interactive:!0,onpointerdown:function(){return l(!1)}}),(0,wt.jsxs)(sa.W2,{position:[0,0],children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(0,.8),e.drawRect(0,0,bx.MODAL_WIDTH,bx.MODAL_HEIGHT),e.endFill()}}),(0,wt.jsx)(sa.xv,{text:y("AUTO_PLAY"),style:kx.MAIN_LABEL,position:[bx.MODAL_WIDTH/2,50],anchor:.5}),(0,wt.jsx)(Rx,{text:y("BET"),y:bx.TITLE_Y_BET}),(0,wt.jsxs)(sa.W2,{x:bx.MODAL_WIDTH/2-120,y:150,interactive:!0,cursor:"pointer",onpointerdown:function(){return E(!1)},children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(xx),e.drawRoundedRect(0,0,40,40,8),e.endFill()}}),(0,wt.jsx)(sa.xv,{text:"-",x:20,y:20,anchor:.5,style:kx.VALUE})]}),(0,wt.jsx)(sa.xv,{text:"".concat(b),x:bx.MODAL_WIDTH/2,y:170,anchor:.5,interactive:!0,onpointerdown:function(){Cx(),pi.open()},cursor:"pointer",style:kx.VALUE}),(0,wt.jsxs)(sa.W2,{x:bx.MODAL_WIDTH/2+80,y:150,interactive:!0,cursor:"pointer",onpointerdown:function(){return E(!0)},children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(xx),e.drawRoundedRect(0,0,40,40,8),e.endFill()}}),(0,wt.jsx)(sa.xv,{text:"+",x:20,y:20,anchor:.5,style:kx.VALUE})]}),(0,wt.jsx)(Rx,{text:y("AUTO_COUNT"),y:bx.TITLE_Y_COUNT}),(0,wt.jsxs)(sa.W2,{x:bx.MODAL_WIDTH/2-200,y:320,children:[(0,wt.jsx)(sa.TC,{draw:function(e){e.clear(),e.beginFill(xx),e.drawRoundedRect(0,0,400,40,30),e.endFill()}}),bx.COUNT_OPTIONS.map((function(e,n){return(0,wt.jsxs)(sa.W2,{x:400/6*n,interactive:!0,cursor:"pointer",onpointerdown:function(){Cx(),i(e)},children:[(0,wt.jsx)(sa.TC,{draw:function(n){n.clear(),n.beginFill(e===a?7581414:xx,1),n.drawRoundedRect(0,0,400/6,40,30),n.endFill()}}),(0,wt.jsx)(sa.xv,{text:"".concat(0===e?"â":e),x:400/6/2,y:20,anchor:.5,style:kx.OPTION})]},n)}))]}),(0,wt.jsx)(Ax,{text:y("CANCEL"),x:bx.MODAL_WIDTH/2,y:bx.MODAL_HEIGHT-80,onClick:function(){return l(!1)}}),(0,wt.jsx)(Ax,{text:y("START"),x:bx.MODAL_WIDTH/2+160,y:bx.MODAL_HEIGHT-80,color:32787,onClick:function(){ft.Z.updateChip(b),u({numbers:s,amount:b}),l(!1),d(a),m(1),f(Sx.START)}})]})]}):null},Mx=function(e){var n=e.zIndex,t=void 0===n?200:n,a=e.yOffset,i=void 0===a?335:a,r=(0,c.v9)((function(e){return e.calculatorInfo.show})),o=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),s=function(){Cx(),pi.close()};return r&&null!==o?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.TC,{eventMode:"static",zIndex:t,onpointerdown:s,draw:function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,sx,i),e.endFill()}}),(0,wt.jsx)(Mf,{value:o,position:{x:0,y:i},zIndex:t,width:sx,height:390,confirmClick:function(){var e;if(Cx(),0!==o){var n=null===(e=qn.Z.getState().gamePanelInfo.info)||void 0===e?void 0:e.gameId,t=zn.nk.endpoints.getGameSetting.select(n)(qn.Z.getState()).data||{},a=t.bettingModes,i=void 0===a?[]:a,r=t.singleBetPrice,c=Ia(i,void 0===r?0:r);null!==o&&o<c&&pi.setEditAmount(c),pi.confirmHandle()}else pi.close()},backClick:function(e){Cx(),pi.updateEditAmount(e)},cancelClick:s,numberClick:function(e){Cx(),pi.updateEditAmount("".concat(e))}})]}):null},Zx=function(){return"betHistory"===Bx((function(e){return e.viewData.activePanel}))?(0,wt.jsx)(pm,{closeBetHistory:function(){Bx.getState().viewData.setActivePanel(null)}}):null},Dx=function(e){var n=e.label,t=e.value;return void 0!==t&&0!==t?(0,wt.jsxs)("p",{children:[n,": ",t]}):null},Lx=function(){var e=Bx((function(e){return e.viewData.activePanel})),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.eM)(n).data,a=(0,Fn.he)("containers.GamesIntro."),i=t||{},r=i.bettingModes,o=void 0===r?[]:r,s=i.singleBetPrice,u=void 0===s?0:s,l=i.betAmountMax,d=i.betAmountMaxByNumero,m=i.winAmountMax,f=i.winAmountMaxByNumero,p=i.prizeMaxByNumeroMode,g=i.profitMaxByNumero,h="PROFIT"===p;return"intro"===e?(0,wt.jsx)(Cv,{handleClose:function(){return Bx.getState().viewData.setActivePanel(null)},descriptionText:a("Keno.description"),customSection:(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Dx,{label:a("MIN_BET"),value:
1Ia(o,u)}),(0,wt.jsx)(Dx,{label:a("GAME_MAX_BET_PER_BET"),value:l}),(0,wt.jsx)(Dx,{label:a("GAME_MAX_BET_PER_DRAW"),value:d}),(0,wt.jsx)(Dx,{label:a("MAX_BONUS_PER_BET"),value:m}),h?(0,wt.jsx)(Dx,{label:a("MAX_PROFIT_PER_DRAW"),value:g}):(0,wt.jsx)(Dx,{label:a("MAX_BONUS_PER_DRAW"),value:f}),!!(m||h&&g||!h&&f)&&(0,wt.jsx)("p",{children:a("BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION")})]})}):null},Gx="".concat("/mini-game/s1","/"),Wx=[{src:"".concat(Gx,"sprite-sheet/ani_hand/ani_hand.json")}],Ux=[{src:t(80154),alias:["".concat(dx,"_auto_normal")]},{src:t(2498),alias:["".concat(dx,"_auto_disable")]},{src:t(10952),alias:["".concat(dx,"_start_normal")]},{src:t(11263),alias:["".concat(dx,"_start_disable")]},{src:t(31656),alias:["".concat(dx,"_stop_normal")]},{src:t(91153),alias:["".concat(dx,"_stop_disable")]},{src:t(2376),alias:["".concat(dx,"_bet_normal")]},{src:t(70886),alias:["".concat(dx,"_bet_disable")]},{src:t(95324),alias:["".concat(dx,"_background")]},{src:t(33943),alias:["".concat(dx,"_button")]},{src:t(61613),alias:["".concat(dx,"_number_default")]},{src:t(89948),alias:["".concat(dx,"_number_selected")]},{src:t(1e3),alias:["".concat(dx,"_number_matched_default")]},{src:t(28669),alias:["".concat(dx,"_number_matched_selected")]},{src:t(1594),alias:["".concat(dx,"_star_default")]},{src:t(1210),alias:["".concat(dx,"_star_achieved")]}],qx=[].concat((0,u.Z)(Tl),Ux,(0,u.Z)(El),(0,u.Z)(Pl),Wx),zx=(eb={},(0,l.Z)(eb,"".concat(dx,"_bgm_keno"),t(12455)),(0,l.Z)(eb,"".concat(dx,"_s_pick"),t(77475)),(0,l.Z)(eb,"".concat(dx,"_s_win1"),t(31597)),(0,l.Z)(eb,"".concat(dx,"_s_win2"),t(5388)),(0,l.Z)(eb,"".concat(dx,"_s_win3"),t(62669)),(0,l.Z)(eb,"".concat(dx,"_s_win4"),t(91299)),(0,l.Z)(eb,"".concat(dx,"_s_win5"),t(83068)),(0,l.Z)(eb,"".concat(dx,"_s_win6"),t(69762)),(0,l.Z)(eb,"".concat(dx,"_s_win7"),t(12476)),(0,l.Z)(eb,"".concat(dx,"_s_win8"),t(55130)),(0,l.Z)(eb,"".concat(dx,"_s_win9"),t(20975)),(0,l.Z)(eb,"".concat(dx,"_s_win10"),t(68261)),eb),Fx=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=Bx((function(e){return e.viewData.activePanel})),i=function(e){Ix(a===e?"_s_button_03":"_s_button_01"),Bx.getState().viewData.togglePanel(e)};return(0,wt.jsxs)(sa.W2,{position:t,children:[(0,wt.jsx)(Sm,{onClick:function(){return i("intro")},visible:"intro"===a}),(0,wt.jsx)(Am,{position:[50,0],onClick:function(){return i("betHistory")},visible:"betHistory"===a}),(0,wt.jsx)(Em,{position:[100,0]})]})},Vx=function(){var e=Ji(!1).closeGamePanel,n=aa().isCloseIconTop;return(0,wt.jsxs)(sa.W2,{children:[!n&&(0,wt.jsx)(Qi,{position:[592,0],onClick:e}),(0,wt.jsx)(Fx,{})]})},Hx=Array.from({length:40},(function(e,n){return n+1})),Yx=function(){var e=(0,r.useState)(new Set),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,r.useState)([]),l=(0,ot.Z)(s,2),d=l[0],m=l[1],f=(0,r.useState)(new Set),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=Bx((function(e){return e.game.drawState})),b=Bx((function(e){return e.game.betData})),x=Bx((function(e){return e.autoPlay.state})),y=Bx((function(e){return e.autoPlay.count})),_=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.MJ)(),o=(0,ot.Z)(t,1)[0],s=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(n)).data,l=(0,zn.De)().refetch,d=(0,r.useRef)(n),m=(0,r.useRef)(s),f=(0,r.useRef)(e),p=(0,r.useRef)(l);(0,r.useEffect)((function(){d.current=n,m.current=s,f.current=e,p.current=l}),[n,s,e,l]);var g=(0,r.useCallback)((function(e){var n=e.playId,t=e.bettingString,a=e.amount;return{gameId:d.current,playId:n,bettingApproach:1,bettingSlip:null,bettingContent:t,singleBetPrice:a,winStop:!1}}),[]),h=(0,r.useCallback)((function(e){var n,t=null==e||null===(n=e.data)||void 0===n?void 0:n.errorCode,a=f.current;switch(t){case"BALANCE_NOT_ENOUGH_ERROR":case"BALANCE_NOT_ENOUGH":Ca.Z.show($t.k9.gameMessage,a("BALANCE_NOT_ENOUGH"));break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":var i=m.current||{},r=i.betAmountMaxByNumero,o=void 0===r?0:r,c=i.betAmountMax,s=[o,void 0===c?0:c].filter((function(e){return e>0})),l=s.length>0?Math.min.apply(Math,(0,u.Z)(s)):0;Ca.Z.show($t.k9.gameMessage,a("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:l}));break;case"IS_LOCK_TIME":Ca.Z.show($t.k9.gameMessage,a("IS_LOCK_TIME"));break;case"PLAYID_CLOSED":Ca.Z.show($t.k9.gameMessage,a("PLAYID_CLOSED"));break;case"NOT_SUPPORT_TRIAL_CUSTOMER":Ca.Z.show($t.k9.gameMessage,a("TRAIL_NOT_SUPPORT"));break;default:Ca.Z.show($t.k9.gameMessage,a("SYSTEM_ERROR"))}}),[]);return{submitBet:(0,r.useCallback)((0,i.Z)((0,a.Z)().mark((function e(){var n,t,i,r,c,s,u,l,d;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Bx.getState(),t=n.game,i=n.autoPlay,r=n.balanceBar,c=t.betData,t.setDrawState(Px.BETTING),s=g({playId:3128,bettingString:Array.from(c.numbers||[]).map((function(e){return String(e).padStart(2,"0")})).join("-"),amount:c.amount||0}),e.prev=4,e.next=7,o([s]).unwrap();case 7:return u=e.sent,l=u.value.winningNumber.split(",").map(Number),ad("ææ³¨æå:",u),d=c.amount||0,r.handleStartBalance(d),t.setDrawData({winNo:l,numero:u.value.numero}),e.abrupt("return",u.value.winningNumber.split(",").map(Number));case 16:return e.prev=16,e.t0=e.catch(4),id("ææ³¨å¤±æ:",e.t0),h(e.t0),i.setState(Sx.STOP),t.setDrawState(Px.INITIAL),e.abrupt("return",[]);case 23:case"end":return e.stop()}}),e,null,[[4,16]])}))),[g,o,h]),updateBalanceAfterReveal:(0,r.useCallback)((0,i.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Bx.getState(),t=n.balanceBar,e.next=3,t.handleEndGameBalance(p.current);case 3:case"end":return e.stop()}}),e)}))),[])}}(),w=_.submitBet,T=_.updateBalanceAfterReveal,k=function(){var e=(0,r.useRef)(new Set),n=(0,r.useCallback)((function(){e.current.forEach(clearTimeout),e.current.clear()}),[]),t=(0,r.useCallback)((function(n,t){var a=setTimeout((function(){n(),e.current.delete(a)}),t);return e.current.add(a),a}),[]),a=(0,r.useCallback)((function(n){clearTimeout(n),e.current.delete(n)}),[]);return(0,r.useEffect)((function(){return function(){return n()}}),[n]),{runTimer:t,clearAllTimers:n,clearTimer:a}}(),I=k.runTimer,C=k.clearAllTimers,E=(0,r.useRef)(0),j=(0,r.useRef)(t),P=(0,r.useRef)(0),S=(0,r.useRef)(x),N=v===Px.INITIAL&&x===Sx.STOP;(0,r.useEffect)((function(){j.current=t}),[t]);var B=(0,r.useCallback)((function(){Bx.getState().game.setBetData({numbers:null}),o(new Set),m([]),h(new Set)}),[]),A=(0,r.useCallback)((function(e){10===d.length&&(B(),E.current=0),o((function(n){var t=new Set(n);return t.has(e)?t.delete(e):n.size<10&&t.add(e),t}))}),[d.length,B]),R=(0,r.useCallback)((function(){for(var e=[].concat(Hx),n=e.length-1;n>0;n--){var t=Math.floor(Math.random()*(n+1)),a=[e[t],e[n]];e[n]=a[0],e[t]=a[1]}var i=e.slice(0,10),r=new Set(i);Bx.getState().game.setBetData({numbers:r}),o(r),h(new Set)}),[]),O=(0,r.useCallback)((function(e,n){C(),h(new Set);var t=0;e.forEach((function(a,i){I((function(){var r;h((function(e){var n=new Set(e);return n.add(a),n})),j.current.has(a)&&((r=++t)>=1&&r<=10&&(null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(dx,"_s_win").concat(r),{volume:1}))),i===e.length-1&&n&&I(n,200)}),100*i)})),m(e)}),[C,I]),M=(0,r.useCallback)(function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n===P.current){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,w();case 4:if(0!==(t=e.sent).length){e.next=7;break}return e.abrupt("return");case 7:E.current+=1,Bx.getState().autoPlay.setExecutedCount(E.current),O(t,(0,i.Z)((0,a.Z)().mark((function e(){var t,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.next=4,(0,Fn.gw)(1e3);case 4:if(t=0===y,i=E.current<(null!=y?y:0),n===P.current&&(t||i)){e.next=10;break}return Bx.getState().game.setDrawState(Px.INITIAL),Bx.getState().autoPlay.setState(Sx.STOP),e.abrupt("return");case 10:M(n);case 11:case"end":return e.stop()}}),e)}))));case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}
1(),[y,O,T,w]),Z=(0,r.useCallback)((0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w();case 2:n=e.sent,O(n,(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:Bx.getState().game.setDrawState(Px.INITIAL);case 3:case"end":return e.stop()}}),e)}))));case 4:case"end":return e.stop()}}),e)}))),[O,T,w]);return(0,r.useEffect)((function(){if(x===Sx.START){if(b.numbers&&null!==y&&b.amount){o(b.numbers),E.current=0,P.current+=1;var e=P.current;M(e)}}else P.current+=1,Bx.getState().autoPlay.setExecutedCount(0);return function(){P.current+=1}}),[x,b.numbers,b.amount,y,M]),(0,r.useEffect)((function(){var e=S.current===Sx.START&&x===Sx.STOP;S.current=x,e||v===Px.BETTING&&x===Sx.STOP&&Z()}),[v,x,Z]),(0,r.useEffect)((function(){Bx.getState().game.setBetData({numbers:0===t.size?null:t})}),[t]),{selected:t,randomTen:d,revealing:g,isInteractive:N,toggleNumber:A,clearAll:B,randomNumber:R,revealNumbers:O,placeBet:Z,autoBet:M}},Xx=(0,gt.q)(sa.W2),Kx=function(e){var n=e.x,t=e.y,a=e.interactive,i=e.onClick,o=e.text,c=e.hitArea,s=e.alpha,u=void 0===s?1:s,l=(0,r.useState)(!1),d=(0,ot.Z)(l,2),m=d[0],f=d[1],p=(0,gt.q_)({scale:m?1.05:1,config:{tension:300,friction:20}}).scale,g=22.5,h=n+140,v=t+g;return(0,wt.jsxs)(Xx,{x:h,y:v,pivot:[140,g],scale:a?p:1,interactive:a,pointerdown:i,cursor:"pointer",hitArea:c,eventMode:a?"static":"none",onpointerenter:function(){return a&&f(!0)},onpointerleave:function(){return f(!1)},children:[(0,wt.jsx)(sa.jy,{image:"".concat(dx,"_button"),width:280,height:45}),(0,wt.jsx)(sa.xv,{text:o,x:140,y:g,anchor:.5,alpha:u,style:Tx.button})]})},Qx=function(e){var n=e.isInteractive,t=e.selectedSize,a=e.onRandom,i=e.onClear,o=(0,Fn.he)("containers.GamesIntro.Keno."),c=(0,r.useMemo)((function(){return new fa.AeJ(0,0,280,45)}),[]);return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Kx,{x:0,y:0,interactive:n,onClick:function(){Cx(),a()},text:o("RANDOM"),hitArea:c,alpha:n?1:.5}),(0,wt.jsx)(Kx,{x:300,y:0,interactive:n&&t>0,onClick:function(){Cx(),i()},text:o("CLEAR"),hitArea:c,alpha:n&&t>0?1:.5})]})},Jx=(0,gt.q)(sa.W2),$x=function(e){var n=e.num,t=e.isSelected,a=e.isDisabled,i=e.isMatched,o=e.isInteractive,c=e.isAfterDrawing,s=e.toggleNumber,u=(0,r.useState)(!1),l=(0,ot.Z)(u,2),d=l[0],m=l[1],f=(n-1)%5,p=Math.floor((n-1)/5),g=o&&(!a||c),h=(0,gt.q_)({scale:d&&g?1.05:1,config:{tension:300,friction:20}}).scale,v=yx,b="".concat(dx,"_number_default");return i?(b="".concat(dx,t?"_number_matched_selected":"_number_matched_default"),v=yx):a?(v=8947848,b="".concat(dx,"_number_default")):t&&(v=yx,b="".concat(dx,"_number_selected")),(0,wt.jsxs)(Jx,{x:69.25*f+31.5,y:60.29*p+28,pivot:[31.5,28],scale:h,eventMode:o?"static":"none",onpointerenter:function(){return g&&m(!0)},onpointerleave:function(){return m(!1)},onpointerdown:function(){o&&(null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(dx,"_s_pick"),{volume:1}),s(n))},cursor:a&&!c?"default":"pointer",children:[(0,wt.jsx)(sa.jy,{image:b,width:63,height:56,tint:v}),(0,wt.jsx)(sa.xv,{text:"".concat(n),x:31.5,y:26,anchor:.5,style:i?Tx.number_matched:Tx.number,eventMode:"none"})]},n)},ey=function(e){var n=e.selected,t=e.revealing,a=e.randomTen,i=e.isInteractive,o=e.toggleNumber,c=(0,r.useMemo)((function(){return new Set(a
1)}),[a]),s=a.length>0,u=(0,r.useMemo)((function(){return Array.from({length:40},(function(e,n){return n+1})).map((function(e){var a=n.has(e),r=t.has(e),u=c.has(e)&&r,l=n.size>=10&&!a;return(0,wt.jsx)($x,{num:e,isSelected:a,isRevealed:r,isMatched:u,isDisabled:l,isInteractive:i,isAfterDrawing:s,toggleNumber:o},e)}))}),[n,i,o,t,c,s]);return(0,wt.jsx)(sa.W2,{children:u})},ny={1:{0:.4,1:2.6},2:{0:0,1:1.6,2:5.8},3:{0:0,1:0,2:2.5,3:50},4:{0:0,1:0,2:1.7,3:10,4:85},5:{0:0,1:0,2:1.4,3:4,4:14,5:300},6:{0:0,1:0,2:0,3:3,4:9.5,5:160,6:600},7:{0:0,1:0,2:0,3:2,4:7,5:30,6:300,7:700},8:{0:0,1:0,2:0,3:2,4:4,5:10,6:50,7:350,8:800},9:{0:0,1:0,2:0,3:2,4:2.5,5:4.5,6:12,7:60,8:450,9:900},10:{0:0,1:0,2:0,3:1.6,4:2,5:3.2,6:6,7:30,8:100,9:500,10:1e3}},ty=(0,gt.q)(sa.W2),ay=function(e){var n,t=e.hits,r=e.i,o=e.isAchieved,c=e.hasValue,s=e.oddsValue,u=e.isHighestAchieved,l=5+44*r,d=e.isGameComplete&&u,m=(0,gt.q_)({from:{scale:1},to:(n=(0,i.Z)((0,a.Z)().mark((function e(n){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!d){e.next=12;break}t=0;case 2:if(!(t<3)){e.next=10;break}return e.next=5,n({scale:1.3,config:{duration:300}});case 5:return e.next=7,n({scale:1,config:{duration:300}});case 7:t++,e.next=2;break;case 10:e.next=14;break;case 12:return e.next=14,n({scale:1});case 14:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),reset:!0}),f=m.scale;return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsxs)(ty,{x:37,y:l+1.5,scale:f,children:[(0,wt.jsx)(sa.jy,{image:"".concat(dx,o?"_star_achieved":"_star_default"),width:33.5,height:32.2,anchor:.5,x:0,y:0}),(0,wt.jsx)(sa.xv,{text:"".concat(t),anchor:.5,x:0,y:1.5,style:Tx.star_number})]}),(0,wt.jsx)(sa.xv,{text:c?"".concat(s.toFixed(2),"x"):"-",x:145,y:l+1.5,anchor:[1,.5],style:Tx.odds})]},t)},iy=function(e){var n=e.selectedSize,t=e.revealing,a=e.selected,i=(0,r.useMemo)((function(){var e=Array.from(a).filter((function(e){return t.has(e)})).length,i=-1,r=ny[n];r&&r[e]>0&&(i=e);var o=10===t.size;return Array.from({length:11},(function(a,r){var c,s,u=10-r,l=t.size>0&&u<=e,d=(null===(c=ny[n])||void 0===c?void 0:c[u])||0,m=null===(s=ny[n])||void 0===s?void 0:s.hasOwnProperty(u),f=u===i;return(0,wt.jsx)(ay,{hits:u,i:r,isAchieved:l,hasValue:m,oddsValue:d,isHighestAchieved:f,isGameComplete:o},u)}))}),[n,t,a]);return(0,wt.jsx)(sa.W2,{children:i})},ry=function(){var e=Yx(),n=e.selected,t=e.revealing,a=e.randomTen,i=e.isInteractive,r=e.toggleNumber,o=e.clearAll,c=e.randomNumber;return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(sa.jy,{image:"".concat(dx,"_background"),width:sx,height:675,y:5}),(0,wt.jsx)(sa.W2,{x:mx,y:fx,children:(0,wt.jsx)(ey,{selected:n,revealing:t,randomTen:a,isInteractive:i,toggleNumber:r})}),(0,wt.jsx)(sa.W2,{x:px,y:gx,children:(0,wt.jsx)(iy,{selectedSize:n.size,revealing:t,selected:n})}),(0,wt.jsx)(sa.W2,{x:hx,y:vx,children:(0,wt.jsx)(Qx,{isInteractive:i,selectedSize:n.size,onRandom:c,onClear:o})})]})},oy=function(){var e=Bx((function(e){return e.game.drawData})),n=Bx((function(e){return e.balanceBar.prevBalance})),t=Bx((function(e){return e.balanceBar.balanceDifference})),a=Bx((function(e){return e.balanceBar.balanceVisible})),i=(0,zn.De)().refetch,o=null===n?"Loading...":(0,Fn.mT)(n),c=null!=e&&e.numero?"No.".concat(e.numero):"";return(0,r.useEffect)((function(){i().then((function(e){if(e.data){var n=e.data.availBalance;Bx.getState().balanceBar.setPrevBalance(n)}}))}),[i]),(0,wt.jsx)(_v,{position:[0,725],balanceText:o,numero:c,balanceVisible:a,balanceDif:"".concat(t>0?"+":"-").concat((0,Fn.mT)(Math.abs(t))),balanceDifColor:t>0?"#fae124":"#86141a"})},cy=function(){var e=Bx((function(e){return e.game.drawState})),n=Bx((function(e){return null!==e.game.betData.numbers})),t=Bx((function(e){return e.autoPlay.state})),a=Bx((function(e){return e.autoPlay.count})),i=Bx((function(e){return e.autoPlay.executedCount})),o=t===Sx.START,s=e===Px.BETTING,u=i===a&&0!==a,l=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),m=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),f=(0,r.useMemo)((function(){var e=s&&!o||u,t=n&&!u;return{texture:e?fa.P6Y.TextureCache["".concat(dx,"_bet_disable")]:o?fa.P6Y.TextureCache["".concat(dx,"_stop_normal")]:t?fa.P6Y.TextureCache["".concat(dx,"_bet_normal")]:fa.P6Y.TextureCache["".concat(dx,"_bet_disable")],disabled:e||!n}}),[s,o,u,n]),p=(0,r.useMemo)((function(){return!o||null===a||u?null:0===a?"â":a-i}),[o,a,i,u]);return(0,wt.jsxs)(sa.W2,{position:[425,0],children:[(0,wt.jsx)(ov,{onClick:function(){if(o)Bx.getState().autoPlay.setState(Sx.STOP);else{var e=Bx.getState().game;e.setBetData((0,d.Z)((0,d.Z)({},e.betData),{},{amount:l[m]})),e.setDrawState(Px.BETTING)}},width:203,height:83,texture:f.texture,disabled:f.disabled}),null!==p&&(0,wt.jsx)(sa.xv,{text:String(p),position:[161.5,41.5],anchor:.5,alpha:.85,style:Tx.bet_button_counter})]})},sy=["cyan","red","purple","green","blue"],uy=function(){var e=Bx((function(e){return e.game.drawState})),n=Bx((function(e){return e.game.betData.numbers}
1)),t=Bx((function(e){return e.autoPlay.state})),a=Bx((function(e){return e.balanceBar.isBalanceFetching})),i=Bx((function(e){return e.autoPlay.setState})),o=Bx((function(e){return e.autoPlay.setShow})),s=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),u=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),l=e!==Px.INITIAL||null===n||t===Sx.START||a,d=(0,r.useCallback)((function(e){e.clear(),e.beginFill(0,.3),e.drawRect(0,0,sx,70),e.endFill()}),[]);return(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)(sa.W2,{position:[0,645],children:[(0,wt.jsx)(sa.W2,{position:[0,13],children:(0,wt.jsx)(sa.TC,{draw:d})}),(0,wt.jsx)(qg,{onClick:function(){Cx(),pi.open()},position:[12,4],isFlipped:!0,disabled:e!==Px.INITIAL}),s.map((function(n,t){return t<3?(0,wt.jsx)(Lf,{color:sy[t],position:[82*t+5*t+94,38],textValue:"".concat(n),isLight:t===u,onClick:function(){return function(n){e===Px.INITIAL&&(Cx(),ft.Z.changeSelectedChip(n))}(t)},isMask:t!==u},t):null})),(0,wt.jsx)(ov,{position:[319,0],width:98,height:83,texture:fa.P6Y.TextureCache["".concat(dx,"_auto_").concat(l?"disable":"normal")],onClick:function(){Cx(),i(Sx.STOP),o(!0)},disabled:l}),(0,wt.jsx)(cy,{}),(0,wt.jsx)(sv,{zIndex:1,position:[580,41],isShow:null!==n&&t===Sx.STOP&&e===Px.INITIAL})]})})},ly=function(){return(0,wt.jsxs)(sa.W2,{position:[0,55],children:[(0,wt.jsx)(oy,{}),(0,wt.jsx)(uy,{})]})},dy=function(){var e,n,t,o,s,u,l,m,f=aa().containerScale,p=(n=(0,r.useState)(0),t=(0,ot.Z)(n,2),o=t[0],s=t[1],u=(0,c.v9)((function(e){return e.gamePanelInfo})),l=_t().sendEvent,m=(0,r.useRef)(l),(0,r.useEffect)((function(){m.current=l}),[l]),(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),fa.deM.addBundle("uiSounds",Ll),Ea.eq.add(Ll),Ea.eq.add(zx),e.next=7,fa.deM.load(qx,(function(e){e<1&&s(90*e)}));case 7:return e.prev=7,e.next=10,document.fonts.load("1em gothamrounded-bold");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),console.warn("Font loading failed or timed out",e.t0);case 15:m.current({action:"game_loaded",data:{game_code:null===(n=u.info)||void 0===n?void 0:n.gameCode}}),s(100);case 17:case"end":return e.stop()}}),e,null,[[7,12]])})))()}),[null===(e=u.info)||void 0===e?void 0:e.gameCode]),o);(0,r.useEffect)((function(){return(0,Fn.yH)(),Ea.eq.play("".concat(dx,"_bgm_keno"),{loop:!0,volume:1}),function(){Bx.getState().game.reset(),null!==Ea.eq&&void 0!==Ea.eq&&Ea.eq.exists("".concat(dx,"_bgm_keno"))&&Ea.eq.stop("".concat(dx,"_bgm_keno"))}}),[]);var g={width:sx*f,height:ux*f,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(wo,{progress:p,children:(0,wt.jsxs)("div",{style:{width:sx*f,height:ux*f},className:"mini-game-keno-game-scene",children:[(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},g),{},{children:(0,wt.jsxs)(sa.W2,{scale:f,sortableChildren:!0,children:[(0,wt.jsx)(Vx,{}),(0,wt.jsx)(ry,{}),(0,wt.jsx)(ly,{}),(0,wt.jsx)(Ox,{}),(0,wt.jsx)(Mx,{yOffset:390})]})})),(0,wt.jsx)(Zx,{}),(0,wt.jsx)(Lx,{}),(0,wt.jsx)(zp,{})]})})},my=function(e){return e.BET_NOW="BET_NOW",e.LOADING_ANIMATION="LOADING_ANIMATION",e.DRAW_ANIMATION="DRAW_ANIMATION",e.SHOW_RESULT="SHOW_RESULT",e.AUTO_GAME="AUTO_GAME",e}({}),fy=function(e){return e.RED_WIN="RED_WIN",e.BLUE_WIN="BLUE_WIN",e.TIE="TIE",e}({}),py=function(e){return e.SCISSORS="scissors",e.ROCK="rock",e.PAPER="paper",e}({}),gy=function(e){return{game:{gameState:my.BET_NOW,drawData:null,showResultOverlay:!1,showHandAnimation:!1,setGameState:function(n){return e((function(e){e.game.gameState=n}))},setDrawData:function(n){return e((function(e){e.game.drawData=n}))},setShowResultOverlay:function(n){return e((function(e){e.game.showResultOverlay=n}))},setShowHandAnimation:function(n){return e((function(e){e.game.showHandAnimation=n}))},reset:function(){return e((function(e){e.game.gameState=my.BET_NOW,e.game.drawData=null,e.game.showResultOverlay=!1,e.game.showHandAnimation=!1,e.autoBet.isEnabled=!1,e.autoBet.cachedChips=null,e.autoBet.cachedNumero=null}))}}}},hy=function(e,n){return e.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{sortNo:n})}))},vy=function(e,n){return{betChips:{chips:[],preChips:[],sortNo:0,setChips:function(n){return e((function(e){var t=e.betChips.sortNo;e.betChips.chips=hy(n,t),e.betChips.sortNo=t+1}))},appendChips:function(n){return e((function(e){var t,a=e.betChips.sortNo;(t=e.betChips.chips).push.apply(t,(0,u.Z)(hy(n,a))),e.betChips.sortNo=a+1}))},popChips:function(){return e((function(e){var n=Math.max.apply(Math,(0,u.Z)(e.betChips.chips.map((function(e){return e.sortNo}
1))));e.betChips.chips=e.betChips.chips.filter((function(e){return e.sortNo!==n}))}))},clearChips:function(){return e((function(e){e.betChips.chips=e.betChips.chips.filter((function(e){return e.hasConfirm}))}))},resetChips:function(){return e((function(e){e.betChips.chips=[],e.betChips.sortNo=0}))},resetPreChips:function(){return e((function(e){e.betChips.preChips=[]}))},updateChipsBetting:function(){return e((function(e){e.betChips.chips=e.betChips.chips.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasBetting:!0})}))}))},confirmAndStorageChip:function(n){return e((function(e){e.betChips.chips=n,e.betChips.preChips=JSON.parse(JSON.stringify(n))}))},cachePreChips:function(){return e((function(e){e.betChips.sortNo=0;var n=hy(e.betChips.chips,0);e.betChips.preChips=JSON.parse(JSON.stringify(n))}))}}}},by=function(e,n){return{autoBet:{isEnabled:!1,isDisabled:!1,cachedChips:null,cachedNumero:null,enable:function(){return e((function(e){e.autoBet.isEnabled=!0}))},disable:function(){return e((function(e){e.autoBet.isEnabled=!1}))},reset:function(){return e((function(e){e.autoBet.isEnabled=!1,e.autoBet.cachedChips=null,e.autoBet.cachedNumero=null}))},setDisabled:function(n){return e((function(e){e.autoBet.isDisabled=n}))},cacheChips:function(n,t){return e((function(e){e.autoBet.cachedChips=t,e.autoBet.cachedNumero=n}))},clearCache:function(){return e((function(e){e.autoBet.cachedChips=null,e.autoBet.cachedNumero=null}))},getCachedChips:function(e){var t=n().autoBet,a=t.cachedChips;return t.cachedNumero===e&&a&&a.length>0?a:null},shouldExecuteAutoBet:function(){var e=n().autoBet,t=e.isEnabled,a=e.isDisabled,i=e.cachedChips;return t&&!a&&null!==i&&i.length>0},isCacheValid:function(e){var t=n().autoBet,a=t.cachedChips;return t.cachedNumero===e&&null!==a&&a.length>0}}}},xy=(0,ta.Ue)()((0,na.n)((function(){return(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},gy.apply(void 0,arguments)),Ex.apply(void 0,arguments)),jx.apply(void 0,arguments)),vy.apply(void 0,arguments)),by.apply(void 0,arguments))}))),yy=pt.Z.gameConfig.ui.prefix,_y="RPS",wy={RPS_RED:{width:228},RPS_TIE:{width:152},RPS_BLUE:{width:228}},Ty={prefix:"rps",symbolSplit:"",groupPlayId:3120,playInfoIds:[6583,6584,6585],menuInfos:[{menuPlayId:3121,playInfos:[{playInfoId:6584,betContent:"2",prizeType:"RPS_BLUE",key:"BLUE"},{playInfoId:6585,betContent:"3",prizeType:"RPS_TIE",key:"TIE"},{playInfoId:6583,betContent:"1",prizeType:"RPS_RED",key:"RED"}]}]},ky=Ty.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:Ty.groupPlayId,menuPlayId:e.menuPlayId},n)}))})).flat(),Iy=function(){null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(yy,"_s_button_02"),{volume:1})},Cy=function(){null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(yy,"_s_button_03"),{volume:1})},Ey=function(){var e="zh"===Ln.Z.getI18nLanguage()?"cn":"en";null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(_y,"_").concat(e,"_game_start"),{volume:1})},jy=function(e){switch(e.split(",")[0]){case"1":return fy.RED_WIN;case"2":return fy.BLUE_WIN;default:return fy.TIE}},Py=[{src:t(97729),alias:["".concat(_y,"_coin_orange")]},{src:t(30208),alias:["".concat(_y,"_gold")]},{src:t(97225),alias:["".concat(_y,"_silver")]},{src:t(20241),alias:["".concat(_y,"_calendar")]},{src:t(11950),alias:["".concat(_y,"_paper")]},{src:t(53768),alias:["".concat(_y,"_rock")]},{src:t(89575),alias:["".concat(_y,"_scissors")]},{src:t(51405),alias:["".concat(_y,"_battle-background")]},{src:t(4004),alias:["".concat(_y,"_result-background")]},{src:t(81552),alias:["".concat(_y,"_ball-red")]},{src:t(30791),alias:["".concat(_y,"_ball-blue")]},{src:t(26750),alias:["".concat(_y,"_ball-green")]},{src:t(64079),alias:["".concat(_y,"_input")]},{src:t(76586),alias:["".concat(_y,"_button-go")]},{src:t(26854),alias:["".concat(_y,"_result-blue")]},{src:t(42875),alias:["".concat(_y,"_result-tie")]},{src:t(16779),alias:["".concat(_y,"_result-red")]},{src:t(78133),alias:["".concat(_y,"_paper-left")]},{src:t(15600),alias:["".concat(_y,"_paper-right")]},{src:t(70395),alias:["".concat(_y,"_rock-left")]},{src:t(10572),alias:["".concat(_y,"_rock-right")]},{src:t(16205),alias:["".concat(_y,"_scissors-left")]},{src:t(9445),alias:["".concat(_y,"_scissors-right")]},{src:t(80771),alias:["".concat(_y,"_win-mask-left")]},{src:t(78347),alias:["".concat(_y,"_win-mask-right")]},{src:t(91774),alias:["".concat(_y,"_lose-mask-left")]},{src:t(72907),alias:["".concat(_y,"_lose-mask-right")]},{src:t(62309),alias:["".concat(_y,"_result-vs")]},{src:t(84666),alias:["".concat(_y,"_betting-board-background")]},{src:t(69566),alias:["".concat(_y,"_betting-board-red")]},{src:t(88777),alias:["".concat(_y,"_betting-board-green")]},{src:t(25671),alias:["".concat(_y,"_betting-board-blue")]},{src:t(68945),alias:["".concat(_y,"_betting-board-win")]},{src:t(87042),alias:["".concat(_y,"_betting-board-lose")]}].concat((0,u.Z)(Tl),(0,u.Z)(El),(0,u.Z)(Pl)),Sy=(nb={},(0,l.Z)(nb,"".concat(_y,"_bgm_rps"),t(53752)),(0,l.Z)(nb,"".concat(_y,"_en_game_start"),t(39053)),(0,l.Z)(nb,"".concat(_y,"_en_atie"),t(31499)),(0,l.Z)(nb,"".concat(_y,"_en_bluewin"),t(75817)),(0,l.Z)(nb,"".concat(_y,"_en_redwin"),t(1633)),(0,l.Z)(nb,"".concat(_y,"_cn_game_start"),t(19328)),(0,l.Z)(nb,"".concat(_y,"_cn_atie"),t(51516)),(0,l.Z)(nb,"".concat(_y,"_cn_bluewin"),t(16198)),(0,l.Z)(nb,"".concat(_y,"_cn_redwin"),t(62471)),nb),Ny=function(){var e=xy((function(e){var n;return null===(n=e.game.drawData)||void 0===n?void 0:n.gameResult})),n=xy((function(e){return e.game.showResultOverlay})),t=xy((function(e){return e.game.showHandAnimation})),a=xy((function(e){return e.game.gameState})),i=(0,r.useRef)(0),o=a===my.DRAW_ANIMATION&&!t,c=(0,r.useRef)(null),s=(0,r.useRef)(null),u=(0,r.useRef)(null),l=(0,r.useRef)(null),d=n&&e===fy.BLUE_WIN,m=n&&e===fy.RED_WIN;return(0,sa.m9)((function(){if(o){i.current+=.2;var e=Math.sin(i.current)>0;c.current&&(c.current.visible=e),l.current&&(l.current.visible=e),s.current&&(s.current.visible=!e),u.current&&(u.current.visible=!e)}else i.current=0,c.current&&(c.current.visible=d),l.current&&(l.current.visible=d),s.current&&(s.current.visible=m),u.current&&(u.current.visible=m)})),(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.jy,{ref:c,width:332,height:290,texture:fa.P6Y.TextureCache["".concat(_y,"_win-mask-left")],visible:!1}),(0,wt.jsx)(sa.jy,{ref:s,width:332,height:290,texture:fa.P6Y.TextureCache["".concat(_y,"_lose-mask-left")],visible:!1}),(0,wt.jsx)(sa.jy,{ref:u,width:332,height:290,position:[278,0],texture:fa.P6Y.TextureCache["".concat(_y,"_win-mask-right")],visible:!1}),(0,wt.jsx)(sa.jy,{ref:l,width:334,height:291,position:[276.5,-.5],texture:fa.P6Y.TextureCache["".concat(_y,"_lose-mask-right")],visible:!1})]})},By=165.25,Ay=(tb={},(0,l.Z)(tb,fy.BLUE_WIN,"".concat(_y,"_result-blue")),(0,l.Z)(tb,fy.TIE,"".concat(_y,"_result-tie")),(0,l.Z)(tb,fy.RED_WIN,"".concat(_y,"_result-red")),tb),Ry=function(){var e=xy((function(e){return e.game.gameState})),n=xy((function(e){var n;return null===(n=e.game.drawData)||void 0===n?void 0:n.gameResult})),t=xy((function(e){return e.game.showResultOverlay}));return e!==my.DRAW_ANIMATION||t?n&&t?(0,wt.jsx)(sa.jy,{width:279.5,height:253,position:[By,18.5],texture:fa.P6Y.TextureCache[Ay[n]]}):null:(0,wt.jsx)(sa.jy,{width:279.5,height:253,position:[By,18.5],texture:fa.P6Y.TextureCache["".concat(_y,"_result-vs")]})},Oy=215,My=Math.PI/6,Zy={1:"scissors",2:"rock",3:"paper"},Dy=function(){var e=xy((function(e){return e.game.showHandAnimation})),n=xy((function(e){return e.game.showResultOverlay})),t=(0,r.useState)(0),a=(0,ot.Z)(t,2),i=a[0],o=a[1],c=(0,r.useRef)(null),s=(0,r.useRef)(!1),u=(0,r.useRef)(null),l=(0,r.useState)(!1),d=(0,ot.Z)(l,2),m=d[0],f=d[1],p=(0,r.useState)(0),g=(0,ot.Z)(p,2),h=g[0],v=g[1],b=(0,r.useRef)(null),x=(0,r.useRef)(null),y=(0,r.useRef)(!1),_=(0,r.useRef)(null),w=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(e){var n=xy.getState().game.drawData;if(!n)return;var t=n.winNo.split(","),a=Zy[t[2]],i=Zy[t[1]];a&&i&&(u.current={left:a,right:i}),o(0),c.current=performance.now(),s.current=!0,x.current=null,y.current=!1,f(!1),v(0)}else s.current=!1}),[e]),(0,r.useEffect)((function(){var e,t;n?_.current=null!==(e=null===(t=xy.getState().game.drawData)||void 0===t?void 0:t.gameResult)&&void 0!==e?e:null:w.current&&(_.current===fy.RED_WIN?x.current="left":_.current===fy.BLUE_WIN?x.current="right":x.current=null,x.current&&(b.current=performance.now(),y.current=!0,f(!0),v(0))),w.current=n}),[n]),(0,sa.m9)((function(){if(s.current&&null!==c.current){var e=performance.now()-c.current,n=Math.min(e/100,1);o(n),n>=1&&(s.current=!1)}if(y.current&&null!==b.current){var t=performance.now()-b.current,a=Math.min(t/700,1);v(a),a>=1&&(y.current=!1,f(!1))}}));var T=u.current;if(!e&&!m||!T)return null;var k=x.current,I=Math.PI/2*(1-i),C=Oy*i-107.5,E=717.5-Oy*i,j=225*i-80,P=h*h,S="left"===k?C-35*P:C,N="left"===k?j+65*P:j,B="left"===k?P*My-I:-I,A="right"===k?E+35*P:E,R="right"===k?j+65*P:j,O="right"===k?I-P*My:I;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sa.jy,{width:Oy,height:160,anchor:.5,position:[S,N],rotation:B,texture:fa.P6Y.TextureCache["".concat(_y,"_").concat(T.left,"-left")]}),(0,wt.jsx)(sa.jy,{width:Oy,height:160,anchor:.5,position:[A,R],rotation:O,texture:fa.P6Y.TextureCache["".concat(_y,"_").concat(T.right,"-right")]})]})},Ly=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameGroupCode})),t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),r=(0,zn.MJ)(),o=(0,ot.Z)(r,2),s=o[0],u=o[1],l=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(t)).data,d=(0,zn.Ed)().data,m=function(n){var t,a=null!==(t=null==n?void 0:n.data)&&void 0!==t?t:{},i=a.errorCode,r=a.message;switch(i){case"BALANCE_NOT_ENOUGH_ERROR":case"BALANCE_NOT_ENOUGH":Ca.Z.show($t.k9.gameMessage,e("BALANCE_NOT_ENOUGH"));break;case"BETTING_AMOUNT_OVER_LIMITS_ERROR":var o=l||{},c=o.betAmountMaxByNumero,s=void 0===c?0:c,u=o.betAmountMax,d=void 0===u?0:u,m=/numero:.*.cumulative amount:/g.test(r)?s:d;Ca.Z.show($t.k9.gameMessage,e("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:m}));break;case"IS_LOCK_TIME":Ca.Z.show($t.k9.gameMessage,e("IS_LOCK_TIME"));break;case"PLAYID_CLOSED":Ca.Z.show($t.k9.gameMessage,e("PLAYID_CLOSED"));break;default:Ca.Z.show($t.k9.gameMessage,e("SYSTEM_ERROR"))}},f=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(i){var r,o,c;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.isLoading){e.next=3;break}return rd("ææ³¨é²è¡ä¸ï¼è«ç¨å"),e.abrupt("return",null);case 3:if(null!=l&&l.singleBetPrice){e.next=6;break}return id("缺å°éæ²è¨å®è³è¨"),e.abrupt("return",null);case 6:if(0!==(r=xa(i,l.singleBetPrice)).orders.length){e.next=10;break}return rd("æ²æå¾
ææ³¨çè¨å®"),e.abrupt("return",null);case 10:return a=r.orders,o=a.map((function(e){var a,i=e.playId,r=e.bettingString,o=e.singleBetPrice,c=e.amount,s=(null==d||null===(a=d.find((function(e){return e.gameGroup===n})))||void 0===a?void 0:a.series)||0,u="".concat(r,"~1~").concat(i,"~1~").concat(s,"~").concat(c,"~~").concat(o);return{gameId:t,playId:i,bettingApproach:1,bettingSlip:u,bettingContent:r,singleBetPrice:o,winStop:!1}})),ad("æºåç¼éææ³¨è¨å®:",o),e.prev=12,e.next=15,s(o).unwrap();case 15:return c=e.sent,ad("ææ³¨æå:",c),e.abrupt("return",c);case 20:return e.prev=20,e.t0=e.catch(12),id("ææ³¨å¤±æ:",e.t0),m(e.t0),e.abrupt("return",null);case 25:case"end":return e.stop()}var a}),e,null,[[12,20]])})));return function(n){return e.apply(this,arguments)}}();return{submitBet:f}},Gy=.97,Wy=function(){var e=xy(),n=e.game,t=e.betChips,o=e.balanceBar.handleStartBalance,c=n.gameState,s=n.setDrawData,u=n.setGameState,l=t.chips,d=t.cachePreChips,m=Ly().submitBet,f=(0,r.useRef)(null),p=(0,r.useRef)({active:!1,elapsed:0,breathScale:1}),g=(0,r.useRef)(0);(0,sa.m9)((function(e){var n=f.current;if(n){var t=fa.P6Y.TextureCache["".concat(_y,"_button-go")];if(t){var a=270/t.width,i=91.5/t.height;if(!p.current.active){g.current+=.05;var r=Gy+(Math.sin(g.current)+1)/2*(1.03-Gy);return n.scale.x=a*r,void(n.scale.y=i*r)}p.current.elapsed+=e/60;var o=Math.min(p.current.elapsed/.2,1),c=1-(1-.85)*Math.sin(o*Math.PI),s=p.current.breathScale*c;n.scale.x=a*s,n.scale.y=i*s,o>=1&&(p.current.active=!1,g.current=0)}}}));var h=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n,t,i,r,c,f,h;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Gy+(Math.sin(g.current)+1)/2*(1.03-Gy),p.current={active:!0,elapsed:0,breathScale:n},0!==l.length){e.next=4;break}return e.abrupt("return");case 4:return t=va(l,"unConfirm"),u(my.LOADING_ANIMATION),e.next=8,m(l);case 8:if(i=e.sent){e.next=12;break}return u(my.BET_NOW),e.abrupt("return");case 12:d(),o(t),u(my.DRAW_ANIMATION),Ey(),r=i.value,c=r.winningNumber,f=r.numero,h=jy(c),s({winNo:c,gameResult:h,numero:f});case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,wt.jsx)(sa.jy,{ref:f,eventMode:"static",visible:c===my.BET_NOW,texture:fa.P6Y.TextureCache["".concat(_y,"_button-go")],position:[305,145],anchor:.5,onpointerdown:h})},Uy=function(){return(0,wt.jsxs)(sa.W2,{position:[15,0],children:[(0,wt.jsx)(sa.jy,{width:610,height:290,texture:fa.P6Y.TextureCache["".concat(_y,"_battle-background")]}),(0,wt.jsx)(Ny,{}),(0,wt.jsx)(Ry,{}),(0,wt.jsx)(Wy,{}),(0,wt.jsx)(Dy,{})]})},qy=Ty.playInfoIds,zy=function(){var e=(0,Fn.he)("containers.GamesPanel."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=Pa({gameId:n}).playLimit,a=(0,zn.De)().data,i=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),r=(0,c.v9)(zn.nk.endpoints.getGameSetting.select(n)).data,o=null==a?void 0:a.availBalance;return{verifyBetting:function(n,a){if(void 0!==o){var c=t?t[a]:null,
1s=n.filter((function(e){return e.playInfoId===a})),u=va(s,"unConfirm");if(!(i>o)){if(r){var l=r.betAmountMax;if(0!==l&&u+i>l)return void Ca.Z.show($t.k9.gameMessage,e("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:l}))}if(c){var d=c.betAmountMaxLimitByNumero,m=c.betAmountMinLimit;if(i<m)return void Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(m,d)}));if(0!==d&&u+i>d)return void Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(m,d)}))}return 1}Ca.Z.show($t.k9.gameMessage,e("BALANCE_NOT_ENOUGH"))}},verifyDoubleBetting:function(n){var a,i=(0,ha.Z)(qy);try{var o=function(){var i=a.value,o=t?t[i]:null,c=n.filter((function(e){return e.playInfoId===i})),s=va(c,"unConfirm");if(r){var u=r.betAmountMax;if(0!==u&&s>u)return Ca.Z.show($t.k9.gameMessage,e("BETTING_AMOUNT_OVER_LIMITS_ERROR",{amount:u})),{v:void 0}}if(o){var l=o.betAmountMaxLimitByNumero,d=o.betAmountMinLimit;if(s>0&&s<d)return Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(d,l)})),{v:void 0};if(0!==l&&s>l)return Ca.Z.show($t.k9.gameMessage,e("BET_LIMIT_NO_PLAYNAME",{rangeStr:(0,Fn.sE)(d,l)})),{v:void 0}}};for(i.s();!(a=i.n()).done;){var c=o();if("object"==typeof c)return c.v}}catch(e){i.e(e)}finally{i.f()}return 1}}},Fy=(ab={},(0,l.Z)(ab,fy.RED_WIN,"RPS_RED"),(0,l.Z)(ab,fy.BLUE_WIN,"RPS_BLUE"),(0,l.Z)(ab,fy.TIE,"RPS_TIE"),ab),Vy=function(e){var n=e.color,t=e.groupPlayId,o=e.menuPlayId,s=e.playInfoId,u=function(e,n,t){var o=ac(e,n,t).getBonus,s=(0,zn.Ed)(),u=s.data,l=s.isLoading,d=(0,c.v9)((function(e){return e.gamePanelInfo.info})),m=(0,r.useState)(null),f=(0,ot.Z)(m,2),p=f[0],g=f[1];return(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ln.Z.getPrizeMode();case 2:(n=e.sent)&&g(n);case 4:case"end":return e.stop()}}),e)})))()}),[]),{getBonusForDisplay:function(e){if(null===p||!d)return null;var n=o(e);if(0===n)return 0;if("Lott"===p){var t;if(l||!u)return null;var a=(null==u||null===(t=u.find((function(e){return e.gameGroup===d.gameGroupCode})))||void 0===t?void 0:t.series)||100;return new Ja.Z(n).mul(a).floor().div(100).toNumber()}return n},isLoading:null===p||!d||"Lott"===p&&l}}((0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t,o),l=u.getBonusForDisplay,d=u.isLoading,m=l(s),f=(0,r.useMemo)((function(){return new fa.pn8({align:"center",fontFamily:"Arial",fontSize:50,fontWeight:"bold",fill:n,stroke:"rgba(255,255,255,0.1)",strokeThickness:1})}),[n]);return(0,wt.jsx)(sa.xv,{text:d?"-":"1:".concat(m),anchor:.5,x:100,y:180,style:f})},Hy=(0,r.forwardRef)((function(e,n){var t=e.bonusChips,o=e.position,c=e.gameState,s=e.animationState,u=e.zIndex,l=void 0===u?0:u,d=(0,r.useMemo)((function(){return ka(t)}),[t]);return(0,wt.jsx)(sa.W2,{ref:n,position:[o[0],o[1]],zIndex:l,children:d.map((function(e,n){return(0,wt.jsx)(ma.AM,{from:{position:[240,-520],opacity:0},to:function(){var n=(0,i.Z)((0,a.Z)().mark((function n(t){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c!==my.SHOW_RESULT){n.next=14;break}n.t0=s,n.next=n.t0===$t.SR.FlyOrigin?4:n.t0===$t.SR.FlyWinTarget?9:14;break;case 4:return n.next=6,t({opacity:1,config:{duration:0}});case 6:return n.next=8,t({position:[e.moveX,e.moveY],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 8:case 13:return n.abrupt("break",14);case 9:return n.next=11,t({position:[0,0],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 11:return n.next=13,t({opacity:0,config:{duration:200}});case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),children:function(n){return(0,wt.jsx)(Lf,{position:n.position,scale:.5,color:nf[e.styleIndex],opacity:n.opacity})}},n)}))})})),Yy=Hy,Xy=(0,r.forwardRef)((function(e,n){var t=e.betChips,o=e.position,c=e.gameState,s=e.animationState,u=e.winPrizeType,l=e.zIndex,d=void 0===l?0:l,m=(0,r.useMemo)((function(){return ka(t)}),[t]);return(0,wt.jsx)(sa.W2,{ref:n,position:[o[0],o[1]],zIndex:d,children:m.map((function(e,n){var t=!!u&&e.prizeType===u;return(0,wt.jsx)(ma.AM,{from:{position:[0,0],opacity:1},to:function(){var n=(0,i.Z)((0,a.Z)().mark((function n(i){return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c!==my.DRAW_ANIMATION&&c!==my.SHOW_RESULT){n.next=22;break}n.t0=s,n.next=n.t0===$t.SR.FlyCenter?4:n.t0===$t.SR.FlyOrigin?10:n.t0===$t.SR.FlyWinTarget?14:19;break;case 4:if(t){n.next=9;break}return n.next=7,i({position:[e.moveX,e.moveY],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 7:return n.next=9,i({opacity:0,config:{duration:200}});case 9:case 13:case 18:case 19:return n.abrupt("break",20);case 10:if(!t){n.next=13;break}return n.next=13,i({position:[e.moveX,e.moveY],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 14:return n.next=16,i({position:[e.moveX,e.moveY],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 16:return n.next=18,i({opacity:0,config:{duration:200}});case 20:n.next=24;break;case 22:return n.next=24,i({position:[e.moveX,e.moveY],config:{duration:500,easing:gt.Z5.easeOutCubic}});case 24:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),children:function(n){return(0,wt.jsx)(Lf,{position:n.position,scale:.5,color:nf[e.styleIndex],opacity:n.opacity})}},n)}))})})),Ky=Xy,Qy={RPS_RED:"#c44a80",RPS_TIE:"#368f48",RPS_BLUE:"#2e80c8"},Jy={RPS_RED:"".concat(_y,"_betting-board-red"),RPS_TIE:"".concat(_y,"_betting-board-green"),RPS_BLUE:"".concat(_y,"_betting-board-blue")},$y=new fa.pn8({align:"center",fontFamily:"Arial",fontSize:16,fontWeight:"bold",fill:["#ffffff"]}),e_=function(){var e=xy(),n=e.betChips,t=e.game,o=aa().containerScale,s=t.gameState,u=n.appendChips,m=(0,r.useRef)([]),f=(0,r.useRef)(null),p=(0,r.useRef)(null),g=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),h=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips[e.gamePanelInfo.chipsInfo.selectedIndex]})),v=zy().verifyBetting,b=(0,r.useMemo)((function(){var e=5.5;return ky.map((function(n){var t=wy[n.prizeType],a=(0,d.Z)((0,d.Z)((0,d.Z)({},n),t),{},{position:e,blockHeight:250});return e+=205.5,a}))}),[]),x=function(e){if(!m.current[e]||!p.current)return{moveX:0,moveY:0};var n=(0,Fn.sZ)(35,m.current[e].width-35),t=(0,Fn.sZ)(35,m.current[e].height-100);return Ta(m.current[e],p.current,{containerScale:o,offsetX:n,offsetY:t})},y=function(e){var n=e.calculateChipOffset,t=e.blockConfigs,o=e.betBlockRef,c=e.chipGroupRef,s=e.bonusChipGroupRef,u=e.containerScale,m=xy().game.gameState,f=(0,r.useRef)($t.SR.default),p=(0,r.useState)(null),g=(0,ot.Z)(p,2),h=g[0],v=g[1],b=(0,r.useState)(null),x=(0,ot.Z)(b,2),y=x[0],_=x[1],w=(0,r.useState)([]),T=(0,ot.Z)(w,2),k=T[0],I=T[1],C=Ly().submitBet,E=(0,zn.De)().refetch;return(0,r.useEffect)((function(){var e=xy.getState().game,r=e.setGameState,p=e.setDrawData,g=e.setShowResultOverlay,h=e.setShowHandAnimation,b=xy.getState().betChips.setChips,x=xy.getState().balanceBar,y=x.handleEndGameBalance,w=x.hideBalanceAfter,T=function(e){(0,xy.getState().balanceBar.handleStartBalance)(va(e,"unConfirm"))},k=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t,i,o,
1c,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(my.LOADING_ANIMATION),e.next=3,C(n);case 3:if(t=e.sent){e.next=8;break}return xy.getState().autoBet.disable(),r(my.BET_NOW),e.abrupt("return");case 8:xy.getState().betChips.cachePreChips(),T(n),Ey(),i=t.value,o=i.winningNumber,c=i.numero,s=jy(o),p({winNo:o,gameResult:s,numero:c}),r(my.DRAW_ANIMATION);case 17:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),j=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var i,o,c,s,u,l;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=xy.getState().autoBet,o=i.cachedChips,c=i.isEnabled,s=xy.getState().betChips.chips,c&&o&&0!==o.length){e.next=5;break}return r(my.BET_NOW),e.abrupt("return");case 5:if(0!==s.length){e.next=13;break}return u=o.map((function(e,a){var i=t.findIndex((function(n){return n.prizeType===e.prizeType})),r=n(i),o=r.moveX,c=r.moveY;return(0,d.Z)((0,d.Z)({},e),{},{numero:"",hasConfirm:!1,sortNo:a,moveX:o,moveY:c})})),b(u),e.next=10,(0,Fn.gw)(1e3);case 10:k(u),e.next=15;break;case 13:l=s.map((function(e,n){var t;return(0,d.Z)((0,d.Z)({},e),{},{sortNo:null!==(t=e.sortNo)&&void 0!==t?t:n})})),k(l);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(m===my.DRAW_ANIMATION){var P=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Fn.gw)(2200);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(n=xy.getState().game.drawData)||!n.gameResult){e.next=10;break}return t=Fy[n.gameResult],v(t),a=n.gameResult,r="zh"===Ln.Z.getI18nLanguage()?"cn":"en",i={},(0,l.Z)(i,fy.TIE,"".concat(_y,"_").concat(r,"_atie")),(0,l.Z)(i,fy.BLUE_WIN,"".concat(_y,"_").concat(r,"_bluewin")),(0,l.Z)(i,fy.RED_WIN,"".concat(_y,"_").concat(r,"_redwin")),o=i,null===Ea.eq||void 0===Ea.eq||Ea.eq.play(o[a],{volume:1}),g(!0),e.next=8,(0,Fn.gw)(1e3);case 8:v(null),g(!1);case 10:case"end":return e.stop()}var a,i,r,o}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P();case 2:return h(!0),e.next=5,(0,Fn.gw)(100);case 5:return e.next=7,(0,Fn.gw)(500);case 7:return e.next=9,S();case 9:r(my.SHOW_RESULT);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();N()}else if(m===my.SHOW_RESULT){var B=xy.getState().game.drawData,A=null!=B&&B.gameResult?Fy[B.gameResult]:null;_(A);var R=xy.getState().betChips.chips,O=!!A&&R.some((function(e){return e.prizeType===A})),M=R.some((function(e){return e.prizeType!==A})),Z=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.current=$t.SR.FlyCenter,n=xy.getState().betChips.chips.map((function(e){return e.prizeType!==A?(0,d.Z)((0,d.Z)({},e),{},{moveX:240,moveY:-520}):e})),null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(yy,"_s_chip_02"),{volume:1}),b(n),e.next=6,(0,Fn.gw)(700);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n,i,r,m,p,g,h;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A){e.next=2;break}return e.abrupt("return");case 2:if(0!==(n=xy.getState().betChips.chips.filter((function(e){return e.prizeType===A}))).length){e.next=5;break}return e.abrupt("return");case 5:return i=t.findIndex((function(e){return e.prizeType===A})),r=o.current[i],m=(0,l.Z)({},A,0),p=(0,l.Z)({},A,0),g=xy.getState().betChips.chips.map((function(e){if(e.prizeType!==A)return e;if(m[A]+=1,!r||!c.current)return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0});var n=af(m,A),t=Ta(r,c.current,{containerScale:u,offsetX:r.width/2-30,offsetY:r.height/2-n}),a=t.moveX,i=t.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:a,moveY:i})}
1)),h=n.map((function(e){if(p[A]+=1,!r||!s.current)return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0});var n=af(p,A),t=Ta(r,s.current,{containerScale:u,offsetX:r.width/2+30,offsetY:r.height/2-n}),a=t.moveX,i=t.moveY;return(0,d.Z)((0,d.Z)({},e),{},{moveX:a,moveY:i})})),f.current=$t.SR.FlyOrigin,null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(yy,"_s_chip_03"),{volume:1}),b(g),I(h),e.next=17,(0,Fn.gw)(700);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.current=$t.SR.FlyWinTarget,n=xy.getState().betChips.chips.filter((function(e){return e.prizeType===A})).map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{moveX:0,moveY:0})})),b(n),e.next=5,(0,Fn.gw)(700);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.current=$t.SR.default,_(null),b([]),I([]),p(null),e.next=7,(0,Fn.gw)(500);case 7:h(!1),n=xy.getState().autoBet.isEnabled,r(n?my.AUTO_GAME:my.BET_NOW);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!M){e.next=3;break}return e.next=3,Z();case 3:if(!O){e.next=8;break}return e.next=6,D();case 6:return e.next=8,L();case 8:return e.next=10,(0,Fn.gw)(500);case 10:return e.next=12,y(E);case 12:return e.next=14,w(1e3);case 14:G();case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();W()}else m===my.AUTO_GAME&&j()}),[m,u]),{winningPrizeType:h,animationStateRef:f,bonusChips:k,resultPrizeType:y}}({calculateChipOffset:x,blockConfigs:b,betBlockRef:m,chipGroupRef:p,bonusChipGroupRef:f,containerScale:o}),_=y.winningPrizeType,w=y.animationStateRef,T=y.bonusChips,k=y.resultPrizeType;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(sa.W2,{position:[9,300],children:[(0,wt.jsx)(sa.jy,{width:622,height:289,texture:fa.P6Y.TextureCache["".concat(_y,"_betting-board-background")]}),b.map((function(e,t){return(0,wt.jsxs)(sa.W2,{ref:function(e){return e&&(m.current[t]=e)},position:[e.position,6.5],eventMode:"static",pointerdown:function(){return function(e){if(s===my.BET_NOW&&v(n.chips,b[e].playInfoId)){var t=b[e],a=x(e),i=a.moveX,r=a.moveY,o=[{numero:"",playId:t.menuPlayId,playInfoId:t.playInfoId,prizeType:t.prizeType,betContent:t.betContent,amount:h,styleIndex:g,hasConfirm:!1,moveX:i,moveY:r}];null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(yy,"_s_chip_01"),{volume:1}),u(o)}}(t)},children:[(0,wt.jsx)(sa.jy,{width:200,height:276,texture:fa.P6Y.TextureCache[Jy[e.prizeType]]}),(0,wt.jsx)(Vy,{color:Qy[e.prizeType],groupPlayId:e.groupPlayId,menuPlayId:e.menuPlayId,playInfoId:e.playInfoId}),(0,wt.jsx)(sa.jy,{width:150,height:25,anchor:.5,x:100,y:236,texture:fa.P6Y.TextureCache["".concat(_y,"_input")]}),(0,wt.jsx)(sa.xv,{text:ba(va(n.chips,"unConfirm",e.prizeType)),anchor:.5,x:100,y:236,style:$y}),(0,wt.jsx)(sa.jy,{width:211,height:290,anchor:.5,x:100,y:138,texture:fa.P6Y.TextureCache["".concat(_y,"_betting-board-win")],visible:_===e.prizeType}),(0,wt.jsx)(sa.jy,{width:200,height:276,anchor:.5,x:100,y:138,texture:fa.P6Y.TextureCache["".concat(_y,"_betting-board-lose")],visible:null!==_&&_!==e.prizeType})]},t)}))]}),(0,wt.jsx)(Ky,{ref:p,betChips:n.chips,position:[100,650],gameState:s,animationState:w.current,winPrizeType:k}),(0,wt.jsx)(Yy,{ref:f,bonusChips:T,position:[100,650],gameState:s,animationState:w.current})]})},n_=function(e){var n=e.position,t=void 0===n?[27,3]:n,a=xy().viewData,i=a.activePanel,r=a.togglePanel,o=aa().isCloseIconTop,c=Ji(!1).closeGamePanel,s=function(e){i===e?Cy():null===Ea.eq||void 0===Ea.eq||Ea.eq.play("".concat(yy,"_s_button_01"),{volume:1}),r(e)};return(0,wt.jsxs)(sa.W2,{position:t,children:[(0,wt.jsx)(Sm,{onClick:function(){return s("intro")},visible:"intro"===i}),(0,wt.jsx)(Am,{position:[55,0],onClick:function(){return s("betHistory")},visible:"betHistory"===i}),(0,wt.jsx)(Em,{position:[110,0]}),!o&&(0,wt.jsx)(Qi,{position:[551,0],onClick:c})]})},t_=function(){return(0,wt.jsxs)(sa.W2,{position:[0,70],children:[(0,wt.jsx)(Uy,{}),(0,wt.jsx)(e_,{}),(0,wt.jsx)(n_,{})]})},a_=function(){var e=xy(),n=e.game,t=e.balanceBar,a=n.drawData,i=(0,zn.De)().refetch,o=t.prevBalance,c=t.balanceDifference,s=t.balanceVisible,u=null===o?"Loading...":(0,Fn.mT)(o),l=null!=a&&a.numero?"No.".concat(a.numero):"";return(0,r.useEffect)((function(){var e=xy.getState().balanceBar.setPrevBalance;i().then((function(n){n.data&&e(n.data.availBalance)}))}),[i]),(0,wt.jsx)(_v,{position:[0,760],balanceText:u,numero:l,balanceVisible:s,balanceDif:"".concat(c>0?"+":"-").concat((0,Fn.mT)(Math.abs(c))),balanceDifColor:c>0?"#fae124":"#86141a"})},i_=function(){var e,n,t,a=(0,Fn.he)("containers.GamesPanel."),i=(0,c.v9)((function(e){return e.calculatorInfo.show})),o=(0,c.v9)((function(e){return e.calculatorInfo.editAmount})),s=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.selectedIndex})),l=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.userChips})),m=(0,c.v9)((function(e){return e.gamePanelInfo.chipsInfo.showChipSelector})),f=(0,r.useMemo)((function(){return l.map((function(e,n){return{index:n,value:e}}))}),[l]),p=xy(),g=p.betChips,h=p.autoBet,v=p.game,b=g.chips,x=g.preChips,y=g.appendChips,_=g.popChips,w=h.cacheChips,T=h.isEnabled,k=v.gameState,I=v.setGameState,C=zy().verifyDoubleBett
1ing,E=function(){k===my.BET_NOW&&(Iy(),ft.Z.toggleChipSelectorPanel())};return(0,wt.jsx)(Qf,{position:[0,690],buttons:{autoBet:{onClick:function(){Iy(),0!==b.length&&(T?(Ca.Z.show($t.k9.gameMessage,a("AUTO_BET_OFF")),h.disable()):(Ca.Z.show($t.k9.gameMessage,a("AUTO_BET_ON")),I(my.AUTO_GAME),w("",b),h.enable()))},autoBetting:T,disabled:0===b.length||k!==my.BET_NOW},repeatBet:{onClick:function(){if(Iy(),x.length&&!(b.length>0)){var e=x.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})}));y(e)}},disabled:0===x.length||k!==my.BET_NOW||b.length>0},doubleBet:{onClick:function(){Iy();var e=b.map((function(e){return(0,d.Z)((0,d.Z)({},e),{},{hasConfirm:!1})})),n=[].concat((0,u.Z)(e),(0,u.Z)(e));C(n)&&y(e)},disabled:(t=2*b.length>200,0===b.length||k!==my.BET_NOW||t)},undo:{onClick:function(){Iy(),_()},disabled:0===b.length||k!==my.BET_NOW}},chip:{value:"".concat(null!==(e=null===(n=f[s])||void 0===n?void 0:n.value)&&void 0!==e?e:""),selectedChipIndex:s,onClick:E},chipSelector:{show:m,chipValues:f,onSelect:function(e){Iy(),ft.Z.changeSelectedChip(e)},onEditClick:function(){Iy(),pi.open()},onOverlayClick:E},calculator:{show:i,value:o,position:[0,390],onConfirm:function(){var e;if(Iy(),0!==o){var n=null===(e=qn.Z.getState().gamePanelInfo.info)||void 0===e?void 0:e.gameId,t=zn.nk.endpoints.getGameSetting.select(n)(qn.Z.getState()).data||{},a=t.bettingModes,i=void 0===a?[]:a,r=t.singleBetPrice,c=Ia(i,void 0===r?0:r);null!==o&&o<c&&pi.setEditAmount(c),pi.confirmHandle()}else pi.close()},onCancel:function(){Iy(),pi.close()},onBack:function(e){Iy(),pi.updateEditAmount(e)},onNumber:function(e){Iy(),pi.updateEditAmount("".concat(e))}}})},r_=function(){return(0,wt.jsxs)(sa.W2,{children:[(0,wt.jsx)(a_,{}),(0,wt.jsx)(i_,{})]})},o_=function(){return"betHistory"===xy((function(e){return e.viewData.activePanel}))?(0,wt.jsx)(pm,{closeBetHistory:function(){Cy(),xy.getState().viewData.setActivePanel(null)}}):null},c_=function(e){var n=e.label,t=e.value;return t?(0,wt.jsxs)("p",{children:[n,": ",t]}):null},s_=function(){var e,n=xy((function(e){return e.viewData})),t=n.activePanel,a=n.setActivePanel,i=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),r=(0,zn.eM)(i).data,o=Pa({gameId:i}).playLimit,s=(0,Fn.he)("containers.GamesIntro."),l=r||{},d=l.betAmountMax,m=l.betAmountMaxByNumero,f=l.winAmountMax,p=l.winAmountMaxByNumero,g=l.prizeMaxByNumeroMode,h=l.profitMaxByNumero,v="PROFIT"===g,b=["vi68club","gi8viet"].includes(null!==(e=(0,Fn.Z_)())&&void 0!==e?e:""),x=o?Object.values(o).map((function(e){return e.betAmountMaxLimitByNumero})).filter((function(e){return 0!==e})):[],y=x.length>0?Math.min.apply(Math,(0,u.Z)(x)):0,_=0!==y&&(!m||y<m),w=s(_?"MAX_BET_PER_DRAW":"GAME_MAX_BET_PER_DRAW"),T=_?y:m;return"intro"===t?(0,wt.jsx)(Cv,{handleClose:function(){Cy(),a(null)},descriptionText:s("RPS.description"),customSection:b?void 0:(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(c_,{label:s("GAME_MAX_BET_PER_BET"),value:d}),(0,wt.jsx)(c_,{label:w,value:T}),(0,wt.jsx)(c_,{label:s("MAX_BONUS_PER_BET"),value:f}),v?(0,wt.jsx)(c_,{label:s("MAX_PROFIT_PER_DRAW"),value:h}):(0,wt.jsx)(c_,{label:s("MAX_BONUS_PER_DRAW"),value:p}),!!(f||v&&h||!v&&p)&&(0,wt.jsx)("p",{children:s("BONUS_EXCEEDS_THE_MAXIMUM_DESCRIPTION")})]})}):null},u_=function(e){switch(e){case"1":return py.SCISSORS;case"2":return py.ROCK;default:return py.PAPER}},l_=function(e){var n=e.split(",");switch(n[0]){case"1":default:return u_(n[1]);case"2":return u_(n[2])}},d_=function(e){var n=function(e){switch(e){case"1":return"".concat(_y,"_ball-red");case"2":return"".concat(_y,"_ball-blue");case"3":return"".concat(_y,"_ball-green");default:return null}}(e.result);return n?(0,wt.jsx)(sa.jy,{width:30,height:30,texture:fa.P6Y.TextureCache[n]}):null},m_=function(){var e,n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.VO)(n),a=t.data,i=t.refetch,o=null!==(e=null==a?void 0:a.slice(0,15))&&void 0!==e?e:[],s=xy().game.gameState,u=o.map((function(e){return{result:e.winNo.split(",")[0],renderKey:l_(e.winNo)}}));return(0,r.useEffect)((function(){s===my.SHOW_RESULT&&i()}),[s,i]),(0,wt.jsxs)(sa.W2,{position:[8,15],children:[(0,wt.jsx)(sa.jy,{width:624,height:44,texture:fa.P6Y.TextureCache["".concat(_y,"_result-background")]}),(0,wt.jsxs)(sa.W2,{position:[17,7],children:[(0,wt.jsx)(sa.jy,{width:31.5,height:30.5,texture:fa.P6Y.TextureCache["".concat(_y,"_calendar")]}),(0,wt.jsx)(sa.W2,{position:[58,0],children:u.map((function(e,n){return(0,wt.jsxs)(sa.W2,{position:[36*n,0],children:[(0,wt.jsx)(d_,{result:e.result}),(0,wt.jsx)(sa.jy,{width:22,height:22,texture:fa.P6Y.TextureCache["".concat(_y,"_").concat(e.renderKey)],position:[15,15],anchor:.5})]},n)}))})]})]})},f_=function(){var e,n,t,o,s,u,l,m=aa().containerScale,f=(e=(0,r.useState)(0),n=(0,ot.Z)(e,2),t=n[0],o=n[1],s=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameCode})),u=_t().sendEvent,l=(0,r.useRef)(u),(0,r.useEffect)((function(){l.current=u}),[u]),(0,r.useEffect)((function(){(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fa.deM.resolver.reset(),fa.deM.cache.reset(),Ea.eq.add(Ll),Ea.eq.add(Sy),e.next=6,fa.deM.load(Py,(function(e){e<1&&o(90*e)}));case 6:l.current({action:"game_loaded",data:{game_code:s}}),o(100);case 8:case"end":return e.stop()}}),e)})))()}),[s]),t);(0,r.useEffect)((function(){return(0,Fn.yH)(),Ea.eq.play("".concat(_y,"_bgm_rps"),{loop:!0,volume:1}),function(){null!==Ea.eq&&void 0!==Ea.eq&&Ea.eq.exists("".concat(_y,"_bgm_rps"))&&Ea.eq.stop("".concat(_y,"_bgm_rps"));
1var e=xy.getState(),n=e.game,t=e.betChips,a=e.viewData;n.reset(),t.resetChips(),t.resetPreChips(),a.setActivePanel(null)}}),[]);var p={width:640*m,height:784*m,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(wo,{progress:f,children:(0,wt.jsxs)("div",{style:{width:640*m,height:784*m},className:"mini-game-rps-game-scene",children:[(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},p),{},{children:(0,wt.jsxs)(sa.W2,{scale:m,sortableChildren:!0,children:[(0,wt.jsx)(m_,{}),(0,wt.jsx)(t_,{}),(0,wt.jsx)(r_,{})]})})),(0,wt.jsx)(o_,{}),(0,wt.jsx)(s_,{}),(0,wt.jsx)(zp,{})]})})},p_=90,g_="quick_menu",h_=[{src:t(40193),alias:["".concat(g_,"_arrow")]},{src:t(13413),alias:["".concat(g_,"_bg")]},{src:t(71527),alias:["".concat(g_,"_web_bg")]},{src:t(57046),alias:["".concat(g_,"_title")]},{src:t(83430),alias:["".concat(g_,"_title_web")]}],v_=function(e){var n=e.position,t=e.rotation,a=void 0===t?0:t,i=e.onPress,r=e.visible;return void 0===r||r?(0,wt.jsx)(sa.jy,{eventMode:"static",onpointerdown:i,position:n,width:20,height:25,rotation:a,anchor:.5,texture:fa.P6Y.TextureCache["".concat(g_,"_arrow")]}):null},b_=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.rotation,i=void 0===a?0:a;return(0,wt.jsx)(sa.W2,{position:t,children:(0,wt.jsx)(sa.jy,{rotation:i,width:320,height:108,texture:fa.P6Y.TextureCache["".concat(g_,"_web_bg")]})})},x_=function(e){var n=e.position,t=void 0===n?[0,0]:n,a=e.scale,i=void 0===a?1:a;return(0,wt.jsx)(sa.W2,{position:t,children:(0,wt.jsx)(sa.jy,{scale:i,width:320,height:108,texture:fa.P6Y.TextureCache["".concat(g_,"_bg")]})})},y_=new fa.pn8({fontFamily:"Arial",fontSize:12,fill:"#FFE972",align:"center"}),__=function(e){var n=e.gameName,t=e.active,a=e.position,i=(0,r.useState)(null),o=(0,ot.Z)(i,2),c=o[0],s=o[1],u=t?32:26,l=[a[0],a[1]+u],d=t?1.25:1,m=-29.5,f=(0,r.useMemo)((function(){var e=fa._A.measureText(n,y_).width,t=67*d;return{needsMask:e>t,moveDistance:Math.max(0,e-t)+10}}),[n,d,75]),p=f.needsMask,g=f.moveDistance,h=(0,gt.q_)((function(){return{from:{x:m,y:0},config:{duration:Math.max(2e3,15*g)}}}),[]),v=(0,ot.Z)(h,2),b=v[0],x=v[1];(0,r.useEffect)((function(){p&&g>0?x.start({from:{x:m,y:0},to:{x:m-g,y:0},loop:{reverse:!0},delay:1500,config:{duration:Math.max(2e3,15*g)}}):x.start({x:m,y:0,loop:!1})}),[p,g,m,x]);var y=(0,r.useCallback)((function(e){return e.clear(),p&&(e.beginFill(16777215),e.drawRect(-37.5,-11,71,22),e.endFill()),e}),[p,75,22]);return(0,wt.jsxs)(sa.W2,{scale:t?1.25:1,position:l,children:[(0,wt.jsx)(sa.jy,{anchor:.5,width:75,height:22,image:ht}),p?(0,wt.jsxs)(sa.W2,{mask:c,children:[(0,wt.jsx)(sa.TC,{draw:y,ref:s}),(0,wt.jsx)(da.W2,{position:b.x.to((function(e){return[e,b.y.get()]})),children:(0,wt.jsx)(sa.xv,{text:n,style:y_,anchor:[0,.5]})})]}):(0,wt.jsx)(sa.xv,{text:n,style:y_,anchor:.5})]})},w_=function(e){var n=e.gameMenu,t=e.wrapPosition,r=e.position,o=e.width,c=e.height,s=e.active,u=e.dragging,l=bt(n).currentIcon,d=_t(),m=d.sendEvent,f=d.gaEventConfig,p=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s&&!u){e.next=2;break}return e.abrupt("return");case 2:fa.deM.resolver.reset(),fa.deM.cache.reset(),Ea.eq&&Ea.eq.removeAll(),ft.Z.switchGame(n),m({action:f.game_open,data:{game_code:n.gameCode}});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,wt.jsxs)(sa.W2,{position:t,children:[(0,wt.jsx)(sa.jy,{width:o,height:c,position:r,eventMode:"static",onpointerup:p,anchor:.5,image:l}),(0,wt.jsx)(__,{gameName:n.remark,active:s,position:r})]})},T_=function(e){var n=e.config,t=e.quickMenuGames,a=e.viewportRef,i=e.maskDraw,o=e.calculatePosition,s=e.dragging,u=e.position,l=(0,r.useState)(null),d=(0,ot.Z)(l,2),m=d[0],f=d[1],p=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId}));return(0,wt.jsxs)(sa.W2,{position:u,mask:m,children:[(0,wt.jsx)(sa.TC,{draw:i,ref:f}),(0,wt.jsx)(Hm,{ref:a,width:n.viewportWidth,height:n.viewportHeight,boxWidth:n.viewportWidth,boxHeight:n.viewportHeight,children:t.map((function(e,t){var a=o(t,n.spacing,p_),i=(0,ot.Z)(a,2),r=i[0],c=i[1],u=e.gameId===p,l=p_*(u?1:.8);return(0,wt.jsx)(w_,{gameMenu:e,wrapPosition:[r,c],position:[45,45],width:l,height:l,active:u,dragging:s},t)}
1))})]})},k_=function(e){var n=e.containerScale,t=e.quickMenuGames,a=e.isLandscape,i=function(e){var n=(0,r.useState)(!1),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=(0,r.useState)(!1),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useState)(!1),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=(0,r.useState)(null),h=(0,ot.Z)(g,2),v=h[0],b=h[1],x=(0,r.useCallback)((function(e){e&&b(e)}),[]),y=(0,r.useMemo)((function(){return{direction:"vertical",wrapWidth:108,wrapHeight:750,viewportWidth:108,viewportHeight:550,moveStep:92,spacing:2,clampOptions:{left:!1,right:!1,top:!0,bottom:!0,direction:"x",underflow:"center"},bounceOptions:{sides:"vertical",friction:.5,time:200,ease:"easeInOutSine"}}}),[]),_=(0,r.useMemo)((function(){return{calculatePosition:function(e,n,t){return[0,e*t+n*e]},calculateContentSize:function(e,n,t){return{width:n,height:n*e+t*(e-1)}},maskDraw:function(e){e.clear(),e.beginFill(0),e.drawRect(0,0,y.viewportWidth,y.viewportHeight),e.endFill()},checkBoundaries:function(){if(v&&e&&0!==e.length){var n=p_*e.length+y.spacing*(e.length-1),t=v.y>=0,a=v.y<=-(n-y.viewportHeight);i(t),u(a)}},moveBar:function(n,t){if(v&&!("right"===n&&s||"left"===n&&a)){var i=y.viewportHeight/2,r=i-0,o=i- -(p_*e.length+y.spacing*(e.length-1)-y.viewportHeight),c="right"===n?o:r;v.animate({position:{x:v.x,y:c},time:300,ease:"easeInOutQuart",callbackOnComplete:function(){setTimeout((function(){return null==t?void 0:t()}),50)}})}}}}),[y,e,a,s,v]),w=(0,r.useMemo)((function(){if(!e||0===e.length)return{showLeftArrow:!1,showRightArrow:!1};var n=e.length>6;return{showLeftArrow:n&&!a,showRightArrow:n&&!s}}),[e,a,s]);return(0,r.useEffect)((function(){if(v&&e&&0!==e.length&&!(y.viewportWidth<=0||y.viewportHeight<=0)){var n=_.calculateContentSize(e.length,p_,y.spacing),t=e.length>6,a=Math.max(n.width,y.viewportWidth),r=Math.max(n.height,y.viewportHeight);if(v.resize(v.screenWidth,v.screenHeight,a,r),v.plugins.plugins.clamp&&v.plugins.remove("clamp"),v.plugins.plugins.bounce&&v.plugins.remove("bounce"),t){v.clamp(y.clampOptions),v.bounce(y.bounceOptions);var o=function(){return _.checkBoundaries()},c=function(){return p(!0)},s=function(){return setTimeout((function(){return p(!1)}),100)};return v.on("moved",o),v.on("drag-start",c),v.on("drag-end",s),setTimeout((function(){return _.checkBoundaries()}),100),function(){v.off("moved",o),v.off("drag-start",c),v.off("drag-end",s)}}v.plugins.remove("drag"),v.moveCorner(0,0),i(!0),u(!0)}}),[v,e,y,_]),(0,d.Z)({viewportRef:x,config:y,dragging:f,arrowVisibility:w},_)}(t),o=i.viewportRef,c=i.moveBar,s=i.config,u=i.maskDraw,l=i.calculatePosition,m=i.dragging,f=i.arrowVisibility,p={width:s.wrapWidth*n,height:s.wrapHeight*n,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}};return(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},p),{},{children:(0,wt.jsxs)(sa.W2,{scale:n,visible:a,children:[(0,wt.jsx)(sa.jy,{position:[12,20],width:84,height:66,texture:fa.P6Y.TextureCache["".concat(g_,"_title_web")]}),(0,wt.jsxs)(sa.W2,{position:[0,115],children:[(0,wt.jsx)(b_,{position:[108,0],rotation:Math.PI/2}),(0,wt.jsx)(b_,{position:[0,640],rotation:-Math.PI/2}),(0,wt.jsx)(T_,{config:s,quickMenuGames:t,viewportRef:o,maskDraw:u,calculatePosition:l,dragging:m,position:[10,40]}),(0,wt.jsx)(v_,{direction:"left",position:[54,0],rotation:-Math.PI/2,onPress:function(){return c("left")},visible:f.showLeftArrow}),(0,wt.jsx)(v_,{direction:"right",position:[54,620],rotation:Math.PI/2,onPress:function(){return c("right")},visible:f.showRightArrow})]})]})}))},I_=function(e){var n=e.containerScale,t=e.quickMenuGames,a=e.isLandscape,i=function(e){var n=(0,r.useState)(!1),t=(0,ot.Z)(n,2),a=t[0],i=t[1],o=(0,r.useState)(!1),c=(0,ot.Z)(o,2),s=c[0],u=c[1],l=(0,r.useState)(!1),m=(0,ot.Z)(l,2),f=m[0],p=m[1],g=(0,r.useState)(null),h=(0,ot.Z)(g,2),v=h[0],b=h[1],x=(0,r.useCallback)((function(e){e&&b(e)}),[]),y=(0,r.useMemo)((function(){return{direction:"horizontal",wrapWidth:640,wrapHeight:181,viewportWidth:460,viewportHeight:100,moveStep:92,spacing:2,clampOptions:{left:!0,right:!0,top:!1,bottom:!1,direction:"y",underflow:"center"},bounceOptions:{sides:"horizontal",friction:.5,time:200,ease:"easeInOutSine"}}}),[]),_=(0,r.useMemo)((function(){return{calculatePosition:function(e,n,t){return[e*t+n*e,0]},calculateContentSize:function(e,n,t){return{width:n*e+t*(e-1),height:n}},maskDraw:function(e){e.clear(),e.beginFill(0),e.drawRect(0,0,y.viewportWidth,y.viewportHe
1ight),e.endFill()},checkBoundaries:function(){if(v&&e&&0!==e.length){var n=90*e.length+y.spacing*(e.length-1),t=v.x>=0,a=v.x<=-(n-y.viewportWidth);i(t),u(a)}},moveBar:function(n,t){if(v&&!("right"===n&&s||"left"===n&&a)){var i=y.viewportWidth/2,r=i-0,o=i- -(90*e.length+y.spacing*(e.length-1)-y.viewportWidth),c="right"===n?o:r;v.animate({position:{x:c,y:v.y},time:300,ease:"easeInOutQuart",callbackOnComplete:function(){setTimeout((function(){return null==t?void 0:t()}),50)}})}}}}),[y,e,a,s,v]),w=(0,r.useMemo)((function(){if(!e||0===e.length)return{showLeftArrow:!1,showRightArrow:!1};var n=e.length>5;return{showLeftArrow:n&&!a,showRightArrow:n&&!s}}),[e,a,s]);return(0,r.useEffect)((function(){if(v&&e&&0!==e.length&&!(y.viewportWidth<=0||y.viewportHeight<=0)){var n=_.calculateContentSize(e.length,90,y.spacing),t=e.length>5,a=Math.max(n.width,y.viewportWidth),r=Math.max(n.height,y.viewportHeight);if(v.resize(v.screenWidth,v.screenHeight,a,r),v.plugins.plugins.clamp&&v.plugins.remove("clamp"),v.plugins.plugins.bounce&&v.plugins.remove("bounce"),t){v.clamp(y.clampOptions),v.bounce(y.bounceOptions);var o=function(){return _.checkBoundaries()},c=function(){return p(!0)},s=function(){return setTimeout((function(){return p(!1)}),100)};return v.on("moved",o),v.on("drag-start",c),v.on("drag-end",s),setTimeout((function(){return _.checkBoundaries()}),100),function(){v.off("moved",o),v.off("drag-start",c),v.off("drag-end",s)}}v.plugins.remove("drag"),v.moveCorner(0,0),i(!0),u(!0)}}),[v,e,y,_]),(0,d.Z)({viewportRef:x,config:y,dragging:f,arrowVisibility:w},_)}(t),o=i.viewportRef,c=i.moveBar,s=i.config,u=i.maskDraw,l=i.calculatePosition,m=i.dragging,f=i.arrowVisibility,p=Ji().closeGamePanel,g=t.length,h={width:s.wrapWidth*n,height:s.wrapHeight*n,options:{backgroundAlpha:0,autoDensity:!0,antialias:!0}},v=g<5?[320-g*p_/2,10]:[80,10];return(0,wt.jsx)(la,(0,d.Z)((0,d.Z)({},h),{},{children:(0,wt.jsxs)(sa.W2,{scale:n,visible:!a,children:[(0,wt.jsx)(Qi,{position:[593,0],onClick:p}),(0,wt.jsxs)(sa.W2,{position:[0,42],children:[(0,wt.jsx)(x_,{}),(0,wt.jsx)(x_,{position:[640,0],scale:[-1,1]}),(0,wt.jsx)(sa.jy,{position:[253,-30],width:134,height:40,texture:fa.P6Y.TextureCache["".concat(g_,"_title")]}),(0,wt.jsx)(T_,{config:s,quickMenuGames:t,viewportRef:o,maskDraw:u,calculatePosition:l,dragging:m,position:v}),(0,wt.jsx)(v_,{direction:"left",position:[45,54],rotation:Math.PI,onPress:function(){return c("left")},visible:f.showLeftArrow}),(0,wt.jsx)(v_,{direction:"right",position:[585,54],rotation:0,onPress:function(){return c("right")},visible:f.showRightArrow})]})]})}))},C_=function(e){var n=e.containerScale,t=e.quickMenuGames,a=ea(),i=function(){var e=(0,r.useState)(!1),n=(0,ot.Z)(e,2),t=n[0],a=n[1];return(0,r.useEffect)((function(){fa.deM.resolver.reset(),fa.deM.cache.reset(),fa.deM.load(h_,(function(e){1===e&&a(!0)}))}),[]),t}();return t.length>1&&i?(0,wt.jsx)("div",{className:ut()("mini-game-quick-menu-wrap",{"mini-game-landscape":a,"mini-game-portrait":!a}),children:a?(0,wt.jsx)(k_,{containerScale:n,quickMenuGames:t,isLandscape:a}):(0,wt.jsx)(I_,{containerScale:n,quickMenuGames:t,isLandscape:a})}):null},E_=function(e){var n=e.children,t=e.contentWidth,a=e.menuWidth;if("normal"===window.miniGameRenderType)return(0,wt.jsx)(wt.Fragment,{children:n});var i=(window.innerWidth-t)/2,r=i-(a||0),o=a?"inset(0 ".concat(i,"px 0 ").concat(r,"px)"):"inset(0 ".concat(i,"px)");return(0,wt.jsx)("div",{className:ut()("mini-game-minigame-bg",(0,l.Z)({},"".concat(pt.Z.classNamePrefix,"is-").concat(Ln.Z.getCurrentProductType()),!0)),children:dt()()?(0,wt.jsx)("div",{className:"mini-game-open-directly-mobile",children:n}):(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("div",{className:"mini-game-open-directly-bg",style:{filter:"blur(3.5px)"}}),(0,wt.jsx)("div",{className:"mini-game-open-directly-mask"}),(0,wt.jsx)("div",{className:"mini-game-clear-area",style:{clipPath:o},children:n})]})})},j_=function(e){var n=e.contentRef,t=(0,zn.iB)(),o=(0,ot.Z)(t,1)[0],s=(0,zn.De)().refetch;(0,r.useEffect)((function(){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ln.Z.getPrizeMode();case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0="";case 5:n=e.t0,o({timestamp:Date.now(),prizeMode:n}).unwrap().catch((function(){return o({timestamp:Date.now(),prizeMode:n})})).catch().finally((function(){u()}
1));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var u=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n,t,r=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.length>0&&void 0!==r[0]?r[0]:2e3,t=r.length>1&&void 0!==r[1]?r[1]:0,setTimeout((0,i.Z)((0,a.Z)().mark((function e(){var n,i,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:n=e.sent,i=(null==n?void 0:n.data)||{},(r=i.availBalance)&&!(r<1)||t||u(3e3,1);case 5:case"end":return e.stop()}}),e)}))),n);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();switch((0,c.v9)((function(e){return e.gamePanelInfo})).type){case $t.gV.taixiu:return"sea"===Ln.p?(0,wt.jsx)(ko,{}):(0,wt.jsx)(ms,{ref:n});case $t.gV.xocdia:return(0,wt.jsx)($s,{ref:n});case $t.gV.baucua:return(0,wt.jsx)(Su,{ref:n});case $t.gV.colorGame:return(0,wt.jsx)(Fp,{});case $t.gV.baccarat:return(0,wt.jsx)(qh,{});case $t.gV.mines:return(0,wt.jsx)(Bv,{});case $t.gV.chickenRoad:return(0,wt.jsx)(cx,{});case $t.gV.keno:return(0,wt.jsx)(dy,{});case $t.gV.rps:return(0,wt.jsx)(f_,{})}return null},P_=function(e){var n,t=e.children,a=(0,zn.Oc)(),i=a.isSuccess,r=a.error,o=(0,Fn.he)("containers.GamesPanel.");return i||"CUSTOMER_NOT_ALLOW_PLAY_LOTTERY"!==(null==r||null===(n=r.data)||void 0===n?void 0:n.errorCode)?(0,wt.jsx)(wt.Fragment,{children:t}):(0,wt.jsx)(ra,{msg:o("CUSTOMER_NOT_ALLOW_PLAY_LOTTERY"),onClick:ft.Z.close})},S_=[$t.gV.mines,$t.gV.chickenRoad,$t.gV.keno,$t.gV.rps],N_=function(e){var n=e.contentRef,t=(0,c.v9)((function(e){return e.gamePanelInfo})),a=Bu({useDrawNear:null!==t.type&&!S_.includes(t.type)}),i=a.isError,r=a.isLoading,o=(0,c.v9)((function(e){return e.authorizedInfo})).isUnAuthorized;return null===t.type||o||r?null:i?(0,wt.jsx)(ra,{msg:"Something error!",onClick:ft.Z.close}):(0,wt.jsx)(P_,{children:(0,wt.jsx)(j_,{contentRef:n})})},B_=function(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.gamePanelInfo})),t=(0,r.useState)([]),a=(0,ot.Z)(t,2),i=a[0],o=a[1],s=(0,r.useState)({x:0,y:0}),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=(0,r.useState)(0),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,r.useState)(0),b=(0,ot.Z)(v,2),x=b[0],y=b[1],_=(0,zn.bI)().data,w=ea(),T=aa(),k=T.containerScale,I=T.setContainerScale,C=T.setIsCloseIconTop,E=(0,r.useCallback)((function(e){if(e){var n=e.clientWidth;h((function(e){return e===n?e:n}))}}),[]),j=(0,r.useCallback)((function(e){if(e){var n=e.clientWidth;y((function(e){return e===n?e:n}))}}),[]),P=function(){var e=window.innerWidth,n=window.innerHeight,t=(e-(A&&w?120:0))/640,a=(.8*n-(A&&!w?223:0))/850,i=Math.min(t,a);I(i)};(0,r.useEffect)((function(){if(_){var e=_.filter((function(e){return(0,Fn.B_)(e.gameGroupCode)})),n=e.length>1&&!w;C(n),o(e)}}),[_,w]),(0,r.useEffect)((function(){return window.addEventListener("resize",P),P(),function(){window.removeEventListener("resize",P)}}),[]);var S,N=Ln.Z.getIsQuickMenuGame(n.type),B=1===i.length,A=i.length>1,R=(0,r.useMemo)((function(){return{onStart:function(){},onDrag:function(e,n){var t=n.x,a=n.y;m({x:t,y:a})},onStop:function(){}}}),[]),O=function(){if(N)return 640*k;if(n.type===$t.gV.taixiu&&"sea"===Ln.p){var e=window.innerWidth;return 1136*(e>=1024?e/2400:e/1150)}if(n.type===$t.gV.baccarat){var t=window.innerWidth,a=t/(t>=768?t>1280?1280:700:375),i=window.innerHeight/512;return 312*Math.min(a,i)}return(dt()()||"direct"===window.miniGameRenderType?g:x)||640*k}(),M=N&&A?165*k:0;return n.isShow?ct.createPortal((0,wt.jsxs)("div",{ref:e,className:"mini-game-gamePanel-warp",children:[(0,wt.jsx)("div",{className:"mini-game-mask"}),(0,wt.jsx)(E_,{contentWidth:O,menuWidth:M,children:N?(0,wt.jsxs)("div",{className:ut()("mini-game-game-wrap",{"mini-game-single-game":B,"mini-game-multi-game":A,"mini-game-landscape":w}),style:{minWidth:640*k,minHeight:750*k},children:[(0,wt.jsx)(C_,{containerScale:k,quickMenuGames:i}),(0,wt.jsx)(N_,{contentRef:E},null===(S=n.info)||void 0===S?void 0:S.gameCode)]}):dt()()||"direct"===window.miniGameRenderType?(0,wt.jsx)(N_,{contentRef:E}):(0,wt.jsx)(Mc(),(0,d.Z)((0,d.Z)({position:l,bounds:"body"},R),{},{children:(0,wt.jsx)("div",{id:"gamePanel-drag",ref:j,children:(0,wt.jsx)(N_,{contentRef:E})})}))})]}),document.querySelector("body")):null},A_=t(68260),R_=t.p+"static/media/shrimp-dice-face.c86f99c562fbb3c45dfa.png",O_={fish:t.p+"static/media/fish-dice-face.23ebd52aa9c37f2979b2.png",crab:t.p+"static/media/crab-dice-face.a37bfb0743a764dd9df9.png",shrimp:R_},M_=function(e){var n=e.type,t=e.size;return(0,wt.jsx)("div",{className:"mini-game-dice-face-wrap",style:{width:t,height:t},children:(0,wt.jsx)("img",{width:"100%",height:"100%",src:O_[n],alt:""})})},Z_=[["fish","shrimp","shrimp"],["fish","fish","shrimp"],["fish","fish","fish"],["shrimp","shrimp","shrimp"]],D_=[["fish","shrimp","crab"],["fish","shrimp","shrimp"],["shrimp","shrimp","shrimp"],["fish","fish","fish"]],L_=function(e){var n=e.datas;return(0,wt.jsx)("div",{className:"",children:n.map((function(e,n){return(0,wt.jsx)("ul",{children:e.map((function(e,n){return(0,wt.jsx)("li",{children:(0,wt.jsx)(M_,{type:e})},n)}))},n)}))})},G_=function(){var e=(0,Fn.he)("containers.GamesIntro.Baucua.");return(0,wt.jsxs)("div",{className:"mini-game-result-block",children:[(0,wt.jsxs)("div",{children:[e("payout"),":X",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6013}),(0,wt.jsxs)("span",{className:"mini-game-win",children:["(",e("win"),")"]})]}),(0,wt.jsxs)("div",{children:[e("payout"),":X",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6014}),(0,wt.jsxs)("span",{className:"mini-game-win",children:["(",e("win"),")"]})]}),(0,wt.jsxs)("div",{children:[e("payout"),":X",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6015}),(0,wt.jsxs)("span",{className:"mini-game-win",children:["(",e("win"),")"]})]}),(0,wt.jsxs)("div",{children:[e("payout"),":X0",(0,wt.jsxs)("span",{className:"mini-game-lose",children:["(",e("lose"),")"]})]})]})},W_=r.memo((function(){var e=(0,Fn.he)("containers.GamesIntro.Baucua.");return(0,wt.jsx)("div",{className:"mini-game-vbc-game-introduction",children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:A_,alt:""}),(0,wt.jsxs)("div",{className:"mini-game-content",children:[(0,wt.jsx)("h1",{children:e("game rule")}),(0,wt.jsx)("h2",{children:e("description")}),(0,wt.jsx)("p",{children:e("descriptionText")}),(0,wt.jsxs)("table",{className:"mini-game-bonus-table",children:[(0,wt.jsx)("thead",{children:(0,wt.jsx)("tr",{children:(0,wt.jsx)("th",{colSpan:3,children:e("win multiplier")})})}),(0,wt.jsx)("tbody",{children:(0,wt.jsxs)("tr",{children:[(0,wt.jsxs)("td",{children:["1 ",e("symbol")," 1:",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6013})]}),(0,wt.jsxs)("td",{children:["2 ",e("symbol")," 1:",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6014})]}),(0,wt.jsxs)("td",{children:["3 ",e("symbol")," 1:",(0,wt.jsx)(oc,{groupPlayId:2733,menuPlayId:2734,playInfoId:6015})]})]})})]}),(0,wt.jsxs)("table",{className:"mini-game-example-table",border:1,children:[(0,wt.jsx)("thead",{children:(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("th",{children:e("bet")}),(0,wt.jsx)("th",{children:e("outcome example")})]})}),(0,wt.jsxs)("tbody",{children:[(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("td",{children:(0,wt.jsx)(M_,{type:"fish"})}),(0,wt.jsxs)("td",{className:"mini-game-out-example-col",children:[(0,wt.jsx)(L_,{datas:Z_}),(0,wt.jsx)(G_,{})]})]}),(0,wt.jsxs)("tr",{children:[(0,wt.jsx)("td",{children:(0,wt.jsx)(M_,{type:"shrimp"})}),(0,wt.jsxs)("td",{className:"mini-game-out-example-col",children:[(0,wt.jsx)(L_,{datas:D_}),(0,wt.jsx)(G_,{})]})]})]})]})]})]})})})),U_=function(e){var n=e.handleClick,t=e.children,a=e.style;return(0,wt.jsx)("div",{className:"mini-game-gold-btn-wrap",onClick:n,children:(0,wt.jsx)("div",{className:"mini-game-border-outside mini-game-center",children:(0,wt.jsx)("div",{className:"mini-game-border-gap mini-game-center",children:(0,wt.jsx)("div",{className:"mini-game-border-inside mini-game-center",children:(0,wt.jsx)("div",{className:"mini-game-content mini-game-center",style:a,children:t})})})})})},q_=function(){var e=(0,Fn.he)("containers.GamesIntro.Xocdia."),n=[{key:"even",playName:e("even"),piece:[[1,1,1,1],[0,0,0,0],[1,1,0,0]],odds:(0,wt.jsxs)("div",{children:["1:",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2679,playInfoId:5989})]}),description:e("even-des")},{key:"odd",playName:e("odd"),piece:[[0,0,0,1],[1,1,1,0]],odds:(0,wt.jsxs)("div",{children:["1:",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2679,playInfoId:5988})]}),description:e("odd-des")},{key:"big",playName:e("big"),piece:[[0,0,0,1],[0,0,0,0]],odds:(0,wt.jsxs)("div",{children:["1:",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2678,playInfoId:5986})]}),description:e("big-des"),other:[0,0,1,1]},{key:"small",playName:e("small"),piece:[[1,1,1,0],[1,1,1,1]],odds:(0,wt.jsxs)("div",{children:["1:",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2678,playInfoId:5987})]}
1),description:e("small-des"),other:[1,1,0,0]},{key:"empty-1",playName:"",piece:[[0,0,0,1],[0,1,1,1]],odds:(0,wt.jsxs)("div",{children:["1:",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2682,playInfoId:5992})]}),description:e("color3-1")},{key:"empty-2",playName:"",piece:[[1,1,1,1],[0,0,0,0]],odds:(0,wt.jsxs)("div",{children:["1:",(0,wt.jsx)(oc,{groupPlayId:2677,menuPlayId:2680,playInfoId:5990})]}),description:e("all-color")}];return(0,wt.jsx)("div",{className:"mini-game-v-stack-rules",children:n.map((function(n){var t;return(0,wt.jsxs)("div",{className:"mini-game-h-stack",children:[(0,wt.jsxs)("div",{className:"mini-game-play-name",children:[(0,wt.jsx)("div",{children:n.playName}),(0,wt.jsx)("div",{className:"mini-game-piece",children:n.piece.map((function(e,n){return e.map((function(e,t){return(0,wt.jsx)("img",{src:1===e?As:Rs,alt:""},"piece-".concat(n,"-").concat(t))}))}))})]}),(0,wt.jsx)("div",{className:"mini-game-odds",children:n.odds}),(0,wt.jsxs)("div",{className:"mini-game-description",children:[(0,wt.jsx)("div",{children:n.description}),n.other&&(0,wt.jsxs)("div",{className:"mini-game-other",children:[null===(t=n.other)||void 0===t?void 0:t.map((function(e,n){return(0,wt.jsx)("img",{src:1===e?As:Rs,alt:""},"other-".concat(n))})),"= ",(0,wt.jsxs)("span",{children:["(",e("lose"),")"]})]})]})]},n.key)}))})},z_=t(86965),F_=r.memo((function(){var e=(0,Fn.he)("containers.GamesIntro."),n=(0,Fn.he)("containers.GamesIntro.Xocdia.");return(0,wt.jsx)("div",{className:"mini-game-xocdia-game-introduction",children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:z_,alt:""}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:Wo.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsxs)("div",{className:"mini-game-title",children:[e("description")," / ",e("rules")]}),(0,wt.jsxs)("div",{className:"mini-game-content",children:[(0,wt.jsxs)("div",{className:"mini-game-description-content",children:[(0,wt.jsxs)("div",{className:"mini-game-description-label",children:[e("description"),"ï¼"]}),(0,wt.jsx)("div",{className:"mini-game-description-text",children:n("descriptionText")}),(0,wt.jsxs)("div",{className:"mini-game-rules-label",children:[e("rules"),"ï¼"]})]}),(0,wt.jsx)(q_,{})]})]})})})),V_=t.p+"static/media/game-intro-bg.29a6425271e196f4ee46.png",H_=pt.Z.gameConfig.taixiuVN.menuInfos.map((function(e){return e.playInfos.map((function(n){return(0,d.Z)({groupPlayId:pt.Z.gameConfig.taixiuVN.groupPlayId,menuPlayId:e.menuPlayId},n)}))})).flat(),Y_=r.memo((function(){var e=(0,Fn.he)("containers.GamesIntro."),n=(0,Fn.he)("containers.GameName."),t=(0,Fn.he)("containers.GamesIntro.TaixiuVN.");return(0,wt.jsx)("div",{className:"mini-game-taixiu-game-introduction",children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:V_,alt:""}),(0,wt.jsx)("div",{className:"mini-game-logo-text",children:n("taixiu")}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:Wo.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsxs)("div",{className:"mini-game-title",children:[e("description")," / ",e("rules")]}),(0,wt.jsxs)("div",{className:"mini-game-content",children:[(0,wt.jsxs)("div",{className:"mini-game-description",children:[e("description"),": ",(0,wt.jsx)("br",{}),t("descriptionText")]}),(0,wt.jsxs)("div",{className:"mini-game-rules",children:[(0,wt.jsxs)("div",{children:[e("rules"),":"]}),H_.map((function(e){return(0,wt.jsxs)("div",{children:[t(e.key,{bonusRatio:"1 : "}),(0,wt.jsx)(oc,{groupPlayId:e.groupPlayId,menuPlayId:e.menuPlayId,playInfoId:e.playInfoId})]},e.key)})),(0,wt.jsx)("div",{children:t("other")})]})]})]})})})),X_=function(e){var n=e.visible,t=e.onClose,a=e.style,i=e.maskStyle,o=e.children,c=e.backClose,s=(0,r.useState)(!1),u=(0,ot.Z)(s,2),l=u[0],m=u[1],f=(0,r.useState)(!1),p=(0,ot.Z)(f,2),g=p[0],h=p[1],v=(0,r.useRef)(!1),b=function(){!1!==c&&m(!1)};return(0,r.useEffect)((function(){n?(v.current=!1,h(!0),m(!0)):m(!1)}),[n]),n||g?ct.createPortal((0,wt.jsxs)("div",{className:"mini-game-modal-element",children:[(0,wt.jsx)("div",{className:ut()({"mini-game-modal-mask":!0,"mini-game-visible":l,"mini-game-hidden":!l}),onClick:b,style:i}),(0,wt.jsx)("div",{className:ut()({"mini-game-modal-content":!0,"mini-game-visible":l,"mini-game-hidden":!l}),style:(0,d.Z)({},a),onTransitionEnd:function(e){return function(e){e||v.current||(v.current=!0,t(),h(!1))}(l)},children:r.cloneElement(o,{config:{done:b}})})]}),document.querySelector("body")):null},K_=function(){var e=(0,c.v9)((function(e){return e.gameIntroInfo})),n=(0,c.v9)((function(e){return e.gamePanelInfo.type}));return(0,wt.jsx)(X_,{visible:e.show&&null!==n,onClose:Wo.close,maskStyle:{backgroundColor:"rgba(0, 0, 0, .6)"},children:(0,wt.jsxs)("div",{className:"mini-game-gamesIntro-warp",children:[n===$t.gV.xocdia&&(0,wt.jsx)(F_,{}),n===$t.gV.baucua&&(0,wt.jsx)(W_,{}),n===$t.gV.taixiu&&"vn"===Ln.p&&(0,wt.jsx)(Y_,{})]})})},Q_=function(e){var n,t=e.numbers.split("");return(0,wt.jsx)(wt.Fragment,{children:(n=t,n&&0!==n.length?(0,wt.jsx)("ul",{className:"mini-game-ball-list-vbc",children:t.map((function(e,n){return(0,wt.jsx)("li",{children:(0,wt.jsx)(Vs,{number:e})},"dice_num_".concat(n))}))}):null)})},J_=t(10809),$_=r.memo((function(){var e=(0,Fn.he)("containers.GamesDrawHistory."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.VO)(n).data;return(0,wt.jsx)("div",{className:"mini-game-xocdia-draw-history-pop",children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:J_,alt:""}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:pr.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsxs)("div",{className:"mini-game-title",children:[(0,wt.jsx)("div",{children:e("numero")}),(0,wt.jsx)("div",{children:e("results")})]}),(0,wt.jsx)("div",{className:"mini-game-content",children:t?t.map((function(e,n){return(0,wt.jsxs)("div",{className:"mini-game-history-item",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:e.numero}),(0,wt.jsx)("div",{className:"mini-game-numbers-group","data-numbers":e.winNo,children:(0,wt.jsx)(Q_,{numbers:e.winNo})})]},e.numero)})):null})]})})})),ew=function(e){var n=e.numbers.split("");return n&&0!==n.length?(0,wt.jsx)("ul",{className:"mini-game-ball-list-vbc",children:n.map((function(e,n){return(0,wt.jsx)("li",{children:(0,wt.jsx)(Tu,{number:e})},"dice_num_".concat(n))}))}):null}
1,nw=t(12830),tw=r.memo((function(){var e=(0,Fn.he)("containers.GamesDrawHistory."),n=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),t=(0,zn.VO)(n).data;return(0,wt.jsx)("div",{className:"mini-game-baucua-draw-history-pop",children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:nw,alt:""}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:pr.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsxs)("div",{className:"mini-game-title",children:[(0,wt.jsx)("div",{children:e("numero")}),(0,wt.jsx)("div",{children:e("results")})]}),(0,wt.jsx)("div",{className:"mini-game-content",children:t?t.map((function(e,n){return(0,wt.jsxs)("div",{className:"mini-game-history-item",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:e.numero}),(0,wt.jsx)("div",{className:"mini-game-numbers-group","data-numbers":e.winNo,children:(0,wt.jsx)(ew,{numbers:e.winNo})})]},e.numero)})):null})]})})})),aw=function(e){var n=e.ballNum;if(Number(n))return(0,wt.jsx)("div",{className:"".concat(pt.Z.classNamePrefix,"dice ").concat(pt.Z.classNamePrefix,"num-").concat(n)});switch(n){case"-":return(0,wt.jsx)("div",{className:"mini-game-dice",children:(0,wt.jsx)("div",{className:"mini-game-dice-mark mini-game-dice-font",children:"-"})});case"x":return(0,wt.jsx)("div",{className:"mini-game-dice",children:(0,wt.jsx)("div",{className:"mini-game-dice-mark mini-game-dice-font",children:"x"})});default:return(0,wt.jsx)("div",{className:"mini-game-dice",children:(0,wt.jsx)("div",{className:"mini-game-dice-mark",children:"?"})})}},iw=function(e){var n,t=(0,Fn.he)("components.BallLists."),a=e.numbers,i=e.hiddenGamePlay,r=a.indexOf(",")>-1?a.split(","):a.split("");return(0,wt.jsxs)(wt.Fragment,{children:[(n=r,n&&0!==n.length?(0,wt.jsx)("ul",{className:"mini-game-ball-list-k3",children:n.map((function(e,n){return(0,wt.jsx)(aw,{ballNum:e},"dice_num_".concat(n))}))}):null),i?null:function(e){if(!e||"?"===e[0])return null;var n=e.reduce((function(e,n){return e+parseInt(n)}),0);return(0,wt.jsxs)("ul",{className:"mini-game-ball-configuration-k3",children:[(0,wt.jsx)("li",{className:"mini-game-configuration-item mini-game-in-line mini-game-sum",children:n}),(0,wt.jsx)("li",{className:"mini-game-configuration-item mini-game-in-line mini-game-sum-big-small",children:Hp(n,t)}),(0,wt.jsx)("li",{className:"mini-game-configuration-item mini-game-in-line mini-game-sum-odd-even",children:Yp(n,t)})]})}(r)]})},rw=t.p+"static/media/game-draw-history-bg.6332c44581e9f37a3393.png",ow=r.memo((function(){var e=(0,Fn.he)("containers.GamesDrawHistory."),n=(0,Fn.he)("containers.GameName."),t=(0,c.v9)((function(e){var n;return null===(n=e.gamePanelInfo.info)||void 0===n?void 0:n.gameId})),a=(0,zn.VO)(t).data;return(0,wt.jsx)("div",{className:"mini-game-taixiu-draw-history-pop",children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:rw,alt:""}),(0,wt.jsx)("div",{className:"mini-game-logo-text",children:n("taixiu")}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:pr.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsxs)("div",{className:"mini-game-title",children:[(0,wt.jsx)("div",{children:e("numero")}),(0,wt.jsx)("div",{children:e("results")})]}),(0,wt.jsx)("div",{className:"mini-game-content",children:a?a.map((function(e,n){return(0,wt.jsxs)("div",{className:"mini-game-history-item",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:e.numero}),(0,wt.jsx)("div",{className:"mini-game-numbers-group","data-numbers":e.winNo,children:(0,wt.jsx)(iw,{numbers:e.winNo,hiddenGamePlay:!0})})]},e.numero)})):null})]})})})),cw=function(){var e=(0,c.v9)((function(e){return e.gameDrawHistoryInfo})),n=(0,c.v9)((function(e){return e.gamePanelInfo.type}));return(0,wt.jsx)(X_,{visible:e.show&&null!==n,onClose:pr.close,maskStyle:{backgroundColor:"rgba(0, 0, 0, .6)"},children:(0,wt.jsxs)("div",{className:"mini-game-gamesDrawHistory-warp",children:[n===$t.gV.xocdia&&(0,wt.jsx)($_,{}),n===$t.gV.baucua&&(0,wt.jsx)(tw,{}),n===$t.gV.taixiu&&"vn"===Ln.p&&(0,wt.jsx)(ow,{})]})})},sw=function(){var e=(0,Fn.he)("containers.GamesBetHistory."),n=(0,c.v9)((function(e){return e.gameBetHistoryInfo.date}));return(0,wt.jsxs)("div",{className:"mini-game-title",children:[(0,wt.jsx)("div",{className:ut()({"mini-game-active":n===$t.XK.today}),onClick:function(){return Lo.changeDate($t.XK.today)},children:e("today")}),(0,wt.jsx)("div",{className:ut()({"mini-game-active":n===$t.XK.yesterday}),onClick:function(){return Lo.changeDate($t.XK.yesterday)},children:e("yesterday")})]})},uw=function(e){var n=e.orderStatus,t=wa(n),a=(0,Fn.he)("containers.GamesBetHistory.");switch(t){case"canceled":return(0,wt.jsx)("span",{className:"mini-game-personal-cancel",children:a("personal cancel order")});case"isWon":return(0,wt.jsx)("span",{className:"mini-game-is-won",children:a("isWon")});case"notWinning":return(0,wt.jsx)("span",{className:"mini-game-not-winning",children:a("not winning")});case"emptyDraw":return(0,wt.jsx)("span",{className:"mini-game-empty-draw",children:a("empty draw")});case"tie":return(0,wt.jsx)("span",{className:"mini-game-tie",children:a("tie")});default:return(0,wt.jsx)("span",{})}},lw=r.memo((function(e){var n=(0,Fn.he)("containers.GamesBetHistory."),t=bo(e.date),a=t.totalBettingOrders,i=t.isLoading,r=t.isError,o=t.handleScroll,c=function(e){var n=e.playId,t=e.playCode,a=e.bettingContent;switch(n){case 2680:case 2681:case 2682:case 2683:return(0,wt.jsx)(Q_,{numbers:{2680:"0000",2681:"1111",2682:"1110",2683:"1000"}[n]});default:return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("span",{className:"mini-game-play-name",children:(0,Fn.Xm)(n,t,a)}),(0,wt.jsx)("span",{children:(0,Fn.vM)(n,a)})]})}};return(0,wt.jsxs)("div",{className:"mini-game-content",onScroll:function(e){return o(e)},children:[0===a.length&&i&&(0,wt.jsx)(Gl,{}),a&&!i&&0===a.length&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:n("no data")}),r&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:n("isError")}),a&&a.length>0&&a.map((function(e,t){return(0,wt.jsxs)("div",{className:"mini-game-bet-history-item",children:[(0,wt.jsxs)("div",{className:"mini-game-left-content",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:n("no_series",{number:e.numero})}),(0,wt.jsx)("div",{children:c(e)})]}),(0,wt.jsxs)("div",{className:"mini-game-right-content",children:[(0,wt.jsx)("div",{children:(0,wt.jsx)(uw,{orderStatus:e.orderStatus})}),(0,wt.jsxs)("div",{children:[n("game subTotal"),"ï¼",e.planBettingAmount]}
1),null!==e.winningAmount&&(0,wt.jsx)("div",{className:"mini-game-win",children:(0,wt.jsxs)("span",{children:[n("game win"),"ï¼",e.winningAmount]})})]})]},e.orderDetailId)}))]})})),dw=r.memo((function(){var e=(0,c.v9)((function(e){return e.gameBetHistoryInfo}));return(0,wt.jsx)("div",{className:ut()({"mini-game-xocdia-bet-history-pop":!0}),children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:J_,alt:""}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:Lo.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsx)(sw,{}),(0,wt.jsx)(lw,{date:e.date},e.date)]})})})),mw=dw,fw=t(68282),pw=r.memo((function(e){var n=(0,Fn.he)("containers.GamesBetHistory."),t=bo(e.date),a=t.totalBettingOrders,i=t.isLoading,r=t.isError,o=t.handleScroll;return(0,wt.jsxs)("div",{className:"mini-game-content",onScroll:function(e){return o(e)},children:[0===a.length&&i&&(0,wt.jsx)(Gl,{}),a&&!i&&0===a.length&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:n("no data")}),r&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:n("isError")}),a&&a.length>0&&a.map((function(e,t){return(0,wt.jsxs)("div",{className:"mini-game-bet-history-item",children:[(0,wt.jsxs)("div",{className:"mini-game-left-content",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:n("no_series",{number:e.numero})}),(0,wt.jsx)("div",{children:(0,wt.jsx)(Tu,{number:e.bettingContent[0],wrapClass:"".concat(pt.Z.classNamePrefix,"bet-history-ball")})})]}),(0,wt.jsxs)("div",{className:"mini-game-right-content",children:[(0,wt.jsx)("div",{children:(0,wt.jsx)(uw,{orderStatus:e.orderStatus})}),(0,wt.jsxs)("div",{children:[n("game subTotal"),"ï¼",e.planBettingAmount]}),null!==e.winningAmount&&(0,wt.jsx)("div",{className:"mini-game-win",children:(0,wt.jsxs)("span",{children:[n("game win"),"ï¼",e.winningAmount]})})]})]},e.orderDetailId)}))]})})),gw=r.memo((function(){var e=(0,c.v9)((function(e){return e.gameBetHistoryInfo}));return(0,wt.jsx)("div",{className:ut()({"mini-game-baucua-bet-history-pop":!0}),children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:fw,alt:""}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:Lo.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsx)(sw,{}),(0,wt.jsx)(pw,{date:e.date},e.date)]})})})),hw=gw,vw=function(){var e=(0,Fn.he)("containers.GamesBetHistory."),n=(0,c.v9)((function(e){return e.gameBetHistoryInfo.date}));return(0,wt.jsxs)("div",{className:"mini-game-title",children:[(0,wt.jsx)("div",{className:ut()({"mini-game-active":n===$t.XK.today}),onClick:function(){return Lo.changeDate($t.XK.today)},children:e("today")}),(0,wt.jsx)("div",{className:ut()({"mini-game-active":n===$t.XK.yesterday}),onClick:function(){return Lo.changeDate($t.XK.yesterday)},children:e("yesterday")})]})},bw=t.p+"static/media/game-bet-history-bg.f7d53922679945cb03c0.png",xw=r.memo((function(e){var n=(0,Fn.he)("containers.GamesBetHistory."),t=bo(e.date),a=t.totalBettingOrders,i=t.isLoading,r=t.isError,o=t.handleScroll;return t.handleCancel,(0,wt.jsxs)("div",{className:"mini-game-content",onScroll:function(e){return o(e)},children:[0===a.length&&i&&(0,wt.jsx)(Gl,{}),a&&!i&&0===a.length&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:n("no data")}),r&&(0,wt.jsx)("div",{className:"mini-game-no-data",children:n("isError")}),a&&a.length>0&&a.map((function(e,t){return(0,wt.jsxs)("div",{className:"mini-game-bet-history-item",children:[(0,wt.jsxs)("div",{className:"mini-game-left-content",children:[(0,wt.jsx)("div",{className:"mini-game-series",children:n("no_series",{number:e.numero})}),(0,wt.jsxs)("div",{children:[(0,wt.jsx)("span",{className:"mini-game-play-name",children:(0,Fn.Xm)(e.playId,e.playCode,e.bettingContent)}),(0,wt.jsx)("span",{children:(0,Fn.vM)(e.playId,e.bettingContent)})]})]}),(0,wt.jsxs)("div",{className:"mini-game-right-content",children:[(0,wt.jsx)("div",{children:(0,wt.jsx)(uw,{orderStatus:e.orderStatus})}),(0,wt.jsxs)("div",{children:[n("game subTotal"),"ï¼",e.planBettingAmount]}
1),null!==e.winningAmount&&(0,wt.jsx)("div",{className:"mini-game-win",children:(0,wt.jsxs)("span",{children:[n("game win"),"ï¼",e.winningAmount]})})]})]},e.orderDetailId)}))]})})),yw=r.memo((function(){var e=(0,c.v9)((function(e){return e.gameBetHistoryInfo})),n=(0,Fn.he)("containers.GameName.");return(0,wt.jsx)("div",{className:ut()({"mini-game-taixiu-bet-history-pop":!0}),children:(0,wt.jsxs)("div",{className:"mini-game-box",children:[(0,wt.jsx)("img",{src:bw,alt:""}),(0,wt.jsx)("div",{className:"mini-game-logo-text",children:n("taixiu")}),(0,wt.jsx)("div",{className:"mini-game-close-btn",children:(0,wt.jsx)(U_,{handleClick:Lo.close,children:(0,wt.jsx)(bc,{className:"mini-game-delete-btn",color:"#FFE68A"})})}),(0,wt.jsx)(vw,{}),(0,wt.jsx)(xw,{date:e.date},e.date)]})})})),_w=yw,ww=function(){var e=(0,c.v9)((function(e){return e.gameBetHistoryInfo})),n=(0,c.v9)((function(e){return e.gamePanelInfo.type}));return(0,wt.jsx)(X_,{visible:e.show&&null!==n,onClose:Lo.close,maskStyle:{backgroundColor:"rgba(0, 0, 0, .6)"},children:(0,wt.jsxs)("div",{className:"mini-game-gamesBetHistory-warp",children:[n===$t.gV.xocdia&&(0,wt.jsx)(mw,{}),n===$t.gV.baucua&&(0,wt.jsx)(hw,{}),n===$t.gV.taixiu&&"vn"===Ln.p&&(0,wt.jsx)(_w,{})]})})},Tw=t.p+"static/media/warn-bg-border-header.f1d65dd15372de7d7687.png",kw=t.p+"static/media/warn-bg-border.63393c1fe126a4265c35.png";function Iw(){var e=(0,r.useRef)(null),n=(0,c.v9)((function(e){return e.notificationInfo}));(0,r.useEffect)((function(){if(n.show)return e.current=setTimeout((function(){Ca.Z.close()}),n.delayClose),function(){e.current&&clearTimeout(e.current)}}),[n.msg,n.show]);var t={backgroundColor:"rgba(0, 0, 0, 0.5)"},a={top:"40%",backgroundColor:"transparent"};return n.type===$t.k9.win&&(t.backdropFilter="blur(10px)",t.backgroundColor="rgba(22, 22, 22, 0.8)",a.top="25%"),(0,d.Z)((0,d.Z)({},n),{},{maskStyle:t,style:a})}var Cw=function(){var e=Iw(),n=e.show,t=e.msg,a=e.backClose,i=e.style,r=e.maskStyle,o=(0,Fn.he)("containers.errorPanel.");return(0,wt.jsx)(X_,{visible:n&&!!t,onClose:Ca.Z.close,backClose:a,style:i,maskStyle:r,children:(0,wt.jsx)("div",{className:"mini-game-notification-warn-warp",children:(0,wt.jsxs)("div",{className:"mini-game-warn-content",children:[(0,wt.jsx)("img",{className:"mini-game-border",src:kw,alt:""}),(0,wt.jsx)("img",{className:"mini-game-border-header",src:Tw,alt:""}),(0,wt.jsx)("div",{className:"mini-game-logo",children:o("WARNING")}),(0,wt.jsx)("div",{className:"mini-game-warn-text",children:t})]})})})},Ew=t.p+"static/media/warn-bg-border-2.bc20d2932533d04129be.png",jw=t.p+"static/media/warn.69235428eaff8408cfe2.png",Pw=function(){var e=Iw(),n=e.show,t=e.msg,a=e.backClose,i=e.style,r=e.maskStyle;return(0,wt.jsx)(X_,{visible:n&&!!t,onClose:Ca.Z.close,backClose:a,style:i,maskStyle:r,children:(0,wt.jsx)("div",{className:"mini-game-notification-warn2-warp",children:(0,wt.jsxs)("div",{className:"mini-game-warn2-content",children:[(0,wt.jsx)("img",{className:"mini-game-border",src:Ew,alt:""}),(0,wt.jsx)("img",{className:"mini-game-logo",src:jw,alt:""}),(0,wt.jsx)("div",{className:"mini-game-warn2-text",children:t})]})})})},Sw=function(){var e=Iw(),n=e.show,t=e.msg,a=e.backClose,i=e.style,r=e.maskStyle;return(0,wt.jsx)(X_,{visible:n&&!!t,onClose:Ca.Z.close,backClose:a,style:i,maskStyle:r,children:(0,wt.jsx)("div",{className:"mini-game-notification-info-warp",children:(0,wt.jsx)("div",{className:"mini-game-info-content",children:(0,wt.jsx)("div",{className:"mini-game-info-text",children:t})})})})},Nw=function(){var e=Iw(),n=e.show,t=e.msg,a=e.backClose,i=e.style,r=e.maskStyle;return(0,wt.jsx)(X_,{visible:n&&!!t,onClose:Ca.Z.close,backClose:a,style:i,maskStyle:r,children:(0,wt.jsx)("div",{className:"mini-game-notification-info2-warp",children:(0,wt.jsx)("div",{className:"mini-game-info2-content",children:(0,wt.jsx)("div",{className:"mini-game-info2-text",children:t})})})})},Bw=function(){var e=Iw(),n=e.show,t=e.msg,a=e.backClose,i=e.style,r=e.maskStyle;return(0,wt.jsx)(X_,{visible:n&&!!t,onClose:Ca.Z.close,backClose:a,style:i,maskStyle:r,children:(0,wt.jsx)("div",{className:"mini-game-notification-info3-warp",children:(0,wt.jsx)("div",{className:"mini-game-info3-content",children:(0,wt.jsx)("div",{className:"mini-game-info3-text",children:t})})})})},Aw=t.p+"static/media/win-bg.a56cf04988c27a5085f2.png",Rw=function(){var e=Iw(),n=e.show,t=e.msg,a=e.backClose,i=e.style,r=e.maskStyle;return(0,wt.jsx)(X_,{visible:n&&!!t,onClose:Ca.Z.close,backClose:a,style:i,maskStyle:r,children:(0,wt.jsx)("div",{className:"mini-game-notification-win-warp",children:(0,wt.jsxs)("div",{className:"mini-game-win-content",children:[(0,wt.jsx)("img",{className:"mini-game-bg-img",src:Aw,alt:"Win img"}),(0,wt.jsx)("div",{className:"mini-game-win-text",children:t})]})})})},Ow=r.memo((function(){var e=(0,c.v9)((function(e){return e.notificationInfo}));return(0,wt.jsxs)(wt.Fragment,{children:[e.type===$t.k9.warn&&(0,wt.jsx)(Cw,{}),e.type===$t.k9.info&&(0,wt.jsx)(Sw,{}),e.type===$t.k9.info2&&(0,wt.jsx)(Nw,{}),e.type===$t.k9.info3&&(0,wt.jsx)(Bw,{}),e.type===$t.k9.warn2&&(0,wt.jsx)(Pw,{}),e.type===$t.k9.win&&(0,wt.jsx)(Rw,{})]})})),Mw=t(14923),Zw=t(32691),Dw=function(){var e=(0,r.useRef)(null),n=(0,Fn.he)("containers.errorPanel."),t=(0,c.v9)((function(e){return e.authorizedInfo})).isShowPop,a=function(){Zw.Z.updateShowPop(!1)};return(0,Mw.t$)(e,a),t?(0,wt.jsx)(ra,{msg:n("loginTip"),onClick:a}):null};function Lw(){return rt(),(0,wt.jsxs)(s.a,{i18n:Un,children:["sea"===Ln.p?(0,wt.jsx)(zt,{}):(0,wt.jsx)(Jt,{}),(0,wt.jsx)(B_,{}),(0,wt.jsx)(K_,{}),(0,wt.jsx)(cw,{}),(0,wt.jsx)(ww,{}),(0,wt.jsx)(Ow,{}),(0,wt.jsx)(Dw,{})]})}var Gw,Ww=function(){return(0,wt.jsx)(c.zt,{store:qn.Z,children:(0,wt.jsx)(Lw,{})})},Uw=window.location.hostname,qw=Uw.includes("uat-")||Uw.includes("sit-")||Uw.includes("dev-")?"G-XY4VRTFBQ6":"G-NKBC0CSS2F",zw=new xt.ZP(qw,{debug_mode:!1}),Fw=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zw.initialize();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("[GA4] initialize error: Adblock is activated");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),Vw=Fw;
1window.miniGameRenderStatus="init",window.miniGameRenderGameId=0,window.miniGameRenderBackUrl="",window.miniGameInfo={targets:["modal-element","gamePanel-warp"]},window.miniGameRender=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t,i,r,c,s,u,l;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("init"!==window.miniGameRenderStatus){e.next=21;break}if((0,Fn.RH)(),t=document.getElementById(n)){e.next=6;break}return console.error("[MINI-GAME] Render Error - Element with id ".concat(n," not found")),e.abrupt("return");case 6:return t.style.position="fixed",t.style.transform="translate(0px, 0px)",t.style.zIndex="200001",t.style.fontSize="initial",i=o.createRoot(t),e.next=13,Vw();case 13:i.render((0,wt.jsx)(Ww,{})),window.miniGameRenderStatus=n,r=window.getComputedStyle(t),c=r.left,s=r.right,u=Number(c.replace("px","")),l=Number(s.replace("px","")),window.miniGameRenderInitialGap=u<=l?u:l,window.miniGameRenderType="normal";case 21:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),window.miniGameDirectOpen=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n,t){var i,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("init"!==window.miniGameRenderStatus){e.next=14;break}if((0,Fn.RH)(),n){e.next=5;break}return console.error("[MINI-GAME] Direct Open Game Error - gameId is required"),e.abrupt("return");case 5:return i=document.createElement("div"),r=o.createRoot(i),window.miniGameRenderStatus="no-id",window.miniGameRenderType="direct",window.miniGameRenderGameId=n||0,window.miniGameRenderBackUrl=t||"",e.next=13,Vw();case 13:r.render((0,wt.jsx)(Ww,{}));case 14:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),window.miniGameHide=function(){"init"!==window.miniGameRenderStatus&&(document.getElementById(window.miniGameRenderStatus).style.display="none",window.miniGameInfo.targets.forEach((function(e){var n=document.querySelector(".".concat(pt.Z.classNamePrefix).concat(e));n&&(n.style.display="none")})))},window.miniGameShow=function(){"init"!==window.miniGameRenderStatus&&(document.getElementById(window.miniGameRenderStatus).style.display="block",window.miniGameInfo.targets.forEach((function(e){var n=document.querySelector(".".concat(pt.Z.classNamePrefix).concat(e));n&&(n.style.display="")})))},Gw&&Gw instanceof Function&&t.e(954).then(t.bind(t,64027)).then((function(e){var n=e.getCLS,t=e.getFID,a=e.getFCP,i=e.getLCP,r=e.getTTFB;n(Gw),t(Gw),a(Gw),i(Gw),r(Gw)}))},73337:function(e,n,t){"use strict";t.d(n,{p:function(){return y}});var a,i,r,o,c,s,u,l,d=t(44925),m=t(1413),f=t(74165),p=t(15861),g=t(98374),h=t.n(g),v=t(86729),b=["playMenuGroupList"],x=["gameChipModes"],y="sea",_={sea:{LGWURL:"/lotto-thai-h5/b1/lgw",api:{getGCSGameVendor:{getRequestParam:function(){return{url:"GCSGAME_gameVendor",method:"get",headers:{ModuleId:"COMM3"},params:{merchantCode:(0,v.Z_)()}}}},getAccount:{getRequestParam:function(e){return{url:"accounts",method:"get",params:{prizeMode:e}}}},getDrawHistory:{getRequestParam:function(e){return{url:"draw/".concat(e),method:"get",params:{page:0,size:100}}},transformResponse:(l=(0,p.Z)((0,f.Z)().mark((function e(n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.content);case 1:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)})},getDrawNear:{getRequestParam:function(e){return{url:"numeros/near",method:"get",params:{gameId:e}}},transformResponse:function(e){return e}},getGameMenu:{getRequestParam:function(e){return{url:"games/".concat(h()()?"mobile_game_menus":"game_menus"),method:"get",params:{prizeMode:e,showTableGame:!0,playType:"Tradition"}}}},getGamePlayMenu:{getRequestParam:function(e){return{url:"games/".concat(e,"/play_menu"),method:"get"}},transformResponse:(u=(0,p.Z)((0,f.Z)().mark((function e(n){var t,a,i;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(t=(0,v.zt)())){e.next=3;break}return e.abrupt("return",{});case 3:return a=v.TL[t],i=null==n?void 0:n.find((function(e){return e.prizeModeId===a})),e.abrupt("return",i||{});case 6:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},getGameSetting:{getRequestParam:function(e){return{url:"games/".concat(e,"/setting"),method:"get"}},transformResponse:(s=(0,p.Z)((0,f.Z)().mark((function e(n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n);case 1:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},getGameGroupSeries:{getRequestParam:function(){return{url:"customers/series",method:"get"}}},getBettingOrders:{getRequestParam:function(e){return{url:"v2/orders",method:"post",data:e}}},sendBettingOrders:{getRequestParam:function(e,n){return{url:"orders/betting/table",method:"post",data:{device:"TQ1",prizeMode:e,contents:n}}}},cancelBettingOrder:{getRequestParam:function(e){return{url:"orders/suborders/cancel",method:"put",data:[e]}}},getMiniGameIcon:{getRequestParam:function(){return{url:"games/plat_form_setting/mini_game_entrance",method:"get"}}},getPlatformSetting:{getRequestParam:function(){return{url:"games/plat_form_setting",method:"get"}},transformResponse:function(e){return e}},getImUrl:{getRequestParam:function(){return{url:"im/url",method:"get"}}},getLaunchGame:{getRequestParam:function(e,n){return{url:"notification/enter_lott_game?rqts=".concat(e),method:"post",data:{merchant:(0,v.Z_)(),prizeModeId:v.TL[n]}}}}
1,sendBettingOrdersOneShot:{getRequestParam:function(){return{url:"orders/betting/one_shot"}}}},getPrizeMode:function(){return(0,v.zt)()},getI18nLanguage:function(){return(0,v.yv)()},getCurrentProductType:function(){return"sea"},getIsChatRoomEnterButtonHidden:function(){return!0},getCustomIconPath:function(e){return(0,v.eI)(e)},getIsQuickMenuGame:function(e){return(0,v.B_)(e||"")},getGameMenusData:function(e){var n=["VXD","VBC","VTX","CLR","BCR","MINES","CRG","MINIKENO"];return e.flatMap((function(e){return e.gameMenus})).filter((function(e){return n.includes(e.gameGroupCode)}))}},vn:{LGWURL:"/m/lotto-vn-h5/lgw",api:{getGCSGameVendor:{getRequestParam:function(){return{url:"GCSGAME_newGameVendor",method:"get",headers:{ModuleId:"COMM3"},params:{merchantCode:(0,v.Z_)()}}}},getAccount:{getRequestParam:function(e){return{url:"accounts",method:"get",params:{prizeMode:e}}}},getDrawHistory:{getRequestParam:function(e){return{url:"draw/".concat(e),method:"get",params:{count:50}}},transformResponse:(c=(0,p.Z)((0,f.Z)().mark((function e(n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.map((function(e){var n;return(0,m.Z)((0,m.Z)({},e),{},{winningTime:null===(n=new Date(null==e?void 0:e.winningTime))||void 0===n?void 0:n.getTime()})})));case 1:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},getDrawNear:{getRequestParam:function(e){return{url:"numeros/near",method:"get",params:{gameId:e}}},transformResponse:function(e){return e}},getGameMenu:{getRequestParam:function(e){return{url:"games/game_menu",method:"get",params:{prizeMode:e,device:h()()?"MOBILE":"WEB",showTableGame:!0}}}},getGamePlayMenu:{getRequestParam:function(e){return{url:"games/".concat(e,"/play_menu"),method:"get"}},transformResponse:(o=(0,p.Z)((0,f.Z)().mark((function e(n){var t,a,i,r,o;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.x2)();case 2:if(t=e.sent,a=v.TL[t],!(i=null==n?void 0:n.find((function(e){return e.prizeModeId===a})))){e.next=8;break}return r=i.playMenuGroupList,o=(0,d.Z)(i,b),e.abrupt("return",(0,m.Z)((0,m.Z)({},o),{},{playMenuGroups:r}));case 8:return e.abrupt("return",{});case 9:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},getGameSetting:{getRequestParam:function(e){return{url:"games/".concat(e,"/setting"),method:"get"}},transformResponse:(r=(0,p.Z)((0,f.Z)().mark((function e(n){var t,a,i;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.gameChipModes,a=void 0===t?{}:t,i=(0,d.Z)(n,x),e.abrupt("return",(0,m.Z)((0,m.Z)({},i),{},{chipMode:a}));case 2:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},getGameGroupSeries:{getRequestParam:function(){return{url:"series",method:"get"}}},getBettingOrders:{getRequestParam:function(e){return{url:"orders",method:"post",data:e}}},sendBettingOrders:{getRequestParam:function(e,n){return{url:"betting/table",method:"post",data:{device:"TQ1",prizeMode:e,contents:n}}}},cancelBettingOrder:{getRequestParam:function(e){return{url:"orders/suborders/cancel",method:"put",data:[e]}}},getMiniGameIcon:{getRequestParam:function(){return{url:"games/plat_form_setting/mini_game_entrance",method:"get"}}},getPlatformSetting:{getRequestParam:function(){return{url:"games/plat_form_setting",method:"get"}},transformResponse:(i=(0,p.Z)((0,f.Z)().mark((function e(n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[n]);case 1:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},getImUrl:{getRequestParam:function(){return{url:"im/url",method:"get"}}},getLaunchGame:{getRequestParam:function(e,n){return{url:"notification/enter_lott_game?rqts=".concat(e),method:"post",data:{merchant:(0,v.Z_)(),prizeModeId:v.TL[n]}}}},sendBettingOrdersOneShot:{getRequestParam:function(){return{url:"betting/one_shot"}}}},getPrizeMode:(a=(0,p.Z)((0,f.Z)().mark((function e(){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.x2)();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)}),getI18nLanguage:function(){return(0,v.sY)()},getCurrentProductType:function(){return"vn"},getIsChatRoomEnterButtonHidden:function(){return(0,v.Vd)()},getCustomIconPath:function(){return(0,v.eI)(void 0,["gi8viet","ae6666","bongvip","mu99f2","kgvnf2"])},getIsQuickMenuGame:function(){return!1},getGameMenusData:function(e){var n=e.flatMap((function(e){return e.gameMenus})),t=new Map(n.map((function(e){return[e.gameGroupCode,e]})));return["VTX","VBC","VXD","RPS"].map((function(e){return t.get(e)})).filter((function(e){return void 0!==e}))}}};n.Z=_[y]},32691:function(e,n,t){"use strict";var a=t(78013),i=t(7905),r={updateAuthorizedInfo:function(e){i.Z.dispatch(a.ZP.actions.updateData(e))},updateShowPop:function(e){i.Z.dispatch(a.ZP.actions.updateShowPop(e))}};n.Z=r},78013:function(e,n,t){"use strict";var a=(0,t(82379).oM)({name:"authorizedInfoSlice",initialState:{isUnAuthorized:!1,isShowPop:!1},reducers:{updateData:function(e,n){e.isUnAuthorized=n.payload},updateShowPop:function(e,n){e.isShowPop=n.payload}}}),i=a.actions;i.updateData,i.updateShowPop,n.ZP=a},61424:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var a=(0,t(82379).oM)({name:"calculatorInfoSlice",initialState:{show:!1,editAmount:0},reducers:{open:function(e){e.show=!0,e.editAmount=0},close:function(e){e.show=!1},updateEditAmount:function(e,n){e.editAmount=n.payload}}})},69265:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});
1var a=t(82379),i=t(83205),r={open:function(e){e.show=!0},close:function(e){e.show=!1,e.loading=!0,e.date=i.XK.today},changeDate:function(e,n){e.date=n.payload,e.loading=!0},setData:function(e){e.loading=!1}},o={loading:!0,show:!1,date:i.XK.today,data:[]},c=(0,a.oM)({name:"gameBetHistoryInfoSlice",initialState:o,reducers:r})},49987:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var a=(0,t(82379).oM)({name:"gameDrawHistoryInfoSlice",initialState:{loading:!0,show:!1,drawHistory:[]},reducers:{open:function(e){e.show=!0},close:function(e){e.show=!1},updateDrawHistory:function(e,n){e.drawHistory=n.payload}}})},22615:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var a=(0,t(82379).oM)({name:"gameIntroInfoSlice",initialState:{loading:!0,show:!1},reducers:{open:function(e){e.show=!0},close:function(e){e.show=!1}}})},79760:function(e,n,t){"use strict";var a=t(93433),i=t(74165),r=t(15861),o=t(98374),c=t.n(o),s=t(42911),u=t(7905),l=t(61424),d=t(86729),m=function(){var e=(0,r.Z)((0,i.Z)().mark((function e(n){var t,a,r;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=null===(t=u.Z.getState().gamePanelInfo.info)||void 0===t?void 0:t.gameId)){e.next=10;break}return e.prev=2,r=(0,d.mk)(!0,"user_chips_info"),e.abrupt("return",u.Z.dispatch(s.ZP.actions.setChips(r.chips&&r.chips[a]?r.chips[a]:n)));case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",u.Z.dispatch(s.ZP.actions.setChips(n)));case 10:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(n){return e.apply(this,arguments)}}(),f={open:function(e){u.Z.dispatch(s.ZP.actions.open(e))},close:function(){u.Z.dispatch(s.ZP.actions.close()),u.Z.dispatch(l.Z.actions.close());var e="direct"===window.miniGameRenderType,n=e&&window.miniGameRenderBackUrl,t=e&&""===window.miniGameRenderBackUrl;n?window.location.href=window.miniGameRenderBackUrl:t&&(window.location.href=c()()?"/m/home":"/")},switchGame:function(e){u.Z.dispatch(s.ZP.actions.switchGame(e))},setChips:m,updateChip:function(e){var n,t=null===(n=u.Z.getState().gamePanelInfo.info)||void 0===n?void 0:n.gameId,i=u.Z.getState().gamePanelInfo.chipsInfo.userChips,r=u.Z.getState().gamePanelInfo.chipsInfo.selectedIndex;if(i){var o=(0,a.Z)(i);o[r]=e,u.Z.dispatch(s.ZP.actions.setChips(o));var c=(0,d.mk)(!0,"user_chips_info");c.chips||(c.chips={}),c.chips&&t&&(c.chips[t]=o),(0,d.tG)(!0,"user_chips_info",c)}},toggleChipSelectorPanel:function(){return u.Z.dispatch(s.ZP.actions.toggleChipSelectorPanel())},changeSelectedChip:function(e){var n,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=null===(n=u.Z.getState().gamePanelInfo.info)||void 0===n?void 0:n.gameId,i=(0,d.mk)(!0,"user_chips_info");return i.selectedIndex||(i.selectedIndex={}),a&&(i.selectedIndex[a]=e),t&&(0,d.tG)(!0,"user_chips_info",i),u.Z.dispatch(s.ZP.actions.changeSelectedChip(e))},updateHeaderData:function(e){u.Z.dispatch(s.ZP.actions.updateHeaderData(e))},updateDrawState:function(e){u.Z.getState().gamePanelInfo.drawState!==e&&u.Z.dispatch(s.ZP.actions.updateDrawState(e))},updateCustomerProfit:function(e){u.Z.dispatch(s.ZP.actions.updateCustomerProfit(e))},autoOpenCup:function(e){u.Z.dispatch(s.ZP.actions.autoOpenCup(e))},playerBettingOrder:function(e){u.Z.dispatch(s.ZP.actions.playerBettingOrder(e))},updateCommission:function(e){u.Z.dispatch(s.ZP.actions.updateCommission(e))}};n.Z=f},42911:function(e,n,t){"use strict";t.d(n,{ZP:function(){return u},E3:function(){return s}});var a=t(82379),i=t(1413),r=t(83205),o=function(e){switch(e){case"VXD":return r.gV.xocdia;case"VBC":return r.gV.baucua;case"CLR":return r.gV.colorGame;case"BCR":return r.gV.baccarat;case"BCB":return r.gV.bacbo;case"MINES":return r.gV.mines;case"CRG":return r.gV.chickenRoad;case"MINIKENO":return r.gV.keno;case"RPS":return r.gV.rps;default:return r.gV.taixiu}},c={open:function(e,n){e.isShow=!0,e.type=o(n.payload.gameGroupCode),e.info=n.payload},close:function(){return(0,i.Z)({},s)},setChips:function(e,n){e.chipsInfo.userChips=n.payload},changeSelectedChip:function(e,n){e.chipsInfo.selectedIndex=n.payload},toggleChipSelectorPanel:function(e){var n=e.chipsInfo.showChipSelector;e.chipsInfo.showChipSelector=!n}
1,updateHeaderData:function(e,n){n.payload.numero&&n.payload.drawNumbers&&n.payload.numero===e.header.numero&&n.payload.drawNumbers===e.header.drawNumbers||n.payload.numero&&n.payload.numero===e.header.numero||n.payload.drawNumbers&&n.payload.drawNumbers===e.header.drawNumbers||(n.payload.numero&&(e.header.numero=n.payload.numero),n.payload.drawNumbers&&(e.header.drawNumbers=n.payload.drawNumbers))},updateDrawState:function(e,n){e.drawState===r.x3.WAIT_DRAW&&n.payload!==r.x3.DRAW||(e.drawState=n.payload)},updateCustomerProfit:function(e,n){e.customerProfit=n.payload},autoOpenCup:function(e,n){e.isAutoOpenCup=n.payload},playerBettingOrder:function(e,n){null===n.payload?e.bettingOrder=[]:e.bettingOrder.push(n.payload)},updateCommission:function(e,n){n.payload.bonusMode&&(e.commission.bonusMode=n.payload.bonusMode),void 0!==n.payload.disabled&&(e.commission.disabled=n.payload.disabled)},switchGame:function(e,n){var t;(null===(t=e.info)||void 0===t?void 0:t.gameGroupCode)!==n.payload.gameGroupCode&&(e.type=o(n.payload.gameGroupCode)),e.drawState=null,e.info=n.payload}},s={loading:!0,isShow:!1,type:null,info:null,chipsInfo:{userChips:[],selectedIndex:0,showChipSelector:!1},drawState:null,header:{drawNumbers:"",numero:""},customerProfit:0,isAutoOpenCup:!1,bettingOrder:[],commission:{bonusMode:r.Tl.Default,disabled:!1}},u=(0,a.oM)({name:"gamePanelInfoSlice",initialState:s,reducers:c})},47325:function(e,n,t){"use strict";var a=(0,t(82379).oM)({name:"gamePopInfoSlice",initialState:[],reducers:{openModal:function(e,n){e.push(n.payload)},closeModal:function(e,n){var t=e.indexOf(n.payload);-1!==t&&e.splice(t,1)}}}),i=a.actions;i.openModal,i.closeModal,n.ZP=a},7905:function(e,n,t){"use strict";var a,i=t(4942),r=t(82379),o=(t(63709),t(82212)),c=t(42911),s=t(22615),u=t(49987),l=t(69265),d=t(77914),m=t(61424),f=t(47325),p=t(78013),g=t(78524),h=t(14529),v=(a={},(0,i.Z)(a,g.GCSAPI.reducerPath,g.GCSAPI.reducer),(0,i.Z)(a,h.nk.reducerPath,h.nk.reducer),(0,i.Z)(a,"gamePanelInfo",c.ZP.reducer),(0,i.Z)(a,"gameIntroInfo",s.Z.reducer),(0,i.Z)(a,"gameDrawHistoryInfo",u.Z.reducer),(0,i.Z)(a,"gameBetHistoryInfo",l.Z.reducer),(0,i.Z)(a,"notificationInfo",d.Z.reducer),(0,i.Z)(a,"calculatorInfo",m.Z.reducer),(0,i.Z)(a,"gamePopInfo",f.ZP.reducer),(0,i.Z)(a,"authorizedInfo",p.ZP.reducer),a),b=(0,r.xC)({reducer:v,middleware:function(e){return e().concat(g.GCSAPI.middleware).concat(h.nk.middleware)},devTools:!1,enhancers:[o.reduxBatch]});n.Z=b},78459:function(e,n,t){"use strict";var a=t(77914),i=t(7905),r=t(83205),o={show:function(e,n,t,o,c){i.Z.getState().notificationInfo.type!==r.k9.system&&i.Z.dispatch(a.Z.actions.show({type:e,msg:n,backClose:o,delayClose:t,shift:c}))},close:function(){return i.Z.dispatch(a.Z.actions.close())}};n.Z=o},77914:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var a=(0,t(82379).oM)({name:"notificationInfoSlice",initialState:{show:!1,type:null,backClose:!0,delayClose:2e3,msg:""},reducers:{show:function(e,n){e.show=!0,e.type=n.payload.type,e.msg=n.payload.msg,e.shift=n.payload.shift,e.backClose=!1!==n.payload.backClose,e.delayClose=n.payload.delayClose?n.payload.delayClose:2e3},close:function(e){e.show=!1,e.type=null,e.msg="",e.backClose=!0,e.delayClose=2e3}}})},78524:function(e,n,t){"use strict";t.r(n),t.d(n,{GCSAPI:function(){return o},useGetGCSGameVendorQuery:function(){return c}});var a=t(19438),i=t(60719),r=t(73337),o=(0,a.LC)({reducerPath:"GCSAPI",baseQuery:(0,i.M)(),endpoints:function(e){return{getGCSGameVendor:e.query({query:function(){return r.Z.api.getGCSGameVendor.getRequestParam()}})}}}),c=o.useGetGCSGameVendorQuery},14529:function(e,n,t){"use strict";t.d(n,{nk:function(){return S},Oc:function(){return U},De:function(){return D},EB:function(){return B},VO:function(){return A},ip:function(){return R},Ed:function(){return O},bI:function(){return N},Ij:function(){return Z},eM:function(){return M},Yy:function(){return q},iB:function(){return z},bP:function(){return G},xV:function(){return L},TA:function(){return W},Wq:function(){return V},hE:function(){return F},MJ:function(){return H}});var a=t(19438),i=t(60719),r=t(74165),o=t(1413),c=t(15861),s=t(73337);function u(e){return null!==e&&/^https:\/\//.test(e)}var l=function(e){return e.query({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function e(){var n,t,i,c,l,d,m,f,p;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.getPrizeMode();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",{error:"no prize mode"});case 5:return t=s.Z.api.getGameMenu.getRequestParam(n),i=new Date,e.next=9,a(t);case 9:if(c=e.sent,l=(new Date).valueOf()-i.valueOf(),!c.data){e.next=17;break}return d=c.data,m=s.Z.getGameMenusData(d),f=m.map((function(e){return{gameId:e.gameId,gameCode:e.code,gameGroupCode:e.gameGroupCode,numero:e.numero,remark:e.remark,lockTime:e.lockTime,remainTime:e.remainTime,mobileIconUrl:u(e.mobileIconUrl)?e.mobileIconUrl:"",webIconUrl:u(e.webIconUrl)?e.webIconUrl:""}})),p=f.map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{remainTime:e.remainTime-l})})),e.abrupt("return",{data:p});case 17:return e.abrupt("return",{error:c.error});case 18:case"end":return e.stop()}}),e)})))()}})},d=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=new Date;return e?(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)):(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n},m=function(e){return e.query({query:function(e){var n=e.gameId,t=e.from,a=e.to,i=e.page,r=void 0===i?0:i,o=e.size,c=void 0===o?20:o,u={startDate:t||d(!0).valueOf(),endDate:a||d(!1).valueOf(),gameId:n,page:r,size:c};return s.Z.api.getBettingOrders.getRequestParam(u)}
1,keepUnusedDataFor:0})},f=function(e){return e.query({query:function(e){return s.Z.api.getDrawHistory.getRequestParam(e)},transformResponse:(n=(0,c.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s.Z.api.getDrawHistory.transformResponse(n));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})});var n},p=function(e){return e.query({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function n(){var t,i,o,c,u,l;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=s.Z.api.getDrawNear.getRequestParam(e),i=new Date,n.next=4,a(t);case 4:if(o=n.sent,c=new Date,u=c.valueOf()-i.valueOf(),!o.data){n.next=16;break}return(l=o.data).currentNumero.remainTime-=u,l.nextNumero.remainTime-=u,l.previousNumero.remainTime-=u,l.currentNumero.remainDrawTime=c.valueOf()+l.currentNumero.remainTime,l.nextNumero.remainDrawTime=c.valueOf()+l.nextNumero.remainTime,l.previousNumero.remainDrawTime=c.valueOf()+l.previousNumero.remainTime,n.abrupt("return",{data:l});case 16:return n.abrupt("return",{error:o.error});case 17:case"end":return n.stop()}}),n)})))()},keepUnusedDataFor:0})},g=function(e){return e.query({query:function(){return s.Z.api.getGameGroupSeries.getRequestParam()}})},h=function(e){return e.query({query:function(e){return s.Z.api.getGameSetting.getRequestParam(e)},transformResponse:function(e){return s.Z.api.getGameSetting.transformResponse(e)}})},v=function(e){return e.query({query:function(e){return s.Z.api.getGamePlayMenu.getRequestParam(e)},transformResponse:function(e){return s.Z.api.getGamePlayMenu.transformResponse(e)}})},b=function(e){return e.query({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function e(){var n,t,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.getPrizeMode();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",{error:"no prize mode"});case 5:return t=s.Z.api.getAccount.getRequestParam(n),e.next=8,a(t);case 8:if(!(i=e.sent).data){e.next=11;break}return e.abrupt("return",{data:i.data});case 11:return e.abrupt("return",{error:i.error});case 12:case"end":return e.stop()}}),e)})))()}})},x=t(7905),y=function(e){return e.mutation({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function n(){var t,i,o,c,u,l,d,m,f,p,g,h,v;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.Z.getPrizeMode();case 2:if(o=n.sent,c={data:{success:!1,errorCode:""}},u=null===(t=x.Z.getState().gamePanelInfo.info)||void 0===t?void 0:t.gameId,e&&u&&o||(c.data.errorCode="PARAMETER_REQUIRED"),(l=null===(i=x.Z.getState().LGWAPI.queries["getGameSetting(".concat(u,")")])||void 0===i?void 0:i.data)||(c.data.errorCode="PARAMETER_REQUIRED"),l.lockTimeBettingSwitch||(m=null===(d=x.Z.getState().LGWAPI.queries["getDrawNear(".concat(u,")")])||void 0===d?void 0:d.data,f=m.currentNumero,p=f.lockTime,g=f.remainDrawTime,Math.round((new Date(g).getTime()-(new Date).getTime())/1e3)<=p&&(c.data.errorCode="IS_LOCK_TIME")),""===c.data.errorCode){n.next=12;break}return n.abrupt("return",{error:c});case 12:return h=s.Z.api.sendBettingOrders.getRequestParam(o,e),n.next=15,a(h);case 15:if(!(v=n.sent).data){n.next=18;break}return n.abrupt("return",{data:{success:!0,value:v.data}});case 18:return n.abrupt("return",{error:v.error});case 19:case"end":return n.stop()}}),n)})))()}})},_=function(e){return e.mutation({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function n(){var t,i,o;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.Z.getPrizeMode();case 2:return t=n.sent,i={url:"orders/betting/table",method:"post",data:{device:"TQ1",prizeMode:t,contents:e}},n.next=6,a(i);case 6:if(!(o=n.sent).data){n.next=9;break}return n.abrupt("return",{data:{success:!0,value:o.data}});case 9:return n.abrupt("return",{error:o.error});case 10:case"end":return n.stop()}}),n)})))()}})},w=function(e){return e.mutation({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function n(){var t,i,o,c,u,l;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.Z.getPrizeMode();
1case 2:return t=n.sent,i=s.Z.api.sendBettingOrdersOneShot.getRequestParam(),o=i.url,c={url:o,method:"post",data:{device:"TQ1",prizeMode:t,contents:e}},n.next=7,a(c);case 7:if(!((u=n.sent).data&&Array.isArray(u.data)&&u.data.length>0)){n.next=11;break}return l=u.data,n.abrupt("return",{data:{success:!0,value:l[0]}});case 11:return n.abrupt("return",{error:u.error});case 12:case"end":return n.stop()}}),n)})))()}})},T=function(e){return e.mutation({query:function(e){return s.Z.api.cancelBettingOrder.getRequestParam(e)}})},k=function(e){return e.query({query:function(){return{url:"games/multilingual",method:"get"}}})},I=function(e){return e.query({query:function(){return s.Z.api.getMiniGameIcon.getRequestParam()}})},C=function(e){return e.query({query:function(){return s.Z.api.getPlatformSetting.getRequestParam()},transformResponse:function(e){return s.Z.api.getPlatformSetting.transformResponse(e)}})},E=function(e){return e.query({queryFn:function(e,n,t,a){return(0,c.Z)((0,r.Z)().mark((function e(){var n,t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.getPrizeMode();case 2:return n=e.sent,e.next=5,a({url:"customers/check_allow_play_lott",method:"get",params:{prizeMode:n}});case 5:return t=e.sent,e.abrupt("return",t.data?{data:t.data}:{error:t.error});case 7:case"end":return e.stop()}}),e)})))()}})},j=function(e){return e.query({query:function(){return s.Z.api.getImUrl.getRequestParam()}})},P=function(e){return e.mutation({query:function(e){var n=e.timestamp,t=e.prizeMode;return s.Z.api.getLaunchGame.getRequestParam(n,t)}})},S=(0,a.LC)({reducerPath:"LGWAPI",baseQuery:(0,i.o)(),endpoints:function(e){return{getGameMenus:l(e),getBettingOrders:m(e),getDrawHistory:f(e),getDrawNear:p(e),getGameGroupSeries:g(e),getGameSetting:h(e),getGamePlayMenus:v(e),getAccount:b(e),sendBettingOrders:y(e),sendBettingOrdersAnyway:_(e),sendBettingOrdersOneShot:w(e),cancelBettingOrder:T(e),getMultilingual:k(e),getMiniGameIcon:I(e),getPlatformSetting:C(e),checkIsAllowPlayLott:E(e),getImUrl:j(e),getLaunchGame:P(e)}}}),N=S.useGetGameMenusQuery,B=S.useGetBettingOrdersQuery,A=(S.useLazyGetBettingOrdersQuery,S.useGetDrawHistoryQuery),R=S.useGetDrawNearQuery,O=(S.useLazyGetDrawNearQuery,S.useGetGameGroupSeriesQuery),M=S.useGetGameSettingQuery,Z=S.useGetGamePlayMenusQuery,D=S.useGetAccountQuery,L=S.useGetMultilingualQuery,G=S.useGetMiniGameIconQuery,W=S.useGetPlatformSettingQuery,U=S.useCheckIsAllowPlayLottQuery,q=S.useGetImUrlQuery,z=S.useGetLaunchGameMutation,F=S.useSendBettingOrdersMutation,V=S.useSendBettingOrdersAnywayMutation,H=S.useSendBettingOrdersOneShotMutation;S.useCancelBettingOrderMutation},60719:function(e,n,t){"use strict";t.d(n,{o:function(){return v},M:function(){return b}});var a=t(74165),i=t(15861),r=t(31881),o=t.n(r),c=t(37290),s=t(86729),u=t(79760),l=t(78459),d=t(32691),m=t(15694),f=t(52923);function p(e){var n=(0,s.LP)(),t=(0,s.Z_)(),a=(0,s.G3)();return n&&(e.headers.Authorization=n),t&&(e.headers.Merchant=t),a&&(e.headers.Language=a),e.params||(e.params={}),e.params._t=(new Date).valueOf(),e}var g=o().create({baseURL:c.Z.LGWURL});g.interceptors.request.use(p,(function(e){return Promise.reject(e)})),g.interceptors.response.use((function(e){return e}),(function(e){var n;return console.error("[MINI-GAME] API ERROR - ".concat(e.message)),401===(null===(n=e.response)||void 0===n?void 0:n.status)&&(f.eq.stopAll(),m.deM.resolver.reset(),m.deM.cache.reset(),l.Z.close(),u.Z.close(),d.Z.updateAuthorizedInfo(!0),d.Z.updateShowPop(!0)),Promise.reject(e)}));var h=o().create({baseURL:c.Z.WPSURL});h.interceptors.request.use(p,(function(e){return Promise.reject(e)})),h.interceptors.response.use((function(e){return e}),(function(e){return console.error("[MINI-GAME] API ERROR - ".concat(e.message)),Promise.reject(e)}));var v=function(){return function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t,i,r,o,c,s,u,l,d,m;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n;case 2:return t=e.sent,i=t.url,r=t.method,o=t.headers,c=t.data,s=t.params,e.prev=8,e.next=11,g({url:i,method:r,headers:o,data:c,params:s});case 11:return u=e.sent,e.abrupt("return",{data:u.data});case 15:return e.prev=15,e.t0=e.catch(8),m=e.t0,e.abrupt("return",{error:{status:null===(l=m.response)||void 0===l?void 0:l.status,data:(null===(d=m.response)||void 0===d?void 0:d.data)||m.message}});case 19:case"end":return e.stop()}}),e,null,[[8,15]])})));return function(n){return e.apply(this,arguments)}}()},b=function(){return function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){var t,i,r,o,c,s,u,l,d,m;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n;case 2:return t=e.sent,i=t.url,r=t.method,o=t.headers,c=t.data,s=t.params,e.prev=8,e.next=11,h({url:i,method:r,headers:o,data:c,params:s});case 11:return u=e.sent,e.abrupt("return",{data:u.data});case 15:return e.prev=15,e.t0=e.catch(8),m=e.t0,e.abrupt("return",{error:{status:null===(l=m.response)||void 0===l?void 0:l.status,data:(null===(d=m.response)||void 0===d?void 0:d.data)||m.message}});case 19:case"end":return e.stop()}}),e,null,[[8,15]])})));return function(n){return e.apply(this,arguments)}}()}},83205:function(e,n,t){"use strict";t.d(n,{SR:function(){return u},Tl:function(){return c},XK:function(){return i},ak:function(){return s},gV:function(){return a},k9:function(){return r},x3:function(){return o}});var a=function(e){return e.taixiu="taixiu",e.xocdia="xocdia",e.baucua="baucua",e.colorGame="colorGame",e.baccarat="baccarat",e.bacbo="bacbo",e.mines="mines",e.chickenRoad="chickenRoad",e.keno="keno",e.rps="rps",e}({}),i=function(e){return e[e.today=0]="today",e[e.yesterday=1]="yesterday",e}({}),r=function(e){return e[e.info=0]="info",e[e.info2=1]="info2",e[e.info3=2]="info3",e[e.warn=3]="warn",e[e.warn2=4]="warn2",e[e.win=5]="win",e[e.system=6]="system",e[e.pixiInfo=7]="pixiInfo",e[e.pixiWin=8]="pixiWin",e[e.gameSystem=9]="gameSystem",e[e.gameMessage=10]="gameMessage",e[e.gameRelogin=11]="gameRelogin",e}({}),o=function(e){return e.BET_NOW="BET_NOW",e.BET_NOW_RED="BET_NOW_RED",e.BET_LOCKED="BET_LOCKED",e.WAIT_DRAW="WAIT_DRAW",e.DRAW="DRAW",e}({}),c=function(e){return e.Default="Default",e.Comm="Comm",e}({}),s=function(e){return e.Commission="Commission",e.Intro="Intro",e.BetHistory="BetHistory",e.DrawHistory="DrawHistory",e.RoadChart="RoadChart",e}({}),u=function(e){return e.FlyCenter="flyCenter",e.FlyWinTarget="flyWinTarget",e.FlyOrigin="flyOrigin",e.default="",e}({})},86729:function(e,n,t){"use strict";t.d(n,{$t:function(){return k},B_:function(){return Y},G3:function(){return g},Gn:function(){return z},HB:function(){return D},J6:function(){return U},LP:function(){return v},RH:function(){return B},SG:function(){return T},TL:function(){return X},Vd:function(){return F},Vm:function(){return P},Wf:function(){return h},Xm:function(){return S},Z_:function(){return p},b2:function(){return H},bt:function(){return R},dL:function(){return L},eI:function(){return y},eR:function(){return V},gw:function(){return W},he:function(){return _},i0:function(){return w},jd:function(){return G},mT:function(){return q},mk:function(){return M},sE:function(){return O},sY:function(){return x},sZ:function(){return j},tG:function(){return Z},v:function(){return A},vM:function(){return N},x2:function(){return E},yH:function(){return I},yv:function(){return b},zt:function(){return C}});var a=t(74165),i=t(15861),r=t(24511),o=t(98374),c=t.n(o),s=t(12061),u=t(83205),l=t(37290),d=t(52923),m=t(23885),f=t(7905),p=function(){return window.localStorage.getItem("merchant")||window.localStorage.getItem("merchantCode")},g=function(){var e=window.localStorage.getItem("lang")||window.localStorage.getItem("language");return null===e?"EN":e},h=function(){var e=window.sessionStorage.getItem("MC_SESSION_INFO"),n=window.localStorage.getItem("iu")||window.sessionStorage.getItem("customerId");return e?JSON.parse(e).id:n?Number(n):null},v=function(){var e=window.sessionStorage.getItem("MC_SESSION_INFO"),n=window.sessionStorage.getItem("token")||window.sessionStorage.getItem("TOKEN")||window.localStorage.getItem("token")||window.localStorage.getItem("TOKEN");return e?JSON.parse(e).token:n||null};function b(){var e=g().toLowerCase();switch(e){case"cn":case"zh":return"zh";default:return["en","id","km","ko","pt","th","vi","hi","ty","tw"].includes(e)?e:"en"}}function x(){var e=g();switch(e?e.toLocaleUpperCase():""){case"CN":return"zh";case"EN":default:return"en";case"TH":return"th";case"VI":return"vi";case"TY":return"ty"}}var y=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=p(),a=e||"default";return t&&n.includes(t)?t:a},_=function(e){var n=(0,r.$)().t;return function(t){return n(e+t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},w=function(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return String(m.ZP.t(e+n,t))}},T=function(e){window.localStorage.setItem("game_voice_mute",String(e))},k=function(){return null===window.localStorage.getItem("game_voice_mute")||"true"===window.localStorage.getItem("game_voice_mute")},I=function(){k()?d.eq.muteAll():d.eq.unmuteAll()},C=function(){return"SEA"},E=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n,i,r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(78524);case 2:if(n=e.sent,i=n.GCSAPI,r=window.localStorage.getItem("prize_mode"),o=window.sessionStorage.getItem("miniGamePrizeMode"),!r){e.next=10;break}return e.abrupt("return",r);case 10:if(!o){e.next=12;break}return e.abrupt("return",o);case 12:return e.abrupt("return",f.Z.dispatch(i.endpoints.getGCSGameVendor.initiate()).then((function(e){var n=e.data,t=n.success,a=n.value,i="";if(t){var r=a.data.lanes,o=r.find((function(e){return"LOTT"===e.title})),c=r.find((function(e){return"ELOTT"===e.title})),s=!!c,u=!!o&&o.cards.some((function(e){return"TCG_LOTTO_VN"===e.vassalage})),l=s&&c.cards.some((function(e){return"TCG_LOTTO_VN"===e.vassalage}));u?i="Lott":l&&(i="Elott"),window.sessionStorage.setItem("miniGamePrizeMode",i)}return i})));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},P=function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},S=function(e,n,t){return window.lottTranslator&&window.lottTranslator.translatePlayName?window.lottTranslator.translatePlayName(e,n,t):"--"},N=function(e,n){return window.lottTranslator&&window.lottTranslator.translateBallContentText?window.lottTranslator.translateBallContentText(e,n):"--"},B=function(){var e="".concat(window.location.origin,"/lotto/lott-common/lott-js.js"),n=document.createElement("script");n.src="".concat(e,"?t=").concat((new Date).getTime()),document.head.appendChild(n)},A=function(e,n){var t=Math.round((new Date(n).valueOf()-(new Date).valueOf())/1e3)-e;return t>=0?t:0},R=function(e){for(var n=e,t=0,a=0;n&&(t+=n.offsetLeft-n.scrollLeft+n.clientLeft,a+=n.offsetTop-n.scrollTop+n.clientTop,!((n=n?n.offsetParent:null)&&n.classList&&n.classList.contains("".concat(l.Z.classNamePrefix,"gamePanel-warp")))););return{x:t,y:a}},O=function(e,n){return 0===n&&0!==e?"⥠".concat(e):0===e&&0!==n?"⤠".concat(n):"".concat(e," - ").concat(n)},M=function(e,n){var t=(e?localStorage:sessionStorage).getItem("".concat(l.Z.classNamePrefix).concat(n));try{return t?JSON.parse(t):{}}catch(e){return{}}},Z=function(e,n,t){(e?localStorage:sessionStorage).setItem("".concat(l.Z.classNamePrefix).concat(n),t?JSON.stringify(t):JSON.stringify({}))},D=function(e,n){(e?localStorage:sessionStorage).removeItem("".concat(l.Z.classNamePrefix).concat(n))},L=function(e,n){if(n>=e.length)return e;for(var t=e.slice(),a=t.length-1;a>0;a--){var i=Math.floor(Math.random()*(a+1)),r=[t[i],t[a]];t[a]=r[0],t[i]=r[1]}return t.slice(0,n)},G=function(e){switch(e){case u.x3.BET_NOW:case u.x3.BET_NOW_RED:case u.x3.BET_LOCKED:case u.x3.WAIT_DRAW:return"bot-chip-fadein"}},W=function(e){return new Promise((function(n){return setTimeout(n,e)}))},U=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new s.Z(e).toDP(n,s.Z.ROUND_FLOOR).toNumber()},q=function(e){var n=U(e,2);return(new Intl.NumberFormat).format(n)}
1,z=function(){return"direct"===window.miniGameRenderType&&!c()()},F=function(){var e,n="direct"===window.miniGameRenderType;return!(null!==(e=window)&&void 0!==e&&e.openChat&&n&&c()())},V=function(e){var n=e.split(",");return n&&n.length>0?n[0]:null},H=function(e){return(Date.now()-e)/36e5>=24},Y=function(e){return Object.values(u.gV).includes(e)?[u.gV.colorGame,u.gV.mines,u.gV.chickenRoad,u.gV.keno].includes(e):["MINES","CLR","CRG","MINIKENO"].includes(e)},X={Lott:1,Elott:3,SEA:5}},9666:function(e,n,t){var a={"./gi8viet/close.png":14033};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=9666},35742:function(e,n,t){var a={"./default/baccarat.png":56957,"./single/baccarat.png":12320};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=35742},34848:function(e,n,t){var a={"./default/baucua.png":36385,"./single/baucua.png":73647};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=34848},19852:function(e,n,t){var a={"./default/chickenRoad.png":32943};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=19852},53829:function(e,n,t){var a={"./default/colorgame.png":38633,"./single/colorgame.png":82811};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=53829},19374:function(e,n,t){var a={"./default/mines.png":92202,"./single/mines.png":4487};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=19374},10118:function(e,n,t){var a={"./default/minikeno.png":26738,"./single/minikeno.png":62416};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=10118},12247:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=12247,e.exports=n},49515:function(e,n,t){var a={"./default/taixiu.png":96745,"./single/taixiu.png":72565};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=49515},15971:function(e,n,t){var a={"./default/xocdia.png":54132,"./single/xocdia.png":12258};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=15971},9782:function(e,n,t){var a={"./chicken-dice.png":91891,"./crab-dice.png":95130,"./deer-dice.png":59804,"./fish-dice.png":79416,"./gourd-dice.png":10826,"./shrimp-dice.png":72893};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=9782},51326:function(e,n,t){var a={"./chicken-icon.png":38011,"./crab-icon.png":35910,"./deer-icon.png":98688,"./fish-icon.png":96117,"./gourd-icon.png":66293,"./shrimp-icon.png":33326};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=51326},68050:function(e,n,t){var a={"./chip-0-selected.png":36348,"./chip-1-selected.png":81624,"./chip-100-selected.png":90404,"./chip-2-selected.png":67215,"./chip-2500-selected.png":68211,"./chip-3-selected.png":6903,"./chip-4-selected.png":70125,"./chip-500-selected.png":73925,"./chip-5000-selected.png":66138};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=68050},88431:function(e,n,t){var a={"./chip-0-small.png":26218,"./chip-1-small.png":11765,"./chip-2-small.png":56286,"./chip-3-small.png":88580,"./chip-4-small.png":12616};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=88431},49249:function(e,n,t){var a={"./chip-0-selected.png":36348,"./chip-0-small.png":26218,"./chip-0.png":70484,"./chip-1-selected.png":81624,"./chip-1-small.png":11765,"./chip-1.png":74611,"./chip-100-selected.png":90404,"./chip-100.png":23870,"./chip-2-selected.png":67215,"./chip-2-small.png":56286,"./chip-2.png":41523,"./chip-2500-selected.png":68211,"./chip-2500.png":24280,"./chip-3-selected.png":6903,"./chip-3-small.png":88580,"./chip-3.png":30688,"./chip-4-selected.png":70125,"./chip-4-small.png":12616,"./chip-4.png":27496,"./chip-500-selected.png":73925,"./chip-500.png":22595,"./chip-5000-selected.png":66138,"./chip-5000.png":67062};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=49249},90665:function(e,n,t){var a={"./img_block_blue.png":42638,"./img_block_green.png":75277,"./img_block_pink.png":10352,"./img_block_red.png":15359,"./img_block_white.png":60582,"./img_block_yellow.png":73710};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=90665},51384:function(e,n,t){var a={"./ae6666/baucua.png":41277,"./default/baucua.png":21639,"./gi8viet/baucua.png":64560};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=51384},5702:function(e,n,t){var a={"./ae6666/minigame.png":93049,"./bongvip/minigame.png":38755,"./default/minigame.png":13804,"./gi8viet/minigame.png":4077,"./kgvnf2/minigame.png":61508,"./mu99f2/minigame.png":70804};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=5702},58527:function(e,n,t){var a={"./default/rps.png":86019,"./gi8viet/rps.png":6305};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=58527},16935:function(e,n,t){var a={"./ae6666/taixiu.png":38319,"./default/taixiu.png":14199,"./gi8viet/taixiu.png":95982};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=16935},65431:function(e,n,t){var a={"./ae6666/xocdia.png":94972,"./default/xocdia.png":94394,"./gi8viet/xocdia.png":41129};function i(e){var n=r(e);return t(n)}function r(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=65431},56957:function(e,n,t){"use strict";e.exports=t.p+"static/media/baccarat.eba11cdb06b376c3440d.png"},36385:function(e,n,t){"use strict";e.exports=t.p+"static/media/baucua.0df7359ea8831eef95c5.png"},32943:function(e,n,t){"use strict";e.exports=t.p+"static/media/chickenRoad.a6777fbba917a118d656.png"},38633:function(e,n,t){"use strict";e.exports=t.p+"static/media/colorgame.85d56de805fe7f1f31ea.png"},92202:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines.e1a4b9c9b231a57a58fd.png"},26738:function(e,n,t){"use strict";e.exports=t.p+"static/media/minikeno.ef6fcfc776ee6460bf42.png"},96745:function(e,n,t){"use strict";e.exports=t.p+"static/media/taixiu.ffa0f70fc63db1493852.png"},54132:function(e,n,t){"use strict";e.exports=t.p+"static/media/xocdia.7a8ccf90df5fd984c4ad.png"},40193:function(e,n,t){"use strict";e.exports=t.p+"static/media/arrow_normal.f2bbc7bccfa5bc0c150e.png"},13413:function(e,n,t){"use strict";e.exports=t.p+"static/media/bg_normal.1cfb6929037325572f40.png"},71527:function(e,n,t){"use strict";e.exports=t.p+"static/media/bg_web_normal.d629f8d0f5c321f5209e.png"},57046:function(e,n,t){"use strict";e.exports=t.p+"static/media/title_normal.305354035a2f11eebf14.png"},83430:function(e,n,t){"use strict";e.exports=t.p+"static/media/title_web_normal.a85f8784ad85a6d72cd5.png"},12320:function(e,n,t){"use strict";e.exports=t.p+"static/media/baccarat.eba11cdb06b376c3440d.png"},73647:function(e,n,t){"use strict";e.exports=t.p+"static/media/baucua.0df7359ea8831eef95c5.png"},82811:function(e,n,t){"use strict";e.exports=t.p+"static/media/colorgame.9fbfc297632e44dade22.png"},4487:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines.e1a4b9c9b231a57a58fd.png"},62416:function(e,n,t){"use strict";e.exports=t.p+"static/media/minikeno.ef6fcfc776ee6460bf42.png"},72565:function(e,n,t){"use strict";e.exports=t.p+"static/media/taixiu.ffa0f70fc63db1493852.png"},12258:function(e,n,t){"use strict";e.exports=t.p+"static/media/xocdia.7a8ccf90df5fd984c4ad.png"},14033:function(e,n,t){"use strict";e.exports=t.p+"static/media/close.38aeb55c559a01494d24.png"},21816:function(e,n,t){"use strict";e.exports=t.p+"static/media/background.4a752e7a21a44daba0cf.png"},43972:function(e,n,t){"use strict";e.exports=t.p+"static/media/arrow-left.fb1448012819b925301c.png"},2605:function(e,n,t){"use strict";e.exports=t.p+"static/media/arrow-right.d52b497d121fc5c82f0d.png"},75285:function(e,n,t){"use strict";e.exports=t.p+"static/media/back.8b9bcb51b1966a7ed893.png"},60250:function(e,n,t){"use strict";e.exports=t.p+"static/media/checkBox.5a16a8208a11d48ffe8f.png"},19181:function(e,n,t){"use strict";e.exports=t.p+"static/media/header.9fb88ff5615b5642af1f.png"},90673:function(e,n,t){"use strict";e.exports=t.p+"static/media/tick.2804ec982d471cc177af.png"},91014:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-button.131b155b61cedb5fcc8f.png"},2841:function(e,n,t){"use strict";e.exports=t.p+"static/media/disable-hand.586c1560dd067f3ee043.png"},66371:function(e,n,t){"use strict";e.exports=t.p+"static/media/disable-voice.35082f508eca84d61bf0.png"},11733:function(e,n,t){"use strict";e.exports=t.p+"static/media/drawing-ball.12e7c23366bf32008e3c.png"},83954:function(e,n,t){"use strict";e.exports=t.p+"static/media/enable-hand.f119e549ab09473de685.png"},40678:function(e,n,t){"use strict";e.exports=t.p+"static/media/help.f6e85a1e83388fd2b196.png"},82501:function(e,n,t){"use strict";e.exports=t.p+"static/media/history.300ed514ca7c2082ed44.png"},95627:function(e,n,t){"use strict";e.exports=t.p+"static/media/member.7552c4bb8530a15bc764.png"},29634:function(e,n,t){"use strict";e.exports=t.p+"static/media/number-black.205675868d2827c7849e.png"},34904:function(e,n,t){"use strict";e.exports=t.p+"static/media/number-white.80617cba59a6101d1951.png"},59194:function(e,n,t){"use strict";e.exports=t.p+"static/media/statistics.81e05cdbae4662a8883f.png"},62840:function(e,n,t){"use strict";e.exports=t.p+"static/media/voice.acdfae8edad5dda64bc6.png"},84486:function(e,n,t){"use strict";e.exports=t.p+"static/media/light.31dc08316393db6f9670.png"},87927:function(e,n,t){"use strict";e.exports=t.p+"static/media/arrow-left-disabled.556fba0e67379e681898.png"},80113:function(e,n,t){"use strict";e.exports=t.p+"static/media/arrow-left-normal.93a1f450e0717fb8bfef.png"},60214:function(e,n,t){"use strict";
1e.exports=t.p+"static/media/bg.cb231396dc999e1f6d67.png"},94757:function(e,n,t){"use strict";e.exports=t.p+"static/media/close-icon.b613e9ee3adad4b9e842.png"},9235:function(e,n,t){"use strict";e.exports=t.p+"static/media/coin-icon.634cc504e5f617f1c81a.png"},63314:function(e,n,t){"use strict";e.exports=t.p+"static/media/countdown-bg-1.b9383ca21d442dda397c.png"},5579:function(e,n,t){"use strict";e.exports=t.p+"static/media/countdown-bg-border.6962c9f81e975229596c.png"},79135:function(e,n,t){"use strict";e.exports=t.p+"static/media/countdown-bg.30fa85015cda8f36ab43.png"},69061:function(e,n,t){"use strict";e.exports=t.p+"static/media/edit-icon.ae0b695973b7caa56be2.png"},13283:function(e,n,t){"use strict";e.exports=t.p+"static/media/footer-bg.7f236009d1aaca667c15.png"},25576:function(e,n,t){"use strict";e.exports=t.p+"static/media/history-icon.3cd2f5661e5e5d09e557.png"},89894:function(e,n,t){"use strict";e.exports=t.p+"static/media/icon-bg.5f8af5f86c011b47347c.png"},12551:function(e,n,t){"use strict";e.exports=t.p+"static/media/info-icon.f2285f56bb275c450626.png"},42330:function(e,n,t){"use strict";e.exports=t.p+"static/media/star-icon.733906d641d11f53b246.png"},13102:function(e,n,t){"use strict";e.exports=t.p+"static/media/switch-icon.57bc9c605cbc1e6fd925.png"},51341:function(e,n,t){"use strict";e.exports=t.p+"static/media/trend-icon.59920f3517e20d8ec969.png"},90801:function(e,n,t){"use strict";e.exports=t.p+"static/media/player-icon.6cb6ec97295dc5ae9d6c.png"},76343:function(e,n,t){"use strict";e.exports=t.p+"static/media/text-gray-bg1.8ea84cd0bf15a8a5965b.png"},16086:function(e,n,t){"use strict";e.exports=t.p+"static/media/text-gray-bg2.9423687eea986c72937b.png"},57738:function(e,n,t){"use strict";e.exports=t.p+"static/media/text-green-bg.11970cda52ea63fc3599.png"},57271:function(e,n,t){"use strict";e.exports=t.p+"static/media/Bau.d0a083b63aa81a5520d4.png"},35354:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken-bg.ed6ecc31ea0e6bcf546f.png"},90965:function(e,n,t){"use strict";e.exports=t.p+"static/media/crab-bg.0f272a05db8104cef6b2.png"},2660:function(e,n,t){"use strict";e.exports=t.p+"static/media/deer-bg.163355cf46cbd8697688.png"},25359:function(e,n,t){"use strict";e.exports=t.p+"static/media/fish-bg.8c4c56e7109e2423211f.png"},19813:function(e,n,t){"use strict";e.exports=t.p+"static/media/gourd-bg.6adbb1d772d5a0d67325.png"},38327:function(e,n,t){"use strict";e.exports=t.p+"static/media/shrimp-bg.e5ec4d3f59dad633bc25.png"},71446:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-board-bg.e1ff1e499799e1de93f8.png"},77625:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-lock.8db86dbbfd344455489d.png"},79493:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-now-green.b68c4a6b60ebb559f051.png"},4149:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-now-red.5ac7f61da239705e5580.png"},37357:function(e,n,t){"use strict";e.exports=t.p+"static/media/bowl.fcacc56a2685c37b552b.png"},576:function(e,n,t){"use strict";e.exports=t.p+"static/media/next-round.e0ac6e7678854a67ea70.png"},15829:function(e,n,t){"use strict";e.exports=t.p+"static/media/plate.da8e2c9a66a5fda28d3f.png"},38339:function(e,n,t){"use strict";e.exports=t.p+"static/media/chips-block.97a7d8616cb2359eac0c.png"},45717:function(e,n,t){"use strict";e.exports=t.p+"static/media/cua.d2e5bf3cc95280191f54.png"},91891:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken-dice.4f38081c1f5321a411d0.png"},38011:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken-icon.14b36e211cf79eeeecfb.png"},95130:function(e,n,t){"use strict";e.exports=t.p+"static/media/crab-dice.51a45a4afe312cf5b41f.png"},35910:function(e,n,t){"use strict";e.exports=t.p+"static/media/crab-icon.20ce5602c5f4b05865c9.png"},59804:function(e,n,t){"use strict";e.exports=t.p+"static/media/deer-dice.53366d2813ae16209719.png"},98688:function(e,n,t){"use strict";e.exports=t.p+"static/media/deer-icon.00b57faa4b3f72a7ce7b.png"},79416:function(e,n,t){"use strict";e.exports=t.p+"static/media/fish-dice.4d08c93168e2a2f25c21.png"},96117:function(e,n,t){"use strict";e.exports=t.p+"static/media/fish-icon.d537de31c20b24d6dba9.png"},10826:function(e,n,t){"use strict";e.exports=t.p+"static/media/gourd-dice.59ecb391c2fcf351d1b5.png"},66293:function(e,n,t){"use strict";
1e.exports=t.p+"static/media/gourd-icon.39c12d2a77b12efb0315.png"},72893:function(e,n,t){"use strict";e.exports=t.p+"static/media/shrimp-dice.3cd6e2fe6bcb3961ab34.png"},33326:function(e,n,t){"use strict";e.exports=t.p+"static/media/shrimp-icon.7bb5af3cb7ec68c6db17.png"},12830:function(e,n,t){"use strict";e.exports=t.p+"static/media/game-draw-history-bg.db7bdd95e8d01d38d9c1.png"},68282:function(e,n,t){"use strict";e.exports=t.p+"static/media/game-draw-history-bg1.07a05934641e275cf6f1.png"},68260:function(e,n,t){"use strict";e.exports=t.p+"static/media/game-intro-bg.cb65b7a2622d18af2ed6.jpg"},71444:function(e,n,t){"use strict";e.exports=t.p+"static/media/agree-disabled.b1dca35a80444a5b6ca4.png"},76125:function(e,n,t){"use strict";e.exports=t.p+"static/media/allin-disabled.cd82246dd9852054adba.png"},90925:function(e,n,t){"use strict";e.exports=t.p+"static/media/cancel-disabled.81e2fba48e6730803271.png"},39357:function(e,n,t){"use strict";e.exports=t.p+"static/media/green-bg.a7f0cfa44fd03f4179c0.png"},75293:function(e,n,t){"use strict";e.exports=t.p+"static/media/orange-bg.cc656cc1f7794f2c059b.png"},73002:function(e,n,t){"use strict";e.exports=t.p+"static/media/purple-bg.1d242862d9f92b70cdf8.png"},41867:function(e,n,t){"use strict";e.exports=t.p+"static/media/repeat-disabled.5546197639bb548dda95.png"},21893:function(e,n,t){"use strict";e.exports=t.p+"static/media/yellow-bg.9a61b3d8427f5a4928d2.png"},44686:function(e,n,t){"use strict";e.exports=t.p+"static/media/background.ab6173447c9aa7407e6d.png"},68387:function(e,n,t){"use strict";e.exports=t.p+"static/media/green-btn-bg.0840e603f7ab95b54459.png"},84057:function(e,n,t){"use strict";e.exports=t.p+"static/media/red-btn-bg.ba276dfcecc7516d4128.png"},15663:function(e,n,t){"use strict";e.exports=t.p+"static/media/white-btn-bg.84332ea817ccde141a38.png"},29200:function(e,n,t){"use strict";e.exports=t.p+"static/media/auto_play_choosen_background.0b71de32346c6b0de4c4.png"},89505:function(e,n,t){"use strict";e.exports=t.p+"static/media/auto_play_control_background.78dd244d39ea10dab661.png"},19356:function(e,n,t){"use strict";e.exports=t.p+"static/media/auto_play_control_long_background.2f18a9c586a9c1214ce6.png"},66871:function(e,n,t){"use strict";e.exports=t.p+"static/media/border.6b2dd9a54787351a2a06.png"},41001:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_green_background.a8816ca1ab8950c2e0b6.png"},99284:function(e,n,t){"use strict";e.exports=t.p+"static/media/button_minus.1106730a034579ca9619.png"},39204:function(e,n,t){"use strict";e.exports=t.p+"static/media/button_plus.379aae4cdb2541ab0f24.png"},48461:function(e,n,t){"use strict";e.exports=t.p+"static/media/car_blue.10aa3e7b0a251a432ef2.png"},50954:function(e,n,t){"use strict";e.exports=t.p+"static/media/car_green.5060255717acfb4dced3.png"},71559:function(e,n,t){"use strict";e.exports=t.p+"static/media/car_pink.2482423f2fee487d7323.png"},14534:function(e,n,t){"use strict";e.exports=t.p+"static/media/car_yellow.1ffdab536f7c460b3b70.png"},44429:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken.1b1b336e578ca2dd9211.png"},36578:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken_icon.28825110b983848afd42.png"},32784:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken_scared.bd8d3c8204c6b2108feb.png"},74560:function(e,n,t){"use strict";e.exports=t.p+"static/media/chicken_shadow.73ad6d70643b7b7b32e4.png"},43420:function(e,n,t){"use strict";e.exports=t.p+"static/media/drain_cover_default.477cd59be4c3ec53b598.png"},57406:function(e,n,t){"use strict";e.exports=t.p+"static/media/drain_cover_fail.ba801c6920fb7a1b7802.png"},72996:function(e,n,t){"use strict";e.exports=t.p+"static/media/drain_cover_next.8847ca9df23a28bef9f9.png"},58397:function(e,n,t){"use strict";e.exports=t.p+"static/media/drain_cover_success.c809f437e77aaa011b51.png"},43580:function(e,n,t){"use strict";e.exports=t.p+"static/media/drain_cover_success_now.ecb0216c16e16026f668.png"},82363:function(e,n,t){"use strict";e.exports=t.p+"static/media/feather.0328417b66a3f0892308.png"},24619:function(e,n,t){"use strict";e.exports=t.p+"static/media/finish_icon.7561d7ab14526ffeaaef.png"},4549:function(e,n,t){"use strict";e.exports=t.p+"static/media/location_icon.978a4e4f28557537624a.png"},86726:function(e,n,t){"use strict";e.exports=t.p+"static/media/progress_bar.20883e56c34cd3651186.png"},61177:function(e,n,t){"use strict";e.exports=t.p+"static/media/road_center_background.df944e05feee0ae9dd1f.png"},13053:function(e,n,t){"use strict";e.exports=t.p+"static/media/road_left_background.8070cbc632ebceec7772.png"},45045:function(e,n,t){"use strict";e.exports=t.p+"static/media/road_line_background.a37419b0d2c0dfb7ed2e.png"},773:function(e,n,t){"use strict";e.exports=t.p+"static/media/road_right_background.45ed1c4e67fb3f6cb91b.png"},54573:function(e,n,t){"use strict";e.exports=t.p+"static/media/roadblocks.2f55d734ab3aeab3fd53.png"},84010:function(e,n,t){"use strict";e.exports=t.p+"static/media/selection_frame.6e73f2fa55add37ab642.png"},58942:function(e,n,t){"use strict";e.exports=t.p+"static/media/stage_default.ba868a172b0dc142134d.png"},76320:function(e,n,t){"use strict";e.exports=t.p+"static/media/stage_loss.3104708eb45c8e5698a2.png"},26993:function(e,n,t){"use strict";e.exports=t.p+"static/media/stage_next.62f90ffb7a805f2d642c.png"},11802:function(e,n,t){"use strict";e.exports=t.p+"static/media/stage_pass.c5212ac425a2b291ed80.png"},87886:function(e,n,t){"use strict";e.exports=t.p+"static/media/time_circle.ee3a747eb3e6ef4463d2.png"},42998:function(e,n,t){"use strict";e.exports=t.p+"static/media/trophy.65f268d6d5af7a9e1fb7.png"},51886:function(e,n,t){"use strict";e.exports=t.p+"static/media/winPop_normal.1e4d7c85199985778f1c.png"},79366:function(e,n,t){"use strict";e.exports=t.p+"static/media/window_broken_background.d2fa8fe1d728d9ac00df.png"},36348:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-0-selected.0c9206c5461d5f39d4b6.png"},26218:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-0-small.04a903a026e35fa8898f.png"},70484:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-0.1990867041cf8dff583a.png"},81624:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-1-selected.9281794483decf8d9118.png"},11765:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-1-small.d20ebcf85be8b080ed7d.png"},74611:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-1.1dab270d4e958f9b668b.png"},90404:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-100-selected.57467ceb4c8cf94efc0e.png"},23870:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-100.6bb1732c61955a00bfa7.png"},67215:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-2-selected.0ef17b40bb8b0e625c4a.png"},56286:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-2-small.4d1ac72559fdc4ae865c.png"},41523:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-2.399e3a7c76956e24d9a6.png"},68211:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-2500-selected.bbd3e1bad29a91dcf144.png"},24280:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-2500.526f0c8b0ab12cae9770.png"},6903:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-3-selected.f122eb9848ecd95077fa.png"},88580:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-3-small.cf0d963243ddd416a509.png"},30688:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-3.6f99f68093d6162e42ca.png"},70125:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-4-selected.6387bc30d3a75b5797c5.png"},12616:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-4-small.68213309139f26082ddc.png"},27496:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-4.3089e7f6c78c20d6a1f6.png"},73925:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-500-selected.9e4f592e60cbcaed4950.png"},22595:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-500.3105f424e4181c609bb4.png"},66138:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-5000-selected.379686ca00326d8def8a.png"},67062:function(e,n,t){"use strict";e.exports=t.p+"static/media/chip-5000.77b1e7d0debaf23289cd.png"},91547:function(e,n,t){"use strict";e.exports=t.p+"static/media/darkpurple-chip.0af34c7cce25b63bbec2.png"},20287:function(e,n,t){"use strict";e.exports=t.p+"static/media/gold-chip.31ee6ed030ec53ad00d4.png"},18633:function(e,n,t){"use strict";e.exports=t.p+"static/media/lightblue-chip.cfa640c2840d16d72d8d.png"},4533:function(e,n,t){"use strict";e.exports=t.p+"static/media/purple-chip.25a7b70f3e0f5b53d134.png"},1174:function(e,n,t){"use strict";e.exports=t.p+"static/media/red-chip.0a278e07f332fd2771d3.png"},36268:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_blue.c035c4226e383f90674a.png"},76297:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_frame.cf8cf8c6fb65291803ea.png"},2537:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_green.ad6c1af603ca75044911.png"},95931:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_light.a0a0992fc3d5fa12a273.png"},67889:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_mask.5c0f016f7d2ed47a123d.png"},88393:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_pink.9fdba1e2d73fe340cfa0.png"},75374:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_red.b378d51fde6776e4a259.png"},71301:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_textBar.0cd3e89c7181a36020a6.png"},21545:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_white.9a99836ea4d4b64f5415.png"}
1,57574:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_choose_yellow.adaf07f257719c83d919.png"},42638:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_block_blue.9e6eb61b72bd32d0de85.png"},75277:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_block_green.f52b061053d3aca29284.png"},10352:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_block_pink.07e91e0a33f71121aec5.png"},15359:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_block_red.44f94bdfabcda3d30350.png"},60582:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_block_white.3eb7e1bc23e242efb219.png"},73710:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_block_yellow.103c933287218f5a5206.png"},71065:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_blue.924bf7ce683c7bbabde9.png"},43544:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_frame.33741016a0925e4f9f2a.png"},66886:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_green.3c81c4cfead089961477.png"},78831:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_pink.3034ed6252d65980cb7d.png"},15537:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_red.7aaf80e782d3767ace3a.png"},15251:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_white.4c7fe07bfff390fab898.png"},65848:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_result_yellow.5ad2473c6c730c33b216.png"},47889:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_box.677a6583dea9705da791.png"},50300:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_boxbar.2792e79aaca368fddd74.png"},52564:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_coalBall.2732b6ee11fe78a9c1da.png"},70272:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_coalBall2.43bc25b3d29faa29b390.png"},21427:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_odds1.f955c792ea9a1ef542bc.png"},12210:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_odds2.9ba830aa24d1815439b4.png"},62750:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_odds3.8c8cec4642815623c64c.png"},9068:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_black.c245b36ab261d18f9ffc.png"},62295:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_blue.81eaa8788c337904b42b.png"},87159:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_green.83fc55e9a83acc9a9190.png"},93795:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_new.961299fcefaedc0b3f96.png"},14174:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_pink.b3fea1b49876aa64dfe7.png"},20545:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_red.d357303d618adb739e23.png"},18465:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_white.d860df1fbc9471fbb357.png"},82168:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_combination_yellow.bd41bc94277f4ad5eba5.png"},67106:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_trend_main.fa5dc720e5df7f1ffc80.png"},2498:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_disable.f5586c8636771fdb6352.png"},80154:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_normal.26ad7edb27af4d411781.png"},70886:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_bet_disable.0c07d23bc9fb3fd84535.png"},2376:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_bet_normal.ebbf7589c97350703323.png"},3036:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_cancel_disable.f4e38b73fbe1db3ebe3a.png"},50799:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_cancel_normal.eeafb4d8e932a417770f.png"},23019:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_cashout_disable.cdc9eccb51198f808105.png"},24504:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_cashout_normal.238b4406b230339a466b.png"},11263:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_start_disable.ee1e4c8d5c7900d0f24b.png"},10952:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_start_normal.c383c59e7de529a7526b.png"},91153:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_stop_disable.7690c0842458a5bea517.png"},31656:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_stop_normal.49487fec856ef13052c6.png"},32534:function(e,n,t){"use strict";e.exports=t.p+"static/media/BombCountContent_disable.1a27fc88bb88455ed567.png"},37555:function(e,n,t){"use strict";e.exports=t.p+"static/media/BombCountContent_normal.771e8a1af0ff4ae1fe6b.png"},7318:function(e,n,t){"use strict";e.exports=t.p+"static/media/BombCount_disable.6f7838d021070f8bc519.png"},76060:function(e,n,t){"use strict";e.exports=t.p+"static/media/BombCount_normal.93eaff9cb67110915c06.png"},14838:function(e,n,t){"use strict";e.exports=t.p+"static/media/CountPanel_bg.a72bdd52fec3347b0b8a.png"},77934:function(e,n,t){"use strict";e.exports=t.p+"static/media/countBtn_normal.ddf6536654054f5200b8.png"},51635:function(e,n,t){"use strict";e.exports=t.p+"static/media/countBtn_selected.ef91eb238d6376150ac2.png"},41277:function(e,n,t){"use strict";e.exports=t.p+"static/media/baucua.9394e1c438cacc55c481.png"},93049:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame.7f05df8770afb1de64b5.png"},38319:function(e,n,t){"use strict";e.exports=t.p+"static/media/taixiu.a09de07650383c0140bf.png"},94972:function(e,n,t){"use strict";e.exports=t.p+"static/media/xocdia.f2e8964e965165bbfaef.png"},38755:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame.51e84ad43f7da02698d4.png"},21639:function(e,n,t){"use strict";e.exports=t.p+"static/media/baucua.806aef37aeec7e287909.png"},13804:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame.5618477835b3d158b6f9.png"},86019:function(e,n,t){"use strict";e.exports=t.p+"static/media/rps.fc325b34d17e4af4d108.png"},14199:function(e,n,t){"use strict";e.exports=t.p+"static/media/taixiu.7fc5444e2520b36e883b.png"}
1,94394:function(e,n,t){"use strict";e.exports=t.p+"static/media/xocdia.6574715a9b6d4b5846bc.png"},64560:function(e,n,t){"use strict";e.exports=t.p+"static/media/baucua.3ca33b61ac64dc2afd13.png"},4077:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame.defdc55211e5aefe935f.png"},6305:function(e,n,t){"use strict";e.exports=t.p+"static/media/rps.fc325b34d17e4af4d108.png"},95982:function(e,n,t){"use strict";e.exports=t.p+"static/media/taixiu.fbdeb58aedc61ec440b5.png"},41129:function(e,n,t){"use strict";e.exports=t.p+"static/media/xocdia.5e5fabd434aa84bafe09.png"},61508:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame.b2df0964a4cbc7aadb1a.png"},70804:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame.a64d5af53081b8a0ea7f.png"},97729:function(e,n,t){"use strict";e.exports=t.p+"static/media/coin-orange.f7fb9adeb86772b86581.png"},30208:function(e,n,t){"use strict";e.exports=t.p+"static/media/gold.2b1b1867a60ce7a2b851.png"},97225:function(e,n,t){"use strict";e.exports=t.p+"static/media/silver.bf271e076294324b08fb.png"},95324:function(e,n,t){"use strict";e.exports=t.p+"static/media/background.60186b1cd93e4a9443f9.png"},33943:function(e,n,t){"use strict";e.exports=t.p+"static/media/button.757cb9047297db5b4778.png"},61613:function(e,n,t){"use strict";e.exports=t.p+"static/media/number-default.62162d055b668167bdb9.png"},1e3:function(e,n,t){"use strict";e.exports=t.p+"static/media/number-matched-default.f5257c7ee8e57dafecd1.png"},28669:function(e,n,t){"use strict";e.exports=t.p+"static/media/number-matched-selected.6f8aec1f4b5d5cf91c9a.png"},89948:function(e,n,t){"use strict";e.exports=t.p+"static/media/number-selected.54a3282c5e3f85d00952.png"},1210:function(e,n,t){"use strict";e.exports=t.p+"static/media/star-achieved.6baaf379025532e0a8e6.png"},1594:function(e,n,t){"use strict";e.exports=t.p+"static/media/star-default.9b8d7a8e95eb6a99ad61.png"},73849:function(e,n,t){"use strict";e.exports=t.p+"static/media/close.18e7a5ce6a0d193ce470.png"},50894:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_BombBox_disable.4e7ccaa89f50eaf2ae77.png"},2302:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_BombBox_normal.42f76eac6750c24a812a.png"},26553:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_BoxArrow_disable.802af04d2ad156db1890.png"},43062:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_BoxArrow_normal.09be60484389b889e9e5.png"},18678:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_GemBox_disable.1c89de971f2e3610192d.png"},17812:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_GemBox_normal.a14633265b93d3ec8dc9.png"},12671:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_StoneBox_normal.1353f9169c41c673833b.png"},76823:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_StoneBox_selected.78fcadb3a38e8900c09f.png"},8056:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_StoneBroken1_normal.546f3facb269d97f4841.png"},17613:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_StoneBroken_normal.fc62e08bb4e6d4b89c0c.png"},15430:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_WinPop_normal.071a35963eb78761d89e.png"},62599:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_bg_normal.6e0d5ad5f5eda7d1bd2d.png"},43593:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_character_normal.41307a1bd313a1029eb7.png"},81883:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_title_normal.215d20cdb5cb52c1314b.png"},50407:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_oddsBar_bg.50845de627fc51609add.png"},3597:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_oddsBox_normal.753587ba683fff8a6fa4.png"},54588:function(e,n,t){"use strict";e.exports=t.p+"static/media/mines_oddsBox_selected.483a57d6d7b26bf25f51.png"},14863:function(e,n,t){"use strict";e.exports=t.p+"static/media/minigame-bg.6074c1bf6e2df0cefdcc.png"},34256:function(e,n,t){"use strict";e.exports=t.p+"static/media/clubs.1dadf9479b6e66928cbc.png"},33601:function(e,n,t){"use strict";e.exports=t.p+"static/media/diamonds.5ae4a9cb1159e1e7151d.png"},97903:function(e,n,t){"use strict";e.exports=t.p+"static/media/hearts.00703de863dc3529d5ec.png"},8007:function(e,n,t){"use strict";
1e.exports=t.p+"static/media/poker-back.607e809bc612daa1ca1f.png"},25628:function(e,n,t){"use strict";e.exports=t.p+"static/media/poker-front.59683ef9b28c2c82ea9a.png"},70168:function(e,n,t){"use strict";e.exports=t.p+"static/media/spades.f9d51b964693020f7e95.png"},30791:function(e,n,t){"use strict";e.exports=t.p+"static/media/ball-blue.2ebd7977b9e7ee9a76c5.png"},26750:function(e,n,t){"use strict";e.exports=t.p+"static/media/ball-green.72cbfafd124a6d267a7a.png"},81552:function(e,n,t){"use strict";e.exports=t.p+"static/media/ball-red.3d3da2033e35ca5ef33f.png"},51405:function(e,n,t){"use strict";e.exports=t.p+"static/media/battle-background.aea54a02574cae2d7fcc.png"},84666:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-board-background.f47b286fe15ac70052e3.png"},25671:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-board-blue.be6c7f1ef74b99622a26.png"},88777:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-board-green.a7fd211cb8f8bf3443e0.png"},87042:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-board-lose.f552e60da04533095f41.png"},69566:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-board-red.409065c54743c5ca27fc.png"},68945:function(e,n,t){"use strict";e.exports=t.p+"static/media/betting-board-win.729dbcb90b1606258ec7.png"},76586:function(e,n,t){"use strict";e.exports=t.p+"static/media/button-go.adce88b8697eb79b63ca.png"},20241:function(e,n,t){"use strict";e.exports=t.p+"static/media/calendar.816f779ce655528371c3.png"},64079:function(e,n,t){"use strict";e.exports=t.p+"static/media/input.86d05d65afeb8ada0d2a.png"},91774:function(e,n,t){"use strict";e.exports=t.p+"static/media/lose-mask-left.b672b7defbb4ef1d23de.png"},72907:function(e,n,t){"use strict";e.exports=t.p+"static/media/lose-mask-right.00c824cd29a19d9d644d.png"},78133:function(e,n,t){"use strict";e.exports=t.p+"static/media/paper-left.09504edd259b5667779d.png"},15600:function(e,n,t){"use strict";e.exports=t.p+"static/media/paper-right.b33353250dfa713bde89.png"},11950:function(e,n,t){"use strict";e.exports=t.p+"static/media/paper.5cf863ab302765efbd81.png"},4004:function(e,n,t){"use strict";e.exports=t.p+"static/media/result-background.ef8fe1d343bc09d90726.png"},26854:function(e,n,t){"use strict";e.exports=t.p+"static/media/result-blue.3cb6ce69156821a29490.png"},16779:function(e,n,t){"use strict";e.exports=t.p+"static/media/result-red.0602a93f6e86f677ff37.png"},42875:function(e,n,t){"use strict";e.exports=t.p+"static/media/result-tie.b1f9b45b635aeb982721.png"},62309:function(e,n,t){"use strict";e.exports=t.p+"static/media/result-vs.58796ff02f89f54d925e.png"},70395:function(e,n,t){"use strict";e.exports=t.p+"static/media/rock-left.93987ef977d440b6fdb1.png"},10572:function(e,n,t){"use strict";e.exports=t.p+"static/media/rock-right.815ca446754c3c5beeb4.png"},53768:function(e,n,t){"use strict";e.exports=t.p+"static/media/rock.b091a462132e63fa72f0.png"},16205:function(e,n,t){"use strict";e.exports=t.p+"static/media/scissors-left.10a0adcc600ec4537c56.png"},9445:function(e,n,t){"use strict";e.exports=t.p+"static/media/scissors-right.2c840f612a2edcea29c8.png"},89575:function(e,n,t){"use strict";e.exports=t.p+"static/media/scissors.a81b3dc08216f4d58fb1.png"},80771:function(e,n,t){"use strict";e.exports=t.p+"static/media/win-mask-left.c5f4adf326006f22d019.png"},78347:function(e,n,t){"use strict";e.exports=t.p+"static/media/win-mask-right.5fb7765e7d71accf47e1.png"},56184:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_disable.e66c30bcbbdc6f00dfa0.png"},59127:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_disable_v2.959cf73af845d24a6b2d.png"},27882:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_normal.f4e6bbabadbc46bf1cf7.png"},31441:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_stop.e071225319b3edf009cd.png"},4518:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_auto_stop_v2.e34be90b8dc5625aa922.png"},41574:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_bet_normal.5b8b9500e02f6329be25.png"},28158:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_bet_press.bfae1099902141e48d5f.png"},48474:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_closeAll_disable.1cceccba3824e01a07c8.png"},5209:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_closeAll_normal.d2d1e0713f0b3748d12e.png"},10116:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_double_disable.014db26c72e8ea4856fb.png"},41702:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_double_normal.ec06ba9068dab44f2343.png"},74255:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_edit_normal.2bf15e2b79ebb405215b.png"},11757:function(e,n,t){"use strict";
1e.exports=t.p+"static/media/btn_edit_normal_v2.d3d37133c4a3fa656ae8.png"},92766:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_edit_press.563ea48adad082006e89.png"},73999:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_help_normal.c32f0ee1aaf021f891dd.png"},62414:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_help_press.a21bf164611bfa21cfba.png"},5873:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_leave_normal.8ce21d346b8da2117265.png"},64822:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_leave_press.00fa3219e5c1c0adde11.png"},2294:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_music_normal.841cb157f8160a14d3fc.png"},38706:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_music_press.466f8dde71562bbf7739.png"},48463:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_repeat_disable.77967110e76fe9e725c2.png"},979:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_repeat_disable_v2.21de2a5eea1faeb86a90.png"},24257:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_repeat_normal.b5a3a23231ca90a6bc3b.png"},96801:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_repeat_normal_v2.75556b20640379930cd1.png"},59284:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_undo_disable.18df52672f0c65829ba8.png"},5251:function(e,n,t){"use strict";e.exports=t.p+"static/media/btn_undo_normal.222bfdae16b6ec11d432.png"},86102:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_blue.3591d64c423bf6c3766b.png"},75783:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_cyan.55734af0bff9681e0a36.png"},63953:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_green.8f8f63b981143343d040.png"},94825:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_mask.ac0f0b004564d38bc616.png"},48112:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_new.5f1d265372d1b87397de.png"},61923:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_purple.53e86b6e64b28cd8614b.png"},30567:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_casinoChips_red.fa694d78b9e9ebacfc58.png"},89757:function(e,n,t){"use strict";e.exports=t.p+"static/media/img_numberPeople.4d65cc11e3b8634aa2a8.png"},48654:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-board-bg.ef6c3a10916b72e42f61.png"},98597:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-locked.8db86dbbfd344455489d.png"},75934:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-now-green.b68c4a6b60ebb559f051.png"},64472:function(e,n,t){"use strict";e.exports=t.p+"static/media/bet-now-red.5ac7f61da239705e5580.png"},85767:function(e,n,t){"use strict";e.exports=t.p+"static/media/bowl.fcacc56a2685c37b552b.png"},89643:function(e,n,t){"use strict";e.exports=t.p+"static/media/chips-block.e616883a1349c4c069a6.png"},10809:function(e,n,t){"use strict";e.exports=t.p+"static/media/game-draw-history-bg.9ef93142bcce2fca5563.png"},86965:function(e,n,t){"use strict";e.exports=t.p+"static/media/game-intro-bg.6c008a26c4306cc687b1.png"},16323:function(e,n,t){"use strict";e.exports=t.p+"static/media/game-logo.fb9420ef1165cde8bb64.png"},56282:function(e,n,t){"use strict";e.exports=t.p+"static/media/next-round.e0ac6e7678854a67ea70.png"},89799:function(e,n,t){"use strict";e.exports=t.p+"static/media/plate.da8e2c9a66a5fda28d3f.png"},22507:function(e,n,t){"use strict";e.exports=t.p+"static/media/bgm_chickenroad.1278b15291736bbdf705.mp3"},92104:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_car_bump.8067728bf6e9c2bbb273.mp3"},592:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_chicken_bump.363aaeffc7f3d13e8017.mp3"},42509:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_chicken_happy.176916b93ff3d1d984b6.mp3"},20134:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_go.7f336403993e844103ca.mp3"},83950:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_horsedown.e10aea51c0d3afff57ba.mp3"},89426:function(e,n,t){"use strict";e.exports=t.p+"static/media/bgm_colorgame.462cbf3ee752ece0b342.mp3"},97751:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_dicemove.2ae32d8943f9766ee6f6.mp3"},73739:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_dicerolling.2bf1dcd8bf63ebbc27f9.mp3"},10465:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_snowresult.c08f4f6245015e770788.mp3"},12455:function(e,n,t){"use strict";e.exports=t.p+"static/media/bgm_keno.74dcbee9ba4473f0387f.mp3"},77475:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_pick.17015b3378dfc15e5058.mp3"},31597:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win1.7d768170560c670eb8a4.mp3"},68261:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win10.c73df522df32561db079.mp3"},5388:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win2.54a0ec9289bbc5230df2.mp3"},62669:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win3.ba36948bcc3fde265183.mp3"},91299:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win4.c3cec64d179f0ac079ea.mp3"},83068:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win5.d2db14f61e09a4175b4e.mp3"},69762:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win6.40c99d46e838f98ee19e.mp3"},12476:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win7.d2ac51429db3b2bf7e04.mp3"},55130:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win8.9497260fae91cc381a8f.mp3"},20975:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win9.6f340fb861e2db892ec2.mp3"},17371:function(e,n,t){"use strict";e.exports=t.p+"static/media/bgm_mines.e64bbb0a9e891fc1049c.mp3"},8337:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_bombstone.d5ddf21d5fde789fc811.mp3"},39175:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_crystalstone_01.50f1a01ddf7d1c3a4dfd.mp3"},38694:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_crystalstone_02.856248aff2ade4ad7439.mp3"},35508:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_crystalstone_03.b383d014329963d3fc58.mp3"},66656:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_crystalstone_04.eae2932b5b1c3a1a299b.mp3"},76078:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_crystalstone_05.258bd3a991771e3802da.mp3"},30455:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_stone.30ba008902a553732292.mp3"},53752:function(e,n,t){"use strict";e.exports=t.p+"static/media/bgm_RockPaperScissors.7396f30f80bc3e1c3005.mp3"},51516:function(e,n,t){"use strict";e.exports=t.p+"static/media/cn_atie.952f233148f005578746.mp3"},16198:function(e,n,t){"use strict";e.exports=t.p+"static/media/cn_bluewin.77a2980f932aee5ed502.mp3"},19328:function(e,n,t){"use strict";e.exports=t.p+"static/media/cn_game_start.ddb7da7c53be9ab508d6.mp3"},62471:function(e,n,t){"use strict";e.exports=t.p+"static/media/cn_redwin.f39488140504217512de.mp3"},31499:function(e,n,t){"use strict";e.exports=t.p+"static/media/en_atie.1e8c220f912c728966fe.mp3"},75817:function(e,n,t){"use strict";e.exports=t.p+"static/media/en_bluewin.d624d661646233a3cef4.mp3"},39053:function(e,n,t){"use strict";e.exports=t.p+"static/media/en_game_start.54c6ab8ccd24968b35d4.mp3"},1633:function(e,n,t){"use strict";e.exports=t.p+"static/media/en_redwin.873ec33af43afbd9f975.mp3"},58623:function(e,n,t){"use strict";e.exports=t.p+"static/media/BackGround.b4fe28f7ae49b5615443.mp3"},48170:function(e,n,t){"use strict";e.exports=t.p+"static/media/BetSuccess.3fd329c57ba0010b311d.mp3"},57049:function(e,n,t){"use strict";e.exports=t.p+"static/media/Button.9e0922542bf9fe4e9f08.mp3"},74676:function(e,n,t){"use strict";e.exports=t.p+"static/media/CountDown-0.1f68e5f0e7d0a6345d12.mp3"},90353:function(e,n,t){"use strict";e.exports=t.p+"static/media/CountDown-5.fc1e340d319f757d985c.mp3"},96011:function(e,n,t){"use strict";e.exports=t.p+"static/media/CountDown.91d25ff9e7aa72c4f6c8.mp3"},96113:function(e,n,t){"use strict";e.exports=t.p+"static/media/DrawDice.766702fa61079891c843.mp3"},66848:function(e,n,t){"use strict";e.exports=t.p+"static/media/DrawWin.02ea789401fc2388c7a8.mp3"},49634:function(e,n,t){"use strict";e.exports=t.p+"static/media/PlayerWin.6843ca67f306426b0375.mp3"},53426:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_button_01.97858504888eaa65424a.mp3"},57616:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_button_02.62636b46d0bffa8c5138.mp3"},68299:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_button_03.890a0392eb6eb8a472fb.mp3"},10903:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_chip_01.c045ecd6ee3117e6c324.mp3"},54091:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_chip_02.e0459954ad2f1333f5a8.mp3"},4769:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_chip_03.42dc4d5f38d1be7eecd1.mp3"},7223:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_dingding.41cec60a01f2dc9387cb.mp3"},5625:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_lock.1bba33890574231e96c9.mp3"},11503:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_playerwin.ff8a6f9e5ebb13007cf9.mp3"},5680:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_ring.441a6f948448aa40336d.mp3"},51459:function(e,n,t){"use strict";e.exports=t.p+"static/media/s_win.8066808e0ae9855b541f.mp3"},91104:function(e,n,t){"use strict";e.exports=t.p+"static/media/v_betlocked_cn.009be931531ba41e5f82.mp3"},77362:function(e,n,t){"use strict";e.exports=t.p+"static/media/v_betlocked_en.ab37431fc102e7d85a7a.mp3"},4990:function(e,n,t){"use strict";e.exports=t.p+"static/media/v_plsbetnow_cn.7d720f65b89b4d01c780.mp3"},28769:function(e,n,t){"use strict";e.exports=t.p+"static/media/v_plsbetnow_en.1a59a9518045feffa574.mp3"},24654:function(){}},function(e){e.O(0,[954],(function(){return 41023,e(e.s=41023)})),e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.