<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1147:function(t,e,r){"use strict";r(27),r(17),r(31),r(19);e.a=function(t){return{data:function(){return{unsubscribeGameAction:null,unsubscribeTimerGameAction:15}},methods:{gameSubscribeMethod:function(t){var e=this,r=this;this.unsubscribeGameAction=this.$store.subscribeAction((function(o,n){if("common/changeEnabledGames"===o.type){var c=e.$route.name,time=e.unsubscribeTimerGameAction;if(c.includes(t)||"cases"===t&amp;&amp;"games-caseCode-code"===c){if(!o.payload||!1!==o.payload[t])return;var h=setInterval((function(){e.$store.dispatch("alertMessage/showAlertMessage",{message:"Текущая игра отключена, переход на главную через ".concat(e.unsubscribeTimerGameAction," секунд"),alertMessageIcon:"danger",alertMessageClass:"danger",time:1e3}),e.unsubscribeTimerGameAction-=1,(e.unsubscribeTimerGameAction&lt;1||c!==r.$route.name)&amp;&amp;clearInterval(h)}),1e3);setTimeout((function(){e.$router.push("/")}),1e3*(time+1))}}}))}},mounted:function(){this.gameSubscribeMethod&amp;&amp;this.gameSubscribeMethod(t)},beforeDestroy:function(){this.unsubscribeGameAction&amp;&amp;this.unsubscribeGameAction()}}}},1162:function(t,e,r){var content=r(1200);content.__esModule&amp;&amp;(content=content.default),"string"==typeof content&amp;&amp;(content=[[t.i,content,""]]),content.locals&amp;&amp;(t.exports=content.locals);(0,r(13).default)("c2ce548e",content,!0,{sourceMap:!1})},1163:function(t,e,r){var content=r(1202);content.__esModule&amp;&amp;(content=content.default),"string"==typeof content&amp;&amp;(content=[[t.i,content,""]]),content.locals&amp;&amp;(t.exports=content.locals);(0,r(13).default)("59ef3c8a",content,!0,{sourceMap:!1})},1164:function(t,e,r){var content=r(1204);content.__esModule&amp;&amp;(content=content.default),"string"==typeof content&amp;&amp;(content=[[t.i,content,""]]),content.locals&amp;&amp;(t.exports=content.locals);(0,r(13).default)("44e532ed",content,!0,{sourceMap:!1})},1165:function(t,e,r){var content=r(1206);content.__esModule&amp;&amp;(content=content.default),"string"==typeof content&amp;&amp;(content=[[t.i,content,""]]),content.locals&amp;&amp;(t.exports=content.locals);(0,r(13).default)("1a3b8d44",content,!0,{sourceMap:!1})},1167:function(t,e,r){var content=r(1210);content.__esModule&amp;&amp;(content=content.default),"string"==typeof content&amp;&amp;(content=[[t.i,content,""]]),content.locals&amp;&amp;(t.exports=content.locals);(0,r(13).default)("6269e4de",content,!0,{sourceMap:!1})},1168:function(t,e,r){var content=r(1212);content.__esModule&amp;&amp;(content=content.default),"string"==typeof content&amp;&amp;(content=[[t.i,content,""]]),content.locals&amp;&amp;(t.exports=content.locals);(0,r(13).default)("c2e25c32",content,!0,{sourceMap:!1})},1199:function(t,e,r){"use strict";r(1162)},1200:function(t,e,r){var o=r(12)((function(i){return i[1]}));o.push([t.i,".crash-player[data-v-1750cc6c]{align-items:center;border-top:2px solid #2f2f4b;color:#fff;display:flex;font-size:15px;gap:4px;justify-content:flex-start;line-height:60px}.crash-player--active .playersTable__img img[data-v-1750cc6c]{border:2px solid #4be;padding:3px}.crash-player .playersTable__user[data-v-1750cc6c]{max-width:120px;min-width:120px}.crash-player .playersTable__ration[data-v-1750cc6c]{min-width:58px}",""]),o.locals={},t.exports=o},1201:function(t,e,r){"use strict";r(1163)},1202:function(t,e,r){var o=r(12)((function(i){return i[1]}));o.push([t.i,'.switch-wrap[data-v-f0796590]{margin-top:-16px;padding:0 2px 2px 0}.switch-wrap_disable[data-v-f0796590]{opacity:.3}.switch-wrap_disable label[data-v-f0796590]{cursor:not-allowed}input[type=checkbox][data-v-f0796590]{height:0;visibility:hidden;width:0}label[data-v-f0796590]{background:#d4d1e1;border-radius:10px;cursor:pointer;display:block;height:16px;position:relative;text-indent:-9999px;touch-action:none;width:40px}label[data-v-f0796590]:after{background:#fff;border-radius:90px;content:"";height:20px;left:-2px;position:absolute;top:-2px;transition:.3s;width:20px}input:checked+label[data-v-f0796590]{background:#29956c}input:checked+label[data-v-f0796590]:after{left:calc(100% + 2px);transform:translateX(-100%)}',""]),o.locals={},t.exports=o},1203:function(t,e,r){"use strict";r(1164)},1204:function(t,e,r){var o=r(12)((function(i){return i[1]}));o.push([t.i,".switch-block[data-v-6bd93d24]{position:absolute;right:20px;top:22px;z-index:6}.rate-block[data-v-6bd93d24]{background:repeating-linear-gradient(-45deg,#37374c,#37374c 3px,#333348 0,#333348 13px);border-radius:10px;margin-top:10px;padding:20px;position:relative}.rate-block__inputs[data-v-6bd93d24]{display:flex;flex-flow:row wrap;justify-content:space-between}.rate-block__inputs__item[data-v-6bd93d24]{position:relative;width:48%;z-index:5}.rate-block__inputs__item&gt;div[data-v-6bd93d24]{margin-top:10px;position:relative}.rate-block__inputs__item span[data-v-6bd93d24]:first-child{color:#55516c}.rate-block__inputs__item .minus[data-v-6bd93d24],.rate-block__inputs__item .plus[data-v-6bd93d24]{align-items:center;background:#d4d1e1;cursor:pointer;display:flex;height:100%;justify-content:center;position:absolute;top:0;transition:all .3s;width:48px;z-index:11}.rate-block__inputs__item .minus img[data-v-6bd93d24],.rate-block__inputs__item .plus img[data-v-6bd93d24]{width:11px}.rate-block__inputs__item input[data-v-6bd93d24]{background:#fff;border:none;border-radius:5px;height:38px;text-align:center;touch-action:none;width:100%;z-index:10}.rate-block__inputs__item .minus[data-v-6bd93d24]{border-bottom-left-radius:5px;border-top-left-radius:5px;left:0;touch-action:none}.rate-block__inputs__item .plus[data-v-6bd93d24]{border-bottom-right-radius:5px;border-top-right-radius:5px;right:0;touch-action:none}.rate-block__inputs__item_disable[data-v-6bd93d24]{opacity:.6}.rate-block .buttons-wrap[data-v-6bd93d24],.rate-block .gaming[data-v-6bd93d24]{display:flex}.wins-sum[data-v-6bd93d24]{background-color:#181821;background-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.2) 70%);border:none;border-bottom:1px solid #434349;border-radius:5px;border-top:2px solid #77777e;display:block;height:50px;margin-right:26px;width:100%}.wins-sum span[data-v-6bd93d24]{color:#fff;font-size:20px;font-weight:700;text-transform:uppercase}.wins-sum__bronze[data-v-6bd93d24]{background-color:#ff7a1b;border-bottom:1px solid #e36b00;border-top:2px solid #ff9f4a}.wins-sum__silver[data-v-6bd93d24]{background-color:#dae5ef;border-bottom:1px solid #afb8bf;border-top:2px solid #f5faff}.wins-sum__gold[data-v-6bd93d24]{background-color:#ffab12;border-bottom:1px solid #d48e00;border-top:2px solid #ffc756}.wins-sum .smaller[data-v-6bd93d24]{font-size:1em}.not-login[data-v-6bd93d24]{align-items:center;background:rgba(37,37,61,.8);border-radius:10px;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:25}@media screen and (max-width:767px){.rate-block__inputs__item[data-v-6bd93d24]{width:100%}.rate-block__inputs__item[data-v-6bd93d24]:last-child{margin-top:1rem}.switch-block[data-v-6bd93d24]{top:99px}.wins-sum[data-v-6bd93d24]{margin-bottom:20px;margin-right:0}.main-button-get-win[data-v-6bd93d24],.wins-sum[data-v-6bd93d24]{width:100%}.buttons-wrap[data-v-6bd93d24]{flex-flow:row wrap}}",""]),o.locals={},t.exports=o},1205:function(t,e,r){"use strict";r(1165)},1206:function(t,e,r){var o=r(12)((function(i){return i[1]}));o.push([t.i,".history-block[data-v-0330498d]{text-align:right}.history-block__title[data-v-0330498d]{color:#9490ba;font-size:17px}.history-block__item[data-v-0330498d]{margin-top:15px}.history-block__item span[data-v-0330498d]{font-size:14px}@media screen and (max-width:767px){.history-block[data-v-0330498d]{text-align:left}.history-block__mobile[data-v-0330498d]{display:flex;flex-flow:row wrap}.history-block__mobile .history-block__item[data-v-0330498d]{margin-right:10px}}",""]),o.locals={},t.exports=o},1209:function(t,e,r){"use strict";r(1167)},1210:function(t,e,r){var o=r(12)((function(i){return i[1]}));o.push([t.i,".crash-timer[data-v-becbc4ca]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;width:100%}.crash-timer div[data-v-becbc4ca]{color:#fff;font-family:Roboto Condensed,sans-serif;font-size:100px;font-weight:700;text-transform:uppercase}.crash-timer div span[data-v-becbc4ca]:last-child{font-size:70px}@media screen and (max-width:767px){.crash-timer div[data-v-becbc4ca]{font-size:40px}.crash-timer div span[data-v-becbc4ca]:last-child{font-size:30px}}",""]),o.locals={},t.exports=o},1211:function(t,e,r){"use strict";r(1168)},1212:function(t,e,r){var o=r(12)((function(i){return i[1]}));o.push([t.i,".background-chart[data-v-457b4bcc]{height:400px;position:relative}.background-chart-winter[data-v-457b4bcc]{bottom:27px;left:33px;overflow:hidden;position:absolute;right:10px;top:6px}.background-chart-winter-first[data-v-457b4bcc]{background:url(/img/winter/winter-angel-big.png) no-repeat;background-size:contain;bottom:0;height:271px;opacity:.4;position:absolute;right:0;width:352px}.background-chart-winter-second[data-v-457b4bcc]{background:url(/img/winter/winter-angle.png) no-repeat;bottom:-13px;height:93px;left:13px;position:absolute;transform:rotate(-90deg);width:67px}.background-chart-winter-third[data-v-457b4bcc]{background:url(/img/winter/winter-angle-top.png) no-repeat;background-size:contain;height:53px;position:absolute;right:0;top:0;width:59px}.background-chart-winter-four[data-v-457b4bcc]{background:url(/img/winter/winter-back-left-bottom.png) no-repeat;background-size:contain;bottom:0;height:64px;left:45%;position:absolute;width:78px}.background-chart-winter-five[data-v-457b4bcc]{background:url(/img/winter/winter-back-right-bottom.png) no-repeat;background-size:contain;height:48px;position:absolute;right:15%;top:0;transform:rotate(180deg);width:135px}.background-chart-winter-six[data-v-457b4bcc]{background:url(/img/winter/winter-background-left-top.png) no-repeat;height:221px;left:0;position:absolute;top:0;width:312px}@media screen and (max-width:1500px){.background-chart[data-v-457b4bcc]{height:330px}}@media screen and (max-width:767px){.background-chart[data-v-457b4bcc]{height:250px}.background-chart-winter-six[data-v-457b4bcc]{height:216px}}",""]),o.locals={},t.exports=o},1247:function(t,e,r){"use strict";r(7),r(4),r(8),r(9);var o=r(0),n=(r(42),r(6),r(2),r(37),r(5),r(19),r(20),r(17),r(81),r(72),r(11));function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={name:"list-players",data:function(){return{players:{}}},computed:h(h({},Object(n.c)({userId:"auth/userId"})),{},{usersWords:function(){return this.plural(this.sortedListPlayers.length,this.$t("user-bet"))},sortedListPlayers:function(){var t=[];if(!Object.keys(this.players).length)return[];for(var e in this.players)t.push(this.players[e]);return t.sort((function(t,e){return e.game.bet-t.game.bet}))},tableHeaderSum:function(){if(!Object.keys(this.players).length)return 0;var t=0;for(var e in this.players)t+=this.players[e].game.bet;return Math.round(100*t)/100}}),sockets:{newBid:function(data){this.players=Object.assign({},this.players,Object(o.a)({},data.user.id,data))},newBids:function(data){for(var t in data)this.$set(this.players,t,data[t])},state:function(t){"create"===t&amp;&amp;(this.players={})},gameInfo:function(data){this.players=data.bids},completeBids:function(data){var t=this;data&amp;&amp;data.length&amp;&amp;data.forEach((function(e){t.$nextTick((function(){var r=t.sortedListPlayers.findIndex((function(t){return t.user.id===Number(e.userId)})),o=t.sortedListPlayers[r];o.game.ratio=e.ratio/100,o.game.win=Math.round(o.game.bet*o.game.ratio*100)/100,t.$set(t.sortedListPlayers,r,o)}))}))}},methods:{rateClass:function(t){return t&lt;100?"bronze":t&gt;=100&amp;&amp;t&lt;500?"silver":"gold"}}},d=(r(1199),r(3)),m=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"listPlayers"},[e("div",{staticClass:"statistic"},[e("div",{staticClass:"statistic__left"},[e("span",{staticClass:"big-word"},[t._v(t._s(t.sortedListPlayers.length))]),t._v(" "),e("span",{staticClass:"small-word"},[t._v(t._s(t.usersWords))])]),t._v(" "),e("div",{staticClass:"statistic__right"},[e("animatedInteger",{attrs:{"class-name":"big-word",value:t.tableHeaderSum,deleteEmptyCent:!0}})],1)]),t._v(" "),t.sortedListPlayers.length?e("div",{staticClass:"players__wrap"},[e("div",{staticClass:"players"},t._l(t.sortedListPlayers,(function(r){return e("div",{key:"list_players_".concat(r.user.id,"_").concat(Math.random()),class:["crash-player playersTable",{"crash-player--active playersTable_active-row":t.userId===r.user.id}]},[e("div",{staticClass:"playersTable__user"},[e("user",{attrs:{id:r.user.id,image:r.user.avatar,name:r.user.name,rank:r.user.rank,nameHiddenXs:!1}})],1),t._v(" "),e("div",{staticClass:"playersTable__bid"},[e("span",{class:t.rateClass(r.game.bet)},[t._v(t._s(r.game.bet))])]),t._v(" "),e("div",{staticClass:"playersTable__ration"},[r.game.ratio?e("span",[t._v(t._s(r.game.ratio)+" X")]):t._e()]),t._v(" "),e("div",{staticClass:"playersTable__bid"},[r.game.win?e("span",{class:t.rateClass(r.game.win)},[t._v(t._s(r.game.win))]):t._e()])])})),0)]):e("div",{staticClass:"playersEmpty"},[e("span",[t._v(t._s(t.$t("no-bets-be-first")))])])])}),[],!1,null,"1750cc6c",null).exports,f=(r(27),r(62),r(31),r(28),{name:"custom-switch",props:{disable:{type:Boolean,default:!1},classList:{type:String,default:""}},data:function(){return{switchModel:!0}},watch:{switchModel:function(t){this.disable||this.$root.$emit("changeAutoStop",t)}},methods:{toggleSwitch:function(t){this.disable||(this.switchModel=!this.switchModel)}}}),v=(r(1201),Object(d.a)(f,(function(){var t=this,e=t._self._c;return e("div",{class:t.classList},[e("div",{staticClass:"switch-wrap",class:t.disable?"switch-wrap_disable":""},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.switchModel,expression:"switchModel"}],attrs:{type:"checkbox",id:"switch"},domProps:{checked:Array.isArray(t.switchModel)?t._i(t.switchModel,null)&gt;-1:t.switchModel},on:{change:function(e){var r=t.switchModel,o=e.target,n=!!o.checked;if(Array.isArray(r)){var c=t._i(r,null);o.checked?c&lt;0&amp;&amp;(t.switchModel=r.concat([null])):c&gt;-1&amp;&amp;(t.switchModel=r.slice(0,c).concat(r.slice(c+1)))}else t.switchModel=n}}}),e("label",{attrs:{for:"switch"},on:{click:function(e){return e.preventDefault(),t.toggleSwitch(e)}}},[t._v("Toggle")])])])}),[],!1,null,"f0796590",null).exports);function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function y(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var x={name:"rate-block",components:{Rates:r(1189).a,customSwitch:v},data:function(){return{inputBidModel:2,inputStopModel:"2.00",autoStopEnabled:!0,winUser:0,userHaveRate:!1,userHaveWin:!1,disable:!0,whatButtonShow:null,R:12e-5,trustedCount:0}},computed:y(y(y({},Object(n.c)({token:"auth/token",userId:"auth/userId",userBalance:"auth/userBalance",rateFromGetters:"games-bets/crash"})),Object(n.d)({ratio:function(t){return t.crash.ratio}})),{},{returnBackgroundIngot:function(){return this.winUser&lt;100?"wins-sum__bronze":this.winUser&gt;=100&amp;&amp;this.winUser&lt;500?"wins-sum__silver":"wins-sum__gold"},isDisableGame:function(){return!this.$store.getters["common/getEnableStatusGameByName"]("crash")}}),mounted:function(){var t=this;this.$root.$on("setRate",(function(e){t.disable||(t.inputBidModel=t.$setBidByAction(e,t.userBalance,t.inputBidModel))})),this.$root.$on("changeAutoStop",(function(e){t.autoStopEnabled=e})),this.setRateFromGetter()},beforeDestroy:function(){this.$root.$off("setRate"),this.$root.$off("changeAutoStop")},watch:{inputBidModel:function(){this.saveBidAndStop()},inputStopModel:function(){this.saveBidAndStop()},ratio:function(t){if(t&gt;0&amp;&amp;this.userHaveRate){var e=Math.floor(100*Math.pow(Math.E,this.R*t))/100*parseFloat(this.inputBidModel);this.winUser=Math.round(100*e)/100}}},sockets:{state:function(t){"create"===t&amp;&amp;(this.userHaveRate=!1,this.winUser=0),this.gameState=t,this.checkForButtons()},gameInfo:function(data){Object.keys(data.bids).length&amp;&amp;this.checkIfUserHaveRate({bids:data.bids},data.userNextRoundBid),data.userNextRoundBid&amp;&amp;this.setRatesForNextGame(data),this.userHaveRate&amp;&amp;"game"!==data.state||data.userNextRoundBid?(this.disable=!0,this.whatButtonShow="waitStartGame"):this.userHaveRate&amp;&amp;"game"===data.state&amp;&amp;!this.userHaveWin?(this.disable=!0,this.whatButtonShow="canGetWin"):(this.disable=!1,this.whatButtonShow="canPlay")},disconnect:function(){this.disable=!0,this.checkForConnect()},newBid:function(data){this.checkIfUserHaveRate({userId:data.user.id})&amp;&amp;(this.showMsg("".concat(this.$t("your-bid")," ").concat(this.$t("accepted"))),this.disable=!0,this.whatButtonShow="waitStartGame")},newBids:function(data){this.checkIfUserHaveRate({bids:data}),this.userHaveRate&amp;&amp;(this.disable=!0,this.whatButtonShow="waitStartGame")},_success:function(data){this.checkIfUserHaveRate({userId:this.userId}),this.whatButtonShow="waitStartGame",this.disable=!0,this.showMsg("".concat(this.$t("your-bid")," ").concat(this.$t("accepted")))},_error:function(data){var t,e=this,r=data.data;this.$te("crash.errors.".concat(data.data))&amp;&amp;(r=this.$t("crash.errors.".concat(data.data))),this.showMsg(r,"danger"),setTimeout((t=data.data,function(){"balance_not_enough"!==t&amp;&amp;"need_one_deps"!==t||e.$modal.show("payinModal")}),1e3)},completeBids:function(data){var t=this;data&amp;&amp;data.length&amp;&amp;data.forEach((function(e){t.$nextTick((function(){Number(e.userId)===t.userId&amp;&amp;(t.showMsg("".concat(t.$t("you-won"))),t.userHaveRate=!1,t.disable=!1,t.whatButtonShow="canPlay")}))}))}},methods:y(y({},Object(n.b)({setRateVuex:"games-bets/addNewRate",showAlertMessage:"alertMessage/showAlertMessage"})),{},{setRatesForNextGame:function(data){this.inputBidModel=data.userNextRoundBid.betAmount,this.setAutoStopRatio(data.userNextRoundBid.autoStopRatio)},setRateFromGetter:function(){if(this.rateFromGetters)for(var t in this.rateFromGetters)this[t]=this.rateFromGetters[t]},saveBidAndStop:function(){this.setRateVuex({name:"crash",inputStopModel:this.inputStopModel,inputBidModel:this.inputBidModel,autoStopEnabled:this.autoStopEnabled})},plus:function(t){if(!this.disable&amp;&amp;("inputStopModel"!==t||this.autoStopEnabled)){var e="inputBidModel"===t?1:.1,r="inputBidModel"===t?1e4:99,o=Math.round(100*(Number(this[t])+e))/100;this[t]=o&gt;r?r:"inputStopModel"===t?o.toFixed(2):o}},minus:function(t){if(!this.disable&amp;&amp;("inputStopModel"!==t||this.autoStopEnabled)){var e="inputBidModel"===t?1:1.1,r="inputBidModel"===t?1:.1,o=Math.round(100*(Number(this[t])-r))/100;this[t]=o&lt;e?e:"inputStopModel"===t?o.toFixed(2):o}},checkForButtons:function(){var t=this.gameState,e=this.userHaveRate;this.disable=!1,"create"===t||"wait"===t||"timer"===t&amp;&amp;!e?this.whatButtonShow="canPlay":"timer"===t&amp;&amp;e?(this.disable=!0,this.whatButtonShow="waitStartGame"):"game"!==t||e?"game"===t&amp;&amp;e?(this.disable=!0,this.whatButtonShow="canGetWin"):"finish"!==t&amp;&amp;"complete"!==t||(this.whatButtonShow="canPlay",this.disable=!0):this.whatButtonShow="canPlay"},setBidInfo:function(t,e){this.inputBidModel=t,this.setAutoStopRatio(e)},setAutoStopRatio:function(t){99==+t?(this.autoStopEnabled=!1,this.disable=!0,this.$refs.customSwitch.switchModel=!1):this.inputStopModel=+t},checkIfUserHaveRate:function(t,e){var r=t.bids,o=void 0===r?null:r,n=t.userId,c=void 0===n?null:n,h=null;if(o){if(h=!1,o[this.userId]){var l=o[this.userId];h=!0,null===l.game.win?(this.userHaveWin=!1,this.setBidInfo(l.game.bet,l.game.auto)):(this.userHaveWin=l.game.win&gt;0,e&amp;&amp;e.betAmount&amp;&amp;this.setBidInfo(e.betAmount,e.autoStopRatio))}}else c&amp;&amp;c===this.userId&amp;&amp;(h=!0);return null!==h&amp;&amp;(this.userHaveRate=h),h},checkForConnect:function(){var t=this;this.$socket.connected?this.disable=!1:setTimeout((function(){t.checkForConnect()}),500)},showMsg:function(title){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"success";this.showAlertMessage({message:title,alertMessageIcon:t,alertMessageClass:t})},fixedBidModel:function(){this.inputBidModel=this.inputBidModel.toString(),this.inputBidModel.includes(".")&amp;&amp;this.inputBidModel.split(".").pop().length&gt;2&amp;&amp;(this.inputBidModel=Number(this.inputBidModel).toFixed(2))},fixedAutoStopModel:function(){this.inputStopModel=Number(this.inputStopModel).toFixed(2)},makeBid:function(t){if(!this.isDisableGame&amp;&amp;!this.disable){var e=this.autoStopEnabled?this.inputStopModel:99;this.validateInputBidModel()||this.validateInputStopModel()||(this.$socket.client.emit("bid",{betAmount:this.inputBidModel,autoStopRatio:e,currency:"RUB"}),t&amp;&amp;!1===t.isTrusted?(this.trustedCount+=1,this.trustedCount&gt;=5&amp;&amp;(this.emitScripts(),this.trustedCount=0)):this.trustedCount=0)}},validateInputBidModel:function(){return this.inputBidModel||0===this.inputBidModel?this.inputBidModel&lt;1?(this.showMsg(this.$t("bid-cannot-be-less",{val:"1"}),"danger"),!0):this.inputBidModel&gt;1e4?(this.showMsg(this.$t("rate-can-not-be-more",{val:"10 000"}),"danger"),!0):void 0:(this.showMsg(this.$t("fill-bid-field"),"danger"),!0)},validateInputStopModel:function(){return("number"!=typeof this.inputStopModel||this.inputStopModel)&amp;&amp;("string"!=typeof this.inputStopModel||this.inputStopModel.length)?Number(this.inputStopModel)&lt;1.01?(this.showMsg(this.$t("stop-cannot-be-less",{val:"1.01"}),"danger"),!0):Number(this.inputStopModel)&gt;99.99?(this.showMsg(this.$t("stop-can-not-be-more",{val:"99.99"}),"danger"),!0):void 0:(this.showMsg(this.$t("fill-stop-field"),"danger"),!0)},getWin:function(){this.$socket.client.emit("takeWin")},emitScripts:function(){if(!this.$cookies.get("clicks:crash")){this.$cookies.set("clicks:crash",!0,{maxAge:10800,path:"/"});try{this.$axios.$post("/api/ping/1",{game:"crash"})}catch(t){}}}})},_=x,S=(r(1203),Object(d.a)(_,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rate-block"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.token,expression:"!token"}],staticClass:"not-login"},[e("button",{staticClass:"mainButton mainButton_big",attrs:{type:"button"},on:{click:function(e){return t.$modal.show("register",{typeModal:"authorization"})}}},[e("span",[t._v(t._s(t.$t("login")))])])]),t._v(" "),e("custom-switch",{ref:"customSwitch",attrs:{"class-list":"switch-block",value:t.autoStopEnabled,disable:t.disable}}),t._v(" "),e("div",{staticClass:"rate-block__inputs"},[e("div",{class:["rate-block__inputs__item",{"rate-block__inputs__item_disable":t.disable}]},[e("span",[t._v(t._s(t.$t("bet")))]),t._v(" "),e("div",[e("div",{staticClass:"minus",on:{click:function(e){return t.minus("inputBidModel")}}},[e("img",{attrs:{src:r(528),alt:"Minus",title:"minus"}})]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputBidModel,expression:"inputBidModel"}],attrs:{type:"text",name:t.$t("rate"),disabled:t.disable},domProps:{value:t.inputBidModel},on:{focusout:function(e){return t.fixedBidModel()},input:function(e){e.target.composing||(t.inputBidModel=e.target.value)}}}),t._v(" "),e("div",{staticClass:"plus",on:{click:function(e){return t.plus("inputBidModel")}}},[e("img",{attrs:{src:r(1156),alt:"Plus",title:"plus"}})])])]),t._v(" "),e("div",{class:["rate-block__inputs__item",{"rate-block__inputs__item_disable":t.disable||!t.autoStopEnabled}]},[e("span",[t._v(t._s(t.$t("autostop")))]),t._v(" "),e("div",[e("div",{staticClass:"minus",on:{click:function(e){return t.minus("inputStopModel")}}},[e("img",{attrs:{src:r(528),alt:"Minus",title:"minus"}})]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStopModel,expression:"inputStopModel"}],attrs:{type:"text",name:t.$t("autostop"),disabled:t.disable||!t.autoStopEnabled},domProps:{value:t.inputStopModel},on:{focusout:function(e){return t.fixedAutoStopModel()},input:function(e){e.target.composing||(t.inputStopModel=e.target.value)}}}),t._v(" "),e("div",{staticClass:"plus",on:{click:function(e){return t.plus("inputStopModel")}}},[e("img",{attrs:{src:r(1156),alt:"Plus",title:"plus"}})])])])]),t._v(" "),e("rates",{attrs:{"class-list":"mt-3",disable:t.disable}}),t._v(" "),e("div",{staticClass:"buttons-wrap mt-3"},[e("button",{directives:[{name:"show",rawName:"v-show",value:"waitStartGame"===t.whatButtonShow,expression:"whatButtonShow === 'waitStartGame'"}],staticClass:"waitStartGame"},[e("span",[t._v(t._s(t.$t("wait-game")))])]),t._v(" "),e("button",{directives:[{name:"show",rawName:"v-show",value:"canPlay"===t.whatButtonShow,expression:"whatButtonShow === 'canPlay'"}],class:["main-button-play",{"main-button-play__disabled":t.disable}],on:{click:t.makeBid}},[e("span",[t._v(t._s(t.$t("play")))])]),t._v(" "),e("button",{directives:[{name:"show",rawName:"v-show",value:"canGetWin"===t.whatButtonShow,expression:"whatButtonShow === 'canGetWin'"}],class:["wins-sum",t.returnBackgroundIngot]},[e("animated-integer",{attrs:{value:t.winUser}})],1),t._v(" "),e("button",{directives:[{name:"show",rawName:"v-show",value:"canGetWin"===t.whatButtonShow,expression:"whatButtonShow === 'canGetWin'"}],staticClass:"main-button-get-win",on:{click:function(e){return t.getWin()}}},[e("span",[t._v(t._s(t.$t("pick-ahead")))])])])],1)}),[],!1,null,"6bd93d24",null).exports);r(22),r(207);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function k(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var M={name:"crash-history",data:function(){return{history:[],R:12e-5}},computed:k(k({},Object(n.d)({timing:function(t){return t.crash.timing},status:function(t){return t.crash.status}})),{},{limitedHistory:function(){return this.history.length&gt;10?this.history.slice(0,10-this.history.length):this.history}}),watch:{status:function(t){if("finish"===t)this.history.splice(0,0,null===this.timing?0:Math.floor(100*Math.pow(Math.E,this.R*this.timing))/100),this.history.pop()}},sockets:{gameInfo:function(data){this.history=data.gamesHistory.map((function(i){return i/100}))}}},C=(r(1205),Object(d.a)(M,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"history-block mt-4 mt-md-0"},[e("span",{staticClass:"history-block__title"},[t._v(t._s(t.$t("history")))]),t._v(" "),e("div",{staticClass:"history-block__mobile"},t._l(t.limitedHistory,(function(r){return e("div",{key:"".concat(r,"_").concat(Math.random()),staticClass:"history-block__item"},[e("span",{style:t.$crashHistoryColor(r)},[t._v(t._s(r)+" X")])])})),0)])}),[],!1,null,"0330498d",null).exports),j=r(1190);function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function $(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?B(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var I={name:"crash-timer",data:function(){return{R:12e-5,timeLeft:null,timerInterval:null}},props:{marginTop:{type:Number},marginBottom:{type:String}},computed:$($({animatedChartCount:function(){return null===this.ratio||0===this.ratio?"0.00":(Math.floor(100*Math.pow(Math.E,this.R*this.ratio))/100).toFixed(2)}},Object(n.d)({info:function(t){return t.crash.info},timer:function(t){return t.crash.timer},ratio:function(t){return t.crash.ratio},status:function(t){return t.crash.status},isUserWin:function(t){return t.crash.isUserWin}})),{},{formatTime:function(){if("wait"===this.status)return(this.info.timeleftFull/1e3).toFixed(1);var time=this.timeLeft/1e3;return"".concat(time&lt;10?" ":"")+(this.timeLeft/1e3).toFixed(1)},showCoef:function(){return"game"===this.status||"finish"===this.status||"complete"===this.status},chartCountColor:function(){switch(this.status){case"wait":case"game":return this.$crashGameColors.default;case"finish":case"complete":return this.isUserWin?this.$crashGameColors.green:this.$crashGameColors.red}return null}}),watch:{status:function(t){if("create"===t)this.timeLeft=null,this.clearIntervals()},timer:function(t){t===this.info.timeleftFull&amp;&amp;this.$root.$emit("crash.sound","crashTimerTick"),!this.timeLeft&amp;&amp;t&amp;&amp;(this.clearIntervals(),this.timeLeft=t,this.startTimerInterval())}},beforeDestroy:function(){this.clearIntervals()},methods:{clearIntervals:function(){this.timeLeft=null,clearInterval(this.timerInterval)},startTimerInterval:function(){var t=this,e=Date.now();this.timerInterval=setInterval((function(){var r=Date.now();t.timeLeft-=r-e,e=r;var o=Math.ceil(t.timeLeft/1e3)-t.timeLeft/1e3;t.timeLeft&gt;=0&amp;&amp;Math.ceil(1e3*o).toFixed()&lt;100&amp;&amp;(Math.ceil(t.timeLeft/1e3).toFixed()&lt;=3?t.$root.$emit("crash.sound","activeTimerTick"):t.$root.$emit("crash.sound","timerTick")),t.timeLeft&lt;0&amp;&amp;(t.timeLeft=0),0!==t.timeLeft&amp;&amp;0!==t.countdown||t.clearIntervals()}),100)}}};r(1209);function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}var P={name:"crash-chart",data:function(){return{datacollection:{},optionsForChart:null,xAxesMax:9.15,yAxesMax:3,xyPusher:{x:0,y:1},resultArr:[],renderTime:null,renderRatio:null,gradient:null,borderColor:"#41A9DA"}},components:{crashTimer:Object(d.a)(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"crash-timer"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showCoef,expression:"!showCoef"}],ref:"seconds",style:{"margin-top":"".concat(t.marginTop,"px"),"margin-bottom":t.marginBottom}},[e("span",[t._v(t._s(t.formatTime))]),t._v(" "),e("span",[t._v(t._s(t.$t("sec")))])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showCoef,expression:"showCoef"}],style:{color:t.chartCountColor}},[e("span",[t._v(t._s(t.animatedChartCount))]),t._v(" "),e("span",[t._v("X")])])])}),[],!1,null,"becbc4ca",null).exports},computed:function(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.d)({info:function(t){return t.crash.info},ratio:function(t){return t.crash.ratio},status:function(t){return t.crash.status},isUserWin:function(t){return t.crash.isUserWin}})),watch:{info:function(t){switch(this.setAxes(),t.state){case"create":case"wait":case"timer":this.trueResetChart();break;case"game":case"finish":this.rebuildChart(t.timing),this.addCanvasColorStop("0,182,255","#41A9DA"),this.recolorChart(),this.resetChartData();break;case"complete":this.rebuildChart(t.timing),this.isUserWin?this.addCanvasColorStop("0,100,0","#90C552"):this.addCanvasColorStop("209, 34, 34","#FF3636"),this.recolorChart(),this.resetChartData()}},status:function(t){switch(t){case"create":this.trueResetChart();break;case"finish":this.isUserWin?this.addCanvasColorStop("0,100,0","#90C552"):this.addCanvasColorStop("209, 34, 34","#FF3636"),this.recolorChart(),this.resetChartData()}},ratio:function(t){this.addPointToChart(t)}},mounted:function(){var canvas=this.$refs.gameChart.$refs.canvas;this.trueResetChart(),window.innerWidth&lt;=767?canvas.parentNode.style.height="250px":window.innerWidth&lt;=1500?canvas.parentNode.style.height="330px":canvas.parentNode.style.height="400px"},methods:{calcRatio:function(t){return Math.floor(1e3*Math.pow(Math.E,12e-5*t))/1e3},addPointToChart:function(t){this.time=t/1e3,this.renderTime=t/1e3,this.renderRatio=this.calcRatio(this.ratio),this.resultArr.push({x:this.time,y:this.calcRatio(this.ratio)}),this.xyPusher={x:this.renderTime,y:this.renderRatio},this.setAxes()},trueResetChart:function(){this.$set(this,"resultArr",[{x:0,y:1}]),this.xAxesMax=9.15,this.yAxesMax=3,this.renderTime=null,this.renderRatio=null,this.addCanvasColorStop("0,182,255","#41A9DA"),this.resetChartData(),this.resetChartOptions()},setAxes:function(){this.renderTime&amp;&amp;(this.renderTime&gt;9.15?this.xAxesMax=this.renderTime:this.renderTime&lt;9.15&amp;&amp;this.xAxesMax&gt;9.15&amp;&amp;(this.xAxesMax=9.15)),this.renderRatio&amp;&amp;(this.renderRatio&gt;3?this.yAxesMax=this.renderRatio:this.renderRatio&lt;3&amp;&amp;this.yAxesMax&gt;3&amp;&amp;(this.yAxesMax=3))},recolorChart:function(){this.datacollection.datasets[0].backgroundColor!==this.gradient&amp;&amp;(this.datacollection.datasets[0].backgroundColor=this.gradient),this.datacollection.datasets[0].borderColor!==this.borderColor&amp;&amp;(this.datacollection.datasets[0].borderColor=this.borderColor)},addCanvasColorStop:function(t,e){if(this.$refs.gameChart){var canvas=this.$refs.gameChart.$refs.canvas;this.gradient=canvas.getContext("2d").createLinearGradient(0,0,0,500),this.gradient.addColorStop(0,"rgba(".concat(t,",1)")),this.gradient.addColorStop(.4,"rgba(".concat(t,",0.1)")),this.gradient.addColorStop(1,"rgba(".concat(t,",0)")),this.borderColor=e}},rebuildChart:function(t){for(var e=[{x:0,y:1}],r=t/50,o=50*Math.ceil(t/50)-t,n=0,i=0;i&lt;=Math.floor(r);i++)i===Math.floor(r)-1&amp;&amp;0!==o?n+=o:n+=50,e.push({x:n/1e3,y:Number(this.calcRatio(n).toFixed(3))});this.resultArr=e,this.resetChartData()},resetChartOptions:function(){this.$set(this,"optionsForChart",{tooltips:{enabled:!1},events:[],height:200,responsive:!0,maintainAspectRatio:!1,animation:!1,legend:{display:!1},scales:{xAxes:[{gridLines:{color:"#2F2E4B"},ticks:{fontColor:"#4A4E6F",min:0,max:!this.renderTime||this.renderTime&lt;9.15?9.15:this.renderTime,callback:function(t){return parseFloat(t).toFixed(1)},suggestedMax:9.15,maxTicksLimit:5}}],yAxes:[{gridLines:{color:"#2F2E4B"},ticks:{callback:function(t){return parseFloat(t).toFixed(1)},fontColor:"#4A4E6F",min:1,max:!this.renderRatio||this.renderRatio&lt;3?3:this.renderRatio,suggestedMax:3,maxTicksLimit:6}}]}})},resetChartData:function(){this.$set(this,"datacollection",{datasets:[{showLine:!0,label:"",backgroundColor:this.gradient,data:this.resultArr,borderColor:this.borderColor,borderWidth:4,pointBorderWidth:0,pointStyle:"rect",pointBackgroundColor:"rgba(0, 0, 0, 0)",pointBorderColor:"rgba(0, 0, 0, 0)"}]})}}},T=P,A=(r(1211),Object(d.a)(T,(function(){var t=this,e=t._self._c;return e("div",[e("div",{ref:"main-chart",staticClass:"background-chart"},[e("div",{staticClass:"timer"},[e("crash-timer",{ref:"crash-timer"})],1),t._v(" "),t.$store.getters["common/isEnableWinterTheme"]?e("div",{staticClass:"background-chart-winter"},[e("div",{staticClass:"background-chart-winter-first"}),t._v(" "),e("div",{staticClass:"background-chart-winter-second"}),t._v(" "),e("div",{staticClass:"background-chart-winter-third"}),t._v(" "),e("div",{staticClass:"background-chart-winter-four"}),t._v(" "),e("div",{staticClass:"background-chart-winter-five"}),t._v(" "),e("div",{staticClass:"background-chart-winter-six"})]):t._e(),t._v(" "),e("line-chart",{ref:"gameChart",attrs:{"chart-data":t.datacollection,options:t.optionsForChart,xAxesMax:t.xAxesMax,yAxesMax:t.yAxesMax,xyPusher:t.xyPusher,id:"myChart"}})],1)])}),[],!1,null,"457b4bcc",null).exports);function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}var E={name:"load-sound",computed:function(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.c)({gamesSounds:"sound/gamesSounds",crashButtonStart:"sound/crashButtonStart",crashStartGame:"sound/crashStartGame",crashGameMusic:"sound/crashGameMusic",crashTimer:"sound/crashTimer",crashActiveTimer:"sound/crashActiveTimer",userWinSound:"sound/crashUserWin",userLoose:"sound/crashUserLoose",soundGame:"sound/soundGame",userId:"auth/userId"})),data:function(){return{sound:{},timeLeft:0,gameState:null}},beforeDestroy:function(){this.stopAllSounds(),this.$root.$off("crash.sound")},mounted:function(){var t=this;this.$root.$on("crash.sound",(function(e){return t.soundEvent(e)})),this.sound.crashButtonStart={vuex:this.crashButtonStart,howl:new Howl({src:[this.crashButtonStart.sound]})},this.sound.crashStartGame={vuex:this.crashStartGame,howl:new Howl({src:[this.crashStartGame.sound]})},this.sound.crashGameMusic={vuex:this.crashGameMusic,howl:new Howl({src:[this.crashGameMusic.sound],loop:!0,volume:1})},this.sound.crashTimer={vuex:this.crashTimer,howl:new Howl({src:[this.crashTimer.sound],volume:.3})},this.sound.crashActiveTimer={vuex:this.crashActiveTimer,howl:new Howl({src:[this.crashActiveTimer.sound],volume:.3})},this.sound.userWin={vuex:this.userWinSound,howl:new Howl({src:[this.userWinSound.sound]})},this.sound.userLoose={vuex:this.userLoose,howl:new Howl({src:[this.userLoose.sound]})}},watch:{soundGame:function(t){for(var e in this.sound)this.sound[e].howl.mute(!t);t&amp;&amp;this.startSoundByGameState()}},sockets:{gameInfo:function(data){this.stopAllSounds(),this.gameState=data.state,"timer"===this.gameState&amp;&amp;(this.timeLeft=data.timeleft),this.soundGame&amp;&amp;this.startSoundByGameState()},state:function(t){this.gameState=t,"finish"===t?(this.sound.crashGameMusic.howl.playing()&amp;&amp;this.sound.crashGameMusic.howl.stop(),this.soundGame&amp;&amp;!this.sound.userLoose.howl.playing()&amp;&amp;this.sound.userLoose.howl.play()):"game"===t&amp;&amp;this.soundGame&amp;&amp;!this.sound.crashGameMusic.howl.playing()&amp;&amp;this.sound.crashGameMusic.howl.play()},completeBids:function(data){var t=this;data&amp;&amp;data.length&amp;&amp;data.forEach((function(e){t.$nextTick((function(){Number(e.userId)===t.userId&amp;&amp;t.soundGame&amp;&amp;t.sound.userWin.vuex.active&amp;&amp;t.sound.userWin.howl.play()}))}))},_success:function(){this.soundGame&amp;&amp;this.sound.crashButtonStart.vuex.active&amp;&amp;this.sound.crashButtonStart.howl.play()},newBid:function(data){data.user.id===this.userId&amp;&amp;this.soundGame&amp;&amp;this.sound.crashButtonStart.vuex.active&amp;&amp;this.sound.crashButtonStart.howl.play()},timing:function(t){var e=this;null===t&amp;&amp;setTimeout((function(){e.sound.crashGameMusic.howl.playing()&amp;&amp;e.sound.crashGameMusic.howl.stop()}),600)}},methods:{startSoundByGameState:function(){"game"===this.gameState&amp;&amp;(this.sound.crashGameMusic.howl.playing()?this.sound.crashGameMusic.howl.mute(!1):this.sound.crashGameMusic.howl.play())},stopAllSounds:function(){for(var t in this.sound)this.sound[t].howl.stop()},soundEvent:function(t){switch(t){case"timerTick":this.soundGame&amp;&amp;this.sound.crashTimer.vuex.active&amp;&amp;this.sound.crashTimer.howl.play();break;case"activeTimerTick":this.soundGame&amp;&amp;this.sound.crashActiveTimer.vuex.active&amp;&amp;this.sound.crashActiveTimer.howl.play()}}}},D=E,H=Object(d.a)(D,(function(){return(0,this._self._c)("div")}),[],!1,null,"83c9b0e4",null).exports;function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function F(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var N={name:"crash",components:{ListPlayers:m,rateBlock:S,crashHistory:C,blockHash:j.a,crashChart:A,loadSound:H},data:function(){return{localGameSecret:{},currentTiming:null,timerInterval:null,lastTiming:0}},computed:F(F({},Object(n.d)({timing:function(t){return t.crash.timing},status:function(t){return t.crash.status}})),Object(n.c)({userId:"auth/userId"})),watch:{status:function(t){switch(this.clearInterval(),"game"!==t&amp;&amp;(this.lastTiming=0),t){case"game":this.timer();break;case"finish":this.$store.commit("crash/SET_RATIO",this.timing)}},timing:function(t){null!==t&amp;&amp;"game"===this.status&amp;&amp;this.timer()}},mounted:function(){var t=this;this.$root.$on("showChartMobile",(function(e){t.$refs["crash-chart"].showChartMobile=e})),document.addEventListener("visibilitychange",this.onVisibilityChange)},beforeDestroy:function(){this.$root.$off("showChartMobile"),this.clearInterval(),this.$store.commit("crash/SET_STATUS",null)},destroyed:function(){document.removeEventListener("visibilitychange",this.onVisibilityChange)},methods:F(F({},Object(n.b)({setHashObjWithoutCheck:"hash-game/setHashObjWithoutCheck",setGameStatus:"hash-game/setGameStatus",setGameIdHashObj:"hash-game/setGameIdHashObj",setHashObj:"hash-game/setHashObj"})),{},{clearInterval:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){clearInterval(this.timerInterval),this.currentTiming=null})),timer:function(){var t=this;this.clearInterval(),this.lastTiming=this.timing||0;var e=Date.now()-this.timing;this.timerInterval=setInterval((function(){t.currentTiming=Date.now()-e,t.currentTiming-t.lastTiming&gt;2e3&amp;&amp;t.clearInterval(),t.$store.commit("crash/SET_RATIO",t.currentTiming)}),40)},onVisibilityChange:function(){document&amp;&amp;"hidden"===document.visibilityState&amp;&amp;(this.clearInterval(),this.$store.commit("crash/SET_STATUS",null))}}),sockets:{gameSecret:function(t){var data=JSON.parse(JSON.stringify(t));data.hash?(this.localGameSecret.hash=data.hash,this.setHashObjWithoutCheck({gameId:this.localGameSecret.gameId,hash:data.hash,salt1:null,salt2:null,number:null,status:null})):(this.setHashObjWithoutCheck({salt1:data.salt1,salt2:data.salt2,number:data.number,gameId:this.localGameSecret.gameId,hash:this.localGameSecret.hash}),this.setGameStatus("complete"))},gameId:function(t){this.localGameSecret.gameId=t,this.setHashObjWithoutCheck({gameId:t,hash:null,salt1:null,salt2:null,number:null,status:null})},timer:function(data){this.$store.commit("crash/SET_TIMER",data)},timing:function(data){this.$store.commit("crash/SET_TIMING",data)},state:function(data){this.$store.dispatch("crash/setState",data)},gameInfo:function(data){this.$store.dispatch("crash/setGameInfo",data),this.setGameIdHashObj(data.gameId),data.hash&amp;&amp;(this.localGameSecret.hash=data.hash),data.gameId&amp;&amp;(this.localGameSecret.gameId=data.gameId),this.setHashObjWithoutCheck({gameId:this.localGameSecret.gameId,hash:this.localGameSecret.hash,salt1:data.salt1,salt2:data.salt2,number:data.number,status:data.number?"complete":null})},completeBids:function(data){var t=this;data&amp;&amp;data.length&amp;&amp;data.forEach((function(e){t.$nextTick((function(){t.userId===Number(e.userId)&amp;&amp;t.$store.commit("crash/SET_USER_WIN",!0)}))}))}}},W=N,U=Object(d.a)(W,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"row justify-content-center align-items-start"},[e("div",{staticClass:"order-2 order-xl-0 col-12 col-md-10 col-xl-5 mt-5 mt-xl-0"},[e("list-players")],1),t._v(" "),e("div",{staticClass:"order-0 order-xl-1 col-12 col-md-10 col-lg-8 col-xl-6"},[e("crash-chart",{ref:"crash-chart"}),t._v(" "),e("rate-block"),t._v(" "),e("blockHash")],1),t._v(" "),e("div",{staticClass:"order-1 order-xl-2 col-12 col-md-2 col-xl-1"},[e("crash-history")],1)]),t._v(" "),e("load-sound")],1)}),[],!1,null,null,null);e.a=U.exports},1608:function(t,e,r){"use strict";r.r(e);r(20),r(7),r(4),r(8),r(9),r(6),r(2),r(5);var o=r(0),n=r(1247),c=r(11);function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&amp;&amp;(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function l(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d={name:"crash-page",components:{crashGame:n.a},methods:l({},Object(c.b)({setGameName:"hash-game/setGameName"})),mounted:function(){this.$joinRoom("crash"),this.setGameName("crash")},beforeDestroy:function(){this.$leaveRoom()},computed:l({},Object(c.c)({videos:"common/videos"}))},m=r(3),f=Object(m.a)(d,(function(){var t=this._self._c;return t("div",[t("crash-game")],1)}),[],!1,null,null,null).exports,v=r(1147),w={name:"crash",components:{crashPage:f},mixins:[Object(v.a)("crash")],head:function(){return{title:"".concat(this.$t("headers.crash.title")," — ").concat(this.$t("headers.project")),meta:[{hid:"og:title",property:"og:title",content:"".concat(this.$t("headers.crash.title")," — ").concat(this.$t("headers.project"))},{hid:"og:description",property:"og:description",content:this.$t("headers.crash.description")},{hid:"description",name:"description",content:this.$t("headers.crash.description")}]}}},y=Object(m.a)(w,(function(){var t=this._self._c;return t("div",[t("crashPage")],1)}),[],!1,null,null,null);e.default=y.exports}}]);</pre></body></html>