@betorigami/games 0.7.30 → 0.7.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +178 -166
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames:Dn}=Object;var Nn=Object.prototype.hasOwnProperty;var ho=(o,i,a)=>{a=o!=null?Tn(Bn(o)):{};let t=i||!o||!o.__esModule?qr(a,"default",{value:o,enumerable:!0}):a;for(let r of Dn(o))if(!Nn.call(t,r))qr(t,r,{get:()=>o[r],enumerable:!0});return t};var Uo=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports);var d=function(o,i,a,t){var r=arguments.length,e=r<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,a):t,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")e=Reflect.decorate(o,i,a,t);else for(var s=o.length-1;s>=0;s--)if(n=o[s])e=(r<3?n(e):r>3?n(i,a,e):n(i,a))||e;return r>3&&e&&Object.defineProperty(i,a,e),e};var lt=Uo((R1,gs)=>{gs.exports={accessibility:{betPlacedAnnouncement:"تم وضع الرهان بنجاح",gameInProgress:"اللعبة قيد التقدم",languageChanged:"تم تغيير اللغة إلى {language}"},alerts:{autobetStarted:"تم بدء وضع الرهان التلقائي",autobetStopped:"تم إيقاف وضع الرهان التلقائي",betAmountAboveMaxBet:"مبلغ الرهان أعلى من الحد الأقصى للرهان",betAmountBelowMinBet:"مبلغ الرهان أقل من الحد الأدنى للرهان",betCancelled:"تم إلغاء الرهان",betDetailsCopied:"تم نسخ تفاصيل الرهان إلى الحافظة!",betPlaced:"تم وضع الرهان بنجاح",connectionError:"خطأ في الاتصال",errorProcessingBet:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",failedToLoadBetData:"فشل تحميل بيانات الرهان",failedToShareBetDetails:"فشل في مشاركة تفاصيل الرهان",gameError:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",insufficientBalance:"رصيد غير كاف",notEnoughBalance:"ليس هناك توازن كاف"},autobet:{baseAmount:"المبلغ الأساسي",decrease:"ينقص",games:"ألعاب",games10:"10 ألعاب",games100:"100 لعبة",games25:"25 لعبة",games5:"5 ألعاب",games50:"50 لعبة",increase:"يزيد",infinite:"لانهائي",numberOfBets:"عدد الرهانات",onLoss:"عن الخسارة",onWin:"على ويندوز",reset:"إعادة ضبط",startAutobet:"ابدأ الرهان التلقائي",stopAutobet:"إيقاف الرهان التلقائي",stopOnLoss:"وقف الخسارة",stopOnProfit:"إيقاف الربح",stopOnWin:"توقف عند الفوز",title:"الرهان التلقائي"},common:{amount:"كمية",animation:"الرسوم المتحركة",auto:"آلي",back:"خلف",balance:"توازن",bet:"مبلغ الرهان",betAmount:"مبلغ الرهان",cancel:"يلغي",cashOut:"صرف نقدي",change:"يتغير",classic:"كلاسيكي",close:"يغلق",closeAlert:"إغلاق التنبيه",closeDialog:"إغلاق الحوار",confirm:"يتأكد",copy:"ينسخ",error:"خطأ",fairness:"العدالة",footerNavigation:"التنقل في التذييل",high:"عالي",history:"تاريخ",hotkeys:"مفاتيح التشغيل السريع",id:"بطاقة تعريف",instantBet:"الرهان الفوري",loading:"تحميل...",loadMore:"تحميل المزيد",lobby:"العودة إلى الردهة",loss:"خسارة",low:"قليل",manual:"يدوي",medium:"واسطة",multiplier:"المضاعف",next:"التالي",odds:"احتمال",payout:"الدفع",placeBet:"وضع الرهان",previous:"سابق",profit:"ربح",profitOnWin:"الربح على الفوز",provablyFair:"عادلة بشكل يمكن إثباته",rangeSlider:"شريط تمرير النطاق",risk:"مخاطرة",settings:"إعدادات",share:"يشارك",siteInformation:"معلومات الموقع",space:"فضاء",start:"يبدأ",stop:"قف",success:"نجاح",targetMultiplier:"المضاعف",thisFieldIsRequired:"هذه الخانة مطلوبه",timestamp:"وقت",toggleHotkeys:"تبديل مفاتيح التشغيل السريع",toggleSwitch:"مفتاح التبديل",viewFairnessInformation:"عرض معلومات العدالة",volume:"مقدار",win:"يفوز",winChance:"فرصة الفوز"},errors:{connection:"خطأ في الاتصال",dice:{multiplierRange:"يجب أن يكون بين 1.0102 و 9900",winChanceRange:"يجب أن يكون بين 0.01 و 98"},game:"حدث خطأ في اللعبة",insufficientBalance:"رصيد غير كاف",limbo:{multiplierRange:"يجب أن يكون المضاعف 1.01 على الأقل",winChanceRange:"يجب أن تكون فرصة الفوز بين 0.000099 و 99.9999"}},fairness:{activeClientSeed:"بذرة العميل النشط",enterClientSeed:"أدخل بذرة العميل",enterProof:"أدخل الدليل",enterPublicKey:"أدخل المفتاح العام",enterRandomness:"أدخل العشوائية",enterRequest:"أدخل الطلب",invalidGame:"تم تقديم نوع لعبة غير صالح.",noBettingHistory:"لا يوجد تاريخ مراهنة",outcomeCalculationInfo:"يتم حساب نتيجة كل لعبة باستخدام قيمة عشوائية كمدخلات.",outcomeNotVerified:"لم يتم التحقق من نتيجة هذه اللعبة",outcomeVerified:"لقد تم التحقق من نتيجة هذه اللعبة ويمكن إثبات أنها عادلة",pendingInputs:"المدخلات المعلقة",proof:"دليل",provableFairnessUnverified:"العدالة القابلة للإثبات غير مؤكدة",provableFairnessVerified:"تم التحقق من العدالة القابلة للإثبات",publicKey:"المفتاح العام",randomness:"العشوائية",request:"طلب",saveClientSeed:"حفظ بذرة العميل",verified:"تم التحقق",verifyOutcome:"التحقق من النتيجة",viewOutcome:"عرض النتيجة"},games:{dice:{result:"نتيجة",roll:"لفافة",rollOver:"انقلب",rollUnder:"تدحرج تحت",target:"هدف",title:"النرد"},keno:{autoPick:"الاختيار التلقائي",clearTable:"واضح",draw:"يرسم",hits:"الضربات",kenoGameGrid:"شبكة لعبة كينو",kenoNumber:"رقم كينو",numbers:"أرقام",pick:"يختار",select1to10Tiles:"حدد 1-10 بلاطات",selectAtLeastOneTile:"الرجاء تحديد بلاطة واحدة على الأقل",selectNumbers:"اختر الأرقام",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل",title:"كينو"},limbo:{cashout:"صرف نقدي",crashed:"تحطمت",target:"هدف",targetMultiplier:"المضاعف",title:"ليمبو"},mines:{cashout:"صرف نقدي",gem:"جوهرة",gems:"الأحجار الكريمة",mine:"مِلكِي",mines:"المناجم",nextGem:"الجوهرة التالية",reveal:"يكشف",selectRandomTile:"حدد بلاطة عشوائية",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل للمراهنة تلقائيًا",tile:"بلاط",title:"المناجم",unrevealed:"غير مكشوف"}},modals:{betResult:"نتيجة الرهان",fairnessAndHistory:"العدالة والتاريخ",gameArea:"منطقة اللعبة",gameControls:"عناصر التحكم في اللعبة"},outcomes:{draw:"يرسم",loss:"خسارة",win:"يفوز"},share:{betResultText:"تحقق من نتيجة رهاني!",betResultTitle:"نتيجة الرهان"}}});var dt=Uo((I1,ps)=>{ps.exports={accessibility:{betPlacedAnnouncement:"Wette erfolgreich platziert",gameInProgress:"Spiel läuft",languageChanged:"Sprache geändert zu {language}"},alerts:{autobetStarted:"Autobet-Modus gestartet",autobetStopped:"Autobet-Modus gestoppt",betAmountAboveMaxBet:"Der Einsatzbetrag liegt über dem Höchsteinsatz",betAmountBelowMinBet:"Der Einsatzbetrag liegt unter dem Mindesteinsatz",betCancelled:"Wette abgesagt",betDetailsCopied:"Wettdetails in die Zwischenablage kopiert!",betPlaced:"Wette erfolgreich platziert",connectionError:"Verbindungsfehler",errorProcessingBet:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",failedToLoadBetData:"Wettdaten konnten nicht geladen werden",failedToShareBetDetails:"Wettdetails konnten nicht geteilt werden",gameError:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",insufficientBalance:"Unzureichendes Gleichgewicht",notEnoughBalance:"Nicht genug Gleichgewicht"},autobet:{baseAmount:"Basisbetrag",decrease:"Verringern",games:"Spiele",games10:"10 Spiele",games100:"100 Spiele",games25:"25 Spiele",games5:"5 Spiele",games50:"50 Spiele",increase:"Zunahme",infinite:"Unendlich",numberOfBets:"Anzahl der Wetten",onLoss:"Bei Verlust",onWin:"Bei Win",reset:"Zurücksetzen",startAutobet:"Starten Sie Autobet",stopAutobet:"Stoppen Sie Autobet",stopOnLoss:"Stopp bei Verlust",stopOnProfit:"Stoppen Sie den Gewinn",stopOnWin:"Stopp bei Win",title:"Autobet"},common:{amount:"Menge",animation:"Animation",auto:"Auto",back:"Zurück",balance:"Gleichgewicht",bet:"Einsatzbetrag",betAmount:"Einsatzbetrag",cancel:"Stornieren",cashOut:"Auszahlung",change:"Ändern",classic:"Klassiker",close:"Schließen",closeAlert:"Warnung schließen",closeDialog:"Dialog schließen",confirm:"Bestätigen",copy:"Kopie",error:"Fehler",fairness:"Fairness",footerNavigation:"Footer navigation",high:"Hoch",history:"Geschichte",hotkeys:"Tastenkombinationen",id:"AUSWEIS",instantBet:"Sofortwette",loading:"Laden...",loadMore:"Mehr laden",lobby:"Zurück zur Lobby",loss:"Verlust",low:"Niedrig",manual:"Handbuch",medium:"Medium",multiplier:"Multiplikator",next:"Nächste",odds:"Chancen",payout:"Auszahlung",placeBet:"Wette platzieren",previous:"Vorherige",profit:"Profitieren",profitOnWin:"Gewinn beim Gewinn",provablyFair:"Nachweislich fair",rangeSlider:"Bereichsregler",risk:"Risiko",settings:"Einstellungen",share:"Aktie",siteInformation:"Site-Informationen",space:"RAUM",start:"Start",stop:"Stoppen",success:"Erfolg",targetMultiplier:"Multiplikator",thisFieldIsRequired:"Dieses Feld ist erforderlich",timestamp:"Zeit",toggleHotkeys:"Hotkeys umschalten",toggleSwitch:"Kippschalter",viewFairnessInformation:"Fairnessinformationen anzeigen",volume:"Volumen",win:"Gewinnen",winChance:"Gewinnchance"},errors:{connection:"Verbindungsfehler",dice:{multiplierRange:"Muss zwischen 1,0102 und 9900 liegen",winChanceRange:"Muss zwischen 0,01 und 98 liegen"},game:"Es ist ein Spielfehler aufgetreten",insufficientBalance:"Unzureichendes Gleichgewicht",limbo:{multiplierRange:"Der Multiplikator muss mindestens 1,01 betragen",winChanceRange:"Die Gewinnchance muss zwischen 0,000099 und 99,9999 liegen"}},fairness:{activeClientSeed:"Aktiver Client-Seed",enterClientSeed:"Client-Seed eingeben",enterProof:"Beweis eingeben",enterPublicKey:"Öffentlichen Schlüssel eingeben",enterRandomness:"Geben Sie Zufälligkeit ein",enterRequest:"Anfrage eingeben",invalidGame:"Ungültiger Spieltyp angegeben.",noBettingHistory:"Kein Wettverlauf",outcomeCalculationInfo:"Das Ergebnis jedes Spiels wird anhand eines Zufallswerts als Eingabe berechnet.",outcomeNotVerified:"Das Ergebnis dieses Spiels konnte nicht verifiziert werden",outcomeVerified:"Das Ergebnis dieses Spiels wurde überprüft und ist nachweislich fair",pendingInputs:"Ausstehende Eingaben",proof:"Nachweisen",provableFairnessUnverified:"Nachweisbare Fairness nicht verifiziert",provableFairnessVerified:"Nachweisbare Fairness verifiziert",publicKey:"Öffentlicher Schlüssel",randomness:"Zufälligkeit",request:"Anfrage",saveClientSeed:"Client-Seed speichern",verified:"Verifiziert",verifyOutcome:"Ergebnis überprüfen",viewOutcome:"Ergebnis anzeigen"},games:{dice:{result:"Ergebnis",roll:"Rollen",rollOver:"Sich umdrehen",rollUnder:"Unterrollen",target:"Ziel",title:"Würfel"},keno:{autoPick:"Automatische Auswahl",clearTable:"Klar",draw:"Ziehen",hits:"Treffer",kenoGameGrid:"Keno-Spielraster",kenoNumber:"Keno-Nummer",numbers:"Zahlen",pick:"Wählen",select1to10Tiles:"Wählen Sie 1–10 Kacheln aus",selectAtLeastOneTile:"Bitte wählen Sie mindestens eine Kachel aus",selectNumbers:"Zahlen auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens eine Kachel aus",title:"Keno"},limbo:{cashout:"Auszahlung",crashed:"Abgestürzt",target:"Ziel",targetMultiplier:"Multiplikator",title:"Limbo"},mines:{cashout:"Auszahlung",gem:"Juwel",gems:"Edelsteine",mine:"Meins",mines:"Minen",nextGem:"Nächster Edelstein",reveal:"Aufdecken",selectRandomTile:"Zufällige Kachel auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens ein Feld für die automatische Wette aus",tile:"Fliese",title:"Minen",unrevealed:"Unenthüllt"}},modals:{betResult:"Wettergebnis",fairnessAndHistory:"Fairness und Geschichte",gameArea:"Spielbereich",gameControls:"Spielsteuerung"},outcomes:{draw:"Ziehen",loss:"Verlust",win:"Gewinnen"},share:{betResultText:"Schauen Sie sich mein Wettergebnis an!",betResultTitle:"Wettergebnis"}}});var ct=Uo((J1,bs)=>{bs.exports={common:{bet:"Bet Amount",cancel:"Cancel",confirm:"Confirm",close:"Close",loading:"Loading...",error:"Error",success:"Success",back:"Back",next:"Next",previous:"Previous",start:"Start",stop:"Stop",auto:"Auto",manual:"Manual",amount:"Amount",balance:"Balance",win:"Win",loss:"Loss",profit:"Profit",payout:"Payout",multiplier:"Multiplier",odds:"Odds",history:"History",provablyFair:"Provably Fair",lobby:"Back to Lobby",fairness:"Fairness",settings:"Settings",placeBet:"Place Bet",profitOnWin:"Profit On Win",targetMultiplier:"Multiplier",winChance:"Win Chance",cashOut:"Cash Out",change:"Change",copy:"Copy",volume:"Volume",instantBet:"Instant Bet",hotkeys:"Hotkeys",animation:"Animation",risk:"Risk",classic:"Classic",low:"Low",medium:"Medium",high:"High",closeDialog:"Close dialog",closeAlert:"Close alert",toggleHotkeys:"Toggle Hotkeys",siteInformation:"Site information",footerNavigation:"Footer navigation",viewFairnessInformation:"View fairness information",share:"Share",id:"ID",timestamp:"Time",space:"SPACE",betAmount:"Bet Amount",loadMore:"Load More",thisFieldIsRequired:"This field is required",toggleSwitch:"Toggle switch",rangeSlider:"Range slider",gameInfo:"Game Info",copied:"Copied",infoIntro:"Need more information? Contact our support team to learn more about how our games work."},games:{dice:{title:"Dice",rollOver:"Roll Over",rollUnder:"Roll Under",target:"Target",roll:"Roll",result:"Result"},keno:{title:"Keno",selectNumbers:"Select Numbers",draw:"Draw",numbers:"Numbers",hits:"Hits",pick:"Pick",autoPick:"Auto Pick",clearTable:"Clear",select1to10Tiles:"Select 1-10 Tiles",kenoNumber:"Keno number",kenoGameGrid:"Keno Game Grid",selectTileToAutobet:"Please select at least one tile",selectAtLeastOneTile:"Please select at least one tile"},limbo:{title:"Limbo",target:"Target",crashed:"Crashed",cashout:"Cash Out",targetMultiplier:"Multiplier",multiplierError:"Must be at least 1.01",winChanceError:"Must be between 0.000099 and 99.9999"},mines:{title:"Mines",mines:"Mines",gems:"Gems",reveal:"Reveal",cashout:"Cash Out",selectRandomTile:"Select Random Tile",nextGem:"Next Gem",mine:"Mine",gem:"Gem",tile:"Tile",unrevealed:"Unrevealed",selectTileToAutobet:"Please select at least one tile to autobet"}},autobet:{title:"Autobet",numberOfBets:"Number of Bets",onWin:"On Win",onLoss:"On Loss",stopOnWin:"Stop on Win",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",increase:"Increase",decrease:"Decrease",reset:"Reset",baseAmount:"Base Amount",games5:"5 games",games10:"10 games",games25:"25 games",games50:"50 games",games100:"100 games",infinite:"Infinite",startAutobet:"Start Autobet",stopAutobet:"Stop Autobet",games:"Games"},modals:{betResult:"Bet Result",fairnessAndHistory:"Fairness and History",gameArea:"Game Area",gameControls:"Game Controls",gameInfo:"Game Info"},alerts:{betPlaced:"Bet placed successfully",betCancelled:"Bet cancelled",insufficientBalance:"Insufficient balance",connectionError:"Connection error",gameError:"There was an error processing your bet. Please try again.",failedToLoadBetData:"Failed to load bet data",betDetailsCopied:"Bet details copied to clipboard!",failedToShareBetDetails:"Failed to share bet details",notEnoughBalance:"Not enough balance",errorProcessingBet:"There was an error processing your bet. Please try again.",autobetStopped:"Stopped autobet mode",autobetStarted:"Started autobet mode",betAmountBelowMinBet:"Bet amount is below minimum bet",betAmountAboveMaxBet:"Bet amount is above maximum bet"},fairness:{activeClientSeed:"Active Client Seed",enterClientSeed:"Enter Client Seed",saveClientSeed:"Save Client Seed",publicKey:"Active Public Key",request:"Request",proof:"Proof",randomness:"Randomness",noBettingHistory:"No betting history",verifyOutcome:"Verify Outcome",enterPublicKey:"Enter Public Key",enterRequest:"Enter Request",enterProof:"Enter Proof",enterRandomness:"Enter Randomness",outcomeCalculationInfo:"This game uses a provably fair algorithm that ensures the outcome is fair and transparent.",learnMore:"Learn More",info:{p1:"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome.",p2:"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety.",p3:"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time.",p4:"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.",moreInfo:"Need more information? Contact our support team to learn more about how our games work."},newClientSeed:"New Client Seed",pendingInputs:"Pending Inputs",provableFairnessVerified:"Provable Fairness Verified",provableFairnessUnverified:"Provable Fairness Unverified",viewOutcome:"View Outcome",invalidGame:"Invalid game type provided.",outcomeVerified:"The outcome of this round has been verified with our public key and is provably fair.",outcomeNotVerified:"The outcome of this game could not be verified. Double check you have entered the correct information and try again.",verified:"Verified"},share:{betResultTitle:"Bet Result",betResultText:"Check out my bet result!"},errors:{dice:{multiplierRange:"Must be between 1.0102 and 9900",winChanceRange:"Must be between 0.01 and 98"}},accessibility:{sliderValue:"{value} out of {max}"},gameInfo:{howItWorks:"How it works",tutorial:"Tutorial",payouts:"Payouts & odds",tips:"Tips",strategyTitle:"Strategy",dice:{title:"Dice",overview:"Set a target number and choose whether the roll will land under or over it. Moving the slider changes your win chance and multiplier—a higher chance lowers the multiplier, a lower chance increases it. Each round is one independent roll on the game’s scale (shown in-game).",how1:"Choose Roll Under or Roll Over.",how2:"Set your target number (or adjust Win Chance/Multiplier).",how3:"Enter your bet amount and press Place Bet.",how4:"We generate one random result (displayed on the 0–99.99 scale in-game).",how5:"You win if the result is in your chosen range: Under wins on numbers strictly less than the target; Over wins on numbers strictly greater than the target.",how6:"Your payout is bet × the shown multiplier, which updates as you move the slider.",strategyTip:"Pick your volatility. A lower win chance (tight range) yields bigger multipliers but rarer hits. A higher win chance (wide range) yields smaller multipliers but more frequent wins. Over/Under is symmetric—choose whichever side suits your target and session goals. Size your bets to your bankroll for steadier swings.",provablyFair:"Our verifiable randomness system generates every Dice roll. After each round, you can view the inputs and proof, verify the roll with our public key, and reproduce the same result."},keno:{title:"Keno",overview:"Keno is a quick and simple game: pick your lucky numbers and try to match the draw. You can choose 1–10 numbers from 1–40, and we then draw 10 numbers. The more of your picks that hit, the higher your payout. Fewer picks = higher multipliers per hit; more picks = more ways to hit something each round.",how1:"Pick 1–10 numbers (“spots”) on the 1–40 board.",how2:"Set your bet amount and place your bet.",how3:"We draw 10 winning numbers; your matches are highlighted.",how4:"Payouts depend on how many spots you selected and how many hits you got—check the paytable (it updates when you change your number of spots).",how5:"You can never hit more numbers than you selected, and the maximum selection is 10.",strategyTip:"Choose your volatility. Picking fewer spots (1–3) means rarer wins but much bigger multipliers. More spots (7–10) give more frequent hits but smaller average returns per hit. A middle range (4–6) balances hit rate and payout. Adjust your bet size to match your risk preference and bankroll.",provablyFair:"Our verifiable randomness system generates every Keno draw. After each round, you can view the inputs and proof, verify the draw with our public key, and reproduce the same result."},mines:{title:"Mines",overview:"Mines is about picking safe tiles and deciding when to cash out. Before the round starts, choose how many mines will be hidden on the board. Each safe tile you reveal increases your multiplier. Hit a mine, and the round ends with no payout. More mines raise the risk but also the potential reward per successful reveal.",how1:"Choose the number of mines for this round.",how2:"Set your bet amount and press Place Bet.",how3:"Click tiles to reveal them: a safe tile increases your multiplier; a mine ends the round.",how4:"You can press Cash Out at any time to lock in your current multiplier.",how5:"Your payout is bet × the current multiplier when you Cash Out.",how6:"The round ends when you Cash Out or when a mine is revealed.",strategyTip:"Pick your volatility. Fewer mines = safer reveals and smaller multipliers per step. More mines = riskier reveals with bigger multipliers. Set a target or use a stop-loss to manage swings. Consistent bet sizing and disciplined cash outs help keep variance in check.",provablyFair:"Our verifiable randomness system generates each board’s hidden mine layout. After every round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."},limbo:{title:"Limbo",overview:"Pick a target multiplier and try to hit it. In Limbo, you set your desired payout, and the game draws a single random outcome multiplier. If the outcome is at least your target, you win. If it’s lower, you lose. A higher chance lowers the multiplier; a lower chance increases it. Each round resolves instantly.",how1:"Set your target multiplier (or adjust Win Chance/Multiplier).",how2:"Enter your bet amount and press Place Bet.",how3:"We generate one random outcome multiplier.",how4:"You win if the outcome is greater than or equal to your target.",how5:"Your payout is bet × your target multiplier; otherwise, you lose your bet.",strategyTip:"Choose your volatility. Lower targets win more often but pay less, while higher targets hit rarely but pay much more. Consider a fixed target per session or mix in occasional long shots, and size bets consistently to manage variance.",provablyFair:"Our verifiable randomness system generates every Limbo outcome. After each round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."}}}});var ht=Uo((V1,ws)=>{ws.exports={accessibility:{betPlacedAnnouncement:"Apuesta realizada con éxito",gameInProgress:"Juego en progreso",languageChanged:"Idioma cambiado a {language}"},alerts:{autobetStarted:"Se inició el modo de apuesta automática",autobetStopped:"Se detuvo el modo de apuesta automática",betAmountAboveMaxBet:"El monto de la apuesta es superior a la apuesta máxima",betAmountBelowMinBet:"El monto de la apuesta es inferior a la apuesta mínima",betCancelled:"Apuesta cancelada",betDetailsCopied:"¡Detalles de la apuesta copiados al portapapeles!",betPlaced:"Apuesta realizada con éxito",connectionError:"Error de conexión",errorProcessingBet:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",failedToLoadBetData:"No se pudieron cargar los datos de la apuesta",failedToShareBetDetails:"No se pudieron compartir los detalles de la apuesta",gameError:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"No hay suficiente equilibrio"},autobet:{baseAmount:"Monto base",decrease:"Disminuir",games:"Juegos",games10:"10 juegos",games100:"100 juegos",games25:"25 juegos",games5:"5 juegos",games50:"50 juegos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apuestas",onLoss:"Sobre la pérdida",onWin:"En Win",reset:"Reiniciar",startAutobet:"Iniciar apuesta automática",stopAutobet:"Detener la apuesta automática",stopOnLoss:"Detener la pérdida",stopOnProfit:"Detener las ganancias",stopOnWin:"Detenerse en Win",title:"Apuesta automática"},common:{amount:"Cantidad",animation:"Animación",auto:"Auto",back:"Atrás",balance:"Balance",bet:"Monto de la apuesta",betAmount:"Monto de la apuesta",cancel:"Cancelar",cashOut:"Retiro de efectivo",change:"Cambiar",classic:"Clásico",close:"Cerca",closeAlert:"Cerrar alerta",closeDialog:"Cerrar diálogo",confirm:"Confirmar",copy:"Copiar",error:"Error",fairness:"Justicia",footerNavigation:"Navegación de pie de página",high:"Alto",history:"Historia",hotkeys:"Teclas de acceso rápido",id:"IDENTIFICACIÓN",instantBet:"Apuesta instantánea",loading:"Cargando...",loadMore:"Cargar más",lobby:"Volver al vestíbulo",loss:"Pérdida",low:"Bajo",manual:"Manual",medium:"Medio",multiplier:"Multiplicador",next:"Próximo",odds:"Impares",payout:"Pago",placeBet:"Realizar apuesta",previous:"Anterior",profit:"Ganancia",profitOnWin:"Ganancias al ganar",provablyFair:"Demostrablemente justo",rangeSlider:"Control deslizante de rango",risk:"Riesgo",settings:"Ajustes",share:"Compartir",siteInformation:"Información del sitio",space:"ESPACIO",start:"Comenzar",stop:"Detener",success:"Éxito",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo es obligatorio",timestamp:"Tiempo",toggleHotkeys:"Alternar teclas de acceso rápido",toggleSwitch:"Interruptor de palanca",viewFairnessInformation:"Ver información de equidad",volume:"Volumen",win:"Ganar",winChance:"Oportunidad de ganar"},errors:{connection:"Error de conexión",dice:{multiplierRange:"Debe estar entre 1.0102 y 9900",winChanceRange:"Debe estar entre 0,01 y 98"},game:"Se produjo un error en el juego",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"El multiplicador debe ser al menos 1,01",winChanceRange:"La probabilidad de ganar debe estar entre 0,000099 y 99,9999"}},fairness:{activeClientSeed:"Semilla de cliente activa",enterClientSeed:"Introducir semilla de cliente",enterProof:"Introducir prueba",enterPublicKey:"Introducir clave pública",enterRandomness:"Entra la aleatoriedad",enterRequest:"Introducir solicitud",invalidGame:"Tipo de juego proporcionado no válido.",noBettingHistory:"Sin historial de apuestas",outcomeCalculationInfo:"El resultado de cada juego se calcula utilizando un valor aleatorio como entrada.",outcomeNotVerified:"No se pudo verificar el resultado de este juego.",outcomeVerified:"El resultado de este juego ha sido verificado y es demostrablemente justo.",pendingInputs:"Entradas pendientes",proof:"Prueba",provableFairnessUnverified:"Justicia demostrable no verificada",provableFairnessVerified:"Justicia demostrable verificada",publicKey:"Clave pública",randomness:"Aleatoriedad",request:"Pedido",saveClientSeed:"Guardar semilla de cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rollo",rollOver:"Dese la vuelta",rollUnder:"Rodar por debajo",target:"Objetivo",title:"Dados"},keno:{autoPick:"Selección automática",clearTable:"Claro",draw:"Dibujar",hits:"Éxitos",kenoGameGrid:"Cuadrícula del juego Keno",kenoNumber:"Número de Keno",numbers:"Números",pick:"Elegir",select1to10Tiles:"Seleccione de 1 a 10 fichas",selectAtLeastOneTile:"Por favor seleccione al menos un mosaico",selectNumbers:"Seleccionar números",selectTileToAutobet:"Por favor seleccione al menos un mosaico",title:"Keno"},limbo:{cashout:"Retiro de efectivo",crashed:"Se estrelló",target:"Objetivo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Retiro de efectivo",gem:"Joya",gems:"Gemas",mine:"Mío",mines:"Minas",nextGem:"Próxima joya",reveal:"Revelar",selectRandomTile:"Seleccionar mosaico aleatorio",selectTileToAutobet:"Seleccione al menos una ficha para apostar automáticamente",tile:"Teja",title:"Minas",unrevealed:"No revelado"}},modals:{betResult:"Resultado de la apuesta",fairnessAndHistory:"Justicia e historia",gameArea:"Área de juego",gameControls:"Controles del juego"},outcomes:{draw:"Dibujar",loss:"Pérdida",win:"Ganar"},share:{betResultText:"¡Mira el resultado de mi apuesta!",betResultTitle:"Resultado de la apuesta"}}});var ut=Uo(($1,vs)=>{vs.exports={accessibility:{betPlacedAnnouncement:"Veto asetettu onnistuneesti",gameInProgress:"Peli käynnissä",languageChanged:"Kieli vaihdettu muotoon {language}"},alerts:{autobetStarted:"Automaattivedonlyöntitila käynnistetty",autobetStopped:"Automaattivedonlyöntitila pysäytetty",betAmountAboveMaxBet:"Panossumma on suurempi kuin maksimipanos",betAmountBelowMinBet:"Panos on alle minimipanoksen",betCancelled:"Veto peruttu",betDetailsCopied:"Vedon tiedot kopioitu leikepöydälle!",betPlaced:"Veto asetettu onnistuneesti",connectionError:"Yhteysvirhe",errorProcessingBet:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",failedToLoadBetData:"Vedonlyöntitietojen lataus epäonnistui",failedToShareBetDetails:"Vedon tietojen jakaminen epäonnistui",gameError:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",insufficientBalance:"Riittämätön saldo",notEnoughBalance:"Ei tarpeeksi tasapainoa"},autobet:{baseAmount:"Perusmäärä",decrease:"Vähennä",games:"Pelit",games10:"10 peliä",games100:"100 peliä",games25:"25 peliä",games5:"5 peliä",games50:"50 peliä",increase:"Lisätä",infinite:"Ääretön",numberOfBets:"Vetojen määrä",onLoss:"Tappiossa",onWin:"Voitossa",reset:"Nollaa",startAutobet:"Aloita automaattiveto",stopAutobet:"Pysäytä automaattinen veto",stopOnLoss:"Stop on Loss",stopOnProfit:"Pysäytä voitto",stopOnWin:"Pysähdy voitossa",title:"Automaattiveto"},common:{amount:"Määrä",animation:"Animaatio",auto:"Auto",back:"Takaisin",balance:"Saldo",bet:"Panossumma",betAmount:"Panossumma",cancel:"Peruuttaa",cashOut:"Käteisnosto",change:"Muuttaa",classic:"Klassinen",close:"Lähellä",closeAlert:"Sulje hälytys",closeDialog:"Sulje valintaikkuna",confirm:"Vahvistaa",copy:"Kopioida",error:"Virhe",fairness:"Oikeudenmukaisuus",footerNavigation:"Alatunnisteen navigointi",high:"Korkea",history:"Historia",hotkeys:"Pikanäppäimet",id:"Henkilöllisyystodistus",instantBet:"Pikaveto",loading:"Ladataan...",loadMore:"Lataa lisää",lobby:"Takaisin aulaan",loss:"Menetys",low:"Matala",manual:"Manuaalinen",medium:"Keskikokoinen",multiplier:"Kerroin",next:"Seuraava",odds:"Kertoimet",payout:"Maksu",placeBet:"Aseta veto",previous:"Edellinen",profit:"Voitto",profitOnWin:"Voitto voitosta",provablyFair:"Todistettavasti reilu",rangeSlider:"Alueen liukusäädin",risk:"Riski",settings:"Asetukset",share:"Jakaa",siteInformation:"Sivuston tiedot",space:"AVARUUS",start:"Aloita",stop:"Stop",success:"Menestys",targetMultiplier:"Kerroin",thisFieldIsRequired:"Tämä kenttä on pakollinen",timestamp:"Aika",toggleHotkeys:"Pikanäppäimet päälle/pois",toggleSwitch:"Kytkin",viewFairnessInformation:"Näytä oikeudenmukaisuustiedot",volume:"Äänenvoimakkuus",win:"Voittaa",winChance:"Voita mahdollisuus"},errors:{connection:"Yhteysvirhe",dice:{multiplierRange:"Täytyy olla välillä 1,0102 ja 9900",winChanceRange:"Täytyy olla välillä 0,01–98"},game:"Pelivirhe tapahtui",insufficientBalance:"Riittämätön saldo",limbo:{multiplierRange:"Kertoimen on oltava vähintään 1,01",winChanceRange:"Voittomahdollisuuden on oltava välillä 0,000099 ja 99,9999"}},fairness:{activeClientSeed:"Aktiivisen asiakkaan siemen",enterClientSeed:"Syötä asiakkaan siemen",enterProof:"Syötä todiste",enterPublicKey:"Syötä julkinen avain",enterRandomness:"Syötä satunnaisuus",enterRequest:"Syötä pyyntö",invalidGame:"Annettu pelityyppi on virheellinen.",noBettingHistory:"Ei vedonlyöntihistoriaa",outcomeCalculationInfo:"Kunkin pelin tulos lasketaan käyttämällä syötteenä satunnaista arvoa.",outcomeNotVerified:"Tämän pelin lopputulosta ei voitu vahvistaa",outcomeVerified:"Tämän pelin lopputulos on vahvistettu ja todistettavasti oikeudenmukainen",pendingInputs:"Odottavat syötteet",proof:"Todiste",provableFairnessUnverified:"Todistettava oikeudenmukaisuus Vahvistamaton",provableFairnessVerified:"Todistettava oikeudenmukaisuus vahvistettu",publicKey:"Julkinen avain",randomness:"Satunnaisuus",request:"Pyytää",saveClientSeed:"Tallenna asiakkaan siemen",verified:"Vahvistettu",verifyOutcome:"Varmista tulos",viewOutcome:"Näytä tulos"},games:{dice:{result:"Tulos",roll:"Rulla",rollOver:"Kaatuminen",rollUnder:"Rullaa alle",target:"Kohde",title:"Nopat"},keno:{autoPick:"Automaattinen valinta",clearTable:"Tyhjennä",draw:"Piirrä",hits:"Osumia",kenoGameGrid:"Keno-peliruudukko",kenoNumber:"Keno-numero",numbers:"Numerot",pick:"Valita",select1to10Tiles:"Valitse 1–10 laattaa",selectAtLeastOneTile:"Valitse vähintään yksi laatta",selectNumbers:"Valitse numerot",selectTileToAutobet:"Valitse vähintään yksi laatta",title:"Keno"},limbo:{cashout:"Käteisnosto",crashed:"Kaatui",target:"Kohde",targetMultiplier:"Kerroin",title:"Limbo"},mines:{cashout:"Käteisnosto",gem:"Helmi",gems:"Jalokivet",mine:"Minun",mines:"Kaivokset",nextGem:"Seuraava helmi",reveal:"Paljastaa",selectRandomTile:"Valitse satunnainen laatta",selectTileToAutobet:"Valitse vähintään yksi ruutu automaattista vetoa varten",tile:"Laatta",title:"Kaivokset",unrevealed:"Paljastumaton"}},modals:{betResult:"Vedon tulos",fairnessAndHistory:"Oikeudenmukaisuus ja historia",gameArea:"Pelialue",gameControls:"Pelin ohjaimet"},outcomes:{draw:"Piirrä",loss:"Menetys",win:"Voittaa"},share:{betResultText:"Katso vedon tulokseni!",betResultTitle:"Vedon tulos"}}});var ft=Uo((Y1,ms)=>{ms.exports={accessibility:{betPlacedAnnouncement:"Pari placé avec succès",gameInProgress:"Jeu en cours",languageChanged:"Langue modifiée en {language}"},alerts:{autobetStarted:"Mode de pari automatique démarré",autobetStopped:"Mode de pari automatique arrêté",betAmountAboveMaxBet:"Le montant de la mise est supérieur à la mise maximale",betAmountBelowMinBet:"Le montant de la mise est inférieur à la mise minimale",betCancelled:"Pari annulé",betDetailsCopied:"Détails du pari copiés dans le presse-papiers !",betPlaced:"Pari placé avec succès",connectionError:"Erreur de connexion",errorProcessingBet:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",failedToLoadBetData:"Échec du chargement des données de pari",failedToShareBetDetails:"Impossible de partager les détails du pari",gameError:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",insufficientBalance:"Solde insuffisant",notEnoughBalance:"Pas assez d'équilibre"},autobet:{baseAmount:"Montant de base",decrease:"Diminuer",games:"Jeux",games10:"10 jeux",games100:"100 jeux",games25:"25 jeux",games5:"5 jeux",games50:"50 jeux",increase:"Augmenter",infinite:"Infini",numberOfBets:"Nombre de paris",onLoss:"Sur la perte",onWin:"Sur Win",reset:"Réinitialiser",startAutobet:"Démarrer Autobet",stopAutobet:"Arrêter Autobet",stopOnLoss:"Arrêtez la perte",stopOnProfit:"Arrêtez le profit",stopOnWin:"Arrêtez-vous sur Win",title:"Autobet"},common:{amount:"Montant",animation:"Animation",auto:"Auto",back:"Dos",balance:"Équilibre",bet:"Montant de la mise",betAmount:"Montant de la mise",cancel:"Annuler",cashOut:"Encaissement",change:"Changement",classic:"Classique",close:"Fermer",closeAlert:"Fermer l'alerte",closeDialog:"Fermer la boîte de dialogue",confirm:"Confirmer",copy:"Copie",error:"Erreur",fairness:"Justice",footerNavigation:"Navigation de pied de page",high:"Haut",history:"Histoire",hotkeys:"Raccourcis clavier",id:"IDENTIFIANT",instantBet:"Pari instantané",loading:"Chargement...",loadMore:"Charger plus",lobby:"Retour au hall",loss:"Perte",low:"Faible",manual:"Manuel",medium:"Moyen",multiplier:"Multiplicateur",next:"Suivant",odds:"Chances",payout:"Paiement",placeBet:"Placer un pari",previous:"Précédent",profit:"Profit",profitOnWin:"Profit sur victoire",provablyFair:"Prouvablement équitable",rangeSlider:"Curseur de plage",risk:"Risque",settings:"Paramètres",share:"Partager",siteInformation:"Informations sur le site",space:"ESPACE",start:"Commencer",stop:"Arrêt",success:"Succès",targetMultiplier:"Multiplicateur",thisFieldIsRequired:"Ce champ est obligatoire",timestamp:"Temps",toggleHotkeys:"Basculer les raccourcis clavier",toggleSwitch:"Interrupteur à bascule",viewFairnessInformation:"Afficher les informations sur l'équité",volume:"Volume",win:"Gagner",winChance:"Chance de gagner"},errors:{connection:"Erreur de connexion",dice:{multiplierRange:"Doit être compris entre 1,0102 et 9900",winChanceRange:"Doit être compris entre 0,01 et 98"},game:"Une erreur de jeu s'est produite",insufficientBalance:"Solde insuffisant",limbo:{multiplierRange:"Le multiplicateur doit être d'au moins 1,01",winChanceRange:"Les chances de gagner doivent être comprises entre 0,000099 et 99,9999"}},fairness:{activeClientSeed:"Graine de client active",enterClientSeed:"Entrez Client Seed",enterProof:"Entrez la preuve",enterPublicKey:"Entrez la clé publique",enterRandomness:"Entrez dans le hasard",enterRequest:"Entrer la demande",invalidGame:"Type de jeu non valide fourni.",noBettingHistory:"Aucun historique de paris",outcomeCalculationInfo:"Le résultat de chaque jeu est calculé à l’aide d’une valeur aléatoire en entrée.",outcomeNotVerified:"Le résultat de ce match n'a pas pu être vérifié",outcomeVerified:"Le résultat de ce jeu a été vérifié et est prouvé équitable",pendingInputs:"Entrées en attente",proof:"Preuve",provableFairnessUnverified:"Équité prouvable non vérifiée",provableFairnessVerified:"Équité prouvable vérifiée",publicKey:"Clé publique",randomness:"caractère aléatoire",request:"Demande",saveClientSeed:"Enregistrer la graine du client",verified:"Vérifié",verifyOutcome:"Vérifier le résultat",viewOutcome:"Voir le résultat"},games:{dice:{result:"Résultat",roll:"Rouler",rollOver:"Rouler sur",rollUnder:"Rouler sous",target:"Cible",title:"dés"},keno:{autoPick:"Sélection automatique",clearTable:"Clair",draw:"Dessiner",hits:"Coups",kenoGameGrid:"Grille de jeu Keno",kenoNumber:"Numéro de Keno",numbers:"Nombres",pick:"Prendre",select1to10Tiles:"Sélectionnez 1 à 10 tuiles",selectAtLeastOneTile:"Veuillez sélectionner au moins une tuile",selectNumbers:"Sélectionner des numéros",selectTileToAutobet:"Veuillez sélectionner au moins une tuile",title:"Kéno"},limbo:{cashout:"Encaissement",crashed:"Crashé",target:"Cible",targetMultiplier:"Multiplicateur",title:"Limbo"},mines:{cashout:"Encaissement",gem:"Gemme",gems:"Gemmes",mine:"Le mien",mines:"Mines",nextGem:"Prochain joyau",reveal:"Révéler",selectRandomTile:"Sélectionner une tuile aléatoire",selectTileToAutobet:"Veuillez sélectionner au moins une tuile pour effectuer un pari automatique",tile:"Tuile",title:"Mines",unrevealed:"Non révélé"}},modals:{betResult:"Résultat du pari",fairnessAndHistory:"Équité et histoire",gameArea:"Zone de jeu",gameControls:"Commandes du jeu"},outcomes:{draw:"Dessiner",loss:"Perte",win:"Gagner"},share:{betResultText:"Découvrez le résultat de mon pari !",betResultTitle:"Résultat du pari"}}});var gt=Uo((Q1,ks)=>{ks.exports={accessibility:{betPlacedAnnouncement:"दांव सफलतापूर्वक लगाया गया",gameInProgress:"गेम चालू है",languageChanged:"भाषा बदलकर {language} कर दी गई"},alerts:{autobetStarted:"ऑटोबेट मोड शुरू किया गया",autobetStopped:"ऑटोबेट मोड बंद कर दिया गया",betAmountAboveMaxBet:"दांव की राशि अधिकतम दांव से अधिक है",betAmountBelowMinBet:"दांव की राशि न्यूनतम दांव से कम है",betCancelled:"शर्त रद्द",betDetailsCopied:"शर्त विवरण क्लिपबोर्ड पर कॉपी किया गया!",betPlaced:"दांव सफलतापूर्वक लगाया गया",connectionError:"संपर्क त्रुटि",errorProcessingBet:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",failedToLoadBetData:"दांव डेटा लोड करने में विफल",failedToShareBetDetails:"शर्त विवरण साझा करने में विफल",gameError:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",insufficientBalance:"अपर्याप्त शेषराशि",notEnoughBalance:"पर्याप्त संतुलन नहीं"},autobet:{baseAmount:"आधार राशि",decrease:"घटाना",games:"खेल",games10:"10 खेल",games100:"100 खेल",games25:"25 खेल",games5:"5 खेल",games50:"50 खेल",increase:"बढ़ोतरी",infinite:"अनंत",numberOfBets:"दांवों की संख्या",onLoss:"हानि पर",onWin:"जीत पर",reset:"रीसेट करें",startAutobet:"ऑटोबेट शुरू करें",stopAutobet:"ऑटोबेट रोकें",stopOnLoss:"हानि पर रोक",stopOnProfit:"लाभ पर रोक",stopOnWin:"जीत पर रोक",title:"ऑटोबेट"},common:{amount:"मात्रा",animation:"एनिमेशन",auto:"ऑटो",back:"पीछे",balance:"संतुलन",bet:"दांव राशि",betAmount:"दांव राशि",cancel:"रद्द करना",cashOut:"नकदी निकलना",change:"परिवर्तन",classic:"क्लासिक",close:"बंद करना",closeAlert:"अलर्ट बंद करें",closeDialog:"संवाद बंद करें",confirm:"पुष्टि करना",copy:"प्रतिलिपि",error:"गलती",fairness:"फेयरनेस",footerNavigation:"पाद नेविगेशन",high:"उच्च",history:"इतिहास",hotkeys:"हॉटकी",id:"पहचान",instantBet:"तत्काल शर्त",loading:"लोड हो रहा है...",loadMore:"और लोड करें",lobby:"लॉबी पर वापस जाएँ",loss:"नुकसान",low:"कम",manual:"नियमावली",medium:"मध्यम",multiplier:"गुणक",next:"अगला",odds:"कठिनाइयाँ",payout:"भुगतान",placeBet:"दांव लगाओ",previous:"पहले का",profit:"लाभ",profitOnWin:"जीत पर लाभ",provablyFair:"सिद्धतः निष्पक्ष",rangeSlider:"रेंज स्लाइडर",risk:"जोखिम",settings:"सेटिंग्स",share:"शेयर करना",siteInformation:"साइट जानकारी",space:"अंतरिक्ष",start:"शुरू",stop:"रुकना",success:"सफलता",targetMultiplier:"गुणक",thisFieldIsRequired:"यह फ़ील्ड आवश्यक है",timestamp:"समय",toggleHotkeys:"टॉगल हॉटकीज़",toggleSwitch:"गिल्ली टहनी",viewFairnessInformation:"निष्पक्षता जानकारी देखें",volume:"आयतन",win:"जीतना",winChance:"जीत का मौका"},errors:{connection:"संपर्क त्रुटि",dice:{multiplierRange:"1.0102 और 9900 के बीच होना चाहिए",winChanceRange:"0.01 और 98 के बीच होना चाहिए"},game:"गेम में त्रुटि हुई",insufficientBalance:"अपर्याप्त शेषराशि",limbo:{multiplierRange:"गुणक कम से कम 1.01 होना चाहिए",winChanceRange:"जीत की संभावना 0.000099 और 99.9999 के बीच होनी चाहिए"}},fairness:{activeClientSeed:"सक्रिय क्लाइंट बीज",enterClientSeed:"क्लाइंट सीड दर्ज करें",enterProof:"प्रमाण दर्ज करें",enterPublicKey:"सार्वजनिक कुंजी दर्ज करें",enterRandomness:"यादृच्छिकता दर्ज करें",enterRequest:"अनुरोध दर्ज करें",invalidGame:"अमान्य खेल प्रकार प्रदान किया गया.",noBettingHistory:"कोई सट्टेबाजी इतिहास नहीं",outcomeCalculationInfo:"प्रत्येक खेल का परिणाम इनपुट के रूप में एक यादृच्छिक मान का उपयोग करके गणना किया जाता है।",outcomeNotVerified:"इस खेल का परिणाम सत्यापित नहीं किया जा सका",outcomeVerified:"इस खेल का परिणाम सत्यापित हो चुका है और यह निष्पक्ष साबित हो चुका है",pendingInputs:"लंबित इनपुट",proof:"सबूत",provableFairnessUnverified:"प्रमाणित निष्पक्षता असत्यापित",provableFairnessVerified:"प्रमाणित निष्पक्षता सत्यापित",publicKey:"सार्वजनिक कुंजी",randomness:"अनियमितता",request:"अनुरोध",saveClientSeed:"क्लाइंट सीड सहेजें",verified:"सत्यापित",verifyOutcome:"परिणाम सत्यापित करें",viewOutcome:"परिणाम देखें"},games:{dice:{result:"परिणाम",roll:"रोल",rollOver:"रोल ओवर",rollUnder:"रोल अंडर",target:"लक्ष्य",title:"पासा"},keno:{autoPick:"ऑटो पिक",clearTable:"स्पष्ट",draw:"खींचना",hits:"हिट्स",kenoGameGrid:"केनो गेम ग्रिड",kenoNumber:"केनो नंबर",numbers:"नंबर",pick:"चुनना",select1to10Tiles:"1-10 टाइल्स चुनें",selectAtLeastOneTile:"कृपया कम से कम एक टाइल चुनें",selectNumbers:"नंबर चुनें",selectTileToAutobet:"कृपया कम से कम एक टाइल चुनें",title:"केनो"},limbo:{cashout:"नकदी निकलना",crashed:"दुर्घटनाग्रस्त",target:"लक्ष्य",targetMultiplier:"गुणक",title:"लीम्बो"},mines:{cashout:"नकदी निकलना",gem:"रत्न",gems:"रत्न",mine:"मेरा",mines:"खानों",nextGem:"अगला रत्न",reveal:"प्रकट करना",selectRandomTile:"यादृच्छिक टाइल का चयन करें",selectTileToAutobet:"कृपया ऑटोबेट के लिए कम से कम एक टाइल चुनें",tile:"टाइल",title:"खानों",unrevealed:"अप्रकट"}},modals:{betResult:"दांव परिणाम",fairnessAndHistory:"निष्पक्षता और इतिहास",gameArea:"खेल क्षेत्र",gameControls:"खेल नियंत्रण"},outcomes:{draw:"खींचना",loss:"नुकसान",win:"जीतना"},share:{betResultText:"मेरी शर्त का परिणाम देखें!",betResultTitle:"दांव परिणाम"}}});var pt=Uo((F1,xs)=>{xs.exports={accessibility:{betPlacedAnnouncement:"Taruhan berhasil ditempatkan",gameInProgress:"Permainan sedang berlangsung",languageChanged:"Bahasa diubah menjadi {language}"},alerts:{autobetStarted:"Memulai mode taruhan otomatis",autobetStopped:"Menghentikan mode taruhan otomatis",betAmountAboveMaxBet:"Jumlah taruhan di atas taruhan maksimum",betAmountBelowMinBet:"Jumlah taruhan di bawah taruhan minimum",betCancelled:"Taruhan dibatalkan",betDetailsCopied:"Rincian taruhan disalin ke papan klip!",betPlaced:"Taruhan berhasil ditempatkan",connectionError:"Kesalahan koneksi",errorProcessingBet:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",failedToLoadBetData:"Gagal memuat data taruhan",failedToShareBetDetails:"Gagal membagikan detail taruhan",gameError:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",insufficientBalance:"Saldo tidak mencukupi",notEnoughBalance:"Saldo tidak cukup"},autobet:{baseAmount:"Jumlah Dasar",decrease:"Mengurangi",games:"Pertandingan",games10:"10 permainan",games100:"100 permainan",games25:"25 permainan",games5:"5 permainan",games50:"50 permainan",increase:"Meningkatkan",infinite:"Tak terbatas",numberOfBets:"Jumlah Taruhan",onLoss:"Tentang Kehilangan",onWin:"Pada Kemenangan",reset:"Mengatur ulang",startAutobet:"Mulai Autobet",stopAutobet:"Hentikan Autobet",stopOnLoss:"Berhenti saat Kerugian",stopOnProfit:"Berhenti Saat Untung",stopOnWin:"Berhenti di Win",title:"Taruhan Otomatis"},common:{amount:"Jumlah",animation:"Animasi",auto:"Mobil",back:"Kembali",balance:"Keseimbangan",bet:"Jumlah Taruhan",betAmount:"Jumlah Taruhan",cancel:"Membatalkan",cashOut:"Penarikan Tunai",change:"Mengubah",classic:"Klasik",close:"Menutup",closeAlert:"Tutup peringatan",closeDialog:"Tutup dialog",confirm:"Mengonfirmasi",copy:"Menyalin",error:"Kesalahan",fairness:"Keadilan",footerNavigation:"Navigasi kaki",high:"Tinggi",history:"Sejarah",hotkeys:"Tombol pintas",id:"PENGENAL",instantBet:"Taruhan Instan",loading:"Memuat...",loadMore:"Muat Lebih Banyak",lobby:"Kembali ke Lobi",loss:"Kehilangan",low:"Rendah",manual:"Buku petunjuk",medium:"Sedang",multiplier:"Pengali",next:"Berikutnya",odds:"Kemungkinan",payout:"Pembayaran",placeBet:"Pasang Taruhan",previous:"Sebelumnya",profit:"Laba",profitOnWin:"Untung Saat Menang",provablyFair:"Terbukti Adil",rangeSlider:"Penggeser rentang",risk:"Mempertaruhkan",settings:"Pengaturan",share:"Membagikan",siteInformation:"Informasi situs",space:"RUANG ANGKASA",start:"Awal",stop:"Berhenti",success:"Kesuksesan",targetMultiplier:"Pengali",thisFieldIsRequired:"Bidang ini wajib diisi",timestamp:"Waktu",toggleHotkeys:"Beralih Tombol Pintasan",toggleSwitch:"Sakelar sakelar",viewFairnessInformation:"Lihat informasi keadilan",volume:"Volume",win:"Menang",winChance:"Kesempatan Menang"},errors:{connection:"Kesalahan koneksi",dice:{multiplierRange:"Harus antara 1.0102 dan 9900",winChanceRange:"Harus antara 0,01 dan 98"},game:"Terjadi kesalahan permainan",insufficientBalance:"Saldo tidak mencukupi",limbo:{multiplierRange:"Pengali harus minimal 1,01",winChanceRange:"Peluang menang harus antara 0,000099 dan 99,9999"}},fairness:{activeClientSeed:"Benih Klien Aktif",enterClientSeed:"Masukkan Benih Klien",enterProof:"Masukkan Bukti",enterPublicKey:"Masukkan Kunci Publik",enterRandomness:"Masuk Acak",enterRequest:"Masukkan Permintaan",invalidGame:"Jenis permainan yang diberikan tidak valid.",noBettingHistory:"Tidak ada riwayat taruhan",outcomeCalculationInfo:"Hasil setiap permainan dihitung menggunakan nilai acak sebagai masukan.",outcomeNotVerified:"Hasil pertandingan ini tidak dapat diverifikasi",outcomeVerified:"Hasil permainan ini telah diverifikasi dan terbukti adil",pendingInputs:"Masukan Tertunda",proof:"Bukti",provableFairnessUnverified:"Keadilan yang Terbukti Belum Diverifikasi",provableFairnessVerified:"Keadilan yang Terbukti dan Terverifikasi",publicKey:"Kunci Publik",randomness:"Keserampangan",request:"Meminta",saveClientSeed:"Simpan Benih Klien",verified:"Terverifikasi",verifyOutcome:"Verifikasi Hasil",viewOutcome:"Lihat Hasil"},games:{dice:{result:"Hasil",roll:"Gulungan",rollOver:"Berguling",rollUnder:"Gulung ke Bawah",target:"Target",title:"Dadu"},keno:{autoPick:"Pilih Otomatis",clearTable:"Jernih",draw:"Menggambar",hits:"Hits",kenoGameGrid:"Kisi Permainan Keno",kenoNumber:"Nomor Keno",numbers:"Angka",pick:"Memilih",select1to10Tiles:"Pilih 1-10 Ubin",selectAtLeastOneTile:"Silakan pilih setidaknya satu ubin",selectNumbers:"Pilih Angka",selectTileToAutobet:"Silakan pilih setidaknya satu ubin",title:"Permainan keno"},limbo:{cashout:"Penarikan Tunai",crashed:"Jatuh",target:"Target",targetMultiplier:"Pengali",title:"Limbo"},mines:{cashout:"Penarikan Tunai",gem:"Permata",gems:"Permata",mine:"Milikku",mines:"Tambang",nextGem:"Permata Berikutnya",reveal:"Mengungkap",selectRandomTile:"Pilih Ubin Acak",selectTileToAutobet:"Silakan pilih setidaknya satu ubin untuk taruhan otomatis",tile:"Ubin",title:"Tambang",unrevealed:"Belum terungkap"}},modals:{betResult:"Hasil Taruhan",fairnessAndHistory:"Keadilan dan Sejarah",gameArea:"Area Permainan",gameControls:"Kontrol Permainan"},outcomes:{draw:"Menggambar",loss:"Kehilangan",win:"Menang"},share:{betResultText:"Lihat hasil taruhan saya!",betResultTitle:"Hasil Taruhan"}}});var bt=Uo((C1,zs)=>{zs.exports={accessibility:{betPlacedAnnouncement:"賭けは成功しました",gameInProgress:"ゲーム進行中",languageChanged:"言語が{language}に変更されました"},alerts:{autobetStarted:"自動ベットモードを開始しました",autobetStopped:"自動ベットモードを停止しました",betAmountAboveMaxBet:"賭け金が最大賭け金を超えています",betAmountBelowMinBet:"賭け金が最低賭け金を下回っています",betCancelled:"賭けはキャンセルされました",betDetailsCopied:"賭けの詳細がクリップボードにコピーされました!",betPlaced:"賭けは成功しました",connectionError:"接続エラー",errorProcessingBet:"賭けの処理中にエラーが発生しました。もう一度お試しください。",failedToLoadBetData:"賭けデータの読み込みに失敗しました",failedToShareBetDetails:"賭けの詳細を共有できませんでした",gameError:"賭けの処理中にエラーが発生しました。もう一度お試しください。",insufficientBalance:"残高不足",notEnoughBalance:"残高が足りない"},autobet:{baseAmount:"基本金額",decrease:"減少",games:"ゲーム",games10:"10ゲーム",games100:"100ゲーム",games25:"25ゲーム",games5:"5ゲーム",games50:"50ゲーム",increase:"増加",infinite:"無限",numberOfBets:"賭けの数",onLoss:"損失について",onWin:"勝利時",reset:"リセット",startAutobet:"オートベットを始める",stopAutobet:"オートベットを停止",stopOnLoss:"損失でストップ",stopOnProfit:"利益でストップ",stopOnWin:"勝利で停止",title:"オートベット"},common:{amount:"額",animation:"アニメーション",auto:"オート",back:"戻る",balance:"バランス",bet:"賭け金額",betAmount:"賭け金額",cancel:"キャンセル",cashOut:"キャッシュアウト",change:"変化",classic:"クラシック",close:"近い",closeAlert:"アラートを閉じる",closeDialog:"ダイアログを閉じる",confirm:"確認する",copy:"コピー",error:"エラー",fairness:"公平性",footerNavigation:"フッターナビゲーション",high:"高い",history:"歴史",hotkeys:"ホットキー",id:"ID",instantBet:"インスタントベット",loading:"読み込み中...",loadMore:"もっと読み込む",lobby:"ロビーに戻る",loss:"損失",low:"低い",manual:"マニュアル",medium:"中くらい",multiplier:"乗数",next:"次",odds:"オッズ",payout:"支払い",placeBet:"ベットする",previous:"前の",profit:"利益",profitOnWin:"勝利で利益",provablyFair:"証明可能公平",rangeSlider:"範囲スライダー",risk:"リスク",settings:"設定",share:"共有",siteInformation:"サイト情報",space:"空間",start:"始める",stop:"停止",success:"成功",targetMultiplier:"乗数",thisFieldIsRequired:"この項目は必須です",timestamp:"時間",toggleHotkeys:"ホットキーを切り替える",toggleSwitch:"トグルスイッチ",viewFairnessInformation:"公平性情報を見る",volume:"音量",win:"勝つ",winChance:"勝利のチャンス"},errors:{connection:"接続エラー",dice:{multiplierRange:"1.0102から9900の間でなければなりません",winChanceRange:"0.01~98の間でなければなりません"},game:"ゲームエラーが発生しました",insufficientBalance:"残高不足",limbo:{multiplierRange:"乗数は少なくとも1.01である必要があります",winChanceRange:"勝利の確率は0.000099から99.9999の間でなければなりません"}},fairness:{activeClientSeed:"アクティブクライアントシード",enterClientSeed:"クライアントシードを入力",enterProof:"証明を入力",enterPublicKey:"公開鍵を入力",enterRandomness:"ランダム性を導入する",enterRequest:"リクエストを入力",invalidGame:"無効なゲームタイプが指定されました。",noBettingHistory:"賭け履歴なし",outcomeCalculationInfo:"各ゲームの結果は、ランダムな値を入力として使用して計算されます。",outcomeNotVerified:"この試合の結果は確認できなかった",outcomeVerified:"このゲームの結果は検証されており、公平であることが証明されています",pendingInputs:"保留中の入力",proof:"証拠",provableFairnessUnverified:"証明可能な公平性は検証されていない",provableFairnessVerified:"証明可能な公平性が検証済み",publicKey:"公開鍵",randomness:"ランダム性",request:"リクエスト",saveClientSeed:"クライアントシードを保存",verified:"検証済み",verifyOutcome:"結果を確認する",viewOutcome:"結果を見る"},games:{dice:{result:"結果",roll:"ロール",rollOver:"転がる",rollUnder:"ロールアンダー",target:"ターゲット",title:"サイコロ"},keno:{autoPick:"自動選択",clearTable:"クリア",draw:"描く",hits:"ヒット",kenoGameGrid:"キノゲームグリッド",kenoNumber:"キノ番号",numbers:"数字",pick:"選ぶ",select1to10Tiles:"1~10個のタイルを選択",selectAtLeastOneTile:"少なくとも1つのタイルを選択してください",selectNumbers:"番号を選択",selectTileToAutobet:"少なくとも1つのタイルを選択してください",title:"キノ"},limbo:{cashout:"キャッシュアウト",crashed:"墜落した",target:"ターゲット",targetMultiplier:"乗数",title:"リンボ"},mines:{cashout:"キャッシュアウト",gem:"宝石",gems:"宝石",mine:"私の",mines:"鉱山",nextGem:"次の宝石",reveal:"明らかにする",selectRandomTile:"ランダムタイルを選択",selectTileToAutobet:"自動ベットするには少なくとも1つのタイルを選択してください",tile:"タイル",title:"鉱山",unrevealed:"未公開"}},modals:{betResult:"賭けの結果",fairnessAndHistory:"公平性と歴史",gameArea:"ゲームエリア",gameControls:"ゲームコントロール"},outcomes:{draw:"描く",loss:"損失",win:"勝つ"},share:{betResultText:"私の賭けの結果を見てください!",betResultTitle:"賭けの結果"}}});var wt=Uo((P1,ys)=>{ys.exports={accessibility:{betPlacedAnnouncement:"배팅이 성공적으로 이루어졌습니다",gameInProgress:"게임 진행 중",languageChanged:"언어가 {language}로 변경되었습니다."},alerts:{autobetStarted:"자동 베팅 모드 시작",autobetStopped:"자동 베팅 모드가 중지되었습니다",betAmountAboveMaxBet:"배팅 금액이 최대 배팅 금액보다 높습니다.",betAmountBelowMinBet:"배팅 금액이 최소 배팅 금액보다 낮습니다.",betCancelled:"베팅 취소됨",betDetailsCopied:"배팅 세부 정보가 클립보드에 복사되었습니다!",betPlaced:"배팅이 성공적으로 이루어졌습니다",connectionError:"연결 오류",errorProcessingBet:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",failedToLoadBetData:"베팅 데이터를 불러오는 데 실패했습니다.",failedToShareBetDetails:"베팅 세부 정보를 공유하지 못했습니다.",gameError:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",insufficientBalance:"잔액이 부족합니다",notEnoughBalance:"잔액이 부족합니다"},autobet:{baseAmount:"기본 금액",decrease:"감소하다",games:"계략",games10:"10개의 게임",games100:"100개의 게임",games25:"25개의 게임",games5:"5개의 게임",games50:"50개의 게임",increase:"증가하다",infinite:"무한",numberOfBets:"베팅 수",onLoss:"손실에 대하여",onWin:"승리에 대하여",reset:"다시 놓기",startAutobet:"자동 베팅 시작",stopAutobet:"자동 베팅 중지",stopOnLoss:"손실 중지",stopOnProfit:"이익에 대한 중단",stopOnWin:"승리에 멈추다",title:"자동 베팅"},common:{amount:"양",animation:"생기",auto:"자동",back:"뒤쪽에",balance:"균형",bet:"배팅 금액",betAmount:"배팅 금액",cancel:"취소",cashOut:"현금 인출",change:"변화",classic:"권위 있는",close:"닫다",closeAlert:"알림 닫기",closeDialog:"대화 상자 닫기",confirm:"확인하다",copy:"복사",error:"오류",fairness:"공평",footerNavigation:"푸터 탐색",high:"높은",history:"역사",hotkeys:"단축키",id:"ID",instantBet:"즉시 베팅",loading:"로딩중...",loadMore:"더 보기",lobby:"로비로 돌아가기",loss:"손실",low:"낮은",manual:"수동",medium:"중간",multiplier:"승수",next:"다음",odds:"승산",payout:"지불금",placeBet:"배팅하기",previous:"이전의",profit:"이익",profitOnWin:"승리에 따른 이익",provablyFair:"공정성이 입증됨",rangeSlider:"범위 슬라이더",risk:"위험",settings:"설정",share:"공유하다",siteInformation:"사이트 정보",space:"공간",start:"시작",stop:"멈추다",success:"성공",targetMultiplier:"승수",thisFieldIsRequired:"이 필드는 필수입니다",timestamp:"시간",toggleHotkeys:"단축키 전환",toggleSwitch:"토글 스위치",viewFairnessInformation:"공정성 정보 보기",volume:"용량",win:"이기다",winChance:"승리 확률"},errors:{connection:"연결 오류",dice:{multiplierRange:"1.0102와 9900 사이여야 합니다.",winChanceRange:"0.01~98 사이여야 합니다."},game:"게임 오류가 발생했습니다",insufficientBalance:"잔액이 부족합니다",limbo:{multiplierRange:"승수는 최소 1.01이어야 합니다.",winChanceRange:"당첨 확률은 0.000099~99.9999 사이여야 합니다."}},fairness:{activeClientSeed:"활성 클라이언트 시드",enterClientSeed:"클라이언트 시드 입력",enterProof:"증거를 입력하세요",enterPublicKey:"공개 키 입력",enterRandomness:"무작위성을 입력하세요",enterRequest:"요청 입력",invalidGame:"잘못된 게임 유형이 제공되었습니다.",noBettingHistory:"베팅 내역 없음",outcomeCalculationInfo:"각 게임의 결과는 난수 값을 입력으로 사용하여 계산됩니다.",outcomeNotVerified:"이 게임의 결과는 확인할 수 없습니다.",outcomeVerified:"이 게임의 결과는 검증되었으며 공정성이 입증되었습니다.",pendingInputs:"보류 중인 입력",proof:"증거",provableFairnessUnverified:"입증 가능한 공정성 검증되지 않음",provableFairnessVerified:"증명 가능한 공정성 검증됨",publicKey:"공개 키",randomness:"무작위성",request:"요구",saveClientSeed:"클라이언트 시드 저장",verified:"확인됨",verifyOutcome:"결과 확인",viewOutcome:"결과 보기"},games:{dice:{result:"결과",roll:"연타",rollOver:"롤오버",rollUnder:"롤 언더",target:"목표",title:"주사위"},keno:{autoPick:"자동 선택",clearTable:"분명한",draw:"그리다",hits:"히트곡",kenoGameGrid:"케노 게임 그리드",kenoNumber:"케노 번호",numbers:"숫자",pick:"선택하다",select1to10Tiles:"1~10개 타일 선택",selectAtLeastOneTile:"최소한 하나의 타일을 선택해주세요",selectNumbers:"숫자 선택",selectTileToAutobet:"최소한 하나의 타일을 선택해주세요",title:"케노"},limbo:{cashout:"현금 인출",crashed:"추락했다",target:"목표",targetMultiplier:"승수",title:"림보"},mines:{cashout:"현금 인출",gem:"보석",gems:"보석",mine:"내 거",mines:"광산",nextGem:"다음 보석",reveal:"드러내다",selectRandomTile:"무작위 타일 선택",selectTileToAutobet:"자동 베팅을 위해 최소 하나의 타일을 선택하세요",tile:"타일",title:"광산",unrevealed:"공개되지 않은"}},modals:{betResult:"배팅 결과",fairnessAndHistory:"공정성과 역사",gameArea:"게임 구역",gameControls:"게임 컨트롤"},outcomes:{draw:"그리다",loss:"손실",win:"이기다"},share:{betResultText:"내 베팅 결과를 확인해 보세요!",betResultTitle:"배팅 결과"}}});var vt=Uo((j1,Hs)=>{Hs.exports={accessibility:{betPlacedAnnouncement:"Zakład postawiony pomyślnie",gameInProgress:"Gra w toku",languageChanged:"Zmieniono język na {language}"},alerts:{autobetStarted:"Uruchomiono tryb autozakładu",autobetStopped:"Zatrzymano tryb autozakładu",betAmountAboveMaxBet:"Kwota zakładu przekracza maksymalny zakład",betAmountBelowMinBet:"Kwota zakładu jest poniżej minimalnego zakładu",betCancelled:"Zakład anulowany",betDetailsCopied:"Szczegóły zakładu skopiowano do schowka!",betPlaced:"Zakład postawiony pomyślnie",connectionError:"Błąd połączenia",errorProcessingBet:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",failedToLoadBetData:"Nie udało się załadować danych zakładu",failedToShareBetDetails:"Nie udało się udostępnić szczegółów zakładu",gameError:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",insufficientBalance:"Niewystarczające saldo",notEnoughBalance:"Za mało równowagi"},autobet:{baseAmount:"Kwota bazowa",decrease:"Zmniejszenie",games:"Zawody sportowe",games10:"10 gier",games100:"100 gier",games25:"25 gier",games5:"5 gier",games50:"50 gier",increase:"Zwiększyć",infinite:"Nieskończony",numberOfBets:"Liczba zakładów",onLoss:"O stracie",onWin:"W zwycięstwie",reset:"Nastawić",startAutobet:"Uruchom autozakład",stopAutobet:"Zatrzymaj autozakład",stopOnLoss:"Zatrzymaj stratę",stopOnProfit:"Zatrzymaj zysk",stopOnWin:"Zatrzymaj się na Win",title:"Autozakład"},common:{amount:"Kwota",animation:"Ożywienie",auto:"Automatyczny",back:"Z powrotem",balance:"Balansować",bet:"Kwota zakładu",betAmount:"Kwota zakładu",cancel:"Anulować",cashOut:"Wypłata gotówki",change:"Zmiana",classic:"Klasyczny",close:"Zamknąć",closeAlert:"Zamknij alert",closeDialog:"Zamknij okno dialogowe",confirm:"Potwierdzać",copy:"Kopia",error:"Błąd",fairness:"Uczciwość",footerNavigation:"Nawigacja stopki",high:"Wysoki",history:"Historia",hotkeys:"Klawisze skrótu",id:"ID",instantBet:"Zakład natychmiastowy",loading:"Załadunek...",loadMore:"Załaduj więcej",lobby:"Powrót do lobby",loss:"Strata",low:"Niski",manual:"Podręcznik",medium:"Średni",multiplier:"Mnożnik",next:"Następny",odds:"Szanse",payout:"Wypłata",placeBet:"Postaw zakład",previous:"Poprzedni",profit:"Zysk",profitOnWin:"Zysk z wygranej",provablyFair:"Udowodniona uczciwość",rangeSlider:"Suwak zakresu",risk:"Ryzyko",settings:"Ustawienia",share:"Udział",siteInformation:"Informacje o witrynie",space:"PRZESTRZEŃ",start:"Start",stop:"Zatrzymywać się",success:"Sukces",targetMultiplier:"Mnożnik",thisFieldIsRequired:"To pole jest wymagane",timestamp:"Czas",toggleHotkeys:"Przełącz klawisze skrótu",toggleSwitch:"Przełącznik",viewFairnessInformation:"Wyświetl informacje o uczciwości",volume:"Tom",win:"Wygrać",winChance:"Szansa na wygraną"},errors:{connection:"Błąd połączenia",dice:{multiplierRange:"Musi mieścić się w przedziale od 1,0102 do 9900",winChanceRange:"Musi mieścić się w przedziale od 0,01 do 98"},game:"Wystąpił błąd gry",insufficientBalance:"Niewystarczające saldo",limbo:{multiplierRange:"Mnożnik musi wynosić co najmniej 1,01",winChanceRange:"Szansa na wygraną musi mieścić się w przedziale od 0,000099 do 99,9999"}},fairness:{activeClientSeed:"Aktywny klient nasion",enterClientSeed:"Wprowadź ziarno klienta",enterProof:"Wprowadź dowód",enterPublicKey:"Wprowadź klucz publiczny",enterRandomness:"Wprowadź losowość",enterRequest:"Wprowadź żądanie",invalidGame:"Podano nieprawidłowy typ gry.",noBettingHistory:"Brak historii zakładów",outcomeCalculationInfo:"Wynik każdej gry obliczany jest na podstawie losowej wartości.",outcomeNotVerified:"Wyniku tej gry nie można zweryfikować",outcomeVerified:"Wynik tej gry został zweryfikowany i można go uznać za uczciwy",pendingInputs:"Oczekujące dane wejściowe",proof:"Dowód",provableFairnessUnverified:"Udowodniona uczciwość niezweryfikowana",provableFairnessVerified:"Udowodniona uczciwość zweryfikowana",publicKey:"Klucz publiczny",randomness:"Losowość",request:"Wniosek",saveClientSeed:"Zapisz ziarno klienta",verified:"Zweryfikowano",verifyOutcome:"Sprawdź wynik",viewOutcome:"Wyświetl wynik"},games:{dice:{result:"Wynik",roll:"Rolka",rollOver:"Przetoczyć się",rollUnder:"Przetoczyć się pod",target:"Cel",title:"Kostka do gry"},keno:{autoPick:"Automatyczne wybieranie",clearTable:"Jasne",draw:"Rysować",hits:"Trafienia",kenoGameGrid:"Siatka gry Keno",kenoNumber:"Numer keno",numbers:"Takty muzyczne",pick:"Wybierać",select1to10Tiles:"Wybierz 1-10 kafelków",selectAtLeastOneTile:"Proszę wybrać co najmniej jeden kafelek",selectNumbers:"Wybierz liczby",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek",title:"Keno"},limbo:{cashout:"Wypłata gotówki",crashed:"Rozbił się",target:"Cel",targetMultiplier:"Mnożnik",title:"Otchłań"},mines:{cashout:"Wypłata gotówki",gem:"Klejnot",gems:"Klejnoty",mine:"Kopalnia",mines:"Kopalnie",nextGem:"Następny klejnot",reveal:"Ujawnić",selectRandomTile:"Wybierz losowy kafelek",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek do automatycznego obstawiania",tile:"Płytka",title:"Kopalnie",unrevealed:"Nieujawnione"}},modals:{betResult:"Wynik zakładu",fairnessAndHistory:"Sprawiedliwość i historia",gameArea:"Obszar gry",gameControls:"Sterowanie grą"},outcomes:{draw:"Rysować",loss:"Strata",win:"Wygrać"},share:{betResultText:"Sprawdź wynik mojego zakładu!",betResultTitle:"Wynik zakładu"}}});var mt=Uo((L1,Zs)=>{Zs.exports={accessibility:{betPlacedAnnouncement:"Aposta feita com sucesso",gameInProgress:"Jogo em andamento",languageChanged:"Idioma alterado para {language}"},alerts:{autobetStarted:"Modo de aposta automática iniciado",autobetStopped:"Modo de aposta automática interrompido",betAmountAboveMaxBet:"O valor da aposta está acima da aposta máxima",betAmountBelowMinBet:"O valor da aposta está abaixo da aposta mínima",betCancelled:"Aposta cancelada",betDetailsCopied:"Detalhes da aposta copiados para a área de transferência!",betPlaced:"Aposta feita com sucesso",connectionError:"Erro de conexão",errorProcessingBet:"Ocorreu um erro ao processar sua aposta. Tente novamente.",failedToLoadBetData:"Falha ao carregar dados de aposta",failedToShareBetDetails:"Falha ao compartilhar detalhes da aposta",gameError:"Ocorreu um erro ao processar sua aposta. Tente novamente.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"Não há equilíbrio suficiente"},autobet:{baseAmount:"Valor base",decrease:"Diminuir",games:"Jogos",games10:"10 jogos",games100:"100 jogos",games25:"25 jogos",games5:"5 jogos",games50:"50 jogos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apostas",onLoss:"Em Perda",onWin:"Na vitória",reset:"Reiniciar",startAutobet:"Iniciar aposta automática",stopAutobet:"Pare a aposta automática",stopOnLoss:"Parar na perda",stopOnProfit:"Pare no lucro",stopOnWin:"Pare na vitória",title:"Aposta automática"},common:{amount:"Quantia",animation:"Animação",auto:"Auto",back:"Voltar",balance:"Equilíbrio",bet:"Valor da aposta",betAmount:"Valor da aposta",cancel:"Cancelar",cashOut:"Saque",change:"Mudar",classic:"Clássico",close:"Fechar",closeAlert:"Alerta de fechamento",closeDialog:"Fechar diálogo",confirm:"Confirmar",copy:"Cópia",error:"Erro",fairness:"Justiça",footerNavigation:"Navegação de rodapé",high:"Alto",history:"História",hotkeys:"Teclas de atalho",id:"EU IA",instantBet:"Aposta instantânea",loading:"Carregando...",loadMore:"Carregar mais",lobby:"Voltar ao Lobby",loss:"Perda",low:"Baixo",manual:"Manual",medium:"Médio",multiplier:"Multiplicador",next:"Próximo",odds:"Chances",payout:"Pagamento",placeBet:"Fazer aposta",previous:"Anterior",profit:"Lucro",profitOnWin:"Lucro na vitória",provablyFair:"Provavelmente justo",rangeSlider:"Controle deslizante de alcance",risk:"Risco",settings:"Configurações",share:"Compartilhar",siteInformation:"Informações do site",space:"ESPAÇO",start:"Começar",stop:"Parar",success:"Sucesso",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo é obrigatório",timestamp:"Tempo",toggleHotkeys:"Alternar teclas de atalho",toggleSwitch:"Interruptor de alternância",viewFairnessInformation:"Ver informações sobre justiça",volume:"Volume",win:"Ganhar",winChance:"Chance de ganhar"},errors:{connection:"Erro de conexão",dice:{multiplierRange:"Deve estar entre 1,0102 e 9900",winChanceRange:"Deve estar entre 0,01 e 98"},game:"Ocorreu um erro no jogo",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"O multiplicador deve ser pelo menos 1,01",winChanceRange:"A chance de vitória deve estar entre 0,000099 e 99,9999"}},fairness:{activeClientSeed:"Semente de cliente ativo",enterClientSeed:"Insira a semente do cliente",enterProof:"Insira a prova",enterPublicKey:"Digite a chave pública",enterRandomness:"Digite Aleatoriedade",enterRequest:"Solicitação de entrada",invalidGame:"Tipo de jogo fornecido inválido.",noBettingHistory:"Nenhum histórico de apostas",outcomeCalculationInfo:"O resultado de cada jogo é calculado usando um valor aleatório como entrada.",outcomeNotVerified:"O resultado deste jogo não pôde ser verificado",outcomeVerified:"O resultado deste jogo foi verificado e é comprovadamente justo",pendingInputs:"Entradas pendentes",proof:"Prova",provableFairnessUnverified:"Imparcialidade Provável Não Verificada",provableFairnessVerified:"Justiça comprovada verificada",publicKey:"Chave Pública",randomness:"Aleatoriedade",request:"Solicitar",saveClientSeed:"Salvar Semente do Cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rolar",rollOver:"Rolar sobre",rollUnder:"Rolar para baixo",target:"Alvo",title:"Dados"},keno:{autoPick:"Seleção automática",clearTable:"Claro",draw:"Empate",hits:"Acessos",kenoGameGrid:"Grade do jogo Keno",kenoNumber:"Número Keno",numbers:"Números",pick:"Escolha",select1to10Tiles:"Selecione 1-10 peças",selectAtLeastOneTile:"Selecione pelo menos um bloco",selectNumbers:"Selecione Números",selectTileToAutobet:"Selecione pelo menos um bloco",title:"Keno"},limbo:{cashout:"Saque",crashed:"Caiu",target:"Alvo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Saque",gem:"Jóia",gems:"Gemas",mine:"Meu",mines:"Minas",nextGem:"Próxima Joia",reveal:"Revelar",selectRandomTile:"Selecione uma peça aleatória",selectTileToAutobet:"Selecione pelo menos uma peça para apostar automaticamente",tile:"Telha",title:"Minas",unrevealed:"Não revelado"}},modals:{betResult:"Resultado da aposta",fairnessAndHistory:"Justiça e História",gameArea:"Área de jogos",gameControls:"Controles do jogo"},outcomes:{draw:"Empate",loss:"Perda",win:"Ganhar"},share:{betResultText:"Confira o resultado da minha aposta!",betResultTitle:"Resultado da aposta"}}});var kt=Uo((O1,Ss)=>{Ss.exports={accessibility:{betPlacedAnnouncement:"Ставка сделана успешно",gameInProgress:"Игра в процессе",languageChanged:"Язык изменен на {language}"},alerts:{autobetStarted:"Запущен режим автоставки",autobetStopped:"Остановлен режим автоставки",betAmountAboveMaxBet:"Сумма ставки превышает максимальную ставку",betAmountBelowMinBet:"Сумма ставки ниже минимальной ставки",betCancelled:"Ставка отменена",betDetailsCopied:"Данные ставки скопированы в буфер обмена!",betPlaced:"Ставка сделана успешно",connectionError:"Ошибка подключения",errorProcessingBet:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",failedToLoadBetData:"Не удалось загрузить данные о ставках",failedToShareBetDetails:"Не удалось поделиться данными о ставке",gameError:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",insufficientBalance:"Недостаточный баланс",notEnoughBalance:"Недостаточный баланс"},autobet:{baseAmount:"Базовая сумма",decrease:"Снижаться",games:"Игры",games10:"10 игр",games100:"100 игр",games25:"25 игр",games5:"5 игр",games50:"50 игр",increase:"Увеличивать",infinite:"Бесконечный",numberOfBets:"Количество ставок",onLoss:"При убытке",onWin:"На Победе",reset:"Перезагрузить",startAutobet:"Начать автоставку",stopAutobet:"Остановить автоставку",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",stopOnWin:"Остановись на Победе",title:"Автоставка"},common:{amount:"Количество",animation:"Анимация",auto:"Авто",back:"Назад",balance:"Баланс",bet:"Сумма ставки",betAmount:"Сумма ставки",cancel:"Отмена",cashOut:"Выплата наличных",change:"Изменять",classic:"Классический",close:"Закрывать",closeAlert:"Закрыть оповещение",closeDialog:"Закрыть диалог",confirm:"Подтверждать",copy:"Копировать",error:"Ошибка",fairness:"Справедливость",footerNavigation:"Навигация по нижнему колонтитулу",high:"Высокий",history:"История",hotkeys:"Горячие клавиши",id:"ИДЕНТИФИКАТОР",instantBet:"Мгновенная ставка",loading:"Загрузка...",loadMore:"Загрузить больше",lobby:"Вернуться в вестибюль",loss:"Потеря",low:"Низкий",manual:"Руководство",medium:"Середина",multiplier:"Множитель",next:"Следующий",odds:"Шансы",payout:"Выплата",placeBet:"Сделать ставку",previous:"Предыдущий",profit:"Выгода",profitOnWin:"Прибыль от победы",provablyFair:"Доказуемо справедливо",rangeSlider:"Ползунок диапазона",risk:"Риск",settings:"Настройки",share:"Делиться",siteInformation:"Информация о сайте",space:"КОСМОС",start:"Начинать",stop:"Останавливаться",success:"Успех",targetMultiplier:"Множитель",thisFieldIsRequired:"Это поле обязательно к заполнению",timestamp:"Время",toggleHotkeys:"Переключить горячие клавиши",toggleSwitch:"Переключатель",viewFairnessInformation:"Просмотреть информацию о справедливости",volume:"Объем",win:"Победить",winChance:"Шанс выиграть"},errors:{connection:"Ошибка подключения",dice:{multiplierRange:"Должно быть от 1,0102 до 9900",winChanceRange:"Должно быть от 0,01 до 98"},game:"Произошла ошибка игры",insufficientBalance:"Недостаточный баланс",limbo:{multiplierRange:"Множитель должен быть не менее 1,01.",winChanceRange:"Шанс выигрыша должен быть от 0,000099 до 99,9999"}},fairness:{activeClientSeed:"Активный клиентский посев",enterClientSeed:"Введите клиентское семя",enterProof:"Введите доказательство",enterPublicKey:"Введите открытый ключ",enterRandomness:"Введите случайность",enterRequest:"Введите запрос",invalidGame:"Указан неверный тип игры.",noBettingHistory:"Нет истории ставок",outcomeCalculationInfo:"Результат каждой игры рассчитывается с использованием случайного значения в качестве входных данных.",outcomeNotVerified:"Результат этой игры не удалось проверить.",outcomeVerified:"Результат этой игры проверен и доказуемо честен.",pendingInputs:"Ожидаемые входные данные",proof:"Доказательство",provableFairnessUnverified:"Доказуемая справедливость Непроверенная",provableFairnessVerified:"Доказуемая справедливость проверена",publicKey:"Открытый ключ",randomness:"Случайность",request:"Запрос",saveClientSeed:"Сохранить клиентское семя",verified:"Проверено",verifyOutcome:"Проверить результат",viewOutcome:"Посмотреть результат"},games:{dice:{result:"Результат",roll:"Рулон",rollOver:"Перекатывать",rollUnder:"Подкатиться",target:"Цель",title:"Кости"},keno:{autoPick:"Автоматический выбор",clearTable:"Прозрачный",draw:"Рисовать",hits:"Хиты",kenoGameGrid:"Сетка игры Кено",kenoNumber:"Номер Кено",numbers:"Числа",pick:"Выбирать",select1to10Tiles:"Выберите 1-10 плиток",selectAtLeastOneTile:"Пожалуйста, выберите хотя бы одну плитку",selectNumbers:"Выберите номера",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку",title:"Кено"},limbo:{cashout:"Выплата наличных",crashed:"Разбился",target:"Цель",targetMultiplier:"Множитель",title:"Лимб"},mines:{cashout:"Выплата наличных",gem:"Драгоценный камень",gems:"Драгоценные камни",mine:"Мой",mines:"Шахты",nextGem:"Следующий драгоценный камень",reveal:"Раскрывать",selectRandomTile:"Выбрать случайную плитку",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку для автоматической ставки.",tile:"Плитка",title:"Шахты",unrevealed:"Нераскрыто"}},modals:{betResult:"Результат ставки",fairnessAndHistory:"Справедливость и история",gameArea:"Игровая зона",gameControls:"Управление игрой"},outcomes:{draw:"Рисовать",loss:"Потеря",win:"Победить"},share:{betResultText:"Посмотрите результат моей ставки!",betResultTitle:"Результат ставки"}}});var xt=Uo((_1,Ks)=>{Ks.exports={accessibility:{betPlacedAnnouncement:"Bahis başarıyla yapıldı",gameInProgress:"Oyun devam ediyor",languageChanged:"Dil {language} olarak değiştirildi"},alerts:{autobetStarted:"Otomatik bahis modu başlatıldı",autobetStopped:"Otomatik bahis modu durduruldu",betAmountAboveMaxBet:"Bahis miktarı maksimum bahsin üzerindedir",betAmountBelowMinBet:"Bahis miktarı minimum bahsin altındadır",betCancelled:"Bahis iptal edildi",betDetailsCopied:"Bahis detayları panoya kopyalandı!",betPlaced:"Bahis başarıyla yapıldı",connectionError:"Bağlantı hatası",errorProcessingBet:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",failedToLoadBetData:"Bahis verileri yüklenemedi",failedToShareBetDetails:"Bahis detayları paylaşılamadı",gameError:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",insufficientBalance:"Yetersiz bakiye",notEnoughBalance:"Yeterli denge yok"},autobet:{baseAmount:"Temel Tutar",decrease:"Azaltmak",games:"Oyunlar",games10:"10 oyun",games100:"100 oyun",games25:"25 oyun",games5:"5 oyun",games50:"50 oyun",increase:"Arttırmak",infinite:"Sonsuz",numberOfBets:"Bahis Sayısı",onLoss:"Kayıp Üzerine",onWin:"Kazanmak Üzerine",reset:"Sıfırla",startAutobet:"Otomatik Bahis Başlat",stopAutobet:"Otomatik Bahsi Durdur",stopOnLoss:"Zararda Dur",stopOnProfit:"Kârda Dur",stopOnWin:"Kazanma Durdurma",title:"Otomatik bahis"},common:{amount:"Miktar",animation:"Animasyon",auto:"Otomatik",back:"Geri",balance:"Denge",bet:"Bahis Miktarı",betAmount:"Bahis Miktarı",cancel:"İptal etmek",cashOut:"Nakit Çekme",change:"Değiştirmek",classic:"Klasik",close:"Kapalı",closeAlert:"Yakın uyarı",closeDialog:"İletişim kutusunu kapat",confirm:"Onaylamak",copy:"Kopyala",error:"Hata",fairness:"Adalet",footerNavigation:"Alt bilgi gezintisi",high:"Yüksek",history:"Tarih",hotkeys:"Kısayollar",id:"İD",instantBet:"Anında Bahis",loading:"Yükleniyor...",loadMore:"Daha Fazlasını Yükle",lobby:"Lobiye Geri Dön",loss:"Kayıp",low:"Düşük",manual:"Manuel",medium:"Orta",multiplier:"Çarpan",next:"Sonraki",odds:"Oranlar",payout:"Ödeme",placeBet:"Bahis",previous:"Öncesi",profit:"Kâr",profitOnWin:"Kazanç Üzerine Kar",provablyFair:"Kanıtlanabilir Adil",rangeSlider:"Aralık kaydırıcısı",risk:"Risk",settings:"Ayarlar",share:"Paylaşmak",siteInformation:"Site bilgileri",space:"UZAY",start:"Başlangıç",stop:"Durmak",success:"Başarı",targetMultiplier:"Çarpan",thisFieldIsRequired:"Bu alan gereklidir",timestamp:"Zaman",toggleHotkeys:"Kısayolları Değiştir",toggleSwitch:"Geçiş anahtarı",viewFairnessInformation:"Adalet bilgilerini görüntüle",volume:"Hacim",win:"Kazanç",winChance:"Kazanma Şansı"},errors:{connection:"Bağlantı hatası",dice:{multiplierRange:"1.0102 ile 9900 arasında olmalıdır",winChanceRange:"0,01 ile 98 arasında olmalıdır"},game:"Oyun hatası oluştu",insufficientBalance:"Yetersiz bakiye",limbo:{multiplierRange:"Çarpan en az 1,01 olmalıdır",winChanceRange:"Kazanma şansı 0,000099 ile 99,9999 arasında olmalıdır"}},fairness:{activeClientSeed:"Aktif İstemci Tohumu",enterClientSeed:"İstemci Tohumunu Girin",enterProof:"Kanıtı Girin",enterPublicKey:"Genel Anahtarı Girin",enterRandomness:"Rastgeleliğe Girin",enterRequest:"İstek Girin",invalidGame:"Geçersiz oyun türü sağlandı.",noBettingHistory:"Bahis geçmişi yok",outcomeCalculationInfo:"Her oyunun sonucu, girdi olarak rastgele bir değer kullanılarak hesaplanır.",outcomeNotVerified:"Bu oyunun sonucu doğrulanamadı",outcomeVerified:"Bu oyunun sonucu doğrulandı ve kanıtlanabilir şekilde adildir",pendingInputs:"Bekleyen Girişler",proof:"Kanıt",provableFairnessUnverified:"Kanıtlanabilir Adalet Doğrulanmamış",provableFairnessVerified:"Kanıtlanabilir Adalet Doğrulandı",publicKey:"Genel Anahtar",randomness:"Rastgelelik",request:"Rica etmek",saveClientSeed:"İstemci Tohumunu Kaydet",verified:"Doğrulandı",verifyOutcome:"Sonucu Doğrula",viewOutcome:"Sonucu Görüntüle"},games:{dice:{result:"Sonuç",roll:"Rulo",rollOver:"Yuvarlanmak",rollUnder:"Altına Yuvarlan",target:"Hedef",title:"Zar"},keno:{autoPick:"Otomatik Seçim",clearTable:"Temizlemek",draw:"Çizmek",hits:"İsabetler",kenoGameGrid:"Keno Oyun Izgarası",kenoNumber:"Keno numarası",numbers:"Sayılar",pick:"Seçmek",select1to10Tiles:"1-10 Fayans Seçin",selectAtLeastOneTile:"Lütfen en az bir kutucuk seçin",selectNumbers:"Sayıları Seçin",selectTileToAutobet:"Lütfen en az bir kutucuk seçin",title:"Keno"},limbo:{cashout:"Nakit Çekme",crashed:"Çöktü",target:"Hedef",targetMultiplier:"Çarpan",title:"Araf"},mines:{cashout:"Nakit Çekme",gem:"Mücevher",gems:"Mücevherler",mine:"Bana ait",mines:"Madenler",nextGem:"Sonraki Mücevher",reveal:"Ortaya çıkarmak",selectRandomTile:"Rastgele Döşeme Seç",selectTileToAutobet:"Lütfen otomatik bahis yapmak için en az bir karo seçin",tile:"Fayans",title:"Madenler",unrevealed:"Açıklanmamış"}},modals:{betResult:"Bahis Sonucu",fairnessAndHistory:"Adalet ve Tarih",gameArea:"Oyun Alanı",gameControls:"Oyun Kontrolleri"},outcomes:{draw:"Çizmek",loss:"Kayıp",win:"Kazanç"},share:{betResultText:"Bahis sonucumu inceleyin!",betResultTitle:"Bahis Sonucu"}}});var zt=Uo((X1,Ws)=>{Ws.exports={accessibility:{betPlacedAnnouncement:"Đã đặt cược thành công",gameInProgress:"Trò chơi đang diễn ra",languageChanged:"Ngôn ngữ đã thay đổi thành {language}"},alerts:{autobetStarted:"Đã bắt đầu chế độ đặt cược tự động",autobetStopped:"Đã dừng chế độ đặt cược tự động",betAmountAboveMaxBet:"Số tiền cược vượt quá mức cược tối đa",betAmountBelowMinBet:"Số tiền cược thấp hơn mức cược tối thiểu",betCancelled:"Cược đã bị hủy",betDetailsCopied:"Chi tiết cược đã được sao chép vào bảng tạm!",betPlaced:"Đã đặt cược thành công",connectionError:"Lỗi kết nối",errorProcessingBet:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",failedToLoadBetData:"Không tải được dữ liệu cược",failedToShareBetDetails:"Không chia sẻ được thông tin chi tiết về cược",gameError:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",insufficientBalance:"Số dư không đủ",notEnoughBalance:"Không đủ cân bằng"},autobet:{baseAmount:"Số tiền cơ sở",decrease:"Giảm bớt",games:"Trò chơi",games10:"10 trò chơi",games100:"100 trò chơi",games25:"25 trò chơi",games5:"5 trò chơi",games50:"50 trò chơi",increase:"Tăng",infinite:"Vô hạn",numberOfBets:"Số lượng cược",onLoss:"Về sự mất mát",onWin:"Trên chiến thắng",reset:"Cài lại",startAutobet:"Bắt đầu Autobet",stopAutobet:"Dừng Autobet",stopOnLoss:"Dừng lại khi mất mát",stopOnProfit:"Dừng lại ở lợi nhuận",stopOnWin:"Dừng lại ở Win",title:"Cược tự động"},common:{amount:"Số lượng",animation:"Hoạt hình",auto:"Tự động",back:"Mặt sau",balance:"Sự cân bằng",bet:"Số tiền đặt cược",betAmount:"Số tiền đặt cược",cancel:"Hủy bỏ",cashOut:"Rút tiền",change:"Thay đổi",classic:"Cổ điển",close:"Đóng",closeAlert:"Đóng cảnh báo",closeDialog:"Đóng hộp thoại",confirm:"Xác nhận",copy:"Sao chép",error:"Lỗi",fairness:"Công bằng",footerNavigation:"Điều hướng chân trang",high:"Cao",history:"Lịch sử",hotkeys:"Phím nóng",id:"NHẬN DẠNG",instantBet:"Cược tức thì",loading:"Đang tải...",loadMore:"Tải thêm",lobby:"Quay lại Sảnh",loss:"Sự mất mát",low:"Thấp",manual:"Thủ công",medium:"Trung bình",multiplier:"Hệ số nhân",next:"Kế tiếp",odds:"Tỷ lệ cược",payout:"Thanh toán",placeBet:"Đặt cược",previous:"Trước",profit:"Lợi nhuận",profitOnWin:"Lợi nhuận khi thắng",provablyFair:"Có thể chứng minh là công bằng",rangeSlider:"Thanh trượt phạm vi",risk:"Rủi ro",settings:"Cài đặt",share:"Chia sẻ",siteInformation:"Thông tin trang web",space:"KHÔNG GIAN",start:"Bắt đầu",stop:"Dừng lại",success:"Thành công",targetMultiplier:"Hệ số nhân",thisFieldIsRequired:"Trường này là bắt buộc",timestamp:"Thời gian",toggleHotkeys:"Chuyển đổi phím nóng",toggleSwitch:"Công tắc chuyển đổi",viewFairnessInformation:"Xem thông tin công bằng",volume:"Âm lượng",win:"Thắng",winChance:"Cơ hội chiến thắng"},errors:{connection:"Lỗi kết nối",dice:{multiplierRange:"Phải nằm trong khoảng từ 1,0102 đến 9900",winChanceRange:"Phải nằm trong khoảng từ 0,01 đến 98"},game:"Đã xảy ra lỗi trò chơi",insufficientBalance:"Số dư không đủ",limbo:{multiplierRange:"Hệ số nhân phải ít nhất là 1,01",winChanceRange:"Cơ hội chiến thắng phải nằm trong khoảng từ 0,000099 đến 99,9999"}},fairness:{activeClientSeed:"Hạt giống khách hàng đang hoạt động",enterClientSeed:"Nhập hạt giống khách hàng",enterProof:"Nhập bằng chứng",enterPublicKey:"Nhập khóa công khai",enterRandomness:"Nhập ngẫu nhiên",enterRequest:"Nhập yêu cầu",invalidGame:"Loại trò chơi được cung cấp không hợp lệ.",noBettingHistory:"Không có lịch sử cá cược",outcomeCalculationInfo:"Kết quả của mỗi trò chơi được tính toán bằng cách sử dụng giá trị ngẫu nhiên làm đầu vào.",outcomeNotVerified:"Kết quả của trò chơi này không thể được xác minh",outcomeVerified:"Kết quả của trò chơi này đã được xác minh và có thể chứng minh là công bằng",pendingInputs:"Đầu vào đang chờ xử lý",proof:"Bằng chứng",provableFairnessUnverified:"Công bằng có thể chứng minh chưa được xác minh",provableFairnessVerified:"Sự công bằng có thể chứng minh được đã được xác minh",publicKey:"Khóa công khai",randomness:"Tính ngẫu nhiên",request:"Lời yêu cầu",saveClientSeed:"Lưu hạt giống khách hàng",verified:"Đã xác minh",verifyOutcome:"Xác minh kết quả",viewOutcome:"Xem kết quả"},games:{dice:{result:"Kết quả",roll:"Cuộn",rollOver:"Lăn qua",rollUnder:"Lăn dưới",target:"Mục tiêu",title:"Xúc xắc"},keno:{autoPick:"Tự động chọn",clearTable:"Thông thoáng",draw:"Vẽ tranh",hits:"Lượt truy cập",kenoGameGrid:"Lưới trò chơi Keno",kenoNumber:"Số Keno",numbers:"Số",pick:"Nhặt",select1to10Tiles:"Chọn 1-10 ô",selectAtLeastOneTile:"Vui lòng chọn ít nhất một ô",selectNumbers:"Chọn số",selectTileToAutobet:"Vui lòng chọn ít nhất một ô",title:"Keno"},limbo:{cashout:"Rút tiền",crashed:"Đã bị sập",target:"Mục tiêu",targetMultiplier:"Hệ số nhân",title:"Limbo"},mines:{cashout:"Rút tiền",gem:"Đá quý",gems:"Đá quý",mine:"Của tôi",mines:"Mỏ",nextGem:"Viên ngọc tiếp theo",reveal:"Tiết lộ",selectRandomTile:"Chọn ô ngẫu nhiên",selectTileToAutobet:"Vui lòng chọn ít nhất một ô để tự động đặt cược",tile:"Ngói",title:"Mỏ",unrevealed:"Chưa tiết lộ"}},modals:{betResult:"Kết quả cược",fairnessAndHistory:"Công bằng và Lịch sử",gameArea:"Khu vực trò chơi",gameControls:"Điều khiển trò chơi"},outcomes:{draw:"Vẽ tranh",loss:"Sự mất mát",win:"Thắng"},share:{betResultText:"Hãy xem kết quả cá cược của tôi!",betResultTitle:"Kết quả cược"}}});var yt=Uo((A1,qs)=>{qs.exports={accessibility:{betPlacedAnnouncement:"投注成功",gameInProgress:"游戏进行中",languageChanged:"语言更改为 {language}"},alerts:{autobetStarted:"已启动自动投注模式",autobetStopped:"停止自动投注模式",betAmountAboveMaxBet:"投注金额高于最高投注额",betAmountBelowMinBet:"投注金额低于最低投注额",betCancelled:"投注取消",betDetailsCopied:"投注详情已复制到剪贴板!",betPlaced:"投注成功",connectionError:"连接错误",errorProcessingBet:"处理您的投注时出错。请重试。",failedToLoadBetData:"无法加载投注数据",failedToShareBetDetails:"无法分享投注详情",gameError:"处理您的投注时出错。请重试。",insufficientBalance:"余额不足",notEnoughBalance:"余额不足"},autobet:{baseAmount:"基数",decrease:"减少",games:"游戏",games10:"10场比赛",games100:"100场比赛",games25:"25场比赛",games5:"5场比赛",games50:"50场比赛",increase:"增加",infinite:"无限",numberOfBets:"投注次数",onLoss:"关于损失",onWin:"胜利",reset:"重置",startAutobet:"开始自动投注",stopAutobet:"停止自动投注",stopOnLoss:"止损",stopOnProfit:"止盈",stopOnWin:"胜利时停止",title:"自动投注"},common:{amount:"数量",animation:"动画片",auto:"汽车",back:"后退",balance:"平衡",bet:"投注金额",betAmount:"投注金额",cancel:"取消",cashOut:"提现",change:"改变",classic:"经典的",close:"关闭",closeAlert:"关闭警报",closeDialog:"关闭对话框",confirm:"确认",copy:"复制",error:"错误",fairness:"公平",footerNavigation:"页脚导航",high:"高的",history:"历史",hotkeys:"热键",id:"ID",instantBet:"即时投注",loading:"加载中...",loadMore:"加载更多",lobby:"返回大厅",loss:"损失",low:"低的",manual:"手动的",medium:"中等的",multiplier:"乘数",next:"下一个",odds:"赔率",payout:"付款",placeBet:"下注",previous:"以前的",profit:"利润",profitOnWin:"赢利",provablyFair:"可证明公平",rangeSlider:"范围滑块",risk:"风险",settings:"设置",share:"分享",siteInformation:"站点信息",space:"空间",start:"开始",stop:"停止",success:"成功",targetMultiplier:"乘数",thisFieldIsRequired:"此字段是必需的",timestamp:"时间",toggleHotkeys:"切换热键",toggleSwitch:"拨动开关",viewFairnessInformation:"查看公平性信息",volume:"体积",win:"赢",winChance:"获胜机会"},errors:{connection:"连接错误",dice:{multiplierRange:"必须介于 1.0102 和 9900 之间",winChanceRange:"必须介于 0.01 和 98 之间"},game:"游戏发生错误",insufficientBalance:"余额不足",limbo:{multiplierRange:"乘数必须至少为 1.01",winChanceRange:"获胜机会必须介于 0.000099 和 99.9999 之间"}},fairness:{activeClientSeed:"活跃客户种子",enterClientSeed:"输入客户种子",enterProof:"输入证明",enterPublicKey:"输入公钥",enterRandomness:"输入随机性",enterRequest:"输入请求",invalidGame:"提供的游戏类型无效。",noBettingHistory:"没有投注记录",outcomeCalculationInfo:"每场比赛的结果都是使用随机值作为输入来计算的。",outcomeNotVerified:"这场比赛的结果无法核实",outcomeVerified:"本场比赛的结果已经过验证,且可证明是公平的",pendingInputs:"待处理输入",proof:"证明",provableFairnessUnverified:"公平性尚未得到验证",provableFairnessVerified:"公平性已得到验证",publicKey:"公钥",randomness:"随机性",request:"要求",saveClientSeed:"保存客户端种子",verified:"已验证",verifyOutcome:"验证结果",viewOutcome:"查看结果"},games:{dice:{result:"结果",roll:"卷",rollOver:"滚下",rollUnder:"滚下",target:"目标",title:"骰子"},keno:{autoPick:"自动选择",clearTable:"清除",draw:"画",hits:"热门歌曲",kenoGameGrid:"基诺游戏网格",kenoNumber:"基诺号码",numbers:"数字",pick:"挑选",select1to10Tiles:"选择 1-10 个图块",selectAtLeastOneTile:"请至少选择一个图块",selectNumbers:"选择号码",selectTileToAutobet:"请至少选择一个图块",title:"基诺"},limbo:{cashout:"提现",crashed:"坠毁",target:"目标",targetMultiplier:"乘数",title:"地狱边境"},mines:{cashout:"提现",gem:"宝石",gems:"宝石",mine:"矿",mines:"矿山",nextGem:"下一颗宝石",reveal:"揭示",selectRandomTile:"选择随机图块",selectTileToAutobet:"请至少选择一张牌进行自动下注",tile:"瓦",title:"矿山",unrevealed:"未披露"}},modals:{betResult:"投注结果",fairnessAndHistory:"公平与历史",gameArea:"游戏区",gameControls:"游戏控制"},outcomes:{draw:"画",loss:"损失",win:"赢"},share:{betResultText:"查看我的投注结果!",betResultTitle:"投注结果"}}});var Be=Uo((Ci,Bi)=>{typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(o,i){typeof Ci==="object"&&typeof Bi!=="undefined"?Bi.exports=i():typeof define==="function"&&define.amd?define(i):(o=typeof globalThis!=="undefined"?globalThis:o||self,o.lottie=i())}(Ci,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function o(i){_useWebWorker=!!i},getWebWorker=function o(){return _useWebWorker},setLocationHref=function o(i){locationHref=i},getLocationHref=function o(){return locationHref};function createTag(o){return document.createElement(o)}function extendPrototype(o,i){var a,t=o.length,r;for(a=0;a<t;a+=1){r=o[a].prototype;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))i.prototype[e]=r[e]}}function getDescriptor(o,i){return Object.getOwnPropertyDescriptor(o,i)}function createProxyFunction(o){function i(){}return i.prototype=o,i}var audioControllerFactory=function(){function o(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return o.prototype={addAudio:function i(a){this.audios.push(a)},pause:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].pause()},resume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].resume()},setRate:function i(a){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(a)},createAudio:function i(a){if(this.audioFactory)return this.audioFactory(a);if(window.Howl)return new window.Howl({src:[a]});return{isPlaying:!1,play:function t(){this.isPlaying=!0},seek:function t(){this.isPlaying=!1},playing:function t(){},rate:function t(){},setVolume:function t(){}}},setAudioFactory:function i(a){this.audioFactory=a},setVolume:function i(a){this._volume=a,this._updateVolume()},mute:function i(){this._isMuted=!0,this._updateVolume()},unmute:function i(){this._isMuted=!1,this._updateVolume()},getVolume:function i(){return this._volume},_updateVolume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new o}}(),createTypedArray=function(){function o(a,t){var r=0,e=[],n;switch(a){case"int16":case"uint8c":n=1;break;default:n=1.1;break}for(r=0;r<t;r+=1)e.push(n);return e}function i(a,t){if(a==="float32")return new Float32Array(t);if(a==="int16")return new Int16Array(t);if(a==="uint8c")return new Uint8ClampedArray(t);return o(a,t)}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function")return i;return o}();function createSizedArray(o){return Array.apply(null,{length:o})}function _typeof$6(o){return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(o)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var o=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,a=o.length;for(i=0;i<a;i+=1)BMMath[o[i]]=Math[o[i]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(o){var i=_typeof$6(o);if(i==="object"&&o.length){var a=createSizedArray(o.length),t,r=o.length;for(t=0;t<r;t+=1)a[t]=Math.abs(o[t]);return a}return Math.abs(o)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=0.5519;function roundValues(o){_shouldRoundValues=!!o}function bmRnd(o){if(_shouldRoundValues)return Math.round(o);return o}function styleDiv(o){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.display="block",o.style.transformOrigin="0 0",o.style.webkitTransformOrigin="0 0",o.style.backfaceVisibility="visible",o.style.webkitBackfaceVisibility="visible",o.style.transformStyle="preserve-3d",o.style.webkitTransformStyle="preserve-3d",o.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(o,i,a,t){this.type=o,this.currentTime=i,this.totalTime=a,this.direction=t<0?-1:1}function BMCompleteEvent(o,i){this.type=o,this.direction=i<0?-1:1}function BMCompleteLoopEvent(o,i,a,t){this.type=o,this.currentLoop=a,this.totalLoops=i,this.direction=t<0?-1:1}function BMSegmentStartEvent(o,i,a){this.type=o,this.firstFrame=i,this.totalFrames=a}function BMDestroyEvent(o,i){this.type=o,this.target=i}function BMRenderFrameErrorEvent(o,i){this.type="renderFrameError",this.nativeError=o,this.currentTime=i}function BMConfigErrorEvent(o){this.type="configError",this.nativeError=o}function BMAnimationConfigErrorEvent(o,i){this.type=o,this.nativeError=i}var createElementID=function(){var o=0;return function i(){return o+=1,idPrefix$1+"__lottie_element_"+o}}();function HSVtoRGB(o,i,a){var t,r,e,n,s,l,h,p;switch(n=Math.floor(o*6),s=o*6-n,l=a*(1-i),h=a*(1-s*i),p=a*(1-(1-s)*i),n%6){case 0:t=a,r=p,e=l;break;case 1:t=h,r=a,e=l;break;case 2:t=l,r=a,e=p;break;case 3:t=l,r=h,e=a;break;case 4:t=p,r=l,e=a;break;case 5:t=a,r=l,e=h;break;default:break}return[t,r,e]}function RGBtoHSV(o,i,a){var t=Math.max(o,i,a),r=Math.min(o,i,a),e=t-r,n,s=t===0?0:e/t,l=t/255;switch(t){case r:n=0;break;case o:n=i-a+e*(i<a?6:0),n/=6*e;break;case i:n=a-o+e*2,n/=6*e;break;case a:n=o-i+e*4,n/=6*e;break;default:break}return[n,s,l]}function addSaturationToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[1]+=i,a[1]>1)a[1]=1;else if(a[1]<=0)a[1]=0;return HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[2]+=i,a[2]>1)a[2]=1;else if(a[2]<0)a[2]=0;return HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[0]+=i/360,a[0]>1)a[0]-=1;else if(a[0]<0)a[0]+=1;return HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var o=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),o[i]=a.length===1?"0"+a:a;return function(t,r,e){if(t<0)t=0;if(r<0)r=0;if(e<0)e=0;return"#"+o[t]+o[r]+o[e]}}(),setSubframeEnabled=function o(i){subframeEnabled=!!i},getSubframeEnabled=function o(){return subframeEnabled},setExpressionsPlugin=function o(i){expressionsPlugin=i},getExpressionsPlugin=function o(){return expressionsPlugin},setExpressionInterfaces=function o(i){expressionsInterfaces=i},getExpressionInterfaces=function o(){return expressionsInterfaces},setDefaultCurveSegments=function o(i){defaultCurveSegments=i},getDefaultCurveSegments=function o(){return defaultCurveSegments},setIdPrefix=function o(i){idPrefix$1=i},getIdPrefix=function o(){return idPrefix$1};function createNS(o){return document.createElementNS(svgNS,o)}function _typeof$5(o){return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(o)}var dataManager=function(){var o=1,i=[],a,t,r={onmessage:function f(){},postMessage:function f(y){a({data:y})}},e={postMessage:function f(y){r.onmessage({data:y})}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),z=URL.createObjectURL(y);return new Worker(z)}return a=f,r}function s(){if(!t)t=n(function f(y){function z(){function q(U,x){var K,c,m=U.length,P,Y,A,M;for(c=0;c<m;c+=1)if(K=U[c],"ks"in K&&!K.completed){if(K.completed=!0,K.hasMask){var E=K.masksProperties;Y=E.length;for(P=0;P<Y;P+=1)if(E[P].pt.k.i)W(E[P].pt.k);else{M=E[P].pt.k.length;for(A=0;A<M;A+=1){if(E[P].pt.k[A].s)W(E[P].pt.k[A].s[0]);if(E[P].pt.k[A].e)W(E[P].pt.k[A].e[0])}}}if(K.ty===0)K.layers=g(K.refId,x),q(K.layers,x);else if(K.ty===4)k(K.shapes);else if(K.ty===5)F(K)}}function w(U,x){if(U){var K=0,c=U.length;for(K=0;K<c;K+=1)if(U[K].t===1)U[K].data.layers=g(U[K].data.refId,x),q(U[K].data.layers,x)}}function u(U,x){var K=0,c=x.length;while(K<c){if(x[K].id===U)return x[K];K+=1}return null}function g(U,x){var K=u(U,x);if(K){if(!K.layers.__used)return K.layers.__used=!0,K.layers;return JSON.parse(JSON.stringify(K.layers))}return null}function k(U){var x,K=U.length,c,m;for(x=K-1;x>=0;x-=1)if(U[x].ty==="sh")if(U[x].ks.k.i)W(U[x].ks.k);else{m=U[x].ks.k.length;for(c=0;c<m;c+=1){if(U[x].ks.k[c].s)W(U[x].ks.k[c].s[0]);if(U[x].ks.k[c].e)W(U[x].ks.k[c].e[0])}}else if(U[x].ty==="gr")k(U[x].it)}function W(U){var x,K=U.i.length;for(x=0;x<K;x+=1)U.i[x][0]+=U.v[x][0],U.i[x][1]+=U.v[x][1],U.o[x][0]+=U.v[x][0],U.o[x][1]+=U.v[x][1]}function R(U,x){var K=x?x.split("."):[100,100,100];if(U[0]>K[0])return!0;if(K[0]>U[0])return!1;if(U[1]>K[1])return!0;if(K[1]>U[1])return!1;if(U[2]>K[2])return!0;if(K[2]>U[2])return!1;return null}var Q=function(){var U=[4,4,14];function x(c){var m=c.t.d;c.t.d={k:[{s:m,t:0}]}}function K(c){var m,P=c.length;for(m=0;m<P;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),b=function(){var U=[4,7,99];return function(x){if(x.chars&&!R(U,x.v)){var K,c=x.chars.length;for(K=0;K<c;K+=1){var m=x.chars[K];if(m.data&&m.data.shapes){if(k(m.data.shapes),m.data.ip=0,m.data.op=99999,m.data.st=0,m.data.sr=1,m.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},!x.chars[K].t)m.data.shapes.push({ty:"no"}),m.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})}}}}}(),S=function(){var U=[5,7,15];function x(c){var m=c.t.p;if(typeof m.a==="number")m.a={a:0,k:m.a};if(typeof m.p==="number")m.p={a:0,k:m.p};if(typeof m.r==="number")m.r={a:0,k:m.r}}function K(c){var m,P=c.length;for(m=0;m<P;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),I=function(){var U=[4,1,9];function x(c){var m,P=c.length,Y,A;for(m=0;m<P;m+=1)if(c[m].ty==="gr")x(c[m].it);else if(c[m].ty==="fl"||c[m].ty==="st")if(c[m].c.k&&c[m].c.k[0].i){A=c[m].c.k.length;for(Y=0;Y<A;Y+=1){if(c[m].c.k[Y].s)c[m].c.k[Y].s[0]/=255,c[m].c.k[Y].s[1]/=255,c[m].c.k[Y].s[2]/=255,c[m].c.k[Y].s[3]/=255;if(c[m].c.k[Y].e)c[m].c.k[Y].e[0]/=255,c[m].c.k[Y].e[1]/=255,c[m].c.k[Y].e[2]/=255,c[m].c.k[Y].e[3]/=255}}else c[m].c.k[0]/=255,c[m].c.k[1]/=255,c[m].c.k[2]/=255,c[m].c.k[3]/=255}function K(c){var m,P=c.length;for(m=0;m<P;m+=1)if(c[m].ty===4)x(c[m].shapes)}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),C=function(){var U=[4,4,18];function x(c){var m,P=c.length,Y,A;for(m=P-1;m>=0;m-=1)if(c[m].ty==="sh")if(c[m].ks.k.i)c[m].ks.k.c=c[m].closed;else{A=c[m].ks.k.length;for(Y=0;Y<A;Y+=1){if(c[m].ks.k[Y].s)c[m].ks.k[Y].s[0].c=c[m].closed;if(c[m].ks.k[Y].e)c[m].ks.k[Y].e[0].c=c[m].closed}}else if(c[m].ty==="gr")x(c[m].it)}function K(c){var m,P,Y=c.length,A,M,E,oo;for(P=0;P<Y;P+=1){if(m=c[P],m.hasMask){var ao=m.masksProperties;M=ao.length;for(A=0;A<M;A+=1)if(ao[A].pt.k.i)ao[A].pt.k.c=ao[A].cl;else{oo=ao[A].pt.k.length;for(E=0;E<oo;E+=1){if(ao[A].pt.k[E].s)ao[A].pt.k[E].s[0].c=ao[A].cl;if(ao[A].pt.k[E].e)ao[A].pt.k[E].e[0].c=ao[A].cl}}}if(m.ty===4)x(m.shapes)}}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}();function J(U){if(U.__complete)return;I(U),Q(U),b(U),S(U),C(U),q(U.layers,U.assets),w(U.chars,U.assets),U.__complete=!0}function F(U){if(U.t.a.length===0&&!("m"in U.t.p));}var j={};return j.completeData=J,j.checkColors=I,j.checkChars=b,j.checkPathProperties=S,j.checkShapes=C,j.completeLayers=q,j}if(!e.dataManager)e.dataManager=z();if(!e.assetLoader)e.assetLoader=function(){function q(u){var g=u.getResponseHeader("content-type");if(g&&u.responseType==="json"&&g.indexOf("json")!==-1)return u.response;if(u.response&&_typeof$5(u.response)==="object")return u.response;if(u.response&&typeof u.response==="string")return JSON.parse(u.response);if(u.responseText)return JSON.parse(u.responseText);return null}function w(u,g,k,W){var R,Q=new XMLHttpRequest;try{Q.responseType="json"}catch(b){}Q.onreadystatechange=function(){if(Q.readyState===4)if(Q.status===200)R=q(Q),k(R);else try{R=q(Q),k(R)}catch(b){if(W)W(b)}};try{Q.open(["G","E","T"].join(""),u,!0)}catch(b){Q.open(["G","E","T"].join(""),g+"/"+u,!0)}Q.send()}return{load:w}}();if(y.data.type==="loadAnimation")e.assetLoader.load(y.data.path,y.data.fullPath,function(q){e.dataManager.completeData(q),e.postMessage({id:y.data.id,payload:q,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var v=y.data.animation;e.dataManager.completeData(v),e.postMessage({id:y.data.id,payload:v,status:"success"})}else if(y.data.type==="loadData")e.assetLoader.load(y.data.path,y.data.fullPath,function(q){e.postMessage({id:y.data.id,payload:q,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})})}),t.onmessage=function(f){var y=f.data,z=y.id,v=i[z];if(i[z]=null,y.status==="success")v.onComplete(y.payload);else if(v.onError)v.onError()}}function l(f,y){o+=1;var z="processId_"+o;return i[z]={onComplete:f,onError:y},z}function h(f,y,z){s();var v=l(y,z);t.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:v})}function p(f,y,z){s();var v=l(y,z);t.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:v})}function H(f,y,z){s();var v=l(y,z);t.postMessage({type:"complete",animation:f,id:v})}return{loadAnimation:h,loadData:p,completeAnimation:H}}(),ImagePreloader=function(){var o=function(){var w=createTag("canvas");w.width=1,w.height=1;var u=w.getContext("2d");return u.fillStyle="rgba(0,0,0,0)",u.fillRect(0,0,1,1),w}();function i(){if(this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function a(){if(this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function t(w,u,g){var k="";if(w.e)k=w.p;else if(u){var W=w.p;if(W.indexOf("images/")!==-1)W=W.split("/")[1];k=u+W}else k=g,k+=w.u?w.u:"",k+=w.p;return k}function r(w){var u=0,g=setInterval(function(){var k=w.getBBox();if(k.width||u>500)this._imageLoaded(),clearInterval(g);u+=1}.bind(this),50)}function e(w){var u=t(w,this.assetsPath,this.path),g=createNS("image");if(isSafari)this.testImageLoaded(g);else g.addEventListener("load",this._imageLoaded,!1);if(g.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append)this._elementHelper.append(g);else this._elementHelper.appendChild(g);var k={img:g,assetData:w};return k}function n(w){var u=t(w,this.assetsPath,this.path),g=createTag("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),g.src=u;var k={img:g,assetData:w};return k}function s(w){var u={assetData:w},g=t(w,this.assetsPath,this.path);return dataManager.loadData(g,function(k){u.img=k,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function l(w,u){this.imagesLoadedCb=u;var g,k=w.length;for(g=0;g<k;g+=1)if(!w[g].layers){if(!w[g].t||w[g].t==="seq")this.totalImages+=1,this.images.push(this._createImageData(w[g]));else if(w[g].t===3)this.totalFootages+=1,this.images.push(this.createFootageData(w[g]))}}function h(w){this.path=w||""}function p(w){this.assetsPath=w||""}function H(w){var u=0,g=this.images.length;while(u<g){if(this.images[u].assetData===w)return this.images[u].img;u+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function z(){return this.totalFootages===this.loadedFootagesCount}function v(w,u){if(w==="svg")this._elementHelper=u,this._createImageData=this.createImageData.bind(this);else this._createImageData=this.createImgData.bind(this)}function q(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return q.prototype={loadAssets:l,setAssetsPath:p,setPath:h,loadedImages:y,loadedFootages:z,destroy:f,getAsset:H,createImgData:n,createImageData:e,imageLoaded:i,footageLoaded:a,setCacheType:v},q}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function o(i,a){if(this._cbs[i]){var t=this._cbs[i];for(var r=0;r<t.length;r+=1)t[r](a)}},addEventListener:function o(i,a){if(!this._cbs[i])this._cbs[i]=[];return this._cbs[i].push(a),function(){this.removeEventListener(i,a)}.bind(this)},removeEventListener:function o(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){var t=0,r=this._cbs[i].length;while(t<r){if(this._cbs[i][t]===a)this._cbs[i].splice(t,1),t-=1,r-=1;t+=1}if(!this._cbs[i].length)this._cbs[i]=null}}};var markerParser=function(){function o(i){var a=i.split(`\r
|
|
1
|
+
var Gn=Object.create;var{getPrototypeOf:Tn,defineProperty:qr,getOwnPropertyNames:Bn}=Object;var Dn=Object.prototype.hasOwnProperty;var ho=(o,i,a)=>{a=o!=null?Gn(Tn(o)):{};let t=i||!o||!o.__esModule?qr(a,"default",{value:o,enumerable:!0}):a;for(let r of Bn(o))if(!Dn.call(t,r))qr(t,r,{get:()=>o[r],enumerable:!0});return t};var Uo=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports);var d=function(o,i,a,t){var r=arguments.length,e=r<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,a):t,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")e=Reflect.decorate(o,i,a,t);else for(var s=o.length-1;s>=0;s--)if(n=o[s])e=(r<3?n(e):r>3?n(i,a,e):n(i,a))||e;return r>3&&e&&Object.defineProperty(i,a,e),e};var lt=Uo((K1,us)=>{us.exports={accessibility:{betPlacedAnnouncement:"تم وضع الرهان بنجاح",gameInProgress:"اللعبة قيد التقدم",languageChanged:"تم تغيير اللغة إلى {language}"},alerts:{autobetStarted:"تم بدء وضع الرهان التلقائي",autobetStopped:"تم إيقاف وضع الرهان التلقائي",betAmountAboveMaxBet:"مبلغ الرهان أعلى من الحد الأقصى للرهان",betAmountBelowMinBet:"مبلغ الرهان أقل من الحد الأدنى للرهان",betCancelled:"تم إلغاء الرهان",betDetailsCopied:"تم نسخ تفاصيل الرهان إلى الحافظة!",betPlaced:"تم وضع الرهان بنجاح",connectionError:"خطأ في الاتصال",errorProcessingBet:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",failedToLoadBetData:"فشل تحميل بيانات الرهان",failedToShareBetDetails:"فشل في مشاركة تفاصيل الرهان",gameError:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",insufficientBalance:"رصيد غير كاف",notEnoughBalance:"ليس هناك توازن كاف"},autobet:{baseAmount:"المبلغ الأساسي",decrease:"ينقص",games:"ألعاب",games10:"10 ألعاب",games100:"100 لعبة",games25:"25 لعبة",games5:"5 ألعاب",games50:"50 لعبة",increase:"يزيد",infinite:"لانهائي",numberOfBets:"عدد الرهانات",onLoss:"عن الخسارة",onWin:"على ويندوز",reset:"إعادة ضبط",startAutobet:"ابدأ الرهان التلقائي",stopAutobet:"إيقاف الرهان التلقائي",stopOnLoss:"وقف الخسارة",stopOnProfit:"إيقاف الربح",stopOnWin:"توقف عند الفوز",title:"الرهان التلقائي"},common:{amount:"كمية",animation:"الرسوم المتحركة",auto:"آلي",back:"خلف",balance:"توازن",bet:"مبلغ الرهان",betAmount:"مبلغ الرهان",cancel:"يلغي",cashOut:"صرف نقدي",change:"يتغير",classic:"كلاسيكي",close:"يغلق",closeAlert:"إغلاق التنبيه",closeDialog:"إغلاق الحوار",confirm:"يتأكد",copy:"ينسخ",error:"خطأ",fairness:"العدالة",footerNavigation:"التنقل في التذييل",high:"عالي",history:"تاريخ",hotkeys:"مفاتيح التشغيل السريع",id:"بطاقة تعريف",instantBet:"الرهان الفوري",loading:"تحميل...",loadMore:"تحميل المزيد",lobby:"العودة إلى الردهة",loss:"خسارة",low:"قليل",manual:"يدوي",medium:"واسطة",multiplier:"المضاعف",next:"التالي",odds:"احتمال",payout:"الدفع",placeBet:"وضع الرهان",previous:"سابق",profit:"ربح",profitOnWin:"الربح على الفوز",provablyFair:"عادلة بشكل يمكن إثباته",rangeSlider:"شريط تمرير النطاق",risk:"مخاطرة",settings:"إعدادات",share:"يشارك",siteInformation:"معلومات الموقع",space:"فضاء",start:"يبدأ",stop:"قف",success:"نجاح",targetMultiplier:"المضاعف",thisFieldIsRequired:"هذه الخانة مطلوبه",timestamp:"وقت",toggleHotkeys:"تبديل مفاتيح التشغيل السريع",toggleSwitch:"مفتاح التبديل",viewFairnessInformation:"عرض معلومات العدالة",volume:"مقدار",win:"يفوز",winChance:"فرصة الفوز"},errors:{connection:"خطأ في الاتصال",dice:{multiplierRange:"يجب أن يكون بين 1.0102 و 9900",winChanceRange:"يجب أن يكون بين 0.01 و 98"},game:"حدث خطأ في اللعبة",insufficientBalance:"رصيد غير كاف",limbo:{multiplierRange:"يجب أن يكون المضاعف 1.01 على الأقل",winChanceRange:"يجب أن تكون فرصة الفوز بين 0.000099 و 99.9999"}},fairness:{activeClientSeed:"بذرة العميل النشط",enterClientSeed:"أدخل بذرة العميل",enterProof:"أدخل الدليل",enterPublicKey:"أدخل المفتاح العام",enterRandomness:"أدخل العشوائية",enterRequest:"أدخل الطلب",invalidGame:"تم تقديم نوع لعبة غير صالح.",noBettingHistory:"لا يوجد تاريخ مراهنة",outcomeCalculationInfo:"يتم حساب نتيجة كل لعبة باستخدام قيمة عشوائية كمدخلات.",outcomeNotVerified:"لم يتم التحقق من نتيجة هذه اللعبة",outcomeVerified:"لقد تم التحقق من نتيجة هذه اللعبة ويمكن إثبات أنها عادلة",pendingInputs:"المدخلات المعلقة",proof:"دليل",provableFairnessUnverified:"العدالة القابلة للإثبات غير مؤكدة",provableFairnessVerified:"تم التحقق من العدالة القابلة للإثبات",publicKey:"المفتاح العام",randomness:"العشوائية",request:"طلب",saveClientSeed:"حفظ بذرة العميل",verified:"تم التحقق",verifyOutcome:"التحقق من النتيجة",viewOutcome:"عرض النتيجة"},games:{dice:{result:"نتيجة",roll:"لفافة",rollOver:"انقلب",rollUnder:"تدحرج تحت",target:"هدف",title:"النرد"},keno:{autoPick:"الاختيار التلقائي",clearTable:"واضح",draw:"يرسم",hits:"الضربات",kenoGameGrid:"شبكة لعبة كينو",kenoNumber:"رقم كينو",numbers:"أرقام",pick:"يختار",select1to10Tiles:"حدد 1-10 بلاطات",selectAtLeastOneTile:"الرجاء تحديد بلاطة واحدة على الأقل",selectNumbers:"اختر الأرقام",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل",title:"كينو"},limbo:{cashout:"صرف نقدي",crashed:"تحطمت",target:"هدف",targetMultiplier:"المضاعف",title:"ليمبو"},mines:{cashout:"صرف نقدي",gem:"جوهرة",gems:"الأحجار الكريمة",mine:"مِلكِي",mines:"المناجم",nextGem:"الجوهرة التالية",reveal:"يكشف",selectRandomTile:"حدد بلاطة عشوائية",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل للمراهنة تلقائيًا",tile:"بلاط",title:"المناجم",unrevealed:"غير مكشوف"}},modals:{betResult:"نتيجة الرهان",fairnessAndHistory:"العدالة والتاريخ",gameArea:"منطقة اللعبة",gameControls:"عناصر التحكم في اللعبة"},outcomes:{draw:"يرسم",loss:"خسارة",win:"يفوز"},share:{betResultText:"تحقق من نتيجة رهاني!",betResultTitle:"نتيجة الرهان"}}});var dt=Uo((W1,fs)=>{fs.exports={accessibility:{betPlacedAnnouncement:"Wette erfolgreich platziert",gameInProgress:"Spiel läuft",languageChanged:"Sprache geändert zu {language}"},alerts:{autobetStarted:"Autobet-Modus gestartet",autobetStopped:"Autobet-Modus gestoppt",betAmountAboveMaxBet:"Der Einsatzbetrag liegt über dem Höchsteinsatz",betAmountBelowMinBet:"Der Einsatzbetrag liegt unter dem Mindesteinsatz",betCancelled:"Wette abgesagt",betDetailsCopied:"Wettdetails in die Zwischenablage kopiert!",betPlaced:"Wette erfolgreich platziert",connectionError:"Verbindungsfehler",errorProcessingBet:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",failedToLoadBetData:"Wettdaten konnten nicht geladen werden",failedToShareBetDetails:"Wettdetails konnten nicht geteilt werden",gameError:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",insufficientBalance:"Unzureichendes Gleichgewicht",notEnoughBalance:"Nicht genug Gleichgewicht"},autobet:{baseAmount:"Basisbetrag",decrease:"Verringern",games:"Spiele",games10:"10 Spiele",games100:"100 Spiele",games25:"25 Spiele",games5:"5 Spiele",games50:"50 Spiele",increase:"Zunahme",infinite:"Unendlich",numberOfBets:"Anzahl der Wetten",onLoss:"Bei Verlust",onWin:"Bei Win",reset:"Zurücksetzen",startAutobet:"Starten Sie Autobet",stopAutobet:"Stoppen Sie Autobet",stopOnLoss:"Stopp bei Verlust",stopOnProfit:"Stoppen Sie den Gewinn",stopOnWin:"Stopp bei Win",title:"Autobet"},common:{amount:"Menge",animation:"Animation",auto:"Auto",back:"Zurück",balance:"Gleichgewicht",bet:"Einsatzbetrag",betAmount:"Einsatzbetrag",cancel:"Stornieren",cashOut:"Auszahlung",change:"Ändern",classic:"Klassiker",close:"Schließen",closeAlert:"Warnung schließen",closeDialog:"Dialog schließen",confirm:"Bestätigen",copy:"Kopie",error:"Fehler",fairness:"Fairness",footerNavigation:"Footer navigation",high:"Hoch",history:"Geschichte",hotkeys:"Tastenkombinationen",id:"AUSWEIS",instantBet:"Sofortwette",loading:"Laden...",loadMore:"Mehr laden",lobby:"Zurück zur Lobby",loss:"Verlust",low:"Niedrig",manual:"Handbuch",medium:"Medium",multiplier:"Multiplikator",next:"Nächste",odds:"Chancen",payout:"Auszahlung",placeBet:"Wette platzieren",previous:"Vorherige",profit:"Profitieren",profitOnWin:"Gewinn beim Gewinn",provablyFair:"Nachweislich fair",rangeSlider:"Bereichsregler",risk:"Risiko",settings:"Einstellungen",share:"Aktie",siteInformation:"Site-Informationen",space:"RAUM",start:"Start",stop:"Stoppen",success:"Erfolg",targetMultiplier:"Multiplikator",thisFieldIsRequired:"Dieses Feld ist erforderlich",timestamp:"Zeit",toggleHotkeys:"Hotkeys umschalten",toggleSwitch:"Kippschalter",viewFairnessInformation:"Fairnessinformationen anzeigen",volume:"Volumen",win:"Gewinnen",winChance:"Gewinnchance"},errors:{connection:"Verbindungsfehler",dice:{multiplierRange:"Muss zwischen 1,0102 und 9900 liegen",winChanceRange:"Muss zwischen 0,01 und 98 liegen"},game:"Es ist ein Spielfehler aufgetreten",insufficientBalance:"Unzureichendes Gleichgewicht",limbo:{multiplierRange:"Der Multiplikator muss mindestens 1,01 betragen",winChanceRange:"Die Gewinnchance muss zwischen 0,000099 und 99,9999 liegen"}},fairness:{activeClientSeed:"Aktiver Client-Seed",enterClientSeed:"Client-Seed eingeben",enterProof:"Beweis eingeben",enterPublicKey:"Öffentlichen Schlüssel eingeben",enterRandomness:"Geben Sie Zufälligkeit ein",enterRequest:"Anfrage eingeben",invalidGame:"Ungültiger Spieltyp angegeben.",noBettingHistory:"Kein Wettverlauf",outcomeCalculationInfo:"Das Ergebnis jedes Spiels wird anhand eines Zufallswerts als Eingabe berechnet.",outcomeNotVerified:"Das Ergebnis dieses Spiels konnte nicht verifiziert werden",outcomeVerified:"Das Ergebnis dieses Spiels wurde überprüft und ist nachweislich fair",pendingInputs:"Ausstehende Eingaben",proof:"Nachweisen",provableFairnessUnverified:"Nachweisbare Fairness nicht verifiziert",provableFairnessVerified:"Nachweisbare Fairness verifiziert",publicKey:"Öffentlicher Schlüssel",randomness:"Zufälligkeit",request:"Anfrage",saveClientSeed:"Client-Seed speichern",verified:"Verifiziert",verifyOutcome:"Ergebnis überprüfen",viewOutcome:"Ergebnis anzeigen"},games:{dice:{result:"Ergebnis",roll:"Rollen",rollOver:"Sich umdrehen",rollUnder:"Unterrollen",target:"Ziel",title:"Würfel"},keno:{autoPick:"Automatische Auswahl",clearTable:"Klar",draw:"Ziehen",hits:"Treffer",kenoGameGrid:"Keno-Spielraster",kenoNumber:"Keno-Nummer",numbers:"Zahlen",pick:"Wählen",select1to10Tiles:"Wählen Sie 1–10 Kacheln aus",selectAtLeastOneTile:"Bitte wählen Sie mindestens eine Kachel aus",selectNumbers:"Zahlen auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens eine Kachel aus",title:"Keno"},limbo:{cashout:"Auszahlung",crashed:"Abgestürzt",target:"Ziel",targetMultiplier:"Multiplikator",title:"Limbo"},mines:{cashout:"Auszahlung",gem:"Juwel",gems:"Edelsteine",mine:"Meins",mines:"Minen",nextGem:"Nächster Edelstein",reveal:"Aufdecken",selectRandomTile:"Zufällige Kachel auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens ein Feld für die automatische Wette aus",tile:"Fliese",title:"Minen",unrevealed:"Unenthüllt"}},modals:{betResult:"Wettergebnis",fairnessAndHistory:"Fairness und Geschichte",gameArea:"Spielbereich",gameControls:"Spielsteuerung"},outcomes:{draw:"Ziehen",loss:"Verlust",win:"Gewinnen"},share:{betResultText:"Schauen Sie sich mein Wettergebnis an!",betResultTitle:"Wettergebnis"}}});var ct=Uo((q1,gs)=>{gs.exports={common:{bet:"Bet Amount",cancel:"Cancel",confirm:"Confirm",close:"Close",loading:"Loading...",error:"Error",success:"Success",back:"Back",next:"Next",previous:"Previous",start:"Start",stop:"Stop",auto:"Auto",manual:"Manual",amount:"Amount",balance:"Balance",win:"Win",loss:"Loss",profit:"Profit",payout:"Payout",multiplier:"Multiplier",odds:"Odds",history:"History",provablyFair:"Provably Fair",lobby:"Back to Lobby",fairness:"Fairness",settings:"Settings",placeBet:"Place Bet",profitOnWin:"Profit On Win",targetMultiplier:"Multiplier",winChance:"Win Chance",cashOut:"Cash Out",change:"Change",copy:"Copy",volume:"Volume",instantBet:"Instant Bet",hotkeys:"Hotkeys",animation:"Animation",risk:"Risk",classic:"Classic",low:"Low",medium:"Medium",high:"High",closeDialog:"Close dialog",closeAlert:"Close alert",toggleHotkeys:"Toggle Hotkeys",siteInformation:"Site information",footerNavigation:"Footer navigation",viewFairnessInformation:"View fairness information",share:"Share",id:"ID",timestamp:"Time",space:"SPACE",betAmount:"Bet Amount",loadMore:"Load More",thisFieldIsRequired:"This field is required",toggleSwitch:"Toggle switch",rangeSlider:"Range slider",gameInfo:"Game Info",copied:"Copied",infoIntro:"Need more information? Contact our support team to learn more about how our games work."},games:{dice:{title:"Dice",rollOver:"Roll Over",rollUnder:"Roll Under",target:"Target",roll:"Roll",result:"Result"},keno:{title:"Keno",selectNumbers:"Select Numbers",draw:"Draw",numbers:"Numbers",hits:"Hits",pick:"Pick",autoPick:"Auto Pick",clearTable:"Clear",select1to10Tiles:"Select 1-10 Tiles",kenoNumber:"Keno number",kenoGameGrid:"Keno Game Grid",selectTileToAutobet:"Please select at least one tile",selectAtLeastOneTile:"Please select at least one tile"},limbo:{title:"Limbo",target:"Target",crashed:"Crashed",cashout:"Cash Out",targetMultiplier:"Multiplier",multiplierError:"Must be at least 1.01",winChanceError:"Must be between 0.000099 and 99.9999"},mines:{title:"Mines",mines:"Mines",gems:"Gems",reveal:"Reveal",cashout:"Cash Out",selectRandomTile:"Select Random Tile",nextGem:"Next Gem",mine:"Mine",gem:"Gem",tile:"Tile",unrevealed:"Unrevealed",selectTileToAutobet:"Please select at least one tile to autobet"}},autobet:{title:"Autobet",numberOfBets:"Number of Bets",onWin:"On Win",onLoss:"On Loss",stopOnWin:"Stop on Win",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",increase:"Increase",decrease:"Decrease",reset:"Reset",baseAmount:"Base Amount",games5:"5 games",games10:"10 games",games25:"25 games",games50:"50 games",games100:"100 games",infinite:"Infinite",startAutobet:"Start Autobet",stopAutobet:"Stop Autobet",games:"Games"},modals:{betResult:"Bet Result",fairnessAndHistory:"Fairness and History",gameArea:"Game Area",gameControls:"Game Controls",gameInfo:"Game Info"},alerts:{betPlaced:"Bet placed successfully",betCancelled:"Bet cancelled",insufficientBalance:"Insufficient balance",connectionError:"Connection error",gameError:"There was an error processing your bet. Please try again.",failedToLoadBetData:"Failed to load bet data",betDetailsCopied:"Bet details copied to clipboard!",failedToShareBetDetails:"Failed to share bet details",notEnoughBalance:"Not enough balance",errorProcessingBet:"There was an error processing your bet. Please try again.",autobetStopped:"Stopped autobet mode",autobetStarted:"Started autobet mode",betAmountBelowMinBet:"Bet amount is below minimum bet",betAmountAboveMaxBet:"Bet amount is above maximum bet"},fairness:{activeClientSeed:"Active Client Seed",enterClientSeed:"Enter Client Seed",saveClientSeed:"Save Client Seed",publicKey:"Active Public Key",request:"Request",proof:"Proof",randomness:"Randomness",noBettingHistory:"No betting history",verifyOutcome:"Verify Outcome",enterPublicKey:"Enter Public Key",enterRequest:"Enter Request",enterProof:"Enter Proof",enterRandomness:"Enter Randomness",outcomeCalculationInfo:"This game uses a provably fair algorithm that ensures the outcome is fair and transparent.",learnMore:"Learn More",info:{p1:"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome.",p2:"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety.",p3:"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time.",p4:"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.",moreInfo:"Need more information? Contact our support team to learn more about how our games work."},newClientSeed:"New Client Seed",pendingInputs:"Pending Inputs",provableFairnessVerified:"Provable Fairness Verified",provableFairnessUnverified:"Provable Fairness Unverified",viewOutcome:"View Outcome",invalidGame:"Invalid game type provided.",outcomeVerified:"The outcome of this round has been verified with our public key and is provably fair.",outcomeNotVerified:"The outcome of this game could not be verified. Double check you have entered the correct information and try again.",verified:"Verified"},share:{betResultTitle:"Bet Result",betResultText:"Check out my bet result!"},errors:{dice:{multiplierRange:"Must be between 1.0102 and 9900",winChanceRange:"Must be between 0.01 and 98"}},accessibility:{sliderValue:"{value} out of {max}"},gameInfo:{howItWorks:"How it works",tutorial:"Tutorial",payouts:"Payouts & odds",tips:"Tips",strategyTitle:"Strategy",dice:{title:"Dice",overview:"Set a target number and choose whether the roll will land under or over it. Moving the slider changes your win chance and multiplier—a higher chance lowers the multiplier, a lower chance increases it. Each round is one independent roll on the game’s scale (shown in-game).",how1:"Choose Roll Under or Roll Over.",how2:"Set your target number (or adjust Win Chance/Multiplier).",how3:"Enter your bet amount and press Place Bet.",how4:"We generate one random result (displayed on the 0–99.99 scale in-game).",how5:"You win if the result is in your chosen range: Under wins on numbers strictly less than the target; Over wins on numbers strictly greater than the target.",how6:"Your payout is bet × the shown multiplier, which updates as you move the slider.",strategyTip:"Pick your volatility. A lower win chance (tight range) yields bigger multipliers but rarer hits. A higher win chance (wide range) yields smaller multipliers but more frequent wins. Over/Under is symmetric—choose whichever side suits your target and session goals. Size your bets to your bankroll for steadier swings.",provablyFair:"Our verifiable randomness system generates every Dice roll. After each round, you can view the inputs and proof, verify the roll with our public key, and reproduce the same result."},keno:{title:"Keno",overview:"Keno is a quick and simple game: pick your lucky numbers and try to match the draw. You can choose 1–10 numbers from 1–40, and we then draw 10 numbers. The more of your picks that hit, the higher your payout. Fewer picks = higher multipliers per hit; more picks = more ways to hit something each round.",how1:"Pick 1–10 numbers (“spots”) on the 1–40 board.",how2:"Set your bet amount and place your bet.",how3:"We draw 10 winning numbers; your matches are highlighted.",how4:"Payouts depend on how many spots you selected and how many hits you got—check the paytable (it updates when you change your number of spots).",how5:"You can never hit more numbers than you selected, and the maximum selection is 10.",strategyTip:"Choose your volatility. Picking fewer spots (1–3) means rarer wins but much bigger multipliers. More spots (7–10) give more frequent hits but smaller average returns per hit. A middle range (4–6) balances hit rate and payout. Adjust your bet size to match your risk preference and bankroll.",provablyFair:"Our verifiable randomness system generates every Keno draw. After each round, you can view the inputs and proof, verify the draw with our public key, and reproduce the same result."},mines:{title:"Mines",overview:"Mines is about picking safe tiles and deciding when to cash out. Before the round starts, choose how many mines will be hidden on the board. Each safe tile you reveal increases your multiplier. Hit a mine, and the round ends with no payout. More mines raise the risk but also the potential reward per successful reveal.",how1:"Choose the number of mines for this round.",how2:"Set your bet amount and press Place Bet.",how3:"Click tiles to reveal them: a safe tile increases your multiplier; a mine ends the round.",how4:"You can press Cash Out at any time to lock in your current multiplier.",how5:"Your payout is bet × the current multiplier when you Cash Out.",how6:"The round ends when you Cash Out or when a mine is revealed.",strategyTip:"Pick your volatility. Fewer mines = safer reveals and smaller multipliers per step. More mines = riskier reveals with bigger multipliers. Set a target or use a stop-loss to manage swings. Consistent bet sizing and disciplined cash outs help keep variance in check.",provablyFair:"Our verifiable randomness system generates each board’s hidden mine layout. After every round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."},limbo:{title:"Limbo",overview:"Pick a target multiplier and try to hit it. In Limbo, you set your desired payout, and the game draws a single random outcome multiplier. If the outcome is at least your target, you win. If it’s lower, you lose. A higher chance lowers the multiplier; a lower chance increases it. Each round resolves instantly.",how1:"Set your target multiplier (or adjust Win Chance/Multiplier).",how2:"Enter your bet amount and press Place Bet.",how3:"We generate one random outcome multiplier.",how4:"You win if the outcome is greater than or equal to your target.",how5:"Your payout is bet × your target multiplier; otherwise, you lose your bet.",strategyTip:"Choose your volatility. Lower targets win more often but pay less, while higher targets hit rarely but pay much more. Consider a fixed target per session or mix in occasional long shots, and size bets consistently to manage variance.",provablyFair:"Our verifiable randomness system generates every Limbo outcome. After each round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."}}}});var ht=Uo((U1,ps)=>{ps.exports={accessibility:{betPlacedAnnouncement:"Apuesta realizada con éxito",gameInProgress:"Juego en progreso",languageChanged:"Idioma cambiado a {language}"},alerts:{autobetStarted:"Se inició el modo de apuesta automática",autobetStopped:"Se detuvo el modo de apuesta automática",betAmountAboveMaxBet:"El monto de la apuesta es superior a la apuesta máxima",betAmountBelowMinBet:"El monto de la apuesta es inferior a la apuesta mínima",betCancelled:"Apuesta cancelada",betDetailsCopied:"¡Detalles de la apuesta copiados al portapapeles!",betPlaced:"Apuesta realizada con éxito",connectionError:"Error de conexión",errorProcessingBet:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",failedToLoadBetData:"No se pudieron cargar los datos de la apuesta",failedToShareBetDetails:"No se pudieron compartir los detalles de la apuesta",gameError:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"No hay suficiente equilibrio"},autobet:{baseAmount:"Monto base",decrease:"Disminuir",games:"Juegos",games10:"10 juegos",games100:"100 juegos",games25:"25 juegos",games5:"5 juegos",games50:"50 juegos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apuestas",onLoss:"Sobre la pérdida",onWin:"En Win",reset:"Reiniciar",startAutobet:"Iniciar apuesta automática",stopAutobet:"Detener la apuesta automática",stopOnLoss:"Detener la pérdida",stopOnProfit:"Detener las ganancias",stopOnWin:"Detenerse en Win",title:"Apuesta automática"},common:{amount:"Cantidad",animation:"Animación",auto:"Auto",back:"Atrás",balance:"Balance",bet:"Monto de la apuesta",betAmount:"Monto de la apuesta",cancel:"Cancelar",cashOut:"Retiro de efectivo",change:"Cambiar",classic:"Clásico",close:"Cerca",closeAlert:"Cerrar alerta",closeDialog:"Cerrar diálogo",confirm:"Confirmar",copy:"Copiar",error:"Error",fairness:"Justicia",footerNavigation:"Navegación de pie de página",high:"Alto",history:"Historia",hotkeys:"Teclas de acceso rápido",id:"IDENTIFICACIÓN",instantBet:"Apuesta instantánea",loading:"Cargando...",loadMore:"Cargar más",lobby:"Volver al vestíbulo",loss:"Pérdida",low:"Bajo",manual:"Manual",medium:"Medio",multiplier:"Multiplicador",next:"Próximo",odds:"Impares",payout:"Pago",placeBet:"Realizar apuesta",previous:"Anterior",profit:"Ganancia",profitOnWin:"Ganancias al ganar",provablyFair:"Demostrablemente justo",rangeSlider:"Control deslizante de rango",risk:"Riesgo",settings:"Ajustes",share:"Compartir",siteInformation:"Información del sitio",space:"ESPACIO",start:"Comenzar",stop:"Detener",success:"Éxito",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo es obligatorio",timestamp:"Tiempo",toggleHotkeys:"Alternar teclas de acceso rápido",toggleSwitch:"Interruptor de palanca",viewFairnessInformation:"Ver información de equidad",volume:"Volumen",win:"Ganar",winChance:"Oportunidad de ganar"},errors:{connection:"Error de conexión",dice:{multiplierRange:"Debe estar entre 1.0102 y 9900",winChanceRange:"Debe estar entre 0,01 y 98"},game:"Se produjo un error en el juego",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"El multiplicador debe ser al menos 1,01",winChanceRange:"La probabilidad de ganar debe estar entre 0,000099 y 99,9999"}},fairness:{activeClientSeed:"Semilla de cliente activa",enterClientSeed:"Introducir semilla de cliente",enterProof:"Introducir prueba",enterPublicKey:"Introducir clave pública",enterRandomness:"Entra la aleatoriedad",enterRequest:"Introducir solicitud",invalidGame:"Tipo de juego proporcionado no válido.",noBettingHistory:"Sin historial de apuestas",outcomeCalculationInfo:"El resultado de cada juego se calcula utilizando un valor aleatorio como entrada.",outcomeNotVerified:"No se pudo verificar el resultado de este juego.",outcomeVerified:"El resultado de este juego ha sido verificado y es demostrablemente justo.",pendingInputs:"Entradas pendientes",proof:"Prueba",provableFairnessUnverified:"Justicia demostrable no verificada",provableFairnessVerified:"Justicia demostrable verificada",publicKey:"Clave pública",randomness:"Aleatoriedad",request:"Pedido",saveClientSeed:"Guardar semilla de cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rollo",rollOver:"Dese la vuelta",rollUnder:"Rodar por debajo",target:"Objetivo",title:"Dados"},keno:{autoPick:"Selección automática",clearTable:"Claro",draw:"Dibujar",hits:"Éxitos",kenoGameGrid:"Cuadrícula del juego Keno",kenoNumber:"Número de Keno",numbers:"Números",pick:"Elegir",select1to10Tiles:"Seleccione de 1 a 10 fichas",selectAtLeastOneTile:"Por favor seleccione al menos un mosaico",selectNumbers:"Seleccionar números",selectTileToAutobet:"Por favor seleccione al menos un mosaico",title:"Keno"},limbo:{cashout:"Retiro de efectivo",crashed:"Se estrelló",target:"Objetivo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Retiro de efectivo",gem:"Joya",gems:"Gemas",mine:"Mío",mines:"Minas",nextGem:"Próxima joya",reveal:"Revelar",selectRandomTile:"Seleccionar mosaico aleatorio",selectTileToAutobet:"Seleccione al menos una ficha para apostar automáticamente",tile:"Teja",title:"Minas",unrevealed:"No revelado"}},modals:{betResult:"Resultado de la apuesta",fairnessAndHistory:"Justicia e historia",gameArea:"Área de juego",gameControls:"Controles del juego"},outcomes:{draw:"Dibujar",loss:"Pérdida",win:"Ganar"},share:{betResultText:"¡Mira el resultado de mi apuesta!",betResultTitle:"Resultado de la apuesta"}}});var ut=Uo((R1,bs)=>{bs.exports={accessibility:{betPlacedAnnouncement:"Veto asetettu onnistuneesti",gameInProgress:"Peli käynnissä",languageChanged:"Kieli vaihdettu muotoon {language}"},alerts:{autobetStarted:"Automaattivedonlyöntitila käynnistetty",autobetStopped:"Automaattivedonlyöntitila pysäytetty",betAmountAboveMaxBet:"Panossumma on suurempi kuin maksimipanos",betAmountBelowMinBet:"Panos on alle minimipanoksen",betCancelled:"Veto peruttu",betDetailsCopied:"Vedon tiedot kopioitu leikepöydälle!",betPlaced:"Veto asetettu onnistuneesti",connectionError:"Yhteysvirhe",errorProcessingBet:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",failedToLoadBetData:"Vedonlyöntitietojen lataus epäonnistui",failedToShareBetDetails:"Vedon tietojen jakaminen epäonnistui",gameError:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",insufficientBalance:"Riittämätön saldo",notEnoughBalance:"Ei tarpeeksi tasapainoa"},autobet:{baseAmount:"Perusmäärä",decrease:"Vähennä",games:"Pelit",games10:"10 peliä",games100:"100 peliä",games25:"25 peliä",games5:"5 peliä",games50:"50 peliä",increase:"Lisätä",infinite:"Ääretön",numberOfBets:"Vetojen määrä",onLoss:"Tappiossa",onWin:"Voitossa",reset:"Nollaa",startAutobet:"Aloita automaattiveto",stopAutobet:"Pysäytä automaattinen veto",stopOnLoss:"Stop on Loss",stopOnProfit:"Pysäytä voitto",stopOnWin:"Pysähdy voitossa",title:"Automaattiveto"},common:{amount:"Määrä",animation:"Animaatio",auto:"Auto",back:"Takaisin",balance:"Saldo",bet:"Panossumma",betAmount:"Panossumma",cancel:"Peruuttaa",cashOut:"Käteisnosto",change:"Muuttaa",classic:"Klassinen",close:"Lähellä",closeAlert:"Sulje hälytys",closeDialog:"Sulje valintaikkuna",confirm:"Vahvistaa",copy:"Kopioida",error:"Virhe",fairness:"Oikeudenmukaisuus",footerNavigation:"Alatunnisteen navigointi",high:"Korkea",history:"Historia",hotkeys:"Pikanäppäimet",id:"Henkilöllisyystodistus",instantBet:"Pikaveto",loading:"Ladataan...",loadMore:"Lataa lisää",lobby:"Takaisin aulaan",loss:"Menetys",low:"Matala",manual:"Manuaalinen",medium:"Keskikokoinen",multiplier:"Kerroin",next:"Seuraava",odds:"Kertoimet",payout:"Maksu",placeBet:"Aseta veto",previous:"Edellinen",profit:"Voitto",profitOnWin:"Voitto voitosta",provablyFair:"Todistettavasti reilu",rangeSlider:"Alueen liukusäädin",risk:"Riski",settings:"Asetukset",share:"Jakaa",siteInformation:"Sivuston tiedot",space:"AVARUUS",start:"Aloita",stop:"Stop",success:"Menestys",targetMultiplier:"Kerroin",thisFieldIsRequired:"Tämä kenttä on pakollinen",timestamp:"Aika",toggleHotkeys:"Pikanäppäimet päälle/pois",toggleSwitch:"Kytkin",viewFairnessInformation:"Näytä oikeudenmukaisuustiedot",volume:"Äänenvoimakkuus",win:"Voittaa",winChance:"Voita mahdollisuus"},errors:{connection:"Yhteysvirhe",dice:{multiplierRange:"Täytyy olla välillä 1,0102 ja 9900",winChanceRange:"Täytyy olla välillä 0,01–98"},game:"Pelivirhe tapahtui",insufficientBalance:"Riittämätön saldo",limbo:{multiplierRange:"Kertoimen on oltava vähintään 1,01",winChanceRange:"Voittomahdollisuuden on oltava välillä 0,000099 ja 99,9999"}},fairness:{activeClientSeed:"Aktiivisen asiakkaan siemen",enterClientSeed:"Syötä asiakkaan siemen",enterProof:"Syötä todiste",enterPublicKey:"Syötä julkinen avain",enterRandomness:"Syötä satunnaisuus",enterRequest:"Syötä pyyntö",invalidGame:"Annettu pelityyppi on virheellinen.",noBettingHistory:"Ei vedonlyöntihistoriaa",outcomeCalculationInfo:"Kunkin pelin tulos lasketaan käyttämällä syötteenä satunnaista arvoa.",outcomeNotVerified:"Tämän pelin lopputulosta ei voitu vahvistaa",outcomeVerified:"Tämän pelin lopputulos on vahvistettu ja todistettavasti oikeudenmukainen",pendingInputs:"Odottavat syötteet",proof:"Todiste",provableFairnessUnverified:"Todistettava oikeudenmukaisuus Vahvistamaton",provableFairnessVerified:"Todistettava oikeudenmukaisuus vahvistettu",publicKey:"Julkinen avain",randomness:"Satunnaisuus",request:"Pyytää",saveClientSeed:"Tallenna asiakkaan siemen",verified:"Vahvistettu",verifyOutcome:"Varmista tulos",viewOutcome:"Näytä tulos"},games:{dice:{result:"Tulos",roll:"Rulla",rollOver:"Kaatuminen",rollUnder:"Rullaa alle",target:"Kohde",title:"Nopat"},keno:{autoPick:"Automaattinen valinta",clearTable:"Tyhjennä",draw:"Piirrä",hits:"Osumia",kenoGameGrid:"Keno-peliruudukko",kenoNumber:"Keno-numero",numbers:"Numerot",pick:"Valita",select1to10Tiles:"Valitse 1–10 laattaa",selectAtLeastOneTile:"Valitse vähintään yksi laatta",selectNumbers:"Valitse numerot",selectTileToAutobet:"Valitse vähintään yksi laatta",title:"Keno"},limbo:{cashout:"Käteisnosto",crashed:"Kaatui",target:"Kohde",targetMultiplier:"Kerroin",title:"Limbo"},mines:{cashout:"Käteisnosto",gem:"Helmi",gems:"Jalokivet",mine:"Minun",mines:"Kaivokset",nextGem:"Seuraava helmi",reveal:"Paljastaa",selectRandomTile:"Valitse satunnainen laatta",selectTileToAutobet:"Valitse vähintään yksi ruutu automaattista vetoa varten",tile:"Laatta",title:"Kaivokset",unrevealed:"Paljastumaton"}},modals:{betResult:"Vedon tulos",fairnessAndHistory:"Oikeudenmukaisuus ja historia",gameArea:"Pelialue",gameControls:"Pelin ohjaimet"},outcomes:{draw:"Piirrä",loss:"Menetys",win:"Voittaa"},share:{betResultText:"Katso vedon tulokseni!",betResultTitle:"Vedon tulos"}}});var ft=Uo((I1,ws)=>{ws.exports={accessibility:{betPlacedAnnouncement:"Pari placé avec succès",gameInProgress:"Jeu en cours",languageChanged:"Langue modifiée en {language}"},alerts:{autobetStarted:"Mode de pari automatique démarré",autobetStopped:"Mode de pari automatique arrêté",betAmountAboveMaxBet:"Le montant de la mise est supérieur à la mise maximale",betAmountBelowMinBet:"Le montant de la mise est inférieur à la mise minimale",betCancelled:"Pari annulé",betDetailsCopied:"Détails du pari copiés dans le presse-papiers !",betPlaced:"Pari placé avec succès",connectionError:"Erreur de connexion",errorProcessingBet:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",failedToLoadBetData:"Échec du chargement des données de pari",failedToShareBetDetails:"Impossible de partager les détails du pari",gameError:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",insufficientBalance:"Solde insuffisant",notEnoughBalance:"Pas assez d'équilibre"},autobet:{baseAmount:"Montant de base",decrease:"Diminuer",games:"Jeux",games10:"10 jeux",games100:"100 jeux",games25:"25 jeux",games5:"5 jeux",games50:"50 jeux",increase:"Augmenter",infinite:"Infini",numberOfBets:"Nombre de paris",onLoss:"Sur la perte",onWin:"Sur Win",reset:"Réinitialiser",startAutobet:"Démarrer Autobet",stopAutobet:"Arrêter Autobet",stopOnLoss:"Arrêtez la perte",stopOnProfit:"Arrêtez le profit",stopOnWin:"Arrêtez-vous sur Win",title:"Autobet"},common:{amount:"Montant",animation:"Animation",auto:"Auto",back:"Dos",balance:"Équilibre",bet:"Montant de la mise",betAmount:"Montant de la mise",cancel:"Annuler",cashOut:"Encaissement",change:"Changement",classic:"Classique",close:"Fermer",closeAlert:"Fermer l'alerte",closeDialog:"Fermer la boîte de dialogue",confirm:"Confirmer",copy:"Copie",error:"Erreur",fairness:"Justice",footerNavigation:"Navigation de pied de page",high:"Haut",history:"Histoire",hotkeys:"Raccourcis clavier",id:"IDENTIFIANT",instantBet:"Pari instantané",loading:"Chargement...",loadMore:"Charger plus",lobby:"Retour au hall",loss:"Perte",low:"Faible",manual:"Manuel",medium:"Moyen",multiplier:"Multiplicateur",next:"Suivant",odds:"Chances",payout:"Paiement",placeBet:"Placer un pari",previous:"Précédent",profit:"Profit",profitOnWin:"Profit sur victoire",provablyFair:"Prouvablement équitable",rangeSlider:"Curseur de plage",risk:"Risque",settings:"Paramètres",share:"Partager",siteInformation:"Informations sur le site",space:"ESPACE",start:"Commencer",stop:"Arrêt",success:"Succès",targetMultiplier:"Multiplicateur",thisFieldIsRequired:"Ce champ est obligatoire",timestamp:"Temps",toggleHotkeys:"Basculer les raccourcis clavier",toggleSwitch:"Interrupteur à bascule",viewFairnessInformation:"Afficher les informations sur l'équité",volume:"Volume",win:"Gagner",winChance:"Chance de gagner"},errors:{connection:"Erreur de connexion",dice:{multiplierRange:"Doit être compris entre 1,0102 et 9900",winChanceRange:"Doit être compris entre 0,01 et 98"},game:"Une erreur de jeu s'est produite",insufficientBalance:"Solde insuffisant",limbo:{multiplierRange:"Le multiplicateur doit être d'au moins 1,01",winChanceRange:"Les chances de gagner doivent être comprises entre 0,000099 et 99,9999"}},fairness:{activeClientSeed:"Graine de client active",enterClientSeed:"Entrez Client Seed",enterProof:"Entrez la preuve",enterPublicKey:"Entrez la clé publique",enterRandomness:"Entrez dans le hasard",enterRequest:"Entrer la demande",invalidGame:"Type de jeu non valide fourni.",noBettingHistory:"Aucun historique de paris",outcomeCalculationInfo:"Le résultat de chaque jeu est calculé à l’aide d’une valeur aléatoire en entrée.",outcomeNotVerified:"Le résultat de ce match n'a pas pu être vérifié",outcomeVerified:"Le résultat de ce jeu a été vérifié et est prouvé équitable",pendingInputs:"Entrées en attente",proof:"Preuve",provableFairnessUnverified:"Équité prouvable non vérifiée",provableFairnessVerified:"Équité prouvable vérifiée",publicKey:"Clé publique",randomness:"caractère aléatoire",request:"Demande",saveClientSeed:"Enregistrer la graine du client",verified:"Vérifié",verifyOutcome:"Vérifier le résultat",viewOutcome:"Voir le résultat"},games:{dice:{result:"Résultat",roll:"Rouler",rollOver:"Rouler sur",rollUnder:"Rouler sous",target:"Cible",title:"dés"},keno:{autoPick:"Sélection automatique",clearTable:"Clair",draw:"Dessiner",hits:"Coups",kenoGameGrid:"Grille de jeu Keno",kenoNumber:"Numéro de Keno",numbers:"Nombres",pick:"Prendre",select1to10Tiles:"Sélectionnez 1 à 10 tuiles",selectAtLeastOneTile:"Veuillez sélectionner au moins une tuile",selectNumbers:"Sélectionner des numéros",selectTileToAutobet:"Veuillez sélectionner au moins une tuile",title:"Kéno"},limbo:{cashout:"Encaissement",crashed:"Crashé",target:"Cible",targetMultiplier:"Multiplicateur",title:"Limbo"},mines:{cashout:"Encaissement",gem:"Gemme",gems:"Gemmes",mine:"Le mien",mines:"Mines",nextGem:"Prochain joyau",reveal:"Révéler",selectRandomTile:"Sélectionner une tuile aléatoire",selectTileToAutobet:"Veuillez sélectionner au moins une tuile pour effectuer un pari automatique",tile:"Tuile",title:"Mines",unrevealed:"Non révélé"}},modals:{betResult:"Résultat du pari",fairnessAndHistory:"Équité et histoire",gameArea:"Zone de jeu",gameControls:"Commandes du jeu"},outcomes:{draw:"Dessiner",loss:"Perte",win:"Gagner"},share:{betResultText:"Découvrez le résultat de mon pari !",betResultTitle:"Résultat du pari"}}});var gt=Uo((J1,vs)=>{vs.exports={accessibility:{betPlacedAnnouncement:"दांव सफलतापूर्वक लगाया गया",gameInProgress:"गेम चालू है",languageChanged:"भाषा बदलकर {language} कर दी गई"},alerts:{autobetStarted:"ऑटोबेट मोड शुरू किया गया",autobetStopped:"ऑटोबेट मोड बंद कर दिया गया",betAmountAboveMaxBet:"दांव की राशि अधिकतम दांव से अधिक है",betAmountBelowMinBet:"दांव की राशि न्यूनतम दांव से कम है",betCancelled:"शर्त रद्द",betDetailsCopied:"शर्त विवरण क्लिपबोर्ड पर कॉपी किया गया!",betPlaced:"दांव सफलतापूर्वक लगाया गया",connectionError:"संपर्क त्रुटि",errorProcessingBet:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",failedToLoadBetData:"दांव डेटा लोड करने में विफल",failedToShareBetDetails:"शर्त विवरण साझा करने में विफल",gameError:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",insufficientBalance:"अपर्याप्त शेषराशि",notEnoughBalance:"पर्याप्त संतुलन नहीं"},autobet:{baseAmount:"आधार राशि",decrease:"घटाना",games:"खेल",games10:"10 खेल",games100:"100 खेल",games25:"25 खेल",games5:"5 खेल",games50:"50 खेल",increase:"बढ़ोतरी",infinite:"अनंत",numberOfBets:"दांवों की संख्या",onLoss:"हानि पर",onWin:"जीत पर",reset:"रीसेट करें",startAutobet:"ऑटोबेट शुरू करें",stopAutobet:"ऑटोबेट रोकें",stopOnLoss:"हानि पर रोक",stopOnProfit:"लाभ पर रोक",stopOnWin:"जीत पर रोक",title:"ऑटोबेट"},common:{amount:"मात्रा",animation:"एनिमेशन",auto:"ऑटो",back:"पीछे",balance:"संतुलन",bet:"दांव राशि",betAmount:"दांव राशि",cancel:"रद्द करना",cashOut:"नकदी निकलना",change:"परिवर्तन",classic:"क्लासिक",close:"बंद करना",closeAlert:"अलर्ट बंद करें",closeDialog:"संवाद बंद करें",confirm:"पुष्टि करना",copy:"प्रतिलिपि",error:"गलती",fairness:"फेयरनेस",footerNavigation:"पाद नेविगेशन",high:"उच्च",history:"इतिहास",hotkeys:"हॉटकी",id:"पहचान",instantBet:"तत्काल शर्त",loading:"लोड हो रहा है...",loadMore:"और लोड करें",lobby:"लॉबी पर वापस जाएँ",loss:"नुकसान",low:"कम",manual:"नियमावली",medium:"मध्यम",multiplier:"गुणक",next:"अगला",odds:"कठिनाइयाँ",payout:"भुगतान",placeBet:"दांव लगाओ",previous:"पहले का",profit:"लाभ",profitOnWin:"जीत पर लाभ",provablyFair:"सिद्धतः निष्पक्ष",rangeSlider:"रेंज स्लाइडर",risk:"जोखिम",settings:"सेटिंग्स",share:"शेयर करना",siteInformation:"साइट जानकारी",space:"अंतरिक्ष",start:"शुरू",stop:"रुकना",success:"सफलता",targetMultiplier:"गुणक",thisFieldIsRequired:"यह फ़ील्ड आवश्यक है",timestamp:"समय",toggleHotkeys:"टॉगल हॉटकीज़",toggleSwitch:"गिल्ली टहनी",viewFairnessInformation:"निष्पक्षता जानकारी देखें",volume:"आयतन",win:"जीतना",winChance:"जीत का मौका"},errors:{connection:"संपर्क त्रुटि",dice:{multiplierRange:"1.0102 और 9900 के बीच होना चाहिए",winChanceRange:"0.01 और 98 के बीच होना चाहिए"},game:"गेम में त्रुटि हुई",insufficientBalance:"अपर्याप्त शेषराशि",limbo:{multiplierRange:"गुणक कम से कम 1.01 होना चाहिए",winChanceRange:"जीत की संभावना 0.000099 और 99.9999 के बीच होनी चाहिए"}},fairness:{activeClientSeed:"सक्रिय क्लाइंट बीज",enterClientSeed:"क्लाइंट सीड दर्ज करें",enterProof:"प्रमाण दर्ज करें",enterPublicKey:"सार्वजनिक कुंजी दर्ज करें",enterRandomness:"यादृच्छिकता दर्ज करें",enterRequest:"अनुरोध दर्ज करें",invalidGame:"अमान्य खेल प्रकार प्रदान किया गया.",noBettingHistory:"कोई सट्टेबाजी इतिहास नहीं",outcomeCalculationInfo:"प्रत्येक खेल का परिणाम इनपुट के रूप में एक यादृच्छिक मान का उपयोग करके गणना किया जाता है।",outcomeNotVerified:"इस खेल का परिणाम सत्यापित नहीं किया जा सका",outcomeVerified:"इस खेल का परिणाम सत्यापित हो चुका है और यह निष्पक्ष साबित हो चुका है",pendingInputs:"लंबित इनपुट",proof:"सबूत",provableFairnessUnverified:"प्रमाणित निष्पक्षता असत्यापित",provableFairnessVerified:"प्रमाणित निष्पक्षता सत्यापित",publicKey:"सार्वजनिक कुंजी",randomness:"अनियमितता",request:"अनुरोध",saveClientSeed:"क्लाइंट सीड सहेजें",verified:"सत्यापित",verifyOutcome:"परिणाम सत्यापित करें",viewOutcome:"परिणाम देखें"},games:{dice:{result:"परिणाम",roll:"रोल",rollOver:"रोल ओवर",rollUnder:"रोल अंडर",target:"लक्ष्य",title:"पासा"},keno:{autoPick:"ऑटो पिक",clearTable:"स्पष्ट",draw:"खींचना",hits:"हिट्स",kenoGameGrid:"केनो गेम ग्रिड",kenoNumber:"केनो नंबर",numbers:"नंबर",pick:"चुनना",select1to10Tiles:"1-10 टाइल्स चुनें",selectAtLeastOneTile:"कृपया कम से कम एक टाइल चुनें",selectNumbers:"नंबर चुनें",selectTileToAutobet:"कृपया कम से कम एक टाइल चुनें",title:"केनो"},limbo:{cashout:"नकदी निकलना",crashed:"दुर्घटनाग्रस्त",target:"लक्ष्य",targetMultiplier:"गुणक",title:"लीम्बो"},mines:{cashout:"नकदी निकलना",gem:"रत्न",gems:"रत्न",mine:"मेरा",mines:"खानों",nextGem:"अगला रत्न",reveal:"प्रकट करना",selectRandomTile:"यादृच्छिक टाइल का चयन करें",selectTileToAutobet:"कृपया ऑटोबेट के लिए कम से कम एक टाइल चुनें",tile:"टाइल",title:"खानों",unrevealed:"अप्रकट"}},modals:{betResult:"दांव परिणाम",fairnessAndHistory:"निष्पक्षता और इतिहास",gameArea:"खेल क्षेत्र",gameControls:"खेल नियंत्रण"},outcomes:{draw:"खींचना",loss:"नुकसान",win:"जीतना"},share:{betResultText:"मेरी शर्त का परिणाम देखें!",betResultTitle:"दांव परिणाम"}}});var pt=Uo((V1,ms)=>{ms.exports={accessibility:{betPlacedAnnouncement:"Taruhan berhasil ditempatkan",gameInProgress:"Permainan sedang berlangsung",languageChanged:"Bahasa diubah menjadi {language}"},alerts:{autobetStarted:"Memulai mode taruhan otomatis",autobetStopped:"Menghentikan mode taruhan otomatis",betAmountAboveMaxBet:"Jumlah taruhan di atas taruhan maksimum",betAmountBelowMinBet:"Jumlah taruhan di bawah taruhan minimum",betCancelled:"Taruhan dibatalkan",betDetailsCopied:"Rincian taruhan disalin ke papan klip!",betPlaced:"Taruhan berhasil ditempatkan",connectionError:"Kesalahan koneksi",errorProcessingBet:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",failedToLoadBetData:"Gagal memuat data taruhan",failedToShareBetDetails:"Gagal membagikan detail taruhan",gameError:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",insufficientBalance:"Saldo tidak mencukupi",notEnoughBalance:"Saldo tidak cukup"},autobet:{baseAmount:"Jumlah Dasar",decrease:"Mengurangi",games:"Pertandingan",games10:"10 permainan",games100:"100 permainan",games25:"25 permainan",games5:"5 permainan",games50:"50 permainan",increase:"Meningkatkan",infinite:"Tak terbatas",numberOfBets:"Jumlah Taruhan",onLoss:"Tentang Kehilangan",onWin:"Pada Kemenangan",reset:"Mengatur ulang",startAutobet:"Mulai Autobet",stopAutobet:"Hentikan Autobet",stopOnLoss:"Berhenti saat Kerugian",stopOnProfit:"Berhenti Saat Untung",stopOnWin:"Berhenti di Win",title:"Taruhan Otomatis"},common:{amount:"Jumlah",animation:"Animasi",auto:"Mobil",back:"Kembali",balance:"Keseimbangan",bet:"Jumlah Taruhan",betAmount:"Jumlah Taruhan",cancel:"Membatalkan",cashOut:"Penarikan Tunai",change:"Mengubah",classic:"Klasik",close:"Menutup",closeAlert:"Tutup peringatan",closeDialog:"Tutup dialog",confirm:"Mengonfirmasi",copy:"Menyalin",error:"Kesalahan",fairness:"Keadilan",footerNavigation:"Navigasi kaki",high:"Tinggi",history:"Sejarah",hotkeys:"Tombol pintas",id:"PENGENAL",instantBet:"Taruhan Instan",loading:"Memuat...",loadMore:"Muat Lebih Banyak",lobby:"Kembali ke Lobi",loss:"Kehilangan",low:"Rendah",manual:"Buku petunjuk",medium:"Sedang",multiplier:"Pengali",next:"Berikutnya",odds:"Kemungkinan",payout:"Pembayaran",placeBet:"Pasang Taruhan",previous:"Sebelumnya",profit:"Laba",profitOnWin:"Untung Saat Menang",provablyFair:"Terbukti Adil",rangeSlider:"Penggeser rentang",risk:"Mempertaruhkan",settings:"Pengaturan",share:"Membagikan",siteInformation:"Informasi situs",space:"RUANG ANGKASA",start:"Awal",stop:"Berhenti",success:"Kesuksesan",targetMultiplier:"Pengali",thisFieldIsRequired:"Bidang ini wajib diisi",timestamp:"Waktu",toggleHotkeys:"Beralih Tombol Pintasan",toggleSwitch:"Sakelar sakelar",viewFairnessInformation:"Lihat informasi keadilan",volume:"Volume",win:"Menang",winChance:"Kesempatan Menang"},errors:{connection:"Kesalahan koneksi",dice:{multiplierRange:"Harus antara 1.0102 dan 9900",winChanceRange:"Harus antara 0,01 dan 98"},game:"Terjadi kesalahan permainan",insufficientBalance:"Saldo tidak mencukupi",limbo:{multiplierRange:"Pengali harus minimal 1,01",winChanceRange:"Peluang menang harus antara 0,000099 dan 99,9999"}},fairness:{activeClientSeed:"Benih Klien Aktif",enterClientSeed:"Masukkan Benih Klien",enterProof:"Masukkan Bukti",enterPublicKey:"Masukkan Kunci Publik",enterRandomness:"Masuk Acak",enterRequest:"Masukkan Permintaan",invalidGame:"Jenis permainan yang diberikan tidak valid.",noBettingHistory:"Tidak ada riwayat taruhan",outcomeCalculationInfo:"Hasil setiap permainan dihitung menggunakan nilai acak sebagai masukan.",outcomeNotVerified:"Hasil pertandingan ini tidak dapat diverifikasi",outcomeVerified:"Hasil permainan ini telah diverifikasi dan terbukti adil",pendingInputs:"Masukan Tertunda",proof:"Bukti",provableFairnessUnverified:"Keadilan yang Terbukti Belum Diverifikasi",provableFairnessVerified:"Keadilan yang Terbukti dan Terverifikasi",publicKey:"Kunci Publik",randomness:"Keserampangan",request:"Meminta",saveClientSeed:"Simpan Benih Klien",verified:"Terverifikasi",verifyOutcome:"Verifikasi Hasil",viewOutcome:"Lihat Hasil"},games:{dice:{result:"Hasil",roll:"Gulungan",rollOver:"Berguling",rollUnder:"Gulung ke Bawah",target:"Target",title:"Dadu"},keno:{autoPick:"Pilih Otomatis",clearTable:"Jernih",draw:"Menggambar",hits:"Hits",kenoGameGrid:"Kisi Permainan Keno",kenoNumber:"Nomor Keno",numbers:"Angka",pick:"Memilih",select1to10Tiles:"Pilih 1-10 Ubin",selectAtLeastOneTile:"Silakan pilih setidaknya satu ubin",selectNumbers:"Pilih Angka",selectTileToAutobet:"Silakan pilih setidaknya satu ubin",title:"Permainan keno"},limbo:{cashout:"Penarikan Tunai",crashed:"Jatuh",target:"Target",targetMultiplier:"Pengali",title:"Limbo"},mines:{cashout:"Penarikan Tunai",gem:"Permata",gems:"Permata",mine:"Milikku",mines:"Tambang",nextGem:"Permata Berikutnya",reveal:"Mengungkap",selectRandomTile:"Pilih Ubin Acak",selectTileToAutobet:"Silakan pilih setidaknya satu ubin untuk taruhan otomatis",tile:"Ubin",title:"Tambang",unrevealed:"Belum terungkap"}},modals:{betResult:"Hasil Taruhan",fairnessAndHistory:"Keadilan dan Sejarah",gameArea:"Area Permainan",gameControls:"Kontrol Permainan"},outcomes:{draw:"Menggambar",loss:"Kehilangan",win:"Menang"},share:{betResultText:"Lihat hasil taruhan saya!",betResultTitle:"Hasil Taruhan"}}});var bt=Uo(($1,ks)=>{ks.exports={accessibility:{betPlacedAnnouncement:"賭けは成功しました",gameInProgress:"ゲーム進行中",languageChanged:"言語が{language}に変更されました"},alerts:{autobetStarted:"自動ベットモードを開始しました",autobetStopped:"自動ベットモードを停止しました",betAmountAboveMaxBet:"賭け金が最大賭け金を超えています",betAmountBelowMinBet:"賭け金が最低賭け金を下回っています",betCancelled:"賭けはキャンセルされました",betDetailsCopied:"賭けの詳細がクリップボードにコピーされました!",betPlaced:"賭けは成功しました",connectionError:"接続エラー",errorProcessingBet:"賭けの処理中にエラーが発生しました。もう一度お試しください。",failedToLoadBetData:"賭けデータの読み込みに失敗しました",failedToShareBetDetails:"賭けの詳細を共有できませんでした",gameError:"賭けの処理中にエラーが発生しました。もう一度お試しください。",insufficientBalance:"残高不足",notEnoughBalance:"残高が足りない"},autobet:{baseAmount:"基本金額",decrease:"減少",games:"ゲーム",games10:"10ゲーム",games100:"100ゲーム",games25:"25ゲーム",games5:"5ゲーム",games50:"50ゲーム",increase:"増加",infinite:"無限",numberOfBets:"賭けの数",onLoss:"損失について",onWin:"勝利時",reset:"リセット",startAutobet:"オートベットを始める",stopAutobet:"オートベットを停止",stopOnLoss:"損失でストップ",stopOnProfit:"利益でストップ",stopOnWin:"勝利で停止",title:"オートベット"},common:{amount:"額",animation:"アニメーション",auto:"オート",back:"戻る",balance:"バランス",bet:"賭け金額",betAmount:"賭け金額",cancel:"キャンセル",cashOut:"キャッシュアウト",change:"変化",classic:"クラシック",close:"近い",closeAlert:"アラートを閉じる",closeDialog:"ダイアログを閉じる",confirm:"確認する",copy:"コピー",error:"エラー",fairness:"公平性",footerNavigation:"フッターナビゲーション",high:"高い",history:"歴史",hotkeys:"ホットキー",id:"ID",instantBet:"インスタントベット",loading:"読み込み中...",loadMore:"もっと読み込む",lobby:"ロビーに戻る",loss:"損失",low:"低い",manual:"マニュアル",medium:"中くらい",multiplier:"乗数",next:"次",odds:"オッズ",payout:"支払い",placeBet:"ベットする",previous:"前の",profit:"利益",profitOnWin:"勝利で利益",provablyFair:"証明可能公平",rangeSlider:"範囲スライダー",risk:"リスク",settings:"設定",share:"共有",siteInformation:"サイト情報",space:"空間",start:"始める",stop:"停止",success:"成功",targetMultiplier:"乗数",thisFieldIsRequired:"この項目は必須です",timestamp:"時間",toggleHotkeys:"ホットキーを切り替える",toggleSwitch:"トグルスイッチ",viewFairnessInformation:"公平性情報を見る",volume:"音量",win:"勝つ",winChance:"勝利のチャンス"},errors:{connection:"接続エラー",dice:{multiplierRange:"1.0102から9900の間でなければなりません",winChanceRange:"0.01~98の間でなければなりません"},game:"ゲームエラーが発生しました",insufficientBalance:"残高不足",limbo:{multiplierRange:"乗数は少なくとも1.01である必要があります",winChanceRange:"勝利の確率は0.000099から99.9999の間でなければなりません"}},fairness:{activeClientSeed:"アクティブクライアントシード",enterClientSeed:"クライアントシードを入力",enterProof:"証明を入力",enterPublicKey:"公開鍵を入力",enterRandomness:"ランダム性を導入する",enterRequest:"リクエストを入力",invalidGame:"無効なゲームタイプが指定されました。",noBettingHistory:"賭け履歴なし",outcomeCalculationInfo:"各ゲームの結果は、ランダムな値を入力として使用して計算されます。",outcomeNotVerified:"この試合の結果は確認できなかった",outcomeVerified:"このゲームの結果は検証されており、公平であることが証明されています",pendingInputs:"保留中の入力",proof:"証拠",provableFairnessUnverified:"証明可能な公平性は検証されていない",provableFairnessVerified:"証明可能な公平性が検証済み",publicKey:"公開鍵",randomness:"ランダム性",request:"リクエスト",saveClientSeed:"クライアントシードを保存",verified:"検証済み",verifyOutcome:"結果を確認する",viewOutcome:"結果を見る"},games:{dice:{result:"結果",roll:"ロール",rollOver:"転がる",rollUnder:"ロールアンダー",target:"ターゲット",title:"サイコロ"},keno:{autoPick:"自動選択",clearTable:"クリア",draw:"描く",hits:"ヒット",kenoGameGrid:"キノゲームグリッド",kenoNumber:"キノ番号",numbers:"数字",pick:"選ぶ",select1to10Tiles:"1~10個のタイルを選択",selectAtLeastOneTile:"少なくとも1つのタイルを選択してください",selectNumbers:"番号を選択",selectTileToAutobet:"少なくとも1つのタイルを選択してください",title:"キノ"},limbo:{cashout:"キャッシュアウト",crashed:"墜落した",target:"ターゲット",targetMultiplier:"乗数",title:"リンボ"},mines:{cashout:"キャッシュアウト",gem:"宝石",gems:"宝石",mine:"私の",mines:"鉱山",nextGem:"次の宝石",reveal:"明らかにする",selectRandomTile:"ランダムタイルを選択",selectTileToAutobet:"自動ベットするには少なくとも1つのタイルを選択してください",tile:"タイル",title:"鉱山",unrevealed:"未公開"}},modals:{betResult:"賭けの結果",fairnessAndHistory:"公平性と歴史",gameArea:"ゲームエリア",gameControls:"ゲームコントロール"},outcomes:{draw:"描く",loss:"損失",win:"勝つ"},share:{betResultText:"私の賭けの結果を見てください!",betResultTitle:"賭けの結果"}}});var wt=Uo((Y1,xs)=>{xs.exports={accessibility:{betPlacedAnnouncement:"배팅이 성공적으로 이루어졌습니다",gameInProgress:"게임 진행 중",languageChanged:"언어가 {language}로 변경되었습니다."},alerts:{autobetStarted:"자동 베팅 모드 시작",autobetStopped:"자동 베팅 모드가 중지되었습니다",betAmountAboveMaxBet:"배팅 금액이 최대 배팅 금액보다 높습니다.",betAmountBelowMinBet:"배팅 금액이 최소 배팅 금액보다 낮습니다.",betCancelled:"베팅 취소됨",betDetailsCopied:"배팅 세부 정보가 클립보드에 복사되었습니다!",betPlaced:"배팅이 성공적으로 이루어졌습니다",connectionError:"연결 오류",errorProcessingBet:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",failedToLoadBetData:"베팅 데이터를 불러오는 데 실패했습니다.",failedToShareBetDetails:"베팅 세부 정보를 공유하지 못했습니다.",gameError:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",insufficientBalance:"잔액이 부족합니다",notEnoughBalance:"잔액이 부족합니다"},autobet:{baseAmount:"기본 금액",decrease:"감소하다",games:"계략",games10:"10개의 게임",games100:"100개의 게임",games25:"25개의 게임",games5:"5개의 게임",games50:"50개의 게임",increase:"증가하다",infinite:"무한",numberOfBets:"베팅 수",onLoss:"손실에 대하여",onWin:"승리에 대하여",reset:"다시 놓기",startAutobet:"자동 베팅 시작",stopAutobet:"자동 베팅 중지",stopOnLoss:"손실 중지",stopOnProfit:"이익에 대한 중단",stopOnWin:"승리에 멈추다",title:"자동 베팅"},common:{amount:"양",animation:"생기",auto:"자동",back:"뒤쪽에",balance:"균형",bet:"배팅 금액",betAmount:"배팅 금액",cancel:"취소",cashOut:"현금 인출",change:"변화",classic:"권위 있는",close:"닫다",closeAlert:"알림 닫기",closeDialog:"대화 상자 닫기",confirm:"확인하다",copy:"복사",error:"오류",fairness:"공평",footerNavigation:"푸터 탐색",high:"높은",history:"역사",hotkeys:"단축키",id:"ID",instantBet:"즉시 베팅",loading:"로딩중...",loadMore:"더 보기",lobby:"로비로 돌아가기",loss:"손실",low:"낮은",manual:"수동",medium:"중간",multiplier:"승수",next:"다음",odds:"승산",payout:"지불금",placeBet:"배팅하기",previous:"이전의",profit:"이익",profitOnWin:"승리에 따른 이익",provablyFair:"공정성이 입증됨",rangeSlider:"범위 슬라이더",risk:"위험",settings:"설정",share:"공유하다",siteInformation:"사이트 정보",space:"공간",start:"시작",stop:"멈추다",success:"성공",targetMultiplier:"승수",thisFieldIsRequired:"이 필드는 필수입니다",timestamp:"시간",toggleHotkeys:"단축키 전환",toggleSwitch:"토글 스위치",viewFairnessInformation:"공정성 정보 보기",volume:"용량",win:"이기다",winChance:"승리 확률"},errors:{connection:"연결 오류",dice:{multiplierRange:"1.0102와 9900 사이여야 합니다.",winChanceRange:"0.01~98 사이여야 합니다."},game:"게임 오류가 발생했습니다",insufficientBalance:"잔액이 부족합니다",limbo:{multiplierRange:"승수는 최소 1.01이어야 합니다.",winChanceRange:"당첨 확률은 0.000099~99.9999 사이여야 합니다."}},fairness:{activeClientSeed:"활성 클라이언트 시드",enterClientSeed:"클라이언트 시드 입력",enterProof:"증거를 입력하세요",enterPublicKey:"공개 키 입력",enterRandomness:"무작위성을 입력하세요",enterRequest:"요청 입력",invalidGame:"잘못된 게임 유형이 제공되었습니다.",noBettingHistory:"베팅 내역 없음",outcomeCalculationInfo:"각 게임의 결과는 난수 값을 입력으로 사용하여 계산됩니다.",outcomeNotVerified:"이 게임의 결과는 확인할 수 없습니다.",outcomeVerified:"이 게임의 결과는 검증되었으며 공정성이 입증되었습니다.",pendingInputs:"보류 중인 입력",proof:"증거",provableFairnessUnverified:"입증 가능한 공정성 검증되지 않음",provableFairnessVerified:"증명 가능한 공정성 검증됨",publicKey:"공개 키",randomness:"무작위성",request:"요구",saveClientSeed:"클라이언트 시드 저장",verified:"확인됨",verifyOutcome:"결과 확인",viewOutcome:"결과 보기"},games:{dice:{result:"결과",roll:"연타",rollOver:"롤오버",rollUnder:"롤 언더",target:"목표",title:"주사위"},keno:{autoPick:"자동 선택",clearTable:"분명한",draw:"그리다",hits:"히트곡",kenoGameGrid:"케노 게임 그리드",kenoNumber:"케노 번호",numbers:"숫자",pick:"선택하다",select1to10Tiles:"1~10개 타일 선택",selectAtLeastOneTile:"최소한 하나의 타일을 선택해주세요",selectNumbers:"숫자 선택",selectTileToAutobet:"최소한 하나의 타일을 선택해주세요",title:"케노"},limbo:{cashout:"현금 인출",crashed:"추락했다",target:"목표",targetMultiplier:"승수",title:"림보"},mines:{cashout:"현금 인출",gem:"보석",gems:"보석",mine:"내 거",mines:"광산",nextGem:"다음 보석",reveal:"드러내다",selectRandomTile:"무작위 타일 선택",selectTileToAutobet:"자동 베팅을 위해 최소 하나의 타일을 선택하세요",tile:"타일",title:"광산",unrevealed:"공개되지 않은"}},modals:{betResult:"배팅 결과",fairnessAndHistory:"공정성과 역사",gameArea:"게임 구역",gameControls:"게임 컨트롤"},outcomes:{draw:"그리다",loss:"손실",win:"이기다"},share:{betResultText:"내 베팅 결과를 확인해 보세요!",betResultTitle:"배팅 결과"}}});var vt=Uo((Q1,zs)=>{zs.exports={accessibility:{betPlacedAnnouncement:"Zakład postawiony pomyślnie",gameInProgress:"Gra w toku",languageChanged:"Zmieniono język na {language}"},alerts:{autobetStarted:"Uruchomiono tryb autozakładu",autobetStopped:"Zatrzymano tryb autozakładu",betAmountAboveMaxBet:"Kwota zakładu przekracza maksymalny zakład",betAmountBelowMinBet:"Kwota zakładu jest poniżej minimalnego zakładu",betCancelled:"Zakład anulowany",betDetailsCopied:"Szczegóły zakładu skopiowano do schowka!",betPlaced:"Zakład postawiony pomyślnie",connectionError:"Błąd połączenia",errorProcessingBet:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",failedToLoadBetData:"Nie udało się załadować danych zakładu",failedToShareBetDetails:"Nie udało się udostępnić szczegółów zakładu",gameError:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",insufficientBalance:"Niewystarczające saldo",notEnoughBalance:"Za mało równowagi"},autobet:{baseAmount:"Kwota bazowa",decrease:"Zmniejszenie",games:"Zawody sportowe",games10:"10 gier",games100:"100 gier",games25:"25 gier",games5:"5 gier",games50:"50 gier",increase:"Zwiększyć",infinite:"Nieskończony",numberOfBets:"Liczba zakładów",onLoss:"O stracie",onWin:"W zwycięstwie",reset:"Nastawić",startAutobet:"Uruchom autozakład",stopAutobet:"Zatrzymaj autozakład",stopOnLoss:"Zatrzymaj stratę",stopOnProfit:"Zatrzymaj zysk",stopOnWin:"Zatrzymaj się na Win",title:"Autozakład"},common:{amount:"Kwota",animation:"Ożywienie",auto:"Automatyczny",back:"Z powrotem",balance:"Balansować",bet:"Kwota zakładu",betAmount:"Kwota zakładu",cancel:"Anulować",cashOut:"Wypłata gotówki",change:"Zmiana",classic:"Klasyczny",close:"Zamknąć",closeAlert:"Zamknij alert",closeDialog:"Zamknij okno dialogowe",confirm:"Potwierdzać",copy:"Kopia",error:"Błąd",fairness:"Uczciwość",footerNavigation:"Nawigacja stopki",high:"Wysoki",history:"Historia",hotkeys:"Klawisze skrótu",id:"ID",instantBet:"Zakład natychmiastowy",loading:"Załadunek...",loadMore:"Załaduj więcej",lobby:"Powrót do lobby",loss:"Strata",low:"Niski",manual:"Podręcznik",medium:"Średni",multiplier:"Mnożnik",next:"Następny",odds:"Szanse",payout:"Wypłata",placeBet:"Postaw zakład",previous:"Poprzedni",profit:"Zysk",profitOnWin:"Zysk z wygranej",provablyFair:"Udowodniona uczciwość",rangeSlider:"Suwak zakresu",risk:"Ryzyko",settings:"Ustawienia",share:"Udział",siteInformation:"Informacje o witrynie",space:"PRZESTRZEŃ",start:"Start",stop:"Zatrzymywać się",success:"Sukces",targetMultiplier:"Mnożnik",thisFieldIsRequired:"To pole jest wymagane",timestamp:"Czas",toggleHotkeys:"Przełącz klawisze skrótu",toggleSwitch:"Przełącznik",viewFairnessInformation:"Wyświetl informacje o uczciwości",volume:"Tom",win:"Wygrać",winChance:"Szansa na wygraną"},errors:{connection:"Błąd połączenia",dice:{multiplierRange:"Musi mieścić się w przedziale od 1,0102 do 9900",winChanceRange:"Musi mieścić się w przedziale od 0,01 do 98"},game:"Wystąpił błąd gry",insufficientBalance:"Niewystarczające saldo",limbo:{multiplierRange:"Mnożnik musi wynosić co najmniej 1,01",winChanceRange:"Szansa na wygraną musi mieścić się w przedziale od 0,000099 do 99,9999"}},fairness:{activeClientSeed:"Aktywny klient nasion",enterClientSeed:"Wprowadź ziarno klienta",enterProof:"Wprowadź dowód",enterPublicKey:"Wprowadź klucz publiczny",enterRandomness:"Wprowadź losowość",enterRequest:"Wprowadź żądanie",invalidGame:"Podano nieprawidłowy typ gry.",noBettingHistory:"Brak historii zakładów",outcomeCalculationInfo:"Wynik każdej gry obliczany jest na podstawie losowej wartości.",outcomeNotVerified:"Wyniku tej gry nie można zweryfikować",outcomeVerified:"Wynik tej gry został zweryfikowany i można go uznać za uczciwy",pendingInputs:"Oczekujące dane wejściowe",proof:"Dowód",provableFairnessUnverified:"Udowodniona uczciwość niezweryfikowana",provableFairnessVerified:"Udowodniona uczciwość zweryfikowana",publicKey:"Klucz publiczny",randomness:"Losowość",request:"Wniosek",saveClientSeed:"Zapisz ziarno klienta",verified:"Zweryfikowano",verifyOutcome:"Sprawdź wynik",viewOutcome:"Wyświetl wynik"},games:{dice:{result:"Wynik",roll:"Rolka",rollOver:"Przetoczyć się",rollUnder:"Przetoczyć się pod",target:"Cel",title:"Kostka do gry"},keno:{autoPick:"Automatyczne wybieranie",clearTable:"Jasne",draw:"Rysować",hits:"Trafienia",kenoGameGrid:"Siatka gry Keno",kenoNumber:"Numer keno",numbers:"Takty muzyczne",pick:"Wybierać",select1to10Tiles:"Wybierz 1-10 kafelków",selectAtLeastOneTile:"Proszę wybrać co najmniej jeden kafelek",selectNumbers:"Wybierz liczby",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek",title:"Keno"},limbo:{cashout:"Wypłata gotówki",crashed:"Rozbił się",target:"Cel",targetMultiplier:"Mnożnik",title:"Otchłań"},mines:{cashout:"Wypłata gotówki",gem:"Klejnot",gems:"Klejnoty",mine:"Kopalnia",mines:"Kopalnie",nextGem:"Następny klejnot",reveal:"Ujawnić",selectRandomTile:"Wybierz losowy kafelek",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek do automatycznego obstawiania",tile:"Płytka",title:"Kopalnie",unrevealed:"Nieujawnione"}},modals:{betResult:"Wynik zakładu",fairnessAndHistory:"Sprawiedliwość i historia",gameArea:"Obszar gry",gameControls:"Sterowanie grą"},outcomes:{draw:"Rysować",loss:"Strata",win:"Wygrać"},share:{betResultText:"Sprawdź wynik mojego zakładu!",betResultTitle:"Wynik zakładu"}}});var mt=Uo((F1,ys)=>{ys.exports={accessibility:{betPlacedAnnouncement:"Aposta feita com sucesso",gameInProgress:"Jogo em andamento",languageChanged:"Idioma alterado para {language}"},alerts:{autobetStarted:"Modo de aposta automática iniciado",autobetStopped:"Modo de aposta automática interrompido",betAmountAboveMaxBet:"O valor da aposta está acima da aposta máxima",betAmountBelowMinBet:"O valor da aposta está abaixo da aposta mínima",betCancelled:"Aposta cancelada",betDetailsCopied:"Detalhes da aposta copiados para a área de transferência!",betPlaced:"Aposta feita com sucesso",connectionError:"Erro de conexão",errorProcessingBet:"Ocorreu um erro ao processar sua aposta. Tente novamente.",failedToLoadBetData:"Falha ao carregar dados de aposta",failedToShareBetDetails:"Falha ao compartilhar detalhes da aposta",gameError:"Ocorreu um erro ao processar sua aposta. Tente novamente.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"Não há equilíbrio suficiente"},autobet:{baseAmount:"Valor base",decrease:"Diminuir",games:"Jogos",games10:"10 jogos",games100:"100 jogos",games25:"25 jogos",games5:"5 jogos",games50:"50 jogos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apostas",onLoss:"Em Perda",onWin:"Na vitória",reset:"Reiniciar",startAutobet:"Iniciar aposta automática",stopAutobet:"Pare a aposta automática",stopOnLoss:"Parar na perda",stopOnProfit:"Pare no lucro",stopOnWin:"Pare na vitória",title:"Aposta automática"},common:{amount:"Quantia",animation:"Animação",auto:"Auto",back:"Voltar",balance:"Equilíbrio",bet:"Valor da aposta",betAmount:"Valor da aposta",cancel:"Cancelar",cashOut:"Saque",change:"Mudar",classic:"Clássico",close:"Fechar",closeAlert:"Alerta de fechamento",closeDialog:"Fechar diálogo",confirm:"Confirmar",copy:"Cópia",error:"Erro",fairness:"Justiça",footerNavigation:"Navegação de rodapé",high:"Alto",history:"História",hotkeys:"Teclas de atalho",id:"EU IA",instantBet:"Aposta instantânea",loading:"Carregando...",loadMore:"Carregar mais",lobby:"Voltar ao Lobby",loss:"Perda",low:"Baixo",manual:"Manual",medium:"Médio",multiplier:"Multiplicador",next:"Próximo",odds:"Chances",payout:"Pagamento",placeBet:"Fazer aposta",previous:"Anterior",profit:"Lucro",profitOnWin:"Lucro na vitória",provablyFair:"Provavelmente justo",rangeSlider:"Controle deslizante de alcance",risk:"Risco",settings:"Configurações",share:"Compartilhar",siteInformation:"Informações do site",space:"ESPAÇO",start:"Começar",stop:"Parar",success:"Sucesso",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo é obrigatório",timestamp:"Tempo",toggleHotkeys:"Alternar teclas de atalho",toggleSwitch:"Interruptor de alternância",viewFairnessInformation:"Ver informações sobre justiça",volume:"Volume",win:"Ganhar",winChance:"Chance de ganhar"},errors:{connection:"Erro de conexão",dice:{multiplierRange:"Deve estar entre 1,0102 e 9900",winChanceRange:"Deve estar entre 0,01 e 98"},game:"Ocorreu um erro no jogo",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"O multiplicador deve ser pelo menos 1,01",winChanceRange:"A chance de vitória deve estar entre 0,000099 e 99,9999"}},fairness:{activeClientSeed:"Semente de cliente ativo",enterClientSeed:"Insira a semente do cliente",enterProof:"Insira a prova",enterPublicKey:"Digite a chave pública",enterRandomness:"Digite Aleatoriedade",enterRequest:"Solicitação de entrada",invalidGame:"Tipo de jogo fornecido inválido.",noBettingHistory:"Nenhum histórico de apostas",outcomeCalculationInfo:"O resultado de cada jogo é calculado usando um valor aleatório como entrada.",outcomeNotVerified:"O resultado deste jogo não pôde ser verificado",outcomeVerified:"O resultado deste jogo foi verificado e é comprovadamente justo",pendingInputs:"Entradas pendentes",proof:"Prova",provableFairnessUnverified:"Imparcialidade Provável Não Verificada",provableFairnessVerified:"Justiça comprovada verificada",publicKey:"Chave Pública",randomness:"Aleatoriedade",request:"Solicitar",saveClientSeed:"Salvar Semente do Cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rolar",rollOver:"Rolar sobre",rollUnder:"Rolar para baixo",target:"Alvo",title:"Dados"},keno:{autoPick:"Seleção automática",clearTable:"Claro",draw:"Empate",hits:"Acessos",kenoGameGrid:"Grade do jogo Keno",kenoNumber:"Número Keno",numbers:"Números",pick:"Escolha",select1to10Tiles:"Selecione 1-10 peças",selectAtLeastOneTile:"Selecione pelo menos um bloco",selectNumbers:"Selecione Números",selectTileToAutobet:"Selecione pelo menos um bloco",title:"Keno"},limbo:{cashout:"Saque",crashed:"Caiu",target:"Alvo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Saque",gem:"Jóia",gems:"Gemas",mine:"Meu",mines:"Minas",nextGem:"Próxima Joia",reveal:"Revelar",selectRandomTile:"Selecione uma peça aleatória",selectTileToAutobet:"Selecione pelo menos uma peça para apostar automaticamente",tile:"Telha",title:"Minas",unrevealed:"Não revelado"}},modals:{betResult:"Resultado da aposta",fairnessAndHistory:"Justiça e História",gameArea:"Área de jogos",gameControls:"Controles do jogo"},outcomes:{draw:"Empate",loss:"Perda",win:"Ganhar"},share:{betResultText:"Confira o resultado da minha aposta!",betResultTitle:"Resultado da aposta"}}});var kt=Uo((C1,Hs)=>{Hs.exports={accessibility:{betPlacedAnnouncement:"Ставка сделана успешно",gameInProgress:"Игра в процессе",languageChanged:"Язык изменен на {language}"},alerts:{autobetStarted:"Запущен режим автоставки",autobetStopped:"Остановлен режим автоставки",betAmountAboveMaxBet:"Сумма ставки превышает максимальную ставку",betAmountBelowMinBet:"Сумма ставки ниже минимальной ставки",betCancelled:"Ставка отменена",betDetailsCopied:"Данные ставки скопированы в буфер обмена!",betPlaced:"Ставка сделана успешно",connectionError:"Ошибка подключения",errorProcessingBet:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",failedToLoadBetData:"Не удалось загрузить данные о ставках",failedToShareBetDetails:"Не удалось поделиться данными о ставке",gameError:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",insufficientBalance:"Недостаточный баланс",notEnoughBalance:"Недостаточный баланс"},autobet:{baseAmount:"Базовая сумма",decrease:"Снижаться",games:"Игры",games10:"10 игр",games100:"100 игр",games25:"25 игр",games5:"5 игр",games50:"50 игр",increase:"Увеличивать",infinite:"Бесконечный",numberOfBets:"Количество ставок",onLoss:"При убытке",onWin:"На Победе",reset:"Перезагрузить",startAutobet:"Начать автоставку",stopAutobet:"Остановить автоставку",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",stopOnWin:"Остановись на Победе",title:"Автоставка"},common:{amount:"Количество",animation:"Анимация",auto:"Авто",back:"Назад",balance:"Баланс",bet:"Сумма ставки",betAmount:"Сумма ставки",cancel:"Отмена",cashOut:"Выплата наличных",change:"Изменять",classic:"Классический",close:"Закрывать",closeAlert:"Закрыть оповещение",closeDialog:"Закрыть диалог",confirm:"Подтверждать",copy:"Копировать",error:"Ошибка",fairness:"Справедливость",footerNavigation:"Навигация по нижнему колонтитулу",high:"Высокий",history:"История",hotkeys:"Горячие клавиши",id:"ИДЕНТИФИКАТОР",instantBet:"Мгновенная ставка",loading:"Загрузка...",loadMore:"Загрузить больше",lobby:"Вернуться в вестибюль",loss:"Потеря",low:"Низкий",manual:"Руководство",medium:"Середина",multiplier:"Множитель",next:"Следующий",odds:"Шансы",payout:"Выплата",placeBet:"Сделать ставку",previous:"Предыдущий",profit:"Выгода",profitOnWin:"Прибыль от победы",provablyFair:"Доказуемо справедливо",rangeSlider:"Ползунок диапазона",risk:"Риск",settings:"Настройки",share:"Делиться",siteInformation:"Информация о сайте",space:"КОСМОС",start:"Начинать",stop:"Останавливаться",success:"Успех",targetMultiplier:"Множитель",thisFieldIsRequired:"Это поле обязательно к заполнению",timestamp:"Время",toggleHotkeys:"Переключить горячие клавиши",toggleSwitch:"Переключатель",viewFairnessInformation:"Просмотреть информацию о справедливости",volume:"Объем",win:"Победить",winChance:"Шанс выиграть"},errors:{connection:"Ошибка подключения",dice:{multiplierRange:"Должно быть от 1,0102 до 9900",winChanceRange:"Должно быть от 0,01 до 98"},game:"Произошла ошибка игры",insufficientBalance:"Недостаточный баланс",limbo:{multiplierRange:"Множитель должен быть не менее 1,01.",winChanceRange:"Шанс выигрыша должен быть от 0,000099 до 99,9999"}},fairness:{activeClientSeed:"Активный клиентский посев",enterClientSeed:"Введите клиентское семя",enterProof:"Введите доказательство",enterPublicKey:"Введите открытый ключ",enterRandomness:"Введите случайность",enterRequest:"Введите запрос",invalidGame:"Указан неверный тип игры.",noBettingHistory:"Нет истории ставок",outcomeCalculationInfo:"Результат каждой игры рассчитывается с использованием случайного значения в качестве входных данных.",outcomeNotVerified:"Результат этой игры не удалось проверить.",outcomeVerified:"Результат этой игры проверен и доказуемо честен.",pendingInputs:"Ожидаемые входные данные",proof:"Доказательство",provableFairnessUnverified:"Доказуемая справедливость Непроверенная",provableFairnessVerified:"Доказуемая справедливость проверена",publicKey:"Открытый ключ",randomness:"Случайность",request:"Запрос",saveClientSeed:"Сохранить клиентское семя",verified:"Проверено",verifyOutcome:"Проверить результат",viewOutcome:"Посмотреть результат"},games:{dice:{result:"Результат",roll:"Рулон",rollOver:"Перекатывать",rollUnder:"Подкатиться",target:"Цель",title:"Кости"},keno:{autoPick:"Автоматический выбор",clearTable:"Прозрачный",draw:"Рисовать",hits:"Хиты",kenoGameGrid:"Сетка игры Кено",kenoNumber:"Номер Кено",numbers:"Числа",pick:"Выбирать",select1to10Tiles:"Выберите 1-10 плиток",selectAtLeastOneTile:"Пожалуйста, выберите хотя бы одну плитку",selectNumbers:"Выберите номера",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку",title:"Кено"},limbo:{cashout:"Выплата наличных",crashed:"Разбился",target:"Цель",targetMultiplier:"Множитель",title:"Лимб"},mines:{cashout:"Выплата наличных",gem:"Драгоценный камень",gems:"Драгоценные камни",mine:"Мой",mines:"Шахты",nextGem:"Следующий драгоценный камень",reveal:"Раскрывать",selectRandomTile:"Выбрать случайную плитку",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку для автоматической ставки.",tile:"Плитка",title:"Шахты",unrevealed:"Нераскрыто"}},modals:{betResult:"Результат ставки",fairnessAndHistory:"Справедливость и история",gameArea:"Игровая зона",gameControls:"Управление игрой"},outcomes:{draw:"Рисовать",loss:"Потеря",win:"Победить"},share:{betResultText:"Посмотрите результат моей ставки!",betResultTitle:"Результат ставки"}}});var xt=Uo((P1,Zs)=>{Zs.exports={accessibility:{betPlacedAnnouncement:"Bahis başarıyla yapıldı",gameInProgress:"Oyun devam ediyor",languageChanged:"Dil {language} olarak değiştirildi"},alerts:{autobetStarted:"Otomatik bahis modu başlatıldı",autobetStopped:"Otomatik bahis modu durduruldu",betAmountAboveMaxBet:"Bahis miktarı maksimum bahsin üzerindedir",betAmountBelowMinBet:"Bahis miktarı minimum bahsin altındadır",betCancelled:"Bahis iptal edildi",betDetailsCopied:"Bahis detayları panoya kopyalandı!",betPlaced:"Bahis başarıyla yapıldı",connectionError:"Bağlantı hatası",errorProcessingBet:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",failedToLoadBetData:"Bahis verileri yüklenemedi",failedToShareBetDetails:"Bahis detayları paylaşılamadı",gameError:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",insufficientBalance:"Yetersiz bakiye",notEnoughBalance:"Yeterli denge yok"},autobet:{baseAmount:"Temel Tutar",decrease:"Azaltmak",games:"Oyunlar",games10:"10 oyun",games100:"100 oyun",games25:"25 oyun",games5:"5 oyun",games50:"50 oyun",increase:"Arttırmak",infinite:"Sonsuz",numberOfBets:"Bahis Sayısı",onLoss:"Kayıp Üzerine",onWin:"Kazanmak Üzerine",reset:"Sıfırla",startAutobet:"Otomatik Bahis Başlat",stopAutobet:"Otomatik Bahsi Durdur",stopOnLoss:"Zararda Dur",stopOnProfit:"Kârda Dur",stopOnWin:"Kazanma Durdurma",title:"Otomatik bahis"},common:{amount:"Miktar",animation:"Animasyon",auto:"Otomatik",back:"Geri",balance:"Denge",bet:"Bahis Miktarı",betAmount:"Bahis Miktarı",cancel:"İptal etmek",cashOut:"Nakit Çekme",change:"Değiştirmek",classic:"Klasik",close:"Kapalı",closeAlert:"Yakın uyarı",closeDialog:"İletişim kutusunu kapat",confirm:"Onaylamak",copy:"Kopyala",error:"Hata",fairness:"Adalet",footerNavigation:"Alt bilgi gezintisi",high:"Yüksek",history:"Tarih",hotkeys:"Kısayollar",id:"İD",instantBet:"Anında Bahis",loading:"Yükleniyor...",loadMore:"Daha Fazlasını Yükle",lobby:"Lobiye Geri Dön",loss:"Kayıp",low:"Düşük",manual:"Manuel",medium:"Orta",multiplier:"Çarpan",next:"Sonraki",odds:"Oranlar",payout:"Ödeme",placeBet:"Bahis",previous:"Öncesi",profit:"Kâr",profitOnWin:"Kazanç Üzerine Kar",provablyFair:"Kanıtlanabilir Adil",rangeSlider:"Aralık kaydırıcısı",risk:"Risk",settings:"Ayarlar",share:"Paylaşmak",siteInformation:"Site bilgileri",space:"UZAY",start:"Başlangıç",stop:"Durmak",success:"Başarı",targetMultiplier:"Çarpan",thisFieldIsRequired:"Bu alan gereklidir",timestamp:"Zaman",toggleHotkeys:"Kısayolları Değiştir",toggleSwitch:"Geçiş anahtarı",viewFairnessInformation:"Adalet bilgilerini görüntüle",volume:"Hacim",win:"Kazanç",winChance:"Kazanma Şansı"},errors:{connection:"Bağlantı hatası",dice:{multiplierRange:"1.0102 ile 9900 arasında olmalıdır",winChanceRange:"0,01 ile 98 arasında olmalıdır"},game:"Oyun hatası oluştu",insufficientBalance:"Yetersiz bakiye",limbo:{multiplierRange:"Çarpan en az 1,01 olmalıdır",winChanceRange:"Kazanma şansı 0,000099 ile 99,9999 arasında olmalıdır"}},fairness:{activeClientSeed:"Aktif İstemci Tohumu",enterClientSeed:"İstemci Tohumunu Girin",enterProof:"Kanıtı Girin",enterPublicKey:"Genel Anahtarı Girin",enterRandomness:"Rastgeleliğe Girin",enterRequest:"İstek Girin",invalidGame:"Geçersiz oyun türü sağlandı.",noBettingHistory:"Bahis geçmişi yok",outcomeCalculationInfo:"Her oyunun sonucu, girdi olarak rastgele bir değer kullanılarak hesaplanır.",outcomeNotVerified:"Bu oyunun sonucu doğrulanamadı",outcomeVerified:"Bu oyunun sonucu doğrulandı ve kanıtlanabilir şekilde adildir",pendingInputs:"Bekleyen Girişler",proof:"Kanıt",provableFairnessUnverified:"Kanıtlanabilir Adalet Doğrulanmamış",provableFairnessVerified:"Kanıtlanabilir Adalet Doğrulandı",publicKey:"Genel Anahtar",randomness:"Rastgelelik",request:"Rica etmek",saveClientSeed:"İstemci Tohumunu Kaydet",verified:"Doğrulandı",verifyOutcome:"Sonucu Doğrula",viewOutcome:"Sonucu Görüntüle"},games:{dice:{result:"Sonuç",roll:"Rulo",rollOver:"Yuvarlanmak",rollUnder:"Altına Yuvarlan",target:"Hedef",title:"Zar"},keno:{autoPick:"Otomatik Seçim",clearTable:"Temizlemek",draw:"Çizmek",hits:"İsabetler",kenoGameGrid:"Keno Oyun Izgarası",kenoNumber:"Keno numarası",numbers:"Sayılar",pick:"Seçmek",select1to10Tiles:"1-10 Fayans Seçin",selectAtLeastOneTile:"Lütfen en az bir kutucuk seçin",selectNumbers:"Sayıları Seçin",selectTileToAutobet:"Lütfen en az bir kutucuk seçin",title:"Keno"},limbo:{cashout:"Nakit Çekme",crashed:"Çöktü",target:"Hedef",targetMultiplier:"Çarpan",title:"Araf"},mines:{cashout:"Nakit Çekme",gem:"Mücevher",gems:"Mücevherler",mine:"Bana ait",mines:"Madenler",nextGem:"Sonraki Mücevher",reveal:"Ortaya çıkarmak",selectRandomTile:"Rastgele Döşeme Seç",selectTileToAutobet:"Lütfen otomatik bahis yapmak için en az bir karo seçin",tile:"Fayans",title:"Madenler",unrevealed:"Açıklanmamış"}},modals:{betResult:"Bahis Sonucu",fairnessAndHistory:"Adalet ve Tarih",gameArea:"Oyun Alanı",gameControls:"Oyun Kontrolleri"},outcomes:{draw:"Çizmek",loss:"Kayıp",win:"Kazanç"},share:{betResultText:"Bahis sonucumu inceleyin!",betResultTitle:"Bahis Sonucu"}}});var zt=Uo((j1,Ss)=>{Ss.exports={accessibility:{betPlacedAnnouncement:"Đã đặt cược thành công",gameInProgress:"Trò chơi đang diễn ra",languageChanged:"Ngôn ngữ đã thay đổi thành {language}"},alerts:{autobetStarted:"Đã bắt đầu chế độ đặt cược tự động",autobetStopped:"Đã dừng chế độ đặt cược tự động",betAmountAboveMaxBet:"Số tiền cược vượt quá mức cược tối đa",betAmountBelowMinBet:"Số tiền cược thấp hơn mức cược tối thiểu",betCancelled:"Cược đã bị hủy",betDetailsCopied:"Chi tiết cược đã được sao chép vào bảng tạm!",betPlaced:"Đã đặt cược thành công",connectionError:"Lỗi kết nối",errorProcessingBet:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",failedToLoadBetData:"Không tải được dữ liệu cược",failedToShareBetDetails:"Không chia sẻ được thông tin chi tiết về cược",gameError:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",insufficientBalance:"Số dư không đủ",notEnoughBalance:"Không đủ cân bằng"},autobet:{baseAmount:"Số tiền cơ sở",decrease:"Giảm bớt",games:"Trò chơi",games10:"10 trò chơi",games100:"100 trò chơi",games25:"25 trò chơi",games5:"5 trò chơi",games50:"50 trò chơi",increase:"Tăng",infinite:"Vô hạn",numberOfBets:"Số lượng cược",onLoss:"Về sự mất mát",onWin:"Trên chiến thắng",reset:"Cài lại",startAutobet:"Bắt đầu Autobet",stopAutobet:"Dừng Autobet",stopOnLoss:"Dừng lại khi mất mát",stopOnProfit:"Dừng lại ở lợi nhuận",stopOnWin:"Dừng lại ở Win",title:"Cược tự động"},common:{amount:"Số lượng",animation:"Hoạt hình",auto:"Tự động",back:"Mặt sau",balance:"Sự cân bằng",bet:"Số tiền đặt cược",betAmount:"Số tiền đặt cược",cancel:"Hủy bỏ",cashOut:"Rút tiền",change:"Thay đổi",classic:"Cổ điển",close:"Đóng",closeAlert:"Đóng cảnh báo",closeDialog:"Đóng hộp thoại",confirm:"Xác nhận",copy:"Sao chép",error:"Lỗi",fairness:"Công bằng",footerNavigation:"Điều hướng chân trang",high:"Cao",history:"Lịch sử",hotkeys:"Phím nóng",id:"NHẬN DẠNG",instantBet:"Cược tức thì",loading:"Đang tải...",loadMore:"Tải thêm",lobby:"Quay lại Sảnh",loss:"Sự mất mát",low:"Thấp",manual:"Thủ công",medium:"Trung bình",multiplier:"Hệ số nhân",next:"Kế tiếp",odds:"Tỷ lệ cược",payout:"Thanh toán",placeBet:"Đặt cược",previous:"Trước",profit:"Lợi nhuận",profitOnWin:"Lợi nhuận khi thắng",provablyFair:"Có thể chứng minh là công bằng",rangeSlider:"Thanh trượt phạm vi",risk:"Rủi ro",settings:"Cài đặt",share:"Chia sẻ",siteInformation:"Thông tin trang web",space:"KHÔNG GIAN",start:"Bắt đầu",stop:"Dừng lại",success:"Thành công",targetMultiplier:"Hệ số nhân",thisFieldIsRequired:"Trường này là bắt buộc",timestamp:"Thời gian",toggleHotkeys:"Chuyển đổi phím nóng",toggleSwitch:"Công tắc chuyển đổi",viewFairnessInformation:"Xem thông tin công bằng",volume:"Âm lượng",win:"Thắng",winChance:"Cơ hội chiến thắng"},errors:{connection:"Lỗi kết nối",dice:{multiplierRange:"Phải nằm trong khoảng từ 1,0102 đến 9900",winChanceRange:"Phải nằm trong khoảng từ 0,01 đến 98"},game:"Đã xảy ra lỗi trò chơi",insufficientBalance:"Số dư không đủ",limbo:{multiplierRange:"Hệ số nhân phải ít nhất là 1,01",winChanceRange:"Cơ hội chiến thắng phải nằm trong khoảng từ 0,000099 đến 99,9999"}},fairness:{activeClientSeed:"Hạt giống khách hàng đang hoạt động",enterClientSeed:"Nhập hạt giống khách hàng",enterProof:"Nhập bằng chứng",enterPublicKey:"Nhập khóa công khai",enterRandomness:"Nhập ngẫu nhiên",enterRequest:"Nhập yêu cầu",invalidGame:"Loại trò chơi được cung cấp không hợp lệ.",noBettingHistory:"Không có lịch sử cá cược",outcomeCalculationInfo:"Kết quả của mỗi trò chơi được tính toán bằng cách sử dụng giá trị ngẫu nhiên làm đầu vào.",outcomeNotVerified:"Kết quả của trò chơi này không thể được xác minh",outcomeVerified:"Kết quả của trò chơi này đã được xác minh và có thể chứng minh là công bằng",pendingInputs:"Đầu vào đang chờ xử lý",proof:"Bằng chứng",provableFairnessUnverified:"Công bằng có thể chứng minh chưa được xác minh",provableFairnessVerified:"Sự công bằng có thể chứng minh được đã được xác minh",publicKey:"Khóa công khai",randomness:"Tính ngẫu nhiên",request:"Lời yêu cầu",saveClientSeed:"Lưu hạt giống khách hàng",verified:"Đã xác minh",verifyOutcome:"Xác minh kết quả",viewOutcome:"Xem kết quả"},games:{dice:{result:"Kết quả",roll:"Cuộn",rollOver:"Lăn qua",rollUnder:"Lăn dưới",target:"Mục tiêu",title:"Xúc xắc"},keno:{autoPick:"Tự động chọn",clearTable:"Thông thoáng",draw:"Vẽ tranh",hits:"Lượt truy cập",kenoGameGrid:"Lưới trò chơi Keno",kenoNumber:"Số Keno",numbers:"Số",pick:"Nhặt",select1to10Tiles:"Chọn 1-10 ô",selectAtLeastOneTile:"Vui lòng chọn ít nhất một ô",selectNumbers:"Chọn số",selectTileToAutobet:"Vui lòng chọn ít nhất một ô",title:"Keno"},limbo:{cashout:"Rút tiền",crashed:"Đã bị sập",target:"Mục tiêu",targetMultiplier:"Hệ số nhân",title:"Limbo"},mines:{cashout:"Rút tiền",gem:"Đá quý",gems:"Đá quý",mine:"Của tôi",mines:"Mỏ",nextGem:"Viên ngọc tiếp theo",reveal:"Tiết lộ",selectRandomTile:"Chọn ô ngẫu nhiên",selectTileToAutobet:"Vui lòng chọn ít nhất một ô để tự động đặt cược",tile:"Ngói",title:"Mỏ",unrevealed:"Chưa tiết lộ"}},modals:{betResult:"Kết quả cược",fairnessAndHistory:"Công bằng và Lịch sử",gameArea:"Khu vực trò chơi",gameControls:"Điều khiển trò chơi"},outcomes:{draw:"Vẽ tranh",loss:"Sự mất mát",win:"Thắng"},share:{betResultText:"Hãy xem kết quả cá cược của tôi!",betResultTitle:"Kết quả cược"}}});var yt=Uo((L1,Ks)=>{Ks.exports={accessibility:{betPlacedAnnouncement:"投注成功",gameInProgress:"游戏进行中",languageChanged:"语言更改为 {language}"},alerts:{autobetStarted:"已启动自动投注模式",autobetStopped:"停止自动投注模式",betAmountAboveMaxBet:"投注金额高于最高投注额",betAmountBelowMinBet:"投注金额低于最低投注额",betCancelled:"投注取消",betDetailsCopied:"投注详情已复制到剪贴板!",betPlaced:"投注成功",connectionError:"连接错误",errorProcessingBet:"处理您的投注时出错。请重试。",failedToLoadBetData:"无法加载投注数据",failedToShareBetDetails:"无法分享投注详情",gameError:"处理您的投注时出错。请重试。",insufficientBalance:"余额不足",notEnoughBalance:"余额不足"},autobet:{baseAmount:"基数",decrease:"减少",games:"游戏",games10:"10场比赛",games100:"100场比赛",games25:"25场比赛",games5:"5场比赛",games50:"50场比赛",increase:"增加",infinite:"无限",numberOfBets:"投注次数",onLoss:"关于损失",onWin:"胜利",reset:"重置",startAutobet:"开始自动投注",stopAutobet:"停止自动投注",stopOnLoss:"止损",stopOnProfit:"止盈",stopOnWin:"胜利时停止",title:"自动投注"},common:{amount:"数量",animation:"动画片",auto:"汽车",back:"后退",balance:"平衡",bet:"投注金额",betAmount:"投注金额",cancel:"取消",cashOut:"提现",change:"改变",classic:"经典的",close:"关闭",closeAlert:"关闭警报",closeDialog:"关闭对话框",confirm:"确认",copy:"复制",error:"错误",fairness:"公平",footerNavigation:"页脚导航",high:"高的",history:"历史",hotkeys:"热键",id:"ID",instantBet:"即时投注",loading:"加载中...",loadMore:"加载更多",lobby:"返回大厅",loss:"损失",low:"低的",manual:"手动的",medium:"中等的",multiplier:"乘数",next:"下一个",odds:"赔率",payout:"付款",placeBet:"下注",previous:"以前的",profit:"利润",profitOnWin:"赢利",provablyFair:"可证明公平",rangeSlider:"范围滑块",risk:"风险",settings:"设置",share:"分享",siteInformation:"站点信息",space:"空间",start:"开始",stop:"停止",success:"成功",targetMultiplier:"乘数",thisFieldIsRequired:"此字段是必需的",timestamp:"时间",toggleHotkeys:"切换热键",toggleSwitch:"拨动开关",viewFairnessInformation:"查看公平性信息",volume:"体积",win:"赢",winChance:"获胜机会"},errors:{connection:"连接错误",dice:{multiplierRange:"必须介于 1.0102 和 9900 之间",winChanceRange:"必须介于 0.01 和 98 之间"},game:"游戏发生错误",insufficientBalance:"余额不足",limbo:{multiplierRange:"乘数必须至少为 1.01",winChanceRange:"获胜机会必须介于 0.000099 和 99.9999 之间"}},fairness:{activeClientSeed:"活跃客户种子",enterClientSeed:"输入客户种子",enterProof:"输入证明",enterPublicKey:"输入公钥",enterRandomness:"输入随机性",enterRequest:"输入请求",invalidGame:"提供的游戏类型无效。",noBettingHistory:"没有投注记录",outcomeCalculationInfo:"每场比赛的结果都是使用随机值作为输入来计算的。",outcomeNotVerified:"这场比赛的结果无法核实",outcomeVerified:"本场比赛的结果已经过验证,且可证明是公平的",pendingInputs:"待处理输入",proof:"证明",provableFairnessUnverified:"公平性尚未得到验证",provableFairnessVerified:"公平性已得到验证",publicKey:"公钥",randomness:"随机性",request:"要求",saveClientSeed:"保存客户端种子",verified:"已验证",verifyOutcome:"验证结果",viewOutcome:"查看结果"},games:{dice:{result:"结果",roll:"卷",rollOver:"滚下",rollUnder:"滚下",target:"目标",title:"骰子"},keno:{autoPick:"自动选择",clearTable:"清除",draw:"画",hits:"热门歌曲",kenoGameGrid:"基诺游戏网格",kenoNumber:"基诺号码",numbers:"数字",pick:"挑选",select1to10Tiles:"选择 1-10 个图块",selectAtLeastOneTile:"请至少选择一个图块",selectNumbers:"选择号码",selectTileToAutobet:"请至少选择一个图块",title:"基诺"},limbo:{cashout:"提现",crashed:"坠毁",target:"目标",targetMultiplier:"乘数",title:"地狱边境"},mines:{cashout:"提现",gem:"宝石",gems:"宝石",mine:"矿",mines:"矿山",nextGem:"下一颗宝石",reveal:"揭示",selectRandomTile:"选择随机图块",selectTileToAutobet:"请至少选择一张牌进行自动下注",tile:"瓦",title:"矿山",unrevealed:"未披露"}},modals:{betResult:"投注结果",fairnessAndHistory:"公平与历史",gameArea:"游戏区",gameControls:"游戏控制"},outcomes:{draw:"画",loss:"损失",win:"赢"},share:{betResultText:"查看我的投注结果!",betResultTitle:"投注结果"}}});var Te=Uo((Ci,Bi)=>{typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(o,i){typeof Ci==="object"&&typeof Bi!=="undefined"?Bi.exports=i():typeof define==="function"&&define.amd?define(i):(o=typeof globalThis!=="undefined"?globalThis:o||self,o.lottie=i())}(Ci,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function o(i){_useWebWorker=!!i},getWebWorker=function o(){return _useWebWorker},setLocationHref=function o(i){locationHref=i},getLocationHref=function o(){return locationHref};function createTag(o){return document.createElement(o)}function extendPrototype(o,i){var a,t=o.length,r;for(a=0;a<t;a+=1){r=o[a].prototype;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))i.prototype[e]=r[e]}}function getDescriptor(o,i){return Object.getOwnPropertyDescriptor(o,i)}function createProxyFunction(o){function i(){}return i.prototype=o,i}var audioControllerFactory=function(){function o(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return o.prototype={addAudio:function i(a){this.audios.push(a)},pause:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].pause()},resume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].resume()},setRate:function i(a){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(a)},createAudio:function i(a){if(this.audioFactory)return this.audioFactory(a);if(window.Howl)return new window.Howl({src:[a]});return{isPlaying:!1,play:function t(){this.isPlaying=!0},seek:function t(){this.isPlaying=!1},playing:function t(){},rate:function t(){},setVolume:function t(){}}},setAudioFactory:function i(a){this.audioFactory=a},setVolume:function i(a){this._volume=a,this._updateVolume()},mute:function i(){this._isMuted=!0,this._updateVolume()},unmute:function i(){this._isMuted=!1,this._updateVolume()},getVolume:function i(){return this._volume},_updateVolume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new o}}(),createTypedArray=function(){function o(a,t){var r=0,e=[],n;switch(a){case"int16":case"uint8c":n=1;break;default:n=1.1;break}for(r=0;r<t;r+=1)e.push(n);return e}function i(a,t){if(a==="float32")return new Float32Array(t);if(a==="int16")return new Int16Array(t);if(a==="uint8c")return new Uint8ClampedArray(t);return o(a,t)}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function")return i;return o}();function createSizedArray(o){return Array.apply(null,{length:o})}function _typeof$6(o){return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(o)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var o=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,a=o.length;for(i=0;i<a;i+=1)BMMath[o[i]]=Math[o[i]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(o){var i=_typeof$6(o);if(i==="object"&&o.length){var a=createSizedArray(o.length),t,r=o.length;for(t=0;t<r;t+=1)a[t]=Math.abs(o[t]);return a}return Math.abs(o)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=0.5519;function roundValues(o){_shouldRoundValues=!!o}function bmRnd(o){if(_shouldRoundValues)return Math.round(o);return o}function styleDiv(o){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.display="block",o.style.transformOrigin="0 0",o.style.webkitTransformOrigin="0 0",o.style.backfaceVisibility="visible",o.style.webkitBackfaceVisibility="visible",o.style.transformStyle="preserve-3d",o.style.webkitTransformStyle="preserve-3d",o.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(o,i,a,t){this.type=o,this.currentTime=i,this.totalTime=a,this.direction=t<0?-1:1}function BMCompleteEvent(o,i){this.type=o,this.direction=i<0?-1:1}function BMCompleteLoopEvent(o,i,a,t){this.type=o,this.currentLoop=a,this.totalLoops=i,this.direction=t<0?-1:1}function BMSegmentStartEvent(o,i,a){this.type=o,this.firstFrame=i,this.totalFrames=a}function BMDestroyEvent(o,i){this.type=o,this.target=i}function BMRenderFrameErrorEvent(o,i){this.type="renderFrameError",this.nativeError=o,this.currentTime=i}function BMConfigErrorEvent(o){this.type="configError",this.nativeError=o}function BMAnimationConfigErrorEvent(o,i){this.type=o,this.nativeError=i}var createElementID=function(){var o=0;return function i(){return o+=1,idPrefix$1+"__lottie_element_"+o}}();function HSVtoRGB(o,i,a){var t,r,e,n,s,l,h,p;switch(n=Math.floor(o*6),s=o*6-n,l=a*(1-i),h=a*(1-s*i),p=a*(1-(1-s)*i),n%6){case 0:t=a,r=p,e=l;break;case 1:t=h,r=a,e=l;break;case 2:t=l,r=a,e=p;break;case 3:t=l,r=h,e=a;break;case 4:t=p,r=l,e=a;break;case 5:t=a,r=l,e=h;break;default:break}return[t,r,e]}function RGBtoHSV(o,i,a){var t=Math.max(o,i,a),r=Math.min(o,i,a),e=t-r,n,s=t===0?0:e/t,l=t/255;switch(t){case r:n=0;break;case o:n=i-a+e*(i<a?6:0),n/=6*e;break;case i:n=a-o+e*2,n/=6*e;break;case a:n=o-i+e*4,n/=6*e;break;default:break}return[n,s,l]}function addSaturationToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[1]+=i,a[1]>1)a[1]=1;else if(a[1]<=0)a[1]=0;return HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[2]+=i,a[2]>1)a[2]=1;else if(a[2]<0)a[2]=0;return HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[0]+=i/360,a[0]>1)a[0]-=1;else if(a[0]<0)a[0]+=1;return HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var o=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),o[i]=a.length===1?"0"+a:a;return function(t,r,e){if(t<0)t=0;if(r<0)r=0;if(e<0)e=0;return"#"+o[t]+o[r]+o[e]}}(),setSubframeEnabled=function o(i){subframeEnabled=!!i},getSubframeEnabled=function o(){return subframeEnabled},setExpressionsPlugin=function o(i){expressionsPlugin=i},getExpressionsPlugin=function o(){return expressionsPlugin},setExpressionInterfaces=function o(i){expressionsInterfaces=i},getExpressionInterfaces=function o(){return expressionsInterfaces},setDefaultCurveSegments=function o(i){defaultCurveSegments=i},getDefaultCurveSegments=function o(){return defaultCurveSegments},setIdPrefix=function o(i){idPrefix$1=i},getIdPrefix=function o(){return idPrefix$1};function createNS(o){return document.createElementNS(svgNS,o)}function _typeof$5(o){return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(o)}var dataManager=function(){var o=1,i=[],a,t,r={onmessage:function f(){},postMessage:function f(y){a({data:y})}},e={postMessage:function f(y){r.onmessage({data:y})}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),z=URL.createObjectURL(y);return new Worker(z)}return a=f,r}function s(){if(!t)t=n(function f(y){function z(){function q(U,x){var K,c,m=U.length,P,Y,A,M;for(c=0;c<m;c+=1)if(K=U[c],"ks"in K&&!K.completed){if(K.completed=!0,K.hasMask){var E=K.masksProperties;Y=E.length;for(P=0;P<Y;P+=1)if(E[P].pt.k.i)W(E[P].pt.k);else{M=E[P].pt.k.length;for(A=0;A<M;A+=1){if(E[P].pt.k[A].s)W(E[P].pt.k[A].s[0]);if(E[P].pt.k[A].e)W(E[P].pt.k[A].e[0])}}}if(K.ty===0)K.layers=g(K.refId,x),q(K.layers,x);else if(K.ty===4)k(K.shapes);else if(K.ty===5)F(K)}}function w(U,x){if(U){var K=0,c=U.length;for(K=0;K<c;K+=1)if(U[K].t===1)U[K].data.layers=g(U[K].data.refId,x),q(U[K].data.layers,x)}}function u(U,x){var K=0,c=x.length;while(K<c){if(x[K].id===U)return x[K];K+=1}return null}function g(U,x){var K=u(U,x);if(K){if(!K.layers.__used)return K.layers.__used=!0,K.layers;return JSON.parse(JSON.stringify(K.layers))}return null}function k(U){var x,K=U.length,c,m;for(x=K-1;x>=0;x-=1)if(U[x].ty==="sh")if(U[x].ks.k.i)W(U[x].ks.k);else{m=U[x].ks.k.length;for(c=0;c<m;c+=1){if(U[x].ks.k[c].s)W(U[x].ks.k[c].s[0]);if(U[x].ks.k[c].e)W(U[x].ks.k[c].e[0])}}else if(U[x].ty==="gr")k(U[x].it)}function W(U){var x,K=U.i.length;for(x=0;x<K;x+=1)U.i[x][0]+=U.v[x][0],U.i[x][1]+=U.v[x][1],U.o[x][0]+=U.v[x][0],U.o[x][1]+=U.v[x][1]}function R(U,x){var K=x?x.split("."):[100,100,100];if(U[0]>K[0])return!0;if(K[0]>U[0])return!1;if(U[1]>K[1])return!0;if(K[1]>U[1])return!1;if(U[2]>K[2])return!0;if(K[2]>U[2])return!1;return null}var Q=function(){var U=[4,4,14];function x(c){var m=c.t.d;c.t.d={k:[{s:m,t:0}]}}function K(c){var m,P=c.length;for(m=0;m<P;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),b=function(){var U=[4,7,99];return function(x){if(x.chars&&!R(U,x.v)){var K,c=x.chars.length;for(K=0;K<c;K+=1){var m=x.chars[K];if(m.data&&m.data.shapes){if(k(m.data.shapes),m.data.ip=0,m.data.op=99999,m.data.st=0,m.data.sr=1,m.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},!x.chars[K].t)m.data.shapes.push({ty:"no"}),m.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})}}}}}(),S=function(){var U=[5,7,15];function x(c){var m=c.t.p;if(typeof m.a==="number")m.a={a:0,k:m.a};if(typeof m.p==="number")m.p={a:0,k:m.p};if(typeof m.r==="number")m.r={a:0,k:m.r}}function K(c){var m,P=c.length;for(m=0;m<P;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),I=function(){var U=[4,1,9];function x(c){var m,P=c.length,Y,A;for(m=0;m<P;m+=1)if(c[m].ty==="gr")x(c[m].it);else if(c[m].ty==="fl"||c[m].ty==="st")if(c[m].c.k&&c[m].c.k[0].i){A=c[m].c.k.length;for(Y=0;Y<A;Y+=1){if(c[m].c.k[Y].s)c[m].c.k[Y].s[0]/=255,c[m].c.k[Y].s[1]/=255,c[m].c.k[Y].s[2]/=255,c[m].c.k[Y].s[3]/=255;if(c[m].c.k[Y].e)c[m].c.k[Y].e[0]/=255,c[m].c.k[Y].e[1]/=255,c[m].c.k[Y].e[2]/=255,c[m].c.k[Y].e[3]/=255}}else c[m].c.k[0]/=255,c[m].c.k[1]/=255,c[m].c.k[2]/=255,c[m].c.k[3]/=255}function K(c){var m,P=c.length;for(m=0;m<P;m+=1)if(c[m].ty===4)x(c[m].shapes)}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),C=function(){var U=[4,4,18];function x(c){var m,P=c.length,Y,A;for(m=P-1;m>=0;m-=1)if(c[m].ty==="sh")if(c[m].ks.k.i)c[m].ks.k.c=c[m].closed;else{A=c[m].ks.k.length;for(Y=0;Y<A;Y+=1){if(c[m].ks.k[Y].s)c[m].ks.k[Y].s[0].c=c[m].closed;if(c[m].ks.k[Y].e)c[m].ks.k[Y].e[0].c=c[m].closed}}else if(c[m].ty==="gr")x(c[m].it)}function K(c){var m,P,Y=c.length,A,M,E,oo;for(P=0;P<Y;P+=1){if(m=c[P],m.hasMask){var to=m.masksProperties;M=to.length;for(A=0;A<M;A+=1)if(to[A].pt.k.i)to[A].pt.k.c=to[A].cl;else{oo=to[A].pt.k.length;for(E=0;E<oo;E+=1){if(to[A].pt.k[E].s)to[A].pt.k[E].s[0].c=to[A].cl;if(to[A].pt.k[E].e)to[A].pt.k[E].e[0].c=to[A].cl}}}if(m.ty===4)x(m.shapes)}}return function(c){if(R(U,c.v)){if(K(c.layers),c.assets){var m,P=c.assets.length;for(m=0;m<P;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}();function J(U){if(U.__complete)return;I(U),Q(U),b(U),S(U),C(U),q(U.layers,U.assets),w(U.chars,U.assets),U.__complete=!0}function F(U){if(U.t.a.length===0&&!("m"in U.t.p));}var j={};return j.completeData=J,j.checkColors=I,j.checkChars=b,j.checkPathProperties=S,j.checkShapes=C,j.completeLayers=q,j}if(!e.dataManager)e.dataManager=z();if(!e.assetLoader)e.assetLoader=function(){function q(u){var g=u.getResponseHeader("content-type");if(g&&u.responseType==="json"&&g.indexOf("json")!==-1)return u.response;if(u.response&&_typeof$5(u.response)==="object")return u.response;if(u.response&&typeof u.response==="string")return JSON.parse(u.response);if(u.responseText)return JSON.parse(u.responseText);return null}function w(u,g,k,W){var R,Q=new XMLHttpRequest;try{Q.responseType="json"}catch(b){}Q.onreadystatechange=function(){if(Q.readyState===4)if(Q.status===200)R=q(Q),k(R);else try{R=q(Q),k(R)}catch(b){if(W)W(b)}};try{Q.open(["G","E","T"].join(""),u,!0)}catch(b){Q.open(["G","E","T"].join(""),g+"/"+u,!0)}Q.send()}return{load:w}}();if(y.data.type==="loadAnimation")e.assetLoader.load(y.data.path,y.data.fullPath,function(q){e.dataManager.completeData(q),e.postMessage({id:y.data.id,payload:q,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var v=y.data.animation;e.dataManager.completeData(v),e.postMessage({id:y.data.id,payload:v,status:"success"})}else if(y.data.type==="loadData")e.assetLoader.load(y.data.path,y.data.fullPath,function(q){e.postMessage({id:y.data.id,payload:q,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})})}),t.onmessage=function(f){var y=f.data,z=y.id,v=i[z];if(i[z]=null,y.status==="success")v.onComplete(y.payload);else if(v.onError)v.onError()}}function l(f,y){o+=1;var z="processId_"+o;return i[z]={onComplete:f,onError:y},z}function h(f,y,z){s();var v=l(y,z);t.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:v})}function p(f,y,z){s();var v=l(y,z);t.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:v})}function H(f,y,z){s();var v=l(y,z);t.postMessage({type:"complete",animation:f,id:v})}return{loadAnimation:h,loadData:p,completeAnimation:H}}(),ImagePreloader=function(){var o=function(){var w=createTag("canvas");w.width=1,w.height=1;var u=w.getContext("2d");return u.fillStyle="rgba(0,0,0,0)",u.fillRect(0,0,1,1),w}();function i(){if(this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function a(){if(this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function t(w,u,g){var k="";if(w.e)k=w.p;else if(u){var W=w.p;if(W.indexOf("images/")!==-1)W=W.split("/")[1];k=u+W}else k=g,k+=w.u?w.u:"",k+=w.p;return k}function r(w){var u=0,g=setInterval(function(){var k=w.getBBox();if(k.width||u>500)this._imageLoaded(),clearInterval(g);u+=1}.bind(this),50)}function e(w){var u=t(w,this.assetsPath,this.path),g=createNS("image");if(isSafari)this.testImageLoaded(g);else g.addEventListener("load",this._imageLoaded,!1);if(g.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append)this._elementHelper.append(g);else this._elementHelper.appendChild(g);var k={img:g,assetData:w};return k}function n(w){var u=t(w,this.assetsPath,this.path),g=createTag("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),g.src=u;var k={img:g,assetData:w};return k}function s(w){var u={assetData:w},g=t(w,this.assetsPath,this.path);return dataManager.loadData(g,function(k){u.img=k,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function l(w,u){this.imagesLoadedCb=u;var g,k=w.length;for(g=0;g<k;g+=1)if(!w[g].layers){if(!w[g].t||w[g].t==="seq")this.totalImages+=1,this.images.push(this._createImageData(w[g]));else if(w[g].t===3)this.totalFootages+=1,this.images.push(this.createFootageData(w[g]))}}function h(w){this.path=w||""}function p(w){this.assetsPath=w||""}function H(w){var u=0,g=this.images.length;while(u<g){if(this.images[u].assetData===w)return this.images[u].img;u+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function z(){return this.totalFootages===this.loadedFootagesCount}function v(w,u){if(w==="svg")this._elementHelper=u,this._createImageData=this.createImageData.bind(this);else this._createImageData=this.createImgData.bind(this)}function q(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return q.prototype={loadAssets:l,setAssetsPath:p,setPath:h,loadedImages:y,loadedFootages:z,destroy:f,getAsset:H,createImgData:n,createImageData:e,imageLoaded:i,footageLoaded:a,setCacheType:v},q}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function o(i,a){if(this._cbs[i]){var t=this._cbs[i];for(var r=0;r<t.length;r+=1)t[r](a)}},addEventListener:function o(i,a){if(!this._cbs[i])this._cbs[i]=[];return this._cbs[i].push(a),function(){this.removeEventListener(i,a)}.bind(this)},removeEventListener:function o(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){var t=0,r=this._cbs[i].length;while(t<r){if(this._cbs[i][t]===a)this._cbs[i].splice(t,1),t-=1,r-=1;t+=1}if(!this._cbs[i].length)this._cbs[i]=null}}};var markerParser=function(){function o(i){var a=i.split(`\r
|
|
2
2
|
`),t={},r,e=0;for(var n=0;n<a.length;n+=1)if(r=a[n].split(":"),r.length===2)t[r[0]]=r[1].trim(),e+=1;if(e===0)throw new Error;return t}return function(i){var a=[];for(var t=0;t<i.length;t+=1){var r=i[t],e={time:r.tm,duration:r.dr};try{e.payload=JSON.parse(i[t].cm)}catch(n){try{e.payload=o(i[t].cm)}catch(s){e.payload={name:i[t].cm}}}a.push(e)}return a}}(),ProjectInterface=function(){function o(i){this.compositions.push(i)}return function(){function i(a){var t=0,r=this.compositions.length;while(t<r){if(this.compositions[t].data&&this.compositions[t].data.nm===a){if(this.compositions[t].prepareFrame&&this.compositions[t].data.xt)this.compositions[t].prepareFrame(this.currentFrame);return this.compositions[t].compInterface}t+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=o,i}}(),renderers={},registerRenderer=function o(i,a){renderers[i]=a};function getRenderer(o){return renderers[o]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var o in renderers)if(renderers[o])return o;return""}function _typeof$4(o){return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$4(o)}var AnimationItem=function o(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(o){if(o.wrapper||o.container)this.wrapper=o.wrapper||o.container;var i="svg";if(o.animType)i=o.animType;else if(o.renderer)i=o.renderer;var a=getRenderer(i);if(this.renderer=new a(this,o.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,o.loop===""||o.loop===null||o.loop===void 0||o.loop===!0)this.loop=!0;else if(o.loop===!1)this.loop=!1;else this.loop=parseInt(o.loop,10);if(this.autoplay="autoplay"in o?o.autoplay:!0,this.name=o.name?o.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(o,"autoloadSegments")?o.autoloadSegments:!0,this.assetsPath=o.assetsPath,this.initialSegment=o.initialSegment,o.audioFactory)this.audioController.setAudioFactory(o.audioFactory);if(o.animationData)this.setupAnimation(o.animationData);else if(o.path){if(o.path.lastIndexOf("\\")!==-1)this.path=o.path.substr(0,o.path.lastIndexOf("\\")+1);else this.path=o.path.substr(0,o.path.lastIndexOf("/")+1);this.fileName=o.path.substr(o.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(o.path,this.configAnimation,this.onSetupError)}},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(o){dataManager.completeAnimation(o,this.configAnimation)},AnimationItem.prototype.setData=function(o,i){if(i){if(_typeof$4(i)!=="object")i=JSON.parse(i)}var a={wrapper:o,animationData:i},t=o.attributes;a.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",a.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:"";if(r==="false")a.loop=!1;else if(r==="true")a.loop=!0;else if(r!=="")a.loop=parseInt(r,10);var e=t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:t.getNamedItem("bm-autoplay")?t.getNamedItem("bm-autoplay").value:!0;a.autoplay=e!=="false",a.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"";var n=t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"";if(n==="false")a.prerender=!1;if(!a.path)this.trigger("destroy");else this.setParams(a)},AnimationItem.prototype.includeLayers=function(o){if(o.op>this.animationData.op)this.animationData.op=o.op,this.totalFrames=Math.floor(o.op-this.animationData.ip);var i=this.animationData.layers,a,t=i.length,r=o.layers,e,n=r.length;for(e=0;e<n;e+=1){a=0;while(a<t){if(i[a].id===r[e].id){i[a]=r[e];break}a+=1}}if(o.chars||o.fonts)this.renderer.globalData.fontManager.addChars(o.chars),this.renderer.globalData.fontManager.addFonts(o.fonts,this.renderer.globalData.defs);if(o.assets){t=o.assets.length;for(a=0;a<t;a+=1)this.animationData.assets.push(o.assets[a])}this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(o){this.animationData=o;var i=getExpressionsPlugin();if(i)i.initExpressions(this);this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var o=this.animationData.segments;if(!o||o.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=o.shift();this.timeCompleted=i.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(a,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var o=this.animationData.segments;if(!o)this.timeCompleted=this.totalFrames;this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(o){if(!this.renderer)return;try{if(this.animationData=o,this.initialSegment)this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0]);else this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip);if(this.renderer.configAnimation(o),!o.assets)o.assets=[];if(this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1000,this.renderer.searchExtraCompositions(o.assets),this.markers=markerParser(o.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused)this.audioController.pause()}catch(i){this.triggerConfigError(i)}},AnimationItem.prototype.waitForFontsLoaded=function(){if(!this.renderer)return;if(this.renderer.globalData.fontManager.isLoaded)this.checkLoaded();else setTimeout(this.waitForFontsLoaded.bind(this),20)},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var o=getExpressionsPlugin();if(o)o.initExpressions(this);if(this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay)this.play()}},AnimationItem.prototype.resize=function(o,i){var a=typeof o==="number"?o:void 0,t=typeof i==="number"?i:void 0;this.renderer.updateContainerSize(a,t)},AnimationItem.prototype.setSubframe=function(o){this.isSubframeEnabled=!!o},AnimationItem.prototype.gotoFrame=function(){if(this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted)this.currentFrame=this.timeCompleted;this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded===!1||!this.renderer)return;try{if(this.expressionsPlugin)this.expressionsPlugin.resetFrame();this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(o){this.triggerRenderFrameError(o)}},AnimationItem.prototype.play=function(o){if(o&&this.name!==o)return;if(this.isPaused===!0){if(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle)this._idle=!1,this.trigger("_active")}},AnimationItem.prototype.pause=function(o){if(o&&this.name!==o)return;if(this.isPaused===!1)this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause()},AnimationItem.prototype.togglePause=function(o){if(o&&this.name!==o)return;if(this.isPaused===!0)this.play();else this.pause()},AnimationItem.prototype.stop=function(o){if(o&&this.name!==o)return;this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0)},AnimationItem.prototype.getMarkerData=function(o){var i;for(var a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===o)return i;return null},AnimationItem.prototype.goToAndStop=function(o,i,a){if(a&&this.name!==a)return;var t=Number(o);if(isNaN(t)){var r=this.getMarkerData(o);if(r)this.goToAndStop(r.time,!0)}else if(i)this.setCurrentRawFrameValue(o);else this.setCurrentRawFrameValue(o*this.frameModifier);this.pause()},AnimationItem.prototype.goToAndPlay=function(o,i,a){if(a&&this.name!==a)return;var t=Number(o);if(isNaN(t)){var r=this.getMarkerData(o);if(r)if(!r.duration)this.goToAndStop(r.time,!0);else this.playSegments([r.time,r.time+r.duration],!0)}else this.goToAndStop(t,i,a);this.play()},AnimationItem.prototype.advanceTime=function(o){if(this.isPaused===!0||this.isLoaded===!1)return;var i=this.currentRawFrame+o*this.frameModifier,a=!1;if(i>=this.totalFrames-1&&this.frameModifier>0)if(!this.loop||this.playCount===this.loop){if(!this.checkSegments(i>this.totalFrames?i%this.totalFrames:0))a=!0,i=this.totalFrames-1}else if(i>=this.totalFrames){if(this.playCount+=1,!this.checkSegments(i%this.totalFrames))this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete")}else this.setCurrentRawFrameValue(i);else if(i<0){if(!this.checkSegments(i%this.totalFrames))if(this.loop&&!(this.playCount--<=0&&this.loop!==!0))if(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),!this._completedLoop)this._completedLoop=!0;else this.trigger("loopComplete");else a=!0,i=0}else this.setCurrentRawFrameValue(i);if(a)this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete")},AnimationItem.prototype.adjustSegment=function(o,i){if(this.playCount=0,o[1]<o[0]){if(this.frameModifier>0)if(this.playSpeed<0)this.setSpeed(-this.playSpeed);else this.setDirection(-1);this.totalFrames=o[0]-o[1],this.timeCompleted=this.totalFrames,this.firstFrame=o[1],this.setCurrentRawFrameValue(this.totalFrames-0.001-i)}else if(o[1]>o[0]){if(this.frameModifier<0)if(this.playSpeed<0)this.setSpeed(-this.playSpeed);else this.setDirection(1);this.totalFrames=o[1]-o[0],this.timeCompleted=this.totalFrames,this.firstFrame=o[0],this.setCurrentRawFrameValue(0.001+i)}this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(o,i){var a=-1;if(this.isPaused){if(this.currentRawFrame+this.firstFrame<o)a=o;else if(this.currentRawFrame+this.firstFrame>i)a=i-o}if(this.firstFrame=o,this.totalFrames=i-o,this.timeCompleted=this.totalFrames,a!==-1)this.goToAndStop(a,!0)},AnimationItem.prototype.playSegments=function(o,i){if(i)this.segments.length=0;if(_typeof$4(o[0])==="object"){var a,t=o.length;for(a=0;a<t;a+=1)this.segments.push(o[a])}else this.segments.push(o);if(this.segments.length&&i)this.adjustSegment(this.segments.shift(),0);if(this.isPaused)this.play()},AnimationItem.prototype.resetSegments=function(o){if(this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),o)this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(o){if(this.segments.length)return this.adjustSegment(this.segments.shift(),o),!0;return!1},AnimationItem.prototype.destroy=function(o){if(o&&this.name!==o||!this.renderer)return;this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null},AnimationItem.prototype.setCurrentRawFrameValue=function(o){this.currentRawFrame=o,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(o){this.playSpeed=o,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(o){this.playDirection=o<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(o){this.loop=o},AnimationItem.prototype.setVolume=function(o,i){if(i&&this.name!==i)return;this.audioController.setVolume(o)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(o){if(o&&this.name!==o)return;this.audioController.mute()},AnimationItem.prototype.unmute=function(o){if(o&&this.name!==o)return;this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(o){var i="";if(o.e)i=o.p;else if(this.assetsPath){var a=o.p;if(a.indexOf("images/")!==-1)a=a.split("/")[1];i=this.assetsPath+a}else i=this.path,i+=o.u?o.u:"",i+=o.p;return i},AnimationItem.prototype.getAssetData=function(o){var i=0,a=this.assets.length;while(i<a){if(o===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(o){return o?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(o,i,a){try{var t=this.renderer.getElementByPath(o);t.updateDocumentData(i,a)}catch(r){}},AnimationItem.prototype.trigger=function(o){if(this._cbs&&this._cbs[o])switch(o){case"enterFrame":this.triggerEvent(o,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(o,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(o,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(o,new BMCompleteEvent(o,this.frameMult));break;case"segmentStart":this.triggerEvent(o,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(o,new BMDestroyEvent(o,this));break;default:this.triggerEvent(o)}if(o==="enterFrame"&&this.onEnterFrame)this.onEnterFrame.call(this,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameMult));if(o==="loopComplete"&&this.onLoopComplete)this.onLoopComplete.call(this,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));if(o==="complete"&&this.onComplete)this.onComplete.call(this,new BMCompleteEvent(o,this.frameMult));if(o==="segmentStart"&&this.onSegmentStart)this.onSegmentStart.call(this,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));if(o==="destroy"&&this.onDestroy)this.onDestroy.call(this,new BMDestroyEvent(o,this))},AnimationItem.prototype.triggerRenderFrameError=function(o){var i=new BMRenderFrameErrorEvent(o,this.currentFrame);if(this.triggerEvent("error",i),this.onError)this.onError.call(this,i)},AnimationItem.prototype.triggerConfigError=function(o){var i=new BMConfigErrorEvent(o,this.currentFrame);if(this.triggerEvent("error",i),this.onError)this.onError.call(this,i)};var animationManager=function(){var o={},i=[],a=0,t=0,r=0,e=!0,n=!1;function s(x){var K=0,c=x.target;while(K<t){if(i[K].animation===c){if(i.splice(K,1),K-=1,t-=1,!c.isPaused)H()}K+=1}}function l(x,K){if(!x)return null;var c=0;while(c<t){if(i[c].elem===x&&i[c].elem!==null)return i[c].animation;c+=1}var m=new AnimationItem;return f(m,x),m.setData(x,K),m}function h(){var x,K=i.length,c=[];for(x=0;x<K;x+=1)c.push(i[x].animation);return c}function p(){r+=1,I()}function H(){r-=1}function f(x,K){x.addEventListener("destroy",s),x.addEventListener("_active",p),x.addEventListener("_idle",H),i.push({elem:K,animation:x}),t+=1}function y(x){var K=new AnimationItem;return f(K,null),K.setParams(x),K}function z(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setSpeed(x,K)}function v(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setDirection(x,K)}function q(x){var K;for(K=0;K<t;K+=1)i[K].animation.play(x)}function w(x){var K=x-a,c;for(c=0;c<t;c+=1)i[c].animation.advanceTime(K);if(a=x,r&&!n)window.requestAnimationFrame(w);else e=!0}function u(x){a=x,window.requestAnimationFrame(w)}function g(x){var K;for(K=0;K<t;K+=1)i[K].animation.pause(x)}function k(x,K,c){var m;for(m=0;m<t;m+=1)i[m].animation.goToAndStop(x,K,c)}function W(x){var K;for(K=0;K<t;K+=1)i[K].animation.stop(x)}function R(x){var K;for(K=0;K<t;K+=1)i[K].animation.togglePause(x)}function Q(x){var K;for(K=t-1;K>=0;K-=1)i[K].animation.destroy(x)}function b(x,K,c){var m=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),P,Y=m.length;for(P=0;P<Y;P+=1){if(c)m[P].setAttribute("data-bm-type",c);l(m[P],x)}if(K&&Y===0){if(!c)c="svg";var A=document.getElementsByTagName("body")[0];A.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",c),A.appendChild(M),l(M,x)}}function S(){var x;for(x=0;x<t;x+=1)i[x].animation.resize()}function I(){if(!n&&r){if(e)window.requestAnimationFrame(u),e=!1}}function C(){n=!0}function J(){n=!1,I()}function F(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setVolume(x,K)}function j(x){var K;for(K=0;K<t;K+=1)i[K].animation.mute(x)}function U(x){var K;for(K=0;K<t;K+=1)i[K].animation.unmute(x)}return o.registerAnimation=l,o.loadAnimation=y,o.setSpeed=z,o.setDirection=v,o.play=q,o.pause=g,o.stop=W,o.togglePause=R,o.searchAnimations=b,o.resize=S,o.goToAndStop=k,o.destroy=Q,o.freeze=C,o.unfreeze=J,o.setVolume=F,o.mute=j,o.unmute=U,o.getRegisteredAnimations=h,o}(),BezierFactory=function(){var o={};o.getBezierEasing=a;var i={};function a(u,g,k,W,R){var Q=R||("bez_"+u+"_"+g+"_"+k+"_"+W).replace(/\./g,"p");if(i[Q])return i[Q];var b=new w([u,g,k,W]);return i[Q]=b,b}var t=4,r=0.001,e=0.0000001,n=10,s=11,l=1/(s-1),h=typeof Float32Array==="function";function p(u,g){return 1-3*g+3*u}function H(u,g){return 3*g-6*u}function f(u){return 3*u}function y(u,g,k){return((p(g,k)*u+H(g,k))*u+f(g))*u}function z(u,g,k){return 3*p(g,k)*u*u+2*H(g,k)*u+f(g)}function v(u,g,k,W,R){var Q,b,S=0;do if(b=g+(k-g)/2,Q=y(b,W,R)-u,Q>0)k=b;else g=b;while(Math.abs(Q)>e&&++S<n);return b}function q(u,g,k,W){for(var R=0;R<t;++R){var Q=z(g,k,W);if(Q===0)return g;var b=y(g,k,W)-u;g-=b/Q}return g}function w(u){this._p=u,this._mSampleValues=h?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function u(g){var k=this._p[0],W=this._p[1],R=this._p[2],Q=this._p[3];if(!this._precomputed)this._precompute();if(k===W&&R===Q)return g;if(g===0)return 0;if(g===1)return 1;return y(this._getTForX(g),W,Q)},_precompute:function u(){var g=this._p[0],k=this._p[1],W=this._p[2],R=this._p[3];if(this._precomputed=!0,g!==k||W!==R)this._calcSampleValues()},_calcSampleValues:function u(){var g=this._p[0],k=this._p[2];for(var W=0;W<s;++W)this._mSampleValues[W]=y(W*l,g,k)},_getTForX:function u(g){var k=this._p[0],W=this._p[2],R=this._mSampleValues,Q=0,b=1,S=s-1;for(;b!==S&&R[b]<=g;++b)Q+=l;--b;var I=(g-R[b])/(R[b+1]-R[b]),C=Q+I*l,J=z(C,k,W);if(J>=r)return q(g,C,k,W);if(J===0)return C;return v(g,Q,Q+l,k,W)}},o}(),pooling=function(){function o(i){return i.concat(createSizedArray(i.length))}return{double:o}}(),poolFactory=function(){return function(o,i,a){var t=0,r=o,e=createSizedArray(r),n={newElement:s,release:l};function s(){var h;if(t)t-=1,h=e[t];else h=i();return h}function l(h){if(t===r)e=pooling.double(e),r*=2;if(a)a(h);e[t]=h,t+=1}return n}}(),bezierLengthPool=function(){function o(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,o)}(),segmentsLengthPool=function(){function o(){return{lengths:[],totalLength:0}}function i(a){var t,r=a.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(a.lengths[t]);a.lengths.length=0}return poolFactory(8,o,i)}();function bezFunction(){var o=Math;function i(f,y,z,v,q,w){var u=f*v+y*q+z*w-q*v-w*f-z*y;return u>-0.001&&u<0.001}function a(f,y,z,v,q,w,u,g,k){if(z===0&&w===0&&k===0)return i(f,y,v,q,u,g);var W=o.sqrt(o.pow(v-f,2)+o.pow(q-y,2)+o.pow(w-z,2)),R=o.sqrt(o.pow(u-f,2)+o.pow(g-y,2)+o.pow(k-z,2)),Q=o.sqrt(o.pow(u-v,2)+o.pow(g-q,2)+o.pow(k-w,2)),b;if(W>R)if(W>Q)b=W-R-Q;else b=Q-R-W;else if(Q>R)b=Q-R-W;else b=R-W-Q;return b>-0.0001&&b<0.0001}var t=function(){return function(f,y,z,v){var q=getDefaultCurveSegments(),w,u,g,k,W,R=0,Q,b=[],S=[],I=bezierLengthPool.newElement();g=z.length;for(w=0;w<q;w+=1){W=w/(q-1),Q=0;for(u=0;u<g;u+=1){if(k=bmPow(1-W,3)*f[u]+3*bmPow(1-W,2)*W*z[u]+3*(1-W)*bmPow(W,2)*v[u]+bmPow(W,3)*y[u],b[u]=k,S[u]!==null)Q+=bmPow(b[u]-S[u],2);S[u]=b[u]}if(Q)Q=bmSqrt(Q),R+=Q;I.percents[w]=W,I.lengths[w]=R}return I.addedLength=R,I}}();function r(f){var y=segmentsLengthPool.newElement(),z=f.c,v=f.v,q=f.o,w=f.i,u,g=f._length,k=y.lengths,W=0;for(u=0;u<g-1;u+=1)k[u]=t(v[u],v[u+1],q[u],w[u+1]),W+=k[u].addedLength;if(z&&g)k[u]=t(v[u],v[0],q[u],w[0]),W+=k[u].addedLength;return y.totalLength=W,y}function e(f){this.segmentLength=0,this.points=new Array(f)}function n(f,y){this.partialLength=f,this.point=y}var s=function(){var f={};return function(y,z,v,q){var w=(y[0]+"_"+y[1]+"_"+z[0]+"_"+z[1]+"_"+v[0]+"_"+v[1]+"_"+q[0]+"_"+q[1]).replace(/\./g,"p");if(!f[w]){var u=getDefaultCurveSegments(),g,k,W,R,Q,b=0,S,I,C=null;if(y.length===2&&(y[0]!==z[0]||y[1]!==z[1])&&i(y[0],y[1],z[0],z[1],y[0]+v[0],y[1]+v[1])&&i(y[0],y[1],z[0],z[1],z[0]+q[0],z[1]+q[1]))u=2;var J=new e(u);W=v.length;for(g=0;g<u;g+=1){I=createSizedArray(W),Q=g/(u-1),S=0;for(k=0;k<W;k+=1)if(R=bmPow(1-Q,3)*y[k]+3*bmPow(1-Q,2)*Q*(y[k]+v[k])+3*(1-Q)*bmPow(Q,2)*(z[k]+q[k])+bmPow(Q,3)*z[k],I[k]=R,C!==null)S+=bmPow(I[k]-C[k],2);S=bmSqrt(S),b+=S,J.points[g]=new n(S,I),C=I}J.segmentLength=b,f[w]=J}return f[w]}}();function l(f,y){var{percents:z,lengths:v}=y,q=z.length,w=bmFloor((q-1)*f),u=f*y.addedLength,g=0;if(w===q-1||w===0||u===v[w])return z[w];var k=v[w]>u?-1:1,W=!0;while(W){if(v[w]<=u&&v[w+1]>u)g=(u-v[w])/(v[w+1]-v[w]),W=!1;else w+=k;if(w<0||w>=q-1){if(w===q-1)return z[w];W=!1}}return z[w]+(z[w+1]-z[w])*g}function h(f,y,z,v,q,w){var u=l(q,w),g=1-u,k=o.round((g*g*g*f[0]+(u*g*g+g*u*g+g*g*u)*z[0]+(u*u*g+g*u*u+u*g*u)*v[0]+u*u*u*y[0])*1000)/1000,W=o.round((g*g*g*f[1]+(u*g*g+g*u*g+g*g*u)*z[1]+(u*u*g+g*u*u+u*g*u)*v[1]+u*u*u*y[1])*1000)/1000;return[k,W]}var p=createTypedArray("float32",8);function H(f,y,z,v,q,w,u){if(q<0)q=0;else if(q>1)q=1;var g=l(q,u);w=w>1?1:w;var k=l(w,u),W,R=f.length,Q=1-g,b=1-k,S=Q*Q*Q,I=g*Q*Q*3,C=g*g*Q*3,J=g*g*g,F=Q*Q*b,j=g*Q*b+Q*g*b+Q*Q*k,U=g*g*b+Q*g*k+g*Q*k,x=g*g*k,K=Q*b*b,c=g*b*b+Q*k*b+Q*b*k,m=g*k*b+Q*k*k+g*b*k,P=g*k*k,Y=b*b*b,A=k*b*b+b*k*b+b*b*k,M=k*k*b+b*k*k+k*b*k,E=k*k*k;for(W=0;W<R;W+=1)p[W*4]=o.round((S*f[W]+I*z[W]+C*v[W]+J*y[W])*1000)/1000,p[W*4+1]=o.round((F*f[W]+j*z[W]+U*v[W]+x*y[W])*1000)/1000,p[W*4+2]=o.round((K*f[W]+c*z[W]+m*v[W]+P*y[W])*1000)/1000,p[W*4+3]=o.round((Y*f[W]+A*z[W]+M*v[W]+E*y[W])*1000)/1000;return p}return{getSegmentsLength:r,getNewSegment:H,getPointInSegment:h,buildBezierData:s,pointOnLine2D:i,pointOnLine3D:a}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(o,i){var a=this.offsetTime,t;if(this.propType==="multidimensional")t=createTypedArray("float32",this.pv.length);var r=i.lastIndex,e=r,n=this.keyframes.length-1,s=!0,l,h,p;while(s){if(l=this.keyframes[e],h=this.keyframes[e+1],e===n-1&&o>=h.t-a){if(l.h)l=h;r=0;break}if(h.t-a>o){r=e;break}if(e<n-1)e+=1;else r=0,s=!1}p=this.keyframesMetadata[e]||{};var H,f,y,z,v,q,w=h.t-a,u=l.t-a,g;if(l.to){if(!p.bezierData)p.bezierData=bez.buildBezierData(l.s,h.s||l.e,l.to,l.ti);var k=p.bezierData;if(o>=w||o<u){var W=o>=w?k.points.length-1:0;f=k.points[W].point.length;for(H=0;H<f;H+=1)t[H]=k.points[W].point[H]}else{if(p.__fnct)q=p.__fnct;else q=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,p.__fnct=q;y=q((o-u)/(w-u));var R=k.segmentLength*y,Q,b=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastAddedLength:0;v=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastPoint:0,s=!0,z=k.points.length;while(s){if(b+=k.points[v].partialLength,R===0||y===0||v===k.points.length-1){f=k.points[v].point.length;for(H=0;H<f;H+=1)t[H]=k.points[v].point[H];break}else if(R>=b&&R<b+k.points[v+1].partialLength){Q=(R-b)/k.points[v+1].partialLength,f=k.points[v].point.length;for(H=0;H<f;H+=1)t[H]=k.points[v].point[H]+(k.points[v+1].point[H]-k.points[v].point[H])*Q;break}if(v<z-1)v+=1;else s=!1}i._lastPoint=v,i._lastAddedLength=b-k.points[v].partialLength,i._lastKeyframeIndex=e}}else{var S,I,C,J,F;if(n=l.s.length,g=h.s||l.e,this.sh&&l.h!==1)if(o>=w)t[0]=g[0],t[1]=g[1],t[2]=g[2];else if(o<=u)t[0]=l.s[0],t[1]=l.s[1],t[2]=l.s[2];else{var j=createQuaternion(l.s),U=createQuaternion(g),x=(o-u)/(w-u);quaternionToEuler(t,slerp(j,U,x))}else for(e=0;e<n;e+=1){if(l.h!==1)if(o>=w)y=1;else if(o<u)y=0;else{if(l.o.x.constructor===Array){if(!p.__fnct)p.__fnct=[];if(!p.__fnct[e])S=l.o.x[e]===void 0?l.o.x[0]:l.o.x[e],I=l.o.y[e]===void 0?l.o.y[0]:l.o.y[e],C=l.i.x[e]===void 0?l.i.x[0]:l.i.x[e],J=l.i.y[e]===void 0?l.i.y[0]:l.i.y[e],q=BezierFactory.getBezierEasing(S,I,C,J).get,p.__fnct[e]=q;else q=p.__fnct[e]}else if(!p.__fnct)S=l.o.x,I=l.o.y,C=l.i.x,J=l.i.y,q=BezierFactory.getBezierEasing(S,I,C,J).get,l.keyframeMetadata=q;else q=p.__fnct;y=q((o-u)/(w-u))}if(g=h.s||l.e,F=l.h===1?l.s[e]:l.s[e]+(g[e]-l.s[e])*y,this.propType==="multidimensional")t[e]=F;else t=F}}return i.lastIndex=r,t}function slerp(o,i,a){var t=[],r=o[0],e=o[1],n=o[2],s=o[3],l=i[0],h=i[1],p=i[2],H=i[3],f,y,z,v,q;if(y=r*l+e*h+n*p+s*H,y<0)y=-y,l=-l,h=-h,p=-p,H=-H;if(1-y>0.000001)f=Math.acos(y),z=Math.sin(f),v=Math.sin((1-a)*f)/z,q=Math.sin(a*f)/z;else v=1-a,q=a;return t[0]=v*r+q*l,t[1]=v*e+q*h,t[2]=v*n+q*p,t[3]=v*s+q*H,t}function quaternionToEuler(o,i){var a=i[0],t=i[1],r=i[2],e=i[3],n=Math.atan2(2*t*e-2*a*r,1-2*t*t-2*r*r),s=Math.asin(2*a*t+2*r*e),l=Math.atan2(2*a*e-2*t*r,1-2*a*a-2*r*r);o[0]=n/degToRads,o[1]=s/degToRads,o[2]=l/degToRads}function createQuaternion(o){var i=o[0]*degToRads,a=o[1]*degToRads,t=o[2]*degToRads,r=Math.cos(i/2),e=Math.cos(a/2),n=Math.cos(t/2),s=Math.sin(i/2),l=Math.sin(a/2),h=Math.sin(t/2),p=r*e*n-s*l*h,H=s*l*n+r*e*h,f=s*e*n+r*l*h,y=r*l*n-s*e*h;return[H,f,y,p]}function getValueAtCurrentTime(){var o=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(o===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=a&&o>=a||this._caching.lastFrame<i&&o<i))){if(this._caching.lastFrame>=o)this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0;var t=this.interpolateValue(o,this._caching);this.pv=t}return this._caching.lastFrame=o,this.pv}function setVValue(o){var i;if(this.propType==="unidimensional"){if(i=o*this.mult,mathAbs(this.v-i)>0.00001)this.v=i,this._mdf=!0}else{var a=0,t=this.v.length;while(a<t){if(i=o[a]*this.mult,mathAbs(this.v[a]-i)>0.00001)this.v[a]=i,this._mdf=!0;a+=1}}}function processEffectsSequence(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)return;if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var o,i=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(o=0;o<i;o+=1)a=this.effectsSequence[o](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}function addEffect(o){this.effectsSequence.push(o),this.container.addDynamicProperty(this)}function ValueProperty(o,i,a,t){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a:i.k,this.pv=i.k,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(o,i,a,t){this.propType="multidimensional",this.mult=a||1,this.data=i,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,e=i.k.length;this.v=createTypedArray("float32",e),this.pv=createTypedArray("float32",e),this.vel=createTypedArray("float32",e);for(r=0;r<e;r+=1)this.v[r]=i.k[r]*this.mult,this.pv[r]=i.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(o,i,a,t){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(o,i,a,t){this.propType="multidimensional";var r,e=i.k.length,n,s,l,h;for(r=0;r<e-1;r+=1)if(i.k[r].to&&i.k[r].s&&i.k[r+1]&&i.k[r+1].s){if(n=i.k[r].s,s=i.k[r+1].s,l=i.k[r].to,h=i.k[r].ti,n.length===2&&!(n[0]===s[0]&&n[1]===s[1])&&bez.pointOnLine2D(n[0],n[1],s[0],s[1],n[0]+l[0],n[1]+l[1])&&bez.pointOnLine2D(n[0],n[1],s[0],s[1],s[0]+h[0],s[1]+h[1])||n.length===3&&!(n[0]===s[0]&&n[1]===s[1]&&n[2]===s[2])&&bez.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],n[0]+l[0],n[1]+l[1],n[2]+l[2])&&bez.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],s[0]+h[0],s[1]+h[1],s[2]+h[2]))i.k[r].to=null,i.k[r].ti=null;if(n[0]===s[0]&&n[1]===s[1]&&l[0]===0&&l[1]===0&&h[0]===0&&h[1]===0){if(n.length===2||n[2]===s[2]&&l[2]===0&&h[2]===0)i.k[r].to=null,i.k[r].ti=null}}this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=i.k[0].s.length;this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p);for(r=0;r<p;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=addEffect}var PropertyFactory=function(){function o(a,t,r,e,n){if(t.sid)t=a.globalData.slotManager.getProp(t);var s;if(!t.k.length)s=new ValueProperty(a,t,e,n);else if(typeof t.k[0]==="number")s=new MultiDimensionalProperty(a,t,e,n);else switch(r){case 0:s=new KeyframedValueProperty(a,t,e,n);break;case 1:s=new KeyframedMultidimensionalProperty(a,t,e,n);break;default:break}if(s.effectsSequence.length)n.addDynamicProperty(s);return s}var i={getProp:o};return i}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0},iterateDynamicProperties:function o(){this._mdf=!1;var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)if(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf)this._mdf=!0},initDynamicPropertyContainer:function o(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function o(){return createTypedArray("float32",2)}return poolFactory(8,o)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(o,i){this.c=o,this.setLength(i);var a=0;while(a<i)this.v[a]=pointPool.newElement(),this.o[a]=pointPool.newElement(),this.i[a]=pointPool.newElement(),a+=1},ShapePath.prototype.setLength=function(o){while(this._maxLength<o)this.doubleArrayLength();this._length=o},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(o,i,a,t,r){var e;if(this._length=Math.max(this._length,t+1),this._length>=this._maxLength)this.doubleArrayLength();switch(a){case"v":e=this.v;break;case"i":e=this.i;break;case"o":e=this.o;break;default:e=[];break}if(!e[t]||e[t]&&!r)e[t]=pointPool.newElement();e[t][0]=o,e[t][1]=i},ShapePath.prototype.setTripleAt=function(o,i,a,t,r,e,n,s){this.setXYAt(o,i,"v",n,s),this.setXYAt(a,t,"o",n,s),this.setXYAt(r,e,"i",n,s)},ShapePath.prototype.reverse=function(){var o=new ShapePath;o.setPathData(this.c,this._length);var i=this.v,a=this.o,t=this.i,r=0;if(this.c)o.setTripleAt(i[0][0],i[0][1],t[0][0],t[0][1],a[0][0],a[0][1],0,!1),r=1;var e=this._length-1,n=this._length,s;for(s=r;s<n;s+=1)o.setTripleAt(i[e][0],i[e][1],t[e][0],t[e][1],a[e][0],a[e][1],s,!1),e-=1;return o},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function o(){return new ShapePath}function i(r){var e=r._length,n;for(n=0;n<e;n+=1)pointPool.release(r.v[n]),pointPool.release(r.i[n]),pointPool.release(r.o[n]),r.v[n]=null,r.i[n]=null,r.o[n]=null;r._length=0,r.c=!1}function a(r){var e=t.newElement(),n,s=r._length===void 0?r.v.length:r._length;e.setLength(s),e.c=r.c;for(n=0;n<s;n+=1)e.setTripleAt(r.v[n][0],r.v[n][1],r.o[n][0],r.o[n][1],r.i[n][0],r.i[n][1],n);return e}var t=poolFactory(4,o,i);return t.clone=a,t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(o){if(this._length===this._maxLength)this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2;this.shapes[this._length]=o,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var o;for(o=0;o<this._length;o+=1)shapePool.release(this.shapes[o]);this._length=0};var shapeCollectionPool=function(){var o={newShapeCollection:r,release:e},i=0,a=4,t=createSizedArray(a);function r(){var n;if(i)i-=1,n=t[i];else n=new ShapeCollection;return n}function e(n){var s,l=n._length;for(s=0;s<l;s+=1)shapePool.release(n.shapes[s]);if(n._length=0,i===a)t=pooling.double(t),a*=2;t[i]=n,i+=1}return o}(),ShapePropertyFactory=function(){var o=-999999;function i(w,u,g){var k=g.lastIndex,W,R,Q,b,S,I,C,J,F,j=this.keyframes;if(w<j[0].t-this.offsetTime)W=j[0].s[0],Q=!0,k=0;else if(w>=j[j.length-1].t-this.offsetTime)W=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],Q=!0;else{var U=k,x=j.length-1,K=!0,c,m,P;while(K){if(c=j[U],m=j[U+1],m.t-this.offsetTime>w)break;if(U<x-1)U+=1;else K=!1}if(P=this.keyframesMetadata[U]||{},Q=c.h===1,k=U,!Q){if(w>=m.t-this.offsetTime)J=1;else if(w<c.t-this.offsetTime)J=0;else{var Y;if(P.__fnct)Y=P.__fnct;else Y=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y).get,P.__fnct=Y;J=Y((w-(c.t-this.offsetTime))/(m.t-this.offsetTime-(c.t-this.offsetTime)))}R=m.s?m.s[0]:c.e[0]}W=c.s[0]}I=u._length,C=W.i[0].length,g.lastIndex=k;for(b=0;b<I;b+=1)for(S=0;S<C;S+=1)F=Q?W.i[b][S]:W.i[b][S]+(R.i[b][S]-W.i[b][S])*J,u.i[b][S]=F,F=Q?W.o[b][S]:W.o[b][S]+(R.o[b][S]-W.o[b][S])*J,u.o[b][S]=F,F=Q?W.v[b][S]:W.v[b][S]+(R.v[b][S]-W.v[b][S])*J,u.v[b][S]=F}function a(){var w=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime,k=this._caching.lastFrame;if(!(k!==o&&(k<u&&w<u||k>g&&w>g)))this._caching.lastIndex=k<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching);return this._caching.lastFrame=w,this.pv}function t(){this.paths=this.localShapeCollection}function r(w,u){if(w._length!==u._length||w.c!==u.c)return!1;var g,k=w._length;for(g=0;g<k;g+=1)if(w.v[g][0]!==u.v[g][0]||w.v[g][1]!==u.v[g][1]||w.o[g][0]!==u.o[g][0]||w.o[g][1]!==u.o[g][1]||w.i[g][0]!==u.i[g][0]||w.i[g][1]!==u.i[g][1])return!1;return!0}function e(w){if(!r(this.v,w))this.v=shapePool.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection}function n(){if(this.elem.globalData.frameId===this.frameId)return;if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var w;if(this.kf)w=this.pv;else if(this.data.ks)w=this.data.ks.k;else w=this.data.pt.k;var u,g=this.effectsSequence.length;for(u=0;u<g;u+=1)w=this.effectsSequence[u](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}function s(w,u,g){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=u,this.k=!1,this.kf=!1,this._mdf=!1;var k=g===3?u.pt.k:u.ks.k;this.v=shapePool.clone(k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=t,this.effectsSequence=[]}function l(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}s.prototype.interpolateShape=i,s.prototype.getValue=n,s.prototype.setVValue=e,s.prototype.addEffect=l;function h(w,u,g){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=g===3?u.pt.k:u.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var k=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=o,this.reset=t,this._caching={lastFrame:o,lastIndex:0},this.effectsSequence=[a.bind(this)]}h.prototype.getValue=n,h.prototype.interpolateShape=i,h.prototype.setVValue=e,h.prototype.addEffect=l;var p=function(){var w=roundCorner;function u(g,k){if(this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=k.d,this.elem=g,this.comp=g.comp,this.frameId=-1,this.initDynamicPropertyContainer(g),this.p=PropertyFactory.getProp(g,k.p,1,0,this),this.s=PropertyFactory.getProp(g,k.s,1,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertEllToPath()}return u.prototype={reset:t,getValue:function g(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertEllToPath()},convertEllToPath:function g(){var k=this.p.v[0],W=this.p.v[1],R=this.s.v[0]/2,Q=this.s.v[1]/2,b=this.d!==3,S=this.v;S.v[0][0]=k,S.v[0][1]=W-Q,S.v[1][0]=b?k+R:k-R,S.v[1][1]=W,S.v[2][0]=k,S.v[2][1]=W+Q,S.v[3][0]=b?k-R:k+R,S.v[3][1]=W,S.i[0][0]=b?k-R*w:k+R*w,S.i[0][1]=W-Q,S.i[1][0]=b?k+R:k-R,S.i[1][1]=W-Q*w,S.i[2][0]=b?k+R*w:k-R*w,S.i[2][1]=W+Q,S.i[3][0]=b?k-R:k+R,S.i[3][1]=W+Q*w,S.o[0][0]=b?k+R*w:k-R*w,S.o[0][1]=W-Q,S.o[1][0]=b?k+R:k-R,S.o[1][1]=W+Q*w,S.o[2][0]=b?k-R*w:k+R*w,S.o[2][1]=W+Q,S.o[3][0]=b?k-R:k+R,S.o[3][1]=W-Q*w}},extendPrototype([DynamicPropertyContainer],u),u}(),H=function(){function w(u,g){if(this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=u,this.comp=u.comp,this.data=g,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(u),g.sy===1)this.ir=PropertyFactory.getProp(u,g.ir,0,0,this),this.is=PropertyFactory.getProp(u,g.is,0,0.01,this),this.convertToPath=this.convertStarToPath;else this.convertToPath=this.convertPolygonToPath;if(this.pt=PropertyFactory.getProp(u,g.pt,0,0,this),this.p=PropertyFactory.getProp(u,g.p,1,0,this),this.r=PropertyFactory.getProp(u,g.r,0,degToRads,this),this.or=PropertyFactory.getProp(u,g.or,0,0,this),this.os=PropertyFactory.getProp(u,g.os,0,0.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertToPath()}return w.prototype={reset:t,getValue:function u(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertToPath()},convertStarToPath:function u(){var g=Math.floor(this.pt.v)*2,k=Math.PI*2/g,W=!0,R=this.or.v,Q=this.ir.v,b=this.os.v,S=this.is.v,I=2*Math.PI*R/(g*2),C=2*Math.PI*Q/(g*2),J,F,j,U,x=-Math.PI/2;x+=this.r.v;var K=this.data.d===3?-1:1;this.v._length=0;for(J=0;J<g;J+=1){F=W?R:Q,j=W?b:S,U=W?I:C;var c=F*Math.cos(x),m=F*Math.sin(x),P=c===0&&m===0?0:m/Math.sqrt(c*c+m*m),Y=c===0&&m===0?0:-c/Math.sqrt(c*c+m*m);c+=+this.p.v[0],m+=+this.p.v[1],this.v.setTripleAt(c,m,c-P*U*j*K,m-Y*U*j*K,c+P*U*j*K,m+Y*U*j*K,J,!0),W=!W,x+=k*K}},convertPolygonToPath:function u(){var g=Math.floor(this.pt.v),k=Math.PI*2/g,W=this.or.v,R=this.os.v,Q=2*Math.PI*W/(g*4),b,S=-Math.PI*0.5,I=this.data.d===3?-1:1;S+=this.r.v,this.v._length=0;for(b=0;b<g;b+=1){var C=W*Math.cos(S),J=W*Math.sin(S),F=C===0&&J===0?0:J/Math.sqrt(C*C+J*J),j=C===0&&J===0?0:-C/Math.sqrt(C*C+J*J);C+=+this.p.v[0],J+=+this.p.v[1],this.v.setTripleAt(C,J,C-F*Q*R*I,J-j*Q*R*I,C+F*Q*R*I,J+j*Q*R*I,b,!0),S+=k*I}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],w),w}(),f=function(){function w(u,g){if(this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=u,this.comp=u.comp,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,g.p,1,0,this),this.s=PropertyFactory.getProp(u,g.s,1,0,this),this.r=PropertyFactory.getProp(u,g.r,0,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertRectToPath()}return w.prototype={convertRectToPath:function u(){var g=this.p.v[0],k=this.p.v[1],W=this.s.v[0]/2,R=this.s.v[1]/2,Q=bmMin(W,R,this.r.v),b=Q*(1-roundCorner);if(this.v._length=0,this.d===2||this.d===1)if(this.v.setTripleAt(g+W,k-R+Q,g+W,k-R+Q,g+W,k-R+b,0,!0),this.v.setTripleAt(g+W,k+R-Q,g+W,k+R-b,g+W,k+R-Q,1,!0),Q!==0)this.v.setTripleAt(g+W-Q,k+R,g+W-Q,k+R,g+W-b,k+R,2,!0),this.v.setTripleAt(g-W+Q,k+R,g-W+b,k+R,g-W+Q,k+R,3,!0),this.v.setTripleAt(g-W,k+R-Q,g-W,k+R-Q,g-W,k+R-b,4,!0),this.v.setTripleAt(g-W,k-R+Q,g-W,k-R+b,g-W,k-R+Q,5,!0),this.v.setTripleAt(g-W+Q,k-R,g-W+Q,k-R,g-W+b,k-R,6,!0),this.v.setTripleAt(g+W-Q,k-R,g+W-b,k-R,g+W-Q,k-R,7,!0);else this.v.setTripleAt(g-W,k+R,g-W+b,k+R,g-W,k+R,2),this.v.setTripleAt(g-W,k-R,g-W,k-R+b,g-W,k-R,3);else if(this.v.setTripleAt(g+W,k-R+Q,g+W,k-R+b,g+W,k-R+Q,0,!0),Q!==0)this.v.setTripleAt(g+W-Q,k-R,g+W-Q,k-R,g+W-b,k-R,1,!0),this.v.setTripleAt(g-W+Q,k-R,g-W+b,k-R,g-W+Q,k-R,2,!0),this.v.setTripleAt(g-W,k-R+Q,g-W,k-R+Q,g-W,k-R+b,3,!0),this.v.setTripleAt(g-W,k+R-Q,g-W,k+R-b,g-W,k+R-Q,4,!0),this.v.setTripleAt(g-W+Q,k+R,g-W+Q,k+R,g-W+b,k+R,5,!0),this.v.setTripleAt(g+W-Q,k+R,g+W-b,k+R,g+W-Q,k+R,6,!0),this.v.setTripleAt(g+W,k+R-Q,g+W,k+R-Q,g+W,k+R-b,7,!0);else this.v.setTripleAt(g-W,k-R,g-W+b,k-R,g-W,k-R,1,!0),this.v.setTripleAt(g-W,k+R,g-W,k+R-b,g-W,k+R,2,!0),this.v.setTripleAt(g+W,k+R,g+W-b,k+R,g+W,k+R,3,!0)},getValue:function u(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertRectToPath()},reset:t},extendPrototype([DynamicPropertyContainer],w),w}();function y(w,u,g){var k;if(g===3||g===4){var W=g===3?u.pt:u.ks,R=W.k;if(R.length)k=new h(w,u,g);else k=new s(w,u,g)}else if(g===5)k=new f(w,u);else if(g===6)k=new p(w,u);else if(g===7)k=new H(w,u);if(k.k)w.addDynamicProperty(k);return k}function z(){return s}function v(){return h}var q={};return q.getShapeProp=y,q.getConstructorFunction=z,q.getKeyframedConstructorFunction=v,q}();/*!
|
|
3
3
|
Transformation Matrix v2.0
|
|
4
4
|
(c) Epistemex 2014-2015
|
|
@@ -6,11 +6,11 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6
6
|
By Ken Fyrstenberg
|
|
7
7
|
Contributions by leeoniya.
|
|
8
8
|
License: MIT, header required.
|
|
9
|
-
*/var Matrix=function(){var{cos:o,sin:i,tan:a,round:t}=Math;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(m,-P,0,0,P,m,0,0,0,0,1,0,0,0,0,1)}function n(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(1,0,0,0,0,m,-P,0,0,P,m,0,0,0,0,1)}function s(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(m,0,P,0,0,1,0,0,-P,0,m,0,0,0,0,1)}function l(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(m,-P,0,0,P,m,0,0,0,0,1,0,0,0,0,1)}function h(c,m){return this._t(1,m,c,1,0,0)}function p(c,m){return this.shear(a(c),a(m))}function H(c,m){var P=o(m),Y=i(m);return this._t(P,Y,0,0,-Y,P,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(c),1,0,0,0,0,1,0,0,0,0,1)._t(P,-Y,0,0,Y,P,0,0,0,0,1,0,0,0,0,1)}function f(c,m,P){if(!P&&P!==0)P=1;if(c===1&&m===1&&P===1)return this;return this._t(c,0,0,0,0,m,0,0,0,0,P,0,0,0,0,1)}function y(c,m,P,Y,A,M,E,oo,ao,co,yo,Vo,Zo,po,Ho,so){return this.props[0]=c,this.props[1]=m,this.props[2]=P,this.props[3]=Y,this.props[4]=A,this.props[5]=M,this.props[6]=E,this.props[7]=oo,this.props[8]=ao,this.props[9]=co,this.props[10]=yo,this.props[11]=Vo,this.props[12]=Zo,this.props[13]=po,this.props[14]=Ho,this.props[15]=so,this}function z(c,m,P){if(P=P||0,c!==0||m!==0||P!==0)return this._t(1,0,0,0,0,1,0,0,0,0,1,0,c,m,P,1);return this}function v(c,m,P,Y,A,M,E,oo,ao,co,yo,Vo,Zo,po,Ho,so){var N=this.props;if(c===1&&m===0&&P===0&&Y===0&&A===0&&M===1&&E===0&&oo===0&&ao===0&&co===0&&yo===1&&Vo===0)return N[12]=N[12]*c+N[15]*Zo,N[13]=N[13]*M+N[15]*po,N[14]=N[14]*yo+N[15]*Ho,N[15]*=so,this._identityCalculated=!1,this;var uo=N[0],di=N[1],ai=N[2],Mo=N[3],ti=N[4],ri=N[5],$o=N[6],ci=N[7],hi=N[8],Xo=N[9],ui=N[10],Ao=N[11],mi=N[12],aa=N[13],ta=N[14],ra=N[15];return N[0]=uo*c+di*A+ai*ao+Mo*Zo,N[1]=uo*m+di*M+ai*co+Mo*po,N[2]=uo*P+di*E+ai*yo+Mo*Ho,N[3]=uo*Y+di*oo+ai*Vo+Mo*so,N[4]=ti*c+ri*A+$o*ao+ci*Zo,N[5]=ti*m+ri*M+$o*co+ci*po,N[6]=ti*P+ri*E+$o*yo+ci*Ho,N[7]=ti*Y+ri*oo+$o*Vo+ci*so,N[8]=hi*c+Xo*A+ui*ao+Ao*Zo,N[9]=hi*m+Xo*M+ui*co+Ao*po,N[10]=hi*P+Xo*E+ui*yo+Ao*Ho,N[11]=hi*Y+Xo*oo+ui*Vo+Ao*so,N[12]=mi*c+aa*A+ta*ao+ra*Zo,N[13]=mi*m+aa*M+ta*co+ra*po,N[14]=mi*P+aa*E+ta*yo+ra*Ho,N[15]=mi*Y+aa*oo+ta*Vo+ra*so,this._identityCalculated=!1,this}function q(c){var m=c.props;return this.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15])}function w(){if(!this._identityCalculated)this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0;return this._identity}function u(c){var m=0;while(m<16){if(c.props[m]!==this.props[m])return!1;m+=1}return!0}function g(c){var m;for(m=0;m<16;m+=1)c.props[m]=this.props[m];return c}function k(c){var m;for(m=0;m<16;m+=1)this.props[m]=c[m]}function W(c,m,P){return{x:c*this.props[0]+m*this.props[4]+P*this.props[8]+this.props[12],y:c*this.props[1]+m*this.props[5]+P*this.props[9]+this.props[13],z:c*this.props[2]+m*this.props[6]+P*this.props[10]+this.props[14]}}function R(c,m,P){return c*this.props[0]+m*this.props[4]+P*this.props[8]+this.props[12]}function Q(c,m,P){return c*this.props[1]+m*this.props[5]+P*this.props[9]+this.props[13]}function b(c,m,P){return c*this.props[2]+m*this.props[6]+P*this.props[10]+this.props[14]}function S(){var c=this.props[0]*this.props[5]-this.props[1]*this.props[4],m=this.props[5]/c,P=-this.props[1]/c,Y=-this.props[4]/c,A=this.props[0]/c,M=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/c,E=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/c,oo=new Matrix;return oo.props[0]=m,oo.props[1]=P,oo.props[4]=Y,oo.props[5]=A,oo.props[12]=M,oo.props[13]=E,oo}function I(c){var m=this.getInverseMatrix();return m.applyToPointArray(c[0],c[1],c[2]||0)}function C(c){var m,P=c.length,Y=[];for(m=0;m<P;m+=1)Y[m]=I(c[m]);return Y}function J(c,m,P){var Y=createTypedArray("float32",6);if(this.isIdentity())Y[0]=c[0],Y[1]=c[1],Y[2]=m[0],Y[3]=m[1],Y[4]=P[0],Y[5]=P[1];else{var A=this.props[0],M=this.props[1],E=this.props[4],oo=this.props[5],ao=this.props[12],co=this.props[13];Y[0]=c[0]*A+c[1]*E+ao,Y[1]=c[0]*M+c[1]*oo+co,Y[2]=m[0]*A+m[1]*E+ao,Y[3]=m[0]*M+m[1]*oo+co,Y[4]=P[0]*A+P[1]*E+ao,Y[5]=P[0]*M+P[1]*oo+co}return Y}function F(c,m,P){var Y;if(this.isIdentity())Y=[c,m,P];else Y=[c*this.props[0]+m*this.props[4]+P*this.props[8]+this.props[12],c*this.props[1]+m*this.props[5]+P*this.props[9]+this.props[13],c*this.props[2]+m*this.props[6]+P*this.props[10]+this.props[14]];return Y}function j(c,m){if(this.isIdentity())return c+","+m;var P=this.props;return Math.round((c*P[0]+m*P[4]+P[12])*100)/100+","+Math.round((c*P[1]+m*P[5]+P[13])*100)/100}function U(){var c=0,m=this.props,P="matrix3d(",Y=1e4;while(c<16)P+=t(m[c]*Y)/Y,P+=c===15?")":",",c+=1;return P}function x(c){var m=1e4;if(c<0.000001&&c>0||c>-0.000001&&c<0)return t(c*m)/m;return c}function K(){var c=this.props,m=x(c[0]),P=x(c[1]),Y=x(c[4]),A=x(c[5]),M=x(c[12]),E=x(c[13]);return"matrix("+m+","+P+","+Y+","+A+","+M+","+E+")"}return function(){this.reset=r,this.rotate=e,this.rotateX=n,this.rotateY=s,this.rotateZ=l,this.skew=p,this.skewFromAxis=H,this.shear=h,this.scale=f,this.setTransform=y,this.translate=z,this.transform=v,this.multiply=q,this.applyToPoint=W,this.applyToX=R,this.applyToY=Q,this.applyToZ=b,this.applyToPointArray=F,this.applyToTriplePoints=J,this.applyToPointStringified=j,this.toCSS=U,this.to2dCSS=K,this.clone=g,this.cloneFromProps=k,this.equals=u,this.inversePoints=C,this.inversePoint=I,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(o){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(o)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(o){setLocationHref(o)}function searchAnimations(){if(standalone===!0)animationManager.searchAnimations(animationData,standalone,renderer);else animationManager.searchAnimations()}function setSubframeRendering(o){setSubframeEnabled(o)}function setPrefix(o){setIdPrefix(o)}function loadAnimation(o){if(standalone===!0)o.animationData=JSON.parse(animationData);return animationManager.loadAnimation(o)}function setQuality(o){if(typeof o==="string")switch(o){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else if(!isNaN(o)&&o>1)setDefaultCurveSegments(o);if(getDefaultCurveSegments()>=50)roundValues(!1);else roundValues(!0)}function inBrowser(){return typeof navigator!=="undefined"}function installPlugin(o,i){if(o==="expressions")setExpressionsPlugin(i)}function getFactory(o){switch(o){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){if(document.readyState==="complete")clearInterval(readyStateCheckInterval),searchAnimations()}function getQueryVariable(o){var i=queryString.split("&");for(var a=0;a<i.length;a+=1){var t=i[a].split("=");if(decodeURIComponent(t[0])==o)return decodeURIComponent(t[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{if(!((typeof Ci==="undefined"?"undefined":_typeof$3(Ci))==="object"&&typeof Bi!=="undefined")&&!(typeof define==="function"&&define.amd))window.bodymovin=lottie}catch(o){}var ShapeModifiers=function(){var o={},i={};o.registerModifier=a,o.getModifier=t;function a(r,e){if(!i[r])i[r]=e}function t(r,e,n){return new i[r](e,n)}return o}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(o){if(!this.closed){o.sh.container.addDynamicProperty(o.sh);var i={shape:o.sh,data:o,localShapeCollection:shapeCollectionPool.newShapeCollection()};if(this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated)o.setAsAnimated()}},ShapeModifier.prototype.init=function(o,i){if(this.shapes=[],this.elem=o,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId)return;this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties()},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(o,i){this.s=PropertyFactory.getProp(o,i.s,0,0.01,this),this.e=PropertyFactory.getProp(o,i.e,0,0.01,this),this.o=PropertyFactory.getProp(o,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(o){o.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(o,i,a,t,r){var e=[];if(i<=1)e.push({s:o,e:i});else if(o>=1)e.push({s:o-1,e:i-1});else e.push({s:o,e:1}),e.push({s:0,e:i-1});var n=[],s,l=e.length,h;for(s=0;s<l;s+=1)if(h=e[s],!(h.e*r<t||h.s*r>t+a)){var p,H;if(h.s*r<=t)p=0;else p=(h.s*r-t)/a;if(h.e*r>=t+a)H=1;else H=(h.e*r-t)/a;n.push([p,H])}if(!n.length)n.push([0,0]);return n},TrimModifier.prototype.releasePathsData=function(o){var i,a=o.length;for(i=0;i<a;i+=1)segmentsLengthPool.release(o[i]);return o.length=0,o},TrimModifier.prototype.processShapes=function(o){var i,a;if(this._mdf||o){var t=this.o.v%360/360;if(t<0)t+=1;if(this.s.v>1)i=1+t;else if(this.s.v<0)i=0+t;else i=this.s.v+t;if(this.e.v>1)a=1+t;else if(this.e.v<0)a=0+t;else a=this.e.v+t;if(i>a){var r=i;i=a,a=r}i=Math.round(i*1e4)*0.0001,a=Math.round(a*1e4)*0.0001,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var e,n,s=this.shapes.length,l,h,p,H,f,y=0;if(a===i){for(n=0;n<s;n+=1)if(this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf)this.shapes[n].pathsData.length=0}else if(!(a===1&&i===0||a===0&&i===1)){var z=[],v,q;for(n=0;n<s;n+=1)if(v=this.shapes[n],!v.shape._mdf&&!this._mdf&&!o&&this.m!==2)v.shape.paths=v.localShapeCollection;else{if(e=v.shape.paths,h=e._length,f=0,!v.shape._mdf&&v.pathsData.length)f=v.totalShapeLength;else{p=this.releasePathsData(v.pathsData);for(l=0;l<h;l+=1)H=bez.getSegmentsLength(e.shapes[l]),p.push(H),f+=H.totalLength;v.totalShapeLength=f,v.pathsData=p}y+=f,v.shape._mdf=!0}var w=i,u=a,g=0,k;for(n=s-1;n>=0;n-=1)if(v=this.shapes[n],v.shape._mdf){if(q=v.localShapeCollection,q.releaseShapes(),this.m===2&&s>1)k=this.calculateShapeEdges(i,a,v.totalShapeLength,g,y),g+=v.totalShapeLength;else k=[[w,u]];h=k.length;for(l=0;l<h;l+=1){if(w=k[l][0],u=k[l][1],z.length=0,u<=1)z.push({s:v.totalShapeLength*w,e:v.totalShapeLength*u});else if(w>=1)z.push({s:v.totalShapeLength*(w-1),e:v.totalShapeLength*(u-1)});else z.push({s:v.totalShapeLength*w,e:v.totalShapeLength}),z.push({s:0,e:v.totalShapeLength*(u-1)});var W=this.addShapes(v,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var R=v.shape.paths.shapes[v.shape.paths._length-1];if(R.c){var Q=W.pop();this.addPaths(W,q),W=this.addShapes(v,z[1],Q)}else this.addPaths(W,q),W=this.addShapes(v,z[1])}this.addPaths(W,q)}}v.shape.paths=q}}else if(this._mdf)for(n=0;n<s;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0},TrimModifier.prototype.addPaths=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i.addShape(o[a])},TrimModifier.prototype.addSegment=function(o,i,a,t,r,e,n){if(r.setXYAt(i[0],i[1],"o",e),r.setXYAt(a[0],a[1],"i",e+1),n)r.setXYAt(o[0],o[1],"v",e);r.setXYAt(t[0],t[1],"v",e+1)},TrimModifier.prototype.addSegmentFromArray=function(o,i,a,t){if(i.setXYAt(o[1],o[5],"o",a),i.setXYAt(o[2],o[6],"i",a+1),t)i.setXYAt(o[0],o[4],"v",a);i.setXYAt(o[3],o[7],"v",a+1)},TrimModifier.prototype.addShapes=function(o,i,a){var t=o.pathsData,r=o.shape.paths.shapes,e,n=o.shape.paths._length,s,l,h=0,p,H,f,y,z=[],v,q=!0;if(!a)a=shapePool.newElement(),H=0,v=0;else H=a._length,v=a._length;z.push(a);for(e=0;e<n;e+=1){f=t[e].lengths,a.c=r[e].c,l=r[e].c?f.length:f.length+1;for(s=1;s<l;s+=1)if(p=f[s-1],h+p.addedLength<i.s)h+=p.addedLength,a.c=!1;else if(h>i.e){a.c=!1;break}else{if(i.s<=h&&i.e>=h+p.addedLength)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[s],r[e].v[s],a,H,q),q=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[s],r[e].o[s-1],r[e].i[s],(i.s-h)/p.addedLength,(i.e-h)/p.addedLength,f[s-1]),this.addSegmentFromArray(y,a,H,q),q=!1,a.c=!1;h+=p.addedLength,H+=1}if(r[e].c&&f.length){if(p=f[s-1],h<=i.e){var w=f[s-1].addedLength;if(i.s<=h&&i.e>=h+w)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[0],r[e].v[0],a,H,q),q=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[0],r[e].o[s-1],r[e].i[0],(i.s-h)/w,(i.e-h)/w,f[s-1]),this.addSegmentFromArray(y,a,H,q),q=!1,a.c=!1}else a.c=!1;h+=p.addedLength,H+=1}if(a._length)a.setXYAt(a.v[v][0],a.v[v][1],"i",v),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1);if(h>i.e)break;if(e<n-1)a=shapePool.newElement(),q=!0,z.push(a),H=0}return z};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(o,i){var a=i/100,t=[0,0],r=o._length,e=0;for(e=0;e<r;e+=1)t[0]+=o.v[e][0],t[1]+=o.v[e][1];t[0]/=r,t[1]/=r;var n=shapePool.newElement();n.c=o.c;var s,l,h,p,H,f;for(e=0;e<r;e+=1)s=o.v[e][0]+(t[0]-o.v[e][0])*a,l=o.v[e][1]+(t[1]-o.v[e][1])*a,h=o.o[e][0]+(t[0]-o.o[e][0])*-a,p=o.o[e][1]+(t[1]-o.o[e][1])*-a,H=o.i[e][0]+(t[0]-o.i[e][0])*-a,f=o.i[e][1]+(t[1]-o.i[e][1])*-a,n.setTripleAt(s,l,h,p,H,f,e);return n},PuckerAndBloatModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};var TransformPropertyFactory=function(){var o=[0,0];function i(l){var h=this._mdf;if(this.iterateDynamicProperties(),this._mdf=this._mdf||h,this.a)l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.s)l.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk)l.skewFromAxis(-this.sk.v,this.sa.v);if(this.r)l.rotate(-this.r.v);else l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.data.p.s)if(this.data.p.z)l.translate(this.px.v,this.py.v,-this.pz.v);else l.translate(this.px.v,this.py.v,0);else l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(l){if(this.elem.globalData.frameId===this.frameId)return;if(this._isDirty)this.precalculateMatrix(),this._isDirty=!1;if(this.iterateDynamicProperties(),this._mdf||l){var h;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1)this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.appliedTransformations<2)this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk&&this.appliedTransformations<3)this.v.skewFromAxis(-this.sk.v,this.sa.v);if(this.r&&this.appliedTransformations<4)this.v.rotate(-this.r.v);else if(!this.r&&this.appliedTransformations<4)this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.autoOriented){var p,H;if(h=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t)p=this.p.getValueAtTime((this.p.keyframes[0].t+0.01)/h,0),H=this.p.getValueAtTime(this.p.keyframes[0].t/h,0);else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t)p=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/h,0),H=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-0.05)/h,0);else p=this.p.pv,H=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-0.01)/h,this.p.offsetTime);else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){p=[],H=[];var f=this.px,y=this.py;if(f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t)p[0]=f.getValueAtTime((f.keyframes[0].t+0.01)/h,0),p[1]=y.getValueAtTime((y.keyframes[0].t+0.01)/h,0),H[0]=f.getValueAtTime(f.keyframes[0].t/h,0),H[1]=y.getValueAtTime(y.keyframes[0].t/h,0);else if(f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t)p[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/h,0),p[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/h,0),H[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-0.01)/h,0),H[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-0.01)/h,0);else p=[f.pv,y.pv],H[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-0.01)/h,f.offsetTime),H[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-0.01)/h,y.offsetTime)}else H=o,p=H;this.v.rotate(-Math.atan2(p[1]-H[1],p[0]-H[0]))}if(this.data.p&&this.data.p.s)if(this.data.p.z)this.v.translate(this.px.v,this.py.v,-this.pz.v);else this.v.translate(this.px.v,this.py.v,0);else this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}function t(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;if(this.r){if(!this.r.effectsSequence.length)this.pre.rotate(-this.r.v),this.appliedTransformations=4}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length)this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4}function r(){}function e(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function n(l,h,p){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=h,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(p||l),h.p&&h.p.s){if(this.px=PropertyFactory.getProp(l,h.p.x,0,0,this),this.py=PropertyFactory.getProp(l,h.p.y,0,0,this),h.p.z)this.pz=PropertyFactory.getProp(l,h.p.z,0,0,this)}else this.p=PropertyFactory.getProp(l,h.p||{k:[0,0,0]},1,0,this);if(h.rx){if(this.rx=PropertyFactory.getProp(l,h.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,h.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,h.rz,0,degToRads,this),h.or.k[0].ti){var H,f=h.or.k.length;for(H=0;H<f;H+=1)h.or.k[H].to=null,h.or.k[H].ti=null}this.or=PropertyFactory.getProp(l,h.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,h.r||{k:0},0,degToRads,this);if(h.sk)this.sk=PropertyFactory.getProp(l,h.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,h.sa,0,degToRads,this);if(this.a=PropertyFactory.getProp(l,h.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,h.s||{k:[100,100,100]},1,0.01,this),h.o)this.o=PropertyFactory.getProp(l,h.o,0,0.01,l);else this.o={_mdf:!1,v:1};if(this._isDirty=!0,!this.dynamicProperties.length)this.getValue(!0)}n.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:t,autoOrient:r},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=e,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function s(l,h,p){return new n(l,h,p)}return{getTransformProperty:s}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(o,i){if(this.getValue=this.processKeys,this.c=PropertyFactory.getProp(o,i.c,0,null,this),this.o=PropertyFactory.getProp(o,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(o,i.tr,this),this.so=PropertyFactory.getProp(o,i.tr.so,0,0.01,this),this.eo=PropertyFactory.getProp(o,i.tr.eo,0,0.01,this),this.data=i,!this.dynamicProperties.length)this.getValue(!0);this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(o,i,a,t,r,e){var n=e?-1:1,s=t.s.v[0]+(1-t.s.v[0])*(1-r),l=t.s.v[1]+(1-t.s.v[1])*(1-r);o.translate(t.p.v[0]*n*r,t.p.v[1]*n*r,t.p.v[2]),i.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),i.rotate(-t.r.v*n*r),i.translate(t.a.v[0],t.a.v[1],t.a.v[2]),a.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),a.scale(e?1/s:s,e?1/l:l),a.translate(t.a.v[0],t.a.v[1],t.a.v[2])},RepeaterModifier.prototype.init=function(o,i,a,t){this.elem=o,this.arr=i,this.pos=a,this.elemsData=t,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i[a]);while(a>0)a-=1,this._elements.unshift(i[a]);if(this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i]._processed=!1,o[i].ty==="gr")this.resetElements(o[i].it)},RepeaterModifier.prototype.cloneElements=function(o){var i=JSON.parse(JSON.stringify(o));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]._render=i,o[a].ty==="gr")this.changeGroupRender(o[a].it,i)},RepeaterModifier.prototype.processShapes=function(o){var i,a,t,r,e,n=!1;if(this._mdf||o){var s=Math.ceil(this.c.v);if(this._groups.length<s){while(this._groups.length<s){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}e=0;var h;for(t=0;t<=this._groups.length-1;t+=1){if(h=e<s,this._groups[t]._render=h,this.changeGroupRender(this._groups[t].it,h),!h){var p=this.elemsData[t].it,H=p[p.length-1];if(H.transform.op.v!==0)H.transform.op._mdf=!0,H.transform.op.v=0;else H.transform.op._mdf=!1}e+=1}this._currentCopies=s;var f=this.o.v,y=f%1,z=f>0?Math.floor(f):Math.ceil(f),v=this.pMatrix.props,q=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(f>0){while(u<z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),u+=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),u+=y}else if(f<0){while(u>z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),u-=y}t=this.data.m===1?0:this._currentCopies-1,r=this.data.m===1?1:-1,e=this._currentCopies;var g,k;while(e){if(i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,k=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(t/(this._currentCopies-1)),u!==0){if(t!==0&&r===1||t!==this._currentCopies-1&&r===-1)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1);this.matrix.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]);for(g=0;g<k;g+=1)a[g]=this.matrix.props[g];this.matrix.reset()}else{this.matrix.reset();for(g=0;g<k;g+=1)a[g]=this.matrix.props[g]}u+=1,e-=1,t+=r}}else{e=this._currentCopies,t=0,r=1;while(e)i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,e-=1,t+=r}return n},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(o,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(o,i){var a=shapePool.newElement();a.c=o.c;var t,r=o._length,e,n,s,l,h,p,H=0,f,y,z,v,q,w;for(t=0;t<r;t+=1)if(e=o.v[t],s=o.o[t],n=o.i[t],e[0]===s[0]&&e[1]===s[1]&&e[0]===n[0]&&e[1]===n[1])if((t===0||t===r-1)&&!o.c)a.setTripleAt(e[0],e[1],s[0],s[1],n[0],n[1],H),H+=1;else{if(t===0)l=o.v[r-1];else l=o.v[t-1];if(h=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),p=h?Math.min(h/2,i)/h:0,q=e[0]+(l[0]-e[0])*p,f=q,w=e[1]-(e[1]-l[1])*p,y=w,z=f-(f-e[0])*roundCorner,v=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,q,w,H),H+=1,t===r-1)l=o.v[0];else l=o.v[t+1];h=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),p=h?Math.min(h/2,i)/h:0,z=e[0]+(l[0]-e[0])*p,f=z,v=e[1]+(l[1]-e[1])*p,y=v,q=f-(f-e[0])*roundCorner,w=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,q,w,H),H+=1}else a.setTripleAt(o.v[t][0],o.v[t][1],o.o[t][0],o.o[t][1],o.i[t][0],o.i[t][1],H),H+=1;return a},RoundCornersModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.rd.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function floatEqual(o,i){return Math.abs(o-i)*1e5<=Math.min(Math.abs(o),Math.abs(i))}function floatZero(o){return Math.abs(o)<=0.00001}function lerp(o,i,a){return o*(1-a)+i*a}function lerpPoint(o,i,a){return[lerp(o[0],i[0],a),lerp(o[1],i[1],a)]}function quadRoots(o,i,a){if(o===0)return[];var t=i*i-4*o*a;if(t<0)return[];var r=-i/(2*o);if(t===0)return[r];var e=Math.sqrt(t)/(2*o);return[r-e,r+e]}function polynomialCoefficients(o,i,a,t){return[-o+3*i-3*a+t,3*o-6*i+3*a,-3*o+3*i,o]}function singlePoint(o){return new PolynomialBezier(o,o,o,o,!1)}function PolynomialBezier(o,i,a,t,r){if(r&&pointEqual(o,i))i=lerpPoint(o,t,0.3333333333333333);if(r&&pointEqual(a,t))a=lerpPoint(o,t,0.6666666666666666);var e=polynomialCoefficients(o[0],i[0],a[0],t[0]),n=polynomialCoefficients(o[1],i[1],a[1],t[1]);this.a=[e[0],n[0]],this.b=[e[1],n[1]],this.c=[e[2],n[2]],this.d=[e[3],n[3]],this.points=[o,i,a,t]}PolynomialBezier.prototype.point=function(o){return[((this.a[0]*o+this.b[0])*o+this.c[0])*o+this.d[0],((this.a[1]*o+this.b[1])*o+this.c[1])*o+this.d[1]]},PolynomialBezier.prototype.derivative=function(o){return[(3*o*this.a[0]+2*this.b[0])*o+this.c[0],(3*o*this.a[1]+2*this.b[1])*o+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(o){var i=this.derivative(o);return Math.atan2(i[1],i[0])},PolynomialBezier.prototype.normalAngle=function(o){var i=this.derivative(o);return Math.atan2(i[0],i[1])},PolynomialBezier.prototype.inflectionPoints=function(){var o=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(o))return[];var i=-0.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/o,a=i*i-0.3333333333333333*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/o;if(a<0)return[];var t=Math.sqrt(a);if(floatZero(t)){if(t>0&&t<1)return[i];return[]}return[i-t,i+t].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(o){if(o<=0)return[singlePoint(this.points[0]),this];if(o>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],o),a=lerpPoint(this.points[1],this.points[2],o),t=lerpPoint(this.points[2],this.points[3],o),r=lerpPoint(i,a,o),e=lerpPoint(a,t,o),n=lerpPoint(r,e,o);return[new PolynomialBezier(this.points[0],i,r,n,!0),new PolynomialBezier(n,e,t,this.points[3],!0)]};function extrema(o,i){var a=o.points[0][i],t=o.points[o.points.length-1][i];if(a>t){var r=t;t=a,a=r}var e=quadRoots(3*o.a[i],2*o.b[i],o.c[i]);for(var n=0;n<e.length;n+=1)if(e[n]>0&&e[n]<1){var s=o.point(e[n])[i];if(s<a)a=s;else if(s>t)t=s}return{min:a,max:t}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var o=this.bounds();return{left:o.x.min,right:o.x.max,top:o.y.min,bottom:o.y.max,width:o.x.max-o.x.min,height:o.y.max-o.y.min,cx:(o.x.max+o.x.min)/2,cy:(o.y.max+o.y.min)/2}};function intersectData(o,i,a){var t=o.boundingBox();return{cx:t.cx,cy:t.cy,width:t.width,height:t.height,bez:o,t:(i+a)/2,t1:i,t2:a}}function splitData(o){var i=o.bez.split(0.5);return[intersectData(i[0],o.t1,o.t),intersectData(i[1],o.t,o.t2)]}function boxIntersect(o,i){return Math.abs(o.cx-i.cx)*2<o.width+i.width&&Math.abs(o.cy-i.cy)*2<o.height+i.height}function intersectsImpl(o,i,a,t,r,e){if(!boxIntersect(o,i))return;if(a>=e||o.width<=t&&o.height<=t&&i.width<=t&&i.height<=t){r.push([o.t,i.t]);return}var n=splitData(o),s=splitData(i);intersectsImpl(n[0],s[0],a+1,t,r,e),intersectsImpl(n[0],s[1],a+1,t,r,e),intersectsImpl(n[1],s[0],a+1,t,r,e),intersectsImpl(n[1],s[1],a+1,t,r,e)}PolynomialBezier.prototype.intersections=function(o,i,a){if(i===void 0)i=2;if(a===void 0)a=7;var t=[];return intersectsImpl(intersectData(this,0,1),intersectData(o,0,1),0,i,t,a),t},PolynomialBezier.shapeSegment=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[i],o.o[i],o.i[a],o.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[a],o.i[a],o.o[i],o.v[i],!0)};function crossProduct(o,i){return[o[1]*i[2]-o[2]*i[1],o[2]*i[0]-o[0]*i[2],o[0]*i[1]-o[1]*i[0]]}function lineIntersection(o,i,a,t){var r=[o[0],o[1],1],e=[i[0],i[1],1],n=[a[0],a[1],1],s=[t[0],t[1],1],l=crossProduct(crossProduct(r,e),crossProduct(n,s));if(floatZero(l[2]))return null;return[l[0]/l[2],l[1]/l[2]]}function polarOffset(o,i,a){return[o[0]+Math.cos(i)*a,o[1]-Math.sin(i)*a]}function pointDistance(o,i){return Math.hypot(o[0]-i[0],o[1]-i[1])}function pointEqual(o,i){return floatEqual(o[0],i[0])&&floatEqual(o[1],i[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(o,i.s,0,null,this),this.frequency=PropertyFactory.getProp(o,i.r,0,null,this),this.pointsType=PropertyFactory.getProp(o,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(o,i,a,t,r,e,n){var s=a-Math.PI/2,l=a+Math.PI/2,h=i[0]+Math.cos(a)*t*r,p=i[1]-Math.sin(a)*t*r;o.setTripleAt(h,p,h+Math.cos(s)*e,p-Math.sin(s)*e,h+Math.cos(l)*n,p-Math.sin(l)*n,o.length())}function getPerpendicularVector(o,i){var a=[i[0]-o[0],i[1]-o[1]],t=-Math.PI*0.5,r=[Math.cos(t)*a[0]-Math.sin(t)*a[1],Math.sin(t)*a[0]+Math.cos(t)*a[1]];return r}function getProjectingAngle(o,i){var a=i===0?o.length()-1:i-1,t=(i+1)%o.length(),r=o.v[a],e=o.v[t],n=getPerpendicularVector(r,e);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(o,i,a,t,r,e,n){var s=getProjectingAngle(i,a),l=i.v[a%i._length],h=i.v[a===0?i._length-1:a-1],p=i.v[(a+1)%i._length],H=e===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=e===2?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(o,i.v[a%i._length],s,n,t,f/((r+1)*2),H/((r+1)*2),e)}function zigZagSegment(o,i,a,t,r,e){for(var n=0;n<t;n+=1){var s=(n+1)/(t+1),l=r===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,h=i.normalAngle(s),p=i.point(s);setPoint(o,p,h,e,a,l/((t+1)*2),l/((t+1)*2),r),e=-e}return e}ZigZagModifier.prototype.processPath=function(o,i,a,t){var r=o._length,e=shapePool.newElement();if(e.c=o.c,!o.c)r-=1;if(r===0)return e;var n=-1,s=PolynomialBezier.shapeSegment(o,0);zigZagCorner(e,o,0,i,a,t,n);for(var l=0;l<r;l+=1){if(n=zigZagSegment(e,s,i,a,t,-n),l===r-1&&!o.c)s=null;else s=PolynomialBezier.shapeSegment(o,(l+1)%r);zigZagCorner(e,o,l+1,i,a,t,n)}return e},ZigZagModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amplitude.v,s=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(n!==0){var h,p;for(a=0;a<t;a+=1){if(h=this.shapes[a],p=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){p.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)p.addShape(this.processPath(i[r],n,s,l))}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function linearOffset(o,i,a){var t=Math.atan2(i[0]-o[0],i[1]-o[1]);return[polarOffset(o,t,a),polarOffset(i,t,a)]}function offsetSegment(o,i){var a,t,r,e,n,s,l;l=linearOffset(o.points[0],o.points[1],i),a=l[0],t=l[1],l=linearOffset(o.points[1],o.points[2],i),r=l[0],e=l[1],l=linearOffset(o.points[2],o.points[3],i),n=l[0],s=l[1];var h=lineIntersection(a,t,r,e);if(h===null)h=t;var p=lineIntersection(n,s,r,e);if(p===null)p=n;return new PolynomialBezier(a,h,p,s)}function joinLines(o,i,a,t,r){var e=i.points[3],n=a.points[0];if(t===3)return e;if(pointEqual(e,n))return e;if(t===2){var s=-i.tangentAngle(1),l=-a.tangentAngle(0)+Math.PI,h=lineIntersection(e,polarOffset(e,s+Math.PI/2,100),n,polarOffset(n,s+Math.PI/2,100)),p=h?pointDistance(h,e):pointDistance(e,n)/2,H=polarOffset(e,s,2*p*roundCorner);return o.setXYAt(H[0],H[1],"o",o.length()-1),H=polarOffset(n,l,2*p*roundCorner),o.setTripleAt(n[0],n[1],n[0],n[1],H[0],H[1],o.length()),n}var f=pointEqual(e,i.points[2])?i.points[0]:i.points[2],y=pointEqual(n,a.points[1])?a.points[3]:a.points[1],z=lineIntersection(f,e,n,y);if(z&&pointDistance(z,e)<r)return o.setTripleAt(z[0],z[1],z[0],z[1],z[0],z[1],o.length()),z;return e}function getIntersection(o,i){var a=o.intersections(i);if(a.length&&floatEqual(a[0][0],1))a.shift();if(a.length)return a[0];return null}function pruneSegmentIntersection(o,i){var a=o.slice(),t=i.slice(),r=getIntersection(o[o.length-1],i[0]);if(r)a[o.length-1]=o[o.length-1].split(r[0])[0],t[0]=i[0].split(r[1])[1];if(o.length>1&&i.length>1){if(r=getIntersection(o[0],i[i.length-1]),r)return[[o[0].split(r[0])[0]],[i[i.length-1].split(r[1])[1]]]}return[a,t]}function pruneIntersections(o){var i;for(var a=1;a<o.length;a+=1)i=pruneSegmentIntersection(o[a-1],o[a]),o[a-1]=i[0],o[a]=i[1];if(o.length>1)i=pruneSegmentIntersection(o[o.length-1],o[0]),o[o.length-1]=i[0],o[0]=i[1];return o}function offsetSegmentSplit(o,i){var a=o.inflectionPoints(),t,r,e,n;if(a.length===0)return[offsetSegment(o,i)];if(a.length===1||floatEqual(a[1],1))return e=o.split(a[0]),t=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(r,i)];e=o.split(a[0]),t=e[0];var s=(a[1]-a[0])/(1-a[0]);return e=e[1].split(s),n=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(n,i),offsetSegment(r,i)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this.miterLimit=PropertyFactory.getProp(o,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(o,i,a,t){var r=shapePool.newElement();r.c=o.c;var e=o.length();if(!o.c)e-=1;var n,s,l,h=[];for(n=0;n<e;n+=1)l=PolynomialBezier.shapeSegment(o,n),h.push(offsetSegmentSplit(l,i));if(!o.c)for(n=e-1;n>=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(o,n),h.push(offsetSegmentSplit(l,i));h=pruneIntersections(h);var p=null,H=null;for(n=0;n<h.length;n+=1){var f=h[n];if(H)p=joinLines(r,H,f[0],a,t);H=f[f.length-1];for(s=0;s<f.length;s+=1){if(l=f[s],p&&pointEqual(l.points[0],p))r.setXYAt(l.points[1][0],l.points[1][1],"o",r.length()-1);else r.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],r.length());r.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],r.length()),p=l.points[3]}}if(h.length)joinLines(r,H,h[0][0],a,t);return r},OffsetPathModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v,s=this.miterLimit.v,l=this.lineJoin;if(n!==0){var h,p;for(a=0;a<t;a+=1){if(h=this.shapes[a],p=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){p.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)p.addShape(this.processPath(i[r],n,l,s))}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function getFontProperties(o){var i=o.fStyle?o.fStyle.split(" "):[],a="normal",t="normal",r=i.length,e;for(var n=0;n<r;n+=1)switch(e=i[n].toLowerCase(),e){case"italic":t="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:t,weight:o.fWeight||a}}var FontManager=function(){var o=5000,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var t=127988,r=917631,e=917601,n=917626,s=65039,l=8205,h=127462,p=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(x){var K=x.split(","),c,m=K.length,P=[];for(c=0;c<m;c+=1)if(K[c]!=="sans-serif"&&K[c]!=="monospace")P.push(K[c]);return P.join(",")}function y(x,K){var c=createTag("span");c.setAttribute("aria-hidden",!0),c.style.fontFamily=K;var m=createTag("span");m.innerText="giItT1WQy@!-/#",c.style.position="absolute",c.style.left="-10000px",c.style.top="-10000px",c.style.fontSize="300px",c.style.fontVariant="normal",c.style.fontStyle="normal",c.style.fontWeight="normal",c.style.letterSpacing="0",c.appendChild(m),document.body.appendChild(c);var P=m.offsetWidth;return m.style.fontFamily=f(x)+", "+K,{node:m,w:P,parent:c}}function z(){var x,K=this.fonts.length,c,m,P=K;for(x=0;x<K;x+=1)if(this.fonts[x].loaded)P-=1;else if(this.fonts[x].fOrigin==="n"||this.fonts[x].origin===0)this.fonts[x].loaded=!0;else{if(c=this.fonts[x].monoCase.node,m=this.fonts[x].monoCase.w,c.offsetWidth!==m)P-=1,this.fonts[x].loaded=!0;else if(c=this.fonts[x].sansCase.node,m=this.fonts[x].sansCase.w,c.offsetWidth!==m)P-=1,this.fonts[x].loaded=!0;if(this.fonts[x].loaded)this.fonts[x].sansCase.parent.parentNode.removeChild(this.fonts[x].sansCase.parent),this.fonts[x].monoCase.parent.parentNode.removeChild(this.fonts[x].monoCase.parent)}if(P!==0&&Date.now()-this.initTime<o)setTimeout(this.checkLoadedFontsBinded,20);else setTimeout(this.setIsLoadedBinded,10)}function v(x,K){var c=document.body&&K?"svg":"canvas",m,P=getFontProperties(x);if(c==="svg"){var Y=createNS("text");if(Y.style.fontSize="100px",Y.setAttribute("font-family",x.fFamily),Y.setAttribute("font-style",P.style),Y.setAttribute("font-weight",P.weight),Y.textContent="1",x.fClass)Y.style.fontFamily="inherit",Y.setAttribute("class",x.fClass);else Y.style.fontFamily=x.fFamily;K.appendChild(Y),m=Y}else{var A=new OffscreenCanvas(500,500).getContext("2d");A.font=P.style+" "+P.weight+" 100px "+x.fFamily,m=A}function M(E){if(c==="svg")return m.textContent=E,m.getComputedTextLength();return m.measureText(E).width}return{measureText:M}}function q(x,K){if(!x){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=x.list;return}if(!document.body){this.isLoaded=!0,x.list.forEach(function(yo){yo.helper=v(yo),yo.cache={}}),this.fonts=x.list;return}var c=x.list,m,P=c.length,Y=P;for(m=0;m<P;m+=1){var A=!0,M,E;if(c[m].loaded=!1,c[m].monoCase=y(c[m].fFamily,"monospace"),c[m].sansCase=y(c[m].fFamily,"sans-serif"),!c[m].fPath)c[m].loaded=!0,Y-=1;else if(c[m].fOrigin==="p"||c[m].origin===3){if(M=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[m].fFamily+'"], style[f-origin="3"][f-family="'+c[m].fFamily+'"]'),M.length>0)A=!1;if(A){var oo=createTag("style");oo.setAttribute("f-forigin",c[m].fOrigin),oo.setAttribute("f-origin",c[m].origin),oo.setAttribute("f-family",c[m].fFamily),oo.type="text/css",oo.innerText="@font-face {font-family: "+c[m].fFamily+"; font-style: normal; src: url('"+c[m].fPath+"');}",K.appendChild(oo)}}else if(c[m].fOrigin==="g"||c[m].origin===1){M=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(E=0;E<M.length;E+=1)if(M[E].href.indexOf(c[m].fPath)!==-1)A=!1;if(A){var ao=createTag("link");ao.setAttribute("f-forigin",c[m].fOrigin),ao.setAttribute("f-origin",c[m].origin),ao.type="text/css",ao.rel="stylesheet",ao.href=c[m].fPath,document.body.appendChild(ao)}}else if(c[m].fOrigin==="t"||c[m].origin===2){M=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(E=0;E<M.length;E+=1)if(c[m].fPath===M[E].src)A=!1;if(A){var co=createTag("link");co.setAttribute("f-forigin",c[m].fOrigin),co.setAttribute("f-origin",c[m].origin),co.setAttribute("rel","stylesheet"),co.setAttribute("href",c[m].fPath),K.appendChild(co)}}c[m].helper=v(c[m],K),c[m].cache={},this.fonts.push(c[m])}if(Y===0)this.isLoaded=!0;else setTimeout(this.checkLoadedFonts.bind(this),100)}function w(x){if(!x)return;if(!this.chars)this.chars=[];var K,c=x.length,m,P=this.chars.length,Y;for(K=0;K<c;K+=1){m=0,Y=!1;while(m<P){if(this.chars[m].style===x[K].style&&this.chars[m].fFamily===x[K].fFamily&&this.chars[m].ch===x[K].ch)Y=!0;m+=1}if(!Y)this.chars.push(x[K]),P+=1}}function u(x,K,c){var m=0,P=this.chars.length;while(m<P){if(this.chars[m].ch===x&&this.chars[m].style===K&&this.chars[m].fFamily===c)return this.chars[m];m+=1}if((typeof x==="string"&&x.charCodeAt(0)!==13||!x)&&console&&console.warn&&!this._warned)this._warned=!0,console.warn("Missing character from exported characters list: ",x,K,c);return i}function g(x,K,c){var m=this.getFontByName(K),P=x;if(!m.cache[P]){var Y=m.helper;if(x===" "){var A=Y.measureText("|"+x+"|"),M=Y.measureText("||");m.cache[P]=(A-M)/100}else m.cache[P]=Y.measureText(x)/100}return m.cache[P]*c}function k(x){var K=0,c=this.fonts.length;while(K<c){if(this.fonts[K].fName===x)return this.fonts[K];K+=1}return this.fonts[0]}function W(x){var K=0,c=x.charCodeAt(0);if(c>=55296&&c<=56319){var m=x.charCodeAt(1);if(m>=56320&&m<=57343)K=(c-55296)*1024+m-56320+65536}return K}function R(x,K){var c=x.toString(16)+K.toString(16);return H.indexOf(c)!==-1}function Q(x){return x===l}function b(x){return x===s}function S(x){var K=W(x);if(K>=h&&K<=p)return!0;return!1}function I(x){return S(x.substr(0,2))&&S(x.substr(2,2))}function C(x){return a.indexOf(x)!==-1}function J(x,K){var c=W(x.substr(K,2));if(c!==t)return!1;var m=0;K+=2;while(m<5){if(c=W(x.substr(K,2)),c<e||c>n)return!1;m+=1,K+=2}return W(x.substr(K,2))===r}function F(){this.isLoaded=!0}var j=function x(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};j.isModifier=R,j.isZeroWidthJoiner=Q,j.isFlagEmoji=I,j.isRegionalCode=S,j.isCombinedCharacter=C,j.isRegionalFlag=J,j.isVariationSelector=b,j.BLACK_FLAG_CODE_POINT=t;var U={addChars:w,addFonts:q,getCharData:u,getFontByName:k,measureText:g,checkLoadedFonts:z,setIsLoaded:F};return j.prototype=U,j}();function SlotManager(o){this.animationData=o}SlotManager.prototype.getProp=function(o){if(this.animationData.slots&&this.animationData.slots[o.sid])return Object.assign(o,this.animationData.slots[o.sid].p);return o};function slotFactory(o){return new SlotManager(o)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function o(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)===-1)this.renderableComponents.push(i)},removeRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)!==-1)this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function o(i){this.checkLayerLimits(i)},checkTransparency:function o(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent)this.isTransparent=!0,this.hide()}else if(this.isTransparent)this.isTransparent=!1,this.show()},checkLayerLimits:function o(i){if(this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i){if(this.isInRange!==!0)this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()}else if(this.isInRange!==!1)this.globalData._mdf=!0,this.isInRange=!1,this.hide()},renderRenderable:function o(){var i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function o(){return{top:0,left:0,width:100,height:100}},getLayerSize:function o(){if(this.data.ty===5)return{w:this.data.textData.width,h:this.data.textData.height};return{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var o={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return o[i]||""}}();function SliderEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function AngleEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function ColorEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function PointEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function LayerIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function MaskIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function CheckboxEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(o,i){var a=o.ef||[];this.effectElements=[];var t,r=a.length,e;for(t=0;t<r;t+=1)e=new GroupEffect(a[t],i),this.effectElements.push(e)}function GroupEffect(o,i){this.init(o,i)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(o,i){this.data=o,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,t=this.data.ef.length,r,e=this.data.ef;for(a=0;a<t;a+=1){switch(r=null,e[a].ty){case 0:r=new SliderEffect(e[a],i,this);break;case 1:r=new AngleEffect(e[a],i,this);break;case 2:r=new ColorEffect(e[a],i,this);break;case 3:r=new PointEffect(e[a],i,this);break;case 4:case 7:r=new CheckboxEffect(e[a],i,this);break;case 10:r=new LayerIndexEffect(e[a],i,this);break;case 11:r=new MaskIndexEffect(e[a],i,this);break;case 5:r=new EffectsManager(e[a],i,this);break;default:r=new NoValueEffect(e[a],i,this);break}if(r)this.effectElements.push(r)}};function BaseElement(){}BaseElement.prototype={checkMasks:function o(){if(!this.data.hasMask)return!1;var i=0,a=this.data.masksProperties.length;while(i<a){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function o(){var i=getExpressionInterfaces();if(!i)return;var a=i("layer"),t=i("effects"),r=i("shape"),e=i("text"),n=i("comp");if(this.layerInterface=a(this),this.data.hasMask&&this.maskManager)this.layerInterface.registerMaskInterface(this.maskManager);var s=t.createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(s),this.data.ty===0||this.data.xt)this.compInterface=n(this);else if(this.data.ty===4)this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;else if(this.data.ty===5)this.layerInterface.textInterface=e(this),this.layerInterface.text=this.layerInterface.textInterface},setBlendMode:function o(){var i=getBlendMode(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function o(i,a,t){if(this.globalData=a,this.comp=t,this.data=i,this.layerId=createElementID(),!this.data.sr)this.data.sr=1;this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function o(){return this.type},sourceRectAtTime:function o(){}};function FrameElement(){}FrameElement.prototype={initFrame:function o(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function o(i,a){var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)if(a||this._isParent&&this.dynamicProperties[t].propType==="transform"){if(this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf)this.globalData._mdf=!0,this._mdf=!0}},addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i)}};function FootageElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(o,i,a)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var o=getExpressionInterfaces();if(!o)return;var i=o("footage");this.layerInterface=i(this)},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.initBaseData(o,i,a),this._isPlaying=!1,this._canPlay=!1;var t=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(t),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,o.au&&o.au.lv?o.au.lv:{k:[100]},1,0.01,this)}AudioElement.prototype.prepareFrame=function(o){if(this.prepareRenderableFrame(o,!0),this.prepareProperties(o,!0),!this.tm._placeholder){var i=this.tm.v;this._currentTime=i}else this._currentTime=o/this.data.sr;this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;if(this._previousVolume!==a)this._previousVolume=a,this.audio.volume(a)},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying)this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0;else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>0.1)this.audio.seek(this._currentTime/this.globalData.frameRate)}},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(o){this.audio.rate(o)},AudioElement.prototype.volume=function(o){this._volumeMultiplier=o,this._previousVolume=o*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(o){var i,a=this.layers.length,t;this.completeLayers=!0;for(i=a-1;i>=0;i-=1){if(!this.elements[i]){if(t=this.layers[i],t.ip-t.st<=o-this.layers[i].st&&t.op-t.st>o-this.layers[i].st)this.buildItem(i)}this.completeLayers=this.elements[i]?this.completeLayers:!1}this.checkPendingElements()},BaseRenderer.prototype.createItem=function(o){switch(o.ty){case 2:return this.createImage(o);case 0:return this.createComp(o);case 1:return this.createSolid(o);case 3:return this.createNull(o);case 4:return this.createShape(o);case 5:return this.createText(o);case 6:return this.createAudio(o);case 13:return this.createCamera(o);case 15:return this.createFootage(o);default:return this.createNull(o)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(o){return new AudioElement(o,this.globalData,this)},BaseRenderer.prototype.createFootage=function(o){return new FootageElement(o,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)this.buildItem(o);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(o){this.completeLayers=!1;var i,a=o.length,t,r=this.layers.length;for(i=0;i<a;i+=1){t=0;while(t<r){if(this.layers[t].id===o[i].id){this.layers[t]=o[i];break}t+=1}}},BaseRenderer.prototype.setProjectInterface=function(o){this.globalData.projectInterface=o},BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad)this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(o,i,a){var t=this.elements,r=this.layers,e=0,n=r.length;while(e<n){if(r[e].ind==i)if(!t[e]||t[e]===!0)this.buildItem(e),this.addPendingElement(o);else if(a.push(t[e]),t[e].setAsParent(),r[e].parent!==void 0)this.buildElementParenting(o,r[e].parent,a);else o.setHierarchy(a);e+=1}},BaseRenderer.prototype.addPendingElement=function(o){this.pendingElements.push(o)},BaseRenderer.prototype.searchExtraCompositions=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i].xt){var t=this.createComp(o[i]);t.initExpressions(),this.globalData.projectInterface.registerComposition(t)}},BaseRenderer.prototype.getElementById=function(o){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===o)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(o){var i=o.shift(),a;if(typeof i==="number")a=this.elements[i];else{var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.nm===i){a=this.elements[t];break}}if(o.length===0)return a;return a.getElementByPath(o)},BaseRenderer.prototype.setupGlobalData=function(o,i){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(o),this.globalData.fontManager.addChars(o.chars),this.globalData.fontManager.addFonts(o.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=o.fr,this.globalData.nm=o.nm,this.globalData.compSize={w:o.w,h:o.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function o(){var i=new Matrix;if(this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao)this.finalTransform.mProp.autoOriented=!0;if(this.data.ty!==11);},renderTransform:function o(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,a=this.finalTransform.mat,t=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)while(t<r){if(this.hierarchy[t].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}t+=1}if(this.finalTransform._matMdf){i=this.finalTransform.mProp.v.props,a.cloneFromProps(i);for(t=0;t<r;t+=1)a.multiply(this.hierarchy[t].finalTransform.mProp.v)}}if(!this.localTransforms||this.finalTransform._matMdf)this.finalTransform._localMatMdf=this.finalTransform._matMdf;if(this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v},renderLocalTransform:function o(){if(this.localTransforms){var i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)while(i<a){if(this.localTransforms[i]._mdf)this.finalTransform._localMatMdf=!0;if(this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0;i+=1}if(this.finalTransform._localMatMdf){var t=this.finalTransform.localMat;this.localTransforms[0].matrix.clone(t);for(i=1;i<a;i+=1){var r=this.localTransforms[i].matrix;t.multiply(r)}t.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var e=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)e*=this.localTransforms[i].opacity*0.01;this.finalTransform.localOpacity=e}}},searchEffectTransforms:function o(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var a=0,t=i.length;for(a=0;a<t;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function o(i){var a=[];a.push(this.finalTransform);var t=!0,r=this.comp;while(t)if(r.finalTransform){if(r.data.hasMask)a.splice(0,0,r.finalTransform);r=r.comp}else t=!1;var e,n=a.length,s;for(e=0;e<n;e+=1)s=a[e].mat.applyToPointArray(0,0,0),i=[i[0]-s[0],i[1]-s[1],0];return i},mHelper:new Matrix};function MaskElement(o,i,a){this.data=o,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var t=this.globalData.defs,r,e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(e),this.solidPath="";var n,s=this.masksProperties,l=0,h=[],p,H,f=createElementID(),y,z,v,q,w="clipPath",u="clip-path";for(r=0;r<e;r+=1){if(s[r].mode!=="a"&&s[r].mode!=="n"||s[r].inv||s[r].o.k!==100||s[r].o.x)w="mask",u="mask";if((s[r].mode==="s"||s[r].mode==="i")&&l===0)y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),h.push(y);else y=null;if(n=createNS("path"),s[r].mode==="n")this.viewData[r]={op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),elem:n,lastPath:""},t.appendChild(n);else{l+=1,n.setAttribute("fill",s[r].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero");var g;if(s[r].x.k!==0)w="mask",u="mask",q=PropertyFactory.getProp(this.element,s[r].x,0,null,this.element),g=createElementID(),z=createNS("filter"),z.setAttribute("id",g),v=createNS("feMorphology"),v.setAttribute("operator","erode"),v.setAttribute("in","SourceGraphic"),v.setAttribute("radius","0"),z.appendChild(v),t.appendChild(z),n.setAttribute("stroke",s[r].mode==="s"?"#000000":"#ffffff");else v=null,q=null;if(this.storedData[r]={elem:n,x:q,expan:v,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},s[r].mode==="i"){H=h.length;var k=createNS("g");for(p=0;p<H;p+=1)k.appendChild(h[p]);var W=createNS("mask");W.setAttribute("mask-type","alpha"),W.setAttribute("id",f+"_"+l),W.appendChild(n),t.appendChild(W),k.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),h.length=0,h.push(k)}else h.push(n);if(s[r].inv&&!this.solidPath)this.solidPath=this.createLayerSolidPath();if(this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),invRect:y},!this.viewData[r].prop.k)this.drawPath(s[r],this.viewData[r].prop.v,this.viewData[r])}}this.maskElement=createNS(w),e=h.length;for(r=0;r<e;r+=1)this.maskElement.appendChild(h[r]);if(l>0)this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+f+")"),t.appendChild(this.maskElement);if(this.viewData.length)this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(o){return this.viewData[o].prop},MaskElement.prototype.renderFrame=function(o){var i=this.element.finalTransform.mat,a,t=this.masksProperties.length;for(a=0;a<t;a+=1){if(this.viewData[a].prop._mdf||o)this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]);if(this.viewData[a].op._mdf||o)this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v);if(this.masksProperties[a].mode!=="n"){if(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||o))this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS());if(this.storedData[a].x&&(this.storedData[a].x._mdf||o)){var r=this.storedData[a].expan;if(this.storedData[a].x.v<0){if(this.storedData[a].lastOperator!=="erode")this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[a].filterId+")");r.setAttribute("radius",-this.storedData[a].x.v)}else{if(this.storedData[a].lastOperator!=="dilate")this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null);this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2)}}}}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var o="M0,0 ";return o+=" h"+this.globalData.compSize.w,o+=" v"+this.globalData.compSize.h,o+=" h-"+this.globalData.compSize.w,o+=" v-"+this.globalData.compSize.h+" ",o},MaskElement.prototype.drawPath=function(o,i,a){var t=" M"+i.v[0][0]+","+i.v[0][1],r,e;e=i._length;for(r=1;r<e;r+=1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[r][0]+","+i.i[r][1]+" "+i.v[r][0]+","+i.v[r][1];if(i.c&&e>1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1];if(a.lastPath!==t){var n="";if(a.elem){if(i.c)n=o.inv?this.solidPath+t:t;a.elem.setAttribute("d",n)}a.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var o={};o.createFilter=i,o.createAlphaToLuminanceFilter=a;function i(t,r){var e=createNS("filter");if(e.setAttribute("id",t),r!==!0)e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%");return e}function a(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return o}(),featureSupport=function(){var o={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas!=="undefined"};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))o.maskType=!1;if(/firefox/i.test(navigator.userAgent))o.svgLumaHidden=!1;return o}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(o){var i,a="SourceGraphic",t=o.data.ef?o.data.ef.length:0,r=createElementID(),e=filtersFactory.createFilter(r,!0),n=0;this.filters=[];var s;for(i=0;i<t;i+=1){s=null;var l=o.data.ef[i].ty;if(registeredEffects$1[l]){var h=registeredEffects$1[l].effect;if(s=new h(e,o.effectsManager.effectElements[i],o,idPrefix+n,a),a=idPrefix+n,registeredEffects$1[l].countsAsEffect)n+=1}if(s)this.filters.push(s)}if(n)o.globalData.defs.appendChild(e),o.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+r+")");if(this.filters.length)o.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},SVGEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect$1(o,i,a){registeredEffects$1[o]={effect:i,countsAsEffect:a}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function o(){this.layerElement=createNS("g")},createContainerElements:function o(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=createNS("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else if(this.data.tt)this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement;else this.baseElement=this.layerElement;if(this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.ty===0&&!this.data.hd){var t=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var e=createElementID();if(t.setAttribute("id",e),t.appendChild(r),this.globalData.defs.appendChild(t),this.checkMasks()){var n=createNS("g");if(n.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),n.appendChild(this.layerElement),this.transformedElement=n,i)i.appendChild(this.transformedElement);else this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")")}if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){if(this.finalTransform._localMatMdf)this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS());if(this.finalTransform._opMdf)this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function o(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function o(){if(this.data.hd)return null;return this.baseElement},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function o(i){if(!this.matteMasks)this.matteMasks={};if(!this.matteMasks[i]){var a=this.layerId+"_"+i,t,r,e,n;if(i===1||i===3){var s=createNS("mask");if(s.setAttribute("id",a),s.setAttribute("mask-type",i===3?"luminance":"alpha"),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(e),this.globalData.defs.appendChild(s),!featureSupport.maskType&&i===1)s.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),n.appendChild(e),s.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")")}else if(i===2){var l=createNS("mask");l.setAttribute("id",a),l.setAttribute("mask-type","alpha");var h=createNS("g");l.appendChild(h),t=createElementID(),r=filtersFactory.createFilter(t);var p=createNS("feComponentTransfer");p.setAttribute("in","SourceGraphic"),r.appendChild(p);var H=createNS("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),p.appendChild(H),this.globalData.defs.appendChild(r);var f=createNS("rect");if(f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),h.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),h.appendChild(f),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(e),!featureSupport.maskType)l.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),h.appendChild(f),n.appendChild(this.layerElement),h.appendChild(n);this.globalData.defs.appendChild(l)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function o(i){if(!this.matteElement)return;this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+i+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function o(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function o(i){this.hierarchy=i},setAsParent:function o(){this._isParent=!0},checkParenting:function o(){if(this.data.parent!==void 0)this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var o={initElement:function i(a,t,r){this.initFrame(),this.initBaseData(a,t,r),this.initTransform(a,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function i(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function i(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function i(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},renderInnerContent:function i(){},prepareFrame:function i(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function i(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(o)],RenderableDOMElement)})();function IImageElement(o,i,a){if(this.assetData=i.getAssetData(o.refId),this.assetData&&this.assetData.sid)this.assetData=i.slotManager.getProp(this.assetData);this.initElement(o,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(o,i){this.elem=o,this.pos=i}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function o(i){var a,t=this.shapeModifiers.length;for(a=0;a<t;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function o(i){var a=0,t=this.shapeModifiers.length;while(a<t)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function o(){if(!this.shapeModifiers.length)return;var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var t;for(i=a-1;i>=0;i-=1)if(t=this.shapeModifiers[i].processShapes(this._isFirstFrame),t)break},searchProcessedElement:function o(i){var a=this.processedElements,t=0,r=a.length;while(t<r){if(a[t].elem===i)return a[t].pos;t+=1}return 0},addProcessedElement:function o(i,a){var t=this.processedElements,r=t.length;while(r)if(r-=1,t[r].elem===i){t[r].pos=a;return}t.push(new ProcessedElement(i,a))},prepareFrame:function o(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(o,i,a){this.caches=[],this.styles=[],this.transformers=o,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;var t=0,r=o.length;while(t<r){if(o[t].mProps.dynamicProperties.length){this._isAnimated=!0;break}t+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(o,i){this.data=o,this.type=o.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=o.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(o,i,a,t){this.elem=o,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(t);var r,e=i.length||0,n;for(r=0;r<e;r+=1)n=PropertyFactory.getProp(o,i[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:i[r].n,p:n};if(!this.k)this.getValue(!0);this._isAnimated=this.k}DashProperty.prototype.getValue=function(o){if(this.elem.globalData.frameId===this.frameId&&!o)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||o,this._mdf){var i=0,a=this.dataProps.length;if(this.renderer==="svg")this.dashStr="";for(i=0;i<a;i+=1)if(this.dataProps[i].n!=="o")if(this.renderer==="svg")this.dashStr+=" "+this.dataProps[i].p.v;else this.dashArray[i]=this.dataProps[i].p.v;else this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.style=a}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(o,i,a){this.data=i,this.c=createTypedArray("uint8c",i.p*4);var t=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=createTypedArray("float32",t),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=t,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(o,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(o,i){var a=0,t=this.o.length/2,r;while(a<t){if(r=Math.abs(o[a*4]-o[i*4+a*2]),r>0.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var o=0,i=this.data.k.k.length;while(o<i){if(!this.comparePoints(this.data.k.k[o].s,this.data.p))return!1;o+=1}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(o){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||o){var i,a=this.data.p*4,t,r;for(i=0;i<a;i+=1)if(t=i%4===0?100:255,r=Math.round(this.prop.v[i]*t),this.c[i]!==r)this.c[i]=r,this._cmdf=!o;if(this.o.length){a=this.prop.v.length;for(i=this.data.p*4;i<a;i+=1)if(t=i%2===0?100:1,r=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==r)this.o[i-this.data.p*4]=r,this._omdf=!o}this._mdf=!o}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.initGradientData(o,i,a)}SVGGradientFillStyleData.prototype.initGradientData=function(o,i,a){this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.s=PropertyFactory.getProp(o,i.s,1,null,this),this.e=PropertyFactory.getProp(o,i.e,1,null,this),this.h=PropertyFactory.getProp(o,i.h||{k:0},0,0.01,this),this.a=PropertyFactory.getProp(o,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(o,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(o,i){var a=createElementID(),t=createNS(i.t===1?"linearGradient":"radialGradient");t.setAttribute("id",a),t.setAttribute("spreadMethod","pad"),t.setAttribute("gradientUnits","userSpaceOnUse");var r=[],e,n,s;s=i.g.p*4;for(n=0;n<s;n+=4)e=createNS("stop"),t.appendChild(e),r.push(e);o.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=t,this.cst=r},SVGGradientFillStyleData.prototype.setGradientOpacity=function(o,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,t,r,e=createNS("mask"),n=createNS("path");e.appendChild(n);var s=createElementID(),l=createElementID();e.setAttribute("id",l);var h=createNS(o.t===1?"linearGradient":"radialGradient");h.setAttribute("id",s),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=o.g.k.k[0].s?o.g.k.k[0].s.length:o.g.k.k.length;var p=this.stops;for(t=o.g.p*4;t<r;t+=2)a=createNS("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(a),p.push(a);if(n.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),o.ty==="gs"){if(n.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),o.lj===1)n.setAttribute("stroke-miterlimit",o.ml)}this.of=h,this.ms=e,this.ost=p,this.maskId=l,i.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.initGradientData(o,i,a),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(o,i,a){this.transform={mProps:o,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function o(i,a,t,r){if(a===0)return"";var{o:e,i:n,v:s}=i,l,h=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(l=1;l<a;l+=1)h+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[l][0],n[l][1])+" "+r.applyToPointStringified(s[l][0],s[l][1]);if(t&&a)h+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[0][0],n[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),h+="z";return h},SVGElementsRenderer=function(){var o=new Matrix,i=new Matrix,a={createRenderFunction:t};function t(H){switch(H.ty){case"fl":return s;case"gf":return h;case"gs":return l;case"st":return p;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return e;default:return null}}function r(H,f,y){if(y||f.transform.op._mdf)f.transform.container.setAttribute("opacity",f.transform.op.v);if(y||f.transform.mProps._mdf)f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function e(){}function n(H,f,y){var z,v,q,w,u,g,k=f.styles.length,W=f.lvl,R,Q,b,S;for(g=0;g<k;g+=1){if(w=f.sh._mdf||y,f.styles[g].lvl<W){Q=i.reset(),b=W-f.styles[g].lvl,S=f.transformers.length-1;while(!w&&b>0)w=f.transformers[S].mProps._mdf||w,b-=1,S-=1;if(w){b=W-f.styles[g].lvl,S=f.transformers.length-1;while(b>0)Q.multiply(f.transformers[S].mProps.v),b-=1,S-=1}}else Q=o;if(R=f.sh.paths,v=R._length,w){q="";for(z=0;z<v;z+=1)if(u=R.shapes[z],u&&u._length)q+=buildShapeString(u,u._length,u.c,Q);f.caches[g]=q}else q=f.caches[g];f.styles[g].d+=H.hd===!0?"":q,f.styles[g]._mdf=w||f.styles[g]._mdf}}function s(H,f,y){var z=f.style;if(f.c._mdf||y)z.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("fill-opacity",f.o.v)}function l(H,f,y){h(H,f,y),p(H,f,y)}function h(H,f,y){var z=f.gf,v=f.g._hasOpacity,q=f.s.v,w=f.e.v;if(f.o._mdf||y){var u=H.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(u,f.o.v)}if(f.s._mdf||y){var g=H.t===1?"x1":"cx",k=g==="x1"?"y1":"cy";if(z.setAttribute(g,q[0]),z.setAttribute(k,q[1]),v&&!f.g._collapsable)f.of.setAttribute(g,q[0]),f.of.setAttribute(k,q[1])}var W,R,Q,b;if(f.g._cmdf||y){W=f.cst;var S=f.g.c;Q=W.length;for(R=0;R<Q;R+=1)b=W[R],b.setAttribute("offset",S[R*4]+"%"),b.setAttribute("stop-color","rgb("+S[R*4+1]+","+S[R*4+2]+","+S[R*4+3]+")")}if(v&&(f.g._omdf||y)){var I=f.g.o;if(f.g._collapsable)W=f.cst;else W=f.ost;Q=W.length;for(R=0;R<Q;R+=1){if(b=W[R],!f.g._collapsable)b.setAttribute("offset",I[R*2]+"%");b.setAttribute("stop-opacity",I[R*2+1])}}if(H.t===1){if(f.e._mdf||y){if(z.setAttribute("x2",w[0]),z.setAttribute("y2",w[1]),v&&!f.g._collapsable)f.of.setAttribute("x2",w[0]),f.of.setAttribute("y2",w[1])}}else{var C;if(f.s._mdf||f.e._mdf||y){if(C=Math.sqrt(Math.pow(q[0]-w[0],2)+Math.pow(q[1]-w[1],2)),z.setAttribute("r",C),v&&!f.g._collapsable)f.of.setAttribute("r",C)}if(f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||y){if(!C)C=Math.sqrt(Math.pow(q[0]-w[0],2)+Math.pow(q[1]-w[1],2));var J=Math.atan2(w[1]-q[1],w[0]-q[0]),F=f.h.v;if(F>=1)F=0.99;else if(F<=-1)F=-0.99;var j=C*F,U=Math.cos(J+f.a.v)*j+q[0],x=Math.sin(J+f.a.v)*j+q[1];if(z.setAttribute("fx",U),z.setAttribute("fy",x),v&&!f.g._collapsable)f.of.setAttribute("fx",U),f.of.setAttribute("fy",x)}}}function p(H,f,y){var{style:z,d:v}=f;if(v&&(v._mdf||y)&&v.dashStr)z.pElem.setAttribute("stroke-dasharray",v.dashStr),z.pElem.setAttribute("stroke-dashoffset",v.dashoffset[0]);if(f.c&&(f.c._mdf||y))z.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("stroke-opacity",f.o.v);if(f.w._mdf||y){if(z.pElem.setAttribute("stroke-width",f.w.v),z.msElem)z.msElem.setAttribute("stroke-width",f.w.v)}}return a}();function SVGShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(o,i,a),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var o,i=this.shapes.length,a,t,r=this.stylesList.length,e,n=[],s=!1;for(t=0;t<r;t+=1){e=this.stylesList[t],s=!1,n.length=0;for(o=0;o<i;o+=1)if(a=this.shapes[o],a.styles.indexOf(e)!==-1)n.push(a),s=a._isAnimated||s;if(n.length>1&&s)this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(o,i){var a,t=new SVGStyleData(o,i),r=t.pElem;if(o.ty==="st")a=new SVGStrokeStyleData(this,o,t);else if(o.ty==="fl")a=new SVGFillStyleData(this,o,t);else if(o.ty==="gf"||o.ty==="gs"){var e=o.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;if(a=new e(this,o,t),this.globalData.defs.appendChild(a.gf),a.maskId)this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),r.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")")}else if(o.ty==="no")a=new SVGNoStyleData(this,o,t);if(o.ty==="st"||o.ty==="gs"){if(r.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),r.setAttribute("fill-opacity","0"),o.lj===1)r.setAttribute("stroke-miterlimit",o.ml)}if(o.r===2)r.setAttribute("fill-rule","evenodd");if(o.ln)r.setAttribute("id",o.ln);if(o.cl)r.setAttribute("class",o.cl);if(o.bm)r.style["mix-blend-mode"]=getBlendMode(o.bm);return this.stylesList.push(t),this.addToAnimatedContents(o,a),a},SVGShapeElement.prototype.createGroupElement=function(o){var i=new ShapeGroupData;if(o.ln)i.gr.setAttribute("id",o.ln);if(o.cl)i.gr.setAttribute("class",o.cl);if(o.bm)i.gr.style["mix-blend-mode"]=getBlendMode(o.bm);return i},SVGShapeElement.prototype.createTransformElement=function(o,i){var a=TransformPropertyFactory.getTransformProperty(this,o,this),t=new SVGTransformData(a,a.o,i);return this.addToAnimatedContents(o,t),t},SVGShapeElement.prototype.createShapeElement=function(o,i,a){var t=4;if(o.ty==="rc")t=5;else if(o.ty==="el")t=6;else if(o.ty==="sr")t=7;var r=ShapePropertyFactory.getShapeProp(this,o,t,this),e=new SVGShapeData(i,a,r);return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(o,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(o,i){var a=0,t=this.animatedContents.length;while(a<t){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(o),element:i,data:o})},SVGShapeElement.prototype.setElementStyles=function(o){var i=o.styles,a,t=this.stylesList.length;for(a=0;a<t;a+=1)if(i.indexOf(this.stylesList[a])===-1&&!this.stylesList[a].closed)i.push(this.stylesList[a])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(o,i,a,t,r,e,n){var s=[].concat(e),l,h=o.length-1,p,H,f=[],y=[],z,v,q;for(l=h;l>=0;l-=1){if(q=this.searchProcessedElement(o[l]),!q)o[l]._render=n;else i[l]=a[q-1];if(o[l].ty==="fl"||o[l].ty==="st"||o[l].ty==="gf"||o[l].ty==="gs"||o[l].ty==="no"){if(!q)i[l]=this.createStyleElement(o[l],r);else i[l].style.closed=o[l].hd;if(o[l]._render){if(i[l].style.pElem.parentNode!==t)t.appendChild(i[l].style.pElem)}f.push(i[l].style)}else if(o[l].ty==="gr"){if(!q)i[l]=this.createGroupElement(o[l]);else{H=i[l].it.length;for(p=0;p<H;p+=1)i[l].prevViewData[p]=i[l].it[p]}if(this.searchShapes(o[l].it,i[l].it,i[l].prevViewData,i[l].gr,r+1,s,n),o[l]._render){if(i[l].gr.parentNode!==t)t.appendChild(i[l].gr)}}else if(o[l].ty==="tr"){if(!q)i[l]=this.createTransformElement(o[l],t);z=i[l].transform,s.push(z)}else if(o[l].ty==="sh"||o[l].ty==="rc"||o[l].ty==="el"||o[l].ty==="sr"){if(!q)i[l]=this.createShapeElement(o[l],s,r);this.setElementStyles(i[l])}else if(o[l].ty==="tm"||o[l].ty==="rd"||o[l].ty==="ms"||o[l].ty==="pb"||o[l].ty==="zz"||o[l].ty==="op"){if(!q)v=ShapeModifiers.getModifier(o[l].ty),v.init(this,o[l]),i[l]=v,this.shapeModifiers.push(v);else v=i[l],v.closed=!1;y.push(v)}else if(o[l].ty==="rp"){if(!q)v=ShapeModifiers.getModifier(o[l].ty),i[l]=v,v.init(this,o,l,i),this.shapeModifiers.push(v),n=!1;else v=i[l],v.closed=!0;y.push(v)}this.addProcessedElement(o[l],l+1)}h=f.length;for(l=0;l<h;l+=1)f[l].closed=!0;h=y.length;for(l=0;l<h;l+=1)y[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var o,i=this.stylesList.length;for(o=0;o<i;o+=1)this.stylesList[o].reset();this.renderShape();for(o=0;o<i;o+=1)if(this.stylesList[o]._mdf||this._isFirstFrame){if(this.stylesList[o].msElem)this.stylesList[o].msElem.setAttribute("d",this.stylesList[o].d),this.stylesList[o].d="M0 0"+this.stylesList[o].d;this.stylesList[o].pElem.setAttribute("d",this.stylesList[o].d||"M0 0")}},SVGShapeElement.prototype.renderShape=function(){var o,i=this.animatedContents.length,a;for(o=0;o<i;o+=1)if(a=this.animatedContents[o],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0)a.fn(a.data,a.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(o,i,a,t,r,e){this.o=o,this.sw=i,this.sc=a,this.fc=t,this.m=r,this.p=e,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!t,m:!0,p:!0}}LetterProps.prototype.update=function(o,i,a,t,r,e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;if(this.o!==o)this.o=o,this._mdf.o=!0,n=!0;if(this.sw!==i)this.sw=i,this._mdf.sw=!0,n=!0;if(this.sc!==a)this.sc=a,this._mdf.sc=!0,n=!0;if(this.fc!==t)this.fc=t,this._mdf.fc=!0,n=!0;if(this.m!==r)this.m=r,this._mdf.m=!0,n=!0;if(e.length&&(this.p[0]!==e[0]||this.p[1]!==e[1]||this.p[4]!==e[4]||this.p[5]!==e[5]||this.p[12]!==e[12]||this.p[13]!==e[13]))this.p=e,this._mdf.p=!0,n=!0;return n};function TextProperty(o,i){if(this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid)i.d=o.globalData.slotManager.getProp(i.d);if(this.data=i,this.elem=o,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),!this.searchProperty())this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(o,i){for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a))o[a]=i[a];return o},TextProperty.prototype.setCurrentData=function(o){if(!o.__complete)this.completeTextData(o);this.currentData=o,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){if(this.kf=this.data.d.k.length>1,this.kf)this.addEffect(this.getKeyframeValue.bind(this));return this.kf},TextProperty.prototype.addEffect=function(o){this.effectsSequence.push(o),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(o){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!o)return;this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var t,r=this.effectsSequence.length,e=o||this.data.d.k[this.keysIndex].s;for(t=0;t<r;t+=1)if(a!==this.keysIndex)e=this.effectsSequence[t](e,e.t);else e=this.effectsSequence[t](this.currentData,e.t);if(i!==e)this.setCurrentData(e);this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId},TextProperty.prototype.getKeyframeValue=function(){var o=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,t=o.length;while(a<=t-1){if(a===t-1||o[a+1].t>i)break;a+=1}if(this.keysIndex!==a)this.keysIndex=a;return this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){var i=[],a=0,t=o.length,r,e,n=!1,s=!1,l="";while(a<t){if(n=s,s=!1,r=o.charCodeAt(a),l=o.charAt(a),FontManager.isCombinedCharacter(r))n=!0;else if(r>=55296&&r<=56319){if(FontManager.isRegionalFlag(o,a))l=o.substr(a,14);else if(e=o.charCodeAt(a+1),e>=56320&&e<=57343)if(FontManager.isModifier(r,e))l=o.substr(a,2),n=!0;else if(FontManager.isFlagEmoji(o.substr(a,4)))l=o.substr(a,4);else l=o.substr(a,2)}else if(r>56319){if(e=o.charCodeAt(a+1),FontManager.isVariationSelector(r))n=!0}else if(FontManager.isZeroWidthJoiner(r))n=!0,s=!0;if(n)i[i.length-1]+=l,n=!1;else i.push(l);a+=l.length}return i},TextProperty.prototype.completeTextData=function(o){o.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,t=[],r,e,n,s=0,l,h=a.m.g,p=0,H=0,f=0,y=[],z=0,v=0,q,w,u=i.getFontByName(o.f),g,k=0,W=getFontProperties(u);o.fWeight=W.weight,o.fStyle=W.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),e=o.finalText.length,o.finalLineHeight=o.lh;var R=o.tr/1000*o.finalSize,Q;if(o.sz){var b=!0,S=o.sz[0],I=o.sz[1],C,J;while(b){J=this.buildFinalText(o.t),C=0,z=0,e=J.length,R=o.tr/1000*o.finalSize;var F=-1;for(r=0;r<e;r+=1){if(Q=J[r].charCodeAt(0),n=!1,J[r]===" ")F=r;else if(Q===13||Q===3)z=0,n=!0,C+=o.finalLineHeight||o.finalSize*1.2;if(i.chars)g=i.getCharData(J[r],u.fStyle,u.fFamily),k=n?0:g.w*o.finalSize/100;else k=i.measureText(J[r],o.f,o.finalSize);if(z+k>S&&J[r]!==" "){if(F===-1)e+=1;else r=F;C+=o.finalLineHeight||o.finalSize*1.2,J.splice(r,F===r?1:0,"\r"),F=-1,z=0}else z+=k,z+=R}if(C+=u.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&I<C)o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s;else o.finalText=J,e=o.finalText.length,b=!1}}z=-R,k=0;var j=0,U;for(r=0;r<e;r+=1){if(n=!1,U=o.finalText[r],Q=U.charCodeAt(0),Q===13||Q===3)j=0,y.push(z),v=z>v?z:v,z=-2*R,l="",n=!0,f+=1;else l=U;if(i.chars)g=i.getCharData(U,u.fStyle,i.getFontByName(o.f).fFamily),k=n?0:g.w*o.finalSize/100;else k=i.measureText(l,o.f,o.finalSize);if(U===" ")j+=k+R;else z+=k+R+j,j=0;if(t.push({l:k,an:k,add:p,n,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),h==2){if(p+=k,l===""||l===" "||r===e-1){if(l===""||l===" ")p-=k;while(H<=r)t[H].an=p,t[H].ind=s,t[H].extra=k,H+=1;s+=1,p=0}}else if(h==3){if(p+=k,l===""||r===e-1){if(l==="")p-=k;while(H<=r)t[H].an=p,t[H].ind=s,t[H].extra=k,H+=1;p=0,s+=1}}else t[s].ind=s,t[s].extra=0,s+=1}if(o.l=t,v=z>v?z:v,y.push(z),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=v,o.j){case 1:o.justifyOffset=-o.boxWidth;break;case 2:o.justifyOffset=-o.boxWidth/2;break;default:o.justifyOffset=0}o.lineWidths=y;var x=a.a,K,c;w=x.length;var m,P,Y=[];for(q=0;q<w;q+=1){if(K=x[q],K.a.sc)o.strokeColorAnim=!0;if(K.a.sw)o.strokeWidthAnim=!0;if(K.a.fc||K.a.fh||K.a.fs||K.a.fb)o.fillColorAnim=!0;P=0,m=K.s.b;for(r=0;r<e;r+=1)if(c=t[r],c.anIndexes[q]=P,m==1&&c.val!==""||m==2&&c.val!==""&&c.val!==" "||m==3&&(c.n||c.val==" "||r==e-1)||m==4&&(c.n||r==e-1)){if(K.s.rn===1)Y.push(P);P+=1}a.a[q].s.totalChars=P;var A=-1,M;if(K.s.rn===1)for(r=0;r<e;r+=1){if(c=t[r],A!=c.anIndexes[q])A=c.anIndexes[q],M=Y.splice(Math.floor(Math.random()*Y.length),1)[0];c.anIndexes[q]=M}}o.yOffset=o.finalLineHeight||o.finalSize*1.2,o.ls=o.ls||0,o.ascent=u.ascent*o.finalSize/100},TextProperty.prototype.updateDocumentData=function(o,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,o),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(o){var i=this.data.d.k[o].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(o){this.canResize=o,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(o){this.minimumFontSize=Math.floor(o)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var{max:o,min:i,floor:a}=Math;function t(e,n){if(this._currentTextLength=-1,this.k=!1,this.data=n,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,n.s||{k:0},0,0,this),"e"in n)this.e=PropertyFactory.getProp(e,n.e,0,0,this);else this.e={v:100};if(this.o=PropertyFactory.getProp(e,n.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,n.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,n.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,n.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,n.a,0,0.01,this),!this.dynamicProperties.length)this.getValue()}t.prototype={getMult:function e(n){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length)this.getValue();var s=0,l=0,h=1,p=1;if(this.ne.v>0)s=this.ne.v/100;else l=-this.ne.v/100;if(this.xe.v>0)h=1-this.xe.v/100;else p=1+this.xe.v/100;var H=BezierFactory.getBezierEasing(s,l,h,p).get,f=0,y=this.finalS,z=this.finalE,v=this.data.sh;if(v===2){if(z===y)f=n>=z?1:0;else f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=H(f)}else if(v===3){if(z===y)f=n>=z?0:1;else f=1-o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=H(f)}else if(v===4){if(z===y)f=0;else if(f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1)),f<0.5)f*=2;else f=1-2*(f-0.5);f=H(f)}else if(v===5){if(z===y)f=0;else{var q=z-y;n=i(o(0,n+0.5-y),z-y);var w=-q/2+n,u=q/2;f=Math.sqrt(1-w*w/(u*u))}f=H(f)}else if(v===6){if(z===y)f=0;else n=i(o(0,n+0.5-y),z-y),f=(1+Math.cos(Math.PI+Math.PI*2*n/(z-y)))/2;f=H(f)}else{if(n>=a(y))if(n-y<0)f=o(0,i(i(z,1)-(y-n),1));else f=o(0,i(z-n,1));f=H(f)}if(this.sm.v!==100){var g=this.sm.v*0.01;if(g===0)g=0.00000001;var k=0.5-g*0.5;if(f<k)f=0;else if(f=(f-k)/g,f>1)f=1}return f*this.a.v},getValue:function e(n){if(this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2)this.e.v=this._currentTextLength;var s=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/s,h=this.s.v/s+l,p=this.e.v/s+l;if(h>p){var H=h;h=p,p=H}this.finalS=h,this.finalE=p}},extendPrototype([DynamicPropertyContainer],t);function r(e,n,s){return new t(e,n,s)}return{getTextSelectorProp:r}}();function TextAnimatorDataProperty(o,i,a){var t={propType:!1},r=PropertyFactory.getProp,e=i.a;this.a={r:e.r?r(o,e.r,0,degToRads,a):t,rx:e.rx?r(o,e.rx,0,degToRads,a):t,ry:e.ry?r(o,e.ry,0,degToRads,a):t,sk:e.sk?r(o,e.sk,0,degToRads,a):t,sa:e.sa?r(o,e.sa,0,degToRads,a):t,s:e.s?r(o,e.s,1,0.01,a):t,a:e.a?r(o,e.a,1,0,a):t,o:e.o?r(o,e.o,0,0.01,a):t,p:e.p?r(o,e.p,1,0,a):t,sw:e.sw?r(o,e.sw,0,0,a):t,sc:e.sc?r(o,e.sc,1,0,a):t,fc:e.fc?r(o,e.fc,1,0,a):t,fh:e.fh?r(o,e.fh,0,0,a):t,fs:e.fs?r(o,e.fs,0,0.01,a):t,fb:e.fb?r(o,e.fb,0,0.01,a):t,t:e.t?r(o,e.t,0,0,a):t},this.s=TextSelectorProp.getTextSelectorProp(o,i.s,a),this.s.t=i.s.t}function TextAnimatorProperty(o,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=o,this._renderType=i,this._elem=a,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}TextAnimatorProperty.prototype.searchProperties=function(){var o,i=this._textData.a.length,a,t=PropertyFactory.getProp;for(o=0;o<i;o+=1)a=this._textData.a[o],this._animatorsData[o]=new TextAnimatorDataProperty(this._elem,a,this);if(this._textData.p&&"m"in this._textData.p)this._pathData={a:t(this._elem,this._textData.p.a,0,0,this),f:t(this._elem,this._textData.p.f,0,0,this),l:t(this._elem,this._textData.p.l,0,0,this),r:t(this._elem,this._textData.p.r,0,0,this),p:t(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0;else this._hasMaskedPath=!1;this._moreOptions.alignment=t(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(o,i){if(this.lettersChangedFlag=i,!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))return;this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,t=this._animatorsData,r=this._textData,e=this.mHelper,n=this._renderType,s=this.renderedLetters.length,l,h,p,H,f=o.l,y,z,v,q,w,u,g,k,W,R,Q,b,S,I,C;if(this._hasMaskedPath){if(C=this._pathData.m,!this._pathData.n||this._pathData._mdf){var J=C.v;if(this._pathData.r.v)J=J.reverse();y={tLength:0,segments:[]},H=J._length-1;var F;b=0;for(p=0;p<H;p+=1)F=bez.buildBezierData(J.v[p],J.v[p+1],[J.o[p][0]-J.v[p][0],J.o[p][1]-J.v[p][1]],[J.i[p+1][0]-J.v[p+1][0],J.i[p+1][1]-J.v[p+1][1]]),y.tLength+=F.segmentLength,y.segments.push(F),b+=F.segmentLength;if(p=H,C.v.c)F=bez.buildBezierData(J.v[p],J.v[0],[J.o[p][0]-J.v[p][0],J.o[p][1]-J.v[p][1]],[J.i[0][0]-J.v[0][0],J.i[0][1]-J.v[0][1]]),y.tLength+=F.segmentLength,y.segments.push(F),b+=F.segmentLength;this._pathData.pi=y}if(y=this._pathData.pi,z=this._pathData.f.v,g=0,u=1,q=0,w=!0,R=y.segments,z<0&&C.v.c){if(y.tLength<Math.abs(z))z=-Math.abs(z)%y.tLength;g=R.length-1,W=R[g].points,u=W.length-1;while(z<0)if(z+=W[u].partialLength,u-=1,u<0)g-=1,W=R[g].points,u=W.length-1}W=R[g].points,k=W[u-1],v=W[u],Q=v.partialLength}H=f.length,l=0,h=0;var j=o.finalSize*1.2*0.714,U=!0,x,K,c,m,P;m=t.length;var Y,A=-1,M,E,oo,ao=z,co=g,yo=u,Vo=-1,Zo,po,Ho,so,N,uo,di,ai,Mo="",ti=this.defaultPropsArray,ri;if(o.j===2||o.j===1){var $o=0,ci=0,hi=o.j===2?-0.5:-1,Xo=0,ui=!0;for(p=0;p<H;p+=1)if(f[p].n){if($o)$o+=ci;while(Xo<p)f[Xo].animatorJustifyOffset=$o,Xo+=1;$o=0,ui=!0}else{for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(ui&&o.j===2)ci+=x.t.v*hi;if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)$o+=x.t.v*Y[0]*hi;else $o+=x.t.v*Y*hi}ui=!1}if($o)$o+=ci;while(Xo<p)f[Xo].animatorJustifyOffset=$o,Xo+=1}for(p=0;p<H;p+=1){if(e.reset(),Zo=1,f[p].n){if(l=0,h+=o.yOffset,h+=U?1:0,z=ao,U=!1,this._hasMaskedPath)g=co,u=yo,W=R[g].points,k=W[u-1],v=W[u],Q=v.partialLength,q=0;Mo="",ai="",uo="",ri="",ti=this.defaultPropsArray}else{if(this._hasMaskedPath){if(Vo!==f[p].line){switch(o.j){case 1:z+=b-o.lineWidths[f[p].line];break;case 2:z+=(b-o.lineWidths[f[p].line])/2;break;default:break}Vo=f[p].line}if(A!==f[p].ind){if(f[A])z+=f[A].extra;z+=f[p].an/2,A=f[p].ind}z+=a[0]*f[p].an*0.005;var Ao=0;for(c=0;c<m;c+=1){if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)Ao+=x.p.v[0]*Y[0];else Ao+=x.p.v[0]*Y;if(x.a.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)Ao+=x.a.v[0]*Y[0];else Ao+=x.a.v[0]*Y}if(w=!0,this._pathData.a.v)z=f[0].an*0.5+(b-this._pathData.f.v-f[0].an*0.5-f[f.length-1].an*0.5)*A/(H-1),z+=this._pathData.f.v;while(w)if(q+Q>=z+Ao||!W)S=(z+Ao-q)/v.partialLength,E=k.point[0]+(v.point[0]-k.point[0])*S,oo=k.point[1]+(v.point[1]-k.point[1])*S,e.translate(-a[0]*f[p].an*0.005,-(a[1]*j)*0.01),w=!1;else if(W){if(q+=v.partialLength,u+=1,u>=W.length)if(u=0,g+=1,!R[g])if(C.v.c)u=0,g=0,W=R[g].points;else q-=v.partialLength,W=null;else W=R[g].points;if(W)k=v,v=W[u],Q=v.partialLength}M=f[p].an/2-f[p].add,e.translate(-M,0,0)}else M=f[p].an/2-f[p].add,e.translate(-M,0,0),e.translate(-a[0]*f[p].an*0.005,-a[1]*j*0.01,0);for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),l!==0||o.j!==0)if(this._hasMaskedPath)if(Y.length)z+=x.t.v*Y[0];else z+=x.t.v*Y;else if(Y.length)l+=x.t.v*Y[0];else l+=x.t.v*Y}if(o.strokeWidthAnim)Ho=o.sw||0;if(o.strokeColorAnim)if(o.sc)po=[o.sc[0],o.sc[1],o.sc[2]];else po=[0,0,0];if(o.fillColorAnim&&o.fc)so=[o.fc[0],o.fc[1],o.fc[2]];for(c=0;c<m;c+=1)if(x=t[c].a,x.a.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)e.translate(-x.a.v[0]*Y[0],-x.a.v[1]*Y[1],x.a.v[2]*Y[2]);else e.translate(-x.a.v[0]*Y,-x.a.v[1]*Y,x.a.v[2]*Y);for(c=0;c<m;c+=1)if(x=t[c].a,x.s.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)e.scale(1+(x.s.v[0]-1)*Y[0],1+(x.s.v[1]-1)*Y[1],1);else e.scale(1+(x.s.v[0]-1)*Y,1+(x.s.v[1]-1)*Y,1);for(c=0;c<m;c+=1){if(x=t[c].a,K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),x.sk.propType)if(Y.length)e.skewFromAxis(-x.sk.v*Y[0],x.sa.v*Y[1]);else e.skewFromAxis(-x.sk.v*Y,x.sa.v*Y);if(x.r.propType)if(Y.length)e.rotateZ(-x.r.v*Y[2]);else e.rotateZ(-x.r.v*Y);if(x.ry.propType)if(Y.length)e.rotateY(x.ry.v*Y[1]);else e.rotateY(x.ry.v*Y);if(x.rx.propType)if(Y.length)e.rotateX(x.rx.v*Y[0]);else e.rotateX(x.rx.v*Y);if(x.o.propType)if(Y.length)Zo+=(x.o.v*Y[0]-Zo)*Y[0];else Zo+=(x.o.v*Y-Zo)*Y;if(o.strokeWidthAnim&&x.sw.propType)if(Y.length)Ho+=x.sw.v*Y[0];else Ho+=x.sw.v*Y;if(o.strokeColorAnim&&x.sc.propType)for(N=0;N<3;N+=1)if(Y.length)po[N]+=(x.sc.v[N]-po[N])*Y[0];else po[N]+=(x.sc.v[N]-po[N])*Y;if(o.fillColorAnim&&o.fc){if(x.fc.propType)for(N=0;N<3;N+=1)if(Y.length)so[N]+=(x.fc.v[N]-so[N])*Y[0];else so[N]+=(x.fc.v[N]-so[N])*Y;if(x.fh.propType)if(Y.length)so=addHueToRGB(so,x.fh.v*Y[0]);else so=addHueToRGB(so,x.fh.v*Y);if(x.fs.propType)if(Y.length)so=addSaturationToRGB(so,x.fs.v*Y[0]);else so=addSaturationToRGB(so,x.fs.v*Y);if(x.fb.propType)if(Y.length)so=addBrightnessToRGB(so,x.fb.v*Y[0]);else so=addBrightnessToRGB(so,x.fb.v*Y)}}for(c=0;c<m;c+=1)if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),this._hasMaskedPath)if(Y.length)e.translate(0,x.p.v[1]*Y[0],-x.p.v[2]*Y[1]);else e.translate(0,x.p.v[1]*Y,-x.p.v[2]*Y);else if(Y.length)e.translate(x.p.v[0]*Y[0],x.p.v[1]*Y[1],-x.p.v[2]*Y[2]);else e.translate(x.p.v[0]*Y,x.p.v[1]*Y,-x.p.v[2]*Y);if(o.strokeWidthAnim)uo=Ho<0?0:Ho;if(o.strokeColorAnim)di="rgb("+Math.round(po[0]*255)+","+Math.round(po[1]*255)+","+Math.round(po[2]*255)+")";if(o.fillColorAnim&&o.fc)ai="rgb("+Math.round(so[0]*255)+","+Math.round(so[1]*255)+","+Math.round(so[2]*255)+")";if(this._hasMaskedPath){if(e.translate(0,-o.ls),e.translate(0,a[1]*j*0.01+h,0),this._pathData.p.v){I=(v.point[1]-k.point[1])/(v.point[0]-k.point[0]);var mi=Math.atan(I)*180/Math.PI;if(v.point[0]<k.point[0])mi+=180;e.rotate(-mi*Math.PI/180)}if(e.translate(E,oo,0),z-=a[0]*f[p].an*0.005,f[p+1]&&A!==f[p+1].ind)z+=f[p].an/2,z+=o.tr*0.001*o.finalSize}else{if(e.translate(l,h,0),o.ps)e.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(o.j){case 1:e.translate(f[p].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[p].line]),0,0);break;case 2:e.translate(f[p].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[p].line])/2,0,0);break;default:break}e.translate(0,-o.ls),e.translate(M,0,0),e.translate(a[0]*f[p].an*0.005,a[1]*j*0.01,0),l+=f[p].l+o.tr*0.001*o.finalSize}if(n==="html")Mo=e.toCSS();else if(n==="svg")Mo=e.to2dCSS();else ti=[e.props[0],e.props[1],e.props[2],e.props[3],e.props[4],e.props[5],e.props[6],e.props[7],e.props[8],e.props[9],e.props[10],e.props[11],e.props[12],e.props[13],e.props[14],e.props[15]];ri=Zo}if(s<=p)P=new LetterProps(ri,uo,di,ai,Mo,ti),this.renderedLetters.push(P),s+=1,this.lettersChangedFlag=!0;else P=this.renderedLetters[p],this.lettersChangedFlag=P.update(ri,uo,di,ai,Mo,ti)||this.lettersChangedFlag}},TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId)return;this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties()},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(o,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(o,i,a),this.textProperty=new TextProperty(this,o.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(o.t,this.renderType,this),this.initTransform(o,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)},ITextElement.prototype.createPathShape=function(o,i){var a,t=i.length,r,e="";for(a=0;a<t;a+=1)if(i[a].ty==="sh")r=i[a].ks.k,e+=buildShapeString(r,r.i.length,!0,o);return e},ITextElement.prototype.updateDocumentData=function(o,i){this.textProperty.updateDocumentData(o,i)},ITextElement.prototype.canResizeFont=function(o){this.textProperty.canResizeFont(o)},ITextElement.prototype.setMinimumFontSize=function(o){this.textProperty.setMinimumFontSize(o)},ITextElement.prototype.applyTextPropertiesToMatrix=function(o,i,a,t,r){if(o.ps)i.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(i.translate(0,-o.ls,0),o.j){case 1:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a]),0,0);break;case 2:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a])/2,0,0);break;default:break}i.translate(t,r,0)},ITextElement.prototype.buildColor=function(o){return"rgb("+Math.round(o[0]*255)+","+Math.round(o[1]*255)+","+Math.round(o[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){if(this.textProperty._mdf||this.textProperty._isFirstFrame)this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1};var emptyShapeData={shapes:[]};function SVGTextLottieElement(o,i,a){this.textSpans=[],this.renderType="svg",this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars)this.textContainer=createNS("text")},SVGTextLottieElement.prototype.buildTextContents=function(o){var i=0,a=o.length,t=[],r="";while(i<a){if(o[i]===String.fromCharCode(13)||o[i]===String.fromCharCode(3))t.push(r),r="";else r+=o[i];i+=1}return t.push(r),t},SVGTextLottieElement.prototype.buildShapeData=function(o,i){if(o.shapes&&o.shapes.length){var a=o.shapes[0];if(a.it){var t=a.it[a.it.length-1];if(t.s)t.s.k[0]=i,t.s.k[1]=i}}return o},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var o,i,a=this.textProperty.currentData;if(this.renderedLetters=createSizedArray(a?a.l.length:0),a.fc)this.layerElement.setAttribute("fill",this.buildColor(a.fc));else this.layerElement.setAttribute("fill","rgba(0,0,0,0)");if(a.sc)this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw);this.layerElement.setAttribute("font-size",a.finalSize);var t=this.globalData.fontManager.getFontByName(a.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var{fWeight:r,fStyle:e}=a;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",a.t);var n=a.l||[],s=!!this.globalData.fontManager.chars;i=n.length;var l,h=this.mHelper,p="",H=this.data.singleShape,f=0,y=0,z=!0,v=a.tr*0.001*a.finalSize;if(H&&!s&&!a.sz){var q=this.textContainer,w="start";switch(a.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}q.setAttribute("text-anchor",w),q.setAttribute("letter-spacing",v);var u=this.buildTextContents(a.finalText);i=u.length,y=a.ps?a.ps[1]+a.ascent:0;for(o=0;o<i;o+=1){if(l=this.textSpans[o].span||createNS("tspan"),l.textContent=u[o],l.setAttribute("x",0),l.setAttribute("y",y),l.style.display="inherit",q.appendChild(l),!this.textSpans[o])this.textSpans[o]={span:null,glyph:null};this.textSpans[o].span=l,y+=a.finalLineHeight}this.layerElement.appendChild(q)}else{var g=this.textSpans.length,k;for(o=0;o<i;o+=1){if(!this.textSpans[o])this.textSpans[o]={span:null,childSpan:null,glyph:null};if(!s||!H||o===0){if(l=g>o?this.textSpans[o].span:createNS(s?"g":"text"),g<=o){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=l,s){var W=createNS("g");l.appendChild(W),this.textSpans[o].childSpan=W}this.textSpans[o].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(h.reset(),H){if(n[o].n)f=-v,y+=a.yOffset,y+=z?1:0,z=!1;this.applyTextPropertiesToMatrix(a,h,n[o].line,f,y),f+=n[o].l||0,f+=v}if(s){k=this.globalData.fontManager.getCharData(a.finalText[o],t.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var R;if(k.t===1)R=new SVGCompElement(k.data,this.globalData,this);else{var Q=emptyShapeData;if(k.data&&k.data.shapes)Q=this.buildShapeData(k.data,a.finalSize);R=new SVGShapeElement(Q,this.globalData,this)}if(this.textSpans[o].glyph){var b=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(b.layerElement),b.destroy()}if(this.textSpans[o].glyph=R,R._debug=!0,R.prepareFrame(0),R.renderFrame(),this.textSpans[o].childSpan.appendChild(R.layerElement),k.t===1)this.textSpans[o].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else{if(H)l.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")");l.textContent=n[o].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}}if(H&&l)l.setAttribute("d",p)}while(o<this.textSpans.length)this.textSpans[o].span.style.display="none",o+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var o=this.layerElement.getBBox();this.bbox={top:o.y,left:o.x,width:o.width,height:o.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var o,i=this.textSpans.length,a;this.renderedFrame=this.comp.renderedFrame;for(o=0;o<i;o+=1)if(a=this.textSpans[o].glyph,a){if(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf)this._mdf=!0}},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),!this.data.singleShape||this._mdf){if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=!0;var o,i,a=this.textAnimator.renderedLetters,t=this.textProperty.currentData.l;i=t.length;var r,e,n;for(o=0;o<i;o+=1)if(!t[o].n){if(r=a[o],e=this.textSpans[o].span,n=this.textSpans[o].glyph,n)n.renderFrame();if(r._mdf.m)e.setAttribute("transform",r.m);if(r._mdf.o)e.setAttribute("opacity",r.o);if(r._mdf.sw)e.setAttribute("stroke-width",r.sw);if(r._mdf.sc)e.setAttribute("stroke",r.sc);if(r._mdf.fc)e.setAttribute("fill",r.fc)}}}};function ISolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var o=createNS("rect");o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.layerElement.appendChild(o)};function NullElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initFrame(),this.initTransform(o,i,a),this.initHierarchy()}NullElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(o){return new NullElement(o,this.globalData,this)},SVGRendererBase.prototype.createShape=function(o){return new SVGShapeElement(o,this.globalData,this)},SVGRendererBase.prototype.createText=function(o){return new SVGTextLottieElement(o,this.globalData,this)},SVGRendererBase.prototype.createImage=function(o){return new IImageElement(o,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(o){return new ISolidElement(o,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(o){if(this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize)this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize);else this.svgElement.setAttribute("viewBox","0 0 "+o.w+" "+o.h);if(!this.renderConfig.viewBoxOnly)this.svgElement.setAttribute("width",o.w),this.svgElement.setAttribute("height",o.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility;if(this.renderConfig.width)this.svgElement.setAttribute("width",this.renderConfig.width);if(this.renderConfig.height)this.svgElement.setAttribute("height",this.renderConfig.height);if(this.renderConfig.className)this.svgElement.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.svgElement.setAttribute("id",this.renderConfig.id);if(this.renderConfig.focusable!==void 0)this.svgElement.setAttribute("focusable",this.renderConfig.focusable);this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(o,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=o;var a=createNS("clipPath"),t=createNS("rect");t.setAttribute("width",o.w),t.setAttribute("height",o.h),t.setAttribute("x",0),t.setAttribute("y",0);var r=createElementID();a.setAttribute("id",r),a.appendChild(t),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),i.appendChild(a),this.layers=o.layers,this.elements=createSizedArray(o.layers.length)},SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.layerElement=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(o){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===o)return i;return-1},SVGRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;i[o]=!0;var a=this.createItem(this.layers[o]);if(i[o]=a,getExpressionsPlugin()){if(this.layers[o].ty===0)this.globalData.projectInterface.registerComposition(a);a.initExpressions()}if(this.appendElementInPos(a,o),this.layers[o].tt){var t="tp"in this.layers[o]?this.findIndexByInd(this.layers[o].tp):o-1;if(t===-1)return;if(!this.elements[t]||this.elements[t]===!0)this.buildItem(t),this.addPendingElement(a);else{var r=i[t],e=r.getMatte(this.layers[o].tt);a.setMatte(e)}}},SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();if(o.checkParenting(),o.data.tt){var i=0,a=this.elements.length;while(i<a){if(this.elements[i]===o){var t="tp"in o.data?this.findIndexByInd(o.data.tp):i-1,r=this.elements[t],e=r.getMatte(this.layers[i].tt);o.setMatte(e);break}i+=1}}}},SVGRendererBase.prototype.renderFrame=function(o){if(this.renderedFrame===o||this.destroyed)return;if(o===null)o=this.renderedFrame;else this.renderedFrame=o;this.globalData.frameNum=o,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=o,this.globalData._mdf=!1;var i,a=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].prepareFrame(o-this.layers[i].st);if(this.globalData._mdf){for(i=0;i<a;i+=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=0,r;while(t<i){if(this.elements[t]&&this.elements[t]!==!0&&this.elements[t].getBaseElement())r=this.elements[t].getBaseElement();t+=1}if(r)this.layerElement.insertBefore(a,r);else this.layerElement.appendChild(a)},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(o,i,a){if(this.initFrame(),this.initBaseData(o,i,a),this.initTransform(o,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.data.xt||!i.progressiveLoad)this.buildAllItems();this.hide()},ICompElement.prototype.prepareFrame=function(o){if(this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),!this.isInRange&&!this.data.xt)return;if(!this.tm._placeholder){var i=this.tm.v;if(i===this.data.op)i=this.data.op-1;this.renderedFrame=i}else this.renderedFrame=o/this.data.sr;var a,t=this.elements.length;if(!this.completeLayers)this.checkLayers(this.renderedFrame);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a]){if(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf)this._mdf=!0}},ICompElement.prototype.renderInnerContent=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.completeLayers||this.elements[o])this.elements[o].renderFrame()},ICompElement.prototype.setElements=function(o){this.elements=o},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.elements[o])this.elements[o].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(o,i,a){this.layers=o.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function SVGRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(i&&i.title){var t=createNS("title"),r=createElementID();t.setAttribute("id",r),t.textContent=i.title,this.svgElement.appendChild(t),a+=r}if(i&&i.description){var e=createNS("desc"),n=createElementID();e.setAttribute("id",n),e.textContent=i.description,this.svgElement.appendChild(e),a+=" "+n}if(a)this.svgElement.setAttribute("aria-labelledby",a);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function o(i){var a,t=i.length,r="_";for(a=0;a<t;a+=1)r+=i[a].transform.key+"_";var e=this.sequences[r];if(!e)e={transforms:[].concat(i),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=e,this.sequenceList.push(e);return e},processSequence:function o(i,a){var t=0,r=i.transforms.length,e=a;while(t<r&&!a){if(i.transforms[t].transform.mProps._mdf){e=!0;break}t+=1}if(e){i.finalTransform.reset();for(t=r-1;t>=0;t-=1)i.finalTransform.multiply(i.transforms[t].transform.mProps.v)}i._mdf=e},processSequences:function o(i){var a,t=this.sequenceList.length;for(a=0;a<t;a+=1)this.processSequence(this.sequenceList[a],i)},getNewKey:function o(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function o(){var i="__lottie_element_luma_buffer",a=null,t=null,r=null;function e(){var l=createNS("svg"),h=createNS("filter"),p=createNS("feColorMatrix");if(h.setAttribute("id",i),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),h.appendChild(p),l.appendChild(h),l.setAttribute("id",i+"_svg"),featureSupport.svgLumaHidden)l.style.display="none";return l}function n(){if(!a)r=e(),document.body.appendChild(r),a=createTag("canvas"),t=a.getContext("2d"),t.filter="url(#"+i+")",t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1)}function s(l){if(!a)n();return a.width=l.width,a.height=l.height,t.filter="url(#"+i+")",a}return{load:n,get:s}};function createCanvas(o,i){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(o,i);var a=createTag("canvas");return a.width=o,a.height=i,a}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(o){var i,a=o.data.ef?o.data.ef.length:0;this.filters=[];var t;for(i=0;i<a;i+=1){t=null;var r=o.data.ef[i].ty;if(registeredEffects[r]){var e=registeredEffects[r].effect;t=new e(o.effectsManager.effectElements[i],o)}if(t)this.filters.push(t)}if(this.filters.length)o.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},CVEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect(o,i){registeredEffects[o]={effect:i}}function CVMaskElement(o,i){this.data=o,this.element=i,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a,t=this.masksProperties.length,r=!1;for(a=0;a<t;a+=1){if(this.masksProperties[a].mode!=="n")r=!0;this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3)}if(this.hasMasks=r,r)this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks)return;var o=this.element.finalTransform.mat,i=this.element.canvasContext,a,t=this.masksProperties.length,r,e,n;i.beginPath();for(a=0;a<t;a+=1)if(this.masksProperties[a].mode!=="n"){if(this.masksProperties[a].inv)i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0);n=this.viewData[a].v,r=o.applyToPointArray(n.v[0][0],n.v[0][1],0),i.moveTo(r[0],r[1]);var s,l=n._length;for(s=1;s<l;s+=1)e=o.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);e=o.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}this.element.globalData.renderer.save(!0),i.clip()},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function o(){},initRendererElement:function o(){},createContainerElements:function o(){if(this.data.tt>=1){this.buffers=[];var i=this.globalData.canvasContext,a=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(a);var t=assetLoader.createCanvas(i.canvas.width,i.canvas.height);if(this.buffers.push(t),this.data.tt>=3&&!document._isProxy)assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function o(){},setBlendMode:function o(){var i=this.globalData;if(i.blendMode!==this.data.bm){i.blendMode=this.data.bm;var a=getBlendMode(this.data.bm);i.canvasContext.globalCompositeOperation=a}},createRenderableComponents:function o(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function o(){if(!this.hidden&&(!this.isInRange||this.isTransparent))this.hidden=!0},showElement:function o(){if(this.isInRange&&!this.isTransparent)this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0},clearCanvas:function o(i){i.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function o(){if(this.data.tt>=1){var i=this.buffers[0],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function o(){if(this.data.tt>=1){var i=this.buffers[1],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var t=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(t.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),e=r.getContext("2d");e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(i,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function o(i){if(this.hidden||this.data.hd)return;if(this.data.td===1&&!i)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var a=this.data.ty===0;if(this.prepareLayer(),this.globalData.renderer.save(a),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(a),this.exitLayer(),this.maskManager.hasMasks)this.globalData.renderer.restore(!0);if(this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(o,i,a,t){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;if(i.ty==="rc")r=5;else if(i.ty==="el")r=6;else if(i.ty==="sr")r=7;this.sh=ShapePropertyFactory.getShapeProp(o,i,r,o);var e,n=a.length,s;for(e=0;e<n;e+=1)if(!a[e].closed)s={transforms:t.addTransformSequence(a[e].transforms),trNodes:[]},this.styledShapes.push(s),a[e].elements.push(s)}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(o,i){var a={data:o,type:o.ty,preTransforms:this.transformsManager.addTransformSequence(i),transforms:[],elements:[],closed:o.hd===!0},t={};if(o.ty==="fl"||o.ty==="st"){if(t.c=PropertyFactory.getProp(this,o.c,1,255,this),!t.c.k)a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"}else if(o.ty==="gf"||o.ty==="gs")t.s=PropertyFactory.getProp(this,o.s,1,null,this),t.e=PropertyFactory.getProp(this,o.e,1,null,this),t.h=PropertyFactory.getProp(this,o.h||{k:0},0,0.01,this),t.a=PropertyFactory.getProp(this,o.a||{k:0},0,degToRads,this),t.g=new GradientProperty(this,o.g,this);if(t.o=PropertyFactory.getProp(this,o.o,0,0.01,this),o.ty==="st"||o.ty==="gs"){if(a.lc=lineCapEnum[o.lc||2],a.lj=lineJoinEnum[o.lj||2],o.lj==1)a.ml=o.ml;if(t.w=PropertyFactory.getProp(this,o.w,0,null,this),!t.w.k)a.wi=t.w.v;if(o.d){var r=new DashProperty(this,o.d,"canvas",this);if(t.d=r,!t.d.k)a.da=t.d.dashArray,a.do=t.d.dashoffset[0]}}else a.r=o.r===2?"evenodd":"nonzero";return this.stylesList.push(a),t.style=a,t},CVShapeElement.prototype.createGroupElement=function(){var o={it:[],prevViewData:[]};return o},CVShapeElement.prototype.createTransformElement=function(o){var i={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,o.o,0,0.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,o,this)}};return i},CVShapeElement.prototype.createShapeElement=function(o){var i=new CVShapeData(this,o,this.stylesList,this.transformsManager);return this.shapes.push(i),this.addShapeToModifiers(i),i},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(o){var i,a=this.stylesList.length;for(i=0;i<a;i+=1)if(!this.stylesList[i].closed)this.stylesList[i].transforms.push(o)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var o,i=this.stylesList.length;for(o=0;o<i;o+=1)if(!this.stylesList[o].closed)this.stylesList[o].transforms.pop()},CVShapeElement.prototype.closeStyles=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].closed=!0},CVShapeElement.prototype.searchShapes=function(o,i,a,t,r){var e,n=o.length-1,s,l,h=[],p=[],H,f,y,z=[].concat(r);for(e=n;e>=0;e-=1){if(H=this.searchProcessedElement(o[e]),!H)o[e]._shouldRender=t;else i[e]=a[H-1];if(o[e].ty==="fl"||o[e].ty==="st"||o[e].ty==="gf"||o[e].ty==="gs"){if(!H)i[e]=this.createStyleElement(o[e],z);else i[e].style.closed=!1;h.push(i[e].style)}else if(o[e].ty==="gr"){if(!H)i[e]=this.createGroupElement(o[e]);else{l=i[e].it.length;for(s=0;s<l;s+=1)i[e].prevViewData[s]=i[e].it[s]}this.searchShapes(o[e].it,i[e].it,i[e].prevViewData,t,z)}else if(o[e].ty==="tr"){if(!H)y=this.createTransformElement(o[e]),i[e]=y;z.push(i[e]),this.addTransformToStyleList(i[e])}else if(o[e].ty==="sh"||o[e].ty==="rc"||o[e].ty==="el"||o[e].ty==="sr"){if(!H)i[e]=this.createShapeElement(o[e])}else if(o[e].ty==="tm"||o[e].ty==="rd"||o[e].ty==="pb"||o[e].ty==="zz"||o[e].ty==="op"){if(!H)f=ShapeModifiers.getModifier(o[e].ty),f.init(this,o[e]),i[e]=f,this.shapeModifiers.push(f);else f=i[e],f.closed=!1;p.push(f)}else if(o[e].ty==="rp"){if(!H)f=ShapeModifiers.getModifier(o[e].ty),i[e]=f,f.init(this,o,e,i),this.shapeModifiers.push(f),t=!1;else f=i[e],f.closed=!0;p.push(f)}this.addProcessedElement(o[e],e+1)}this.removeTransformFromStyleList(),this.closeStyles(h),n=p.length;for(e=0;e<n;e+=1)p[e].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(o,i){if(o._opMdf||i.op._mdf||this._isFirstFrame)i.opacity=o.opacity,i.opacity*=i.op.v,i._opMdf=!0},CVShapeElement.prototype.drawLayer=function(){var o,i=this.stylesList.length,a,t,r,e,n,s,l=this.globalData.renderer,h=this.globalData.canvasContext,p,H;for(o=0;o<i;o+=1)if(H=this.stylesList[o],p=H.type,!((p==="st"||p==="gs")&&H.wi===0||!H.data._shouldRender||H.coOp===0||this.globalData.currentGlobalAlpha===0)){if(l.save(),n=H.elements,p==="st"||p==="gs")l.ctxStrokeStyle(p==="st"?H.co:H.grd),l.ctxLineWidth(H.wi),l.ctxLineCap(H.lc),l.ctxLineJoin(H.lj),l.ctxMiterLimit(H.ml||0);else l.ctxFillStyle(p==="fl"?H.co:H.grd);if(l.ctxOpacity(H.coOp),p!=="st"&&p!=="gs")h.beginPath();l.ctxTransform(H.preTransforms.finalTransform.props),t=n.length;for(a=0;a<t;a+=1){if(p==="st"||p==="gs"){if(h.beginPath(),H.da)h.setLineDash(H.da),h.lineDashOffset=H.do}s=n[a].trNodes,e=s.length;for(r=0;r<e;r+=1)if(s[r].t==="m")h.moveTo(s[r].p[0],s[r].p[1]);else if(s[r].t==="c")h.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]);else h.closePath();if(p==="st"||p==="gs"){if(l.ctxStroke(),H.da)h.setLineDash(this.dashResetter)}}if(p!=="st"&&p!=="gs")this.globalData.renderer.ctxFill(H.r);l.restore()}},CVShapeElement.prototype.renderShape=function(o,i,a,t){var r,e=i.length-1,n;n=o;for(r=e;r>=0;r-=1)if(i[r].ty==="tr")n=a[r].transform,this.renderShapeTransform(o,n);else if(i[r].ty==="sh"||i[r].ty==="el"||i[r].ty==="rc"||i[r].ty==="sr")this.renderPath(i[r],a[r]);else if(i[r].ty==="fl")this.renderFill(i[r],a[r],n);else if(i[r].ty==="st")this.renderStroke(i[r],a[r],n);else if(i[r].ty==="gf"||i[r].ty==="gs")this.renderGradientFill(i[r],a[r],n);else if(i[r].ty==="gr")this.renderShape(n,i[r].it,a[r].it);else if(i[r].ty==="tm");if(t)this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(o,i){if(this._isFirstFrame||i._mdf||o.transforms._mdf){var a=o.trNodes,t=i.paths,r,e,n,s=t._length;a.length=0;var l=o.transforms.finalTransform;for(n=0;n<s;n+=1){var h=t.shapes[n];if(h&&h.v){e=h._length;for(r=1;r<e;r+=1){if(r===1)a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)});a.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])})}if(e===1)a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)});if(h.c&&e)a.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),a.push({t:"z"})}}o.trNodes=a}},CVShapeElement.prototype.renderPath=function(o,i){if(o.hd!==!0&&o._shouldRender){var a,t=i.styledShapes.length;for(a=0;a<t;a+=1)this.renderStyledShape(i.styledShapes[a],i.sh)}},CVShapeElement.prototype.renderFill=function(o,i,a){var t=i.style;if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderGradientFill=function(o,i,a){var t=i.style,r;if(!t.grd||i.g._mdf||i.s._mdf||i.e._mdf||o.t!==1&&(i.h._mdf||i.a._mdf)){var e=this.globalData.canvasContext,n=i.s.v,s=i.e.v;if(o.t===1)r=e.createLinearGradient(n[0],n[1],s[0],s[1]);else{var l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)),h=Math.atan2(s[1]-n[1],s[0]-n[0]),p=i.h.v;if(p>=1)p=0.99;else if(p<=-1)p=-0.99;var H=l*p,f=Math.cos(h+i.a.v)*H+n[0],y=Math.sin(h+i.a.v)*H+n[1];r=e.createRadialGradient(f,y,0,n[0],n[1],l)}var z,v=o.g.p,q=i.g.c,w=1;for(z=0;z<v;z+=1){if(i.g._hasOpacity&&i.g._collapsable)w=i.g.o[z*2+1];r.addColorStop(q[z*4]/100,"rgba("+q[z*4+1]+","+q[z*4+2]+","+q[z*4+3]+","+w+")")}t.grd=r}t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(o,i,a){var{style:t,d:r}=i;if(r&&(r._mdf||this._isFirstFrame))t.da=r.dashArray,t.do=r.dashoffset[0];if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity;if(i.w._mdf||this._isFirstFrame)t.wi=i.w.v},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(o,i,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=!1;if(o.fc)i=!0,this.values.fill=this.buildColor(o.fc);else this.values.fill="rgba(0,0,0,0)";this.fill=i;var a=!1;if(o.sc)a=!0,this.values.stroke=this.buildColor(o.sc),this.values.sWidth=o.sw;var t=this.globalData.fontManager.getFontByName(o.f),r,e,n=o.l,s=this.mHelper;this.stroke=a,this.values.fValue=o.finalSize+"px "+this.globalData.fontManager.getFontByName(o.f).fFamily,e=o.finalText.length;var l,h,p,H,f,y,z,v,q,w,u=this.data.singleShape,g=o.tr*0.001*o.finalSize,k=0,W=0,R=!0,Q=0;for(r=0;r<e;r+=1){if(l=this.globalData.fontManager.getCharData(o.finalText[r],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),h=l&&l.data||{},s.reset(),u&&n[r].n)k=-g,W+=o.yOffset,W+=R?1:0,R=!1;if(f=h.shapes?h.shapes[0].it:[],z=f.length,s.scale(o.finalSize/100,o.finalSize/100),u)this.applyTextPropertiesToMatrix(o,s,n[r].line,k,W);q=createSizedArray(z-1);var b=0;for(y=0;y<z;y+=1)if(f[y].ty==="sh"){H=f[y].ks.k.i.length,v=f[y].ks.k,w=[];for(p=1;p<H;p+=1){if(p===1)w.push(s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0));w.push(s.applyToX(v.o[p-1][0],v.o[p-1][1],0),s.applyToY(v.o[p-1][0],v.o[p-1][1],0),s.applyToX(v.i[p][0],v.i[p][1],0),s.applyToY(v.i[p][0],v.i[p][1],0),s.applyToX(v.v[p][0],v.v[p][1],0),s.applyToY(v.v[p][0],v.v[p][1],0))}w.push(s.applyToX(v.o[p-1][0],v.o[p-1][1],0),s.applyToY(v.o[p-1][0],v.o[p-1][1],0),s.applyToX(v.i[0][0],v.i[0][1],0),s.applyToY(v.i[0][0],v.i[0][1],0),s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0)),q[b]=w,b+=1}if(u)k+=n[r].l,k+=g;if(this.textSpans[Q])this.textSpans[Q].elem=q;else this.textSpans[Q]={elem:q};Q+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var o=this.canvasContext;if(o.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),!this.data.singleShape)this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var i,a,t,r,e,n,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;a=l.length;var h,p=null,H=null,f=null,y,z,v=this.globalData.renderer;for(i=0;i<a;i+=1)if(!l[i].n){if(h=s[i],h)v.save(),v.ctxTransform(h.p),v.ctxOpacity(h.o);if(this.fill){if(h&&h.fc){if(p!==h.fc)v.ctxFillStyle(h.fc),p=h.fc}else if(p!==this.values.fill)p=this.values.fill,v.ctxFillStyle(this.values.fill);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),v.ctxFill()}if(this.stroke){if(h&&h.sw){if(f!==h.sw)f=h.sw,v.ctxLineWidth(h.sw)}else if(f!==this.values.sWidth)f=this.values.sWidth,v.ctxLineWidth(this.values.sWidth);if(h&&h.sc){if(H!==h.sc)H=h.sc,v.ctxStrokeStyle(h.sc)}else if(H!==this.values.stroke)H=this.values.stroke,v.ctxStrokeStyle(this.values.stroke);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),v.ctxStroke()}if(h)this.globalData.renderer.restore()}};function CVImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.img=i.imageLoader.getAsset(this.assetData),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var o=createTag("canvas");o.width=this.assetData.w,o.height=this.assetData.h;var i=o.getContext("2d"),a=this.img.width,t=this.img.height,r=a/t,e=this.assetData.w/this.assetData.h,n,s,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(r>e&&l==="xMidYMid slice"||r<e&&l!=="xMidYMid slice")s=t,n=s*e;else n=a,s=n/e;i.drawImage(this.img,(a-n)/2,(t-s)/2,n,s,0,0,this.assetData.w,this.assetData.h),this.img=o}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(o){return new CVShapeElement(o,this.globalData,this)},CanvasRendererBase.prototype.createText=function(o){return new CVTextElement(o,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(o){return new CVImageElement(o,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(o){return new CVSolidElement(o,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(o){if(o[0]===1&&o[1]===0&&o[4]===0&&o[5]===1&&o[12]===0&&o[13]===0)return;this.canvasContext.transform(o[0],o[1],o[4],o[5],o[12],o[13])},CanvasRendererBase.prototype.ctxOpacity=function(o){this.canvasContext.globalAlpha*=o<0?0:o},CanvasRendererBase.prototype.ctxFillStyle=function(o){this.canvasContext.fillStyle=o},CanvasRendererBase.prototype.ctxStrokeStyle=function(o){this.canvasContext.strokeStyle=o},CanvasRendererBase.prototype.ctxLineWidth=function(o){this.canvasContext.lineWidth=o},CanvasRendererBase.prototype.ctxLineCap=function(o){this.canvasContext.lineCap=o},CanvasRendererBase.prototype.ctxLineJoin=function(o){this.canvasContext.lineJoin=o},CanvasRendererBase.prototype.ctxMiterLimit=function(o){this.canvasContext.miterLimit=o},CanvasRendererBase.prototype.ctxFill=function(o){this.canvasContext.fill(o)},CanvasRendererBase.prototype.ctxFillRect=function(o,i,a,t){this.canvasContext.fillRect(o,i,a,t)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(o){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}if(o)this.globalData.blendMode="source-over";this.contextData.restore(o)},CanvasRendererBase.prototype.configAnimation=function(o){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var i=this.animationItem.container.style;i.width="100%",i.height="100%";var a="0px 0px 0px";if(i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,i["-webkit-transform"]=a,i.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className)this.animationItem.container.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=o,this.layers=o.layers,this.transformCanvas={w:o.w,h:o.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(o,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(o.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(o,i){this.reset();var a,t;if(o)a=o,t=i,this.canvasContext.canvas.width=a,this.canvasContext.canvas.height=t;else{if(this.animationItem.wrapper&&this.animationItem.container)a=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight;else a=this.canvasContext.canvas.width,t=this.canvasContext.canvas.height;this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=t*this.renderConfig.dpr}var r,e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var n=this.renderConfig.preserveAspectRatio.split(" "),s=n[1]||"meet",l=n[0]||"xMidYMid",h=l.substr(0,4),p=l.substr(4);if(r=a/t,e=this.transformCanvas.w/this.transformCanvas.h,e>r&&s==="meet"||e<r&&s==="slice")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr);else this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr);if(h==="xMid"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr;else if(h==="xMax"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr;else this.transformCanvas.tx=0;if(p==="YMid"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr;else if(p==="YMax"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr;else this.transformCanvas.ty=0}else if(this.renderConfig.preserveAspectRatio==="none")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;else this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper)this.animationItem.wrapper.innerText="";var o,i=this.layers?this.layers.length:0;for(o=i-1;o>=0;o-=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(o,i){if(this.renderedFrame===o&&this.renderConfig.clearCanvas===!0&&!i||this.destroyed||o===-1)return;this.renderedFrame=o,this.globalData.frameNum=o-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||i,this.globalData.projectInterface.currentFrame=o;var a,t=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].prepareFrame(o-this.layers[a].st);if(this.globalData._mdf){if(this.renderConfig.clearCanvas===!0)this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h);else this.save();for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].renderFrame();if(this.renderConfig.clearCanvas!==!0)this.restore()}},CanvasRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;var a=this.createItem(this.layers[o],this,this.globalData);i[o]=a,a.initExpressions()},CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var o,i=15;for(o=0;o<i;o+=1){var a=new CanvasContext;this.stack[o]=a}this._length=i,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var o=this._length*2,i=0;for(i=this._length;i<o;i+=1)this.stack[i]=new CanvasContext;this._length=o},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(o){this.cArrPos-=1;var i=this.stack[this.cArrPos],a=i.transform,t,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=a[t];if(o){this.nativeContext.restore();var e=this.stack[this.cArrPos+1];this.appliedFillStyle=e.fillStyle,this.appliedStrokeStyle=e.strokeStyle,this.appliedLineWidth=e.lineWidth,this.appliedLineCap=e.lineCap,this.appliedLineJoin=e.lineJoin,this.appliedMiterLimit=e.miterLimit}if(this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),o||i.opacity!==-1&&this.currentOpacity!==i.opacity)this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity;this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(o){if(o)this.nativeContext.save();var i=this.cTr.props;if(this._length<=this.cArrPos)this.duplicate();var a=this.stack[this.cArrPos],t;for(t=0;t<16;t+=1)a.transform[t]=i[t];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=a.opacity,r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,r.lineWidth=a.lineWidth,r.lineCap=a.lineCap,r.lineJoin=a.lineJoin,r.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(o){this.stack[this.cArrPos].opacity=o},CVContextData.prototype.setContext=function(o){this.nativeContext=o},CVContextData.prototype.fillStyle=function(o){if(this.stack[this.cArrPos].fillStyle!==o)this.currentFillStyle=o,this.stack[this.cArrPos].fillStyle=o},CVContextData.prototype.strokeStyle=function(o){if(this.stack[this.cArrPos].strokeStyle!==o)this.currentStrokeStyle=o,this.stack[this.cArrPos].strokeStyle=o},CVContextData.prototype.lineWidth=function(o){if(this.stack[this.cArrPos].lineWidth!==o)this.currentLineWidth=o,this.stack[this.cArrPos].lineWidth=o},CVContextData.prototype.lineCap=function(o){if(this.stack[this.cArrPos].lineCap!==o)this.currentLineCap=o,this.stack[this.cArrPos].lineCap=o},CVContextData.prototype.lineJoin=function(o){if(this.stack[this.cArrPos].lineJoin!==o)this.currentLineJoin=o,this.stack[this.cArrPos].lineJoin=o},CVContextData.prototype.miterLimit=function(o){if(this.stack[this.cArrPos].miterLimit!==o)this.currentMiterLimit=o,this.stack[this.cArrPos].miterLimit=o},CVContextData.prototype.transform=function(o){this.transformMat.cloneFromProps(o);var i=this.cTr;this.transformMat.multiply(i),i.cloneFromProps(this.transformMat.props);var a=i.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(o){var i=this.stack[this.cArrPos].opacity;if(i*=o<0?0:o,this.stack[this.cArrPos].opacity!==i){if(this.currentOpacity!==o)this.nativeContext.globalAlpha=o,this.currentOpacity=o;this.stack[this.cArrPos].opacity=i}},CVContextData.prototype.fill=function(o){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fill(o)},CVContextData.prototype.fillRect=function(o,i,a,t){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fillRect(o,i,a,t)},CVContextData.prototype.stroke=function(){if(this.appliedStrokeStyle!==this.currentStrokeStyle)this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle;if(this.appliedLineWidth!==this.currentLineWidth)this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth;if(this.appliedLineCap!==this.currentLineCap)this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap;if(this.appliedLineJoin!==this.currentLineJoin)this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin;if(this.appliedMiterLimit!==this.currentMiterLimit)this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit;this.nativeContext.stroke()};function CVCompElement(o,i,a){this.completeLayers=!1,this.layers=o.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var o=this.canvasContext;o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip();var i,a=this.layers.length;for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var o,i=this.layers.length;for(o=i-1;o>=0;o-=1)if(this.elements[o])this.elements[o].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function CanvasRenderer(o,i){if(this.animationItem=o,this.renderConfig={clearCanvas:i&&i.clearCanvas!==void 0?i.clearCanvas:!0,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper)this.renderConfig.dpr=i&&i.dpr||window.devicePixelRatio||1;if(this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas)this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData)}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function o(){},initRendererElement:function o(){if(this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask)this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement);else this.layerElement=this.baseElement;styleDiv(this.baseElement)},createContainerElements:function o(){if(this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){var i=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var a=this.finalTransform.mat.toCSS();i.transform=a,i.webkitTransform=a}if(this.finalTransform._opMdf)i.opacity=this.finalTransform.mProp.o.v},renderFrame:function o(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){if(this.layerElement=null,this.transformedElement=null,this.matteElement)this.matteElement=null;if(this.maskManager)this.maskManager.destroy(),this.maskManager=null},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function o(){},setMatte:function o(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var o;if(this.data.hasMask)o=createNS("rect"),o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh);else o=createTag("div"),o.style.width=this.data.sw+"px",o.style.height=this.data.sh+"px",o.style.backgroundColor=this.data.sc;this.layerElement.appendChild(o)};function HShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(o,i,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var o;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),o=this.svgElement;else{o=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;o.setAttribute("width",i.w),o.setAttribute("height",i.h),o.appendChild(this.shapesContainer),this.layerElement.appendChild(o)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=o},HShapeElement.prototype.getTransformedPoint=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i=o[a].mProps.v.applyToPointArray(i[0],i[1],0);return i},HShapeElement.prototype.calculateShapeBoundingBox=function(o,i){var a=o.sh.v,t=o.transformers,r,e=a._length,n,s,l,h;if(e<=1)return;for(r=0;r<e-1;r+=1)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[r+1]),h=this.getTransformedPoint(t,a.v[r+1]),this.checkBounds(n,s,l,h,i);if(a.c)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[0]),h=this.getTransformedPoint(t,a.v[0]),this.checkBounds(n,s,l,h,i)},HShapeElement.prototype.checkBounds=function(o,i,a,t,r){this.getBoundsOfCurve(o,i,a,t);var e=this.shapeBoundingBox;r.x=bmMin(e.left,r.x),r.xMax=bmMax(e.right,r.xMax),r.y=bmMin(e.top,r.y),r.yMax=bmMax(e.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(o,i,a,t){var r=[[o[0],t[0]],[o[1],t[1]]];for(var e,n,s,l,h,p,H,f=0;f<2;++f)if(n=6*o[f]-12*i[f]+6*a[f],e=-3*o[f]+9*i[f]-9*a[f]+3*t[f],s=3*i[f]-3*o[f],n|=0,e|=0,s|=0,e===0&&n===0);else if(e===0){if(l=-s/n,l>0&&l<1)r[f].push(this.calculateF(l,o,i,a,t,f))}else if(h=n*n-4*s*e,h>=0){if(p=(-n+bmSqrt(h))/(2*e),p>0&&p<1)r[f].push(this.calculateF(p,o,i,a,t,f));if(H=(-n-bmSqrt(h))/(2*e),H>0&&H<1)r[f].push(this.calculateF(H,o,i,a,t,f))}this.shapeBoundingBox.left=bmMin.apply(null,r[0]),this.shapeBoundingBox.top=bmMin.apply(null,r[1]),this.shapeBoundingBox.right=bmMax.apply(null,r[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,r[1])},HShapeElement.prototype.calculateF=function(o,i,a,t,r,e){return bmPow(1-o,3)*i[e]+3*bmPow(1-o,2)*o*a[e]+3*(1-o)*bmPow(o,2)*t[e]+bmPow(o,3)*r[e]},HShapeElement.prototype.calculateBoundingBox=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]&&o[a].sh)this.calculateShapeBoundingBox(o[a],i);else if(o[a]&&o[a].it)this.calculateBoundingBox(o[a].it,i);else if(o[a]&&o[a].style&&o[a].w)this.expandStrokeBoundingBox(o[a].w,i)},HShapeElement.prototype.expandStrokeBoundingBox=function(o,i){var a=0;if(o.keyframes){for(var t=0;t<o.keyframes.length;t+=1){var r=o.keyframes[t].s;if(r>a)a=r}a*=o.mult}else a=o.v*o.mult;i.x-=a,i.xMax+=a,i.y-=a,i.yMax+=a},HShapeElement.prototype.currentBoxContains=function(o){return this.currentBBox.x<=o.x&&this.currentBBox.y<=o.y&&this.currentBBox.width+this.currentBBox.x>=o.x+o.width&&this.currentBBox.height+this.currentBBox.y>=o.y+o.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var o=this.tempBoundingBox,i=999999;if(o.x=i,o.xMax=-i,o.y=i,o.yMax=-i,this.calculateBoundingBox(this.itemsData,o),o.width=o.xMax<o.x?0:o.xMax-o.x,o.height=o.yMax<o.y?0:o.yMax-o.y,this.currentBoxContains(o))return;var a=!1;if(this.currentBBox.w!==o.width)this.currentBBox.w=o.width,this.shapeCont.setAttribute("width",o.width),a=!0;if(this.currentBBox.h!==o.height)this.currentBBox.h=o.height,this.shapeCont.setAttribute("height",o.height),a=!0;if(a||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y){this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var t=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=r,t.webkitTransform=r}}};function HTextElement(o,i,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var o=createNS("g");this.maskedElement.appendChild(o),this.innerElem=o}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=this.innerElem.style,a=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)";if(i.fill=a,i.color=a,o.sc)i.stroke=this.buildColor(o.sc),i.strokeWidth=o.sw+"px";var t=this.globalData.fontManager.getFontByName(o.f);if(!this.globalData.fontManager.chars)if(i.fontSize=o.finalSize+"px",i.lineHeight=o.finalSize+"px",t.fClass)this.innerElem.className=t.fClass;else{i.fontFamily=t.fFamily;var{fWeight:r,fStyle:e}=o;i.fontStyle=e,i.fontWeight=r}var n,s,l=o.l;s=l.length;var h,p,H,f=this.mHelper,y,z="",v=0;for(n=0;n<s;n+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[v])h=createNS("path"),h.setAttribute("stroke-linecap",lineCapEnum[1]),h.setAttribute("stroke-linejoin",lineJoinEnum[2]),h.setAttribute("stroke-miterlimit","4");else h=this.textPaths[v];if(!this.isMasked)if(this.textSpans[v])p=this.textSpans[v],H=p.children[0];else p=createTag("div"),p.style.lineHeight=0,H=createNS("svg"),H.appendChild(h),styleDiv(p)}else if(!this.isMasked)if(this.textSpans[v])p=this.textSpans[v],h=this.textPaths[v];else p=createTag("span"),styleDiv(p),h=createTag("span"),styleDiv(h),p.appendChild(h);else h=this.textPaths[v]?this.textPaths[v]:createNS("text");if(this.globalData.fontManager.chars){var q=this.globalData.fontManager.getCharData(o.finalText[n],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),w;if(q)w=q.data;else w=null;if(f.reset(),w&&w.shapes&&w.shapes.length)y=w.shapes[0].it,f.scale(o.finalSize/100,o.finalSize/100),z=this.createPathShape(f,y),h.setAttribute("d",z);if(!this.isMasked){if(this.innerElem.appendChild(p),w&&w.shapes){document.body.appendChild(H);var u=H.getBBox();H.setAttribute("width",u.width+2),H.setAttribute("height",u.height+2),H.setAttribute("viewBox",u.x-1+" "+(u.y-1)+" "+(u.width+2)+" "+(u.height+2));var g=H.style,k="translate("+(u.x-1)+"px,"+(u.y-1)+"px)";g.transform=k,g.webkitTransform=k,l[n].yOffset=u.y-1}else H.setAttribute("width",1),H.setAttribute("height",1);p.appendChild(H)}else this.innerElem.appendChild(h)}else if(h.textContent=l[n].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),!this.isMasked){this.innerElem.appendChild(p);var W=h.style,R="translate3d(0,"+-o.finalSize/1.2+"px,0)";W.transform=R,W.webkitTransform=R}else this.innerElem.appendChild(h);if(!this.isMasked)this.textSpans[v]=p;else this.textSpans[v]=h;this.textSpans[v].style.display="block",this.textPaths[v]=h,v+=1}while(v<this.textSpans.length)this.textSpans[v].style.display="none",v+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var o;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),o=this.svgElement.style;var i="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";o.transform=i,o.webkitTransform=i}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)return;var a,t,r=0,e=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,l,h;for(a=0;a<t;a+=1)if(n[a].n)r+=1;else{if(l=this.textSpans[a],h=this.textPaths[a],s=e[r],r+=1,s._mdf.m)if(!this.isMasked)l.style.webkitTransform=s.m,l.style.transform=s.m;else l.setAttribute("transform",s.m);if(l.style.opacity=s.o,s.sw&&s._mdf.sw)h.setAttribute("stroke-width",s.sw);if(s.sc&&s._mdf.sc)h.setAttribute("stroke",s.sc);if(s.fc&&s._mdf.fc)h.setAttribute("fill",s.fc),h.style.color=s.fc}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width)this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width);if(this.currentBBox.h!==p.height)this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height);var H=1;if(this.currentBBox.w!==p.width+H*2||this.currentBBox.h!==p.height+H*2||this.currentBBox.x!==p.x-H||this.currentBBox.y!==p.y-H){this.currentBBox.w=p.width+H*2,this.currentBBox.h=p.height+H*2,this.currentBBox.x=p.x-H,this.currentBBox.y=p.y-H,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),o=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=f,o.webkitTransform=f}}};function HCameraElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initHierarchy();var t=PropertyFactory.getProp;if(this.pe=t(this,o.pe,0,0,this),o.ks.p.s)this.px=t(this,o.ks.p.x,1,0,this),this.py=t(this,o.ks.p.y,1,0,this),this.pz=t(this,o.ks.p.z,1,0,this);else this.p=t(this,o.ks.p,1,0,this);if(o.ks.a)this.a=t(this,o.ks.a,1,0,this);if(o.ks.or.k.length&&o.ks.or.k[0].to){var r,e=o.ks.or.k.length;for(r=0;r<e;r+=1)o.ks.or.k[r].to=null,o.ks.or.k[r].ti=null}this.or=t(this,o.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=t(this,o.ks.rx,0,degToRads,this),this.ry=t(this,o.ks.ry,0,degToRads,this),this.rz=t(this,o.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var o,i=this.comp.threeDElements.length,a,t,r;for(o=0;o<i;o+=1)if(a=this.comp.threeDElements[o],a.type==="3d"){t=a.perspectiveElem.style,r=a.container.style;var e=this.pe.v+"px",n="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";t.perspective=e,t.webkitPerspective=e,r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,t.transform=s,t.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var o=this._isFirstFrame,i,a;if(this.hierarchy){a=this.hierarchy.length;for(i=0;i<a;i+=1)o=this.hierarchy[i].finalTransform.mProp._mdf||o}if(o||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy){a=this.hierarchy.length-1;for(i=a;i>=0;i-=1){var t=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}}if(this.p)this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]);else this.mat.translate(-this.px.v,-this.py.v,this.pz.v);if(this.a){var r;if(this.p)r=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]];else r=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var e=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),n=[r[0]/e,r[1]/e,r[2]/e],s=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],s),h=Math.atan2(n[0],-n[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){a=this.comp.threeDElements.length;var H,f,y;for(i=0;i<a;i+=1)if(H=this.comp.threeDElements[i],H.type==="3d"){if(p){var z=this.mat.toCSS();y=H.container.style,y.transform=z,y.webkitTransform=z}if(this.pe._mdf)f=H.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px"}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData),i=new Image;if(this.data.hasMask)this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h);else this.layerElement.appendChild(i);if(i.crossOrigin="anonymous",i.src=o,this.data.ln)this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=this.layers[i];if(!t.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(a,i);else{var r=0,e,n,s;while(r<i){if(this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement)n=this.elements[r],s=this.layers[r].ddd?this.getThreeDContainerByPos(r):n.getBaseElement(),e=s||e;r+=1}if(e){if(!t.ddd||!this.supports3d)this.layerElement.insertBefore(a,e)}else if(!t.ddd||!this.supports3d)this.layerElement.appendChild(a)}else this.addTo3dContainer(a,i)},HybridRendererBase.prototype.createShape=function(o){if(!this.supports3d)return new SVGShapeElement(o,this.globalData,this);return new HShapeElement(o,this.globalData,this)},HybridRendererBase.prototype.createText=function(o){if(!this.supports3d)return new SVGTextLottieElement(o,this.globalData,this);return new HTextElement(o,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(o){return this.camera=new HCameraElement(o,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(o){if(!this.supports3d)return new IImageElement(o,this.globalData,this);return new HImageElement(o,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(o){if(!this.supports3d)return new ISolidElement(o,this.globalData,this);return new HSolidElement(o,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(o){var i=0,a=this.threeDElements.length;while(i<a){if(this.threeDElements[i].startPos<=o&&this.threeDElements[i].endPos>=o)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(o,i){var a=createTag("div"),t,r;styleDiv(a);var e=createTag("div");if(styleDiv(e),i==="3d"){t=a.style,t.width=this.globalData.compSize.w+"px",t.height=this.globalData.compSize.h+"px";var n="50% 50%";t.webkitTransformOrigin=n,t.mozTransformOrigin=n,t.transformOrigin=n,r=e.style;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.transform=s,r.webkitTransform=s}a.appendChild(e);var l={container:e,perspectiveElem:a,startPos:o,endPos:o,type:i};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var o,i=this.layers.length,a,t="";for(o=0;o<i;o+=1)if(this.layers[o].ddd&&this.layers[o].ty!==3){if(t!=="3d")t="3d",a=this.createThreeDContainer(o,"3d");a.endPos=Math.max(a.endPos,o)}else{if(t!=="2d")t="2d",a=this.createThreeDContainer(o,"2d");a.endPos=Math.max(a.endPos,o)}i=this.threeDElements.length;for(o=i-1;o>=0;o-=1)this.resizerElem.appendChild(this.threeDElements[o].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(o,i){var a=0,t=this.threeDElements.length;while(a<t){if(i<=this.threeDElements[a].endPos){var r=this.threeDElements[a].startPos,e;while(r<i){if(this.elements[r]&&this.elements[r].getBaseElement)e=this.elements[r].getBaseElement();r+=1}if(e)this.threeDElements[a].container.insertBefore(o,e);else this.threeDElements[a].container.appendChild(o);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(o){var i=createTag("div"),a=this.animationItem.wrapper,t=i.style;if(t.width=o.w+"px",t.height=o.h+"px",this.resizerElem=i,styleDiv(i),t.transformStyle="flat",t.mozTransformStyle="flat",t.webkitTransformStyle="flat",this.renderConfig.className)i.setAttribute("class",this.renderConfig.className);a.appendChild(i),t.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var e=createNS("defs");r.appendChild(e),this.data=o,this.setupGlobalData(o,r),this.globalData.defs=e,this.layers=o.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.animationItem.container=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i,t=this.globalData.compSize.w/this.globalData.compSize.h,r,e,n,s;if(t>a)r=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,n=0,s=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2;else r=i/this.globalData.compSize.h,e=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,s=0;var l=this.resizerElem.style;l.webkitTransform="matrix3d("+r+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+s+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var o=this.globalData.compSize.w,i=this.globalData.compSize.h,a,t=this.threeDElements.length;for(a=0;a<t;a+=1){var r=this.threeDElements[a].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(o){var i,a=o.length,t=createTag("div");for(i=0;i<a;i+=1)if(o[i].xt){var r=this.createComp(o[i],t,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}};function HCompElement(o,i,a){this.layers=o.layers,this.supports3d=!o.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){if(this._createBaseContainerElements(),this.data.hasMask)this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement;else this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(o,i){var a=0,t;while(a<i){if(this.elements[a]&&this.elements[a].getBaseElement)t=this.elements[a].getBaseElement();a+=1}if(t)this.layerElement.insertBefore(o,t);else this.layerElement.appendChild(o)},HCompElement.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};function HybridRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"},runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};var CompExpressionInterface=function(){return function(o){function i(a){var t=0,r=o.layers.length;while(t<r){if(o.layers[t].nm===a||o.layers[t].ind===a)return o.elements[t].layerInterface;t+=1}return null}return Object.defineProperty(i,"_name",{value:o.data.nm}),i.layer=i,i.pixelAspect=1,i.height=o.data.h||o.globalData.compSize.h,i.width=o.data.w||o.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/o.globalData.frameRate,i.displayStartTime=0,i.numLayers=o.layers.length,i}}();function _typeof$2(o){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(o)}function seedRandom(o,i){var a=this,t=256,r=6,e=52,n="random",s=i.pow(t,r),l=i.pow(2,e),h=l*2,p=t-1,H;function f(g,k,W){var R=[];k=k===!0?{entropy:!0}:k||{};var Q=q(v(k.entropy?[g,u(o)]:g===null?w():g,3),R),b=new y(R),S=function I(){var C=b.g(r),J=s,F=0;while(C<l)C=(C+F)*t,J*=t,F=b.g(1);while(C>=h)C/=2,J/=2,F>>>=1;return(C+F)/J};return S.int32=function(){return b.g(4)|0},S.quick=function(){return b.g(4)/4294967296},S.double=S,q(u(b.S),o),(k.pass||W||function(I,C,J,F){if(F){if(F.S)z(F,b);I.state=function(){return z(b,{})}}if(J)return i[n]=I,C;else return I})(S,Q,"global"in k?k.global:this==i,k.state)}i["seed"+n]=f;function y(g){var k,W=g.length,R=this,Q=0,b=R.i=R.j=0,S=R.S=[];if(!W)g=[W++];while(Q<t)S[Q]=Q++;for(Q=0;Q<t;Q++)S[Q]=S[b=p&b+g[Q%W]+(k=S[Q])],S[b]=k;R.g=function(I){var C,J=0,F=R.i,j=R.j,U=R.S;while(I--)C=U[F=p&F+1],J=J*t+U[p&(U[F]=U[j=p&j+C])+(U[j]=C)];return R.i=F,R.j=j,J}}function z(g,k){return k.i=g.i,k.j=g.j,k.S=g.S.slice(),k}function v(g,k){var W=[],R=_typeof$2(g),Q;if(k&&R=="object")for(Q in g)try{W.push(v(g[Q],k-1))}catch(b){}return W.length?W:R=="string"?g:g+"\x00"}function q(g,k){var W=g+"",R,Q=0;while(Q<W.length)k[p&Q]=p&(R^=k[p&Q]*19)+W.charCodeAt(Q++);return u(k)}function w(){try{if(H)return u(H.randomBytes(t));var g=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(g),u(g)}catch(R){var k=a.navigator,W=k&&k.plugins;return[+new Date,a,W,a.screen,u(o)]}}function u(g){return String.fromCharCode.apply(0,g)}q(i.random(),o)}function initialize$2(o){seedRandom([],o)}var propTypes={SHAPE:"shape"};function _typeof$1(o){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(o)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(o){return o.constructor===Array||o.constructor===Float32Array}function isNumerable(o,i){return o==="number"||i instanceof Number||o==="boolean"||o==="string"}function $bm_neg(o){var i=_typeof$1(o);if(i==="number"||o instanceof Number||i==="boolean")return-o;if($bm_isInstanceOfArray(o)){var a,t=o.length,r=[];for(a=0;a<t;a+=1)r[a]=-o[a];return r}if(o.propType)return o.v;return-o}var easeInBez=BezierFactory.getBezierEasing(0.333,0,0.833,0.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(0.167,0.167,0.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(0.33,0,0.667,1,"easeInOut").get;function sum(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)||a==="string"||t==="string")return o+i;if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]+=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o+i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]+i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}var add=sum;function sub(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)){if(a==="string")o=parseInt(o,10);if(t==="string")i=parseInt(i,10);return o-i}if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]-=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o-i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]-i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}function mul(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o*i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]*i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o*i[e];return r}return 0}function div(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o/i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]/i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o/i[e];return r}return 0}function mod(o,i){if(typeof o==="string")o=parseInt(o,10);if(typeof i==="string")i=parseInt(i,10);return o%i}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(o,i,a){if(i>a){var t=a;a=i,i=t}return Math.min(Math.max(o,i),a)}function radiansToDegrees(o){return o/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(o){return o*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(o,i){if(typeof o==="number"||o instanceof Number)return i=i||0,Math.abs(o-i);if(!i)i=helperLengthArray;var a,t=Math.min(o.length,i.length),r=0;for(a=0;a<t;a+=1)r+=Math.pow(i[a]-o[a],2);return Math.sqrt(r)}function normalize(o){return div(o,length(o))}function rgbToHsl(o){var i=o[0],a=o[1],t=o[2],r=Math.max(i,a,t),e=Math.min(i,a,t),n,s,l=(r+e)/2;if(r===e)n=0,s=0;else{var h=r-e;switch(s=l>0.5?h/(2-r-e):h/(r+e),r){case i:n=(a-t)/h+(a<t?6:0);break;case a:n=(t-i)/h+2;break;case t:n=(i-a)/h+4;break;default:break}n/=6}return[n,s,l,o[3]]}function hue2rgb(o,i,a){if(a<0)a+=1;if(a>1)a-=1;if(a<0.16666666666666666)return o+(i-o)*6*a;if(a<0.5)return i;if(a<0.6666666666666666)return o+(i-o)*(0.6666666666666666-a)*6;return o}function hslToRgb(o){var i=o[0],a=o[1],t=o[2],r,e,n;if(a===0)r=t,n=t,e=t;else{var s=t<0.5?t*(1+a):t+a-t*a,l=2*t-s;r=hue2rgb(l,s,i+0.3333333333333333),e=hue2rgb(l,s,i),n=hue2rgb(l,s,i-0.3333333333333333)}return[r,e,n,o[3]]}function linear(o,i,a,t,r){if(t===void 0||r===void 0)t=i,r=a,i=0,a=1;if(a<i){var e=a;a=i,i=e}if(o<=i)return t;if(o>=a)return r;var n=a===i?0:(o-i)/(a-i);if(!t.length)return t+(r-t)*n;var s,l=t.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=t[s]+(r[s]-t[s])*n;return h}function random(o,i){if(i===void 0)if(o===void 0)o=0,i=1;else i=o,o=void 0;if(i.length){var a,t=i.length;if(!o)o=createTypedArray("float32",t);var r=createTypedArray("float32",t),e=BMMath.random();for(a=0;a<t;a+=1)r[a]=o[a]+e*(i[a]-o[a]);return r}if(o===void 0)o=0;var n=BMMath.random();return o+n*(i-o)}function createPath(o,i,a,t){var r,e=o.length,n=shapePool.newElement();n.setPathData(!!t,e);var s=[0,0],l,h;for(r=0;r<e;r+=1)l=i&&i[r]?i[r]:s,h=a&&a[r]?a[r]:s,n.setTripleAt(o[r][0],o[r][1],h[0]+o[r][0],h[1]+o[r][1],l[0]+o[r][0],l[1]+o[r][1],r,!0);return n}function initiateExpression(elem,data,property){function noOp(o){return o}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function o(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function o(i,a){var t,r,e=this.pv.length?this.pv.length:1,n=createTypedArray("float32",e);i=5;var s=Math.floor(time*i);t=0,r=0;while(t<s){for(r=0;r<e;r+=1)n[r]+=-a+a*2*BMMath.random();t+=1}var l=time*i,h=l-Math.floor(l),p=createTypedArray("float32",e);if(e>1){for(r=0;r<e;r+=1)p[r]=this.pv[r]+n[r]+(-a+a*2*BMMath.random())*h;return p}return this.pv+n[0]+(-a+a*2*BMMath.random())*h}.bind(this);if(thisProperty.loopIn)loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn;if(thisProperty.loopOut)loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut;if(thisProperty.smooth)smooth=thisProperty.smooth.bind(thisProperty);function loopInDuration(o,i){return loopIn(o,i,!0)}function loopOutDuration(o,i){return loopOut(o,i,!0)}if(this.getValueAtTime)valueAtTime=this.getValueAtTime.bind(this);if(this.getVelocityAtTime)velocityAtTime=this.getVelocityAtTime.bind(this);var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(o,i){var a=[i[0]-o[0],i[1]-o[1],i[2]-o[2]],t=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads,r=-Math.atan2(a[1],a[2])/degToRads;return[r,t,0]}function easeOut(o,i,a,t,r){return applyEase(easeOutBez,o,i,a,t,r)}function easeIn(o,i,a,t,r){return applyEase(easeInBez,o,i,a,t,r)}function ease(o,i,a,t,r){return applyEase(easeInOutBez,o,i,a,t,r)}function applyEase(o,i,a,t,r,e){if(r===void 0)r=a,e=t;else i=(i-a)/(t-a);if(i>1)i=1;else if(i<0)i=0;var n=o(i);if($bm_isInstanceOfArray(r)){var s,l=r.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=(e[s]-r[s])*n+r[s];return h}return(e-r)*n+r}function nearestKey(o){var i,a=data.k.length,t,r;if(!data.k.length||typeof data.k[0]==="number")t=0,r=0;else if(t=-1,o*=elem.comp.globalData.frameRate,o<data.k[0].t)t=1,r=data.k[0].t;else{for(i=0;i<a-1;i+=1)if(o===data.k[i].t){t=i+1,r=data.k[i].t;break}else if(o>data.k[i].t&&o<data.k[i+1].t){if(o-data.k[i].t>data.k[i+1].t-o)t=i+2,r=data.k[i+1].t;else t=i+1,r=data.k[i].t;break}if(t===-1)t=i+1,r=data.k[i].t}var e={};return e.index=t,e.time=r/elem.comp.globalData.frameRate,e}function key(o){var i,a,t;if(!data.k.length||typeof data.k[0]==="number")throw new Error("The property has no keyframe at index "+o);o-=1,i={time:data.k[o].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[o],"s")?data.k[o].s:data.k[o-1].e;t=r.length;for(a=0;a<t;a+=1)i[a]=r[a],i.value[a]=r[a];return i}function framesToTime(o,i){if(!i)i=elem.comp.globalData.frameRate;return o/i}function timeToFrames(o,i){if(!o&&o!==0)o=time;if(!i)i=elem.comp.globalData.frameRate;return o*i}function seedRandom(o){BMMath.seedrandom(randSeed+o)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(o,i){if(typeof value==="string"){if(i===void 0)return value.substring(o);return value.substring(o,i)}return""}function substr(o,i){if(typeof value==="string"){if(i===void 0)return value.substr(o);return value.substr(o,i)}return""}function posterizeTime(o){time=o===0?0:Math.floor(time*o)/o,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(o){if(value=o,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector")return value;if(this.propType==="textSelector")textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue;if(!thisLayer)text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp;if(!transform){if(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform)anchorPoint=transform.anchorPoint}if(elemType===4&&!content)content=thisLayer("ADBE Root Vectors Group");if(!effect)effect=thisLayer(4);if(hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent)parent=elem.hierarchy[0].layerInterface;if(time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom)seedRandom(randSeed+time);if(needsVelocity)velocity=velocityAtTime(time);return expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var o={};o.initExpressions=i,o.resetFrame=ExpressionManager.resetFrame;function i(a){var t=0,r=[];function e(){t+=1}function n(){if(t-=1,t===0)l()}function s(h){if(r.indexOf(h)===-1)r.push(h)}function l(){var h,p=r.length;for(h=0;h<p;h+=1)r[h].release();r.length=0}a.renderer.compInterface=CompExpressionInterface(a.renderer),a.renderer.globalData.projectInterface.registerComposition(a.renderer),a.renderer.globalData.pushExpression=e,a.renderer.globalData.popExpression=n,a.renderer.globalData.registerExpressionProperty=s}return o}(),MaskManagerInterface=function(){function o(a,t){this._mask=a,this._data=t}Object.defineProperty(o.prototype,"maskPath",{get:function a(){if(this._mask.prop.k)this._mask.prop.getValue();return this._mask.prop}}),Object.defineProperty(o.prototype,"maskOpacity",{get:function a(){if(this._mask.op.k)this._mask.op.getValue();return this._mask.op.v*100}});var i=function a(t){var r=createSizedArray(t.viewData.length),e,n=t.viewData.length;for(e=0;e<n;e+=1)r[e]=new o(t.viewData[e],t.masksProperties[e]);var s=function l(h){e=0;while(e<n){if(t.masksProperties[e].nm===h)return r[e];e+=1}return null};return s};return i}(),ExpressionPropertyInterface=function(){var o={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function a(n,s,l){Object.defineProperty(n,"velocity",{get:function h(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(h){if(!n.numKeys)return 0;var p="";if("s"in s.keyframes[h-1])p=s.keyframes[h-1].s;else if("e"in s.keyframes[h-2])p=s.keyframes[h-2].e;else p=s.keyframes[h-2].s;var H=l==="unidimensional"?new Number(p):Object.assign({},p);return H.time=s.keyframes[h-1].t/s.elem.comp.globalData.frameRate,H.value=l==="unidimensional"?p[0]:p,H},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function t(n){if(!n||!("pv"in n))n=o;var s=1/n.mult,l=n.pv*s,h=new Number(l);return h.value=l,a(h,n,"unidimensional"),function(){if(n.k)n.getValue();if(l=n.v*s,h.value!==l)h=new Number(l),h.value=l,h[0]=l,a(h,n,"unidimensional");return h}}function r(n){if(!n||!("pv"in n))n=i;var s=1/n.mult,l=n.data&&n.data.l||n.pv.length,h=createTypedArray("float32",l),p=createTypedArray("float32",l);return h.value=p,a(h,n,"multidimensional"),function(){if(n.k)n.getValue();for(var H=0;H<l;H+=1)p[H]=n.v[H]*s,h[H]=p[H];return h}}function e(){return o}return function(n){if(!n)return e;if(n.propType==="unidimensional")return t(n);return r(n)}}(),TransformExpressionInterface=function(){return function(o){function i(n){switch(n){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(o.r||o.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(o.rz||o.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(o.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(o.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(o.s)});var a,t,r,e;if(o.p)e=ExpressionPropertyInterface(o.p);else if(a=ExpressionPropertyInterface(o.px),t=ExpressionPropertyInterface(o.py),o.pz)r=ExpressionPropertyInterface(o.pz);return Object.defineProperty(i,"position",{get:function n(){if(o.p)return e();return[a(),t(),r?r():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(o.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(o.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(o.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(o.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(o.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(o.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(o.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(o.or)}),i}}(),LayerExpressionInterface=function(){function o(h){var p=new Matrix;if(h!==void 0){var H=this._elem.finalTransform.mProp.getValueAtTime(h);H.clone(p)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(p)}return p}function i(h,p){var H=this.getMatrix(p);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.applyPoint(H,h)}function a(h,p){var H=this.getMatrix(p);return this.applyPoint(H,h)}function t(h,p){var H=this.getMatrix(p);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.invertPoint(H,h)}function r(h,p){var H=this.getMatrix(p);return this.invertPoint(H,h)}function e(h,p){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(p[0],p[1],p[2]||0)}function n(h,p){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(p)}function s(h){var p=new Matrix;if(p.reset(),this._elem.finalTransform.mProp.applyToMatrix(p),this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(p);return p.inversePoint(h)}return p.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var p;function H(v){y.mask=new MaskManagerInterface(v,h)}function f(v){y.effect=v}function y(v){switch(v){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=o,y.invertPoint=n,y.applyPoint=e,y.toWorld=a,y.toWorldVec=i,y.fromWorld=r,y.fromWorldVec=t,y.toComp=a,y.fromComp=s,y.sampleImage=l,y.sourceRectAtTime=h.sourceRectAtTime.bind(h),y._elem=h,p=TransformExpressionInterface(h.finalTransform.mProp);var z=getDescriptor(p,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function v(){return h.hierarchy.length}},parent:{get:function v(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function v(){return p}},active:{get:function v(){return h.isInRange}}}),y.startTime=h.data.st,y.index=h.data.ind,y.source=h.data.refId,y.height=h.data.ty===0?h.data.h:100,y.width=h.data.ty===0?h.data.w:100,y.inPoint=h.data.ip/h.comp.globalData.frameRate,y.outPoint=h.data.op/h.comp.globalData.frameRate,y._name=h.data.nm,y.registerMaskInterface=H,y.registerEffectsInterface=f,y}}(),propertyGroupFactory=function(){return function(o,i){return function(a){if(a=a===void 0?1:a,a<=0)return o;return i(a-1)}}}(),PropertyInterface=function(){return function(o,i){var a={_name:o};function t(r){if(r=r===void 0?1:r,r<=0)return a;return i(r-1)}return t}}(),EffectsExpressionInterface=function(){var o={createEffectsInterface:i};function i(r,e){if(r.effectsManager){var n=[],s=r.data.ef,l,h=r.effectsManager.effectElements.length;for(l=0;l<h;l+=1)n.push(a(s[l],r.effectsManager.effectElements[l],e,r));var p=r.data.ef||[],H=function f(y){l=0,h=p.length;while(l<h){if(y===p[l].nm||y===p[l].mn||y===p[l].ix)return n[l];l+=1}return null};return Object.defineProperty(H,"numProperties",{get:function f(){return p.length}}),H}return null}function a(r,e,n,s){function l(y){var z=r.ef,v=0,q=z.length;while(v<q){if(y===z[v].nm||y===z[v].mn||y===z[v].ix){if(z[v].ty===5)return p[v];return p[v]()}v+=1}throw new Error}var h=propertyGroupFactory(l,n),p=[],H,f=r.ef.length;for(H=0;H<f;H+=1)if(r.ef[H].ty===5)p.push(a(r.ef[H],e.effectElements[H],e.effectElements[H].propertyGroup,s));else p.push(t(e.effectElements[H],r.ef[H].ty,s,h));if(r.mn==="ADBE Color Control")Object.defineProperty(l,"color",{get:function y(){return p[0]()}});return Object.defineProperties(l,{numProperties:{get:function y(){return r.np}},_name:{value:r.nm},propertyGroup:{value:h}}),l.enabled=r.en!==0,l.active=l.enabled,l}function t(r,e,n,s){var l=ExpressionPropertyInterface(r.p);function h(){if(e===10)return n.comp.compInterface(r.p.v);return l()}if(r.p.setGroupProperty)r.p.setGroupProperty(PropertyInterface("",s));return h}return o}(),ShapePathInterface=function(){return function o(i,a,t){var r=a.sh;function e(s){if(s==="Shape"||s==="shape"||s==="Path"||s==="path"||s==="ADBE Vector Shape"||s===2)return e.path;return null}var n=propertyGroupFactory(e,t);return r.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(e,{path:{get:function s(){if(r.k)r.getValue();return r}},shape:{get:function s(){if(r.k)r.getValue();return r}},_name:{value:i.nm},ix:{value:i.ix},propertyIndex:{value:i.ix},mn:{value:i.mn},propertyGroup:{value:t}}),e}}(),ShapeExpressionInterface=function(){function o(z,v,q){var w=[],u,g=z?z.length:0;for(u=0;u<g;u+=1)if(z[u].ty==="gr")w.push(a(z[u],v[u],q));else if(z[u].ty==="fl")w.push(t(z[u],v[u],q));else if(z[u].ty==="st")w.push(n(z[u],v[u],q));else if(z[u].ty==="tm")w.push(s(z[u],v[u],q));else if(z[u].ty==="tr");else if(z[u].ty==="el")w.push(h(z[u],v[u],q));else if(z[u].ty==="sr")w.push(p(z[u],v[u],q));else if(z[u].ty==="sh")w.push(ShapePathInterface(z[u],v[u],q));else if(z[u].ty==="rc")w.push(H(z[u],v[u],q));else if(z[u].ty==="rd")w.push(f(z[u],v[u],q));else if(z[u].ty==="rp")w.push(y(z[u],v[u],q));else if(z[u].ty==="gf")w.push(r(z[u],v[u],q));else w.push(e(z[u],v[u],q));return w}function i(z,v,q){var w,u=function k(W){var R=0,Q=w.length;while(R<Q){if(w[R]._name===W||w[R].mn===W||w[R].propertyIndex===W||w[R].ix===W||w[R].ind===W)return w[R];R+=1}if(typeof W==="number")return w[W-1];return null};u.propertyGroup=propertyGroupFactory(u,q),w=o(z.it,v.it,u.propertyGroup),u.numProperties=w.length;var g=l(z.it[z.it.length-1],v.it[v.it.length-1],u.propertyGroup);return u.transform=g,u.propertyIndex=z.cix,u._name=z.nm,u}function a(z,v,q){var w=function k(W){switch(W){case"ADBE Vectors Group":case"Contents":case 2:return w.content;default:return w.transform}};w.propertyGroup=propertyGroupFactory(w,q);var u=i(z,v,w.propertyGroup),g=l(z.it[z.it.length-1],v.it[v.it.length-1],w.propertyGroup);return w.content=u,w.transform=g,Object.defineProperty(w,"_name",{get:function k(){return z.nm}}),w.numProperties=z.np,w.propertyIndex=z.ix,w.nm=z.nm,w.mn=z.mn,w}function t(z,v,q){function w(u){if(u==="Color"||u==="color")return w.color;if(u==="Opacity"||u==="opacity")return w.opacity;return null}return Object.defineProperties(w,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",q)),v.o.setGroupProperty(PropertyInterface("Opacity",q)),w}function r(z,v,q){function w(u){if(u==="Start Point"||u==="start point")return w.startPoint;if(u==="End Point"||u==="end point")return w.endPoint;if(u==="Opacity"||u==="opacity")return w.opacity;return null}return Object.defineProperties(w,{startPoint:{get:ExpressionPropertyInterface(v.s)},endPoint:{get:ExpressionPropertyInterface(v.e)},opacity:{get:ExpressionPropertyInterface(v.o)},type:{get:function u(){return"a"}},_name:{value:z.nm},mn:{value:z.mn}}),v.s.setGroupProperty(PropertyInterface("Start Point",q)),v.e.setGroupProperty(PropertyInterface("End Point",q)),v.o.setGroupProperty(PropertyInterface("Opacity",q)),w}function e(){function z(){return null}return z}function n(z,v,q){var w=propertyGroupFactory(Q,q),u=propertyGroupFactory(R,w);function g(b){Object.defineProperty(R,z.d[b].nm,{get:ExpressionPropertyInterface(v.d.dataProps[b].p)})}var k,W=z.d?z.d.length:0,R={};for(k=0;k<W;k+=1)g(k),v.d.dataProps[k].p.setGroupProperty(u);function Q(b){if(b==="Color"||b==="color")return Q.color;if(b==="Opacity"||b==="opacity")return Q.opacity;if(b==="Stroke Width"||b==="stroke width")return Q.strokeWidth;return null}return Object.defineProperties(Q,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},strokeWidth:{get:ExpressionPropertyInterface(v.w)},dash:{get:function b(){return R}},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",w)),v.o.setGroupProperty(PropertyInterface("Opacity",w)),v.w.setGroupProperty(PropertyInterface("Stroke Width",w)),Q}function s(z,v,q){function w(g){if(g===z.e.ix||g==="End"||g==="end")return w.end;if(g===z.s.ix)return w.start;if(g===z.o.ix)return w.offset;return null}var u=propertyGroupFactory(w,q);return w.propertyIndex=z.ix,v.s.setGroupProperty(PropertyInterface("Start",u)),v.e.setGroupProperty(PropertyInterface("End",u)),v.o.setGroupProperty(PropertyInterface("Offset",u)),w.propertyIndex=z.ix,w.propertyGroup=q,Object.defineProperties(w,{start:{get:ExpressionPropertyInterface(v.s)},end:{get:ExpressionPropertyInterface(v.e)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm}}),w.mn=z.mn,w}function l(z,v,q){function w(g){if(z.a.ix===g||g==="Anchor Point")return w.anchorPoint;if(z.o.ix===g||g==="Opacity")return w.opacity;if(z.p.ix===g||g==="Position")return w.position;if(z.r.ix===g||g==="Rotation"||g==="ADBE Vector Rotation")return w.rotation;if(z.s.ix===g||g==="Scale")return w.scale;if(z.sk&&z.sk.ix===g||g==="Skew")return w.skew;if(z.sa&&z.sa.ix===g||g==="Skew Axis")return w.skewAxis;return null}var u=propertyGroupFactory(w,q);if(v.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",u)),v.transform.mProps.p.setGroupProperty(PropertyInterface("Position",u)),v.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",u)),v.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",u)),v.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",u)),v.transform.mProps.sk)v.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",u)),v.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",u));return v.transform.op.setGroupProperty(PropertyInterface("Opacity",u)),Object.defineProperties(w,{opacity:{get:ExpressionPropertyInterface(v.transform.mProps.o)},position:{get:ExpressionPropertyInterface(v.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(v.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(v.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(v.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(v.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(v.transform.mProps.sa)},_name:{value:z.nm}}),w.ty="tr",w.mn=z.mn,w.propertyGroup=q,w}function h(z,v,q){function w(k){if(z.p.ix===k)return w.position;if(z.s.ix===k)return w.size;return null}var u=propertyGroupFactory(w,q);w.propertyIndex=z.ix;var g=v.sh.ty==="tm"?v.sh.prop:v.sh;return g.s.setGroupProperty(PropertyInterface("Size",u)),g.p.setGroupProperty(PropertyInterface("Position",u)),Object.defineProperties(w,{size:{get:ExpressionPropertyInterface(g.s)},position:{get:ExpressionPropertyInterface(g.p)},_name:{value:z.nm}}),w.mn=z.mn,w}function p(z,v,q){function w(k){if(z.p.ix===k)return w.position;if(z.r.ix===k)return w.rotation;if(z.pt.ix===k)return w.points;if(z.or.ix===k||k==="ADBE Vector Star Outer Radius")return w.outerRadius;if(z.os.ix===k)return w.outerRoundness;if(z.ir&&(z.ir.ix===k||k==="ADBE Vector Star Inner Radius"))return w.innerRadius;if(z.is&&z.is.ix===k)return w.innerRoundness;return null}var u=propertyGroupFactory(w,q),g=v.sh.ty==="tm"?v.sh.prop:v.sh;if(w.propertyIndex=z.ix,g.or.setGroupProperty(PropertyInterface("Outer Radius",u)),g.os.setGroupProperty(PropertyInterface("Outer Roundness",u)),g.pt.setGroupProperty(PropertyInterface("Points",u)),g.p.setGroupProperty(PropertyInterface("Position",u)),g.r.setGroupProperty(PropertyInterface("Rotation",u)),z.ir)g.ir.setGroupProperty(PropertyInterface("Inner Radius",u)),g.is.setGroupProperty(PropertyInterface("Inner Roundness",u));return Object.defineProperties(w,{position:{get:ExpressionPropertyInterface(g.p)},rotation:{get:ExpressionPropertyInterface(g.r)},points:{get:ExpressionPropertyInterface(g.pt)},outerRadius:{get:ExpressionPropertyInterface(g.or)},outerRoundness:{get:ExpressionPropertyInterface(g.os)},innerRadius:{get:ExpressionPropertyInterface(g.ir)},innerRoundness:{get:ExpressionPropertyInterface(g.is)},_name:{value:z.nm}}),w.mn=z.mn,w}function H(z,v,q){function w(k){if(z.p.ix===k)return w.position;if(z.r.ix===k)return w.roundness;if(z.s.ix===k||k==="Size"||k==="ADBE Vector Rect Size")return w.size;return null}var u=propertyGroupFactory(w,q),g=v.sh.ty==="tm"?v.sh.prop:v.sh;return w.propertyIndex=z.ix,g.p.setGroupProperty(PropertyInterface("Position",u)),g.s.setGroupProperty(PropertyInterface("Size",u)),g.r.setGroupProperty(PropertyInterface("Rotation",u)),Object.defineProperties(w,{position:{get:ExpressionPropertyInterface(g.p)},roundness:{get:ExpressionPropertyInterface(g.r)},size:{get:ExpressionPropertyInterface(g.s)},_name:{value:z.nm}}),w.mn=z.mn,w}function f(z,v,q){function w(k){if(z.r.ix===k||k==="Round Corners 1")return w.radius;return null}var u=propertyGroupFactory(w,q),g=v;return w.propertyIndex=z.ix,g.rd.setGroupProperty(PropertyInterface("Radius",u)),Object.defineProperties(w,{radius:{get:ExpressionPropertyInterface(g.rd)},_name:{value:z.nm}}),w.mn=z.mn,w}function y(z,v,q){function w(k){if(z.c.ix===k||k==="Copies")return w.copies;if(z.o.ix===k||k==="Offset")return w.offset;return null}var u=propertyGroupFactory(w,q),g=v;return w.propertyIndex=z.ix,g.c.setGroupProperty(PropertyInterface("Copies",u)),g.o.setGroupProperty(PropertyInterface("Offset",u)),Object.defineProperties(w,{copies:{get:ExpressionPropertyInterface(g.c)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:z.nm}}),w.mn=z.mn,w}return function(z,v,q){var w;function u(k){if(typeof k==="number"){if(k=k===void 0?1:k,k===0)return q;return w[k-1]}var W=0,R=w.length;while(W<R){if(w[W]._name===k)return w[W];W+=1}return null}function g(){return q}return u.propertyGroup=propertyGroupFactory(u,g),w=o(z,v,u.propertyGroup),u.numProperties=w.length,u._name="Contents",u}}(),TextExpressionInterface=function(){return function(o){var i;function a(t){switch(t){case"ADBE Text Document":return a.sourceText;default:return null}}return Object.defineProperty(a,"sourceText",{get:function t(){o.textProperty.getValue();var r=o.textProperty.currentData.t;if(!i||r!==i.value)i=new String(r),i.value=r||new String(r),Object.defineProperty(i,"style",{get:function e(){return{fillColor:o.textProperty.currentData.fc}}});return i}}),a}}();function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(o)}var FootageInterface=function(){var o=function a(t){var r="",e=t.getFootageData();function n(){return r="",e=t.getFootageData(),s}function s(l){if(e[l]){if(r=l,e=e[l],_typeof(e)==="object")return s;return e}var h=l.indexOf(r);if(h!==-1){var p=parseInt(l.substr(h+r.length),10);if(e=e[p],_typeof(e)==="object")return s;return e}return""}return n},i=function a(t){function r(e){if(e==="Outline")return r.outlineInterface();return null}return r._name="Outline",r.outlineInterface=o(t),r};return function(a){function t(r){if(r==="Data")return t.dataInterface;return null}return t._name="Data",t.dataInterface=i(a),t}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(o){return interfaces[o]||null}var expressionHelpers=function(){function o(n,s,l){if(s.x)l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(n,s,l).bind(l))}function i(n){if(n*=this.elem.globalData.frameRate,n-=this.offsetTime,n!==this._cachingAtTime.lastFrame)this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<n?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(n,this._cachingAtTime),this._cachingAtTime.lastFrame=n;return this._cachingAtTime.value}function a(n){var s=-0.01,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),p=0;if(l.length){var H;for(H=0;H<l.length;H+=1)p+=Math.pow(h[H]-l[H],2);p=Math.sqrt(p)*100}else p=0;return p}function t(n){if(this.vel!==void 0)return this.vel;var s=-0.001,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),p;if(l.length){p=createTypedArray("float32",l.length);var H;for(H=0;H<l.length;H+=1)p[H]=(h[H]-l[H])/s}else p=(h-l)/s;return p}function r(){return this.pv}function e(n){this.propertyGroup=n}return{searchExpressions:o,getSpeedAtTime:a,getVelocityAtTime:t,getValueAtTime:i,getStaticValueAtTime:r,setGroupProperty:e}}();function addPropertyDecorator(){function o(f,y,z){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var v=this.comp.renderedFrame,q=this.keyframes,w=q[q.length-1].t;if(v<=w)return this.pv;var u,g;if(!z){if(!y||y>q.length-1)y=q.length-1;g=q[q.length-1-y].t,u=w-g}else{if(!y)u=Math.max(0,w-this.elem.data.ip);else u=Math.abs(w-this.elem.comp.globalData.frameRate*y);g=w-u}var k,W,R;if(f==="pingpong"){var Q=Math.floor((v-g)/u);if(Q%2!==0)return this.getValueAtTime((u-(v-g)%u+g)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var b=this.getValueAtTime(g/this.comp.globalData.frameRate,0),S=this.getValueAtTime(w/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((v-g)%u+g)/this.comp.globalData.frameRate,0),C=Math.floor((v-g)/u);if(this.pv.length){R=new Array(b.length),W=R.length;for(k=0;k<W;k+=1)R[k]=(S[k]-b[k])*C+I[k];return R}return(S-b)*C+I}else if(f==="continue"){var J=this.getValueAtTime(w/this.comp.globalData.frameRate,0),F=this.getValueAtTime((w-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){R=new Array(J.length),W=R.length;for(k=0;k<W;k+=1)R[k]=J[k]+(J[k]-F[k])*((v-w)/this.comp.globalData.frameRate)/0.0005;return R}return J+(J-F)*((v-w)/0.001)}return this.getValueAtTime(((v-g)%u+g)/this.comp.globalData.frameRate,0)}function i(f,y,z){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var v=this.comp.renderedFrame,q=this.keyframes,w=q[0].t;if(v>=w)return this.pv;var u,g;if(!z){if(!y||y>q.length-1)y=q.length-1;g=q[y].t,u=g-w}else{if(!y)u=Math.max(0,this.elem.data.op-w);else u=Math.abs(this.elem.comp.globalData.frameRate*y);g=w+u}var k,W,R;if(f==="pingpong"){var Q=Math.floor((w-v)/u);if(Q%2===0)return this.getValueAtTime(((w-v)%u+w)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var b=this.getValueAtTime(w/this.comp.globalData.frameRate,0),S=this.getValueAtTime(g/this.comp.globalData.frameRate,0),I=this.getValueAtTime((u-(w-v)%u+w)/this.comp.globalData.frameRate,0),C=Math.floor((w-v)/u)+1;if(this.pv.length){R=new Array(b.length),W=R.length;for(k=0;k<W;k+=1)R[k]=I[k]-(S[k]-b[k])*C;return R}return I-(S-b)*C}else if(f==="continue"){var J=this.getValueAtTime(w/this.comp.globalData.frameRate,0),F=this.getValueAtTime((w+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){R=new Array(J.length),W=R.length;for(k=0;k<W;k+=1)R[k]=J[k]+(J[k]-F[k])*(w-v)/0.001;return R}return J+(J-F)*(w-v)/0.001}return this.getValueAtTime((u-((w-v)%u+w))/this.comp.globalData.frameRate,0)}function a(f,y){if(!this.k)return this.pv;if(f=(f||0.4)*0.5,y=Math.floor(y||5),y<=1)return this.pv;var z=this.comp.renderedFrame/this.comp.globalData.frameRate,v=z-f,q=z+f,w=y>1?(q-v)/(y-1):1,u=0,g=0,k;if(this.pv.length)k=createTypedArray("float32",this.pv.length);else k=0;var W;while(u<y){if(W=this.getValueAtTime(v+u*w),this.pv.length)for(g=0;g<this.pv.length;g+=1)k[g]+=W[g];else k+=W;u+=1}if(this.pv.length)for(g=0;g<this.pv.length;g+=1)k[g]/=y;else k/=y;return k}function t(f){if(!this._transformCachingAtTime)this._transformCachingAtTime={v:new Matrix};var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var z=this.a.getValueAtTime(f);y.translate(-z[0]*this.a.mult,-z[1]*this.a.mult,z[2]*this.a.mult)}if(this.appliedTransformations<2){var v=this.s.getValueAtTime(f);y.scale(v[0]*this.s.mult,v[1]*this.s.mult,v[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var q=this.sk.getValueAtTime(f),w=this.sa.getValueAtTime(f);y.skewFromAxis(-q*this.sk.mult,w*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var u=this.r.getValueAtTime(f);y.rotate(-u*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var g=this.rz.getValueAtTime(f),k=this.ry.getValueAtTime(f),W=this.rx.getValueAtTime(f),R=this.or.getValueAtTime(f);y.rotateZ(-g*this.rz.mult).rotateY(k*this.ry.mult).rotateX(W*this.rx.mult).rotateZ(-R[2]*this.or.mult).rotateY(R[1]*this.or.mult).rotateX(R[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Q=this.px.getValueAtTime(f),b=this.py.getValueAtTime(f);if(this.data.p.z){var S=this.pz.getValueAtTime(f);y.translate(Q*this.px.mult,b*this.py.mult,-S*this.pz.mult)}else y.translate(Q*this.px.mult,b*this.py.mult,0)}else{var I=this.p.getValueAtTime(f);y.translate(I[0]*this.p.mult,I[1]*this.p.mult,-I[2]*this.p.mult)}return y}function r(){return this.v.clone(new Matrix)}var e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,z){var v=e(f,y,z);if(v.dynamicProperties.length)v.getValueAtTime=t.bind(v);else v.getValueAtTime=r.bind(v);return v.setGroupProperty=expressionHelpers.setGroupProperty,v};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,z,v,q){var w=n(f,y,z,v,q);if(w.kf)w.getValueAtTime=expressionHelpers.getValueAtTime.bind(w);else w.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(w);w.setGroupProperty=expressionHelpers.setGroupProperty,w.loopOut=o,w.loopIn=i,w.smooth=a,w.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(w),w.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(w),w.numKeys=y.a===1?y.k.length:0,w.propertyIndex=y.ix;var u=0;if(z!==0)u=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length);if(w._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(f,y,w),w.k)q.addDynamicProperty(w);return w};function s(f){if(!this._cachingAtTime)this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame};if(f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime)this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime);return this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function f(y,z){if(this.k)this.getValue();var v=this.v;if(z!==void 0)v=this.getValueAtTime(z,0);var q,w=v._length,u=v[y],g=v.v,k=createSizedArray(w);for(q=0;q<w;q+=1)if(y==="i"||y==="o")k[q]=[u[q][0]-g[q][0],u[q][1]-g[q][1]];else k[q]=[u[q][0],u[q][1]];return k},points:function f(y){return this.vertices("v",y)},inTangents:function f(y){return this.vertices("i",y)},outTangents:function f(y){return this.vertices("o",y)},isClosed:function f(){return this.v.c},pointOnPath:function f(y,z){var v=this.v;if(z!==void 0)v=this.getValueAtTime(z,0);if(!this._segmentsLength)this._segmentsLength=bez.getSegmentsLength(v);var q=this._segmentsLength,w=q.lengths,u=q.totalLength*y,g=0,k=w.length,W=0,R;while(g<k){if(W+w[g].addedLength>u){var Q=g,b=v.c&&g===k-1?0:g+1,S=(u-W)/w[g].addedLength;R=bez.getPointInSegment(v.v[Q],v.v[b],v.o[Q],v.i[b],S,w[g]);break}else W+=w[g].addedLength;g+=1}if(!R)R=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]];return R},vectorOnPath:function f(y,z,v){if(y==1)y=this.v.c;else if(y==0)y=0.999;var q=this.pointOnPath(y,z),w=this.pointOnPath(y+0.001,z),u=w[0]-q[0],g=w[1]-q[1],k=Math.sqrt(Math.pow(u,2)+Math.pow(g,2));if(k===0)return[0,0];var W=v==="tangent"?[u/k,g/k]:[-g/k,u/k];return W},tangentOnPath:function f(y,z){return this.vectorOnPath(y,z,"tangent")},normalOnPath:function f(y,z){return this.vectorOnPath(y,z,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],l),extendPrototype([p],h),h.prototype.getValueAtTime=s,h.prototype.initiateExpression=ExpressionManager.initiateExpression;var H=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,z,v,q){var w=H(f,y,z,v,q);if(w.propertyIndex=y.ix,w.lock=!1,z===3)expressionHelpers.searchExpressions(f,y.pt,w);else if(z===4)expressionHelpers.searchExpressions(f,y.ks,w);if(w.k)f.addDynamicProperty(w);return w}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function o(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0;return null}TextProperty.prototype.getExpressionValue=function(i,a){var t=this.calculateExpression(a);if(i.t!==t){var r={};return this.copyData(r,i),r.t=t.toString(),r.__complete=!1,r}return i},TextProperty.prototype.searchProperty=function(){var i=this.searchKeyframes(),a=this.searchExpressions();return this.kf=i||a,this.kf},TextProperty.prototype.searchExpressions=o}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function o(i,a){var t=createNS("feMerge");t.setAttribute("result",i);var r,e;for(e=0;e<a.length;e+=1)r=createNS("feMergeNode"),r.setAttribute("in",a[e]),t.appendChild(r),t.appendChild(r);return t}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(o,i,a,t,r){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=e,e.setAttribute("result",t+"_tint_1"),o.appendChild(e),e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",t+"_tint_2"),o.appendChild(e),this.matrixFilter=e;var n=this.createMergeNode(t,[r,t+"_tint_1",t+"_tint_2"]);o.appendChild(n)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+t+" 0"),this.matrixFilter.setAttribute("values",a[0]-i[0]+" 0 0 0 "+i[0]+" "+(a[1]-i[1])+" 0 0 0 "+i[1]+" "+(a[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 1 0")}};function SVGFillFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",t),o.appendChild(r),this.matrixFilter=r}SVGFillFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v,a=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+a+" 0")}};function SVGStrokeEffect(o,i,a){this.initialized=!1,this.filterManager=i,this.elem=a,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var o=this.elem.layerElement.children||this.elem.layerElement.childNodes,i,a,t,r;if(this.filterManager.effectElements[1].p.v===1)r=this.elem.maskManager.masksProperties.length,t=0;else t=this.filterManager.effectElements[0].p.v-1,r=t+1;a=createNS("g"),a.setAttribute("fill","none"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-dashoffset",1);for(t;t<r;t+=1)i=createNS("path"),a.appendChild(i),this.paths.push({p:i,m:t});if(this.filterManager.effectElements[10].p.v===3){var e=createNS("mask"),n=createElementID();e.setAttribute("id",n),e.setAttribute("mask-type","alpha"),e.appendChild(a),this.elem.globalData.defs.appendChild(e);var s=createNS("g");s.setAttribute("mask","url("+getLocationHref()+"#"+n+")");while(o[0])s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=e,a.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){o=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(o.length)this.elem.layerElement.removeChild(o[0])}this.elem.layerElement.appendChild(a),this.elem.layerElement.removeAttribute("mask"),a.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=a},SVGStrokeEffect.prototype.renderFrame=function(o){if(!this.initialized)this.initialize();var i,a=this.paths.length,t,r;for(i=0;i<a;i+=1)if(this.paths[i].m!==-1){if(t=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,o||this.filterManager._mdf||t.prop._mdf)r.setAttribute("d",t.lastPath);if(o||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||t.prop._mdf){var e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,l=r.getTotalLength();e="0 0 0 "+l*n+" ";var h=l*(s-n),p=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01,H=Math.floor(h/p),f;for(f=0;f<H;f+=1)e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01+" ";e+="0 "+l*10+" 0 0"}else e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01;r.setAttribute("stroke-dasharray",e)}}if(o||this.filterManager.effectElements[4].p._mdf)this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2);if(o||this.filterManager.effectElements[6].p._mdf)this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v);if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(o||this.filterManager.effectElements[3].p._mdf){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}}};function SVGTritoneFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.appendChild(r);var e=createNS("feComponentTransfer");e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),this.matrixFilter=e;var n=createNS("feFuncR");n.setAttribute("type","table"),e.appendChild(n),this.feFuncR=n;var s=createNS("feFuncG");s.setAttribute("type","table"),e.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),e.appendChild(l),this.feFuncB=l,o.appendChild(e)}SVGTritoneFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v,r=t[0]+" "+a[0]+" "+i[0],e=t[1]+" "+a[1]+" "+i[1],n=t[2]+" "+a[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",e),this.feFuncB.setAttribute("tableValues",n)}};function SVGProLevelsFilter(o,i,a,t){this.filterManager=i;var r=this.filterManager.effectElements,e=createNS("feComponentTransfer");if(r[10].p.k||r[10].p.v!==0||r[11].p.k||r[11].p.v!==1||r[12].p.k||r[12].p.v!==1||r[13].p.k||r[13].p.v!==0||r[14].p.k||r[14].p.v!==1)this.feFuncR=this.createFeFunc("feFuncR",e);if(r[17].p.k||r[17].p.v!==0||r[18].p.k||r[18].p.v!==1||r[19].p.k||r[19].p.v!==1||r[20].p.k||r[20].p.v!==0||r[21].p.k||r[21].p.v!==1)this.feFuncG=this.createFeFunc("feFuncG",e);if(r[24].p.k||r[24].p.v!==0||r[25].p.k||r[25].p.v!==1||r[26].p.k||r[26].p.v!==1||r[27].p.k||r[27].p.v!==0||r[28].p.k||r[28].p.v!==1)this.feFuncB=this.createFeFunc("feFuncB",e);if(r[31].p.k||r[31].p.v!==0||r[32].p.k||r[32].p.v!==1||r[33].p.k||r[33].p.v!==1||r[34].p.k||r[34].p.v!==0||r[35].p.k||r[35].p.v!==1)this.feFuncA=this.createFeFunc("feFuncA",e);if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)e.setAttribute("color-interpolation-filters","sRGB"),o.appendChild(e);if(r[3].p.k||r[3].p.v!==0||r[4].p.k||r[4].p.v!==1||r[5].p.k||r[5].p.v!==1||r[6].p.k||r[6].p.v!==0||r[7].p.k||r[7].p.v!==1)e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),o.appendChild(e),this.feFuncRComposed=this.createFeFunc("feFuncR",e),this.feFuncGComposed=this.createFeFunc("feFuncG",e),this.feFuncBComposed=this.createFeFunc("feFuncB",e)}SVGProLevelsFilter.prototype.createFeFunc=function(o,i){var a=createNS(o);return a.setAttribute("type","table"),i.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(o,i,a,t,r){var e=0,n=256,s,l=Math.min(o,i),h=Math.max(o,i),p=Array.call(null,{length:n}),H,f=0,y=r-t,z=i-o;while(e<=256){if(s=e/256,s<=l)H=z<0?r:t;else if(s>=h)H=z<0?t:r;else H=t+y*Math.pow((s-o)/z,1/a);p[f]=H,f+=1,e+=256/(n-1)}return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i,a=this.filterManager.effectElements;if(this.feFuncRComposed&&(o||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf))i=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i);if(this.feFuncR&&(o||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf))i=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",i);if(this.feFuncG&&(o||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf))i=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",i);if(this.feFuncB&&(o||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf))i=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",i);if(this.feFuncA&&(o||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf))i=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",i)}};function SVGDropShadowEffect(o,i,a,t,r){var e=i.container.globalData.renderConfig.filterSize,n=i.data.fs||e;o.setAttribute("x",n.x||e.x),o.setAttribute("y",n.y||e.y),o.setAttribute("width",n.width||e.width),o.setAttribute("height",n.height||e.height),this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",t+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,o.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",t+"_drop_shadow_1"),l.setAttribute("result",t+"_drop_shadow_2"),this.feOffset=l,o.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",t+"_drop_shadow_3"),this.feFlood=h,o.appendChild(h);var p=createNS("feComposite");p.setAttribute("in",t+"_drop_shadow_3"),p.setAttribute("in2",t+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(p);var H=this.createMergeNode(t,[t+"_drop_shadow_4",r]);o.appendChild(H)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){if(o||this.filterManager.effectElements[4].p._mdf)this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4);if(o||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(i[0]*255),Math.round(i[1]*255),Math.round(i[2]*255)))}if(o||this.filterManager.effectElements[1].p._mdf)this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255);if(o||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=a*Math.cos(t),e=a*Math.sin(t);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(o,i,a){this.initialized=!1,this.filterManager=i,this.filterElem=o,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}SVGMatte3Effect.prototype.findSymbol=function(o){var i=0,a=_svgMatteSymbols.length;while(i<a){if(_svgMatteSymbols[i]===o)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(o,i){var a=o.layerElement.parentNode;if(!a)return;var t=a.children,r=0,e=t.length;while(r<e){if(t[r]===o.layerElement)break;r+=1}var n;if(r<=e-2)n=t[r+1];var s=createNS("use");if(s.setAttribute("href","#"+i),n)a.insertBefore(s,n);else a.appendChild(s)},SVGMatte3Effect.prototype.setElementAsMask=function(o,i){if(!this.findSymbol(i)){var a=createElementID(),t=createNS("mask");t.setAttribute("id",i.layerId),t.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var r=o.globalData.defs;r.appendChild(t);var e=createNS("symbol");e.setAttribute("id",a),this.replaceInParent(i,a),e.appendChild(i.layerElement),r.appendChild(e);var n=createNS("use");n.setAttribute("href","#"+a),t.appendChild(n),i.data.hd=!1,i.show()}o.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){var o=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,a=0,t=i.length;while(a<t){if(i[a]&&i[a].data.ind===o)this.setElementAsMask(this.elem,i[a]);a+=1}this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized)this.initialize()};function SVGGaussianBlurEffect(o,i,a,t){o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width","300%"),o.setAttribute("height","300%"),this.filterManager=i;var r=createNS("feGaussianBlur");r.setAttribute("result",t),o.appendChild(r),this.feGaussianBlur=r}SVGGaussianBlurEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=0.3,a=this.filterManager.effectElements[0].p.v*i,t=this.filterManager.effectElements[1].p.v,r=t==3?0:a,e=t==2?0:a;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+e);var n=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}};function TransformEffect(){}TransformEffect.prototype.init=function(o){this.effectsManager=o,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(o){if(this._opMdf=!1,this._mdf=!1,o||this.effectsManager._mdf){var i=this.effectsManager.effectElements,a=i[0].p.v,t=i[1].p.v,r=i[2].p.v===1,e=i[3].p.v,n=r?e:i[4].p.v,s=i[5].p.v,l=i[6].p.v,h=i[7].p.v;if(this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(n*0.01,e*0.01,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(t[0],t[1],0),this._mdf=!0,this.opacity!==i[8].p.v)this.opacity=i[8].p.v,this._opMdf=!0}};function SVGTransformEffect(o,i){this.init(i)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(o){this.init(o)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});class ki extends Event{constructor(o,i,a,t){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i,this.callback=a,this.subscribe=t??!1}}function ei(o){return o}class wo{constructor(o,i,a,t){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,e)),this.unsubscribe=e},this.host=o,i.context!==void 0){let r=i;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=i,this.callback=a,this.subscribe=t??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ki(this.context,this.host,this.t,this.subscribe))}}class La{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,i=!1){let a=i||!Object.is(o,this.o);this.o=o,a&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:a}]of this.subscriptions)i(this.o,a)},o!==void 0&&(this.value=o)}addCallback(o,i,a){if(!a)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:i});let{disposer:t}=this.subscriptions.get(o);o(this.value,t)}clearCallbacks(){this.subscriptions.clear()}}class Ur extends Event{constructor(o,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i}}class xi extends La{constructor(o,i,a){super(i.context!==void 0?i.initialValue:a),this.onContextRequest=(t)=>{if(t.context!==this.context)return;let r=t.contextTarget??t.composedPath()[0];r!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,r,t.subscribe))},this.onProviderRequest=(t)=>{if(t.context!==this.context)return;if((t.contextTarget??t.composedPath()[0])===this.host)return;let r=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)r.has(e)||(r.add(e),n.dispatchEvent(new ki(this.context,n,e,!0)));t.stopPropagation()},this.host=o,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ur(this.context,this.host))}}function to({context:o,subscribe:i}){return(a,t)=>{typeof t=="object"?t.addInitializer(function(){new wo(this,{context:o,callback:(r)=>{a.set.call(this,r)},subscribe:i})}):a.constructor.addInitializer((r)=>{new wo(r,{context:o,callback:(e)=>{r[t]=e},subscribe:i})})}}var Mn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Oa=Math.ceil,jo=Math.floor,Yo="[BigNumber Error] ",Rr=Yo+"Number primitive has more than 15 significant digits: ",Go=100000000000000,no=14,_a=9007199254740991,Xa=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],fi=1e7,So=1e9;function Ir(o){var i,a,t,r=u.prototype={constructor:u,toString:null,valueOf:null},e=new u(1),n=20,s=4,l=-7,h=21,p=-1e7,H=1e7,f=!1,y=1,z=0,v={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz",w=!0;function u(b,S){var I,C,J,F,j,U,x,K,c=this;if(!(c instanceof u))return new u(b,S);if(S==null){if(b&&b._isBigNumber===!0){if(c.s=b.s,!b.c||b.e>H)c.c=c.e=null;else if(b.e<p)c.c=[c.e=0];else c.e=b.e,c.c=b.c.slice();return}if((U=typeof b=="number")&&b*0==0){if(c.s=1/b<0?(b=-b,-1):1,b===~~b){for(F=0,j=b;j>=10;j/=10,F++);if(F>H)c.c=c.e=null;else c.e=F,c.c=[b];return}K=String(b)}else{if(!Mn.test(K=String(b)))return t(c,K,U);c.s=K.charCodeAt(0)==45?(K=K.slice(1),-1):1}if((F=K.indexOf("."))>-1)K=K.replace(".","");if((j=K.search(/e/i))>0){if(F<0)F=j;F+=+K.slice(j+1),K=K.substring(0,j)}else if(F<0)F=K.length}else{if(ko(S,2,q.length,"Base"),S==10&&w)return c=new u(b),R(c,n+c.e+1,s);if(K=String(b),U=typeof b=="number"){if(b*0!=0)return t(c,K,U,S);if(c.s=1/b<0?(K=K.slice(1),-1):1,u.DEBUG&&K.replace(/^0\.0*|\./,"").length>15)throw Error(Rr+b)}else c.s=K.charCodeAt(0)===45?(K=K.slice(1),-1):1;I=q.slice(0,S),F=j=0;for(x=K.length;j<x;j++)if(I.indexOf(C=K.charAt(j))<0){if(C=="."){if(j>F){F=x;continue}}else if(!J){if(K==K.toUpperCase()&&(K=K.toLowerCase())||K==K.toLowerCase()&&(K=K.toUpperCase())){J=!0,j=-1,F=0;continue}}return t(c,String(b),U,S)}if(U=!1,K=a(K,S,10,c.s),(F=K.indexOf("."))>-1)K=K.replace(".","");else F=K.length}for(j=0;K.charCodeAt(j)===48;j++);for(x=K.length;K.charCodeAt(--x)===48;);if(K=K.slice(j,++x)){if(x-=j,U&&u.DEBUG&&x>15&&(b>_a||b!==jo(b)))throw Error(Rr+c.s*b);if((F=F-j-1)>H)c.c=c.e=null;else if(F<p)c.c=[c.e=0];else{if(c.e=F,c.c=[],j=(F+1)%no,F<0)j+=no;if(j<x){if(j)c.c.push(+K.slice(0,j));for(x-=no;j<x;)c.c.push(+K.slice(j,j+=no));j=no-(K=K.slice(j)).length}else j-=x;for(;j--;K+="0");c.c.push(+K)}}else c.c=[c.e=0]}u.clone=Ir,u.ROUND_UP=0,u.ROUND_DOWN=1,u.ROUND_CEIL=2,u.ROUND_FLOOR=3,u.ROUND_HALF_UP=4,u.ROUND_HALF_DOWN=5,u.ROUND_HALF_EVEN=6,u.ROUND_HALF_CEIL=7,u.ROUND_HALF_FLOOR=8,u.EUCLID=9,u.config=u.set=function(b){var S,I;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(S="DECIMAL_PLACES"))I=b[S],ko(I,0,So,S),n=I;if(b.hasOwnProperty(S="ROUNDING_MODE"))I=b[S],ko(I,0,8,S),s=I;if(b.hasOwnProperty(S="EXPONENTIAL_AT"))if(I=b[S],I&&I.pop)ko(I[0],-So,0,S),ko(I[1],0,So,S),l=I[0],h=I[1];else ko(I,-So,So,S),l=-(h=I<0?-I:I);if(b.hasOwnProperty(S="RANGE"))if(I=b[S],I&&I.pop)ko(I[0],-So,-1,S),ko(I[1],1,So,S),p=I[0],H=I[1];else if(ko(I,-So,So,S),I)p=-(H=I<0?-I:I);else throw Error(Yo+S+" cannot be zero: "+I);if(b.hasOwnProperty(S="CRYPTO"))if(I=b[S],I===!!I)if(I)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=I;else throw f=!I,Error(Yo+"crypto unavailable");else f=I;else throw Error(Yo+S+" not true or false: "+I);if(b.hasOwnProperty(S="MODULO_MODE"))I=b[S],ko(I,0,9,S),y=I;if(b.hasOwnProperty(S="POW_PRECISION"))I=b[S],ko(I,0,So,S),z=I;if(b.hasOwnProperty(S="FORMAT"))if(I=b[S],typeof I=="object")v=I;else throw Error(Yo+S+" not an object: "+I);if(b.hasOwnProperty(S="ALPHABET"))if(I=b[S],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))w=I.slice(0,10)=="0123456789",q=I;else throw Error(Yo+S+" invalid: "+I)}else throw Error(Yo+"Object expected: "+b);return{DECIMAL_PLACES:n,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,h],RANGE:[p,H],CRYPTO:f,MODULO_MODE:y,POW_PRECISION:z,FORMAT:v,ALPHABET:q}},u.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!u.DEBUG)return!0;var S,I,C=b.c,J=b.e,F=b.s;o:if({}.toString.call(C)=="[object Array]"){if((F===1||F===-1)&&J>=-So&&J<=So&&J===jo(J)){if(C[0]===0){if(J===0&&C.length===1)return!0;break o}if(S=(J+1)%no,S<1)S+=no;if(String(C[0]).length==S){for(S=0;S<C.length;S++)if(I=C[S],I<0||I>=Go||I!==jo(I))break o;if(I!==0)return!0}}}else if(C===null&&J===null&&(F===null||F===1||F===-1))return!0;throw Error(Yo+"Invalid BigNumber: "+b)},u.maximum=u.max=function(){return k(arguments,-1)},u.minimum=u.min=function(){return k(arguments,1)},u.random=function(){var b=9007199254740992,S=Math.random()*b&2097151?function(){return jo(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var C,J,F,j,U,x=0,K=[],c=new u(e);if(I==null)I=n;else ko(I,0,So);if(j=Oa(I/no),f)if(crypto.getRandomValues){C=crypto.getRandomValues(new Uint32Array(j*=2));for(;x<j;)if(U=C[x]*131072+(C[x+1]>>>11),U>=9000000000000000)J=crypto.getRandomValues(new Uint32Array(2)),C[x]=J[0],C[x+1]=J[1];else K.push(U%100000000000000),x+=2;x=j/2}else if(crypto.randomBytes){C=crypto.randomBytes(j*=7);for(;x<j;)if(U=(C[x]&31)*281474976710656+C[x+1]*1099511627776+C[x+2]*4294967296+C[x+3]*16777216+(C[x+4]<<16)+(C[x+5]<<8)+C[x+6],U>=9000000000000000)crypto.randomBytes(7).copy(C,x);else K.push(U%100000000000000),x+=7;x=j/7}else throw f=!1,Error(Yo+"crypto unavailable");if(!f){for(;x<j;)if(U=S(),U<9000000000000000)K[x++]=U%100000000000000}if(j=K[--x],I%=no,j&&I)U=Xa[no-I],K[x]=jo(j/U)*U;for(;K[x]===0;K.pop(),x--);if(x<0)K=[F=0];else{for(F=-1;K[0]===0;K.splice(0,1),F-=no);for(x=1,U=K[0];U>=10;U/=10,x++);if(x<no)F-=no-x}return c.e=F,c.c=K,c}}(),u.sum=function(){var b=1,S=arguments,I=new u(S[0]);for(;b<S.length;)I=I.plus(S[b++]);return I},a=function(){var b="0123456789";function S(I,C,J,F){var j,U=[0],x,K=0,c=I.length;for(;K<c;){for(x=U.length;x--;U[x]*=C);U[0]+=F.indexOf(I.charAt(K++));for(j=0;j<U.length;j++)if(U[j]>J-1){if(U[j+1]==null)U[j+1]=0;U[j+1]+=U[j]/J|0,U[j]%=J}}return U.reverse()}return function(I,C,J,F,j){var U,x,K,c,m,P,Y,A,M=I.indexOf("."),E=n,oo=s;if(M>=0)c=z,z=0,I=I.replace(".",""),A=new u(C),P=A.pow(I.length-M),z=c,A.c=S(ni(Po(P.c),P.e,"0"),10,J,b),A.e=A.c.length;Y=S(I,C,J,j?(U=q,b):(U=b,q)),K=c=Y.length;for(;Y[--c]==0;Y.pop());if(!Y[0])return U.charAt(0);if(M<0)--K;else P.c=Y,P.e=K,P.s=F,P=i(P,A,E,oo,J),Y=P.c,m=P.r,K=P.e;if(x=K+E+1,M=Y[x],c=J/2,m=m||x<0||Y[x+1]!=null,m=oo<4?(M!=null||m)&&(oo==0||oo==(P.s<0?3:2)):M>c||M==c&&(oo==4||m||oo==6&&Y[x-1]&1||oo==(P.s<0?8:7)),x<1||!Y[0])I=m?ni(U.charAt(1),-E,U.charAt(0)):U.charAt(0);else{if(Y.length=x,m){for(--J;++Y[--x]>J;)if(Y[x]=0,!x)++K,Y=[1].concat(Y)}for(c=Y.length;!Y[--c];);for(M=0,I="";M<=c;I+=U.charAt(Y[M++]));I=ni(I,K,U.charAt(0))}return I}}(),i=function(){function b(C,J,F){var j,U,x,K,c=0,m=C.length,P=J%fi,Y=J/fi|0;for(C=C.slice();m--;)x=C[m]%fi,K=C[m]/fi|0,j=Y*x+K*P,U=P*x+j%fi*fi+c,c=(U/F|0)+(j/fi|0)+Y*K,C[m]=U%F;if(c)C=[c].concat(C);return C}function S(C,J,F,j){var U,x;if(F!=j)x=F>j?1:-1;else for(U=x=0;U<F;U++)if(C[U]!=J[U]){x=C[U]>J[U]?1:-1;break}return x}function I(C,J,F,j){var U=0;for(;F--;)C[F]-=U,U=C[F]<J[F]?1:0,C[F]=U*j+C[F]-J[F];for(;!C[0]&&C.length>1;C.splice(0,1));}return function(C,J,F,j,U){var x,K,c,m,P,Y,A,M,E,oo,ao,co,yo,Vo,Zo,po,Ho,so=C.s==J.s?1:-1,N=C.c,uo=J.c;if(!N||!N[0]||!uo||!uo[0])return new u(!C.s||!J.s||(N?uo&&N[0]==uo[0]:!uo)?NaN:N&&N[0]==0||!uo?so*0:so/0);if(M=new u(so),E=M.c=[],K=C.e-J.e,so=F+K+1,!U)U=Go,K=Lo(C.e/no)-Lo(J.e/no),so=so/no|0;for(c=0;uo[c]==(N[c]||0);c++);if(uo[c]>(N[c]||0))K--;if(so<0)E.push(1),m=!0;else{if(Vo=N.length,po=uo.length,c=0,so+=2,P=jo(U/(uo[0]+1)),P>1)uo=b(uo,P,U),N=b(N,P,U),po=uo.length,Vo=N.length;yo=po,oo=N.slice(0,po),ao=oo.length;for(;ao<po;oo[ao++]=0);if(Ho=uo.slice(),Ho=[0].concat(Ho),Zo=uo[0],uo[1]>=U/2)Zo++;do{if(P=0,x=S(uo,oo,po,ao),x<0){if(co=oo[0],po!=ao)co=co*U+(oo[1]||0);if(P=jo(co/Zo),P>1){if(P>=U)P=U-1;Y=b(uo,P,U),A=Y.length,ao=oo.length;while(S(Y,oo,A,ao)==1)P--,I(Y,po<A?Ho:uo,A,U),A=Y.length,x=1}else{if(P==0)x=P=1;Y=uo.slice(),A=Y.length}if(A<ao)Y=[0].concat(Y);if(I(oo,Y,ao,U),ao=oo.length,x==-1)while(S(uo,oo,po,ao)<1)P++,I(oo,po<ao?Ho:uo,ao,U),ao=oo.length}else if(x===0)P++,oo=[0];if(E[c++]=P,oo[0])oo[ao++]=N[yo]||0;else oo=[N[yo]],ao=1}while((yo++<Vo||oo[0]!=null)&&so--);if(m=oo[0]!=null,!E[0])E.splice(0,1)}if(U==Go){for(c=1,so=E[0];so>=10;so/=10,c++);R(M,F+(M.e=c+K*no-1)+1,j,m)}else M.e=K,M.r=+m;return M}}();function g(b,S,I,C){var J,F,j,U,x;if(I==null)I=s;else ko(I,0,8);if(!b.c)return b.toString();if(J=b.c[0],j=b.e,S==null)x=Po(b.c),x=C==1||C==2&&(j<=l||j>=h)?na(x,j):ni(x,j,"0");else if(b=R(new u(b),S,I),F=b.e,x=Po(b.c),U=x.length,C==1||C==2&&(S<=F||F<=l)){for(;U<S;x+="0",U++);x=na(x,F)}else if(S-=j,x=ni(x,F,"0"),F+1>U){if(--S>0)for(x+=".";S--;x+="0");}else if(S+=F-U,S>0){if(F+1==U)x+=".";for(;S--;x+="0");}return b.s<0&&J?"-"+x:x}function k(b,S){var I,C,J=1,F=new u(b[0]);for(;J<b.length;J++)if(C=new u(b[J]),!C.s||(I=zi(F,C))===S||I===0&&F.s===S)F=C;return F}function W(b,S,I){var C=1,J=S.length;for(;!S[--J];S.pop());for(J=S[0];J>=10;J/=10,C++);if((I=C+I*no-1)>H)b.c=b.e=null;else if(I<p)b.c=[b.e=0];else b.e=I,b.c=S;return b}t=function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,I=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,J=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(F,j,U,x){var K,c=U?j:j.replace(J,"");if(C.test(c))F.s=isNaN(c)?null:c<0?-1:1;else{if(!U){if(c=c.replace(b,function(m,P,Y){return K=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!x||x==K?P:m}),x)K=x,c=c.replace(S,"$1").replace(I,"0.$1");if(j!=c)return new u(c,K)}if(u.DEBUG)throw Error(Yo+"Not a"+(x?" base "+x:"")+" number: "+j);F.s=null}F.c=F.e=null}}();function R(b,S,I,C){var J,F,j,U,x,K,c,m=b.c,P=Xa;if(m){o:{for(J=1,U=m[0];U>=10;U/=10,J++);if(F=S-J,F<0)F+=no,j=S,x=m[K=0],c=jo(x/P[J-j-1]%10);else if(K=Oa((F+1)/no),K>=m.length)if(C){for(;m.length<=K;m.push(0));x=c=0,J=1,F%=no,j=F-no+1}else break o;else{x=U=m[K];for(J=1;U>=10;U/=10,J++);F%=no,j=F-no+J,c=j<0?0:jo(x/P[J-j-1]%10)}if(C=C||S<0||m[K+1]!=null||(j<0?x:x%P[J-j-1]),C=I<4?(c||C)&&(I==0||I==(b.s<0?3:2)):c>5||c==5&&(I==4||C||I==6&&(F>0?j>0?x/P[J-j]:0:m[K-1])%10&1||I==(b.s<0?8:7)),S<1||!m[0]){if(m.length=0,C)S-=b.e+1,m[0]=P[(no-S%no)%no],b.e=-S||0;else m[0]=b.e=0;return b}if(F==0)m.length=K,U=1,K--;else m.length=K+1,U=P[no-F],m[K]=j>0?jo(x/P[J-j]%P[j])*U:0;if(C)for(;;)if(K==0){for(F=1,j=m[0];j>=10;j/=10,F++);j=m[0]+=U;for(U=1;j>=10;j/=10,U++);if(F!=U){if(b.e++,m[0]==Go)m[0]=1}break}else{if(m[K]+=U,m[K]!=Go)break;m[K--]=0,U=1}for(F=m.length;m[--F]===0;m.pop());}if(b.e>H)b.c=b.e=null;else if(b.e<p)b.c=[b.e=0]}return b}function Q(b){var S,I=b.e;if(I===null)return b.toString();return S=Po(b.c),S=I<=l||I>=h?na(S,I):ni(S,I,"0"),b.s<0?"-"+S:S}if(r.absoluteValue=r.abs=function(){var b=new u(this);if(b.s<0)b.s=1;return b},r.comparedTo=function(b,S){return zi(this,new u(b,S))},r.decimalPlaces=r.dp=function(b,S){var I,C,J,F=this;if(b!=null){if(ko(b,0,So),S==null)S=s;else ko(S,0,8);return R(new u(F),b+F.e+1,S)}if(!(I=F.c))return null;if(C=((J=I.length-1)-Lo(this.e/no))*no,J=I[J])for(;J%10==0;J/=10,C--);if(C<0)C=0;return C},r.dividedBy=r.div=function(b,S){return i(this,new u(b,S),n,s)},r.dividedToIntegerBy=r.idiv=function(b,S){return i(this,new u(b,S),0,1)},r.exponentiatedBy=r.pow=function(b,S){var I,C,J,F,j,U,x,K,c,m=this;if(b=new u(b),b.c&&!b.isInteger())throw Error(Yo+"Exponent not an integer: "+Q(b));if(S!=null)S=new u(S);if(U=b.e>14,!m.c||!m.c[0]||m.c[0]==1&&!m.e&&m.c.length==1||!b.c||!b.c[0])return c=new u(Math.pow(+Q(m),U?b.s*(2-ea(b)):+Q(b))),S?c.mod(S):c;if(x=b.s<0,S){if(S.c?!S.c[0]:!S.s)return new u(NaN);if(C=!x&&m.isInteger()&&S.isInteger(),C)m=m.mod(S)}else if(b.e>9&&(m.e>0||m.e<-1||(m.e==0?m.c[0]>1||U&&m.c[1]>=240000000:m.c[0]<80000000000000||U&&m.c[0]<=99999750000000))){if(F=m.s<0&&ea(b)?-0:0,m.e>-1)F=1/F;return new u(x?1/F:F)}else if(z)F=Oa(z/no+2);if(U){if(I=new u(0.5),x)b.s=1;K=ea(b)}else J=Math.abs(+Q(b)),K=J%2;c=new u(e);for(;;){if(K){if(c=c.times(m),!c.c)break;if(F){if(c.c.length>F)c.c.length=F}else if(C)c=c.mod(S)}if(J){if(J=jo(J/2),J===0)break;K=J%2}else if(b=b.times(I),R(b,b.e+1,1),b.e>14)K=ea(b);else{if(J=+Q(b),J===0)break;K=J%2}if(m=m.times(m),F){if(m.c&&m.c.length>F)m.c.length=F}else if(C)m=m.mod(S)}if(C)return c;if(x)c=e.div(c);return S?c.mod(S):F?R(c,z,s,j):c},r.integerValue=function(b){var S=new u(this);if(b==null)b=s;else ko(b,0,8);return R(S,S.e+1,b)},r.isEqualTo=r.eq=function(b,S){return zi(this,new u(b,S))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(b,S){return zi(this,new u(b,S))>0},r.isGreaterThanOrEqualTo=r.gte=function(b,S){return(S=zi(this,new u(b,S)))===1||S===0},r.isInteger=function(){return!!this.c&&Lo(this.e/no)>this.c.length-2},r.isLessThan=r.lt=function(b,S){return zi(this,new u(b,S))<0},r.isLessThanOrEqualTo=r.lte=function(b,S){return(S=zi(this,new u(b,S)))===-1||S===0},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&this.c[0]==0},r.minus=function(b,S){var I,C,J,F,j=this,U=j.s;if(b=new u(b,S),S=b.s,!U||!S)return new u(NaN);if(U!=S)return b.s=-S,j.plus(b);var x=j.e/no,K=b.e/no,c=j.c,m=b.c;if(!x||!K){if(!c||!m)return c?(b.s=-S,b):new u(m?j:NaN);if(!c[0]||!m[0])return m[0]?(b.s=-S,b):new u(c[0]?j:s==3?-0:0)}if(x=Lo(x),K=Lo(K),c=c.slice(),U=x-K){if(F=U<0)U=-U,J=c;else K=x,J=m;J.reverse();for(S=U;S--;J.push(0));J.reverse()}else{C=(F=(U=c.length)<(S=m.length))?U:S;for(U=S=0;S<C;S++)if(c[S]!=m[S]){F=c[S]<m[S];break}}if(F)J=c,c=m,m=J,b.s=-b.s;if(S=(C=m.length)-(I=c.length),S>0)for(;S--;c[I++]=0);S=Go-1;for(;C>U;){if(c[--C]<m[C]){for(I=C;I&&!c[--I];c[I]=S);--c[I],c[C]+=Go}c[C]-=m[C]}for(;c[0]==0;c.splice(0,1),--K);if(!c[0])return b.s=s==3?-1:1,b.c=[b.e=0],b;return W(b,c,K)},r.modulo=r.mod=function(b,S){var I,C,J=this;if(b=new u(b,S),!J.c||!b.s||b.c&&!b.c[0])return new u(NaN);else if(!b.c||J.c&&!J.c[0])return new u(J);if(y==9)C=b.s,b.s=1,I=i(J,b,0,3),b.s=C,I.s*=C;else I=i(J,b,0,y);if(b=J.minus(I.times(b)),!b.c[0]&&y==1)b.s=J.s;return b},r.multipliedBy=r.times=function(b,S){var I,C,J,F,j,U,x,K,c,m,P,Y,A,M,E,oo=this,ao=oo.c,co=(b=new u(b,S)).c;if(!ao||!co||!ao[0]||!co[0]){if(!oo.s||!b.s||ao&&!ao[0]&&!co||co&&!co[0]&&!ao)b.c=b.e=b.s=null;else if(b.s*=oo.s,!ao||!co)b.c=b.e=null;else b.c=[0],b.e=0;return b}if(C=Lo(oo.e/no)+Lo(b.e/no),b.s*=oo.s,x=ao.length,m=co.length,x<m)A=ao,ao=co,co=A,J=x,x=m,m=J;for(J=x+m,A=[];J--;A.push(0));M=Go,E=fi;for(J=m;--J>=0;){I=0,P=co[J]%E,Y=co[J]/E|0;for(j=x,F=J+j;F>J;)K=ao[--j]%E,c=ao[j]/E|0,U=Y*K+c*P,K=P*K+U%E*E+A[F]+I,I=(K/M|0)+(U/E|0)+Y*c,A[F--]=K%M;A[F]=I}if(I)++C;else A.splice(0,1);return W(b,A,C)},r.negated=function(){var b=new u(this);return b.s=-b.s||null,b},r.plus=function(b,S){var I,C=this,J=C.s;if(b=new u(b,S),S=b.s,!J||!S)return new u(NaN);if(J!=S)return b.s=-S,C.minus(b);var F=C.e/no,j=b.e/no,U=C.c,x=b.c;if(!F||!j){if(!U||!x)return new u(J/0);if(!U[0]||!x[0])return x[0]?b:new u(U[0]?C:J*0)}if(F=Lo(F),j=Lo(j),U=U.slice(),J=F-j){if(J>0)j=F,I=x;else J=-J,I=U;I.reverse();for(;J--;I.push(0));I.reverse()}if(J=U.length,S=x.length,J-S<0)I=x,x=U,U=I,S=J;for(J=0;S;)J=(U[--S]=U[S]+x[S]+J)/Go|0,U[S]=Go===U[S]?0:U[S]%Go;if(J)U=[J].concat(U),++j;return W(b,U,j)},r.precision=r.sd=function(b,S){var I,C,J,F=this;if(b!=null&&b!==!!b){if(ko(b,1,So),S==null)S=s;else ko(S,0,8);return R(new u(F),b,S)}if(!(I=F.c))return null;if(J=I.length-1,C=J*no+1,J=I[J]){for(;J%10==0;J/=10,C--);for(J=I[0];J>=10;J/=10,C++);}if(b&&F.e+1>C)C=F.e+1;return C},r.shiftedBy=function(b){return ko(b,-_a,_a),this.times("1e"+b)},r.squareRoot=r.sqrt=function(){var b,S,I,C,J,F=this,j=F.c,U=F.s,x=F.e,K=n+4,c=new u("0.5");if(U!==1||!j||!j[0])return new u(!U||U<0&&(!j||j[0])?NaN:j?F:1/0);if(U=Math.sqrt(+Q(F)),U==0||U==1/0){if(S=Po(j),(S.length+x)%2==0)S+="0";if(U=Math.sqrt(+S),x=Lo((x+1)/2)-(x<0||x%2),U==1/0)S="5e"+x;else S=U.toExponential(),S=S.slice(0,S.indexOf("e")+1)+x;I=new u(S)}else I=new u(U+"");if(I.c[0]){if(x=I.e,U=x+K,U<3)U=0;for(;;)if(J=I,I=c.times(J.plus(i(F,J,K,1))),Po(J.c).slice(0,U)===(S=Po(I.c)).slice(0,U)){if(I.e<x)--U;if(S=S.slice(U-3,U+1),S=="9999"||!C&&S=="4999"){if(!C){if(R(J,J.e+n+2,0),J.times(J).eq(F)){I=J;break}}K+=4,U+=4,C=1}else{if(!+S||!+S.slice(1)&&S.charAt(0)=="5")R(I,I.e+n+2,1),b=!I.times(I).eq(F);break}}}return R(I,I.e+n+1,s,b)},r.toExponential=function(b,S){if(b!=null)ko(b,0,So),b++;return g(this,b,S,1)},r.toFixed=function(b,S){if(b!=null)ko(b,0,So),b=b+this.e+1;return g(this,b,S)},r.toFormat=function(b,S,I){var C,J=this;if(I==null)if(b!=null&&S&&typeof S=="object")I=S,S=null;else if(b&&typeof b=="object")I=b,b=S=null;else I=v;else if(typeof I!="object")throw Error(Yo+"Argument not an object: "+I);if(C=J.toFixed(b,S),J.c){var F,j=C.split("."),U=+I.groupSize,x=+I.secondaryGroupSize,K=I.groupSeparator||"",c=j[0],m=j[1],P=J.s<0,Y=P?c.slice(1):c,A=Y.length;if(x)F=U,U=x,x=F,A-=F;if(U>0&&A>0){F=A%U||U,c=Y.substr(0,F);for(;F<A;F+=U)c+=K+Y.substr(F,U);if(x>0)c+=K+Y.slice(F);if(P)c="-"+c}C=m?c+(I.decimalSeparator||"")+((x=+I.fractionGroupSize)?m.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):m):c}return(I.prefix||"")+C+(I.suffix||"")},r.toFraction=function(b){var S,I,C,J,F,j,U,x,K,c,m,P,Y=this,A=Y.c;if(b!=null){if(U=new u(b),!U.isInteger()&&(U.c||U.s!==1)||U.lt(e))throw Error(Yo+"Argument "+(U.isInteger()?"out of range: ":"not an integer: ")+Q(U))}if(!A)return new u(Y);S=new u(e),K=I=new u(e),C=x=new u(e),P=Po(A),F=S.e=P.length-Y.e-1,S.c[0]=Xa[(j=F%no)<0?no+j:j],b=!b||U.comparedTo(S)>0?F>0?S:K:U,j=H,H=1/0,U=new u(P),x.c[0]=0;for(;;){if(c=i(U,S,0,1),J=I.plus(c.times(C)),J.comparedTo(b)==1)break;I=C,C=J,K=x.plus(c.times(J=K)),x=J,S=U.minus(c.times(J=S)),U=J}return J=i(b.minus(I),C,0,1),x=x.plus(J.times(K)),I=I.plus(J.times(C)),x.s=K.s=Y.s,F=F*2,m=i(K,C,F,s).minus(Y).abs().comparedTo(i(x,I,F,s).minus(Y).abs())<1?[K,C]:[x,I],H=j,m},r.toNumber=function(){return+Q(this)},r.toPrecision=function(b,S){if(b!=null)ko(b,1,So);return g(this,b,S,2)},r.toString=function(b){var S,I=this,C=I.s,J=I.e;if(J===null)if(C){if(S="Infinity",C<0)S="-"+S}else S="NaN";else{if(b==null)S=J<=l||J>=h?na(Po(I.c),J):ni(Po(I.c),J,"0");else if(b===10&&w)I=R(new u(I),n+J+1,s),S=ni(Po(I.c),I.e,"0");else ko(b,2,q.length,"Base"),S=a(ni(Po(I.c),J,"0"),10,b,C,!0);if(C<0&&I.c[0])S="-"+S}return S},r.valueOf=r.toJSON=function(){return Q(this)},r._isBigNumber=!0,r[Symbol.toStringTag]="BigNumber",r[Symbol.for("nodejs.util.inspect.custom")]=r.valueOf,o!=null)u.set(o);return u}function Lo(o){var i=o|0;return o>0||o===i?i:i-1}function Po(o){var i,a,t=1,r=o.length,e=o[0]+"";for(;t<r;){i=o[t++]+"",a=no-i.length;for(;a--;i="0"+i);e+=i}for(r=e.length;e.charCodeAt(--r)===48;);return e.slice(0,r+1||1)}function zi(o,i){var a,t,r=o.c,e=i.c,n=o.s,s=i.s,l=o.e,h=i.e;if(!n||!s)return null;if(a=r&&!r[0],t=e&&!e[0],a||t)return a?t?0:-s:n;if(n!=s)return n;if(a=n<0,t=l==h,!r||!e)return t?0:!r^a?1:-1;if(!t)return l>h^a?1:-1;s=(l=r.length)<(h=e.length)?l:h;for(n=0;n<s;n++)if(r[n]!=e[n])return r[n]>e[n]^a?1:-1;return l==h?0:l>h^a?1:-1}function ko(o,i,a,t){if(o<i||o>a||o!==jo(o))throw Error(Yo+(t||"Argument")+(typeof o=="number"?o<i||o>a?" out of range: ":" not an integer: ":" not a primitive number: ")+String(o))}function ea(o){var i=o.c.length-1;return Lo(o.e/no)==i&&o.c[i]%2!=0}function na(o,i){return(o.length>1?o.charAt(0)+"."+o.slice(1):o)+(i<0?"e":"e+")+i}function ni(o,i,a){var t,r;if(i<0){for(r=a+".";++i;r+=a);o=r+o}else if(t=o.length,++i>t){for(r=a,i-=t;--i;r+=a);o+=r}else if(i<t)o=o.slice(0,i)+"."+o.slice(i);return o}var En=Ir(),L=En;var sa=globalThis,la=sa.ShadowRoot&&(sa.ShadyCSS===void 0||sa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Aa=Symbol(),Jr=new WeakMap;class da{constructor(o,i,a){if(this._$cssResult$=!0,a!==Aa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=i}get styleSheet(){let o=this.o,i=this.t;if(la&&o===void 0){let a=i!==void 0&&i.length===1;a&&(o=Jr.get(i)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),a&&Jr.set(i,o))}return o}toString(){return this.cssText}}var Vr=(o)=>new da(typeof o=="string"?o:o+"",void 0,Aa),G=(o,...i)=>{let a=o.length===1?o[0]:i.reduce((t,r,e)=>t+((n)=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[e+1],o[0]);return new da(a,o,Aa)},$r=(o,i)=>{if(la)o.adoptedStyleSheets=i.map((a)=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of i){let t=document.createElement("style"),r=sa.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=a.cssText,o.appendChild(t)}},Ga=la?(o)=>o:(o)=>o instanceof CSSStyleSheet?((i)=>{let a="";for(let t of i.cssRules)a+=t.cssText;return Vr(a)})(o):o;var{is:os,defineProperty:is,getOwnPropertyDescriptor:as,getOwnPropertyNames:ts,getOwnPropertySymbols:rs,getPrototypeOf:es}=Object,ca=globalThis,Yr=ca.trustedTypes,ns=Yr?Yr.emptyScript:"",ss=ca.reactiveElementPolyfillSupport,Li=(o,i)=>o,Oi={toAttribute(o,i){switch(i){case Boolean:o=o?ns:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let a=o;switch(i){case Boolean:a=o!==null;break;case Number:a=o===null?null:Number(o);break;case Object:case Array:try{a=JSON.parse(o)}catch(t){a=null}}return a}},ha=(o,i)=>!os(o,i),Qr={attribute:!0,type:String,converter:Oi,reflect:!1,useDefault:!1,hasChanged:ha};Symbol.metadata??=Symbol("metadata"),ca.litPropertyMetadata??=new WeakMap;class gi extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,i=Qr){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(o,i),!i.noAccessor){let a=Symbol(),t=this.getPropertyDescriptor(o,a,i);t!==void 0&&is(this.prototype,o,t)}}static getPropertyDescriptor(o,i,a){let{get:t,set:r}=as(this.prototype,o)??{get(){return this[i]},set(e){this[i]=e}};return{get:t,set(e){let n=t?.call(this);r?.call(this,e),this.requestUpdate(o,n,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??Qr}static _$Ei(){if(this.hasOwnProperty(Li("elementProperties")))return;let o=es(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Li("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Li("properties"))){let i=this.properties,a=[...ts(i),...rs(i)];for(let t of a)this.createProperty(t,i[t])}let o=this[Symbol.metadata];if(o!==null){let i=litPropertyMetadata.get(o);if(i!==void 0)for(let[a,t]of i)this.elementProperties.set(a,t)}this._$Eh=new Map;for(let[i,a]of this.elementProperties){let t=this._$Eu(i,a);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let i=[];if(Array.isArray(o)){let a=new Set(o.flat(1/0).reverse());for(let t of a)i.unshift(Ga(t))}else o!==void 0&&i.push(Ga(o));return i}static _$Eu(o,i){let a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((o)=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o)=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,i=this.constructor.elementProperties;for(let a of i.keys())this.hasOwnProperty(a)&&(o.set(a,this[a]),delete this[a]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $r(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o)=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o)=>o.hostDisconnected?.())}attributeChangedCallback(o,i,a){this._$AK(o,a)}_$ET(o,i){let a=this.constructor.elementProperties.get(o),t=this.constructor._$Eu(o,a);if(t!==void 0&&a.reflect===!0){let r=(a.converter?.toAttribute!==void 0?a.converter:Oi).toAttribute(i,a.type);this._$Em=o,r==null?this.removeAttribute(t):this.setAttribute(t,r),this._$Em=null}}_$AK(o,i){let a=this.constructor,t=a._$Eh.get(o);if(t!==void 0&&this._$Em!==t){let r=a.getPropertyOptions(t),e=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Oi;this._$Em=t,this[t]=e.fromAttribute(i,r.type)??this._$Ej?.get(t)??null,this._$Em=null}}requestUpdate(o,i,a){if(o!==void 0){let t=this.constructor,r=this[o];if(a??=t.getPropertyOptions(o),!((a.hasChanged??ha)(r,i)||a.useDefault&&a.reflect&&r===this._$Ej?.get(o)&&!this.hasAttribute(t._$Eu(o,a))))return;this.C(o,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,i,{useDefault:a,reflect:t,wrapped:r},e){a&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,e??i??this[o]),r!==!0||e!==void 0)||(this._$AL.has(o)||(this.hasUpdated||a||(i=void 0),this._$AL.set(o,i)),t===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,r]of this._$Ep)this[t]=r;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[t,r]of a){let{wrapped:e}=r,n=this[t];e!==!0||this._$AL.has(t)||n===void 0||this.C(t,void 0,r,n)}}let o=!1,i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),this._$EO?.forEach((a)=>a.hostUpdate?.()),this.update(i)):this._$EM()}catch(a){throw o=!1,this._$EM(),a}o&&this._$AE(i)}willUpdate(o){}_$AE(o){this._$EO?.forEach((i)=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach((i)=>this._$ET(i,this[i])),this._$EM()}updated(o){}firstUpdated(o){}}gi.elementStyles=[],gi.shadowRootOptions={mode:"open"},gi[Li("elementProperties")]=new Map,gi[Li("finalized")]=new Map,ss?.({ReactiveElement:gi}),(ca.reactiveElementVersions??=[]).push("2.1.0");var Ta=globalThis,ua=Ta.trustedTypes,Fr=ua?ua.createPolicy("lit-html",{createHTML:(o)=>o}):void 0;var si=`lit$${Math.random().toFixed(9).slice(2)}$`,Ba="?"+si,ls=`<${Ba}>`,Zi=document,Xi=()=>Zi.createComment(""),Ai=(o)=>o===null||typeof o!="object"&&typeof o!="function",Da=Array.isArray,_r=(o)=>Da(o)||typeof o?.[Symbol.iterator]=="function";var _i=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cr=/-->/g,Pr=/>/g,yi=RegExp(`>|[
|
|
9
|
+
*/var Matrix=function(){var{cos:o,sin:i,tan:a,round:t}=Math;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(m,-P,0,0,P,m,0,0,0,0,1,0,0,0,0,1)}function n(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(1,0,0,0,0,m,-P,0,0,P,m,0,0,0,0,1)}function s(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(m,0,P,0,0,1,0,0,-P,0,m,0,0,0,0,1)}function l(c){if(c===0)return this;var m=o(c),P=i(c);return this._t(m,-P,0,0,P,m,0,0,0,0,1,0,0,0,0,1)}function h(c,m){return this._t(1,m,c,1,0,0)}function p(c,m){return this.shear(a(c),a(m))}function H(c,m){var P=o(m),Y=i(m);return this._t(P,Y,0,0,-Y,P,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(c),1,0,0,0,0,1,0,0,0,0,1)._t(P,-Y,0,0,Y,P,0,0,0,0,1,0,0,0,0,1)}function f(c,m,P){if(!P&&P!==0)P=1;if(c===1&&m===1&&P===1)return this;return this._t(c,0,0,0,0,m,0,0,0,0,P,0,0,0,0,1)}function y(c,m,P,Y,A,M,E,oo,to,co,yo,Vo,Zo,po,Ho,so){return this.props[0]=c,this.props[1]=m,this.props[2]=P,this.props[3]=Y,this.props[4]=A,this.props[5]=M,this.props[6]=E,this.props[7]=oo,this.props[8]=to,this.props[9]=co,this.props[10]=yo,this.props[11]=Vo,this.props[12]=Zo,this.props[13]=po,this.props[14]=Ho,this.props[15]=so,this}function z(c,m,P){if(P=P||0,c!==0||m!==0||P!==0)return this._t(1,0,0,0,0,1,0,0,0,0,1,0,c,m,P,1);return this}function v(c,m,P,Y,A,M,E,oo,to,co,yo,Vo,Zo,po,Ho,so){var N=this.props;if(c===1&&m===0&&P===0&&Y===0&&A===0&&M===1&&E===0&&oo===0&&to===0&&co===0&&yo===1&&Vo===0)return N[12]=N[12]*c+N[15]*Zo,N[13]=N[13]*M+N[15]*po,N[14]=N[14]*yo+N[15]*Ho,N[15]*=so,this._identityCalculated=!1,this;var uo=N[0],di=N[1],ai=N[2],Mo=N[3],ti=N[4],ri=N[5],$o=N[6],ci=N[7],hi=N[8],Xo=N[9],ui=N[10],Ao=N[11],mi=N[12],aa=N[13],ta=N[14],ra=N[15];return N[0]=uo*c+di*A+ai*to+Mo*Zo,N[1]=uo*m+di*M+ai*co+Mo*po,N[2]=uo*P+di*E+ai*yo+Mo*Ho,N[3]=uo*Y+di*oo+ai*Vo+Mo*so,N[4]=ti*c+ri*A+$o*to+ci*Zo,N[5]=ti*m+ri*M+$o*co+ci*po,N[6]=ti*P+ri*E+$o*yo+ci*Ho,N[7]=ti*Y+ri*oo+$o*Vo+ci*so,N[8]=hi*c+Xo*A+ui*to+Ao*Zo,N[9]=hi*m+Xo*M+ui*co+Ao*po,N[10]=hi*P+Xo*E+ui*yo+Ao*Ho,N[11]=hi*Y+Xo*oo+ui*Vo+Ao*so,N[12]=mi*c+aa*A+ta*to+ra*Zo,N[13]=mi*m+aa*M+ta*co+ra*po,N[14]=mi*P+aa*E+ta*yo+ra*Ho,N[15]=mi*Y+aa*oo+ta*Vo+ra*so,this._identityCalculated=!1,this}function q(c){var m=c.props;return this.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15])}function w(){if(!this._identityCalculated)this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0;return this._identity}function u(c){var m=0;while(m<16){if(c.props[m]!==this.props[m])return!1;m+=1}return!0}function g(c){var m;for(m=0;m<16;m+=1)c.props[m]=this.props[m];return c}function k(c){var m;for(m=0;m<16;m+=1)this.props[m]=c[m]}function W(c,m,P){return{x:c*this.props[0]+m*this.props[4]+P*this.props[8]+this.props[12],y:c*this.props[1]+m*this.props[5]+P*this.props[9]+this.props[13],z:c*this.props[2]+m*this.props[6]+P*this.props[10]+this.props[14]}}function R(c,m,P){return c*this.props[0]+m*this.props[4]+P*this.props[8]+this.props[12]}function Q(c,m,P){return c*this.props[1]+m*this.props[5]+P*this.props[9]+this.props[13]}function b(c,m,P){return c*this.props[2]+m*this.props[6]+P*this.props[10]+this.props[14]}function S(){var c=this.props[0]*this.props[5]-this.props[1]*this.props[4],m=this.props[5]/c,P=-this.props[1]/c,Y=-this.props[4]/c,A=this.props[0]/c,M=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/c,E=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/c,oo=new Matrix;return oo.props[0]=m,oo.props[1]=P,oo.props[4]=Y,oo.props[5]=A,oo.props[12]=M,oo.props[13]=E,oo}function I(c){var m=this.getInverseMatrix();return m.applyToPointArray(c[0],c[1],c[2]||0)}function C(c){var m,P=c.length,Y=[];for(m=0;m<P;m+=1)Y[m]=I(c[m]);return Y}function J(c,m,P){var Y=createTypedArray("float32",6);if(this.isIdentity())Y[0]=c[0],Y[1]=c[1],Y[2]=m[0],Y[3]=m[1],Y[4]=P[0],Y[5]=P[1];else{var A=this.props[0],M=this.props[1],E=this.props[4],oo=this.props[5],to=this.props[12],co=this.props[13];Y[0]=c[0]*A+c[1]*E+to,Y[1]=c[0]*M+c[1]*oo+co,Y[2]=m[0]*A+m[1]*E+to,Y[3]=m[0]*M+m[1]*oo+co,Y[4]=P[0]*A+P[1]*E+to,Y[5]=P[0]*M+P[1]*oo+co}return Y}function F(c,m,P){var Y;if(this.isIdentity())Y=[c,m,P];else Y=[c*this.props[0]+m*this.props[4]+P*this.props[8]+this.props[12],c*this.props[1]+m*this.props[5]+P*this.props[9]+this.props[13],c*this.props[2]+m*this.props[6]+P*this.props[10]+this.props[14]];return Y}function j(c,m){if(this.isIdentity())return c+","+m;var P=this.props;return Math.round((c*P[0]+m*P[4]+P[12])*100)/100+","+Math.round((c*P[1]+m*P[5]+P[13])*100)/100}function U(){var c=0,m=this.props,P="matrix3d(",Y=1e4;while(c<16)P+=t(m[c]*Y)/Y,P+=c===15?")":",",c+=1;return P}function x(c){var m=1e4;if(c<0.000001&&c>0||c>-0.000001&&c<0)return t(c*m)/m;return c}function K(){var c=this.props,m=x(c[0]),P=x(c[1]),Y=x(c[4]),A=x(c[5]),M=x(c[12]),E=x(c[13]);return"matrix("+m+","+P+","+Y+","+A+","+M+","+E+")"}return function(){this.reset=r,this.rotate=e,this.rotateX=n,this.rotateY=s,this.rotateZ=l,this.skew=p,this.skewFromAxis=H,this.shear=h,this.scale=f,this.setTransform=y,this.translate=z,this.transform=v,this.multiply=q,this.applyToPoint=W,this.applyToX=R,this.applyToY=Q,this.applyToZ=b,this.applyToPointArray=F,this.applyToTriplePoints=J,this.applyToPointStringified=j,this.toCSS=U,this.to2dCSS=K,this.clone=g,this.cloneFromProps=k,this.equals=u,this.inversePoints=C,this.inversePoint=I,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(o){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(o)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(o){setLocationHref(o)}function searchAnimations(){if(standalone===!0)animationManager.searchAnimations(animationData,standalone,renderer);else animationManager.searchAnimations()}function setSubframeRendering(o){setSubframeEnabled(o)}function setPrefix(o){setIdPrefix(o)}function loadAnimation(o){if(standalone===!0)o.animationData=JSON.parse(animationData);return animationManager.loadAnimation(o)}function setQuality(o){if(typeof o==="string")switch(o){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else if(!isNaN(o)&&o>1)setDefaultCurveSegments(o);if(getDefaultCurveSegments()>=50)roundValues(!1);else roundValues(!0)}function inBrowser(){return typeof navigator!=="undefined"}function installPlugin(o,i){if(o==="expressions")setExpressionsPlugin(i)}function getFactory(o){switch(o){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){if(document.readyState==="complete")clearInterval(readyStateCheckInterval),searchAnimations()}function getQueryVariable(o){var i=queryString.split("&");for(var a=0;a<i.length;a+=1){var t=i[a].split("=");if(decodeURIComponent(t[0])==o)return decodeURIComponent(t[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{if(!((typeof Ci==="undefined"?"undefined":_typeof$3(Ci))==="object"&&typeof Bi!=="undefined")&&!(typeof define==="function"&&define.amd))window.bodymovin=lottie}catch(o){}var ShapeModifiers=function(){var o={},i={};o.registerModifier=a,o.getModifier=t;function a(r,e){if(!i[r])i[r]=e}function t(r,e,n){return new i[r](e,n)}return o}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(o){if(!this.closed){o.sh.container.addDynamicProperty(o.sh);var i={shape:o.sh,data:o,localShapeCollection:shapeCollectionPool.newShapeCollection()};if(this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated)o.setAsAnimated()}},ShapeModifier.prototype.init=function(o,i){if(this.shapes=[],this.elem=o,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId)return;this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties()},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(o,i){this.s=PropertyFactory.getProp(o,i.s,0,0.01,this),this.e=PropertyFactory.getProp(o,i.e,0,0.01,this),this.o=PropertyFactory.getProp(o,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(o){o.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(o,i,a,t,r){var e=[];if(i<=1)e.push({s:o,e:i});else if(o>=1)e.push({s:o-1,e:i-1});else e.push({s:o,e:1}),e.push({s:0,e:i-1});var n=[],s,l=e.length,h;for(s=0;s<l;s+=1)if(h=e[s],!(h.e*r<t||h.s*r>t+a)){var p,H;if(h.s*r<=t)p=0;else p=(h.s*r-t)/a;if(h.e*r>=t+a)H=1;else H=(h.e*r-t)/a;n.push([p,H])}if(!n.length)n.push([0,0]);return n},TrimModifier.prototype.releasePathsData=function(o){var i,a=o.length;for(i=0;i<a;i+=1)segmentsLengthPool.release(o[i]);return o.length=0,o},TrimModifier.prototype.processShapes=function(o){var i,a;if(this._mdf||o){var t=this.o.v%360/360;if(t<0)t+=1;if(this.s.v>1)i=1+t;else if(this.s.v<0)i=0+t;else i=this.s.v+t;if(this.e.v>1)a=1+t;else if(this.e.v<0)a=0+t;else a=this.e.v+t;if(i>a){var r=i;i=a,a=r}i=Math.round(i*1e4)*0.0001,a=Math.round(a*1e4)*0.0001,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var e,n,s=this.shapes.length,l,h,p,H,f,y=0;if(a===i){for(n=0;n<s;n+=1)if(this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf)this.shapes[n].pathsData.length=0}else if(!(a===1&&i===0||a===0&&i===1)){var z=[],v,q;for(n=0;n<s;n+=1)if(v=this.shapes[n],!v.shape._mdf&&!this._mdf&&!o&&this.m!==2)v.shape.paths=v.localShapeCollection;else{if(e=v.shape.paths,h=e._length,f=0,!v.shape._mdf&&v.pathsData.length)f=v.totalShapeLength;else{p=this.releasePathsData(v.pathsData);for(l=0;l<h;l+=1)H=bez.getSegmentsLength(e.shapes[l]),p.push(H),f+=H.totalLength;v.totalShapeLength=f,v.pathsData=p}y+=f,v.shape._mdf=!0}var w=i,u=a,g=0,k;for(n=s-1;n>=0;n-=1)if(v=this.shapes[n],v.shape._mdf){if(q=v.localShapeCollection,q.releaseShapes(),this.m===2&&s>1)k=this.calculateShapeEdges(i,a,v.totalShapeLength,g,y),g+=v.totalShapeLength;else k=[[w,u]];h=k.length;for(l=0;l<h;l+=1){if(w=k[l][0],u=k[l][1],z.length=0,u<=1)z.push({s:v.totalShapeLength*w,e:v.totalShapeLength*u});else if(w>=1)z.push({s:v.totalShapeLength*(w-1),e:v.totalShapeLength*(u-1)});else z.push({s:v.totalShapeLength*w,e:v.totalShapeLength}),z.push({s:0,e:v.totalShapeLength*(u-1)});var W=this.addShapes(v,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var R=v.shape.paths.shapes[v.shape.paths._length-1];if(R.c){var Q=W.pop();this.addPaths(W,q),W=this.addShapes(v,z[1],Q)}else this.addPaths(W,q),W=this.addShapes(v,z[1])}this.addPaths(W,q)}}v.shape.paths=q}}else if(this._mdf)for(n=0;n<s;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0},TrimModifier.prototype.addPaths=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i.addShape(o[a])},TrimModifier.prototype.addSegment=function(o,i,a,t,r,e,n){if(r.setXYAt(i[0],i[1],"o",e),r.setXYAt(a[0],a[1],"i",e+1),n)r.setXYAt(o[0],o[1],"v",e);r.setXYAt(t[0],t[1],"v",e+1)},TrimModifier.prototype.addSegmentFromArray=function(o,i,a,t){if(i.setXYAt(o[1],o[5],"o",a),i.setXYAt(o[2],o[6],"i",a+1),t)i.setXYAt(o[0],o[4],"v",a);i.setXYAt(o[3],o[7],"v",a+1)},TrimModifier.prototype.addShapes=function(o,i,a){var t=o.pathsData,r=o.shape.paths.shapes,e,n=o.shape.paths._length,s,l,h=0,p,H,f,y,z=[],v,q=!0;if(!a)a=shapePool.newElement(),H=0,v=0;else H=a._length,v=a._length;z.push(a);for(e=0;e<n;e+=1){f=t[e].lengths,a.c=r[e].c,l=r[e].c?f.length:f.length+1;for(s=1;s<l;s+=1)if(p=f[s-1],h+p.addedLength<i.s)h+=p.addedLength,a.c=!1;else if(h>i.e){a.c=!1;break}else{if(i.s<=h&&i.e>=h+p.addedLength)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[s],r[e].v[s],a,H,q),q=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[s],r[e].o[s-1],r[e].i[s],(i.s-h)/p.addedLength,(i.e-h)/p.addedLength,f[s-1]),this.addSegmentFromArray(y,a,H,q),q=!1,a.c=!1;h+=p.addedLength,H+=1}if(r[e].c&&f.length){if(p=f[s-1],h<=i.e){var w=f[s-1].addedLength;if(i.s<=h&&i.e>=h+w)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[0],r[e].v[0],a,H,q),q=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[0],r[e].o[s-1],r[e].i[0],(i.s-h)/w,(i.e-h)/w,f[s-1]),this.addSegmentFromArray(y,a,H,q),q=!1,a.c=!1}else a.c=!1;h+=p.addedLength,H+=1}if(a._length)a.setXYAt(a.v[v][0],a.v[v][1],"i",v),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1);if(h>i.e)break;if(e<n-1)a=shapePool.newElement(),q=!0,z.push(a),H=0}return z};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(o,i){var a=i/100,t=[0,0],r=o._length,e=0;for(e=0;e<r;e+=1)t[0]+=o.v[e][0],t[1]+=o.v[e][1];t[0]/=r,t[1]/=r;var n=shapePool.newElement();n.c=o.c;var s,l,h,p,H,f;for(e=0;e<r;e+=1)s=o.v[e][0]+(t[0]-o.v[e][0])*a,l=o.v[e][1]+(t[1]-o.v[e][1])*a,h=o.o[e][0]+(t[0]-o.o[e][0])*-a,p=o.o[e][1]+(t[1]-o.o[e][1])*-a,H=o.i[e][0]+(t[0]-o.i[e][0])*-a,f=o.i[e][1]+(t[1]-o.i[e][1])*-a,n.setTripleAt(s,l,h,p,H,f,e);return n},PuckerAndBloatModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};var TransformPropertyFactory=function(){var o=[0,0];function i(l){var h=this._mdf;if(this.iterateDynamicProperties(),this._mdf=this._mdf||h,this.a)l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.s)l.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk)l.skewFromAxis(-this.sk.v,this.sa.v);if(this.r)l.rotate(-this.r.v);else l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.data.p.s)if(this.data.p.z)l.translate(this.px.v,this.py.v,-this.pz.v);else l.translate(this.px.v,this.py.v,0);else l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(l){if(this.elem.globalData.frameId===this.frameId)return;if(this._isDirty)this.precalculateMatrix(),this._isDirty=!1;if(this.iterateDynamicProperties(),this._mdf||l){var h;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1)this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.appliedTransformations<2)this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk&&this.appliedTransformations<3)this.v.skewFromAxis(-this.sk.v,this.sa.v);if(this.r&&this.appliedTransformations<4)this.v.rotate(-this.r.v);else if(!this.r&&this.appliedTransformations<4)this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.autoOriented){var p,H;if(h=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t)p=this.p.getValueAtTime((this.p.keyframes[0].t+0.01)/h,0),H=this.p.getValueAtTime(this.p.keyframes[0].t/h,0);else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t)p=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/h,0),H=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-0.05)/h,0);else p=this.p.pv,H=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-0.01)/h,this.p.offsetTime);else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){p=[],H=[];var f=this.px,y=this.py;if(f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t)p[0]=f.getValueAtTime((f.keyframes[0].t+0.01)/h,0),p[1]=y.getValueAtTime((y.keyframes[0].t+0.01)/h,0),H[0]=f.getValueAtTime(f.keyframes[0].t/h,0),H[1]=y.getValueAtTime(y.keyframes[0].t/h,0);else if(f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t)p[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/h,0),p[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/h,0),H[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-0.01)/h,0),H[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-0.01)/h,0);else p=[f.pv,y.pv],H[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-0.01)/h,f.offsetTime),H[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-0.01)/h,y.offsetTime)}else H=o,p=H;this.v.rotate(-Math.atan2(p[1]-H[1],p[0]-H[0]))}if(this.data.p&&this.data.p.s)if(this.data.p.z)this.v.translate(this.px.v,this.py.v,-this.pz.v);else this.v.translate(this.px.v,this.py.v,0);else this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}function t(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;if(this.r){if(!this.r.effectsSequence.length)this.pre.rotate(-this.r.v),this.appliedTransformations=4}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length)this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4}function r(){}function e(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function n(l,h,p){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=h,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(p||l),h.p&&h.p.s){if(this.px=PropertyFactory.getProp(l,h.p.x,0,0,this),this.py=PropertyFactory.getProp(l,h.p.y,0,0,this),h.p.z)this.pz=PropertyFactory.getProp(l,h.p.z,0,0,this)}else this.p=PropertyFactory.getProp(l,h.p||{k:[0,0,0]},1,0,this);if(h.rx){if(this.rx=PropertyFactory.getProp(l,h.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,h.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,h.rz,0,degToRads,this),h.or.k[0].ti){var H,f=h.or.k.length;for(H=0;H<f;H+=1)h.or.k[H].to=null,h.or.k[H].ti=null}this.or=PropertyFactory.getProp(l,h.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,h.r||{k:0},0,degToRads,this);if(h.sk)this.sk=PropertyFactory.getProp(l,h.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,h.sa,0,degToRads,this);if(this.a=PropertyFactory.getProp(l,h.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,h.s||{k:[100,100,100]},1,0.01,this),h.o)this.o=PropertyFactory.getProp(l,h.o,0,0.01,l);else this.o={_mdf:!1,v:1};if(this._isDirty=!0,!this.dynamicProperties.length)this.getValue(!0)}n.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:t,autoOrient:r},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=e,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function s(l,h,p){return new n(l,h,p)}return{getTransformProperty:s}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(o,i){if(this.getValue=this.processKeys,this.c=PropertyFactory.getProp(o,i.c,0,null,this),this.o=PropertyFactory.getProp(o,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(o,i.tr,this),this.so=PropertyFactory.getProp(o,i.tr.so,0,0.01,this),this.eo=PropertyFactory.getProp(o,i.tr.eo,0,0.01,this),this.data=i,!this.dynamicProperties.length)this.getValue(!0);this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(o,i,a,t,r,e){var n=e?-1:1,s=t.s.v[0]+(1-t.s.v[0])*(1-r),l=t.s.v[1]+(1-t.s.v[1])*(1-r);o.translate(t.p.v[0]*n*r,t.p.v[1]*n*r,t.p.v[2]),i.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),i.rotate(-t.r.v*n*r),i.translate(t.a.v[0],t.a.v[1],t.a.v[2]),a.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),a.scale(e?1/s:s,e?1/l:l),a.translate(t.a.v[0],t.a.v[1],t.a.v[2])},RepeaterModifier.prototype.init=function(o,i,a,t){this.elem=o,this.arr=i,this.pos=a,this.elemsData=t,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i[a]);while(a>0)a-=1,this._elements.unshift(i[a]);if(this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i]._processed=!1,o[i].ty==="gr")this.resetElements(o[i].it)},RepeaterModifier.prototype.cloneElements=function(o){var i=JSON.parse(JSON.stringify(o));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]._render=i,o[a].ty==="gr")this.changeGroupRender(o[a].it,i)},RepeaterModifier.prototype.processShapes=function(o){var i,a,t,r,e,n=!1;if(this._mdf||o){var s=Math.ceil(this.c.v);if(this._groups.length<s){while(this._groups.length<s){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}e=0;var h;for(t=0;t<=this._groups.length-1;t+=1){if(h=e<s,this._groups[t]._render=h,this.changeGroupRender(this._groups[t].it,h),!h){var p=this.elemsData[t].it,H=p[p.length-1];if(H.transform.op.v!==0)H.transform.op._mdf=!0,H.transform.op.v=0;else H.transform.op._mdf=!1}e+=1}this._currentCopies=s;var f=this.o.v,y=f%1,z=f>0?Math.floor(f):Math.ceil(f),v=this.pMatrix.props,q=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(f>0){while(u<z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),u+=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),u+=y}else if(f<0){while(u>z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),u-=y}t=this.data.m===1?0:this._currentCopies-1,r=this.data.m===1?1:-1,e=this._currentCopies;var g,k;while(e){if(i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,k=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(t/(this._currentCopies-1)),u!==0){if(t!==0&&r===1||t!==this._currentCopies-1&&r===-1)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1);this.matrix.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]);for(g=0;g<k;g+=1)a[g]=this.matrix.props[g];this.matrix.reset()}else{this.matrix.reset();for(g=0;g<k;g+=1)a[g]=this.matrix.props[g]}u+=1,e-=1,t+=r}}else{e=this._currentCopies,t=0,r=1;while(e)i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,e-=1,t+=r}return n},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(o,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(o,i){var a=shapePool.newElement();a.c=o.c;var t,r=o._length,e,n,s,l,h,p,H=0,f,y,z,v,q,w;for(t=0;t<r;t+=1)if(e=o.v[t],s=o.o[t],n=o.i[t],e[0]===s[0]&&e[1]===s[1]&&e[0]===n[0]&&e[1]===n[1])if((t===0||t===r-1)&&!o.c)a.setTripleAt(e[0],e[1],s[0],s[1],n[0],n[1],H),H+=1;else{if(t===0)l=o.v[r-1];else l=o.v[t-1];if(h=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),p=h?Math.min(h/2,i)/h:0,q=e[0]+(l[0]-e[0])*p,f=q,w=e[1]-(e[1]-l[1])*p,y=w,z=f-(f-e[0])*roundCorner,v=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,q,w,H),H+=1,t===r-1)l=o.v[0];else l=o.v[t+1];h=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),p=h?Math.min(h/2,i)/h:0,z=e[0]+(l[0]-e[0])*p,f=z,v=e[1]+(l[1]-e[1])*p,y=v,q=f-(f-e[0])*roundCorner,w=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,q,w,H),H+=1}else a.setTripleAt(o.v[t][0],o.v[t][1],o.o[t][0],o.o[t][1],o.i[t][0],o.i[t][1],H),H+=1;return a},RoundCornersModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.rd.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function floatEqual(o,i){return Math.abs(o-i)*1e5<=Math.min(Math.abs(o),Math.abs(i))}function floatZero(o){return Math.abs(o)<=0.00001}function lerp(o,i,a){return o*(1-a)+i*a}function lerpPoint(o,i,a){return[lerp(o[0],i[0],a),lerp(o[1],i[1],a)]}function quadRoots(o,i,a){if(o===0)return[];var t=i*i-4*o*a;if(t<0)return[];var r=-i/(2*o);if(t===0)return[r];var e=Math.sqrt(t)/(2*o);return[r-e,r+e]}function polynomialCoefficients(o,i,a,t){return[-o+3*i-3*a+t,3*o-6*i+3*a,-3*o+3*i,o]}function singlePoint(o){return new PolynomialBezier(o,o,o,o,!1)}function PolynomialBezier(o,i,a,t,r){if(r&&pointEqual(o,i))i=lerpPoint(o,t,0.3333333333333333);if(r&&pointEqual(a,t))a=lerpPoint(o,t,0.6666666666666666);var e=polynomialCoefficients(o[0],i[0],a[0],t[0]),n=polynomialCoefficients(o[1],i[1],a[1],t[1]);this.a=[e[0],n[0]],this.b=[e[1],n[1]],this.c=[e[2],n[2]],this.d=[e[3],n[3]],this.points=[o,i,a,t]}PolynomialBezier.prototype.point=function(o){return[((this.a[0]*o+this.b[0])*o+this.c[0])*o+this.d[0],((this.a[1]*o+this.b[1])*o+this.c[1])*o+this.d[1]]},PolynomialBezier.prototype.derivative=function(o){return[(3*o*this.a[0]+2*this.b[0])*o+this.c[0],(3*o*this.a[1]+2*this.b[1])*o+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(o){var i=this.derivative(o);return Math.atan2(i[1],i[0])},PolynomialBezier.prototype.normalAngle=function(o){var i=this.derivative(o);return Math.atan2(i[0],i[1])},PolynomialBezier.prototype.inflectionPoints=function(){var o=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(o))return[];var i=-0.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/o,a=i*i-0.3333333333333333*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/o;if(a<0)return[];var t=Math.sqrt(a);if(floatZero(t)){if(t>0&&t<1)return[i];return[]}return[i-t,i+t].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(o){if(o<=0)return[singlePoint(this.points[0]),this];if(o>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],o),a=lerpPoint(this.points[1],this.points[2],o),t=lerpPoint(this.points[2],this.points[3],o),r=lerpPoint(i,a,o),e=lerpPoint(a,t,o),n=lerpPoint(r,e,o);return[new PolynomialBezier(this.points[0],i,r,n,!0),new PolynomialBezier(n,e,t,this.points[3],!0)]};function extrema(o,i){var a=o.points[0][i],t=o.points[o.points.length-1][i];if(a>t){var r=t;t=a,a=r}var e=quadRoots(3*o.a[i],2*o.b[i],o.c[i]);for(var n=0;n<e.length;n+=1)if(e[n]>0&&e[n]<1){var s=o.point(e[n])[i];if(s<a)a=s;else if(s>t)t=s}return{min:a,max:t}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var o=this.bounds();return{left:o.x.min,right:o.x.max,top:o.y.min,bottom:o.y.max,width:o.x.max-o.x.min,height:o.y.max-o.y.min,cx:(o.x.max+o.x.min)/2,cy:(o.y.max+o.y.min)/2}};function intersectData(o,i,a){var t=o.boundingBox();return{cx:t.cx,cy:t.cy,width:t.width,height:t.height,bez:o,t:(i+a)/2,t1:i,t2:a}}function splitData(o){var i=o.bez.split(0.5);return[intersectData(i[0],o.t1,o.t),intersectData(i[1],o.t,o.t2)]}function boxIntersect(o,i){return Math.abs(o.cx-i.cx)*2<o.width+i.width&&Math.abs(o.cy-i.cy)*2<o.height+i.height}function intersectsImpl(o,i,a,t,r,e){if(!boxIntersect(o,i))return;if(a>=e||o.width<=t&&o.height<=t&&i.width<=t&&i.height<=t){r.push([o.t,i.t]);return}var n=splitData(o),s=splitData(i);intersectsImpl(n[0],s[0],a+1,t,r,e),intersectsImpl(n[0],s[1],a+1,t,r,e),intersectsImpl(n[1],s[0],a+1,t,r,e),intersectsImpl(n[1],s[1],a+1,t,r,e)}PolynomialBezier.prototype.intersections=function(o,i,a){if(i===void 0)i=2;if(a===void 0)a=7;var t=[];return intersectsImpl(intersectData(this,0,1),intersectData(o,0,1),0,i,t,a),t},PolynomialBezier.shapeSegment=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[i],o.o[i],o.i[a],o.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[a],o.i[a],o.o[i],o.v[i],!0)};function crossProduct(o,i){return[o[1]*i[2]-o[2]*i[1],o[2]*i[0]-o[0]*i[2],o[0]*i[1]-o[1]*i[0]]}function lineIntersection(o,i,a,t){var r=[o[0],o[1],1],e=[i[0],i[1],1],n=[a[0],a[1],1],s=[t[0],t[1],1],l=crossProduct(crossProduct(r,e),crossProduct(n,s));if(floatZero(l[2]))return null;return[l[0]/l[2],l[1]/l[2]]}function polarOffset(o,i,a){return[o[0]+Math.cos(i)*a,o[1]-Math.sin(i)*a]}function pointDistance(o,i){return Math.hypot(o[0]-i[0],o[1]-i[1])}function pointEqual(o,i){return floatEqual(o[0],i[0])&&floatEqual(o[1],i[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(o,i.s,0,null,this),this.frequency=PropertyFactory.getProp(o,i.r,0,null,this),this.pointsType=PropertyFactory.getProp(o,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(o,i,a,t,r,e,n){var s=a-Math.PI/2,l=a+Math.PI/2,h=i[0]+Math.cos(a)*t*r,p=i[1]-Math.sin(a)*t*r;o.setTripleAt(h,p,h+Math.cos(s)*e,p-Math.sin(s)*e,h+Math.cos(l)*n,p-Math.sin(l)*n,o.length())}function getPerpendicularVector(o,i){var a=[i[0]-o[0],i[1]-o[1]],t=-Math.PI*0.5,r=[Math.cos(t)*a[0]-Math.sin(t)*a[1],Math.sin(t)*a[0]+Math.cos(t)*a[1]];return r}function getProjectingAngle(o,i){var a=i===0?o.length()-1:i-1,t=(i+1)%o.length(),r=o.v[a],e=o.v[t],n=getPerpendicularVector(r,e);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(o,i,a,t,r,e,n){var s=getProjectingAngle(i,a),l=i.v[a%i._length],h=i.v[a===0?i._length-1:a-1],p=i.v[(a+1)%i._length],H=e===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=e===2?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(o,i.v[a%i._length],s,n,t,f/((r+1)*2),H/((r+1)*2),e)}function zigZagSegment(o,i,a,t,r,e){for(var n=0;n<t;n+=1){var s=(n+1)/(t+1),l=r===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,h=i.normalAngle(s),p=i.point(s);setPoint(o,p,h,e,a,l/((t+1)*2),l/((t+1)*2),r),e=-e}return e}ZigZagModifier.prototype.processPath=function(o,i,a,t){var r=o._length,e=shapePool.newElement();if(e.c=o.c,!o.c)r-=1;if(r===0)return e;var n=-1,s=PolynomialBezier.shapeSegment(o,0);zigZagCorner(e,o,0,i,a,t,n);for(var l=0;l<r;l+=1){if(n=zigZagSegment(e,s,i,a,t,-n),l===r-1&&!o.c)s=null;else s=PolynomialBezier.shapeSegment(o,(l+1)%r);zigZagCorner(e,o,l+1,i,a,t,n)}return e},ZigZagModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amplitude.v,s=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(n!==0){var h,p;for(a=0;a<t;a+=1){if(h=this.shapes[a],p=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){p.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)p.addShape(this.processPath(i[r],n,s,l))}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function linearOffset(o,i,a){var t=Math.atan2(i[0]-o[0],i[1]-o[1]);return[polarOffset(o,t,a),polarOffset(i,t,a)]}function offsetSegment(o,i){var a,t,r,e,n,s,l;l=linearOffset(o.points[0],o.points[1],i),a=l[0],t=l[1],l=linearOffset(o.points[1],o.points[2],i),r=l[0],e=l[1],l=linearOffset(o.points[2],o.points[3],i),n=l[0],s=l[1];var h=lineIntersection(a,t,r,e);if(h===null)h=t;var p=lineIntersection(n,s,r,e);if(p===null)p=n;return new PolynomialBezier(a,h,p,s)}function joinLines(o,i,a,t,r){var e=i.points[3],n=a.points[0];if(t===3)return e;if(pointEqual(e,n))return e;if(t===2){var s=-i.tangentAngle(1),l=-a.tangentAngle(0)+Math.PI,h=lineIntersection(e,polarOffset(e,s+Math.PI/2,100),n,polarOffset(n,s+Math.PI/2,100)),p=h?pointDistance(h,e):pointDistance(e,n)/2,H=polarOffset(e,s,2*p*roundCorner);return o.setXYAt(H[0],H[1],"o",o.length()-1),H=polarOffset(n,l,2*p*roundCorner),o.setTripleAt(n[0],n[1],n[0],n[1],H[0],H[1],o.length()),n}var f=pointEqual(e,i.points[2])?i.points[0]:i.points[2],y=pointEqual(n,a.points[1])?a.points[3]:a.points[1],z=lineIntersection(f,e,n,y);if(z&&pointDistance(z,e)<r)return o.setTripleAt(z[0],z[1],z[0],z[1],z[0],z[1],o.length()),z;return e}function getIntersection(o,i){var a=o.intersections(i);if(a.length&&floatEqual(a[0][0],1))a.shift();if(a.length)return a[0];return null}function pruneSegmentIntersection(o,i){var a=o.slice(),t=i.slice(),r=getIntersection(o[o.length-1],i[0]);if(r)a[o.length-1]=o[o.length-1].split(r[0])[0],t[0]=i[0].split(r[1])[1];if(o.length>1&&i.length>1){if(r=getIntersection(o[0],i[i.length-1]),r)return[[o[0].split(r[0])[0]],[i[i.length-1].split(r[1])[1]]]}return[a,t]}function pruneIntersections(o){var i;for(var a=1;a<o.length;a+=1)i=pruneSegmentIntersection(o[a-1],o[a]),o[a-1]=i[0],o[a]=i[1];if(o.length>1)i=pruneSegmentIntersection(o[o.length-1],o[0]),o[o.length-1]=i[0],o[0]=i[1];return o}function offsetSegmentSplit(o,i){var a=o.inflectionPoints(),t,r,e,n;if(a.length===0)return[offsetSegment(o,i)];if(a.length===1||floatEqual(a[1],1))return e=o.split(a[0]),t=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(r,i)];e=o.split(a[0]),t=e[0];var s=(a[1]-a[0])/(1-a[0]);return e=e[1].split(s),n=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(n,i),offsetSegment(r,i)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this.miterLimit=PropertyFactory.getProp(o,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(o,i,a,t){var r=shapePool.newElement();r.c=o.c;var e=o.length();if(!o.c)e-=1;var n,s,l,h=[];for(n=0;n<e;n+=1)l=PolynomialBezier.shapeSegment(o,n),h.push(offsetSegmentSplit(l,i));if(!o.c)for(n=e-1;n>=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(o,n),h.push(offsetSegmentSplit(l,i));h=pruneIntersections(h);var p=null,H=null;for(n=0;n<h.length;n+=1){var f=h[n];if(H)p=joinLines(r,H,f[0],a,t);H=f[f.length-1];for(s=0;s<f.length;s+=1){if(l=f[s],p&&pointEqual(l.points[0],p))r.setXYAt(l.points[1][0],l.points[1][1],"o",r.length()-1);else r.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],r.length());r.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],r.length()),p=l.points[3]}}if(h.length)joinLines(r,H,h[0][0],a,t);return r},OffsetPathModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v,s=this.miterLimit.v,l=this.lineJoin;if(n!==0){var h,p;for(a=0;a<t;a+=1){if(h=this.shapes[a],p=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){p.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)p.addShape(this.processPath(i[r],n,l,s))}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function getFontProperties(o){var i=o.fStyle?o.fStyle.split(" "):[],a="normal",t="normal",r=i.length,e;for(var n=0;n<r;n+=1)switch(e=i[n].toLowerCase(),e){case"italic":t="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:t,weight:o.fWeight||a}}var FontManager=function(){var o=5000,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var t=127988,r=917631,e=917601,n=917626,s=65039,l=8205,h=127462,p=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(x){var K=x.split(","),c,m=K.length,P=[];for(c=0;c<m;c+=1)if(K[c]!=="sans-serif"&&K[c]!=="monospace")P.push(K[c]);return P.join(",")}function y(x,K){var c=createTag("span");c.setAttribute("aria-hidden",!0),c.style.fontFamily=K;var m=createTag("span");m.innerText="giItT1WQy@!-/#",c.style.position="absolute",c.style.left="-10000px",c.style.top="-10000px",c.style.fontSize="300px",c.style.fontVariant="normal",c.style.fontStyle="normal",c.style.fontWeight="normal",c.style.letterSpacing="0",c.appendChild(m),document.body.appendChild(c);var P=m.offsetWidth;return m.style.fontFamily=f(x)+", "+K,{node:m,w:P,parent:c}}function z(){var x,K=this.fonts.length,c,m,P=K;for(x=0;x<K;x+=1)if(this.fonts[x].loaded)P-=1;else if(this.fonts[x].fOrigin==="n"||this.fonts[x].origin===0)this.fonts[x].loaded=!0;else{if(c=this.fonts[x].monoCase.node,m=this.fonts[x].monoCase.w,c.offsetWidth!==m)P-=1,this.fonts[x].loaded=!0;else if(c=this.fonts[x].sansCase.node,m=this.fonts[x].sansCase.w,c.offsetWidth!==m)P-=1,this.fonts[x].loaded=!0;if(this.fonts[x].loaded)this.fonts[x].sansCase.parent.parentNode.removeChild(this.fonts[x].sansCase.parent),this.fonts[x].monoCase.parent.parentNode.removeChild(this.fonts[x].monoCase.parent)}if(P!==0&&Date.now()-this.initTime<o)setTimeout(this.checkLoadedFontsBinded,20);else setTimeout(this.setIsLoadedBinded,10)}function v(x,K){var c=document.body&&K?"svg":"canvas",m,P=getFontProperties(x);if(c==="svg"){var Y=createNS("text");if(Y.style.fontSize="100px",Y.setAttribute("font-family",x.fFamily),Y.setAttribute("font-style",P.style),Y.setAttribute("font-weight",P.weight),Y.textContent="1",x.fClass)Y.style.fontFamily="inherit",Y.setAttribute("class",x.fClass);else Y.style.fontFamily=x.fFamily;K.appendChild(Y),m=Y}else{var A=new OffscreenCanvas(500,500).getContext("2d");A.font=P.style+" "+P.weight+" 100px "+x.fFamily,m=A}function M(E){if(c==="svg")return m.textContent=E,m.getComputedTextLength();return m.measureText(E).width}return{measureText:M}}function q(x,K){if(!x){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=x.list;return}if(!document.body){this.isLoaded=!0,x.list.forEach(function(yo){yo.helper=v(yo),yo.cache={}}),this.fonts=x.list;return}var c=x.list,m,P=c.length,Y=P;for(m=0;m<P;m+=1){var A=!0,M,E;if(c[m].loaded=!1,c[m].monoCase=y(c[m].fFamily,"monospace"),c[m].sansCase=y(c[m].fFamily,"sans-serif"),!c[m].fPath)c[m].loaded=!0,Y-=1;else if(c[m].fOrigin==="p"||c[m].origin===3){if(M=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[m].fFamily+'"], style[f-origin="3"][f-family="'+c[m].fFamily+'"]'),M.length>0)A=!1;if(A){var oo=createTag("style");oo.setAttribute("f-forigin",c[m].fOrigin),oo.setAttribute("f-origin",c[m].origin),oo.setAttribute("f-family",c[m].fFamily),oo.type="text/css",oo.innerText="@font-face {font-family: "+c[m].fFamily+"; font-style: normal; src: url('"+c[m].fPath+"');}",K.appendChild(oo)}}else if(c[m].fOrigin==="g"||c[m].origin===1){M=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(E=0;E<M.length;E+=1)if(M[E].href.indexOf(c[m].fPath)!==-1)A=!1;if(A){var to=createTag("link");to.setAttribute("f-forigin",c[m].fOrigin),to.setAttribute("f-origin",c[m].origin),to.type="text/css",to.rel="stylesheet",to.href=c[m].fPath,document.body.appendChild(to)}}else if(c[m].fOrigin==="t"||c[m].origin===2){M=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(E=0;E<M.length;E+=1)if(c[m].fPath===M[E].src)A=!1;if(A){var co=createTag("link");co.setAttribute("f-forigin",c[m].fOrigin),co.setAttribute("f-origin",c[m].origin),co.setAttribute("rel","stylesheet"),co.setAttribute("href",c[m].fPath),K.appendChild(co)}}c[m].helper=v(c[m],K),c[m].cache={},this.fonts.push(c[m])}if(Y===0)this.isLoaded=!0;else setTimeout(this.checkLoadedFonts.bind(this),100)}function w(x){if(!x)return;if(!this.chars)this.chars=[];var K,c=x.length,m,P=this.chars.length,Y;for(K=0;K<c;K+=1){m=0,Y=!1;while(m<P){if(this.chars[m].style===x[K].style&&this.chars[m].fFamily===x[K].fFamily&&this.chars[m].ch===x[K].ch)Y=!0;m+=1}if(!Y)this.chars.push(x[K]),P+=1}}function u(x,K,c){var m=0,P=this.chars.length;while(m<P){if(this.chars[m].ch===x&&this.chars[m].style===K&&this.chars[m].fFamily===c)return this.chars[m];m+=1}if((typeof x==="string"&&x.charCodeAt(0)!==13||!x)&&console&&console.warn&&!this._warned)this._warned=!0,console.warn("Missing character from exported characters list: ",x,K,c);return i}function g(x,K,c){var m=this.getFontByName(K),P=x;if(!m.cache[P]){var Y=m.helper;if(x===" "){var A=Y.measureText("|"+x+"|"),M=Y.measureText("||");m.cache[P]=(A-M)/100}else m.cache[P]=Y.measureText(x)/100}return m.cache[P]*c}function k(x){var K=0,c=this.fonts.length;while(K<c){if(this.fonts[K].fName===x)return this.fonts[K];K+=1}return this.fonts[0]}function W(x){var K=0,c=x.charCodeAt(0);if(c>=55296&&c<=56319){var m=x.charCodeAt(1);if(m>=56320&&m<=57343)K=(c-55296)*1024+m-56320+65536}return K}function R(x,K){var c=x.toString(16)+K.toString(16);return H.indexOf(c)!==-1}function Q(x){return x===l}function b(x){return x===s}function S(x){var K=W(x);if(K>=h&&K<=p)return!0;return!1}function I(x){return S(x.substr(0,2))&&S(x.substr(2,2))}function C(x){return a.indexOf(x)!==-1}function J(x,K){var c=W(x.substr(K,2));if(c!==t)return!1;var m=0;K+=2;while(m<5){if(c=W(x.substr(K,2)),c<e||c>n)return!1;m+=1,K+=2}return W(x.substr(K,2))===r}function F(){this.isLoaded=!0}var j=function x(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};j.isModifier=R,j.isZeroWidthJoiner=Q,j.isFlagEmoji=I,j.isRegionalCode=S,j.isCombinedCharacter=C,j.isRegionalFlag=J,j.isVariationSelector=b,j.BLACK_FLAG_CODE_POINT=t;var U={addChars:w,addFonts:q,getCharData:u,getFontByName:k,measureText:g,checkLoadedFonts:z,setIsLoaded:F};return j.prototype=U,j}();function SlotManager(o){this.animationData=o}SlotManager.prototype.getProp=function(o){if(this.animationData.slots&&this.animationData.slots[o.sid])return Object.assign(o,this.animationData.slots[o.sid].p);return o};function slotFactory(o){return new SlotManager(o)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function o(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)===-1)this.renderableComponents.push(i)},removeRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)!==-1)this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function o(i){this.checkLayerLimits(i)},checkTransparency:function o(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent)this.isTransparent=!0,this.hide()}else if(this.isTransparent)this.isTransparent=!1,this.show()},checkLayerLimits:function o(i){if(this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i){if(this.isInRange!==!0)this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()}else if(this.isInRange!==!1)this.globalData._mdf=!0,this.isInRange=!1,this.hide()},renderRenderable:function o(){var i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function o(){return{top:0,left:0,width:100,height:100}},getLayerSize:function o(){if(this.data.ty===5)return{w:this.data.textData.width,h:this.data.textData.height};return{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var o={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return o[i]||""}}();function SliderEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function AngleEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function ColorEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function PointEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function LayerIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function MaskIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function CheckboxEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(o,i){var a=o.ef||[];this.effectElements=[];var t,r=a.length,e;for(t=0;t<r;t+=1)e=new GroupEffect(a[t],i),this.effectElements.push(e)}function GroupEffect(o,i){this.init(o,i)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(o,i){this.data=o,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,t=this.data.ef.length,r,e=this.data.ef;for(a=0;a<t;a+=1){switch(r=null,e[a].ty){case 0:r=new SliderEffect(e[a],i,this);break;case 1:r=new AngleEffect(e[a],i,this);break;case 2:r=new ColorEffect(e[a],i,this);break;case 3:r=new PointEffect(e[a],i,this);break;case 4:case 7:r=new CheckboxEffect(e[a],i,this);break;case 10:r=new LayerIndexEffect(e[a],i,this);break;case 11:r=new MaskIndexEffect(e[a],i,this);break;case 5:r=new EffectsManager(e[a],i,this);break;default:r=new NoValueEffect(e[a],i,this);break}if(r)this.effectElements.push(r)}};function BaseElement(){}BaseElement.prototype={checkMasks:function o(){if(!this.data.hasMask)return!1;var i=0,a=this.data.masksProperties.length;while(i<a){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function o(){var i=getExpressionInterfaces();if(!i)return;var a=i("layer"),t=i("effects"),r=i("shape"),e=i("text"),n=i("comp");if(this.layerInterface=a(this),this.data.hasMask&&this.maskManager)this.layerInterface.registerMaskInterface(this.maskManager);var s=t.createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(s),this.data.ty===0||this.data.xt)this.compInterface=n(this);else if(this.data.ty===4)this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;else if(this.data.ty===5)this.layerInterface.textInterface=e(this),this.layerInterface.text=this.layerInterface.textInterface},setBlendMode:function o(){var i=getBlendMode(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function o(i,a,t){if(this.globalData=a,this.comp=t,this.data=i,this.layerId=createElementID(),!this.data.sr)this.data.sr=1;this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function o(){return this.type},sourceRectAtTime:function o(){}};function FrameElement(){}FrameElement.prototype={initFrame:function o(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function o(i,a){var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)if(a||this._isParent&&this.dynamicProperties[t].propType==="transform"){if(this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf)this.globalData._mdf=!0,this._mdf=!0}},addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i)}};function FootageElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(o,i,a)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var o=getExpressionInterfaces();if(!o)return;var i=o("footage");this.layerInterface=i(this)},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.initBaseData(o,i,a),this._isPlaying=!1,this._canPlay=!1;var t=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(t),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,o.au&&o.au.lv?o.au.lv:{k:[100]},1,0.01,this)}AudioElement.prototype.prepareFrame=function(o){if(this.prepareRenderableFrame(o,!0),this.prepareProperties(o,!0),!this.tm._placeholder){var i=this.tm.v;this._currentTime=i}else this._currentTime=o/this.data.sr;this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;if(this._previousVolume!==a)this._previousVolume=a,this.audio.volume(a)},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying)this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0;else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>0.1)this.audio.seek(this._currentTime/this.globalData.frameRate)}},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(o){this.audio.rate(o)},AudioElement.prototype.volume=function(o){this._volumeMultiplier=o,this._previousVolume=o*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(o){var i,a=this.layers.length,t;this.completeLayers=!0;for(i=a-1;i>=0;i-=1){if(!this.elements[i]){if(t=this.layers[i],t.ip-t.st<=o-this.layers[i].st&&t.op-t.st>o-this.layers[i].st)this.buildItem(i)}this.completeLayers=this.elements[i]?this.completeLayers:!1}this.checkPendingElements()},BaseRenderer.prototype.createItem=function(o){switch(o.ty){case 2:return this.createImage(o);case 0:return this.createComp(o);case 1:return this.createSolid(o);case 3:return this.createNull(o);case 4:return this.createShape(o);case 5:return this.createText(o);case 6:return this.createAudio(o);case 13:return this.createCamera(o);case 15:return this.createFootage(o);default:return this.createNull(o)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(o){return new AudioElement(o,this.globalData,this)},BaseRenderer.prototype.createFootage=function(o){return new FootageElement(o,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)this.buildItem(o);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(o){this.completeLayers=!1;var i,a=o.length,t,r=this.layers.length;for(i=0;i<a;i+=1){t=0;while(t<r){if(this.layers[t].id===o[i].id){this.layers[t]=o[i];break}t+=1}}},BaseRenderer.prototype.setProjectInterface=function(o){this.globalData.projectInterface=o},BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad)this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(o,i,a){var t=this.elements,r=this.layers,e=0,n=r.length;while(e<n){if(r[e].ind==i)if(!t[e]||t[e]===!0)this.buildItem(e),this.addPendingElement(o);else if(a.push(t[e]),t[e].setAsParent(),r[e].parent!==void 0)this.buildElementParenting(o,r[e].parent,a);else o.setHierarchy(a);e+=1}},BaseRenderer.prototype.addPendingElement=function(o){this.pendingElements.push(o)},BaseRenderer.prototype.searchExtraCompositions=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i].xt){var t=this.createComp(o[i]);t.initExpressions(),this.globalData.projectInterface.registerComposition(t)}},BaseRenderer.prototype.getElementById=function(o){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===o)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(o){var i=o.shift(),a;if(typeof i==="number")a=this.elements[i];else{var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.nm===i){a=this.elements[t];break}}if(o.length===0)return a;return a.getElementByPath(o)},BaseRenderer.prototype.setupGlobalData=function(o,i){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(o),this.globalData.fontManager.addChars(o.chars),this.globalData.fontManager.addFonts(o.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=o.fr,this.globalData.nm=o.nm,this.globalData.compSize={w:o.w,h:o.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function o(){var i=new Matrix;if(this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao)this.finalTransform.mProp.autoOriented=!0;if(this.data.ty!==11);},renderTransform:function o(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,a=this.finalTransform.mat,t=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)while(t<r){if(this.hierarchy[t].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}t+=1}if(this.finalTransform._matMdf){i=this.finalTransform.mProp.v.props,a.cloneFromProps(i);for(t=0;t<r;t+=1)a.multiply(this.hierarchy[t].finalTransform.mProp.v)}}if(!this.localTransforms||this.finalTransform._matMdf)this.finalTransform._localMatMdf=this.finalTransform._matMdf;if(this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v},renderLocalTransform:function o(){if(this.localTransforms){var i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)while(i<a){if(this.localTransforms[i]._mdf)this.finalTransform._localMatMdf=!0;if(this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0;i+=1}if(this.finalTransform._localMatMdf){var t=this.finalTransform.localMat;this.localTransforms[0].matrix.clone(t);for(i=1;i<a;i+=1){var r=this.localTransforms[i].matrix;t.multiply(r)}t.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var e=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)e*=this.localTransforms[i].opacity*0.01;this.finalTransform.localOpacity=e}}},searchEffectTransforms:function o(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var a=0,t=i.length;for(a=0;a<t;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function o(i){var a=[];a.push(this.finalTransform);var t=!0,r=this.comp;while(t)if(r.finalTransform){if(r.data.hasMask)a.splice(0,0,r.finalTransform);r=r.comp}else t=!1;var e,n=a.length,s;for(e=0;e<n;e+=1)s=a[e].mat.applyToPointArray(0,0,0),i=[i[0]-s[0],i[1]-s[1],0];return i},mHelper:new Matrix};function MaskElement(o,i,a){this.data=o,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var t=this.globalData.defs,r,e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(e),this.solidPath="";var n,s=this.masksProperties,l=0,h=[],p,H,f=createElementID(),y,z,v,q,w="clipPath",u="clip-path";for(r=0;r<e;r+=1){if(s[r].mode!=="a"&&s[r].mode!=="n"||s[r].inv||s[r].o.k!==100||s[r].o.x)w="mask",u="mask";if((s[r].mode==="s"||s[r].mode==="i")&&l===0)y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),h.push(y);else y=null;if(n=createNS("path"),s[r].mode==="n")this.viewData[r]={op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),elem:n,lastPath:""},t.appendChild(n);else{l+=1,n.setAttribute("fill",s[r].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero");var g;if(s[r].x.k!==0)w="mask",u="mask",q=PropertyFactory.getProp(this.element,s[r].x,0,null,this.element),g=createElementID(),z=createNS("filter"),z.setAttribute("id",g),v=createNS("feMorphology"),v.setAttribute("operator","erode"),v.setAttribute("in","SourceGraphic"),v.setAttribute("radius","0"),z.appendChild(v),t.appendChild(z),n.setAttribute("stroke",s[r].mode==="s"?"#000000":"#ffffff");else v=null,q=null;if(this.storedData[r]={elem:n,x:q,expan:v,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},s[r].mode==="i"){H=h.length;var k=createNS("g");for(p=0;p<H;p+=1)k.appendChild(h[p]);var W=createNS("mask");W.setAttribute("mask-type","alpha"),W.setAttribute("id",f+"_"+l),W.appendChild(n),t.appendChild(W),k.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),h.length=0,h.push(k)}else h.push(n);if(s[r].inv&&!this.solidPath)this.solidPath=this.createLayerSolidPath();if(this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),invRect:y},!this.viewData[r].prop.k)this.drawPath(s[r],this.viewData[r].prop.v,this.viewData[r])}}this.maskElement=createNS(w),e=h.length;for(r=0;r<e;r+=1)this.maskElement.appendChild(h[r]);if(l>0)this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+f+")"),t.appendChild(this.maskElement);if(this.viewData.length)this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(o){return this.viewData[o].prop},MaskElement.prototype.renderFrame=function(o){var i=this.element.finalTransform.mat,a,t=this.masksProperties.length;for(a=0;a<t;a+=1){if(this.viewData[a].prop._mdf||o)this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]);if(this.viewData[a].op._mdf||o)this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v);if(this.masksProperties[a].mode!=="n"){if(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||o))this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS());if(this.storedData[a].x&&(this.storedData[a].x._mdf||o)){var r=this.storedData[a].expan;if(this.storedData[a].x.v<0){if(this.storedData[a].lastOperator!=="erode")this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[a].filterId+")");r.setAttribute("radius",-this.storedData[a].x.v)}else{if(this.storedData[a].lastOperator!=="dilate")this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null);this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2)}}}}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var o="M0,0 ";return o+=" h"+this.globalData.compSize.w,o+=" v"+this.globalData.compSize.h,o+=" h-"+this.globalData.compSize.w,o+=" v-"+this.globalData.compSize.h+" ",o},MaskElement.prototype.drawPath=function(o,i,a){var t=" M"+i.v[0][0]+","+i.v[0][1],r,e;e=i._length;for(r=1;r<e;r+=1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[r][0]+","+i.i[r][1]+" "+i.v[r][0]+","+i.v[r][1];if(i.c&&e>1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1];if(a.lastPath!==t){var n="";if(a.elem){if(i.c)n=o.inv?this.solidPath+t:t;a.elem.setAttribute("d",n)}a.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var o={};o.createFilter=i,o.createAlphaToLuminanceFilter=a;function i(t,r){var e=createNS("filter");if(e.setAttribute("id",t),r!==!0)e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%");return e}function a(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return o}(),featureSupport=function(){var o={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas!=="undefined"};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))o.maskType=!1;if(/firefox/i.test(navigator.userAgent))o.svgLumaHidden=!1;return o}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(o){var i,a="SourceGraphic",t=o.data.ef?o.data.ef.length:0,r=createElementID(),e=filtersFactory.createFilter(r,!0),n=0;this.filters=[];var s;for(i=0;i<t;i+=1){s=null;var l=o.data.ef[i].ty;if(registeredEffects$1[l]){var h=registeredEffects$1[l].effect;if(s=new h(e,o.effectsManager.effectElements[i],o,idPrefix+n,a),a=idPrefix+n,registeredEffects$1[l].countsAsEffect)n+=1}if(s)this.filters.push(s)}if(n)o.globalData.defs.appendChild(e),o.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+r+")");if(this.filters.length)o.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},SVGEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect$1(o,i,a){registeredEffects$1[o]={effect:i,countsAsEffect:a}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function o(){this.layerElement=createNS("g")},createContainerElements:function o(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=createNS("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else if(this.data.tt)this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement;else this.baseElement=this.layerElement;if(this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.ty===0&&!this.data.hd){var t=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var e=createElementID();if(t.setAttribute("id",e),t.appendChild(r),this.globalData.defs.appendChild(t),this.checkMasks()){var n=createNS("g");if(n.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),n.appendChild(this.layerElement),this.transformedElement=n,i)i.appendChild(this.transformedElement);else this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")")}if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){if(this.finalTransform._localMatMdf)this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS());if(this.finalTransform._opMdf)this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function o(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function o(){if(this.data.hd)return null;return this.baseElement},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function o(i){if(!this.matteMasks)this.matteMasks={};if(!this.matteMasks[i]){var a=this.layerId+"_"+i,t,r,e,n;if(i===1||i===3){var s=createNS("mask");if(s.setAttribute("id",a),s.setAttribute("mask-type",i===3?"luminance":"alpha"),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(e),this.globalData.defs.appendChild(s),!featureSupport.maskType&&i===1)s.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),n.appendChild(e),s.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")")}else if(i===2){var l=createNS("mask");l.setAttribute("id",a),l.setAttribute("mask-type","alpha");var h=createNS("g");l.appendChild(h),t=createElementID(),r=filtersFactory.createFilter(t);var p=createNS("feComponentTransfer");p.setAttribute("in","SourceGraphic"),r.appendChild(p);var H=createNS("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),p.appendChild(H),this.globalData.defs.appendChild(r);var f=createNS("rect");if(f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),h.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),h.appendChild(f),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(e),!featureSupport.maskType)l.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),h.appendChild(f),n.appendChild(this.layerElement),h.appendChild(n);this.globalData.defs.appendChild(l)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function o(i){if(!this.matteElement)return;this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+i+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function o(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function o(i){this.hierarchy=i},setAsParent:function o(){this._isParent=!0},checkParenting:function o(){if(this.data.parent!==void 0)this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var o={initElement:function i(a,t,r){this.initFrame(),this.initBaseData(a,t,r),this.initTransform(a,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function i(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function i(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function i(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},renderInnerContent:function i(){},prepareFrame:function i(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function i(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(o)],RenderableDOMElement)})();function IImageElement(o,i,a){if(this.assetData=i.getAssetData(o.refId),this.assetData&&this.assetData.sid)this.assetData=i.slotManager.getProp(this.assetData);this.initElement(o,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(o,i){this.elem=o,this.pos=i}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function o(i){var a,t=this.shapeModifiers.length;for(a=0;a<t;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function o(i){var a=0,t=this.shapeModifiers.length;while(a<t)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function o(){if(!this.shapeModifiers.length)return;var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var t;for(i=a-1;i>=0;i-=1)if(t=this.shapeModifiers[i].processShapes(this._isFirstFrame),t)break},searchProcessedElement:function o(i){var a=this.processedElements,t=0,r=a.length;while(t<r){if(a[t].elem===i)return a[t].pos;t+=1}return 0},addProcessedElement:function o(i,a){var t=this.processedElements,r=t.length;while(r)if(r-=1,t[r].elem===i){t[r].pos=a;return}t.push(new ProcessedElement(i,a))},prepareFrame:function o(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(o,i,a){this.caches=[],this.styles=[],this.transformers=o,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;var t=0,r=o.length;while(t<r){if(o[t].mProps.dynamicProperties.length){this._isAnimated=!0;break}t+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(o,i){this.data=o,this.type=o.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=o.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(o,i,a,t){this.elem=o,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(t);var r,e=i.length||0,n;for(r=0;r<e;r+=1)n=PropertyFactory.getProp(o,i[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:i[r].n,p:n};if(!this.k)this.getValue(!0);this._isAnimated=this.k}DashProperty.prototype.getValue=function(o){if(this.elem.globalData.frameId===this.frameId&&!o)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||o,this._mdf){var i=0,a=this.dataProps.length;if(this.renderer==="svg")this.dashStr="";for(i=0;i<a;i+=1)if(this.dataProps[i].n!=="o")if(this.renderer==="svg")this.dashStr+=" "+this.dataProps[i].p.v;else this.dashArray[i]=this.dataProps[i].p.v;else this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.style=a}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(o,i,a){this.data=i,this.c=createTypedArray("uint8c",i.p*4);var t=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=createTypedArray("float32",t),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=t,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(o,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(o,i){var a=0,t=this.o.length/2,r;while(a<t){if(r=Math.abs(o[a*4]-o[i*4+a*2]),r>0.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var o=0,i=this.data.k.k.length;while(o<i){if(!this.comparePoints(this.data.k.k[o].s,this.data.p))return!1;o+=1}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(o){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||o){var i,a=this.data.p*4,t,r;for(i=0;i<a;i+=1)if(t=i%4===0?100:255,r=Math.round(this.prop.v[i]*t),this.c[i]!==r)this.c[i]=r,this._cmdf=!o;if(this.o.length){a=this.prop.v.length;for(i=this.data.p*4;i<a;i+=1)if(t=i%2===0?100:1,r=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==r)this.o[i-this.data.p*4]=r,this._omdf=!o}this._mdf=!o}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.initGradientData(o,i,a)}SVGGradientFillStyleData.prototype.initGradientData=function(o,i,a){this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.s=PropertyFactory.getProp(o,i.s,1,null,this),this.e=PropertyFactory.getProp(o,i.e,1,null,this),this.h=PropertyFactory.getProp(o,i.h||{k:0},0,0.01,this),this.a=PropertyFactory.getProp(o,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(o,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(o,i){var a=createElementID(),t=createNS(i.t===1?"linearGradient":"radialGradient");t.setAttribute("id",a),t.setAttribute("spreadMethod","pad"),t.setAttribute("gradientUnits","userSpaceOnUse");var r=[],e,n,s;s=i.g.p*4;for(n=0;n<s;n+=4)e=createNS("stop"),t.appendChild(e),r.push(e);o.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=t,this.cst=r},SVGGradientFillStyleData.prototype.setGradientOpacity=function(o,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,t,r,e=createNS("mask"),n=createNS("path");e.appendChild(n);var s=createElementID(),l=createElementID();e.setAttribute("id",l);var h=createNS(o.t===1?"linearGradient":"radialGradient");h.setAttribute("id",s),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=o.g.k.k[0].s?o.g.k.k[0].s.length:o.g.k.k.length;var p=this.stops;for(t=o.g.p*4;t<r;t+=2)a=createNS("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(a),p.push(a);if(n.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),o.ty==="gs"){if(n.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),o.lj===1)n.setAttribute("stroke-miterlimit",o.ml)}this.of=h,this.ms=e,this.ost=p,this.maskId=l,i.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.initGradientData(o,i,a),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(o,i,a){this.transform={mProps:o,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function o(i,a,t,r){if(a===0)return"";var{o:e,i:n,v:s}=i,l,h=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(l=1;l<a;l+=1)h+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[l][0],n[l][1])+" "+r.applyToPointStringified(s[l][0],s[l][1]);if(t&&a)h+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[0][0],n[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),h+="z";return h},SVGElementsRenderer=function(){var o=new Matrix,i=new Matrix,a={createRenderFunction:t};function t(H){switch(H.ty){case"fl":return s;case"gf":return h;case"gs":return l;case"st":return p;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return e;default:return null}}function r(H,f,y){if(y||f.transform.op._mdf)f.transform.container.setAttribute("opacity",f.transform.op.v);if(y||f.transform.mProps._mdf)f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function e(){}function n(H,f,y){var z,v,q,w,u,g,k=f.styles.length,W=f.lvl,R,Q,b,S;for(g=0;g<k;g+=1){if(w=f.sh._mdf||y,f.styles[g].lvl<W){Q=i.reset(),b=W-f.styles[g].lvl,S=f.transformers.length-1;while(!w&&b>0)w=f.transformers[S].mProps._mdf||w,b-=1,S-=1;if(w){b=W-f.styles[g].lvl,S=f.transformers.length-1;while(b>0)Q.multiply(f.transformers[S].mProps.v),b-=1,S-=1}}else Q=o;if(R=f.sh.paths,v=R._length,w){q="";for(z=0;z<v;z+=1)if(u=R.shapes[z],u&&u._length)q+=buildShapeString(u,u._length,u.c,Q);f.caches[g]=q}else q=f.caches[g];f.styles[g].d+=H.hd===!0?"":q,f.styles[g]._mdf=w||f.styles[g]._mdf}}function s(H,f,y){var z=f.style;if(f.c._mdf||y)z.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("fill-opacity",f.o.v)}function l(H,f,y){h(H,f,y),p(H,f,y)}function h(H,f,y){var z=f.gf,v=f.g._hasOpacity,q=f.s.v,w=f.e.v;if(f.o._mdf||y){var u=H.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(u,f.o.v)}if(f.s._mdf||y){var g=H.t===1?"x1":"cx",k=g==="x1"?"y1":"cy";if(z.setAttribute(g,q[0]),z.setAttribute(k,q[1]),v&&!f.g._collapsable)f.of.setAttribute(g,q[0]),f.of.setAttribute(k,q[1])}var W,R,Q,b;if(f.g._cmdf||y){W=f.cst;var S=f.g.c;Q=W.length;for(R=0;R<Q;R+=1)b=W[R],b.setAttribute("offset",S[R*4]+"%"),b.setAttribute("stop-color","rgb("+S[R*4+1]+","+S[R*4+2]+","+S[R*4+3]+")")}if(v&&(f.g._omdf||y)){var I=f.g.o;if(f.g._collapsable)W=f.cst;else W=f.ost;Q=W.length;for(R=0;R<Q;R+=1){if(b=W[R],!f.g._collapsable)b.setAttribute("offset",I[R*2]+"%");b.setAttribute("stop-opacity",I[R*2+1])}}if(H.t===1){if(f.e._mdf||y){if(z.setAttribute("x2",w[0]),z.setAttribute("y2",w[1]),v&&!f.g._collapsable)f.of.setAttribute("x2",w[0]),f.of.setAttribute("y2",w[1])}}else{var C;if(f.s._mdf||f.e._mdf||y){if(C=Math.sqrt(Math.pow(q[0]-w[0],2)+Math.pow(q[1]-w[1],2)),z.setAttribute("r",C),v&&!f.g._collapsable)f.of.setAttribute("r",C)}if(f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||y){if(!C)C=Math.sqrt(Math.pow(q[0]-w[0],2)+Math.pow(q[1]-w[1],2));var J=Math.atan2(w[1]-q[1],w[0]-q[0]),F=f.h.v;if(F>=1)F=0.99;else if(F<=-1)F=-0.99;var j=C*F,U=Math.cos(J+f.a.v)*j+q[0],x=Math.sin(J+f.a.v)*j+q[1];if(z.setAttribute("fx",U),z.setAttribute("fy",x),v&&!f.g._collapsable)f.of.setAttribute("fx",U),f.of.setAttribute("fy",x)}}}function p(H,f,y){var{style:z,d:v}=f;if(v&&(v._mdf||y)&&v.dashStr)z.pElem.setAttribute("stroke-dasharray",v.dashStr),z.pElem.setAttribute("stroke-dashoffset",v.dashoffset[0]);if(f.c&&(f.c._mdf||y))z.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("stroke-opacity",f.o.v);if(f.w._mdf||y){if(z.pElem.setAttribute("stroke-width",f.w.v),z.msElem)z.msElem.setAttribute("stroke-width",f.w.v)}}return a}();function SVGShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(o,i,a),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var o,i=this.shapes.length,a,t,r=this.stylesList.length,e,n=[],s=!1;for(t=0;t<r;t+=1){e=this.stylesList[t],s=!1,n.length=0;for(o=0;o<i;o+=1)if(a=this.shapes[o],a.styles.indexOf(e)!==-1)n.push(a),s=a._isAnimated||s;if(n.length>1&&s)this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(o,i){var a,t=new SVGStyleData(o,i),r=t.pElem;if(o.ty==="st")a=new SVGStrokeStyleData(this,o,t);else if(o.ty==="fl")a=new SVGFillStyleData(this,o,t);else if(o.ty==="gf"||o.ty==="gs"){var e=o.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;if(a=new e(this,o,t),this.globalData.defs.appendChild(a.gf),a.maskId)this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),r.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")")}else if(o.ty==="no")a=new SVGNoStyleData(this,o,t);if(o.ty==="st"||o.ty==="gs"){if(r.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),r.setAttribute("fill-opacity","0"),o.lj===1)r.setAttribute("stroke-miterlimit",o.ml)}if(o.r===2)r.setAttribute("fill-rule","evenodd");if(o.ln)r.setAttribute("id",o.ln);if(o.cl)r.setAttribute("class",o.cl);if(o.bm)r.style["mix-blend-mode"]=getBlendMode(o.bm);return this.stylesList.push(t),this.addToAnimatedContents(o,a),a},SVGShapeElement.prototype.createGroupElement=function(o){var i=new ShapeGroupData;if(o.ln)i.gr.setAttribute("id",o.ln);if(o.cl)i.gr.setAttribute("class",o.cl);if(o.bm)i.gr.style["mix-blend-mode"]=getBlendMode(o.bm);return i},SVGShapeElement.prototype.createTransformElement=function(o,i){var a=TransformPropertyFactory.getTransformProperty(this,o,this),t=new SVGTransformData(a,a.o,i);return this.addToAnimatedContents(o,t),t},SVGShapeElement.prototype.createShapeElement=function(o,i,a){var t=4;if(o.ty==="rc")t=5;else if(o.ty==="el")t=6;else if(o.ty==="sr")t=7;var r=ShapePropertyFactory.getShapeProp(this,o,t,this),e=new SVGShapeData(i,a,r);return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(o,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(o,i){var a=0,t=this.animatedContents.length;while(a<t){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(o),element:i,data:o})},SVGShapeElement.prototype.setElementStyles=function(o){var i=o.styles,a,t=this.stylesList.length;for(a=0;a<t;a+=1)if(i.indexOf(this.stylesList[a])===-1&&!this.stylesList[a].closed)i.push(this.stylesList[a])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(o,i,a,t,r,e,n){var s=[].concat(e),l,h=o.length-1,p,H,f=[],y=[],z,v,q;for(l=h;l>=0;l-=1){if(q=this.searchProcessedElement(o[l]),!q)o[l]._render=n;else i[l]=a[q-1];if(o[l].ty==="fl"||o[l].ty==="st"||o[l].ty==="gf"||o[l].ty==="gs"||o[l].ty==="no"){if(!q)i[l]=this.createStyleElement(o[l],r);else i[l].style.closed=o[l].hd;if(o[l]._render){if(i[l].style.pElem.parentNode!==t)t.appendChild(i[l].style.pElem)}f.push(i[l].style)}else if(o[l].ty==="gr"){if(!q)i[l]=this.createGroupElement(o[l]);else{H=i[l].it.length;for(p=0;p<H;p+=1)i[l].prevViewData[p]=i[l].it[p]}if(this.searchShapes(o[l].it,i[l].it,i[l].prevViewData,i[l].gr,r+1,s,n),o[l]._render){if(i[l].gr.parentNode!==t)t.appendChild(i[l].gr)}}else if(o[l].ty==="tr"){if(!q)i[l]=this.createTransformElement(o[l],t);z=i[l].transform,s.push(z)}else if(o[l].ty==="sh"||o[l].ty==="rc"||o[l].ty==="el"||o[l].ty==="sr"){if(!q)i[l]=this.createShapeElement(o[l],s,r);this.setElementStyles(i[l])}else if(o[l].ty==="tm"||o[l].ty==="rd"||o[l].ty==="ms"||o[l].ty==="pb"||o[l].ty==="zz"||o[l].ty==="op"){if(!q)v=ShapeModifiers.getModifier(o[l].ty),v.init(this,o[l]),i[l]=v,this.shapeModifiers.push(v);else v=i[l],v.closed=!1;y.push(v)}else if(o[l].ty==="rp"){if(!q)v=ShapeModifiers.getModifier(o[l].ty),i[l]=v,v.init(this,o,l,i),this.shapeModifiers.push(v),n=!1;else v=i[l],v.closed=!0;y.push(v)}this.addProcessedElement(o[l],l+1)}h=f.length;for(l=0;l<h;l+=1)f[l].closed=!0;h=y.length;for(l=0;l<h;l+=1)y[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var o,i=this.stylesList.length;for(o=0;o<i;o+=1)this.stylesList[o].reset();this.renderShape();for(o=0;o<i;o+=1)if(this.stylesList[o]._mdf||this._isFirstFrame){if(this.stylesList[o].msElem)this.stylesList[o].msElem.setAttribute("d",this.stylesList[o].d),this.stylesList[o].d="M0 0"+this.stylesList[o].d;this.stylesList[o].pElem.setAttribute("d",this.stylesList[o].d||"M0 0")}},SVGShapeElement.prototype.renderShape=function(){var o,i=this.animatedContents.length,a;for(o=0;o<i;o+=1)if(a=this.animatedContents[o],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0)a.fn(a.data,a.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(o,i,a,t,r,e){this.o=o,this.sw=i,this.sc=a,this.fc=t,this.m=r,this.p=e,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!t,m:!0,p:!0}}LetterProps.prototype.update=function(o,i,a,t,r,e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;if(this.o!==o)this.o=o,this._mdf.o=!0,n=!0;if(this.sw!==i)this.sw=i,this._mdf.sw=!0,n=!0;if(this.sc!==a)this.sc=a,this._mdf.sc=!0,n=!0;if(this.fc!==t)this.fc=t,this._mdf.fc=!0,n=!0;if(this.m!==r)this.m=r,this._mdf.m=!0,n=!0;if(e.length&&(this.p[0]!==e[0]||this.p[1]!==e[1]||this.p[4]!==e[4]||this.p[5]!==e[5]||this.p[12]!==e[12]||this.p[13]!==e[13]))this.p=e,this._mdf.p=!0,n=!0;return n};function TextProperty(o,i){if(this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid)i.d=o.globalData.slotManager.getProp(i.d);if(this.data=i,this.elem=o,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),!this.searchProperty())this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(o,i){for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a))o[a]=i[a];return o},TextProperty.prototype.setCurrentData=function(o){if(!o.__complete)this.completeTextData(o);this.currentData=o,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){if(this.kf=this.data.d.k.length>1,this.kf)this.addEffect(this.getKeyframeValue.bind(this));return this.kf},TextProperty.prototype.addEffect=function(o){this.effectsSequence.push(o),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(o){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!o)return;this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var t,r=this.effectsSequence.length,e=o||this.data.d.k[this.keysIndex].s;for(t=0;t<r;t+=1)if(a!==this.keysIndex)e=this.effectsSequence[t](e,e.t);else e=this.effectsSequence[t](this.currentData,e.t);if(i!==e)this.setCurrentData(e);this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId},TextProperty.prototype.getKeyframeValue=function(){var o=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,t=o.length;while(a<=t-1){if(a===t-1||o[a+1].t>i)break;a+=1}if(this.keysIndex!==a)this.keysIndex=a;return this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){var i=[],a=0,t=o.length,r,e,n=!1,s=!1,l="";while(a<t){if(n=s,s=!1,r=o.charCodeAt(a),l=o.charAt(a),FontManager.isCombinedCharacter(r))n=!0;else if(r>=55296&&r<=56319){if(FontManager.isRegionalFlag(o,a))l=o.substr(a,14);else if(e=o.charCodeAt(a+1),e>=56320&&e<=57343)if(FontManager.isModifier(r,e))l=o.substr(a,2),n=!0;else if(FontManager.isFlagEmoji(o.substr(a,4)))l=o.substr(a,4);else l=o.substr(a,2)}else if(r>56319){if(e=o.charCodeAt(a+1),FontManager.isVariationSelector(r))n=!0}else if(FontManager.isZeroWidthJoiner(r))n=!0,s=!0;if(n)i[i.length-1]+=l,n=!1;else i.push(l);a+=l.length}return i},TextProperty.prototype.completeTextData=function(o){o.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,t=[],r,e,n,s=0,l,h=a.m.g,p=0,H=0,f=0,y=[],z=0,v=0,q,w,u=i.getFontByName(o.f),g,k=0,W=getFontProperties(u);o.fWeight=W.weight,o.fStyle=W.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),e=o.finalText.length,o.finalLineHeight=o.lh;var R=o.tr/1000*o.finalSize,Q;if(o.sz){var b=!0,S=o.sz[0],I=o.sz[1],C,J;while(b){J=this.buildFinalText(o.t),C=0,z=0,e=J.length,R=o.tr/1000*o.finalSize;var F=-1;for(r=0;r<e;r+=1){if(Q=J[r].charCodeAt(0),n=!1,J[r]===" ")F=r;else if(Q===13||Q===3)z=0,n=!0,C+=o.finalLineHeight||o.finalSize*1.2;if(i.chars)g=i.getCharData(J[r],u.fStyle,u.fFamily),k=n?0:g.w*o.finalSize/100;else k=i.measureText(J[r],o.f,o.finalSize);if(z+k>S&&J[r]!==" "){if(F===-1)e+=1;else r=F;C+=o.finalLineHeight||o.finalSize*1.2,J.splice(r,F===r?1:0,"\r"),F=-1,z=0}else z+=k,z+=R}if(C+=u.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&I<C)o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s;else o.finalText=J,e=o.finalText.length,b=!1}}z=-R,k=0;var j=0,U;for(r=0;r<e;r+=1){if(n=!1,U=o.finalText[r],Q=U.charCodeAt(0),Q===13||Q===3)j=0,y.push(z),v=z>v?z:v,z=-2*R,l="",n=!0,f+=1;else l=U;if(i.chars)g=i.getCharData(U,u.fStyle,i.getFontByName(o.f).fFamily),k=n?0:g.w*o.finalSize/100;else k=i.measureText(l,o.f,o.finalSize);if(U===" ")j+=k+R;else z+=k+R+j,j=0;if(t.push({l:k,an:k,add:p,n,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),h==2){if(p+=k,l===""||l===" "||r===e-1){if(l===""||l===" ")p-=k;while(H<=r)t[H].an=p,t[H].ind=s,t[H].extra=k,H+=1;s+=1,p=0}}else if(h==3){if(p+=k,l===""||r===e-1){if(l==="")p-=k;while(H<=r)t[H].an=p,t[H].ind=s,t[H].extra=k,H+=1;p=0,s+=1}}else t[s].ind=s,t[s].extra=0,s+=1}if(o.l=t,v=z>v?z:v,y.push(z),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=v,o.j){case 1:o.justifyOffset=-o.boxWidth;break;case 2:o.justifyOffset=-o.boxWidth/2;break;default:o.justifyOffset=0}o.lineWidths=y;var x=a.a,K,c;w=x.length;var m,P,Y=[];for(q=0;q<w;q+=1){if(K=x[q],K.a.sc)o.strokeColorAnim=!0;if(K.a.sw)o.strokeWidthAnim=!0;if(K.a.fc||K.a.fh||K.a.fs||K.a.fb)o.fillColorAnim=!0;P=0,m=K.s.b;for(r=0;r<e;r+=1)if(c=t[r],c.anIndexes[q]=P,m==1&&c.val!==""||m==2&&c.val!==""&&c.val!==" "||m==3&&(c.n||c.val==" "||r==e-1)||m==4&&(c.n||r==e-1)){if(K.s.rn===1)Y.push(P);P+=1}a.a[q].s.totalChars=P;var A=-1,M;if(K.s.rn===1)for(r=0;r<e;r+=1){if(c=t[r],A!=c.anIndexes[q])A=c.anIndexes[q],M=Y.splice(Math.floor(Math.random()*Y.length),1)[0];c.anIndexes[q]=M}}o.yOffset=o.finalLineHeight||o.finalSize*1.2,o.ls=o.ls||0,o.ascent=u.ascent*o.finalSize/100},TextProperty.prototype.updateDocumentData=function(o,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,o),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(o){var i=this.data.d.k[o].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(o){this.canResize=o,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(o){this.minimumFontSize=Math.floor(o)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var{max:o,min:i,floor:a}=Math;function t(e,n){if(this._currentTextLength=-1,this.k=!1,this.data=n,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,n.s||{k:0},0,0,this),"e"in n)this.e=PropertyFactory.getProp(e,n.e,0,0,this);else this.e={v:100};if(this.o=PropertyFactory.getProp(e,n.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,n.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,n.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,n.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,n.a,0,0.01,this),!this.dynamicProperties.length)this.getValue()}t.prototype={getMult:function e(n){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length)this.getValue();var s=0,l=0,h=1,p=1;if(this.ne.v>0)s=this.ne.v/100;else l=-this.ne.v/100;if(this.xe.v>0)h=1-this.xe.v/100;else p=1+this.xe.v/100;var H=BezierFactory.getBezierEasing(s,l,h,p).get,f=0,y=this.finalS,z=this.finalE,v=this.data.sh;if(v===2){if(z===y)f=n>=z?1:0;else f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=H(f)}else if(v===3){if(z===y)f=n>=z?0:1;else f=1-o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=H(f)}else if(v===4){if(z===y)f=0;else if(f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1)),f<0.5)f*=2;else f=1-2*(f-0.5);f=H(f)}else if(v===5){if(z===y)f=0;else{var q=z-y;n=i(o(0,n+0.5-y),z-y);var w=-q/2+n,u=q/2;f=Math.sqrt(1-w*w/(u*u))}f=H(f)}else if(v===6){if(z===y)f=0;else n=i(o(0,n+0.5-y),z-y),f=(1+Math.cos(Math.PI+Math.PI*2*n/(z-y)))/2;f=H(f)}else{if(n>=a(y))if(n-y<0)f=o(0,i(i(z,1)-(y-n),1));else f=o(0,i(z-n,1));f=H(f)}if(this.sm.v!==100){var g=this.sm.v*0.01;if(g===0)g=0.00000001;var k=0.5-g*0.5;if(f<k)f=0;else if(f=(f-k)/g,f>1)f=1}return f*this.a.v},getValue:function e(n){if(this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2)this.e.v=this._currentTextLength;var s=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/s,h=this.s.v/s+l,p=this.e.v/s+l;if(h>p){var H=h;h=p,p=H}this.finalS=h,this.finalE=p}},extendPrototype([DynamicPropertyContainer],t);function r(e,n,s){return new t(e,n,s)}return{getTextSelectorProp:r}}();function TextAnimatorDataProperty(o,i,a){var t={propType:!1},r=PropertyFactory.getProp,e=i.a;this.a={r:e.r?r(o,e.r,0,degToRads,a):t,rx:e.rx?r(o,e.rx,0,degToRads,a):t,ry:e.ry?r(o,e.ry,0,degToRads,a):t,sk:e.sk?r(o,e.sk,0,degToRads,a):t,sa:e.sa?r(o,e.sa,0,degToRads,a):t,s:e.s?r(o,e.s,1,0.01,a):t,a:e.a?r(o,e.a,1,0,a):t,o:e.o?r(o,e.o,0,0.01,a):t,p:e.p?r(o,e.p,1,0,a):t,sw:e.sw?r(o,e.sw,0,0,a):t,sc:e.sc?r(o,e.sc,1,0,a):t,fc:e.fc?r(o,e.fc,1,0,a):t,fh:e.fh?r(o,e.fh,0,0,a):t,fs:e.fs?r(o,e.fs,0,0.01,a):t,fb:e.fb?r(o,e.fb,0,0.01,a):t,t:e.t?r(o,e.t,0,0,a):t},this.s=TextSelectorProp.getTextSelectorProp(o,i.s,a),this.s.t=i.s.t}function TextAnimatorProperty(o,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=o,this._renderType=i,this._elem=a,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}TextAnimatorProperty.prototype.searchProperties=function(){var o,i=this._textData.a.length,a,t=PropertyFactory.getProp;for(o=0;o<i;o+=1)a=this._textData.a[o],this._animatorsData[o]=new TextAnimatorDataProperty(this._elem,a,this);if(this._textData.p&&"m"in this._textData.p)this._pathData={a:t(this._elem,this._textData.p.a,0,0,this),f:t(this._elem,this._textData.p.f,0,0,this),l:t(this._elem,this._textData.p.l,0,0,this),r:t(this._elem,this._textData.p.r,0,0,this),p:t(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0;else this._hasMaskedPath=!1;this._moreOptions.alignment=t(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(o,i){if(this.lettersChangedFlag=i,!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))return;this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,t=this._animatorsData,r=this._textData,e=this.mHelper,n=this._renderType,s=this.renderedLetters.length,l,h,p,H,f=o.l,y,z,v,q,w,u,g,k,W,R,Q,b,S,I,C;if(this._hasMaskedPath){if(C=this._pathData.m,!this._pathData.n||this._pathData._mdf){var J=C.v;if(this._pathData.r.v)J=J.reverse();y={tLength:0,segments:[]},H=J._length-1;var F;b=0;for(p=0;p<H;p+=1)F=bez.buildBezierData(J.v[p],J.v[p+1],[J.o[p][0]-J.v[p][0],J.o[p][1]-J.v[p][1]],[J.i[p+1][0]-J.v[p+1][0],J.i[p+1][1]-J.v[p+1][1]]),y.tLength+=F.segmentLength,y.segments.push(F),b+=F.segmentLength;if(p=H,C.v.c)F=bez.buildBezierData(J.v[p],J.v[0],[J.o[p][0]-J.v[p][0],J.o[p][1]-J.v[p][1]],[J.i[0][0]-J.v[0][0],J.i[0][1]-J.v[0][1]]),y.tLength+=F.segmentLength,y.segments.push(F),b+=F.segmentLength;this._pathData.pi=y}if(y=this._pathData.pi,z=this._pathData.f.v,g=0,u=1,q=0,w=!0,R=y.segments,z<0&&C.v.c){if(y.tLength<Math.abs(z))z=-Math.abs(z)%y.tLength;g=R.length-1,W=R[g].points,u=W.length-1;while(z<0)if(z+=W[u].partialLength,u-=1,u<0)g-=1,W=R[g].points,u=W.length-1}W=R[g].points,k=W[u-1],v=W[u],Q=v.partialLength}H=f.length,l=0,h=0;var j=o.finalSize*1.2*0.714,U=!0,x,K,c,m,P;m=t.length;var Y,A=-1,M,E,oo,to=z,co=g,yo=u,Vo=-1,Zo,po,Ho,so,N,uo,di,ai,Mo="",ti=this.defaultPropsArray,ri;if(o.j===2||o.j===1){var $o=0,ci=0,hi=o.j===2?-0.5:-1,Xo=0,ui=!0;for(p=0;p<H;p+=1)if(f[p].n){if($o)$o+=ci;while(Xo<p)f[Xo].animatorJustifyOffset=$o,Xo+=1;$o=0,ui=!0}else{for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(ui&&o.j===2)ci+=x.t.v*hi;if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)$o+=x.t.v*Y[0]*hi;else $o+=x.t.v*Y*hi}ui=!1}if($o)$o+=ci;while(Xo<p)f[Xo].animatorJustifyOffset=$o,Xo+=1}for(p=0;p<H;p+=1){if(e.reset(),Zo=1,f[p].n){if(l=0,h+=o.yOffset,h+=U?1:0,z=to,U=!1,this._hasMaskedPath)g=co,u=yo,W=R[g].points,k=W[u-1],v=W[u],Q=v.partialLength,q=0;Mo="",ai="",uo="",ri="",ti=this.defaultPropsArray}else{if(this._hasMaskedPath){if(Vo!==f[p].line){switch(o.j){case 1:z+=b-o.lineWidths[f[p].line];break;case 2:z+=(b-o.lineWidths[f[p].line])/2;break;default:break}Vo=f[p].line}if(A!==f[p].ind){if(f[A])z+=f[A].extra;z+=f[p].an/2,A=f[p].ind}z+=a[0]*f[p].an*0.005;var Ao=0;for(c=0;c<m;c+=1){if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)Ao+=x.p.v[0]*Y[0];else Ao+=x.p.v[0]*Y;if(x.a.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)Ao+=x.a.v[0]*Y[0];else Ao+=x.a.v[0]*Y}if(w=!0,this._pathData.a.v)z=f[0].an*0.5+(b-this._pathData.f.v-f[0].an*0.5-f[f.length-1].an*0.5)*A/(H-1),z+=this._pathData.f.v;while(w)if(q+Q>=z+Ao||!W)S=(z+Ao-q)/v.partialLength,E=k.point[0]+(v.point[0]-k.point[0])*S,oo=k.point[1]+(v.point[1]-k.point[1])*S,e.translate(-a[0]*f[p].an*0.005,-(a[1]*j)*0.01),w=!1;else if(W){if(q+=v.partialLength,u+=1,u>=W.length)if(u=0,g+=1,!R[g])if(C.v.c)u=0,g=0,W=R[g].points;else q-=v.partialLength,W=null;else W=R[g].points;if(W)k=v,v=W[u],Q=v.partialLength}M=f[p].an/2-f[p].add,e.translate(-M,0,0)}else M=f[p].an/2-f[p].add,e.translate(-M,0,0),e.translate(-a[0]*f[p].an*0.005,-a[1]*j*0.01,0);for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),l!==0||o.j!==0)if(this._hasMaskedPath)if(Y.length)z+=x.t.v*Y[0];else z+=x.t.v*Y;else if(Y.length)l+=x.t.v*Y[0];else l+=x.t.v*Y}if(o.strokeWidthAnim)Ho=o.sw||0;if(o.strokeColorAnim)if(o.sc)po=[o.sc[0],o.sc[1],o.sc[2]];else po=[0,0,0];if(o.fillColorAnim&&o.fc)so=[o.fc[0],o.fc[1],o.fc[2]];for(c=0;c<m;c+=1)if(x=t[c].a,x.a.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)e.translate(-x.a.v[0]*Y[0],-x.a.v[1]*Y[1],x.a.v[2]*Y[2]);else e.translate(-x.a.v[0]*Y,-x.a.v[1]*Y,x.a.v[2]*Y);for(c=0;c<m;c+=1)if(x=t[c].a,x.s.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),Y.length)e.scale(1+(x.s.v[0]-1)*Y[0],1+(x.s.v[1]-1)*Y[1],1);else e.scale(1+(x.s.v[0]-1)*Y,1+(x.s.v[1]-1)*Y,1);for(c=0;c<m;c+=1){if(x=t[c].a,K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),x.sk.propType)if(Y.length)e.skewFromAxis(-x.sk.v*Y[0],x.sa.v*Y[1]);else e.skewFromAxis(-x.sk.v*Y,x.sa.v*Y);if(x.r.propType)if(Y.length)e.rotateZ(-x.r.v*Y[2]);else e.rotateZ(-x.r.v*Y);if(x.ry.propType)if(Y.length)e.rotateY(x.ry.v*Y[1]);else e.rotateY(x.ry.v*Y);if(x.rx.propType)if(Y.length)e.rotateX(x.rx.v*Y[0]);else e.rotateX(x.rx.v*Y);if(x.o.propType)if(Y.length)Zo+=(x.o.v*Y[0]-Zo)*Y[0];else Zo+=(x.o.v*Y-Zo)*Y;if(o.strokeWidthAnim&&x.sw.propType)if(Y.length)Ho+=x.sw.v*Y[0];else Ho+=x.sw.v*Y;if(o.strokeColorAnim&&x.sc.propType)for(N=0;N<3;N+=1)if(Y.length)po[N]+=(x.sc.v[N]-po[N])*Y[0];else po[N]+=(x.sc.v[N]-po[N])*Y;if(o.fillColorAnim&&o.fc){if(x.fc.propType)for(N=0;N<3;N+=1)if(Y.length)so[N]+=(x.fc.v[N]-so[N])*Y[0];else so[N]+=(x.fc.v[N]-so[N])*Y;if(x.fh.propType)if(Y.length)so=addHueToRGB(so,x.fh.v*Y[0]);else so=addHueToRGB(so,x.fh.v*Y);if(x.fs.propType)if(Y.length)so=addSaturationToRGB(so,x.fs.v*Y[0]);else so=addSaturationToRGB(so,x.fs.v*Y);if(x.fb.propType)if(Y.length)so=addBrightnessToRGB(so,x.fb.v*Y[0]);else so=addBrightnessToRGB(so,x.fb.v*Y)}}for(c=0;c<m;c+=1)if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[p].anIndexes[c],r.a[c].s.totalChars),this._hasMaskedPath)if(Y.length)e.translate(0,x.p.v[1]*Y[0],-x.p.v[2]*Y[1]);else e.translate(0,x.p.v[1]*Y,-x.p.v[2]*Y);else if(Y.length)e.translate(x.p.v[0]*Y[0],x.p.v[1]*Y[1],-x.p.v[2]*Y[2]);else e.translate(x.p.v[0]*Y,x.p.v[1]*Y,-x.p.v[2]*Y);if(o.strokeWidthAnim)uo=Ho<0?0:Ho;if(o.strokeColorAnim)di="rgb("+Math.round(po[0]*255)+","+Math.round(po[1]*255)+","+Math.round(po[2]*255)+")";if(o.fillColorAnim&&o.fc)ai="rgb("+Math.round(so[0]*255)+","+Math.round(so[1]*255)+","+Math.round(so[2]*255)+")";if(this._hasMaskedPath){if(e.translate(0,-o.ls),e.translate(0,a[1]*j*0.01+h,0),this._pathData.p.v){I=(v.point[1]-k.point[1])/(v.point[0]-k.point[0]);var mi=Math.atan(I)*180/Math.PI;if(v.point[0]<k.point[0])mi+=180;e.rotate(-mi*Math.PI/180)}if(e.translate(E,oo,0),z-=a[0]*f[p].an*0.005,f[p+1]&&A!==f[p+1].ind)z+=f[p].an/2,z+=o.tr*0.001*o.finalSize}else{if(e.translate(l,h,0),o.ps)e.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(o.j){case 1:e.translate(f[p].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[p].line]),0,0);break;case 2:e.translate(f[p].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[p].line])/2,0,0);break;default:break}e.translate(0,-o.ls),e.translate(M,0,0),e.translate(a[0]*f[p].an*0.005,a[1]*j*0.01,0),l+=f[p].l+o.tr*0.001*o.finalSize}if(n==="html")Mo=e.toCSS();else if(n==="svg")Mo=e.to2dCSS();else ti=[e.props[0],e.props[1],e.props[2],e.props[3],e.props[4],e.props[5],e.props[6],e.props[7],e.props[8],e.props[9],e.props[10],e.props[11],e.props[12],e.props[13],e.props[14],e.props[15]];ri=Zo}if(s<=p)P=new LetterProps(ri,uo,di,ai,Mo,ti),this.renderedLetters.push(P),s+=1,this.lettersChangedFlag=!0;else P=this.renderedLetters[p],this.lettersChangedFlag=P.update(ri,uo,di,ai,Mo,ti)||this.lettersChangedFlag}},TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId)return;this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties()},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(o,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(o,i,a),this.textProperty=new TextProperty(this,o.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(o.t,this.renderType,this),this.initTransform(o,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)},ITextElement.prototype.createPathShape=function(o,i){var a,t=i.length,r,e="";for(a=0;a<t;a+=1)if(i[a].ty==="sh")r=i[a].ks.k,e+=buildShapeString(r,r.i.length,!0,o);return e},ITextElement.prototype.updateDocumentData=function(o,i){this.textProperty.updateDocumentData(o,i)},ITextElement.prototype.canResizeFont=function(o){this.textProperty.canResizeFont(o)},ITextElement.prototype.setMinimumFontSize=function(o){this.textProperty.setMinimumFontSize(o)},ITextElement.prototype.applyTextPropertiesToMatrix=function(o,i,a,t,r){if(o.ps)i.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(i.translate(0,-o.ls,0),o.j){case 1:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a]),0,0);break;case 2:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a])/2,0,0);break;default:break}i.translate(t,r,0)},ITextElement.prototype.buildColor=function(o){return"rgb("+Math.round(o[0]*255)+","+Math.round(o[1]*255)+","+Math.round(o[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){if(this.textProperty._mdf||this.textProperty._isFirstFrame)this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1};var emptyShapeData={shapes:[]};function SVGTextLottieElement(o,i,a){this.textSpans=[],this.renderType="svg",this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars)this.textContainer=createNS("text")},SVGTextLottieElement.prototype.buildTextContents=function(o){var i=0,a=o.length,t=[],r="";while(i<a){if(o[i]===String.fromCharCode(13)||o[i]===String.fromCharCode(3))t.push(r),r="";else r+=o[i];i+=1}return t.push(r),t},SVGTextLottieElement.prototype.buildShapeData=function(o,i){if(o.shapes&&o.shapes.length){var a=o.shapes[0];if(a.it){var t=a.it[a.it.length-1];if(t.s)t.s.k[0]=i,t.s.k[1]=i}}return o},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var o,i,a=this.textProperty.currentData;if(this.renderedLetters=createSizedArray(a?a.l.length:0),a.fc)this.layerElement.setAttribute("fill",this.buildColor(a.fc));else this.layerElement.setAttribute("fill","rgba(0,0,0,0)");if(a.sc)this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw);this.layerElement.setAttribute("font-size",a.finalSize);var t=this.globalData.fontManager.getFontByName(a.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var{fWeight:r,fStyle:e}=a;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",a.t);var n=a.l||[],s=!!this.globalData.fontManager.chars;i=n.length;var l,h=this.mHelper,p="",H=this.data.singleShape,f=0,y=0,z=!0,v=a.tr*0.001*a.finalSize;if(H&&!s&&!a.sz){var q=this.textContainer,w="start";switch(a.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}q.setAttribute("text-anchor",w),q.setAttribute("letter-spacing",v);var u=this.buildTextContents(a.finalText);i=u.length,y=a.ps?a.ps[1]+a.ascent:0;for(o=0;o<i;o+=1){if(l=this.textSpans[o].span||createNS("tspan"),l.textContent=u[o],l.setAttribute("x",0),l.setAttribute("y",y),l.style.display="inherit",q.appendChild(l),!this.textSpans[o])this.textSpans[o]={span:null,glyph:null};this.textSpans[o].span=l,y+=a.finalLineHeight}this.layerElement.appendChild(q)}else{var g=this.textSpans.length,k;for(o=0;o<i;o+=1){if(!this.textSpans[o])this.textSpans[o]={span:null,childSpan:null,glyph:null};if(!s||!H||o===0){if(l=g>o?this.textSpans[o].span:createNS(s?"g":"text"),g<=o){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=l,s){var W=createNS("g");l.appendChild(W),this.textSpans[o].childSpan=W}this.textSpans[o].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(h.reset(),H){if(n[o].n)f=-v,y+=a.yOffset,y+=z?1:0,z=!1;this.applyTextPropertiesToMatrix(a,h,n[o].line,f,y),f+=n[o].l||0,f+=v}if(s){k=this.globalData.fontManager.getCharData(a.finalText[o],t.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var R;if(k.t===1)R=new SVGCompElement(k.data,this.globalData,this);else{var Q=emptyShapeData;if(k.data&&k.data.shapes)Q=this.buildShapeData(k.data,a.finalSize);R=new SVGShapeElement(Q,this.globalData,this)}if(this.textSpans[o].glyph){var b=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(b.layerElement),b.destroy()}if(this.textSpans[o].glyph=R,R._debug=!0,R.prepareFrame(0),R.renderFrame(),this.textSpans[o].childSpan.appendChild(R.layerElement),k.t===1)this.textSpans[o].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else{if(H)l.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")");l.textContent=n[o].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}}if(H&&l)l.setAttribute("d",p)}while(o<this.textSpans.length)this.textSpans[o].span.style.display="none",o+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var o=this.layerElement.getBBox();this.bbox={top:o.y,left:o.x,width:o.width,height:o.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var o,i=this.textSpans.length,a;this.renderedFrame=this.comp.renderedFrame;for(o=0;o<i;o+=1)if(a=this.textSpans[o].glyph,a){if(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf)this._mdf=!0}},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),!this.data.singleShape||this._mdf){if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=!0;var o,i,a=this.textAnimator.renderedLetters,t=this.textProperty.currentData.l;i=t.length;var r,e,n;for(o=0;o<i;o+=1)if(!t[o].n){if(r=a[o],e=this.textSpans[o].span,n=this.textSpans[o].glyph,n)n.renderFrame();if(r._mdf.m)e.setAttribute("transform",r.m);if(r._mdf.o)e.setAttribute("opacity",r.o);if(r._mdf.sw)e.setAttribute("stroke-width",r.sw);if(r._mdf.sc)e.setAttribute("stroke",r.sc);if(r._mdf.fc)e.setAttribute("fill",r.fc)}}}};function ISolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var o=createNS("rect");o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.layerElement.appendChild(o)};function NullElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initFrame(),this.initTransform(o,i,a),this.initHierarchy()}NullElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(o){return new NullElement(o,this.globalData,this)},SVGRendererBase.prototype.createShape=function(o){return new SVGShapeElement(o,this.globalData,this)},SVGRendererBase.prototype.createText=function(o){return new SVGTextLottieElement(o,this.globalData,this)},SVGRendererBase.prototype.createImage=function(o){return new IImageElement(o,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(o){return new ISolidElement(o,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(o){if(this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize)this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize);else this.svgElement.setAttribute("viewBox","0 0 "+o.w+" "+o.h);if(!this.renderConfig.viewBoxOnly)this.svgElement.setAttribute("width",o.w),this.svgElement.setAttribute("height",o.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility;if(this.renderConfig.width)this.svgElement.setAttribute("width",this.renderConfig.width);if(this.renderConfig.height)this.svgElement.setAttribute("height",this.renderConfig.height);if(this.renderConfig.className)this.svgElement.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.svgElement.setAttribute("id",this.renderConfig.id);if(this.renderConfig.focusable!==void 0)this.svgElement.setAttribute("focusable",this.renderConfig.focusable);this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(o,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=o;var a=createNS("clipPath"),t=createNS("rect");t.setAttribute("width",o.w),t.setAttribute("height",o.h),t.setAttribute("x",0),t.setAttribute("y",0);var r=createElementID();a.setAttribute("id",r),a.appendChild(t),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),i.appendChild(a),this.layers=o.layers,this.elements=createSizedArray(o.layers.length)},SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.layerElement=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(o){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===o)return i;return-1},SVGRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;i[o]=!0;var a=this.createItem(this.layers[o]);if(i[o]=a,getExpressionsPlugin()){if(this.layers[o].ty===0)this.globalData.projectInterface.registerComposition(a);a.initExpressions()}if(this.appendElementInPos(a,o),this.layers[o].tt){var t="tp"in this.layers[o]?this.findIndexByInd(this.layers[o].tp):o-1;if(t===-1)return;if(!this.elements[t]||this.elements[t]===!0)this.buildItem(t),this.addPendingElement(a);else{var r=i[t],e=r.getMatte(this.layers[o].tt);a.setMatte(e)}}},SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();if(o.checkParenting(),o.data.tt){var i=0,a=this.elements.length;while(i<a){if(this.elements[i]===o){var t="tp"in o.data?this.findIndexByInd(o.data.tp):i-1,r=this.elements[t],e=r.getMatte(this.layers[i].tt);o.setMatte(e);break}i+=1}}}},SVGRendererBase.prototype.renderFrame=function(o){if(this.renderedFrame===o||this.destroyed)return;if(o===null)o=this.renderedFrame;else this.renderedFrame=o;this.globalData.frameNum=o,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=o,this.globalData._mdf=!1;var i,a=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].prepareFrame(o-this.layers[i].st);if(this.globalData._mdf){for(i=0;i<a;i+=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=0,r;while(t<i){if(this.elements[t]&&this.elements[t]!==!0&&this.elements[t].getBaseElement())r=this.elements[t].getBaseElement();t+=1}if(r)this.layerElement.insertBefore(a,r);else this.layerElement.appendChild(a)},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(o,i,a){if(this.initFrame(),this.initBaseData(o,i,a),this.initTransform(o,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.data.xt||!i.progressiveLoad)this.buildAllItems();this.hide()},ICompElement.prototype.prepareFrame=function(o){if(this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),!this.isInRange&&!this.data.xt)return;if(!this.tm._placeholder){var i=this.tm.v;if(i===this.data.op)i=this.data.op-1;this.renderedFrame=i}else this.renderedFrame=o/this.data.sr;var a,t=this.elements.length;if(!this.completeLayers)this.checkLayers(this.renderedFrame);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a]){if(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf)this._mdf=!0}},ICompElement.prototype.renderInnerContent=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.completeLayers||this.elements[o])this.elements[o].renderFrame()},ICompElement.prototype.setElements=function(o){this.elements=o},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.elements[o])this.elements[o].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(o,i,a){this.layers=o.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function SVGRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(i&&i.title){var t=createNS("title"),r=createElementID();t.setAttribute("id",r),t.textContent=i.title,this.svgElement.appendChild(t),a+=r}if(i&&i.description){var e=createNS("desc"),n=createElementID();e.setAttribute("id",n),e.textContent=i.description,this.svgElement.appendChild(e),a+=" "+n}if(a)this.svgElement.setAttribute("aria-labelledby",a);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function o(i){var a,t=i.length,r="_";for(a=0;a<t;a+=1)r+=i[a].transform.key+"_";var e=this.sequences[r];if(!e)e={transforms:[].concat(i),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=e,this.sequenceList.push(e);return e},processSequence:function o(i,a){var t=0,r=i.transforms.length,e=a;while(t<r&&!a){if(i.transforms[t].transform.mProps._mdf){e=!0;break}t+=1}if(e){i.finalTransform.reset();for(t=r-1;t>=0;t-=1)i.finalTransform.multiply(i.transforms[t].transform.mProps.v)}i._mdf=e},processSequences:function o(i){var a,t=this.sequenceList.length;for(a=0;a<t;a+=1)this.processSequence(this.sequenceList[a],i)},getNewKey:function o(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function o(){var i="__lottie_element_luma_buffer",a=null,t=null,r=null;function e(){var l=createNS("svg"),h=createNS("filter"),p=createNS("feColorMatrix");if(h.setAttribute("id",i),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),h.appendChild(p),l.appendChild(h),l.setAttribute("id",i+"_svg"),featureSupport.svgLumaHidden)l.style.display="none";return l}function n(){if(!a)r=e(),document.body.appendChild(r),a=createTag("canvas"),t=a.getContext("2d"),t.filter="url(#"+i+")",t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1)}function s(l){if(!a)n();return a.width=l.width,a.height=l.height,t.filter="url(#"+i+")",a}return{load:n,get:s}};function createCanvas(o,i){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(o,i);var a=createTag("canvas");return a.width=o,a.height=i,a}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(o){var i,a=o.data.ef?o.data.ef.length:0;this.filters=[];var t;for(i=0;i<a;i+=1){t=null;var r=o.data.ef[i].ty;if(registeredEffects[r]){var e=registeredEffects[r].effect;t=new e(o.effectsManager.effectElements[i],o)}if(t)this.filters.push(t)}if(this.filters.length)o.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},CVEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect(o,i){registeredEffects[o]={effect:i}}function CVMaskElement(o,i){this.data=o,this.element=i,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a,t=this.masksProperties.length,r=!1;for(a=0;a<t;a+=1){if(this.masksProperties[a].mode!=="n")r=!0;this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3)}if(this.hasMasks=r,r)this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks)return;var o=this.element.finalTransform.mat,i=this.element.canvasContext,a,t=this.masksProperties.length,r,e,n;i.beginPath();for(a=0;a<t;a+=1)if(this.masksProperties[a].mode!=="n"){if(this.masksProperties[a].inv)i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0);n=this.viewData[a].v,r=o.applyToPointArray(n.v[0][0],n.v[0][1],0),i.moveTo(r[0],r[1]);var s,l=n._length;for(s=1;s<l;s+=1)e=o.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);e=o.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}this.element.globalData.renderer.save(!0),i.clip()},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function o(){},initRendererElement:function o(){},createContainerElements:function o(){if(this.data.tt>=1){this.buffers=[];var i=this.globalData.canvasContext,a=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(a);var t=assetLoader.createCanvas(i.canvas.width,i.canvas.height);if(this.buffers.push(t),this.data.tt>=3&&!document._isProxy)assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function o(){},setBlendMode:function o(){var i=this.globalData;if(i.blendMode!==this.data.bm){i.blendMode=this.data.bm;var a=getBlendMode(this.data.bm);i.canvasContext.globalCompositeOperation=a}},createRenderableComponents:function o(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function o(){if(!this.hidden&&(!this.isInRange||this.isTransparent))this.hidden=!0},showElement:function o(){if(this.isInRange&&!this.isTransparent)this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0},clearCanvas:function o(i){i.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function o(){if(this.data.tt>=1){var i=this.buffers[0],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function o(){if(this.data.tt>=1){var i=this.buffers[1],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var t=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(t.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),e=r.getContext("2d");e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(i,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function o(i){if(this.hidden||this.data.hd)return;if(this.data.td===1&&!i)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var a=this.data.ty===0;if(this.prepareLayer(),this.globalData.renderer.save(a),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(a),this.exitLayer(),this.maskManager.hasMasks)this.globalData.renderer.restore(!0);if(this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(o,i,a,t){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;if(i.ty==="rc")r=5;else if(i.ty==="el")r=6;else if(i.ty==="sr")r=7;this.sh=ShapePropertyFactory.getShapeProp(o,i,r,o);var e,n=a.length,s;for(e=0;e<n;e+=1)if(!a[e].closed)s={transforms:t.addTransformSequence(a[e].transforms),trNodes:[]},this.styledShapes.push(s),a[e].elements.push(s)}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(o,i){var a={data:o,type:o.ty,preTransforms:this.transformsManager.addTransformSequence(i),transforms:[],elements:[],closed:o.hd===!0},t={};if(o.ty==="fl"||o.ty==="st"){if(t.c=PropertyFactory.getProp(this,o.c,1,255,this),!t.c.k)a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"}else if(o.ty==="gf"||o.ty==="gs")t.s=PropertyFactory.getProp(this,o.s,1,null,this),t.e=PropertyFactory.getProp(this,o.e,1,null,this),t.h=PropertyFactory.getProp(this,o.h||{k:0},0,0.01,this),t.a=PropertyFactory.getProp(this,o.a||{k:0},0,degToRads,this),t.g=new GradientProperty(this,o.g,this);if(t.o=PropertyFactory.getProp(this,o.o,0,0.01,this),o.ty==="st"||o.ty==="gs"){if(a.lc=lineCapEnum[o.lc||2],a.lj=lineJoinEnum[o.lj||2],o.lj==1)a.ml=o.ml;if(t.w=PropertyFactory.getProp(this,o.w,0,null,this),!t.w.k)a.wi=t.w.v;if(o.d){var r=new DashProperty(this,o.d,"canvas",this);if(t.d=r,!t.d.k)a.da=t.d.dashArray,a.do=t.d.dashoffset[0]}}else a.r=o.r===2?"evenodd":"nonzero";return this.stylesList.push(a),t.style=a,t},CVShapeElement.prototype.createGroupElement=function(){var o={it:[],prevViewData:[]};return o},CVShapeElement.prototype.createTransformElement=function(o){var i={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,o.o,0,0.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,o,this)}};return i},CVShapeElement.prototype.createShapeElement=function(o){var i=new CVShapeData(this,o,this.stylesList,this.transformsManager);return this.shapes.push(i),this.addShapeToModifiers(i),i},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(o){var i,a=this.stylesList.length;for(i=0;i<a;i+=1)if(!this.stylesList[i].closed)this.stylesList[i].transforms.push(o)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var o,i=this.stylesList.length;for(o=0;o<i;o+=1)if(!this.stylesList[o].closed)this.stylesList[o].transforms.pop()},CVShapeElement.prototype.closeStyles=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].closed=!0},CVShapeElement.prototype.searchShapes=function(o,i,a,t,r){var e,n=o.length-1,s,l,h=[],p=[],H,f,y,z=[].concat(r);for(e=n;e>=0;e-=1){if(H=this.searchProcessedElement(o[e]),!H)o[e]._shouldRender=t;else i[e]=a[H-1];if(o[e].ty==="fl"||o[e].ty==="st"||o[e].ty==="gf"||o[e].ty==="gs"){if(!H)i[e]=this.createStyleElement(o[e],z);else i[e].style.closed=!1;h.push(i[e].style)}else if(o[e].ty==="gr"){if(!H)i[e]=this.createGroupElement(o[e]);else{l=i[e].it.length;for(s=0;s<l;s+=1)i[e].prevViewData[s]=i[e].it[s]}this.searchShapes(o[e].it,i[e].it,i[e].prevViewData,t,z)}else if(o[e].ty==="tr"){if(!H)y=this.createTransformElement(o[e]),i[e]=y;z.push(i[e]),this.addTransformToStyleList(i[e])}else if(o[e].ty==="sh"||o[e].ty==="rc"||o[e].ty==="el"||o[e].ty==="sr"){if(!H)i[e]=this.createShapeElement(o[e])}else if(o[e].ty==="tm"||o[e].ty==="rd"||o[e].ty==="pb"||o[e].ty==="zz"||o[e].ty==="op"){if(!H)f=ShapeModifiers.getModifier(o[e].ty),f.init(this,o[e]),i[e]=f,this.shapeModifiers.push(f);else f=i[e],f.closed=!1;p.push(f)}else if(o[e].ty==="rp"){if(!H)f=ShapeModifiers.getModifier(o[e].ty),i[e]=f,f.init(this,o,e,i),this.shapeModifiers.push(f),t=!1;else f=i[e],f.closed=!0;p.push(f)}this.addProcessedElement(o[e],e+1)}this.removeTransformFromStyleList(),this.closeStyles(h),n=p.length;for(e=0;e<n;e+=1)p[e].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(o,i){if(o._opMdf||i.op._mdf||this._isFirstFrame)i.opacity=o.opacity,i.opacity*=i.op.v,i._opMdf=!0},CVShapeElement.prototype.drawLayer=function(){var o,i=this.stylesList.length,a,t,r,e,n,s,l=this.globalData.renderer,h=this.globalData.canvasContext,p,H;for(o=0;o<i;o+=1)if(H=this.stylesList[o],p=H.type,!((p==="st"||p==="gs")&&H.wi===0||!H.data._shouldRender||H.coOp===0||this.globalData.currentGlobalAlpha===0)){if(l.save(),n=H.elements,p==="st"||p==="gs")l.ctxStrokeStyle(p==="st"?H.co:H.grd),l.ctxLineWidth(H.wi),l.ctxLineCap(H.lc),l.ctxLineJoin(H.lj),l.ctxMiterLimit(H.ml||0);else l.ctxFillStyle(p==="fl"?H.co:H.grd);if(l.ctxOpacity(H.coOp),p!=="st"&&p!=="gs")h.beginPath();l.ctxTransform(H.preTransforms.finalTransform.props),t=n.length;for(a=0;a<t;a+=1){if(p==="st"||p==="gs"){if(h.beginPath(),H.da)h.setLineDash(H.da),h.lineDashOffset=H.do}s=n[a].trNodes,e=s.length;for(r=0;r<e;r+=1)if(s[r].t==="m")h.moveTo(s[r].p[0],s[r].p[1]);else if(s[r].t==="c")h.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]);else h.closePath();if(p==="st"||p==="gs"){if(l.ctxStroke(),H.da)h.setLineDash(this.dashResetter)}}if(p!=="st"&&p!=="gs")this.globalData.renderer.ctxFill(H.r);l.restore()}},CVShapeElement.prototype.renderShape=function(o,i,a,t){var r,e=i.length-1,n;n=o;for(r=e;r>=0;r-=1)if(i[r].ty==="tr")n=a[r].transform,this.renderShapeTransform(o,n);else if(i[r].ty==="sh"||i[r].ty==="el"||i[r].ty==="rc"||i[r].ty==="sr")this.renderPath(i[r],a[r]);else if(i[r].ty==="fl")this.renderFill(i[r],a[r],n);else if(i[r].ty==="st")this.renderStroke(i[r],a[r],n);else if(i[r].ty==="gf"||i[r].ty==="gs")this.renderGradientFill(i[r],a[r],n);else if(i[r].ty==="gr")this.renderShape(n,i[r].it,a[r].it);else if(i[r].ty==="tm");if(t)this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(o,i){if(this._isFirstFrame||i._mdf||o.transforms._mdf){var a=o.trNodes,t=i.paths,r,e,n,s=t._length;a.length=0;var l=o.transforms.finalTransform;for(n=0;n<s;n+=1){var h=t.shapes[n];if(h&&h.v){e=h._length;for(r=1;r<e;r+=1){if(r===1)a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)});a.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])})}if(e===1)a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)});if(h.c&&e)a.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),a.push({t:"z"})}}o.trNodes=a}},CVShapeElement.prototype.renderPath=function(o,i){if(o.hd!==!0&&o._shouldRender){var a,t=i.styledShapes.length;for(a=0;a<t;a+=1)this.renderStyledShape(i.styledShapes[a],i.sh)}},CVShapeElement.prototype.renderFill=function(o,i,a){var t=i.style;if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderGradientFill=function(o,i,a){var t=i.style,r;if(!t.grd||i.g._mdf||i.s._mdf||i.e._mdf||o.t!==1&&(i.h._mdf||i.a._mdf)){var e=this.globalData.canvasContext,n=i.s.v,s=i.e.v;if(o.t===1)r=e.createLinearGradient(n[0],n[1],s[0],s[1]);else{var l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)),h=Math.atan2(s[1]-n[1],s[0]-n[0]),p=i.h.v;if(p>=1)p=0.99;else if(p<=-1)p=-0.99;var H=l*p,f=Math.cos(h+i.a.v)*H+n[0],y=Math.sin(h+i.a.v)*H+n[1];r=e.createRadialGradient(f,y,0,n[0],n[1],l)}var z,v=o.g.p,q=i.g.c,w=1;for(z=0;z<v;z+=1){if(i.g._hasOpacity&&i.g._collapsable)w=i.g.o[z*2+1];r.addColorStop(q[z*4]/100,"rgba("+q[z*4+1]+","+q[z*4+2]+","+q[z*4+3]+","+w+")")}t.grd=r}t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(o,i,a){var{style:t,d:r}=i;if(r&&(r._mdf||this._isFirstFrame))t.da=r.dashArray,t.do=r.dashoffset[0];if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity;if(i.w._mdf||this._isFirstFrame)t.wi=i.w.v},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(o,i,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=!1;if(o.fc)i=!0,this.values.fill=this.buildColor(o.fc);else this.values.fill="rgba(0,0,0,0)";this.fill=i;var a=!1;if(o.sc)a=!0,this.values.stroke=this.buildColor(o.sc),this.values.sWidth=o.sw;var t=this.globalData.fontManager.getFontByName(o.f),r,e,n=o.l,s=this.mHelper;this.stroke=a,this.values.fValue=o.finalSize+"px "+this.globalData.fontManager.getFontByName(o.f).fFamily,e=o.finalText.length;var l,h,p,H,f,y,z,v,q,w,u=this.data.singleShape,g=o.tr*0.001*o.finalSize,k=0,W=0,R=!0,Q=0;for(r=0;r<e;r+=1){if(l=this.globalData.fontManager.getCharData(o.finalText[r],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),h=l&&l.data||{},s.reset(),u&&n[r].n)k=-g,W+=o.yOffset,W+=R?1:0,R=!1;if(f=h.shapes?h.shapes[0].it:[],z=f.length,s.scale(o.finalSize/100,o.finalSize/100),u)this.applyTextPropertiesToMatrix(o,s,n[r].line,k,W);q=createSizedArray(z-1);var b=0;for(y=0;y<z;y+=1)if(f[y].ty==="sh"){H=f[y].ks.k.i.length,v=f[y].ks.k,w=[];for(p=1;p<H;p+=1){if(p===1)w.push(s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0));w.push(s.applyToX(v.o[p-1][0],v.o[p-1][1],0),s.applyToY(v.o[p-1][0],v.o[p-1][1],0),s.applyToX(v.i[p][0],v.i[p][1],0),s.applyToY(v.i[p][0],v.i[p][1],0),s.applyToX(v.v[p][0],v.v[p][1],0),s.applyToY(v.v[p][0],v.v[p][1],0))}w.push(s.applyToX(v.o[p-1][0],v.o[p-1][1],0),s.applyToY(v.o[p-1][0],v.o[p-1][1],0),s.applyToX(v.i[0][0],v.i[0][1],0),s.applyToY(v.i[0][0],v.i[0][1],0),s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0)),q[b]=w,b+=1}if(u)k+=n[r].l,k+=g;if(this.textSpans[Q])this.textSpans[Q].elem=q;else this.textSpans[Q]={elem:q};Q+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var o=this.canvasContext;if(o.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),!this.data.singleShape)this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var i,a,t,r,e,n,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;a=l.length;var h,p=null,H=null,f=null,y,z,v=this.globalData.renderer;for(i=0;i<a;i+=1)if(!l[i].n){if(h=s[i],h)v.save(),v.ctxTransform(h.p),v.ctxOpacity(h.o);if(this.fill){if(h&&h.fc){if(p!==h.fc)v.ctxFillStyle(h.fc),p=h.fc}else if(p!==this.values.fill)p=this.values.fill,v.ctxFillStyle(this.values.fill);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),v.ctxFill()}if(this.stroke){if(h&&h.sw){if(f!==h.sw)f=h.sw,v.ctxLineWidth(h.sw)}else if(f!==this.values.sWidth)f=this.values.sWidth,v.ctxLineWidth(this.values.sWidth);if(h&&h.sc){if(H!==h.sc)H=h.sc,v.ctxStrokeStyle(h.sc)}else if(H!==this.values.stroke)H=this.values.stroke,v.ctxStrokeStyle(this.values.stroke);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),v.ctxStroke()}if(h)this.globalData.renderer.restore()}};function CVImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.img=i.imageLoader.getAsset(this.assetData),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var o=createTag("canvas");o.width=this.assetData.w,o.height=this.assetData.h;var i=o.getContext("2d"),a=this.img.width,t=this.img.height,r=a/t,e=this.assetData.w/this.assetData.h,n,s,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(r>e&&l==="xMidYMid slice"||r<e&&l!=="xMidYMid slice")s=t,n=s*e;else n=a,s=n/e;i.drawImage(this.img,(a-n)/2,(t-s)/2,n,s,0,0,this.assetData.w,this.assetData.h),this.img=o}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(o){return new CVShapeElement(o,this.globalData,this)},CanvasRendererBase.prototype.createText=function(o){return new CVTextElement(o,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(o){return new CVImageElement(o,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(o){return new CVSolidElement(o,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(o){if(o[0]===1&&o[1]===0&&o[4]===0&&o[5]===1&&o[12]===0&&o[13]===0)return;this.canvasContext.transform(o[0],o[1],o[4],o[5],o[12],o[13])},CanvasRendererBase.prototype.ctxOpacity=function(o){this.canvasContext.globalAlpha*=o<0?0:o},CanvasRendererBase.prototype.ctxFillStyle=function(o){this.canvasContext.fillStyle=o},CanvasRendererBase.prototype.ctxStrokeStyle=function(o){this.canvasContext.strokeStyle=o},CanvasRendererBase.prototype.ctxLineWidth=function(o){this.canvasContext.lineWidth=o},CanvasRendererBase.prototype.ctxLineCap=function(o){this.canvasContext.lineCap=o},CanvasRendererBase.prototype.ctxLineJoin=function(o){this.canvasContext.lineJoin=o},CanvasRendererBase.prototype.ctxMiterLimit=function(o){this.canvasContext.miterLimit=o},CanvasRendererBase.prototype.ctxFill=function(o){this.canvasContext.fill(o)},CanvasRendererBase.prototype.ctxFillRect=function(o,i,a,t){this.canvasContext.fillRect(o,i,a,t)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(o){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}if(o)this.globalData.blendMode="source-over";this.contextData.restore(o)},CanvasRendererBase.prototype.configAnimation=function(o){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var i=this.animationItem.container.style;i.width="100%",i.height="100%";var a="0px 0px 0px";if(i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,i["-webkit-transform"]=a,i.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className)this.animationItem.container.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=o,this.layers=o.layers,this.transformCanvas={w:o.w,h:o.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(o,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(o.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(o,i){this.reset();var a,t;if(o)a=o,t=i,this.canvasContext.canvas.width=a,this.canvasContext.canvas.height=t;else{if(this.animationItem.wrapper&&this.animationItem.container)a=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight;else a=this.canvasContext.canvas.width,t=this.canvasContext.canvas.height;this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=t*this.renderConfig.dpr}var r,e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var n=this.renderConfig.preserveAspectRatio.split(" "),s=n[1]||"meet",l=n[0]||"xMidYMid",h=l.substr(0,4),p=l.substr(4);if(r=a/t,e=this.transformCanvas.w/this.transformCanvas.h,e>r&&s==="meet"||e<r&&s==="slice")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr);else this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr);if(h==="xMid"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr;else if(h==="xMax"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr;else this.transformCanvas.tx=0;if(p==="YMid"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr;else if(p==="YMax"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr;else this.transformCanvas.ty=0}else if(this.renderConfig.preserveAspectRatio==="none")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;else this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper)this.animationItem.wrapper.innerText="";var o,i=this.layers?this.layers.length:0;for(o=i-1;o>=0;o-=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(o,i){if(this.renderedFrame===o&&this.renderConfig.clearCanvas===!0&&!i||this.destroyed||o===-1)return;this.renderedFrame=o,this.globalData.frameNum=o-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||i,this.globalData.projectInterface.currentFrame=o;var a,t=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].prepareFrame(o-this.layers[a].st);if(this.globalData._mdf){if(this.renderConfig.clearCanvas===!0)this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h);else this.save();for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].renderFrame();if(this.renderConfig.clearCanvas!==!0)this.restore()}},CanvasRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;var a=this.createItem(this.layers[o],this,this.globalData);i[o]=a,a.initExpressions()},CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var o,i=15;for(o=0;o<i;o+=1){var a=new CanvasContext;this.stack[o]=a}this._length=i,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var o=this._length*2,i=0;for(i=this._length;i<o;i+=1)this.stack[i]=new CanvasContext;this._length=o},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(o){this.cArrPos-=1;var i=this.stack[this.cArrPos],a=i.transform,t,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=a[t];if(o){this.nativeContext.restore();var e=this.stack[this.cArrPos+1];this.appliedFillStyle=e.fillStyle,this.appliedStrokeStyle=e.strokeStyle,this.appliedLineWidth=e.lineWidth,this.appliedLineCap=e.lineCap,this.appliedLineJoin=e.lineJoin,this.appliedMiterLimit=e.miterLimit}if(this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),o||i.opacity!==-1&&this.currentOpacity!==i.opacity)this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity;this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(o){if(o)this.nativeContext.save();var i=this.cTr.props;if(this._length<=this.cArrPos)this.duplicate();var a=this.stack[this.cArrPos],t;for(t=0;t<16;t+=1)a.transform[t]=i[t];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=a.opacity,r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,r.lineWidth=a.lineWidth,r.lineCap=a.lineCap,r.lineJoin=a.lineJoin,r.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(o){this.stack[this.cArrPos].opacity=o},CVContextData.prototype.setContext=function(o){this.nativeContext=o},CVContextData.prototype.fillStyle=function(o){if(this.stack[this.cArrPos].fillStyle!==o)this.currentFillStyle=o,this.stack[this.cArrPos].fillStyle=o},CVContextData.prototype.strokeStyle=function(o){if(this.stack[this.cArrPos].strokeStyle!==o)this.currentStrokeStyle=o,this.stack[this.cArrPos].strokeStyle=o},CVContextData.prototype.lineWidth=function(o){if(this.stack[this.cArrPos].lineWidth!==o)this.currentLineWidth=o,this.stack[this.cArrPos].lineWidth=o},CVContextData.prototype.lineCap=function(o){if(this.stack[this.cArrPos].lineCap!==o)this.currentLineCap=o,this.stack[this.cArrPos].lineCap=o},CVContextData.prototype.lineJoin=function(o){if(this.stack[this.cArrPos].lineJoin!==o)this.currentLineJoin=o,this.stack[this.cArrPos].lineJoin=o},CVContextData.prototype.miterLimit=function(o){if(this.stack[this.cArrPos].miterLimit!==o)this.currentMiterLimit=o,this.stack[this.cArrPos].miterLimit=o},CVContextData.prototype.transform=function(o){this.transformMat.cloneFromProps(o);var i=this.cTr;this.transformMat.multiply(i),i.cloneFromProps(this.transformMat.props);var a=i.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(o){var i=this.stack[this.cArrPos].opacity;if(i*=o<0?0:o,this.stack[this.cArrPos].opacity!==i){if(this.currentOpacity!==o)this.nativeContext.globalAlpha=o,this.currentOpacity=o;this.stack[this.cArrPos].opacity=i}},CVContextData.prototype.fill=function(o){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fill(o)},CVContextData.prototype.fillRect=function(o,i,a,t){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fillRect(o,i,a,t)},CVContextData.prototype.stroke=function(){if(this.appliedStrokeStyle!==this.currentStrokeStyle)this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle;if(this.appliedLineWidth!==this.currentLineWidth)this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth;if(this.appliedLineCap!==this.currentLineCap)this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap;if(this.appliedLineJoin!==this.currentLineJoin)this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin;if(this.appliedMiterLimit!==this.currentMiterLimit)this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit;this.nativeContext.stroke()};function CVCompElement(o,i,a){this.completeLayers=!1,this.layers=o.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var o=this.canvasContext;o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip();var i,a=this.layers.length;for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var o,i=this.layers.length;for(o=i-1;o>=0;o-=1)if(this.elements[o])this.elements[o].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function CanvasRenderer(o,i){if(this.animationItem=o,this.renderConfig={clearCanvas:i&&i.clearCanvas!==void 0?i.clearCanvas:!0,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper)this.renderConfig.dpr=i&&i.dpr||window.devicePixelRatio||1;if(this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas)this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData)}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function o(){},initRendererElement:function o(){if(this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask)this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement);else this.layerElement=this.baseElement;styleDiv(this.baseElement)},createContainerElements:function o(){if(this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){var i=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var a=this.finalTransform.mat.toCSS();i.transform=a,i.webkitTransform=a}if(this.finalTransform._opMdf)i.opacity=this.finalTransform.mProp.o.v},renderFrame:function o(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){if(this.layerElement=null,this.transformedElement=null,this.matteElement)this.matteElement=null;if(this.maskManager)this.maskManager.destroy(),this.maskManager=null},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function o(){},setMatte:function o(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var o;if(this.data.hasMask)o=createNS("rect"),o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh);else o=createTag("div"),o.style.width=this.data.sw+"px",o.style.height=this.data.sh+"px",o.style.backgroundColor=this.data.sc;this.layerElement.appendChild(o)};function HShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(o,i,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var o;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),o=this.svgElement;else{o=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;o.setAttribute("width",i.w),o.setAttribute("height",i.h),o.appendChild(this.shapesContainer),this.layerElement.appendChild(o)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=o},HShapeElement.prototype.getTransformedPoint=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i=o[a].mProps.v.applyToPointArray(i[0],i[1],0);return i},HShapeElement.prototype.calculateShapeBoundingBox=function(o,i){var a=o.sh.v,t=o.transformers,r,e=a._length,n,s,l,h;if(e<=1)return;for(r=0;r<e-1;r+=1)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[r+1]),h=this.getTransformedPoint(t,a.v[r+1]),this.checkBounds(n,s,l,h,i);if(a.c)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[0]),h=this.getTransformedPoint(t,a.v[0]),this.checkBounds(n,s,l,h,i)},HShapeElement.prototype.checkBounds=function(o,i,a,t,r){this.getBoundsOfCurve(o,i,a,t);var e=this.shapeBoundingBox;r.x=bmMin(e.left,r.x),r.xMax=bmMax(e.right,r.xMax),r.y=bmMin(e.top,r.y),r.yMax=bmMax(e.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(o,i,a,t){var r=[[o[0],t[0]],[o[1],t[1]]];for(var e,n,s,l,h,p,H,f=0;f<2;++f)if(n=6*o[f]-12*i[f]+6*a[f],e=-3*o[f]+9*i[f]-9*a[f]+3*t[f],s=3*i[f]-3*o[f],n|=0,e|=0,s|=0,e===0&&n===0);else if(e===0){if(l=-s/n,l>0&&l<1)r[f].push(this.calculateF(l,o,i,a,t,f))}else if(h=n*n-4*s*e,h>=0){if(p=(-n+bmSqrt(h))/(2*e),p>0&&p<1)r[f].push(this.calculateF(p,o,i,a,t,f));if(H=(-n-bmSqrt(h))/(2*e),H>0&&H<1)r[f].push(this.calculateF(H,o,i,a,t,f))}this.shapeBoundingBox.left=bmMin.apply(null,r[0]),this.shapeBoundingBox.top=bmMin.apply(null,r[1]),this.shapeBoundingBox.right=bmMax.apply(null,r[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,r[1])},HShapeElement.prototype.calculateF=function(o,i,a,t,r,e){return bmPow(1-o,3)*i[e]+3*bmPow(1-o,2)*o*a[e]+3*(1-o)*bmPow(o,2)*t[e]+bmPow(o,3)*r[e]},HShapeElement.prototype.calculateBoundingBox=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]&&o[a].sh)this.calculateShapeBoundingBox(o[a],i);else if(o[a]&&o[a].it)this.calculateBoundingBox(o[a].it,i);else if(o[a]&&o[a].style&&o[a].w)this.expandStrokeBoundingBox(o[a].w,i)},HShapeElement.prototype.expandStrokeBoundingBox=function(o,i){var a=0;if(o.keyframes){for(var t=0;t<o.keyframes.length;t+=1){var r=o.keyframes[t].s;if(r>a)a=r}a*=o.mult}else a=o.v*o.mult;i.x-=a,i.xMax+=a,i.y-=a,i.yMax+=a},HShapeElement.prototype.currentBoxContains=function(o){return this.currentBBox.x<=o.x&&this.currentBBox.y<=o.y&&this.currentBBox.width+this.currentBBox.x>=o.x+o.width&&this.currentBBox.height+this.currentBBox.y>=o.y+o.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var o=this.tempBoundingBox,i=999999;if(o.x=i,o.xMax=-i,o.y=i,o.yMax=-i,this.calculateBoundingBox(this.itemsData,o),o.width=o.xMax<o.x?0:o.xMax-o.x,o.height=o.yMax<o.y?0:o.yMax-o.y,this.currentBoxContains(o))return;var a=!1;if(this.currentBBox.w!==o.width)this.currentBBox.w=o.width,this.shapeCont.setAttribute("width",o.width),a=!0;if(this.currentBBox.h!==o.height)this.currentBBox.h=o.height,this.shapeCont.setAttribute("height",o.height),a=!0;if(a||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y){this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var t=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=r,t.webkitTransform=r}}};function HTextElement(o,i,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var o=createNS("g");this.maskedElement.appendChild(o),this.innerElem=o}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=this.innerElem.style,a=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)";if(i.fill=a,i.color=a,o.sc)i.stroke=this.buildColor(o.sc),i.strokeWidth=o.sw+"px";var t=this.globalData.fontManager.getFontByName(o.f);if(!this.globalData.fontManager.chars)if(i.fontSize=o.finalSize+"px",i.lineHeight=o.finalSize+"px",t.fClass)this.innerElem.className=t.fClass;else{i.fontFamily=t.fFamily;var{fWeight:r,fStyle:e}=o;i.fontStyle=e,i.fontWeight=r}var n,s,l=o.l;s=l.length;var h,p,H,f=this.mHelper,y,z="",v=0;for(n=0;n<s;n+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[v])h=createNS("path"),h.setAttribute("stroke-linecap",lineCapEnum[1]),h.setAttribute("stroke-linejoin",lineJoinEnum[2]),h.setAttribute("stroke-miterlimit","4");else h=this.textPaths[v];if(!this.isMasked)if(this.textSpans[v])p=this.textSpans[v],H=p.children[0];else p=createTag("div"),p.style.lineHeight=0,H=createNS("svg"),H.appendChild(h),styleDiv(p)}else if(!this.isMasked)if(this.textSpans[v])p=this.textSpans[v],h=this.textPaths[v];else p=createTag("span"),styleDiv(p),h=createTag("span"),styleDiv(h),p.appendChild(h);else h=this.textPaths[v]?this.textPaths[v]:createNS("text");if(this.globalData.fontManager.chars){var q=this.globalData.fontManager.getCharData(o.finalText[n],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),w;if(q)w=q.data;else w=null;if(f.reset(),w&&w.shapes&&w.shapes.length)y=w.shapes[0].it,f.scale(o.finalSize/100,o.finalSize/100),z=this.createPathShape(f,y),h.setAttribute("d",z);if(!this.isMasked){if(this.innerElem.appendChild(p),w&&w.shapes){document.body.appendChild(H);var u=H.getBBox();H.setAttribute("width",u.width+2),H.setAttribute("height",u.height+2),H.setAttribute("viewBox",u.x-1+" "+(u.y-1)+" "+(u.width+2)+" "+(u.height+2));var g=H.style,k="translate("+(u.x-1)+"px,"+(u.y-1)+"px)";g.transform=k,g.webkitTransform=k,l[n].yOffset=u.y-1}else H.setAttribute("width",1),H.setAttribute("height",1);p.appendChild(H)}else this.innerElem.appendChild(h)}else if(h.textContent=l[n].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),!this.isMasked){this.innerElem.appendChild(p);var W=h.style,R="translate3d(0,"+-o.finalSize/1.2+"px,0)";W.transform=R,W.webkitTransform=R}else this.innerElem.appendChild(h);if(!this.isMasked)this.textSpans[v]=p;else this.textSpans[v]=h;this.textSpans[v].style.display="block",this.textPaths[v]=h,v+=1}while(v<this.textSpans.length)this.textSpans[v].style.display="none",v+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var o;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),o=this.svgElement.style;var i="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";o.transform=i,o.webkitTransform=i}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)return;var a,t,r=0,e=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,l,h;for(a=0;a<t;a+=1)if(n[a].n)r+=1;else{if(l=this.textSpans[a],h=this.textPaths[a],s=e[r],r+=1,s._mdf.m)if(!this.isMasked)l.style.webkitTransform=s.m,l.style.transform=s.m;else l.setAttribute("transform",s.m);if(l.style.opacity=s.o,s.sw&&s._mdf.sw)h.setAttribute("stroke-width",s.sw);if(s.sc&&s._mdf.sc)h.setAttribute("stroke",s.sc);if(s.fc&&s._mdf.fc)h.setAttribute("fill",s.fc),h.style.color=s.fc}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width)this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width);if(this.currentBBox.h!==p.height)this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height);var H=1;if(this.currentBBox.w!==p.width+H*2||this.currentBBox.h!==p.height+H*2||this.currentBBox.x!==p.x-H||this.currentBBox.y!==p.y-H){this.currentBBox.w=p.width+H*2,this.currentBBox.h=p.height+H*2,this.currentBBox.x=p.x-H,this.currentBBox.y=p.y-H,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),o=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=f,o.webkitTransform=f}}};function HCameraElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initHierarchy();var t=PropertyFactory.getProp;if(this.pe=t(this,o.pe,0,0,this),o.ks.p.s)this.px=t(this,o.ks.p.x,1,0,this),this.py=t(this,o.ks.p.y,1,0,this),this.pz=t(this,o.ks.p.z,1,0,this);else this.p=t(this,o.ks.p,1,0,this);if(o.ks.a)this.a=t(this,o.ks.a,1,0,this);if(o.ks.or.k.length&&o.ks.or.k[0].to){var r,e=o.ks.or.k.length;for(r=0;r<e;r+=1)o.ks.or.k[r].to=null,o.ks.or.k[r].ti=null}this.or=t(this,o.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=t(this,o.ks.rx,0,degToRads,this),this.ry=t(this,o.ks.ry,0,degToRads,this),this.rz=t(this,o.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var o,i=this.comp.threeDElements.length,a,t,r;for(o=0;o<i;o+=1)if(a=this.comp.threeDElements[o],a.type==="3d"){t=a.perspectiveElem.style,r=a.container.style;var e=this.pe.v+"px",n="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";t.perspective=e,t.webkitPerspective=e,r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,t.transform=s,t.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var o=this._isFirstFrame,i,a;if(this.hierarchy){a=this.hierarchy.length;for(i=0;i<a;i+=1)o=this.hierarchy[i].finalTransform.mProp._mdf||o}if(o||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy){a=this.hierarchy.length-1;for(i=a;i>=0;i-=1){var t=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}}if(this.p)this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]);else this.mat.translate(-this.px.v,-this.py.v,this.pz.v);if(this.a){var r;if(this.p)r=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]];else r=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var e=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),n=[r[0]/e,r[1]/e,r[2]/e],s=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],s),h=Math.atan2(n[0],-n[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){a=this.comp.threeDElements.length;var H,f,y;for(i=0;i<a;i+=1)if(H=this.comp.threeDElements[i],H.type==="3d"){if(p){var z=this.mat.toCSS();y=H.container.style,y.transform=z,y.webkitTransform=z}if(this.pe._mdf)f=H.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px"}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData),i=new Image;if(this.data.hasMask)this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h);else this.layerElement.appendChild(i);if(i.crossOrigin="anonymous",i.src=o,this.data.ln)this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=this.layers[i];if(!t.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(a,i);else{var r=0,e,n,s;while(r<i){if(this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement)n=this.elements[r],s=this.layers[r].ddd?this.getThreeDContainerByPos(r):n.getBaseElement(),e=s||e;r+=1}if(e){if(!t.ddd||!this.supports3d)this.layerElement.insertBefore(a,e)}else if(!t.ddd||!this.supports3d)this.layerElement.appendChild(a)}else this.addTo3dContainer(a,i)},HybridRendererBase.prototype.createShape=function(o){if(!this.supports3d)return new SVGShapeElement(o,this.globalData,this);return new HShapeElement(o,this.globalData,this)},HybridRendererBase.prototype.createText=function(o){if(!this.supports3d)return new SVGTextLottieElement(o,this.globalData,this);return new HTextElement(o,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(o){return this.camera=new HCameraElement(o,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(o){if(!this.supports3d)return new IImageElement(o,this.globalData,this);return new HImageElement(o,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(o){if(!this.supports3d)return new ISolidElement(o,this.globalData,this);return new HSolidElement(o,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(o){var i=0,a=this.threeDElements.length;while(i<a){if(this.threeDElements[i].startPos<=o&&this.threeDElements[i].endPos>=o)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(o,i){var a=createTag("div"),t,r;styleDiv(a);var e=createTag("div");if(styleDiv(e),i==="3d"){t=a.style,t.width=this.globalData.compSize.w+"px",t.height=this.globalData.compSize.h+"px";var n="50% 50%";t.webkitTransformOrigin=n,t.mozTransformOrigin=n,t.transformOrigin=n,r=e.style;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.transform=s,r.webkitTransform=s}a.appendChild(e);var l={container:e,perspectiveElem:a,startPos:o,endPos:o,type:i};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var o,i=this.layers.length,a,t="";for(o=0;o<i;o+=1)if(this.layers[o].ddd&&this.layers[o].ty!==3){if(t!=="3d")t="3d",a=this.createThreeDContainer(o,"3d");a.endPos=Math.max(a.endPos,o)}else{if(t!=="2d")t="2d",a=this.createThreeDContainer(o,"2d");a.endPos=Math.max(a.endPos,o)}i=this.threeDElements.length;for(o=i-1;o>=0;o-=1)this.resizerElem.appendChild(this.threeDElements[o].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(o,i){var a=0,t=this.threeDElements.length;while(a<t){if(i<=this.threeDElements[a].endPos){var r=this.threeDElements[a].startPos,e;while(r<i){if(this.elements[r]&&this.elements[r].getBaseElement)e=this.elements[r].getBaseElement();r+=1}if(e)this.threeDElements[a].container.insertBefore(o,e);else this.threeDElements[a].container.appendChild(o);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(o){var i=createTag("div"),a=this.animationItem.wrapper,t=i.style;if(t.width=o.w+"px",t.height=o.h+"px",this.resizerElem=i,styleDiv(i),t.transformStyle="flat",t.mozTransformStyle="flat",t.webkitTransformStyle="flat",this.renderConfig.className)i.setAttribute("class",this.renderConfig.className);a.appendChild(i),t.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var e=createNS("defs");r.appendChild(e),this.data=o,this.setupGlobalData(o,r),this.globalData.defs=e,this.layers=o.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.animationItem.container=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i,t=this.globalData.compSize.w/this.globalData.compSize.h,r,e,n,s;if(t>a)r=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,n=0,s=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2;else r=i/this.globalData.compSize.h,e=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,s=0;var l=this.resizerElem.style;l.webkitTransform="matrix3d("+r+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+s+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var o=this.globalData.compSize.w,i=this.globalData.compSize.h,a,t=this.threeDElements.length;for(a=0;a<t;a+=1){var r=this.threeDElements[a].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(o){var i,a=o.length,t=createTag("div");for(i=0;i<a;i+=1)if(o[i].xt){var r=this.createComp(o[i],t,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}};function HCompElement(o,i,a){this.layers=o.layers,this.supports3d=!o.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){if(this._createBaseContainerElements(),this.data.hasMask)this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement;else this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(o,i){var a=0,t;while(a<i){if(this.elements[a]&&this.elements[a].getBaseElement)t=this.elements[a].getBaseElement();a+=1}if(t)this.layerElement.insertBefore(o,t);else this.layerElement.appendChild(o)},HCompElement.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};function HybridRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"},runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};var CompExpressionInterface=function(){return function(o){function i(a){var t=0,r=o.layers.length;while(t<r){if(o.layers[t].nm===a||o.layers[t].ind===a)return o.elements[t].layerInterface;t+=1}return null}return Object.defineProperty(i,"_name",{value:o.data.nm}),i.layer=i,i.pixelAspect=1,i.height=o.data.h||o.globalData.compSize.h,i.width=o.data.w||o.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/o.globalData.frameRate,i.displayStartTime=0,i.numLayers=o.layers.length,i}}();function _typeof$2(o){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(o)}function seedRandom(o,i){var a=this,t=256,r=6,e=52,n="random",s=i.pow(t,r),l=i.pow(2,e),h=l*2,p=t-1,H;function f(g,k,W){var R=[];k=k===!0?{entropy:!0}:k||{};var Q=q(v(k.entropy?[g,u(o)]:g===null?w():g,3),R),b=new y(R),S=function I(){var C=b.g(r),J=s,F=0;while(C<l)C=(C+F)*t,J*=t,F=b.g(1);while(C>=h)C/=2,J/=2,F>>>=1;return(C+F)/J};return S.int32=function(){return b.g(4)|0},S.quick=function(){return b.g(4)/4294967296},S.double=S,q(u(b.S),o),(k.pass||W||function(I,C,J,F){if(F){if(F.S)z(F,b);I.state=function(){return z(b,{})}}if(J)return i[n]=I,C;else return I})(S,Q,"global"in k?k.global:this==i,k.state)}i["seed"+n]=f;function y(g){var k,W=g.length,R=this,Q=0,b=R.i=R.j=0,S=R.S=[];if(!W)g=[W++];while(Q<t)S[Q]=Q++;for(Q=0;Q<t;Q++)S[Q]=S[b=p&b+g[Q%W]+(k=S[Q])],S[b]=k;R.g=function(I){var C,J=0,F=R.i,j=R.j,U=R.S;while(I--)C=U[F=p&F+1],J=J*t+U[p&(U[F]=U[j=p&j+C])+(U[j]=C)];return R.i=F,R.j=j,J}}function z(g,k){return k.i=g.i,k.j=g.j,k.S=g.S.slice(),k}function v(g,k){var W=[],R=_typeof$2(g),Q;if(k&&R=="object")for(Q in g)try{W.push(v(g[Q],k-1))}catch(b){}return W.length?W:R=="string"?g:g+"\x00"}function q(g,k){var W=g+"",R,Q=0;while(Q<W.length)k[p&Q]=p&(R^=k[p&Q]*19)+W.charCodeAt(Q++);return u(k)}function w(){try{if(H)return u(H.randomBytes(t));var g=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(g),u(g)}catch(R){var k=a.navigator,W=k&&k.plugins;return[+new Date,a,W,a.screen,u(o)]}}function u(g){return String.fromCharCode.apply(0,g)}q(i.random(),o)}function initialize$2(o){seedRandom([],o)}var propTypes={SHAPE:"shape"};function _typeof$1(o){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(o)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(o){return o.constructor===Array||o.constructor===Float32Array}function isNumerable(o,i){return o==="number"||i instanceof Number||o==="boolean"||o==="string"}function $bm_neg(o){var i=_typeof$1(o);if(i==="number"||o instanceof Number||i==="boolean")return-o;if($bm_isInstanceOfArray(o)){var a,t=o.length,r=[];for(a=0;a<t;a+=1)r[a]=-o[a];return r}if(o.propType)return o.v;return-o}var easeInBez=BezierFactory.getBezierEasing(0.333,0,0.833,0.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(0.167,0.167,0.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(0.33,0,0.667,1,"easeInOut").get;function sum(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)||a==="string"||t==="string")return o+i;if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]+=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o+i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]+i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}var add=sum;function sub(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)){if(a==="string")o=parseInt(o,10);if(t==="string")i=parseInt(i,10);return o-i}if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]-=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o-i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]-i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}function mul(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o*i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]*i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o*i[e];return r}return 0}function div(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o/i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]/i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o/i[e];return r}return 0}function mod(o,i){if(typeof o==="string")o=parseInt(o,10);if(typeof i==="string")i=parseInt(i,10);return o%i}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(o,i,a){if(i>a){var t=a;a=i,i=t}return Math.min(Math.max(o,i),a)}function radiansToDegrees(o){return o/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(o){return o*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(o,i){if(typeof o==="number"||o instanceof Number)return i=i||0,Math.abs(o-i);if(!i)i=helperLengthArray;var a,t=Math.min(o.length,i.length),r=0;for(a=0;a<t;a+=1)r+=Math.pow(i[a]-o[a],2);return Math.sqrt(r)}function normalize(o){return div(o,length(o))}function rgbToHsl(o){var i=o[0],a=o[1],t=o[2],r=Math.max(i,a,t),e=Math.min(i,a,t),n,s,l=(r+e)/2;if(r===e)n=0,s=0;else{var h=r-e;switch(s=l>0.5?h/(2-r-e):h/(r+e),r){case i:n=(a-t)/h+(a<t?6:0);break;case a:n=(t-i)/h+2;break;case t:n=(i-a)/h+4;break;default:break}n/=6}return[n,s,l,o[3]]}function hue2rgb(o,i,a){if(a<0)a+=1;if(a>1)a-=1;if(a<0.16666666666666666)return o+(i-o)*6*a;if(a<0.5)return i;if(a<0.6666666666666666)return o+(i-o)*(0.6666666666666666-a)*6;return o}function hslToRgb(o){var i=o[0],a=o[1],t=o[2],r,e,n;if(a===0)r=t,n=t,e=t;else{var s=t<0.5?t*(1+a):t+a-t*a,l=2*t-s;r=hue2rgb(l,s,i+0.3333333333333333),e=hue2rgb(l,s,i),n=hue2rgb(l,s,i-0.3333333333333333)}return[r,e,n,o[3]]}function linear(o,i,a,t,r){if(t===void 0||r===void 0)t=i,r=a,i=0,a=1;if(a<i){var e=a;a=i,i=e}if(o<=i)return t;if(o>=a)return r;var n=a===i?0:(o-i)/(a-i);if(!t.length)return t+(r-t)*n;var s,l=t.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=t[s]+(r[s]-t[s])*n;return h}function random(o,i){if(i===void 0)if(o===void 0)o=0,i=1;else i=o,o=void 0;if(i.length){var a,t=i.length;if(!o)o=createTypedArray("float32",t);var r=createTypedArray("float32",t),e=BMMath.random();for(a=0;a<t;a+=1)r[a]=o[a]+e*(i[a]-o[a]);return r}if(o===void 0)o=0;var n=BMMath.random();return o+n*(i-o)}function createPath(o,i,a,t){var r,e=o.length,n=shapePool.newElement();n.setPathData(!!t,e);var s=[0,0],l,h;for(r=0;r<e;r+=1)l=i&&i[r]?i[r]:s,h=a&&a[r]?a[r]:s,n.setTripleAt(o[r][0],o[r][1],h[0]+o[r][0],h[1]+o[r][1],l[0]+o[r][0],l[1]+o[r][1],r,!0);return n}function initiateExpression(elem,data,property){function noOp(o){return o}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function o(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function o(i,a){var t,r,e=this.pv.length?this.pv.length:1,n=createTypedArray("float32",e);i=5;var s=Math.floor(time*i);t=0,r=0;while(t<s){for(r=0;r<e;r+=1)n[r]+=-a+a*2*BMMath.random();t+=1}var l=time*i,h=l-Math.floor(l),p=createTypedArray("float32",e);if(e>1){for(r=0;r<e;r+=1)p[r]=this.pv[r]+n[r]+(-a+a*2*BMMath.random())*h;return p}return this.pv+n[0]+(-a+a*2*BMMath.random())*h}.bind(this);if(thisProperty.loopIn)loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn;if(thisProperty.loopOut)loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut;if(thisProperty.smooth)smooth=thisProperty.smooth.bind(thisProperty);function loopInDuration(o,i){return loopIn(o,i,!0)}function loopOutDuration(o,i){return loopOut(o,i,!0)}if(this.getValueAtTime)valueAtTime=this.getValueAtTime.bind(this);if(this.getVelocityAtTime)velocityAtTime=this.getVelocityAtTime.bind(this);var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(o,i){var a=[i[0]-o[0],i[1]-o[1],i[2]-o[2]],t=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads,r=-Math.atan2(a[1],a[2])/degToRads;return[r,t,0]}function easeOut(o,i,a,t,r){return applyEase(easeOutBez,o,i,a,t,r)}function easeIn(o,i,a,t,r){return applyEase(easeInBez,o,i,a,t,r)}function ease(o,i,a,t,r){return applyEase(easeInOutBez,o,i,a,t,r)}function applyEase(o,i,a,t,r,e){if(r===void 0)r=a,e=t;else i=(i-a)/(t-a);if(i>1)i=1;else if(i<0)i=0;var n=o(i);if($bm_isInstanceOfArray(r)){var s,l=r.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=(e[s]-r[s])*n+r[s];return h}return(e-r)*n+r}function nearestKey(o){var i,a=data.k.length,t,r;if(!data.k.length||typeof data.k[0]==="number")t=0,r=0;else if(t=-1,o*=elem.comp.globalData.frameRate,o<data.k[0].t)t=1,r=data.k[0].t;else{for(i=0;i<a-1;i+=1)if(o===data.k[i].t){t=i+1,r=data.k[i].t;break}else if(o>data.k[i].t&&o<data.k[i+1].t){if(o-data.k[i].t>data.k[i+1].t-o)t=i+2,r=data.k[i+1].t;else t=i+1,r=data.k[i].t;break}if(t===-1)t=i+1,r=data.k[i].t}var e={};return e.index=t,e.time=r/elem.comp.globalData.frameRate,e}function key(o){var i,a,t;if(!data.k.length||typeof data.k[0]==="number")throw new Error("The property has no keyframe at index "+o);o-=1,i={time:data.k[o].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[o],"s")?data.k[o].s:data.k[o-1].e;t=r.length;for(a=0;a<t;a+=1)i[a]=r[a],i.value[a]=r[a];return i}function framesToTime(o,i){if(!i)i=elem.comp.globalData.frameRate;return o/i}function timeToFrames(o,i){if(!o&&o!==0)o=time;if(!i)i=elem.comp.globalData.frameRate;return o*i}function seedRandom(o){BMMath.seedrandom(randSeed+o)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(o,i){if(typeof value==="string"){if(i===void 0)return value.substring(o);return value.substring(o,i)}return""}function substr(o,i){if(typeof value==="string"){if(i===void 0)return value.substr(o);return value.substr(o,i)}return""}function posterizeTime(o){time=o===0?0:Math.floor(time*o)/o,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(o){if(value=o,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector")return value;if(this.propType==="textSelector")textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue;if(!thisLayer)text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp;if(!transform){if(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform)anchorPoint=transform.anchorPoint}if(elemType===4&&!content)content=thisLayer("ADBE Root Vectors Group");if(!effect)effect=thisLayer(4);if(hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent)parent=elem.hierarchy[0].layerInterface;if(time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom)seedRandom(randSeed+time);if(needsVelocity)velocity=velocityAtTime(time);return expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var o={};o.initExpressions=i,o.resetFrame=ExpressionManager.resetFrame;function i(a){var t=0,r=[];function e(){t+=1}function n(){if(t-=1,t===0)l()}function s(h){if(r.indexOf(h)===-1)r.push(h)}function l(){var h,p=r.length;for(h=0;h<p;h+=1)r[h].release();r.length=0}a.renderer.compInterface=CompExpressionInterface(a.renderer),a.renderer.globalData.projectInterface.registerComposition(a.renderer),a.renderer.globalData.pushExpression=e,a.renderer.globalData.popExpression=n,a.renderer.globalData.registerExpressionProperty=s}return o}(),MaskManagerInterface=function(){function o(a,t){this._mask=a,this._data=t}Object.defineProperty(o.prototype,"maskPath",{get:function a(){if(this._mask.prop.k)this._mask.prop.getValue();return this._mask.prop}}),Object.defineProperty(o.prototype,"maskOpacity",{get:function a(){if(this._mask.op.k)this._mask.op.getValue();return this._mask.op.v*100}});var i=function a(t){var r=createSizedArray(t.viewData.length),e,n=t.viewData.length;for(e=0;e<n;e+=1)r[e]=new o(t.viewData[e],t.masksProperties[e]);var s=function l(h){e=0;while(e<n){if(t.masksProperties[e].nm===h)return r[e];e+=1}return null};return s};return i}(),ExpressionPropertyInterface=function(){var o={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function a(n,s,l){Object.defineProperty(n,"velocity",{get:function h(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(h){if(!n.numKeys)return 0;var p="";if("s"in s.keyframes[h-1])p=s.keyframes[h-1].s;else if("e"in s.keyframes[h-2])p=s.keyframes[h-2].e;else p=s.keyframes[h-2].s;var H=l==="unidimensional"?new Number(p):Object.assign({},p);return H.time=s.keyframes[h-1].t/s.elem.comp.globalData.frameRate,H.value=l==="unidimensional"?p[0]:p,H},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function t(n){if(!n||!("pv"in n))n=o;var s=1/n.mult,l=n.pv*s,h=new Number(l);return h.value=l,a(h,n,"unidimensional"),function(){if(n.k)n.getValue();if(l=n.v*s,h.value!==l)h=new Number(l),h.value=l,h[0]=l,a(h,n,"unidimensional");return h}}function r(n){if(!n||!("pv"in n))n=i;var s=1/n.mult,l=n.data&&n.data.l||n.pv.length,h=createTypedArray("float32",l),p=createTypedArray("float32",l);return h.value=p,a(h,n,"multidimensional"),function(){if(n.k)n.getValue();for(var H=0;H<l;H+=1)p[H]=n.v[H]*s,h[H]=p[H];return h}}function e(){return o}return function(n){if(!n)return e;if(n.propType==="unidimensional")return t(n);return r(n)}}(),TransformExpressionInterface=function(){return function(o){function i(n){switch(n){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(o.r||o.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(o.rz||o.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(o.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(o.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(o.s)});var a,t,r,e;if(o.p)e=ExpressionPropertyInterface(o.p);else if(a=ExpressionPropertyInterface(o.px),t=ExpressionPropertyInterface(o.py),o.pz)r=ExpressionPropertyInterface(o.pz);return Object.defineProperty(i,"position",{get:function n(){if(o.p)return e();return[a(),t(),r?r():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(o.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(o.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(o.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(o.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(o.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(o.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(o.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(o.or)}),i}}(),LayerExpressionInterface=function(){function o(h){var p=new Matrix;if(h!==void 0){var H=this._elem.finalTransform.mProp.getValueAtTime(h);H.clone(p)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(p)}return p}function i(h,p){var H=this.getMatrix(p);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.applyPoint(H,h)}function a(h,p){var H=this.getMatrix(p);return this.applyPoint(H,h)}function t(h,p){var H=this.getMatrix(p);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.invertPoint(H,h)}function r(h,p){var H=this.getMatrix(p);return this.invertPoint(H,h)}function e(h,p){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(p[0],p[1],p[2]||0)}function n(h,p){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(p)}function s(h){var p=new Matrix;if(p.reset(),this._elem.finalTransform.mProp.applyToMatrix(p),this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(p);return p.inversePoint(h)}return p.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var p;function H(v){y.mask=new MaskManagerInterface(v,h)}function f(v){y.effect=v}function y(v){switch(v){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=o,y.invertPoint=n,y.applyPoint=e,y.toWorld=a,y.toWorldVec=i,y.fromWorld=r,y.fromWorldVec=t,y.toComp=a,y.fromComp=s,y.sampleImage=l,y.sourceRectAtTime=h.sourceRectAtTime.bind(h),y._elem=h,p=TransformExpressionInterface(h.finalTransform.mProp);var z=getDescriptor(p,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function v(){return h.hierarchy.length}},parent:{get:function v(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function v(){return p}},active:{get:function v(){return h.isInRange}}}),y.startTime=h.data.st,y.index=h.data.ind,y.source=h.data.refId,y.height=h.data.ty===0?h.data.h:100,y.width=h.data.ty===0?h.data.w:100,y.inPoint=h.data.ip/h.comp.globalData.frameRate,y.outPoint=h.data.op/h.comp.globalData.frameRate,y._name=h.data.nm,y.registerMaskInterface=H,y.registerEffectsInterface=f,y}}(),propertyGroupFactory=function(){return function(o,i){return function(a){if(a=a===void 0?1:a,a<=0)return o;return i(a-1)}}}(),PropertyInterface=function(){return function(o,i){var a={_name:o};function t(r){if(r=r===void 0?1:r,r<=0)return a;return i(r-1)}return t}}(),EffectsExpressionInterface=function(){var o={createEffectsInterface:i};function i(r,e){if(r.effectsManager){var n=[],s=r.data.ef,l,h=r.effectsManager.effectElements.length;for(l=0;l<h;l+=1)n.push(a(s[l],r.effectsManager.effectElements[l],e,r));var p=r.data.ef||[],H=function f(y){l=0,h=p.length;while(l<h){if(y===p[l].nm||y===p[l].mn||y===p[l].ix)return n[l];l+=1}return null};return Object.defineProperty(H,"numProperties",{get:function f(){return p.length}}),H}return null}function a(r,e,n,s){function l(y){var z=r.ef,v=0,q=z.length;while(v<q){if(y===z[v].nm||y===z[v].mn||y===z[v].ix){if(z[v].ty===5)return p[v];return p[v]()}v+=1}throw new Error}var h=propertyGroupFactory(l,n),p=[],H,f=r.ef.length;for(H=0;H<f;H+=1)if(r.ef[H].ty===5)p.push(a(r.ef[H],e.effectElements[H],e.effectElements[H].propertyGroup,s));else p.push(t(e.effectElements[H],r.ef[H].ty,s,h));if(r.mn==="ADBE Color Control")Object.defineProperty(l,"color",{get:function y(){return p[0]()}});return Object.defineProperties(l,{numProperties:{get:function y(){return r.np}},_name:{value:r.nm},propertyGroup:{value:h}}),l.enabled=r.en!==0,l.active=l.enabled,l}function t(r,e,n,s){var l=ExpressionPropertyInterface(r.p);function h(){if(e===10)return n.comp.compInterface(r.p.v);return l()}if(r.p.setGroupProperty)r.p.setGroupProperty(PropertyInterface("",s));return h}return o}(),ShapePathInterface=function(){return function o(i,a,t){var r=a.sh;function e(s){if(s==="Shape"||s==="shape"||s==="Path"||s==="path"||s==="ADBE Vector Shape"||s===2)return e.path;return null}var n=propertyGroupFactory(e,t);return r.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(e,{path:{get:function s(){if(r.k)r.getValue();return r}},shape:{get:function s(){if(r.k)r.getValue();return r}},_name:{value:i.nm},ix:{value:i.ix},propertyIndex:{value:i.ix},mn:{value:i.mn},propertyGroup:{value:t}}),e}}(),ShapeExpressionInterface=function(){function o(z,v,q){var w=[],u,g=z?z.length:0;for(u=0;u<g;u+=1)if(z[u].ty==="gr")w.push(a(z[u],v[u],q));else if(z[u].ty==="fl")w.push(t(z[u],v[u],q));else if(z[u].ty==="st")w.push(n(z[u],v[u],q));else if(z[u].ty==="tm")w.push(s(z[u],v[u],q));else if(z[u].ty==="tr");else if(z[u].ty==="el")w.push(h(z[u],v[u],q));else if(z[u].ty==="sr")w.push(p(z[u],v[u],q));else if(z[u].ty==="sh")w.push(ShapePathInterface(z[u],v[u],q));else if(z[u].ty==="rc")w.push(H(z[u],v[u],q));else if(z[u].ty==="rd")w.push(f(z[u],v[u],q));else if(z[u].ty==="rp")w.push(y(z[u],v[u],q));else if(z[u].ty==="gf")w.push(r(z[u],v[u],q));else w.push(e(z[u],v[u],q));return w}function i(z,v,q){var w,u=function k(W){var R=0,Q=w.length;while(R<Q){if(w[R]._name===W||w[R].mn===W||w[R].propertyIndex===W||w[R].ix===W||w[R].ind===W)return w[R];R+=1}if(typeof W==="number")return w[W-1];return null};u.propertyGroup=propertyGroupFactory(u,q),w=o(z.it,v.it,u.propertyGroup),u.numProperties=w.length;var g=l(z.it[z.it.length-1],v.it[v.it.length-1],u.propertyGroup);return u.transform=g,u.propertyIndex=z.cix,u._name=z.nm,u}function a(z,v,q){var w=function k(W){switch(W){case"ADBE Vectors Group":case"Contents":case 2:return w.content;default:return w.transform}};w.propertyGroup=propertyGroupFactory(w,q);var u=i(z,v,w.propertyGroup),g=l(z.it[z.it.length-1],v.it[v.it.length-1],w.propertyGroup);return w.content=u,w.transform=g,Object.defineProperty(w,"_name",{get:function k(){return z.nm}}),w.numProperties=z.np,w.propertyIndex=z.ix,w.nm=z.nm,w.mn=z.mn,w}function t(z,v,q){function w(u){if(u==="Color"||u==="color")return w.color;if(u==="Opacity"||u==="opacity")return w.opacity;return null}return Object.defineProperties(w,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",q)),v.o.setGroupProperty(PropertyInterface("Opacity",q)),w}function r(z,v,q){function w(u){if(u==="Start Point"||u==="start point")return w.startPoint;if(u==="End Point"||u==="end point")return w.endPoint;if(u==="Opacity"||u==="opacity")return w.opacity;return null}return Object.defineProperties(w,{startPoint:{get:ExpressionPropertyInterface(v.s)},endPoint:{get:ExpressionPropertyInterface(v.e)},opacity:{get:ExpressionPropertyInterface(v.o)},type:{get:function u(){return"a"}},_name:{value:z.nm},mn:{value:z.mn}}),v.s.setGroupProperty(PropertyInterface("Start Point",q)),v.e.setGroupProperty(PropertyInterface("End Point",q)),v.o.setGroupProperty(PropertyInterface("Opacity",q)),w}function e(){function z(){return null}return z}function n(z,v,q){var w=propertyGroupFactory(Q,q),u=propertyGroupFactory(R,w);function g(b){Object.defineProperty(R,z.d[b].nm,{get:ExpressionPropertyInterface(v.d.dataProps[b].p)})}var k,W=z.d?z.d.length:0,R={};for(k=0;k<W;k+=1)g(k),v.d.dataProps[k].p.setGroupProperty(u);function Q(b){if(b==="Color"||b==="color")return Q.color;if(b==="Opacity"||b==="opacity")return Q.opacity;if(b==="Stroke Width"||b==="stroke width")return Q.strokeWidth;return null}return Object.defineProperties(Q,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},strokeWidth:{get:ExpressionPropertyInterface(v.w)},dash:{get:function b(){return R}},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",w)),v.o.setGroupProperty(PropertyInterface("Opacity",w)),v.w.setGroupProperty(PropertyInterface("Stroke Width",w)),Q}function s(z,v,q){function w(g){if(g===z.e.ix||g==="End"||g==="end")return w.end;if(g===z.s.ix)return w.start;if(g===z.o.ix)return w.offset;return null}var u=propertyGroupFactory(w,q);return w.propertyIndex=z.ix,v.s.setGroupProperty(PropertyInterface("Start",u)),v.e.setGroupProperty(PropertyInterface("End",u)),v.o.setGroupProperty(PropertyInterface("Offset",u)),w.propertyIndex=z.ix,w.propertyGroup=q,Object.defineProperties(w,{start:{get:ExpressionPropertyInterface(v.s)},end:{get:ExpressionPropertyInterface(v.e)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm}}),w.mn=z.mn,w}function l(z,v,q){function w(g){if(z.a.ix===g||g==="Anchor Point")return w.anchorPoint;if(z.o.ix===g||g==="Opacity")return w.opacity;if(z.p.ix===g||g==="Position")return w.position;if(z.r.ix===g||g==="Rotation"||g==="ADBE Vector Rotation")return w.rotation;if(z.s.ix===g||g==="Scale")return w.scale;if(z.sk&&z.sk.ix===g||g==="Skew")return w.skew;if(z.sa&&z.sa.ix===g||g==="Skew Axis")return w.skewAxis;return null}var u=propertyGroupFactory(w,q);if(v.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",u)),v.transform.mProps.p.setGroupProperty(PropertyInterface("Position",u)),v.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",u)),v.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",u)),v.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",u)),v.transform.mProps.sk)v.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",u)),v.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",u));return v.transform.op.setGroupProperty(PropertyInterface("Opacity",u)),Object.defineProperties(w,{opacity:{get:ExpressionPropertyInterface(v.transform.mProps.o)},position:{get:ExpressionPropertyInterface(v.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(v.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(v.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(v.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(v.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(v.transform.mProps.sa)},_name:{value:z.nm}}),w.ty="tr",w.mn=z.mn,w.propertyGroup=q,w}function h(z,v,q){function w(k){if(z.p.ix===k)return w.position;if(z.s.ix===k)return w.size;return null}var u=propertyGroupFactory(w,q);w.propertyIndex=z.ix;var g=v.sh.ty==="tm"?v.sh.prop:v.sh;return g.s.setGroupProperty(PropertyInterface("Size",u)),g.p.setGroupProperty(PropertyInterface("Position",u)),Object.defineProperties(w,{size:{get:ExpressionPropertyInterface(g.s)},position:{get:ExpressionPropertyInterface(g.p)},_name:{value:z.nm}}),w.mn=z.mn,w}function p(z,v,q){function w(k){if(z.p.ix===k)return w.position;if(z.r.ix===k)return w.rotation;if(z.pt.ix===k)return w.points;if(z.or.ix===k||k==="ADBE Vector Star Outer Radius")return w.outerRadius;if(z.os.ix===k)return w.outerRoundness;if(z.ir&&(z.ir.ix===k||k==="ADBE Vector Star Inner Radius"))return w.innerRadius;if(z.is&&z.is.ix===k)return w.innerRoundness;return null}var u=propertyGroupFactory(w,q),g=v.sh.ty==="tm"?v.sh.prop:v.sh;if(w.propertyIndex=z.ix,g.or.setGroupProperty(PropertyInterface("Outer Radius",u)),g.os.setGroupProperty(PropertyInterface("Outer Roundness",u)),g.pt.setGroupProperty(PropertyInterface("Points",u)),g.p.setGroupProperty(PropertyInterface("Position",u)),g.r.setGroupProperty(PropertyInterface("Rotation",u)),z.ir)g.ir.setGroupProperty(PropertyInterface("Inner Radius",u)),g.is.setGroupProperty(PropertyInterface("Inner Roundness",u));return Object.defineProperties(w,{position:{get:ExpressionPropertyInterface(g.p)},rotation:{get:ExpressionPropertyInterface(g.r)},points:{get:ExpressionPropertyInterface(g.pt)},outerRadius:{get:ExpressionPropertyInterface(g.or)},outerRoundness:{get:ExpressionPropertyInterface(g.os)},innerRadius:{get:ExpressionPropertyInterface(g.ir)},innerRoundness:{get:ExpressionPropertyInterface(g.is)},_name:{value:z.nm}}),w.mn=z.mn,w}function H(z,v,q){function w(k){if(z.p.ix===k)return w.position;if(z.r.ix===k)return w.roundness;if(z.s.ix===k||k==="Size"||k==="ADBE Vector Rect Size")return w.size;return null}var u=propertyGroupFactory(w,q),g=v.sh.ty==="tm"?v.sh.prop:v.sh;return w.propertyIndex=z.ix,g.p.setGroupProperty(PropertyInterface("Position",u)),g.s.setGroupProperty(PropertyInterface("Size",u)),g.r.setGroupProperty(PropertyInterface("Rotation",u)),Object.defineProperties(w,{position:{get:ExpressionPropertyInterface(g.p)},roundness:{get:ExpressionPropertyInterface(g.r)},size:{get:ExpressionPropertyInterface(g.s)},_name:{value:z.nm}}),w.mn=z.mn,w}function f(z,v,q){function w(k){if(z.r.ix===k||k==="Round Corners 1")return w.radius;return null}var u=propertyGroupFactory(w,q),g=v;return w.propertyIndex=z.ix,g.rd.setGroupProperty(PropertyInterface("Radius",u)),Object.defineProperties(w,{radius:{get:ExpressionPropertyInterface(g.rd)},_name:{value:z.nm}}),w.mn=z.mn,w}function y(z,v,q){function w(k){if(z.c.ix===k||k==="Copies")return w.copies;if(z.o.ix===k||k==="Offset")return w.offset;return null}var u=propertyGroupFactory(w,q),g=v;return w.propertyIndex=z.ix,g.c.setGroupProperty(PropertyInterface("Copies",u)),g.o.setGroupProperty(PropertyInterface("Offset",u)),Object.defineProperties(w,{copies:{get:ExpressionPropertyInterface(g.c)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:z.nm}}),w.mn=z.mn,w}return function(z,v,q){var w;function u(k){if(typeof k==="number"){if(k=k===void 0?1:k,k===0)return q;return w[k-1]}var W=0,R=w.length;while(W<R){if(w[W]._name===k)return w[W];W+=1}return null}function g(){return q}return u.propertyGroup=propertyGroupFactory(u,g),w=o(z,v,u.propertyGroup),u.numProperties=w.length,u._name="Contents",u}}(),TextExpressionInterface=function(){return function(o){var i;function a(t){switch(t){case"ADBE Text Document":return a.sourceText;default:return null}}return Object.defineProperty(a,"sourceText",{get:function t(){o.textProperty.getValue();var r=o.textProperty.currentData.t;if(!i||r!==i.value)i=new String(r),i.value=r||new String(r),Object.defineProperty(i,"style",{get:function e(){return{fillColor:o.textProperty.currentData.fc}}});return i}}),a}}();function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(o)}var FootageInterface=function(){var o=function a(t){var r="",e=t.getFootageData();function n(){return r="",e=t.getFootageData(),s}function s(l){if(e[l]){if(r=l,e=e[l],_typeof(e)==="object")return s;return e}var h=l.indexOf(r);if(h!==-1){var p=parseInt(l.substr(h+r.length),10);if(e=e[p],_typeof(e)==="object")return s;return e}return""}return n},i=function a(t){function r(e){if(e==="Outline")return r.outlineInterface();return null}return r._name="Outline",r.outlineInterface=o(t),r};return function(a){function t(r){if(r==="Data")return t.dataInterface;return null}return t._name="Data",t.dataInterface=i(a),t}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(o){return interfaces[o]||null}var expressionHelpers=function(){function o(n,s,l){if(s.x)l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(n,s,l).bind(l))}function i(n){if(n*=this.elem.globalData.frameRate,n-=this.offsetTime,n!==this._cachingAtTime.lastFrame)this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<n?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(n,this._cachingAtTime),this._cachingAtTime.lastFrame=n;return this._cachingAtTime.value}function a(n){var s=-0.01,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),p=0;if(l.length){var H;for(H=0;H<l.length;H+=1)p+=Math.pow(h[H]-l[H],2);p=Math.sqrt(p)*100}else p=0;return p}function t(n){if(this.vel!==void 0)return this.vel;var s=-0.001,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),p;if(l.length){p=createTypedArray("float32",l.length);var H;for(H=0;H<l.length;H+=1)p[H]=(h[H]-l[H])/s}else p=(h-l)/s;return p}function r(){return this.pv}function e(n){this.propertyGroup=n}return{searchExpressions:o,getSpeedAtTime:a,getVelocityAtTime:t,getValueAtTime:i,getStaticValueAtTime:r,setGroupProperty:e}}();function addPropertyDecorator(){function o(f,y,z){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var v=this.comp.renderedFrame,q=this.keyframes,w=q[q.length-1].t;if(v<=w)return this.pv;var u,g;if(!z){if(!y||y>q.length-1)y=q.length-1;g=q[q.length-1-y].t,u=w-g}else{if(!y)u=Math.max(0,w-this.elem.data.ip);else u=Math.abs(w-this.elem.comp.globalData.frameRate*y);g=w-u}var k,W,R;if(f==="pingpong"){var Q=Math.floor((v-g)/u);if(Q%2!==0)return this.getValueAtTime((u-(v-g)%u+g)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var b=this.getValueAtTime(g/this.comp.globalData.frameRate,0),S=this.getValueAtTime(w/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((v-g)%u+g)/this.comp.globalData.frameRate,0),C=Math.floor((v-g)/u);if(this.pv.length){R=new Array(b.length),W=R.length;for(k=0;k<W;k+=1)R[k]=(S[k]-b[k])*C+I[k];return R}return(S-b)*C+I}else if(f==="continue"){var J=this.getValueAtTime(w/this.comp.globalData.frameRate,0),F=this.getValueAtTime((w-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){R=new Array(J.length),W=R.length;for(k=0;k<W;k+=1)R[k]=J[k]+(J[k]-F[k])*((v-w)/this.comp.globalData.frameRate)/0.0005;return R}return J+(J-F)*((v-w)/0.001)}return this.getValueAtTime(((v-g)%u+g)/this.comp.globalData.frameRate,0)}function i(f,y,z){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var v=this.comp.renderedFrame,q=this.keyframes,w=q[0].t;if(v>=w)return this.pv;var u,g;if(!z){if(!y||y>q.length-1)y=q.length-1;g=q[y].t,u=g-w}else{if(!y)u=Math.max(0,this.elem.data.op-w);else u=Math.abs(this.elem.comp.globalData.frameRate*y);g=w+u}var k,W,R;if(f==="pingpong"){var Q=Math.floor((w-v)/u);if(Q%2===0)return this.getValueAtTime(((w-v)%u+w)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var b=this.getValueAtTime(w/this.comp.globalData.frameRate,0),S=this.getValueAtTime(g/this.comp.globalData.frameRate,0),I=this.getValueAtTime((u-(w-v)%u+w)/this.comp.globalData.frameRate,0),C=Math.floor((w-v)/u)+1;if(this.pv.length){R=new Array(b.length),W=R.length;for(k=0;k<W;k+=1)R[k]=I[k]-(S[k]-b[k])*C;return R}return I-(S-b)*C}else if(f==="continue"){var J=this.getValueAtTime(w/this.comp.globalData.frameRate,0),F=this.getValueAtTime((w+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){R=new Array(J.length),W=R.length;for(k=0;k<W;k+=1)R[k]=J[k]+(J[k]-F[k])*(w-v)/0.001;return R}return J+(J-F)*(w-v)/0.001}return this.getValueAtTime((u-((w-v)%u+w))/this.comp.globalData.frameRate,0)}function a(f,y){if(!this.k)return this.pv;if(f=(f||0.4)*0.5,y=Math.floor(y||5),y<=1)return this.pv;var z=this.comp.renderedFrame/this.comp.globalData.frameRate,v=z-f,q=z+f,w=y>1?(q-v)/(y-1):1,u=0,g=0,k;if(this.pv.length)k=createTypedArray("float32",this.pv.length);else k=0;var W;while(u<y){if(W=this.getValueAtTime(v+u*w),this.pv.length)for(g=0;g<this.pv.length;g+=1)k[g]+=W[g];else k+=W;u+=1}if(this.pv.length)for(g=0;g<this.pv.length;g+=1)k[g]/=y;else k/=y;return k}function t(f){if(!this._transformCachingAtTime)this._transformCachingAtTime={v:new Matrix};var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var z=this.a.getValueAtTime(f);y.translate(-z[0]*this.a.mult,-z[1]*this.a.mult,z[2]*this.a.mult)}if(this.appliedTransformations<2){var v=this.s.getValueAtTime(f);y.scale(v[0]*this.s.mult,v[1]*this.s.mult,v[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var q=this.sk.getValueAtTime(f),w=this.sa.getValueAtTime(f);y.skewFromAxis(-q*this.sk.mult,w*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var u=this.r.getValueAtTime(f);y.rotate(-u*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var g=this.rz.getValueAtTime(f),k=this.ry.getValueAtTime(f),W=this.rx.getValueAtTime(f),R=this.or.getValueAtTime(f);y.rotateZ(-g*this.rz.mult).rotateY(k*this.ry.mult).rotateX(W*this.rx.mult).rotateZ(-R[2]*this.or.mult).rotateY(R[1]*this.or.mult).rotateX(R[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Q=this.px.getValueAtTime(f),b=this.py.getValueAtTime(f);if(this.data.p.z){var S=this.pz.getValueAtTime(f);y.translate(Q*this.px.mult,b*this.py.mult,-S*this.pz.mult)}else y.translate(Q*this.px.mult,b*this.py.mult,0)}else{var I=this.p.getValueAtTime(f);y.translate(I[0]*this.p.mult,I[1]*this.p.mult,-I[2]*this.p.mult)}return y}function r(){return this.v.clone(new Matrix)}var e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,z){var v=e(f,y,z);if(v.dynamicProperties.length)v.getValueAtTime=t.bind(v);else v.getValueAtTime=r.bind(v);return v.setGroupProperty=expressionHelpers.setGroupProperty,v};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,z,v,q){var w=n(f,y,z,v,q);if(w.kf)w.getValueAtTime=expressionHelpers.getValueAtTime.bind(w);else w.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(w);w.setGroupProperty=expressionHelpers.setGroupProperty,w.loopOut=o,w.loopIn=i,w.smooth=a,w.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(w),w.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(w),w.numKeys=y.a===1?y.k.length:0,w.propertyIndex=y.ix;var u=0;if(z!==0)u=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length);if(w._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(f,y,w),w.k)q.addDynamicProperty(w);return w};function s(f){if(!this._cachingAtTime)this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame};if(f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime)this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime);return this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function f(y,z){if(this.k)this.getValue();var v=this.v;if(z!==void 0)v=this.getValueAtTime(z,0);var q,w=v._length,u=v[y],g=v.v,k=createSizedArray(w);for(q=0;q<w;q+=1)if(y==="i"||y==="o")k[q]=[u[q][0]-g[q][0],u[q][1]-g[q][1]];else k[q]=[u[q][0],u[q][1]];return k},points:function f(y){return this.vertices("v",y)},inTangents:function f(y){return this.vertices("i",y)},outTangents:function f(y){return this.vertices("o",y)},isClosed:function f(){return this.v.c},pointOnPath:function f(y,z){var v=this.v;if(z!==void 0)v=this.getValueAtTime(z,0);if(!this._segmentsLength)this._segmentsLength=bez.getSegmentsLength(v);var q=this._segmentsLength,w=q.lengths,u=q.totalLength*y,g=0,k=w.length,W=0,R;while(g<k){if(W+w[g].addedLength>u){var Q=g,b=v.c&&g===k-1?0:g+1,S=(u-W)/w[g].addedLength;R=bez.getPointInSegment(v.v[Q],v.v[b],v.o[Q],v.i[b],S,w[g]);break}else W+=w[g].addedLength;g+=1}if(!R)R=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]];return R},vectorOnPath:function f(y,z,v){if(y==1)y=this.v.c;else if(y==0)y=0.999;var q=this.pointOnPath(y,z),w=this.pointOnPath(y+0.001,z),u=w[0]-q[0],g=w[1]-q[1],k=Math.sqrt(Math.pow(u,2)+Math.pow(g,2));if(k===0)return[0,0];var W=v==="tangent"?[u/k,g/k]:[-g/k,u/k];return W},tangentOnPath:function f(y,z){return this.vectorOnPath(y,z,"tangent")},normalOnPath:function f(y,z){return this.vectorOnPath(y,z,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],l),extendPrototype([p],h),h.prototype.getValueAtTime=s,h.prototype.initiateExpression=ExpressionManager.initiateExpression;var H=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,z,v,q){var w=H(f,y,z,v,q);if(w.propertyIndex=y.ix,w.lock=!1,z===3)expressionHelpers.searchExpressions(f,y.pt,w);else if(z===4)expressionHelpers.searchExpressions(f,y.ks,w);if(w.k)f.addDynamicProperty(w);return w}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function o(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0;return null}TextProperty.prototype.getExpressionValue=function(i,a){var t=this.calculateExpression(a);if(i.t!==t){var r={};return this.copyData(r,i),r.t=t.toString(),r.__complete=!1,r}return i},TextProperty.prototype.searchProperty=function(){var i=this.searchKeyframes(),a=this.searchExpressions();return this.kf=i||a,this.kf},TextProperty.prototype.searchExpressions=o}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function o(i,a){var t=createNS("feMerge");t.setAttribute("result",i);var r,e;for(e=0;e<a.length;e+=1)r=createNS("feMergeNode"),r.setAttribute("in",a[e]),t.appendChild(r),t.appendChild(r);return t}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(o,i,a,t,r){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=e,e.setAttribute("result",t+"_tint_1"),o.appendChild(e),e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",t+"_tint_2"),o.appendChild(e),this.matrixFilter=e;var n=this.createMergeNode(t,[r,t+"_tint_1",t+"_tint_2"]);o.appendChild(n)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+t+" 0"),this.matrixFilter.setAttribute("values",a[0]-i[0]+" 0 0 0 "+i[0]+" "+(a[1]-i[1])+" 0 0 0 "+i[1]+" "+(a[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 1 0")}};function SVGFillFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",t),o.appendChild(r),this.matrixFilter=r}SVGFillFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v,a=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+a+" 0")}};function SVGStrokeEffect(o,i,a){this.initialized=!1,this.filterManager=i,this.elem=a,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var o=this.elem.layerElement.children||this.elem.layerElement.childNodes,i,a,t,r;if(this.filterManager.effectElements[1].p.v===1)r=this.elem.maskManager.masksProperties.length,t=0;else t=this.filterManager.effectElements[0].p.v-1,r=t+1;a=createNS("g"),a.setAttribute("fill","none"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-dashoffset",1);for(t;t<r;t+=1)i=createNS("path"),a.appendChild(i),this.paths.push({p:i,m:t});if(this.filterManager.effectElements[10].p.v===3){var e=createNS("mask"),n=createElementID();e.setAttribute("id",n),e.setAttribute("mask-type","alpha"),e.appendChild(a),this.elem.globalData.defs.appendChild(e);var s=createNS("g");s.setAttribute("mask","url("+getLocationHref()+"#"+n+")");while(o[0])s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=e,a.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){o=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(o.length)this.elem.layerElement.removeChild(o[0])}this.elem.layerElement.appendChild(a),this.elem.layerElement.removeAttribute("mask"),a.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=a},SVGStrokeEffect.prototype.renderFrame=function(o){if(!this.initialized)this.initialize();var i,a=this.paths.length,t,r;for(i=0;i<a;i+=1)if(this.paths[i].m!==-1){if(t=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,o||this.filterManager._mdf||t.prop._mdf)r.setAttribute("d",t.lastPath);if(o||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||t.prop._mdf){var e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,l=r.getTotalLength();e="0 0 0 "+l*n+" ";var h=l*(s-n),p=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01,H=Math.floor(h/p),f;for(f=0;f<H;f+=1)e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01+" ";e+="0 "+l*10+" 0 0"}else e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01;r.setAttribute("stroke-dasharray",e)}}if(o||this.filterManager.effectElements[4].p._mdf)this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2);if(o||this.filterManager.effectElements[6].p._mdf)this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v);if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(o||this.filterManager.effectElements[3].p._mdf){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}}};function SVGTritoneFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.appendChild(r);var e=createNS("feComponentTransfer");e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),this.matrixFilter=e;var n=createNS("feFuncR");n.setAttribute("type","table"),e.appendChild(n),this.feFuncR=n;var s=createNS("feFuncG");s.setAttribute("type","table"),e.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),e.appendChild(l),this.feFuncB=l,o.appendChild(e)}SVGTritoneFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v,r=t[0]+" "+a[0]+" "+i[0],e=t[1]+" "+a[1]+" "+i[1],n=t[2]+" "+a[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",e),this.feFuncB.setAttribute("tableValues",n)}};function SVGProLevelsFilter(o,i,a,t){this.filterManager=i;var r=this.filterManager.effectElements,e=createNS("feComponentTransfer");if(r[10].p.k||r[10].p.v!==0||r[11].p.k||r[11].p.v!==1||r[12].p.k||r[12].p.v!==1||r[13].p.k||r[13].p.v!==0||r[14].p.k||r[14].p.v!==1)this.feFuncR=this.createFeFunc("feFuncR",e);if(r[17].p.k||r[17].p.v!==0||r[18].p.k||r[18].p.v!==1||r[19].p.k||r[19].p.v!==1||r[20].p.k||r[20].p.v!==0||r[21].p.k||r[21].p.v!==1)this.feFuncG=this.createFeFunc("feFuncG",e);if(r[24].p.k||r[24].p.v!==0||r[25].p.k||r[25].p.v!==1||r[26].p.k||r[26].p.v!==1||r[27].p.k||r[27].p.v!==0||r[28].p.k||r[28].p.v!==1)this.feFuncB=this.createFeFunc("feFuncB",e);if(r[31].p.k||r[31].p.v!==0||r[32].p.k||r[32].p.v!==1||r[33].p.k||r[33].p.v!==1||r[34].p.k||r[34].p.v!==0||r[35].p.k||r[35].p.v!==1)this.feFuncA=this.createFeFunc("feFuncA",e);if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)e.setAttribute("color-interpolation-filters","sRGB"),o.appendChild(e);if(r[3].p.k||r[3].p.v!==0||r[4].p.k||r[4].p.v!==1||r[5].p.k||r[5].p.v!==1||r[6].p.k||r[6].p.v!==0||r[7].p.k||r[7].p.v!==1)e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),o.appendChild(e),this.feFuncRComposed=this.createFeFunc("feFuncR",e),this.feFuncGComposed=this.createFeFunc("feFuncG",e),this.feFuncBComposed=this.createFeFunc("feFuncB",e)}SVGProLevelsFilter.prototype.createFeFunc=function(o,i){var a=createNS(o);return a.setAttribute("type","table"),i.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(o,i,a,t,r){var e=0,n=256,s,l=Math.min(o,i),h=Math.max(o,i),p=Array.call(null,{length:n}),H,f=0,y=r-t,z=i-o;while(e<=256){if(s=e/256,s<=l)H=z<0?r:t;else if(s>=h)H=z<0?t:r;else H=t+y*Math.pow((s-o)/z,1/a);p[f]=H,f+=1,e+=256/(n-1)}return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i,a=this.filterManager.effectElements;if(this.feFuncRComposed&&(o||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf))i=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i);if(this.feFuncR&&(o||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf))i=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",i);if(this.feFuncG&&(o||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf))i=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",i);if(this.feFuncB&&(o||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf))i=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",i);if(this.feFuncA&&(o||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf))i=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",i)}};function SVGDropShadowEffect(o,i,a,t,r){var e=i.container.globalData.renderConfig.filterSize,n=i.data.fs||e;o.setAttribute("x",n.x||e.x),o.setAttribute("y",n.y||e.y),o.setAttribute("width",n.width||e.width),o.setAttribute("height",n.height||e.height),this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",t+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,o.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",t+"_drop_shadow_1"),l.setAttribute("result",t+"_drop_shadow_2"),this.feOffset=l,o.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",t+"_drop_shadow_3"),this.feFlood=h,o.appendChild(h);var p=createNS("feComposite");p.setAttribute("in",t+"_drop_shadow_3"),p.setAttribute("in2",t+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(p);var H=this.createMergeNode(t,[t+"_drop_shadow_4",r]);o.appendChild(H)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){if(o||this.filterManager.effectElements[4].p._mdf)this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4);if(o||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(i[0]*255),Math.round(i[1]*255),Math.round(i[2]*255)))}if(o||this.filterManager.effectElements[1].p._mdf)this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255);if(o||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=a*Math.cos(t),e=a*Math.sin(t);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(o,i,a){this.initialized=!1,this.filterManager=i,this.filterElem=o,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}SVGMatte3Effect.prototype.findSymbol=function(o){var i=0,a=_svgMatteSymbols.length;while(i<a){if(_svgMatteSymbols[i]===o)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(o,i){var a=o.layerElement.parentNode;if(!a)return;var t=a.children,r=0,e=t.length;while(r<e){if(t[r]===o.layerElement)break;r+=1}var n;if(r<=e-2)n=t[r+1];var s=createNS("use");if(s.setAttribute("href","#"+i),n)a.insertBefore(s,n);else a.appendChild(s)},SVGMatte3Effect.prototype.setElementAsMask=function(o,i){if(!this.findSymbol(i)){var a=createElementID(),t=createNS("mask");t.setAttribute("id",i.layerId),t.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var r=o.globalData.defs;r.appendChild(t);var e=createNS("symbol");e.setAttribute("id",a),this.replaceInParent(i,a),e.appendChild(i.layerElement),r.appendChild(e);var n=createNS("use");n.setAttribute("href","#"+a),t.appendChild(n),i.data.hd=!1,i.show()}o.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){var o=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,a=0,t=i.length;while(a<t){if(i[a]&&i[a].data.ind===o)this.setElementAsMask(this.elem,i[a]);a+=1}this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized)this.initialize()};function SVGGaussianBlurEffect(o,i,a,t){o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width","300%"),o.setAttribute("height","300%"),this.filterManager=i;var r=createNS("feGaussianBlur");r.setAttribute("result",t),o.appendChild(r),this.feGaussianBlur=r}SVGGaussianBlurEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=0.3,a=this.filterManager.effectElements[0].p.v*i,t=this.filterManager.effectElements[1].p.v,r=t==3?0:a,e=t==2?0:a;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+e);var n=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}};function TransformEffect(){}TransformEffect.prototype.init=function(o){this.effectsManager=o,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(o){if(this._opMdf=!1,this._mdf=!1,o||this.effectsManager._mdf){var i=this.effectsManager.effectElements,a=i[0].p.v,t=i[1].p.v,r=i[2].p.v===1,e=i[3].p.v,n=r?e:i[4].p.v,s=i[5].p.v,l=i[6].p.v,h=i[7].p.v;if(this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(n*0.01,e*0.01,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(t[0],t[1],0),this._mdf=!0,this.opacity!==i[8].p.v)this.opacity=i[8].p.v,this._opMdf=!0}};function SVGTransformEffect(o,i){this.init(i)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(o){this.init(o)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});class ki extends Event{constructor(o,i,a,t){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i,this.callback=a,this.subscribe=t??!1}}function ei(o){return o}class wo{constructor(o,i,a,t){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,e)),this.unsubscribe=e},this.host=o,i.context!==void 0){let r=i;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=i,this.callback=a,this.subscribe=t??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ki(this.context,this.host,this.t,this.subscribe))}}class La{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,i=!1){let a=i||!Object.is(o,this.o);this.o=o,a&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:a}]of this.subscriptions)i(this.o,a)},o!==void 0&&(this.value=o)}addCallback(o,i,a){if(!a)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:i});let{disposer:t}=this.subscriptions.get(o);o(this.value,t)}clearCallbacks(){this.subscriptions.clear()}}class Ur extends Event{constructor(o,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i}}class xi extends La{constructor(o,i,a){super(i.context!==void 0?i.initialValue:a),this.onContextRequest=(t)=>{if(t.context!==this.context)return;let r=t.contextTarget??t.composedPath()[0];r!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,r,t.subscribe))},this.onProviderRequest=(t)=>{if(t.context!==this.context)return;if((t.contextTarget??t.composedPath()[0])===this.host)return;let r=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)r.has(e)||(r.add(e),n.dispatchEvent(new ki(this.context,n,e,!0)));t.stopPropagation()},this.host=o,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ur(this.context,this.host))}}function ro({context:o,subscribe:i}){return(a,t)=>{typeof t=="object"?t.addInitializer(function(){new wo(this,{context:o,callback:(r)=>{a.set.call(this,r)},subscribe:i})}):a.constructor.addInitializer((r)=>{new wo(r,{context:o,callback:(e)=>{r[t]=e},subscribe:i})})}}var Nn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Oa=Math.ceil,jo=Math.floor,Yo="[BigNumber Error] ",Rr=Yo+"Number primitive has more than 15 significant digits: ",Go=100000000000000,no=14,_a=9007199254740991,Xa=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],fi=1e7,So=1e9;function Ir(o){var i,a,t,r=u.prototype={constructor:u,toString:null,valueOf:null},e=new u(1),n=20,s=4,l=-7,h=21,p=-1e7,H=1e7,f=!1,y=1,z=0,v={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz",w=!0;function u(b,S){var I,C,J,F,j,U,x,K,c=this;if(!(c instanceof u))return new u(b,S);if(S==null){if(b&&b._isBigNumber===!0){if(c.s=b.s,!b.c||b.e>H)c.c=c.e=null;else if(b.e<p)c.c=[c.e=0];else c.e=b.e,c.c=b.c.slice();return}if((U=typeof b=="number")&&b*0==0){if(c.s=1/b<0?(b=-b,-1):1,b===~~b){for(F=0,j=b;j>=10;j/=10,F++);if(F>H)c.c=c.e=null;else c.e=F,c.c=[b];return}K=String(b)}else{if(!Nn.test(K=String(b)))return t(c,K,U);c.s=K.charCodeAt(0)==45?(K=K.slice(1),-1):1}if((F=K.indexOf("."))>-1)K=K.replace(".","");if((j=K.search(/e/i))>0){if(F<0)F=j;F+=+K.slice(j+1),K=K.substring(0,j)}else if(F<0)F=K.length}else{if(ko(S,2,q.length,"Base"),S==10&&w)return c=new u(b),R(c,n+c.e+1,s);if(K=String(b),U=typeof b=="number"){if(b*0!=0)return t(c,K,U,S);if(c.s=1/b<0?(K=K.slice(1),-1):1,u.DEBUG&&K.replace(/^0\.0*|\./,"").length>15)throw Error(Rr+b)}else c.s=K.charCodeAt(0)===45?(K=K.slice(1),-1):1;I=q.slice(0,S),F=j=0;for(x=K.length;j<x;j++)if(I.indexOf(C=K.charAt(j))<0){if(C=="."){if(j>F){F=x;continue}}else if(!J){if(K==K.toUpperCase()&&(K=K.toLowerCase())||K==K.toLowerCase()&&(K=K.toUpperCase())){J=!0,j=-1,F=0;continue}}return t(c,String(b),U,S)}if(U=!1,K=a(K,S,10,c.s),(F=K.indexOf("."))>-1)K=K.replace(".","");else F=K.length}for(j=0;K.charCodeAt(j)===48;j++);for(x=K.length;K.charCodeAt(--x)===48;);if(K=K.slice(j,++x)){if(x-=j,U&&u.DEBUG&&x>15&&(b>_a||b!==jo(b)))throw Error(Rr+c.s*b);if((F=F-j-1)>H)c.c=c.e=null;else if(F<p)c.c=[c.e=0];else{if(c.e=F,c.c=[],j=(F+1)%no,F<0)j+=no;if(j<x){if(j)c.c.push(+K.slice(0,j));for(x-=no;j<x;)c.c.push(+K.slice(j,j+=no));j=no-(K=K.slice(j)).length}else j-=x;for(;j--;K+="0");c.c.push(+K)}}else c.c=[c.e=0]}u.clone=Ir,u.ROUND_UP=0,u.ROUND_DOWN=1,u.ROUND_CEIL=2,u.ROUND_FLOOR=3,u.ROUND_HALF_UP=4,u.ROUND_HALF_DOWN=5,u.ROUND_HALF_EVEN=6,u.ROUND_HALF_CEIL=7,u.ROUND_HALF_FLOOR=8,u.EUCLID=9,u.config=u.set=function(b){var S,I;if(b!=null)if(typeof b=="object"){if(b.hasOwnProperty(S="DECIMAL_PLACES"))I=b[S],ko(I,0,So,S),n=I;if(b.hasOwnProperty(S="ROUNDING_MODE"))I=b[S],ko(I,0,8,S),s=I;if(b.hasOwnProperty(S="EXPONENTIAL_AT"))if(I=b[S],I&&I.pop)ko(I[0],-So,0,S),ko(I[1],0,So,S),l=I[0],h=I[1];else ko(I,-So,So,S),l=-(h=I<0?-I:I);if(b.hasOwnProperty(S="RANGE"))if(I=b[S],I&&I.pop)ko(I[0],-So,-1,S),ko(I[1],1,So,S),p=I[0],H=I[1];else if(ko(I,-So,So,S),I)p=-(H=I<0?-I:I);else throw Error(Yo+S+" cannot be zero: "+I);if(b.hasOwnProperty(S="CRYPTO"))if(I=b[S],I===!!I)if(I)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=I;else throw f=!I,Error(Yo+"crypto unavailable");else f=I;else throw Error(Yo+S+" not true or false: "+I);if(b.hasOwnProperty(S="MODULO_MODE"))I=b[S],ko(I,0,9,S),y=I;if(b.hasOwnProperty(S="POW_PRECISION"))I=b[S],ko(I,0,So,S),z=I;if(b.hasOwnProperty(S="FORMAT"))if(I=b[S],typeof I=="object")v=I;else throw Error(Yo+S+" not an object: "+I);if(b.hasOwnProperty(S="ALPHABET"))if(I=b[S],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))w=I.slice(0,10)=="0123456789",q=I;else throw Error(Yo+S+" invalid: "+I)}else throw Error(Yo+"Object expected: "+b);return{DECIMAL_PLACES:n,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,h],RANGE:[p,H],CRYPTO:f,MODULO_MODE:y,POW_PRECISION:z,FORMAT:v,ALPHABET:q}},u.isBigNumber=function(b){if(!b||b._isBigNumber!==!0)return!1;if(!u.DEBUG)return!0;var S,I,C=b.c,J=b.e,F=b.s;o:if({}.toString.call(C)=="[object Array]"){if((F===1||F===-1)&&J>=-So&&J<=So&&J===jo(J)){if(C[0]===0){if(J===0&&C.length===1)return!0;break o}if(S=(J+1)%no,S<1)S+=no;if(String(C[0]).length==S){for(S=0;S<C.length;S++)if(I=C[S],I<0||I>=Go||I!==jo(I))break o;if(I!==0)return!0}}}else if(C===null&&J===null&&(F===null||F===1||F===-1))return!0;throw Error(Yo+"Invalid BigNumber: "+b)},u.maximum=u.max=function(){return k(arguments,-1)},u.minimum=u.min=function(){return k(arguments,1)},u.random=function(){var b=9007199254740992,S=Math.random()*b&2097151?function(){return jo(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var C,J,F,j,U,x=0,K=[],c=new u(e);if(I==null)I=n;else ko(I,0,So);if(j=Oa(I/no),f)if(crypto.getRandomValues){C=crypto.getRandomValues(new Uint32Array(j*=2));for(;x<j;)if(U=C[x]*131072+(C[x+1]>>>11),U>=9000000000000000)J=crypto.getRandomValues(new Uint32Array(2)),C[x]=J[0],C[x+1]=J[1];else K.push(U%100000000000000),x+=2;x=j/2}else if(crypto.randomBytes){C=crypto.randomBytes(j*=7);for(;x<j;)if(U=(C[x]&31)*281474976710656+C[x+1]*1099511627776+C[x+2]*4294967296+C[x+3]*16777216+(C[x+4]<<16)+(C[x+5]<<8)+C[x+6],U>=9000000000000000)crypto.randomBytes(7).copy(C,x);else K.push(U%100000000000000),x+=7;x=j/7}else throw f=!1,Error(Yo+"crypto unavailable");if(!f){for(;x<j;)if(U=S(),U<9000000000000000)K[x++]=U%100000000000000}if(j=K[--x],I%=no,j&&I)U=Xa[no-I],K[x]=jo(j/U)*U;for(;K[x]===0;K.pop(),x--);if(x<0)K=[F=0];else{for(F=-1;K[0]===0;K.splice(0,1),F-=no);for(x=1,U=K[0];U>=10;U/=10,x++);if(x<no)F-=no-x}return c.e=F,c.c=K,c}}(),u.sum=function(){var b=1,S=arguments,I=new u(S[0]);for(;b<S.length;)I=I.plus(S[b++]);return I},a=function(){var b="0123456789";function S(I,C,J,F){var j,U=[0],x,K=0,c=I.length;for(;K<c;){for(x=U.length;x--;U[x]*=C);U[0]+=F.indexOf(I.charAt(K++));for(j=0;j<U.length;j++)if(U[j]>J-1){if(U[j+1]==null)U[j+1]=0;U[j+1]+=U[j]/J|0,U[j]%=J}}return U.reverse()}return function(I,C,J,F,j){var U,x,K,c,m,P,Y,A,M=I.indexOf("."),E=n,oo=s;if(M>=0)c=z,z=0,I=I.replace(".",""),A=new u(C),P=A.pow(I.length-M),z=c,A.c=S(ni(Po(P.c),P.e,"0"),10,J,b),A.e=A.c.length;Y=S(I,C,J,j?(U=q,b):(U=b,q)),K=c=Y.length;for(;Y[--c]==0;Y.pop());if(!Y[0])return U.charAt(0);if(M<0)--K;else P.c=Y,P.e=K,P.s=F,P=i(P,A,E,oo,J),Y=P.c,m=P.r,K=P.e;if(x=K+E+1,M=Y[x],c=J/2,m=m||x<0||Y[x+1]!=null,m=oo<4?(M!=null||m)&&(oo==0||oo==(P.s<0?3:2)):M>c||M==c&&(oo==4||m||oo==6&&Y[x-1]&1||oo==(P.s<0?8:7)),x<1||!Y[0])I=m?ni(U.charAt(1),-E,U.charAt(0)):U.charAt(0);else{if(Y.length=x,m){for(--J;++Y[--x]>J;)if(Y[x]=0,!x)++K,Y=[1].concat(Y)}for(c=Y.length;!Y[--c];);for(M=0,I="";M<=c;I+=U.charAt(Y[M++]));I=ni(I,K,U.charAt(0))}return I}}(),i=function(){function b(C,J,F){var j,U,x,K,c=0,m=C.length,P=J%fi,Y=J/fi|0;for(C=C.slice();m--;)x=C[m]%fi,K=C[m]/fi|0,j=Y*x+K*P,U=P*x+j%fi*fi+c,c=(U/F|0)+(j/fi|0)+Y*K,C[m]=U%F;if(c)C=[c].concat(C);return C}function S(C,J,F,j){var U,x;if(F!=j)x=F>j?1:-1;else for(U=x=0;U<F;U++)if(C[U]!=J[U]){x=C[U]>J[U]?1:-1;break}return x}function I(C,J,F,j){var U=0;for(;F--;)C[F]-=U,U=C[F]<J[F]?1:0,C[F]=U*j+C[F]-J[F];for(;!C[0]&&C.length>1;C.splice(0,1));}return function(C,J,F,j,U){var x,K,c,m,P,Y,A,M,E,oo,to,co,yo,Vo,Zo,po,Ho,so=C.s==J.s?1:-1,N=C.c,uo=J.c;if(!N||!N[0]||!uo||!uo[0])return new u(!C.s||!J.s||(N?uo&&N[0]==uo[0]:!uo)?NaN:N&&N[0]==0||!uo?so*0:so/0);if(M=new u(so),E=M.c=[],K=C.e-J.e,so=F+K+1,!U)U=Go,K=Lo(C.e/no)-Lo(J.e/no),so=so/no|0;for(c=0;uo[c]==(N[c]||0);c++);if(uo[c]>(N[c]||0))K--;if(so<0)E.push(1),m=!0;else{if(Vo=N.length,po=uo.length,c=0,so+=2,P=jo(U/(uo[0]+1)),P>1)uo=b(uo,P,U),N=b(N,P,U),po=uo.length,Vo=N.length;yo=po,oo=N.slice(0,po),to=oo.length;for(;to<po;oo[to++]=0);if(Ho=uo.slice(),Ho=[0].concat(Ho),Zo=uo[0],uo[1]>=U/2)Zo++;do{if(P=0,x=S(uo,oo,po,to),x<0){if(co=oo[0],po!=to)co=co*U+(oo[1]||0);if(P=jo(co/Zo),P>1){if(P>=U)P=U-1;Y=b(uo,P,U),A=Y.length,to=oo.length;while(S(Y,oo,A,to)==1)P--,I(Y,po<A?Ho:uo,A,U),A=Y.length,x=1}else{if(P==0)x=P=1;Y=uo.slice(),A=Y.length}if(A<to)Y=[0].concat(Y);if(I(oo,Y,to,U),to=oo.length,x==-1)while(S(uo,oo,po,to)<1)P++,I(oo,po<to?Ho:uo,to,U),to=oo.length}else if(x===0)P++,oo=[0];if(E[c++]=P,oo[0])oo[to++]=N[yo]||0;else oo=[N[yo]],to=1}while((yo++<Vo||oo[0]!=null)&&so--);if(m=oo[0]!=null,!E[0])E.splice(0,1)}if(U==Go){for(c=1,so=E[0];so>=10;so/=10,c++);R(M,F+(M.e=c+K*no-1)+1,j,m)}else M.e=K,M.r=+m;return M}}();function g(b,S,I,C){var J,F,j,U,x;if(I==null)I=s;else ko(I,0,8);if(!b.c)return b.toString();if(J=b.c[0],j=b.e,S==null)x=Po(b.c),x=C==1||C==2&&(j<=l||j>=h)?na(x,j):ni(x,j,"0");else if(b=R(new u(b),S,I),F=b.e,x=Po(b.c),U=x.length,C==1||C==2&&(S<=F||F<=l)){for(;U<S;x+="0",U++);x=na(x,F)}else if(S-=j,x=ni(x,F,"0"),F+1>U){if(--S>0)for(x+=".";S--;x+="0");}else if(S+=F-U,S>0){if(F+1==U)x+=".";for(;S--;x+="0");}return b.s<0&&J?"-"+x:x}function k(b,S){var I,C,J=1,F=new u(b[0]);for(;J<b.length;J++)if(C=new u(b[J]),!C.s||(I=zi(F,C))===S||I===0&&F.s===S)F=C;return F}function W(b,S,I){var C=1,J=S.length;for(;!S[--J];S.pop());for(J=S[0];J>=10;J/=10,C++);if((I=C+I*no-1)>H)b.c=b.e=null;else if(I<p)b.c=[b.e=0];else b.e=I,b.c=S;return b}t=function(){var b=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,I=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,J=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(F,j,U,x){var K,c=U?j:j.replace(J,"");if(C.test(c))F.s=isNaN(c)?null:c<0?-1:1;else{if(!U){if(c=c.replace(b,function(m,P,Y){return K=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!x||x==K?P:m}),x)K=x,c=c.replace(S,"$1").replace(I,"0.$1");if(j!=c)return new u(c,K)}if(u.DEBUG)throw Error(Yo+"Not a"+(x?" base "+x:"")+" number: "+j);F.s=null}F.c=F.e=null}}();function R(b,S,I,C){var J,F,j,U,x,K,c,m=b.c,P=Xa;if(m){o:{for(J=1,U=m[0];U>=10;U/=10,J++);if(F=S-J,F<0)F+=no,j=S,x=m[K=0],c=jo(x/P[J-j-1]%10);else if(K=Oa((F+1)/no),K>=m.length)if(C){for(;m.length<=K;m.push(0));x=c=0,J=1,F%=no,j=F-no+1}else break o;else{x=U=m[K];for(J=1;U>=10;U/=10,J++);F%=no,j=F-no+J,c=j<0?0:jo(x/P[J-j-1]%10)}if(C=C||S<0||m[K+1]!=null||(j<0?x:x%P[J-j-1]),C=I<4?(c||C)&&(I==0||I==(b.s<0?3:2)):c>5||c==5&&(I==4||C||I==6&&(F>0?j>0?x/P[J-j]:0:m[K-1])%10&1||I==(b.s<0?8:7)),S<1||!m[0]){if(m.length=0,C)S-=b.e+1,m[0]=P[(no-S%no)%no],b.e=-S||0;else m[0]=b.e=0;return b}if(F==0)m.length=K,U=1,K--;else m.length=K+1,U=P[no-F],m[K]=j>0?jo(x/P[J-j]%P[j])*U:0;if(C)for(;;)if(K==0){for(F=1,j=m[0];j>=10;j/=10,F++);j=m[0]+=U;for(U=1;j>=10;j/=10,U++);if(F!=U){if(b.e++,m[0]==Go)m[0]=1}break}else{if(m[K]+=U,m[K]!=Go)break;m[K--]=0,U=1}for(F=m.length;m[--F]===0;m.pop());}if(b.e>H)b.c=b.e=null;else if(b.e<p)b.c=[b.e=0]}return b}function Q(b){var S,I=b.e;if(I===null)return b.toString();return S=Po(b.c),S=I<=l||I>=h?na(S,I):ni(S,I,"0"),b.s<0?"-"+S:S}if(r.absoluteValue=r.abs=function(){var b=new u(this);if(b.s<0)b.s=1;return b},r.comparedTo=function(b,S){return zi(this,new u(b,S))},r.decimalPlaces=r.dp=function(b,S){var I,C,J,F=this;if(b!=null){if(ko(b,0,So),S==null)S=s;else ko(S,0,8);return R(new u(F),b+F.e+1,S)}if(!(I=F.c))return null;if(C=((J=I.length-1)-Lo(this.e/no))*no,J=I[J])for(;J%10==0;J/=10,C--);if(C<0)C=0;return C},r.dividedBy=r.div=function(b,S){return i(this,new u(b,S),n,s)},r.dividedToIntegerBy=r.idiv=function(b,S){return i(this,new u(b,S),0,1)},r.exponentiatedBy=r.pow=function(b,S){var I,C,J,F,j,U,x,K,c,m=this;if(b=new u(b),b.c&&!b.isInteger())throw Error(Yo+"Exponent not an integer: "+Q(b));if(S!=null)S=new u(S);if(U=b.e>14,!m.c||!m.c[0]||m.c[0]==1&&!m.e&&m.c.length==1||!b.c||!b.c[0])return c=new u(Math.pow(+Q(m),U?b.s*(2-ea(b)):+Q(b))),S?c.mod(S):c;if(x=b.s<0,S){if(S.c?!S.c[0]:!S.s)return new u(NaN);if(C=!x&&m.isInteger()&&S.isInteger(),C)m=m.mod(S)}else if(b.e>9&&(m.e>0||m.e<-1||(m.e==0?m.c[0]>1||U&&m.c[1]>=240000000:m.c[0]<80000000000000||U&&m.c[0]<=99999750000000))){if(F=m.s<0&&ea(b)?-0:0,m.e>-1)F=1/F;return new u(x?1/F:F)}else if(z)F=Oa(z/no+2);if(U){if(I=new u(0.5),x)b.s=1;K=ea(b)}else J=Math.abs(+Q(b)),K=J%2;c=new u(e);for(;;){if(K){if(c=c.times(m),!c.c)break;if(F){if(c.c.length>F)c.c.length=F}else if(C)c=c.mod(S)}if(J){if(J=jo(J/2),J===0)break;K=J%2}else if(b=b.times(I),R(b,b.e+1,1),b.e>14)K=ea(b);else{if(J=+Q(b),J===0)break;K=J%2}if(m=m.times(m),F){if(m.c&&m.c.length>F)m.c.length=F}else if(C)m=m.mod(S)}if(C)return c;if(x)c=e.div(c);return S?c.mod(S):F?R(c,z,s,j):c},r.integerValue=function(b){var S=new u(this);if(b==null)b=s;else ko(b,0,8);return R(S,S.e+1,b)},r.isEqualTo=r.eq=function(b,S){return zi(this,new u(b,S))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(b,S){return zi(this,new u(b,S))>0},r.isGreaterThanOrEqualTo=r.gte=function(b,S){return(S=zi(this,new u(b,S)))===1||S===0},r.isInteger=function(){return!!this.c&&Lo(this.e/no)>this.c.length-2},r.isLessThan=r.lt=function(b,S){return zi(this,new u(b,S))<0},r.isLessThanOrEqualTo=r.lte=function(b,S){return(S=zi(this,new u(b,S)))===-1||S===0},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&this.c[0]==0},r.minus=function(b,S){var I,C,J,F,j=this,U=j.s;if(b=new u(b,S),S=b.s,!U||!S)return new u(NaN);if(U!=S)return b.s=-S,j.plus(b);var x=j.e/no,K=b.e/no,c=j.c,m=b.c;if(!x||!K){if(!c||!m)return c?(b.s=-S,b):new u(m?j:NaN);if(!c[0]||!m[0])return m[0]?(b.s=-S,b):new u(c[0]?j:s==3?-0:0)}if(x=Lo(x),K=Lo(K),c=c.slice(),U=x-K){if(F=U<0)U=-U,J=c;else K=x,J=m;J.reverse();for(S=U;S--;J.push(0));J.reverse()}else{C=(F=(U=c.length)<(S=m.length))?U:S;for(U=S=0;S<C;S++)if(c[S]!=m[S]){F=c[S]<m[S];break}}if(F)J=c,c=m,m=J,b.s=-b.s;if(S=(C=m.length)-(I=c.length),S>0)for(;S--;c[I++]=0);S=Go-1;for(;C>U;){if(c[--C]<m[C]){for(I=C;I&&!c[--I];c[I]=S);--c[I],c[C]+=Go}c[C]-=m[C]}for(;c[0]==0;c.splice(0,1),--K);if(!c[0])return b.s=s==3?-1:1,b.c=[b.e=0],b;return W(b,c,K)},r.modulo=r.mod=function(b,S){var I,C,J=this;if(b=new u(b,S),!J.c||!b.s||b.c&&!b.c[0])return new u(NaN);else if(!b.c||J.c&&!J.c[0])return new u(J);if(y==9)C=b.s,b.s=1,I=i(J,b,0,3),b.s=C,I.s*=C;else I=i(J,b,0,y);if(b=J.minus(I.times(b)),!b.c[0]&&y==1)b.s=J.s;return b},r.multipliedBy=r.times=function(b,S){var I,C,J,F,j,U,x,K,c,m,P,Y,A,M,E,oo=this,to=oo.c,co=(b=new u(b,S)).c;if(!to||!co||!to[0]||!co[0]){if(!oo.s||!b.s||to&&!to[0]&&!co||co&&!co[0]&&!to)b.c=b.e=b.s=null;else if(b.s*=oo.s,!to||!co)b.c=b.e=null;else b.c=[0],b.e=0;return b}if(C=Lo(oo.e/no)+Lo(b.e/no),b.s*=oo.s,x=to.length,m=co.length,x<m)A=to,to=co,co=A,J=x,x=m,m=J;for(J=x+m,A=[];J--;A.push(0));M=Go,E=fi;for(J=m;--J>=0;){I=0,P=co[J]%E,Y=co[J]/E|0;for(j=x,F=J+j;F>J;)K=to[--j]%E,c=to[j]/E|0,U=Y*K+c*P,K=P*K+U%E*E+A[F]+I,I=(K/M|0)+(U/E|0)+Y*c,A[F--]=K%M;A[F]=I}if(I)++C;else A.splice(0,1);return W(b,A,C)},r.negated=function(){var b=new u(this);return b.s=-b.s||null,b},r.plus=function(b,S){var I,C=this,J=C.s;if(b=new u(b,S),S=b.s,!J||!S)return new u(NaN);if(J!=S)return b.s=-S,C.minus(b);var F=C.e/no,j=b.e/no,U=C.c,x=b.c;if(!F||!j){if(!U||!x)return new u(J/0);if(!U[0]||!x[0])return x[0]?b:new u(U[0]?C:J*0)}if(F=Lo(F),j=Lo(j),U=U.slice(),J=F-j){if(J>0)j=F,I=x;else J=-J,I=U;I.reverse();for(;J--;I.push(0));I.reverse()}if(J=U.length,S=x.length,J-S<0)I=x,x=U,U=I,S=J;for(J=0;S;)J=(U[--S]=U[S]+x[S]+J)/Go|0,U[S]=Go===U[S]?0:U[S]%Go;if(J)U=[J].concat(U),++j;return W(b,U,j)},r.precision=r.sd=function(b,S){var I,C,J,F=this;if(b!=null&&b!==!!b){if(ko(b,1,So),S==null)S=s;else ko(S,0,8);return R(new u(F),b,S)}if(!(I=F.c))return null;if(J=I.length-1,C=J*no+1,J=I[J]){for(;J%10==0;J/=10,C--);for(J=I[0];J>=10;J/=10,C++);}if(b&&F.e+1>C)C=F.e+1;return C},r.shiftedBy=function(b){return ko(b,-_a,_a),this.times("1e"+b)},r.squareRoot=r.sqrt=function(){var b,S,I,C,J,F=this,j=F.c,U=F.s,x=F.e,K=n+4,c=new u("0.5");if(U!==1||!j||!j[0])return new u(!U||U<0&&(!j||j[0])?NaN:j?F:1/0);if(U=Math.sqrt(+Q(F)),U==0||U==1/0){if(S=Po(j),(S.length+x)%2==0)S+="0";if(U=Math.sqrt(+S),x=Lo((x+1)/2)-(x<0||x%2),U==1/0)S="5e"+x;else S=U.toExponential(),S=S.slice(0,S.indexOf("e")+1)+x;I=new u(S)}else I=new u(U+"");if(I.c[0]){if(x=I.e,U=x+K,U<3)U=0;for(;;)if(J=I,I=c.times(J.plus(i(F,J,K,1))),Po(J.c).slice(0,U)===(S=Po(I.c)).slice(0,U)){if(I.e<x)--U;if(S=S.slice(U-3,U+1),S=="9999"||!C&&S=="4999"){if(!C){if(R(J,J.e+n+2,0),J.times(J).eq(F)){I=J;break}}K+=4,U+=4,C=1}else{if(!+S||!+S.slice(1)&&S.charAt(0)=="5")R(I,I.e+n+2,1),b=!I.times(I).eq(F);break}}}return R(I,I.e+n+1,s,b)},r.toExponential=function(b,S){if(b!=null)ko(b,0,So),b++;return g(this,b,S,1)},r.toFixed=function(b,S){if(b!=null)ko(b,0,So),b=b+this.e+1;return g(this,b,S)},r.toFormat=function(b,S,I){var C,J=this;if(I==null)if(b!=null&&S&&typeof S=="object")I=S,S=null;else if(b&&typeof b=="object")I=b,b=S=null;else I=v;else if(typeof I!="object")throw Error(Yo+"Argument not an object: "+I);if(C=J.toFixed(b,S),J.c){var F,j=C.split("."),U=+I.groupSize,x=+I.secondaryGroupSize,K=I.groupSeparator||"",c=j[0],m=j[1],P=J.s<0,Y=P?c.slice(1):c,A=Y.length;if(x)F=U,U=x,x=F,A-=F;if(U>0&&A>0){F=A%U||U,c=Y.substr(0,F);for(;F<A;F+=U)c+=K+Y.substr(F,U);if(x>0)c+=K+Y.slice(F);if(P)c="-"+c}C=m?c+(I.decimalSeparator||"")+((x=+I.fractionGroupSize)?m.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):m):c}return(I.prefix||"")+C+(I.suffix||"")},r.toFraction=function(b){var S,I,C,J,F,j,U,x,K,c,m,P,Y=this,A=Y.c;if(b!=null){if(U=new u(b),!U.isInteger()&&(U.c||U.s!==1)||U.lt(e))throw Error(Yo+"Argument "+(U.isInteger()?"out of range: ":"not an integer: ")+Q(U))}if(!A)return new u(Y);S=new u(e),K=I=new u(e),C=x=new u(e),P=Po(A),F=S.e=P.length-Y.e-1,S.c[0]=Xa[(j=F%no)<0?no+j:j],b=!b||U.comparedTo(S)>0?F>0?S:K:U,j=H,H=1/0,U=new u(P),x.c[0]=0;for(;;){if(c=i(U,S,0,1),J=I.plus(c.times(C)),J.comparedTo(b)==1)break;I=C,C=J,K=x.plus(c.times(J=K)),x=J,S=U.minus(c.times(J=S)),U=J}return J=i(b.minus(I),C,0,1),x=x.plus(J.times(K)),I=I.plus(J.times(C)),x.s=K.s=Y.s,F=F*2,m=i(K,C,F,s).minus(Y).abs().comparedTo(i(x,I,F,s).minus(Y).abs())<1?[K,C]:[x,I],H=j,m},r.toNumber=function(){return+Q(this)},r.toPrecision=function(b,S){if(b!=null)ko(b,1,So);return g(this,b,S,2)},r.toString=function(b){var S,I=this,C=I.s,J=I.e;if(J===null)if(C){if(S="Infinity",C<0)S="-"+S}else S="NaN";else{if(b==null)S=J<=l||J>=h?na(Po(I.c),J):ni(Po(I.c),J,"0");else if(b===10&&w)I=R(new u(I),n+J+1,s),S=ni(Po(I.c),I.e,"0");else ko(b,2,q.length,"Base"),S=a(ni(Po(I.c),J,"0"),10,b,C,!0);if(C<0&&I.c[0])S="-"+S}return S},r.valueOf=r.toJSON=function(){return Q(this)},r._isBigNumber=!0,r[Symbol.toStringTag]="BigNumber",r[Symbol.for("nodejs.util.inspect.custom")]=r.valueOf,o!=null)u.set(o);return u}function Lo(o){var i=o|0;return o>0||o===i?i:i-1}function Po(o){var i,a,t=1,r=o.length,e=o[0]+"";for(;t<r;){i=o[t++]+"",a=no-i.length;for(;a--;i="0"+i);e+=i}for(r=e.length;e.charCodeAt(--r)===48;);return e.slice(0,r+1||1)}function zi(o,i){var a,t,r=o.c,e=i.c,n=o.s,s=i.s,l=o.e,h=i.e;if(!n||!s)return null;if(a=r&&!r[0],t=e&&!e[0],a||t)return a?t?0:-s:n;if(n!=s)return n;if(a=n<0,t=l==h,!r||!e)return t?0:!r^a?1:-1;if(!t)return l>h^a?1:-1;s=(l=r.length)<(h=e.length)?l:h;for(n=0;n<s;n++)if(r[n]!=e[n])return r[n]>e[n]^a?1:-1;return l==h?0:l>h^a?1:-1}function ko(o,i,a,t){if(o<i||o>a||o!==jo(o))throw Error(Yo+(t||"Argument")+(typeof o=="number"?o<i||o>a?" out of range: ":" not an integer: ":" not a primitive number: ")+String(o))}function ea(o){var i=o.c.length-1;return Lo(o.e/no)==i&&o.c[i]%2!=0}function na(o,i){return(o.length>1?o.charAt(0)+"."+o.slice(1):o)+(i<0?"e":"e+")+i}function ni(o,i,a){var t,r;if(i<0){for(r=a+".";++i;r+=a);o=r+o}else if(t=o.length,++i>t){for(r=a,i-=t;--i;r+=a);o+=r}else if(i<t)o=o.slice(0,i)+"."+o.slice(i);return o}var Mn=Ir(),L=Mn;var sa=globalThis,la=sa.ShadowRoot&&(sa.ShadyCSS===void 0||sa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Aa=Symbol(),Jr=new WeakMap;class da{constructor(o,i,a){if(this._$cssResult$=!0,a!==Aa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=i}get styleSheet(){let o=this.o,i=this.t;if(la&&o===void 0){let a=i!==void 0&&i.length===1;a&&(o=Jr.get(i)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),a&&Jr.set(i,o))}return o}toString(){return this.cssText}}var Vr=(o)=>new da(typeof o=="string"?o:o+"",void 0,Aa),G=(o,...i)=>{let a=o.length===1?o[0]:i.reduce((t,r,e)=>t+((n)=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[e+1],o[0]);return new da(a,o,Aa)},$r=(o,i)=>{if(la)o.adoptedStyleSheets=i.map((a)=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of i){let t=document.createElement("style"),r=sa.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=a.cssText,o.appendChild(t)}},Ga=la?(o)=>o:(o)=>o instanceof CSSStyleSheet?((i)=>{let a="";for(let t of i.cssRules)a+=t.cssText;return Vr(a)})(o):o;var{is:En,defineProperty:os,getOwnPropertyDescriptor:is,getOwnPropertyNames:as,getOwnPropertySymbols:ts,getPrototypeOf:rs}=Object,ca=globalThis,Yr=ca.trustedTypes,es=Yr?Yr.emptyScript:"",ns=ca.reactiveElementPolyfillSupport,Li=(o,i)=>o,Oi={toAttribute(o,i){switch(i){case Boolean:o=o?es:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let a=o;switch(i){case Boolean:a=o!==null;break;case Number:a=o===null?null:Number(o);break;case Object:case Array:try{a=JSON.parse(o)}catch(t){a=null}}return a}},ha=(o,i)=>!En(o,i),Qr={attribute:!0,type:String,converter:Oi,reflect:!1,useDefault:!1,hasChanged:ha};Symbol.metadata??=Symbol("metadata"),ca.litPropertyMetadata??=new WeakMap;class gi extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,i=Qr){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(o,i),!i.noAccessor){let a=Symbol(),t=this.getPropertyDescriptor(o,a,i);t!==void 0&&os(this.prototype,o,t)}}static getPropertyDescriptor(o,i,a){let{get:t,set:r}=is(this.prototype,o)??{get(){return this[i]},set(e){this[i]=e}};return{get:t,set(e){let n=t?.call(this);r?.call(this,e),this.requestUpdate(o,n,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??Qr}static _$Ei(){if(this.hasOwnProperty(Li("elementProperties")))return;let o=rs(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Li("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Li("properties"))){let i=this.properties,a=[...as(i),...ts(i)];for(let t of a)this.createProperty(t,i[t])}let o=this[Symbol.metadata];if(o!==null){let i=litPropertyMetadata.get(o);if(i!==void 0)for(let[a,t]of i)this.elementProperties.set(a,t)}this._$Eh=new Map;for(let[i,a]of this.elementProperties){let t=this._$Eu(i,a);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let i=[];if(Array.isArray(o)){let a=new Set(o.flat(1/0).reverse());for(let t of a)i.unshift(Ga(t))}else o!==void 0&&i.push(Ga(o));return i}static _$Eu(o,i){let a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((o)=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o)=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,i=this.constructor.elementProperties;for(let a of i.keys())this.hasOwnProperty(a)&&(o.set(a,this[a]),delete this[a]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $r(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o)=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o)=>o.hostDisconnected?.())}attributeChangedCallback(o,i,a){this._$AK(o,a)}_$ET(o,i){let a=this.constructor.elementProperties.get(o),t=this.constructor._$Eu(o,a);if(t!==void 0&&a.reflect===!0){let r=(a.converter?.toAttribute!==void 0?a.converter:Oi).toAttribute(i,a.type);this._$Em=o,r==null?this.removeAttribute(t):this.setAttribute(t,r),this._$Em=null}}_$AK(o,i){let a=this.constructor,t=a._$Eh.get(o);if(t!==void 0&&this._$Em!==t){let r=a.getPropertyOptions(t),e=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Oi;this._$Em=t,this[t]=e.fromAttribute(i,r.type)??this._$Ej?.get(t)??null,this._$Em=null}}requestUpdate(o,i,a){if(o!==void 0){let t=this.constructor,r=this[o];if(a??=t.getPropertyOptions(o),!((a.hasChanged??ha)(r,i)||a.useDefault&&a.reflect&&r===this._$Ej?.get(o)&&!this.hasAttribute(t._$Eu(o,a))))return;this.C(o,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,i,{useDefault:a,reflect:t,wrapped:r},e){a&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,e??i??this[o]),r!==!0||e!==void 0)||(this._$AL.has(o)||(this.hasUpdated||a||(i=void 0),this._$AL.set(o,i)),t===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,r]of this._$Ep)this[t]=r;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[t,r]of a){let{wrapped:e}=r,n=this[t];e!==!0||this._$AL.has(t)||n===void 0||this.C(t,void 0,r,n)}}let o=!1,i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),this._$EO?.forEach((a)=>a.hostUpdate?.()),this.update(i)):this._$EM()}catch(a){throw o=!1,this._$EM(),a}o&&this._$AE(i)}willUpdate(o){}_$AE(o){this._$EO?.forEach((i)=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach((i)=>this._$ET(i,this[i])),this._$EM()}updated(o){}firstUpdated(o){}}gi.elementStyles=[],gi.shadowRootOptions={mode:"open"},gi[Li("elementProperties")]=new Map,gi[Li("finalized")]=new Map,ns?.({ReactiveElement:gi}),(ca.reactiveElementVersions??=[]).push("2.1.0");var Ta=globalThis,ua=Ta.trustedTypes,Fr=ua?ua.createPolicy("lit-html",{createHTML:(o)=>o}):void 0;var si=`lit$${Math.random().toFixed(9).slice(2)}$`,Ba="?"+si,ss=`<${Ba}>`,Zi=document,Xi=()=>Zi.createComment(""),Ai=(o)=>o===null||typeof o!="object"&&typeof o!="function",Da=Array.isArray,_r=(o)=>Da(o)||typeof o?.[Symbol.iterator]=="function";var _i=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cr=/-->/g,Pr=/>/g,yi=RegExp(`>|[
|
|
10
10
|
\f\r](?:([^\\s"'>=/]+)([
|
|
11
11
|
\f\r]*=[
|
|
12
12
|
\f\r]*(?:[^
|
|
13
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),jr=/'/g,Lr=/"/g,Xr=/^(?:script|style|textarea|title)$/i,Na=(o)=>(i,...a)=>({_$litType$:o,strings:i,values:a}),$=Na(1),eo=Na(2),Dl=Na(3),Ko=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Or=new WeakMap,Hi=Zi.createTreeWalker(Zi,129);function Ar(o,i){if(!Da(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fr!==void 0?Fr.createHTML(i):i}var Gr=(o,i)=>{let a=o.length-1,t=[],r,e=i===2?"<svg>":i===3?"<math>":"",n=_i;for(let s=0;s<a;s++){let l=o[s],h,p,H=-1,f=0;for(;f<l.length&&(n.lastIndex=f,p=n.exec(l),p!==null);)f=n.lastIndex,n===_i?p[1]==="!--"?n=Cr:p[1]!==void 0?n=Pr:p[2]!==void 0?(Xr.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=yi):p[3]!==void 0&&(n=yi):n===yi?p[0]===">"?(n=r??_i,H=-1):p[1]===void 0?H=-2:(H=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?yi:p[3]==='"'?Lr:jr):n===Lr||n===jr?n=yi:n===Cr||n===Pr?n=_i:(n=yi,r=void 0);let y=n===yi&&o[s+1].startsWith("/>")?" ":"";e+=n===_i?l+ls:H>=0?(t.push(h),l.slice(0,H)+"$lit$"+l.slice(H)+si+y):l+si+(H===-2?s:y)}return[Ar(o,e+(o[a]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),t]};class Gi{constructor({strings:o,_$litType$:i},a){let t;this.parts=[];let r=0,e=0,n=o.length-1,s=this.parts,[l,h]=Gr(o,i);if(this.el=Gi.createElement(l,a),Hi.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(t=Hi.nextNode())!==null&&s.length<n;){if(t.nodeType===1){if(t.hasAttributes())for(let p of t.getAttributeNames())if(p.endsWith("$lit$")){let H=h[e++],f=t.getAttribute(p).split(si),y=/([.?@])?(.*)/.exec(H);s.push({type:1,index:r,name:y[2],strings:f,ctor:y[1]==="."?Ea:y[1]==="?"?ot:y[1]==="@"?it:Yi}),t.removeAttribute(p)}else p.startsWith(si)&&(s.push({type:6,index:r}),t.removeAttribute(p));if(Xr.test(t.tagName)){let p=t.textContent.split(si),H=p.length-1;if(H>0){t.textContent=ua?ua.emptyScript:"";for(let f=0;f<H;f++)t.append(p[f],Xi()),Hi.nextNode(),s.push({type:2,index:++r});t.append(p[H],Xi())}}}else if(t.nodeType===8)if(t.data===Ba)s.push({type:2,index:r});else{let p=-1;for(;(p=t.data.indexOf(si,p+1))!==-1;)s.push({type:7,index:r}),p+=si.length-1}r++}}static createElement(o,i){let a=Zi.createElement("template");return a.innerHTML=o,a}}function Si(o,i,a=o,t){if(i===Ko)return i;let r=t!==void 0?a._$Co?.[t]:a._$Cl,e=Ai(i)?void 0:i._$litDirective$;return r?.constructor!==e&&(r?._$AO?.(!1),e===void 0?r=void 0:(r=new e(o),r._$AT(o,a,t)),t!==void 0?(a._$Co??=[])[t]=r:a._$Cl=r),r!==void 0&&(i=Si(o,r._$AS(o,i.values),r,t)),i}class Ma{constructor(o,i){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:i},parts:a}=this._$AD,t=(o?.creationScope??Zi).importNode(i,!0);Hi.currentNode=t;let r=Hi.nextNode(),e=0,n=0,s=a[0];for(;s!==void 0;){if(e===s.index){let l;s.type===2?l=new $i(r,r.nextSibling,this,o):s.type===1?l=new s.ctor(r,s.name,s.strings,this,o):s.type===6&&(l=new at(r,this,o)),this._$AV.push(l),s=a[++n]}e!==s?.index&&(r=Hi.nextNode(),e++)}return Hi.currentNode=Zi,t}p(o){let i=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(o,a,i),i+=a.strings.length-2):a._$AI(o[i])),i++}}class $i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,i,a,t){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=i,this._$AM=a,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,i=this._$AM;return i!==void 0&&o?.nodeType===11&&(o=i.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,i=this){o=Si(this,o,i),Ai(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==Ko&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_r(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==_&&Ai(this._$AH)?this._$AA.nextSibling.data=o:this.T(Zi.createTextNode(o)),this._$AH=o}$(o){let{values:i,_$litType$:a}=o,t=typeof a=="number"?this._$AC(o):(a.el===void 0&&(a.el=Gi.createElement(Ar(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===t)this._$AH.p(i);else{let r=new Ma(t,this),e=r.u(this.options);r.p(i),this.T(e),this._$AH=r}}_$AC(o){let i=Or.get(o.strings);return i===void 0&&Or.set(o.strings,i=new Gi(o)),i}k(o){Da(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,a,t=0;for(let r of o)t===i.length?i.push(a=new $i(this.O(Xi()),this.O(Xi()),this,this.options)):a=i[t],a._$AI(r),t++;t<i.length&&(this._$AR(a&&a._$AB.nextSibling,t),i.length=t)}_$AR(o=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}}class Yi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,i,a,t,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=i,this._$AM=t,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=_}_$AI(o,i=this,a,t){let r=this.strings,e=!1;if(r===void 0)o=Si(this,o,i,0),e=!Ai(o)||o!==this._$AH&&o!==Ko,e&&(this._$AH=o);else{let n=o,s,l;for(o=r[0],s=0;s<r.length-1;s++)l=Si(this,n[a+s],i,s),l===Ko&&(l=this._$AH[s]),e||=!Ai(l)||l!==this._$AH[s],l===_?o=_:o!==_&&(o+=(l??"")+r[s+1]),this._$AH[s]=l}e&&!t&&this.j(o)}j(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class Ea extends Yi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}}class ot extends Yi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}}class it extends Yi{constructor(o,i,a,t,r){super(o,i,a,t,r),this.type=5}_$AI(o,i=this){if((o=Si(this,o,i,0)??_)===Ko)return;let a=this._$AH,t=o===_&&a!==_||o.capture!==a.capture||o.once!==a.once||o.passive!==a.passive,r=o!==_&&(a===_||t);t&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class at{constructor(o,i,a){this.element=o,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(o){Si(this,o)}}var Tr={M:"$lit$",P:si,A:Ba,C:1,L:Gr,R:Ma,D:_r,V:Si,I:$i,H:Yi,N:ot,U:it,B:Ea,F:at},ds=Ta.litHtmlPolyfillSupport;ds?.(Gi,$i),(Ta.litHtmlVersions??=[]).push("3.3.0");var Br=(o,i,a)=>{let t=a?.renderBefore??i,r=t._$litPart$;if(r===void 0){let e=a?.renderBefore??null;t._$litPart$=r=new $i(i.insertBefore(Xi(),e),e,void 0,a??{})}return r._$AI(o),r};var tt=globalThis;class xo extends gi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Br(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}xo._$litElement$=!0,xo.finalized=!0,tt.litElementHydrateSupport?.({LitElement:xo});var cs=tt.litElementPolyfillSupport;cs?.({LitElement:xo});(tt.litElementVersions??=[]).push("4.2.0");var X=(o)=>(i,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var hs={attribute:!0,type:String,converter:Oi,reflect:!1,hasChanged:ha},us=(o=hs,i,a)=>{let{kind:t,metadata:r}=a,e=globalThis.litPropertyMetadata.get(r);if(e===void 0&&globalThis.litPropertyMetadata.set(r,e=new Map),t==="setter"&&((o=Object.create(o)).wrapped=!0),e.set(a.name,o),t==="accessor"){let{name:n}=a;return{set(s){let l=i.get.call(this);i.set.call(this,s),this.requestUpdate(n,l,o)},init(s){return s!==void 0&&this.C(n,void 0,o,s),s}}}if(t==="setter"){let{name:n}=a;return function(s){let l=this[n];i.call(this,s),this.requestUpdate(n,l,o)}}throw Error("Unsupported decorator location: "+t)};function Z(o){return(i,a)=>typeof a=="object"?us(o,i,a):((t,r,e)=>{let n=r.hasOwnProperty(e);return r.constructor.createProperty(e,t),n?Object.getOwnPropertyDescriptor(r,e):void 0})(o,i,a)}function O(o){return Z({...o,state:!0,attribute:!1})}var Ki=(o,i,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,a),a);function fo(o,i){return(a,t,r)=>{let e=(n)=>n.renderRoot?.querySelector(o)??null;if(i){let{get:n,set:s}=typeof t=="object"?a:r??(()=>{let l=Symbol();return{get(){return this[l]},set(h){this[l]=h}}})();return Ki(a,t,{get(){let l=n.call(this);return l===void 0&&(l=e(this),(l!==null||this.hasUpdated)&&s.call(this,l)),l}})}return Ki(a,t,{get(){return e(this)}})}}class rt{canVibrate;constructor(o){o.addController(this),this.canVibrate="vibrate"in navigator}trigger(o=10){if(!this.canVibrate)return;try{navigator.vibrate(o)}catch{}}click(){this.trigger(50)}lightClick(){this.trigger(35)}}function Dr(o){let i=o.replace(/-/g,"").substring(0,12),a=parseInt(i,16);return new Date(a)}function Nr(o){return o.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0})}class et extends EventTarget{host;_historyData=[];_hasData=null;_isInitialized=!1;_hasNextPage=!1;_initialLoadSize=6;_hasLoadedMore=!1;_clientSeed=null;_hasLoadedClientSeed=!1;constructor(o){super();this.host=o,o.addController(this),setTimeout(()=>{this.preloadHistory(),this.loadClientSeed()},100)}get historyData(){return this._historyData}get hasData(){return this._hasData}get isInitialized(){return this._isInitialized}get hasNextPage(){return this._hasNextPage}get clientSeed(){return this._clientSeed}get hasLoadedClientSeed(){return this._hasLoadedClientSeed}notifyDataChanged(){this.dispatchEvent(new CustomEvent("history-data-changed",{detail:{historyData:this._historyData,hasNextPage:this._hasNextPage,hasData:this._hasData}}))}notifyClientSeedChanged(){this.dispatchEvent(new CustomEvent("client-seed-changed",{detail:{clientSeed:this._clientSeed}}))}async preloadHistory(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return;try{let{historyData:o,hasNextPage:i}=await this.fetchHistory(void 0,this._initialLoadSize);this._historyData=o,this._hasData=o.length>0,this._hasNextPage=i,this._isInitialized=!0,this._hasLoadedMore=!1,this.notifyDataChanged()}catch(o){console.error("Failed to preload history:",o),this._isInitialized=!0,this._hasData=null}}async fetchHistory(o,i=5){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return{historyData:[],hasNextPage:!1};let a=new URL(`${this.host.gameData.baseUrl}/bet/my-bets`);if(a.searchParams.append("limit",i.toString()),o)a.searchParams.append("beforeId",o);let t=await fetch(a.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);let r=await t.json();return{historyData:r.results.map((n)=>({id:`${n.id.slice(0,3)}...${n.id.slice(-3)}`,fullId:n.id,timestamp:Nr(Dr(n.id)),currency:n.currency,bet:Number(n.amount),win:Number(n.payout)})),hasNextPage:!!r.nextCursor}}async refreshHistory(o=!1){try{let i=o&&this._hasLoadedMore?this._historyData.length:this._initialLoadSize,{historyData:a,hasNextPage:t}=await this.fetchHistory(void 0,i);if(this._historyData=a,this._hasData=a.length>0,this._hasNextPage=t,!o)this._hasLoadedMore=!1;this.notifyDataChanged()}catch(i){console.error("Failed to refresh history:",i)}}async loadMore(){if(!this._hasNextPage||this._historyData.length===0)return{historyData:[],hasNextPage:!1};let o=this._historyData[this._historyData.length-1],{historyData:i,hasNextPage:a}=await this.fetchHistory(o.fullId,this._initialLoadSize);return this._historyData=[...this._historyData,...i],this._hasNextPage=a,this._hasLoadedMore=!0,this.notifyDataChanged(),{historyData:i,hasNextPage:a}}addNewBet(o){if(this._historyData.some((a)=>a.fullId===o.id))return;let i={id:`${o.id.slice(0,3)}...${o.id.slice(-3)}`,fullId:o.id,timestamp:Nr(Dr(o.id)),currency:o.currency,bet:Number(o.amount),win:Number(o.payout)};if(!this._hasLoadedMore&&this._historyData.length>=this._initialLoadSize)this._historyData=[i,...this._historyData.slice(0,this._initialLoadSize-1)],this._hasNextPage=!0;else this._historyData=[i,...this._historyData];this._hasData=!0,this.notifyDataChanged()}async loadClientSeed(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken||this._hasLoadedClientSeed)return;try{let o=await fetch(`${this.host.gameData.baseUrl}/provably-fair/my-info`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);let i=await o.json();this._clientSeed=i.clientSeed,this._hasLoadedClientSeed=!0,this.notifyClientSeedChanged()}catch(o){console.error("Failed to load client seed:",o)}}updateClientSeed(o){this._clientSeed=o,this.notifyClientSeedChanged()}}var Mr={resources:["./base-sounds.mp3"],spritemap:{bet:{start:0,end:0.2612244897959184,loop:!1},click:{start:2,end:2.156734693877551,loop:!1},"dice-roll":{start:4,end:4.57469387755102,loop:!1},"dice-tick":{start:6,end:6.156734693877551,loop:!1},"half-double":{start:8,end:8.182857142857143,loop:!1},"keno-clear":{start:10,end:11.488979591836735,loop:!1},"keno-gem":{start:13,end:14.488979591836735,loop:!1},"limbo-tick":{start:16,end:16.339591836734694,loop:!1},"mines-bomb":{start:18,end:20.14204081632653,loop:!1},"mines-gem":{start:22,end:22.86204081632653,loop:!1},secondary:{start:24,end:24.18285714285714,loop:!1},toggle:{start:26,end:26.208979591836734,loop:!1},win:{start:28,end:29.358367346938774,loop:!1}}};class nt{host;muted=!1;audioCtx;buffer;constructor(o){this.host=o,o.addController(this);let i=window.AudioContext||window.webkitAudioContext;this.audioCtx=new i,fetch("https://assets.betorigami.com/sounds/sounds.mp3").then((a)=>{return a.arrayBuffer().then((t)=>{this.audioCtx.decodeAudioData(t,(r)=>{this.buffer=r})}).catch((t)=>{})}).catch(),window.onclick=()=>{this.play("bet",!0),window.onclick=null}}preload(o){}async play(o,i,a=1,t,r=()=>{}){if(!this.buffer)return;let e=this.audioCtx.createBufferSource();e.buffer=this.buffer;let n=Mr.spritemap[o];try{if(this.audioCtx&&e){let s=this.audioCtx.createGain(),l=t??(this.host.gameData?.volume??100)/100,h=i??this.muted;return s.gain.value=h?0:Math.min(l,1),s.connect(this.audioCtx.destination),e.connect(s),e.playbackRate.value=a,e.start(0,n.start),setTimeout(()=>{e?.stop(),r()},1000*(n.end-n.start)),e}}catch(s){}}}var Er=100;class T extends xo{static componentStyles=[];emit(o,i){let a=new CustomEvent(o,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...i});return this.dispatchEvent(a),a}}var D=ei(Symbol("game"));class fa extends T{constructor(){super(...arguments);this.currency="USD";this.showCurrencyAsText=!1;this.balance=0;this.currencyDecimals=2;this.baseUrl="https://betorigami.com";this.authToken="";this.origamiGame="DICE";this.lobbyUrl="https://betorigami.com";this.depositUrl=void 0;this.maxPayout=1e6;this.minBet=0.01;this.maxBet=100;this.betAmount="0.00";this.autobetNumberOfBets=0;this.hotkeysOpenEnabled=!1;this.volume=100;this.instantBetEnabled=!1;this.mainWidth=0;this.language="en"}_soundController=new nt(this);_historyController=new et(this);_hapticController=new rt(this);_gameProvider=new xi(this,{context:D,initialValue:{amount:this.betAmount,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),currency:this.currency,showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,authToken:this.authToken,autobetNumberOfBets:this.autobetNumberOfBets,hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language}});connectedCallback(){super.connectedCallback(),this.updateProviderValue(),this.fetchBalance()}disconnectedCallback(){super.disconnectedCallback()}updated(o){if(super.updated(o),o.has("currency")||o.has("balance")||o.has("baseUrl")||o.has("showCurrencyAsText")||o.has("authToken")||o.has("hotkeysOpenEnabled")||o.has("volume")||o.has("instantBetEnabled")||o.has("mainWidth"))this.updateProviderValue()}get gameData(){return this._gameProvider.value}updateProviderValue(){this._gameProvider.setValue({amount:this.betAmount,currency:this.currency,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,authToken:this.authToken,autobetNumberOfBets:this.autobetNumberOfBets,updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language})}fetchBalance=async()=>{if(!this.authToken||!this.baseUrl){this.balance=1000;return}try{let o=await fetch(`${this.baseUrl}/users/balance?currency=${this.currency}&origamiGame=${this.origamiGame}`,{headers:{Authorization:`Bearer ${this.authToken}`,"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch balance:",o.statusText);return}let i=await o.json();this.balance=new L(i.balance).toNumber()}catch(o){console.error("Error fetching balance:",o)}};updateHotkeysOpenEnabled(o){this.hotkeysOpenEnabled=o,this.updateProviderValue()}updateVolume(o){this.volume=o,this.updateProviderValue()}updateInstantBetEnabled(o){this.instantBetEnabled=o,this.updateProviderValue()}updateAutobetNumberOfBets(o){this.autobetNumberOfBets=o,this.updateProviderValue()}updateMainWidth(o){this.mainWidth=o,this.updateProviderValue()}updateBetAmount(o){if(o.isNaN())return;if(o.isLessThan(0)){this.betAmount="0";return}let i=o.toFixed(this.currencyDecimals);this.betAmount=i,this.updateProviderValue()}updateBalance(o){if(o.isNaN())return;if(o.isLessThan(0)){this.balance=0;return}this.balance=o.toNumber(),this.updateProviderValue()}render(){switch(this.origamiGame){case"DICE":return $`<origami-dice-game></origami-dice-game>`;case"KENO":return $`<origami-keno-game></origami-keno-game>`;case"MINES":return $`<origami-mines-game></origami-mines-game>`;case"LIMBO":return $`<origami-limbo-game></origami-limbo-game>`;default:this.origamiGame}}}d([Z({type:String})],fa.prototype,"currency",void 0),d([Z({type:Boolean})],fa.prototype,"showCurrencyAsText",void 0),d([Z({type:Number})],fa.prototype,"balance",void 0),d([Z({type:Number})],fa.prototype,"currencyDecimals",void 0),d([Z({type:String})],fa.prototype,"baseUrl",void 0),d([Z({type:String})],fa.prototype,"authToken",void 0),d([Z({type:String})],fa.prototype,"origamiGame",void 0),d([Z({type:String})],fa.prototype,"lobbyUrl",void 0),d([Z({type:String})],fa.prototype,"depositUrl",void 0),d([Z({type:Number})],fa.prototype,"maxPayout",void 0),d([Z({type:Number})],fa.prototype,"minBet",void 0),d([Z({type:Number})],fa.prototype,"maxBet",void 0),d([O()],fa.prototype,"betAmount",void 0),d([O()],fa.prototype,"autobetNumberOfBets",void 0),d([O()],fa.prototype,"hotkeysOpenEnabled",void 0),d([O()],fa.prototype,"volume",void 0),d([O()],fa.prototype,"instantBetEnabled",void 0),d([O()],fa.prototype,"mainWidth",void 0),d([Z()],fa.prototype,"language",void 0),fa=d([X("origami-game-provider-wrapper")],fa);var oe=G`
|
|
13
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),jr=/'/g,Lr=/"/g,Xr=/^(?:script|style|textarea|title)$/i,Na=(o)=>(i,...a)=>({_$litType$:o,strings:i,values:a}),$=Na(1),eo=Na(2),Tl=Na(3),Ko=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Or=new WeakMap,Hi=Zi.createTreeWalker(Zi,129);function Ar(o,i){if(!Da(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fr!==void 0?Fr.createHTML(i):i}var Gr=(o,i)=>{let a=o.length-1,t=[],r,e=i===2?"<svg>":i===3?"<math>":"",n=_i;for(let s=0;s<a;s++){let l=o[s],h,p,H=-1,f=0;for(;f<l.length&&(n.lastIndex=f,p=n.exec(l),p!==null);)f=n.lastIndex,n===_i?p[1]==="!--"?n=Cr:p[1]!==void 0?n=Pr:p[2]!==void 0?(Xr.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=yi):p[3]!==void 0&&(n=yi):n===yi?p[0]===">"?(n=r??_i,H=-1):p[1]===void 0?H=-2:(H=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?yi:p[3]==='"'?Lr:jr):n===Lr||n===jr?n=yi:n===Cr||n===Pr?n=_i:(n=yi,r=void 0);let y=n===yi&&o[s+1].startsWith("/>")?" ":"";e+=n===_i?l+ss:H>=0?(t.push(h),l.slice(0,H)+"$lit$"+l.slice(H)+si+y):l+si+(H===-2?s:y)}return[Ar(o,e+(o[a]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),t]};class Gi{constructor({strings:o,_$litType$:i},a){let t;this.parts=[];let r=0,e=0,n=o.length-1,s=this.parts,[l,h]=Gr(o,i);if(this.el=Gi.createElement(l,a),Hi.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(t=Hi.nextNode())!==null&&s.length<n;){if(t.nodeType===1){if(t.hasAttributes())for(let p of t.getAttributeNames())if(p.endsWith("$lit$")){let H=h[e++],f=t.getAttribute(p).split(si),y=/([.?@])?(.*)/.exec(H);s.push({type:1,index:r,name:y[2],strings:f,ctor:y[1]==="."?Ea:y[1]==="?"?ot:y[1]==="@"?it:Yi}),t.removeAttribute(p)}else p.startsWith(si)&&(s.push({type:6,index:r}),t.removeAttribute(p));if(Xr.test(t.tagName)){let p=t.textContent.split(si),H=p.length-1;if(H>0){t.textContent=ua?ua.emptyScript:"";for(let f=0;f<H;f++)t.append(p[f],Xi()),Hi.nextNode(),s.push({type:2,index:++r});t.append(p[H],Xi())}}}else if(t.nodeType===8)if(t.data===Ba)s.push({type:2,index:r});else{let p=-1;for(;(p=t.data.indexOf(si,p+1))!==-1;)s.push({type:7,index:r}),p+=si.length-1}r++}}static createElement(o,i){let a=Zi.createElement("template");return a.innerHTML=o,a}}function Si(o,i,a=o,t){if(i===Ko)return i;let r=t!==void 0?a._$Co?.[t]:a._$Cl,e=Ai(i)?void 0:i._$litDirective$;return r?.constructor!==e&&(r?._$AO?.(!1),e===void 0?r=void 0:(r=new e(o),r._$AT(o,a,t)),t!==void 0?(a._$Co??=[])[t]=r:a._$Cl=r),r!==void 0&&(i=Si(o,r._$AS(o,i.values),r,t)),i}class Ma{constructor(o,i){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:i},parts:a}=this._$AD,t=(o?.creationScope??Zi).importNode(i,!0);Hi.currentNode=t;let r=Hi.nextNode(),e=0,n=0,s=a[0];for(;s!==void 0;){if(e===s.index){let l;s.type===2?l=new $i(r,r.nextSibling,this,o):s.type===1?l=new s.ctor(r,s.name,s.strings,this,o):s.type===6&&(l=new at(r,this,o)),this._$AV.push(l),s=a[++n]}e!==s?.index&&(r=Hi.nextNode(),e++)}return Hi.currentNode=Zi,t}p(o){let i=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(o,a,i),i+=a.strings.length-2):a._$AI(o[i])),i++}}class $i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,i,a,t){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=i,this._$AM=a,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,i=this._$AM;return i!==void 0&&o?.nodeType===11&&(o=i.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,i=this){o=Si(this,o,i),Ai(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==Ko&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_r(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==_&&Ai(this._$AH)?this._$AA.nextSibling.data=o:this.T(Zi.createTextNode(o)),this._$AH=o}$(o){let{values:i,_$litType$:a}=o,t=typeof a=="number"?this._$AC(o):(a.el===void 0&&(a.el=Gi.createElement(Ar(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===t)this._$AH.p(i);else{let r=new Ma(t,this),e=r.u(this.options);r.p(i),this.T(e),this._$AH=r}}_$AC(o){let i=Or.get(o.strings);return i===void 0&&Or.set(o.strings,i=new Gi(o)),i}k(o){Da(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,a,t=0;for(let r of o)t===i.length?i.push(a=new $i(this.O(Xi()),this.O(Xi()),this,this.options)):a=i[t],a._$AI(r),t++;t<i.length&&(this._$AR(a&&a._$AB.nextSibling,t),i.length=t)}_$AR(o=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}}class Yi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,i,a,t,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=i,this._$AM=t,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=_}_$AI(o,i=this,a,t){let r=this.strings,e=!1;if(r===void 0)o=Si(this,o,i,0),e=!Ai(o)||o!==this._$AH&&o!==Ko,e&&(this._$AH=o);else{let n=o,s,l;for(o=r[0],s=0;s<r.length-1;s++)l=Si(this,n[a+s],i,s),l===Ko&&(l=this._$AH[s]),e||=!Ai(l)||l!==this._$AH[s],l===_?o=_:o!==_&&(o+=(l??"")+r[s+1]),this._$AH[s]=l}e&&!t&&this.j(o)}j(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class Ea extends Yi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}}class ot extends Yi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}}class it extends Yi{constructor(o,i,a,t,r){super(o,i,a,t,r),this.type=5}_$AI(o,i=this){if((o=Si(this,o,i,0)??_)===Ko)return;let a=this._$AH,t=o===_&&a!==_||o.capture!==a.capture||o.once!==a.once||o.passive!==a.passive,r=o!==_&&(a===_||t);t&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class at{constructor(o,i,a){this.element=o,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(o){Si(this,o)}}var Tr={M:"$lit$",P:si,A:Ba,C:1,L:Gr,R:Ma,D:_r,V:Si,I:$i,H:Yi,N:ot,U:it,B:Ea,F:at},ls=Ta.litHtmlPolyfillSupport;ls?.(Gi,$i),(Ta.litHtmlVersions??=[]).push("3.3.0");var Br=(o,i,a)=>{let t=a?.renderBefore??i,r=t._$litPart$;if(r===void 0){let e=a?.renderBefore??null;t._$litPart$=r=new $i(i.insertBefore(Xi(),e),e,void 0,a??{})}return r._$AI(o),r};var tt=globalThis;class xo extends gi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Br(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}xo._$litElement$=!0,xo.finalized=!0,tt.litElementHydrateSupport?.({LitElement:xo});var ds=tt.litElementPolyfillSupport;ds?.({LitElement:xo});(tt.litElementVersions??=[]).push("4.2.0");var X=(o)=>(i,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var cs={attribute:!0,type:String,converter:Oi,reflect:!1,hasChanged:ha},hs=(o=cs,i,a)=>{let{kind:t,metadata:r}=a,e=globalThis.litPropertyMetadata.get(r);if(e===void 0&&globalThis.litPropertyMetadata.set(r,e=new Map),t==="setter"&&((o=Object.create(o)).wrapped=!0),e.set(a.name,o),t==="accessor"){let{name:n}=a;return{set(s){let l=i.get.call(this);i.set.call(this,s),this.requestUpdate(n,l,o)},init(s){return s!==void 0&&this.C(n,void 0,o,s),s}}}if(t==="setter"){let{name:n}=a;return function(s){let l=this[n];i.call(this,s),this.requestUpdate(n,l,o)}}throw Error("Unsupported decorator location: "+t)};function Z(o){return(i,a)=>typeof a=="object"?hs(o,i,a):((t,r,e)=>{let n=r.hasOwnProperty(e);return r.constructor.createProperty(e,t),n?Object.getOwnPropertyDescriptor(r,e):void 0})(o,i,a)}function O(o){return Z({...o,state:!0,attribute:!1})}var Ki=(o,i,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,a),a);function fo(o,i){return(a,t,r)=>{let e=(n)=>n.renderRoot?.querySelector(o)??null;if(i){let{get:n,set:s}=typeof t=="object"?a:r??(()=>{let l=Symbol();return{get(){return this[l]},set(h){this[l]=h}}})();return Ki(a,t,{get(){let l=n.call(this);return l===void 0&&(l=e(this),(l!==null||this.hasUpdated)&&s.call(this,l)),l}})}return Ki(a,t,{get(){return e(this)}})}}class rt{canVibrate;constructor(o){o.addController(this),this.canVibrate="vibrate"in navigator}trigger(o=10){if(!this.canVibrate)return;try{navigator.vibrate(o)}catch{}}click(){this.trigger(50)}lightClick(){this.trigger(35)}}function Dr(o){let i=o.replace(/-/g,"").substring(0,12),a=parseInt(i,16);return new Date(a)}function Nr(o){return o.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0})}class et extends EventTarget{host;_historyData=[];_hasData=null;_isInitialized=!1;_hasNextPage=!1;_initialLoadSize=6;_hasLoadedMore=!1;_clientSeed=null;_hasLoadedClientSeed=!1;constructor(o){super();this.host=o,o.addController(this),setTimeout(()=>{this.preloadHistory(),this.loadClientSeed()},100)}get historyData(){return this._historyData}get hasData(){return this._hasData}get isInitialized(){return this._isInitialized}get hasNextPage(){return this._hasNextPage}get clientSeed(){return this._clientSeed}get hasLoadedClientSeed(){return this._hasLoadedClientSeed}notifyDataChanged(){this.dispatchEvent(new CustomEvent("history-data-changed",{detail:{historyData:this._historyData,hasNextPage:this._hasNextPage,hasData:this._hasData}}))}notifyClientSeedChanged(){this.dispatchEvent(new CustomEvent("client-seed-changed",{detail:{clientSeed:this._clientSeed}}))}async preloadHistory(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return;try{let{historyData:o,hasNextPage:i}=await this.fetchHistory(void 0,this._initialLoadSize);this._historyData=o,this._hasData=o.length>0,this._hasNextPage=i,this._isInitialized=!0,this._hasLoadedMore=!1,this.notifyDataChanged()}catch(o){console.error("Failed to preload history:",o),this._isInitialized=!0,this._hasData=null}}async fetchHistory(o,i=5){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return{historyData:[],hasNextPage:!1};let a=new URL(`${this.host.gameData.baseUrl}/bet/my-bets`);if(a.searchParams.append("limit",i.toString()),o)a.searchParams.append("beforeId",o);let t=await fetch(a.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);let r=await t.json();return{historyData:r.results.map((n)=>({id:`${n.id.slice(0,3)}...${n.id.slice(-3)}`,fullId:n.id,timestamp:Nr(Dr(n.id)),currency:n.currency,bet:Number(n.amount),win:Number(n.payout)})),hasNextPage:!!r.nextCursor}}async refreshHistory(o=!1){try{let i=o&&this._hasLoadedMore?this._historyData.length:this._initialLoadSize,{historyData:a,hasNextPage:t}=await this.fetchHistory(void 0,i);if(this._historyData=a,this._hasData=a.length>0,this._hasNextPage=t,!o)this._hasLoadedMore=!1;this.notifyDataChanged()}catch(i){console.error("Failed to refresh history:",i)}}async loadMore(){if(!this._hasNextPage||this._historyData.length===0)return{historyData:[],hasNextPage:!1};let o=this._historyData[this._historyData.length-1],{historyData:i,hasNextPage:a}=await this.fetchHistory(o.fullId,this._initialLoadSize);return this._historyData=[...this._historyData,...i],this._hasNextPage=a,this._hasLoadedMore=!0,this.notifyDataChanged(),{historyData:i,hasNextPage:a}}addNewBet(o){if(this._historyData.some((a)=>a.fullId===o.id))return;let i={id:`${o.id.slice(0,3)}...${o.id.slice(-3)}`,fullId:o.id,timestamp:Nr(Dr(o.id)),currency:o.currency,bet:Number(o.amount),win:Number(o.payout)};if(!this._hasLoadedMore&&this._historyData.length>=this._initialLoadSize)this._historyData=[i,...this._historyData.slice(0,this._initialLoadSize-1)],this._hasNextPage=!0;else this._historyData=[i,...this._historyData];this._hasData=!0,this.notifyDataChanged()}async loadClientSeed(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken||this._hasLoadedClientSeed)return;try{let o=await fetch(`${this.host.gameData.baseUrl}/provably-fair/my-info`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);let i=await o.json();this._clientSeed=i.clientSeed,this._hasLoadedClientSeed=!0,this.notifyClientSeedChanged()}catch(o){console.error("Failed to load client seed:",o)}}updateClientSeed(o){this._clientSeed=o,this.notifyClientSeedChanged()}}class nt{host;muted=!1;audioCtx;buffer;spriteMap=null;constructor(o){this.host=o,o.addController(this);let i=window.AudioContext||window.webkitAudioContext;this.audioCtx=new i,fetch("https://assets.betorigami.com/sounds/sounds.mp3").then((a)=>{return a.arrayBuffer().then((t)=>{this.audioCtx.decodeAudioData(t,(r)=>{this.buffer=r})}).catch((t)=>{})}).catch(),fetch("https://assets.betorigami.com/sounds/sounds.json").then((a)=>a.json()).catch().then((a)=>{this.spriteMap=a.spritemap}).catch(),window.onclick=()=>{this.play("bet",!0),window.onclick=null}}preload(o){}async play(o,i,a=1,t,r=()=>{}){if(!this.buffer||!this.spriteMap)return;let e=this.audioCtx.createBufferSource();e.buffer=this.buffer;let n=this.spriteMap[o];try{if(this.audioCtx&&e){let s=this.audioCtx.createGain(),l=t??(this.host.gameData?.volume??100)/100,h=i??this.muted;return s.gain.value=h?0:Math.min(l,1),s.connect(this.audioCtx.destination),e.connect(s),e.playbackRate.value=a,e.start(0,n.start),setTimeout(()=>{e?.stop(),r()},1000*(n.end-n.start)),e}}catch(s){}}}var Mr=100;class T extends xo{static componentStyles=[];emit(o,i){let a=new CustomEvent(o,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...i});return this.dispatchEvent(a),a}}var D=ei(Symbol("game"));class fa extends T{constructor(){super(...arguments);this.currency="USD";this.showCurrencyAsText=!1;this.balance=0;this.currencyDecimals=2;this.baseUrl="https://betorigami.com";this.authToken="";this.origamiGame="DICE";this.lobbyUrl="https://betorigami.com";this.depositUrl=void 0;this.maxPayout=1e6;this.minBet=0.01;this.maxBet=100;this.betAmount="0.00";this.autobetNumberOfBets=0;this.hotkeysOpenEnabled=!1;this.volume=100;this.instantBetEnabled=!1;this.mainWidth=0;this.language="en"}_soundController=new nt(this);_historyController=new et(this);_hapticController=new rt(this);_gameProvider=new xi(this,{context:D,initialValue:{amount:this.betAmount,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),currency:this.currency,showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,authToken:this.authToken,autobetNumberOfBets:this.autobetNumberOfBets,hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language}});connectedCallback(){super.connectedCallback(),this.updateProviderValue(),this.fetchBalance()}disconnectedCallback(){super.disconnectedCallback()}updated(o){if(super.updated(o),o.has("currency")||o.has("balance")||o.has("baseUrl")||o.has("showCurrencyAsText")||o.has("authToken")||o.has("hotkeysOpenEnabled")||o.has("volume")||o.has("instantBetEnabled")||o.has("mainWidth"))this.updateProviderValue()}get gameData(){return this._gameProvider.value}updateProviderValue(){this._gameProvider.setValue({amount:this.betAmount,currency:this.currency,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,authToken:this.authToken,autobetNumberOfBets:this.autobetNumberOfBets,updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language})}fetchBalance=async()=>{if(!this.authToken||!this.baseUrl){this.balance=1000;return}try{let o=await fetch(`${this.baseUrl}/users/balance?currency=${this.currency}&origamiGame=${this.origamiGame}`,{headers:{Authorization:`Bearer ${this.authToken}`,"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch balance:",o.statusText);return}let i=await o.json();this.balance=new L(i.balance).toNumber()}catch(o){console.error("Error fetching balance:",o)}};updateHotkeysOpenEnabled(o){this.hotkeysOpenEnabled=o,this.updateProviderValue()}updateVolume(o){this.volume=o,this.updateProviderValue()}updateInstantBetEnabled(o){this.instantBetEnabled=o,this.updateProviderValue()}updateAutobetNumberOfBets(o){this.autobetNumberOfBets=o,this.updateProviderValue()}updateMainWidth(o){this.mainWidth=o,this.updateProviderValue()}updateBetAmount(o){if(o.isNaN())return;if(o.isLessThan(0)){this.betAmount="0";return}let i=o.toFixed(this.currencyDecimals);this.betAmount=i,this.updateProviderValue()}updateBalance(o){if(o.isNaN())return;if(o.isLessThan(0)){this.balance=0;return}this.balance=o.toNumber(),this.updateProviderValue()}render(){switch(this.origamiGame){case"DICE":return $`<origami-dice-game></origami-dice-game>`;case"KENO":return $`<origami-keno-game></origami-keno-game>`;case"MINES":return $`<origami-mines-game></origami-mines-game>`;case"LIMBO":return $`<origami-limbo-game></origami-limbo-game>`;default:this.origamiGame}}}d([Z({type:String})],fa.prototype,"currency",void 0),d([Z({type:Boolean})],fa.prototype,"showCurrencyAsText",void 0),d([Z({type:Number})],fa.prototype,"balance",void 0),d([Z({type:Number})],fa.prototype,"currencyDecimals",void 0),d([Z({type:String})],fa.prototype,"baseUrl",void 0),d([Z({type:String})],fa.prototype,"authToken",void 0),d([Z({type:String})],fa.prototype,"origamiGame",void 0),d([Z({type:String})],fa.prototype,"lobbyUrl",void 0),d([Z({type:String})],fa.prototype,"depositUrl",void 0),d([Z({type:Number})],fa.prototype,"maxPayout",void 0),d([Z({type:Number})],fa.prototype,"minBet",void 0),d([Z({type:Number})],fa.prototype,"maxBet",void 0),d([O()],fa.prototype,"betAmount",void 0),d([O()],fa.prototype,"autobetNumberOfBets",void 0),d([O()],fa.prototype,"hotkeysOpenEnabled",void 0),d([O()],fa.prototype,"volume",void 0),d([O()],fa.prototype,"instantBetEnabled",void 0),d([O()],fa.prototype,"mainWidth",void 0),d([Z()],fa.prototype,"language",void 0),fa=d([X("origami-game-provider-wrapper")],fa);var Er=G`
|
|
14
14
|
:host {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
@@ -247,38 +247,38 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
247
247
|
justify-content: flex-end;
|
|
248
248
|
gap: 4px;
|
|
249
249
|
}
|
|
250
|
-
`;var
|
|
250
|
+
`;var oe=eo`
|
|
251
251
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
252
252
|
<path fill="#F5CB3F" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
|
|
253
253
|
<path fill="#366218" d="M2 10.232a.41.41 0 0 1 .03-.138L3.6 5.891a.462.462 0 0 1 .109-.183c.039-.034.097-.052.176-.052h.562c.078 0 .137.018.176.052a.465.465 0 0 1 .108.183l1.57 4.203c.02.055.03.1.03.131a.132.132 0 0 1-.033.097.128.128 0 0 1-.096.035h-.958a.217.217 0 0 1-.136-.038.264.264 0 0 1-.08-.128l-.217-.664H3.514l-.21.664a.265.265 0 0 1-.08.128.23.23 0 0 1-.143.038H2.13c-.087 0-.13-.042-.13-.125Zm2.54-1.645-.377-1.175-.377 1.175h.754ZM6.811 10.274c-.047-.056-.07-.143-.07-.263V6.01c0-.12.024-.209.073-.266.05-.058.132-.087.247-.087h1.52c.573 0 .995.134 1.267.401.272.268.408.666.408 1.196 0 .66-.227 1.113-.68 1.362l.612 1.486a.27.27 0 0 1 .025.11.143.143 0 0 1-.04.104.144.144 0 0 1-.108.042H9.2a.316.316 0 0 1-.146-.028c-.035-.018-.06-.053-.077-.104l-.513-1.403h-.476v1.189c0 .12-.024.207-.074.263-.05.055-.134.083-.253.083h-.6c-.119 0-.202-.028-.25-.083Zm1.635-2.44c.374 0 .562-.194.562-.581 0-.387-.177-.588-.531-.588h-.489v1.169h.458ZM11.775 10.917c-.05-.055-.074-.143-.074-.263V10.4a3.005 3.005 0 0 1-.587-.152 1.722 1.722 0 0 1-.464-.25c-.074-.055-.11-.108-.11-.158 0-.023.014-.063.042-.118l.303-.539c.033-.055.066-.083.099-.083.02 0 .056.016.105.048.152.102.326.181.522.239.196.058.388.086.578.086.202 0 .347-.032.436-.097.088-.064.132-.168.132-.31a.425.425 0 0 0-.067-.25.555.555 0 0 0-.198-.165 6.522 6.522 0 0 0-.458-.208 4.3 4.3 0 0 1-.685-.356 1.56 1.56 0 0 1-.458-.46 1.206 1.206 0 0 1-.179-.67c0-.355.088-.643.263-.864a1.3 1.3 0 0 1 .726-.45v-.29c0-.12.024-.208.074-.266.05-.057.134-.086.253-.086h.495c.12 0 .204.029.256.086.052.058.077.147.077.267v.242c.396.055.71.177.946.366.07.06.105.115.105.166 0 .032-.013.069-.037.11l-.303.54c-.037.055-.07.082-.099.082-.017 0-.05-.016-.099-.048-.226-.175-.513-.263-.859-.263-.185 0-.324.033-.417.097-.093.065-.139.17-.139.318 0 .134.043.235.13.304a2.566 2.566 0 0 0 .571.304l.09.042c.325.152.573.287.742.404.168.118.296.262.383.432.086.17.13.392.13.664 0 .341-.096.627-.288.857-.192.23-.477.38-.856.45v.234c0 .12-.025.208-.077.263-.052.055-.137.083-.256.083h-.495c-.12 0-.204-.028-.253-.083Z"/>
|
|
254
254
|
</svg>
|
|
255
|
-
`;var
|
|
255
|
+
`;var ie=eo`
|
|
256
256
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
257
257
|
<path fill="#006847" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
|
|
258
258
|
<path fill="#FFAE2C" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
|
|
259
259
|
</svg>
|
|
260
|
-
`;var
|
|
260
|
+
`;var ae=eo`
|
|
261
261
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
262
262
|
<circle cx="8" cy="8" r="8" fill="#229E45"/>
|
|
263
263
|
<path fill="#F8E509" d="M8.75 10.682c.47.468 1.091.763 1.736.876V12.7h1.128v-1.134c1.124-.193 1.736-1.006 1.736-1.964 0-2.162-3.179-1.837-3.179-3.1 0-.468.413-.774 1.038-.774.537 0 1.123.258 1.498.593l.547-1.004c-.448-.407-1.043-.64-1.64-.707V3.5h-1.128v1.185c-.924.242-1.553.926-1.553 1.875 0 2.114 3.178 1.846 3.178 3.137 0 .46-.384.775-.998.775-.615 0-1.287-.354-1.69-.717l-.673.927ZM3 11.382V4.65h2.552c.488 0 .905.091 1.25.273.348.18.612.435.793.766.183.329.275.716.275 1.16 0 .447-.093.832-.278 1.154-.185.32-.454.565-.805.736-.35.171-.773.257-1.27.257H3.808V7.852h1.488c.261 0 .478-.037.65-.112a.782.782 0 0 0 .386-.335c.086-.15.13-.334.13-.556 0-.223-.044-.412-.13-.565a.804.804 0 0 0-.389-.348 1.538 1.538 0 0 0-.653-.122h-.923v5.568H3ZM6.493 8.32 8.1 11.382H6.59L5.019 8.32h1.475Z"/>
|
|
264
264
|
</svg>
|
|
265
|
-
`;var
|
|
265
|
+
`;var te=eo`
|
|
266
266
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
267
267
|
<path fill="#41E733" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
|
|
268
268
|
<path fill="#D52B1E" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
|
|
269
269
|
<path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
|
|
270
270
|
</svg>
|
|
271
|
-
`;var
|
|
271
|
+
`;var re=eo`
|
|
272
272
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
273
273
|
<circle cx="8" cy="8" r="8" fill="#fff"/>
|
|
274
274
|
<path fill="#EE1C25" d="M8 0C3.589 0 0 3.589 0 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8Zm2.667 7.333v1.334h-2v.666h2v1.334h-2v2H7.333v-2h-2V9.333h2v-.666h-2V7.333h1.28l-2.216-2.77 1.041-.834L8 6.933l2.563-3.204 1.041.834-2.217 2.77h1.28Z"/>
|
|
275
275
|
</svg>
|
|
276
|
-
`;var
|
|
276
|
+
`;var ee=eo`
|
|
277
277
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
278
278
|
<circle cx="8" cy="8" r="8" fill="#012169"/>
|
|
279
279
|
<path fill="#FFAB01" d="M5.23 8c0-.178.008-.357.022-.535H4.157V6.394h1.28c.18-.644.491-1.254.986-1.733.615-.597 1.467-.944 2.563-.944 1.485 0 2.426.593 2.793.96l-.758.757c-.169-.168-.838-.646-2.035-.646-.853 0-1.426.262-1.816.64a2.576 2.576 0 0 0-.605.966h2.957v1.07H6.33a5.627 5.627 0 0 0 0 1.072h3.193v1.07H6.565c.142.382.341.71.605.966.39.378.963.64 1.816.64 1.197 0 1.866-.477 2.035-.645l.758.757c-.367.367-1.308.96-2.793.96-1.096 0-1.948-.348-2.563-.944-.495-.48-.806-1.09-.986-1.733h-1.28V8.536h1.095A6.768 6.768 0 0 1 5.23 8Z"/>
|
|
280
280
|
</svg>
|
|
281
|
-
`;var
|
|
281
|
+
`;var ne=eo`
|
|
282
282
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
283
283
|
<circle cx="8" cy="8" r="8" fill="#FFAB01"/>
|
|
284
284
|
<g clip-path="url(#a)">
|
|
@@ -290,37 +290,37 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
290
290
|
</clipPath>
|
|
291
291
|
</defs>
|
|
292
292
|
</svg>
|
|
293
|
-
`;var
|
|
293
|
+
`;var se=eo`
|
|
294
294
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
295
295
|
<path fill="#BC002D" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
|
|
296
296
|
<path fill="#fff" d="M8 0C3.589 0 0 3.589 0 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8Zm2.667 7.333v1.334h-2v.666h2v1.334h-2v2H7.333v-2h-2V9.333h2v-.666h-2V7.333h1.28l-2.216-2.77 1.041-.834L8 6.933l2.563-3.204 1.041.834-2.217 2.77h1.28Z"/>
|
|
297
297
|
</svg>
|
|
298
|
-
`;var
|
|
298
|
+
`;var le=eo`
|
|
299
299
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
300
300
|
<path fill="#006847" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
|
|
301
301
|
<path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
|
|
302
302
|
</svg>
|
|
303
|
-
`;var
|
|
303
|
+
`;var de=eo`
|
|
304
304
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
305
305
|
<path fill="#006847" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
|
|
306
306
|
<path fill="#fff" d="m5.82 3.59 1.772 2.756h2.613V3.59h1.102v2.756h1.102v1.102h-1.102V8.55h1.102v1.103h-1.102v2.756H10.18L8.408 9.653H5.795v2.756H4.693V9.653H3.59V8.55h1.102V7.448H3.59V6.346h1.102V3.59H5.82Zm4.385 6.82v-.757h-.487l.487.757ZM9.009 8.55h1.196V7.448H8.3l.708 1.102Zm-3.214 0H7.7l-.708-1.102H5.795V8.55Zm0-2.204h.487l-.487-.758v.758Z"/>
|
|
307
307
|
</svg>
|
|
308
|
-
`;var
|
|
308
|
+
`;var ce=eo`
|
|
309
309
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
310
310
|
<circle cx="8" cy="8" r="8" fill="#C8102E"/>
|
|
311
311
|
<path fill="#fff" d="M3.5 11.5v-7h1.511v3.086h.094L7.677 4.5h1.811L6.836 7.634 9.52 11.5H7.712L5.754 8.622l-.743.889V11.5H3.5ZM10.248 11.5V6.25h1.44v.916h.057c.097-.326.261-.572.492-.738.23-.169.495-.253.795-.253a2.295 2.295 0 0 1 .468.051v1.292a2.655 2.655 0 0 0-.628-.079c-.219 0-.414.047-.586.14-.17.092-.305.22-.405.383a1.088 1.088 0 0 0-.147.568v2.97h-1.486Z"/>
|
|
312
312
|
</svg>
|
|
313
|
-
`;var
|
|
313
|
+
`;var he=eo`
|
|
314
314
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
315
315
|
<path fill="#012169" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
|
|
316
316
|
<path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
|
|
317
317
|
</svg>
|
|
318
|
-
`;var
|
|
318
|
+
`;var ue=eo`
|
|
319
319
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
320
320
|
<path fill="#D73531" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
|
|
321
321
|
<path fill="#fff" d="M5.386 3h3.129c1.148 0 2.014.255 2.6.764.59.504.885 1.245.885 2.223 0 .987-.295 1.733-.885 2.237-.586.505-1.452.757-2.6.757H6.772v1.112h3.8v1.112h-3.8V13H5.386v-1.795H4v-1.112h1.386V8.981H4V7.87h1.386V3Zm1.386 1.112v3.757h1.743c.645 0 1.143-.163 1.495-.489.353-.326.529-.79.529-1.393 0-.598-.176-1.06-.529-1.386-.352-.326-.85-.49-1.495-.49H6.772Z"/>
|
|
322
322
|
</svg>
|
|
323
|
-
`;var
|
|
323
|
+
`;var fe=eo`
|
|
324
324
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
|
|
325
325
|
<path fill="#D73531" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
|
|
326
326
|
<path fill="#F6F6F6" d="M6.324 13.32V7.953l-2.34.558V7.367l2.34-.558V5.657l-2.34.558V5.07l2.34-.557V2.637h1.405v1.535l2.427-.594v1.145l-2.427.594v1.151l2.427-.594V7.02l-2.427.594v4.483a3.172 3.172 0 0 0 1.224-.492c.353-.241.649-.544.887-.91.24-.364.42-.778.544-1.241a5.8 5.8 0 0 0 .184-1.493h1.45c0 .821-.124 1.564-.37 2.228a4.956 4.956 0 0 1-1.036 1.702c-.444.47-.973.834-1.586 1.09a5.176 5.176 0 0 1-2.014.384 5.31 5.31 0 0 1-.688-.043Z"/>
|
|
@@ -331,7 +331,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
331
331
|
<path fill="#229E45" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
|
|
332
332
|
<path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
|
|
333
333
|
</svg>
|
|
334
|
-
`;var Qo=(o)=>{switch(o){case"USD":return st;case"EUR":return
|
|
334
|
+
`;var Qo=(o)=>{switch(o){case"USD":return st;case"EUR":return ee;case"ARS":return oe;case"AUD":return ie;case"BRL":return ae;case"CAD":return te;case"CNY":return re;case"INR":return ne;case"JPY":return se;case"MXN":return le;case"NGN":return de;case"NOK":return ce;case"NZD":return he;case"RUB":return ue;case"TRY":return fe;default:return st}};var Wi=(o)=>{switch(o){case"USD":return"$";case"EUR":return"€";case"ARS":return"$";case"AUD":return"$";case"BRL":return"R$";case"CAD":return"$";case"CNY":return"¥";case"INR":return"₹";case"JPY":return"¥";case"MXN":return"$";case"NGN":return"₦";case"NOK":return"kr";case"NZD":return"$";case"RUB":return"₽";case"TRY":return"₺";default:return"$"}};var qi=(o)=>{switch(o){case"USD":return 2;case"EUR":return 2;case"ARS":return 2;case"AUD":return 2;case"BRL":return 2;case"CAD":return 2;case"CNY":return 2;case"INR":return 2;case"JPY":return 0;case"MXN":return 2;case"NGN":return 2;case"NOK":return 2;case"NZD":return 2;case"RUB":return 2;case"TRY":return 2;default:return 2}};var Ui=(o)=>{switch(o){case"USD":return 0;case"EUR":return 1;case"ARS":return 0;case"AUD":return 0;case"BRL":return 0;case"CAD":return 0;case"CNY":return 0;case"INR":return 0;case"JPY":return 0;case"MXN":return 0;case"NGN":return 0;case"NOK":return 1;case"NZD":return 0;case"RUB":return 1;case"TRY":return 0;default:return 0}};class ga extends T{constructor(){super(...arguments);this.baseUrl="https://betorigami.com";this.betId="";this._betDetails=null}static styles=Er;get _gameName(){return this._betDetails?.gameName||"Loading..."}get _roundId(){return this._betDetails?.id||"Loading..."}get _timestamp(){if(!this._betDetails||!this._betDetails.betActions[0])return"Loading...";return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(this._betDetails.betActions[0].createdAt))}get _currency(){if(!this._betDetails)return $`Loading...`;let{currency:o}=this._betDetails;return $`${o} ${Qo(o)}`}get _betAmount(){if(!this._betDetails)return $`Loading...`;let{amount:o,currency:i}=this._betDetails,a=Wi(i),t=Ui(i),r=qi(i),e=Qo(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}get _multiplier(){if(!this._betDetails)return"Loading...";return`${Number(this._betDetails.multiplier).toFixed(2)}x`}get _payout(){if(!this._betDetails)return $`Loading...`;let{payout:o,currency:i}=this._betDetails,a=Wi(i),t=Ui(i),r=qi(i),e=Qo(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}render(){return $`
|
|
335
335
|
<div class="header-outer">
|
|
336
336
|
<div class="header-middle">
|
|
337
337
|
<div class="header-inner">
|
|
@@ -410,7 +410,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
410
410
|
</div>
|
|
411
411
|
</div>
|
|
412
412
|
</div>
|
|
413
|
-
`}async connectedCallback(){super.connectedCallback(),await this.fetchBetDetails()}async handleShare(){let o={url:window.location.href};try{if(navigator.share)await navigator.share(o);else await navigator.clipboard.writeText(window.location.href),alert("Link copied to clipboard!")}catch(i){console.error("Error sharing:",i)}}fetchBetDetails=async()=>{if(!this.baseUrl||!this.betId)return;try{let o=await fetch(`${this.baseUrl}/bet/bet-info?betId=${this.betId}`,{headers:{"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch bet details:",o.statusText);return}this._betDetails=await o.json()}catch(o){console.error("Error fetching bet details:",o)}}}d([Z({type:String})],ga.prototype,"baseUrl",void 0),d([Z({type:String})],ga.prototype,"betId",void 0),d([O()],ga.prototype,"_betDetails",void 0),ga=d([X("origami-bet-details")],ga);var Jo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},To=(o)=>(...i)=>({_$litDirective$:o,values:i});class Bo{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,i,a){this._$Ct=o,this._$AM=i,this._$Ci=a}_$AS(o,i){return this.update(o,i)}update(o,i){return this.render(...i)}}var
|
|
413
|
+
`}async connectedCallback(){super.connectedCallback(),await this.fetchBetDetails()}async handleShare(){let o={url:window.location.href};try{if(navigator.share)await navigator.share(o);else await navigator.clipboard.writeText(window.location.href),alert("Link copied to clipboard!")}catch(i){console.error("Error sharing:",i)}}fetchBetDetails=async()=>{if(!this.baseUrl||!this.betId)return;try{let o=await fetch(`${this.baseUrl}/bet/bet-info?betId=${this.betId}`,{headers:{"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch bet details:",o.statusText);return}this._betDetails=await o.json()}catch(o){console.error("Error fetching bet details:",o)}}}d([Z({type:String})],ga.prototype,"baseUrl",void 0),d([Z({type:String})],ga.prototype,"betId",void 0),d([O()],ga.prototype,"_betDetails",void 0),ga=d([X("origami-bet-details")],ga);var Jo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},To=(o)=>(...i)=>({_$litDirective$:o,values:i});class Bo{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,i,a){this._$Ct=o,this._$AM=i,this._$Ci=a}_$AS(o,i){return this.update(o,i)}update(o,i){return this.render(...i)}}var ao=To(class extends Bo{constructor(o){if(super(o),o.type!==Jo.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter((i)=>o[i]).join(" ")+" "}update(o,[i]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter((t)=>t!=="")));for(let t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}let a=o.element.classList;for(let t of this.st)t in i||(a.remove(t),this.st.delete(t));for(let t in i){let r=!!i[t];r===this.st.has(t)||this.nt?.has(t)||(r?(a.add(t),this.st.add(t)):(a.remove(t),this.st.delete(t)))}return Ko}});var vo=(o)=>o??_;var B=G`
|
|
414
414
|
:host {
|
|
415
415
|
all: initial;
|
|
416
416
|
display: block;
|
|
@@ -497,7 +497,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
497
497
|
background-color: rgba(218, 255, 1, 0.3);
|
|
498
498
|
color: inherit;
|
|
499
499
|
}
|
|
500
|
-
`;var
|
|
500
|
+
`;var Ws={ar:()=>Promise.resolve().then(() => ho(lt(),1)),de:()=>Promise.resolve().then(() => ho(dt(),1)),en:()=>Promise.resolve().then(() => ho(ct(),1)),es:()=>Promise.resolve().then(() => ho(ht(),1)),fi:()=>Promise.resolve().then(() => ho(ut(),1)),fr:()=>Promise.resolve().then(() => ho(ft(),1)),hi:()=>Promise.resolve().then(() => ho(gt(),1)),id:()=>Promise.resolve().then(() => ho(pt(),1)),ja:()=>Promise.resolve().then(() => ho(bt(),1)),ko:()=>Promise.resolve().then(() => ho(wt(),1)),pl:()=>Promise.resolve().then(() => ho(vt(),1)),pt:()=>Promise.resolve().then(() => ho(mt(),1)),ru:()=>Promise.resolve().then(() => ho(kt(),1)),tr:()=>Promise.resolve().then(() => ho(xt(),1)),vi:()=>Promise.resolve().then(() => ho(zt(),1)),zh:()=>Promise.resolve().then(() => ho(yt(),1))};class pe{loadedLanguages=new Set;loadingPromises=new Map;loadedTranslations=new Map;async loadLanguage(o){if(this.loadedLanguages.has(o))return;if(this.loadingPromises.has(o))return this.loadingPromises.get(o);let i=this.loadLanguageModule(o);this.loadingPromises.set(o,i);try{await i,this.loadedLanguages.add(o)}finally{this.loadingPromises.delete(o)}}getTranslationData(o){return this.loadedTranslations.get(o)||null}isLanguageLoaded(o){return this.loadedLanguages.has(o)}getLoadedLanguages(){return Array.from(this.loadedLanguages)}async preloadLanguages(o){let i=o.map((a)=>this.loadLanguage(a).catch(()=>{}));await Promise.all(i)}clearAll(){this.loadedLanguages.clear(),this.loadingPromises.clear(),this.loadedTranslations.clear(),Ht()}async loadLanguageModule(o){try{let i=await Ws[o]();this.loadedTranslations.set(o,i.default),Ht()}catch(i){throw i}}}var pa=new pe;pa.loadLanguage("en").catch(()=>{});var we=ho(lt(),1),ve=ho(dt(),1),me=ho(ct(),1),ke=ho(ht(),1),xe=ho(ut(),1),ze=ho(ft(),1),ye=ho(gt(),1),He=ho(pt(),1),Ze=ho(bt(),1),Se=ho(wt(),1),Ke=ho(vt(),1),We=ho(mt(),1),qe=ho(kt(),1),Ue=ho(xt(),1),Re=ho(zt(),1),Ie=ho(yt(),1);var A1=ei("language"),Qi="en";var Zt={ar:we.default,de:ve.default,en:me.default,es:ke.default,fi:xe.default,fr:ze.default,hi:ye.default,id:He.default,ja:Ze.default,ko:Se.default,pl:Ke.default,pt:We.default,ru:qe.default,tr:Ue.default,vi:Re.default,zh:Ie.default};function qs(o){let i=pa.getTranslationData(o);if(i)return i;return Zt[o]||Zt[Qi]}var M1=ei(Symbol("translation"));class Je{cache=new Map;maxSize=1000;get(o){return this.cache.get(o)}set(o,i){if(this.cache.size>=this.maxSize)this.cache.clear();this.cache.set(o,i)}clear(){this.cache.clear()}size(){return this.cache.size}}var St=new Je,be=new Map;function Us(o){let i=be.get(o);if(!i)i=o.split("."),be.set(o,i);return i}function Ve(o,i,a){let t=qs(i);try{let r=Us(o),e=t;for(let n of r)if(e=e?.[n],e===void 0)break;if(typeof e==="string")return e;if(i!==Qi)return Ve(o,Qi,a);return a||o}catch{return a||o}}function V(o,i=Qi,a){let t=a?`${o}:${i}:${a}`:`${o}:${i}`,r=St.get(t);if(r!==void 0)return r;let e=Ve(o,i,a);return St.set(t,e),e}function Ht(){St.clear()}var $e=G`
|
|
501
501
|
:host {
|
|
502
502
|
display: grid;
|
|
503
503
|
grid-template-columns: var(--toggle-button-grid-columns, 1fr 1fr);
|
|
@@ -573,11 +573,11 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
573
573
|
.button.selected:focus-visible {
|
|
574
574
|
outline-color: rgba(55, 55, 55, 0.8);
|
|
575
575
|
}
|
|
576
|
-
`;class Kt extends T{constructor(){super(...arguments);this.option1="";this.option2="";this.option1Value="";this.option2Value="";this.value="";this.disabled=!1;this.name="Toggle";this.class="";this.noRightBorderRadius=!1}static styles=[B
|
|
576
|
+
`;class Kt extends T{constructor(){super(...arguments);this.option1="";this.option2="";this.option1Value="";this.option2Value="";this.value="";this.disabled=!1;this.name="Toggle";this.class="";this.noRightBorderRadius=!1}static styles=[B,$e];handleOptionClick(o){if(this.value!==o)this.value=o,this.gameContext?.soundController?.play("toggle").catch((i)=>console.error(i)),this.emit("toggle-change",{detail:{value:o},bubbles:!1,composed:!1})}render(){let o=this.gameContext?.language||"en",i=this.option1Value||this.option1||"Manual",a=this.option2Value||this.option2||"Auto",t=this.value===i,r=this.value===a,e=this.option1||V("common.manual",o),n=this.option2||V("common.auto",o);return $`
|
|
577
577
|
<button
|
|
578
578
|
.variant=${t?"primary":"secondary"}
|
|
579
579
|
@click=${()=>this.handleOptionClick(i)}
|
|
580
|
-
class=${
|
|
580
|
+
class=${ao({selected:t,button:!0})}
|
|
581
581
|
?disabled=${this.disabled}
|
|
582
582
|
aria-pressed=${t?"true":"false"}
|
|
583
583
|
aria-disabled=${this.disabled?"true":"false"}
|
|
@@ -591,7 +591,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
591
591
|
<button
|
|
592
592
|
.variant=${r?"primary":"secondary"}
|
|
593
593
|
@click=${()=>this.handleOptionClick(a)}
|
|
594
|
-
class=${
|
|
594
|
+
class=${ao({selected:r,button:!0})}
|
|
595
595
|
?disabled=${this.disabled}
|
|
596
596
|
aria-pressed=${r?"true":"false"}
|
|
597
597
|
aria-disabled=${this.disabled?"true":"false"}
|
|
@@ -601,7 +601,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
601
601
|
>
|
|
602
602
|
${n}
|
|
603
603
|
</button>
|
|
604
|
-
`}}d([
|
|
604
|
+
`}}d([ro({context:D,subscribe:!0}),Z({attribute:!1})],Kt.prototype,"gameContext",void 0),d([Z({type:String})],Kt.prototype,"option1",void 0),d([Z({type:String})],Kt.prototype,"option2",void 0),d([Z({type:String})],Kt.prototype,"option1Value",void 0),d([Z({type:String})],Kt.prototype,"option2Value",void 0),d([Z({type:String,reflect:!0})],Kt.prototype,"value",void 0),d([Z({type:Boolean,reflect:!0})],Kt.prototype,"disabled",void 0),d([Z({type:String})],Kt.prototype,"name",void 0),d([Z({type:String})],Kt.prototype,"class",void 0),d([Z({type:Boolean})],Kt.prototype,"noRightBorderRadius",void 0),Kt=d([X("origami-toggle")],Kt);var{I:Rs}=Tr;var ba=(o)=>o.strings===void 0,Ye=()=>document.createComment(""),Fi=(o,i,a)=>{let t=o._$AA.parentNode,r=i===void 0?o._$AB:i._$AA;if(a===void 0){let e=t.insertBefore(Ye(),r),n=t.insertBefore(Ye(),r);a=new Rs(e,n,o,o.options)}else{let e=a._$AB.nextSibling,n=a._$AM,s=n!==o;if(s){let l;a._$AQ?.(o),a._$AM=o,a._$AP!==void 0&&(l=o._$AU)!==n._$AU&&a._$AP(l)}if(e!==r||s){let l=a._$AA;for(;l!==e;){let h=l.nextSibling;t.insertBefore(l,r),l=h}}}return a},pi=(o,i,a=o)=>(o._$AI(i,a),o),Is={},wa=(o,i=Is)=>o._$AH=i,Qe=(o)=>o._$AH,va=(o)=>{o._$AP?.(!1,!0);let i=o._$AA,a=o._$AB.nextSibling;for(;i!==a;){let t=i.nextSibling;i.remove(),i=t}};var Ti=(o,i)=>{let a=o._$AN;if(a===void 0)return!1;for(let t of a)t._$AO?.(i,!1),Ti(t,i);return!0},ma=(o)=>{let i,a;do{if((i=o._$AM)===void 0)break;a=i._$AN,a.delete(o),o=i}while(a?.size===0)},Fe=(o)=>{for(let i;i=o._$AM;o=i){let a=i._$AN;if(a===void 0)i._$AN=a=new Set;else if(a.has(o))break;a.add(o),$s(i)}};function Js(o){this._$AN!==void 0?(ma(this),this._$AM=o,Fe(this)):this._$AM=o}function Vs(o,i=!1,a=0){let t=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(t))for(let e=a;e<t.length;e++)Ti(t[e],!1),ma(t[e]);else t!=null&&(Ti(t,!1),ma(t));else Ti(this,o)}var $s=(o)=>{o.type==Jo.CHILD&&(o._$AP??=Vs,o._$AQ??=Js)};class Wt extends Bo{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,i,a){super._$AT(o,i,a),Fe(this),this.isConnected=o._$AU}_$AO(o,i=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),i&&(Ti(this,o),ma(this))}setValue(o){if(ba(this._$Ct))this._$Ct._$AI(o,this);else{let i=[...this._$Ct._$AH];i[this._$Ci]=o,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}var Ri=()=>new Ce;class Ce{}var qt=new WeakMap,Ii=To(class extends Wt{render(o){return _}update(o,[i]){let a=i!==this.G;return a&&this.G!==void 0&&this.rt(void 0),(a||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),_}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,a=qt.get(i);a===void 0&&(a=new WeakMap,qt.set(i,a)),a.get(this.G)!==void 0&&this.G.call(this.ht,void 0),a.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?qt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Pe=G`
|
|
605
605
|
:host {
|
|
606
606
|
display: inline-block;
|
|
607
607
|
position: relative;
|
|
@@ -852,7 +852,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
852
852
|
animation: none;
|
|
853
853
|
transition: none;
|
|
854
854
|
}
|
|
855
|
-
`;var
|
|
855
|
+
`;var je=G`
|
|
856
856
|
:host {
|
|
857
857
|
display: inline-flex;
|
|
858
858
|
align-items: center;
|
|
@@ -879,7 +879,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
879
879
|
will-change: transform;
|
|
880
880
|
contain: layout paint;
|
|
881
881
|
}
|
|
882
|
-
`;var
|
|
882
|
+
`;var Ys=eo`<svg
|
|
883
883
|
class="spinner"
|
|
884
884
|
xmlns="http://www.w3.org/2000/svg"
|
|
885
885
|
fill="none"
|
|
@@ -923,9 +923,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
923
923
|
</g>
|
|
924
924
|
</g>
|
|
925
925
|
</g>
|
|
926
|
-
</svg>`;class Ut extends xo{static styles=[
|
|
926
|
+
</svg>`;class Ut extends xo{static styles=[je];render(){return Ys}}Ut=d([X("origami-spinner")],Ut);class Rt extends T{constructor(){super(...arguments);this.variant="primary";this.disabled=!1;this.noPointerEvents=!1;this.ariaLabel=null;this.ariaDescribedby=null;this.type="button";this.isLoading=!1;this.fullWidth=!1;this.hotkeyActive=!1}static styles=[B,Pe];static shadowRootOptions={...xo.shadowRootOptions,delegatesFocus:!0};_handleClick(o){if(this.hotkey===" "&&this.gameData?.hapticController)this.gameData.hapticController.click();this.emit("button-click",{detail:{originalEvent:o},composed:!1,bubbles:!1})}triggerActiveState(){this.hotkeyActive=!0,setTimeout(()=>{this.hotkeyActive=!1},150)}render(){let o=this.variant==="icon"||this.variant==="icon-secondary",i=this.disabled||this.isLoading,a={button:!0,[this.variant]:!0,"full-width":this.fullWidth,loading:this.isLoading,"hotkey-active":this.hotkeyActive},t=o?$`<slot name="icon" aria-hidden="true"></slot>`:$`<slot></slot>`,r=this.hotkey&&this.gameData?.hotkeysOpenEnabled&&!o;return $`
|
|
927
927
|
<button
|
|
928
|
-
class=${
|
|
928
|
+
class=${ao(a)}
|
|
929
929
|
@click=${this._handleClick}
|
|
930
930
|
?disabled=${i}
|
|
931
931
|
aria-label=${this.ariaLabel||""}
|
|
@@ -947,7 +947,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
947
947
|
<span class="visually-hidden">${V("common.loading",this.gameData?.language||"en")}</span>
|
|
948
948
|
</span>
|
|
949
949
|
</button>
|
|
950
|
-
`}}d([
|
|
950
|
+
`}}d([ro({context:D,subscribe:!0})],Rt.prototype,"gameData",void 0),d([Z({type:String,reflect:!0})],Rt.prototype,"variant",void 0),d([Z({type:Boolean,reflect:!0})],Rt.prototype,"disabled",void 0),d([Z({type:Boolean})],Rt.prototype,"noPointerEvents",void 0),d([Z({type:String,attribute:"aria-label"})],Rt.prototype,"ariaLabel",void 0),d([Z({type:String,attribute:"aria-describedby"})],Rt.prototype,"ariaDescribedby",void 0),d([Z({type:String})],Rt.prototype,"type",void 0),d([Z({type:Boolean,reflect:!0})],Rt.prototype,"isLoading",void 0),d([Z({type:Boolean,reflect:!0})],Rt.prototype,"fullWidth",void 0),d([Z({type:String})],Rt.prototype,"hotkey",void 0),d([Z({type:Boolean,reflect:!0})],Rt.prototype,"hotkeyActive",void 0),Rt=d([X("origami-button")],Rt);var Le=G`
|
|
951
951
|
:host {
|
|
952
952
|
display: inline-flex;
|
|
953
953
|
position: relative;
|
|
@@ -1003,7 +1003,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1003
1003
|
::slotted(origami-button:focus-within) {
|
|
1004
1004
|
z-index: 1;
|
|
1005
1005
|
}
|
|
1006
|
-
`;class It extends T{constructor(){super(...arguments);this.position="right"}static styles=[B,
|
|
1006
|
+
`;class It extends T{constructor(){super(...arguments);this.position="right"}static styles=[B,Le];render(){return $`<slot></slot>`}}d([Z({type:String,reflect:!0})],It.prototype,"position",void 0),It=d([X("origami-button-group")],It);var Oe=To(class extends Bo{constructor(o){if(super(o),o.type!==Jo.PROPERTY&&o.type!==Jo.ATTRIBUTE&&o.type!==Jo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ba(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===Ko||i===_)return i;let{element:a,name:t}=o;if(o.type===Jo.PROPERTY){if(i===a[t])return Ko}else if(o.type===Jo.BOOLEAN_ATTRIBUTE){if(!!i===a.hasAttribute(t))return Ko}else if(o.type===Jo.ATTRIBUTE&&a.getAttribute(t)===i+"")return Ko;return wa(o),i}});var _e=G`
|
|
1007
1007
|
:host {
|
|
1008
1008
|
--input-text-color: white;
|
|
1009
1009
|
--input-background-color: #1a1a1a;
|
|
@@ -1308,9 +1308,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1308
1308
|
::slotted(origami-button-group) {
|
|
1309
1309
|
height: 100%;
|
|
1310
1310
|
}
|
|
1311
|
-
`;class Jt extends T{constructor(){super(...arguments);this.value="";this.label="";this.placeholder="";this.type="text";this.disabled=!1;this.rightText=null;this.min=null;this.max=null;this.step=null;this.addonButtonsPosition="right";this.name=null;this.autocomplete=null;this.required=!1;this.readonly=!1;this.pattern=null;this.validateOnInput=!1;this.tooltipFullWidth=!1;this.validationPattern=null;this.validationMessage=null;this.inputMode="text";this.hideRightLabel=!1;this.clickable=!1;this.forceActiveBorder=!1;this.keepLabelEnabled=!1;this.handleBeforeInput=null;this.tooltipOffset=4;this.errorMessage=null;this._isIconRotating=!1;this.isHovering=!1;this._hasRightIcon=!1;this.errorTooltipMessage="";this._iconRotationState=!1}static styles=[B,
|
|
1311
|
+
`;class Jt extends T{constructor(){super(...arguments);this.value="";this.label="";this.placeholder="";this.type="text";this.disabled=!1;this.rightText=null;this.min=null;this.max=null;this.step=null;this.addonButtonsPosition="right";this.name=null;this.autocomplete=null;this.required=!1;this.readonly=!1;this.pattern=null;this.validateOnInput=!1;this.tooltipFullWidth=!1;this.validationPattern=null;this.validationMessage=null;this.inputMode="text";this.hideRightLabel=!1;this.clickable=!1;this.forceActiveBorder=!1;this.keepLabelEnabled=!1;this.handleBeforeInput=null;this.tooltipOffset=4;this.errorMessage=null;this._isIconRotating=!1;this.isHovering=!1;this._hasRightIcon=!1;this.errorTooltipMessage="";this._iconRotationState=!1}static styles=[B,_e];inputRef=Ri();inputId=`input-${Math.random().toString(36).substring(2,11)}`;errorId=`${this.inputId}-error`;handleSlotChange(){let o=this.shadowRoot?.querySelector('slot[name="right-icon"]');if(o){let i=o.assignedNodes({flatten:!0}).length>0;requestAnimationFrame(()=>{this._hasRightIcon=i})}}firstUpdated(){this.handleSlotChange()}handleMouseEnter(){this.isHovering=!0}handleMouseLeave(){this.isHovering=!1}handleInput(o){let i=o.target,a=i.value;this.emit("input-change",{detail:{value:a,target:i}})}handlePaste(o){if(this.type!=="number")return;let i=o.clipboardData;if(!i)return;let a=i.getData("text");if(a&&/[eE]/.test(a)){o.preventDefault();return}}handleClick(o){if(this.clickable){if(o.preventDefault(),o.stopPropagation(),window.getSelection()?.removeAllRanges(),this.emit("input-click"),this._hasRightIcon)this._iconRotationState=!this._iconRotationState,this._isIconRotating=!0}}handleAnimationEnd(){requestAnimationFrame(()=>{this._isIconRotating=!1})}handleFocus(){if(!this.readonly&&!this.disabled)this.inputRef.value?.select();this.emit("input-focus")}handleBlur(){this.emit("input-blur",{detail:{value:this.value}})}render(){let o=!this.hideRightLabel&&this.type==="number"?`${Number(this.value||0).toFixed(4)} ${this.rightText}`:void 0,i={"clickable-wrapper":this.clickable,"disable-user-select":this.readonly||this.disabled},a={"input-field":!0,error:!!this.errorMessage,"clickable-input":this.clickable,active:this.forceActiveBorder},t={"input-inner":!0,"has-right-icon":this._hasRightIcon},r={"input-label":!0,disabled:this.disabled&&!this.keepLabelEnabled};return $`
|
|
1312
1312
|
<div
|
|
1313
|
-
class=${
|
|
1313
|
+
class=${ao(i)}
|
|
1314
1314
|
@mouseenter=${this.handleMouseEnter}
|
|
1315
1315
|
@mouseleave=${this.handleMouseLeave}
|
|
1316
1316
|
>
|
|
@@ -1320,7 +1320,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1320
1320
|
@click=${this.clickable?this.handleClick:void 0}
|
|
1321
1321
|
>
|
|
1322
1322
|
${this.label||this.rightText||o?$`
|
|
1323
|
-
<div class=${
|
|
1323
|
+
<div class=${ao(r)} id="${this.inputId}-label">
|
|
1324
1324
|
${this.isHovering&&this.errorMessage?$` <span
|
|
1325
1325
|
id=${this.errorId}
|
|
1326
1326
|
class="input-error"
|
|
@@ -1340,13 +1340,13 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1340
1340
|
<div class="input-wrapper">
|
|
1341
1341
|
${this.leftAddon?$` <slot name="left-addon" class="input-addon-buttons left"></slot> `:_}
|
|
1342
1342
|
|
|
1343
|
-
<div class=${
|
|
1343
|
+
<div class=${ao(t)} @click=${this.clickable?this.handleClick:void 0}>
|
|
1344
1344
|
${this.leftIcon?$` <slot name="left-icon" class="input-left-icon"></slot> `:_}
|
|
1345
1345
|
<input
|
|
1346
1346
|
${Ii(this.inputRef)}
|
|
1347
1347
|
id=${this.inputId}
|
|
1348
1348
|
type=${this.type}
|
|
1349
|
-
.value=${
|
|
1349
|
+
.value=${Oe(this.value)}
|
|
1350
1350
|
@input=${this.handleInput}
|
|
1351
1351
|
@paste=${this.handlePaste}
|
|
1352
1352
|
@beforeinput=${this.handleBeforeInput}
|
|
@@ -1355,7 +1355,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1355
1355
|
@focusout=${this.handleBlur}
|
|
1356
1356
|
@click=${this.clickable?(e)=>{this.handleClick(e)}:void 0}
|
|
1357
1357
|
placeholder=${vo(this.placeholder||void 0)}
|
|
1358
|
-
class=${
|
|
1358
|
+
class=${ao(a)}
|
|
1359
1359
|
?disabled=${this.disabled}
|
|
1360
1360
|
?required=${this.required}
|
|
1361
1361
|
?readonly=${this.readonly}
|
|
@@ -1383,7 +1383,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1383
1383
|
</div>
|
|
1384
1384
|
${_}
|
|
1385
1385
|
</div>
|
|
1386
|
-
`}get rightIcon(){return this._hasRightIcon}get leftIcon(){return!!this.querySelector('[slot="left-icon"]')}get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}}d([Z({type:String})],Jt.prototype,"value",void 0),d([Z({type:String})],Jt.prototype,"label",void 0),d([Z({type:String})],Jt.prototype,"placeholder",void 0),d([Z({type:String,reflect:!0})],Jt.prototype,"type",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"disabled",void 0),d([Z({type:String})],Jt.prototype,"rightText",void 0),d([Z({type:Number})],Jt.prototype,"min",void 0),d([Z({type:Number})],Jt.prototype,"max",void 0),d([Z({type:Number})],Jt.prototype,"step",void 0),d([Z({type:String})],Jt.prototype,"addonButtonsPosition",void 0),d([Z({type:String})],Jt.prototype,"name",void 0),d([Z({type:String})],Jt.prototype,"autocomplete",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"required",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"readonly",void 0),d([Z({type:String})],Jt.prototype,"pattern",void 0),d([Z({type:Boolean})],Jt.prototype,"validateOnInput",void 0),d([Z({type:Boolean})],Jt.prototype,"tooltipFullWidth",void 0),d([Z({type:String})],Jt.prototype,"validationPattern",void 0),d([Z({type:String})],Jt.prototype,"validationMessage",void 0),d([Z({type:String})],Jt.prototype,"inputMode",void 0),d([Z({type:Boolean})],Jt.prototype,"hideRightLabel",void 0),d([Z({type:Boolean})],Jt.prototype,"clickable",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"forceActiveBorder",void 0),d([Z({type:Boolean})],Jt.prototype,"keepLabelEnabled",void 0),d([Z({type:Function,attribute:!1})],Jt.prototype,"handleBeforeInput",void 0),d([Z({type:Number})],Jt.prototype,"tooltipOffset",void 0),d([O()],Jt.prototype,"errorMessage",void 0),d([O()],Jt.prototype,"_isIconRotating",void 0),d([O()],Jt.prototype,"isHovering",void 0),d([O()],Jt.prototype,"_hasRightIcon",void 0),d([Z({type:String})],Jt.prototype,"errorTooltipMessage",void 0),d([O()],Jt.prototype,"_iconRotationState",void 0),Jt=d([X("origami-input")],Jt);var
|
|
1386
|
+
`}get rightIcon(){return this._hasRightIcon}get leftIcon(){return!!this.querySelector('[slot="left-icon"]')}get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}}d([Z({type:String})],Jt.prototype,"value",void 0),d([Z({type:String})],Jt.prototype,"label",void 0),d([Z({type:String})],Jt.prototype,"placeholder",void 0),d([Z({type:String,reflect:!0})],Jt.prototype,"type",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"disabled",void 0),d([Z({type:String})],Jt.prototype,"rightText",void 0),d([Z({type:Number})],Jt.prototype,"min",void 0),d([Z({type:Number})],Jt.prototype,"max",void 0),d([Z({type:Number})],Jt.prototype,"step",void 0),d([Z({type:String})],Jt.prototype,"addonButtonsPosition",void 0),d([Z({type:String})],Jt.prototype,"name",void 0),d([Z({type:String})],Jt.prototype,"autocomplete",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"required",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"readonly",void 0),d([Z({type:String})],Jt.prototype,"pattern",void 0),d([Z({type:Boolean})],Jt.prototype,"validateOnInput",void 0),d([Z({type:Boolean})],Jt.prototype,"tooltipFullWidth",void 0),d([Z({type:String})],Jt.prototype,"validationPattern",void 0),d([Z({type:String})],Jt.prototype,"validationMessage",void 0),d([Z({type:String})],Jt.prototype,"inputMode",void 0),d([Z({type:Boolean})],Jt.prototype,"hideRightLabel",void 0),d([Z({type:Boolean})],Jt.prototype,"clickable",void 0),d([Z({type:Boolean,reflect:!0})],Jt.prototype,"forceActiveBorder",void 0),d([Z({type:Boolean})],Jt.prototype,"keepLabelEnabled",void 0),d([Z({type:Function,attribute:!1})],Jt.prototype,"handleBeforeInput",void 0),d([Z({type:Number})],Jt.prototype,"tooltipOffset",void 0),d([O()],Jt.prototype,"errorMessage",void 0),d([O()],Jt.prototype,"_isIconRotating",void 0),d([O()],Jt.prototype,"isHovering",void 0),d([O()],Jt.prototype,"_hasRightIcon",void 0),d([Z({type:String})],Jt.prototype,"errorTooltipMessage",void 0),d([O()],Jt.prototype,"_iconRotationState",void 0),Jt=d([X("origami-input")],Jt);var Xe=G`
|
|
1387
1387
|
:host {
|
|
1388
1388
|
display: block;
|
|
1389
1389
|
|
|
@@ -1564,7 +1564,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1564
1564
|
.select-input option:disabled {
|
|
1565
1565
|
color: #b3b3b3;
|
|
1566
1566
|
}
|
|
1567
|
-
`;class Vt extends T{constructor(){super(...arguments);this.dir="ltr";this.label="";this.options=[];this.placeholder="";this.helperText=null;this.disabled=!1;this.required=!1;this.defaultValue=null;this.id="";this.name="";this.error="";this.size=null;this.autoFocus=!1;this._errorMessage=null;this.value=""}static styles=[B,
|
|
1567
|
+
`;class Vt extends T{constructor(){super(...arguments);this.dir="ltr";this.label="";this.options=[];this.placeholder="";this.helperText=null;this.disabled=!1;this.required=!1;this.defaultValue=null;this.id="";this.name="";this.error="";this.size=null;this.autoFocus=!1;this._errorMessage=null;this.value=""}static styles=[B,Xe];_generatedId=`select-${Math.random().toString(36).substring(2,11)}`;get _effectiveId(){return this.id||this._generatedId}getGroupedOptions(){let o=this.options.reduce((a,t)=>{if(t.group){if(!a[t.group])a[t.group]=[];a[t.group].push(t)}return a},{}),i=this.options.filter((a)=>!a.group);return{groupedOptions:o,hasGroups:Object.keys(o).length>0,ungroupedOptions:i}}handleChange(o){let a=o.target.value;this.emit("select-change",{detail:{value:a,originalEvent:o},bubbles:!1,composed:!1}),this.validate()}validate(){if(this.required&&!this.value)return this._errorMessage=this._errorMessage||V("common.thisFieldIsRequired",this.gameData?.language||"en"),!1;return this._errorMessage=null,!0}generateOptionElements(){let{groupedOptions:o,hasGroups:i,ungroupedOptions:a}=this.getGroupedOptions();return $`
|
|
1568
1568
|
${this.placeholder?$`
|
|
1569
1569
|
<option value="" ?disabled=${!this.value} ?selected=${!this.value}>
|
|
1570
1570
|
${this.placeholder}
|
|
@@ -1589,7 +1589,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1589
1589
|
<div class="select-container" dir=${this.dir}>
|
|
1590
1590
|
${this.label?$`
|
|
1591
1591
|
<div class="select-header">
|
|
1592
|
-
<label for=${this._effectiveId} class=${
|
|
1592
|
+
<label for=${this._effectiveId} class=${ao(r)}>
|
|
1593
1593
|
${this.label}${this.required?$`<span aria-hidden="true"> *</span>`:_}
|
|
1594
1594
|
</label>
|
|
1595
1595
|
</div>
|
|
@@ -1603,7 +1603,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1603
1603
|
.value=${this.value}
|
|
1604
1604
|
@change=${this.handleChange}
|
|
1605
1605
|
@blur=${this.validate}
|
|
1606
|
-
class=${
|
|
1606
|
+
class=${ao(t)}
|
|
1607
1607
|
?disabled=${this.disabled}
|
|
1608
1608
|
?required=${this.required}
|
|
1609
1609
|
role="combobox"
|
|
@@ -1639,7 +1639,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1639
1639
|
`:_}
|
|
1640
1640
|
${this.helperText?$` <div id=${a} class="select-helper">${this.helperText}</div> `:_}
|
|
1641
1641
|
</div>
|
|
1642
|
-
`}}d([
|
|
1642
|
+
`}}d([ro({context:D,subscribe:!0}),Z({attribute:!1})],Vt.prototype,"gameData",void 0),d([Z({type:String,reflect:!0})],Vt.prototype,"dir",void 0),d([Z({type:String})],Vt.prototype,"label",void 0),d([Z({type:Array})],Vt.prototype,"options",void 0),d([Z({type:String})],Vt.prototype,"placeholder",void 0),d([Z({type:String})],Vt.prototype,"helperText",void 0),d([Z({type:Boolean,reflect:!0})],Vt.prototype,"disabled",void 0),d([Z({type:Boolean,reflect:!0})],Vt.prototype,"required",void 0),d([Z({type:String})],Vt.prototype,"defaultValue",void 0),d([Z({type:String})],Vt.prototype,"id",void 0),d([Z({type:String})],Vt.prototype,"name",void 0),d([Z({type:String})],Vt.prototype,"error",void 0),d([Z({type:Number})],Vt.prototype,"size",void 0),d([Z({type:Boolean})],Vt.prototype,"autoFocus",void 0),d([O()],Vt.prototype,"_errorMessage",void 0),d([Z({type:String})],Vt.prototype,"value",void 0),Vt=d([X("origami-select")],Vt);var Ae="important",Qs=" !"+Ae,Io=To(class extends Bo{constructor(o){if(super(o),o.type!==Jo.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((i,a)=>{let t=o[a];return t==null?i:i+`${a=a.includes("-")?a:a.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${t};`},"")}update(o,[i]){let{style:a}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let t of this.ft)i[t]==null&&(this.ft.delete(t),t.includes("-")?a.removeProperty(t):a[t]=null);for(let t in i){let r=i[t];if(r!=null){this.ft.add(t);let e=typeof r=="string"&&r.endsWith(Qs);t.includes("-")||e?a.setProperty(t,e?r.slice(0,-11):r,e?Ae:""):a[t]=r}}return Ko}});function mo(o,i){let a={waitUntilFirstUpdate:!1,...i};return(t,r)=>{let{update:e}=t,n=Array.isArray(o)?o:[o];t.update=function(s){n.forEach((l)=>{let h=l;if(s.has(h)){let p=s.get(h),H=this[h];if(p!==H){if(!a.waitUntilFirstUpdate||this.hasUpdated)this[r](p,H)}}}),e.call(this,s)}}}var Ge=G`
|
|
1643
1643
|
:host {
|
|
1644
1644
|
position: relative;
|
|
1645
1645
|
width: 100%;
|
|
@@ -1865,7 +1865,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1865
1865
|
.tooltip[data-position="right-end"] .tooltip-arrow {
|
|
1866
1866
|
bottom: var(--tooltip-arrow-size);
|
|
1867
1867
|
}
|
|
1868
|
-
`;var
|
|
1868
|
+
`;var Fs={top:"bottom","top-start":"bottom-start","top-end":"bottom-end",bottom:"top","bottom-start":"top-start","bottom-end":"top-end",left:"right","left-start":"right-start","left-end":"right-end",right:"left","right-start":"left-start","right-end":"left-end"};class ka extends xo{constructor(){super(...arguments);this.content="";this.position="top";this.trigger=["hover","focus"];this.arrow=!0;this.open=!1;this.disabled=!1;this.offset=4;this.theme="light";this.edgePadding=12;this.delay=0;this.hideDelay=0;this.fullWidth=!1;this.boundarySelector=".game-layout-main, .game-layout-container"}static styles=[B,Ge];tooltipRef=Ri();triggerRef=Ri();static nextId=0;tooltipId=`tooltip-${++ka.nextId}`;showTimeout=null;hideTimeout=null;scrollTimeout=null;clickOutsideHandler=null;keydownHandler=null;scrollHandler=null;resizeHandler=null;debounceTime=50;disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),this.clearTimeouts()}onOpenChange(){if(this.open)this.show();else this.hide()}onDisabledChange(){if(this.disabled)this.hide()}onPositionChange(){requestAnimationFrame(()=>this.updatePosition())}onBoundaryChange(){requestAnimationFrame(()=>this.updatePosition())}addEventListeners(){if(!this.keydownHandler)this.keydownHandler=this.handleKeyDown,document.addEventListener("keydown",this.keydownHandler);if(this.hasTrigger("click")&&!this.clickOutsideHandler)this.clickOutsideHandler=this.handleClickOutside,document.addEventListener("click",this.clickOutsideHandler,{capture:!0});if(!this.scrollHandler)this.scrollHandler=this.handleScroll,window.addEventListener("scroll",this.scrollHandler,{passive:!0});if(!this.resizeHandler)this.resizeHandler=this.handleResize,window.addEventListener("resize",this.resizeHandler,{passive:!0})}removeEventListeners(){if(this.keydownHandler)document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null;if(this.clickOutsideHandler)document.removeEventListener("click",this.clickOutsideHandler,{capture:!0}),this.clickOutsideHandler=null;if(this.scrollHandler)window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null;if(this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null}hasTrigger(o){return(Array.isArray(this.trigger)?this.trigger:[this.trigger]).includes(o)}handleScroll=()=>{if(this.scrollTimeout!==null)window.clearTimeout(this.scrollTimeout);this.scrollTimeout=window.setTimeout(()=>{if(this.open)this.updatePosition();this.scrollTimeout=null},this.debounceTime)};handleResize=()=>{if(this.scrollTimeout!==null)window.clearTimeout(this.scrollTimeout);this.scrollTimeout=window.setTimeout(()=>{if(this.open)this.updatePosition();this.scrollTimeout=null},this.debounceTime)};clearTimeouts(){let o=["showTimeout","hideTimeout","scrollTimeout"];for(let i of o){let a=this[i];if(a!==null)window.clearTimeout(a);this[i]=null}}show(){if(this.disabled||this.open)return;if(this.clearTimeouts(),this.delay>0)this.showTimeout=window.setTimeout(()=>{this.showTooltip()},this.delay);else this.showTooltip()}hide(){if(this.disabled||!this.open)return;if(this.clearTimeouts(),this.hideDelay>0)this.hideTimeout=window.setTimeout(()=>{this.hideTooltip()},this.hideDelay);else this.hideTooltip()}showTooltip(){if(this.tooltipRef.value&&!this.disabled)this.open=!0,this.updatePosition(),this.addEventListeners()}hideTooltip(){if(this.tooltipRef.value)this.open=!1,this.removeEventListeners(),this.clearTimeouts()}updatePosition(){if(!this.tooltipRef.value||!this.triggerRef.value||!this.open)return;let o=this.tooltipRef.value,i=this.triggerRef.value,a=this.triggerSlot.assignedElements()[0]||i,t=this.position,r=this.offset,e=a.getBoundingClientRect(),n=o.getBoundingClientRect(),s=(g)=>{if(!g)return null;if(g instanceof ShadowRoot)return g.host;return g.parentNode},p=((()=>{let g=(this.boundarySelector||"").split(",").map((W)=>W.trim()).filter(Boolean),k=this;while(k){if(k instanceof HTMLElement){if(g.length>0&&g.some((W)=>{try{return k.matches(W)}catch{return!1}}))return k}k=s(k)}return null})()??document.documentElement).getBoundingClientRect(),H=e.top-p.top,f=p.bottom-e.bottom,y=e.left-p.left,z=p.right-e.right,v=t,q=0,w=(g)=>{if(g.startsWith("top"))return H>=n.height+r+6;else if(g.startsWith("bottom"))return f>=n.height+r+6;return!0},u=()=>{let g=e.left+e.width/2,k=n.width/2,W=g-k,R=0,Q=p.left+this.edgePadding,b=p.right-this.edgePadding;if(W<Q)R=Q-W,W=Q;let S=W+n.width;if(S>b)R=b-S;return R};if((t.startsWith("top")||t.startsWith("bottom"))&&w(t)){let g=u();if(g!==0){q=-g;let k=n.width/2-12;q=Math.max(-k,Math.min(k,q))}v=t}else{let g=(k)=>{switch(k){case"top":case"top-start":case"top-end":return H<n.height+r+6;case"bottom":case"bottom-start":case"bottom-end":return f<n.height+r+6;case"left":case"left-start":case"left-end":return y<n.width+r+6;case"right":case"right-start":case"right-end":return z<n.width+r+6;default:return!1}};if(g(t)){let k=Fs[t];if(!g(k))v=k;else{let R=["top","right","bottom","left"].find((Q)=>!g(Q));if(R)v=R}}}if(o.setAttribute("data-position",v),this.triggerRef.value)if(this.triggerRef.value.style.setProperty("--arrow-offset",`${q}px`),q!==0&&(v.startsWith("top")||v.startsWith("bottom"))){let g=-q;this.triggerRef.value.style.setProperty("--tooltip-translate-x",`${g}px`)}else this.triggerRef.value.style.setProperty("--tooltip-translate-x","0px")}handleMouseEnter=()=>{if(this.hasTrigger("hover"))this.show()};handleMouseLeave=(o)=>{let i=o.relatedTarget;if(this.tooltipRef.value?.contains(i))return;if(this.hasTrigger("hover"))this.hide()};handleFocus=(o)=>{if(o.composedPath().some((t)=>t===this.triggerRef.value||this.triggerRef.value?.contains(t))&&this.hasTrigger("focus"))this.show()};handleBlur=(o)=>{if(o.composedPath().some((t)=>t===this.triggerRef.value||this.triggerRef.value?.contains(t))&&this.hasTrigger("focus"))this.hide()};handleClick=()=>{if(this.hasTrigger("click"))if(!this.open)this.show();else this.hide()};handleClickOutside=(o)=>{if(!this.open||!this.hasTrigger("click"))return;let i=o.composedPath(),a=this.triggerRef.value&&i.includes(this.triggerRef.value),t=this.tooltipRef.value&&i.includes(this.tooltipRef.value);if(!a&&!t)this.hide()};handleKeyDown=(o)=>{if(o.key==="Escape"&&this.open)this.hide()};render(){let o={tooltip:!0,"light-theme":this.theme==="light",visible:this.open,"full-width":this.fullWidth};return $`
|
|
1869
1869
|
<div
|
|
1870
1870
|
style=${Io({["--tooltip-offset"]:`${this.offset}px`})}
|
|
1871
1871
|
${Ii(this.triggerRef)}
|
|
@@ -1880,7 +1880,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1880
1880
|
<div
|
|
1881
1881
|
${Ii(this.tooltipRef)}
|
|
1882
1882
|
id=${this.tooltipId}
|
|
1883
|
-
class=${
|
|
1883
|
+
class=${ao(o)}
|
|
1884
1884
|
role="tooltip"
|
|
1885
1885
|
data-position=${this.position}
|
|
1886
1886
|
aria-hidden=${this.open?"false":"true"}
|
|
@@ -1890,7 +1890,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1890
1890
|
${this.arrow?$`<div class="tooltip-arrow"></div>`:_}
|
|
1891
1891
|
</div>
|
|
1892
1892
|
</div>
|
|
1893
|
-
`}}d([Z({type:String})],ka.prototype,"content",void 0),d([Z({type:String,reflect:!0})],ka.prototype,"position",void 0),d([Z({type:Array,converter:(o)=>{if(typeof o==="string")return o.split(/[\s,]+/).filter(Boolean);return o}})],ka.prototype,"trigger",void 0),d([Z({type:Boolean,reflect:!0})],ka.prototype,"arrow",void 0),d([Z({type:Boolean,reflect:!0})],ka.prototype,"open",void 0),d([Z({type:Boolean,reflect:!0})],ka.prototype,"disabled",void 0),d([Z({type:Number})],ka.prototype,"offset",void 0),d([Z({type:String,reflect:!0})],ka.prototype,"theme",void 0),d([Z({type:Number})],ka.prototype,"edgePadding",void 0),d([Z({type:Number})],ka.prototype,"delay",void 0),d([Z({type:Number})],ka.prototype,"hideDelay",void 0),d([Z({type:Boolean})],ka.prototype,"fullWidth",void 0),d([Z({type:String})],ka.prototype,"boundarySelector",void 0),d([fo("#trigger-slot")],ka.prototype,"triggerSlot",void 0),d([mo("open")],ka.prototype,"onOpenChange",null),d([mo("disabled")],ka.prototype,"onDisabledChange",null),d([mo(["position","offset","content"])],ka.prototype,"onPositionChange",null),d([mo(["boundarySelector","edgePadding"])],ka.prototype,"onBoundaryChange",null),ka=d([X("origami-tooltip")],ka);var
|
|
1893
|
+
`}}d([Z({type:String})],ka.prototype,"content",void 0),d([Z({type:String,reflect:!0})],ka.prototype,"position",void 0),d([Z({type:Array,converter:(o)=>{if(typeof o==="string")return o.split(/[\s,]+/).filter(Boolean);return o}})],ka.prototype,"trigger",void 0),d([Z({type:Boolean,reflect:!0})],ka.prototype,"arrow",void 0),d([Z({type:Boolean,reflect:!0})],ka.prototype,"open",void 0),d([Z({type:Boolean,reflect:!0})],ka.prototype,"disabled",void 0),d([Z({type:Number})],ka.prototype,"offset",void 0),d([Z({type:String,reflect:!0})],ka.prototype,"theme",void 0),d([Z({type:Number})],ka.prototype,"edgePadding",void 0),d([Z({type:Number})],ka.prototype,"delay",void 0),d([Z({type:Number})],ka.prototype,"hideDelay",void 0),d([Z({type:Boolean})],ka.prototype,"fullWidth",void 0),d([Z({type:String})],ka.prototype,"boundarySelector",void 0),d([fo("#trigger-slot")],ka.prototype,"triggerSlot",void 0),d([mo("open")],ka.prototype,"onOpenChange",null),d([mo("disabled")],ka.prototype,"onDisabledChange",null),d([mo(["position","offset","content"])],ka.prototype,"onPositionChange",null),d([mo(["boundarySelector","edgePadding"])],ka.prototype,"onBoundaryChange",null),ka=d([X("origami-tooltip")],ka);var Cs=(o,i=!1)=>{let a=i?o.replace(/[^0-9.-]/g,""):o.replace(/[^0-9.]/g,"");if(a.includes(".")){let t=a.split(".");a=`${t[0]}.${t.slice(1).join("")}`}return a};class $t extends T{constructor(){super(...arguments);this.label="";this.currency="USD";this.errorMessage="";this.value="";this.rightLabel="";this.suffix="";this.placeholder="0.00";this.disabled=!1;this.readonly=!1;this.disableInput=!1;this.cursorNotAllowed=!1;this.bgColor="";this.testId="";this.tooltip="";this.maxBetEnabled=!1;this.dimmed=!1;this.maxPayoutUSD=0;this.variant="primary";this.required=!1;this.hideCurrencyIcon=!1;this.allowNegative=!1}static styles=G`
|
|
1894
1894
|
.currency-display {
|
|
1895
1895
|
display: flex;
|
|
1896
1896
|
align-items: center;
|
|
@@ -1911,7 +1911,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1911
1911
|
color: #b3b3b3;
|
|
1912
1912
|
white-space: nowrap;
|
|
1913
1913
|
}
|
|
1914
|
-
`;get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}formatValue(o){if(!o)return o;try{return Number.parseFloat(o).toFixed(this.gameData.currencyDecimals)}catch{return o}}preventNonNumericInput(o){if((this.allowNegative?["e","E","+"]:["e","E","+","-"]).includes(o.key))o.preventDefault()}handleChange(o){let i=o.detail.value,a=
|
|
1914
|
+
`;get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}formatValue(o){if(!o)return o;try{return Number.parseFloat(o).toFixed(this.gameData.currencyDecimals)}catch{return o}}preventNonNumericInput(o){if((this.allowNegative?["e","E","+"]:["e","E","+","-"]).includes(o.key))o.preventDefault()}handleChange(o){let i=o.detail.value,a=Cs(i,this.allowNegative);this.emit("raw-currency-input-change",{detail:{value:a}})}handleBlur(){let o=this.formatValue(this.value);this.emit("raw-currency-input-change",{detail:{value:o}}),this.emit("raw-currency-input-blur")}handleFocus(){this.emit("raw-currency-input-focus")}updated(o){if(!this.readonly||!o.has("value"))return;this.value=this.formatValue(this.value)}render(){return $`
|
|
1915
1915
|
<origami-input
|
|
1916
1916
|
type="number"
|
|
1917
1917
|
inputmode="decimal"
|
|
@@ -1933,16 +1933,16 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1933
1933
|
${this.rightAddon?$` <slot slot="right-addon" name="right-addon"></slot> `:_}
|
|
1934
1934
|
${this.leftAddon?$` <slot slot="left-addon" name="left-addon"></slot> `:_}
|
|
1935
1935
|
|
|
1936
|
-
<div class=${
|
|
1936
|
+
<div class=${ao({"currency-display":!0,hidden:this.hideCurrencyIcon})} slot="right-icon">
|
|
1937
1937
|
${this.gameData?.showCurrencyAsText?$`<span class="currency-text">${this.currency}</span>`:Qo(this.currency)}
|
|
1938
1938
|
</div>
|
|
1939
1939
|
</origami-input>
|
|
1940
|
-
`}}d([
|
|
1940
|
+
`}}d([ro({context:D,subscribe:!0})],$t.prototype,"gameData",void 0),d([Z({type:String})],$t.prototype,"label",void 0),d([Z({type:String})],$t.prototype,"currency",void 0),d([Z({type:String})],$t.prototype,"errorMessage",void 0),d([Z({type:String})],$t.prototype,"value",void 0),d([Z({type:String})],$t.prototype,"rightLabel",void 0),d([Z({type:String})],$t.prototype,"suffix",void 0),d([Z({type:String})],$t.prototype,"placeholder",void 0),d([Z({type:Boolean})],$t.prototype,"disabled",void 0),d([Z({type:Boolean})],$t.prototype,"readonly",void 0),d([Z({type:Boolean})],$t.prototype,"disableInput",void 0),d([Z({type:Boolean})],$t.prototype,"cursorNotAllowed",void 0),d([Z({type:String})],$t.prototype,"bgColor",void 0),d([Z({type:String})],$t.prototype,"testId",void 0),d([Z({type:String})],$t.prototype,"tooltip",void 0),d([Z({type:Boolean})],$t.prototype,"maxBetEnabled",void 0),d([Z({type:Boolean})],$t.prototype,"dimmed",void 0),d([Z({type:Number})],$t.prototype,"maxPayoutUSD",void 0),d([Z({type:String})],$t.prototype,"variant",void 0),d([Z({type:Boolean})],$t.prototype,"required",void 0),d([Z({type:Boolean})],$t.prototype,"hideCurrencyIcon",void 0),d([Z({type:Boolean})],$t.prototype,"allowNegative",void 0),d([fo("origami-input")],$t.prototype,"input",void 0),$t=d([X("origami-raw-currency-input")],$t);class Do{host;handlers=new Map;isFocusedOnInput=!1;repeating=null;repeatTimer=null;DEFAULT_REPEAT_INTERVAL=200;constructor(o,i){if(this.host=o,o.addController(this),i)i.forEach(({key:a,callback:t,options:r})=>{this.register(a,t,r)})}hostConnected(){window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),window.addEventListener("focusin",this._onFocusIn),window.addEventListener("focusout",this._onFocusOut)}hostDisconnected(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),window.removeEventListener("focusin",this._onFocusIn),window.removeEventListener("focusout",this._onFocusOut),this._clearRepeatTimer()}_onFocusIn=(o)=>{let i=o.composedPath()[0];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)this.isFocusedOnInput=!0,this._clearRepeatTimer()};_onFocusOut=(o)=>{let i=o.composedPath()[0];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)this.isFocusedOnInput=!1};_clearRepeatTimer(){if(this.repeatTimer)clearTimeout(this.repeatTimer),this.repeatTimer=null;this.repeating=null}shouldSkipAction(){if(this.isFocusedOnInput)return!0;if(this.checkForOpenModals())return!0;return!1}checkForOpenModals(){let o=document.querySelector("origami-game-provider-wrapper");if(!o?.shadowRoot)return!1;let i=o.shadowRoot.querySelector("*");if(!i)return!1;if(!!i.shadowRoot?.querySelector("origami-game-layout")?.shadowRoot?.querySelector("origami-responsive-modal[open]"))return!0;return!1}_onKeyDown=(o)=>{if(this.shouldSkipAction())return;let i=o.key.toLowerCase(),a=this.handlers.get(i);if(a){let{callback:t,options:r}=a;if(r.disabled?.()??!1)return;if(o.preventDefault(),o.repeat){if(r.repeat&&!this.repeating)this.repeating=i,this._startRepeating(t,r);return}t(o)}};_onKeyUp=(o)=>{if(this.shouldSkipAction())return;let i=o.key.toLowerCase();if(this.repeating===i)this._clearRepeatTimer()};_startRepeating(o,i){let a=i.repeatInterval??this.DEFAULT_REPEAT_INTERVAL,t=()=>{if(!this.repeating)return;if(!(i.disabled?.()??!1)&&!this.shouldSkipAction())o();if(this.repeating)this.repeatTimer=window.setTimeout(t,a)};this.repeatTimer=window.setTimeout(t,a)}register(o,i,a={}){let t=o.toLowerCase(),r={repeat:!1,repeatInterval:this.DEFAULT_REPEAT_INTERVAL,disabled:()=>!1,...a};this.handlers.set(t,{callback:i,options:r})}}var Ps={["BET_AMOUNT_BELOW_MIN_BET"]:"alerts.betAmountBelowMinBet",["BET_AMOUNT_ABOVE_MAX_BET"]:"alerts.betAmountAboveMaxBet",["BET_AMOUNT_ABOVE_BALANCE"]:"alerts.notEnoughBalance"};class Yt extends T{static styles=[B,G`
|
|
1941
1941
|
origami-raw-currency-input {
|
|
1942
1942
|
flex-grow: 1;
|
|
1943
1943
|
display: block;
|
|
1944
1944
|
}
|
|
1945
|
-
`];_gameContext=new wo(this,{context:D,subscribe:!0,callback:(o)=>{if(!L(o.amount).isEqualTo(this.value)&&!this.isFocused&&this._isInitialized)requestAnimationFrame(()=>{this.value=L(o.amount).toFixed(this.gameData.currencyDecimals)})}});firstUpdated(){requestAnimationFrame(()=>{if(this.gameData?.amount)this.value=L(this.gameData.amount).toFixed(this.gameData.currencyDecimals);this._isInitialized=!0})}handleValueOrBalanceChange(){if(!this._isInitialized)return;if(!this.gameData)return;let o=this.value===""?"0":this.value,i=L(o),a=L(this.gameData.balance??0),t=this.invalidReason;if(i.isNaN())this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.isEqualTo(0))this.invalidReason=null;else if(i.gt(this.gameData.maxBet))this.invalidReason="BET_AMOUNT_ABOVE_MAX_BET";else if(i.lt(this.gameData.minBet))this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.gt(a))this.invalidReason="BET_AMOUNT_ABOVE_BALANCE";else this.invalidReason=null;if(t!==this.invalidReason)this.emit("bet-amount-validity-change",{detail:{isValid:!this.invalidReason}})}constructor(){super();this.isFocused=!1;this.invalidReason=null;this.value="0";this._isInitialized=!1;this.disabled=!1;this.label="";new Do(this,[{key:"a",callback:this.handleHalfBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"s",callback:this.handleDoubleBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"d",callback:this.handleZeroBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled}},{key:"f",callback:this.handleMaxBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled}}])}updateBalanceState(o){if(o.isNaN())return;let i=o.toFixed(this.gameData.currencyDecimals);this.gameData?.updateBetAmount(L(i))}handleCurrencyInputChange(o){let i=o.detail.value;this.value=i,this.updateBalanceState(L(i))}updateAmount(o){if(this.disabled)return;let a=(o.isLessThan(0)?L(0):o).decimalPlaces(this.gameData.currencyDecimals,L.ROUND_DOWN);if(a.toString()!==this.value)this.value=a.toFixed(this.gameData.currencyDecimals),this.updateBalanceState(L(a))}handleHalfBet(){if(this.disabled||L(this.value).isLessThanOrEqualTo(0))return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.gameData?.hapticController?.lightClick(),this.updateAmount(L(this.value).dividedBy(2))}handleDoubleBet(){if(this.disabled)return;if(this.gameData?.soundController?.play("half-double").catch((i)=>console.error(i)),this.gameData?.hapticController?.lightClick(),L(this.value).isZero()){this.updateAmount(L(L("1").div(10**this.gameData.currencyDecimals)));return}let o=L.min(L(this.value).multipliedBy(2),L(this.gameData?.balance??0));this.updateAmount(o)}handleZeroBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.updateAmount(L(0))}handleMaxBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((t)=>console.error(t)),this.gameData?.hapticController?.lightClick();let o=L(this.gameData?.balance??0),i=L(this.gameData?.maxBet??0),a=L.min(o,i);this.updateAmount(a)}render(){let o=this.gameData?.language||"en",i="0.00000000",a=this.invalidReason?V(
|
|
1945
|
+
`];get gameData(){return this._gameContext.value}_gameContext=new wo(this,{context:D,subscribe:!0,callback:(o)=>{if(!L(o.amount).isEqualTo(this.value)&&!this.isFocused&&this._isInitialized)requestAnimationFrame(()=>{this.value=L(o.amount).toFixed(this.gameData.currencyDecimals)});this.handleValueOrBalanceChange()}});firstUpdated(){requestAnimationFrame(()=>{if(this.gameData?.amount)this.value=L(this.gameData.amount).toFixed(this.gameData.currencyDecimals);this._isInitialized=!0})}watchValue(){this.handleValueOrBalanceChange()}handleValueOrBalanceChange(){if(!this._isInitialized)return;if(!this.gameData)return;let o=this.value===""?"0":this.value,i=L(o),a=L(this.gameData.balance??0),t=this.invalidReason;if(i.isNaN())this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.isEqualTo(0))this.invalidReason=null;else if(i.gt(this.gameData.maxBet))this.invalidReason="BET_AMOUNT_ABOVE_MAX_BET";else if(i.lt(this.gameData.minBet))this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.gt(a))this.invalidReason="BET_AMOUNT_ABOVE_BALANCE";else this.invalidReason=null;if(t!==this.invalidReason)this.emit("bet-amount-validity-change",{detail:{isValid:!this.invalidReason}})}constructor(){super();this.isFocused=!1;this.invalidReason=null;this.value="0";this._isInitialized=!1;this.disabled=!1;this.label="";new Do(this,[{key:"a",callback:this.handleHalfBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"s",callback:this.handleDoubleBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"d",callback:this.handleZeroBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled}},{key:"f",callback:this.handleMaxBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled}}])}updateBalanceState(o){if(o.isNaN())return;let i=o.toFixed(this.gameData.currencyDecimals);this.gameData?.updateBetAmount(L(i))}handleCurrencyInputChange(o){let i=o.detail.value;this.value=i,this.updateBalanceState(L(i))}updateAmount(o){if(this.disabled)return;let a=(o.isLessThan(0)?L(0):o).decimalPlaces(this.gameData.currencyDecimals,L.ROUND_DOWN);if(a.toString()!==this.value)this.value=a.toFixed(this.gameData.currencyDecimals),this.updateBalanceState(L(a))}handleHalfBet(){if(this.disabled||L(this.value).isLessThanOrEqualTo(0))return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.gameData?.hapticController?.lightClick(),this.updateAmount(L(this.value).dividedBy(2))}handleDoubleBet(){if(this.disabled)return;if(this.gameData?.soundController?.play("half-double").catch((i)=>console.error(i)),this.gameData?.hapticController?.lightClick(),L(this.value).isZero()){this.updateAmount(L(L("1").div(10**this.gameData.currencyDecimals)));return}let o=L.min(L(this.value).multipliedBy(2),L(this.gameData?.balance??0));this.updateAmount(o)}handleZeroBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.updateAmount(L(0))}handleMaxBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((t)=>console.error(t)),this.gameData?.hapticController?.lightClick();let o=L(this.gameData?.balance??0),i=L(this.gameData?.maxBet??0),a=L.min(o,i);this.updateAmount(a)}render(){let o=this.gameData?.language||"en",i="0.00000000",a=this.invalidReason?V(Ps[this.invalidReason],o):"";return $`
|
|
1946
1946
|
<origami-raw-currency-input
|
|
1947
1947
|
.value=${this.value}
|
|
1948
1948
|
.label=${this.label||V("common.betAmount",o)}
|
|
@@ -1984,7 +1984,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
1984
1984
|
</origami-button>
|
|
1985
1985
|
</origami-button-group>
|
|
1986
1986
|
</origami-raw-currency-input>
|
|
1987
|
-
`}}d([
|
|
1987
|
+
`}}d([O()],Yt.prototype,"isFocused",void 0),d([O()],Yt.prototype,"invalidReason",void 0),d([mo(["value"])],Yt.prototype,"watchValue",null),d([O()],Yt.prototype,"value",void 0),d([O()],Yt.prototype,"_isInitialized",void 0),d([Z({type:Boolean})],Yt.prototype,"disabled",void 0),d([Z({type:String})],Yt.prototype,"label",void 0),Yt=d([X("origami-bet-amount-input")],Yt);var Qt=new Map;class Ft extends T{constructor(){super(...arguments);this.src="";this.size="24px";this.triggerSelector="origami-button";this.active=!1;this.autoplay=!1}static styles=G`
|
|
1988
1988
|
:host {
|
|
1989
1989
|
display: flex;
|
|
1990
1990
|
align-items: center;
|
|
@@ -2092,9 +2092,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2092
2092
|
justify-content: center;
|
|
2093
2093
|
}
|
|
2094
2094
|
|
|
2095
|
-
`;animation=null;containerRef=Ri();abortController=null;lottieModule=null;async connectedCallback(){super.connectedCallback(),await this.initialize()}disconnectedCallback(){this.cleanup(),super.disconnectedCallback()}async initialize(){if(!this.src)return;try{let[o,i]=await Promise.all([this.loadLottieModule(),this.loadAnimationData()]);this.lottieModule=o,await this.setupAnimation(i),this.setupTriggers()}catch(o){console.warn("[LottieIcon] Failed to initialize:",o)}}async loadLottieModule(){let o=await Promise.resolve().then(() => ho(
|
|
2095
|
+
`;animation=null;containerRef=Ri();abortController=null;lottieModule=null;async connectedCallback(){super.connectedCallback(),await this.initialize()}disconnectedCallback(){this.cleanup(),super.disconnectedCallback()}async initialize(){if(!this.src)return;try{let[o,i]=await Promise.all([this.loadLottieModule(),this.loadAnimationData()]);this.lottieModule=o,await this.setupAnimation(i),this.setupTriggers()}catch(o){console.warn("[LottieIcon] Failed to initialize:",o)}}async loadLottieModule(){let o=await Promise.resolve().then(() => ho(Te(),1));return o.default||o}async loadAnimationData(){if(Qt.has(this.src))return Qt.get(this.src);let o=await fetch(this.src);if(!o.ok)throw new Error(`Failed to load animation: ${o.status}`);let i=await o.json();return Qt.set(this.src,i),i}async setupAnimation(o){if(await this.updateComplete,!this.containerRef.value||!this.lottieModule)return;this.animation=this.lottieModule.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:!1,autoplay:this.autoplay,animationData:o,rendererSettings:{preserveAspectRatio:"xMidYMid meet",clearCanvas:!1,hideOnTransparent:!0}})}setupTriggers(){if(!this.animation||this.autoplay)return;let o=this.closest(this.triggerSelector);if(!o){console.warn(`[LottieIcon] Trigger element "${this.triggerSelector}" not found`);return}this.abortController=new AbortController;let i=()=>this.playAnimation(),a={signal:this.abortController.signal,passive:!0};o.addEventListener("mouseenter",i,a),o.addEventListener("focus",i,a)}playAnimation(){if(!this.animation)return;let o=this.closest(this.triggerSelector);if(o&&"disabled"in o&&o.disabled)return;this.animation.goToAndStop(0,!0),this.animation.play()}cleanup(){if(this.abortController?.abort(),this.abortController=null,this.animation)this.animation.destroy(),this.animation=null;this.lottieModule=null}render(){return $`
|
|
2096
2096
|
<div
|
|
2097
|
-
class=${
|
|
2097
|
+
class=${ao({container:!0,active:this.active})}
|
|
2098
2098
|
style=${Io({width:this.size,height:this.size})}
|
|
2099
2099
|
${Ii(this.containerRef)}
|
|
2100
2100
|
role="img"
|
|
@@ -2137,7 +2137,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2137
2137
|
flex-direction: column;
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
|
-
`;var
|
|
2140
|
+
`;var Be=1e4,js=100;function Ls(o){if(o<js)throw new Error("Exceeded Minimum edge allowed on platform");return new L(Be).minus(o).dividedBy(Be)}function Ne(o){if(!o)return new Uint8Array;let i=[];for(let a=0;a<o.length;a+=2)i.push(parseInt(o.substring(a,a+2),16));return new Uint8Array(i)}var Ct=[new L(1)];function Ha(o){if(!Number.isInteger(o)||o<0)throw new Error(`Factorial: <${o}> should be an integer greater or equal to 0`);let i=new L(o);if(!Ct[o])Ct[o]=i.multipliedBy(Ha(o-1));return Ct[o]}function Di(o,i){return Ha(o).dividedBy(Ha(i)).dividedBy(Ha(new L(o).minus(i).toNumber()))}var Os=new L(256),ya=new L(25),Me=class{static getResults(o,i){let a=[],t=Array.from(Array(ya.toNumber()).keys());return o.map(Ne).every((r,e)=>{for(let n=0;n<8;n++){if(a.length>=i)return!1;let s=new L(0);for(let l=0;l<4;l++){let h=r[4*n+l];s=s.plus(new L(h).dividedBy(Os.pow(l+1)))}s=s.multipliedBy(ya.minus(new L(8*e+n))).integerValue(L.ROUND_DOWN),a.push(t.splice(s.toNumber(),1)[0])}return!0}),a}static hitMine=(o,i)=>{return i.some((a)=>a===o)};static calculateMultiplierBN(o,i,a){return Ls(a).dividedBy(this.calculateWinChanceBN(o,i))}static calculateWinChanceBN(o,i){return Di(ya.minus(i).toNumber(),o).dividedBy(Di(ya.toNumber(),o))}},io=((o)=>{return o.CLASSIC="CLASSIC",o.LOW_RISK="LOW_RISK",o.MEDIUM_RISK="MEDIUM_RISK",o.HIGH_RISK="HIGH_RISK",o})(io||{}),_s=new L(256),De=new L(40),Xs=[{tiles:1,payout:{["CLASSIC"]:[0,3.96],["LOW_RISK"]:[0.7,1.85],["MEDIUM_RISK"]:[0.4,2.75],["HIGH_RISK"]:[0,3.96]}},{tiles:2,payout:{["CLASSIC"]:[0,1.9,4.5],["LOW_RISK"]:[0,2,3.8],["MEDIUM_RISK"]:[0,1.8,5.1],["HIGH_RISK"]:[0,0,17.1]}},{tiles:3,payout:{["CLASSIC"]:[0,1,3.1,10.4],["LOW_RISK"]:[0,1.1,1.38,26],["MEDIUM_RISK"]:[0,0,2.8,50],["HIGH_RISK"]:[0,0,0,81.5]}},{tiles:4,payout:{["CLASSIC"]:[0,0.8,1.8,5,22.5],["LOW_RISK"]:[0,0,2.2,7.9,90],["MEDIUM_RISK"]:[0,0,1.7,10,100],["HIGH_RISK"]:[0,0,0,10,259]}},{tiles:5,payout:{["CLASSIC"]:[0,0.25,1.4,4.1,16.5,36],["LOW_RISK"]:[0,0,1.5,4.2,13,300],["MEDIUM_RISK"]:[0,0,1.4,4,14,390],["HIGH_RISK"]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{["CLASSIC"]:[0,0,1,3.68,7,16.5,40],["LOW_RISK"]:[0,0,1.1,2,6.2,100,700],["MEDIUM_RISK"]:[0,0,0,3,9,180,710],["HIGH_RISK"]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{["CLASSIC"]:[0,0,0.47,3,4.5,14,31,60],["LOW_RISK"]:[0,0,1.1,1.6,3.5,15,225,700],["MEDIUM_RISK"]:[0,0,0,2,7,30,400,800],["HIGH_RISK"]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{["CLASSIC"]:[0,0,0,2.2,4,13,22,55,70],["LOW_RISK"]:[0,0,1.1,1.5,2,5.5,39,100,800],["MEDIUM_RISK"]:[0,0,0,2,4,11,67,400,900],["HIGH_RISK"]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{["CLASSIC"]:[0,0,0,1.55,3,8,15,44,60,85],["LOW_RISK"]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],["MEDIUM_RISK"]:[0,0,0,2,2.5,5,15,100,500,1000],["HIGH_RISK"]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{["CLASSIC"]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],["LOW_RISK"]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],["MEDIUM_RISK"]:[0,0,0,1.6,2,4,7,26,100,500,1000],["HIGH_RISK"]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}],Za=class{static configs(){return Xs}static calculateMultiplier(o,i,a){let t=a.filter((e)=>i.includes(e)),r=this.configs().find((e)=>e.tiles===i.length);if(!r)throw new Error(`No configuration found for ${i.length} tiles`);return new L(r.payout[o][t.length]??0)}static getResults(o,i){let a=[],t=Array.from(Array(De.toNumber()).keys());return o.map(Ne).every((r,e)=>{for(let n=0;n<8;n++){if(a.length>=i)return!1;let s=new L(0);for(let l=0;l<4;l++){let h=r[4*n+l];s=s.plus(new L(h).dividedBy(_s.pow(l+1)))}s=s.multipliedBy(De.minus(new L(8*e+n))).integerValue(L.ROUND_DOWN),a.push(t.splice(s.toNumber(),1)[0]+1)}return!0}),a}static getChance({correctPicks:o,picked:i}){return new L(Di(10,o)).multipliedBy(Di(30,i-o)).dividedBy(new L(Di(40,i)))}},zo=((o)=>{return o.ABOVE="ABOVE",o.BELOW="BELOW",o})(zo||{});class Wo{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/mines"}async startManualBet(o){try{let a=await(await fetch(`${this.baseUrl}/start`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}async getActiveBet(){try{let i=await(await fetch(`${this.baseUrl}/active-bet`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`}})).json();if(!i.activeBet)return{success:!1,error:"No active bet"};return{success:!0,data:i.activeBet}}catch(o){return{success:!1,error:o?.message||"Unknown Error"}}}async selectTile(o){try{let a=await(await fetch(`${this.baseUrl}/next`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}async cashout(){try{let i=await(await fetch(`${this.baseUrl}/cashout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify({})})).json();if(!i.id)throw new Error("Unknown error");return{success:!0,data:i}}catch(o){return{success:!1,error:o?.message||"Unknown Error"}}}async autobetPlay(o){try{let a=await(await fetch(`${this.baseUrl}/auto`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}static getInitialState=()=>{return{selectedTiles:[],mineLocations:[],minesCount:Ji,numMinesRemaining:Ji,numGemsRemaining:oi-Ji,outcome:null,numGemsFound:0,state:"NO_GAME_ACTIVE",betAmount:L(0)}};static deriveSelectedTiles=(o)=>{if(!o?.length)return[];return Array.from(new Set(o.flatMap(({data:i})=>i.MINES&&("selectedTiles"in i.MINES)?i.MINES.selectedTiles:[])))};static deriveMineLocations=(o)=>{return o?.find((a)=>a.data.MINES&&("result"in a.data.MINES))?.data.MINES?.result??[]};static getMinesBetInfo=(o)=>{let i=o?.map((r)=>({minesResult:r.data.MINES&&"result"in r.data.MINES?r.data.MINES.result:[],selected:r.data.MINES&&"selectedTiles"in r.data.MINES?r.data.MINES.selectedTiles:[]}))??[],a=[],t=[];return i.forEach(({minesResult:r,selected:e})=>{a.push(...e),t.push(...r)}),{selected:a,mines:t}};static deriveOutcome=(o)=>{let a=(o?.betActions??[]).find((r)=>r.data.MINES&&("result"in r.data.MINES))?.data.MINES;if(!a||!a?.result||a?.result?.length===0)return null;return L(o?.multiplier??0).isGreaterThan(0)?"WIN":"LOSS"};static deriveAutoOutcome=(o)=>{let i=o?.betActions??[],a=i.find((e)=>e.data.MINES&&("result"in e.data.MINES))?.data.MINES;if(!a||!a.result)return null;let t=i.flatMap((e)=>e.data.MINES&&("selectedTiles"in e.data.MINES)?e.data.MINES.selectedTiles:[]);return a.result.some((e)=>t.includes(e))?"LOSS":"WIN"};static calculateMinesMultiplier=(o,i)=>{if(!i)return L(0);if(o===0)return L(1);let a=Math.min(oi-o,i);return Me.calculateMultiplierBN(o,a,Mr)};static getState=(o)=>{let i=o?.betActions??[];if(!i||i.length===0||!o)return Wo.getInitialState();let a=Wo.deriveOutcome(o),t=o?.betActions?.[0]?.data.MINES?.minesCount??0,r=a==="LOSS"?t-1:t,e=a?"VIEWING_RESULTS":"GAME_IN_PROGRESS",n=Wo.deriveSelectedTiles(o?.betActions),s=oi-t-n.length,l=Wo.deriveMineLocations(o?.betActions),h=n.filter((p)=>!l.includes(p)).length;return{currency:o?.currency,selectedTiles:n,mineLocations:l,outcome:a,minesCount:t,numMinesRemaining:r,numGemsFound:h,numGemsRemaining:s,state:e,betAmount:L(o.amount)}}}class jt extends T{static styles=G`
|
|
2141
2141
|
.currency-display {
|
|
2142
2142
|
display: flex;
|
|
2143
2143
|
align-items: center;
|
|
@@ -2175,7 +2175,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2175
2175
|
</origami-button-group>
|
|
2176
2176
|
`:""}
|
|
2177
2177
|
</origami-input>
|
|
2178
|
-
`}}d([
|
|
2178
|
+
`}}d([ro({context:D,subscribe:!0})],jt.prototype,"gameContext",void 0),jt=d([X("origami-balance-input")],jt);class Lt extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.minesState=null;this.isGameActive=!1;this.isLoading=!1;this.minesCount=3;this.isSelectingRandomTile=!1;this.isTileLoading=!1;this.isBetAmountValid=!0}static styles=[B,za];get _isActionDisabled(){return this.isLoading||this.isSelectingRandomTile||this.isTileLoading}render(){let{betAmount:o=L(0),minesCount:i=0,numGemsFound:a=0,numGemsRemaining:t=0,selectedTiles:r=[]}=this.minesState??{},e=this.gameData?.language||"en",n=Wo.calculateMinesMultiplier(a+1,i),s=Wo.calculateMinesMultiplier(a,i),l=r.length>0,h=L(o).multipliedBy(s).minus(o).toFixed(8),p=L(o).multipliedBy(n).minus(o).toFixed(8);return $`
|
|
2179
2179
|
<origami-balance-input></origami-balance-input>
|
|
2180
2180
|
<origami-bet-amount-input
|
|
2181
2181
|
?disabled=${this.inputsDisabled}
|
|
@@ -2259,7 +2259,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2259
2259
|
</origami-button>
|
|
2260
2260
|
`}
|
|
2261
2261
|
</div>
|
|
2262
|
-
`}}d([
|
|
2262
|
+
`}}d([ro({context:D,subscribe:!0})],Lt.prototype,"gameData",void 0),d([Z({type:Boolean})],Lt.prototype,"inputsDisabled",void 0),d([Z({type:Object})],Lt.prototype,"minesState",void 0),d([Z({type:Boolean})],Lt.prototype,"isGameActive",void 0),d([Z({type:Boolean})],Lt.prototype,"isLoading",void 0),d([Z({type:Number})],Lt.prototype,"minesCount",void 0),d([Z({type:Boolean})],Lt.prototype,"isSelectingRandomTile",void 0),d([Z({type:Boolean})],Lt.prototype,"isTileLoading",void 0),d([O()],Lt.prototype,"isBetAmountValid",void 0),Lt=d([X("origami-mines-manual")],Lt);var Gs=(o)=>{return o.replace(/[^0-9]/g,"")};class Ot extends T{constructor(){super(...arguments);this.disabled=!1}static styles=[B];_handleAutobetGamesChange(o){if(o.detail&&typeof o.detail.value==="string"){let i=o.detail.value,a=Gs(i);this.gameData?.updateAutobetNumberOfBets(+a)}}_handleAutobetGamesBlur(o){let i=o.detail.value;if(i===""||i==="0")this.gameData?.updateAutobetNumberOfBets(0);else{let a=parseInt(i,10);this.gameData?.updateAutobetNumberOfBets(a)}}preventNonWholeNumberInput(o){if(["e","E","+","-","."].includes(o.key))o.preventDefault()}render(){return $`
|
|
2263
2263
|
<origami-input
|
|
2264
2264
|
label=${V("autobet.games",this.gameData?.language||"en")}
|
|
2265
2265
|
type="number"
|
|
@@ -2291,7 +2291,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2291
2291
|
</svg>
|
|
2292
2292
|
`:_}
|
|
2293
2293
|
</origami-input>
|
|
2294
|
-
`}}d([
|
|
2294
|
+
`}}d([ro({context:D,subscribe:!0})],Ot.prototype,"gameData",void 0),d([Z({type:Boolean})],Ot.prototype,"disabled",void 0),Ot=d([X("origami-bet-count-input")],Ot);var li=eo`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0ZM14.2071 5.79289C14.5976 6.18342 14.5976 6.81658 14.2071 7.20711L7.20711 14.2071C6.81658 14.5976 6.18342 14.5976 5.79289 14.2071C5.40237 13.8166 5.40237 13.1834 5.79289 12.7929L12.7929 5.79289C13.1834 5.40237 13.8166 5.40237 14.2071 5.79289ZM8.25 7C8.25 7.69036 7.69036 8.25 7 8.25C6.30964 8.25 5.75 7.69036 5.75 7C5.75 6.30964 6.30964 5.75 7 5.75C7.69036 5.75 8.25 6.30964 8.25 7ZM14.25 13C14.25 13.6904 13.6904 14.25 13 14.25C12.3096 14.25 11.75 13.6904 11.75 13C11.75 12.3096 12.3096 11.75 13 11.75C13.6904 11.75 14.25 12.3096 14.25 13Z" fill="#B3B3B3"/></svg>`;var Ee=G`
|
|
2295
2295
|
:host {
|
|
2296
2296
|
width: 100%;
|
|
2297
2297
|
height: 100%;
|
|
@@ -2398,11 +2398,11 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2398
2398
|
width: 16px;
|
|
2399
2399
|
height: 16px;
|
|
2400
2400
|
}
|
|
2401
|
-
`;var
|
|
2401
|
+
`;var Ts=(o="en")=>[{value:"5",label:V("autobet.games5",o,"5 games")},{value:"10",label:V("autobet.games10",o,"10 games")},{value:"25",label:V("autobet.games25",o,"25 games")},{value:"50",label:V("autobet.games50",o,"50 games")},{value:"100",label:V("autobet.games100",o,"100 games")},{value:"0",label:V("autobet.infinite",o,"Infinite")}],on=Ts(),an=on[on.length-1]?.value??"0",tn=ei("autobet-context");var Bs=(o,i)=>{if(!o)return V("autobet.startAutobet",i);return V("autobet.stopAutobet",i)},Ds={onWinPercentage:"0.00",onLossPercentage:"0.00",stopOnProfit:"0.00",stopOnLoss:"0.00",onLossStrategy:"Reset",onWinStrategy:"Reset"},rn=(o)=>{if(["e","E","+"].includes(o.key))o.preventDefault()},bi=(o)=>{let i=o.replace(/[^0-9.-]/g,"");if(i.includes(".")){let a=i.split(".");i=`${a[0]}.${a.slice(1).join("")}`}return i};class _t extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetSettings=Ds;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this._isStarting=!1;this._onWinFocused=!1;this._onLossFocused=!1;this._stopOnLossFocused=!1;this._stopOnProfitFocused=!1;this.isBetAmountValid=!0}static styles=[B,Ee];_autobetProvider=new xi(this,{context:tn,initialValue:{numberOfBets:an,updateNumberOfBets:this.updateNumberOfBets.bind(this)}});willUpdate(o){if(o.has("autobetInProgress")){if(this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"success",message:V("alerts.autobetStarted",this.gameData?.language||"en")}});else if(o.get("autobetInProgress")!==void 0)this.emit("show-alert",{detail:{id:"autobet-stopped",type:"error",message:V("alerts.autobetStopped",this.gameData?.language||"en")}})}if(o.has("autobetInProgress")&&this.autobetInProgress)this._isStarting=!1}updateNumberOfBets(o){this._autobetProvider.setValue({...this._autobetProvider.value,numberOfBets:o})}_handleWinPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onWinPercentage:bi(o.detail.value)}}_handleLossPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onLossPercentage:bi(o.detail.value)}}_handleStopOnProfitChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnProfit:bi(o.detail.value)}}_handleStopOnLossChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnLoss:bi(o.detail.value)}}_hasCustomInputs(){if(!this.customInputsSlot)return!1;let o=this.customInputsSlot.assignedNodes();return o.length>0&&o.some((i)=>i.nodeType===Node.ELEMENT_NODE)}render(){let o=this.gameData?.language||"en";return $`
|
|
2402
2402
|
<origami-balance-input></origami-balance-input>
|
|
2403
2403
|
|
|
2404
2404
|
<div
|
|
2405
|
-
class=${
|
|
2405
|
+
class=${ao({"form-content":!0,"form-content-disabled":this.inputsDisabled})}
|
|
2406
2406
|
>
|
|
2407
2407
|
<origami-bet-amount-input
|
|
2408
2408
|
@bet-amount-validity-change=${(i)=>{this.isBetAmountValid=i.detail.isValid}}
|
|
@@ -2420,7 +2420,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2420
2420
|
.value=${this.autobetSettings.onWinPercentage}
|
|
2421
2421
|
type="number"
|
|
2422
2422
|
@input-change=${this._handleWinPercentageChange}
|
|
2423
|
-
@keydown=${
|
|
2423
|
+
@keydown=${rn}
|
|
2424
2424
|
?disabled=${this.autobetSettings.onWinStrategy==="Reset"||this.inputsDisabled}
|
|
2425
2425
|
?keepLabelEnabled=${!0}
|
|
2426
2426
|
@input-focus=${()=>{this._onWinFocused=!0}}
|
|
@@ -2448,7 +2448,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2448
2448
|
label=${V("autobet.onLoss",o)}
|
|
2449
2449
|
.value=${this.autobetSettings.onLossPercentage}
|
|
2450
2450
|
type="number"
|
|
2451
|
-
@keydown=${
|
|
2451
|
+
@keydown=${rn}
|
|
2452
2452
|
@input-change=${this._handleLossPercentageChange}
|
|
2453
2453
|
?disabled=${this.autobetSettings.onLossStrategy==="Reset"||this.inputsDisabled}
|
|
2454
2454
|
?keepLabelEnabled=${!0}
|
|
@@ -2500,7 +2500,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2500
2500
|
</div>
|
|
2501
2501
|
</div>
|
|
2502
2502
|
|
|
2503
|
-
<div class=${
|
|
2503
|
+
<div class=${ao({"form-content":!0,"form-content-disabled":this.inputsDisabled,"force-bottom":!0,"hide-on-mobile":!0})}>
|
|
2504
2504
|
<slot name="action-buttons-desktop"></slot>
|
|
2505
2505
|
</div>
|
|
2506
2506
|
|
|
@@ -2513,9 +2513,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2513
2513
|
@click=${()=>{if(!this.autobetInProgress)this._isStarting=!0,this.gameData?.soundController?.play("bet");this.emit("autobet-toggle",{detail:{...this.autobetSettings,numberOfBets:this._autobetProvider.value.numberOfBets}})}}
|
|
2514
2514
|
hotkey=" "
|
|
2515
2515
|
>
|
|
2516
|
-
${
|
|
2516
|
+
${Bs(this.autobetInProgress,this.gameData?.language||"en")}
|
|
2517
2517
|
</origami-button>
|
|
2518
|
-
`}}d([Z({type:Boolean})],_t.prototype,"inputsDisabled",void 0),d([Z({type:Object})],_t.prototype,"autobetSettings",void 0),d([Z({type:Boolean})],_t.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],_t.prototype,"autobetInProgress",void 0),d([Z({type:String})],_t.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],_t.prototype,"betDisabled",void 0),d([O()],_t.prototype,"_isStarting",void 0),d([O()],_t.prototype,"_onWinFocused",void 0),d([O()],_t.prototype,"_onLossFocused",void 0),d([O()],_t.prototype,"_stopOnLossFocused",void 0),d([O()],_t.prototype,"_stopOnProfitFocused",void 0),d([O()],_t.prototype,"isBetAmountValid",void 0),d([
|
|
2518
|
+
`}}d([Z({type:Boolean})],_t.prototype,"inputsDisabled",void 0),d([Z({type:Object})],_t.prototype,"autobetSettings",void 0),d([Z({type:Boolean})],_t.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],_t.prototype,"autobetInProgress",void 0),d([Z({type:String})],_t.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],_t.prototype,"betDisabled",void 0),d([O()],_t.prototype,"_isStarting",void 0),d([O()],_t.prototype,"_onWinFocused",void 0),d([O()],_t.prototype,"_onLossFocused",void 0),d([O()],_t.prototype,"_stopOnLossFocused",void 0),d([O()],_t.prototype,"_stopOnProfitFocused",void 0),d([O()],_t.prototype,"isBetAmountValid",void 0),d([ro({context:D,subscribe:!0})],_t.prototype,"gameData",void 0),d([fo('slot[name="custom-inputs"]')],_t.prototype,"customInputsSlot",void 0),_t=d([X("origami-generic-autobet")],_t);class Xt extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.minesCount=5;this.disableBet=!1;this.isDesktop=!1}static styles=[B,za];_handleMinesCountChange(o){this.emit("mines-count-change",{detail:{count:+o.detail.value}})}render(){let o=this.gameData?.language||"en";return $`
|
|
2519
2519
|
<origami-generic-autobet
|
|
2520
2520
|
data-is-desktop=${this.isDesktop}
|
|
2521
2521
|
?inputsDisabled=${this.inputsDisabled}
|
|
@@ -2536,7 +2536,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2536
2536
|
<origami-bet-count-input></origami-bet-count-input>
|
|
2537
2537
|
</div>
|
|
2538
2538
|
</origami-generic-autobet>
|
|
2539
|
-
`}}d([Z({type:Boolean})],Xt.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],Xt.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],Xt.prototype,"autobetInProgress",void 0),d([Z({type:String})],Xt.prototype,"profitOnWin",void 0),d([Z({type:Number})],Xt.prototype,"minesCount",void 0),d([Z({type:Boolean})],Xt.prototype,"disableBet",void 0),d([Z({type:Boolean})],Xt.prototype,"isDesktop",void 0),d([
|
|
2539
|
+
`}}d([Z({type:Boolean})],Xt.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],Xt.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],Xt.prototype,"autobetInProgress",void 0),d([Z({type:String})],Xt.prototype,"profitOnWin",void 0),d([Z({type:Number})],Xt.prototype,"minesCount",void 0),d([Z({type:Boolean})],Xt.prototype,"disableBet",void 0),d([Z({type:Boolean})],Xt.prototype,"isDesktop",void 0),d([ro({context:D,subscribe:!0})],Xt.prototype,"gameData",void 0),Xt=d([X("origami-mines-auto")],Xt);var en=G`
|
|
2540
2540
|
:host {
|
|
2541
2541
|
container-type: inline-size;
|
|
2542
2542
|
}
|
|
@@ -2572,9 +2572,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2572
2572
|
margin-top: 0;
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
|
-
`;class At extends T{constructor(){super(...arguments);this.mode="Manual";this.toggleDisabled=!1;this.isLoading=!1;this.className=""}static styles=[B,
|
|
2575
|
+
`;class At extends T{constructor(){super(...arguments);this.mode="Manual";this.toggleDisabled=!1;this.isLoading=!1;this.className=""}static styles=[B,en];betAmount="10.00";_handleToggleChange(o){let i=o.detail?.value;if(i&&i!==this.mode)this.mode=i,this.emit("bet-mode-change",{detail:{tab:i}})}render(){let o=this.gameData?.language||"en";return $`
|
|
2576
2576
|
<div
|
|
2577
|
-
class=${
|
|
2577
|
+
class=${ao({controls:!0,[this.className]:!!this.className})}
|
|
2578
2578
|
>
|
|
2579
2579
|
<div class="config-section">
|
|
2580
2580
|
<origami-toggle
|
|
@@ -2591,7 +2591,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2591
2591
|
|
|
2592
2592
|
<slot name="controls"> </slot>
|
|
2593
2593
|
</div>
|
|
2594
|
-
`}}d([
|
|
2594
|
+
`}}d([ro({context:D,subscribe:!0})],At.prototype,"gameData",void 0),d([Z({type:String})],At.prototype,"mode",void 0),d([Z({type:Boolean})],At.prototype,"toggleDisabled",void 0),d([Z({type:Boolean})],At.prototype,"isLoading",void 0),d([Z({type:String})],At.prototype,"className",void 0),At=d([X("origami-game-sidebar")],At);var nn=G`
|
|
2595
2595
|
:host {
|
|
2596
2596
|
display: block;
|
|
2597
2597
|
container-type: inline-size;
|
|
@@ -2659,6 +2659,10 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2659
2659
|
--tooltip-font-size: 12px;
|
|
2660
2660
|
--tooltip-offset: 6px;
|
|
2661
2661
|
}
|
|
2662
|
+
|
|
2663
|
+
.hidden {
|
|
2664
|
+
display: none;
|
|
2665
|
+
}
|
|
2662
2666
|
|
|
2663
2667
|
.hide-on-mobile {
|
|
2664
2668
|
display: none;
|
|
@@ -2669,7 +2673,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2669
2673
|
display: flex;
|
|
2670
2674
|
}
|
|
2671
2675
|
}
|
|
2672
|
-
`;class Gt extends T{constructor(){super(...arguments);this.showLogo=!0;this.isVolumeSliderOpen=!1}static styles=[B,
|
|
2676
|
+
`;class Gt extends T{constructor(){super(...arguments);this.showLogo=!0;this.showHistoryButton=!0;this.isVolumeSliderOpen=!1}static styles=[B,nn];handleLobbyClick(){let o=this.gameData?.lobbyUrl||"https://betorigami.com";if(window.top)window.top.location.href=o;else window.location.href=o}handleVolumeClick(){if(this.isVolumeSliderOpen=!this.isVolumeSliderOpen,document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleInstantBetClick(){if(this.gameData?.updateInstantBetEnabled(!this.gameData?.instantBetEnabled),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleProvablyFairClick(){if(this.emit("footer-provably-fair-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleGameInfoClick(){if(this.emit("footer-game-info-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleHotkeysClick(){if(this.gameData?.updateHotkeysOpenEnabled(!this.gameData?.hotkeysOpenEnabled),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleVerifyClick(){if(this.emit("footer-verify-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}render(){let o=this.gameData?.language||"en",i={position:"top",delay:0,hideDelay:0,offset:0,arrow:!0,theme:"light",trigger:["hover"]},a={"icon-wrapper":!0,"icon-active":this.isVolumeSliderOpen},t={"icon-wrapper":!0},r={"icon-wrapper":!0,"icon-active":this.gameData?.instantBetEnabled??!1},e={"icon-wrapper":!0};return $`
|
|
2673
2677
|
<footer class="footer" role="contentinfo" aria-label=${V("common.siteInformation",o)}>
|
|
2674
2678
|
<nav class="footer-icon-group" role="navigation" aria-label=${V("common.footerNavigation",o)}>
|
|
2675
2679
|
|
|
@@ -2686,7 +2690,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2686
2690
|
aria-label=${V("common.lobby",o)}
|
|
2687
2691
|
@button-click=${this.handleLobbyClick}
|
|
2688
2692
|
>
|
|
2689
|
-
<div class=${
|
|
2693
|
+
<div class=${ao(t)} slot="icon">
|
|
2690
2694
|
<lottie-icon
|
|
2691
2695
|
src="https://lottie.host/db97a0ba-3a21-44bc-96fa-d4088bd2fe5c/vbKvdWpsfG.json"
|
|
2692
2696
|
size="16px"
|
|
@@ -2709,7 +2713,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2709
2713
|
aria-label=${V("common.volume",o)}
|
|
2710
2714
|
@button-click=${this.handleVolumeClick}
|
|
2711
2715
|
>
|
|
2712
|
-
<div class=${
|
|
2716
|
+
<div class=${ao(a)} slot="icon">
|
|
2713
2717
|
<lottie-icon
|
|
2714
2718
|
?active=${this.isVolumeSliderOpen}
|
|
2715
2719
|
src="https://lottie.host/058da5c0-d98e-4ea5-a94a-3e4009cd65e4/jDXGAtHbYk.json"
|
|
@@ -2741,7 +2745,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2741
2745
|
aria-haspopup="dialog"
|
|
2742
2746
|
@button-click=${this.handleGameInfoClick}
|
|
2743
2747
|
>
|
|
2744
|
-
<div class=${
|
|
2748
|
+
<div class=${ao(e)} slot="icon">
|
|
2745
2749
|
<lottie-icon
|
|
2746
2750
|
src="https://lottie.host/06d98cdd-4262-4813-8dcf-40703ebf38f1/S2U1I8irZV.json"
|
|
2747
2751
|
size="16px"
|
|
@@ -2763,7 +2767,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2763
2767
|
aria-pressed=${this.gameData?.instantBetEnabled?"true":"false"}
|
|
2764
2768
|
@button-click=${this.handleInstantBetClick}
|
|
2765
2769
|
>
|
|
2766
|
-
<div class=${
|
|
2770
|
+
<div class=${ao(r)} slot="icon">
|
|
2767
2771
|
<lottie-icon
|
|
2768
2772
|
?active=${this.gameData?.instantBetEnabled}
|
|
2769
2773
|
src="https://lottie.host/1cb790ff-3257-4054-8a90-696def333c4c/aHceXsplix.json"
|
|
@@ -2799,7 +2803,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2799
2803
|
</origami-tooltip>
|
|
2800
2804
|
</nav>
|
|
2801
2805
|
|
|
2802
|
-
<div class
|
|
2806
|
+
<div class=${ao({"footer-links":!0,hidden:!this.showHistoryButton})}>
|
|
2803
2807
|
<origami-button
|
|
2804
2808
|
variant="secondary"
|
|
2805
2809
|
@button-click=${this.handleProvablyFairClick}
|
|
@@ -2830,7 +2834,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2830
2834
|
</origami-tooltip>
|
|
2831
2835
|
</div>
|
|
2832
2836
|
</footer>
|
|
2833
|
-
`}}d([
|
|
2837
|
+
`}}d([ro({context:D,subscribe:!0})],Gt.prototype,"gameData",void 0),d([Z({type:Boolean})],Gt.prototype,"showLogo",void 0),d([Z({type:Boolean})],Gt.prototype,"showHistoryButton",void 0),d([O()],Gt.prototype,"isVolumeSliderOpen",void 0),Gt=d([X("origami-footer")],Gt);function Oo(o,i,a){return new Promise((t)=>{if(a?.duration===Number.POSITIVE_INFINITY)throw new Error("Promise-based animations must be finite.");let r=o.animate(i,{...a,duration:Ns()?0:a?.duration??0});r.addEventListener("cancel",t,{once:!0}),r.addEventListener("finish",t,{once:!0})})}function Ns(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ii(o){return Promise.all(o.getAnimations().map((i)=>{return new Promise((a)=>{i.cancel(),requestAnimationFrame(a)})}))}var ln=new Map,Ms=new WeakMap;function Es(o){return o??{keyframes:[],options:{duration:0}}}function sn(o,i){if(i.toLowerCase()==="rtl")return{keyframes:o.rtlKeyframes||o.keyframes,options:o.options};return o}function qo(o,i){ln.set(o,Es(i))}function _o(o,i,a){let t=Ms.get(o);if(t?.[i])return sn(t[i],a.dir);let r=ln.get(i);if(r)return sn(r,a.dir);return{keyframes:[],options:{duration:0}}}function Pi(o,i){return new Promise((a)=>{function t(r){if(r.target===o)o.removeEventListener(i,t),a()}o.addEventListener(i,t)})}function*Sa(o=document.activeElement){if(o===null||o===void 0)return;if(yield o,"shadowRoot"in o&&o.shadowRoot&&o.shadowRoot.mode!=="closed")yield*Sa(o.shadowRoot.activeElement)}function dn(){return[...Sa()].pop()}var cn=new WeakMap;function hn(o){let i=cn.get(o);if(!i)i=window.getComputedStyle(o,null),cn.set(o,i);return i}function ol(o){if(typeof o.checkVisibility==="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=hn(o);return i.visibility!=="hidden"&&i.display!=="none"}function il(o){let i=hn(o),{overflowY:a,overflowX:t}=i;if(a==="scroll"||t==="scroll")return!0;if(a!=="auto"||t!=="auto")return!1;if(o.scrollHeight>o.clientHeight&&a==="auto")return!0;if(o.scrollWidth>o.clientWidth&&t==="auto")return!0;return!1}function al(o){let i=o.tagName.toLowerCase(),a=Number(o.getAttribute("tabindex"));if(o.hasAttribute("tabindex")&&(isNaN(a)||a<=-1))return!1;if(o.hasAttribute("disabled"))return!1;if(o.closest("[inert]"))return!1;if(i==="input"&&o.getAttribute("type")==="radio"){let e=o.getRootNode(),n=`input[type='radio'][name="${o.getAttribute("name")}"]`,s=e.querySelector(`${n}:checked`);if(s)return s===o;return e.querySelector(n)===o}if(!ol(o))return!1;if((i==="audio"||i==="video")&&o.hasAttribute("controls"))return!0;if(o.hasAttribute("tabindex"))return!0;if(o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false")return!0;if(["button","input","select","textarea","a","audio","video","summary","iframe"].includes(i))return!0;return il(o)}function tl(o,i){return o.getRootNode({composed:!0})?.host!==i}function Tt(o){let i=new WeakMap,a=[];function t(r){if(r instanceof Element){if(r.hasAttribute("inert")||r.closest("[inert]"))return;if(i.has(r))return;if(i.set(r,!0),!a.includes(r)&&al(r))a.push(r);if(r instanceof HTMLSlotElement&&tl(r,o))r.assignedElements({flatten:!0}).forEach((e)=>{t(e)});if(r.shadowRoot!==null&&r.shadowRoot.mode==="open")t(r.shadowRoot)}for(let e of r.children)t(e)}return t(o),a.sort((r,e)=>{let n=Number(r.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-n})}var Ni=[];class ji{element;isExternalActivated=!1;tabDirection="forward";currentFocus=null;previousFocus=null;elementsWithTabbableControls;constructor(o){this.element=o,this.elementsWithTabbableControls=["iframe"]}activate(){Ni.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Ni=Ni.filter((o)=>o!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Ni[Ni.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){let o=Tt(this.element);if(!this.element.matches(":focus-within")){let i=o[0],a=o[o.length-1],t=this.tabDirection==="forward"?i:a;if(typeof t?.focus==="function")this.currentFocus=t,t.focus({preventScroll:!1})}}}handleFocusIn=()=>{if(!this.isActive())return;this.checkFocus()};possiblyHasTabbableChildren(o){return this.elementsWithTabbableControls.includes(o.tagName.toLowerCase())||o.hasAttribute("controls")}handleKeyDown=(o)=>{if(o.key!=="Tab"||this.isExternalActivated)return;if(!this.isActive())return;let i=dn();if(this.previousFocus=i,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o.shiftKey)this.tabDirection="backward";else this.tabDirection="forward";let a=Tt(this.element),t=a.findIndex((e)=>e===i);this.previousFocus=this.currentFocus;let r=this.tabDirection==="forward"?1:-1;while(!0){if(t+r>=a.length)t=0;else if(t+r<0)t=a.length-1;else t+=r;this.previousFocus=this.currentFocus;let e=a[t];if(this.tabDirection==="backward"){if(this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return}if(e&&this.possiblyHasTabbableChildren(e))return;o.preventDefault(),this.currentFocus=e??null,this.currentFocus?.focus({preventScroll:!1});let n=[...Sa()];if(this.currentFocus&&n.includes(this.currentFocus)||this.previousFocus&&!n.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())};handleKeyUp=()=>{this.tabDirection="forward"}}var Bt=new Set;function rl(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function el(){let o=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));if(Number.isNaN(o)||!o)return 0;return o}function Vi(o){if(Bt.add(o),!document.documentElement.classList.contains("sl-scroll-lock")){let i=rl()+el(),a=getComputedStyle(document.documentElement).scrollbarGutter;if(!a||a==="auto")a="stable";if(i<2)a="";document.documentElement.style.setProperty("--sl-scroll-lock-gutter",a),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${i}px`)}}function wi(o){if(Bt.delete(o),Bt.size===0)document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size")}var un=G`
|
|
2834
2838
|
:host {
|
|
2835
2839
|
--sl-spacing-2x-large: 36px;
|
|
2836
2840
|
--sl-border-radius-medium: 10px;
|
|
@@ -2915,10 +2919,10 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2915
2919
|
border: solid 1px var(--sl-color-neutral-0);
|
|
2916
2920
|
}
|
|
2917
2921
|
}
|
|
2918
|
-
`;class Ka extends T{constructor(){super(...arguments);this.fixedPosition=!1;this.open=!1;this.label="";this.lockScrolling=!1;this.noHeader=!1}static styles=[B,
|
|
2922
|
+
`;class Ka extends T{constructor(){super(...arguments);this.fixedPosition=!1;this.open=!1;this.label="";this.lockScrolling=!1;this.noHeader=!1}static styles=[B,un];originalTrigger=null;focusTrap=new ji(this);closeWatcher=null;firstUpdated(){if(this.dialog.hidden=!this.open,this.open){if(this.addOpenListeners(),this.focusTrap.activate(),this.lockScrolling)Vi(this)}}disconnectedCallback(){super.disconnectedCallback(),this.focusTrap.deactivate(),wi(this),this.removeOpenListeners()}requestClose(o){if(this.emit("modal-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=_o(this,"dialog.denyClose",{dir:""});Oo(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){if("CloseWatcher"in window)this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard");else document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){this.closeWatcher?.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown=(o)=>{if(o.key==="Escape"&&this.focusTrap.isActive()&&this.open)o.stopPropagation(),this.requestClose("keyboard")};async handleOpenChange(){if(this.open){if(this.emit("modal-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.focusTrap.activate(),this.lockScrolling)Vi(this);let o=this.querySelector("[autofocus]");if(o)o.removeAttribute("autofocus");await Promise.all([ii(this.dialog),ii(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{if(!this.emit("modal-initial-focus",{cancelable:!0}).defaultPrevented)if(o)o.focus({preventScroll:!0});else this.panel.focus({preventScroll:!0});if(o)o.setAttribute("autofocus","")});let i=_o(this,"dialog.show",{dir:""}),a=_o(this,"dialog.overlay.show",{dir:""});await Promise.all([Oo(this.panel,i.keyframes,i.options),Oo(this.overlay,a.keyframes,a.options)]),this.emit("modal-after-show")}else{this.emit("modal-hide"),this.removeOpenListeners(),this.focusTrap.deactivate(),await Promise.all([ii(this.dialog),ii(this.overlay)]);let o=_o(this,"dialog.hide",{dir:""}),i=_o(this,"dialog.overlay.hide",{dir:""});await Promise.all([Oo(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),Oo(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,wi(this);let a=this.originalTrigger;if(typeof a?.focus==="function")setTimeout(()=>a.focus());this.emit("modal-after-hide")}}async show(){if(this.open)return;return this.open=!0,Pi(this,"modal-after-show")}async hide(){if(!this.open)return;return this.open=!1,Pi(this,"modal-after-hide")}render(){return $`
|
|
2919
2923
|
<div
|
|
2920
2924
|
part="base"
|
|
2921
|
-
class=${
|
|
2925
|
+
class=${ao({dialog:!0,"dialog--open":this.open,"dialog--fixed-position":this.fixedPosition})}
|
|
2922
2926
|
>
|
|
2923
2927
|
<div
|
|
2924
2928
|
part="overlay"
|
|
@@ -2941,7 +2945,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
2941
2945
|
|
|
2942
2946
|
</div>
|
|
2943
2947
|
</div>
|
|
2944
|
-
`}}d([
|
|
2948
|
+
`}}d([ro({context:D,subscribe:!0})],Ka.prototype,"gameData",void 0),d([Z({type:Boolean})],Ka.prototype,"fixedPosition",void 0),d([fo(".dialog")],Ka.prototype,"dialog",void 0),d([fo(".dialog__panel")],Ka.prototype,"panel",void 0),d([fo(".dialog__overlay")],Ka.prototype,"overlay",void 0),d([Z({type:Boolean,reflect:!0})],Ka.prototype,"open",void 0),d([Z({reflect:!0})],Ka.prototype,"label",void 0),d([Z({type:Boolean})],Ka.prototype,"lockScrolling",void 0),d([Z({attribute:"no-header",type:Boolean,reflect:!0})],Ka.prototype,"noHeader",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Ka.prototype,"handleOpenChange",null),Ka=d([X("origami-modal")],Ka);qo("dialog.show",{keyframes:[{opacity:0.9,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],options:{duration:150,easing:"ease-out"}});qo("dialog.hide",{keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0.9,transform:"translateX(100%)"}],options:{duration:150,easing:"ease-out"}});qo("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:150}});qo("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:150}});qo("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:150}});var fn=G`
|
|
2945
2949
|
:host {
|
|
2946
2950
|
display: flex;
|
|
2947
2951
|
flex-direction: column;
|
|
@@ -3065,7 +3069,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3065
3069
|
color: #ffffff !important;
|
|
3066
3070
|
}
|
|
3067
3071
|
}
|
|
3068
|
-
`;class Fo{static instance;cache=new Map;pendingRequests=new Map;maxCacheSize=50;cacheExpirationMs=300000;static getInstance(){if(!Fo.instance)Fo.instance=new Fo;return Fo.instance}async fetchBetResult(o,i){let a=this.getFromCache(o);if(a)return a;let t=this.pendingRequests.get(o);if(t)return t;let r=this.performFetch(o,i);this.pendingRequests.set(o,r);try{return await r}finally{this.pendingRequests.delete(o)}}async performFetch(o,i){try{let a=await fetch(`${i}/bet/bet-info?betId=${o}`);if(!a.ok)return null;let t=await a.json();return this.addToCache(o,t),t}catch(a){return console.error("Failed to fetch bet result:",a),null}}getFromCache(o){let i=this.cache.get(o);if(!i)return null;if(Date.now()-i.timestamp>this.cacheExpirationMs)return this.cache.delete(o),null;return i.data}addToCache(o,i){if(this.cache.size>=this.maxCacheSize){let a=this.cache.keys().next().value;if(a)this.cache.delete(a)}this.cache.set(o,{data:i,timestamp:Date.now()})}preloadBetResult(o,i){this.fetchBetResult(o,i).catch(()=>{})}}class Dt extends T{constructor(){super(...arguments);this._historyData=[];this._isLoading=!0;this._isLoadingMore=!1;this._hasNextPage=!1}static styles=[B,
|
|
3072
|
+
`;class Fo{static instance;cache=new Map;pendingRequests=new Map;maxCacheSize=50;cacheExpirationMs=300000;static getInstance(){if(!Fo.instance)Fo.instance=new Fo;return Fo.instance}async fetchBetResult(o,i){let a=this.getFromCache(o);if(a)return a;let t=this.pendingRequests.get(o);if(t)return t;let r=this.performFetch(o,i);this.pendingRequests.set(o,r);try{return await r}finally{this.pendingRequests.delete(o)}}async performFetch(o,i){try{let a=await fetch(`${i}/bet/bet-info?betId=${o}`);if(!a.ok)return null;let t=await a.json();return this.addToCache(o,t),t}catch(a){return console.error("Failed to fetch bet result:",a),null}}getFromCache(o){let i=this.cache.get(o);if(!i)return null;if(Date.now()-i.timestamp>this.cacheExpirationMs)return this.cache.delete(o),null;return i.data}addToCache(o,i){if(this.cache.size>=this.maxCacheSize){let a=this.cache.keys().next().value;if(a)this.cache.delete(a)}this.cache.set(o,{data:i,timestamp:Date.now()})}preloadBetResult(o,i){this.fetchBetResult(o,i).catch(()=>{})}}class Dt extends T{constructor(){super(...arguments);this._historyData=[];this._isLoading=!0;this._isLoadingMore=!1;this._hasNextPage=!1}static styles=[B,fn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Fo.getInstance();_historyDataChangedHandler=(o)=>{let i=o;this._historyData=[...i.detail.historyData],this._hasNextPage=i.detail.hasNextPage};_previousHistoryController;connectedCallback(){super.connectedCallback(),this._setupHistoryController()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupHistoryController()}willUpdate(o){if(super.willUpdate(o),this.gameConsumer.value?.historyController!==this._previousHistoryController)this._cleanupHistoryController(),this._setupHistoryController()}_setupHistoryController(){let o=this.gameConsumer.value?.historyController;if(o)o.addEventListener("history-data-changed",this._historyDataChangedHandler),this._previousHistoryController=o,this._initializeFromCache()}_cleanupHistoryController(){if(this._previousHistoryController)this._previousHistoryController.removeEventListener("history-data-changed",this._historyDataChangedHandler),this._previousHistoryController=void 0}async firstUpdated(){if(this._historyData.length>0)this._refreshInBackground();else await this.loadHistoryData()}_initializeFromCache(){let o=this.gameConsumer.value?.historyController;if(o?.isInitialized)this._historyData=[...o.historyData],this._hasNextPage=o.hasNextPage}async _refreshInBackground(){let o=this.gameConsumer.value?.historyController;if(!o)return;try{await o.refreshHistory(!0)}catch(i){console.error("Failed to refresh history in background:",i)}}async loadHistoryData(){let o=this.gameConsumer.value?.historyController;if(o?.isInitialized&&o.historyData.length>0){this._historyData=[...o.historyData],this._hasNextPage=o.hasNextPage;return}this._isLoading=!0;try{if(o)await o.refreshHistory()}catch(i){console.error("Failed to load history data:",i)}finally{this._isLoading=!1}}async _handleShowMore(){if(this._isLoadingMore||!this._hasNextPage)return;let o=this.gameConsumer.value?.historyController;if(!o)return;this._isLoadingMore=!0;try{await o.loadMore()}catch(i){console.error("Failed to load more history data:",i)}finally{this._isLoadingMore=!1}}_handleRowHover(o){let i=this.gameConsumer.value?.baseUrl;if(i&&o)this.betResultCache.preloadBetResult(o,i)}_formatMonetaryAmount(o,i){let a=Math.abs(o),t=qi(i),r=Wi(i),e=Ui(i),n="";if(o<0)n+="-";if(e===0)n+=`${r}${a.toFixed(t)}`;if(e===1)n+=`${a.toFixed(t)} ${r}`;return n}_getCurrencyDisplay(o){return Qo(o??"USD")}_formatTimestamp(o){let i=new Date(o);if(isNaN(i.getTime()))return o;let a=i.getDate().toString().padStart(2,"0"),t=(i.getMonth()+1).toString().padStart(2,"0"),r=i.getFullYear().toString().slice(-2),e=i.getHours(),n=i.getMinutes().toString().padStart(2,"0"),s=e>=12?"PM":"AM";return e=e%12||12,`${a}/${t}/${r} ${e}:${n}${s}`}_calculateMultiplier(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e)||r===0)return"0.00x";return`${(e/r).toFixed(2)}x`}_calculatePayout(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e))return{amount:0,isProfit:!1};if(e===0)return{amount:-r,isProfit:!1};return{amount:e,isProfit:e>r}}render(){let o=this.gameConsumer.value?.language||"en",i=(this.gameConsumer.value?.mainWidth??0)<768;if(this._isLoading&&this._historyData.length===0)return $`
|
|
3069
3073
|
<div class="history-table-container" style=${"display:flex;align-items:center;justify-content:center;min-height:200px;"}>
|
|
3070
3074
|
<div class="spinner-container">
|
|
3071
3075
|
<origami-spinner></origami-spinner>
|
|
@@ -3373,7 +3377,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3373
3377
|
.copy-icon-container .icon-layer.visible {
|
|
3374
3378
|
opacity: 1;
|
|
3375
3379
|
}
|
|
3376
|
-
`;var
|
|
3380
|
+
`;var gn=G`
|
|
3377
3381
|
:host {
|
|
3378
3382
|
display: grid;
|
|
3379
3383
|
max-width: 100%;
|
|
@@ -3419,7 +3423,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3419
3423
|
padding: 12px;
|
|
3420
3424
|
border-radius: 10px;
|
|
3421
3425
|
}
|
|
3422
|
-
`;var
|
|
3426
|
+
`;var pn=G`
|
|
3423
3427
|
:host {
|
|
3424
3428
|
display: block;
|
|
3425
3429
|
--success-color: var(--win-success-color, #4ef382);
|
|
@@ -3542,7 +3546,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3542
3546
|
color: var(--text-color);
|
|
3543
3547
|
margin: 0;
|
|
3544
3548
|
}
|
|
3545
|
-
`;var
|
|
3549
|
+
`;var nl=eo`
|
|
3546
3550
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="13" viewBox="0 0 18 13" fill="none">
|
|
3547
3551
|
<path d="M9.00053 13.0001L6.02913 6.31431L11.9719 6.31431L9.00053 13.0001Z" fill="#08FC02"/>
|
|
3548
3552
|
<path d="M9.00069 2.97131L11.9721 6.31422L6.0293 6.31422L9.00069 2.97131Z" fill="#00D403"/>
|
|
@@ -3565,7 +3569,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3565
3569
|
<path d="M9.00017 13.0001L6.02877 6.31431L0.828857 4.45713L9.00017 13.0001Z" fill="#01E200"/>
|
|
3566
3570
|
<path d="M13.643 1.67133L9.00024 2.97135L4.35744 1.67133L3.24316 0.928463L5.286 -0.00012207H12.7145L14.7573 0.928463L13.643 1.67133Z" fill="#08FC02"/>
|
|
3567
3571
|
</svg>
|
|
3568
|
-
`,
|
|
3572
|
+
`,sl=eo`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" viewBox="0 0 14 15" fill="none">
|
|
3569
3573
|
<path d="M0 11V4L3.5 0.5H10.5L14 4V11L10.5 14.5H3.5L0 11Z" fill="#D9D9D9"/>
|
|
3570
3574
|
<path d="M2.7998 9.59999V5.39999L4.8998 3.29999H9.0998L11.1998 5.39999V9.59999L9.0998 11.7H4.8998L2.7998 9.59999Z" fill="#08FC02"/>
|
|
3571
3575
|
<path d="M2.8 5.4L0 4V11L2.8 9.6V5.4Z" fill="#01E200"/>
|
|
@@ -3576,7 +3580,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3576
3580
|
<path d="M-1.5299e-07 11L3.5 14.5L4.9 11.7L2.8 9.6L-1.5299e-07 11Z" fill="#03BD02"/>
|
|
3577
3581
|
<path d="M10.5 14.5L14 11L11.2 9.6L9.1 11.7L10.5 14.5Z" fill="#01E401"/>
|
|
3578
3582
|
<path d="M14 4L10.5 0.5L9.1 3.3L11.2 5.4L14 4Z" fill="#019902"/>
|
|
3579
|
-
</svg>`,
|
|
3583
|
+
</svg>`,ll={Keno:sl,Mines:nl};class Nt extends T{static styles=[B,pn];betResultCache=Fo.getInstance();gameConsumer=new wo(this,{context:D,subscribe:!0});constructor(){super();this.payout=null;this.multiplier=void 0;this.currencySymbol="$";this.title="";this.description="";this.gemCount=4;this.gameType="Keno";this.isLoss=!1;this.isPush=!1;this.addEventListener("click",this.handleClick),this.addEventListener("mouseenter",this.handleMouseEnter)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("mouseenter",this.handleMouseEnter)}handleClick(){if(this.betId)this.emit("open-bet-result-modal",{detail:{betId:this.betId}})}handleMouseEnter(){let o=this.gameConsumer.value?.baseUrl;if(o&&this.betId)this.betResultCache.preloadBetResult(this.betId,o)}updated(o){if(o.has("multiplier")&&this.multiplier!==void 0)this.isLoss=this.multiplier<1,this.isPush=this.multiplier===1}render(){return $`
|
|
3580
3584
|
<div class="game-win-popup-top">
|
|
3581
3585
|
<h2 id="win-popup-multiplier" class="game-win-popup-multiplier">
|
|
3582
3586
|
${this.title||(this.multiplier!==void 0?$`${this.multiplier.toFixed(2)}x`:"")}
|
|
@@ -3593,12 +3597,12 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3593
3597
|
|
|
3594
3598
|
<div class="game-win-popup-gem-section">
|
|
3595
3599
|
<span class="game-win-popup-gem-count">${this.gemCount}</span>
|
|
3596
|
-
${
|
|
3600
|
+
${ll[this.gameType]}
|
|
3597
3601
|
</div>
|
|
3598
3602
|
</div>
|
|
3599
|
-
`}}d([Z({type:Object})],Nt.prototype,"payout",void 0),d([Z({type:Number})],Nt.prototype,"multiplier",void 0),d([Z({type:String})],Nt.prototype,"currencySymbol",void 0),d([Z({type:String})],Nt.prototype,"title",void 0),d([Z({type:String})],Nt.prototype,"description",void 0),d([Z({type:Number})],Nt.prototype,"gemCount",void 0),d([Z({type:String})],Nt.prototype,"gameType",void 0),d([Z({type:String,reflect:!0})],Nt.prototype,"betId",void 0),d([Z({type:Boolean,reflect:!0,attribute:"is-loss"})],Nt.prototype,"isLoss",void 0),d([Z({type:Boolean,reflect:!0,attribute:"is-push"})],Nt.prototype,"isPush",void 0),Nt=d([X("origami-game-win-popup")],Nt);var
|
|
3603
|
+
`}}d([Z({type:Object})],Nt.prototype,"payout",void 0),d([Z({type:Number})],Nt.prototype,"multiplier",void 0),d([Z({type:String})],Nt.prototype,"currencySymbol",void 0),d([Z({type:String})],Nt.prototype,"title",void 0),d([Z({type:String})],Nt.prototype,"description",void 0),d([Z({type:Number})],Nt.prototype,"gemCount",void 0),d([Z({type:String})],Nt.prototype,"gameType",void 0),d([Z({type:String,reflect:!0})],Nt.prototype,"betId",void 0),d([Z({type:Boolean,reflect:!0,attribute:"is-loss"})],Nt.prototype,"isLoss",void 0),d([Z({type:Boolean,reflect:!0,attribute:"is-push"})],Nt.prototype,"isPush",void 0),Nt=d([X("origami-game-win-popup")],Nt);var bn=eo`
|
|
3600
3604
|
<svg xmlns="http://www.w3.org/2000/svg" width="65" height="69" viewBox="0 0 65 69" fill="none"><path fill="#E11717" d="M7.247 10.357c4.914-4.914 9.722-8.074 10.738-7.058l3.68 3.68c.074-.03.149-.058.224-.087.035-.014.07-.03.107-.043.143-.055.287-.107.431-.16l.212-.077a31.034 31.034 0 0 1 2.103-.67l.182-.05c.169-.047.337-.091.506-.135l.084-.021a31.643 31.643 0 0 1 .624-.15c10.298-2.39 21.558.426 29.584 8.452 12.37 12.37 12.37 32.425 0 44.795-10.92 10.921-27.832 12.198-40.156 3.834l-.078-.054a31.534 31.534 0 0 1-1.228-.881l-.142-.107c-.181-.139-.36-.28-.54-.423l-.136-.11a31.96 31.96 0 0 1-.526-.434l-.116-.096c-.136-.116-.27-.236-.404-.355-.087-.076-.174-.15-.26-.228a31.817 31.817 0 0 1-5.266-6.115 31.435 31.435 0 0 1-2.899-5.51 31.792 31.792 0 0 1-1.74-17.968 31.61 31.61 0 0 1 1.639-5.612l-3.68-3.68c-1.016-1.016 2.143-5.824 7.057-10.738Z"/><path fill="#BD2828" d="M55.723 14.038c12.37 12.37 12.37 32.425 0 44.795-12.37 12.37-32.425 12.37-44.794 0-12.37-12.37-12.37-32.425 0-44.795 12.37-12.37 32.424-12.37 44.794 0Z"/><path fill="#E23437" d="M53.598 23.34c-6.27-13.79-22.841-19.744-37.013-13.3-.967.44-1.898.926-2.791 1.454a32.004 32.004 0 0 0-2.853 2.533C.318 24.65-1.182 40.94 6.441 53.165c7.826 9.004 21.155 12.13 32.85 6.812 14.172-6.444 20.577-22.847 14.307-36.636Z"/><ellipse cx="22.165" cy="31.349" fill="#FF2D31" rx="19.091" ry="19.092"/><path fill="#BD2828" d="m21.667 6.981-.011.012a.493.493 0 0 1 .096.073c.952.953-2.258 5.709-7.172 10.623S4.91 25.814 3.957 24.86a.493.493 0 0 1-.074-.096l-.01.012L.19 21.095 17.985 3.3l3.682 3.681Z"/><path fill="#FF2D31" d="M17.985 3.3c1.017 1.016-2.143 5.824-7.056 10.738C6.015 18.952 1.207 22.111.19 21.095c-1.016-1.017 2.143-5.825 7.057-10.739C12.16 5.442 16.969 2.283 17.985 3.3Z"/><path stroke="#fff" stroke-linecap="round" stroke-width="5" d="M8.28 10.522c-6.074-3.905.882-15.022 12.15 0 10.413 13.885 21.55 5.786 24.297 1.302"/></svg>
|
|
3601
|
-
`;var
|
|
3605
|
+
`;var wn=eo`<svg xmlns="http://www.w3.org/2000/svg" width="77" height="63" viewBox="0 0 77 63" fill="none"><path fill="#08FC02" d="m38.5 62.125-14-31.5h28l-14 31.5Z"/><path fill="#00D403" d="m38.5 14.875 14 15.75h-28l14-15.75Z"/><path fill="#03BD02" d="M60.375 8.75 77 21.875l-24.5 8.75L60.375 8.75ZM16.625 8.75 0 21.875l24.5 8.75L16.625 8.75Z"/><path fill="#01E401" d="M38.5 14.875 60.375 8.75 52.5 30.625l-14-15.75ZM38.5 14.875 16.625 8.75 24.5 30.625l14-15.75Z"/><path fill="#B5FFC7" d="m16.626 8.752-5.25-3.5L.001 21.877 16.626 8.752Z"/><path fill="#01E401" d="m60.374 8.752 5.25-3.5L77 21.877 60.375 8.752Z"/><path fill="#019902" d="m38.5 62.125 14-31.5 24.5-8.75-38.5 40.25Z"/><path fill="#01E200" d="m38.5 62.125-14-31.5L0 21.875l38.5 40.25Z"/><path fill="#08FC02" d="m38.5 62.125-14-31.5h28l-14 31.5Z"/><path fill="#00D403" d="m38.5 14.875 14 15.75h-28l14-15.75Z"/><path fill="#03BD02" d="M60.375 8.75 77 21.875l-24.5 8.75L60.375 8.75ZM16.625 8.75 0 21.875l24.5 8.75L16.625 8.75Z"/><path fill="#01E401" d="M38.5 14.875 60.375 8.75 52.5 30.625l-14-15.75ZM38.5 14.875 16.625 8.75 24.5 30.625l14-15.75Z"/><path fill="#01E401" d="m60.374 8.752 5.25-3.5L77 21.877 60.375 8.752Z"/><path fill="#019902" d="m38.5 62.125 14-31.5 24.5-8.75-38.5 40.25Z"/><path fill="#01E200" d="m38.5 62.125-14-31.5L0 21.875l38.5 40.25Z"/><path fill="#08FC02" d="M60.374 8.75 38.5 14.875 16.625 8.75l-5.25-3.5L21 .875h35l9.624 4.375-5.25 3.5Z"/></svg>`;var vn=G`
|
|
3602
3606
|
:host {
|
|
3603
3607
|
display: block;
|
|
3604
3608
|
position: relative;
|
|
@@ -3832,12 +3836,12 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3832
3836
|
transform: scale(1.1);
|
|
3833
3837
|
}
|
|
3834
3838
|
}
|
|
3835
|
-
`;class Mt extends T{constructor(){super(...arguments);this.tileId=0;this.delayReveal=!1;this.autobetInProgress=!1;this.isAutoMode=!1;this.state="NORMAL";this.ariaLabel="";this.isLoading=!1;this.disabled=!1}static styles=[B,
|
|
3839
|
+
`;class Mt extends T{constructor(){super(...arguments);this.tileId=0;this.delayReveal=!1;this.autobetInProgress=!1;this.isAutoMode=!1;this.state="NORMAL";this.ariaLabel="";this.isLoading=!1;this.disabled=!1}static styles=[B,vn];updated(o){super.updated(o);o:if(o.has("state")){let i=o.get("state");if(i!==void 0&&!this._wasGemState(i)&&this._isGem)this.gameData?.hapticController?.click()}}_wasGemState(o){return["SELECTED_GEM","UNSELECTED_GEM","AUTOBET_SELECTED_GEM"].includes(o)}get _isRevealed(){return!["NORMAL","AUTOBET_SELECTED"].includes(this.state)}get _isMine(){return["SELECTED_BOMB","UNSELECTED_BOMB","AUTOBET_SELECTED_BOMB"].includes(this.state)}get _isGem(){return["SELECTED_GEM","UNSELECTED_GEM","AUTOBET_SELECTED_GEM"].includes(this.state)}get _isDisabled(){return this._isRevealed||this.disabled||this.isLoading}_handleClick(){this.gameData?.hapticController?.lightClick(),this.emit("mines-tile-selected",{detail:{tile:this.tileId}})}render(){let o={"mines-tile":!0,[this.state.toLowerCase().replace(/_/g,"-")]:!0,"delay-reveal":this.delayReveal,"is-loading":this.isLoading,"auto-mode":this.isAutoMode},i=this.gameData?.language||"en",a=this._isRevealed?this._isMine?`, ${V("games.mines.mine",i)}`:`, ${V("games.mines.gem",i)}`:`, ${V("games.mines.unrevealed",i)}`,t=this.ariaLabel||`${V("games.mines.tile",i)} ${this.tileId+1}${a}`;return $`
|
|
3836
3840
|
<button
|
|
3837
3841
|
part="tile-button"
|
|
3838
3842
|
role="gridcell"
|
|
3839
3843
|
@click=${this._handleClick}
|
|
3840
|
-
class=${
|
|
3844
|
+
class=${ao(o)}
|
|
3841
3845
|
?disabled=${this._isDisabled}
|
|
3842
3846
|
aria-label=${t}
|
|
3843
3847
|
aria-pressed=${this._isRevealed}
|
|
@@ -3845,10 +3849,10 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3845
3849
|
></button>
|
|
3846
3850
|
<button class="rear-tile" ?disabled=${this._isDisabled} @click=${this._handleClick}>
|
|
3847
3851
|
${this._isRevealed?$`
|
|
3848
|
-
<div class="icon-container">${this._isMine?
|
|
3852
|
+
<div class="icon-container">${this._isMine?bn:this._isGem?wn:_}</div>
|
|
3849
3853
|
`:_}
|
|
3850
3854
|
</button>
|
|
3851
|
-
`}}d([Z({type:Number})],Mt.prototype,"tileId",void 0),d([Z({type:Boolean})],Mt.prototype,"delayReveal",void 0),d([Z({type:Boolean})],Mt.prototype,"autobetInProgress",void 0),d([Z({type:Boolean})],Mt.prototype,"isAutoMode",void 0),d([Z({type:String})],Mt.prototype,"state",void 0),d([Z({type:String,attribute:"aria-label"})],Mt.prototype,"ariaLabel",void 0),d([Z({type:Boolean})],Mt.prototype,"isLoading",void 0),d([Z({type:Boolean})],Mt.prototype,"disabled",void 0),d([
|
|
3855
|
+
`}}d([Z({type:Number})],Mt.prototype,"tileId",void 0),d([Z({type:Boolean})],Mt.prototype,"delayReveal",void 0),d([Z({type:Boolean})],Mt.prototype,"autobetInProgress",void 0),d([Z({type:Boolean})],Mt.prototype,"isAutoMode",void 0),d([Z({type:String})],Mt.prototype,"state",void 0),d([Z({type:String,attribute:"aria-label"})],Mt.prototype,"ariaLabel",void 0),d([Z({type:Boolean})],Mt.prototype,"isLoading",void 0),d([Z({type:Boolean})],Mt.prototype,"disabled",void 0),d([ro({context:D,subscribe:!0})],Mt.prototype,"gameData",void 0),Mt=d([X("origami-mines-tile")],Mt);var mn=G`
|
|
3852
3856
|
:host {
|
|
3853
3857
|
display: flex;
|
|
3854
3858
|
align-items: center;
|
|
@@ -3916,19 +3920,19 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3916
3920
|
padding: 12px;
|
|
3917
3921
|
border-radius: 10px;
|
|
3918
3922
|
}
|
|
3919
|
-
`;class Et extends T{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.hasWon=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[B,
|
|
3923
|
+
`;class Et extends T{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.hasWon=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[B,mn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&this.minesState===null)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},800)}_getTileInfo(o){let i=this.minesState?.state==="VIEWING_RESULTS",a=this.minesState?.mineLocations?.includes(o)??!1,t=this.minesState?.selectedTiles?.includes(o)??!1,r=i||t,e=this.isAuto&&i&&t,n=this.autobetSelectedTiles.includes(o);return{isViewingResults:i,isMine:a,isSelected:t,isRevealed:r,wasAutoRevealed:e,isAutobetSelected:n}}get tiles(){return Array.from({length:oi},(o,i)=>{let{isMine:a,isRevealed:t,wasAutoRevealed:r}=this._getTileInfo(i);return{id:i,isMine:a,isRevealed:t,wasAutoRevealed:r&&t}})}calculateTileState(o){let{isMine:i,isRevealed:a,wasAutoRevealed:t,isAutobetSelected:r,isSelected:e}=this._getTileInfo(o);if(!a)return r?"AUTOBET_SELECTED":"NORMAL";if(i){if(t)return"AUTOBET_SELECTED_BOMB";return e?"SELECTED_BOMB":"UNSELECTED_BOMB"}if(t)return"AUTOBET_SELECTED_GEM";return e?"SELECTED_GEM":"UNSELECTED_GEM"}render(){let o=this.minesState?.state==="VIEWING_RESULTS",i=!this.isAuto&&this.minesState?.state!=="GAME_IN_PROGRESS"||this.isAuto&&this.minesState!==null,a=this.isAuto||o&&!this.hitBomb;return $`
|
|
3920
3924
|
<div class="mines-grid-container" role="grid">
|
|
3921
3925
|
<div
|
|
3922
|
-
class=${
|
|
3926
|
+
class=${ao({"mines-grid-wrapper":!0})}
|
|
3923
3927
|
>
|
|
3924
3928
|
<div
|
|
3925
|
-
class=${
|
|
3929
|
+
class=${ao({"mines-grid":!0,"grid-inactive":i,"has-won":o&&this.hasWon})}
|
|
3926
3930
|
role="rowgroup"
|
|
3927
3931
|
>
|
|
3928
3932
|
${this.tiles.map((t,r)=>{let e=this.calculateTileState(t.id),n=!this._hasAnimatedInitialLoad&&this.minesState===null;return $`
|
|
3929
3933
|
<origami-mines-tile
|
|
3930
3934
|
data-is-desktop=${this.isDesktop}
|
|
3931
|
-
class=${
|
|
3935
|
+
class=${ao({"is-revealed-gem":t.isRevealed&&!t.isMine&&this.minesState?.selectedTiles?.includes(t.id)===!0,"animate-in":n})}
|
|
3932
3936
|
style=${n?Io({["--tile-animation-delay"]:`${r*20}ms`}):_}
|
|
3933
3937
|
?disabled=${i||this.autobetInProgress}
|
|
3934
3938
|
?autobetInProgress=${this.autobetInProgress}
|
|
@@ -3942,7 +3946,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3942
3946
|
</div>
|
|
3943
3947
|
</div>
|
|
3944
3948
|
</div>
|
|
3945
|
-
`}}d([Z({type:Boolean})],Et.prototype,"isAuto",void 0),d([Z({type:Array})],Et.prototype,"autobetSelectedTiles",void 0),d([Z({type:Boolean})],Et.prototype,"autobetInProgress",void 0),d([Z({type:Object})],Et.prototype,"minesState",void 0),d([Z({type:Boolean})],Et.prototype,"hasWon",void 0),d([Z({type:Boolean})],Et.prototype,"hitBomb",void 0),d([Z({type:Array})],Et.prototype,"loadingTiles",void 0),d([Z({type:Boolean})],Et.prototype,"isDesktop",void 0),d([
|
|
3949
|
+
`}}d([Z({type:Boolean})],Et.prototype,"isAuto",void 0),d([Z({type:Array})],Et.prototype,"autobetSelectedTiles",void 0),d([Z({type:Boolean})],Et.prototype,"autobetInProgress",void 0),d([Z({type:Object})],Et.prototype,"minesState",void 0),d([Z({type:Boolean})],Et.prototype,"hasWon",void 0),d([Z({type:Boolean})],Et.prototype,"hitBomb",void 0),d([Z({type:Array})],Et.prototype,"loadingTiles",void 0),d([Z({type:Boolean})],Et.prototype,"isDesktop",void 0),d([ro({context:D,subscribe:!0})],Et.prototype,"gameData",void 0),Et=d([X("origami-mines-grid")],Et);var kn=G`
|
|
3946
3950
|
:host {
|
|
3947
3951
|
--multiplier-success-color: #00E701;
|
|
3948
3952
|
--multiplier-danger-color: #ef4444;
|
|
@@ -3990,7 +3994,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
3990
3994
|
.multiplier-default {
|
|
3991
3995
|
color: var(--multiplier-default-color);
|
|
3992
3996
|
}
|
|
3993
|
-
`;var
|
|
3997
|
+
`;var dl=250;class or extends T{constructor(){super(...arguments);this.resultMultiplier=null;this.isWin=!0;this.betId="";this.betTargetMultiplier=2;this.disableAnimation=!1;this.disableSound=!1;this.inGameDisplay=!1;this.ignoreInstantBet=!1;this.currentValue=1;this.isAnimating=!1;this.queuedMultiplier=null}static styles=[B,kn];animationFrame=null;startTime=null;lastHapticTime=0;updated(o){if(o.has("resultMultiplier")&&!this.disableAnimation){if(this.resultMultiplier===null){requestAnimationFrame(()=>{if(this.isConnected)this.currentValue=1});return}if(this.isAnimating)this.queuedMultiplier={resultMultiplier:this.resultMultiplier,isWin:this.isWin,betId:this.betId,betTargetMultiplier:this.betTargetMultiplier};else requestAnimationFrame(()=>{if(this.isConnected)this.startAnimation(this.resultMultiplier,this.betId,this.betTargetMultiplier)})}}disconnectedCallback(){if(super.disconnectedCallback(),this.animationFrame)cancelAnimationFrame(this.animationFrame)}startAnimation(o,i,a){if(this.animationFrame)cancelAnimationFrame(this.animationFrame);let t=a<=o;if(this.gameData?.instantBetEnabled&&!this.ignoreInstantBet){this.isAnimating=!0,this.currentValue=o,requestAnimationFrame(()=>{if(!this.isConnected)return;this.emit("limbo-multiplier-animation-end",{detail:{resultMultiplier:o,isWin:t,betId:i}}),this.isAnimating=!1});return}requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.isAnimating=!0,this.currentValue=1,this.lastHapticTime=0,!this.disableSound)this.gameData?.soundController?.play("limbo-tick").catch((r)=>console.error(r));this.animationFrame=requestAnimationFrame((r)=>{this.startTime=r,this.updateAnimation(r,o,t,i,a)})})}updateAnimation(o,i,a,t,r){if(!this.startTime)return;let e=o-this.startTime,n=Math.min(e/dl,1);if(!this.disableSound&&e-this.lastHapticTime>60&&n<1)this.gameData?.hapticController?.lightClick(),this.lastHapticTime=e;if(i!==null)if(n>=1)this.currentValue=i,this.emit("limbo-multiplier-animation-end",{detail:{resultMultiplier:i,isWin:a,betId:t}}),requestAnimationFrame(()=>{if(this.isConnected){if(this.isAnimating=!1,this.queuedMultiplier){let s=this.queuedMultiplier;this.queuedMultiplier=null,this.startAnimation(s.resultMultiplier,s.betId,s.betTargetMultiplier)}}});else if(i>0)this.currentValue=i**n;else this.currentValue=1;else this.currentValue=1;if(n<1)this.animationFrame=requestAnimationFrame((s)=>this.updateAnimation(s,i,a,t,r))}_getMultiplierColor(){if(this.resultMultiplier!==null){if(this.resultMultiplier<this.betTargetMultiplier&&this.currentValue===this.resultMultiplier)return"multiplier-danger";if(this.currentValue>=this.betTargetMultiplier)return"multiplier-success"}return"multiplier-default"}render(){let o=["multiplier",this._getMultiplierColor()].filter(Boolean).join(" "),i=(this.resultMultiplier===0?0:this.currentValue).toFixed(2);return $`<div class=${o}>${this.disableAnimation?this.resultMultiplier?.toFixed(2):i}X</div>`}}d([ro({context:D,subscribe:!0})],or.prototype,"gameData",void 0),d([Z({type:Number})],or.prototype,"resultMultiplier",void 0),d([Z({type:Boolean})],or.prototype,"isWin",void 0),d([Z({type:String})],or.prototype,"betId",void 0),d([Z({type:Number})],or.prototype,"betTargetMultiplier",void 0),d([Z({type:Boolean})],or.prototype,"disableAnimation",void 0),d([Z({type:Boolean})],or.prototype,"disableSound",void 0),d([Z({type:Boolean})],or.prototype,"inGameDisplay",void 0),d([Z({type:Boolean})],or.prototype,"ignoreInstantBet",void 0),d([O()],or.prototype,"currentValue",void 0),d([O()],or.prototype,"isAnimating",void 0),d([O()],or.prototype,"queuedMultiplier",void 0),or=d([X("origami-limbo-multiplier")],or);var xn=G`
|
|
3994
3998
|
:host {
|
|
3995
3999
|
display: flex;
|
|
3996
4000
|
flex-direction: column;
|
|
@@ -4322,7 +4326,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4322
4326
|
background: #848484 !important;
|
|
4323
4327
|
opacity: 1 !important;
|
|
4324
4328
|
}
|
|
4325
|
-
`;class ir extends T{constructor(){super(...arguments);this.step=1;this.isRollLower=!1;this.value=0;this.min=0;this.max=100;this.disabled=!1;this.resultValue=null;this.showDice=!1;this.isWin=!1;this.inGameDisplay=!1;this.persistResult=!1;this.ignoreInstantBet=!1;this.isResultVisible=!1;this.dimLosingSide=!1}static styles=[B,
|
|
4329
|
+
`;class ir extends T{constructor(){super(...arguments);this.step=1;this.isRollLower=!1;this.value=0;this.min=0;this.max=100;this.disabled=!1;this.resultValue=null;this.showDice=!1;this.isWin=!1;this.inGameDisplay=!1;this.persistResult=!1;this.ignoreInstantBet=!1;this.isResultVisible=!1;this.dimLosingSide=!1}static styles=[B,xn];fadeOutTimer;lastStepValue=null;lastSoundPlayTime=0;disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.fadeOutTimer)}updated(o){if(o.has("resultValue")&&this.resultValue!==null){if(requestAnimationFrame(()=>{if(this.isConnected)this.isResultVisible=!0,this.dimLosingSide=!0}),clearTimeout(this.fadeOutTimer),!this.persistResult)this.fadeOutTimer=setTimeout(()=>{requestAnimationFrame(()=>{if(this.isConnected)this.isResultVisible=!1,this.dimLosingSide=!1})},3000)}}handleChange(o){let i=o.target,a=Number(i.value);if(this.lastStepValue===null)this.lastStepValue=a;else if(Math.floor(a)!==Math.floor(this.lastStepValue)){let t=Date.now();if(t-this.lastSoundPlayTime>50)this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick(),this.lastSoundPlayTime=t}if(this.lastStepValue=a,this.value=a,!this.persistResult){if(this.dimLosingSide)this.dimLosingSide=!1;if(this.isResultVisible)this.isResultVisible=!1,clearTimeout(this.fadeOutTimer)}this.emit("slider-input-change",{detail:{value:a}})}handleFocus(o){o.target.select()}render(){let o={"dice-result":!0,win:this.isWin&&!this.inGameDisplay,lose:!this.isWin&&this.showDice&&!this.inGameDisplay},i=[0,100],a=this.showDice&&this.resultValue!==null&&this.dimLosingSide,t=this.isRollLower!==this.isWin,r={"track-fill":!0,reverse:!this.isRollLower,"losing-side":a&&t,"hide-track-color":this.inGameDisplay},e={"track-remaining":!0,reverse:!this.isRollLower,"losing-side":a&&!t,"hide-track-color":this.inGameDisplay},n=32,s=this.resultValue??0,l=0,h=100,H=`calc(32px + (100% - 64px) * ${Math.max(0,Math.min(100,s))/100})`;return $`
|
|
4326
4330
|
<div
|
|
4327
4331
|
class=${"slider-container"}
|
|
4328
4332
|
style=${Io({["--track-fill-width"]:`${this.value}%`,["--result-position"]:`${this.resultValue??0}%`,...this.gameData?.instantBetEnabled&&!this.ignoreInstantBet?{["--dice-result-position-duration"]:"0ms",["--dice-result-opacity-duration"]:"0ms",["--dice-result-color-duration"]:"0ms"}:{}})}
|
|
@@ -4339,12 +4343,12 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4339
4343
|
<div class="slider-track-container">
|
|
4340
4344
|
<div class="slider-track">
|
|
4341
4345
|
${this.showDice?$`
|
|
4342
|
-
<div class=${
|
|
4346
|
+
<div class=${ao({"result-line":!0,visible:this.isResultVisible})}></div>
|
|
4343
4347
|
`:_}
|
|
4344
4348
|
<div class="track-container">
|
|
4345
4349
|
<div class="track-background">
|
|
4346
|
-
<div class=${
|
|
4347
|
-
<div class=${
|
|
4350
|
+
<div class=${ao(r)}></div>
|
|
4351
|
+
<div class=${ao(e)}></div>
|
|
4348
4352
|
</div>
|
|
4349
4353
|
</div>
|
|
4350
4354
|
|
|
@@ -4371,19 +4375,19 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4371
4375
|
</div>
|
|
4372
4376
|
|
|
4373
4377
|
${this.showDice?$`
|
|
4374
|
-
<div class=${
|
|
4378
|
+
<div class=${ao({"dice-result-container":!0,visible:this.isResultVisible})}>
|
|
4375
4379
|
<div class="dice-result-wrapper" style=${Io({["--result-position-constrained"]:H})}>
|
|
4376
|
-
<div class=${
|
|
4380
|
+
<div class=${ao(o)} aria-live="polite" aria-atomic="true">
|
|
4377
4381
|
${this.resultValue!==null?this.resultValue.toFixed(2):"0.00"}
|
|
4378
4382
|
</div>
|
|
4379
4383
|
</div>
|
|
4380
4384
|
</div>
|
|
4381
4385
|
`:$`
|
|
4382
|
-
<div class=${
|
|
4386
|
+
<div class=${ao({"dice-result-container":!0})} aria-hidden="true">
|
|
4383
4387
|
</div>
|
|
4384
4388
|
`}
|
|
4385
4389
|
</div>
|
|
4386
|
-
`}}d([Z({type:Number})],ir.prototype,"step",void 0),d([Z({type:Boolean})],ir.prototype,"isRollLower",void 0),d([Z({type:Number})],ir.prototype,"value",void 0),d([Z({type:Number})],ir.prototype,"min",void 0),d([Z({type:Number})],ir.prototype,"max",void 0),d([Z({type:Boolean,reflect:!0})],ir.prototype,"disabled",void 0),d([Z({type:Number})],ir.prototype,"resultValue",void 0),d([Z({type:Boolean})],ir.prototype,"showDice",void 0),d([Z({type:Boolean})],ir.prototype,"isWin",void 0),d([Z({type:Boolean})],ir.prototype,"inGameDisplay",void 0),d([Z({type:Boolean})],ir.prototype,"persistResult",void 0),d([Z({type:Boolean})],ir.prototype,"ignoreInstantBet",void 0),d([
|
|
4390
|
+
`}}d([Z({type:Number})],ir.prototype,"step",void 0),d([Z({type:Boolean})],ir.prototype,"isRollLower",void 0),d([Z({type:Number})],ir.prototype,"value",void 0),d([Z({type:Number})],ir.prototype,"min",void 0),d([Z({type:Number})],ir.prototype,"max",void 0),d([Z({type:Boolean,reflect:!0})],ir.prototype,"disabled",void 0),d([Z({type:Number})],ir.prototype,"resultValue",void 0),d([Z({type:Boolean})],ir.prototype,"showDice",void 0),d([Z({type:Boolean})],ir.prototype,"isWin",void 0),d([Z({type:Boolean})],ir.prototype,"inGameDisplay",void 0),d([Z({type:Boolean})],ir.prototype,"persistResult",void 0),d([Z({type:Boolean})],ir.prototype,"ignoreInstantBet",void 0),d([ro({context:D,subscribe:!0})],ir.prototype,"gameData",void 0),d([O()],ir.prototype,"isResultVisible",void 0),d([O()],ir.prototype,"dimLosingSide",void 0),ir=d([X("origami-dice-slider")],ir);var Mi=eo`
|
|
4387
4391
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="65" viewBox="0 0 64 65" fill="none">
|
|
4388
4392
|
<path fill="#D9D9D9" d="M0 48.4v-32l16-16h32l16 16v32l-16 16H16l-16-16Z"/>
|
|
4389
4393
|
<path fill="#08FC02" d="M12.8 42V22.8l9.6-9.6h19.2l9.6 9.6V42l-9.6 9.6H22.4L12.8 42Z"/>
|
|
@@ -4396,7 +4400,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4396
4400
|
<path fill="#01E401" d="m48 64.4 16-16L51.2 42l-9.6 9.6L48 64.4Z"/>
|
|
4397
4401
|
<path fill="#019902" d="M64 16.4 48 .4l-6.4 12.8 9.6 9.6L64 16.4Z"/>
|
|
4398
4402
|
</svg>
|
|
4399
|
-
`;var
|
|
4403
|
+
`;var zn=G`
|
|
4400
4404
|
:host {
|
|
4401
4405
|
display: block;
|
|
4402
4406
|
position: relative;
|
|
@@ -4616,10 +4620,10 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4616
4620
|
text-align: center;
|
|
4617
4621
|
display: block;
|
|
4618
4622
|
}
|
|
4619
|
-
`;class ar extends T{constructor(){super(...arguments);this.number=1;this.state="NORMAL";this.disabled=!1;this.ariaLabel=""}static styles=[B,
|
|
4623
|
+
`;class ar extends T{constructor(){super(...arguments);this.number=1;this.state="NORMAL";this.disabled=!1;this.ariaLabel=""}static styles=[B,zn];updated(o){if(super.updated(o),o.has("state")&&this.state==="WIN")this.gameData?.hapticController?.click()}handleClick(){this.gameData?.hapticController?.lightClick(),this.emit("keno-tile-click",{detail:{tile:this.number}})}render(){let o={"keno-tile":!0,[this.state.toLowerCase()]:!0},i=this.state==="SELECTED"||this.state==="WIN";return $`
|
|
4620
4624
|
<button
|
|
4621
4625
|
@click=${this.handleClick}
|
|
4622
|
-
class=${
|
|
4626
|
+
class=${ao(o)}
|
|
4623
4627
|
aria-label=${this.ariaLabel||V("games.keno.kenoNumber",this.gameData?.language||"en",`Keno number ${this.number}`)}
|
|
4624
4628
|
aria-pressed=${i}
|
|
4625
4629
|
?disabled=${this.disabled}
|
|
@@ -4628,7 +4632,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4628
4632
|
${this.state==="WIN"?$`<div class="win-icon">${Mi}</div>`:_}
|
|
4629
4633
|
<p class="number-text">${this.number}</p>
|
|
4630
4634
|
</button>
|
|
4631
|
-
`}}d([Z({type:Number})],ar.prototype,"number",void 0),d([Z({type:String})],ar.prototype,"state",void 0),d([Z({type:Boolean,reflect:!0})],ar.prototype,"disabled",void 0),d([Z({type:String,attribute:"aria-label"})],ar.prototype,"ariaLabel",void 0),d([
|
|
4635
|
+
`}}d([Z({type:Number})],ar.prototype,"number",void 0),d([Z({type:String})],ar.prototype,"state",void 0),d([Z({type:Boolean,reflect:!0})],ar.prototype,"disabled",void 0),d([Z({type:String,attribute:"aria-label"})],ar.prototype,"ariaLabel",void 0),d([ro({context:D,subscribe:!0})],ar.prototype,"gameData",void 0),ar=d([X("origami-keno-tile")],ar);var yn=G`
|
|
4632
4636
|
:host {
|
|
4633
4637
|
display: flex;
|
|
4634
4638
|
align-items: center;
|
|
@@ -4675,9 +4679,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4675
4679
|
gap: 12px;
|
|
4676
4680
|
}
|
|
4677
4681
|
}
|
|
4678
|
-
`;class tr extends T{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.popupShowing=!1;this.isPlaying=!1;this.gameOver=!1;this.autoselectRunning=!1;this.enableSounds=!0;this.ariaLabel="";this.isDesktop=!1}static styles=[B,
|
|
4682
|
+
`;class tr extends T{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.popupShowing=!1;this.isPlaying=!1;this.gameOver=!1;this.autoselectRunning=!1;this.enableSounds=!0;this.ariaLabel="";this.isDesktop=!1}static styles=[B,yn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&!this.isPlaying&&!this.gameOver)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},1100)}get selectedCount(){return this.selectedTiles.length}get hitCount(){return this.selectedTiles.filter((o)=>this.resultTiles.includes(o)).length}calculateTileState(o){let i=this.selectedTiles.includes(o),a=this.resultTiles.includes(o);if(this.isPlaying||this.gameOver){if(i&&a)return"WIN";if(a&&!i)return"LOSS";if(i)return"SELECTED";return"NORMAL"}if(i)return"SELECTED";return"NORMAL"}render(){let o=Array.from({length:40},(i,a)=>a+1);return $`
|
|
4679
4683
|
<div
|
|
4680
|
-
class=${
|
|
4684
|
+
class=${ao({"keno-grid":!0,inactive:this.isPlaying,autoselecting:this.autoselectRunning})}
|
|
4681
4685
|
@click=${()=>this.emit("keno-grid-click")}
|
|
4682
4686
|
aria-label=${this.ariaLabel||V("games.keno.kenoGameGrid",this.gameData?.language||"en")}
|
|
4683
4687
|
>
|
|
@@ -4693,7 +4697,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4693
4697
|
></origami-keno-tile>
|
|
4694
4698
|
`})}
|
|
4695
4699
|
</div>
|
|
4696
|
-
`}}d([Z({type:Array})],tr.prototype,"selectedTiles",void 0),d([Z({type:Array})],tr.prototype,"resultTiles",void 0),d([Z({type:Boolean})],tr.prototype,"popupShowing",void 0),d([Z({type:Boolean,reflect:!0})],tr.prototype,"isPlaying",void 0),d([Z({type:Boolean,reflect:!0})],tr.prototype,"gameOver",void 0),d([Z({type:Boolean})],tr.prototype,"autoselectRunning",void 0),d([O()],tr.prototype,"enableSounds",void 0),d([Z({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",void 0),d([
|
|
4700
|
+
`}}d([Z({type:Array})],tr.prototype,"selectedTiles",void 0),d([Z({type:Array})],tr.prototype,"resultTiles",void 0),d([Z({type:Boolean})],tr.prototype,"popupShowing",void 0),d([Z({type:Boolean,reflect:!0})],tr.prototype,"isPlaying",void 0),d([Z({type:Boolean,reflect:!0})],tr.prototype,"gameOver",void 0),d([Z({type:Boolean})],tr.prototype,"autoselectRunning",void 0),d([O()],tr.prototype,"enableSounds",void 0),d([Z({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",void 0),d([ro({context:D,subscribe:!0})],tr.prototype,"gameData",void 0),d([Z({type:Boolean})],tr.prototype,"isDesktop",void 0),tr=d([X("origami-keno-grid")],tr);class rr extends xo{constructor(){super(...arguments);this.gameType="MINES";this.inBetResultModal=!1;this.enableAnimation=!1;this.persistResult=!1;this.animatedLimboMultiplier=null;this.animatedDiceResult=null;this.animatedKenoResults=[];this.animatedMinesState=null}static styles=[B,gn];gameConsumer=new wo(this,{context:D,subscribe:!0});connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.enableAnimation&&this.gameType==="LIMBO"&&this.limboData)this.animatedLimboMultiplier=null,setTimeout(()=>{if(this.isConnected)this.animatedLimboMultiplier=this.limboData?.resultMultiplier??null},100);if(this.enableAnimation&&this.gameType==="DICE"&&this.diceData)this.animatedDiceResult=null,setTimeout(()=>{if(this.isConnected)this.animatedDiceResult=this.diceData?.resultValue??null},100);if(this.enableAnimation&&this.gameType==="KENO"&&this.kenoData)this.animatedKenoResults=[],this.kenoData.resultTiles?.forEach((o,i)=>{setTimeout(()=>{if(this.isConnected)this.animatedKenoResults=[...this.animatedKenoResults,o]},100+i*150)});if(this.enableAnimation&&this.gameType==="MINES"&&this.minesData){this.animatedMinesState={selectedTiles:[],mineLocations:this.minesData.mineLocations||[],state:"GAME_IN_PROGRESS"};let o=this.minesData.selectedTiles||[];setTimeout(()=>{if(!this.isConnected)return;o.forEach((a,t)=>{setTimeout(()=>{if(this.isConnected)this.animatedMinesState={...this.animatedMinesState,selectedTiles:[...this.animatedMinesState?.selectedTiles||[],a],state:"GAME_IN_PROGRESS"}},t*200)});let i=o.length*200+300;setTimeout(()=>{if(this.isConnected)this.animatedMinesState={...this.animatedMinesState,state:"VIEWING_RESULTS"}},i)},50)}})}updated(o){if(super.updated(o),o.has("enableAnimation")&&this.enableAnimation)requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.gameType==="LIMBO"&&this.limboData)this.animatedLimboMultiplier=null,setTimeout(()=>{if(this.isConnected)this.animatedLimboMultiplier=this.limboData?.resultMultiplier??null},100);if(this.gameType==="DICE"&&this.diceData)this.animatedDiceResult=null,setTimeout(()=>{if(this.isConnected)this.animatedDiceResult=this.diceData?.resultValue??null},100);if(this.gameType==="KENO"&&this.kenoData)this.animateKenoResults()})}async animateKenoResults(){if(!this.kenoData||!this.isConnected)return;requestAnimationFrame(()=>{if(this.isConnected)this.animatedKenoResults=[]});let o=this.kenoData.resultTiles||[];await new Promise((i)=>setTimeout(i,100));for(let i of o){if(!this.isConnected)break;requestAnimationFrame(()=>{if(this.isConnected)this.animatedKenoResults=[...this.animatedKenoResults,i]}),await new Promise((a)=>setTimeout(a,150))}}render(){switch(this.gameType){case"MINES":let o=this.minesData?.selectedTiles||[],i=this.minesData?.mineLocations||[],a=o.some((r)=>i.includes(r)),t=o.length>0&&!a;return $`
|
|
4697
4701
|
<origami-mines-grid
|
|
4698
4702
|
.minesState=${this.enableAnimation&&this.animatedMinesState?this.animatedMinesState:{selectedTiles:this.minesData?.selectedTiles||[1,12,13],state:"VIEWING_RESULTS",mineLocations:this.minesData?.mineLocations||[7,17,22,15,23]}}
|
|
4699
4703
|
?hasWon=${t}
|
|
@@ -4742,7 +4746,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4742
4746
|
</svg>`,oa=eo`
|
|
4743
4747
|
<svg width="16" height="16" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4744
4748
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5027 1.20526C21.1727 1.69256 21.3208 2.63069 20.8335 3.30064L9.37763 19.0506C9.13793 19.3802 8.77443 19.598 8.3708 19.6541C7.96716 19.7101 7.5581 19.5995 7.23769 19.3477L1.19357 14.5977C0.542216 14.0858 0.429156 13.1428 0.941046 12.4914C1.45294 11.8401 2.39594 11.727 3.04729 12.2389L7.86729 16.0269L18.4073 1.53599C18.8946 0.866041 19.8328 0.717971 20.5027 1.20526Z" fill="#B3B3B3"/>
|
|
4745
|
-
</svg>`,
|
|
4749
|
+
</svg>`,Hn=eo`<svg fill="currentColor" viewBox="0 0 64 64">
|
|
4746
4750
|
<path d="M32 0C14.326 0 0 14.326 0 32s14.326 32 32 32 32-14.326 32-32S49.674 0 32 0m5.24 51.68H26.76v-21h10.48zM32 24.56a6.12 6.12 0 1 1 6.12-6.12v.04a6.08 6.08 0 0 1-6.08 6.08h-.042z"></path>
|
|
4747
4751
|
</svg>`,qa="42341428c91a40393242807547a4ddce2aedca139eea0d48c0d336b827d28e41";class er extends xo{constructor(){super(...arguments);this.provablyFairData={publicKey:"42341428c91a40393242807547a4ddce2aedca139eea0d48c0d336b827d28e41",request:"req_789ghi012jkl...",proof:"proof_345mno678pqr...",randomness:"rand_901stu234vwx...",clientSeed:"your_client_seed_here"};this.showExtendedFields=!0;this.showClientSeedEditor=!1;this.showBackButton=!0;this._isVerifying=!1;this._isVerified=null;this._copiedFields={};this.baseUrl="";this.activeClientSeed="";this._isLoadingClientSeed=!1;this._hasClientSeedChanged=!1;this.newClientSeed="";this._isSavingClientSeed=!1;this.authToken="";this._showProvablyFairInfo=!1}static styles=[B,Wa];_debounceTimer;_copyTimeouts=new Map;gameConsumer=new wo(this,{context:D,subscribe:!0});_clientSeedChangedHandler=(o)=>{let i=o;this.activeClientSeed=i.detail.clientSeed||"",this._hasClientSeedChanged=!1,this.newClientSeed="",this._isLoadingClientSeed=!1};_previousHistoryController;_gameData={mines:{selectedTiles:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],mineLocations:[1,2,3,5,6]},limbo:{isWin:!0,betId:"123",resultMultiplier:1.5,betTargetMultiplier:2},dice:{value:23.23,min:2,max:98,step:1,showDice:!0,disabled:!1,resultValue:23.23,isWin:!0,isRollLower:!1},keno:{selectedTiles:[],resultTiles:[5,8,22,24,23,37],isPlaying:!1,gameOver:!0,popupShowing:!1}};connectedCallback(){super.connectedCallback(),this._setupHistoryController(),this.authToken=this.gameConsumer.value?.authToken||"",this._verifyProof()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupHistoryController(),this._copyTimeouts.forEach((o)=>clearTimeout(o)),this._copyTimeouts.clear()}updated(o){if(super.updated(o),this.gameConsumer.value?.historyController!==this._previousHistoryController)this._cleanupHistoryController(),this._setupHistoryController();this.authToken=this.gameConsumer.value?.authToken||""}_setupHistoryController(){let o=this.gameConsumer.value?.historyController;if(o)if(o.addEventListener("client-seed-changed",this._clientSeedChangedHandler),this._previousHistoryController=o,o.hasLoadedClientSeed&&o.clientSeed)this.activeClientSeed=o.clientSeed,this._hasClientSeedChanged=!1,this.newClientSeed="",this._isLoadingClientSeed=!1;else this._isLoadingClientSeed=!0,o.loadClientSeed()}_cleanupHistoryController(){if(this._previousHistoryController)this._previousHistoryController.removeEventListener("client-seed-changed",this._clientSeedChangedHandler),this._previousHistoryController=void 0}_debounce(o,i){clearTimeout(this._debounceTimer),this._debounceTimer=window.setTimeout(o,i)}async _verifyProof(){let{publicKey:o,request:i,proof:a}=this.provablyFairData;if(!o||!i||!a)return;this._isVerifying=!0,this.requestUpdate();try{let t=new URL(`${this.baseUrl||"http://localhost:3000"}/provably-fair/game-result`);t.searchParams.append("publicKey",o),t.searchParams.append("input",i),t.searchParams.append("proof",a);let e=await(await fetch(t.toString())).json();if(e.success){let n=e;this.provablyFairData={...this.provablyFairData,randomness:n.proofHash},this._gameData={...this._gameData,dice:{...this._gameData.dice,resultValue:n.dice?.result??0},limbo:{...this._gameData.limbo,resultMultiplier:parseFloat(n.limbo?.randomMultiplier??"0")},keno:{...this._gameData.keno,resultTiles:n.keno?.gemLocations??[]},mines:{...this._gameData.mines,mineLocations:n.mines?.mineLocations??[]}},this._isVerified=!0}else this._isVerified=!1}catch(t){console.log(t),this._isVerified=!1}finally{this._isVerifying=!1,this.requestUpdate()}}async changeClientSeed(){this._isSavingClientSeed=!0;try{let i=await(await fetch(`${this.baseUrl}/provably-fair/client-seed`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify({clientSeed:this.newClientSeed})})).json();this.activeClientSeed=i.clientSeed,this.newClientSeed="",this._hasClientSeedChanged=!1;let a=this.gameConsumer.value?.historyController;if(a)a.updateClientSeed(i.clientSeed)}finally{this._isSavingClientSeed=!1}}_flashCopied(o){let i=this._copyTimeouts.get(o);if(i)clearTimeout(i);this._copiedFields={...this._copiedFields,[o]:!0};let a=window.setTimeout(()=>{let{[o]:t,...r}=this._copiedFields;this._copiedFields=r,this._copyTimeouts.delete(o),this.requestUpdate()},1000);this._copyTimeouts.set(o,a),this.requestUpdate()}_handleCopy(o,i){navigator.clipboard.writeText(i),this._flashCopied(o)}_handleInputChange(o,i){this.provablyFairData={...this.provablyFairData,[o]:i},this._isVerified=null,this.requestUpdate();let{publicKey:a,request:t,proof:r}=this.provablyFairData;if(a&&t&&r)this._debounce(()=>this._verifyProof(),500)}_handleViewOutcomeClick(){this.dispatchEvent(new CustomEvent("view-bet-outcome",{bubbles:!0,composed:!0}))}_renderClientSeedSection(){let o=this.gameConsumer.value?.language||"en",i=V("common.copied",o,"Copied"),a=V("fairness.activeClientSeed",o),t=`${i} ${a}`,r;if(this._isVerified===!0)r=V("fairness.outcomeVerified",o);else if(this._isVerified===!1)r=V("fairness.outcomeNotVerified",o);else r=V("fairness.outcomeCalculationInfo",o);return $`
|
|
4748
4752
|
<div class="info-message ${this._isVerifying?"info":this._isVerified===!0?"success":this._isVerified===!1?"error":"info"}">
|
|
@@ -4755,7 +4759,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4755
4759
|
class="info-icon"
|
|
4756
4760
|
autoplay
|
|
4757
4761
|
></lottie-icon>
|
|
4758
|
-
`:$`<span class="info-icon">${
|
|
4762
|
+
`:$`<span class="info-icon">${Hn}</span>`}
|
|
4759
4763
|
<span class="info-text">
|
|
4760
4764
|
${r}
|
|
4761
4765
|
${this._isVerified===null||this._isVerified===!0?$`
|
|
@@ -4931,7 +4935,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4931
4935
|
`}_renderProvablyFairInfo(){let o=this.gameConsumer.value?.language||"en",i=["proofString","hashSequence","gameId","tenantId","tenantUserId","nonce"],a=(s)=>{if(!s)return s;let l=new RegExp(`\\b(${i.join("|")})\\b`,"g"),h=[],p=0,H;while(H=l.exec(s)){if(H.index>p)h.push(s.slice(p,H.index));h.push($`<code>${H[0]}</code>`),p=l.lastIndex}if(p<s.length)h.push(s.slice(p));let f="draft-irtf-cfrg-vrf-15",y="https://datatracker.ietf.org/doc/draft-irtf-cfrg-vrf/15/",z=[];for(let v of h)if(typeof v==="string"&&v.includes(f)){let q=v.split(f);q.forEach((w,u)=>{if(w)z.push(w);if(u<q.length-1)z.push($`<a class="verify-link" href=${y} target="_blank" rel="noopener noreferrer">${f}</a>`)})}else z.push(v);return z},t=V("fairness.info.p1",o,"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome."),r=V("fairness.info.p2",o,"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety."),e=V("fairness.info.p3",o,"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time."),n=V("fairness.info.p4",o,"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.");return $`
|
|
4932
4936
|
<section class="pf-info">
|
|
4933
4937
|
<div class="info-message">
|
|
4934
|
-
<span class="info-icon">${
|
|
4938
|
+
<span class="info-icon">${Hn}</span>
|
|
4935
4939
|
<span class="info-text">${V("fairness.info.moreInfo",o,"Need more information? Contact our support team to learn more about how our games work.")}</span>
|
|
4936
4940
|
</div>
|
|
4937
4941
|
<p>${a(t)}</p>
|
|
@@ -4957,6 +4961,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4957
4961
|
></origami-fairness-content>`;return $`<origami-history-table></origami-history-table>`}render(){return $`
|
|
4958
4962
|
${this._renderTabContent()}
|
|
4959
4963
|
`}}d([Z({type:Object})],nr.prototype,"provablyFairData",void 0),d([Z({type:String})],nr.prototype,"activeTab",void 0),d([Z({type:Boolean})],nr.prototype,"showExtendedFields",void 0),d([Z({type:Boolean})],nr.prototype,"showClientSeedEditor",void 0),d([Z({type:Boolean})],nr.prototype,"showBackButton",void 0),nr=d([X("origami-fairness-details")],nr);class sr extends xo{constructor(){super(...arguments);this.gameType="DICE"}static styles=[B,Wa,G`
|
|
4964
|
+
.hidden {
|
|
4965
|
+
display: none;
|
|
4966
|
+
}
|
|
4960
4967
|
.pf-no-top-space {
|
|
4961
4968
|
padding-top: 0 !important;
|
|
4962
4969
|
margin-top: 0 !important;
|
|
@@ -4965,7 +4972,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
4965
4972
|
.pf-info ol:last-child {
|
|
4966
4973
|
margin-bottom: 0;
|
|
4967
4974
|
}
|
|
4968
|
-
`];gameConsumer=new wo(this,{context:D,subscribe:!0});renderGameSpecificContent(o){switch(this.gameType){case"DICE":return $`
|
|
4975
|
+
`];gameConsumer=new wo(this,{context:D,subscribe:!0});get showLearnMoreButton(){return!!this.gameConsumer.value?.baseUrl&&!!this.gameConsumer.value?.authToken}renderGameSpecificContent(o){switch(this.gameType){case"DICE":return $`
|
|
4969
4976
|
<p>
|
|
4970
4977
|
${V("gameInfo.dice.overview",o,"Set a target number and choose whether the roll will land under or over it. Moving the slider changes your win chance and multiplier—a higher chance lowers the multiplier, a lower chance increases it. Each round is one independent roll on the game’s scale (shown in-game).")}
|
|
4971
4978
|
</p>
|
|
@@ -5062,7 +5069,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5062
5069
|
${this.renderGameSpecificContent(o)}
|
|
5063
5070
|
</section>
|
|
5064
5071
|
|
|
5065
|
-
<div class
|
|
5072
|
+
<div class=${ao({"button-section":!0,"pf-no-top-space":!0,hidden:!this.showLearnMoreButton})}>
|
|
5066
5073
|
<origami-button
|
|
5067
5074
|
variant="secondary"
|
|
5068
5075
|
fullWidth
|
|
@@ -5072,7 +5079,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5072
5079
|
</origami-button>
|
|
5073
5080
|
</div>
|
|
5074
5081
|
</div>
|
|
5075
|
-
`}}d([Z({type:String})],sr.prototype,"gameType",void 0),sr=d([X("origami-game-info-modal")],sr);var
|
|
5082
|
+
`}}d([Z({type:String})],sr.prototype,"gameType",void 0),sr=d([X("origami-game-info-modal")],sr);var Zn=G`
|
|
5076
5083
|
:host {
|
|
5077
5084
|
display: block;
|
|
5078
5085
|
width: 100%;
|
|
@@ -5284,7 +5291,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5284
5291
|
.modal-container > * {
|
|
5285
5292
|
pointer-events: auto;
|
|
5286
5293
|
}
|
|
5287
|
-
`;var
|
|
5294
|
+
`;var Sn=G`
|
|
5288
5295
|
:host {
|
|
5289
5296
|
display: block;
|
|
5290
5297
|
height: 100%;
|
|
@@ -5445,7 +5452,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5445
5452
|
width: 16px;
|
|
5446
5453
|
height: 16px;
|
|
5447
5454
|
}
|
|
5448
|
-
`;class go{authToken;baseUrl;static totalDiceValue=1e4;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/dice"}async startBet(o){try{let a=await(await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}static getMultiplier(o,i){let a=go.getWinChance(o,i);return L(99).dividedBy(L(a)).toFixed(4)}static getWinChance(o,i){let a=i==="ABOVE"?go.totalDiceValue-o:o;return L(a).div(go.totalDiceValue).multipliedBy(100).toFixed(4)}static getSelectedValueFromMultiplier(o,i){let a=L(99).dividedBy(o);return go.getSelectedValueFromWinChance(a.toNumber(),i)}static getSelectedValueFromWinChance(o,i){let a=L(o).dividedBy(100).multipliedBy(go.totalDiceValue);if(i==="ABOVE")return go.totalDiceValue-a.toNumber();return a.toNumber()}static getSelectedValueFromRollOver(o){return go.totalDiceValue-o}static isValidMultiplier(o){if(!o||o==="")return!1;let i=+o;return i>=1.0102&&i<=9900}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.01&&i<=98}}class lr{betData;constructor(o){this.betData=o}_getDiceData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let o=this.betData.betActions[0]?.data.DICE,i=this.betData.betActions[this.betData.betActions.length-1]?.data.DICE;if(!i||!o)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let a=o.direction===zo.BELOW,t=i.result[0],r=o.selectedValue,e=o.direction===zo.ABOVE?t>r:t<r,n=go.getWinChance(o.selectedValue,o.direction);return{resultValue:t,userValue:r,isRollLower:a,winChance:n,isDiceWin:e}}_getMinesData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{mineLocations:[],selectedTiles:[]};return{mineLocations:Wo.deriveMineLocations(this.betData.betActions),selectedTiles:Wo.deriveSelectedTiles(this.betData.betActions)}}_getKenoData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{selectedNumbers:[],drawnNumbers:[],risk:io.CLASSIC};let o=this.betData.betActions[0]?.data.KENO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.KENO;if(!i||!o)return{selectedNumbers:[],drawnNumbers:[],risk:io.CLASSIC};return{selectedNumbers:o.selectedNumbers,drawnNumbers:i.result,risk:o.riskLevel}}_getLimboData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultMultiplier:0,targetMultiplier:0};let o=this.betData.betActions[0]?.data.LIMBO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.LIMBO;if(!i||!o)return{resultMultiplier:0,targetMultiplier:0};return{resultMultiplier:i.randomMultiplier,targetMultiplier:o.targetMultiplier,isWin:Number(i.randomMultiplier)>=Number(o.targetMultiplier)}}getMinesDisplayData(){let{mineLocations:o,selectedTiles:i}=this._getMinesData();return{selectedTiles:i,mineLocations:o}}getLimboDisplayData(){let{resultMultiplier:o,targetMultiplier:i,isWin:a}=this._getLimboData();return{isWin:a||!1,betId:this.betData.id||"123",resultMultiplier:Number(o),betTargetMultiplier:Number(i)}}getDiceDisplayData(){let{resultValue:o,userValue:i,isRollLower:a,isDiceWin:t}=this._getDiceData();return{value:i/100,min:2,max:98,step:1,showDice:!0,disabled:!0,resultValue:o/100,isWin:t,isRollLower:a}}getKenoDisplayData(){let{selectedNumbers:o,drawnNumbers:i}=this._getKenoData();return{selectedTiles:o,resultTiles:i,isPlaying:!1,gameOver:!0,popupShowing:!1}}getDiceData(){return this._getDiceData()}}var
|
|
5455
|
+
`;class go{authToken;baseUrl;static totalDiceValue=1e4;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/dice"}async startBet(o){try{let a=await(await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}static getMultiplier(o,i){let a=go.getWinChance(o,i);return L(99).dividedBy(L(a)).toFixed(4)}static getWinChance(o,i){let a=i==="ABOVE"?go.totalDiceValue-o:o;return L(a).div(go.totalDiceValue).multipliedBy(100).toFixed(4)}static getSelectedValueFromMultiplier(o,i){let a=L(99).dividedBy(o);return go.getSelectedValueFromWinChance(a.toNumber(),i)}static getSelectedValueFromWinChance(o,i){let a=L(o).dividedBy(100).multipliedBy(go.totalDiceValue);if(i==="ABOVE")return go.totalDiceValue-a.toNumber();return a.toNumber()}static getSelectedValueFromRollOver(o){return go.totalDiceValue-o}static isValidMultiplier(o){if(!o||o==="")return!1;let i=+o;return i>=1.0102&&i<=9900}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.01&&i<=98}}class lr{betData;constructor(o){this.betData=o}_getDiceData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let o=this.betData.betActions[0]?.data.DICE,i=this.betData.betActions[this.betData.betActions.length-1]?.data.DICE;if(!i||!o)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let a=o.direction===zo.BELOW,t=i.result[0],r=o.selectedValue,e=o.direction===zo.ABOVE?t>r:t<r,n=go.getWinChance(o.selectedValue,o.direction);return{resultValue:t,userValue:r,isRollLower:a,winChance:n,isDiceWin:e}}_getMinesData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{mineLocations:[],selectedTiles:[]};return{mineLocations:Wo.deriveMineLocations(this.betData.betActions),selectedTiles:Wo.deriveSelectedTiles(this.betData.betActions)}}_getKenoData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{selectedNumbers:[],drawnNumbers:[],risk:io.CLASSIC};let o=this.betData.betActions[0]?.data.KENO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.KENO;if(!i||!o)return{selectedNumbers:[],drawnNumbers:[],risk:io.CLASSIC};return{selectedNumbers:o.selectedNumbers,drawnNumbers:i.result,risk:o.riskLevel}}_getLimboData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultMultiplier:0,targetMultiplier:0};let o=this.betData.betActions[0]?.data.LIMBO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.LIMBO;if(!i||!o)return{resultMultiplier:0,targetMultiplier:0};return{resultMultiplier:i.randomMultiplier,targetMultiplier:o.targetMultiplier,isWin:Number(i.randomMultiplier)>=Number(o.targetMultiplier)}}getMinesDisplayData(){let{mineLocations:o,selectedTiles:i}=this._getMinesData();return{selectedTiles:i,mineLocations:o}}getLimboDisplayData(){let{resultMultiplier:o,targetMultiplier:i,isWin:a}=this._getLimboData();return{isWin:a||!1,betId:this.betData.id||"123",resultMultiplier:Number(o),betTargetMultiplier:Number(i)}}getDiceDisplayData(){let{resultValue:o,userValue:i,isRollLower:a,isDiceWin:t}=this._getDiceData();return{value:i/100,min:2,max:98,step:1,showDice:!0,disabled:!0,resultValue:o/100,isWin:t,isRollLower:a}}getKenoDisplayData(){let{selectedNumbers:o,drawnNumbers:i}=this._getKenoData();return{selectedTiles:o,resultTiles:i,isPlaying:!1,gameOver:!0,popupShowing:!1}}getDiceData(){return this._getDiceData()}}var cl=({gameId:o,tenantId:i,tenantUserId:a,nonce:t,clientSeed:r})=>{return`${o}-${i}-${a}-${t}-${r}`};class dr extends T{constructor(){super(...arguments);this.betId="";this.betData=null}static styles=[B,Sn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Fo.getInstance();async betIdUpdated(){let o=this.gameConsumer.value?.baseUrl;if(!o||!this.betId){this.betData=null;return}let i=await this.betResultCache.fetchBetResult(this.betId,o);this.betData=i}_getDataExtractor(){return this.betData?new lr(this.betData):null}_formatMonetaryAmount(o,i){let a=typeof o==="string"?Number.parseFloat(o.replace(/^\$/,"")):o,t=Math.abs(Number.isNaN(a)?0:a),r=qi(i),e=Wi(i),n=Ui(i),s="";if((Number.isNaN(a)?0:a)<0)s+="-";if(n===0)s+=`${e}${t.toFixed(r)}`;if(n===1)s+=`${t.toFixed(r)} ${e}`;return s}_calculateMultiplier(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e)||r===0)return"0.00x";return`${(e/r).toFixed(2)}x`}_calculatePayout(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e))return{amount:0,isProfit:!1};if(e===0)return{amount:-r,isProfit:!1};return{amount:e,isProfit:e>r}}_getCurrencyDisplay(){let o=this.betData?.currency?.toUpperCase();if(this.gameData?.showCurrencyAsText)return $`<span class="currency-text">${o??"USD"}</span>`;return Qo(o??"USD")}openVerifyOutcomeModal(){this.emit("open-verify-outcome-modal",{detail:{verifyData:{publicKey:qa,request:cl({gameId:this.gameType,tenantId:this.betData?.tenantId??"",tenantUserId:this.betData?.tenantUserId??"",nonce:this.betData?.nonce.toString()??"",clientSeed:this.betData?.clientSeed??""}),proof:this.betData?.proof??"",randomness:this.betData?.randomValue??"",clientSeed:this.betData?.clientSeed??""}}})}get gameType(){if(!this.betData)return"LIMBO";let o=this.betData?.betActions?.[this.betData?.betActions.length-1],i=Object.keys(o?.data)?.[0]??"Unknown";return i.charAt(0).toUpperCase()+i.slice(1)}renderLoading(){return $`
|
|
5449
5456
|
<div class="loading-container" style=${"display:flex;justify-content:center;align-items:center;min-height:200px;"}>
|
|
5450
5457
|
<origami-spinner></origami-spinner>
|
|
5451
5458
|
</div>
|
|
@@ -5551,7 +5558,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5551
5558
|
</div>
|
|
5552
5559
|
</div>
|
|
5553
5560
|
</div>
|
|
5554
|
-
`}}d([
|
|
5561
|
+
`}}d([ro({context:D,subscribe:!0})],dr.prototype,"gameData",void 0),d([Z({type:String})],dr.prototype,"betId",void 0),d([O()],dr.prototype,"betData",void 0),d([mo("betId")],dr.prototype,"betIdUpdated",null),dr=d([X("origami-bet-result-modal")],dr);var Kn=(o)=>{let{activeElement:i}=document;if(i&&o.contains(i))document.activeElement?.blur()};var Wn=G`
|
|
5555
5562
|
:host {
|
|
5556
5563
|
--sl-color-neutral-0: hsl(240, 5.9%, 11%);
|
|
5557
5564
|
--sl-color-neutral-400: hsl(240 5% 35.5%);
|
|
@@ -5672,10 +5679,10 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5672
5679
|
border: solid 1px var(--sl-color-neutral-0);
|
|
5673
5680
|
}
|
|
5674
5681
|
}
|
|
5675
|
-
`;class Ua extends T{constructor(){super(...arguments);this.open=!1;this.label="";this.contained=!1;this.noHeader=!1;this.noCloseButton=!1}static styles=[B,
|
|
5682
|
+
`;class Ua extends T{constructor(){super(...arguments);this.open=!1;this.label="";this.contained=!1;this.noHeader=!1;this.noCloseButton=!1}static styles=[B,Wn];originalTrigger=null;focusTrap=new ji(this);closeWatcher=null;isDragging=!1;startY=0;currentY=0;isCustomClosing=!1;originalHeight=0;firstUpdated(){if(this.drawer.hidden=!this.open,this.open){if(this.addOpenListeners(),!this.contained)this.focusTrap.activate(),Vi(this)}}disconnectedCallback(){super.disconnectedCallback(),wi(this),this.removeOpenListeners(),this.cleanupDragState()}requestClose(o){if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=_o(this,"drawer.denyClose",{dir:""});Oo(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){if("CloseWatcher"in window){if(this.closeWatcher?.destroy(),!this.contained)this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")}else document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),this.closeWatcher?.destroy()}handleDocumentKeyDown=(o)=>{if(this.contained)return;if(o.key==="Escape"&&this.focusTrap.isActive()&&this.open)o.stopImmediatePropagation(),this.requestClose("keyboard")};handleTouchStart=(o)=>{this.isDragging=!0,this.startY=o.touches[0].clientY,this.currentY=this.startY,this.originalHeight=this.panel.offsetHeight,o.preventDefault()};handleTouchMove=(o)=>{if(!this.isDragging)return;this.currentY=o.touches[0].clientY;let i=this.currentY-this.startY;if(i>0){let a=Math.min(i,200);this.panel.style.transform=`translateY(${a}px)`,this.panel.style.transition="none";let t=Math.max(0.3,1-a/200);this.overlay.style.opacity=t.toString()}else{let a=Math.min(Math.abs(i),100),t=this.originalHeight+a;this.panel.style.transform="",this.panel.style.height=`${t}px`,this.panel.style.transition="none";let r=Math.min(1,1+a/200);this.overlay.style.opacity=r.toString()}o.preventDefault()};handleTouchEnd=()=>{if(!this.isDragging)return;this.isDragging=!1;let o=this.currentY-this.startY;if(o>100)this.closeFromCurrentPosition();else if(o>0)this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);else this.panel.style.transition="height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",this.panel.style.height=`${this.originalHeight}px`,this.overlay.style.transition="opacity 0.4s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.height="",this.overlay.style.transition="",this.overlay.style.opacity=""},400)};handleMouseDown=(o)=>{this.isDragging=!0,this.startY=o.clientY,this.currentY=this.startY,this.originalHeight=this.panel.offsetHeight,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),o.preventDefault()};handleMouseMove=(o)=>{if(!this.isDragging)return;this.currentY=o.clientY;let i=this.currentY-this.startY;if(i>0){let a=Math.min(i,200);this.panel.style.transform=`translateY(${a}px)`,this.panel.style.transition="none";let t=Math.max(0.3,1-a/200);this.overlay.style.opacity=t.toString()}else{let a=Math.min(Math.abs(i),100),t=this.originalHeight+a;this.panel.style.transform="",this.panel.style.height=`${t}px`,this.panel.style.transition="none";let r=Math.min(1,1+a/200);this.overlay.style.opacity=r.toString()}};handleMouseUp=()=>{if(!this.isDragging)return;this.isDragging=!1;let o=this.currentY-this.startY,i=100;if(document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),o>i)this.closeFromCurrentPosition();else if(o>0)this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);else this.panel.style.transition="height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",this.panel.style.height=`${this.originalHeight}px`,this.overlay.style.transition="opacity 0.4s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.height="",this.overlay.style.transition="",this.overlay.style.opacity=""},400)};async closeFromCurrentPosition(){let i=this.panel.style.transform.match(/translateY\(([^)]+)\)/)?.[1]||"0px",a=parseFloat(i),t=this.panel.offsetHeight,r=t-a,e=250,n=Math.max(100,r/t*250);if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:"overlay"}}).defaultPrevented){this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);return}if(this.isCustomClosing=!0,this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),wi(this);this.panel.style.transition=`transform ${n}ms ease-out`,this.panel.style.transform=`translateY(${t}px)`,this.overlay.style.transition=`opacity ${n}ms ease-out`,this.overlay.style.opacity="0",setTimeout(async()=>{if(this.drawer.hidden=!0,this.panel.style.transform="",this.panel.style.transition="",this.overlay.style.opacity="",this.overlay.style.transition="",this.open=!1,this.isCustomClosing=!1,typeof this.originalTrigger?.focus==="function")setTimeout(()=>this.originalTrigger?.focus());this.emit("drawer-after-hide")},n)}cleanupDragState(){if(this.isDragging=!1,document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),!this.isCustomClosing&&this.panel)this.panel.style.transform="",this.panel.style.transition="",this.panel.style.height="";if(!this.isCustomClosing&&this.overlay)this.overlay.style.opacity="",this.overlay.style.transition=""}handlePanelWheel=(o)=>{o.stopPropagation();let i=this.panel.querySelector(".drawer__body");if(i)if(!(i.scrollHeight>i.clientHeight))o.preventDefault();else{let t=i.scrollTop>0,r=i.scrollTop<i.scrollHeight-i.clientHeight;if(!t&&o.deltaY<0||!r&&o.deltaY>0)o.preventDefault()}else o.preventDefault()};handlePanelTouchStart=(o)=>{if(!this.isDragging){let i=this.panel.querySelector(".drawer__body");if(i&&o.touches.length>0)i.dataset.prevTouchY=o.touches[0].clientY.toString()}};handlePanelTouchMove=(o)=>{if(!this.isDragging){o.stopPropagation();let i=this.panel.querySelector(".drawer__body");if(i)if(!(i.scrollHeight>i.clientHeight))o.preventDefault();else{let r=o.touches[0].clientY,e=parseFloat(i.dataset.prevTouchY||"0"),n=r-e,s=i.scrollTop>0,l=i.scrollTop<i.scrollHeight-i.clientHeight;if(!s&&n>0||!l&&n<0)o.preventDefault();i.dataset.prevTouchY=r.toString()}else o.preventDefault()}};async handleOpenChange(){if(this.open){if(this.emit("drawer-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,!this.contained)this.focusTrap.activate(),Vi(this);let o=this.querySelector("[autofocus]");if(o)o.removeAttribute("autofocus");await Promise.all([ii(this.drawer),ii(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{if(!this.emit("drawer-initial-focus",{cancelable:!0}).defaultPrevented)if(o)o.focus({preventScroll:!0});else this.panel.focus({preventScroll:!0});if(o)o.setAttribute("autofocus","")});let i=_o(this,"drawer.showBottom",{dir:""}),a=_o(this,"drawer.overlay.show",{dir:""});await Promise.all([Oo(this.panel,i.keyframes,i.options),Oo(this.overlay,a.keyframes,a.options)]),this.emit("drawer-after-show")}else{if(this.isCustomClosing)return;if(Kn(this),this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),wi(this);await Promise.all([ii(this.drawer),ii(this.overlay)]);let o=_o(this,"drawer.hideBottom",{dir:""}),i=_o(this,"drawer.overlay.hide",{dir:""});await Promise.all([Oo(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),Oo(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let a=this.originalTrigger;if(typeof a?.focus==="function")setTimeout(()=>a.focus());this.emit("drawer-after-hide")}}handleNoModalChange(){if(this.open&&!this.contained)this.focusTrap.activate(),Vi(this);if(this.open&&this.contained)this.focusTrap.deactivate(),wi(this)}async show(){if(this.open)return;return this.open=!0,Pi(this,"drawer-after-show")}async hide(){if(!this.open)return;return this.open=!1,Pi(this,"drawer-after-hide")}render(){return $`
|
|
5676
5683
|
<div
|
|
5677
5684
|
part="base"
|
|
5678
|
-
class=${
|
|
5685
|
+
class=${ao({drawer:!0,"drawer--open":this.open,"drawer--bottom":!0,"drawer--contained":this.contained,"drawer--fixed":!this.contained})}
|
|
5679
5686
|
>
|
|
5680
5687
|
<div part="overlay" class="drawer__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>
|
|
5681
5688
|
|
|
@@ -5705,7 +5712,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5705
5712
|
|
|
5706
5713
|
</div>
|
|
5707
5714
|
</div>
|
|
5708
|
-
`}}d([fo(".drawer")],Ua.prototype,"drawer",void 0),d([fo(".drawer__panel")],Ua.prototype,"panel",void 0),d([fo(".drawer__overlay")],Ua.prototype,"overlay",void 0),d([Z({type:Boolean,reflect:!0})],Ua.prototype,"open",void 0),d([Z({reflect:!0})],Ua.prototype,"label",void 0),d([Z({type:Boolean,reflect:!0})],Ua.prototype,"contained",void 0),d([Z({attribute:"no-header",type:Boolean,reflect:!0})],Ua.prototype,"noHeader",void 0),d([Z({attribute:"no-close-button",type:Boolean,reflect:!0})],Ua.prototype,"noCloseButton",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleOpenChange",null),d([mo("contained",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleNoModalChange",null),Ua=d([X("origami-drawer")],Ua);qo("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});qo("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});qo("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});qo("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});qo("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});qo("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});qo("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var
|
|
5715
|
+
`}}d([fo(".drawer")],Ua.prototype,"drawer",void 0),d([fo(".drawer__panel")],Ua.prototype,"panel",void 0),d([fo(".drawer__overlay")],Ua.prototype,"overlay",void 0),d([Z({type:Boolean,reflect:!0})],Ua.prototype,"open",void 0),d([Z({reflect:!0})],Ua.prototype,"label",void 0),d([Z({type:Boolean,reflect:!0})],Ua.prototype,"contained",void 0),d([Z({attribute:"no-header",type:Boolean,reflect:!0})],Ua.prototype,"noHeader",void 0),d([Z({attribute:"no-close-button",type:Boolean,reflect:!0})],Ua.prototype,"noCloseButton",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleOpenChange",null),d([mo("contained",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleNoModalChange",null),Ua=d([X("origami-drawer")],Ua);qo("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});qo("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});qo("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});qo("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});qo("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});qo("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});qo("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});qo("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var qn=G`
|
|
5709
5716
|
:host {
|
|
5710
5717
|
display: contents;
|
|
5711
5718
|
}
|
|
@@ -5727,7 +5734,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5727
5734
|
display: none;
|
|
5728
5735
|
}
|
|
5729
5736
|
}
|
|
5730
|
-
`;class cr extends T{constructor(){super(...arguments);this.showFooter=!0;this.open=!1;this.label="";this.width="";this.internalOpen=!1}static styles=[B,
|
|
5737
|
+
`;class cr extends T{constructor(){super(...arguments);this.showFooter=!0;this.open=!1;this.label="";this.width="";this.internalOpen=!1}static styles=[B,qn];openDebounceTimeout;isAnimating=!1;openChanged(){if(this.openDebounceTimeout)clearTimeout(this.openDebounceTimeout);if(this.isAnimating)this.openDebounceTimeout=window.setTimeout(()=>{this.internalOpen=this.open},50);else this.internalOpen=this.open}disconnectedCallback(){if(super.disconnectedCallback(),this.openDebounceTimeout)clearTimeout(this.openDebounceTimeout)}handleCloseEvent(){this.isAnimating=!1,this.emit("responsive-modal-close")}handleShowEvent(){this.isAnimating=!0,setTimeout(()=>{this.isAnimating=!1},300)}handleHideEvent(){this.isAnimating=!0}render(){let o=this.width?{"--width":this.width}:{};return $`
|
|
5731
5738
|
<origami-modal
|
|
5732
5739
|
no-header
|
|
5733
5740
|
class="hide-on-mobile"
|
|
@@ -5752,7 +5759,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5752
5759
|
>
|
|
5753
5760
|
<slot name="mobile-content"></slot>
|
|
5754
5761
|
</origami-drawer>
|
|
5755
|
-
`}}d([Z({type:Boolean})],cr.prototype,"showFooter",void 0),d([Z({type:Boolean,reflect:!0})],cr.prototype,"open",void 0),d([Z({type:String})],cr.prototype,"label",void 0),d([Z({type:String})],cr.prototype,"width",void 0),d([O()],cr.prototype,"internalOpen",void 0),d([mo("open")],cr.prototype,"openChanged",null),cr=d([X("origami-responsive-modal")],cr);var
|
|
5762
|
+
`}}d([Z({type:Boolean})],cr.prototype,"showFooter",void 0),d([Z({type:Boolean,reflect:!0})],cr.prototype,"open",void 0),d([Z({type:String})],cr.prototype,"label",void 0),d([Z({type:String})],cr.prototype,"width",void 0),d([O()],cr.prototype,"internalOpen",void 0),d([mo("open")],cr.prototype,"openChanged",null),cr=d([X("origami-responsive-modal")],cr);var Un=G`
|
|
5756
5763
|
:host {
|
|
5757
5764
|
position: absolute;
|
|
5758
5765
|
top: 12px;
|
|
@@ -5788,7 +5795,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5788
5795
|
max-width: none;
|
|
5789
5796
|
}
|
|
5790
5797
|
}
|
|
5791
|
-
`;var
|
|
5798
|
+
`;var Rn=G`
|
|
5792
5799
|
:host {
|
|
5793
5800
|
display: block;
|
|
5794
5801
|
width: 275px;
|
|
@@ -5920,26 +5927,26 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5920
5927
|
opacity: 0;
|
|
5921
5928
|
}
|
|
5922
5929
|
}
|
|
5923
|
-
`;var
|
|
5930
|
+
`;var hl=eo`
|
|
5924
5931
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
5925
5932
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.22821 4.66528L12 1.47557L14.7718 4.66528L18.9447 4.00323L19.0175 8.22828L22.6401 10.4038L19.98 13.6871L21.3567 17.6821L17.2085 18.4875L15.6951 22.4328L12 20.3833L8.30494 22.4328L6.79152 18.4875L2.64329 17.6821L4.02 13.6871L1.35989 10.4038L4.98246 8.22828L5.05533 4.00323L9.22821 4.66528ZM15.9139 10.5L14.4997 9.08579L11 12.5855L9.49497 11.0855L8.08545 12.5L11 15.4142L15.9139 10.5Z" fill="white"/>
|
|
5926
5933
|
</svg>
|
|
5927
|
-
`,
|
|
5934
|
+
`,ul=eo`
|
|
5928
5935
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5929
5936
|
<path d="M11.1967 2.71828C8.53683 0.970353 5 2.8783 5 6.0611V17.9387C5 21.1215 8.53684 23.0294 11.1967 21.2815L20.234 15.3427C22.6384 13.7627 22.6384 10.2371 20.234 8.65706L11.1967 2.71828Z" fill="#272727"/>
|
|
5930
5937
|
</svg>
|
|
5931
|
-
`,
|
|
5938
|
+
`,fl=eo`
|
|
5932
5939
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5933
5940
|
<path d="M15.2413 3H8.7587C7.95374 2.99999 7.28937 2.99998 6.74818 3.04419C6.18608 3.09012 5.66937 3.18868 5.18404 3.43598C4.43139 3.81947 3.81947 4.43139 3.43598 5.18404C3.18868 5.66937 3.09012 6.18608 3.04419 6.74818C2.99998 7.28937 2.99999 7.95372 3 8.75869V15.2413C2.99999 16.0463 2.99998 16.7106 3.04419 17.2518C3.09012 17.8139 3.18868 18.3306 3.43598 18.816C3.81947 19.5686 4.43139 20.1805 5.18404 20.564C5.66937 20.8113 6.18608 20.9099 6.74818 20.9558C7.28937 21 7.95372 21 8.75868 21H15.2413C16.0463 21 16.7106 21 17.2518 20.9558C17.8139 20.9099 18.3306 20.8113 18.816 20.564C19.5686 20.1805 20.1805 19.5686 20.564 18.816C20.8113 18.3306 20.9099 17.8139 20.9558 17.2518C21 16.7106 21 16.0463 21 15.2413V8.75868C21 7.95372 21 7.28936 20.9558 6.74818C20.9099 6.18608 20.8113 5.66937 20.564 5.18404C20.1805 4.43139 19.5686 3.81947 18.816 3.43598C18.3306 3.18868 17.8139 3.09012 17.2518 3.04419C16.7106 2.99998 16.0463 2.99999 15.2413 3Z" fill="white"/>
|
|
5934
5941
|
</svg>
|
|
5935
|
-
`;class hr extends T{constructor(){super(...arguments);this.type="success";this.message="";this.autoCloseDelay=0;this.flipToRefreshTimer=!1;this.isHiding=!1;this.isPaused=!1;this.progressWidth=100}static styles=[B,
|
|
5942
|
+
`;class hr extends T{constructor(){super(...arguments);this.type="success";this.message="";this.autoCloseDelay=0;this.flipToRefreshTimer=!1;this.isHiding=!1;this.isPaused=!1;this.progressWidth=100}static styles=[B,Rn];animationFrame;remainingTime=0;lastTickTimestamp;connectedCallback(){super.connectedCallback(),this.toggleAttribute("hiding",!1),this.initializeTimer(this.autoCloseDelay)}disconnectedCallback(){super.disconnectedCallback(),this.clearTimer()}handleAutoCloseDelayChange(){if(this.autoCloseDelay>0)this.isHiding=!0,setTimeout(()=>{this.isHiding=!1,this.clearTimer(),this.initializeTimer(this.autoCloseDelay)},160)}initializeTimer(o){if(o>0)this.remainingTime=o,this.progressWidth=100,this.startTimer()}startTimer(){if(this.clearTimer(),this.remainingTime<=0){this.handleClose();return}this.lastTickTimestamp=performance.now();let o=()=>{this.animationFrame=requestAnimationFrame(()=>{if(this.isPaused){this.lastTickTimestamp=performance.now(),o();return}let i=performance.now(),a=this.lastTickTimestamp??i,t=Math.max(0,i-a);if(this.lastTickTimestamp=i,this.remainingTime-=t,this.progressWidth=Math.max(0,this.remainingTime/this.autoCloseDelay*100),this.remainingTime<=0)this.handleClose();else o()})};o()}clearTimer(){if(this.animationFrame!==void 0)cancelAnimationFrame(this.animationFrame),this.animationFrame=void 0}handleMouseEnter(){this.isPaused=!0}handleMouseLeave(){this.isPaused=!1}handleClose(){this.isHiding=!0,this.toggleAttribute("hiding",!0),setTimeout(()=>{this.emit("alert-close",{detail:{id:this.id}})},160)}render(){return $`
|
|
5936
5943
|
<div
|
|
5937
5944
|
class="alert alert-${this.type} ${this.isHiding?"alert-hiding":""}"
|
|
5938
5945
|
@mouseenter=${this.handleMouseEnter}
|
|
5939
5946
|
@mouseleave=${this.handleMouseLeave}
|
|
5940
5947
|
>
|
|
5941
5948
|
<div class="alert-icon">
|
|
5942
|
-
${this.id==="autobet-started"?
|
|
5949
|
+
${this.id==="autobet-started"?ul:this.id==="autobet-stopped"?fl:hl}
|
|
5943
5950
|
</div>
|
|
5944
5951
|
|
|
5945
5952
|
<div class="alert-content">
|
|
@@ -5953,7 +5960,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5953
5960
|
</div>
|
|
5954
5961
|
|
|
5955
5962
|
</div>
|
|
5956
|
-
`}}d([Z({type:String})],hr.prototype,"type",void 0),d([Z({type:String})],hr.prototype,"message",void 0),d([Z({type:Number})],hr.prototype,"autoCloseDelay",void 0),d([Z({type:Boolean})],hr.prototype,"flipToRefreshTimer",void 0),d([O()],hr.prototype,"isHiding",void 0),d([O()],hr.prototype,"isPaused",void 0),d([O()],hr.prototype,"progressWidth",void 0),d([
|
|
5963
|
+
`}}d([Z({type:String})],hr.prototype,"type",void 0),d([Z({type:String})],hr.prototype,"message",void 0),d([Z({type:Number})],hr.prototype,"autoCloseDelay",void 0),d([Z({type:Boolean})],hr.prototype,"flipToRefreshTimer",void 0),d([O()],hr.prototype,"isHiding",void 0),d([O()],hr.prototype,"isPaused",void 0),d([O()],hr.prototype,"progressWidth",void 0),d([ro({context:D,subscribe:!0})],hr.prototype,"gameData",void 0),d([mo("flipToRefreshTimer",{waitUntilFirstUpdate:!0})],hr.prototype,"handleAutoCloseDelayChange",null),hr=d([X("origami-alert")],hr);var In=(o,i,a)=>{let t=new Map;for(let r=i;r<=a;r++)t.set(o[r],r);return t},Ra=To(class extends Bo{constructor(o){if(super(o),o.type!==Jo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,a){let t;a===void 0?a=i:i!==void 0&&(t=i);let r=[],e=[],n=0;for(let s of o)r[n]=t?t(s,n):n,e[n]=a(s,n),n++;return{values:e,keys:r}}render(o,i,a){return this.dt(o,i,a).values}update(o,[i,a,t]){let r=Qe(o),{values:e,keys:n}=this.dt(i,a,t);if(!Array.isArray(r))return this.ut=n,e;let s=this.ut??=[],l=[],h,p,H=0,f=r.length-1,y=0,z=e.length-1;for(;H<=f&&y<=z;)if(r[H]===null)H++;else if(r[f]===null)f--;else if(s[H]===n[y])l[y]=pi(r[H],e[y]),H++,y++;else if(s[f]===n[z])l[z]=pi(r[f],e[z]),f--,z--;else if(s[H]===n[z])l[z]=pi(r[H],e[z]),Fi(o,l[z+1],r[H]),H++,z--;else if(s[f]===n[y])l[y]=pi(r[f],e[y]),Fi(o,r[H],r[f]),f--,y++;else if(h===void 0&&(h=In(n,y,z),p=In(s,H,f)),h.has(s[H]))if(h.has(s[f])){let v=p.get(n[y]),q=v!==void 0?r[v]:null;if(q===null){let w=Fi(o,r[H]);pi(w,e[y]),l[y]=w}else l[y]=pi(q,e[y]),Fi(o,r[H],q),r[v]=null;y++}else va(r[f]),f--;else va(r[H]),H++;for(;y<=z;){let v=Fi(o,l[z+1]);pi(v,e[y]),l[y++]=v}for(;H<=f;){let v=r[H++];v!==null&&va(v)}return this.ut=n,wa(o,l),Ko}});class ur extends T{constructor(){super(...arguments);this.alerts=[]}static styles=[B,Un];addAlert(o){let i=o.id,a={autoCloseDelay:5000,showCloseButton:!0,flipToRefreshTimer:!1,...o},t=this.alerts.findIndex((r)=>r.id===i);if(t!==-1)this.alerts=[...this.alerts.slice(0,t),{...a,flipToRefreshTimer:!a.flipToRefreshTimer},...this.alerts.slice(t+1)];else this.alerts=[...this.alerts,a];return i}clearAllAlerts(){this.alerts=[]}handleAlertClose(o){this.alerts=this.alerts.filter((i)=>i.id!==o.detail.id)}render(){let o=(this.gameData?.mainWidth??0)<768;if(this.alerts.length===0||o)return _;return $`
|
|
5957
5964
|
<div class="alert-manager" @alert-close=${this.handleAlertClose}>
|
|
5958
5965
|
${Ra(this.alerts,(i)=>i.id,(i)=>$`
|
|
5959
5966
|
<origami-alert
|
|
@@ -5966,7 +5973,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5966
5973
|
></origami-alert>
|
|
5967
5974
|
`)}
|
|
5968
5975
|
</div>
|
|
5969
|
-
`}}d([
|
|
5976
|
+
`}}d([ro({context:D,subscribe:!0})],ur.prototype,"gameData",void 0),d([O()],ur.prototype,"alerts",void 0),ur=d([X("origami-alert-manager")],ur);var Ia={publicKey:qa,request:"",proof:"",randomness:"",clientSeed:""};class fr extends T{constructor(){super(...arguments);this.gameType="KENO";this.footerPosition="below";this.showFooter=!0;this.modalContent=null;this.modalNavigationStack=[];this.isModalTransitioning=!1}static styles=[B,Zn];pendingModalContent=null;modalTransitionTimeout;resizeObserver;firstUpdated(){this.setupMainWidthObserver()}setupMainWidthObserver(){if(!this.gameLayoutMain)return;this.resizeObserver=new ResizeObserver((o)=>{for(let i of o){let a=i.contentRect.width;if(a!==this.gameData?.mainWidth)this.gameData?.updateMainWidth(a)}}),this.resizeObserver.observe(this.gameLayoutMain),requestAnimationFrame(()=>{if(this.gameLayoutMain)this.gameData?.updateMainWidth(this.gameLayoutMain.clientWidth)})}disconnectedCallback(){if(super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.modalTransitionTimeout)clearTimeout(this.modalTransitionTimeout)}setModalContent(o){if(this.isModalTransitioning){this.pendingModalContent=o;return}if(!o&&this.modalContent){this.isModalTransitioning=!0,this.modalContent=null,this.modalTransitionTimeout=window.setTimeout(()=>{if(this.isModalTransitioning=!1,this.pendingModalContent){let i=this.pendingModalContent;this.pendingModalContent=null,this.setModalContent(i)}},300);return}if(o)if(this.modalContent)this.modalContent=o;else this.isModalTransitioning=!0,this.modalContent=o,this.modalTransitionTimeout=window.setTimeout(()=>{if(this.isModalTransitioning=!1,this.pendingModalContent){let i=this.pendingModalContent;this.pendingModalContent=null,this.setModalContent(i)}},300)}renderModalContent(o){if(!this.modalContent)return _;switch(this.modalContent.type){case"betResult":return $`
|
|
5970
5977
|
<origami-bet-result-modal
|
|
5971
5978
|
slot=${o}
|
|
5972
5979
|
.betId=${this.modalContent.betId}
|
|
@@ -5985,12 +5992,13 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
5985
5992
|
`;case"gameInfo":return $`
|
|
5986
5993
|
<origami-game-info-modal slot=${o} .gameType=${this.gameType}></origami-game-info-modal>
|
|
5987
5994
|
`}}getModalLabel(){if(!this.modalContent)return"";let o=this.gameData?.language||"en";switch(this.modalContent.type){case"betResult":return`${V("modals.betResult",o)}: ${this.modalContent.betId}`;case"fairness":return V("modals.fairnessAndHistory",o);case"gameInfo":return this.modalContent.label||V("modals.gameInfo",o);default:return""}}openVerifyOutcomeModal(o){if(this.modalContent&&(this.modalContent.type==="betResult"||this.modalContent.type==="gameInfo"))this.modalNavigationStack.push(this.modalContent);this.setModalContent({type:"fairness",data:o.detail.verifyData,activeTab:"Fairness",showExtendedFields:!0,showClientSeedEditor:!1,showBackButton:!0})}handleBetResultModalBack=()=>{let o=this.modalNavigationStack.pop();if(o)this.setModalContent(o);else this.setModalContent({type:"fairness",data:Ia,activeTab:"History",showExtendedFields:!1,showClientSeedEditor:!1,showBackButton:!0})};handleModalClose=()=>{let o=this.gameData?.historyController;if(o){if(this.modalContent?.type==="fairness"||this.modalNavigationStack.some((a)=>a.type==="fairness"))o.refreshHistory()}this.setModalContent(null),this.modalNavigationStack=[],this.pendingModalContent=null};render(){let o=this.showFooter?$`<origami-footer
|
|
5995
|
+
.showHistoryButton=${!!this.gameData?.authToken&&!!this.gameData?.baseUrl}
|
|
5988
5996
|
@footer-provably-fair-click=${()=>{this.setModalContent({type:"fairness",data:Ia,activeTab:"History",showExtendedFields:!1,showClientSeedEditor:!0,showBackButton:!1})}}
|
|
5989
5997
|
@footer-verify-click=${()=>{this.setModalContent({type:"fairness",data:Ia,activeTab:"Fairness",showExtendedFields:!1,showClientSeedEditor:!0,showBackButton:!1})}}
|
|
5990
5998
|
@footer-game-info-click=${()=>{this.setModalContent({type:"gameInfo"})}}
|
|
5991
5999
|
></origami-footer>`:_;return $`
|
|
5992
6000
|
<div
|
|
5993
|
-
class=${
|
|
6001
|
+
class=${ao({"game-layout-container":!0,"footer-above":this.footerPosition==="above"})}
|
|
5994
6002
|
@open-verify-outcome-modal=${(i)=>{this.openVerifyOutcomeModal(i)}}
|
|
5995
6003
|
@footer-verify-click=${(i)=>{let a=i.detail?.source==="gameInfo";if(a&&this.modalContent&&this.modalContent.type==="gameInfo")this.modalNavigationStack.push(this.modalContent);this.setModalContent({type:"fairness",data:Ia,activeTab:"Fairness",showExtendedFields:!1,showClientSeedEditor:!0,showBackButton:!!a})}}
|
|
5996
6004
|
@open-bet-result-modal=${(i)=>{if(this.modalContent?.type==="fairness")this.modalNavigationStack.push({...this.modalContent,activeTab:"History"});this.setModalContent({type:"betResult",betId:i.detail.betId,source:this.modalContent?.type==="fairness"?"history":"direct"})}}
|
|
@@ -6040,7 +6048,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6040
6048
|
</div>
|
|
6041
6049
|
${this.footerPosition==="below"?o:_}
|
|
6042
6050
|
</div>
|
|
6043
|
-
`}}d([
|
|
6051
|
+
`}}d([ro({context:D,subscribe:!0})],fr.prototype,"gameData",void 0),d([Z({type:String})],fr.prototype,"gameType",void 0),d([Z({type:String,attribute:"footer-position"})],fr.prototype,"footerPosition",void 0),d([Z({type:Boolean})],fr.prototype,"showFooter",void 0),d([fo("#alert-manager")],fr.prototype,"alertManager",void 0),d([fo(".game-layout-main")],fr.prototype,"gameLayoutMain",void 0),d([O()],fr.prototype,"modalContent",void 0),d([O()],fr.prototype,"modalNavigationStack",void 0),d([O()],fr.prototype,"isModalTransitioning",void 0),fr=d([X("origami-game-layout")],fr);var Jn=G`
|
|
6044
6052
|
:host {
|
|
6045
6053
|
display: none;
|
|
6046
6054
|
}
|
|
@@ -6114,7 +6122,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6114
6122
|
.stat-input[disabled] .hotkey-hint {
|
|
6115
6123
|
opacity: 0.5;
|
|
6116
6124
|
}
|
|
6117
|
-
`;class gr extends T{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=zo.ABOVE;this.disabled=!1;this._winChanceFocused=!1}static styles=[B,
|
|
6125
|
+
`;class gr extends T{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=zo.ABOVE;this.disabled=!1;this._winChanceFocused=!1}static styles=[B,Jn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return go.getWinChance(this.selectedValue,this.diceDirection);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return go.getMultiplier(this.selectedValue,this.diceDirection);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleMultiplierBlur(){this.multiplierInputValue=go.getMultiplier(this.selectedValue,this.diceDirection)}handleWinChanceBlur(){this.winChanceInputValue=go.getWinChance(this.selectedValue,this.diceDirection)}updated(o){if(o.has("selectedValue")||o.has("diceDirection"))requestAnimationFrame(()=>{if(this.isConnected){if(!this.isMultiplierFocused())this._multiplierInputValue=go.getMultiplier(this.selectedValue,this.diceDirection);if(!this.isWinChanceFocused())this._winChanceInputValue=go.getWinChance(this.selectedValue,this.diceDirection)}})}isMultiplierFocused(){return this.multiplierInput?.shadowRoot?.activeElement!==null||this.multiplierInput===document.activeElement}isWinChanceFocused(){return this.winChanceInput?.shadowRoot?.activeElement!==null||this.winChanceInput===document.activeElement}render(){let o=this.gameData?.language||"en",i=!go.isValidMultiplier(this.multiplierInputValue),a=!go.isValidWinChance(this.winChanceInputValue),t=i?V("errors.dice.multiplierRange",o):"",r=a?V("errors.dice.winChanceRange",o):"",e=this.isMultiplierFocused()&&i?t:"",n=this.isWinChanceFocused()&&a?r:"";return $`
|
|
6118
6126
|
<origami-input
|
|
6119
6127
|
tooltipOffset=${0}
|
|
6120
6128
|
class="stat-input multiplier"
|
|
@@ -6168,7 +6176,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6168
6176
|
</div>
|
|
6169
6177
|
`:_}
|
|
6170
6178
|
</origami-input>
|
|
6171
|
-
`}}d([Z({type:Number})],gr.prototype,"selectedValue",void 0),d([Z({type:String})],gr.prototype,"diceDirection",void 0),d([Z({type:Boolean})],gr.prototype,"disabled",void 0),d([
|
|
6179
|
+
`}}d([Z({type:Number})],gr.prototype,"selectedValue",void 0),d([Z({type:String})],gr.prototype,"diceDirection",void 0),d([Z({type:Boolean})],gr.prototype,"disabled",void 0),d([ro({context:D,subscribe:!0})],gr.prototype,"gameData",void 0),d([fo(".multiplier")],gr.prototype,"multiplierInput",void 0),d([fo(".win-chance")],gr.prototype,"winChanceInput",void 0),d([O()],gr.prototype,"_winChanceInputValue",void 0),d([O()],gr.prototype,"_multiplierInputValue",void 0),d([O()],gr.prototype,"_winChanceFocused",void 0),gr=d([X("origami-dice-content-bottom")],gr);var Vn=G`
|
|
6172
6180
|
:host {
|
|
6173
6181
|
display: flex;
|
|
6174
6182
|
flex-direction: column;
|
|
@@ -6189,7 +6197,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6189
6197
|
order: 0;
|
|
6190
6198
|
}
|
|
6191
6199
|
}
|
|
6192
|
-
`;class pr extends T{constructor(){super(...arguments);this.isPlaying=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.inputsDisabled=!1;this.isBetAmountValid=!0}static styles=[B
|
|
6200
|
+
`;class pr extends T{constructor(){super(...arguments);this.isPlaying=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.inputsDisabled=!1;this.isBetAmountValid=!0}static styles=[B,Vn];render(){let o=this.gameData?.language||"en";return $`
|
|
6193
6201
|
<origami-balance-input></origami-balance-input>
|
|
6194
6202
|
|
|
6195
6203
|
<origami-bet-amount-input
|
|
@@ -6225,7 +6233,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6225
6233
|
${V("common.placeBet",o)}
|
|
6226
6234
|
</origami-button>
|
|
6227
6235
|
</div>
|
|
6228
|
-
`}}d([Z({type:Boolean})],pr.prototype,"isPlaying",void 0),d([Z({type:String})],pr.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],pr.prototype,"betDisabled",void 0),d([Z({type:Boolean})],pr.prototype,"inputsDisabled",void 0),d([
|
|
6236
|
+
`}}d([Z({type:Boolean})],pr.prototype,"isPlaying",void 0),d([Z({type:String})],pr.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],pr.prototype,"betDisabled",void 0),d([Z({type:Boolean})],pr.prototype,"inputsDisabled",void 0),d([ro({context:D,subscribe:!0})],pr.prototype,"gameData",void 0),d([O()],pr.prototype,"isBetAmountValid",void 0),pr=d([X("origami-dice-manual")],pr);class br extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isDesktop=!1}render(){return $`
|
|
6229
6237
|
<origami-generic-autobet
|
|
6230
6238
|
data-is-desktop=${this.isDesktop}
|
|
6231
6239
|
?inputsDisabled=${this.inputsDisabled}
|
|
@@ -6235,7 +6243,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6235
6243
|
?betDisabled=${this.betDisabled}
|
|
6236
6244
|
>
|
|
6237
6245
|
</origami-generic-autobet>
|
|
6238
|
-
`}}d([Z({type:Boolean})],br.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],br.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],br.prototype,"autobetInProgress",void 0),d([Z({type:String})],br.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],br.prototype,"betDisabled",void 0),d([Z({type:Boolean})],br.prototype,"isDesktop",void 0),br=d([X("origami-dice-auto")],br);var
|
|
6246
|
+
`}}d([Z({type:Boolean})],br.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],br.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],br.prototype,"autobetInProgress",void 0),d([Z({type:String})],br.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],br.prototype,"betDisabled",void 0),d([Z({type:Boolean})],br.prototype,"isDesktop",void 0),br=d([X("origami-dice-auto")],br);var $n=G`
|
|
6239
6247
|
:host {
|
|
6240
6248
|
width: 100%;
|
|
6241
6249
|
height: 100%;
|
|
@@ -6277,7 +6285,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6277
6285
|
display: block;
|
|
6278
6286
|
}
|
|
6279
6287
|
}
|
|
6280
|
-
`;var
|
|
6288
|
+
`;var Yn=G`
|
|
6281
6289
|
:host {
|
|
6282
6290
|
display: block;
|
|
6283
6291
|
--history-pill-primary-color: #00e701;
|
|
@@ -6342,6 +6350,10 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6342
6350
|
contain: layout paint;
|
|
6343
6351
|
}
|
|
6344
6352
|
|
|
6353
|
+
.cursor-initial {
|
|
6354
|
+
cursor: initial;
|
|
6355
|
+
}
|
|
6356
|
+
|
|
6345
6357
|
:host([data-is-desktop='true']) .history-pill {
|
|
6346
6358
|
height: var(--pill-height-container);
|
|
6347
6359
|
}
|
|
@@ -6379,9 +6391,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6379
6391
|
opacity: 0.8;
|
|
6380
6392
|
}
|
|
6381
6393
|
}
|
|
6382
|
-
`;class wr extends T{constructor(){super(...arguments);this.history=[];this.gameType="MINES";this.animatingInIds=new Set}static styles=[B,
|
|
6394
|
+
`;class wr extends T{constructor(){super(...arguments);this.history=[];this.gameType="MINES";this.animatingInIds=new Set}static styles=[B,Yn];betResultCache=Fo.getInstance();gameConsumer=new wo(this,{context:D,subscribe:!0});get disableHistoryModal(){return!this.gameConsumer.value?.baseUrl||!this.gameConsumer.value?.authToken}updated(o){if(super.updated(o),o.has("history"))this.handleHistoryChange(o.get("history"))}handleHistoryChange(o){let i=this.history.filter((a)=>!o.includes(a));if(this.isConnected&&!this.gameConsumer.value?.instantBetEnabled)this.animatingInIds=new Set([...this.animatingInIds,...i.map((a)=>a.id)])}handleAnimationEnd(o,i){if(o.animationName==="scaleUp"&&this.animatingInIds.has(i.id))requestAnimationFrame(()=>{if(this.isConnected)this.animatingInIds=new Set([...this.animatingInIds].filter((a)=>a!==i.id))})}formatMultiplier(o){return o.toFixed(2)}handleHistoryPillClick(o){if(this.disableHistoryModal)return;this.emit("open-bet-result-modal",{detail:{betId:o.id}})}handlePillKeyDown(o,i){if(this.disableHistoryModal)return;let a=o.key;if(a==="Enter"||a===" ")o.preventDefault(),this.handleHistoryPillClick(i)}handleHistoryPillHover(o){if(this.disableHistoryModal)return;let i=this.gameConsumer.value?.baseUrl;if(i&&o)this.betResultCache.preloadBetResult(o,i)}renderHistoryPill(o){let i={"history-pill":!0,"history-pill-won":o.won,"slide-in":this.animatingInIds.has(o.id),"cursor-initial":this.disableHistoryModal},a=this.gameType==="DICE"?this.formatMultiplier(o.multiplier):`${this.formatMultiplier(o.multiplier)}X`;return $`
|
|
6383
6395
|
<div
|
|
6384
|
-
class=${
|
|
6396
|
+
class=${ao(i)}
|
|
6385
6397
|
role="button"
|
|
6386
6398
|
tabindex="0"
|
|
6387
6399
|
@click=${()=>this.handleHistoryPillClick(o)}
|
|
@@ -6393,7 +6405,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6393
6405
|
</div>
|
|
6394
6406
|
`}render(){return $`
|
|
6395
6407
|
${Ra(this.history,(o)=>o.id,(o)=>this.renderHistoryPill(o))}
|
|
6396
|
-
`}}d([Z({type:Array})],wr.prototype,"history",void 0),d([Z({type:String})],wr.prototype,"gameType",void 0),d([O()],wr.prototype,"animatingInIds",void 0),wr=d([X("origami-history-pills")],wr);class vr extends T{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=zo.ABOVE;this.isPlaying=!1;this.showDice=!0;this.isWin=!0;this.resultValue=null;this.history=[];this.isDesktop=!1}static styles=[B
|
|
6408
|
+
`}}d([Z({type:Array})],wr.prototype,"history",void 0),d([Z({type:String})],wr.prototype,"gameType",void 0),d([O()],wr.prototype,"animatingInIds",void 0),wr=d([X("origami-history-pills")],wr);class vr extends T{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=zo.ABOVE;this.isPlaying=!1;this.showDice=!0;this.isWin=!0;this.resultValue=null;this.history=[];this.isDesktop=!1}static styles=[B,$n];render(){if(this.isDesktop)return $`
|
|
6397
6409
|
<origami-history-pills
|
|
6398
6410
|
data-is-desktop=${this.isDesktop}
|
|
6399
6411
|
.gameType=${"DICE"}
|
|
@@ -6442,13 +6454,13 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6442
6454
|
.isRollLower=${this.diceDirection===zo.BELOW}
|
|
6443
6455
|
></origami-dice-slider>
|
|
6444
6456
|
</div>
|
|
6445
|
-
`}}d([Z({type:Number})],vr.prototype,"selectedValue",void 0),d([Z({type:String})],vr.prototype,"diceDirection",void 0),d([Z({type:Boolean})],vr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],vr.prototype,"showDice",void 0),d([Z({type:Boolean})],vr.prototype,"isWin",void 0),d([Z({type:Number})],vr.prototype,"resultValue",void 0),d([Z({type:Array})],vr.prototype,"history",void 0),d([Z({type:Boolean})],vr.prototype,"isDesktop",void 0),vr=d([X("origami-dice-content")],vr);var vi=(o)=>{if(o===1)return"Draw";if(o>1)return"Win";return"Loss"};function bo(o){return new Promise((i)=>setTimeout(i,o))}class No extends T{constructor(){super(...arguments);this.manualOrAuto="Manual";this.hasPendingBet=!1;this.autobetInProgress=!1;this.autobetStopping=!1}static soundsToPreload=[];static styles=[B];gameConsumer=new wo(this,{context:D,subscribe:!0});get gameData(){return this.gameConsumer.value}get isDemoMode(){return!this.gameData.authToken||!this.gameData.baseUrl}get isToggleDisabled(){return this.autobetInProgress||this.hasPendingBet}get areInputsDisabled(){return this.autobetInProgress||this.hasPendingBet}getDelay(o){return this.gameData.instantBetEnabled?Math.min(o/10,20):o}getAutobetDelay(){return 300}async forceUIUpdate(){this.requestUpdate(),await new Promise((o)=>setTimeout(o,0))}async executeInstantOrAnimated(o,i){if(this.gameData.instantBetEnabled){let a=await o();return await this.forceUIUpdate(),a}else return await i()}async ensureMinimumDisplayTime(o=!1,i=500,a=500){if(!this.gameData.instantBetEnabled)await this.forceUIUpdate(),await bo(o?i:a)}firstUpdated(){this.constructor.soundsToPreload.forEach((i)=>{this.gameData.soundController?.preload(i)})}disconnectedCallback(){if(super.disconnectedCallback(),this.autobetInProgress)this.autobetStopping=!0,this.autobetInProgress=!1,this.hasPendingBet=!1}async toggleAutobet(o){if(this.autobetInProgress){this.autobetStopping=!0,this.gameData.soundController?.play("bet").catch((e)=>console.error(e));return}let i=o.detail;this.autobetStopping=!1,this.autobetInProgress=!0;let a=this.gameData.amount??"0",t=L(0),r=a;try{this.hasPendingBet=!0;let e=!0;while(e&&!this.autobetStopping){let n=await this.executeAutobet(i,r);if(n.hasError){if(n.errorMessage)this.emit("show-alert",{detail:{type:"error",message:n.errorMessage}});else this.emit("show-alert",{detail:{type:"error",message:V("alerts.gameError",this.gameData.language||"en")}});e=!1;continue}if(t=t.plus(n.pnl),r=this.adjustBetAmount(i,n.gameOutcome,a,r),this.gameData.updateBetAmount(L(r)),!this.isPnLWithinLimits(i,t)){e=!1;continue}if(this.gameData.autobetNumberOfBets===0){e=!0;continue}this.gameData.updateAutobetNumberOfBets(this.gameData.autobetNumberOfBets-1),e=!Number.isNaN(this.gameData.autobetNumberOfBets)&&!!this.gameData.autobetNumberOfBets&&this.gameData.autobetNumberOfBets>0}}catch(e){console.error("Error occurred in toggle autobet",e),this.emit("show-alert",{detail:{type:"error",message:V("alerts.gameError",this.gameData?.language||"en")}})}finally{this.autobetInProgress=!1,this.hasPendingBet=!1,this.autobetStopping=!1}}adjustBetAmount(o,i,a,t){if(i==="Draw")return t;if(o.onWinStrategy==="Reset"&&i==="Win"||o.onLossStrategy==="Reset"&&i==="Loss")return a;let r=i==="Win"?o.onWinPercentage:o.onLossPercentage,e=L(r).dividedBy(100).plus(1);return L(t).multipliedBy(e).toFixed(2)}isPnLWithinLimits(o,i){let a=!L(o.stopOnLoss).eq(0)&&L(i).negated().gte(o.stopOnLoss),t=!L(o.stopOnProfit).eq(0)&&i.gte(o.stopOnProfit);return!a&&!t}updateHistoryWithBet(o){let i=this.gameData?.historyController;if(i&&o)i.addNewBet(o)}}d([O()],No.prototype,"manualOrAuto",void 0),d([O()],No.prototype,"hasPendingBet",void 0),d([O()],No.prototype,"autobetInProgress",void 0),d([O()],No.prototype,"autobetStopping",void 0);var
|
|
6457
|
+
`}}d([Z({type:Number})],vr.prototype,"selectedValue",void 0),d([Z({type:String})],vr.prototype,"diceDirection",void 0),d([Z({type:Boolean})],vr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],vr.prototype,"showDice",void 0),d([Z({type:Boolean})],vr.prototype,"isWin",void 0),d([Z({type:Number})],vr.prototype,"resultValue",void 0),d([Z({type:Array})],vr.prototype,"history",void 0),d([Z({type:Boolean})],vr.prototype,"isDesktop",void 0),vr=d([X("origami-dice-content")],vr);var vi=(o)=>{if(o===1)return"Draw";if(o>1)return"Win";return"Loss"};function bo(o){return new Promise((i)=>setTimeout(i,o))}class No extends T{constructor(){super(...arguments);this.manualOrAuto="Manual";this.hasPendingBet=!1;this.autobetInProgress=!1;this.autobetStopping=!1}static soundsToPreload=[];static styles=[B];gameConsumer=new wo(this,{context:D,subscribe:!0});get gameData(){return this.gameConsumer.value}get isDemoMode(){return!this.gameData.authToken||!this.gameData.baseUrl}get isToggleDisabled(){return this.autobetInProgress||this.hasPendingBet}get areInputsDisabled(){return this.autobetInProgress||this.hasPendingBet}getDelay(o){return this.gameData.instantBetEnabled?Math.min(o/10,20):o}getAutobetDelay(){return 300}async forceUIUpdate(){this.requestUpdate(),await new Promise((o)=>setTimeout(o,0))}async executeInstantOrAnimated(o,i){if(this.gameData.instantBetEnabled){let a=await o();return await this.forceUIUpdate(),a}else return await i()}async ensureMinimumDisplayTime(o=!1,i=500,a=500){if(!this.gameData.instantBetEnabled)await this.forceUIUpdate(),await bo(o?i:a)}firstUpdated(){this.constructor.soundsToPreload.forEach((i)=>{this.gameData.soundController?.preload(i)})}disconnectedCallback(){if(super.disconnectedCallback(),this.autobetInProgress)this.autobetStopping=!0,this.autobetInProgress=!1,this.hasPendingBet=!1}async toggleAutobet(o){if(this.autobetInProgress){this.autobetStopping=!0,this.gameData.soundController?.play("bet").catch((e)=>console.error(e));return}let i=o.detail;this.autobetStopping=!1,this.autobetInProgress=!0;let a=this.gameData.amount??"0",t=L(0),r=a;try{this.hasPendingBet=!0;let e=!0;while(e&&!this.autobetStopping){let n=await this.executeAutobet(i,r);if(n.hasError){if(n.errorMessage)this.emit("show-alert",{detail:{type:"error",message:n.errorMessage}});else this.emit("show-alert",{detail:{type:"error",message:V("alerts.gameError",this.gameData.language||"en")}});e=!1;continue}if(t=t.plus(n.pnl),r=this.adjustBetAmount(i,n.gameOutcome,a,r),this.gameData.updateBetAmount(L(r)),!this.isPnLWithinLimits(i,t)){e=!1;continue}if(this.gameData.autobetNumberOfBets===0){e=!0;continue}this.gameData.updateAutobetNumberOfBets(this.gameData.autobetNumberOfBets-1),e=!Number.isNaN(this.gameData.autobetNumberOfBets)&&!!this.gameData.autobetNumberOfBets&&this.gameData.autobetNumberOfBets>0}}catch(e){console.error("Error occurred in toggle autobet",e),this.emit("show-alert",{detail:{type:"error",message:V("alerts.gameError",this.gameData?.language||"en")}})}finally{this.autobetInProgress=!1,this.hasPendingBet=!1,this.autobetStopping=!1}}adjustBetAmount(o,i,a,t){if(i==="Draw")return t;if(o.onWinStrategy==="Reset"&&i==="Win"||o.onLossStrategy==="Reset"&&i==="Loss")return a;let r=i==="Win"?o.onWinPercentage:o.onLossPercentage,e=L(r).dividedBy(100).plus(1);return L(t).multipliedBy(e).toFixed(2)}isPnLWithinLimits(o,i){let a=!L(o.stopOnLoss).eq(0)&&L(i).negated().gte(o.stopOnLoss),t=!L(o.stopOnProfit).eq(0)&&i.gte(o.stopOnProfit);return!a&&!t}updateHistoryWithBet(o){let i=this.gameData?.historyController;if(i&&o)i.addNewBet(o)}}d([O()],No.prototype,"manualOrAuto",void 0),d([O()],No.prototype,"hasPendingBet",void 0),d([O()],No.prototype,"autobetInProgress",void 0),d([O()],No.prototype,"autobetStopping",void 0);var Qn=G`
|
|
6446
6458
|
origami-dice-content-bottom[slot="content-bottom"] {
|
|
6447
6459
|
display: grid;
|
|
6448
6460
|
grid-template-columns: 1fr 1fr 1fr;
|
|
6449
6461
|
gap: 8px;
|
|
6450
6462
|
}
|
|
6451
|
-
`;class Va{static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}async startBet(o){let{amount:i,direction:a,selectedValue:t}=o,r=Va.getRandomValueInRange(0,1e4),e=0;if(r>t)if(a===zo.ABOVE)e=L(go.getMultiplier(t,a)).toNumber();else e=0;else if(a===zo.BELOW)e=L(go.getMultiplier(t,a)).toNumber();else e=0;let n=L(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"dice",currency:"USD",amount:i,payout:n,afterBalance:"1000",maxPayoutReached:!1,multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{DICE:{direction:a,selectedValue:t}},type:"START_BET",actionIndex:0,originalActionId:null,betAmount:i,payoutAmount:"0",betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()},{id:crypto.randomUUID(),data:{DICE:{result:[r]}},type:"END_BET",actionIndex:1,originalActionId:null,betAmount:"0",payoutAmount:n,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]};return await bo(250),{success:!0,data:s}}}class $a extends No{static styles=[...No.styles,
|
|
6463
|
+
`;class Va{static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}async startBet(o){let{amount:i,direction:a,selectedValue:t}=o,r=Va.getRandomValueInRange(0,1e4),e=0;if(r>t)if(a===zo.ABOVE)e=L(go.getMultiplier(t,a)).toNumber();else e=0;else if(a===zo.BELOW)e=L(go.getMultiplier(t,a)).toNumber();else e=0;let n=L(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"dice",currency:"USD",amount:i,payout:n,afterBalance:"1000",maxPayoutReached:!1,multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{DICE:{direction:a,selectedValue:t}},type:"START_BET",actionIndex:0,originalActionId:null,betAmount:i,payoutAmount:"0",betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()},{id:crypto.randomUUID(),data:{DICE:{result:[r]}},type:"END_BET",actionIndex:1,originalActionId:null,betAmount:"0",payoutAmount:n,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]};return await bo(250),{success:!0,data:s}}}class $a extends No{static styles=[...No.styles,Qn];get isToggleDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get areInputsDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}firstUpdated(){this.gameData?.soundController?.preload("https://assets.betorigami.com/sounds/dice/roll.mp3"),this.gameData?.soundController?.preload("win")}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._diceManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._diceAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")this.dicePlay();else{let i=this._diceAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};diceRollOverToggle=()=>{this.diceDirection=this.diceDirection===zo.ABOVE?zo.BELOW:zo.ABOVE,this.selectedValue=go.getSelectedValueFromRollOver(this.selectedValue)};constructor(){super();this.diceDirection=zo.ABOVE;this.selectedValue=5000;this.isManualPlaying=!1;this.showDice=!1;this.isWin=!0;this.resultValue=null;this.history=[];new Do(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{repeat:!0,repeatInterval:200,disabled:this.isSpacebarDisabled}},{key:"q",callback:this.diceRollOverToggle.bind(this),options:{disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.decreaseSlider.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"e",callback:this.increaseSlider.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}}])}decreaseSlider(){let o=Math.max(5,this.selectedValue-100);if(o!==this.selectedValue)this.selectedValue=o,this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick()}increaseSlider(){let o=Math.min(9995,this.selectedValue+100);if(o!==this.selectedValue)this.selectedValue=o,this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick()}get diceApi(){return this.isDemoMode?new Va:new go(this.gameData.authToken,this.gameData.baseUrl??"")}async dicePlay(){this.isManualPlaying=!0,this.showDice=!1,this.gameData?.soundController?.play("bet").catch((o)=>console.error(o));try{let o=await this.handleBetExecution(this.gameData.amount);if(!o.success)console.error(o.error)}catch(o){console.error("Error in dicePlay:",o)}finally{this.isManualPlaying=!1}}async handleBetExecution(o){if(!this.gameData.currency)throw new Error(V("alerts.gameError",this.gameData?.language||"en"));let i={amount:o,currency:this.gameData.currency,direction:this.diceDirection,selectedValue:this.selectedValue},a=await this.diceApi.startBet(i);if(a.success){if(!this.gameData.instantBetEnabled)this.gameData.soundController?.play("dice-roll").catch((l)=>{console.error("Failed to play sound:",l)});let t=this.isDemoMode?L(this.gameData.balance).minus(a.data.amount).plus(a.data.payout):L(a.data.afterBalance);this.gameData.updateBalance(t),this.showDice=!0;let{betActions:r}=a.data,e=r[r.length-1];if(!e)throw new Error("No action data received");let{result:n}=e.data.DICE,s=n[0];if(this.resultValue=s,!this.gameData.instantBetEnabled)this.gameData?.hapticController?.trigger([10,20,30,40,30,20,10]);if(this.isWin=this.diceDirection===zo.ABOVE?s>this.selectedValue:s<this.selectedValue,this.isWin)setTimeout(()=>{this.gameData.soundController?.play("win").catch((l)=>{console.error("Failed to play sound:",l)})},300);this.addToHistory(s/100,this.isWin,a.data.id??""),this.updateHistoryWithBet(a.data)}return a}addToHistory(o,i,a){this.history=[...this.history,{multiplier:o,won:i,id:a}]}async executeAutobet(o,i){try{let a=await this.handleBetExecution(i);if(!a.success)return{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||V("alerts.gameError",this.gameData?.language||"en")};let t=a.data;this.updateHistoryWithBet(t);let r=L(t.payout).minus(t.amount),e=vi(Number(t.multiplier)),n=this.isWin;return await this.ensureMinimumDisplayTime(n,300,300),await bo(this.getAutobetDelay()),{pnl:r,gameOutcome:e,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:V("alerts.gameError",this.gameData?.language||"en")}}}sliderInputChange=(o)=>{this.selectedValue=o.detail.value*100};diceMultiplierChange=(o)=>{let i=+o.detail.multiplier;if(!Number.isNaN(i)&&i>0&&go.isValidMultiplier(o.detail.multiplier))this.selectedValue=go.getSelectedValueFromMultiplier(i,this.diceDirection)};diceWinChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&go.isValidWinChance(o.detail.winChance))this.selectedValue=go.getSelectedValueFromWinChance(i,this.diceDirection)};render(){let o=L(go.getMultiplier(this.selectedValue,this.diceDirection)).multipliedBy(this.gameData.amount).minus(this.gameData.amount).toFixed(4),i=+go.getMultiplier(this.selectedValue,this.diceDirection),a=i<1.0102||Number.isNaN(i)||i>9900,t=this.gameData.mainWidth>=768;return $`
|
|
6452
6464
|
<origami-game-layout footer-position="below" .gameType=${"DICE"}>
|
|
6453
6465
|
<origami-game-sidebar
|
|
6454
6466
|
data-is-desktop=${t}
|
|
@@ -6584,7 +6596,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6584
6596
|
></origami-balance-input>
|
|
6585
6597
|
|
|
6586
6598
|
<origami-button
|
|
6587
|
-
class=${
|
|
6599
|
+
class=${ao({"hide-on-desktop":!0,"grid-full-width":!0})}
|
|
6588
6600
|
variant="primary"
|
|
6589
6601
|
?fullWidth=${!0}
|
|
6590
6602
|
@button-click=${()=>{this.emit("keno-manual-play")}}
|
|
@@ -6660,7 +6672,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6660
6672
|
</div>
|
|
6661
6673
|
|
|
6662
6674
|
<origami-button
|
|
6663
|
-
class=${
|
|
6675
|
+
class=${ao({"grid-full-width":!0,"hide-on-mobile":!0})}
|
|
6664
6676
|
variant="primary"
|
|
6665
6677
|
?fullWidth=${!0}
|
|
6666
6678
|
@button-click=${()=>{this.emit("keno-manual-play")}}
|
|
@@ -6671,7 +6683,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6671
6683
|
${V("common.placeBet",o)}
|
|
6672
6684
|
</origami-button>
|
|
6673
6685
|
</div>
|
|
6674
|
-
`}}d([Z({type:Boolean})],mr.prototype,"inputsDisabled",void 0),d([Z({type:String})],mr.prototype,"risk",void 0),d([Z({type:Boolean})],mr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],mr.prototype,"disableBet",void 0),d([Z({type:Boolean})],mr.prototype,"autoselectRunning",void 0),d([Z({type:Number})],mr.prototype,"selectedTilesCount",void 0),d([
|
|
6686
|
+
`}}d([Z({type:Boolean})],mr.prototype,"inputsDisabled",void 0),d([Z({type:String})],mr.prototype,"risk",void 0),d([Z({type:Boolean})],mr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],mr.prototype,"disableBet",void 0),d([Z({type:Boolean})],mr.prototype,"autoselectRunning",void 0),d([Z({type:Number})],mr.prototype,"selectedTilesCount",void 0),d([ro({context:D,subscribe:!0})],mr.prototype,"gameData",void 0),d([O()],mr.prototype,"isBetAmountValid",void 0),mr=d([X("origami-keno-manual")],mr);class kr extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.disableBet=!1;this.autobetInProgress=!1;this.autoselectRunning=!1;this.selectedTilesCount=0;this.isDesktop=!1}static styles=[B,Ya];render(){let o=this.gameData?.language||"en";return $`
|
|
6675
6687
|
<origami-generic-autobet
|
|
6676
6688
|
?inputsDisabled=${this.inputsDisabled||this.autoselectRunning}
|
|
6677
6689
|
?autobetStopping=${this.autobetStopping}
|
|
@@ -6741,7 +6753,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6741
6753
|
</div>
|
|
6742
6754
|
</div>
|
|
6743
6755
|
</origami-generic-autobet>
|
|
6744
|
-
`}}d([Z({type:Boolean})],kr.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],kr.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],kr.prototype,"disableBet",void 0),d([Z({type:Boolean})],kr.prototype,"autobetInProgress",void 0),d([Z({type:Boolean})],kr.prototype,"autoselectRunning",void 0),d([Z({type:Number})],kr.prototype,"selectedTilesCount",void 0),d([Z({type:Boolean})],kr.prototype,"isDesktop",void 0),d([
|
|
6756
|
+
`}}d([Z({type:Boolean})],kr.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],kr.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],kr.prototype,"disableBet",void 0),d([Z({type:Boolean})],kr.prototype,"autobetInProgress",void 0),d([Z({type:Boolean})],kr.prototype,"autoselectRunning",void 0),d([Z({type:Number})],kr.prototype,"selectedTilesCount",void 0),d([Z({type:Boolean})],kr.prototype,"isDesktop",void 0),d([ro({context:D,subscribe:!0})],kr.prototype,"gameData",void 0),kr=d([X("origami-keno-auto")],kr);var Fn=G`
|
|
6745
6757
|
:host {
|
|
6746
6758
|
display: flex;
|
|
6747
6759
|
flex-direction: column;
|
|
@@ -6897,7 +6909,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
6897
6909
|
background: #464646;
|
|
6898
6910
|
}
|
|
6899
6911
|
}
|
|
6900
|
-
`;var
|
|
6912
|
+
`;var gl=[{tiles:1,payout:{[io.CLASSIC]:[0,3.96],[io.LOW_RISK]:[0.7,1.85],[io.MEDIUM_RISK]:[0.4,2.75],[io.HIGH_RISK]:[0,3.96]}},{tiles:2,payout:{[io.CLASSIC]:[0,1.9,4.5],[io.LOW_RISK]:[0,2,3.8],[io.MEDIUM_RISK]:[0,1.8,5.1],[io.HIGH_RISK]:[0,0,17.1]}},{tiles:3,payout:{[io.CLASSIC]:[0,1,3.1,10.4],[io.LOW_RISK]:[0,1.1,1.38,26],[io.MEDIUM_RISK]:[0,0,2.8,50],[io.HIGH_RISK]:[0,0,0,81.5]}},{tiles:4,payout:{[io.CLASSIC]:[0,0.8,1.8,5,22.5],[io.LOW_RISK]:[0,0,2.2,7.9,90],[io.MEDIUM_RISK]:[0,0,1.7,10,100],[io.HIGH_RISK]:[0,0,0,10,259]}},{tiles:5,payout:{[io.CLASSIC]:[0,0.25,1.4,4.1,16.5,36],[io.LOW_RISK]:[0,0,1.5,4.2,13,300],[io.MEDIUM_RISK]:[0,0,1.4,4,14,390],[io.HIGH_RISK]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{[io.CLASSIC]:[0,0,1,3.68,7,16.5,40],[io.LOW_RISK]:[0,0,1.1,2,6.2,100,700],[io.MEDIUM_RISK]:[0,0,0,3,9,180,710],[io.HIGH_RISK]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{[io.CLASSIC]:[0,0,0.47,3,4.5,14,31,60],[io.LOW_RISK]:[0,0,1.1,1.6,3.5,15,225,700],[io.MEDIUM_RISK]:[0,0,0,2,7,30,400,800],[io.HIGH_RISK]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{[io.CLASSIC]:[0,0,0,2.2,4,13,22,55,70],[io.LOW_RISK]:[0,0,1.1,1.5,2,5.5,39,100,800],[io.MEDIUM_RISK]:[0,0,0,2,4,11,67,400,900],[io.HIGH_RISK]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{[io.CLASSIC]:[0,0,0,1.55,3,8,15,44,60,85],[io.LOW_RISK]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],[io.MEDIUM_RISK]:[0,0,0,2,2.5,5,15,100,500,1000],[io.HIGH_RISK]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{[io.CLASSIC]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],[io.LOW_RISK]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],[io.MEDIUM_RISK]:[0,0,0,1.6,2,4,7,26,100,500,1000],[io.HIGH_RISK]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}];class xr extends T{constructor(){super(...arguments);this.isDesktop=!1;this.selectedTiles=[];this.risk=io.CLASSIC;this.betAmount="0";this.hitCount=0;this.multipliersForSelectedTiles=0;this.resultTiles=[];this.hoverItemIndex=-1}static styles=[B,Fn];updated(o){if(o.has("resultTiles")&&this.resultTiles.length>0)this.scrollToHighlightedGem()}scrollToHighlightedGem(){requestAnimationFrame(()=>{let o=this.shadowRoot?.querySelector('.gem-container .multiply-button[match-hit-count="true"]');if(o)o.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})})}formatMultiplier(o){return`${o.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}X`}handleMouseOver(o,i){if(!this.isDesktop)return;if(i.target)this.hoverItemIndex=o}handleMouseLeave(){if(!this.isDesktop)return;this.hoverItemIndex=-1}render(){let o=this.gameData?.language||"en",i=this.multipliersForSelectedTiles,r=[null,...gl[i-1]?.payout?.[this.risk]??[]],e=Array.from({length:i+1},(h,p)=>p),n=r[this.hoverItemIndex+1]??0,s=this.hoverItemIndex>=0&&this.hoverItemIndex<=this.multipliersForSelectedTiles?Za.getChance({correctPicks:this.hoverItemIndex,picked:this.multipliersForSelectedTiles}).times(100):L(0),l=n*+this.betAmount;if(i===0)return $`
|
|
6901
6913
|
<div class="container" style=${Io({["--button-count"]:"1"})}>
|
|
6902
6914
|
${this.isDesktop&&this.hoverItemIndex>-1?$`<div class="multiplier-info">
|
|
6903
6915
|
<div class="info-item">
|
|
@@ -7014,7 +7026,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7014
7026
|
`)}
|
|
7015
7027
|
</div>
|
|
7016
7028
|
</div>
|
|
7017
|
-
`}}d([Z({type:Boolean,attribute:"data-is-desktop"})],xr.prototype,"isDesktop",void 0),d([Z({type:Array})],xr.prototype,"selectedTiles",void 0),d([Z({type:String})],xr.prototype,"risk",void 0),d([Z({type:String})],xr.prototype,"betAmount",void 0),d([Z({type:Number})],xr.prototype,"hitCount",void 0),d([Z({type:Number})],xr.prototype,"multipliersForSelectedTiles",void 0),d([Z({type:Array})],xr.prototype,"resultTiles",void 0),d([O()],xr.prototype,"hoverItemIndex",void 0),d([
|
|
7029
|
+
`}}d([Z({type:Boolean,attribute:"data-is-desktop"})],xr.prototype,"isDesktop",void 0),d([Z({type:Array})],xr.prototype,"selectedTiles",void 0),d([Z({type:String})],xr.prototype,"risk",void 0),d([Z({type:String})],xr.prototype,"betAmount",void 0),d([Z({type:Number})],xr.prototype,"hitCount",void 0),d([Z({type:Number})],xr.prototype,"multipliersForSelectedTiles",void 0),d([Z({type:Array})],xr.prototype,"resultTiles",void 0),d([O()],xr.prototype,"hoverItemIndex",void 0),d([ro({context:D,subscribe:!0})],xr.prototype,"gameData",void 0),xr=d([X("origami-keno-content-bottom")],xr);var Cn=G`
|
|
7018
7030
|
:host {
|
|
7019
7031
|
height: 100%;
|
|
7020
7032
|
|
|
@@ -7062,9 +7074,9 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7062
7074
|
}
|
|
7063
7075
|
}
|
|
7064
7076
|
|
|
7065
|
-
`;class zr extends T{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.isPlaying=!1;this.gameOver=!1;this.multipliersForSelectedTiles=0;this.payout=null;this.gameWinPopupShowing=!1;this.multiplier=0;this.risk=io.CLASSIC;this.betAmount="0";this.autoselectRunning=!1;this.isDesktop=!1}static styles=[B,
|
|
7077
|
+
`;class zr extends T{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.isPlaying=!1;this.gameOver=!1;this.multipliersForSelectedTiles=0;this.payout=null;this.gameWinPopupShowing=!1;this.multiplier=0;this.risk=io.CLASSIC;this.betAmount="0";this.autoselectRunning=!1;this.isDesktop=!1}static styles=[B,Cn];get hitCount(){return this.selectedTiles.filter((o)=>this.resultTiles.includes(o)).length}render(){return $`
|
|
7066
7078
|
<div
|
|
7067
|
-
class=${
|
|
7079
|
+
class=${ao({container:!0})}
|
|
7068
7080
|
>
|
|
7069
7081
|
<div class="grid-wrapper">
|
|
7070
7082
|
<origami-keno-grid
|
|
@@ -7101,7 +7113,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7101
7113
|
.multipliersForSelectedTiles=${this.multipliersForSelectedTiles}
|
|
7102
7114
|
></origami-keno-content-bottom>
|
|
7103
7115
|
</div>
|
|
7104
|
-
`}}d([Z({type:Array})],zr.prototype,"selectedTiles",void 0),d([Z({type:Array})],zr.prototype,"resultTiles",void 0),d([Z({type:Boolean})],zr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],zr.prototype,"gameOver",void 0),d([Z({type:Number})],zr.prototype,"multipliersForSelectedTiles",void 0),d([Z({type:Object})],zr.prototype,"payout",void 0),d([Z({type:Boolean})],zr.prototype,"gameWinPopupShowing",void 0),d([Z({type:Number})],zr.prototype,"multiplier",void 0),d([Z({type:String})],zr.prototype,"risk",void 0),d([Z({type:String})],zr.prototype,"betAmount",void 0),d([Z({type:String})],zr.prototype,"betId",void 0),d([Z({type:Boolean})],zr.prototype,"autoselectRunning",void 0),d([Z({type:Boolean})],zr.prototype,"isDesktop",void 0),zr=d([X("origami-keno-content")],zr);var Qa=10,
|
|
7116
|
+
`}}d([Z({type:Array})],zr.prototype,"selectedTiles",void 0),d([Z({type:Array})],zr.prototype,"resultTiles",void 0),d([Z({type:Boolean})],zr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],zr.prototype,"gameOver",void 0),d([Z({type:Number})],zr.prototype,"multipliersForSelectedTiles",void 0),d([Z({type:Object})],zr.prototype,"payout",void 0),d([Z({type:Boolean})],zr.prototype,"gameWinPopupShowing",void 0),d([Z({type:Number})],zr.prototype,"multiplier",void 0),d([Z({type:String})],zr.prototype,"risk",void 0),d([Z({type:String})],zr.prototype,"betAmount",void 0),d([Z({type:String})],zr.prototype,"betId",void 0),d([Z({type:Boolean})],zr.prototype,"autoselectRunning",void 0),d([Z({type:Boolean})],zr.prototype,"isDesktop",void 0),zr=d([X("origami-keno-content")],zr);var Qa=10,Pn=40;class yr{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/keno"}async startBet(o){try{let a=await(await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}}var pl={[io.LOW_RISK]:10,[io.MEDIUM_RISK]:8,[io.CLASSIC]:8,[io.HIGH_RISK]:5},bl={[io.LOW_RISK]:{min:1.2,max:2.5},[io.MEDIUM_RISK]:{min:1.5,max:5},[io.HIGH_RISK]:{min:2,max:10},[io.CLASSIC]:{min:2,max:10}};class ia{static generateRandomTiles(o,i=[]){let a=Array.from({length:Pn},(t,r)=>r+1).filter((t)=>!i.includes(t));return[...a].sort(()=>0.5-Math.random()).slice(0,Math.min(o,a.length))}static calculateMultiplier(o,i,a){let t=o.filter((s)=>i.includes(s)).length,{min:r,max:e}=bl[a],n=t===0?0:r+t/o.length*(e-r);return Number.parseFloat(n.toFixed(2))}startBet=async(o)=>{let{amount:i,riskLevel:a,selectedNumbers:t}=o,r=ia.generateRandomTiles(pl[a]),e=ia.calculateMultiplier(t,r,a),n=L(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"keno",currency:"USD",amount:i,payout:n,afterBalance:"1000",maxPayoutReached:!1,multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{KENO:{riskLevel:a,usdAmount:100,selectedNumbers:t}},type:"START_BET",actionIndex:0,originalActionId:null,betAmount:i,payoutAmount:"0",betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()},{id:crypto.randomUUID(),data:{KENO:{result:r}},type:"END_BET",actionIndex:1,originalActionId:null,betAmount:"0",payoutAmount:n,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]};return await bo(250),{success:!0,data:s}}}class Fa extends No{getDisplayMultiplier(o,i,a){return L(o).isZero()?Za.calculateMultiplier(this.kenoRisk,this.selectedTiles,a).toNumber():i}get isToggleDisabled(){return this.autobetInProgress||this.isManualPlaying||this.autoselectRunning}get areInputsDisabled(){return this.autobetInProgress||this.isManualPlaying||this.autoselectRunning}get kenoApi(){return this.isDemoMode?new ia:new yr(this.gameData.authToken,this.gameData.baseUrl)}async kenoPlay(){if(this.gameWinPopupShowing=!1,this.selectedTiles.length===0){alert(V("games.keno.selectAtLeastOneTile",this.gameData?.language||"en"));return}this.gameData?.soundController?.play("bet").catch((o)=>console.error(o)),this.isManualPlaying=!0,this.resultTiles=[],this.gameOver=!1;try{let o=await this.handleBetExecution(this.gameData?.amount??"0",this.getDelay(150));if(!o.success){console.error(o.error);return}this.betId=o.data.id}catch(o){console.error("Error in kenoPlay:",o)}finally{this.isManualPlaying=!1,this.gameOver=!0}}async handleBetExecution(o,i){if(!this.gameData?.currency)throw new Error("Currency is not set");let a={amount:o,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(t.success){let{betActions:r}=t.data,e=r[r.length-1]?.data.KENO;if(!e)throw new Error("No keno data found");if(this.multiplier=this.getDisplayMultiplier(this.gameData?.amount??"0",Number(t.data.multiplier),e.result),await this.executeInstantOrAnimated(async()=>{if(e.result.some((l)=>this.selectedTiles.includes(l)))this.gameData?.soundController?.play("keno-gem").catch((l)=>console.error(l));else this.gameData?.soundController?.play("secondary").catch((l)=>console.error(l));this.resultTiles=[...e.result]},async()=>{for(let s of e.result){if(this.selectedTiles.includes(s))this.gameData?.soundController?.play("keno-gem").catch((l)=>console.error(l));else this.gameData?.soundController?.play("secondary").catch((l)=>console.error(l));this.resultTiles=[...this.resultTiles,s],await bo(i)}}),this.gameWinPopupShowing=this.multiplier>0,this.gameWinPopupShowing)this.gameData?.soundController?.play("win").catch((s)=>console.error(s));this.payout=L(t.data.payout),this.addToHistory(L(t.data.multiplier).toNumber(),this.gameWinPopupShowing,t.data.id),this.updateHistoryWithBet(t.data);let n=this.isDemoMode?L(this.gameData.balance).minus(t.data.amount).plus(t.data.payout):L(t.data.afterBalance);this.gameData.updateBalance(n)}return t}addToHistory(o,i,a){let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t.slice(-5)}async executeAutobet(o,i){try{if(!this.gameData?.currency)throw new Error("Currency is not set");if(this.resultTiles=[],this.gameOver=!1,this.gameWinPopupShowing=!1,this.gameData?.instantBetEnabled)await this.forceUIUpdate();if(this.selectedTiles.length===0)return{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:V("games.keno.selectTileToAutobet",this.gameData?.language||"en")};let a={amount:i,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(!t.success)return{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:t.error||V("alerts.errorProcessingBet",this.gameData?.language||"en")};let r=t.data,e=L(r.payout).minus(r.amount),n=vi(Number(r.multiplier)),s=r.betActions,l=s[s.length-1]?.data.KENO;if(!l)throw new Error("No keno data found");let{result:h}=l;if(this.multiplier=this.getDisplayMultiplier(i,Number(r.multiplier),h),await this.executeInstantOrAnimated(async()=>{if(h.some((f)=>this.selectedTiles.includes(f)))this.gameData?.soundController?.play("keno-gem").catch((f)=>console.error(f));else this.gameData?.soundController?.play("secondary").catch((f)=>console.error(f));this.resultTiles=[...h]},async()=>{for(let H of h){if(this.selectedTiles.includes(H))this.gameData?.soundController?.play("keno-gem").catch((f)=>console.error(f));else this.gameData?.soundController?.play("secondary").catch((f)=>console.error(f));this.resultTiles=[...this.resultTiles,H],await bo(this.getDelay(150))}}),this.gameWinPopupShowing=this.multiplier>0,this.gameWinPopupShowing)this.gameData?.soundController?.play("win").catch((H)=>console.error(H));this.payout=L(r.payout),this.addToHistory(Number(r.multiplier),this.gameWinPopupShowing,r.id),this.updateHistoryWithBet(r),await this.ensureMinimumDisplayTime(this.gameWinPopupShowing,300,300),await bo(this.getAutobetDelay()),this.gameWinPopupShowing=!1;let p=this.isDemoMode?L(this.gameData.balance).minus(t.data.amount).plus(t.data.payout):L(t.data.afterBalance);return this.gameData.updateBalance(p),{pnl:e,gameOutcome:n,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:V("alerts.gameError",this.gameData?.language||"en")}}finally{this.gameOver=!0}}handleTileClick=(o)=>{if(this.gameOver)this.newGame();if(this.autoselectRunning)return;if(this.gameData?.soundController?.play("click").catch((a)=>console.error(a)),this.selectedTiles.includes(o.detail.tile))this.selectedTiles=this.selectedTiles.filter((a)=>a!==o.detail.tile);else if(this.selectedTiles.length<Qa)this.selectedTiles=[...this.selectedTiles,o.detail.tile]};handleRiskChange=(o)=>{this.kenoRisk=o.detail.value};autoPick=async()=>{if(this.isManualPlaying||this.autoselectRunning)return;if(this.autoselectRunning=!0,this.hadTilesBeforeAutopick=this.selectedTiles.length>0,this.resultTiles=[],this.gameWinPopupShowing=!1,this.selectedTiles.length>=Qa)this.selectedTiles=[];let o=Qa-this.selectedTiles.length;if(o<=0)return;let a=Array.from({length:40},(e,n)=>n+1).filter((e)=>!this.selectedTiles.includes(e));if(a.length===0)return;let r=[...a].sort(()=>0.5-Math.random()).slice(0,o);for(let e of r)this.gameData?.soundController?.play("click").catch((n)=>console.error(n)),this.gameData?.hapticController?.lightClick(),this.selectedTiles=[...this.selectedTiles,e],await bo(150);this.autoselectRunning=!1,this.hadTilesBeforeAutopick=!1};clearTable=()=>{if(this.isManualPlaying||this.autoselectRunning)return;this.gameData?.soundController?.play("keno-clear").catch((o)=>console.error(o)),this.gameWinPopupShowing=!1,this.selectedTiles=[],this.resultTiles=[],this.payout=null};newGame=()=>{this.gameWinPopupShowing=!1,this.resultTiles=[],this.payout=null};render(){let o=this.autoselectRunning?10:this.selectedTiles.length,i=this.selectedTiles.length>0||this.autoselectRunning,a=this.gameData?.mainWidth>=768;return $`
|
|
7105
7117
|
<origami-game-layout footer-position="below" .gameType=${"KENO"}>
|
|
7106
7118
|
<origami-game-sidebar
|
|
7107
7119
|
data-is-desktop=${a}
|
|
@@ -7173,7 +7185,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7173
7185
|
></origami-keno-content>
|
|
7174
7186
|
${_}
|
|
7175
7187
|
</origami-game-layout>
|
|
7176
|
-
`}getButton(o){let i;if(this.manualOrAuto==="Manual")i=this._kenoManualEl?.shadowRoot?.querySelector(`origami-button[hotkey="${o}"]`);else if(o===" ")i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");else i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.querySelector(`origami-button[hotkey="${o}"]`);return i}isButtonDisabled(o){if(!this.gameData?.hotkeysOpenEnabled)return!0;return this.getButton(o)?.disabled??!0}handleSpacebar=()=>{if(this.isButtonDisabled(" "))return;if(this.manualOrAuto==="Manual")this.kenoPlay();else this.getButton(" ")?.click()};handleAutoPick=()=>{if(this.isButtonDisabled("Q"))return;this.autoPick()};handleClearTable=()=>{if(this.isButtonDisabled("W"))return;this.clearTable()};constructor(){super();this.isManualPlaying=!1;this.history=[];this.selectedTiles=[];this.resultTiles=[];this.gameWinPopupShowing=!1;this.gameOver=!1;this.payout=null;this.kenoRisk=io.CLASSIC;this.autoselectRunning=!1;this.multiplier=0;this.hadTilesBeforeAutopick=!1;this.showResetAnimation=!0;new Do(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:()=>this.isButtonDisabled(" ")}},{key:"q",callback:this.handleAutoPick.bind(this),options:{disabled:()=>this.isButtonDisabled("Q")}},{key:"w",callback:this.handleClearTable.bind(this),options:{disabled:()=>this.isButtonDisabled("W")}}])}async firstUpdated(){super.firstUpdated(),requestAnimationFrame(()=>{setTimeout(()=>{this.showResetAnimation=!1},350)})}}d([O()],Fa.prototype,"isManualPlaying",void 0),d([O()],Fa.prototype,"history",void 0),d([O()],Fa.prototype,"selectedTiles",void 0),d([O()],Fa.prototype,"resultTiles",void 0),d([Z({type:Boolean})],Fa.prototype,"gameWinPopupShowing",void 0),d([O()],Fa.prototype,"gameOver",void 0),d([O()],Fa.prototype,"payout",void 0),d([O()],Fa.prototype,"kenoRisk",void 0),d([O()],Fa.prototype,"autoselectRunning",void 0),d([O()],Fa.prototype,"multiplier",void 0),d([O()],Fa.prototype,"hadTilesBeforeAutopick",void 0),d([O()],Fa.prototype,"betId",void 0),d([O()],Fa.prototype,"showResetAnimation",void 0),d([fo("origami-keno-manual")],Fa.prototype,"_kenoManualEl",void 0),d([fo("origami-keno-auto")],Fa.prototype,"_kenoAutoEl",void 0),Fa=d([X("origami-keno-game")],Fa);var
|
|
7188
|
+
`}getButton(o){let i;if(this.manualOrAuto==="Manual")i=this._kenoManualEl?.shadowRoot?.querySelector(`origami-button[hotkey="${o}"]`);else if(o===" ")i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");else i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.querySelector(`origami-button[hotkey="${o}"]`);return i}isButtonDisabled(o){if(!this.gameData?.hotkeysOpenEnabled)return!0;return this.getButton(o)?.disabled??!0}handleSpacebar=()=>{if(this.isButtonDisabled(" "))return;if(this.manualOrAuto==="Manual")this.kenoPlay();else this.getButton(" ")?.click()};handleAutoPick=()=>{if(this.isButtonDisabled("Q"))return;this.autoPick()};handleClearTable=()=>{if(this.isButtonDisabled("W"))return;this.clearTable()};constructor(){super();this.isManualPlaying=!1;this.history=[];this.selectedTiles=[];this.resultTiles=[];this.gameWinPopupShowing=!1;this.gameOver=!1;this.payout=null;this.kenoRisk=io.CLASSIC;this.autoselectRunning=!1;this.multiplier=0;this.hadTilesBeforeAutopick=!1;this.showResetAnimation=!0;new Do(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:()=>this.isButtonDisabled(" ")}},{key:"q",callback:this.handleAutoPick.bind(this),options:{disabled:()=>this.isButtonDisabled("Q")}},{key:"w",callback:this.handleClearTable.bind(this),options:{disabled:()=>this.isButtonDisabled("W")}}])}async firstUpdated(){super.firstUpdated(),requestAnimationFrame(()=>{setTimeout(()=>{this.showResetAnimation=!1},350)})}}d([O()],Fa.prototype,"isManualPlaying",void 0),d([O()],Fa.prototype,"history",void 0),d([O()],Fa.prototype,"selectedTiles",void 0),d([O()],Fa.prototype,"resultTiles",void 0),d([Z({type:Boolean})],Fa.prototype,"gameWinPopupShowing",void 0),d([O()],Fa.prototype,"gameOver",void 0),d([O()],Fa.prototype,"payout",void 0),d([O()],Fa.prototype,"kenoRisk",void 0),d([O()],Fa.prototype,"autoselectRunning",void 0),d([O()],Fa.prototype,"multiplier",void 0),d([O()],Fa.prototype,"hadTilesBeforeAutopick",void 0),d([O()],Fa.prototype,"betId",void 0),d([O()],Fa.prototype,"showResetAnimation",void 0),d([fo("origami-keno-manual")],Fa.prototype,"_kenoManualEl",void 0),d([fo("origami-keno-auto")],Fa.prototype,"_kenoAutoEl",void 0),Fa=d([X("origami-keno-game")],Fa);var jn=G`
|
|
7177
7189
|
:host {
|
|
7178
7190
|
display: flex;
|
|
7179
7191
|
flex-direction: column;
|
|
@@ -7194,7 +7206,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7194
7206
|
order: 0;
|
|
7195
7207
|
}
|
|
7196
7208
|
}
|
|
7197
|
-
`;class Hr extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.isPlaying=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isBetAmountValid=!0}static styles=[B,
|
|
7209
|
+
`;class Hr extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.isPlaying=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isBetAmountValid=!0}static styles=[B,jn];render(){let o=this.gameData?.language||"en";return $`
|
|
7198
7210
|
<origami-balance-input></origami-balance-input>
|
|
7199
7211
|
<origami-bet-amount-input
|
|
7200
7212
|
?disabled=${this.inputsDisabled}
|
|
@@ -7221,7 +7233,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7221
7233
|
${V("common.placeBet",o)}
|
|
7222
7234
|
</origami-button>
|
|
7223
7235
|
</div>
|
|
7224
|
-
`}}d([Z({type:Boolean})],Hr.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],Hr.prototype,"isPlaying",void 0),d([Z({type:String})],Hr.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],Hr.prototype,"betDisabled",void 0),d([O()],Hr.prototype,"isBetAmountValid",void 0),d([
|
|
7236
|
+
`}}d([Z({type:Boolean})],Hr.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],Hr.prototype,"isPlaying",void 0),d([Z({type:String})],Hr.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],Hr.prototype,"betDisabled",void 0),d([O()],Hr.prototype,"isBetAmountValid",void 0),d([ro({context:D,subscribe:!0})],Hr.prototype,"gameData",void 0),Hr=d([X("origami-limbo-manual")],Hr);class Zr extends T{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isDesktop=!1}render(){return $`
|
|
7225
7237
|
<origami-generic-autobet
|
|
7226
7238
|
data-is-desktop=${this.isDesktop}
|
|
7227
7239
|
?inputsDisabled=${this.inputsDisabled}
|
|
@@ -7231,7 +7243,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7231
7243
|
?betDisabled=${this.betDisabled}
|
|
7232
7244
|
>
|
|
7233
7245
|
</origami-generic-autobet>
|
|
7234
|
-
`}}d([Z({type:Boolean})],Zr.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],Zr.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],Zr.prototype,"autobetInProgress",void 0),d([Z({type:String})],Zr.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],Zr.prototype,"betDisabled",void 0),d([Z({type:Boolean})],Zr.prototype,"isDesktop",void 0),Zr=d([X("origami-limbo-auto")],Zr);var
|
|
7246
|
+
`}}d([Z({type:Boolean})],Zr.prototype,"inputsDisabled",void 0),d([Z({type:Boolean})],Zr.prototype,"autobetStopping",void 0),d([Z({type:Boolean})],Zr.prototype,"autobetInProgress",void 0),d([Z({type:String})],Zr.prototype,"profitOnWin",void 0),d([Z({type:Boolean})],Zr.prototype,"betDisabled",void 0),d([Z({type:Boolean})],Zr.prototype,"isDesktop",void 0),Zr=d([X("origami-limbo-auto")],Zr);var Ln=G`
|
|
7235
7247
|
:host {
|
|
7236
7248
|
width: 100%;
|
|
7237
7249
|
height: 100%;
|
|
@@ -7272,7 +7284,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7272
7284
|
display: block;
|
|
7273
7285
|
}
|
|
7274
7286
|
}
|
|
7275
|
-
`;class Co{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/limbo"}startBet=async(o)=>{try{let a=await(await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}};static calculateMultiplier(o){if(o<0.000099||o>99.9999)return"0";return L(99).dividedBy(L(o)).toFixed(4)}static calculateWinChance(o){return L(99).dividedBy(L(o)).toFixed(8)}static calculateProfitOnWin(o,i){return L(o).multipliedBy(i).minus(o).toFixed(4)}static isValidMultiplier(o){if(!o||o==="")return!1;return+o>=1.01}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.000099&&i<=99.9999}}var
|
|
7287
|
+
`;class Co{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/limbo"}startBet=async(o)=>{try{let a=await(await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}};static calculateMultiplier(o){if(o<0.000099||o>99.9999)return"0";return L(99).dividedBy(L(o)).toFixed(4)}static calculateWinChance(o){return L(99).dividedBy(L(o)).toFixed(8)}static calculateProfitOnWin(o,i){return L(o).multipliedBy(i).minus(o).toFixed(4)}static isValidMultiplier(o){if(!o||o==="")return!1;return+o>=1.01}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.000099&&i<=99.9999}}var On=G`
|
|
7276
7288
|
:host {
|
|
7277
7289
|
display: flex;
|
|
7278
7290
|
flex-direction: column;
|
|
@@ -7318,7 +7330,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7318
7330
|
width: 16px;
|
|
7319
7331
|
height: 16px;
|
|
7320
7332
|
}
|
|
7321
|
-
`;class Sr extends T{constructor(){super(...arguments);this.targetMultiplier=50;this.disabled=!1;this.winChanceInputFocused=!1;this.multiplierInputFocused=!1}static styles=[B,
|
|
7333
|
+
`;class Sr extends T{constructor(){super(...arguments);this.targetMultiplier=50;this.disabled=!1;this.winChanceInputFocused=!1;this.multiplierInputFocused=!1}static styles=[B,On];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return Co.calculateWinChance(this.targetMultiplier);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return L(this.targetMultiplier).toFixed(2);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleWinChanceBlur(){this.winChanceInputValue=Co.calculateWinChance(this.targetMultiplier)}handleMultiplierBlur(){this.multiplierInputValue=L(this.targetMultiplier).toFixed(2)}targetMultiplierChanged(){requestAnimationFrame(()=>{if(this.isConnected){if(!this.winChanceInputFocused)this._winChanceInputValue=Co.calculateWinChance(this.targetMultiplier);if(!this.multiplierInputFocused)this._multiplierInputValue=L(this.targetMultiplier).toFixed(2)}})}render(){let o=this.gameData?.language||"en",i=!Co.isValidMultiplier(this.multiplierInputValue),a=!Co.isValidWinChance(this.winChanceInputValue),t=i?V("games.limbo.multiplierError",o):"",r=a?V("games.limbo.winChanceError",o):"",e=this.multiplierInputFocused&&i?t:"",n=this.winChanceInputFocused&&a?r:"";return $`
|
|
7322
7334
|
<origami-input
|
|
7323
7335
|
class="stat-input multiplier"
|
|
7324
7336
|
.label=${V("common.targetMultiplier",o)}
|
|
@@ -7359,7 +7371,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7359
7371
|
</div>
|
|
7360
7372
|
`:_}
|
|
7361
7373
|
</origami-input>
|
|
7362
|
-
`}}d([Z({type:Number})],Sr.prototype,"targetMultiplier",void 0),d([Z({type:Boolean,reflect:!0})],Sr.prototype,"disabled",void 0),d([
|
|
7374
|
+
`}}d([Z({type:Number})],Sr.prototype,"targetMultiplier",void 0),d([Z({type:Boolean,reflect:!0})],Sr.prototype,"disabled",void 0),d([ro({context:D,subscribe:!0})],Sr.prototype,"gameData",void 0),d([O()],Sr.prototype,"winChanceInputFocused",void 0),d([O()],Sr.prototype,"multiplierInputFocused",void 0),d([O()],Sr.prototype,"_winChanceInputValue",void 0),d([O()],Sr.prototype,"_multiplierInputValue",void 0),d([mo("targetMultiplier")],Sr.prototype,"targetMultiplierChanged",null),Sr=d([X("origami-limbo-content-bottom")],Sr);class Kr extends T{constructor(){super(...arguments);this.targetMultiplier=50;this.betTargetMultiplier=2;this.history=[];this.resultMultiplier=null;this.isWin=!0;this.betId="";this.isPlaying=!1;this.isDesktop=!1;this.disableSound=!1}static styles=[B,Ln];render(){if(this.isDesktop)return $`
|
|
7363
7375
|
<origami-history-pills
|
|
7364
7376
|
data-is-desktop=${this.isDesktop}
|
|
7365
7377
|
.gameType=${"limbo"}
|
|
@@ -7399,13 +7411,13 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7399
7411
|
?disableSound=${this.disableSound}
|
|
7400
7412
|
></origami-limbo-multiplier>
|
|
7401
7413
|
</div>
|
|
7402
|
-
`}}d([Z({type:Number})],Kr.prototype,"targetMultiplier",void 0),d([Z({type:Number})],Kr.prototype,"betTargetMultiplier",void 0),d([Z({type:Array})],Kr.prototype,"history",void 0),d([Z({type:Number})],Kr.prototype,"resultMultiplier",void 0),d([Z({type:Boolean})],Kr.prototype,"isWin",void 0),d([Z({type:String})],Kr.prototype,"betId",void 0),d([Z({type:Boolean})],Kr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],Kr.prototype,"isDesktop",void 0),d([Z({type:Boolean})],Kr.prototype,"disableSound",void 0),Kr=d([X("origami-limbo-content")],Kr);class Ca{static getRandomMultiplier(){return L(Math.max(1,Math.min(+(1/Math.random()),1e6)).toFixed(2)).toString()}startBet=async(o)=>{let{amount:i,targetMultiplier:a}=o,t=Ca.getRandomMultiplier(),r=a/100,e=L(t).gte(r),n=e?L(i).multipliedBy(r).toString():"0",s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"limbo",currency:"USD",amount:i,payout:n,afterBalance:"1000",maxPayoutReached:!1,multiplier:e?a.toString():"0",tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{LIMBO:{targetMultiplier:a,result:[L(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:0,originalActionId:null,betAmount:i,payoutAmount:"0",betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()},{id:crypto.randomUUID(),data:{LIMBO:{result:[L(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:1,originalActionId:null,betAmount:"0",payoutAmount:n,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]};return await bo(250),{success:!0,data:s}}}var
|
|
7414
|
+
`}}d([Z({type:Number})],Kr.prototype,"targetMultiplier",void 0),d([Z({type:Number})],Kr.prototype,"betTargetMultiplier",void 0),d([Z({type:Array})],Kr.prototype,"history",void 0),d([Z({type:Number})],Kr.prototype,"resultMultiplier",void 0),d([Z({type:Boolean})],Kr.prototype,"isWin",void 0),d([Z({type:String})],Kr.prototype,"betId",void 0),d([Z({type:Boolean})],Kr.prototype,"isPlaying",void 0),d([Z({type:Boolean})],Kr.prototype,"isDesktop",void 0),d([Z({type:Boolean})],Kr.prototype,"disableSound",void 0),Kr=d([X("origami-limbo-content")],Kr);class Ca{static getRandomMultiplier(){return L(Math.max(1,Math.min(+(1/Math.random()),1e6)).toFixed(2)).toString()}startBet=async(o)=>{let{amount:i,targetMultiplier:a}=o,t=Ca.getRandomMultiplier(),r=a/100,e=L(t).gte(r),n=e?L(i).multipliedBy(r).toString():"0",s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"limbo",currency:"USD",amount:i,payout:n,afterBalance:"1000",maxPayoutReached:!1,multiplier:e?a.toString():"0",tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{LIMBO:{targetMultiplier:a,result:[L(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:0,originalActionId:null,betAmount:i,payoutAmount:"0",betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()},{id:crypto.randomUUID(),data:{LIMBO:{result:[L(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:1,originalActionId:null,betAmount:"0",payoutAmount:n,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]};return await bo(250),{success:!0,data:s}}}var _n=G`
|
|
7403
7415
|
origami-limbo-content-bottom[slot="content-bottom"] {
|
|
7404
7416
|
display: grid;
|
|
7405
7417
|
grid-template-columns: 1fr 1fr;
|
|
7406
7418
|
gap: 8px;
|
|
7407
7419
|
}
|
|
7408
|
-
`;var
|
|
7420
|
+
`;var wl=100;class Pa extends No{static styles=[...No.styles,_n];get isToggleDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get areInputsDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get limboApi(){return this.isDemoMode?new Ca:new Co(this.gameData.authToken,this.gameData.baseUrl)}async limboPlay(){this.isManualPlaying=!0,this.gameData?.soundController?.play("bet");try{let o=await this.handleBetExecution(this.gameData?.amount??"0");if(!o.success){console.error(o.error);return}let i=o.data.id;await new Promise((t)=>{let r=(e)=>{if(e.detail.betId===i)this.removeEventListener("limbo-multiplier-animation-end",r),t()};this.addEventListener("limbo-multiplier-animation-end",r)})}catch(o){console.error("Error in limboPlay:",o)}finally{this.isManualPlaying=!1}}async handleBetExecution(o){if(this.resultMultiplier=null,!this.gameData?.currency)throw new Error("Currency is not set");let i={amount:o,currency:this.gameData.currency,targetMultiplier:this.targetMultiplier*wl},a=await this.limboApi.startBet(i);if(a.success){let t=this.isDemoMode?L(this.gameData.balance).minus(a.data.amount).plus(a.data.payout):L(a.data.afterBalance);this.gameData.updateBalance(t);let{betActions:r,id:e}=a.data,n=r[r.length-1];if(!n)throw new Error("No action data received");let{randomMultiplier:s}=n.data.LIMBO;this.resultMultiplier=Number(s),this.betTargetMultiplier=this.targetMultiplier,this.isWin=this.targetMultiplier<=Number(s),this.betId=e,this.updateHistoryWithBet(a.data)}return a}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._limboManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._limboAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")this.limboPlay();else{let i=this._limboAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};constructor(){super();this.targetMultiplier=2;this.resultMultiplier=null;this.isManualPlaying=!1;this.isWin=!1;this.history=[];this.betTargetMultiplier=2;this.betId="";new Do(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{repeat:!0,repeatInterval:200,disabled:this.isSpacebarDisabled}}])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("limbo-multiplier-animation-end",null)}async executeAutobet(o,i){try{let a=await this.handleBetExecution(i);if(!a.success)return{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||V("alerts.errorProcessingBet",this.gameData?.language||"en")};let t=a.data.id;await new Promise((h)=>{let p=(H)=>{if(H.detail.betId===t)this.removeEventListener("limbo-multiplier-animation-end",p),h()};this.addEventListener("limbo-multiplier-animation-end",p)});let e=a.data,n=L(e.payout).minus(e.amount),s=vi(Number(e.multiplier)),l=L(e.multiplier).isGreaterThan(0);return await this.ensureMinimumDisplayTime(l,300,300),await bo(this.getAutobetDelay()),{pnl:n,gameOutcome:s,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:V("alerts.gameError",this.gameData?.language||"en")}}}multiplierChange=(o)=>{let i=+o.detail.multiplier;if(!Number.isNaN(i)&&Co.isValidMultiplier(o.detail.multiplier))this.targetMultiplier=i};calculateProfitOnWin(){return L(this.gameData?.amount??"0").multipliedBy(this.targetMultiplier).minus(this.gameData?.amount??"0").toFixed(4)}winChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&Co.isValidWinChance(o.detail.winChance))this.targetMultiplier=+Co.calculateMultiplier(i)};addToHistory(o,i,a){this.history=[...this.history.filter((t)=>t.id!==a),{multiplier:o,won:i,id:a}]}multiplierAnimationEnd=(o)=>{let{resultMultiplier:i,isWin:a,betId:t}=o.detail;if(a)this.gameData.soundController?.play("win",!1);this.addToHistory(i,a,t),this.dispatchEvent(new CustomEvent("limbo-multiplier-animation-end",{detail:o.detail,bubbles:!0,composed:!0}))};render(){let o=this.calculateProfitOnWin(),i=Co.calculateMultiplier(this.targetMultiplier),a=this.targetMultiplier<1.01||Number.isNaN(this.targetMultiplier),t=this.gameData?.mainWidth>=768;return $`
|
|
7409
7421
|
<origami-game-layout footer-position="below" .gameType=${"LIMBO"}>
|
|
7410
7422
|
<origami-game-sidebar
|
|
7411
7423
|
data-is-desktop=${t}
|
|
@@ -7465,7 +7477,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7465
7477
|
@limbo-multiplier-animation-end=${this.multiplierAnimationEnd}
|
|
7466
7478
|
></origami-limbo-content>
|
|
7467
7479
|
</origami-game-layout>
|
|
7468
|
-
`}}d([O()],Pa.prototype,"targetMultiplier",void 0),d([O()],Pa.prototype,"resultMultiplier",void 0),d([O()],Pa.prototype,"isManualPlaying",void 0),d([O()],Pa.prototype,"isWin",void 0),d([O()],Pa.prototype,"history",void 0),d([O()],Pa.prototype,"betTargetMultiplier",void 0),d([O()],Pa.prototype,"betId",void 0),d([fo("origami-limbo-manual")],Pa.prototype,"_limboManualEl",void 0),d([fo("origami-limbo-auto")],Pa.prototype,"_limboAutoEl",void 0),Pa=d([X("origami-limbo-game")],Pa);class lo{static mockSettings={shouldWin:!0};static activeBet=null;static minePositions=[];static setMockSettings(o){if(lo.mockSettings={...lo.mockSettings,...o},o.minePositions)lo.minePositions=o.minePositions}static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}static generateMinePositions(o){if(lo.mockSettings.minePositions)return lo.mockSettings.minePositions;let i=[];while(i.length<o){let a=lo.getRandomValueInRange(0,oi-1);if(!i.includes(a))i.push(a)}return i}static addAction(o,i,a,t,r,e,n=!1){let s=o.length,l=t==="START_BET"?{minesCount:a,selectedTiles:i,hasCashedOut:!1}:{result:n?lo.minePositions??[]:[]};return[...o,{id:crypto.randomUUID(),data:{MINES:l},type:t,actionIndex:s,originalActionId:null,betAmount:r,payoutAmount:e,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]}static updateBetResult(o){let{prevResult:i=null,amount:a,minesCount:t,selectedTiles:r,isComplete:e=!1,actionType:n="INTERMEDIATE_NON_BET_ACTION"}=o,l=!r.some((v)=>lo.minePositions.includes(v))&&(!e||r.length>0),h=r.filter((v)=>!lo.minePositions.includes(v)).length,p=l?Wo.calculateMinesMultiplier(h,t):L(0),H=l?L(a).multipliedBy(p).toString():"0",f=i?.betActions||[];if(!i)f=lo.addAction([],[],t,"START_BET",a,"0");let y=e?"END_BET":n,z=y==="END_BET";return f=lo.addAction(f,r,t,y,a,H,z),{id:i?.id||crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"mines",currency:"USD",amount:a,payout:H,afterBalance:"1000",maxPayoutReached:!1,multiplier:p.toString(),clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:f}}async startManualBet(o){lo.minePositions=lo.generateMinePositions(o.minesCount);let i=lo.updateBetResult({amount:o.amount,minesCount:o.minesCount,selectedTiles:[]});return lo.activeBet=i,await bo(250),{success:!0,data:i}}async getActiveBet(){if(!lo.activeBet)return{success:!1,error:"No active bet"};return await bo(250),{success:!0,data:lo.activeBet}}async selectTile(o){if(!lo.activeBet)return{success:!1,error:"No active bet"};let i=lo.activeBet.betActions,a=i.find((l)=>l.data.MINES&&("minesCount"in l.data.MINES)),r=[...Wo.deriveSelectedTiles(i),...o.selectedTiles],e=o.selectedTiles.some((l)=>lo.minePositions.includes(l)),n=a?.data.MINES?.minesCount??0,s=lo.updateBetResult({prevResult:lo.activeBet,amount:lo.activeBet.amount,minesCount:n,selectedTiles:r,isComplete:e});if(lo.activeBet=s,e)lo.activeBet=null;return await bo(250),{success:!0,data:s}}async cashout(){if(!lo.activeBet)return{success:!1,error:"No active bet"};let o=lo.activeBet.betActions,i=o.find((e)=>e.data.MINES&&("minesCount"in e.data.MINES)),a=Wo.deriveSelectedTiles(o),t=i?.data.MINES?.minesCount??0,r=lo.updateBetResult({prevResult:lo.activeBet,amount:lo.activeBet.amount,minesCount:t,selectedTiles:a,isComplete:!0,actionType:"END_BET"});return lo.activeBet=null,await bo(250),{success:!0,data:r}}async autobetPlay(o){lo.minePositions=lo.generateMinePositions(o.minesCount??Ji);let i=lo.updateBetResult({amount:o.amount,minesCount:o.minesCount??Ji,selectedTiles:o.selectedTiles,isComplete:!0});return await bo(250),{success:!0,data:i}}}var
|
|
7480
|
+
`}}d([O()],Pa.prototype,"targetMultiplier",void 0),d([O()],Pa.prototype,"resultMultiplier",void 0),d([O()],Pa.prototype,"isManualPlaying",void 0),d([O()],Pa.prototype,"isWin",void 0),d([O()],Pa.prototype,"history",void 0),d([O()],Pa.prototype,"betTargetMultiplier",void 0),d([O()],Pa.prototype,"betId",void 0),d([fo("origami-limbo-manual")],Pa.prototype,"_limboManualEl",void 0),d([fo("origami-limbo-auto")],Pa.prototype,"_limboAutoEl",void 0),Pa=d([X("origami-limbo-game")],Pa);class lo{static mockSettings={shouldWin:!0};static activeBet=null;static minePositions=[];static setMockSettings(o){if(lo.mockSettings={...lo.mockSettings,...o},o.minePositions)lo.minePositions=o.minePositions}static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}static generateMinePositions(o){if(lo.mockSettings.minePositions)return lo.mockSettings.minePositions;let i=[];while(i.length<o){let a=lo.getRandomValueInRange(0,oi-1);if(!i.includes(a))i.push(a)}return i}static addAction(o,i,a,t,r,e,n=!1){let s=o.length,l=t==="START_BET"?{minesCount:a,selectedTiles:i,hasCashedOut:!1}:{result:n?lo.minePositions??[]:[]};return[...o,{id:crypto.randomUUID(),data:{MINES:l},type:t,actionIndex:s,originalActionId:null,betAmount:r,payoutAmount:e,betId:crypto.randomUUID(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),webhookId:crypto.randomUUID()}]}static updateBetResult(o){let{prevResult:i=null,amount:a,minesCount:t,selectedTiles:r,isComplete:e=!1,actionType:n="INTERMEDIATE_NON_BET_ACTION"}=o,l=!r.some((v)=>lo.minePositions.includes(v))&&(!e||r.length>0),h=r.filter((v)=>!lo.minePositions.includes(v)).length,p=l?Wo.calculateMinesMultiplier(h,t):L(0),H=l?L(a).multipliedBy(p).toString():"0",f=i?.betActions||[];if(!i)f=lo.addAction([],[],t,"START_BET",a,"0");let y=e?"END_BET":n,z=y==="END_BET";return f=lo.addAction(f,r,t,y,a,H,z),{id:i?.id||crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"mines",currency:"USD",amount:a,payout:H,afterBalance:"1000",maxPayoutReached:!1,multiplier:p.toString(),clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:f}}async startManualBet(o){lo.minePositions=lo.generateMinePositions(o.minesCount);let i=lo.updateBetResult({amount:o.amount,minesCount:o.minesCount,selectedTiles:[]});return lo.activeBet=i,await bo(250),{success:!0,data:i}}async getActiveBet(){if(!lo.activeBet)return{success:!1,error:"No active bet"};return await bo(250),{success:!0,data:lo.activeBet}}async selectTile(o){if(!lo.activeBet)return{success:!1,error:"No active bet"};let i=lo.activeBet.betActions,a=i.find((l)=>l.data.MINES&&("minesCount"in l.data.MINES)),r=[...Wo.deriveSelectedTiles(i),...o.selectedTiles],e=o.selectedTiles.some((l)=>lo.minePositions.includes(l)),n=a?.data.MINES?.minesCount??0,s=lo.updateBetResult({prevResult:lo.activeBet,amount:lo.activeBet.amount,minesCount:n,selectedTiles:r,isComplete:e});if(lo.activeBet=s,e)lo.activeBet=null;return await bo(250),{success:!0,data:s}}async cashout(){if(!lo.activeBet)return{success:!1,error:"No active bet"};let o=lo.activeBet.betActions,i=o.find((e)=>e.data.MINES&&("minesCount"in e.data.MINES)),a=Wo.deriveSelectedTiles(o),t=i?.data.MINES?.minesCount??0,r=lo.updateBetResult({prevResult:lo.activeBet,amount:lo.activeBet.amount,minesCount:t,selectedTiles:a,isComplete:!0,actionType:"END_BET"});return lo.activeBet=null,await bo(250),{success:!0,data:r}}async autobetPlay(o){lo.minePositions=lo.generateMinePositions(o.minesCount??Ji);let i=lo.updateBetResult({amount:o.amount,minesCount:o.minesCount??Ji,selectedTiles:o.selectedTiles,isComplete:!0});return await bo(250),{success:!0,data:i}}}var Xn=G`
|
|
7469
7481
|
:host {
|
|
7470
7482
|
--game-content-desktop-height: 592.78px;
|
|
7471
7483
|
}
|
|
@@ -7473,7 +7485,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7473
7485
|
:host([data-is-desktop='true']) {
|
|
7474
7486
|
height: var(--game-content-desktop-height);
|
|
7475
7487
|
}
|
|
7476
|
-
`;class Wr extends T{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.showWinPopup=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[B,
|
|
7488
|
+
`;class Wr extends T{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.showWinPopup=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[B,Xn];render(){return $`
|
|
7477
7489
|
<origami-mines-grid
|
|
7478
7490
|
data-is-desktop=${this.isDesktop}
|
|
7479
7491
|
.isDesktop=${this.isDesktop}
|
|
@@ -7485,7 +7497,7 @@ var Tn=Object.create;var{getPrototypeOf:Bn,defineProperty:qr,getOwnPropertyNames
|
|
|
7485
7497
|
?hitBomb=${this.hitBomb}
|
|
7486
7498
|
.loadingTiles=${this.loadingTiles}
|
|
7487
7499
|
></origami-mines-grid>
|
|
7488
|
-
`}}d([Z({type:Boolean})],Wr.prototype,"isAuto",void 0),d([Z({type:Array})],Wr.prototype,"autobetSelectedTiles",void 0),d([Z({type:Boolean})],Wr.prototype,"autobetInProgress",void 0),d([Z({type:Object})],Wr.prototype,"minesState",void 0),d([Z({type:Boolean})],Wr.prototype,"showWinPopup",void 0),d([Z({type:Boolean})],Wr.prototype,"hitBomb",void 0),d([Z({type:Array})],Wr.prototype,"loadingTiles",void 0),d([Z({type:Boolean})],Wr.prototype,"isDesktop",void 0),Wr=d([X("origami-mines-content")],Wr);class
|
|
7500
|
+
`}}d([Z({type:Boolean})],Wr.prototype,"isAuto",void 0),d([Z({type:Array})],Wr.prototype,"autobetSelectedTiles",void 0),d([Z({type:Boolean})],Wr.prototype,"autobetInProgress",void 0),d([Z({type:Object})],Wr.prototype,"minesState",void 0),d([Z({type:Boolean})],Wr.prototype,"showWinPopup",void 0),d([Z({type:Boolean})],Wr.prototype,"hitBomb",void 0),d([Z({type:Array})],Wr.prototype,"loadingTiles",void 0),d([Z({type:Boolean})],Wr.prototype,"isDesktop",void 0),Wr=d([X("origami-mines-content")],Wr);class An{previousValues=[];callback;constructor(o){this.callback=o}check(o){if(o.length!==this.previousValues.length||o.some((a,t)=>a!==this.previousValues[t]))this.callback([...o],[...this.previousValues]),this.previousValues=[...o]}}class ja extends No{_playSound(o){let i={click:"click",bet:"bet",win:"win",bomb:"mines-bomb",gem:"mines-gem"};this.gameData?.soundController?.play(i[o]).catch((a)=>console.error(a))}authTokenWatcher=new An(([o],[i])=>{if(o&&o!==i)this.isCheckingForSession=!0,this.getMinesActiveBet()});get isToggleDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get areInputsDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get isGameActive(){return this.getMinesState?.state==="GAME_IN_PROGRESS"}get minesApi(){return this.isDemoMode?new lo:new Wo(this.gameData.authToken,this.gameData.baseUrl??"")}addToHistory(o,i,a){if(!a)return;let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t}async getMinesActiveBet(){try{let o=await this.minesApi.getActiveBet();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}});return}if(o.data){if(this.gameData?.updateBetAmount(L(o.data.amount)),this.minesData=o.data,this.manualOrAuto!=="Manual")this.manualOrAuto="Manual"}}finally{this.isCheckingForSession=!1}}async firstUpdated(){super.firstUpdated(),await this.getMinesActiveBet()}updated(o){super.updated(o),this.authTokenWatcher.check([this.gameData?.authToken])}get getMinesState(){if(!this.minesData)return null;return Wo.getState(this.minesData)}async executeAutobet(o,i){if(this.minesData=null,this.autobetSelectedTiles.length===0)return{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:V("games.mines.selectTileToAutobet",this.gameData.language||"en")};try{if(!this.gameData?.currency)throw new Error("Currency is not set");let a=await this.minesApi.autobetPlay({amount:i,currency:this.gameData.currency,minesCount:this.minesCount,selectedTiles:this.autobetSelectedTiles});if(!a.success)return{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||V("alerts.errorProcessingBet",this.gameData?.language||"en")};this.minesData=a.data;let t=this.isDemoMode?this.gameData.balance-Number(a.data.amount)+Number(a.data.payout):Number(a.data.afterBalance);this.gameData.updateBalance(L(t));let r=a.data,{multiplier:e,id:n}=r,s=L(e).isGreaterThan(0);if(s)this._playSound("win");this.addToHistory(Number(e),s,n),this.updateHistoryWithBet(r);let l=L(r.payout).minus(r.amount),h=vi(Number(r.multiplier));return await this.waitForAnimationsComplete(s),{pnl:l,gameOutcome:h,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:L(0),gameOutcome:"Draw",hasError:!0,errorMessage:V("alerts.gameError",this.gameData?.language||"en")}}}async toggleAutobet(o){if(this.autobetSelectedTiles.length===0){this.emit("show-alert",{detail:{type:"error",message:V("games.mines.selectTileToAutobet",this.gameData?.language||"en")}});return}if(!this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"warning",message:V("autobet.startAutobet",this.gameData?.language||"en"),autoCloseDelay:5000}});await super.toggleAutobet(o)}minesClickHandler=async(o)=>{if(this._playSound("click"),this.manualOrAuto==="Auto"){if(this.autobetSelectedTiles.includes(o.detail.tile))this.autobetSelectedTiles=this.autobetSelectedTiles.filter((a)=>a!==o.detail.tile);else if(this.autobetSelectedTiles.length<25-this.minesCount)this.autobetSelectedTiles=[...this.autobetSelectedTiles,o.detail.tile];this.minesData=null;return}let i=o.detail.tile;await this.minesNext(i)};async minesManualStart(){if(this.isLoading=!0,this.minesData=null,this._playSound("bet"),!this.gameData?.currency)throw new Error("Currency is not set");let o={amount:this.gameData?.amount??"0",currency:this.gameData.currency,minesCount:this.minesCount},i=await this.minesApi.startManualBet(o);if(!i.success){this.emit("show-alert",{detail:{type:"error",message:i.error}});return}let a=this.isDemoMode?this.gameData.balance-Number(i.data.amount)+Number(i.data.payout):Number(i.data.afterBalance);this.gameData.updateBalance(L(a)),this.minesData=i.data,this.isLoading=!1}async minesChooseRandomTile(){this.isSelectingRandomTile=!0,this._playSound("click");let i=this.getMinesState?.selectedTiles??[],a=Array.from({length:oi},(r,e)=>e).filter((r)=>!i.includes(r)),t=a[Math.floor(Math.random()*a.length)];if(t!==void 0)await this.minesNext(t);this.isSelectingRandomTile=!1}async minesNext(o){if(this.loadingTiles.includes(o))return;this.loadingTiles=[...this.loadingTiles,o];try{let i=await this.minesApi.selectTile({betId:this.minesData?.id??"",selectedTiles:[o]});if(!i.success){this.emit("show-alert",{detail:{type:"error",message:i.error}});return}let a=i.data.betActions.find((r)=>r.type==="END_BET")?.data.MINES,t=!!a&&a.result.includes(o);if(this._playSound(t?"bomb":"gem"),this.minesData=i.data,a){let{multiplier:r,id:e}=i.data,n=L(r).isGreaterThan(0);this.addToHistory(Number(r),n,e),this.updateHistoryWithBet(i.data)}}finally{this.loadingTiles=this.loadingTiles.filter((i)=>i!==o)}}async minesCashout(){this.isLoading=!0,this._playSound("bet");let o=await this.minesApi.cashout();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}}),this.isLoading=!1;return}let i=o.data?.afterBalance,a=o.data?.currency;if(i&&a){let t=this.isDemoMode?L(this.gameData.balance).plus(this.minesData?.payout||0):L(i);this.gameData.updateBalance(t)}if(this.isLoading=!1,this.minesData=o.data,this.minesData){let{multiplier:t,id:r}=this.minesData,e=L(t).isGreaterThan(0);if(e)this._playSound("win");this.addToHistory(Number(t),e,r),this.updateHistoryWithBet(this.minesData)}}onManualOrAutoChange(){this.minesData=null,this.autobetSelectedTiles=[]}onMinesCountChange(){if(this.manualOrAuto==="Auto"&&this.autobetSelectedTiles.length>25-this.minesCount)this.autobetSelectedTiles=[]}onAutobetChange(){if(!this.autobetInProgress)this.minesData=null}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._minesManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")if(this.isGameActive)this.minesCashout();else this.minesManualStart();else{let i=this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};pickRandomTile=()=>{if(!this.isGameActive)return;this.minesChooseRandomTile()};async waitForAnimationsComplete(o){if(this.gameData?.instantBetEnabled);else{if(await bo(200),o)await bo(150);await this.ensureMinimumDisplayTime(o,300,300)}await bo(this.getAutobetDelay())}constructor(){super();this.minesCount=3;this.autobetSelectedTiles=[];this.minesData=null;this.isLoading=!1;this.isSelectingRandomTile=!1;this.history=[];this.isCheckingForSession=!0;this.loadingTiles=[];new Do(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:this.isSpacebarDisabled}},{key:"q",callback:this.pickRandomTile.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>!this.isGameActive||this.autobetInProgress&&!this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.minesCashout.bind(this),options:{disabled:()=>!this.isGameActive||(this.getMinesState?.selectedTiles.length??0)===0||!this.gameData?.hotkeysOpenEnabled}}])}render(){let o=this.getMinesState,i=this.minesData?.multiplier,a=o?.state==="VIEWING_RESULTS"&&o?.outcome==="WIN",t=this.minesData?.payout,r=this.gameData?.currency??"USD",e=o?.mineLocations?.some((s)=>o?.selectedTiles?.includes(s))??!1,n=this.gameData?.mainWidth>=768;return $`
|
|
7489
7501
|
<origami-game-layout footer-position="below" .gameType=${"MINES"}>
|
|
7490
7502
|
<origami-game-sidebar
|
|
7491
7503
|
data-is-desktop=${n}
|