PageSourceSearch

https://12cs.fail/en/chunk-4Y7B3LA3.js

js 12cs.fail collected 2026-10-10 02:38:51 UTC 153,029 bytes, 12 lines download raw bytes

1import{a as L,b as q,c as Qe,d as S,e as He,f as Zt,g as Ue,h as W}from"./chunk-6MU3JIFQ.js";import{d as $e}from"./chunk-KQ4UMOPO.js";import{a as Ye,b as qe}from"./chunk-CFCE5WFL.js";import{a as qt}from"./chunk-LK74N645.js";import{a as Qt}from"./chunk-ZSHKR3LN.js";import{b as re}from"./chunk-5VWNKVRB.js";import"./chunk-U454GMVD.js";import"./chunk-OTX6GGS2.js";import"./chunk-7WW52MXW.js";import"./chunk-ARYAMYGF.js";import{a as Ht,b as Ut,d as Jt}from"./chunk-NYCYYZUQ.js";import"./chunk-NFGDFOBV.js";import"./chunk-Y4M24S7P.js";import"./chunk-ZWA2HFNP.js";import{b as Se}from"./chunk-2NPTJOJL.js";import{c as Wt,e as Vt,f as Kt,g as ie}from"./chunk-KOBCH4IQ.js";import{c as Ot,e as Xe,g as wt,h as Rt,i as Nt,k as Dt,n as Ft,p as Lt,s as Gt,t as Bt,u as zt,z as $t}from"./chunk-MVNYJSCH.js";import{d as ze}from"./chunk-D2PTMRVY.js";import"./chunk-YTW7SW2V.js";import"./chunk-YRCHHGYY.js";import"./chunk-GFBZYO5K.js";import"./chunk-OK5ZTH3U.js";import"./chunk-AT54JZT4.js";import"./chunk-WKSYDPTZ.js";import{b as Yt}from"./chunk-ZBIDDHWQ.js";import"./chunk-CW7MT7VE.js";import"./chunk-ZWSWQ5D5.js";import"./chunk-VNJJ55Z7.js";import"./chunk-OWK4YXYG.js";import{e as jt}from"./chunk-3BG5LX4Q.js";import"./chunk-WTZMP7KX.js";import{b as Ie}from"./chunk-34ULTRYW.js";import{c as Ge,d as Be}from"./chunk-SRCJTHBN.js";import{g as Je,p as Y}from"./chunk-UISSSEXI.js";import{b as It}from"./chunk-FGYQJH35.js";import{c as Le}from"./chunk-NFUJBFDW.js";import{c as Mt}from"./chunk-5ACA4SR6.js";import{a as $}from"./chunk-LXX2IGXR.js";import"./chunk-BJHATWGB.js";import{f as Pt}from"./chunk-J7NSQWER.js";import{a as gi,d as At}from"./chunk-TYLYR3C3.js";import{a as Xt}from"./chunk-G454PJOY.js";import"./chunk-PLMBFX4B.js";import{a as ue}from"./chunk-XIE7ZMVI.js";import{b as St,e as De,h as xt,r as bt,s as Et,t as de}from"./chunk-YODJDJOJ.js";import"./chunk-HTCTQSJA.js";import"./chunk-WYKSJSTQ.js";import"./chunk-ZKO35LNJ.js";import{a as X}from"./chunk-LTSYRHYT.js";import{a as ae,d as z}from"./chunk-BAMUWVXB.js";import{h as yt,t as Fe,x as kt}from"./chunk-S2T6HSPW.js";import{d as vt}from"./chunk-CWZ5JKNT.js";import"./chunk-NFWGG6F5.js";import{i as Tt}from"./chunk-6X7B336Z.js";import{a as Ct,b as je}from"./chunk-6OHS2AWG.js";import"./chunk-BJI3CEQU.js";import{h as B,k as ke,u as gt}from"./chunk-VGDWCUHF.js";import{$b as ge,Aa as he,Ad as C,Ca as at,Cc as E,Db as P,Dc as Ce,Dd as ft,Ec as c,Fd as Ne,Ga as T,Hd as ye,Ia as ee,Ic as Te,Ja as rt,Jb as Ee,Jc as me,Kc as ce,Ma as st,Mc as dt,N as it,Nc as ut,O as nt,Oc as _e,Pc as ne,Qc as Pe,Rc as pt,Sc as d,Tc as M,Uc as D,Vc as oe,Yb as fe,Zb as p,_b as _,ac as ct,bc as V,cc as K,cd as _t,dc as u,ec as r,fc as s,gc as h,hc as A,hd as te,ib as O,ic as w,id as Oe,jc as G,jd as we,lb as lt,mc as pe,nb as a,oa as f,od as F,pc as R,pd as J,qc as j,qd as Q,rd as ht,sb as mt,td as ve,ua as v,va as y,wa as Me,wd as Re,xa as ot,xc as b}from"./chunk-246BNVPW.js";import"./chunk-TAR7UO5C.js";import"./chunk-FPMTQZ27.js";import{g as fi,h as Ae}from"./chunk-6CQJLHU2.js";var Ci=n=>["absolute left-1/2 top-[1.2rem] flex h-[5.9rem] -translate-x-1/2 items-center justify-center gap-[0.6rem] rounded-[1.4rem] bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)] shadow-[0_8px_24px_0_rgba(72,68,57,0.50)] custom-transition-all",n],Si=n=>["absolute bottom-[1.2rem] left-1/2 flex h-[5.9rem] -translate-x-1/2 items-center justify-center gap-[0.6rem] rounded-[1.4rem] bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)] shadow-[0_8px_24px_0_rgba(72,68,57,0.50)] custom-transition-all",n];function xi(n,l){if(n&1&&(r(0,"span",11),b(1,0),s()),n&2){let e=c(2);u("ngClass",e.authState.betType()===e.BetType.BALANCE?"text-[#1F190A] opacity-60":"text-[#CFC7A7] opacity-70");}}function bi(n,l){if(n&1&&(r(0,"span",11),b(1,1),s()),n&2){let e=c(2);u("ngClass",e.authState.betType()===e.BetType.BALANCE?"text-[#1F190A] opacity-60":"text-[#CFC7A7] opacity-70");}}function Ei(n,l){if(n&1&&(r(0,"span",11),b(1,2),s()),n&2){let e=c(3);u("ngClass",e.authState.betType()===e.BetType.INVENTORY?"text-[#1F190A] opacity-60":"text-[#CFC7A7] opacity-70");}}function Ti(n,l){if(n&1&&(r(0,"span",11),b(1,3),s()),n&2){let e=c(3);u("ngClass",e.authState.betType()===e.BetType.INVENTORY?"text-[#1F190A] opacity-60":"text-[#CFC7A7] opacity-70");}}function vi(n,l){if(n&1){let e=R();r(0,"button",8),E("click",function(){v(e);let i=c(2);return y(i.setBetType(i.BetType.INVENTORY));}),h(1,"i",16),r(2,"div",10),p(3,Ei,2,1,"span",11)(4,Ti,2,1,"span",11),r(5,"div",12),h(6,"i",13),r(7,"span",14),d(8),s()()()();}if(n&2){let e=c(2);u("ngClass",e.authState.betType()===e.BetType.INVENTORY?"bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)]":"bg-transparent custom-transition-bg before:bg-[linear-gradient(180deg,rgba(169,164,154,0.10)_0%,rgba(228,225,212,0.10)_100%)]"),a(),u("ngClass",e.authState.betType()===e.BetType.INVENTORY?"!text-[#111733]":"!text-[#CFC7A7]"),a(2),_(e.settingsState.streamerMode()?4:3),a(2),u("ngClass",e.authState.betType()===e.BetType.INVENTORY?"!text-[#37362C]":"!text-[#CFC7A7]"),a(3),M(e.authState.inventoryPriceUsd());}}function yi(n,l){if(n&1){let e=R();r(0,"button",8),E("click",function(){v(e);let i=c();return y(i.setBetType(i.BetType.BALANCE));}),h(1,"i",9),r(2,"div",10),p(3,xi,2,1,"span",11)(4,bi,2,1,"span",11),r(5,"div",12),h(6,"i",13),r(7,"span",14),d(8),s()()()(),p(9,vi,9,5,"button",15);}if(n&2){let e=c();u("ngClass",e.authState.betType()===e.BetType.BALANCE?"bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)]":"bg-transparent custom-transition-bg before:bg-[linear-gradient(180deg,rgba(169,164,154,0.10)_0%,rgba(228,225,212,0.10)_100%)]"),a(),u("ngClass",e.authState.betType()===e.BetType.BALANCE?"!text-[#111733]":"!text-[#CFC7A7]"),a(2),_(e.settingsState.streamerMode()?4:3),a(2),u("ngClass",e.authState.betType()===e.BetType.BALANCE?"!text-[#37362C]":"!text-[#CFC7A7]"),a(3),M(e.authState.totalBalanceUsd()),a(),_(e.inventoryEnabled?9:-1);}}function ki(n,l){if(n&1){let e=R();r(0,"button",17),E("click",function(){v(e);let i=c();return y(i.setBetType(i.BetType.BALANCE));}),h(1,"i",18),r(2,"div",19)(3,"span",20),b(4,4),s(),r(5,"div",21),h(6,"i",13),r(7,"span",22),d(8),s()()()(),r(9,"button",17),E("click",function(){v(e);let i=c();return y(i.setBetType(i.BetType.INVENTORY));}),h(10,"i",23),r(11,"div",19)(12,"span",20),b(13,5),s(),r(14,"div",21),h(15,"i",13),r(16,"span",22),d(17),s()()()();}if(n&2){let e=c();u("ngClass",te(4,Ci,e.authState.betType()===e.BetType.BALANCE?"z-[1] w-[11.4rem]":"z-[0] w-[10.6rem] opacity-10")),a(8),M(e.authState.totalBalanceUsd()),a(),u("ngClass",te(6,Si,e.authState.betType()===e.BetType.INVENTORY?"z-[
11] w-[11.4rem]":"z-[0] w-[10.6rem] opacity-10")),a(8),M(e.authState.inventoryPriceUsd());}}var ei=(()=>{class n{constructor(){this.inventoryEnabled=!0,this.chickenRoad=!1,this.authState=f(Y),this.settingsState=f(X),this.BetType=re,this.mediaService=f($),this.isLg=z(this.mediaService.mediaQuery("max","lg"));}ngOnChanges(e){e.inventoryEnabled&&!this.inventoryEnabled&&this.authState.betType()===re.INVENTORY&&this.authState.setBetType(re.BALANCE);}setBetType(e){this.authState.betType()!==e&&this.authState.setBetType(e);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["tabs-chicken-road"]],hostAttrs:[1,"lg:w-full"],inputs:{inventoryEnabled:"inventoryEnabled",chickenRoad:"chickenRoad"},features:[rt],decls:4,vars:2,consts:()=>{let e;e="Balance";let t;t="Points";let i;i="Skins";let o;o="Items";let m;m="Points";let g;return g="Items",[e,t,i,o,m,g,[1,"flex","h-[10.8rem]","w-full","min-w-[13.8rem]","rounded-[1.8rem]","bg-[linear-gradient(180deg,rgba(199,191,172,0.30)_0%,rgba(201,188,147,0.38)_100%)]","backdrop-blur-[4.5px]","lg:h-[5rem]","lg:w-full","lg:rounded-[1.4rem]"],[1,"relative","flex","h-full","w-full","flex-col","rounded-[1.8rem]","border-[0.2rem]","border-solid","border-[rgba(255,247,210,0.12)]","lg:w-full","lg:flex-row","lg:rounded-[1.4rem]",3,"ngClass"],["type","button",1,"flex","h-full","w-full","items-center","justify-start","space-x-[0.8rem]","overflow-hidden","rounded-[1.4rem]","pl-[1.2rem]","lg:justify-center","lg:rounded-[1.2rem]","lg:pl-0",3,"click","ngClass"],[1,"icon_new","icon_wallet","text-[2.6rem]","lg:text-[2.1rem]",3,"ngClass"],[1,"flex","flex-col","items-start","justify-center","lg:flex-col-reverse","lg:space-y-[-0.1rem]","lg:space-y-reverse"],[1,"text-[1rem]","font-400","uppercase","leading-[1.4rem]","lg:text-[0.9rem]","lg:leading-[1.2rem]",3,"ngClass"],[1,"flex","items-center","space-x-[0.3rem]","lg:space-x-[0.2rem]",3,"ngClass"],[1,"icon","icon_coin-c","text-[1.2rem]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]","lg:text-[1.2rem]","lg:leading-[1.6rem]"],["type","button",1,"flex","h-full","w-full","items-center","justify-start","space-x-[0.8rem]","overflow-hidden","rounded-[1.4rem]","pl-[1.2rem]","lg:justify-center","lg:rounded-[1.2rem]","lg:pl-0",3,"ngClass"],[1,"icon_new","icon_inventory","text-[2.6rem]","lg:text-[2.1rem]",3,"ngClass"],["type","button",3,"click","ngClass"],[1,"icon_new","icon_wallet","text-[2.6rem]","!text-[#37362C]"],[1,"flex","flex-col","items-start","justify-center"],[1,"text-[1rem]","font-400","uppercase","leading-[1.4rem]","text-[#1F190A]","opacity-60"],[1,"flex","items-center","space-x-[0.3rem]","!text-[#37362C]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]"],[1,"icon_new","icon_inventory","text-[2.6rem]","!text-[#37362C]"]];},template:function(t,i){t&1&&(r(0,"div",6)(1,"div",7),p(2,yi,10,6)(3,ki,18,8),s()()),t&2&&(a(),u("ngClass",i.settingsState.streamerMode()&&!i.isLg()?"p-[1rem]":"p-[0.2rem]"),a(),_(!i.settingsState.streamerMode()||i.isLg()?2:3));},dependencies:[B],encapsulation:2,changeDetection:0});}}return n;})();var ti={mainTitle:"Chicken Road \u2014 a crash game on CSFAIL",mainText:"Chicken Road is one of the most popular crash games on CSFAIL. Simple rules, thrilling gameplay, and the chance to land a big win \u2014 everything you need for an exciting experience.",sections:[{title:"How to Play Chicken Road?",blocks:[{type:"paragraph",content:"Everything is very simple: choose the difficulty level that suits you (easy, medium, or hard) and place a bet \u2014 using your site balance or a CS2 skin from your inventory. The higher the difficulty, the greater the risk, but the potential winnings increase as well."},{type:"paragraph",content:"Click <strong>\u201CStart Game\u201D</strong>, wait for the round to begin, and press <strong>\u201CMake a Step\u201D</strong> to make the chicken jump across platforms. With every successful jump, the multiplier increases \u2014 along with your potential winnings."}]},{title:"When should you cash out?",blocks:[{type:"paragraph",content:"In Chicken Road, you decide when to stop. You can take a <strong>cashout</strong> after a few steps and lock in a small but steady profit. Or you can take the risk, keep going, and try to reach the end \u2014 where a jackpot with the maximum multiplier awaits."},{type:"paragraph",content:"<strong>Main rule:</strong> make sure to cash out before the chicken burns. One wrong step \u2014 and 
1your bet is lost."}]},{title:"Fair Play",blocks:[{type:"paragraph",content:"Chicken Road on CSFAIL runs on the <strong>Provably Fair</strong> system. This means that the result of each round is generated randomly and fairly \u2014 and you can verify it yourself at any time."},{type:"paragraph",content:"Ready to test your luck? Choose a difficulty, place your bet, and show what you\u2019ve got!"}]}]};function Ii(n,l){if(n&1&&(h(0,"img",4),F(1,"userAvatar")),n&2){let e=c();u("src",Q(1,1,e.displayData().user,e.UserAvatarSize.MEDIUM),O);}}function Ai(n,l){n&1&&h(0,"div",5);}function Mi(n,l){if(n&1&&pe(0,6),n&2){c();let e=_e(21);u("ngTemplateOutlet",e);}}function Pi(n,l){if(n&1&&pe(0,6),n&2){c();let e=_e(21);u("ngTemplateOutlet",e);}}function Oi(n,l){if(n&1&&h(0,"img",9),n&2){let e=c();u("src",e.displayData().itemImage,O);}}function wi(n,l){if(n&1&&(h(0,"img",9),F(1,"itemImage")),n&2){let e=c();u("src",Q(1,1,e.displayData().item.id,"medium"),O);}}function Ri(n,l){if(n&1&&(h(0,"img",15),F(1,"staticAssetUrl")),n&2){let e=c();u("src",J(1,1,e.cardType()==="gold"?e.isLg()?"/assets/images/chicken-road/last-wins/goldShadowMob.webp":"/assets/images/chicken-road/last-wins/goldShadow.webp":e.cardType()==="silver"?e.isLg()?"/assets/images/chicken-road/last-wins/silverShadowMob.webp":"/assets/images/chicken-road/last-wins/silverShadow.webp":e.isLg()?"/assets/images/chicken-road/last-wins/bronzeShadowMob.webp":"/assets/images/chicken-road/last-wins/bronzeShadow.webp"),O);}}function Ni(n,l){if(n&1&&(r(0,"div",16)(1,"span",17),d(2),s()()),n&2){let e=c();a(2),D("x",e.displayData().coefficient);}}var ii=(()=>{class n{constructor(){this.UserAvatarSize=Ge,this.activeIndex=0,this.mediaService=f($),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.game=null,this.cardType=C(()=>{let e=this.game;if(!e?.ratio)return"normal";let t=parseFloat(e.ratio);return t>=15?"gold":t>=6?"silver":t>=2.5?"bronze":"normal";}),this.displayData=C(()=>{let e=this.game;if(!e)return{username:"Katerpiller",user:null,itemName:"Cinquedea",winAmount:"92.13",coefficient:"2.44",itemImage:je("/assets/images/chicken-road/test-gun.webp"),item:null};let t=e.winItem||null,i="0.00";e.winItemPrice?i=parseFloat(e.winItemPrice).toFixed(2):e.ratio&&e.amount?i=(parseFloat(e.amount)*parseFloat(e.ratio)).toFixed(2):e.amount&&(i=parseFloat(e.amount).toFixed(2));let o=e.ratio?parseFloat(e.ratio).toFixed(2):"1.00";return{username:e.user?.nickname||e.user?.username||"Unknown",user:e.user,itemName:t?.marketName||"Unknown",winAmount:i,coefficient:o,itemImage:t?null:je("/assets/images/chicken-road/test-gun.webp"),item:t};}),this.filterButtons=[{label:"All",value:"all",icon:"icon_AllLive"},{label:"The best",value:"best",icon:"icon_cup"}];}toggleFilter(e){this.activeIndex=e;}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["last-wins-card"]],hostAttrs:[1,"lg:w-full"],inputs:{game:"game"},decls:22,vars:10,consts:[["coefficient",""],[1,"relative","flex","h-[19.8rem]","w-[14.3rem]","flex-col","items-center","justify-between","overflow-hidden","rounded-[1.6rem]","p-[1.6rem]","lg:h-[5.6rem]","lg:w-full","lg:flex-row","lg:rounded-[1.2rem]","lg:p-[1rem]",3,"ngClass"],[1,"z-[1]","flex","flex-col","items-center","space-y-[1rem]","lg:flex-row","lg:space-x-[0.7rem]","lg:space-y-0"],[1,"relative","flex","flex-col","items-center"],["loading","lazy","fetchpriority","low",1,"h-[4.8rem]","w-[4.8rem]","rounded-[1.2rem]","object-cover","lg:h-[3.6rem]","lg:w-[3.6rem]","lg:rounded-[0.6rem]",3,"src"],[1,"h-[4.8rem]","w-[4.8rem]","rounded-[1.2rem]","bg-[#1C2236]","lg:h-[3.6rem]","lg:w-[3.6rem]","lg:rounded-[0.6rem]"],[3,"ngTemplateOutlet"],[1,"lg:flex","z-[1]","lg:flex-col","lg:items-start","lg:space-y-[0.4rem]"],[1,"text-[1.1rem]","font-350","leading-[1.4rem]","text-white","lg:text-[1rem]"],["loading","lazy","fetchpriority","low",1,"gun-mask","absolute","bottom-[3rem]","z-[1]","left-1/2","-translate-x-1/2","w-[10.8rem]","lg:bottom-[-1.5rem]","lg:left-auto","lg:translate-x-0","lg:right-[-0.5rem]","lg:w-[10.3rem]",3,"src"],[1,"z-[1]","flex","flex-col","items-center","space-y-[0.6rem]","lg:mr-[9rem]","lg:items-end","lg:space-y-[0.4rem]"],[1,"flex","h-[2.2rem]","items-center","space-x-[0.3rem]","rounded-[1.6rem]","bg-[rgba(181,159,96,0.70)]","pl-[0.8rem]","pr-[1rem]","lg:h-[1.8rem]","lg:pl-[0.6rem]","lg:pr-[0.8rem]",3,"ngClass"],[1,"icon","icon_coin-c","text-[1.2rem]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]"],[1,"text-[1.2rem]","font-350","leading-[1.6rem]","truncate","max-w-[10rem]","lg:text-[1rem]","lg:leading-[1.4rem]"],["loading","lazy","fetchpriority","low",1,"absolute","bottom-0","z-[0]","w-full",3,"src"],[1,"absolute","bottom-[-0.5rem]","flex","h-[1.6rem]","items-center","justify-center","rounded-[1rem]","bg-[#F2FF40]","px-[0.5rem]","lg:relative","lg:bottom-auto"],[1,"text-[0.9rem]","font-400","leading-[1.2rem]","text-black"]],template:function(t,i){t&1&&(r(0,"div",1)(1,"div",2)(2,"div",3),p(3,Ii,2,4,"img",4)(4,Ai,1,0,"div",5),p(5,Mi,1,1,"ng-container",6),s(),r(6,"div",7)(7,"span",8),d(8),s(),p(9,Pi,1,1,"ng-container",6),s()(),p(10,Oi,1,1,"img",9)(11,wi,2,4,"img",9),r(12,"div",10)(13,"div",11),h(14,"i",12),r(15,"span",13),d(16),s()(),r(17,"span",14),d(18),s()(),p(19,Ri,2,3,"img",15),s(),Ee(20,Ni,3,1,"ng-template",null,0,ve)),t&2&&(u("ngClass",i.cardType()==="gold"?"bg-[linear-gradient(180deg,#1C2236_0%,#483B33_100%)] lg:bg-[linear-gradient(180deg,#1C2236_0%,#2C3551_100%)]":i.cardType()==="silver"?"bg-[linear-gradient(180deg,#1C2236_0%,#333D48_100%)] lg:bg-[linear-gradient(180deg,#1C2236_0%,#2C3551_100%)]":i.cardType()==="bronze"?"bg-[linear-gradient(180deg,#1C2236_0%,#483B33_100%)] lg:bg-[linear-gradient(180deg,#1C2236_0%,#2C3551_100%)]":"bg-[linear-gradient(180deg,#1C2236_0%,#2C3551_100%)]"),a(3),_(i.displayData().user?3:4),a(2),_(i.isLg()?-1:5),a(3),M(i.displayData().username),a(),_(i.isLg()?9:-1),a(),_(i.displayData().itemImage?10:i.displayData().item?11:-1),a(3),u("ngClass",i.cardType()==="gold"?"bg-[rgba(181,159,96,0.70)] !text-[#FFEEB7]":i.cardType()==="silver"?"bg-[rgba(96,159,181,0.70)] !text-[#DAF3FF]":i.cardType()==="bronze"?"bg-[rgba(181,126,96,0.70)] !text-[#FFDDB7]":"!bg-[rgba(104,113,137,0.70)] !text-[#F0F5FF]"),a(3),M(i.displayData().winAmount),a(2),M(i.displayData().itemName),a(),_(i.cardType()!=="normal"?19:-1));},dependencies:[B,ke,ie,Be,ue],styles:[`.gun-mask[_ngcontent-%COMP%]{-webkit-mask-image:linear-gradient(136deg,#D9D9D9 62.31%,rgba(115,115,115,0) 89.61%);mask-image:linear-gradient(136deg,#d9d9d9 62.31%,#73737300 89.61%)}
2/*# sourceMappingURL=last-wins-card.component-5CPHN3QE.css.map */`],changeDetection:0});}}return n;})();var Di=(n,l)=>l.id;function Fi(n,l){if(n&1&&(r(0,"span",15),d(1),s()),n&2){let e=c(),t=e.$implicit,i=e.$index,o=c();u("ngClass",o.activeIndex()===i?"text-[#151A2B]":"text-[#ACBBE2]"),a(),M(t.label);}}function Li(n,l){if(n&1){let e=R();r(0,"button",13),E("click",function(){let i=v(e).$index,o=c();return y(o.toggleFilter(i));}),r(1,"div",14),p(2,Fi,2,2,"span",15),h(3,"i",16),s()();}if(n&2){let e=l.$implicit,t=l.$index,i=c();
2u("ngClass",i.activeIndex()===t?"bg-[linear-gradient(180deg,#7388CB_0%,#C1D3FF_100%)]":"before:bg-[linear-gradient(180deg,#282E44_0%,#2E364D_100%)]"),a(),u("ngClass",i.activeIndex()===t?"border-white-120 border-[0.2rem] border-solid":"border-transparent"),a(),_(i.isLg()?-1:2),a(),pt(_t("icon_new ",e.icon," text-[1.8rem] custom-transition-all")),u("ngClass",i.activeIndex()===t?"!text-[#151A2B]":"!text-[#ACBBE2]");}}function Gi(n,l){if(n&1){let e=R();r(0,"a",17),E("click",function(){v(e);let i=c();return y(i.openHistory());}),r(1,"div",18),h(2,"i",19),r(3,"span",20),b(4,1),s()()();}}function Bi(n,l){if(n&1&&h(0,"last-wins-card",12),n&2){let e=l.$implicit;u("game",e);}}var ni=(()=>{class n{constructor(){this.activeIndex=T(0),this.chickenRoadState=f(W),this.router=f(Tt),this.authState=f(Y),this.displayedGames=C(()=>this.activeIndex()===0?this.chickenRoadState.allGames():this.chickenRoadState.topGames()),this.filterButtons=[{label:"All",value:"all",icon:"icon_AllLive"},{label:"The best",value:"best",icon:"icon_cup"}],this.mediaService=f($),this.isLg=z(this.mediaService.mediaQuery("max","lg"));}toggleFilter(e){this.activeIndex.set(e);}openHistory(){this.router.navigate(["/chicken-road/history"]);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["last-wins"]],hostAttrs:[1,"px-[1.4rem]"],decls:14,vars:1,consts:()=>{let e;e="Recent wins";let t;return t="History",[e,t,[1,"flex","w-full","flex-col","space-y-[1rem]","lg:space-y-[0.8rem]"],[1,"flex","w-full","items-center","justify-between"],[1,"flex","items-center","space-x-[0.8rem]","text-white","opacity-80","lg:space-x-[0.6rem]"],[1,"icon_new","icon_Award","text-[2.8rem]"],[1,"text-[1.8rem]","font-400","leading-[2.4rem]","lg:max-w-[8.5rem]","lg:text-[1.4rem]","lg:leading-[1.6rem]"],[1,"flex","items-center","gap-[1rem]"],[1,"flex","h-[4.4rem]","w-[22.7rem]","items-center","space-x-[0.1rem]","rounded-[1.2rem]","bg-[#151A2B]","p-[0.4rem]","lg:w-[8rem]","lg:space-x-0"],["type","button",1,"group","flex","h-full","w-full","items-center","justify-center","overflow-hidden","rounded-[1rem]","custom-transition-bg",3,"ngClass"],[1,"group","flex","h-[4.4rem]","items-center","rounded-[1rem]","bg-[linear-gradient(180deg,rgba(69,85,151,0.32)_0%,rgba(99,121,195,0.32)_100%)]","cursor-pointer"],[1,"cards-container","flex","items-center","space-x-[0.8rem]","overflow-x-auto","lg:w-full","lg:flex-col","lg:space-x-0","lg:space-y-[0.2rem]","lg:overflow-y-auto","lg:overflow-x-hidden"],[3,"game"],["type","button",1,"group","flex","h-full","w-full","items-center","justify-center","overflow-hidden","rounded-[1rem]","custom-transition-bg",3,"click","ngClass"],[1,"flex","h-full","w-full","items-center","justify-center","space-x-[0.6rem]","rounded-[1rem]","custom-transition-all","lg:space-x-0",3,"ngClass"],[1,"text-[1.3rem]","font-400","leading-[1.8rem]","custom-transition-all",3,"ngClass"],[3,"ngClass"],[1,"group","flex","h-[4.4rem]","items-center","rounded-[1rem]","bg-[linear-gradient(180deg,rgba(69,85,151,0.32)_0%,rgba(99,121,195,0.32)_100%)]","cursor-pointer",3,"click"],[1,"flex","h-full","items-center","gap-[0.5rem]","rounded-[1rem]","border-[0.2rem]","border-solid","border-[rgba(99,128,255,0.08)]","pl-[1.2rem]","pr-[1.4rem]"],[1,"icon_new","icon_history","text-[1.8rem]","!text-[#CDDBFF]"],[1,"text-[1.3rem]","font-400","leading-[1.8rem]","text-[#CDDBFF]"]];},template:function(t,i){t&1&&(r(0,"div",2)(1,"div",3)(2,"div",4),h(3,"i",5),r(4,"span",6),b(5,0),s()(),r(6,"div",7)(7,"div",8),V(8,Li,4,7,"button",9,ge),s(),p(10,Gi,5,0,"a",10),s()(),r(11,"div",11),V(12,Bi,1,1,"last-wins-card",12,Di),s()()),t&2&&(a(8),K(i.filterButtons),a(2),_(i.authState.isAuthenticated()?10:-1),a(2),K(i.displayedGames()));},dependencies:[B,ii],styles:[`.cards-container[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.cards-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}
3/*# sourceMappingURL=last-wins.component-22VBEKXI.css.map */`],changeDetection:0});}}return n;})();var zi=n=>({"pointer-events-none opacity-30":n});function $i(n,l){if(n&1&&pe(0,5),n&2){c();let e=_e(7);u("ngTemplateOutlet",e);}}function Hi(n,l){if(n&1){let e=R();r(0,"button",8),E("click",function(){let i=v(e).$index,o=c();return y(o.setDifficulty(i));}),r(1,"div",9)(2,"span",10),d(3),s()()();}if(n&2){let e=l.$implicit,t=l.$index,i=c();
3u("ngClass",i.selectedIndex()===t?"bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)]":"custom-transition-all custom-transition-bg before:bg-[linear-gradient(180deg,rgba(45,44,52,0.70)_0%,#302F37_100%)]"),a(),u("ngClass",i.selectedIndex()===t?"border-[0.2rem] border-solid border-white-120":"border-[0.2rem] border-solid border-transparent hover:border-[rgba(80,79,89,0.20)]"),a(),u("ngClass",i.selectedIndex()===t?"text-[#37362C]":"text-white opacity-70"),a(),M(e.title);}}function Ui(n,l){if(n&1&&pe(0,5),n&2){c();let e=_e(7);u("ngTemplateOutlet",e);}}function Wi(n,l){n&1&&(r(0,"span",12),b(1,1),s());}function Vi(n,l){n&1&&(r(0,"span"),b(1,2),s());}function Ki(n,l){n&1&&(r(0,"span"),b(1,3),s());}function ji(n,l){if(n&1&&(r(0,"div",11),p(1,Wi,2,0,"span",12),r(2,"div",13)(3,"span",14),p(4,Vi,2,0,"span")(5,Ki,2,0,"span"),s(),r(6,"div",15)(7,"span",16),d(8),s(),h(9,"img",17),F(10,"staticAssetUrl"),s()()()),n&2){let e=c();a(),_(e.isLg()?-1:1),a(3),_(e.settingsState.streamerMode()?5:4),a(4),D("x",e.maxMultiplier().toFixed(2)),a(),u("src",J(10,4,"/assets/images/chicken-road/light.webp"),O);}}var oi=(()=>{class n{constructor(){this.chickenRoadState=f(W),this.mediaService=f($),this.settingsState=f(X),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.disabled=C(()=>this.chickenRoadState.currentGame()?.status===S.IN_PROGRESS),this.difficultyButtons=[{title:"Easy",value:He.EASY,maxMultiplier:"12.00x"},{title:"Medium",value:He.MEDIUM,maxMultiplier:"48.00x"},{title:"Hard",value:He.HARD,maxMultiplier:"256.00x"}],this.selectedIndex=C(()=>{let e=this.chickenRoadState.selectedMode();return this.difficultyButtons.findIndex(t=>t.value===e);}),this.maxMultiplier=C(()=>{let e=this.chickenRoadState.selectedMode();return Ue[e];});}setDifficulty(e){if(this.disabled())return;let t=this.difficultyButtons[e];t&&this.chickenRoadState.selectedMode.set(t.value);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["difficulty-game"]],decls:8,vars:5,consts:()=>{let e;e="Difficulty";let t;t="Max. win";let i;return i="max. DISTANCE",[["maxBet",""],e,t,i,[1,"glassContainer","flex","h-[10.8rem]","w-[28rem]","flex-col","space-y-[1rem]","px-[1.6rem]","lg:h-[4.8rem]","lg:w-full","lg:flex-row","lg:justify-between","lg:space-y-0","lg:p-[0.6rem]","lg:pr-[0.8rem]"],[3,"ngTemplateOutlet"],[1,"flex","h-[4.4rem]","w-full","items-center","space-x-[0.1rem]","rounded-[1.2rem]","bg-[rgba(49,49,56,0.70)]","p-[0.4rem]","lg:h-[3.6rem]","lg:w-[20.8rem]","lg:shrink-0","lg:rounded-[1rem]",3,"ngClass"],["type","button",1,"group","flex","h-full","w-full","items-center","justify-center","overflow-hidden","rounded-[1rem]","custom-transition-bg",3,"ngClass"],["type","button",1,"group","flex","h-full","w-full","items-center","justify-center","overflow-hidden","rounded-[1rem]","custom-transition-bg",3,"click","ngClass"],[1,"flex","h-full","w-full","items-center","justify-center","space-x-[0.6rem]","rounded-[1rem]","custom-transition-all",3,"ngClass"],[1,"text-[1.2rem]","font-400","leading-[1.6rem]","custom-transition-all","lg:text-[1.1rem]","lg:leading-[1.4rem]",3,"ngClass"],[1,"flex","w-full","items-center","justify-between","lg:justify-end"],[1,"text-[1.2rem]","font-400","leading-[1.6rem]","text-white","opacity-80"],[1,"flex","items-center","space-x-[0.7rem]","lg:flex-col-reverse","lg:items-end","lg:space-x-0","lg:space-y-[0.2rem]","lg:space-y-reverse"],[1,"text-[0.9rem]","font-400","uppercase","leading-[1.2rem]","text-white","opacity-60","lg:text-[0.8rem]"],[1,"relative","flex","h-[2.2rem]","items-center","justify-center","overflow-hidden","rounded-[1.8rem]","border-[0.2rem]","border-solid","border-[rgba(246,255,124,0.42)]","bg-[linear-gradient(180deg,#E2BB1F_0%,#FFD847_61.06%,#E1B436_100%)]","px-[0.6rem]","shadow-[0_3px_11px_0_rgba(255,198,30,0.38)]","lg:h-[1.8rem]"],[1,"z-[1]","text-[1.1rem]","font-450","leading-[1.4rem]","text-black","opacity-80","lg:text-[1rem]","lg:font-400"],[1,"pointer-events-none","absolute","right-0","z-[0]",3,"src"]];},template:function(t,i){t&1&&(r(0,"div",4),p(1,$i,1,1,"ng-container",5),r(2,"div",6),V(3,Hi,4,4,"button",7,ge),s(),p(5,Ui,1,1,"ng-container",5),s(),Ee(6,ji,11,6,"ng-template",null,0,ve)),t&2&&(a(),_(i.isLg()?-1:1),a(),u("ngClass",te(3,zi,i.disabled())),a(),K(i.difficultyButtons),a(2),_(i.isLg()?5:-1));},dependencies:[B,ke,ue],styles:[`.glassContainer[_ngcontent-%COMP%]{display:flex;background:#15181e59;align-items:center;justify-content:center;border-radius:2.4rem;box-shadow:inset 3px 3px 5px #0000001a;backdrop-filter:blur(8px)}@media(max-width:992px){.glassContainer[_ngcontent-%COMP%]{border-radius:1.4rem}}.glassContainer[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:2.4rem;box-shadow:inset 2px 2px 0 -1.5px #ffffff38,inset 0 0 3px #ffffff14}@media(max-width:992px){.glassContainer[_ngcontent-%COMP%]:before{border-radius:1.4rem}}.glassContainer[_ngcontent-%COMP%]:after{content:"";position:absolute;z-index:-1;inset:0;border-radius:2.4rem;backdrop-filter:blur(10px);filter:url(#container-glass);overflow:hidden;isolation:isolate}@media(max-width:992px){.glassContainer[_ngcontent-%COMP%]:after{border-radius:1.4rem}}
4/*# sourceMappingURL=difficulty-game.component-5M3GHUHV.css.map */`],changeDetection:0});}}return n;})();var Ji=n=>({"pointer-events-none opacity-30":n});function Xi(n,l){n&1&&(r(0,"span"),b(1,0),s());}function Yi(n,l){n&1&&(r(0,"span"),b(1,1),s());}function qi(n,l){n&1&&h(0,"i",11);}function Qi(n,l){n&1&&h(0,"i",12);}function Zi(n,l){if(n&1){let e=R();r(0,"div",3)(1,"span",9),p(2,Xi,2,0,"span")(3,Yi,2,0,"span"),s(),r(4,"button",10),E("click",function(){v(e);let i=c();return y(i.toggleEditor());}
4),p(5,qi,1,0,"i",11)(6,Qi,1,0,"i",12),s()();}if(n&2){let e=c();a(2),_(e.settingsState.streamerMode()?3:2),a(3),_(e.editorOpened?6:5);}}function en(n,l){if(n&1){let e=R();r(0,"button",16),E("click",function(){let i=v(e).$implicit,o=c(2);return y(o.setFastAmount(i));}),h(1,"i",17),r(2,"span",18),d(3),s()();}if(n&2){let e=l.$implicit,t=c(2);u("ngClass",t.isAmountSelected(e)?"bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)] !text-[#37362C]":"bg-[#1D1C23] !text-white custom-transition-all hover:bg-[#272629]"),a(),u("ngClass",t.isAmountSelected(e)?"!text-[#37362C]":"opacity-80"),a(),u("ngClass",t.isAmountSelected(e)?"!text-[#37362C]":"opacity-80"),a(),M(e);}}function tn(n,l){if(n&1){let e=R();r(0,"div",8),V(1,en,4,4,"button",13,ct),r(3,"button",14),E("click",function(){v(e);let i=c();return y(i.setFastAmount("max"));}),r(4,"span",15),d(5,"Max"),s()()();}if(n&2){let e=c();a(),K(e.fastAmounts()),a(2),u("ngClass",e.isMaxBet()?"bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)] !text-[#37362C]":"bg-[#1D1C23] !text-white custom-transition-all hover:bg-[#272629]"),a(),u("ngClass",e.isMaxBet()?"!text-[#37362C]":"opacity-80");}}function nn(n,l){if(n&1&&h(0,"input",23),n&2){let e=l.$implicit,t=l.$index,i=c(3);Pe("is-invalid",e.invalid&&e.touched),u("formControlName",t)("disabled",i.disabled());}}function on(n,l){if(n&1){let e=R();r(0,"div",19),V(1,nn,1,4,"input",20,ge),r(3,"button",21),E("click",function(){v(e);let i=c(2);return y(i.toggleEditor());}),h(4,"i",22),s()();}if(n&2){let e=c(2);a(),K(e.amountsForm.controls);}}function an(n,l){if(n&1&&p(0,on,5,0,"div",19),n&2){let e=c();_(e.form&&e.amountsForm?0:-1);}}var ai=.25,ri=(()=>{class n{constructor(){this.destroyRef=f(he),this.cdr=f(ye),this.authState=f(Y),this.mediaService=f($),this.chickenRoadState=f(W),this.settingsState=f(X),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.disabled=C(()=>this.chickenRoadState.currentGame()?.status===S.IN_PROGRESS),this.currentBetAmount=C(()=>this.authState.betAmountUsd()),this.isMaxBet=C(()=>{let e=this.authState.user();if(!e)return!1;let t=Number(e.balanceUsd)+Number(e.wagerBalanceUsd);return Math.abs(this.currentBetAmount()-t)<.01;}),this.fastAmounts=T([1,2,5,10]),this.betAmount=T(null),this.editorOpened=!1,this.localStorageEffect=kt("chicken-road-amounts",{fastAmounts:this.fastAmounts,betAmount:this.betAmount}),this.buildForm();}setFastAmount(e){if(!this.disabled()){if(e==="max"){let t=this.authState.user();if(t){let i=Number(t.balanceUsd)+Number(t.wagerBalanceUsd);this.authState.setBetAmount(i),this.betAmount.set("max");}}else this.authState.setBetAmount(e),this.betAmount.set(e);this.cdr.markForCheck();}}isAmountSelected(e){return Math.abs(this.currentBetAmount()-e)<.01;}onBetAmountInput(e){if(this.disabled())return;let t=e.target,i=parseFloat(t.value);!isNaN(i)&&i>0?(this.authState.setBetAmount(i),this.betAmount.set(null),this.cdr.markForCheck()):(t.value===""||isNaN(i))&&(this.authState.setBetAmount(0),this.betAmount.set(null),this.cdr.markForCheck());}onBetAmountBlur(){this.authState.betAmountUsd()<ai&&(this.authState.setBetAmount(ai),this.betAmount.set(null),this.cdr.markForCheck());}toggleEditor(){this.editorOpened=!this.editorOpened,this.editorOpened&&this.buildForm(),this.cdr.markForCheck();}buildForm(){let e=[];this.fastAmounts().forEach(t=>{let i=new Dt(t,[Xe.min(.01),Xe.max(9999)]);e.push(i);}),this.form=new Nt({amounts:new Lt(e)}),this.amountsForm=this.form.get("amounts"),this.form.valueChanges.pipe(it(150),ae(this.destroyRef)).subscribe(t=>{this.form.valid&&this.setAmounts(t.amounts);});}setAmounts(e){let t=[...this.fastAmounts()];e.forEach((i,o)=>{i>0&&o<t.length&&(t[o]=i);}),this.fastAmounts.set(t);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["bet-creator-ratios"]],hostAttrs:[1,"h-full","lg:w-full"],decls:8,vars:8,consts:()=>{let e;e="Bet amount";let t;return t="Number of points",[e,t,[1,"flex","w-[33.2rem]","flex-col","justify-between","space-y-[0.8rem]","lg:w-full","lg:space-y-[1.2rem]"],[1,"flex","items-center","justify-between"],[1,"flex","h-[5.2rem]","w-full","items-center","rounded-[1rem]","bg-[rgba(0,0,0,0.64)]","p-[0.6rem]","pl-[1rem]",3,"formGroup","ngClass"],[1,"flex","h-full","w-[9.2rem]","items-center","gap-[0.4rem]","lg:w-[4.4rem]"],[1,"icon","icon_coin-c","px-[0.2rem]","text-[1.8rem]","text-white"],["placeholder","0.25","type","number","step","0.01","min","0.25",1,"z-[1]","w-[6rem]","bg-transparent","text-[1.4rem]","font-400","leading-[2rem]","text-white","placeholder:font-400","placeholder:text-white","lg:w-[5.6rem]","lg:text-[1.4rem]","lg:leading-[2rem]",3,"input","blur","value","disabled"],[1,"flex","h-full","w-full","items-end","justify-end","space-x-[0.1rem]"],[1,"text-[1.2rem]","font-400","leading-[1.6rem]","text-white","opacity-80"],[1,"flex","items-center","justify-center","opacity-50","custom-transition","hover:opacity-80",3,"click"],[1,"icon_new","icon_setting","text-[2rem]","!text-[#F3E4D5]"],[1,"icon_new","icon_Close","text-[2rem]","!text-[#F3E4D5]"],[1,"group","relative","flex","h-full","w-[4.4rem]","items-center","justify-center","space-x-[0.2rem]","rounded-[0.4rem]","first:rounded-l-[0.8rem]",3,"ngClass"],[1,"relative","flex","h-full","w-[4.4rem]","items-center","justify-center","space-x-[0.2rem]","rounded-[0.4rem]","rounded-r-[0.8rem]",3,"click","ngClass"],[1,"text-[1.2rem]","font-400","leading-[1.6rem]","text-white",3,"ngClass"],[1,"group","relative","flex","h-full","w-[4.4rem]","items-center","justify-center","space-x-[0.2rem]","rounded-[0.4rem]","first:rounded-l-[0.8rem]",3,"click","ngClass"],[1,"icon","icon_coin-c","text-[1.2rem]",3,"ngClass"],[1,"text-[1.2rem]","font-400","leading-[1.6rem]",3,"ngClass"],["formArrayName","amounts",1,"flex","h-full","w-full","justify-end","space-x-[0.1rem]"],["type","number","autocomplete","off",1,"relative","z-10","h-full","w-[4.4rem]","rounded-[0.4rem]","border-[0.2rem]","border-solid","border-[#302E37]","bg-[#24222A]","text-center","text-[1.2rem]","font-400","leading-[1.6rem]","text-white","opacity-90","first:rounded-l-[0.8rem]",3,"is-invalid","formControlName","disabled"],["type","button",1,"z-[1]","flex","h-full","w-[4.4rem]","flex-col","items-center","justify-center","rounded-[0.4rem]","rounded-r-[0.8rem]","bg-[#3D3B44]","!text-[#DCD2CB]","custom-transition","hover:bg-[#43414A]","hover:!text-[#F5EAE2]",3,"click"],[1,"icon_new","icon_check","!text-[2rem]"],["type","number","autocomplete","off",1,"relative","z-10","h-full","w-[4.4rem]","rounded-[0.4rem]","border-[0.2rem]","border-solid","border-[#302E37]","bg-[#24222A]","text-center","text-[1.2rem]","font-400","leading-[1.6rem]","text-white","opacity-90","first:rounded-l-[0.8rem]",3,"formControlName","disabled"]];},template:function(t,i){t&1&&(r(0,"div",2),p(1,Zi,7,2,"div",3),r(2,"div",4)(3,"div",5),h(4,"i",6),r(5,"input",7),E("input",function(m){return i.onBetAmountInput(m);})("blur",function(){return i.onBetAmountBlur();}),s()(),p(6,tn,6,2,"div",8)(7,an,1,1),s()()),t&2&&(a(),_(i.editorOpened&&i.isLg()?-1:1),a(),u("formGroup",i.form)("ngClass",te(6,Ji,i.disabled())),a(3),u("value",i.currentBetAmount())("disabled",i.disabled()),a(),_(i.editorOpened?7:6));},dependencies:[$t,Ot,Ft,wt,Rt,zt,Bt,Gt,B],encapsulation:2,changeDetection:0});}}return n;})();function rn(n,l){n&1&&(A(0,"span",23),b(1,0),w(),A(2,"span",24),b(3,1),w());}function sn(n,l){n&1&&(A(0,"span",23),b(1,2),w(),A(2,"span",24),b(3,3),w());}function ln(n,l){n&1&&G(0,"i",8);}function mn(n,l){n&1&&G(0,"i",9);}function cn(n,l){if(n&1&&(G(0,"img",11),F(1,"itemImage")),n&2){let e=c();j("src",Q(1,2,e.data.winItem.id,"large"),O)("alt",e.data.winItem.marketName);}}function dn(n,l){if(n&1&&d(0),n&2){let e=c();D(" x",e.data.multiplier.toFixed(2)," ");}}function un(n,l){if(n&1&&d(0),n&2){let e=c();D(" ",e.data.multiplier.toFixed(2)," ");}}var xe=(()=>{class n{constructor(){this.dialogRef=f(bt),this.data=f(Et),this.settingsState=f(X),this.duration=5e3,this.progress=T(0),this.timer=C(()=>Math.ceil(5*(1-this.progress()))),this.isJackpot=C(()=>this.data.currentStep===20);}ngOnInit(){this.startTimer();}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId);}startTimer(){this.startTime=Date.now();let e=()=>{if(!this.startTime)return;let t=Date.now()-this.startTime,i=Math.min(t/this.duration,1);if(this.progress.set(i),i>=1){this.dialogRef.close();return;}this.animationFrameId=requestAnimationFrame(e);};this.animationFrameId=requestAnimationFrame(e);}close(){this.dialogRef.close();}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["win-dialog"]],decls:27,vars:16,consts:()=>{let e;e="You won!";let t;t="Claim your winnings!";let i;i="Congratulations!";let o;return o="Claim your cashout!",[e,t,i,o,[1,"relative","flex","h-[57rem]","w-[67.8rem]","flex-col","items-center","rounded-[2.4rem]","border-[0.2rem]","border-solid","border-[rgba(127,127,127,0.09)]","bg-[rgba(23,25,31,0.80)]","lg:h-[34rem]","lg:w-[33.2rem]"],[1,"z-[1]","mt-[10.6rem]","flex","flex-col","items-center","space-y-[1.4rem]","lg:mt-[6rem]","lg:space-y-[2rem]"],[1,"flex","flex-col","items-center"],[1,"flex","h-[4.4rem]","items-center","space-x-[0.4rem]","rounded-[2.4rem]","bg-[#F2FF40]","px-[1.2rem]","lg:h-[3rem]","lg:rounded-[2.6rem]","lg:px-[0.8rem]"],[1,"icon","icon_coin-c","text-[1.8rem]","!text-black","lg:text-[1.6rem]"],[1,"icon_new","icon_gem","text-[1.8rem]","!text-black","lg:text-[1.6rem]"],[1,"text-[1.6rem]","font-450","leading-[2.4rem]","text-black","lg:text-[1.3rem]","lg:leading-[1.8rem]"],["loading","lazy",1,"h-[13rem]","w-[18.2rem]","object-contain","lg:h-[9.1rem]","lg:w-[13rem]",3,"src","alt"],[1,"absolute","bottom-[
414.8rem]","left-1/2","z-[1]","-translate-x-1/2","text-[1.5rem]","font-450","leading-[2.2rem]","text-white","lg:bottom-[7.2rem]","lg:text-[1.1rem]","lg:font-400","lg:leading-[1.8rem]"],[1,"pointer-events-none","absolute","bottom-0","z-[0]","h-[52.1rem]","w-[67.8rem]","lg:h-[26.4rem]","lg:w-[35.4rem]",3,"src"],[1,"pointer-events-none","absolute","left-1/2","top-[-10.5rem]","z-[0]","w-[22.1rem]","-translate-x-1/2","lg:top-[-6.5rem]","lg:w-[13rem]",3,"src"],["type","button","aria-label","Close",1,"absolute","right-[2.4rem]","top-[2.4rem]","z-[2]","flex","h-[3rem]","w-[3rem]","cursor-pointer","items-center","justify-center","rounded-full","bg-[rgba(37,38,47,0.5)]","transition-colors","hover:bg-[rgba(37,38,47,0.8)]","lg:right-[1.6rem]","lg:top-[1.6rem]",3,"click"],[1,"icon","icon_cross","text-[1.2rem]","text-white"],[1,"absolute","left-[2.4rem]","top-[2.4rem]","h-[3rem]","w-[3rem]","lg:left-[1.6rem]","lg:top-[1.6rem]"],["viewBox","0 0 32 32",1,"h-full","w-full","-rotate-90","transform"],["cx","16","cy","16","r","14","fill","none","stroke","#25262F","stroke-width","2","opacity","0.3",1,"timer-circle-bg"],["cx","16","cy","16","r","14","fill","none","stroke","#6A6C75","stroke-width","3","stroke-linecap","round",1,"timer-circle-progress"],[1,"absolute","inset-0","flex","items-center","justify-center"],[1,"text-[1.1rem]","font-400","leading-[1.6rem]","text-white","opacity-80"],[1,"font-rockstar","text-[3.6rem]","font-500","leading-[4.4rem]","lg:text-[2.4rem]","lg:font-400","lg:leading-[3.2rem]"],[1,"text-[1.5rem]","font-325","leading-[2.2rem]","text-white","lg:text-[1.3rem]","lg:leading-[1.8rem]"]];},template:function(t,i){t&1&&(A(0,"div",4)(1,"div",5)(2,"div",6),p(3,rn,4,0)(4,sn,4,0),w(),A(5,"div",7),p(6,ln,1,0,"i",8)(7,mn,1,0,"i",9),A(8,"span",10),d(9),w()(),p(10,cn,2,5,"img",11),w(),A(11,"span",12),p(12,dn,1,1)(13,un,1,1),w(),G(14,"img",13),F(15,"staticAssetUrl"),G(16,"img",14),F(17,"staticAssetUrl"),A(18,"button",15),Ce("click",function(){return i.close();}),G(19,"i",16),w(),A(20,"div",17),Me(),A(21,"svg",18),G(22,"circle",19)(23,"circle",20),w(),ot(),A(24,"div",21)(25,"span",22),d(26),w()()()()),t&2&&(a(3),_(i.isJackpot()?3:4),a(3),_(i.settingsState.streamerMode()?7:6),a(3),M(i.data.winAmount.toFixed(2)),a(),_(i.data.winItem?10:-1),a(2),_(i.settingsState.streamerMode()?13:12),a(2),j("src",J(15,12,"/assets/images/chicken-road/win-dialog/podium.webp"),O),a(2),j("src",J(17,14,"/assets/images/chicken-road/win-dialog/logo.webp"),O),a(7),ne("stroke-dasharray",87.96)("stroke-dashoffset",-87.96*i.progress()),a(3),D("",i.timer(),"s"));},dependencies:[gt,ie,ue],encapsulation:2,changeDetection:0});}}return n;})();function pn(n,l){if(n&1&&(A(0,"span",1),d(1),w()),n&2){let e=c();a(),M(e.buttonText());}}function _n(n,l){n&1&&(A(0,"span",2),Me(),A(1,"svg",3),G(2,"circle",4)(3,"path",5),w()());}var Ze=(()=>{class n{constructor(){this.dialog=f(de),this.authState=f(Y),this.chickenRoadState=f(W),this.inventoryState=f(Se),this.noBalanceService=f(qt),this.notifier=f(Le),this.MIN_BET_AMOUNT_USD=.25,this.disabled=C(()=>{if(!this.authState.isAuthenticated())return!1;let e=this.chickenRoadState.currentGame(),t=this.chickenRoadState.isCreatingGame(),i=this.chickenRoadState.isMakingStep(),o=this.chickenRoadState.isAnimating();if(t||i||o)return!0;if(e?.status===S.IN_PROGRESS)return!this.chickenRoadState.canMakeStep();let m=this.authState.betType();if(m===re.BALANCE){let g=this.authState.betAmountUsd();if(!g||g<=0)return!0;}return m===re.INVENTORY&&this.inventoryState.selectedIds().length===0?!0:!this.chickenRoadState.canCreateGame();}),this.buttonText=C(()=>{if(!this.authState.isAuthenticated())return"Authorization";let e=this.chickenRoadState.currentGame(),t=this.chickenRoadState.isCreatingGame(),i=this.chickenRoadState.isMakingStep();return t||i?"Next":e&&e.status===S.IN_PROGRESS?"Next":e&&e.status===S.LOST?"Play again":"Start game";}),this.isLoading=C(()=>{let e=this.chickenRoadState.isCreatingGame(),t=this.chickenRoadState.isMakingStep(),i=this.chickenRoadState.isAnimating();return e||t||i;});}placeBet(){if(!this.authState.isAuthenticated()){this.openLoginDialog();return;}if(this.disabled())return;let e=this.chickenRoadState.currentGame();if(e&&e.status===S.IN_PROGRESS){this.chickenRoadState.makeStep().subscribe();return;}if(!((!e||e.status===S.WON||e.status===S.LOST)&&!this.noBalanceService.checkBalanceOrShowDialog())){if(e&&(e.status===S.WON||e.status===S.LOST)){this.startNewGame();return;}this.startNewGame();}}startNewGame(){let e=this.chickenRoadState.currentGame();e&&(e.status===S.WON||e.status===S.LOST)&&(this.chickenRoadState.currentGame.set(null),this.chickenRoadState.reset());let t=this.authState.betType(),i=this.authState.betAmountUsd();if(t===re.BALANCE){if(!i||i<=0)return;if(i<this.MIN_BET_AMOUNT_USD){this.notifier.error("Bet amount is below the minimum. Minimum bet amount: 0.25 Coin");return;}this.chickenRoadState.createGame(i).subscribe();}else if(t===re.INVENTORY){let o=this.inventoryState.selectedIds(),m=this.inventoryState.selectedInventoryAmountUsd();if(o.length===0)return;if(m<this.MIN_BET_AMOUNT_USD){this.notifier.error("Bet amount is below the minimum. Minimum bet amount: 0.25 Coin");return;}this.chickenRoadState.createGame(void 0,o).subscribe();}}openModal(){this.disabled()||this.dialog.open(xe);}openLoginDialog(){Xt(this.dialog,{data:{redirectToMain:!1,hideTitle:!1,showTermsText:!1}});}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["bet-creator"]],hostAttrs:[1,"h-full","lg:w-full"],decls:3,vars:3,consts:[[1,"relative","flex","h-full","w-[17.6rem]","items-center","justify-center","rounded-[1.2rem]","bg-[#F8CF49]","!text-[#110D0A]","custom-transition-all","hover:bg-[#FFDF74]","hover:!text-[#844129]","disabled:pointer-events-none","disabled:bg-[#826C25]","disabled:!text-[#5A3F2C]","lg:w-full",3,"click","disabled"],[1,"text-[1.4rem]","font-450","uppercase","leading-[2rem]"],[1,"pointer-events-none","absolute","
4inset-0","z-20","grid","place-items-center"],["viewBox","0 0 24 24","aria-hidden","true",1,"h-[2rem]","w-[2rem]","animate-spin","text-[#844129]"],["cx","12","cy","12","r","10","fill","none","stroke","currentColor","stroke-width","3",1,"opacity-25"],["d","M12 2a10 10 0 0 1 10 10h-3A7 7 0 0 0 12 5V2z","fill","currentColor",1,"opacity-100"]],template:function(t,i){t&1&&(A(0,"button",0),Ce("click",function(){return i.placeBet();}),p(1,pn,2,1,"span",1),p(2,_n,4,0,"span",2),w()),t&2&&(j("disabled",i.disabled()),a(),_(i.isLoading()?-1:1),a(),_(i.isLoading()?2:-1));},encapsulation:2,changeDetection:0});}}return n;})();var hn=(n,l,e)=>({"group cursor-pointer bg-[#C0F238] hover:bg-[#DEFF72]":n,"space-y-[0.4rem] border-[0.2rem] border-dashed border-[rgba(233,210,169,0.14)] bg-[rgba(233,210,169,0.09)]":l,"pointer-events-none opacity-50":e});function fn(n,l){n&1&&(r(0,"div",5)(1,"span",6),b(2,0),s(),r(3,"span",6),b(4,1),s()());}function gn(n,l){if(n&1&&(r(0,"span",7),d(1),s(),r(2,"div",8),h(3,"i",9),r(4,"span",10),d(5),s()()),n&2){let e=c();a(),M(e.buttonText()),a(4),M(e.potentialWin().toFixed(2));}}function Cn(n,l){}function Sn(n,l){n&1&&(r(0,"span"),b(1,2),s());}function xn(n,l){n&1&&(r(0,"span"),b(1,3),s());}function bn(n,l){if(n&1&&(r(0,"div",8),h(1,"i",11),r(2,"span",12),d(3),s()(),r(4,"span",13),p(5,Sn,2,0,"span")(6,xn,2,0,"span"),s()),n&2){let e=c(2);a(3),M(e.potentialWin().toFixed(2)),a(2),_(e.settingsState.streamerMode()?6:5);}}function En(n,l){if(n&1&&p(0,bn,7,2),n&2){let e=c();_(e.potentialWin()>0?0:-1);}}var si=(()=>{class n{constructor(){this.chickenRoadState=f(W),this.authState=f(Y),this.inventoryState=f(Se),this.dialog=f(de),this.settingsState=f(X),this.canEndGame=C(()=>this.isGameInProgress()?this.chickenRoadState.canEndGame():!1),this.disabled=C(()=>!this.canEndGame()||this.chickenRoadState.isEndingGame()||this.chickenRoadState.isAnimating()),this.isGameLost=C(()=>{let e=this.chickenRoadState.currentGame();return e&&e.status===S.LOST;}),this.isGameInProgress=C(()=>{let e=this.chickenRoadState.currentGame();return e&&(e.status===S.IN_PROGRESS||e.status===S.WON)&&e.currentStep>0;}),this.isGameNotStarted=C(()=>!this.chickenRoadState.currentGame()),this.isGameStartedWithoutSteps=C(()=>{let e=this.chickenRoadState.currentGame();return e&&e.status===S.IN_PROGRESS&&e.currentStep===0;}),this.potentialWin=C(()=>{if(this.chickenRoadState.currentGame())return this.chickenRoadState.potentialWin();let t=this.authState.betType(),i=this.chickenRoadState.selectedMode(),o=Ue[i],m=0;return t===Je.BALANCE?m=this.authState.betAmountUsd():t===Je.INVENTORY&&(m=this.inventoryState.selectedInventoryAmountUsd()),m*o;}),this.currentMultiplier=C(()=>this.chickenRoadState.currentMultiplier()),this.buttonText=C(()=>this.potentialWin()>0?"Claim":"");}resetGameState(){this.chickenRoadState.currentGame.set(null),this.chickenRoadState.reset(),this.chickenRoadState.isChickenReturningToStart.set(!1);}endGame(){this.disabled()||(this.chickenRoadState.isChickenReturningToStart.set(!0),this.chickenRoadState.endGame().subscribe(e=>{if(e&&e.game){let t=parseFloat(e.game.ratio||"0"),i=parseFloat(e.game.amount)*t,o=e.game.winItem||null,m=e.game.currentStep;this.settingsState.disableAnimations()?setTimeout(()=>{this.dialog.open(xe,{disableClose:!1,panelClass:"win-dialog-panel",data:{winAmount:i,multiplier:t,winItem:o,currentStep:m}}).closed.subscribe(()=>{setTimeout(()=>this.resetGameState(),50);});},200):setTimeout(()=>{this.dialog.open(xe,{disableClose:!1,panelClass:"win-dialog-panel",data:{winAmount:i,multiplier:t,winItem:o,currentStep:m}}).closed.subscribe(()=>{setTimeout(()=>this.resetGameState(),50);});},633);}}));}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["bet-take"]],hostAttrs:[1,"h-full","lg:w-full"],decls:5,vars:6,consts:()=>{let e;e="Oops, the chicken";let t;t="it burned :( )";let i;i="Potential win";let o;return o="Possible distance",[e,t,i,o,[1,"relative","flex","h-full","w-[13rem]","flex-col","items-center","justify-center","rounded-[1.2rem]","custom-transition-all","lg:w-full",3,"click","ngClass"],[1,"flex","flex-col","items-center","space-y-[0.4rem]"],[1,"text-[1.3rem]","font-400","leading-[1.8rem]","text-white","opacity-60"],[1,"text-[1.4rem]","font-450","uppercase","leading-[2rem]","text-[#233024]"],[1,"flex","items-center","space-x-[0.2rem]"],[1,"icon","icon_coin-c","text-[1.4rem]","!text-[#233024]","custom-transition-all","group-hover:text-[#323D27]"],[1,"text-[1.3rem]","font-400","leading-[1.8rem]","!text-[#233024]","custom-transition-all","group-hover:!text-[#323D27]"],[1,"icon","icon_coin-c","text-[1.4rem]","!text-white"],[1,"text-[1.3rem]","font-400","leading-[1.8rem]","text-white"],[1,"max-w-[6.8rem]","text-center","text-[0.9rem]","font-400","uppercase","leading-[1.2rem]","text-white","opacity-60","lg:max-w-full"]];},template:function(t,i){t&1&&(r(0,"div",4),E("click",function(){return i.endGame();}),p(1,fn,5,0,"div",5)(2,gn,6,2)(3,Cn,0,0)(4,En,1,1),s()),t&2&&(u("ngClass",we(2,hn,i.isGameInProgress(),i.isGameNotStarted()||i.isGameStartedWithoutSteps(),i.disabled())),a(),_(i.isGameLost()?1:i.isGameInProgress()?2:i.isGameStartedWithoutSteps()?3:i.isGameNotStarted()?4:-1));},dependencies:[B],encapsulation:2,changeDetection:0});}}return n;})();var Tn=(n,l,e)=>({"bg-selected":n,"!cursor-not-allowed opacity-50":l,skin_card:e}),vn=n=>({"dota2-skin-path":n});
4function yn(n,l){if(n&1&&(r(0,"span",4),d(1),F(2,"itemExterior"),s()),n&2){let e=c();a(),D(" ",Q(2,1,e.invItem.item.extra,e.invItem.item.appId)," ");}}function kn(n,l){n&1&&(r(0,"span",5),d(1,"ST"),s());}function In(n,l){n&1&&(r(0,"div",9),h(1,"i",11),s());}function An(n,l){n&1&&(r(0,"div",10),h(1,"div",12),r(2,"div",13),h(3,"i",14),s()());}var li=(()=>{class n{constructor(){this.isShopItem=!1,this.paymentsPage=!1,this.mediaService=f($),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.selectionToggle=new at(),this.SteamApp=Pt,this.isStattrak=!1,this.isSelected=!1;}set _invItem(e){this.invItem=e,this.setItemName();}set selectedIds(e){this.invItem&&(this.isSelected=e.includes(this.invItem.id||this.invItem.item.id));}toggleItem(){this.isDisabled&&!this.isSelected||(this.isSelected=!this.isSelected,this.selectionToggle.emit(this.isSelected));}setItemName(){Wt(this.invItem.item)?(this.itemName=this.invItem.item.extra.n[1],this.itemSubName=this.invItem.item.extra.n[0],this.isStattrak=this.invItem.item.extra.st):(this.itemName=this.invItem.item.marketName,this.itemSubName=Vt(this.invItem.item.extra,this.invItem.item.appId),this.isStattrak=!1);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["items-inventory-item"]],inputs:{_invItem:[0,"invItem","_invItem"],isShopItem:"isShopItem",isDisabled:"isDisabled",selectedIds:"selectedIds",paymentsPage:"paymentsPage"},outputs:{selectionToggle:"selectionToggle"},decls:14,vars:20,consts:()=>{let e;return e="Bonus item must be wagered once in Crash (bet on 3.5x), Wheel",[[1,"relative","flex","h-[10rem]","cursor-pointer","flex-col","items-start","justify-end","overflow-hidden","rounded-[1.2rem]","bg-[rgba(57,57,63,0.60)]","p-[1rem]","custom-transition-all",3,"click","ngClass"],["loading","lazy","fetchpriority","low",1,"mask-gradient-pic","withdraw-styles-img","absolute","left-1/2","top-[0.6rem]","h-[4.6rem]","w-[6.6rem]","-translate-x-1/2",3,"ngClass","src","alt"],[1,"z-[1]","flex","flex-col","lg:space-y-[0.2rem]"],[1,"flex","items-center","space-x-[0.3rem]","text-[1rem]","font-350","leading-[1.4rem]","lg:mb-[0.1rem]","lg:text-[0.9rem]","lg:leading-[1.2rem]"],[1,"text-[#D8C4AE]"],[1,"text-[#FF8F5F]"],[1,"max-w-[7.5rem]","truncate","text-[1.1rem]","font-350","leading-[1.4rem]","text-white-800","lg:max-w-[8rem]","lg:text-[1rem]","..."],[1,"mt-[0.4rem]","flex","items-center","lg:mt-[0.2rem]"],[1,"currency_USD","text-[1.1rem]","font-400","leading-[1.4rem]","text-[#FFDB95]","lg:text-[1rem]"],["tp",e,1,"absolute","bottom-[0.6rem]","right-[0.6rem]","text-[1rem]","!text-[#fac37c]"],[1,"border-animation"],[1,"icon","icon_gift"],[1,"absolute","left-0","top-0","h-full","w-full","rounded-[1.2rem]","border-[0.2rem]","border-solid","border-[#F8CF49]","custom-transition-all"],[1,"absolute","right-[0.6rem]","top-[0.6rem]","z-[11]"],[1,"icon_new","icon_check","text-[1.4rem]","!text-[#F8CF49]"]];},template:function(t,i){t&1&&(r(0,"div",0),E("click",function(){return i.toggleItem();}),h(1,"img",1),F(2,"itemImage"),r(3,"div",2)(4,"div",3),p(5,yn,3,4,"span",4),p(6,kn,2,0,"span",5),s(),r(7,"span",6),d(8),s(),r(9,"div",7)(10,"span",8),d(11),s()()(),p(12,In,2,0,"div",9),p(13,An,4,0,"div",10),s()),t&2&&(u("ngClass",we(14,Tn,i.isSelected,i.isDisabled&&!i.isSelected,!i.isDisabled)),a(),u("ngClass",te(18,vn,i.invItem.item.appId===i.SteamApp.DOTA2))("src",ht(2,10,i.invItem.item.id,"medium",i.invItem.item.isDemo),O)("alt",i.invItem.item.marketName),a(4),_(i.invItem.item.appId===i.SteamApp.CSGO?5:-1),a(),_(i.isStattrak?6:-1),a(2),D(" ",i.itemName," "),a(3),M((i.invItem==null?null:i.invItem.priceUsd)||i.invItem.item.priceUsd),a(),_(i.invItem&&i.invItem.isBonus?12:-1),a(),_(i.isSelected?13:-1));},dependencies:[B,Ie,ie,Kt],styles:[`[_ngcontent-%COMP%]:root{--gutter: 2rem;--gutter-page: 4rem;--gutter-shop: 2.5rem;--gutter-support: 2.5rem}@media all and (max-width:991px){[_ngcontent-%COMP%]:root{--gutter: 1.5rem;--gutter-page: 2rem}}.mask-gradient-pic[_ngcontent-%COMP%]{-webkit-mask-image:linear-gradient(180deg,#d9d9d9 39.81%,rgba(217,217,217,.33) 66.19%,rgba(217,217,217,0) 100%);mask-image:linear-gradient(180deg,#d9d9d9 39.81%,#d9d9d954 66.19%,#d9d9d900)}.dota2-skin-path[_ngcontent-%COMP%]{clip-path:inset(3% 8% 3% 8% round 10px)}.skin_card[_ngcontent-%COMP%]:hover   .skin_card_hover[_ngcontent-%COMP%]{display:flex;animation:_ngcontent-%COMP%_ani .3s forwards}.skin_quality_b0c3d9[_ngcontent-%COMP%]{background:#919eb7}.skin_quality_5e98d9[_ngcontent-%COMP%]{background:#85dcdc}.skin_quality_4b69ff[_ngcontent-%COMP%]{background:#6d9fff}.skin_quality_d32ce6[_ngcontent-%COMP%]{background:#ff6d87}.skin_quality_8847ff[_ngcontent-%COMP%]{background:#9672ff}.skin_quality_eb4b4b[_ngcontent-%COMP%]{background:#fa5b51}
4.skin_quality_e4ae39[_ngcontent-%COMP%]{background:#ffc56d}.skin_quality_cf6a32[_ngcontent-%COMP%]{background:#ff8f5f}.skin_quality_a7ec2e[_ngcontent-%COMP%]{background:#a7ec2e}.border-animation[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_ani .3s forwards}@keyframes _ngcontent-%COMP%_ani{0%{opacity:0}to{opacity:10}}.bg-selected[_ngcontent-%COMP%]{background:linear-gradient(180deg,#947a2642,#f8cf4942)}
5/*# sourceMappingURL=inventory-item.component-UXSXSWXI.css.map */`],changeDetection:0});}}return n;})();var Mn=(n,l)=>({"opacity-100":n,"opacity-0":l}),Pn=(n,l)=>l.id;function On(n,l){n&1&&h(0,"preload-rect",21),n&2&&u("background","rgba(107,108,125,0.14)");}function wn(n,l){if(n&1&&(r(0,"div",17),V(1,On,1,1,"preload-rect",21,ge),s()),n&2){let e=c();a(),K(e.preloadItem);}}function Rn(n,l){n&1&&(r(0,"div",18)(1,"div",22)(2,"span",23),b(3,2),s(),r(4,"span",24),b(5,3),s()()());}function Nn(n,l){if(n&1){let e=R();r(0,"items-inventory-item",28),E("selectionToggle",function(i){v(e);let o=c().$implicit,m=c(2);return y(m.toggleSelectedInvItem(o,i));}),s();}if(n&2){let e=c().$implicit,t=c(2);u("invItem",e)("isDisabled",!!(t.inventoryState.isDisabled()||t.limitReached()&&e!=null&&e.id&&!t.inventoryState.selectedIds().includes(e.id)))("selectedIds",t.inventoryState.selectedIds());}}function Dn(n,l){if(n&1&&p(0,Nn,1,3,"items-inventory-item",27),n&2){let e=l.$implicit;_(e!=null&&e.item?0:-1);}}function Fn(n,l){if(n&1){let e=R();r(0,"div",19)(1,"cdk-virtual-scroll-viewport",25),E("scroll",function(i){v(e);let o=c();return y(o.onScroll(i));}),V(2,Dn,1,1,null,null,Pn),s(),h(4,"div",26),s();}if(n&2){let e=c();a(),u("itemSize",100),a(),K(e.inventoryState.sortedInventory()),a(2),u("ngClass",Oe(2,Mn,e.showBottomShadow(),!e.showBottomShadow()));}}function Ln(n,l){if(n&1){let e=R();r(0,"button",29),E("click",function(){v(e);let i=c();return y(i.sellItems());}),h(1,"i",30),s();}}var Gn="Skins successfully sold",Bn="Items successfully sold",zn="Bonus items cannot be sold or withdrawn",$n="Select items to sell",mi=(()=>{class n{constructor(){this.inventoryState=f(Se),this.authState=f(Y),this.destroyRef=f(he),this.elementRef=f(st),this.notifier=f(Le),this.settingsState=f(X),this.close=ft(),this.isLoading=T(!1),this.isInventoryOpened=T(!1),this.showBottomShadow=T(!0),this.preloadItem=new Array(6),this.limitReached=C(()=>this.inventoryState.selectedIds().length>=this.inventoryState.maxSelectableItems()),this.hasItems=C(()=>this.inventoryState.sortedInventory().length>0),this.selectedAmount=C(()=>this.inventoryState.selectedInventoryAmountUsd());}ngOnInit(){this.authState.isAuthenticated()&&this.loadInventory();}ngAfterViewInit(){let e=yt(this.elementRef.nativeElement,()=>this.closeInventory(),{type:"outside"});e&&e.pipe(ae(this.destroyRef)).subscribe();}loadInventory(){this.inventoryState.loadInventory().pipe(Fe(this.isLoading),ae(this.destroyRef)).subscribe();}toogleInventory(){this.isInventoryOpened.set(!0);}closeInventory(){this.close.emit();}toggleSelectedInvItem(e,t){t?this.inventoryState.selectInventoryItem(e):this.inventoryState.unselectInventoryItem(e);}onScroll(e){let t=e.target,i=t.scrollTop,o=t.scrollHeight,m=t.clientHeight,g=i+m>=o-5;this.showBottomShadow.set(!g);}sellItems(){let e=this.inventoryState.selectedIds();if(e.length===0){this.notifier.error($n);return;}if(this.inventoryState.hasSelectedBonusItems()){this.notifier.error(zn);return;}this.inventoryState.sellMany(e).pipe(ae(this.destroyRef)).subscribe(()=>{let i=this.settingsState.streamerMode()?Bn:Gn;this.notifier.success(i);});}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["inventory"]],viewQuery:function(t,i){if(t&1&&Te(De,5),t&2){let o;me(o=ce())&&(i.cdkVirtualScrollViewport=o.first);}},hostAttrs:[1,"absolute","bottom-0","left-0","z-[1]","lg:left-1/2","lg:-translate-x-1/2","lg:w-full"],outputs:{close:"close"},decls:20,vars:5,consts:()=>{let e;e="INVENTORY";let t;t="Selected";let i;i="Inventory is empty!";let o;return o="There are no items in your inventory.",[e,t,i,o,[1,"relative","z-[101]","flex","h-[29.4rem]","w-[33.2rem]","flex-col","space-y-[1.2rem]","rounded-[1.2rem]","bg-[#282931]","px-[2.4rem]","pt-[2.4rem]","shadow-[0_10px_54px_0_rgba(0,0,0,0.55)]","lg:h-[27.8rem]","lg:w-full","lg:space-y-[0.8rem]","lg:px-[1.6rem]","lg:pt-[1.6rem]"],[1,"absolute","right-[1rem]","top-[1rem]","flex","items-center","justify-center","custom-transition-all","lg:top-[0.8rem]","lg:right-[0.8rem]",3,"click"],[1,"icon_new","icon_cross","text-[1rem]","!text-white","opacity-20","custom-transition-all","hover:opacity-50","lg:text-[0.8rem]"],[1,"flex","w-full","items-center","justify-between","!mt-0"],[1,"flex","items-center","justify-center","space-x-[0.6rem]","opacity-70"],[1,"icon","icon_pistol-bold-alt","text-[2rem]","text-white"],[1,"text-[1.4rem]","font-450","leading-[2rem]","text-white"],[1,"flex","items-center","space-x-[0.4rem]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]","text-white","opacity-70"],[1,"flex","items-center","space-x-[0.3rem]"],[1,"icon","icon_coin-c","text-[1.2rem]","!text-[#FECA80]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]","text-[#FECA80]"],[3,"chickenRoad","isInventory"],[1,"grid","h-[18rem]","grid-cols-3","gap-[0.6rem]","overflow-hidden"],[1,"flex","h-[15.8rem]","w-full","flex-col","items-center","justify-center","space-y-[1.6rem]","rounded-[1.2rem]","border-[0.2rem]","border-dashed","border-[rgba(233,210,169,0.14)]","bg-[rgba(233,210,169,0.09)]"],[1,"inventory__content","relative","flex","h-[18rem]","flex-col","overflow-hidden","lg:h-[17rem]"],[1,"absolute","bottom-[
51.2rem]","right-[1.2rem]","z-[999]","flex","h-[4.2rem]","w-[4.2rem]","items-center","justify-center","rounded-[1.4rem]","bg-[#C0F238]","!text-[#233024]","custom-transition-all","hover:bg-[#DEFF72]","hover:!text-[#323D27]"],[1,"h-[10rem]","w-full","!rounded-[1.2rem]",3,"background"],[1,"flex","flex-col","items-center","space-y-[0.2rem]"],[1,"text-[1.4rem]","font-400","leading-[2rem]","text-[#FFF8E5]"],[1,"text-[1.2rem]","font-325","leading-[1.6rem]","text-white","opacity-60"],[1,"inventory__scroll","flex-1",3,"scroll","itemSize"],[1,"pointer-events-none","absolute","bottom-0","z-[1]","h-[3.8rem]","w-full","bg-[linear-gradient(180deg,rgba(40,41,49,0.00)_0%,#282931_88.46%)]","custom-transition-all",3,"ngClass"],[3,"invItem","isDisabled","selectedIds"],[3,"selectionToggle","invItem","isDisabled","selectedIds"],[1,"absolute","bottom-[1.2rem]","right-[1.2rem]","z-[999]","flex","h-[4.2rem]","w-[4.2rem]","items-center","justify-center","rounded-[1.4rem]","bg-[#C0F238]","!text-[#233024]","custom-transition-all","hover:bg-[#DEFF72]","hover:!text-[#323D27]",3,"click"],[1,"icon_new","icon_cart","text-[2rem]"]];},template:function(t,i){t&1&&(r(0,"div",4)(1,"button",5),E("click",function(){return i.closeInventory();}),h(2,"i",6),s(),r(3,"div",7)(4,"div",8),h(5,"i",9),r(6,"span",10),b(7,0),s()(),r(8,"div",11)(9,"span",12),b(10,1),s(),r(11,"div",13),h(12,"i",14),r(13,"span",15),d(14),s()()()(),h(15,"buy-skin",16),p(16,wn,3,0,"div",17)(17,Rn,6,0,"div",18)(18,Fn,5,5,"div",19),p(19,Ln,2,0,"button",20),s()),t&2&&(a(14),M(i.selectedAmount()),a(),u("chickenRoad",!0)("isInventory",!0),a(),_(i.isLoading()?16:i.hasItems()?18:17),a(3),_(i.inventoryState.selectedIds().length>0?19:-1));},dependencies:[$e,xt,St,De,B,li,ze],styles:[`:root{--gutter: 2rem;--gutter-page: 4rem;--gutter-shop: 2.5rem;--gutter-support: 2.5rem}@media all and (max-width:991px){:root{--gutter: 1.5rem;--gutter-page: 2rem}}.inventory__content:not(.new-inventory__empty-block){margin-right:-.9rem}@media all and (max-width:992px){.inventory__content:not(.new-inventory__empty-block){margin-right:0}}.inventory__scroll .cdk-virtual-scroll-content-wrapper{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));align-content:flex-start;grid-gap:.6rem;width:100%;padding-right:.6rem}@media all and (max-width:992px){.inventory__scroll .cdk-virtual-scroll-content-wrapper{padding-right:0}}@media all and (max-width:992px){.inventory{padding:0;margin-right:0}.inventory__scroll .cdk-virtual-scroll-content-wrapper{grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));padding-right:0}}.scrollbar::-webkit-scrollbar{display:none}.swipe-icon{animation:swipeX 1s ease-in-out infinite}::-webkit-scrollbar{width:.4rem}@media all and (max-width:992px){::-webkit-scrollbar{width:0}}::-webkit-scrollbar-thumb{background:#46589b;border-radius:.3rem}.inventory__scroll::-webkit-scrollbar-thumb{background:#39393f99;border-radius:.3rem}@keyframes swipeX{0%,to{transform:translate(0)}25%{transform:translate(-2px)}75%{transform:translate(2px)}}
6/*# sourceMappingURL=inventory.component-DRD4NQWJ.css.map */
7`],encapsulation:2,changeDetection:0});}}return n;})();var Hn=["scrollContainer"],Un=["indicatorContainer"],Wn=["scrollIndicator"],Vn=(n,l)=>({"bg-selected":n,"!cursor-not-allowed opacity-50":l}),Kn=(n,l)=>l.id;function jn(n,l){n&1&&h(0,"preload-rect",15)(1,"preload-rect",15)(2,"preload-rect",15),n&2&&(u("background","rgba(107,108,125,0.14)"),a(),u("background","rgba(107,108,125,0.14)"),a(),u("background","rgba(107,108,125,0.14)"));}function Jn(n,l){n&1&&h(0,"buy-skin",16),n&2&&u("chickenRoad",!0)("slotIndex",3);}function Xn(n,l){if(n&1&&(h(0,"buy-skin",16)(1,"buy-skin",16)(2,"buy-skin",16),p(3,Jn,1,2,"buy-skin",16)),n&2){let e=c();u("chickenRoad",!0)("slotIndex",0),a(),u("chickenRoad",!0)("slotIndex",1),a(),u("chickenRoad",!0)("slotIndex",2),a(),_(e.isLg()?3:-1);}}function Yn(n,l){n&1&&(r(0,"div",23),h(1,"div",24),r(2,"div",25),h(3,"i",26),s()());}function qn(n,l){if(n&1){let e=R();r(0,"button",18),E("click",function(){v(e);let i=c().$implicit,o=c(2);return y(o.toggleSelectedInvItem(i,!o.isItemSelected(i)));}),h(1,"img",19),F(2,"itemImage"),r(3,"div",20),h(4,"i",21),r(5,"span",22),d(6),s()(),p(7,Yn,4,0,"div",23),s();}if(n&2){let e=c().$implicit,t=c(2);u("disabled",t.isItemDisabled(e))("ngClass",Oe(9,Vn,t.isItemSelected(e),t.isItemDisabled(e))),a(),u("src",Q(2,6,e.item.id,"medium"),O)("alt",e.item.marketName),a(5),M((e==null?null:e.priceUsd)||e.item.priceUsd),a(),_(t.isItemSelected(e)?7:-1);}}function Qn(n,l){if(n&1&&p(0,qn,8,12,"button",17),n&2){let e=l.$implicit;_(e!=null&&e.item?0:-1);}}function Zn(n,l){if(n&1&&V(0,Qn,1,1,null,null,Kn),n&2){let e=c();K(e.inventoryState.sortedInventory());}}
7function eo(n,l){if(n&1&&h(0,"div",27,2),n&2){let e=c();ne("left",e.scrollIndicatorPosition()+"px");}}function to(n,l){if(n&1){let e=R();r(0,"inventory",28),E("close",function(){v(e);let i=c();return y(i.toogleInventory());}),s();}}var ci=(()=>{class n{constructor(){this.inventoryState=f(Se),this.authState=f(Y),this.chickenRoadState=f(W),this.destroyRef=f(he),this.mediaService=f($),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.isLoading=T(!1),this.isInventoryOpened=T(!1),this.isMarketOpened=T(!1),this.scrollIndicatorPosition=T(0),this.hasScroll=T(!1),this.scrollContainer=Ne("scrollContainer"),this.indicatorContainer=Ne("indicatorContainer"),this.scrollIndicator=Ne("scrollIndicator"),this.hasItems=C(()=>this.inventoryState.sortedInventory().length>0),this.limitReached=C(()=>this.inventoryState.selectedIds().length>=this.inventoryState.maxSelectableItems()),mt(()=>{if(this.updateScrollIndicator(),typeof window<"u"){let e=()=>{this.updateScrollIndicator();};window.addEventListener("resize",e),this.destroyRef.onDestroy(()=>{window.removeEventListener("resize",e);});}}),ee(()=>{let e=this.chickenRoadState.currentGame();e&&(e.status===S.WON||e.status===S.LOST)&&this.authState.isAuthenticated()&&this.loadInventory();});}ngOnInit(){this.authState.isAuthenticated()&&this.loadInventory();}onScroll(e){let t=e.target;this.calculateScrollPosition(t);}calculateScrollPosition(e){let t=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth,m=i-o;if(this.hasScroll.set(m>0),m<=0){this.scrollIndicatorPosition.set(0);return;}let g=this.indicatorContainer()?.nativeElement,x=this.scrollIndicator()?.nativeElement;if(!g||!x)return;let I=t/m,N=g.offsetWidth,k=x.offsetWidth,H=N-k,U=I*H;this.scrollIndicatorPosition.set(Math.max(0,Math.min(U,H)));}updateScrollIndicator(){let e=this.scrollContainer()?.nativeElement;e&&this.calculateScrollPosition(e);}loadInventory(){this.inventoryState.loadInventory().pipe(Fe(this.isLoading),ae(this.destroyRef)).subscribe(()=>{setTimeout(()=>this.updateScrollIndicator(),0);});}toogleInventory(){this.isInventoryOpened.update(e=>!e);}toggleMarket(){this.isMarketOpened.update(e=>!e);}toggleSelectedInvItem(e,t){t?this.inventoryState.selectInventoryItem(e):this.inventoryState.unselectInventoryItem(e);}isItemSelected(e){return this.inventoryState.selectedIds().includes(e.id);}isItemDisabled(e){return this.limitReached()&&!this.isItemSelected(e);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["bet-component"]],viewQuery:function(t,i){t&1&&dt(i.scrollContainer,Hn,5)(i.indicatorContainer,Un,5)(i.scrollIndicator,Wn,5),t&2&&ut(3);},hostAttrs:[1,"h-full","lg:w-full","lg:h-auto"],decls:20,vars:3,consts:()=>{let e;e="INVENTORY";let t;return t="MARKET",[["indicatorContainer",""],["scrollContainer",""],["scrollIndicator",""],e,t,[1,"relative","flex","h-full","items-center","gap-[1rem]","lg:w-full","lg:flex-col","lg:gap-[1.4rem]"],[1,"flex","w-[9.8rem]","flex-col","gap-[0.8rem]","lg:w-full","lg:flex-row","lg:items-center"],[1,"jusify-center","group","flex","h-[3.4rem]","w-full","items-center","overflow-hidden","rounded-[1.8rem]","bg-[linear-gradient(180deg,rgba(199,191,172,0.18)_0%,rgba(201,188,147,0.23)_100%)]","backdrop-blur-[4.5px]","custom-transition-bg","before:bg-[linear-gradient(180deg,rgba(199,191,172,0.30)_0%,rgba(201,188,147,0.38)_100%)]",3,"click"],[1,"flex","h-full","w-full","items-center","justify-center","overflow-hidden","rounded-[1.8rem]","border-[0.2rem]","border-solid","border-[rgba(255,247,210,0.07)]","custom-transition-all","group-hover:border-[rgba(255,247,210,0.12)]"],[1,"text-[1rem]","font-450","uppercase","leading-[1.4rem]","text-white","opacity-80","custom-transition-all","group-hover:opacity-100"],[1,"flex","h-full","w-full","items-center","justify-center","space-x-[0.4rem]","overflow-hidden","rounded-[1.8rem]","border-[0.2rem]","border-solid","border-[rgba(255,247,210,0.07)]","custom-transition-all","group-hover:border-[rgba(255,247,210,0.12)]"],[1,"icon_new","icon_cart","text-[1.6rem]","!text-white","opacity-70"],[1,"relative","flex","h-full","items-center","space-x-[0.4rem]","lg:h-[7.6rem]","lg:w-full"],[1,"hidden-scrollbar","flex","h-full","w-[22.4rem]","items-center","space-x-[0.4rem]","overflow-x-auto","lg:h-[7.6rem]","lg:w-full","lg:max-w-full",3,"scroll"],[1,"flex","w-[4.4rem]","h-[0.4rem]","bg-[rgba(57,57,63,0.40)]","absolute","bottom-[-0.8rem]","rounded-[1.3rem]","transition-all","duration-200","lg:bottom-[-0.6rem]",3,"left"],[1,"h-[7.6rem]","!w-[7.2rem]","!rounded-[1.2rem]","lg:!w-full",3,"background"],[1,"h-full","lg:w-full",3,"chickenRoad","slotIndex"],[1,"relative","flex","h-full","!w-[7.2rem]","shrink-0","flex-col","items-center","justify-between","overflow-hidden","rounded-[1.2rem]","bg-[rgba(107,108,125,0.14)]","pb-[0.8rem]","pt-[0.6rem]","custom-transition-all","hover:bg-[rgba(107,108,125,0.24)]","lg:!w-[7.8rem]",3,"disabled","ngClass"],[1,"relative","flex","h-full","!w-[7.2rem]","shrink-0","flex-col","items-center","justify-between","overflow-hidden","rounded-[1.2rem]","bg-[rgba(107,108,125,0.14)]","pb-[0.8rem]","pt-[0.6rem]","custom-transition-all","hover:bg-[rgba(107,108,125,0.24)]","lg:!w-[7.8rem]",3,"click","disabled","ngClass"],["loading","lazy","fetchpriority","low",1,"h-[4.2rem]",3,"src","alt"],[1,"flex","items-center","space-x-[0.3rem]","absolute","bottom-[0.8rem]"],[1,"icon","icon_coin-c","text-[1.2rem]","!text-[#FECA80]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]","text-[#FECA80]"],[1,"border-animation"],[1,"absolute","left-0","top-0","h-full","w-full","rounded-[1.2rem]","border-[0.2rem]","border-solid","border-[#F8CF49]","custom-transition-all"],[1,"absolute","right-[0.6rem]","top-[0.6rem]","z-[11]"],[1,"icon_new","icon_check","text-[1.4rem]","!text-[#F8CF49]"],[1,"flex","w-[4.4rem]","h-[0.4rem]","bg-[rgba(57,57,63,0.40)]","absolute","bottom-[-0.8rem]","rounded-[1.3rem]","transition-all","duration-200","lg:bottom-[-0.6rem]"],[3,"close"]];},template:function(t,i){t&1&&(r(0,"div",5)(1,"div",6)(2,"button",7),E("click",function(){return i.toogleInventory();}),r(3,"div",8)(4,"span",9),b(5,3),s()()(),r(6,"button",7),E("click",function(){return i.toggleMarket();}),r(7,"div",10)(8,"span",9),b(9,4),s(),h(10,"i",11),s()()(),r(11,"div",12,0)(13,"div",13,1),E("scroll",function(m){return i.onScroll(m);}),p(15,jn,3,3)(16,Xn,4,7)(17,Zn,2,0),s(),p(18,eo,2,2,"div",14),s(),p(19,to,1,0,"inventory"),s()),t&2&&(a(15),_(i.isLoading()?15:i.isMarketOpened()||!i.hasItems()?16:i.hasItems()?17:-1),a(3),_(i.hasItems()&&i.hasScroll()?18:-1),a(),_(i.isInventoryOpened()?19:-1));},dependencies:[$e,ze,mi,B,ie],styles:[`.hidden-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.bg-selected[_ngcontent-%COMP%]{background:linear-gradient(180deg,#947a2642,#f8cf4942)}.border-animation[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_ani .3s forwards}@keyframes _ngcontent-%COMP%_ani{0%{opacity:0}
7to{opacity:10}}
8/*# sourceMappingURL=bet-component.component-G5DZGYZ4.css.map */`],changeDetection:0});}}return n;})();var be=fi(gi());var io=["gameField"],no=["chickenContainer"],oo=["platformsContainer"];function et(n,l){return l.id+"-"+this.platformRenderVersion();}function ao(n,l){if(n&1&&(r(0,"span",13),d(1),s()),n&2){let e=c(3);a(),oe("(diff: ",e.debugInfo().actualJumpOffsetPx>0?"+":"","",e.debugInfo().actualJumpOffsetPx,"px)");}}function ro(n,l){if(n&1&&(r(0,"div",12)(1,"span"),d(2,"Actual Jump Offset:"),s(),d(3),p(4,ao,2,2,"span",13),s(),r(5,"div",12)(6,"span"),d(7,"Expected Platform Center:"),s(),d(8),s(),r(9,"div",12)(10,"span"),d(11,"Actual Chicken Position:"),s(),d(12),s()),n&2){let e=c(2);a(3),D(" ",e.debugInfo().actualJumpOffsetPx,"px "),a(),_(e.debugInfo().actualJumpOffsetPx!==void 0&&e.debugInfo().actualJumpOffsetPx!==0?4:-1),a(4),D(" ",e.debugInfo().expectedPlatformCenterPx,"px "),a(4),D(" ",e.debugInfo().actualChickenPositionPx,"px ");}}function so(n,l){if(n&1&&(r(0,"span",13),d(1),s()),n&2){let e=c(3);a(),oe("(diff: ",e.debugInfo().actualIdleOffsetPx-e.debugInfo().idleOffsetPx>0?"+":"","",e.debugInfo().actualIdleOffsetPx-e.debugInfo().idleOffsetPx,"px)");}}function lo(n,l){if(n&1&&(r(0,"div",12)(1,"span"),d(2,"Actual Idle Offset:"),s(),d(3),p(4,so,2,2,"span",13),s(),r(5,"div",12)(6,"span"),d(7,"Actual Idle Position:"),s(),d(8),s()),n&2){let e=c(2);a(3),D(" ",e.debugInfo().actualIdleOffsetPx,"px "),a(),_(e.debugInfo().actualIdleOffsetPx!==void 0&&e.debugInfo().actualIdleOffsetPx!==e.debugInfo().idleOffsetPx?4:-1),a(4),D(" ",e.debugInfo().actualIdlePositionPx,"px ");}}function mo(n,l){if(n&1&&(r(0,"div",6)(1,"div",8),d(2,"\u{1F41B} Debug Info (\u041F\u0438\u043A\u0441\u0435\u043B\u0438)"),s(),r(3,"div",9)(4,"div",10),d(5,"\u{1F4D0} \u0420\u0430\u0437\u043C\u0435\u0440\u044B \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432:"),s(),r(6,"div",11)(7,"span"),d(8,"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440:"),s(),d(9),s(),r(10,"div",11)(11,"span"),d(12,"\u041A\u0443\u0440\u0438\u0446\u0430:"),s(),d(13),s(),r(14,"div",11)(15,"span"),d(16,"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043A\u0443\u0440\u0438\u0446\u044B:"),s(),d(17),s(),r(18,"div",11)(19,"span"),d(20,"\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430:"),s(),d(21),s(),r(22,"div",11)(23,"span"),d(24,"Padding:"),s(),d(25),s()(),r(26,"div",9)(27,"div",10),d(28,"\u{1F998} \u041F\u0440\u044B\u0436\u043E\u043A:"),s(),r(29,"div",11)(30,"span"),d(31,"From:"),s(),d(32),s(),r(33,"div",11)(34,"span"),d(35,"To:"),s(),d(36),s(),r(37,"div",11)(38,"span"),d(39,"Distance:"),s(),d(40),s(),r(41,"div",11)(42,"span"),d(43,"Compensation:"),s(),d(44),s(),r(45,"div",11)(46,"span"),d(47,"Adjusted Position:"),s(),d(48),s(),p(49,ro,13,4),s(),r(50,"div",9)(51,"div",10),d(52,"\u{1F4A4} Idle \u043F\u043E\u0437\u0438\u0446\u0438\u044F:"),s(),r(53,"div",11)(54,"span"),d(55,"Offset:"),s(),d(56),s(),r(57,"div",11)(58,"span"),d(59,"Idle Position:"),s(),d(60),s(),p(61,lo,9,3),s()()),n&2){let e=c();a(9),D(" ",e.debugInfo().containerWidth,"px "),a(4),oe(" ",e.debugInfo().chickenWidth,"\xD7",e.debugInfo().chickenHeight,"px "),a(4),oe(" ",e.debugInfo().chickenContainerWidth,"\xD7",e.debugInfo().chickenHeight,"px "),a(4),oe(" ",e.debugInfo().platformWidth,"\xD7",e.debugInfo().platformHeight,"px "),a(4),oe(" L:",e.debugInfo().paddingLeft,"px R:",e.debugInfo().paddingRight,"px "),a(7),D(" Platform ",e.debugInfo().fromPlatform+1," "),a(4),D(" Platform ",e.debugInfo().toPlatform+1," "),a(4),oe(" ",e.debugInfo().distance,"% = ",e.debugInfo().distancePx,"px "),a(4),oe(" ",e.debugInfo().compensation,"% = ",e.debugInfo().compensationPx,"px "),a(4),oe(" ",e.debugInfo().adjustedPosition,"% = ",e.debugInfo().adjustedPositionPx,"px "),a(),_(e.debugInfo().actualJumpOffsetPx!==void 0?49:-1),a(7),D(" ",e.debugInfo().idleOffsetPx,"px (5%) "),a(4),oe(" ",e.debugInfo().adjustedPosition+5,"% = ",e.debugInfo().idlePositionPx,"px "),a(),_(e.debugInfo().actualIdleOffsetPx!==void 0?61:-1);}}function co(n,l){if(n&1){let e=R();r(0,"spine",21),E("error",function(){v(e);let i=c(3);return y(i.onTrainSpineError());}),s();}if(n&2){let e=c(3);u("animationName",e.trainAnimation)("assetsPath",e.assetsDir+"/spine/chicken-road-game/train/")("loop",!0)("isJson",!0)("speed",1)("fps",60)("zoom",1)("offset",0);}}function uo(n,l){if(n&1){let e=R();r(0,"spine",22),E("animationComplete",function(){v(e);let i=c(3);return y(i.onTrainSpineRetrySuccess());})("error",function(){v(e);let i=c(3);return y(i.onTrainSpineRetryFailed());}),s();}if(n&2){let e=c(3);u("animationName",e.trainAnimation)("assetsPath",e.assetsDir+"/spine/chicken-road-game/train/")("loop",!0)("isJson",!0)("speed",1)("fps",30)("zoom",1)("offset",0);}}
8function po(n,l){if(n&1&&(r(0,"div",18),p(1,co,1,8,"spine",19)(2,uo,1,8,"spine",20),s()),n&2){let e=c(2);ne("left",e.trainPosition(),"rem"),a(),_(e.isTrainSpineBroken()?2:1);}}function _o(n,l){if(n&1){let e=R();r(0,"spine",27),E("animationStart",function(i){v(e);let o=c(3);return y(o.onChickenAnimationStart(i));})("animationLoopComplete",function(i){v(e);let o=c(3);return y(o.onChickenAnimationLoopComplete(i));})("animationComplete",function(i){v(e);let o=c(3);return y(o.onChickenAnimationComplete(i));})("error",function(){v(e);let i=c(3);return y(i.onChickenSpineError());}),s();}if(n&2){let e=c(3);u("animationName",e.currentAnimation())("assetsPath",e.assetsDir+"/spine/chicken-road-game/chicken/")("loop",e.currentAnimation()===e.ChickenAnimations.IDLE)("isJson",!0)("speed",1)("fps",60)("zoom",.65),fe("data-spine-key",e.chickenSpineKey());}}function ho(n,l){if(n&1){let e=R();r(0,"spine",28),E("animationStart",function(i){v(e);let o=c(3);return y(o.onChickenAnimationStart(i));})("animationLoopComplete",function(i){v(e);let o=c(3);return y(o.onChickenAnimationLoopComplete(i));})("animationComplete",function(){v(e);let i=c(3);return y(i.onChickenSpineRetrySuccess());})("error",function(){v(e);let i=c(3);return y(i.onChickenSpineRetryFailed());}),s();}if(n&2){let e=c(3);u("animationName",e.currentAnimation())("assetsPath",e.assetsDir+"/spine/chicken-road-game/chicken/")("loop",e.currentAnimation()===e.ChickenAnimations.IDLE)("isJson",!0)("speed",1)("fps",30)("zoom",.65),fe("data-spine-key",e.chickenSpineKey()+"-retry");}}function fo(n,l){if(n&1&&(r(0,"div",23)(1,"div",24,2),p(3,_o,1,8,"spine",25)(4,ho,1,8,"spine",26),s()()),n&2){let e=c(2);ne("left",e.chickenPositionX(),"rem"),a(3),_(e.isChickenSpineBroken()?4:3);}}function go(n,l){if(n&1){let e=R();r(0,"spine-optimized",36),E("error",function(){v(e);let i=c().$implicit,o=c(3);return y(o.onPlatformSpineError(i.index));}),s();}if(n&2){let e=c().$implicit,t=c(3);u("animationName",t.getPlatformAnimation(e.index))("assetsPath",t.assetsDir+"/spine/chicken-road-game/platforms/")("loop",t.isPlatformLooped(e.index))("isJson",!0)("speed",1)("fps",t.getPlatformFPS(e.index))("zoom",1)("offset",0),fe("data-spine-key",t.getPlatformAnimationKey(e.index));}}function Co(n,l){if(n&1){let e=R();r(0,"spine-optimized",37),E("animationComplete",function(){v(e);let i=c().$implicit,o=c(3);return y(o.onSpineRetrySuccess(i.index));})("error",function(){v(e);let i=c().$implicit,o=c(3);return y(o.onSpineRetryFailed(i.index));}),s();}if(n&2){let e=c().$implicit,t=c(3);u("animationName",t.getPlatformAnimation(e.index))("assetsPath",t.assetsDir+"/spine/chicken-road-game/platforms/")("loop",t.isPlatformLooped(e.index))("isJson",!0)("speed",1)("fps",30)("zoom",1)("offset",0),fe("data-spine-retry",e.index);}}function So(n,l){if(n&1&&(r(0,"div",32),h(1,"img",38),F(2,"itemImage"),s()),n&2){let e=c().$implicit;a(),u("src",Q(2,2,e.item.id,"medium"),O)("alt",e.item.marketName||"");}}function xo(n,l){if(n&1&&(r(0,"div",33),h(1,"img",39),F(2,"staticAssetUrl"),s()),n&2){let e=c().$implicit;a(),u("src",J(2,1,"/assets/images/chicken-road/base-items/"+e.placeholderItemIndex+".webp"),O);}}function bo(n,l){if(n&1&&d(0),n&2){let e=c().$implicit;D(" x",e.multiplier," ");}}function Eo(n,l){if(n&1&&d(0),n&2){let e=c().$implicit;D(" ",e.multiplier," ");}}function To(n,l){if(n&1&&(r(0,"div",35),h(1,"i",40),d(2),s()),n&2){let e=c().$implicit;a(2),D(" ",e.price," ");}}function vo(n,l){if(n&1&&(r(0,"div",29),p(1,go,1,9,"spine-optimized",30)(2,Co,1,9,"spine-optimized",31),p(3,So,3,5,"div",32)(4,xo,3,3,"div",33),r(5,"div",34),p(6,bo,1,1)(7,Eo,1,1),s(),p(8,To,3,1,"div",35),s()),n&2){let e=l.$implicit,t=c(3);fe("data-platform-index",e.index),a(),_(t.brokenSpines().has(e.index)?2:1),a(2),_(e.item&&t.shouldShowItems()&&t.shouldShowItemOnPlatform(e.index)?3:e.placeholderItemIndex?4:-1),a(3),_(t.settingsState.streamerMode()?7:6),a(2),_(e.price?8:-1);}}function yo(n,l){if(n&1&&V(0,vo,9,5,"div",29,et,!0),n&2){let e=c(2);K(e.mockPlatforms());}}function ko(n,l){if(n&1&&(r(0,"div",41)(1,"div",42),h(2,"img",43),F(3,"staticAssetUrl"),s()()),n&2){let e=l.$implicit;fe("data-platform-index",e.index),a(2),u("src",J(3,2,"/assets/images/chicken-road/current-game/platform_base.webp"),O);}}function Io(n,l){if(n&1&&V(0,ko,4,4,"div",41,et,!0),n&2){let e=c(2);K(e.mockPlatforms());}}
8function Ao(n,l){if(n&1&&(p(0,po,3,3,"div",14),p(1,fo,5,3,"div",15),r(2,"div",16,1),h(4,"div",17),p(5,yo,2,0)(6,Io,2,0),s()),n&2){let e=c();_(e.trainRenderEnabled()?0:-1),a(),_(e.isChickenInitialized()&&e.chickenRenderEnabled()?1:-1),a(3),ne("width",e.virtualScrollSpacerWidth(),"rem"),a(),_(e.platformsLoadingEnabled()?5:6);}}function Mo(n,l){if(n&1&&(r(0,"div",47)(1,"div",48),h(2,"img",49),s()()),n&2){let e,t=c(2);ne("left",t.chickenPositionX(),"rem"),Pe("game-field__chicken--win",((e=t.chickenRoadState.currentGame())==null?null:e.status)===t.GameStatus.WON),a(2),u("src",t.staticChickenImage(),O);}}function Po(n,l){if(n&1&&(r(0,"div",32),h(1,"img",38),F(2,"itemImage"),s()),n&2){let e=c().$implicit;a(),u("src",Q(2,2,e.item.id,"medium"),O)("alt",e.item.marketName||"");}}function Oo(n,l){if(n&1&&(r(0,"div",33),h(1,"img",39),F(2,"staticAssetUrl"),s()),n&2){let e=c().$implicit;a(),u("src",J(2,1,"/assets/images/chicken-road/base-items/"+e.placeholderItemIndex+".webp"),O);}}function wo(n,l){if(n&1&&d(0),n&2){let e=c().$implicit;D(" x",e.multiplier," ");}}function Ro(n,l){if(n&1&&d(0),n&2){let e=c().$implicit;D(" ",e.multiplier," ");}}function No(n,l){if(n&1&&(r(0,"div",35),h(1,"i",40),d(2),s()),n&2){let e=c().$implicit;a(2),D(" ",e.price," ");}}function Do(n,l){if(n&1&&(r(0,"div",46),h(1,"img",50),p(2,Po,3,5,"div",32)(3,Oo,3,3,"div",33),r(4,"div",34),p(5,wo,1,1)(6,Ro,1,1),s(),p(7,No,3,1,"div",35),s()),n&2){let e=l.$implicit,t=c(2);fe("data-platform-index",e.index),a(),u("src",t.getStaticPlatformImage(e.index),O),a(),_(e.item&&t.shouldShowItems()&&t.shouldShowItemOnPlatform(e.index)?2:e.placeholderItemIndex?3:-1),a(3),_(t.settingsState.streamerMode()?6:5),a(2),_(e.price?7:-1);}}function Fo(n,l){if(n&1&&(r(0,"div",7),p(1,Mo,3,5,"div",44),r(2,"div",45),h(3,"div",17),V(4,Do,8,5,"div",46,et,!0),s()()),n&2){let e,t=c();a(),_(t.isChickenInitialized()&&((e=t.chickenRoadState.currentGame())==null?null:e.status)!==t.GameStatus.LOST?1:-1),a(2),ne("width",t.virtualScrollSpacerWidth(),"rem"),a(),K(t.mockPlatforms());}}var di=(()=>{class n{handleGameStart(){this.resetChickenPosition(),this.itemsVisible.set(!0),this.gameStatusHandled=!1,this.lastHandledGameId=null,this.previousPlatform=-1,this.setTrackedTimeout(()=>{this.gameFieldElement?.nativeElement&&this.gameFieldElement.nativeElement.scrollTo({left:0,behavior:"smooth"});},0),this.previousApiStep=0;}handleFinishedGame(e,t){if(!this.isChickenInitialized()&&t>0){let i=t-1,o=this.basePlatformPositions()[i];if(this.chickenPositionX.set(o),this.currentPlatform.set(i),this.previousPlatform=i,this.isChickenInitialized.set(!0),this.scrollToChicken(o),this.requestTrackedAnimationFrame(()=>{this.requestTrackedAnimationFrame(()=>{this.setTrackedTimeout(()=>{this.markPlatformsAsWin(0,i+1);},100);});}),i>=0){let m=this.settingsState.disableAnimations()?this.STATIC_ITEM_DELAY_2:100;this.setTrackedTimeout(()=>{this.requestTrackedAnimationFrame(()=>{this.requestTrackedAnimationFrame(()=>{this.animateItemToCorner(i);});});},m);}}this.lastHandledGameId!==e.id&&(this.isJumping()||this.isAnimatingJump?this.pendingGameStatus={status:e.status,apiStep:t}:(this.gameStatusHandled=!0,this.handleGameStatus(e,t)));}constructor(){this.destroyRef=f(he),this.mediaService=f($),this.assetsDir=f(vt),this.settingsState=f(X),this.chickenRoadState=f(W),this.soundsService=f(At),this.dialog=f(de),this.itemsVisible=T(!0),this.shouldShowItems=C(()=>this.chickenRoadState.currentGame()?.status===S.IN_PROGRESS?!0:this.itemsVisible()),this.platformsScrollContainer=null,this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.allPlatforms=C(()=>{let e=this.chickenRoadState.selectedMode(),t=Zt[e],i=this.chickenRoadState.currentGame()?.amount,o=i?parseFloat(i):0,m=this.chickenRoadState.currentGame(),g=m?.steps||[],x=this.currentPlatform(),I=m?.status===S.IN_PROGRESS;return Array.from({length:20},(N,k)=>{let H=g[k],U=H&&"item"in H?H.item:null,se=!I&&!U?(k*7+3)%8+1:void 0;return{id:k+1,index:k,multiplier:t[k].toFixed(2),price:o>0?(o*t[k]).toFixed(2):null,skin:`Platform ${k+1}`,item:U,placeholderItemIndex:se,isChickenOnPlatform:k===x};});}),this.mockPlatforms=C(()=>{let e=this.visiblePlatformRange();return this.allPlatforms().filter(i=>i.index>=e.start&&i.index<=e.end);}),this.platformsByAnimation=C(()=>{let e=this.mockPlatforms(),t=new Map();for(let i of e){let o=this.getPlatformAnimationKey(i.index);t.has(o)||t.set(o,[]),t.get(o).push(i);}return t;}),this.virtualScrollSpacerWidth=C(()=>{let e=this.visiblePlatformRange(),t=this.PLATFORM_WIDTH(),i=this.PLATFORM_GAP(),o=t+i;return e.start*o;}),this.totalPlatformsWidth=C(()=>{let e=this.allPlatforms().length,t=this.PLATFORM_WIDTH(),i=this.PLATFORM_GAP(),o=this.CONTAINER_PADDING();return(t+i)*e-i+o*2;}),this.visibleTrains=C(()=>{let e=this.visibleTrainRange();return Array.from({length:e.end-e.start+1},(t,i)=>e.start+i);}),this.currentAnimation=T(L.IDLE),this.currentPlatform=T(-1),this.isJumping=T(!1),this.initialChickenPosition=C(()=>this.isLg()?5.5:11),this.chickenPositionX=T(11),this.isChickenInitialized=T(!0),this.jumpingToPlatform=T(null),this.previousPlatform=-1,this.jumpStartedForMakeStep=!1,this.pendingPlatformWinAfterStep=null,this.visiblePlatformRange=T({start:0,end:7}),this.visibleTrainRange=T({start:0,end:2}),this.platformsLoadingEnabled=T(!1),this.platformRenderVersion=T(0),this.trainRenderEnabled=T(!0),this.chickenRenderEnabled=T(!0),this.isTrainVisible=T(!0),this.isChickenVisible=T(!0),this.chickenSpineKey=T(!0),this.TRAIN_WIDTH=66.8,this.trainAnimationId=null,this.trainStartTime=null,this.TRAIN_DURATION=19200,this.trainPosition=T(-66.8),this.trainSoundHowl=null,this.wasTrainVisible=!1,this.TRAIN_FADE_DURATION=1500,this.previousAnimationState=null,this.ambientSoundHowl=null,this.AMBIENT_FADE_DURATION=2e3,this.pendingAnimationFrames=new Set(),this.pendingTimeouts=new Set(),this.STATIC_JU
8MP_DURATION=400,this.STATIC_PAUSE_DURATION=150,this.STATIC_ITEM_DELAY_1=300,this.STATIC_ITEM_DELAY_2=300,this.STATIC_ITEM_DELAY_3=400,this.winSoundHowl=null,this.gameFieldScrollFrameId=null,this.onGameFieldScroll=()=>{this.isJumping()||this.isAnimatingJump||this.gameFieldScrollFrameId===null&&(this.gameFieldScrollFrameId=this.requestTrackedAnimationFrame(()=>{this.gameFieldScrollFrameId=null,this.updateVisibleRange();}));},this.loseSoundHowl=null,this.platformStates=T(new Map()),this.platformTransitionTimeouts=new Map(),this.gameWon=T(!1),this.gameLost=T(!1),this.debugInfo=T(null),this.CHICKEN_WIDTH=18.75,this.CHICKEN_HEIGHT=18.75,this.CHICKEN_CONTAINER_WIDTH=75,this.PLATFORM_WIDTH=C(()=>this.isLg()?8.8:20),this.PLATFORM_HEIGHT=20,this.PLATFORM_GAP=C(()=>this.isLg()?1:2),this.CONTAINER_PADDING=C(()=>this.isLg()?14.5:30),this.PLATFORM_BUFFER_SIZE=C(()=>this.isLg()?1:2),this.PLATFORMS_BEHIND_CHICKEN=C(()=>this.isLg()?2:3),this.PLATFORMS_AHEAD_CHICKEN=C(()=>this.isLg()?2:3),this.basePlatformPositions=C(()=>this.calculatePlatformPositions()),this.debugMode=T(!1),this.isAnimatingJump=!1,this.lastJumpSound=null,this.pendingIdleSound=!1,this.unlockHandler=null,this.idleSoundHowl=null,this.lastIdleSoundTime=0,this.IDLE_SOUND_THROTTLE=500,this.previousApiStep=-1,this.pendingGameStatus=null,this.gameStatusHandled=!1,this.lastHandledGameId=null,this.brokenSpines=T(new Set()),this.spineRetryAttempts=new Map(),this.MAX_SPINE_RETRY_ATTEMPTS=3,this.isTrainSpineBroken=T(!1),this.trainSpineRetryAttempt=0,this.isChickenSpineBroken=T(!1),this.chickenSpineRetryAttempt=0,this.isScrolling=!1,this.resizeObserver=null,this.resizeTimeout=null,this.lastResizeWidth=0,this.lastResizeHeight=0,this.chickenAnimation=C(()=>{let e=this.chickenRoadState.currentGame(),t=this.chickenRoadState.isAnimating();if(!e)return L.IDLE;if(t)return L.JUMP;switch(e.status){case 1:return L.IDLE;case 2:return L.VICTORY;case 3:return L.DEAD;default:return L.IDLE;}}),this.trainAnimation=Qe.GO,this.platformRows=C(()=>{let e=this.chickenRoadState.currentGame();if(!e){let m=[];for(let g=0;g<20;g++){let x=[];for(let I=0;I<3;I++)x.push({index:g*3+I,isSafe:!1,isRevealed:!1,multiplier:1.2**(g+1)});m.push({step:g,platforms:x,isActive:g===0,isCompleted:!1});}return m;}let t=[],i=20,o=e.currentStep;for(let m=0;m<i;m++){let g=[];for(let x=0;x<3;x++)g.push({index:m*3+x,isSafe:!1,isRevealed:m<o,multiplier:1.2**(m+1)});t.push({step:m,platforms:g,isActive:m===o,isCompleted:m<o});}return t;}),this.chickenPosition=C(()=>{let e=this.chickenRoadState.currentGame();return e?{x:50,y:80-e.currentStep/20*100*.6}:{x:50,y:80};}),this.ChickenAnimations=L,this.PlatformAnimations=q,this.TrainAnimations=Qe,this.GameStatus=S,this.staticChickenImage=C(()=>this.chickenRoadState.currentGame()?.status===S.WON?`${this.assetsDir}/images/chicken-road/static-states/chicken-win.png`:`${this.assetsDir}/images/chicken-road/static-states/chicken.png`),this.staticPlatformImage=C(()=>{let e=this.chickenRoadState.currentGame();if(!e)return`${this.assetsDir}/images/chicken-road/static-states/platform.png`;switch(e.status){case S.WON:return`${this.assetsDir}/images/chicken-road/static-states/platform-win.png`;case S.LOST:return`${this.assetsDir}/images/chicken-road/static-states/platform-lose.png`;default:return`${this.assetsDir}/images/chicken-road/static-states/platform.png`;}}),this.chickenPositionX.set(this.initialChickenPosition()),ee(()=>{let e=this.chickenRoadState.isMakingStep(),t=this.chickenRoadState.currentGame();if(!e){this.jumpStartedForMakeStep=!1,this.flushPendingPlatformWinAfterStep();return;}if(this.jumpStartedForMakeStep||this.isJumping()||this.isAnimatingJump||!t)return;let i=t.currentStep,o=i;if(o===this.currentPlatform()||!(o===19&&i===20&&t.status===S.WON)&&t.status!==S.IN_PROGRESS)return;i===0&&this.previousPlatform!==-1&&(this.previousPlatform=-1),this.previousPlatform>=0&&this.setTrackedTimeout(()=>{this.returnItemToPlatform(this.previousPlatform);},100);let g=this.settingsState.disableAnimations()?this.STATIC_ITEM_DELAY_1:50;this.setTrackedTimeout(()=>{this.animateItemToCorner(o);},g),this.jumpStartedForMakeStep=!0,this.jumpingToPlatform.set(o),this.isJumping.set(!0),this.currentPlatform.set(o);}),ee(()=>{let e=this.currentPlatform();if(this.isJumping()&&e>=0&&!this.isAnimatingJump){let i=this.chickenRoadState.currentGame();if(!(e===19&&i?.currentStep===20)&&(i?.status===S.WON||i?.status===S.LOST)){this.isJumping.set(!1);return;}let m=this.previousPlatform;e===0&&m!==-1&&(m=-1,this.previousPlatform=-1),this.startJumpAnimation(m,e);}}),ee(()=>{let e=this.chickenRoadState.currentGame();if(!e){this.handleGameReset(),this.setTrackedTimeout(()=>{this.itemsVisible.set(!1);},500);return;}let t=e.currentStep;if(t===0&&e.status===S.IN_PROGRESS){this.handleGameStart();return;}if(e.status===S.WON||e.status===S.LOST){this.handleFinishedGame(e,t);return;}e.status===S.IN_PROGRESS&&this.itemsVisible.set(!0),this.previousApiStep===-1&&t>0&&e.status===S.IN_PROGRESS?this.initializeChickenPosition(t):t>this.previousApiStep&&e.status===S.IN_PROGRESS&&(this.previousApiStep=t);}),this.preloadIdleSound(),this.setupAudioUnlock(),ee(()=>{let e=this.settingsState.disableAnimations();!e&&!this.wasTrainVisible?(this.playTrainSoundWithFadeIn(),this.startTrainAnimation(),this.wasTrainVisible=!0):e&&this.wasTrainVisible&&(this.stopTrainSoundWithFadeOut(),this.stopTrainAnimation(),this.wasTrainVisible=!1);}),ee(()=>{let e=this.settingsState.disableAnimations();if(this.previousAnimationState===null){this.previousAnimationState=e;return;}let t=this.previousAnimationState===!0&&e===!1;if(this.previousAnimationState=e,t){let i=this.chickenRoadState.currentGame(),o=this.platformStates().size>0;i&&o&&this.reapplyPlatformStatesOnAnimationEnable();}}),ee(()=>{this.settingsState.disableChickenRoadSounds()&&(this.stopIdleSound(),this.stopTrainSound());}),ee(()=>{if(this.settingsState.disableChickenRoadMusic()){this.stopAmbientSound();return;}this.ambientSoundHowl?.playing()||this.playAmbientSound();});}setupAudioUnlock(){this.unlockHandler=()=>{be.Howler.ctx&&be.Howler.ctx.state==="suspended"?be.Howler.ctx.resume().then(()=>{this.pendingIdleSound&&this.currentAnimation()===L.IDLE&&(this.pendingIdleSound=!1,this.playIdleSound());}).catch(()=>{}):this.pendingIdleSound&&this.currentAnimation()===L.IDLE&&(this.pendingIdleSound=!1,this.playIdleSound()),this.removeUnlockHandlers();},document.addEventListener("click",this.unlockHandler,{passive:!0}),document.addEventListener("touchstart",this.unlockHandler,{passive:!0}),document.addEventListener("keydown",this.unlockHandler,{passive:!0});}removeUnlockHandlers(){this.unlockHandler&&(document.removeEventListener("click",this.unlockHandler),document.removeEventListener("touchstart",this.unlockHandler),document.removeEventListener("keydown",this.unlockHandler),this.unlockHandler=null);}handleGameReset(){this.previousApiStep!==-1&&(this.clearAllPlatformTransitionTimeouts(),this.platformStates.set(new Map()),this.resetChickenPosition()),this.previousApiStep=-1;}initializeChickenPosition(e){let t=e-1,i=this.basePlatformPositions()[t];if(this.previousApiStep=e,this.chickenPositionX.set(i),this.currentPlatform.set(t),this.previousPlatform=t,this.isJumping.set(!1),this.currentAnimation.set(L.IDLE),this.isChickenInitialized.set(!0),this.scrollToChicken(i),this.requestTrackedAnimationFrame(()=>{this.requestTrackedAnimationFrame(()=>{this.setTrackedTimeout(()=>{this.markPlatformsAsWin(0,t+1);},100);});}),t>=0){let o=this.settingsState.disableAnimations()?this.STATIC_ITEM_DELAY_3:500;this.setTrackedTimeout(()=>{this.requestTrackedAnimationFrame(()=>{this.requestTrackedAnimationFrame(()=>{this.animateItemToCorner(t);});});},o);}}returnItemToPlatform(e){if(!this.gameFieldElement?.nativeElement)return;
8let t=this.gameFieldElement.nativeElement.querySelector(`[data-platform-index="${e}"]`);if(!t)return;let i=t.querySelector(".platform-item");if(!i)return;i.classList.remove("platform-item--above");let o=this.isLg(),m=o?"5.28rem":"12rem",g=o?"3.96rem":"9rem",x=o?"2.7rem":"6rem",I=this.settingsState.disableAnimations()?"none":"transform 0.8s ease-out, width 0.8s ease-out, height 0.8s ease-out, top 0.8s ease-out, z-index 0.8s ease-out";this.requestTrackedAnimationFrame(()=>{i.style.transition=I,i.style.transform="translate(-50%, -50%) scale(1)",i.style.width=m,i.style.height=g,i.style.top=x,i.style.zIndex="3";});}animateItemToCorner(e){if(!this.gameFieldElement?.nativeElement)return;let t=this.gameFieldElement.nativeElement.querySelector(`[data-platform-index="${e}"]`);if(!t)return;let i=t.querySelector(".platform-item");if(!i)return;let o=parseFloat(getComputedStyle(document.documentElement).fontSize),m=this.isLg(),g=m?-4.4:-10,x=m?-4.4:-10,I=m?"3.5rem":"8rem",N=m?"2.6rem":"6rem",k=x*o,H=g*o,U=this.settingsState.disableAnimations()?"none":"transform 0.8s ease-out, width 0.8s ease-out, height 0.8s ease-out";this.requestTrackedAnimationFrame(()=>{i.style.transition=U,i.style.transform=`translate(calc(-50% + ${k}px), calc(-50% + ${H}px)) scale(0.75)`,i.style.width=I,i.style.height=N,i.style.zIndex="1000";});}handleGameStatus(e,t){let o=this.currentPlatform();if(o<0&&(o=t>0?t-1:0),e.status===S.WON)this.lastHandledGameId=e.id,this.stopIdleSound(),this.playWinSound(),this.currentAnimation.set(L.VICTORY),this.gameWon.set(!0),this.markPlatformAsWinDirect(o);else if(e.status===S.LOST)this.lastHandledGameId=e.id,this.stopIdleSound(),this.playLoseSound(),this.currentAnimation.set(L.DEAD),this.gameLost.set(!0),this.markPlatformAsLose(o);else if(e.status===S.IN_PROGRESS&&t>0){let m=this.platformStates();Array.from({length:o},(x,I)=>I).some(x=>m.get(x)==="win"||m.get(x)==="idle-pending")?this.markPlatformsAsWinDirect(0,o):this.markPlatformsAsWin(0,o);}}markPlatformsAsWin(e,t){for(let i=e;i<t;i++){let o=this.platformStates().get(i);if(!o||o!=="lose"){let m=300+(i-e)*100;this.markPlatformAsWinWithIdleTransition(i,m);}}}markPlatformsAsWinDirect(e,t){this.platformStates.update(i=>{let o=new Map(i);for(let m=e;m<t;m++){let g=o.get(m);(!g||g!=="lose")&&o.set(m,"win");}return o;});}markPlatformAsLose(e){this.pendingPlatformWinAfterStep=null,this.platformStates.update(t=>{let i=new Map(t);return i.set(e,"lose"),i;});}markPlatformAsWinDirect(e){this.pendingPlatformWinAfterStep=null,this.platformStates.update(t=>{let i=new Map(t);return i.set(e,"win"),i;});}markPlatformAsWinWithIdleTransition(e,t=300){let i=this.platformTransitionTimeouts.get(e);i&&clearTimeout(i),this.platformStates.update(m=>{let g=new Map(m);return g.set(e,"idle-pending"),g;});let o=setTimeout(()=>{this.platformStates.update(m=>{let g=new Map(m);return g.set(e,"win"),g;}),this.platformTransitionTimeouts.delete(e);},t);this.platformTransitionTimeouts.set(e,o);}clearAllPlatformTransitionTimeouts(){this.platformTransitionTimeouts.forEach(e=>clearTimeout(e)),this.platformTransitionTimeouts.clear();}setPlatformsState(e,t){this.platformStates.update(i=>{let o=new Map(i);return e.forEach(m=>{o.set(m,t);}),o;});}scheduleWinPlatformsReapply(e){let t=setTimeout(()=>{this.requestTrackedAnimationFrame(()=>{this.setPlatformsState(e,"win");});},500);this.platformTransitionTimeouts.set(-1,t);}reapplyPlatformStatesOnAnimationEnable(){let e=new Map(this.platformStates()),t=[];e.forEach((i,o)=>{i==="win"&&t.push(o);}),t.length!==0&&(this.clearAllPlatformTransitionTimeouts(),this.requestTrackedAnimationFrame(()=>{this.setPlatformsState(t,"idle-pending"),this.scheduleWinPlatformsReapply(t);}));}resetChickenPosition(){this.currentPlatform.set(-1),this.previousPlatform=-1,this.jumpStartedForMakeStep=!1,this.pendingPlatformWinAfterStep=null,this.chickenPositionX.set(this.initialChickenPosition()),this.isJumping.set(!1),this.isAnimatingJump=!1,this.chickenRoadState.isAnimating.set(!1),this.isChickenInitialized.set(!0),this.clearAllPlatformTransitionTimeouts(),this.platformStates.set(new Map()),this.gameWon.set(!1),this.gameLost.set(!1),this.currentAnimation.set(L.IDLE),this.gameFieldElement?.nativeElement&&this.gameFieldElement.nativeElement.scrollTo({left:0,behavior:"smooth"}),this.requestTrackedAnimationFrame(()=>{this.updateVisibleRange();});}onChickenAnimationStart(e){e===L.IDLE&&this.playIdleSound();}onChickenAnimationLoopComplete(e){e===L.IDLE&&this.playIdleSound();}onChickenAnimationComplete(e){}performFullReset(){this.setTrackedTimeout(()=>{this.currentPlatform.set(-1),this.previousPlatform=-1,this.chickenPositionX.set(this.initialChickenPosition()),this.isJumping.set(!1),this.isAnimatingJump=!1,this.chickenRoadState.isAnimating.set(!1),this.previousApiStep=-1,this.gameStatusHandled=!1,this.clearAllPlatformTransitionTimeouts(),this.platformStates.set(new Map()),this.gameWon.set(!1),this.gameLost.set(!1),this.currentAnimation.set(null),this.setTrackedTimeout(()=>{this.currentAnimation.set(L.IDLE);},0),this.gameFieldElement?.nativeElement&&this.gameFieldElement.nativeElement.scrollTo({left:0,behavior:"smooth"}),this.setTrackedTimeout(()=>{this.itemsVisible.set(!1);},500);},300);}resetGame(){this.resetChickenPosition(),this.gameFieldElement?.nativeElement&&this.gameFieldElement.nativeElement.scrollTo({left:0,behavior:"smooth"});}ngAfterViewInit(){this.gameFieldElement?.nativeElement&&(this.gameFieldElement.nativeElement.addEventListener("scroll",this.onGameFieldScroll,{passive:!0}),this.setupResizeObserver()),this.updateVisibleRange(),"requestIdleCallback"in window?requestIdleCallback(()=>{this.platformsLoadingEnabled.set(!0);},{timeout:100}):this.setTrackedTimeout(()=>{this.platformsLoadingEnabled.set(!0);},50),this.settingsState.disableAnimations()||(this.settingsState.disableChickenRoadSounds()||this.playTrainSoundWithFadeIn(),this.startTrainAnimation(),this.wasTrainVisible=!0),!this.settingsState.disableChickenRoadSounds()&&!this.settingsState.disableChickenRoadMusic()&&this.playAmbientSound();}getContainerWidth(){if(!this.gameFieldElement?.nativeElement)return null;let e=this.gameFieldElement.nativeElement.offsetWidth,t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t;}ngOnDestroy(){this.stopIdleSound(),this.stopTrainSound(),this.stopTrainAnimation(),this.stopAmbientSound(),this.winSoundHowl&&(this.winSoundHowl.stop(),this.winSoundHowl=null),this.loseSoundHowl&&(this.loseSoundHowl.stop(),this.loseSoundHowl=null),this.clearAllPlatformTransitionTimeouts(),this.removeUnlockHandlers(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.chickenSpineRetryTimer&&(clearTimeout(this.chickenSpineRetryTimer),this.chickenSpineRetryTimer=void 0),this.clearPendingAnimationFrames(),this.clearPendingTimeouts(),this.cleanupGameFieldScrollListener();}setupResizeObserver(){this.gameFieldElement?.nativeElement&&(this.resizeObserver=new ResizeObserver(e=>{let t=e[0];if(!t)return;let i=t.contentRect.width,o=t.contentRect.height,m=Math.abs(i-this.lastResizeWidth)>1,g=Math.abs(o-this.lastResizeHeight)>1;!m&&!g||(this.lastResizeWidth=i,this.lastResizeHeight=o,this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{let x=this.platformsLoadingEnabled(),I=this.trainRenderEnabled(),N=this.chickenRenderEnabled();x&&this.platformsLoadingEnabled.set(!1),I&&this.trainRenderEnabled.set(!1),N&&this.chickenRenderEnabled.set(!1),this.requestTrackedAnimationFrame(()=>{this.requestTrackedAnimationFrame(()=>{let k=this.currentPlatform();if(this.isChickenInitialized())if(k>=0){let H=this.basePlatformPositions();
8H[k]!==void 0&&this.chickenPositionX.set(H[k]);}else this.chickenPositionX.set(this.initialChickenPosition());I&&this.trainRenderEnabled.set(!0),N&&this.chickenRenderEnabled.set(!0),x&&(this.forcePlatformRerender(),this.platformsLoadingEnabled.set(!0),this.requestTrackedAnimationFrame(()=>{this.restartCompletedPlatformAnimationsAfterResize(),this.resizeVisibleSpineInstances(),this.updateVisibleRange();}));});});},150));}),this.resizeObserver.observe(this.gameFieldElement.nativeElement));}resizeVisibleSpineInstances(){this.spineComponents?.forEach(e=>e.resize()),this.spineOptimizedComponents?.forEach(e=>{e.resize(),e.renderFrame();});}forcePlatformRerender(){this.platformRenderVersion.update(e=>e+1);}restartCompletedPlatformAnimationsAfterResize(){let e=this.chickenRoadState.currentGame(),t=this.platformStates(),i=[];if(t.forEach((o,m)=>{o==="win"&&i.push(m);}),i.length===0&&e?.status===S.IN_PROGRESS&&e.currentStep>0){let o=Math.min(20,e.currentStep);for(let m=0;m<o;m++)t.get(m)!=="lose"&&i.push(m);}i.length!==0&&(this.clearAllPlatformTransitionTimeouts(),this.platformStates.update(o=>{let m=new Map(o);return i.forEach(g=>{m.get(g)!=="lose"&&m.set(g,"idle-pending");}),m;}),this.setTrackedTimeout(()=>{this.platformStates.update(o=>{let m=new Map(o);return i.forEach(g=>{m.get(g)!=="lose"&&m.set(g,"win");}),m;});},120));}cleanupGameFieldScrollListener(){this.gameFieldScrollFrameId!==null&&(this.cancelTrackedAnimationFrame(this.gameFieldScrollFrameId),this.gameFieldScrollFrameId=null),this.gameFieldElement?.nativeElement&&this.gameFieldElement.nativeElement.removeEventListener("scroll",this.onGameFieldScroll);}updateVisibleRange(){if(!this.gameFieldElement?.nativeElement||this.isJumping()||this.isAnimatingJump)return;let e=this.gameFieldElement.nativeElement,t=e.scrollLeft,i=e.clientWidth,o=10,m=t/o,g=i/o;this.updatePlatformRange(m,g),this.updateTrainRange(m,g),this.updateVisibility(m,g);}updatePlatformRange(e,t){let i=this.PLATFORM_WIDTH(),o=this.PLATFORM_GAP(),m=this.CONTAINER_PADDING(),g=i+o,x=Math.max(0,e-m),I=e+t-m,N=this.PLATFORM_BUFFER_SIZE(),k=Math.max(0,Math.floor(x/g)-N),H=Math.min(19,Math.ceil((I+i)/g)+N),U=this.currentPlatform(),se,le;if(U>=0){let tt=Math.max(0,U-this.PLATFORMS_BEHIND_CHICKEN()),hi=Math.min(19,U+this.PLATFORMS_AHEAD_CHICKEN());se=Math.min(tt,k),le=Math.max(hi,H),k>tt+3&&(se=k);}else se=k,le=H;let Ke=this.visiblePlatformRange();(Ke.start!==se||Ke.end!==le)&&this.visiblePlatformRange.set({start:se,end:le});}updateTrainRange(e,t){let o=Math.max(0,Math.floor(e/66.8)-1),m=Math.min(4,Math.ceil((e+t)/66.8)+1);this.visibleTrainRange.set({start:o,end:m});}updateVisibility(e,t){let g=e,x=e+t,I=66.8>g&&0<x;this.isTrainVisible.set(I),this.isChickenVisible.set(!0);}calculatePlatformPositions(){let e=[],t=this.PLATFORM_WIDTH(),i=this.PLATFORM_GAP(),o=this.CONTAINER_PADDING();for(let m=0;m<21;m++){let g=o+(t+i)*m+t/2;e.push(g);}return e;}scrollToChicken(e){if(!this.gameFieldElement?.nativeElement)return;let t=this.gameFieldElement.nativeElement,i=parseFloat(getComputedStyle(document.documentElement).fontSize),o=e*i,g=t.clientWidth/2,x=t.scrollWidth-t.clientWidth,I=o-g,N=Math.max(0,Math.min(I,x));Math.abs(t.scrollLeft-N)>5&&(t.scrollTo({left:N,behavior:"smooth"}),this.setTrackedTimeout(()=>{!this.isJumping()&&!this.isAnimatingJump&&this.updateVisibleRange();},350));}measureActualOffset(e){if(!this.chickenContainerElement?.nativeElement||!this.gameFieldElement?.nativeElement)return null;let t=this.gameFieldElement.nativeElement.getBoundingClientRect(),x=(this.chickenContainerElement.nativeElement.getBoundingClientRect().left-t.left)/10+this.CHICKEN_CONTAINER_WIDTH/2,I=this.basePlatformPositions()[e];return x-I;}jumpToNext(){if(this.isJumping()||this.gameLost())return;let e=this.currentPlatform(),t=e+1;t>20||(this.isJumping.set(!0),this.previousPlatform=e,this.startJumpAnimation(e,t));}
8testJumpAndBurn(){this.isJumping()||(this.isJumping.set(!0),this.currentPlatform.set(0),this.previousPlatform=0,this.chickenPositionX.set(this.basePlatformPositions()[0]),this.currentAnimation.set(L.IDLE),this.debugInfo.set(null),this.setTrackedTimeout(()=>{this.currentPlatform.set(1);},300));}getPlatformPosition(e){return this.basePlatformPositions()[e];}findNearestPlatformRight(){if(!this.chickenContainerElement?.nativeElement||!this.gameFieldElement?.nativeElement)return 0;let e=this.gameFieldElement.nativeElement.getBoundingClientRect(),t=this.chickenContainerElement.nativeElement.querySelector("canvas");if(!t)return 0;let i=t.getBoundingClientRect(),o=10,g=(i.left-e.left)/o,I=i.width/o,N=g+I/2,k=this.basePlatformPositions().length-1,H=1/0;for(let U=0;U<this.basePlatformPositions().length;U++){let le=this.basePlatformPositions()[U]-N;le>0&&le<H&&(H=le,k=U);}return k;}startJumpAnimation(e,t){if(this.isAnimatingJump)return;let i=this.chickenRoadState.currentGame(),o=t===19&&i?.currentStep===20;if(!o&&(i?.status===S.WON||i?.status===S.LOST))return;this.isAnimatingJump=!0,this.chickenRoadState.isAnimating.set(!0),this.stopIdleSound();let x=e===-1||o?L.JUMP_BIG:L.JUMP;x===L.JUMP_BIG?this.playBigJumpSound():this.playNormalJumpSound();let I=Math.min(t,this.basePlatformPositions().length-1);this.currentAnimation.set(x),this.setTrackedTimeout(()=>{this.handleJumpLanding(I);},this.settingsState.disableAnimations()?this.STATIC_JUMP_DURATION:1e3);}handleJackpotJump(e){let t=this.basePlatformPositions()[19]+20;this.currentAnimation.set(L.JUMP_BIG),this.playBigJumpSound();let i=this.settingsState.disableAnimations(),o=i?400:800;this.setTrackedTimeout(()=>{this.chickenPositionX.set(t),this.scrollToChicken(t),this.currentAnimation.set(L.JACKPOT);let m=this.chickenRoadState.currentGame(),x=i?500:(i?1e3:3333)-1e3,I=N=>{if(!N)return;let k=parseFloat(N.ratio||"0"),H=parseFloat(N.amount||"0"),U;N.winItemPrice?U=parseFloat(N.winItemPrice):U=H*k;let se=N.winItem||null,le=N.currentStep;this.dialog.open(xe,{disableClose:!1,panelClass:"win-dialog-panel",data:{winAmount:U,multiplier:k,winItem:se,currentStep:le}}).closed.pipe(nt(1),ae(this.destroyRef)).subscribe(()=>{this.setTrackedTimeout(()=>{this.chickenRoadState.currentGame.set(null),this.chickenRoadState.reset(),this.chickenRoadState.isChickenReturningToStart.set(!1);},50);});};if(m&&m.id){let N=null;this.chickenRoadState.endGame().pipe(ae(this.destroyRef)).subscribe({next:k=>{N=k;},complete:()=>{this.setTrackedTimeout(()=>{this.chickenRoadState.isChickenReturningToStart.set(!0),this.resetChickenPosition(),this.setTrackedTimeout(()=>{let k=N?.game||m;I(k);},100);},x);}});}},o);}handleJackpotWinResult(e){if(e&&e.game){let t=parseFloat(e.game.ratio||"0"),i=parseFloat(e.game.amount)*t,o=e.game.winItem||null,m=e.game.currentStep,x=3333-1e3;this.setTrackedTimeout(()=>{this.resetChickenPosition(),this.setTrackedTimeout(()=>{this.dialog.open(xe,{disableClose:!1,panelClass:"win-dialog-panel",data:{winAmount:i,multiplier:t,winItem:o,currentStep:m}}),this.chickenRoadState.currentGame.set(null),this.chickenRoadState.reset();},100);},x);}}handlePostJumpCleanup(e,t){let i=this.previousPlatform;i>=0&&i!==e&&this.returnItemToPlatform(i),this.previousPlatform=e,this.jumpingToPlatform.set(null),this.isJumping.set(!1),this.isAnimatingJump=!1,this.chickenRoadState.isAnimating.set(!1),this.currentPlatform.set(e),this.isChickenVisible.set(!0),this.updateVisibleRange();let o=this.chickenRoadState.currentGame();if(o&&(this.previousApiStep=o.currentStep),this.pendingGameStatus){let m=this.pendingGameStatus;this.pendingGameStatus=null,o&&this.lastHandledGameId!==o.id&&(this.gameStatusHandled=!0,this.handleGameStatus(o,m.apiStep));}else if(o){let m=o.status===S.WON||o.status===S.LOST,g=this.lastHandledGameId!==o.id;m&&g&&(this.gameStatusHandled=!0,this.handleGameStatus(o,o.currentStep));}}handleJumpLanding(e){let t=this.chickenRoadState.currentGame();if(!t){this.isAnimatingJump=!1,this.chickenRoadState.isAnimating.set(!1),this.isJumping.set(!1);return;}let i=this.basePlatformPositions()[e];this.chickenPositionX.set(i),this.currentPlatform.set(e);let o=t.status;if(o===S.LOST){this.handleLostGame(e,t);return;}o===S.WON&&t.currentStep===20&&e===19?this.handleInProgressGame(e):o===S.IN_PROGRESS&&(this.chickenRoadState.isMakingStep()?(this.pendingPlatformWinAfterStep=e,this.currentAnimation.set(L.IDLE)):this.handleInProgressGame(e)),this.scrollToChicken(i);let g=this.settingsState.disableAnimations()?this.STATIC_PAUSE_DURATION:400;this.setTrackedTimeout(()=>{this.handlePostJumpCleanup(e,g);},g);}handleLostGame(e,t){this.jumpingToPlatform.set(null),this.isJumping.set(!1),this.isAnimatingJump=!1,this.chickenRoadState.isAnimating.set(!1),this.previousPlatform=e,this.isChickenVisible.set(!0),this.updateVisibleRange(),this.lastHandledGameId!==t.id&&(this.gameStatusHandled=!0,this.handleGameStatus(t,t.currentStep));}flushPendingPlatformWinAfterStep(){if(this.pendingPlatformWinAfterStep===null||this.isJumping()||this.isAnimatingJump)return;let e=this.pendingPlatformWinAfterStep,t=this.chickenRoadState.currentGame();t?.status===S.IN_PROGRESS?(this.pendingPlatformWinAfterStep=null,this.handleInProgressGame(e)):(t?.status===S.LOST||t?.status===S.WON)&&(this.pendingPlatformWinAfterStep=null);}handleInProgressGame(e){this.pendingPlatformWinAfterStep=null,this.markPlatformAsWinWithIdleTransition(e,300);let t=this.chickenRoadState.currentGame();if(e===19&&t?.currentStep===20){this.currentAnimation.set(L.IDLE);let o=this.settingsState.disableAnimations()?200:500;this.setTrackedTimeout(()=>{this.handleJackpotJump(e);},o);}else this.currentAnimation.set(L.IDLE);}canClickPlatform(e,t){let i=this.chickenRoadState.canMakeStep();return t.isActive&&!e.isRevealed&&i===!0;}onPlatformClick(e,t){this.canClickPlatform(e,t)&&this.chickenRoadState.makeStep().subscribe();}getPlatformAnimation(e){let t=this.platformStates().get(e),i=e>=15;if(t==="idle-pending")switch(Math.floor(e/5)){case 0:return q.IDLE_NORMAL;case 1:return q.IDLE_BLUE;case 2:return q.IDLE_PURPLE;case 3:return q.IDLE_GOLD;default:return q.IDLE_NORMAL;}if(t==="win")return i?q.WIN_GOLD:q.WIN;if(t==="lose")return i?q.LOSE_GOLD:q.LOSE;switch(Math.floor(e/5)){case 0:return q.IDLE_NORMAL;case 1:return q.IDLE_BLUE;case 2:return q.IDLE_PURPLE;case 3:return q.IDLE_GOLD;default:return q.IDLE_NORMAL;}}isPlatformLooped(e){let t=this.platformStates().get(e);return t!=="win"&&t!=="lose";}getPlatformFPS(e){let t=this.currentPlatform();return Math.abs(e-t)<=1?60:15;}shouldShowItemOnPlatform(e){return this.platformStates().get(e)!=="lose";}getPlatformClass(e,t){let i=["platform"];return t.isActive&&i.push("platform--active"),t.isCompleted&&i.push("platform--completed"),e.isRevealed&&(i.push("platform--revealed"),e.isSafe?i.push("platform--safe"):i.push("platform--bomb")),this.canClickPlatform(e,t)&&i.push("platform--clickable"),i.join(" ");}preloadIdleSound(){let e=this.soundsService.playSound("chicken-road-afk",0,!1);e&&e.once("load",()=>{e.stop();});}playIdleSound(){if(be.Howler.ctx&&be.Howler.ctx.state==="suspended"){this.pendingIdleSound=!0,be.Howler.ctx.resume().then(()=>{this.pendingIdleSound&&this.currentAnimation()===L.IDLE&&(this.pendingIdleSound=!1,this.doPlayIdleSound());}).catch(()=>{});return;}this.doPlayIdleSound();}doPlayIdleSound(){if(this.settingsState.disableChickenRoadSounds())return;let e=Date.now();if(!(e-this.lastIdleSoundTime<this.IDLE_SOUND_THROTTLE)&&!this.idleSoundHowl?.playing()){if(this.stopIdleSound(),this.idleSoundHowl=this.soundsService.playSound("chicken-road-afk",1,!1),!this.idleSoundHowl){this.pendingIdleSound=!0;return;}this.lastIdleSoundTime=e,this.pendingIdleSound=!1;}}stopIdleSound(){this.idleSoundHowl&&(this.idleSoundHowl.stop(),this.idleSoundHowl=null),this.soundsService.stop("chicken-road-afk",!1);}playTrainSoundWithFadeIn(){this.settingsState.disableChickenRoadSounds()||this.trainSoundHowl?.playing()||(this.stopTrainSound(),this.trainSoundHowl=this.soundsService.playSound("chicken-road-train",0,!1),this.trainSoundHowl&&this.trainSoundHowl.fade(0,.7,this.TRAIN_FADE_DURATION));}
8stopTrainSoundWithFadeOut(){if(this.trainSoundHowl&&this.trainSoundHowl.playing()){let e=this.trainSoundHowl;e.fade(e.volume(),0,this.TRAIN_FADE_DURATION),this.setTrackedTimeout(()=>{e.stop();},this.TRAIN_FADE_DURATION);}this.trainSoundHowl=null;}stopTrainSound(){this.trainSoundHowl&&(this.trainSoundHowl.stop(),this.trainSoundHowl=null);}restartTrainSound(){this.settingsState.disableChickenRoadSounds()||(this.stopTrainSound(),this.trainSoundHowl=this.soundsService.playSound("chicken-road-train",0,!1),this.trainSoundHowl&&this.trainSoundHowl.fade(0,.7,this.TRAIN_FADE_DURATION));}startTrainAnimation(){this.trainAnimationId===null&&(this.trainStartTime=performance.now(),this.trainPosition.set(-this.TRAIN_WIDTH),this.animateTrain());}stopTrainAnimation(){this.trainAnimationId!==null&&(this.cancelTrackedAnimationFrame(this.trainAnimationId),this.trainStartTime=null);}animateTrain(){if(!this.trainStartTime||!this.gameFieldElement?.nativeElement)return;let t=performance.now()-this.trainStartTime,i=this.gameFieldElement.nativeElement.offsetWidth,o=parseFloat(getComputedStyle(document.documentElement).fontSize),m=i/o,g=-this.TRAIN_WIDTH,x=m+this.TRAIN_WIDTH*2,I=x-g,N=t/this.TRAIN_DURATION,k=g+I*N;k>=x?(this.trainStartTime=performance.now(),this.trainPosition.set(-this.TRAIN_WIDTH),this.restartTrainSound()):this.trainPosition.set(k),this.trainAnimationId=this.requestTrackedAnimationFrame(()=>this.animateTrain());}playAmbientSound(){this.ambientSoundHowl?.playing()||(this.stopAmbientSound(),this.ambientSoundHowl=this.soundsService.playSound("chicken-road-ambient",0,!0),this.ambientSoundHowl&&this.ambientSoundHowl.fade(0,.3,this.AMBIENT_FADE_DURATION));}stopAmbientSoundWithFadeOut(){if(this.ambientSoundHowl&&this.ambientSoundHowl.playing()){let e=this.ambientSoundHowl;e.fade(e.volume(),0,this.AMBIENT_FADE_DURATION),this.setTrackedTimeout(()=>{e.stop();},this.AMBIENT_FADE_DURATION);}this.ambientSoundHowl=null;}stopAmbientSound(){this.ambientSoundHowl&&(this.ambientSoundHowl.stop(),this.ambientSoundHowl=null);}playNormalJumpSound(){if(this.settingsState.disableChickenRoadSounds())return;let e=[1,2,3],t=e;this.lastJumpSound!==null&&(t=e.filter(m=>m!==this.lastJumpSound));let i=Math.floor(Math.random()*t.length),o=t[i];this.soundsService.playSound(`chicken-road-jump-${o}`),this.lastJumpSound=o;}playBigJumpSound(){this.settingsState.disableChickenRoadSounds()||this.soundsService.playSound("chicken-road-jump-4");}playLoseSound(){this.settingsState.disableChickenRoadSounds()||this.loseSoundHowl?.playing()||(this.loseSoundHowl&&this.loseSoundHowl.stop(),this.loseSoundHowl=this.soundsService.playSound("chicken-road-lose"));}playWinSound(){this.settingsState.disableChickenRoadSounds()||this.winSoundHowl?.playing()||(this.winSoundHowl&&this.winSoundHowl.stop(),this.winSoundHowl=this.soundsService.playSound("chicken-road-win"));}getPlatformAnimationKey(e){return`${this.getPlatformAnimation(e)}`;}onPlatformSpineError(e){this.brokenSpines.update(t=>{let i=new Set(t);return i.add(e),i;}),this.setTrackedTimeout(()=>{this.retryBrokenSpine(e);},1e3);}retryBrokenSpine(e){let t=this.spineRetryAttempts.get(e)||0;t>=this.MAX_SPINE_RETRY_ATTEMPTS||this.spineRetryAttempts.set(e,t+1);}onSpineRetrySuccess(e){this.brokenSpines.update(t=>{let i=new Set(t);return i.delete(e),i;}),this.spineRetryAttempts.delete(e);}onSpineRetryFailed(e){this.setTrackedTimeout(()=>{this.retryBrokenSpine(e);},2e3);}onTrainSpineError(){this.isTrainSpineBroken.set(!0),this.setTrackedTimeout(()=>{this.retryTrainSpine();},1e3);}retryTrainSpine(){this.trainSpineRetryAttempt>=this.MAX_SPINE_RETRY_ATTEMPTS||this.trainSpineRetryAttempt++;}onTrainSpineRetrySuccess(){this.isTrainSpineBroken.set(!1),this.trainSpineRetryAttempt=0;}onTrainSpineRetryFailed(){this.setTrackedTimeout(()=>{this.retryTrainSpine();},2e3);}onChickenSpineError(){this.isChickenSpineBroken.set(!0),this.chickenSpineRetryTimer&&clearTimeout(this.chickenSpineRetryTimer),this.chickenSpineRetryTimer=setTimeout(()=>{this.retryChickenSpine();},500);}retryChickenSpine(){this.chickenSpineRetryAttempt>=this.MAX_SPINE_RETRY_ATTEMPTS||(this.chickenSpineRetryAttempt++,this.chickenRenderEnabled.set(!1),this.requestTrackedAnimationFrame(()=>{this.requestTrackedAnimationFrame(()=>{this.chickenRenderEnabled.set(!0),this.setTrackedTimeout(()=>{this.isChickenSpineBroken.set(!1);},100);});}));}requestTrackedAnimationFrame(e){let t=requestAnimationFrame(i=>{this.pendingAnimationFrames.delete(t),this.trainAnimationId===t&&(this.trainAnimationId=null),e(i);});return this.pendingAnimationFrames.add(t),t;}cancelTrackedAnimationFrame(e){e!==null&&(cancelAnimationFrame(e),this.pendingAnimationFrames.delete(e),this.trainAnimationId===e&&(this.trainAnimationId=null));}clearPendingAnimationFrames(){this.pendingAnimationFrames.forEac
8h(e=>cancelAnimationFrame(e)),this.pendingAnimationFrames.clear(),this.trainAnimationId=null;}setTrackedTimeout(e,t){let i=setTimeout(()=>{this.pendingTimeouts.delete(i),e();},t);return this.pendingTimeouts.add(i),i;}clearPendingTimeouts(){this.pendingTimeouts.forEach(e=>clearTimeout(e)),this.pendingTimeouts.clear();}onChickenSpineRetrySuccess(){this.isChickenSpineBroken.set(!1),this.chickenSpineRetryAttempt=0,this.chickenSpineRetryTimer&&(clearTimeout(this.chickenSpineRetryTimer),this.chickenSpineRetryTimer=void 0);}onChickenSpineRetryFailed(){this.chickenSpineRetryTimer&&clearTimeout(this.chickenSpineRetryTimer),this.chickenSpineRetryTimer=setTimeout(()=>{this.retryChickenSpine();},1e3);}getStaticPlatformImage(e){let t=this.chickenRoadState.currentGame();if(!t)return`${this.assetsDir}/images/chicken-road/static-states/platform.png`;let i=t.currentStep;return(t.status===S.WON||t.status===S.LOST)&&e===i-1?t.status===S.WON?`${this.assetsDir}/images/chicken-road/static-states/platform-win.png`:`${this.assetsDir}/images/chicken-road/static-states/platform-lose.png`:`${this.assetsDir}/images/chicken-road/static-states/platform.png`;}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["chicken-road-game-field"]],viewQuery:function(t,i){if(t&1&&Te(io,5)(no,5)(oo,5)(Ye,5)(qe,5),t&2){let o;me(o=ce())&&(i.gameFieldElement=o.first),me(o=ce())&&(i.chickenContainerElement=o.first),me(o=ce())&&(i.platformsContainerElement=o.first),me(o=ce())&&(i.spineComponents=o),me(o=ce())&&(i.spineOptimizedComponents=o);}},decls:8,vars:7,consts:[["gameField",""],["platformsContainer",""],["chickenContainer",""],[1,"game-field"],[1,"pointer-events-none","fixed","left-[2rem]","bottom-[10rem]","z-[1000]","lg:left-[1rem]","lg:bottom-[4.5rem]"],["alt","Chicken Road","loading","lazy","fetchpriority","low",1,"block","h-auto","w-[25rem]","lg:w-[11.7rem]",3,"src"],[1,"debug-info"],[1,"game-field__static"],[1,"debug-info__title"],[1,"debug-info__section"],[1,"debug-info__section-title"],[1,"debug-info__item"],[1,"debug-info__item","debug-info__item--actual"],[1,"debug-info__diff"],[1,"game-field__background",3,"left"],[1,"game-field__chicken",3,"left"],[1,"game-field__platforms-horizontal"],[1,"platform-spacer"],[1,"game-field__background"],["modelName","train","loading","lazy","fetchpriority","low",1,"train-spine",3,"animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],["modelName","train","loading","lazy","fetchpriority","low",1,"train-spine","train-spine--retry",3,"animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],["modelName","train","loading","lazy","fetchpriority","low",1,"train-spine",3,"error","animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],["modelName","train","loading","lazy","fetchpriority","low",1,"train-spine","train-spine--retry",3,"animationComplete","error","animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],[1,"game-field__chicken"],[1,"chicken-container"],["modelName","chickenroad","fetchpriority","high","loading","eager",1,"chicken-spine",3,"animationName","assetsPath","loop","isJson","speed","fps","zoom"],["modelName","chickenroad","fetchpriority","low","loading","lazy",1,"chicken-spine","chicken-spine--retry",3,"animationName","assetsPath","loop","isJson","speed","fps","zoom"],["modelName","chickenroad","fetchpriority","high","loading","eager",1,"chicken-spine",3,"animationStart","animationLoopComplete","animationComplete","error","animationName","assetsPath","loop","isJson","speed","fps","zoom"],["modelName","chickenroad","fetchpriority","low","loading","lazy",1,"chicken-spine","chicken-spine--retry",3,"animationStart","animationLoopComplete","animationComplete","error","animationName","assetsPath","loop","isJson","speed","fps","zoom"],[1,"platform-box"],["modelName","platforms","loading","lazy","fetchpriority","low",1,"platform__spine",3,"animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],["modelName","platforms","loading","lazy","fetchpriority","low",1,"platform__spine","platform__spine--retry",3,"animationName","assetsPath","loop","isJson","
8speed","fps","zoom","offset"],[1,"platform-item"],[1,"platform-item","platform-item--placeholder"],[1,"platform-multiplier"],[1,"platform-price"],["modelName","platforms","loading","lazy","fetchpriority","low",1,"platform__spine",3,"error","animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],["modelName","platforms","loading","lazy","fetchpriority","low",1,"platform__spine","platform__spine--retry",3,"animationComplete","error","animationName","assetsPath","loop","isJson","speed","fps","zoom","offset"],["loading","lazy","fetchpriority","low",1,"platform-item__image",3,"src","alt"],["alt","Item placeholder","loading","lazy","fetchpriority","low",1,"platform-item__image",3,"src"],[1,"icon","icon_coin-c"],[1,"platform-box","platform-box--loading"],[1,"platform-placeholder"],["alt","Loading platform",1,"platform-placeholder__image",3,"src"],[1,"game-field__chicken","game-field__chicken--static",3,"game-field__chicken--win","left"],[1,"game-field__platforms-horizontal","game-field__platforms-static"],[1,"platform-box","platform-box--static"],[1,"game-field__chicken","game-field__chicken--static"],[1,"chicken-container-static"],["loading","lazy","alt","Chicken",1,"static-chicken-image",3,"src"],["alt","Platform","loading","lazy",1,"platform__static-image",3,"src"]],template:function(t,i){t&1&&(r(0,"div",3,0)(2,"div",4),h(3,"img",5),F(4,"staticAssetUrl"),s(),p(5,mo,62,22,"div",6),p(6,Ao,7,5)(7,Fo,6,3,"div",7),s()),t&2&&(ne("--total-width",i.totalPlatformsWidth(),"rem"),a(3),u("src",J(4,5,"/assets/images/chicken-road/logo.webp"),O),a(2),_(i.debugInfo()&&i.debugMode()?5:-1),a(),_(i.settingsState.disableAnimations()?7:6));},dependencies:[Ye,qe,ie,ue],styles:[`.game-field[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;padding-top:8rem;scroll-behavior:smooth;contain:layout style;scrollbar-width:none;-ms-overflow-style:none}.game-field[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.game-field[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:0;width:var(--total-width, 500rem);height:100%;background-image:url(https://s3.cs.fail/cdn/fa/images/chicken-road/main-bg.webp);background-size:calc(100% + 32rem) 100%;background-position:-16rem top;background-repeat:no-repeat;z-index:0}@media(max-width:992px){.game-field[_ngcontent-%COMP%]:before{width:var(--total-width, 211rem);background-size:calc(100% + 15rem) 100%;background-position:-7.5rem top}}.debug-info[_ngcontent-%COMP%]{position:absolute;top:8rem;left:2rem;z-index:200;background:#1a1d2ef2;border:2px solid #F8CF49;border-radius:1.2rem;padding:1.6rem;min-width:30rem;max-width:40rem;font-size:1.3rem;color:#fff;backdrop-filter:blur(10px);max-height:80vh;overflow-y:auto}.debug-info__title[_ngcontent-%COMP%]{font-weight:700;font-size:1.6rem;margin-bottom:1.2rem;color:#f8cf49;border-bottom:1px solid rgba(248,207,73,.3);padding-bottom:.8rem}.debug-info__section[_ngcontent-%COMP%]{margin-bottom:1.2rem}.debug-info__section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.debug-info__section-title[_ngcontent-%COMP%]{font-weight:600;font-size:1.4rem;margin-bottom:.8rem;color:#f8cf49;border-bottom:1px solid rgba(248,207,73,.2);padding-bottom:.4rem}.debug-info__item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:1.2rem}.debug-info__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600;color:#f8cf49;margin-right:1rem;min-width:12rem}.debug-info__item--actual[_ngcontent-%COMP%]{background:#f8cf491a;padding:.4rem .8rem;border-radius:.4rem;margin-left:.4rem;margin-right:.4rem}.debug-info__item--actual[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{color:#4caf50}.debug-info__diff[_ngcontent-%COMP%]{color:#ff6b6b!important;font-weight:700!important;margin-left:.8rem;font-size:1.1rem}.game-field__background[_ngcontent-%COMP%]{position:absolute;top:-1.2rem;width:66.8rem;height:16.8rem;z-index:1;pointer-events:none;will-change:transform;transform:translateZ(0)}.train-spine[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;will-change:contents;transform:translateZ(0)}.train-spine--retry[_ngcontent-%COMP%]{opacity:.8}.game-field__chicken[_ngcontent-%COMP%]{position:absolute;top:35%;transform:translateY(-50%) translate(-50%);z-index:100!important;pointer-events:none;min-width:76rem;width:76rem;height:39rem;overflow:visible!important;opacity:1!important;visibility:visible!important;display:block!important;will-change:transform,left;backface-visibility:hidden;-webkit-backface-visibility:hidden;contain:layout style paint;isolation:isolate}.chicken-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:visible;transform:translateZ(0);contain:layout style;isolation:isolate}.chicken-spine[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;overflow:visible;opacity:1!important;visibility:visible!important;display:block!important;will-change:contents;transform:translateZ(0)}.chicken-spine[_ngcontent-%COMP%]     canvas{overflow:visible!important;width:100%!important;opacity:1!important;visibility:visible!important;transform:translateZ(0)}.chicken-debug[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:8rem;z-index:10;opacity:.8}.chicken-platform[_ngcontent-%COMP%]{position:absolute;bottom:5rem;left:50%;transform:translate(-50%);width:10rem;height:10rem;border-radius:50%;background:radial-gradient(circle,#ff6b3566,#ff6b3500 70%);border:.3rem solid rgba(255,107,53,.6);z-index:-1}.game-field__platforms-horizontal[_ngcontent-%COMP%]{position:absolute;
8left:0;top:50%;transform:translateY(-50%);display:flex;gap:2rem;z-index:2;min-width:var(--total-width, 500rem);width:-moz-max-content;width:max-content;overflow-x:visible;overflow-y:visible;padding:0 30rem;will-change:scroll-position;transform:translateY(-50%) translateZ(0)}.platform-spacer[_ngcontent-%COMP%]{flex-shrink:0;height:1px}.platform-box[_ngcontent-%COMP%]{position:relative;flex-shrink:0;width:20rem;height:20rem;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translateZ(0);contain:layout style;overflow:visible}.platform-box--loading[_ngcontent-%COMP%]{opacity:.3}.platform-placeholder[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:18rem;height:18rem;display:flex;align-items:center;justify-content:center;animation:_ngcontent-%COMP%_platform-pulse 1.5s ease-in-out infinite}.platform-placeholder__image[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;opacity:.5}@keyframes _ngcontent-%COMP%_platform-pulse{0%,to{opacity:.4;transform:translate(-50%,-50%) scale(.95)}50%{opacity:.7;transform:translate(-50%,-50%) scale(1)}}.platform__spine[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20rem;height:20rem;pointer-events:none;will-change:contents;transform:translate(-50%,-50%) translateZ(0)}.platform__spine--retry[_ngcontent-%COMP%]{opacity:.8}.platform-item[_ngcontent-%COMP%]{position:absolute;top:6rem;left:50%;transform:translate(-50%,-50%);width:12rem;height:9rem;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:transform .3s ease-out,top .3s ease-out,z-index .3s ease-out}.platform-item__image[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}.platform-item--placeholder[_ngcontent-%COMP%]   .platform-item__image[_ngcontent-%COMP%]{filter:brightness(.9) saturate(.8)}.platform-item--above[_ngcontent-%COMP%]{top:2rem;z-index:15;transform:translate(-50%,-50%)}.platform-multiplier[_ngcontent-%COMP%]{position:absolute;bottom:27.5%;left:50%;transform:translate(-50%);color:#fff;padding:.6rem 1.6rem;font-size:1.6rem;font-weight:700;z-index:2}.platform-price[_ngcontent-%COMP%]{position:absolute;bottom:1rem;left:50%;transform:translate(-50%);background:linear-gradient(135deg,gold,orange);color:#1a1d2e;padding:.4rem 1.2rem;border-radius:1.6rem;font-size:1.4rem;font-weight:700;display:flex;align-items:center;gap:.4rem;box-shadow:0 .2rem .8rem #ffd70066;z-index:2}.platform-price[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:1.6rem}.game-field__static[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.game-field__chicken--static[_ngcontent-%COMP%]{top:28%!important}@media(max-width:768px){.game-field__chicken--static[_ngcontent-%COMP%]{top:13%!important}}.game-field__chicken--win[_ngcontent-%COMP%]   .chicken-container-static[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_chickenWinBounce 1s ease-in-out infinite}@keyframes _ngcontent-%COMP%_chickenWinBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-1.5rem)}}.chicken-container-static[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:visible}.static-chicken-image[_ngcontent-%COMP%]{width:64%;height:64%;-o-object-fit:contain;object-fit:contain;pointer-events:none;transition:opacity .3s ease-in-out,transform .3s ease-in-out;animation:_ngcontent-%COMP%_fadeInScale .5s ease-out}@keyframes _ngcontent-%COMP%_fadeInScale{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.game-field__platforms-static[_ngcontent-%COMP%]{top:43%!important}@media(max-width:768px){.game-field__platforms-static[_ngcontent-%COMP%]{top:30%!important}}.game-field__platforms-static[_ngcontent-%COMP%]   .platform-box--static[_ngcontent-%COMP%]{position:relative;width:20rem;height:20rem;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translateZ(0);contain:layout style;overflow:visible}@media(max-width:992px){.game-field__platforms-static[_ngcontent-%COMP%]   .platform-box--static[_ngcontent-%COMP%]{width:8.8rem;height:9rem}}.game-field__platforms-static[_ngcontent-%COMP%]   .platform-box--static[_ngcontent-%COMP%]   .platform__static-image[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-55%,-45%);width:20rem;height:20rem;-o-object-fit:contain;object-fit:contain;z-index:0;pointer-events:none;transition:opacity .3s ease-in-out,filter .3s ease-in-out}@media(max-width:992px){.game-field__platforms-static[_ngcontent-%COMP%]   .platform-box--static[_ngcontent-%COMP%]   .platform__static-image[_ngcontent-%COMP%]{width:8.8rem;height:9rem}}@media(max-width:768px){.game-field__platforms-horizontal[_ngcontent-%COMP%]{left:0;gap:1rem;padding:1rem 1rem 1rem 14.5rem;min-width:211rem;width:211rem}}@media(max-width:768px)and (max-width:992px){.game-field__platforms-horizontal[_ngcontent-%COMP%]{padding-left:14.5rem}}@media(max-width:768px){.platform-box[_ngcontent-%COMP%], .platform__spine[_ngcontent-%COMP%]{width:8.8rem;height:9rem}.game-field__chicken[_ngcontent-%COMP%]{height:17.4rem}.game-field__background[_ngcontent-%COMP%]{width:33.4rem;height:8.4rem;left:-33.4rem;top:-.6rem}@keyframes train-move{0%{transform:translate(0) translateZ(0)}to{transform:translate(244.4rem) translateZ(0)}}.platform-multiplier[_ngcontent-%COMP%]{font-size:.75rem;padding:.25rem .6rem;bottom:27%}.platform-price[_ngcontent-%COMP%]{font-size:.7rem;padding:.15rem .5rem;bottom:.4rem}.platform-price[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:.75rem}.platform-item[_ngcontent-%COMP%]{width:5.28rem;height:3.96rem;top:2.7rem}}
9/*# sourceMappingURL=game-field.component-MKFWWYFR.css.map */`],changeDetection:0});}}return n;})();var We=(()=>{class n{constructor(){this.settingsState=f(X),this.wrapperState=f(Yt);}toggleDisableAnimations(){this.settingsState.toggleDisableAnimations(),this.settingsState.disableAnimations()?this.wrapperState.addClass("animations_off"):this.wrapperState.removeClass("animations_off");}toggleDisableChickenRoadSounds(){this.settingsState.toggleDisableChickenRoadSounds();}toggleDisableChickenRoadMusic(){this.settingsState.toggleDisableChickenRoadMusic();}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["chicken-road-settings-tooltip"]],decls:24,vars:6,consts:()=>{let e;e="Settings";let t;t="Disable animations";let i;i="Disable effects";let o;return o="Turn off music",[e,t,i,o,[1,"flex","flex-col","gap-[1rem]","p-[1.6rem]"],[1,"flex","items-center","space-x-[0.6rem]","opacity-70"],[1,"icon_new","icon_setting","text-[2rem]","!text-white"],[1,"text-[1.4rem]","font-450","leading-[2rem]","text-white"],[1,"flex","flex-col","gap-[0.1rem]"],[1,"flex","h-[4.8rem]","w-[25.8rem]","items-center","justify-between","rounded-[1.2rem]","bg-[#32323A]","pl-[1.6rem]","pr-[1.2rem]","lg:h-[4rem]","lg:pl-[1.2rem]","lg:pr-[0.8rem]"],[1,"text-[1.3rem]","font-400","leading-[1.8rem]","text-white","lg:text-[1.2rem]","lg:leading-[1.6rem]"],[1,"switch",3,"click"],["type","checkbox","id","switch-disableAnimations",1,"switch__control",3,"disabled","checked"],[1,"switch__slider"],["type","checkbox","id","switch-disableChickenRoadSounds",1,"switch__control",3,"disabled","checked"],["type","checkbox","id","switch-disableChickenRoadMusic",1,"switch__control",3,"disabled","checked"]];},template:function(t,i){t&1&&(A(0,"div",4)(1,"div",5),G(2,"i",6),A(3,"span",7),b(4,0),w()(),A(5,"div",8)(6,"div",9)(7,"span",10),b(8,1),w(),A(9,"label",11),Ce("click",function(){return i.toggleDisableAnimations();}),G(10,"input",12)(11,"span",13),w()(),A(12,"div",9)(13,"span",10),b(14,2),w(),A(15,"label",11),Ce("click",function(){return i.toggleDisableChickenRoadSounds();}),G(16,"input",14)(17,"span",13),w()(),A(18,"div",9)(19,"span",10),b(20,3),w(),A(21,"label",11),Ce("click",function(){return i.toggleDisableChickenRoadMusic();}),G(22,"input",15)(23,"span",13),w()()()()),t&2&&(a(10),j("disabled",!0)("checked",i.settingsState.disableAnimations()),a(6),j("disabled",!0)("checked",i.settingsState.disableChickenRoadSounds()),a(6),j("disabled",!0)("checked",i.settingsState.disableChickenRoadMusic()));},styles:[`[_ngcontent-%COMP%]:root{--gutter: 2rem;--gutter-page: 4rem;--gutter-shop: 2.5rem;--gutter-support: 2.5rem}@media all and (max-width:991px){[_ngcontent-%COMP%]:root{--gutter: 1.5rem;--gutter-page: 2rem}}.switch[_ngcontent-%COMP%]{margin-left:1.4rem}.switch[_ngcontent-%COMP%]   .switch__slider[_ngcontent-%COMP%]{position:relative;width:3.8rem;height:2.4rem;background:linear-gradient(270deg,#46465280,#5a5a6880);border-radius:3.2rem;overflow:hidden}.switch[_ngcontent-%COMP%]   .switch__slider[_ngcontent-%COMP%]:after{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,#a9a49a,#e4e1d4);opacity:0;transition:opacity .2s ease-out 0s}.switch[_ngcontent-%COMP%]   .switch__slider[_ngcontent-%COMP%]{transition:border-color .2s ease-out 0s}.switch[_ngcontent-%COMP%]   .switch__slider[_ngcontent-%COMP%]:before{border-radius:3.4rem;left:.4rem;top:.4rem;width:2rem;height:1.6rem;background:linear-gradient(180deg,#a9a49a,#e4e1d4);box-shadow:0 2px 4px #0d111c26;border:none!important;z-index:1}.switch[_ngcontent-%COMP%]   .switch__control[_ngcontent-%COMP%]:checked ~ .switch__slider[_ngcontent-%COMP%]{background:linear-gradient(270deg,#b19437,#f8cf49)}.switch[_ngcontent-%COMP%]   .switch__control[_ngcontent-%COMP%]:checked ~ .switch__slider[_ngcontent-%COMP%]:before{border-radius:3.4rem;right:.4rem;top:.4rem;width:2rem;height:1.6rem;background:linear-gradient(0deg,#ffffbd,#e9f0ff);box-shadow:0 2px 4px #0d111c33;transform:translate(1rem)}
10/*# sourceMappingURL=settings-tooltip.component-FXIJ4Y62.css.map */`],changeDetection:0});}}return n;})();function Ve(n){return["ru","uk"].includes(n)||(n="en"),[{mediaSrc:`${Ct()}/video/Chi\u0441kenRoad_1.mp4`,title:"How to play?",text:["It\u2019s very simple: choose the difficulty level that suits you and place a bet \u2014 using your balance or a skin from your inventory.","","Click \u201CStart Game\u201D, wait for the round to begin, and then press \u201CMake a Step\u201D so the chicken jumps across the platforms. With each jump, the multiplier increases \u2014 and so does your potential win.","","You can cash out your winnings at any time. Just make sure to do it before the chicken burns.","","And if you\u2019re ready to take the risk, try to go all the way and hit the jackpot!","","Good luck and enjoy the game! \uD83D\uDC14\uD83D\uDD25"].join(`
11`)}];}function Lo(n,l){n&1&&h(0,"i",7);}function Go(n,l){n&1&&h(0,"i",8);}var ui=(()=>{class n{constructor(){this.cdr=f(ye),this.dialog=f(de),this.SettingsTooltipComponent=We,this.isSettingsTooltipOpen=!1,this.howItWorksSlides=Ve(f(Re));}onSettingsTooltipToggle(e){this.isSettingsTooltipOpen=e,this.cdr.markForCheck();}openHowGameWorksDialog(){return Ae(this,null,function*(){let e=yield import("./chunk-UESWB53R.js");this.dialog.open(e.HowGameWorksDialog,{data:{slides:this.howItWorksSlides}});});}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["home-actions"]],hostAttrs:[1,"px-[1.4rem]"],decls:9,vars:3,consts:()=>{let e;return e="How to play?",[e,[1,"absolute","right-[3.3rem]","top-0","top-[3.2rem]","flex","h-[4.2rem]","items-center","gap-[0.7rem]"],[1,"group","flex","h-full","items-center","justify-center","overflow-hidden","rounded-[2.4rem]","bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)]","shadow-[0_16px_14px_0_rgba(30,29,24,0.40)]","backdrop-blur-[4.5px]","custom-transition-bg","before:bg-[linear-gradient(180deg,#BFB9AC_0%,#EFECDF_100%)]",3,"click"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-[2.4rem]","border-[0.2rem]","border-solid","border-[rgba(255,255,255,0.08)]","px-[1.6rem]","text-[#37362C]","custom-transition-all","group-hover:border-[rgba(255,255,255,0.18)]","group-hover:text-[#555447]"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]"],["tpTrigger","click","tpVariation","chickenRoadSettings","tpPlacement","bottom-end",1,"group","flex","h-full","w-[4.2rem]","items-center","justify-center","overflow-hidden","rounded-[2.4rem]","bg-[linear-gradient(180deg,#A9A49A_0%,#E4E1D4_100%)]","shadow-[0_16px_14px_0_rgba(30,29,24,0.40)]","backdrop-blur-[4.5px]","custom-transition-bg","before:bg-[linear-gradient(180deg,#BFB9AC_0%,#EFECDF_100%)]",3,"tpVisible","tp","tpHideOnEscape"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-[2.4rem]","border-[0.2rem]","border-solid","border-[rgba(255,255,255,0.08)]","!text-[#37362C]","custom-transition-all","group-hover:border-[rgba(255,255,255,0.18)]","group-hover:!text-[#555447]"],[1,"icon_new","icon_setting","text-[2rem]"],[1,"icon_new","icon_Close","text-[2rem]"]];},template:function(t,i){t&1&&(r(0,"div",1)(1,"button",2),E("click",function(){return i.openHowGameWorksDialog();}),r(2,"div",3)(3,"span",4),b(4,0),s()()(),r(5,"button",5),E("tpVisible",function(m){return i.onSettingsTooltipToggle(m);}),r(6,"div",6),p(7,Lo,1,0,"i",7)(8,Go,1,0,"i",8),s()()()),t&2&&(a(5),u("tp",i.SettingsTooltipComponent)("tpHideOnEscape",!0),a(2),_(i.isSettingsTooltipOpen?8:7));},dependencies:[Ie],encapsulation:2,changeDetection:0});}}return n;})();function Bo(n,l){if(n&1&&(G(0,"img",3),F(1,"userAvatar")),n&2){let e=c(),t=c();j("src",Q(1,1,e.user,t.UserAvatarSize.MEDIUM),O);}}function zo(n,l){n&1&&G(0,"div",4);}function $o(n,l){if(n&1&&(G(0,"img",7),F(1,"itemImage")),n&2){let e=c();j("src",Q(1,1,e.winItem.id,"medium"),O);}}function Ho(n,l){n&1&&(G(0,"img",16),F(1,"staticAssetUrl")),n&2&&j("src",J(1,1,"/assets/images/chicken-road/current-game/bg.webp"),O);}function Uo(n,l){n&1&&(G(0,"img",17),F(1,"staticAssetUrl")),n&2&&j("src",J(1,1,"/assets/images/chicken-road/current-game/bgMob.webp"),O);}function Wo(n,l){if(n&1&&(A(0,"div",1)(1,"div",2),p(2,Bo,2,4,"img",3)(3,zo,1,0,"div",4),A(4,"div",5)(5,"span",6),d(6),w()()(),p(7,$o,2,4,"img",7),G(8,"img",8),F(9,"staticAssetUrl"),A(10,"div",9)(11,"div",10),G(12,"i",11),A(13,"span",12),d(14),w()(),A(15,"div",13)(16,"span",14),b(17,0),w(),A(18,"span",15),d(19),w()()(),p(20,Ho,2,3,"img",16)(21,Uo,2,3,"img",17),w()),n&2){let e=l,t=c();a(2),_(e.user?2:3),a(4),D("x",e.coefficient),a(),_(e.winItem?7:-1),a(),j("src",J(9,7,"/assets/images/chicken-road/current-game/itemLight.webp"),O),a(6),M(e.winAmount),a(5),M(e.platformsCount),a(),_(t.isLg()?21:20);}}var pi=(()=>{class n{constructor(){this.UserAvatarSize=Ge,this.mediaService=f($),this.chickenRoadState=f(W),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.topGame=C(()=>{let e=this.chickenRoadState.topGames();return e.length>0?e[0]:null;}),this.displayData=C(()=>
11{let e=this.topGame();if(!e)return null;let t=e.winItem||null,i=e.ratio?parseFloat(e.ratio).toFixed(2):"1.00",o="0.00";return e.winItemPrice?o=parseFloat(e.winItemPrice).toFixed(2):e.ratio&&e.amount&&(o=(parseFloat(e.amount)*parseFloat(e.ratio)).toFixed(2)),{user:e.user,winItem:t,coefficient:i,winAmount:o,platformsCount:e.currentStep};});}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["current-game"]],hostAttrs:[1,"absolute","left-0","top-0"],decls:1,vars:1,consts:()=>{let e;return e="Platforms:",[e,[1,"relative","flex","items-center"],[1,"absolute","left-[3.5rem]","top-[2.5rem]","z-[1]","flex","items-center","justify-between","lg:left-[1.9rem]","lg:top-[1.8rem]"],[1,"h-[2.8rem]","w-[2.8rem]","rounded-[0.6rem]","object-cover","lg:h-[2.2rem]","lg:w-[2.2rem]",3,"src"],[1,"h-[2.8rem]","w-[2.8rem]","rounded-[0.6rem]","bg-[#1C2236]","lg:h-[2.2rem]","lg:w-[2.2rem]"],[1,"absolute","bottom-[-0.9rem]","right-[-0.5rem]","flex","h-[1.4rem]","rotate-[-3deg]","items-center","justify-center","rounded-[0.8rem]","bg-[#F2FF40]","px-[0.3rem]"],[1,"text-[0.9rem]","font-400","leading-[1.2rem]","text-black"],[1,"absolute","left-[7rem]","top-[2.34rem]","z-[2]","w-[5.66rem]","lg:left-[4.725rem]","lg:top-[1.65rem]","lg:w-[3.71rem]",3,"src"],[1,"absolute","left-[7.5rem]","top-[1.7rem]","z-[1]","w-[4.8rem]","lg:left-[5.028rem]","lg:top-[1.246rem]","lg:w-[3.2rem]",3,"src"],[1,"absolute","left-[13.5rem]","top-[1.7rem]","z-[1]","flex","flex-col","items-start","justify-center","lg:left-[9.1rem]","lg:top-[1.5rem]"],[1,"flex","items-center","gap-[0.4rem]","pt-[0.6rem]","lg:gap-[0.2rem]","lg:pt-0"],[1,"icon","icon_coin-c","text-[1.5rem]","!text-[#F8CF49]","lg:text-[1rem]"],[1,"text-[1.4rem]","font-400","leading-[2rem]","text-[#F8CF49]","lg:text-[1rem]","lg:leading-[1.4rem]"],[1,"flex","items-center","gap-[0.2rem]"],[1,"text-[1.2rem]","font-400","leading-[1.6rem]","text-white","opacity-80","lg:text-[1rem]","lg:leading-[1.4rem]"],[1,"text-[1.2rem]","font-450","leading-[1.6rem]","text-white","lg:text-[1rem]","lg:leading-[1.4rem]"],[1,"pointer-events-none","z-[0]","h-[11rem]",3,"src"],[1,"pointer-events-none","z-[0]","h-[10.2rem]",3,"src"]];},template:function(t,i){if(t&1&&p(0,Wo,22,9,"div",1),t&2){let o;_((o=i.displayData())?0:-1,o);}},dependencies:[ie,Be,ue],encapsulation:2,changeDetection:0});}}return n;})();var _i=n=>({glassContainer:n});function Vo(n,l){n&1&&(r(0,"span"),b(1,2),s());}function Ko(n,l){n&1&&(r(0,"span"),b(1,3),s());}function jo(n,l){if(n&1){let e=R();r(0,"div",15)(1,"div",16),h(2,"i",17),r(3,"span",18),d(4,"Chicken Road"),s()(),r(5,"div",16)(6,"button",19),E("click",function(){v(e);let i=c();return y(i.openHowGameWorksDialog());}),r(7,"span",20),p(8,Vo,2,0,"span")(9,Ko,2,0,"span"),s()(),h(10,"roleplaying"),r(11,"button",21),E("tpVisible",function(i){v(e);let o=c();return y(o.onSettingsTooltipToggle(i));}),h(12,"i",22),s()()(),h(13,"difficulty-game",23);}if(n&2){let e=c();a(8),_(e.isShowRoleplayingButton()?9:8),a(3),u("tp",e.SettingsTooltipComponent)("tpHideOnEscape",!0);}}function Jo(n,l){n&1&&h(0,"difficulty-game");}function Xo(n,l){n&1&&h(0,"bet-creator-ratios");}function Yo(n,l){n&1&&h(0,"bet-component");}function qo(n,l){if(n&1&&(r(0,"div",11),h(1,"roleplaying"),pe(2,13),s()),n&2){c();let e=_e(22);a(2),u("ngTemplateOutlet",e);}}function Qo(n,l){if(n&1&&pe(0,13),n&2){c();let e=_e(22);u("ngTemplateOutlet",e);}}function Zo(n,l){n&1&&h(0,"home-actions");}function ea(n,l){if(n&1&&(r(0,"div",24),h(1,"div",25),r(2,"span",26),d(3),s(),r(4,"span",27),b(5,4),s()()),n&2){let e=c();a(3),M(e.onlineCount());}}var lm=(()=>{class n{constructor(){this.cdr=f(ye),this.dialog=f(de),this.confirmAgeService=f(Qt),this.amplitudeService=f(It),this.authState=f(Y),this.chickenRoadState=f(W),this.onlineCount=C(()=>this.chickenRoadState.onlineCount()),this.BetType=re,this.SettingsTooltipComponent=We,this.mediaService=f($),this.isLg=z(this.mediaService.mediaQuery("max","lg")),this.isSettingsTooltipOpen=!1,this.modeDescriptionData=ti,this.howItWorksSlides=Ve(f(Re)),this.roleplayingService=f(Ut),this.isShowRoleplayingButton=C(()=>{let e=this.roleplayingService.needPlayBalance();return e&&e>0;}),this.wsEvents=Mt({"chicken_road.new_game":e=>this.chickenRoadState.onWsNewGame(e)},"chicken_road"),ee(()=>{this.confirmAgeService.needShowConfirmModal()&&this.confirmAgeService.showConfirmAgeModal();}),this.amplitudeService.trackEvent("chicken_road_page_open",{source:jt()});}ngOnInit(){this.authState.isAuthenticated()&&this.chickenRoadState.loadCurrentGame().subscribe(),"requestIdleCallback"in window?(requestIdleCallback(()=>{this.chickenRoadState.loadAllGames().subscribe();},{timeout:5e3}),requestIdleCallback(()=>{this.chickenRoadState.loadTopGames().subscribe();},{timeout:8e3})):(setTimeout(()=>{this.chickenRoadState.loadAllGames().subscribe();},3e3),setTimeout(()=>{this.chickenRoadState.loadTopGames().subscribe();},5e3));}onSettingsTooltipToggle(e){this.isSettingsTooltipOpen=e,this.cdr.markForCheck();}openHowGameWorksDialog(){return Ae(this,null,function*(){let e=yield import("./chunk-UESWB53R.js");this.dialog.open(e.HowGameWorksDialog,{data:{slides:this.howItWorksSlides}});});}handleSpaceKey(e){let t=e,i=e.target;i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable||this.isSettingsTooltipOpen||(e.preventDefault(),this.betCreatorComponent&&this.betCreatorComponent.placeBet());}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["chicken-road-home"]],viewQuery:function(t,i){if(t&1&&Te(Ze,5),t&2){let o;me(o=ce())&&(i.betCreatorComponent=o.first);}},hostAttrs:[1,"flex","flex-col","w-full","max-w-[120rem]","mx-auto","mt-[0.8rem]","gap-[2.4rem]","lg:gap-[1.6rem]"],hostBindings:function(t,i){t&1&&E("
11keydown.space",function(m){return i.handleSpaceKey(m);},lt);},decls:23,vars:13,consts:()=>{let e;e="How to play?";let t;t="How to play?";let i;return i="Online",[["betCreator",""],["onlineCountTemplate",""],e,t,i,[1,"lg:flex","lg:w-full","lg:flex-col","lg:gap-[0.8rem]"],[1,"relative","flex","h-[61.4rem]","w-full","items-end","justify-center","overflow-hidden","rounded-[3.2rem]","bg-[#040509]","text-white","lg:h-[47.6rem]","lg:rounded-[2.4rem]"],[1,"jusify-center","relative","z-[1]","flex","w-full","items-center","space-x-[1.6rem]","pb-[3.2rem]","pl-[3.2rem]","lg:h-auto","lg:px-[0.6rem]","lg:pb-[0.6rem]"],[1,"flex","h-full","w-full","items-center","space-x-[0.8rem]","lg:h-full","lg:flex-col","lg:space-x-0","lg:space-y-[1.4rem]","lg:rounded-[2rem]","lg:p-[1.2rem]",3,"ngClass"],[1,"flex","h-[10.8rem]","w-full","items-start","justify-start","space-x-[1.6rem]","p-[1.6rem]","lg:h-full","lg:flex-col","lg:space-x-0","lg:space-y-[1rem]","lg:p-0",3,"ngClass"],[1,"flex","h-full","items-center","space-x-[0.8rem]","lg:h-[5.4rem]","lg:w-full"],[1,"items-cenrer","absolute","right-[1.1rem]","top-[-3rem]","flex","gap-[1.2rem]"],[1,"absolute","left-0","top-0","z-[0]","h-full","w-full","lg:h-[29.6rem]"],[3,"ngTemplateOutlet"],[1,"lg:px-[1.4rem]",3,"data"],[1,"flex","w-full","items-center","justify-between","px-[1.4rem]"],[1,"flex","items-center","space-x-[0.6rem]"],[1,"icon_new","icon_Chiken","text-[1.4rem]","!text-[#CDDBFF]"],[1,"text-[1.6rem]","font-400","leading-[2.4rem]","text-[#CDDBFF]"],[1,"flex","h-[2.2rem]","items-center","justify-center","rounded-[1.2rem]","bg-[#1F2640]","px-[1rem]",3,"click"],[1,"text-[1.1rem]","font-400","leading-[1.4rem]","text-[#ACBBE2]"],["tpTrigger","click","tpVariation","chickenRoadSettings","tpPlacement","bottom-end",3,"tpVisible","tp","tpHideOnEscape"],[1,"icon_new","icon_setting","text-[2.2rem]","!text-[#637299]"],[1,"lg:px-[1.4rem]"],[1,"flex","items-center","space-x-[0.5rem]","lg:absolute","lg:right-[1.2rem]","lg:top-[1.2rem]"],[1,"h-[0.6rem]","w-[0.6rem]","rounded-full","bg-[#F6D85F]"],[1,"text-[1.4rem]","font-400","leading-[2rem]","text-[#F6D85F]","lg:text-[1.1rem]","lg:leading-[1.4rem]"],[1,"text-[1.4rem]","font-400","leading-[2rem]","text-[#F6D85F]","opacity-80","lg:text-[1.1rem]","lg:leading-[1.4rem]"]];},template:function(t,i){t&1&&(r(0,"div",5),p(1,jo,14,3),r(2,"div",6)(3,"div",7),p(4,Jo,1,0,"difficulty-game"),r(5,"div",8),h(6,"tabs-chicken-road"),r(7,"div",9),p(8,Xo,1,0,"bet-creator-ratios")(9,Yo,1,0,"bet-component"),r(10,"div",10),h(11,"bet-take")(12,"bet-creator",null,0),s()()(),p(14,qo,3,1,"div",11),s(),h(15,"chicken-road-game-field",12),p(16,Qo,1,1,"ng-container",13),p(17,Zo,1,0,"home-actions"),h(18,"current-game"),s(),h(19,"last-wins")(20,"mode-description",14),Ee(21,ea,6,1,"ng-template",null,1,ve),s()),t&2&&(a(),_(i.isLg()?1:-1),a(3),_(i.isLg()?-1:4),a(),u("ngClass",te(9,_i,i.isLg())),a(2),u("ngClass",te(11,_i,!i.isLg())),a(),_(i.authState.betType()===i.BetType.BALANCE?8:9),a(6),_(i.isLg()?-1:14),a(2),_(i.isLg()?16:-1),a(),_(i.isLg()?-1:17),a(3),u("data",i.modeDescriptionData));},dependencies:[B,ni,oi,ei,ri,Ze,si,ci,di,ke,ui,Ie,pi,Jt,Ht],styles:[`[_nghost-%COMP%]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;pointer-events:none}.glassContainer[_ngcontent-%COMP%]{display:flex;background:#15181e59;align-items:center;justify-content:center;border-radius:2.4rem;box-shadow:inset 3px 3px 5px #0000001a;backdrop-filter:blur(8px)}@media(max-width:992px){.glassContainer[_ngcontent-%COMP%]{border-radius:2rem}}.glassContainer[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:2.4rem;box-shadow:inset 2px 2px 0 -1.5px #ffffff38,inset 0 0 3px #ffffff14}@media(max-width:992px){.glassContainer[_ngcontent-%COMP%]:before{border-radius:2rem}}.glassContainer[_ngcontent-%COMP%]:after{content:"";position:absolute;z-index:-1;inset:0;border-radius:2.4rem;backdrop-filter:blur(10px);filter:url(#container-glass);overflow:hidden;isolation:isolate}@media(max-width:992px){.glassContainer[_ngcontent-%COMP%]:after{border-radius:2rem}}
12/*# sourceMappingURL=home.component-FMAUB7H5.css.map */`],changeDetection:0});}}return n;})();export{lm as default};/**i18n:4cfc642841e3f98b3238eb2aee0b82103f3f91f07113d1dbea60b47686a5d513*///# sourceMappingURL=chunk-4Y7B3LA3.js.map

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.