@betorigami/games 0.7.39 → 0.7.40

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.
Files changed (2) hide show
  1. package/dist/index.mjs +174 -96
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames:Xn}=Object;var Bn=Object.prototype.hasOwnProperty;var ho=(o,i,a)=>{a=o!=null?On(Tn(o)):{};let t=i||!o||!o.__esModule?Wr(a,"default",{value:o,enumerable:!0}):a;for(let r of Xn(o))if(!Bn.call(t,r))Wr(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 dt=Uo((Sc,cs)=>{cs.exports={accessibility:{betPlacedAnnouncement:"تم وضع الرهان بنجاح",gameInProgress:"اللعبة قيد التقدم",languageChanged:"تم تغيير اللغة إلى {language}"},alerts:{autobetStarted:"تم بدء وضع الرهان التلقائي",autobetStopped:"تم إيقاف وضع الرهان التلقائي",betAmountAboveMaxBet:"مبلغ الرهان أعلى من الحد الأقصى للرهان",betAmountBelowMinBet:"مبلغ الرهان أقل من الحد الأدنى للرهان",betCancelled:"تم إلغاء الرهان",betDetailsCopied:"تم نسخ تفاصيل الرهان إلى الحافظة!",betLimitReached:"تم الوصول إلى حد الرهان",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 ct=Uo((Zc,hs)=>{hs.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!",betLimitReached:"Einsatzlimit erreicht",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 ht=Uo((Kc,us)=>{us.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!",betLimitReached:"Bet limit reached",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 ({value})",betAmountAboveMaxBet:"Bet amount is above maximum bet ({value})"},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 ut=Uo((Rc,fs)=>{fs.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!",betLimitReached:"Límite de apuesta alcanzado",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 ft=Uo((Uc,ps)=>{ps.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!",betLimitReached:"Panosraja saavutettu",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 pt=Uo((Wc,gs)=>{gs.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 !",betLimitReached:"Limite de mise atteinte",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((Vc,bs)=>{bs.exports={accessibility:{betPlacedAnnouncement:"दांव सफलतापूर्वक लगाया गया",gameInProgress:"गेम चालू है",languageChanged:"भाषा बदलकर {language} कर दी गई"},alerts:{autobetStarted:"ऑटोबेट मोड शुरू किया गया",autobetStopped:"ऑटोबेट मोड बंद कर दिया गया",betAmountAboveMaxBet:"दांव की राशि अधिकतम दांव से अधिक है",betAmountBelowMinBet:"दांव की राशि न्यूनतम दांव से कम है",betCancelled:"शर्त रद्द",betDetailsCopied:"शर्त विवरण क्लिपबोर्ड पर कॉपी किया गया!",betLimitReached:"दांव की सीमा पूरी हो गई",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 bt=Uo((Ic,ws)=>{ws.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!",betLimitReached:"Batas taruhan tercapai",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 wt=Uo((qc,vs)=>{vs.exports={accessibility:{betPlacedAnnouncement:"賭けは成功しました",gameInProgress:"ゲーム進行中",languageChanged:"言語が{language}に変更されました"},alerts:{autobetStarted:"自動ベットモードを開始しました",autobetStopped:"自動ベットモードを停止しました",betAmountAboveMaxBet:"賭け金が最大賭け金を超えています",betAmountBelowMinBet:"賭け金が最低賭け金を下回っています",betCancelled:"賭けはキャンセルされました",betDetailsCopied:"賭けの詳細がクリップボードにコピーされました!",betLimitReached:"賭け金の上限に達しました",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 vt=Uo((Jc,ms)=>{ms.exports={accessibility:{betPlacedAnnouncement:"배팅이 성공적으로 이루어졌습니다",gameInProgress:"게임 진행 중",languageChanged:"언어가 {language}로 변경되었습니다."},alerts:{autobetStarted:"자동 베팅 모드 시작",autobetStopped:"자동 베팅 모드가 중지되었습니다",betAmountAboveMaxBet:"배팅 금액이 최대 배팅 금액보다 높습니다.",betAmountBelowMinBet:"배팅 금액이 최소 배팅 금액보다 낮습니다.",betCancelled:"베팅 취소됨",betDetailsCopied:"배팅 세부 정보가 클립보드에 복사되었습니다!",betLimitReached:"배팅 한도에 도달했습니다",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 mt=Uo(($c,ks)=>{ks.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!",betLimitReached:"Osiągnięto limit zakładów",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 kt=Uo((Yc,xs)=>{xs.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!",betLimitReached:"Limite de aposta atingido",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 xt=Uo((Lc,zs)=>{zs.exports={accessibility:{betPlacedAnnouncement:"Ставка сделана успешно",gameInProgress:"Игра в процессе",languageChanged:"Язык изменен на {language}"},alerts:{autobetStarted:"Запущен режим автоставки",autobetStopped:"Остановлен режим автоставки",betAmountAboveMaxBet:"Сумма ставки превышает максимальную ставку",betAmountBelowMinBet:"Сумма ставки ниже минимальной ставки",betCancelled:"Ставка отменена",betDetailsCopied:"Данные ставки скопированы в буфер обмена!",betLimitReached:"Лимит ставок достигнут",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 zt=Uo((Cc,ys)=>{ys.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ı!",betLimitReached:"Bahis limitine ulaşıldı",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 yt=Uo((Fc,Hs)=>{Hs.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!",betLimitReached:"Đã đạt đến giới hạn đặt cược",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 Ht=Uo((Qc,Ss)=>{Ss.exports={accessibility:{betPlacedAnnouncement:"投注成功",gameInProgress:"游戏进行中",languageChanged:"语言更改为 {language}"},alerts:{autobetStarted:"已启动自动投注模式",autobetStopped:"停止自动投注模式",betAmountAboveMaxBet:"投注金额高于最高投注额",betAmountBelowMinBet:"投注金额低于最低投注额",betCancelled:"投注取消",betDetailsCopied:"投注详情已复制到剪贴板!",betLimitReached:"已达到投注限额",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 Xe=Uo((Li,Gi)=>{typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(o,i){typeof Li==="object"&&typeof Gi!=="undefined"?Gi.exports=i():typeof define==="function"&&define.amd?define(i):(o=typeof globalThis!=="undefined"?globalThis:o||self,o.lottie=i())}(Li,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,g;switch(n=Math.floor(o*6),s=o*6-n,l=a*(1-i),h=a*(1-s*i),g=a*(1-(1-s)*i),n%6){case 0:t=a,r=g,e=l;break;case 1:t=h,r=a,e=l;break;case 2:t=l,r=a,e=g;break;case 3:t=l,r=h,e=a;break;case 4:t=g,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 U(W,x){var K,c,m=W.length,Q,Y,T,M;for(c=0;c<m;c+=1)if(K=W[c],"ks"in K&&!K.completed){if(K.completed=!0,K.hasMask){var E=K.masksProperties;Y=E.length;for(Q=0;Q<Y;Q+=1)if(E[Q].pt.k.i)R(E[Q].pt.k);else{M=E[Q].pt.k.length;for(T=0;T<M;T+=1){if(E[Q].pt.k[T].s)R(E[Q].pt.k[T].s[0]);if(E[Q].pt.k[T].e)R(E[Q].pt.k[T].e[0])}}}if(K.ty===0)K.layers=p(K.refId,x),U(K.layers,x);else if(K.ty===4)k(K.shapes);else if(K.ty===5)C(K)}}function b(W,x){if(W){var K=0,c=W.length;for(K=0;K<c;K+=1)if(W[K].t===1)W[K].data.layers=p(W[K].data.refId,x),U(W[K].data.layers,x)}}function u(W,x){var K=0,c=x.length;while(K<c){if(x[K].id===W)return x[K];K+=1}return null}function p(W,x){var K=u(W,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(W){var x,K=W.length,c,m;for(x=K-1;x>=0;x-=1)if(W[x].ty==="sh")if(W[x].ks.k.i)R(W[x].ks.k);else{m=W[x].ks.k.length;for(c=0;c<m;c+=1){if(W[x].ks.k[c].s)R(W[x].ks.k[c].s[0]);if(W[x].ks.k[c].e)R(W[x].ks.k[c].e[0])}}else if(W[x].ty==="gr")k(W[x].it)}function R(W){var x,K=W.i.length;for(x=0;x<K;x+=1)W.i[x][0]+=W.v[x][0],W.i[x][1]+=W.v[x][1],W.o[x][0]+=W.v[x][0],W.o[x][1]+=W.v[x][1]}function V(W,x){var K=x?x.split("."):[100,100,100];if(W[0]>K[0])return!0;if(K[0]>W[0])return!1;if(W[1]>K[1])return!0;if(K[1]>W[1])return!1;if(W[2]>K[2])return!0;if(K[2]>W[2])return!1;return null}var L=function(){var W=[4,4,14];function x(c){var m=c.t.d;c.t.d={k:[{s:m,t:0}]}}function K(c){var m,Q=c.length;for(m=0;m<Q;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),w=function(){var W=[4,7,99];return function(x){if(x.chars&&!V(W,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"})}}}}}(),Z=function(){var W=[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,Q=c.length;for(m=0;m<Q;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),I=function(){var W=[4,1,9];function x(c){var m,Q=c.length,Y,T;for(m=0;m<Q;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){T=c[m].c.k.length;for(Y=0;Y<T;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,Q=c.length;for(m=0;m<Q;m+=1)if(c[m].ty===4)x(c[m].shapes)}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),F=function(){var W=[4,4,18];function x(c){var m,Q=c.length,Y,T;for(m=Q-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{T=c[m].ks.k.length;for(Y=0;Y<T;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,Q,Y=c.length,T,M,E,oo;for(Q=0;Q<Y;Q+=1){if(m=c[Q],m.hasMask){var io=m.masksProperties;M=io.length;for(T=0;T<M;T+=1)if(io[T].pt.k.i)io[T].pt.k.c=io[T].cl;else{oo=io[T].pt.k.length;for(E=0;E<oo;E+=1){if(io[T].pt.k[E].s)io[T].pt.k[E].s[0].c=io[T].cl;if(io[T].pt.k[E].e)io[T].pt.k[E].e[0].c=io[T].cl}}}if(m.ty===4)x(m.shapes)}}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}();function J(W){if(W.__complete)return;I(W),L(W),w(W),Z(W),F(W),U(W.layers,W.assets),b(W.chars,W.assets),W.__complete=!0}function C(W){if(W.t.a.length===0&&!("m"in W.t.p));}var j={};return j.completeData=J,j.checkColors=I,j.checkChars=w,j.checkPathProperties=Z,j.checkShapes=F,j.completeLayers=U,j}if(!e.dataManager)e.dataManager=z();if(!e.assetLoader)e.assetLoader=function(){function U(u){var p=u.getResponseHeader("content-type");if(p&&u.responseType==="json"&&p.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 b(u,p,k,R){var V,L=new XMLHttpRequest;try{L.responseType="json"}catch(w){}L.onreadystatechange=function(){if(L.readyState===4)if(L.status===200)V=U(L),k(V);else try{V=U(L),k(V)}catch(w){if(R)R(w)}};try{L.open(["G","E","T"].join(""),u,!0)}catch(w){L.open(["G","E","T"].join(""),p+"/"+u,!0)}L.send()}return{load:b}}();if(y.data.type==="loadAnimation")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.dataManager.completeData(U),e.postMessage({id:y.data.id,payload:U,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(U){e.postMessage({id:y.data.id,payload:U,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 g(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:g,completeAnimation:H}}(),ImagePreloader=function(){var o=function(){var b=createTag("canvas");b.width=1,b.height=1;var u=b.getContext("2d");return u.fillStyle="rgba(0,0,0,0)",u.fillRect(0,0,1,1),b}();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(b,u,p){var k="";if(b.e)k=b.p;else if(u){var R=b.p;if(R.indexOf("images/")!==-1)R=R.split("/")[1];k=u+R}else k=p,k+=b.u?b.u:"",k+=b.p;return k}function r(b){var u=0,p=setInterval(function(){var k=b.getBBox();if(k.width||u>500)this._imageLoaded(),clearInterval(p);u+=1}.bind(this),50)}function e(b){var u=t(b,this.assetsPath,this.path),p=createNS("image");if(isSafari)this.testImageLoaded(p);else p.addEventListener("load",this._imageLoaded,!1);if(p.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append)this._elementHelper.append(p);else this._elementHelper.appendChild(p);var k={img:p,assetData:b};return k}function n(b){var u=t(b,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),p.src=u;var k={img:p,assetData:b};return k}function s(b){var u={assetData:b},p=t(b,this.assetsPath,this.path);return dataManager.loadData(p,function(k){u.img=k,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function l(b,u){this.imagesLoadedCb=u;var p,k=b.length;for(p=0;p<k;p+=1)if(!b[p].layers){if(!b[p].t||b[p].t==="seq")this.totalImages+=1,this.images.push(this._createImageData(b[p]));else if(b[p].t===3)this.totalFootages+=1,this.images.push(this.createFootageData(b[p]))}}function h(b){this.path=b||""}function g(b){this.assetsPath=b||""}function H(b){var u=0,p=this.images.length;while(u<p){if(this.images[u].assetData===b)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(b,u){if(b==="svg")this._elementHelper=u,this._createImageData=this.createImageData.bind(this);else this._createImageData=this.createImgData.bind(this)}function U(){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 U.prototype={loadAssets:l,setAssetsPath:g,setPath:h,loadedImages:y,loadedFootages:z,destroy:f,getAsset:H,createImgData:n,createImageData:e,imageLoaded:i,footageLoaded:a,setCacheType:v},U}();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
- `),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 g(){r+=1,I()}function H(){r-=1}function f(x,K){x.addEventListener("destroy",s),x.addEventListener("_active",g),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 U(x){var K;for(K=0;K<t;K+=1)i[K].animation.play(x)}function b(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(b);else e=!0}function u(x){a=x,window.requestAnimationFrame(b)}function p(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 R(x){var K;for(K=0;K<t;K+=1)i[K].animation.stop(x)}function V(x){var K;for(K=0;K<t;K+=1)i[K].animation.togglePause(x)}function L(x){var K;for(K=t-1;K>=0;K-=1)i[K].animation.destroy(x)}function w(x,K,c){var m=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Q,Y=m.length;for(Q=0;Q<Y;Q+=1){if(c)m[Q].setAttribute("data-bm-type",c);l(m[Q],x)}if(K&&Y===0){if(!c)c="svg";var T=document.getElementsByTagName("body")[0];T.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",c),T.appendChild(M),l(M,x)}}function Z(){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 F(){n=!0}function J(){n=!1,I()}function C(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 W(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=U,o.pause=p,o.stop=R,o.togglePause=V,o.searchAnimations=w,o.resize=Z,o.goToAndStop=k,o.destroy=L,o.freeze=F,o.unfreeze=J,o.setVolume=C,o.mute=j,o.unmute=W,o.getRegisteredAnimations=h,o}(),BezierFactory=function(){var o={};o.getBezierEasing=a;var i={};function a(u,p,k,R,V){var L=V||("bez_"+u+"_"+p+"_"+k+"_"+R).replace(/\./g,"p");if(i[L])return i[L];var w=new b([u,p,k,R]);return i[L]=w,w}var t=4,r=0.001,e=0.0000001,n=10,s=11,l=1/(s-1),h=typeof Float32Array==="function";function g(u,p){return 1-3*p+3*u}function H(u,p){return 3*p-6*u}function f(u){return 3*u}function y(u,p,k){return((g(p,k)*u+H(p,k))*u+f(p))*u}function z(u,p,k){return 3*g(p,k)*u*u+2*H(p,k)*u+f(p)}function v(u,p,k,R,V){var L,w,Z=0;do if(w=p+(k-p)/2,L=y(w,R,V)-u,L>0)k=w;else p=w;while(Math.abs(L)>e&&++Z<n);return w}function U(u,p,k,R){for(var V=0;V<t;++V){var L=z(p,k,R);if(L===0)return p;var w=y(p,k,R)-u;p-=w/L}return p}function b(u){this._p=u,this._mSampleValues=h?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function u(p){var k=this._p[0],R=this._p[1],V=this._p[2],L=this._p[3];if(!this._precomputed)this._precompute();if(k===R&&V===L)return p;if(p===0)return 0;if(p===1)return 1;return y(this._getTForX(p),R,L)},_precompute:function u(){var p=this._p[0],k=this._p[1],R=this._p[2],V=this._p[3];if(this._precomputed=!0,p!==k||R!==V)this._calcSampleValues()},_calcSampleValues:function u(){var p=this._p[0],k=this._p[2];for(var R=0;R<s;++R)this._mSampleValues[R]=y(R*l,p,k)},_getTForX:function u(p){var k=this._p[0],R=this._p[2],V=this._mSampleValues,L=0,w=1,Z=s-1;for(;w!==Z&&V[w]<=p;++w)L+=l;--w;var I=(p-V[w])/(V[w+1]-V[w]),F=L+I*l,J=z(F,k,R);if(J>=r)return U(p,F,k,R);if(J===0)return F;return v(p,L,L+l,k,R)}},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,U,b){var u=f*v+y*U+z*b-U*v-b*f-z*y;return u>-0.001&&u<0.001}function a(f,y,z,v,U,b,u,p,k){if(z===0&&b===0&&k===0)return i(f,y,v,U,u,p);var R=o.sqrt(o.pow(v-f,2)+o.pow(U-y,2)+o.pow(b-z,2)),V=o.sqrt(o.pow(u-f,2)+o.pow(p-y,2)+o.pow(k-z,2)),L=o.sqrt(o.pow(u-v,2)+o.pow(p-U,2)+o.pow(k-b,2)),w;if(R>V)if(R>L)w=R-V-L;else w=L-V-R;else if(L>V)w=L-V-R;else w=V-R-L;return w>-0.0001&&w<0.0001}var t=function(){return function(f,y,z,v){var U=getDefaultCurveSegments(),b,u,p,k,R,V=0,L,w=[],Z=[],I=bezierLengthPool.newElement();p=z.length;for(b=0;b<U;b+=1){R=b/(U-1),L=0;for(u=0;u<p;u+=1){if(k=bmPow(1-R,3)*f[u]+3*bmPow(1-R,2)*R*z[u]+3*(1-R)*bmPow(R,2)*v[u]+bmPow(R,3)*y[u],w[u]=k,Z[u]!==null)L+=bmPow(w[u]-Z[u],2);Z[u]=w[u]}if(L)L=bmSqrt(L),V+=L;I.percents[b]=R,I.lengths[b]=V}return I.addedLength=V,I}}();function r(f){var y=segmentsLengthPool.newElement(),z=f.c,v=f.v,U=f.o,b=f.i,u,p=f._length,k=y.lengths,R=0;for(u=0;u<p-1;u+=1)k[u]=t(v[u],v[u+1],U[u],b[u+1]),R+=k[u].addedLength;if(z&&p)k[u]=t(v[u],v[0],U[u],b[0]),R+=k[u].addedLength;return y.totalLength=R,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,U){var b=(y[0]+"_"+y[1]+"_"+z[0]+"_"+z[1]+"_"+v[0]+"_"+v[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!f[b]){var u=getDefaultCurveSegments(),p,k,R,V,L,w=0,Z,I,F=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]+U[0],z[1]+U[1]))u=2;var J=new e(u);R=v.length;for(p=0;p<u;p+=1){I=createSizedArray(R),L=p/(u-1),Z=0;for(k=0;k<R;k+=1)if(V=bmPow(1-L,3)*y[k]+3*bmPow(1-L,2)*L*(y[k]+v[k])+3*(1-L)*bmPow(L,2)*(z[k]+U[k])+bmPow(L,3)*z[k],I[k]=V,F!==null)Z+=bmPow(I[k]-F[k],2);Z=bmSqrt(Z),w+=Z,J.points[p]=new n(Z,I),F=I}J.segmentLength=w,f[b]=J}return f[b]}}();function l(f,y){var{percents:z,lengths:v}=y,U=z.length,b=bmFloor((U-1)*f),u=f*y.addedLength,p=0;if(b===U-1||b===0||u===v[b])return z[b];var k=v[b]>u?-1:1,R=!0;while(R){if(v[b]<=u&&v[b+1]>u)p=(u-v[b])/(v[b+1]-v[b]),R=!1;else b+=k;if(b<0||b>=U-1){if(b===U-1)return z[b];R=!1}}return z[b]+(z[b+1]-z[b])*p}function h(f,y,z,v,U,b){var u=l(U,b),p=1-u,k=o.round((p*p*p*f[0]+(u*p*p+p*u*p+p*p*u)*z[0]+(u*u*p+p*u*u+u*p*u)*v[0]+u*u*u*y[0])*1000)/1000,R=o.round((p*p*p*f[1]+(u*p*p+p*u*p+p*p*u)*z[1]+(u*u*p+p*u*u+u*p*u)*v[1]+u*u*u*y[1])*1000)/1000;return[k,R]}var g=createTypedArray("float32",8);function H(f,y,z,v,U,b,u){if(U<0)U=0;else if(U>1)U=1;var p=l(U,u);b=b>1?1:b;var k=l(b,u),R,V=f.length,L=1-p,w=1-k,Z=L*L*L,I=p*L*L*3,F=p*p*L*3,J=p*p*p,C=L*L*w,j=p*L*w+L*p*w+L*L*k,W=p*p*w+L*p*k+p*L*k,x=p*p*k,K=L*w*w,c=p*w*w+L*k*w+L*w*k,m=p*k*w+L*k*k+p*w*k,Q=p*k*k,Y=w*w*w,T=k*w*w+w*k*w+w*w*k,M=k*k*w+w*k*k+k*w*k,E=k*k*k;for(R=0;R<V;R+=1)g[R*4]=o.round((Z*f[R]+I*z[R]+F*v[R]+J*y[R])*1000)/1000,g[R*4+1]=o.round((C*f[R]+j*z[R]+W*v[R]+x*y[R])*1000)/1000,g[R*4+2]=o.round((K*f[R]+c*z[R]+m*v[R]+Q*y[R])*1000)/1000,g[R*4+3]=o.round((Y*f[R]+T*z[R]+M*v[R]+E*y[R])*1000)/1000;return g}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,g;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}g=this.keyframesMetadata[e]||{};var H,f,y,z,v,U,b=h.t-a,u=l.t-a,p;if(l.to){if(!g.bezierData)g.bezierData=bez.buildBezierData(l.s,h.s||l.e,l.to,l.ti);var k=g.bezierData;if(o>=b||o<u){var R=o>=b?k.points.length-1:0;f=k.points[R].point.length;for(H=0;H<f;H+=1)t[H]=k.points[R].point[H]}else{if(g.__fnct)U=g.__fnct;else U=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,g.__fnct=U;y=U((o-u)/(b-u));var V=k.segmentLength*y,L,w=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(w+=k.points[v].partialLength,V===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(V>=w&&V<w+k.points[v+1].partialLength){L=(V-w)/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])*L;break}if(v<z-1)v+=1;else s=!1}i._lastPoint=v,i._lastAddedLength=w-k.points[v].partialLength,i._lastKeyframeIndex=e}}else{var Z,I,F,J,C;if(n=l.s.length,p=h.s||l.e,this.sh&&l.h!==1)if(o>=b)t[0]=p[0],t[1]=p[1],t[2]=p[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),W=createQuaternion(p),x=(o-u)/(b-u);quaternionToEuler(t,slerp(j,W,x))}else for(e=0;e<n;e+=1){if(l.h!==1)if(o>=b)y=1;else if(o<u)y=0;else{if(l.o.x.constructor===Array){if(!g.__fnct)g.__fnct=[];if(!g.__fnct[e])Z=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],F=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],U=BezierFactory.getBezierEasing(Z,I,F,J).get,g.__fnct[e]=U;else U=g.__fnct[e]}else if(!g.__fnct)Z=l.o.x,I=l.o.y,F=l.i.x,J=l.i.y,U=BezierFactory.getBezierEasing(Z,I,F,J).get,l.keyframeMetadata=U;else U=g.__fnct;y=U((o-u)/(b-u))}if(p=h.s||l.e,C=l.h===1?l.s[e]:l.s[e]+(p[e]-l.s[e])*y,this.propType==="multidimensional")t[e]=C;else t=C}}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],g=i[2],H=i[3],f,y,z,v,U;if(y=r*l+e*h+n*g+s*H,y<0)y=-y,l=-l,h=-h,g=-g,H=-H;if(1-y>0.000001)f=Math.acos(y),z=Math.sin(f),v=Math.sin((1-a)*f)/z,U=Math.sin(a*f)/z;else v=1-a,U=a;return t[0]=v*r+U*l,t[1]=v*e+U*h,t[2]=v*n+U*g,t[3]=v*s+U*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),g=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,g]}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 g=i.k[0].s.length;this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g);for(r=0;r<g;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",g)},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(b,u,p){var k=p.lastIndex,R,V,L,w,Z,I,F,J,C,j=this.keyframes;if(b<j[0].t-this.offsetTime)R=j[0].s[0],L=!0,k=0;else if(b>=j[j.length-1].t-this.offsetTime)R=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],L=!0;else{var W=k,x=j.length-1,K=!0,c,m,Q;while(K){if(c=j[W],m=j[W+1],m.t-this.offsetTime>b)break;if(W<x-1)W+=1;else K=!1}if(Q=this.keyframesMetadata[W]||{},L=c.h===1,k=W,!L){if(b>=m.t-this.offsetTime)J=1;else if(b<c.t-this.offsetTime)J=0;else{var Y;if(Q.__fnct)Y=Q.__fnct;else Y=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y).get,Q.__fnct=Y;J=Y((b-(c.t-this.offsetTime))/(m.t-this.offsetTime-(c.t-this.offsetTime)))}V=m.s?m.s[0]:c.e[0]}R=c.s[0]}I=u._length,F=R.i[0].length,p.lastIndex=k;for(w=0;w<I;w+=1)for(Z=0;Z<F;Z+=1)C=L?R.i[w][Z]:R.i[w][Z]+(V.i[w][Z]-R.i[w][Z])*J,u.i[w][Z]=C,C=L?R.o[w][Z]:R.o[w][Z]+(V.o[w][Z]-R.o[w][Z])*J,u.o[w][Z]=C,C=L?R.v[w][Z]:R.v[w][Z]+(V.v[w][Z]-R.v[w][Z])*J,u.v[w][Z]=C}function a(){var b=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,k=this._caching.lastFrame;if(!(k!==o&&(k<u&&b<u||k>p&&b>p)))this._caching.lastIndex=k<b?this._caching.lastIndex:0,this.interpolateShape(b,this.pv,this._caching);return this._caching.lastFrame=b,this.pv}function t(){this.paths=this.localShapeCollection}function r(b,u){if(b._length!==u._length||b.c!==u.c)return!1;var p,k=b._length;for(p=0;p<k;p+=1)if(b.v[p][0]!==u.v[p][0]||b.v[p][1]!==u.v[p][1]||b.o[p][0]!==u.o[p][0]||b.o[p][1]!==u.o[p][1]||b.i[p][0]!==u.i[p][0]||b.i[p][1]!==u.i[p][1])return!1;return!0}function e(b){if(!r(this.v,b))this.v=shapePool.clone(b),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 b;if(this.kf)b=this.pv;else if(this.data.ks)b=this.data.ks.k;else b=this.data.pt.k;var u,p=this.effectsSequence.length;for(u=0;u<p;u+=1)b=this.effectsSequence[u](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}function s(b,u,p){this.propType="shape",this.comp=b.comp,this.container=b,this.elem=b,this.data=u,this.k=!1,this.kf=!1,this._mdf=!1;var k=p===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(b){this.effectsSequence.push(b),this.container.addDynamicProperty(this)}s.prototype.interpolateShape=i,s.prototype.getValue=n,s.prototype.setVValue=e,s.prototype.addEffect=l;function h(b,u,p){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=p===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 g=function(){var b=roundCorner;function u(p,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=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,k.p,1,0,this),this.s=PropertyFactory.getProp(p,k.s,1,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertEllToPath()}return u.prototype={reset:t,getValue:function p(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertEllToPath()},convertEllToPath:function p(){var k=this.p.v[0],R=this.p.v[1],V=this.s.v[0]/2,L=this.s.v[1]/2,w=this.d!==3,Z=this.v;Z.v[0][0]=k,Z.v[0][1]=R-L,Z.v[1][0]=w?k+V:k-V,Z.v[1][1]=R,Z.v[2][0]=k,Z.v[2][1]=R+L,Z.v[3][0]=w?k-V:k+V,Z.v[3][1]=R,Z.i[0][0]=w?k-V*b:k+V*b,Z.i[0][1]=R-L,Z.i[1][0]=w?k+V:k-V,Z.i[1][1]=R-L*b,Z.i[2][0]=w?k+V*b:k-V*b,Z.i[2][1]=R+L,Z.i[3][0]=w?k-V:k+V,Z.i[3][1]=R+L*b,Z.o[0][0]=w?k+V*b:k-V*b,Z.o[0][1]=R-L,Z.o[1][0]=w?k+V:k-V,Z.o[1][1]=R+L*b,Z.o[2][0]=w?k-V*b:k+V*b,Z.o[2][1]=R+L,Z.o[3][0]=w?k-V:k+V,Z.o[3][1]=R-L*b}},extendPrototype([DynamicPropertyContainer],u),u}(),H=function(){function b(u,p){if(this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=u,this.comp=u.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(u),p.sy===1)this.ir=PropertyFactory.getProp(u,p.ir,0,0,this),this.is=PropertyFactory.getProp(u,p.is,0,0.01,this),this.convertToPath=this.convertStarToPath;else this.convertToPath=this.convertPolygonToPath;if(this.pt=PropertyFactory.getProp(u,p.pt,0,0,this),this.p=PropertyFactory.getProp(u,p.p,1,0,this),this.r=PropertyFactory.getProp(u,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(u,p.or,0,0,this),this.os=PropertyFactory.getProp(u,p.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 b.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 p=Math.floor(this.pt.v)*2,k=Math.PI*2/p,R=!0,V=this.or.v,L=this.ir.v,w=this.os.v,Z=this.is.v,I=2*Math.PI*V/(p*2),F=2*Math.PI*L/(p*2),J,C,j,W,x=-Math.PI/2;x+=this.r.v;var K=this.data.d===3?-1:1;this.v._length=0;for(J=0;J<p;J+=1){C=R?V:L,j=R?w:Z,W=R?I:F;var c=C*Math.cos(x),m=C*Math.sin(x),Q=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-Q*W*j*K,m-Y*W*j*K,c+Q*W*j*K,m+Y*W*j*K,J,!0),R=!R,x+=k*K}},convertPolygonToPath:function u(){var p=Math.floor(this.pt.v),k=Math.PI*2/p,R=this.or.v,V=this.os.v,L=2*Math.PI*R/(p*4),w,Z=-Math.PI*0.5,I=this.data.d===3?-1:1;Z+=this.r.v,this.v._length=0;for(w=0;w<p;w+=1){var F=R*Math.cos(Z),J=R*Math.sin(Z),C=F===0&&J===0?0:J/Math.sqrt(F*F+J*J),j=F===0&&J===0?0:-F/Math.sqrt(F*F+J*J);F+=+this.p.v[0],J+=+this.p.v[1],this.v.setTripleAt(F,J,F-C*L*V*I,J-j*L*V*I,F+C*L*V*I,J+j*L*V*I,w,!0),Z+=k*I}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),f=function(){function b(u,p){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=p.d,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,p.p,1,0,this),this.s=PropertyFactory.getProp(u,p.s,1,0,this),this.r=PropertyFactory.getProp(u,p.r,0,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertRectToPath()}return b.prototype={convertRectToPath:function u(){var p=this.p.v[0],k=this.p.v[1],R=this.s.v[0]/2,V=this.s.v[1]/2,L=bmMin(R,V,this.r.v),w=L*(1-roundCorner);if(this.v._length=0,this.d===2||this.d===1)if(this.v.setTripleAt(p+R,k-V+L,p+R,k-V+L,p+R,k-V+w,0,!0),this.v.setTripleAt(p+R,k+V-L,p+R,k+V-w,p+R,k+V-L,1,!0),L!==0)this.v.setTripleAt(p+R-L,k+V,p+R-L,k+V,p+R-w,k+V,2,!0),this.v.setTripleAt(p-R+L,k+V,p-R+w,k+V,p-R+L,k+V,3,!0),this.v.setTripleAt(p-R,k+V-L,p-R,k+V-L,p-R,k+V-w,4,!0),this.v.setTripleAt(p-R,k-V+L,p-R,k-V+w,p-R,k-V+L,5,!0),this.v.setTripleAt(p-R+L,k-V,p-R+L,k-V,p-R+w,k-V,6,!0),this.v.setTripleAt(p+R-L,k-V,p+R-w,k-V,p+R-L,k-V,7,!0);else this.v.setTripleAt(p-R,k+V,p-R+w,k+V,p-R,k+V,2),this.v.setTripleAt(p-R,k-V,p-R,k-V+w,p-R,k-V,3);else if(this.v.setTripleAt(p+R,k-V+L,p+R,k-V+w,p+R,k-V+L,0,!0),L!==0)this.v.setTripleAt(p+R-L,k-V,p+R-L,k-V,p+R-w,k-V,1,!0),this.v.setTripleAt(p-R+L,k-V,p-R+w,k-V,p-R+L,k-V,2,!0),this.v.setTripleAt(p-R,k-V+L,p-R,k-V+L,p-R,k-V+w,3,!0),this.v.setTripleAt(p-R,k+V-L,p-R,k+V-w,p-R,k+V-L,4,!0),this.v.setTripleAt(p-R+L,k+V,p-R+L,k+V,p-R+w,k+V,5,!0),this.v.setTripleAt(p+R-L,k+V,p+R-w,k+V,p+R-L,k+V,6,!0),this.v.setTripleAt(p+R,k+V-L,p+R,k+V-L,p+R,k+V-w,7,!0);else this.v.setTripleAt(p-R,k-V,p-R+w,k-V,p-R,k-V,1,!0),this.v.setTripleAt(p-R,k+V,p-R,k+V-w,p-R,k+V,2,!0),this.v.setTripleAt(p+R,k+V,p+R-w,k+V,p+R,k+V,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],b),b}();function y(b,u,p){var k;if(p===3||p===4){var R=p===3?u.pt:u.ks,V=R.k;if(V.length)k=new h(b,u,p);else k=new s(b,u,p)}else if(p===5)k=new f(b,u);else if(p===6)k=new g(b,u);else if(p===7)k=new H(b,u);if(k.k)b.addDynamicProperty(k);return k}function z(){return s}function v(){return h}var U={};return U.getShapeProp=y,U.getConstructorFunction=z,U.getKeyframedConstructorFunction=v,U}();/*!
1
+ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames:Xn}=Object;var Bn=Object.prototype.hasOwnProperty;var ho=(o,i,a)=>{a=o!=null?On(Tn(o)):{};let t=i||!o||!o.__esModule?Wr(a,"default",{value:o,enumerable:!0}):a;for(let r of Xn(o))if(!Bn.call(t,r))Wr(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 dt=Uo((Sc,cs)=>{cs.exports={accessibility:{betPlacedAnnouncement:"تم وضع الرهان بنجاح",gameInProgress:"اللعبة قيد التقدم",languageChanged:"تم تغيير اللغة إلى {language}"},alerts:{autobetStarted:"تم بدء وضع الرهان التلقائي",autobetStopped:"تم إيقاف وضع الرهان التلقائي",betAmountAboveMaxBet:"مبلغ الرهان أعلى من الحد الأقصى للرهان",betAmountBelowMinBet:"مبلغ الرهان أقل من الحد الأدنى للرهان",betCancelled:"تم إلغاء الرهان",betDetailsCopied:"تم نسخ تفاصيل الرهان إلى الحافظة!",betLimitReached:"تم الوصول إلى حد الرهان",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 ct=Uo((Zc,hs)=>{hs.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!",betLimitReached:"Einsatzlimit erreicht",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 ht=Uo((Kc,us)=>{us.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!",betLimitReached:"Bet limit reached",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:"Minimum bet is {value}",betAmountAboveMaxBet:"Maximum bet is {value}"},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 ut=Uo((Rc,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!",betLimitReached:"Límite de apuesta alcanzado",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 pt=Uo((Uc,fs)=>{fs.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!",betLimitReached:"Panosraja saavutettu",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((Wc,gs)=>{gs.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 !",betLimitReached:"Limite de mise atteinte",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((Vc,bs)=>{bs.exports={accessibility:{betPlacedAnnouncement:"दांव सफलतापूर्वक लगाया गया",gameInProgress:"गेम चालू है",languageChanged:"भाषा बदलकर {language} कर दी गई"},alerts:{autobetStarted:"ऑटोबेट मोड शुरू किया गया",autobetStopped:"ऑटोबेट मोड बंद कर दिया गया",betAmountAboveMaxBet:"दांव की राशि अधिकतम दांव से अधिक है",betAmountBelowMinBet:"दांव की राशि न्यूनतम दांव से कम है",betCancelled:"शर्त रद्द",betDetailsCopied:"शर्त विवरण क्लिपबोर्ड पर कॉपी किया गया!",betLimitReached:"दांव की सीमा पूरी हो गई",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 bt=Uo((Ic,ws)=>{ws.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!",betLimitReached:"Batas taruhan tercapai",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 wt=Uo((qc,ms)=>{ms.exports={accessibility:{betPlacedAnnouncement:"賭けは成功しました",gameInProgress:"ゲーム進行中",languageChanged:"言語が{language}に変更されました"},alerts:{autobetStarted:"自動ベットモードを開始しました",autobetStopped:"自動ベットモードを停止しました",betAmountAboveMaxBet:"賭け金が最大賭け金を超えています",betAmountBelowMinBet:"賭け金が最低賭け金を下回っています",betCancelled:"賭けはキャンセルされました",betDetailsCopied:"賭けの詳細がクリップボードにコピーされました!",betLimitReached:"賭け金の上限に達しました",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 mt=Uo((Jc,vs)=>{vs.exports={accessibility:{betPlacedAnnouncement:"배팅이 성공적으로 이루어졌습니다",gameInProgress:"게임 진행 중",languageChanged:"언어가 {language}로 변경되었습니다."},alerts:{autobetStarted:"자동 베팅 모드 시작",autobetStopped:"자동 베팅 모드가 중지되었습니다",betAmountAboveMaxBet:"배팅 금액이 최대 배팅 금액보다 높습니다.",betAmountBelowMinBet:"배팅 금액이 최소 배팅 금액보다 낮습니다.",betCancelled:"베팅 취소됨",betDetailsCopied:"배팅 세부 정보가 클립보드에 복사되었습니다!",betLimitReached:"배팅 한도에 도달했습니다",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(($c,ks)=>{ks.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!",betLimitReached:"Osiągnięto limit zakładów",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 kt=Uo((Yc,xs)=>{xs.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!",betLimitReached:"Limite de aposta atingido",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 xt=Uo((Lc,zs)=>{zs.exports={accessibility:{betPlacedAnnouncement:"Ставка сделана успешно",gameInProgress:"Игра в процессе",languageChanged:"Язык изменен на {language}"},alerts:{autobetStarted:"Запущен режим автоставки",autobetStopped:"Остановлен режим автоставки",betAmountAboveMaxBet:"Сумма ставки превышает максимальную ставку",betAmountBelowMinBet:"Сумма ставки ниже минимальной ставки",betCancelled:"Ставка отменена",betDetailsCopied:"Данные ставки скопированы в буфер обмена!",betLimitReached:"Лимит ставок достигнут",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 zt=Uo((Cc,ys)=>{ys.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ı!",betLimitReached:"Bahis limitine ulaşıldı",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 yt=Uo((Fc,Hs)=>{Hs.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!",betLimitReached:"Đã đạt đến giới hạn đặt cược",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 Ht=Uo((Qc,Ss)=>{Ss.exports={accessibility:{betPlacedAnnouncement:"投注成功",gameInProgress:"游戏进行中",languageChanged:"语言更改为 {language}"},alerts:{autobetStarted:"已启动自动投注模式",autobetStopped:"停止自动投注模式",betAmountAboveMaxBet:"投注金额高于最高投注额",betAmountBelowMinBet:"投注金额低于最低投注额",betCancelled:"投注取消",betDetailsCopied:"投注详情已复制到剪贴板!",betLimitReached:"已达到投注限额",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 Xe=Uo((Li,Gi)=>{typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(o,i){typeof Li==="object"&&typeof Gi!=="undefined"?Gi.exports=i():typeof define==="function"&&define.amd?define(i):(o=typeof globalThis!=="undefined"?globalThis:o||self,o.lottie=i())}(Li,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,g;switch(n=Math.floor(o*6),s=o*6-n,l=a*(1-i),h=a*(1-s*i),g=a*(1-(1-s)*i),n%6){case 0:t=a,r=g,e=l;break;case 1:t=h,r=a,e=l;break;case 2:t=l,r=a,e=g;break;case 3:t=l,r=h,e=a;break;case 4:t=g,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 p(){},postMessage:function p(y){a({data:y})}},e={postMessage:function p(y){r.onmessage({data:y})}};function n(p){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",p.toString()],{type:"text/javascript"}),z=URL.createObjectURL(y);return new Worker(z)}return a=p,r}function s(){if(!t)t=n(function p(y){function z(){function U(W,x){var K,c,v=W.length,Q,Y,T,M;for(c=0;c<v;c+=1)if(K=W[c],"ks"in K&&!K.completed){if(K.completed=!0,K.hasMask){var E=K.masksProperties;Y=E.length;for(Q=0;Q<Y;Q+=1)if(E[Q].pt.k.i)R(E[Q].pt.k);else{M=E[Q].pt.k.length;for(T=0;T<M;T+=1){if(E[Q].pt.k[T].s)R(E[Q].pt.k[T].s[0]);if(E[Q].pt.k[T].e)R(E[Q].pt.k[T].e[0])}}}if(K.ty===0)K.layers=f(K.refId,x),U(K.layers,x);else if(K.ty===4)k(K.shapes);else if(K.ty===5)C(K)}}function b(W,x){if(W){var K=0,c=W.length;for(K=0;K<c;K+=1)if(W[K].t===1)W[K].data.layers=f(W[K].data.refId,x),U(W[K].data.layers,x)}}function u(W,x){var K=0,c=x.length;while(K<c){if(x[K].id===W)return x[K];K+=1}return null}function f(W,x){var K=u(W,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(W){var x,K=W.length,c,v;for(x=K-1;x>=0;x-=1)if(W[x].ty==="sh")if(W[x].ks.k.i)R(W[x].ks.k);else{v=W[x].ks.k.length;for(c=0;c<v;c+=1){if(W[x].ks.k[c].s)R(W[x].ks.k[c].s[0]);if(W[x].ks.k[c].e)R(W[x].ks.k[c].e[0])}}else if(W[x].ty==="gr")k(W[x].it)}function R(W){var x,K=W.i.length;for(x=0;x<K;x+=1)W.i[x][0]+=W.v[x][0],W.i[x][1]+=W.v[x][1],W.o[x][0]+=W.v[x][0],W.o[x][1]+=W.v[x][1]}function V(W,x){var K=x?x.split("."):[100,100,100];if(W[0]>K[0])return!0;if(K[0]>W[0])return!1;if(W[1]>K[1])return!0;if(K[1]>W[1])return!1;if(W[2]>K[2])return!0;if(K[2]>W[2])return!1;return null}var L=function(){var W=[4,4,14];function x(c){var v=c.t.d;c.t.d={k:[{s:v,t:0}]}}function K(c){var v,Q=c.length;for(v=0;v<Q;v+=1)if(c[v].ty===5)x(c[v])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}(),w=function(){var W=[4,7,99];return function(x){if(x.chars&&!V(W,x.v)){var K,c=x.chars.length;for(K=0;K<c;K+=1){var v=x.chars[K];if(v.data&&v.data.shapes){if(k(v.data.shapes),v.data.ip=0,v.data.op=99999,v.data.st=0,v.data.sr=1,v.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)v.data.shapes.push({ty:"no"}),v.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"})}}}}}(),Z=function(){var W=[5,7,15];function x(c){var v=c.t.p;if(typeof v.a==="number")v.a={a:0,k:v.a};if(typeof v.p==="number")v.p={a:0,k:v.p};if(typeof v.r==="number")v.r={a:0,k:v.r}}function K(c){var v,Q=c.length;for(v=0;v<Q;v+=1)if(c[v].ty===5)x(c[v])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}(),I=function(){var W=[4,1,9];function x(c){var v,Q=c.length,Y,T;for(v=0;v<Q;v+=1)if(c[v].ty==="gr")x(c[v].it);else if(c[v].ty==="fl"||c[v].ty==="st")if(c[v].c.k&&c[v].c.k[0].i){T=c[v].c.k.length;for(Y=0;Y<T;Y+=1){if(c[v].c.k[Y].s)c[v].c.k[Y].s[0]/=255,c[v].c.k[Y].s[1]/=255,c[v].c.k[Y].s[2]/=255,c[v].c.k[Y].s[3]/=255;if(c[v].c.k[Y].e)c[v].c.k[Y].e[0]/=255,c[v].c.k[Y].e[1]/=255,c[v].c.k[Y].e[2]/=255,c[v].c.k[Y].e[3]/=255}}else c[v].c.k[0]/=255,c[v].c.k[1]/=255,c[v].c.k[2]/=255,c[v].c.k[3]/=255}function K(c){var v,Q=c.length;for(v=0;v<Q;v+=1)if(c[v].ty===4)x(c[v].shapes)}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}(),F=function(){var W=[4,4,18];function x(c){var v,Q=c.length,Y,T;for(v=Q-1;v>=0;v-=1)if(c[v].ty==="sh")if(c[v].ks.k.i)c[v].ks.k.c=c[v].closed;else{T=c[v].ks.k.length;for(Y=0;Y<T;Y+=1){if(c[v].ks.k[Y].s)c[v].ks.k[Y].s[0].c=c[v].closed;if(c[v].ks.k[Y].e)c[v].ks.k[Y].e[0].c=c[v].closed}}else if(c[v].ty==="gr")x(c[v].it)}function K(c){var v,Q,Y=c.length,T,M,E,oo;for(Q=0;Q<Y;Q+=1){if(v=c[Q],v.hasMask){var io=v.masksProperties;M=io.length;for(T=0;T<M;T+=1)if(io[T].pt.k.i)io[T].pt.k.c=io[T].cl;else{oo=io[T].pt.k.length;for(E=0;E<oo;E+=1){if(io[T].pt.k[E].s)io[T].pt.k[E].s[0].c=io[T].cl;if(io[T].pt.k[E].e)io[T].pt.k[E].e[0].c=io[T].cl}}}if(v.ty===4)x(v.shapes)}}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}();function J(W){if(W.__complete)return;I(W),L(W),w(W),Z(W),F(W),U(W.layers,W.assets),b(W.chars,W.assets),W.__complete=!0}function C(W){if(W.t.a.length===0&&!("m"in W.t.p));}var j={};return j.completeData=J,j.checkColors=I,j.checkChars=w,j.checkPathProperties=Z,j.checkShapes=F,j.completeLayers=U,j}if(!e.dataManager)e.dataManager=z();if(!e.assetLoader)e.assetLoader=function(){function U(u){var f=u.getResponseHeader("content-type");if(f&&u.responseType==="json"&&f.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 b(u,f,k,R){var V,L=new XMLHttpRequest;try{L.responseType="json"}catch(w){}L.onreadystatechange=function(){if(L.readyState===4)if(L.status===200)V=U(L),k(V);else try{V=U(L),k(V)}catch(w){if(R)R(w)}};try{L.open(["G","E","T"].join(""),u,!0)}catch(w){L.open(["G","E","T"].join(""),f+"/"+u,!0)}L.send()}return{load:b}}();if(y.data.type==="loadAnimation")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.dataManager.completeData(U),e.postMessage({id:y.data.id,payload:U,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var m=y.data.animation;e.dataManager.completeData(m),e.postMessage({id:y.data.id,payload:m,status:"success"})}else if(y.data.type==="loadData")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.postMessage({id:y.data.id,payload:U,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})})}),t.onmessage=function(p){var y=p.data,z=y.id,m=i[z];if(i[z]=null,y.status==="success")m.onComplete(y.payload);else if(m.onError)m.onError()}}function l(p,y){o+=1;var z="processId_"+o;return i[z]={onComplete:p,onError:y},z}function h(p,y,z){s();var m=l(y,z);t.postMessage({type:"loadAnimation",path:p,fullPath:window.location.origin+window.location.pathname,id:m})}function g(p,y,z){s();var m=l(y,z);t.postMessage({type:"loadData",path:p,fullPath:window.location.origin+window.location.pathname,id:m})}function H(p,y,z){s();var m=l(y,z);t.postMessage({type:"complete",animation:p,id:m})}return{loadAnimation:h,loadData:g,completeAnimation:H}}(),ImagePreloader=function(){var o=function(){var b=createTag("canvas");b.width=1,b.height=1;var u=b.getContext("2d");return u.fillStyle="rgba(0,0,0,0)",u.fillRect(0,0,1,1),b}();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(b,u,f){var k="";if(b.e)k=b.p;else if(u){var R=b.p;if(R.indexOf("images/")!==-1)R=R.split("/")[1];k=u+R}else k=f,k+=b.u?b.u:"",k+=b.p;return k}function r(b){var u=0,f=setInterval(function(){var k=b.getBBox();if(k.width||u>500)this._imageLoaded(),clearInterval(f);u+=1}.bind(this),50)}function e(b){var u=t(b,this.assetsPath,this.path),f=createNS("image");if(isSafari)this.testImageLoaded(f);else f.addEventListener("load",this._imageLoaded,!1);if(f.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),f.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append)this._elementHelper.append(f);else this._elementHelper.appendChild(f);var k={img:f,assetData:b};return k}function n(b){var u=t(b,this.assetsPath,this.path),f=createTag("img");f.crossOrigin="anonymous",f.addEventListener("load",this._imageLoaded,!1),f.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),f.src=u;var k={img:f,assetData:b};return k}function s(b){var u={assetData:b},f=t(b,this.assetsPath,this.path);return dataManager.loadData(f,function(k){u.img=k,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function l(b,u){this.imagesLoadedCb=u;var f,k=b.length;for(f=0;f<k;f+=1)if(!b[f].layers){if(!b[f].t||b[f].t==="seq")this.totalImages+=1,this.images.push(this._createImageData(b[f]));else if(b[f].t===3)this.totalFootages+=1,this.images.push(this.createFootageData(b[f]))}}function h(b){this.path=b||""}function g(b){this.assetsPath=b||""}function H(b){var u=0,f=this.images.length;while(u<f){if(this.images[u].assetData===b)return this.images[u].img;u+=1}return null}function p(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function z(){return this.totalFootages===this.loadedFootagesCount}function m(b,u){if(b==="svg")this._elementHelper=u,this._createImageData=this.createImageData.bind(this);else this._createImageData=this.createImgData.bind(this)}function U(){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 U.prototype={loadAssets:l,setAssetsPath:g,setPath:h,loadedImages:y,loadedFootages:z,destroy:p,getAsset:H,createImgData:n,createImageData:e,imageLoaded:i,footageLoaded:a,setCacheType:m},U}();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
+ `),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 v=new AnimationItem;return p(v,x),v.setData(x,K),v}function h(){var x,K=i.length,c=[];for(x=0;x<K;x+=1)c.push(i[x].animation);return c}function g(){r+=1,I()}function H(){r-=1}function p(x,K){x.addEventListener("destroy",s),x.addEventListener("_active",g),x.addEventListener("_idle",H),i.push({elem:K,animation:x}),t+=1}function y(x){var K=new AnimationItem;return p(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 m(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setDirection(x,K)}function U(x){var K;for(K=0;K<t;K+=1)i[K].animation.play(x)}function b(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(b);else e=!0}function u(x){a=x,window.requestAnimationFrame(b)}function f(x){var K;for(K=0;K<t;K+=1)i[K].animation.pause(x)}function k(x,K,c){var v;for(v=0;v<t;v+=1)i[v].animation.goToAndStop(x,K,c)}function R(x){var K;for(K=0;K<t;K+=1)i[K].animation.stop(x)}function V(x){var K;for(K=0;K<t;K+=1)i[K].animation.togglePause(x)}function L(x){var K;for(K=t-1;K>=0;K-=1)i[K].animation.destroy(x)}function w(x,K,c){var v=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Q,Y=v.length;for(Q=0;Q<Y;Q+=1){if(c)v[Q].setAttribute("data-bm-type",c);l(v[Q],x)}if(K&&Y===0){if(!c)c="svg";var T=document.getElementsByTagName("body")[0];T.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",c),T.appendChild(M),l(M,x)}}function Z(){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 F(){n=!0}function J(){n=!1,I()}function C(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 W(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=m,o.play=U,o.pause=f,o.stop=R,o.togglePause=V,o.searchAnimations=w,o.resize=Z,o.goToAndStop=k,o.destroy=L,o.freeze=F,o.unfreeze=J,o.setVolume=C,o.mute=j,o.unmute=W,o.getRegisteredAnimations=h,o}(),BezierFactory=function(){var o={};o.getBezierEasing=a;var i={};function a(u,f,k,R,V){var L=V||("bez_"+u+"_"+f+"_"+k+"_"+R).replace(/\./g,"p");if(i[L])return i[L];var w=new b([u,f,k,R]);return i[L]=w,w}var t=4,r=0.001,e=0.0000001,n=10,s=11,l=1/(s-1),h=typeof Float32Array==="function";function g(u,f){return 1-3*f+3*u}function H(u,f){return 3*f-6*u}function p(u){return 3*u}function y(u,f,k){return((g(f,k)*u+H(f,k))*u+p(f))*u}function z(u,f,k){return 3*g(f,k)*u*u+2*H(f,k)*u+p(f)}function m(u,f,k,R,V){var L,w,Z=0;do if(w=f+(k-f)/2,L=y(w,R,V)-u,L>0)k=w;else f=w;while(Math.abs(L)>e&&++Z<n);return w}function U(u,f,k,R){for(var V=0;V<t;++V){var L=z(f,k,R);if(L===0)return f;var w=y(f,k,R)-u;f-=w/L}return f}function b(u){this._p=u,this._mSampleValues=h?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function u(f){var k=this._p[0],R=this._p[1],V=this._p[2],L=this._p[3];if(!this._precomputed)this._precompute();if(k===R&&V===L)return f;if(f===0)return 0;if(f===1)return 1;return y(this._getTForX(f),R,L)},_precompute:function u(){var f=this._p[0],k=this._p[1],R=this._p[2],V=this._p[3];if(this._precomputed=!0,f!==k||R!==V)this._calcSampleValues()},_calcSampleValues:function u(){var f=this._p[0],k=this._p[2];for(var R=0;R<s;++R)this._mSampleValues[R]=y(R*l,f,k)},_getTForX:function u(f){var k=this._p[0],R=this._p[2],V=this._mSampleValues,L=0,w=1,Z=s-1;for(;w!==Z&&V[w]<=f;++w)L+=l;--w;var I=(f-V[w])/(V[w+1]-V[w]),F=L+I*l,J=z(F,k,R);if(J>=r)return U(f,F,k,R);if(J===0)return F;return m(f,L,L+l,k,R)}},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(p,y,z,m,U,b){var u=p*m+y*U+z*b-U*m-b*p-z*y;return u>-0.001&&u<0.001}function a(p,y,z,m,U,b,u,f,k){if(z===0&&b===0&&k===0)return i(p,y,m,U,u,f);var R=o.sqrt(o.pow(m-p,2)+o.pow(U-y,2)+o.pow(b-z,2)),V=o.sqrt(o.pow(u-p,2)+o.pow(f-y,2)+o.pow(k-z,2)),L=o.sqrt(o.pow(u-m,2)+o.pow(f-U,2)+o.pow(k-b,2)),w;if(R>V)if(R>L)w=R-V-L;else w=L-V-R;else if(L>V)w=L-V-R;else w=V-R-L;return w>-0.0001&&w<0.0001}var t=function(){return function(p,y,z,m){var U=getDefaultCurveSegments(),b,u,f,k,R,V=0,L,w=[],Z=[],I=bezierLengthPool.newElement();f=z.length;for(b=0;b<U;b+=1){R=b/(U-1),L=0;for(u=0;u<f;u+=1){if(k=bmPow(1-R,3)*p[u]+3*bmPow(1-R,2)*R*z[u]+3*(1-R)*bmPow(R,2)*m[u]+bmPow(R,3)*y[u],w[u]=k,Z[u]!==null)L+=bmPow(w[u]-Z[u],2);Z[u]=w[u]}if(L)L=bmSqrt(L),V+=L;I.percents[b]=R,I.lengths[b]=V}return I.addedLength=V,I}}();function r(p){var y=segmentsLengthPool.newElement(),z=p.c,m=p.v,U=p.o,b=p.i,u,f=p._length,k=y.lengths,R=0;for(u=0;u<f-1;u+=1)k[u]=t(m[u],m[u+1],U[u],b[u+1]),R+=k[u].addedLength;if(z&&f)k[u]=t(m[u],m[0],U[u],b[0]),R+=k[u].addedLength;return y.totalLength=R,y}function e(p){this.segmentLength=0,this.points=new Array(p)}function n(p,y){this.partialLength=p,this.point=y}var s=function(){var p={};return function(y,z,m,U){var b=(y[0]+"_"+y[1]+"_"+z[0]+"_"+z[1]+"_"+m[0]+"_"+m[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!p[b]){var u=getDefaultCurveSegments(),f,k,R,V,L,w=0,Z,I,F=null;if(y.length===2&&(y[0]!==z[0]||y[1]!==z[1])&&i(y[0],y[1],z[0],z[1],y[0]+m[0],y[1]+m[1])&&i(y[0],y[1],z[0],z[1],z[0]+U[0],z[1]+U[1]))u=2;var J=new e(u);R=m.length;for(f=0;f<u;f+=1){I=createSizedArray(R),L=f/(u-1),Z=0;for(k=0;k<R;k+=1)if(V=bmPow(1-L,3)*y[k]+3*bmPow(1-L,2)*L*(y[k]+m[k])+3*(1-L)*bmPow(L,2)*(z[k]+U[k])+bmPow(L,3)*z[k],I[k]=V,F!==null)Z+=bmPow(I[k]-F[k],2);Z=bmSqrt(Z),w+=Z,J.points[f]=new n(Z,I),F=I}J.segmentLength=w,p[b]=J}return p[b]}}();function l(p,y){var{percents:z,lengths:m}=y,U=z.length,b=bmFloor((U-1)*p),u=p*y.addedLength,f=0;if(b===U-1||b===0||u===m[b])return z[b];var k=m[b]>u?-1:1,R=!0;while(R){if(m[b]<=u&&m[b+1]>u)f=(u-m[b])/(m[b+1]-m[b]),R=!1;else b+=k;if(b<0||b>=U-1){if(b===U-1)return z[b];R=!1}}return z[b]+(z[b+1]-z[b])*f}function h(p,y,z,m,U,b){var u=l(U,b),f=1-u,k=o.round((f*f*f*p[0]+(u*f*f+f*u*f+f*f*u)*z[0]+(u*u*f+f*u*u+u*f*u)*m[0]+u*u*u*y[0])*1000)/1000,R=o.round((f*f*f*p[1]+(u*f*f+f*u*f+f*f*u)*z[1]+(u*u*f+f*u*u+u*f*u)*m[1]+u*u*u*y[1])*1000)/1000;return[k,R]}var g=createTypedArray("float32",8);function H(p,y,z,m,U,b,u){if(U<0)U=0;else if(U>1)U=1;var f=l(U,u);b=b>1?1:b;var k=l(b,u),R,V=p.length,L=1-f,w=1-k,Z=L*L*L,I=f*L*L*3,F=f*f*L*3,J=f*f*f,C=L*L*w,j=f*L*w+L*f*w+L*L*k,W=f*f*w+L*f*k+f*L*k,x=f*f*k,K=L*w*w,c=f*w*w+L*k*w+L*w*k,v=f*k*w+L*k*k+f*w*k,Q=f*k*k,Y=w*w*w,T=k*w*w+w*k*w+w*w*k,M=k*k*w+w*k*k+k*w*k,E=k*k*k;for(R=0;R<V;R+=1)g[R*4]=o.round((Z*p[R]+I*z[R]+F*m[R]+J*y[R])*1000)/1000,g[R*4+1]=o.round((C*p[R]+j*z[R]+W*m[R]+x*y[R])*1000)/1000,g[R*4+2]=o.round((K*p[R]+c*z[R]+v*m[R]+Q*y[R])*1000)/1000,g[R*4+3]=o.round((Y*p[R]+T*z[R]+M*m[R]+E*y[R])*1000)/1000;return g}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,g;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}g=this.keyframesMetadata[e]||{};var H,p,y,z,m,U,b=h.t-a,u=l.t-a,f;if(l.to){if(!g.bezierData)g.bezierData=bez.buildBezierData(l.s,h.s||l.e,l.to,l.ti);var k=g.bezierData;if(o>=b||o<u){var R=o>=b?k.points.length-1:0;p=k.points[R].point.length;for(H=0;H<p;H+=1)t[H]=k.points[R].point[H]}else{if(g.__fnct)U=g.__fnct;else U=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,g.__fnct=U;y=U((o-u)/(b-u));var V=k.segmentLength*y,L,w=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastAddedLength:0;m=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastPoint:0,s=!0,z=k.points.length;while(s){if(w+=k.points[m].partialLength,V===0||y===0||m===k.points.length-1){p=k.points[m].point.length;for(H=0;H<p;H+=1)t[H]=k.points[m].point[H];break}else if(V>=w&&V<w+k.points[m+1].partialLength){L=(V-w)/k.points[m+1].partialLength,p=k.points[m].point.length;for(H=0;H<p;H+=1)t[H]=k.points[m].point[H]+(k.points[m+1].point[H]-k.points[m].point[H])*L;break}if(m<z-1)m+=1;else s=!1}i._lastPoint=m,i._lastAddedLength=w-k.points[m].partialLength,i._lastKeyframeIndex=e}}else{var Z,I,F,J,C;if(n=l.s.length,f=h.s||l.e,this.sh&&l.h!==1)if(o>=b)t[0]=f[0],t[1]=f[1],t[2]=f[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),W=createQuaternion(f),x=(o-u)/(b-u);quaternionToEuler(t,slerp(j,W,x))}else for(e=0;e<n;e+=1){if(l.h!==1)if(o>=b)y=1;else if(o<u)y=0;else{if(l.o.x.constructor===Array){if(!g.__fnct)g.__fnct=[];if(!g.__fnct[e])Z=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],F=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],U=BezierFactory.getBezierEasing(Z,I,F,J).get,g.__fnct[e]=U;else U=g.__fnct[e]}else if(!g.__fnct)Z=l.o.x,I=l.o.y,F=l.i.x,J=l.i.y,U=BezierFactory.getBezierEasing(Z,I,F,J).get,l.keyframeMetadata=U;else U=g.__fnct;y=U((o-u)/(b-u))}if(f=h.s||l.e,C=l.h===1?l.s[e]:l.s[e]+(f[e]-l.s[e])*y,this.propType==="multidimensional")t[e]=C;else t=C}}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],g=i[2],H=i[3],p,y,z,m,U;if(y=r*l+e*h+n*g+s*H,y<0)y=-y,l=-l,h=-h,g=-g,H=-H;if(1-y>0.000001)p=Math.acos(y),z=Math.sin(p),m=Math.sin((1-a)*p)/z,U=Math.sin(a*p)/z;else m=1-a,U=a;return t[0]=m*r+U*l,t[1]=m*e+U*h,t[2]=m*n+U*g,t[3]=m*s+U*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),g=r*e*n-s*l*h,H=s*l*n+r*e*h,p=s*e*n+r*l*h,y=r*l*n-s*e*h;return[H,p,y,g]}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 g=i.k[0].s.length;this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g);for(r=0;r<g;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",g)},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(b,u,f){var k=f.lastIndex,R,V,L,w,Z,I,F,J,C,j=this.keyframes;if(b<j[0].t-this.offsetTime)R=j[0].s[0],L=!0,k=0;else if(b>=j[j.length-1].t-this.offsetTime)R=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],L=!0;else{var W=k,x=j.length-1,K=!0,c,v,Q;while(K){if(c=j[W],v=j[W+1],v.t-this.offsetTime>b)break;if(W<x-1)W+=1;else K=!1}if(Q=this.keyframesMetadata[W]||{},L=c.h===1,k=W,!L){if(b>=v.t-this.offsetTime)J=1;else if(b<c.t-this.offsetTime)J=0;else{var Y;if(Q.__fnct)Y=Q.__fnct;else Y=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y).get,Q.__fnct=Y;J=Y((b-(c.t-this.offsetTime))/(v.t-this.offsetTime-(c.t-this.offsetTime)))}V=v.s?v.s[0]:c.e[0]}R=c.s[0]}I=u._length,F=R.i[0].length,f.lastIndex=k;for(w=0;w<I;w+=1)for(Z=0;Z<F;Z+=1)C=L?R.i[w][Z]:R.i[w][Z]+(V.i[w][Z]-R.i[w][Z])*J,u.i[w][Z]=C,C=L?R.o[w][Z]:R.o[w][Z]+(V.o[w][Z]-R.o[w][Z])*J,u.o[w][Z]=C,C=L?R.v[w][Z]:R.v[w][Z]+(V.v[w][Z]-R.v[w][Z])*J,u.v[w][Z]=C}function a(){var b=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,f=this.keyframes[this.keyframes.length-1].t-this.offsetTime,k=this._caching.lastFrame;if(!(k!==o&&(k<u&&b<u||k>f&&b>f)))this._caching.lastIndex=k<b?this._caching.lastIndex:0,this.interpolateShape(b,this.pv,this._caching);return this._caching.lastFrame=b,this.pv}function t(){this.paths=this.localShapeCollection}function r(b,u){if(b._length!==u._length||b.c!==u.c)return!1;var f,k=b._length;for(f=0;f<k;f+=1)if(b.v[f][0]!==u.v[f][0]||b.v[f][1]!==u.v[f][1]||b.o[f][0]!==u.o[f][0]||b.o[f][1]!==u.o[f][1]||b.i[f][0]!==u.i[f][0]||b.i[f][1]!==u.i[f][1])return!1;return!0}function e(b){if(!r(this.v,b))this.v=shapePool.clone(b),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 b;if(this.kf)b=this.pv;else if(this.data.ks)b=this.data.ks.k;else b=this.data.pt.k;var u,f=this.effectsSequence.length;for(u=0;u<f;u+=1)b=this.effectsSequence[u](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}function s(b,u,f){this.propType="shape",this.comp=b.comp,this.container=b,this.elem=b,this.data=u,this.k=!1,this.kf=!1,this._mdf=!1;var k=f===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(b){this.effectsSequence.push(b),this.container.addDynamicProperty(this)}s.prototype.interpolateShape=i,s.prototype.getValue=n,s.prototype.setVValue=e,s.prototype.addEffect=l;function h(b,u,f){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=f===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 g=function(){var b=roundCorner;function u(f,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=f,this.comp=f.comp,this.frameId=-1,this.initDynamicPropertyContainer(f),this.p=PropertyFactory.getProp(f,k.p,1,0,this),this.s=PropertyFactory.getProp(f,k.s,1,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertEllToPath()}return u.prototype={reset:t,getValue:function f(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertEllToPath()},convertEllToPath:function f(){var k=this.p.v[0],R=this.p.v[1],V=this.s.v[0]/2,L=this.s.v[1]/2,w=this.d!==3,Z=this.v;Z.v[0][0]=k,Z.v[0][1]=R-L,Z.v[1][0]=w?k+V:k-V,Z.v[1][1]=R,Z.v[2][0]=k,Z.v[2][1]=R+L,Z.v[3][0]=w?k-V:k+V,Z.v[3][1]=R,Z.i[0][0]=w?k-V*b:k+V*b,Z.i[0][1]=R-L,Z.i[1][0]=w?k+V:k-V,Z.i[1][1]=R-L*b,Z.i[2][0]=w?k+V*b:k-V*b,Z.i[2][1]=R+L,Z.i[3][0]=w?k-V:k+V,Z.i[3][1]=R+L*b,Z.o[0][0]=w?k+V*b:k-V*b,Z.o[0][1]=R-L,Z.o[1][0]=w?k+V:k-V,Z.o[1][1]=R+L*b,Z.o[2][0]=w?k-V*b:k+V*b,Z.o[2][1]=R+L,Z.o[3][0]=w?k-V:k+V,Z.o[3][1]=R-L*b}},extendPrototype([DynamicPropertyContainer],u),u}(),H=function(){function b(u,f){if(this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=u,this.comp=u.comp,this.data=f,this.frameId=-1,this.d=f.d,this.initDynamicPropertyContainer(u),f.sy===1)this.ir=PropertyFactory.getProp(u,f.ir,0,0,this),this.is=PropertyFactory.getProp(u,f.is,0,0.01,this),this.convertToPath=this.convertStarToPath;else this.convertToPath=this.convertPolygonToPath;if(this.pt=PropertyFactory.getProp(u,f.pt,0,0,this),this.p=PropertyFactory.getProp(u,f.p,1,0,this),this.r=PropertyFactory.getProp(u,f.r,0,degToRads,this),this.or=PropertyFactory.getProp(u,f.or,0,0,this),this.os=PropertyFactory.getProp(u,f.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 b.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 f=Math.floor(this.pt.v)*2,k=Math.PI*2/f,R=!0,V=this.or.v,L=this.ir.v,w=this.os.v,Z=this.is.v,I=2*Math.PI*V/(f*2),F=2*Math.PI*L/(f*2),J,C,j,W,x=-Math.PI/2;x+=this.r.v;var K=this.data.d===3?-1:1;this.v._length=0;for(J=0;J<f;J+=1){C=R?V:L,j=R?w:Z,W=R?I:F;var c=C*Math.cos(x),v=C*Math.sin(x),Q=c===0&&v===0?0:v/Math.sqrt(c*c+v*v),Y=c===0&&v===0?0:-c/Math.sqrt(c*c+v*v);c+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(c,v,c-Q*W*j*K,v-Y*W*j*K,c+Q*W*j*K,v+Y*W*j*K,J,!0),R=!R,x+=k*K}},convertPolygonToPath:function u(){var f=Math.floor(this.pt.v),k=Math.PI*2/f,R=this.or.v,V=this.os.v,L=2*Math.PI*R/(f*4),w,Z=-Math.PI*0.5,I=this.data.d===3?-1:1;Z+=this.r.v,this.v._length=0;for(w=0;w<f;w+=1){var F=R*Math.cos(Z),J=R*Math.sin(Z),C=F===0&&J===0?0:J/Math.sqrt(F*F+J*J),j=F===0&&J===0?0:-F/Math.sqrt(F*F+J*J);F+=+this.p.v[0],J+=+this.p.v[1],this.v.setTripleAt(F,J,F-C*L*V*I,J-j*L*V*I,F+C*L*V*I,J+j*L*V*I,w,!0),Z+=k*I}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),p=function(){function b(u,f){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=f.d,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,f.p,1,0,this),this.s=PropertyFactory.getProp(u,f.s,1,0,this),this.r=PropertyFactory.getProp(u,f.r,0,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertRectToPath()}return b.prototype={convertRectToPath:function u(){var f=this.p.v[0],k=this.p.v[1],R=this.s.v[0]/2,V=this.s.v[1]/2,L=bmMin(R,V,this.r.v),w=L*(1-roundCorner);if(this.v._length=0,this.d===2||this.d===1)if(this.v.setTripleAt(f+R,k-V+L,f+R,k-V+L,f+R,k-V+w,0,!0),this.v.setTripleAt(f+R,k+V-L,f+R,k+V-w,f+R,k+V-L,1,!0),L!==0)this.v.setTripleAt(f+R-L,k+V,f+R-L,k+V,f+R-w,k+V,2,!0),this.v.setTripleAt(f-R+L,k+V,f-R+w,k+V,f-R+L,k+V,3,!0),this.v.setTripleAt(f-R,k+V-L,f-R,k+V-L,f-R,k+V-w,4,!0),this.v.setTripleAt(f-R,k-V+L,f-R,k-V+w,f-R,k-V+L,5,!0),this.v.setTripleAt(f-R+L,k-V,f-R+L,k-V,f-R+w,k-V,6,!0),this.v.setTripleAt(f+R-L,k-V,f+R-w,k-V,f+R-L,k-V,7,!0);else this.v.setTripleAt(f-R,k+V,f-R+w,k+V,f-R,k+V,2),this.v.setTripleAt(f-R,k-V,f-R,k-V+w,f-R,k-V,3);else if(this.v.setTripleAt(f+R,k-V+L,f+R,k-V+w,f+R,k-V+L,0,!0),L!==0)this.v.setTripleAt(f+R-L,k-V,f+R-L,k-V,f+R-w,k-V,1,!0),this.v.setTripleAt(f-R+L,k-V,f-R+w,k-V,f-R+L,k-V,2,!0),this.v.setTripleAt(f-R,k-V+L,f-R,k-V+L,f-R,k-V+w,3,!0),this.v.setTripleAt(f-R,k+V-L,f-R,k+V-w,f-R,k+V-L,4,!0),this.v.setTripleAt(f-R+L,k+V,f-R+L,k+V,f-R+w,k+V,5,!0),this.v.setTripleAt(f+R-L,k+V,f+R-w,k+V,f+R-L,k+V,6,!0),this.v.setTripleAt(f+R,k+V-L,f+R,k+V-L,f+R,k+V-w,7,!0);else this.v.setTripleAt(f-R,k-V,f-R+w,k-V,f-R,k-V,1,!0),this.v.setTripleAt(f-R,k+V,f-R,k+V-w,f-R,k+V,2,!0),this.v.setTripleAt(f+R,k+V,f+R-w,k+V,f+R,k+V,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],b),b}();function y(b,u,f){var k;if(f===3||f===4){var R=f===3?u.pt:u.ks,V=R.k;if(V.length)k=new h(b,u,f);else k=new s(b,u,f)}else if(f===5)k=new p(b,u);else if(f===6)k=new g(b,u);else if(f===7)k=new H(b,u);if(k.k)b.addDynamicProperty(k);return k}function z(){return s}function m(){return h}var U={};return U.getShapeProp=y,U.getConstructorFunction=z,U.getKeyframedConstructorFunction=m,U}();/*!
3
3
  Transformation Matrix v2.0
4
4
  (c) Epistemex 2014-2015
5
5
  www.epistemex.com
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),Q=i(c);return this._t(m,-Q,0,0,Q,m,0,0,0,0,1,0,0,0,0,1)}function n(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(1,0,0,0,0,m,-Q,0,0,Q,m,0,0,0,0,1)}function s(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(m,0,Q,0,0,1,0,0,-Q,0,m,0,0,0,0,1)}function l(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(m,-Q,0,0,Q,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 g(c,m){return this.shear(a(c),a(m))}function H(c,m){var Q=o(m),Y=i(m);return this._t(Q,Y,0,0,-Y,Q,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(Q,-Y,0,0,Y,Q,0,0,0,0,1,0,0,0,0,1)}function f(c,m,Q){if(!Q&&Q!==0)Q=1;if(c===1&&m===1&&Q===1)return this;return this._t(c,0,0,0,0,m,0,0,0,0,Q,0,0,0,0,1)}function y(c,m,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so){return this.props[0]=c,this.props[1]=m,this.props[2]=Q,this.props[3]=Y,this.props[4]=T,this.props[5]=M,this.props[6]=E,this.props[7]=oo,this.props[8]=io,this.props[9]=lo,this.props[10]=yo,this.props[11]=Jo,this.props[12]=So,this.props[13]=go,this.props[14]=Ho,this.props[15]=so,this}function z(c,m,Q){if(Q=Q||0,c!==0||m!==0||Q!==0)return this._t(1,0,0,0,0,1,0,0,0,0,1,0,c,m,Q,1);return this}function v(c,m,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so){var N=this.props;if(c===1&&m===0&&Q===0&&Y===0&&T===0&&M===1&&E===0&&oo===0&&io===0&&lo===0&&yo===1&&Jo===0)return N[12]=N[12]*c+N[15]*So,N[13]=N[13]*M+N[15]*go,N[14]=N[14]*yo+N[15]*Ho,N[15]*=so,this._identityCalculated=!1,this;var uo=N[0],hi=N[1],ai=N[2],oi=N[3],ti=N[4],ri=N[5],$o=N[6],ui=N[7],fi=N[8],To=N[9],pi=N[10],Xo=N[11],xi=N[12],ra=N[13],ea=N[14],na=N[15];return N[0]=uo*c+hi*T+ai*io+oi*So,N[1]=uo*m+hi*M+ai*lo+oi*go,N[2]=uo*Q+hi*E+ai*yo+oi*Ho,N[3]=uo*Y+hi*oo+ai*Jo+oi*so,N[4]=ti*c+ri*T+$o*io+ui*So,N[5]=ti*m+ri*M+$o*lo+ui*go,N[6]=ti*Q+ri*E+$o*yo+ui*Ho,N[7]=ti*Y+ri*oo+$o*Jo+ui*so,N[8]=fi*c+To*T+pi*io+Xo*So,N[9]=fi*m+To*M+pi*lo+Xo*go,N[10]=fi*Q+To*E+pi*yo+Xo*Ho,N[11]=fi*Y+To*oo+pi*Jo+Xo*so,N[12]=xi*c+ra*T+ea*io+na*So,N[13]=xi*m+ra*M+ea*lo+na*go,N[14]=xi*Q+ra*E+ea*yo+na*Ho,N[15]=xi*Y+ra*oo+ea*Jo+na*so,this._identityCalculated=!1,this}function U(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 b(){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 p(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 R(c,m,Q){return{x:c*this.props[0]+m*this.props[4]+Q*this.props[8]+this.props[12],y:c*this.props[1]+m*this.props[5]+Q*this.props[9]+this.props[13],z:c*this.props[2]+m*this.props[6]+Q*this.props[10]+this.props[14]}}function V(c,m,Q){return c*this.props[0]+m*this.props[4]+Q*this.props[8]+this.props[12]}function L(c,m,Q){return c*this.props[1]+m*this.props[5]+Q*this.props[9]+this.props[13]}function w(c,m,Q){return c*this.props[2]+m*this.props[6]+Q*this.props[10]+this.props[14]}function Z(){var c=this.props[0]*this.props[5]-this.props[1]*this.props[4],m=this.props[5]/c,Q=-this.props[1]/c,Y=-this.props[4]/c,T=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]=Q,oo.props[4]=Y,oo.props[5]=T,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 F(c){var m,Q=c.length,Y=[];for(m=0;m<Q;m+=1)Y[m]=I(c[m]);return Y}function J(c,m,Q){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]=Q[0],Y[5]=Q[1];else{var T=this.props[0],M=this.props[1],E=this.props[4],oo=this.props[5],io=this.props[12],lo=this.props[13];Y[0]=c[0]*T+c[1]*E+io,Y[1]=c[0]*M+c[1]*oo+lo,Y[2]=m[0]*T+m[1]*E+io,Y[3]=m[0]*M+m[1]*oo+lo,Y[4]=Q[0]*T+Q[1]*E+io,Y[5]=Q[0]*M+Q[1]*oo+lo}return Y}function C(c,m,Q){var Y;if(this.isIdentity())Y=[c,m,Q];else Y=[c*this.props[0]+m*this.props[4]+Q*this.props[8]+this.props[12],c*this.props[1]+m*this.props[5]+Q*this.props[9]+this.props[13],c*this.props[2]+m*this.props[6]+Q*this.props[10]+this.props[14]];return Y}function j(c,m){if(this.isIdentity())return c+","+m;var Q=this.props;return Math.round((c*Q[0]+m*Q[4]+Q[12])*100)/100+","+Math.round((c*Q[1]+m*Q[5]+Q[13])*100)/100}function W(){var c=0,m=this.props,Q="matrix3d(",Y=1e4;while(c<16)Q+=t(m[c]*Y)/Y,Q+=c===15?")":",",c+=1;return Q}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]),Q=x(c[1]),Y=x(c[4]),T=x(c[5]),M=x(c[12]),E=x(c[13]);return"matrix("+m+","+Q+","+Y+","+T+","+M+","+E+")"}return function(){this.reset=r,this.rotate=e,this.rotateX=n,this.rotateY=s,this.rotateZ=l,this.skew=g,this.skewFromAxis=H,this.shear=h,this.scale=f,this.setTransform=y,this.translate=z,this.transform=v,this.multiply=U,this.applyToPoint=R,this.applyToX=V,this.applyToY=L,this.applyToZ=w,this.applyToPointArray=C,this.applyToTriplePoints=J,this.applyToPointStringified=j,this.toCSS=W,this.to2dCSS=K,this.clone=p,this.cloneFromProps=k,this.equals=u,this.inversePoints=F,this.inversePoint=I,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=b,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 Li==="undefined"?"undefined":_typeof$3(Li))==="object"&&typeof Gi!=="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 g,H;if(h.s*r<=t)g=0;else g=(h.s*r-t)/a;if(h.e*r>=t+a)H=1;else H=(h.e*r-t)/a;n.push([g,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,g,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,U;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{g=this.releasePathsData(v.pathsData);for(l=0;l<h;l+=1)H=bez.getSegmentsLength(e.shapes[l]),g.push(H),f+=H.totalLength;v.totalShapeLength=f,v.pathsData=g}y+=f,v.shape._mdf=!0}var b=i,u=a,p=0,k;for(n=s-1;n>=0;n-=1)if(v=this.shapes[n],v.shape._mdf){if(U=v.localShapeCollection,U.releaseShapes(),this.m===2&&s>1)k=this.calculateShapeEdges(i,a,v.totalShapeLength,p,y),p+=v.totalShapeLength;else k=[[b,u]];h=k.length;for(l=0;l<h;l+=1){if(b=k[l][0],u=k[l][1],z.length=0,u<=1)z.push({s:v.totalShapeLength*b,e:v.totalShapeLength*u});else if(b>=1)z.push({s:v.totalShapeLength*(b-1),e:v.totalShapeLength*(u-1)});else z.push({s:v.totalShapeLength*b,e:v.totalShapeLength}),z.push({s:0,e:v.totalShapeLength*(u-1)});var R=this.addShapes(v,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var V=v.shape.paths.shapes[v.shape.paths._length-1];if(V.c){var L=R.pop();this.addPaths(R,U),R=this.addShapes(v,z[1],L)}else this.addPaths(R,U),R=this.addShapes(v,z[1])}this.addPaths(R,U)}}v.shape.paths=U}}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,g,H,f,y,z=[],v,U=!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(g=f[s-1],h+g.addedLength<i.s)h+=g.addedLength,a.c=!1;else if(h>i.e){a.c=!1;break}else{if(i.s<=h&&i.e>=h+g.addedLength)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[s],r[e].v[s],a,H,U),U=!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)/g.addedLength,(i.e-h)/g.addedLength,f[s-1]),this.addSegmentFromArray(y,a,H,U),U=!1,a.c=!1;h+=g.addedLength,H+=1}if(r[e].c&&f.length){if(g=f[s-1],h<=i.e){var b=f[s-1].addedLength;if(i.s<=h&&i.e>=h+b)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[0],r[e].v[0],a,H,U),U=!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)/b,(i.e-h)/b,f[s-1]),this.addSegmentFromArray(y,a,H,U),U=!1,a.c=!1}else a.c=!1;h+=g.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(),U=!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,g,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,g=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,g,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 g,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)g=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)g=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 g=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){g=[],H=[];var f=this.px,y=this.py;if(f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t)g[0]=f.getValueAtTime((f.keyframes[0].t+0.01)/h,0),g[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)g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/h,0),g[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 g=[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,g=H;this.v.rotate(-Math.atan2(g[1]-H[1],g[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,g){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(g||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,g){return new n(l,h,g)}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 g=this.elemsData[t].it,H=g[g.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,U=this.rMatrix.props,b=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 p,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(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[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(p=0;p<k;p+=1)a[p]=this.matrix.props[p];this.matrix.reset()}else{this.matrix.reset();for(p=0;p<k;p+=1)a[p]=this.matrix.props[p]}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,g,H=0,f,y,z,v,U,b;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)),g=h?Math.min(h/2,i)/h:0,U=e[0]+(l[0]-e[0])*g,f=U,b=e[1]-(e[1]-l[1])*g,y=b,z=f-(f-e[0])*roundCorner,v=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,U,b,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)),g=h?Math.min(h/2,i)/h:0,z=e[0]+(l[0]-e[0])*g,f=z,v=e[1]+(l[1]-e[1])*g,y=v,U=f-(f-e[0])*roundCorner,b=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,U,b,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,g=i[1]-Math.sin(a)*t*r;o.setTripleAt(h,g,h+Math.cos(s)*e,g-Math.sin(s)*e,h+Math.cos(l)*n,g-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],g=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]-g[0],2)+Math.pow(l[1]-g[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),g=i.point(s);setPoint(o,g,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,g;for(a=0;a<t;a+=1){if(h=this.shapes[a],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)g.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 g=lineIntersection(n,s,r,e);if(g===null)g=n;return new PolynomialBezier(a,h,g,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)),g=h?pointDistance(h,e):pointDistance(e,n)/2,H=polarOffset(e,s,2*g*roundCorner);return o.setXYAt(H[0],H[1],"o",o.length()-1),H=polarOffset(n,l,2*g*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 g=null,H=null;for(n=0;n<h.length;n+=1){var f=h[n];if(H)g=joinLines(r,H,f[0],a,t);H=f[f.length-1];for(s=0;s<f.length;s+=1){if(l=f[s],g&&pointEqual(l.points[0],g))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()),g=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,g;for(a=0;a<t;a+=1){if(h=this.shapes[a],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)g.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,g=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(x){var K=x.split(","),c,m=K.length,Q=[];for(c=0;c<m;c+=1)if(K[c]!=="sans-serif"&&K[c]!=="monospace")Q.push(K[c]);return Q.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 Q=m.offsetWidth;return m.style.fontFamily=f(x)+", "+K,{node:m,w:Q,parent:c}}function z(){var x,K=this.fonts.length,c,m,Q=K;for(x=0;x<K;x+=1)if(this.fonts[x].loaded)Q-=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)Q-=1,this.fonts[x].loaded=!0;else if(c=this.fonts[x].sansCase.node,m=this.fonts[x].sansCase.w,c.offsetWidth!==m)Q-=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(Q!==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,Q=getFontProperties(x);if(c==="svg"){var Y=createNS("text");if(Y.style.fontSize="100px",Y.setAttribute("font-family",x.fFamily),Y.setAttribute("font-style",Q.style),Y.setAttribute("font-weight",Q.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 T=new OffscreenCanvas(500,500).getContext("2d");T.font=Q.style+" "+Q.weight+" 100px "+x.fFamily,m=T}function M(E){if(c==="svg")return m.textContent=E,m.getComputedTextLength();return m.measureText(E).width}return{measureText:M}}function U(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,Q=c.length,Y=Q;for(m=0;m<Q;m+=1){var T=!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)T=!1;if(T){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)T=!1;if(T){var io=createTag("link");io.setAttribute("f-forigin",c[m].fOrigin),io.setAttribute("f-origin",c[m].origin),io.type="text/css",io.rel="stylesheet",io.href=c[m].fPath,document.body.appendChild(io)}}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)T=!1;if(T){var lo=createTag("link");lo.setAttribute("f-forigin",c[m].fOrigin),lo.setAttribute("f-origin",c[m].origin),lo.setAttribute("rel","stylesheet"),lo.setAttribute("href",c[m].fPath),K.appendChild(lo)}}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 b(x){if(!x)return;if(!this.chars)this.chars=[];var K,c=x.length,m,Q=this.chars.length,Y;for(K=0;K<c;K+=1){m=0,Y=!1;while(m<Q){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]),Q+=1}}function u(x,K,c){var m=0,Q=this.chars.length;while(m<Q){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 p(x,K,c){var m=this.getFontByName(K),Q=x;if(!m.cache[Q]){var Y=m.helper;if(x===" "){var T=Y.measureText("|"+x+"|"),M=Y.measureText("||");m.cache[Q]=(T-M)/100}else m.cache[Q]=Y.measureText(x)/100}return m.cache[Q]*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 R(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 V(x,K){var c=x.toString(16)+K.toString(16);return H.indexOf(c)!==-1}function L(x){return x===l}function w(x){return x===s}function Z(x){var K=R(x);if(K>=h&&K<=g)return!0;return!1}function I(x){return Z(x.substr(0,2))&&Z(x.substr(2,2))}function F(x){return a.indexOf(x)!==-1}function J(x,K){var c=R(x.substr(K,2));if(c!==t)return!1;var m=0;K+=2;while(m<5){if(c=R(x.substr(K,2)),c<e||c>n)return!1;m+=1,K+=2}return R(x.substr(K,2))===r}function C(){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=V,j.isZeroWidthJoiner=L,j.isFlagEmoji=I,j.isRegionalCode=Z,j.isCombinedCharacter=F,j.isRegionalFlag=J,j.isVariationSelector=w,j.BLACK_FLAG_CODE_POINT=t;var W={addChars:b,addFonts:U,getCharData:u,getFontByName:k,measureText:p,checkLoadedFonts:z,setIsLoaded:C};return j.prototype=W,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=[],g,H,f=createElementID(),y,z,v,U,b="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)b="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 p;if(s[r].x.k!==0)b="mask",u="mask",U=PropertyFactory.getProp(this.element,s[r].x,0,null,this.element),p=createElementID(),z=createNS("filter"),z.setAttribute("id",p),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,U=null;if(this.storedData[r]={elem:n,x:U,expan:v,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},s[r].mode==="i"){H=h.length;var k=createNS("g");for(g=0;g<H;g+=1)k.appendChild(h[g]);var R=createNS("mask");R.setAttribute("mask-type","alpha"),R.setAttribute("id",f+"_"+l),R.appendChild(n),t.appendChild(R),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(b),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 g=createNS("feComponentTransfer");g.setAttribute("in","SourceGraphic"),r.appendChild(g);var H=createNS("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),g.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 g=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),g.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=g,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 g;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,U,b,u,p,k=f.styles.length,R=f.lvl,V,L,w,Z;for(p=0;p<k;p+=1){if(b=f.sh._mdf||y,f.styles[p].lvl<R){L=i.reset(),w=R-f.styles[p].lvl,Z=f.transformers.length-1;while(!b&&w>0)b=f.transformers[Z].mProps._mdf||b,w-=1,Z-=1;if(b){w=R-f.styles[p].lvl,Z=f.transformers.length-1;while(w>0)L.multiply(f.transformers[Z].mProps.v),w-=1,Z-=1}}else L=o;if(V=f.sh.paths,v=V._length,b){U="";for(z=0;z<v;z+=1)if(u=V.shapes[z],u&&u._length)U+=buildShapeString(u,u._length,u.c,L);f.caches[p]=U}else U=f.caches[p];f.styles[p].d+=H.hd===!0?"":U,f.styles[p]._mdf=b||f.styles[p]._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),g(H,f,y)}function h(H,f,y){var z=f.gf,v=f.g._hasOpacity,U=f.s.v,b=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 p=H.t===1?"x1":"cx",k=p==="x1"?"y1":"cy";if(z.setAttribute(p,U[0]),z.setAttribute(k,U[1]),v&&!f.g._collapsable)f.of.setAttribute(p,U[0]),f.of.setAttribute(k,U[1])}var R,V,L,w;if(f.g._cmdf||y){R=f.cst;var Z=f.g.c;L=R.length;for(V=0;V<L;V+=1)w=R[V],w.setAttribute("offset",Z[V*4]+"%"),w.setAttribute("stop-color","rgb("+Z[V*4+1]+","+Z[V*4+2]+","+Z[V*4+3]+")")}if(v&&(f.g._omdf||y)){var I=f.g.o;if(f.g._collapsable)R=f.cst;else R=f.ost;L=R.length;for(V=0;V<L;V+=1){if(w=R[V],!f.g._collapsable)w.setAttribute("offset",I[V*2]+"%");w.setAttribute("stop-opacity",I[V*2+1])}}if(H.t===1){if(f.e._mdf||y){if(z.setAttribute("x2",b[0]),z.setAttribute("y2",b[1]),v&&!f.g._collapsable)f.of.setAttribute("x2",b[0]),f.of.setAttribute("y2",b[1])}}else{var F;if(f.s._mdf||f.e._mdf||y){if(F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2)),z.setAttribute("r",F),v&&!f.g._collapsable)f.of.setAttribute("r",F)}if(f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||y){if(!F)F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2));var J=Math.atan2(b[1]-U[1],b[0]-U[0]),C=f.h.v;if(C>=1)C=0.99;else if(C<=-1)C=-0.99;var j=F*C,W=Math.cos(J+f.a.v)*j+U[0],x=Math.sin(J+f.a.v)*j+U[1];if(z.setAttribute("fx",W),z.setAttribute("fy",x),v&&!f.g._collapsable)f.of.setAttribute("fx",W),f.of.setAttribute("fy",x)}}}function g(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,g,H,f=[],y=[],z,v,U;for(l=h;l>=0;l-=1){if(U=this.searchProcessedElement(o[l]),!U)o[l]._render=n;else i[l]=a[U-1];if(o[l].ty==="fl"||o[l].ty==="st"||o[l].ty==="gf"||o[l].ty==="gs"||o[l].ty==="no"){if(!U)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(!U)i[l]=this.createGroupElement(o[l]);else{H=i[l].it.length;for(g=0;g<H;g+=1)i[l].prevViewData[g]=i[l].it[g]}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(!U)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(!U)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(!U)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(!U)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,g=0,H=0,f=0,y=[],z=0,v=0,U,b,u=i.getFontByName(o.f),p,k=0,R=getFontProperties(u);o.fWeight=R.weight,o.fStyle=R.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),e=o.finalText.length,o.finalLineHeight=o.lh;var V=o.tr/1000*o.finalSize,L;if(o.sz){var w=!0,Z=o.sz[0],I=o.sz[1],F,J;while(w){J=this.buildFinalText(o.t),F=0,z=0,e=J.length,V=o.tr/1000*o.finalSize;var C=-1;for(r=0;r<e;r+=1){if(L=J[r].charCodeAt(0),n=!1,J[r]===" ")C=r;else if(L===13||L===3)z=0,n=!0,F+=o.finalLineHeight||o.finalSize*1.2;if(i.chars)p=i.getCharData(J[r],u.fStyle,u.fFamily),k=n?0:p.w*o.finalSize/100;else k=i.measureText(J[r],o.f,o.finalSize);if(z+k>Z&&J[r]!==" "){if(C===-1)e+=1;else r=C;F+=o.finalLineHeight||o.finalSize*1.2,J.splice(r,C===r?1:0,"\r"),C=-1,z=0}else z+=k,z+=V}if(F+=u.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&I<F)o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s;else o.finalText=J,e=o.finalText.length,w=!1}}z=-V,k=0;var j=0,W;for(r=0;r<e;r+=1){if(n=!1,W=o.finalText[r],L=W.charCodeAt(0),L===13||L===3)j=0,y.push(z),v=z>v?z:v,z=-2*V,l="",n=!0,f+=1;else l=W;if(i.chars)p=i.getCharData(W,u.fStyle,i.getFontByName(o.f).fFamily),k=n?0:p.w*o.finalSize/100;else k=i.measureText(l,o.f,o.finalSize);if(W===" ")j+=k+V;else z+=k+V+j,j=0;if(t.push({l:k,an:k,add:g,n,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),h==2){if(g+=k,l===""||l===" "||r===e-1){if(l===""||l===" ")g-=k;while(H<=r)t[H].an=g,t[H].ind=s,t[H].extra=k,H+=1;s+=1,g=0}}else if(h==3){if(g+=k,l===""||r===e-1){if(l==="")g-=k;while(H<=r)t[H].an=g,t[H].ind=s,t[H].extra=k,H+=1;g=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;b=x.length;var m,Q,Y=[];for(U=0;U<b;U+=1){if(K=x[U],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;Q=0,m=K.s.b;for(r=0;r<e;r+=1)if(c=t[r],c.anIndexes[U]=Q,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(Q);Q+=1}a.a[U].s.totalChars=Q;var T=-1,M;if(K.s.rn===1)for(r=0;r<e;r+=1){if(c=t[r],T!=c.anIndexes[U])T=c.anIndexes[U],M=Y.splice(Math.floor(Math.random()*Y.length),1)[0];c.anIndexes[U]=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,g=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 g=1+this.xe.v/100;var H=BezierFactory.getBezierEasing(s,l,h,g).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 U=z-y;n=i(o(0,n+0.5-y),z-y);var b=-U/2+n,u=U/2;f=Math.sqrt(1-b*b/(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 p=this.sm.v*0.01;if(p===0)p=0.00000001;var k=0.5-p*0.5;if(f<k)f=0;else if(f=(f-k)/p,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,g=this.e.v/s+l;if(h>g){var H=h;h=g,g=H}this.finalS=h,this.finalE=g}},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,g,H,f=o.l,y,z,v,U,b,u,p,k,R,V,L,w,Z,I,F;if(this._hasMaskedPath){if(F=this._pathData.m,!this._pathData.n||this._pathData._mdf){var J=F.v;if(this._pathData.r.v)J=J.reverse();y={tLength:0,segments:[]},H=J._length-1;var C;w=0;for(g=0;g<H;g+=1)C=bez.buildBezierData(J.v[g],J.v[g+1],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[g+1][0]-J.v[g+1][0],J.i[g+1][1]-J.v[g+1][1]]),y.tLength+=C.segmentLength,y.segments.push(C),w+=C.segmentLength;if(g=H,F.v.c)C=bez.buildBezierData(J.v[g],J.v[0],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[0][0]-J.v[0][0],J.i[0][1]-J.v[0][1]]),y.tLength+=C.segmentLength,y.segments.push(C),w+=C.segmentLength;this._pathData.pi=y}if(y=this._pathData.pi,z=this._pathData.f.v,p=0,u=1,U=0,b=!0,V=y.segments,z<0&&F.v.c){if(y.tLength<Math.abs(z))z=-Math.abs(z)%y.tLength;p=V.length-1,R=V[p].points,u=R.length-1;while(z<0)if(z+=R[u].partialLength,u-=1,u<0)p-=1,R=V[p].points,u=R.length-1}R=V[p].points,k=R[u-1],v=R[u],L=v.partialLength}H=f.length,l=0,h=0;var j=o.finalSize*1.2*0.714,W=!0,x,K,c,m,Q;m=t.length;var Y,T=-1,M,E,oo,io=z,lo=p,yo=u,Jo=-1,So,go,Ho,so,N,uo,hi,ai,oi="",ti=this.defaultPropsArray,ri;if(o.j===2||o.j===1){var $o=0,ui=0,fi=o.j===2?-0.5:-1,To=0,pi=!0;for(g=0;g<H;g+=1)if(f[g].n){if($o)$o+=ui;while(To<g)f[To].animatorJustifyOffset=$o,To+=1;$o=0,pi=!0}else{for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(pi&&o.j===2)ui+=x.t.v*fi;if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)$o+=x.t.v*Y[0]*fi;else $o+=x.t.v*Y*fi}pi=!1}if($o)$o+=ui;while(To<g)f[To].animatorJustifyOffset=$o,To+=1}for(g=0;g<H;g+=1){if(e.reset(),So=1,f[g].n){if(l=0,h+=o.yOffset,h+=W?1:0,z=io,W=!1,this._hasMaskedPath)p=lo,u=yo,R=V[p].points,k=R[u-1],v=R[u],L=v.partialLength,U=0;oi="",ai="",uo="",ri="",ti=this.defaultPropsArray}else{if(this._hasMaskedPath){if(Jo!==f[g].line){switch(o.j){case 1:z+=w-o.lineWidths[f[g].line];break;case 2:z+=(w-o.lineWidths[f[g].line])/2;break;default:break}Jo=f[g].line}if(T!==f[g].ind){if(f[T])z+=f[T].extra;z+=f[g].an/2,T=f[g].ind}z+=a[0]*f[g].an*0.005;var Xo=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[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.p.v[0]*Y[0];else Xo+=x.p.v[0]*Y;if(x.a.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.a.v[0]*Y[0];else Xo+=x.a.v[0]*Y}if(b=!0,this._pathData.a.v)z=f[0].an*0.5+(w-this._pathData.f.v-f[0].an*0.5-f[f.length-1].an*0.5)*T/(H-1),z+=this._pathData.f.v;while(b)if(U+L>=z+Xo||!R)Z=(z+Xo-U)/v.partialLength,E=k.point[0]+(v.point[0]-k.point[0])*Z,oo=k.point[1]+(v.point[1]-k.point[1])*Z,e.translate(-a[0]*f[g].an*0.005,-(a[1]*j)*0.01),b=!1;else if(R){if(U+=v.partialLength,u+=1,u>=R.length)if(u=0,p+=1,!V[p])if(F.v.c)u=0,p=0,R=V[p].points;else U-=v.partialLength,R=null;else R=V[p].points;if(R)k=v,v=R[u],L=v.partialLength}M=f[g].an/2-f[g].add,e.translate(-M,0,0)}else M=f[g].an/2-f[g].add,e.translate(-M,0,0),e.translate(-a[0]*f[g].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[g].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)go=[o.sc[0],o.sc[1],o.sc[2]];else go=[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[g].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[g].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[g].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)So+=(x.o.v*Y[0]-So)*Y[0];else So+=(x.o.v*Y-So)*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)go[N]+=(x.sc.v[N]-go[N])*Y[0];else go[N]+=(x.sc.v[N]-go[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[g].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)hi="rgb("+Math.round(go[0]*255)+","+Math.round(go[1]*255)+","+Math.round(go[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 xi=Math.atan(I)*180/Math.PI;if(v.point[0]<k.point[0])xi+=180;e.rotate(-xi*Math.PI/180)}if(e.translate(E,oo,0),z-=a[0]*f[g].an*0.005,f[g+1]&&T!==f[g+1].ind)z+=f[g].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[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[g].line]),0,0);break;case 2:e.translate(f[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[g].line])/2,0,0);break;default:break}e.translate(0,-o.ls),e.translate(M,0,0),e.translate(a[0]*f[g].an*0.005,a[1]*j*0.01,0),l+=f[g].l+o.tr*0.001*o.finalSize}if(n==="html")oi=e.toCSS();else if(n==="svg")oi=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=So}if(s<=g)Q=new LetterProps(ri,uo,hi,ai,oi,ti),this.renderedLetters.push(Q),s+=1,this.lettersChangedFlag=!0;else Q=this.renderedLetters[g],this.lettersChangedFlag=Q.update(ri,uo,hi,ai,oi,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,g="",H=this.data.singleShape,f=0,y=0,z=!0,v=a.tr*0.001*a.finalSize;if(H&&!s&&!a.sz){var U=this.textContainer,b="start";switch(a.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}U.setAttribute("text-anchor",b),U.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",U.appendChild(l),!this.textSpans[o])this.textSpans[o]={span:null,glyph:null};this.textSpans[o].span=l,y+=a.finalLineHeight}this.layerElement.appendChild(U)}else{var p=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=p>o?this.textSpans[o].span:createNS(s?"g":"text"),p<=o){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=l,s){var R=createNS("g");l.appendChild(R),this.textSpans[o].childSpan=R}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 V;if(k.t===1)V=new SVGCompElement(k.data,this.globalData,this);else{var L=emptyShapeData;if(k.data&&k.data.shapes)L=this.buildShapeData(k.data,a.finalSize);V=new SVGShapeElement(L,this.globalData,this)}if(this.textSpans[o].glyph){var w=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(w.layerElement),w.destroy()}if(this.textSpans[o].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[o].childSpan.appendChild(V.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",g)}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"),g=createNS("feColorMatrix");if(h.setAttribute("id",i),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.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(g),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=[],g=[],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;g.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;g.push(f)}this.addProcessedElement(o[e],e+1)}this.removeTransformFromStyleList(),this.closeStyles(h),n=g.length;for(e=0;e<n;e+=1)g[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,g,H;for(o=0;o<i;o+=1)if(H=this.stylesList[o],g=H.type,!((g==="st"||g==="gs")&&H.wi===0||!H.data._shouldRender||H.coOp===0||this.globalData.currentGlobalAlpha===0)){if(l.save(),n=H.elements,g==="st"||g==="gs")l.ctxStrokeStyle(g==="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(g==="fl"?H.co:H.grd);if(l.ctxOpacity(H.coOp),g!=="st"&&g!=="gs")h.beginPath();l.ctxTransform(H.preTransforms.finalTransform.props),t=n.length;for(a=0;a<t;a+=1){if(g==="st"||g==="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(g==="st"||g==="gs"){if(l.ctxStroke(),H.da)h.setLineDash(this.dashResetter)}}if(g!=="st"&&g!=="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]),g=i.h.v;if(g>=1)g=0.99;else if(g<=-1)g=-0.99;var H=l*g,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,U=i.g.c,b=1;for(z=0;z<v;z+=1){if(i.g._hasOpacity&&i.g._collapsable)b=i.g.o[z*2+1];r.addColorStop(U[z*4]/100,"rgba("+U[z*4+1]+","+U[z*4+2]+","+U[z*4+3]+","+b+")")}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,g,H,f,y,z,v,U,b,u=this.data.singleShape,p=o.tr*0.001*o.finalSize,k=0,R=0,V=!0,L=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=-p,R+=o.yOffset,R+=V?1:0,V=!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,R);U=createSizedArray(z-1);var w=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,b=[];for(g=1;g<H;g+=1){if(g===1)b.push(s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0));b.push(s.applyToX(v.o[g-1][0],v.o[g-1][1],0),s.applyToY(v.o[g-1][0],v.o[g-1][1],0),s.applyToX(v.i[g][0],v.i[g][1],0),s.applyToY(v.i[g][0],v.i[g][1],0),s.applyToX(v.v[g][0],v.v[g][1],0),s.applyToY(v.v[g][0],v.v[g][1],0))}b.push(s.applyToX(v.o[g-1][0],v.o[g-1][1],0),s.applyToY(v.o[g-1][0],v.o[g-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)),U[w]=b,w+=1}if(u)k+=n[r].l,k+=p;if(this.textSpans[L])this.textSpans[L].elem=U;else this.textSpans[L]={elem:U};L+=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,g=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(g!==h.fc)v.ctxFillStyle(h.fc),g=h.fc}else if(g!==this.values.fill)g=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),g=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(g==="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(g==="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,g,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(g=(-n+bmSqrt(h))/(2*e),g>0&&g<1)r[f].push(this.calculateF(g,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,g,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])g=this.textSpans[v],H=g.children[0];else g=createTag("div"),g.style.lineHeight=0,H=createNS("svg"),H.appendChild(h),styleDiv(g)}else if(!this.isMasked)if(this.textSpans[v])g=this.textSpans[v],h=this.textPaths[v];else g=createTag("span"),styleDiv(g),h=createTag("span"),styleDiv(h),g.appendChild(h);else h=this.textPaths[v]?this.textPaths[v]:createNS("text");if(this.globalData.fontManager.chars){var U=this.globalData.fontManager.getCharData(o.finalText[n],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),b;if(U)b=U.data;else b=null;if(f.reset(),b&&b.shapes&&b.shapes.length)y=b.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(g),b&&b.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 p=H.style,k="translate("+(u.x-1)+"px,"+(u.y-1)+"px)";p.transform=k,p.webkitTransform=k,l[n].yOffset=u.y-1}else H.setAttribute("width",1),H.setAttribute("height",1);g.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(g);var R=h.style,V="translate3d(0,"+-o.finalSize/1.2+"px,0)";R.transform=V,R.webkitTransform=V}else this.innerElem.appendChild(h);if(!this.isMasked)this.textSpans[v]=g;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 g=this.innerElem.getBBox();if(this.currentBBox.w!==g.width)this.currentBBox.w=g.width,this.svgElement.setAttribute("width",g.width);if(this.currentBBox.h!==g.height)this.currentBBox.h=g.height,this.svgElement.setAttribute("height",g.height);var H=1;if(this.currentBBox.w!==g.width+H*2||this.currentBBox.h!==g.height+H*2||this.currentBBox.x!==g.x-H||this.currentBBox.y!==g.y-H){this.currentBBox.w=g.width+H*2,this.currentBBox.h=g.height+H*2,this.currentBBox.x=g.x-H,this.currentBBox.y=g.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 g=!this._prevMat.equals(this.mat);if((g||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(g){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,g=t-1,H;function f(p,k,R){var V=[];k=k===!0?{entropy:!0}:k||{};var L=U(v(k.entropy?[p,u(o)]:p===null?b():p,3),V),w=new y(V),Z=function I(){var F=w.g(r),J=s,C=0;while(F<l)F=(F+C)*t,J*=t,C=w.g(1);while(F>=h)F/=2,J/=2,C>>>=1;return(F+C)/J};return Z.int32=function(){return w.g(4)|0},Z.quick=function(){return w.g(4)/4294967296},Z.double=Z,U(u(w.S),o),(k.pass||R||function(I,F,J,C){if(C){if(C.S)z(C,w);I.state=function(){return z(w,{})}}if(J)return i[n]=I,F;else return I})(Z,L,"global"in k?k.global:this==i,k.state)}i["seed"+n]=f;function y(p){var k,R=p.length,V=this,L=0,w=V.i=V.j=0,Z=V.S=[];if(!R)p=[R++];while(L<t)Z[L]=L++;for(L=0;L<t;L++)Z[L]=Z[w=g&w+p[L%R]+(k=Z[L])],Z[w]=k;V.g=function(I){var F,J=0,C=V.i,j=V.j,W=V.S;while(I--)F=W[C=g&C+1],J=J*t+W[g&(W[C]=W[j=g&j+F])+(W[j]=F)];return V.i=C,V.j=j,J}}function z(p,k){return k.i=p.i,k.j=p.j,k.S=p.S.slice(),k}function v(p,k){var R=[],V=_typeof$2(p),L;if(k&&V=="object")for(L in p)try{R.push(v(p[L],k-1))}catch(w){}return R.length?R:V=="string"?p:p+"\x00"}function U(p,k){var R=p+"",V,L=0;while(L<R.length)k[g&L]=g&(V^=k[g&L]*19)+R.charCodeAt(L++);return u(k)}function b(){try{if(H)return u(H.randomBytes(t));var p=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(p),u(p)}catch(V){var k=a.navigator,R=k&&k.plugins;return[+new Date,a,R,a.screen,u(o)]}}function u(p){return String.fromCharCode.apply(0,p)}U(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),g=createTypedArray("float32",e);if(e>1){for(r=0;r<e;r+=1)g[r]=this.pv[r]+n[r]+(-a+a*2*BMMath.random())*h;return g}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,g=r.length;for(h=0;h<g;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 g="";if("s"in s.keyframes[h-1])g=s.keyframes[h-1].s;else if("e"in s.keyframes[h-2])g=s.keyframes[h-2].e;else g=s.keyframes[h-2].s;var H=l==="unidimensional"?new Number(g):Object.assign({},g);return H.time=s.keyframes[h-1].t/s.elem.comp.globalData.frameRate,H.value=l==="unidimensional"?g[0]:g,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),g=createTypedArray("float32",l);return h.value=g,a(h,n,"multidimensional"),function(){if(n.k)n.getValue();for(var H=0;H<l;H+=1)g[H]=n.v[H]*s,h[H]=g[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 g=new Matrix;if(h!==void 0){var H=this._elem.finalTransform.mProp.getValueAtTime(h);H.clone(g)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(g)}return g}function i(h,g){var H=this.getMatrix(g);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.applyPoint(H,h)}function a(h,g){var H=this.getMatrix(g);return this.applyPoint(H,h)}function t(h,g){var H=this.getMatrix(g);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.invertPoint(H,h)}function r(h,g){var H=this.getMatrix(g);return this.invertPoint(H,h)}function e(h,g){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(g[0],g[1],g[2]||0)}function n(h,g){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(g)}function s(h){var g=new Matrix;if(g.reset(),this._elem.finalTransform.mProp.applyToMatrix(g),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(g);return g.inversePoint(h)}return g.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var g;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 g;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,g=TransformExpressionInterface(h.finalTransform.mProp);var z=getDescriptor(g,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function v(){return h.hierarchy.length}},parent:{get:function v(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(g,"rotation"),scale:getDescriptor(g,"scale"),position:getDescriptor(g,"position"),opacity:getDescriptor(g,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function v(){return g}},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 g=r.data.ef||[],H=function f(y){l=0,h=g.length;while(l<h){if(y===g[l].nm||y===g[l].mn||y===g[l].ix)return n[l];l+=1}return null};return Object.defineProperty(H,"numProperties",{get:function f(){return g.length}}),H}return null}function a(r,e,n,s){function l(y){var z=r.ef,v=0,U=z.length;while(v<U){if(y===z[v].nm||y===z[v].mn||y===z[v].ix){if(z[v].ty===5)return g[v];return g[v]()}v+=1}throw new Error}var h=propertyGroupFactory(l,n),g=[],H,f=r.ef.length;for(H=0;H<f;H+=1)if(r.ef[H].ty===5)g.push(a(r.ef[H],e.effectElements[H],e.effectElements[H].propertyGroup,s));else g.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 g[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,U){var b=[],u,p=z?z.length:0;for(u=0;u<p;u+=1)if(z[u].ty==="gr")b.push(a(z[u],v[u],U));else if(z[u].ty==="fl")b.push(t(z[u],v[u],U));else if(z[u].ty==="st")b.push(n(z[u],v[u],U));else if(z[u].ty==="tm")b.push(s(z[u],v[u],U));else if(z[u].ty==="tr");else if(z[u].ty==="el")b.push(h(z[u],v[u],U));else if(z[u].ty==="sr")b.push(g(z[u],v[u],U));else if(z[u].ty==="sh")b.push(ShapePathInterface(z[u],v[u],U));else if(z[u].ty==="rc")b.push(H(z[u],v[u],U));else if(z[u].ty==="rd")b.push(f(z[u],v[u],U));else if(z[u].ty==="rp")b.push(y(z[u],v[u],U));else if(z[u].ty==="gf")b.push(r(z[u],v[u],U));else b.push(e(z[u],v[u],U));return b}function i(z,v,U){var b,u=function k(R){var V=0,L=b.length;while(V<L){if(b[V]._name===R||b[V].mn===R||b[V].propertyIndex===R||b[V].ix===R||b[V].ind===R)return b[V];V+=1}if(typeof R==="number")return b[R-1];return null};u.propertyGroup=propertyGroupFactory(u,U),b=o(z.it,v.it,u.propertyGroup),u.numProperties=b.length;var p=l(z.it[z.it.length-1],v.it[v.it.length-1],u.propertyGroup);return u.transform=p,u.propertyIndex=z.cix,u._name=z.nm,u}function a(z,v,U){var b=function k(R){switch(R){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,U);var u=i(z,v,b.propertyGroup),p=l(z.it[z.it.length-1],v.it[v.it.length-1],b.propertyGroup);return b.content=u,b.transform=p,Object.defineProperty(b,"_name",{get:function k(){return z.nm}}),b.numProperties=z.np,b.propertyIndex=z.ix,b.nm=z.nm,b.mn=z.mn,b}function t(z,v,U){function b(u){if(u==="Color"||u==="color")return b.color;if(u==="Opacity"||u==="opacity")return b.opacity;return null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",U)),v.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function r(z,v,U){function b(u){if(u==="Start Point"||u==="start point")return b.startPoint;if(u==="End Point"||u==="end point")return b.endPoint;if(u==="Opacity"||u==="opacity")return b.opacity;return null}return Object.defineProperties(b,{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",U)),v.e.setGroupProperty(PropertyInterface("End Point",U)),v.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function e(){function z(){return null}return z}function n(z,v,U){var b=propertyGroupFactory(L,U),u=propertyGroupFactory(V,b);function p(w){Object.defineProperty(V,z.d[w].nm,{get:ExpressionPropertyInterface(v.d.dataProps[w].p)})}var k,R=z.d?z.d.length:0,V={};for(k=0;k<R;k+=1)p(k),v.d.dataProps[k].p.setGroupProperty(u);function L(w){if(w==="Color"||w==="color")return L.color;if(w==="Opacity"||w==="opacity")return L.opacity;if(w==="Stroke Width"||w==="stroke width")return L.strokeWidth;return null}return Object.defineProperties(L,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},strokeWidth:{get:ExpressionPropertyInterface(v.w)},dash:{get:function w(){return V}},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",b)),v.o.setGroupProperty(PropertyInterface("Opacity",b)),v.w.setGroupProperty(PropertyInterface("Stroke Width",b)),L}function s(z,v,U){function b(p){if(p===z.e.ix||p==="End"||p==="end")return b.end;if(p===z.s.ix)return b.start;if(p===z.o.ix)return b.offset;return null}var u=propertyGroupFactory(b,U);return b.propertyIndex=z.ix,v.s.setGroupProperty(PropertyInterface("Start",u)),v.e.setGroupProperty(PropertyInterface("End",u)),v.o.setGroupProperty(PropertyInterface("Offset",u)),b.propertyIndex=z.ix,b.propertyGroup=U,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(v.s)},end:{get:ExpressionPropertyInterface(v.e)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm}}),b.mn=z.mn,b}function l(z,v,U){function b(p){if(z.a.ix===p||p==="Anchor Point")return b.anchorPoint;if(z.o.ix===p||p==="Opacity")return b.opacity;if(z.p.ix===p||p==="Position")return b.position;if(z.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation")return b.rotation;if(z.s.ix===p||p==="Scale")return b.scale;if(z.sk&&z.sk.ix===p||p==="Skew")return b.skew;if(z.sa&&z.sa.ix===p||p==="Skew Axis")return b.skewAxis;return null}var u=propertyGroupFactory(b,U);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(b,{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}}),b.ty="tr",b.mn=z.mn,b.propertyGroup=U,b}function h(z,v,U){function b(k){if(z.p.ix===k)return b.position;if(z.s.ix===k)return b.size;return null}var u=propertyGroupFactory(b,U);b.propertyIndex=z.ix;var p=v.sh.ty==="tm"?v.sh.prop:v.sh;return p.s.setGroupProperty(PropertyInterface("Size",u)),p.p.setGroupProperty(PropertyInterface("Position",u)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:z.nm}}),b.mn=z.mn,b}function g(z,v,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.rotation;if(z.pt.ix===k)return b.points;if(z.or.ix===k||k==="ADBE Vector Star Outer Radius")return b.outerRadius;if(z.os.ix===k)return b.outerRoundness;if(z.ir&&(z.ir.ix===k||k==="ADBE Vector Star Inner Radius"))return b.innerRadius;if(z.is&&z.is.ix===k)return b.innerRoundness;return null}var u=propertyGroupFactory(b,U),p=v.sh.ty==="tm"?v.sh.prop:v.sh;if(b.propertyIndex=z.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",u)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",u)),p.pt.setGroupProperty(PropertyInterface("Points",u)),p.p.setGroupProperty(PropertyInterface("Position",u)),p.r.setGroupProperty(PropertyInterface("Rotation",u)),z.ir)p.ir.setGroupProperty(PropertyInterface("Inner Radius",u)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",u));return Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:z.nm}}),b.mn=z.mn,b}function H(z,v,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.roundness;if(z.s.ix===k||k==="Size"||k==="ADBE Vector Rect Size")return b.size;return null}var u=propertyGroupFactory(b,U),p=v.sh.ty==="tm"?v.sh.prop:v.sh;return b.propertyIndex=z.ix,p.p.setGroupProperty(PropertyInterface("Position",u)),p.s.setGroupProperty(PropertyInterface("Size",u)),p.r.setGroupProperty(PropertyInterface("Rotation",u)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:z.nm}}),b.mn=z.mn,b}function f(z,v,U){function b(k){if(z.r.ix===k||k==="Round Corners 1")return b.radius;return null}var u=propertyGroupFactory(b,U),p=v;return b.propertyIndex=z.ix,p.rd.setGroupProperty(PropertyInterface("Radius",u)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:z.nm}}),b.mn=z.mn,b}function y(z,v,U){function b(k){if(z.c.ix===k||k==="Copies")return b.copies;if(z.o.ix===k||k==="Offset")return b.offset;return null}var u=propertyGroupFactory(b,U),p=v;return b.propertyIndex=z.ix,p.c.setGroupProperty(PropertyInterface("Copies",u)),p.o.setGroupProperty(PropertyInterface("Offset",u)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:z.nm}}),b.mn=z.mn,b}return function(z,v,U){var b;function u(k){if(typeof k==="number"){if(k=k===void 0?1:k,k===0)return U;return b[k-1]}var R=0,V=b.length;while(R<V){if(b[R]._name===k)return b[R];R+=1}return null}function p(){return U}return u.propertyGroup=propertyGroupFactory(u,p),b=o(z,v,u.propertyGroup),u.numProperties=b.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 g=parseInt(l.substr(h+r.length),10);if(e=e[g],_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),g=0;if(l.length){var H;for(H=0;H<l.length;H+=1)g+=Math.pow(h[H]-l[H],2);g=Math.sqrt(g)*100}else g=0;return g}function t(n){if(this.vel!==void 0)return this.vel;var s=-0.001,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),g;if(l.length){g=createTypedArray("float32",l.length);var H;for(H=0;H<l.length;H+=1)g[H]=(h[H]-l[H])/s}else g=(h-l)/s;return g}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,U=this.keyframes,b=U[U.length-1].t;if(v<=b)return this.pv;var u,p;if(!z){if(!y||y>U.length-1)y=U.length-1;p=U[U.length-1-y].t,u=b-p}else{if(!y)u=Math.max(0,b-this.elem.data.ip);else u=Math.abs(b-this.elem.comp.globalData.frameRate*y);p=b-u}var k,R,V;if(f==="pingpong"){var L=Math.floor((v-p)/u);if(L%2!==0)return this.getValueAtTime((u-(v-p)%u+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(p/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(b/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((v-p)%u+p)/this.comp.globalData.frameRate,0),F=Math.floor((v-p)/u);if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=(Z[k]-w[k])*F+I[k];return V}return(Z-w)*F+I}else if(f==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),C=this.getValueAtTime((b-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-C[k])*((v-b)/this.comp.globalData.frameRate)/0.0005;return V}return J+(J-C)*((v-b)/0.001)}return this.getValueAtTime(((v-p)%u+p)/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,U=this.keyframes,b=U[0].t;if(v>=b)return this.pv;var u,p;if(!z){if(!y||y>U.length-1)y=U.length-1;p=U[y].t,u=p-b}else{if(!y)u=Math.max(0,this.elem.data.op-b);else u=Math.abs(this.elem.comp.globalData.frameRate*y);p=b+u}var k,R,V;if(f==="pingpong"){var L=Math.floor((b-v)/u);if(L%2===0)return this.getValueAtTime(((b-v)%u+b)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(b/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(p/this.comp.globalData.frameRate,0),I=this.getValueAtTime((u-(b-v)%u+b)/this.comp.globalData.frameRate,0),F=Math.floor((b-v)/u)+1;if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=I[k]-(Z[k]-w[k])*F;return V}return I-(Z-w)*F}else if(f==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),C=this.getValueAtTime((b+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-C[k])*(b-v)/0.001;return V}return J+(J-C)*(b-v)/0.001}return this.getValueAtTime((u-((b-v)%u+b))/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,U=z+f,b=y>1?(U-v)/(y-1):1,u=0,p=0,k;if(this.pv.length)k=createTypedArray("float32",this.pv.length);else k=0;var R;while(u<y){if(R=this.getValueAtTime(v+u*b),this.pv.length)for(p=0;p<this.pv.length;p+=1)k[p]+=R[p];else k+=R;u+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)k[p]/=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 U=this.sk.getValueAtTime(f),b=this.sa.getValueAtTime(f);y.skewFromAxis(-U*this.sk.mult,b*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 p=this.rz.getValueAtTime(f),k=this.ry.getValueAtTime(f),R=this.rx.getValueAtTime(f),V=this.or.getValueAtTime(f);y.rotateZ(-p*this.rz.mult).rotateY(k*this.ry.mult).rotateX(R*this.rx.mult).rotateZ(-V[2]*this.or.mult).rotateY(V[1]*this.or.mult).rotateX(V[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var L=this.px.getValueAtTime(f),w=this.py.getValueAtTime(f);if(this.data.p.z){var Z=this.pz.getValueAtTime(f);y.translate(L*this.px.mult,w*this.py.mult,-Z*this.pz.mult)}else y.translate(L*this.px.mult,w*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,U){var b=n(f,y,z,v,U);if(b.kf)b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b);else b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b);b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=o,b.loopIn=i,b.smooth=a,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=y.a===1?y.k.length:0,b.propertyIndex=y.ix;var u=0;if(z!==0)u=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length);if(b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(f,y,b),b.k)U.addDynamicProperty(b);return b};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 g(){}g.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 U,b=v._length,u=v[y],p=v.v,k=createSizedArray(b);for(U=0;U<b;U+=1)if(y==="i"||y==="o")k[U]=[u[U][0]-p[U][0],u[U][1]-p[U][1]];else k[U]=[u[U][0],u[U][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 U=this._segmentsLength,b=U.lengths,u=U.totalLength*y,p=0,k=b.length,R=0,V;while(p<k){if(R+b[p].addedLength>u){var L=p,w=v.c&&p===k-1?0:p+1,Z=(u-R)/b[p].addedLength;V=bez.getPointInSegment(v.v[L],v.v[w],v.o[L],v.i[w],Z,b[p]);break}else R+=b[p].addedLength;p+=1}if(!V)V=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]];return V},vectorOnPath:function f(y,z,v){if(y==1)y=this.v.c;else if(y==0)y=0.999;var U=this.pointOnPath(y,z),b=this.pointOnPath(y+0.001,z),u=b[0]-U[0],p=b[1]-U[1],k=Math.sqrt(Math.pow(u,2)+Math.pow(p,2));if(k===0)return[0,0];var R=v==="tangent"?[u/k,p/k]:[-p/k,u/k];return R},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([g],l),extendPrototype([g],h),h.prototype.getValueAtTime=s,h.prototype.initiateExpression=ExpressionManager.initiateExpression;var H=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,z,v,U){var b=H(f,y,z,v,U);if(b.propertyIndex=y.ix,b.lock=!1,z===3)expressionHelpers.searchExpressions(f,y.pt,b);else if(z===4)expressionHelpers.searchExpressions(f,y.ks,b);if(b.k)f.addDynamicProperty(b);return b}}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),g=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01,H=Math.floor(h/g),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),g=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);g[f]=H,f+=1,e+=256/(n-1)}return g.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 g=createNS("feComposite");g.setAttribute("in",t+"_drop_shadow_3"),g.setAttribute("in2",t+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(g);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 zi 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 zi(this.context,this.host,this.t,this.subscribe))}}class Pa{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 Vr extends Event{constructor(o,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i}}class yi extends Pa{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 zi(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 Vr(this.context,this.host))}}function ao({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 Gn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Aa=Math.ceil,jo=Math.floor,Yo="[BigNumber Error] ",Ir=Yo+"Number primitive has more than 15 significant digits: ",Bo=100000000000000,no=14,_a=9007199254740991,Oa=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],gi=1e7,Zo=1e9;function qr(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,g=-1e7,H=1e7,f=!1,y=1,z=0,v={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function u(w,Z){var I,F,J,C,j,W,x,K,c=this;if(!(c instanceof u))return new u(w,Z);if(Z==null){if(w&&w._isBigNumber===!0){if(c.s=w.s,!w.c||w.e>H)c.c=c.e=null;else if(w.e<g)c.c=[c.e=0];else c.e=w.e,c.c=w.c.slice();return}if((W=typeof w=="number")&&w*0==0){if(c.s=1/w<0?(w=-w,-1):1,w===~~w){for(C=0,j=w;j>=10;j/=10,C++);if(C>H)c.c=c.e=null;else c.e=C,c.c=[w];return}K=String(w)}else{if(!Gn.test(K=String(w)))return t(c,K,W);c.s=K.charCodeAt(0)==45?(K=K.slice(1),-1):1}if((C=K.indexOf("."))>-1)K=K.replace(".","");if((j=K.search(/e/i))>0){if(C<0)C=j;C+=+K.slice(j+1),K=K.substring(0,j)}else if(C<0)C=K.length}else{if(ko(Z,2,U.length,"Base"),Z==10&&b)return c=new u(w),V(c,n+c.e+1,s);if(K=String(w),W=typeof w=="number"){if(w*0!=0)return t(c,K,W,Z);if(c.s=1/w<0?(K=K.slice(1),-1):1,u.DEBUG&&K.replace(/^0\.0*|\./,"").length>15)throw Error(Ir+w)}else c.s=K.charCodeAt(0)===45?(K=K.slice(1),-1):1;I=U.slice(0,Z),C=j=0;for(x=K.length;j<x;j++)if(I.indexOf(F=K.charAt(j))<0){if(F=="."){if(j>C){C=x;continue}}else if(!J){if(K==K.toUpperCase()&&(K=K.toLowerCase())||K==K.toLowerCase()&&(K=K.toUpperCase())){J=!0,j=-1,C=0;continue}}return t(c,String(w),W,Z)}if(W=!1,K=a(K,Z,10,c.s),(C=K.indexOf("."))>-1)K=K.replace(".","");else C=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,W&&u.DEBUG&&x>15&&(w>_a||w!==jo(w)))throw Error(Ir+c.s*w);if((C=C-j-1)>H)c.c=c.e=null;else if(C<g)c.c=[c.e=0];else{if(c.e=C,c.c=[],j=(C+1)%no,C<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=qr,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(w){var Z,I;if(w!=null)if(typeof w=="object"){if(w.hasOwnProperty(Z="DECIMAL_PLACES"))I=w[Z],ko(I,0,Zo,Z),n=I;if(w.hasOwnProperty(Z="ROUNDING_MODE"))I=w[Z],ko(I,0,8,Z),s=I;if(w.hasOwnProperty(Z="EXPONENTIAL_AT"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,0,Z),ko(I[1],0,Zo,Z),l=I[0],h=I[1];else ko(I,-Zo,Zo,Z),l=-(h=I<0?-I:I);if(w.hasOwnProperty(Z="RANGE"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,-1,Z),ko(I[1],1,Zo,Z),g=I[0],H=I[1];else if(ko(I,-Zo,Zo,Z),I)g=-(H=I<0?-I:I);else throw Error(Yo+Z+" cannot be zero: "+I);if(w.hasOwnProperty(Z="CRYPTO"))if(I=w[Z],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+Z+" not true or false: "+I);if(w.hasOwnProperty(Z="MODULO_MODE"))I=w[Z],ko(I,0,9,Z),y=I;if(w.hasOwnProperty(Z="POW_PRECISION"))I=w[Z],ko(I,0,Zo,Z),z=I;if(w.hasOwnProperty(Z="FORMAT"))if(I=w[Z],typeof I=="object")v=I;else throw Error(Yo+Z+" not an object: "+I);if(w.hasOwnProperty(Z="ALPHABET"))if(I=w[Z],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))b=I.slice(0,10)=="0123456789",U=I;else throw Error(Yo+Z+" invalid: "+I)}else throw Error(Yo+"Object expected: "+w);return{DECIMAL_PLACES:n,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,h],RANGE:[g,H],CRYPTO:f,MODULO_MODE:y,POW_PRECISION:z,FORMAT:v,ALPHABET:U}},u.isBigNumber=function(w){if(!w||w._isBigNumber!==!0)return!1;if(!u.DEBUG)return!0;var Z,I,F=w.c,J=w.e,C=w.s;o:if({}.toString.call(F)=="[object Array]"){if((C===1||C===-1)&&J>=-Zo&&J<=Zo&&J===jo(J)){if(F[0]===0){if(J===0&&F.length===1)return!0;break o}if(Z=(J+1)%no,Z<1)Z+=no;if(String(F[0]).length==Z){for(Z=0;Z<F.length;Z++)if(I=F[Z],I<0||I>=Bo||I!==jo(I))break o;if(I!==0)return!0}}}else if(F===null&&J===null&&(C===null||C===1||C===-1))return!0;throw Error(Yo+"Invalid BigNumber: "+w)},u.maximum=u.max=function(){return k(arguments,-1)},u.minimum=u.min=function(){return k(arguments,1)},u.random=function(){var w=9007199254740992,Z=Math.random()*w&2097151?function(){return jo(Math.random()*w)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var F,J,C,j,W,x=0,K=[],c=new u(e);if(I==null)I=n;else ko(I,0,Zo);if(j=Aa(I/no),f)if(crypto.getRandomValues){F=crypto.getRandomValues(new Uint32Array(j*=2));for(;x<j;)if(W=F[x]*131072+(F[x+1]>>>11),W>=9000000000000000)J=crypto.getRandomValues(new Uint32Array(2)),F[x]=J[0],F[x+1]=J[1];else K.push(W%100000000000000),x+=2;x=j/2}else if(crypto.randomBytes){F=crypto.randomBytes(j*=7);for(;x<j;)if(W=(F[x]&31)*281474976710656+F[x+1]*1099511627776+F[x+2]*4294967296+F[x+3]*16777216+(F[x+4]<<16)+(F[x+5]<<8)+F[x+6],W>=9000000000000000)crypto.randomBytes(7).copy(F,x);else K.push(W%100000000000000),x+=7;x=j/7}else throw f=!1,Error(Yo+"crypto unavailable");if(!f){for(;x<j;)if(W=Z(),W<9000000000000000)K[x++]=W%100000000000000}if(j=K[--x],I%=no,j&&I)W=Oa[no-I],K[x]=jo(j/W)*W;for(;K[x]===0;K.pop(),x--);if(x<0)K=[C=0];else{for(C=-1;K[0]===0;K.splice(0,1),C-=no);for(x=1,W=K[0];W>=10;W/=10,x++);if(x<no)C-=no-x}return c.e=C,c.c=K,c}}(),u.sum=function(){var w=1,Z=arguments,I=new u(Z[0]);for(;w<Z.length;)I=I.plus(Z[w++]);return I},a=function(){var w="0123456789";function Z(I,F,J,C){var j,W=[0],x,K=0,c=I.length;for(;K<c;){for(x=W.length;x--;W[x]*=F);W[0]+=C.indexOf(I.charAt(K++));for(j=0;j<W.length;j++)if(W[j]>J-1){if(W[j+1]==null)W[j+1]=0;W[j+1]+=W[j]/J|0,W[j]%=J}}return W.reverse()}return function(I,F,J,C,j){var W,x,K,c,m,Q,Y,T,M=I.indexOf("."),E=n,oo=s;if(M>=0)c=z,z=0,I=I.replace(".",""),T=new u(F),Q=T.pow(I.length-M),z=c,T.c=Z(ni(Qo(Q.c),Q.e,"0"),10,J,w),T.e=T.c.length;Y=Z(I,F,J,j?(W=U,w):(W=w,U)),K=c=Y.length;for(;Y[--c]==0;Y.pop());if(!Y[0])return W.charAt(0);if(M<0)--K;else Q.c=Y,Q.e=K,Q.s=C,Q=i(Q,T,E,oo,J),Y=Q.c,m=Q.r,K=Q.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==(Q.s<0?3:2)):M>c||M==c&&(oo==4||m||oo==6&&Y[x-1]&1||oo==(Q.s<0?8:7)),x<1||!Y[0])I=m?ni(W.charAt(1),-E,W.charAt(0)):W.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+=W.charAt(Y[M++]));I=ni(I,K,W.charAt(0))}return I}}(),i=function(){function w(F,J,C){var j,W,x,K,c=0,m=F.length,Q=J%gi,Y=J/gi|0;for(F=F.slice();m--;)x=F[m]%gi,K=F[m]/gi|0,j=Y*x+K*Q,W=Q*x+j%gi*gi+c,c=(W/C|0)+(j/gi|0)+Y*K,F[m]=W%C;if(c)F=[c].concat(F);return F}function Z(F,J,C,j){var W,x;if(C!=j)x=C>j?1:-1;else for(W=x=0;W<C;W++)if(F[W]!=J[W]){x=F[W]>J[W]?1:-1;break}return x}function I(F,J,C,j){var W=0;for(;C--;)F[C]-=W,W=F[C]<J[C]?1:0,F[C]=W*j+F[C]-J[C];for(;!F[0]&&F.length>1;F.splice(0,1));}return function(F,J,C,j,W){var x,K,c,m,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so=F.s==J.s?1:-1,N=F.c,uo=J.c;if(!N||!N[0]||!uo||!uo[0])return new u(!F.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=F.e-J.e,so=C+K+1,!W)W=Bo,K=Po(F.e/no)-Po(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(Jo=N.length,go=uo.length,c=0,so+=2,Q=jo(W/(uo[0]+1)),Q>1)uo=w(uo,Q,W),N=w(N,Q,W),go=uo.length,Jo=N.length;yo=go,oo=N.slice(0,go),io=oo.length;for(;io<go;oo[io++]=0);if(Ho=uo.slice(),Ho=[0].concat(Ho),So=uo[0],uo[1]>=W/2)So++;do{if(Q=0,x=Z(uo,oo,go,io),x<0){if(lo=oo[0],go!=io)lo=lo*W+(oo[1]||0);if(Q=jo(lo/So),Q>1){if(Q>=W)Q=W-1;Y=w(uo,Q,W),T=Y.length,io=oo.length;while(Z(Y,oo,T,io)==1)Q--,I(Y,go<T?Ho:uo,T,W),T=Y.length,x=1}else{if(Q==0)x=Q=1;Y=uo.slice(),T=Y.length}if(T<io)Y=[0].concat(Y);if(I(oo,Y,io,W),io=oo.length,x==-1)while(Z(uo,oo,go,io)<1)Q++,I(oo,go<io?Ho:uo,io,W),io=oo.length}else if(x===0)Q++,oo=[0];if(E[c++]=Q,oo[0])oo[io++]=N[yo]||0;else oo=[N[yo]],io=1}while((yo++<Jo||oo[0]!=null)&&so--);if(m=oo[0]!=null,!E[0])E.splice(0,1)}if(W==Bo){for(c=1,so=E[0];so>=10;so/=10,c++);V(M,C+(M.e=c+K*no-1)+1,j,m)}else M.e=K,M.r=+m;return M}}();function p(w,Z,I,F){var J,C,j,W,x;if(I==null)I=s;else ko(I,0,8);if(!w.c)return w.toString();if(J=w.c[0],j=w.e,Z==null)x=Qo(w.c),x=F==1||F==2&&(j<=l||j>=h)?la(x,j):ni(x,j,"0");else if(w=V(new u(w),Z,I),C=w.e,x=Qo(w.c),W=x.length,F==1||F==2&&(Z<=C||C<=l)){for(;W<Z;x+="0",W++);x=la(x,C)}else if(Z-=j,x=ni(x,C,"0"),C+1>W){if(--Z>0)for(x+=".";Z--;x+="0");}else if(Z+=C-W,Z>0){if(C+1==W)x+=".";for(;Z--;x+="0");}return w.s<0&&J?"-"+x:x}function k(w,Z){var I,F,J=1,C=new u(w[0]);for(;J<w.length;J++)if(F=new u(w[J]),!F.s||(I=Hi(C,F))===Z||I===0&&C.s===Z)C=F;return C}function R(w,Z,I){var F=1,J=Z.length;for(;!Z[--J];Z.pop());for(J=Z[0];J>=10;J/=10,F++);if((I=F+I*no-1)>H)w.c=w.e=null;else if(I<g)w.c=[w.e=0];else w.e=I,w.c=Z;return w}t=function(){var w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Z=/^([^.]+)\.$/,I=/^\.([^.]+)$/,F=/^-?(Infinity|NaN)$/,J=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(C,j,W,x){var K,c=W?j:j.replace(J,"");if(F.test(c))C.s=isNaN(c)?null:c<0?-1:1;else{if(!W){if(c=c.replace(w,function(m,Q,Y){return K=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!x||x==K?Q:m}),x)K=x,c=c.replace(Z,"$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);C.s=null}C.c=C.e=null}}();function V(w,Z,I,F){var J,C,j,W,x,K,c,m=w.c,Q=Oa;if(m){o:{for(J=1,W=m[0];W>=10;W/=10,J++);if(C=Z-J,C<0)C+=no,j=Z,x=m[K=0],c=jo(x/Q[J-j-1]%10);else if(K=Aa((C+1)/no),K>=m.length)if(F){for(;m.length<=K;m.push(0));x=c=0,J=1,C%=no,j=C-no+1}else break o;else{x=W=m[K];for(J=1;W>=10;W/=10,J++);C%=no,j=C-no+J,c=j<0?0:jo(x/Q[J-j-1]%10)}if(F=F||Z<0||m[K+1]!=null||(j<0?x:x%Q[J-j-1]),F=I<4?(c||F)&&(I==0||I==(w.s<0?3:2)):c>5||c==5&&(I==4||F||I==6&&(C>0?j>0?x/Q[J-j]:0:m[K-1])%10&1||I==(w.s<0?8:7)),Z<1||!m[0]){if(m.length=0,F)Z-=w.e+1,m[0]=Q[(no-Z%no)%no],w.e=-Z||0;else m[0]=w.e=0;return w}if(C==0)m.length=K,W=1,K--;else m.length=K+1,W=Q[no-C],m[K]=j>0?jo(x/Q[J-j]%Q[j])*W:0;if(F)for(;;)if(K==0){for(C=1,j=m[0];j>=10;j/=10,C++);j=m[0]+=W;for(W=1;j>=10;j/=10,W++);if(C!=W){if(w.e++,m[0]==Bo)m[0]=1}break}else{if(m[K]+=W,m[K]!=Bo)break;m[K--]=0,W=1}for(C=m.length;m[--C]===0;m.pop());}if(w.e>H)w.c=w.e=null;else if(w.e<g)w.c=[w.e=0]}return w}function L(w){var Z,I=w.e;if(I===null)return w.toString();return Z=Qo(w.c),Z=I<=l||I>=h?la(Z,I):ni(Z,I,"0"),w.s<0?"-"+Z:Z}if(r.absoluteValue=r.abs=function(){var w=new u(this);if(w.s<0)w.s=1;return w},r.comparedTo=function(w,Z){return Hi(this,new u(w,Z))},r.decimalPlaces=r.dp=function(w,Z){var I,F,J,C=this;if(w!=null){if(ko(w,0,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new u(C),w+C.e+1,Z)}if(!(I=C.c))return null;if(F=((J=I.length-1)-Po(this.e/no))*no,J=I[J])for(;J%10==0;J/=10,F--);if(F<0)F=0;return F},r.dividedBy=r.div=function(w,Z){return i(this,new u(w,Z),n,s)},r.dividedToIntegerBy=r.idiv=function(w,Z){return i(this,new u(w,Z),0,1)},r.exponentiatedBy=r.pow=function(w,Z){var I,F,J,C,j,W,x,K,c,m=this;if(w=new u(w),w.c&&!w.isInteger())throw Error(Yo+"Exponent not an integer: "+L(w));if(Z!=null)Z=new u(Z);if(W=w.e>14,!m.c||!m.c[0]||m.c[0]==1&&!m.e&&m.c.length==1||!w.c||!w.c[0])return c=new u(Math.pow(+L(m),W?w.s*(2-sa(w)):+L(w))),Z?c.mod(Z):c;if(x=w.s<0,Z){if(Z.c?!Z.c[0]:!Z.s)return new u(NaN);if(F=!x&&m.isInteger()&&Z.isInteger(),F)m=m.mod(Z)}else if(w.e>9&&(m.e>0||m.e<-1||(m.e==0?m.c[0]>1||W&&m.c[1]>=240000000:m.c[0]<80000000000000||W&&m.c[0]<=99999750000000))){if(C=m.s<0&&sa(w)?-0:0,m.e>-1)C=1/C;return new u(x?1/C:C)}else if(z)C=Aa(z/no+2);if(W){if(I=new u(0.5),x)w.s=1;K=sa(w)}else J=Math.abs(+L(w)),K=J%2;c=new u(e);for(;;){if(K){if(c=c.times(m),!c.c)break;if(C){if(c.c.length>C)c.c.length=C}else if(F)c=c.mod(Z)}if(J){if(J=jo(J/2),J===0)break;K=J%2}else if(w=w.times(I),V(w,w.e+1,1),w.e>14)K=sa(w);else{if(J=+L(w),J===0)break;K=J%2}if(m=m.times(m),C){if(m.c&&m.c.length>C)m.c.length=C}else if(F)m=m.mod(Z)}if(F)return c;if(x)c=e.div(c);return Z?c.mod(Z):C?V(c,z,s,j):c},r.integerValue=function(w){var Z=new u(this);if(w==null)w=s;else ko(w,0,8);return V(Z,Z.e+1,w)},r.isEqualTo=r.eq=function(w,Z){return Hi(this,new u(w,Z))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(w,Z){return Hi(this,new u(w,Z))>0},r.isGreaterThanOrEqualTo=r.gte=function(w,Z){return(Z=Hi(this,new u(w,Z)))===1||Z===0},r.isInteger=function(){return!!this.c&&Po(this.e/no)>this.c.length-2},r.isLessThan=r.lt=function(w,Z){return Hi(this,new u(w,Z))<0},r.isLessThanOrEqualTo=r.lte=function(w,Z){return(Z=Hi(this,new u(w,Z)))===-1||Z===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(w,Z){var I,F,J,C,j=this,W=j.s;if(w=new u(w,Z),Z=w.s,!W||!Z)return new u(NaN);if(W!=Z)return w.s=-Z,j.plus(w);var x=j.e/no,K=w.e/no,c=j.c,m=w.c;if(!x||!K){if(!c||!m)return c?(w.s=-Z,w):new u(m?j:NaN);if(!c[0]||!m[0])return m[0]?(w.s=-Z,w):new u(c[0]?j:s==3?-0:0)}if(x=Po(x),K=Po(K),c=c.slice(),W=x-K){if(C=W<0)W=-W,J=c;else K=x,J=m;J.reverse();for(Z=W;Z--;J.push(0));J.reverse()}else{F=(C=(W=c.length)<(Z=m.length))?W:Z;for(W=Z=0;Z<F;Z++)if(c[Z]!=m[Z]){C=c[Z]<m[Z];break}}if(C)J=c,c=m,m=J,w.s=-w.s;if(Z=(F=m.length)-(I=c.length),Z>0)for(;Z--;c[I++]=0);Z=Bo-1;for(;F>W;){if(c[--F]<m[F]){for(I=F;I&&!c[--I];c[I]=Z);--c[I],c[F]+=Bo}c[F]-=m[F]}for(;c[0]==0;c.splice(0,1),--K);if(!c[0])return w.s=s==3?-1:1,w.c=[w.e=0],w;return R(w,c,K)},r.modulo=r.mod=function(w,Z){var I,F,J=this;if(w=new u(w,Z),!J.c||!w.s||w.c&&!w.c[0])return new u(NaN);else if(!w.c||J.c&&!J.c[0])return new u(J);if(y==9)F=w.s,w.s=1,I=i(J,w,0,3),w.s=F,I.s*=F;else I=i(J,w,0,y);if(w=J.minus(I.times(w)),!w.c[0]&&y==1)w.s=J.s;return w},r.multipliedBy=r.times=function(w,Z){var I,F,J,C,j,W,x,K,c,m,Q,Y,T,M,E,oo=this,io=oo.c,lo=(w=new u(w,Z)).c;if(!io||!lo||!io[0]||!lo[0]){if(!oo.s||!w.s||io&&!io[0]&&!lo||lo&&!lo[0]&&!io)w.c=w.e=w.s=null;else if(w.s*=oo.s,!io||!lo)w.c=w.e=null;else w.c=[0],w.e=0;return w}if(F=Po(oo.e/no)+Po(w.e/no),w.s*=oo.s,x=io.length,m=lo.length,x<m)T=io,io=lo,lo=T,J=x,x=m,m=J;for(J=x+m,T=[];J--;T.push(0));M=Bo,E=gi;for(J=m;--J>=0;){I=0,Q=lo[J]%E,Y=lo[J]/E|0;for(j=x,C=J+j;C>J;)K=io[--j]%E,c=io[j]/E|0,W=Y*K+c*Q,K=Q*K+W%E*E+T[C]+I,I=(K/M|0)+(W/E|0)+Y*c,T[C--]=K%M;T[C]=I}if(I)++F;else T.splice(0,1);return R(w,T,F)},r.negated=function(){var w=new u(this);return w.s=-w.s||null,w},r.plus=function(w,Z){var I,F=this,J=F.s;if(w=new u(w,Z),Z=w.s,!J||!Z)return new u(NaN);if(J!=Z)return w.s=-Z,F.minus(w);var C=F.e/no,j=w.e/no,W=F.c,x=w.c;if(!C||!j){if(!W||!x)return new u(J/0);if(!W[0]||!x[0])return x[0]?w:new u(W[0]?F:J*0)}if(C=Po(C),j=Po(j),W=W.slice(),J=C-j){if(J>0)j=C,I=x;else J=-J,I=W;I.reverse();for(;J--;I.push(0));I.reverse()}if(J=W.length,Z=x.length,J-Z<0)I=x,x=W,W=I,Z=J;for(J=0;Z;)J=(W[--Z]=W[Z]+x[Z]+J)/Bo|0,W[Z]=Bo===W[Z]?0:W[Z]%Bo;if(J)W=[J].concat(W),++j;return R(w,W,j)},r.precision=r.sd=function(w,Z){var I,F,J,C=this;if(w!=null&&w!==!!w){if(ko(w,1,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new u(C),w,Z)}if(!(I=C.c))return null;if(J=I.length-1,F=J*no+1,J=I[J]){for(;J%10==0;J/=10,F--);for(J=I[0];J>=10;J/=10,F++);}if(w&&C.e+1>F)F=C.e+1;return F},r.shiftedBy=function(w){return ko(w,-_a,_a),this.times("1e"+w)},r.squareRoot=r.sqrt=function(){var w,Z,I,F,J,C=this,j=C.c,W=C.s,x=C.e,K=n+4,c=new u("0.5");if(W!==1||!j||!j[0])return new u(!W||W<0&&(!j||j[0])?NaN:j?C:1/0);if(W=Math.sqrt(+L(C)),W==0||W==1/0){if(Z=Qo(j),(Z.length+x)%2==0)Z+="0";if(W=Math.sqrt(+Z),x=Po((x+1)/2)-(x<0||x%2),W==1/0)Z="5e"+x;else Z=W.toExponential(),Z=Z.slice(0,Z.indexOf("e")+1)+x;I=new u(Z)}else I=new u(W+"");if(I.c[0]){if(x=I.e,W=x+K,W<3)W=0;for(;;)if(J=I,I=c.times(J.plus(i(C,J,K,1))),Qo(J.c).slice(0,W)===(Z=Qo(I.c)).slice(0,W)){if(I.e<x)--W;if(Z=Z.slice(W-3,W+1),Z=="9999"||!F&&Z=="4999"){if(!F){if(V(J,J.e+n+2,0),J.times(J).eq(C)){I=J;break}}K+=4,W+=4,F=1}else{if(!+Z||!+Z.slice(1)&&Z.charAt(0)=="5")V(I,I.e+n+2,1),w=!I.times(I).eq(C);break}}}return V(I,I.e+n+1,s,w)},r.toExponential=function(w,Z){if(w!=null)ko(w,0,Zo),w++;return p(this,w,Z,1)},r.toFixed=function(w,Z){if(w!=null)ko(w,0,Zo),w=w+this.e+1;return p(this,w,Z)},r.toFormat=function(w,Z,I){var F,J=this;if(I==null)if(w!=null&&Z&&typeof Z=="object")I=Z,Z=null;else if(w&&typeof w=="object")I=w,w=Z=null;else I=v;else if(typeof I!="object")throw Error(Yo+"Argument not an object: "+I);if(F=J.toFixed(w,Z),J.c){var C,j=F.split("."),W=+I.groupSize,x=+I.secondaryGroupSize,K=I.groupSeparator||"",c=j[0],m=j[1],Q=J.s<0,Y=Q?c.slice(1):c,T=Y.length;if(x)C=W,W=x,x=C,T-=C;if(W>0&&T>0){C=T%W||W,c=Y.substr(0,C);for(;C<T;C+=W)c+=K+Y.substr(C,W);if(x>0)c+=K+Y.slice(C);if(Q)c="-"+c}F=m?c+(I.decimalSeparator||"")+((x=+I.fractionGroupSize)?m.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):m):c}return(I.prefix||"")+F+(I.suffix||"")},r.toFraction=function(w){var Z,I,F,J,C,j,W,x,K,c,m,Q,Y=this,T=Y.c;if(w!=null){if(W=new u(w),!W.isInteger()&&(W.c||W.s!==1)||W.lt(e))throw Error(Yo+"Argument "+(W.isInteger()?"out of range: ":"not an integer: ")+L(W))}if(!T)return new u(Y);Z=new u(e),K=I=new u(e),F=x=new u(e),Q=Qo(T),C=Z.e=Q.length-Y.e-1,Z.c[0]=Oa[(j=C%no)<0?no+j:j],w=!w||W.comparedTo(Z)>0?C>0?Z:K:W,j=H,H=1/0,W=new u(Q),x.c[0]=0;for(;;){if(c=i(W,Z,0,1),J=I.plus(c.times(F)),J.comparedTo(w)==1)break;I=F,F=J,K=x.plus(c.times(J=K)),x=J,Z=W.minus(c.times(J=Z)),W=J}return J=i(w.minus(I),F,0,1),x=x.plus(J.times(K)),I=I.plus(J.times(F)),x.s=K.s=Y.s,C=C*2,m=i(K,F,C,s).minus(Y).abs().comparedTo(i(x,I,C,s).minus(Y).abs())<1?[K,F]:[x,I],H=j,m},r.toNumber=function(){return+L(this)},r.toPrecision=function(w,Z){if(w!=null)ko(w,1,Zo);return p(this,w,Z,2)},r.toString=function(w){var Z,I=this,F=I.s,J=I.e;if(J===null)if(F){if(Z="Infinity",F<0)Z="-"+Z}else Z="NaN";else{if(w==null)Z=J<=l||J>=h?la(Qo(I.c),J):ni(Qo(I.c),J,"0");else if(w===10&&b)I=V(new u(I),n+J+1,s),Z=ni(Qo(I.c),I.e,"0");else ko(w,2,U.length,"Base"),Z=a(ni(Qo(I.c),J,"0"),10,w,F,!0);if(F<0&&I.c[0])Z="-"+Z}return Z},r.valueOf=r.toJSON=function(){return L(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 Po(o){var i=o|0;return o>0||o===i?i:i-1}function Qo(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 Hi(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 sa(o){var i=o.c.length-1;return Po(o.e/no)==i&&o.c[i]%2!=0}function la(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 Dn=qr(),P=Dn;var da=globalThis,ca=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ta=Symbol(),Jr=new WeakMap;class ha{constructor(o,i,a){if(this._$cssResult$=!0,a!==Ta)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(ca&&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 $r=(o)=>new ha(typeof o=="string"?o:o+"",void 0,Ta),X=(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 ha(a,o,Ta)},Yr=(o,i)=>{if(ca)o.adoptedStyleSheets=i.map((a)=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of i){let t=document.createElement("style"),r=da.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=a.cssText,o.appendChild(t)}},Xa=ca?(o)=>o:(o)=>o instanceof CSSStyleSheet?((i)=>{let a="";for(let t of i.cssRules)a+=t.cssText;return $r(a)})(o):o;var{is:Nn,defineProperty:Mn,getOwnPropertyDescriptor:En,getOwnPropertyNames:os,getOwnPropertySymbols:is,getPrototypeOf:as}=Object,ua=globalThis,Lr=ua.trustedTypes,ts=Lr?Lr.emptyScript:"",rs=ua.reactiveElementPolyfillSupport,ji=(o,i)=>o,Pi={toAttribute(o,i){switch(i){case Boolean:o=o?ts: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}},fa=(o,i)=>!Nn(o,i),Cr={attribute:!0,type:String,converter:Pi,reflect:!1,useDefault:!1,hasChanged:fa};Symbol.metadata??=Symbol("metadata"),ua.litPropertyMetadata??=new WeakMap;class bi 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=Cr){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&&Mn(this.prototype,o,t)}}static getPropertyDescriptor(o,i,a){let{get:t,set:r}=En(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)??Cr}static _$Ei(){if(this.hasOwnProperty(ji("elementProperties")))return;let o=as(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ji("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ji("properties"))){let i=this.properties,a=[...os(i),...is(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(Xa(t))}else o!==void 0&&i.push(Xa(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 Yr(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:Pi).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:Pi;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??fa)(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){}}bi.elementStyles=[],bi.shadowRootOptions={mode:"open"},bi[ji("elementProperties")]=new Map,bi[ji("finalized")]=new Map,rs?.({ReactiveElement:bi}),(ua.reactiveElementVersions??=[]).push("2.1.0");var Ba=globalThis,pa=Ba.trustedTypes,Fr=pa?pa.createPolicy("lit-html",{createHTML:(o)=>o}):void 0;var si=`lit$${Math.random().toFixed(9).slice(2)}$`,Ga="?"+si,es=`<${Ga}>`,Ki=document,_i=()=>Ki.createComment(""),Oi=(o)=>o===null||typeof o!="object"&&typeof o!="function",Da=Array.isArray,Or=(o)=>Da(o)||typeof o?.[Symbol.iterator]=="function";var Ai=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qr=/-->/g,jr=/>/g,Si=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 v=o(c),Q=i(c);return this._t(v,-Q,0,0,Q,v,0,0,0,0,1,0,0,0,0,1)}function n(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(1,0,0,0,0,v,-Q,0,0,Q,v,0,0,0,0,1)}function s(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(v,0,Q,0,0,1,0,0,-Q,0,v,0,0,0,0,1)}function l(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(v,-Q,0,0,Q,v,0,0,0,0,1,0,0,0,0,1)}function h(c,v){return this._t(1,v,c,1,0,0)}function g(c,v){return this.shear(a(c),a(v))}function H(c,v){var Q=o(v),Y=i(v);return this._t(Q,Y,0,0,-Y,Q,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(Q,-Y,0,0,Y,Q,0,0,0,0,1,0,0,0,0,1)}function p(c,v,Q){if(!Q&&Q!==0)Q=1;if(c===1&&v===1&&Q===1)return this;return this._t(c,0,0,0,0,v,0,0,0,0,Q,0,0,0,0,1)}function y(c,v,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so){return this.props[0]=c,this.props[1]=v,this.props[2]=Q,this.props[3]=Y,this.props[4]=T,this.props[5]=M,this.props[6]=E,this.props[7]=oo,this.props[8]=io,this.props[9]=lo,this.props[10]=yo,this.props[11]=Jo,this.props[12]=So,this.props[13]=go,this.props[14]=Ho,this.props[15]=so,this}function z(c,v,Q){if(Q=Q||0,c!==0||v!==0||Q!==0)return this._t(1,0,0,0,0,1,0,0,0,0,1,0,c,v,Q,1);return this}function m(c,v,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so){var N=this.props;if(c===1&&v===0&&Q===0&&Y===0&&T===0&&M===1&&E===0&&oo===0&&io===0&&lo===0&&yo===1&&Jo===0)return N[12]=N[12]*c+N[15]*So,N[13]=N[13]*M+N[15]*go,N[14]=N[14]*yo+N[15]*Ho,N[15]*=so,this._identityCalculated=!1,this;var uo=N[0],hi=N[1],ai=N[2],oi=N[3],ti=N[4],ri=N[5],$o=N[6],ui=N[7],pi=N[8],To=N[9],fi=N[10],Xo=N[11],xi=N[12],ra=N[13],ea=N[14],na=N[15];return N[0]=uo*c+hi*T+ai*io+oi*So,N[1]=uo*v+hi*M+ai*lo+oi*go,N[2]=uo*Q+hi*E+ai*yo+oi*Ho,N[3]=uo*Y+hi*oo+ai*Jo+oi*so,N[4]=ti*c+ri*T+$o*io+ui*So,N[5]=ti*v+ri*M+$o*lo+ui*go,N[6]=ti*Q+ri*E+$o*yo+ui*Ho,N[7]=ti*Y+ri*oo+$o*Jo+ui*so,N[8]=pi*c+To*T+fi*io+Xo*So,N[9]=pi*v+To*M+fi*lo+Xo*go,N[10]=pi*Q+To*E+fi*yo+Xo*Ho,N[11]=pi*Y+To*oo+fi*Jo+Xo*so,N[12]=xi*c+ra*T+ea*io+na*So,N[13]=xi*v+ra*M+ea*lo+na*go,N[14]=xi*Q+ra*E+ea*yo+na*Ho,N[15]=xi*Y+ra*oo+ea*Jo+na*so,this._identityCalculated=!1,this}function U(c){var v=c.props;return this.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])}function b(){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 v=0;while(v<16){if(c.props[v]!==this.props[v])return!1;v+=1}return!0}function f(c){var v;for(v=0;v<16;v+=1)c.props[v]=this.props[v];return c}function k(c){var v;for(v=0;v<16;v+=1)this.props[v]=c[v]}function R(c,v,Q){return{x:c*this.props[0]+v*this.props[4]+Q*this.props[8]+this.props[12],y:c*this.props[1]+v*this.props[5]+Q*this.props[9]+this.props[13],z:c*this.props[2]+v*this.props[6]+Q*this.props[10]+this.props[14]}}function V(c,v,Q){return c*this.props[0]+v*this.props[4]+Q*this.props[8]+this.props[12]}function L(c,v,Q){return c*this.props[1]+v*this.props[5]+Q*this.props[9]+this.props[13]}function w(c,v,Q){return c*this.props[2]+v*this.props[6]+Q*this.props[10]+this.props[14]}function Z(){var c=this.props[0]*this.props[5]-this.props[1]*this.props[4],v=this.props[5]/c,Q=-this.props[1]/c,Y=-this.props[4]/c,T=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]=v,oo.props[1]=Q,oo.props[4]=Y,oo.props[5]=T,oo.props[12]=M,oo.props[13]=E,oo}function I(c){var v=this.getInverseMatrix();return v.applyToPointArray(c[0],c[1],c[2]||0)}function F(c){var v,Q=c.length,Y=[];for(v=0;v<Q;v+=1)Y[v]=I(c[v]);return Y}function J(c,v,Q){var Y=createTypedArray("float32",6);if(this.isIdentity())Y[0]=c[0],Y[1]=c[1],Y[2]=v[0],Y[3]=v[1],Y[4]=Q[0],Y[5]=Q[1];else{var T=this.props[0],M=this.props[1],E=this.props[4],oo=this.props[5],io=this.props[12],lo=this.props[13];Y[0]=c[0]*T+c[1]*E+io,Y[1]=c[0]*M+c[1]*oo+lo,Y[2]=v[0]*T+v[1]*E+io,Y[3]=v[0]*M+v[1]*oo+lo,Y[4]=Q[0]*T+Q[1]*E+io,Y[5]=Q[0]*M+Q[1]*oo+lo}return Y}function C(c,v,Q){var Y;if(this.isIdentity())Y=[c,v,Q];else Y=[c*this.props[0]+v*this.props[4]+Q*this.props[8]+this.props[12],c*this.props[1]+v*this.props[5]+Q*this.props[9]+this.props[13],c*this.props[2]+v*this.props[6]+Q*this.props[10]+this.props[14]];return Y}function j(c,v){if(this.isIdentity())return c+","+v;var Q=this.props;return Math.round((c*Q[0]+v*Q[4]+Q[12])*100)/100+","+Math.round((c*Q[1]+v*Q[5]+Q[13])*100)/100}function W(){var c=0,v=this.props,Q="matrix3d(",Y=1e4;while(c<16)Q+=t(v[c]*Y)/Y,Q+=c===15?")":",",c+=1;return Q}function x(c){var v=1e4;if(c<0.000001&&c>0||c>-0.000001&&c<0)return t(c*v)/v;return c}function K(){var c=this.props,v=x(c[0]),Q=x(c[1]),Y=x(c[4]),T=x(c[5]),M=x(c[12]),E=x(c[13]);return"matrix("+v+","+Q+","+Y+","+T+","+M+","+E+")"}return function(){this.reset=r,this.rotate=e,this.rotateX=n,this.rotateY=s,this.rotateZ=l,this.skew=g,this.skewFromAxis=H,this.shear=h,this.scale=p,this.setTransform=y,this.translate=z,this.transform=m,this.multiply=U,this.applyToPoint=R,this.applyToX=V,this.applyToY=L,this.applyToZ=w,this.applyToPointArray=C,this.applyToTriplePoints=J,this.applyToPointStringified=j,this.toCSS=W,this.to2dCSS=K,this.clone=f,this.cloneFromProps=k,this.equals=u,this.inversePoints=F,this.inversePoint=I,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=b,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 Li==="undefined"?"undefined":_typeof$3(Li))==="object"&&typeof Gi!=="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 g,H;if(h.s*r<=t)g=0;else g=(h.s*r-t)/a;if(h.e*r>=t+a)H=1;else H=(h.e*r-t)/a;n.push([g,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,g,H,p,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=[],m,U;for(n=0;n<s;n+=1)if(m=this.shapes[n],!m.shape._mdf&&!this._mdf&&!o&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(e=m.shape.paths,h=e._length,p=0,!m.shape._mdf&&m.pathsData.length)p=m.totalShapeLength;else{g=this.releasePathsData(m.pathsData);for(l=0;l<h;l+=1)H=bez.getSegmentsLength(e.shapes[l]),g.push(H),p+=H.totalLength;m.totalShapeLength=p,m.pathsData=g}y+=p,m.shape._mdf=!0}var b=i,u=a,f=0,k;for(n=s-1;n>=0;n-=1)if(m=this.shapes[n],m.shape._mdf){if(U=m.localShapeCollection,U.releaseShapes(),this.m===2&&s>1)k=this.calculateShapeEdges(i,a,m.totalShapeLength,f,y),f+=m.totalShapeLength;else k=[[b,u]];h=k.length;for(l=0;l<h;l+=1){if(b=k[l][0],u=k[l][1],z.length=0,u<=1)z.push({s:m.totalShapeLength*b,e:m.totalShapeLength*u});else if(b>=1)z.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(u-1)});else z.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),z.push({s:0,e:m.totalShapeLength*(u-1)});var R=this.addShapes(m,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var V=m.shape.paths.shapes[m.shape.paths._length-1];if(V.c){var L=R.pop();this.addPaths(R,U),R=this.addShapes(m,z[1],L)}else this.addPaths(R,U),R=this.addShapes(m,z[1])}this.addPaths(R,U)}}m.shape.paths=U}}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,g,H,p,y,z=[],m,U=!0;if(!a)a=shapePool.newElement(),H=0,m=0;else H=a._length,m=a._length;z.push(a);for(e=0;e<n;e+=1){p=t[e].lengths,a.c=r[e].c,l=r[e].c?p.length:p.length+1;for(s=1;s<l;s+=1)if(g=p[s-1],h+g.addedLength<i.s)h+=g.addedLength,a.c=!1;else if(h>i.e){a.c=!1;break}else{if(i.s<=h&&i.e>=h+g.addedLength)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[s],r[e].v[s],a,H,U),U=!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)/g.addedLength,(i.e-h)/g.addedLength,p[s-1]),this.addSegmentFromArray(y,a,H,U),U=!1,a.c=!1;h+=g.addedLength,H+=1}if(r[e].c&&p.length){if(g=p[s-1],h<=i.e){var b=p[s-1].addedLength;if(i.s<=h&&i.e>=h+b)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[0],r[e].v[0],a,H,U),U=!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)/b,(i.e-h)/b,p[s-1]),this.addSegmentFromArray(y,a,H,U),U=!1,a.c=!1}else a.c=!1;h+=g.addedLength,H+=1}if(a._length)a.setXYAt(a.v[m][0],a.v[m][1],"i",m),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(),U=!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,g,H,p;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,g=o.o[e][1]+(t[1]-o.o[e][1])*-a,H=o.i[e][0]+(t[0]-o.i[e][0])*-a,p=o.i[e][1]+(t[1]-o.i[e][1])*-a,n.setTripleAt(s,l,h,g,H,p,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 g,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)g=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)g=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 g=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){g=[],H=[];var p=this.px,y=this.py;if(p._caching.lastFrame+p.offsetTime<=p.keyframes[0].t)g[0]=p.getValueAtTime((p.keyframes[0].t+0.01)/h,0),g[1]=y.getValueAtTime((y.keyframes[0].t+0.01)/h,0),H[0]=p.getValueAtTime(p.keyframes[0].t/h,0),H[1]=y.getValueAtTime(y.keyframes[0].t/h,0);else if(p._caching.lastFrame+p.offsetTime>=p.keyframes[p.keyframes.length-1].t)g[0]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/h,0),g[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/h,0),H[0]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-0.01)/h,0),H[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-0.01)/h,0);else g=[p.pv,y.pv],H[0]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-0.01)/h,p.offsetTime),H[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-0.01)/h,y.offsetTime)}else H=o,g=H;this.v.rotate(-Math.atan2(g[1]-H[1],g[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,g){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(g||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,p=h.or.k.length;for(H=0;H<p;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,g){return new n(l,h,g)}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 g=this.elemsData[t].it,H=g[g.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 p=this.o.v,y=p%1,z=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,U=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(p>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(p<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 f,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(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.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]);for(f=0;f<k;f+=1)a[f]=this.matrix.props[f];this.matrix.reset()}else{this.matrix.reset();for(f=0;f<k;f+=1)a[f]=this.matrix.props[f]}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,g,H=0,p,y,z,m,U,b;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)),g=h?Math.min(h/2,i)/h:0,U=e[0]+(l[0]-e[0])*g,p=U,b=e[1]-(e[1]-l[1])*g,y=b,z=p-(p-e[0])*roundCorner,m=y-(y-e[1])*roundCorner,a.setTripleAt(p,y,z,m,U,b,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)),g=h?Math.min(h/2,i)/h:0,z=e[0]+(l[0]-e[0])*g,p=z,m=e[1]+(l[1]-e[1])*g,y=m,U=p-(p-e[0])*roundCorner,b=y-(y-e[1])*roundCorner,a.setTripleAt(p,y,z,m,U,b,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,g=i[1]-Math.sin(a)*t*r;o.setTripleAt(h,g,h+Math.cos(s)*e,g-Math.sin(s)*e,h+Math.cos(l)*n,g-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],g=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,p=e===2?Math.sqrt(Math.pow(l[0]-g[0],2)+Math.pow(l[1]-g[1],2)):0;setPoint(o,i.v[a%i._length],s,n,t,p/((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),g=i.point(s);setPoint(o,g,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,g;for(a=0;a<t;a+=1){if(h=this.shapes[a],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)g.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 g=lineIntersection(n,s,r,e);if(g===null)g=n;return new PolynomialBezier(a,h,g,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)),g=h?pointDistance(h,e):pointDistance(e,n)/2,H=polarOffset(e,s,2*g*roundCorner);return o.setXYAt(H[0],H[1],"o",o.length()-1),H=polarOffset(n,l,2*g*roundCorner),o.setTripleAt(n[0],n[1],n[0],n[1],H[0],H[1],o.length()),n}var p=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(p,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 g=null,H=null;for(n=0;n<h.length;n+=1){var p=h[n];if(H)g=joinLines(r,H,p[0],a,t);H=p[p.length-1];for(s=0;s<p.length;s+=1){if(l=p[s],g&&pointEqual(l.points[0],g))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()),g=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,g;for(a=0;a<t;a+=1){if(h=this.shapes[a],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)g.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,g=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(x){var K=x.split(","),c,v=K.length,Q=[];for(c=0;c<v;c+=1)if(K[c]!=="sans-serif"&&K[c]!=="monospace")Q.push(K[c]);return Q.join(",")}function y(x,K){var c=createTag("span");c.setAttribute("aria-hidden",!0),c.style.fontFamily=K;var v=createTag("span");v.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(v),document.body.appendChild(c);var Q=v.offsetWidth;return v.style.fontFamily=p(x)+", "+K,{node:v,w:Q,parent:c}}function z(){var x,K=this.fonts.length,c,v,Q=K;for(x=0;x<K;x+=1)if(this.fonts[x].loaded)Q-=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,v=this.fonts[x].monoCase.w,c.offsetWidth!==v)Q-=1,this.fonts[x].loaded=!0;else if(c=this.fonts[x].sansCase.node,v=this.fonts[x].sansCase.w,c.offsetWidth!==v)Q-=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(Q!==0&&Date.now()-this.initTime<o)setTimeout(this.checkLoadedFontsBinded,20);else setTimeout(this.setIsLoadedBinded,10)}function m(x,K){var c=document.body&&K?"svg":"canvas",v,Q=getFontProperties(x);if(c==="svg"){var Y=createNS("text");if(Y.style.fontSize="100px",Y.setAttribute("font-family",x.fFamily),Y.setAttribute("font-style",Q.style),Y.setAttribute("font-weight",Q.weight),Y.textContent="1",x.fClass)Y.style.fontFamily="inherit",Y.setAttribute("class",x.fClass);else Y.style.fontFamily=x.fFamily;K.appendChild(Y),v=Y}else{var T=new OffscreenCanvas(500,500).getContext("2d");T.font=Q.style+" "+Q.weight+" 100px "+x.fFamily,v=T}function M(E){if(c==="svg")return v.textContent=E,v.getComputedTextLength();return v.measureText(E).width}return{measureText:M}}function U(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=m(yo),yo.cache={}}),this.fonts=x.list;return}var c=x.list,v,Q=c.length,Y=Q;for(v=0;v<Q;v+=1){var T=!0,M,E;if(c[v].loaded=!1,c[v].monoCase=y(c[v].fFamily,"monospace"),c[v].sansCase=y(c[v].fFamily,"sans-serif"),!c[v].fPath)c[v].loaded=!0,Y-=1;else if(c[v].fOrigin==="p"||c[v].origin===3){if(M=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[v].fFamily+'"], style[f-origin="3"][f-family="'+c[v].fFamily+'"]'),M.length>0)T=!1;if(T){var oo=createTag("style");oo.setAttribute("f-forigin",c[v].fOrigin),oo.setAttribute("f-origin",c[v].origin),oo.setAttribute("f-family",c[v].fFamily),oo.type="text/css",oo.innerText="@font-face {font-family: "+c[v].fFamily+"; font-style: normal; src: url('"+c[v].fPath+"');}",K.appendChild(oo)}}else if(c[v].fOrigin==="g"||c[v].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[v].fPath)!==-1)T=!1;if(T){var io=createTag("link");io.setAttribute("f-forigin",c[v].fOrigin),io.setAttribute("f-origin",c[v].origin),io.type="text/css",io.rel="stylesheet",io.href=c[v].fPath,document.body.appendChild(io)}}else if(c[v].fOrigin==="t"||c[v].origin===2){M=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(E=0;E<M.length;E+=1)if(c[v].fPath===M[E].src)T=!1;if(T){var lo=createTag("link");lo.setAttribute("f-forigin",c[v].fOrigin),lo.setAttribute("f-origin",c[v].origin),lo.setAttribute("rel","stylesheet"),lo.setAttribute("href",c[v].fPath),K.appendChild(lo)}}c[v].helper=m(c[v],K),c[v].cache={},this.fonts.push(c[v])}if(Y===0)this.isLoaded=!0;else setTimeout(this.checkLoadedFonts.bind(this),100)}function b(x){if(!x)return;if(!this.chars)this.chars=[];var K,c=x.length,v,Q=this.chars.length,Y;for(K=0;K<c;K+=1){v=0,Y=!1;while(v<Q){if(this.chars[v].style===x[K].style&&this.chars[v].fFamily===x[K].fFamily&&this.chars[v].ch===x[K].ch)Y=!0;v+=1}if(!Y)this.chars.push(x[K]),Q+=1}}function u(x,K,c){var v=0,Q=this.chars.length;while(v<Q){if(this.chars[v].ch===x&&this.chars[v].style===K&&this.chars[v].fFamily===c)return this.chars[v];v+=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 f(x,K,c){var v=this.getFontByName(K),Q=x;if(!v.cache[Q]){var Y=v.helper;if(x===" "){var T=Y.measureText("|"+x+"|"),M=Y.measureText("||");v.cache[Q]=(T-M)/100}else v.cache[Q]=Y.measureText(x)/100}return v.cache[Q]*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 R(x){var K=0,c=x.charCodeAt(0);if(c>=55296&&c<=56319){var v=x.charCodeAt(1);if(v>=56320&&v<=57343)K=(c-55296)*1024+v-56320+65536}return K}function V(x,K){var c=x.toString(16)+K.toString(16);return H.indexOf(c)!==-1}function L(x){return x===l}function w(x){return x===s}function Z(x){var K=R(x);if(K>=h&&K<=g)return!0;return!1}function I(x){return Z(x.substr(0,2))&&Z(x.substr(2,2))}function F(x){return a.indexOf(x)!==-1}function J(x,K){var c=R(x.substr(K,2));if(c!==t)return!1;var v=0;K+=2;while(v<5){if(c=R(x.substr(K,2)),c<e||c>n)return!1;v+=1,K+=2}return R(x.substr(K,2))===r}function C(){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=V,j.isZeroWidthJoiner=L,j.isFlagEmoji=I,j.isRegionalCode=Z,j.isCombinedCharacter=F,j.isRegionalFlag=J,j.isVariationSelector=w,j.BLACK_FLAG_CODE_POINT=t;var W={addChars:b,addFonts:U,getCharData:u,getFontByName:k,measureText:f,checkLoadedFonts:z,setIsLoaded:C};return j.prototype=W,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=[],g,H,p=createElementID(),y,z,m,U,b="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)b="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 f;if(s[r].x.k!==0)b="mask",u="mask",U=PropertyFactory.getProp(this.element,s[r].x,0,null,this.element),f=createElementID(),z=createNS("filter"),z.setAttribute("id",f),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),z.appendChild(m),t.appendChild(z),n.setAttribute("stroke",s[r].mode==="s"?"#000000":"#ffffff");else m=null,U=null;if(this.storedData[r]={elem:n,x:U,expan:m,lastPath:"",lastOperator:"",filterId:f,lastRadius:0},s[r].mode==="i"){H=h.length;var k=createNS("g");for(g=0;g<H;g+=1)k.appendChild(h[g]);var R=createNS("mask");R.setAttribute("mask-type","alpha"),R.setAttribute("id",p+"_"+l),R.appendChild(n),t.appendChild(R),k.setAttribute("mask","url("+getLocationHref()+"#"+p+"_"+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(b),e=h.length;for(r=0;r<e;r+=1)this.maskElement.appendChild(h[r]);if(l>0)this.maskElement.setAttribute("id",p),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+p+")"),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 g=createNS("feComponentTransfer");g.setAttribute("in","SourceGraphic"),r.appendChild(g);var H=createNS("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),g.appendChild(H),this.globalData.defs.appendChild(r);var p=createNS("rect");if(p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),h.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),h.appendChild(p),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(p),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 g=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),g.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=g,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 g;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return e;default:return null}}function r(H,p,y){if(y||p.transform.op._mdf)p.transform.container.setAttribute("opacity",p.transform.op.v);if(y||p.transform.mProps._mdf)p.transform.container.setAttribute("transform",p.transform.mProps.v.to2dCSS())}function e(){}function n(H,p,y){var z,m,U,b,u,f,k=p.styles.length,R=p.lvl,V,L,w,Z;for(f=0;f<k;f+=1){if(b=p.sh._mdf||y,p.styles[f].lvl<R){L=i.reset(),w=R-p.styles[f].lvl,Z=p.transformers.length-1;while(!b&&w>0)b=p.transformers[Z].mProps._mdf||b,w-=1,Z-=1;if(b){w=R-p.styles[f].lvl,Z=p.transformers.length-1;while(w>0)L.multiply(p.transformers[Z].mProps.v),w-=1,Z-=1}}else L=o;if(V=p.sh.paths,m=V._length,b){U="";for(z=0;z<m;z+=1)if(u=V.shapes[z],u&&u._length)U+=buildShapeString(u,u._length,u.c,L);p.caches[f]=U}else U=p.caches[f];p.styles[f].d+=H.hd===!0?"":U,p.styles[f]._mdf=b||p.styles[f]._mdf}}function s(H,p,y){var z=p.style;if(p.c._mdf||y)z.pElem.setAttribute("fill","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")");if(p.o._mdf||y)z.pElem.setAttribute("fill-opacity",p.o.v)}function l(H,p,y){h(H,p,y),g(H,p,y)}function h(H,p,y){var z=p.gf,m=p.g._hasOpacity,U=p.s.v,b=p.e.v;if(p.o._mdf||y){var u=H.ty==="gf"?"fill-opacity":"stroke-opacity";p.style.pElem.setAttribute(u,p.o.v)}if(p.s._mdf||y){var f=H.t===1?"x1":"cx",k=f==="x1"?"y1":"cy";if(z.setAttribute(f,U[0]),z.setAttribute(k,U[1]),m&&!p.g._collapsable)p.of.setAttribute(f,U[0]),p.of.setAttribute(k,U[1])}var R,V,L,w;if(p.g._cmdf||y){R=p.cst;var Z=p.g.c;L=R.length;for(V=0;V<L;V+=1)w=R[V],w.setAttribute("offset",Z[V*4]+"%"),w.setAttribute("stop-color","rgb("+Z[V*4+1]+","+Z[V*4+2]+","+Z[V*4+3]+")")}if(m&&(p.g._omdf||y)){var I=p.g.o;if(p.g._collapsable)R=p.cst;else R=p.ost;L=R.length;for(V=0;V<L;V+=1){if(w=R[V],!p.g._collapsable)w.setAttribute("offset",I[V*2]+"%");w.setAttribute("stop-opacity",I[V*2+1])}}if(H.t===1){if(p.e._mdf||y){if(z.setAttribute("x2",b[0]),z.setAttribute("y2",b[1]),m&&!p.g._collapsable)p.of.setAttribute("x2",b[0]),p.of.setAttribute("y2",b[1])}}else{var F;if(p.s._mdf||p.e._mdf||y){if(F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2)),z.setAttribute("r",F),m&&!p.g._collapsable)p.of.setAttribute("r",F)}if(p.s._mdf||p.e._mdf||p.h._mdf||p.a._mdf||y){if(!F)F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2));var J=Math.atan2(b[1]-U[1],b[0]-U[0]),C=p.h.v;if(C>=1)C=0.99;else if(C<=-1)C=-0.99;var j=F*C,W=Math.cos(J+p.a.v)*j+U[0],x=Math.sin(J+p.a.v)*j+U[1];if(z.setAttribute("fx",W),z.setAttribute("fy",x),m&&!p.g._collapsable)p.of.setAttribute("fx",W),p.of.setAttribute("fy",x)}}}function g(H,p,y){var{style:z,d:m}=p;if(m&&(m._mdf||y)&&m.dashStr)z.pElem.setAttribute("stroke-dasharray",m.dashStr),z.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0]);if(p.c&&(p.c._mdf||y))z.pElem.setAttribute("stroke","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")");if(p.o._mdf||y)z.pElem.setAttribute("stroke-opacity",p.o.v);if(p.w._mdf||y){if(z.pElem.setAttribute("stroke-width",p.w.v),z.msElem)z.msElem.setAttribute("stroke-width",p.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,g,H,p=[],y=[],z,m,U;for(l=h;l>=0;l-=1){if(U=this.searchProcessedElement(o[l]),!U)o[l]._render=n;else i[l]=a[U-1];if(o[l].ty==="fl"||o[l].ty==="st"||o[l].ty==="gf"||o[l].ty==="gs"||o[l].ty==="no"){if(!U)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)}p.push(i[l].style)}else if(o[l].ty==="gr"){if(!U)i[l]=this.createGroupElement(o[l]);else{H=i[l].it.length;for(g=0;g<H;g+=1)i[l].prevViewData[g]=i[l].it[g]}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(!U)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(!U)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(!U)m=ShapeModifiers.getModifier(o[l].ty),m.init(this,o[l]),i[l]=m,this.shapeModifiers.push(m);else m=i[l],m.closed=!1;y.push(m)}else if(o[l].ty==="rp"){if(!U)m=ShapeModifiers.getModifier(o[l].ty),i[l]=m,m.init(this,o,l,i),this.shapeModifiers.push(m),n=!1;else m=i[l],m.closed=!0;y.push(m)}this.addProcessedElement(o[l],l+1)}h=p.length;for(l=0;l<h;l+=1)p[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,g=0,H=0,p=0,y=[],z=0,m=0,U,b,u=i.getFontByName(o.f),f,k=0,R=getFontProperties(u);o.fWeight=R.weight,o.fStyle=R.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),e=o.finalText.length,o.finalLineHeight=o.lh;var V=o.tr/1000*o.finalSize,L;if(o.sz){var w=!0,Z=o.sz[0],I=o.sz[1],F,J;while(w){J=this.buildFinalText(o.t),F=0,z=0,e=J.length,V=o.tr/1000*o.finalSize;var C=-1;for(r=0;r<e;r+=1){if(L=J[r].charCodeAt(0),n=!1,J[r]===" ")C=r;else if(L===13||L===3)z=0,n=!0,F+=o.finalLineHeight||o.finalSize*1.2;if(i.chars)f=i.getCharData(J[r],u.fStyle,u.fFamily),k=n?0:f.w*o.finalSize/100;else k=i.measureText(J[r],o.f,o.finalSize);if(z+k>Z&&J[r]!==" "){if(C===-1)e+=1;else r=C;F+=o.finalLineHeight||o.finalSize*1.2,J.splice(r,C===r?1:0,"\r"),C=-1,z=0}else z+=k,z+=V}if(F+=u.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&I<F)o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s;else o.finalText=J,e=o.finalText.length,w=!1}}z=-V,k=0;var j=0,W;for(r=0;r<e;r+=1){if(n=!1,W=o.finalText[r],L=W.charCodeAt(0),L===13||L===3)j=0,y.push(z),m=z>m?z:m,z=-2*V,l="",n=!0,p+=1;else l=W;if(i.chars)f=i.getCharData(W,u.fStyle,i.getFontByName(o.f).fFamily),k=n?0:f.w*o.finalSize/100;else k=i.measureText(l,o.f,o.finalSize);if(W===" ")j+=k+V;else z+=k+V+j,j=0;if(t.push({l:k,an:k,add:g,n,anIndexes:[],val:l,line:p,animatorJustifyOffset:0}),h==2){if(g+=k,l===""||l===" "||r===e-1){if(l===""||l===" ")g-=k;while(H<=r)t[H].an=g,t[H].ind=s,t[H].extra=k,H+=1;s+=1,g=0}}else if(h==3){if(g+=k,l===""||r===e-1){if(l==="")g-=k;while(H<=r)t[H].an=g,t[H].ind=s,t[H].extra=k,H+=1;g=0,s+=1}}else t[s].ind=s,t[s].extra=0,s+=1}if(o.l=t,m=z>m?z:m,y.push(z),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=m,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;b=x.length;var v,Q,Y=[];for(U=0;U<b;U+=1){if(K=x[U],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;Q=0,v=K.s.b;for(r=0;r<e;r+=1)if(c=t[r],c.anIndexes[U]=Q,v==1&&c.val!==""||v==2&&c.val!==""&&c.val!==" "||v==3&&(c.n||c.val==" "||r==e-1)||v==4&&(c.n||r==e-1)){if(K.s.rn===1)Y.push(Q);Q+=1}a.a[U].s.totalChars=Q;var T=-1,M;if(K.s.rn===1)for(r=0;r<e;r+=1){if(c=t[r],T!=c.anIndexes[U])T=c.anIndexes[U],M=Y.splice(Math.floor(Math.random()*Y.length),1)[0];c.anIndexes[U]=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,g=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 g=1+this.xe.v/100;var H=BezierFactory.getBezierEasing(s,l,h,g).get,p=0,y=this.finalS,z=this.finalE,m=this.data.sh;if(m===2){if(z===y)p=n>=z?1:0;else p=o(0,i(0.5/(z-y)+(n-y)/(z-y),1));p=H(p)}else if(m===3){if(z===y)p=n>=z?0:1;else p=1-o(0,i(0.5/(z-y)+(n-y)/(z-y),1));p=H(p)}else if(m===4){if(z===y)p=0;else if(p=o(0,i(0.5/(z-y)+(n-y)/(z-y),1)),p<0.5)p*=2;else p=1-2*(p-0.5);p=H(p)}else if(m===5){if(z===y)p=0;else{var U=z-y;n=i(o(0,n+0.5-y),z-y);var b=-U/2+n,u=U/2;p=Math.sqrt(1-b*b/(u*u))}p=H(p)}else if(m===6){if(z===y)p=0;else n=i(o(0,n+0.5-y),z-y),p=(1+Math.cos(Math.PI+Math.PI*2*n/(z-y)))/2;p=H(p)}else{if(n>=a(y))if(n-y<0)p=o(0,i(i(z,1)-(y-n),1));else p=o(0,i(z-n,1));p=H(p)}if(this.sm.v!==100){var f=this.sm.v*0.01;if(f===0)f=0.00000001;var k=0.5-f*0.5;if(p<k)p=0;else if(p=(p-k)/f,p>1)p=1}return p*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,g=this.e.v/s+l;if(h>g){var H=h;h=g,g=H}this.finalS=h,this.finalE=g}},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,g,H,p=o.l,y,z,m,U,b,u,f,k,R,V,L,w,Z,I,F;if(this._hasMaskedPath){if(F=this._pathData.m,!this._pathData.n||this._pathData._mdf){var J=F.v;if(this._pathData.r.v)J=J.reverse();y={tLength:0,segments:[]},H=J._length-1;var C;w=0;for(g=0;g<H;g+=1)C=bez.buildBezierData(J.v[g],J.v[g+1],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[g+1][0]-J.v[g+1][0],J.i[g+1][1]-J.v[g+1][1]]),y.tLength+=C.segmentLength,y.segments.push(C),w+=C.segmentLength;if(g=H,F.v.c)C=bez.buildBezierData(J.v[g],J.v[0],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[0][0]-J.v[0][0],J.i[0][1]-J.v[0][1]]),y.tLength+=C.segmentLength,y.segments.push(C),w+=C.segmentLength;this._pathData.pi=y}if(y=this._pathData.pi,z=this._pathData.f.v,f=0,u=1,U=0,b=!0,V=y.segments,z<0&&F.v.c){if(y.tLength<Math.abs(z))z=-Math.abs(z)%y.tLength;f=V.length-1,R=V[f].points,u=R.length-1;while(z<0)if(z+=R[u].partialLength,u-=1,u<0)f-=1,R=V[f].points,u=R.length-1}R=V[f].points,k=R[u-1],m=R[u],L=m.partialLength}H=p.length,l=0,h=0;var j=o.finalSize*1.2*0.714,W=!0,x,K,c,v,Q;v=t.length;var Y,T=-1,M,E,oo,io=z,lo=f,yo=u,Jo=-1,So,go,Ho,so,N,uo,hi,ai,oi="",ti=this.defaultPropsArray,ri;if(o.j===2||o.j===1){var $o=0,ui=0,pi=o.j===2?-0.5:-1,To=0,fi=!0;for(g=0;g<H;g+=1)if(p[g].n){if($o)$o+=ui;while(To<g)p[To].animatorJustifyOffset=$o,To+=1;$o=0,fi=!0}else{for(c=0;c<v;c+=1)if(x=t[c].a,x.t.propType){if(fi&&o.j===2)ui+=x.t.v*pi;if(K=t[c].s,Y=K.getMult(p[g].anIndexes[c],r.a[c].s.totalChars),Y.length)$o+=x.t.v*Y[0]*pi;else $o+=x.t.v*Y*pi}fi=!1}if($o)$o+=ui;while(To<g)p[To].animatorJustifyOffset=$o,To+=1}for(g=0;g<H;g+=1){if(e.reset(),So=1,p[g].n){if(l=0,h+=o.yOffset,h+=W?1:0,z=io,W=!1,this._hasMaskedPath)f=lo,u=yo,R=V[f].points,k=R[u-1],m=R[u],L=m.partialLength,U=0;oi="",ai="",uo="",ri="",ti=this.defaultPropsArray}else{if(this._hasMaskedPath){if(Jo!==p[g].line){switch(o.j){case 1:z+=w-o.lineWidths[p[g].line];break;case 2:z+=(w-o.lineWidths[p[g].line])/2;break;default:break}Jo=p[g].line}if(T!==p[g].ind){if(p[T])z+=p[T].extra;z+=p[g].an/2,T=p[g].ind}z+=a[0]*p[g].an*0.005;var Xo=0;for(c=0;c<v;c+=1){if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(p[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.p.v[0]*Y[0];else Xo+=x.p.v[0]*Y;if(x.a.propType)if(K=t[c].s,Y=K.getMult(p[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.a.v[0]*Y[0];else Xo+=x.a.v[0]*Y}if(b=!0,this._pathData.a.v)z=p[0].an*0.5+(w-this._pathData.f.v-p[0].an*0.5-p[p.length-1].an*0.5)*T/(H-1),z+=this._pathData.f.v;while(b)if(U+L>=z+Xo||!R)Z=(z+Xo-U)/m.partialLength,E=k.point[0]+(m.point[0]-k.point[0])*Z,oo=k.point[1]+(m.point[1]-k.point[1])*Z,e.translate(-a[0]*p[g].an*0.005,-(a[1]*j)*0.01),b=!1;else if(R){if(U+=m.partialLength,u+=1,u>=R.length)if(u=0,f+=1,!V[f])if(F.v.c)u=0,f=0,R=V[f].points;else U-=m.partialLength,R=null;else R=V[f].points;if(R)k=m,m=R[u],L=m.partialLength}M=p[g].an/2-p[g].add,e.translate(-M,0,0)}else M=p[g].an/2-p[g].add,e.translate(-M,0,0),e.translate(-a[0]*p[g].an*0.005,-a[1]*j*0.01,0);for(c=0;c<v;c+=1)if(x=t[c].a,x.t.propType){if(K=t[c].s,Y=K.getMult(p[g].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)go=[o.sc[0],o.sc[1],o.sc[2]];else go=[0,0,0];if(o.fillColorAnim&&o.fc)so=[o.fc[0],o.fc[1],o.fc[2]];for(c=0;c<v;c+=1)if(x=t[c].a,x.a.propType)if(K=t[c].s,Y=K.getMult(p[g].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<v;c+=1)if(x=t[c].a,x.s.propType)if(K=t[c].s,Y=K.getMult(p[g].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<v;c+=1){if(x=t[c].a,K=t[c].s,Y=K.getMult(p[g].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)So+=(x.o.v*Y[0]-So)*Y[0];else So+=(x.o.v*Y-So)*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)go[N]+=(x.sc.v[N]-go[N])*Y[0];else go[N]+=(x.sc.v[N]-go[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<v;c+=1)if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(p[g].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)hi="rgb("+Math.round(go[0]*255)+","+Math.round(go[1]*255)+","+Math.round(go[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=(m.point[1]-k.point[1])/(m.point[0]-k.point[0]);var xi=Math.atan(I)*180/Math.PI;if(m.point[0]<k.point[0])xi+=180;e.rotate(-xi*Math.PI/180)}if(e.translate(E,oo,0),z-=a[0]*p[g].an*0.005,p[g+1]&&T!==p[g+1].ind)z+=p[g].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(p[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[p[g].line]),0,0);break;case 2:e.translate(p[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[p[g].line])/2,0,0);break;default:break}e.translate(0,-o.ls),e.translate(M,0,0),e.translate(a[0]*p[g].an*0.005,a[1]*j*0.01,0),l+=p[g].l+o.tr*0.001*o.finalSize}if(n==="html")oi=e.toCSS();else if(n==="svg")oi=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=So}if(s<=g)Q=new LetterProps(ri,uo,hi,ai,oi,ti),this.renderedLetters.push(Q),s+=1,this.lettersChangedFlag=!0;else Q=this.renderedLetters[g],this.lettersChangedFlag=Q.update(ri,uo,hi,ai,oi,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,g="",H=this.data.singleShape,p=0,y=0,z=!0,m=a.tr*0.001*a.finalSize;if(H&&!s&&!a.sz){var U=this.textContainer,b="start";switch(a.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}U.setAttribute("text-anchor",b),U.setAttribute("letter-spacing",m);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",U.appendChild(l),!this.textSpans[o])this.textSpans[o]={span:null,glyph:null};this.textSpans[o].span=l,y+=a.finalLineHeight}this.layerElement.appendChild(U)}else{var f=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=f>o?this.textSpans[o].span:createNS(s?"g":"text"),f<=o){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=l,s){var R=createNS("g");l.appendChild(R),this.textSpans[o].childSpan=R}this.textSpans[o].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(h.reset(),H){if(n[o].n)p=-m,y+=a.yOffset,y+=z?1:0,z=!1;this.applyTextPropertiesToMatrix(a,h,n[o].line,p,y),p+=n[o].l||0,p+=m}if(s){k=this.globalData.fontManager.getCharData(a.finalText[o],t.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var V;if(k.t===1)V=new SVGCompElement(k.data,this.globalData,this);else{var L=emptyShapeData;if(k.data&&k.data.shapes)L=this.buildShapeData(k.data,a.finalSize);V=new SVGShapeElement(L,this.globalData,this)}if(this.textSpans[o].glyph){var w=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(w.layerElement),w.destroy()}if(this.textSpans[o].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[o].childSpan.appendChild(V.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",g)}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"),g=createNS("feColorMatrix");if(h.setAttribute("id",i),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.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(g),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=[],g=[],H,p,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)p=ShapeModifiers.getModifier(o[e].ty),p.init(this,o[e]),i[e]=p,this.shapeModifiers.push(p);else p=i[e],p.closed=!1;g.push(p)}else if(o[e].ty==="rp"){if(!H)p=ShapeModifiers.getModifier(o[e].ty),i[e]=p,p.init(this,o,e,i),this.shapeModifiers.push(p),t=!1;else p=i[e],p.closed=!0;g.push(p)}this.addProcessedElement(o[e],e+1)}this.removeTransformFromStyleList(),this.closeStyles(h),n=g.length;for(e=0;e<n;e+=1)g[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,g,H;for(o=0;o<i;o+=1)if(H=this.stylesList[o],g=H.type,!((g==="st"||g==="gs")&&H.wi===0||!H.data._shouldRender||H.coOp===0||this.globalData.currentGlobalAlpha===0)){if(l.save(),n=H.elements,g==="st"||g==="gs")l.ctxStrokeStyle(g==="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(g==="fl"?H.co:H.grd);if(l.ctxOpacity(H.coOp),g!=="st"&&g!=="gs")h.beginPath();l.ctxTransform(H.preTransforms.finalTransform.props),t=n.length;for(a=0;a<t;a+=1){if(g==="st"||g==="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(g==="st"||g==="gs"){if(l.ctxStroke(),H.da)h.setLineDash(this.dashResetter)}}if(g!=="st"&&g!=="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]),g=i.h.v;if(g>=1)g=0.99;else if(g<=-1)g=-0.99;var H=l*g,p=Math.cos(h+i.a.v)*H+n[0],y=Math.sin(h+i.a.v)*H+n[1];r=e.createRadialGradient(p,y,0,n[0],n[1],l)}var z,m=o.g.p,U=i.g.c,b=1;for(z=0;z<m;z+=1){if(i.g._hasOpacity&&i.g._collapsable)b=i.g.o[z*2+1];r.addColorStop(U[z*4]/100,"rgba("+U[z*4+1]+","+U[z*4+2]+","+U[z*4+3]+","+b+")")}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,g,H,p,y,z,m,U,b,u=this.data.singleShape,f=o.tr*0.001*o.finalSize,k=0,R=0,V=!0,L=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=-f,R+=o.yOffset,R+=V?1:0,V=!1;if(p=h.shapes?h.shapes[0].it:[],z=p.length,s.scale(o.finalSize/100,o.finalSize/100),u)this.applyTextPropertiesToMatrix(o,s,n[r].line,k,R);U=createSizedArray(z-1);var w=0;for(y=0;y<z;y+=1)if(p[y].ty==="sh"){H=p[y].ks.k.i.length,m=p[y].ks.k,b=[];for(g=1;g<H;g+=1){if(g===1)b.push(s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0));b.push(s.applyToX(m.o[g-1][0],m.o[g-1][1],0),s.applyToY(m.o[g-1][0],m.o[g-1][1],0),s.applyToX(m.i[g][0],m.i[g][1],0),s.applyToY(m.i[g][0],m.i[g][1],0),s.applyToX(m.v[g][0],m.v[g][1],0),s.applyToY(m.v[g][0],m.v[g][1],0))}b.push(s.applyToX(m.o[g-1][0],m.o[g-1][1],0),s.applyToY(m.o[g-1][0],m.o[g-1][1],0),s.applyToX(m.i[0][0],m.i[0][1],0),s.applyToY(m.i[0][0],m.i[0][1],0),s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0)),U[w]=b,w+=1}if(u)k+=n[r].l,k+=f;if(this.textSpans[L])this.textSpans[L].elem=U;else this.textSpans[L]={elem:U};L+=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,g=null,H=null,p=null,y,z,m=this.globalData.renderer;for(i=0;i<a;i+=1)if(!l[i].n){if(h=s[i],h)m.save(),m.ctxTransform(h.p),m.ctxOpacity(h.o);if(this.fill){if(h&&h.fc){if(g!==h.fc)m.ctxFillStyle(h.fc),g=h.fc}else if(g!==this.values.fill)g=this.values.fill,m.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(),m.ctxFill()}if(this.stroke){if(h&&h.sw){if(p!==h.sw)p=h.sw,m.ctxLineWidth(h.sw)}else if(p!==this.values.sWidth)p=this.values.sWidth,m.ctxLineWidth(this.values.sWidth);if(h&&h.sc){if(H!==h.sc)H=h.sc,m.ctxStrokeStyle(h.sc)}else if(H!==this.values.stroke)H=this.values.stroke,m.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(),m.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),g=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(g==="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(g==="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,g,H,p=0;p<2;++p)if(n=6*o[p]-12*i[p]+6*a[p],e=-3*o[p]+9*i[p]-9*a[p]+3*t[p],s=3*i[p]-3*o[p],n|=0,e|=0,s|=0,e===0&&n===0);else if(e===0){if(l=-s/n,l>0&&l<1)r[p].push(this.calculateF(l,o,i,a,t,p))}else if(h=n*n-4*s*e,h>=0){if(g=(-n+bmSqrt(h))/(2*e),g>0&&g<1)r[p].push(this.calculateF(g,o,i,a,t,p));if(H=(-n-bmSqrt(h))/(2*e),H>0&&H<1)r[p].push(this.calculateF(H,o,i,a,t,p))}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,g,H,p=this.mHelper,y,z="",m=0;for(n=0;n<s;n+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[m])h=createNS("path"),h.setAttribute("stroke-linecap",lineCapEnum[1]),h.setAttribute("stroke-linejoin",lineJoinEnum[2]),h.setAttribute("stroke-miterlimit","4");else h=this.textPaths[m];if(!this.isMasked)if(this.textSpans[m])g=this.textSpans[m],H=g.children[0];else g=createTag("div"),g.style.lineHeight=0,H=createNS("svg"),H.appendChild(h),styleDiv(g)}else if(!this.isMasked)if(this.textSpans[m])g=this.textSpans[m],h=this.textPaths[m];else g=createTag("span"),styleDiv(g),h=createTag("span"),styleDiv(h),g.appendChild(h);else h=this.textPaths[m]?this.textPaths[m]:createNS("text");if(this.globalData.fontManager.chars){var U=this.globalData.fontManager.getCharData(o.finalText[n],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),b;if(U)b=U.data;else b=null;if(p.reset(),b&&b.shapes&&b.shapes.length)y=b.shapes[0].it,p.scale(o.finalSize/100,o.finalSize/100),z=this.createPathShape(p,y),h.setAttribute("d",z);if(!this.isMasked){if(this.innerElem.appendChild(g),b&&b.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 f=H.style,k="translate("+(u.x-1)+"px,"+(u.y-1)+"px)";f.transform=k,f.webkitTransform=k,l[n].yOffset=u.y-1}else H.setAttribute("width",1),H.setAttribute("height",1);g.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(g);var R=h.style,V="translate3d(0,"+-o.finalSize/1.2+"px,0)";R.transform=V,R.webkitTransform=V}else this.innerElem.appendChild(h);if(!this.isMasked)this.textSpans[m]=g;else this.textSpans[m]=h;this.textSpans[m].style.display="block",this.textPaths[m]=h,m+=1}while(m<this.textSpans.length)this.textSpans[m].style.display="none",m+=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 g=this.innerElem.getBBox();if(this.currentBBox.w!==g.width)this.currentBBox.w=g.width,this.svgElement.setAttribute("width",g.width);if(this.currentBBox.h!==g.height)this.currentBBox.h=g.height,this.svgElement.setAttribute("height",g.height);var H=1;if(this.currentBBox.w!==g.width+H*2||this.currentBBox.h!==g.height+H*2||this.currentBBox.x!==g.x-H||this.currentBBox.y!==g.y-H){this.currentBBox.w=g.width+H*2,this.currentBBox.h=g.height+H*2,this.currentBBox.x=g.x-H,this.currentBBox.y=g.y-H,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),o=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=p,o.webkitTransform=p}}};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 g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){a=this.comp.threeDElements.length;var H,p,y;for(i=0;i<a;i+=1)if(H=this.comp.threeDElements[i],H.type==="3d"){if(g){var z=this.mat.toCSS();y=H.container.style,y.transform=z,y.webkitTransform=z}if(this.pe._mdf)p=H.perspectiveElem.style,p.perspective=this.pe.v+"px",p.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,g=t-1,H;function p(f,k,R){var V=[];k=k===!0?{entropy:!0}:k||{};var L=U(m(k.entropy?[f,u(o)]:f===null?b():f,3),V),w=new y(V),Z=function I(){var F=w.g(r),J=s,C=0;while(F<l)F=(F+C)*t,J*=t,C=w.g(1);while(F>=h)F/=2,J/=2,C>>>=1;return(F+C)/J};return Z.int32=function(){return w.g(4)|0},Z.quick=function(){return w.g(4)/4294967296},Z.double=Z,U(u(w.S),o),(k.pass||R||function(I,F,J,C){if(C){if(C.S)z(C,w);I.state=function(){return z(w,{})}}if(J)return i[n]=I,F;else return I})(Z,L,"global"in k?k.global:this==i,k.state)}i["seed"+n]=p;function y(f){var k,R=f.length,V=this,L=0,w=V.i=V.j=0,Z=V.S=[];if(!R)f=[R++];while(L<t)Z[L]=L++;for(L=0;L<t;L++)Z[L]=Z[w=g&w+f[L%R]+(k=Z[L])],Z[w]=k;V.g=function(I){var F,J=0,C=V.i,j=V.j,W=V.S;while(I--)F=W[C=g&C+1],J=J*t+W[g&(W[C]=W[j=g&j+F])+(W[j]=F)];return V.i=C,V.j=j,J}}function z(f,k){return k.i=f.i,k.j=f.j,k.S=f.S.slice(),k}function m(f,k){var R=[],V=_typeof$2(f),L;if(k&&V=="object")for(L in f)try{R.push(m(f[L],k-1))}catch(w){}return R.length?R:V=="string"?f:f+"\x00"}function U(f,k){var R=f+"",V,L=0;while(L<R.length)k[g&L]=g&(V^=k[g&L]*19)+R.charCodeAt(L++);return u(k)}function b(){try{if(H)return u(H.randomBytes(t));var f=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(f),u(f)}catch(V){var k=a.navigator,R=k&&k.plugins;return[+new Date,a,R,a.screen,u(o)]}}function u(f){return String.fromCharCode.apply(0,f)}U(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),g=createTypedArray("float32",e);if(e>1){for(r=0;r<e;r+=1)g[r]=this.pv[r]+n[r]+(-a+a*2*BMMath.random())*h;return g}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,g=r.length;for(h=0;h<g;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 g="";if("s"in s.keyframes[h-1])g=s.keyframes[h-1].s;else if("e"in s.keyframes[h-2])g=s.keyframes[h-2].e;else g=s.keyframes[h-2].s;var H=l==="unidimensional"?new Number(g):Object.assign({},g);return H.time=s.keyframes[h-1].t/s.elem.comp.globalData.frameRate,H.value=l==="unidimensional"?g[0]:g,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),g=createTypedArray("float32",l);return h.value=g,a(h,n,"multidimensional"),function(){if(n.k)n.getValue();for(var H=0;H<l;H+=1)g[H]=n.v[H]*s,h[H]=g[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 g=new Matrix;if(h!==void 0){var H=this._elem.finalTransform.mProp.getValueAtTime(h);H.clone(g)}else{var p=this._elem.finalTransform.mProp;p.applyToMatrix(g)}return g}function i(h,g){var H=this.getMatrix(g);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.applyPoint(H,h)}function a(h,g){var H=this.getMatrix(g);return this.applyPoint(H,h)}function t(h,g){var H=this.getMatrix(g);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.invertPoint(H,h)}function r(h,g){var H=this.getMatrix(g);return this.invertPoint(H,h)}function e(h,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,p=this._elem.hierarchy.length;for(H=0;H<p;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(g[0],g[1],g[2]||0)}function n(h,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,p=this._elem.hierarchy.length;for(H=0;H<p;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(g)}function s(h){var g=new Matrix;if(g.reset(),this._elem.finalTransform.mProp.applyToMatrix(g),this._elem.hierarchy&&this._elem.hierarchy.length){var H,p=this._elem.hierarchy.length;for(H=0;H<p;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(g);return g.inversePoint(h)}return g.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var g;function H(m){y.mask=new MaskManagerInterface(m,h)}function p(m){y.effect=m}function y(m){switch(m){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 g;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,g=TransformExpressionInterface(h.finalTransform.mProp);var z=getDescriptor(g,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function m(){return h.hierarchy.length}},parent:{get:function m(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(g,"rotation"),scale:getDescriptor(g,"scale"),position:getDescriptor(g,"position"),opacity:getDescriptor(g,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function m(){return g}},active:{get:function m(){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=p,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 g=r.data.ef||[],H=function p(y){l=0,h=g.length;while(l<h){if(y===g[l].nm||y===g[l].mn||y===g[l].ix)return n[l];l+=1}return null};return Object.defineProperty(H,"numProperties",{get:function p(){return g.length}}),H}return null}function a(r,e,n,s){function l(y){var z=r.ef,m=0,U=z.length;while(m<U){if(y===z[m].nm||y===z[m].mn||y===z[m].ix){if(z[m].ty===5)return g[m];return g[m]()}m+=1}throw new Error}var h=propertyGroupFactory(l,n),g=[],H,p=r.ef.length;for(H=0;H<p;H+=1)if(r.ef[H].ty===5)g.push(a(r.ef[H],e.effectElements[H],e.effectElements[H].propertyGroup,s));else g.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 g[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,m,U){var b=[],u,f=z?z.length:0;for(u=0;u<f;u+=1)if(z[u].ty==="gr")b.push(a(z[u],m[u],U));else if(z[u].ty==="fl")b.push(t(z[u],m[u],U));else if(z[u].ty==="st")b.push(n(z[u],m[u],U));else if(z[u].ty==="tm")b.push(s(z[u],m[u],U));else if(z[u].ty==="tr");else if(z[u].ty==="el")b.push(h(z[u],m[u],U));else if(z[u].ty==="sr")b.push(g(z[u],m[u],U));else if(z[u].ty==="sh")b.push(ShapePathInterface(z[u],m[u],U));else if(z[u].ty==="rc")b.push(H(z[u],m[u],U));else if(z[u].ty==="rd")b.push(p(z[u],m[u],U));else if(z[u].ty==="rp")b.push(y(z[u],m[u],U));else if(z[u].ty==="gf")b.push(r(z[u],m[u],U));else b.push(e(z[u],m[u],U));return b}function i(z,m,U){var b,u=function k(R){var V=0,L=b.length;while(V<L){if(b[V]._name===R||b[V].mn===R||b[V].propertyIndex===R||b[V].ix===R||b[V].ind===R)return b[V];V+=1}if(typeof R==="number")return b[R-1];return null};u.propertyGroup=propertyGroupFactory(u,U),b=o(z.it,m.it,u.propertyGroup),u.numProperties=b.length;var f=l(z.it[z.it.length-1],m.it[m.it.length-1],u.propertyGroup);return u.transform=f,u.propertyIndex=z.cix,u._name=z.nm,u}function a(z,m,U){var b=function k(R){switch(R){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,U);var u=i(z,m,b.propertyGroup),f=l(z.it[z.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.content=u,b.transform=f,Object.defineProperty(b,"_name",{get:function k(){return z.nm}}),b.numProperties=z.np,b.propertyIndex=z.ix,b.nm=z.nm,b.mn=z.mn,b}function t(z,m,U){function b(u){if(u==="Color"||u==="color")return b.color;if(u==="Opacity"||u==="opacity")return b.opacity;return null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:z.nm},mn:{value:z.mn}}),m.c.setGroupProperty(PropertyInterface("Color",U)),m.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function r(z,m,U){function b(u){if(u==="Start Point"||u==="start point")return b.startPoint;if(u==="End Point"||u==="end point")return b.endPoint;if(u==="Opacity"||u==="opacity")return b.opacity;return null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function u(){return"a"}},_name:{value:z.nm},mn:{value:z.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",U)),m.e.setGroupProperty(PropertyInterface("End Point",U)),m.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function e(){function z(){return null}return z}function n(z,m,U){var b=propertyGroupFactory(L,U),u=propertyGroupFactory(V,b);function f(w){Object.defineProperty(V,z.d[w].nm,{get:ExpressionPropertyInterface(m.d.dataProps[w].p)})}var k,R=z.d?z.d.length:0,V={};for(k=0;k<R;k+=1)f(k),m.d.dataProps[k].p.setGroupProperty(u);function L(w){if(w==="Color"||w==="color")return L.color;if(w==="Opacity"||w==="opacity")return L.opacity;if(w==="Stroke Width"||w==="stroke width")return L.strokeWidth;return null}return Object.defineProperties(L,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function w(){return V}},_name:{value:z.nm},mn:{value:z.mn}}),m.c.setGroupProperty(PropertyInterface("Color",b)),m.o.setGroupProperty(PropertyInterface("Opacity",b)),m.w.setGroupProperty(PropertyInterface("Stroke Width",b)),L}function s(z,m,U){function b(f){if(f===z.e.ix||f==="End"||f==="end")return b.end;if(f===z.s.ix)return b.start;if(f===z.o.ix)return b.offset;return null}var u=propertyGroupFactory(b,U);return b.propertyIndex=z.ix,m.s.setGroupProperty(PropertyInterface("Start",u)),m.e.setGroupProperty(PropertyInterface("End",u)),m.o.setGroupProperty(PropertyInterface("Offset",u)),b.propertyIndex=z.ix,b.propertyGroup=U,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:z.nm}}),b.mn=z.mn,b}function l(z,m,U){function b(f){if(z.a.ix===f||f==="Anchor Point")return b.anchorPoint;if(z.o.ix===f||f==="Opacity")return b.opacity;if(z.p.ix===f||f==="Position")return b.position;if(z.r.ix===f||f==="Rotation"||f==="ADBE Vector Rotation")return b.rotation;if(z.s.ix===f||f==="Scale")return b.scale;if(z.sk&&z.sk.ix===f||f==="Skew")return b.skew;if(z.sa&&z.sa.ix===f||f==="Skew Axis")return b.skewAxis;return null}var u=propertyGroupFactory(b,U);if(m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",u)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",u)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",u)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",u)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",u)),m.transform.mProps.sk)m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",u)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",u));return m.transform.op.setGroupProperty(PropertyInterface("Opacity",u)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:z.nm}}),b.ty="tr",b.mn=z.mn,b.propertyGroup=U,b}function h(z,m,U){function b(k){if(z.p.ix===k)return b.position;if(z.s.ix===k)return b.size;return null}var u=propertyGroupFactory(b,U);b.propertyIndex=z.ix;var f=m.sh.ty==="tm"?m.sh.prop:m.sh;return f.s.setGroupProperty(PropertyInterface("Size",u)),f.p.setGroupProperty(PropertyInterface("Position",u)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(f.s)},position:{get:ExpressionPropertyInterface(f.p)},_name:{value:z.nm}}),b.mn=z.mn,b}function g(z,m,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.rotation;if(z.pt.ix===k)return b.points;if(z.or.ix===k||k==="ADBE Vector Star Outer Radius")return b.outerRadius;if(z.os.ix===k)return b.outerRoundness;if(z.ir&&(z.ir.ix===k||k==="ADBE Vector Star Inner Radius"))return b.innerRadius;if(z.is&&z.is.ix===k)return b.innerRoundness;return null}var u=propertyGroupFactory(b,U),f=m.sh.ty==="tm"?m.sh.prop:m.sh;if(b.propertyIndex=z.ix,f.or.setGroupProperty(PropertyInterface("Outer Radius",u)),f.os.setGroupProperty(PropertyInterface("Outer Roundness",u)),f.pt.setGroupProperty(PropertyInterface("Points",u)),f.p.setGroupProperty(PropertyInterface("Position",u)),f.r.setGroupProperty(PropertyInterface("Rotation",u)),z.ir)f.ir.setGroupProperty(PropertyInterface("Inner Radius",u)),f.is.setGroupProperty(PropertyInterface("Inner Roundness",u));return Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(f.p)},rotation:{get:ExpressionPropertyInterface(f.r)},points:{get:ExpressionPropertyInterface(f.pt)},outerRadius:{get:ExpressionPropertyInterface(f.or)},outerRoundness:{get:ExpressionPropertyInterface(f.os)},innerRadius:{get:ExpressionPropertyInterface(f.ir)},innerRoundness:{get:ExpressionPropertyInterface(f.is)},_name:{value:z.nm}}),b.mn=z.mn,b}function H(z,m,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.roundness;if(z.s.ix===k||k==="Size"||k==="ADBE Vector Rect Size")return b.size;return null}var u=propertyGroupFactory(b,U),f=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=z.ix,f.p.setGroupProperty(PropertyInterface("Position",u)),f.s.setGroupProperty(PropertyInterface("Size",u)),f.r.setGroupProperty(PropertyInterface("Rotation",u)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(f.p)},roundness:{get:ExpressionPropertyInterface(f.r)},size:{get:ExpressionPropertyInterface(f.s)},_name:{value:z.nm}}),b.mn=z.mn,b}function p(z,m,U){function b(k){if(z.r.ix===k||k==="Round Corners 1")return b.radius;return null}var u=propertyGroupFactory(b,U),f=m;return b.propertyIndex=z.ix,f.rd.setGroupProperty(PropertyInterface("Radius",u)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(f.rd)},_name:{value:z.nm}}),b.mn=z.mn,b}function y(z,m,U){function b(k){if(z.c.ix===k||k==="Copies")return b.copies;if(z.o.ix===k||k==="Offset")return b.offset;return null}var u=propertyGroupFactory(b,U),f=m;return b.propertyIndex=z.ix,f.c.setGroupProperty(PropertyInterface("Copies",u)),f.o.setGroupProperty(PropertyInterface("Offset",u)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(f.c)},offset:{get:ExpressionPropertyInterface(f.o)},_name:{value:z.nm}}),b.mn=z.mn,b}return function(z,m,U){var b;function u(k){if(typeof k==="number"){if(k=k===void 0?1:k,k===0)return U;return b[k-1]}var R=0,V=b.length;while(R<V){if(b[R]._name===k)return b[R];R+=1}return null}function f(){return U}return u.propertyGroup=propertyGroupFactory(u,f),b=o(z,m,u.propertyGroup),u.numProperties=b.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 g=parseInt(l.substr(h+r.length),10);if(e=e[g],_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),g=0;if(l.length){var H;for(H=0;H<l.length;H+=1)g+=Math.pow(h[H]-l[H],2);g=Math.sqrt(g)*100}else g=0;return g}function t(n){if(this.vel!==void 0)return this.vel;var s=-0.001,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),g;if(l.length){g=createTypedArray("float32",l.length);var H;for(H=0;H<l.length;H+=1)g[H]=(h[H]-l[H])/s}else g=(h-l)/s;return g}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(p,y,z){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var m=this.comp.renderedFrame,U=this.keyframes,b=U[U.length-1].t;if(m<=b)return this.pv;var u,f;if(!z){if(!y||y>U.length-1)y=U.length-1;f=U[U.length-1-y].t,u=b-f}else{if(!y)u=Math.max(0,b-this.elem.data.ip);else u=Math.abs(b-this.elem.comp.globalData.frameRate*y);f=b-u}var k,R,V;if(p==="pingpong"){var L=Math.floor((m-f)/u);if(L%2!==0)return this.getValueAtTime((u-(m-f)%u+f)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var w=this.getValueAtTime(f/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(b/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((m-f)%u+f)/this.comp.globalData.frameRate,0),F=Math.floor((m-f)/u);if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=(Z[k]-w[k])*F+I[k];return V}return(Z-w)*F+I}else if(p==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),C=this.getValueAtTime((b-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-C[k])*((m-b)/this.comp.globalData.frameRate)/0.0005;return V}return J+(J-C)*((m-b)/0.001)}return this.getValueAtTime(((m-f)%u+f)/this.comp.globalData.frameRate,0)}function i(p,y,z){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var m=this.comp.renderedFrame,U=this.keyframes,b=U[0].t;if(m>=b)return this.pv;var u,f;if(!z){if(!y||y>U.length-1)y=U.length-1;f=U[y].t,u=f-b}else{if(!y)u=Math.max(0,this.elem.data.op-b);else u=Math.abs(this.elem.comp.globalData.frameRate*y);f=b+u}var k,R,V;if(p==="pingpong"){var L=Math.floor((b-m)/u);if(L%2===0)return this.getValueAtTime(((b-m)%u+b)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var w=this.getValueAtTime(b/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(f/this.comp.globalData.frameRate,0),I=this.getValueAtTime((u-(b-m)%u+b)/this.comp.globalData.frameRate,0),F=Math.floor((b-m)/u)+1;if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=I[k]-(Z[k]-w[k])*F;return V}return I-(Z-w)*F}else if(p==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),C=this.getValueAtTime((b+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-C[k])*(b-m)/0.001;return V}return J+(J-C)*(b-m)/0.001}return this.getValueAtTime((u-((b-m)%u+b))/this.comp.globalData.frameRate,0)}function a(p,y){if(!this.k)return this.pv;if(p=(p||0.4)*0.5,y=Math.floor(y||5),y<=1)return this.pv;var z=this.comp.renderedFrame/this.comp.globalData.frameRate,m=z-p,U=z+p,b=y>1?(U-m)/(y-1):1,u=0,f=0,k;if(this.pv.length)k=createTypedArray("float32",this.pv.length);else k=0;var R;while(u<y){if(R=this.getValueAtTime(m+u*b),this.pv.length)for(f=0;f<this.pv.length;f+=1)k[f]+=R[f];else k+=R;u+=1}if(this.pv.length)for(f=0;f<this.pv.length;f+=1)k[f]/=y;else k/=y;return k}function t(p){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(p);y.translate(-z[0]*this.a.mult,-z[1]*this.a.mult,z[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(p);y.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var U=this.sk.getValueAtTime(p),b=this.sa.getValueAtTime(p);y.skewFromAxis(-U*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var u=this.r.getValueAtTime(p);y.rotate(-u*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var f=this.rz.getValueAtTime(p),k=this.ry.getValueAtTime(p),R=this.rx.getValueAtTime(p),V=this.or.getValueAtTime(p);y.rotateZ(-f*this.rz.mult).rotateY(k*this.ry.mult).rotateX(R*this.rx.mult).rotateZ(-V[2]*this.or.mult).rotateY(V[1]*this.or.mult).rotateX(V[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var L=this.px.getValueAtTime(p),w=this.py.getValueAtTime(p);if(this.data.p.z){var Z=this.pz.getValueAtTime(p);y.translate(L*this.px.mult,w*this.py.mult,-Z*this.pz.mult)}else y.translate(L*this.px.mult,w*this.py.mult,0)}else{var I=this.p.getValueAtTime(p);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(p,y,z){var m=e(p,y,z);if(m.dynamicProperties.length)m.getValueAtTime=t.bind(m);else m.getValueAtTime=r.bind(m);return m.setGroupProperty=expressionHelpers.setGroupProperty,m};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(p,y,z,m,U){var b=n(p,y,z,m,U);if(b.kf)b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b);else b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b);b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=o,b.loopIn=i,b.smooth=a,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=y.a===1?y.k.length:0,b.propertyIndex=y.ix;var u=0;if(z!==0)u=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length);if(b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(p,y,b),b.k)U.addDynamicProperty(b);return b};function s(p){if(!this._cachingAtTime)this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame};if(p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastTime)this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime);return this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function g(){}g.prototype={vertices:function p(y,z){if(this.k)this.getValue();var m=this.v;if(z!==void 0)m=this.getValueAtTime(z,0);var U,b=m._length,u=m[y],f=m.v,k=createSizedArray(b);for(U=0;U<b;U+=1)if(y==="i"||y==="o")k[U]=[u[U][0]-f[U][0],u[U][1]-f[U][1]];else k[U]=[u[U][0],u[U][1]];return k},points:function p(y){return this.vertices("v",y)},inTangents:function p(y){return this.vertices("i",y)},outTangents:function p(y){return this.vertices("o",y)},isClosed:function p(){return this.v.c},pointOnPath:function p(y,z){var m=this.v;if(z!==void 0)m=this.getValueAtTime(z,0);if(!this._segmentsLength)this._segmentsLength=bez.getSegmentsLength(m);var U=this._segmentsLength,b=U.lengths,u=U.totalLength*y,f=0,k=b.length,R=0,V;while(f<k){if(R+b[f].addedLength>u){var L=f,w=m.c&&f===k-1?0:f+1,Z=(u-R)/b[f].addedLength;V=bez.getPointInSegment(m.v[L],m.v[w],m.o[L],m.i[w],Z,b[f]);break}else R+=b[f].addedLength;f+=1}if(!V)V=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]];return V},vectorOnPath:function p(y,z,m){if(y==1)y=this.v.c;else if(y==0)y=0.999;var U=this.pointOnPath(y,z),b=this.pointOnPath(y+0.001,z),u=b[0]-U[0],f=b[1]-U[1],k=Math.sqrt(Math.pow(u,2)+Math.pow(f,2));if(k===0)return[0,0];var R=m==="tangent"?[u/k,f/k]:[-f/k,u/k];return R},tangentOnPath:function p(y,z){return this.vectorOnPath(y,z,"tangent")},normalOnPath:function p(y,z){return this.vectorOnPath(y,z,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],l),extendPrototype([g],h),h.prototype.getValueAtTime=s,h.prototype.initiateExpression=ExpressionManager.initiateExpression;var H=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,y,z,m,U){var b=H(p,y,z,m,U);if(b.propertyIndex=y.ix,b.lock=!1,z===3)expressionHelpers.searchExpressions(p,y.pt,b);else if(z===4)expressionHelpers.searchExpressions(p,y.ks,b);if(b.k)p.addDynamicProperty(b);return b}}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),g=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01,H=Math.floor(h/g),p;for(p=0;p<H;p+=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),g=Array.call(null,{length:n}),H,p=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);g[p]=H,p+=1,e+=256/(n-1)}return g.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 g=createNS("feComposite");g.setAttribute("in",t+"_drop_shadow_3"),g.setAttribute("in2",t+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(g);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 zi 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 zi(this.context,this.host,this.t,this.subscribe))}}class Pa{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 Vr extends Event{constructor(o,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i}}class yi extends Pa{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 zi(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 Vr(this.context,this.host))}}function ao({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 Gn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Aa=Math.ceil,jo=Math.floor,Yo="[BigNumber Error] ",Ir=Yo+"Number primitive has more than 15 significant digits: ",Bo=100000000000000,no=14,_a=9007199254740991,Oa=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],gi=1e7,Zo=1e9;function qr(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,g=-1e7,H=1e7,p=!1,y=1,z=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function u(w,Z){var I,F,J,C,j,W,x,K,c=this;if(!(c instanceof u))return new u(w,Z);if(Z==null){if(w&&w._isBigNumber===!0){if(c.s=w.s,!w.c||w.e>H)c.c=c.e=null;else if(w.e<g)c.c=[c.e=0];else c.e=w.e,c.c=w.c.slice();return}if((W=typeof w=="number")&&w*0==0){if(c.s=1/w<0?(w=-w,-1):1,w===~~w){for(C=0,j=w;j>=10;j/=10,C++);if(C>H)c.c=c.e=null;else c.e=C,c.c=[w];return}K=String(w)}else{if(!Gn.test(K=String(w)))return t(c,K,W);c.s=K.charCodeAt(0)==45?(K=K.slice(1),-1):1}if((C=K.indexOf("."))>-1)K=K.replace(".","");if((j=K.search(/e/i))>0){if(C<0)C=j;C+=+K.slice(j+1),K=K.substring(0,j)}else if(C<0)C=K.length}else{if(ko(Z,2,U.length,"Base"),Z==10&&b)return c=new u(w),V(c,n+c.e+1,s);if(K=String(w),W=typeof w=="number"){if(w*0!=0)return t(c,K,W,Z);if(c.s=1/w<0?(K=K.slice(1),-1):1,u.DEBUG&&K.replace(/^0\.0*|\./,"").length>15)throw Error(Ir+w)}else c.s=K.charCodeAt(0)===45?(K=K.slice(1),-1):1;I=U.slice(0,Z),C=j=0;for(x=K.length;j<x;j++)if(I.indexOf(F=K.charAt(j))<0){if(F=="."){if(j>C){C=x;continue}}else if(!J){if(K==K.toUpperCase()&&(K=K.toLowerCase())||K==K.toLowerCase()&&(K=K.toUpperCase())){J=!0,j=-1,C=0;continue}}return t(c,String(w),W,Z)}if(W=!1,K=a(K,Z,10,c.s),(C=K.indexOf("."))>-1)K=K.replace(".","");else C=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,W&&u.DEBUG&&x>15&&(w>_a||w!==jo(w)))throw Error(Ir+c.s*w);if((C=C-j-1)>H)c.c=c.e=null;else if(C<g)c.c=[c.e=0];else{if(c.e=C,c.c=[],j=(C+1)%no,C<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=qr,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(w){var Z,I;if(w!=null)if(typeof w=="object"){if(w.hasOwnProperty(Z="DECIMAL_PLACES"))I=w[Z],ko(I,0,Zo,Z),n=I;if(w.hasOwnProperty(Z="ROUNDING_MODE"))I=w[Z],ko(I,0,8,Z),s=I;if(w.hasOwnProperty(Z="EXPONENTIAL_AT"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,0,Z),ko(I[1],0,Zo,Z),l=I[0],h=I[1];else ko(I,-Zo,Zo,Z),l=-(h=I<0?-I:I);if(w.hasOwnProperty(Z="RANGE"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,-1,Z),ko(I[1],1,Zo,Z),g=I[0],H=I[1];else if(ko(I,-Zo,Zo,Z),I)g=-(H=I<0?-I:I);else throw Error(Yo+Z+" cannot be zero: "+I);if(w.hasOwnProperty(Z="CRYPTO"))if(I=w[Z],I===!!I)if(I)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))p=I;else throw p=!I,Error(Yo+"crypto unavailable");else p=I;else throw Error(Yo+Z+" not true or false: "+I);if(w.hasOwnProperty(Z="MODULO_MODE"))I=w[Z],ko(I,0,9,Z),y=I;if(w.hasOwnProperty(Z="POW_PRECISION"))I=w[Z],ko(I,0,Zo,Z),z=I;if(w.hasOwnProperty(Z="FORMAT"))if(I=w[Z],typeof I=="object")m=I;else throw Error(Yo+Z+" not an object: "+I);if(w.hasOwnProperty(Z="ALPHABET"))if(I=w[Z],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))b=I.slice(0,10)=="0123456789",U=I;else throw Error(Yo+Z+" invalid: "+I)}else throw Error(Yo+"Object expected: "+w);return{DECIMAL_PLACES:n,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,h],RANGE:[g,H],CRYPTO:p,MODULO_MODE:y,POW_PRECISION:z,FORMAT:m,ALPHABET:U}},u.isBigNumber=function(w){if(!w||w._isBigNumber!==!0)return!1;if(!u.DEBUG)return!0;var Z,I,F=w.c,J=w.e,C=w.s;o:if({}.toString.call(F)=="[object Array]"){if((C===1||C===-1)&&J>=-Zo&&J<=Zo&&J===jo(J)){if(F[0]===0){if(J===0&&F.length===1)return!0;break o}if(Z=(J+1)%no,Z<1)Z+=no;if(String(F[0]).length==Z){for(Z=0;Z<F.length;Z++)if(I=F[Z],I<0||I>=Bo||I!==jo(I))break o;if(I!==0)return!0}}}else if(F===null&&J===null&&(C===null||C===1||C===-1))return!0;throw Error(Yo+"Invalid BigNumber: "+w)},u.maximum=u.max=function(){return k(arguments,-1)},u.minimum=u.min=function(){return k(arguments,1)},u.random=function(){var w=9007199254740992,Z=Math.random()*w&2097151?function(){return jo(Math.random()*w)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var F,J,C,j,W,x=0,K=[],c=new u(e);if(I==null)I=n;else ko(I,0,Zo);if(j=Aa(I/no),p)if(crypto.getRandomValues){F=crypto.getRandomValues(new Uint32Array(j*=2));for(;x<j;)if(W=F[x]*131072+(F[x+1]>>>11),W>=9000000000000000)J=crypto.getRandomValues(new Uint32Array(2)),F[x]=J[0],F[x+1]=J[1];else K.push(W%100000000000000),x+=2;x=j/2}else if(crypto.randomBytes){F=crypto.randomBytes(j*=7);for(;x<j;)if(W=(F[x]&31)*281474976710656+F[x+1]*1099511627776+F[x+2]*4294967296+F[x+3]*16777216+(F[x+4]<<16)+(F[x+5]<<8)+F[x+6],W>=9000000000000000)crypto.randomBytes(7).copy(F,x);else K.push(W%100000000000000),x+=7;x=j/7}else throw p=!1,Error(Yo+"crypto unavailable");if(!p){for(;x<j;)if(W=Z(),W<9000000000000000)K[x++]=W%100000000000000}if(j=K[--x],I%=no,j&&I)W=Oa[no-I],K[x]=jo(j/W)*W;for(;K[x]===0;K.pop(),x--);if(x<0)K=[C=0];else{for(C=-1;K[0]===0;K.splice(0,1),C-=no);for(x=1,W=K[0];W>=10;W/=10,x++);if(x<no)C-=no-x}return c.e=C,c.c=K,c}}(),u.sum=function(){var w=1,Z=arguments,I=new u(Z[0]);for(;w<Z.length;)I=I.plus(Z[w++]);return I},a=function(){var w="0123456789";function Z(I,F,J,C){var j,W=[0],x,K=0,c=I.length;for(;K<c;){for(x=W.length;x--;W[x]*=F);W[0]+=C.indexOf(I.charAt(K++));for(j=0;j<W.length;j++)if(W[j]>J-1){if(W[j+1]==null)W[j+1]=0;W[j+1]+=W[j]/J|0,W[j]%=J}}return W.reverse()}return function(I,F,J,C,j){var W,x,K,c,v,Q,Y,T,M=I.indexOf("."),E=n,oo=s;if(M>=0)c=z,z=0,I=I.replace(".",""),T=new u(F),Q=T.pow(I.length-M),z=c,T.c=Z(ni(Qo(Q.c),Q.e,"0"),10,J,w),T.e=T.c.length;Y=Z(I,F,J,j?(W=U,w):(W=w,U)),K=c=Y.length;for(;Y[--c]==0;Y.pop());if(!Y[0])return W.charAt(0);if(M<0)--K;else Q.c=Y,Q.e=K,Q.s=C,Q=i(Q,T,E,oo,J),Y=Q.c,v=Q.r,K=Q.e;if(x=K+E+1,M=Y[x],c=J/2,v=v||x<0||Y[x+1]!=null,v=oo<4?(M!=null||v)&&(oo==0||oo==(Q.s<0?3:2)):M>c||M==c&&(oo==4||v||oo==6&&Y[x-1]&1||oo==(Q.s<0?8:7)),x<1||!Y[0])I=v?ni(W.charAt(1),-E,W.charAt(0)):W.charAt(0);else{if(Y.length=x,v){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+=W.charAt(Y[M++]));I=ni(I,K,W.charAt(0))}return I}}(),i=function(){function w(F,J,C){var j,W,x,K,c=0,v=F.length,Q=J%gi,Y=J/gi|0;for(F=F.slice();v--;)x=F[v]%gi,K=F[v]/gi|0,j=Y*x+K*Q,W=Q*x+j%gi*gi+c,c=(W/C|0)+(j/gi|0)+Y*K,F[v]=W%C;if(c)F=[c].concat(F);return F}function Z(F,J,C,j){var W,x;if(C!=j)x=C>j?1:-1;else for(W=x=0;W<C;W++)if(F[W]!=J[W]){x=F[W]>J[W]?1:-1;break}return x}function I(F,J,C,j){var W=0;for(;C--;)F[C]-=W,W=F[C]<J[C]?1:0,F[C]=W*j+F[C]-J[C];for(;!F[0]&&F.length>1;F.splice(0,1));}return function(F,J,C,j,W){var x,K,c,v,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so=F.s==J.s?1:-1,N=F.c,uo=J.c;if(!N||!N[0]||!uo||!uo[0])return new u(!F.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=F.e-J.e,so=C+K+1,!W)W=Bo,K=Po(F.e/no)-Po(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),v=!0;else{if(Jo=N.length,go=uo.length,c=0,so+=2,Q=jo(W/(uo[0]+1)),Q>1)uo=w(uo,Q,W),N=w(N,Q,W),go=uo.length,Jo=N.length;yo=go,oo=N.slice(0,go),io=oo.length;for(;io<go;oo[io++]=0);if(Ho=uo.slice(),Ho=[0].concat(Ho),So=uo[0],uo[1]>=W/2)So++;do{if(Q=0,x=Z(uo,oo,go,io),x<0){if(lo=oo[0],go!=io)lo=lo*W+(oo[1]||0);if(Q=jo(lo/So),Q>1){if(Q>=W)Q=W-1;Y=w(uo,Q,W),T=Y.length,io=oo.length;while(Z(Y,oo,T,io)==1)Q--,I(Y,go<T?Ho:uo,T,W),T=Y.length,x=1}else{if(Q==0)x=Q=1;Y=uo.slice(),T=Y.length}if(T<io)Y=[0].concat(Y);if(I(oo,Y,io,W),io=oo.length,x==-1)while(Z(uo,oo,go,io)<1)Q++,I(oo,go<io?Ho:uo,io,W),io=oo.length}else if(x===0)Q++,oo=[0];if(E[c++]=Q,oo[0])oo[io++]=N[yo]||0;else oo=[N[yo]],io=1}while((yo++<Jo||oo[0]!=null)&&so--);if(v=oo[0]!=null,!E[0])E.splice(0,1)}if(W==Bo){for(c=1,so=E[0];so>=10;so/=10,c++);V(M,C+(M.e=c+K*no-1)+1,j,v)}else M.e=K,M.r=+v;return M}}();function f(w,Z,I,F){var J,C,j,W,x;if(I==null)I=s;else ko(I,0,8);if(!w.c)return w.toString();if(J=w.c[0],j=w.e,Z==null)x=Qo(w.c),x=F==1||F==2&&(j<=l||j>=h)?la(x,j):ni(x,j,"0");else if(w=V(new u(w),Z,I),C=w.e,x=Qo(w.c),W=x.length,F==1||F==2&&(Z<=C||C<=l)){for(;W<Z;x+="0",W++);x=la(x,C)}else if(Z-=j,x=ni(x,C,"0"),C+1>W){if(--Z>0)for(x+=".";Z--;x+="0");}else if(Z+=C-W,Z>0){if(C+1==W)x+=".";for(;Z--;x+="0");}return w.s<0&&J?"-"+x:x}function k(w,Z){var I,F,J=1,C=new u(w[0]);for(;J<w.length;J++)if(F=new u(w[J]),!F.s||(I=Hi(C,F))===Z||I===0&&C.s===Z)C=F;return C}function R(w,Z,I){var F=1,J=Z.length;for(;!Z[--J];Z.pop());for(J=Z[0];J>=10;J/=10,F++);if((I=F+I*no-1)>H)w.c=w.e=null;else if(I<g)w.c=[w.e=0];else w.e=I,w.c=Z;return w}t=function(){var w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Z=/^([^.]+)\.$/,I=/^\.([^.]+)$/,F=/^-?(Infinity|NaN)$/,J=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(C,j,W,x){var K,c=W?j:j.replace(J,"");if(F.test(c))C.s=isNaN(c)?null:c<0?-1:1;else{if(!W){if(c=c.replace(w,function(v,Q,Y){return K=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!x||x==K?Q:v}),x)K=x,c=c.replace(Z,"$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);C.s=null}C.c=C.e=null}}();function V(w,Z,I,F){var J,C,j,W,x,K,c,v=w.c,Q=Oa;if(v){o:{for(J=1,W=v[0];W>=10;W/=10,J++);if(C=Z-J,C<0)C+=no,j=Z,x=v[K=0],c=jo(x/Q[J-j-1]%10);else if(K=Aa((C+1)/no),K>=v.length)if(F){for(;v.length<=K;v.push(0));x=c=0,J=1,C%=no,j=C-no+1}else break o;else{x=W=v[K];for(J=1;W>=10;W/=10,J++);C%=no,j=C-no+J,c=j<0?0:jo(x/Q[J-j-1]%10)}if(F=F||Z<0||v[K+1]!=null||(j<0?x:x%Q[J-j-1]),F=I<4?(c||F)&&(I==0||I==(w.s<0?3:2)):c>5||c==5&&(I==4||F||I==6&&(C>0?j>0?x/Q[J-j]:0:v[K-1])%10&1||I==(w.s<0?8:7)),Z<1||!v[0]){if(v.length=0,F)Z-=w.e+1,v[0]=Q[(no-Z%no)%no],w.e=-Z||0;else v[0]=w.e=0;return w}if(C==0)v.length=K,W=1,K--;else v.length=K+1,W=Q[no-C],v[K]=j>0?jo(x/Q[J-j]%Q[j])*W:0;if(F)for(;;)if(K==0){for(C=1,j=v[0];j>=10;j/=10,C++);j=v[0]+=W;for(W=1;j>=10;j/=10,W++);if(C!=W){if(w.e++,v[0]==Bo)v[0]=1}break}else{if(v[K]+=W,v[K]!=Bo)break;v[K--]=0,W=1}for(C=v.length;v[--C]===0;v.pop());}if(w.e>H)w.c=w.e=null;else if(w.e<g)w.c=[w.e=0]}return w}function L(w){var Z,I=w.e;if(I===null)return w.toString();return Z=Qo(w.c),Z=I<=l||I>=h?la(Z,I):ni(Z,I,"0"),w.s<0?"-"+Z:Z}if(r.absoluteValue=r.abs=function(){var w=new u(this);if(w.s<0)w.s=1;return w},r.comparedTo=function(w,Z){return Hi(this,new u(w,Z))},r.decimalPlaces=r.dp=function(w,Z){var I,F,J,C=this;if(w!=null){if(ko(w,0,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new u(C),w+C.e+1,Z)}if(!(I=C.c))return null;if(F=((J=I.length-1)-Po(this.e/no))*no,J=I[J])for(;J%10==0;J/=10,F--);if(F<0)F=0;return F},r.dividedBy=r.div=function(w,Z){return i(this,new u(w,Z),n,s)},r.dividedToIntegerBy=r.idiv=function(w,Z){return i(this,new u(w,Z),0,1)},r.exponentiatedBy=r.pow=function(w,Z){var I,F,J,C,j,W,x,K,c,v=this;if(w=new u(w),w.c&&!w.isInteger())throw Error(Yo+"Exponent not an integer: "+L(w));if(Z!=null)Z=new u(Z);if(W=w.e>14,!v.c||!v.c[0]||v.c[0]==1&&!v.e&&v.c.length==1||!w.c||!w.c[0])return c=new u(Math.pow(+L(v),W?w.s*(2-sa(w)):+L(w))),Z?c.mod(Z):c;if(x=w.s<0,Z){if(Z.c?!Z.c[0]:!Z.s)return new u(NaN);if(F=!x&&v.isInteger()&&Z.isInteger(),F)v=v.mod(Z)}else if(w.e>9&&(v.e>0||v.e<-1||(v.e==0?v.c[0]>1||W&&v.c[1]>=240000000:v.c[0]<80000000000000||W&&v.c[0]<=99999750000000))){if(C=v.s<0&&sa(w)?-0:0,v.e>-1)C=1/C;return new u(x?1/C:C)}else if(z)C=Aa(z/no+2);if(W){if(I=new u(0.5),x)w.s=1;K=sa(w)}else J=Math.abs(+L(w)),K=J%2;c=new u(e);for(;;){if(K){if(c=c.times(v),!c.c)break;if(C){if(c.c.length>C)c.c.length=C}else if(F)c=c.mod(Z)}if(J){if(J=jo(J/2),J===0)break;K=J%2}else if(w=w.times(I),V(w,w.e+1,1),w.e>14)K=sa(w);else{if(J=+L(w),J===0)break;K=J%2}if(v=v.times(v),C){if(v.c&&v.c.length>C)v.c.length=C}else if(F)v=v.mod(Z)}if(F)return c;if(x)c=e.div(c);return Z?c.mod(Z):C?V(c,z,s,j):c},r.integerValue=function(w){var Z=new u(this);if(w==null)w=s;else ko(w,0,8);return V(Z,Z.e+1,w)},r.isEqualTo=r.eq=function(w,Z){return Hi(this,new u(w,Z))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(w,Z){return Hi(this,new u(w,Z))>0},r.isGreaterThanOrEqualTo=r.gte=function(w,Z){return(Z=Hi(this,new u(w,Z)))===1||Z===0},r.isInteger=function(){return!!this.c&&Po(this.e/no)>this.c.length-2},r.isLessThan=r.lt=function(w,Z){return Hi(this,new u(w,Z))<0},r.isLessThanOrEqualTo=r.lte=function(w,Z){return(Z=Hi(this,new u(w,Z)))===-1||Z===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(w,Z){var I,F,J,C,j=this,W=j.s;if(w=new u(w,Z),Z=w.s,!W||!Z)return new u(NaN);if(W!=Z)return w.s=-Z,j.plus(w);var x=j.e/no,K=w.e/no,c=j.c,v=w.c;if(!x||!K){if(!c||!v)return c?(w.s=-Z,w):new u(v?j:NaN);if(!c[0]||!v[0])return v[0]?(w.s=-Z,w):new u(c[0]?j:s==3?-0:0)}if(x=Po(x),K=Po(K),c=c.slice(),W=x-K){if(C=W<0)W=-W,J=c;else K=x,J=v;J.reverse();for(Z=W;Z--;J.push(0));J.reverse()}else{F=(C=(W=c.length)<(Z=v.length))?W:Z;for(W=Z=0;Z<F;Z++)if(c[Z]!=v[Z]){C=c[Z]<v[Z];break}}if(C)J=c,c=v,v=J,w.s=-w.s;if(Z=(F=v.length)-(I=c.length),Z>0)for(;Z--;c[I++]=0);Z=Bo-1;for(;F>W;){if(c[--F]<v[F]){for(I=F;I&&!c[--I];c[I]=Z);--c[I],c[F]+=Bo}c[F]-=v[F]}for(;c[0]==0;c.splice(0,1),--K);if(!c[0])return w.s=s==3?-1:1,w.c=[w.e=0],w;return R(w,c,K)},r.modulo=r.mod=function(w,Z){var I,F,J=this;if(w=new u(w,Z),!J.c||!w.s||w.c&&!w.c[0])return new u(NaN);else if(!w.c||J.c&&!J.c[0])return new u(J);if(y==9)F=w.s,w.s=1,I=i(J,w,0,3),w.s=F,I.s*=F;else I=i(J,w,0,y);if(w=J.minus(I.times(w)),!w.c[0]&&y==1)w.s=J.s;return w},r.multipliedBy=r.times=function(w,Z){var I,F,J,C,j,W,x,K,c,v,Q,Y,T,M,E,oo=this,io=oo.c,lo=(w=new u(w,Z)).c;if(!io||!lo||!io[0]||!lo[0]){if(!oo.s||!w.s||io&&!io[0]&&!lo||lo&&!lo[0]&&!io)w.c=w.e=w.s=null;else if(w.s*=oo.s,!io||!lo)w.c=w.e=null;else w.c=[0],w.e=0;return w}if(F=Po(oo.e/no)+Po(w.e/no),w.s*=oo.s,x=io.length,v=lo.length,x<v)T=io,io=lo,lo=T,J=x,x=v,v=J;for(J=x+v,T=[];J--;T.push(0));M=Bo,E=gi;for(J=v;--J>=0;){I=0,Q=lo[J]%E,Y=lo[J]/E|0;for(j=x,C=J+j;C>J;)K=io[--j]%E,c=io[j]/E|0,W=Y*K+c*Q,K=Q*K+W%E*E+T[C]+I,I=(K/M|0)+(W/E|0)+Y*c,T[C--]=K%M;T[C]=I}if(I)++F;else T.splice(0,1);return R(w,T,F)},r.negated=function(){var w=new u(this);return w.s=-w.s||null,w},r.plus=function(w,Z){var I,F=this,J=F.s;if(w=new u(w,Z),Z=w.s,!J||!Z)return new u(NaN);if(J!=Z)return w.s=-Z,F.minus(w);var C=F.e/no,j=w.e/no,W=F.c,x=w.c;if(!C||!j){if(!W||!x)return new u(J/0);if(!W[0]||!x[0])return x[0]?w:new u(W[0]?F:J*0)}if(C=Po(C),j=Po(j),W=W.slice(),J=C-j){if(J>0)j=C,I=x;else J=-J,I=W;I.reverse();for(;J--;I.push(0));I.reverse()}if(J=W.length,Z=x.length,J-Z<0)I=x,x=W,W=I,Z=J;for(J=0;Z;)J=(W[--Z]=W[Z]+x[Z]+J)/Bo|0,W[Z]=Bo===W[Z]?0:W[Z]%Bo;if(J)W=[J].concat(W),++j;return R(w,W,j)},r.precision=r.sd=function(w,Z){var I,F,J,C=this;if(w!=null&&w!==!!w){if(ko(w,1,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new u(C),w,Z)}if(!(I=C.c))return null;if(J=I.length-1,F=J*no+1,J=I[J]){for(;J%10==0;J/=10,F--);for(J=I[0];J>=10;J/=10,F++);}if(w&&C.e+1>F)F=C.e+1;return F},r.shiftedBy=function(w){return ko(w,-_a,_a),this.times("1e"+w)},r.squareRoot=r.sqrt=function(){var w,Z,I,F,J,C=this,j=C.c,W=C.s,x=C.e,K=n+4,c=new u("0.5");if(W!==1||!j||!j[0])return new u(!W||W<0&&(!j||j[0])?NaN:j?C:1/0);if(W=Math.sqrt(+L(C)),W==0||W==1/0){if(Z=Qo(j),(Z.length+x)%2==0)Z+="0";if(W=Math.sqrt(+Z),x=Po((x+1)/2)-(x<0||x%2),W==1/0)Z="5e"+x;else Z=W.toExponential(),Z=Z.slice(0,Z.indexOf("e")+1)+x;I=new u(Z)}else I=new u(W+"");if(I.c[0]){if(x=I.e,W=x+K,W<3)W=0;for(;;)if(J=I,I=c.times(J.plus(i(C,J,K,1))),Qo(J.c).slice(0,W)===(Z=Qo(I.c)).slice(0,W)){if(I.e<x)--W;if(Z=Z.slice(W-3,W+1),Z=="9999"||!F&&Z=="4999"){if(!F){if(V(J,J.e+n+2,0),J.times(J).eq(C)){I=J;break}}K+=4,W+=4,F=1}else{if(!+Z||!+Z.slice(1)&&Z.charAt(0)=="5")V(I,I.e+n+2,1),w=!I.times(I).eq(C);break}}}return V(I,I.e+n+1,s,w)},r.toExponential=function(w,Z){if(w!=null)ko(w,0,Zo),w++;return f(this,w,Z,1)},r.toFixed=function(w,Z){if(w!=null)ko(w,0,Zo),w=w+this.e+1;return f(this,w,Z)},r.toFormat=function(w,Z,I){var F,J=this;if(I==null)if(w!=null&&Z&&typeof Z=="object")I=Z,Z=null;else if(w&&typeof w=="object")I=w,w=Z=null;else I=m;else if(typeof I!="object")throw Error(Yo+"Argument not an object: "+I);if(F=J.toFixed(w,Z),J.c){var C,j=F.split("."),W=+I.groupSize,x=+I.secondaryGroupSize,K=I.groupSeparator||"",c=j[0],v=j[1],Q=J.s<0,Y=Q?c.slice(1):c,T=Y.length;if(x)C=W,W=x,x=C,T-=C;if(W>0&&T>0){C=T%W||W,c=Y.substr(0,C);for(;C<T;C+=W)c+=K+Y.substr(C,W);if(x>0)c+=K+Y.slice(C);if(Q)c="-"+c}F=v?c+(I.decimalSeparator||"")+((x=+I.fractionGroupSize)?v.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):v):c}return(I.prefix||"")+F+(I.suffix||"")},r.toFraction=function(w){var Z,I,F,J,C,j,W,x,K,c,v,Q,Y=this,T=Y.c;if(w!=null){if(W=new u(w),!W.isInteger()&&(W.c||W.s!==1)||W.lt(e))throw Error(Yo+"Argument "+(W.isInteger()?"out of range: ":"not an integer: ")+L(W))}if(!T)return new u(Y);Z=new u(e),K=I=new u(e),F=x=new u(e),Q=Qo(T),C=Z.e=Q.length-Y.e-1,Z.c[0]=Oa[(j=C%no)<0?no+j:j],w=!w||W.comparedTo(Z)>0?C>0?Z:K:W,j=H,H=1/0,W=new u(Q),x.c[0]=0;for(;;){if(c=i(W,Z,0,1),J=I.plus(c.times(F)),J.comparedTo(w)==1)break;I=F,F=J,K=x.plus(c.times(J=K)),x=J,Z=W.minus(c.times(J=Z)),W=J}return J=i(w.minus(I),F,0,1),x=x.plus(J.times(K)),I=I.plus(J.times(F)),x.s=K.s=Y.s,C=C*2,v=i(K,F,C,s).minus(Y).abs().comparedTo(i(x,I,C,s).minus(Y).abs())<1?[K,F]:[x,I],H=j,v},r.toNumber=function(){return+L(this)},r.toPrecision=function(w,Z){if(w!=null)ko(w,1,Zo);return f(this,w,Z,2)},r.toString=function(w){var Z,I=this,F=I.s,J=I.e;if(J===null)if(F){if(Z="Infinity",F<0)Z="-"+Z}else Z="NaN";else{if(w==null)Z=J<=l||J>=h?la(Qo(I.c),J):ni(Qo(I.c),J,"0");else if(w===10&&b)I=V(new u(I),n+J+1,s),Z=ni(Qo(I.c),I.e,"0");else ko(w,2,U.length,"Base"),Z=a(ni(Qo(I.c),J,"0"),10,w,F,!0);if(F<0&&I.c[0])Z="-"+Z}return Z},r.valueOf=r.toJSON=function(){return L(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 Po(o){var i=o|0;return o>0||o===i?i:i-1}function Qo(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 Hi(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 sa(o){var i=o.c.length-1;return Po(o.e/no)==i&&o.c[i]%2!=0}function la(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 Dn=qr(),P=Dn;var da=globalThis,ca=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ta=Symbol(),Jr=new WeakMap;class ha{constructor(o,i,a){if(this._$cssResult$=!0,a!==Ta)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(ca&&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 $r=(o)=>new ha(typeof o=="string"?o:o+"",void 0,Ta),X=(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 ha(a,o,Ta)},Yr=(o,i)=>{if(ca)o.adoptedStyleSheets=i.map((a)=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of i){let t=document.createElement("style"),r=da.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=a.cssText,o.appendChild(t)}},Xa=ca?(o)=>o:(o)=>o instanceof CSSStyleSheet?((i)=>{let a="";for(let t of i.cssRules)a+=t.cssText;return $r(a)})(o):o;var{is:Nn,defineProperty:Mn,getOwnPropertyDescriptor:En,getOwnPropertyNames:os,getOwnPropertySymbols:is,getPrototypeOf:as}=Object,ua=globalThis,Lr=ua.trustedTypes,ts=Lr?Lr.emptyScript:"",rs=ua.reactiveElementPolyfillSupport,ji=(o,i)=>o,Pi={toAttribute(o,i){switch(i){case Boolean:o=o?ts: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}},pa=(o,i)=>!Nn(o,i),Cr={attribute:!0,type:String,converter:Pi,reflect:!1,useDefault:!1,hasChanged:pa};Symbol.metadata??=Symbol("metadata"),ua.litPropertyMetadata??=new WeakMap;class bi 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=Cr){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&&Mn(this.prototype,o,t)}}static getPropertyDescriptor(o,i,a){let{get:t,set:r}=En(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)??Cr}static _$Ei(){if(this.hasOwnProperty(ji("elementProperties")))return;let o=as(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ji("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ji("properties"))){let i=this.properties,a=[...os(i),...is(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(Xa(t))}else o!==void 0&&i.push(Xa(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 Yr(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:Pi).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:Pi;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??pa)(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){}}bi.elementStyles=[],bi.shadowRootOptions={mode:"open"},bi[ji("elementProperties")]=new Map,bi[ji("finalized")]=new Map,rs?.({ReactiveElement:bi}),(ua.reactiveElementVersions??=[]).push("2.1.0");var Ba=globalThis,fa=Ba.trustedTypes,Fr=fa?fa.createPolicy("lit-html",{createHTML:(o)=>o}):void 0;var si=`lit$${Math.random().toFixed(9).slice(2)}$`,Ga="?"+si,es=`<${Ga}>`,Ki=document,_i=()=>Ki.createComment(""),Oi=(o)=>o===null||typeof o!="object"&&typeof o!="function",Da=Array.isArray,Or=(o)=>Da(o)||typeof o?.[Symbol.iterator]=="function";var Ai=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qr=/-->/g,jr=/>/g,Si=RegExp(`>|[
10
10
  \f\r](?:([^\\s"'>=/]+)([
11
11
  \f\r]*=[
12
12
  \f\r]*(?:[^
13
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pr=/'/g,Ar=/"/g,Tr=/^(?: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"),_r=new WeakMap,Zi=Ki.createTreeWalker(Ki,129);function Xr(o,i){if(!Da(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fr!==void 0?Fr.createHTML(i):i}var Br=(o,i)=>{let a=o.length-1,t=[],r,e=i===2?"<svg>":i===3?"<math>":"",n=Ai;for(let s=0;s<a;s++){let l=o[s],h,g,H=-1,f=0;for(;f<l.length&&(n.lastIndex=f,g=n.exec(l),g!==null);)f=n.lastIndex,n===Ai?g[1]==="!--"?n=Qr:g[1]!==void 0?n=jr:g[2]!==void 0?(Tr.test(g[2])&&(r=RegExp("</"+g[2],"g")),n=Si):g[3]!==void 0&&(n=Si):n===Si?g[0]===">"?(n=r??Ai,H=-1):g[1]===void 0?H=-2:(H=n.lastIndex-g[2].length,h=g[1],n=g[3]===void 0?Si:g[3]==='"'?Ar:Pr):n===Ar||n===Pr?n=Si:n===Qr||n===jr?n=Ai:(n=Si,r=void 0);let y=n===Si&&o[s+1].startsWith("/>")?" ":"";e+=n===Ai?l+es:H>=0?(t.push(h),l.slice(0,H)+"$lit$"+l.slice(H)+si+y):l+si+(H===-2?s:y)}return[Xr(o,e+(o[a]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),t]};class Ti{constructor({strings:o,_$litType$:i},a){let t;this.parts=[];let r=0,e=0,n=o.length-1,s=this.parts,[l,h]=Br(o,i);if(this.el=Ti.createElement(l,a),Zi.currentNode=this.el.content,i===2||i===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(t=Zi.nextNode())!==null&&s.length<n;){if(t.nodeType===1){if(t.hasAttributes())for(let g of t.getAttributeNames())if(g.endsWith("$lit$")){let H=h[e++],f=t.getAttribute(g).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:Ji}),t.removeAttribute(g)}else g.startsWith(si)&&(s.push({type:6,index:r}),t.removeAttribute(g));if(Tr.test(t.tagName)){let g=t.textContent.split(si),H=g.length-1;if(H>0){t.textContent=pa?pa.emptyScript:"";for(let f=0;f<H;f++)t.append(g[f],_i()),Zi.nextNode(),s.push({type:2,index:++r});t.append(g[H],_i())}}}else if(t.nodeType===8)if(t.data===Ga)s.push({type:2,index:r});else{let g=-1;for(;(g=t.data.indexOf(si,g+1))!==-1;)s.push({type:7,index:r}),g+=si.length-1}r++}}static createElement(o,i){let a=Ki.createElement("template");return a.innerHTML=o,a}}function Ri(o,i,a=o,t){if(i===Ko)return i;let r=t!==void 0?a._$Co?.[t]:a._$Cl,e=Oi(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=Ri(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??Ki).importNode(i,!0);Zi.currentNode=t;let r=Zi.nextNode(),e=0,n=0,s=a[0];for(;s!==void 0;){if(e===s.index){let l;s.type===2?l=new qi(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=Zi.nextNode(),e++)}return Zi.currentNode=Ki,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 qi{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=Ri(this,o,i),Oi(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):Or(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!==_&&Oi(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ki.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=Ti.createElement(Xr(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=_r.get(o.strings);return i===void 0&&_r.set(o.strings,i=new Ti(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 qi(this.O(_i()),this.O(_i()),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 Ji{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=Ri(this,o,i,0),e=!Oi(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=Ri(this,n[a+s],i,s),l===Ko&&(l=this._$AH[s]),e||=!Oi(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 Ji{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}}class ot extends Ji{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}}class it extends Ji{constructor(o,i,a,t,r){super(o,i,a,t,r),this.type=5}_$AI(o,i=this){if((o=Ri(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){Ri(this,o)}}var Gr={M:"$lit$",P:si,A:Ga,C:1,L:Br,R:Ma,D:Or,V:Ri,I:qi,H:Ji,N:ot,U:it,B:Ea,F:at},ns=Ba.litHtmlPolyfillSupport;ns?.(Ti,qi),(Ba.litHtmlVersions??=[]).push("3.3.0");var Dr=(o,i,a)=>{let t=a?.renderBefore??i,r=t._$litPart$;if(r===void 0){let e=a?.renderBefore??null;t._$litPart$=r=new qi(i.insertBefore(_i(),e),e,void 0,a??{})}return r._$AI(o),r};var tt=globalThis;class zo extends bi{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=Dr(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}zo._$litElement$=!0,zo.finalized=!0,tt.litElementHydrateSupport?.({LitElement:zo});var ss=tt.litElementPolyfillSupport;ss?.({LitElement:zo});(tt.litElementVersions??=[]).push("4.2.0");var O=(o)=>(i,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var ls={attribute:!0,type:String,converter:Pi,reflect:!1,hasChanged:fa},ds=(o=ls,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 S(o){return(i,a)=>typeof a=="object"?ds(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 A(o){return S({...o,state:!0,attribute:!1})}var Ui=(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 Ui(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 Ui(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 Nr(o){let i=o.replace(/-/g,"").substring(0,12),a=parseInt(i,16);return new Date(a)}function Mr(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:Mr(Nr(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:Mr(Nr(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 Xi=100;class B extends zo{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 ga extends B{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.publicKey="";this.language="en"}_soundController=new nt(this);_historyController=new et(this);_hapticController=new rt(this);_gameProvider=new yi(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,publicKey:this.publicKey,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(),this.fetchPublicKey()}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,publicKey:this.publicKey,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 P(i.balance).toNumber()}catch(o){console.error("Error fetching balance:",o)}};fetchPublicKey=async()=>{if(!this.authToken||!this.baseUrl)return;let o=await fetch(`${this.baseUrl}/provably-fair/public-key`);if(!o.ok){console.error("Failed to fetch public key:",o.statusText);return}let i=await o.json();this.publicKey=i.publicKey};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([S({type:String})],ga.prototype,"currency",void 0),d([S({type:Boolean})],ga.prototype,"showCurrencyAsText",void 0),d([S({type:Number})],ga.prototype,"balance",void 0),d([S({type:Number})],ga.prototype,"currencyDecimals",void 0),d([S({type:String})],ga.prototype,"baseUrl",void 0),d([S({type:String})],ga.prototype,"authToken",void 0),d([S({type:String})],ga.prototype,"origamiGame",void 0),d([S({type:String})],ga.prototype,"lobbyUrl",void 0),d([S({type:String})],ga.prototype,"depositUrl",void 0),d([S({type:Number})],ga.prototype,"maxPayout",void 0),d([S({type:Number})],ga.prototype,"minBet",void 0),d([S({type:Number})],ga.prototype,"maxBet",void 0),d([A()],ga.prototype,"betAmount",void 0),d([A()],ga.prototype,"autobetNumberOfBets",void 0),d([A()],ga.prototype,"hotkeysOpenEnabled",void 0),d([A()],ga.prototype,"volume",void 0),d([A()],ga.prototype,"instantBetEnabled",void 0),d([A()],ga.prototype,"mainWidth",void 0),d([A()],ga.prototype,"publicKey",void 0),d([S()],ga.prototype,"language",void 0),ga=d([O("origami-game-provider-wrapper")],ga);var Er=X`
13
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pr=/'/g,Ar=/"/g,Tr=/^(?: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"),_r=new WeakMap,Zi=Ki.createTreeWalker(Ki,129);function Xr(o,i){if(!Da(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fr!==void 0?Fr.createHTML(i):i}var Br=(o,i)=>{let a=o.length-1,t=[],r,e=i===2?"<svg>":i===3?"<math>":"",n=Ai;for(let s=0;s<a;s++){let l=o[s],h,g,H=-1,p=0;for(;p<l.length&&(n.lastIndex=p,g=n.exec(l),g!==null);)p=n.lastIndex,n===Ai?g[1]==="!--"?n=Qr:g[1]!==void 0?n=jr:g[2]!==void 0?(Tr.test(g[2])&&(r=RegExp("</"+g[2],"g")),n=Si):g[3]!==void 0&&(n=Si):n===Si?g[0]===">"?(n=r??Ai,H=-1):g[1]===void 0?H=-2:(H=n.lastIndex-g[2].length,h=g[1],n=g[3]===void 0?Si:g[3]==='"'?Ar:Pr):n===Ar||n===Pr?n=Si:n===Qr||n===jr?n=Ai:(n=Si,r=void 0);let y=n===Si&&o[s+1].startsWith("/>")?" ":"";e+=n===Ai?l+es:H>=0?(t.push(h),l.slice(0,H)+"$lit$"+l.slice(H)+si+y):l+si+(H===-2?s:y)}return[Xr(o,e+(o[a]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),t]};class Ti{constructor({strings:o,_$litType$:i},a){let t;this.parts=[];let r=0,e=0,n=o.length-1,s=this.parts,[l,h]=Br(o,i);if(this.el=Ti.createElement(l,a),Zi.currentNode=this.el.content,i===2||i===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(t=Zi.nextNode())!==null&&s.length<n;){if(t.nodeType===1){if(t.hasAttributes())for(let g of t.getAttributeNames())if(g.endsWith("$lit$")){let H=h[e++],p=t.getAttribute(g).split(si),y=/([.?@])?(.*)/.exec(H);s.push({type:1,index:r,name:y[2],strings:p,ctor:y[1]==="."?Ea:y[1]==="?"?ot:y[1]==="@"?it:Ji}),t.removeAttribute(g)}else g.startsWith(si)&&(s.push({type:6,index:r}),t.removeAttribute(g));if(Tr.test(t.tagName)){let g=t.textContent.split(si),H=g.length-1;if(H>0){t.textContent=fa?fa.emptyScript:"";for(let p=0;p<H;p++)t.append(g[p],_i()),Zi.nextNode(),s.push({type:2,index:++r});t.append(g[H],_i())}}}else if(t.nodeType===8)if(t.data===Ga)s.push({type:2,index:r});else{let g=-1;for(;(g=t.data.indexOf(si,g+1))!==-1;)s.push({type:7,index:r}),g+=si.length-1}r++}}static createElement(o,i){let a=Ki.createElement("template");return a.innerHTML=o,a}}function Ri(o,i,a=o,t){if(i===Ko)return i;let r=t!==void 0?a._$Co?.[t]:a._$Cl,e=Oi(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=Ri(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??Ki).importNode(i,!0);Zi.currentNode=t;let r=Zi.nextNode(),e=0,n=0,s=a[0];for(;s!==void 0;){if(e===s.index){let l;s.type===2?l=new qi(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=Zi.nextNode(),e++)}return Zi.currentNode=Ki,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 qi{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=Ri(this,o,i),Oi(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):Or(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!==_&&Oi(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ki.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=Ti.createElement(Xr(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=_r.get(o.strings);return i===void 0&&_r.set(o.strings,i=new Ti(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 qi(this.O(_i()),this.O(_i()),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 Ji{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=Ri(this,o,i,0),e=!Oi(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=Ri(this,n[a+s],i,s),l===Ko&&(l=this._$AH[s]),e||=!Oi(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 Ji{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}}class ot extends Ji{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}}class it extends Ji{constructor(o,i,a,t,r){super(o,i,a,t,r),this.type=5}_$AI(o,i=this){if((o=Ri(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){Ri(this,o)}}var Gr={M:"$lit$",P:si,A:Ga,C:1,L:Br,R:Ma,D:Or,V:Ri,I:qi,H:Ji,N:ot,U:it,B:Ea,F:at},ns=Ba.litHtmlPolyfillSupport;ns?.(Ti,qi),(Ba.litHtmlVersions??=[]).push("3.3.0");var Dr=(o,i,a)=>{let t=a?.renderBefore??i,r=t._$litPart$;if(r===void 0){let e=a?.renderBefore??null;t._$litPart$=r=new qi(i.insertBefore(_i(),e),e,void 0,a??{})}return r._$AI(o),r};var tt=globalThis;class zo extends bi{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=Dr(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}zo._$litElement$=!0,zo.finalized=!0,tt.litElementHydrateSupport?.({LitElement:zo});var ss=tt.litElementPolyfillSupport;ss?.({LitElement:zo});(tt.litElementVersions??=[]).push("4.2.0");var O=(o)=>(i,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var ls={attribute:!0,type:String,converter:Pi,reflect:!1,hasChanged:pa},ds=(o=ls,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 S(o){return(i,a)=>typeof a=="object"?ds(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 A(o){return S({...o,state:!0,attribute:!1})}var Ui=(o,i,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,a),a);function po(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 Ui(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 Ui(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 Nr(o){let i=o.replace(/-/g,"").substring(0,12),a=parseInt(i,16);return new Date(a)}function Mr(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:Mr(Nr(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:Mr(Nr(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 Xi=100;class B extends zo{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 ga extends B{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.publicKey="";this.language="en"}_soundController=new nt(this);_historyController=new et(this);_hapticController=new rt(this);_gameProvider=new yi(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,publicKey:this.publicKey,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(),this.fetchPublicKey()}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,publicKey:this.publicKey,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 P(i.balance).toNumber()}catch(o){console.error("Error fetching balance:",o)}};fetchPublicKey=async()=>{if(!this.authToken||!this.baseUrl)return;let o=await fetch(`${this.baseUrl}/provably-fair/public-key`);if(!o.ok){console.error("Failed to fetch public key:",o.statusText);return}let i=await o.json();this.publicKey=i.publicKey};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([S({type:String})],ga.prototype,"currency",void 0),d([S({type:Boolean})],ga.prototype,"showCurrencyAsText",void 0),d([S({type:Number})],ga.prototype,"balance",void 0),d([S({type:Number})],ga.prototype,"currencyDecimals",void 0),d([S({type:String})],ga.prototype,"baseUrl",void 0),d([S({type:String})],ga.prototype,"authToken",void 0),d([S({type:String})],ga.prototype,"origamiGame",void 0),d([S({type:String})],ga.prototype,"lobbyUrl",void 0),d([S({type:String})],ga.prototype,"depositUrl",void 0),d([S({type:Number})],ga.prototype,"maxPayout",void 0),d([S({type:Number})],ga.prototype,"minBet",void 0),d([S({type:Number})],ga.prototype,"maxBet",void 0),d([A()],ga.prototype,"betAmount",void 0),d([A()],ga.prototype,"autobetNumberOfBets",void 0),d([A()],ga.prototype,"hotkeysOpenEnabled",void 0),d([A()],ga.prototype,"volume",void 0),d([A()],ga.prototype,"instantBetEnabled",void 0),d([A()],ga.prototype,"mainWidth",void 0),d([A()],ga.prototype,"publicKey",void 0),d([S()],ga.prototype,"language",void 0),ga=d([O("origami-game-provider-wrapper")],ga);var Er=X`
14
14
  :host {
15
15
  display: flex;
16
16
  flex-direction: column;
@@ -320,7 +320,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
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 fe=eo`
323
+ `;var pe=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 On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,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 Lo=(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 li=(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 di=(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 ci=(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 ba extends B{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} ${Lo(o)}`}get _betAmount(){if(!this._betDetails)return $`Loading...`;let{amount:o,currency:i}=this._betDetails,a=li(i),t=ci(i),r=di(i),e=Lo(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=li(i),t=ci(i),r=di(i),e=Lo(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}render(){return $`
334
+ `;var Lo=(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 pe;default:return st}};var li=(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 di=(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 ci=(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 ba extends B{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} ${Lo(o)}`}get _betAmount(){if(!this._betDetails)return $`Loading...`;let{amount:o,currency:i}=this._betDetails,a=li(i),t=ci(i),r=di(i),e=Lo(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=li(i),t=ci(i),r=di(i),e=Lo(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 On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,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([S({type:String})],ba.prototype,"baseUrl",void 0),d([S({type:String})],ba.prototype,"betId",void 0),d([A()],ba.prototype,"_betDetails",void 0),ba=d([O("origami-bet-details")],ba);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Do=(o)=>(...i)=>({_$litDirective$:o,values:i});class No{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 to=Do(class extends No{constructor(o){if(super(o),o.type!==qo.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 G=X`
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([S({type:String})],ba.prototype,"baseUrl",void 0),d([S({type:String})],ba.prototype,"betId",void 0),d([A()],ba.prototype,"_betDetails",void 0),ba=d([O("origami-bet-details")],ba);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Do=(o)=>(...i)=>({_$litDirective$:o,values:i});class No{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 to=Do(class extends No{constructor(o){if(super(o),o.type!==qo.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 mo=(o)=>o??_;var G=X`
414
414
  :host {
415
415
  all: initial;
416
416
  display: block;
@@ -497,7 +497,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
497
497
  background-color: rgba(218, 255, 1, 0.3);
498
498
  color: inherit;
499
499
  }
500
- `;var Zs={ar:()=>Promise.resolve().then(() => ho(dt(),1)),de:()=>Promise.resolve().then(() => ho(ct(),1)),en:()=>Promise.resolve().then(() => ho(ht(),1)),es:()=>Promise.resolve().then(() => ho(ut(),1)),fi:()=>Promise.resolve().then(() => ho(ft(),1)),fr:()=>Promise.resolve().then(() => ho(pt(),1)),hi:()=>Promise.resolve().then(() => ho(gt(),1)),id:()=>Promise.resolve().then(() => ho(bt(),1)),ja:()=>Promise.resolve().then(() => ho(wt(),1)),ko:()=>Promise.resolve().then(() => ho(vt(),1)),pl:()=>Promise.resolve().then(() => ho(mt(),1)),pt:()=>Promise.resolve().then(() => ho(kt(),1)),ru:()=>Promise.resolve().then(() => ho(xt(),1)),tr:()=>Promise.resolve().then(() => ho(zt(),1)),vi:()=>Promise.resolve().then(() => ho(yt(),1)),zh:()=>Promise.resolve().then(() => ho(Ht(),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(),St()}async loadLanguageModule(o){try{let i=await Zs[o]();this.loadedTranslations.set(o,i.default),St()}catch(i){throw i}}}var wa=new pe;wa.loadLanguage("en").catch(()=>{});var be=ho(dt(),1),we=ho(ct(),1),ve=ho(ht(),1),me=ho(ut(),1),ke=ho(ft(),1),xe=ho(pt(),1),ze=ho(gt(),1),ye=ho(bt(),1),He=ho(wt(),1),Se=ho(vt(),1),Ze=ho(mt(),1),Ke=ho(kt(),1),Re=ho(xt(),1),Ue=ho(zt(),1),We=ho(yt(),1),Ve=ho(Ht(),1);var _c=ei("language"),$i="en";var Zt={ar:be.default,de:we.default,en:ve.default,es:me.default,fi:ke.default,fr:xe.default,hi:ze.default,id:ye.default,ja:He.default,ko:Se.default,pl:Ze.default,pt:Ke.default,ru:Re.default,tr:Ue.default,vi:We.default,zh:Ve.default};function Ks(o){let i=wa.getTranslationData(o);if(i)return i;return Zt[o]||Zt[$i]}var Dc=ei(Symbol("translation"));class Ie{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 Kt=new Ie,ge=new Map;function Rs(o){let i=ge.get(o);if(!i)i=o.split("."),ge.set(o,i);return i}function qe(o,i,a){let t=Ks(i);try{let r=Rs(o),e=t;for(let n of r)if(e=e?.[n],e===void 0)break;if(typeof e==="string")return e;if(i!==$i)return qe(o,$i,a);return a||o}catch{return a||o}}function q(o,i=$i,a){let t=a?`${o}:${i}:${a}`:`${o}:${i}`,r=Kt.get(t);if(r!==void 0)return r;let e=qe(o,i,a);return Kt.set(t,e),e}function St(){Kt.clear()}var Je=X`
500
+ `;var Zs={ar:()=>Promise.resolve().then(() => ho(dt(),1)),de:()=>Promise.resolve().then(() => ho(ct(),1)),en:()=>Promise.resolve().then(() => ho(ht(),1)),es:()=>Promise.resolve().then(() => ho(ut(),1)),fi:()=>Promise.resolve().then(() => ho(pt(),1)),fr:()=>Promise.resolve().then(() => ho(ft(),1)),hi:()=>Promise.resolve().then(() => ho(gt(),1)),id:()=>Promise.resolve().then(() => ho(bt(),1)),ja:()=>Promise.resolve().then(() => ho(wt(),1)),ko:()=>Promise.resolve().then(() => ho(mt(),1)),pl:()=>Promise.resolve().then(() => ho(vt(),1)),pt:()=>Promise.resolve().then(() => ho(kt(),1)),ru:()=>Promise.resolve().then(() => ho(xt(),1)),tr:()=>Promise.resolve().then(() => ho(zt(),1)),vi:()=>Promise.resolve().then(() => ho(yt(),1)),zh:()=>Promise.resolve().then(() => ho(Ht(),1))};class fe{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(),St()}async loadLanguageModule(o){try{let i=await Zs[o]();this.loadedTranslations.set(o,i.default),St()}catch(i){throw i}}}var wa=new fe;wa.loadLanguage("en").catch(()=>{});var be=ho(dt(),1),we=ho(ct(),1),me=ho(ht(),1),ve=ho(ut(),1),ke=ho(pt(),1),xe=ho(ft(),1),ze=ho(gt(),1),ye=ho(bt(),1),He=ho(wt(),1),Se=ho(mt(),1),Ze=ho(vt(),1),Ke=ho(kt(),1),Re=ho(xt(),1),Ue=ho(zt(),1),We=ho(yt(),1),Ve=ho(Ht(),1);var _c=ei("language"),$i="en";var Zt={ar:be.default,de:we.default,en:me.default,es:ve.default,fi:ke.default,fr:xe.default,hi:ze.default,id:ye.default,ja:He.default,ko:Se.default,pl:Ze.default,pt:Ke.default,ru:Re.default,tr:Ue.default,vi:We.default,zh:Ve.default};function Ks(o){let i=wa.getTranslationData(o);if(i)return i;return Zt[o]||Zt[$i]}var Dc=ei(Symbol("translation"));class Ie{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 Kt=new Ie,ge=new Map;function Rs(o){let i=ge.get(o);if(!i)i=o.split("."),ge.set(o,i);return i}function qe(o,i,a){let t=Ks(i);try{let r=Rs(o),e=t;for(let n of r)if(e=e?.[n],e===void 0)break;if(typeof e==="string")return e;if(i!==$i)return qe(o,$i,a);return a||o}catch{return a||o}}function q(o,i=$i,a){let t=a?`${o}:${i}:${a}`:`${o}:${i}`,r=Kt.get(t);if(r!==void 0)return r;let e=qe(o,i,a);return Kt.set(t,e),e}function St(){Kt.clear()}var Je=X`
501
501
  :host {
502
502
  display: grid;
503
503
  grid-template-columns: var(--toggle-button-grid-columns, 1fr 1fr);
@@ -583,7 +583,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
583
583
  aria-disabled=${this.disabled?"true":"false"}
584
584
  id="option1Button"
585
585
  tabindex="0"
586
- name=${vo(this.name)}
586
+ name=${mo(this.name)}
587
587
  >
588
588
  ${e}
589
589
  </button>
@@ -597,11 +597,11 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
597
597
  aria-disabled=${this.disabled?"true":"false"}
598
598
  id="option2Button"
599
599
  tabindex="0"
600
- name=${vo(this.name)}
600
+ name=${mo(this.name)}
601
601
  >
602
602
  ${n}
603
603
  </button>
604
- `}}d([ao({context:D,subscribe:!0}),S({attribute:!1})],Rt.prototype,"gameContext",void 0),d([S({type:String})],Rt.prototype,"option1",void 0),d([S({type:String})],Rt.prototype,"option2",void 0),d([S({type:String})],Rt.prototype,"option1Value",void 0),d([S({type:String})],Rt.prototype,"option2Value",void 0),d([S({type:String,reflect:!0})],Rt.prototype,"value",void 0),d([S({type:Boolean,reflect:!0})],Rt.prototype,"disabled",void 0),d([S({type:String})],Rt.prototype,"name",void 0),d([S({type:String})],Rt.prototype,"class",void 0),d([S({type:Boolean})],Rt.prototype,"noRightBorderRadius",void 0),Rt=d([O("origami-toggle")],Rt);var{I:Us}=Gr;var va=(o)=>o.strings===void 0,$e=()=>document.createComment(""),Yi=(o,i,a)=>{let t=o._$AA.parentNode,r=i===void 0?o._$AB:i._$AA;if(a===void 0){let e=t.insertBefore($e(),r),n=t.insertBefore($e(),r);a=new Us(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},wi=(o,i,a=o)=>(o._$AI(i,a),o),Ws={},ma=(o,i=Ws)=>o._$AH=i,Ye=(o)=>o._$AH,ka=(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 Bi=(o,i)=>{let a=o._$AN;if(a===void 0)return!1;for(let t of a)t._$AO?.(i,!1),Bi(t,i);return!0},xa=(o)=>{let i,a;do{if((i=o._$AM)===void 0)break;a=i._$AN,a.delete(o),o=i}while(a?.size===0)},Le=(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),qs(i)}};function Vs(o){this._$AN!==void 0?(xa(this),this._$AM=o,Le(this)):this._$AM=o}function Is(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++)Bi(t[e],!1),xa(t[e]);else t!=null&&(Bi(t,!1),xa(t));else Bi(this,o)}var qs=(o)=>{o.type==qo.CHILD&&(o._$AP??=Is,o._$AQ??=Vs)};class Ut extends No{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,i,a){super._$AT(o,i,a),Le(this),this.isConnected=o._$AU}_$AO(o,i=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),i&&(Bi(this,o),xa(this))}setValue(o){if(va(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 Wi=()=>new Ce;class Ce{}var Wt=new WeakMap,Vi=Do(class extends Ut{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=Wt.get(i);a===void 0&&(a=new WeakMap,Wt.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"?Wt.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 Fe=X`
604
+ `}}d([ao({context:D,subscribe:!0}),S({attribute:!1})],Rt.prototype,"gameContext",void 0),d([S({type:String})],Rt.prototype,"option1",void 0),d([S({type:String})],Rt.prototype,"option2",void 0),d([S({type:String})],Rt.prototype,"option1Value",void 0),d([S({type:String})],Rt.prototype,"option2Value",void 0),d([S({type:String,reflect:!0})],Rt.prototype,"value",void 0),d([S({type:Boolean,reflect:!0})],Rt.prototype,"disabled",void 0),d([S({type:String})],Rt.prototype,"name",void 0),d([S({type:String})],Rt.prototype,"class",void 0),d([S({type:Boolean})],Rt.prototype,"noRightBorderRadius",void 0),Rt=d([O("origami-toggle")],Rt);var{I:Us}=Gr;var ma=(o)=>o.strings===void 0,$e=()=>document.createComment(""),Yi=(o,i,a)=>{let t=o._$AA.parentNode,r=i===void 0?o._$AB:i._$AA;if(a===void 0){let e=t.insertBefore($e(),r),n=t.insertBefore($e(),r);a=new Us(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},wi=(o,i,a=o)=>(o._$AI(i,a),o),Ws={},va=(o,i=Ws)=>o._$AH=i,Ye=(o)=>o._$AH,ka=(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 Bi=(o,i)=>{let a=o._$AN;if(a===void 0)return!1;for(let t of a)t._$AO?.(i,!1),Bi(t,i);return!0},xa=(o)=>{let i,a;do{if((i=o._$AM)===void 0)break;a=i._$AN,a.delete(o),o=i}while(a?.size===0)},Le=(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),qs(i)}};function Vs(o){this._$AN!==void 0?(xa(this),this._$AM=o,Le(this)):this._$AM=o}function Is(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++)Bi(t[e],!1),xa(t[e]);else t!=null&&(Bi(t,!1),xa(t));else Bi(this,o)}var qs=(o)=>{o.type==qo.CHILD&&(o._$AP??=Is,o._$AQ??=Vs)};class Ut extends No{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,i,a){super._$AT(o,i,a),Le(this),this.isConnected=o._$AU}_$AO(o,i=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),i&&(Bi(this,o),xa(this))}setValue(o){if(ma(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 Wi=()=>new Ce;class Ce{}var Wt=new WeakMap,Vi=Do(class extends Ut{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=Wt.get(i);a===void 0&&(a=new WeakMap,Wt.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"?Wt.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 Fe=X`
605
605
  :host {
606
606
  display: inline-block;
607
607
  position: relative;
@@ -1001,7 +1001,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1001
1001
  ::slotted(origami-button:focus-within) {
1002
1002
  z-index: 1;
1003
1003
  }
1004
- `;class qt extends B{constructor(){super(...arguments);this.position="right"}static styles=[G,je];render(){return $`<slot></slot>`}}d([S({type:String,reflect:!0})],qt.prototype,"position",void 0),qt=d([O("origami-button-group")],qt);var Pe=Do(class extends No{constructor(o){if(super(o),o.type!==qo.PROPERTY&&o.type!==qo.ATTRIBUTE&&o.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!va(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===qo.PROPERTY){if(i===a[t])return Ko}else if(o.type===qo.BOOLEAN_ATTRIBUTE){if(!!i===a.hasAttribute(t))return Ko}else if(o.type===qo.ATTRIBUTE&&a.getAttribute(t)===i+"")return Ko;return ma(o),i}});var Ae=X`
1004
+ `;class qt extends B{constructor(){super(...arguments);this.position="right"}static styles=[G,je];render(){return $`<slot></slot>`}}d([S({type:String,reflect:!0})],qt.prototype,"position",void 0),qt=d([O("origami-button-group")],qt);var Pe=Do(class extends No{constructor(o){if(super(o),o.type!==qo.PROPERTY&&o.type!==qo.ATTRIBUTE&&o.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ma(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===qo.PROPERTY){if(i===a[t])return Ko}else if(o.type===qo.BOOLEAN_ATTRIBUTE){if(!!i===a.hasAttribute(t))return Ko}else if(o.type===qo.ATTRIBUTE&&a.getAttribute(t)===i+"")return Ko;return va(o),i}});var Ae=X`
1005
1005
  :host {
1006
1006
  --input-text-color: white;
1007
1007
  --input-background-color: #1a1a1a;
@@ -1352,21 +1352,21 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1352
1352
  @focus=${this.handleFocus}
1353
1353
  @focusout=${this.handleBlur}
1354
1354
  @click=${this.clickable?(e)=>{this.handleClick(e)}:void 0}
1355
- placeholder=${vo(this.placeholder||void 0)}
1355
+ placeholder=${mo(this.placeholder||void 0)}
1356
1356
  class=${to(a)}
1357
1357
  ?disabled=${this.disabled}
1358
1358
  ?required=${this.required}
1359
1359
  ?readonly=${this.readonly}
1360
- tabindex=${vo(this.readonly||this.disabled?-1:void 0)}
1361
- min=${vo(this.min!==null?this.min:void 0)}
1362
- max=${vo(this.max!==null?this.max:void 0)}
1363
- step=${vo(this.step||void 0)}
1364
- name=${vo(this.name||void 0)}
1365
- pattern=${vo(this.pattern||void 0)}
1360
+ tabindex=${mo(this.readonly||this.disabled?-1:void 0)}
1361
+ min=${mo(this.min!==null?this.min:void 0)}
1362
+ max=${mo(this.max!==null?this.max:void 0)}
1363
+ step=${mo(this.step||void 0)}
1364
+ name=${mo(this.name||void 0)}
1365
+ pattern=${mo(this.pattern||void 0)}
1366
1366
  aria-invalid=${this.errorMessage?"true":"false"}
1367
- aria-describedby=${vo(this.errorMessage?this.errorId:void 0)}
1368
- aria-labelledby=${vo(this.label?`${this.inputId}-label`:void 0)}
1369
- autocomplete=${vo(this.autocomplete||void 0)}
1367
+ aria-describedby=${mo(this.errorMessage?this.errorId:void 0)}
1368
+ aria-labelledby=${mo(this.label?`${this.inputId}-label`:void 0)}
1369
+ autocomplete=${mo(this.autocomplete||void 0)}
1370
1370
  />
1371
1371
  <div
1372
1372
  class="input-right-icon ${this._isIconRotating?this._iconRotationState?"rotating-forward":"rotating-backward":""}"
@@ -1579,7 +1579,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1579
1579
  value=${o.value}
1580
1580
  ?disabled=${o.disabled}
1581
1581
  ?selected=${this.value===o.value}
1582
- title=${vo(o.label)}
1582
+ title=${mo(o.label)}
1583
1583
  >
1584
1584
  ${o.label}
1585
1585
  </option>
@@ -1597,7 +1597,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1597
1597
  <div class="select-inner">
1598
1598
  <select
1599
1599
  id=${this._effectiveId}
1600
- name=${vo(this.name||void 0)}
1600
+ name=${mo(this.name||void 0)}
1601
1601
  .value=${this.value}
1602
1602
  @change=${this.handleChange}
1603
1603
  @blur=${this.validate}
@@ -1605,11 +1605,11 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1605
1605
  ?disabled=${this.disabled}
1606
1606
  ?required=${this.required}
1607
1607
  role="combobox"
1608
- size=${vo(this.size??void 0)}
1608
+ size=${mo(this.size??void 0)}
1609
1609
  ?autofocus=${this.autoFocus}
1610
1610
  aria-required=${this.required?"true":"false"}
1611
1611
  aria-invalid=${o?"true":"false"}
1612
- aria-describedby=${vo(e||void 0)}
1612
+ aria-describedby=${mo(e||void 0)}
1613
1613
  >
1614
1614
  ${this.generateOptionElements()}
1615
1615
  </select>
@@ -1637,7 +1637,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1637
1637
  `:_}
1638
1638
  ${this.helperText?$` <div id=${a} class="select-helper">${this.helperText}</div> `:_}
1639
1639
  </div>
1640
- `}}d([ao({context:D,subscribe:!0}),S({attribute:!1})],$t.prototype,"gameData",void 0),d([S({type:String,reflect:!0})],$t.prototype,"dir",void 0),d([S({type:String})],$t.prototype,"label",void 0),d([S({type:Array})],$t.prototype,"options",void 0),d([S({type:String})],$t.prototype,"placeholder",void 0),d([S({type:String})],$t.prototype,"helperText",void 0),d([S({type:Boolean,reflect:!0})],$t.prototype,"disabled",void 0),d([S({type:Boolean,reflect:!0})],$t.prototype,"required",void 0),d([S({type:String})],$t.prototype,"defaultValue",void 0),d([S({type:String})],$t.prototype,"id",void 0),d([S({type:String})],$t.prototype,"name",void 0),d([S({type:String})],$t.prototype,"error",void 0),d([S({type:Number})],$t.prototype,"size",void 0),d([S({type:Boolean})],$t.prototype,"autoFocus",void 0),d([A()],$t.prototype,"_errorMessage",void 0),d([S({type:String})],$t.prototype,"value",void 0),$t=d([O("origami-select")],$t);var Oe="important",$s=" !"+Oe,Vo=Do(class extends No{constructor(o){if(super(o),o.type!==qo.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($s);t.includes("-")||e?a.setProperty(t,e?r.slice(0,-11):r,e?Oe:""):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 g=s.get(h),H=this[h];if(g!==H){if(!a.waitUntilFirstUpdate||this.hasUpdated)this[r](g,H)}}}),e.call(this,s)}}}var Te=X`
1640
+ `}}d([ao({context:D,subscribe:!0}),S({attribute:!1})],$t.prototype,"gameData",void 0),d([S({type:String,reflect:!0})],$t.prototype,"dir",void 0),d([S({type:String})],$t.prototype,"label",void 0),d([S({type:Array})],$t.prototype,"options",void 0),d([S({type:String})],$t.prototype,"placeholder",void 0),d([S({type:String})],$t.prototype,"helperText",void 0),d([S({type:Boolean,reflect:!0})],$t.prototype,"disabled",void 0),d([S({type:Boolean,reflect:!0})],$t.prototype,"required",void 0),d([S({type:String})],$t.prototype,"defaultValue",void 0),d([S({type:String})],$t.prototype,"id",void 0),d([S({type:String})],$t.prototype,"name",void 0),d([S({type:String})],$t.prototype,"error",void 0),d([S({type:Number})],$t.prototype,"size",void 0),d([S({type:Boolean})],$t.prototype,"autoFocus",void 0),d([A()],$t.prototype,"_errorMessage",void 0),d([S({type:String})],$t.prototype,"value",void 0),$t=d([O("origami-select")],$t);var Oe="important",$s=" !"+Oe,Vo=Do(class extends No{constructor(o){if(super(o),o.type!==qo.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($s);t.includes("-")||e?a.setProperty(t,e?r.slice(0,-11):r,e?Oe:""):a[t]=r}}return Ko}});function vo(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 g=s.get(h),H=this[h];if(g!==H){if(!a.waitUntilFirstUpdate||this.hasUpdated)this[r](g,H)}}}),e.call(this,s)}}}var Te=X`
1641
1641
  :host {
1642
1642
  position: relative;
1643
1643
  width: 100%;
@@ -1863,7 +1863,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1863
1863
  .tooltip[data-position="right-end"] .tooltip-arrow {
1864
1864
  bottom: var(--tooltip-arrow-size);
1865
1865
  }
1866
- `;var Ys={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 za extends zo{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=[G,Te];tooltipRef=Wi();triggerRef=Wi();static nextId=0;tooltipId=`tooltip-${++za.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=(p)=>{if(!p)return null;if(p instanceof ShadowRoot)return p.host;return p.parentNode},g=((()=>{let p=(this.boundarySelector||"").split(",").map((R)=>R.trim()).filter(Boolean),k=this;while(k){if(k instanceof HTMLElement){if(p.length>0&&p.some((R)=>{try{return k.matches(R)}catch{return!1}}))return k}k=s(k)}return null})()??document.documentElement).getBoundingClientRect(),H=e.top-g.top,f=g.bottom-e.bottom,y=e.left-g.left,z=g.right-e.right,v=t,U=0,b=(p)=>{if(p.startsWith("top"))return H>=n.height+r+6;else if(p.startsWith("bottom"))return f>=n.height+r+6;return!0},u=()=>{let p=e.left+e.width/2,k=n.width/2,R=p-k,V=0,L=g.left+this.edgePadding,w=g.right-this.edgePadding;if(R<L)V=L-R,R=L;let Z=R+n.width;if(Z>w)V=w-Z;return V};if((t.startsWith("top")||t.startsWith("bottom"))&&b(t)){let p=u();if(p!==0){U=-p;let k=n.width/2-12;U=Math.max(-k,Math.min(k,U))}v=t}else{let p=(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(p(t)){let k=Ys[t];if(!p(k))v=k;else{let V=["top","right","bottom","left"].find((L)=>!p(L));if(V)v=V}}}if(o.setAttribute("data-position",v),this.triggerRef.value)if(this.triggerRef.value.style.setProperty("--arrow-offset",`${U}px`),U!==0&&(v.startsWith("top")||v.startsWith("bottom"))){let p=-U;this.triggerRef.value.style.setProperty("--tooltip-translate-x",`${p}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 $`
1866
+ `;var Ys={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 za extends zo{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=[G,Te];tooltipRef=Wi();triggerRef=Wi();static nextId=0;tooltipId=`tooltip-${++za.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=(f)=>{if(!f)return null;if(f instanceof ShadowRoot)return f.host;return f.parentNode},g=((()=>{let f=(this.boundarySelector||"").split(",").map((R)=>R.trim()).filter(Boolean),k=this;while(k){if(k instanceof HTMLElement){if(f.length>0&&f.some((R)=>{try{return k.matches(R)}catch{return!1}}))return k}k=s(k)}return null})()??document.documentElement).getBoundingClientRect(),H=e.top-g.top,p=g.bottom-e.bottom,y=e.left-g.left,z=g.right-e.right,m=t,U=0,b=(f)=>{if(f.startsWith("top"))return H>=n.height+r+6;else if(f.startsWith("bottom"))return p>=n.height+r+6;return!0},u=()=>{let f=e.left+e.width/2,k=n.width/2,R=f-k,V=0,L=g.left+this.edgePadding,w=g.right-this.edgePadding;if(R<L)V=L-R,R=L;let Z=R+n.width;if(Z>w)V=w-Z;return V};if((t.startsWith("top")||t.startsWith("bottom"))&&b(t)){let f=u();if(f!==0){U=-f;let k=n.width/2-12;U=Math.max(-k,Math.min(k,U))}m=t}else{let f=(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 p<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(f(t)){let k=Ys[t];if(!f(k))m=k;else{let V=["top","right","bottom","left"].find((L)=>!f(L));if(V)m=V}}}if(o.setAttribute("data-position",m),this.triggerRef.value)if(this.triggerRef.value.style.setProperty("--arrow-offset",`${U}px`),U!==0&&(m.startsWith("top")||m.startsWith("bottom"))){let f=-U;this.triggerRef.value.style.setProperty("--tooltip-translate-x",`${f}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 $`
1867
1867
  <div
1868
1868
  style=${Vo({["--tooltip-offset"]:`${this.offset}px`})}
1869
1869
  ${Vi(this.triggerRef)}
@@ -1888,7 +1888,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1888
1888
  ${this.arrow?$`<div class="tooltip-arrow"></div>`:_}
1889
1889
  </div>
1890
1890
  </div>
1891
- `}}d([S({type:String})],za.prototype,"content",void 0),d([S({type:String,reflect:!0})],za.prototype,"position",void 0),d([S({type:Array,converter:(o)=>{if(typeof o==="string")return o.split(/[\s,]+/).filter(Boolean);return o}})],za.prototype,"trigger",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"arrow",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"open",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"disabled",void 0),d([S({type:Number})],za.prototype,"offset",void 0),d([S({type:String,reflect:!0})],za.prototype,"theme",void 0),d([S({type:Number})],za.prototype,"edgePadding",void 0),d([S({type:Number})],za.prototype,"delay",void 0),d([S({type:Number})],za.prototype,"hideDelay",void 0),d([S({type:Boolean})],za.prototype,"fullWidth",void 0),d([S({type:String})],za.prototype,"boundarySelector",void 0),d([fo("#trigger-slot")],za.prototype,"triggerSlot",void 0),d([mo("open")],za.prototype,"onOpenChange",null),d([mo("disabled")],za.prototype,"onDisabledChange",null),d([mo(["position","offset","content"])],za.prototype,"onPositionChange",null),d([mo(["boundarySelector","edgePadding"])],za.prototype,"onBoundaryChange",null),za=d([O("origami-tooltip")],za);var Ls=(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 Yt extends B{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=X`
1891
+ `}}d([S({type:String})],za.prototype,"content",void 0),d([S({type:String,reflect:!0})],za.prototype,"position",void 0),d([S({type:Array,converter:(o)=>{if(typeof o==="string")return o.split(/[\s,]+/).filter(Boolean);return o}})],za.prototype,"trigger",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"arrow",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"open",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"disabled",void 0),d([S({type:Number})],za.prototype,"offset",void 0),d([S({type:String,reflect:!0})],za.prototype,"theme",void 0),d([S({type:Number})],za.prototype,"edgePadding",void 0),d([S({type:Number})],za.prototype,"delay",void 0),d([S({type:Number})],za.prototype,"hideDelay",void 0),d([S({type:Boolean})],za.prototype,"fullWidth",void 0),d([S({type:String})],za.prototype,"boundarySelector",void 0),d([po("#trigger-slot")],za.prototype,"triggerSlot",void 0),d([vo("open")],za.prototype,"onOpenChange",null),d([vo("disabled")],za.prototype,"onDisabledChange",null),d([vo(["position","offset","content"])],za.prototype,"onPositionChange",null),d([vo(["boundarySelector","edgePadding"])],za.prototype,"onBoundaryChange",null),za=d([O("origami-tooltip")],za);var Ls=(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 Yt extends B{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=X`
1892
1892
  .currency-display {
1893
1893
  display: flex;
1894
1894
  align-items: center;
@@ -1935,7 +1935,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1935
1935
  ${this.gameData?.showCurrencyAsText?$`<span class="currency-text">${this.currency}</span>`:Lo(this.currency)}
1936
1936
  </div>`:_}
1937
1937
  </origami-input>
1938
- `}}d([ao({context:D,subscribe:!0})],Yt.prototype,"gameData",void 0),d([S({type:String})],Yt.prototype,"label",void 0),d([S({type:String})],Yt.prototype,"currency",void 0),d([S({type:String})],Yt.prototype,"errorMessage",void 0),d([S({type:String})],Yt.prototype,"value",void 0),d([S({type:String})],Yt.prototype,"rightLabel",void 0),d([S({type:String})],Yt.prototype,"suffix",void 0),d([S({type:String})],Yt.prototype,"placeholder",void 0),d([S({type:Boolean})],Yt.prototype,"disabled",void 0),d([S({type:Boolean})],Yt.prototype,"readonly",void 0),d([S({type:Boolean})],Yt.prototype,"disableInput",void 0),d([S({type:Boolean})],Yt.prototype,"cursorNotAllowed",void 0),d([S({type:String})],Yt.prototype,"bgColor",void 0),d([S({type:String})],Yt.prototype,"testId",void 0),d([S({type:String})],Yt.prototype,"tooltip",void 0),d([S({type:Boolean})],Yt.prototype,"maxBetEnabled",void 0),d([S({type:Boolean})],Yt.prototype,"dimmed",void 0),d([S({type:Number})],Yt.prototype,"maxPayoutUSD",void 0),d([S({type:String})],Yt.prototype,"variant",void 0),d([S({type:Boolean})],Yt.prototype,"required",void 0),d([S({type:Boolean})],Yt.prototype,"hideCurrencyIcon",void 0),d([S({type:Boolean})],Yt.prototype,"allowNegative",void 0),d([fo("origami-input")],Yt.prototype,"input",void 0),Yt=d([O("origami-raw-currency-input")],Yt);class Mo{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 Cs={["BET_AMOUNT_BELOW_MIN_BET"]:"alerts.betAmountBelowMinBet",["BET_AMOUNT_ABOVE_MAX_BET"]:"alerts.betAmountAboveMaxBet",["BET_AMOUNT_ABOVE_BALANCE"]:"alerts.notEnoughBalance"};class Lt extends B{static styles=[G,X`
1938
+ `}}d([ao({context:D,subscribe:!0})],Yt.prototype,"gameData",void 0),d([S({type:String})],Yt.prototype,"label",void 0),d([S({type:String})],Yt.prototype,"currency",void 0),d([S({type:String})],Yt.prototype,"errorMessage",void 0),d([S({type:String})],Yt.prototype,"value",void 0),d([S({type:String})],Yt.prototype,"rightLabel",void 0),d([S({type:String})],Yt.prototype,"suffix",void 0),d([S({type:String})],Yt.prototype,"placeholder",void 0),d([S({type:Boolean})],Yt.prototype,"disabled",void 0),d([S({type:Boolean})],Yt.prototype,"readonly",void 0),d([S({type:Boolean})],Yt.prototype,"disableInput",void 0),d([S({type:Boolean})],Yt.prototype,"cursorNotAllowed",void 0),d([S({type:String})],Yt.prototype,"bgColor",void 0),d([S({type:String})],Yt.prototype,"testId",void 0),d([S({type:String})],Yt.prototype,"tooltip",void 0),d([S({type:Boolean})],Yt.prototype,"maxBetEnabled",void 0),d([S({type:Boolean})],Yt.prototype,"dimmed",void 0),d([S({type:Number})],Yt.prototype,"maxPayoutUSD",void 0),d([S({type:String})],Yt.prototype,"variant",void 0),d([S({type:Boolean})],Yt.prototype,"required",void 0),d([S({type:Boolean})],Yt.prototype,"hideCurrencyIcon",void 0),d([S({type:Boolean})],Yt.prototype,"allowNegative",void 0),d([po("origami-input")],Yt.prototype,"input",void 0),Yt=d([O("origami-raw-currency-input")],Yt);class Mo{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 Cs={["BET_AMOUNT_BELOW_MIN_BET"]:"alerts.betAmountBelowMinBet",["BET_AMOUNT_ABOVE_MAX_BET"]:"alerts.betAmountAboveMaxBet",["BET_AMOUNT_ABOVE_BALANCE"]:"alerts.notEnoughBalance"};class Lt extends B{static styles=[G,X`
1939
1939
  origami-raw-currency-input {
1940
1940
  flex-grow: 1;
1941
1941
  display: block;
@@ -1981,7 +1981,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
1981
1981
  </origami-button>
1982
1982
  </origami-button-group>
1983
1983
  </origami-raw-currency-input>
1984
- `}}d([A()],Lt.prototype,"isFocused",void 0),d([A()],Lt.prototype,"invalidReason",void 0),d([mo(["value"])],Lt.prototype,"watchValue",null),d([A()],Lt.prototype,"value",void 0),d([A()],Lt.prototype,"_isInitialized",void 0),d([S({type:Boolean})],Lt.prototype,"disabled",void 0),d([S({type:String})],Lt.prototype,"label",void 0),Lt=d([O("origami-bet-amount-input")],Lt);var Ct=new Map;class Ft extends B{constructor(){super(...arguments);this.src="";this.size="24px";this.triggerSelector="origami-button";this.active=!1;this.autoplay=!1;this.tone="default"}static styles=X`
1984
+ `}}d([A()],Lt.prototype,"isFocused",void 0),d([A()],Lt.prototype,"invalidReason",void 0),d([vo(["value"])],Lt.prototype,"watchValue",null),d([A()],Lt.prototype,"value",void 0),d([A()],Lt.prototype,"_isInitialized",void 0),d([S({type:Boolean})],Lt.prototype,"disabled",void 0),d([S({type:String})],Lt.prototype,"label",void 0),Lt=d([O("origami-bet-amount-input")],Lt);var Ct=new Map;class Ft extends B{constructor(){super(...arguments);this.src="";this.size="24px";this.triggerSelector="origami-button";this.active=!1;this.autoplay=!1;this.tone="default"}static styles=X`
1985
1985
  :host {
1986
1986
  display: flex;
1987
1987
  align-items: center;
@@ -2285,7 +2285,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2285
2285
  <origami-input
2286
2286
  label=${q("autobet.games",this.gameData?.language||"en")}
2287
2287
  type="number"
2288
- min="1"
2288
+ min="0"
2289
2289
  max="100"
2290
2290
  step="1"
2291
2291
  icon="game"
@@ -2411,7 +2411,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2411
2411
  width: 16px;
2412
2412
  height: 16px;
2413
2413
  }
2414
- `;var Ts=(o="en")=>[{value:"5",label:q("autobet.games5",o,"5 games")},{value:"10",label:q("autobet.games10",o,"10 games")},{value:"25",label:q("autobet.games25",o,"25 games")},{value:"50",label:q("autobet.games50",o,"50 games")},{value:"100",label:q("autobet.games100",o,"100 games")},{value:"0",label:q("autobet.infinite",o,"Infinite")}],Me=Ts(),Ee=Me[Me.length-1]?.value??"0",on=ei("autobet-context");var Xs=(o,i)=>{if(!o)return q("autobet.startAutobet",i);return q("autobet.stopAutobet",i)},Bs={onWinPercentage:"0.00",onLossPercentage:"0.00",stopOnProfit:"0.00",stopOnLoss:"0.00",onLossStrategy:"Reset",onWinStrategy:"Reset"},an=(o)=>{if(["e","E","+"].includes(o.key))o.preventDefault()},vi=(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 Ot extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetSettings=Bs;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=[G,Ne];_autobetProvider=new yi(this,{context:on,initialValue:{numberOfBets:Ee,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:q("alerts.autobetStarted",this.gameData?.language||"en")}});else if(o.get("autobetInProgress")!==void 0)this.emit("show-alert",{detail:{id:"autobet-stopped",type:"error",message:q("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:vi(o.detail.value)}}_handleLossPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onLossPercentage:vi(o.detail.value)}}_handleStopOnProfitChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnProfit:vi(o.detail.value)}}_handleStopOnLossChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnLoss:vi(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 $`
2414
+ `;var Ts=(o="en")=>[{value:"5",label:q("autobet.games5",o,"5 games")},{value:"10",label:q("autobet.games10",o,"10 games")},{value:"25",label:q("autobet.games25",o,"25 games")},{value:"50",label:q("autobet.games50",o,"50 games")},{value:"100",label:q("autobet.games100",o,"100 games")},{value:"0",label:q("autobet.infinite",o,"Infinite")}],Me=Ts(),Ee=Me[Me.length-1]?.value??"0",on=ei("autobet-context");var Xs=(o,i)=>{if(!o)return q("autobet.startAutobet",i);return q("autobet.stopAutobet",i)},Bs={onWinPercentage:"0.00",onLossPercentage:"0.00",stopOnProfit:"0.00",stopOnLoss:"0.00",onLossStrategy:"Reset",onWinStrategy:"Reset"},an=(o)=>{if(["e","E","+"].includes(o.key))o.preventDefault()},mi=(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 Ot extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetSettings=Bs;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=[G,Ne];_autobetProvider=new yi(this,{context:on,initialValue:{numberOfBets:Ee,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:q("alerts.autobetStarted",this.gameData?.language||"en")}});else if(o.get("autobetInProgress")!==void 0)this.emit("show-alert",{detail:{id:"autobet-stopped",type:"error",message:q("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:mi(o.detail.value)}}_handleLossPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onLossPercentage:mi(o.detail.value)}}_handleStopOnProfitChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnProfit:mi(o.detail.value)}}_handleStopOnLossChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnLoss:mi(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 $`
2415
2415
  <origami-balance-input></origami-balance-input>
2416
2416
 
2417
2417
  <div
@@ -2437,7 +2437,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2437
2437
  ?disabled=${this.autobetSettings.onWinStrategy==="Reset"||this.inputsDisabled}
2438
2438
  ?keepLabelEnabled=${!0}
2439
2439
  @input-focus=${()=>{this._onWinFocused=!0}}
2440
- @input-blur=${(i)=>{this._onWinFocused=!1;let a=P(vi(i.detail.value));this.autobetSettings={...this.autobetSettings,onWinPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2440
+ @input-blur=${(i)=>{this._onWinFocused=!1;let a=P(mi(i.detail.value));this.autobetSettings={...this.autobetSettings,onWinPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2441
2441
  >
2442
2442
  <origami-toggle
2443
2443
  slot="left-addon"
@@ -2469,7 +2469,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2469
2469
  ?disabled=${this.autobetSettings.onLossStrategy==="Reset"||this.inputsDisabled}
2470
2470
  ?keepLabelEnabled=${!0}
2471
2471
  @input-focus=${()=>{this._onLossFocused=!0}}
2472
- @input-blur=${(i)=>{this._onLossFocused=!1;let a=P(vi(i.detail.value));this.autobetSettings={...this.autobetSettings,onLossPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2472
+ @input-blur=${(i)=>{this._onLossFocused=!1;let a=P(mi(i.detail.value));this.autobetSettings={...this.autobetSettings,onLossPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2473
2473
  >
2474
2474
  <origami-toggle
2475
2475
  slot="left-addon"
@@ -2502,7 +2502,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2502
2502
  ?disabled=${this.inputsDisabled}
2503
2503
  ?allowNegative=${!0}
2504
2504
  @raw-currency-input-focus=${()=>{this._stopOnLossFocused=!0}}
2505
- @raw-currency-input-blur=${()=>{this._stopOnLossFocused=!1;let i=P(vi(this.autobetSettings.stopOnLoss));this.autobetSettings={...this.autobetSettings,stopOnLoss:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2505
+ @raw-currency-input-blur=${()=>{this._stopOnLossFocused=!1;let i=P(mi(this.autobetSettings.stopOnLoss));this.autobetSettings={...this.autobetSettings,stopOnLoss:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2506
2506
  ></origami-raw-currency-input>
2507
2507
 
2508
2508
  <origami-raw-currency-input
@@ -2514,7 +2514,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2514
2514
  ?disabled=${this.inputsDisabled}
2515
2515
  ?allowNegative=${!0}
2516
2516
  @raw-currency-input-focus=${()=>{this._stopOnProfitFocused=!0}}
2517
- @raw-currency-input-blur=${()=>{this._stopOnProfitFocused=!1;let i=P(vi(this.autobetSettings.stopOnProfit));this.autobetSettings={...this.autobetSettings,stopOnProfit:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2517
+ @raw-currency-input-blur=${()=>{this._stopOnProfitFocused=!1;let i=P(mi(this.autobetSettings.stopOnProfit));this.autobetSettings={...this.autobetSettings,stopOnProfit:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2518
2518
  ></origami-raw-currency-input>
2519
2519
  </div>
2520
2520
  </div>
@@ -2534,7 +2534,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2534
2534
  >
2535
2535
  ${Xs(this.autobetInProgress,this.gameData?.language||"en")}
2536
2536
  </origami-button>
2537
- `}}d([S({type:Boolean})],Ot.prototype,"inputsDisabled",void 0),d([S({type:Object})],Ot.prototype,"autobetSettings",void 0),d([S({type:Boolean})],Ot.prototype,"autobetStopping",void 0),d([S({type:Boolean})],Ot.prototype,"autobetInProgress",void 0),d([S({type:String})],Ot.prototype,"profitOnWin",void 0),d([S({type:Boolean})],Ot.prototype,"betDisabled",void 0),d([A()],Ot.prototype,"_isStarting",void 0),d([A()],Ot.prototype,"_onWinFocused",void 0),d([A()],Ot.prototype,"_onLossFocused",void 0),d([A()],Ot.prototype,"_stopOnLossFocused",void 0),d([A()],Ot.prototype,"_stopOnProfitFocused",void 0),d([A()],Ot.prototype,"isBetAmountValid",void 0),d([ao({context:D,subscribe:!0})],Ot.prototype,"gameData",void 0),d([fo('slot[name="custom-inputs"]')],Ot.prototype,"customInputsSlot",void 0),Ot=d([O("origami-generic-autobet")],Ot);class Tt extends B{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=[G,Ha];_handleMinesCountChange(o){this.emit("mines-count-change",{detail:{count:+o.detail.value}})}render(){let o=this.gameData?.language||"en";return $`
2537
+ `}}d([S({type:Boolean})],Ot.prototype,"inputsDisabled",void 0),d([S({type:Object})],Ot.prototype,"autobetSettings",void 0),d([S({type:Boolean})],Ot.prototype,"autobetStopping",void 0),d([S({type:Boolean})],Ot.prototype,"autobetInProgress",void 0),d([S({type:String})],Ot.prototype,"profitOnWin",void 0),d([S({type:Boolean})],Ot.prototype,"betDisabled",void 0),d([A()],Ot.prototype,"_isStarting",void 0),d([A()],Ot.prototype,"_onWinFocused",void 0),d([A()],Ot.prototype,"_onLossFocused",void 0),d([A()],Ot.prototype,"_stopOnLossFocused",void 0),d([A()],Ot.prototype,"_stopOnProfitFocused",void 0),d([A()],Ot.prototype,"isBetAmountValid",void 0),d([ao({context:D,subscribe:!0})],Ot.prototype,"gameData",void 0),d([po('slot[name="custom-inputs"]')],Ot.prototype,"customInputsSlot",void 0),Ot=d([O("origami-generic-autobet")],Ot);class Tt extends B{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=[G,Ha];_handleMinesCountChange(o){this.emit("mines-count-change",{detail:{count:+o.detail.value}})}render(){let o=this.gameData?.language||"en";return $`
2538
2538
  <origami-generic-autobet
2539
2539
  data-is-desktop=${this.isDesktop}
2540
2540
  ?inputsDisabled=${this.inputsDisabled}
@@ -2632,6 +2632,52 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2632
2632
  margin-left: 12px;
2633
2633
  }
2634
2634
 
2635
+ .volume-slider {
2636
+ -webkit-appearance: none;
2637
+ appearance: none;
2638
+ width: 120px;
2639
+ height: 4px;
2640
+ margin-left: 6px;
2641
+ margin-right: 12px;
2642
+ border-radius: 1000px;
2643
+ background: linear-gradient(#daff01 0 0) 0/var(--volume-fill, 0%) 100% no-repeat, #373737;
2644
+ outline: none;
2645
+ cursor: pointer;
2646
+ }
2647
+
2648
+ .volume-slider::-webkit-slider-thumb {
2649
+ -webkit-appearance: none;
2650
+ appearance: none;
2651
+ background: transparent;
2652
+ opacity: 0;
2653
+ border: none;
2654
+ box-shadow: none;
2655
+ transition: transform 150ms ease;
2656
+ }
2657
+
2658
+ .volume-slider:hover::-webkit-slider-thumb {
2659
+ transform: scale(1.05);
2660
+ }
2661
+
2662
+ .volume-slider::-moz-range-thumb {
2663
+ background: transparent;
2664
+ opacity: 0;
2665
+ border: none;
2666
+ box-shadow: none;
2667
+ }
2668
+
2669
+ .volume-slider::-moz-range-progress {
2670
+ background-color: #daff01;
2671
+ height: 6px;
2672
+ border-radius: 1000px 0 0 1000px;
2673
+ }
2674
+
2675
+ .volume-slider::-moz-range-track {
2676
+ background: #373737;
2677
+ height: 6px;
2678
+ border-radius: 1000px;
2679
+ }
2680
+
2635
2681
  .footer-icon-group {
2636
2682
  width: auto;
2637
2683
  display: grid;
@@ -2658,6 +2704,17 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2658
2704
  gap: 8px;
2659
2705
  }
2660
2706
 
2707
+ /* Keep spacing when volume control is hidden */
2708
+ .game-info {
2709
+ margin-left: 12px;
2710
+ }
2711
+
2712
+ @container (min-width: 768px) {
2713
+ .game-info {
2714
+ margin-left: 0;
2715
+ }
2716
+ }
2717
+
2661
2718
  .icon-wrapper {
2662
2719
  display: flex;
2663
2720
  align-items: center;
@@ -2686,7 +2743,6 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2686
2743
  .hide-on-mobile {
2687
2744
  display: none;
2688
2745
  }
2689
-
2690
2746
  @container (min-width: 768px) {
2691
2747
  .hide-on-mobile {
2692
2748
  display: flex;
@@ -2719,7 +2775,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2719
2775
  </origami-tooltip>
2720
2776
  </div>
2721
2777
 
2722
- <div class="volume-control">
2778
+ <div class="volume-control hide-on-mobile">
2723
2779
  <origami-tooltip
2724
2780
  content=${q("common.volume",o)}
2725
2781
  .position=${i.position}
@@ -2741,17 +2797,23 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2741
2797
  </div>
2742
2798
  </origami-button>
2743
2799
  </origami-tooltip>
2744
- ${this.isVolumeSliderOpen?$` <origami-range-slider
2745
- class="volume-slider"
2746
- .value=${this.gameData?.volume??100}
2747
- .min=${0}
2748
- .max=${100}
2749
- .step=${1}
2750
- @range-slider-change=${(n)=>this.gameData?.updateVolume(n.detail.value)}
2751
- ></origami-range-slider>`:_}
2800
+ ${this.isVolumeSliderOpen?$`
2801
+ <input
2802
+ type="range"
2803
+ class="volume-slider"
2804
+ style=${`--volume-fill: ${this.gameData?.volume??100}%;`}
2805
+ .value=${String(this.gameData?.volume??100)}
2806
+ min="0"
2807
+ max="100"
2808
+ step="1"
2809
+ aria-label=${q("common.volume",o)}
2810
+ @input=${(n)=>{let s=n.target,l=Number(s.value);if(!Number.isNaN(l))this.gameData?.updateVolume(l);s.style.setProperty("--volume-fill",`${l}%`)}}
2811
+ />
2812
+ `:_}
2752
2813
  </div>
2753
2814
 
2754
2815
  <origami-tooltip
2816
+ class="game-info"
2755
2817
  content=${q("common.gameInfo",o,"Game Info")}
2756
2818
  .position=${i.position}
2757
2819
  .delay=${i.delay}
@@ -2853,7 +2915,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2853
2915
  </origami-tooltip>
2854
2916
  </div>
2855
2917
  </footer>
2856
- `}}d([ao({context:D,subscribe:!0})],Bt.prototype,"gameData",void 0),d([S({type:Boolean})],Bt.prototype,"showLogo",void 0),d([S({type:Boolean})],Bt.prototype,"showHistoryButton",void 0),d([A()],Bt.prototype,"isVolumeSliderOpen",void 0),Bt=d([O("origami-footer")],Bt);function _o(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:Gs()?0:a?.duration??0});r.addEventListener("cancel",t,{once:!0}),r.addEventListener("finish",t,{once:!0})})}function Gs(){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 nn=new Map,Ds=new WeakMap;function Ns(o){return o??{keyframes:[],options:{duration:0}}}function en(o,i){if(i.toLowerCase()==="rtl")return{keyframes:o.rtlKeyframes||o.keyframes,options:o.options};return o}function Ro(o,i){nn.set(o,Ns(i))}function Oo(o,i,a){let t=Ds.get(o);if(t?.[i])return en(t[i],a.dir);let r=nn.get(i);if(r)return en(r,a.dir);return{keyframes:[],options:{duration:0}}}function Fi(o,i){return new Promise((a)=>{function t(r){if(r.target===o)o.removeEventListener(i,t),a()}o.addEventListener(i,t)})}function*Ra(o=document.activeElement){if(o===null||o===void 0)return;if(yield o,"shadowRoot"in o&&o.shadowRoot&&o.shadowRoot.mode!=="closed")yield*Ra(o.shadowRoot.activeElement)}function sn(){return[...Ra()].pop()}var ln=new WeakMap;function dn(o){let i=ln.get(o);if(!i)i=window.getComputedStyle(o,null),ln.set(o,i);return i}function Ms(o){if(typeof o.checkVisibility==="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=dn(o);return i.visibility!=="hidden"&&i.display!=="none"}function Es(o){let i=dn(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 ol(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(!Ms(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 Es(o)}function il(o,i){return o.getRootNode({composed:!0})?.host!==i}function Gt(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)&&ol(r))a.push(r);if(r instanceof HTMLSlotElement&&il(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 Mi=[];class Qi{element;isExternalActivated=!1;tabDirection="forward";currentFocus=null;previousFocus=null;elementsWithTabbableControls;constructor(o){this.element=o,this.elementsWithTabbableControls=["iframe"]}activate(){Mi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Mi=Mi.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 Mi[Mi.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){let o=Gt(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=sn();if(this.previousFocus=i,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o.shiftKey)this.tabDirection="backward";else this.tabDirection="forward";let a=Gt(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=[...Ra()];if(this.currentFocus&&n.includes(this.currentFocus)||this.previousFocus&&!n.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())};handleKeyUp=()=>{this.tabDirection="forward"}}var Dt=new Set;function al(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function tl(){let o=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));if(Number.isNaN(o)||!o)return 0;return o}function Ii(o){if(Dt.add(o),!document.documentElement.classList.contains("sl-scroll-lock")){let i=al()+tl(),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 mi(o){if(Dt.delete(o),Dt.size===0)document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size")}var cn=X`
2918
+ `}}d([ao({context:D,subscribe:!0})],Bt.prototype,"gameData",void 0),d([S({type:Boolean})],Bt.prototype,"showLogo",void 0),d([S({type:Boolean})],Bt.prototype,"showHistoryButton",void 0),d([A()],Bt.prototype,"isVolumeSliderOpen",void 0),Bt=d([O("origami-footer")],Bt);function _o(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:Gs()?0:a?.duration??0});r.addEventListener("cancel",t,{once:!0}),r.addEventListener("finish",t,{once:!0})})}function Gs(){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 nn=new Map,Ds=new WeakMap;function Ns(o){return o??{keyframes:[],options:{duration:0}}}function en(o,i){if(i.toLowerCase()==="rtl")return{keyframes:o.rtlKeyframes||o.keyframes,options:o.options};return o}function Ro(o,i){nn.set(o,Ns(i))}function Oo(o,i,a){let t=Ds.get(o);if(t?.[i])return en(t[i],a.dir);let r=nn.get(i);if(r)return en(r,a.dir);return{keyframes:[],options:{duration:0}}}function Fi(o,i){return new Promise((a)=>{function t(r){if(r.target===o)o.removeEventListener(i,t),a()}o.addEventListener(i,t)})}function*Ra(o=document.activeElement){if(o===null||o===void 0)return;if(yield o,"shadowRoot"in o&&o.shadowRoot&&o.shadowRoot.mode!=="closed")yield*Ra(o.shadowRoot.activeElement)}function sn(){return[...Ra()].pop()}var ln=new WeakMap;function dn(o){let i=ln.get(o);if(!i)i=window.getComputedStyle(o,null),ln.set(o,i);return i}function Ms(o){if(typeof o.checkVisibility==="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=dn(o);return i.visibility!=="hidden"&&i.display!=="none"}function Es(o){let i=dn(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 ol(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(!Ms(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 Es(o)}function il(o,i){return o.getRootNode({composed:!0})?.host!==i}function Gt(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)&&ol(r))a.push(r);if(r instanceof HTMLSlotElement&&il(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 Mi=[];class Qi{element;isExternalActivated=!1;tabDirection="forward";currentFocus=null;previousFocus=null;elementsWithTabbableControls;constructor(o){this.element=o,this.elementsWithTabbableControls=["iframe"]}activate(){Mi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Mi=Mi.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 Mi[Mi.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){let o=Gt(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=sn();if(this.previousFocus=i,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o.shiftKey)this.tabDirection="backward";else this.tabDirection="forward";let a=Gt(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=[...Ra()];if(this.currentFocus&&n.includes(this.currentFocus)||this.previousFocus&&!n.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())};handleKeyUp=()=>{this.tabDirection="forward"}}var Dt=new Set;function al(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function tl(){let o=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));if(Number.isNaN(o)||!o)return 0;return o}function Ii(o){if(Dt.add(o),!document.documentElement.classList.contains("sl-scroll-lock")){let i=al()+tl(),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 vi(o){if(Dt.delete(o),Dt.size===0)document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size")}var cn=X`
2857
2919
  :host {
2858
2920
  --sl-spacing-2x-large: 36px;
2859
2921
  --sl-border-radius-medium: 10px;
@@ -2964,7 +3026,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2964
3026
  border: solid 1px var(--sl-color-neutral-0);
2965
3027
  }
2966
3028
  }
2967
- `;class Ua extends B{constructor(){super(...arguments);this.fixedPosition=!1;this.open=!1;this.label="";this.lockScrolling=!1;this.noHeader=!1}static styles=[G,cn];originalTrigger=null;focusTrap=new Qi(this);closeWatcher=null;firstUpdated(){if(this.dialog.hidden=!this.open,this.open){if(this.addOpenListeners(),this.focusTrap.activate(),this.lockScrolling)Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),this.focusTrap.deactivate(),mi(this),this.removeOpenListeners()}requestClose(o){if(this.emit("modal-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"dialog.denyClose",{dir:""});_o(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)Ii(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=Oo(this,"dialog.show",{dir:""}),a=Oo(this,"dialog.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(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=Oo(this,"dialog.hide",{dir:""}),i=Oo(this,"dialog.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,mi(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,Fi(this,"modal-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"modal-after-hide")}render(){return $`
3029
+ `;class Ua extends B{constructor(){super(...arguments);this.fixedPosition=!1;this.open=!1;this.label="";this.lockScrolling=!1;this.noHeader=!1}static styles=[G,cn];originalTrigger=null;focusTrap=new Qi(this);closeWatcher=null;firstUpdated(){if(this.dialog.hidden=!this.open,this.open){if(this.addOpenListeners(),this.focusTrap.activate(),this.lockScrolling)Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),this.focusTrap.deactivate(),vi(this),this.removeOpenListeners()}requestClose(o){if(this.emit("modal-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"dialog.denyClose",{dir:""});_o(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)Ii(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=Oo(this,"dialog.show",{dir:""}),a=Oo(this,"dialog.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(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=Oo(this,"dialog.hide",{dir:""}),i=Oo(this,"dialog.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,vi(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,Fi(this,"modal-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"modal-after-hide")}render(){return $`
2968
3030
  <div
2969
3031
  part="base"
2970
3032
  class=${to({dialog:!0,"dialog--open":this.open,"dialog--fixed-position":this.fixedPosition})}
@@ -2982,8 +3044,8 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2982
3044
  role="dialog"
2983
3045
  aria-modal="true"
2984
3046
  aria-hidden=${this.open?"false":"true"}
2985
- aria-label=${vo(this.noHeader?this.label:void 0)}
2986
- aria-labelledby=${vo(!this.noHeader?"title":void 0)}
3047
+ aria-label=${mo(this.noHeader?this.label:void 0)}
3048
+ aria-labelledby=${mo(!this.noHeader?"title":void 0)}
2987
3049
  tabindex="-1"
2988
3050
  >
2989
3051
  <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>
@@ -2992,7 +3054,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
2992
3054
  </div>
2993
3055
  </div>
2994
3056
  </div>
2995
- `}}d([ao({context:D,subscribe:!0})],Ua.prototype,"gameData",void 0),d([S({type:Boolean})],Ua.prototype,"fixedPosition",void 0),d([fo(".dialog")],Ua.prototype,"dialog",void 0),d([fo(".dialog__panel")],Ua.prototype,"panel",void 0),d([fo(".dialog__overlay")],Ua.prototype,"overlay",void 0),d([S({type:Boolean,reflect:!0})],Ua.prototype,"open",void 0),d([S({reflect:!0})],Ua.prototype,"label",void 0),d([S({type:Boolean})],Ua.prototype,"lockScrolling",void 0),d([S({attribute:"no-header",type:Boolean,reflect:!0})],Ua.prototype,"noHeader",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleOpenChange",null),Ua=d([O("origami-modal")],Ua);Ro("dialog.show",{keyframes:[{opacity:0.9,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.hide",{keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0.9,transform:"translateX(100%)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:150}});Ro("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:150}});Ro("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:150}});var hn=X`
3057
+ `}}d([ao({context:D,subscribe:!0})],Ua.prototype,"gameData",void 0),d([S({type:Boolean})],Ua.prototype,"fixedPosition",void 0),d([po(".dialog")],Ua.prototype,"dialog",void 0),d([po(".dialog__panel")],Ua.prototype,"panel",void 0),d([po(".dialog__overlay")],Ua.prototype,"overlay",void 0),d([S({type:Boolean,reflect:!0})],Ua.prototype,"open",void 0),d([S({reflect:!0})],Ua.prototype,"label",void 0),d([S({type:Boolean})],Ua.prototype,"lockScrolling",void 0),d([S({attribute:"no-header",type:Boolean,reflect:!0})],Ua.prototype,"noHeader",void 0),d([vo("open",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleOpenChange",null),Ua=d([O("origami-modal")],Ua);Ro("dialog.show",{keyframes:[{opacity:0.9,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.hide",{keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0.9,transform:"translateX(100%)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:150}});Ro("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:150}});Ro("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:150}});var hn=X`
2996
3058
  :host {
2997
3059
  display: flex;
2998
3060
  flex-direction: column;
@@ -3432,7 +3494,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
3432
3494
  padding: 12px;
3433
3495
  border-radius: 10px;
3434
3496
  }
3435
- `;var fn=X`
3497
+ `;var pn=X`
3436
3498
  :host {
3437
3499
  display: block;
3438
3500
  --success-color: var(--win-success-color, #4ef382);
@@ -3589,7 +3651,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
3589
3651
  <path d="M-1.5299e-07 11L3.5 14.5L4.9 11.7L2.8 9.6L-1.5299e-07 11Z" fill="#03BD02"/>
3590
3652
  <path d="M10.5 14.5L14 11L11.2 9.6L9.1 11.7L10.5 14.5Z" fill="#01E401"/>
3591
3653
  <path d="M14 4L10.5 0.5L9.1 3.3L11.2 5.4L14 4Z" fill="#019902"/>
3592
- </svg>`,nl={Keno:el,Mines:rl};class Mt extends B{static styles=[G,fn];betResultCache=Co.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 $`
3654
+ </svg>`,nl={Keno:el,Mines:rl};class Mt extends B{static styles=[G,pn];betResultCache=Co.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 $`
3593
3655
  <div class="game-win-popup-top">
3594
3656
  <h2 id="win-popup-multiplier" class="game-win-popup-multiplier">
3595
3657
  ${this.title||(this.multiplier!==void 0?$`${this.multiplier.toFixed(2)}x`:"")}
@@ -3609,7 +3671,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
3609
3671
  ${nl[this.gameType]}
3610
3672
  </div>
3611
3673
  </div>
3612
- `}}d([S({type:Object})],Mt.prototype,"payout",void 0),d([S({type:Number})],Mt.prototype,"multiplier",void 0),d([S({type:String})],Mt.prototype,"currencySymbol",void 0),d([S({type:String})],Mt.prototype,"title",void 0),d([S({type:String})],Mt.prototype,"description",void 0),d([S({type:Number})],Mt.prototype,"gemCount",void 0),d([S({type:String})],Mt.prototype,"gameType",void 0),d([S({type:String,reflect:!0})],Mt.prototype,"betId",void 0),d([S({type:Boolean,reflect:!0,attribute:"is-loss"})],Mt.prototype,"isLoss",void 0),d([S({type:Boolean,reflect:!0,attribute:"is-push"})],Mt.prototype,"isPush",void 0),Mt=d([O("origami-game-win-popup")],Mt);var pn=eo`
3674
+ `}}d([S({type:Object})],Mt.prototype,"payout",void 0),d([S({type:Number})],Mt.prototype,"multiplier",void 0),d([S({type:String})],Mt.prototype,"currencySymbol",void 0),d([S({type:String})],Mt.prototype,"title",void 0),d([S({type:String})],Mt.prototype,"description",void 0),d([S({type:Number})],Mt.prototype,"gemCount",void 0),d([S({type:String})],Mt.prototype,"gameType",void 0),d([S({type:String,reflect:!0})],Mt.prototype,"betId",void 0),d([S({type:Boolean,reflect:!0,attribute:"is-loss"})],Mt.prototype,"isLoss",void 0),d([S({type:Boolean,reflect:!0,attribute:"is-push"})],Mt.prototype,"isPush",void 0),Mt=d([O("origami-game-win-popup")],Mt);var fn=eo`
3613
3675
  <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>
3614
3676
  `;var gn=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 bn=X`
3615
3677
  :host {
@@ -3858,7 +3920,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
3858
3920
  ></button>
3859
3921
  <button class="rear-tile" ?disabled=${this._isDisabled} @click=${this._handleClick}>
3860
3922
  ${this._isRevealed?$`
3861
- <div class="icon-container">${this._isMine?pn:this._isGem?gn:_}</div>
3923
+ <div class="icon-container">${this._isMine?fn:this._isGem?gn:_}</div>
3862
3924
  `:_}
3863
3925
  </button>
3864
3926
  `}}d([S({type:Number})],Et.prototype,"tileId",void 0),d([S({type:Boolean})],Et.prototype,"delayReveal",void 0),d([S({type:Boolean})],Et.prototype,"autobetInProgress",void 0),d([S({type:Boolean})],Et.prototype,"isAutoMode",void 0),d([S({type:String})],Et.prototype,"state",void 0),d([S({type:String,attribute:"aria-label"})],Et.prototype,"ariaLabel",void 0),d([S({type:Boolean})],Et.prototype,"isLoading",void 0),d([S({type:Boolean})],Et.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Et.prototype,"gameData",void 0),Et=d([O("origami-mines-tile")],Et);var wn=X`
@@ -3955,7 +4017,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
3955
4017
  </div>
3956
4018
  </div>
3957
4019
  </div>
3958
- `}}d([S({type:Boolean})],or.prototype,"isAuto",void 0),d([S({type:Array})],or.prototype,"autobetSelectedTiles",void 0),d([S({type:Boolean})],or.prototype,"autobetInProgress",void 0),d([S({type:Object})],or.prototype,"minesState",void 0),d([S({type:Boolean})],or.prototype,"hasWon",void 0),d([S({type:Boolean})],or.prototype,"hitBomb",void 0),d([S({type:Array})],or.prototype,"loadingTiles",void 0),d([S({type:Boolean})],or.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],or.prototype,"gameData",void 0),or=d([O("origami-mines-grid")],or);var vn=X`
4020
+ `}}d([S({type:Boolean})],or.prototype,"isAuto",void 0),d([S({type:Array})],or.prototype,"autobetSelectedTiles",void 0),d([S({type:Boolean})],or.prototype,"autobetInProgress",void 0),d([S({type:Object})],or.prototype,"minesState",void 0),d([S({type:Boolean})],or.prototype,"hasWon",void 0),d([S({type:Boolean})],or.prototype,"hitBomb",void 0),d([S({type:Array})],or.prototype,"loadingTiles",void 0),d([S({type:Boolean})],or.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],or.prototype,"gameData",void 0),or=d([O("origami-mines-grid")],or);var mn=X`
3959
4021
  :host {
3960
4022
  --multiplier-success-color: #00E701;
3961
4023
  --multiplier-danger-color: #e9113c;
@@ -4003,7 +4065,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
4003
4065
  .multiplier-default {
4004
4066
  color: var(--multiplier-default-color);
4005
4067
  }
4006
- `;var sl=250;class ir extends B{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=[G,vn];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/sl,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([ao({context:D,subscribe:!0})],ir.prototype,"gameData",void 0),d([S({type:Number})],ir.prototype,"resultMultiplier",void 0),d([S({type:Boolean})],ir.prototype,"isWin",void 0),d([S({type:String})],ir.prototype,"betId",void 0),d([S({type:Number})],ir.prototype,"betTargetMultiplier",void 0),d([S({type:Boolean})],ir.prototype,"disableAnimation",void 0),d([S({type:Boolean})],ir.prototype,"disableSound",void 0),d([S({type:Boolean})],ir.prototype,"inGameDisplay",void 0),d([S({type:Boolean})],ir.prototype,"ignoreInstantBet",void 0),d([A()],ir.prototype,"currentValue",void 0),d([A()],ir.prototype,"isAnimating",void 0),d([A()],ir.prototype,"queuedMultiplier",void 0),ir=d([O("origami-limbo-multiplier")],ir);var mn=X`
4068
+ `;var sl=250;class ir extends B{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=[G,mn];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/sl,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([ao({context:D,subscribe:!0})],ir.prototype,"gameData",void 0),d([S({type:Number})],ir.prototype,"resultMultiplier",void 0),d([S({type:Boolean})],ir.prototype,"isWin",void 0),d([S({type:String})],ir.prototype,"betId",void 0),d([S({type:Number})],ir.prototype,"betTargetMultiplier",void 0),d([S({type:Boolean})],ir.prototype,"disableAnimation",void 0),d([S({type:Boolean})],ir.prototype,"disableSound",void 0),d([S({type:Boolean})],ir.prototype,"inGameDisplay",void 0),d([S({type:Boolean})],ir.prototype,"ignoreInstantBet",void 0),d([A()],ir.prototype,"currentValue",void 0),d([A()],ir.prototype,"isAnimating",void 0),d([A()],ir.prototype,"queuedMultiplier",void 0),ir=d([O("origami-limbo-multiplier")],ir);var vn=X`
4007
4069
  :host {
4008
4070
  display: flex;
4009
4071
  flex-direction: column;
@@ -4335,15 +4397,15 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
4335
4397
  background: #848484 !important;
4336
4398
  opacity: 1 !important;
4337
4399
  }
4338
- `;class ar extends B{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=[G,mn];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 $`
4400
+ `;class ar extends B{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=[G,vn];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 $`
4339
4401
  <div
4340
4402
  class=${"slider-container"}
4341
4403
  style=${Vo({["--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"}:{}})}
4342
4404
  >
4343
4405
  <div class="markers" aria-hidden="true">
4344
- ${i.map((f)=>$`
4406
+ ${i.map((p)=>$`
4345
4407
  <div class="marker">
4346
- <div class="marker-label">${f}</div>
4408
+ <div class="marker-label">${p}</div>
4347
4409
  <div class="marker-arrow"></div>
4348
4410
  </div>
4349
4411
  `)}
@@ -5006,7 +5068,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5006
5068
 
5007
5069
  ${this._renderVerificationInputs()}
5008
5070
  </div>
5009
- `}_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=[],g=0,H;while(H=l.exec(s)){if(H.index>g)h.push(s.slice(g,H.index));h.push($`<code>${H[0]}</code>`),g=l.lastIndex}if(g<s.length)h.push(s.slice(g));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 U=v.split(f);U.forEach((b,u)=>{if(b)z.push(b);if(u<U.length-1)z.push($`<a class="verify-link" href=${y} target="_blank" rel="noopener noreferrer">${f}</a>`)})}else z.push(v);return z},t=q("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=q("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=q("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=q("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 $`
5071
+ `}_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=[],g=0,H;while(H=l.exec(s)){if(H.index>g)h.push(s.slice(g,H.index));h.push($`<code>${H[0]}</code>`),g=l.lastIndex}if(g<s.length)h.push(s.slice(g));let p="draft-irtf-cfrg-vrf-15",y="https://datatracker.ietf.org/doc/draft-irtf-cfrg-vrf/15/",z=[];for(let m of h)if(typeof m==="string"&&m.includes(p)){let U=m.split(p);U.forEach((b,u)=>{if(b)z.push(b);if(u<U.length-1)z.push($`<a class="verify-link" href=${y} target="_blank" rel="noopener noreferrer">${p}</a>`)})}else z.push(m);return z},t=q("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=q("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=q("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=q("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 $`
5010
5072
  <section class="pf-info">
5011
5073
  <div class="info-message">
5012
5074
  <span class="info-icon">${zn}</span>
@@ -5337,8 +5399,8 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5337
5399
  <summary>
5338
5400
  <span class="accordion-title">${q("gameInfo.tutorial",o,"Tutorial")}</span>
5339
5401
  <span class="accordion-icon" aria-hidden="true">
5340
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5341
- <path d="M9.52231 9.75C8.27409 9.75 7.57194 11.1856 8.33828 12.1709L10.816 15.3565C11.4165 16.1286 12.5835 16.1286 13.184 15.3565L15.6617 12.1709C16.428 11.1856 15.7259 9.75 14.4777 9.75H9.52231Z" fill="currentColor"/>
5402
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false">
5403
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 15.5859L4.70718 8.29297L3.29297 9.70718L12.0001 18.4143L20.7072 9.70718L19.293 8.29297L12.0001 15.5859Z" fill="#b3b3b3"/>
5342
5404
  </svg>
5343
5405
  </span>
5344
5406
  </summary>
@@ -5357,8 +5419,8 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5357
5419
  <summary>
5358
5420
  <span class="accordion-title">${q("gameInfo.strategyTitle",o,"Strategy")}</span>
5359
5421
  <span class="accordion-icon" aria-hidden="true">
5360
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5361
- <path d="M9.52231 9.75C8.27409 9.75 7.57194 11.1856 8.33828 12.1709L10.816 15.3565C11.4165 16.1286 12.5835 16.1286 13.184 15.3565L15.6617 12.1709C16.428 11.1856 15.7259 9.75 14.4777 9.75H9.52231Z" fill="currentColor"/>
5422
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false">
5423
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 15.5859L4.70718 8.29297L3.29297 9.70718L12.0001 18.4143L20.7072 9.70718L19.293 8.29297L12.0001 15.5859Z" fill="#b3b3b3"/>
5362
5424
  </svg>
5363
5425
  </span>
5364
5426
  </summary>
@@ -5371,7 +5433,11 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5371
5433
  <details>
5372
5434
  <summary>
5373
5435
  <span class="accordion-title">${q("common.provablyFair",o,"Provably Fair")}</span>
5374
- <span class="accordion-icon" aria-hidden="true">▼</span>
5436
+ <span class="accordion-icon" aria-hidden="true">
5437
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false">
5438
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 15.5859L4.70718 8.29297L3.29297 9.70718L12.0001 18.4143L20.7072 9.70718L19.293 8.29297L12.0001 15.5859Z" fill="#b3b3b3"/>
5439
+ </svg>
5440
+ </span>
5375
5441
  </summary>
5376
5442
  <div class="accordion-content">
5377
5443
  <p>
@@ -5380,10 +5446,14 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5380
5446
  </div>
5381
5447
  </details>
5382
5448
  `;case"LIMBO":return $`
5383
- <details open>
5449
+ <details>
5384
5450
  <summary>
5385
5451
  <span class="accordion-title">${q("gameInfo.tutorial",o,"Tutorial")}</span>
5386
- <span class="accordion-icon" aria-hidden="true">▼</span>
5452
+ <span class="accordion-icon" aria-hidden="true">
5453
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false">
5454
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 15.5859L4.70718 8.29297L3.29297 9.70718L12.0001 18.4143L20.7072 9.70718L19.293 8.29297L12.0001 15.5859Z" fill="#b3b3b3"/>
5455
+ </svg>
5456
+ </span>
5387
5457
  </summary>
5388
5458
  <div class="accordion-content">
5389
5459
  <ul>
@@ -5395,10 +5465,14 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5395
5465
  </ul>
5396
5466
  </div>
5397
5467
  </details>
5398
- <details open>
5468
+ <details>
5399
5469
  <summary>
5400
5470
  <span class="accordion-title">${q("gameInfo.strategyTitle",o,"Strategy")}</span>
5401
- <span class="accordion-icon" aria-hidden="true">▼</span>
5471
+ <span class="accordion-icon" aria-hidden="true">
5472
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false">
5473
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 15.5859L4.70718 8.29297L3.29297 9.70718L12.0001 18.4143L20.7072 9.70718L19.293 8.29297L12.0001 15.5859Z" fill="#b3b3b3"/>
5474
+ </svg>
5475
+ </span>
5402
5476
  </summary>
5403
5477
  <div class="accordion-content">
5404
5478
  <p>
@@ -5406,10 +5480,14 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5406
5480
  </p>
5407
5481
  </div>
5408
5482
  </details>
5409
- <details open>
5483
+ <details>
5410
5484
  <summary>
5411
5485
  <span class="accordion-title">${q("common.provablyFair",o,"Provably Fair")}</span>
5412
- <span class="accordion-icon" aria-hidden="true">▼</span>
5486
+ <span class="accordion-icon" aria-hidden="true">
5487
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false">
5488
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0001 15.5859L4.70718 8.29297L3.29297 9.70718L12.0001 18.4143L20.7072 9.70718L19.293 8.29297L12.0001 15.5859Z" fill="#b3b3b3"/>
5489
+ </svg>
5490
+ </span>
5413
5491
  </summary>
5414
5492
  <div class="accordion-content">
5415
5493
  <p>
@@ -5820,7 +5898,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5820
5898
  width: 16px;
5821
5899
  height: 16px;
5822
5900
  }
5823
- `;class po{authToken;baseUrl;static totalDiceValue=1e4;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/dice"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}static getMultiplier(o,i){let a=po.getWinChance(o,i);return P(99).dividedBy(P(a)).toFixed(4)}static getWinChance(o,i){let a=i==="ABOVE"?po.totalDiceValue-o:o;return P(a).div(po.totalDiceValue).multipliedBy(100).toFixed(4)}static getSelectedValueFromMultiplier(o,i){let a=P(99).dividedBy(o);return po.getSelectedValueFromWinChance(a.toNumber(),i)}static getSelectedValueFromWinChance(o,i){let a=P(o).dividedBy(100).multipliedBy(po.totalDiceValue);if(i==="ABOVE")return po.totalDiceValue-a.toNumber();return a.toNumber()}static getSelectedValueFromRollOver(o){return po.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 dr{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===xo.BELOW,t=i.result[0],r=o.selectedValue,e=o.direction===xo.ABOVE?t>r:t<r,n=po.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:ro.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:ro.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 ll=({gameId:o,tenantId:i,tenantUserId:a,nonce:t,clientSeed:r})=>{return`${o}-${i}-${a}-${t}-${r}`};class cr extends B{constructor(){super(...arguments);this.betId="";this.betData=null}static styles=[G,Hn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Co.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 dr(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=di(i),e=li(i),n=ci(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 Lo(o??"USD")}openVerifyOutcomeModal(){this.emit("open-verify-outcome-modal",{detail:{verifyData:{publicKey:this.gameData?.publicKey??"",request:ll({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??""}}})}triggerVerify(){this.openVerifyOutcomeModal()}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 $`
5901
+ `;class fo{authToken;baseUrl;static totalDiceValue=1e4;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/dice"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}static getMultiplier(o,i){let a=fo.getWinChance(o,i);return P(99).dividedBy(P(a)).toFixed(4)}static getWinChance(o,i){let a=i==="ABOVE"?fo.totalDiceValue-o:o;return P(a).div(fo.totalDiceValue).multipliedBy(100).toFixed(4)}static getSelectedValueFromMultiplier(o,i){let a=P(99).dividedBy(o);return fo.getSelectedValueFromWinChance(a.toNumber(),i)}static getSelectedValueFromWinChance(o,i){let a=P(o).dividedBy(100).multipliedBy(fo.totalDiceValue);if(i==="ABOVE")return fo.totalDiceValue-a.toNumber();return a.toNumber()}static getSelectedValueFromRollOver(o){return fo.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 dr{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===xo.BELOW,t=i.result[0],r=o.selectedValue,e=o.direction===xo.ABOVE?t>r:t<r,n=fo.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:ro.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:ro.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 ll=({gameId:o,tenantId:i,tenantUserId:a,nonce:t,clientSeed:r})=>{return`${o}-${i}-${a}-${t}-${r}`};class cr extends B{constructor(){super(...arguments);this.betId="";this.betData=null}static styles=[G,Hn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Co.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 dr(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=di(i),e=li(i),n=ci(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 Lo(o??"USD")}openVerifyOutcomeModal(){this.emit("open-verify-outcome-modal",{detail:{verifyData:{publicKey:this.gameData?.publicKey??"",request:ll({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??""}}})}triggerVerify(){this.openVerifyOutcomeModal()}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 $`
5824
5902
  <div class="loading-container" style=${"display:flex;justify-content:center;align-items:center;min-height:200px;"}>
5825
5903
  <origami-spinner></origami-spinner>
5826
5904
  </div>
@@ -5925,7 +6003,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
5925
6003
 
5926
6004
 
5927
6005
  </div>
5928
- `}}d([ao({context:D,subscribe:!0})],cr.prototype,"gameData",void 0),d([S({type:String})],cr.prototype,"betId",void 0),d([A()],cr.prototype,"betData",void 0),d([mo("betId")],cr.prototype,"betIdUpdated",null),cr=d([O("origami-bet-result-modal")],cr);var Sn=(o)=>{let{activeElement:i}=document;if(i&&o.contains(i))document.activeElement?.blur()};var Zn=X`
6006
+ `}}d([ao({context:D,subscribe:!0})],cr.prototype,"gameData",void 0),d([S({type:String})],cr.prototype,"betId",void 0),d([A()],cr.prototype,"betData",void 0),d([vo("betId")],cr.prototype,"betIdUpdated",null),cr=d([O("origami-bet-result-modal")],cr);var Sn=(o)=>{let{activeElement:i}=document;if(i&&o.contains(i))document.activeElement?.blur()};var Zn=X`
5929
6007
  :host {
5930
6008
  --sl-color-neutral-0: hsl(240, 5.9%, 11%);
5931
6009
  --sl-color-neutral-400: hsl(240 5% 35.5%);
@@ -6073,7 +6151,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6073
6151
  border: solid 1px var(--sl-color-neutral-0);
6074
6152
  }
6075
6153
  }
6076
- `;class Va extends B{constructor(){super(...arguments);this.open=!1;this.label="";this.contained=!1;this.noHeader=!1;this.noCloseButton=!1}static styles=[G,Zn];originalTrigger=null;focusTrap=new Qi(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(),Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),mi(this),this.removeOpenListeners(),this.cleanupDragState()}requestClose(o){if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"drawer.denyClose",{dir:""});_o(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(),mi(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(),Ii(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=Oo(this,"drawer.showBottom",{dir:""}),a=Oo(this,"drawer.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(this.overlay,a.keyframes,a.options)]),this.emit("drawer-after-show")}else{if(this.isCustomClosing)return;if(Sn(this),this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),mi(this);await Promise.all([ii(this.drawer),ii(this.overlay)]);let o=Oo(this,"drawer.hideBottom",{dir:""}),i=Oo(this,"drawer.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(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(),Ii(this);if(this.open&&this.contained)this.focusTrap.deactivate(),mi(this)}async show(){if(this.open)return;return this.open=!0,Fi(this,"drawer-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"drawer-after-hide")}render(){return $`
6154
+ `;class Va extends B{constructor(){super(...arguments);this.open=!1;this.label="";this.contained=!1;this.noHeader=!1;this.noCloseButton=!1}static styles=[G,Zn];originalTrigger=null;focusTrap=new Qi(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(),Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),vi(this),this.removeOpenListeners(),this.cleanupDragState()}requestClose(o){if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"drawer.denyClose",{dir:""});_o(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(),vi(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(),Ii(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=Oo(this,"drawer.showBottom",{dir:""}),a=Oo(this,"drawer.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(this.overlay,a.keyframes,a.options)]),this.emit("drawer-after-show")}else{if(this.isCustomClosing)return;if(Sn(this),this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),vi(this);await Promise.all([ii(this.drawer),ii(this.overlay)]);let o=Oo(this,"drawer.hideBottom",{dir:""}),i=Oo(this,"drawer.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(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(),Ii(this);if(this.open&&this.contained)this.focusTrap.deactivate(),vi(this)}async show(){if(this.open)return;return this.open=!0,Fi(this,"drawer-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"drawer-after-hide")}render(){return $`
6077
6155
  <div
6078
6156
  part="base"
6079
6157
  class=${to({drawer:!0,"drawer--open":this.open,"drawer--bottom":!0,"drawer--contained":this.contained,"drawer--fixed":!this.contained})}
@@ -6086,8 +6164,8 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6086
6164
  role="dialog"
6087
6165
  aria-modal="true"
6088
6166
  aria-hidden=${this.open?"false":"true"}
6089
- aria-label=${vo(this.noHeader?this.label:void 0)}
6090
- aria-labelledby=${vo(!this.noHeader?"title":void 0)}
6167
+ aria-label=${mo(this.noHeader?this.label:void 0)}
6168
+ aria-labelledby=${mo(!this.noHeader?"title":void 0)}
6091
6169
  tabindex="0"
6092
6170
  @wheel=${this.handlePanelWheel}
6093
6171
  @touchstart=${this.handlePanelTouchStart}
@@ -6109,7 +6187,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6109
6187
  </div>
6110
6188
  </div>
6111
6189
  </div>
6112
- `}}d([fo(".drawer")],Va.prototype,"drawer",void 0),d([fo(".drawer__panel")],Va.prototype,"panel",void 0),d([fo(".drawer__overlay")],Va.prototype,"overlay",void 0),d([S({type:Boolean,reflect:!0})],Va.prototype,"open",void 0),d([S({reflect:!0})],Va.prototype,"label",void 0),d([S({type:Boolean,reflect:!0})],Va.prototype,"contained",void 0),d([S({attribute:"no-header",type:Boolean,reflect:!0})],Va.prototype,"noHeader",void 0),d([S({attribute:"no-close-button",type:Boolean,reflect:!0})],Va.prototype,"noCloseButton",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Va.prototype,"handleOpenChange",null),d([mo("contained",{waitUntilFirstUpdate:!0})],Va.prototype,"handleNoModalChange",null),Va=d([O("origami-drawer")],Va);Ro("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});Ro("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"}});Ro("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"}});Ro("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});Ro("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"}});Ro("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"}});Ro("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});Ro("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});Ro("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Kn=X`
6190
+ `}}d([po(".drawer")],Va.prototype,"drawer",void 0),d([po(".drawer__panel")],Va.prototype,"panel",void 0),d([po(".drawer__overlay")],Va.prototype,"overlay",void 0),d([S({type:Boolean,reflect:!0})],Va.prototype,"open",void 0),d([S({reflect:!0})],Va.prototype,"label",void 0),d([S({type:Boolean,reflect:!0})],Va.prototype,"contained",void 0),d([S({attribute:"no-header",type:Boolean,reflect:!0})],Va.prototype,"noHeader",void 0),d([S({attribute:"no-close-button",type:Boolean,reflect:!0})],Va.prototype,"noCloseButton",void 0),d([vo("open",{waitUntilFirstUpdate:!0})],Va.prototype,"handleOpenChange",null),d([vo("contained",{waitUntilFirstUpdate:!0})],Va.prototype,"handleNoModalChange",null),Va=d([O("origami-drawer")],Va);Ro("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});Ro("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"}});Ro("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"}});Ro("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});Ro("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"}});Ro("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"}});Ro("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});Ro("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});Ro("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Kn=X`
6113
6191
  :host {
6114
6192
  display: contents;
6115
6193
  }
@@ -6169,7 +6247,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6169
6247
  <slot name="mobile-footer"></slot>
6170
6248
  </div>
6171
6249
  </origami-drawer>
6172
- `}}d([S({type:Boolean})],hr.prototype,"showFooter",void 0),d([S({type:Boolean,reflect:!0})],hr.prototype,"open",void 0),d([S({type:String})],hr.prototype,"label",void 0),d([S({type:String})],hr.prototype,"width",void 0),d([A()],hr.prototype,"internalOpen",void 0),d([mo("open")],hr.prototype,"openChanged",null),hr=d([O("origami-responsive-modal")],hr);var Rn=X`
6250
+ `}}d([S({type:Boolean})],hr.prototype,"showFooter",void 0),d([S({type:Boolean,reflect:!0})],hr.prototype,"open",void 0),d([S({type:String})],hr.prototype,"label",void 0),d([S({type:String})],hr.prototype,"width",void 0),d([A()],hr.prototype,"internalOpen",void 0),d([vo("open")],hr.prototype,"openChanged",null),hr=d([O("origami-responsive-modal")],hr);var Rn=X`
6173
6251
  :host {
6174
6252
  position: absolute;
6175
6253
  top: 12px;
@@ -6370,7 +6448,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6370
6448
  </div>
6371
6449
 
6372
6450
  </div>
6373
- `}}d([S({type:String})],ur.prototype,"type",void 0),d([S({type:String})],ur.prototype,"message",void 0),d([S({type:Number})],ur.prototype,"autoCloseDelay",void 0),d([S({type:Boolean})],ur.prototype,"flipToRefreshTimer",void 0),d([A()],ur.prototype,"isHiding",void 0),d([A()],ur.prototype,"isPaused",void 0),d([A()],ur.prototype,"progressWidth",void 0),d([ao({context:D,subscribe:!0})],ur.prototype,"gameData",void 0),d([mo("flipToRefreshTimer",{waitUntilFirstUpdate:!0})],ur.prototype,"handleAutoCloseDelayChange",null),ur=d([O("origami-alert")],ur);var Wn=(o,i,a)=>{let t=new Map;for(let r=i;r<=a;r++)t.set(o[r],r);return t},Ia=Do(class extends No{constructor(o){if(super(o),o.type!==qo.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=Ye(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,g,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]=wi(r[H],e[y]),H++,y++;else if(s[f]===n[z])l[z]=wi(r[f],e[z]),f--,z--;else if(s[H]===n[z])l[z]=wi(r[H],e[z]),Yi(o,l[z+1],r[H]),H++,z--;else if(s[f]===n[y])l[y]=wi(r[f],e[y]),Yi(o,r[H],r[f]),f--,y++;else if(h===void 0&&(h=Wn(n,y,z),g=Wn(s,H,f)),h.has(s[H]))if(h.has(s[f])){let v=g.get(n[y]),U=v!==void 0?r[v]:null;if(U===null){let b=Yi(o,r[H]);wi(b,e[y]),l[y]=b}else l[y]=wi(U,e[y]),Yi(o,r[H],U),r[v]=null;y++}else ka(r[f]),f--;else ka(r[H]),H++;for(;y<=z;){let v=Yi(o,l[z+1]);wi(v,e[y]),l[y++]=v}for(;H<=f;){let v=r[H++];v!==null&&ka(v)}return this.ut=n,ma(o,l),Ko}});class fr extends B{constructor(){super(...arguments);this.alerts=[]}static styles=[G,Rn];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 $`
6451
+ `}}d([S({type:String})],ur.prototype,"type",void 0),d([S({type:String})],ur.prototype,"message",void 0),d([S({type:Number})],ur.prototype,"autoCloseDelay",void 0),d([S({type:Boolean})],ur.prototype,"flipToRefreshTimer",void 0),d([A()],ur.prototype,"isHiding",void 0),d([A()],ur.prototype,"isPaused",void 0),d([A()],ur.prototype,"progressWidth",void 0),d([ao({context:D,subscribe:!0})],ur.prototype,"gameData",void 0),d([vo("flipToRefreshTimer",{waitUntilFirstUpdate:!0})],ur.prototype,"handleAutoCloseDelayChange",null),ur=d([O("origami-alert")],ur);var Wn=(o,i,a)=>{let t=new Map;for(let r=i;r<=a;r++)t.set(o[r],r);return t},Ia=Do(class extends No{constructor(o){if(super(o),o.type!==qo.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=Ye(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,g,H=0,p=r.length-1,y=0,z=e.length-1;for(;H<=p&&y<=z;)if(r[H]===null)H++;else if(r[p]===null)p--;else if(s[H]===n[y])l[y]=wi(r[H],e[y]),H++,y++;else if(s[p]===n[z])l[z]=wi(r[p],e[z]),p--,z--;else if(s[H]===n[z])l[z]=wi(r[H],e[z]),Yi(o,l[z+1],r[H]),H++,z--;else if(s[p]===n[y])l[y]=wi(r[p],e[y]),Yi(o,r[H],r[p]),p--,y++;else if(h===void 0&&(h=Wn(n,y,z),g=Wn(s,H,p)),h.has(s[H]))if(h.has(s[p])){let m=g.get(n[y]),U=m!==void 0?r[m]:null;if(U===null){let b=Yi(o,r[H]);wi(b,e[y]),l[y]=b}else l[y]=wi(U,e[y]),Yi(o,r[H],U),r[m]=null;y++}else ka(r[p]),p--;else ka(r[H]),H++;for(;y<=z;){let m=Yi(o,l[z+1]);wi(m,e[y]),l[y++]=m}for(;H<=p;){let m=r[H++];m!==null&&ka(m)}return this.ut=n,va(o,l),Ko}});class pr extends B{constructor(){super(...arguments);this.alerts=[]}static styles=[G,Rn];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 $`
6374
6452
  <div class="alert-manager" @alert-close=${this.handleAlertClose}>
6375
6453
  ${Ia(this.alerts,(i)=>i.id,(i)=>$`
6376
6454
  <origami-alert
@@ -6383,7 +6461,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6383
6461
  ></origami-alert>
6384
6462
  `)}
6385
6463
  </div>
6386
- `}}d([ao({context:D,subscribe:!0})],fr.prototype,"gameData",void 0),d([A()],fr.prototype,"alerts",void 0),fr=d([O("origami-alert-manager")],fr);var aa={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};class pr extends B{constructor(){super(...arguments);this.gameType="KENO";this.footerPosition="below";this.showFooter=!0;this.modalContent=null;this.modalNavigationStack=[];this.isModalTransitioning=!1;this.historyHasNextPage=!1;this.isLoadingMoreHistory=!1}static styles=[G,yn];pendingModalContent=null;modalTransitionTimeout;resizeObserver;previousHistoryController;onHistoryDataChanged=(o)=>{let i=o;this.historyHasNextPage=!!i.detail?.hasNextPage};firstUpdated(){this.setupMainWidthObserver(),this.setupHistoryController()}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)})}connectedCallback(){super.connectedCallback(),this.addEventListener("show-alert",(o)=>{if(this.alertManager)this.alertManager.addAlert({id:crypto.randomUUID(),...o.detail})})}disconnectedCallback(){if(super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.modalTransitionTimeout)clearTimeout(this.modalTransitionTimeout);this.cleanupHistoryController()}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)}willUpdate(o){if(super.willUpdate(o),this.gameData?.historyController!==this.previousHistoryController)this.cleanupHistoryController(),this.setupHistoryController()}setupHistoryController(){let o=this.gameData?.historyController;if(!o)return;o.addEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=o,this.historyHasNextPage=!!this.gameData?.historyController?.hasNextPage}cleanupHistoryController(){if(this.previousHistoryController)this.previousHistoryController.removeEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=void 0}async handleLoadMoreHistory(){if(this.isLoadingMoreHistory||!this.gameData?.historyController?.hasNextPage)return;this.isLoadingMoreHistory=!0;try{await this.gameData.historyController.loadMore()}finally{this.isLoadingMoreHistory=!1}}renderModalContent(o){if(!this.modalContent)return _;switch(this.modalContent.type){case"betResult":return $`
6464
+ `}}d([ao({context:D,subscribe:!0})],pr.prototype,"gameData",void 0),d([A()],pr.prototype,"alerts",void 0),pr=d([O("origami-alert-manager")],pr);var aa={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};class fr extends B{constructor(){super(...arguments);this.gameType="KENO";this.footerPosition="below";this.showFooter=!0;this.modalContent=null;this.modalNavigationStack=[];this.isModalTransitioning=!1;this.historyHasNextPage=!1;this.isLoadingMoreHistory=!1}static styles=[G,yn];pendingModalContent=null;modalTransitionTimeout;resizeObserver;previousHistoryController;onHistoryDataChanged=(o)=>{let i=o;this.historyHasNextPage=!!i.detail?.hasNextPage};firstUpdated(){this.setupMainWidthObserver(),this.setupHistoryController()}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)})}connectedCallback(){super.connectedCallback(),this.addEventListener("show-alert",(o)=>{if(this.alertManager)this.alertManager.addAlert({id:crypto.randomUUID(),...o.detail})})}disconnectedCallback(){if(super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.modalTransitionTimeout)clearTimeout(this.modalTransitionTimeout);this.cleanupHistoryController()}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)}willUpdate(o){if(super.willUpdate(o),this.gameData?.historyController!==this.previousHistoryController)this.cleanupHistoryController(),this.setupHistoryController()}setupHistoryController(){let o=this.gameData?.historyController;if(!o)return;o.addEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=o,this.historyHasNextPage=!!this.gameData?.historyController?.hasNextPage}cleanupHistoryController(){if(this.previousHistoryController)this.previousHistoryController.removeEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=void 0}async handleLoadMoreHistory(){if(this.isLoadingMoreHistory||!this.gameData?.historyController?.hasNextPage)return;this.isLoadingMoreHistory=!0;try{await this.gameData.historyController.loadMore()}finally{this.isLoadingMoreHistory=!1}}renderModalContent(o){if(!this.modalContent)return _;switch(this.modalContent.type){case"betResult":return $`
6387
6465
  <origami-bet-result-modal
6388
6466
  slot=${o}
6389
6467
  .betId=${this.modalContent.betId}
@@ -6588,7 +6666,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6588
6666
  </div>
6589
6667
  ${this.footerPosition==="below"?o:_}
6590
6668
  </div>
6591
- `}}d([ao({context:D,subscribe:!0})],pr.prototype,"gameData",void 0),d([S({type:String})],pr.prototype,"gameType",void 0),d([S({type:String,attribute:"footer-position"})],pr.prototype,"footerPosition",void 0),d([S({type:Boolean})],pr.prototype,"showFooter",void 0),d([fo("#alert-manager")],pr.prototype,"alertManager",void 0),d([fo(".game-layout-main")],pr.prototype,"gameLayoutMain",void 0),d([A()],pr.prototype,"modalContent",void 0),d([A()],pr.prototype,"modalNavigationStack",void 0),d([A()],pr.prototype,"isModalTransitioning",void 0),d([A()],pr.prototype,"historyHasNextPage",void 0),d([A()],pr.prototype,"isLoadingMoreHistory",void 0),pr=d([O("origami-game-layout")],pr);var Vn=X`
6669
+ `}}d([ao({context:D,subscribe:!0})],fr.prototype,"gameData",void 0),d([S({type:String})],fr.prototype,"gameType",void 0),d([S({type:String,attribute:"footer-position"})],fr.prototype,"footerPosition",void 0),d([S({type:Boolean})],fr.prototype,"showFooter",void 0),d([po("#alert-manager")],fr.prototype,"alertManager",void 0),d([po(".game-layout-main")],fr.prototype,"gameLayoutMain",void 0),d([A()],fr.prototype,"modalContent",void 0),d([A()],fr.prototype,"modalNavigationStack",void 0),d([A()],fr.prototype,"isModalTransitioning",void 0),d([A()],fr.prototype,"historyHasNextPage",void 0),d([A()],fr.prototype,"isLoadingMoreHistory",void 0),fr=d([O("origami-game-layout")],fr);var Vn=X`
6592
6670
  :host {
6593
6671
  display: none;
6594
6672
  }
@@ -6662,7 +6740,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6662
6740
  .stat-input[disabled] .hotkey-hint {
6663
6741
  opacity: 0.5;
6664
6742
  }
6665
- `;class gr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.disabled=!1;this._winChanceFocused=!1}static styles=[G,Vn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return po.getWinChance(this.selectedValue,this.diceDirection);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return po.getMultiplier(this.selectedValue,this.diceDirection);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleMultiplierBlur(){this.multiplierInputValue=po.getMultiplier(this.selectedValue,this.diceDirection)}handleWinChanceBlur(){this.winChanceInputValue=po.getWinChance(this.selectedValue,this.diceDirection)}updated(o){if(o.has("selectedValue")||o.has("diceDirection"))requestAnimationFrame(()=>{if(this.isConnected){if(!this.isMultiplierFocused())this._multiplierInputValue=po.getMultiplier(this.selectedValue,this.diceDirection);if(!this.isWinChanceFocused())this._winChanceInputValue=po.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=!po.isValidMultiplier(this.multiplierInputValue),a=!po.isValidWinChance(this.winChanceInputValue),t=i?q("errors.dice.multiplierRange",o):"",r=a?q("errors.dice.winChanceRange",o):"",e=this.isMultiplierFocused()&&i?t:"",n=this.isWinChanceFocused()&&a?r:"";return $`
6743
+ `;class gr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.disabled=!1;this._winChanceFocused=!1}static styles=[G,Vn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return fo.getWinChance(this.selectedValue,this.diceDirection);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return fo.getMultiplier(this.selectedValue,this.diceDirection);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleMultiplierBlur(){this.multiplierInputValue=fo.getMultiplier(this.selectedValue,this.diceDirection)}handleWinChanceBlur(){this.winChanceInputValue=fo.getWinChance(this.selectedValue,this.diceDirection)}updated(o){if(o.has("selectedValue")||o.has("diceDirection"))requestAnimationFrame(()=>{if(this.isConnected){if(!this.isMultiplierFocused())this._multiplierInputValue=fo.getMultiplier(this.selectedValue,this.diceDirection);if(!this.isWinChanceFocused())this._winChanceInputValue=fo.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=!fo.isValidMultiplier(this.multiplierInputValue),a=!fo.isValidWinChance(this.winChanceInputValue),t=i?q("errors.dice.multiplierRange",o):"",r=a?q("errors.dice.winChanceRange",o):"",e=this.isMultiplierFocused()&&i?t:"",n=this.isWinChanceFocused()&&a?r:"";return $`
6666
6744
  <origami-input
6667
6745
  tooltipOffset=${0}
6668
6746
  class="stat-input multiplier"
@@ -6735,7 +6813,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6735
6813
  ></lottie-icon>
6736
6814
  `:_}
6737
6815
  </origami-input>
6738
- `}}d([S({type:Number})],gr.prototype,"selectedValue",void 0),d([S({type:String})],gr.prototype,"diceDirection",void 0),d([S({type:Boolean})],gr.prototype,"disabled",void 0),d([ao({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([A()],gr.prototype,"_winChanceInputValue",void 0),d([A()],gr.prototype,"_multiplierInputValue",void 0),d([A()],gr.prototype,"_winChanceFocused",void 0),gr=d([O("origami-dice-content-bottom")],gr);var In=X`
6816
+ `}}d([S({type:Number})],gr.prototype,"selectedValue",void 0),d([S({type:String})],gr.prototype,"diceDirection",void 0),d([S({type:Boolean})],gr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],gr.prototype,"gameData",void 0),d([po(".multiplier")],gr.prototype,"multiplierInput",void 0),d([po(".win-chance")],gr.prototype,"winChanceInput",void 0),d([A()],gr.prototype,"_winChanceInputValue",void 0),d([A()],gr.prototype,"_multiplierInputValue",void 0),d([A()],gr.prototype,"_winChanceFocused",void 0),gr=d([O("origami-dice-content-bottom")],gr);var In=X`
6739
6817
  :host {
6740
6818
  display: flex;
6741
6819
  flex-direction: column;
@@ -6950,7 +7028,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6950
7028
  opacity: 0.8;
6951
7029
  }
6952
7030
  }
6953
- `;class vr extends B{constructor(){super(...arguments);this.history=[];this.gameType="MINES";this.animatingInIds=new Set}static styles=[G,Jn];betResultCache=Co.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 $`
7031
+ `;class mr extends B{constructor(){super(...arguments);this.history=[];this.gameType="MINES";this.animatingInIds=new Set}static styles=[G,Jn];betResultCache=Co.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 $`
6954
7032
  <div
6955
7033
  class=${to(i)}
6956
7034
  role="button"
@@ -6964,7 +7042,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
6964
7042
  </div>
6965
7043
  `}render(){return $`
6966
7044
  ${Ia(this.history,(o)=>o.id,(o)=>this.renderHistoryPill(o))}
6967
- `}}d([S({type:Array})],vr.prototype,"history",void 0),d([S({type:String})],vr.prototype,"gameType",void 0),d([A()],vr.prototype,"animatingInIds",void 0),vr=d([O("origami-history-pills")],vr);class mr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.isPlaying=!1;this.showDice=!0;this.isWin=!0;this.resultValue=null;this.history=[];this.isDesktop=!1}static styles=[G,qn];render(){if(this.isDesktop)return $`
7045
+ `}}d([S({type:Array})],mr.prototype,"history",void 0),d([S({type:String})],mr.prototype,"gameType",void 0),d([A()],mr.prototype,"animatingInIds",void 0),mr=d([O("origami-history-pills")],mr);class vr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.isPlaying=!1;this.showDice=!0;this.isWin=!0;this.resultValue=null;this.history=[];this.isDesktop=!1}static styles=[G,qn];render(){if(this.isDesktop)return $`
6968
7046
  <origami-history-pills
6969
7047
  data-is-desktop=${this.isDesktop}
6970
7048
  .gameType=${"DICE"}
@@ -7013,13 +7091,13 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
7013
7091
  .isRollLower=${this.diceDirection===xo.BELOW}
7014
7092
  ></origami-dice-slider>
7015
7093
  </div>
7016
- `}}d([S({type:Number})],mr.prototype,"selectedValue",void 0),d([S({type:String})],mr.prototype,"diceDirection",void 0),d([S({type:Boolean})],mr.prototype,"isPlaying",void 0),d([S({type:Boolean})],mr.prototype,"showDice",void 0),d([S({type:Boolean})],mr.prototype,"isWin",void 0),d([S({type:Number})],mr.prototype,"resultValue",void 0),d([S({type:Array})],mr.prototype,"history",void 0),d([S({type:Boolean})],mr.prototype,"isDesktop",void 0),mr=d([O("origami-dice-content")],mr);var ki=(o)=>{if(o===1)return"Draw";if(o>1)return"Win";return"Loss"};function bo(o){return new Promise((i)=>setTimeout(i,o))}class Eo extends B{constructor(){super(...arguments);this.manualOrAuto="Manual";this.hasPendingBet=!1;this.autobetInProgress=!1;this.autobetStopping=!1}static soundsToPreload=[];static styles=[G];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=P(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:q("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(P(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:q("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=P(r).dividedBy(100).plus(1);return P(t).multipliedBy(e).toFixed(2)}isPnLWithinLimits(o,i){let a=!P(o.stopOnLoss).eq(0)&&P(i).negated().gte(o.stopOnLoss),t=!P(o.stopOnProfit).eq(0)&&i.gte(o.stopOnProfit);return!a&&!t}updateHistoryWithBet(o){let i=this.gameData?.historyController;if(i&&o)i.addNewBet(o)}showError(o){let i=new CustomEvent("show-alert",{detail:{type:"error",message:o},bubbles:!1,composed:!0});this.renderRoot.querySelector("origami-game-layout")?.dispatchEvent(i)}}d([A()],Eo.prototype,"manualOrAuto",void 0),d([A()],Eo.prototype,"hasPendingBet",void 0),d([A()],Eo.prototype,"autobetInProgress",void 0),d([A()],Eo.prototype,"autobetStopping",void 0);var $n=X`
7094
+ `}}d([S({type:Number})],vr.prototype,"selectedValue",void 0),d([S({type:String})],vr.prototype,"diceDirection",void 0),d([S({type:Boolean})],vr.prototype,"isPlaying",void 0),d([S({type:Boolean})],vr.prototype,"showDice",void 0),d([S({type:Boolean})],vr.prototype,"isWin",void 0),d([S({type:Number})],vr.prototype,"resultValue",void 0),d([S({type:Array})],vr.prototype,"history",void 0),d([S({type:Boolean})],vr.prototype,"isDesktop",void 0),vr=d([O("origami-dice-content")],vr);var ki=(o)=>{if(o===1)return"Draw";if(o>1)return"Win";return"Loss"};function bo(o){return new Promise((i)=>setTimeout(i,o))}class Eo extends B{constructor(){super(...arguments);this.manualOrAuto="Manual";this.hasPendingBet=!1;this.autobetInProgress=!1;this.autobetStopping=!1}static soundsToPreload=[];static styles=[G];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=P(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:q("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(P(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:q("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=P(r).dividedBy(100).plus(1);return P(t).multipliedBy(e).toFixed(2)}isPnLWithinLimits(o,i){let a=!P(o.stopOnLoss).eq(0)&&P(i).negated().gte(o.stopOnLoss),t=!P(o.stopOnProfit).eq(0)&&i.gte(o.stopOnProfit);return!a&&!t}updateHistoryWithBet(o){let i=this.gameData?.historyController;if(i&&o)i.addNewBet(o)}showError(o){let i=new CustomEvent("show-alert",{detail:{type:"error",message:o},bubbles:!1,composed:!0});this.renderRoot.querySelector("origami-game-layout")?.dispatchEvent(i)}}d([A()],Eo.prototype,"manualOrAuto",void 0),d([A()],Eo.prototype,"hasPendingBet",void 0),d([A()],Eo.prototype,"autobetInProgress",void 0),d([A()],Eo.prototype,"autobetStopping",void 0);var $n=X`
7017
7095
  origami-dice-content-bottom[slot="content-bottom"] {
7018
7096
  display: grid;
7019
7097
  grid-template-columns: 1fr 1fr 1fr;
7020
7098
  gap: 8px;
7021
7099
  }
7022
- `;class Ja{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=Ja.getRandomValueInRange(0,1e4),e=0;if(r>t)if(a===xo.ABOVE)e=P(po.getMultiplier(t,a)).toNumber();else e=0;else if(a===xo.BELOW)e=P(po.getMultiplier(t,a)).toNumber();else e=0;let n=P(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"dice",currency:"USD",amount:i,payout:n,afterBalance:"1000",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,betAmount:i,payoutAmount:"0"},{id:crypto.randomUUID(),data:{DICE:{result:[r]}},type:"END_BET",actionIndex:1,betAmount:"0",payoutAmount:n}]};return await bo(250),{success:!0,data:s}}}class $a extends Eo{static styles=[...Eo.styles,$n];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===xo.ABOVE?xo.BELOW:xo.ABOVE,this.selectedValue=po.getSelectedValueFromRollOver(this.selectedValue)};constructor(){super();this.diceDirection=xo.ABOVE;this.selectedValue=5000;this.isManualPlaying=!1;this.showDice=!1;this.isWin=!0;this.resultValue=null;this.history=[];new Mo(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 Ja:new po(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(q("alerts.gameError",this.gameData?.language||"en"));let i={language:this.gameData.language,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?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);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===xo.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)}else this.showError(a.error);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:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.gameError",this.gameData?.language||"en")};let t=a.data;this.updateHistoryWithBet(t);let r=P(t.payout??0).minus(t.amount??0),e=ki(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:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("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&&po.isValidMultiplier(o.detail.multiplier))this.selectedValue=po.getSelectedValueFromMultiplier(i,this.diceDirection)};diceWinChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&po.isValidWinChance(o.detail.winChance))this.selectedValue=po.getSelectedValueFromWinChance(i,this.diceDirection)};render(){let o=P(po.getMultiplier(this.selectedValue,this.diceDirection)).multipliedBy(this.gameData.amount).minus(this.gameData.amount).toFixed(4),i=+po.getMultiplier(this.selectedValue,this.diceDirection),a=i<1.0102||Number.isNaN(i)||i>9900,t=this.gameData.mainWidth>=768;return $`
7100
+ `;class Ja{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=Ja.getRandomValueInRange(0,1e4),e=0;if(r>t)if(a===xo.ABOVE)e=P(fo.getMultiplier(t,a)).toNumber();else e=0;else if(a===xo.BELOW)e=P(fo.getMultiplier(t,a)).toNumber();else e=0;let n=P(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"dice",currency:"USD",amount:i,payout:n,afterBalance:"1000",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,betAmount:i,payoutAmount:"0"},{id:crypto.randomUUID(),data:{DICE:{result:[r]}},type:"END_BET",actionIndex:1,betAmount:"0",payoutAmount:n}]};return await bo(250),{success:!0,data:s}}}class $a extends Eo{static styles=[...Eo.styles,$n];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===xo.ABOVE?xo.BELOW:xo.ABOVE,this.selectedValue=fo.getSelectedValueFromRollOver(this.selectedValue)};constructor(){super();this.diceDirection=xo.ABOVE;this.selectedValue=5000;this.isManualPlaying=!1;this.showDice=!1;this.isWin=!0;this.resultValue=null;this.history=[];new Mo(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 Ja:new fo(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(q("alerts.gameError",this.gameData?.language||"en"));let i={language:this.gameData.language,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?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);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===xo.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)}else this.showError(a.error);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:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.gameError",this.gameData?.language||"en")};let t=a.data;this.updateHistoryWithBet(t);let r=P(t.payout??0).minus(t.amount??0),e=ki(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:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("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&&fo.isValidMultiplier(o.detail.multiplier))this.selectedValue=fo.getSelectedValueFromMultiplier(i,this.diceDirection)};diceWinChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&fo.isValidWinChance(o.detail.winChance))this.selectedValue=fo.getSelectedValueFromWinChance(i,this.diceDirection)};render(){let o=P(fo.getMultiplier(this.selectedValue,this.diceDirection)).multipliedBy(this.gameData.amount).minus(this.gameData.amount).toFixed(4),i=+fo.getMultiplier(this.selectedValue,this.diceDirection),a=i<1.0102||Number.isNaN(i)||i>9900,t=this.gameData.mainWidth>=768;return $`
7023
7101
  <origami-game-layout footer-position="below" .gameType=${"DICE"}>
7024
7102
  <origami-game-sidebar
7025
7103
  data-is-desktop=${t}
@@ -7076,7 +7154,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
7076
7154
  @dice-roll-over-toggle=${this.diceRollOverToggle}
7077
7155
  ></origami-dice-content>
7078
7156
  </origami-game-layout>
7079
- `}}d([A()],$a.prototype,"diceDirection",void 0),d([A()],$a.prototype,"selectedValue",void 0),d([A()],$a.prototype,"isManualPlaying",void 0),d([A()],$a.prototype,"showDice",void 0),d([A()],$a.prototype,"isWin",void 0),d([A()],$a.prototype,"resultValue",void 0),d([A()],$a.prototype,"history",void 0),d([fo("origami-dice-manual")],$a.prototype,"_diceManualEl",void 0),d([fo("origami-dice-auto")],$a.prototype,"_diceAutoEl",void 0),$a=d([O("origami-dice-game")],$a);var Ya=X`
7157
+ `}}d([A()],$a.prototype,"diceDirection",void 0),d([A()],$a.prototype,"selectedValue",void 0),d([A()],$a.prototype,"isManualPlaying",void 0),d([A()],$a.prototype,"showDice",void 0),d([A()],$a.prototype,"isWin",void 0),d([A()],$a.prototype,"resultValue",void 0),d([A()],$a.prototype,"history",void 0),d([po("origami-dice-manual")],$a.prototype,"_diceManualEl",void 0),d([po("origami-dice-auto")],$a.prototype,"_diceAutoEl",void 0),$a=d([O("origami-dice-game")],$a);var Ya=X`
7080
7158
  :host {
7081
7159
  display: flex;
7082
7160
  flex-direction: column-reverse;
@@ -7673,7 +7751,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
7673
7751
  .multipliersForSelectedTiles=${this.multipliersForSelectedTiles}
7674
7752
  ></origami-keno-content-bottom>
7675
7753
  </div>
7676
- `}}d([S({type:Array})],yr.prototype,"selectedTiles",void 0),d([S({type:Array})],yr.prototype,"resultTiles",void 0),d([S({type:Boolean})],yr.prototype,"isPlaying",void 0),d([S({type:Boolean})],yr.prototype,"gameOver",void 0),d([S({type:Number})],yr.prototype,"multipliersForSelectedTiles",void 0),d([S({type:Object})],yr.prototype,"payout",void 0),d([S({type:Boolean})],yr.prototype,"gameWinPopupShowing",void 0),d([S({type:Number})],yr.prototype,"multiplier",void 0),d([S({type:String})],yr.prototype,"risk",void 0),d([S({type:String})],yr.prototype,"betAmount",void 0),d([S({type:String})],yr.prototype,"betId",void 0),d([S({type:Boolean})],yr.prototype,"autoselectRunning",void 0),d([S({type:Boolean})],yr.prototype,"isDesktop",void 0),yr=d([O("origami-keno-content")],yr);var La=10,Cn=40;class Hr{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/keno"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}}var fl=10;var pl=[{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]}}];class ta{static generateRandomTiles(o,i=[]){let a=Array.from({length:Cn},(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,r=o.length,e=pl[r-1].payout;if(!e)return 0;let n=e[a];if(!n||t>=n.length)return 0;return n[t]||0}startBet=async(o)=>{let{amount:i,riskLevel:a,selectedNumbers:t}=o,r=ta.generateRandomTiles(fl),e=ta.calculateMultiplier(t,r,a),n=P(i).multipliedBy(e).toString(),l={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"KENO",currency:o.currency,amount:i,payout:n,afterBalance:"1000",multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{KENO:{selectedNumbers:t,riskLevel:a}},type:"START_BET",actionIndex:0,betAmount:i,payoutAmount:null},{id:crypto.randomUUID(),data:{KENO:{result:r}},type:"END_BET",actionIndex:1,betAmount:null,payoutAmount:n}]};return await bo(250),{success:!0,data:l}}}class Ca extends Eo{getDisplayMultiplier(o,i,a){return P(o).isZero()?Ka.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 ta:new Hr(this.gameData.authToken,this.gameData.baseUrl)}async kenoPlay(){if(this.gameWinPopupShowing=!1,this.selectedTiles.length===0){alert(q("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){this.showError(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={language:this.gameData.language,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=P(t.data.payout??0),this.addToHistory(P(t.data.multiplier??0).toNumber(),this.gameWinPopupShowing,t.data.id??""),this.updateHistoryWithBet(t.data);let n=this.isDemoMode?P(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):P(t.data.afterBalance??0);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:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.keno.selectTileToAutobet",this.gameData?.language||"en")};let a={language:this.gameData.language,amount:i,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(!t.success)return this.showError(t.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:t.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};let r=t.data,e=P(r.payout??0).minus(r.amount??0),n=ki(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=P(r.payout??0),this.addToHistory(Number(r.multiplier??0),this.gameWinPopupShowing,r.id??""),this.updateHistoryWithBet(r),await this.ensureMinimumDisplayTime(this.gameWinPopupShowing,300,300),await bo(this.getAutobetDelay()),this.gameWinPopupShowing=!1;let g=this.isDemoMode?P(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):P(t.data.afterBalance??0);return this.gameData.updateBalance(g),{pnl:e,gameOutcome:n,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("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<La)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>=La)this.selectedTiles=[];let o=La-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 $`
7754
+ `}}d([S({type:Array})],yr.prototype,"selectedTiles",void 0),d([S({type:Array})],yr.prototype,"resultTiles",void 0),d([S({type:Boolean})],yr.prototype,"isPlaying",void 0),d([S({type:Boolean})],yr.prototype,"gameOver",void 0),d([S({type:Number})],yr.prototype,"multipliersForSelectedTiles",void 0),d([S({type:Object})],yr.prototype,"payout",void 0),d([S({type:Boolean})],yr.prototype,"gameWinPopupShowing",void 0),d([S({type:Number})],yr.prototype,"multiplier",void 0),d([S({type:String})],yr.prototype,"risk",void 0),d([S({type:String})],yr.prototype,"betAmount",void 0),d([S({type:String})],yr.prototype,"betId",void 0),d([S({type:Boolean})],yr.prototype,"autoselectRunning",void 0),d([S({type:Boolean})],yr.prototype,"isDesktop",void 0),yr=d([O("origami-keno-content")],yr);var La=10,Cn=40;class Hr{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/keno"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}}var pl=10;var fl=[{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]}}];class ta{static generateRandomTiles(o,i=[]){let a=Array.from({length:Cn},(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,r=o.length,e=fl[r-1].payout;if(!e)return 0;let n=e[a];if(!n||t>=n.length)return 0;return n[t]||0}startBet=async(o)=>{let{amount:i,riskLevel:a,selectedNumbers:t}=o,r=ta.generateRandomTiles(pl),e=ta.calculateMultiplier(t,r,a),n=P(i).multipliedBy(e).toString(),l={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"KENO",currency:o.currency,amount:i,payout:n,afterBalance:"1000",multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{KENO:{selectedNumbers:t,riskLevel:a}},type:"START_BET",actionIndex:0,betAmount:i,payoutAmount:null},{id:crypto.randomUUID(),data:{KENO:{result:r}},type:"END_BET",actionIndex:1,betAmount:null,payoutAmount:n}]};return await bo(250),{success:!0,data:l}}}class Ca extends Eo{getDisplayMultiplier(o,i,a){return P(o).isZero()?Ka.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 ta:new Hr(this.gameData.authToken,this.gameData.baseUrl)}async kenoPlay(){if(this.gameWinPopupShowing=!1,this.selectedTiles.length===0){alert(q("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){this.showError(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={language:this.gameData.language,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=P(t.data.payout??0),this.addToHistory(P(t.data.multiplier??0).toNumber(),this.gameWinPopupShowing,t.data.id??""),this.updateHistoryWithBet(t.data);let n=this.isDemoMode?P(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):P(t.data.afterBalance??0);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:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.keno.selectTileToAutobet",this.gameData?.language||"en")};let a={language:this.gameData.language,amount:i,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(!t.success)return this.showError(t.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:t.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};let r=t.data,e=P(r.payout??0).minus(r.amount??0),n=ki(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((p)=>this.selectedTiles.includes(p)))this.gameData?.soundController?.play("keno-gem").catch((p)=>console.error(p));else this.gameData?.soundController?.play("secondary").catch((p)=>console.error(p));this.resultTiles=[...h]},async()=>{for(let H of h){if(this.selectedTiles.includes(H))this.gameData?.soundController?.play("keno-gem").catch((p)=>console.error(p));else this.gameData?.soundController?.play("secondary").catch((p)=>console.error(p));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=P(r.payout??0),this.addToHistory(Number(r.multiplier??0),this.gameWinPopupShowing,r.id??""),this.updateHistoryWithBet(r),await this.ensureMinimumDisplayTime(this.gameWinPopupShowing,300,300),await bo(this.getAutobetDelay()),this.gameWinPopupShowing=!1;let g=this.isDemoMode?P(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):P(t.data.afterBalance??0);return this.gameData.updateBalance(g),{pnl:e,gameOutcome:n,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("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<La)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>=La)this.selectedTiles=[];let o=La-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 $`
7677
7755
  <origami-game-layout footer-position="below" .gameType=${"KENO"}>
7678
7756
  <origami-game-sidebar
7679
7757
  data-is-desktop=${a}
@@ -7745,7 +7823,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
7745
7823
  ></origami-keno-content>
7746
7824
  ${_}
7747
7825
  </origami-game-layout>
7748
- `}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=ro.CLASSIC;this.autoselectRunning=!1;this.multiplier=0;this.hadTilesBeforeAutopick=!1;this.showResetAnimation=!0;new Mo(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([A()],Ca.prototype,"isManualPlaying",void 0),d([A()],Ca.prototype,"history",void 0),d([A()],Ca.prototype,"selectedTiles",void 0),d([A()],Ca.prototype,"resultTiles",void 0),d([S({type:Boolean})],Ca.prototype,"gameWinPopupShowing",void 0),d([A()],Ca.prototype,"gameOver",void 0),d([A()],Ca.prototype,"payout",void 0),d([A()],Ca.prototype,"kenoRisk",void 0),d([A()],Ca.prototype,"autoselectRunning",void 0),d([A()],Ca.prototype,"multiplier",void 0),d([A()],Ca.prototype,"hadTilesBeforeAutopick",void 0),d([A()],Ca.prototype,"betId",void 0),d([A()],Ca.prototype,"showResetAnimation",void 0),d([fo("origami-keno-manual")],Ca.prototype,"_kenoManualEl",void 0),d([fo("origami-keno-auto")],Ca.prototype,"_kenoAutoEl",void 0),Ca=d([O("origami-keno-game")],Ca);var Fn=X`
7826
+ `}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=ro.CLASSIC;this.autoselectRunning=!1;this.multiplier=0;this.hadTilesBeforeAutopick=!1;this.showResetAnimation=!0;new Mo(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([A()],Ca.prototype,"isManualPlaying",void 0),d([A()],Ca.prototype,"history",void 0),d([A()],Ca.prototype,"selectedTiles",void 0),d([A()],Ca.prototype,"resultTiles",void 0),d([S({type:Boolean})],Ca.prototype,"gameWinPopupShowing",void 0),d([A()],Ca.prototype,"gameOver",void 0),d([A()],Ca.prototype,"payout",void 0),d([A()],Ca.prototype,"kenoRisk",void 0),d([A()],Ca.prototype,"autoselectRunning",void 0),d([A()],Ca.prototype,"multiplier",void 0),d([A()],Ca.prototype,"hadTilesBeforeAutopick",void 0),d([A()],Ca.prototype,"betId",void 0),d([A()],Ca.prototype,"showResetAnimation",void 0),d([po("origami-keno-manual")],Ca.prototype,"_kenoManualEl",void 0),d([po("origami-keno-auto")],Ca.prototype,"_kenoAutoEl",void 0),Ca=d([O("origami-keno-game")],Ca);var Fn=X`
7749
7827
  :host {
7750
7828
  display: flex;
7751
7829
  flex-direction: column;
@@ -7934,7 +8012,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
7934
8012
  ></lottie-icon>
7935
8013
  `:_}
7936
8014
  </origami-input>
7937
- `}}d([S({type:Number})],Kr.prototype,"targetMultiplier",void 0),d([S({type:Boolean,reflect:!0})],Kr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Kr.prototype,"gameData",void 0),d([A()],Kr.prototype,"winChanceInputFocused",void 0),d([A()],Kr.prototype,"multiplierInputFocused",void 0),d([A()],Kr.prototype,"_winChanceInputValue",void 0),d([A()],Kr.prototype,"_multiplierInputValue",void 0),d([mo("targetMultiplier")],Kr.prototype,"targetMultiplierChanged",null),Kr=d([O("origami-limbo-content-bottom")],Kr);class Rr extends B{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=[G,Qn];render(){if(this.isDesktop)return $`
8015
+ `}}d([S({type:Number})],Kr.prototype,"targetMultiplier",void 0),d([S({type:Boolean,reflect:!0})],Kr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Kr.prototype,"gameData",void 0),d([A()],Kr.prototype,"winChanceInputFocused",void 0),d([A()],Kr.prototype,"multiplierInputFocused",void 0),d([A()],Kr.prototype,"_winChanceInputValue",void 0),d([A()],Kr.prototype,"_multiplierInputValue",void 0),d([vo("targetMultiplier")],Kr.prototype,"targetMultiplierChanged",null),Kr=d([O("origami-limbo-content-bottom")],Kr);class Rr extends B{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=[G,Qn];render(){if(this.isDesktop)return $`
7938
8016
  <origami-history-pills
7939
8017
  data-is-desktop=${this.isDesktop}
7940
8018
  .gameType=${"limbo"}
@@ -8040,7 +8118,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
8040
8118
  @limbo-multiplier-animation-end=${this.multiplierAnimationEnd}
8041
8119
  ></origami-limbo-content>
8042
8120
  </origami-game-layout>
8043
- `}}d([A()],Qa.prototype,"targetMultiplier",void 0),d([A()],Qa.prototype,"resultMultiplier",void 0),d([A()],Qa.prototype,"isManualPlaying",void 0),d([A()],Qa.prototype,"isWin",void 0),d([A()],Qa.prototype,"history",void 0),d([A()],Qa.prototype,"betTargetMultiplier",void 0),d([A()],Qa.prototype,"betId",void 0),d([fo("origami-limbo-manual")],Qa.prototype,"_limboManualEl",void 0),d([fo("origami-limbo-auto")],Qa.prototype,"_limboAutoEl",void 0),Qa=d([O("origami-limbo-game")],Qa);class co{static activeBet=null;static minePositions=[];static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}static generateMinePositions(o){let i=[];while(i.length<o){let a=co.getRandomValueInRange(0,Ao-1);if(!i.includes(a))i.push(a)}return i}static createBetAction(o,i,a,t=null,r=null){return{id:crypto.randomUUID(),data:{MINES:i},type:o,actionIndex:a,betAmount:t,payoutAmount:r}}static createMockBetResult(o,i,a,t=[],r=!1,e){let n=co.activeBet,s=n?.betActions||[],l=t.some((u)=>co.minePositions.includes(u)),h=t.filter((u)=>!co.minePositions.includes(u)).length,g=[...s],H=n?.nonce||Math.floor(Math.random()*1000),f=n?.randomValue||null,y=n?.proof||null;if(!n)g=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:[],hasCashedOut:!1},0,i,null)];else if(e==="INTERMEDIATE_NON_BET_ACTION"){if(g.push(co.createBetAction("INTERMEDIATE_NON_BET_ACTION",{minesCount:a,selectedTiles:t,hasCashedOut:!1},g.length,null,null)),l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,"0"))}else if(r&&!l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,null));if(r||l)f="b90c047b9c51db60bcd82590c7e754f50c6f626e0a594f12535d7f345422f90063a8511ed7aec0e5a67d3f399229d64e2381624ee6994c7a2fc0532f4274f7a3",y="d026116a800d0e90d6f9b2c189de0e9c8f9afe292200c5d9392ff5fa0ce14e387bfe171dc8c755d75bdf01a37771b27eec056e69527d369e444c665b2264d6c1477612786302cfc48bee709733d65d0e";let z=P(0);if(h>0&&!l)if(a===0)z=P(0);else if(h===0)z=P(1);else{let u=Math.min(Ao-h,a);z=Ni.calculateMultiplierBN(h,u,Xi)}let v=null,U=null,b=null;if(r||l)if(!l&&h>0)v=P(i).multipliedBy(z).toFixed(8),b=z.toString(),U=P(1000).plus(v).minus(i).toFixed(8);else v="0",b="0",U=P(1000).minus(i).toFixed(8);else if(!n)U=P(1000).minus(i).toFixed(8);return{id:o,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:"USD",amount:i,payout:v,afterBalance:U,multiplier:b,clientSeed:"mock-seed",randomValue:f,proof:y,nonce:H,betActions:g}}async startManualBet(o){let i=crypto.randomUUID();co.minePositions=co.generateMinePositions(o.minesCount);let a=co.createMockBetResult(i,o.amount,o.minesCount,[],!1);return co.activeBet=a,await bo(250),{success:!0,data:a}}async getActiveBet(){if(!co.activeBet)return{success:!1,error:"No active bet"};return await bo(250),{success:!0,data:co.activeBet}}async selectTile(o){if(!co.activeBet)return{success:!1,error:"No active bet"};let i=co.activeBet,t=[...Wo.deriveSelectedTiles(i.betActions),...o.selectedTiles],e=i.betActions.find((l)=>l.type==="START_BET")?.data.MINES?.minesCount??0,n=o.selectedTiles.some((l)=>co.minePositions.includes(l)),s=co.createMockBetResult(i.id,i.amount,e,t,!1,"INTERMEDIATE_NON_BET_ACTION");return co.activeBet=n?null:s,await bo(250),{success:!0,data:s}}async cashout(){if(!co.activeBet)return{success:!1,error:"No active bet"};let o=co.activeBet,i=Wo.deriveSelectedTiles(o.betActions),t=o.betActions.find((n)=>n.type==="START_BET")?.data.MINES?.minesCount??0,r=co.createMockBetResult(o.id,o.amount,t,i,!0),e=r.betActions[r.betActions.length-1];if(e&&e.type==="END_BET")e.payoutAmount=r.payout;return co.activeBet=null,await bo(250),{success:!0,data:r}}async autobetPlay(o){let i=crypto.randomUUID(),a=o.minesCount??Ci;co.minePositions=co.generateMinePositions(a);let t=o.selectedTiles.some((g)=>co.minePositions.includes(g)),r=o.selectedTiles.filter((g)=>!co.minePositions.includes(g)).length,e=P(0);if(r>0&&!t)if(a===0)e=P(0);else if(r===0)e=P(1);else{let g=Math.min(Ao-r,a);e=Ni.calculateMultiplierBN(r,g,Xi)}let n=t?"0":P(o.amount).multipliedBy(e).toFixed(8),s=t?"0":e.toString(),l=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:o.selectedTiles,hasCashedOut:!0},0,o.amount,null),co.createBetAction("END_BET",{result:co.minePositions},1,null,n)],h={id:i,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:o.currency,amount:o.amount,payout:n,afterBalance:P(1000).plus(n).minus(o.amount).toFixed(8),multiplier:s,clientSeed:"mock-seed",randomValue:"bccc6bac05bf21a1de35b850f80abfd11407025b973e361f2d9c6ec7d51be44693dd4df4a04c201ebdbfb791d03d65e9414263dcca54772071ba0509fdfe82d0",proof:"4a24bc6e6e8194857d3e4f759781cea89827daf8bca1dd0eb8cfb887dc818b4c6527687647b9c5c89c4e72c8f587777bd9ae3fb6cbce88d3e3da726f95375bb8a6e3ed03194fbc4d1f22af95f1f7820a",nonce:Math.floor(Math.random()*1000),betActions:l};return await bo(250),{success:!0,data:h}}}var An=X`
8121
+ `}}d([A()],Qa.prototype,"targetMultiplier",void 0),d([A()],Qa.prototype,"resultMultiplier",void 0),d([A()],Qa.prototype,"isManualPlaying",void 0),d([A()],Qa.prototype,"isWin",void 0),d([A()],Qa.prototype,"history",void 0),d([A()],Qa.prototype,"betTargetMultiplier",void 0),d([A()],Qa.prototype,"betId",void 0),d([po("origami-limbo-manual")],Qa.prototype,"_limboManualEl",void 0),d([po("origami-limbo-auto")],Qa.prototype,"_limboAutoEl",void 0),Qa=d([O("origami-limbo-game")],Qa);class co{static activeBet=null;static minePositions=[];static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}static generateMinePositions(o){let i=[];while(i.length<o){let a=co.getRandomValueInRange(0,Ao-1);if(!i.includes(a))i.push(a)}return i}static createBetAction(o,i,a,t=null,r=null){return{id:crypto.randomUUID(),data:{MINES:i},type:o,actionIndex:a,betAmount:t,payoutAmount:r}}static createMockBetResult(o,i,a,t=[],r=!1,e){let n=co.activeBet,s=n?.betActions||[],l=t.some((u)=>co.minePositions.includes(u)),h=t.filter((u)=>!co.minePositions.includes(u)).length,g=[...s],H=n?.nonce||Math.floor(Math.random()*1000),p=n?.randomValue||null,y=n?.proof||null;if(!n)g=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:[],hasCashedOut:!1},0,i,null)];else if(e==="INTERMEDIATE_NON_BET_ACTION"){if(g.push(co.createBetAction("INTERMEDIATE_NON_BET_ACTION",{minesCount:a,selectedTiles:t,hasCashedOut:!1},g.length,null,null)),l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,"0"))}else if(r&&!l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,null));if(r||l)p="b90c047b9c51db60bcd82590c7e754f50c6f626e0a594f12535d7f345422f90063a8511ed7aec0e5a67d3f399229d64e2381624ee6994c7a2fc0532f4274f7a3",y="d026116a800d0e90d6f9b2c189de0e9c8f9afe292200c5d9392ff5fa0ce14e387bfe171dc8c755d75bdf01a37771b27eec056e69527d369e444c665b2264d6c1477612786302cfc48bee709733d65d0e";let z=P(0);if(h>0&&!l)if(a===0)z=P(0);else if(h===0)z=P(1);else{let u=Math.min(Ao-h,a);z=Ni.calculateMultiplierBN(h,u,Xi)}let m=null,U=null,b=null;if(r||l)if(!l&&h>0)m=P(i).multipliedBy(z).toFixed(8),b=z.toString(),U=P(1000).plus(m).minus(i).toFixed(8);else m="0",b="0",U=P(1000).minus(i).toFixed(8);else if(!n)U=P(1000).minus(i).toFixed(8);return{id:o,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:"USD",amount:i,payout:m,afterBalance:U,multiplier:b,clientSeed:"mock-seed",randomValue:p,proof:y,nonce:H,betActions:g}}async startManualBet(o){let i=crypto.randomUUID();co.minePositions=co.generateMinePositions(o.minesCount);let a=co.createMockBetResult(i,o.amount,o.minesCount,[],!1);return co.activeBet=a,await bo(250),{success:!0,data:a}}async getActiveBet(){if(!co.activeBet)return{success:!1,error:"No active bet"};return await bo(250),{success:!0,data:co.activeBet}}async selectTile(o){if(!co.activeBet)return{success:!1,error:"No active bet"};let i=co.activeBet,t=[...Wo.deriveSelectedTiles(i.betActions),...o.selectedTiles],e=i.betActions.find((l)=>l.type==="START_BET")?.data.MINES?.minesCount??0,n=o.selectedTiles.some((l)=>co.minePositions.includes(l)),s=co.createMockBetResult(i.id,i.amount,e,t,!1,"INTERMEDIATE_NON_BET_ACTION");return co.activeBet=n?null:s,await bo(250),{success:!0,data:s}}async cashout(){if(!co.activeBet)return{success:!1,error:"No active bet"};let o=co.activeBet,i=Wo.deriveSelectedTiles(o.betActions),t=o.betActions.find((n)=>n.type==="START_BET")?.data.MINES?.minesCount??0,r=co.createMockBetResult(o.id,o.amount,t,i,!0),e=r.betActions[r.betActions.length-1];if(e&&e.type==="END_BET")e.payoutAmount=r.payout;return co.activeBet=null,await bo(250),{success:!0,data:r}}async autobetPlay(o){let i=crypto.randomUUID(),a=o.minesCount??Ci;co.minePositions=co.generateMinePositions(a);let t=o.selectedTiles.some((g)=>co.minePositions.includes(g)),r=o.selectedTiles.filter((g)=>!co.minePositions.includes(g)).length,e=P(0);if(r>0&&!t)if(a===0)e=P(0);else if(r===0)e=P(1);else{let g=Math.min(Ao-r,a);e=Ni.calculateMultiplierBN(r,g,Xi)}let n=t?"0":P(o.amount).multipliedBy(e).toFixed(8),s=t?"0":e.toString(),l=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:o.selectedTiles,hasCashedOut:!0},0,o.amount,null),co.createBetAction("END_BET",{result:co.minePositions},1,null,n)],h={id:i,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:o.currency,amount:o.amount,payout:n,afterBalance:P(1000).plus(n).minus(o.amount).toFixed(8),multiplier:s,clientSeed:"mock-seed",randomValue:"bccc6bac05bf21a1de35b850f80abfd11407025b973e361f2d9c6ec7d51be44693dd4df4a04c201ebdbfb791d03d65e9414263dcca54772071ba0509fdfe82d0",proof:"4a24bc6e6e8194857d3e4f759781cea89827daf8bca1dd0eb8cfb887dc818b4c6527687647b9c5c89c4e72c8f587777bd9ae3fb6cbce88d3e3da726f95375bb8a6e3ed03194fbc4d1f22af95f1f7820a",nonce:Math.floor(Math.random()*1000),betActions:l};return await bo(250),{success:!0,data:h}}}var An=X`
8044
8122
  :host {
8045
8123
  --game-content-desktop-height: 592.78px;
8046
8124
  }
@@ -8122,4 +8200,4 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames
8122
8200
  inModal
8123
8201
  ></origami-game-win-popup>`:_}
8124
8202
  </origami-game-layout>
8125
- `}}d([A()],ja.prototype,"minesCount",void 0),d([A()],ja.prototype,"autobetSelectedTiles",void 0),d([A()],ja.prototype,"minesData",void 0),d([A()],ja.prototype,"isLoading",void 0),d([A()],ja.prototype,"isSelectingRandomTile",void 0),d([A()],ja.prototype,"history",void 0),d([A()],ja.prototype,"isCheckingForSession",void 0),d([A()],ja.prototype,"loadingTiles",void 0),d([fo("origami-mines-manual")],ja.prototype,"_minesManualEl",void 0),d([fo("origami-mines-auto")],ja.prototype,"_minesAutoEl",void 0),d([mo("manualOrAuto")],ja.prototype,"onManualOrAutoChange",null),d([mo("minesCount")],ja.prototype,"onMinesCountChange",null),d([mo("autobetInProgress")],ja.prototype,"onAutobetChange",null),ja=d([O("origami-mines-game")],ja);export{Zt as translations,q as getTranslation,ja as MinesGame,Qa as LimboGame,Ca as KenoGame,ga as GameProviderWrapper,$a as DiceGame,ba as BetDetailsComponent};
8203
+ `}}d([A()],ja.prototype,"minesCount",void 0),d([A()],ja.prototype,"autobetSelectedTiles",void 0),d([A()],ja.prototype,"minesData",void 0),d([A()],ja.prototype,"isLoading",void 0),d([A()],ja.prototype,"isSelectingRandomTile",void 0),d([A()],ja.prototype,"history",void 0),d([A()],ja.prototype,"isCheckingForSession",void 0),d([A()],ja.prototype,"loadingTiles",void 0),d([po("origami-mines-manual")],ja.prototype,"_minesManualEl",void 0),d([po("origami-mines-auto")],ja.prototype,"_minesAutoEl",void 0),d([vo("manualOrAuto")],ja.prototype,"onManualOrAutoChange",null),d([vo("minesCount")],ja.prototype,"onMinesCountChange",null),d([vo("autobetInProgress")],ja.prototype,"onAutobetChange",null),ja=d([O("origami-mines-game")],ja);export{Zt as translations,q as getTranslation,ja as MinesGame,Qa as LimboGame,Ca as KenoGame,ga as GameProviderWrapper,$a as DiceGame,ba as BetDetailsComponent};