@wexio/messenger-widget-react 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +2 -1
  3. package/dist/widget-react-3V_rXy9h2.js +2 -0
  4. package/dist/widget-react-3f61yzjR2.js +2 -0
  5. package/dist/widget-react-B-ZYj6cV2.js +2 -0
  6. package/dist/widget-react-B4Cru-SF.js +2 -0
  7. package/dist/widget-react-B5AYwhao.js +2 -0
  8. package/dist/widget-react-B6YWdHd3.js +2 -0
  9. package/dist/widget-react-BOjoaxsM2.js +2 -0
  10. package/dist/widget-react-BPFWT7Xe2.js +4 -0
  11. package/dist/widget-react-BSvxi-Z42.js +2 -0
  12. package/dist/widget-react-BbznnvpE2.js +2 -0
  13. package/dist/widget-react-Bebf7ovl.js +140 -0
  14. package/dist/widget-react-BrRmLgRl.js +163 -0
  15. package/dist/widget-react-BwK-nNjy2.js +2 -0
  16. package/dist/widget-react-BxEMz2N0.js +2 -0
  17. package/dist/widget-react-BzFUXA092.js +2 -0
  18. package/dist/widget-react-C-hnCqBf.js +2 -0
  19. package/dist/widget-react-C40Ha_9C.js +2 -0
  20. package/dist/widget-react-C7KHTFEo.js +2 -0
  21. package/dist/widget-react-CAfHMzrc2.js +2 -0
  22. package/dist/widget-react-CLJmIz_q.js +2 -0
  23. package/dist/widget-react-CLLhrdTm.js +2 -0
  24. package/dist/widget-react-CO7DyU51.js +201 -0
  25. package/dist/widget-react-CZoYXyup.js +2 -0
  26. package/dist/widget-react-C_NCNYY02.js +7 -0
  27. package/dist/widget-react-CnP2-ZB-.js +285 -0
  28. package/dist/widget-react-CuUeo68W.js +2 -0
  29. package/dist/widget-react-D2sqPDts.js +2 -0
  30. package/dist/widget-react-D5n4whHu2.js +2 -0
  31. package/dist/widget-react-D8W_ZdMH.js +2 -0
  32. package/dist/widget-react-DA0S6cIc.js +2 -0
  33. package/dist/widget-react-DE0LS-6-.js +2 -0
  34. package/dist/widget-react-DGh__emN.js +2 -0
  35. package/dist/widget-react-DIFOZ3QT.js +2 -0
  36. package/dist/widget-react-DJczk-Ax.js +2 -0
  37. package/dist/widget-react-DQJxxVB92.js +2 -0
  38. package/dist/widget-react-DS_ZoY1F.js +2 -0
  39. package/dist/widget-react-DUnaBOfT.js +10 -0
  40. package/dist/widget-react-DhLRmjli.js +2 -0
  41. package/dist/widget-react-Dl2PevZk.js +2 -0
  42. package/dist/widget-react-DmRVdLdI.js +2 -0
  43. package/dist/widget-react-DouawI6y.js +2 -0
  44. package/dist/widget-react-DozV7eMU2.js +2 -0
  45. package/dist/widget-react-Dpkdglv0.js +2 -0
  46. package/dist/widget-react-Dry9kqXE2.js +2 -0
  47. package/dist/widget-react-FX5W7RyV.js +4 -0
  48. package/dist/widget-react-G9X1DcTe.js +2 -0
  49. package/dist/widget-react-KAEA8ONo.js +2 -0
  50. package/dist/widget-react-Ov6re_Q9.js +2 -0
  51. package/dist/widget-react-XV6SIcqN2.js +2 -0
  52. package/dist/widget-react-XZ_nYDTj.js +2 -0
  53. package/dist/widget-react-oNTR-eNh.js +2 -0
  54. package/dist/widget-react-txPtcpni.js +2 -0
  55. package/dist/widget-react-zZBDvBBt2.js +2 -0
  56. package/dist/widget-react.js +50 -36283
  57. package/dist/widget-react.licenses.txt +3604 -0
  58. package/package.json +1 -1
  59. package/dist/widget-react--IUy5lNt.js +0 -510
  60. package/dist/widget-react-B7es3n1-.js +0 -32
  61. package/dist/widget-react-BAUpSGhZ.js +0 -1345
  62. package/dist/widget-react-BS9kUSRS.js +0 -255
  63. package/dist/widget-react-BT30ojz0.js +0 -371
  64. package/dist/widget-react-BXf2Ty8d.js +0 -364
  65. package/dist/widget-react-BgALABDe.js +0 -39
  66. package/dist/widget-react-BgunakAG.js +0 -566
  67. package/dist/widget-react-BkXA6ytR.js +0 -23856
  68. package/dist/widget-react-Bvtklo8g.js +0 -356
  69. package/dist/widget-react-BxEjM2it.js +0 -118
  70. package/dist/widget-react-CN_FIvMD.js +0 -834
  71. package/dist/widget-react-CTdz_dwX.js +0 -306
  72. package/dist/widget-react-Ck8JAYqT.js +0 -22122
  73. package/dist/widget-react-CyAVDflZ.js +0 -273
  74. package/dist/widget-react-DSAyUf2U.js +0 -229
  75. package/dist/widget-react-DbOJZl9F.js +0 -4932
  76. package/dist/widget-react-DgIxSjv7.js +0 -25
  77. package/dist/widget-react-Ds5J9FbQ.js +0 -27
  78. package/dist/widget-react-SI7deQTE.js +0 -35
  79. package/dist/widget-react-krPPnv02.js +0 -4438
  80. package/dist/widget-react-wSc9gIfG.js +0 -198
