@paynext/sdk 0.0.21 → 0.0.23
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.es.js +186 -190
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<%s {...props} />
|
|
21
21
|
React keys must be passed directly to JSX without using spread:
|
|
22
22
|
let props = %s;
|
|
23
|
-
<%s key={someKey} {...props} />`,H,Z,We,Z),U[Z+H]=!0)}if(Z=null,O!==void 0&&(n(O),Z=""+O),a(j)&&(n(j.key),Z=""+j.key),"key"in j){O={};for(var Ar in j)Ar!=="key"&&(O[Ar]=j[Ar])}else O=j;return Z&&o(O,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,Z,pe,Te,i(),O,Pr,Sr)}function d(C){typeof C=="object"&&C!==null&&C.$$typeof===m&&C._store&&(C._store.validated=1)}var h=f,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),x=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),q=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,_=Array.isArray,K=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(C){return C()}};var ye,de={},R=h["react-stack-bottom-frame"].bind(h,s)(),I=K(r(s)),U={};He.Fragment=y,He.jsx=function(C,j,O,H,Te){var pe=1e4>q.recentlyCreatedOwnerStacks++;return c(C,j,O,!1,H,Te,pe?Error("react-stack-top-frame"):R,pe?K(r(C)):I)},He.jsxs=function(C,j,O,H,Te){var pe=1e4>q.recentlyCreatedOwnerStacks++;return c(C,j,O,!0,H,Te,pe?Error("react-stack-top-frame"):R,pe?K(r(C)):I)}}()),He}var Vr;function po(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?wt.exports=co():wt.exports=uo()),wt.exports}var p=po();const Jt={apiBase:"https://dvfoid19j3afz.cloudfront.net/v1"},ho=[{type:"paypal",order:1,is_active:!0},{type:"apple-pay",order:2,is_active:!0},{type:"google-pay",order:3,is_active:!0},{type:"card",order:4,is_active:!0}];var Rr=(e=>(e.Card="CARD",e))(Rr||{});const fo=async e=>{const t=`${Jt.apiBase}/payments/create`,n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(t,{method:"POST",headers:n,body:JSON.stringify({card:e.card&&{...e.card,first_six_digits:e.card.firstSixDigits,last_four_digits:e.card.lastFourDigits,exp_month:e.card.expMonth,exp_year:e.card.expYear,card_brand:e.card.cardBrand},paypal:e.paypal,google_pay:e.googlePay&&{...e.googlePay,networkToken:{...e.googlePay.networkToken,token:{...e.googlePay.networkToken.token,token_service_provider:e.googlePay.networkToken.token.tokenServiceProvider}}},apple_pay:e.applePay&&{...e.applePay,billingContact:{address:e.applePay.billingContact.address,email_address:e.applePay.billingContact.emailAddress,family_name:e.applePay.billingContact.familyName,given_name:e.applePay.billingContact.givenName,phone_number:e.applePay.billingContact.phoneNumber},networkToken:{...e.applePay.networkToken,token_service_provider:e.applePay.networkToken.tokenServiceProvider}},client_session:e.clientSession})})).json()},mo=async e=>{const t=`${Jt.apiBase}/payments/create/billing/agreement`,n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(t,{method:"POST",headers:n,body:JSON.stringify({client_session:e})})).json()},go=async e=>{const t=`${Jt.apiBase}/payments/config?client_session_id=${e}`,r=await(await fetch(t)).json();return r.checkout_config||(r.checkout_config=ho),r},yo=({onCheckoutComplete:e,onCheckoutFail:t})=>{const[n,r]=f.useState(!1),[i,s]=f.useState(!1),[a,o]=f.useState(!1),l=f.useCallback(async d=>{try{s(!1),o(!1),r(!0);const{error:h}=await fo(d);if(!h)s(!0),e?.();else{const m=new Error(h||"Unknown error");o(!0),t?.(m)}}catch(h){console.error(h),o(!0),t?.(new Error("Unknown error"))}finally{r(!1)}},[e,t]),u=f.useCallback(d=>{o(!0),t?.(new Error(d))},[t]),c=f.useCallback(()=>{s(!1),o(!1)},[]);return{handleCheckout:l,handleCheckoutFail:u,handleCheckoutReset:c,isCheckoutFetching:n,isCheckoutSuccess:i,isCheckoutFail:a}},Qt=typeof navigator<"u",en={ar:{card:{title:"طريقة الدفع",number:{label:"رقم البطاقة",error:{required:"يتطلب",invalid:"رقم البطاقة غير صالح",incomplete:"رقم البطاقة غير كامل",unsupported:"نوع البطاقة غير المدعوم"}},expiry:{label:"تاريخ الانتهاء",placeholder:"سنة / شهر",error:{required:"يتطلب",invalid:"تاريخ انتهاء صلاحية البطاقة غير صالح",incomplete:"تاريخ انتهاء الصلاحية الخاص ببطاقتك غير كامل",expired:"تاريخ انتهاء صلاحية بطاقتك في الماضي"}},cvc:{label:"رمز الأمان",placeholder:"CVC",error:{required:"يتطلب",incomplete:"رمز الأمان الخاص ببطاقتك غير كامل",invalid:"رمز التحقق من البطاقة (CVC) الخاص ببطاقتك غير صالح"}},name:{label:"اسم حامل البطاقة",placeholder:"الاسم الكامل على البطاقة",error:{required:"يتطلب",invalid:"يرجى إدخال اسمك الكامل"}},pay:{button:"الراتب"},compact:{button:"البطاقة"}},status:{success:"تمت عملية الدفع الخاصة بك بنجاح!",error:"لم نتمكن من التحقق من طريقة الدفع الخاصة بك. يرجى اختيار طريقة دفع أخرى وإعادة المحاولة."}},en:{card:{title:"Payment method",number:{label:"Card number",error:{required:"REQUIRED",invalid:"Your card number is invalid",incomplete:"Your card number is incomplete",unsupported:"Unsupported card type"}},expiry:{label:"Expiry date",placeholder:"MM / YY",error:{required:"REQUIRED",invalid:"Your card’s expiry date is invalid",incomplete:"Your card’s expiry date is incomplete",expired:"Your card’s expiry {date} is in the past"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"REQUIRED",incomplete:"Your card’s security code is incomplete",invalid:"Your card’s CVC is invalid"}},name:{label:"Cardholder name",placeholder:"Full name on card",error:{required:"REQUIRED",invalid:"Please provide your full name"}},pay:{button:"Pay"},compact:{button:"Card"}},status:{success:"Your payment was successful!",error:"We are unable to authenticate your payment method. Please choose a different payment method and try again."}},bg:{card:{title:"Метод на плащане",number:{label:"Информация за картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Номерът на Вашата карта е неправилен",incomplete:"Номерът на Вашата карта е непълен",unsupported:"Неподдържан тип карта"}},expiry:{label:"Дата на валидност",placeholder:"ММ / ГГ",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Датата на валидност на вашата карта е непълна",invalid:"Датата на валидност на вашата карта е невалидна",expired:"Датата на валидност на вашата карта е в миналото"}},cvc:{label:"Код за сигурност",placeholder:"CVC",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Кодът за сигурност на вашата карта е непълен",invalid:"Кодът за сигурност на вашата карта е невалиден"}},name:{label:"Име на картодържателя",placeholder:"Пълно име върху картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Моля, въведете трите си имена"}},pay:{button:"Платете"},compact:{button:"Карта"}},status:{success:"Успех",error:"Не можем да удостоверим автентичността на вашия метод на плащане. Моля, изберете друг метод на плащане и опитайте отново."}},cs:{card:{title:"Způsob platby",number:{label:"Číslo karty",error:{required:"POVINNÝ ÚDAJ",invalid:"Číslo Vaší karty je neplatné",incomplete:"Číslo vaší karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Datum konce platnosti",placeholder:"MM / RR",error:{required:"POVINNÝ ÚDAJ",incomplete:"Datum konce platnosti vaší karty je neúplné",invalid:"Datum konce platnosti karty je neplatné",expired:"Platnost vaší karty vypršela"}},cvc:{label:"Bezpečnostní kód",placeholder:"CVC",error:{required:"POVINNÝ ÚDAJ",incomplete:"Bezpečnostní kód vaší karty je neúplný",invalid:"CVC vaší karty je neplatné"}},name:{label:"Jméno držitele karty",placeholder:"Celé jméno",error:{required:"POVINNÝ ÚDAJ",invalid:"Uvďte prosím celé své jméno"}},pay:{button:"Platit"},compact:{button:"Karta"}},status:{success:"Úspěch",error:"Váš způsob platby se nám nedaří ověřit. Zvolte prosím jiný způsob platby a zkuste to znovu."}},da:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKRÆVET",invalid:"Kortnummeret er ugyldigt",incomplete:"Kortnummeret er ufuldstændigt",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Udløbsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKRÆVET",incomplete:"Kortets udløbsdato er ikke komplet",invalid:"Dit korts udløbsdato er ugyldig",expired:"Dit kort er udløbet"}},cvc:{label:"Sikkerhedskode",placeholder:"CVC",error:{required:"PÅKRÆVET",incomplete:"Dit korts sikkerhedskode er ikke komplet",invalid:"Dit korts CVC er ugyldigt"}},name:{label:"Kortholderens navn",placeholder:"Fulde navn",error:{required:"PÅKRÆVET",invalid:"Angiv dit fulde navn"}},pay:{button:"Betal"},compact:{button:"Kredit- eller betalingskort"}},status:{success:"Succes",error:"Vi kan ikke godkende din betalingsmetode. Vælg venligst en anden betalingsmetode og prøv igen."}},de:{card:{title:"Zahlungsmethode",number:{label:"Kartennummer",error:{required:"Pflichtfeld",invalid:"Ihre Kartennummer ist ungültig",incomplete:"Ihre Kartennummer ist unvollständig",unsupported:"Nicht unterstützter Kartentyp"}},expiry:{label:"Ablaufdatum",placeholder:"MM / JJ",error:{required:"Pflichtfeld",incomplete:"Das Ablaufdatum Ihrer Karte ist unvollständig",invalid:"Das Ablaufdatum Ihrer Karte ist ungültig",expired:"Ihre Karte ist ungültig"}},cvc:{label:"Sicherheitscode",placeholder:"CVC",error:{required:"Pflichtfeld",incomplete:"Der Sicherheitscode Ihrer Karte ist unvollständig",invalid:"Die Prüfziffer/CVC Ihrer Karte ist ungültig"}},name:{label:"Name des/der Karteninhaber/in",placeholder:"Vollständiger Name",error:{required:"Pflichtfeld",invalid:"Bitte geben Sie Ihren vollständigen Namen ein"}},pay:{button:"Bezahlen"},compact:{button:"Kredit- oder Debitkarte"}},status:{success:"Erfolg",error:"Wir können Ihre Zahlungsmethode nicht authentifizieren. Bitte wählen Sie eine andere Zahlungsmethode und versuchen Sie es erneut."}},el:{card:{title:"Μέθοδος πληρωμής",number:{label:"Αριθμός κάρτας",error:{required:"Απαιτούμενο",invalid:"Ο αριθμός της κάρτας σας δεν είναι έγκυρος",incomplete:"Ο αριθμός της κάρτας σας είναι ελλιπής",unsupported:"Δεν υποστηρίζεται ο τύπος της κάρτας"}},expiry:{label:"Ημερομηνία λήξης",placeholder:"ΜΜ / ΕΕ",error:{required:"Απαιτούμενο",incomplete:"Η ημερομηνία λήξης της κάρτας σας είναι ελλιπής",invalid:"Η ημερομηνία λήξης της κάρτας σας δεν είναι έγκυρη",expired:"Η κάρτα σας έχει λήξει"}},cvc:{label:"Κωδικός ασφαλείας",placeholder:"CVC",error:{required:"Απαιτούμενο",incomplete:"Ο κωδικός ασφαλείας της κάρτας σας είναι ελλιπής",invalid:"Το CVC της κάρτας σας δεν είναι έγκυρο"}},name:{label:"Όνομα κατόχου κάρτας",placeholder:"Πλήρες όνομα στην κάρτα",error:{required:"Απαιτούμενο",invalid:"Συμπληρώστε το ονοματεπώνυμό σας"}},pay:{button:"Πληρωμή"},compact:{button:"Kάρτα"}},status:{success:"Επιτυχία",error:"Δεν μπορούμε να πιστοποιήσουμε τη μέθοδο πληρωμής σας. Παρακαλούμε επιλέξτε μια διαφορετική μέθοδο πληρωμής και προσπαθήστε ξανά."}},es:{card:{title:"Método de pago",number:{label:"Número de tarjeta",error:{required:"OBLIGATORIO",invalid:"El número de tu tarjeta no es válido",incomplete:"El número de tu tarjeta está incompleto",unsupported:"Tipo de tarjeta no soportado"}},expiry:{label:"Fecha de caducidad",placeholder:"MM / AA",error:{required:"OBLIGATORIO",incomplete:"La fecha de caducidad de la tarjeta está incompleta",invalid:"La fecha de caducidad de la tarjeta no es válida",expired:"La tarjeta ha caducado"}},cvc:{label:"Código de seguridad",placeholder:"CVC",error:{required:"OBLIGATORIO",incomplete:"El código de seguridad de la tarjeta está incompleto",invalid:"El CVC de tu tarjeta no es válido"}},name:{label:"Nombre del titular de la tarjeta",placeholder:"Nombre completo",error:{required:"OBLIGATORIO",invalid:"Proporciona tu nombre completo"}},pay:{button:"Pagar"},compact:{button:"Tarjeta"}},status:{success:"Éxito",error:"No podemos autenticar su método de pago. Elija otro método de pago e inténtelo de nuevo."}},et:{card:{title:"Makseviis",number:{label:"Kaardi number",error:{required:"NÕUTAV",invalid:"Teie kaardinumber ei sobi",incomplete:"Teie kaardinumber on puudulik",unsupported:"Toetamata kaardi tüüp"}},expiry:{label:"Aegumiskuupäev",placeholder:"KK / AA",error:{required:"NÕUTAV",incomplete:"Teie kaardi aegumiskuupäev on puudulik",invalid:"Teie kaardi aegumiskuupäev on kehtetu",expired:"Teie kaart on aegunud"}},cvc:{label:"Turvakood",placeholder:"CVC",error:{required:"NÕUTAV",incomplete:"Teie kaardi turvakood on puudulik",invalid:"Teie kaardi CVC on kehtetu"}},name:{label:"Kaardiomaniku nimi",placeholder:"Täisnimi",error:{required:"NÕUTAV",invalid:"Esitage oma täisnimi"}},pay:{button:"Maksa"},compact:{button:"Krediit- või deebetkaart"}},status:{success:"Edu",error:"Me ei suuda teie makseviisi autentida. Palun valige teine makseviis ja proovige uuesti."}},fi:{card:{title:"Maksutapa",number:{label:"Kortin numero",error:{required:"PAKOLLINEN",invalid:"Kortin numero ei kelpaa",incomplete:"Kortin numero on puutteellinen",unsupported:"Ei tuettu korttityyppi"}},expiry:{label:"Erääntymispäivä",placeholder:"KK / VV",error:{required:"PAKOLLINEN",incomplete:"Kortin voimassaoloaika on puutteellinen",invalid:"Kortin voimassaoloaika on virheellinen",expired:"Korttisi on vanhentunut"}},cvc:{label:"Turvakoodi",placeholder:"CVC-koodi",error:{required:"PAKOLLINEN",incomplete:"Kortin turvakoodi on puutteellinen",invalid:"Kortin CVC ei kelpaa"}},name:{label:"Kortinhaltijan nimi",placeholder:"Koko nimi",error:{required:"PAKOLLINEN",invalid:"Anna koko nimesi"}},pay:{button:"Maksa"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Menestys",error:"Emme pysty todentamaan maksutapaasi. Valitse toinen maksutapa ja yritä uudelleen."}},fil:{card:{title:"Paraan ng pagbabayad",number:{label:"Numero ng card",error:{required:"KAILANGAN",invalid:"Hindi valid ang numero ng kard mo",incomplete:"Ang numero ng iyong kard ay kulang",unsupported:"Hindi sinusuportahang uri ng card"}},expiry:{label:"Petsa ng pagkapaso",placeholder:"BB / TT",error:{required:"KAILANGAN",incomplete:"Ang petsa ng pagkapaso ng iyong kard ay kulang",invalid:"Hindi valid ang petsa ng pagkapaso ng iyong kard",expired:"Napaso na ang iyong kard"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"KAILANGAN",incomplete:"Ang security code ng iyong kard ay kulang",invalid:"Hindi valid ang CVC ng iyong kard"}},name:{label:"Pangalan ng may-ari ng kard",placeholder:"Buong pangalan",error:{required:"KAILANGAN",invalid:"Pakibigay ang iyong buong pangalan"}},pay:{button:"Magbayad"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Tagumpay",error:"Hindi namin ma-authenticate ang iyong paraan ng pagbabayad. Mangyaring pumili ng ibang paraan ng pagbabayad at subukang muli."}},fr:{card:{title:"Moyen de paiement",number:{label:"Numéro de la carte",error:{required:"OBLIGATOIRE",invalid:"Votre numéro de carte n'est pas valide",incomplete:"Votre numéro de carte est incomplet",unsupported:"Type de carte non supporté"}},expiry:{label:"Date d'expiration",placeholder:"MM / AA",error:{required:"OBLIGATOIRE",incomplete:"La date d'expiration de votre carte est incomplète",invalid:"La date d'expiration de votre carte n'est pas valide",expired:"Votre carte a expiré"}},cvc:{label:"Code de sécurité",placeholder:"CVC",error:{required:"OBLIGATOIRE",incomplete:"Le code de sécurité de votre carte est incomplet",invalid:"Le code CVC de votre carte n'est pas valide"}},name:{label:"Nom du titulaire de la carte",placeholder:"Nom complet",error:{required:"OBLIGATOIRE",invalid:"Veuillez indiquer votre nom complet"}},pay:{button:"Payer"},compact:{button:"Carte"}},status:{success:"Succès",error:"Nous ne sommes pas en mesure d'authentifier votre méthode de paiement. Veuillez choisir un autre mode de paiement et réessayer."}},hr:{card:{title:"Način plaćanja",number:{label:"Broj kartice",error:{required:"POTREBNO",invalid:"Broj vaše kartice nije valjan",incomplete:"Broj vaše kartice nije potpun",unsupported:"Nepodržana vrsta kartice"}},expiry:{label:"Datum isteka",placeholder:"MM / GG",error:{required:"POTREBNO",incomplete:"Datum isteka vaše kartice je nepotpun",invalid:"Datum isteka vaše kartice nije valjan",expired:"Kartica je istekla"}},cvc:{label:"Sigurnosni kod",placeholder:"CVC",error:{required:"POTREBNO",incomplete:"Sigurnosni kôd vaše kartice je nepotpun",invalid:"Kontrolni broj (CVC) vaše kartice nije valjan"}},name:{label:"Ime vlasnika kartice",placeholder:"Puno ime",error:{required:"POTREBNO",invalid:"Unesite svoje puno ime"}},pay:{button:"Plati"},compact:{button:"Kartica"}},status:{success:"Uspjeh",error:"Ne možemo provjeriti autentičnost vašeg načina plaćanja. Odaberite drugi način plaćanja i pokušajte ponovno."}},hu:{card:{title:"Fizetési mód",number:{label:"Kártya száma",error:{required:"KÖTELEZŐ",invalid:"A kártyaszáma érvénytelen",incomplete:"A kártyaszáma hiányos",unsupported:"Nem támogatott kártya típusa"}},expiry:{label:"Lejárat dátuma",placeholder:"HH / ÉÉ",error:{required:"KÖTELEZŐ",incomplete:"A kártyája lejárati dátuma hiányos",invalid:"A kártyája lejárati dátuma érvénytelen",expired:"A kártyája lejárt"}},cvc:{label:"Biztonsági kód",placeholder:"CVC",error:{required:"KÖTELEZŐ",incomplete:"A kártyája biztonsági kódja hiányos",invalid:"A kártya CVC-kódja érvénytelen"}},name:{label:"Kártyabirtokos neve",placeholder:"Teljes név",error:{required:"KÖTELEZŐ",invalid:"Adja meg a teljes nevét"}},pay:{button:"Fizetés"},compact:{button:"Hitel- vagy bankkártya"}},status:{success:"Siker",error:"Nem tudjuk hitelesíteni a fizetési módját. Kérjük, válasszon másik fizetési módot, és próbálja meg újra."}},id:{card:{title:"Metode pembayaran",number:{label:"Nomor kartu",error:{required:"WAJIB DIISI",invalid:"Nomor kartu Anda tidak valid",incomplete:"Nomor kartu Anda tidak lengkap",unsupported:"Tipe kartu tidak didukung"}},expiry:{label:"Tanggal kedaluwarsa",placeholder:"BB / TT",error:{required:"WAJIB DIISI",incomplete:"Tanggal kedaluwarsa kartu Anda tidak lengkap",invalid:"Tanggal kedaluwarsa kartu Anda tidak valid",expired:"Kartu Anda telah kedaluwarsa"}},cvc:{label:"Kode keamanan",placeholder:"CVC",error:{required:"WAJIB DIISI",incomplete:"Kode keamanan kartu Anda tidak lengkap",invalid:"CVC kartu Anda tidak valid"}},name:{label:"Nama pemegang kartu",placeholder:"Nama lengkap",error:{required:"WAJIB DIISI",invalid:"Berikan nama lengkap Anda"}},pay:{button:"Bayar"},compact:{button:"Kartu"}},status:{success:"Sukses",error:"Kami tidak dapat mengautentikasi metode pembayaran Anda. Silakan pilih metode pembayaran lain dan coba lagi."}},it:{card:{title:"Modalità di pagamento",number:{label:"Numero di carta",error:{required:"OBBLIGATORIO",invalid:"Il numero della carta non è valido",incomplete:"Il numero della carta è incompleto",unsupported:"Tipo di carta non supportato"}},expiry:{label:"Data di scadenza",placeholder:"MM / AA",error:{required:"OBBLIGATORIO",incomplete:"La data di scadenza della carta non è completa",invalid:"La data di scadenza della carta non è valida",expired:"La tua carta è scaduta"}},cvc:{label:"Codice di sicurezza",placeholder:"CVC",error:{required:"OBBLIGATORIO",incomplete:"Il codice di sicurezza della carta non è completo",invalid:"Il CVC della carta non è valido"}},name:{label:"Nome del titolare della carta",placeholder:"Nome e cognome",error:{required:"OBBLIGATORIO",invalid:"Inserisci il tuo nome completo"}},pay:{button:"Paga"},compact:{button:"Carta"}},status:{success:"Il successo",error:"Non siamo in grado di autenticare il suo metodo di pagamento. Scegliere un altro metodo di pagamento e riprovare."}},ja:{card:{title:"支払い方法",number:{label:"カード番号",error:{required:"必須",invalid:"カード番号が無効です",incomplete:"カード番号に不備があります",unsupported:"サポートされていないカードタイプ"}},expiry:{label:"有効期限",placeholder:"MM (月) / YY (年)",error:{required:"必須",incomplete:"カードの有効期限に不備があります",invalid:"カードの有効期間の満了月が無効です",expired:"カードの有効期限が切れています"}},cvc:{label:"セキュリティコード",placeholder:"セキュリティコード",error:{required:"必須",incomplete:"カードのセキュリティコードに不備があります",invalid:"カードのセキュリティコードが無効です"}},name:{label:"カード保有者の名前",placeholder:"氏名",error:{required:"必須",invalid:"氏名を入力してください"}},pay:{button:"支払う"},compact:{button:"カード"}},status:{success:"成功",error:"お客様のお支払い方法を認証できません。別のお支払い方法を選択し、再度お試しください。"}},ko:{card:{title:"결제 방식",number:{label:"카드 번호",error:{required:"필수",invalid:"카드 번호가 잘못되었습니다",incomplete:"카드 번호가 불완전합니다",unsupported:"지원되지 않는 카드 유형"}},expiry:{label:"만료 날짜",placeholder:"MM / YY",error:{required:"필수",incomplete:"카드의 유효기간 만료일이 불완전합니다",invalid:"카드의 유효기간 만료일이 잘못되었습니다",expired:"카드가 만료되었습니다"}},cvc:{label:"보안 코드",placeholder:"보안 코드(CVC)",error:{required:"필수",incomplete:"카드의 보안 코드가 불완전합니다",invalid:"카드의 보안 코드(CVC)가 잘못되었습니다"}},name:{label:"카드 소유자 이름",placeholder:"성명",error:{required:"필수",invalid:"성명을 입력하십시오"}},pay:{button:"결제"},compact:{button:"카드 번호"}},status:{success:"성공",error:"결제 방법을 인증할 수 없습니다. 다른 결제 방법을 선택하고 다시 시도해 주세요."}},lt:{card:{title:"Mokėjimo būdas",number:{label:"Kortelės numeris",error:{required:"PRIVALOMA",invalid:"Negaliojantis kortelės numeris",incomplete:"Neišsamus kortelės numeris",unsupported:"Nepalaikomas kortelės tipas"}},expiry:{label:"Galiojimo pabaigos data",placeholder:"mm / MM",error:{required:"PRIVALOMA",incomplete:"Neišsami jūsų kortelės galiojimo pabaigos data",invalid:"Netinkama jūsų kortelės galiojimo pabaigos data",expired:"Kortelė baigė galioti"}},cvc:{label:"Saugos kodas",placeholder:"CVC",error:{required:"PRIVALOMA",incomplete:"Neišsamus jūsų kortelės saugos kodas",invalid:"Jūsų kortelės CVC negalioja"}},name:{label:"Kortelės turėtojo vardas ir pavardė",placeholder:"Vardas ir pavardė",error:{required:"PRIVALOMA",invalid:"Įveskite ir vardą ir pavardę"}},pay:{button:"Mokėti"},compact:{button:"Kortelė"}},status:{success:"Sėkmė",error:"Negalime patvirtinti jūsų mokėjimo būdo. Pasirinkite kitą mokėjimo būdą ir bandykite dar kartą."}},lv:{card:{title:"Maksājumu veids",number:{label:"Kartes numurs",error:{required:"OBLIGĀTI",invalid:"Kartes numurs nav derīgs",incomplete:"Kartes numurs nav pilnīgs",unsupported:"Nepareizs kartes tips"}},expiry:{label:"Derīguma termiņš",placeholder:"MM / YY",error:{required:"OBLIGĀTI",incomplete:"Kartes derīguma termiņa datums nav pilnīgs",invalid:"Kartes derīguma termiņa beigu datums nav derīgs",expired:"Kartes derīgums ir beidzies"}},cvc:{label:"Drošības kods",placeholder:"CVC",error:{required:"OBLIGĀTI",incomplete:"Kartes drošības kods nav pilnīgs",invalid:"Kartes CVC nav derīgs"}},name:{label:"Kartes īpašnieka vārds",placeholder:"Vārds, uzvārds",error:{required:"OBLIGĀTI",invalid:"Norādiet savu vārdu un uzvārdu"}},pay:{button:"Maksāt"},compact:{button:"Karte"}},status:{success:"Panākumi",error:"Mēs nevaram pārbaudīt jūsu maksājuma metodes autentiskumu. Lūdzu, izvēlieties citu maksājumu metodi un mēģiniet vēlreiz."}},ms:{card:{title:"Kaedah pembayaran",number:{label:"Nombor kad",error:{required:"DIPERLUKAN",invalid:"Nombor kad anda tidak sah",incomplete:"Nombor kad anda tidak lengkap",unsupported:"Tipe kad tidak sah"}},expiry:{label:"Tarikh tamat tempoh",placeholder:"BB / TT",error:{required:"DIPERLUKAN",incomplete:"Tarikh tamat tempoh kad anda tidak lengkap",invalid:"Tarikh tamat tempoh kad anda tidak sah",expired:"Kad anda telah tamat tempoh"}},cvc:{label:"Kod keselamatan",placeholder:"CVC",error:{required:"DIPERLUKAN",incomplete:"Kod keselamatan kad anda tidak lengkap",invalid:"CVC kad anda tidak sah"}},name:{label:"Nama pemegang kad",placeholder:"Nama penuh",error:{required:"DIPERLUKAN",invalid:"Sila berikan nama penuh anda"}},pay:{button:"Bayar"},compact:{button:"Kad"}},status:{success:"Kejayaan",error:"Kami tidak dapat mengesahkan kaedah pembayaran anda. Sila pilih kaedah pembayaran lain dan cuba lagi."}},ru:{card:{title:"Метод оплаты",number:{label:"Номер карты",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Недопустимый номер карты",incomplete:"Номер карты неполон",unsupported:"Неподдерживаемый тип карты"}},expiry:{label:"Срок действия",placeholder:"ММ / ГГ",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Срок действия карты указан не полностью",invalid:"Указанный срок действия карты недействителен",expired:"Срок действия карты истек"}},cvc:{label:"Код безопасности",placeholder:"CVC",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Код безопасности карты введен не полностью",invalid:"Код CVC карты недействителен"}},name:{label:"Имя владельца карты",placeholder:"Имя, фамилия",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Введите свое имя и фамилию"}},pay:{button:"Оплатить"},compact:{button:"Кредитная карта"}},status:{success:"Успех",error:"Мы не можем проверить подлинность вашего способа оплаты. Пожалуйста, выберите другой способ оплаты и повторите попытку."}},mt:{card:{title:"Metodu tal-ħlas",number:{label:"Numru tal-karta",error:{required:"MEĦTIEĠ/A",invalid:"In-numru tal-karta tiegħek mhuwiex tajjeb",incomplete:"In-numru tal-karta tiegħek mhuwiex komplut",unsupported:"Tip ta' karta mhux appoġġjat"}},expiry:{label:"Data tal-iskadenza",placeholder:"XX / SS",error:{required:"MEĦTIEĠ/A",incomplete:"Id-data tal-iskadenza tal-karta tiegħek mhix sħiħa",invalid:"Id-data tal-iskadenza tal-karta tiegħek mhix tajba",expired:"Il-karta tiegħek skadiet"}},cvc:{label:"Kodiċi tas-sigurtà",placeholder:"CVC",error:{required:"MEĦTIEĠ/A",incomplete:"Il-kodiċi tas-sigurtà tal-karta tiegħek mhux sħiħ",invalid:"Is-CVC tal-karta tiegħek mhux tajjeb"}},name:{label:"Isem id-detentur tal-karta",placeholder:"Isem u kunjom",error:{required:"MEĦTIEĠ/A",invalid:"Jekk jogħġbok ipprovdi isemek kollu"}},pay:{button:"Ħallas"},compact:{button:"Karta"}},status:{success:"Suċċess",error:"Aħna ma nistgħux jawtentikaw il-metodu tal-ħlas tiegħek. Jekk jogħġbok agħżel metodu ta' ħlas differenti u erġa' pprova."}},nb:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKREVET",invalid:"Kortnummer er ugyldig",incomplete:"Kortnummeret er ufullstendig",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Utløpsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKREVET",incomplete:"Kortets utløpsdato er ufullstendig",invalid:"Kortets utløpsdato er ugyldig",expired:"Kortet er utløpt"}},cvc:{label:"Sikkerhetskode",placeholder:"CVC",error:{required:"PÅKREVET",incomplete:"Kortets sikkerhetskode er ufullstendig",invalid:"Kortets CVC-nummer er ugyldig"}},name:{label:"Kortinnehavers navn",placeholder:"Fullt navn",error:{required:"PÅKREVET",invalid:"Oppgi fullt navn"}},pay:{button:"Betal"},compact:{button:"Kort"}},status:{success:"Suksess",error:"Vi kan ikke godkjenne betalingsmåten din. Vennligst velg en annen betalingsmetode og prøv på nytt."}},nl:{card:{title:"Betaalmethode",number:{label:"Kaartnummer",error:{required:"VEREIST",invalid:"Je kaartnummer is ongeldig",incomplete:"Je kaartnummer is onvolledig",unsupported:"Niet ondersteund"}},expiry:{label:"Vervaldatum",placeholder:"MM / JJ",error:{required:"VEREIST",incomplete:"De vervaldatum van je kaart is onvolledig",invalid:"De vervaldatum van je betaalkaart is ongeldig",expired:"Je kaart is vervallen"}},cvc:{label:"Beveiligingscode",placeholder:"CVC",error:{required:"VEREIST",incomplete:"De beveiligingscode van je betaalkaart is onvolledig",invalid:"De CVC-code van je betaalkaart is ongeldig"}},name:{label:"Naam kaarthouder",placeholder:"Volledige naam",error:{required:"VEREIST",invalid:"Geef je volledige naam op"}},pay:{button:"Betalen"},compact:{button:"Kaart"}},status:{success:"Succes",error:"We kunnen je betaalmethode niet verifiëren. Kies een andere betaalmethode en probeer het opnieuw."}},pl:{card:{title:"Metoda płatności",number:{label:"Numer karty",error:{required:"WYMAGANE",invalid:"Numer karty jest nieprawidłowy",incomplete:"Numer karty jest niepełny",unsupported:"Nieobsługiwany typ karty"}},expiry:{label:"Data ważności",placeholder:"MM / RR",error:{required:"WYMAGANE",incomplete:"Data ważności karty jest niepełna",invalid:"Termin ważności karty jest nieprawidłowy",expired:"Karta straciła ważność"}},cvc:{label:"Kod bezpieczeństwa",placeholder:"Kod CVC",error:{required:"WYMAGANE",incomplete:"Kod zabezpieczający karty jest niekompletny",invalid:"CVC karty jest nieprawidłowy"}},name:{label:"Imię i nazwisko posiadacza karty",placeholder:"Imię i nazwisko",error:{required:"WYMAGANE",invalid:"Podaj pełne imię i nazwisko"}},pay:{button:"Zapłać"},compact:{button:"Karta"}},status:{success:"Sukces",error:"Nie możemy uwierzytelnić metody płatności. Wybierz inną metodę płatności i spróbuj ponownie."}},pt:{card:{title:"Forma de pagamento",number:{label:"Número do cartão",error:{required:"OBRIGATÓRIO",invalid:"O número do seu cartão é inválido",incomplete:"O número do seu cartão está incompleto",unsupported:"Tipo de cartão não suportado"}},expiry:{label:"Data de validade",placeholder:"MM / AA",error:{required:"OBRIGATÓRIO",incomplete:"A data de validade do cartão está incompleta",invalid:"A data de validade do seu cartão é inválida",expired:"O seu cartão expirou"}},cvc:{label:"Código de segurança",placeholder:"CVC",error:{required:"OBRIGATÓRIO",incomplete:"O código de segurança de seu cartão está incompleto",invalid:"O CVC do seu cartão é inválido"}},name:{label:"Nome do titular do cartão",placeholder:"Nome completo",error:{required:"OBRIGATÓRIO",invalid:"Forneça o seu nome completo"}},pay:{button:"Pagar"},compact:{button:"Cartão"}},status:{success:"Sucesso",error:"Não foi possível autenticar o seu método de pagamento. Selecione outro método de pagamento e tente novamente."}},ro:{card:{title:"Metoda de plată",number:{label:"Numărul cardului",error:{required:"NECESAR",invalid:"Numărul cardului dvs. nu este valid",incomplete:"Numărul cardului dvs. nu este complet",unsupported:"Tipul cardului nu este acceptat"}},expiry:{label:"Data de expirare",placeholder:"LL / AA",error:{required:"NECESAR",incomplete:"Data de expirare a cardului dvs. este incompletă",invalid:"Data de expirare a cardului dvs. nu este validă",expired:"Cardul dvs. a expirat"}},cvc:{label:"Codul de securitate",placeholder:"CVC",error:{required:"NECESAR",incomplete:"Codul de securitate al cardului dvs. este incomplet",invalid:"Numărul CVC al cardului dvs. nu este valid"}},name:{label:"Nume titular card",placeholder:"Nume complet",error:{required:"NECESAR",invalid:"Vă rugăm să furnizați numele dvs. complet"}},pay:{button:"Plătiți"},compact:{button:"Card"}},status:{success:"Succes",error:"Nu putem să vă autentificăm metoda de plată. Vă rugăm să alegeți o altă metodă de plată și să încercați din nou."}},sk:{card:{title:"Spôsob platby",number:{label:"Číslo karty",error:{required:"POŽADOVANÉ",invalid:"Číslo vašej karty je neplatné",incomplete:"Číslo vašej karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Dátum ukončenia platnosti",placeholder:"MM / RR",error:{required:"POŽADOVANÉ",incomplete:"Dátum vypršania platnosti vašej karty je neúplný",invalid:"Dátum vypršania platnosti vašej karty je neplatný",expired:"Platnosť vašej karty vypršala"}},cvc:{label:"Bezpečnostný kód",placeholder:"CVC",error:{required:"POŽADOVANÉ",incomplete:"Bezpečnostný kód vašej karty je neúplný",invalid:"Číslo CVC vašej karty je neplatné"}},name:{label:"Držiteľ karty",placeholder:"Celé meno",error:{required:"POŽADOVANÉ",invalid:"Zadajte vaše celé meno"}},pay:{button:"Zaplatiť"},compact:{button:"Karta"}},status:{success:"Úspech",error:"Nemôžeme overiť váš spôsob platby. Vyberte si iný spôsob platby a skúste to znova."}},sl:{card:{title:"Način plačila",number:{label:"Številka kartice",error:{required:"OBVEZNO",invalid:"Številka vaše kartice ni veljavna",incomplete:"Številka vaše kartice ni popolna",unsupported:"Nepodprta vrsta kartice"}},expiry:{label:"Datum poteka",placeholder:"MM / LL",error:{required:"OBVEZNO",incomplete:"Datum poteka vaše kartice ni popoln",invalid:"Datum poteka vaše kartice ni veljaven",expired:"Vaša kartica je potekla"}},cvc:{label:"Varnostna koda",placeholder:"CVC",error:{required:"OBVEZNO",incomplete:"Varnostna koda vaše kartice ni popolna",invalid:"Koda CVC vaše kartice ni veljavna"}},name:{label:"Ime imetnika kartice",placeholder:"Polno ime",error:{required:"OBVEZNO",invalid:"Vnesite svoje polno ime"}},pay:{button:"Plačaj"},compact:{button:"Kartica"}},status:{success:"Uspeh",error:"Vašega načina plačila ne moremo preveriti. Izberite drug način plačila in poskusite znova."}},sv:{card:{title:"Betalningsmetod",number:{label:"Kortnummer",error:{required:"OBLIGATORISKT",invalid:"Ditt kortnummer är ogiltigt",incomplete:"Kortnumret är ofullständigt",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Sista giltighetsdag",placeholder:"MM / ÅÅ",error:{required:"OBLIGATORISKT",incomplete:"Kortets utgångsdatum är ofullständigt",invalid:"Kortets utgångsdatum är ogiltigt",expired:"Ditt kort har gått ut"}},cvc:{label:"Säkerhetskod",placeholder:"CVC",error:{required:"OBLIGATORISKT",incomplete:"Kortets säkerhetskod är ofullständig",invalid:"Kortets CVC-kod är ogiltig"}},name:{label:"Kortinnehavarens namn",placeholder:"Fullständigt namn",error:{required:"OBLIGATORISKT",invalid:"Ange ditt fullständiga namn"}},pay:{button:"Betala"},compact:{button:"Kort"}},status:{success:"Framgång",error:"Vi kan inte verifiera din betalningsmetod. Vänligen välj en annan betalningsmetod och försök igen."}},th:{card:{title:"วิธีการชำระเงิน",number:{label:"หมายเลขบัตร",error:{required:"ต้องป้อนข้อมูล",invalid:"หมายเลขบัตรของคุณไม่ถูกต้อง",incomplete:"หมายเลขบัตรของคุณไม่ครบถ้วน",unsupported:"ประเภทบัตรของคุณไม่ถูกต้อง"}},expiry:{label:"วันหมดอายุ",placeholder:"ดด / ปป",error:{required:"ต้องป้อนข้อมูล",incomplete:"วันที่หมดอายุของบัตรไม่ครบถ้วน",invalid:"วันที่หมดอายุของบัตรไม่ถูกต้อง",expired:"บัตรของคุณหมดอายุแล้ว"}},cvc:{label:"รหัสความปลอดภัย",placeholder:"CVC",error:{required:"ต้องป้อนข้อมูล",incomplete:"รหัสความปลอดภัยของบัตรไม่ครบถ้วน",invalid:"CVC ของบัตรไม่ถูกต้อง"}},name:{label:"ชื่อเจ้าของบัตร",placeholder:"ชื่อ-นามสกุล",error:{required:"ต้องป้อนข้อมูล",invalid:"โปรดป้อนชื่อ-นามสกุล"}},pay:{button:"ชำระเงิน"},compact:{button:"การ์ด"}},status:{success:"ความสำเร็จ",error:"เราไม่สามารถตรวจสอบวิธีการชำระเงินของคุณได้ โปรดเลือกวิธีการชำระเงินอื่นแล้วลองอีกครั้ง"}},tr:{card:{title:"Ödeme yöntemi",number:{label:"Kart numarası",error:{required:"GEREKLI",invalid:"Kart numaranız geçersiz",incomplete:"Kart numaranız eksik",unsupported:"Desteklenmeyen kart türü"}},expiry:{label:"Son Kullanma Tarihi",placeholder:"AA / YY",error:{required:"GEREKLI",incomplete:"Kartınızın son kullanma tarihi eksik",invalid:"Kartınızın son kullanım tarihi geçersiz",expired:"Kartınızın süresi dolmuş"}},cvc:{label:"Güvenlik kodu",placeholder:"CVC",error:{required:"GEREKLI",incomplete:"Kartınızın güvenlik kodu eksik",invalid:"Kartınızın CVC'si geçersiz"}},name:{label:"Kart sahibinin adı",placeholder:"Ad ve soyadı",error:{required:"GEREKLI",invalid:"Lütfen tam adınızı girin"}},pay:{button:"Öde"},compact:{button:"Kart"}},status:{success:"Başarı",error:"Ödeme yönteminizi doğrulayamıyoruz. Lütfen farklı bir ödeme yöntemi seçin ve tekrar deneyin."}},vi:{card:{title:"Phương thức thanh toán",number:{label:"Số thẻ",error:{required:"BẮT BUỘC",invalid:"Số thẻ của quý vị không hợp lệ",incomplete:"Số thẻ của quý vị không đầy đủ",unsupported:"Không hỗ trợ loại thẻ"}},expiry:{label:"Ngày hết hạn",placeholder:"MM / YY",error:{required:"BẮT BUỘC",incomplete:"Ngày hết hạn trên thẻ không hợp lệ",invalid:"Ngày hết hạn của thẻ không hợp lệ",expired:"Thẻ của quý vị đã hết hạn"}},cvc:{label:"Mã bảo mật",placeholder:"CVC",error:{required:"BẮT BUỘC",incomplete:"Mã bảo mật của thẻ không đầy đủ",invalid:"CVC thẻ của bạn không hợp lệ"}},name:{label:"Tên chủ thẻ",placeholder:"Họ và tên",error:{required:"BẮT BUỘC",invalid:"Vui lòng cung cấp tên đầy đủ của bạn"}},pay:{button:"Thanh toán"},compact:{button:"Thẻ"}},status:{success:"Thành công",error:"Chúng tôi không thể xác thực phương thức thanh toán của bạn. Vui lòng chọn phương thức thanh toán khác và thử lại."}},zh:{card:{title:"支付方式",number:{label:"卡号",error:{required:"必填",invalid:"您的卡号无效",incomplete:"您的银行卡卡号不完整",unsupported:"不支持的卡类型"}},expiry:{label:"有效期",placeholder:"月份 / 年份",error:{required:"必填",incomplete:"您银行卡的有效期不完整",invalid:"您银行卡的有效期无效",expired:"您的银行卡已过期"}},cvc:{label:"安全代码",placeholder:"CVC",error:{required:"必填",incomplete:"您银行卡的安全码不完整",invalid:"您银行卡的 CVC 无效"}},name:{label:"持卡人姓名",placeholder:"全名",error:{required:"必填",invalid:"请提供您的全名"}},pay:{button:"支付"},compact:{button:"卡片"}},status:{success:"成功",error:"我们无法验证您的付款方式。请选择其他付款方式并重试。"}}},tn=()=>{const e=Qt?navigator?.language.split("-")[0]:"";return en[e]||en.en},vo=e=>e&&en[e]||tn(),bo={messages:tn(),locale:Qt?navigator?.language.split("-")[0]:"en"},kt=f.createContext(bo),Me=()=>{const{messages:e}=f.useContext(kt);return e},xo=()=>{const{locale:e}=f.useContext(kt);return e},Co=()=>{const{locale:e}=f.useContext(kt);return e==="ar"?"rtl":"ltr"},wo=({children:e,translate:t,locale:n="en"})=>{const r=vo(n),i={card:{title:t?.card?.title||r.card.title,number:{label:t?.card?.number?.label||r.card.number.label,error:{required:t?.card?.number?.error?.required||r.card.number.error.required,invalid:t?.card?.number?.error?.invalid||r.card.number.error.invalid,incomplete:t?.card?.number?.error?.incomplete||r.card.number.error.incomplete,unsupported:t?.card?.number?.error?.unsupported||r.card.number.error.unsupported}},expiry:{label:t?.card?.expiry?.label||r.card.expiry.label,placeholder:t?.card?.expiry?.placeholder||r.card.expiry.placeholder,error:{required:t?.card?.expiry?.error?.required||r.card.expiry.error.required,invalid:t?.card?.expiry?.error?.invalid||r.card.expiry.error.invalid,incomplete:t?.card?.expiry?.error?.incomplete||r.card.expiry.error.incomplete,expired:t?.card?.expiry?.error?.expired||r.card.expiry.error.expired}},cvc:{label:t?.card?.cvc?.label||r.card.cvc.label,placeholder:t?.card?.cvc?.placeholder||r.card.cvc.placeholder,error:{required:t?.card?.cvc?.error?.required||r.card.cvc.error.required,incomplete:t?.card?.cvc?.error?.incomplete||r.card.cvc.error.incomplete,invalid:t?.card?.cvc?.error?.invalid||r.card.cvc.error.invalid}},name:{label:t?.card?.name?.label||r.card.name.label,placeholder:t?.card?.name?.placeholder||r.card.name.placeholder,error:{required:t?.card?.name?.error?.required||r.card.name.error.required,invalid:t?.card?.name?.error?.invalid||r.card.name.error.invalid}},pay:{button:t?.card?.pay?.button||r.card.pay.button},compact:{button:t?.card?.compact?.button||r.card.compact.button}},status:{success:t?.status?.success||r.status.success,error:t?.status?.error||r.status.error}};return p.jsx(kt.Provider,{value:{messages:i,locale:n},children:e})},Mr=f.createContext(null),ko=()=>f.useContext(Mr),To={appId:"",teamId:"",ev:null},Ir=f.createContext(To),Dr=()=>f.useContext(Ir),nn=f.createContext(null);function Po(){if(typeof window>"u")return null;if(typeof ve.useContext!="function")throw new Error("You must use React >= 18.0 in order to use useEvervault()");const e=ve.useContext(nn);if(!e)throw new Error("You must wrap your app in an <EvervaultProvider> to use useEvervault()");return e}f.createContext(void 0);class So extends Promise{async encrypt(t){return(await this).encrypt(t)}async decrypt(t,n){return(await this).decrypt(t,n)}}const Ao="https://js.evervault.com/v2";function Eo(e){const t=document.createElement("script");e&&e!==""?t.src=e:t.src=Ao;const n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Evervault.js requires a <body> element.");return n.appendChild(t),t}let rn=null;function _o(e,t){return rn!==null||(rn=new Promise((n,r)=>{if(typeof window>"u"){n(void 0);return}if(window.Evervault){console.warn("Evervault has already been loaded"),n(window.Evervault);return}try{const i=Eo(e);i.addEventListener("load",()=>{window.Evervault?n(window.Evervault):(t?.(),r(new Error("Evervault.js not available")))}),i.addEventListener("error",()=>{t?.(),r(new Error("Failed to load Evervault.js"))})}catch(i){r(i)}})),rn}function jo(e,t){const n=Promise.resolve().then(()=>_o(e,t));let r=!1;return n.catch(i=>{r||console.warn(i)}),r=!0,n.then(i=>typeof window<"u"?window.Evervault:i??void 0)}const Vo=({teamId:e,appId:t,customConfig:n,children:r,onLoadError:i,...s})=>{if(typeof window>"u")return ve.createElement(nn.Provider,{value:null},r);const a=ve.useMemo(()=>new So((o,l)=>{jo(n?.jsSdkUrl,i).then(u=>{u!==void 0?o(new u(e,t,n)):(console.error("Evervault.js not available"),l("Evervault.js not available"))}).catch(u=>l(u))}),[]);return ve.createElement(nn.Provider,{...s,value:a},r)};let Tt=null;async function Ro(){return Tt||(Tt=new Promise((e,t)=>{const n=document.createElement("script");if(n.src="https://js.evervault.com/v2",n.onload=()=>e(),n.onerror=()=>{Tt=null,t()},!document.head)throw new Error("Expected document.head not to be null. Evervault.js requires a <head> element.");document.head.appendChild(n)}),Tt)}async function Lr(){if(window.Evervault)return window.Evervault;try{return await Ro(),window.Evervault}catch{throw new Error("Failed to load Evervault.js")}}async function Mo(e,t,n){const r=await Lr();return new r(e,t,n)}Promise.resolve().then(()=>{Lr()});const Io=({children:e,evConfig:t})=>{const[n,r]=f.useState(null),i=f.useMemo(()=>t?{...t,ev:n}:null,[t,n]);return f.useEffect(()=>{t&&Mo(t.teamId,t.appId).then(s=>r(s)).catch(console.error)},[t]),!t||!i?null:p.jsx(Vo,{...t,children:p.jsx(Ir.Provider,{value:i,children:e})})},Nr={googlePay:"_googlePay_1a960_1",hidden:"_hidden_1a960_17"};function Or(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function le(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Or(e))&&(r&&(r+=" "),r+=t);return r}const Br="ab-ev-google-pay-container",Do=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,transaction:s,locale:a})=>{const{ev:o}=Dr(),[l,u]=f.useState(!1),[c,d]=f.useState(null);return f.useEffect(()=>{c&&(t&&c.on("cancel",t),n&&c.on("error",n),r&&c.on("success",r))},[c,t,n,r]),f.useEffect(()=>{if(o)try{const h=o.transactions.create(s),m=o.ui.googlePay(h,{locale:a,size:{width:"100%",height:"42px"},billingAddress:{phoneNumber:!0},process:async(g,{fail:y})=>{try{e(g)}catch(b){console.error(b),y({message:"Cannot pay with payment credentials"})}}});m.on("ready",()=>{u(!0),i?.()}),d(m),m.unmount(),m.mount(`#${Br}`)}catch(h){console.error(h),u(!1),i?.()}},[o,s,a,e,i]),p.jsx("div",{id:Br,className:le(Nr.googlePay,l?void 0:Nr.hidden)})},qr={applePay:"_applePay_sei4a_1",hidden:"_hidden_sei4a_22"},Lo=typeof window<"u"&&typeof document<"u",sn="ab-ev-apple-pay-container",No=async e=>{if(Lo){const t=document.getElementById(sn);t&&(t.innerHTML="")}await e.mount(`#${sn}`)},Oo=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,locale:s,transaction:a,supportedCardTypes:o})=>{const{ev:l}=Dr(),[u,c]=f.useState(!1),[d,h]=f.useState(null),[m,g]=f.useState(null);return f.useEffect(()=>{m&&(t&&m.on("cancel",t),n&&m.on("error",(y="")=>n(y)),r&&m.on("success",r))},[m,t,n,r]),f.useEffect(()=>{if(!l)return;(async()=>{try{const b=l.transactions.create(a),v=l.ui.applePay(b,{locale:s,borderRadius:12,size:{width:"100%",height:"40px"},allowedCardNetworks:o,requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:async(k,{fail:x})=>{try{e(k)}catch(T){console.error(T),x({message:"Cannot pay with payment credentials"})}}});if(!d){h(await v.availability());return}if(d!=="available"){c(!1);return}g(v),await No(v),c(!0)}catch(b){console.error(b),c(!1)}finally{i?.()}})()},[l,a,o,s,d,e,i]),p.jsx("div",{id:sn,className:le(qr.applePay,u?void 0:qr.hidden)})},Bo=({children:e,clientToken:t})=>{const[n,r]=f.useState(null),i=f.useMemo(()=>n?.evervault&&{appId:n.evervault.app_id,teamId:n.evervault.team_id},[n?.evervault]);return f.useEffect(()=>{go(t).then(s=>r(s)).catch(console.error)},[t]),p.jsx(Mr.Provider,{value:n,children:p.jsx(Io,{evConfig:i,children:e})})},Pt={button:"_button_qsmkn_1",primary:"_primary_qsmkn_11",success:"_success_qsmkn_15",loading:"_loading_qsmkn_19",press:"_press_qsmkn_24"},Fr=({color:e,isLoading:t,children:n,onClick:r,onMouseUp:i,onMouseOut:s,onMouseDown:a,...o})=>{const[l,u]=f.useState(!1),c=f.useCallback(g=>{t||o.disabled||r?.(g)},[r,t,o.disabled]),d=f.useCallback(g=>{u(!0),a?.(g)},[a]),h=f.useCallback(g=>{u(!1),i?.(g)},[i]),m=f.useCallback(g=>{u(!1),s?.(g)},[s]);return p.jsx("button",{...o,onClick:c,onMouseDown:d,onMouseUp:h,onMouseOut:m,className:le(Pt.button,e&&Pt[e],t&&Pt.loading,l&&Pt.press,o.className),style:o.style,children:n})};var an,Kr;function qo(){if(Kr)return an;Kr=1;var e={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}};return an=e,an}var Ze={},Xe={},zr;function $r(){if(zr)return Xe;zr=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.clone=void 0;function e(t){return t?JSON.parse(JSON.stringify(t)):null}return Xe.clone=e,Xe}var Je={},Ur;function Fo(){if(Ur)return Je;Ur=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.matches=void 0;function e(r,i,s){var a=String(i).length,o=r.substr(0,a),l=parseInt(o,10);return i=parseInt(String(i).substr(0,o.length),10),s=parseInt(String(s).substr(0,o.length),10),l>=i&&l<=s}function t(r,i){return i=String(i),i.substring(0,r.length)===r.substring(0,i.length)}function n(r,i){return Array.isArray(i)?e(r,i[0],i[1]):t(r,i)}return Je.matches=n,Je}var Gr;function Ko(){if(Gr)return Ze;Gr=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.addMatchingCardsToResults=void 0;var e=$r(),t=Fo();function n(r,i,s){var a,o;for(a=0;a<i.patterns.length;a++){var l=i.patterns[a];if((0,t.matches)(r,l)){var u=(0,e.clone)(i);Array.isArray(l)?o=String(l[0]).length:o=String(l).length,r.length>=o&&(u.matchStrength=o),s.push(u);break}}}return Ze.addMatchingCardsToResults=n,Ze}var Qe={},Wr;function zo(){if(Wr)return Qe;Wr=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.isValidInputType=void 0;function e(t){return typeof t=="string"||t instanceof String}return Qe.isValidInputType=e,Qe}var et={},Yr;function $o(){if(Yr)return et;Yr=1,Object.defineProperty(et,"__esModule",{value:!0}),et.findBestMatch=void 0;function e(n){var r=n.filter(function(i){return i.matchStrength}).length;return r>0&&r===n.length}function t(n){return e(n)?n.reduce(function(r,i){return!r||Number(r.matchStrength)<Number(i.matchStrength)?i:r}):null}return et.findBestMatch=t,et}var tt,Hr;function Uo(){if(Hr)return tt;Hr=1;var e=tt&&tt.__assign||function(){return e=Object.assign||function(g){for(var y,b=1,v=arguments.length;b<v;b++){y=arguments[b];for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(g[k]=y[k])}return g},e.apply(this,arguments)},t=qo(),n=Ko(),r=zo(),i=$o(),s=$r(),a={},o={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},l=[o.VISA,o.MASTERCARD,o.AMERICAN_EXPRESS,o.DINERS_CLUB,o.DISCOVER,o.JCB,o.UNIONPAY,o.MAESTRO,o.ELO,o.MIR,o.HIPER,o.HIPERCARD],u=(0,s.clone)(l);function c(g){return a[g]||t[g]}function d(){return u.map(function(g){return(0,s.clone)(c(g))})}function h(g,y){y===void 0&&(y=!1);var b=u.indexOf(g);if(!y&&b===-1)throw new Error('"'+g+'" is not a supported card type.');return b}function m(g){var y=[];if(!(0,r.isValidInputType)(g))return y;if(g.length===0)return d();u.forEach(function(v){var k=c(v);(0,n.addMatchingCardsToResults)(g,k,y)});var b=(0,i.findBestMatch)(y);return b?[b]:y}return m.getTypeInfo=function(g){return(0,s.clone)(c(g))},m.removeCard=function(g){var y=h(g);u.splice(y,1)},m.addCard=function(g){var y=h(g.type,!0);a[g.type]=g,y===-1&&u.push(g.type)},m.updateCard=function(g,y){var b=a[g]||t[g];if(!b)throw new Error('"'.concat(g,"\" is not a recognized type. Use `addCard` instead.'"));if(y.type&&b.type!==y.type)throw new Error("Cannot overwrite type parameter.");var v=(0,s.clone)(b);v=e(e({},v),y),a[v.type]=v},m.changeOrder=function(g,y){var b=h(g);u.splice(b,1),u.splice(y,0,g)},m.resetModifications=function(){u=(0,s.clone)(l),a={}},m.types=o,tt=m,tt}var Ie=Uo();Ie.updateCard("visa",{lengths:[16]}),Ie.updateCard("unionpay",{gaps:[4,8,12,16]});const Go=(e,t)=>{const n=Ie.getTypeInfo(t),r=e.replace(/\D/g,""),i=n?.gaps||[4,8,12],s=n?Math.max(...n.lengths)+i.length:19,a=[0].concat(i,r.length),o=[];for(let l=0;a[l]<r.length;l++){const u=a[l],c=Math.min(a[l+1],r.length);o.push(r.slice(u,c))}return o.join(" ").slice(0,s)},on=(e,t)=>{const r=Ie.getTypeInfo(t)?.code.size||4;return e.replace(/\D/g,"").slice(0,r)},Wo=(e,t)=>{const n=e.replace(/\D/g,"");let r=n.slice(0,2);if(!r)return"";const i=Number(r);if(r!=="01"){if(Number.isNaN(i))return"0";if(i===0||i===1)return`${i}`;if(i>12)return"1";r=i>9?`${i}`:`0${i}`}if(e.length<t.length){const a=Number(e[e.length-1]);if(Number.isNaN(a))return r}const s=n.slice(2,4);return`${r} / ${s}`},St={card:"_card_ji6om_1",cardDataContainer:"_cardDataContainer_ji6om_23",payButton:"_payButton_ji6om_34",spinner:"_spinner_ji6om_38"},te={wrapper:"_wrapper_1n2ol_1",inputContainer:"_inputContainer_1n2ol_5",inputFocus:"_inputFocus_1n2ol_10",input:"_input_1n2ol_5",endContent:"_endContent_1n2ol_20",errorInput:"_errorInput_1n2ol_24",error:"_error_1n2ol_24",label:"_label_1n2ol_32",labelError:"_labelError_1n2ol_36",disabled:"_disabled_1n2ol_40",disabledInput:"_disabledInput_1n2ol_44"},ln=f.createContext({});function cn(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const un=typeof window<"u",Zr=un?f.useLayoutEffect:f.useEffect,At=f.createContext(null);function dn(e,t){e.indexOf(t)===-1&&e.push(t)}function pn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const he=(e,t,n)=>n>t?t:n<e?e:n;let De=()=>{},fe=()=>{};process.env.NODE_ENV!=="production"&&(De=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},fe=(e,t)=>{if(!e)throw new Error(t)});const me={},Xr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Jr(e){return typeof e=="object"&&e!==null}const Qr=e=>/^0[^.\s]+$/u.test(e);function hn(e){let t;return()=>(t===void 0&&(t=e()),t)}const ne=e=>e,Yo=(e,t)=>n=>t(e(n)),nt=(...e)=>e.reduce(Yo),rt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class fn{constructor(){this.subscriptions=[]}add(t){return dn(this.subscriptions,t),()=>pn(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ae=e=>e*1e3,ce=e=>e/1e3;function ei(e,t){return t?e*(1e3/t):0}const ti=new Set;function mn(e,t,n){e||ti.has(t)||(console.warn(t),ti.add(t))}const ni=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ho=1e-7,Zo=12;function Xo(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=ni(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Ho&&++o<Zo);return a}function it(e,t,n,r){if(e===t&&n===r)return ne;const i=s=>Xo(s,0,1,e,n);return s=>s===0||s===1?s:ni(i(s),t,r)}const ri=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ii=e=>t=>1-e(1-t),si=it(.33,1.53,.69,.99),gn=ii(si),ai=ri(gn),oi=e=>(e*=2)<1?.5*gn(e):.5*(2-Math.pow(2,-10*(e-1))),yn=e=>1-Math.sin(Math.acos(e)),li=ii(yn),ci=ri(yn),Jo=it(.42,0,1,1),Qo=it(0,0,.58,1),ui=it(.42,0,.58,1),el=e=>Array.isArray(e)&&typeof e[0]!="number",di=e=>Array.isArray(e)&&typeof e[0]=="number",pi={linear:ne,easeIn:Jo,easeInOut:ui,easeOut:Qo,circIn:yn,circInOut:ci,circOut:li,backIn:gn,backInOut:ai,backOut:si,anticipate:oi},tl=e=>typeof e=="string",hi=e=>{if(di(e)){fe(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return it(t,n,r,i)}else if(tl(e))return fe(pi[e]!==void 0,`Invalid easing type '${e}'`),pi[e];return e},Et=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],fi={value:null};function nl(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){a.has(d)&&(c.schedule(d),e()),l++,d(o)}const c={schedule:(d,h=!1,m=!1)=>{const y=m&&i?n:r;return h&&a.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(o=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&fi.value&&fi.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const rl=40;function mi(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Et.reduce((x,T)=>(x[T]=nl(s,t?T:void 0),x),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const x=me.useManualTiming?i.timestamp:performance.now();n=!1,me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,rl),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Et.reduce((x,T)=>{const w=a[T];return x[T]=(P,E=!1,S=!1)=>(n||b(),w.schedule(P,E,S)),x},{}),cancel:x=>{for(let T=0;T<Et.length;T++)a[Et[T]].cancel(x)},state:i,steps:a}}const{schedule:D,cancel:be,state:$,steps:vn}=mi(typeof requestAnimationFrame<"u"?requestAnimationFrame:ne,!0);let _t;function il(){_t=void 0}const J={now:()=>(_t===void 0&&J.set($.isProcessing||me.useManualTiming?$.timestamp:performance.now()),_t),set:e=>{_t=e,queueMicrotask(il)}},gi=e=>t=>typeof t=="string"&&t.startsWith(e),bn=gi("--"),sl=gi("var(--"),xn=e=>sl(e)?al.test(e.split("/*")[0].trim()):!1,al=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Le={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},st={...Le,transform:e=>he(0,1,e)},jt={...Le,default:1},at=e=>Math.round(e*1e5)/1e5,Cn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ol(e){return e==null}const ll=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wn=(e,t)=>n=>!!(typeof n=="string"&&ll.test(n)&&n.startsWith(e)||t&&!ol(n)&&Object.prototype.hasOwnProperty.call(n,t)),yi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(Cn);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},cl=e=>he(0,255,e),kn={...Le,transform:e=>Math.round(cl(e))},Pe={test:wn("rgb","red"),parse:yi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kn.transform(e)+", "+kn.transform(t)+", "+kn.transform(n)+", "+at(st.transform(r))+")"};function ul(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Tn={test:wn("#"),parse:ul,transform:Pe.transform},ot=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xe=ot("deg"),ue=ot("%"),A=ot("px"),dl=ot("vh"),pl=ot("vw"),vi={...ue,parse:e=>ue.parse(e)/100,transform:e=>ue.transform(e*100)},Ne={test:wn("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ue.transform(at(t))+", "+ue.transform(at(n))+", "+at(st.transform(r))+")"},G={test:e=>Pe.test(e)||Tn.test(e)||Ne.test(e),parse:e=>Pe.test(e)?Pe.parse(e):Ne.test(e)?Ne.parse(e):Tn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pe.transform(e):Ne.transform(e)},hl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fl(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cn)?.length||0)+(e.match(hl)?.length||0)>0}const bi="number",xi="color",ml="var",gl="var(",Ci="${}",yl=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(yl,l=>(G.test(l)?(r.color.push(s),i.push(xi),n.push(G.parse(l))):l.startsWith(gl)?(r.var.push(s),i.push(ml),n.push(l)):(r.number.push(s),i.push(bi),n.push(parseFloat(l))),++s,Ci)).split(Ci);return{values:n,split:o,indexes:r,types:i}}function wi(e){return lt(e).values}function ki(e){const{split:t,types:n}=lt(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===bi?s+=at(i[a]):o===xi?s+=G.transform(i[a]):s+=i[a]}return s}}const vl=e=>typeof e=="number"?0:e;function bl(e){const t=wi(e);return ki(e)(t.map(vl))}const Ce={test:fl,parse:wi,createTransformer:ki,getAnimatableNone:bl};function Pn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Pn(l,o,e+1/3),s=Pn(l,o,e),a=Pn(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Vt(e,t){return n=>n>0?t:e}const L=(e,t,n)=>e+(t-e)*n,Sn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Cl=[Tn,Pe,Ne],wl=e=>Cl.find(t=>t.test(e));function Ti(e){const t=wl(e);if(De(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ne&&(n=xl(n)),n}const Pi=(e,t)=>{const n=Ti(e),r=Ti(t);if(!n||!r)return Vt(e,t);const i={...n};return s=>(i.red=Sn(n.red,r.red,s),i.green=Sn(n.green,r.green,s),i.blue=Sn(n.blue,r.blue,s),i.alpha=L(n.alpha,r.alpha,s),Pe.transform(i))},An=new Set(["none","hidden"]);function kl(e,t){return An.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tl(e,t){return n=>L(e,t,n)}function En(e){return typeof e=="number"?Tl:typeof e=="string"?xn(e)?Vt:G.test(e)?Pi:Al:Array.isArray(e)?Si:typeof e=="object"?G.test(e)?Pi:Pl:Vt}function Si(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>En(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function Pl(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=En(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Sl(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const Al=(e,t)=>{const n=Ce.createTransformer(t),r=lt(e),i=lt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?An.has(e)&&!i.values.length||An.has(t)&&!r.values.length?kl(e,t):nt(Si(Sl(r,i),i.values),n):(De(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Vt(e,t))};function Ai(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?L(e,t,n):En(e)(e,t)}const El=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>D.update(t,n),stop:()=>be(t),now:()=>$.isProcessing?$.timestamp:J.now()}},Ei=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Rt=2e4;function _n(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rt;)t+=n,r=e.next(t);return t>=Rt?1/0:t}function _l(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(_n(r),Rt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ce(i)}}const jl=5;function _i(e,t,n){const r=Math.max(t-jl,0);return ei(n-e(r),t-r)}const N={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ji=.001;function Vl({duration:e=N.duration,bounce:t=N.bounce,velocity:n=N.velocity,mass:r=N.mass}){let i,s;De(e<=ae(N.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=he(N.minDamping,N.maxDamping,a),e=he(N.minDuration,N.maxDuration,ce(e)),a<1?(i=u=>{const c=u*a,d=c*e,h=c-n,m=jn(u,a),g=Math.exp(-d);return ji-h/m*g},s=u=>{const d=u*a*e,h=d*n+n,m=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=jn(Math.pow(u,2),a);return(-i(u)+ji>0?-1:1)*((h-m)*g)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=Ml(i,s,o);if(e=ae(e),isNaN(l))return{stiffness:N.stiffness,damping:N.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const Rl=12;function Ml(e,t,n){let r=n;for(let i=1;i<Rl;i++)r=r-e(r)/t(r);return r}function jn(e,t){return e*Math.sqrt(1-t*t)}const Il=["duration","bounce"],Dl=["stiffness","damping","mass"];function Vi(e,t){return t.some(n=>e[n]!==void 0)}function Ll(e){let t={velocity:N.velocity,stiffness:N.stiffness,damping:N.damping,mass:N.mass,isResolvedFromDuration:!1,...e};if(!Vi(e,Dl)&&Vi(e,Il))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*he(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:N.mass,stiffness:i,damping:s}}else{const n=Vl(e);t={...t,...n,mass:N.mass},t.isResolvedFromDuration=!0}return t}function Mt(e=N.visualDuration,t=N.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:m}=Ll({...n,velocity:-ce(n.velocity||0)}),g=h||0,y=u/(2*Math.sqrt(l*c)),b=a-s,v=ce(Math.sqrt(l/c)),k=Math.abs(b)<5;r||(r=k?N.restSpeed.granular:N.restSpeed.default),i||(i=k?N.restDelta.granular:N.restDelta.default);let x;if(y<1){const w=jn(v,y);x=P=>{const E=Math.exp(-y*v*P);return a-E*((g+y*v*b)/w*Math.sin(w*P)+b*Math.cos(w*P))}}else if(y===1)x=w=>a-Math.exp(-v*w)*(b+(g+v*b)*w);else{const w=v*Math.sqrt(y*y-1);x=P=>{const E=Math.exp(-y*v*P),S=Math.min(w*P,300);return a-E*((g+y*v*b)*Math.sinh(S)+w*b*Math.cosh(S))/w}}const T={calculatedDuration:m&&d||null,next:w=>{const P=x(w);if(m)o.done=w>=d;else{let E=w===0?g:0;y<1&&(E=w===0?ae(g):_i(x,w,P));const S=Math.abs(E)<=r,V=Math.abs(a-P)<=i;o.done=S&&V}return o.value=o.done?a:P,o},toString:()=>{const w=Math.min(_n(T),Rt),P=Ei(E=>T.next(w*E).value,w,30);return w+"ms "+P},toTransition:()=>{}};return T}Mt.applyToOptions=e=>{const t=_l(e,100,Mt);return e.ease=t.ease,e.duration=ae(t.duration),e.type="keyframes",e};function Vn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},m=S=>o!==void 0&&S<o||l!==void 0&&S>l,g=S=>o===void 0?l:l===void 0||Math.abs(o-S)<Math.abs(l-S)?o:l;let y=n*t;const b=d+y,v=a===void 0?b:a(b);v!==b&&(y=v-d);const k=S=>-y*Math.exp(-S/r),x=S=>v+k(S),T=S=>{const V=k(S),M=x(S);h.done=Math.abs(V)<=u,h.value=h.done?v:M};let w,P;const E=S=>{m(h.value)&&(w=S,P=Mt({keyframes:[h.value,g(h.value)],velocity:_i(x,S,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:S=>{let V=!1;return!P&&w===void 0&&(V=!0,T(S),E(S)),w!==void 0&&S>=w?P.next(S-w):(!V&&T(S),h)}}}function Nl(e,t,n){const r=[],i=n||me.mix||Ai,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ne:t;o=nt(l,o)}r.push(o)}return r}function Ol(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(fe(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Nl(t,r,i),l=o.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=rt(e[d],e[d+1],c);return o[d](h)};return n?c=>u(he(e[0],e[s-1],c)):u}function Bl(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rt(0,t,r);e.push(L(n,1,i))}}function ql(e){const t=[0];return Bl(t,e.length-1),t}function Fl(e,t){return e.map(n=>n*t)}function Kl(e,t){return e.map(()=>t||ui).splice(0,e.length-1)}function Oe({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=el(r)?r.map(hi):hi(r),s={done:!1,value:t[0]},a=Fl(n&&n.length===t.length?n:ql(t),e),o=Ol(a,t,{ease:Array.isArray(i)?i:Kl(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const zl=e=>e!==null;function Rn(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(zl),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const $l={decay:Vn,inertia:Vn,tween:Oe,keyframes:Oe,spring:Mt};function Ri(e){typeof e.type=="string"&&(e.type=$l[e.type])}class Mn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ul=e=>e/100;class In extends Mn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(n=!0)=>{if(n){const{motionValue:r}=this.options;r&&r.updatedAt!==J.now()&&this.tick(J.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ri(t);const{type:n=Oe,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Oe;process.env.NODE_ENV!=="production"&&l!==Oe&&fe(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Oe&&typeof o[0]!="number"&&(this.mixKeyframes=nt(Ul,Ai(o[0],o[1])),o=[0,100]);const u=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=_n(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:m,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,T=r;if(d){const S=Math.min(this.currentTime,i)/o;let V=Math.floor(S),M=S%1;!M&&S>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(h==="reverse"?(M=1-M,m&&(M-=m/o)):h==="mirror"&&(T=a)),x=he(0,1,M)*o}const w=k?{done:!1,value:c[0]}:T.next(x);s&&(w.value=s(w.value));let{done:P}=w;!k&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&g!==Vn&&(w.value=Rn(c,this.options,b,this.speed)),y&&y(w.value),E&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return ce(this.calculatedDuration)}get time(){return ce(this.currentTime)}set time(t){t=ae(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(J.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ce(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=El,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(J.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Gl(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Se=e=>e*180/Math.PI,Dn=e=>{const t=Se(Math.atan2(e[1],e[0]));return Ln(t)},Wl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dn,rotateZ:Dn,skewX:e=>Se(Math.atan(e[1])),skewY:e=>Se(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ln=e=>(e=e%360,e<0&&(e+=360),e),Mi=Dn,Ii=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Di=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Yl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ii,scaleY:Di,scale:e=>(Ii(e)+Di(e))/2,rotateX:e=>Ln(Se(Math.atan2(e[6],e[5]))),rotateY:e=>Ln(Se(Math.atan2(-e[2],e[0]))),rotateZ:Mi,rotate:Mi,skewX:e=>Se(Math.atan(e[4])),skewY:e=>Se(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nn(e){return e.includes("scale")?1:0}function On(e,t){if(!e||e==="none")return Nn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Yl,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Wl,i=o}if(!i)return Nn(t);const s=r[t],a=i[1].split(",").map(Zl);return typeof s=="function"?s(a):a[s]}const Hl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return On(n,t)};function Zl(e){return parseFloat(e.trim())}const Be=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qe=new Set(Be),Li=e=>e===Le||e===A,Xl=new Set(["x","y","z"]),Jl=Be.filter(e=>!Xl.has(e));function Ql(e){const t=[];return Jl.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ae={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>On(t,"x"),y:(e,{transform:t})=>On(t,"y")};Ae.translateX=Ae.x,Ae.translateY=Ae.y;const Ee=new Set;let Bn=!1,qn=!1,Fn=!1;function Ni(){if(qn){const e=Array.from(Ee).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ql(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qn=!1,Bn=!1,Ee.forEach(e=>e.complete(Fn)),Ee.clear()}function Oi(){Ee.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qn=!0)})}function ec(){Fn=!0,Oi(),Ni(),Fn=!1}class Kn{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ee.add(this),Bn||(Bn=!0,D.read(Oi),D.resolveKeyframes(Ni))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Gl(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ee.delete(this)}cancel(){this.state==="scheduled"&&(Ee.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tc=e=>e.startsWith("--");function nc(e,t,n){tc(t)?e.style.setProperty(t,n):e.style[t]=n}const rc=hn(()=>window.ScrollTimeline!==void 0),ic={};function sc(e,t){const n=hn(e);return()=>ic[t]??n()}const Bi=sc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function Fi(e,t){if(e)return typeof e=="function"?Bi()?Ei(e,t):"ease-out":di(e)?ct(e):Array.isArray(e)?e.map(n=>Fi(n,t)||qi.easeOut):qi[e]}function ac(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Fi(o,i);Array.isArray(d)&&(c.easing=d);const h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function Ki(e){return typeof e=="function"&&"applyToOptions"in e}function oc({type:e,...t}){return Ki(e)&&Bi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lc extends Mn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,fe(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const u=oc(t);this.animation=ac(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Rn(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):nc(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ce(Number(t))}get time(){return ce(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ae(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&rc()?(this.animation.timeline=t,ne):n(this)}}const zi={anticipate:oi,backInOut:ai,circInOut:ci};function cc(e){return e in zi}function uc(e){typeof e.ease=="string"&&cc(e.ease)&&(e.ease=zi[e.ease])}const $i=10;class dc extends lc{constructor(t){uc(t),Ri(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new In({...a,autoplay:!1}),l=ae(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-$i).value,o.sample(l).value,$i),o.stop()}}const Ui=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ce.test(e)||e==="0")&&!e.startsWith("url("));function pc(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function hc(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Ui(i,t),o=Ui(s,t);return De(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:pc(e)||(n==="spring"||Ki(n))&&r}function zn(e){return Jr(e)&&"offsetHeight"in e}const fc=new Set(["opacity","clipPath","filter","transform"]),mc=hn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gc(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!zn(t?.owner?.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return mc()&&n&&fc.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const yc=40;class vc extends Mn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=J.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},m=c?.KeyframeResolver||Kn;this.keyframeResolver=new m(o,(g,y,b)=>this.onKeyframesResolved(g,y,h,!b),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=J.now(),hc(t,s,a,o)||((me.instantAnimations||!l)&&c?.(Rn(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>yc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&gc(h)?new dc({...h,element:h.motionValue.owner.current}):new In(h);m.finished.then(()=>this.notifyFinished()).catch(ne),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ec()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const bc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xc(e){const t=bc.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Cc=4;function Gi(e,t,n=1){fe(n<=Cc,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=xc(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return Xr(a)?parseFloat(a):a}return xn(i)?Gi(i,t,n+1):i}function $n(e,t){return e?.[t]??e?.default??e}const Wi=new Set(["width","height","top","left","right","bottom",...Be]),wc={test:e=>e==="auto",parse:e=>e},Yi=e=>t=>t.test(e),Hi=[Le,A,ue,xe,pl,dl,wc],Zi=e=>Hi.find(Yi(e));function kc(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qr(e):!0}const Tc=new Set(["brightness","contrast","saturate","opacity"]);function Pc(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cn)||[];if(!r)return e;const i=n.replace(r,"");let s=Tc.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Sc=/\b([a-z-]*)\(.*?\)/gu,Un={...Ce,getAnimatableNone:e=>{const t=e.match(Sc);return t?t.map(Pc).join(" "):e}},Xi={...Le,transform:Math.round},Gn={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:xe,skewX:xe,skewY:xe,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:st,originX:vi,originY:vi,originZ:A},zIndex:Xi,fillOpacity:st,strokeOpacity:st,numOctaves:Xi},Ac={...Gn,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Un,WebkitFilter:Un},Ji=e=>Ac[e];function Qi(e,t){let n=Ji(e);return n!==Un&&(n=Ce),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ec=new Set(["auto","none","0"]);function _c(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Ec.has(s)&<(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Qi(n,i)}class jc extends Kn{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),xn(u))){const c=Gi(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Wi.has(r)||t.length!==2)return;const[i,s]=t,a=Zi(i),o=Zi(s);if(a!==o)if(Li(a)&&Li(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Ae[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||kc(t[i]))&&r.push(i);r.length&&_c(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ae[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ae[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,l])=>{t.getValue(o).set(l)}),this.resolveNoneKeyframes()}}function Vc(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const es=30,Rc=e=>!isNaN(parseFloat(e));class Mc{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=J.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=J.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Rc(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&mn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fn);const r=this.events[t].add(n);return t==="change"?()=>{r(),D.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=J.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,es);return ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fe(e,t){return new Mc(e,t)}const ts=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:Wn}=mi(queueMicrotask,!1),oe={x:!1,y:!1};function ns(){return oe.x||oe.y}function Ic(e){return e==="x"||e==="y"?oe[e]?null:(oe[e]=!0,()=>{oe[e]=!1}):oe.x||oe.y?null:(oe.x=oe.y=!0,()=>{oe.x=oe.y=!1})}function rs(e,t){const n=Vc(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function is(e){return!(e.pointerType==="touch"||ns())}function Dc(e,t,n={}){const[r,i,s]=rs(e,n),a=o=>{if(!is(o))return;const{target:l}=o,u=t(l,o);if(typeof u!="function"||!l)return;const c=d=>{is(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const ss=(e,t)=>t?e===t?!0:ss(e,t.parentElement):!1,Yn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Lc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nc(e){return Lc.has(e.tagName)||e.tabIndex!==-1}const It=new WeakSet;function as(e){return t=>{t.key==="Enter"&&e(t)}}function Hn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Oc=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=as(()=>{if(It.has(n))return;Hn(n,"down");const i=as(()=>{Hn(n,"up")}),s=()=>Hn(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function os(e){return Yn(e)&&!ns()}function Bc(e,t,n={}){const[r,i,s]=rs(e,n),a=o=>{const l=o.currentTarget;if(!os(o))return;It.add(l);const u=t(l,o),c=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),It.has(l)&&It.delete(l),os(m)&&typeof u=="function"&&u(m,{success:g})},d=m=>{c(m,l===window||l===document||n.useGlobalTarget||ss(l,m.target))},h=m=>{c(m,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),zn(o)&&(o.addEventListener("focus",u=>Oc(u,i)),!Nc(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function ls(e){return Jr(e)&&"ownerSVGElement"in e}function qc(e){return ls(e)&&e.tagName==="svg"}const W=e=>!!(e&&e.getVelocity),Fc=[...Hi,G,Ce],Kc=e=>Fc.find(Yi(e)),Zn=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class zc extends ve.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=zn(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function $c({children:e,isPresent:t,anchorX:n}){const r=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(Zn);return f.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:c,right:d}=s.current;if(t||!i.current||!o||!l)return;const h=n==="left"?`left: ${c}`:`right: ${d}`;i.current.dataset.motionPopId=r;const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
|
|
23
|
+
<%s key={someKey} {...props} />`,H,Z,We,Z),U[Z+H]=!0)}if(Z=null,O!==void 0&&(n(O),Z=""+O),a(j)&&(n(j.key),Z=""+j.key),"key"in j){O={};for(var Ar in j)Ar!=="key"&&(O[Ar]=j[Ar])}else O=j;return Z&&o(O,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,Z,pe,Te,i(),O,Pr,Sr)}function d(C){typeof C=="object"&&C!==null&&C.$$typeof===m&&C._store&&(C._store.validated=1)}var h=f,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),x=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),q=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,_=Array.isArray,K=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(C){return C()}};var ye,de={},R=h["react-stack-bottom-frame"].bind(h,s)(),I=K(r(s)),U={};He.Fragment=y,He.jsx=function(C,j,O,H,Te){var pe=1e4>q.recentlyCreatedOwnerStacks++;return c(C,j,O,!1,H,Te,pe?Error("react-stack-top-frame"):R,pe?K(r(C)):I)},He.jsxs=function(C,j,O,H,Te){var pe=1e4>q.recentlyCreatedOwnerStacks++;return c(C,j,O,!0,H,Te,pe?Error("react-stack-top-frame"):R,pe?K(r(C)):I)}}()),He}var Vr;function po(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?wt.exports=co():wt.exports=uo()),wt.exports}var p=po();const Jt={apiBase:"https://dvfoid19j3afz.cloudfront.net/v1"},ho=[{type:"paypal",order:1,is_active:!0},{type:"apple-pay",order:2,is_active:!0},{type:"google-pay",order:3,is_active:!0},{type:"card",order:4,is_active:!0}];var Rr=(e=>(e.Card="CARD",e))(Rr||{});const fo=async e=>{const t=`${Jt.apiBase}/payments/create`,n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(t,{method:"POST",headers:n,body:JSON.stringify({card:e.card&&{...e.card,first_six_digits:e.card.firstSixDigits,last_four_digits:e.card.lastFourDigits,exp_month:e.card.expMonth,exp_year:e.card.expYear,card_brand:e.card.cardBrand},paypal:e.paypal,google_pay:e.googlePay&&{...e.googlePay,networkToken:{...e.googlePay.networkToken,token:{...e.googlePay.networkToken.token,token_service_provider:e.googlePay.networkToken.token.tokenServiceProvider}}},apple_pay:e.applePay&&{...e.applePay,billingContact:{address:e.applePay.billingContact.address,email_address:e.applePay.billingContact.emailAddress,family_name:e.applePay.billingContact.familyName,given_name:e.applePay.billingContact.givenName,phone_number:e.applePay.billingContact.phoneNumber},networkToken:{...e.applePay.networkToken,token_service_provider:e.applePay.networkToken.tokenServiceProvider}},client_session:e.clientSession})})).json()},mo=async e=>{const t=`${Jt.apiBase}/payments/create/billing/agreement`,n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(t,{method:"POST",headers:n,body:JSON.stringify({client_session:e})})).json()},go=async e=>{const t=`${Jt.apiBase}/payments/config?client_session_id=${e}`,r=await(await fetch(t)).json();return r.checkout_config||(r.checkout_config=ho),r},yo=({onCheckoutComplete:e,onCheckoutFail:t})=>{const[n,r]=f.useState(!1),[i,s]=f.useState(!1),[a,o]=f.useState(!1),l=f.useCallback(async d=>{try{s(!1),o(!1),r(!0);const{error:h}=await fo(d);if(!h)s(!0),e?.();else{const m=new Error(h||"Unknown error");o(!0),t?.(m)}}catch(h){console.error(h),o(!0),t?.(new Error("Unknown error"))}finally{r(!1)}},[e,t]),u=f.useCallback(d=>{o(!0),t?.(new Error(d))},[t]),c=f.useCallback(()=>{s(!1),o(!1)},[]);return{handleCheckout:l,handleCheckoutFail:u,handleCheckoutReset:c,isCheckoutFetching:n,isCheckoutSuccess:i,isCheckoutFail:a}},Qt=typeof navigator<"u",en={ar:{card:{title:"طريقة الدفع",number:{label:"رقم البطاقة",error:{required:"يتطلب",invalid:"رقم البطاقة غير صالح",incomplete:"رقم البطاقة غير كامل",unsupported:"نوع البطاقة غير المدعوم"}},expiry:{label:"تاريخ الانتهاء",placeholder:"سنة / شهر",error:{required:"يتطلب",invalid:"تاريخ انتهاء صلاحية البطاقة غير صالح",incomplete:"تاريخ انتهاء الصلاحية الخاص ببطاقتك غير كامل",expired:"تاريخ انتهاء صلاحية بطاقتك في الماضي"}},cvc:{label:"رمز الأمان",placeholder:"CVC",error:{required:"يتطلب",incomplete:"رمز الأمان الخاص ببطاقتك غير كامل",invalid:"رمز التحقق من البطاقة (CVC) الخاص ببطاقتك غير صالح"}},name:{label:"اسم حامل البطاقة",placeholder:"الاسم الكامل على البطاقة",error:{required:"يتطلب",invalid:"يرجى إدخال اسمك الكامل"}},pay:{button:"الراتب"},compact:{button:"البطاقة"}},status:{success:"تمت عملية الدفع الخاصة بك بنجاح!",error:"لم نتمكن من التحقق من طريقة الدفع الخاصة بك. يرجى اختيار طريقة دفع أخرى وإعادة المحاولة."}},en:{card:{title:"Payment method",number:{label:"Card number",error:{required:"REQUIRED",invalid:"Your card number is invalid",incomplete:"Your card number is incomplete",unsupported:"Unsupported card type"}},expiry:{label:"Expiry date",placeholder:"MM / YY",error:{required:"REQUIRED",invalid:"Your card’s expiry date is invalid",incomplete:"Your card’s expiry date is incomplete",expired:"Your card’s expiry {date} is in the past"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"REQUIRED",incomplete:"Your card’s security code is incomplete",invalid:"Your card’s CVC is invalid"}},name:{label:"Cardholder name",placeholder:"Full name on card",error:{required:"REQUIRED",invalid:"Please provide your full name"}},pay:{button:"Pay"},compact:{button:"Card"}},status:{success:"Your payment was successful!",error:"We are unable to authenticate your payment method. Please choose a different payment method and try again."}},bg:{card:{title:"Метод на плащане",number:{label:"Информация за картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Номерът на Вашата карта е неправилен",incomplete:"Номерът на Вашата карта е непълен",unsupported:"Неподдържан тип карта"}},expiry:{label:"Дата на валидност",placeholder:"ММ / ГГ",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Датата на валидност на вашата карта е непълна",invalid:"Датата на валидност на вашата карта е невалидна",expired:"Датата на валидност на вашата карта е в миналото"}},cvc:{label:"Код за сигурност",placeholder:"CVC",error:{required:"ЗАДЪЛЖИТЕЛНО",incomplete:"Кодът за сигурност на вашата карта е непълен",invalid:"Кодът за сигурност на вашата карта е невалиден"}},name:{label:"Име на картодържателя",placeholder:"Пълно име върху картата",error:{required:"ЗАДЪЛЖИТЕЛНО",invalid:"Моля, въведете трите си имена"}},pay:{button:"Платете"},compact:{button:"Карта"}},status:{success:"Успех",error:"Не можем да удостоверим автентичността на вашия метод на плащане. Моля, изберете друг метод на плащане и опитайте отново."}},cs:{card:{title:"Způsob platby",number:{label:"Číslo karty",error:{required:"POVINNÝ ÚDAJ",invalid:"Číslo Vaší karty je neplatné",incomplete:"Číslo vaší karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Datum konce platnosti",placeholder:"MM / RR",error:{required:"POVINNÝ ÚDAJ",incomplete:"Datum konce platnosti vaší karty je neúplné",invalid:"Datum konce platnosti karty je neplatné",expired:"Platnost vaší karty vypršela"}},cvc:{label:"Bezpečnostní kód",placeholder:"CVC",error:{required:"POVINNÝ ÚDAJ",incomplete:"Bezpečnostní kód vaší karty je neúplný",invalid:"CVC vaší karty je neplatné"}},name:{label:"Jméno držitele karty",placeholder:"Celé jméno",error:{required:"POVINNÝ ÚDAJ",invalid:"Uvďte prosím celé své jméno"}},pay:{button:"Platit"},compact:{button:"Karta"}},status:{success:"Úspěch",error:"Váš způsob platby se nám nedaří ověřit. Zvolte prosím jiný způsob platby a zkuste to znovu."}},da:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKRÆVET",invalid:"Kortnummeret er ugyldigt",incomplete:"Kortnummeret er ufuldstændigt",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Udløbsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKRÆVET",incomplete:"Kortets udløbsdato er ikke komplet",invalid:"Dit korts udløbsdato er ugyldig",expired:"Dit kort er udløbet"}},cvc:{label:"Sikkerhedskode",placeholder:"CVC",error:{required:"PÅKRÆVET",incomplete:"Dit korts sikkerhedskode er ikke komplet",invalid:"Dit korts CVC er ugyldigt"}},name:{label:"Kortholderens navn",placeholder:"Fulde navn",error:{required:"PÅKRÆVET",invalid:"Angiv dit fulde navn"}},pay:{button:"Betal"},compact:{button:"Kredit- eller betalingskort"}},status:{success:"Succes",error:"Vi kan ikke godkende din betalingsmetode. Vælg venligst en anden betalingsmetode og prøv igen."}},de:{card:{title:"Zahlungsmethode",number:{label:"Kartennummer",error:{required:"Pflichtfeld",invalid:"Ihre Kartennummer ist ungültig",incomplete:"Ihre Kartennummer ist unvollständig",unsupported:"Nicht unterstützter Kartentyp"}},expiry:{label:"Ablaufdatum",placeholder:"MM / JJ",error:{required:"Pflichtfeld",incomplete:"Das Ablaufdatum Ihrer Karte ist unvollständig",invalid:"Das Ablaufdatum Ihrer Karte ist ungültig",expired:"Ihre Karte ist ungültig"}},cvc:{label:"Sicherheitscode",placeholder:"CVC",error:{required:"Pflichtfeld",incomplete:"Der Sicherheitscode Ihrer Karte ist unvollständig",invalid:"Die Prüfziffer/CVC Ihrer Karte ist ungültig"}},name:{label:"Name des/der Karteninhaber/in",placeholder:"Vollständiger Name",error:{required:"Pflichtfeld",invalid:"Bitte geben Sie Ihren vollständigen Namen ein"}},pay:{button:"Bezahlen"},compact:{button:"Kredit- oder Debitkarte"}},status:{success:"Erfolg",error:"Wir können Ihre Zahlungsmethode nicht authentifizieren. Bitte wählen Sie eine andere Zahlungsmethode und versuchen Sie es erneut."}},el:{card:{title:"Μέθοδος πληρωμής",number:{label:"Αριθμός κάρτας",error:{required:"Απαιτούμενο",invalid:"Ο αριθμός της κάρτας σας δεν είναι έγκυρος",incomplete:"Ο αριθμός της κάρτας σας είναι ελλιπής",unsupported:"Δεν υποστηρίζεται ο τύπος της κάρτας"}},expiry:{label:"Ημερομηνία λήξης",placeholder:"ΜΜ / ΕΕ",error:{required:"Απαιτούμενο",incomplete:"Η ημερομηνία λήξης της κάρτας σας είναι ελλιπής",invalid:"Η ημερομηνία λήξης της κάρτας σας δεν είναι έγκυρη",expired:"Η κάρτα σας έχει λήξει"}},cvc:{label:"Κωδικός ασφαλείας",placeholder:"CVC",error:{required:"Απαιτούμενο",incomplete:"Ο κωδικός ασφαλείας της κάρτας σας είναι ελλιπής",invalid:"Το CVC της κάρτας σας δεν είναι έγκυρο"}},name:{label:"Όνομα κατόχου κάρτας",placeholder:"Πλήρες όνομα στην κάρτα",error:{required:"Απαιτούμενο",invalid:"Συμπληρώστε το ονοματεπώνυμό σας"}},pay:{button:"Πληρωμή"},compact:{button:"Kάρτα"}},status:{success:"Επιτυχία",error:"Δεν μπορούμε να πιστοποιήσουμε τη μέθοδο πληρωμής σας. Παρακαλούμε επιλέξτε μια διαφορετική μέθοδο πληρωμής και προσπαθήστε ξανά."}},es:{card:{title:"Método de pago",number:{label:"Número de tarjeta",error:{required:"OBLIGATORIO",invalid:"El número de tu tarjeta no es válido",incomplete:"El número de tu tarjeta está incompleto",unsupported:"Tipo de tarjeta no soportado"}},expiry:{label:"Fecha de caducidad",placeholder:"MM / AA",error:{required:"OBLIGATORIO",incomplete:"La fecha de caducidad de la tarjeta está incompleta",invalid:"La fecha de caducidad de la tarjeta no es válida",expired:"La tarjeta ha caducado"}},cvc:{label:"Código de seguridad",placeholder:"CVC",error:{required:"OBLIGATORIO",incomplete:"El código de seguridad de la tarjeta está incompleto",invalid:"El CVC de tu tarjeta no es válido"}},name:{label:"Nombre del titular de la tarjeta",placeholder:"Nombre completo",error:{required:"OBLIGATORIO",invalid:"Proporciona tu nombre completo"}},pay:{button:"Pagar"},compact:{button:"Tarjeta"}},status:{success:"Éxito",error:"No podemos autenticar su método de pago. Elija otro método de pago e inténtelo de nuevo."}},et:{card:{title:"Makseviis",number:{label:"Kaardi number",error:{required:"NÕUTAV",invalid:"Teie kaardinumber ei sobi",incomplete:"Teie kaardinumber on puudulik",unsupported:"Toetamata kaardi tüüp"}},expiry:{label:"Aegumiskuupäev",placeholder:"KK / AA",error:{required:"NÕUTAV",incomplete:"Teie kaardi aegumiskuupäev on puudulik",invalid:"Teie kaardi aegumiskuupäev on kehtetu",expired:"Teie kaart on aegunud"}},cvc:{label:"Turvakood",placeholder:"CVC",error:{required:"NÕUTAV",incomplete:"Teie kaardi turvakood on puudulik",invalid:"Teie kaardi CVC on kehtetu"}},name:{label:"Kaardiomaniku nimi",placeholder:"Täisnimi",error:{required:"NÕUTAV",invalid:"Esitage oma täisnimi"}},pay:{button:"Maksa"},compact:{button:"Krediit- või deebetkaart"}},status:{success:"Edu",error:"Me ei suuda teie makseviisi autentida. Palun valige teine makseviis ja proovige uuesti."}},fi:{card:{title:"Maksutapa",number:{label:"Kortin numero",error:{required:"PAKOLLINEN",invalid:"Kortin numero ei kelpaa",incomplete:"Kortin numero on puutteellinen",unsupported:"Ei tuettu korttityyppi"}},expiry:{label:"Erääntymispäivä",placeholder:"KK / VV",error:{required:"PAKOLLINEN",incomplete:"Kortin voimassaoloaika on puutteellinen",invalid:"Kortin voimassaoloaika on virheellinen",expired:"Korttisi on vanhentunut"}},cvc:{label:"Turvakoodi",placeholder:"CVC-koodi",error:{required:"PAKOLLINEN",incomplete:"Kortin turvakoodi on puutteellinen",invalid:"Kortin CVC ei kelpaa"}},name:{label:"Kortinhaltijan nimi",placeholder:"Koko nimi",error:{required:"PAKOLLINEN",invalid:"Anna koko nimesi"}},pay:{button:"Maksa"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Menestys",error:"Emme pysty todentamaan maksutapaasi. Valitse toinen maksutapa ja yritä uudelleen."}},fil:{card:{title:"Paraan ng pagbabayad",number:{label:"Numero ng card",error:{required:"KAILANGAN",invalid:"Hindi valid ang numero ng kard mo",incomplete:"Ang numero ng iyong kard ay kulang",unsupported:"Hindi sinusuportahang uri ng card"}},expiry:{label:"Petsa ng pagkapaso",placeholder:"BB / TT",error:{required:"KAILANGAN",incomplete:"Ang petsa ng pagkapaso ng iyong kard ay kulang",invalid:"Hindi valid ang petsa ng pagkapaso ng iyong kard",expired:"Napaso na ang iyong kard"}},cvc:{label:"Security code",placeholder:"CVC",error:{required:"KAILANGAN",incomplete:"Ang security code ng iyong kard ay kulang",invalid:"Hindi valid ang CVC ng iyong kard"}},name:{label:"Pangalan ng may-ari ng kard",placeholder:"Buong pangalan",error:{required:"KAILANGAN",invalid:"Pakibigay ang iyong buong pangalan"}},pay:{button:"Magbayad"},compact:{button:"Luotto- tai pankkikortti"}},status:{success:"Tagumpay",error:"Hindi namin ma-authenticate ang iyong paraan ng pagbabayad. Mangyaring pumili ng ibang paraan ng pagbabayad at subukang muli."}},fr:{card:{title:"Moyen de paiement",number:{label:"Numéro de la carte",error:{required:"OBLIGATOIRE",invalid:"Votre numéro de carte n'est pas valide",incomplete:"Votre numéro de carte est incomplet",unsupported:"Type de carte non supporté"}},expiry:{label:"Date d'expiration",placeholder:"MM / AA",error:{required:"OBLIGATOIRE",incomplete:"La date d'expiration de votre carte est incomplète",invalid:"La date d'expiration de votre carte n'est pas valide",expired:"Votre carte a expiré"}},cvc:{label:"Code de sécurité",placeholder:"CVC",error:{required:"OBLIGATOIRE",incomplete:"Le code de sécurité de votre carte est incomplet",invalid:"Le code CVC de votre carte n'est pas valide"}},name:{label:"Nom du titulaire de la carte",placeholder:"Nom complet",error:{required:"OBLIGATOIRE",invalid:"Veuillez indiquer votre nom complet"}},pay:{button:"Payer"},compact:{button:"Carte"}},status:{success:"Succès",error:"Nous ne sommes pas en mesure d'authentifier votre méthode de paiement. Veuillez choisir un autre mode de paiement et réessayer."}},hr:{card:{title:"Način plaćanja",number:{label:"Broj kartice",error:{required:"POTREBNO",invalid:"Broj vaše kartice nije valjan",incomplete:"Broj vaše kartice nije potpun",unsupported:"Nepodržana vrsta kartice"}},expiry:{label:"Datum isteka",placeholder:"MM / GG",error:{required:"POTREBNO",incomplete:"Datum isteka vaše kartice je nepotpun",invalid:"Datum isteka vaše kartice nije valjan",expired:"Kartica je istekla"}},cvc:{label:"Sigurnosni kod",placeholder:"CVC",error:{required:"POTREBNO",incomplete:"Sigurnosni kôd vaše kartice je nepotpun",invalid:"Kontrolni broj (CVC) vaše kartice nije valjan"}},name:{label:"Ime vlasnika kartice",placeholder:"Puno ime",error:{required:"POTREBNO",invalid:"Unesite svoje puno ime"}},pay:{button:"Plati"},compact:{button:"Kartica"}},status:{success:"Uspjeh",error:"Ne možemo provjeriti autentičnost vašeg načina plaćanja. Odaberite drugi način plaćanja i pokušajte ponovno."}},hu:{card:{title:"Fizetési mód",number:{label:"Kártya száma",error:{required:"KÖTELEZŐ",invalid:"A kártyaszáma érvénytelen",incomplete:"A kártyaszáma hiányos",unsupported:"Nem támogatott kártya típusa"}},expiry:{label:"Lejárat dátuma",placeholder:"HH / ÉÉ",error:{required:"KÖTELEZŐ",incomplete:"A kártyája lejárati dátuma hiányos",invalid:"A kártyája lejárati dátuma érvénytelen",expired:"A kártyája lejárt"}},cvc:{label:"Biztonsági kód",placeholder:"CVC",error:{required:"KÖTELEZŐ",incomplete:"A kártyája biztonsági kódja hiányos",invalid:"A kártya CVC-kódja érvénytelen"}},name:{label:"Kártyabirtokos neve",placeholder:"Teljes név",error:{required:"KÖTELEZŐ",invalid:"Adja meg a teljes nevét"}},pay:{button:"Fizetés"},compact:{button:"Hitel- vagy bankkártya"}},status:{success:"Siker",error:"Nem tudjuk hitelesíteni a fizetési módját. Kérjük, válasszon másik fizetési módot, és próbálja meg újra."}},id:{card:{title:"Metode pembayaran",number:{label:"Nomor kartu",error:{required:"WAJIB DIISI",invalid:"Nomor kartu Anda tidak valid",incomplete:"Nomor kartu Anda tidak lengkap",unsupported:"Tipe kartu tidak didukung"}},expiry:{label:"Tanggal kedaluwarsa",placeholder:"BB / TT",error:{required:"WAJIB DIISI",incomplete:"Tanggal kedaluwarsa kartu Anda tidak lengkap",invalid:"Tanggal kedaluwarsa kartu Anda tidak valid",expired:"Kartu Anda telah kedaluwarsa"}},cvc:{label:"Kode keamanan",placeholder:"CVC",error:{required:"WAJIB DIISI",incomplete:"Kode keamanan kartu Anda tidak lengkap",invalid:"CVC kartu Anda tidak valid"}},name:{label:"Nama pemegang kartu",placeholder:"Nama lengkap",error:{required:"WAJIB DIISI",invalid:"Berikan nama lengkap Anda"}},pay:{button:"Bayar"},compact:{button:"Kartu"}},status:{success:"Sukses",error:"Kami tidak dapat mengautentikasi metode pembayaran Anda. Silakan pilih metode pembayaran lain dan coba lagi."}},it:{card:{title:"Modalità di pagamento",number:{label:"Numero di carta",error:{required:"OBBLIGATORIO",invalid:"Il numero della carta non è valido",incomplete:"Il numero della carta è incompleto",unsupported:"Tipo di carta non supportato"}},expiry:{label:"Data di scadenza",placeholder:"MM / AA",error:{required:"OBBLIGATORIO",incomplete:"La data di scadenza della carta non è completa",invalid:"La data di scadenza della carta non è valida",expired:"La tua carta è scaduta"}},cvc:{label:"Codice di sicurezza",placeholder:"CVC",error:{required:"OBBLIGATORIO",incomplete:"Il codice di sicurezza della carta non è completo",invalid:"Il CVC della carta non è valido"}},name:{label:"Nome del titolare della carta",placeholder:"Nome e cognome",error:{required:"OBBLIGATORIO",invalid:"Inserisci il tuo nome completo"}},pay:{button:"Paga"},compact:{button:"Carta"}},status:{success:"Il successo",error:"Non siamo in grado di autenticare il suo metodo di pagamento. Scegliere un altro metodo di pagamento e riprovare."}},ja:{card:{title:"支払い方法",number:{label:"カード番号",error:{required:"必須",invalid:"カード番号が無効です",incomplete:"カード番号に不備があります",unsupported:"サポートされていないカードタイプ"}},expiry:{label:"有効期限",placeholder:"MM (月) / YY (年)",error:{required:"必須",incomplete:"カードの有効期限に不備があります",invalid:"カードの有効期間の満了月が無効です",expired:"カードの有効期限が切れています"}},cvc:{label:"セキュリティコード",placeholder:"セキュリティコード",error:{required:"必須",incomplete:"カードのセキュリティコードに不備があります",invalid:"カードのセキュリティコードが無効です"}},name:{label:"カード保有者の名前",placeholder:"氏名",error:{required:"必須",invalid:"氏名を入力してください"}},pay:{button:"支払う"},compact:{button:"カード"}},status:{success:"成功",error:"お客様のお支払い方法を認証できません。別のお支払い方法を選択し、再度お試しください。"}},ko:{card:{title:"결제 방식",number:{label:"카드 번호",error:{required:"필수",invalid:"카드 번호가 잘못되었습니다",incomplete:"카드 번호가 불완전합니다",unsupported:"지원되지 않는 카드 유형"}},expiry:{label:"만료 날짜",placeholder:"MM / YY",error:{required:"필수",incomplete:"카드의 유효기간 만료일이 불완전합니다",invalid:"카드의 유효기간 만료일이 잘못되었습니다",expired:"카드가 만료되었습니다"}},cvc:{label:"보안 코드",placeholder:"보안 코드(CVC)",error:{required:"필수",incomplete:"카드의 보안 코드가 불완전합니다",invalid:"카드의 보안 코드(CVC)가 잘못되었습니다"}},name:{label:"카드 소유자 이름",placeholder:"성명",error:{required:"필수",invalid:"성명을 입력하십시오"}},pay:{button:"결제"},compact:{button:"카드 번호"}},status:{success:"성공",error:"결제 방법을 인증할 수 없습니다. 다른 결제 방법을 선택하고 다시 시도해 주세요."}},lt:{card:{title:"Mokėjimo būdas",number:{label:"Kortelės numeris",error:{required:"PRIVALOMA",invalid:"Negaliojantis kortelės numeris",incomplete:"Neišsamus kortelės numeris",unsupported:"Nepalaikomas kortelės tipas"}},expiry:{label:"Galiojimo pabaigos data",placeholder:"mm / MM",error:{required:"PRIVALOMA",incomplete:"Neišsami jūsų kortelės galiojimo pabaigos data",invalid:"Netinkama jūsų kortelės galiojimo pabaigos data",expired:"Kortelė baigė galioti"}},cvc:{label:"Saugos kodas",placeholder:"CVC",error:{required:"PRIVALOMA",incomplete:"Neišsamus jūsų kortelės saugos kodas",invalid:"Jūsų kortelės CVC negalioja"}},name:{label:"Kortelės turėtojo vardas ir pavardė",placeholder:"Vardas ir pavardė",error:{required:"PRIVALOMA",invalid:"Įveskite ir vardą ir pavardę"}},pay:{button:"Mokėti"},compact:{button:"Kortelė"}},status:{success:"Sėkmė",error:"Negalime patvirtinti jūsų mokėjimo būdo. Pasirinkite kitą mokėjimo būdą ir bandykite dar kartą."}},lv:{card:{title:"Maksājumu veids",number:{label:"Kartes numurs",error:{required:"OBLIGĀTI",invalid:"Kartes numurs nav derīgs",incomplete:"Kartes numurs nav pilnīgs",unsupported:"Nepareizs kartes tips"}},expiry:{label:"Derīguma termiņš",placeholder:"MM / YY",error:{required:"OBLIGĀTI",incomplete:"Kartes derīguma termiņa datums nav pilnīgs",invalid:"Kartes derīguma termiņa beigu datums nav derīgs",expired:"Kartes derīgums ir beidzies"}},cvc:{label:"Drošības kods",placeholder:"CVC",error:{required:"OBLIGĀTI",incomplete:"Kartes drošības kods nav pilnīgs",invalid:"Kartes CVC nav derīgs"}},name:{label:"Kartes īpašnieka vārds",placeholder:"Vārds, uzvārds",error:{required:"OBLIGĀTI",invalid:"Norādiet savu vārdu un uzvārdu"}},pay:{button:"Maksāt"},compact:{button:"Karte"}},status:{success:"Panākumi",error:"Mēs nevaram pārbaudīt jūsu maksājuma metodes autentiskumu. Lūdzu, izvēlieties citu maksājumu metodi un mēģiniet vēlreiz."}},ms:{card:{title:"Kaedah pembayaran",number:{label:"Nombor kad",error:{required:"DIPERLUKAN",invalid:"Nombor kad anda tidak sah",incomplete:"Nombor kad anda tidak lengkap",unsupported:"Tipe kad tidak sah"}},expiry:{label:"Tarikh tamat tempoh",placeholder:"BB / TT",error:{required:"DIPERLUKAN",incomplete:"Tarikh tamat tempoh kad anda tidak lengkap",invalid:"Tarikh tamat tempoh kad anda tidak sah",expired:"Kad anda telah tamat tempoh"}},cvc:{label:"Kod keselamatan",placeholder:"CVC",error:{required:"DIPERLUKAN",incomplete:"Kod keselamatan kad anda tidak lengkap",invalid:"CVC kad anda tidak sah"}},name:{label:"Nama pemegang kad",placeholder:"Nama penuh",error:{required:"DIPERLUKAN",invalid:"Sila berikan nama penuh anda"}},pay:{button:"Bayar"},compact:{button:"Kad"}},status:{success:"Kejayaan",error:"Kami tidak dapat mengesahkan kaedah pembayaran anda. Sila pilih kaedah pembayaran lain dan cuba lagi."}},ru:{card:{title:"Метод оплаты",number:{label:"Номер карты",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Недопустимый номер карты",incomplete:"Номер карты неполон",unsupported:"Неподдерживаемый тип карты"}},expiry:{label:"Срок действия",placeholder:"ММ / ГГ",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Срок действия карты указан не полностью",invalid:"Указанный срок действия карты недействителен",expired:"Срок действия карты истек"}},cvc:{label:"Код безопасности",placeholder:"CVC",error:{required:"ОБЯЗАТЕЛЬНО",incomplete:"Код безопасности карты введен не полностью",invalid:"Код CVC карты недействителен"}},name:{label:"Имя владельца карты",placeholder:"Имя, фамилия",error:{required:"ОБЯЗАТЕЛЬНО",invalid:"Введите свое имя и фамилию"}},pay:{button:"Оплатить"},compact:{button:"Кредитная карта"}},status:{success:"Успех",error:"Мы не можем проверить подлинность вашего способа оплаты. Пожалуйста, выберите другой способ оплаты и повторите попытку."}},mt:{card:{title:"Metodu tal-ħlas",number:{label:"Numru tal-karta",error:{required:"MEĦTIEĠ/A",invalid:"In-numru tal-karta tiegħek mhuwiex tajjeb",incomplete:"In-numru tal-karta tiegħek mhuwiex komplut",unsupported:"Tip ta' karta mhux appoġġjat"}},expiry:{label:"Data tal-iskadenza",placeholder:"XX / SS",error:{required:"MEĦTIEĠ/A",incomplete:"Id-data tal-iskadenza tal-karta tiegħek mhix sħiħa",invalid:"Id-data tal-iskadenza tal-karta tiegħek mhix tajba",expired:"Il-karta tiegħek skadiet"}},cvc:{label:"Kodiċi tas-sigurtà",placeholder:"CVC",error:{required:"MEĦTIEĠ/A",incomplete:"Il-kodiċi tas-sigurtà tal-karta tiegħek mhux sħiħ",invalid:"Is-CVC tal-karta tiegħek mhux tajjeb"}},name:{label:"Isem id-detentur tal-karta",placeholder:"Isem u kunjom",error:{required:"MEĦTIEĠ/A",invalid:"Jekk jogħġbok ipprovdi isemek kollu"}},pay:{button:"Ħallas"},compact:{button:"Karta"}},status:{success:"Suċċess",error:"Aħna ma nistgħux jawtentikaw il-metodu tal-ħlas tiegħek. Jekk jogħġbok agħżel metodu ta' ħlas differenti u erġa' pprova."}},nb:{card:{title:"Betalingsmetode",number:{label:"Kortnummer",error:{required:"PÅKREVET",invalid:"Kortnummer er ugyldig",incomplete:"Kortnummeret er ufullstendig",unsupported:"Ikke understøttet korttype"}},expiry:{label:"Utløpsdato",placeholder:"MM / ÅÅ",error:{required:"PÅKREVET",incomplete:"Kortets utløpsdato er ufullstendig",invalid:"Kortets utløpsdato er ugyldig",expired:"Kortet er utløpt"}},cvc:{label:"Sikkerhetskode",placeholder:"CVC",error:{required:"PÅKREVET",incomplete:"Kortets sikkerhetskode er ufullstendig",invalid:"Kortets CVC-nummer er ugyldig"}},name:{label:"Kortinnehavers navn",placeholder:"Fullt navn",error:{required:"PÅKREVET",invalid:"Oppgi fullt navn"}},pay:{button:"Betal"},compact:{button:"Kort"}},status:{success:"Suksess",error:"Vi kan ikke godkjenne betalingsmåten din. Vennligst velg en annen betalingsmetode og prøv på nytt."}},nl:{card:{title:"Betaalmethode",number:{label:"Kaartnummer",error:{required:"VEREIST",invalid:"Je kaartnummer is ongeldig",incomplete:"Je kaartnummer is onvolledig",unsupported:"Niet ondersteund"}},expiry:{label:"Vervaldatum",placeholder:"MM / JJ",error:{required:"VEREIST",incomplete:"De vervaldatum van je kaart is onvolledig",invalid:"De vervaldatum van je betaalkaart is ongeldig",expired:"Je kaart is vervallen"}},cvc:{label:"Beveiligingscode",placeholder:"CVC",error:{required:"VEREIST",incomplete:"De beveiligingscode van je betaalkaart is onvolledig",invalid:"De CVC-code van je betaalkaart is ongeldig"}},name:{label:"Naam kaarthouder",placeholder:"Volledige naam",error:{required:"VEREIST",invalid:"Geef je volledige naam op"}},pay:{button:"Betalen"},compact:{button:"Kaart"}},status:{success:"Succes",error:"We kunnen je betaalmethode niet verifiëren. Kies een andere betaalmethode en probeer het opnieuw."}},pl:{card:{title:"Metoda płatności",number:{label:"Numer karty",error:{required:"WYMAGANE",invalid:"Numer karty jest nieprawidłowy",incomplete:"Numer karty jest niepełny",unsupported:"Nieobsługiwany typ karty"}},expiry:{label:"Data ważności",placeholder:"MM / RR",error:{required:"WYMAGANE",incomplete:"Data ważności karty jest niepełna",invalid:"Termin ważności karty jest nieprawidłowy",expired:"Karta straciła ważność"}},cvc:{label:"Kod bezpieczeństwa",placeholder:"Kod CVC",error:{required:"WYMAGANE",incomplete:"Kod zabezpieczający karty jest niekompletny",invalid:"CVC karty jest nieprawidłowy"}},name:{label:"Imię i nazwisko posiadacza karty",placeholder:"Imię i nazwisko",error:{required:"WYMAGANE",invalid:"Podaj pełne imię i nazwisko"}},pay:{button:"Zapłać"},compact:{button:"Karta"}},status:{success:"Sukces",error:"Nie możemy uwierzytelnić metody płatności. Wybierz inną metodę płatności i spróbuj ponownie."}},pt:{card:{title:"Forma de pagamento",number:{label:"Número do cartão",error:{required:"OBRIGATÓRIO",invalid:"O número do seu cartão é inválido",incomplete:"O número do seu cartão está incompleto",unsupported:"Tipo de cartão não suportado"}},expiry:{label:"Data de validade",placeholder:"MM / AA",error:{required:"OBRIGATÓRIO",incomplete:"A data de validade do cartão está incompleta",invalid:"A data de validade do seu cartão é inválida",expired:"O seu cartão expirou"}},cvc:{label:"Código de segurança",placeholder:"CVC",error:{required:"OBRIGATÓRIO",incomplete:"O código de segurança de seu cartão está incompleto",invalid:"O CVC do seu cartão é inválido"}},name:{label:"Nome do titular do cartão",placeholder:"Nome completo",error:{required:"OBRIGATÓRIO",invalid:"Forneça o seu nome completo"}},pay:{button:"Pagar"},compact:{button:"Cartão"}},status:{success:"Sucesso",error:"Não foi possível autenticar o seu método de pagamento. Selecione outro método de pagamento e tente novamente."}},ro:{card:{title:"Metoda de plată",number:{label:"Numărul cardului",error:{required:"NECESAR",invalid:"Numărul cardului dvs. nu este valid",incomplete:"Numărul cardului dvs. nu este complet",unsupported:"Tipul cardului nu este acceptat"}},expiry:{label:"Data de expirare",placeholder:"LL / AA",error:{required:"NECESAR",incomplete:"Data de expirare a cardului dvs. este incompletă",invalid:"Data de expirare a cardului dvs. nu este validă",expired:"Cardul dvs. a expirat"}},cvc:{label:"Codul de securitate",placeholder:"CVC",error:{required:"NECESAR",incomplete:"Codul de securitate al cardului dvs. este incomplet",invalid:"Numărul CVC al cardului dvs. nu este valid"}},name:{label:"Nume titular card",placeholder:"Nume complet",error:{required:"NECESAR",invalid:"Vă rugăm să furnizați numele dvs. complet"}},pay:{button:"Plătiți"},compact:{button:"Card"}},status:{success:"Succes",error:"Nu putem să vă autentificăm metoda de plată. Vă rugăm să alegeți o altă metodă de plată și să încercați din nou."}},sk:{card:{title:"Spôsob platby",number:{label:"Číslo karty",error:{required:"POŽADOVANÉ",invalid:"Číslo vašej karty je neplatné",incomplete:"Číslo vašej karty je neúplné",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Dátum ukončenia platnosti",placeholder:"MM / RR",error:{required:"POŽADOVANÉ",incomplete:"Dátum vypršania platnosti vašej karty je neúplný",invalid:"Dátum vypršania platnosti vašej karty je neplatný",expired:"Platnosť vašej karty vypršala"}},cvc:{label:"Bezpečnostný kód",placeholder:"CVC",error:{required:"POŽADOVANÉ",incomplete:"Bezpečnostný kód vašej karty je neúplný",invalid:"Číslo CVC vašej karty je neplatné"}},name:{label:"Držiteľ karty",placeholder:"Celé meno",error:{required:"POŽADOVANÉ",invalid:"Zadajte vaše celé meno"}},pay:{button:"Zaplatiť"},compact:{button:"Karta"}},status:{success:"Úspech",error:"Nemôžeme overiť váš spôsob platby. Vyberte si iný spôsob platby a skúste to znova."}},sl:{card:{title:"Način plačila",number:{label:"Številka kartice",error:{required:"OBVEZNO",invalid:"Številka vaše kartice ni veljavna",incomplete:"Številka vaše kartice ni popolna",unsupported:"Nepodprta vrsta kartice"}},expiry:{label:"Datum poteka",placeholder:"MM / LL",error:{required:"OBVEZNO",incomplete:"Datum poteka vaše kartice ni popoln",invalid:"Datum poteka vaše kartice ni veljaven",expired:"Vaša kartica je potekla"}},cvc:{label:"Varnostna koda",placeholder:"CVC",error:{required:"OBVEZNO",incomplete:"Varnostna koda vaše kartice ni popolna",invalid:"Koda CVC vaše kartice ni veljavna"}},name:{label:"Ime imetnika kartice",placeholder:"Polno ime",error:{required:"OBVEZNO",invalid:"Vnesite svoje polno ime"}},pay:{button:"Plačaj"},compact:{button:"Kartica"}},status:{success:"Uspeh",error:"Vašega načina plačila ne moremo preveriti. Izberite drug način plačila in poskusite znova."}},sv:{card:{title:"Betalningsmetod",number:{label:"Kortnummer",error:{required:"OBLIGATORISKT",invalid:"Ditt kortnummer är ogiltigt",incomplete:"Kortnumret är ofullständigt",unsupported:"Nepodporovaný typ karty"}},expiry:{label:"Sista giltighetsdag",placeholder:"MM / ÅÅ",error:{required:"OBLIGATORISKT",incomplete:"Kortets utgångsdatum är ofullständigt",invalid:"Kortets utgångsdatum är ogiltigt",expired:"Ditt kort har gått ut"}},cvc:{label:"Säkerhetskod",placeholder:"CVC",error:{required:"OBLIGATORISKT",incomplete:"Kortets säkerhetskod är ofullständig",invalid:"Kortets CVC-kod är ogiltig"}},name:{label:"Kortinnehavarens namn",placeholder:"Fullständigt namn",error:{required:"OBLIGATORISKT",invalid:"Ange ditt fullständiga namn"}},pay:{button:"Betala"},compact:{button:"Kort"}},status:{success:"Framgång",error:"Vi kan inte verifiera din betalningsmetod. Vänligen välj en annan betalningsmetod och försök igen."}},th:{card:{title:"วิธีการชำระเงิน",number:{label:"หมายเลขบัตร",error:{required:"ต้องป้อนข้อมูล",invalid:"หมายเลขบัตรของคุณไม่ถูกต้อง",incomplete:"หมายเลขบัตรของคุณไม่ครบถ้วน",unsupported:"ประเภทบัตรของคุณไม่ถูกต้อง"}},expiry:{label:"วันหมดอายุ",placeholder:"ดด / ปป",error:{required:"ต้องป้อนข้อมูล",incomplete:"วันที่หมดอายุของบัตรไม่ครบถ้วน",invalid:"วันที่หมดอายุของบัตรไม่ถูกต้อง",expired:"บัตรของคุณหมดอายุแล้ว"}},cvc:{label:"รหัสความปลอดภัย",placeholder:"CVC",error:{required:"ต้องป้อนข้อมูล",incomplete:"รหัสความปลอดภัยของบัตรไม่ครบถ้วน",invalid:"CVC ของบัตรไม่ถูกต้อง"}},name:{label:"ชื่อเจ้าของบัตร",placeholder:"ชื่อ-นามสกุล",error:{required:"ต้องป้อนข้อมูล",invalid:"โปรดป้อนชื่อ-นามสกุล"}},pay:{button:"ชำระเงิน"},compact:{button:"การ์ด"}},status:{success:"ความสำเร็จ",error:"เราไม่สามารถตรวจสอบวิธีการชำระเงินของคุณได้ โปรดเลือกวิธีการชำระเงินอื่นแล้วลองอีกครั้ง"}},tr:{card:{title:"Ödeme yöntemi",number:{label:"Kart numarası",error:{required:"GEREKLI",invalid:"Kart numaranız geçersiz",incomplete:"Kart numaranız eksik",unsupported:"Desteklenmeyen kart türü"}},expiry:{label:"Son Kullanma Tarihi",placeholder:"AA / YY",error:{required:"GEREKLI",incomplete:"Kartınızın son kullanma tarihi eksik",invalid:"Kartınızın son kullanım tarihi geçersiz",expired:"Kartınızın süresi dolmuş"}},cvc:{label:"Güvenlik kodu",placeholder:"CVC",error:{required:"GEREKLI",incomplete:"Kartınızın güvenlik kodu eksik",invalid:"Kartınızın CVC'si geçersiz"}},name:{label:"Kart sahibinin adı",placeholder:"Ad ve soyadı",error:{required:"GEREKLI",invalid:"Lütfen tam adınızı girin"}},pay:{button:"Öde"},compact:{button:"Kart"}},status:{success:"Başarı",error:"Ödeme yönteminizi doğrulayamıyoruz. Lütfen farklı bir ödeme yöntemi seçin ve tekrar deneyin."}},vi:{card:{title:"Phương thức thanh toán",number:{label:"Số thẻ",error:{required:"BẮT BUỘC",invalid:"Số thẻ của quý vị không hợp lệ",incomplete:"Số thẻ của quý vị không đầy đủ",unsupported:"Không hỗ trợ loại thẻ"}},expiry:{label:"Ngày hết hạn",placeholder:"MM / YY",error:{required:"BẮT BUỘC",incomplete:"Ngày hết hạn trên thẻ không hợp lệ",invalid:"Ngày hết hạn của thẻ không hợp lệ",expired:"Thẻ của quý vị đã hết hạn"}},cvc:{label:"Mã bảo mật",placeholder:"CVC",error:{required:"BẮT BUỘC",incomplete:"Mã bảo mật của thẻ không đầy đủ",invalid:"CVC thẻ của bạn không hợp lệ"}},name:{label:"Tên chủ thẻ",placeholder:"Họ và tên",error:{required:"BẮT BUỘC",invalid:"Vui lòng cung cấp tên đầy đủ của bạn"}},pay:{button:"Thanh toán"},compact:{button:"Thẻ"}},status:{success:"Thành công",error:"Chúng tôi không thể xác thực phương thức thanh toán của bạn. Vui lòng chọn phương thức thanh toán khác và thử lại."}},zh:{card:{title:"支付方式",number:{label:"卡号",error:{required:"必填",invalid:"您的卡号无效",incomplete:"您的银行卡卡号不完整",unsupported:"不支持的卡类型"}},expiry:{label:"有效期",placeholder:"月份 / 年份",error:{required:"必填",incomplete:"您银行卡的有效期不完整",invalid:"您银行卡的有效期无效",expired:"您的银行卡已过期"}},cvc:{label:"安全代码",placeholder:"CVC",error:{required:"必填",incomplete:"您银行卡的安全码不完整",invalid:"您银行卡的 CVC 无效"}},name:{label:"持卡人姓名",placeholder:"全名",error:{required:"必填",invalid:"请提供您的全名"}},pay:{button:"支付"},compact:{button:"卡片"}},status:{success:"成功",error:"我们无法验证您的付款方式。请选择其他付款方式并重试。"}}},tn=()=>{const e=Qt?navigator?.language.split("-")[0]:"";return en[e]||en.en},vo=e=>e&&en[e]||tn(),bo={messages:tn(),locale:Qt?navigator?.language.split("-")[0]:"en"},kt=f.createContext(bo),Me=()=>{const{messages:e}=f.useContext(kt);return e},xo=()=>{const{locale:e}=f.useContext(kt);return e},Co=()=>{const{locale:e}=f.useContext(kt);return e==="ar"?"rtl":"ltr"},wo=({children:e,translate:t,locale:n="en"})=>{const r=vo(n),i={card:{title:t?.card?.title||r.card.title,number:{label:t?.card?.number?.label||r.card.number.label,error:{required:t?.card?.number?.error?.required||r.card.number.error.required,invalid:t?.card?.number?.error?.invalid||r.card.number.error.invalid,incomplete:t?.card?.number?.error?.incomplete||r.card.number.error.incomplete,unsupported:t?.card?.number?.error?.unsupported||r.card.number.error.unsupported}},expiry:{label:t?.card?.expiry?.label||r.card.expiry.label,placeholder:t?.card?.expiry?.placeholder||r.card.expiry.placeholder,error:{required:t?.card?.expiry?.error?.required||r.card.expiry.error.required,invalid:t?.card?.expiry?.error?.invalid||r.card.expiry.error.invalid,incomplete:t?.card?.expiry?.error?.incomplete||r.card.expiry.error.incomplete,expired:t?.card?.expiry?.error?.expired||r.card.expiry.error.expired}},cvc:{label:t?.card?.cvc?.label||r.card.cvc.label,placeholder:t?.card?.cvc?.placeholder||r.card.cvc.placeholder,error:{required:t?.card?.cvc?.error?.required||r.card.cvc.error.required,incomplete:t?.card?.cvc?.error?.incomplete||r.card.cvc.error.incomplete,invalid:t?.card?.cvc?.error?.invalid||r.card.cvc.error.invalid}},name:{label:t?.card?.name?.label||r.card.name.label,placeholder:t?.card?.name?.placeholder||r.card.name.placeholder,error:{required:t?.card?.name?.error?.required||r.card.name.error.required,invalid:t?.card?.name?.error?.invalid||r.card.name.error.invalid}},pay:{button:t?.card?.pay?.button||r.card.pay.button},compact:{button:t?.card?.compact?.button||r.card.compact.button}},status:{success:t?.status?.success||r.status.success,error:t?.status?.error||r.status.error}};return p.jsx(kt.Provider,{value:{messages:i,locale:n},children:e})},Mr=f.createContext(null),ko=()=>f.useContext(Mr),To={appId:"",teamId:"",ev:null},Ir=f.createContext(To),Dr=()=>f.useContext(Ir),nn=f.createContext(null);function Po(){if(typeof window>"u")return null;if(typeof ve.useContext!="function")throw new Error("You must use React >= 18.0 in order to use useEvervault()");const e=ve.useContext(nn);if(!e)throw new Error("You must wrap your app in an <EvervaultProvider> to use useEvervault()");return e}f.createContext(void 0);class So extends Promise{async encrypt(t){return(await this).encrypt(t)}async decrypt(t,n){return(await this).decrypt(t,n)}}const Ao="https://js.evervault.com/v2";function Eo(e){const t=document.createElement("script");e&&e!==""?t.src=e:t.src=Ao;const n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Evervault.js requires a <body> element.");return n.appendChild(t),t}let rn=null;function _o(e,t){return rn!==null||(rn=new Promise((n,r)=>{if(typeof window>"u"){n(void 0);return}if(window.Evervault){console.warn("Evervault has already been loaded"),n(window.Evervault);return}try{const i=Eo(e);i.addEventListener("load",()=>{window.Evervault?n(window.Evervault):(t?.(),r(new Error("Evervault.js not available")))}),i.addEventListener("error",()=>{t?.(),r(new Error("Failed to load Evervault.js"))})}catch(i){r(i)}})),rn}function jo(e,t){const n=Promise.resolve().then(()=>_o(e,t));let r=!1;return n.catch(i=>{r||console.warn(i)}),r=!0,n.then(i=>typeof window<"u"?window.Evervault:i??void 0)}const Vo=({teamId:e,appId:t,customConfig:n,children:r,onLoadError:i,...s})=>{if(typeof window>"u")return ve.createElement(nn.Provider,{value:null},r);const a=ve.useMemo(()=>new So((o,l)=>{jo(n?.jsSdkUrl,i).then(u=>{u!==void 0?o(new u(e,t,n)):(console.error("Evervault.js not available"),l("Evervault.js not available"))}).catch(u=>l(u))}),[]);return ve.createElement(nn.Provider,{...s,value:a},r)};let Tt=null;async function Ro(){return Tt||(Tt=new Promise((e,t)=>{const n=document.createElement("script");if(n.src="https://js.evervault.com/v2",n.onload=()=>e(),n.onerror=()=>{Tt=null,t()},!document.head)throw new Error("Expected document.head not to be null. Evervault.js requires a <head> element.");document.head.appendChild(n)}),Tt)}async function Lr(){if(window.Evervault)return window.Evervault;try{return await Ro(),window.Evervault}catch{throw new Error("Failed to load Evervault.js")}}async function Mo(e,t,n){const r=await Lr();return new r(e,t,n)}Promise.resolve().then(()=>{Lr()});const Io=({children:e,evConfig:t})=>{const[n,r]=f.useState(null),i=f.useMemo(()=>t?{...t,ev:n}:null,[t,n]);return f.useEffect(()=>{t&&Mo(t.teamId,t.appId).then(s=>r(s)).catch(console.error)},[t]),!t||!i?null:p.jsx(Vo,{...t,children:p.jsx(Ir.Provider,{value:i,children:e})})},Nr={googlePay:"_googlePay_1a960_1",hidden:"_hidden_1a960_17"};function Or(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function le(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Or(e))&&(r&&(r+=" "),r+=t);return r}const Br="ab-ev-google-pay-container",Do=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,transaction:s,locale:a})=>{const{ev:o}=Dr(),[l,u]=f.useState(!1),[c,d]=f.useState(null);return f.useEffect(()=>{c&&(t&&c.on("cancel",t),n&&c.on("error",n),r&&c.on("success",r))},[c,t,n,r]),f.useEffect(()=>{if(o)try{const h=o.transactions.create(s),m=o.ui.googlePay(h,{locale:a,size:{width:"100%",height:"42px"},billingAddress:{phoneNumber:!0},process:async(g,{fail:y})=>{try{e(g)}catch(b){console.error(b),y({message:"Cannot pay with payment credentials"})}}});m.on("ready",()=>{u(!0),i?.()}),d(m),m.unmount(),m.mount(`#${Br}`)}catch(h){console.error(h),u(!1),i?.()}},[o,s,a,e,i]),p.jsx("div",{id:Br,className:le(Nr.googlePay,l?void 0:Nr.hidden)})},qr={applePay:"_applePay_sei4a_1",hidden:"_hidden_sei4a_22"},Lo=typeof window<"u"&&typeof document<"u",sn="ab-ev-apple-pay-container",No=async e=>{if(Lo){const t=document.getElementById(sn);t&&(t.innerHTML="")}await e.mount(`#${sn}`)},Oo=({onSubmit:e,onCancel:t,onError:n,onSuccess:r,onReady:i,locale:s,transaction:a,supportedCardTypes:o})=>{const{ev:l}=Dr(),[u,c]=f.useState(!1),[d,h]=f.useState(null),[m,g]=f.useState(null);return f.useEffect(()=>{m&&(t&&m.on("cancel",t),n&&m.on("error",(y="")=>n(y)),r&&m.on("success",r))},[m,t,n,r]),f.useEffect(()=>{if(!l)return;(async()=>{try{const b=l.transactions.create(a),v=l.ui.applePay(b,{locale:s,borderRadius:12,size:{width:"100%",height:"40px"},allowedCardNetworks:o,requestBillingAddress:!0,requestPayerDetails:["name","email","phone"],process:async(k,{fail:x})=>{try{e(k)}catch(T){console.error(T),x({message:"Cannot pay with payment credentials"})}}});if(!d){h(await v.availability());return}if(d!=="available")throw new Error("Apple Pay is not available");await No(v),g(v),c(!0),i?.()}catch(b){console.error(b),c(!1),i?.()}})()},[l,a,o,s,d,e,i]),p.jsx("div",{id:sn,className:le(qr.applePay,u?void 0:qr.hidden)})},Bo=({children:e,clientToken:t})=>{const[n,r]=f.useState(null),i=f.useMemo(()=>n?.evervault&&{appId:n.evervault.app_id,teamId:n.evervault.team_id},[n?.evervault]);return f.useEffect(()=>{go(t).then(s=>r(s)).catch(console.error)},[t]),p.jsx(Mr.Provider,{value:n,children:p.jsx(Io,{evConfig:i,children:e})})},Pt={button:"_button_qsmkn_1",primary:"_primary_qsmkn_11",success:"_success_qsmkn_15",loading:"_loading_qsmkn_19",press:"_press_qsmkn_24"},Fr=({color:e,isLoading:t,children:n,onClick:r,onMouseUp:i,onMouseOut:s,onMouseDown:a,...o})=>{const[l,u]=f.useState(!1),c=f.useCallback(g=>{t||o.disabled||r?.(g)},[r,t,o.disabled]),d=f.useCallback(g=>{u(!0),a?.(g)},[a]),h=f.useCallback(g=>{u(!1),i?.(g)},[i]),m=f.useCallback(g=>{u(!1),s?.(g)},[s]);return p.jsx("button",{...o,onClick:c,onMouseDown:d,onMouseUp:h,onMouseOut:m,className:le(Pt.button,e&&Pt[e],t&&Pt.loading,l&&Pt.press,o.className),style:o.style,children:n})};var an,Kr;function qo(){if(Kr)return an;Kr=1;var e={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}};return an=e,an}var Ze={},Xe={},zr;function $r(){if(zr)return Xe;zr=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.clone=void 0;function e(t){return t?JSON.parse(JSON.stringify(t)):null}return Xe.clone=e,Xe}var Je={},Ur;function Fo(){if(Ur)return Je;Ur=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.matches=void 0;function e(r,i,s){var a=String(i).length,o=r.substr(0,a),l=parseInt(o,10);return i=parseInt(String(i).substr(0,o.length),10),s=parseInt(String(s).substr(0,o.length),10),l>=i&&l<=s}function t(r,i){return i=String(i),i.substring(0,r.length)===r.substring(0,i.length)}function n(r,i){return Array.isArray(i)?e(r,i[0],i[1]):t(r,i)}return Je.matches=n,Je}var Gr;function Ko(){if(Gr)return Ze;Gr=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.addMatchingCardsToResults=void 0;var e=$r(),t=Fo();function n(r,i,s){var a,o;for(a=0;a<i.patterns.length;a++){var l=i.patterns[a];if((0,t.matches)(r,l)){var u=(0,e.clone)(i);Array.isArray(l)?o=String(l[0]).length:o=String(l).length,r.length>=o&&(u.matchStrength=o),s.push(u);break}}}return Ze.addMatchingCardsToResults=n,Ze}var Qe={},Wr;function zo(){if(Wr)return Qe;Wr=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.isValidInputType=void 0;function e(t){return typeof t=="string"||t instanceof String}return Qe.isValidInputType=e,Qe}var et={},Yr;function $o(){if(Yr)return et;Yr=1,Object.defineProperty(et,"__esModule",{value:!0}),et.findBestMatch=void 0;function e(n){var r=n.filter(function(i){return i.matchStrength}).length;return r>0&&r===n.length}function t(n){return e(n)?n.reduce(function(r,i){return!r||Number(r.matchStrength)<Number(i.matchStrength)?i:r}):null}return et.findBestMatch=t,et}var tt,Hr;function Uo(){if(Hr)return tt;Hr=1;var e=tt&&tt.__assign||function(){return e=Object.assign||function(g){for(var y,b=1,v=arguments.length;b<v;b++){y=arguments[b];for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(g[k]=y[k])}return g},e.apply(this,arguments)},t=qo(),n=Ko(),r=zo(),i=$o(),s=$r(),a={},o={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},l=[o.VISA,o.MASTERCARD,o.AMERICAN_EXPRESS,o.DINERS_CLUB,o.DISCOVER,o.JCB,o.UNIONPAY,o.MAESTRO,o.ELO,o.MIR,o.HIPER,o.HIPERCARD],u=(0,s.clone)(l);function c(g){return a[g]||t[g]}function d(){return u.map(function(g){return(0,s.clone)(c(g))})}function h(g,y){y===void 0&&(y=!1);var b=u.indexOf(g);if(!y&&b===-1)throw new Error('"'+g+'" is not a supported card type.');return b}function m(g){var y=[];if(!(0,r.isValidInputType)(g))return y;if(g.length===0)return d();u.forEach(function(v){var k=c(v);(0,n.addMatchingCardsToResults)(g,k,y)});var b=(0,i.findBestMatch)(y);return b?[b]:y}return m.getTypeInfo=function(g){return(0,s.clone)(c(g))},m.removeCard=function(g){var y=h(g);u.splice(y,1)},m.addCard=function(g){var y=h(g.type,!0);a[g.type]=g,y===-1&&u.push(g.type)},m.updateCard=function(g,y){var b=a[g]||t[g];if(!b)throw new Error('"'.concat(g,"\" is not a recognized type. Use `addCard` instead.'"));if(y.type&&b.type!==y.type)throw new Error("Cannot overwrite type parameter.");var v=(0,s.clone)(b);v=e(e({},v),y),a[v.type]=v},m.changeOrder=function(g,y){var b=h(g);u.splice(b,1),u.splice(y,0,g)},m.resetModifications=function(){u=(0,s.clone)(l),a={}},m.types=o,tt=m,tt}var Ie=Uo();Ie.updateCard("visa",{lengths:[16]}),Ie.updateCard("unionpay",{gaps:[4,8,12,16]});const Go=(e,t)=>{const n=Ie.getTypeInfo(t),r=e.replace(/\D/g,""),i=n?.gaps||[4,8,12],s=n?Math.max(...n.lengths)+i.length:19,a=[0].concat(i,r.length),o=[];for(let l=0;a[l]<r.length;l++){const u=a[l],c=Math.min(a[l+1],r.length);o.push(r.slice(u,c))}return o.join(" ").slice(0,s)},on=(e,t)=>{const r=Ie.getTypeInfo(t)?.code.size||4;return e.replace(/\D/g,"").slice(0,r)},Wo=(e,t)=>{const n=e.replace(/\D/g,"");let r=n.slice(0,2);if(!r)return"";const i=Number(r);if(r!=="01"){if(Number.isNaN(i))return"0";if(i===0||i===1)return`${i}`;if(i>12)return"1";r=i>9?`${i}`:`0${i}`}if(e.length<t.length){const a=Number(e[e.length-1]);if(Number.isNaN(a))return r}const s=n.slice(2,4);return`${r} / ${s}`},St={card:"_card_ji6om_1",cardDataContainer:"_cardDataContainer_ji6om_23",payButton:"_payButton_ji6om_34",spinner:"_spinner_ji6om_38"},te={wrapper:"_wrapper_1n2ol_1",inputContainer:"_inputContainer_1n2ol_5",inputFocus:"_inputFocus_1n2ol_10",input:"_input_1n2ol_5",endContent:"_endContent_1n2ol_20",errorInput:"_errorInput_1n2ol_24",error:"_error_1n2ol_24",label:"_label_1n2ol_32",labelError:"_labelError_1n2ol_36",disabled:"_disabled_1n2ol_40",disabledInput:"_disabledInput_1n2ol_44"},ln=f.createContext({});function cn(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const un=typeof window<"u",Zr=un?f.useLayoutEffect:f.useEffect,At=f.createContext(null);function dn(e,t){e.indexOf(t)===-1&&e.push(t)}function pn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const he=(e,t,n)=>n>t?t:n<e?e:n;let De=()=>{},fe=()=>{};process.env.NODE_ENV!=="production"&&(De=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},fe=(e,t)=>{if(!e)throw new Error(t)});const me={},Xr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Jr(e){return typeof e=="object"&&e!==null}const Qr=e=>/^0[^.\s]+$/u.test(e);function hn(e){let t;return()=>(t===void 0&&(t=e()),t)}const ne=e=>e,Yo=(e,t)=>n=>t(e(n)),nt=(...e)=>e.reduce(Yo),rt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class fn{constructor(){this.subscriptions=[]}add(t){return dn(this.subscriptions,t),()=>pn(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ae=e=>e*1e3,ce=e=>e/1e3;function ei(e,t){return t?e*(1e3/t):0}const ti=new Set;function mn(e,t,n){e||ti.has(t)||(console.warn(t),ti.add(t))}const ni=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ho=1e-7,Zo=12;function Xo(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=ni(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Ho&&++o<Zo);return a}function it(e,t,n,r){if(e===t&&n===r)return ne;const i=s=>Xo(s,0,1,e,n);return s=>s===0||s===1?s:ni(i(s),t,r)}const ri=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ii=e=>t=>1-e(1-t),si=it(.33,1.53,.69,.99),gn=ii(si),ai=ri(gn),oi=e=>(e*=2)<1?.5*gn(e):.5*(2-Math.pow(2,-10*(e-1))),yn=e=>1-Math.sin(Math.acos(e)),li=ii(yn),ci=ri(yn),Jo=it(.42,0,1,1),Qo=it(0,0,.58,1),ui=it(.42,0,.58,1),el=e=>Array.isArray(e)&&typeof e[0]!="number",di=e=>Array.isArray(e)&&typeof e[0]=="number",pi={linear:ne,easeIn:Jo,easeInOut:ui,easeOut:Qo,circIn:yn,circInOut:ci,circOut:li,backIn:gn,backInOut:ai,backOut:si,anticipate:oi},tl=e=>typeof e=="string",hi=e=>{if(di(e)){fe(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return it(t,n,r,i)}else if(tl(e))return fe(pi[e]!==void 0,`Invalid easing type '${e}'`),pi[e];return e},Et=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],fi={value:null};function nl(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){a.has(d)&&(c.schedule(d),e()),l++,d(o)}const c={schedule:(d,h=!1,m=!1)=>{const y=m&&i?n:r;return h&&a.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(o=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&fi.value&&fi.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const rl=40;function mi(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Et.reduce((x,T)=>(x[T]=nl(s,t?T:void 0),x),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const x=me.useManualTiming?i.timestamp:performance.now();n=!1,me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,rl),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Et.reduce((x,T)=>{const w=a[T];return x[T]=(P,E=!1,S=!1)=>(n||b(),w.schedule(P,E,S)),x},{}),cancel:x=>{for(let T=0;T<Et.length;T++)a[Et[T]].cancel(x)},state:i,steps:a}}const{schedule:D,cancel:be,state:$,steps:vn}=mi(typeof requestAnimationFrame<"u"?requestAnimationFrame:ne,!0);let _t;function il(){_t=void 0}const J={now:()=>(_t===void 0&&J.set($.isProcessing||me.useManualTiming?$.timestamp:performance.now()),_t),set:e=>{_t=e,queueMicrotask(il)}},gi=e=>t=>typeof t=="string"&&t.startsWith(e),bn=gi("--"),sl=gi("var(--"),xn=e=>sl(e)?al.test(e.split("/*")[0].trim()):!1,al=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Le={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},st={...Le,transform:e=>he(0,1,e)},jt={...Le,default:1},at=e=>Math.round(e*1e5)/1e5,Cn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ol(e){return e==null}const ll=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wn=(e,t)=>n=>!!(typeof n=="string"&&ll.test(n)&&n.startsWith(e)||t&&!ol(n)&&Object.prototype.hasOwnProperty.call(n,t)),yi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(Cn);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},cl=e=>he(0,255,e),kn={...Le,transform:e=>Math.round(cl(e))},Pe={test:wn("rgb","red"),parse:yi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kn.transform(e)+", "+kn.transform(t)+", "+kn.transform(n)+", "+at(st.transform(r))+")"};function ul(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Tn={test:wn("#"),parse:ul,transform:Pe.transform},ot=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xe=ot("deg"),ue=ot("%"),A=ot("px"),dl=ot("vh"),pl=ot("vw"),vi={...ue,parse:e=>ue.parse(e)/100,transform:e=>ue.transform(e*100)},Ne={test:wn("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ue.transform(at(t))+", "+ue.transform(at(n))+", "+at(st.transform(r))+")"},G={test:e=>Pe.test(e)||Tn.test(e)||Ne.test(e),parse:e=>Pe.test(e)?Pe.parse(e):Ne.test(e)?Ne.parse(e):Tn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pe.transform(e):Ne.transform(e)},hl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fl(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cn)?.length||0)+(e.match(hl)?.length||0)>0}const bi="number",xi="color",ml="var",gl="var(",Ci="${}",yl=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(yl,l=>(G.test(l)?(r.color.push(s),i.push(xi),n.push(G.parse(l))):l.startsWith(gl)?(r.var.push(s),i.push(ml),n.push(l)):(r.number.push(s),i.push(bi),n.push(parseFloat(l))),++s,Ci)).split(Ci);return{values:n,split:o,indexes:r,types:i}}function wi(e){return lt(e).values}function ki(e){const{split:t,types:n}=lt(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===bi?s+=at(i[a]):o===xi?s+=G.transform(i[a]):s+=i[a]}return s}}const vl=e=>typeof e=="number"?0:e;function bl(e){const t=wi(e);return ki(e)(t.map(vl))}const Ce={test:fl,parse:wi,createTransformer:ki,getAnimatableNone:bl};function Pn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Pn(l,o,e+1/3),s=Pn(l,o,e),a=Pn(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Vt(e,t){return n=>n>0?t:e}const L=(e,t,n)=>e+(t-e)*n,Sn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Cl=[Tn,Pe,Ne],wl=e=>Cl.find(t=>t.test(e));function Ti(e){const t=wl(e);if(De(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ne&&(n=xl(n)),n}const Pi=(e,t)=>{const n=Ti(e),r=Ti(t);if(!n||!r)return Vt(e,t);const i={...n};return s=>(i.red=Sn(n.red,r.red,s),i.green=Sn(n.green,r.green,s),i.blue=Sn(n.blue,r.blue,s),i.alpha=L(n.alpha,r.alpha,s),Pe.transform(i))},An=new Set(["none","hidden"]);function kl(e,t){return An.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tl(e,t){return n=>L(e,t,n)}function En(e){return typeof e=="number"?Tl:typeof e=="string"?xn(e)?Vt:G.test(e)?Pi:Al:Array.isArray(e)?Si:typeof e=="object"?G.test(e)?Pi:Pl:Vt}function Si(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>En(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function Pl(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=En(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Sl(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const Al=(e,t)=>{const n=Ce.createTransformer(t),r=lt(e),i=lt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?An.has(e)&&!i.values.length||An.has(t)&&!r.values.length?kl(e,t):nt(Si(Sl(r,i),i.values),n):(De(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Vt(e,t))};function Ai(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?L(e,t,n):En(e)(e,t)}const El=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>D.update(t,n),stop:()=>be(t),now:()=>$.isProcessing?$.timestamp:J.now()}},Ei=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Rt=2e4;function _n(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rt;)t+=n,r=e.next(t);return t>=Rt?1/0:t}function _l(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(_n(r),Rt);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ce(i)}}const jl=5;function _i(e,t,n){const r=Math.max(t-jl,0);return ei(n-e(r),t-r)}const N={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ji=.001;function Vl({duration:e=N.duration,bounce:t=N.bounce,velocity:n=N.velocity,mass:r=N.mass}){let i,s;De(e<=ae(N.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=he(N.minDamping,N.maxDamping,a),e=he(N.minDuration,N.maxDuration,ce(e)),a<1?(i=u=>{const c=u*a,d=c*e,h=c-n,m=jn(u,a),g=Math.exp(-d);return ji-h/m*g},s=u=>{const d=u*a*e,h=d*n+n,m=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=jn(Math.pow(u,2),a);return(-i(u)+ji>0?-1:1)*((h-m)*g)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=Ml(i,s,o);if(e=ae(e),isNaN(l))return{stiffness:N.stiffness,damping:N.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const Rl=12;function Ml(e,t,n){let r=n;for(let i=1;i<Rl;i++)r=r-e(r)/t(r);return r}function jn(e,t){return e*Math.sqrt(1-t*t)}const Il=["duration","bounce"],Dl=["stiffness","damping","mass"];function Vi(e,t){return t.some(n=>e[n]!==void 0)}function Ll(e){let t={velocity:N.velocity,stiffness:N.stiffness,damping:N.damping,mass:N.mass,isResolvedFromDuration:!1,...e};if(!Vi(e,Dl)&&Vi(e,Il))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*he(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:N.mass,stiffness:i,damping:s}}else{const n=Vl(e);t={...t,...n,mass:N.mass},t.isResolvedFromDuration=!0}return t}function Mt(e=N.visualDuration,t=N.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:m}=Ll({...n,velocity:-ce(n.velocity||0)}),g=h||0,y=u/(2*Math.sqrt(l*c)),b=a-s,v=ce(Math.sqrt(l/c)),k=Math.abs(b)<5;r||(r=k?N.restSpeed.granular:N.restSpeed.default),i||(i=k?N.restDelta.granular:N.restDelta.default);let x;if(y<1){const w=jn(v,y);x=P=>{const E=Math.exp(-y*v*P);return a-E*((g+y*v*b)/w*Math.sin(w*P)+b*Math.cos(w*P))}}else if(y===1)x=w=>a-Math.exp(-v*w)*(b+(g+v*b)*w);else{const w=v*Math.sqrt(y*y-1);x=P=>{const E=Math.exp(-y*v*P),S=Math.min(w*P,300);return a-E*((g+y*v*b)*Math.sinh(S)+w*b*Math.cosh(S))/w}}const T={calculatedDuration:m&&d||null,next:w=>{const P=x(w);if(m)o.done=w>=d;else{let E=w===0?g:0;y<1&&(E=w===0?ae(g):_i(x,w,P));const S=Math.abs(E)<=r,V=Math.abs(a-P)<=i;o.done=S&&V}return o.value=o.done?a:P,o},toString:()=>{const w=Math.min(_n(T),Rt),P=Ei(E=>T.next(w*E).value,w,30);return w+"ms "+P},toTransition:()=>{}};return T}Mt.applyToOptions=e=>{const t=_l(e,100,Mt);return e.ease=t.ease,e.duration=ae(t.duration),e.type="keyframes",e};function Vn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],h={done:!1,value:d},m=S=>o!==void 0&&S<o||l!==void 0&&S>l,g=S=>o===void 0?l:l===void 0||Math.abs(o-S)<Math.abs(l-S)?o:l;let y=n*t;const b=d+y,v=a===void 0?b:a(b);v!==b&&(y=v-d);const k=S=>-y*Math.exp(-S/r),x=S=>v+k(S),T=S=>{const V=k(S),M=x(S);h.done=Math.abs(V)<=u,h.value=h.done?v:M};let w,P;const E=S=>{m(h.value)&&(w=S,P=Mt({keyframes:[h.value,g(h.value)],velocity:_i(x,S,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:S=>{let V=!1;return!P&&w===void 0&&(V=!0,T(S),E(S)),w!==void 0&&S>=w?P.next(S-w):(!V&&T(S),h)}}}function Nl(e,t,n){const r=[],i=n||me.mix||Ai,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ne:t;o=nt(l,o)}r.push(o)}return r}function Ol(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(fe(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Nl(t,r,i),l=o.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const h=rt(e[d],e[d+1],c);return o[d](h)};return n?c=>u(he(e[0],e[s-1],c)):u}function Bl(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=rt(0,t,r);e.push(L(n,1,i))}}function ql(e){const t=[0];return Bl(t,e.length-1),t}function Fl(e,t){return e.map(n=>n*t)}function Kl(e,t){return e.map(()=>t||ui).splice(0,e.length-1)}function Oe({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=el(r)?r.map(hi):hi(r),s={done:!1,value:t[0]},a=Fl(n&&n.length===t.length?n:ql(t),e),o=Ol(a,t,{ease:Array.isArray(i)?i:Kl(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const zl=e=>e!==null;function Rn(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(zl),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const $l={decay:Vn,inertia:Vn,tween:Oe,keyframes:Oe,spring:Mt};function Ri(e){typeof e.type=="string"&&(e.type=$l[e.type])}class Mn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ul=e=>e/100;class In extends Mn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(n=!0)=>{if(n){const{motionValue:r}=this.options;r&&r.updatedAt!==J.now()&&this.tick(J.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ri(t);const{type:n=Oe,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Oe;process.env.NODE_ENV!=="production"&&l!==Oe&&fe(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Oe&&typeof o[0]!="number"&&(this.mixKeyframes=nt(Ul,Ai(o[0],o[1])),o=[0,100]);const u=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=_n(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:m,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,T=r;if(d){const S=Math.min(this.currentTime,i)/o;let V=Math.floor(S),M=S%1;!M&&S>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(h==="reverse"?(M=1-M,m&&(M-=m/o)):h==="mirror"&&(T=a)),x=he(0,1,M)*o}const w=k?{done:!1,value:c[0]}:T.next(x);s&&(w.value=s(w.value));let{done:P}=w;!k&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&g!==Vn&&(w.value=Rn(c,this.options,b,this.speed)),y&&y(w.value),E&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return ce(this.calculatedDuration)}get time(){return ce(this.currentTime)}set time(t){t=ae(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(J.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ce(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=El,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(J.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Gl(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Se=e=>e*180/Math.PI,Dn=e=>{const t=Se(Math.atan2(e[1],e[0]));return Ln(t)},Wl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dn,rotateZ:Dn,skewX:e=>Se(Math.atan(e[1])),skewY:e=>Se(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ln=e=>(e=e%360,e<0&&(e+=360),e),Mi=Dn,Ii=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Di=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Yl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ii,scaleY:Di,scale:e=>(Ii(e)+Di(e))/2,rotateX:e=>Ln(Se(Math.atan2(e[6],e[5]))),rotateY:e=>Ln(Se(Math.atan2(-e[2],e[0]))),rotateZ:Mi,rotate:Mi,skewX:e=>Se(Math.atan(e[4])),skewY:e=>Se(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nn(e){return e.includes("scale")?1:0}function On(e,t){if(!e||e==="none")return Nn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Yl,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Wl,i=o}if(!i)return Nn(t);const s=r[t],a=i[1].split(",").map(Zl);return typeof s=="function"?s(a):a[s]}const Hl=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return On(n,t)};function Zl(e){return parseFloat(e.trim())}const Be=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qe=new Set(Be),Li=e=>e===Le||e===A,Xl=new Set(["x","y","z"]),Jl=Be.filter(e=>!Xl.has(e));function Ql(e){const t=[];return Jl.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ae={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>On(t,"x"),y:(e,{transform:t})=>On(t,"y")};Ae.translateX=Ae.x,Ae.translateY=Ae.y;const Ee=new Set;let Bn=!1,qn=!1,Fn=!1;function Ni(){if(qn){const e=Array.from(Ee).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ql(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qn=!1,Bn=!1,Ee.forEach(e=>e.complete(Fn)),Ee.clear()}function Oi(){Ee.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qn=!0)})}function ec(){Fn=!0,Oi(),Ni(),Fn=!1}class Kn{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ee.add(this),Bn||(Bn=!0,D.read(Oi),D.resolveKeyframes(Ni))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Gl(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ee.delete(this)}cancel(){this.state==="scheduled"&&(Ee.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tc=e=>e.startsWith("--");function nc(e,t,n){tc(t)?e.style.setProperty(t,n):e.style[t]=n}const rc=hn(()=>window.ScrollTimeline!==void 0),ic={};function sc(e,t){const n=hn(e);return()=>ic[t]??n()}const Bi=sc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function Fi(e,t){if(e)return typeof e=="function"?Bi()?Ei(e,t):"ease-out":di(e)?ct(e):Array.isArray(e)?e.map(n=>Fi(n,t)||qi.easeOut):qi[e]}function ac(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Fi(o,i);Array.isArray(d)&&(c.easing=d);const h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function Ki(e){return typeof e=="function"&&"applyToOptions"in e}function oc({type:e,...t}){return Ki(e)&&Bi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lc extends Mn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,fe(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const u=oc(t);this.animation=ac(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Rn(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):nc(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ce(Number(t))}get time(){return ce(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ae(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&rc()?(this.animation.timeline=t,ne):n(this)}}const zi={anticipate:oi,backInOut:ai,circInOut:ci};function cc(e){return e in zi}function uc(e){typeof e.ease=="string"&&cc(e.ease)&&(e.ease=zi[e.ease])}const $i=10;class dc extends lc{constructor(t){uc(t),Ri(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new In({...a,autoplay:!1}),l=ae(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-$i).value,o.sample(l).value,$i),o.stop()}}const Ui=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ce.test(e)||e==="0")&&!e.startsWith("url("));function pc(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function hc(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Ui(i,t),o=Ui(s,t);return De(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:pc(e)||(n==="spring"||Ki(n))&&r}function zn(e){return Jr(e)&&"offsetHeight"in e}const fc=new Set(["opacity","clipPath","filter","transform"]),mc=hn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gc(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!zn(t?.owner?.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return mc()&&n&&fc.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const yc=40;class vc extends Mn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=J.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},m=c?.KeyframeResolver||Kn;this.keyframeResolver=new m(o,(g,y,b)=>this.onKeyframesResolved(g,y,h,!b),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=J.now(),hc(t,s,a,o)||((me.instantAnimations||!l)&&c?.(Rn(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>yc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&gc(h)?new dc({...h,element:h.motionValue.owner.current}):new In(h);m.finished.then(()=>this.notifyFinished()).catch(ne),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ec()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const bc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xc(e){const t=bc.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Cc=4;function Gi(e,t,n=1){fe(n<=Cc,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=xc(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return Xr(a)?parseFloat(a):a}return xn(i)?Gi(i,t,n+1):i}function $n(e,t){return e?.[t]??e?.default??e}const Wi=new Set(["width","height","top","left","right","bottom",...Be]),wc={test:e=>e==="auto",parse:e=>e},Yi=e=>t=>t.test(e),Hi=[Le,A,ue,xe,pl,dl,wc],Zi=e=>Hi.find(Yi(e));function kc(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qr(e):!0}const Tc=new Set(["brightness","contrast","saturate","opacity"]);function Pc(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cn)||[];if(!r)return e;const i=n.replace(r,"");let s=Tc.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Sc=/\b([a-z-]*)\(.*?\)/gu,Un={...Ce,getAnimatableNone:e=>{const t=e.match(Sc);return t?t.map(Pc).join(" "):e}},Xi={...Le,transform:Math.round},Gn={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:xe,skewX:xe,skewY:xe,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:st,originX:vi,originY:vi,originZ:A},zIndex:Xi,fillOpacity:st,strokeOpacity:st,numOctaves:Xi},Ac={...Gn,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Un,WebkitFilter:Un},Ji=e=>Ac[e];function Qi(e,t){let n=Ji(e);return n!==Un&&(n=Ce),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ec=new Set(["auto","none","0"]);function _c(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Ec.has(s)&<(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Qi(n,i)}class jc extends Kn{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),xn(u))){const c=Gi(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Wi.has(r)||t.length!==2)return;const[i,s]=t,a=Zi(i),o=Zi(s);if(a!==o)if(Li(a)&&Li(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Ae[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||kc(t[i]))&&r.push(i);r.length&&_c(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ae[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ae[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,l])=>{t.getValue(o).set(l)}),this.resolveNoneKeyframes()}}function Vc(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const es=30,Rc=e=>!isNaN(parseFloat(e));class Mc{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=J.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=J.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Rc(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&mn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fn);const r=this.events[t].add(n);return t==="change"?()=>{r(),D.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=J.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,es);return ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fe(e,t){return new Mc(e,t)}const ts=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:Wn}=mi(queueMicrotask,!1),oe={x:!1,y:!1};function ns(){return oe.x||oe.y}function Ic(e){return e==="x"||e==="y"?oe[e]?null:(oe[e]=!0,()=>{oe[e]=!1}):oe.x||oe.y?null:(oe.x=oe.y=!0,()=>{oe.x=oe.y=!1})}function rs(e,t){const n=Vc(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function is(e){return!(e.pointerType==="touch"||ns())}function Dc(e,t,n={}){const[r,i,s]=rs(e,n),a=o=>{if(!is(o))return;const{target:l}=o,u=t(l,o);if(typeof u!="function"||!l)return;const c=d=>{is(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const ss=(e,t)=>t?e===t?!0:ss(e,t.parentElement):!1,Yn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Lc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nc(e){return Lc.has(e.tagName)||e.tabIndex!==-1}const It=new WeakSet;function as(e){return t=>{t.key==="Enter"&&e(t)}}function Hn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Oc=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=as(()=>{if(It.has(n))return;Hn(n,"down");const i=as(()=>{Hn(n,"up")}),s=()=>Hn(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function os(e){return Yn(e)&&!ns()}function Bc(e,t,n={}){const[r,i,s]=rs(e,n),a=o=>{const l=o.currentTarget;if(!os(o))return;It.add(l);const u=t(l,o),c=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),It.has(l)&&It.delete(l),os(m)&&typeof u=="function"&&u(m,{success:g})},d=m=>{c(m,l===window||l===document||n.useGlobalTarget||ss(l,m.target))},h=m=>{c(m,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),zn(o)&&(o.addEventListener("focus",u=>Oc(u,i)),!Nc(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function ls(e){return Jr(e)&&"ownerSVGElement"in e}function qc(e){return ls(e)&&e.tagName==="svg"}const W=e=>!!(e&&e.getVelocity),Fc=[...Hi,G,Ce],Kc=e=>Fc.find(Yi(e)),Zn=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class zc extends ve.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=zn(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function $c({children:e,isPresent:t,anchorX:n}){const r=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(Zn);return f.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:c,right:d}=s.current;if(t||!i.current||!o||!l)return;const h=n==="left"?`left: ${c}`:`right: ${d}`;i.current.dataset.motionPopId=r;const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
|
|
24
24
|
[data-motion-pop-id="${r}"] {
|
|
25
25
|
position: absolute !important;
|
|
26
26
|
width: ${o}px !important;
|