choco-one-click-payment 1.1.57 → 1.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.choco-one-click-widget{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999999;font-family:Sirius,sans-serif;--choco-widget-accent-color: #2F2F2F;pointer-events:none}.choco-one-click-widget--embedded{position:static;top:auto;left:auto;right:auto;bottom:auto;z-index:auto;pointer-events:auto;min-height:1px}.choco-one-click-widget--embedded .choco-widget-bottom-bar{position:static;box-shadow:none;border-radius:24px}.choco-one-click-widget--embedded .choco-widget-payment-sheet{position:fixed}.choco-one-click-widget *{box-sizing:border-box;font-family:Sirius,sans-serif}.choco-one-click-widget .choco-widget-bottom-bar{opacity:0;transform:translateY(16px)}.choco-one-click-widget .choco-widget-balance-section,.choco-one-click-widget .choco-widget-payment-info{opacity:0;transform:translateY(8px)}.choco-one-click-widget--visible .choco-widget-bottom-bar,.choco-one-click-widget--visible .choco-widget-balance-section,.choco-one-click-widget--visible .choco-widget-payment-info{opacity:1;transform:translateY(0)}.choco-widget-bottom-bar{position:absolute;bottom:0;left:0;right:0;background:#fff;border-radius:24px 24px 0 0;padding:16px;box-shadow:0 -4px 20px #0000001a;transition:transform .24s cubic-bezier(.4,0,.2,1),opacity .2s ease;pointer-events:auto}.choco-widget-payment-info{display:flex;flex-direction:column;gap:12px;align-items:stretch;transition:transform .22s ease,opacity .2s ease}.choco-widget-payment-info-main{display:flex;gap:12px;align-items:center}.choco-widget-payment-method{gap:12px;background:#f1f2f7;border-radius:16px;padding:5px 8px;cursor:pointer;transition:background .2s ease;border:none;font-family:inherit;text-align:left;width:100%;position:relative;height:46px}.choco-widget-payment-method:disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.choco-widget-payment-method.google_pay,.choco-widget-payment-method.apple_pay{max-width:140px}.choco-widget-method-icon-placeholder{font-size:24px}.choco-widget-method-details{flex:1}.choco-widget-method-label{font-size:14px;color:#000}.choco-widget-method-value{font-size:14px;font-weight:600;color:#000;display:flex;align-items:center;gap:4px}.choco-widget-method-icon-wrapper svg{display:block;width:100%;max-width:29px;max-height:18px;margin-top:2px}.choco-widget-method-icon-wrapper:empty{display:none}.choco-widget-method-icon-wrapper.google_pay svg{height:17px;max-width:35px;border:1px solid #3C4043;padding:3px 4px 2px;border-radius:8px}.choco-widget-method-name{font-size:14px;font-weight:700}.choco-widget-method-name.google_pay,.choco-widget-method-name.apple_pay{display:none}.choco-widget-method-chevron{position:absolute;right:5px;top:0;bottom:0;margin:auto 0;width:24px;height:24px}.choco-widget-freedom-card-btn{width:100%;height:46px;padding:0 13px;background:linear-gradient(to right,#17678d,#00ca82);border:none;border-radius:16px;font-size:16px;font-weight:700;font-family:inherit;color:#fff;cursor:pointer}.choco-widget-freedom-card-btn:disabled{opacity:.5;pointer-events:none}.choco-widget-pay-button{background:var(--choco-widget-accent-color);color:#fff;border:none;border-radius:16px;height:46px;padding:0 16px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap;width:100%;overflow:hidden}.choco-widget-pay-button--loading{cursor:not-allowed;pointer-events:none;position:relative}.choco-widget-pay-button--loading:before{content:"";display:block;width:16px;height:16px;border:2px solid #ffffff;border-top:2px solid transparent;border-radius:50%;animation:choco-spin 1s linear infinite;position:absolute;left:0;right:0;margin:0 auto;z-index:2}.choco-widget-pay-button--loading:after{content:"";display:block;width:100%;height:100%;background:#2f2f2f;position:absolute;left:0;top:0}.choco-widget-pay-button:disabled{opacity:.5;pointer-events:none}.choco-widget-pay-button--hidden{display:none}.choco-widget-google-pay-amount{min-width:124px;height:46px;display:flex;flex-direction:column;justify-content:center;text-align:right;width:100%}.choco-widget-google-pay-amount--hidden{display:none}.choco-widget-google-pay-amount-label{font-size:20px;font-weight:700;line-height:24px;color:#1d1d1d}.choco-widget-google-pay-amount-value{font-size:14px;line-height:18px;color:#1d1d1d;white-space:nowrap;opacity:.5}.choco-widget-google-pay-amount-value--hidden{display:none}.choco-widget-google-pay-amount-value-number{text-decoration:line-through}.choco-widget-google-pay-row--hidden{display:none}.choco-widget-wallet-blocked{pointer-events:none;opacity:.6}.choco-widget-google-pay-button-slot{width:100%}.choco-widget-google-pay-button-slot>button{width:100%!important;height:52px;min-height:52px;border-radius:12px!important;font-size:16px!important}.choco-widget-apple-pay-row--hidden{display:none}.choco-widget-apple-pay-button-slot{width:100%}.choco-widget-apple-pay-button-wrapper{position:relative;width:100%;height:52px}.choco-widget-apple-pay-button{width:100%;height:52px;min-height:52px;border:0;border-radius:12px;cursor:pointer;background:#000;color:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px}.choco-widget-apple-pay-button--native{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:52px;opacity:.01;z-index:2}.choco-widget-apple-pay-button-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:8px;background:#000;border-radius:12px;pointer-events:none;z-index:1}.choco-widget-apple-pay-button-text{font-size:16px;line-height:20px;font-weight:600;color:#fff}.choco-widget-apple-pay-button-icon{display:inline-flex;align-items:center;justify-content:center}.choco-widget-payment-sheet{position:absolute;bottom:0;left:0;right:0;top:0;background:#00000080;display:flex;align-items:flex-end;opacity:0;pointer-events:none;transition:opacity .3s ease}.choco-widget-payment-sheet--open{opacity:1;pointer-events:auto}.choco-widget-payment-sheet--open .choco-widget-sheet-content{transform:translateY(0)}.choco-widget-sheet-content{background:#fff;border-radius:24px 24px 0 0;width:100%;max-height:70vh;overflow-y:auto;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);padding:8px 16px 16px;position:relative;will-change:transform}.choco-widget-sheet-content--dragging{transition:none}.choco-widget-sheet-grabber{flex-shrink:0;display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none;margin-bottom:8px;-webkit-user-select:none;user-select:none}.choco-widget-sheet-grabber:active{cursor:grabbing}.choco-widget-sheet-grabber:before{content:"";width:72px;height:6px;background:#e5e5e7;border-radius:42px}.choco-widget-sheet-content{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.choco-widget-sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;position:relative}.choco-widget-sheet-title{font-size:20px;font-weight:700;color:#000;margin:0;flex:1;text-align:center}.choco-widget-payment-sheet--edit .choco-widget-sheet-title{padding-left:30px}.choco-widget-payment-sheet--no-cards .choco-widget-sheet-title{padding-right:30px}.choco-widget-payment-sheet--delete-confirm .choco-widget-sheet-title{padding:0}.choco-widget-sheet-button{background:none;border:none;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.choco-widget-sheet-button svg{color:#000}.choco-widget-sheet-delete-confirm{display:none;padding-top:16px}.choco-widget-payment-sheet--delete-confirm .choco-widget-payment-methods,.choco-widget-payment-sheet--delete-confirm .choco-widget-cashback-section{display:none!important}.choco-widget-payment-sheet--delete-confirm .choco-widget-sheet-delete-confirm{display:block}.choco-widget-sheet-delete-confirm-text{margin:0 0 24px;font-size:16px;line-height:1.4;color:#242424;text-align:center}.choco-widget-sheet-delete-confirm-actions{display:flex;gap:12px}.choco-widget-delete-confirm-btn{flex:1;padding:14px 20px;font-size:16px;font-weight:600;font-family:inherit;border-radius:16px;border:none;cursor:pointer;transition:background .2s ease,opacity .2s ease}.choco-widget-delete-confirm-btn--cancel{background:#f1f2f7;color:#242424}.choco-widget-delete-confirm-btn--delete{background:var(--choco-widget-accent-color);color:#fff}.choco-widget-delete-confirm-btn--loading{cursor:not-allowed;pointer-events:none;position:relative}.choco-widget-sheet-delete-confirm-actions.choco-widget-sheet-delete-confirm-actions--loading .choco-widget-delete-confirm-btn{pointer-events:none;cursor:not-allowed;opacity:.7}.choco-widget-delete-confirm-btn--delete.choco-widget-delete-confirm-btn--loading:before{content:"";display:block;width:16px;height:16px;border:2px solid #ffffff;border-top:2px solid transparent;border-radius:50%;animation:choco-spin 1s linear infinite;position:absolute;left:0;right:0;margin:0 auto;z-index:2}.choco-widget-delete-confirm-btn--delete.choco-widget-delete-confirm-btn--loading:after{content:"";display:block;width:100%;height:100%;background:#cc3434;position:absolute;left:0;top:0;border-radius:16px}.choco-widget-add-card-sheet{align-items:stretch}.choco-widget-add-card-sheet .choco-widget-add-card-sheet-content{max-height:none;height:100%;display:flex;flex-direction:column;transform:none;border-radius:0;padding:0}.choco-widget-add-card-sheet--open .choco-widget-add-card-sheet-content{transform:none}.choco-widget-add-card-sheet .choco-widget-sheet-header{flex-shrink:0;margin-bottom:0;padding:12px 0;border-bottom:1px solid #eee}.choco-widget-add-card-iframe-wrapper{flex:1;min-height:0;background:#fff}.choco-widget-add-card-iframe{width:100%;height:100%;border:none;display:block}.choco-widget-balance-section{margin-bottom:12px;padding:12px 8px;background:#f1f2f7;border-radius:12px;transition:transform .22s ease,opacity .2s ease}.choco-widget-balance-section.disabled{opacity:.5;pointer-events:none}.choco-widget-balance-toggle{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding:4px 0}.choco-widget-balance-toggle:last-child{margin-bottom:0}.choco-widget-balance-toggle--disabled{opacity:.5;pointer-events:none}.choco-widget-balance-info{display:flex;align-items:center;gap:12px}.choco-widget-balance-text{display:flex;flex-direction:column}.choco-widget-balance-label-wrapper{display:flex;align-items:center;gap:8px}.choco-widget-balance-label{font-size:16px;font-weight:500}.choco-widget-balance-sublabel{font-size:12px;color:#767485;margin-top:2px}.choco-widget-balance-icon{width:22px;height:22px}.choco-widget-balance-amount{font-size:16px;font-weight:500;color:#000;white-space:nowrap}.choco-widget-toggle{position:relative;display:inline-block;width:42px;height:26px}.choco-widget-toggle input{opacity:0;width:0;height:0}.choco-widget-toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#d4d3df;transition:.3s;border-radius:28px}.choco-widget-toggle-slider:before{position:absolute;content:"";height:22px;width:22px;left:2px;bottom:0;top:0;margin:auto;background-color:#fff;transition:.3s;border-radius:50%}.choco-widget-toggle input:checked+.choco-widget-toggle-slider{background-color:var(--choco-widget-accent-color)}.choco-widget-toggle input:checked+.choco-widget-toggle-slider:before{transform:translate(16px)}.choco-widget-cashback-section{margin-top:20px;padding-top:20px;border-top:1px solid #f0f0f0}.choco-widget-cashback-info{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#fff5ee;border-radius:12px;font-size:14px;color:#ff6b00}.choco-widget-cashback-icon{font-size:20px}.choco-widget-cashback-text strong{font-weight:700}.choco-widget-payment-methods{display:flex;flex-direction:column;gap:8px}.choco-widget-method-item{display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer;transition:all .2s ease;border:2px solid transparent;width:100%;border:0;background:none;text-align:left;font-family:inherit;font-size:inherit}.choco-widget-method-item-icon-wrapper{width:37px}.choco-widget-method-item-icon-wrapper svg{display:block;width:100%;max-width:29px;height:29px;margin:0 auto}.choco-widget-method-item-icon-wrapper.google_pay{outline:1px solid #3C4043;padding:3px 5px 2px;border-radius:15px}.choco-widget-method-item-icon-wrapper.google_pay svg{height:15px;max-width:29px}.choco-widget-method-item-label{flex:1;font-size:16px;color:#000}.choco-widget-method-item-check,.choco-widget-method-item-trash-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:6px;margin:-6px 0 -6px 6px;background:none;border:none;cursor:pointer;border-radius:8px;-webkit-tap-highlight-color:transparent}.choco-widget-method-item-check{height:30px;width:30px}.choco-widget-method-item-trash-btn:hover{background:#cc343414}.choco-widget-method-item-trash{flex-shrink:0;width:20px;height:20px}.choco-widget-bottom-bar-prerender{position:absolute;bottom:0;left:0;right:0;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -4px 20px #0000001a;transition:transform .3s cubic-bezier(.4,0,.2,1);height:78px}.choco-widget-payment-loading{width:30px;height:30px;animation:choco-spin 1s linear infinite;border:3px solid var(--choco-widget-accent-color);border-top:3px solid transparent;border-radius:50%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}@keyframes choco-spin{to{transform:rotate(360deg)}}@keyframes choco-fade-in{0%{opacity:0;transform:translate(-50%,-50%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(max-width:768px){.choco-widget-bottom-bar{padding:16px 16px 20px}.choco-widget-sheet-content{max-height:80vh}.choco-widget-sheet-title{font-size:18px}.choco-widget-method-item-label{font-size:17px}}@media(max-width:768px)and (min-height:812px){.choco-widget-bottom-bar,.choco-widget-sheet-content{padding-bottom:calc(20px + env(safe-area-inset-bottom,20px))}}@supports (padding: env(safe-area-inset-bottom)){.choco-widget-bottom-bar{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.choco-widget-sheet-content{padding-bottom:calc(20px + env(safe-area-inset-bottom))}}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- (function(Se,_e){typeof exports=="object"&&typeof module<"u"?module.exports=_e():typeof define=="function"&&define.amd?define(_e):(Se=typeof globalThis<"u"?globalThis:Se||self,Se.ChocoOneClickWidget=_e())})(this,(function(){"use strict";const Se={ru:{paymentMethod:"Способ оплаты",selectMethod:"Выберите метод",pay:"Оплатить",login:"Войти",paymentSuccess:"Оплата прошла успешно!",paymentError:"Ошибка оплаты",paymentMethods:"Способ оплаты",newCard:"Оплата новой картой",balance:"Списать баланс",bonus:"Списать бонусы",bonusText:"Можно оплатить до {amount}%",cashback:"Кешбэк",willGet:"Получите",total:"Итого",instead:"вместо",coupon:"Списать купон",couponSuppressesCashback:"При применении купона бонусы не начисляются",couponUntil:"до {date}",addCard:"Добавление карты",editCards:"Редактировать карты",cardDeleted:"Карта успешно удалена",confirmDeleteCard:"Вы действительно хотите удалить карту?",cancel:"Отмена",delete:"Удалить",back:"Назад",errorMissingTrackClient:"Укажите trackId и clientId",errorNoServerResponseRetry:"Нет ответа от сервера, попробуйте заново",errorNoServerResponse:"Нет ответа от сервера",errorPaymentMethodNotSelected:"Метод оплаты не выбран",errorApplePayUnsupported:"Apple Pay не поддерживается в этом браузере",errorApplePayInit:"Ошибка инициализации Apple Pay",errorApplePayPayment:"Ошибка оплаты через Apple Pay",errorApplePayInterrupted:"Пожалуйста, подтвердите оплату после полной загрузки окна Apple Pay",errorGooglePayUnsupported:"Google Pay не поддерживается в этом браузере",errorGooglePaySettingsUnavailable:"Настройки Google Pay недоступны",errorGooglePayPayment:"Ошибка оплаты через Google Pay",errorActionUrlMissing:"action_url отсутствует в событии order.action_required",errorWidgetInit:"Ошибка инициализации виджета",errorPaymentProcess:"Ошибка оплаты"},en:{paymentMethod:"Payment method",selectMethod:"Select method",pay:"Pay",login:"Sign in",paymentSuccess:"Payment successful!",paymentError:"Payment error",paymentMethods:"Payment method",newCard:"Pay with new card",balance:"Use balance",bonus:"Use bonuses",bonusText:"You can pay up to {amount}%",cashback:"Cashback",willGet:"You will get",total:"Total",instead:"instead",coupon:"Apply coupon",couponSuppressesCashback:"Bonuses are not credited when the coupon is applied",couponUntil:"until {date}",addCard:"Add card",editCards:"Edit cards",cardDeleted:"Card successfully deleted",confirmDeleteCard:"Are you sure you want to delete this card?",cancel:"Cancel",delete:"Delete",back:"Back",errorMissingTrackClient:"Provide trackId and clientId",errorNoServerResponseRetry:"No response from server, please try again",errorNoServerResponse:"No response from server",errorPaymentMethodNotSelected:"Payment method is not selected",errorApplePayUnsupported:"Apple Pay is not supported in this browser",errorApplePayInit:"Apple Pay initialization error",errorApplePayPayment:"Apple Pay payment error",errorApplePayInterrupted:"Please confirm payment after the Apple Pay sheet fully loads",errorGooglePayUnsupported:"Google Pay is not supported in this browser",errorGooglePaySettingsUnavailable:"Google Pay settings are unavailable",errorGooglePayPayment:"Google Pay payment error",errorActionUrlMissing:"action_url is missing in order.action_required event",errorWidgetInit:"Widget initialization error",errorPaymentProcess:"Payment error"},kk:{paymentMethod:"Төлем әдісі",selectMethod:"Әдісті таңдаңыз",pay:"Төлеу",login:"Кіру",paymentSuccess:"Төлем сәтті өтті!",paymentError:"Төлем қатесі",paymentMethods:"Төлем әдісі",newCard:"Жаңа картамен төлеу",balance:"Балансты пайдалану",bonus:"Бонусдарды пайдалану",bonusText:"{amount}%-ге дейін төлеуге болады",cashback:"Кэшбэк",willGet:"Аласыз",total:"Барлығы",instead:"орнына",coupon:"Купонды пайдалану",couponSuppressesCashback:"Купон қолданылғанда бонустар есептелмейді",couponUntil:"{date} дейін",addCard:"Картаны қосу",editCards:"Карталарды өңдеу",cardDeleted:"Карта жойылды",confirmDeleteCard:"Картаны жойғыңыз келетініне сенімдісіз бе?",cancel:"Болдырмау",delete:"Жою",back:"Артқа",errorMissingTrackClient:"trackId пен clientId көрсетіңіз",errorNoServerResponseRetry:"Серверден жауап жоқ, қайтадан көріңіз",errorNoServerResponse:"Серверден жауап жоқ",errorPaymentMethodNotSelected:"Төлем әдісі таңдалмаған",errorApplePayUnsupported:"Бұл браузерде Apple Pay қолдау көрсетілмейді",errorApplePayInit:"Apple Pay инициализация қатесі",errorApplePayPayment:"Apple Pay арқылы төлем қатесі",errorApplePayInterrupted:"Өтінеміз, төлемді Apple Pay терезесі толық жүктелгеннен кейін растаңыз",errorGooglePayUnsupported:"Бұл браузерде Google Pay қолдау көрсетілмейді",errorGooglePaySettingsUnavailable:"Google Pay баптаулары қолжетімсіз",errorGooglePayPayment:"Google Pay арқылы төлем қатесі",errorActionUrlMissing:"order.action_required оқиғасында action_url жоқ",errorWidgetInit:"Виджетті инициализациялау қатесі",errorPaymentProcess:"Төлем қатесі"},ka:{paymentMethod:"გადახდის მეთოდი",selectMethod:"აირჩიეთ მეთოდი",pay:"გადახდა",login:"შესვლა",paymentSuccess:"გადახდა წარმატებით შესრულდა!",paymentError:"გადახდის შეცდომა",paymentMethods:"გადახდის მეთოდი",newCard:"ახალი ბარათით გადახდა",balance:"ბალანსის გამოყენება",bonus:"ბონუსების გამოყენება",bonusText:"{amount}%-ზე გადახდა შესაძლებელია",cashback:"ქეშბექი",willGet:"მიიღებთ",total:"ჯამი",instead:"ნაცვლად",coupon:"კუპონის გამოყენება",couponSuppressesCashback:"კუპონის გამოყენებისას ბონუსები არ დაირიცხება",couponUntil:"{date}-მდე",addCard:"ბარათის დამატება",editCards:"ბარათების რედაქტირება",cardDeleted:"ბარათი წაშლილია",confirmDeleteCard:"დარწმუნებული ხართ, რომ გსურთ ამ ბარათის წაშლა?",cancel:"გაუქმება",delete:"წაშლა",back:"უკან",errorMissingTrackClient:"მიუთითეთ trackId და clientId",errorNoServerResponseRetry:"სერვერის პასუხი არ არის, სცადეთ თავიდან",errorNoServerResponse:"სერვერის პასუხი არ არის",errorPaymentMethodNotSelected:"გადახდის მეთოდი არ არის არჩეული",errorApplePayUnsupported:"ამ ბრაუზერში Apple Pay არ არის მხარდაჭერილი",errorApplePayInit:"Apple Pay-ის ინიციალიზაციის შეცდომა",errorApplePayPayment:"Apple Pay-ით გადახდის შეცდომა",errorApplePayInterrupted:"გთხოვთ, დაადასტუროთ გადახდა Apple Pay-ის ფანჯრის სრულად ჩატვირთვის შემდეგ",errorGooglePayUnsupported:"ამ ბრაუზერში Google Pay არ არის მხარდაჭერილი",errorGooglePaySettingsUnavailable:"Google Pay-ის პარამეტრები მიუწვდომელია",errorGooglePayPayment:"Google Pay-ით გადახდის შეცდომა",errorActionUrlMissing:"order.action_required მოვლენაში action_url არ არის",errorWidgetInit:"ვიჯეტის ინიციალიზაციის შეცდომა",errorPaymentProcess:"გადახდის შეცდომა"}},_e={KZT:"₸",GEL:"₾"};function vr(e){return e==="production"?"https://api-proxy.choco.kz":"https://api-proxy.chocodev.kz"}let Oe;const Ir=new Uint8Array(16);function Br(){if(!Oe&&(Oe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Oe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Oe(Ir)}const F=[];for(let e=0;e<256;++e)F.push((e+256).toString(16).slice(1));function Sr(e,t=0){return F[e[t+0]]+F[e[t+1]]+F[e[t+2]]+F[e[t+3]]+"-"+F[e[t+4]]+F[e[t+5]]+"-"+F[e[t+6]]+F[e[t+7]]+"-"+F[e[t+8]]+F[e[t+9]]+"-"+F[e[t+10]]+F[e[t+11]]+F[e[t+12]]+F[e[t+13]]+F[e[t+14]]+F[e[t+15]]}const zt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ne(e,t,n){if(zt.randomUUID&&!e)return zt.randomUUID();e=e||{};const r=e.random||(e.rng||Br)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sr(r)}const Kt="choco_device_id";function Z(e,t="ru",n="KZT"){const r=Number(e),o=t==="ru"?"ru-RU":"en-US";return`${r.toLocaleString(o)} ${_e[n]}`}function Gt(){let e=localStorage.getItem(Kt);return e||(e=Ne(),localStorage.setItem(Kt,e)),e}function De(){if(typeof window>"u")return!1;const e=window.safari!==void 0,t=window.navigator.userAgent||"",n=!!t.match(/iPad/i)||!!t.match(/iPhone/i),r=!!t.match(/WebKit/i),o=n&&r&&!t.match(/CriOS/i);return e||o}function Wt(){if(typeof navigator>"u")return 0;const e=navigator.userAgent||"",t=e.indexOf("OS");return(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?Number(e.substring(t+3,t+6).replace("_",".")):0}function ft(){var i;if(typeof navigator>"u")return"unknown";const e=(navigator.userAgent||navigator.vendor||"").toLowerCase(),t=(navigator.platform||"").toLowerCase(),n=(((i=navigator.userAgentData)==null?void 0:i.platform)||"").toLowerCase(),r=`${e} ${t} ${n}`;return/iphone|ipad|ipod/.test(r)||r.includes("macintosh")&&typeof document<"u"&&"ontouchend"in document?"ios":r.includes("android")?"android":r.includes("windows")?"windows":r.includes("mac")?"macos":"other"}function Me(){if(typeof navigator>"u")return!1;const e=navigator.userAgentData;return e!=null&&e.platform&&["iOS","iPadOS"].includes(e.platform)||ft()==="ios"?!0:(navigator.userAgent||"").includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function xe(e){if(typeof sessionStorage>"u")return!1;const t=e==="apple_pay"?"disableApplePay":e==="google_pay"?"disableGooglePay":null;return t?sessionStorage.getItem(t)==="true":!1}function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={exports:{}},Qr=Ue.exports,Yt;function kr(){return Yt||(Yt=1,(function(e,t){(function(r,o){e.exports=o()})(Qr,function(){return(function(){var n={382:(function(c,u,l){Object.defineProperty(u,"__esModule",{value:!0}),u.Centrifuge=void 0;var h=I(l(187)),y=I(l(471)),m=l(147),b=l(853);function I(g){return g&&g.__esModule?g:{default:g}}function B(g){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(C){return typeof C}:B=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},B(g)}function Q(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function S(g,p){for(var C=0;C<p.length;C++){var d=p[C];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function P(g,p,C){return p&&S(g.prototype,p),g}function k(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),p&&R(g,p)}function R(g,p){return R=Object.setPrototypeOf||function(d,s){return d.__proto__=s,d},R(g,p)}function L(g){var p=G();return function(){var d=K(g),s;if(p){var a=K(this).constructor;s=Reflect.construct(d,arguments,a)}else s=d.apply(this,arguments);return z(this,s)}}function z(g,p){if(p&&(B(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(g)}function D(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function G(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K(g){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},K(g)}var J="timeout",M="connection closed",v=(function(g){k(C,g);var p=L(C);function C(d,s){var a;return Q(this,C),a=p.call(this),a._url=d,a._websocket=null,a._sockjs=null,a._isSockjs=!1,a._xmlhttprequest=null,a._binary=!1,a._methodType=null,a._pushType=null,a._encoder=null,a._decoder=null,a._status="disconnected",a._reconnect=!0,a._reconnecting=!1,a._transport=null,a._transportName=null,a._transportClosed=!0,a._messageId=0,a._clientID=null,a._refreshRequired=!1,a._subs={},a._serverSubs={},a._lastSeq={},a._lastGen={},a._lastOffset={},a._lastEpoch={},a._messages=[],a._isBatching=!1,a._isSubscribeBatching=!1,a._privateChannels={},a._numRefreshFailed=0,a._refreshTimeout=null,a._pingTimeout=null,a._pongTimeout=null,a._subRefreshTimeouts={},a._retries=0,a._callbacks={},a._latency=null,a._latencyStart=null,a._connectData=null,a._token=null,a._xhrID=0,a._xhrs={},a._dispatchPromise=Promise.resolve(),a._protocol="",a._config={protocol:"",debug:!1,name:"js",version:"",websocket:null,sockjs:null,xmlhttprequest:null,minRetry:1e3,maxRetry:2e4,timeout:5e3,ping:!0,pingInterval:25e3,pongWaitTimeout:5e3,privateChannelPrefix:"$",onTransportClose:null,sockjsServer:null,sockjsTimeout:null,sockjsTransports:["websocket","xdr-streaming","xhr-streaming","eventsource","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"],refreshEndpoint:"/centrifuge/refresh",refreshHeaders:{},refreshParams:{},refreshData:{},refreshAttempts:null,refreshInterval:1e3,onRefreshFailed:null,onRefresh:null,subscribeEndpoint:"/centrifuge/subscribe",subscribeHeaders:{},subscribeParams:{},subRefreshInterval:1e3,onPrivateSubscribe:null,disableWithCredentials:!1},a._configure(s),a}return P(C,[{key:"setToken",value:function(s){this._token=s}},{key:"setConnectData",value:function(s){this._connectData=s}},{key:"setRefreshHeaders",value:function(s){this._config.refreshHeaders=s}},{key:"setRefreshParams",value:function(s){this._config.refreshParams=s}},{key:"setRefreshData",value:function(s){this._config.refreshData=s}},{key:"setSubscribeHeaders",value:function(s){this._config.subscribeHeaders=s}},{key:"setSubscribeParams",value:function(s){this._config.subscribeParams=s}},{key:"_ajax",value:function(s,a,A,f,E){var _=this,T="";this._debug("sending AJAX request to",s,"with data",JSON.stringify(f));var w;this._xmlhttprequest!==null?w=new this._xmlhttprequest:w=l.g.XMLHttpRequest?new l.g.XMLHttpRequest:new l.g.ActiveXObject("Microsoft.XMLHTTP");for(var O in a)a.hasOwnProperty(O)&&(T.length>0&&(T+="&"),T+=encodeURIComponent(O)+"="+encodeURIComponent(a[O]));T.length>0&&(T="?"+T),w.open("POST",s+T,!0),"withCredentials"in w&&(w.withCredentials=!this._config.disableWithCredentials),w.setRequestHeader("X-Requested-With","XMLHttpRequest"),w.setRequestHeader("Content-Type","application/json");for(var X in A)A.hasOwnProperty(X)&&w.setRequestHeader(X,A[X]);return w.onreadystatechange=function(){if(w.readyState===4)if(w.status===200){var H,x=!1;try{H=JSON.parse(w.responseText),x=!0}catch{E({error:"Invalid JSON. Data was: "+w.responseText,status:200,data:null})}x&&E({data:H,status:200})}else _._log("wrong status code in AJAX response",w.status),E({status:w.status,data:null})},setTimeout(function(){return w.send(JSON.stringify(f))},20),w}},{key:"_log",value:function(){(0,b.log)("info",arguments)}},{key:"_debug",value:function(){this._config.debug===!0&&(0,b.log)("debug",arguments)}},{key:"_websocketSupported",value:function(){return this._config.websocket!==null?!0:!(typeof WebSocket!="function"&&(typeof WebSocket>"u"?"undefined":B(WebSocket))!=="object")}},{key:"_setFormat",value:function(s){if(!this._formatOverride(s)){if(s==="protobuf")throw new Error("not implemented by JSON only Centrifuge client – use client with Protobuf");this._binary=!1,this._methodType=m.JsonMethodType,this._pushType=m.JsonPushType,this._encoder=new m.JsonEncoder,this._decoder=new m.JsonDecoder}}},{key:"_formatOverride",value:function(s){return!1}},{key:"_configure",value:function(s){if(!("Promise"in l.g))throw new Error("Promise polyfill required");if((0,b.extend)(this._config,s||{}),this._debug("centrifuge config",this._config),!this._url)throw new Error("url required");var a=(0,b.startsWith)(this._url,"ws")&&this._url.indexOf("format=protobuf")>-1;if(a||this._config.protocol==="protobuf")this._setFormat("protobuf"),this._protocol="protobuf";else{if(this._config.protocol!==""&&this._config.protocol!=="json")throw new Error("unsupported protocol "+this._config.protocol);this._setFormat("json")}if((0,b.startsWith)(this._url,"http"))if(this._debug("client will try to connect to SockJS endpoint"),this._config.sockjs!==null)this._debug("SockJS explicitly provided in options"),this._sockjs=this._config.sockjs;else{if(typeof l.g.SockJS>"u")throw new Error("SockJS not found, use ws:// in url or include SockJS");this._debug("use globally defined SockJS"),this._sockjs=l.g.SockJS}else this._debug("client will connect to websocket endpoint");this._xmlhttprequest=this._config.xmlhttprequest}},{key:"_setStatus",value:function(s){this._status!==s&&(this._debug("Status",this._status,"->",s),this._status=s)}},{key:"_isDisconnected",value:function(){return this._status==="disconnected"}},{key:"_isConnecting",value:function(){return this._status==="connecting"}},{key:"_isConnected",value:function(){return this._status==="connected"}},{key:"_nextMessageId",value:function(){return++this._messageId}},{key:"_resetRetry",value:function(){this._debug("reset retries count to 0"),this._retries=0}},{key:"_getRetryInterval",value:function(){var s=(0,b.backoff)(this._retries,this._config.minRetry,this._config.maxRetry);return this._retries+=1,s}},{key:"_abortInflightXHRs",value:function(){for(var s in this._xhrs){try{this._xhrs[s].abort()}catch(a){this._debug("error aborting xhr",a)}delete this._xhrs[s]}}},{key:"_clearConnectedState",value:function(s){this._clientID=null,this._stopPing();for(var a in this._callbacks)if(this._callbacks.hasOwnProperty(a)){var A=this._callbacks[a];clearTimeout(A.timeout);var f=A.errback;if(!f)continue;f({error:this._createErrorObject("disconnected")})}this._callbacks={};for(var E in this._subs)if(this._subs.hasOwnProperty(E)){var _=this._subs[E];s?(_._isSuccess()&&(_._triggerUnsubscribe(),_._recover=!0),_._shouldResubscribe()&&_._setSubscribing()):_._setUnsubscribed()}this._abortInflightXHRs(),this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);for(var T in this._subRefreshTimeouts)this._subRefreshTimeouts.hasOwnProperty(T)&&this._subRefreshTimeouts[T]&&this._clearSubRefreshTimeout(T);this._subRefreshTimeouts={},this._reconnect||(this._subs={})}},{key:"_isTransportOpen",value:function(){return this._isSockjs?this._transport&&this._transport.transport&&this._transport.transport.readyState===this._transport.transport.OPEN:this._transport&&this._transport.readyState===this._transport.OPEN}},{key:"_transportSend",value:function(s){if(!s.length)return!0;if(!this._isTransportOpen()){for(var a in s){var A=a.id;if(A in this._callbacks){var f=this._callbacks[A];clearTimeout(this._callbacks[A].timeout),delete this._callbacks[A];var E=f.errback;E({error:this._createErrorObject(M,0)})}}return!1}return this._transport.send(this._encoder.encodeCommands(s)),!0}},{key:"_getSubProtocol",value:function(){return this._protocol?"centrifuge-"+this._protocol:""}},{key:"_setupTransport",value:function(){var s=this;if(this._isSockjs=!1,this._sockjs!==null){var a={transports:this._config.sockjsTransports};this._config.sockjsServer!==null&&(a.server=this._config.sockjsServer),this._config.sockjsTimeout!==null&&(a.timeout=this._config.sockjsTimeout),this._isSockjs=!0,this._transport=new this._sockjs(this._url,null,a)}else{if(!this._websocketSupported())throw this._debug("No Websocket support and no SockJS configured, can not connect"),new Error("No Websocket support and no SockJS configured, can not connect");this._config.websocket!==null?this._websocket=this._config.websocket:this._websocket=WebSocket;var A=this._getSubProtocol();A!==""?this._transport=new this._websocket(this._url,A):this._transport=new this._websocket(this._url),this._binary===!0&&(this._transport.binaryType="arraybuffer")}this._transport.onopen=function(){s._transportClosed=!1,s._isSockjs?(s._transportName="sockjs-"+s._transport.transport,s._transport.onheartbeat=function(){return s._restartPing()}):s._transportName="websocket";var f={};(s._token||s._connectData||s._config.name||s._config.version)&&(f.params={}),s._token&&(f.params.token=s._token),s._connectData&&(f.params.data=s._connectData),s._config.name&&(f.params.name=s._config.name),s._config.version&&(f.params.version=s._config.version);var E={},_=!1;for(var T in s._serverSubs)if(s._serverSubs.hasOwnProperty(T)&&s._serverSubs[T].recoverable){_=!0;var w={recover:!0};s._serverSubs[T].seq||s._serverSubs[T].gen?(s._serverSubs[T].seq&&(w.seq=s._serverSubs[T].seq),s._serverSubs[T].gen&&(w.gen=s._serverSubs[T].gen)):s._serverSubs[T].offset&&(w.offset=s._serverSubs[T].offset),s._serverSubs[T].epoch&&(w.epoch=s._serverSubs[T].epoch),E[T]=w}_&&(f.params||(f.params={}),f.params.subs=E),s._latencyStart=new Date,s._call(f).then(function(O){s._connectResponse(s._decoder.decodeCommandResult(s._methodType.CONNECT,O.result),_),O.next&&O.next()},function(O){var X=O.error;X.code===109&&(s._refreshRequired=!0),s._disconnect("connect error",!0),O.next&&O.next()})},this._transport.onerror=function(f){s._debug("transport level error",f)},this._transport.onclose=function(f){s._transportClosed=!0;var E=M,_=!0;if(f&&"reason"in f&&f.reason)try{var T=JSON.parse(f.reason);s._debug("reason is an advice object",T),E=T.reason,_=T.reconnect}catch{E=f.reason,s._debug("reason is a plain string",E)}if(s._config.onTransportClose!==null&&s._config.onTransportClose({event:f,reason:E,reconnect:_}),s._disconnect(E,_),s._reconnect===!0){s._reconnecting=!0;var w=s._getRetryInterval();s._debug("reconnect after "+w+" milliseconds"),setTimeout(function(){s._reconnect===!0&&(s._refreshRequired?s._refresh():s._connect())},w)}},this._transport.onmessage=function(f){s._dataReceived(f.data)}}},{key:"rpc",value:function(s){return this._rpc("",s)}},{key:"namedRPC",value:function(s,a){return this._rpc(s,a)}},{key:"_rpc",value:function(s,a){var A={data:a};s!==""&&(A.method=s);var f={method:this._methodType.RPC,params:A};return this._methodCall(f,function(E){return E})}},{key:"send",value:function(s){var a={method:this._methodType.SEND,params:{data:s}};if(!this.isConnected())return Promise.reject(this._createErrorObject(M,0));var A=this._transportSend([a]);return A?Promise.resolve({}):Promise.reject(this._createErrorObject(M,0))}},{key:"_getHistoryParams",value:function(s,a){var A={channel:s};return a!==void 0&&(a.since&&(A.since={offset:a.since.offset},a.since.epoch&&(A.since.epoch=a.since.epoch)),a.limit!==void 0&&(A.limit=a.limit),a.reverse===!0&&(A.reverse=!0)),A}},{key:"_methodCall",value:function(s,a){var A=this;return this.isConnected()?new Promise(function(f,E){A._call(s).then(function(_){f(a(A._decoder.decodeCommandResult(s.method,_.result))),_.next&&_.next()},function(_){E(_.error),_.next&&_.next()})}):Promise.reject(this._createErrorObject(M,0))}},{key:"publish",value:function(s,a){var A={method:this._methodType.PUBLISH,params:{channel:s,data:a}};return this._methodCall(A,function(){return{}})}},{key:"history",value:function(s,a){var A=this._getHistoryParams(s,a),f={method:this._methodType.HISTORY,params:A};return this._methodCall(f,function(E){return{publications:E.publications,epoch:E.epoch||"",offset:E.offset||0}})}},{key:"presence",value:function(s){var a={method:this._methodType.PRESENCE,params:{channel:s}};return this._methodCall(a,function(A){return{presence:A.presence}})}},{key:"presenceStats",value:function(s){var a={method:this._methodType.PRESENCE_STATS,params:{channel:s}};return this._methodCall(a,function(A){return{num_users:A.num_users,num_clients:A.num_clients}})}},{key:"_dataReceived",value:function(s){var a=this,A=this._decoder.decodeReplies(s);this._dispatchPromise=this._dispatchPromise.then(function(){var f;a._dispatchPromise=new Promise(function(E){f=E}),a._dispatchSynchronized(A,f)}),this._restartPing()}},{key:"_dispatchSynchronized",value:function(s,a){var A=this,f=Promise.resolve(),E=function(w){s.hasOwnProperty(w)&&(f=f.then(function(){return A._dispatchReply(s[w])}))};for(var _ in s)E(_);f=f.then(function(){a()})}},{key:"_dispatchReply",value:function(s){var a,A=new Promise(function(E){a=E});if(s==null)return this._debug("dispatch: got undefined or null reply"),a(),A;var f=s.id;return f&&f>0?this._handleReply(s,a):this._handlePush(s.result,a),A}},{key:"_call",value:function(s){var a=this;return new Promise(function(A,f){var E=a._addMessage(s);a._registerCall(E,A,f)})}},{key:"_connect",value:function(){if(this.isConnected()){this._debug("connect called when already connected");return}this._status!=="connecting"&&(this._debug("start connecting"),this._setStatus("connecting"),this._clientID=null,this._reconnect=!0,this._setupTransport())}},{key:"_disconnect",value:function(s,a){var A=a||!1;if(A===!1&&(this._reconnect=!1),this._isDisconnected()){A||this._clearConnectedState(A);return}if(this._clearConnectedState(A),this._debug("disconnected:",s,a),this._setStatus("disconnected"),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._reconnecting===!1){for(var f in this._serverSubs)this._serverSubs.hasOwnProperty(f)&&this.emit("unsubscribe",{channel:f});this.emit("disconnect",{reason:s,reconnect:A})}A===!1&&(this._subs={},this._serverSubs={}),this._transportClosed||this._transport.close()}},{key:"_refreshFailed",value:function(){this._numRefreshFailed=0,this._isDisconnected()||this._disconnect("refresh failed",!1),this._config.onRefreshFailed!==null&&this._config.onRefreshFailed()}},{key:"_refresh",value:function(){var s=this;if(this._debug("refresh token"),this._config.refreshAttempts===0){this._debug("refresh attempts set to 0, do not send refresh request at all"),this._refreshFailed();return}this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var a=this._clientID,A=this._newXHRID(),f=function(w){if(A in s._xhrs&&delete s._xhrs[A],s._clientID===a){if(w.error||w.status!==200){if(w.error?s._debug("error refreshing connection token",w.error):s._debug("error refreshing connection token: wrong status code",w.status),s._numRefreshFailed++,s._refreshTimeout!==null&&(clearTimeout(s._refreshTimeout),s._refreshTimeout=null),s._config.refreshAttempts!==null&&s._numRefreshFailed>=s._config.refreshAttempts){s._refreshFailed();return}var O=Math.round(Math.random()*1e3*Math.max(s._numRefreshFailed,20)),X=s._config.refreshInterval+O;s._refreshTimeout=setTimeout(function(){return s._refresh()},X);return}if(s._numRefreshFailed=0,s._token=w.data.token,!s._token){s._refreshFailed();return}if(s._isDisconnected()&&s._reconnect)s._debug("token refreshed, connect from scratch"),s._connect();else{s._debug("send refreshed token");var H={method:s._methodType.REFRESH,params:{token:s._token}};s._call(H).then(function(x){s._refreshResponse(s._decoder.decodeCommandResult(s._methodType.REFRESH,x.result)),x.next&&x.next()},function(x){s._refreshError(x.error),x.next&&x.next()})}}};if(this._config.onRefresh!==null){var E={};this._config.onRefresh(E,f)}else{var _=this._ajax(this._config.refreshEndpoint,this._config.refreshParams,this._config.refreshHeaders,this._config.refreshData,f);this._xhrs[A]=_}}},{key:"_refreshError",value:function(s){var a=this;this._debug("refresh error",s),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var A=this._config.refreshInterval+Math.round(Math.random()*1e3);this._refreshTimeout=setTimeout(function(){return a._refresh()},A)}},{key:"_refreshResponse",value:function(s){var a=this;this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),s.expires&&(this._clientID=s.client,this._refreshTimeout=setTimeout(function(){return a._refresh()},this._getTTLMilliseconds(s.ttl)))}},{key:"_newXHRID",value:function(){return this._xhrID++,this._xhrID}},{key:"_subRefresh",value:function(s){var a=this;if(this._debug("refresh subscription token for channel",s),this._subRefreshTimeouts[s]!==void 0)this._clearSubRefreshTimeout(s);else return;var A=this._clientID,f=this._newXHRID(),E=function(O){if(f in a._xhrs&&delete a._xhrs[f],!(O.error||O.status!==200||a._clientID!==A)){var X={};if(O.data.channels)for(var H in O.data.channels){var x=O.data.channels[H];x.channel&&(X[x.channel]=x.token)}var Ie=X[s];if(Ie){var Ht={method:a._methodType.SUB_REFRESH,params:{channel:s,token:Ie}},dt=a._getSub(s);dt!==null&&a._call(Ht).then(function(ie){a._subRefreshResponse(s,a._decoder.decodeCommandResult(a._methodType.SUB_REFRESH,ie.result)),ie.next&&ie.next()},function(ie){a._subRefreshError(s,ie.error),ie.next&&ie.next()})}}},_={client:this._clientID,channels:[s]};if(this._config.onPrivateSubscribe!==null)this._config.onPrivateSubscribe({data:_},E);else{var T=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,_,E);this._xhrs[f]=T}}},{key:"_clearSubRefreshTimeout",value:function(s){this._subRefreshTimeouts[s]!==void 0&&(clearTimeout(this._subRefreshTimeouts[s]),delete this._subRefreshTimeouts[s])}},{key:"_subRefreshError",value:function(s,a){var A=this;this._debug("subscription refresh error",s,a),this._clearSubRefreshTimeout(s);var f=this._getSub(s);if(f!==null){var E=Math.round(Math.random()*1e3),_=setTimeout(function(){return A._subRefresh(s)},this._config.subRefreshInterval+E);this._subRefreshTimeouts[s]=_}}},{key:"_subRefreshResponse",value:function(s,a){var A=this;this._debug("subscription refresh success",s),this._clearSubRefreshTimeout(s);var f=this._getSub(s);if(f!==null&&a.expires===!0){var E=setTimeout(function(){return A._subRefresh(s)},this._getTTLMilliseconds(a.ttl));this._subRefreshTimeouts[s]=E}}},{key:"_subscribe",value:function(s,a){var A=this;this._debug("subscribing on",s.channel);var f=s.channel;if(f in this._subs||(this._subs[f]=s),!this.isConnected()){s._setNew();return}s._setSubscribing(a);var E={method:this._methodType.SUBSCRIBE,params:{channel:f}};if(s._subscribeData&&(E.params.data=s._subscribeData),(0,b.startsWith)(f,this._config.privateChannelPrefix))this._isSubscribeBatching?this._privateChannels[f]=!0:(this.startSubscribeBatching(),this._subscribe(s),this.stopSubscribeBatching());else{var _=s._needRecover();if(_===!0){E.params.recover=!0;var T=this._getLastSeq(f),w=this._getLastGen(f);if(T||w)T&&(E.params.seq=T),w&&(E.params.gen=w);else{var O=this._getLastOffset(f);O&&(E.params.offset=O)}var X=this._getLastEpoch(f);X&&(E.params.epoch=X)}this._call(E).then(function(H){A._subscribeResponse(f,_,A._decoder.decodeCommandResult(A._methodType.SUBSCRIBE,H.result)),H.next&&H.next()},function(H){A._subscribeError(f,H.error),H.next&&H.next()})}}},{key:"_unsubscribe",value:function(s){delete this._subs[s.channel],delete this._lastOffset[s.channel],delete this._lastSeq[s.channel],delete this._lastGen[s.channel],this.isConnected()&&this._addMessage({method:this._methodType.UNSUBSCRIBE,params:{channel:s.channel}})}},{key:"_getTTLMilliseconds",value:function(s){return Math.min(s*1e3,2147483647)}},{key:"getSub",value:function(s){return this._getSub(s)}},{key:"_getSub",value:function(s){var a=this._subs[s];return a||null}},{key:"_isServerSub",value:function(s){return this._serverSubs[s]!==void 0}},{key:"_connectResponse",value:function(s,a){var A=this,f=this._reconnecting;if(this._reconnecting=!1,this._resetRetry(),this._refreshRequired=!1,!this.isConnected()){this._latencyStart!==null&&(this._latency=new Date().getTime()-this._latencyStart.getTime(),this._latencyStart=null),this._clientID=s.client,this._setStatus("connected"),this._refreshTimeout&&clearTimeout(this._refreshTimeout),s.expires&&(this._refreshTimeout=setTimeout(function(){return A._refresh()},this._getTTLMilliseconds(s.ttl))),this.startBatching(),this.startSubscribeBatching();for(var E in this._subs)if(this._subs.hasOwnProperty(E)){var _=this._subs[E];_._shouldResubscribe()&&this._subscribe(_,f)}this.stopSubscribeBatching(),this.stopBatching(),this._startPing();var T={client:s.client,transport:this._transportName,latency:this._latency};s.data&&(T.data=s.data),this.emit("connect",T),s.subs&&this._processServerSubs(s.subs)}}},{key:"_processServerSubs",value:function(s){for(var a in s)if(s.hasOwnProperty(a)){var A=s[a],f=this._serverSubs[a]!==void 0,E={channel:a,isResubscribe:f};E=this._expandSubscribeContext(E,A),this.emit("subscribe",E)}for(var _ in s)if(s.hasOwnProperty(_)){var T=s[_];if(T.recovered){var w=T.publications;if(w&&w.length>0){w.length>1&&(!w[0].offset||w[0].offset>w[1].offset)&&(w=w.reverse());for(var O in w)w.hasOwnProperty(O)&&this._handlePublication(_,w[O])}}this._serverSubs[_]={seq:T.seq,gen:T.gen,offset:T.offset,epoch:T.epoch,recoverable:T.recoverable}}}},{key:"_stopPing",value:function(){this._pongTimeout!==null&&(clearTimeout(this._pongTimeout),this._pongTimeout=null),this._pingTimeout!==null&&(clearTimeout(this._pingTimeout),this._pingTimeout=null)}},{key:"_startPing",value:function(){var s=this;this._config.ping!==!0||this._config.pingInterval<=0||this.isConnected()&&(this._pingTimeout=setTimeout(function(){if(!s.isConnected()){s._stopPing();return}s.ping(),s._pongTimeout=setTimeout(function(){s._disconnect("no ping",!0)},s._config.pongWaitTimeout)},this._config.pingInterval))}},{key:"_restartPing",value:function(){this._stopPing(),this._startPing()}},{key:"_subscribeError",value:function(s,a){var A=this._getSub(s);if(A&&A._isSubscribing()){if(a.code===0&&a.message===J){this._disconnect("timeout",!0);return}A._setSubscribeError(a)}}},{key:"_expandSubscribeContext",value:function(s,a){var A=!1;"recovered"in a&&(A=a.recovered),s.recovered=A;var f=!1;"positioned"in a&&(f=a.positioned);var E="";"epoch"in a&&(E=a.epoch);var _=0;return"offset"in a&&(_=a.offset),f&&(s.streamPosition={offset:_,epoch:E}),a.data&&(s.data=a.data),s}},{key:"_subscribeResponse",value:function(s,a,A){var f=this,E=this._getSub(s);if(E&&E._isSubscribing()){E._setSubscribeSuccess(A);var _=A.publications;if(_&&_.length>0){_.length>=2&&!_[0].offset&&!_[1].offset&&(_=_.reverse());for(var T in _)_.hasOwnProperty(T)&&this._handlePublication(s,_[T])}if(A.recoverable&&(!a||!A.recovered)&&(this._lastSeq[s]=A.seq||0,this._lastGen[s]=A.gen||0,this._lastOffset[s]=A.offset||0),this._lastEpoch[s]=A.epoch||"",A.recoverable&&(E._recoverable=!0),A.expires===!0){var w=setTimeout(function(){return f._subRefresh(s)},this._getTTLMilliseconds(A.ttl));this._subRefreshTimeouts[s]=w}}}},{key:"_handleReply",value:function(s,a){var A=s.id,f=s.result;if(!(A in this._callbacks)){a();return}var E=this._callbacks[A];if(clearTimeout(this._callbacks[A].timeout),delete this._callbacks[A],(0,b.errorExists)(s)){var T=E.errback;if(!T){a();return}var w=s.error;T({error:w,next:a})}else{var _=E.callback;if(!_)return;_({result:f,next:a})}}},{key:"_handleJoin",value:function(s,a){var A={info:a.info},f=this._getSub(s);if(!f){this._isServerSub(s)&&(A.channel=s,this.emit("join",A));return}f.emit("join",A)}},{key:"_handleLeave",value:function(s,a){var A={info:a.info},f=this._getSub(s);if(!f){this._isServerSub(s)&&(A.channel=s,this.emit("leave",A));return}f.emit("leave",A)}},{key:"_handleUnsub",value:function(s,a){var A={},f=this._getSub(s);if(!f){this._isServerSub(s)&&(delete this._serverSubs[s],A.channel=s,this.emit("unsubscribe",A));return}f.unsubscribe(),a.resubscribe===!0&&f.subscribe()}},{key:"_handleSub",value:function(s,a){this._serverSubs[s]={seq:a.seq,gen:a.gen,offset:a.offset,epoch:a.epoch,recoverable:a.recoverable};var A={channel:s,isResubscribe:!1};A=this._expandSubscribeContext(A,a),this.emit("subscribe",A)}},{key:"_handlePublication",value:function(s,a){var A=this._getSub(s),f={data:a.data,seq:a.seq,gen:a.gen,offset:a.offset};if(a.info&&(f.info=a.info),!A){this._isServerSub(s)&&(a.seq!==void 0&&(this._serverSubs[s].seq=a.seq),a.gen!==void 0&&(this._serverSubs[s].gen=a.gen),a.offset!==void 0&&(this._serverSubs[s].offset=a.offset),f.channel=s,this.emit("publish",f));return}a.seq!==void 0&&(this._lastSeq[s]=a.seq),a.gen!==void 0&&(this._lastGen[s]=a.gen),a.offset!==void 0&&(this._lastOffset[s]=a.offset),A.emit("publish",f)}},{key:"_handleMessage",value:function(s){this.emit("message",s.data)}},{key:"_handlePush",value:function(s,a){var A=this._decoder.decodePush(s),f=0;"type"in A&&(f=A.type);var E=A.channel;if(f===this._pushType.PUBLICATION){var _=this._decoder.decodePushData(this._pushType.PUBLICATION,A.data);this._handlePublication(E,_)}else if(f===this._pushType.MESSAGE){var T=this._decoder.decodePushData(this._pushType.MESSAGE,A.data);this._handleMessage(T)}else if(f===this._pushType.JOIN){var w=this._decoder.decodePushData(this._pushType.JOIN,A.data);this._handleJoin(E,w)}else if(f===this._pushType.LEAVE){var O=this._decoder.decodePushData(this._pushType.LEAVE,A.data);this._handleLeave(E,O)}else if(f===this._pushType.UNSUBSCRIBE){var X=this._decoder.decodePushData(this._pushType.UNSUBSCRIBE,A.data);this._handleUnsub(E,X)}else if(f===this._pushType.SUBSCRIBE){var H=this._decoder.decodePushData(this._pushType.UNSUBSCRIBE,A.data);this._handleSub(E,H)}a()}},{key:"_flush",value:function(){var s=this._messages.slice(0);this._messages=[],this._transportSend(s)}},{key:"_ping",value:function(){var s=this,a={method:this._methodType.PING};this._call(a).then(function(A){s._pingResponse(s._decoder.decodeCommandResult(s._methodType.PING,A.result)),A.next&&A.next()},function(A){s._debug("ping error",A.error),A.next&&A.next()})}},{key:"_pingResponse",value:function(s){this.isConnected()&&(this._stopPing(),this._startPing())}},{key:"_getLastSeq",value:function(s){var a=this._lastSeq[s];return a||0}},{key:"_getLastOffset",value:function(s){var a=this._lastOffset[s];return a||0}},{key:"_getLastGen",value:function(s){var a=this._lastGen[s];return a||0}},{key:"_getLastEpoch",value:function(s){var a=this._lastEpoch[s];return a||""}},{key:"_createErrorObject",value:function(s,a){var A={message:s,code:a||0};return A}},{key:"_registerCall",value:function(s,a,A){var f=this;this._callbacks[s]={callback:a,errback:A,timeout:null},this._callbacks[s].timeout=setTimeout(function(){delete f._callbacks[s],(0,b.isFunction)(A)&&A({error:f._createErrorObject(J)})},this._config.timeout)}},{key:"_addMessage",value:function(s){var a=this._nextMessageId();return s.id=a,this._isBatching===!0?this._messages.push(s):this._transportSend([s]),a}},{key:"isConnected",value:function(){return this._isConnected()}},{key:"connect",value:function(){this._connect()}},{key:"disconnect",value:function(){this._disconnect("client",!1)}},{key:"ping",value:function(){return this._ping()}},{key:"startBatching",value:function(){this._isBatching=!0}},{key:"stopBatching",value:function(){this._isBatching=!1,this._flush()}},{key:"startSubscribeBatching",value:function(){this._isSubscribeBatching=!0}},{key:"stopSubscribeBatching",value:function(){var s=this;this._isSubscribeBatching=!1;var a=this._privateChannels;this._privateChannels={};var A=[];for(var f in a)if(a.hasOwnProperty(f)){var E=this._getSub(f);if(!E)continue;A.push(f)}if(A.length===0){this._debug("no private channels found, no need to make request");return}var _={client:this._clientID,channels:A},T=this._clientID,w=this._newXHRID(),O=function(x){if(w in s._xhrs&&delete s._xhrs[w],s._clientID===T){if(x.error||x.status!==200){s._debug("authorization request failed");for(var Ie in A)if(A.hasOwnProperty(Ie)){var Ht=A[Ie];s._subscribeError(Ht,s._createErrorObject("authorization request failed"))}return}var dt={};if(x.data.channels)for(var ie in x.data.channels){var jt=x.data.channels[ie];jt.channel&&(dt[jt.channel]=jt.token)}var pr=!1;s._isBatching||(s.startBatching(),pr=!0);for(var gr in A)if(A.hasOwnProperty(gr)){var Vi=(function(){var te=A[gr],yr=dt[te];if(yr){var Be={method:s._methodType.SUBSCRIBE,params:{channel:te,token:yr}},mr=s._getSub(te);if(mr===null)return"continue";var Cr=mr._needRecover();if(Cr===!0){Be.params.recover=!0;var Jt=s._getLastSeq(te),qt=s._getLastGen(te);if(Jt||qt)Jt&&(Be.params.seq=Jt),qt&&(Be.params.gen=qt);else{var br=s._getLastOffset(te);br&&(Be.params.offset=br)}var Er=s._getLastEpoch(te);Er&&(Be.params.epoch=Er)}s._call(Be).then(function(ye){s._subscribeResponse(te,Cr,s._decoder.decodeCommandResult(s._methodType.SUBSCRIBE,ye.result)),ye.next&&ye.next()},function(ye){s._subscribeError(te,ye.error),ye.next&&ye.next()})}else return s._subscribeError(te,s._createErrorObject("permission denied",103)),"continue"})();if(Vi==="continue")continue}pr&&s.stopBatching()}};if(this._config.onPrivateSubscribe!==null)this._config.onPrivateSubscribe({data:_},O);else{var X=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,_,O);this._xhrs[w]=X}}},{key:"_setSubscribeSince",value:function(s,a){this._lastOffset[s.channel]=a.offset,this._lastEpoch[s.channel]=a.epoch,s._setNeedRecover(!0)}},{key:"subscribe",value:function(s,a,A){var f=this._getSub(s);if(f!==null)return f._setEvents(a),f._isUnsubscribed()&&f.subscribe(A),f;var E=new y.default(this,s,a);return this._subs[s]=E,E.subscribe(A),E}}]),C})(h.default);u.Centrifuge=v}),579:(function(c,u,l){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h=l(382),y=h.Centrifuge;u.default=y,c.exports=u.default}),147:(function(c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.JsonPushType=u.JsonMethodType=u.JsonEncoder=u.JsonDecoder=void 0;function l(Q,S){if(!(Q instanceof S))throw new TypeError("Cannot call a class as a function")}function h(Q,S){for(var P=0;P<S.length;P++){var k=S[P];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(Q,k.key,k)}}function y(Q,S,P){return S&&h(Q.prototype,S),Q}var m={CONNECT:0,SUBSCRIBE:1,UNSUBSCRIBE:2,PUBLISH:3,PRESENCE:4,PRESENCE_STATS:5,HISTORY:6,PING:7,SEND:8,RPC:9,REFRESH:10,SUB_REFRESH:11};u.JsonMethodType=m;var b={PUBLICATION:0,JOIN:1,LEAVE:2,UNSUBSCRIBE:3,MESSAGE:4,SUBSCRIBE:5};u.JsonPushType=b;var I=(function(){function Q(){l(this,Q)}return y(Q,[{key:"encodeCommands",value:function(P){return P.map(function(k){return JSON.stringify(k)}).join(`
2
+ (function(_e,Qe){typeof exports=="object"&&typeof module<"u"?module.exports=Qe():typeof define=="function"&&define.amd?define(Qe):(_e=typeof globalThis<"u"?globalThis:_e||self,_e.ChocoOneClickWidget=Qe())})(this,(function(){"use strict";const _e={ru:{paymentMethod:"Способ оплаты",selectMethod:"Выберите метод",pay:"Оплатить",login:"Войти",paymentSuccess:"Оплата прошла успешно!",paymentError:"Ошибка оплаты",paymentMethods:"Способ оплаты",newCard:"Оплата новой картой",balance:"Списать баланс",bonus:"Списать бонусы",bonusText:"Можно оплатить до {amount}%",cashback:"Кешбэк",willGet:"Получите",total:"Итого",instead:"вместо",coupon:"Списать купон",couponSuppressesCashback:"При применении купона бонусы не начисляются",couponUntil:"до {date}",addCard:"Добавление карты",editCards:"Редактировать карты",cardDeleted:"Карта успешно удалена",confirmDeleteCard:"Вы действительно хотите удалить карту?",cancel:"Отмена",delete:"Удалить",back:"Назад",errorMissingTrackClient:"Укажите trackId и clientId",errorNoServerResponseRetry:"Нет ответа от сервера, попробуйте заново",errorNoServerResponse:"Нет ответа от сервера",errorPaymentMethodNotSelected:"Метод оплаты не выбран",errorApplePayUnsupported:"Apple Pay не поддерживается в этом браузере",errorApplePayInit:"Ошибка инициализации Apple Pay",errorApplePayPayment:"Ошибка оплаты через Apple Pay",errorApplePayInterrupted:"Пожалуйста, подтвердите оплату после полной загрузки окна Apple Pay",errorGooglePayUnsupported:"Google Pay не поддерживается в этом браузере",errorGooglePaySettingsUnavailable:"Настройки Google Pay недоступны",errorGooglePayPayment:"Ошибка оплаты через Google Pay",errorActionUrlMissing:"action_url отсутствует в событии order.action_required",errorWidgetInit:"Ошибка инициализации виджета",errorPaymentProcess:"Ошибка оплаты"},en:{paymentMethod:"Payment method",selectMethod:"Select method",pay:"Pay",login:"Sign in",paymentSuccess:"Payment successful!",paymentError:"Payment error",paymentMethods:"Payment method",newCard:"Pay with new card",balance:"Use balance",bonus:"Use bonuses",bonusText:"You can pay up to {amount}%",cashback:"Cashback",willGet:"You will get",total:"Total",instead:"instead",coupon:"Apply coupon",couponSuppressesCashback:"Bonuses are not credited when the coupon is applied",couponUntil:"until {date}",addCard:"Add card",editCards:"Edit cards",cardDeleted:"Card successfully deleted",confirmDeleteCard:"Are you sure you want to delete this card?",cancel:"Cancel",delete:"Delete",back:"Back",errorMissingTrackClient:"Provide trackId and clientId",errorNoServerResponseRetry:"No response from server, please try again",errorNoServerResponse:"No response from server",errorPaymentMethodNotSelected:"Payment method is not selected",errorApplePayUnsupported:"Apple Pay is not supported in this browser",errorApplePayInit:"Apple Pay initialization error",errorApplePayPayment:"Apple Pay payment error",errorApplePayInterrupted:"Please confirm payment after the Apple Pay sheet fully loads",errorGooglePayUnsupported:"Google Pay is not supported in this browser",errorGooglePaySettingsUnavailable:"Google Pay settings are unavailable",errorGooglePayPayment:"Google Pay payment error",errorActionUrlMissing:"action_url is missing in order.action_required event",errorWidgetInit:"Widget initialization error",errorPaymentProcess:"Payment error"},kk:{paymentMethod:"Төлем әдісі",selectMethod:"Әдісті таңдаңыз",pay:"Төлеу",login:"Кіру",paymentSuccess:"Төлем сәтті өтті!",paymentError:"Төлем қатесі",paymentMethods:"Төлем әдісі",newCard:"Жаңа картамен төлеу",balance:"Балансты пайдалану",bonus:"Бонусдарды пайдалану",bonusText:"{amount}%-ге дейін төлеуге болады",cashback:"Кэшбэк",willGet:"Аласыз",total:"Барлығы",instead:"орнына",coupon:"Купонды пайдалану",couponSuppressesCashback:"Купон қолданылғанда бонустар есептелмейді",couponUntil:"{date} дейін",addCard:"Картаны қосу",editCards:"Карталарды өңдеу",cardDeleted:"Карта жойылды",confirmDeleteCard:"Картаны жойғыңыз келетініне сенімдісіз бе?",cancel:"Болдырмау",delete:"Жою",back:"Артқа",errorMissingTrackClient:"trackId пен clientId көрсетіңіз",errorNoServerResponseRetry:"Серверден жауап жоқ, қайтадан көріңіз",errorNoServerResponse:"Серверден жауап жоқ",errorPaymentMethodNotSelected:"Төлем әдісі таңдалмаған",errorApplePayUnsupported:"Бұл браузерде Apple Pay қолдау көрсетілмейді",errorApplePayInit:"Apple Pay инициализация қатесі",errorApplePayPayment:"Apple Pay арқылы төлем қатесі",errorApplePayInterrupted:"Өтінеміз, төлемді Apple Pay терезесі толық жүктелгеннен кейін растаңыз",errorGooglePayUnsupported:"Бұл браузерде Google Pay қолдау көрсетілмейді",errorGooglePaySettingsUnavailable:"Google Pay баптаулары қолжетімсіз",errorGooglePayPayment:"Google Pay арқылы төлем қатесі",errorActionUrlMissing:"order.action_required оқиғасында action_url жоқ",errorWidgetInit:"Виджетті инициализациялау қатесі",errorPaymentProcess:"Төлем қатесі"},ka:{paymentMethod:"გადახდის მეთოდი",selectMethod:"აირჩიეთ მეთოდი",pay:"გადახდა",login:"შესვლა",paymentSuccess:"გადახდა წარმატებით შესრულდა!",paymentError:"გადახდის შეცდომა",paymentMethods:"გადახდის მეთოდი",newCard:"ახალი ბარათით გადახდა",balance:"ბალანსის გამოყენება",bonus:"ბონუსების გამოყენება",bonusText:"{amount}%-ზე გადახდა შესაძლებელია",cashback:"ქეშბექი",willGet:"მიიღებთ",total:"ჯამი",instead:"ნაცვლად",coupon:"კუპონის გამოყენება",couponSuppressesCashback:"კუპონის გამოყენებისას ბონუსები არ დაირიცხება",couponUntil:"{date}-მდე",addCard:"ბარათის დამატება",editCards:"ბარათების რედაქტირება",cardDeleted:"ბარათი წაშლილია",confirmDeleteCard:"დარწმუნებული ხართ, რომ გსურთ ამ ბარათის წაშლა?",cancel:"გაუქმება",delete:"წაშლა",back:"უკან",errorMissingTrackClient:"მიუთითეთ trackId და clientId",errorNoServerResponseRetry:"სერვერის პასუხი არ არის, სცადეთ თავიდან",errorNoServerResponse:"სერვერის პასუხი არ არის",errorPaymentMethodNotSelected:"გადახდის მეთოდი არ არის არჩეული",errorApplePayUnsupported:"ამ ბრაუზერში Apple Pay არ არის მხარდაჭერილი",errorApplePayInit:"Apple Pay-ის ინიციალიზაციის შეცდომა",errorApplePayPayment:"Apple Pay-ით გადახდის შეცდომა",errorApplePayInterrupted:"გთხოვთ, დაადასტუროთ გადახდა Apple Pay-ის ფანჯრის სრულად ჩატვირთვის შემდეგ",errorGooglePayUnsupported:"ამ ბრაუზერში Google Pay არ არის მხარდაჭერილი",errorGooglePaySettingsUnavailable:"Google Pay-ის პარამეტრები მიუწვდომელია",errorGooglePayPayment:"Google Pay-ით გადახდის შეცდომა",errorActionUrlMissing:"order.action_required მოვლენაში action_url არ არის",errorWidgetInit:"ვიჯეტის ინიციალიზაციის შეცდომა",errorPaymentProcess:"გადახდის შეცდომა"}},Qe={KZT:"₸",GEL:"₾"};function Sr(e){return e==="production"?"https://api-proxy.choco.kz":"https://api-proxy.chocodev.kz"}let Ne;const _r=new Uint8Array(16);function Qr(){if(!Ne&&(Ne=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ne))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ne(_r)}const F=[];for(let e=0;e<256;++e)F.push((e+256).toString(16).slice(1));function kr(e,t=0){return F[e[t+0]]+F[e[t+1]]+F[e[t+2]]+F[e[t+3]]+"-"+F[e[t+4]]+F[e[t+5]]+"-"+F[e[t+6]]+F[e[t+7]]+"-"+F[e[t+8]]+F[e[t+9]]+"-"+F[e[t+10]]+F[e[t+11]]+F[e[t+12]]+F[e[t+13]]+F[e[t+14]]+F[e[t+15]]}const Wt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function De(e,t,n){if(Wt.randomUUID&&!e)return Wt.randomUUID();e=e||{};const r=e.random||(e.rng||Qr)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,kr(r)}const Yt="choco_device_id";function Z(e,t="ru",n="KZT"){const r=Number(e),o=t==="ru"?"ru-RU":"en-US";return`${r.toLocaleString(o)} ${Qe[n]}`}function Vt(){let e=localStorage.getItem(Yt);return e||(e=De(),localStorage.setItem(Yt,e)),e}function Me(){if(typeof window>"u")return!1;const e=window.safari!==void 0,t=window.navigator.userAgent||"",n=!!t.match(/iPad/i)||!!t.match(/iPhone/i),r=!!t.match(/WebKit/i),o=n&&r&&!t.match(/CriOS/i);return e||o}function Zt(){if(typeof navigator>"u")return 0;const e=navigator.userAgent||"",t=e.indexOf("OS");return(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?Number(e.substring(t+3,t+6).replace("_",".")):0}function yt(){var i;if(typeof navigator>"u")return"unknown";const e=(navigator.userAgent||navigator.vendor||"").toLowerCase(),t=(navigator.platform||"").toLowerCase(),n=(((i=navigator.userAgentData)==null?void 0:i.platform)||"").toLowerCase(),r=`${e} ${t} ${n}`;return/iphone|ipad|ipod/.test(r)||r.includes("macintosh")&&typeof document<"u"&&"ontouchend"in document?"ios":r.includes("android")?"android":r.includes("windows")?"windows":r.includes("mac")?"macos":"other"}function xe(){if(typeof navigator>"u")return!1;const e=navigator.userAgentData;return e!=null&&e.platform&&["iOS","iPadOS"].includes(e.platform)||yt()==="ios"?!0:(navigator.userAgent||"").includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Ue(e){if(typeof sessionStorage>"u")return!1;const t=e==="apple_pay"?"disableApplePay":e==="google_pay"?"disableGooglePay":null;return t?sessionStorage.getItem(t)==="true":!1}function Pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},wr=Fe.exports,$t;function Tr(){return $t||($t=1,(function(e,t){(function(r,o){e.exports=o()})(wr,function(){return(function(){var n={382:(function(c,u,l){Object.defineProperty(u,"__esModule",{value:!0}),u.Centrifuge=void 0;var h=I(l(187)),y=I(l(471)),m=l(147),b=l(853);function I(g){return g&&g.__esModule?g:{default:g}}function B(g){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(C){return typeof C}:B=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},B(g)}function Q(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function S(g,p){for(var C=0;C<p.length;C++){var d=p[C];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function P(g,p,C){return p&&S(g.prototype,p),g}function k(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),p&&L(g,p)}function L(g,p){return L=Object.setPrototypeOf||function(d,s){return d.__proto__=s,d},L(g,p)}function R(g){var p=G();return function(){var d=K(g),s;if(p){var a=K(this).constructor;s=Reflect.construct(d,arguments,a)}else s=d.apply(this,arguments);return z(this,s)}}function z(g,p){if(p&&(B(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(g)}function D(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function G(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K(g){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},K(g)}var J="timeout",M="connection closed",v=(function(g){k(C,g);var p=R(C);function C(d,s){var a;return Q(this,C),a=p.call(this),a._url=d,a._websocket=null,a._sockjs=null,a._isSockjs=!1,a._xmlhttprequest=null,a._binary=!1,a._methodType=null,a._pushType=null,a._encoder=null,a._decoder=null,a._status="disconnected",a._reconnect=!0,a._reconnecting=!1,a._transport=null,a._transportName=null,a._transportClosed=!0,a._messageId=0,a._clientID=null,a._refreshRequired=!1,a._subs={},a._serverSubs={},a._lastSeq={},a._lastGen={},a._lastOffset={},a._lastEpoch={},a._messages=[],a._isBatching=!1,a._isSubscribeBatching=!1,a._privateChannels={},a._numRefreshFailed=0,a._refreshTimeout=null,a._pingTimeout=null,a._pongTimeout=null,a._subRefreshTimeouts={},a._retries=0,a._callbacks={},a._latency=null,a._latencyStart=null,a._connectData=null,a._token=null,a._xhrID=0,a._xhrs={},a._dispatchPromise=Promise.resolve(),a._protocol="",a._config={protocol:"",debug:!1,name:"js",version:"",websocket:null,sockjs:null,xmlhttprequest:null,minRetry:1e3,maxRetry:2e4,timeout:5e3,ping:!0,pingInterval:25e3,pongWaitTimeout:5e3,privateChannelPrefix:"$",onTransportClose:null,sockjsServer:null,sockjsTimeout:null,sockjsTransports:["websocket","xdr-streaming","xhr-streaming","eventsource","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"],refreshEndpoint:"/centrifuge/refresh",refreshHeaders:{},refreshParams:{},refreshData:{},refreshAttempts:null,refreshInterval:1e3,onRefreshFailed:null,onRefresh:null,subscribeEndpoint:"/centrifuge/subscribe",subscribeHeaders:{},subscribeParams:{},subRefreshInterval:1e3,onPrivateSubscribe:null,disableWithCredentials:!1},a._configure(s),a}return P(C,[{key:"setToken",value:function(s){this._token=s}},{key:"setConnectData",value:function(s){this._connectData=s}},{key:"setRefreshHeaders",value:function(s){this._config.refreshHeaders=s}},{key:"setRefreshParams",value:function(s){this._config.refreshParams=s}},{key:"setRefreshData",value:function(s){this._config.refreshData=s}},{key:"setSubscribeHeaders",value:function(s){this._config.subscribeHeaders=s}},{key:"setSubscribeParams",value:function(s){this._config.subscribeParams=s}},{key:"_ajax",value:function(s,a,A,f,E){var _=this,T="";this._debug("sending AJAX request to",s,"with data",JSON.stringify(f));var w;this._xmlhttprequest!==null?w=new this._xmlhttprequest:w=l.g.XMLHttpRequest?new l.g.XMLHttpRequest:new l.g.ActiveXObject("Microsoft.XMLHTTP");for(var O in a)a.hasOwnProperty(O)&&(T.length>0&&(T+="&"),T+=encodeURIComponent(O)+"="+encodeURIComponent(a[O]));T.length>0&&(T="?"+T),w.open("POST",s+T,!0),"withCredentials"in w&&(w.withCredentials=!this._config.disableWithCredentials),w.setRequestHeader("X-Requested-With","XMLHttpRequest"),w.setRequestHeader("Content-Type","application/json");for(var X in A)A.hasOwnProperty(X)&&w.setRequestHeader(X,A[X]);return w.onreadystatechange=function(){if(w.readyState===4)if(w.status===200){var H,x=!1;try{H=JSON.parse(w.responseText),x=!0}catch{E({error:"Invalid JSON. Data was: "+w.responseText,status:200,data:null})}x&&E({data:H,status:200})}else _._log("wrong status code in AJAX response",w.status),E({status:w.status,data:null})},setTimeout(function(){return w.send(JSON.stringify(f))},20),w}},{key:"_log",value:function(){(0,b.log)("info",arguments)}},{key:"_debug",value:function(){this._config.debug===!0&&(0,b.log)("debug",arguments)}},{key:"_websocketSupported",value:function(){return this._config.websocket!==null?!0:!(typeof WebSocket!="function"&&(typeof WebSocket>"u"?"undefined":B(WebSocket))!=="object")}},{key:"_setFormat",value:function(s){if(!this._formatOverride(s)){if(s==="protobuf")throw new Error("not implemented by JSON only Centrifuge client – use client with Protobuf");this._binary=!1,this._methodType=m.JsonMethodType,this._pushType=m.JsonPushType,this._encoder=new m.JsonEncoder,this._decoder=new m.JsonDecoder}}},{key:"_formatOverride",value:function(s){return!1}},{key:"_configure",value:function(s){if(!("Promise"in l.g))throw new Error("Promise polyfill required");if((0,b.extend)(this._config,s||{}),this._debug("centrifuge config",this._config),!this._url)throw new Error("url required");var a=(0,b.startsWith)(this._url,"ws")&&this._url.indexOf("format=protobuf")>-1;if(a||this._config.protocol==="protobuf")this._setFormat("protobuf"),this._protocol="protobuf";else{if(this._config.protocol!==""&&this._config.protocol!=="json")throw new Error("unsupported protocol "+this._config.protocol);this._setFormat("json")}if((0,b.startsWith)(this._url,"http"))if(this._debug("client will try to connect to SockJS endpoint"),this._config.sockjs!==null)this._debug("SockJS explicitly provided in options"),this._sockjs=this._config.sockjs;else{if(typeof l.g.SockJS>"u")throw new Error("SockJS not found, use ws:// in url or include SockJS");this._debug("use globally defined SockJS"),this._sockjs=l.g.SockJS}else this._debug("client will connect to websocket endpoint");this._xmlhttprequest=this._config.xmlhttprequest}},{key:"_setStatus",value:function(s){this._status!==s&&(this._debug("Status",this._status,"->",s),this._status=s)}},{key:"_isDisconnected",value:function(){return this._status==="disconnected"}},{key:"_isConnecting",value:function(){return this._status==="connecting"}},{key:"_isConnected",value:function(){return this._status==="connected"}},{key:"_nextMessageId",value:function(){return++this._messageId}},{key:"_resetRetry",value:function(){this._debug("reset retries count to 0"),this._retries=0}},{key:"_getRetryInterval",value:function(){var s=(0,b.backoff)(this._retries,this._config.minRetry,this._config.maxRetry);return this._retries+=1,s}},{key:"_abortInflightXHRs",value:function(){for(var s in this._xhrs){try{this._xhrs[s].abort()}catch(a){this._debug("error aborting xhr",a)}delete this._xhrs[s]}}},{key:"_clearConnectedState",value:function(s){this._clientID=null,this._stopPing();for(var a in this._callbacks)if(this._callbacks.hasOwnProperty(a)){var A=this._callbacks[a];clearTimeout(A.timeout);var f=A.errback;if(!f)continue;f({error:this._createErrorObject("disconnected")})}this._callbacks={};for(var E in this._subs)if(this._subs.hasOwnProperty(E)){var _=this._subs[E];s?(_._isSuccess()&&(_._triggerUnsubscribe(),_._recover=!0),_._shouldResubscribe()&&_._setSubscribing()):_._setUnsubscribed()}this._abortInflightXHRs(),this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);for(var T in this._subRefreshTimeouts)this._subRefreshTimeouts.hasOwnProperty(T)&&this._subRefreshTimeouts[T]&&this._clearSubRefreshTimeout(T);this._subRefreshTimeouts={},this._reconnect||(this._subs={})}},{key:"_isTransportOpen",value:function(){return this._isSockjs?this._transport&&this._transport.transport&&this._transport.transport.readyState===this._transport.transport.OPEN:this._transport&&this._transport.readyState===this._transport.OPEN}},{key:"_transportSend",value:function(s){if(!s.length)return!0;if(!this._isTransportOpen()){for(var a in s){var A=a.id;if(A in this._callbacks){var f=this._callbacks[A];clearTimeout(this._callbacks[A].timeout),delete this._callbacks[A];var E=f.errback;E({error:this._createErrorObject(M,0)})}}return!1}return this._transport.send(this._encoder.encodeCommands(s)),!0}},{key:"_getSubProtocol",value:function(){return this._protocol?"centrifuge-"+this._protocol:""}},{key:"_setupTransport",value:function(){var s=this;if(this._isSockjs=!1,this._sockjs!==null){var a={transports:this._config.sockjsTransports};this._config.sockjsServer!==null&&(a.server=this._config.sockjsServer),this._config.sockjsTimeout!==null&&(a.timeout=this._config.sockjsTimeout),this._isSockjs=!0,this._transport=new this._sockjs(this._url,null,a)}else{if(!this._websocketSupported())throw this._debug("No Websocket support and no SockJS configured, can not connect"),new Error("No Websocket support and no SockJS configured, can not connect");this._config.websocket!==null?this._websocket=this._config.websocket:this._websocket=WebSocket;var A=this._getSubProtocol();A!==""?this._transport=new this._websocket(this._url,A):this._transport=new this._websocket(this._url),this._binary===!0&&(this._transport.binaryType="arraybuffer")}this._transport.onopen=function(){s._transportClosed=!1,s._isSockjs?(s._transportName="sockjs-"+s._transport.transport,s._transport.onheartbeat=function(){return s._restartPing()}):s._transportName="websocket";var f={};(s._token||s._connectData||s._config.name||s._config.version)&&(f.params={}),s._token&&(f.params.token=s._token),s._connectData&&(f.params.data=s._connectData),s._config.name&&(f.params.name=s._config.name),s._config.version&&(f.params.version=s._config.version);var E={},_=!1;for(var T in s._serverSubs)if(s._serverSubs.hasOwnProperty(T)&&s._serverSubs[T].recoverable){_=!0;var w={recover:!0};s._serverSubs[T].seq||s._serverSubs[T].gen?(s._serverSubs[T].seq&&(w.seq=s._serverSubs[T].seq),s._serverSubs[T].gen&&(w.gen=s._serverSubs[T].gen)):s._serverSubs[T].offset&&(w.offset=s._serverSubs[T].offset),s._serverSubs[T].epoch&&(w.epoch=s._serverSubs[T].epoch),E[T]=w}_&&(f.params||(f.params={}),f.params.subs=E),s._latencyStart=new Date,s._call(f).then(function(O){s._connectResponse(s._decoder.decodeCommandResult(s._methodType.CONNECT,O.result),_),O.next&&O.next()},function(O){var X=O.error;X.code===109&&(s._refreshRequired=!0),s._disconnect("connect error",!0),O.next&&O.next()})},this._transport.onerror=function(f){s._debug("transport level error",f)},this._transport.onclose=function(f){s._transportClosed=!0;var E=M,_=!0;if(f&&"reason"in f&&f.reason)try{var T=JSON.parse(f.reason);s._debug("reason is an advice object",T),E=T.reason,_=T.reconnect}catch{E=f.reason,s._debug("reason is a plain string",E)}if(s._config.onTransportClose!==null&&s._config.onTransportClose({event:f,reason:E,reconnect:_}),s._disconnect(E,_),s._reconnect===!0){s._reconnecting=!0;var w=s._getRetryInterval();s._debug("reconnect after "+w+" milliseconds"),setTimeout(function(){s._reconnect===!0&&(s._refreshRequired?s._refresh():s._connect())},w)}},this._transport.onmessage=function(f){s._dataReceived(f.data)}}},{key:"rpc",value:function(s){return this._rpc("",s)}},{key:"namedRPC",value:function(s,a){return this._rpc(s,a)}},{key:"_rpc",value:function(s,a){var A={data:a};s!==""&&(A.method=s);var f={method:this._methodType.RPC,params:A};return this._methodCall(f,function(E){return E})}},{key:"send",value:function(s){var a={method:this._methodType.SEND,params:{data:s}};if(!this.isConnected())return Promise.reject(this._createErrorObject(M,0));var A=this._transportSend([a]);return A?Promise.resolve({}):Promise.reject(this._createErrorObject(M,0))}},{key:"_getHistoryParams",value:function(s,a){var A={channel:s};return a!==void 0&&(a.since&&(A.since={offset:a.since.offset},a.since.epoch&&(A.since.epoch=a.since.epoch)),a.limit!==void 0&&(A.limit=a.limit),a.reverse===!0&&(A.reverse=!0)),A}},{key:"_methodCall",value:function(s,a){var A=this;return this.isConnected()?new Promise(function(f,E){A._call(s).then(function(_){f(a(A._decoder.decodeCommandResult(s.method,_.result))),_.next&&_.next()},function(_){E(_.error),_.next&&_.next()})}):Promise.reject(this._createErrorObject(M,0))}},{key:"publish",value:function(s,a){var A={method:this._methodType.PUBLISH,params:{channel:s,data:a}};return this._methodCall(A,function(){return{}})}},{key:"history",value:function(s,a){var A=this._getHistoryParams(s,a),f={method:this._methodType.HISTORY,params:A};return this._methodCall(f,function(E){return{publications:E.publications,epoch:E.epoch||"",offset:E.offset||0}})}},{key:"presence",value:function(s){var a={method:this._methodType.PRESENCE,params:{channel:s}};return this._methodCall(a,function(A){return{presence:A.presence}})}},{key:"presenceStats",value:function(s){var a={method:this._methodType.PRESENCE_STATS,params:{channel:s}};return this._methodCall(a,function(A){return{num_users:A.num_users,num_clients:A.num_clients}})}},{key:"_dataReceived",value:function(s){var a=this,A=this._decoder.decodeReplies(s);this._dispatchPromise=this._dispatchPromise.then(function(){var f;a._dispatchPromise=new Promise(function(E){f=E}),a._dispatchSynchronized(A,f)}),this._restartPing()}},{key:"_dispatchSynchronized",value:function(s,a){var A=this,f=Promise.resolve(),E=function(w){s.hasOwnProperty(w)&&(f=f.then(function(){return A._dispatchReply(s[w])}))};for(var _ in s)E(_);f=f.then(function(){a()})}},{key:"_dispatchReply",value:function(s){var a,A=new Promise(function(E){a=E});if(s==null)return this._debug("dispatch: got undefined or null reply"),a(),A;var f=s.id;return f&&f>0?this._handleReply(s,a):this._handlePush(s.result,a),A}},{key:"_call",value:function(s){var a=this;return new Promise(function(A,f){var E=a._addMessage(s);a._registerCall(E,A,f)})}},{key:"_connect",value:function(){if(this.isConnected()){this._debug("connect called when already connected");return}this._status!=="connecting"&&(this._debug("start connecting"),this._setStatus("connecting"),this._clientID=null,this._reconnect=!0,this._setupTransport())}},{key:"_disconnect",value:function(s,a){var A=a||!1;if(A===!1&&(this._reconnect=!1),this._isDisconnected()){A||this._clearConnectedState(A);return}if(this._clearConnectedState(A),this._debug("disconnected:",s,a),this._setStatus("disconnected"),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._reconnecting===!1){for(var f in this._serverSubs)this._serverSubs.hasOwnProperty(f)&&this.emit("unsubscribe",{channel:f});this.emit("disconnect",{reason:s,reconnect:A})}A===!1&&(this._subs={},this._serverSubs={}),this._transportClosed||this._transport.close()}},{key:"_refreshFailed",value:function(){this._numRefreshFailed=0,this._isDisconnected()||this._disconnect("refresh failed",!1),this._config.onRefreshFailed!==null&&this._config.onRefreshFailed()}},{key:"_refresh",value:function(){var s=this;if(this._debug("refresh token"),this._config.refreshAttempts===0){this._debug("refresh attempts set to 0, do not send refresh request at all"),this._refreshFailed();return}this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var a=this._clientID,A=this._newXHRID(),f=function(w){if(A in s._xhrs&&delete s._xhrs[A],s._clientID===a){if(w.error||w.status!==200){if(w.error?s._debug("error refreshing connection token",w.error):s._debug("error refreshing connection token: wrong status code",w.status),s._numRefreshFailed++,s._refreshTimeout!==null&&(clearTimeout(s._refreshTimeout),s._refreshTimeout=null),s._config.refreshAttempts!==null&&s._numRefreshFailed>=s._config.refreshAttempts){s._refreshFailed();return}var O=Math.round(Math.random()*1e3*Math.max(s._numRefreshFailed,20)),X=s._config.refreshInterval+O;s._refreshTimeout=setTimeout(function(){return s._refresh()},X);return}if(s._numRefreshFailed=0,s._token=w.data.token,!s._token){s._refreshFailed();return}if(s._isDisconnected()&&s._reconnect)s._debug("token refreshed, connect from scratch"),s._connect();else{s._debug("send refreshed token");var H={method:s._methodType.REFRESH,params:{token:s._token}};s._call(H).then(function(x){s._refreshResponse(s._decoder.decodeCommandResult(s._methodType.REFRESH,x.result)),x.next&&x.next()},function(x){s._refreshError(x.error),x.next&&x.next()})}}};if(this._config.onRefresh!==null){var E={};this._config.onRefresh(E,f)}else{var _=this._ajax(this._config.refreshEndpoint,this._config.refreshParams,this._config.refreshHeaders,this._config.refreshData,f);this._xhrs[A]=_}}},{key:"_refreshError",value:function(s){var a=this;this._debug("refresh error",s),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var A=this._config.refreshInterval+Math.round(Math.random()*1e3);this._refreshTimeout=setTimeout(function(){return a._refresh()},A)}},{key:"_refreshResponse",value:function(s){var a=this;this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),s.expires&&(this._clientID=s.client,this._refreshTimeout=setTimeout(function(){return a._refresh()},this._getTTLMilliseconds(s.ttl)))}},{key:"_newXHRID",value:function(){return this._xhrID++,this._xhrID}},{key:"_subRefresh",value:function(s){var a=this;if(this._debug("refresh subscription token for channel",s),this._subRefreshTimeouts[s]!==void 0)this._clearSubRefreshTimeout(s);else return;var A=this._clientID,f=this._newXHRID(),E=function(O){if(f in a._xhrs&&delete a._xhrs[f],!(O.error||O.status!==200||a._clientID!==A)){var X={};if(O.data.channels)for(var H in O.data.channels){var x=O.data.channels[H];x.channel&&(X[x.channel]=x.token)}var Be=X[s];if(Be){var qt={method:a._methodType.SUB_REFRESH,params:{channel:s,token:Be}},gt=a._getSub(s);gt!==null&&a._call(qt).then(function(ie){a._subRefreshResponse(s,a._decoder.decodeCommandResult(a._methodType.SUB_REFRESH,ie.result)),ie.next&&ie.next()},function(ie){a._subRefreshError(s,ie.error),ie.next&&ie.next()})}}},_={client:this._clientID,channels:[s]};if(this._config.onPrivateSubscribe!==null)this._config.onPrivateSubscribe({data:_},E);else{var T=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,_,E);this._xhrs[f]=T}}},{key:"_clearSubRefreshTimeout",value:function(s){this._subRefreshTimeouts[s]!==void 0&&(clearTimeout(this._subRefreshTimeouts[s]),delete this._subRefreshTimeouts[s])}},{key:"_subRefreshError",value:function(s,a){var A=this;this._debug("subscription refresh error",s,a),this._clearSubRefreshTimeout(s);var f=this._getSub(s);if(f!==null){var E=Math.round(Math.random()*1e3),_=setTimeout(function(){return A._subRefresh(s)},this._config.subRefreshInterval+E);this._subRefreshTimeouts[s]=_}}},{key:"_subRefreshResponse",value:function(s,a){var A=this;this._debug("subscription refresh success",s),this._clearSubRefreshTimeout(s);var f=this._getSub(s);if(f!==null&&a.expires===!0){var E=setTimeout(function(){return A._subRefresh(s)},this._getTTLMilliseconds(a.ttl));this._subRefreshTimeouts[s]=E}}},{key:"_subscribe",value:function(s,a){var A=this;this._debug("subscribing on",s.channel);var f=s.channel;if(f in this._subs||(this._subs[f]=s),!this.isConnected()){s._setNew();return}s._setSubscribing(a);var E={method:this._methodType.SUBSCRIBE,params:{channel:f}};if(s._subscribeData&&(E.params.data=s._subscribeData),(0,b.startsWith)(f,this._config.privateChannelPrefix))this._isSubscribeBatching?this._privateChannels[f]=!0:(this.startSubscribeBatching(),this._subscribe(s),this.stopSubscribeBatching());else{var _=s._needRecover();if(_===!0){E.params.recover=!0;var T=this._getLastSeq(f),w=this._getLastGen(f);if(T||w)T&&(E.params.seq=T),w&&(E.params.gen=w);else{var O=this._getLastOffset(f);O&&(E.params.offset=O)}var X=this._getLastEpoch(f);X&&(E.params.epoch=X)}this._call(E).then(function(H){A._subscribeResponse(f,_,A._decoder.decodeCommandResult(A._methodType.SUBSCRIBE,H.result)),H.next&&H.next()},function(H){A._subscribeError(f,H.error),H.next&&H.next()})}}},{key:"_unsubscribe",value:function(s){delete this._subs[s.channel],delete this._lastOffset[s.channel],delete this._lastSeq[s.channel],delete this._lastGen[s.channel],this.isConnected()&&this._addMessage({method:this._methodType.UNSUBSCRIBE,params:{channel:s.channel}})}},{key:"_getTTLMilliseconds",value:function(s){return Math.min(s*1e3,2147483647)}},{key:"getSub",value:function(s){return this._getSub(s)}},{key:"_getSub",value:function(s){var a=this._subs[s];return a||null}},{key:"_isServerSub",value:function(s){return this._serverSubs[s]!==void 0}},{key:"_connectResponse",value:function(s,a){var A=this,f=this._reconnecting;if(this._reconnecting=!1,this._resetRetry(),this._refreshRequired=!1,!this.isConnected()){this._latencyStart!==null&&(this._latency=new Date().getTime()-this._latencyStart.getTime(),this._latencyStart=null),this._clientID=s.client,this._setStatus("connected"),this._refreshTimeout&&clearTimeout(this._refreshTimeout),s.expires&&(this._refreshTimeout=setTimeout(function(){return A._refresh()},this._getTTLMilliseconds(s.ttl))),this.startBatching(),this.startSubscribeBatching();for(var E in this._subs)if(this._subs.hasOwnProperty(E)){var _=this._subs[E];_._shouldResubscribe()&&this._subscribe(_,f)}this.stopSubscribeBatching(),this.stopBatching(),this._startPing();var T={client:s.client,transport:this._transportName,latency:this._latency};s.data&&(T.data=s.data),this.emit("connect",T),s.subs&&this._processServerSubs(s.subs)}}},{key:"_processServerSubs",value:function(s){for(var a in s)if(s.hasOwnProperty(a)){var A=s[a],f=this._serverSubs[a]!==void 0,E={channel:a,isResubscribe:f};E=this._expandSubscribeContext(E,A),this.emit("subscribe",E)}for(var _ in s)if(s.hasOwnProperty(_)){var T=s[_];if(T.recovered){var w=T.publications;if(w&&w.length>0){w.length>1&&(!w[0].offset||w[0].offset>w[1].offset)&&(w=w.reverse());for(var O in w)w.hasOwnProperty(O)&&this._handlePublication(_,w[O])}}this._serverSubs[_]={seq:T.seq,gen:T.gen,offset:T.offset,epoch:T.epoch,recoverable:T.recoverable}}}},{key:"_stopPing",value:function(){this._pongTimeout!==null&&(clearTimeout(this._pongTimeout),this._pongTimeout=null),this._pingTimeout!==null&&(clearTimeout(this._pingTimeout),this._pingTimeout=null)}},{key:"_startPing",value:function(){var s=this;this._config.ping!==!0||this._config.pingInterval<=0||this.isConnected()&&(this._pingTimeout=setTimeout(function(){if(!s.isConnected()){s._stopPing();return}s.ping(),s._pongTimeout=setTimeout(function(){s._disconnect("no ping",!0)},s._config.pongWaitTimeout)},this._config.pingInterval))}},{key:"_restartPing",value:function(){this._stopPing(),this._startPing()}},{key:"_subscribeError",value:function(s,a){var A=this._getSub(s);if(A&&A._isSubscribing()){if(a.code===0&&a.message===J){this._disconnect("timeout",!0);return}A._setSubscribeError(a)}}},{key:"_expandSubscribeContext",value:function(s,a){var A=!1;"recovered"in a&&(A=a.recovered),s.recovered=A;var f=!1;"positioned"in a&&(f=a.positioned);var E="";"epoch"in a&&(E=a.epoch);var _=0;return"offset"in a&&(_=a.offset),f&&(s.streamPosition={offset:_,epoch:E}),a.data&&(s.data=a.data),s}},{key:"_subscribeResponse",value:function(s,a,A){var f=this,E=this._getSub(s);if(E&&E._isSubscribing()){E._setSubscribeSuccess(A);var _=A.publications;if(_&&_.length>0){_.length>=2&&!_[0].offset&&!_[1].offset&&(_=_.reverse());for(var T in _)_.hasOwnProperty(T)&&this._handlePublication(s,_[T])}if(A.recoverable&&(!a||!A.recovered)&&(this._lastSeq[s]=A.seq||0,this._lastGen[s]=A.gen||0,this._lastOffset[s]=A.offset||0),this._lastEpoch[s]=A.epoch||"",A.recoverable&&(E._recoverable=!0),A.expires===!0){var w=setTimeout(function(){return f._subRefresh(s)},this._getTTLMilliseconds(A.ttl));this._subRefreshTimeouts[s]=w}}}},{key:"_handleReply",value:function(s,a){var A=s.id,f=s.result;if(!(A in this._callbacks)){a();return}var E=this._callbacks[A];if(clearTimeout(this._callbacks[A].timeout),delete this._callbacks[A],(0,b.errorExists)(s)){var T=E.errback;if(!T){a();return}var w=s.error;T({error:w,next:a})}else{var _=E.callback;if(!_)return;_({result:f,next:a})}}},{key:"_handleJoin",value:function(s,a){var A={info:a.info},f=this._getSub(s);if(!f){this._isServerSub(s)&&(A.channel=s,this.emit("join",A));return}f.emit("join",A)}},{key:"_handleLeave",value:function(s,a){var A={info:a.info},f=this._getSub(s);if(!f){this._isServerSub(s)&&(A.channel=s,this.emit("leave",A));return}f.emit("leave",A)}},{key:"_handleUnsub",value:function(s,a){var A={},f=this._getSub(s);if(!f){this._isServerSub(s)&&(delete this._serverSubs[s],A.channel=s,this.emit("unsubscribe",A));return}f.unsubscribe(),a.resubscribe===!0&&f.subscribe()}},{key:"_handleSub",value:function(s,a){this._serverSubs[s]={seq:a.seq,gen:a.gen,offset:a.offset,epoch:a.epoch,recoverable:a.recoverable};var A={channel:s,isResubscribe:!1};A=this._expandSubscribeContext(A,a),this.emit("subscribe",A)}},{key:"_handlePublication",value:function(s,a){var A=this._getSub(s),f={data:a.data,seq:a.seq,gen:a.gen,offset:a.offset};if(a.info&&(f.info=a.info),!A){this._isServerSub(s)&&(a.seq!==void 0&&(this._serverSubs[s].seq=a.seq),a.gen!==void 0&&(this._serverSubs[s].gen=a.gen),a.offset!==void 0&&(this._serverSubs[s].offset=a.offset),f.channel=s,this.emit("publish",f));return}a.seq!==void 0&&(this._lastSeq[s]=a.seq),a.gen!==void 0&&(this._lastGen[s]=a.gen),a.offset!==void 0&&(this._lastOffset[s]=a.offset),A.emit("publish",f)}},{key:"_handleMessage",value:function(s){this.emit("message",s.data)}},{key:"_handlePush",value:function(s,a){var A=this._decoder.decodePush(s),f=0;"type"in A&&(f=A.type);var E=A.channel;if(f===this._pushType.PUBLICATION){var _=this._decoder.decodePushData(this._pushType.PUBLICATION,A.data);this._handlePublication(E,_)}else if(f===this._pushType.MESSAGE){var T=this._decoder.decodePushData(this._pushType.MESSAGE,A.data);this._handleMessage(T)}else if(f===this._pushType.JOIN){var w=this._decoder.decodePushData(this._pushType.JOIN,A.data);this._handleJoin(E,w)}else if(f===this._pushType.LEAVE){var O=this._decoder.decodePushData(this._pushType.LEAVE,A.data);this._handleLeave(E,O)}else if(f===this._pushType.UNSUBSCRIBE){var X=this._decoder.decodePushData(this._pushType.UNSUBSCRIBE,A.data);this._handleUnsub(E,X)}else if(f===this._pushType.SUBSCRIBE){var H=this._decoder.decodePushData(this._pushType.UNSUBSCRIBE,A.data);this._handleSub(E,H)}a()}},{key:"_flush",value:function(){var s=this._messages.slice(0);this._messages=[],this._transportSend(s)}},{key:"_ping",value:function(){var s=this,a={method:this._methodType.PING};this._call(a).then(function(A){s._pingResponse(s._decoder.decodeCommandResult(s._methodType.PING,A.result)),A.next&&A.next()},function(A){s._debug("ping error",A.error),A.next&&A.next()})}},{key:"_pingResponse",value:function(s){this.isConnected()&&(this._stopPing(),this._startPing())}},{key:"_getLastSeq",value:function(s){var a=this._lastSeq[s];return a||0}},{key:"_getLastOffset",value:function(s){var a=this._lastOffset[s];return a||0}},{key:"_getLastGen",value:function(s){var a=this._lastGen[s];return a||0}},{key:"_getLastEpoch",value:function(s){var a=this._lastEpoch[s];return a||""}},{key:"_createErrorObject",value:function(s,a){var A={message:s,code:a||0};return A}},{key:"_registerCall",value:function(s,a,A){var f=this;this._callbacks[s]={callback:a,errback:A,timeout:null},this._callbacks[s].timeout=setTimeout(function(){delete f._callbacks[s],(0,b.isFunction)(A)&&A({error:f._createErrorObject(J)})},this._config.timeout)}},{key:"_addMessage",value:function(s){var a=this._nextMessageId();return s.id=a,this._isBatching===!0?this._messages.push(s):this._transportSend([s]),a}},{key:"isConnected",value:function(){return this._isConnected()}},{key:"connect",value:function(){this._connect()}},{key:"disconnect",value:function(){this._disconnect("client",!1)}},{key:"ping",value:function(){return this._ping()}},{key:"startBatching",value:function(){this._isBatching=!0}},{key:"stopBatching",value:function(){this._isBatching=!1,this._flush()}},{key:"startSubscribeBatching",value:function(){this._isSubscribeBatching=!0}},{key:"stopSubscribeBatching",value:function(){var s=this;this._isSubscribeBatching=!1;var a=this._privateChannels;this._privateChannels={};var A=[];for(var f in a)if(a.hasOwnProperty(f)){var E=this._getSub(f);if(!E)continue;A.push(f)}if(A.length===0){this._debug("no private channels found, no need to make request");return}var _={client:this._clientID,channels:A},T=this._clientID,w=this._newXHRID(),O=function(x){if(w in s._xhrs&&delete s._xhrs[w],s._clientID===T){if(x.error||x.status!==200){s._debug("authorization request failed");for(var Be in A)if(A.hasOwnProperty(Be)){var qt=A[Be];s._subscribeError(qt,s._createErrorObject("authorization request failed"))}return}var gt={};if(x.data.channels)for(var ie in x.data.channels){var zt=x.data.channels[ie];zt.channel&&(gt[zt.channel]=zt.token)}var mr=!1;s._isBatching||(s.startBatching(),mr=!0);for(var Cr in A)if(A.hasOwnProperty(Cr)){var ra=(function(){var te=A[Cr],br=gt[te];if(br){var Se={method:s._methodType.SUBSCRIBE,params:{channel:te,token:br}},Er=s._getSub(te);if(Er===null)return"continue";var vr=Er._needRecover();if(vr===!0){Se.params.recover=!0;var Kt=s._getLastSeq(te),Gt=s._getLastGen(te);if(Kt||Gt)Kt&&(Se.params.seq=Kt),Gt&&(Se.params.gen=Gt);else{var Ir=s._getLastOffset(te);Ir&&(Se.params.offset=Ir)}var Br=s._getLastEpoch(te);Br&&(Se.params.epoch=Br)}s._call(Se).then(function(me){s._subscribeResponse(te,vr,s._decoder.decodeCommandResult(s._methodType.SUBSCRIBE,me.result)),me.next&&me.next()},function(me){s._subscribeError(te,me.error),me.next&&me.next()})}else return s._subscribeError(te,s._createErrorObject("permission denied",103)),"continue"})();if(ra==="continue")continue}mr&&s.stopBatching()}};if(this._config.onPrivateSubscribe!==null)this._config.onPrivateSubscribe({data:_},O);else{var X=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,_,O);this._xhrs[w]=X}}},{key:"_setSubscribeSince",value:function(s,a){this._lastOffset[s.channel]=a.offset,this._lastEpoch[s.channel]=a.epoch,s._setNeedRecover(!0)}},{key:"subscribe",value:function(s,a,A){var f=this._getSub(s);if(f!==null)return f._setEvents(a),f._isUnsubscribed()&&f.subscribe(A),f;var E=new y.default(this,s,a);return this._subs[s]=E,E.subscribe(A),E}}]),C})(h.default);u.Centrifuge=v}),579:(function(c,u,l){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var h=l(382),y=h.Centrifuge;u.default=y,c.exports=u.default}),147:(function(c,u){Object.defineProperty(u,"__esModule",{value:!0}),u.JsonPushType=u.JsonMethodType=u.JsonEncoder=u.JsonDecoder=void 0;function l(Q,S){if(!(Q instanceof S))throw new TypeError("Cannot call a class as a function")}function h(Q,S){for(var P=0;P<S.length;P++){var k=S[P];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(Q,k.key,k)}}function y(Q,S,P){return S&&h(Q.prototype,S),Q}var m={CONNECT:0,SUBSCRIBE:1,UNSUBSCRIBE:2,PUBLISH:3,PRESENCE:4,PRESENCE_STATS:5,HISTORY:6,PING:7,SEND:8,RPC:9,REFRESH:10,SUB_REFRESH:11};u.JsonMethodType=m;var b={PUBLICATION:0,JOIN:1,LEAVE:2,UNSUBSCRIBE:3,MESSAGE:4,SUBSCRIBE:5};u.JsonPushType=b;var I=(function(){function Q(){l(this,Q)}return y(Q,[{key:"encodeCommands",value:function(P){return P.map(function(k){return JSON.stringify(k)}).join(`
3
3
  `)}}]),Q})();u.JsonEncoder=I;var B=(function(){function Q(){l(this,Q)}return y(Q,[{key:"decodeReplies",value:function(P){return P.split(`
4
- `).filter(function(k){return k!==""}).map(function(k){return JSON.parse(k)})}},{key:"decodeCommandResult",value:function(P,k){return k}},{key:"decodePush",value:function(P){return P}},{key:"decodePushData",value:function(P,k){return k}}]),Q})();u.JsonDecoder=B}),471:(function(c,u,l){function h(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(d){return typeof d}:h=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},h(p)}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var y=b(l(187)),m=l(853);function b(p){return p&&p.__esModule?p:{default:p}}function I(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")}function B(p,C){for(var d=0;d<C.length;d++){var s=C[d];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(p,s.key,s)}}function Q(p,C,d){return C&&B(p.prototype,C),p}function S(p,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(C&&C.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),C&&P(p,C)}function P(p,C){return P=Object.setPrototypeOf||function(s,a){return s.__proto__=a,s},P(p,C)}function k(p){var C=z();return function(){var s=D(p),a;if(C){var A=D(this).constructor;a=Reflect.construct(s,arguments,A)}else a=s.apply(this,arguments);return R(this,a)}}function R(p,C){if(C&&(h(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(p)}function L(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(p){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},D(p)}var G=0,K=1,J=2,M=3,v=4,g=(function(p){S(d,p);var C=k(d);function d(s,a,A){var f;return I(this,d),f=C.call(this),f.channel=a,f._centrifuge=s,f._status=G,f._error=null,f._isResubscribe=!1,f._ready=!1,f._subscriptionPromise=null,f._noResubscribe=!1,f._recoverable=!1,f._recover=!1,f._setEvents(A),f._initializePromise(),f._promises={},f._promiseId=0,f._subscribeData=null,f.on("error",function(E){this._centrifuge._debug("subscription error",E)}),f}return Q(d,[{key:"_nextPromiseId",value:function(){return++this._promiseId}},{key:"_initializePromise",value:function(){var a=this;this._ready=!1,this._subscriptionPromise=new Promise(function(A,f){a._resolve=function(E){a._ready=!0,A(E)},a._reject=function(E){a._ready=!0,f(E)}}).then(function(){},function(){})}},{key:"_setNeedRecover",value:function(a){this._recoverable=a,this._recover=a}},{key:"_needRecover",value:function(){return this._recoverable===!0&&this._recover===!0}},{key:"_setEvents",value:function(a){if(a){if((0,m.isFunction)(a))this.on("publish",a);else if(Object.prototype.toString.call(a)===Object.prototype.toString.call({}))for(var A=["publish","join","leave","unsubscribe","subscribe","error"],f=0,E=A.length;f<E;f++){var _=A[f];_ in a&&this.on(_,a[_])}}}},{key:"_isNew",value:function(){return this._status===G}},{key:"_isUnsubscribed",value:function(){return this._status===v}},{key:"_isSubscribing",value:function(){return this._status===K}},{key:"_isReady",value:function(){return this._status===J||this._status===M}},{key:"_isSuccess",value:function(){return this._status===J}},{key:"_isError",value:function(){return this._status===M}},{key:"_setNew",value:function(){this._status=G}},{key:"_setSubscribing",value:function(a){this._isResubscribe=a||!1,this._ready===!0&&this._initializePromise(),this._status=K}},{key:"_setSubscribeSuccess",value:function(a){if(this._status!==J){this._status=J;var A=this._getSubscribeSuccessContext(a);this._recover=!1,this.emit("subscribe",A),this._resolve(A);for(var f in this._promises)clearTimeout(this._promises[f].timeout),this._promises[f].resolve(),delete this._promises[f]}}},{key:"_setSubscribeError",value:function(a){if(this._status!==M){this._status=M,this._error=a;var A=this._getSubscribeErrorContext();this.emit("error",A),this._reject(A);for(var f in this._promises)clearTimeout(this._promises[f].timeout),this._promises[f].reject(a),delete this._promises[f]}}},{key:"_triggerUnsubscribe",value:function(){this.emit("unsubscribe",{channel:this.channel})}},{key:"_setUnsubscribed",value:function(a){if(this._centrifuge._clearSubRefreshTimeout(this.channel),this._status!==v){var A=this._status===J;this._status=v,a===!0&&(this._recover=!1,this._noResubscribe=!0,delete this._centrifuge._lastSeq[this.channel],delete this._centrifuge._lastGen[this.channel],delete this._centrifuge._lastEpoch[this.channel]),A&&this._triggerUnsubscribe()}}},{key:"_shouldResubscribe",value:function(){return!this._noResubscribe}},{key:"_getSubscribeSuccessContext",value:function(a){var A={channel:this.channel,isResubscribe:this._isResubscribe};return a&&(A=this._centrifuge._expandSubscribeContext(A,a)),A}},{key:"_getSubscribeErrorContext",value:function(){var a=this._error;return a.channel=this.channel,a.isResubscribe=this._isResubscribe,a}},{key:"_setSubscribeData",value:function(a){this._subscribeData=a}},{key:"ready",value:function(a,A){this._ready&&(this._isSuccess()?a(this._getSubscribeSuccessContext()):A(this._getSubscribeErrorContext()))}},{key:"subscribe",value:function(a){this._status!==J&&(a&&a.since&&this._centrifuge._setSubscribeSince(this,a.since),a&&a.data&&this._setSubscribeData(a.data),this._noResubscribe=!1,this._centrifuge._subscribe(this))}},{key:"unsubscribe",value:function(){this._setUnsubscribed(!0),this._centrifuge._unsubscribe(this)}},{key:"_methodCall",value:function(){var a=this;if(this._isSuccess())return Promise.resolve();if(this._isError())return Promise.reject(this._error);var A=new Promise(function(f,E){var _=setTimeout(function(){E({code:0,message:"timeout"})},a._centrifuge._config.timeout);a._promises[a._nextPromiseId()]={timeout:_,resolve:f,reject:E}});return A}},{key:"publish",value:function(a){var A=this;return this._methodCall().then(function(){return A._centrifuge.publish(A.channel,a)})}},{key:"presence",value:function(){var a=this;return this._methodCall().then(function(){return a._centrifuge.presence(a.channel)})}},{key:"presenceStats",value:function(){var a=this;return this._methodCall().then(function(){return a._centrifuge.presenceStats(a.channel)})}},{key:"history",value:function(a){var A=this;return this._methodCall().then(function(){return A._centrifuge.history(A.channel,a)})}}]),d})(y.default);u.default=g,c.exports=u.default}),853:(function(c,u,l){Object.defineProperty(u,"__esModule",{value:!0}),u.backoff=b,u.errorExists=I,u.extend=B,u.isFunction=y,u.log=m,u.startsWith=h;function h(Q,S){return Q.lastIndexOf(S,0)===0}function y(Q){return Q==null?!1:typeof Q=="function"}function m(Q,S){if(l.g.console){var P=l.g.console[Q];y(P)&&P.apply(l.g.console,S)}}function b(Q,S,P){var k=.5*Math.random(),R=Math.min(P,S*Math.pow(2,Q+1));return Math.floor((1-k)*R)}function I(Q){return"error"in Q&&Q.error!==null}function B(Q,S){for(var P in S)S.hasOwnProperty(P)&&(Q[P]=S[P]);return Q}}),187:(function(c){var u=typeof Reflect=="object"?Reflect:null,l=u&&typeof u.apply=="function"?u.apply:function(g,p,C){return Function.prototype.apply.call(g,p,C)},h;u&&typeof u.ownKeys=="function"?h=u.ownKeys:Object.getOwnPropertySymbols?h=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:h=function(g){return Object.getOwnPropertyNames(g)};function y(v){console&&console.warn&&console.warn(v)}var m=Number.isNaN||function(g){return g!==g};function b(){b.init.call(this)}c.exports=b,c.exports.once=K,b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var I=10;function B(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return I},set:function(v){if(typeof v!="number"||v<0||m(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");I=v}}),b.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},b.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||m(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function Q(v){return v._maxListeners===void 0?b.defaultMaxListeners:v._maxListeners}b.prototype.getMaxListeners=function(){return Q(this)},b.prototype.emit=function(g){for(var p=[],C=1;C<arguments.length;C++)p.push(arguments[C]);var d=g==="error",s=this._events;if(s!==void 0)d=d&&s.error===void 0;else if(!d)return!1;if(d){var a;if(p.length>0&&(a=p[0]),a instanceof Error)throw a;var A=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw A.context=a,A}var f=s[g];if(f===void 0)return!1;if(typeof f=="function")l(f,this,p);else for(var E=f.length,_=z(f,E),C=0;C<E;++C)l(_[C],this,p);return!0};function S(v,g,p,C){var d,s,a;if(B(p),s=v._events,s===void 0?(s=v._events=Object.create(null),v._eventsCount=0):(s.newListener!==void 0&&(v.emit("newListener",g,p.listener?p.listener:p),s=v._events),a=s[g]),a===void 0)a=s[g]=p,++v._eventsCount;else if(typeof a=="function"?a=s[g]=C?[p,a]:[a,p]:C?a.unshift(p):a.push(p),d=Q(v),d>0&&a.length>d&&!a.warned){a.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=v,A.type=g,A.count=a.length,y(A)}return v}b.prototype.addListener=function(g,p){return S(this,g,p,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(g,p){return S(this,g,p,!0)};function P(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function k(v,g,p){var C={fired:!1,wrapFn:void 0,target:v,type:g,listener:p},d=P.bind(C);return d.listener=p,C.wrapFn=d,d}b.prototype.once=function(g,p){return B(p),this.on(g,k(this,g,p)),this},b.prototype.prependOnceListener=function(g,p){return B(p),this.prependListener(g,k(this,g,p)),this},b.prototype.removeListener=function(g,p){var C,d,s,a,A;if(B(p),d=this._events,d===void 0)return this;if(C=d[g],C===void 0)return this;if(C===p||C.listener===p)--this._eventsCount===0?this._events=Object.create(null):(delete d[g],d.removeListener&&this.emit("removeListener",g,C.listener||p));else if(typeof C!="function"){for(s=-1,a=C.length-1;a>=0;a--)if(C[a]===p||C[a].listener===p){A=C[a].listener,s=a;break}if(s<0)return this;s===0?C.shift():D(C,s),C.length===1&&(d[g]=C[0]),d.removeListener!==void 0&&this.emit("removeListener",g,A||p)}return this},b.prototype.off=b.prototype.removeListener,b.prototype.removeAllListeners=function(g){var p,C,d;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[g]),this;if(arguments.length===0){var s=Object.keys(C),a;for(d=0;d<s.length;++d)a=s[d],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(p=C[g],typeof p=="function")this.removeListener(g,p);else if(p!==void 0)for(d=p.length-1;d>=0;d--)this.removeListener(g,p[d]);return this};function R(v,g,p){var C=v._events;if(C===void 0)return[];var d=C[g];return d===void 0?[]:typeof d=="function"?p?[d.listener||d]:[d]:p?G(d):z(d,d.length)}b.prototype.listeners=function(g){return R(this,g,!0)},b.prototype.rawListeners=function(g){return R(this,g,!1)},b.listenerCount=function(v,g){return typeof v.listenerCount=="function"?v.listenerCount(g):L.call(v,g)},b.prototype.listenerCount=L;function L(v){var g=this._events;if(g!==void 0){var p=g[v];if(typeof p=="function")return 1;if(p!==void 0)return p.length}return 0}b.prototype.eventNames=function(){return this._eventsCount>0?h(this._events):[]};function z(v,g){for(var p=new Array(g),C=0;C<g;++C)p[C]=v[C];return p}function D(v,g){for(;g+1<v.length;g++)v[g]=v[g+1];v.pop()}function G(v){for(var g=new Array(v.length),p=0;p<g.length;++p)g[p]=v[p].listener||v[p];return g}function K(v,g){return new Promise(function(p,C){function d(a){v.removeListener(g,s),C(a)}function s(){typeof v.removeListener=="function"&&v.removeListener("error",d),p([].slice.call(arguments))}M(v,g,s,{once:!0}),g!=="error"&&J(v,d,{once:!0})})}function J(v,g,p){typeof v.on=="function"&&M(v,"error",g,p)}function M(v,g,p,C){if(typeof v.on=="function")C.once?v.once(g,p):v.on(g,p);else if(typeof v.addEventListener=="function")v.addEventListener(g,function d(s){C.once&&v.removeEventListener(g,d),p(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v)}})},r={};function o(c){var u=r[c];if(u!==void 0)return u.exports;var l=r[c]={exports:{}};return n[c](l,l.exports,o),l.exports}(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})();var i=o(579);return i})()})})(Ue)),Ue.exports}var Pr=kr();const wr=_r(Pr);let Fe=null;function Vt(e,t){if(!(e!=null&&e.client_url)||!(e!=null&&e.token)||!(e!=null&&e.channel))return console.error("[Centrifuge] Invalid socket_connections"),null;const{client_url:n,token:r,channel:o}=e;if(o.includes("#")||console.warn("[Centrifuge] Channel should contain #user_id"),Fe){try{console.log("[Centrifuge] Disconnecting previous instance..."),Fe.disconnect()}catch(c){console.error("[Centrifuge] Error while disconnecting previous instance:",c)}Fe=null}console.log("[Centrifuge] Creating new instance:",n);const i=new wr(n);return i.setToken(r),i.on("connect",c=>{console.log("[Centrifuge] Connected",c),console.log("[Centrifuge] Subscribing to channel:",o);const u=i.subscribe(o);u.on("publish",l=>{console.log("[Centrifuge] Publish event received:",l);const h=Tr(l);h&&t(h)}),u.on("subscribe",l=>{console.log("[Centrifuge] ✅ Channel subscribed successfully:",o,l)}),u.on("error",l=>{console.error("[Centrifuge] ❌ Subscription error:",l)}),u.on("unsubscribe",l=>{console.log("[Centrifuge] Channel unsubscribed:",l)})}),i.on("disconnect",c=>console.log("[Centrifuge] Disconnected",c)),i.on("error",c=>console.error("[Centrifuge] Error",c)),console.log("[Centrifuge] Calling connect()..."),i.connect(),Fe=i,{centrifuge:i}}function Tr(e){var n,r,o;if(console.log("[Centrifuge] Raw message received:",JSON.stringify(e)),!(e!=null&&e.data))return console.warn("[Centrifuge] Empty or invalid response"),null;let t=e.data;return(n=t.data)!=null&&n.type?t=t.data:(o=(r=t.data)==null?void 0:r.data)!=null&&o.type&&(t=t.data.data),console.log("[Centrifuge] Parsed message:",t),t.type?t:(console.warn("[Centrifuge] Message has no type:",t),null)}function Xe(e){return/^4[0-9]/.test(e)?"visa":/^5[1-5]/.test(e)||/^2[2-7]/.test(e)?"mastercard":"card"}const Ae={iconType:"kaspi_pay",label:"Kaspi.kz",type:"kaspi_pay"},Zt={iconType:"apple_pay",label:"Apple Pay",type:"apple_pay"},$t={iconType:"google_pay",label:"Google Pay",type:"google_pay"};function $(e){return e==="enabled"||e===!0}function en(e){if(!e)return null;let t=String(e).trim().toLowerCase();return t.startsWith("payment_method_")&&(t=t.replace("payment_method_","")),t==="kaspi"?"kaspi_pay":t==="apple"?"apple_pay":t==="google"?"google_pay":t==="newcard"?"new_card":t==="card"?"card":["kaspi_pay","apple_pay","google_pay","new_card"].includes(t)?t:null}function Lr(e){var i,c,u;const t=e,n=((i=t==null?void 0:t.context)==null?void 0:i.last_payment_method)??(t==null?void 0:t.last_payment_method)??((c=t==null?void 0:t.attributes)==null?void 0:c.last_payment_method);if(!n)return null;if(typeof n=="string")return{type:en(n),cardId:null};if(typeof n!="object")return null;const r=n.type??n.payment_method??n.method,o=n.card_id??n.cardId??n.id??((u=n.card)==null?void 0:u.id)??null;return{type:en(r),cardId:o!=null?String(o):null}}function Rr(e,t,n={}){var S,P,k,R;const r=[],o=(S=e==null?void 0:e.kaspi)==null?void 0:S.data,i=((P=e==null?void 0:e.cards_v2)==null?void 0:P.data)||[],c=((R=(k=e==null?void 0:e.payment_methods)==null?void 0:k.data)==null?void 0:R.attributes)||{},u=$(c.payment_method_kaspi),l=$(c.payment_method_card),h=typeof window<"u"&&window.self===window.top,m=ft()==="ios",b=!!(n!=null&&n.onlyKaspiAvailable),I=!!(n!=null&&n.disableKaspi);return o!=null&&o.isKaspiOnly&&u&&!I?[Ae]:b?o!=null&&o.isAvailable&&u&&!I?[Ae]:[]:($(c.payment_method_apple_pay)&&!xe("apple_pay")&&(De()&&h||Me()||m||Wt()===16)&&r.push(Zt),o!=null&&o.isAvailable&&u&&!I&&r.push(Ae),l&&i.filter(L=>!L.isExpired).forEach(L=>{r.push({iconType:Xe(L.attributes.mask),type:"card",cardId:L.id,label:`•••• ${L.attributes.mask.slice(-4)}`,cardType:L.type,isDefault:L.attributes.isDefault})}),$(c.payment_method_google_pay)&&!xe("google_pay")&&!(n!=null&&n.disableGooglePay)&&!De()&&!Me()&&r.push($t),$(c.payment_method_new_card)&&r.push({iconType:"new_card",type:"new_card",label:t?t("newCard"):"Оплата новой картой"}),r)}function ht(e,t={}){var Q,S,P,k;const n=(Q=e==null?void 0:e.kaspi)==null?void 0:Q.data,r=((S=e==null?void 0:e.cards_v2)==null?void 0:S.data)||[],o=((k=(P=e==null?void 0:e.payment_methods)==null?void 0:P.data)==null?void 0:k.attributes)||{},i=$(o.payment_method_kaspi),c=$(o.payment_method_card),u=!!(t!=null&&t.disableKaspi),l=typeof window<"u"&&window.self===window.top,y=ft()==="ios",m=$(o.payment_method_apple_pay)&&!xe("apple_pay")&&(De()&&l||Me()||y||Wt()===16),b=$(o.payment_method_google_pay)&&!xe("google_pay")&&!(t!=null&&t.disableGooglePay)&&!De()&&!Me();if(n!=null&&n.isKaspiOnly&&i&&!u||t!=null&&t.onlyKaspiAvailable&&(n!=null&&n.isAvailable)&&i&&!u)return Ae;const I=Lr(e);if((I==null?void 0:I.type)==="kaspi_pay"&&(n!=null&&n.isAvailable)&&i&&!u)return Ae;if((I==null?void 0:I.type)==="apple_pay"&&m)return Zt;if((I==null?void 0:I.type)==="google_pay"&&b)return $t;if((I==null?void 0:I.type)==="new_card"&&$(o.payment_method_new_card))return{iconType:"new_card",type:"new_card",label:"Оплата новой картой"};if((I==null?void 0:I.type)==="card"&&c){const R=I.cardId!=null?r.find(L=>!L.isExpired&&String(L.id)===I.cardId):null;if(R)return{iconType:Xe(R.attributes.mask),type:"card",cardId:R.id,label:`•••• ${R.attributes.mask.slice(-4)}`,cardType:R.type}}if(c){const R=r.find(L=>{var z;return((z=L.attributes)==null?void 0:z.isDefault)&&!L.isExpired});if(R)return{iconType:Xe(R.attributes.mask),type:"card",cardId:R.id,label:`•••• ${R.attributes.mask.slice(-4)}`,cardType:R.type}}if(n!=null&&n.isAvailable&&i&&!u)return Ae;const B=c?r.find(R=>!R.isExpired):null;return B?{iconType:Xe(B.attributes.mask),type:"card",cardId:B.id,label:`••••${B.attributes.mask.slice(-4)}`,cardType:B.type}:null}function tn(e){if(typeof localStorage>"u")return null;try{return localStorage.getItem(e)}catch{return null}}function pt(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t)}catch{}}function He(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(e)}catch{}}function ne(e){return e?{"X-Country":e}:{}}async function Or(e,t){var n;try{const r=await e.json(),o=(n=r==null?void 0:r.errors)==null?void 0:n[0];return(o==null?void 0:o.title)||(o==null?void 0:o.detail)||(r==null?void 0:r.message)||(r==null?void 0:r.error)||t}catch{return`HTTP ${e.status}: ${e.statusText}`}}async function ae(e,t){const n=await Or(e,t);throw Object.assign(new Error(n),{status:e.status})}function je(e,t,n={}){const r=Number.isFinite(n.checkoutAmount)&&n.checkoutAmount>=0?Number(n.checkoutAmount):e.amount,o=!!n.forceBalanceMethod,i=!!n.useBalance,c=n.voucher;return{checkoutAmount:r,checkoutPaymentMethod:o?{type:"balance"}:t,useBalanceFlag:i,voucher:c}}function Je(e,t,n,r,o){return{preorder_id:e.preorderId,terminal_id:e.terminalId,merchant_order_id:e.merchantOrderId,money:{amount:String(n),currency:e.currency},payment_method:t,...e.backlink&&{backlink:e.backlink},...r&&{use_balance:!0},...o&&{voucher:o},...e.isFridge&&{is_fridge:!0}}}async function qe(e,t,n,r,o){const i=await fetch(`${e}/orders/v1/checkout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,"X-Idempotency-Key":t.idempotencyKey??Ne(),"X-Device-Id":n,"X-OS":"WEB",...ne(t.country)},body:JSON.stringify(r)});return i.ok||await ae(i,o),i.json()}async function nn(e,t,n,r){var l,h,y,m;const o=await fetch(`${e}/api/v2/oauth2/tokens`,{method:"POST",headers:{"Content-Type":"application/json","X-Idempotency-Key":Ne(),"X-Fingerprint":Gt(),...ne(r)},body:JSON.stringify({client_id:t,grant_type:"authorization_track_id",track_id:n})});o.ok||await ae(o,"Не удалось авторизоваться через track_id");const i=await o.json(),c=(i==null?void 0:i.access_token)??((h=(l=i==null?void 0:i.data)==null?void 0:l.attributes)==null?void 0:h.access_token),u=(i==null?void 0:i.refresh_token)??((m=(y=i==null?void 0:i.data)==null?void 0:y.attributes)==null?void 0:m.refresh_token)??null;if(!c)throw new Error("В ответе отсутствует access_token");return{access_token:c,refresh_token:u}}async function Nr(e,t,n,r){var l,h,y,m;const o=await fetch(`${e}/api/v2/oauth2/tokens`,{method:"POST",headers:{"Content-Type":"application/json",...ne(r)},body:JSON.stringify({client_id:t,grant_type:"refresh_token",refresh_token:n})});o.ok||await ae(o,"Не удалось обновить токен по refresh_token");const i=await o.json(),c=(i==null?void 0:i.access_token)??((h=(l=i==null?void 0:i.data)==null?void 0:l.attributes)==null?void 0:h.access_token),u=(i==null?void 0:i.refresh_token)??((m=(y=i==null?void 0:i.data)==null?void 0:y.attributes)==null?void 0:m.refresh_token)??null;if(!c)throw new Error("В ответе отсутствует access_token");return{access_token:c,refresh_token:u}}async function gt(e,t){const n=await fetch(`${e}/orders/v1/checkout/context`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,"X-Idempotency-Key":Ne(),...ne(t.country)},body:JSON.stringify({terminal_id:t.terminalId,include:["cards","payment_methods","balance","cashback"],money:{amount:String(t.amount),currency:t.currency}})});return n.ok||await ae(n,"Ошибка получения контекста оплаты"),n.json()}async function Dr(e,t,n){const r=await fetch(`${e}/payment-gateway/v1/cards/${n}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});return r.ok||await ae(r,"Не удалось удалить карту"),r.json().catch(()=>({}))}async function Mr(e,t,n){const r=await fetch(`${e}/payment-gateway/v1/cards/${n}/mark_as_default`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});return r.ok||await ae(r,"Не удалось отметить карту как основную"),r.json().catch(()=>({}))}async function xr(e,t,n){const r=await fetch(`${e}/orders/v1/orders/${n}/status`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});if(!r.ok)throw Object.assign(new Error(`Ошибка проверки статуса заказа: ${r.status} ${r.statusText}`),{status:r.status});const o=await r.json(),i=(o==null?void 0:o.data)??o;return{data:{status:i==null?void 0:i.status,payload:(i==null?void 0:i.payload)??{}}}}async function rn(e,t,n,r,o={}){const{checkoutAmount:i,checkoutPaymentMethod:c,useBalanceFlag:u,voucher:l}=je(t,{type:r.type,...r.cardId&&{card_id:r.cardId}},o);return qe(e,t,n,Je(t,c,i,u,l),"Ошибка создания заказа")}async function Ur(e,t,n,r={}){const{checkoutAmount:o,checkoutPaymentMethod:i,useBalanceFlag:c,voucher:u}=je(t,{type:"new_card"},r);return qe(e,t,n,Je(t,i,o,c,u),"Ошибка создания заказа для новой карты")}async function Fr(e,t){const n=await fetch(`${e}/loyalty/v6/coupons/by_terminal/${t.terminalId}/at_payment?order_pay_amount=${t.amount}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});return n.ok||await ae(n,"Ошибка получения купонов"),n.json()}async function on(e,t,n){const r=window.location.hostname,o={validationUrl:n,domainName:r};t.merchantName&&(o.merchantName=t.merchantName);const i=await fetch(`${e}/payment-gateway/v1/apple/session`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/vnd.api+json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)},body:JSON.stringify(o)});return i.ok||await ae(i,"Ошибка получения Apple Pay сессии"),i.json()}async function Xr(e,t,n,r,o={}){const{checkoutAmount:i,checkoutPaymentMethod:c,useBalanceFlag:u,voucher:l}=je(t,{type:"apple_pay",data:r},o);return qe(e,t,n,Je(t,c,i,u,l),"Ошибка создания заказа с Apple Pay")}async function sn(e,t,n,r,o={}){const{checkoutAmount:i,checkoutPaymentMethod:c,useBalanceFlag:u,voucher:l}=je(t,{type:"google_pay",data:r},o);return qe(e,t,n,Je(t,c,i,u,l),"Ошибка создания заказа с Google Pay")}function Hr(e){const t=typeof e.color=="string"?e.color.trim():"",n=t&&/^[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/.test(t)?`#${t}`:t,r=e.bonuses,o=r&&typeof r=="object"&&Number.isFinite(r.amount)&&Number.isFinite(r.percent)?{availableBonus:Number.isFinite(r.availableBonus)?Number(r.availableBonus):0,amount:Number(r.amount),percent:Number(r.percent)}:null;return{preorderId:e.preorderId,trackId:e.trackId,clientId:e.clientId,projectId:e.projectId,terminalId:e.terminalId,merchantOrderId:e.merchantOrderId,amount:e.amount,currency:e.currency||"KZT",environment:e.environment||"production",backlink:e.backlink,onSuccess:e.onSuccess||(()=>{}),onAppliedBonus:e.onAppliedBonus||(()=>{}),onCouponSuppressingCashback:e.onCouponSuppressingCashback||(()=>{}),onError:e.onError||(()=>{}),onCancel:e.onCancel||(()=>{}),onCardDeleted:typeof e.onCardDeleted=="function"?e.onCardDeleted:null,onConfirmPay:typeof e.onConfirmPay=="function"?e.onConfirmPay:null,onPaymentMethodSelected:typeof e.onPaymentMethodSelected=="function"?e.onPaymentMethodSelected:null,onKaspiLink:typeof e.onKaspiLink=="function"?e.onKaspiLink:null,onPayWithGooglePay:typeof e.onPayWithGooglePay=="function"?e.onPayWithGooglePay:null,onUserEvent:typeof e.onUserEvent=="function"?e.onUserEvent:null,onBeforeCheckout:typeof e.onBeforeCheckout=="function"?e.onBeforeCheckout:null,onFreedomLink:typeof e.onFreedomLink=="function"?e.onFreedomLink:null,onRequestNewTrackId:typeof e.onRequestNewTrackId=="function"?e.onRequestNewTrackId:null,idempotencyKey:e.idempotencyKey,country:typeof e.country=="string"&&e.country.trim()||void 0,merchantName:typeof e.merchantName=="string"&&Array.from(e.merchantName.trim()).slice(0,35).join("")||void 0,locale:e.locale||"ru",containerSelector:typeof e.containerSelector=="string"?e.containerSelector.trim():"",color:n||"#2F2F2F",onlyKaspiAvailable:!!e.onlyKaspiAvailable,disableKaspi:!!e.disableKaspi,disableGooglePay:!!e.disableGooglePay,disableUseBalance:!!e.disableUseBalance,isNativeAndroid:!!e.isNativeAndroid,isFridge:!!e.isFridge,bonuses:o}}const U=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,de="8.55.2",j=globalThis;function ze(e,t,n){const r=n||j,o=r.__SENTRY__=r.__SENTRY__||{},i=o[de]=o[de]||{};return i[e]||(i[e]=t())}const yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,jr="Sentry Logger ",an=["debug","info","warn","error","log","assert","trace"],cn={};function Ke(e){if(!("console"in j))return e();const t=j.console,n={},r=Object.keys(cn);r.forEach(o=>{const i=cn[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Jr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return yt?an.forEach(n=>{t[n]=(...r)=>{e&&Ke(()=>{j.console[n](`${jr}[${n}]:`,...r)})}}):an.forEach(n=>{t[n]=()=>{}}),t}const N=ze("logger",Jr),un=50,me="?",ln=/\(error: (.*)\)/,An=/captureMessage|captureException/;function qr(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],c=n.split(`
5
- `);for(let u=r;u<c.length;u++){const l=c[u];if(l.length>1024)continue;const h=ln.test(l)?l.replace(ln,"$1"):l;if(!h.match(/\S*Error: /)){for(const y of t){const m=y(h);if(m){i.push(m);break}}if(i.length>=un+o)break}}return zr(i.slice(o))}}function zr(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ge(t).function||"")&&t.pop(),t.reverse(),An.test(Ge(t).function||"")&&(t.pop(),An.test(Ge(t).function||"")&&t.pop()),t.slice(0,un).map(n=>({...n,filename:n.filename||Ge(t).filename,function:n.function||me}))}function Ge(e){return e[e.length-1]||{}}const mt="<anonymous>";function Kr(e){try{return!e||typeof e!="function"?mt:e.name||mt}catch{return mt}}function Ct(){return bt(j),j}function bt(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||de,t[de]=t[de]||{}}const dn=Object.prototype.toString;function fn(e){switch(dn.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ve(e,Error)}}function Qe(e,t){return dn.call(e)===`[object ${t}]`}function hn(e){return Qe(e,"ErrorEvent")}function pn(e){return Qe(e,"DOMError")}function Gr(e){return Qe(e,"DOMException")}function gn(e){return Qe(e,"String")}function Et(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Wr(e){return e===null||Et(e)||typeof e!="object"&&typeof e!="function"}function Ce(e){return Qe(e,"Object")}function We(e){return typeof Event<"u"&&Ve(e,Event)}function Yr(e){return typeof Element<"u"&&Ve(e,Element)}function Ye(e){return!!(e&&e.then&&typeof e.then=="function")}function Vr(e){return Ce(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ve(e,t){try{return e instanceof t}catch{return!1}}function Zr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const $r=j,eo=80;function to(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,c=0;const u=" > ",l=u.length;let h;const y=Array.isArray(t)?t:t.keyAttrs,m=!Array.isArray(t)&&t.maxStringLength||eo;for(;n&&i++<r&&(h=no(n,y),!(h==="html"||i>1&&c+o.length*l+h.length>=m));)o.push(h),c+=h.length,n=n.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}function no(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if($r.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const c=n.className;if(c&&gn(c)){const u=c.split(/\s+/);for(const l of u)r.push(`.${l}`)}}const i=["aria-label","type","name","title","alt"];for(const c of i){const u=n.getAttribute(c);u&&r.push(`[${c}="${u}"]`)}return r.join("")}function ke(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function yn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{yt&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function mn(e){if(fn(e))return{message:e.message,name:e.name,stack:e.stack,...bn(e)};if(We(e)){const t={type:e.type,target:Cn(e.target),currentTarget:Cn(e.currentTarget),...bn(e)};return typeof CustomEvent<"u"&&Ve(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Cn(e){try{return Yr(e)?to(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function bn(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ro(e,t=40){const n=Object.keys(mn(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ke(r,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:ke(i,t)}return""}function Y(e){return vt(e,new Map)}function vt(e,t){if(oo(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=vt(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(vt(o,t))}),r}return e}function oo(e){if(!Ce(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const En=1e3;function Ze(){return Date.now()/En}function so(){const{performance:e}=j;if(!e||!e.now)return Ze;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/En}const vn=so();(()=>{const{performance:e}=j;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,c=e.timing&&e.timing.navigationStart,l=typeof c=="number"?Math.abs(c+n-r):t,h=l<t;return i||h?o<=l?e.timeOrigin:c:r})();function ee(){const e=j,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function io(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function In(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Pe(e,t){const n=io(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Bn(e){if(ao(e))return!0;try{yn(e,"__sentry_captured__",!0)}catch{}return!1}function ao(e){try{return e.__sentry_captured__}catch{}}var re;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(re||(re={}));function fe(e){return new W(t=>{t(e)})}function $e(e){return new W((t,n)=>{n(e)})}class W{constructor(t){W.prototype.__init.call(this),W.prototype.__init2.call(this),W.prototype.__init3.call(this),W.prototype.__init4.call(this),this._state=re.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new W((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(c){o(c)}},i=>{if(!n)o(i);else try{r(n(i))}catch(c){o(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new W((n,r)=>{let o,i;return this.then(c=>{i=!1,o=c,t&&t()},c=>{i=!0,o=c,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(re.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(re.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===re.PENDING){if(Ye(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===re.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===re.RESOLVED&&n[1](this._value),this._state===re.REJECTED&&n[2](this._value),n[0]=!0)})}}}function It(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||vn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ee()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Sn(){return ee()}function Bt(){return ee().substring(16)}function et(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=et(r[o],t[o],n-1));return r}const St="_sentrySpan";function _n(e,t){t?yn(e,St,t):delete e[St]}function Qn(e){return e[St]}const co=100;class _t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Sn(),spanId:Bt()}}clone(){const t=new _t;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,_n(t,Qn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&It(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof ce?[n.getScopeData(),n.getRequestSession()]:Ce(n)?[t,t.requestSession]:[],{tags:i,extra:c,user:u,contexts:l,level:h,fingerprint:y=[],propagationContext:m}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...c},this._contexts={...this._contexts,...l},u&&Object.keys(u).length&&(this._user=u),h&&(this._level=h),y.length&&(this._fingerprint=y),m&&(this._propagationContext=m),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_n(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Sn()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:co;if(r<=0)return this;const o={timestamp:Ze(),...t};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Qn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=et(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Bt(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:ee();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:ee();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:ee();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(N.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const ce=_t;function uo(){return ze("defaultCurrentScope",()=>new ce)}function lo(){return ze("defaultIsolationScope",()=>new ce)}class Ao{constructor(t,n){let r;t?r=t:r=new ce;let o;n?o=n:o=new ce,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Ye(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function be(){const e=Ct(),t=bt(e);return t.stack=t.stack||new Ao(uo(),lo())}function fo(e){return be().withScope(e)}function ho(e,t){const n=be();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function kn(e){return be().withScope(()=>e(be().getIsolationScope()))}function po(){return{withIsolationScope:kn,withScope:fo,withSetScope:ho,withSetIsolationScope:(e,t)=>kn(t),getCurrentScope:()=>be().getScope(),getIsolationScope:()=>be().getIsolationScope()}}function Pn(e){const t=bt(e);return t.acs?t.acs:po()}function wn(){const e=Ct();return Pn(e).getCurrentScope()}function go(){const e=Ct();return Pn(e).getIsolationScope()}function yo(){return ze("globalScope",()=>new ce)}function Qt(){return wn().getClient()}function mo(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return Y({trace_id:n,span_id:r,parent_span_id:o})}const Co="_sentryMetrics";function bo(e){const t=e[Co];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(Y(o));return n}const Eo="sentry.source",vo="sentry.sample_rate",Io="sentry.op",Bo="sentry.origin",So=0,_o=1,Qo="sentry-",ko=/^sentry-/;function Po(e){const t=wo(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(ko)){const c=o.slice(Qo.length);r[c]=i}return r},{});if(Object.keys(n).length>0)return n}function wo(e){if(!(!e||!gn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Tn(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Tn(e)}function Tn(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const To=1;let Ln=!1;function Lo(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:kt(e).parent_span_id,i=r?Bt():t;return Y({parent_span_id:o,span_id:i,trace_id:n})}function Rn(e){return typeof e=="number"?On(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?On(e.getTime()):vn()}function On(e){return e>9999999999?e/1e3:e}function kt(e){if(Oo(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Ro(e)){const{attributes:r,startTime:o,name:i,endTime:c,parentSpanId:u,status:l}=e;return Y({span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Rn(o),timestamp:Rn(c)||void 0,status:Do(l),op:r[Io],origin:r[Bo],_metrics_summary:bo(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Ro(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Oo(e){return typeof e.getSpanJSON=="function"}function No(e){const{traceFlags:t}=e.spanContext();return t===To}function Do(e){if(!(!e||e.code===So))return e.code===_o?"ok":e.message||"unknown_error"}const Mo="_sentryRootSpan";function Nn(e){return e[Mo]||e}function xo(){Ln||(Ke(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Ln=!0)}function Uo(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Qt(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Dn="production",Fo="_frozenDsc";function Mn(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Y({environment:n.environment||Dn,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Xo(e,t){const n=t.getPropagationContext();return n.dsc||Mn(n.traceId,e)}function Ho(e){const t=Qt();if(!t)return{};const n=Nn(e),r=n[Fo];if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),c=i&&Po(i);if(c)return c;const u=Mn(e.spanContext().traceId,t),l=kt(n),h=l.data||{},y=h[vo];y!=null&&(u.sample_rate=`${y}`);const m=h[Eo],b=l.description;return m!=="url"&&b&&(u.transaction=b),Uo()&&(u.sampled=String(No(n))),t.emit("createDsc",u,n),u}function jo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){U&&N.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Jo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qo(e){return e==="http"||e==="https"}function tt(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:c,protocol:u,publicKey:l}=e;return`${u}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${c}`}function zo(e){const t=Jo.exec(e);if(!t){Ke(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i="",c="",u=""]=t.slice(1);let l="",h=u;const y=h.split("/");if(y.length>1&&(l=y.slice(0,-1).join("/"),h=y.pop()),h){const m=h.match(/^\d+/);m&&(h=m[0])}return xn({host:i,pass:o,path:l,projectId:h,port:c,protocol:n,publicKey:r})}function xn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ko(e){if(!yt)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(N.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?qo(r)?t&&isNaN(parseInt(t,10))?(N.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(N.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(N.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Go(e){const t=typeof e=="string"?zo(e):xn(e);if(!(!t||!Ko(t)))return t}function Wo(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function oe(e,t=100,n=1/0){try{return Pt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Un(e,t=3,n=100*1024){const r=oe(e,t);return $o(r)>n?Un(e,t-1,n):r}function Pt(e,t,n=1/0,r=1/0,o=Wo()){const[i,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=Yo(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return u.replace("object ","");if(i(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const I=h.toJSON();return Pt("",I,l-1,r,o)}catch{}const y=Array.isArray(t)?[]:{};let m=0;const b=mn(t);for(const I in b){if(!Object.prototype.hasOwnProperty.call(b,I))continue;if(m>=r){y[I]="[MaxProperties ~]";break}const B=b[I];y[I]=Pt(I,B,l-1,r,o),m++}return c(t),y}function Yo(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Zr(t))return"[VueViewModel]";if(Vr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Kr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Vo(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Vo(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Zo(e){return~-encodeURI(e).split(/%..|./).length}function $o(e){return Zo(JSON.stringify(e))}function we(e,t=[]){return[e,t]}function es(e,t){const[n,r]=e;return[n,[...r,t]]}function Fn(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function wt(e){return j.__SENTRY__&&j.__SENTRY__.encodePolyfill?j.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function ts(e){const[t,n]=e;let r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[wt(r),i]:r.push(typeof i=="string"?wt(i):i)}for(const i of n){const[c,u]=i;if(o(`
4
+ `).filter(function(k){return k!==""}).map(function(k){return JSON.parse(k)})}},{key:"decodeCommandResult",value:function(P,k){return k}},{key:"decodePush",value:function(P){return P}},{key:"decodePushData",value:function(P,k){return k}}]),Q})();u.JsonDecoder=B}),471:(function(c,u,l){function h(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(d){return typeof d}:h=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},h(p)}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var y=b(l(187)),m=l(853);function b(p){return p&&p.__esModule?p:{default:p}}function I(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")}function B(p,C){for(var d=0;d<C.length;d++){var s=C[d];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(p,s.key,s)}}function Q(p,C,d){return C&&B(p.prototype,C),p}function S(p,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(C&&C.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),C&&P(p,C)}function P(p,C){return P=Object.setPrototypeOf||function(s,a){return s.__proto__=a,s},P(p,C)}function k(p){var C=z();return function(){var s=D(p),a;if(C){var A=D(this).constructor;a=Reflect.construct(s,arguments,A)}else a=s.apply(this,arguments);return L(this,a)}}function L(p,C){if(C&&(h(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(p)}function R(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(p){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},D(p)}var G=0,K=1,J=2,M=3,v=4,g=(function(p){S(d,p);var C=k(d);function d(s,a,A){var f;return I(this,d),f=C.call(this),f.channel=a,f._centrifuge=s,f._status=G,f._error=null,f._isResubscribe=!1,f._ready=!1,f._subscriptionPromise=null,f._noResubscribe=!1,f._recoverable=!1,f._recover=!1,f._setEvents(A),f._initializePromise(),f._promises={},f._promiseId=0,f._subscribeData=null,f.on("error",function(E){this._centrifuge._debug("subscription error",E)}),f}return Q(d,[{key:"_nextPromiseId",value:function(){return++this._promiseId}},{key:"_initializePromise",value:function(){var a=this;this._ready=!1,this._subscriptionPromise=new Promise(function(A,f){a._resolve=function(E){a._ready=!0,A(E)},a._reject=function(E){a._ready=!0,f(E)}}).then(function(){},function(){})}},{key:"_setNeedRecover",value:function(a){this._recoverable=a,this._recover=a}},{key:"_needRecover",value:function(){return this._recoverable===!0&&this._recover===!0}},{key:"_setEvents",value:function(a){if(a){if((0,m.isFunction)(a))this.on("publish",a);else if(Object.prototype.toString.call(a)===Object.prototype.toString.call({}))for(var A=["publish","join","leave","unsubscribe","subscribe","error"],f=0,E=A.length;f<E;f++){var _=A[f];_ in a&&this.on(_,a[_])}}}},{key:"_isNew",value:function(){return this._status===G}},{key:"_isUnsubscribed",value:function(){return this._status===v}},{key:"_isSubscribing",value:function(){return this._status===K}},{key:"_isReady",value:function(){return this._status===J||this._status===M}},{key:"_isSuccess",value:function(){return this._status===J}},{key:"_isError",value:function(){return this._status===M}},{key:"_setNew",value:function(){this._status=G}},{key:"_setSubscribing",value:function(a){this._isResubscribe=a||!1,this._ready===!0&&this._initializePromise(),this._status=K}},{key:"_setSubscribeSuccess",value:function(a){if(this._status!==J){this._status=J;var A=this._getSubscribeSuccessContext(a);this._recover=!1,this.emit("subscribe",A),this._resolve(A);for(var f in this._promises)clearTimeout(this._promises[f].timeout),this._promises[f].resolve(),delete this._promises[f]}}},{key:"_setSubscribeError",value:function(a){if(this._status!==M){this._status=M,this._error=a;var A=this._getSubscribeErrorContext();this.emit("error",A),this._reject(A);for(var f in this._promises)clearTimeout(this._promises[f].timeout),this._promises[f].reject(a),delete this._promises[f]}}},{key:"_triggerUnsubscribe",value:function(){this.emit("unsubscribe",{channel:this.channel})}},{key:"_setUnsubscribed",value:function(a){if(this._centrifuge._clearSubRefreshTimeout(this.channel),this._status!==v){var A=this._status===J;this._status=v,a===!0&&(this._recover=!1,this._noResubscribe=!0,delete this._centrifuge._lastSeq[this.channel],delete this._centrifuge._lastGen[this.channel],delete this._centrifuge._lastEpoch[this.channel]),A&&this._triggerUnsubscribe()}}},{key:"_shouldResubscribe",value:function(){return!this._noResubscribe}},{key:"_getSubscribeSuccessContext",value:function(a){var A={channel:this.channel,isResubscribe:this._isResubscribe};return a&&(A=this._centrifuge._expandSubscribeContext(A,a)),A}},{key:"_getSubscribeErrorContext",value:function(){var a=this._error;return a.channel=this.channel,a.isResubscribe=this._isResubscribe,a}},{key:"_setSubscribeData",value:function(a){this._subscribeData=a}},{key:"ready",value:function(a,A){this._ready&&(this._isSuccess()?a(this._getSubscribeSuccessContext()):A(this._getSubscribeErrorContext()))}},{key:"subscribe",value:function(a){this._status!==J&&(a&&a.since&&this._centrifuge._setSubscribeSince(this,a.since),a&&a.data&&this._setSubscribeData(a.data),this._noResubscribe=!1,this._centrifuge._subscribe(this))}},{key:"unsubscribe",value:function(){this._setUnsubscribed(!0),this._centrifuge._unsubscribe(this)}},{key:"_methodCall",value:function(){var a=this;if(this._isSuccess())return Promise.resolve();if(this._isError())return Promise.reject(this._error);var A=new Promise(function(f,E){var _=setTimeout(function(){E({code:0,message:"timeout"})},a._centrifuge._config.timeout);a._promises[a._nextPromiseId()]={timeout:_,resolve:f,reject:E}});return A}},{key:"publish",value:function(a){var A=this;return this._methodCall().then(function(){return A._centrifuge.publish(A.channel,a)})}},{key:"presence",value:function(){var a=this;return this._methodCall().then(function(){return a._centrifuge.presence(a.channel)})}},{key:"presenceStats",value:function(){var a=this;return this._methodCall().then(function(){return a._centrifuge.presenceStats(a.channel)})}},{key:"history",value:function(a){var A=this;return this._methodCall().then(function(){return A._centrifuge.history(A.channel,a)})}}]),d})(y.default);u.default=g,c.exports=u.default}),853:(function(c,u,l){Object.defineProperty(u,"__esModule",{value:!0}),u.backoff=b,u.errorExists=I,u.extend=B,u.isFunction=y,u.log=m,u.startsWith=h;function h(Q,S){return Q.lastIndexOf(S,0)===0}function y(Q){return Q==null?!1:typeof Q=="function"}function m(Q,S){if(l.g.console){var P=l.g.console[Q];y(P)&&P.apply(l.g.console,S)}}function b(Q,S,P){var k=.5*Math.random(),L=Math.min(P,S*Math.pow(2,Q+1));return Math.floor((1-k)*L)}function I(Q){return"error"in Q&&Q.error!==null}function B(Q,S){for(var P in S)S.hasOwnProperty(P)&&(Q[P]=S[P]);return Q}}),187:(function(c){var u=typeof Reflect=="object"?Reflect:null,l=u&&typeof u.apply=="function"?u.apply:function(g,p,C){return Function.prototype.apply.call(g,p,C)},h;u&&typeof u.ownKeys=="function"?h=u.ownKeys:Object.getOwnPropertySymbols?h=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:h=function(g){return Object.getOwnPropertyNames(g)};function y(v){console&&console.warn&&console.warn(v)}var m=Number.isNaN||function(g){return g!==g};function b(){b.init.call(this)}c.exports=b,c.exports.once=K,b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var I=10;function B(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return I},set:function(v){if(typeof v!="number"||v<0||m(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");I=v}}),b.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},b.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||m(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function Q(v){return v._maxListeners===void 0?b.defaultMaxListeners:v._maxListeners}b.prototype.getMaxListeners=function(){return Q(this)},b.prototype.emit=function(g){for(var p=[],C=1;C<arguments.length;C++)p.push(arguments[C]);var d=g==="error",s=this._events;if(s!==void 0)d=d&&s.error===void 0;else if(!d)return!1;if(d){var a;if(p.length>0&&(a=p[0]),a instanceof Error)throw a;var A=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw A.context=a,A}var f=s[g];if(f===void 0)return!1;if(typeof f=="function")l(f,this,p);else for(var E=f.length,_=z(f,E),C=0;C<E;++C)l(_[C],this,p);return!0};function S(v,g,p,C){var d,s,a;if(B(p),s=v._events,s===void 0?(s=v._events=Object.create(null),v._eventsCount=0):(s.newListener!==void 0&&(v.emit("newListener",g,p.listener?p.listener:p),s=v._events),a=s[g]),a===void 0)a=s[g]=p,++v._eventsCount;else if(typeof a=="function"?a=s[g]=C?[p,a]:[a,p]:C?a.unshift(p):a.push(p),d=Q(v),d>0&&a.length>d&&!a.warned){a.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=v,A.type=g,A.count=a.length,y(A)}return v}b.prototype.addListener=function(g,p){return S(this,g,p,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(g,p){return S(this,g,p,!0)};function P(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function k(v,g,p){var C={fired:!1,wrapFn:void 0,target:v,type:g,listener:p},d=P.bind(C);return d.listener=p,C.wrapFn=d,d}b.prototype.once=function(g,p){return B(p),this.on(g,k(this,g,p)),this},b.prototype.prependOnceListener=function(g,p){return B(p),this.prependListener(g,k(this,g,p)),this},b.prototype.removeListener=function(g,p){var C,d,s,a,A;if(B(p),d=this._events,d===void 0)return this;if(C=d[g],C===void 0)return this;if(C===p||C.listener===p)--this._eventsCount===0?this._events=Object.create(null):(delete d[g],d.removeListener&&this.emit("removeListener",g,C.listener||p));else if(typeof C!="function"){for(s=-1,a=C.length-1;a>=0;a--)if(C[a]===p||C[a].listener===p){A=C[a].listener,s=a;break}if(s<0)return this;s===0?C.shift():D(C,s),C.length===1&&(d[g]=C[0]),d.removeListener!==void 0&&this.emit("removeListener",g,A||p)}return this},b.prototype.off=b.prototype.removeListener,b.prototype.removeAllListeners=function(g){var p,C,d;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[g]),this;if(arguments.length===0){var s=Object.keys(C),a;for(d=0;d<s.length;++d)a=s[d],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(p=C[g],typeof p=="function")this.removeListener(g,p);else if(p!==void 0)for(d=p.length-1;d>=0;d--)this.removeListener(g,p[d]);return this};function L(v,g,p){var C=v._events;if(C===void 0)return[];var d=C[g];return d===void 0?[]:typeof d=="function"?p?[d.listener||d]:[d]:p?G(d):z(d,d.length)}b.prototype.listeners=function(g){return L(this,g,!0)},b.prototype.rawListeners=function(g){return L(this,g,!1)},b.listenerCount=function(v,g){return typeof v.listenerCount=="function"?v.listenerCount(g):R.call(v,g)},b.prototype.listenerCount=R;function R(v){var g=this._events;if(g!==void 0){var p=g[v];if(typeof p=="function")return 1;if(p!==void 0)return p.length}return 0}b.prototype.eventNames=function(){return this._eventsCount>0?h(this._events):[]};function z(v,g){for(var p=new Array(g),C=0;C<g;++C)p[C]=v[C];return p}function D(v,g){for(;g+1<v.length;g++)v[g]=v[g+1];v.pop()}function G(v){for(var g=new Array(v.length),p=0;p<g.length;++p)g[p]=v[p].listener||v[p];return g}function K(v,g){return new Promise(function(p,C){function d(a){v.removeListener(g,s),C(a)}function s(){typeof v.removeListener=="function"&&v.removeListener("error",d),p([].slice.call(arguments))}M(v,g,s,{once:!0}),g!=="error"&&J(v,d,{once:!0})})}function J(v,g,p){typeof v.on=="function"&&M(v,"error",g,p)}function M(v,g,p,C){if(typeof v.on=="function")C.once?v.once(g,p):v.on(g,p);else if(typeof v.addEventListener=="function")v.addEventListener(g,function d(s){C.once&&v.removeEventListener(g,d),p(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v)}})},r={};function o(c){var u=r[c];if(u!==void 0)return u.exports;var l=r[c]={exports:{}};return n[c](l,l.exports,o),l.exports}(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})();var i=o(579);return i})()})})(Fe)),Fe.exports}var Rr=Tr();const Lr=Pr(Rr);let Xe=null;function en(e,t){if(!(e!=null&&e.client_url)||!(e!=null&&e.token)||!(e!=null&&e.channel))return console.error("[Centrifuge] Invalid socket_connections"),null;const{client_url:n,token:r,channel:o}=e;if(o.includes("#")||console.warn("[Centrifuge] Channel should contain #user_id"),Xe){try{console.log("[Centrifuge] Disconnecting previous instance..."),Xe.disconnect()}catch(c){console.error("[Centrifuge] Error while disconnecting previous instance:",c)}Xe=null}console.log("[Centrifuge] Creating new instance:",n);const i=new Lr(n);return i.setToken(r),i.on("connect",c=>{console.log("[Centrifuge] Connected",c),console.log("[Centrifuge] Subscribing to channel:",o);const u=i.subscribe(o);u.on("publish",l=>{console.log("[Centrifuge] Publish event received:",l);const h=Or(l);h&&t(h)}),u.on("subscribe",l=>{console.log("[Centrifuge] ✅ Channel subscribed successfully:",o,l)}),u.on("error",l=>{console.error("[Centrifuge] ❌ Subscription error:",l)}),u.on("unsubscribe",l=>{console.log("[Centrifuge] Channel unsubscribed:",l)})}),i.on("disconnect",c=>console.log("[Centrifuge] Disconnected",c)),i.on("error",c=>console.error("[Centrifuge] Error",c)),console.log("[Centrifuge] Calling connect()..."),i.connect(),Xe=i,{centrifuge:i}}function Or(e){var n,r,o;if(console.log("[Centrifuge] Raw message received:",JSON.stringify(e)),!(e!=null&&e.data))return console.warn("[Centrifuge] Empty or invalid response"),null;let t=e.data;return(n=t.data)!=null&&n.type?t=t.data:(o=(r=t.data)==null?void 0:r.data)!=null&&o.type&&(t=t.data.data),console.log("[Centrifuge] Parsed message:",t),t.type?t:(console.warn("[Centrifuge] Message has no type:",t),null)}function He(e){return/^4[0-9]/.test(e)?"visa":/^5[1-5]/.test(e)||/^2[2-7]/.test(e)?"mastercard":"card"}const Ae={iconType:"kaspi_pay",label:"Kaspi.kz",type:"kaspi_pay"},tn={iconType:"apple_pay",label:"Apple Pay",type:"apple_pay"},nn={iconType:"google_pay",label:"Google Pay",type:"google_pay"};function $(e){return e==="enabled"||e===!0}function rn(e){if(!e)return null;let t=String(e).trim().toLowerCase();return t.startsWith("payment_method_")&&(t=t.replace("payment_method_","")),t==="kaspi"?"kaspi_pay":t==="apple"?"apple_pay":t==="google"?"google_pay":t==="newcard"?"new_card":t==="card"?"card":["kaspi_pay","apple_pay","google_pay","new_card"].includes(t)?t:null}function Nr(e){var i,c,u;const t=e,n=((i=t==null?void 0:t.context)==null?void 0:i.last_payment_method)??(t==null?void 0:t.last_payment_method)??((c=t==null?void 0:t.attributes)==null?void 0:c.last_payment_method);if(!n)return null;if(typeof n=="string")return{type:rn(n),cardId:null};if(typeof n!="object")return null;const r=n.type??n.payment_method??n.method,o=n.card_id??n.cardId??n.id??((u=n.card)==null?void 0:u.id)??null;return{type:rn(r),cardId:o!=null?String(o):null}}function Dr(e,t,n={}){var S,P,k,L;const r=[],o=(S=e==null?void 0:e.kaspi)==null?void 0:S.data,i=((P=e==null?void 0:e.cards_v2)==null?void 0:P.data)||[],c=((L=(k=e==null?void 0:e.payment_methods)==null?void 0:k.data)==null?void 0:L.attributes)||{},u=$(c.payment_method_kaspi),l=$(c.payment_method_card),h=typeof window<"u"&&window.self===window.top,m=yt()==="ios",b=!!(n!=null&&n.onlyKaspiAvailable),I=!!(n!=null&&n.disableKaspi);return o!=null&&o.isKaspiOnly&&u&&!I?[Ae]:b?o!=null&&o.isAvailable&&u&&!I?[Ae]:[]:($(c.payment_method_apple_pay)&&!Ue("apple_pay")&&(Me()&&h||xe()||m||Zt()===16)&&r.push(tn),o!=null&&o.isAvailable&&u&&!I&&r.push(Ae),l&&i.filter(R=>!R.isExpired).forEach(R=>{r.push({iconType:He(R.attributes.mask),type:"card",cardId:R.id,label:`•••• ${R.attributes.mask.slice(-4)}`,cardType:R.type,isDefault:R.attributes.isDefault})}),$(c.payment_method_google_pay)&&!Ue("google_pay")&&!(n!=null&&n.disableGooglePay)&&!Me()&&!xe()&&r.push(nn),$(c.payment_method_new_card)&&r.push({iconType:"new_card",type:"new_card",label:t?t("newCard"):"Оплата новой картой"}),r)}function mt(e,t={}){var Q,S,P,k;const n=(Q=e==null?void 0:e.kaspi)==null?void 0:Q.data,r=((S=e==null?void 0:e.cards_v2)==null?void 0:S.data)||[],o=((k=(P=e==null?void 0:e.payment_methods)==null?void 0:P.data)==null?void 0:k.attributes)||{},i=$(o.payment_method_kaspi),c=$(o.payment_method_card),u=!!(t!=null&&t.disableKaspi),l=typeof window<"u"&&window.self===window.top,y=yt()==="ios",m=$(o.payment_method_apple_pay)&&!Ue("apple_pay")&&(Me()&&l||xe()||y||Zt()===16),b=$(o.payment_method_google_pay)&&!Ue("google_pay")&&!(t!=null&&t.disableGooglePay)&&!Me()&&!xe();if(n!=null&&n.isKaspiOnly&&i&&!u||t!=null&&t.onlyKaspiAvailable&&(n!=null&&n.isAvailable)&&i&&!u)return Ae;const I=Nr(e);if((I==null?void 0:I.type)==="kaspi_pay"&&(n!=null&&n.isAvailable)&&i&&!u)return Ae;if((I==null?void 0:I.type)==="apple_pay"&&m)return tn;if((I==null?void 0:I.type)==="google_pay"&&b)return nn;if((I==null?void 0:I.type)==="new_card"&&$(o.payment_method_new_card))return{iconType:"new_card",type:"new_card",label:"Оплата новой картой"};if((I==null?void 0:I.type)==="card"&&c){const L=I.cardId!=null?r.find(R=>!R.isExpired&&String(R.id)===I.cardId):null;if(L)return{iconType:He(L.attributes.mask),type:"card",cardId:L.id,label:`•••• ${L.attributes.mask.slice(-4)}`,cardType:L.type}}if(c){const L=r.find(R=>{var z;return((z=R.attributes)==null?void 0:z.isDefault)&&!R.isExpired});if(L)return{iconType:He(L.attributes.mask),type:"card",cardId:L.id,label:`•••• ${L.attributes.mask.slice(-4)}`,cardType:L.type}}if(n!=null&&n.isAvailable&&i&&!u)return Ae;const B=c?r.find(L=>!L.isExpired):null;return B?{iconType:He(B.attributes.mask),type:"card",cardId:B.id,label:`••••${B.attributes.mask.slice(-4)}`,cardType:B.type}:null}function Ct(e){if(typeof localStorage>"u")return null;try{return localStorage.getItem(e)}catch{return null}}function je(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t)}catch{}}function Ce(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(e)}catch{}}function ne(e){return e?{"X-Country":e}:{}}async function Mr(e,t){var n;try{const r=await e.json(),o=(n=r==null?void 0:r.errors)==null?void 0:n[0];return(o==null?void 0:o.title)||(o==null?void 0:o.detail)||(r==null?void 0:r.message)||(r==null?void 0:r.error)||t}catch{return`HTTP ${e.status}: ${e.statusText}`}}async function ae(e,t){const n=await Mr(e,t);throw Object.assign(new Error(n),{status:e.status})}function Je(e,t,n={}){const r=Number.isFinite(n.checkoutAmount)&&n.checkoutAmount>=0?Number(n.checkoutAmount):e.amount,o=!!n.forceBalanceMethod,i=!!n.useBalance,c=n.voucher;return{checkoutAmount:r,checkoutPaymentMethod:o?{type:"balance"}:t,useBalanceFlag:i,voucher:c}}function qe(e,t,n,r,o){return{preorder_id:e.preorderId,terminal_id:e.terminalId,merchant_order_id:e.merchantOrderId,money:{amount:String(n),currency:e.currency},payment_method:t,...e.backlink&&{backlink:e.backlink},...r&&{use_balance:!0},...o&&{voucher:o},...e.isFridge&&{is_fridge:!0}}}async function ze(e,t,n,r,o){const i=await fetch(`${e}/orders/v1/checkout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,"X-Idempotency-Key":t.idempotencyKey??De(),"X-Device-Id":n,"X-OS":"WEB",...ne(t.country)},body:JSON.stringify(r)});return i.ok||await ae(i,o),i.json()}async function on(e,t,n,r){var l,h,y,m;const o=await fetch(`${e}/api/v2/oauth2/tokens`,{method:"POST",headers:{"Content-Type":"application/json","X-Idempotency-Key":De(),"X-Fingerprint":Vt(),...ne(r)},body:JSON.stringify({client_id:t,grant_type:"authorization_track_id",track_id:n})});o.ok||await ae(o,"Не удалось авторизоваться через track_id");const i=await o.json(),c=(i==null?void 0:i.access_token)??((h=(l=i==null?void 0:i.data)==null?void 0:l.attributes)==null?void 0:h.access_token),u=(i==null?void 0:i.refresh_token)??((m=(y=i==null?void 0:i.data)==null?void 0:y.attributes)==null?void 0:m.refresh_token)??null;if(!c)throw new Error("В ответе отсутствует access_token");return{access_token:c,refresh_token:u}}async function xr(e,t,n,r){var l,h,y,m;const o=await fetch(`${e}/api/v2/oauth2/tokens`,{method:"POST",headers:{"Content-Type":"application/json",...ne(r)},body:JSON.stringify({client_id:t,grant_type:"refresh_token",refresh_token:n})});o.ok||await ae(o,"Не удалось обновить токен по refresh_token");const i=await o.json(),c=(i==null?void 0:i.access_token)??((h=(l=i==null?void 0:i.data)==null?void 0:l.attributes)==null?void 0:h.access_token),u=(i==null?void 0:i.refresh_token)??((m=(y=i==null?void 0:i.data)==null?void 0:y.attributes)==null?void 0:m.refresh_token)??null;if(!c)throw new Error("В ответе отсутствует access_token");return{access_token:c,refresh_token:u}}async function bt(e,t){const n=await fetch(`${e}/orders/v1/checkout/context`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,"X-Idempotency-Key":De(),...ne(t.country)},body:JSON.stringify({terminal_id:t.terminalId,include:["cards","payment_methods","balance","cashback"],money:{amount:String(t.amount),currency:t.currency}})});return n.ok||await ae(n,"Ошибка получения контекста оплаты"),n.json()}async function Ur(e,t,n){const r=await fetch(`${e}/payment-gateway/v1/cards/${n}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});return r.ok||await ae(r,"Не удалось удалить карту"),r.json().catch(()=>({}))}async function Fr(e,t,n){const r=await fetch(`${e}/payment-gateway/v1/cards/${n}/mark_as_default`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});return r.ok||await ae(r,"Не удалось отметить карту как основную"),r.json().catch(()=>({}))}async function Xr(e,t,n){const r=await fetch(`${e}/orders/v1/orders/${n}/status`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});if(!r.ok)throw Object.assign(new Error(`Ошибка проверки статуса заказа: ${r.status} ${r.statusText}`),{status:r.status});const o=await r.json(),i=(o==null?void 0:o.data)??o;return{data:{status:i==null?void 0:i.status,payload:(i==null?void 0:i.payload)??{}}}}async function sn(e,t,n,r,o={}){const{checkoutAmount:i,checkoutPaymentMethod:c,useBalanceFlag:u,voucher:l}=Je(t,{type:r.type,...r.cardId&&{card_id:r.cardId}},o);return ze(e,t,n,qe(t,c,i,u,l),"Ошибка создания заказа")}async function Hr(e,t,n,r={}){const{checkoutAmount:o,checkoutPaymentMethod:i,useBalanceFlag:c,voucher:u}=Je(t,{type:"new_card"},r);return ze(e,t,n,qe(t,i,o,c,u),"Ошибка создания заказа для новой карты")}async function jr(e,t){const n=await fetch(`${e}/loyalty/v6/coupons/by_terminal/${t.terminalId}/at_payment?order_pay_amount=${t.amount}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)}});return n.ok||await ae(n,"Ошибка получения купонов"),n.json()}async function an(e,t,n){const r=window.location.hostname,o={validationUrl:n,domainName:r};t.merchantName&&(o.merchantName=t.merchantName);const i=await fetch(`${e}/payment-gateway/v1/apple/session`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/vnd.api+json",Authorization:`Bearer ${t.accessToken}`,...ne(t.country)},body:JSON.stringify(o)});return i.ok||await ae(i,"Ошибка получения Apple Pay сессии"),i.json()}async function Jr(e,t,n,r,o={}){const{checkoutAmount:i,checkoutPaymentMethod:c,useBalanceFlag:u,voucher:l}=Je(t,{type:"apple_pay",data:r},o);return ze(e,t,n,qe(t,c,i,u,l),"Ошибка создания заказа с Apple Pay")}async function cn(e,t,n,r,o={}){const{checkoutAmount:i,checkoutPaymentMethod:c,useBalanceFlag:u,voucher:l}=Je(t,{type:"google_pay",data:r},o);return ze(e,t,n,qe(t,c,i,u,l),"Ошибка создания заказа с Google Pay")}function qr(e){const t=typeof e.color=="string"?e.color.trim():"",n=t&&/^[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/.test(t)?`#${t}`:t,r=e.bonuses,o=r&&typeof r=="object"&&Number.isFinite(r.amount)&&Number.isFinite(r.percent)?{availableBonus:Number.isFinite(r.availableBonus)?Number(r.availableBonus):0,amount:Number(r.amount),percent:Number(r.percent)}:null;return{preorderId:e.preorderId,trackId:e.trackId,clientId:e.clientId,projectId:e.projectId,terminalId:e.terminalId,merchantOrderId:e.merchantOrderId,amount:e.amount,currency:e.currency||"KZT",environment:e.environment||"production",backlink:e.backlink,onSuccess:e.onSuccess||(()=>{}),onAppliedBonus:e.onAppliedBonus||(()=>{}),onCouponSuppressingCashback:e.onCouponSuppressingCashback||(()=>{}),onError:e.onError||(()=>{}),onCancel:e.onCancel||(()=>{}),onCardDeleted:typeof e.onCardDeleted=="function"?e.onCardDeleted:null,onConfirmPay:typeof e.onConfirmPay=="function"?e.onConfirmPay:null,onPaymentMethodSelected:typeof e.onPaymentMethodSelected=="function"?e.onPaymentMethodSelected:null,onKaspiLink:typeof e.onKaspiLink=="function"?e.onKaspiLink:null,onPayWithGooglePay:typeof e.onPayWithGooglePay=="function"?e.onPayWithGooglePay:null,onUserEvent:typeof e.onUserEvent=="function"?e.onUserEvent:null,onBeforeCheckout:typeof e.onBeforeCheckout=="function"?e.onBeforeCheckout:null,onFreedomLink:typeof e.onFreedomLink=="function"?e.onFreedomLink:null,onRequestNewTrackId:typeof e.onRequestNewTrackId=="function"?e.onRequestNewTrackId:null,idempotencyKey:e.idempotencyKey,country:typeof e.country=="string"&&e.country.trim()||void 0,merchantName:typeof e.merchantName=="string"&&Array.from(e.merchantName.trim()).slice(0,35).join("")||void 0,locale:e.locale||"ru",containerSelector:typeof e.containerSelector=="string"?e.containerSelector.trim():"",color:n||"#2F2F2F",onlyKaspiAvailable:!!e.onlyKaspiAvailable,disableKaspi:!!e.disableKaspi,disableGooglePay:!!e.disableGooglePay,disableUseBalance:!!e.disableUseBalance,isNativeAndroid:!!e.isNativeAndroid,isFridge:!!e.isFridge,bonuses:o}}const U=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,de="8.55.2",j=globalThis;function Ke(e,t,n){const r=n||j,o=r.__SENTRY__=r.__SENTRY__||{},i=o[de]=o[de]||{};return i[e]||(i[e]=t())}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zr="Sentry Logger ",un=["debug","info","warn","error","log","assert","trace"],ln={};function Ge(e){if(!("console"in j))return e();const t=j.console,n={},r=Object.keys(ln);r.forEach(o=>{const i=ln[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Kr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Et?un.forEach(n=>{t[n]=(...r)=>{e&&Ge(()=>{j.console[n](`${zr}[${n}]:`,...r)})}}):un.forEach(n=>{t[n]=()=>{}}),t}const N=Ke("logger",Kr),An=50,be="?",dn=/\(error: (.*)\)/,fn=/captureMessage|captureException/;function Gr(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],c=n.split(`
5
+ `);for(let u=r;u<c.length;u++){const l=c[u];if(l.length>1024)continue;const h=dn.test(l)?l.replace(dn,"$1"):l;if(!h.match(/\S*Error: /)){for(const y of t){const m=y(h);if(m){i.push(m);break}}if(i.length>=An+o)break}}return Wr(i.slice(o))}}function Wr(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(We(t).function||"")&&t.pop(),t.reverse(),fn.test(We(t).function||"")&&(t.pop(),fn.test(We(t).function||"")&&t.pop()),t.slice(0,An).map(n=>({...n,filename:n.filename||We(t).filename,function:n.function||be}))}function We(e){return e[e.length-1]||{}}const vt="<anonymous>";function Yr(e){try{return!e||typeof e!="function"?vt:e.name||vt}catch{return vt}}function It(){return Bt(j),j}function Bt(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||de,t[de]=t[de]||{}}const hn=Object.prototype.toString;function pn(e){switch(hn.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ze(e,Error)}}function ke(e,t){return hn.call(e)===`[object ${t}]`}function gn(e){return ke(e,"ErrorEvent")}function yn(e){return ke(e,"DOMError")}function Vr(e){return ke(e,"DOMException")}function mn(e){return ke(e,"String")}function St(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Zr(e){return e===null||St(e)||typeof e!="object"&&typeof e!="function"}function Ee(e){return ke(e,"Object")}function Ye(e){return typeof Event<"u"&&Ze(e,Event)}function $r(e){return typeof Element<"u"&&Ze(e,Element)}function Ve(e){return!!(e&&e.then&&typeof e.then=="function")}function eo(e){return Ee(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ze(e,t){try{return e instanceof t}catch{return!1}}function to(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const no=j,ro=80;function oo(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,c=0;const u=" > ",l=u.length;let h;const y=Array.isArray(t)?t:t.keyAttrs,m=!Array.isArray(t)&&t.maxStringLength||ro;for(;n&&i++<r&&(h=so(n,y),!(h==="html"||i>1&&c+o.length*l+h.length>=m));)o.push(h),c+=h.length,n=n.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}function so(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(no.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const c=n.className;if(c&&mn(c)){const u=c.split(/\s+/);for(const l of u)r.push(`.${l}`)}}const i=["aria-label","type","name","title","alt"];for(const c of i){const u=n.getAttribute(c);u&&r.push(`[${c}="${u}"]`)}return r.join("")}function Pe(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Cn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Et&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function bn(e){if(pn(e))return{message:e.message,name:e.name,stack:e.stack,...vn(e)};if(Ye(e)){const t={type:e.type,target:En(e.target),currentTarget:En(e.currentTarget),...vn(e)};return typeof CustomEvent<"u"&&Ze(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function En(e){try{return $r(e)?oo(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function vn(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function io(e,t=40){const n=Object.keys(bn(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Pe(r,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Pe(i,t)}return""}function Y(e){return _t(e,new Map)}function _t(e,t){if(ao(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=_t(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(_t(o,t))}),r}return e}function ao(e){if(!Ee(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const In=1e3;function $e(){return Date.now()/In}function co(){const{performance:e}=j;if(!e||!e.now)return $e;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/In}const Bn=co();(()=>{const{performance:e}=j;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,c=e.timing&&e.timing.navigationStart,l=typeof c=="number"?Math.abs(c+n-r):t,h=l<t;return i||h?o<=l?e.timeOrigin:c:r})();function ee(){const e=j,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function uo(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Sn(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function we(e,t){const n=uo(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function _n(e){if(lo(e))return!0;try{Cn(e,"__sentry_captured__",!0)}catch{}return!1}function lo(e){try{return e.__sentry_captured__}catch{}}var re;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(re||(re={}));function fe(e){return new W(t=>{t(e)})}function et(e){return new W((t,n)=>{n(e)})}class W{constructor(t){W.prototype.__init.call(this),W.prototype.__init2.call(this),W.prototype.__init3.call(this),W.prototype.__init4.call(this),this._state=re.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new W((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(c){o(c)}},i=>{if(!n)o(i);else try{r(n(i))}catch(c){o(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new W((n,r)=>{let o,i;return this.then(c=>{i=!1,o=c,t&&t()},c=>{i=!0,o=c,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(re.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(re.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===re.PENDING){if(Ve(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===re.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===re.RESOLVED&&n[1](this._value),this._state===re.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Qt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Bn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ee()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Qn(){return ee()}function kt(){return ee().substring(16)}function tt(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=tt(r[o],t[o],n-1));return r}const Pt="_sentrySpan";function kn(e,t){t?Cn(e,Pt,t):delete e[Pt]}function Pn(e){return e[Pt]}const Ao=100;class wt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Qn(),spanId:kt()}}clone(){const t=new wt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,kn(t,Pn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof ce?[n.getScopeData(),n.getRequestSession()]:Ee(n)?[t,t.requestSession]:[],{tags:i,extra:c,user:u,contexts:l,level:h,fingerprint:y=[],propagationContext:m}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...c},this._contexts={...this._contexts,...l},u&&Object.keys(u).length&&(this._user=u),h&&(this._level=h),y.length&&(this._fingerprint=y),m&&(this._propagationContext=m),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,kn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Qn()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Ao;if(r<=0)return this;const o={timestamp:$e(),...t};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Pn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:kt(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:ee();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:ee();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:ee();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(N.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const ce=wt;function fo(){return Ke("defaultCurrentScope",()=>new ce)}function ho(){return Ke("defaultIsolationScope",()=>new ce)}class po{constructor(t,n){let r;t?r=t:r=new ce;let o;n?o=n:o=new ce,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Ve(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ve(){const e=It(),t=Bt(e);return t.stack=t.stack||new po(fo(),ho())}function go(e){return ve().withScope(e)}function yo(e,t){const n=ve();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function wn(e){return ve().withScope(()=>e(ve().getIsolationScope()))}function mo(){return{withIsolationScope:wn,withScope:go,withSetScope:yo,withSetIsolationScope:(e,t)=>wn(t),getCurrentScope:()=>ve().getScope(),getIsolationScope:()=>ve().getIsolationScope()}}function Tn(e){const t=Bt(e);return t.acs?t.acs:mo()}function Rn(){const e=It();return Tn(e).getCurrentScope()}function Co(){const e=It();return Tn(e).getIsolationScope()}function bo(){return Ke("globalScope",()=>new ce)}function Tt(){return Rn().getClient()}function Eo(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return Y({trace_id:n,span_id:r,parent_span_id:o})}const vo="_sentryMetrics";function Io(e){const t=e[vo];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(Y(o));return n}const Bo="sentry.source",So="sentry.sample_rate",_o="sentry.op",Qo="sentry.origin",ko=0,Po=1,wo="sentry-",To=/^sentry-/;function Ro(e){const t=Lo(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(To)){const c=o.slice(wo.length);r[c]=i}return r},{});if(Object.keys(n).length>0)return n}function Lo(e){if(!(!e||!mn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Ln(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Ln(e)}function Ln(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const Oo=1;let On=!1;function No(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:Rt(e).parent_span_id,i=r?kt():t;return Y({parent_span_id:o,span_id:i,trace_id:n})}function Nn(e){return typeof e=="number"?Dn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Dn(e.getTime()):Bn()}function Dn(e){return e>9999999999?e/1e3:e}function Rt(e){if(Mo(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Do(e)){const{attributes:r,startTime:o,name:i,endTime:c,parentSpanId:u,status:l}=e;return Y({span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Nn(o),timestamp:Nn(c)||void 0,status:Uo(l),op:r[_o],origin:r[Qo],_metrics_summary:Io(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Do(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Mo(e){return typeof e.getSpanJSON=="function"}function xo(e){const{traceFlags:t}=e.spanContext();return t===Oo}function Uo(e){if(!(!e||e.code===ko))return e.code===Po?"ok":e.message||"unknown_error"}const Fo="_sentryRootSpan";function Mn(e){return e[Fo]||e}function Xo(){On||(Ge(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),On=!0)}function Ho(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Tt(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const xn="production",jo="_frozenDsc";function Un(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Y({environment:n.environment||xn,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Jo(e,t){const n=t.getPropagationContext();return n.dsc||Un(n.traceId,e)}function qo(e){const t=Tt();if(!t)return{};const n=Mn(e),r=n[jo];if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),c=i&&Ro(i);if(c)return c;const u=Un(e.spanContext().traceId,t),l=Rt(n),h=l.data||{},y=h[So];y!=null&&(u.sample_rate=`${y}`);const m=h[Bo],b=l.description;return m!=="url"&&b&&(u.transaction=b),Ho()&&(u.sampled=String(xo(n))),t.emit("createDsc",u,n),u}function zo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){U&&N.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Ko=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Go(e){return e==="http"||e==="https"}function nt(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:c,protocol:u,publicKey:l}=e;return`${u}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${c}`}function Wo(e){const t=Ko.exec(e);if(!t){Ge(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i="",c="",u=""]=t.slice(1);let l="",h=u;const y=h.split("/");if(y.length>1&&(l=y.slice(0,-1).join("/"),h=y.pop()),h){const m=h.match(/^\d+/);m&&(h=m[0])}return Fn({host:i,pass:o,path:l,projectId:h,port:c,protocol:n,publicKey:r})}function Fn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Yo(e){if(!Et)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(N.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?Go(r)?t&&isNaN(parseInt(t,10))?(N.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(N.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(N.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Vo(e){const t=typeof e=="string"?Wo(e):Fn(e);if(!(!t||!Yo(t)))return t}function Zo(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function oe(e,t=100,n=1/0){try{return Lt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Xn(e,t=3,n=100*1024){const r=oe(e,t);return ns(r)>n?Xn(e,t-1,n):r}function Lt(e,t,n=1/0,r=1/0,o=Zo()){const[i,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=$o(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return u.replace("object ","");if(i(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const I=h.toJSON();return Lt("",I,l-1,r,o)}catch{}const y=Array.isArray(t)?[]:{};let m=0;const b=bn(t);for(const I in b){if(!Object.prototype.hasOwnProperty.call(b,I))continue;if(m>=r){y[I]="[MaxProperties ~]";break}const B=b[I];y[I]=Lt(I,B,l-1,r,o),m++}return c(t),y}function $o(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(to(t))return"[VueViewModel]";if(eo(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Yr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=es(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function es(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ts(e){return~-encodeURI(e).split(/%..|./).length}function ns(e){return ts(JSON.stringify(e))}function Te(e,t=[]){return[e,t]}function rs(e,t){const[n,r]=e;return[n,[...r,t]]}function Hn(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function Ot(e){return j.__SENTRY__&&j.__SENTRY__.encodePolyfill?j.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function os(e){const[t,n]=e;let r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[Ot(r),i]:r.push(typeof i=="string"?Ot(i):i)}for(const i of n){const[c,u]=i;if(o(`
6
6
  ${JSON.stringify(c)}
7
- `),typeof u=="string"||u instanceof Uint8Array)o(u);else{let l;try{l=JSON.stringify(u)}catch{l=JSON.stringify(oe(u))}o(l)}}return typeof r=="string"?r:ns(r)}function ns(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function rs(e){const t=typeof e.data=="string"?wt(e.data):e.data;return[Y({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const os={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function Xn(e){return os[e]}function Hn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ss(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:tt(r)},...o&&{trace:Y({...o})}}}function is(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function as(e,t,n,r){const o=Hn(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:tt(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return we(i,[c])}function cs(e,t,n,r){const o=Hn(n),i=e.type&&e.type!=="replay_event"?e.type:"event";is(e,n&&n.sdk);const c=ss(e,o,r,t);return delete e.sdkProcessingMetadata,we(c,[[{type:i},e]])}function Tt(e,t,n,r=0){return new W((o,i)=>{const c=e[r];if(t===null||typeof c!="function")o(t);else{const u=c({...t},n);U&&c.id&&u===null&&N.log(`Event processor "${c.id}" dropped event`),Ye(u)?u.then(l=>Tt(e,l,n,r+1).then(o)).then(null,i):Tt(e,u,n,r+1).then(o).then(null,i)}})}let nt,jn,rt;function us(e){const t=j._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return rt&&n.length===jn||(jn=n.length,rt=n.reduce((r,o)=>{nt||(nt={});const i=nt[o];if(i)r[i[0]]=i[1];else{const c=e(o);for(let u=c.length-1;u>=0;u--){const l=c[u],h=l&&l.filename,y=t[o];if(h&&y){r[h]=y,nt[o]=[h,y];break}}}return r},{})),rt}function ls(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;As(e,t),r&&hs(e,r),ps(e,n),ds(e,o),fs(e,i)}function Jn(e,t){const{extra:n,tags:r,user:o,contexts:i,level:c,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:h,eventProcessors:y,attachments:m,propagationContext:b,transactionName:I,span:B}=t;ot(e,"extra",n),ot(e,"tags",r),ot(e,"user",o),ot(e,"contexts",i),e.sdkProcessingMetadata=et(e.sdkProcessingMetadata,u,2),c&&(e.level=c),I&&(e.transactionName=I),B&&(e.span=B),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),m.length&&(e.attachments=[...e.attachments,...m]),e.propagationContext={...e.propagationContext,...b}}function ot(e,t,n){e[t]=et(e[t],n,1)}function As(e,t){const{extra:n,tags:r,user:o,contexts:i,level:c,transactionName:u}=t,l=Y(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const h=Y(r);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=Y(o);y&&Object.keys(y).length&&(e.user={...y,...e.user});const m=Y(i);m&&Object.keys(m).length&&(e.contexts={...m,...e.contexts}),c&&(e.level=c),u&&e.type!=="transaction"&&(e.transaction=u)}function ds(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function fs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function hs(e,t){e.contexts={trace:Lo(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ho(t),...e.sdkProcessingMetadata};const n=Nn(t),r=kt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function ps(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function gs(e,t,n,r,o,i){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ee(),timestamp:t.timestamp||Ze()},h=n.integrations||e.integrations.map(S=>S.name);ys(l,e),bs(l,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&ms(l,e.stackParser);const y=vs(r,n.captureContext);n.mechanism&&Pe(l,n.mechanism);const m=o?o.getEventProcessors():[],b=yo().getScopeData();if(i){const S=i.getScopeData();Jn(b,S)}if(y){const S=y.getScopeData();Jn(b,S)}const I=[...n.attachments||[],...b.attachments];I.length&&(n.attachments=I),ls(l,b);const B=[...m,...b.eventProcessors];return Tt(B,l,n).then(S=>(S&&Cs(S),typeof c=="number"&&c>0?Es(S,c,u):S))}function ys(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||Dn,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=ke(e.message,i));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=ke(c.value,i));const u=e.request;u&&u.url&&(u.url=ke(u.url,i))}function ms(e,t){const n=us(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function Cs(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function bs(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Es(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:oe(o.data,t,n)}}))},...e.user&&{user:oe(e.user,t,n)},...e.contexts&&{contexts:oe(e.contexts,t,n)},...e.extra&&{extra:oe(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=oe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:oe(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=oe(e.contexts.flags,3,n)),r}function vs(e,t){if(!t)return e;const n=e?e.clone():new ce;return n.update(t),n}const Is="7";function Bs(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ss(e){return`${Bs(e)}${e.projectId}/envelope/`}function _s(e,t){const n={sentry_version:Is};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Qs(e,t,n){return t||`${Ss(e)}?${_s(e,n)}`}const qn=[];function ks(e,t){const n={};return t.forEach(r=>{r&&Kn(e,r,n)}),n}function zn(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Kn(e,t,n){if(n[t.name]){U&&N.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,qn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),qn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,c)=>r(i,c,e),{id:t.name});e.addEventProcessor(o)}U&&N.log(`Integration installed: ${t.name}`)}function Ps(e,t,n){const r=[{type:"client_report"},{timestamp:Ze(),discarded_events:e}];return we(t?{dsn:t}:{},[r])}class V extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const Gn="Not capturing exception because it's already been captured.";class ws{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Go(t.dsn):U&&N.warn("No DSN provided, client will not send events."),this._dsn){const o=Qs(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);r&&Ke(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const o=ee();if(Bn(t))return U&&N.log(Gn),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(c=>this._captureEvent(c,i,r))),i.event_id}captureMessage(t,n,r,o){const i={event_id:ee(),...r},c=Et(t)?t:String(t),u=Wr(t)?this.eventFromMessage(c,n,i):this.eventFromException(t,i);return this._process(u.then(l=>this._captureEvent(l,i,o))),i.event_id}captureEvent(t,n,r){const o=ee();if(n&&n.originalException&&Bn(n.originalException))return U&&N.log(Gn),o;const i={event_id:o,...n},u=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,u||r)),i.event_id}captureSession(t){typeof t.release!="string"?U&&N.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),It(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):fe(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Kn(this,t,this._integrations),n||zn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=cs(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=es(r,rs(i));const o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=as(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,i=`${t}:${n}`;U&&N.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(U&&N.error("Error while sending envelope:",n),n)):(U&&N.error("Transport disabled"),fe({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=ks(this,t),zn(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const l of i){const h=l.mechanism;if(h&&h.handled===!1){r=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&r)&&(It(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new W(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=wn(),o=go()){const i=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),gs(i,t,n,r,this,o).then(u=>{if(u===null)return u;u.contexts={trace:mo(r),...u.contexts};const l=Xo(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:l,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{U&&(o instanceof V&&o.logLevel==="log"?N.log(o.message):N.warn(o))})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,c=Yn(t),u=Wn(t),l=t.type||"error",h=`before send for type \`${l}\``,y=typeof i>"u"?void 0:jo(i);if(u&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),$e(new V(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const m=l==="replay_event"?"replay":l,I=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,I).then(B=>{if(B===null)throw this.recordDroppedEvent("event_processor",m,t),new V("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return B;const S=Ls(this,o,B,n);return Ts(S,h)}).then(B=>{if(B===null){if(this.recordDroppedEvent("before_send",m,t),c){const k=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",k)}throw new V(`${h} returned \`null\`, will not send event.`,"log")}const Q=r&&r.getSession();if(!c&&Q&&this._updateSessionFromEvent(Q,B),c){const P=B.sdkProcessingMetadata&&B.sdkProcessingMetadata.spanCountBeforeProcessing||0,k=B.spans?B.spans.length:0,R=P-k;R>0&&this.recordDroppedEvent("before_send","span",R)}const S=B.transaction_info;if(c&&S&&B.transaction!==t.transaction){const P="custom";B.transaction_info={...S,source:P}}return this.sendEvent(B,n),B}).then(null,B=>{throw B instanceof V?B:(this.captureException(B,{data:{__sentry__:!0},originalException:B}),new V(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
8
- Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){U&&N.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){U&&N.log("No outcomes to send");return}if(!this._dsn){U&&N.log("No dsn provided, will not send outcomes");return}U&&N.log("Sending outcomes:",t);const n=Ps(t,this._options.tunnel&&tt(this._dsn));this.sendEnvelope(n)}}function Ts(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ye(e))return e.then(r=>{if(!Ce(r)&&r!==null)throw new V(n);return r},r=>{throw new V(`${t} rejected with ${r}`)});if(!Ce(e)&&e!==null)throw new V(n);return e}function Ls(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:c}=t;if(Wn(n)&&o)return o(n,r);if(Yn(n)){if(n.spans&&c){const u=[];for(const l of n.spans){const h=c(l);h?u.push(h):(xo(),e.recordDroppedEvent("before_send","span"))}n.spans=u}if(i){if(n.spans){const u=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(n,r)}}return n}function Wn(e){return e.type===void 0}function Yn(e){return e.type==="transaction"}function Rs(e){const t=[];function n(){return e===void 0||t.length<e}function r(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return $e(new V("Not adding Promise because buffer limit was reached."));const u=c();return t.indexOf(u)===-1&&t.push(u),u.then(()=>r(u)).then(null,()=>r(u).then(null,()=>{})),u}function i(c){return new W((u,l)=>{let h=t.length;if(!h)return u(!0);const y=setTimeout(()=>{c&&c>0&&u(!1)},c);t.forEach(m=>{fe(m).then(()=>{--h||(clearTimeout(y),u(!0))},l)})})}return{$:t,add:o,drain:i}}const Os=60*1e3;function Ns(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Os:r-t}function Ds(e,t){return e[t]||e.all||0}function Ms(e,t,n=Date.now()){return Ds(e,t)>n}function xs(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(i)for(const u of i.trim().split(",")){const[l,h,,,y]=u.split(":",5),m=parseInt(l,10),b=(isNaN(m)?60:m)*1e3;if(!h)o.all=r+b;else for(const I of h.split(";"))I==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(o[I]=r+b):o[I]=r+b}else c?o.all=r+Ns(c,r):t===429&&(o.all=r+60*1e3);return o}const Us=64;function Fs(e,t,n=Rs(e.bufferSize||Us)){let r={};const o=c=>n.drain(c);function i(c){const u=[];if(Fn(c,(m,b)=>{const I=Xn(b);if(Ms(r,I)){const B=Vn(m,b);e.recordDroppedEvent("ratelimit_backoff",I,B)}else u.push(m)}),u.length===0)return fe({});const l=we(c[0],u),h=m=>{Fn(l,(b,I)=>{const B=Vn(b,I);e.recordDroppedEvent(m,Xn(I),B)})},y=()=>t({body:ts(l)}).then(m=>(m.statusCode!==void 0&&(m.statusCode<200||m.statusCode>=300)&&U&&N.warn(`Sentry responded with status code ${m.statusCode} to sent event.`),r=xs(r,m),m),m=>{throw h("network_error"),m});return n.add(y).then(m=>m,m=>{if(m instanceof V)return U&&N.error("Skipped sending event because buffer is full."),h("queue_overflow"),fe({});throw m})}return{send:i,flush:o}}function Vn(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Xs(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:de})),version:de}),e._metadata=o}function Hs(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function js(){return"npm"}const st=j,Js=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Zn(e,t){const n=Rt(e,t),r={type:Ws(t),value:Ys(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function qs(e,t,n,r){const o=Qt(),i=o&&o.getOptions().normalizeDepth,c=ni(t),u={__serialized__:Un(t,i)};if(c)return{exception:{values:[Zn(e,c)]},extra:u};const l={exception:{values:[{type:We(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ei(t,{isUnhandledRejection:r})}]},extra:u};if(n){const h=Rt(e,n);h.length&&(l.exception.values[0].stacktrace={frames:h})}return l}function Lt(e,t){return{exception:{values:[Zn(e,t)]}}}function Rt(e,t){const n=t.stacktrace||t.stack||"",r=Ks(t),o=Gs(t);try{return e(n,r,o)}catch{}return[]}const zs=/Minified React error #\d+;/i;function Ks(e){return e&&zs.test(e.message)?1:0}function Gs(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function $n(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Ws(e){const t=e&&e.name;return!t&&$n(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ys(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:$n(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Vs(e,t,n,r){const o=n&&n.syntheticException||void 0,i=$s(e,t,o,r);return Pe(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),fe(i)}function Zs(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,c=Ot(e,t,i,o);return c.level=n,r&&r.event_id&&(c.event_id=r.event_id),fe(c)}function $s(e,t,n,r,o){let i;if(hn(t)&&t.error)return Lt(e,t.error);if(pn(t)||Gr(t)){const c=t;if("stack"in t)i=Lt(e,t);else{const u=c.name||(pn(c)?"DOMError":"DOMException"),l=c.message?`${u}: ${c.message}`:u;i=Ot(e,l,n,r),In(i,l)}return"code"in c&&(i.tags={...i.tags,"DOMException.code":`${c.code}`}),i}return fn(t)?Lt(e,t):Ce(t)||We(t)?(i=qs(e,t,n,o),Pe(i,{synthetic:!0}),i):(i=Ot(e,t,n,r),In(i,`${t}`),Pe(i,{synthetic:!0}),i)}function Ot(e,t,n,r){const o={};if(r&&n){const i=Rt(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),Pe(o,{synthetic:!0})}if(Et(t)){const{__sentry_template_string__:i,__sentry_template_values__:c}=t;return o.logentry={message:i,params:c},o}return o.message=t,o}function ei(e,{isUnhandledRejection:t}){const n=ro(e),r="exception";return hn(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:We(e)?`Event \`${ti(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ti(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ni(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function ri(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:tt(r)}},i=oi(e);return we(o,[i])}function oi(e){return[{type:"user_report"},e]}class si extends ws{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=st.SENTRY_SDK_SOURCE||js();Xs(n,"browser",["browser"],r),super(n),n.sendClientReports&&st.document&&st.document.addEventListener("visibilitychange",()=>{st.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Vs(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Zs(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Js&&N.warn("SDK not enabled, will not capture user feedback.");return}const n=ri(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,it=j,at={};function ai(e){const t=at[e];if(t)return t;let n=it[e];if(Hs(n))return at[e]=n.bind(it);const r=it.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){ii&&N.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(at[e]=n.bind(it))}function er(e){at[e]=void 0}function ci(e,t=ai("fetch")){let n=0,r=0;function o(i){const c=i.body.length;n+=c,r++;const u={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return er("fetch"),$e("No fetch implementation available");try{return t(e.url,u).then(l=>(n-=c,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return er("fetch"),n-=c,r--,$e(l)}}return Fs(e,o)}const ui=30,li=50;function Nt(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?me:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const Ai=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,di=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fi=/\((\S*)(?::(\d+))(?::(\d+))\)/,hi=[ui,e=>{const t=Ai.exec(e);if(t){const[,r,o,i]=t;return Nt(r,me,+o,+i)}const n=di.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=fi.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,i]=tr(n[1]||me,n[2]);return Nt(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],pi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yi=qr(...[hi,[li,e=>{const t=pi.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=gi.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||me;return[o,r]=tr(o,r),Nt(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),tr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:me,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},mi="https://bbed26c9265c425abb56ff9d3728183e@sentry.chocodev.kz/302";let Dt=null;function Ci(e){const t=new si({dsn:mi,transport:ci,stackParser:yi,integrations:[],release:"1.1.57",environment:e.environment||"production"}),n=new ce;n.setClient(t),n.setTags(e),t.init(),Dt=n}function se(e,t){Dt&&Dt.captureException(e,t?{captureContext:{extra:t}}:void 0)}function ct(e,t){pt("webPayToken",e),t&&pt("webPayRefreshToken",t)}function nr(){He("webPayToken"),He("webPayRefreshToken")}async function bi(e){const t=tn("webPayRefreshToken");if(t&&e.config.clientId)try{const n=await Nr(e.apiUrl,e.config.clientId,t,e.config.country);ct(n.access_token,n.refresh_token),e.accessToken=n.access_token;return}catch{He("webPayRefreshToken")}if(!e.config.clientId){e.config.onError({attributes:{message:e.t("errorMissingTrackClient")}});return}if(!e.config.trackId&&typeof e.config.onRequestNewTrackId=="function"&&(e.config.trackId=await e.config.onRequestNewTrackId()),!e.config.trackId){e.config.onError({attributes:{message:e.t("errorMissingTrackClient")}});return}try{const n=await nn(e.apiUrl,e.config.clientId,e.config.trackId,e.config.country);ct(n.access_token,n.refresh_token),e.accessToken=n.access_token}catch(n){if(typeof e.config.onRequestNewTrackId=="function"){e.config.trackId=await e.config.onRequestNewTrackId();const r=await nn(e.apiUrl,e.config.clientId,e.config.trackId,e.config.country);ct(r.access_token,r.refresh_token),e.accessToken=r.access_token}else throw n}}const Ei={kaspi_pay:`<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
7
+ `),typeof u=="string"||u instanceof Uint8Array)o(u);else{let l;try{l=JSON.stringify(u)}catch{l=JSON.stringify(oe(u))}o(l)}}return typeof r=="string"?r:ss(r)}function ss(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function is(e){const t=typeof e.data=="string"?Ot(e.data):e.data;return[Y({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const as={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function jn(e){return as[e]}function Jn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function cs(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:nt(r)},...o&&{trace:Y({...o})}}}function us(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function ls(e,t,n,r){const o=Jn(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:nt(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Te(i,[c])}function As(e,t,n,r){const o=Jn(n),i=e.type&&e.type!=="replay_event"?e.type:"event";us(e,n&&n.sdk);const c=cs(e,o,r,t);return delete e.sdkProcessingMetadata,Te(c,[[{type:i},e]])}function Nt(e,t,n,r=0){return new W((o,i)=>{const c=e[r];if(t===null||typeof c!="function")o(t);else{const u=c({...t},n);U&&c.id&&u===null&&N.log(`Event processor "${c.id}" dropped event`),Ve(u)?u.then(l=>Nt(e,l,n,r+1).then(o)).then(null,i):Nt(e,u,n,r+1).then(o).then(null,i)}})}let rt,qn,ot;function ds(e){const t=j._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return ot&&n.length===qn||(qn=n.length,ot=n.reduce((r,o)=>{rt||(rt={});const i=rt[o];if(i)r[i[0]]=i[1];else{const c=e(o);for(let u=c.length-1;u>=0;u--){const l=c[u],h=l&&l.filename,y=t[o];if(h&&y){r[h]=y,rt[o]=[h,y];break}}}return r},{})),ot}function fs(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;hs(e,t),r&&ys(e,r),ms(e,n),ps(e,o),gs(e,i)}function zn(e,t){const{extra:n,tags:r,user:o,contexts:i,level:c,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:h,eventProcessors:y,attachments:m,propagationContext:b,transactionName:I,span:B}=t;st(e,"extra",n),st(e,"tags",r),st(e,"user",o),st(e,"contexts",i),e.sdkProcessingMetadata=tt(e.sdkProcessingMetadata,u,2),c&&(e.level=c),I&&(e.transactionName=I),B&&(e.span=B),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),m.length&&(e.attachments=[...e.attachments,...m]),e.propagationContext={...e.propagationContext,...b}}function st(e,t,n){e[t]=tt(e[t],n,1)}function hs(e,t){const{extra:n,tags:r,user:o,contexts:i,level:c,transactionName:u}=t,l=Y(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const h=Y(r);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=Y(o);y&&Object.keys(y).length&&(e.user={...y,...e.user});const m=Y(i);m&&Object.keys(m).length&&(e.contexts={...m,...e.contexts}),c&&(e.level=c),u&&e.type!=="transaction"&&(e.transaction=u)}function ps(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function gs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ys(e,t){e.contexts={trace:No(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:qo(t),...e.sdkProcessingMetadata};const n=Mn(t),r=Rt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function ms(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Cs(e,t,n,r,o,i){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ee(),timestamp:t.timestamp||$e()},h=n.integrations||e.integrations.map(S=>S.name);bs(l,e),Is(l,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Es(l,e.stackParser);const y=Ss(r,n.captureContext);n.mechanism&&we(l,n.mechanism);const m=o?o.getEventProcessors():[],b=bo().getScopeData();if(i){const S=i.getScopeData();zn(b,S)}if(y){const S=y.getScopeData();zn(b,S)}const I=[...n.attachments||[],...b.attachments];I.length&&(n.attachments=I),fs(l,b);const B=[...m,...b.eventProcessors];return Nt(B,l,n).then(S=>(S&&vs(S),typeof c=="number"&&c>0?Bs(S,c,u):S))}function bs(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||xn,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Pe(e.message,i));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Pe(c.value,i));const u=e.request;u&&u.url&&(u.url=Pe(u.url,i))}function Es(e,t){const n=ds(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function vs(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function Is(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Bs(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:oe(o.data,t,n)}}))},...e.user&&{user:oe(e.user,t,n)},...e.contexts&&{contexts:oe(e.contexts,t,n)},...e.extra&&{extra:oe(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=oe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:oe(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=oe(e.contexts.flags,3,n)),r}function Ss(e,t){if(!t)return e;const n=e?e.clone():new ce;return n.update(t),n}const _s="7";function Qs(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ks(e){return`${Qs(e)}${e.projectId}/envelope/`}function Ps(e,t){const n={sentry_version:_s};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function ws(e,t,n){return t||`${ks(e)}?${Ps(e,n)}`}const Kn=[];function Ts(e,t){const n={};return t.forEach(r=>{r&&Wn(e,r,n)}),n}function Gn(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Wn(e,t,n){if(n[t.name]){U&&N.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Kn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Kn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,c)=>r(i,c,e),{id:t.name});e.addEventProcessor(o)}U&&N.log(`Integration installed: ${t.name}`)}function Rs(e,t,n){const r=[{type:"client_report"},{timestamp:$e(),discarded_events:e}];return Te(t?{dsn:t}:{},[r])}class V extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const Yn="Not capturing exception because it's already been captured.";class Ls{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Vo(t.dsn):U&&N.warn("No DSN provided, client will not send events."),this._dsn){const o=ws(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);r&&Ge(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const o=ee();if(_n(t))return U&&N.log(Yn),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(c=>this._captureEvent(c,i,r))),i.event_id}captureMessage(t,n,r,o){const i={event_id:ee(),...r},c=St(t)?t:String(t),u=Zr(t)?this.eventFromMessage(c,n,i):this.eventFromException(t,i);return this._process(u.then(l=>this._captureEvent(l,i,o))),i.event_id}captureEvent(t,n,r){const o=ee();if(n&&n.originalException&&_n(n.originalException))return U&&N.log(Yn),o;const i={event_id:o,...n},u=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,u||r)),i.event_id}captureSession(t){typeof t.release!="string"?U&&N.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Qt(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):fe(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Wn(this,t,this._integrations),n||Gn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=As(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=rs(r,is(i));const o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=ls(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,i=`${t}:${n}`;U&&N.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(U&&N.error("Error while sending envelope:",n),n)):(U&&N.error("Transport disabled"),fe({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Ts(this,t),Gn(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const l of i){const h=l.mechanism;if(h&&h.handled===!1){r=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&r)&&(Qt(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new W(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=Rn(),o=Co()){const i=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Cs(i,t,n,r,this,o).then(u=>{if(u===null)return u;u.contexts={trace:Eo(r),...u.contexts};const l=Jo(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:l,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{U&&(o instanceof V&&o.logLevel==="log"?N.log(o.message):N.warn(o))})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,c=Zn(t),u=Vn(t),l=t.type||"error",h=`before send for type \`${l}\``,y=typeof i>"u"?void 0:zo(i);if(u&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),et(new V(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const m=l==="replay_event"?"replay":l,I=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,I).then(B=>{if(B===null)throw this.recordDroppedEvent("event_processor",m,t),new V("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return B;const S=Ns(this,o,B,n);return Os(S,h)}).then(B=>{if(B===null){if(this.recordDroppedEvent("before_send",m,t),c){const k=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",k)}throw new V(`${h} returned \`null\`, will not send event.`,"log")}const Q=r&&r.getSession();if(!c&&Q&&this._updateSessionFromEvent(Q,B),c){const P=B.sdkProcessingMetadata&&B.sdkProcessingMetadata.spanCountBeforeProcessing||0,k=B.spans?B.spans.length:0,L=P-k;L>0&&this.recordDroppedEvent("before_send","span",L)}const S=B.transaction_info;if(c&&S&&B.transaction!==t.transaction){const P="custom";B.transaction_info={...S,source:P}}return this.sendEvent(B,n),B}).then(null,B=>{throw B instanceof V?B:(this.captureException(B,{data:{__sentry__:!0},originalException:B}),new V(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
8
+ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){U&&N.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){U&&N.log("No outcomes to send");return}if(!this._dsn){U&&N.log("No dsn provided, will not send outcomes");return}U&&N.log("Sending outcomes:",t);const n=Rs(t,this._options.tunnel&&nt(this._dsn));this.sendEnvelope(n)}}function Os(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ve(e))return e.then(r=>{if(!Ee(r)&&r!==null)throw new V(n);return r},r=>{throw new V(`${t} rejected with ${r}`)});if(!Ee(e)&&e!==null)throw new V(n);return e}function Ns(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:c}=t;if(Vn(n)&&o)return o(n,r);if(Zn(n)){if(n.spans&&c){const u=[];for(const l of n.spans){const h=c(l);h?u.push(h):(Xo(),e.recordDroppedEvent("before_send","span"))}n.spans=u}if(i){if(n.spans){const u=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(n,r)}}return n}function Vn(e){return e.type===void 0}function Zn(e){return e.type==="transaction"}function Ds(e){const t=[];function n(){return e===void 0||t.length<e}function r(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return et(new V("Not adding Promise because buffer limit was reached."));const u=c();return t.indexOf(u)===-1&&t.push(u),u.then(()=>r(u)).then(null,()=>r(u).then(null,()=>{})),u}function i(c){return new W((u,l)=>{let h=t.length;if(!h)return u(!0);const y=setTimeout(()=>{c&&c>0&&u(!1)},c);t.forEach(m=>{fe(m).then(()=>{--h||(clearTimeout(y),u(!0))},l)})})}return{$:t,add:o,drain:i}}const Ms=60*1e3;function xs(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ms:r-t}function Us(e,t){return e[t]||e.all||0}function Fs(e,t,n=Date.now()){return Us(e,t)>n}function Xs(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(i)for(const u of i.trim().split(",")){const[l,h,,,y]=u.split(":",5),m=parseInt(l,10),b=(isNaN(m)?60:m)*1e3;if(!h)o.all=r+b;else for(const I of h.split(";"))I==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(o[I]=r+b):o[I]=r+b}else c?o.all=r+xs(c,r):t===429&&(o.all=r+60*1e3);return o}const Hs=64;function js(e,t,n=Ds(e.bufferSize||Hs)){let r={};const o=c=>n.drain(c);function i(c){const u=[];if(Hn(c,(m,b)=>{const I=jn(b);if(Fs(r,I)){const B=$n(m,b);e.recordDroppedEvent("ratelimit_backoff",I,B)}else u.push(m)}),u.length===0)return fe({});const l=Te(c[0],u),h=m=>{Hn(l,(b,I)=>{const B=$n(b,I);e.recordDroppedEvent(m,jn(I),B)})},y=()=>t({body:os(l)}).then(m=>(m.statusCode!==void 0&&(m.statusCode<200||m.statusCode>=300)&&U&&N.warn(`Sentry responded with status code ${m.statusCode} to sent event.`),r=Xs(r,m),m),m=>{throw h("network_error"),m});return n.add(y).then(m=>m,m=>{if(m instanceof V)return U&&N.error("Skipped sending event because buffer is full."),h("queue_overflow"),fe({});throw m})}return{send:i,flush:o}}function $n(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Js(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:de})),version:de}),e._metadata=o}function qs(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function zs(){return"npm"}const it=j,Ks=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function er(e,t){const n=Mt(e,t),r={type:Zs(t),value:$s(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Gs(e,t,n,r){const o=Tt(),i=o&&o.getOptions().normalizeDepth,c=si(t),u={__serialized__:Xn(t,i)};if(c)return{exception:{values:[er(e,c)]},extra:u};const l={exception:{values:[{type:Ye(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ri(t,{isUnhandledRejection:r})}]},extra:u};if(n){const h=Mt(e,n);h.length&&(l.exception.values[0].stacktrace={frames:h})}return l}function Dt(e,t){return{exception:{values:[er(e,t)]}}}function Mt(e,t){const n=t.stacktrace||t.stack||"",r=Ys(t),o=Vs(t);try{return e(n,r,o)}catch{}return[]}const Ws=/Minified React error #\d+;/i;function Ys(e){return e&&Ws.test(e.message)?1:0}function Vs(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function tr(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Zs(e){const t=e&&e.name;return!t&&tr(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function $s(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:tr(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function ei(e,t,n,r){const o=n&&n.syntheticException||void 0,i=ni(e,t,o,r);return we(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),fe(i)}function ti(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,c=xt(e,t,i,o);return c.level=n,r&&r.event_id&&(c.event_id=r.event_id),fe(c)}function ni(e,t,n,r,o){let i;if(gn(t)&&t.error)return Dt(e,t.error);if(yn(t)||Vr(t)){const c=t;if("stack"in t)i=Dt(e,t);else{const u=c.name||(yn(c)?"DOMError":"DOMException"),l=c.message?`${u}: ${c.message}`:u;i=xt(e,l,n,r),Sn(i,l)}return"code"in c&&(i.tags={...i.tags,"DOMException.code":`${c.code}`}),i}return pn(t)?Dt(e,t):Ee(t)||Ye(t)?(i=Gs(e,t,n,o),we(i,{synthetic:!0}),i):(i=xt(e,t,n,r),Sn(i,`${t}`),we(i,{synthetic:!0}),i)}function xt(e,t,n,r){const o={};if(r&&n){const i=Mt(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),we(o,{synthetic:!0})}if(St(t)){const{__sentry_template_string__:i,__sentry_template_values__:c}=t;return o.logentry={message:i,params:c},o}return o.message=t,o}function ri(e,{isUnhandledRejection:t}){const n=io(e),r="exception";return gn(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ye(e)?`Event \`${oi(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function oi(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function si(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function ii(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:nt(r)}},i=ai(e);return Te(o,[i])}function ai(e){return[{type:"user_report"},e]}class ci extends Ls{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=it.SENTRY_SDK_SOURCE||zs();Js(n,"browser",["browser"],r),super(n),n.sendClientReports&&it.document&&it.document.addEventListener("visibilitychange",()=>{it.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return ei(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return ti(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Ks&&N.warn("SDK not enabled, will not capture user feedback.");return}const n=ii(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const ui=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,at=j,ct={};function li(e){const t=ct[e];if(t)return t;let n=at[e];if(qs(n))return ct[e]=n.bind(at);const r=at.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){ui&&N.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(ct[e]=n.bind(at))}function nr(e){ct[e]=void 0}function Ai(e,t=li("fetch")){let n=0,r=0;function o(i){const c=i.body.length;n+=c,r++;const u={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return nr("fetch"),et("No fetch implementation available");try{return t(e.url,u).then(l=>(n-=c,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return nr("fetch"),n-=c,r--,et(l)}}return js(e,o)}const di=30,fi=50;function Ut(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?be:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const hi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,pi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gi=/\((\S*)(?::(\d+))(?::(\d+))\)/,yi=[di,e=>{const t=hi.exec(e);if(t){const[,r,o,i]=t;return Ut(r,be,+o,+i)}const n=pi.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=gi.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,i]=rr(n[1]||be,n[2]);return Ut(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],mi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ci=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bi=Gr(...[yi,[fi,e=>{const t=mi.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Ci.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||be;return[o,r]=rr(o,r),Ut(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),rr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:be,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ei="https://bbed26c9265c425abb56ff9d3728183e@sentry.chocodev.kz/302";let Ft=null;function vi(e){const t=new ci({dsn:Ei,transport:Ai,stackParser:bi,integrations:[],release:"1.1.59",environment:e.environment||"production"}),n=new ce;n.setClient(t),n.setTags(e),t.init(),Ft=n}function se(e,t){Ft&&Ft.captureException(e,t?{captureContext:{extra:t}}:void 0)}function ut(e,t){je("webPayToken",e),t&&je("webPayRefreshToken",t)}function or(){Ce("webPayToken"),Ce("webPayRefreshToken")}async function Ii(e){const t=Ct("webPayRefreshToken");if(t&&e.config.clientId)try{const n=await xr(e.apiUrl,e.config.clientId,t,e.config.country);ut(n.access_token,n.refresh_token),e.accessToken=n.access_token;return}catch{Ce("webPayRefreshToken")}if(!e.config.clientId){e.config.onError({attributes:{message:e.t("errorMissingTrackClient")}});return}if(!e.config.trackId&&typeof e.config.onRequestNewTrackId=="function"&&(e.config.trackId=await e.config.onRequestNewTrackId()),!e.config.trackId){e.config.onError({attributes:{message:e.t("errorMissingTrackClient")}});return}try{const n=await on(e.apiUrl,e.config.clientId,e.config.trackId,e.config.country);ut(n.access_token,n.refresh_token),e.accessToken=n.access_token}catch(n){if(typeof e.config.onRequestNewTrackId=="function"){e.config.trackId=await e.config.onRequestNewTrackId();const r=await on(e.apiUrl,e.config.clientId,e.config.trackId,e.config.country);ut(r.access_token,r.refresh_token),e.accessToken=r.access_token}else throw n}}const Bi={kaspi_pay:`<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
9
9
  <path fill-rule="evenodd" clip-rule="evenodd" d="M8.89711 8.50443C10.4185 8.72365 10.6242 9.56386 10.7471 10.3459L10.7816 10.5699L10.8557 11.0301C11.0006 11.9088 11.303 13.7327 11.303 14.6845C11.303 14.9224 11.2806 15.105 11.2396 15.2053C11.1713 15.3599 10.9724 15.5082 10.6978 15.6319C10.0332 15.7846 9.33863 15.8671 8.62315 15.8671C8.54739 15.8671 8.47285 15.8637 8.39805 15.8616C8.10889 15.785 7.89156 15.657 7.77649 15.4821C7.42905 14.9542 7.40812 13.7781 7.40116 12.4037L7.40037 12.2443L7.39755 11.8324C7.38623 10.3774 7.37651 9.1229 7.94288 8.67272C8.16223 8.49957 8.47392 8.44225 8.89711 8.50443ZM5.58009 11.6722C5.90978 11.6548 6.12181 13.1684 6.16441 14.3162C6.19427 15.1152 6.10438 15.4439 5.96084 15.5619C5.79833 15.5113 5.63864 15.4565 5.48128 15.397C5.3763 15.219 5.29607 14.9389 5.2451 14.5721C5.08947 13.4193 5.22466 11.6925 5.58009 11.6722ZM13.8455 13.934C13.825 14.0391 13.796 14.1204 13.7602 14.1889C13.4783 14.4 13.1821 14.5938 12.872 14.7682C12.7733 14.7837 12.6856 14.7729 12.6427 14.7053C12.2318 14.0314 12.0775 11.9173 12.4752 11.7333C12.9936 11.4995 13.9224 13.5685 13.8455 13.934ZM8.50042 0C13.1296 0 16.8941 3.42166 16.9979 7.67934L17 7.82651V7.89454C16.9915 9.81778 16.2332 11.5773 14.9839 12.9392C14.9386 12.918 14.8559 12.8486 14.7062 12.6395C14.5512 12.4293 13.2148 10.5096 13.2148 8.30946C13.2148 7.87768 13.8816 7.20318 14.4717 6.61114C14.9128 6.16562 15.3306 5.74539 15.4845 5.4151C15.6804 4.98892 15.5433 4.69134 15.3265 4.59047C15.1302 4.50082 14.8355 4.56621 14.6287 4.90904C14.2893 5.46389 14.1805 5.56758 13.6855 5.93882C13.1984 6.30986 12.424 6.68338 12.424 6.19988C12.424 5.93882 12.8553 5.34757 13.0684 4.93314C13.286 4.51408 13.0515 4.21072 12.6022 4.21072C11.7198 4.21072 11.1341 5.2598 11.1341 5.62326C11.1341 5.98642 11.3229 6.03813 11.3229 6.46104C11.3229 6.88713 10.3548 7.4398 9.44281 7.4398C8.56481 7.4398 8.05566 7.27394 7.8447 6.80665L7.81777 6.74105L7.75678 6.57266C7.54046 5.98255 7.38528 5.55458 7.11514 5.10733C6.9717 4.87081 6.75038 4.70684 6.55897 4.56257C6.30881 4.38121 6.17902 4.21421 6.15193 4.08967C6.12696 3.96611 6.11352 3.73326 6.54117 3.19648C6.96793 2.66277 7.02775 2.25958 6.81418 2.05153C6.73678 1.97752 6.60482 1.93011 6.43535 1.93011C6.13562 1.93011 5.71912 2.07834 5.2899 2.48551C4.62267 3.12364 5.00146 3.72951 5.00146 3.99548C5.00146 4.26127 4.87922 4.41162 4.47882 4.77323C4.07547 5.13644 3.93627 5.44783 3.89014 6.69935C3.87247 7.3442 3.75079 7.71539 3.64156 8.04453C3.54718 8.33302 3.46038 8.60425 3.45569 8.99611C3.44822 9.43038 3.52566 9.71023 3.61604 10.0331C3.70477 10.3316 3.79902 10.6736 3.8594 11.2456C3.95544 12.1312 3.92205 12.8792 3.74744 13.6437L3.70084 13.8353L3.68995 13.8903C3.65419 14.0247 3.61168 14.1879 3.55423 14.249C1.4029 12.8228 0 10.4936 0 7.86072C0 3.51974 3.80561 0 8.50042 0Z" fill="#F14635"/>
10
10
  </svg>
11
11
  `,new_card:`<svg width="21" height="12" viewBox="0 0 21 12" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -62,15 +62,15 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
62
62
  <image id="image0_23934_927" width="989" height="768" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA90AAAMACAYAAAA5bgR3AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAD3aADAAQAAAABAAADAAAAAADN00SyAABAAElEQVR4AezdCZxlV1Xo/7XPHWrqrp67uquqh8whLQESIEwBZAhoggNiQIaQTgIRA09ARJ/8ea/lr399oDwIKsaQNAQEjU8FQXmaKIgoo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IjlDwuBuw8L8KSxpnusYpYZ0OYruOo1JXpAS8AZSQ7AP0bKllsWYR/OSzu4Cum/KdEu+YSbOgFgUBrTR5NGZDC9ZNSdyeQNdGjTdBM2jWtASGuiZeD3RvUhFO527VaV0MOAA0mtiKrQU9AxNdz+Qv3cd1znZDG9B43246tGmre9k9bfZZ/LwFTNYxYPRHePzZgE/VWSiuHA8aQBMP1nFlMh7nw7sbqmNc2Y39b7atS9LdteHewT0QoQd0k9wRjAa6cWur4HvtJhR0qsL+PNBsnvAceAQ80MT9bHWDrEMwgxlBSdVh+XkU2BjI18lWQYB8vUZzq8BUPhWWgr8ALdEUVOhRQetP4D4wD7j/cUIHkn813ncFKixuAuR/BfzvBEOa21fZvtCE/KwikpImjXUljXNA1ZNsTBiUNGOvhHNzoPEqyF8an7ou6BoxFLwBVPSRPwQlOgvBYjC/+VnXh6eAk3ugnQeSe5DG2WZA2w2BxpnO22FAY1JjTtdDXe803nRPSq6Jj/NZY+9eoHNU52wvkPy0A9A1TZAv3w1a7+Or813npq5r8tuzoPU+fh/flUTqfHZyD+TxgOLK1vGoManxqBhHY7J/XNk6Hh9kv4ou/w/uBh7X4IQ89Fc6shlscEygcgAAAABJRU5ErkJggg=="/>
63
63
  </defs>
64
64
  </svg>
65
- `};function vi(e){const t=e==null?void 0:e.toLowerCase();return t&&Ei[t]||""}const Mt=`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
65
+ `};function Si(e){const t=e==null?void 0:e.toLowerCase();return t&&Bi[t]||""}const Xt=`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
66
66
  <path d="M19.7045 10.7313C15.0567 10.7313 11.2687 6.94328 11.2687 2.26866C11.2687 2.10746 11.1612 2 11 2C10.8388 2 10.7313 2.10746 10.7313 2.26866C10.7313 6.94328 6.94328 10.7313 2.26866 10.7313C2.10746 10.7313 2 10.8388 2 11C2 11.1612 2.10746 11.2687 2.26866 11.2687C6.94328 11.2687 10.7313 15.0567 10.7313 19.7313C10.7313 19.8925 10.8388 20 11 20C11.1612 20 11.2687 19.8925 11.2687 19.7313C11.2687 15.0567 15.0567 11.2687 19.7313 11.2687C19.8925 11.2687 20 11.1612 20 11C20 10.8388 19.8657 10.7313 19.7045 10.7313Z" fill="#2F2F2F"/>
67
67
  </svg>
68
- `,Ii='<svg class="choco-widget-method-item-trash" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.16663 5.83317H15.8333" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5.8335V15.0002C15 15.921 14.2542 16.6668 13.3333 16.6668H6.66667C5.74583 16.6668 5 15.921 5 15.0002V5.8335" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12.5 3.12516H7.5" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.33329 9.1665V13.3332" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M11.6667 9.1665V13.3332" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',Bi='<svg class="choco-widget-method-item-check" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.3333 4.3335L5.99996 11.6668L2.66663 8.3335" stroke="#242424" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';function ut(e){return vi(e==null?void 0:e.iconType)}function rr(e,t,n,r={}){const{editMode:o=!1}=r;return(o?e.filter(c=>c.type==="card"):e).map(c=>{const u=!o&&!!t&&t.type===c.type&&t.cardId===c.cardId,l=JSON.stringify(c).replace(/'/g,"&apos;");return o?`
68
+ `,_i='<svg class="choco-widget-method-item-trash" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.16663 5.83317H15.8333" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5.8335V15.0002C15 15.921 14.2542 16.6668 13.3333 16.6668H6.66667C5.74583 16.6668 5 15.921 5 15.0002V5.8335" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12.5 3.12516H7.5" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.33329 9.1665V13.3332" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M11.6667 9.1665V13.3332" stroke="#CC3434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',Qi='<svg class="choco-widget-method-item-check" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.3333 4.3335L5.99996 11.6668L2.66663 8.3335" stroke="#242424" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';function lt(e){return Si(e==null?void 0:e.iconType)}function sr(e,t,n,r={}){const{editMode:o=!1}=r;return(o?e.filter(c=>c.type==="card"):e).map(c=>{const u=!o&&!!t&&t.type===c.type&&t.cardId===c.cardId,l=JSON.stringify(c).replace(/'/g,"&apos;");return o?`
69
69
  <div
70
70
  class="choco-widget-method-item choco-widget-method-item--edit"
71
71
  role="listitem"
72
72
  >
73
- <div class="choco-widget-method-item-icon-wrapper" aria-hidden="true">${ut(c)}</div>
73
+ <div class="choco-widget-method-item-icon-wrapper" aria-hidden="true">${lt(c)}</div>
74
74
  <div class="choco-widget-method-item-label">${c.label}</div>
75
75
  <button
76
76
  type="button"
@@ -79,7 +79,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
79
79
  data-method='${l}'
80
80
  aria-label="${c.label} — Удалить"
81
81
  >
82
- ${Ii}
82
+ ${_i}
83
83
  </button>
84
84
  </div>
85
85
  `:`
@@ -91,11 +91,11 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
91
91
  aria-label="${c.label}${u?" (выбрано)":""}"
92
92
  type="button"
93
93
  >
94
- <div class="choco-widget-method-item-icon-wrapper ${c.type}" aria-hidden="true">${ut(c)}</div>
94
+ <div class="choco-widget-method-item-icon-wrapper ${c.type}" aria-hidden="true">${lt(c)}</div>
95
95
  <div class="choco-widget-method-item-label">${c.label}</div>
96
- ${u?Bi:""}
96
+ ${u?Qi:""}
97
97
  </button>
98
- `}).join("")}function Si(e,t,n,r){if(!e)return"";const o=typeof e.amount=="number"&&Number.isFinite(e.amount),i=typeof e.percent=="number"&&Number.isFinite(e.percent);return`
98
+ `}).join("")}function ki(e,t,n,r){if(!e)return"";const o=typeof e.amount=="number"&&Number.isFinite(e.amount),i=typeof e.percent=="number"&&Number.isFinite(e.percent);return`
99
99
  <div class="choco-widget-balance-toggle" data-action="toggle-bonuses">
100
100
  <div class="choco-widget-balance-info">
101
101
  <div class="choco-widget-balance-text">
@@ -105,7 +105,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
105
105
  </div>
106
106
  <div class="choco-widget-balance-label-wrapper">
107
107
  <div class="choco-widget-balance-icon">
108
- ${Mt}
108
+ ${Xt}
109
109
  </div>
110
110
  <div class="choco-widget-balance-amount">${o?Z(e.amount,"ru",r):0}</div>
111
111
  <label class="choco-widget-toggle">
@@ -114,7 +114,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
114
114
  </label>
115
115
  </div>
116
116
  </div>
117
- `}function _i(e,t,n,r,o){if(!e)return"";const i=new Date(e.expires_at),c=isNaN(i.getTime())?"":`${String(i.getDate()).padStart(2,"0")}.${String(i.getMonth()+1).padStart(2,"0")}`,u=c?r("couponUntil",{date:c}):"",l=Number(e.reward_amount),h=Number.isFinite(l)&&l>0?Z(l,"ru",o):null;return`
117
+ `}function Pi(e,t,n,r,o){if(!e)return"";const i=new Date(e.expires_at),c=isNaN(i.getTime())?"":`${String(i.getDate()).padStart(2,"0")}.${String(i.getMonth()+1).padStart(2,"0")}`,u=c?r("couponUntil",{date:c}):"",l=Number(e.reward_amount),h=Number.isFinite(l)&&l>0?Z(l,"ru",o):null;return`
118
118
  <div class="choco-widget-balance-toggle${n?" choco-widget-balance-toggle--disabled":""}" data-action="toggle-coupon">
119
119
  <div class="choco-widget-balance-info">
120
120
  <div class="choco-widget-balance-text">
@@ -125,7 +125,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
125
125
  <div class="choco-widget-balance-label-wrapper">
126
126
  ${h?`
127
127
  <div class="choco-widget-balance-icon">
128
- ${Mt}
128
+ ${Xt}
129
129
  </div>
130
130
  <div class="choco-widget-balance-amount">${h}</div>
131
131
  `:""}
@@ -135,7 +135,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
135
135
  </label>
136
136
  </div>
137
137
  </div>
138
- `}function Qi(e,t,n,r,o,i,c,u,l){if(!e&&!n&&!o)return"";const h=e?`
138
+ `}function wi(e,t,n,r,o,i,c,u,l){if(!e&&!n&&!o)return"";const h=e?`
139
139
  <div class="choco-widget-balance-toggle" data-action="toggle-balance">
140
140
  <div class="choco-widget-balance-info">
141
141
  <div class="choco-widget-balance-text">
@@ -144,7 +144,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
144
144
  </div>
145
145
  <div class="choco-widget-balance-label-wrapper">
146
146
  <div class="choco-widget-balance-icon">
147
- ${Mt}
147
+ ${Xt}
148
148
  </div>
149
149
  <div class="choco-widget-balance-amount">${e}</div>
150
150
  <label class="choco-widget-toggle">
@@ -155,11 +155,11 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
155
155
  </div>
156
156
  `:"";return`
157
157
  <div class="choco-widget-balance-section">
158
- ${_i(o,i,c,u,l)}
158
+ ${Pi(o,i,c,u,l)}
159
159
  ${h}
160
- ${Si(n,r,u,l)}
160
+ ${ki(n,r,u,l)}
161
161
  </div>
162
- `}function ki(e,t){return e?`
162
+ `}function Ti(e,t){return e?`
163
163
  <div class="choco-widget-cashback-section">
164
164
  <div class="choco-widget-cashback-info">
165
165
  <span class="choco-widget-cashback-icon">🎁</span>
@@ -168,8 +168,8 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
168
168
  </span>
169
169
  </div>
170
170
  </div>
171
- `:""}function Pi(e){const{amountFormatted:t,originalAmountFormatted:n,showOriginalAmount:r=!1,paymentMethod:o,methods:i,selectedMethod:c,balanceFormatted:u,useBalance:l,bonuses:h,useBonuses:y,coupon:m,useCoupon:b,couponDisabled:I,cashbackFormatted:B,disabled:Q,paymentMethodDisabled:S=!1,loading:P,showFreedomBtn:k,freedomAmountFormatted:R,t:L,currency:z}=e,D=(o==null?void 0:o.label)??L("selectMethod"),G=ut(o),K=rr(i,c),J=Qi(u,l,h,y,m,b,I,L,z),M=ki(B,L),v=(c==null?void 0:c.type)==="google_pay",g=(c==null?void 0:c.type)==="apple_pay",p=v||g;return`
172
- <div class="choco-widget-bottom-bar" role="region" aria-label="${L("paymentMethod")}">
171
+ `:""}function Ri(e){const{amountFormatted:t,originalAmountFormatted:n,showOriginalAmount:r=!1,paymentMethod:o,methods:i,selectedMethod:c,balanceFormatted:u,useBalance:l,bonuses:h,useBonuses:y,coupon:m,useCoupon:b,couponDisabled:I,cashbackFormatted:B,disabled:Q,paymentMethodDisabled:S=!1,loading:P,showFreedomBtn:k,freedomAmountFormatted:L,t:R,currency:z}=e,D=(o==null?void 0:o.label)??R("selectMethod"),G=lt(o),K=sr(i,c),J=wi(u,l,h,y,m,b,I,R,z),M=Ti(B,R),v=(c==null?void 0:c.type)==="google_pay",g=(c==null?void 0:c.type)==="apple_pay",p=v||g;return`
172
+ <div class="choco-widget-bottom-bar" role="region" aria-label="${R("paymentMethod")}">
173
173
  ${J}
174
174
  <div class="choco-widget-payment-info">
175
175
  ${k?`
@@ -179,18 +179,18 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
179
179
  type="button"
180
180
  ${Q||P?"disabled":""}
181
181
  >
182
- от ${R} по карте Freedom
182
+ от ${L} по карте Freedom
183
183
  </button>
184
184
  `:""}
185
185
  <div class="choco-widget-payment-info-main">
186
186
  <button
187
187
  class="choco-widget-payment-method ${(o==null?void 0:o.type)||""}"
188
188
  data-action="change-method"
189
- aria-label="${L("paymentMethod")}: ${D}"
189
+ aria-label="${R("paymentMethod")}: ${D}"
190
190
  type="button"
191
191
  ${S||Q||P?"disabled":""}
192
192
  >
193
- <div class="choco-widget-method-label">${L("paymentMethod")}</div>
193
+ <div class="choco-widget-method-label">${R("paymentMethod")}</div>
194
194
  <div class="choco-widget-method-value">
195
195
  <div class="choco-widget-method-icon-wrapper ${o==null?void 0:o.type}" aria-hidden="true">${G}</div>
196
196
  <div class="choco-widget-method-details">
@@ -204,17 +204,17 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
204
204
  </div>
205
205
  </button>
206
206
  <div class="choco-widget-google-pay-amount ${p?"":"choco-widget-google-pay-amount--hidden"}" aria-live="polite">
207
- <div class="choco-widget-google-pay-amount-label">${L("total")} ${t}</div>
208
- ${r?`<div class="choco-widget-google-pay-amount-value">${L("instead")} <span class="choco-widget-google-pay-amount-value-number">${n||""}</span></div>`:""}
207
+ <div class="choco-widget-google-pay-amount-label">${R("total")} ${t}</div>
208
+ ${r?`<div class="choco-widget-google-pay-amount-value">${R("instead")} <span class="choco-widget-google-pay-amount-value-number">${n||""}</span></div>`:""}
209
209
  </div>
210
210
  <button
211
211
  class="choco-widget-pay-button ${P?"choco-widget-pay-button--loading":""} ${p?"choco-widget-pay-button--hidden":""}"
212
212
  data-action="pay"
213
- aria-label="${S?L("login"):`${L("pay")} ${t}`}"
213
+ aria-label="${S?R("login"):`${R("pay")} ${t}`}"
214
214
  type="button"
215
215
  ${Q||P?"disabled":""}
216
216
  >
217
- ${S?L("login"):`${L("pay")} ${t}`}
217
+ ${S?R("login"):`${R("pay")} ${t}`}
218
218
  </button>
219
219
  </div>
220
220
  <div class="choco-widget-google-pay-row ${v?"":"choco-widget-google-pay-row--hidden"}">
@@ -246,7 +246,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
246
246
  <path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
247
247
  </svg>
248
248
  </button>
249
- <h3 class="choco-widget-sheet-title" id="choco-sheet-title">${L("paymentMethods")}</h3>
249
+ <h3 class="choco-widget-sheet-title" id="choco-sheet-title">${R("paymentMethods")}</h3>
250
250
  <button
251
251
  class="choco-widget-sheet-button choco-widget-sheet-button--edit"
252
252
  data-action="edit-sheet"
@@ -261,7 +261,7 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
261
261
  <button
262
262
  class="choco-widget-sheet-button choco-widget-sheet-button--previous"
263
263
  data-action="previous-sheet"
264
- aria-label="${L("back")}"
264
+ aria-label="${R("back")}"
265
265
  type="button"
266
266
  style="display: none;"
267
267
  >
@@ -276,8 +276,8 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
276
276
  </div>
277
277
  <div class="choco-widget-sheet-delete-confirm" data-delete-confirm="content" aria-hidden="true">
278
278
  <div class="choco-widget-sheet-delete-confirm-actions">
279
- <button type="button" class="choco-widget-delete-confirm-btn choco-widget-delete-confirm-btn--cancel" data-action="confirm-delete-cancel">${L("cancel")}</button>
280
- <button type="button" class="choco-widget-delete-confirm-btn choco-widget-delete-confirm-btn--delete" data-action="confirm-delete-submit">${L("delete")}</button>
279
+ <button type="button" class="choco-widget-delete-confirm-btn choco-widget-delete-confirm-btn--cancel" data-action="confirm-delete-cancel">${R("cancel")}</button>
280
+ <button type="button" class="choco-widget-delete-confirm-btn choco-widget-delete-confirm-btn--delete" data-action="confirm-delete-submit">${R("delete")}</button>
281
281
  </div>
282
282
  </div>
283
283
  ${M}
@@ -287,18 +287,18 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
287
287
  <div class="choco-widget-add-card-sheet choco-widget-payment-sheet" data-sheet="add-card" aria-hidden="true" style="display: none;">
288
288
  <div class="choco-widget-sheet-content choco-widget-add-card-sheet-content">
289
289
  <div class="choco-widget-sheet-header">
290
- <h3 class="choco-widget-sheet-title">${L("addCard")}</h3>
290
+ <h3 class="choco-widget-sheet-title">${R("addCard")}</h3>
291
291
  </div>
292
292
  <div class="choco-widget-add-card-iframe-wrapper">
293
- <iframe id="choco-widget-add-card-iframe" class="choco-widget-add-card-iframe" title="${L("addCard")}" sandbox="allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts"></iframe>
293
+ <iframe id="choco-widget-add-card-iframe" class="choco-widget-add-card-iframe" title="${R("addCard")}" sandbox="allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts"></iframe>
294
294
  </div>
295
295
  </div>
296
296
  </div>
297
- `}function wi(){return`
297
+ `}function Li(){return`
298
298
  <div class="choco-widget-bottom-bar-prerender">
299
299
  <div class="choco-widget-payment-loading"></div>
300
300
  </div>
301
- `}function Ti(e,t,n,r={}){return rr(e,t,n,r)}function Li(e){return ut(e)}function Ri(e){if(typeof document>"u")return{mountTarget:null,isEmbedded:!1};const t=e.config.containerSelector;if(t){const n=document.querySelector(t);if(n instanceof HTMLElement)return{mountTarget:n,isEmbedded:!0}}return{mountTarget:document.body,isEmbedded:!1}}function or(e){if(typeof document>"u")return!1;e.container||(e.container=document.createElement("div"),e.container.id="choco-one-click-widget",e.container.className="choco-one-click-widget");const{mountTarget:t,isEmbedded:n}=Ri(e);return t?(e.container.parentElement!==t&&t.appendChild(e.container),e.container.classList.toggle("choco-one-click-widget--embedded",n),!0):!1}function Oi(e){or(e)&&(e.container.style.setProperty("--choco-widget-accent-color",e.config.color),e.container.innerHTML=wi())}function Ni(e){var y,m,b,I,B;if(e._destroyed||!or(e))return;e.container.style.setProperty("--choco-widget-accent-color",e.config.color),e.container.classList.remove("choco-one-click-widget--visible");const t=e.getAvailablePaymentMethods(),n=(y=e.checkoutContext)==null?void 0:y.data,r=e.config.currency||"KZT",o=(I=(b=(m=n==null?void 0:n.balance)==null?void 0:m.data)==null?void 0:b.money)==null?void 0:I[r],i=!e.config.disableUseBalance&&o>0?Z(o,e.config.locale,e.config.currency):null,c=(B=n==null?void 0:n.cashback)==null?void 0:B.data,u=(c==null?void 0:c.cashbackAmount)>0?Z(c.cashbackAmount,e.config.locale,e.config.currency):null,l=e._getPayableAmount(),h=l<e.config.amount;e.container.innerHTML=Pi({amountFormatted:Z(l,e.config.locale,e.config.currency),originalAmountFormatted:Z(e.config.amount,e.config.locale,e.config.currency),showOriginalAmount:h,paymentMethod:e.selectedPaymentMethod,methods:t,selectedMethod:e.selectedPaymentMethod,balanceFormatted:i,useBalance:e.useBalance,bonuses:e.config.bonuses,useBonuses:e.useBonuses,coupon:e.selectedCoupon,useCoupon:e.useCoupon,couponDisabled:e._isCouponDisabled(),cashbackFormatted:u,disabled:e.disabled,paymentMethodDisabled:e.paymentMethodDisabled,loading:e.loading,showFreedomBtn:!e.config.isFridge&&e.config.onFreedomLink!==null,freedomAmountFormatted:Z(Math.round(l*.94),e.config.locale,e.config.currency),t:(Q,S)=>e.t(Q,S),currency:r}),e._attachEventListeners(),e.isOpen=!0,e._emitUserEvent("one_click_pay_cta_rendered",{terminal_id:e.config.terminalId,project_id:e.config.projectId??e.config.clientId}),e._emitUserEvent("one_click_pay_method_resolved",{payment_method:e._getPaymentMethodForUserEvent()}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{var Q;e._destroyed||(Q=e.container)==null||Q.classList.add("choco-one-click-widget--visible")})})}function Te(e){var r;const t=(r=e.container)==null?void 0:r.querySelector(".choco-widget-payment-methods");if(!t)return;const n=e.getAvailablePaymentMethods();t.innerHTML=Ti(n,e.selectedPaymentMethod,o=>e.t(o),{editMode:e.isPaymentSheetEditMode}),t.querySelectorAll("[data-action='delete-card']").forEach(o=>{o.addEventListener("click",i=>{i.stopPropagation();const c=JSON.parse(o.getAttribute("data-method")||"{}");Fi(e,c)})}),t.querySelectorAll("[data-action='select-method']").forEach(o=>{o.addEventListener("click",i=>{const c=JSON.parse(i.currentTarget.getAttribute("data-method")||"{}");ur(e,c)})})}function sr(e){var o,i,c;const t=(o=e.container)==null?void 0:o.querySelector(".choco-widget-payment-method"),n=(i=e.container)==null?void 0:i.querySelector(".choco-widget-method-name"),r=(c=e.container)==null?void 0:c.querySelector(".choco-widget-method-icon-wrapper");t&&e.selectedPaymentMethod&&(t.className=`choco-widget-payment-method ${e.selectedPaymentMethod.type}`),n&&e.selectedPaymentMethod&&(n.className=`choco-widget-method-name ${e.selectedPaymentMethod.type}`,n.textContent=e.selectedPaymentMethod.label),r&&e.selectedPaymentMethod&&(r.className=`choco-widget-method-icon-wrapper ${e.selectedPaymentMethod.type}`,r.innerHTML=Li(e.selectedPaymentMethod)),ir(e)}function lt(e){var m,b,I,B,Q,S;const t=(m=e.container)==null?void 0:m.querySelector(".choco-widget-pay-button"),n=(b=e.container)==null?void 0:b.querySelector(".choco-widget-google-pay-amount"),r=(I=e.container)==null?void 0:I.querySelector(".choco-widget-google-pay-amount-label");let o=(B=e.container)==null?void 0:B.querySelector(".choco-widget-google-pay-amount-value"),i=(Q=e.container)==null?void 0:Q.querySelector(".choco-widget-google-pay-amount-value-number");const c=e._getPayableAmount(),u=Z(c,e.config.locale,e.config.currency),l=c<e.config.amount,h=Z(e.config.amount,e.config.locale,e.config.currency);if(t){const P=e.paymentMethodDisabled?e.t("login"):`${e.t("pay")} ${u}`;t.textContent=P,t.setAttribute("aria-label",P)}const y=(S=e.container)==null?void 0:S.querySelector(".choco-widget-freedom-card-btn");if(y&&(y.textContent=`от ${Z(Math.round(c*.94),e.config.locale,e.config.currency)} по карте Freedom`),r&&(r.textContent=`${e.t("total")} ${u}`),!l){o==null||o.remove();return}!o&&n&&(o=document.createElement("div"),o.className="choco-widget-google-pay-amount-value",o.innerHTML=`${e.t("instead")} <span class="choco-widget-google-pay-amount-value-number"></span>`,n.appendChild(o),i=o.querySelector(".choco-widget-google-pay-amount-value-number")),i?i.textContent=h:o&&(o.textContent=`${e.t("instead")} ${h}`)}function ir(e){var l,h,y,m,b,I,B,Q,S,P;const t=((l=e.selectedPaymentMethod)==null?void 0:l.type)==="google_pay",n=((h=e.selectedPaymentMethod)==null?void 0:h.type)==="apple_pay",r=t||n,o=(y=e.container)==null?void 0:y.querySelector(".choco-widget-pay-button"),i=(m=e.container)==null?void 0:m.querySelector(".choco-widget-google-pay-amount"),c=(b=e.container)==null?void 0:b.querySelector(".choco-widget-google-pay-row"),u=(I=e.container)==null?void 0:I.querySelector(".choco-widget-apple-pay-row");if(o==null||o.classList.toggle("choco-widget-pay-button--hidden",r),i==null||i.classList.toggle("choco-widget-google-pay-amount--hidden",!r),c==null||c.classList.toggle("choco-widget-google-pay-row--hidden",!t),u==null||u.classList.toggle("choco-widget-apple-pay-row--hidden",!n),t){Di(e);const k=(B=e.container)==null?void 0:B.querySelector('[data-action="apple-pay-button-slot"]');k&&(k.innerHTML="")}else if(n){e._googlePayButtonRenderVersion+=1;const k=(Q=e.container)==null?void 0:Q.querySelector('[data-action="google-pay-button-slot"]');k&&(k.innerHTML=""),Mi(e)}else{e._googlePayButtonRenderVersion+=1;const k=(S=e.container)==null?void 0:S.querySelector('[data-action="google-pay-button-slot"]'),R=(P=e.container)==null?void 0:P.querySelector('[data-action="apple-pay-button-slot"]');k&&(k.innerHTML=""),R&&(R.innerHTML="")}lt(e),ue(e)}async function Di(e){var c,u,l,h,y;const t=(c=e.container)==null?void 0:c.querySelector('[data-action="google-pay-button-slot"]');if(!t||(t.innerHTML="",((u=e.selectedPaymentMethod)==null?void 0:u.type)!=="google_pay"))return;const n=++e._googlePayButtonRenderVersion;try{await e._loadGooglePaySdk()}catch{e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}if(n!==e._googlePayButtonRenderVersion)return;if(!((y=(h=(l=window.google)==null?void 0:l.payments)==null?void 0:h.api)!=null&&y.PaymentsClient)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const r=e.config.environment==="production",i=new window.google.payments.api.PaymentsClient({environment:r?"PRODUCTION":"TEST"}).createButton({onClick:()=>e.handlePayment(),buttonType:"pay",buttonColor:"black",buttonLocale:e.config.locale||"ru",buttonSizeMode:"fill"});i.classList.add("choco-widget-google-pay-button"),i.style.setProperty("width","100%","important"),i.style.setProperty("height","52px","important"),i.style.setProperty("min-height","52px","important"),i.style.setProperty("border-radius","12px","important"),i.style.setProperty("font-size","16px","important"),i.style.setProperty("font-weight","bold","important"),i.querySelectorAll("*").forEach(m=>{m.style.setProperty("border-radius","12px","important"),m.style.setProperty("font-weight","bold","important"),m.style.setProperty("font-size","16px","important")}),t.appendChild(i),ue(e)}function Mi(e){var i,c;const t=(i=e.container)==null?void 0:i.querySelector('[data-action="apple-pay-button-slot"]');if(!t||(t.innerHTML="",((c=e.selectedPaymentMethod)==null?void 0:c.type)!=="apple_pay"))return;const n=document.createElement("div");n.className="choco-widget-apple-pay-button-wrapper";const r=document.createElement("button");r.type="button",r.className="choco-widget-apple-pay-button choco-widget-apple-pay-button--native",r.setAttribute("aria-label","Оплатить с Apple Pay"),r.style.setProperty("width","100%","important"),r.style.setProperty("height","52px","important"),r.style.setProperty("min-height","52px","important"),r.style.setProperty("border-radius","12px","important"),r.style.setProperty("-webkit-appearance","-apple-pay-button"),r.style.setProperty("-apple-pay-button-type","buy"),r.style.setProperty("-apple-pay-button-style","black"),r.addEventListener("click",()=>e.handlePayment());const o=document.createElement("div");o.className="choco-widget-apple-pay-button-overlay",o.setAttribute("aria-hidden","true"),o.innerHTML=`
301
+ `}function Oi(e,t,n,r={}){return sr(e,t,n,r)}function Ni(e){return lt(e)}function Di(e){if(typeof document>"u")return{mountTarget:null,isEmbedded:!1};const t=e.config.containerSelector;if(t){const n=document.querySelector(t);if(n instanceof HTMLElement)return{mountTarget:n,isEmbedded:!0}}return{mountTarget:document.body,isEmbedded:!1}}function ir(e){if(typeof document>"u")return!1;e.container||(e.container=document.createElement("div"),e.container.id="choco-one-click-widget",e.container.className="choco-one-click-widget");const{mountTarget:t,isEmbedded:n}=Di(e);return t?(e.container.parentElement!==t&&t.appendChild(e.container),e.container.classList.toggle("choco-one-click-widget--embedded",n),!0):!1}function Mi(e){ir(e)&&(e.container.style.setProperty("--choco-widget-accent-color",e.config.color),e.container.innerHTML=Li())}function xi(e){var m,b,I,B,Q;if(e._destroyed||!ir(e))return;e.container.style.setProperty("--choco-widget-accent-color",e.config.color),e.container.classList.remove("choco-one-click-widget--visible");const t=e.getAvailablePaymentMethods(),n=(m=e.checkoutContext)==null?void 0:m.data,r=e.config.currency||"KZT",o=(B=(I=(b=n==null?void 0:n.balance)==null?void 0:b.data)==null?void 0:I.money)==null?void 0:B[r],i=!e.config.disableUseBalance&&o>0?Z(o,e.config.locale,e.config.currency):null,c=(Q=n==null?void 0:n.cashback)==null?void 0:Q.data,u=(c==null?void 0:c.cashbackAmount)>0?Z(c.cashbackAmount,e.config.locale,e.config.currency):null,l=e._getPayableAmount(),h=l<e.config.amount;e.container.innerHTML=Ri({amountFormatted:Z(l,e.config.locale,e.config.currency),originalAmountFormatted:Z(e.config.amount,e.config.locale,e.config.currency),showOriginalAmount:h,paymentMethod:e.selectedPaymentMethod,methods:t,selectedMethod:e.selectedPaymentMethod,balanceFormatted:i,useBalance:e.useBalance,bonuses:e.config.bonuses,useBonuses:e.useBonuses,coupon:e.selectedCoupon,useCoupon:e.useCoupon,couponDisabled:e._isCouponDisabled(),cashbackFormatted:u,disabled:e.disabled,paymentMethodDisabled:e.paymentMethodDisabled,loading:e.loading,showFreedomBtn:!e.config.isFridge&&e.config.onFreedomLink!==null,freedomAmountFormatted:Z(Math.round(l*.94),e.config.locale,e.config.currency),t:(S,P)=>e.t(S,P),currency:r}),e._attachEventListeners(),e.isOpen=!0,e._emitUserEvent("one_click_pay_cta_rendered",{terminal_id:e.config.terminalId,project_id:e.config.projectId??e.config.clientId});const y=e._getPaymentMethodForUserEvent();y!=null&&e._emitUserEvent("one_click_pay_method_resolved",{payment_method:y}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{var S;e._destroyed||(S=e.container)==null||S.classList.add("choco-one-click-widget--visible")})})}function Re(e){var r;const t=(r=e.container)==null?void 0:r.querySelector(".choco-widget-payment-methods");if(!t)return;const n=e.getAvailablePaymentMethods();t.innerHTML=Oi(n,e.selectedPaymentMethod,o=>e.t(o),{editMode:e.isPaymentSheetEditMode}),t.querySelectorAll("[data-action='delete-card']").forEach(o=>{o.addEventListener("click",i=>{i.stopPropagation();const c=JSON.parse(o.getAttribute("data-method")||"{}");ji(e,c)})}),t.querySelectorAll("[data-action='select-method']").forEach(o=>{o.addEventListener("click",i=>{const c=JSON.parse(i.currentTarget.getAttribute("data-method")||"{}");Ar(e,c)})})}function ar(e){var o,i,c;const t=(o=e.container)==null?void 0:o.querySelector(".choco-widget-payment-method"),n=(i=e.container)==null?void 0:i.querySelector(".choco-widget-method-name"),r=(c=e.container)==null?void 0:c.querySelector(".choco-widget-method-icon-wrapper");t&&e.selectedPaymentMethod&&(t.className=`choco-widget-payment-method ${e.selectedPaymentMethod.type}`),n&&e.selectedPaymentMethod&&(n.className=`choco-widget-method-name ${e.selectedPaymentMethod.type}`,n.textContent=e.selectedPaymentMethod.label),r&&e.selectedPaymentMethod&&(r.className=`choco-widget-method-icon-wrapper ${e.selectedPaymentMethod.type}`,r.innerHTML=Ni(e.selectedPaymentMethod)),cr(e)}function At(e){var m,b,I,B,Q,S;const t=(m=e.container)==null?void 0:m.querySelector(".choco-widget-pay-button"),n=(b=e.container)==null?void 0:b.querySelector(".choco-widget-google-pay-amount"),r=(I=e.container)==null?void 0:I.querySelector(".choco-widget-google-pay-amount-label");let o=(B=e.container)==null?void 0:B.querySelector(".choco-widget-google-pay-amount-value"),i=(Q=e.container)==null?void 0:Q.querySelector(".choco-widget-google-pay-amount-value-number");const c=e._getPayableAmount(),u=Z(c,e.config.locale,e.config.currency),l=c<e.config.amount,h=Z(e.config.amount,e.config.locale,e.config.currency);if(t){const P=e.paymentMethodDisabled?e.t("login"):`${e.t("pay")} ${u}`;t.textContent=P,t.setAttribute("aria-label",P)}const y=(S=e.container)==null?void 0:S.querySelector(".choco-widget-freedom-card-btn");if(y&&(y.textContent=`от ${Z(Math.round(c*.94),e.config.locale,e.config.currency)} по карте Freedom`),r&&(r.textContent=`${e.t("total")} ${u}`),!l){o==null||o.remove();return}!o&&n&&(o=document.createElement("div"),o.className="choco-widget-google-pay-amount-value",o.innerHTML=`${e.t("instead")} <span class="choco-widget-google-pay-amount-value-number"></span>`,n.appendChild(o),i=o.querySelector(".choco-widget-google-pay-amount-value-number")),i?i.textContent=h:o&&(o.textContent=`${e.t("instead")} ${h}`)}function cr(e){var l,h,y,m,b,I,B,Q,S,P;const t=((l=e.selectedPaymentMethod)==null?void 0:l.type)==="google_pay",n=((h=e.selectedPaymentMethod)==null?void 0:h.type)==="apple_pay",r=t||n,o=(y=e.container)==null?void 0:y.querySelector(".choco-widget-pay-button"),i=(m=e.container)==null?void 0:m.querySelector(".choco-widget-google-pay-amount"),c=(b=e.container)==null?void 0:b.querySelector(".choco-widget-google-pay-row"),u=(I=e.container)==null?void 0:I.querySelector(".choco-widget-apple-pay-row");if(o==null||o.classList.toggle("choco-widget-pay-button--hidden",r),i==null||i.classList.toggle("choco-widget-google-pay-amount--hidden",!r),c==null||c.classList.toggle("choco-widget-google-pay-row--hidden",!t),u==null||u.classList.toggle("choco-widget-apple-pay-row--hidden",!n),t){Ui(e);const k=(B=e.container)==null?void 0:B.querySelector('[data-action="apple-pay-button-slot"]');k&&(k.innerHTML="")}else if(n){e._googlePayButtonRenderVersion+=1;const k=(Q=e.container)==null?void 0:Q.querySelector('[data-action="google-pay-button-slot"]');k&&(k.innerHTML=""),Fi(e)}else{e._googlePayButtonRenderVersion+=1;const k=(S=e.container)==null?void 0:S.querySelector('[data-action="google-pay-button-slot"]'),L=(P=e.container)==null?void 0:P.querySelector('[data-action="apple-pay-button-slot"]');k&&(k.innerHTML=""),L&&(L.innerHTML="")}At(e),ue(e)}async function Ui(e){var c,u,l,h,y;const t=(c=e.container)==null?void 0:c.querySelector('[data-action="google-pay-button-slot"]');if(!t||(t.innerHTML="",((u=e.selectedPaymentMethod)==null?void 0:u.type)!=="google_pay"))return;const n=++e._googlePayButtonRenderVersion;try{await e._loadGooglePaySdk()}catch{e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}if(n!==e._googlePayButtonRenderVersion)return;if(!((y=(h=(l=window.google)==null?void 0:l.payments)==null?void 0:h.api)!=null&&y.PaymentsClient)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const r=e.config.environment==="production",i=new window.google.payments.api.PaymentsClient({environment:r?"PRODUCTION":"TEST"}).createButton({onClick:()=>e.handlePayment(),buttonType:"pay",buttonColor:"black",buttonLocale:e.config.locale||"ru",buttonSizeMode:"fill"});i.classList.add("choco-widget-google-pay-button"),i.style.setProperty("width","100%","important"),i.style.setProperty("height","52px","important"),i.style.setProperty("min-height","52px","important"),i.style.setProperty("border-radius","12px","important"),i.style.setProperty("font-size","16px","important"),i.style.setProperty("font-weight","bold","important"),i.querySelectorAll("*").forEach(m=>{m.style.setProperty("border-radius","12px","important"),m.style.setProperty("font-weight","bold","important"),m.style.setProperty("font-size","16px","important")}),t.appendChild(i),ue(e)}function Fi(e){var i,c;const t=(i=e.container)==null?void 0:i.querySelector('[data-action="apple-pay-button-slot"]');if(!t||(t.innerHTML="",((c=e.selectedPaymentMethod)==null?void 0:c.type)!=="apple_pay"))return;const n=document.createElement("div");n.className="choco-widget-apple-pay-button-wrapper";const r=document.createElement("button");r.type="button",r.className="choco-widget-apple-pay-button choco-widget-apple-pay-button--native",r.setAttribute("aria-label","Оплатить с Apple Pay"),r.style.setProperty("width","100%","important"),r.style.setProperty("height","52px","important"),r.style.setProperty("min-height","52px","important"),r.style.setProperty("border-radius","12px","important"),r.style.setProperty("-webkit-appearance","-apple-pay-button"),r.style.setProperty("-apple-pay-button-type","buy"),r.style.setProperty("-apple-pay-button-style","black"),r.addEventListener("click",()=>e.handlePayment());const o=document.createElement("div");o.className="choco-widget-apple-pay-button-overlay",o.setAttribute("aria-hidden","true"),o.innerHTML=`
302
302
  <span class="choco-widget-apple-pay-button-text">Оплатить с</span>
303
303
  <span class="choco-widget-apple-pay-button-icon">
304
304
  <svg width="52" height="24" viewBox="0 0 52 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -312,4 +312,4 @@ Reason: ${B}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
312
312
  </defs>
313
313
  </svg>
314
314
  </span>
315
- `,n.appendChild(r),n.appendChild(o),t.appendChild(n),ue(e)}function ar(e){var o;if(!e.selectedCoupon)return;const t=e._isCouponDisabled();t&&e.useCoupon&&(e.useCoupon=!1);const n=(o=e.container)==null?void 0:o.querySelector('[data-action="toggle-coupon"]');if(!n)return;n.classList.toggle("choco-widget-balance-toggle--disabled",t);const r=n.querySelector("input[type='checkbox']");r&&(r.disabled=t,t&&(r.checked=!1))}function he(e){e.loading=!0,ue(e)}function q(e){var m,b,I,B,Q,S,P,k;e.loading=!1;const t=(m=e.container)==null?void 0:m.querySelector(".choco-widget-payment-method"),n=(b=e.container)==null?void 0:b.querySelector(".choco-widget-pay-button"),r=(I=e.container)==null?void 0:I.querySelector(".choco-widget-google-pay-button-slot button"),o=(B=e.container)==null?void 0:B.querySelector(".choco-widget-apple-pay-button-slot button"),i=(Q=e.container)==null?void 0:Q.querySelector(".choco-widget-google-pay-amount"),c=(S=e.container)==null?void 0:S.querySelector(".choco-widget-google-pay-row"),u=(P=e.container)==null?void 0:P.querySelector(".choco-widget-apple-pay-row"),l=(k=e.container)==null?void 0:k.querySelector(".choco-widget-balance-section"),h=e._isInteractionBlocked(),y=e.paymentMethodDisabled||h;t&&(t.disabled=y),n&&(n.disabled=h,n.classList.remove("choco-widget-pay-button--loading")),r&&(r.disabled=h),o&&(o.disabled=h),i==null||i.classList.toggle("choco-widget-wallet-blocked",h),i==null||i.setAttribute("aria-disabled",String(h)),c==null||c.classList.toggle("choco-widget-wallet-blocked",h),c==null||c.setAttribute("aria-disabled",String(h)),u==null||u.classList.toggle("choco-widget-wallet-blocked",h),u==null||u.setAttribute("aria-disabled",String(h)),l==null||l.classList.remove("disabled")}function ue(e){var b,I,B,Q,S,P,k,R,L;const t=(b=e.container)==null?void 0:b.querySelector(".choco-widget-payment-method"),n=(I=e.container)==null?void 0:I.querySelector(".choco-widget-pay-button"),r=(B=e.container)==null?void 0:B.querySelector(".choco-widget-freedom-card-btn"),o=(Q=e.container)==null?void 0:Q.querySelector(".choco-widget-google-pay-button-slot button"),i=(S=e.container)==null?void 0:S.querySelector(".choco-widget-apple-pay-button-slot button"),c=(P=e.container)==null?void 0:P.querySelector(".choco-widget-google-pay-amount"),u=(k=e.container)==null?void 0:k.querySelector(".choco-widget-google-pay-row"),l=(R=e.container)==null?void 0:R.querySelector(".choco-widget-apple-pay-row"),h=(L=e.container)==null?void 0:L.querySelector(".choco-widget-balance-section"),y=e._isInteractionBlocked(),m=e.paymentMethodDisabled||y;h==null||h.classList.toggle("disabled",y),t&&(t.disabled=m),n&&(n.disabled=y,n.classList.toggle("choco-widget-pay-button--loading",e.loading)),r&&(r.disabled=y),o&&(o.disabled=y),i&&(i.disabled=y),c==null||c.classList.toggle("choco-widget-wallet-blocked",y),c==null||c.setAttribute("aria-disabled",String(y)),u==null||u.classList.toggle("choco-widget-wallet-blocked",y),u==null||u.setAttribute("aria-disabled",String(y)),l==null||l.classList.toggle("choco-widget-wallet-blocked",y),l==null||l.setAttribute("aria-disabled",String(y))}function cr(e){var n;if(e._isInteractionBlocked())return;const t=(n=e.container)==null?void 0:n.querySelector('[data-sheet="payment"]');t&&(t.classList.add("choco-widget-payment-sheet--open"),e.isPaymentSheetOpen=!0,Le(e))}function le(e){var n;const t=(n=e.container)==null?void 0:n.querySelector('[data-sheet="payment"]');if(t){At(e);const r=t.querySelector(".choco-widget-sheet-content");r&&(r.style.transform="",r.classList.remove("choco-widget-sheet-content--dragging")),t.classList.remove("choco-widget-payment-sheet--open"),e.isPaymentSheetOpen=!1,e.isPaymentSheetEditMode&&(e.isPaymentSheetEditMode=!1,Te(e),Le(e))}}function Le(e){var l;const t=(l=e.container)==null?void 0:l.querySelector('[data-sheet="payment"]');if(!t)return;const n=t.querySelector(".choco-widget-sheet-title"),r=t.querySelector('[data-action="close-sheet"]'),o=t.querySelector('[data-action="edit-sheet"]'),i=t.querySelector('[data-action="previous-sheet"]'),u=e.getAvailablePaymentMethods().some(h=>h.type==="card");e.isPaymentSheetEditMode?(t.classList.add("choco-widget-payment-sheet--edit"),n&&(n.textContent=e.t("editCards")),r&&(r.style.display="none"),o&&(o.style.display="none"),i&&(i.style.display="")):(t.classList.remove("choco-widget-payment-sheet--edit"),t.classList.toggle("choco-widget-payment-sheet--no-cards",!u),n&&(n.textContent=e.t("paymentMethods")),r&&(r.style.display=""),o&&(o.style.display=u?"":"none"),i&&(i.style.display="none"))}function xt(e){if(!e.addCardActionUrl||!e.container)return;const t=e.container.querySelector('[data-sheet="add-card"]'),n=e.container.querySelector("#choco-widget-add-card-iframe");t&&n&&(n.src=e.addCardActionUrl,t.classList.add("choco-widget-payment-sheet--open"),t.style.display="flex",t.setAttribute("aria-hidden","false"),e.isAddCardViewOpen=!0,xi(e))}function Ee(e){var r,o;const t=(r=e.container)==null?void 0:r.querySelector('[data-sheet="add-card"]'),n=(o=e.container)==null?void 0:o.querySelector("#choco-widget-add-card-iframe");t&&(t.classList.remove("choco-widget-payment-sheet--open"),t.style.display="none",t.setAttribute("aria-hidden","true")),n&&(n.src="about:blank"),e.addCardActionUrl=null,e.isAddCardViewOpen=!1,Ui(e)}function xi(e){e._boundAddCardMessage=t=>{var n;e.isAddCardViewOpen&&(n=t.data)!=null&&n.message&&t.origin==="https://rahmetapp.kz"&&he(e)},window.addEventListener("message",e._boundAddCardMessage)}function Ui(e){e._boundAddCardMessage&&(window.removeEventListener("message",e._boundAddCardMessage),e._boundAddCardMessage=null)}function Fi(e,t){var c;e._pendingDeleteMethod=t;const n=(c=e.container)==null?void 0:c.querySelector('[data-sheet="payment"]');if(!n)return;n.classList.add("choco-widget-payment-sheet--delete-confirm");const r=n.querySelector(".choco-widget-sheet-title"),o=n.querySelector('[data-action="edit-sheet"]'),i=n.querySelector('[data-action="previous-sheet"]');r&&(r.textContent=e.t("confirmDeleteCard")),o&&(o.style.display="none"),i&&(i.style.display="none")}function At(e){var n;e._pendingDeleteMethod=null,Ut(e,!1);const t=(n=e.container)==null?void 0:n.querySelector('[data-sheet="payment"]');t==null||t.classList.remove("choco-widget-payment-sheet--delete-confirm"),Le(e)}function Ut(e,t){var i,c,u;const n=(i=e.container)==null?void 0:i.querySelector(".choco-widget-sheet-delete-confirm-actions"),r=(c=e.container)==null?void 0:c.querySelector('[data-action="confirm-delete-cancel"]'),o=(u=e.container)==null?void 0:u.querySelector('[data-action="confirm-delete-submit"]');n==null||n.classList.toggle("choco-widget-sheet-delete-confirm-actions--loading",t),r&&(r.disabled=t),o&&(o.disabled=t,o.classList.toggle("choco-widget-delete-confirm-btn--loading",t))}async function Xi(e,t){var r,o;const n=t==null?void 0:t.cardId;if(!(!n||(t==null?void 0:t.type)!=="card"))try{await Dr(e.apiUrl,e._getApiConfig(),n),e.checkoutContext=await gt(e.apiUrl,e._getApiConfig()),((r=e.selectedPaymentMethod)==null?void 0:r.type)==="card"&&((o=e.selectedPaymentMethod)==null?void 0:o.cardId)===n&&(e.selectedPaymentMethod=ht(e.checkoutContext.data,e._getKaspiOptions()),e._emitPaymentMethodSelected(),sr(e)),Te(e),e.config.onSuccess({message:e.t("cardDeleted")}),e.config.onCardDeleted&&e.config.onCardDeleted({cardId:n})}catch(i){e.config.onError({attributes:{message:(i==null?void 0:i.message)||e.t("paymentError")}})}}function ur(e,t){if(!e._isInteractionBlocked()){if(e.selectedPaymentMethod=t,e._emitPaymentMethodSelected(),t.type==="new_card"){e._emitUserEvent("one_click_pay_method_resolved",{payment_method:t.type}),le(e),e.handlePayment();return}e._emitUserEvent("one_click_pay_method_resolved",{payment_method:e._getPaymentMethodForUserEvent()}),Te(e),le(e),sr(e)}}function lr(e,t){var r;const n=t.type||((r=t.data)==null?void 0:r.type);if(!n){console.warn("Unknown event format:",t);return}switch(n){case"order.paid":e._orderStatusResolved=!0,pe(e),dr(e,t);break;case"order.failed":e._orderStatusResolved=!0,pe(e),fr(e,t);break;case"order.action_required":Hi(e,t);break;default:console.warn("Unknown event type:",n)}}function pe(e){e._orderStatusPollingId&&(clearInterval(e._orderStatusPollingId),e._orderStatusPollingId=null)}function ve(e,t){pe(e),e._orderStatusResolved=!1;const n=6e3,r=5;let o=0;const i=async()=>{if(!e._orderStatusResolved){if(o>=r){pe(e),q(e),e.config.onError({attributes:{message:e.t("errorNoServerResponseRetry")}});return}o+=1;try{const{data:c}=await xr(e.apiUrl,e._getApiConfig(),String(t)),u=c==null?void 0:c.status,l=(c==null?void 0:c.payload)||{};if(u==="success"){e._orderStatusResolved=!0,pe(e),dr(e,{id:String(l.id||t),attributes:{amount:l.amount,paid_at:l.paid_at||""}});return}u==="fail"&&(e._orderStatusResolved=!0,pe(e),fr(e,{id:String(l.id||t),attributes:{message:l.message||e.t("paymentError")}}))}catch(c){console.warn("[Polling] checkOrderStatus error:",c)}}};e._orderStatusPollingId=setInterval(i,n),i()}function Ft(){return typeof document>"u"?!1:document.hidden||document.visibilityState==="hidden"}function Ar(e,t){q(e),e.config.onSuccess(t)}function Xt(e){if(!e._pendingSuccessPayload||Ft())return;const t=e._pendingSuccessPayload;e._pendingSuccessPayload=null,Ar(e,t)}function dr(e,t){var o,i;e.isAddCardViewOpen&&Ee(e);const n=t.attributes||((o=t.data)==null?void 0:o.attributes)||{},r={id:t.id||((i=t.data)==null?void 0:i.id),attributes:n};if(Ft()){e._pendingSuccessPayload=r;return}Ar(e,r)}function fr(e,t){var r,o;e.isAddCardViewOpen&&Ee(e),q(e);const n=t.attributes||((r=t.data)==null?void 0:r.attributes)||{};e.config.onError({id:t.id||((o=t.data)==null?void 0:o.id),attributes:n})}function Hi(e,t){var i,c,u;const n=t.attributes||((i=t.data)==null?void 0:i.attributes)||{},r=n.action_link||n.action_url,o=n.action_url_type||n.action_type||"redirect";if(!r){console.error(e.t("errorActionUrlMissing")),e.waitingForNewCardAction&&(e.waitingForNewCardAction=!1,q(e),e.config.onError({attributes:{message:e.t("errorNoServerResponse")}}));return}if(e.waitingForNewCardAction&&(e.waitingForNewCardAction=!1,e._clearNewCardActionTimeout()),o==="inner"){e.addCardActionUrl=r,q(e),e._showAddCardView();return}if(((c=e.selectedPaymentMethod)==null?void 0:c.type)==="kaspi_pay"){const l=t.id||((u=t.data)==null?void 0:u.id);if(l&&!e._orderStatusResolved&&!e._orderStatusPollingId&&ve(e,String(l)),typeof e.config.onKaspiLink=="function"){e.config.onKaspiLink({action_link:r,action_url:r,action_type:o,event:t});return}}window.location.href=r}async function ji(e){var n,r,o,i,c;if(!e.selectedPaymentMethod){e.config.onError({attributes:{message:e.t("errorPaymentMethodNotSelected")}});return}const{checkoutOptions:t}=e._getPaymentBreakdown();if(e._isBalanceFullyCoveringAmount()){he(e);try{const u=await rn(e.apiUrl,e._getApiConfig(),e.deviceId,e.selectedPaymentMethod,t);await hr(e);const l=(u==null?void 0:u.id)??((n=u==null?void 0:u.data)==null?void 0:n.id);return l&&ve(e,String(l)),u}catch(u){throw q(e),se(u,{paymentMethod:"balance"}),e.config.onError({attributes:{message:e._resolveErrorMessage(u)}}),u}}if(e.selectedPaymentMethod.type==="new_card"){await Ji(e,t);return}if(e.selectedPaymentMethod.type==="apple_pay"){await qi(e,t);return}if(e.selectedPaymentMethod.type==="google_pay"){await zi(e,t);return}he(e);try{const u=await rn(e.apiUrl,e._getApiConfig(),e.deviceId,e.selectedPaymentMethod,t);await hr(e);const l=(u==null?void 0:u.id)??((r=u==null?void 0:u.data)==null?void 0:r.id);if(l&&ve(e,String(l)),((o=e.selectedPaymentMethod)==null?void 0:o.type)==="kaspi_pay"){const h=(u==null?void 0:u.attributes)||((i=u==null?void 0:u.data)==null?void 0:i.attributes)||{},y=h.action_link||h.action_url,m=h.action_url_type||h.action_type||"redirect";if(y)return typeof e.config.onKaspiLink=="function"?(e.config.onKaspiLink({action_link:y,action_url:y,action_type:m,event:u}),u):(window.location.href=y,u)}return u}catch(u){throw q(e),se(u,{paymentMethod:((c=e.selectedPaymentMethod)==null?void 0:c.type)||"card"}),e.config.onError({message:e._resolveErrorMessage(u)}),u}}async function hr(e){var t,n;if(!(((t=e.selectedPaymentMethod)==null?void 0:t.type)!=="card"||!((n=e.selectedPaymentMethod)!=null&&n.cardId)))try{await Mr(e.apiUrl,e._getApiConfig(),e.selectedPaymentMethod.cardId)}catch(r){console.warn("Failed to mark selected card as default:",r)}}async function Ji(e,t){he(e),e.waitingForNewCardAction=!0,e._setNewCardActionTimeout();try{await Ur(e.apiUrl,e._getApiConfig(),e.deviceId,t)}catch(n){e.waitingForNewCardAction=!1,e._clearNewCardActionTimeout(),q(e),se(n,{paymentMethod:"new_card"}),e.config.onError({attributes:{message:e._resolveErrorMessage(n)}}),console.error("New card payment error:",n)}}let Re=null;async function qi(e,t){const n=window.ApplePaySession;if(!n||!n.canMakePayments()){e.config.onError({attributes:{message:e.t("errorApplePayUnsupported")}});return}if(Re)return;he(e);const r={countryCode:e.config.currency==="GEL"?"GE":"KZ",currencyCode:e.config.currency,supportedNetworks:["visa","masterCard"],merchantCapabilities:["supports3DS"],total:{label:e.config.merchantName||"Choco",amount:String(e._getPayableAmount()),type:"final"}},o=new n(3,r);Re=o,o.onvalidatemerchant=async i=>{var c,u;try{let l;try{l=await on(e.apiUrl,e._getApiConfig(),i.validationURL)}catch(m){if(m.status===401)await e._obtainTokenByRefreshOrTrackId(),l=await on(e.apiUrl,e._getApiConfig(),i.validationURL);else throw m}const h=((u=(c=l==null?void 0:l.data)==null?void 0:c.attributes)==null?void 0:u.session)||l,y=JSON.parse(atob(h));o.completeMerchantValidation(y)}catch(l){console.error("Apple Pay session error:",l),se(l,{paymentMethod:"apple_pay",phase:"merchant_validation"}),q(e),o.abort(),e.config.onError({attributes:{message:e.t("errorApplePayInit")}})}},o.onpaymentauthorized=async i=>{var c;try{if(typeof e.config.onBeforeCheckout=="function"){const h=await e.config.onBeforeCheckout();h&&typeof h=="object"&&Object.assign(e.config,h)}const u=await Xr(e.apiUrl,e._getApiConfig(),e.deviceId,i.payment,t);o.completePayment(n.STATUS_SUCCESS),Re=null;const l=(u==null?void 0:u.id)??((c=u==null?void 0:u.data)==null?void 0:c.id);l&&!e._orderStatusResolved&&ve(e,String(l))}catch(u){console.error("Apple Pay payment error:",u),se(u,{paymentMethod:"apple_pay",phase:"payment_authorized"}),o.completePayment(n.STATUS_FAILURE),Re=null,q(e),e.config.onError({attributes:{message:e._resolveErrorMessage(u,"errorApplePayPayment")}})}},o.oncancel=()=>{var i;if(Re=null,q(e),((i=e.selectedPaymentMethod)==null?void 0:i.type)==="apple_pay"){e.config.onError({attributes:{message:e.t("errorApplePayInterrupted")}});return}e.config.onCancel()},o.begin()}async function zi(e,t){var S,P,k,R,L,z;const n=(S=e.checkoutContext)==null?void 0:S.data,r=((k=(P=n==null?void 0:n.payment_methods)==null?void 0:P.data)==null?void 0:k.attributes)||{},o=r.google_pay_settings||{};if(!(r.payment_method_google_pay==="enabled"||r.payment_method_google_pay===!0)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const c=o==null?void 0:o.gateway,u=o==null?void 0:o.merchant_id;if(!c||!u){e.config.onError({attributes:{message:e.t("errorGooglePaySettingsUnavailable")}});return}const l=e.config.environment==="production",h=(o==null?void 0:o.merchant_name)||"Choco",y=o==null?void 0:o.google_merchant_id;if(l&&!y){e.config.onError({attributes:{message:e.t("errorGooglePaySettingsUnavailable")}});return}if(e.config.isNativeAndroid){await Ki(e,t,{gateway:c,gatewayMerchantId:u});return}const m=Number(e._getCheckoutAmount()).toFixed(2);try{await e._loadGooglePaySdk()}catch(D){console.error("Google Pay SDK load error:",D),e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const b=window.google;if(!(b!=null&&b.payments)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const I=[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["VISA","MASTERCARD"],billingAddressRequired:!1},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:c,gatewayMerchantId:u}}}],B={apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:I,transactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:"Итого",totalPrice:m,currencyCode:e.config.currency,countryCode:e.config.currency==="GEL"?"GE":"KZ"},merchantInfo:l?{merchantId:y,merchantName:h}:{merchantName:h}},Q=new b.payments.api.PaymentsClient({environment:l?"PRODUCTION":"TEST"});try{const D=await Q.isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:I});if(!(D!=null&&D.result)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}he(e);const G=await Q.loadPaymentData(B),K=(L=(R=G==null?void 0:G.paymentMethodData)==null?void 0:R.tokenizationData)==null?void 0:L.token;if(!K)throw new Error(e.t("errorGooglePayPayment"));const J=JSON.parse(K),M=await sn(e.apiUrl,e._getApiConfig(),e.deviceId,J,t),v=(M==null?void 0:M.id)??((z=M==null?void 0:M.data)==null?void 0:z.id);v&&ve(e,String(v))}catch(D){q(e),D.statusCode==="CANCELED"?e.config.onCancel():(se(D,{paymentMethod:"google_pay"}),e.config.onError({attributes:{message:e._resolveErrorMessage(D,"errorGooglePayPayment")}}),console.error("Google Pay error:",D))}}async function Ki(e,t,n){var r;if(!e.config.onPayWithGooglePay){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}he(e);try{const o=await e.config.onPayWithGooglePay({amount:Number(e._getCheckoutAmount()),gateway:n.gateway,gatewayMerchantId:n.gatewayMerchantId}),i=JSON.parse(o),c=await sn(e.apiUrl,e._getApiConfig(),e.deviceId,i,t),u=(c==null?void 0:c.id)??((r=c==null?void 0:c.data)==null?void 0:r.id);u&&ve(e,String(u))}catch(o){q(e),o.statusCode==="CANCELED"?e.config.onCancel():(se(o,{paymentMethod:"google_pay_native"}),e.config.onError({attributes:{message:e._resolveErrorMessage(o,"errorGooglePayPayment")}}),console.error("Google Pay native error:",o))}}function Gi(e){var c,u,l,h,y,m,b,I,B,Q,S,P;const t=e.container;(c=t.querySelector('[data-action="freedom-card"]'))==null||c.addEventListener("click",()=>{e.config.onFreedomLink&&e.config.onFreedomLink()}),(u=t.querySelector('[data-action="pay"]'))==null||u.addEventListener("click",()=>e.handlePayment()),(l=t.querySelector('[data-action="change-method"]'))==null||l.addEventListener("click",()=>cr(e)),t.querySelectorAll('[data-action="close"]').forEach(k=>k.addEventListener("click",()=>e.close())),(h=t.querySelector('[data-action="close-sheet"]'))==null||h.addEventListener("click",()=>{e._pendingDeleteMethod?At(e):le(e)}),(y=t.querySelector('[data-action="edit-sheet"]'))==null||y.addEventListener("click",()=>{e.isPaymentSheetEditMode=!0,Te(e),Le(e)}),(m=t.querySelector('[data-action="previous-sheet"]'))==null||m.addEventListener("click",()=>{e.isPaymentSheetEditMode=!1,Te(e),Le(e)}),(b=t.querySelector('[data-action="close-add-card"]'))==null||b.addEventListener("click",()=>Ee(e)),(I=t.querySelector('[data-action="confirm-delete-cancel"]'))==null||I.addEventListener("click",()=>At(e)),(B=t.querySelector('[data-action="confirm-delete-submit"]'))==null||B.addEventListener("click",()=>{if(e._pendingDeleteMethod){const k=e._pendingDeleteMethod;Ut(e,!0),Xi(e,k).then(()=>le(e)).finally(()=>Ut(e,!1))}}),t.querySelectorAll(".choco-widget-method-item").forEach(k=>{k.addEventListener("click",R=>{const L=JSON.parse(R.currentTarget.getAttribute("data-method")||"{}");ur(e,L)})});const n=t.querySelector('[data-sheet="payment"]');n&&(n.addEventListener("click",k=>{k.target===n&&le(e)}),Yi(e,n));const r=t.querySelector('[data-action="toggle-balance"]');r&&((Q=r.querySelector("input[type='checkbox']"))==null||Q.addEventListener("change",k=>{e.useBalance=k.target.checked,ar(e),e._updatePayButtonAmount()}));const o=t.querySelector('[data-action="toggle-bonuses"]');o&&((S=o.querySelector("input[type='checkbox']"))==null||S.addEventListener("change",k=>{e.useBonuses=k.target.checked,e.config.onAppliedBonus(e.useBonuses),ar(e),e._updatePayButtonAmount()}));const i=t.querySelector('[data-action="toggle-coupon"]');i&&((P=i.querySelector("input[type='checkbox']"))==null||P.addEventListener("change",k=>{e.useCoupon=k.target.checked,e._updatePayButtonAmount(),e._emitCouponSuppressingCashback()})),document.removeEventListener("keydown",e._boundKeyDown),document.addEventListener("keydown",e._boundKeyDown),ir(e)}function Wi(e,t){var n,r;e.isOpen&&(t.key==="Escape"&&(t.preventDefault(),e._pendingDeleteMethod?At(e):e.isAddCardViewOpen?Ee(e):e.isPaymentSheetOpen?le(e):e.close()),t.key==="Enter"&&((r=(n=t.target)==null?void 0:n.dataset)==null?void 0:r.action)==="pay"&&(t.preventDefault(),e.handlePayment()))}function Yi(e,t){const n=t.querySelector('[data-action="sheet-drag-handle"]'),r=t.querySelector(".choco-widget-sheet-content");if(!n||!r)return;const o=80;let i=0,c=0;const u=h=>{c=h.clientY;const y=Math.max(0,c-i);r.style.transform=`translateY(${y}px)`},l=h=>{n.releasePointerCapture(h.pointerId),n.removeEventListener("pointermove",u),n.removeEventListener("pointerup",l),n.removeEventListener("pointercancel",l);const y=Math.max(0,c-i);if(r.classList.remove("choco-widget-sheet-content--dragging"),y>=o){r.style.transform="translateY(100%)";const m=()=>{r.removeEventListener("transitionend",m),r.style.transform="",le(e)};r.addEventListener("transitionend",m)}else r.style.transform=""};n.addEventListener("pointerdown",h=>{!e.isPaymentSheetOpen||h.button!==0||(h.preventDefault(),i=h.clientY,c=h.clientY,r.classList.add("choco-widget-sheet-content--dragging"),n.setPointerCapture(h.pointerId),n.addEventListener("pointermove",u),n.addEventListener("pointerup",l),n.addEventListener("pointercancel",l))})}class ge{static _getAuthStorageValue(t){return tn(t)}static _setAuthStorageValue(t,n){pt(t,n)}static _removeAuthStorageValue(t){He(t)}static async logout(){nr()}constructor(t){this.config=Hr(t),this.accessToken=null,this.deviceId=Gt(),this.apiUrl=vr(this.config.environment),this.translations=Se,this.checkoutContext=null,this.centrifuge=null,this.selectedPaymentMethod=null,this.selectedCoupon=null,this.useCoupon=!1,this.container=null,this.isOpen=!1,this.isPaymentSheetOpen=!1,this.isPaymentSheetEditMode=!1,this.loading=!1,this.disabled=!1,this.paymentMethodDisabled=!1,this.useBalance=!1,this.useBonuses=!1,this.addCardActionUrl=null,this.isAddCardViewOpen=!1,this.waitingForNewCardAction=!1,this.newCardActionRequiredTimeoutId=null,this._googlePayScriptPromise=null,this._googlePayButtonRenderVersion=0,this._orderStatusPollingId=null,this._orderStatusResolved=!1,this._pendingDeleteMethod=null,this._pendingSuccessPayload=null,this._lifecycleListenersAttached=!1,this._destroyed=!1,this._boundAddCardMessage=null,this._boundKeyDown=n=>Wi(this,n),this._boundVisibilityChange=()=>this._onVisibilityChange(),this._boundWindowFocus=()=>this._onWindowFocus(),this._boundPageShow=()=>this._onPageShow(),Ci({clientId:String(this.config.clientId),terminalId:String(this.config.terminalId),environment:this.config.environment})}t(t,n={}){var i;const r=this.config.locale||"ru",o=((i=this.translations[r])==null?void 0:i[t])||this.translations.ru[t];return typeof o!="string"?t:o.replace(/{(\w+)}/g,(c,u)=>Object.prototype.hasOwnProperty.call(n,u)?String(n[u]):c)}_resolveErrorMessage(t,n="paymentError"){return(t==null?void 0:t.message)||this.t(n)}_getApiConfig(){return{...this.config,accessToken:this.accessToken}}_isInteractionBlocked(){return this.disabled||this.loading}_getBalanceAmount(){var o,i,c,u;const t=(u=(c=(i=(o=this.checkoutContext)==null?void 0:o.data)==null?void 0:i.balance)==null?void 0:c.data)==null?void 0:u.money,n=this.config.currency||"KZT",r=Number(t==null?void 0:t[n]);return Number.isFinite(r)&&r>0?r:0}_getBonusesAmount(){var n;const t=Number((n=this.config.bonuses)==null?void 0:n.amount);return Number.isFinite(t)&&t>0?t:0}_getBonusesPercent(){var n;const t=Number((n=this.config.bonuses)==null?void 0:n.percent);return!Number.isFinite(t)||t<=0?0:t>=100?100:t}_getAvailableBonus(){var n;const t=Number((n=this.config.bonuses)==null?void 0:n.availableBonus);return Number.isFinite(t)&&t>0?t:0}_getCouponDiscount(){if(!this.useCoupon||!this.selectedCoupon||this._isCouponDisabled()||this.selectedCoupon.type==="coupon")return 0;const t=Number(this.selectedCoupon.reward_amount);return Number.isFinite(t)&&t>0?t:0}_getPaymentBreakdown(){const t=this.config.amount,n=this._getBalanceAmount(),r=this.useBalance?Math.min(n,t):0,o=t-r,i=this.useBalance&&r>=t,c=this.useBonuses?this._getAvailableBonus():0,u=Math.max(o-c,0),l=this._getCouponDiscount(),h=Math.max(u-l,0),y=this.useBalance?t:h,m=this.useBalance&&!i,I=this.useCoupon&&this.selectedCoupon&&!this._isCouponDisabled()?{id:this.selectedCoupon.voucher_id,template_id:this.selectedCoupon.template_id,type:this.selectedCoupon.type}:void 0;return{payableAmount:h,checkoutOptions:{checkoutAmount:y,forceBalanceMethod:i,useBalance:m,voucher:I}}}_getPayableAmount(){return this._getPaymentBreakdown().payableAmount}_isBalanceFullyCoveringAmount(){return this._getPaymentBreakdown().checkoutOptions.forceBalanceMethod}_getCheckoutAmount(){return this._getPaymentBreakdown().checkoutOptions.checkoutAmount??this.config.amount}_getPaymentMethodForUserEvent(){var t;return this._isBalanceFullyCoveringAmount()?"balance":((t=this.selectedPaymentMethod)==null?void 0:t.type)??null}_getKaspiOptions(){return{onlyKaspiAvailable:this.config.onlyKaspiAvailable,disableKaspi:this.config.disableKaspi,disableGooglePay:this.config.disableGooglePay}}_emitUserEvent(t,n={}){typeof this.config.onUserEvent=="function"&&this.config.onUserEvent({eventName:t,eventProperties:n})}_emitPaymentMethodSelected(t=this.selectedPaymentMethod){typeof this.config.onPaymentMethodSelected=="function"&&this.config.onPaymentMethodSelected(t||null)}_emitCouponSuppressingCashback(){var n;const t=this.useCoupon&&((n=this.selectedCoupon)==null?void 0:n.suppresses_cashback)===!0;this.config.onCouponSuppressingCashback(t)}_attachEventListeners(){Gi(this)}_updatePayButtonAmount(){lt(this)}_showAddCardView(){xt(this)}_closeAddCardView(){Ee(this)}_setNewCardActionTimeout(){this._clearNewCardActionTimeout(),this.newCardActionRequiredTimeoutId=setTimeout(()=>{this.waitingForNewCardAction&&(this.waitingForNewCardAction=!1,q(this),this.config.onError({attributes:{message:this.t("errorNoServerResponseRetry")}})),this.newCardActionRequiredTimeoutId=null},6e4)}_clearNewCardActionTimeout(){this.newCardActionRequiredTimeoutId&&(window.clearTimeout(this.newCardActionRequiredTimeoutId),this.newCardActionRequiredTimeoutId=null)}_saveTokensToStorage(t,n){ct(t,n)}_clearAuthStorage(){nr()}_getAuthStorageValue(t){return ge._getAuthStorageValue(t)}_setAuthStorageValue(t,n){ge._setAuthStorageValue(t,n)}_removeAuthStorageValue(t){ge._removeAuthStorageValue(t)}_loadGooglePaySdk(){var t,n;return typeof window>"u"||typeof document>"u"?Promise.reject(new Error("Google Pay SDK requires browser environment")):(n=(t=window.google)==null?void 0:t.payments)!=null&&n.api?Promise.resolve():this._googlePayScriptPromise?this._googlePayScriptPromise:(this._googlePayScriptPromise=new Promise((r,o)=>{const i=document.querySelector('script[data-choco-google-pay-sdk="true"]');if(i){i.addEventListener("load",()=>r(),{once:!0}),i.addEventListener("error",()=>o(new Error("Failed to load Google Pay SDK")),{once:!0});return}const c=document.createElement("script");c.src="https://pay.google.com/gp/p/js/pay.js",c.async=!0,c.defer=!0,c.setAttribute("data-choco-google-pay-sdk","true"),c.onload=()=>r(),c.onerror=()=>o(new Error("Failed to load Google Pay SDK")),document.head.appendChild(c)}).finally(()=>{var r,o;(o=(r=window.google)==null?void 0:r.payments)!=null&&o.api||(this._googlePayScriptPromise=null)}),this._googlePayScriptPromise)}_attachLifecycleListeners(){this._lifecycleListenersAttached||(document.addEventListener("visibilitychange",this._boundVisibilityChange),window.addEventListener("focus",this._boundWindowFocus),window.addEventListener("pageshow",this._boundPageShow),this._lifecycleListenersAttached=!0)}_detachLifecycleListeners(){this._lifecycleListenersAttached&&(document.removeEventListener("visibilitychange",this._boundVisibilityChange),window.removeEventListener("focus",this._boundWindowFocus),window.removeEventListener("pageshow",this._boundPageShow),this._lifecycleListenersAttached=!1)}_onVisibilityChange(){Ft()||Xt(this)}_onWindowFocus(){Xt(this)}_onPageShow(){Xt(this)}async _obtainTokenByRefreshOrTrackId(){await bi(this)}async _fetchCheckoutContextWithRetry(){try{this.checkoutContext=await gt(this.apiUrl,this._getApiConfig())}catch(t){if(t.status===401)this._removeAuthStorageValue("webPayToken"),await this._obtainTokenByRefreshOrTrackId(),this.checkoutContext=await gt(this.apiUrl,this._getApiConfig());else throw t}}async _fetchCoupons(){try{const t=await Fr(this.apiUrl,this._getApiConfig()),r=(Array.isArray(t)?t:Array.isArray(t==null?void 0:t.data)?t.data:[]).filter(o=>Number(o.reward_amount)>0).sort((o,i)=>o.sort_weight-i.sort_weight);this.selectedCoupon=r.length>0?r[0]:null,this.useCoupon=!1}catch{this.selectedCoupon=null,this.useCoupon=!1}}_isCouponDisabled(){if(!this.selectedCoupon)return!1;if(this.config.amount<this.selectedCoupon.min_pay_amount)return!0;const t=this._getBalanceAmount(),n=this.useBalance?Math.min(t,this.config.amount):0,r=this.config.amount-n,o=this.useBonuses?Math.min(this._getAvailableBonus(),r):0;return r-o<this.selectedCoupon.reward_amount}_prerender(){Oi(this)}_render(){Ni(this)}async init(){var t,n;try{if(this._prerender(),this._attachLifecycleListeners(),!this.config.clientId)return this.config.onError({attributes:{message:this.t("errorMissingTrackClient")}}),!1;if(this.accessToken=this._getAuthStorageValue("webPayToken"),!this.config.trackId&&!this.accessToken)return this.paymentMethodDisabled=!0,this._render(),!0;if(!this.accessToken&&(await this._obtainTokenByRefreshOrTrackId(),this._destroyed))return!1;try{await this._fetchCheckoutContextWithRetry()}catch(o){const i=o;return this.config.onError({attributes:{message:i.message}}),!1}if(this._destroyed||(await this._fetchCoupons(),this._emitCouponSuppressingCashback(),this._destroyed))return!1;const r=Vt((n=(t=this.checkoutContext)==null?void 0:t.data)==null?void 0:n.socket_connections,o=>lr(this,o));return r&&(this.centrifuge=r.centrifuge),this.selectedPaymentMethod=ht(this.checkoutContext.data,this._getKaspiOptions()),this._emitPaymentMethodSelected(),this._render(),!0}catch(r){return console.error(`${this.t("errorWidgetInit")}:`,r),se(r,{phase:"init"}),this.config.onError({attributes:{message:r.message}}),!1}}close(){this.config.onCancel()}destroy(){this._destroyed=!0;const t=document.getElementById("choco-one-click-widget");t&&(t.style.display="none"),this._clearNewCardActionTimeout(),pe(this),this._pendingSuccessPayload=null,this._detachLifecycleListeners(),this.isAddCardViewOpen&&Ee(this),this.centrifuge&&(this.centrifuge.disconnect(),this.centrifuge=null),document.removeEventListener("keydown",this._boundKeyDown),this.container&&(this.container.classList.remove("choco-one-click-widget--visible"),setTimeout(()=>{var n;(n=this.container)==null||n.remove(),this.container=null},300)),this.isOpen=!1,this.isPaymentSheetOpen=!1,this.isAddCardViewOpen=!1,this.selectedPaymentMethod=null}getAvailablePaymentMethods(){var t;return(t=this.checkoutContext)!=null&&t.data?Rr(this.checkoutContext.data,n=>this.t(n),this._getKaspiOptions()):[]}async createOrder(){return ji(this)}async pay(){try{await this.createOrder()}catch(t){console.error(`${this.t("errorPaymentProcess")}:`,t)}}async handlePayment(){if(this._isInteractionBlocked())return;const t=this._getPaymentMethodForUserEvent();t!=null&&this._emitUserEvent("one_click_pay_cta_tapped",{payment_method:t});try{if(this.config.onConfirmPay){this.config.onConfirmPay(this.selectedPaymentMethod||null);return}await this.pay()}catch(n){console.error(`${this.t("errorPaymentProcess")}:`,n)}}openPaymentSheet(){cr(this)}closePaymentSheet(){le(this)}async updateAmount(t){var n;if(typeof t!="number"||!Number.isFinite(t)||t<0)throw new Error("amount must be a non-negative number");if(this.config.amount=t,this._isCouponDisabled()&&(this.useCoupon=!1),this.selectedCoupon){const r=this.isPaymentSheetOpen,o=this.isAddCardViewOpen;if(this._render(),ue(this),r){const i=(n=this.container)==null?void 0:n.querySelector('[data-sheet="payment"]');i&&(i.classList.add("choco-widget-payment-sheet--open"),this.isPaymentSheetOpen=!0)}o&&xt(this);return}lt(this)}async updateAvailableBonus(t){if(typeof t!="number"||!Number.isFinite(t)||t<0)throw new Error("availableBonus must be a non-negative number");this.config.bonuses&&(this.config.bonuses.availableBonus=t),lt(this)}async updateLocale(t){if(typeof t!="string"||!this.translations[t])throw new Error(`Unsupported locale: ${t}`);if(this.config.locale=t,!this.container)return;const n=this.isPaymentSheetOpen,r=this.isAddCardViewOpen;if(this._render(),ue(this),n){const o=this.container.querySelector('[data-sheet="payment"]');o&&(o.classList.add("choco-widget-payment-sheet--open"),this.isPaymentSheetOpen=!0)}r&&xt(this)}async setLoading(t){this.loading=!!t,ue(this)}async setDisabled(t){this.disabled=!!t,ue(this)}async setPreorderId(t){this.config.preorderId=t}async setMerchantOrderId(t){this.config.merchantOrderId=t}async setIdempotencyKey(t){this.config.idempotencyKey=t}async logout(){await ge.logout(),this.accessToken=null}async updateTrackId(t){var n,r;if(this.config.trackId=t,!this.config.clientId)return this.config.onError({attributes:{message:this.t("errorMissingTrackClient")}}),!1;try{this._prerender(),await this._obtainTokenByRefreshOrTrackId();try{await this._fetchCheckoutContextWithRetry()}catch(i){const c=i;return this.config.onError({attributes:{message:c.message}}),!1}await this._fetchCoupons(),this._emitCouponSuppressingCashback(),this.centrifuge&&(this.centrifuge.disconnect(),this.centrifuge=null);const o=Vt((r=(n=this.checkoutContext)==null?void 0:n.data)==null?void 0:r.socket_connections,i=>lr(this,i));return o&&(this.centrifuge=o.centrifuge),this.selectedPaymentMethod=ht(this.checkoutContext.data,this._getKaspiOptions()),this._emitPaymentMethodSelected(),this.paymentMethodDisabled=!1,this._render(),!0}catch(o){return console.error(`${this.t("errorWidgetInit")}:`,o),se(o,{phase:"updateTrackId"}),this.config.onError({attributes:{message:o.message}}),!1}}async onConfirmPay(t){if(typeof t!="function")throw new Error("onConfirmPay callback must be a function");this.config.onConfirmPay=t}async onPaymentMethodSelected(t){if(typeof t!="function")throw new Error("onPaymentMethodSelected callback must be a function");this.config.onPaymentMethodSelected=t,this._emitPaymentMethodSelected()}async onKaspiLink(t){if(typeof t!="function")throw new Error("onKaspiLink callback must be a function");this.config.onKaspiLink=t}async onUserEvent(t){if(typeof t!="function")throw new Error("onUserEvent callback must be a function");this.config.onUserEvent=t}async onFreedomLink(t){if(typeof t!="function")throw new Error("onFreedomLink callback must be a function");this.config.onFreedomLink=t}async onAppliedBonus(t){if(typeof t!="function")throw new Error("onAppliedBonus callback must be a function");this.config.onAppliedBonus=t}async onCouponSuppressingCashback(t){if(typeof t!="function")throw new Error("onCouponSuppressingCashback callback must be a function");this.config.onCouponSuppressingCashback=t}}return typeof window<"u"&&(window.ChocoOneClickWidget=ge),ge}));
315
+ `,n.appendChild(r),n.appendChild(o),t.appendChild(n),ue(e)}function ur(e){var o;if(!e.selectedCoupon)return;const t=e._isCouponDisabled();t&&e.useCoupon&&(e.useCoupon=!1);const n=(o=e.container)==null?void 0:o.querySelector('[data-action="toggle-coupon"]');if(!n)return;n.classList.toggle("choco-widget-balance-toggle--disabled",t);const r=n.querySelector("input[type='checkbox']");r&&(r.disabled=t,t&&(r.checked=!1))}function he(e){e.loading=!0,ue(e)}function q(e){var m,b,I,B,Q,S,P,k;e.loading=!1;const t=(m=e.container)==null?void 0:m.querySelector(".choco-widget-payment-method"),n=(b=e.container)==null?void 0:b.querySelector(".choco-widget-pay-button"),r=(I=e.container)==null?void 0:I.querySelector(".choco-widget-google-pay-button-slot button"),o=(B=e.container)==null?void 0:B.querySelector(".choco-widget-apple-pay-button-slot button"),i=(Q=e.container)==null?void 0:Q.querySelector(".choco-widget-google-pay-amount"),c=(S=e.container)==null?void 0:S.querySelector(".choco-widget-google-pay-row"),u=(P=e.container)==null?void 0:P.querySelector(".choco-widget-apple-pay-row"),l=(k=e.container)==null?void 0:k.querySelector(".choco-widget-balance-section"),h=e._isInteractionBlocked(),y=e.paymentMethodDisabled||h;t&&(t.disabled=y),n&&(n.disabled=h,n.classList.remove("choco-widget-pay-button--loading")),r&&(r.disabled=h),o&&(o.disabled=h),i==null||i.classList.toggle("choco-widget-wallet-blocked",h),i==null||i.setAttribute("aria-disabled",String(h)),c==null||c.classList.toggle("choco-widget-wallet-blocked",h),c==null||c.setAttribute("aria-disabled",String(h)),u==null||u.classList.toggle("choco-widget-wallet-blocked",h),u==null||u.setAttribute("aria-disabled",String(h)),l==null||l.classList.remove("disabled")}function ue(e){var b,I,B,Q,S,P,k,L,R;const t=(b=e.container)==null?void 0:b.querySelector(".choco-widget-payment-method"),n=(I=e.container)==null?void 0:I.querySelector(".choco-widget-pay-button"),r=(B=e.container)==null?void 0:B.querySelector(".choco-widget-freedom-card-btn"),o=(Q=e.container)==null?void 0:Q.querySelector(".choco-widget-google-pay-button-slot button"),i=(S=e.container)==null?void 0:S.querySelector(".choco-widget-apple-pay-button-slot button"),c=(P=e.container)==null?void 0:P.querySelector(".choco-widget-google-pay-amount"),u=(k=e.container)==null?void 0:k.querySelector(".choco-widget-google-pay-row"),l=(L=e.container)==null?void 0:L.querySelector(".choco-widget-apple-pay-row"),h=(R=e.container)==null?void 0:R.querySelector(".choco-widget-balance-section"),y=e._isInteractionBlocked(),m=e.paymentMethodDisabled||y;h==null||h.classList.toggle("disabled",y),t&&(t.disabled=m),n&&(n.disabled=y,n.classList.toggle("choco-widget-pay-button--loading",e.loading)),r&&(r.disabled=y),o&&(o.disabled=y),i&&(i.disabled=y),c==null||c.classList.toggle("choco-widget-wallet-blocked",y),c==null||c.setAttribute("aria-disabled",String(y)),u==null||u.classList.toggle("choco-widget-wallet-blocked",y),u==null||u.setAttribute("aria-disabled",String(y)),l==null||l.classList.toggle("choco-widget-wallet-blocked",y),l==null||l.setAttribute("aria-disabled",String(y))}function lr(e){var n;if(e._isInteractionBlocked())return;const t=(n=e.container)==null?void 0:n.querySelector('[data-sheet="payment"]');t&&(t.classList.add("choco-widget-payment-sheet--open"),e.isPaymentSheetOpen=!0,Le(e))}function le(e){var n;const t=(n=e.container)==null?void 0:n.querySelector('[data-sheet="payment"]');if(t){dt(e);const r=t.querySelector(".choco-widget-sheet-content");r&&(r.style.transform="",r.classList.remove("choco-widget-sheet-content--dragging")),t.classList.remove("choco-widget-payment-sheet--open"),e.isPaymentSheetOpen=!1,e.isPaymentSheetEditMode&&(e.isPaymentSheetEditMode=!1,Re(e),Le(e))}}function Le(e){var l;const t=(l=e.container)==null?void 0:l.querySelector('[data-sheet="payment"]');if(!t)return;const n=t.querySelector(".choco-widget-sheet-title"),r=t.querySelector('[data-action="close-sheet"]'),o=t.querySelector('[data-action="edit-sheet"]'),i=t.querySelector('[data-action="previous-sheet"]'),u=e.getAvailablePaymentMethods().some(h=>h.type==="card");e.isPaymentSheetEditMode?(t.classList.add("choco-widget-payment-sheet--edit"),n&&(n.textContent=e.t("editCards")),r&&(r.style.display="none"),o&&(o.style.display="none"),i&&(i.style.display="")):(t.classList.remove("choco-widget-payment-sheet--edit"),t.classList.toggle("choco-widget-payment-sheet--no-cards",!u),n&&(n.textContent=e.t("paymentMethods")),r&&(r.style.display=""),o&&(o.style.display=u?"":"none"),i&&(i.style.display="none"))}function Ht(e){if(!e.addCardActionUrl||!e.container)return;const t=e.container.querySelector('[data-sheet="add-card"]'),n=e.container.querySelector("#choco-widget-add-card-iframe");t&&n&&(n.src=e.addCardActionUrl,t.classList.add("choco-widget-payment-sheet--open"),t.style.display="flex",t.setAttribute("aria-hidden","false"),e.isAddCardViewOpen=!0,Xi(e))}function Ie(e){var r,o;const t=(r=e.container)==null?void 0:r.querySelector('[data-sheet="add-card"]'),n=(o=e.container)==null?void 0:o.querySelector("#choco-widget-add-card-iframe");t&&(t.classList.remove("choco-widget-payment-sheet--open"),t.style.display="none",t.setAttribute("aria-hidden","true")),n&&(n.src="about:blank"),e.addCardActionUrl=null,e.isAddCardViewOpen=!1,Hi(e)}function Xi(e){e._boundAddCardMessage=t=>{var n;e.isAddCardViewOpen&&(n=t.data)!=null&&n.message&&t.origin==="https://rahmetapp.kz"&&he(e)},window.addEventListener("message",e._boundAddCardMessage)}function Hi(e){e._boundAddCardMessage&&(window.removeEventListener("message",e._boundAddCardMessage),e._boundAddCardMessage=null)}function ji(e,t){var c;e._pendingDeleteMethod=t;const n=(c=e.container)==null?void 0:c.querySelector('[data-sheet="payment"]');if(!n)return;n.classList.add("choco-widget-payment-sheet--delete-confirm");const r=n.querySelector(".choco-widget-sheet-title"),o=n.querySelector('[data-action="edit-sheet"]'),i=n.querySelector('[data-action="previous-sheet"]');r&&(r.textContent=e.t("confirmDeleteCard")),o&&(o.style.display="none"),i&&(i.style.display="none")}function dt(e){var n;e._pendingDeleteMethod=null,jt(e,!1);const t=(n=e.container)==null?void 0:n.querySelector('[data-sheet="payment"]');t==null||t.classList.remove("choco-widget-payment-sheet--delete-confirm"),Le(e)}function jt(e,t){var i,c,u;const n=(i=e.container)==null?void 0:i.querySelector(".choco-widget-sheet-delete-confirm-actions"),r=(c=e.container)==null?void 0:c.querySelector('[data-action="confirm-delete-cancel"]'),o=(u=e.container)==null?void 0:u.querySelector('[data-action="confirm-delete-submit"]');n==null||n.classList.toggle("choco-widget-sheet-delete-confirm-actions--loading",t),r&&(r.disabled=t),o&&(o.disabled=t,o.classList.toggle("choco-widget-delete-confirm-btn--loading",t))}async function Ji(e,t){var r,o;const n=t==null?void 0:t.cardId;if(!(!n||(t==null?void 0:t.type)!=="card"))try{await Ur(e.apiUrl,e._getApiConfig(),n),e.checkoutContext=await bt(e.apiUrl,e._getApiConfig()),((r=e.selectedPaymentMethod)==null?void 0:r.type)==="card"&&((o=e.selectedPaymentMethod)==null?void 0:o.cardId)===n&&(e.selectedPaymentMethod=mt(e.checkoutContext.data,e._getKaspiOptions()),e._emitPaymentMethodSelected(),ar(e)),Re(e),e.config.onSuccess({message:e.t("cardDeleted")}),e.config.onCardDeleted&&e.config.onCardDeleted({cardId:n})}catch(i){e.config.onError({attributes:{message:(i==null?void 0:i.message)||e.t("paymentError")}})}}function Ar(e,t){if(e._isInteractionBlocked())return;if(e.selectedPaymentMethod=t,e._emitPaymentMethodSelected(),t.type==="new_card"){e._emitUserEvent("one_click_pay_method_resolved",{payment_method:t.type}),le(e),e.handlePayment();return}const n=e._getPaymentMethodForUserEvent();n!=null&&e._emitUserEvent("one_click_pay_method_resolved",{payment_method:n}),Re(e),le(e),ar(e)}const ft="choco_pending_order_id",qi=1800*1e3;function zi(e){je(ft,JSON.stringify({id:e,ts:Date.now()}))}function Ki(){const e=Ct(ft);if(!e)return null;try{const{id:t,ts:n}=JSON.parse(e);return!t||typeof n!="number"?null:Date.now()-n>qi?(Ce(ft),null):String(t)}catch{return null}}function dr(e){e._pendingOrderId=null,Ce(ft)}function fr(e,t){var r;const n=t.type||((r=t.data)==null?void 0:r.type);if(!n){console.warn("Unknown event format:",t);return}switch(n){case"order.paid":e._orderStatusResolved=!0,pe(e),pr(e,t);break;case"order.failed":e._orderStatusResolved=!0,pe(e),gr(e,t);break;case"order.action_required":Gi(e,t);break;default:console.warn("Unknown event type:",n)}}function pe(e){e._orderStatusPollingId&&(clearInterval(e._orderStatusPollingId),e._orderStatusPollingId=null)}function ge(e,t){pe(e),e._orderStatusResolved=!1,e._pendingOrderId=String(t),zi(String(t));const n=6e3,r=5;let o=0;const i=async()=>{if(!e._orderStatusResolved){if(o>=r){pe(e),q(e),e.config.onError({attributes:{message:e.t("errorNoServerResponseRetry")}});return}o+=1;try{const{data:c}=await Xr(e.apiUrl,e._getApiConfig(),String(t)),u=c==null?void 0:c.status,l=(c==null?void 0:c.payload)||{};if(u==="success"){e._orderStatusResolved=!0,pe(e),pr(e,{id:String(l.id||t),attributes:{amount:l.amount,paid_at:l.paid_at||""}});return}u==="fail"&&(e._orderStatusResolved=!0,pe(e),gr(e,{id:String(l.id||t),attributes:{message:l.message||e.t("paymentError")}}))}catch(c){console.warn("[Polling] checkOrderStatus error:",c)}}};e._orderStatusPollingId=setInterval(i,n),i()}function ht(){return typeof document>"u"?!1:document.hidden||document.visibilityState==="hidden"}function hr(e,t){q(e),e.config.onSuccess(t)}function Jt(e){if(!e._pendingSuccessPayload||ht())return;const t=e._pendingSuccessPayload;e._pendingSuccessPayload=null,hr(e,t)}function pt(e){if(ht()||e._orderStatusResolved||e._orderStatusPollingId)return;const t=e._pendingOrderId||Ki();t&&(e._pendingOrderId=t,ge(e,t))}function pr(e,t){var o,i;dr(e),e.isAddCardViewOpen&&Ie(e);const n=t.attributes||((o=t.data)==null?void 0:o.attributes)||{},r={id:t.id||((i=t.data)==null?void 0:i.id),attributes:n};if(ht()){e._pendingSuccessPayload=r;return}hr(e,r)}function gr(e,t){var r,o;dr(e),e.isAddCardViewOpen&&Ie(e),q(e);const n=t.attributes||((r=t.data)==null?void 0:r.attributes)||{};e.config.onError({id:t.id||((o=t.data)==null?void 0:o.id),attributes:n})}function Gi(e,t){var i,c,u;const n=t.attributes||((i=t.data)==null?void 0:i.attributes)||{},r=n.action_link||n.action_url,o=n.action_url_type||n.action_type||"redirect";if(!r){console.error(e.t("errorActionUrlMissing")),e.waitingForNewCardAction&&(e.waitingForNewCardAction=!1,q(e),e.config.onError({attributes:{message:e.t("errorNoServerResponse")}}));return}if(e.waitingForNewCardAction&&(e.waitingForNewCardAction=!1,e._clearNewCardActionTimeout()),o==="inner"){e.addCardActionUrl=r,q(e),e._showAddCardView();return}if(((c=e.selectedPaymentMethod)==null?void 0:c.type)==="kaspi_pay"){const l=t.id||((u=t.data)==null?void 0:u.id);if(l&&!e._orderStatusResolved&&!e._orderStatusPollingId&&ge(e,String(l)),typeof e.config.onKaspiLink=="function"){e.config.onKaspiLink({action_link:r,action_url:r,action_type:o,event:t});return}}window.location.href=r}async function Wi(e){var n,r,o,i,c;if(!e.selectedPaymentMethod){e.config.onError({attributes:{message:e.t("errorPaymentMethodNotSelected")}});return}const{checkoutOptions:t}=e._getPaymentBreakdown();if(e._isBalanceFullyCoveringAmount()){he(e);try{const u=await sn(e.apiUrl,e._getApiConfig(),e.deviceId,e.selectedPaymentMethod,t);await yr(e);const l=(u==null?void 0:u.id)??((n=u==null?void 0:u.data)==null?void 0:n.id);return l&&ge(e,String(l)),u}catch(u){throw q(e),se(u,{paymentMethod:"balance"}),e.config.onError({attributes:{message:e._resolveErrorMessage(u)}}),u}}if(e.selectedPaymentMethod.type==="new_card"){await Yi(e,t);return}if(e.selectedPaymentMethod.type==="apple_pay"){await Vi(e,t);return}if(e.selectedPaymentMethod.type==="google_pay"){await Zi(e,t);return}he(e);try{const u=await sn(e.apiUrl,e._getApiConfig(),e.deviceId,e.selectedPaymentMethod,t);await yr(e);const l=(u==null?void 0:u.id)??((r=u==null?void 0:u.data)==null?void 0:r.id);if(l&&ge(e,String(l)),((o=e.selectedPaymentMethod)==null?void 0:o.type)==="kaspi_pay"){const h=(u==null?void 0:u.attributes)||((i=u==null?void 0:u.data)==null?void 0:i.attributes)||{},y=h.action_link||h.action_url,m=h.action_url_type||h.action_type||"redirect";if(y)return typeof e.config.onKaspiLink=="function"?(e.config.onKaspiLink({action_link:y,action_url:y,action_type:m,event:u}),u):(window.location.href=y,u)}return u}catch(u){throw q(e),se(u,{paymentMethod:((c=e.selectedPaymentMethod)==null?void 0:c.type)||"card"}),e.config.onError({message:e._resolveErrorMessage(u)}),u}}async function yr(e){var t,n;if(!(((t=e.selectedPaymentMethod)==null?void 0:t.type)!=="card"||!((n=e.selectedPaymentMethod)!=null&&n.cardId)))try{await Fr(e.apiUrl,e._getApiConfig(),e.selectedPaymentMethod.cardId)}catch(r){console.warn("Failed to mark selected card as default:",r)}}async function Yi(e,t){he(e),e.waitingForNewCardAction=!0,e._setNewCardActionTimeout();try{await Hr(e.apiUrl,e._getApiConfig(),e.deviceId,t)}catch(n){e.waitingForNewCardAction=!1,e._clearNewCardActionTimeout(),q(e),se(n,{paymentMethod:"new_card"}),e.config.onError({attributes:{message:e._resolveErrorMessage(n)}}),console.error("New card payment error:",n)}}let Oe=null;async function Vi(e,t){const n=window.ApplePaySession;if(!n||!n.canMakePayments()){e.config.onError({attributes:{message:e.t("errorApplePayUnsupported")}});return}if(Oe)return;he(e);const r={countryCode:e.config.currency==="GEL"?"GE":"KZ",currencyCode:e.config.currency,supportedNetworks:["visa","masterCard"],merchantCapabilities:["supports3DS"],total:{label:e.config.merchantName||"Choco",amount:String(e._getPayableAmount()),type:"final"}},o=new n(3,r);Oe=o,o.onvalidatemerchant=async i=>{var c,u;try{let l;try{l=await an(e.apiUrl,e._getApiConfig(),i.validationURL)}catch(m){if(m.status===401)await e._obtainTokenByRefreshOrTrackId(),l=await an(e.apiUrl,e._getApiConfig(),i.validationURL);else throw m}const h=((u=(c=l==null?void 0:l.data)==null?void 0:c.attributes)==null?void 0:u.session)||l,y=JSON.parse(atob(h));o.completeMerchantValidation(y)}catch(l){console.error("Apple Pay session error:",l),se(l,{paymentMethod:"apple_pay",phase:"merchant_validation"}),q(e),o.abort(),e.config.onError({attributes:{message:e.t("errorApplePayInit")}})}},o.onpaymentauthorized=async i=>{var c;try{if(typeof e.config.onBeforeCheckout=="function"){const h=await e.config.onBeforeCheckout();h&&typeof h=="object"&&Object.assign(e.config,h)}const u=await Jr(e.apiUrl,e._getApiConfig(),e.deviceId,i.payment,t);o.completePayment(n.STATUS_SUCCESS),Oe=null;const l=(u==null?void 0:u.id)??((c=u==null?void 0:u.data)==null?void 0:c.id);l&&!e._orderStatusResolved&&ge(e,String(l))}catch(u){console.error("Apple Pay payment error:",u),se(u,{paymentMethod:"apple_pay",phase:"payment_authorized"}),o.completePayment(n.STATUS_FAILURE),Oe=null,q(e),e.config.onError({attributes:{message:e._resolveErrorMessage(u,"errorApplePayPayment")}})}},o.oncancel=()=>{var i;if(Oe=null,q(e),((i=e.selectedPaymentMethod)==null?void 0:i.type)==="apple_pay"){e.config.onError({attributes:{message:e.t("errorApplePayInterrupted")}});return}e.config.onCancel()},o.begin()}async function Zi(e,t){var S,P,k,L,R,z;const n=(S=e.checkoutContext)==null?void 0:S.data,r=((k=(P=n==null?void 0:n.payment_methods)==null?void 0:P.data)==null?void 0:k.attributes)||{},o=r.google_pay_settings||{};if(!(r.payment_method_google_pay==="enabled"||r.payment_method_google_pay===!0)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const c=o==null?void 0:o.gateway,u=o==null?void 0:o.merchant_id;if(!c||!u){e.config.onError({attributes:{message:e.t("errorGooglePaySettingsUnavailable")}});return}const l=e.config.environment==="production",h=(o==null?void 0:o.merchant_name)||"Choco",y=o==null?void 0:o.google_merchant_id;if(l&&!y){e.config.onError({attributes:{message:e.t("errorGooglePaySettingsUnavailable")}});return}if(e.config.isNativeAndroid){await $i(e,t,{gateway:c,gatewayMerchantId:u});return}const m=Number(e._getCheckoutAmount()).toFixed(2);try{await e._loadGooglePaySdk()}catch(D){console.error("Google Pay SDK load error:",D),e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const b=window.google;if(!(b!=null&&b.payments)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}const I=[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["VISA","MASTERCARD"],billingAddressRequired:!1},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:c,gatewayMerchantId:u}}}],B={apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:I,transactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:"Итого",totalPrice:m,currencyCode:e.config.currency,countryCode:e.config.currency==="GEL"?"GE":"KZ"},merchantInfo:l?{merchantId:y,merchantName:h}:{merchantName:h}},Q=new b.payments.api.PaymentsClient({environment:l?"PRODUCTION":"TEST"});try{const D=await Q.isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:I});if(!(D!=null&&D.result)){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}he(e);const G=await Q.loadPaymentData(B),K=(R=(L=G==null?void 0:G.paymentMethodData)==null?void 0:L.tokenizationData)==null?void 0:R.token;if(!K)throw new Error(e.t("errorGooglePayPayment"));const J=JSON.parse(K),M=await cn(e.apiUrl,e._getApiConfig(),e.deviceId,J,t),v=(M==null?void 0:M.id)??((z=M==null?void 0:M.data)==null?void 0:z.id);v&&ge(e,String(v))}catch(D){q(e),D.statusCode==="CANCELED"?e.config.onCancel():(se(D,{paymentMethod:"google_pay"}),e.config.onError({attributes:{message:e._resolveErrorMessage(D,"errorGooglePayPayment")}}),console.error("Google Pay error:",D))}}async function $i(e,t,n){var r;if(!e.config.onPayWithGooglePay){e.config.onError({attributes:{message:e.t("errorGooglePayUnsupported")}});return}he(e);try{const o=await e.config.onPayWithGooglePay({amount:Number(e._getCheckoutAmount()),gateway:n.gateway,gatewayMerchantId:n.gatewayMerchantId}),i=JSON.parse(o),c=await cn(e.apiUrl,e._getApiConfig(),e.deviceId,i,t),u=(c==null?void 0:c.id)??((r=c==null?void 0:c.data)==null?void 0:r.id);u&&ge(e,String(u))}catch(o){q(e),o.statusCode==="CANCELED"?e.config.onCancel():(se(o,{paymentMethod:"google_pay_native"}),e.config.onError({attributes:{message:e._resolveErrorMessage(o,"errorGooglePayPayment")}}),console.error("Google Pay native error:",o))}}function ea(e){var c,u,l,h,y,m,b,I,B,Q,S,P;const t=e.container;(c=t.querySelector('[data-action="freedom-card"]'))==null||c.addEventListener("click",()=>{e.config.onFreedomLink&&e.config.onFreedomLink()}),(u=t.querySelector('[data-action="pay"]'))==null||u.addEventListener("click",()=>e.handlePayment()),(l=t.querySelector('[data-action="change-method"]'))==null||l.addEventListener("click",()=>lr(e)),t.querySelectorAll('[data-action="close"]').forEach(k=>k.addEventListener("click",()=>e.close())),(h=t.querySelector('[data-action="close-sheet"]'))==null||h.addEventListener("click",()=>{e._pendingDeleteMethod?dt(e):le(e)}),(y=t.querySelector('[data-action="edit-sheet"]'))==null||y.addEventListener("click",()=>{e.isPaymentSheetEditMode=!0,Re(e),Le(e)}),(m=t.querySelector('[data-action="previous-sheet"]'))==null||m.addEventListener("click",()=>{e.isPaymentSheetEditMode=!1,Re(e),Le(e)}),(b=t.querySelector('[data-action="close-add-card"]'))==null||b.addEventListener("click",()=>Ie(e)),(I=t.querySelector('[data-action="confirm-delete-cancel"]'))==null||I.addEventListener("click",()=>dt(e)),(B=t.querySelector('[data-action="confirm-delete-submit"]'))==null||B.addEventListener("click",()=>{if(e._pendingDeleteMethod){const k=e._pendingDeleteMethod;jt(e,!0),Ji(e,k).then(()=>le(e)).finally(()=>jt(e,!1))}}),t.querySelectorAll(".choco-widget-method-item").forEach(k=>{k.addEventListener("click",L=>{const R=JSON.parse(L.currentTarget.getAttribute("data-method")||"{}");Ar(e,R)})});const n=t.querySelector('[data-sheet="payment"]');n&&(n.addEventListener("click",k=>{k.target===n&&le(e)}),na(e,n));const r=t.querySelector('[data-action="toggle-balance"]');r&&((Q=r.querySelector("input[type='checkbox']"))==null||Q.addEventListener("change",k=>{e.useBalance=k.target.checked,ur(e),e._updatePayButtonAmount()}));const o=t.querySelector('[data-action="toggle-bonuses"]');o&&((S=o.querySelector("input[type='checkbox']"))==null||S.addEventListener("change",k=>{e.useBonuses=k.target.checked,e.config.onAppliedBonus(e.useBonuses),ur(e),e._updatePayButtonAmount()}));const i=t.querySelector('[data-action="toggle-coupon"]');i&&((P=i.querySelector("input[type='checkbox']"))==null||P.addEventListener("change",k=>{e.useCoupon=k.target.checked,e._updatePayButtonAmount(),e._emitCouponSuppressingCashback()})),document.removeEventListener("keydown",e._boundKeyDown),document.addEventListener("keydown",e._boundKeyDown),cr(e)}function ta(e,t){var n,r;e.isOpen&&(t.key==="Escape"&&(t.preventDefault(),e._pendingDeleteMethod?dt(e):e.isAddCardViewOpen?Ie(e):e.isPaymentSheetOpen?le(e):e.close()),t.key==="Enter"&&((r=(n=t.target)==null?void 0:n.dataset)==null?void 0:r.action)==="pay"&&(t.preventDefault(),e.handlePayment()))}function na(e,t){const n=t.querySelector('[data-action="sheet-drag-handle"]'),r=t.querySelector(".choco-widget-sheet-content");if(!n||!r)return;const o=80;let i=0,c=0;const u=h=>{c=h.clientY;const y=Math.max(0,c-i);r.style.transform=`translateY(${y}px)`},l=h=>{n.releasePointerCapture(h.pointerId),n.removeEventListener("pointermove",u),n.removeEventListener("pointerup",l),n.removeEventListener("pointercancel",l);const y=Math.max(0,c-i);if(r.classList.remove("choco-widget-sheet-content--dragging"),y>=o){r.style.transform="translateY(100%)";const m=()=>{r.removeEventListener("transitionend",m),r.style.transform="",le(e)};r.addEventListener("transitionend",m)}else r.style.transform=""};n.addEventListener("pointerdown",h=>{!e.isPaymentSheetOpen||h.button!==0||(h.preventDefault(),i=h.clientY,c=h.clientY,r.classList.add("choco-widget-sheet-content--dragging"),n.setPointerCapture(h.pointerId),n.addEventListener("pointermove",u),n.addEventListener("pointerup",l),n.addEventListener("pointercancel",l))})}class ye{static _getAuthStorageValue(t){return Ct(t)}static _setAuthStorageValue(t,n){je(t,n)}static _removeAuthStorageValue(t){Ce(t)}static async logout(){or()}constructor(t){this.config=qr(t),this.accessToken=null,this.deviceId=Vt(),this.apiUrl=Sr(this.config.environment),this.translations=_e,this.checkoutContext=null,this.centrifuge=null,this.selectedPaymentMethod=null,this.selectedCoupon=null,this.useCoupon=!1,this.container=null,this.isOpen=!1,this.isPaymentSheetOpen=!1,this.isPaymentSheetEditMode=!1,this.loading=!1,this.disabled=!1,this.paymentMethodDisabled=!1,this.useBalance=!1,this.useBonuses=!1,this.addCardActionUrl=null,this.isAddCardViewOpen=!1,this.waitingForNewCardAction=!1,this.newCardActionRequiredTimeoutId=null,this._googlePayScriptPromise=null,this._googlePayButtonRenderVersion=0,this._orderStatusPollingId=null,this._orderStatusResolved=!1,this._pendingOrderId=null,this._pendingDeleteMethod=null,this._pendingSuccessPayload=null,this._lifecycleListenersAttached=!1,this._destroyed=!1,this._boundAddCardMessage=null,this._boundKeyDown=n=>ta(this,n),this._boundVisibilityChange=()=>this._onVisibilityChange(),this._boundWindowFocus=()=>this._onWindowFocus(),this._boundPageShow=()=>this._onPageShow(),vi({clientId:String(this.config.clientId),terminalId:String(this.config.terminalId),environment:this.config.environment})}t(t,n={}){var i;const r=this.config.locale||"ru",o=((i=this.translations[r])==null?void 0:i[t])||this.translations.ru[t];return typeof o!="string"?t:o.replace(/{(\w+)}/g,(c,u)=>Object.prototype.hasOwnProperty.call(n,u)?String(n[u]):c)}_resolveErrorMessage(t,n="paymentError"){return(t==null?void 0:t.message)||this.t(n)}_getApiConfig(){return{...this.config,accessToken:this.accessToken}}_isInteractionBlocked(){return this.disabled||this.loading}_getBalanceAmount(){var o,i,c,u;const t=(u=(c=(i=(o=this.checkoutContext)==null?void 0:o.data)==null?void 0:i.balance)==null?void 0:c.data)==null?void 0:u.money,n=this.config.currency||"KZT",r=Number(t==null?void 0:t[n]);return Number.isFinite(r)&&r>0?r:0}_getBonusesAmount(){var n;const t=Number((n=this.config.bonuses)==null?void 0:n.amount);return Number.isFinite(t)&&t>0?t:0}_getBonusesPercent(){var n;const t=Number((n=this.config.bonuses)==null?void 0:n.percent);return!Number.isFinite(t)||t<=0?0:t>=100?100:t}_getAvailableBonus(){var n;const t=Number((n=this.config.bonuses)==null?void 0:n.availableBonus);return Number.isFinite(t)&&t>0?t:0}_getCouponDiscount(){if(!this.useCoupon||!this.selectedCoupon||this._isCouponDisabled()||this.selectedCoupon.type==="coupon")return 0;const t=Number(this.selectedCoupon.reward_amount);return Number.isFinite(t)&&t>0?t:0}_getPaymentBreakdown(){const t=this.config.amount,n=this._getBalanceAmount(),r=this.useBalance?Math.min(n,t):0,o=t-r,i=this.useBalance&&r>=t,c=this.useBonuses?this._getAvailableBonus():0,u=Math.max(o-c,0),l=this._getCouponDiscount(),h=Math.max(u-l,0),y=this.useBalance?t:h,m=this.useBalance&&!i,I=this.useCoupon&&this.selectedCoupon&&!this._isCouponDisabled()?{id:this.selectedCoupon.voucher_id,template_id:this.selectedCoupon.template_id,type:this.selectedCoupon.type}:void 0;return{payableAmount:h,checkoutOptions:{checkoutAmount:y,forceBalanceMethod:i,useBalance:m,voucher:I}}}_getPayableAmount(){return this._getPaymentBreakdown().payableAmount}_isBalanceFullyCoveringAmount(){return this._getPaymentBreakdown().checkoutOptions.forceBalanceMethod}_getCheckoutAmount(){return this._getPaymentBreakdown().checkoutOptions.checkoutAmount??this.config.amount}_getPaymentMethodForUserEvent(){var t;return this._isBalanceFullyCoveringAmount()?"balance":((t=this.selectedPaymentMethod)==null?void 0:t.type)??null}_getKaspiOptions(){return{onlyKaspiAvailable:this.config.onlyKaspiAvailable,disableKaspi:this.config.disableKaspi,disableGooglePay:this.config.disableGooglePay}}_emitUserEvent(t,n={}){typeof this.config.onUserEvent=="function"&&this.config.onUserEvent({eventName:t,eventProperties:n})}_emitPaymentMethodSelected(t=this.selectedPaymentMethod){typeof this.config.onPaymentMethodSelected=="function"&&this.config.onPaymentMethodSelected(t||null)}_emitCouponSuppressingCashback(){var n;const t=this.useCoupon&&((n=this.selectedCoupon)==null?void 0:n.suppresses_cashback)===!0;this.config.onCouponSuppressingCashback(t)}_attachEventListeners(){ea(this)}_updatePayButtonAmount(){At(this)}_showAddCardView(){Ht(this)}_closeAddCardView(){Ie(this)}_setNewCardActionTimeout(){this._clearNewCardActionTimeout(),this.newCardActionRequiredTimeoutId=setTimeout(()=>{this.waitingForNewCardAction&&(this.waitingForNewCardAction=!1,q(this),this.config.onError({attributes:{message:this.t("errorNoServerResponseRetry")}})),this.newCardActionRequiredTimeoutId=null},6e4)}_clearNewCardActionTimeout(){this.newCardActionRequiredTimeoutId&&(window.clearTimeout(this.newCardActionRequiredTimeoutId),this.newCardActionRequiredTimeoutId=null)}_saveTokensToStorage(t,n){ut(t,n)}_clearAuthStorage(){or()}_getAuthStorageValue(t){return ye._getAuthStorageValue(t)}_setAuthStorageValue(t,n){ye._setAuthStorageValue(t,n)}_removeAuthStorageValue(t){ye._removeAuthStorageValue(t)}_loadGooglePaySdk(){var t,n;return typeof window>"u"||typeof document>"u"?Promise.reject(new Error("Google Pay SDK requires browser environment")):(n=(t=window.google)==null?void 0:t.payments)!=null&&n.api?Promise.resolve():this._googlePayScriptPromise?this._googlePayScriptPromise:(this._googlePayScriptPromise=new Promise((r,o)=>{const i=document.querySelector('script[data-choco-google-pay-sdk="true"]');if(i){i.addEventListener("load",()=>r(),{once:!0}),i.addEventListener("error",()=>o(new Error("Failed to load Google Pay SDK")),{once:!0});return}const c=document.createElement("script");c.src="https://pay.google.com/gp/p/js/pay.js",c.async=!0,c.defer=!0,c.setAttribute("data-choco-google-pay-sdk","true"),c.onload=()=>r(),c.onerror=()=>o(new Error("Failed to load Google Pay SDK")),document.head.appendChild(c)}).finally(()=>{var r,o;(o=(r=window.google)==null?void 0:r.payments)!=null&&o.api||(this._googlePayScriptPromise=null)}),this._googlePayScriptPromise)}_attachLifecycleListeners(){this._lifecycleListenersAttached||(document.addEventListener("visibilitychange",this._boundVisibilityChange),window.addEventListener("focus",this._boundWindowFocus),window.addEventListener("pageshow",this._boundPageShow),this._lifecycleListenersAttached=!0)}_detachLifecycleListeners(){this._lifecycleListenersAttached&&(document.removeEventListener("visibilitychange",this._boundVisibilityChange),window.removeEventListener("focus",this._boundWindowFocus),window.removeEventListener("pageshow",this._boundPageShow),this._lifecycleListenersAttached=!1)}_onVisibilityChange(){ht()||(Jt(this),pt(this))}_onWindowFocus(){Jt(this),pt(this)}_onPageShow(){Jt(this),pt(this)}async _obtainTokenByRefreshOrTrackId(){await Ii(this)}async _fetchCheckoutContextWithRetry(){try{this.checkoutContext=await bt(this.apiUrl,this._getApiConfig())}catch(t){if(t.status===401)this._removeAuthStorageValue("webPayToken"),await this._obtainTokenByRefreshOrTrackId(),this.checkoutContext=await bt(this.apiUrl,this._getApiConfig());else throw t}}async _fetchCoupons(){try{const t=await jr(this.apiUrl,this._getApiConfig()),r=(Array.isArray(t)?t:Array.isArray(t==null?void 0:t.data)?t.data:[]).filter(o=>Number(o.reward_amount)>0).sort((o,i)=>o.sort_weight-i.sort_weight);this.selectedCoupon=r.length>0?r[0]:null,this.useCoupon=!1}catch{this.selectedCoupon=null,this.useCoupon=!1}}_isCouponDisabled(){if(!this.selectedCoupon)return!1;if(this.config.amount<this.selectedCoupon.min_pay_amount)return!0;const t=this._getBalanceAmount(),n=this.useBalance?Math.min(t,this.config.amount):0,r=this.config.amount-n,o=this.useBonuses?Math.min(this._getAvailableBonus(),r):0;return r-o<this.selectedCoupon.reward_amount}_prerender(){Mi(this)}_render(){xi(this)}async init(){var t,n;try{if(this._prerender(),this._attachLifecycleListeners(),!this.config.clientId)return this.config.onError({attributes:{message:this.t("errorMissingTrackClient")}}),!1;if(this.accessToken=this._getAuthStorageValue("webPayToken"),!this.config.trackId&&!this.accessToken)return this.paymentMethodDisabled=!0,this._render(),!0;if(!this.accessToken&&(await this._obtainTokenByRefreshOrTrackId(),this._destroyed))return!1;try{await this._fetchCheckoutContextWithRetry()}catch(o){const i=o;return this.config.onError({attributes:{message:i.message}}),!1}if(this._destroyed||(await this._fetchCoupons(),this._emitCouponSuppressingCashback(),this._destroyed))return!1;const r=en((n=(t=this.checkoutContext)==null?void 0:t.data)==null?void 0:n.socket_connections,o=>fr(this,o));return r&&(this.centrifuge=r.centrifuge),pt(this),this.selectedPaymentMethod=mt(this.checkoutContext.data,this._getKaspiOptions()),this._emitPaymentMethodSelected(),this._render(),!0}catch(r){return console.error(`${this.t("errorWidgetInit")}:`,r),se(r,{phase:"init"}),this.config.onError({attributes:{message:r.message}}),!1}}close(){this.config.onCancel()}destroy(){this._destroyed=!0;const t=document.getElementById("choco-one-click-widget");t&&(t.style.display="none"),this._clearNewCardActionTimeout(),pe(this),this._pendingSuccessPayload=null,this._detachLifecycleListeners(),this.isAddCardViewOpen&&Ie(this),this.centrifuge&&(this.centrifuge.disconnect(),this.centrifuge=null),document.removeEventListener("keydown",this._boundKeyDown),this.container&&(this.container.classList.remove("choco-one-click-widget--visible"),setTimeout(()=>{var n;(n=this.container)==null||n.remove(),this.container=null},300)),this.isOpen=!1,this.isPaymentSheetOpen=!1,this.isAddCardViewOpen=!1,this.selectedPaymentMethod=null}getAvailablePaymentMethods(){var t;return(t=this.checkoutContext)!=null&&t.data?Dr(this.checkoutContext.data,n=>this.t(n),this._getKaspiOptions()):[]}async createOrder(){return Wi(this)}async pay(){try{await this.createOrder()}catch(t){console.error(`${this.t("errorPaymentProcess")}:`,t)}}async handlePayment(){if(this._isInteractionBlocked())return;const t=this._getPaymentMethodForUserEvent();t!=null&&this._emitUserEvent("one_click_pay_cta_tapped",{payment_method:t});try{if(this.config.onConfirmPay){this.config.onConfirmPay(this.selectedPaymentMethod||null);return}await this.pay()}catch(n){console.error(`${this.t("errorPaymentProcess")}:`,n)}}openPaymentSheet(){lr(this)}closePaymentSheet(){le(this)}async updateAmount(t){var n;if(typeof t!="number"||!Number.isFinite(t)||t<0)throw new Error("amount must be a non-negative number");if(this.config.amount=t,this._isCouponDisabled()&&(this.useCoupon=!1),this.selectedCoupon){const r=this.isPaymentSheetOpen,o=this.isAddCardViewOpen;if(this._render(),ue(this),r){const i=(n=this.container)==null?void 0:n.querySelector('[data-sheet="payment"]');i&&(i.classList.add("choco-widget-payment-sheet--open"),this.isPaymentSheetOpen=!0)}o&&Ht(this);return}At(this)}async updateAvailableBonus(t){if(typeof t!="number"||!Number.isFinite(t)||t<0)throw new Error("availableBonus must be a non-negative number");this.config.bonuses&&(this.config.bonuses.availableBonus=t),At(this)}async updateLocale(t){if(typeof t!="string"||!this.translations[t])throw new Error(`Unsupported locale: ${t}`);if(this.config.locale=t,!this.container)return;const n=this.isPaymentSheetOpen,r=this.isAddCardViewOpen;if(this._render(),ue(this),n){const o=this.container.querySelector('[data-sheet="payment"]');o&&(o.classList.add("choco-widget-payment-sheet--open"),this.isPaymentSheetOpen=!0)}r&&Ht(this)}async setLoading(t){this.loading=!!t,ue(this)}async setDisabled(t){this.disabled=!!t,ue(this)}async setPreorderId(t){this.config.preorderId=t}async setMerchantOrderId(t){this.config.merchantOrderId=t}async setIdempotencyKey(t){this.config.idempotencyKey=t}async logout(){await ye.logout(),this.accessToken=null}async updateTrackId(t){var n,r;if(this.config.trackId=t,!this.config.clientId)return this.config.onError({attributes:{message:this.t("errorMissingTrackClient")}}),!1;try{this._prerender(),await this._obtainTokenByRefreshOrTrackId();try{await this._fetchCheckoutContextWithRetry()}catch(i){const c=i;return this.config.onError({attributes:{message:c.message}}),!1}await this._fetchCoupons(),this._emitCouponSuppressingCashback(),this.centrifuge&&(this.centrifuge.disconnect(),this.centrifuge=null);const o=en((r=(n=this.checkoutContext)==null?void 0:n.data)==null?void 0:r.socket_connections,i=>fr(this,i));return o&&(this.centrifuge=o.centrifuge),this.selectedPaymentMethod=mt(this.checkoutContext.data,this._getKaspiOptions()),this._emitPaymentMethodSelected(),this.paymentMethodDisabled=!1,this._render(),!0}catch(o){return console.error(`${this.t("errorWidgetInit")}:`,o),se(o,{phase:"updateTrackId"}),this.config.onError({attributes:{message:o.message}}),!1}}async onConfirmPay(t){if(typeof t!="function")throw new Error("onConfirmPay callback must be a function");this.config.onConfirmPay=t}async onPaymentMethodSelected(t){if(typeof t!="function")throw new Error("onPaymentMethodSelected callback must be a function");this.config.onPaymentMethodSelected=t,this._emitPaymentMethodSelected()}async onKaspiLink(t){if(typeof t!="function")throw new Error("onKaspiLink callback must be a function");this.config.onKaspiLink=t}async onUserEvent(t){if(typeof t!="function")throw new Error("onUserEvent callback must be a function");this.config.onUserEvent=t}async onFreedomLink(t){if(typeof t!="function")throw new Error("onFreedomLink callback must be a function");this.config.onFreedomLink=t}async onAppliedBonus(t){if(typeof t!="function")throw new Error("onAppliedBonus callback must be a function");this.config.onAppliedBonus=t}async onCouponSuppressingCashback(t){if(typeof t!="function")throw new Error("onCouponSuppressingCashback callback must be a function");this.config.onCouponSuppressingCashback=t}}return typeof window<"u"&&(window.ChocoOneClickWidget=ye),ye}));