@@ -0,0 +1,2 @@
1
+ globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Acasă`,messages:`Mesaje`,help:`Ajutor`,news:`Noutăți`,profile:`Profil`},header:{close:`Închide`,back:`Înapoi`,conversationSubtitle:`Și echipa noastră te poate ajuta`,helpTitle:`Ajutor`,newsTitle:`Noutăți`,expand:`Extinde widgetul`,collapse:`Restrânge widgetul`,messagesTitle:`Mesaje`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Deschide chatul`,close:`Închide chatul`,panel:`Chat`},tabError:{title:`Ceva nu a funcționat`,hint:`Această secțiune nu a putut fi afișată.`,retry:`Încearcă din nou`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Salut 👋`,greetingSubheadline:`Cu ce te putem ajuta?`,askTitle:`Pune o întrebare`,askSubtitle:`Botul și echipa noastră te pot ajuta`,recentMessageLabel:`Mesaj recent`,recentMessageTitle:`Mesaj recent`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4 h`,recentMessageSample:`Salut 👋 Mulțumim că ne-ai contactat — revenim cu un răspuns în scurt timp.`,featuredArticleLoading:`Articol recomandat`,featuredArticleTap:`Atinge pentru a citi`,featuredArticleEmpty:`Alege un articol`,featuredArticleSetUp:`Configurează acest bloc în panoul tău`,featuredArticleDemoEyebrow:`Pioneer · Reține data`,featuredArticleDemoHeadline:`8 octombrie 2026`,featuredArticleDemoSubline:`San Francisco · în persoană + online`,featuredArticleDemoCta:`Vezi programul lansării`,seeAgenda:`Vezi programul lansării`,browseHelp:`Răsfoiește ajutorul`,whatsNew:`Ce este nou`,searchPlaceholder:`Caută în ajutor`,pinnedArticlesTitle:`Citește mai întâi astea`,popularArticlesTitle:`Articole populare`,pinnedArticleRow:`Articol fixat {n}`,newsPreviewTitle:`Ultimele noutăți`,seeAll:`See all`,newsPreviewRow:`Noutate {n}`,myConversationsTitle:`Conversațiile tale`,myConversationsEmpty:`Vezi-ți conversațiile`,teamStatusOnline:`Suntem online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Astăzi`,yesterday:`Ieri`,unreadMessages:`Mesaje necitite`,emptyTitle:`Încă nu există mesaje`,emptyBody:`Începe o conversație, iar echipa noastră îți va răspunde aici.`,sendCta:`Trimite-ne un mesaj`,attach:`Atașează un fișier`,commands:`Comenzi rapide`,record:`Înregistrează un mesaj vocal`,stopRecording:`Oprește înregistrarea`,recording:`Se înregistrează…`,uploading:`Se încarcă…`,uploadFailed:`Încărcarea a eșuat`,voiceDenied:`Accesul la microfon a fost refuzat`,voiceUnsupported:`Înregistrarea vocală nu este acceptată în acest browser`,fileTooLarge:`Fișierul este prea mare (maximum 10 MB)`,fileMimeNotAllowed:`Acest tip de fișier nu este acceptat`,emoji:`Inserează emoji`,cancelRecording:`Anulează înregistrarea`,pauseRecording:`Întrerupe înregistrarea`,resumeRecording:`Reia înregistrarea`,playPreview:`Redă înregistrarea`,emojiPicker:`Selector de emoji`,emojiSearch:`Caută…`,playAudio:`Redă`,pauseAudio:`Pauză`,openAudio:`Deschide audio`,removeAttachment:`Elimină`,aiAssistant:`Asistent AI`,operator:`Operator`,openImage:`Deschide imaginea`,openPreview:`Deschide previzualizarea`,play:`Redă`,pause:`Pauză`,typing:`scrie…`,aiThinking:`gândește…`,aiSearching:`caută…`,typingSomeone:`Cineva`,signInToChat:`Te rugăm să te conectezi pentru a începe conversația.`,signInUnavailable:`Autentificarea nu este disponibilă în acest moment.`,googleSignIn:`Conectează-te cu Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Conectează-te cu un passkey`,passkeyRegister:`Prima dată? Configurează un passkey`,passkeyError:`Nu am putut autentifica. Încearcă din nou.`,passkeyNoCredential:`Încă nu există un passkey pe acest dispozitiv — atinge „Configurează un passkey” pentru a crea unul.`,googleSignInDemo:`Continuă cu Google`,connectingOperator:`Un operator ți-a fost alocat, te rugăm să aștepți…`,assignment:{eta:{minutes:`Un operator va răspunde în aproximativ {minutes} min`,soft:`De obicei răspundem în câteva minute`,businessHours:`Echipa revine la {time}`}},withOperator:`Acum discuți cu {name}`,operatorConnected:`Operator conectat`,chatResolved:`Conversație rezolvată`,chatResolvedByYou:`Conversație rezolvată de tine`,chatResolvedByOperator:`Conversație rezolvată de {name}`,resolveConversation:`Rezolvă conversația`,sources:`Surse`,moreSources:`+{count} mai multe`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Înainte de a începe`,subtitle:`Câteva detalii rapide ca echipa noastră să te poată ajuta mai repede.`,labelName:`Nume`,labelEmail:`E-mail`,labelPhone:`Telefon`,labelCustom:`Detalii`,required:`Obligatoriu`,invalidEmail:`Te rugăm să introduci un e-mail valid`,invalidPhone:`Te rugăm să introduci un număr de telefon valid`,submit:`Continuă`,submitFailed:`Nu s-a putut trimite — încearcă din nou.`},help:{searchPlaceholder:`Caută în ajutor`,emptyTitle:`Încă nu există articole`,emptyBody:`Operatorul tău nu a publicat încă nimic.`,back:`Înapoi`,helpful:`A fost util?`,yes:`Da`,no:`Nu`,thanks:`Mulțumim pentru feedback.`,unresolvedCta:`Mai ai nevoie de ajutor? Scrie-ne`,noResults:`Niciun rezultat`,articleNotFound:`Articolul nu a fost găsit`,articleNotTranslated:`Acest articol nu este încă disponibil în limba ta.`,writtenBy:`Scris de {names}`,relatedTitle:`Articole similare`,collectionsCount:`{count, plural, =0 {Nicio colecție} one {# colecție} few {# colecții} other {# de colecții}}`,articlesCount:`{count, plural, =0 {Niciun articol} one {Articole: #} few {Articole: #} other {Articole: #}}`,authorsByline:`Autori {first}{remaining, plural, =0 {} one { și încă #} few { și încă #} other { și încă #}}`},news:{emptyTitle:`Încă nu există actualizări`,emptyBody:`Revino aici pentru noutăți și anunțuri despre produs.`,helpful:`Acest articol a fost util?`,yes:`Da`,no:`Nu`,thanks:`Mulțumim pentru feedback.`,searchPlaceholder:`Caută în noutăți`,noResults:`Nicio postare găsită`,editedAt:`editat {when}`,articleNotFound:`Articolul nu a fost găsit.`,articleNotTranslated:`Această postare nu este încă disponibilă în limba ta.`,readOriginal:`Citește originalul`,relatedTitle:`Similar`,writtenBy:`Scris de {names}`,unread:`Știri necitite`},reactions:{ariaLabel:`Reacții`,tapAria:`Reacționează cu {emoji}`},languageSelector:{title:`Citește în altă limbă`,ariaLabel:`Limbi articol`},branding:{poweredBy:`Susținut de`,wexio:`Wexio`},sound:{mute:`Dezactivează sunetele notificărilor`,unmute:`Activează sunetele notificărilor`},article:{tableOfContents:`Cuprins`,tabFallback:`Filă {n}`},peek:{newMessage:`Mesaj nou`,dismiss:`Închide`,aiAssistant:`Asistent AI`,operator:`Operator`},lightbox:{mediaPreview:`Previzualizare media`,close:`Închide previzualizarea`,previous:`Anterior`,next:`Următor`},authError:{turnstileTitle:`Nu am putut verifica browserul`,turnstileBody:`Nu am putut finaliza verificarea de securitate. Uneori este o problemă de rețea sau de blocator de reclame — încearcă din nou sau reîncarcă pagina.`,genericTitle:`Nu ne-am putut conecta`,genericBody:`Ceva nu a funcționat la autentificare. Încearcă din nou într-un moment.`,retry:`Încearcă din nou`,dismiss:`Închide`},profile:{title:`Profilul tău`,subtitle:`Actualizează-ți datele și modul în care funcționează widgetul.`,uploadAvatar:`Schimbă fotografia`,removeAvatar:`Elimină fotografia`,avatarUploading:`Se încarcă…`,preferencesHeading:`Preferințe`,preferenceLanguage:`Limbă`,preferenceDesktopNotifications:`Notificări desktop`,preferenceDesktopNotificationsHint:`Primește o notificare de sistem când widgetul nu este în prim-plan.`,preferenceThemeMode:`Temă`,themeAuto:`Ca în sistem`,themeLight:`Luminoasă`,themeDark:`Întunecată`,themeLocked:`Tema este setată de operator.`,pinnedHint:`Setat de operator — nu poate fi editat.`,requiredHint:`Obligatoriu`,invalidEmail:`Te rugăm să introduci o adresă de e-mail validă.`,invalidPhone:`Folosește formatul internațional, ex. +14155552671.`,noFields:`Aici nu este încă nimic de editat.`,save:`Salvează modificările`,saving:`Se salvează…`,cancel:`Renunță`,saved:`Modificările au fost salvate.`,loading:`Se încarcă profilul…`,loadError:`Profilul nu a putut fi încărcat. Încearcă din nou.`,retry:`Reîncearcă`,errorFieldNotAllowed:`Acest câmp nu poate fi editat în acest widget. Încearcă să reîncarci.`,errorFieldPinned:`Acest câmp este blocat de contul tău.`,errorFieldInvalid:`Unele valori nu sunt valide. Verifică câmpurile evidențiate.`,errorThemeLocked:`Tema este blocată de operator.`,errorFeatureDisabled:`Editarea profilului a fost dezactivată de operator.`,errorGeneric:`Modificările nu au putut fi salvate. Încearcă din nou.`,notificationsBlocked:`Notificările sunt blocate de browser. Actualizează permisiunile site-ului pentru a le activa.`,notificationsRequest:`Permite notificările când ești întrebat pentru a activa această funcție.`,systemFields:{avatar:`Fotografie`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`Acord WhatsApp`,webVerified:`Vizitator verificat`,firstName:`Prenume`,lastName:`Nume de familie`,username:`Nume de utilizator`,language:`Limbă`,email:`E-mail`,phone:`Telefon`,company:`Companie`,location:`Locație`,isValid:`Cont valid`,chatStatus:`Stare chat`,chatCategory:`Categorie chat`,priority:`Prioritate`,leadSource:`Sursă lead`,leadStatus:`Stare lead`,interestLevel:`Nivel de interes`,productInterest:`Interes pentru produs`,budgetRange:`Buget`,purchaseTimeline:`Termen de achiziție`,lastMessageSentAt:`Ultimul mesaj trimis`,lastMessageReceivedAt:`Ultimul mesaj primit`,lastSeenAt:`Văzut ultima dată`,firstMessageReceivedAt:`Primul contact`,isBlocked:`Blocat`,registrationDate:`Înregistrat`,aiAvailable:`Asistență AI`,totalMessagesSent:`Mesaje trimise`,totalMessagesReceived:`Mesaje primite`,totalAiMessagesSent:`Mesaje AI trimise`,totalBotMessagesSent:`Mesaje bot trimise`,totalUserMessagesSent:`Mesaje operator trimise`,flowCompletionRate:`Rată de finalizare flow`,lastFlowCompleted:`Ultimul flow finalizat`,totalFlowsStarted:`Flow-uri începute`,totalFlowsCompleted:`Flow-uri finalizate`},systemFieldOptions:{chatStatus:{ISSUE:`Problemă`,RESOLVED:`Rezolvat`,PENDING:`În așteptare`,IN_PROGRESS:`În curs`,CLOSED:`Închis`},chatCategory:{SALES:`Vânzări`,SUPPORT:`Suport`,BILLING:`Facturare`,FEEDBACK:`Feedback`,GENERAL:`General`,OTHER:`Altul`},priority:{LOW:`Scăzută`,MEDIUM:`Medie`,HIGH:`Ridicată`,URGENT:`Urgentă`},leadStatus:{NEW:`Nou`,CONTACTED:`Contactat`,QUALIFIED:`Calificat`,NEGOTIATING:`În negociere`,WON:`Câștigat`,LOST:`Pierdut`},interestLevel:{LOW:`Scăzut`,MEDIUM:`Mediu`,HIGH:`Ridicat`,VERY_HIGH:`Foarte ridicat`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
2
+ //# sourceMappingURL=widget-react-Dry9kqXE2.js.map
@@ -0,0 +1,4 @@
1
+ globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import*as e from"react";import*as t from"react-dom";import*as n from"react/jsx-runtime";import*as r from"react-dom/client";function i(i){switch(i){case`react`:return e;case`react-dom`:return t;case`react/jsx-runtime`:return n;case`react-dom/client`:return r}throw Error(`[wexio-widget] unexpected require(`+JSON.stringify(i)+`)`)}import{Component as a,Fragment as o,cloneElement as s,createContext as c,createElement as l,forwardRef as u,isValidElement as d,useCallback as f,useContext as p,useEffect as m,useId as h,useInsertionEffect as g,useLayoutEffect as _,useMemo as v,useRef as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";var S=Object.create,C=Object.defineProperty,w=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,ne=(e,t)=>()=>(e&&(t=e(e=0)),t),re=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ie=(e,t)=>{let n={};for(var r in e)C(n,r,{get:e[r],enumerable:!0});return t||C(n,Symbol.toStringTag,{value:`Module`}),n},ae=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=T(t),a=0,o=i.length,s;a<o;a++)s=i[a],!te.call(e,s)&&s!==n&&C(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=w(t,s))||r.enumerable});return e},E=(e,t,n)=>(n=e==null?{}:S(ee(e)),ae(t||!e||!e.__esModule?C(n,`default`,{value:e,enumerable:!0}):n,e)),oe=e=>te.call(e,`module.exports`)?e[`module.exports`]:ae(C({},`__esModule`,{value:!0}),e),se=(e=>i===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(i===void 0?e:i)[t]}):e:i)(function(e){if(i!==void 0)return i.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function ce(e,t){let n=t&&t.cache?t.cache:A,r=t&&t.serializer?t.serializer:pe;return(t&&t.strategy?t.strategy:fe)(e,{cache:n,serializer:r})}function D(e){return e==null||typeof e==`number`||typeof e==`boolean`}function le(e,t,n,r){let i=D(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function ue(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function de(e,t,n,r,i){return n.bind(t,e,r,i)}function fe(e,t){let n=e.length===1?le:ue;return de(e,this,n,t.cache.create(),t.serializer)}function O(e,t){return de(e,this,ue,t.cache.create(),t.serializer)}function k(e,t){return de(e,this,le,t.cache.create(),t.serializer)}var pe=function(){return JSON.stringify(arguments)},me=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},A={create:function(){return new me}},he={variadic:O,monadic:k},j=class extends Error{constructor(e,t){let n=e;t&&(n+=`: `+t),super(n),this.code=e,t&&(this.originalMessage=t)}},M=function(e){return e.MISSING_MESSAGE=`MISSING_MESSAGE`,e.MISSING_FORMAT=`MISSING_FORMAT`,e.ENVIRONMENT_FALLBACK=`ENVIRONMENT_FALLBACK`,e.INSUFFICIENT_PATH=`INSUFFICIENT_PATH`,e.INVALID_MESSAGE=`INVALID_MESSAGE`,e.INVALID_KEY=`INVALID_KEY`,e.FORMATTING_ERROR=`FORMATTING_ERROR`,e}(M||{});function ge(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function _e(e,t){return ce(e,{cache:(n=t,{create:()=>({get:e=>n[e],set(e,t){n[e]=t}})}),strategy:he.variadic});var n}function ve(e,t){return _e(((...t)=>new e(...t)),t)}function ye(e){return{getDateTimeFormat:ve(Intl.DateTimeFormat,e.dateTime),getNumberFormat:ve(Intl.NumberFormat,e.number),getPluralRules:ve(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:ve(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:ve(Intl.ListFormat,e.list),getDisplayNames:ve(Intl.DisplayNames,e.displayNames)}}var be=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function xe(e){let t={};return e.replace(be,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ce(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(Se).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function we(e){return e.replace(/^(.*?)-/,``)}var Te=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ee=/^(@+)?(\+|#+)?[rs]?$/g,De=/(\*)(0+)|(#+)(0+)|(0+)/g,Oe=/^(0+)$/;function ke(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(Ee,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function Ae(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function je(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!Oe.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function Me(e){return Ae(e)||{}}function Ne(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=we(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...Me(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...Me(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(De,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(Oe.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Te.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(Te,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...ke(e)});continue}if(Ee.test(n.stem)){t={...t,...ke(n.stem)};continue}let e=Ae(n.stem);e&&(t={...t,...e});let r=je(n.stem);r&&(t={...t,...r})}return t}var N=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({}),P=function(e){return e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`,e}({}),Pe=function(e){return e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`,e}({});function Fe(e){return e.type===P.literal}function Ie(e){return e.type===P.argument}function Le(e){return e.type===P.number}function Re(e){return e.type===P.date}function ze(e){return e.type===P.time}function Be(e){return e.type===P.select}function Ve(e){return e.type===P.plural}function He(e){return e.type===P.pound}function Ue(e){return e.type===P.tag}function We(e){return!!(e&&typeof e==`object`&&e.type===Pe.number)}function Ge(e){return!!(e&&typeof e==`object`&&e.type===Pe.dateTime)}var Ke=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,qe={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function Je(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=Ye(t);for((c==`H`||c==`k`)&&(s=0);s-- >0;)n+=`a`;for(;o-- >0;)n=c+n}else i===`J`?n+=`H`:n+=i}return n}function Ye(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(qe[r||``]||qe[n||``]||qe[`${n}-001`]||qe[`001`])[0]}var Xe=RegExp(`^${Ke.source}*`),Ze=RegExp(`${Ke.source}*$`);function F(e,t){return{start:e,end:t}}var Qe=!!Object.fromEntries,$e=!!String.prototype.trimStart,et=!!String.prototype.trimEnd,tt=Qe?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},nt=$e?function(e){return e.trimStart()}:function(e){return e.replace(Xe,``)},rt=et?function(e){return e.trimEnd()}:function(e){return e.replace(Ze,``)},it=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function at(e,t){return it.lastIndex=t,it.exec(e)[1]??``}var ot=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:P.pound,location:F(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(N.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&st(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:P.literal,value:`<${r}/>`,location:F(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!st(this.char()))return this.error(N.INVALID_TAG,F(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:P.tag,value:r,children:a,location:F(n,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,F(o,this.clonePosition()))):this.error(N.UNMATCHED_CLOSING_TAG,F(e,this.clonePosition()))}else return this.error(N.UNCLOSED_TAG,F(n,this.clonePosition()))}else return this.error(N.INVALID_TAG,F(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&lt(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=F(n,this.clonePosition());return{val:{type:P.literal,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ct(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(N.EMPTY_ARGUMENT,F(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(N.MALFORMED_ARGUMENT,F(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:r,location:F(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(N.MALFORMED_ARGUMENT,F(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=at(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:F(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(N.EXPECT_ARGUMENT_TYPE,F(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=rt(n.val);if(r.length===0)return this.error(N.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:F(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=F(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=nt(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:P.number,value:n,location:i,style:r.val},err:null}}else{if(t.length===0)return this.error(N.EXPECT_DATE_TIME_SKELETON,i);let r=t;this.locale&&(r=Je(t,this.locale));let o={type:Pe.dateTime,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?xe(r):{}};return{val:{type:a===`date`?P.date:P.time,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?P.number:a===`date`?P.date:P.time,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,F(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=F(r,this.clonePosition());return a===`select`?{val:{type:P.select,value:n,options:tt(c.val),location:u},err:null}:{val:{type:P.plural,value:n,options:tt(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(N.INVALID_ARGUMENT_TYPE,F(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,F(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=Ce(e)}catch{return this.error(N.INVALID_NUMBER_SKELETON,t)}return{val:{type:Pe.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Ne(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;c=F(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:F(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(N.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=F(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&ut(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function st(e){return e>=97&&e<=122||e>=65&&e<=90}function ct(e){return st(e)||e===47}function lt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ut(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function dt(e){e.forEach(e=>{if(delete e.location,Be(e)||Ve(e))for(let t in e.options)delete e.options[t].location,dt(e.options[t].value);else Le(e)&&We(e.style)||(Re(e)||ze(e))&&Ge(e.style)?delete e.style.location:Ue(e)&&dt(e.children)})}function ft(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new ot(e,t).parse();if(n.err){let e=SyntaxError(N[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||dt(n.val),n.val}var pt,mt=function(e){return e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`,e}({}),ht=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},gt=class extends ht{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,mt.INVALID_VALUE,r)}},_t=class extends ht{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,mt.INVALID_VALUE,n)}},vt=class extends ht{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,mt.MISSING_VALUE,t)}},I=function(e){return e[e.literal=0]=`literal`,e[e.object=1]=`object`,e}({});function yt(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==I.literal||t.type!==I.literal?e.push(t):n.value+=t.value,e},[])}function bt(e){return typeof e==`function`}function xt(e,t,n,r,i,a,o){if(e.length===1&&Fe(e[0]))return[{type:I.literal,value:e[0].value}];let s=[];for(let c of e){if(Fe(c)){s.push({type:I.literal,value:c.value});continue}if(He(c)){typeof a==`number`&&s.push({type:I.literal,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new vt(e,o);let l=i[e];if(Ie(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?I.literal:I.object,value:l});continue}if(Re(c)){let e=typeof c.style==`string`?r.date[c.style]:Ge(c.style)?c.style.parsedOptions:void 0;s.push({type:I.literal,value:n.getDateTimeFormat(t,e).format(l)});continue}if(ze(c)){let e=typeof c.style==`string`?r.time[c.style]:Ge(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:I.literal,value:n.getDateTimeFormat(t,e).format(l)});continue}if(Le(c)){let e=typeof c.style==`string`?r.number[c.style]:We(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:I.literal,value:n.getNumberFormat(t,e).format(l)});continue}if(Ue(c)){let{children:e,value:l}=c,u=i[l];if(!bt(u))throw new _t(l,`function`,o);let d=u(xt(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?I.literal:I.object,value:e})))}if(Be(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new gt(c.value,l,Object.keys(c.options),o);s.push(...xt(a.value,t,n,r,i));continue}if(Ve(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new ht(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,mt.MISSING_INTL_API,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new gt(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...xt(a.value,t,n,r,i,u-(c.offset||0)));continue}}return yt(s)}function St(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function Ct(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=St(e[r],t[r]),n),{...e}):e}function wt(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Tt(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:ce((...e)=>new Intl.NumberFormat(...e),{cache:wt(e.number),strategy:he.variadic}),getDateTimeFormat:ce((...e)=>new Intl.DateTimeFormat(...e),{cache:wt(e.dateTime),strategy:he.variadic}),getPluralRules:ce((...e)=>new Intl.PluralRules(...e),{cache:wt(e.pluralRules),strategy:he.variadic})}}var Et=(pt=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==I.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>xt(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=Ct(e.formats,r),this.formatters=i&&i.formatters||Tt(this.formatterCache)}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}},pt.memoizedDefaultLocale=null,pt.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])},pt.__parse=ft,pt.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},pt);function Dt(...[e,t,n,r]){if(Array.isArray(t))throw new j(M.INVALID_MESSAGE,void 0);if(typeof t==`object`)throw new j(M.INSUFFICIENT_PATH,void 0);if(typeof t==`string`){let e=function(e,t){return t||/'[{}]/.test(e)?void 0:e}(t,n);if(e)return e}let{cache:i,formats:a,formatters:o,globalFormats:s,locale:c,timeZone:l}=r,u;o.getMessageFormat||(o.getMessageFormat=function(e,t){return _e(((...e)=>new Et(e[0],e[1],e[2],{formatters:t,...e[3]})),e.message)}(i,o));try{u=o.getMessageFormat(t,c,function(e,t,n){let r=Et.formats.date,i=Et.formats.time,a={...e?.dateTime,...t?.dateTime},o={date:{...r,...a},time:{...i,...a},number:{...e?.number,...t?.number}};return n&&[`date`,`time`].forEach((e=>{let t=o[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:n,...r}})),o}(s,a,l),{formatters:{...o,getDateTimeFormat:(e,t)=>o.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??l})}})}catch{throw new j(M.INVALID_MESSAGE,void 0)}let f=u.format(n);return d(f)||Array.isArray(f)||typeof f==`string`?f:String(f)}Dt.raw=!0;function Ot(...e){return e.filter(Boolean).join(`.`)}function kt(e){return Ot(e.namespace,e.key)}function At(e){console.error(e)}function jt(e,t,n,r){let i=Ot(r,n);if(!t)throw Error(i);let a=t;return n.split(`.`).forEach((t=>{let n=a[t];if(t==null||n==null)throw Error(i+` (${e})`);a=n})),a}function Mt(e){let t=function(e,t,n){try{if(!t)throw Error(void 0);let r=n?jt(e,t,n):t;if(!r)throw Error(n);return r}catch(e){return new j(M.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);return function({cache:e,formats:t,formatters:n,getMessageFallback:r=kt,locale:i,messagesOrError:a,namespace:o,onError:c,timeZone:l}){let u=a instanceof j;function f(e,t,n,i){let a=new j(t,n);return c(a),i??r({error:a,key:e,namespace:o})}function p(p,m,h,g){let _=g,v;if(u){if(!_)return c(a),r({error:a,key:p,namespace:o});v=_}else{let e=a;try{v=jt(i,e,p,o)}catch(e){if(!_)return f(p,M.MISSING_MESSAGE,e.message,_);v=_}}try{return Dt(Ot(o,p),v,m&&function(e){let t={};return Object.keys(e).forEach((n=>{let r=0,i=e[n],a;a=typeof i==`function`?e=>{let t=i(e);return d(t)?s(t,{key:n+ r++}):t}:i,t[n]=a})),t}(m),{cache:e,formatters:n,globalFormats:t,formats:h,locale:i,timeZone:l})}catch(e){let t,n;return e instanceof j?(t=e.code,n=e.originalMessage):(t=M.FORMATTING_ERROR,n=e.message),f(p,t,n,_)}}function m(e,t,n,r){let i=p(e,t,n,r);return typeof i==`string`?i:f(e,M.INVALID_MESSAGE,void 0)}return m.rich=p,m.markup=(e,t,n,r)=>p(e,t,n,r),m.raw=e=>{if(u)return c(a),r({error:a,key:e,namespace:o});let t=a;try{return jt(i,t,e,o)}catch(t){return f(e,M.MISSING_MESSAGE,t.message)}},m.has=e=>{if(u)return!1;try{return jt(i,a,e,o),!0}catch{return!1}},m}({...e,messagesOrError:t})}function Nt(e,t){return e===t?void 0:e.slice((t+`.`).length)}var Pt=86400;7*Pt,365*Pt;function Ft({formats:e,getMessageFallback:t,messages:n,onError:r,...i}){return{...i,formats:e||void 0,messages:n||void 0,onError:r||At,getMessageFallback:t||kt}}var It=c(void 0);function Lt({children:e,formats:t,getMessageFallback:n,locale:r,messages:i,now:a,onError:o,timeZone:s}){let c=p(It),l=v((()=>c?.cache||ge()),[r,c?.cache]),u=v((()=>c?.formatters||ye(l)),[l,c?.formatters]),d=v((()=>({...Ft({locale:r,formats:t===void 0?c?.formats:t,getMessageFallback:n||c?.getMessageFallback,messages:i===void 0?c?.messages:i,now:a||c?.now,onError:o||c?.onError,timeZone:s||c?.timeZone}),formatters:u,cache:l})),[l,t,u,n,r,i,a,o,c,s]);return b(It.Provider,{value:d,children:e})}function Rt(){let e=p(It);if(!e)throw Error(void 0);return e}var zt=!1,Bt=typeof window>`u`;function Vt(e){return function(e,t,n){let{cache:r,formats:i,formatters:a,getMessageFallback:o,locale:s,onError:c,timeZone:l}=Rt(),u=e[n],d=Nt(t,n);return l||zt||!Bt||(zt=!0,c(new j(M.ENVIRONMENT_FALLBACK,void 0))),v((()=>Mt({cache:r,formatters:a,getMessageFallback:o,messages:u,namespace:d,onError:c,formats:i,locale:s,timeZone:l})),[r,a,o,u,d,c,i,s,l])}({"!":Rt().messages},e?`!.${e}`:`!`,`!`)}function Ht(){return Rt().locale}function Ut(){let e=Rt();if(!e.messages)throw Error(void 0);return e.messages}function Wt(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}var Gt=Wt(0,Vt),Kt=c({});function qt(e){let t=y(null);return t.current===null&&(t.current=e()),t.current}var Jt=typeof window<`u`?_:m,Yt=c(null);function Xt(e,t){e.indexOf(t)===-1&&e.push(t)}function Zt(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Qt=(e,t,n)=>n>t?t:n<e?e:n,$t=()=>{},en={},tn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function nn(e){return typeof e==`object`&&!!e}var rn=e=>/^0[^.\s]+$/u.test(e);function an(e){let t;return()=>(t===void 0&&(t=e()),t)}var L=e=>e,on=(e,t)=>n=>t(e(n)),sn=(...e)=>e.reduce(on),cn=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},ln=class{constructor(){this.subscriptions=[]}add(e){return Xt(this.subscriptions,e),()=>Zt(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},R=e=>e*1e3,z=e=>e/1e3;function un(e,t){return t?1e3/t*e:0}var dn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fn=1e-7,pn=12;function mn(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=dn(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>fn&&++s<pn);return o}function hn(e,t,n,r){if(e===t&&n===r)return L;let i=t=>mn(t,0,1,e,n);return e=>e===0||e===1?e:dn(i(e),t,r)}var gn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_n=e=>t=>1-e(1-t),vn=hn(.33,1.53,.69,.99),yn=_n(vn),bn=gn(yn),xn=e=>e>=1?1:(e*=2)<1?.5*yn(e):.5*(2-2**(-10*(e-1))),Sn=e=>1-Math.sin(Math.acos(e)),Cn=_n(Sn),wn=gn(Sn),Tn=hn(.42,0,1,1),En=hn(0,0,.58,1),Dn=hn(.42,0,.58,1),On=e=>Array.isArray(e)&&typeof e[0]!=`number`,kn=e=>Array.isArray(e)&&typeof e[0]==`number`,An={linear:L,easeIn:Tn,easeInOut:Dn,easeOut:En,circIn:Sn,circInOut:wn,circOut:Cn,backIn:yn,backInOut:bn,backOut:vn,anticipate:xn},jn=e=>typeof e==`string`,Mn=e=>{if(kn(e)){e.length;let[t,n,r,i]=e;return hn(t,n,r,i)}else if(jn(e))return An[e],`${e}`,An[e];return e},Nn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Pn={value:null,addProjectionMetrics:null};function Fn(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Pn.value&&Pn.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var In=40;function Ln(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Nn.reduce((e,n)=>(e[n]=Fn(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=en.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,In),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Nn.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Nn.length;t++)o[Nn[t]].cancel(e)},state:i,steps:o}}var{schedule:B,cancel:Rn,state:V,steps:zn}=Ln(typeof requestAnimationFrame<`u`?requestAnimationFrame:L,!0),Bn;function Vn(){Bn=void 0}var H={now:()=>(Bn===void 0&&H.set(V.isProcessing||en.useManualTiming?V.timestamp:performance.now()),Bn),set:e=>{Bn=e,queueMicrotask(Vn)}},Hn={layout:0,mainThread:0,waapi:0},Un=e=>t=>typeof t==`string`&&t.startsWith(e),Wn=Un(`--`),Gn=Un(`var(--`),Kn=e=>Gn(e)?qn.test(e.split(`/*`)[0].trim()):!1,qn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jn(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Yn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Xn={...Yn,transform:e=>Qt(0,1,e)},Zn={...Yn,default:1},Qn=e=>Math.round(e*1e5)/1e5,$n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function er(e){return e==null}var tr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nr=(e,t)=>n=>!!(typeof n==`string`&&tr.test(n)&&n.startsWith(e)||t&&!er(n)&&Object.prototype.hasOwnProperty.call(n,t)),rr=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match($n);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ir=e=>Qt(0,255,e),ar={...Yn,transform:e=>Math.round(ir(e))},or={test:nr(`rgb`,`red`),parse:rr(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ar.transform(e)+`, `+ar.transform(t)+`, `+ar.transform(n)+`, `+Qn(Xn.transform(r))+`)`};function sr(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}}var cr={test:nr(`#`),parse:sr,transform:or.transform},lr=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ur=lr(`deg`),dr=lr(`%`),U=lr(`px`),fr=lr(`vh`),pr=lr(`vw`),mr={...dr,parse:e=>dr.parse(e)/100,transform:e=>dr.transform(e*100)},hr={test:nr(`hsl`,`hue`),parse:rr(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+dr.transform(Qn(t))+`, `+dr.transform(Qn(n))+`, `+Qn(Xn.transform(r))+`)`},W={test:e=>or.test(e)||cr.test(e)||hr.test(e),parse:e=>or.test(e)?or.parse(e):hr.test(e)?hr.parse(e):cr.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?or.transform(e):hr.transform(e),getAnimatableNone:e=>{let t=W.parse(e);return t.alpha=0,W.transform(t)}},gr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _r(e){return isNaN(e)&&typeof e==`string`&&(e.match($n)?.length||0)+(e.match(gr)?.length||0)>0}var vr=`number`,yr=`color`,br=`var`,xr=`var(`,Sr="${}",Cr=/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 wr(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Cr,e=>(W.test(e)?(r.color.push(a),i.push(yr),n.push(W.parse(e))):e.startsWith(xr)?(r.var.push(a),i.push(br),n.push(e)):(r.number.push(a),i.push(vr),n.push(parseFloat(e))),++a,Sr)).split(Sr),indexes:r,types:i}}function Tr(e){return wr(e).values}function Er({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===vr?i+=Qn(r[a]):e===yr?i+=W.transform(r[a]):i+=r[a]}return i}}function Dr(e){return Er(wr(e))}var Or=e=>typeof e==`number`?0:W.test(e)?W.getAnimatableNone(e):e,kr=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Or(e);function Ar(e){let t=wr(e);return Er(t)(t.values.map((e,n)=>kr(e,t.split[n])))}var jr={test:_r,parse:Tr,createTransformer:Dr,getAnimatableNone:Ar};function Mr(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Nr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Mr(s,r,e+1/3),a=Mr(s,r,e),o=Mr(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Pr(e,t){return n=>n>0?t:e}var G=(e,t,n)=>e+(t-e)*n,Fr=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ir=[cr,or,hr],Lr=e=>Ir.find(t=>t.test(e));function Rr(e){let t=Lr(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===hr&&(n=Nr(n)),n}var zr=(e,t)=>{let n=Rr(e),r=Rr(t);if(!n||!r)return Pr(e,t);let i={...n};return e=>(i.red=Fr(n.red,r.red,e),i.green=Fr(n.green,r.green,e),i.blue=Fr(n.blue,r.blue,e),i.alpha=G(n.alpha,r.alpha,e),or.transform(i))},Br=new Set([`none`,`hidden`]);function Vr(e,t){return Br.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Hr(e,t){return n=>G(e,t,n)}function Ur(e){return typeof e==`number`?Hr:typeof e==`string`?Kn(e)?Pr:W.test(e)?zr:qr:Array.isArray(e)?Wr:typeof e==`object`?W.test(e)?zr:Gr:Pr}function Wr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ur(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Gr(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ur(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Kr(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var qr=(e,t)=>{let n=jr.createTransformer(t),r=wr(e),i=wr(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?Br.has(e)&&!i.values.length||Br.has(t)&&!r.values.length?Vr(e,t):sn(Wr(Kr(r,i),i.values),n):(`${e}${t}`,Pr(e,t))};function Jr(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?G(e,t,n):Ur(e)(e,t)}var Yr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>B.update(t,e),stop:()=>Rn(t),now:()=>V.isProcessing?V.timestamp:H.now()}},Xr=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Zr=2e4;function Qr(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function $r(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Qr(r),Zr);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:z(i)}}var K={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};function ei(e,t){return e*Math.sqrt(1-t*t)}var ti=12;function ni(e,t,n){let r=n;for(let n=1;n<ti;n++)r-=e(r)/t(r);return r}var ri=.001;function ii({duration:e=K.duration,bounce:t=K.bounce,velocity:n=K.velocity,mass:r=K.mass}){let i,a;K.maxDuration;let o=1-t;o=Qt(K.minDamping,K.maxDamping,o),e=Qt(K.minDuration,K.maxDuration,z(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=ei(t,o),c=Math.exp(-i);return ri-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=ei(t**2,o);return(-i(t)+ri>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-ri+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ni(i,a,s);if(e=R(e),isNaN(c))return{stiffness:K.stiffness,damping:K.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var ai=[`duration`,`bounce`],oi=[`stiffness`,`damping`,`mass`];function si(e,t){return t.some(t=>e[t]!==void 0)}function ci(e){let t={velocity:K.velocity,stiffness:K.stiffness,damping:K.damping,mass:K.mass,isResolvedFromDuration:!1,...e};if(!si(e,oi)&&si(e,ai))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Qt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:K.mass,stiffness:i,damping:a}}else{let n=ii({...e,velocity:0});t={...t,...n,mass:K.mass},t.isResolvedFromDuration=!0}return t}function li(e=K.visualDuration,t=K.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=ci({...n,velocity:-z(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=z(Math.sqrt(c/u)),v=Math.abs(g)<5;r||(r=v?K.restSpeed.granular:K.restSpeed.default),i||(i=v?K.restDelta.granular:K.restDelta.default);let y,b,x,S,C,w;if(h<1)x=ei(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>R(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=R(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=R(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Qr(T),Zr),t=Xr(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}li.applyToOptions=e=>{let t=$r(e,100,li);return e.ease=t.ease,e.duration=R(t.duration),e.type=`keyframes`,e};var ui=5;function di(e,t,n){let r=Math.max(t-ui,0);return un(n-e(r),t-r)}function fi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=li({keyframes:[f.value,m(f.value)],velocity:di(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function pi(e,t,n){let r=[],i=n||en.mix||Jr,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=sn(Array.isArray(t)?t[n]||L:t,a)),r.push(a)}return r}function mi(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=pi(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=cn(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Qt(e[0],e[a-1],t)):l}function hi(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=cn(0,t,r);e.push(G(n,1,i))}}function gi(e){let t=[0];return hi(t,e.length-1),t}function _i(e,t){return e.map(e=>e*t)}function vi(e,t){return e.map(()=>t||Dn).splice(0,e.length-1)}function yi({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=On(r)?r.map(Mn):Mn(r),a={done:!1,value:t[0]},o=mi(_i(n&&n.length===t.length?n:gi(t),e),t,{ease:Array.isArray(i)?i:vi(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var bi=e=>e!==null;function xi(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(bi),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Si={decay:fi,inertia:fi,tween:yi,keyframes:yi,spring:li};function Ci(e){typeof e.type==`string`&&(e.type=Si[e.type])}var wi=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Ti=e=>e/100,Ei=class extends wi{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==H.now()&&this.tick(H.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Hn.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Ci(e);let{type:t=yi,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||yi;s!==yi&&typeof o[0]!=`number`&&(this.mixKeyframes=sn(Ti,Jr(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Qr(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Qt(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==fi&&(b.value=xi(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=R(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return di(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(H.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Yr,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||(this.startTime=t??n):this.startTime=n-this.holdTime,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(H.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,Hn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Di(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Oi=e=>e*180/Math.PI,ki=e=>ji(Oi(Math.atan2(e[1],e[0]))),Ai={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ki,rotateZ:ki,skewX:e=>Oi(Math.atan(e[1])),skewY:e=>Oi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ji=e=>(e%=360,e<0&&(e+=360),e),Mi=ki,Ni=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Pi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Fi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ni,scaleY:Pi,scale:e=>(Ni(e)+Pi(e))/2,rotateX:e=>ji(Oi(Math.atan2(e[6],e[5]))),rotateY:e=>ji(Oi(Math.atan2(-e[2],e[0]))),rotateZ:Mi,rotate:Mi,skewX:e=>Oi(Math.atan(e[4])),skewY:e=>Oi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ii(e){return+!!e.includes(`scale`)}function Li(e,t){if(!e||e===`none`)return Ii(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Fi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ai,i=t}if(!i)return Ii(t);let a=r[t],o=i[1].split(`,`).map(zi);return typeof a==`function`?a(o):o[a]}var Ri=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Li(n,t)};function zi(e){return parseFloat(e.trim())}var Bi=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Vi=new Set(Bi),Hi=e=>e===Yn||e===U,Ui=new Set([`x`,`y`,`z`]),Wi=Bi.filter(e=>!Ui.has(e));function Gi(e){let t=[];return Wi.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Ki={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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})=>Li(t,`x`),y:(e,{transform:t})=>Li(t,`y`)};Ki.translateX=Ki.x,Ki.translateY=Ki.y;var qi=new Set,Ji=!1,Yi=!1,Xi=!1;function Zi(){if(Yi){let e=Array.from(qi).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Gi(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Yi=!1,Ji=!1,qi.forEach(e=>e.complete(Xi)),qi.clear()}function Qi(){qi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yi=!0)})}function $i(){Xi=!0,Qi(),Zi(),Xi=!1}var ea=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(qi.add(this),Ji||(Ji=!0,B.read(Qi),B.resolveKeyframes(Zi))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Di(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),qi.delete(this)}cancel(){this.state===`scheduled`&&(qi.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ta=e=>e.startsWith(`--`);function na(e,t,n){ta(t)?e.style.setProperty(t,n):e.style[t]=n}var ra={};function ia(e,t){let n=an(e);return()=>ra[t]??n()}var aa=ia(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),oa=ia(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),sa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ca={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:sa([0,.65,.55,1]),circOut:sa([.55,0,1,.45]),backIn:sa([.31,.01,.66,-.59]),backOut:sa([.33,1.53,.69,.99])};function la(e,t){if(e)return typeof e==`function`?oa()?Xr(e,t):`ease-out`:kn(e)?sa(e):Array.isArray(e)?e.map(e=>la(e,t)||ca.easeOut):ca[e]}function ua(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=la(s,i);Array.isArray(d)&&(u.easing=d),Pn.value&&Hn.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Pn.value&&p.finished.finally(()=>{Hn.waapi--}),p}function da(e){return typeof e==`function`&&`applyToOptions`in e}function fa({type:e,...t}){return da(e)&&oa()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease=`easeOut`),t)}var pa=class extends wi{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=fa(e);this.animation=ua(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=xi(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),na(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return z(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=R(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&aa()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),L):r(this)}},ma={anticipate:xn,backInOut:bn,circInOut:wn};function ha(e){return e in ma}function ga(e){typeof e.ease==`string`&&ha(e.ease)&&(e.ease=ma[e.ease])}var _a=10,va=class extends pa{constructor(e){ga(e),Ci(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Ei({...a,autoplay:!1}),s=Math.max(_a,H.now()-this.startTime),c=Qt(0,_a,s-_a),l=o.sample(s).value,{name:u}=this.options;i&&u&&na(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ya=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(jr.test(e)||e===`0`)&&!e.startsWith(`url(`));function ba(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xa(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ya(i,t),s=ya(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:ba(e)||(n===`spring`||da(n))&&r}function Sa(e){e.duration=0,e.type=`keyframes`}var Ca=new Set([`opacity`,`clipPath`,`filter`,`transform`]),wa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ta(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&wa.test(e[t]))return!0;return!1}var Ea=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Da=an(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Oa(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Da()&&n&&(Ca.has(n)||Ea.has(n)&&Ta(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ka=40,Aa=class extends wi{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=H.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||ea;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=H.now();let u=!0;xa(e,i,a,o)||(u=!1,(en.instantAnimations||!s)&&l?.(xi(e,n,t)),e[0]=e[e.length-1],Sa(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>ka?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Oa(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new va({...d,element:p})}catch{m=new Ei(d)}else m=new Ei(d);m.finished.then(()=>{this.notifyFinished()}).catch(L),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(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$i()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ja(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Na(e){let t=Ma.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Pa(e,t,n=1){`${e}`;let[r,i]=Na(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return tn(e)?parseFloat(e):e}return Kn(i)?Pa(i,t,n+1):i}var Fa={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ia=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),La={type:`keyframes`,duration:.8},Ra={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},za=(e,{keyframes:t})=>t.length>2?La:Vi.has(e)?e.startsWith(`scale`)?Ia(t[1]):Fa:Ra;function Ba(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Va(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ba(n,e)}var Ha=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Ua(e){for(let t in e)if(!Ha.has(t))return!0;return!1}var Wa=(e,t,n,r={},i,a)=>o=>{let s=Va(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=R(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Ua(s)||Object.assign(u,za(e,u)),u.duration&&(u.duration=R(u.duration)),u.repeatDelay&&(u.repeatDelay=R(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Sa(u),u.delay===0&&(d=!0)),(en.instantAnimations||en.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Sa(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=xi(u.keyframes,s);if(e!==void 0){B.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Ei(u):new Aa(u)};function Ga(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ka(e,t,n,r){if(typeof t==`function`){let[i,a]=Ga(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ga(r);t=t(n===void 0?e.custom:n,i,a)}return t}function qa(e,t,n){let r=e.getProps();return Ka(r,t,n===void 0?r.custom:n,e)}var Ja=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Bi]),Ya=30,Xa=e=>!isNaN(parseFloat(e)),Za={current:void 0},Qa=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=H.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=H.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Xa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ln);let n=this.events[e].add(t);return e===`change`?()=>{n(),B.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Za.current&&Za.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=H.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ya)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ya);return un(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 $a(e,t){return new Qa(e,t)}var eo=e=>Array.isArray(e);function to(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$a(n))}function no(e){return eo(e)?e[e.length-1]||0:e}function ro(e,t){let{transitionEnd:n={},transition:r={},...i}=qa(e,t)||{};i={...i,...n};for(let t in i)to(e,t,no(i[t]))}var q=e=>!!(e&&e.getVelocity);function io(e){return!!(q(e)&&e.add)}function ao(e,t){let n=e.getValue(`willChange`);if(io(n))return n.add(t);if(!n&&en.WillChange){let n=new en.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function oo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var so=`data-`+oo(`framerAppearId`);function co(e){return e.props[so]}function lo({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uo(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ba(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&lo(d,t))continue;let o={delay:n,...Va(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){B.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=co(e);if(n){let e=window.MotionHandoffAnimation(n,t,B);e!==null&&(o.startTime=e,f=!0)}}ao(e,t);let p=l??e.shouldReduceMotion;r.start(Wa(t,r,i,p&&Ja.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>B.update(()=>{o&&ro(e,o)});u.length?Promise.all(u).then(t):t()}return u}function fo(e,t,n={}){let r=qa(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(uo(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return po(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function po(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(fo(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ja(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function mo(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>fo(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=fo(e,t,n);else{let i=typeof t==`function`?qa(e,t,n.custom):t;r=Promise.all(uo(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ho={test:e=>e===`auto`,parse:e=>e},go=e=>t=>t.test(e),_o=[Yn,U,dr,ur,pr,fr,ho],vo=e=>_o.find(go(e));function yo(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||rn(e)}var bo=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function xo(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match($n)||[];if(!r)return e;let i=n.replace(r,``),a=+!!bo.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var So=/\b([a-z-]*)\(.*?\)/gu,Co={...jr,getAnimatableNone:e=>{let t=e.match(So);return t?t.map(xo).join(` `):e}},wo={...jr,getAnimatableNone:e=>{let t=jr.parse(e);return jr.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},To={...Yn,transform:Math.round},Eo={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,rotate:ur,rotateX:ur,rotateY:ur,rotateZ:ur,scale:Zn,scaleX:Zn,scaleY:Zn,scaleZ:Zn,skew:ur,skewX:ur,skewY:ur,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Xn,originX:mr,originY:mr,originZ:U,zIndex:To,fillOpacity:Xn,strokeOpacity:Xn,numOctaves:To},Do={...Eo,color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,filter:Co,WebkitFilter:Co,mask:wo,WebkitMask:wo},Oo=e=>Do[e],ko=new Set([Co,wo]);function Ao(e,t){let n=Oo(e);return ko.has(n)||(n=jr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var jo=new Set([`auto`,`none`,`0`]);function Mo(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!jo.has(t)&&wr(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ao(n,i)}var No=class extends ea{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Kn(r))){let i=Pa(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ja.has(n)||e.length!==2)return;let[r,i]=e,a=vo(r),o=vo(i);if(Jn(r)!==Jn(i)&&Ki[n]){this.needsMeasurement=!0;return}if(a!==o)if(Hi(a)&&Hi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Ki[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||yo(e[t]))&&n.push(t);n.length&&Mo(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ki[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Ki[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Po(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Fo=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Io(e){return nn(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Lo,cancel:Ro}=Ln(queueMicrotask,!1),zo={x:!1,y:!1};function Bo(){return zo.x||zo.y}function Vo(e){return e===`x`||e===`y`?zo[e]?null:(zo[e]=!0,()=>{zo[e]=!1}):zo.x||zo.y?null:(zo.x=zo.y=!0,()=>{zo.x=zo.y=!1})}function Ho(e,t){let n=Po(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Uo(e){return!(e.pointerType===`touch`||Bo())}function Wo(e,t,n={}){let[r,i,a]=Ho(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&(a(e),a=void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Uo(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Go=(e,t)=>t?e===t?!0:Go(e,t.parentElement):!1,Ko=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,qo=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Jo(e){return qo.has(e.tagName)||e.isContentEditable===!0}var Yo=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Xo(e){return Yo.has(e.tagName)||e.isContentEditable===!0}var Zo=new WeakSet;function Qo(e){return t=>{t.key===`Enter`&&e(t)}}function $o(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var es=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Qo(()=>{if(Zo.has(n))return;$o(n,`down`);let e=Qo(()=>{$o(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>$o(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ts(e){return Ko(e)&&!Bo()}var ns=new WeakSet;function rs(e,t,n={}){let[r,i,a]=Ho(e,n),o=e=>{let r=e.currentTarget;if(!ts(e)||ns.has(e))return;Zo.add(r),n.stopPropagation&&ns.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Zo.has(r)&&Zo.delete(r),ts(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Go(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Io(e)&&(e.addEventListener(`focus`,e=>es(e,i)),!Jo(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function is(e){return nn(e)&&`ownerSVGElement`in e}var as=new WeakMap,os,ss=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:is(r)&&`getBBox`in r?r.getBBox()[t]:r[n],cs=ss(`inline`,`width`,`offsetWidth`),ls=ss(`block`,`height`,`offsetHeight`);function us({target:e,borderBoxSize:t}){as.get(e)?.forEach(n=>{n(e,{get width(){return cs(e,t)},get height(){return ls(e,t)}})})}function ds(e){e.forEach(us)}function fs(){typeof ResizeObserver>`u`||(os=new ResizeObserver(ds))}function ps(e,t){os||fs();let n=Po(e);return n.forEach(e=>{let n=as.get(e);n||(n=new Set,as.set(e,n)),n.add(t),os?.observe(e)}),()=>{n.forEach(e=>{let n=as.get(e);n?.delete(t),n?.size||os?.unobserve(e)})}}var ms=new Set,hs;function gs(){hs=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ms.forEach(t=>t(e))},window.addEventListener(`resize`,hs)}function _s(e){return ms.add(e),hs||gs(),()=>{ms.delete(e),!ms.size&&typeof hs==`function`&&(window.removeEventListener(`resize`,hs),hs=void 0)}}function vs(e,t){return typeof e==`function`?_s(e):ps(e,t)}function ys(e){return is(e)&&e.tagName===`svg`}var bs=[..._o,W,jr],xs=e=>bs.find(go(e)),Ss=()=>({translate:0,scale:1,origin:0,originPoint:0}),Cs=()=>({x:Ss(),y:Ss()}),ws=()=>({min:0,max:0}),J=()=>({x:ws(),y:ws()}),Ts=new WeakMap;function Es(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ds(e){return typeof e==`string`||Array.isArray(e)}var Os=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ks=[`initial`,...Os];function As(e){return Es(e.animate)||ks.some(t=>Ds(e[t]))}function js(e){return!!(As(e)||e.variants)}function Ms(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,$a(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,$a(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ns={current:null},Ps={current:!1},Fs=typeof window<`u`;function Is(){if(Ps.current=!0,Fs)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ns.current=e.matches;e.addEventListener(`change`,t),t()}else Ns.current=!1}var Ls=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Rs={};function zs(e){Rs=e}function Bs(){return Rs}var Vs=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ea,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=H.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,B.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=As(t),this.isVariantNode=js(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ts.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ps.current||Is(),this.shouldReduceMotion=Ns.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Rn(this.notifyUpdate),Rn(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ca.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new pa({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:R(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Vi.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&B.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Rs){let t=Rs[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ls.length;t++){let n=Ls[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ms(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=$a(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(tn(n)||rn(n))?n=parseFloat(n):!xs(n)&&jr.test(t)&&(n=Ao(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Ka(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ln),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Lo.render(this.render)}},Hs=class extends Vs{constructor(){super(...arguments),this.KeyframeResolver=No}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Us=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Ws({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Gs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ks(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qs(e){return e===void 0||e===1}function Js({scale:e,scaleX:t,scaleY:n}){return!qs(e)||!qs(t)||!qs(n)}function Ys(e){return Js(e)||Xs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Xs(e){return Zs(e.x)||Zs(e.y)}function Zs(e){return e&&e!==`0%`}function Qs(e,t,n){return n+t*(e-n)}function $s(e,t,n,r,i){return i!==void 0&&(e=Qs(e,i,r)),Qs(e,n,r)+t}function ec(e,t=0,n=1,r,i){e.min=$s(e.min,t,n,r,i),e.max=$s(e.max,t,n,r,i)}function tc(e,{x:t,y:n}){ec(e.x,t.translate,t.scale,t.originPoint),ec(e.y,n.translate,n.scale,n.originPoint)}var nc=.999999999999,rc=1.0000000000001;function ic(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(ac(e.x,-a.scroll.offset.x),ac(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tc(e,o)),r&&Ys(a.latestValues)&&cc(e,a.latestValues,a.layout?.layoutBox))}t.x<rc&&t.x>nc&&(t.x=1),t.y<rc&&t.y>nc&&(t.y=1)}function ac(e,t){e.min+=t,e.max+=t}function oc(e,t,n,r,i=.5){ec(e,t,n,G(e.min,e.max,i),r)}function sc(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function cc(e,t,n){let r=n??e;oc(e.x,sc(t.x,r.x),t.scaleX,t.scale,t.originX),oc(e.y,sc(t.y,r.y),t.scaleY,t.scale,t.originY)}function lc(e,t){return Ws(Ks(e.getBoundingClientRect(),t))}function uc(e,t,n){let r=lc(e,n),{scroll:i}=t;return i&&(ac(r.x,i.offset.x),ac(r.y,i.offset.y)),r}var dc={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},fc=Bi.length;function pc(e,t,n){let r=``,i=!0;for(let a=0;a<fc;a++){let o=Bi[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Fo(s,Eo[o]);if(!c){i=!1;let t=dc[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function mc(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Vi.has(e)){o=!0;continue}else if(Wn(e)){i[e]=n;continue}else{let t=Fo(n,Eo[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=pc(t,e.transform,n):r.transform&&(r.transform=`none`)),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function hc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function gc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var _c={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(U.test(e))e=parseFloat(e);else return e;return`${gc(e,t.target.x)}% ${gc(e,t.target.y)}%`}},vc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=jr.parse(e);if(i.length>5)return r;let a=jr.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=G(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},yc={borderRadius:{..._c,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:_c,borderTopRightRadius:_c,borderBottomLeftRadius:_c,borderBottomRightRadius:_c,boxShadow:vc};function bc(e,{layout:t,layoutId:n}){return Vi.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!yc[e]||e===`opacity`)}function xc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(q(r[t])||i&&q(i[t])||bc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Sc(e){return window.getComputedStyle(e)}var Cc=class extends Hs{constructor(){super(...arguments),this.type=`html`,this.renderInstance=hc}readValueFromInstance(e,t){if(Vi.has(t))return this.projection?.isProjecting?Ii(t):Ri(e,t);{let n=Sc(e),r=(Wn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return lc(e,t)}build(e,t,n){mc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return xc(e,t,n)}},wc={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Tc={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ec(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?wc:Tc;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Dc=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Oc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(mc(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Dc)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ec(d,i,a,o,!1)}var kc=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Ac=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function jc(e,t,n,r){hc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(kc.has(n)?n:oo(n),t.attrs[n])}function Mc(e,t,n){let r=xc(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=Bi.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Nc=class extends Hs{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vi.has(t)){let e=Oo(t);return e&&e.default||0}return t=kc.has(t)?t:oo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Mc(e,t,n)}build(e,t,n){Oc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){jc(e,t,n,r)}mount(e){this.isSVGTag=Ac(e.tagName),super.mount(e)}},Pc=ks.length;function Fc(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Fc(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Pc;n++){let r=ks[n],i=e.props[r];(Ds(i)||i===!1)&&(t[r]=i)}return t}function Ic(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Lc=[...Os].reverse(),Rc=Os.length;function zc(e){return t=>Promise.all(t.map(({animation:t,options:n})=>mo(e,t,n)))}function Bc(e){let t=zc(e),n=Uc(),r=!0,i=!1,a=t=>(n,r)=>{let i=qa(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Fc(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Rc;t++){let p=Lc[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ds(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Es(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Vc(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},ee=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=eo(t)&&eo(n)?!Ic(t,n):t!==n,r?t==null?u.add(e):ee(e):t!==void 0&&u.has(e)?ee(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let te=v&&y;b&&(!te||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!te&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=qa(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ja(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=qa(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Uc(),i=!0}}}function Vc(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ic(t,e):!1}function Hc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uc(){return{animate:Hc(!0),whileInView:Hc(),whileHover:Hc(),whileTap:Hc(),whileDrag:Hc(),whileFocus:Hc(),exit:Hc()}}function Wc(e,t){e.min=t.min,e.max=t.max}function Gc(e,t){Wc(e.x,t.x),Wc(e.y,t.y)}function Kc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var qc=1e-4,Jc=1-qc,Yc=1+qc,Xc=.01,Zc=0-Xc,Qc=0+Xc;function Y(e){return e.max-e.min}function $c(e,t,n){return Math.abs(e-t)<=n}function el(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Y(n)/Y(t),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Jc&&e.scale<=Yc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zc&&e.translate<=Qc||isNaN(e.translate))&&(e.translate=0)}function tl(e,t,n,r){el(e.x,t.x,n.x,r?r.originX:void 0),el(e.y,t.y,n.y,r?r.originY:void 0)}function nl(e,t,n,r=0){e.min=(r?G(n.min,n.max,r):n.min)+t.min,e.max=e.min+Y(t)}function rl(e,t,n,r){nl(e.x,t.x,n.x,r?.x),nl(e.y,t.y,n.y,r?.y)}function il(e,t,n,r=0){let i=r?G(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Y(t)}function al(e,t,n,r){il(e.x,t.x,n.x,r?.x),il(e.y,t.y,n.y,r?.y)}function ol(e,t,n,r,i){return e-=t,e=Qs(e,1/n,r),i!==void 0&&(e=Qs(e,1/i,r)),e}function sl(e,t=0,n=1,r=.5,i,a=e,o=e){if(dr.test(t)&&(t=parseFloat(t),t=G(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=G(a.min,a.max,r);e===a&&(s-=t),e.min=ol(e.min,t,n,s,i),e.max=ol(e.max,t,n,s,i)}function cl(e,t,[n,r,i],a,o){sl(e,t[n],t[r],t[i],t.scale,a,o)}var ll=[`x`,`scaleX`,`originX`],ul=[`y`,`scaleY`,`originY`];function dl(e,t,n,r){cl(e.x,t,ll,n?n.x:void 0,r?r.x:void 0),cl(e.y,t,ul,n?n.y:void 0,r?r.y:void 0)}function fl(e){return e.translate===0&&e.scale===1}function pl(e){return fl(e.x)&&fl(e.y)}function ml(e,t){return e.min===t.min&&e.max===t.max}function hl(e,t){return ml(e.x,t.x)&&ml(e.y,t.y)}function gl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _l(e,t){return gl(e.x,t.x)&&gl(e.y,t.y)}function vl(e){return Y(e.x)/Y(e.y)}function yl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function bl(e){return[e(`x`),e(`y`)]}function xl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Sl=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Cl=Sl.length,wl=e=>typeof e==`string`?parseFloat(e):e,Tl=e=>typeof e==`number`||U.test(e);function El(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,Ol(r)),e.opacityExit=G(t.opacity??1,0,kl(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<Cl;i++){let a=Sl[i],o=Dl(t,a),s=Dl(n,a);o===void 0&&s===void 0||(o||(o=0),s||(s=0),o===0||s===0||Tl(o)===Tl(s)?(e[a]=Math.max(G(wl(o),wl(s),r),0),(dr.test(s)||dr.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=G(t.rotate||0,n.rotate||0,r))}function Dl(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ol=Al(0,.5,Cn),kl=Al(.5,.95,L);function Al(e,t,n){return r=>r<e?0:r>t?1:n(cn(e,t,r))}function jl(e,t,n){let r=q(e)?e:$a(e);return r.start(Wa(``,r,t,n)),r.animation}function Ml(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Nl=(e,t)=>e.depth-t.depth,Pl=class{constructor(){this.children=[],this.isDirty=!1}add(e){Xt(this.children,e),this.isDirty=!0}remove(e){Zt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Nl),this.isDirty=!1,this.children.forEach(e)}};function Fl(e,t){let n=H.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Rn(r),e(a-t))};return B.setup(r,!0),()=>Rn(r)}function Il(e){return q(e)?e.get():e}var Ll=class{constructor(){this.members=[]}add(e){Xt(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Zt(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Zt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Rl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},zl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Bl=[``,`X`,`Y`,`Z`],Vl=1e3,Hl=0;function Ul(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=co(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,B,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wl(r)}function Gl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Hl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pn.value&&(zl.nodes=zl.calculatedTargetDeltas=zl.calculatedProjections=0),this.nodes.forEach(Jl),this.nodes.forEach(ru),this.nodes.forEach(iu),this.nodes.forEach(Yl),Pn.addProjectionMetrics&&Pn.addProjectionMetrics(zl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ln),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=is(t)&&!ys(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;B.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Fl(i,250),Rl.hasAnimatedSinceResize&&(Rl.hasAnimatedSinceResize=!1,this.nodes.forEach(nu)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||du,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!_l(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Va(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||nu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Rn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(au),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ql),this.nodes.forEach(Zl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($l);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eu),this.nodes.forEach(tu),this.nodes.forEach(Kl),this.nodes.forEach(ql)):this.nodes.forEach($l),this.clearAllSnapshots();let e=H.now();V.delta=Qt(0,1e3/60,e-V.timestamp),V.timestamp=e,V.isProcessing=!0,zn.update.process(V),zn.preRender.process(V),zn.render.process(V),V.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Lo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xl),this.sharedNodes.forEach(ou)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=J()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!pl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ys(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),hu(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_u))){let{scroll:e}=this.root;e&&(ac(t.x,e.offset.x),ac(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Gc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Gc(t,e),ac(t.x,i.offset.x),ac(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Gc(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ac(r.x,-n.scroll.offset.x),ac(r.y,-n.scroll.offset.y)),Ys(n.latestValues)&&cc(r,n.latestValues,n.layout?.layoutBox)}return Ys(this.latestValues)&&cc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Gc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ys(n.latestValues))continue;let r;n.instance&&(Js(n.latestValues)&&n.updateSnapshot(),r=J(),Gc(r,n.measurePageBox())),dl(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ys(this.latestValues)&&dl(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==V.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=V.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Gc(this.target,this.layout.layoutBox),tc(this.target,this.targetDelta)):Gc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Pn.value&&zl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Js(this.parent.latestValues)||Xs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),al(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Gc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===V.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Gc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ic(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Kc(this.prevProjectionDelta.x,this.projectionDelta.x),Kc(this.prevProjectionDelta.y,this.projectionDelta.y)),tl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!yl(this.projectionDelta.x,this.prevProjectionDelta.x)||!yl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Pn.value&&zl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Cs(),this.projectionDelta=Cs(),this.projectionDeltaWithTransform=Cs()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Cs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=J(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(uu));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;su(a.x,e.x,n),su(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(al(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),lu(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&hl(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=J()),Gc(d,this.relativeTarget)),s&&(this.animationValues=i,El(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{Rl.hasAnimatedSinceResize=!0,Hn.layout++,this.motionValue||(this.motionValue=$a(0)),this.motionValue.jump(0,!1),this.currentAnimation=jl(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Hn.layout--},onComplete:()=>{Hn.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&gu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=Y(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Y(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Gc(t,n),cc(t,i),tl(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ll),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Ul(`z`,e,r,this.animationValues);for(let t=0;t<Bl.length;t++)Ul(`rotate${Bl[t]}`,e,r,this.animationValues),Ul(`skew${Bl[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Il(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Il(t?.pointerEvents)||``),this.hasProjected&&!Ys(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=xl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in yc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=yc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Il(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Zl),this.root.sharedNodes.clear()}}}function Kl(e){e.updateLayout()}function ql(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)bl(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Y(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Wc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else gu(i,t.layoutBox,n)&&bl(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Y(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Cs();tl(o,n,t.layoutBox);let s=Cs();a?tl(s,e.applyTransform(r,!0),t.measuredBox):tl(s,n,t.layoutBox);let c=!pl(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();al(s,t.layoutBox,i.layoutBox,o);let c=J();al(c,n,a.layoutBox,o),_l(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Jl(e){Pn.value&&zl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Yl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xl(e){e.clearSnapshot()}function Zl(e){e.clearMeasurements()}function Ql(e){e.isLayoutDirty=!0,e.updateLayout()}function $l(e){e.isLayoutDirty=!1}function eu(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function tu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function nu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ru(e){e.resolveTargetDelta()}function iu(e){e.calcProjection()}function au(e){e.resetSkewAndRotation()}function ou(e){e.removeLeadSnapshot()}function su(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cu(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function lu(e,t,n,r){cu(e.x,t.x,n.x,r),cu(e.y,t.y,n.y,r)}function uu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var du={duration:.45,ease:[.4,0,.1,1]},fu=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),pu=fu(`applewebkit/`)&&!fu(`chrome/`)?Math.round:L;function mu(e){e.min=pu(e.min),e.max=pu(e.max)}function hu(e){mu(e.x),mu(e.y)}function gu(e,t,n){return e===`position`||e===`preserve-aspect`&&!$c(vl(t),vl(n),.2)}function _u(e){return e!==e.root&&e.scroll?.wasRoot}var vu=Gl({attachResizeListener:(e,t)=>Ml(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),yu={current:void 0},bu=Gl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yu.current){let e=new vu({});e.mount(window),e.setOptions({layoutScroll:!0}),yu.current=e}return yu.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),xu=c({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Su(e=!0){let t=p(Yt);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=h();m(()=>{if(e)return i(a)},[e]);let o=f(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Cu=c({strict:!1}),wu={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Tu=!1;function Eu(){if(Tu)return;let e={};for(let t in wu)e[t]={isEnabled:e=>wu[t].some(t=>!!e[t])};zs(e),Tu=!0}function Du(){return Eu(),Bs()}function Ou(e){let t=Du();for(let n in e)t[n]={...t[n],...e[n]};zs(t)}var ku=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Au(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ku.has(e)}var ju=ie({default:()=>Mu}),Mu,Nu=ne((()=>{throw Mu={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Pu=e=>!Au(e);function Fu(e){typeof e==`function`&&(Pu=t=>t.startsWith(`on`)?!Au(t):e(t))}try{Fu((Nu(),oe(ju)).default)}catch{}function Iu(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||q(e[i])||(Pu(i)||n===!0&&Au(i)||!t&&!Au(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Lu=c({});function Ru(e,t){if(As(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ds(t)?t:void 0,animate:Ds(n)?n:void 0}}return e.inherit===!1?{}:t}function zu(e){let{initial:t,animate:n}=Ru(e,p(Lu));return v(()=>({initial:t,animate:n}),[Bu(t),Bu(n)])}function Bu(e){return Array.isArray(e)?e.join(` `):e}var Vu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hu(e,t,n){for(let r in t)!q(t[r])&&!bc(r,n)&&(e[r]=t[r])}function Uu({transformTemplate:e},t){return v(()=>{let n=Vu();return mc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Wu(e,t){let n=e.style||{},r={};return Hu(r,n,e),Object.assign(r,Uu(e,t)),r}function Gu(e,t){let n={},r=Wu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ku=()=>({...Vu(),attrs:{}});function qu(e,t,n,r){let i=v(()=>{let n=Ku();return Oc(n,t,Ac(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Hu(t,e.style,e),i.style={...t,...i.style}}return i}var Ju=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Yu(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Ju.indexOf(e)>-1||/[A-Z]/u.test(e))}function Xu(e,t,n,{latestValues:r},i,a=!1,s){let c=(s??Yu(e)?qu:Gu)(t,r,i,e),u=Iu(t,typeof e==`string`,a),d=e===o?{}:{...u,...c,ref:n},{children:f}=t,p=v(()=>q(f)?f.get():f,[f]);return l(e,{...d,children:p})}function Zu({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Qu(n,r,i,e),renderState:t()}}function Qu(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Il(a[e]);let{initial:o,animate:s}=e,c=As(e),l=js(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Es(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ka(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var $u=e=>(t,n)=>{let r=p(Lu),i=p(Yt),a=()=>Zu(e,t,r,i);return n?a():qt(a)},ed=$u({scrapeMotionValuesFromProps:xc,createRenderState:Vu}),td=$u({scrapeMotionValuesFromProps:Mc,createRenderState:Ku}),nd=Symbol.for(`motionComponentSymbol`);function rd(e,t,n){let r=y(n);g(()=>{r.current=n});let i=y(null);return f(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var id=c({});function ad(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function od(e,t,n,r,i,a){let{visualElement:o}=p(Lu),s=p(Cu),c=p(Yt),l=p(xu),u=l.reducedMotion,d=l.skipAnimations,f=y(null),h=y(!1);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let _=f.current,v=p(id);_&&!_.projection&&i&&(_.type===`html`||_.type===`svg`)&&sd(f.current,n,i,v);let b=y(!1);g(()=>{_&&b.current&&_.update(n,c)});let x=n[so],S=y(!!x&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Jt(()=>{h.current=!0,_&&(b.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),S.current&&_.animationState&&_.animationState.animateChanges())}),m(()=>{_&&(!S.current&&_.animationState&&_.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),S.current=!1),_.enteringChildren=void 0)}),_}function sd(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:cd(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&ad(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function cd(e){if(e)return e.options.allowProjection===!1?cd(e.parent):e.projection}function ld(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Ou(r);let a=n?n===`svg`:Yu(e),o=a?td:ed;function s(n,s){let c,l={...p(xu),...n,layoutId:ud(n)},{isStatic:u}=l,d=zu(n),f=o(n,u);if(!u&&typeof window<`u`){dd(l,r);let t=fd(l);c=t.MeasureLayout,d.visualElement=od(e,f,l,i,t.ProjectionNode,a)}return x(Lu.Provider,{value:d,children:[c&&d.visualElement?b(c,{visualElement:d.visualElement,...l}):null,Xu(e,n,rd(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=u(s);return c[nd]=e,c}function ud({layoutId:e}){let t=p(Kt).id;return t&&e!==void 0?t+`-`+e:e}function dd(e,t){p(Cu).strict}function fd(e){let{drag:t,layout:n}=Du();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function pd(e,t){if(typeof Proxy>`u`)return ld;let n=new Map,r=(n,r)=>ld(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,ld(a,void 0,e,t)),n.get(a))})}var md=(e,t)=>t.isSVG??Yu(e)?new Nc(t):new Cc(t,{allowProjection:e!==o}),hd=class extends Us{constructor(e){super(e),e.animationState||(e.animationState=Bc(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Es(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},gd=0,_d={animation:{Feature:hd},exit:{Feature:class extends Us{constructor(){super(...arguments),this.id=gd++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=qa(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function vd(e){return{point:{x:e.pageX,y:e.pageY}}}var yd=e=>t=>Ko(t)&&e(t,vd(t));function bd(e,t,n,r){return Ml(e,t,yd(n),r)}var xd=({current:e})=>e?e.ownerDocument.defaultView:null,Sd=(e,t)=>Math.abs(e-t);function Cd(e,t){let n=Sd(e.x,t.x),r=Sd(e.y,t.y);return Math.sqrt(n**2+r**2)}var wd=new Set([`auto`,`scroll`]),Td=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ed(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Od(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Cd(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=V;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Ed(t,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Od(e.type===`pointercancel`?this.lastMoveEventInfo:Ed(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ko(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Ed(vd(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=V;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Od(s,this.history)),this.removeListeners=sn(bd(this.contextWindow,`pointermove`,this.handlePointerMove),bd(this.contextWindow,`pointerup`,this.handlePointerUp),bd(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(wd.has(e.overflowX)||wd.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),B.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Rn(this.updatePoint)}};function Ed(e,t){return t?{point:t(e.point)}:e}function Dd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Od({point:e},t){return{point:e,delta:Dd(e,Ad(t)),offset:Dd(e,kd(t)),velocity:jd(t,.1)}}function kd(e){return e[0]}function Ad(e){return e[e.length-1]}function jd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ad(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>R(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>R(t)*2&&(r=e[1]);let a=z(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Md(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?G(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Nd(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Pd(e,{top:t,left:n,bottom:r,right:i}){return{x:Nd(e.x,n,i),y:Nd(e.y,t,r)}}function Fd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Id(e,t){return{x:Fd(e.x,t.x),y:Fd(e.y,t.y)}}function Ld(e,t){let n=.5,r=Y(e),i=Y(t);return i>r?n=cn(t.min,t.max-r,e.min):r>i&&(n=cn(e.min,e.max-i,t.min)),Qt(0,1,n)}function Rd(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var zd=.35;function Bd(e=zd){return e===!1?e=0:e===!0&&(e=zd),{x:Vd(e,`left`,`right`),y:Vd(e,`top`,`bottom`)}}function Vd(e,t,n){return{min:Hd(e,t),max:Hd(e,n)}}function Hd(e,t){return typeof e==`number`?e:e[t]||0}var Ud=new WeakMap,Wd=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(vd(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vo(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(dr.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Y(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&B.update(()=>i(e,t),!1,!0),ao(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Jd(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&B.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Td(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:xd(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&B.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!qd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Md(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&ad(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=Pd(n.layoutBox,e):this.constraints=!1,this.elastic=Bd(t),r!==this.constraints&&!ad(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&bl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Rd(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ad(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=uc(n,r.root,this.visualElement.getTransformPagePoint()),a=Id(r.layout.layoutBox,i);if(t){let e=t(Gs(a));this.hasMutatedConstraints=!!e,e&&(a=Ws(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=bl(o=>{if(!qd(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ao(this.visualElement,e),n.start(Wa(e,n,0,t,this.visualElement,!1))}stopAnimation(){bl(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){bl(t=>{let{drag:n}=this.getProps();if(!qd(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-G(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ad(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};bl(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Ld({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),bl(t=>{if(!qd(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(G(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ud.set(this.visualElement,this);let e=this.visualElement.current,t=bd(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Xo(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();ad(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Kd(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),B.read(r);let o=Ml(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(bl(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=zd,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Gd(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Kd(e,t,n){let r=vs(e,Gd(n)),i=vs(t,Gd(n));return()=>{r(),i()}}function qd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Yd=class extends Us{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Wd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Xd=e=>(t,n)=>{e&&B.update(()=>e(t,n),!1,!0)},Zd=class extends Us{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new Td(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xd(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Xd(e),onStart:Xd(t),onMove:Xd(n),onEnd:(e,t)=>{delete this.session,r&&B.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=bd(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Qd=!1,$d=class extends a{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Qd&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Rl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Qd=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||B.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Lo.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Qd=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function ef(e){let[t,n]=Su(),r=p(Kt);return b($d,{...e,layoutGroup:r,switchLayoutGroup:p(id),isPresent:t,safeToRemove:n})}var tf={pan:{Feature:Zd},drag:{Feature:Yd,ProjectionNode:bu,MeasureLayout:ef}};function nf(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&B.postRender(()=>i(t,vd(t)))}var rf=class extends Us{mount(){let{current:e}=this.node;e&&(this.unmount=Wo(e,(e,t)=>(nf(this.node,t,`Start`),e=>nf(this.node,e,`End`))))}unmount(){}},af=class extends Us{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=sn(Ml(this.node.current,`focus`,()=>this.onFocus()),Ml(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function of(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&B.postRender(()=>i(t,vd(t)))}var sf=class extends Us{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=rs(e,(e,t)=>(of(this.node,t,`Start`),(e,{success:t})=>of(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},cf=new WeakMap,lf=new WeakMap,uf=e=>{let t=cf.get(e.target);t&&t(e)},df=e=>{e.forEach(uf)};function ff({root:e,...t}){let n=e||document;lf.has(n)||lf.set(n,{});let r=lf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(df,{root:e,...t})),r[i]}function pf(e,t,n){let r=ff(t);return cf.set(e,n),r.observe(e),()=>{cf.delete(e),r.unobserve(e)}}var mf={some:0,all:1},hf=class extends Us{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:mf[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=pf(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(gf(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function gf({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var _f={inView:{Feature:hf},tap:{Feature:sf},focus:{Feature:af},hover:{Feature:rf}},vf={layout:{ProjectionNode:bu,MeasureLayout:ef}},yf=pd({..._d,..._f,...tf,...vf},md);function bf(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=bf(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function xf(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bf(e))&&(r&&(r+=` `),r+=t);return r}var Sf=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Cf=(e,t)=>({classGroupId:e,validator:t}),wf=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Tf=`-`,Ef=[],Df=`arbitrary..`,Of=e=>{let t=jf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Af(e);let n=e.split(Tf);return kf(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Sf(i,t):t:i||Ef}return n[e]||Ef}}},kf=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=kf(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Tf):e.slice(t).join(Tf),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Af=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Df+r:void 0})(),jf=e=>{let{theme:t,classGroups:n}=e;return Mf(n,t)},Mf=(e,t)=>{let n=wf();for(let r in e){let i=e[r];Nf(i,n,r,t)}return n},Nf=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Pf(i,t,n,r)}},Pf=(e,t,n,r)=>{if(typeof e==`string`){Ff(e,t,n);return}if(typeof e==`function`){If(e,t,n,r);return}Lf(e,t,n,r)},Ff=(e,t,n)=>{let r=e===``?t:Rf(t,e);r.classGroupId=n},If=(e,t,n,r)=>{if(zf(e)){Nf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Cf(n,e))},Lf=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Nf(o,Rf(t,a),n,r)}},Rf=(e,t)=>{let n=e,r=t.split(Tf),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=wf(),n.nextPart.set(t,i)),n=i}return n},zf=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Bf=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Vf=`!`,Hf=`:`,Uf=[],Wf=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Gf=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Hf){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Vf)?(c=s.slice(0,-1),l=!0):s.startsWith(Vf)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Wf(t,l,c,u)};if(t){let e=t+Hf,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Wf(Uf,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Kf=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},qf=e=>({cache:Bf(e.cacheSize),parseClassName:Gf(e),sortModifiers:Kf(e),postfixLookupClassGroupIds:Jf(e),...Of(e)}),Jf=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Yf=/\s+/,Xf=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Yf),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Vf:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Zf=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Qf(n))&&(i&&(i+=` `),i+=r);return i},Qf=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Qf(e[r]))&&(n&&(n+=` `),n+=t);return n},$f=(e,...t)=>{let n,r,i,a,o=o=>(n=qf(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Xf(e,n);return i(e,a),a};return a=o,(...e)=>a(Zf(...e))},ep=[],X=e=>{let t=t=>t[e]||ep;return t.isThemeGetter=!0,t},tp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,np=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rp=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ip=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ap=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,op=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lp=e=>rp.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),up=e=>!!e&&Number.isInteger(Number(e)),dp=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),fp=e=>ip.test(e),pp=()=>!0,mp=e=>ap.test(e)&&!op.test(e),hp=()=>!1,gp=e=>sp.test(e),_p=e=>cp.test(e),vp=e=>!Q(e)&&!$(e),yp=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),bp=e=>Fp(e,zp,hp),Q=e=>tp.test(e),xp=e=>Fp(e,Bp,mp),Sp=e=>Fp(e,Vp,Z),Cp=e=>Fp(e,Up,pp),wp=e=>Fp(e,Hp,hp),Tp=e=>Fp(e,Lp,hp),Ep=e=>Fp(e,Rp,_p),Dp=e=>Fp(e,Wp,gp),$=e=>np.test(e),Op=e=>Ip(e,Bp),kp=e=>Ip(e,Hp),Ap=e=>Ip(e,Lp),jp=e=>Ip(e,zp),Mp=e=>Ip(e,Rp),Np=e=>Ip(e,Wp,!0),Pp=e=>Ip(e,Up,!0),Fp=(e,t,n)=>{let r=tp.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ip=(e,t,n=!1)=>{let r=np.exec(e);return r?r[1]?t(r[1]):n:!1},Lp=e=>e===`position`||e===`percentage`,Rp=e=>e===`image`||e===`url`,zp=e=>e===`length`||e===`size`||e===`bg-size`,Bp=e=>e===`length`,Vp=e=>e===`number`,Hp=e=>e===`family-name`,Up=e=>e===`number`||e===`weight`,Wp=e=>e===`shadow`,Gp=$f(()=>{let e=X(`color`),t=X(`font`),n=X(`text`),r=X(`font-weight`),i=X(`tracking`),a=X(`leading`),o=X(`breakpoint`),s=X(`container`),c=X(`spacing`),l=X(`radius`),u=X(`shadow`),d=X(`inset-shadow`),f=X(`text-shadow`),p=X(`drop-shadow`),m=X(`blur`),h=X(`perspective`),g=X(`aspect`),_=X(`ease`),v=X(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[lp,`full`,`auto`,...w()],ee=()=>[up,`none`,`subgrid`,$,Q],te=()=>[`auto`,{span:[`full`,up,$,Q]},up,$,Q],ne=()=>[up,`auto`,$,Q],re=()=>[`auto`,`min`,`max`,`fr`,$,Q],ie=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ae=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...w()],oe=()=>[lp,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],se=()=>[lp,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ce=()=>[lp,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],D=()=>[e,$,Q],le=()=>[...b(),Ap,Tp,{position:[$,Q]}],ue=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],de=()=>[`auto`,`cover`,`contain`,jp,bp,{size:[$,Q]}],fe=()=>[dp,Op,xp],O=()=>[``,`none`,`full`,l,$,Q],k=()=>[``,Z,Op,xp],pe=()=>[`solid`,`dashed`,`dotted`,`double`],me=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],A=()=>[Z,dp,Ap,Tp],he=()=>[``,`none`,m,$,Q],j=()=>[`none`,Z,$,Q],M=()=>[`none`,Z,$,Q],ge=()=>[Z,$,Q],_e=()=>[lp,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[fp],breakpoint:[fp],color:[pp],container:[fp],"drop-shadow":[fp],ease:[`in`,`out`,`in-out`],font:[vp],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[fp],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[fp],shadow:[fp],spacing:[`px`,Z],text:[fp],"text-shadow":[fp],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,lp,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[yp],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[up,`auto`,$,Q]}],basis:[{basis:[lp,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,lp,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[up,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ie(),`normal`]}],"justify-items":[{"justify-items":[...ae(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ae()]}],"align-content":[{content:[`normal`,...ie()]}],"align-items":[{items:[...ae(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ae(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ae(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ae()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:oe()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...ce()]}],"min-block-size":[{"min-block":[`auto`,...ce()]}],"max-block-size":[{"max-block":[`none`,...ce()]}],w:[{w:[s,`screen`,...oe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...oe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...oe()]}],h:[{h:[`screen`,`lh`,...oe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...oe()]}],"max-h":[{"max-h":[`screen`,`lh`,...oe()]}],"font-size":[{text:[`base`,n,Op,xp]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Pp,Cp]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,dp,Q]}],"font-family":[{font:[kp,wp,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Sp]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...pe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,xp]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[up,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:de()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},up,$,Q],radial:[``,$,Q],conic:[up,$,Q]},Mp,Ep]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":k()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...pe(),`hidden`,`none`]}],"divide-style":[{divide:[...pe(),`hidden`,`none`]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...pe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Op,xp]}],"outline-color":[{outline:D()}],shadow:[{shadow:[``,`none`,u,Np,Dp]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":[`none`,d,Np,Dp]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Z,xp]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":[`none`,f,Np,Dp]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...me(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:he()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Np,Dp]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],zoom:[{zoom:[up,$,Q]}],accent:[{accent:D()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":D()}],"scrollbar-track-color":[{"scrollbar-track":D()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...D()]}],"stroke-w":[{stroke:[Z,Op,xp,Sp]}],stroke:[{stroke:[`none`,...D()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Kp(...e){return Gp(xf(e))}var qp=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Jp=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Yp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Xp=e=>{let t=Yp(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zp={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Qp=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},$p=c({}),em=()=>p($p),tm=u(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=em()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return l(`svg`,{ref:c,...Zp,width:t??u??Zp.width,height:t??u??Zp.height,stroke:e??p,strokeWidth:h,className:qp(`lucide`,m,i),...!a&&!Qp(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>l(e,t)),...Array.isArray(a)?a:[a]])}),nm=(e,t)=>{let n=u(({className:n,...r},i)=>l(tm,{ref:i,iconNode:t,className:qp(`lucide-${Jp(Xp(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Xp(e),n};export{ie as C,E,ne as S,oe as T,Gt as _,Fu as a,Lt as b,Io as c,Ba as d,$t as f,Kt as g,qt as h,yf as i,mo as l,Jt as m,Kp as n,Su as o,Yt as p,xf as r,xu as s,nm as t,ro as u,Ut as v,se as w,re as x,Ht as y};
4
+ //# sourceMappingURL=widget-react-FX5W7RyV.js.map
@@ -0,0 +1,2 @@
1
+ globalThis.process===void 0&&(globalThis.process={env:{},nextTick:function(e){setTimeout(e,0)},emit:function(){return!1}});import"react";import"react-dom";import"react/jsx-runtime";import"react-dom/client";var e={tabs:{home:`Home`,messages:`Messages`,help:`Help`,news:`News`,profile:`Profile`},header:{close:`Close`,back:`Back`,conversationSubtitle:`Our team can also help`,helpTitle:`Help`,newsTitle:`News`,expand:`Expand widget`,collapse:`Collapse widget`,messagesTitle:`Messages`,downloadTranscript:`Download transcript`,moreActions:`More`},launcher:{open:`Open chat`,close:`Close chat`,panel:`Chat`},tabError:{title:`Something went wrong`,hint:`This section couldn't be shown.`,retry:`Try again`},chunkError:{failed:`Couldn't load`,retry:`Retry`},home:{greetingHeadline:`Hi there 👋`,greetingSubheadline:`How can we help?`,askTitle:`Ask a question`,askSubtitle:`Our bot and team can help`,recentMessageLabel:`Recent message`,recentMessageTitle:`Recent message`,recentMessageFromFallback:`Gaia`,recentMessageAgo:`4h`,recentMessageSample:`Hi there 👋 Thanks for reaching out - we'll be right back with you.`,featuredArticleLoading:`Featured article`,featuredArticleTap:`Tap to read`,featuredArticleEmpty:`Pick an article`,featuredArticleSetUp:`Configure this block in your dashboard`,featuredArticleDemoEyebrow:`Pioneer · Save the date`,featuredArticleDemoHeadline:`October 8, 2026`,featuredArticleDemoSubline:`San Francisco · In-person + virtual`,featuredArticleDemoCta:`See the launch agenda`,seeAgenda:`See the launch agenda`,browseHelp:`Browse Help`,whatsNew:`What's new`,searchPlaceholder:`Search for help`,pinnedArticlesTitle:`Read these first`,popularArticlesTitle:`Popular articles`,pinnedArticleRow:`Pinned article {n}`,newsPreviewTitle:`Latest news`,seeAll:`See all`,newsPreviewRow:`News update {n}`,myConversationsTitle:`Your conversations`,myConversationsEmpty:`View your conversations`,teamStatusOnline:`We're online`,teamStatusReplyInstant:`Usually replies instantly`,teamStatusReplyMinutes:`Usually replies in a few minutes`,teamStatusReplyHours:`Usually replies within a few hours`,teamStatusReplyDay:`Usually replies within a day`,teamStatusAiOnline:`{name} can help right now`,teamStatusOperatorsBack:`Operators back {when}`,teamStatusOfflineUntil:`We're away, back {when}`,teamStatusOfflineSoon:`We're away, back soon`,recentMessageAttachment:`Attachment`},messages:{today:`Today`,yesterday:`Yesterday`,unreadMessages:`Unread messages`,emptyTitle:`No messages yet`,emptyBody:`Start a conversation and our team will get back to you here.`,sendCta:`Send us a message`,attach:`Attach a file`,commands:`Quick commands`,record:`Record a voice message`,stopRecording:`Stop recording`,recording:`Recording…`,uploading:`Uploading…`,uploadFailed:`Upload failed`,voiceDenied:`Microphone access denied`,voiceUnsupported:`Voice recording isn't supported in this browser`,fileTooLarge:`File is too large (max 10MB)`,fileMimeNotAllowed:`This file type isn't supported`,emoji:`Insert emoji`,cancelRecording:`Cancel recording`,pauseRecording:`Pause recording`,resumeRecording:`Resume recording`,playPreview:`Play recording`,emojiPicker:`Emoji picker`,emojiSearch:`Search…`,playAudio:`Play`,pauseAudio:`Pause`,openAudio:`Open audio`,removeAttachment:`Remove`,aiAssistant:`AI assistant`,operator:`Operator`,openImage:`Open image`,openPreview:`Open preview`,play:`Play`,pause:`Pause`,typing:`typing…`,aiThinking:`thinking…`,aiSearching:`browsing…`,typingSomeone:`Someone`,signInToChat:`Please sign in to start the conversation.`,signInUnavailable:`Sign-in is not available right now.`,googleSignIn:`Sign in with Google`,googleUnavailable:`Google sign-in isn't available. Check your connection or ad blocker and try again.`,passkeySignIn:`Sign in with a passkey`,passkeyRegister:`First time? Set up a passkey`,passkeyError:`Couldn't sign in. Please try again.`,passkeyNoCredential:`No passkey on this device yet — tap “Set up a passkey” to create one.`,googleSignInDemo:`Continue with Google`,connectingOperator:`An operator has been assigned, please wait…`,assignment:{eta:{minutes:`An operator will reply in about {minutes} min`,soft:`We usually reply within a few minutes`,businessHours:`The team will be back at {time}`}},withOperator:`You're now chatting with {name}`,operatorConnected:`Operator connected`,chatResolved:`Conversation resolved`,chatResolvedByYou:`Conversation resolved by you`,chatResolvedByOperator:`Conversation resolved by {name}`,resolveConversation:`Resolve conversation`,sources:`Sources`,moreSources:`+{count} more`,askQuestion:`Ask a question`,previewYou:`You: {text}`,threadsEmptyTitle:`No conversations yet`,threadsEmptyBody:`Start a conversation and it will show up here.`,format:{bold:`Bold`,italic:`Italic`,underline:`Underline`,strikethrough:`Strikethrough`,bulletList:`Bulleted list`,numberedList:`Numbered list`,link:`Link`,linkPlaceholder:`https://…`,linkSave:`Save`,linkCancel:`Cancel`,monospace:`Monospace`},queued:`Waiting for connection`,notDelivered:`Not delivered`,retry:`Retry`,offlineBanner:`You're offline`,backOnline:`Back online`,threadsErrorTitle:`Could not load your conversations`,threadsErrorBody:`Check your connection and try again.`,giphy:{title:`GIFs & Stickers`,searchPlaceholder:`Search GIPHY`,clear:`Clear`,tabGifs:`GIFs`,tabStickers:`Stickers`,error:`Couldn't load`,retry:`Retry`,empty:`No results`,poweredBy:`Powered by GIPHY`},scrollToLatest:`Scroll to latest`,conversationClosed:`This conversation is closed`,startNewConversation:`Start a new conversation`,conversationBlocked:`This conversation is blocked`,visitorBlocked:`You can no longer send messages`,conversationClosedTitle:`That's a wrap 👋`,conversationClosedHint:`This conversation is closed. Start a new one whenever you like.`},prechat:{title:`Before we start`,subtitle:`A few quick details so our team can help you faster.`,labelName:`Name`,labelEmail:`Email`,labelPhone:`Phone`,labelCustom:`Details`,required:`Required`,invalidEmail:`Please enter a valid email`,invalidPhone:`Please enter a valid phone number`,submit:`Continue`,submitFailed:`Couldn't submit - please try again.`},help:{searchPlaceholder:`Search for help`,emptyTitle:`No articles yet`,emptyBody:`Your operator hasn't published anything yet.`,back:`Back`,helpful:`Was this helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,unresolvedCta:`Still need help? Message us`,noResults:`No results`,articleNotFound:`Article not found`,articleNotTranslated:`This article isn't available in your language yet.`,writtenBy:`Written by {names}`,relatedTitle:`Related articles`,collectionsCount:`{count, plural, =0 {No collections} one {# collection} other {# collections}}`,articlesCount:`{count, plural, =0 {No articles} one {Articles: #} other {Articles: #}}`,authorsByline:`Authors {first}{remaining, plural, =0 {} one { and # more} other { and # more}}`},news:{emptyTitle:`No updates yet`,emptyBody:`Check back here for product news and announcements.`,helpful:`Was this article helpful?`,yes:`Yes`,no:`No`,thanks:`Thanks for the feedback.`,searchPlaceholder:`Search news`,noResults:`No matching posts`,editedAt:`edited {when}`,articleNotFound:`Article not found.`,articleNotTranslated:`This post isn't available in your language yet.`,readOriginal:`Read the original`,relatedTitle:`Related`,writtenBy:`Written by {names}`,unread:`Unread news`},reactions:{ariaLabel:`Reactions`,tapAria:`React with {emoji}`},languageSelector:{title:`Read in another language`,ariaLabel:`Article languages`},branding:{poweredBy:`Powered by`,wexio:`Wexio`},sound:{mute:`Mute notification sounds`,unmute:`Unmute notification sounds`},article:{tableOfContents:`Table of contents`,tabFallback:`Tab {n}`},peek:{newMessage:`New message`,dismiss:`Dismiss`,aiAssistant:`AI assistant`,operator:`Operator`},lightbox:{mediaPreview:`Media preview`,close:`Close preview`,previous:`Previous`,next:`Next`},authError:{turnstileTitle:`Couldn't verify your browser`,turnstileBody:`We weren't able to complete the security check. This is sometimes a network or ad-blocker issue — try again, or reload the page.`,genericTitle:`Couldn't connect`,genericBody:`Something went wrong while signing you in. Please try again in a moment.`,retry:`Try again`,dismiss:`Dismiss`},profile:{title:`Your profile`,subtitle:`Update your info and how the widget behaves.`,uploadAvatar:`Change photo`,removeAvatar:`Remove photo`,avatarUploading:`Uploading…`,preferencesHeading:`Preferences`,preferenceLanguage:`Language`,preferenceDesktopNotifications:`Desktop notifications`,preferenceDesktopNotificationsHint:`Get a system notification when the widget isn't focused.`,preferenceThemeMode:`Theme`,themeAuto:`Match system`,themeLight:`Light`,themeDark:`Dark`,themeLocked:`Theme is set by the operator.`,pinnedHint:`Set by the operator — not editable.`,requiredHint:`Required`,invalidEmail:`Please enter a valid email address.`,invalidPhone:`Use international format, e.g. +14155552671.`,noFields:`There's nothing to edit here yet.`,save:`Save changes`,saving:`Saving…`,cancel:`Discard`,saved:`Changes saved.`,loading:`Loading profile…`,loadError:`Couldn't load your profile. Please try again.`,retry:`Retry`,errorFieldNotAllowed:`This field isn't editable in this widget. Try refreshing.`,errorFieldPinned:`This field is locked by your account.`,errorFieldInvalid:`Some values aren't valid. Check the highlighted fields.`,errorThemeLocked:`Theme is locked by the operator.`,errorFeatureDisabled:`Profile editing has been turned off by the operator.`,errorGeneric:`Couldn't save your changes. Please try again.`,notificationsBlocked:`Notifications are blocked by the browser. Update site permissions to enable.`,notificationsRequest:`Allow notifications when prompted to enable this.`,systemFields:{avatar:`Photo`,wexioId:`Wexio ID`,telegramId:`Telegram ID`,whatsappId:`WhatsApp ID`,viberId:`Viber ID`,instagramId:`Instagram ID`,optInWhatsapp:`WhatsApp opt-in`,webVerified:`Verified visitor`,firstName:`First name`,lastName:`Last name`,username:`Username`,language:`Language`,email:`Email`,phone:`Phone`,company:`Company`,location:`Location`,isValid:`Account valid`,chatStatus:`Chat status`,chatCategory:`Chat category`,priority:`Priority`,leadSource:`Lead source`,leadStatus:`Lead status`,interestLevel:`Interest level`,productInterest:`Product interest`,budgetRange:`Budget`,purchaseTimeline:`Purchase timeline`,lastMessageSentAt:`Last message sent`,lastMessageReceivedAt:`Last message received`,lastSeenAt:`Last seen`,firstMessageReceivedAt:`First contact`,isBlocked:`Blocked`,registrationDate:`Registered`,aiAvailable:`AI assistance`,totalMessagesSent:`Messages sent`,totalMessagesReceived:`Messages received`,totalAiMessagesSent:`AI messages sent`,totalBotMessagesSent:`Bot messages sent`,totalUserMessagesSent:`Operator messages sent`,flowCompletionRate:`Flow completion rate`,lastFlowCompleted:`Last completed flow`,totalFlowsStarted:`Flows started`,totalFlowsCompleted:`Flows completed`},systemFieldOptions:{chatStatus:{ISSUE:`Issue`,RESOLVED:`Resolved`,PENDING:`Pending`,IN_PROGRESS:`In progress`,CLOSED:`Closed`},chatCategory:{SALES:`Sales`,SUPPORT:`Support`,BILLING:`Billing`,FEEDBACK:`Feedback`,GENERAL:`General`,OTHER:`Other`},priority:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,URGENT:`Urgent`},leadStatus:{NEW:`New`,CONTACTED:`Contacted`,QUALIFIED:`Qualified`,NEGOTIATING:`Negotiating`,WON:`Won`,LOST:`Lost`},interestLevel:{LOW:`Low`,MEDIUM:`Medium`,HIGH:`High`,VERY_HIGH:`Very high`}}},transcript:{title:`Conversation with {org}`,started:`Started on {when}`,exported:`Exported from {org} on {when}`,truncated:`Note: only the most recent messages are included.`,operator:`Operator`,you:`You`}};export{e as default};
2
+ //# sourceMappingURL=widget-react-G9X1DcTe.js.map