@mobielnl/elements 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elements.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.umd.cjs +30 -30
- package/dist/{index-CY36KeHQ.js → index-6scNbCqx.js} +932 -922
- package/dist/{index-Bf0gZOvJ.js → index-DEscuNt4.js} +1 -1
- package/dist/index.d.ts +164 -46
- package/package.json +1 -1
package/dist/elements.umd.cjs
CHANGED
|
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var Cg;function gE(){return Cg||(Cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=m();if(!d){var v=m();s(b,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:b,getSnapshot:m}});var y=v[0].inst,x=v[1];return l(function(){y.value=b,y.getSnapshot=m,r(y)&&x({inst:y})},[h,b,m]),i(function(){return r(y)&&x({inst:y}),h(function(){r(y)&&x({inst:y})})},[h]),u(b),b}function r(h){var m=h.getSnapshot;h=h.value;try{var b=m();return!s(h,b)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=g,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Xl.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xl}var Sg;function bE(){return Sg||(Sg=1,process.env.NODE_ENV==="production"?ha.exports=mE():ha.exports=gE()),ha.exports}var ma=bE();const vE={t:(e,t)=>Mt(t)?t:$r(t)&&Mt(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},yE=()=>()=>{},Oe=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:o}=g.useContext(Yl)||{},s=r||n||Zl();s&&!s.reportNamespaces&&(s.reportNamespaces=new hE),s||da(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=g.useMemo(()=>({...Gl(),...s?.options?.react,...t}),[s,t]),{useSuspense:i,keyPrefix:l}=a,u=o||s?.options?.defaultNS,c=Mt(u)?[u]:u||["translation"],d=g.useMemo(()=>c,c);s?.reportNamespaces?.addUsedNamespaces?.(d);const p=g.useRef(0),h=g.useCallback(_=>{if(!s)return yE;const{bindI18n:N,bindI18nStore:A}=a,M=()=>{p.current+=1,_()};return N&&s.on(N,M),A&&s.store.on(A,M),()=>{N&&N.split(" ").forEach(O=>s.off(O,M)),A&&A.split(" ").forEach(O=>s.store.off(O,M))}},[s,a]),m=g.useRef(),b=g.useCallback(()=>{if(!s)return vE;const _=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(I=>J$(I,s,a)),N=t.lng||s.language,A=p.current,M=m.current;if(M&&M.ready===_&&M.lng===N&&M.keyPrefix===l&&M.revision===A)return M;const L={t:s.getFixedT(N,a.nsMode==="fallback"?d:d[0],l),ready:_,lng:N,keyPrefix:l,revision:A};return m.current=L,L},[s,d,l,a,t.lng]),[v,y]=g.useState(0),{t:x,ready:w}=ma.useSyncExternalStore(h,b,b);g.useEffect(()=>{if(s&&!w&&!i){const _=()=>y(N=>N+1);t.lng?mg(s,t.lng,d,_):Hl(s,d,_)}},[s,t.lng,d,w,i,v]);const C=s||{},S=g.useRef(null),k=g.useRef(),D=_=>{const N=Object.getOwnPropertyDescriptors(_);N.__original&&delete N.__original;const A=Object.create(Object.getPrototypeOf(_),N);if(!Object.prototype.hasOwnProperty.call(A,"__original"))try{Object.defineProperty(A,"__original",{value:_,writable:!1,enumerable:!1,configurable:!1})}catch{}return A},$=g.useMemo(()=>{const _=C,N=_?.language;let A=_;_&&(S.current&&S.current.__original===_?k.current!==N?(A=D(_),S.current=A,k.current=N):A=S.current:(A=D(_),S.current=A,k.current=N));const M=[x,A,w];return M.t=x,M.i18n=A,M.ready=w,M},[x,C,w,C.resolvedLanguage,C.language,C.languages]);if(s&&i&&!w)throw new Promise(_=>{const N=()=>_();t.lng?mg(s,t.lng,d,N):Hl(s,d,N)});return $};function xE({i18n:e,defaultNS:t,children:r}){const n=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(Yl.Provider,{value:n},r)}let wE=!1,kg=!1;function ga(){return wE}function CE(){kg=!0}function ba(){return kg}const Pg=g.createContext({shadowRoot:null});CE();function SE({children:e,css:t,cssUrl:r}){const n=g.useRef(null),[o,s]=g.useState(null),[a,i]=g.useState(null);return g.useEffect(()=>{if(n.current&&!n.current.shadowRoot){const l=n.current.attachShadow({mode:"open",delegatesFocus:!0});if(i(l),t){const c=document.createElement("style");c.textContent=t,l.appendChild(c)}if(r){const c=document.createElement("link");c.rel="stylesheet",c.href=r,l.appendChild(c)}const u=document.createElement("div");l.appendChild(u),s(u)}},[t,r]),f.jsx("div",{ref:n,children:o&&f.jsx(Pg,{value:{shadowRoot:a},children:Hn.createPortal(e,o)})})}function kE(){return g.useContext(Pg)}const PE={common:{yes:"Yes",no:"No",confirm:"Confirm",cancel:"Cancel",loading:"Loading...",close:"Close",next:"Next",previous:"Previous",select:"Select",save:"Save",back:"Back"},numberPreservation:{title:"Number preservation",description:"Do you want to keep your current number or get a new number?",keepCurrentNumber:"Current 06-number",newNumber:"New 06-number",currentProvider:"Current provider",selectProvider:"Select your current provider",invalidNumber:"Invalid number",subscription:"Subscription",prepaid:"Prepaid",otherProvider:"Other / no provider"},combiDeal:{title:"Customer benefits",description:"Combining subscriptions in your household can provide many benefits.",selectHomeProvider:"Select your home provider",selectOtherSubscriptionsOnAddress:"Select subscriptions on your address",customerBenefit:"Customer benefits",homeInternet:"Home internet",selectOtherSubscriptions:"Select your other providers on your address:",otherSubscriptionsDescription:"and see which benefits apply to you.",otherSubscriptions:"Other providers on your address",movingOption:"None due to relocation",otherProvider:"Other provider"},postcodeCheck:{loading:"Searching for the best deals...",invalidAddressError:"Address and house number do not match",title:"Postal code check",description:"Enter your postal code and check which offer best suits you.",postalCode:"Postcode",houseNumber:"House number",houseNumberAddition:"Addition",homeInternet:"Home internet",selectProvider:"Select your home internet provider"},profile:{personalizeTitle:"Personalize",postcodeCheck:"Postal code check",enterPostcode:"Enter your postal code and house number",numberPreservation:"Number preservation",askNumberPreservation:"Keep your 06-number?",newNumber:"New 06-number",customerBenefit:"Customer benefits"},format:{unlimited:"Unlimited",unlimited_short:"Unltd",gigabyte:"GB",minutes:"minutes",minutes_short:"min",sms:"sms",year:"year",year_other:"years",oneTime:"One-time",monthly:"Monthly",month:"month",month_other:"months",month_short:"mo",month_short_other:"mos",firstMonth:"First month",firstMonth_other:"First {{count}} months",thenMonth:"Then 1 month",thenMonth_other:"Then {{count}} months",afterMonth:"After 1 month",afterMonth_other:"After {{count}} months",hour:"hour",hour_other:"hours",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"From",startingFrom:"From",to:"Up to",for:"for",or:"or",average:"Average",average_short:"avg.",maximum:"Maximum"},labels:{renewWith:"Renew with {{providerName}}",cheapestPhone:"Cheapest phone",budget:"Most affordable",budgetFiber:"Most affordable with fiber",combi:"Customer benefits with {{providerName}}",combiGeneric:"Customer benefits",fastestInternet:"Fastest internet",budgetOwnNetwork:"Most affordable with own network",budgetNetwork:"Most affordable on {{network}}-network",budgetNetworkGeneric:"Most affordable on network"},propositionCard:{availableStockStatus:"In stock",backorderedStockStatus:"Backorder",preOrderStockStatus:"Pre-order",oneTimeFee:"one-time",deviceDiscount:"device discount",urgentText:"Final day",urgentText_other:"Promotion ends in {{days}} days",cta:"View at Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Fiber","kabel-internet":"Cable","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Reset filters",applyFilters:"Show results",chosenFilters:"Chosen filters:",sort:"Sort",sortBy:"Sort by",show:"Show",showMore:"more",showLess:"less"},filterOptions:{brand:"Brand",internal_storage:"Internal storage",color:"Color",data:"Data",minutes:"Minutes",credit_fee:"Maximum device bundle",provider:"Providers",contract_term:"Contract term",package:"Packages",data_speed_down:"Download speed",data_speed_up:"Upload speed",monthly_fee:"Monthly fee",price:"Maximum additional payment",tags_netwerk:"Network",tags_verbinding:"Internet connection",tags_esim:"eSIM",receivers:"TV receivers",network_generation:"Network speed"},sortOptions:{top:"Relevance",relevantie:"Relevance","best-verkocht":"Best-selling","meest-voordelig":"Price low-high",downloadsnelheid:"Download speed",uploadsnelheid:"Upload speed"},productResults:{loadMore:"Loading...",showMoreOffers:"Show more offers",noResultsTitle:"No results found",noResultsDescription:"No products found with your chosen filter combination.",sortBy:"Sort by",topPropositionsTitle:"Best providers for you",allPropositionsTitle:"All providers"},creditInfo:{exampleTitle:"Example calculation of device bundle",creditBundleTitle:"Legally required credit information",offer:"Offer",totalDeviceCost:"Total device cost",oneTimeFee:"One-time fee",totalCreditAmount:"Total credit amount",monthlyPayment:"Monthly payment",contractTerm:"Contract term",fixedInterest:"Fixed interest / JKP",generalDescription:"This table contains a calculation of a device loan and the price per month. The device loan is a revolving goods credit offered by the Finance B.V. of the chosen provider. Read <0>here</0> more about installment payments and the European standard form. Websend B.V. mediates on behalf of various parties and acts as an exempt intermediary for the Finance B.V. of the chosen provider and does not provide advice on the device loan. You must determine for yourself whether the device loan suits your personal circumstances.",creditBundleDescription:"Up to the credit amount {{creditPrice}} there is no income and expense assessment. The device loan is a revolving goods credit offered by {{creditProviderName}} <0>Standard information on consumer credit</0>"},detailsModal:{title:"All about this subscription",renewal:"Renewal",chooseTab:"Choose a tab",general:"General",bundles:"Bundles",conditions:"Conditions",channels:"TV channels",costs:"Costs",specifications:"Specifications",monthlyFee:"Monthly fee",oneTimeFee:"One-time fee",totalCost:"Total cost",provider:"Provider",network:"Network",networkCoverage:"Coverage",networkAdministrator:"Network administrator",networkType:"Network type",subscriptionType:"Subscription type",internet:"Internet",calling:"Calling",sms:"Sms",extras:"Extras",television:"Television",networkGeneration:"Network generation",downloadSpeed:"Download speed",uploadSpeed:"Upload speed",contractTerm:"Contract term",contractTermTerminable:"terminable",subscription:"Subscription",bundle:"Bundle",bundleSpeed:"Speed",termsAndConditions:"Terms and conditions",maximumDownloadSpeed:"Maximum download speed",maximumUploadSpeed:"Maximum upload speed",numberOfChannels:"TV channels",numberOfReceivers:"TV receivers",outsideBundle:"Outside the bundle",subscriptionFlexibility:"Subscription flexibility",abroad:"Abroad",insideEu:"Inside the EU",outsideEu:"Outside the EU",minutesToEu:"Minutes from NL to EU",upgradeBundle:"Upgrade bundle",downgradeBundle:"Downgrade bundle",dataExceedance:"Data exceedance",bundleExceedanceRates:"Out-of-bundle rates",bundleExceedanceRateCeiling:"Cost ceiling",bundleExceedanceWarning:"Credit notification",bundleExceedanceMinutesRounding:"Rounding call minutes",channelsDescription:"You receive the following {{channelsCount}} TV channels with this subscription:",moreInformation:"More information",deviceBundle:"Device bundle",installationFee:"installation fee",activationFee:"activation fee",cashback:"Cashback",priceWithoutSubscription:"Price without subscription",priceWithSubscription:"Price with subscription",devicePrice:"Device surcharge",costPerContractTermTitle:"Average per month",costPerContractTermSubtitle:"Total costs divided by contract term",deviceDiscountTitle:"Device discount",deviceDiscountSubtitle:"Discount compared to separate phone + sim only",totalCostsOverTerm:"Total costs over 1 month",totalCostsOverTerm_other:"Total costs over {{count}} months",totalDeviceDiscount:"Total device discount"},phoneSelector:{phone:"Phone",selectPhone:"Select a phone",selectBrand:"Select a brand",searchPlaceholder:"Search by brand or model",popular:"Popular",allBrands:"All brands",selectVersion:"Select a version",selectColor:"Select a color"},modificationBlocks:{"mobile/odido":"One or more mobile subscriptions","mobile/vodafone":"One or more mobile subscriptions","segment/vodafone/young":"I am younger than 28 years old","segment/vodafone/unlimited":"Vodafone Unlimited subscription at my address","mobile/kpn":"Another mobile subscription from KPN","mobile/ben":"One or more mobile subscriptions","mobile/50plusmobiel":"One or more mobile subscriptions","mobile/hollandsnieuwe":"One or more mobile subscriptions","mobile/budget":"One or more mobile subscriptions","mobile/youfone":"One or more mobile subscriptions","mobile/delta":"One or more mobile subscriptions"}},$E={common:{yes:"Ja",no:"Nee",confirm:"Bevestig",cancel:"Annuleer",loading:"Laden...",close:"Sluiten",next:"Volgende",previous:"Vorige",select:"Selecteer",save:"Opslaan",back:"Terug"},numberPreservation:{title:"Nummerbehoud",description:"Wil je je huidige nummer behouden of een nieuw nummer?",keepCurrentNumber:"Huidig 06-nummer",newNumber:"Nieuw 06-nummer",currentProvider:"Huidige provider",selectProvider:"Kies je huidige provider",invalidNumber:"Ongeldig nummer",subscription:"Abonnement",prepaid:"Prepaid",otherProvider:"Andere / geen provider"},combiDeal:{title:"Klantvoordeel",description:"Combineren met abonnementen in je huishouden kan veel voordeel opleveren.",selectHomeProvider:"Kies je thuisprovider",selectOtherSubscriptionsOnAddress:"Selecteer abonnementen op je adres",customerBenefit:"Klantvoordeel",homeInternet:"Thuis internet",selectOtherSubscriptions:"Selecteer andere abonnementen op jouw adres:",otherSubscriptionsDescription:"en zie welke voordelen voor jou van toepassing zijn.",otherSubscriptions:"Andere abonnementen op jouw adres",movingOption:"Geen i.v.m. verhuizing",otherProvider:"Andere provider"},postcodeCheck:{loading:"Aan het zoeken naar de beste deals...",invalidAddressError:"Adres en huisnummer komen niet overeen",title:"Postcodecheck",description:"Vul je postcode in en check welk pakket het beste bij jou past.",postalCode:"Postcode",houseNumber:"Huisnr.",houseNumberAddition:"Toev.",homeInternet:"Thuis internet",selectProvider:"Kies je thuisprovider"},profile:{personalizeTitle:"Personaliseer",postcodeCheck:"Postcodecheck",enterPostcode:"Vul je postcode en huisnr in",numberPreservation:"Nummerbehoud",askNumberPreservation:"Je 06-nummer behouden?",newNumber:"Nieuw 06-nummer",customerBenefit:"Klantvoordeel"},format:{unlimited:"Onbeperkt",unlimited_short:"Onbp",gigabyte:"GB",minutes:"minuten",minutes_short:"min",sms:"sms",year:"jaar",year_other:"jaar",oneTime:"Eenmalig",monthly:"Maandelijks",month:"maand",month_other:"maanden",month_short:"mnd",month_short_other:"mnd",firstMonth:"Eerste maand",firstMonth_other:"Eerste {{count}} maanden",thenMonth:"Daarna 1 maand",thenMonth_other:"Daarna {{count}} maanden",afterMonth:"Na 1 maand",afterMonth_other:"Na {{count}} maanden",hour:"uur",hour_other:"uur",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"Van",startingFrom:"Vanaf",to:"Tot",for:"voor",or:"of",average:"Gemiddeld",average_short:"gem.",maximum:"Maximaal"},labels:{renewWith:"Verlengen bij {{providerName}}",cheapestPhone:"Hoogste toestelkorting",budget:"Meest voordelig",budgetFiber:"Meest voordelig met glasvezel",combi:"Klantvoordeel bij {{providerName}}",combiGeneric:"Klantvoordeel",fastestInternet:"Snelste internet",budgetOwnNetwork:"Voordeligste met eigen netwerk",budgetNetwork:"Voordeligste op {{network}}-netwerk",budgetNetworkGeneric:"Voordeligste op netwerk"},propositionCard:{availableStockStatus:"Direct leverbaar",backorderedStockStatus:"In bestelling",preOrderStockStatus:"Pre-order",oneTimeFee:"eenmalig",deviceDiscount:"toestelkorting",urgentText:"Laatste dag",urgentText_other:"Actie nog {{days}} dagen",cta:"Bekijk bij Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Glasvezel","kabel-internet":"Kabel","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Wis filters",applyFilters:"Toon resultaten",chosenFilters:"Gekozen filters:",sort:"Sorteren",sortBy:"Sorteer op",show:"Bekijk",showMore:"meer",showLess:"minder"},filterOptions:{brand:"Merk",internal_storage:"Opslagcapaciteit",color:"Kleur",data:"Data",minutes:"Minuten",credit_fee:"Maximale toestelbundel",provider:"Providers",contract_term:"Looptijd van je abonnement",package:"Pakketten",data_speed_down:"Downloadsnelheid",data_speed_up:"Uploadsnelheid",monthly_fee:"Maandprijs",price:"Maximale bijbetaling",tags_netwerk:"Netwerk",tags_verbinding:"Internetverbinding",tags_esim:"eSIM",receivers:"TV-ontvangers",network_generation:"Netwerksnelheid"},sortOptions:{top:"Relevantie",relevantie:"Relevantie","best-verkocht":"Bestverkocht","meest-voordelig":"Prijs laag-hoog",downloadsnelheid:"Downloadsnelheid",uploadsnelheid:"Uploadsnelheid"},productResults:{loadMore:"Laden...",showMoreOffers:"Toon meer aanbiedingen",noResultsTitle:"Geen resultaten gevonden",noResultsDescription:"Er zijn geen producten gevonden met je gekozen filtercombinatie.",sortBy:"Sorteren",topPropositionsTitle:"Beste providers voor jou",allPropositionsTitle:"Alle providers op een rijtje"},creditInfo:{exampleTitle:"Voorbeeldberekening toestelbundel",creditBundleTitle:"Wettelijk verplichte kredietinformatie",offer:"Aanbieding",totalDeviceCost:"Totale toestelkosten",oneTimeFee:"Eenmalige betaling",totalCreditAmount:"Totaal kredietbedrag",monthlyPayment:"Termijnbedrag",contractTerm:"Duur overeenkomst",fixedInterest:"Vaste rente / JKP",generalDescription:"Deze tabel bevat een berekening van een toestellening en de prijs per maand. De toestellening is een aflopend goederenkrediet aangeboden door de Finance B.V. van de gekozen provider. Lees <0>hier</0> meer over gespreid betalen en het Europees standaard formulier. Websend B.V. bemiddelt namens verschillende partijen en treedt op als vrijgestelde bemiddelaar voor de Finance B.V. van de gekozen provider en geeft geen advies over de toestellening. Je dient zelf te bepalen of de toestellening aansluit bij jouw persoonlijke omstandigheden.",creditBundleDescription:"Tot het kredietbedrag {{creditPrice}} vindt er geen inkomens- en lastentoets plaats. Toestellening is een aflopend goederenkrediet aangeboden door {{creditProviderName}} <0>Standaardinformatie inzake consumptief krediet</0>"},detailsModal:{title:"Alles over dit abonnement",renewal:"Verlenging",chooseTab:"Kies een tabblad",general:"Algemeen",bundles:"Bundels",conditions:"Voorwaarden",channels:"Tv-zenders",costs:"Kostenoverzicht",specifications:"Specificaties",monthlyFee:"Maandelijkse kosten",oneTimeFee:"Eenmalige kosten",totalCost:"Totale kosten",provider:"Provider",network:"Netwerk",networkCoverage:"Dekking",networkAdministrator:"Netwerk beheerder",networkType:"Netwerktype",subscriptionType:"Abonnementsvorm",internet:"Internet",calling:"Bellen",sms:"Sms",extras:"Extra's",television:"Televisie",networkGeneration:"Netwerkgeneratie",downloadSpeed:"Downloadsnelheid",uploadSpeed:"Uploadsnelheid",contractTerm:"Contractduur",contractTermTerminable:"opzegbaar",subscription:"Abonnement",bundle:"Bundel",bundleSpeed:"Snelheid",termsAndConditions:"Algemene voorwaarden",maximumDownloadSpeed:"Maximale downloadsnelheid",maximumUploadSpeed:"Maximale uploadsnelheid",numberOfChannels:"Aantal TV-zenders",numberOfReceivers:"Aantal TV-ontvangers",outsideBundle:"Buiten de bundel",subscriptionFlexibility:"Abonnement flexibiliteit",abroad:"In het buitenland",insideEu:"Binnen de EU",outsideEu:"Buiten de EU",minutesToEu:"Minuten van NL naar EU",upgradeBundle:"Bundel verhogen",downgradeBundle:"Bundel verlagen",dataExceedance:"Data overschrijding",bundleExceedanceRates:"Buitenbundeltarieven",bundleExceedanceRateCeiling:"Kostenplafond",bundleExceedanceWarning:"Tegoedmelding",bundleExceedanceMinutesRounding:"Afronding belminuten",channelsDescription:"Je ontvangt de volgende {{channelsCount}} TV-zenders bij dit abonnement:",moreInformation:"Meer informatie",deviceBundle:"Toestelbundel",installationFee:"installatiekosten",activationFee:"aansluitkosten",cashback:"Cashback",priceWithoutSubscription:"Prijs zonder abonnement",priceWithSubscription:"Prijs met abonnement",devicePrice:"Bijbetaling toestel",costPerContractTermTitle:"Gemiddeld per maand",costPerContractTermSubtitle:"Totale kosten gedeeld door contractduur",deviceDiscountTitle:"Toestelkorting",deviceDiscountSubtitle:"Korting t.o.v. losse telefoon + sim only",totalCostsOverTerm:"Totale kosten over 1 maand",totalCostsOverTerm_other:"Totale kosten over {{count}} maanden",totalDeviceDiscount:"Totale toestelkorting"},phoneSelector:{phone:"Telefoon",selectPhone:"Kies een telefoon",selectBrand:"Kies een merk",searchPlaceholder:"Zoek op merk of model",popular:"Populair",allBrands:"Alle merken",selectVersion:"Kies een versie",selectColor:"Kies een kleur"},modificationBlocks:{"mobile/odido":"Één of meer mobiele abonnementen","mobile/vodafone":"Één of meer mobiele abonnementen","segment/vodafone/young":"Ik ben jonger dan 28 jaar","segment/vodafone/unlimited":"Vodafone Unlimited abonnement op mijn adres","mobile/kpn":"Een ander mobiel abonnement van KPN","mobile/ben":"Één of meer mobiele abonnementen","mobile/50plusmobiel":"Één of meer mobiele abonnementen","mobile/hollandsnieuwe":"Één of meer mobiele abonnementen","mobile/budget":"Één of meer mobiele abonnementen","mobile/youfone":"Één of meer mobiele abonnementen","mobile/delta":"Één of meer mobiele abonnementen"}};Q.use(pE).init({resources:{nl:{translation:$E},en:{translation:PE}},lng:"nl",fallbackLng:"nl",interpolation:{escapeValue:!1},react:{useSuspense:!1}});function EE(e){return Q.changeLanguage(e)}function $g(e,t){const r={...e};for(const n in t){const o=t[n];o!==void 0&&typeof o=="object"&&!Array.isArray(o)&&o!==null&&n in e?r[n]=$g(e[n],o):o!==void 0&&(r[n]=o)}return r}function TE(e,t){const r=Q.getResourceBundle(e,"translation")||{},n=$g(r,t);Q.addResourceBundle(e,"translation",n,!0,!0)}function Eg({children:e,className:t,translations:r,locale:n="nl"}){const o=r?JSON.stringify(r):void 0;return g.useEffect(()=>{if(r)for(const[s,a]of Object.entries(r))TE(s,a)},[o]),g.useEffect(()=>{n!==Q.language&&EE(n)},[n]),f.jsx(xE,{i18n:Q,children:f.jsx("div",{className:"mobielnl-elements",children:f.jsx("div",{className:P("bg-background text-foreground antialiased",t),children:e})})})}function DE({withShadowDOM:e,...t}){if(!e)return f.jsx(Eg,{...t});const r=typeof e=="object"?e:void 0;return f.jsx(SE,{css:r?.css,cssUrl:r?.cssUrl,children:f.jsx(Eg,{...t})})}function _E(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function IE(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Ql=typeof window<"u",Tg=function(e){g.useEffect(e,[])},AE=function(e){var t=g.useRef(e);t.current=e,Tg(function(){return function(){return t.current()}})},NE=function(e){var t=g.useRef(0),r=g.useState(e),n=r[0],o=r[1],s=g.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a)})},[]);return AE(function(){cancelAnimationFrame(t.current)}),[n,s]},Dg=function(e){var t={},r=t.initialWidth,n=r===void 0?1/0:r,o=t.initialHeight,s=o===void 0?1/0:o,a=t.onChange,i=NE({width:Ql?window.innerWidth:n,height:Ql?window.innerHeight:s}),l=i[0],u=i[1];return g.useEffect(function(){if(Ql){var c=function(){var d=window.innerWidth,p=window.innerHeight;u({width:d,height:p}),a&&a(d,p)};return _E(window,"resize",c),function(){IE(window,"resize",c)}}},[]),l};function ME({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Right Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14m0 0-6 6m6-6-6-6",stroke:e})]})}function OE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Up Down Icon"}),f.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function jE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Badge Hd Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 15V9m3 6V9m-3 3h3M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm11 2v6h1a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2z",stroke:e})]})}function FE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Broadcast Icon"}),f.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function _g({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Calculator Icon"}),f.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function BE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Down Icon"}),f.jsx("path",{d:"M6 9L12 15L18 9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function zE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Right Icon"}),f.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function LE({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Circle Check Filled Icon"}),f.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function VE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Clock Hour Icon"}),f.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function eu({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Device Mobile Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}),f.jsx("path",{d:"M11 4h2"}),f.jsx("path",{d:"M12 17v.01"})]})}function RE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device Remote Icon"}),f.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function KE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device TV Icon"}),f.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function tu({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Discount Icon"}),f.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function WE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Edit Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),f.jsx("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),f.jsx("path",{d:"M16 5l3 3"})]})}function ts({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"External Link Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M11 13l9 -9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M15 4h5v5",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ig({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Filters Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function UE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Gauge Icon"}),f.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ag({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{d:"M19 12H21L12 3L3 12H5V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H12.5M9 21V15C9 14.4696 9.21071 13.9609 9.58579 13.5858C9.96086 13.2107 10.4696 13 11 13H13C13.58 13 14.103 13.247 14.468 13.642M19 18V18.01M21.121 20.1212C21.5406 19.7016 21.8265 19.1671 21.9423 18.5851C22.0581 18.0031 21.9988 17.3999 21.7717 16.8517C21.5447 16.3034 21.1602 15.8348 20.6668 15.5052C20.1734 15.1755 19.5934 14.9995 19 14.9995C18.4066 14.9995 17.8266 15.1755 17.3332 15.5052C16.8398 15.8348 16.4553 16.3034 16.2283 16.8517C16.0012 17.3999 15.9419 18.0031 16.0577 18.5851C16.1735 19.1671 16.4594 19.7016 16.879 20.1212C17.297 20.5402 18.004 21.1662 19 22.0002C20.051 21.1102 20.759 20.4842 21.121 20.1212Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function HE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Move Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m4-3h2l-9-9-9 9h2v7a2 2 0 0 0 2 2h5.5m3.5-2h6m0 0-3-3m3 3-3 3"})]})}function qE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:s,...a,children:[f.jsx("title",{children:"X Icon"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6l-12 12"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6l12 12"})]})}function Ng({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 18h.01m-2.838-2.828a4 4 0 0 1 5.656 0m-8.485-2.829a8 8 0 0 1 11.314 0M3.515 9.515c4.686-4.687 12.284-4.687 17 0"})]})}function GE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"World Icon"}),f.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}var ZE=()=>f.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[f.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),f.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function gn(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=At.createContext(void 0);o.displayName=n;function s(){var a;const i=At.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,s),l}return i}return[o.Provider,s,o]}function YE(e){return{UNSAFE_getDOMNode(){return e.current}}}function Pe(e){const t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current),t}function JE(e,t){if(e!=null){if(g$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ru(...e){return t=>{e.forEach(r=>JE(r,t))}}function XE(){const e=()=>()=>{};return At.useSyncExternalStore(e,()=>!0,()=>!1)}var QE=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),e5=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Mg=/^(data-.*)$/,t5=/^(aria-.*)$/,va=/^(on[A-Z].*)$/;function Fe(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:a,omitDataProps:i,omitEventProps:l}=t,u={};if(!n)return e;for(const c in e)s?.has(c)||a?.has(c)&&va.test(c)||va.test(c)&&!e5.has(c)||i&&Mg.test(c)||l&&va.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(QE.has(c)||r&&t5.test(c)||o?.has(c)||Mg.test(c))||va.test(c))&&(u[c]=e[c]);return u}function nu({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):At.createElement(e,t)}var[kR,r5]=gn({name:"AvatarGroupContext",strict:!1}),[PR,et]=gn({name:"ProviderContext",strict:!1});const n5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function s5(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return n5.has(r.script)}let t=e.split("-")[0];return o5.has(t)}const ya={prefix:String(Math.round(Math.random()*1e10)),current:0},Og=g.createContext(ya),a5=g.createContext(!1);let i5=!!(typeof window<"u"&&window.document&&window.document.createElement),ou=new WeakMap;function l5(e=!1){let t=g.useContext(Og),r=g.useRef(null);if(r.current===null&&!e){var n,o;let s=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(s){let a=ou.get(s);a==null?ou.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,ou.delete(s))}r.current=++t.current}return r.current}function u5(e){let t=g.useContext(Og);t===ya&&!i5&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=l5(!!e),n=t===ya&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function c5(e){let t=g.useId(),[r]=g.useState(Qn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ya.prefix}`;return e||`${n}-${t}`}const d5=typeof g.useId=="function"?c5:u5;function f5(){return!1}function p5(){return!0}function h5(e){return()=>{}}function Qn(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(h5,f5,p5):g.useContext(a5)}const jg=Symbol.for("react-aria.i18n.locale");function Fg(){let e=typeof window<"u"&&window[jg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:s5(e)?"rtl":"ltr"}}let su=Fg(),rs=new Set;function Bg(){su=Fg();for(let e of rs)e(su)}function m5(){let e=Qn(),[t,r]=g.useState(su);return g.useEffect(()=>(rs.size===0&&window.addEventListener("languagechange",Bg),rs.add(r),()=>{rs.delete(r),rs.size===0&&window.removeEventListener("languagechange",Bg)}),[]),e?{locale:typeof window<"u"&&window[jg]||"en-US",direction:"ltr"}:t}const g5=g.createContext(null);function Ot(){let e=m5();return g.useContext(g5)||e}const b5=Symbol.for("react-aria.i18n.locale"),v5=Symbol.for("react-aria.i18n.strings");let eo;class xa{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=y5(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[b5];if(eo===void 0){let o=window[v5];if(!o)return null;eo={};for(let s in o)eo[s]=new xa({[r]:o[s]},r)}let n=eo?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function y5(e,t,r="en-US"){if(t[e])return t[e];let n=x5(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function x5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const zg=new Map,Lg=new Map;class w5{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+n,a=zg.get(s);a||(a=new Intl.PluralRules(this.locale,{type:n}),zg.set(s,a));let i=a.select(t);return o=r[i]||r.other,typeof o=="function"?o():o}number(t){let r=Lg.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Lg.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Vg=new WeakMap;function C5(e){let t=Vg.get(e);return t||(t=new xa(e),Vg.set(e,t)),t}function S5(e,t){return t&&xa.getGlobalDictionaryForPackage(t)||C5(e)}function Wr(e,t){let{locale:r}=Ot(),n=S5(e,t);return g.useMemo(()=>new w5(r,n),[r,n])}function k5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P5(e,t,r){k5(e,t),t.set(e,r)}const Be=typeof document<"u"?g.useLayoutEffect:()=>{};function $5(e){let[t,r]=g.useState(e),n=g.useRef(t),o=g.useRef(null),s=g.useRef(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}n.current===i.value?s.current():r(i.value)});Be(()=>{n.current=t,o.current&&s.current()});let a=g.useCallback(i=>{o.current=i(n.current),s.current()},[s]);return[t,a]}let E5=!!(typeof window<"u"&&window.document&&window.document.createElement),to=new Map,ns;typeof FinalizationRegistry<"u"&&(ns=new FinalizationRegistry(e=>{to.delete(e)}));function bt(e){let[t,r]=g.useState(e),n=g.useRef(null),o=d5(t),s=g.useRef(null);if(ns&&ns.register(s,o),E5){const a=to.get(o);a&&!a.includes(n)?a.push(n):to.set(o,[n])}return Be(()=>{let a=o;return()=>{ns&&ns.unregister(s),to.delete(a)}},[o]),g.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function T5(e,t){if(e===t)return e;let r=to.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=to.get(t);return n?(n.forEach(o=>o.current=e),e):t}function os(e=[]){let t=bt(),[r,n]=$5(t),o=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Be(o,[t,o,...e]),r}function Ur(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ae=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},kt=e=>e&&"window"in e&&e.window===e?e:Ae(e).defaultView||window;function D5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function _5(e){return D5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function We(e,t){if(!ba())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:_5(r)?r=r.host:r=r.parentNode}return!1}const xt=(e=document)=>{var t;if(!ba())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function je(e){return ba()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class I5{get currentNode(){return this._currentNode}set currentNode(t){if(!We(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,i=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),n=o=a.host}else n=n.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return We(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let s;if(typeof this.filter=="function"?s=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var i;if(typeof this.filter=="function")return this.filter(a);if(!((i=this.filter)===null||i===void 0)&&i.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const s=r.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function A5(e,t,r,n){return ba()?new I5(e,t,r,n):e.createTreeWalker(t,r,n)}function Rg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Rg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function N5(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Rg(e))&&(n&&(n+=" "),n+=t);return n}function Ce(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],a=n[o];typeof s=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ur(s,a):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[o]=N5(s,a):o==="id"&&s&&a?t.id=T5(s,a):t[o]=a!==void 0?a:s}}return t}const M5=new Set(["id"]),O5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),j5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),F5=new Set(["dir","lang","hidden","inert","translate"]),Kg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),B5=/^(data-.*)$/;function Bt(e,t={}){let{labelable:r,isLink:n,global:o,events:s=o,propNames:a}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(M5.has(l)||r&&O5.has(l)||n&&j5.has(l)||o&&F5.has(l)||s&&(Kg.has(l)||l.endsWith("Capture")&&Kg.has(l.slice(0,-7)))||a?.has(l)||B5.test(l))&&(i[l]=e[l]);return i}function Vt(e){if(z5())e.focus({preventScroll:!0});else{let t=L5(e);e.focus(),V5(t)}}let wa=null;function z5(){if(wa==null){wa=!1;try{document.createElement("div").focus({get preventScroll(){return wa=!0,!0}})}catch{}}return wa}function L5(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function V5(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Ca(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function au(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Er(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Hr=Er(function(){return au(/^Mac/i)}),R5=Er(function(){return au(/^iPhone/i)}),Wg=Er(function(){return au(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}),Sa=Er(function(){return R5()||Wg()}),K5=Er(function(){return Hr()||Sa()}),iu=Er(function(){return Ca(/AppleWebKit/i)&&!Ug()}),Ug=Er(function(){return Ca(/Chrome/i)}),ss=Er(function(){return Ca(/Android/i)}),W5=Er(function(){return Ca(/Firefox/i)}),U5=g.createContext({isNative:!0,open:q5,useHref:e=>e});function ka(){return g.useContext(U5)}function Tr(e,t,r=!0){var n,o;let{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}=t;W5()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Hr()?s=!0:a=!0);let u=iu()&&Hr()&&!Wg()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Tr.isOpening=r,Vt(e),e.dispatchEvent(u),Tr.isOpening=!1}Tr.isOpening=!1;function H5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function q5(e,t){H5(e,r=>Tr(r,t))}function G5(e){let t=ka();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Hg(e){let t=ka();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let qr=new Map,lu=new Set;function qg(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);o||(o=new Set,qr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),qr.delete(n.target)),qr.size===0)){for(let s of lu)s();lu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qg():document.addEventListener("DOMContentLoaded",qg));function Z5(){for(const[e]of qr)"isConnected"in e&&!e.isConnected&&qr.delete(e)}function Gg(e){requestAnimationFrame(()=>{Z5(),qr.size===0?e():lu.add(e)})}function bn(){let e=g.useRef(new Map),t=g.useCallback((o,s,a,i)=>{let l=i?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:s,eventTarget:o,fn:l,options:i}),o.addEventListener(s,l,i)},[]),r=g.useCallback((o,s,a,i)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(s,u,i),e.current.delete(a)},[]),n=g.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Pa(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=bt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}var uu;const Y5=(uu=g.useInsertionEffect)!==null&&uu!==void 0?uu:Be;function Pt(e){const t=g.useRef(null);return Y5(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function Zg(e,t){const r=g.useRef(!0),n=g.useRef(null);let o=Pt(e);g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),g.useEffect(()=>{let s=n.current;r.current?r.current=!1:(!s||t.some((a,i)=>!Object.is(a,s[i])))&&o(),n.current=t},t)}function Yg(e,t){const r=g.useRef(!0),n=g.useRef(null);Be(()=>(r.current=!0,()=>{r.current=!1}),[]),Be(()=>{r.current?r.current=!1:(!n.current||t.some((o,s)=>!Object.is(o,n[s])))&&e(),n.current=t},t)}function J5(){return typeof window.ResizeObserver<"u"}function Jg(e){const{ref:t,box:r,onResize:n}=e;let o=Pt(n);g.useEffect(()=>{let s=t?.current;if(s)if(J5()){const a=new window.ResizeObserver(i=>{i.length&&o()});return a.observe(s,{box:r}),()=>{s&&a.unobserve(s)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Xg(e,t){Be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Gr(e,t){let r=e;for(ro(r,t)&&(r=r.parentElement);r&&!ro(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function X5(e,t){const r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function no(e){return Hr()?e.metaKey:e.ctrlKey}const Q5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cu(e){return e instanceof HTMLInputElement&&!Q5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let eT=0;const du=new Map;function $a(e){let[t,r]=g.useState();return Be(()=>{if(!e)return;let n=du.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${eT++}`;r(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),n={refCount:0,element:s},du.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),du.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ea(e,t,r,n){let o=Pt(r),s=r==null;g.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,s])}function Qg(e,t){let r=eb(e,t,"left"),n=eb(e,t,"top"),o=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),m=a+parseInt(u,10),b=i+parseInt(l,10),v=m+e.clientWidth,y=b+e.clientHeight,x=parseInt(c,10)||0,w=parseInt(p,10)||0,C=parseInt(d,10)||0,S=parseInt(h,10)||0;r<=a+S?a=r-parseInt(u,10)-S:r+o>v-C&&(a+=r+o-v+C),n<=b+x?i=n-parseInt(l,10)-x:n+s>y-w&&(i+=n+s-y+w),e.scrollLeft=a,e.scrollTop=i}function eb(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Zr(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,i=window.getComputedStyle(a).overflow==="hidden";if(i){let l=X5(e);i||l.push(a);for(let u of l)Qg(u,e)}else{var r;let{left:l,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var n,o,s;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function fu(e){return e.pointerType===""&&e.isTrusted?!0:ss()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tT(e){return!ss()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ta(e,t,r){let n=Pt(()=>{r&&r(t)});g.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s?.addEventListener("reset",n),()=>{s?.removeEventListener("reset",n)}},[e])}const rT="react-aria-clear-focus",nT="react-aria-focus",oT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function sT(e){const t=kt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:i}=s(e);o=a!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function aT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function pu(e,t){return oT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&sT(e)&&aT(e,t)&&(!e.parentElement||pu(e.parentElement,e))}const hu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],iT=hu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const lT=hu.join(':not([hidden]):not([tabindex="-1"]),');function tb(e){return e.matches(iT)&&pu(e)&&!nb(e)}function rb(e){return e.matches(lT)&&pu(e)&&!nb(e)}function nb(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var mu;const uT=typeof document<"u"?(mu=g.useInsertionEffect)!==null&&mu!==void 0?mu:g.useLayoutEffect:()=>{};function hr(e,t,r){let[n,o]=g.useState(e||t),s=g.useRef(n),a=g.useRef(e!==void 0),i=e!==void 0;g.useEffect(()=>{let d=a.current;d!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let l=i?e:n;uT(()=>{s.current=l});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...p)=>{let h=typeof d=="function"?d(s.current):d;Object.is(s.current,h)||(s.current=h,o(h),u(),r?.(h,...p))},[r]);return[l,c]}function oo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Da(e,t){let r=e,n=0,o=t.toString(),s=o.toLowerCase().indexOf("e-");if(s>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let a=o.indexOf(".");a>=0&&(n=o.length-a)}if(n>0){let a=Math.pow(10,n);r=Math.round(r*a)/a}return r}function as(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,s=Da(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(Da(r/n,n))*n):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(Da((r-t)/n,n))*n),s=Da(s,n),s}let gu=new Map,bu=!1;try{bu=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _a=!1;try{_a=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ob={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cT{format(t){let r="";if(!bu&&this.options.signDisplay!=null?r=fT(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!_a){var n;let{unit:o,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!o)return r;let i=(n=ob[o])===null||n===void 0?void 0:n[s];r+=i[a]||i.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!bu&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_a&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=dT(t,r),this.options=r}}function dT(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!_a){var n;let{unit:a,unitDisplay:i="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=ob[a])===null||n===void 0)&&n[i]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${i}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():"");if(gu.has(o))return gu.get(o);let s=new Intl.NumberFormat(e,t);return gu.set(o,s),s}function fT(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),s=e.format(r),a=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(r)}}function sb(e={}){let{locale:t}=Ot();return g.useMemo(()=>new cT(t,e),[t,e])}let vu=new Map;function Ia(e){let{locale:t}=Ot(),r=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(vu.has(r))return vu.get(r);let n=new Intl.Collator(t,e);return vu.set(r,n),n}const ab=g.createContext({});function yu(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const xu=typeof window<"u",ib=xu?g.useLayoutEffect:g.useEffect,Aa=g.createContext(null);function pT(e,t){e.indexOf(t)===-1&&e.push(t)}function hT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Yr=(e,t,r)=>r>t?t:r<e?e:r;function wu(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let so=()=>{},Jr=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(so=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(wu(t,r))},Jr=(e,t,r)=>{if(!e)throw new Error(wu(t,r))});const Dr={},lb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function mT(e){return typeof e=="object"&&e!==null}const ub=e=>/^0[^.\s]+$/u.test(e);function Cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const ao=e=>e,gT=(e,t)=>r=>t(e(r)),Na=(...e)=>e.reduce(gT),cb=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class db{constructor(){this.subscriptions=[]}add(t){return pT(this.subscriptions,t),()=>hT(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _r=e=>e*1e3,or=e=>e/1e3;function fb(e,t){return t?e*(1e3/t):0}const pb=new Set;function Su(e,t,r){e||pb.has(t)||(console.warn(wu(t,r)),pb.add(t))}const hb=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,bT=1e-7,vT=12;function yT(e,t,r,n,o){let s,a,i=0;do a=t+(r-t)/2,s=hb(a,n,o)-e,s>0?r=a:t=a;while(Math.abs(s)>bT&&++i<vT);return a}function is(e,t,r,n){if(e===t&&r===n)return ao;const o=s=>yT(s,0,1,e,r);return s=>s===0||s===1?s:hb(o(s),t,n)}const mb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gb=e=>t=>1-e(1-t),bb=is(.33,1.53,.69,.99),ku=gb(bb),vb=mb(ku),yb=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Pu=e=>1-Math.sin(Math.acos(e)),xT=gb(Pu),xb=mb(Pu),wT=is(.42,0,1,1),CT=is(0,0,.58,1),wb=is(.42,0,.58,1),ST=e=>Array.isArray(e)&&typeof e[0]!="number",Cb=e=>Array.isArray(e)&&typeof e[0]=="number",Sb={linear:ao,easeIn:wT,easeInOut:wb,easeOut:CT,circIn:Pu,circInOut:xb,circOut:xT,backIn:ku,backInOut:vb,backOut:bb,anticipate:yb},kT=e=>typeof e=="string",kb=e=>{if(Cb(e)){Jr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return is(t,r,n,o)}else if(kT(e))return Jr(Sb[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Sb[e];return e},Ma=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function PT(e,t){let r=new Set,n=new Set,o=!1,s=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(c){a.has(c)&&(u.schedule(c),e()),c(i)}const u={schedule:(c,d=!1,p=!1)=>{const m=p&&o?r:n;return d&&a.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(i=c,o){s=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,s&&(s=!1,u.process(c))}};return u}const $T=40;function Pb(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=Ma.reduce((w,C)=>(w[C]=PT(s),w),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:h,postRender:m}=a,b=()=>{const w=Dr.useManualTiming?o.timestamp:performance.now();r=!1,Dr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(w-o.timestamp,$T),1)),o.timestamp=w,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),h.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(b))},v=()=>{r=!0,n=!0,o.isProcessing||e(b)};return{schedule:Ma.reduce((w,C)=>{const S=a[C];return w[C]=(k,D=!1,$=!1)=>(r||v(),S.schedule(k,D,$)),w},{}),cancel:w=>{for(let C=0;C<Ma.length;C++)a[Ma[C]].cancel(w)},state:o,steps:a}}const{schedule:sr,cancel:$u,state:Oa}=Pb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ao,!0);let ja;function ET(){ja=void 0}const zt={now:()=>(ja===void 0&&zt.set(Oa.isProcessing||Dr.useManualTiming?Oa.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(ET)}},$b=e=>t=>typeof t=="string"&&t.startsWith(e),Eb=$b("--"),TT=$b("var(--"),Eu=e=>TT(e)?DT.test(e.split("/*")[0].trim()):!1,DT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tb(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const io={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...io,transform:e=>Yr(0,1,e)},Fa={...io,default:1},us=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _T(e){return e==null}const IT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>r=>!!(typeof r=="string"&&IT.test(r)&&r.startsWith(e)||t&&!_T(r)&&Object.prototype.hasOwnProperty.call(r,t)),Db=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,s,a,i]=n.match(Tu);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(a),alpha:i!==void 0?parseFloat(i):1}},AT=e=>Yr(0,255,e),_u={...io,transform:e=>Math.round(AT(e))},vn={test:Du("rgb","red"),parse:Db("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+_u.transform(e)+", "+_u.transform(t)+", "+_u.transform(r)+", "+us(ls.transform(n))+")"};function NT(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Iu={test:Du("#"),parse:NT,transform:vn.transform},cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=cs("deg"),lo=cs("%"),le=cs("px"),MT=cs("vh"),OT=cs("vw"),_b={...lo,parse:e=>lo.parse(e)/100,transform:e=>lo.transform(e*100)},uo={test:Du("hsl","hue"),parse:Db("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lo.transform(us(t))+", "+lo.transform(us(r))+", "+us(ls.transform(n))+")"},ot={test:e=>vn.test(e)||Iu.test(e)||uo.test(e),parse:e=>vn.test(e)?vn.parse(e):uo.test(e)?uo.parse(e):Iu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vn.transform(e):uo.transform(e),getAnimatableNone:e=>{const t=ot.parse(e);return t.alpha=0,ot.transform(t)}},jT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FT(e){return isNaN(e)&&typeof e=="string"&&(e.match(Tu)?.length||0)+(e.match(jT)?.length||0)>0}const Ib="number",Ab="color",BT="var",zT="var(",Nb="${}",LT=/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 ds(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let s=0;const i=t.replace(LT,l=>(ot.test(l)?(n.color.push(s),o.push(Ab),r.push(ot.parse(l))):l.startsWith(zT)?(n.var.push(s),o.push(BT),r.push(l)):(n.number.push(s),o.push(Ib),r.push(parseFloat(l))),++s,Nb)).split(Nb);return{values:r,split:i,indexes:n,types:o}}function Mb(e){return ds(e).values}function Ob(e){const{split:t,types:r}=ds(e),n=t.length;return o=>{let s="";for(let a=0;a<n;a++)if(s+=t[a],o[a]!==void 0){const i=r[a];i===Ib?s+=us(o[a]):i===Ab?s+=ot.transform(o[a]):s+=o[a]}return s}}const VT=e=>typeof e=="number"?0:ot.test(e)?ot.getAnimatableNone(e):e;function RT(e){const t=Mb(e);return Ob(e)(t.map(VT))}const Qr={test:FT,parse:Mb,createTransformer:Ob,getAnimatableNone:RT};function Au(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function KT({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,s=0,a=0;if(!t)o=s=a=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=Au(l,i,e+1/3),s=Au(l,i,e),a=Au(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function Ba(e,t){return r=>r>0?t:e}const fs=(e,t,r)=>e+(t-e)*r,Nu=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},WT=[Iu,vn,uo],UT=e=>WT.find(t=>t.test(e));function jb(e){const t=UT(e);if(so(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===uo&&(r=KT(r)),r}const Fb=(e,t)=>{const r=jb(e),n=jb(t);if(!r||!n)return Ba(e,t);const o={...r};return s=>(o.red=Nu(r.red,n.red,s),o.green=Nu(r.green,n.green,s),o.blue=Nu(r.blue,n.blue,s),o.alpha=fs(r.alpha,n.alpha,s),vn.transform(o))},Mu=new Set(["none","hidden"]);function HT(e,t){return Mu.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qT(e,t){return r=>fs(e,t,r)}function Ou(e){return typeof e=="number"?qT:typeof e=="string"?Eu(e)?Ba:ot.test(e)?Fb:YT:Array.isArray(e)?Bb:typeof e=="object"?ot.test(e)?Fb:GT:Ba}function Bb(e,t){const r=[...e],n=r.length,o=e.map((s,a)=>Ou(s)(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=o[a](s);return r}}function GT(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Ou(e[o])(e[o],t[o]));return o=>{for(const s in n)r[s]=n[s](o);return r}}function ZT(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][n[s]],i=e.values[a]??0;r[o]=i,n[s]++}return r}const YT=(e,t)=>{const r=Qr.createTransformer(t),n=ds(e),o=ds(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Mu.has(e)&&!o.values.length||Mu.has(t)&&!n.values.length?HT(e,t):Na(Bb(ZT(n,o),o.values),r):(so(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ba(e,t))};function zb(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?fs(e,t,r):Ou(e)(e,t)}const JT=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>$u(t),now:()=>Oa.isProcessing?Oa.timestamp:zt.now()}},Lb=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let s=0;s<o;s++)n+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},za=2e4;function ju(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<za;)t+=r,n=e.next(t);return t>=za?1/0:t}function XT(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(ju(n),za);return{type:"keyframes",ease:s=>n.next(o*s).value/t,duration:or(o)}}const QT=5;function Vb(e,t,r){const n=Math.max(t-QT,0);return fb(r-e(n),t-n)}const Ze={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},Fu=.001;function e6({duration:e=Ze.duration,bounce:t=Ze.bounce,velocity:r=Ze.velocity,mass:n=Ze.mass}){let o,s;so(e<=_r(Ze.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Yr(Ze.minDamping,Ze.maxDamping,a),e=Yr(Ze.minDuration,Ze.maxDuration,or(e)),a<1?(o=u=>{const c=u*a,d=c*e,p=c-r,h=Bu(u,a),m=Math.exp(-d);return Fu-p/h*m},s=u=>{const d=u*a*e,p=d*r+r,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-d),b=Bu(Math.pow(u,2),a);return(-o(u)+Fu>0?-1:1)*((p-h)*m)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Fu+c*d},s=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const i=5/e,l=r6(o,s,i);if(e=_r(e),isNaN(l))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const t6=12;function r6(e,t,r){let n=r;for(let o=1;o<t6;o++)n=n-e(n)/t(n);return n}function Bu(e,t){return e*Math.sqrt(1-t*t)}const n6=["duration","bounce"],o6=["stiffness","damping","mass"];function Rb(e,t){return t.some(r=>e[r]!==void 0)}function s6(e){let t={velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,o6)&&Rb(e,n6))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,s=2*Yr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ze.mass,stiffness:o,damping:s}}else{const r=e6(e);t={...t,...r,mass:Ze.mass},t.isResolvedFromDuration=!0}return t}function La(e=Ze.visualDuration,t=Ze.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],i={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=s6({...r,velocity:-or(r.velocity||0)}),m=p||0,b=u/(2*Math.sqrt(l*c)),v=a-s,y=or(Math.sqrt(l/c)),x=Math.abs(v)<5;n||(n=x?Ze.restSpeed.granular:Ze.restSpeed.default),o||(o=x?Ze.restDelta.granular:Ze.restDelta.default);let w;if(b<1){const S=Bu(y,b);w=k=>{const D=Math.exp(-b*y*k);return a-D*((m+b*y*v)/S*Math.sin(S*k)+v*Math.cos(S*k))}}else if(b===1)w=S=>a-Math.exp(-y*S)*(v+(m+y*v)*S);else{const S=y*Math.sqrt(b*b-1);w=k=>{const D=Math.exp(-b*y*k),$=Math.min(S*k,300);return a-D*((m+b*y*v)*Math.sinh($)+S*v*Math.cosh($))/S}}const C={calculatedDuration:h&&d||null,next:S=>{const k=w(S);if(h)i.done=S>=d;else{let D=S===0?m:0;b<1&&(D=S===0?_r(m):Vb(w,S,k));const $=Math.abs(D)<=n,_=Math.abs(a-k)<=o;i.done=$&&_}return i.value=i.done?a:k,i},toString:()=>{const S=Math.min(ju(C),za),k=Lb(D=>C.next(S*D).value,S,30);return S+"ms "+k},toTransition:()=>{}};return C}La.applyToOptions=e=>{const t=XT(e,100,La);return e.ease=t.ease,e.duration=_r(t.duration),e.type="keyframes",e};function zu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:i,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=$=>i!==void 0&&$<i||l!==void 0&&$>l,m=$=>i===void 0?l:l===void 0||Math.abs(i-$)<Math.abs(l-$)?i:l;let b=r*t;const v=d+b,y=a===void 0?v:a(v);y!==v&&(b=y-d);const x=$=>-b*Math.exp(-$/n),w=$=>y+x($),C=$=>{const _=x($),N=w($);p.done=Math.abs(_)<=u,p.value=p.done?y:N};let S,k;const D=$=>{h(p.value)&&(S=$,k=La({keyframes:[p.value,m(p.value)],velocity:Vb(w,$,p.value),damping:o,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:$=>{let _=!1;return!k&&S===void 0&&(_=!0,C($),D($)),S!==void 0&&$>=S?k.next($-S):(!_&&C($),p)}}}function a6(e,t,r){const n=[],o=r||Dr.mix||zb,s=e.length-1;for(let a=0;a<s;a++){let i=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ao:t;i=Na(l,i)}n.push(i)}return n}function i6(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const s=e.length;if(Jr(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=a6(t,n,o),l=i.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=cb(e[d],e[d+1],c);return i[d](p)};return r?c=>u(Yr(e[0],e[s-1],c)):u}function l6(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=cb(0,t,n);e.push(fs(r,1,o))}}function u6(e){const t=[0];return l6(t,e.length-1),t}function c6(e,t){return e.map(r=>r*t)}function d6(e,t){return e.map(()=>t||wb).splice(0,e.length-1)}function co({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=ST(n)?n.map(kb):kb(n),s={done:!1,value:t[0]},a=c6(r&&r.length===t.length?r:u6(t),e),i=i6(a,t,{ease:Array.isArray(o)?o:d6(t,o)});return{calculatedDuration:e,next:l=>(s.value=i(l),s.done=l>=e,s)}}const f6=e=>e!==null;function Lu(e,{repeat:t,repeatType:r="loop"},n,o=1){const s=e.filter(f6),i=o<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!i||n===void 0?s[i]:n}const p6={decay:zu,inertia:zu,tween:co,keyframes:co,spring:La};function Kb(e){typeof e.type=="string"&&(e.type=p6[e.type])}class Vu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const h6=e=>e/100;class Ru extends Vu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==zt.now()&&this.tick(zt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Kb(t);const{type:r=co,repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:i}=t;const l=r||co;process.env.NODE_ENV!=="production"&&l!==co&&Jr(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),l!==co&&typeof i[0]!="number"&&(this.mixKeyframes=Na(h6,zb(i[0],i[1])),i=[0,100]);const u=l({...t,keyframes:i});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=ju(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=u}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:h,type:m,onUpdate:b,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=n;if(d){const $=Math.min(this.currentTime,o)/i;let _=Math.floor($),N=$%1;!N&&$>=1&&(N=1),N===1&&_--,_=Math.min(_,d+1),!!(_%2)&&(p==="reverse"?(N=1-N,h&&(N-=h/i)):p==="mirror"&&(C=a)),w=Yr(0,1,N)*i}const S=x?{done:!1,value:c[0]}:C.next(w);s&&(S.value=s(S.value));let{done:k}=S;!x&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&m!==zu&&(S.value=Lu(c,this.options,v,this.speed)),b&&b(S.value),D&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return or(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(this.currentTime)}set time(t){t=_r(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=or(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=JT,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(zt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function m6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yn=e=>e*180/Math.PI,Ku=e=>{const t=yn(Math.atan2(e[1],e[0]));return Wu(t)},g6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ku,rotateZ:Ku,skewX:e=>yn(Math.atan(e[1])),skewY:e=>yn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),Wb=Ku,Ub=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Hb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),b6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ub,scaleY:Hb,scale:e=>(Ub(e)+Hb(e))/2,rotateX:e=>Wu(yn(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(yn(Math.atan2(-e[2],e[0]))),rotateZ:Wb,rotate:Wb,skewX:e=>yn(Math.atan(e[4])),skewY:e=>yn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uu(e){return e.includes("scale")?1:0}function Hu(e,t){if(!e||e==="none")return Uu(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=b6,o=r;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=g6,o=i}if(!o)return Uu(t);const s=n[t],a=o[1].split(",").map(y6);return typeof s=="function"?s(a):a[s]}const v6=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Hu(r,t)};function y6(e){return parseFloat(e.trim())}const fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(fo),qb=e=>e===io||e===le,x6=new Set(["x","y","z"]),w6=fo.filter(e=>!x6.has(e));function C6(e){const t=[];return w6.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const en={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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})=>Hu(t,"x"),y:(e,{transform:t})=>Hu(t,"y")};en.translateX=en.x,en.translateY=en.y;const xn=new Set;let qu=!1,Gu=!1,Zu=!1;function Gb(){if(Gu){const e=Array.from(xn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=C6(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([s,a])=>{n.getValue(s)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Gu=!1,qu=!1,xn.forEach(e=>e.complete(Zu)),xn.clear()}function Zb(){xn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function S6(){Zu=!0,Zb(),Gb(),Zu=!1}class Yu{constructor(t,r,n,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(xn.add(this),qu||(qu=!0,sr.read(Zb),sr.resolveKeyframes(Gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const i=n.readValue(r,a);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}m6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xn.delete(this)}cancel(){this.state==="scheduled"&&(xn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const k6=e=>e.startsWith("--");function P6(e,t,r){k6(t)?e.style.setProperty(t,r):e.style[t]=r}const $6=Cu(()=>window.ScrollTimeline!==void 0),E6={};function T6(e,t){const r=Cu(e);return()=>E6[t]??r()}const Yb=T6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ps=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Jb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ps([0,.65,.55,1]),circOut:ps([.55,0,1,.45]),backIn:ps([.31,.01,.66,-.59]),backOut:ps([.33,1.53,.69,.99])};function Xb(e,t){if(e)return typeof e=="function"?Yb()?Lb(e,t):"ease-out":Cb(e)?ps(e):Array.isArray(e)?e.map(r=>Xb(r,t)||Jb.easeOut):Jb[e]}function D6(e,t,r,{delay:n=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:i="easeOut",times:l}={},u=void 0){const c={[t]:r};l&&(c.offset=l);const d=Xb(i,o);Array.isArray(d)&&(c.easing=d);const p={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function Qb(e){return typeof e=="function"&&"applyToOptions"in e}function _6({type:e,...t}){return Qb(e)&&Yb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class I6 extends Vu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Jr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=_6(t);this.animation=D6(r,n,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Lu(o,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):P6(r,n,c),this.animation.cancel()}l?.(),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;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return or(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_r(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$6()?(this.animation.timeline=t,ao):r(this)}}const ev={anticipate:yb,backInOut:vb,circInOut:xb};function A6(e){return e in ev}function N6(e){typeof e.ease=="string"&&A6(e.ease)&&(e.ease=ev[e.ease])}const Ju=10;class M6 extends I6{constructor(t){N6(t),Kb(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:s,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const i=new Ru({...a,autoplay:!1}),l=Math.max(Ju,zt.now()-this.startTime),u=Yr(0,Ju,l-Ju);r.setWithVelocity(i.sample(Math.max(0,l-u)).value,i.sample(l).value,u),i.stop()}}const tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function O6(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function j6(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=tv(o,t),i=tv(s,t);return so(a===i,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!i?!1:O6(e)||(r==="spring"||Qb(r))&&n}function Xu(e){e.duration=0,e.type="keyframes"}const F6=new Set(["opacity","clipPath","filter","transform"]),B6=Cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z6(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return B6()&&r&&F6.has(r)&&(r!=="transform"||!u)&&!l&&!n&&o!=="mirror"&&s!==0&&a!=="inertia"}const L6=40;class V6 extends Vu{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:i,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=zt.now();const p={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},h=c?.KeyframeResolver||Yu;this.keyframeResolver=new h(i,(m,b,v)=>this.onKeyframesResolved(m,b,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:i,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=zt.now(),j6(t,s,a,i)||((Dr.instantAnimations||!l)&&c?.(Lu(t,n,r)),t[0]=t[t.length-1],Xu(n),n.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>L6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!u&&z6(p)?new M6({...p,element:p.motionValue.owner.current}):new Ru(p);h.finished.then(()=>this.notifyFinished()).catch(ao),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const R6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K6(e){const t=R6.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const W6=4;function rv(e,t,r=1){Jr(r<=W6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=K6(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const a=s.trim();return lb(a)?parseFloat(a):a}return Eu(o)?rv(o,t,r+1):o}function nv(e,t){return e?.[t]??e?.default??e}const ov=new Set(["width","height","top","left","right","bottom",...fo]),U6={test:e=>e==="auto",parse:e=>e},sv=e=>t=>t.test(e),av=[io,le,lo,Xr,OT,MT,U6],iv=e=>av.find(sv(e));function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}const q6=new Set(["brightness","contrast","saturate","opacity"]);function G6(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Tu)||[];if(!n)return e;const o=r.replace(n,"");let s=q6.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+o+")"}const Z6=/\b([a-z-]*)\(.*?\)/gu,Qu={...Qr,getAnimatableNone:e=>{const t=e.match(Z6);return t?t.map(G6).join(" "):e}},lv={...io,transform:Math.round},ec={borderWidth:le,borderTopWidth:le,borderRightWidth:le,borderBottomWidth:le,borderLeftWidth:le,borderRadius:le,radius:le,borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomRightRadius:le,borderBottomLeftRadius:le,width:le,maxWidth:le,height:le,maxHeight:le,top:le,right:le,bottom:le,left:le,inset:le,insetBlock:le,insetBlockStart:le,insetBlockEnd:le,insetInline:le,insetInlineStart:le,insetInlineEnd:le,padding:le,paddingTop:le,paddingRight:le,paddingBottom:le,paddingLeft:le,paddingBlock:le,paddingBlockStart:le,paddingBlockEnd:le,paddingInline:le,paddingInlineStart:le,paddingInlineEnd:le,margin:le,marginTop:le,marginRight:le,marginBottom:le,marginLeft:le,marginBlock:le,marginBlockStart:le,marginBlockEnd:le,marginInline:le,marginInlineStart:le,marginInlineEnd:le,backgroundPositionX:le,backgroundPositionY:le,...{rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Xr,skewX:Xr,skewY:Xr,distance:le,translateX:le,translateY:le,translateZ:le,x:le,y:le,z:le,perspective:le,transformPerspective:le,opacity:ls,originX:_b,originY:_b,originZ:le},zIndex:lv,fillOpacity:ls,strokeOpacity:ls,numOctaves:lv},Y6={...ec,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Qu,WebkitFilter:Qu},uv=e=>Y6[e];function cv(e,t){let r=uv(e);return r!==Qu&&(r=Qr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const J6=new Set(["auto","none","0"]);function X6(e,t,r){let n=0,o;for(;n<e.length&&!o;){const s=e[n];typeof s=="string"&&!J6.has(s)&&ds(s).values.length&&(o=e[n]),n++}if(o&&r)for(const s of t)e[s]=cv(r,o)}class Q6 extends Yu{constructor(t,r,n,o,s){super(t,r,n,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Eu(d))){const p=rv(d,r.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ov.has(n)||t.length!==2)return;const[o,s]=t,a=iv(o),i=iv(s),l=Tb(o),u=Tb(s);if(l!==u&&en[n]){this.needsMeasurement=!0;return}if(a!==i)if(qb(a)&&qb(i))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else en[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||H6(t[o]))&&n.push(o);n.length&&X6(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=en[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=n.length-1,a=n[s];n[s]=en[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}}function e9(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const dv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fv(e){return mT(e)&&"offsetHeight"in e}const pv=30,t9=e=>!isNaN(parseFloat(e));class r9{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=zt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=zt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=t9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Su(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new db);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,pv);return fb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Va(e,t){return new r9(e,t)}const{schedule:n9}=Pb(queueMicrotask,!1),o9={y:!1};function s9(){return o9.y}function hv(e,t){const r=e9(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function mv(e){return!(e.pointerType==="touch"||s9())}function a9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{if(!mv(i))return;const{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;const c=d=>{mv(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return n.forEach(i=>{i.addEventListener("pointerenter",a,o)}),s}const gv=(e,t)=>t?e===t?!0:gv(e,t.parentElement):!1,i9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,l9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function u9(e){return l9.has(e.tagName)||e.isContentEditable===!0}const Ra=new WeakSet;function bv(e){return t=>{t.key==="Enter"&&e(t)}}function tc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const c9=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=bv(()=>{if(Ra.has(r))return;tc(r,"down");const o=bv(()=>{tc(r,"up")}),s=()=>tc(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function vv(e){return i9(e)&&!0}function d9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{const l=i.currentTarget;if(!vv(i))return;Ra.add(l);const u=t(l,i),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Ra.has(l)&&Ra.delete(l),vv(h)&&typeof u=="function"&&u(h,{success:m})},d=h=>{c(h,l===window||l===document||r.useGlobalTarget||gv(l,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",p,o)};return n.forEach(i=>{(r.useGlobalTarget?window:i).addEventListener("pointerdown",a,o),fv(i)&&(i.addEventListener("focus",u=>c9(u,o)),!u9(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),s}const $t=e=>!!(e&&e.getVelocity),f9=[...av,ot,Qr],p9=e=>f9.find(sv(e)),rc=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h9(...e){return t=>{let r=!1;const n=e.map(o=>{const s=yv(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():yv(e[o],null)}}}}function m9(...e){return At.useCallback(h9(...e),e)}class g9 extends At.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=fv(n)&&n.offsetWidth||0,s=this.props.sizeRef.current;s.height=r.offsetHeight||0,s.width=r.offsetWidth||0,s.top=r.offsetTop,s.left=r.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function b9({children:e,isPresent:t,anchorX:r,root:n}){const o=g.useId(),s=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=g.useContext(rc),l=e.props?.ref??e?.ref,u=m9(s,l);return g.useInsertionEffect(()=>{const{width:c,height:d,top:p,left:h,right:m}=a.current;if(t||!s.current||!c||!d)return;const b=r==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");i&&(v.nonce=i);const y=n??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
38
|
+
*/var Cg;function gE(){return Cg||(Cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=m();if(!d){var v=m();s(b,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:b,getSnapshot:m}});var y=v[0].inst,x=v[1];return l(function(){y.value=b,y.getSnapshot=m,r(y)&&x({inst:y})},[h,b,m]),i(function(){return r(y)&&x({inst:y}),h(function(){r(y)&&x({inst:y})})},[h]),u(b),b}function r(h){var m=h.getSnapshot;h=h.value;try{var b=m();return!s(h,b)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=g,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Xl.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xl}var Sg;function bE(){return Sg||(Sg=1,process.env.NODE_ENV==="production"?ha.exports=mE():ha.exports=gE()),ha.exports}var ma=bE();const vE={t:(e,t)=>Mt(t)?t:$r(t)&&Mt(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},yE=()=>()=>{},Oe=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:o}=g.useContext(Yl)||{},s=r||n||Zl();s&&!s.reportNamespaces&&(s.reportNamespaces=new hE),s||da(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=g.useMemo(()=>({...Gl(),...s?.options?.react,...t}),[s,t]),{useSuspense:i,keyPrefix:l}=a,u=o||s?.options?.defaultNS,c=Mt(u)?[u]:u||["translation"],d=g.useMemo(()=>c,c);s?.reportNamespaces?.addUsedNamespaces?.(d);const p=g.useRef(0),h=g.useCallback(_=>{if(!s)return yE;const{bindI18n:N,bindI18nStore:A}=a,M=()=>{p.current+=1,_()};return N&&s.on(N,M),A&&s.store.on(A,M),()=>{N&&N.split(" ").forEach(O=>s.off(O,M)),A&&A.split(" ").forEach(O=>s.store.off(O,M))}},[s,a]),m=g.useRef(),b=g.useCallback(()=>{if(!s)return vE;const _=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(I=>J$(I,s,a)),N=t.lng||s.language,A=p.current,M=m.current;if(M&&M.ready===_&&M.lng===N&&M.keyPrefix===l&&M.revision===A)return M;const L={t:s.getFixedT(N,a.nsMode==="fallback"?d:d[0],l),ready:_,lng:N,keyPrefix:l,revision:A};return m.current=L,L},[s,d,l,a,t.lng]),[v,y]=g.useState(0),{t:x,ready:w}=ma.useSyncExternalStore(h,b,b);g.useEffect(()=>{if(s&&!w&&!i){const _=()=>y(N=>N+1);t.lng?mg(s,t.lng,d,_):Hl(s,d,_)}},[s,t.lng,d,w,i,v]);const C=s||{},S=g.useRef(null),k=g.useRef(),D=_=>{const N=Object.getOwnPropertyDescriptors(_);N.__original&&delete N.__original;const A=Object.create(Object.getPrototypeOf(_),N);if(!Object.prototype.hasOwnProperty.call(A,"__original"))try{Object.defineProperty(A,"__original",{value:_,writable:!1,enumerable:!1,configurable:!1})}catch{}return A},$=g.useMemo(()=>{const _=C,N=_?.language;let A=_;_&&(S.current&&S.current.__original===_?k.current!==N?(A=D(_),S.current=A,k.current=N):A=S.current:(A=D(_),S.current=A,k.current=N));const M=[x,A,w];return M.t=x,M.i18n=A,M.ready=w,M},[x,C,w,C.resolvedLanguage,C.language,C.languages]);if(s&&i&&!w)throw new Promise(_=>{const N=()=>_();t.lng?mg(s,t.lng,d,N):Hl(s,d,N)});return $};function xE({i18n:e,defaultNS:t,children:r}){const n=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(Yl.Provider,{value:n},r)}let wE=!1,kg=!1;function ga(){return wE}function CE(){kg=!0}function ba(){return kg}const Pg=g.createContext({shadowRoot:null});CE();function SE({children:e,css:t,cssUrl:r}){const n=g.useRef(null),[o,s]=g.useState(null),[a,i]=g.useState(null);return g.useEffect(()=>{if(n.current&&!n.current.shadowRoot){const l=n.current.attachShadow({mode:"open",delegatesFocus:!0});if(i(l),t){const c=document.createElement("style");c.textContent=t,l.appendChild(c)}if(r){const c=document.createElement("link");c.type="text/css",c.rel="stylesheet",c.href=r,l.appendChild(c)}const u=document.createElement("div");l.appendChild(u),s(u)}},[t,r]),f.jsx("div",{ref:n,children:o&&f.jsx(Pg,{value:{shadowRoot:a},children:Hn.createPortal(e,o)})})}function kE(){return g.useContext(Pg)}const PE={common:{yes:"Yes",no:"No",confirm:"Confirm",cancel:"Cancel",loading:"Loading...",close:"Close",next:"Next",previous:"Previous",select:"Select",save:"Save",back:"Back"},numberPreservation:{title:"Number preservation",description:"Do you want to keep your current number or get a new number?",keepCurrentNumber:"Current 06-number",newNumber:"New 06-number",currentProvider:"Current provider",selectProvider:"Select your current provider",invalidNumber:"Invalid number",subscription:"Subscription",prepaid:"Prepaid",otherProvider:"Other / no provider"},combiDeal:{title:"Customer benefits",description:"Combining subscriptions in your household can provide many benefits.",selectHomeProvider:"Select your home provider",selectOtherSubscriptionsOnAddress:"Select subscriptions on your address",customerBenefit:"Customer benefits",homeInternet:"Home internet",selectOtherSubscriptions:"Select your other providers on your address:",otherSubscriptionsDescription:"and see which benefits apply to you.",otherSubscriptions:"Other providers on your address",movingOption:"None due to relocation",otherProvider:"Other provider"},postcodeCheck:{loading:"Searching for the best deals...",invalidAddressError:"Address and house number do not match",title:"Postal code check",description:"Enter your postal code and check which offer best suits you.",postalCode:"Postcode",houseNumber:"House number",houseNumberAddition:"Addition",homeInternet:"Home internet",selectProvider:"Select your home internet provider"},profile:{personalizeTitle:"Personalize",postcodeCheck:"Postal code check",enterPostcode:"Enter your postal code and house number",numberPreservation:"Number preservation",askNumberPreservation:"Keep your 06-number?",newNumber:"New 06-number",customerBenefit:"Customer benefits"},format:{unlimited:"Unlimited",unlimited_short:"Unltd",gigabyte:"GB",minutes:"minutes",minutes_short:"min",sms:"sms",year:"year",year_other:"years",oneTime:"One-time",monthly:"Monthly",month:"month",month_other:"months",month_short:"mo",month_short_other:"mos",firstMonth:"First month",firstMonth_other:"First {{count}} months",thenMonth:"Then 1 month",thenMonth_other:"Then {{count}} months",afterMonth:"After 1 month",afterMonth_other:"After {{count}} months",hour:"hour",hour_other:"hours",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"From",startingFrom:"From",to:"Up to",for:"for",or:"or",average:"Average",average_short:"avg.",maximum:"Maximum"},labels:{renewWith:"Renew with {{providerName}}",cheapestPhone:"Cheapest phone",budget:"Most affordable",budgetFiber:"Most affordable with fiber",combi:"Customer benefits with {{providerName}}",combiGeneric:"Customer benefits",fastestInternet:"Fastest internet",budgetOwnNetwork:"Most affordable with own network",budgetNetwork:"Most affordable on {{network}}-network",budgetNetworkGeneric:"Most affordable on network"},propositionCard:{availableStockStatus:"In stock",backorderedStockStatus:"Backorder",preOrderStockStatus:"Pre-order",oneTimeFee:"one-time",deviceDiscount:"device discount",urgentText:"Final day",urgentText_other:"Promotion ends in {{days}} days",cta:"View at Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Fiber","kabel-internet":"Cable","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Reset filters",applyFilters:"Show results",chosenFilters:"Chosen filters:",sort:"Sort",sortBy:"Sort by",show:"Show",showMore:"more",showLess:"less"},filterOptions:{brand:"Brand",internal_storage:"Internal storage",color:"Color",data:"Data",minutes:"Minutes",credit_fee:"Maximum device bundle",provider:"Providers",contract_term:"Contract term",package:"Packages",data_speed_down:"Download speed",data_speed_up:"Upload speed",monthly_fee:"Monthly fee",price:"Maximum additional payment",tags_netwerk:"Network",tags_verbinding:"Internet connection",tags_esim:"eSIM",receivers:"TV receivers",network_generation:"Network speed"},sortOptions:{top:"Relevance",relevantie:"Relevance","best-verkocht":"Best-selling","meest-voordelig":"Price low-high",downloadsnelheid:"Download speed",uploadsnelheid:"Upload speed"},productResults:{loadMore:"Loading...",showMoreOffers:"Show more offers",noResultsTitle:"No results found",noResultsDescription:"No products found with your chosen filter combination.",sortBy:"Sort by",topPropositionsTitle:"Best providers for you",allPropositionsTitle:"All providers"},creditInfo:{exampleTitle:"Example calculation of device bundle",creditBundleTitle:"Legally required credit information",offer:"Offer",totalDeviceCost:"Total device cost",oneTimeFee:"One-time fee",totalCreditAmount:"Total credit amount",monthlyPayment:"Monthly payment",contractTerm:"Contract term",fixedInterest:"Fixed interest / JKP",generalDescription:"This table contains a calculation of a device loan and the price per month. The device loan is a revolving goods credit offered by the Finance B.V. of the chosen provider. Read <0>here</0> more about installment payments and the European standard form. Websend B.V. mediates on behalf of various parties and acts as an exempt intermediary for the Finance B.V. of the chosen provider and does not provide advice on the device loan. You must determine for yourself whether the device loan suits your personal circumstances.",creditBundleDescription:"Up to the credit amount {{creditPrice}} there is no income and expense assessment. The device loan is a revolving goods credit offered by {{creditProviderName}} <0>Standard information on consumer credit</0>"},detailsModal:{title:"All about this subscription",renewal:"Renewal",chooseTab:"Choose a tab",general:"General",bundles:"Bundles",conditions:"Conditions",channels:"TV channels",costs:"Costs",specifications:"Specifications",monthlyFee:"Monthly fee",oneTimeFee:"One-time fee",totalCost:"Total cost",provider:"Provider",network:"Network",networkCoverage:"Coverage",networkAdministrator:"Network administrator",networkType:"Network type",subscriptionType:"Subscription type",internet:"Internet",calling:"Calling",sms:"Sms",extras:"Extras",television:"Television",networkGeneration:"Network generation",downloadSpeed:"Download speed",uploadSpeed:"Upload speed",contractTerm:"Contract term",contractTermTerminable:"terminable",subscription:"Subscription",bundle:"Bundle",bundleSpeed:"Speed",termsAndConditions:"Terms and conditions",maximumDownloadSpeed:"Maximum download speed",maximumUploadSpeed:"Maximum upload speed",numberOfChannels:"TV channels",numberOfReceivers:"TV receivers",outsideBundle:"Outside the bundle",subscriptionFlexibility:"Subscription flexibility",abroad:"Abroad",insideEu:"Inside the EU",outsideEu:"Outside the EU",minutesToEu:"Minutes from NL to EU",upgradeBundle:"Upgrade bundle",downgradeBundle:"Downgrade bundle",dataExceedance:"Data exceedance",bundleExceedanceRates:"Out-of-bundle rates",bundleExceedanceRateCeiling:"Cost ceiling",bundleExceedanceWarning:"Credit notification",bundleExceedanceMinutesRounding:"Rounding call minutes",channelsDescription:"You receive the following {{channelsCount}} TV channels with this subscription:",moreInformation:"More information",deviceBundle:"Device bundle",installationFee:"installation fee",activationFee:"activation fee",cashback:"Cashback",priceWithoutSubscription:"Price without subscription",priceWithSubscription:"Price with subscription",devicePrice:"Device surcharge",costPerContractTermTitle:"Average per month",costPerContractTermSubtitle:"Total costs divided by contract term",deviceDiscountTitle:"Device discount",deviceDiscountSubtitle:"Discount compared to separate phone + sim only",totalCostsOverTerm:"Total costs over 1 month",totalCostsOverTerm_other:"Total costs over {{count}} months",totalDeviceDiscount:"Total device discount"},phoneSelector:{phone:"Phone",selectPhone:"Select a phone",selectBrand:"Select a brand",searchPlaceholder:"Search by brand or model",popular:"Popular",allBrands:"All brands",selectVersion:"Select a version",selectColor:"Select a color"},modificationBlocks:{"mobile/odido":"One or more mobile subscriptions","mobile/vodafone":"One or more mobile subscriptions","segment/vodafone/young":"I am younger than 28 years old","segment/vodafone/unlimited":"Vodafone Unlimited subscription at my address","mobile/kpn":"Another mobile subscription from KPN","mobile/ben":"One or more mobile subscriptions","mobile/50plusmobiel":"One or more mobile subscriptions","mobile/hollandsnieuwe":"One or more mobile subscriptions","mobile/budget":"One or more mobile subscriptions","mobile/youfone":"One or more mobile subscriptions","mobile/delta":"One or more mobile subscriptions"}},$E={common:{yes:"Ja",no:"Nee",confirm:"Bevestig",cancel:"Annuleer",loading:"Laden...",close:"Sluiten",next:"Volgende",previous:"Vorige",select:"Selecteer",save:"Opslaan",back:"Terug"},numberPreservation:{title:"Nummerbehoud",description:"Wil je je huidige nummer behouden of een nieuw nummer?",keepCurrentNumber:"Huidig 06-nummer",newNumber:"Nieuw 06-nummer",currentProvider:"Huidige provider",selectProvider:"Kies je huidige provider",invalidNumber:"Ongeldig nummer",subscription:"Abonnement",prepaid:"Prepaid",otherProvider:"Andere / geen provider"},combiDeal:{title:"Klantvoordeel",description:"Combineren met abonnementen in je huishouden kan veel voordeel opleveren.",selectHomeProvider:"Kies je thuisprovider",selectOtherSubscriptionsOnAddress:"Selecteer abonnementen op je adres",customerBenefit:"Klantvoordeel",homeInternet:"Thuis internet",selectOtherSubscriptions:"Selecteer andere abonnementen op jouw adres:",otherSubscriptionsDescription:"en zie welke voordelen voor jou van toepassing zijn.",otherSubscriptions:"Andere abonnementen op jouw adres",movingOption:"Geen i.v.m. verhuizing",otherProvider:"Andere provider"},postcodeCheck:{loading:"Aan het zoeken naar de beste deals...",invalidAddressError:"Adres en huisnummer komen niet overeen",title:"Postcodecheck",description:"Vul je postcode in en check welk pakket het beste bij jou past.",postalCode:"Postcode",houseNumber:"Huisnr.",houseNumberAddition:"Toev.",homeInternet:"Thuis internet",selectProvider:"Kies je thuisprovider"},profile:{personalizeTitle:"Personaliseer",postcodeCheck:"Postcodecheck",enterPostcode:"Vul je postcode en huisnr in",numberPreservation:"Nummerbehoud",askNumberPreservation:"Je 06-nummer behouden?",newNumber:"Nieuw 06-nummer",customerBenefit:"Klantvoordeel"},format:{unlimited:"Onbeperkt",unlimited_short:"Onbp",gigabyte:"GB",minutes:"minuten",minutes_short:"min",sms:"sms",year:"jaar",year_other:"jaar",oneTime:"Eenmalig",monthly:"Maandelijks",month:"maand",month_other:"maanden",month_short:"mnd",month_short_other:"mnd",firstMonth:"Eerste maand",firstMonth_other:"Eerste {{count}} maanden",thenMonth:"Daarna 1 maand",thenMonth_other:"Daarna {{count}} maanden",afterMonth:"Na 1 maand",afterMonth_other:"Na {{count}} maanden",hour:"uur",hour_other:"uur",inch:"inch",centimeter:"cm",milliampere:"mAh",megabitPerSecond:"Mbps",internet:"Internet",from:"Van",startingFrom:"Vanaf",to:"Tot",for:"voor",or:"of",average:"Gemiddeld",average_short:"gem.",maximum:"Maximaal"},labels:{renewWith:"Verlengen bij {{providerName}}",cheapestPhone:"Hoogste toestelkorting",budget:"Meest voordelig",budgetFiber:"Meest voordelig met glasvezel",combi:"Klantvoordeel bij {{providerName}}",combiGeneric:"Klantvoordeel",fastestInternet:"Snelste internet",budgetOwnNetwork:"Voordeligste met eigen netwerk",budgetNetwork:"Voordeligste op {{network}}-netwerk",budgetNetworkGeneric:"Voordeligste op netwerk"},propositionCard:{availableStockStatus:"Direct leverbaar",backorderedStockStatus:"In bestelling",preOrderStockStatus:"Pre-order",oneTimeFee:"eenmalig",deviceDiscount:"toestelkorting",urgentText:"Laatste dag",urgentText_other:"Actie nog {{days}} dagen",cta:"Bekijk bij Mobiel.nl"},fixedInternet:{"glasvezel-internet":"Glasvezel","kabel-internet":"Kabel","dsl-internet":"DSL","5g-internet":"5G"},filters:{title:"Filters",resetFilters:"Wis filters",applyFilters:"Toon resultaten",chosenFilters:"Gekozen filters:",sort:"Sorteren",sortBy:"Sorteer op",show:"Bekijk",showMore:"meer",showLess:"minder"},filterOptions:{brand:"Merk",internal_storage:"Opslagcapaciteit",color:"Kleur",data:"Data",minutes:"Minuten",credit_fee:"Maximale toestelbundel",provider:"Providers",contract_term:"Looptijd van je abonnement",package:"Pakketten",data_speed_down:"Downloadsnelheid",data_speed_up:"Uploadsnelheid",monthly_fee:"Maandprijs",price:"Maximale bijbetaling",tags_netwerk:"Netwerk",tags_verbinding:"Internetverbinding",tags_esim:"eSIM",receivers:"TV-ontvangers",network_generation:"Netwerksnelheid"},sortOptions:{top:"Relevantie",relevantie:"Relevantie","best-verkocht":"Bestverkocht","meest-voordelig":"Prijs laag-hoog",downloadsnelheid:"Downloadsnelheid",uploadsnelheid:"Uploadsnelheid"},productResults:{loadMore:"Laden...",showMoreOffers:"Toon meer aanbiedingen",noResultsTitle:"Geen resultaten gevonden",noResultsDescription:"Er zijn geen producten gevonden met je gekozen filtercombinatie.",sortBy:"Sorteren",topPropositionsTitle:"Beste providers voor jou",allPropositionsTitle:"Alle providers op een rijtje"},creditInfo:{exampleTitle:"Voorbeeldberekening toestelbundel",creditBundleTitle:"Wettelijk verplichte kredietinformatie",offer:"Aanbieding",totalDeviceCost:"Totale toestelkosten",oneTimeFee:"Eenmalige betaling",totalCreditAmount:"Totaal kredietbedrag",monthlyPayment:"Termijnbedrag",contractTerm:"Duur overeenkomst",fixedInterest:"Vaste rente / JKP",generalDescription:"Deze tabel bevat een berekening van een toestellening en de prijs per maand. De toestellening is een aflopend goederenkrediet aangeboden door de Finance B.V. van de gekozen provider. Lees <0>hier</0> meer over gespreid betalen en het Europees standaard formulier. Websend B.V. bemiddelt namens verschillende partijen en treedt op als vrijgestelde bemiddelaar voor de Finance B.V. van de gekozen provider en geeft geen advies over de toestellening. Je dient zelf te bepalen of de toestellening aansluit bij jouw persoonlijke omstandigheden.",creditBundleDescription:"Tot het kredietbedrag {{creditPrice}} vindt er geen inkomens- en lastentoets plaats. Toestellening is een aflopend goederenkrediet aangeboden door {{creditProviderName}} <0>Standaardinformatie inzake consumptief krediet</0>"},detailsModal:{title:"Alles over dit abonnement",renewal:"Verlenging",chooseTab:"Kies een tabblad",general:"Algemeen",bundles:"Bundels",conditions:"Voorwaarden",channels:"Tv-zenders",costs:"Kostenoverzicht",specifications:"Specificaties",monthlyFee:"Maandelijkse kosten",oneTimeFee:"Eenmalige kosten",totalCost:"Totale kosten",provider:"Provider",network:"Netwerk",networkCoverage:"Dekking",networkAdministrator:"Netwerk beheerder",networkType:"Netwerktype",subscriptionType:"Abonnementsvorm",internet:"Internet",calling:"Bellen",sms:"Sms",extras:"Extra's",television:"Televisie",networkGeneration:"Netwerkgeneratie",downloadSpeed:"Downloadsnelheid",uploadSpeed:"Uploadsnelheid",contractTerm:"Contractduur",contractTermTerminable:"opzegbaar",subscription:"Abonnement",bundle:"Bundel",bundleSpeed:"Snelheid",termsAndConditions:"Algemene voorwaarden",maximumDownloadSpeed:"Maximale downloadsnelheid",maximumUploadSpeed:"Maximale uploadsnelheid",numberOfChannels:"Aantal TV-zenders",numberOfReceivers:"Aantal TV-ontvangers",outsideBundle:"Buiten de bundel",subscriptionFlexibility:"Abonnement flexibiliteit",abroad:"In het buitenland",insideEu:"Binnen de EU",outsideEu:"Buiten de EU",minutesToEu:"Minuten van NL naar EU",upgradeBundle:"Bundel verhogen",downgradeBundle:"Bundel verlagen",dataExceedance:"Data overschrijding",bundleExceedanceRates:"Buitenbundeltarieven",bundleExceedanceRateCeiling:"Kostenplafond",bundleExceedanceWarning:"Tegoedmelding",bundleExceedanceMinutesRounding:"Afronding belminuten",channelsDescription:"Je ontvangt de volgende {{channelsCount}} TV-zenders bij dit abonnement:",moreInformation:"Meer informatie",deviceBundle:"Toestelbundel",installationFee:"installatiekosten",activationFee:"aansluitkosten",cashback:"Cashback",priceWithoutSubscription:"Prijs zonder abonnement",priceWithSubscription:"Prijs met abonnement",devicePrice:"Bijbetaling toestel",costPerContractTermTitle:"Gemiddeld per maand",costPerContractTermSubtitle:"Totale kosten gedeeld door contractduur",deviceDiscountTitle:"Toestelkorting",deviceDiscountSubtitle:"Korting t.o.v. losse telefoon + sim only",totalCostsOverTerm:"Totale kosten over 1 maand",totalCostsOverTerm_other:"Totale kosten over {{count}} maanden",totalDeviceDiscount:"Totale toestelkorting"},phoneSelector:{phone:"Telefoon",selectPhone:"Kies een telefoon",selectBrand:"Kies een merk",searchPlaceholder:"Zoek op merk of model",popular:"Populair",allBrands:"Alle merken",selectVersion:"Kies een versie",selectColor:"Kies een kleur"},modificationBlocks:{"mobile/odido":"Één of meer mobiele abonnementen","mobile/vodafone":"Één of meer mobiele abonnementen","segment/vodafone/young":"Ik ben jonger dan 28 jaar","segment/vodafone/unlimited":"Vodafone Unlimited abonnement op mijn adres","mobile/kpn":"Een ander mobiel abonnement van KPN","mobile/ben":"Één of meer mobiele abonnementen","mobile/50plusmobiel":"Één of meer mobiele abonnementen","mobile/hollandsnieuwe":"Één of meer mobiele abonnementen","mobile/budget":"Één of meer mobiele abonnementen","mobile/youfone":"Één of meer mobiele abonnementen","mobile/delta":"Één of meer mobiele abonnementen"}};Q.use(pE).init({resources:{nl:{translation:$E},en:{translation:PE}},lng:"nl",fallbackLng:"nl",interpolation:{escapeValue:!1},react:{useSuspense:!1}});function EE(e){return Q.changeLanguage(e)}function $g(e,t){const r={...e};for(const n in t){const o=t[n];o!==void 0&&typeof o=="object"&&!Array.isArray(o)&&o!==null&&n in e?r[n]=$g(e[n],o):o!==void 0&&(r[n]=o)}return r}function TE(e,t){const r=Q.getResourceBundle(e,"translation")||{},n=$g(r,t);Q.addResourceBundle(e,"translation",n,!0,!0)}function Eg({children:e,className:t,translations:r,locale:n="nl"}){const o=r?JSON.stringify(r):void 0;return g.useEffect(()=>{if(r)for(const[s,a]of Object.entries(r))TE(s,a)},[o]),g.useEffect(()=>{n!==Q.language&&EE(n)},[n]),f.jsx(xE,{i18n:Q,children:f.jsx("div",{className:"mobielnl-elements",children:f.jsx("div",{className:P("bg-background text-foreground antialiased",t),children:e})})})}function DE({withShadowDOM:e,...t}){if(!e)return f.jsx(Eg,{...t});const r=typeof e=="object"?e:void 0;return f.jsx(SE,{css:r?.css,cssUrl:r?.cssUrl,children:f.jsx(Eg,{...t})})}function _E(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function IE(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Ql=typeof window<"u",Tg=function(e){g.useEffect(e,[])},AE=function(e){var t=g.useRef(e);t.current=e,Tg(function(){return function(){return t.current()}})},NE=function(e){var t=g.useRef(0),r=g.useState(e),n=r[0],o=r[1],s=g.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a)})},[]);return AE(function(){cancelAnimationFrame(t.current)}),[n,s]},Dg=function(e){var t={},r=t.initialWidth,n=r===void 0?1/0:r,o=t.initialHeight,s=o===void 0?1/0:o,a=t.onChange,i=NE({width:Ql?window.innerWidth:n,height:Ql?window.innerHeight:s}),l=i[0],u=i[1];return g.useEffect(function(){if(Ql){var c=function(){var d=window.innerWidth,p=window.innerHeight;u({width:d,height:p}),a&&a(d,p)};return _E(window,"resize",c),function(){IE(window,"resize",c)}}},[]),l};function ME({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Right Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14m0 0-6 6m6-6-6-6",stroke:e})]})}function OE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Arrow Up Down Icon"}),f.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function jE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Badge Hd Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 15V9m3 6V9m-3 3h3M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm11 2v6h1a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2z",stroke:e})]})}function FE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Broadcast Icon"}),f.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function _g({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Calculator Icon"}),f.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function BE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Down Icon"}),f.jsx("path",{d:"M6 9L12 15L18 9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function zE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Chevron Right Icon"}),f.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function LE({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Circle Check Filled Icon"}),f.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function VE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Clock Hour Icon"}),f.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function eu({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Device Mobile Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z"}),f.jsx("path",{d:"M11 4h2"}),f.jsx("path",{d:"M12 17v.01"})]})}function RE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device Remote Icon"}),f.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function KE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Device TV Icon"}),f.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function tu({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Discount Icon"}),f.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function WE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||n||24,height:t||r||24,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:o,style:s,...a,children:[f.jsx("title",{children:"Edit Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),f.jsx("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),f.jsx("path",{d:"M16 5l3 3"})]})}function ts({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"External Link Icon"}),f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M11 13l9 -9",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M15 4h5v5",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ig({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Filters Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function UE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Gauge Icon"}),f.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ag({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{d:"M19 12H21L12 3L3 12H5V19C5 19.5304 5.21071 20.0391 5.58579 20.4142C5.96086 20.7893 6.46957 21 7 21H12.5M9 21V15C9 14.4696 9.21071 13.9609 9.58579 13.5858C9.96086 13.2107 10.4696 13 11 13H13C13.58 13 14.103 13.247 14.468 13.642M19 18V18.01M21.121 20.1212C21.5406 19.7016 21.8265 19.1671 21.9423 18.5851C22.0581 18.0031 21.9988 17.3999 21.7717 16.8517C21.5447 16.3034 21.1602 15.8348 20.6668 15.5052C20.1734 15.1755 19.5934 14.9995 19 14.9995C18.4066 14.9995 17.8266 15.1755 17.3332 15.5052C16.8398 15.8348 16.4553 16.3034 16.2283 16.8517C16.0012 17.3999 15.9419 18.0031 16.0577 18.5851C16.1735 19.1671 16.4594 19.7016 16.879 20.1212C17.297 20.5402 18.004 21.1662 19 22.0002C20.051 21.1102 20.759 20.4842 21.121 20.1212Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function HE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Move Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m4-3h2l-9-9-9 9h2v7a2 2 0 0 0 2 2h5.5m3.5-2h6m0 0-3-3m3 3-3 3"})]})}function qE({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...a}){return f.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:s,...a,children:[f.jsx("title",{children:"X Icon"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6l-12 12"}),f.jsx("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6l12 12"})]})}function Ng({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"Home Location Icon"}),f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 18h.01m-2.838-2.828a4 4 0 0 1 5.656 0m-8.485-2.829a8 8 0 0 1 11.314 0M3.515 9.515c4.686-4.687 12.284-4.687 17 0"})]})}function GE({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:a,...i}){return f.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:a,...i,children:[f.jsx("title",{children:"World Icon"}),f.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}var ZE=()=>f.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[f.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),f.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function gn(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=At.createContext(void 0);o.displayName=n;function s(){var a;const i=At.useContext(o);if(!i&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,s),l}return i}return[o.Provider,s,o]}function YE(e){return{UNSAFE_getDOMNode(){return e.current}}}function Pe(e){const t=g.useRef(null);return g.useImperativeHandle(e,()=>t.current),t}function JE(e,t){if(e!=null){if(g$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ru(...e){return t=>{e.forEach(r=>JE(r,t))}}function XE(){const e=()=>()=>{};return At.useSyncExternalStore(e,()=>!0,()=>!1)}var QE=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),e5=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Mg=/^(data-.*)$/,t5=/^(aria-.*)$/,va=/^(on[A-Z].*)$/;function Fe(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:a,omitDataProps:i,omitEventProps:l}=t,u={};if(!n)return e;for(const c in e)s?.has(c)||a?.has(c)&&va.test(c)||va.test(c)&&!e5.has(c)||i&&Mg.test(c)||l&&va.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(QE.has(c)||r&&t5.test(c)||o?.has(c)||Mg.test(c))||va.test(c))&&(u[c]=e[c]);return u}function nu({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):At.createElement(e,t)}var[kR,r5]=gn({name:"AvatarGroupContext",strict:!1}),[PR,tt]=gn({name:"ProviderContext",strict:!1});const n5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function s5(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return n5.has(r.script)}let t=e.split("-")[0];return o5.has(t)}const ya={prefix:String(Math.round(Math.random()*1e10)),current:0},Og=g.createContext(ya),a5=g.createContext(!1);let i5=!!(typeof window<"u"&&window.document&&window.document.createElement),ou=new WeakMap;function l5(e=!1){let t=g.useContext(Og),r=g.useRef(null);if(r.current===null&&!e){var n,o;let s=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(s){let a=ou.get(s);a==null?ou.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,ou.delete(s))}r.current=++t.current}return r.current}function u5(e){let t=g.useContext(Og);t===ya&&!i5&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=l5(!!e),n=t===ya&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function c5(e){let t=g.useId(),[r]=g.useState(Qn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ya.prefix}`;return e||`${n}-${t}`}const d5=typeof g.useId=="function"?c5:u5;function f5(){return!1}function p5(){return!0}function h5(e){return()=>{}}function Qn(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(h5,f5,p5):g.useContext(a5)}const jg=Symbol.for("react-aria.i18n.locale");function Fg(){let e=typeof window<"u"&&window[jg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:s5(e)?"rtl":"ltr"}}let su=Fg(),rs=new Set;function Bg(){su=Fg();for(let e of rs)e(su)}function m5(){let e=Qn(),[t,r]=g.useState(su);return g.useEffect(()=>(rs.size===0&&window.addEventListener("languagechange",Bg),rs.add(r),()=>{rs.delete(r),rs.size===0&&window.removeEventListener("languagechange",Bg)}),[]),e?{locale:typeof window<"u"&&window[jg]||"en-US",direction:"ltr"}:t}const g5=g.createContext(null);function Ot(){let e=m5();return g.useContext(g5)||e}const b5=Symbol.for("react-aria.i18n.locale"),v5=Symbol.for("react-aria.i18n.strings");let eo;class xa{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=y5(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[b5];if(eo===void 0){let o=window[v5];if(!o)return null;eo={};for(let s in o)eo[s]=new xa({[r]:o[s]},r)}let n=eo?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function y5(e,t,r="en-US"){if(t[e])return t[e];let n=x5(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function x5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const zg=new Map,Lg=new Map;class w5{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+n,a=zg.get(s);a||(a=new Intl.PluralRules(this.locale,{type:n}),zg.set(s,a));let i=a.select(t);return o=r[i]||r.other,typeof o=="function"?o():o}number(t){let r=Lg.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Lg.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Vg=new WeakMap;function C5(e){let t=Vg.get(e);return t||(t=new xa(e),Vg.set(e,t)),t}function S5(e,t){return t&&xa.getGlobalDictionaryForPackage(t)||C5(e)}function Wr(e,t){let{locale:r}=Ot(),n=S5(e,t);return g.useMemo(()=>new w5(r,n),[r,n])}function k5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P5(e,t,r){k5(e,t),t.set(e,r)}const Be=typeof document<"u"?g.useLayoutEffect:()=>{};function $5(e){let[t,r]=g.useState(e),n=g.useRef(t),o=g.useRef(null),s=g.useRef(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}n.current===i.value?s.current():r(i.value)});Be(()=>{n.current=t,o.current&&s.current()});let a=g.useCallback(i=>{o.current=i(n.current),s.current()},[s]);return[t,a]}let E5=!!(typeof window<"u"&&window.document&&window.document.createElement),to=new Map,ns;typeof FinalizationRegistry<"u"&&(ns=new FinalizationRegistry(e=>{to.delete(e)}));function bt(e){let[t,r]=g.useState(e),n=g.useRef(null),o=d5(t),s=g.useRef(null);if(ns&&ns.register(s,o),E5){const a=to.get(o);a&&!a.includes(n)?a.push(n):to.set(o,[n])}return Be(()=>{let a=o;return()=>{ns&&ns.unregister(s),to.delete(a)}},[o]),g.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function T5(e,t){if(e===t)return e;let r=to.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=to.get(t);return n?(n.forEach(o=>o.current=e),e):t}function os(e=[]){let t=bt(),[r,n]=$5(t),o=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Be(o,[t,o,...e]),r}function Ur(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ae=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},kt=e=>e&&"window"in e&&e.window===e?e:Ae(e).defaultView||window;function D5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function _5(e){return D5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function We(e,t){if(!ba())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:_5(r)?r=r.host:r=r.parentNode}return!1}const xt=(e=document)=>{var t;if(!ba())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function je(e){return ba()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class I5{get currentNode(){return this._currentNode}set currentNode(t){if(!We(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,i=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),n=o=a.host}else n=n.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return We(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let s;if(typeof this.filter=="function"?s=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var i;if(typeof this.filter=="function")return this.filter(a);if(!((i=this.filter)===null||i===void 0)&&i.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const s=r.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function A5(e,t,r,n){return ba()?new I5(e,t,r,n):e.createTreeWalker(t,r,n)}function Rg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Rg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function N5(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Rg(e))&&(n&&(n+=" "),n+=t);return n}function Ce(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],a=n[o];typeof s=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ur(s,a):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[o]=N5(s,a):o==="id"&&s&&a?t.id=T5(s,a):t[o]=a!==void 0?a:s}}return t}const M5=new Set(["id"]),O5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),j5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),F5=new Set(["dir","lang","hidden","inert","translate"]),Kg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),B5=/^(data-.*)$/;function Bt(e,t={}){let{labelable:r,isLink:n,global:o,events:s=o,propNames:a}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(M5.has(l)||r&&O5.has(l)||n&&j5.has(l)||o&&F5.has(l)||s&&(Kg.has(l)||l.endsWith("Capture")&&Kg.has(l.slice(0,-7)))||a?.has(l)||B5.test(l))&&(i[l]=e[l]);return i}function Vt(e){if(z5())e.focus({preventScroll:!0});else{let t=L5(e);e.focus(),V5(t)}}let wa=null;function z5(){if(wa==null){wa=!1;try{document.createElement("div").focus({get preventScroll(){return wa=!0,!0}})}catch{}}return wa}function L5(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function V5(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Ca(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function au(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Er(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Hr=Er(function(){return au(/^Mac/i)}),R5=Er(function(){return au(/^iPhone/i)}),Wg=Er(function(){return au(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}),Sa=Er(function(){return R5()||Wg()}),K5=Er(function(){return Hr()||Sa()}),iu=Er(function(){return Ca(/AppleWebKit/i)&&!Ug()}),Ug=Er(function(){return Ca(/Chrome/i)}),ss=Er(function(){return Ca(/Android/i)}),W5=Er(function(){return Ca(/Firefox/i)}),U5=g.createContext({isNative:!0,open:q5,useHref:e=>e});function ka(){return g.useContext(U5)}function Tr(e,t,r=!0){var n,o;let{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}=t;W5()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Hr()?s=!0:a=!0);let u=iu()&&Hr()&&!Wg()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Tr.isOpening=r,Vt(e),e.dispatchEvent(u),Tr.isOpening=!1}Tr.isOpening=!1;function H5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function q5(e,t){H5(e,r=>Tr(r,t))}function G5(e){let t=ka();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Hg(e){let t=ka();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let qr=new Map,lu=new Set;function qg(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);o||(o=new Set,qr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=qr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),qr.delete(n.target)),qr.size===0)){for(let s of lu)s();lu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qg():document.addEventListener("DOMContentLoaded",qg));function Z5(){for(const[e]of qr)"isConnected"in e&&!e.isConnected&&qr.delete(e)}function Gg(e){requestAnimationFrame(()=>{Z5(),qr.size===0?e():lu.add(e)})}function bn(){let e=g.useRef(new Map),t=g.useCallback((o,s,a,i)=>{let l=i?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:s,eventTarget:o,fn:l,options:i}),o.addEventListener(s,l,i)},[]),r=g.useCallback((o,s,a,i)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(s,u,i),e.current.delete(a)},[]),n=g.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Pa(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=bt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}var uu;const Y5=(uu=g.useInsertionEffect)!==null&&uu!==void 0?uu:Be;function Pt(e){const t=g.useRef(null);return Y5(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function Zg(e,t){const r=g.useRef(!0),n=g.useRef(null);let o=Pt(e);g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),g.useEffect(()=>{let s=n.current;r.current?r.current=!1:(!s||t.some((a,i)=>!Object.is(a,s[i])))&&o(),n.current=t},t)}function Yg(e,t){const r=g.useRef(!0),n=g.useRef(null);Be(()=>(r.current=!0,()=>{r.current=!1}),[]),Be(()=>{r.current?r.current=!1:(!n.current||t.some((o,s)=>!Object.is(o,n[s])))&&e(),n.current=t},t)}function J5(){return typeof window.ResizeObserver<"u"}function Jg(e){const{ref:t,box:r,onResize:n}=e;let o=Pt(n);g.useEffect(()=>{let s=t?.current;if(s)if(J5()){const a=new window.ResizeObserver(i=>{i.length&&o()});return a.observe(s,{box:r}),()=>{s&&a.unobserve(s)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Xg(e,t){Be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Gr(e,t){let r=e;for(ro(r,t)&&(r=r.parentElement);r&&!ro(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function X5(e,t){const r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function no(e){return Hr()?e.metaKey:e.ctrlKey}const Q5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cu(e){return e instanceof HTMLInputElement&&!Q5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let eT=0;const du=new Map;function $a(e){let[t,r]=g.useState();return Be(()=>{if(!e)return;let n=du.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${eT++}`;r(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),n={refCount:0,element:s},du.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),du.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ea(e,t,r,n){let o=Pt(r),s=r==null;g.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,s])}function Qg(e,t){let r=eb(e,t,"left"),n=eb(e,t,"top"),o=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,i=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),m=a+parseInt(u,10),b=i+parseInt(l,10),v=m+e.clientWidth,y=b+e.clientHeight,x=parseInt(c,10)||0,w=parseInt(p,10)||0,C=parseInt(d,10)||0,S=parseInt(h,10)||0;r<=a+S?a=r-parseInt(u,10)-S:r+o>v-C&&(a+=r+o-v+C),n<=b+x?i=n-parseInt(l,10)-x:n+s>y-w&&(i+=n+s-y+w),e.scrollLeft=a,e.scrollTop=i}function eb(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Zr(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,i=window.getComputedStyle(a).overflow==="hidden";if(i){let l=X5(e);i||l.push(a);for(let u of l)Qg(u,e)}else{var r;let{left:l,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var n,o,s;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function fu(e){return e.pointerType===""&&e.isTrusted?!0:ss()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tT(e){return!ss()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ta(e,t,r){let n=Pt(()=>{r&&r(t)});g.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s?.addEventListener("reset",n),()=>{s?.removeEventListener("reset",n)}},[e])}const rT="react-aria-clear-focus",nT="react-aria-focus",oT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function sT(e){const t=kt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:i}=s(e);o=a!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function aT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function pu(e,t){return oT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&sT(e)&&aT(e,t)&&(!e.parentElement||pu(e.parentElement,e))}const hu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],iT=hu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const lT=hu.join(':not([hidden]):not([tabindex="-1"]),');function tb(e){return e.matches(iT)&&pu(e)&&!nb(e)}function rb(e){return e.matches(lT)&&pu(e)&&!nb(e)}function nb(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var mu;const uT=typeof document<"u"?(mu=g.useInsertionEffect)!==null&&mu!==void 0?mu:g.useLayoutEffect:()=>{};function hr(e,t,r){let[n,o]=g.useState(e||t),s=g.useRef(n),a=g.useRef(e!==void 0),i=e!==void 0;g.useEffect(()=>{let d=a.current;d!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let l=i?e:n;uT(()=>{s.current=l});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...p)=>{let h=typeof d=="function"?d(s.current):d;Object.is(s.current,h)||(s.current=h,o(h),u(),r?.(h,...p))},[r]);return[l,c]}function oo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Da(e,t){let r=e,n=0,o=t.toString(),s=o.toLowerCase().indexOf("e-");if(s>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let a=o.indexOf(".");a>=0&&(n=o.length-a)}if(n>0){let a=Math.pow(10,n);r=Math.round(r*a)/a}return r}function as(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,s=Da(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(Da(r/n,n))*n):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(Da((r-t)/n,n))*n),s=Da(s,n),s}let gu=new Map,bu=!1;try{bu=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let _a=!1;try{_a=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ob={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cT{format(t){let r="";if(!bu&&this.options.signDisplay!=null?r=fT(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!_a){var n;let{unit:o,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!o)return r;let i=(n=ob[o])===null||n===void 0?void 0:n[s];r+=i[a]||i.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!bu&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!_a&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=dT(t,r),this.options=r}}function dT(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!_a){var n;let{unit:a,unitDisplay:i="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=ob[a])===null||n===void 0)&&n[i]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${i}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():"");if(gu.has(o))return gu.get(o);let s=new Intl.NumberFormat(e,t);return gu.set(o,s),s}function fT(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),s=e.format(r),a=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(r)}}function sb(e={}){let{locale:t}=Ot();return g.useMemo(()=>new cT(t,e),[t,e])}let vu=new Map;function Ia(e){let{locale:t}=Ot(),r=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(vu.has(r))return vu.get(r);let n=new Intl.Collator(t,e);return vu.set(r,n),n}const ab=g.createContext({});function yu(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const xu=typeof window<"u",ib=xu?g.useLayoutEffect:g.useEffect,Aa=g.createContext(null);function pT(e,t){e.indexOf(t)===-1&&e.push(t)}function hT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Yr=(e,t,r)=>r>t?t:r<e?e:r;function wu(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let so=()=>{},Jr=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(so=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(wu(t,r))},Jr=(e,t,r)=>{if(!e)throw new Error(wu(t,r))});const Dr={},lb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function mT(e){return typeof e=="object"&&e!==null}const ub=e=>/^0[^.\s]+$/u.test(e);function Cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const ao=e=>e,gT=(e,t)=>r=>t(e(r)),Na=(...e)=>e.reduce(gT),cb=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class db{constructor(){this.subscriptions=[]}add(t){return pT(this.subscriptions,t),()=>hT(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _r=e=>e*1e3,or=e=>e/1e3;function fb(e,t){return t?e*(1e3/t):0}const pb=new Set;function Su(e,t,r){e||pb.has(t)||(console.warn(wu(t,r)),pb.add(t))}const hb=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,bT=1e-7,vT=12;function yT(e,t,r,n,o){let s,a,i=0;do a=t+(r-t)/2,s=hb(a,n,o)-e,s>0?r=a:t=a;while(Math.abs(s)>bT&&++i<vT);return a}function is(e,t,r,n){if(e===t&&r===n)return ao;const o=s=>yT(s,0,1,e,r);return s=>s===0||s===1?s:hb(o(s),t,n)}const mb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gb=e=>t=>1-e(1-t),bb=is(.33,1.53,.69,.99),ku=gb(bb),vb=mb(ku),yb=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Pu=e=>1-Math.sin(Math.acos(e)),xT=gb(Pu),xb=mb(Pu),wT=is(.42,0,1,1),CT=is(0,0,.58,1),wb=is(.42,0,.58,1),ST=e=>Array.isArray(e)&&typeof e[0]!="number",Cb=e=>Array.isArray(e)&&typeof e[0]=="number",Sb={linear:ao,easeIn:wT,easeInOut:wb,easeOut:CT,circIn:Pu,circInOut:xb,circOut:xT,backIn:ku,backInOut:vb,backOut:bb,anticipate:yb},kT=e=>typeof e=="string",kb=e=>{if(Cb(e)){Jr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return is(t,r,n,o)}else if(kT(e))return Jr(Sb[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Sb[e];return e},Ma=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function PT(e,t){let r=new Set,n=new Set,o=!1,s=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function l(c){a.has(c)&&(u.schedule(c),e()),c(i)}const u={schedule:(c,d=!1,p=!1)=>{const m=p&&o?r:n;return d&&a.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(i=c,o){s=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,s&&(s=!1,u.process(c))}};return u}const $T=40;function Pb(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=Ma.reduce((w,C)=>(w[C]=PT(s),w),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:h,postRender:m}=a,b=()=>{const w=Dr.useManualTiming?o.timestamp:performance.now();r=!1,Dr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(w-o.timestamp,$T),1)),o.timestamp=w,o.isProcessing=!0,i.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),h.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(b))},v=()=>{r=!0,n=!0,o.isProcessing||e(b)};return{schedule:Ma.reduce((w,C)=>{const S=a[C];return w[C]=(k,D=!1,$=!1)=>(r||v(),S.schedule(k,D,$)),w},{}),cancel:w=>{for(let C=0;C<Ma.length;C++)a[Ma[C]].cancel(w)},state:o,steps:a}}const{schedule:sr,cancel:$u,state:Oa}=Pb(typeof requestAnimationFrame<"u"?requestAnimationFrame:ao,!0);let ja;function ET(){ja=void 0}const zt={now:()=>(ja===void 0&&zt.set(Oa.isProcessing||Dr.useManualTiming?Oa.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(ET)}},$b=e=>t=>typeof t=="string"&&t.startsWith(e),Eb=$b("--"),TT=$b("var(--"),Eu=e=>TT(e)?DT.test(e.split("/*")[0].trim()):!1,DT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tb(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const io={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...io,transform:e=>Yr(0,1,e)},Fa={...io,default:1},us=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _T(e){return e==null}const IT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>r=>!!(typeof r=="string"&&IT.test(r)&&r.startsWith(e)||t&&!_T(r)&&Object.prototype.hasOwnProperty.call(r,t)),Db=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,s,a,i]=n.match(Tu);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(a),alpha:i!==void 0?parseFloat(i):1}},AT=e=>Yr(0,255,e),_u={...io,transform:e=>Math.round(AT(e))},vn={test:Du("rgb","red"),parse:Db("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+_u.transform(e)+", "+_u.transform(t)+", "+_u.transform(r)+", "+us(ls.transform(n))+")"};function NT(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Iu={test:Du("#"),parse:NT,transform:vn.transform},cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=cs("deg"),lo=cs("%"),le=cs("px"),MT=cs("vh"),OT=cs("vw"),_b={...lo,parse:e=>lo.parse(e)/100,transform:e=>lo.transform(e*100)},uo={test:Du("hsl","hue"),parse:Db("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lo.transform(us(t))+", "+lo.transform(us(r))+", "+us(ls.transform(n))+")"},ot={test:e=>vn.test(e)||Iu.test(e)||uo.test(e),parse:e=>vn.test(e)?vn.parse(e):uo.test(e)?uo.parse(e):Iu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vn.transform(e):uo.transform(e),getAnimatableNone:e=>{const t=ot.parse(e);return t.alpha=0,ot.transform(t)}},jT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FT(e){return isNaN(e)&&typeof e=="string"&&(e.match(Tu)?.length||0)+(e.match(jT)?.length||0)>0}const Ib="number",Ab="color",BT="var",zT="var(",Nb="${}",LT=/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 ds(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let s=0;const i=t.replace(LT,l=>(ot.test(l)?(n.color.push(s),o.push(Ab),r.push(ot.parse(l))):l.startsWith(zT)?(n.var.push(s),o.push(BT),r.push(l)):(n.number.push(s),o.push(Ib),r.push(parseFloat(l))),++s,Nb)).split(Nb);return{values:r,split:i,indexes:n,types:o}}function Mb(e){return ds(e).values}function Ob(e){const{split:t,types:r}=ds(e),n=t.length;return o=>{let s="";for(let a=0;a<n;a++)if(s+=t[a],o[a]!==void 0){const i=r[a];i===Ib?s+=us(o[a]):i===Ab?s+=ot.transform(o[a]):s+=o[a]}return s}}const VT=e=>typeof e=="number"?0:ot.test(e)?ot.getAnimatableNone(e):e;function RT(e){const t=Mb(e);return Ob(e)(t.map(VT))}const Qr={test:FT,parse:Mb,createTransformer:Ob,getAnimatableNone:RT};function Au(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function KT({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,s=0,a=0;if(!t)o=s=a=r;else{const i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;o=Au(l,i,e+1/3),s=Au(l,i,e),a=Au(l,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function Ba(e,t){return r=>r>0?t:e}const fs=(e,t,r)=>e+(t-e)*r,Nu=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},WT=[Iu,vn,uo],UT=e=>WT.find(t=>t.test(e));function jb(e){const t=UT(e);if(so(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===uo&&(r=KT(r)),r}const Fb=(e,t)=>{const r=jb(e),n=jb(t);if(!r||!n)return Ba(e,t);const o={...r};return s=>(o.red=Nu(r.red,n.red,s),o.green=Nu(r.green,n.green,s),o.blue=Nu(r.blue,n.blue,s),o.alpha=fs(r.alpha,n.alpha,s),vn.transform(o))},Mu=new Set(["none","hidden"]);function HT(e,t){return Mu.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qT(e,t){return r=>fs(e,t,r)}function Ou(e){return typeof e=="number"?qT:typeof e=="string"?Eu(e)?Ba:ot.test(e)?Fb:YT:Array.isArray(e)?Bb:typeof e=="object"?ot.test(e)?Fb:GT:Ba}function Bb(e,t){const r=[...e],n=r.length,o=e.map((s,a)=>Ou(s)(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=o[a](s);return r}}function GT(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Ou(e[o])(e[o],t[o]));return o=>{for(const s in n)r[s]=n[s](o);return r}}function ZT(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][n[s]],i=e.values[a]??0;r[o]=i,n[s]++}return r}const YT=(e,t)=>{const r=Qr.createTransformer(t),n=ds(e),o=ds(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Mu.has(e)&&!o.values.length||Mu.has(t)&&!n.values.length?HT(e,t):Na(Bb(ZT(n,o),o.values),r):(so(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ba(e,t))};function zb(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?fs(e,t,r):Ou(e)(e,t)}const JT=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>$u(t),now:()=>Oa.isProcessing?Oa.timestamp:zt.now()}},Lb=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let s=0;s<o;s++)n+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},za=2e4;function ju(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<za;)t+=r,n=e.next(t);return t>=za?1/0:t}function XT(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(ju(n),za);return{type:"keyframes",ease:s=>n.next(o*s).value/t,duration:or(o)}}const QT=5;function Vb(e,t,r){const n=Math.max(t-QT,0);return fb(r-e(n),t-n)}const Ze={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},Fu=.001;function e6({duration:e=Ze.duration,bounce:t=Ze.bounce,velocity:r=Ze.velocity,mass:n=Ze.mass}){let o,s;so(e<=_r(Ze.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Yr(Ze.minDamping,Ze.maxDamping,a),e=Yr(Ze.minDuration,Ze.maxDuration,or(e)),a<1?(o=u=>{const c=u*a,d=c*e,p=c-r,h=Bu(u,a),m=Math.exp(-d);return Fu-p/h*m},s=u=>{const d=u*a*e,p=d*r+r,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-d),b=Bu(Math.pow(u,2),a);return(-o(u)+Fu>0?-1:1)*((p-h)*m)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Fu+c*d},s=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const i=5/e,l=r6(o,s,i);if(e=_r(e),isNaN(l))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const t6=12;function r6(e,t,r){let n=r;for(let o=1;o<t6;o++)n=n-e(n)/t(n);return n}function Bu(e,t){return e*Math.sqrt(1-t*t)}const n6=["duration","bounce"],o6=["stiffness","damping","mass"];function Rb(e,t){return t.some(r=>e[r]!==void 0)}function s6(e){let t={velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,o6)&&Rb(e,n6))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,s=2*Yr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ze.mass,stiffness:o,damping:s}}else{const r=e6(e);t={...t,...r,mass:Ze.mass},t.isResolvedFromDuration=!0}return t}function La(e=Ze.visualDuration,t=Ze.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],i={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=s6({...r,velocity:-or(r.velocity||0)}),m=p||0,b=u/(2*Math.sqrt(l*c)),v=a-s,y=or(Math.sqrt(l/c)),x=Math.abs(v)<5;n||(n=x?Ze.restSpeed.granular:Ze.restSpeed.default),o||(o=x?Ze.restDelta.granular:Ze.restDelta.default);let w;if(b<1){const S=Bu(y,b);w=k=>{const D=Math.exp(-b*y*k);return a-D*((m+b*y*v)/S*Math.sin(S*k)+v*Math.cos(S*k))}}else if(b===1)w=S=>a-Math.exp(-y*S)*(v+(m+y*v)*S);else{const S=y*Math.sqrt(b*b-1);w=k=>{const D=Math.exp(-b*y*k),$=Math.min(S*k,300);return a-D*((m+b*y*v)*Math.sinh($)+S*v*Math.cosh($))/S}}const C={calculatedDuration:h&&d||null,next:S=>{const k=w(S);if(h)i.done=S>=d;else{let D=S===0?m:0;b<1&&(D=S===0?_r(m):Vb(w,S,k));const $=Math.abs(D)<=n,_=Math.abs(a-k)<=o;i.done=$&&_}return i.value=i.done?a:k,i},toString:()=>{const S=Math.min(ju(C),za),k=Lb(D=>C.next(S*D).value,S,30);return S+"ms "+k},toTransition:()=>{}};return C}La.applyToOptions=e=>{const t=XT(e,100,La);return e.ease=t.ease,e.duration=_r(t.duration),e.type="keyframes",e};function zu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:i,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=$=>i!==void 0&&$<i||l!==void 0&&$>l,m=$=>i===void 0?l:l===void 0||Math.abs(i-$)<Math.abs(l-$)?i:l;let b=r*t;const v=d+b,y=a===void 0?v:a(v);y!==v&&(b=y-d);const x=$=>-b*Math.exp(-$/n),w=$=>y+x($),C=$=>{const _=x($),N=w($);p.done=Math.abs(_)<=u,p.value=p.done?y:N};let S,k;const D=$=>{h(p.value)&&(S=$,k=La({keyframes:[p.value,m(p.value)],velocity:Vb(w,$,p.value),damping:o,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:$=>{let _=!1;return!k&&S===void 0&&(_=!0,C($),D($)),S!==void 0&&$>=S?k.next($-S):(!_&&C($),p)}}}function a6(e,t,r){const n=[],o=r||Dr.mix||zb,s=e.length-1;for(let a=0;a<s;a++){let i=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ao:t;i=Na(l,i)}n.push(i)}return n}function i6(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const s=e.length;if(Jr(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=a6(t,n,o),l=i.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=cb(e[d],e[d+1],c);return i[d](p)};return r?c=>u(Yr(e[0],e[s-1],c)):u}function l6(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=cb(0,t,n);e.push(fs(r,1,o))}}function u6(e){const t=[0];return l6(t,e.length-1),t}function c6(e,t){return e.map(r=>r*t)}function d6(e,t){return e.map(()=>t||wb).splice(0,e.length-1)}function co({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=ST(n)?n.map(kb):kb(n),s={done:!1,value:t[0]},a=c6(r&&r.length===t.length?r:u6(t),e),i=i6(a,t,{ease:Array.isArray(o)?o:d6(t,o)});return{calculatedDuration:e,next:l=>(s.value=i(l),s.done=l>=e,s)}}const f6=e=>e!==null;function Lu(e,{repeat:t,repeatType:r="loop"},n,o=1){const s=e.filter(f6),i=o<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!i||n===void 0?s[i]:n}const p6={decay:zu,inertia:zu,tween:co,keyframes:co,spring:La};function Kb(e){typeof e.type=="string"&&(e.type=p6[e.type])}class Vu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const h6=e=>e/100;class Ru extends Vu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==zt.now()&&this.tick(zt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Kb(t);const{type:r=co,repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:i}=t;const l=r||co;process.env.NODE_ENV!=="production"&&l!==co&&Jr(i.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`,"spring-two-frames"),l!==co&&typeof i[0]!="number"&&(this.mixKeyframes=Na(h6,zb(i[0],i[1])),i=[0,100]);const u=l({...t,keyframes:i});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=ju(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=u}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:h,type:m,onUpdate:b,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=n;if(d){const $=Math.min(this.currentTime,o)/i;let _=Math.floor($),N=$%1;!N&&$>=1&&(N=1),N===1&&_--,_=Math.min(_,d+1),!!(_%2)&&(p==="reverse"?(N=1-N,h&&(N-=h/i)):p==="mirror"&&(C=a)),w=Yr(0,1,N)*i}const S=x?{done:!1,value:c[0]}:C.next(w);s&&(S.value=s(S.value));let{done:k}=S;!x&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&m!==zu&&(S.value=Lu(c,this.options,v,this.speed)),b&&b(S.value),D&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return or(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(this.currentTime)}set time(t){t=_r(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=or(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=JT,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(zt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function m6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yn=e=>e*180/Math.PI,Ku=e=>{const t=yn(Math.atan2(e[1],e[0]));return Wu(t)},g6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ku,rotateZ:Ku,skewX:e=>yn(Math.atan(e[1])),skewY:e=>yn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),Wb=Ku,Ub=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Hb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),b6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ub,scaleY:Hb,scale:e=>(Ub(e)+Hb(e))/2,rotateX:e=>Wu(yn(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(yn(Math.atan2(-e[2],e[0]))),rotateZ:Wb,rotate:Wb,skewX:e=>yn(Math.atan(e[4])),skewY:e=>yn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uu(e){return e.includes("scale")?1:0}function Hu(e,t){if(!e||e==="none")return Uu(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=b6,o=r;else{const i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=g6,o=i}if(!o)return Uu(t);const s=n[t],a=o[1].split(",").map(y6);return typeof s=="function"?s(a):a[s]}const v6=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Hu(r,t)};function y6(e){return parseFloat(e.trim())}const fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(fo),qb=e=>e===io||e===le,x6=new Set(["x","y","z"]),w6=fo.filter(e=>!x6.has(e));function C6(e){const t=[];return w6.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const en={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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})=>Hu(t,"x"),y:(e,{transform:t})=>Hu(t,"y")};en.translateX=en.x,en.translateY=en.y;const xn=new Set;let qu=!1,Gu=!1,Zu=!1;function Gb(){if(Gu){const e=Array.from(xn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=C6(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([s,a])=>{n.getValue(s)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Gu=!1,qu=!1,xn.forEach(e=>e.complete(Zu)),xn.clear()}function Zb(){xn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function S6(){Zu=!0,Zb(),Gb(),Zu=!1}class Yu{constructor(t,r,n,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(xn.add(this),qu||(qu=!0,sr.read(Zb),sr.resolveKeyframes(Gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const i=n.readValue(r,a);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}m6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xn.delete(this)}cancel(){this.state==="scheduled"&&(xn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const k6=e=>e.startsWith("--");function P6(e,t,r){k6(t)?e.style.setProperty(t,r):e.style[t]=r}const $6=Cu(()=>window.ScrollTimeline!==void 0),E6={};function T6(e,t){const r=Cu(e);return()=>E6[t]??r()}const Yb=T6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ps=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Jb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ps([0,.65,.55,1]),circOut:ps([.55,0,1,.45]),backIn:ps([.31,.01,.66,-.59]),backOut:ps([.33,1.53,.69,.99])};function Xb(e,t){if(e)return typeof e=="function"?Yb()?Lb(e,t):"ease-out":Cb(e)?ps(e):Array.isArray(e)?e.map(r=>Xb(r,t)||Jb.easeOut):Jb[e]}function D6(e,t,r,{delay:n=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:i="easeOut",times:l}={},u=void 0){const c={[t]:r};l&&(c.offset=l);const d=Xb(i,o);Array.isArray(d)&&(c.easing=d);const p={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function Qb(e){return typeof e=="function"&&"applyToOptions"in e}function _6({type:e,...t}){return Qb(e)&&Yb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class I6 extends Vu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Jr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=_6(t);this.animation=D6(r,n,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Lu(o,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):P6(r,n,c),this.animation.cancel()}l?.(),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;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return or(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+or(t)}get time(){return or(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_r(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$6()?(this.animation.timeline=t,ao):r(this)}}const ev={anticipate:yb,backInOut:vb,circInOut:xb};function A6(e){return e in ev}function N6(e){typeof e.ease=="string"&&A6(e.ease)&&(e.ease=ev[e.ease])}const Ju=10;class M6 extends I6{constructor(t){N6(t),Kb(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:s,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const i=new Ru({...a,autoplay:!1}),l=Math.max(Ju,zt.now()-this.startTime),u=Yr(0,Ju,l-Ju);r.setWithVelocity(i.sample(Math.max(0,l-u)).value,i.sample(l).value,u),i.stop()}}const tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function O6(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function j6(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=tv(o,t),i=tv(s,t);return so(a===i,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!i?!1:O6(e)||(r==="spring"||Qb(r))&&n}function Xu(e){e.duration=0,e.type="keyframes"}const F6=new Set(["opacity","clipPath","filter","transform"]),B6=Cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z6(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return B6()&&r&&F6.has(r)&&(r!=="transform"||!u)&&!l&&!n&&o!=="mirror"&&s!==0&&a!=="inertia"}const L6=40;class V6 extends Vu{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:i,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=zt.now();const p={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:s,repeatType:a,name:l,motionValue:u,element:c,...d},h=c?.KeyframeResolver||Yu;this.keyframeResolver=new h(i,(m,b,v)=>this.onKeyframesResolved(m,b,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:i,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=zt.now(),j6(t,s,a,i)||((Dr.instantAnimations||!l)&&c?.(Lu(t,n,r)),t[0]=t[t.length-1],Xu(n),n.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>L6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!u&&z6(p)?new M6({...p,element:p.motionValue.owner.current}):new Ru(p);h.finished.then(()=>this.notifyFinished()).catch(ao),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const R6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K6(e){const t=R6.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const W6=4;function rv(e,t,r=1){Jr(r<=W6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=K6(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const a=s.trim();return lb(a)?parseFloat(a):a}return Eu(o)?rv(o,t,r+1):o}function nv(e,t){return e?.[t]??e?.default??e}const ov=new Set(["width","height","top","left","right","bottom",...fo]),U6={test:e=>e==="auto",parse:e=>e},sv=e=>t=>t.test(e),av=[io,le,lo,Xr,OT,MT,U6],iv=e=>av.find(sv(e));function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}const q6=new Set(["brightness","contrast","saturate","opacity"]);function G6(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Tu)||[];if(!n)return e;const o=r.replace(n,"");let s=q6.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+o+")"}const Z6=/\b([a-z-]*)\(.*?\)/gu,Qu={...Qr,getAnimatableNone:e=>{const t=e.match(Z6);return t?t.map(G6).join(" "):e}},lv={...io,transform:Math.round},ec={borderWidth:le,borderTopWidth:le,borderRightWidth:le,borderBottomWidth:le,borderLeftWidth:le,borderRadius:le,radius:le,borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomRightRadius:le,borderBottomLeftRadius:le,width:le,maxWidth:le,height:le,maxHeight:le,top:le,right:le,bottom:le,left:le,inset:le,insetBlock:le,insetBlockStart:le,insetBlockEnd:le,insetInline:le,insetInlineStart:le,insetInlineEnd:le,padding:le,paddingTop:le,paddingRight:le,paddingBottom:le,paddingLeft:le,paddingBlock:le,paddingBlockStart:le,paddingBlockEnd:le,paddingInline:le,paddingInlineStart:le,paddingInlineEnd:le,margin:le,marginTop:le,marginRight:le,marginBottom:le,marginLeft:le,marginBlock:le,marginBlockStart:le,marginBlockEnd:le,marginInline:le,marginInlineStart:le,marginInlineEnd:le,backgroundPositionX:le,backgroundPositionY:le,...{rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:Fa,scaleX:Fa,scaleY:Fa,scaleZ:Fa,skew:Xr,skewX:Xr,skewY:Xr,distance:le,translateX:le,translateY:le,translateZ:le,x:le,y:le,z:le,perspective:le,transformPerspective:le,opacity:ls,originX:_b,originY:_b,originZ:le},zIndex:lv,fillOpacity:ls,strokeOpacity:ls,numOctaves:lv},Y6={...ec,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Qu,WebkitFilter:Qu},uv=e=>Y6[e];function cv(e,t){let r=uv(e);return r!==Qu&&(r=Qr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const J6=new Set(["auto","none","0"]);function X6(e,t,r){let n=0,o;for(;n<e.length&&!o;){const s=e[n];typeof s=="string"&&!J6.has(s)&&ds(s).values.length&&(o=e[n]),n++}if(o&&r)for(const s of t)e[s]=cv(r,o)}class Q6 extends Yu{constructor(t,r,n,o,s){super(t,r,n,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Eu(d))){const p=rv(d,r.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ov.has(n)||t.length!==2)return;const[o,s]=t,a=iv(o),i=iv(s),l=Tb(o),u=Tb(s);if(l!==u&&en[n]){this.needsMeasurement=!0;return}if(a!==i)if(qb(a)&&qb(i))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else en[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||H6(t[o]))&&n.push(o);n.length&&X6(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=en[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=n.length-1,a=n[s];n[s]=en[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}}function e9(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const dv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fv(e){return mT(e)&&"offsetHeight"in e}const pv=30,t9=e=>!isNaN(parseFloat(e));class r9{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=zt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=zt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=t9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Su(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new db);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,pv);return fb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Va(e,t){return new r9(e,t)}const{schedule:n9}=Pb(queueMicrotask,!1),o9={y:!1};function s9(){return o9.y}function hv(e,t){const r=e9(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function mv(e){return!(e.pointerType==="touch"||s9())}function a9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{if(!mv(i))return;const{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;const c=d=>{mv(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return n.forEach(i=>{i.addEventListener("pointerenter",a,o)}),s}const gv=(e,t)=>t?e===t?!0:gv(e,t.parentElement):!1,i9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,l9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function u9(e){return l9.has(e.tagName)||e.isContentEditable===!0}const Ra=new WeakSet;function bv(e){return t=>{t.key==="Enter"&&e(t)}}function tc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const c9=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=bv(()=>{if(Ra.has(r))return;tc(r,"down");const o=bv(()=>{tc(r,"up")}),s=()=>tc(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function vv(e){return i9(e)&&!0}function d9(e,t,r={}){const[n,o,s]=hv(e,r),a=i=>{const l=i.currentTarget;if(!vv(i))return;Ra.add(l);const u=t(l,i),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Ra.has(l)&&Ra.delete(l),vv(h)&&typeof u=="function"&&u(h,{success:m})},d=h=>{c(h,l===window||l===document||r.useGlobalTarget||gv(l,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",p,o)};return n.forEach(i=>{(r.useGlobalTarget?window:i).addEventListener("pointerdown",a,o),fv(i)&&(i.addEventListener("focus",u=>c9(u,o)),!u9(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),s}const $t=e=>!!(e&&e.getVelocity),f9=[...av,ot,Qr],p9=e=>f9.find(sv(e)),rc=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h9(...e){return t=>{let r=!1;const n=e.map(o=>{const s=yv(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():yv(e[o],null)}}}}function m9(...e){return At.useCallback(h9(...e),e)}class g9 extends At.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=fv(n)&&n.offsetWidth||0,s=this.props.sizeRef.current;s.height=r.offsetHeight||0,s.width=r.offsetWidth||0,s.top=r.offsetTop,s.left=r.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function b9({children:e,isPresent:t,anchorX:r,root:n}){const o=g.useId(),s=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=g.useContext(rc),l=e.props?.ref??e?.ref,u=m9(s,l);return g.useInsertionEffect(()=>{const{width:c,height:d,top:p,left:h,right:m}=a.current;if(t||!s.current||!c||!d)return;const b=r==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");i&&(v.nonce=i);const y=n??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
39
39
|
[data-motion-pop-id="${o}"] {
|
|
40
40
|
position: absolute !important;
|
|
41
41
|
width: ${c}px !important;
|
|
@@ -43,33 +43,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
43
43
|
${b}px !important;
|
|
44
44
|
top: ${p}px !important;
|
|
45
45
|
}
|
|
46
|
-
`),()=>{y.contains(v)&&y.removeChild(v)}},[t]),f.jsx(g9,{isPresent:t,childRef:s,sizeRef:a,children:At.cloneElement(e,{ref:u})})}const v9=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:s,mode:a,anchorX:i,root:l})=>{const u=yu(y9),c=g.useId();let d=!0,p=g.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:r,custom:o,onExitComplete:h=>{u.set(h,!0);for(const m of u.values())if(!m)return;n&&n()},register:h=>(u.set(h,!1),()=>u.delete(h))}),[r,u,n]);return s&&d&&(p={...p}),g.useMemo(()=>{u.forEach((h,m)=>u.set(m,!1))},[r]),At.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),a==="popLayout"&&(e=f.jsx(b9,{isPresent:r,anchorX:i,root:l,children:e})),f.jsx(Aa.Provider,{value:p,children:e})};function y9(){return new Map}function x9(e=!0){const t=g.useContext(Aa);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,s=g.useId();g.useEffect(()=>{if(e)return o(s)},[e]);const a=g.useCallback(()=>e&&n&&n(s),[s,n,e]);return!r&&n?[!1,a]:[!0]}const Ka=e=>e.key||"";function xv(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const Wa=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1,anchorX:i="left",root:l})=>{const[u,c]=x9(a),d=g.useMemo(()=>xv(e),[e]),p=a&&!u?[]:d.map(Ka),h=g.useRef(!0),m=g.useRef(d),b=yu(()=>new Map),v=g.useRef(new Set),[y,x]=g.useState(d),[w,C]=g.useState(d);ib(()=>{h.current=!1,m.current=d;for(let D=0;D<w.length;D++){const $=Ka(w[D]);p.includes($)?(b.delete($),v.current.delete($)):b.get($)!==!0&&b.set($,!1)}},[w,p.length,p.join("-")]);const S=[];if(d!==y){let D=[...d];for(let $=0;$<w.length;$++){const _=w[$],N=Ka(_);p.includes(N)||(D.splice($,0,_),S.push(_))}return s==="wait"&&S.length&&(D=S),C(xv(D)),x(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:k}=g.useContext(ab);return f.jsx(f.Fragment,{children:w.map(D=>{const $=Ka(D),_=a&&!u?!1:d===w||p.includes($),N=()=>{if(v.current.has($))return;if(v.current.add($),b.has($))b.set($,!0);else return;let A=!0;b.forEach(M=>{M||(A=!1)}),A&&(k?.(),C(m.current),a&&c?.(),n&&n())};return f.jsx(v9,{isPresent:_,initial:!h.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:_?void 0:N,anchorX:i,children:D},$)})})},nc=g.createContext({strict:!1}),wv={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"]},ho={};for(const e in wv)ho[e]={isEnabled:t=>wv[e].some(r=>!!t[r])};function oc(e){for(const t in e)ho[t]={...ho[t],...e[t]}}function mo({children:e,features:t,strict:r=!1}){const[,n]=g.useState(!sc(t)),o=g.useRef(void 0);if(!sc(t)){const{renderer:s,...a}=t;o.current=s,oc(a)}return g.useEffect(()=>{sc(t)&&t().then(({renderer:s,...a})=>{oc(a),o.current=s,n(!0)})},[]),f.jsx(nc.Provider,{value:{renderer:o.current,strict:r},children:e})}function sc(e){return typeof e=="function"}const w9=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","ignoreStrict","viewport"]);function Ua(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||w9.has(e)}let Cv=e=>!Ua(e);function C9(e){typeof e=="function"&&(Cv=t=>t.startsWith("on")?!Ua(t):e(t))}try{C9(require("@emotion/is-prop-valid").default)}catch{}function S9(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Cv(o)||r===!0&&Ua(o)||!t&&!Ua(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const Ha=g.createContext({});function qa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hs(e){return typeof e=="string"||Array.isArray(e)}const ac=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ic=["initial",...ac];function Ga(e){return qa(e.animate)||ic.some(t=>hs(e[t]))}function Sv(e){return!!(Ga(e)||e.variants)}function k9(e,t){if(Ga(e)){const{initial:r,animate:n}=e;return{initial:r===!1||hs(r)?r:void 0,animate:hs(n)?n:void 0}}return e.inherit!==!1?t:{}}function P9(e){const{initial:t,animate:r}=k9(e,g.useContext(Ha));return g.useMemo(()=>({initial:t,animate:r}),[kv(t),kv(r)])}function kv(e){return Array.isArray(e)?e.join(" "):e}function Pv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ms={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(le.test(e))e=parseFloat(e);else return e;const r=Pv(e,t.target.x),n=Pv(e,t.target.y);return`${r}% ${n}%`}},$9={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Qr.parse(e);if(o.length>5)return n;const s=Qr.createTransformer(e),a=typeof o[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=i,o[1+a]/=l;const u=fs(i,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),s(o)}},E9={borderRadius:{...ms,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ms,borderTopRightRadius:ms,borderBottomLeftRadius:ms,borderBottomRightRadius:ms,boxShadow:$9};function $v(e,{layout:t,layoutId:r}){return po.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!E9[e]||e==="opacity")}const T9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D9=fo.length;function _9(e,t,r){let n="",o=!0;for(let s=0;s<D9;s++){const a=fo[s],i=e[a];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(a.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||r){const u=dv(i,ec[a]);if(!l){o=!1;const c=T9[a]||a;n+=`${c}(${u}) `}r&&(t[a]=u)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function lc(e,t,r){const{style:n,vars:o,transformOrigin:s}=e;let a=!1,i=!1;for(const l in t){const u=t[l];if(po.has(l)){a=!0;continue}else if(Eb(l)){o[l]=u;continue}else{const c=dv(u,ec[l]);l.startsWith("origin")?(i=!0,s[l]=c):n[l]=c}}if(t.transform||(a||r?n.transform=_9(t,e.transform,r):n.transform&&(n.transform="none")),i){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;n.transformOrigin=`${l} ${u} ${c}`}}const uc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ev(e,t,r){for(const n in t)!$t(t[n])&&!$v(n,r)&&(e[n]=t[n])}function I9({transformTemplate:e},t){return g.useMemo(()=>{const r=uc();return lc(r,t,e),Object.assign({},r.vars,r.style)},[t])}function A9(e,t){const r=e.style||{},n={};return Ev(n,r,e),Object.assign(n,I9(e,t)),n}function N9(e,t){const r={},n=A9(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const M9={offset:"stroke-dashoffset",array:"stroke-dasharray"},O9={offset:"strokeDashoffset",array:"strokeDasharray"};function j9(e,t,r=1,n=0,o=!0){e.pathLength=1;const s=o?M9:O9;e[s.offset]=le.transform(-n);const a=le.transform(t),i=le.transform(r);e[s.array]=`${a} ${i}`}const F9=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Tv(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...i},l,u,c){if(lc(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox);for(const h of F9)d[h]!==void 0&&(p[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&j9(d,o,s,a,!1)}const Dv=()=>({...uc(),attrs:{}}),_v=e=>typeof e=="string"&&e.toLowerCase()==="svg";function B9(e,t,r,n){const o=g.useMemo(()=>{const s=Dv();return Tv(s,t,_v(n),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ev(s,e.style,e),o.style={...s,...o.style}}return o}const z9=["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 cc(e){return typeof e!="string"||e.includes("-")?!1:!!(z9.indexOf(e)>-1||/[A-Z]/u.test(e))}function L9(e,t,r,{latestValues:n},o,s=!1,a){const l=(a??cc(e)?B9:N9)(t,n,o,e),u=S9(t,typeof e=="string",s),c=e!==g.Fragment?{...u,...l,ref:r}:{},{children:d}=t,p=g.useMemo(()=>$t(d)?d.get():d,[d]);return g.createElement(e,{...c,children:p})}function Iv(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function dc(e,t,r,n){if(typeof t=="function"){const[o,s]=Iv(n);t=t(r!==void 0?r:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Iv(n);t=t(r!==void 0?r:e.custom,o,s)}return t}function V9(e){return $t(e)?e.get():e}function R9({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:K9(r,n,o,e),renderState:t()}}function K9(e,t,r,n){const o={},s=n(e,{});for(const p in s)o[p]=V9(s[p]);let{initial:a,animate:i}=e;const l=Ga(e),u=Sv(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),i===void 0&&(i=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?i:a;if(d&&typeof d!="boolean"&&!qa(d)){const p=Array.isArray(d)?d:[d];for(let h=0;h<p.length;h++){const m=dc(e,p[h]);if(m){const{transitionEnd:b,transition:v,...y}=m;for(const x in y){let w=y[x];if(Array.isArray(w)){const C=c?w.length-1:0;w=w[C]}w!==null&&(o[x]=w)}for(const x in b)o[x]=b[x]}}}return o}const Av=e=>(t,r)=>{const n=g.useContext(Ha),o=g.useContext(Aa),s=()=>R9(e,t,n,o);return r?s():yu(s)};function fc(e,t,r){const{style:n}=e,o={};for(const s in n)($t(n[s])||t.style&&$t(t.style[s])||$v(s,e)||r?.getValue(s)?.liveStyle!==void 0)&&(o[s]=n[s]);return o}const W9=Av({scrapeMotionValuesFromProps:fc,createRenderState:uc});function Nv(e,t,r){const n=fc(e,t,r);for(const o in e)if($t(e[o])||$t(t[o])){const s=fo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[s]=e[o]}return n}const U9=Av({scrapeMotionValuesFromProps:Nv,createRenderState:Dv}),H9=Symbol.for("motionComponentSymbol");function q9(e,t,r){const n=g.useRef(r);g.useInsertionEffect(()=>{n.current=r});const o=g.useRef(null);return g.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const a=n.current;if(typeof a=="function")if(s){const i=a(s);typeof i=="function"&&(o.current=i)}else o.current?(o.current(),o.current=null):a(s);else a&&(a.current=s)},[t])}const pc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Mv="data-"+pc("framerAppearId"),G9=g.createContext({});function Z9(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Y9(e,t,r,n,o,s){const{visualElement:a}=g.useContext(Ha),i=g.useContext(nc),l=g.useContext(Aa),u=g.useContext(rc).reducedMotion,c=g.useRef(null);n=n||i.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}));const d=c.current,p=g.useContext(G9);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&J9(c.current,r,o,p);const h=g.useRef(!1);g.useInsertionEffect(()=>{d&&h.current&&d.update(r,l)});const m=r[Mv],b=g.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return ib(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),b.current&&d.animationState&&d.animationState.animateChanges())}),g.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),b.current=!1),d.enteringChildren=void 0)}),d}function J9(e,t,r,n){const{layoutId:o,layout:s,drag:a,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Ov(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!a||i&&Z9(i),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u})}function Ov(e){if(e)return e.options.allowProjection!==!1?e.projection:Ov(e.parent)}function hc(e,{forwardMotionProps:t=!1,type:r}={},n,o){n&&oc(n);const s=r?r==="svg":cc(e),a=s?U9:W9;function i(u,c){let d;const p={...g.useContext(rc),...u,layoutId:X9(u)},{isStatic:h}=p,m=P9(u),b=a(u,h);if(!h&&xu){Q9(p,n);const v=eD(p);d=v.MeasureLayout,m.visualElement=Y9(e,b,p,o,v.ProjectionNode,s)}return f.jsxs(Ha.Provider,{value:m,children:[d&&m.visualElement?f.jsx(d,{visualElement:m.visualElement,...p}):null,L9(e,u,q9(b,m.visualElement,c),b,h,t,s)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=g.forwardRef(i);return l[H9]=e,l}function X9({layoutId:e}){const t=g.useContext(ab).id;return t&&e!==void 0?t+"-"+e:e}function Q9(e,t){const r=g.useContext(nc).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?so(!1,n,"lazy-strict-mode"):Jr(!1,n,"lazy-strict-mode")}}function eD(e){const{drag:t,layout:r}=ho;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function tD(e,t){if(typeof Proxy>"u")return hc;const r=new Map,n=(s,a)=>hc(s,a,e,t),o=(s,a)=>(process.env.NODE_ENV!=="production"&&Su(!1,"motion() is deprecated. Use motion.create() instead."),n(s,a));return new Proxy(o,{get:(s,a)=>a==="create"?n:(r.has(a)||r.set(a,hc(a,void 0,e,t)),r.get(a))})}const go=tD();function rD({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nD(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function oD(e,t){return rD(nD(e.getBoundingClientRect(),t))}const jv=()=>({min:0,max:0}),Fv=()=>({x:jv(),y:jv()}),mc={current:null},Bv={current:!1};function sD(){if(Bv.current=!0,!!xu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mc.current=e.matches;e.addEventListener("change",t),t()}else mc.current=!1}const aD=new WeakMap;function iD(e,t,r){for(const n in t){const o=t[n],s=r[n];if($t(o))e.addValue(n,o);else if($t(s))e.addValue(n,Va(o,{owner:e}));else if(s!==o)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(n);e.addValue(n,Va(a!==void 0?a:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const zv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lD{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:s,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const p=zt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,sr.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!s,this.isControllingVariants=Ga(r),this.isVariantNode=Sv(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in d){const h=d[p];l[p]!==void 0&&$t(h)&&h.set(l[p])}}mount(t){this.current=t,aD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Bv.current||sD(),this.shouldReduceMotion=mc.current),process.env.NODE_ENV!=="production"&&Su(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$u(this.notifyUpdate),$u(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=po.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&sr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ho){const r=ho[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fv()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<zv.length;n++){const o=zv[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,a=t[s];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=iD(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Va(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(lb(n)||ub(n))?n=parseFloat(n):!p9(n)&&Qr.test(r)&&(n=cv(t,r)),this.setBaseTarget(t,$t(n)?n.get():n)),$t(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const s=dc(this.props,r,this.presenceContext?.custom);s&&(n=s[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!$t(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new db),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){n9.render(this.render)}}class Lv extends lD{constructor(){super(...arguments),this.KeyframeResolver=Q6}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$t(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function Vv(e,{style:t,vars:r},n,o){const s=e.style;let a;for(a in t)s[a]=t[a];o?.applyProjectionStyles(s,n);for(a in r)s.setProperty(a,r[a])}function uD(e){return window.getComputedStyle(e)}class cD extends Lv{constructor(){super(...arguments),this.type="html",this.renderInstance=Vv}readValueFromInstance(t,r){if(po.has(r))return this.projection?.isProjecting?Uu(r):v6(t,r);{const n=uD(t),o=(Eb(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return oD(t,r)}build(t,r,n){lc(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return fc(t,r,n)}}const Rv=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"]);function dD(e,t,r,n){Vv(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Rv.has(o)?o:pc(o),t.attrs[o])}class fD extends Lv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fv}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(po.has(r)){const n=uv(r);return n&&n.default||0}return r=Rv.has(r)?r:pc(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Nv(t,r,n)}build(t,r,n){Tv(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){dD(t,r,n,o)}mount(t){this.isSVGTag=_v(t.tagName),super.mount(t)}}const pD=(e,t)=>t.isSVG??cc(e)?new fD(t):new cD(t,{allowProjection:e!==g.Fragment});function bo(e,t,r){const n=e.getProps();return dc(n,t,r!==void 0?r:n.custom,e)}const gc=e=>Array.isArray(e);function hD(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Va(r))}function mD(e){return gc(e)?e[e.length-1]||0:e}function gD(e,t){const r=bo(e,t);let{transitionEnd:n={},transition:o={},...s}=r||{};s={...s,...n};for(const a in s){const i=mD(s[a]);hD(e,a,i)}}function bD(e){return!!($t(e)&&e.add)}function vD(e,t){const r=e.getValue("willChange");if(bD(r))return r.add(t);if(!r&&Dr.WillChange){const n=new Dr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function yD(e){return e.props[Mv]}const xD=e=>e!==null;function wD(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(xD),s=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[s]}const CD={type:"spring",stiffness:500,damping:25,restSpeed:10},SD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kD={type:"keyframes",duration:.8},PD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$D=(e,{keyframes:t})=>t.length>2?kD:po.has(e)?e.startsWith("scale")?SD(t[1]):CD:PD;function ED({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:i,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const TD=(e,t,r,n={},o,s)=>a=>{const i=nv(n,e)||{},l=i.delay||n.delay||0;let{elapsed:u=0}=n;u=u-_r(l);const c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:p=>{t.set(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{a(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:s?void 0:o};ED(i)||Object.assign(c,$D(e,c)),c.duration&&(c.duration=_r(c.duration)),c.repeatDelay&&(c.repeatDelay=_r(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Xu(c),c.delay===0&&(d=!0)),(Dr.instantAnimations||Dr.skipAnimations)&&(d=!0,Xu(c),c.delay=0),c.allowFlatten=!i.type&&!i.ease,d&&!s&&t.get()!==void 0){const p=wD(c.keyframes,i);if(p!==void 0){sr.update(()=>{c.onUpdate(p),c.onComplete()});return}}return i.isSync?new Ru(c):new V6(c)};function DD({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Kv(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...i}=t;n&&(s=n);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const c in i){const d=e.getValue(c,e.latestValues[c]??null),p=i[c];if(p===void 0||u&&DD(u,c))continue;const h={delay:r,...nv(s||{},c)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===m&&!h.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const y=yD(e);if(y){const x=window.MotionHandoffAnimation(y,c,sr);x!==null&&(h.startTime=x,b=!0)}}vD(e,c),d.start(TD(c,d,p,e.shouldReduceMotion&&ov.has(c)?{type:!1}:h,e,b));const v=d.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{sr.update(()=>{a&&gD(e,a)})}),l}function Wv(e,t,r,n=0,o=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),a=e.size,i=(a-1)*n;return typeof r=="function"?r(s,a):o===1?s*n:i-s*n}function bc(e,t,r={}){const n=bo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const s=n?()=>Promise.all(Kv(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return _D(e,t,l,u,c,d,r)}:()=>Promise.resolve(),{when:i}=o;if(i){const[l,u]=i==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(r.delay)])}function _D(e,t,r=0,n=0,o=0,s=1,a){const i=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),i.push(bc(l,t,{...a,delay:r+(typeof n=="function"?0:n)+Wv(e.variantChildren,l,n,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function ID(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(s=>bc(e,s,r));n=Promise.all(o)}else if(typeof t=="string")n=bc(e,t,r);else{const o=typeof t=="function"?bo(e,t,r.custom):t;n=Promise.all(Kv(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Uv(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const AD=ic.length;function Hv(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Hv(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<AD;r++){const n=ic[r],o=e.props[n];(hs(o)||o===!1)&&(t[n]=o)}return t}const ND=[...ac].reverse(),MD=ac.length;function OD(e){return t=>Promise.all(t.map(({animation:r,options:n})=>ID(e,r,n)))}function jD(e){let t=OD(e),r=qv(),n=!0;const o=l=>(u,c)=>{const d=bo(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:h,...m}=d;u={...u,...m,...h}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,c=Hv(e.parent)||{},d=[],p=new Set;let h={},m=1/0;for(let v=0;v<MD;v++){const y=ND[v],x=r[y],w=u[y]!==void 0?u[y]:c[y],C=hs(w),S=y===l?x.isActive:null;S===!1&&(m=v);let k=w===c[y]&&w!==u[y]&&C;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),x.protectedKeys={...h},!x.isActive&&S===null||!w&&!x.prevProp||qa(w)||typeof w=="boolean")continue;const D=FD(x.prevProp,w);let $=D||y===l&&x.isActive&&!k&&C||v>m&&C,_=!1;const N=Array.isArray(w)?w:[w];let A=N.reduce(o(y),{});S===!1&&(A={});const{prevResolvedValues:M={}}=x,O={...M,...A},L=F=>{$=!0,p.has(F)&&(_=!0,p.delete(F)),x.needsAnimating[F]=!0;const B=e.getValue(F);B&&(B.liveStyle=!1)};for(const F in O){const B=A[F],U=M[F];if(h.hasOwnProperty(F))continue;let E=!1;gc(B)&&gc(U)?E=!Uv(B,U):E=B!==U,E?B!=null?L(F):p.add(F):B!==void 0&&p.has(F)?L(F):x.protectedKeys[F]=!0}x.prevProp=w,x.prevResolvedValues=A,x.isActive&&(h={...h,...A}),n&&e.blockInitialAnimation&&($=!1);const I=k&&D;$&&(!I||_)&&d.push(...N.map(F=>{const B={type:y};if(typeof F=="string"&&n&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:U}=e,E=bo(U,F);if(U.enteringChildren&&E){const{delayChildren:j}=E.transition||{};B.delay=Wv(U.enteringChildren,e,j)}}return{animation:F,options:B}}))}if(p.size){const v={};if(typeof u.initial!="boolean"){const y=bo(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(v.transition=y.transition)}p.forEach(y=>{const x=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),v[y]=x??null}),d.push({animation:v})}let b=!!d.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(d):Promise.resolve()}function i(l,u){if(r[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),r[l].isActive=u;const c=a(l);for(const d in r)r[d].protectedKeys={};return c}return{animateChanges:a,setActive:i,setAnimateFunction:s,getState:()=>r,reset:()=>{r=qv()}}}function FD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Uv(t,e):!1}function wn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qv(){return{animate:wn(!0),whileInView:wn(),whileHover:wn(),whileTap:wn(),whileDrag:wn(),whileFocus:wn(),exit:wn()}}class vo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class BD extends vo{constructor(t){super(t),t.animationState||(t.animationState=jD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let zD=0;class LD extends vo{constructor(){super(...arguments),this.id=zD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const VD={animation:{Feature:BD},exit:{Feature:LD}};function Gv(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Zv(e){return{point:{x:e.pageX,y:e.pageY}}}function Yv(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,s=n[o];s&&sr.postRender(()=>s(t,Zv(t)))}class RD extends vo{mount(){const{current:t}=this.node;t&&(this.unmount=a9(t,(r,n)=>(Yv(this.node,n,"Start"),o=>Yv(this.node,o,"End"))))}unmount(){}}class KD extends vo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Na(Gv(this.node.current,"focus",()=>this.onFocus()),Gv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Jv(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),s=n[o];s&&sr.postRender(()=>s(t,Zv(t)))}class WD extends vo{mount(){const{current:t}=this.node;t&&(this.unmount=d9(t,(r,n)=>(Jv(this.node,n,"Start"),(o,{success:s})=>Jv(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vc=new WeakMap,yc=new WeakMap,UD=e=>{const t=vc.get(e.target);t&&t(e)},HD=e=>{e.forEach(UD)};function qD({root:e,...t}){const r=e||document;yc.has(r)||yc.set(r,{});const n=yc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(HD,{root:e,...t})),n[o]}function GD(e,t,r){const n=qD(t);return vc.set(e,r),n.observe(e),()=>{vc.delete(e),n.unobserve(e)}}const ZD={some:0,all:1};class YD extends vo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:s}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:ZD[o]},i=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return GD(this.node.current,a,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(JD(t,r))&&this.startObserver()}unmount(){}}function JD({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const XD={renderer:pD,...VD,...{inView:{Feature:YD},tap:{Feature:WD},focus:{Feature:KD},hover:{Feature:RD}}},Rt={top:"top",bottom:"top",left:"left",right:"left"},Za={top:"bottom",bottom:"top",left:"right",right:"left"},QD={top:"left",left:"top"},xc={top:"height",left:"width"},Xv={width:"totalWidth",height:"totalHeight"},Ya={};let e_=()=>typeof document<"u"?window.visualViewport:null;function Qv(e,t){let r=0,n=0,o=0,s=0,a=0,i=0,l={};var u;let c=((u=t?.scale)!==null&&u!==void 0?u:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let b=document.documentElement;o=b.clientWidth,s=b.clientHeight;var d;r=(d=t?.width)!==null&&d!==void 0?d:o;var p;n=(p=t?.height)!==null&&p!==void 0?p:s,l.top=b.scrollTop||e.scrollTop,l.left=b.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,i=t.offsetLeft)}else({width:r,height:n,top:a,left:i}=gs(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,o=r,s=n;if(iu()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){l.top=0,l.left=0;var h;a=(h=t?.pageTop)!==null&&h!==void 0?h:0;var m;i=(m=t?.pageLeft)!==null&&m!==void 0?m:0}return{width:r,height:n,totalWidth:o,totalHeight:s,scroll:l,top:a,left:i}}function t_(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function e0(e,t,r,n,o,s,a){var i;let l=(i=o.scroll[e])!==null&&i!==void 0?i:0,u=n[xc[e]],c=a[e]+n.scroll[Rt[e]]+s,d=a[e]+n.scroll[Rt[e]]+u-s,p=t-l+n.scroll[Rt[e]]+a[e]-n[Rt[e]],h=t-l+r+n.scroll[Rt[e]]+a[e]-n[Rt[e]];return p<c?c-p:h>d?Math.max(d-h,c-p):0}function r_(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function t0(e){if(Ya[e])return Ya[e];let[t,r]=e.split(" "),n=Rt[t]||"right",o=QD[n];Rt[r]||(r="center");let s=xc[n],a=xc[o];return Ya[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:s,crossSize:a},Ya[e]}function wc(e,t,r,n,o,s,a,i,l,u,c){let{placement:d,crossPlacement:p,axis:h,crossAxis:m,size:b,crossSize:v}=n,y={};var x;y[m]=(x=e[m])!==null&&x!==void 0?x:0;var w,C,S,k;p==="center"?y[m]+=(((w=e[v])!==null&&w!==void 0?w:0)-((C=r[v])!==null&&C!==void 0?C:0))/2:p!==m&&(y[m]+=((S=e[v])!==null&&S!==void 0?S:0)-((k=r[v])!==null&&k!==void 0?k:0)),y[m]+=s;const D=e[m]-r[v]+l+u,$=e[m]+e[v]-l-u;if(y[m]=oo(y[m],D,$),d===h){let _=i?c[b]:c[Xv[b]];y[Za[h]]=Math.floor(_-e[h]+o)}else y[h]=Math.floor(e[h]+e[b]+o);return y}function n_(e,t,r,n,o,s,a,i,l,u,c){var d,p;let h=(e.top!=null?e.top:l[Xv.height]-((d=e.bottom)!==null&&d!==void 0?d:0)-a)-((p=l.scroll.top)!==null&&p!==void 0?p:0),m=u?r.top:0;var b,v,y;let x={top:Math.max(t.top+m,((b=c?.offsetTop)!==null&&b!==void 0?b:t.top)+m),bottom:Math.min(t.top+t.height+m,((v=c?.offsetTop)!==null&&v!==void 0?v:0)+((y=c?.height)!==null&&y!==void 0?y:0))};var w,C,S,k;return i!=="top"?Math.max(0,x.bottom-h-(((w=o.top)!==null&&w!==void 0?w:0)+((C=o.bottom)!==null&&C!==void 0?C:0)+s)):Math.max(0,h+a-x.top-(((S=o.top)!==null&&S!==void 0?S:0)+((k=o.bottom)!==null&&k!==void 0?k:0)+s))}function r0(e,t,r,n,o,s,a,i){let{placement:l,axis:u,size:c}=s;var d,p;if(l===u)return Math.max(0,r[u]-((d=a.scroll[u])!==null&&d!==void 0?d:0)-(e[u]+(i?t[u]:0))-((p=n[u])!==null&&p!==void 0?p:0)-n[Za[u]]-o);var h,m;return Math.max(0,e[c]+e[u]+(i?t[u]:0)-r[u]-r[c]+((h=a.scroll[u])!==null&&h!==void 0?h:0)-((m=n[u])!==null&&m!==void 0?m:0)-n[Za[u]]-o)}function o_(e,t,r,n,o,s,a,i,l,u,c,d,p,h,m,b,v,y){let x=t0(e),{size:w,crossAxis:C,crossSize:S,placement:k,crossPlacement:D}=x,$=wc(t,i,r,x,c,d,u,p,m,b,l),_=c,N=r0(i,u,t,o,s+c,x,l,v);if(a&&r[w]>N){let X=t0(`${Za[k]} ${D}`),q=wc(t,i,r,X,c,d,u,p,m,b,l);r0(i,u,t,o,s+c,X,l,v)>N&&(x=X,$=q,_=c)}let A="bottom";x.axis==="top"?x.placement==="top"?A="top":x.placement==="bottom"&&(A="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?A="bottom":x.crossPlacement==="bottom"&&(A="top"));let M=e0(C,$[C],r[S],i,l,s,u);$[C]+=M;let O=n_($,i,u,p,o,s,r.height,A,l,v,y);h&&h<O&&(O=h),r.height=Math.min(r.height,O),$=wc(t,i,r,x,_,d,u,p,m,b,l),M=e0(C,$[C],r[S],i,l,s,u),$[C]+=M;let L={},I=t[C]-$[C]-o[Rt[C]],z=I+.5*t[S];const F=m/2+b;var B,U,E,j;const T=Rt[C]==="left"?((B=o.left)!==null&&B!==void 0?B:0)+((U=o.right)!==null&&U!==void 0?U:0):((E=o.top)!==null&&E!==void 0?E:0)+((j=o.bottom)!==null&&j!==void 0?j:0),V=r[S]-T-m/2-b,K=t[C]+m/2-($[C]+o[Rt[C]]),G=t[C]+t[S]-m/2-($[C]+o[Rt[C]]),Z=oo(z,K,G);L[C]=oo(Z,F,V),{placement:k,crossPlacement:D}=x,m?I=L[C]:D==="right"?I+=t[S]:D==="center"&&(I+=t[S]/2);let W=k==="left"||k==="top"?r[w]:0,ne={x:k==="top"||k==="bottom"?I:W,y:k==="left"||k==="right"?I:W};return{position:$,maxHeight:O,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:k,triggerAnchorPoint:ne}}function s_(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:s,shouldFlip:a,boundaryElement:i,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=e_(),m=n instanceof HTMLElement?a_(n):document.documentElement,b=m===document.documentElement;const v=window.getComputedStyle(m).position;let y=!!v&&v!=="static",x=b?gs(r,!1):n0(r,m,!1);if(!b){let{marginTop:L,marginLeft:I}=window.getComputedStyle(r);x.top+=parseInt(L,10)||0,x.left+=parseInt(I,10)||0}let w=gs(n,!0),C=r_(n);var S,k;w.width+=((S=C.left)!==null&&S!==void 0?S:0)+((k=C.right)!==null&&k!==void 0?k:0);var D,$;w.height+=((D=C.top)!==null&&D!==void 0?D:0)+(($=C.bottom)!==null&&$!==void 0?$:0);let _=t_(o),N=Qv(i,h),A=Qv(m,h),M=n0(i,m,!1),O=i.contains(m);return o_(t,x,w,_,C,s,a,N,A,M,l,u,y,c,d,p,O,h)}function Cc(e,t){let{top:r,left:n,width:o,height:s}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,s=e.offsetHeight),{top:r,left:n,width:o,height:s}}function gs(e,t){let{top:r,left:n,width:o,height:s}=Cc(e,t),{scrollTop:a,scrollLeft:i,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+a-l,left:n+i-u,width:o,height:s}}function n0(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Cc(e,r);else{o=gs(e,r);let s=gs(t,r),a=window.getComputedStyle(t);s.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,s.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=s.top,o.left-=s.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function a_(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!o0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!o0(t);)t=t.parentElement;return t||document.documentElement}function o0(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const s0=new WeakMap;function i_(e){let{triggerRef:t,isOpen:r,onClose:n}=e;g.useEffect(()=>{if(!r||n===null)return;let o=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let i=n||s0.get(t.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let tt=typeof document<"u"?window.visualViewport:null;function a0(e){let{direction:t}=Ot(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:s,scrollRef:a=o,placement:i="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:b,maxHeight:v,arrowBoundaryOffset:y=0}=e,[x,w]=g.useState(null),C=[h,i,o.current,n.current,s?.current,a.current,l,u,c,d,p,m,t,v,y,r],S=g.useRef(tt?.scale);g.useEffect(()=>{m&&(S.current=tt?.scale)},[m]);let k=g.useCallback(()=>{if(h===!1||!m||!o.current||!n.current||!c||tt?.scale!==S.current)return;let M=null;if(a.current&&a.current.contains(document.activeElement)){var O;let E=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),j=a.current.getBoundingClientRect();var L;if(M={type:"top",offset:((L=E?.top)!==null&&L!==void 0?L:0)-j.top},M.offset>j.height/2){M.type="bottom";var I;M.offset=((I=E?.bottom)!==null&&I!==void 0?I:0)-j.bottom}}let z=o.current;if(!v&&o.current){var F;z.style.top="0px",z.style.bottom="";var B;z.style.maxHeight=((B=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&B!==void 0?B:window.innerHeight)+"px"}let U=s_({placement:u_(i,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:l,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:v,arrowSize:r??(s?.current?Cc(s.current,!0).width:0),arrowBoundaryOffset:y});if(U.position){if(z.style.top="",z.style.bottom="",z.style.left="",z.style.right="",Object.keys(U.position).forEach(E=>z.style[E]=U.position[E]+"px"),z.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",M&&document.activeElement&&a.current){let E=document.activeElement.getBoundingClientRect(),j=a.current.getBoundingClientRect(),T=E[M.type]-j[M.type];a.current.scrollTop+=T-M.offset}w(U)}},C);Be(k,C),l_(k),Jg({ref:o,onResize:k}),Jg({ref:n,onResize:k});let D=g.useRef(!1);Be(()=>{let M,O=()=>{D.current=!0,clearTimeout(M),M=setTimeout(()=>{D.current=!1},500),k()},L=()=>{D.current&&O()};return tt?.addEventListener("resize",O),tt?.addEventListener("scroll",L),()=>{tt?.removeEventListener("resize",O),tt?.removeEventListener("scroll",L)}},[k]);let $=g.useCallback(()=>{D.current||b?.()},[b,D]);i_({triggerRef:n,isOpen:m,onClose:b&&$});var _,N,A;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x?.position,maxHeight:(_=x?.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(N=x?.placement)!==null&&N!==void 0?N:null,triggerAnchorPoint:(A=x?.triggerAnchorPoint)!==null&&A!==void 0?A:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x?.arrowOffsetLeft,top:x?.arrowOffsetTop}},updatePosition:k}}function l_(e){Be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function u_(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Sc(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function i0(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function l0(e){let t=g.useRef({isFocused:!1,observer:null});return Be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),g.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=s=>{if(t.current.isFocused=!1,n.disabled){let a=Sc(s);e?.(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ja=!1;function u0(e){for(;e&&!tb(e);)e=e.parentElement;let t=kt(e),r=t.document.activeElement;if(!r||r===e)return;Ja=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},s=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Vt(r),l()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Vt(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",i,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",i,!0),t.removeEventListener("focus",a,!0),Ja=!1,n=!1},u=requestAnimationFrame(l);return l}let yo="default",kc="",Xa=new WeakMap;function Pc(e){if(Sa()){if(yo==="default"){const t=Ae(e);kc=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}yo="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Xa.set(e,e.style[t]),e.style[t]="none"}}function Qa(e){if(Sa()){if(yo!=="disabled")return;yo="restoring",setTimeout(()=>{Gg(()=>{if(yo==="restoring"){const t=Ae(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=kc||""),kc="",yo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Xa.has(e)){let t=Xa.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Xa.delete(e)}}const $c=g.createContext({register:()=>{}});$c.displayName="PressResponderContext";function c_(e,t){return t.get?t.get.call(e):t.value}function c0(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function d_(e,t){var r=c0(e,t,"get");return c_(e,r)}function f_(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function d0(e,t,r){var n=c0(e,t,"set");return f_(e,n,r),r}function p_(e){let t=g.useContext($c);if(t){let{register:r,...n}=t;e=Ce(n,e),r()}return Xg(t,e.ref),e}var ei=new WeakMap;class ti{continuePropagation(){d0(this,ei,!1)}get shouldStopPropagation(){return d_(this,ei)}constructor(t,r,n,o){P5(this,ei,{writable:!0,value:void 0}),d0(this,ei,!0);var s;let a=(s=o?.target)!==null&&s!==void 0?s:n.currentTarget;const i=a?.getBoundingClientRect();let l,u=0,c,d=null;n.clientX!=null&&n.clientY!=null&&(c=n.clientX,d=n.clientY),i&&(c!=null&&d!=null?(l=c-i.left,u=d-i.top):(l=i.width/2,u=i.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=u}}const f0=Symbol("linkClicked"),p0="react-aria-pressable-style",h0="data-react-aria-pressable";function jt(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:s,onClick:a,isDisabled:i,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...h}=p_(e),[m,b]=g.useState(!1),v=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:x,removeGlobalListener:w}=bn(),C=g.useCallback((E,j)=>{let T=v.current;if(i||T.didFirePressStart)return!1;let V=!0;if(T.isTriggeringEvent=!0,n){let K=new ti("pressstart",j,E);n(K),V=K.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,b(!0),V},[i,n,r]),S=g.useCallback((E,j,T=!0)=>{let V=v.current;if(!V.didFirePressStart)return!1;V.didFirePressStart=!1,V.isTriggeringEvent=!0;let K=!0;if(o){let G=new ti("pressend",j,E);o(G),K=G.shouldStopPropagation}if(r&&r(!1),b(!1),t&&T&&!i){let G=new ti("press",j,E);t(G),K&&(K=G.shouldStopPropagation)}return V.isTriggeringEvent=!1,K},[i,o,r,t]),k=Pt(S),D=g.useCallback((E,j)=>{let T=v.current;if(i)return!1;if(s){T.isTriggeringEvent=!0;let V=new ti("pressup",j,E);return s(V),T.isTriggeringEvent=!1,V.shouldStopPropagation}return!0},[i,s]),$=Pt(D),_=g.useCallback(E=>{let j=v.current;if(j.isPressed&&j.target){j.didFirePressStart&&j.pointerType!=null&&S(Cn(j.target,E),j.pointerType,!1),j.isPressed=!1,B(null),j.isOverTarget=!1,j.activePointerId=null,j.pointerType=null,x(),d||Qa(j.target);for(let T of j.disposables)T();j.disposables=[]}},[d,x,S]),N=Pt(_),A=g.useCallback(E=>{c&&_(E)},[c,_]),M=g.useCallback(E=>{i||a?.(E)},[i,a]),O=g.useCallback((E,j)=>{if(!i&&a){let T=new MouseEvent("click",E);i0(T,j),a(Sc(T))}},[i,a]),L=Pt(O),[I,z]=g.useState(!1);Be(()=>{let E=v.current;if(I){let j=G=>{var Z;if(E.isPressed&&E.target&&Tc(G,E.target)){var W;b0(je(G),G.key)&&G.preventDefault();let X=je(G),q=We(E.target,je(G));k(Cn(E.target,G),"keyboard",q),q&&L(G,E.target),x(),G.key!=="Enter"&&Ec(E.target)&&We(E.target,X)&&!G[f0]&&(G[f0]=!0,Tr(E.target,G,!1)),E.isPressed=!1,z(!1),(W=E.metaKeyEvents)===null||W===void 0||W.delete(G.key)}else if(G.key==="Meta"&&(!((Z=E.metaKeyEvents)===null||Z===void 0)&&Z.size)){var ne;let X=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let q of X.values())(ne=E.target)===null||ne===void 0||ne.dispatchEvent(new KeyboardEvent("keyup",q))}},T=E.target,K=Ur(G=>{T&&Tc(G,T)&&!G.repeat&&We(T,je(G))&&E.target&&$(Cn(E.target,G),"keyboard")},j);return y(Ae(E.target),"keyup",K,!0),()=>{w(Ae(E.target),"keyup",K,!0)}}},[I,y,x,w]);let[F,B]=g.useState(null);Be(()=>{let E=v.current;if(F==="pointer"){let j=V=>{if(V.pointerId===E.activePointerId&&E.isPressed&&V.button===0&&E.target){if(We(E.target,je(V))&&E.pointerType!=null){let K=!1,G=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(K?N(V):(Vt(E.target),E.target.click()))},80);y(V.currentTarget,"click",()=>K=!0,!0),E.disposables.push(()=>clearTimeout(G))}else N(V);E.isOverTarget=!1}},T=V=>{N(V)};return y(Ae(E.target),"pointerup",j,!1),y(Ae(E.target),"pointercancel",T,!1),()=>{w(Ae(E.target),"pointerup",j,!1),w(Ae(E.target),"pointercancel",T,!1)}}else if(F==="mouse"&&process.env.NODE_ENV==="test"){let j=T=>{if(T.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(T.target)&&E.pointerType!=null||N(T),E.isOverTarget=!1}};return y(Ae(E.target),"mouseup",j,!1),()=>{w(Ae(E.target),"mouseup",j,!1)}}else if(F==="touch"&&process.env.NODE_ENV==="test"){let j=T=>{E.isPressed&&We(je(T),E.target)&&N({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return y(kt(E.target),"scroll",j,!0),()=>{w(kt(E.target),"scroll",j,!0)}}},[F,y,w]);let U=g.useMemo(()=>{let E=v.current,j={onKeyDown(T){if(Tc(T.nativeEvent,T.currentTarget)&&We(T.currentTarget,je(T.nativeEvent))){var V;b0(je(T.nativeEvent),T.key)&&T.preventDefault();let K=!0;!E.isPressed&&!T.repeat&&(E.target=T.currentTarget,E.isPressed=!0,z(!0),E.pointerType="keyboard",K=C(T,"keyboard")),K&&T.stopPropagation(),T.metaKey&&Hr()&&((V=E.metaKeyEvents)===null||V===void 0||V.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick(T){if(!(T&&!We(T.currentTarget,je(T.nativeEvent)))&&T&&T.button===0&&!E.isTriggeringEvent&&!Tr.isOpening){let V=!0;if(i&&T.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||fu(T.nativeEvent))){let K=C(T,"virtual"),G=D(T,"virtual"),Z=S(T,"virtual");M(T),V=K&&G&&Z}else if(E.isPressed&&E.pointerType!=="keyboard"){let K=E.pointerType||T.nativeEvent.pointerType||"virtual",G=D(Cn(T.currentTarget,T),K),Z=S(Cn(T.currentTarget,T),K,!0);V=G&&Z,E.isOverTarget=!1,M(T),_(T)}E.ignoreEmulatedMouseEvents=!1,V&&T.stopPropagation()}}};return typeof PointerEvent<"u"?(j.onPointerDown=T=>{if(T.button!==0||!We(T.currentTarget,je(T.nativeEvent)))return;if(tT(T.nativeEvent)){E.pointerType="virtual";return}E.pointerType=T.pointerType;let V=!0;if(!E.isPressed){E.isPressed=!0,B("pointer"),E.isOverTarget=!0,E.activePointerId=T.pointerId,E.target=T.currentTarget,d||Pc(E.target),V=C(T,E.pointerType);let K=je(T.nativeEvent);"releasePointerCapture"in K&&K.releasePointerCapture(T.pointerId)}V&&T.stopPropagation()},j.onMouseDown=T=>{if(We(T.currentTarget,je(T.nativeEvent))&&T.button===0){if(u){let V=u0(T.target);V&&E.disposables.push(V)}T.stopPropagation()}},j.onPointerUp=T=>{!We(T.currentTarget,je(T.nativeEvent))||E.pointerType==="virtual"||T.button===0&&!E.isPressed&&D(T,E.pointerType||T.pointerType)},j.onPointerEnter=T=>{T.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,C(Cn(E.target,T),E.pointerType))},j.onPointerLeave=T=>{T.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,S(Cn(E.target,T),E.pointerType,!1),A(T))},j.onDragStart=T=>{We(T.currentTarget,je(T.nativeEvent))&&_(T)}):process.env.NODE_ENV==="test"&&(j.onMouseDown=T=>{if(T.button!==0||!We(T.currentTarget,je(T.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){T.stopPropagation();return}if(E.isPressed=!0,B("mouse"),E.isOverTarget=!0,E.target=T.currentTarget,E.pointerType=fu(T.nativeEvent)?"virtual":"mouse",Hn.flushSync(()=>C(T,E.pointerType))&&T.stopPropagation(),u){let K=u0(T.target);K&&E.disposables.push(K)}},j.onMouseEnter=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;let V=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,V=C(T,E.pointerType)),V&&T.stopPropagation()},j.onMouseLeave=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;let V=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,V=S(T,E.pointerType,!1),A(T)),V&&T.stopPropagation()},j.onMouseUp=T=>{We(T.currentTarget,je(T.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&T.button===0&&!E.isPressed&&D(T,E.pointerType||"mouse")},j.onTouchStart=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;let V=h_(T.nativeEvent);if(!V)return;E.activePointerId=V.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,B("touch"),E.target=T.currentTarget,E.pointerType="touch",d||Pc(E.target),C(tn(E.target,T),E.pointerType)&&T.stopPropagation()},j.onTouchMove=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;if(!E.isPressed){T.stopPropagation();return}let V=m0(T.nativeEvent,E.activePointerId),K=!0;V&&g0(V,T.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,K=C(tn(E.target,T),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,K=S(tn(E.target,T),E.pointerType,!1),A(tn(E.target,T))),K&&T.stopPropagation()},j.onTouchEnd=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;if(!E.isPressed){T.stopPropagation();return}let V=m0(T.nativeEvent,E.activePointerId),K=!0;V&&g0(V,T.currentTarget)&&E.pointerType!=null?(D(tn(E.target,T),E.pointerType),K=S(tn(E.target,T),E.pointerType),O(T.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(K=S(tn(E.target,T),E.pointerType,!1)),K&&T.stopPropagation(),E.isPressed=!1,B(null),E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!d&&Qa(E.target),x()},j.onTouchCancel=T=>{We(T.currentTarget,je(T.nativeEvent))&&(T.stopPropagation(),E.isPressed&&_(tn(E.target,T)))},j.onDragStart=T=>{We(T.currentTarget,je(T.nativeEvent))&&_(T)}),j},[i,u,x,d,_,A,S,C,D,M,O]);return g.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const E=Ae(p.current);if(!E||!E.head||E.getElementById(p0))return;const j=E.createElement("style");j.id=p0,j.textContent=`
|
|
46
|
+
`),()=>{y.contains(v)&&y.removeChild(v)}},[t]),f.jsx(g9,{isPresent:t,childRef:s,sizeRef:a,children:At.cloneElement(e,{ref:u})})}const v9=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:s,mode:a,anchorX:i,root:l})=>{const u=yu(y9),c=g.useId();let d=!0,p=g.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:r,custom:o,onExitComplete:h=>{u.set(h,!0);for(const m of u.values())if(!m)return;n&&n()},register:h=>(u.set(h,!1),()=>u.delete(h))}),[r,u,n]);return s&&d&&(p={...p}),g.useMemo(()=>{u.forEach((h,m)=>u.set(m,!1))},[r]),At.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),a==="popLayout"&&(e=f.jsx(b9,{isPresent:r,anchorX:i,root:l,children:e})),f.jsx(Aa.Provider,{value:p,children:e})};function y9(){return new Map}function x9(e=!0){const t=g.useContext(Aa);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,s=g.useId();g.useEffect(()=>{if(e)return o(s)},[e]);const a=g.useCallback(()=>e&&n&&n(s),[s,n,e]);return!r&&n?[!1,a]:[!0]}const Ka=e=>e.key||"";function xv(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const Wa=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1,anchorX:i="left",root:l})=>{const[u,c]=x9(a),d=g.useMemo(()=>xv(e),[e]),p=a&&!u?[]:d.map(Ka),h=g.useRef(!0),m=g.useRef(d),b=yu(()=>new Map),v=g.useRef(new Set),[y,x]=g.useState(d),[w,C]=g.useState(d);ib(()=>{h.current=!1,m.current=d;for(let D=0;D<w.length;D++){const $=Ka(w[D]);p.includes($)?(b.delete($),v.current.delete($)):b.get($)!==!0&&b.set($,!1)}},[w,p.length,p.join("-")]);const S=[];if(d!==y){let D=[...d];for(let $=0;$<w.length;$++){const _=w[$],N=Ka(_);p.includes(N)||(D.splice($,0,_),S.push(_))}return s==="wait"&&S.length&&(D=S),C(xv(D)),x(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:k}=g.useContext(ab);return f.jsx(f.Fragment,{children:w.map(D=>{const $=Ka(D),_=a&&!u?!1:d===w||p.includes($),N=()=>{if(v.current.has($))return;if(v.current.add($),b.has($))b.set($,!0);else return;let A=!0;b.forEach(M=>{M||(A=!1)}),A&&(k?.(),C(m.current),a&&c?.(),n&&n())};return f.jsx(v9,{isPresent:_,initial:!h.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:_?void 0:N,anchorX:i,children:D},$)})})},nc=g.createContext({strict:!1}),wv={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"]},ho={};for(const e in wv)ho[e]={isEnabled:t=>wv[e].some(r=>!!t[r])};function oc(e){for(const t in e)ho[t]={...ho[t],...e[t]}}function mo({children:e,features:t,strict:r=!1}){const[,n]=g.useState(!sc(t)),o=g.useRef(void 0);if(!sc(t)){const{renderer:s,...a}=t;o.current=s,oc(a)}return g.useEffect(()=>{sc(t)&&t().then(({renderer:s,...a})=>{oc(a),o.current=s,n(!0)})},[]),f.jsx(nc.Provider,{value:{renderer:o.current,strict:r},children:e})}function sc(e){return typeof e=="function"}const w9=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","ignoreStrict","viewport"]);function Ua(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||w9.has(e)}let Cv=e=>!Ua(e);function C9(e){typeof e=="function"&&(Cv=t=>t.startsWith("on")?!Ua(t):e(t))}try{C9(require("@emotion/is-prop-valid").default)}catch{}function S9(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Cv(o)||r===!0&&Ua(o)||!t&&!Ua(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const Ha=g.createContext({});function qa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hs(e){return typeof e=="string"||Array.isArray(e)}const ac=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ic=["initial",...ac];function Ga(e){return qa(e.animate)||ic.some(t=>hs(e[t]))}function Sv(e){return!!(Ga(e)||e.variants)}function k9(e,t){if(Ga(e)){const{initial:r,animate:n}=e;return{initial:r===!1||hs(r)?r:void 0,animate:hs(n)?n:void 0}}return e.inherit!==!1?t:{}}function P9(e){const{initial:t,animate:r}=k9(e,g.useContext(Ha));return g.useMemo(()=>({initial:t,animate:r}),[kv(t),kv(r)])}function kv(e){return Array.isArray(e)?e.join(" "):e}function Pv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ms={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(le.test(e))e=parseFloat(e);else return e;const r=Pv(e,t.target.x),n=Pv(e,t.target.y);return`${r}% ${n}%`}},$9={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Qr.parse(e);if(o.length>5)return n;const s=Qr.createTransformer(e),a=typeof o[0]!="number"?1:0,i=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=i,o[1+a]/=l;const u=fs(i,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),s(o)}},E9={borderRadius:{...ms,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ms,borderTopRightRadius:ms,borderBottomLeftRadius:ms,borderBottomRightRadius:ms,boxShadow:$9};function $v(e,{layout:t,layoutId:r}){return po.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!E9[e]||e==="opacity")}const T9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D9=fo.length;function _9(e,t,r){let n="",o=!0;for(let s=0;s<D9;s++){const a=fo[s],i=e[a];if(i===void 0)continue;let l=!0;if(typeof i=="number"?l=i===(a.startsWith("scale")?1:0):l=parseFloat(i)===0,!l||r){const u=dv(i,ec[a]);if(!l){o=!1;const c=T9[a]||a;n+=`${c}(${u}) `}r&&(t[a]=u)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function lc(e,t,r){const{style:n,vars:o,transformOrigin:s}=e;let a=!1,i=!1;for(const l in t){const u=t[l];if(po.has(l)){a=!0;continue}else if(Eb(l)){o[l]=u;continue}else{const c=dv(u,ec[l]);l.startsWith("origin")?(i=!0,s[l]=c):n[l]=c}}if(t.transform||(a||r?n.transform=_9(t,e.transform,r):n.transform&&(n.transform="none")),i){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;n.transformOrigin=`${l} ${u} ${c}`}}const uc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ev(e,t,r){for(const n in t)!$t(t[n])&&!$v(n,r)&&(e[n]=t[n])}function I9({transformTemplate:e},t){return g.useMemo(()=>{const r=uc();return lc(r,t,e),Object.assign({},r.vars,r.style)},[t])}function A9(e,t){const r=e.style||{},n={};return Ev(n,r,e),Object.assign(n,I9(e,t)),n}function N9(e,t){const r={},n=A9(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const M9={offset:"stroke-dashoffset",array:"stroke-dasharray"},O9={offset:"strokeDashoffset",array:"strokeDasharray"};function j9(e,t,r=1,n=0,o=!0){e.pathLength=1;const s=o?M9:O9;e[s.offset]=le.transform(-n);const a=le.transform(t),i=le.transform(r);e[s.array]=`${a} ${i}`}const F9=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Tv(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...i},l,u,c){if(lc(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox);for(const h of F9)d[h]!==void 0&&(p[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&j9(d,o,s,a,!1)}const Dv=()=>({...uc(),attrs:{}}),_v=e=>typeof e=="string"&&e.toLowerCase()==="svg";function B9(e,t,r,n){const o=g.useMemo(()=>{const s=Dv();return Tv(s,t,_v(n),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ev(s,e.style,e),o.style={...s,...o.style}}return o}const z9=["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 cc(e){return typeof e!="string"||e.includes("-")?!1:!!(z9.indexOf(e)>-1||/[A-Z]/u.test(e))}function L9(e,t,r,{latestValues:n},o,s=!1,a){const l=(a??cc(e)?B9:N9)(t,n,o,e),u=S9(t,typeof e=="string",s),c=e!==g.Fragment?{...u,...l,ref:r}:{},{children:d}=t,p=g.useMemo(()=>$t(d)?d.get():d,[d]);return g.createElement(e,{...c,children:p})}function Iv(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function dc(e,t,r,n){if(typeof t=="function"){const[o,s]=Iv(n);t=t(r!==void 0?r:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Iv(n);t=t(r!==void 0?r:e.custom,o,s)}return t}function V9(e){return $t(e)?e.get():e}function R9({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:K9(r,n,o,e),renderState:t()}}function K9(e,t,r,n){const o={},s=n(e,{});for(const p in s)o[p]=V9(s[p]);let{initial:a,animate:i}=e;const l=Ga(e),u=Sv(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),i===void 0&&(i=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?i:a;if(d&&typeof d!="boolean"&&!qa(d)){const p=Array.isArray(d)?d:[d];for(let h=0;h<p.length;h++){const m=dc(e,p[h]);if(m){const{transitionEnd:b,transition:v,...y}=m;for(const x in y){let w=y[x];if(Array.isArray(w)){const C=c?w.length-1:0;w=w[C]}w!==null&&(o[x]=w)}for(const x in b)o[x]=b[x]}}}return o}const Av=e=>(t,r)=>{const n=g.useContext(Ha),o=g.useContext(Aa),s=()=>R9(e,t,n,o);return r?s():yu(s)};function fc(e,t,r){const{style:n}=e,o={};for(const s in n)($t(n[s])||t.style&&$t(t.style[s])||$v(s,e)||r?.getValue(s)?.liveStyle!==void 0)&&(o[s]=n[s]);return o}const W9=Av({scrapeMotionValuesFromProps:fc,createRenderState:uc});function Nv(e,t,r){const n=fc(e,t,r);for(const o in e)if($t(e[o])||$t(t[o])){const s=fo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[s]=e[o]}return n}const U9=Av({scrapeMotionValuesFromProps:Nv,createRenderState:Dv}),H9=Symbol.for("motionComponentSymbol");function q9(e,t,r){const n=g.useRef(r);g.useInsertionEffect(()=>{n.current=r});const o=g.useRef(null);return g.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const a=n.current;if(typeof a=="function")if(s){const i=a(s);typeof i=="function"&&(o.current=i)}else o.current?(o.current(),o.current=null):a(s);else a&&(a.current=s)},[t])}const pc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Mv="data-"+pc("framerAppearId"),G9=g.createContext({});function Z9(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Y9(e,t,r,n,o,s){const{visualElement:a}=g.useContext(Ha),i=g.useContext(nc),l=g.useContext(Aa),u=g.useContext(rc).reducedMotion,c=g.useRef(null);n=n||i.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}));const d=c.current,p=g.useContext(G9);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&J9(c.current,r,o,p);const h=g.useRef(!1);g.useInsertionEffect(()=>{d&&h.current&&d.update(r,l)});const m=r[Mv],b=g.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return ib(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),b.current&&d.animationState&&d.animationState.animateChanges())}),g.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),b.current=!1),d.enteringChildren=void 0)}),d}function J9(e,t,r,n){const{layoutId:o,layout:s,drag:a,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Ov(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!a||i&&Z9(i),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u})}function Ov(e){if(e)return e.options.allowProjection!==!1?e.projection:Ov(e.parent)}function hc(e,{forwardMotionProps:t=!1,type:r}={},n,o){n&&oc(n);const s=r?r==="svg":cc(e),a=s?U9:W9;function i(u,c){let d;const p={...g.useContext(rc),...u,layoutId:X9(u)},{isStatic:h}=p,m=P9(u),b=a(u,h);if(!h&&xu){Q9(p,n);const v=eD(p);d=v.MeasureLayout,m.visualElement=Y9(e,b,p,o,v.ProjectionNode,s)}return f.jsxs(Ha.Provider,{value:m,children:[d&&m.visualElement?f.jsx(d,{visualElement:m.visualElement,...p}):null,L9(e,u,q9(b,m.visualElement,c),b,h,t,s)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=g.forwardRef(i);return l[H9]=e,l}function X9({layoutId:e}){const t=g.useContext(ab).id;return t&&e!==void 0?t+"-"+e:e}function Q9(e,t){const r=g.useContext(nc).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?so(!1,n,"lazy-strict-mode"):Jr(!1,n,"lazy-strict-mode")}}function eD(e){const{drag:t,layout:r}=ho;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function tD(e,t){if(typeof Proxy>"u")return hc;const r=new Map,n=(s,a)=>hc(s,a,e,t),o=(s,a)=>(process.env.NODE_ENV!=="production"&&Su(!1,"motion() is deprecated. Use motion.create() instead."),n(s,a));return new Proxy(o,{get:(s,a)=>a==="create"?n:(r.has(a)||r.set(a,hc(a,void 0,e,t)),r.get(a))})}const go=tD();function rD({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nD(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function oD(e,t){return rD(nD(e.getBoundingClientRect(),t))}const jv=()=>({min:0,max:0}),Fv=()=>({x:jv(),y:jv()}),mc={current:null},Bv={current:!1};function sD(){if(Bv.current=!0,!!xu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mc.current=e.matches;e.addEventListener("change",t),t()}else mc.current=!1}const aD=new WeakMap;function iD(e,t,r){for(const n in t){const o=t[n],s=r[n];if($t(o))e.addValue(n,o);else if($t(s))e.addValue(n,Va(o,{owner:e}));else if(s!==o)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(n);e.addValue(n,Va(a!==void 0?a:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const zv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lD{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:s,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const p=zt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,sr.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=!!s,this.isControllingVariants=Ga(r),this.isVariantNode=Sv(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in d){const h=d[p];l[p]!==void 0&&$t(h)&&h.set(l[p])}}mount(t){this.current=t,aD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Bv.current||sD(),this.shouldReduceMotion=mc.current),process.env.NODE_ENV!=="production"&&Su(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$u(this.notifyUpdate),$u(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=po.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&sr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ho){const r=ho[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fv()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<zv.length;n++){const o=zv[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,a=t[s];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=iD(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Va(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(lb(n)||ub(n))?n=parseFloat(n):!p9(n)&&Qr.test(r)&&(n=cv(t,r)),this.setBaseTarget(t,$t(n)?n.get():n)),$t(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const s=dc(this.props,r,this.presenceContext?.custom);s&&(n=s[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!$t(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new db),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){n9.render(this.render)}}class Lv extends lD{constructor(){super(...arguments),this.KeyframeResolver=Q6}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$t(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function Vv(e,{style:t,vars:r},n,o){const s=e.style;let a;for(a in t)s[a]=t[a];o?.applyProjectionStyles(s,n);for(a in r)s.setProperty(a,r[a])}function uD(e){return window.getComputedStyle(e)}class cD extends Lv{constructor(){super(...arguments),this.type="html",this.renderInstance=Vv}readValueFromInstance(t,r){if(po.has(r))return this.projection?.isProjecting?Uu(r):v6(t,r);{const n=uD(t),o=(Eb(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return oD(t,r)}build(t,r,n){lc(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return fc(t,r,n)}}const Rv=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"]);function dD(e,t,r,n){Vv(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Rv.has(o)?o:pc(o),t.attrs[o])}class fD extends Lv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fv}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(po.has(r)){const n=uv(r);return n&&n.default||0}return r=Rv.has(r)?r:pc(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Nv(t,r,n)}build(t,r,n){Tv(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){dD(t,r,n,o)}mount(t){this.isSVGTag=_v(t.tagName),super.mount(t)}}const pD=(e,t)=>t.isSVG??cc(e)?new fD(t):new cD(t,{allowProjection:e!==g.Fragment});function bo(e,t,r){const n=e.getProps();return dc(n,t,r!==void 0?r:n.custom,e)}const gc=e=>Array.isArray(e);function hD(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Va(r))}function mD(e){return gc(e)?e[e.length-1]||0:e}function gD(e,t){const r=bo(e,t);let{transitionEnd:n={},transition:o={},...s}=r||{};s={...s,...n};for(const a in s){const i=mD(s[a]);hD(e,a,i)}}function bD(e){return!!($t(e)&&e.add)}function vD(e,t){const r=e.getValue("willChange");if(bD(r))return r.add(t);if(!r&&Dr.WillChange){const n=new Dr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function yD(e){return e.props[Mv]}const xD=e=>e!==null;function wD(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(xD),s=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[s]}const CD={type:"spring",stiffness:500,damping:25,restSpeed:10},SD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kD={type:"keyframes",duration:.8},PD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$D=(e,{keyframes:t})=>t.length>2?kD:po.has(e)?e.startsWith("scale")?SD(t[1]):CD:PD;function ED({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:i,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const TD=(e,t,r,n={},o,s)=>a=>{const i=nv(n,e)||{},l=i.delay||n.delay||0;let{elapsed:u=0}=n;u=u-_r(l);const c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:p=>{t.set(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{a(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:s?void 0:o};ED(i)||Object.assign(c,$D(e,c)),c.duration&&(c.duration=_r(c.duration)),c.repeatDelay&&(c.repeatDelay=_r(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Xu(c),c.delay===0&&(d=!0)),(Dr.instantAnimations||Dr.skipAnimations)&&(d=!0,Xu(c),c.delay=0),c.allowFlatten=!i.type&&!i.ease,d&&!s&&t.get()!==void 0){const p=wD(c.keyframes,i);if(p!==void 0){sr.update(()=>{c.onUpdate(p),c.onComplete()});return}}return i.isSync?new Ru(c):new V6(c)};function DD({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Kv(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...i}=t;n&&(s=n);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const c in i){const d=e.getValue(c,e.latestValues[c]??null),p=i[c];if(p===void 0||u&&DD(u,c))continue;const h={delay:r,...nv(s||{},c)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===m&&!h.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const y=yD(e);if(y){const x=window.MotionHandoffAnimation(y,c,sr);x!==null&&(h.startTime=x,b=!0)}}vD(e,c),d.start(TD(c,d,p,e.shouldReduceMotion&&ov.has(c)?{type:!1}:h,e,b));const v=d.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{sr.update(()=>{a&&gD(e,a)})}),l}function Wv(e,t,r,n=0,o=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),a=e.size,i=(a-1)*n;return typeof r=="function"?r(s,a):o===1?s*n:i-s*n}function bc(e,t,r={}){const n=bo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const s=n?()=>Promise.all(Kv(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return _D(e,t,l,u,c,d,r)}:()=>Promise.resolve(),{when:i}=o;if(i){const[l,u]=i==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(r.delay)])}function _D(e,t,r=0,n=0,o=0,s=1,a){const i=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),i.push(bc(l,t,{...a,delay:r+(typeof n=="function"?0:n)+Wv(e.variantChildren,l,n,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function ID(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(s=>bc(e,s,r));n=Promise.all(o)}else if(typeof t=="string")n=bc(e,t,r);else{const o=typeof t=="function"?bo(e,t,r.custom):t;n=Promise.all(Kv(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Uv(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const AD=ic.length;function Hv(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Hv(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<AD;r++){const n=ic[r],o=e.props[n];(hs(o)||o===!1)&&(t[n]=o)}return t}const ND=[...ac].reverse(),MD=ac.length;function OD(e){return t=>Promise.all(t.map(({animation:r,options:n})=>ID(e,r,n)))}function jD(e){let t=OD(e),r=qv(),n=!0;const o=l=>(u,c)=>{const d=bo(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:h,...m}=d;u={...u,...m,...h}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,c=Hv(e.parent)||{},d=[],p=new Set;let h={},m=1/0;for(let v=0;v<MD;v++){const y=ND[v],x=r[y],w=u[y]!==void 0?u[y]:c[y],C=hs(w),S=y===l?x.isActive:null;S===!1&&(m=v);let k=w===c[y]&&w!==u[y]&&C;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),x.protectedKeys={...h},!x.isActive&&S===null||!w&&!x.prevProp||qa(w)||typeof w=="boolean")continue;const D=FD(x.prevProp,w);let $=D||y===l&&x.isActive&&!k&&C||v>m&&C,_=!1;const N=Array.isArray(w)?w:[w];let A=N.reduce(o(y),{});S===!1&&(A={});const{prevResolvedValues:M={}}=x,O={...M,...A},L=F=>{$=!0,p.has(F)&&(_=!0,p.delete(F)),x.needsAnimating[F]=!0;const B=e.getValue(F);B&&(B.liveStyle=!1)};for(const F in O){const B=A[F],U=M[F];if(h.hasOwnProperty(F))continue;let E=!1;gc(B)&&gc(U)?E=!Uv(B,U):E=B!==U,E?B!=null?L(F):p.add(F):B!==void 0&&p.has(F)?L(F):x.protectedKeys[F]=!0}x.prevProp=w,x.prevResolvedValues=A,x.isActive&&(h={...h,...A}),n&&e.blockInitialAnimation&&($=!1);const I=k&&D;$&&(!I||_)&&d.push(...N.map(F=>{const B={type:y};if(typeof F=="string"&&n&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:U}=e,E=bo(U,F);if(U.enteringChildren&&E){const{delayChildren:j}=E.transition||{};B.delay=Wv(U.enteringChildren,e,j)}}return{animation:F,options:B}}))}if(p.size){const v={};if(typeof u.initial!="boolean"){const y=bo(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(v.transition=y.transition)}p.forEach(y=>{const x=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),v[y]=x??null}),d.push({animation:v})}let b=!!d.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(d):Promise.resolve()}function i(l,u){if(r[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),r[l].isActive=u;const c=a(l);for(const d in r)r[d].protectedKeys={};return c}return{animateChanges:a,setActive:i,setAnimateFunction:s,getState:()=>r,reset:()=>{r=qv()}}}function FD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Uv(t,e):!1}function wn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qv(){return{animate:wn(!0),whileInView:wn(),whileHover:wn(),whileTap:wn(),whileDrag:wn(),whileFocus:wn(),exit:wn()}}class vo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class BD extends vo{constructor(t){super(t),t.animationState||(t.animationState=jD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let zD=0;class LD extends vo{constructor(){super(...arguments),this.id=zD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const VD={animation:{Feature:BD},exit:{Feature:LD}};function Gv(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Zv(e){return{point:{x:e.pageX,y:e.pageY}}}function Yv(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,s=n[o];s&&sr.postRender(()=>s(t,Zv(t)))}class RD extends vo{mount(){const{current:t}=this.node;t&&(this.unmount=a9(t,(r,n)=>(Yv(this.node,n,"Start"),o=>Yv(this.node,o,"End"))))}unmount(){}}class KD extends vo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Na(Gv(this.node.current,"focus",()=>this.onFocus()),Gv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Jv(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),s=n[o];s&&sr.postRender(()=>s(t,Zv(t)))}class WD extends vo{mount(){const{current:t}=this.node;t&&(this.unmount=d9(t,(r,n)=>(Jv(this.node,n,"Start"),(o,{success:s})=>Jv(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vc=new WeakMap,yc=new WeakMap,UD=e=>{const t=vc.get(e.target);t&&t(e)},HD=e=>{e.forEach(UD)};function qD({root:e,...t}){const r=e||document;yc.has(r)||yc.set(r,{});const n=yc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(HD,{root:e,...t})),n[o]}function GD(e,t,r){const n=qD(t);return vc.set(e,r),n.observe(e),()=>{vc.delete(e),n.unobserve(e)}}const ZD={some:0,all:1};class YD extends vo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:s}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:ZD[o]},i=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return GD(this.node.current,a,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(JD(t,r))&&this.startObserver()}unmount(){}}function JD({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const XD={renderer:pD,...VD,...{inView:{Feature:YD},tap:{Feature:WD},focus:{Feature:KD},hover:{Feature:RD}}},Rt={top:"top",bottom:"top",left:"left",right:"left"},Za={top:"bottom",bottom:"top",left:"right",right:"left"},QD={top:"left",left:"top"},xc={top:"height",left:"width"},Xv={width:"totalWidth",height:"totalHeight"},Ya={};let e_=()=>typeof document<"u"?window.visualViewport:null;function Qv(e,t){let r=0,n=0,o=0,s=0,a=0,i=0,l={};var u;let c=((u=t?.scale)!==null&&u!==void 0?u:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let b=document.documentElement;o=b.clientWidth,s=b.clientHeight;var d;r=(d=t?.width)!==null&&d!==void 0?d:o;var p;n=(p=t?.height)!==null&&p!==void 0?p:s,l.top=b.scrollTop||e.scrollTop,l.left=b.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,i=t.offsetLeft)}else({width:r,height:n,top:a,left:i}=gs(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,o=r,s=n;if(iu()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){l.top=0,l.left=0;var h;a=(h=t?.pageTop)!==null&&h!==void 0?h:0;var m;i=(m=t?.pageLeft)!==null&&m!==void 0?m:0}return{width:r,height:n,totalWidth:o,totalHeight:s,scroll:l,top:a,left:i}}function t_(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function e0(e,t,r,n,o,s,a){var i;let l=(i=o.scroll[e])!==null&&i!==void 0?i:0,u=n[xc[e]],c=a[e]+n.scroll[Rt[e]]+s,d=a[e]+n.scroll[Rt[e]]+u-s,p=t-l+n.scroll[Rt[e]]+a[e]-n[Rt[e]],h=t-l+r+n.scroll[Rt[e]]+a[e]-n[Rt[e]];return p<c?c-p:h>d?Math.max(d-h,c-p):0}function r_(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function t0(e){if(Ya[e])return Ya[e];let[t,r]=e.split(" "),n=Rt[t]||"right",o=QD[n];Rt[r]||(r="center");let s=xc[n],a=xc[o];return Ya[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:s,crossSize:a},Ya[e]}function wc(e,t,r,n,o,s,a,i,l,u,c){let{placement:d,crossPlacement:p,axis:h,crossAxis:m,size:b,crossSize:v}=n,y={};var x;y[m]=(x=e[m])!==null&&x!==void 0?x:0;var w,C,S,k;p==="center"?y[m]+=(((w=e[v])!==null&&w!==void 0?w:0)-((C=r[v])!==null&&C!==void 0?C:0))/2:p!==m&&(y[m]+=((S=e[v])!==null&&S!==void 0?S:0)-((k=r[v])!==null&&k!==void 0?k:0)),y[m]+=s;const D=e[m]-r[v]+l+u,$=e[m]+e[v]-l-u;if(y[m]=oo(y[m],D,$),d===h){let _=i?c[b]:c[Xv[b]];y[Za[h]]=Math.floor(_-e[h]+o)}else y[h]=Math.floor(e[h]+e[b]+o);return y}function n_(e,t,r,n,o,s,a,i,l,u,c){var d,p;let h=(e.top!=null?e.top:l[Xv.height]-((d=e.bottom)!==null&&d!==void 0?d:0)-a)-((p=l.scroll.top)!==null&&p!==void 0?p:0),m=u?r.top:0;var b,v,y;let x={top:Math.max(t.top+m,((b=c?.offsetTop)!==null&&b!==void 0?b:t.top)+m),bottom:Math.min(t.top+t.height+m,((v=c?.offsetTop)!==null&&v!==void 0?v:0)+((y=c?.height)!==null&&y!==void 0?y:0))};var w,C,S,k;return i!=="top"?Math.max(0,x.bottom-h-(((w=o.top)!==null&&w!==void 0?w:0)+((C=o.bottom)!==null&&C!==void 0?C:0)+s)):Math.max(0,h+a-x.top-(((S=o.top)!==null&&S!==void 0?S:0)+((k=o.bottom)!==null&&k!==void 0?k:0)+s))}function r0(e,t,r,n,o,s,a,i){let{placement:l,axis:u,size:c}=s;var d,p;if(l===u)return Math.max(0,r[u]-((d=a.scroll[u])!==null&&d!==void 0?d:0)-(e[u]+(i?t[u]:0))-((p=n[u])!==null&&p!==void 0?p:0)-n[Za[u]]-o);var h,m;return Math.max(0,e[c]+e[u]+(i?t[u]:0)-r[u]-r[c]+((h=a.scroll[u])!==null&&h!==void 0?h:0)-((m=n[u])!==null&&m!==void 0?m:0)-n[Za[u]]-o)}function o_(e,t,r,n,o,s,a,i,l,u,c,d,p,h,m,b,v,y){let x=t0(e),{size:w,crossAxis:C,crossSize:S,placement:k,crossPlacement:D}=x,$=wc(t,i,r,x,c,d,u,p,m,b,l),_=c,N=r0(i,u,t,o,s+c,x,l,v);if(a&&r[w]>N){let X=t0(`${Za[k]} ${D}`),q=wc(t,i,r,X,c,d,u,p,m,b,l);r0(i,u,t,o,s+c,X,l,v)>N&&(x=X,$=q,_=c)}let A="bottom";x.axis==="top"?x.placement==="top"?A="top":x.placement==="bottom"&&(A="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?A="bottom":x.crossPlacement==="bottom"&&(A="top"));let M=e0(C,$[C],r[S],i,l,s,u);$[C]+=M;let O=n_($,i,u,p,o,s,r.height,A,l,v,y);h&&h<O&&(O=h),r.height=Math.min(r.height,O),$=wc(t,i,r,x,_,d,u,p,m,b,l),M=e0(C,$[C],r[S],i,l,s,u),$[C]+=M;let L={},I=t[C]-$[C]-o[Rt[C]],z=I+.5*t[S];const F=m/2+b;var B,U,E,j;const T=Rt[C]==="left"?((B=o.left)!==null&&B!==void 0?B:0)+((U=o.right)!==null&&U!==void 0?U:0):((E=o.top)!==null&&E!==void 0?E:0)+((j=o.bottom)!==null&&j!==void 0?j:0),V=r[S]-T-m/2-b,K=t[C]+m/2-($[C]+o[Rt[C]]),G=t[C]+t[S]-m/2-($[C]+o[Rt[C]]),Z=oo(z,K,G);L[C]=oo(Z,F,V),{placement:k,crossPlacement:D}=x,m?I=L[C]:D==="right"?I+=t[S]:D==="center"&&(I+=t[S]/2);let W=k==="left"||k==="top"?r[w]:0,ne={x:k==="top"||k==="bottom"?I:W,y:k==="left"||k==="right"?I:W};return{position:$,maxHeight:O,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:k,triggerAnchorPoint:ne}}function s_(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:s,shouldFlip:a,boundaryElement:i,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=e_(),m=n instanceof HTMLElement?a_(n):document.documentElement,b=m===document.documentElement;const v=window.getComputedStyle(m).position;let y=!!v&&v!=="static",x=b?gs(r,!1):n0(r,m,!1);if(!b){let{marginTop:L,marginLeft:I}=window.getComputedStyle(r);x.top+=parseInt(L,10)||0,x.left+=parseInt(I,10)||0}let w=gs(n,!0),C=r_(n);var S,k;w.width+=((S=C.left)!==null&&S!==void 0?S:0)+((k=C.right)!==null&&k!==void 0?k:0);var D,$;w.height+=((D=C.top)!==null&&D!==void 0?D:0)+(($=C.bottom)!==null&&$!==void 0?$:0);let _=t_(o),N=Qv(i,h),A=Qv(m,h),M=n0(i,m,!1),O=i.contains(m);return o_(t,x,w,_,C,s,a,N,A,M,l,u,y,c,d,p,O,h)}function Cc(e,t){let{top:r,left:n,width:o,height:s}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,s=e.offsetHeight),{top:r,left:n,width:o,height:s}}function gs(e,t){let{top:r,left:n,width:o,height:s}=Cc(e,t),{scrollTop:a,scrollLeft:i,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+a-l,left:n+i-u,width:o,height:s}}function n0(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Cc(e,r);else{o=gs(e,r);let s=gs(t,r),a=window.getComputedStyle(t);s.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,s.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=s.top,o.left-=s.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function a_(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!o0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!o0(t);)t=t.parentElement;return t||document.documentElement}function o0(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const s0=new WeakMap;function i_(e){let{triggerRef:t,isOpen:r,onClose:n}=e;g.useEffect(()=>{if(!r||n===null)return;let o=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let i=n||s0.get(t.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let rt=typeof document<"u"?window.visualViewport:null;function a0(e){let{direction:t}=Ot(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:s,scrollRef:a=o,placement:i="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:b,maxHeight:v,arrowBoundaryOffset:y=0}=e,[x,w]=g.useState(null),C=[h,i,o.current,n.current,s?.current,a.current,l,u,c,d,p,m,t,v,y,r],S=g.useRef(rt?.scale);g.useEffect(()=>{m&&(S.current=rt?.scale)},[m]);let k=g.useCallback(()=>{if(h===!1||!m||!o.current||!n.current||!c||rt?.scale!==S.current)return;let M=null;if(a.current&&a.current.contains(document.activeElement)){var O;let E=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),j=a.current.getBoundingClientRect();var L;if(M={type:"top",offset:((L=E?.top)!==null&&L!==void 0?L:0)-j.top},M.offset>j.height/2){M.type="bottom";var I;M.offset=((I=E?.bottom)!==null&&I!==void 0?I:0)-j.bottom}}let z=o.current;if(!v&&o.current){var F;z.style.top="0px",z.style.bottom="";var B;z.style.maxHeight=((B=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&B!==void 0?B:window.innerHeight)+"px"}let U=s_({placement:u_(i,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:l,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:v,arrowSize:r??(s?.current?Cc(s.current,!0).width:0),arrowBoundaryOffset:y});if(U.position){if(z.style.top="",z.style.bottom="",z.style.left="",z.style.right="",Object.keys(U.position).forEach(E=>z.style[E]=U.position[E]+"px"),z.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",M&&document.activeElement&&a.current){let E=document.activeElement.getBoundingClientRect(),j=a.current.getBoundingClientRect(),T=E[M.type]-j[M.type];a.current.scrollTop+=T-M.offset}w(U)}},C);Be(k,C),l_(k),Jg({ref:o,onResize:k}),Jg({ref:n,onResize:k});let D=g.useRef(!1);Be(()=>{let M,O=()=>{D.current=!0,clearTimeout(M),M=setTimeout(()=>{D.current=!1},500),k()},L=()=>{D.current&&O()};return rt?.addEventListener("resize",O),rt?.addEventListener("scroll",L),()=>{rt?.removeEventListener("resize",O),rt?.removeEventListener("scroll",L)}},[k]);let $=g.useCallback(()=>{D.current||b?.()},[b,D]);i_({triggerRef:n,isOpen:m,onClose:b&&$});var _,N,A;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x?.position,maxHeight:(_=x?.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(N=x?.placement)!==null&&N!==void 0?N:null,triggerAnchorPoint:(A=x?.triggerAnchorPoint)!==null&&A!==void 0?A:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x?.arrowOffsetLeft,top:x?.arrowOffsetTop}},updatePosition:k}}function l_(e){Be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function u_(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Sc(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function i0(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function l0(e){let t=g.useRef({isFocused:!1,observer:null});return Be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),g.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=s=>{if(t.current.isFocused=!1,n.disabled){let a=Sc(s);e?.(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ja=!1;function u0(e){for(;e&&!tb(e);)e=e.parentElement;let t=kt(e),r=t.document.activeElement;if(!r||r===e)return;Ja=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},s=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Vt(r),l()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Vt(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",i,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",i,!0),t.removeEventListener("focus",a,!0),Ja=!1,n=!1},u=requestAnimationFrame(l);return l}let yo="default",kc="",Xa=new WeakMap;function Pc(e){if(Sa()){if(yo==="default"){const t=Ae(e);kc=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}yo="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Xa.set(e,e.style[t]),e.style[t]="none"}}function Qa(e){if(Sa()){if(yo!=="disabled")return;yo="restoring",setTimeout(()=>{Gg(()=>{if(yo==="restoring"){const t=Ae(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=kc||""),kc="",yo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Xa.has(e)){let t=Xa.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Xa.delete(e)}}const $c=g.createContext({register:()=>{}});$c.displayName="PressResponderContext";function c_(e,t){return t.get?t.get.call(e):t.value}function c0(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function d_(e,t){var r=c0(e,t,"get");return c_(e,r)}function f_(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function d0(e,t,r){var n=c0(e,t,"set");return f_(e,n,r),r}function p_(e){let t=g.useContext($c);if(t){let{register:r,...n}=t;e=Ce(n,e),r()}return Xg(t,e.ref),e}var ei=new WeakMap;class ti{continuePropagation(){d0(this,ei,!1)}get shouldStopPropagation(){return d_(this,ei)}constructor(t,r,n,o){P5(this,ei,{writable:!0,value:void 0}),d0(this,ei,!0);var s;let a=(s=o?.target)!==null&&s!==void 0?s:n.currentTarget;const i=a?.getBoundingClientRect();let l,u=0,c,d=null;n.clientX!=null&&n.clientY!=null&&(c=n.clientX,d=n.clientY),i&&(c!=null&&d!=null?(l=c-i.left,u=d-i.top):(l=i.width/2,u=i.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=u}}const f0=Symbol("linkClicked"),p0="react-aria-pressable-style",h0="data-react-aria-pressable";function jt(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:s,onClick:a,isDisabled:i,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...h}=p_(e),[m,b]=g.useState(!1),v=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:x,removeGlobalListener:w}=bn(),C=g.useCallback((E,j)=>{let T=v.current;if(i||T.didFirePressStart)return!1;let V=!0;if(T.isTriggeringEvent=!0,n){let K=new ti("pressstart",j,E);n(K),V=K.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,b(!0),V},[i,n,r]),S=g.useCallback((E,j,T=!0)=>{let V=v.current;if(!V.didFirePressStart)return!1;V.didFirePressStart=!1,V.isTriggeringEvent=!0;let K=!0;if(o){let G=new ti("pressend",j,E);o(G),K=G.shouldStopPropagation}if(r&&r(!1),b(!1),t&&T&&!i){let G=new ti("press",j,E);t(G),K&&(K=G.shouldStopPropagation)}return V.isTriggeringEvent=!1,K},[i,o,r,t]),k=Pt(S),D=g.useCallback((E,j)=>{let T=v.current;if(i)return!1;if(s){T.isTriggeringEvent=!0;let V=new ti("pressup",j,E);return s(V),T.isTriggeringEvent=!1,V.shouldStopPropagation}return!0},[i,s]),$=Pt(D),_=g.useCallback(E=>{let j=v.current;if(j.isPressed&&j.target){j.didFirePressStart&&j.pointerType!=null&&S(Cn(j.target,E),j.pointerType,!1),j.isPressed=!1,B(null),j.isOverTarget=!1,j.activePointerId=null,j.pointerType=null,x(),d||Qa(j.target);for(let T of j.disposables)T();j.disposables=[]}},[d,x,S]),N=Pt(_),A=g.useCallback(E=>{c&&_(E)},[c,_]),M=g.useCallback(E=>{i||a?.(E)},[i,a]),O=g.useCallback((E,j)=>{if(!i&&a){let T=new MouseEvent("click",E);i0(T,j),a(Sc(T))}},[i,a]),L=Pt(O),[I,z]=g.useState(!1);Be(()=>{let E=v.current;if(I){let j=G=>{var Z;if(E.isPressed&&E.target&&Tc(G,E.target)){var W;b0(je(G),G.key)&&G.preventDefault();let X=je(G),q=We(E.target,je(G));k(Cn(E.target,G),"keyboard",q),q&&L(G,E.target),x(),G.key!=="Enter"&&Ec(E.target)&&We(E.target,X)&&!G[f0]&&(G[f0]=!0,Tr(E.target,G,!1)),E.isPressed=!1,z(!1),(W=E.metaKeyEvents)===null||W===void 0||W.delete(G.key)}else if(G.key==="Meta"&&(!((Z=E.metaKeyEvents)===null||Z===void 0)&&Z.size)){var ne;let X=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let q of X.values())(ne=E.target)===null||ne===void 0||ne.dispatchEvent(new KeyboardEvent("keyup",q))}},T=E.target,K=Ur(G=>{T&&Tc(G,T)&&!G.repeat&&We(T,je(G))&&E.target&&$(Cn(E.target,G),"keyboard")},j);return y(Ae(E.target),"keyup",K,!0),()=>{w(Ae(E.target),"keyup",K,!0)}}},[I,y,x,w]);let[F,B]=g.useState(null);Be(()=>{let E=v.current;if(F==="pointer"){let j=V=>{if(V.pointerId===E.activePointerId&&E.isPressed&&V.button===0&&E.target){if(We(E.target,je(V))&&E.pointerType!=null){let K=!1,G=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(K?N(V):(Vt(E.target),E.target.click()))},80);y(V.currentTarget,"click",()=>K=!0,!0),E.disposables.push(()=>clearTimeout(G))}else N(V);E.isOverTarget=!1}},T=V=>{N(V)};return y(Ae(E.target),"pointerup",j,!1),y(Ae(E.target),"pointercancel",T,!1),()=>{w(Ae(E.target),"pointerup",j,!1),w(Ae(E.target),"pointercancel",T,!1)}}else if(F==="mouse"&&process.env.NODE_ENV==="test"){let j=T=>{if(T.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(T.target)&&E.pointerType!=null||N(T),E.isOverTarget=!1}};return y(Ae(E.target),"mouseup",j,!1),()=>{w(Ae(E.target),"mouseup",j,!1)}}else if(F==="touch"&&process.env.NODE_ENV==="test"){let j=T=>{E.isPressed&&We(je(T),E.target)&&N({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return y(kt(E.target),"scroll",j,!0),()=>{w(kt(E.target),"scroll",j,!0)}}},[F,y,w]);let U=g.useMemo(()=>{let E=v.current,j={onKeyDown(T){if(Tc(T.nativeEvent,T.currentTarget)&&We(T.currentTarget,je(T.nativeEvent))){var V;b0(je(T.nativeEvent),T.key)&&T.preventDefault();let K=!0;!E.isPressed&&!T.repeat&&(E.target=T.currentTarget,E.isPressed=!0,z(!0),E.pointerType="keyboard",K=C(T,"keyboard")),K&&T.stopPropagation(),T.metaKey&&Hr()&&((V=E.metaKeyEvents)===null||V===void 0||V.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick(T){if(!(T&&!We(T.currentTarget,je(T.nativeEvent)))&&T&&T.button===0&&!E.isTriggeringEvent&&!Tr.isOpening){let V=!0;if(i&&T.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||fu(T.nativeEvent))){let K=C(T,"virtual"),G=D(T,"virtual"),Z=S(T,"virtual");M(T),V=K&&G&&Z}else if(E.isPressed&&E.pointerType!=="keyboard"){let K=E.pointerType||T.nativeEvent.pointerType||"virtual",G=D(Cn(T.currentTarget,T),K),Z=S(Cn(T.currentTarget,T),K,!0);V=G&&Z,E.isOverTarget=!1,M(T),_(T)}E.ignoreEmulatedMouseEvents=!1,V&&T.stopPropagation()}}};return typeof PointerEvent<"u"?(j.onPointerDown=T=>{if(T.button!==0||!We(T.currentTarget,je(T.nativeEvent)))return;if(tT(T.nativeEvent)){E.pointerType="virtual";return}E.pointerType=T.pointerType;let V=!0;if(!E.isPressed){E.isPressed=!0,B("pointer"),E.isOverTarget=!0,E.activePointerId=T.pointerId,E.target=T.currentTarget,d||Pc(E.target),V=C(T,E.pointerType);let K=je(T.nativeEvent);"releasePointerCapture"in K&&K.releasePointerCapture(T.pointerId)}V&&T.stopPropagation()},j.onMouseDown=T=>{if(We(T.currentTarget,je(T.nativeEvent))&&T.button===0){if(u){let V=u0(T.target);V&&E.disposables.push(V)}T.stopPropagation()}},j.onPointerUp=T=>{!We(T.currentTarget,je(T.nativeEvent))||E.pointerType==="virtual"||T.button===0&&!E.isPressed&&D(T,E.pointerType||T.pointerType)},j.onPointerEnter=T=>{T.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,C(Cn(E.target,T),E.pointerType))},j.onPointerLeave=T=>{T.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,S(Cn(E.target,T),E.pointerType,!1),A(T))},j.onDragStart=T=>{We(T.currentTarget,je(T.nativeEvent))&&_(T)}):process.env.NODE_ENV==="test"&&(j.onMouseDown=T=>{if(T.button!==0||!We(T.currentTarget,je(T.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){T.stopPropagation();return}if(E.isPressed=!0,B("mouse"),E.isOverTarget=!0,E.target=T.currentTarget,E.pointerType=fu(T.nativeEvent)?"virtual":"mouse",Hn.flushSync(()=>C(T,E.pointerType))&&T.stopPropagation(),u){let K=u0(T.target);K&&E.disposables.push(K)}},j.onMouseEnter=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;let V=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,V=C(T,E.pointerType)),V&&T.stopPropagation()},j.onMouseLeave=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;let V=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,V=S(T,E.pointerType,!1),A(T)),V&&T.stopPropagation()},j.onMouseUp=T=>{We(T.currentTarget,je(T.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&T.button===0&&!E.isPressed&&D(T,E.pointerType||"mouse")},j.onTouchStart=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;let V=h_(T.nativeEvent);if(!V)return;E.activePointerId=V.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,B("touch"),E.target=T.currentTarget,E.pointerType="touch",d||Pc(E.target),C(tn(E.target,T),E.pointerType)&&T.stopPropagation()},j.onTouchMove=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;if(!E.isPressed){T.stopPropagation();return}let V=m0(T.nativeEvent,E.activePointerId),K=!0;V&&g0(V,T.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,K=C(tn(E.target,T),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,K=S(tn(E.target,T),E.pointerType,!1),A(tn(E.target,T))),K&&T.stopPropagation()},j.onTouchEnd=T=>{if(!We(T.currentTarget,je(T.nativeEvent)))return;if(!E.isPressed){T.stopPropagation();return}let V=m0(T.nativeEvent,E.activePointerId),K=!0;V&&g0(V,T.currentTarget)&&E.pointerType!=null?(D(tn(E.target,T),E.pointerType),K=S(tn(E.target,T),E.pointerType),O(T.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(K=S(tn(E.target,T),E.pointerType,!1)),K&&T.stopPropagation(),E.isPressed=!1,B(null),E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!d&&Qa(E.target),x()},j.onTouchCancel=T=>{We(T.currentTarget,je(T.nativeEvent))&&(T.stopPropagation(),E.isPressed&&_(tn(E.target,T)))},j.onDragStart=T=>{We(T.currentTarget,je(T.nativeEvent))&&_(T)}),j},[i,u,x,d,_,A,S,C,D,M,O]);return g.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const E=Ae(p.current);if(!E||!E.head||E.getElementById(p0))return;const j=E.createElement("style");j.id=p0,j.textContent=`
|
|
47
47
|
@layer {
|
|
48
48
|
[${h0}] {
|
|
49
49
|
touch-action: pan-x pan-y pinch-zoom;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
`.trim(),E.head.prepend(j)},[p]),g.useEffect(()=>{let E=v.current;return()=>{var j;d||Qa((j=E.target)!==null&&j!==void 0?j:void 0);for(let T of E.disposables)T();E.disposables=[]}},[d]),{isPressed:l||m,pressProps:Ce(h,U,{[h0]:!0})}}function Ec(e){return e.tagName==="A"&&e.hasAttribute("href")}function Tc(e,t){const{key:r,code:n}=e,o=t,s=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof kt(o).HTMLInputElement&&!v0(o,r)||o instanceof kt(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&Ec(o))&&r!=="Enter")}function h_(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function m0(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function tn(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Cn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function m_(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function g_(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function g0(e,t){let r=t.getBoundingClientRect(),n=m_(e);return g_(r,n)}function b_(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ec(e)}function b0(e,t){return e instanceof HTMLInputElement?!v0(e,t):b_(e)}const v_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function v0(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":v_.has(e.type)}let Ir=null,bs=new Set,vs=new Map,Sn=!1,Dc=!1;const y_={Tab:!0,Escape:!0};function ri(e,t){for(let r of bs)r(e,t)}function x_(e){return!(e.metaKey||!Hr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ni(e){Sn=!0,!Tr.isOpening&&x_(e)&&(Ir="keyboard",ri("keyboard",e))}function Kt(e){Ir="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Sn=!0,ri("pointer",e))}function y0(e){!Tr.isOpening&&fu(e)&&(Sn=!0,Ir="virtual")}function x0(e){e.target===window||e.target===document||Ja||!e.isTrusted||(!Sn&&!Dc&&(Ir="virtual",ri("virtual",e)),Sn=!1,Dc=!1)}function w0(){Ja||(Sn=!1,Dc=!0)}function oi(e){if(typeof window>"u"||typeof document>"u"||vs.get(kt(e)))return;const t=kt(e),r=Ae(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Sn=!0,n.apply(this,arguments)},r.addEventListener("keydown",ni,!0),r.addEventListener("keyup",ni,!0),r.addEventListener("click",y0,!0),t.addEventListener("focus",x0,!0),t.addEventListener("blur",w0,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Kt,!0),r.addEventListener("pointermove",Kt,!0),r.addEventListener("pointerup",Kt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Kt,!0),r.addEventListener("mousemove",Kt,!0),r.addEventListener("mouseup",Kt,!0)),t.addEventListener("beforeunload",()=>{C0(e)},{once:!0}),vs.set(t,{focus:n})}const C0=(e,t)=>{const r=kt(e),n=Ae(e);t&&n.removeEventListener("DOMContentLoaded",t),vs.has(r)&&(r.HTMLElement.prototype.focus=vs.get(r).focus,n.removeEventListener("keydown",ni,!0),n.removeEventListener("keyup",ni,!0),n.removeEventListener("click",y0,!0),r.removeEventListener("focus",x0,!0),r.removeEventListener("blur",w0,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Kt,!0),n.removeEventListener("pointermove",Kt,!0),n.removeEventListener("pointerup",Kt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Kt,!0),n.removeEventListener("mousemove",Kt,!0),n.removeEventListener("mouseup",Kt,!0)),vs.delete(r))};function w_(e){const t=Ae(e);let r;return t.readyState!=="loading"?oi(e):(r=()=>{oi(e)},t.addEventListener("DOMContentLoaded",r)),()=>C0(e,r)}typeof document<"u"&&w_();function xo(){return Ir!=="pointer"}function ys(){return Ir}function _c(e){Ir=e,ri(e,null)}function C_(){oi();let[e,t]=g.useState(Ir);return g.useEffect(()=>{let r=()=>{t(Ir)};return bs.add(r),()=>{bs.delete(r)}},[]),Qn()?null:e}const S_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k_(e,t,r){let n=Ae(r?.target);const o=typeof window<"u"?kt(r?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?kt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?kt(r?.target).HTMLElement:HTMLElement,i=typeof window<"u"?kt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!S_.has(n.activeElement.type)||n.activeElement instanceof s||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof i&&!y_[r.key])}function P_(e,t,r){oi(),g.useEffect(()=>{let n=(o,s)=>{k_(!!r?.isTextInput,o,s)&&e(xo())};return bs.add(n),()=>{bs.delete(n)}},t)}function Et(e){const t=Ae(e);if(ys()==="virtual"){let r=xt(t);Gg(()=>{const n=xt(t);(n===r||n===t.body)&&e.isConnected&&Vt(e)})}else Vt(e)}function S0(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const s=g.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),a=l0(s),i=g.useCallback(l=>{const u=Ae(l.target),c=u?xt(u):xt();l.target===l.currentTarget&&c===je(l.nativeEvent)&&(r&&r(l),o&&o(!0),a(l))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?s:void 0}}}function k0(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function P0(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:k0(e.onKeyDown),onKeyUp:k0(e.onKeyUp)}}}let $_=g.createContext(null);function E_(e){let t=g.useContext($_)||{};Xg(t,e);let{ref:r,...n}=t;return n}function rn(e,t){let{focusProps:r}=S0(e),{keyboardProps:n}=P0(e),o=Ce(r,n),s=E_(t),a=e.isDisabled?{}:s,i=g.useRef(e.autoFocus);g.useEffect(()=>{i.current&&t.current&&Et(t.current),i.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Ce({...o,tabIndex:l},a)}}function T_({children:e}){let t=g.useMemo(()=>({register:()=>{}}),[]);return g.createElement($c.Provider,{value:t},e)}function kn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=g.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:i}=bn(),l=g.useCallback(d=>{d.currentTarget.contains(d.target)&&s.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(s.current.isFocusWithin=!1,i(),r&&r(d),o&&o(!1))},[r,o,s,i]),u=l0(l),c=g.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const p=Ae(d.target),h=xt(p);if(!s.current.isFocusWithin&&h===je(d.nativeEvent)){n&&n(d),o&&o(!0),s.current.isFocusWithin=!0,u(d);let m=d.currentTarget;a(p,"focus",b=>{if(s.current.isFocusWithin&&!We(m,b.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:b.target});i0(v,m);let y=Sc(v);l(y)}},{capture:!0})}},[n,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let si=!1,ai=0;function Ic(){si=!0,setTimeout(()=>{si=!1},50)}function $0(e){e.pointerType==="touch"&&Ic()}function D_(){if(!(typeof document>"u"))return ai===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",$0):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Ic)),ai++,()=>{ai--,!(ai>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",$0):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Ic))}}function vt(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[s,a]=g.useState(!1),i=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(D_,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=bn(),{hoverProps:c,triggerHoverEnd:d}=g.useMemo(()=>{let p=(b,v)=>{if(i.pointerType=v,o||v==="touch"||i.isHovered||!b.currentTarget.contains(b.target))return;i.isHovered=!0;let y=b.currentTarget;i.target=y,l(Ae(b.target),"pointerover",x=>{i.isHovered&&i.target&&!We(i.target,x.target)&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:v}),r&&r(!0),a(!0)},h=(b,v)=>{let y=i.target;i.pointerType="",i.target=null,!(v==="touch"||!i.isHovered||!y)&&(i.isHovered=!1,u(),n&&n({type:"hoverend",target:y,pointerType:v}),r&&r(!1),a(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=b=>{si&&b.pointerType==="mouse"||p(b,b.pointerType)},m.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&h(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=b=>{!i.ignoreEmulatedMouseEvents&&!si&&p(b,"mouse"),i.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=b=>{!o&&b.currentTarget.contains(b.target)&&h(b,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,r,n,o,i,l,u]);return g.useEffect(()=>{o&&d({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:c,isHovered:s}}function __(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pt(l=>{r&&ii(l,t)&&(o&&o(l),s.current.isPointerDown=!0)}),i=Pt(l=>{r&&r(l)});g.useEffect(()=>{let l=s.current;if(n)return;const u=t.current,c=Ae(u);if(typeof PointerEvent<"u"){let d=p=>{l.isPointerDown&&ii(p,t)&&i(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&ii(h,t)&&i(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&ii(h,t)&&i(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,n])}function ii(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function E0(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,o=g.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:a}=bn(),i=g.useCallback((m,b,v,y)=>{v===0&&y===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:b,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})),r?.({type:"move",pointerType:b,deltaX:v,deltaY:y,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey}))},[t,r,o]),l=Pt(i),u=g.useCallback((m,b)=>{Qa(),o.current.didMove&&n?.({type:"moveend",pointerType:b,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})},[n,o]),c=Pt(u),[d,p]=g.useState(null);return Be(()=>{if(d==="pointer"){let m=v=>{if(v.pointerId===o.current.id){var y,x;let S=v.pointerType||"mouse";var w,C;l(v,S,v.pageX-((w=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&w!==void 0?w:0),v.pageY-((C=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&C!==void 0?C:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},b=v=>{if(v.pointerId===o.current.id){let y=v.pointerType||"mouse";c(v,y),o.current.id=null,a(window,"pointermove",m,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1),p(null)}};return s(window,"pointermove",m,!1),s(window,"pointerup",b,!1),s(window,"pointercancel",b,!1),()=>{a(window,"pointermove",m,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}}else if(d==="mouse"&&process.env.NODE_ENV==="test"){let m=v=>{if(v.button===0){var y,x,w,C;l(v,"mouse",v.pageX-((w=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&w!==void 0?w:0),v.pageY-((C=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&C!==void 0?C:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},b=v=>{v.button===0&&(c(v,"mouse"),a(window,"mousemove",m,!1),a(window,"mouseup",b,!1),p(null))};return s(window,"mousemove",m,!1),s(window,"mouseup",b,!1),()=>{a(window,"mousemove",m,!1),a(window,"mouseup",b,!1)}}else if(d==="touch"&&process.env.NODE_ENV==="test"){let m=v=>{let y=[...v.changedTouches].findIndex(({identifier:k})=>k===o.current.id);if(y>=0){var x,w;let{pageX:k,pageY:D}=v.changedTouches[y];var C,S;l(v,"touch",k-((C=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&C!==void 0?C:0),D-((S=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&S!==void 0?S:0)),o.current.lastPosition={pageX:k,pageY:D}}},b=v=>{[...v.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(c(v,"touch"),o.current.id=null,a(window,"touchmove",m),a(window,"touchend",b),a(window,"touchcancel",b),p(null))};return s(window,"touchmove",m,!1),s(window,"touchend",b,!1),s(window,"touchcancel",b,!1),()=>{a(window,"touchmove",m,!1),a(window,"touchend",b,!1),a(window,"touchcancel",b,!1)}}},[d,s,a]),{moveProps:g.useMemo(()=>{let m={},b=()=>{Pc(),o.current.didMove=!1};typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"?(m.onMouseDown=y=>{y.button===0&&(b(),y.stopPropagation(),y.preventDefault(),o.current.lastPosition={pageX:y.pageX,pageY:y.pageY},p("mouse"))},m.onTouchStart=y=>{if(y.changedTouches.length===0||o.current.id!=null)return;let{pageX:x,pageY:w,identifier:C}=y.changedTouches[0];b(),y.stopPropagation(),y.preventDefault(),o.current.lastPosition={pageX:x,pageY:w},o.current.id=C,p("touch")}):m.onPointerDown=y=>{y.button===0&&o.current.id==null&&(b(),y.stopPropagation(),y.preventDefault(),o.current.lastPosition={pageX:y.pageX,pageY:y.pageY},o.current.id=y.pointerId,p("pointer"))};let v=(y,x,w)=>{b(),i(y,"keyboard",x,w),u(y,"keyboard")};return m.onKeyDown=y=>{switch(y.key){case"Left":case"ArrowLeft":y.preventDefault(),y.stopPropagation(),v(y,-1,0);break;case"Right":case"ArrowRight":y.preventDefault(),y.stopPropagation(),v(y,1,0);break;case"Up":case"ArrowUp":y.preventDefault(),y.stopPropagation(),v(y,0,-1);break;case"Down":case"ArrowDown":y.preventDefault(),y.stopPropagation(),v(y,0,1);break}},m},[o,i,u])}}const I_=500;function T0(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:s=I_,accessibilityDescription:a}=e;const i=g.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=bn(),{pressProps:c}=jt({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),i.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Ae(p.target).activeElement!==p.target&&Vt(p.target),o&&o({...p,type:"longpress"}),i.current=void 0},s),p.pointerType==="touch")){let h=m=>{m.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){i.current&&clearTimeout(i.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=$a(o&&!t?a:void 0);return{longPressProps:Ce(c,d)}}const D0=g.createContext(null),Ac="react-aria-focus-scope-restore";let Re=null;function A_(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,s=g.useRef(null),a=g.useRef(null),i=g.useRef([]),{parentNode:l}=g.useContext(D0)||{},u=g.useMemo(()=>new Oc({scopeRef:i}),[i]);Be(()=>{let p=l||st.root;if(st.getTreeNode(p.scopeRef)&&Re&&!li(Re,p.scopeRef)){let h=st.getTreeNode(Re);h&&(p=h)}p.addChild(u),st.addNode(u)},[u,l]),Be(()=>{let p=st.getTreeNode(i);p&&(p.contain=!!r)},[r]),Be(()=>{var p;let h=(p=s.current)===null||p===void 0?void 0:p.nextSibling,m=[],b=v=>v.stopPropagation();for(;h&&h!==a.current;)m.push(h),h.addEventListener(Ac,b),h=h.nextSibling;return i.current=m,()=>{for(let v of m)v.removeEventListener(Ac,b)}},[t]),B_(i,n,r),O_(i,r),z_(i,n,r),F_(i,o),g.useEffect(()=>{const p=xt(Ae(i.current?i.current[0]:void 0));let h=null;if(Wt(p,i.current)){for(let m of st.traverse())m.scopeRef&&Wt(p,m.scopeRef.current)&&(h=m);h===st.getTreeNode(i)&&(Re=h.scopeRef)}},[i]),Be(()=>()=>{var p,h,m;let b=(m=(h=st.getTreeNode(i))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(i===Re||li(i,Re))&&(!b||st.getTreeNode(b))&&(Re=b),st.removeTreeNode(i)},[i]);let c=g.useMemo(()=>N_(i),[]),d=g.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return g.createElement(D0.Provider,{value:d},g.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,g.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function N_(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:s,accept:a}=t;var i;let l=n||xt(Ae((i=r[0])!==null&&i!==void 0?i:void 0)),u=r[0].previousElementSibling,c=Pn(r),d=Lt(c,{tabbable:o,accept:a},r);d.currentNode=Wt(l,r)?l:u;let p=d.nextNode();return!p&&s&&(d.currentNode=u,p=d.nextNode()),p&&Ar(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:s,accept:a}=t;var i;let l=n||xt(Ae((i=r[0])!==null&&i!==void 0?i:void 0)),u=r[r.length-1].nextElementSibling,c=Pn(r),d=Lt(c,{tabbable:o,accept:a},r);d.currentNode=Wt(l,r)?l:u;let p=d.previousNode();return!p&&s&&(d.currentNode=u,p=d.previousNode()),p&&Ar(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,s=Pn(r),a=Lt(s,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let i=a.nextNode();return i&&Ar(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,s=Pn(r),a=Lt(s,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let i=a.previousNode();return i&&Ar(i,!0),i}}}function Pn(e){return e[0].parentElement}function xs(e){let t=st.getTreeNode(Re);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function M_(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ae(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(s=>!s.form);else{var r,n;let s=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...s??[]]}return t?!t.some(s=>s.checked):!1}function O_(e,t){let r=g.useRef(void 0),n=g.useRef(void 0);Be(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const s=Ae(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!xs(e)||u.isComposing)return;let c=xt(s),d=e.current;if(!d||!Wt(c,d))return;let p=Pn(d),h=Lt(p,{tabbable:!0},d);if(!c)return;h.currentNode=c;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&Ar(m,!0)},i=u=>{(!Re||li(Re,e))&&Wt(je(u),e.current)?(Re=e,r.current=je(u)):xs(e)&&!nn(je(u),e)?r.current?r.current.focus():Re&&Re.current&&Nc(Re.current):xs(e)&&(r.current=je(u))},l=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=ys(),d=(c==="virtual"||c===null)&&ss()&&Ug(),p=xt(s);if(!d&&p&&xs(e)&&!nn(p,e)){Re=e;let m=je(u);if(m&&m.isConnected){var h;r.current=m,(h=r.current)===null||h===void 0||h.focus()}else Re.current&&Nc(Re.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",i,!1),o?.forEach(u=>u.addEventListener("focusin",i,!1)),o?.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",i,!1),o?.forEach(u=>u.removeEventListener("focusin",i,!1)),o?.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),Be(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function _0(e){return nn(e)}function Wt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function nn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of st.traverse(st.getTreeNode(t)))if(r&&Wt(e,r.current))return!0;return!1}function j_(e){return nn(e,Re)}function li(e,t){var r;let n=(r=st.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Ar(e,t=!1){if(e!=null&&!t)try{Et(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function I0(e,t=!0){let r=e[0].previousElementSibling,n=Pn(e),o=Lt(n,{tabbable:t},e);o.currentNode=r;let s=o.nextNode();return t&&!s&&(n=Pn(e),o=Lt(n,{tabbable:!1},e),o.currentNode=r,s=o.nextNode()),s}function Nc(e,t=!0){Ar(I0(e,t))}function F_(e,t){const r=g.useRef(t);g.useEffect(()=>{if(r.current){Re=e;const n=Ae(e.current?e.current[0]:void 0);!Wt(xt(n),Re.current)&&e.current&&Nc(e.current)}r.current=!1},[e])}function B_(e,t,r){Be(()=>{if(t||r)return;let n=e.current;const o=Ae(n?n[0]:void 0);let s=a=>{let i=je(a);Wt(i,e.current)?Re=e:_0(i)||(Re=null)};return o.addEventListener("focusin",s,!1),n?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),n?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,r])}function A0(e){let t=st.getTreeNode(Re);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function z_(e,t,r){const n=g.useRef(typeof document<"u"?xt(Ae(e.current?e.current[0]:void 0)):null);Be(()=>{let o=e.current;const s=Ae(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!Re||li(Re,e))&&Wt(xt(s),e.current)&&(Re=e)};return s.addEventListener("focusin",a,!1),o?.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),o?.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,r]),Be(()=>{const o=Ae(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!xs(e)||a.isComposing)return;let i=o.activeElement;if(!nn(i,e)||!A0(e))return;let l=st.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=Lt(o.body,{tabbable:!0});c.currentNode=i;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!d||!nn(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(nn(d,e));a.preventDefault(),a.stopPropagation(),d?Ar(d,!0):_0(u)?Ar(u,!0):i.blur()}};return r||o.addEventListener("keydown",s,!0),()=>{r||o.removeEventListener("keydown",s,!0)}},[e,t,r]),Be(()=>{const o=Ae(e.current?e.current[0]:void 0);if(!t)return;let s=st.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let i=st.getTreeNode(e);if(!i)return;let l=i.nodeToRestore,u=xt(o);if(t&&l&&(u&&nn(u,e)||u===o.body&&A0(e))){let c=st.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){N0(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&st.getTreeNode(d.scopeRef)){let p=I0(d.scopeRef.current,!0);N0(p);return}d=d.parent}}})}}}},[e,t])}function N0(e){e.dispatchEvent(new CustomEvent(Ac,{bubbles:!0,cancelable:!0}))&&Ar(e)}function Lt(e,t,r){let n=t?.tabbable?rb:tb,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=Ae(o),a=A5(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)||t?.tabbable&&i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(!M_(i)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===i.name)?NodeFilter.FILTER_REJECT:n(i)&&(!r||Wt(i,r))&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}class Mc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let s=new Oc({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),n&&(s.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Wt(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(s=>n&&n.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Mc;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Oc({scopeRef:null}),this.fastMap.set(null,this.root)}}class Oc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let st=new Mc;function rt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=g.useRef({isFocused:!1,isFocusVisible:t||xo()}),[s,a]=g.useState(!1),[i,l]=g.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=g.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=g.useCallback(h=>{o.current.isFocused=h,a(h),u()},[u]);P_(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:r});let{focusProps:d}=S0({isDisabled:n,onFocusChange:c}),{focusWithinProps:p}=kn({isDisabled:!n,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:i,focusProps:n?p:d}}function M0(e,t){let r=t?.isDisabled,[n,o]=g.useState(!1);return Be(()=>{if(e?.current&&!r){let s=()=>{if(e.current){let i=Lt(e.current,{tabbable:!0});o(!!i.nextNode())}};s();let a=new MutationObserver(s);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r?!1:n}function O0(e){let t=V_(Ae(e));t!==e&&(t&&L_(t,e),e&&j0(e,t))}function L_(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function j0(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function V_(e){let t=xt(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function F0(e,t,r){let{type:n}=e,{isOpen:o}=t;g.useEffect(()=>{r&&r.current&&s0.set(r.current,t.close)});let s;n==="menu"?s=!0:n==="listbox"&&(s="listbox");let a=bt();return{triggerProps:{"aria-haspopup":s,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const ws=typeof document<"u"&&window.visualViewport;let ui=0,jc;function Fc(e={}){let{isDisabled:t}=e;Be(()=>{if(!t)return ui++,ui===1&&(Sa()?jc=K_():jc=R_()),()=>{ui--,ui===0&&jc()}},[t])}function R_(){let e=window.innerWidth-document.documentElement.clientWidth;return Ur(e>0&&("scrollbarGutter"in document.documentElement.style?Bc(document.documentElement,"scrollbarGutter","stable"):Bc(document.documentElement,"paddingRight",`${e}px`)),Bc(document.documentElement,"overflow","hidden"))}function K_(){let e,t=!1,r=l=>{let u=l.target;e=ro(u)?u:Gr(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
52
|
+
`.trim(),E.head.prepend(j)},[p]),g.useEffect(()=>{let E=v.current;return()=>{var j;d||Qa((j=E.target)!==null&&j!==void 0?j:void 0);for(let T of E.disposables)T();E.disposables=[]}},[d]),{isPressed:l||m,pressProps:Ce(h,U,{[h0]:!0})}}function Ec(e){return e.tagName==="A"&&e.hasAttribute("href")}function Tc(e,t){const{key:r,code:n}=e,o=t,s=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof kt(o).HTMLInputElement&&!v0(o,r)||o instanceof kt(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&Ec(o))&&r!=="Enter")}function h_(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function m0(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function tn(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Cn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function m_(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function g_(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function g0(e,t){let r=t.getBoundingClientRect(),n=m_(e);return g_(r,n)}function b_(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ec(e)}function b0(e,t){return e instanceof HTMLInputElement?!v0(e,t):b_(e)}const v_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function v0(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":v_.has(e.type)}let Ir=null,bs=new Set,vs=new Map,Sn=!1,Dc=!1;const y_={Tab:!0,Escape:!0};function ri(e,t){for(let r of bs)r(e,t)}function x_(e){return!(e.metaKey||!Hr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ni(e){Sn=!0,!Tr.isOpening&&x_(e)&&(Ir="keyboard",ri("keyboard",e))}function Kt(e){Ir="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Sn=!0,ri("pointer",e))}function y0(e){!Tr.isOpening&&fu(e)&&(Sn=!0,Ir="virtual")}function x0(e){e.target===window||e.target===document||Ja||!e.isTrusted||(!Sn&&!Dc&&(Ir="virtual",ri("virtual",e)),Sn=!1,Dc=!1)}function w0(){Ja||(Sn=!1,Dc=!0)}function oi(e){if(typeof window>"u"||typeof document>"u"||vs.get(kt(e)))return;const t=kt(e),r=Ae(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Sn=!0,n.apply(this,arguments)},r.addEventListener("keydown",ni,!0),r.addEventListener("keyup",ni,!0),r.addEventListener("click",y0,!0),t.addEventListener("focus",x0,!0),t.addEventListener("blur",w0,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Kt,!0),r.addEventListener("pointermove",Kt,!0),r.addEventListener("pointerup",Kt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Kt,!0),r.addEventListener("mousemove",Kt,!0),r.addEventListener("mouseup",Kt,!0)),t.addEventListener("beforeunload",()=>{C0(e)},{once:!0}),vs.set(t,{focus:n})}const C0=(e,t)=>{const r=kt(e),n=Ae(e);t&&n.removeEventListener("DOMContentLoaded",t),vs.has(r)&&(r.HTMLElement.prototype.focus=vs.get(r).focus,n.removeEventListener("keydown",ni,!0),n.removeEventListener("keyup",ni,!0),n.removeEventListener("click",y0,!0),r.removeEventListener("focus",x0,!0),r.removeEventListener("blur",w0,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Kt,!0),n.removeEventListener("pointermove",Kt,!0),n.removeEventListener("pointerup",Kt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Kt,!0),n.removeEventListener("mousemove",Kt,!0),n.removeEventListener("mouseup",Kt,!0)),vs.delete(r))};function w_(e){const t=Ae(e);let r;return t.readyState!=="loading"?oi(e):(r=()=>{oi(e)},t.addEventListener("DOMContentLoaded",r)),()=>C0(e,r)}typeof document<"u"&&w_();function xo(){return Ir!=="pointer"}function ys(){return Ir}function _c(e){Ir=e,ri(e,null)}function C_(){oi();let[e,t]=g.useState(Ir);return g.useEffect(()=>{let r=()=>{t(Ir)};return bs.add(r),()=>{bs.delete(r)}},[]),Qn()?null:e}const S_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k_(e,t,r){let n=Ae(r?.target);const o=typeof window<"u"?kt(r?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?kt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?kt(r?.target).HTMLElement:HTMLElement,i=typeof window<"u"?kt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!S_.has(n.activeElement.type)||n.activeElement instanceof s||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof i&&!y_[r.key])}function P_(e,t,r){oi(),g.useEffect(()=>{let n=(o,s)=>{k_(!!r?.isTextInput,o,s)&&e(xo())};return bs.add(n),()=>{bs.delete(n)}},t)}function Et(e){const t=Ae(e);if(ys()==="virtual"){let r=xt(t);Gg(()=>{const n=xt(t);(n===r||n===t.body)&&e.isConnected&&Vt(e)})}else Vt(e)}function S0(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const s=g.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),a=l0(s),i=g.useCallback(l=>{const u=Ae(l.target),c=u?xt(u):xt();l.target===l.currentTarget&&c===je(l.nativeEvent)&&(r&&r(l),o&&o(!0),a(l))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?s:void 0}}}function k0(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function P0(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:k0(e.onKeyDown),onKeyUp:k0(e.onKeyUp)}}}let $_=g.createContext(null);function E_(e){let t=g.useContext($_)||{};Xg(t,e);let{ref:r,...n}=t;return n}function rn(e,t){let{focusProps:r}=S0(e),{keyboardProps:n}=P0(e),o=Ce(r,n),s=E_(t),a=e.isDisabled?{}:s,i=g.useRef(e.autoFocus);g.useEffect(()=>{i.current&&t.current&&Et(t.current),i.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Ce({...o,tabIndex:l},a)}}function T_({children:e}){let t=g.useMemo(()=>({register:()=>{}}),[]);return g.createElement($c.Provider,{value:t},e)}function kn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=g.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:i}=bn(),l=g.useCallback(d=>{d.currentTarget.contains(d.target)&&s.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(s.current.isFocusWithin=!1,i(),r&&r(d),o&&o(!1))},[r,o,s,i]),u=l0(l),c=g.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const p=Ae(d.target),h=xt(p);if(!s.current.isFocusWithin&&h===je(d.nativeEvent)){n&&n(d),o&&o(!0),s.current.isFocusWithin=!0,u(d);let m=d.currentTarget;a(p,"focus",b=>{if(s.current.isFocusWithin&&!We(m,b.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:b.target});i0(v,m);let y=Sc(v);l(y)}},{capture:!0})}},[n,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let si=!1,ai=0;function Ic(){si=!0,setTimeout(()=>{si=!1},50)}function $0(e){e.pointerType==="touch"&&Ic()}function D_(){if(!(typeof document>"u"))return ai===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",$0):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Ic)),ai++,()=>{ai--,!(ai>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",$0):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Ic))}}function vt(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[s,a]=g.useState(!1),i=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(D_,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=bn(),{hoverProps:c,triggerHoverEnd:d}=g.useMemo(()=>{let p=(b,v)=>{if(i.pointerType=v,o||v==="touch"||i.isHovered||!b.currentTarget.contains(b.target))return;i.isHovered=!0;let y=b.currentTarget;i.target=y,l(Ae(b.target),"pointerover",x=>{i.isHovered&&i.target&&!We(i.target,x.target)&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:v}),r&&r(!0),a(!0)},h=(b,v)=>{let y=i.target;i.pointerType="",i.target=null,!(v==="touch"||!i.isHovered||!y)&&(i.isHovered=!1,u(),n&&n({type:"hoverend",target:y,pointerType:v}),r&&r(!1),a(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=b=>{si&&b.pointerType==="mouse"||p(b,b.pointerType)},m.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&h(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=b=>{!i.ignoreEmulatedMouseEvents&&!si&&p(b,"mouse"),i.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=b=>{!o&&b.currentTarget.contains(b.target)&&h(b,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,r,n,o,i,l,u]);return g.useEffect(()=>{o&&d({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:c,isHovered:s}}function __(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pt(l=>{r&&ii(l,t)&&(o&&o(l),s.current.isPointerDown=!0)}),i=Pt(l=>{r&&r(l)});g.useEffect(()=>{let l=s.current;if(n)return;const u=t.current,c=Ae(u);if(typeof PointerEvent<"u"){let d=p=>{l.isPointerDown&&ii(p,t)&&i(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&ii(h,t)&&i(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&ii(h,t)&&i(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,n])}function ii(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function E0(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,o=g.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:a}=bn(),i=g.useCallback((m,b,v,y)=>{v===0&&y===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:b,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})),r?.({type:"move",pointerType:b,deltaX:v,deltaY:y,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey}))},[t,r,o]),l=Pt(i),u=g.useCallback((m,b)=>{Qa(),o.current.didMove&&n?.({type:"moveend",pointerType:b,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})},[n,o]),c=Pt(u),[d,p]=g.useState(null);return Be(()=>{if(d==="pointer"){let m=v=>{if(v.pointerId===o.current.id){var y,x;let S=v.pointerType||"mouse";var w,C;l(v,S,v.pageX-((w=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&w!==void 0?w:0),v.pageY-((C=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&C!==void 0?C:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},b=v=>{if(v.pointerId===o.current.id){let y=v.pointerType||"mouse";c(v,y),o.current.id=null,a(window,"pointermove",m,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1),p(null)}};return s(window,"pointermove",m,!1),s(window,"pointerup",b,!1),s(window,"pointercancel",b,!1),()=>{a(window,"pointermove",m,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}}else if(d==="mouse"&&process.env.NODE_ENV==="test"){let m=v=>{if(v.button===0){var y,x,w,C;l(v,"mouse",v.pageX-((w=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&w!==void 0?w:0),v.pageY-((C=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&C!==void 0?C:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},b=v=>{v.button===0&&(c(v,"mouse"),a(window,"mousemove",m,!1),a(window,"mouseup",b,!1),p(null))};return s(window,"mousemove",m,!1),s(window,"mouseup",b,!1),()=>{a(window,"mousemove",m,!1),a(window,"mouseup",b,!1)}}else if(d==="touch"&&process.env.NODE_ENV==="test"){let m=v=>{let y=[...v.changedTouches].findIndex(({identifier:k})=>k===o.current.id);if(y>=0){var x,w;let{pageX:k,pageY:D}=v.changedTouches[y];var C,S;l(v,"touch",k-((C=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&C!==void 0?C:0),D-((S=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&S!==void 0?S:0)),o.current.lastPosition={pageX:k,pageY:D}}},b=v=>{[...v.changedTouches].findIndex(({identifier:x})=>x===o.current.id)>=0&&(c(v,"touch"),o.current.id=null,a(window,"touchmove",m),a(window,"touchend",b),a(window,"touchcancel",b),p(null))};return s(window,"touchmove",m,!1),s(window,"touchend",b,!1),s(window,"touchcancel",b,!1),()=>{a(window,"touchmove",m,!1),a(window,"touchend",b,!1),a(window,"touchcancel",b,!1)}}},[d,s,a]),{moveProps:g.useMemo(()=>{let m={},b=()=>{Pc(),o.current.didMove=!1};typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"?(m.onMouseDown=y=>{y.button===0&&(b(),y.stopPropagation(),y.preventDefault(),o.current.lastPosition={pageX:y.pageX,pageY:y.pageY},p("mouse"))},m.onTouchStart=y=>{if(y.changedTouches.length===0||o.current.id!=null)return;let{pageX:x,pageY:w,identifier:C}=y.changedTouches[0];b(),y.stopPropagation(),y.preventDefault(),o.current.lastPosition={pageX:x,pageY:w},o.current.id=C,p("touch")}):m.onPointerDown=y=>{y.button===0&&o.current.id==null&&(b(),y.stopPropagation(),y.preventDefault(),o.current.lastPosition={pageX:y.pageX,pageY:y.pageY},o.current.id=y.pointerId,p("pointer"))};let v=(y,x,w)=>{b(),i(y,"keyboard",x,w),u(y,"keyboard")};return m.onKeyDown=y=>{switch(y.key){case"Left":case"ArrowLeft":y.preventDefault(),y.stopPropagation(),v(y,-1,0);break;case"Right":case"ArrowRight":y.preventDefault(),y.stopPropagation(),v(y,1,0);break;case"Up":case"ArrowUp":y.preventDefault(),y.stopPropagation(),v(y,0,-1);break;case"Down":case"ArrowDown":y.preventDefault(),y.stopPropagation(),v(y,0,1);break}},m},[o,i,u])}}const I_=500;function T0(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:s=I_,accessibilityDescription:a}=e;const i=g.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=bn(),{pressProps:c}=jt({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),i.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Ae(p.target).activeElement!==p.target&&Vt(p.target),o&&o({...p,type:"longpress"}),i.current=void 0},s),p.pointerType==="touch")){let h=m=>{m.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){i.current&&clearTimeout(i.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=$a(o&&!t?a:void 0);return{longPressProps:Ce(c,d)}}const D0=g.createContext(null),Ac="react-aria-focus-scope-restore";let Re=null;function A_(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,s=g.useRef(null),a=g.useRef(null),i=g.useRef([]),{parentNode:l}=g.useContext(D0)||{},u=g.useMemo(()=>new Oc({scopeRef:i}),[i]);Be(()=>{let p=l||st.root;if(st.getTreeNode(p.scopeRef)&&Re&&!li(Re,p.scopeRef)){let h=st.getTreeNode(Re);h&&(p=h)}p.addChild(u),st.addNode(u)},[u,l]),Be(()=>{let p=st.getTreeNode(i);p&&(p.contain=!!r)},[r]),Be(()=>{var p;let h=(p=s.current)===null||p===void 0?void 0:p.nextSibling,m=[],b=v=>v.stopPropagation();for(;h&&h!==a.current;)m.push(h),h.addEventListener(Ac,b),h=h.nextSibling;return i.current=m,()=>{for(let v of m)v.removeEventListener(Ac,b)}},[t]),B_(i,n,r),O_(i,r),z_(i,n,r),F_(i,o),g.useEffect(()=>{const p=xt(Ae(i.current?i.current[0]:void 0));let h=null;if(Wt(p,i.current)){for(let m of st.traverse())m.scopeRef&&Wt(p,m.scopeRef.current)&&(h=m);h===st.getTreeNode(i)&&(Re=h.scopeRef)}},[i]),Be(()=>()=>{var p,h,m;let b=(m=(h=st.getTreeNode(i))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(i===Re||li(i,Re))&&(!b||st.getTreeNode(b))&&(Re=b),st.removeTreeNode(i)},[i]);let c=g.useMemo(()=>N_(i),[]),d=g.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return g.createElement(D0.Provider,{value:d},g.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,g.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function N_(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:s,accept:a}=t;var i;let l=n||xt(Ae((i=r[0])!==null&&i!==void 0?i:void 0)),u=r[0].previousElementSibling,c=Pn(r),d=Lt(c,{tabbable:o,accept:a},r);d.currentNode=Wt(l,r)?l:u;let p=d.nextNode();return!p&&s&&(d.currentNode=u,p=d.nextNode()),p&&Ar(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:s,accept:a}=t;var i;let l=n||xt(Ae((i=r[0])!==null&&i!==void 0?i:void 0)),u=r[r.length-1].nextElementSibling,c=Pn(r),d=Lt(c,{tabbable:o,accept:a},r);d.currentNode=Wt(l,r)?l:u;let p=d.previousNode();return!p&&s&&(d.currentNode=u,p=d.previousNode()),p&&Ar(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,s=Pn(r),a=Lt(s,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let i=a.nextNode();return i&&Ar(i,!0),i},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,s=Pn(r),a=Lt(s,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let i=a.previousNode();return i&&Ar(i,!0),i}}}function Pn(e){return e[0].parentElement}function xs(e){let t=st.getTreeNode(Re);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function M_(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ae(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(s=>!s.form);else{var r,n;let s=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...s??[]]}return t?!t.some(s=>s.checked):!1}function O_(e,t){let r=g.useRef(void 0),n=g.useRef(void 0);Be(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const s=Ae(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!xs(e)||u.isComposing)return;let c=xt(s),d=e.current;if(!d||!Wt(c,d))return;let p=Pn(d),h=Lt(p,{tabbable:!0},d);if(!c)return;h.currentNode=c;let m=u.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),m&&Ar(m,!0)},i=u=>{(!Re||li(Re,e))&&Wt(je(u),e.current)?(Re=e,r.current=je(u)):xs(e)&&!nn(je(u),e)?r.current?r.current.focus():Re&&Re.current&&Nc(Re.current):xs(e)&&(r.current=je(u))},l=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=ys(),d=(c==="virtual"||c===null)&&ss()&&Ug(),p=xt(s);if(!d&&p&&xs(e)&&!nn(p,e)){Re=e;let m=je(u);if(m&&m.isConnected){var h;r.current=m,(h=r.current)===null||h===void 0||h.focus()}else Re.current&&Nc(Re.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",i,!1),o?.forEach(u=>u.addEventListener("focusin",i,!1)),o?.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",i,!1),o?.forEach(u=>u.removeEventListener("focusin",i,!1)),o?.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),Be(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function _0(e){return nn(e)}function Wt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function nn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of st.traverse(st.getTreeNode(t)))if(r&&Wt(e,r.current))return!0;return!1}function j_(e){return nn(e,Re)}function li(e,t){var r;let n=(r=st.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Ar(e,t=!1){if(e!=null&&!t)try{Et(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function I0(e,t=!0){let r=e[0].previousElementSibling,n=Pn(e),o=Lt(n,{tabbable:t},e);o.currentNode=r;let s=o.nextNode();return t&&!s&&(n=Pn(e),o=Lt(n,{tabbable:!1},e),o.currentNode=r,s=o.nextNode()),s}function Nc(e,t=!0){Ar(I0(e,t))}function F_(e,t){const r=g.useRef(t);g.useEffect(()=>{if(r.current){Re=e;const n=Ae(e.current?e.current[0]:void 0);!Wt(xt(n),Re.current)&&e.current&&Nc(e.current)}r.current=!1},[e])}function B_(e,t,r){Be(()=>{if(t||r)return;let n=e.current;const o=Ae(n?n[0]:void 0);let s=a=>{let i=je(a);Wt(i,e.current)?Re=e:_0(i)||(Re=null)};return o.addEventListener("focusin",s,!1),n?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),n?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,r])}function A0(e){let t=st.getTreeNode(Re);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function z_(e,t,r){const n=g.useRef(typeof document<"u"?xt(Ae(e.current?e.current[0]:void 0)):null);Be(()=>{let o=e.current;const s=Ae(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!Re||li(Re,e))&&Wt(xt(s),e.current)&&(Re=e)};return s.addEventListener("focusin",a,!1),o?.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),o?.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,r]),Be(()=>{const o=Ae(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!xs(e)||a.isComposing)return;let i=o.activeElement;if(!nn(i,e)||!A0(e))return;let l=st.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=Lt(o.body,{tabbable:!0});c.currentNode=i;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!d||!nn(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(nn(d,e));a.preventDefault(),a.stopPropagation(),d?Ar(d,!0):_0(u)?Ar(u,!0):i.blur()}};return r||o.addEventListener("keydown",s,!0),()=>{r||o.removeEventListener("keydown",s,!0)}},[e,t,r]),Be(()=>{const o=Ae(e.current?e.current[0]:void 0);if(!t)return;let s=st.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let i=st.getTreeNode(e);if(!i)return;let l=i.nodeToRestore,u=xt(o);if(t&&l&&(u&&nn(u,e)||u===o.body&&A0(e))){let c=st.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){N0(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&st.getTreeNode(d.scopeRef)){let p=I0(d.scopeRef.current,!0);N0(p);return}d=d.parent}}})}}}},[e,t])}function N0(e){e.dispatchEvent(new CustomEvent(Ac,{bubbles:!0,cancelable:!0}))&&Ar(e)}function Lt(e,t,r){let n=t?.tabbable?rb:tb,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=Ae(o),a=A5(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)||t?.tabbable&&i.tagName==="INPUT"&&i.getAttribute("type")==="radio"&&(!M_(i)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===i.name)?NodeFilter.FILTER_REJECT:n(i)&&(!r||Wt(i,r))&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}class Mc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let s=new Oc({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),n&&(s.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Wt(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(s=>n&&n.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Mc;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Oc({scopeRef:null}),this.fastMap.set(null,this.root)}}class Oc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let st=new Mc;function nt(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=g.useRef({isFocused:!1,isFocusVisible:t||xo()}),[s,a]=g.useState(!1),[i,l]=g.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=g.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=g.useCallback(h=>{o.current.isFocused=h,a(h),u()},[u]);P_(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:r});let{focusProps:d}=S0({isDisabled:n,onFocusChange:c}),{focusWithinProps:p}=kn({isDisabled:!n,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:i,focusProps:n?p:d}}function M0(e,t){let r=t?.isDisabled,[n,o]=g.useState(!1);return Be(()=>{if(e?.current&&!r){let s=()=>{if(e.current){let i=Lt(e.current,{tabbable:!0});o(!!i.nextNode())}};s();let a=new MutationObserver(s);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r?!1:n}function O0(e){let t=V_(Ae(e));t!==e&&(t&&L_(t,e),e&&j0(e,t))}function L_(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function j0(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function V_(e){let t=xt(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function F0(e,t,r){let{type:n}=e,{isOpen:o}=t;g.useEffect(()=>{r&&r.current&&s0.set(r.current,t.close)});let s;n==="menu"?s=!0:n==="listbox"&&(s="listbox");let a=bt();return{triggerProps:{"aria-haspopup":s,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const ws=typeof document<"u"&&window.visualViewport;let ui=0,jc;function Fc(e={}){let{isDisabled:t}=e;Be(()=>{if(!t)return ui++,ui===1&&(Sa()?jc=K_():jc=R_()),()=>{ui--,ui===0&&jc()}},[t])}function R_(){let e=window.innerWidth-document.documentElement.clientWidth;return Ur(e>0&&("scrollbarGutter"in document.documentElement.style?Bc(document.documentElement,"scrollbarGutter","stable"):Bc(document.documentElement,"paddingRight",`${e}px`)),Bc(document.documentElement,"overflow","hidden"))}function K_(){let e,t=!1,r=l=>{let u=l.target;e=ro(u)?u:Gr(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
53
53
|
@layer {
|
|
54
54
|
* {
|
|
55
55
|
overscroll-behavior: contain;
|
|
56
56
|
}
|
|
57
|
-
}`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},s=l=>{let u=l.target,c=l.relatedTarget;if(c&&cu(c))c.focus({preventScroll:!0}),B0(c,cu(u));else if(!c){var d;let p=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");p?.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&cu(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&B0(this,u)};let i=Ur(zc(document,"touchstart",r,{passive:!1,capture:!0}),zc(document,"touchmove",o,{passive:!1,capture:!0}),zc(document,"blur",s,!0));return()=>{i(),n.remove(),HTMLElement.prototype.focus=a}}function Bc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function zc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function B0(e,t){t||!ws?z0(e):ws.addEventListener("resize",()=>z0(e),{once:!0})}function z0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Gr(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+r.clientHeight){let a=o.bottom;ws&&(a=Math.min(a,ws.offsetTop+ws.height));let i=s.top-o.top-((a-o.top)/2-s.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+i)),behavior:"smooth"})}}r=n.parentElement}}const W_=g.createContext({});function L0(){var e;return(e=g.useContext(W_))!==null&&e!==void 0?e:{}}const Lc=g.createContext(null);function U_(e){let{children:t}=e,r=g.useContext(Lc),[n,o]=g.useState(0),s=g.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return g.createElement(Lc.Provider,{value:s},t)}function H_(){let e=g.useContext(Lc);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function q_(e){let{modalProviderProps:t}=H_();return g.createElement("div",{"data-overlay-container":!0,...e,...t})}function G_(e){return g.createElement(U_,null,g.createElement(q_,e))}function V0(e){let t=Qn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=L0();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let s=g.createElement(G_,n);return Hn.createPortal(s,r)}var R0={};R0={dismiss:"تجاهل"};var K0={};K0={dismiss:"Отхвърляне"};var W0={};W0={dismiss:"Odstranit"};var U0={};U0={dismiss:"Luk"};var H0={};H0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var G0={};G0={dismiss:"Dismiss"};var Z0={};Z0={dismiss:"Descartar"};var Y0={};Y0={dismiss:"Lõpeta"};var J0={};J0={dismiss:"Hylkää"};var X0={};X0={dismiss:"Rejeter"};var Q0={};Q0={dismiss:"התעלם"};var ey={};ey={dismiss:"Odbaci"};var ty={};ty={dismiss:"Elutasítás"};var ry={};ry={dismiss:"Ignora"};var ny={};ny={dismiss:"閉じる"};var oy={};oy={dismiss:"무시"};var sy={};sy={dismiss:"Atmesti"};var ay={};ay={dismiss:"Nerādīt"};var iy={};iy={dismiss:"Lukk"};var ly={};ly={dismiss:"Negeren"};var uy={};uy={dismiss:"Zignoruj"};var cy={};cy={dismiss:"Descartar"};var dy={};dy={dismiss:"Dispensar"};var fy={};fy={dismiss:"Revocare"};var py={};py={dismiss:"Пропустить"};var hy={};hy={dismiss:"Zrušiť"};var my={};my={dismiss:"Opusti"};var gy={};gy={dismiss:"Odbaci"};var by={};by={dismiss:"Avvisa"};var vy={};vy={dismiss:"Kapat"};var yy={};yy={dismiss:"Скасувати"};var xy={};xy={dismiss:"取消"};var wy={};wy={dismiss:"關閉"};var Cy={};Cy={"ar-AE":R0,"bg-BG":K0,"cs-CZ":W0,"da-DK":U0,"de-DE":H0,"el-GR":q0,"en-US":G0,"es-ES":Z0,"et-EE":Y0,"fi-FI":J0,"fr-FR":X0,"he-IL":Q0,"hr-HR":ey,"hu-HU":ty,"it-IT":ry,"ja-JP":ny,"ko-KR":oy,"lt-LT":sy,"lv-LV":ay,"nb-NO":iy,"nl-NL":ly,"pl-PL":uy,"pt-BR":cy,"pt-PT":dy,"ro-RO":fy,"ru-RU":py,"sk-SK":hy,"sl-SI":my,"sr-SP":gy,"sv-SE":by,"tr-TR":vy,"uk-UA":yy,"zh-CN":xy,"zh-TW":wy};const Sy={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ky(e={}){let{style:t,isFocusable:r}=e,[n,o]=g.useState(!1),{focusWithinProps:s}=kn({isDisabled:!r,onFocusWithinChange:i=>o(i)}),a=g.useMemo(()=>n?t:t?{...Sy,...t}:Sy,[n]);return{visuallyHiddenProps:{...s,style:a}}}function wo(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...s}=e,{visuallyHiddenProps:a}=ky(e);return g.createElement(r,Ce(s,a),t)}function Z_(e){return e&&e.__esModule?e.default:e}function ci(e){let{onDismiss:t,...r}=e,n=Wr(Z_(Cy),"@react-aria/overlays"),o=Pa(r,n.format("dismiss")),s=()=>{t&&t()};return g.createElement(wo,null,g.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}const Y_=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Cs=new WeakMap,Ut=[];function J_(e,t){let r=kt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let s=(o=n?.root)!==null&&o!==void 0?o:document.body,a=n?.shouldUseInert&&Y_,i=new Set(e),l=new Set,u=b=>a&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,v)=>{a&&b instanceof r.HTMLElement?b.inert=v:v?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let w of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(w);let v=w=>{if(l.has(w)||i.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of i)if(w.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(b);if(x===NodeFilter.FILTER_ACCEPT&&p(b),x!==NodeFilter.FILTER_REJECT){let w=y.nextNode();for(;w!=null;)p(w),w=y.nextNode()}},p=b=>{var v;let y=(v=Cs.get(b))!==null&&v!==void 0?v:0;u(b)&&y===0||(y===0&&c(b,!0),l.add(b),Cs.set(b,y+1))};Ut.length&&Ut[Ut.length-1].disconnect(),d(s);let h=new MutationObserver(b=>{for(let v of b)if(v.type==="childList"&&![...i,...l].some(y=>y.contains(v.target)))for(let y of v.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?i.add(y):y instanceof Element&&d(y)});h.observe(s,{childList:!0,subtree:!0});let m={visibleNodes:i,hiddenNodes:l,observe(){h.observe(s,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Ut.push(m),()=>{h.disconnect();for(let b of l){let v=Cs.get(b);v!=null&&(v===1?(c(b,!1),Cs.delete(b)):Cs.set(b,v-1))}m===Ut[Ut.length-1]?(Ut.pop(),Ut.length&&Ut[Ut.length-1].observe()):Ut.splice(Ut.indexOf(m),1)}}const Py=g.createContext(null);function $y(e){let t=Qn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,s]=g.useState(!1),a=g.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:i}=L0();if(!e.portalContainer&&i&&(r=i()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=g.createElement(A_,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=g.createElement(Py.Provider,{value:a},g.createElement(T_,null,l)),Hn.createPortal(l,r)}function Ey(){let e=g.useContext(Py),t=e?.setContain;Be(()=>{t?.(!0)},[t])}function Ty(e){const t=et(),r=t?.labelPlacement;return g.useMemo(()=>{var n,o;const s=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,r,e.label])}function Se(e){return g.forwardRef(e)}var pt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,a)=>({...s,[a]:e[a]}),{}),n]:[e,n]},$n=globalThis?.document?g.useLayoutEffect:g.useEffect;function Dy(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:s,srcSet:a,sizes:i,loading:l,shouldBypassImageLoad:u=!1}=e,c=XE(),d=g.useRef(c?new Image:null),[p,h]=g.useState("pending");g.useEffect(()=>{d.current&&(d.current.onload=v=>{m(),h("loaded"),t?.(v)},d.current.onerror=v=>{m(),h("failed"),r?.(v)})},[d.current]);const m=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},b=g.useCallback(()=>{if(!o)return"pending";if(n||u)return"loaded";const v=new Image;return v.src=o,s&&(v.crossOrigin=s),a&&(v.srcset=a),i&&(v.sizes=i),l&&(v.loading=l),d.current=v,v.complete&&v.naturalWidth?"loaded":"loading"},[o,s,a,i,t,r,l,u]);return $n(()=>{c&&h(b())},[c,b]),n?"loaded":p}function X_(e={}){var t,r,n,o,s,a,i,l;const u=et(),c=r5(),d=!!c,{as:p,ref:h,src:m,name:b,icon:v,classNames:y,fallback:x,alt:w=b||"avatar",imgRef:C,color:S=(t=c?.color)!=null?t:"default",radius:k=(r=c?.radius)!=null?r:"full",size:D=(n=c?.size)!=null?n:"md",isBordered:$=(o=c?.isBordered)!=null?o:!1,isDisabled:_=(s=c?.isDisabled)!=null?s:!1,isFocusable:N=!1,getInitials:A=y$,ignoreFallback:M=!1,showFallback:O=!1,ImgComponent:L="img",imgProps:I,className:z,onError:F,disableAnimation:B,...U}=e,E=p||"span",j=Pe(h),T=Pe(C),{isFocusVisible:V,isFocused:K,focusProps:G}=rt(),{isHovered:Z,hoverProps:W}=vt({isDisabled:_}),ne=(a=B??u?.disableAnimation)!=null?a:!1,X=(l=typeof L=="object"&&((i=L?.displayName)==null?void 0:i.includes("HeroUI")))!=null?l:!1,ee=Dy({src:m,onError:F,ignoreFallback:M,shouldBypassImageLoad:p!==void 0||L!=="img"&&!X})==="loaded",ue=!X,te=(!m||!ee)&&O,Ee=g.useMemo(()=>{var he;return t$({color:S,radius:k,size:D,isBordered:$,isDisabled:_,isInGroup:d,disableAnimation:ne,isInGridGroup:(he=c?.isGrid)!=null?he:!1})},[S,k,D,$,_,ne,d,c?.isGrid]),ve=P(y?.base,z),oe=g.useMemo(()=>N||p==="button",[N,p]),pe=g.useCallback((he={})=>({ref:j,tabIndex:oe?0:-1,"data-hover":H(Z),"data-focus":H(K),"data-focus-visible":H(V),className:Ee.base({class:P(ve,he?.className)}),...ie(U,W,oe?G:{})}),[oe,Ee,ve,G,U]),xe=g.useCallback((he={})=>({ref:T,src:m,"data-loaded":H(ee),className:Ee.img({class:y?.img}),...ie(I,he,Fe({disableAnimation:ne},{enabled:ue}))}),[Ee,ee,I,ne,m,T,ue]);return{Component:E,ImgComponent:L,src:m,alt:w,icon:v,name:b,imgRef:T,slots:Ee,classNames:y,fallback:x,isImgLoaded:ee,showFallback:te,ignoreFallback:M,getInitials:A,getAvatarProps:pe,getImageProps:xe}}var _y=Se((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:s=f.jsx(ZE,{}),alt:a,classNames:i,slots:l,name:u,showFallback:c,fallback:d,getInitials:p,getAvatarProps:h,getImageProps:m}=X_({...e,ref:t}),b=g.useMemo(()=>!c&&o?null:d?f.jsx("div",{"aria-label":a,className:l.fallback({class:i?.fallback}),role:"img",children:d}):u?f.jsx("span",{"aria-label":a,className:l.name({class:i?.name}),role:"img",children:p(u)}):f.jsx("span",{"aria-label":a,className:l.icon({class:i?.icon}),role:"img",children:s}),[c,o,d,u,i]);return f.jsxs(r,{...h(),children:[o&&f.jsx(n,{...m(),alt:a}),b]})});_y.displayName="HeroUI.Avatar";var Ss=_y;function Q_(e){var t,r;const n=et(),o=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,[s,a]=pt(e,_m.variantKeys),{as:i,children:l,className:u,content:c,classNames:d,...p}=s,h=i||"span",m=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===1||e?.isOneChar},[c,e?.isOneChar]),b=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===0},[c]),v=P(d?.badge,u),y=g.useMemo(()=>_m({...a,showOutline:e?.disableOutline?!e?.disableOutline:e?.showOutline,isOneChar:m,isDot:b}),[ft(a),m,b]),x=()=>({className:y.badge({class:v}),"data-invisible":e.isInvisible,...p});return{Component:h,children:l,content:c,slots:y,classNames:d,disableAnimation:o,isInvisible:e?.isInvisible,getBadgeProps:x}}var Iy=Se((e,t)=>{const{Component:r,children:n,content:o,slots:s,classNames:a,getBadgeProps:i}=Q_({...e});return f.jsxs("div",{className:s.base({class:a?.base}),children:[n,f.jsx(r,{ref:t,...i(),children:o})]})});Iy.displayName="HeroUI.Badge";var eI=Iy,[DR,tI]=gn({name:"ButtonGroupContext",strict:!1});function di(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,target:h,rel:m,type:b="button",allowTextSelectionOnPress:v}=e,y;r==="button"?y={type:b,disabled:n}:y={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:x,isPressed:w}=jt({onClick:d,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:u,allowTextSelectionOnPress:v,ref:t}),{focusableProps:C}=rn(e,t);c&&(C.tabIndex=n?-1:C.tabIndex);let S=Ce(C,x,Bt(e,{labelable:!0}));return{isPressed:w,buttonProps:Ce(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var rI=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),Ay=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:s}=e;return f.jsx(f.Fragment,{children:t.map(a=>{const i=C$(.01*a.size,.2,a.size>100?.75:.5);return f.jsx(mo,{features:rI,children:f.jsx(Wa,{mode:"popLayout",children:f.jsx(go.span,{animate:{transform:`translate(${a.x}px, ${a.y}px) scale(2)`,opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:`translate(${a.x}px, ${a.y}px) scale(0)`,opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,width:`${a.size}px`,height:`${a.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{s(a.key)},...r})})},a.key)})})};Ay.displayName="HeroUI.Ripple";var Ny=Ay;function My(e={}){const[t,r]=g.useState([]),n=g.useCallback(s=>{const a=s.target,i=Math.max(a.clientWidth,a.clientHeight);r(l=>[...l,{key:x$(l.length.toString()),size:i,x:s.x-i/2,y:s.y-i/2}])},[]),o=g.useCallback(s=>{r(a=>a.filter(i=>i.key!==s))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function nI(e){var t,r,n,o,s,a,i,l,u;const c=tI(),d=et(),p=!!c,{ref:h,as:m,children:b,startContent:v,endContent:y,autoFocus:x,className:w,spinner:C,isLoading:S=!1,disableRipple:k=!1,fullWidth:D=(t=c?.fullWidth)!=null?t:!1,radius:$=c?.radius,size:_=(r=c?.size)!=null?r:"md",color:N=(n=c?.color)!=null?n:"default",variant:A=(o=c?.variant)!=null?o:"solid",disableAnimation:M=(a=(s=c?.disableAnimation)!=null?s:d?.disableAnimation)!=null?a:!1,isDisabled:O=(i=c?.isDisabled)!=null?i:!1,isIconOnly:L=(l=c?.isIconOnly)!=null?l:!1,spinnerPlacement:I="start",onPress:z,onClick:F,...B}=e,U=m||"button",E=typeof U=="string",j=Pe(h),T=(u=k||d?.disableRipple)!=null?u:M,{isFocusVisible:V,isFocused:K,focusProps:G}=rt({autoFocus:x}),Z=O||S,W=g.useMemo(()=>r$({size:_,color:N,variant:A,radius:$,fullWidth:D,isDisabled:Z,isInGroup:p,disableAnimation:M,isIconOnly:L,className:w}),[_,N,A,$,D,Z,p,L,M,w]),{onPress:ne,onClear:X,ripples:q}=My(),ee=g.useCallback(ge=>{T||Z||M||j.current&&ne(ge)},[T,Z,M,j,ne]),{buttonProps:ue,isPressed:te}=di({elementType:m,isDisabled:Z,onPress:nr(z,ee),onClick:F,...B},j),{isHovered:Ee,hoverProps:ve}=vt({isDisabled:Z}),oe=g.useCallback((ge={})=>({"data-disabled":H(Z),"data-focus":H(K),"data-pressed":H(te),"data-focus-visible":H(V),"data-hover":H(Ee),"data-loading":H(S),...ie(ue,G,ve,Fe(B,{enabled:E}),Fe(ge)),className:W}),[S,Z,K,te,E,V,Ee,ue,G,ve,B,W]),pe=ge=>g.isValidElement(ge)?g.cloneElement(ge,{"aria-hidden":!0,focusable:!1}):null,xe=pe(v),he=pe(y),se=g.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[_],[_]),He=g.useCallback(()=>({ripples:q,onClear:X}),[q,X]);return{Component:U,children:b,domRef:j,spinner:C,styles:W,startContent:xe,endContent:he,isLoading:S,spinnerPlacement:I,spinnerSize:se,disableRipple:T,getButtonProps:oe,getRippleProps:He,isIconOnly:L}}function oI(e){var t,r;const[n,o]=pt(e,Bm.variantKeys),s=et(),a=(r=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?r:"default",{children:i,className:l,classNames:u,label:c,...d}=n,p=g.useMemo(()=>Bm({...o,variant:a}),[ft(o),a]),h=P(u?.base,l),m=c||i,b=g.useMemo(()=>m&&typeof m=="string"?m:d["aria-label"]?"":"Loading",[i,m,d["aria-label"]]),v=g.useCallback(()=>({"aria-label":b,className:p.base({class:h}),...d}),[b,p,h,d]);return{label:m,slots:p,classNames:u,variant:a,getSpinnerProps:v}}var Oy=Se((e,t)=>{const{slots:r,classNames:n,label:o,variant:s,getSpinnerProps:a}=oI({...e});return s==="wave"||s==="dots"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((i,l)=>f.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="simple"?f.jsxs("div",{ref:t,...a(),children:[f.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="spinner"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((i,l)=>f.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):f.jsxs("div",{ref:t,...a(),children:[f.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[f.jsx("i",{className:r.circle1({class:n?.circle1})}),f.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]})});Oy.displayName="HeroUI.Spinner";var jy=Oy,Fy=Se((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:s,spinner:a=f.jsx(jy,{color:"current",size:s}),spinnerPlacement:i,startContent:l,endContent:u,isLoading:c,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:m}=nI({...e,ref:t});return f.jsxs(r,{ref:n,...p(),children:[l,c&&i==="start"&&a,c&&m?null:o,c&&i==="end"&&a,u,!d&&f.jsx(Ny,{...h()})]})});Fy.displayName="HeroUI.Button";var Ht=Fy;function By(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",s="mobiel-assets.imgix.net",a="mobiel-frontend.imgix.net",i="?"+Object.keys(t).map(c=>`${c}=${encodeURIComponent(t[c])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${i}`;let l="",u=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return zy(e)?l=r:fi(e)&&u.includes("mobiel-nl-content")?l=n:fi(e)&&u.includes("mobiel-nl-postpaid")?l=o:Ly(e)?l=s:l=a,fi(e)&&(u=u.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${u}${i}`}function zy(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function fi(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Ly(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Vc(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||zy(e)||Ly(e)||fi(e)||e?.includes("/assets/")&&!e.includes("localhost")}function Vy(e,t="auto",r="auto",n="none"){return Vc(e)?By(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function sI(e,t="auto",r="auto",n="none"){return Vc(e)?[1,2,3,4].map(a=>`${By(e,{w:t,h:r,dpr:a,trim:n,auto:"compress,format",q:95})} ${a}x`).join(", "):""}function Co(){return g.useMemo(()=>[Vy,sI],[])}function Rc(e,t,r,n=6){if(!Vc(e))return e;const o=Math.ceil(r/n),s=Vy(e,t,r),a=s.includes("?")?"&":"?";return`${s}${a}pad-top=${o}&fit=crop&fp-y=0`}function pi({classNames:e,onClick:t,disabled:r=!1,title:n,description:o,imageUrl:s,imageAlt:a,Icon:i,avatarName:l,selected:u=!1}){return f.jsx(Ht,{variant:"bordered",radius:"full",fullWidth:!0,disabled:r,disableAnimation:!0,disableRipple:!0,onPress:t,className:P("h-16 border-0 shadow-small bg-white",e?.button),endContent:u?f.jsx(WE,{size:24,className:"stroke-primary-600"}):f.jsx(zE,{size:24,className:"text-primary-600"}),children:f.jsxs("div",{className:"flex items-center gap-3 h-full w-full min-w-0",children:[f.jsx("div",{className:"h-full flex items-center justify-center",children:f.jsx(eI,{color:"warning",content:"",shape:"circle",isInvisible:u,className:e?.badge,children:f.jsx(Ss,{alt:a||void 0,src:s?Rc(s,64,64):void 0,size:"md",radius:"full",color:"warning",showFallback:!s,fallback:i&&f.jsx(i,{size:24,className:"stroke-primary"}),name:l,classNames:{...e?.avatar,name:P("text-primary font-bold flex items-center justify-center p-4",e?.avatar?.name),base:P("w-10 h-10 bg-primary-100",e?.avatar?.base)}})})}),f.jsxs("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[f.jsx("span",{className:P("font-semibold text-left truncate w-full text-sm",e?.title),children:n}),o&&f.jsx("span",{className:P("text-xs text-foreground-500 text-left truncate w-full",e?.description),children:o})]})]})})}var[aI,hi]=gn({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),Ry=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i,bodyId:l,setBodyMounted:u}=hi(),c=Pe(t),d=r||"div";return g.useEffect(()=>(u(!0),()=>u(!1)),[u]),f.jsx(d,{ref:c,className:a.body({class:P(i?.body,o)}),id:l,...s,children:n})});Ry.displayName="HeroUI.ModalBody";var So=Ry,ks={ease:[.36,.66,.4,1]},mi={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ks.ease}},exit:{opacity:0,transition:{duration:.3,ease:ks.ease}}}},iI={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ks.ease},opacity:{duration:.4,ease:ks.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ks.ease}}},lI=e=>f.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:`
|
|
57
|
+
}`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},s=l=>{let u=l.target,c=l.relatedTarget;if(c&&cu(c))c.focus({preventScroll:!0}),B0(c,cu(u));else if(!c){var d;let p=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");p?.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&cu(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&B0(this,u)};let i=Ur(zc(document,"touchstart",r,{passive:!1,capture:!0}),zc(document,"touchmove",o,{passive:!1,capture:!0}),zc(document,"blur",s,!0));return()=>{i(),n.remove(),HTMLElement.prototype.focus=a}}function Bc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function zc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function B0(e,t){t||!ws?z0(e):ws.addEventListener("resize",()=>z0(e),{once:!0})}function z0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Gr(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+r.clientHeight){let a=o.bottom;ws&&(a=Math.min(a,ws.offsetTop+ws.height));let i=s.top-o.top-((a-o.top)/2-s.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+i)),behavior:"smooth"})}}r=n.parentElement}}const W_=g.createContext({});function L0(){var e;return(e=g.useContext(W_))!==null&&e!==void 0?e:{}}const Lc=g.createContext(null);function U_(e){let{children:t}=e,r=g.useContext(Lc),[n,o]=g.useState(0),s=g.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return g.createElement(Lc.Provider,{value:s},t)}function H_(){let e=g.useContext(Lc);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function q_(e){let{modalProviderProps:t}=H_();return g.createElement("div",{"data-overlay-container":!0,...e,...t})}function G_(e){return g.createElement(U_,null,g.createElement(q_,e))}function V0(e){let t=Qn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=L0();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let s=g.createElement(G_,n);return Hn.createPortal(s,r)}var R0={};R0={dismiss:"تجاهل"};var K0={};K0={dismiss:"Отхвърляне"};var W0={};W0={dismiss:"Odstranit"};var U0={};U0={dismiss:"Luk"};var H0={};H0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var G0={};G0={dismiss:"Dismiss"};var Z0={};Z0={dismiss:"Descartar"};var Y0={};Y0={dismiss:"Lõpeta"};var J0={};J0={dismiss:"Hylkää"};var X0={};X0={dismiss:"Rejeter"};var Q0={};Q0={dismiss:"התעלם"};var ey={};ey={dismiss:"Odbaci"};var ty={};ty={dismiss:"Elutasítás"};var ry={};ry={dismiss:"Ignora"};var ny={};ny={dismiss:"閉じる"};var oy={};oy={dismiss:"무시"};var sy={};sy={dismiss:"Atmesti"};var ay={};ay={dismiss:"Nerādīt"};var iy={};iy={dismiss:"Lukk"};var ly={};ly={dismiss:"Negeren"};var uy={};uy={dismiss:"Zignoruj"};var cy={};cy={dismiss:"Descartar"};var dy={};dy={dismiss:"Dispensar"};var fy={};fy={dismiss:"Revocare"};var py={};py={dismiss:"Пропустить"};var hy={};hy={dismiss:"Zrušiť"};var my={};my={dismiss:"Opusti"};var gy={};gy={dismiss:"Odbaci"};var by={};by={dismiss:"Avvisa"};var vy={};vy={dismiss:"Kapat"};var yy={};yy={dismiss:"Скасувати"};var xy={};xy={dismiss:"取消"};var wy={};wy={dismiss:"關閉"};var Cy={};Cy={"ar-AE":R0,"bg-BG":K0,"cs-CZ":W0,"da-DK":U0,"de-DE":H0,"el-GR":q0,"en-US":G0,"es-ES":Z0,"et-EE":Y0,"fi-FI":J0,"fr-FR":X0,"he-IL":Q0,"hr-HR":ey,"hu-HU":ty,"it-IT":ry,"ja-JP":ny,"ko-KR":oy,"lt-LT":sy,"lv-LV":ay,"nb-NO":iy,"nl-NL":ly,"pl-PL":uy,"pt-BR":cy,"pt-PT":dy,"ro-RO":fy,"ru-RU":py,"sk-SK":hy,"sl-SI":my,"sr-SP":gy,"sv-SE":by,"tr-TR":vy,"uk-UA":yy,"zh-CN":xy,"zh-TW":wy};const Sy={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ky(e={}){let{style:t,isFocusable:r}=e,[n,o]=g.useState(!1),{focusWithinProps:s}=kn({isDisabled:!r,onFocusWithinChange:i=>o(i)}),a=g.useMemo(()=>n?t:t?{...Sy,...t}:Sy,[n]);return{visuallyHiddenProps:{...s,style:a}}}function wo(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...s}=e,{visuallyHiddenProps:a}=ky(e);return g.createElement(r,Ce(s,a),t)}function Z_(e){return e&&e.__esModule?e.default:e}function ci(e){let{onDismiss:t,...r}=e,n=Wr(Z_(Cy),"@react-aria/overlays"),o=Pa(r,n.format("dismiss")),s=()=>{t&&t()};return g.createElement(wo,null,g.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}const Y_=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Cs=new WeakMap,Ut=[];function J_(e,t){let r=kt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let s=(o=n?.root)!==null&&o!==void 0?o:document.body,a=n?.shouldUseInert&&Y_,i=new Set(e),l=new Set,u=b=>a&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,v)=>{a&&b instanceof r.HTMLElement?b.inert=v:v?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let w of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(w);let v=w=>{if(l.has(w)||i.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of i)if(w.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(b);if(x===NodeFilter.FILTER_ACCEPT&&p(b),x!==NodeFilter.FILTER_REJECT){let w=y.nextNode();for(;w!=null;)p(w),w=y.nextNode()}},p=b=>{var v;let y=(v=Cs.get(b))!==null&&v!==void 0?v:0;u(b)&&y===0||(y===0&&c(b,!0),l.add(b),Cs.set(b,y+1))};Ut.length&&Ut[Ut.length-1].disconnect(),d(s);let h=new MutationObserver(b=>{for(let v of b)if(v.type==="childList"&&![...i,...l].some(y=>y.contains(v.target)))for(let y of v.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?i.add(y):y instanceof Element&&d(y)});h.observe(s,{childList:!0,subtree:!0});let m={visibleNodes:i,hiddenNodes:l,observe(){h.observe(s,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Ut.push(m),()=>{h.disconnect();for(let b of l){let v=Cs.get(b);v!=null&&(v===1?(c(b,!1),Cs.delete(b)):Cs.set(b,v-1))}m===Ut[Ut.length-1]?(Ut.pop(),Ut.length&&Ut[Ut.length-1].observe()):Ut.splice(Ut.indexOf(m),1)}}const Py=g.createContext(null);function $y(e){let t=Qn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,s]=g.useState(!1),a=g.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:i}=L0();if(!e.portalContainer&&i&&(r=i()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=g.createElement(A_,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=g.createElement(Py.Provider,{value:a},g.createElement(T_,null,l)),Hn.createPortal(l,r)}function Ey(){let e=g.useContext(Py),t=e?.setContain;Be(()=>{t?.(!0)},[t])}function Ty(e){const t=tt(),r=t?.labelPlacement;return g.useMemo(()=>{var n,o;const s=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,r,e.label])}function Se(e){return g.forwardRef(e)}var pt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,a)=>({...s,[a]:e[a]}),{}),n]:[e,n]},$n=globalThis?.document?g.useLayoutEffect:g.useEffect;function Dy(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:s,srcSet:a,sizes:i,loading:l,shouldBypassImageLoad:u=!1}=e,c=XE(),d=g.useRef(c?new Image:null),[p,h]=g.useState("pending");g.useEffect(()=>{d.current&&(d.current.onload=v=>{m(),h("loaded"),t?.(v)},d.current.onerror=v=>{m(),h("failed"),r?.(v)})},[d.current]);const m=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},b=g.useCallback(()=>{if(!o)return"pending";if(n||u)return"loaded";const v=new Image;return v.src=o,s&&(v.crossOrigin=s),a&&(v.srcset=a),i&&(v.sizes=i),l&&(v.loading=l),d.current=v,v.complete&&v.naturalWidth?"loaded":"loading"},[o,s,a,i,t,r,l,u]);return $n(()=>{c&&h(b())},[c,b]),n?"loaded":p}function X_(e={}){var t,r,n,o,s,a,i,l;const u=tt(),c=r5(),d=!!c,{as:p,ref:h,src:m,name:b,icon:v,classNames:y,fallback:x,alt:w=b||"avatar",imgRef:C,color:S=(t=c?.color)!=null?t:"default",radius:k=(r=c?.radius)!=null?r:"full",size:D=(n=c?.size)!=null?n:"md",isBordered:$=(o=c?.isBordered)!=null?o:!1,isDisabled:_=(s=c?.isDisabled)!=null?s:!1,isFocusable:N=!1,getInitials:A=y$,ignoreFallback:M=!1,showFallback:O=!1,ImgComponent:L="img",imgProps:I,className:z,onError:F,disableAnimation:B,...U}=e,E=p||"span",j=Pe(h),T=Pe(C),{isFocusVisible:V,isFocused:K,focusProps:G}=nt(),{isHovered:Z,hoverProps:W}=vt({isDisabled:_}),ne=(a=B??u?.disableAnimation)!=null?a:!1,X=(l=typeof L=="object"&&((i=L?.displayName)==null?void 0:i.includes("HeroUI")))!=null?l:!1,ee=Dy({src:m,onError:F,ignoreFallback:M,shouldBypassImageLoad:p!==void 0||L!=="img"&&!X})==="loaded",ue=!X,te=(!m||!ee)&&O,Ee=g.useMemo(()=>{var he;return t$({color:S,radius:k,size:D,isBordered:$,isDisabled:_,isInGroup:d,disableAnimation:ne,isInGridGroup:(he=c?.isGrid)!=null?he:!1})},[S,k,D,$,_,ne,d,c?.isGrid]),ve=P(y?.base,z),oe=g.useMemo(()=>N||p==="button",[N,p]),pe=g.useCallback((he={})=>({ref:j,tabIndex:oe?0:-1,"data-hover":H(Z),"data-focus":H(K),"data-focus-visible":H(V),className:Ee.base({class:P(ve,he?.className)}),...ie(U,W,oe?G:{})}),[oe,Ee,ve,G,U]),xe=g.useCallback((he={})=>({ref:T,src:m,"data-loaded":H(ee),className:Ee.img({class:y?.img}),...ie(I,he,Fe({disableAnimation:ne},{enabled:ue}))}),[Ee,ee,I,ne,m,T,ue]);return{Component:E,ImgComponent:L,src:m,alt:w,icon:v,name:b,imgRef:T,slots:Ee,classNames:y,fallback:x,isImgLoaded:ee,showFallback:te,ignoreFallback:M,getInitials:A,getAvatarProps:pe,getImageProps:xe}}var _y=Se((e,t)=>{const{Component:r,ImgComponent:n,src:o,icon:s=f.jsx(ZE,{}),alt:a,classNames:i,slots:l,name:u,showFallback:c,fallback:d,getInitials:p,getAvatarProps:h,getImageProps:m}=X_({...e,ref:t}),b=g.useMemo(()=>!c&&o?null:d?f.jsx("div",{"aria-label":a,className:l.fallback({class:i?.fallback}),role:"img",children:d}):u?f.jsx("span",{"aria-label":a,className:l.name({class:i?.name}),role:"img",children:p(u)}):f.jsx("span",{"aria-label":a,className:l.icon({class:i?.icon}),role:"img",children:s}),[c,o,d,u,i]);return f.jsxs(r,{...h(),children:[o&&f.jsx(n,{...m(),alt:a}),b]})});_y.displayName="HeroUI.Avatar";var Ss=_y;function Q_(e){var t,r;const n=tt(),o=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,[s,a]=pt(e,_m.variantKeys),{as:i,children:l,className:u,content:c,classNames:d,...p}=s,h=i||"span",m=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===1||e?.isOneChar},[c,e?.isOneChar]),b=g.useMemo(()=>{var w;return((w=String(c))==null?void 0:w.length)===0},[c]),v=P(d?.badge,u),y=g.useMemo(()=>_m({...a,showOutline:e?.disableOutline?!e?.disableOutline:e?.showOutline,isOneChar:m,isDot:b}),[ft(a),m,b]),x=()=>({className:y.badge({class:v}),"data-invisible":e.isInvisible,...p});return{Component:h,children:l,content:c,slots:y,classNames:d,disableAnimation:o,isInvisible:e?.isInvisible,getBadgeProps:x}}var Iy=Se((e,t)=>{const{Component:r,children:n,content:o,slots:s,classNames:a,getBadgeProps:i}=Q_({...e});return f.jsxs("div",{className:s.base({class:a?.base}),children:[n,f.jsx(r,{ref:t,...i(),children:o})]})});Iy.displayName="HeroUI.Badge";var eI=Iy,[DR,tI]=gn({name:"ButtonGroupContext",strict:!1});function di(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,target:h,rel:m,type:b="button",allowTextSelectionOnPress:v}=e,y;r==="button"?y={type:b,disabled:n}:y={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:x,isPressed:w}=jt({onClick:d,onPressStart:s,onPressEnd:a,onPressUp:i,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:u,allowTextSelectionOnPress:v,ref:t}),{focusableProps:C}=rn(e,t);c&&(C.tabIndex=n?-1:C.tabIndex);let S=Ce(C,x,Bt(e,{labelable:!0}));return{isPressed:w,buttonProps:Ce(y,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var rI=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),Ay=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:s}=e;return f.jsx(f.Fragment,{children:t.map(a=>{const i=C$(.01*a.size,.2,a.size>100?.75:.5);return f.jsx(mo,{features:rI,children:f.jsx(Wa,{mode:"popLayout",children:f.jsx(go.span,{animate:{transform:`translate(${a.x}px, ${a.y}px) scale(2)`,opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:`translate(${a.x}px, ${a.y}px) scale(0)`,opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,width:`${a.size}px`,height:`${a.size}px`,...o},transition:{duration:i},onAnimationComplete:()=>{s(a.key)},...r})})},a.key)})})};Ay.displayName="HeroUI.Ripple";var Ny=Ay;function My(e={}){const[t,r]=g.useState([]),n=g.useCallback(s=>{const a=s.target,i=Math.max(a.clientWidth,a.clientHeight);r(l=>[...l,{key:x$(l.length.toString()),size:i,x:s.x-i/2,y:s.y-i/2}])},[]),o=g.useCallback(s=>{r(a=>a.filter(i=>i.key!==s))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function nI(e){var t,r,n,o,s,a,i,l,u;const c=tI(),d=tt(),p=!!c,{ref:h,as:m,children:b,startContent:v,endContent:y,autoFocus:x,className:w,spinner:C,isLoading:S=!1,disableRipple:k=!1,fullWidth:D=(t=c?.fullWidth)!=null?t:!1,radius:$=c?.radius,size:_=(r=c?.size)!=null?r:"md",color:N=(n=c?.color)!=null?n:"default",variant:A=(o=c?.variant)!=null?o:"solid",disableAnimation:M=(a=(s=c?.disableAnimation)!=null?s:d?.disableAnimation)!=null?a:!1,isDisabled:O=(i=c?.isDisabled)!=null?i:!1,isIconOnly:L=(l=c?.isIconOnly)!=null?l:!1,spinnerPlacement:I="start",onPress:z,onClick:F,...B}=e,U=m||"button",E=typeof U=="string",j=Pe(h),T=(u=k||d?.disableRipple)!=null?u:M,{isFocusVisible:V,isFocused:K,focusProps:G}=nt({autoFocus:x}),Z=O||S,W=g.useMemo(()=>r$({size:_,color:N,variant:A,radius:$,fullWidth:D,isDisabled:Z,isInGroup:p,disableAnimation:M,isIconOnly:L,className:w}),[_,N,A,$,D,Z,p,L,M,w]),{onPress:ne,onClear:X,ripples:q}=My(),ee=g.useCallback(ge=>{T||Z||M||j.current&&ne(ge)},[T,Z,M,j,ne]),{buttonProps:ue,isPressed:te}=di({elementType:m,isDisabled:Z,onPress:nr(z,ee),onClick:F,...B},j),{isHovered:Ee,hoverProps:ve}=vt({isDisabled:Z}),oe=g.useCallback((ge={})=>({"data-disabled":H(Z),"data-focus":H(K),"data-pressed":H(te),"data-focus-visible":H(V),"data-hover":H(Ee),"data-loading":H(S),...ie(ue,G,ve,Fe(B,{enabled:E}),Fe(ge)),className:W}),[S,Z,K,te,E,V,Ee,ue,G,ve,B,W]),pe=ge=>g.isValidElement(ge)?g.cloneElement(ge,{"aria-hidden":!0,focusable:!1}):null,xe=pe(v),he=pe(y),se=g.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[_],[_]),He=g.useCallback(()=>({ripples:q,onClear:X}),[q,X]);return{Component:U,children:b,domRef:j,spinner:C,styles:W,startContent:xe,endContent:he,isLoading:S,spinnerPlacement:I,spinnerSize:se,disableRipple:T,getButtonProps:oe,getRippleProps:He,isIconOnly:L}}function oI(e){var t,r;const[n,o]=pt(e,Bm.variantKeys),s=tt(),a=(r=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?r:"default",{children:i,className:l,classNames:u,label:c,...d}=n,p=g.useMemo(()=>Bm({...o,variant:a}),[ft(o),a]),h=P(u?.base,l),m=c||i,b=g.useMemo(()=>m&&typeof m=="string"?m:d["aria-label"]?"":"Loading",[i,m,d["aria-label"]]),v=g.useCallback(()=>({"aria-label":b,className:p.base({class:h}),...d}),[b,p,h,d]);return{label:m,slots:p,classNames:u,variant:a,getSpinnerProps:v}}var Oy=Se((e,t)=>{const{slots:r,classNames:n,label:o,variant:s,getSpinnerProps:a}=oI({...e});return s==="wave"||s==="dots"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((i,l)=>f.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="simple"?f.jsxs("div",{ref:t,...a(),children:[f.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="spinner"?f.jsxs("div",{ref:t,...a(),children:[f.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((i,l)=>f.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]}):f.jsxs("div",{ref:t,...a(),children:[f.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[f.jsx("i",{className:r.circle1({class:n?.circle1})}),f.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&f.jsx("span",{className:r.label({class:n?.label}),children:o})]})});Oy.displayName="HeroUI.Spinner";var jy=Oy,Fy=Se((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:s,spinner:a=f.jsx(jy,{color:"current",size:s}),spinnerPlacement:i,startContent:l,endContent:u,isLoading:c,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:m}=nI({...e,ref:t});return f.jsxs(r,{ref:n,...p(),children:[l,c&&i==="start"&&a,c&&m?null:o,c&&i==="end"&&a,u,!d&&f.jsx(Ny,{...h()})]})});Fy.displayName="HeroUI.Button";var Ht=Fy;function By(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",s="mobiel-assets.imgix.net",a="mobiel-frontend.imgix.net",i="?"+Object.keys(t).map(c=>`${c}=${encodeURIComponent(t[c])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${i}`;let l="",u=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return zy(e)?l=r:fi(e)&&u.includes("mobiel-nl-content")?l=n:fi(e)&&u.includes("mobiel-nl-postpaid")?l=o:Ly(e)?l=s:l=a,fi(e)&&(u=u.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${u}${i}`}function zy(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function fi(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Ly(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Vc(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||zy(e)||Ly(e)||fi(e)||e?.includes("/assets/")&&!e.includes("localhost")}function Vy(e,t="auto",r="auto",n="none"){return Vc(e)?By(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function sI(e,t="auto",r="auto",n="none"){return Vc(e)?[1,2,3,4].map(a=>`${By(e,{w:t,h:r,dpr:a,trim:n,auto:"compress,format",q:95})} ${a}x`).join(", "):""}function Co(){return g.useMemo(()=>[Vy,sI],[])}function Rc(e,t,r,n=6){if(!Vc(e))return e;const o=Math.ceil(r/n),s=Vy(e,t,r),a=s.includes("?")?"&":"?";return`${s}${a}pad-top=${o}&fit=crop&fp-y=0`}function pi({classNames:e,onClick:t,disabled:r=!1,title:n,description:o,imageUrl:s,imageAlt:a,Icon:i,avatarName:l,selected:u=!1}){return f.jsx(Ht,{variant:"bordered",radius:"full",fullWidth:!0,disabled:r,disableAnimation:!0,disableRipple:!0,onPress:t,className:P("h-16 border-0 shadow-small bg-white",e?.button),endContent:u?f.jsx(WE,{size:24,className:P("stroke-primary-600",e?.icon)}):f.jsx(zE,{size:24,className:P("text-primary-600",e?.icon)}),children:f.jsxs("div",{className:"flex items-center gap-3 h-full w-full min-w-0",children:[f.jsx("div",{className:"h-full flex items-center justify-center",children:f.jsx(eI,{color:"warning",content:"",shape:"circle",isInvisible:u,className:e?.badge,children:f.jsx(Ss,{alt:a||void 0,src:s?Rc(s,64,64):void 0,size:"md",radius:"full",color:"warning",showFallback:!s,fallback:i&&f.jsx(i,{size:24,className:"stroke-primary"}),name:l,classNames:{...e?.avatar,name:P("text-primary font-bold flex items-center justify-center p-4",e?.avatar?.name),base:P("size-10 bg-primary-100",e?.avatar?.base)}})})}),f.jsxs("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[f.jsx("span",{className:P("font-semibold text-left truncate w-full text-sm",e?.title),children:n}),o&&f.jsx("span",{className:P("text-xs text-foreground-500 text-left truncate w-full",e?.description),children:o})]})]})})}const Ry=g.createContext({});function aI({children:e,classNames:t={}}){return f.jsx(Ry,{value:t,children:e})}function Ye(){return g.useContext(Ry)}var[iI,hi]=gn({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),Ky=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i,bodyId:l,setBodyMounted:u}=hi(),c=Pe(t),d=r||"div";return g.useEffect(()=>(u(!0),()=>u(!1)),[u]),f.jsx(d,{ref:c,className:a.body({class:P(i?.body,o)}),id:l,...s,children:n})});Ky.displayName="HeroUI.ModalBody";var So=Ky,ks={ease:[.36,.66,.4,1]},mi={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ks.ease}},exit:{opacity:0,transition:{duration:.3,ease:ks.ease}}}},lI={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ks.ease},opacity:{duration:.4,ease:ks.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ks.ease}}},uI=e=>f.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:`
|
|
58
58
|
M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2Z
|
|
59
59
|
M16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54
|
|
60
60
|
C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64
|
|
61
61
|
C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z
|
|
62
|
-
`})}),uI=e=>f.jsx("svg",{className:"fill-current",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{clipRule:"evenodd",d:"M3 10.417C3 7.219 3 5.62 3.378 5.082C3.755 4.545 5.258 4.03 8.265 3.001L8.838 2.805C10.405 2.268 11.188 2 12 2C12.812 2 13.595 2.268 15.162 2.805L15.735 3.001C18.742 4.03 20.245 4.545 20.622 5.082C21 5.62 21 7.22 21 10.417V11.991C21 17.629 16.761 20.366 14.101 21.527C13.38 21.842 13.02 22 12 22C10.98 22 10.62 21.842 9.899 21.527C7.239 20.365 3 17.63 3 11.991V10.417ZM12 7.25C12.1989 7.25 12.3897 7.32902 12.5303 7.46967C12.671 7.61032 12.75 7.80109 12.75 8V12C12.75 12.1989 12.671 12.3897 12.5303 12.5303C12.3897 12.671 12.1989 12.75 12 12.75C11.8011 12.75 11.6103 12.671 11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V8C11.25 7.80109 11.329 7.61032 11.4697 7.46967C11.6103 7.32902 11.8011 7.25 12 7.25ZM12 16C12.2652 16 12.5196 15.8946 12.7071 15.7071C12.8946 15.5196 13 15.2652 13 15C13 14.7348 12.8946 14.4804 12.7071 14.2929C12.5196 14.1054 12.2652 14 12 14C11.7348 14 11.4804 14.1054 11.2929 14.2929C11.1054 14.4804 11 14.7348 11 15C11 15.2652 11.1054 15.5196 11.2929 15.7071C11.4804 15.8946 11.7348 16 12 16Z",fill:"currentColor",fillRule:"evenodd"})}),Ky=e=>f.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22ZM12.75 16C12.75 16.41 12.41 16.75 12 16.75C11.59 16.75 11.25 16.41 11.25 16L11.25 11C11.25 10.59 11.59 10.25 12 10.25C12.41 10.25 12.75 10.59 12.75 11L12.75 16ZM11.08 7.62C11.13 7.49 11.2 7.39 11.29 7.29C11.39 7.2 11.5 7.13 11.62 7.08C11.74 7.03 11.87 7 12 7C12.13 7 12.26 7.03 12.38 7.08C12.5 7.13 12.61 7.2 12.71 7.29C12.8 7.39 12.87 7.49 12.92 7.62C12.97 7.74 13 7.87 13 8C13 8.13 12.97 8.26 12.92 8.38C12.87 8.5 12.8 8.61 12.71 8.71C12.61 8.8 12.5 8.87 12.38 8.92C12.14 9.02 11.86 9.02 11.62 8.92C11.5 8.87 11.39 8.8 11.29 8.71C11.2 8.61 11.13 8.5 11.08 8.38C11.03 8.26 11 8.13 11 8C11 7.87 11.03 7.74 11.08 7.62Z"})}),Kc=e=>f.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:f.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),Wy=e=>{const{isSelected:t,isIndeterminate:r,disableAnimation:n,...o}=e;return f.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...o,children:f.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},cI=e=>f.jsx("svg",{className:"fill-current",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M17.51 3.85L11.57 0.42C10.6 -0.14 9.4 -0.14 8.42 0.42L2.49 3.85C1.52 4.41 0.919998 5.45 0.919998 6.58V13.42C0.919998 14.54 1.52 15.58 2.49 16.15L8.43 19.58C9.4 20.14 10.6 20.14 11.58 19.58L17.52 16.15C18.49 15.59 19.09 14.55 19.09 13.42V6.58C19.08 5.45 18.48 4.42 17.51 3.85ZM9.25 5.75C9.25 5.34 9.59 5 10 5C10.41 5 10.75 5.34 10.75 5.75V11C10.75 11.41 10.41 11.75 10 11.75C9.59 11.75 9.25 11.41 9.25 11V5.75ZM10.92 14.63C10.87 14.75 10.8 14.86 10.71 14.96C10.52 15.15 10.27 15.25 10 15.25C9.87 15.25 9.74 15.22 9.62 15.17C9.49 15.12 9.39 15.05 9.29 14.96C9.2 14.86 9.13 14.75 9.07 14.63C9.02 14.51 9 14.38 9 14.25C9 13.99 9.1 13.73 9.29 13.54C9.39 13.45 9.49 13.38 9.62 13.33C9.99 13.17 10.43 13.26 10.71 13.54C10.8 13.64 10.87 13.74 10.92 13.87C10.97 13.99 11 14.12 11 14.25C11 14.38 10.97 14.51 10.92 14.63Z"})}),Uy=({strokeWidth:e=1.5,...t})=>f.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:f.jsx("path",{d:"m6 9 6 6 6-6"})});function Hy(e,t){let{role:r="dialog"}=e,n=os();n=e["aria-label"]?void 0:n;let o=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Et(t.current);let s=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Et(t.current)),o.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),Ey(),{dialogProps:{...Bt(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:s=>{o.current&&s.stopPropagation()}},titleProps:{id:n}}}var mr=typeof document<"u"&&window.visualViewport,dI=g.createContext(!1);function fI(){return!1}function pI(){return!0}function hI(e){return()=>{}}function mI(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(hI,fI,pI):g.useContext(dI)}function gI(){let e=mI(),[t,r]=g.useState(()=>e?{width:0,height:0}:qy());return g.useEffect(()=>{let n=()=>{r(o=>{let s=qy();return s.width===o.width&&s.height===o.height?o:s})};return mr?mr.addEventListener("resize",n):window.addEventListener("resize",n),()=>{mr?mr.removeEventListener("resize",n):window.removeEventListener("resize",n)}},[]),t}function qy(){return{width:mr&&mr?.width||window.innerWidth,height:mr&&mr?.height||window.innerHeight}}var Gy=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),Zy=e=>{const{as:t,children:r,role:n="dialog",...o}=e,{Component:s,domRef:a,slots:i,classNames:l,motionProps:u,backdrop:c,closeButton:d,hideCloseButton:p,disableAnimation:h,getDialogProps:m,getBackdropProps:b,getCloseButtonProps:v,onClose:y}=hi(),x=t||s||"div",w=gI(),{dialogProps:C}=Hy({role:n},a),S=g.isValidElement(d)?g.cloneElement(d,v()):f.jsx("button",{...v(),children:f.jsx(Wy,{})}),k=g.useCallback(M=>{M.key==="Tab"&&M.nativeEvent.isComposing&&(M.stopPropagation(),M.preventDefault())},[]),D=m(ie(C,o)),$=f.jsxs(x,{...D,onKeyDown:nr(D.onKeyDown,k),children:[f.jsx(ci,{onDismiss:y}),!p&&S,typeof r=="function"?r(y):r,f.jsx(ci,{onDismiss:y})]}),_=g.useMemo(()=>c==="transparent"?null:h?f.jsx("div",{...b()}):f.jsx(mo,{features:Gy,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.fade,...b()})}),[c,h,b]),N={"--visual-viewport-height":w.height+"px"},A=h?f.jsx("div",{className:i.wrapper({class:l?.wrapper}),"data-slot":"wrapper",style:N,children:$}):f.jsx(mo,{features:Gy,children:f.jsx(go.div,{animate:"enter",className:i.wrapper({class:l?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:iI,...u,style:N,children:$})});return f.jsxs("div",{tabIndex:-1,children:[_,A]})};Zy.displayName="HeroUI.ModalContent";var ko=Zy,Yy=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i}=hi(),l=Pe(t),u=r||"footer";return f.jsx(u,{ref:l,className:a.footer({class:P(i?.footer,o)}),...s,children:n})});Yy.displayName="HeroUI.ModalFooter";var Ps=Yy,Jy=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i,headerId:l,setHeaderMounted:u}=hi(),c=Pe(t),d=r||"header";return g.useEffect(()=>(u(!0),()=>u(!1)),[u]),f.jsx(d,{ref:c,className:a.header({class:P(i?.header,o)}),id:l,...s,children:n})});Jy.displayName="HeroUI.ModalHeader";var Po=Jy,gr=[];function Wc(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:s,onClose:a,shouldCloseOnBlur:i,shouldCloseOnInteractOutside:l}=e;g.useEffect(()=>{if(s&&!gr.includes(t))return gr.push(t),()=>{let v=gr.indexOf(t);v>=0&&gr.splice(v,1)}},[s,t]);const u=()=>{gr[gr.length-1]===t&&a&&a()},c=v=>{(!l||l(v.target))&&(gr[gr.length-1]===t&&r&&(v.stopPropagation(),v.preventDefault()),b(t)!=="pressEnd"&&u())},d=v=>{(!l||l(v.target))&&(gr[gr.length-1]===t&&r&&(v.stopPropagation(),v.preventDefault()),u())},p=v=>{v.key==="Escape"&&!o&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),u())};__({isDisabled:!(n&&s),onInteractOutside:n&&s?d:void 0,onInteractOutsideStart:c,ref:t});const{focusWithinProps:h}=kn({isDisabled:!i,onBlurWithin:v=>{!v.relatedTarget||j_(v.relatedTarget)||(!l||l(v.relatedTarget))&&u()}}),m=v=>{v.target===v.currentTarget&&v.preventDefault()};function b(v){const y=v.current;if(!y)return"unknown";const x=(y.getAttribute("role")||"").toLowerCase(),w=y.getAttribute("aria-modal");return(x==="dialog"||x==="alertdialog")&&(w===null||w.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes(x)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:m}}}function bI(e={shouldBlockScroll:!0},t,r){let{overlayProps:n,underlayProps:o}=Wc({...e,isOpen:t.isOpen,onClose:t.close},r);return Fc({isDisabled:!t.isOpen||!e.shouldBlockScroll}),Ey(),g.useEffect(()=>{if(t.isOpen&&r.current)return J_([r.current])},[t.isOpen,r]),{modalProps:Ce(n),underlayProps:o}}function gi(e){let[t,r]=hr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=g.useCallback(()=>{r(!0)},[r]),o=g.useCallback(()=>{r(!1)},[r]),s=g.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:s}}function vI(e){var t,r,n;const o=et(),[s,a]=pt(e,Am.variantKeys),{ref:i,as:l,className:u,classNames:c,isOpen:d,defaultOpen:p,onOpenChange:h,motionProps:m,closeButton:b,isDismissable:v=!0,hideCloseButton:y=!1,shouldBlockScroll:x=!0,portalContainer:w,isKeyboardDismissDisabled:C=!1,onClose:S,...k}=s,D=l||"section",$=Pe(i),_=g.useRef(null),[N,A]=g.useState(!1),[M,O]=g.useState(!1),L=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,I=g.useId(),z=g.useId(),F=g.useId(),B=gi({isOpen:d,defaultOpen:p,onOpenChange:X=>{h?.(X),X||S?.()}}),{modalProps:U,underlayProps:E}=bI({isDismissable:v,shouldBlockScroll:x,isKeyboardDismissDisabled:C},B,$),{buttonProps:j}=di({onPress:B.close},_),{isFocusVisible:T,focusProps:V}=rt(),K=P(c?.base,u),G=g.useMemo(()=>Am({...a,disableAnimation:L}),[ft(a),L]),Z=(X={},q=null)=>{var ee;return{ref:Ll(q,$),...ie(U,k,X),className:G.base({class:P(K,X.className)}),id:I,"data-open":H(B.isOpen),"data-dismissable":H(v),"aria-modal":H(!0),"data-placement":(ee=e?.placement)!=null?ee:"right","aria-labelledby":N?z:void 0,"aria-describedby":M?F:void 0}},W=g.useCallback((X={})=>({className:G.backdrop({class:c?.backdrop}),...E,...X}),[G,c,E]),ne=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":H(T),className:G.closeButton({class:c?.closeButton}),...ie(j,V)});return{Component:D,slots:G,domRef:$,headerId:z,bodyId:F,motionProps:m,classNames:c,isDismissable:v,closeButton:b,hideCloseButton:y,portalContainer:w,shouldBlockScroll:x,backdrop:(n=e.backdrop)!=null?n:"opaque",isOpen:B.isOpen,onClose:B.close,disableAnimation:L,setBodyMounted:O,setHeaderMounted:A,getDialogProps:Z,getBackdropProps:W,getCloseButtonProps:ne}}var Xy=Se((e,t)=>{const{children:r,...n}=e,o=vI({...n,ref:t}),s=f.jsx($y,{portalContainer:o.portalContainer,children:r});return f.jsx(aI,{value:o,children:o.disableAnimation&&o.isOpen?s:f.jsx(Wa,{children:o.isOpen?s:null})})});Xy.displayName="HeroUI.Modal";var $o=Xy;function yI(e,t=[]){const r=g.useRef(e);return $n(()=>{r.current=e}),g.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function on(e){const{shadowRoot:t}=kE(),r=t?t.querySelector(".mobielnl-elements"):document.querySelector(".mobielnl-elements");return{popoverProps:g.useMemo(()=>({portalContainer:r??document.body,classNames:{...e?.classNames,base:P("mobielnl-elements popover-transparent-base",e?.classNames?.base)}}),[r,e?.classNames]),isShadowRoot:!!t}}function Nr(e,t){const r=g.useRef(!0);g.useEffect(()=>{r.current?r.current=!1:e()},t)}const Qy=0,ex=1,tx=2,rx=3;var nx=Object.prototype.hasOwnProperty;function Uc(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Uc(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(nx.call(e,r)&&++n&&!nx.call(t,r)||!(r in t)||!Uc(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const br=new WeakMap,Mr=()=>{},ct=Mr(),Hc=Object,Te=e=>e===ct,ar=e=>typeof e=="function",sn=(e,t)=>({...e,...t}),ox=e=>ar(e.then),qc={},bi={},Gc="undefined",$s=typeof window!=Gc,Zc=typeof document!=Gc,xI=$s&&"Deno"in window,wI=()=>$s&&typeof window.requestAnimationFrame!=Gc,an=(e,t)=>{const r=br.get(e);return[()=>!Te(t)&&e.get(t)||qc,n=>{if(!Te(t)){const o=e.get(t);t in bi||(bi[t]=o),r[5](t,sn(o,n),o||qc)}},r[6],()=>!Te(t)&&t in bi?bi[t]:!Te(t)&&e.get(t)||qc]};let Yc=!0;const CI=()=>Yc,[Jc,Xc]=$s&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Mr,Mr],SI=()=>{const e=Zc&&document.visibilityState;return Te(e)||e!=="hidden"},kI=e=>(Zc&&document.addEventListener("visibilitychange",e),Jc("focus",e),()=>{Zc&&document.removeEventListener("visibilitychange",e),Xc("focus",e)}),PI=e=>{const t=()=>{Yc=!0,e()},r=()=>{Yc=!1};return Jc("online",t),Jc("offline",r),()=>{Xc("online",t),Xc("offline",r)}},$I={isOnline:CI,isVisible:SI},EI={initFocus:kI,initReconnect:PI},sx=!g.useId,Eo=!$s||xI,TI=e=>wI()?window.requestAnimationFrame(e):setTimeout(e,1),vi=Eo?g.useEffect:g.useLayoutEffect,Qc=typeof navigator<"u"&&navigator.connection,ax=!Eo&&Qc&&(["slow-2g","2g"].includes(Qc.effectiveType)||Qc.saveData),yi=new WeakMap,DI=e=>Hc.prototype.toString.call(e),ed=(e,t)=>e===`[object ${t}]`;let _I=0;const td=e=>{const t=typeof e,r=DI(e),n=ed(r,"Date"),o=ed(r,"RegExp"),s=ed(r,"Object");let a,i;if(Hc(e)===e&&!n&&!o){if(a=yi.get(e),a)return a;if(a=++_I+"~",yi.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=td(e[i])+",";yi.set(e,a)}if(s){a="#";const l=Hc.keys(e).sort();for(;!Te(i=l.pop());)Te(e[i])||(a+=i+":"+td(e[i])+",");yi.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},Es=e=>{if(ar(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?td(e):"",[e,t]};let II=0;const rd=()=>++II;async function ix(...e){const[t,r,n,o]=e,s=sn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=s.populateCache;const i=s.rollbackOnError;let l=s.optimisticData;const u=p=>typeof i=="function"?i(p):i!==!1,c=s.throwOnError;if(ar(r)){const p=r,h=[],m=t.keys();for(const b of m)!/^\$(inf|sub)\$/.test(b)&&p(t.get(b)._k)&&h.push(b);return Promise.all(h.map(d))}return d(r);async function d(p){const[h]=Es(p);if(!h)return;const[m,b]=an(t,h),[v,y,x,w]=br.get(t),C=()=>{const L=v[h];return(ar(s.revalidate)?s.revalidate(m().data,p):s.revalidate!==!1)&&(delete x[h],delete w[h],L&&L[0])?L[0](tx).then(()=>m().data):m().data};if(e.length<3)return C();let S=n,k,D=!1;const $=rd();y[h]=[$,0];const _=!Te(l),N=m(),A=N.data,M=N._c,O=Te(M)?A:M;if(_&&(l=ar(l)?l(O,A):l,b({data:l,_c:O})),ar(S))try{S=S(O)}catch(L){k=L,D=!0}if(S&&ox(S))if(S=await S.catch(L=>{k=L,D=!0}),$!==y[h][0]){if(D)throw k;return S}else D&&_&&u(k)&&(a=!0,b({data:O,_c:ct}));if(a&&!D)if(ar(a)){const L=a(S,O);b({data:L,error:ct,_c:ct})}else b({data:S,error:ct,_c:ct});if(y[h][1]=rd(),Promise.resolve(C()).then(()=>{b({_c:ct})}),D){if(c)throw k;return}return S}}const lx=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},AI=(e,t)=>{if(!br.has(e)){const r=sn(EI,t),n=Object.create(null),o=ix.bind(ct,e);let s=Mr;const a=Object.create(null),i=(c,d)=>{const p=a[c]||[];return a[c]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(c,d,p)=>{e.set(c,d);const h=a[c];if(h)for(const m of h)m(d,p)},u=()=>{if(!br.has(e)&&(br.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,i]),!Eo)){const c=r.initFocus(setTimeout.bind(ct,lx.bind(ct,n,Qy))),d=r.initReconnect(setTimeout.bind(ct,lx.bind(ct,n,ex)));s=()=>{c&&c(),d&&d(),br.delete(e)}}};return u(),[e,o,u,s]}return[e,br.get(e)[4]]},NI=(e,t,r,n,o)=>{const s=r.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!Te(s)&&a>s||setTimeout(n,i,o)},MI=Uc,[nd,OI]=AI(new Map),jI=sn({onLoadingSlow:Mr,onSuccess:Mr,onError:Mr,onErrorRetry:NI,onDiscarded:Mr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ax?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ax?5e3:3e3,compare:MI,isPaused:()=>!1,cache:nd,mutate:OI,fallback:{}},$I),FI=(e,t)=>{const r=sn(e,t);if(t){const{use:n,fallback:o}=e,{use:s,fallback:a}=t;n&&s&&(r.use=n.concat(s)),o&&a&&(r.fallback=sn(o,a))}return r},BI=g.createContext({}),ux="$inf$",cx=$s&&window.__SWR_DEVTOOLS_USE__,zI=cx?window.__SWR_DEVTOOLS_USE__:[],LI=()=>{cx&&(window.__SWR_DEVTOOLS_REACT__=g)},dx=e=>ar(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],VI=()=>{const e=g.useContext(BI);return g.useMemo(()=>sn(jI,e),[e])},RI=e=>(t,r,n)=>e(t,r&&((...s)=>{const[a]=Es(t),[,,,i]=br.get(nd);if(a.startsWith(ux))return r(...s);const l=i[a];return Te(l)?r(...s):(delete i[a],l)}),n),KI=zI.concat(RI),WI=e=>function(...r){const n=VI(),[o,s,a]=dx(r),i=FI(n,a);let l=e;const{use:u}=i,c=(u||[]).concat(KI);for(let d=c.length;d--;)l=c[d](l);return l(o,s||i.fetcher||null,i)},UI=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const o=n.indexOf(r);o>=0&&(n[o]=n[n.length-1],n.pop())}},fx=(e,t)=>(...r)=>{const[n,o,s]=dx(r),a=(s.use||[]).concat(t);return e(n,o,{...s,use:a})};LI();const od=g.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),sd={dedupe:!0},px=Promise.resolve(ct),ad=WI((e,t,r)=>{const{cache:n,compare:o,suspense:s,fallbackData:a,revalidateOnMount:i,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:p,strictServerPrefetchWarning:h}=r,[m,b,v,y]=br.get(n),[x,w]=Es(e),C=g.useRef(!1),S=g.useRef(!1),k=g.useRef(x),D=g.useRef(t),$=g.useRef(r),_=()=>$.current,N=()=>_().isVisible()&&_().isOnline(),[A,M,O,L]=an(n,x),I=g.useRef({}).current,z=Te(a)?Te(r.fallback)?ct:r.fallback[x]:a,F=(oe,pe)=>{for(const xe in I){const he=xe;if(he==="data"){if(!o(oe[he],pe[he])&&(!Te(oe[he])||!o(Z,pe[he])))return!1}else if(pe[he]!==oe[he])return!1}return!0},B=g.useMemo(()=>{const oe=!x||!t?!1:Te(i)?_().isPaused()||s?!1:l!==!1:i,pe=_e=>{const Ke=sn(_e);return delete Ke._k,oe?{isValidating:!0,isLoading:!0,...Ke}:Ke},xe=A(),he=L(),se=pe(xe),He=xe===he?se:pe(he);let ge=se;return[()=>{const _e=pe(A());return F(_e,ge)?(ge.data=_e.data,ge.isLoading=_e.isLoading,ge.isValidating=_e.isValidating,ge.error=_e.error,ge):(ge=_e,_e)},()=>He]},[n,x]),U=ma.useSyncExternalStore(g.useCallback(oe=>O(x,(pe,xe)=>{F(xe,pe)||oe()}),[n,x]),B[0],B[1]),E=!C.current,j=m[x]&&m[x].length>0,T=U.data,V=Te(T)?z&&ox(z)?od(z):z:T,K=U.error,G=g.useRef(V),Z=p?Te(T)?Te(G.current)?V:G.current:T:V,W=x&&Te(V),ne=!Eo&&ma.useSyncExternalStore(()=>Mr,()=>!1,()=>!0);h&&ne&&!s&&W&&console.warn(`Missing pre-initiated data for serialized key "${x}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const X=j&&!Te(K)?!1:E&&!Te(i)?i:_().isPaused()?!1:s?Te(V)?!1:l:Te(V)||l,q=!!(x&&t&&E&&X),ee=Te(U.isValidating)?q:U.isValidating,ue=Te(U.isLoading)?q:U.isLoading,te=g.useCallback(async oe=>{const pe=D.current;if(!x||!pe||S.current||_().isPaused())return!1;let xe,he,se=!0;const He=oe||{},ge=!v[x]||!He.dedupe,_e=()=>sx?!S.current&&x===k.current&&C.current:x===k.current,Ke={isValidating:!1,isLoading:!1},qe=()=>{M(Ke)},wt=()=>{const Ge=v[x];Ge&&Ge[1]===he&&delete v[x]},Ct={isValidating:!0};Te(A().data)&&(Ct.isLoading=!0);try{if(ge&&(M(Ct),r.loadingTimeout&&Te(A().data)&&setTimeout(()=>{se&&_e()&&_().onLoadingSlow(x,r)},r.loadingTimeout),v[x]=[pe(w),rd()]),[xe,he]=v[x],xe=await xe,ge&&setTimeout(wt,r.dedupingInterval),!v[x]||v[x][1]!==he)return ge&&_e()&&_().onDiscarded(x),!1;Ke.error=ct;const Ge=b[x];if(!Te(Ge)&&(he<=Ge[0]||he<=Ge[1]||Ge[1]===0))return qe(),ge&&_e()&&_().onDiscarded(x),!1;const Ne=A().data;Ke.data=o(Ne,xe)?Ne:xe,ge&&_e()&&_().onSuccess(xe,x,r)}catch(Ge){wt();const Ne=_(),{shouldRetryOnError:mt}=Ne;Ne.isPaused()||(Ke.error=Ge,ge&&_e()&&(Ne.onError(Ge,x,Ne),(mt===!0||ar(mt)&&mt(Ge))&&(!_().revalidateOnFocus||!_().revalidateOnReconnect||N())&&Ne.onErrorRetry(Ge,x,Ne,St=>{const gt=m[x];gt&>[0]&>[0](rx,St)},{retryCount:(He.retryCount||0)+1,dedupe:!0})))}return se=!1,qe(),!0},[x,n]),Ee=g.useCallback((...oe)=>ix(n,k.current,...oe),[]);if(vi(()=>{D.current=t,$.current=r,Te(T)||(G.current=T)}),vi(()=>{if(!x)return;const oe=te.bind(ct,sd);let pe=0;_().revalidateOnFocus&&(pe=Date.now()+_().focusThrottleInterval);const he=UI(x,m,(se,He={})=>{if(se==Qy){const ge=Date.now();_().revalidateOnFocus&&ge>pe&&N()&&(pe=ge+_().focusThrottleInterval,oe())}else if(se==ex)_().revalidateOnReconnect&&N()&&oe();else{if(se==tx)return te();if(se==rx)return te(He)}});return S.current=!1,k.current=x,C.current=!0,M({_k:w}),X&&(v[x]||(Te(V)||Eo?oe():TI(oe))),()=>{S.current=!0,he()}},[x]),vi(()=>{let oe;function pe(){const he=ar(u)?u(A().data):u;he&&oe!==-1&&(oe=setTimeout(xe,he))}function xe(){!A().error&&(c||_().isVisible())&&(d||_().isOnline())?te(sd).then(pe):pe()}return pe(),()=>{oe&&(clearTimeout(oe),oe=-1)}},[u,c,d,x]),g.useDebugValue(Z),s){if(!sx&&Eo&&W)throw new Error("Fallback data is required when using Suspense in SSR.");W&&(D.current=t,$.current=r,S.current=!1);const oe=y[x],pe=!Te(oe)&&W?Ee(oe):px;if(od(pe),!Te(K)&&W)throw K;const xe=W?te(sd):px;!Te(Z)&&W&&(xe.status="fulfilled",xe.value=!0),od(xe)}return{mutate:Ee,get data(){return I.data=!0,Z},get error(){return I.error=!0,K},get isValidating(){return I.isValidating=!0,ee},get isLoading(){return I.isLoading=!0,ue}}}),En=fx(ad,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));class Tn extends Error{response;request;constructor(t,r){const n=`${Tn.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Tn.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Tn)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const hx=e=>e.toUpperCase(),id=e=>typeof e=="function"?e():e,mx=(e,t)=>e.map((r,n)=>[r,t[n]]),To=e=>{let t={};return e instanceof Headers?t=HI(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):e&&(t=e),t},HI=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},qI=e=>{try{const t=e();return GI(t)?t.catch(r=>gx(r)):t}catch(t){return gx(t)}},gx=e=>e instanceof Error?e:new Error(String(e)),GI=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",ld=e=>{throw new Error(`Unhandled case: ${String(e)}`)},xi=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ZI=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},YI=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function wi(e,t){if(!!!e)throw new Error(t)}function JI(e){return typeof e=="object"&&e!==null}function XI(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const QI=/\r\n|[\n\r]/g;function ud(e,t){let r=0,n=1;for(const o of e.body.matchAll(QI)){if(typeof o.index=="number"||XI(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function eA(e){return bx(e.source,ud(e.source,e.start))}function bx(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,s=e.locationOffset.line-1,a=t.line+s,i=t.line===1?r:0,l=t.column+i,u=`${e.name}:${a}:${l}
|
|
63
|
-
`,c=n.split(/\r\n|[\n\r]/g),d=c[o];if(d.length>120){const p=Math.floor(l/80),h=l%80,m=[];for(let b=0;b<d.length;b+=80)m.push(d.slice(b,b+80));return u+
|
|
64
|
-
`)}function
|
|
62
|
+
`})}),cI=e=>f.jsx("svg",{className:"fill-current",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{clipRule:"evenodd",d:"M3 10.417C3 7.219 3 5.62 3.378 5.082C3.755 4.545 5.258 4.03 8.265 3.001L8.838 2.805C10.405 2.268 11.188 2 12 2C12.812 2 13.595 2.268 15.162 2.805L15.735 3.001C18.742 4.03 20.245 4.545 20.622 5.082C21 5.62 21 7.22 21 10.417V11.991C21 17.629 16.761 20.366 14.101 21.527C13.38 21.842 13.02 22 12 22C10.98 22 10.62 21.842 9.899 21.527C7.239 20.365 3 17.63 3 11.991V10.417ZM12 7.25C12.1989 7.25 12.3897 7.32902 12.5303 7.46967C12.671 7.61032 12.75 7.80109 12.75 8V12C12.75 12.1989 12.671 12.3897 12.5303 12.5303C12.3897 12.671 12.1989 12.75 12 12.75C11.8011 12.75 11.6103 12.671 11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V8C11.25 7.80109 11.329 7.61032 11.4697 7.46967C11.6103 7.32902 11.8011 7.25 12 7.25ZM12 16C12.2652 16 12.5196 15.8946 12.7071 15.7071C12.8946 15.5196 13 15.2652 13 15C13 14.7348 12.8946 14.4804 12.7071 14.2929C12.5196 14.1054 12.2652 14 12 14C11.7348 14 11.4804 14.1054 11.2929 14.2929C11.1054 14.4804 11 14.7348 11 15C11 15.2652 11.1054 15.5196 11.2929 15.7071C11.4804 15.8946 11.7348 16 12 16Z",fill:"currentColor",fillRule:"evenodd"})}),Wy=e=>f.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22ZM12.75 16C12.75 16.41 12.41 16.75 12 16.75C11.59 16.75 11.25 16.41 11.25 16L11.25 11C11.25 10.59 11.59 10.25 12 10.25C12.41 10.25 12.75 10.59 12.75 11L12.75 16ZM11.08 7.62C11.13 7.49 11.2 7.39 11.29 7.29C11.39 7.2 11.5 7.13 11.62 7.08C11.74 7.03 11.87 7 12 7C12.13 7 12.26 7.03 12.38 7.08C12.5 7.13 12.61 7.2 12.71 7.29C12.8 7.39 12.87 7.49 12.92 7.62C12.97 7.74 13 7.87 13 8C13 8.13 12.97 8.26 12.92 8.38C12.87 8.5 12.8 8.61 12.71 8.71C12.61 8.8 12.5 8.87 12.38 8.92C12.14 9.02 11.86 9.02 11.62 8.92C11.5 8.87 11.39 8.8 11.29 8.71C11.2 8.61 11.13 8.5 11.08 8.38C11.03 8.26 11 8.13 11 8C11 7.87 11.03 7.74 11.08 7.62Z"})}),Kc=e=>f.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:f.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),Uy=e=>{const{isSelected:t,isIndeterminate:r,disableAnimation:n,...o}=e;return f.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...o,children:f.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},dI=e=>f.jsx("svg",{className:"fill-current",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M17.51 3.85L11.57 0.42C10.6 -0.14 9.4 -0.14 8.42 0.42L2.49 3.85C1.52 4.41 0.919998 5.45 0.919998 6.58V13.42C0.919998 14.54 1.52 15.58 2.49 16.15L8.43 19.58C9.4 20.14 10.6 20.14 11.58 19.58L17.52 16.15C18.49 15.59 19.09 14.55 19.09 13.42V6.58C19.08 5.45 18.48 4.42 17.51 3.85ZM9.25 5.75C9.25 5.34 9.59 5 10 5C10.41 5 10.75 5.34 10.75 5.75V11C10.75 11.41 10.41 11.75 10 11.75C9.59 11.75 9.25 11.41 9.25 11V5.75ZM10.92 14.63C10.87 14.75 10.8 14.86 10.71 14.96C10.52 15.15 10.27 15.25 10 15.25C9.87 15.25 9.74 15.22 9.62 15.17C9.49 15.12 9.39 15.05 9.29 14.96C9.2 14.86 9.13 14.75 9.07 14.63C9.02 14.51 9 14.38 9 14.25C9 13.99 9.1 13.73 9.29 13.54C9.39 13.45 9.49 13.38 9.62 13.33C9.99 13.17 10.43 13.26 10.71 13.54C10.8 13.64 10.87 13.74 10.92 13.87C10.97 13.99 11 14.12 11 14.25C11 14.38 10.97 14.51 10.92 14.63Z"})}),Hy=({strokeWidth:e=1.5,...t})=>f.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:f.jsx("path",{d:"m6 9 6 6 6-6"})});function qy(e,t){let{role:r="dialog"}=e,n=os();n=e["aria-label"]?void 0:n;let o=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Et(t.current);let s=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Et(t.current)),o.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),Ey(),{dialogProps:{...Bt(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:s=>{o.current&&s.stopPropagation()}},titleProps:{id:n}}}var mr=typeof document<"u"&&window.visualViewport,fI=g.createContext(!1);function pI(){return!1}function hI(){return!0}function mI(e){return()=>{}}function gI(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(mI,pI,hI):g.useContext(fI)}function bI(){let e=gI(),[t,r]=g.useState(()=>e?{width:0,height:0}:Gy());return g.useEffect(()=>{let n=()=>{r(o=>{let s=Gy();return s.width===o.width&&s.height===o.height?o:s})};return mr?mr.addEventListener("resize",n):window.addEventListener("resize",n),()=>{mr?mr.removeEventListener("resize",n):window.removeEventListener("resize",n)}},[]),t}function Gy(){return{width:mr&&mr?.width||window.innerWidth,height:mr&&mr?.height||window.innerHeight}}var Zy=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),Yy=e=>{const{as:t,children:r,role:n="dialog",...o}=e,{Component:s,domRef:a,slots:i,classNames:l,motionProps:u,backdrop:c,closeButton:d,hideCloseButton:p,disableAnimation:h,getDialogProps:m,getBackdropProps:b,getCloseButtonProps:v,onClose:y}=hi(),x=t||s||"div",w=bI(),{dialogProps:C}=qy({role:n},a),S=g.isValidElement(d)?g.cloneElement(d,v()):f.jsx("button",{...v(),children:f.jsx(Uy,{})}),k=g.useCallback(M=>{M.key==="Tab"&&M.nativeEvent.isComposing&&(M.stopPropagation(),M.preventDefault())},[]),D=m(ie(C,o)),$=f.jsxs(x,{...D,onKeyDown:nr(D.onKeyDown,k),children:[f.jsx(ci,{onDismiss:y}),!p&&S,typeof r=="function"?r(y):r,f.jsx(ci,{onDismiss:y})]}),_=g.useMemo(()=>c==="transparent"?null:h?f.jsx("div",{...b()}):f.jsx(mo,{features:Zy,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.fade,...b()})}),[c,h,b]),N={"--visual-viewport-height":w.height+"px"},A=h?f.jsx("div",{className:i.wrapper({class:l?.wrapper}),"data-slot":"wrapper",style:N,children:$}):f.jsx(mo,{features:Zy,children:f.jsx(go.div,{animate:"enter",className:i.wrapper({class:l?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:lI,...u,style:N,children:$})});return f.jsxs("div",{tabIndex:-1,children:[_,A]})};Yy.displayName="HeroUI.ModalContent";var ko=Yy,Jy=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i}=hi(),l=Pe(t),u=r||"footer";return f.jsx(u,{ref:l,className:a.footer({class:P(i?.footer,o)}),...s,children:n})});Jy.displayName="HeroUI.ModalFooter";var Ps=Jy,Xy=Se((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:a,classNames:i,headerId:l,setHeaderMounted:u}=hi(),c=Pe(t),d=r||"header";return g.useEffect(()=>(u(!0),()=>u(!1)),[u]),f.jsx(d,{ref:c,className:a.header({class:P(i?.header,o)}),id:l,...s,children:n})});Xy.displayName="HeroUI.ModalHeader";var Po=Xy,gr=[];function Wc(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:s,onClose:a,shouldCloseOnBlur:i,shouldCloseOnInteractOutside:l}=e;g.useEffect(()=>{if(s&&!gr.includes(t))return gr.push(t),()=>{let v=gr.indexOf(t);v>=0&&gr.splice(v,1)}},[s,t]);const u=()=>{gr[gr.length-1]===t&&a&&a()},c=v=>{(!l||l(v.target))&&(gr[gr.length-1]===t&&r&&(v.stopPropagation(),v.preventDefault()),b(t)!=="pressEnd"&&u())},d=v=>{(!l||l(v.target))&&(gr[gr.length-1]===t&&r&&(v.stopPropagation(),v.preventDefault()),u())},p=v=>{v.key==="Escape"&&!o&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),u())};__({isDisabled:!(n&&s),onInteractOutside:n&&s?d:void 0,onInteractOutsideStart:c,ref:t});const{focusWithinProps:h}=kn({isDisabled:!i,onBlurWithin:v=>{!v.relatedTarget||j_(v.relatedTarget)||(!l||l(v.relatedTarget))&&u()}}),m=v=>{v.target===v.currentTarget&&v.preventDefault()};function b(v){const y=v.current;if(!y)return"unknown";const x=(y.getAttribute("role")||"").toLowerCase(),w=y.getAttribute("aria-modal");return(x==="dialog"||x==="alertdialog")&&(w===null||w.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes(x)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:m}}}function vI(e={shouldBlockScroll:!0},t,r){let{overlayProps:n,underlayProps:o}=Wc({...e,isOpen:t.isOpen,onClose:t.close},r);return Fc({isDisabled:!t.isOpen||!e.shouldBlockScroll}),Ey(),g.useEffect(()=>{if(t.isOpen&&r.current)return J_([r.current])},[t.isOpen,r]),{modalProps:Ce(n),underlayProps:o}}function gi(e){let[t,r]=hr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=g.useCallback(()=>{r(!0)},[r]),o=g.useCallback(()=>{r(!1)},[r]),s=g.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:s}}function yI(e){var t,r,n;const o=tt(),[s,a]=pt(e,Am.variantKeys),{ref:i,as:l,className:u,classNames:c,isOpen:d,defaultOpen:p,onOpenChange:h,motionProps:m,closeButton:b,isDismissable:v=!0,hideCloseButton:y=!1,shouldBlockScroll:x=!0,portalContainer:w,isKeyboardDismissDisabled:C=!1,onClose:S,...k}=s,D=l||"section",$=Pe(i),_=g.useRef(null),[N,A]=g.useState(!1),[M,O]=g.useState(!1),L=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,I=g.useId(),z=g.useId(),F=g.useId(),B=gi({isOpen:d,defaultOpen:p,onOpenChange:X=>{h?.(X),X||S?.()}}),{modalProps:U,underlayProps:E}=vI({isDismissable:v,shouldBlockScroll:x,isKeyboardDismissDisabled:C},B,$),{buttonProps:j}=di({onPress:B.close},_),{isFocusVisible:T,focusProps:V}=nt(),K=P(c?.base,u),G=g.useMemo(()=>Am({...a,disableAnimation:L}),[ft(a),L]),Z=(X={},q=null)=>{var ee;return{ref:Ll(q,$),...ie(U,k,X),className:G.base({class:P(K,X.className)}),id:I,"data-open":H(B.isOpen),"data-dismissable":H(v),"aria-modal":H(!0),"data-placement":(ee=e?.placement)!=null?ee:"right","aria-labelledby":N?z:void 0,"aria-describedby":M?F:void 0}},W=g.useCallback((X={})=>({className:G.backdrop({class:c?.backdrop}),...E,...X}),[G,c,E]),ne=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":H(T),className:G.closeButton({class:c?.closeButton}),...ie(j,V)});return{Component:D,slots:G,domRef:$,headerId:z,bodyId:F,motionProps:m,classNames:c,isDismissable:v,closeButton:b,hideCloseButton:y,portalContainer:w,shouldBlockScroll:x,backdrop:(n=e.backdrop)!=null?n:"opaque",isOpen:B.isOpen,onClose:B.close,disableAnimation:L,setBodyMounted:O,setHeaderMounted:A,getDialogProps:Z,getBackdropProps:W,getCloseButtonProps:ne}}var Qy=Se((e,t)=>{const{children:r,...n}=e,o=yI({...n,ref:t}),s=f.jsx($y,{portalContainer:o.portalContainer,children:r});return f.jsx(iI,{value:o,children:o.disableAnimation&&o.isOpen?s:f.jsx(Wa,{children:o.isOpen?s:null})})});Qy.displayName="HeroUI.Modal";var $o=Qy;function xI(e,t=[]){const r=g.useRef(e);return $n(()=>{r.current=e}),g.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function on(e){const{shadowRoot:t}=kE(),r=t?t.querySelector(".mobielnl-elements"):document.querySelector(".mobielnl-elements");return{popoverProps:g.useMemo(()=>({portalContainer:r??document.body,classNames:{...e?.classNames,base:`mobielnl-elements popover-transparent-base ${e?.classNames?.base??""}`}}),[r,e?.classNames]),isShadowRoot:!!t}}function Nr(e,t){const r=g.useRef(!0);g.useEffect(()=>{r.current?r.current=!1:e()},t)}const ex=0,tx=1,rx=2,nx=3;var ox=Object.prototype.hasOwnProperty;function Uc(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Uc(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(ox.call(e,r)&&++n&&!ox.call(t,r)||!(r in t)||!Uc(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const br=new WeakMap,Mr=()=>{},ct=Mr(),Hc=Object,Te=e=>e===ct,ar=e=>typeof e=="function",sn=(e,t)=>({...e,...t}),sx=e=>ar(e.then),qc={},bi={},Gc="undefined",$s=typeof window!=Gc,Zc=typeof document!=Gc,wI=$s&&"Deno"in window,CI=()=>$s&&typeof window.requestAnimationFrame!=Gc,an=(e,t)=>{const r=br.get(e);return[()=>!Te(t)&&e.get(t)||qc,n=>{if(!Te(t)){const o=e.get(t);t in bi||(bi[t]=o),r[5](t,sn(o,n),o||qc)}},r[6],()=>!Te(t)&&t in bi?bi[t]:!Te(t)&&e.get(t)||qc]};let Yc=!0;const SI=()=>Yc,[Jc,Xc]=$s&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Mr,Mr],kI=()=>{const e=Zc&&document.visibilityState;return Te(e)||e!=="hidden"},PI=e=>(Zc&&document.addEventListener("visibilitychange",e),Jc("focus",e),()=>{Zc&&document.removeEventListener("visibilitychange",e),Xc("focus",e)}),$I=e=>{const t=()=>{Yc=!0,e()},r=()=>{Yc=!1};return Jc("online",t),Jc("offline",r),()=>{Xc("online",t),Xc("offline",r)}},EI={isOnline:SI,isVisible:kI},TI={initFocus:PI,initReconnect:$I},ax=!g.useId,Eo=!$s||wI,DI=e=>CI()?window.requestAnimationFrame(e):setTimeout(e,1),vi=Eo?g.useEffect:g.useLayoutEffect,Qc=typeof navigator<"u"&&navigator.connection,ix=!Eo&&Qc&&(["slow-2g","2g"].includes(Qc.effectiveType)||Qc.saveData),yi=new WeakMap,_I=e=>Hc.prototype.toString.call(e),ed=(e,t)=>e===`[object ${t}]`;let II=0;const td=e=>{const t=typeof e,r=_I(e),n=ed(r,"Date"),o=ed(r,"RegExp"),s=ed(r,"Object");let a,i;if(Hc(e)===e&&!n&&!o){if(a=yi.get(e),a)return a;if(a=++II+"~",yi.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=td(e[i])+",";yi.set(e,a)}if(s){a="#";const l=Hc.keys(e).sort();for(;!Te(i=l.pop());)Te(e[i])||(a+=i+":"+td(e[i])+",");yi.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},Es=e=>{if(ar(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?td(e):"",[e,t]};let AI=0;const rd=()=>++AI;async function lx(...e){const[t,r,n,o]=e,s=sn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=s.populateCache;const i=s.rollbackOnError;let l=s.optimisticData;const u=p=>typeof i=="function"?i(p):i!==!1,c=s.throwOnError;if(ar(r)){const p=r,h=[],m=t.keys();for(const b of m)!/^\$(inf|sub)\$/.test(b)&&p(t.get(b)._k)&&h.push(b);return Promise.all(h.map(d))}return d(r);async function d(p){const[h]=Es(p);if(!h)return;const[m,b]=an(t,h),[v,y,x,w]=br.get(t),C=()=>{const L=v[h];return(ar(s.revalidate)?s.revalidate(m().data,p):s.revalidate!==!1)&&(delete x[h],delete w[h],L&&L[0])?L[0](rx).then(()=>m().data):m().data};if(e.length<3)return C();let S=n,k,D=!1;const $=rd();y[h]=[$,0];const _=!Te(l),N=m(),A=N.data,M=N._c,O=Te(M)?A:M;if(_&&(l=ar(l)?l(O,A):l,b({data:l,_c:O})),ar(S))try{S=S(O)}catch(L){k=L,D=!0}if(S&&sx(S))if(S=await S.catch(L=>{k=L,D=!0}),$!==y[h][0]){if(D)throw k;return S}else D&&_&&u(k)&&(a=!0,b({data:O,_c:ct}));if(a&&!D)if(ar(a)){const L=a(S,O);b({data:L,error:ct,_c:ct})}else b({data:S,error:ct,_c:ct});if(y[h][1]=rd(),Promise.resolve(C()).then(()=>{b({_c:ct})}),D){if(c)throw k;return}return S}}const ux=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},NI=(e,t)=>{if(!br.has(e)){const r=sn(TI,t),n=Object.create(null),o=lx.bind(ct,e);let s=Mr;const a=Object.create(null),i=(c,d)=>{const p=a[c]||[];return a[c]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(c,d,p)=>{e.set(c,d);const h=a[c];if(h)for(const m of h)m(d,p)},u=()=>{if(!br.has(e)&&(br.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,i]),!Eo)){const c=r.initFocus(setTimeout.bind(ct,ux.bind(ct,n,ex))),d=r.initReconnect(setTimeout.bind(ct,ux.bind(ct,n,tx)));s=()=>{c&&c(),d&&d(),br.delete(e)}}};return u(),[e,o,u,s]}return[e,br.get(e)[4]]},MI=(e,t,r,n,o)=>{const s=r.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!Te(s)&&a>s||setTimeout(n,i,o)},OI=Uc,[nd,jI]=NI(new Map),FI=sn({onLoadingSlow:Mr,onSuccess:Mr,onError:Mr,onErrorRetry:MI,onDiscarded:Mr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ix?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ix?5e3:3e3,compare:OI,isPaused:()=>!1,cache:nd,mutate:jI,fallback:{}},EI),BI=(e,t)=>{const r=sn(e,t);if(t){const{use:n,fallback:o}=e,{use:s,fallback:a}=t;n&&s&&(r.use=n.concat(s)),o&&a&&(r.fallback=sn(o,a))}return r},zI=g.createContext({}),cx="$inf$",dx=$s&&window.__SWR_DEVTOOLS_USE__,LI=dx?window.__SWR_DEVTOOLS_USE__:[],VI=()=>{dx&&(window.__SWR_DEVTOOLS_REACT__=g)},fx=e=>ar(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],RI=()=>{const e=g.useContext(zI);return g.useMemo(()=>sn(FI,e),[e])},KI=e=>(t,r,n)=>e(t,r&&((...s)=>{const[a]=Es(t),[,,,i]=br.get(nd);if(a.startsWith(cx))return r(...s);const l=i[a];return Te(l)?r(...s):(delete i[a],l)}),n),WI=LI.concat(KI),UI=e=>function(...r){const n=RI(),[o,s,a]=fx(r),i=BI(n,a);let l=e;const{use:u}=i,c=(u||[]).concat(WI);for(let d=c.length;d--;)l=c[d](l);return l(o,s||i.fetcher||null,i)},HI=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const o=n.indexOf(r);o>=0&&(n[o]=n[n.length-1],n.pop())}},px=(e,t)=>(...r)=>{const[n,o,s]=fx(r),a=(s.use||[]).concat(t);return e(n,o,{...s,use:a})};VI();const od=g.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),sd={dedupe:!0},hx=Promise.resolve(ct),ad=UI((e,t,r)=>{const{cache:n,compare:o,suspense:s,fallbackData:a,revalidateOnMount:i,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:p,strictServerPrefetchWarning:h}=r,[m,b,v,y]=br.get(n),[x,w]=Es(e),C=g.useRef(!1),S=g.useRef(!1),k=g.useRef(x),D=g.useRef(t),$=g.useRef(r),_=()=>$.current,N=()=>_().isVisible()&&_().isOnline(),[A,M,O,L]=an(n,x),I=g.useRef({}).current,z=Te(a)?Te(r.fallback)?ct:r.fallback[x]:a,F=(oe,pe)=>{for(const xe in I){const he=xe;if(he==="data"){if(!o(oe[he],pe[he])&&(!Te(oe[he])||!o(Z,pe[he])))return!1}else if(pe[he]!==oe[he])return!1}return!0},B=g.useMemo(()=>{const oe=!x||!t?!1:Te(i)?_().isPaused()||s?!1:l!==!1:i,pe=_e=>{const Ke=sn(_e);return delete Ke._k,oe?{isValidating:!0,isLoading:!0,...Ke}:Ke},xe=A(),he=L(),se=pe(xe),He=xe===he?se:pe(he);let ge=se;return[()=>{const _e=pe(A());return F(_e,ge)?(ge.data=_e.data,ge.isLoading=_e.isLoading,ge.isValidating=_e.isValidating,ge.error=_e.error,ge):(ge=_e,_e)},()=>He]},[n,x]),U=ma.useSyncExternalStore(g.useCallback(oe=>O(x,(pe,xe)=>{F(xe,pe)||oe()}),[n,x]),B[0],B[1]),E=!C.current,j=m[x]&&m[x].length>0,T=U.data,V=Te(T)?z&&sx(z)?od(z):z:T,K=U.error,G=g.useRef(V),Z=p?Te(T)?Te(G.current)?V:G.current:T:V,W=x&&Te(V),ne=!Eo&&ma.useSyncExternalStore(()=>Mr,()=>!1,()=>!0);h&&ne&&!s&&W&&console.warn(`Missing pre-initiated data for serialized key "${x}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const X=j&&!Te(K)?!1:E&&!Te(i)?i:_().isPaused()?!1:s?Te(V)?!1:l:Te(V)||l,q=!!(x&&t&&E&&X),ee=Te(U.isValidating)?q:U.isValidating,ue=Te(U.isLoading)?q:U.isLoading,te=g.useCallback(async oe=>{const pe=D.current;if(!x||!pe||S.current||_().isPaused())return!1;let xe,he,se=!0;const He=oe||{},ge=!v[x]||!He.dedupe,_e=()=>ax?!S.current&&x===k.current&&C.current:x===k.current,Ke={isValidating:!1,isLoading:!1},qe=()=>{M(Ke)},wt=()=>{const Ge=v[x];Ge&&Ge[1]===he&&delete v[x]},Ct={isValidating:!0};Te(A().data)&&(Ct.isLoading=!0);try{if(ge&&(M(Ct),r.loadingTimeout&&Te(A().data)&&setTimeout(()=>{se&&_e()&&_().onLoadingSlow(x,r)},r.loadingTimeout),v[x]=[pe(w),rd()]),[xe,he]=v[x],xe=await xe,ge&&setTimeout(wt,r.dedupingInterval),!v[x]||v[x][1]!==he)return ge&&_e()&&_().onDiscarded(x),!1;Ke.error=ct;const Ge=b[x];if(!Te(Ge)&&(he<=Ge[0]||he<=Ge[1]||Ge[1]===0))return qe(),ge&&_e()&&_().onDiscarded(x),!1;const Ne=A().data;Ke.data=o(Ne,xe)?Ne:xe,ge&&_e()&&_().onSuccess(xe,x,r)}catch(Ge){wt();const Ne=_(),{shouldRetryOnError:mt}=Ne;Ne.isPaused()||(Ke.error=Ge,ge&&_e()&&(Ne.onError(Ge,x,Ne),(mt===!0||ar(mt)&&mt(Ge))&&(!_().revalidateOnFocus||!_().revalidateOnReconnect||N())&&Ne.onErrorRetry(Ge,x,Ne,St=>{const gt=m[x];gt&>[0]&>[0](nx,St)},{retryCount:(He.retryCount||0)+1,dedupe:!0})))}return se=!1,qe(),!0},[x,n]),Ee=g.useCallback((...oe)=>lx(n,k.current,...oe),[]);if(vi(()=>{D.current=t,$.current=r,Te(T)||(G.current=T)}),vi(()=>{if(!x)return;const oe=te.bind(ct,sd);let pe=0;_().revalidateOnFocus&&(pe=Date.now()+_().focusThrottleInterval);const he=HI(x,m,(se,He={})=>{if(se==ex){const ge=Date.now();_().revalidateOnFocus&&ge>pe&&N()&&(pe=ge+_().focusThrottleInterval,oe())}else if(se==tx)_().revalidateOnReconnect&&N()&&oe();else{if(se==rx)return te();if(se==nx)return te(He)}});return S.current=!1,k.current=x,C.current=!0,M({_k:w}),X&&(v[x]||(Te(V)||Eo?oe():DI(oe))),()=>{S.current=!0,he()}},[x]),vi(()=>{let oe;function pe(){const he=ar(u)?u(A().data):u;he&&oe!==-1&&(oe=setTimeout(xe,he))}function xe(){!A().error&&(c||_().isVisible())&&(d||_().isOnline())?te(sd).then(pe):pe()}return pe(),()=>{oe&&(clearTimeout(oe),oe=-1)}},[u,c,d,x]),g.useDebugValue(Z),s){if(!ax&&Eo&&W)throw new Error("Fallback data is required when using Suspense in SSR.");W&&(D.current=t,$.current=r,S.current=!1);const oe=y[x],pe=!Te(oe)&&W?Ee(oe):hx;if(od(pe),!Te(K)&&W)throw K;const xe=W?te(sd):hx;!Te(Z)&&W&&(xe.status="fulfilled",xe.value=!0),od(xe)}return{mutate:Ee,get data(){return I.data=!0,Z},get error(){return I.error=!0,K},get isValidating(){return I.isValidating=!0,ee},get isLoading(){return I.isLoading=!0,ue}}}),En=px(ad,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));class Tn extends Error{response;request;constructor(t,r){const n=`${Tn.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Tn.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Tn)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const mx=e=>e.toUpperCase(),id=e=>typeof e=="function"?e():e,gx=(e,t)=>e.map((r,n)=>[r,t[n]]),To=e=>{let t={};return e instanceof Headers?t=qI(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):e&&(t=e),t},qI=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},GI=e=>{try{const t=e();return ZI(t)?t.catch(r=>bx(r)):t}catch(t){return bx(t)}},bx=e=>e instanceof Error?e:new Error(String(e)),ZI=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",ld=e=>{throw new Error(`Unhandled case: ${String(e)}`)},xi=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),YI=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},JI=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function wi(e,t){if(!!!e)throw new Error(t)}function XI(e){return typeof e=="object"&&e!==null}function QI(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const eA=/\r\n|[\n\r]/g;function ud(e,t){let r=0,n=1;for(const o of e.body.matchAll(eA)){if(typeof o.index=="number"||QI(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function tA(e){return vx(e.source,ud(e.source,e.start))}function vx(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,s=e.locationOffset.line-1,a=t.line+s,i=t.line===1?r:0,l=t.column+i,u=`${e.name}:${a}:${l}
|
|
63
|
+
`,c=n.split(/\r\n|[\n\r]/g),d=c[o];if(d.length>120){const p=Math.floor(l/80),h=l%80,m=[];for(let b=0;b<d.length;b+=80)m.push(d.slice(b,b+80));return u+yx([[`${a} |`,m[0]],...m.slice(1,p+1).map(b=>["|",b]),["|","^".padStart(h)],["|",m[p+1]]])}return u+yx([[`${a-1} |`,c[o-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[o+1]]])}function yx(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
|
|
64
|
+
`)}function rA(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class cd extends Error{constructor(t,...r){var n,o,s;const{nodes:a,source:i,positions:l,path:u,originalError:c,extensions:d}=rA(r);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=c??void 0,this.nodes=xx(Array.isArray(a)?a:a?[a]:void 0);const p=xx((n=this.nodes)===null||n===void 0?void 0:n.map(m=>m.loc).filter(m=>m!=null));this.source=i??(p==null||(o=p[0])===null||o===void 0?void 0:o.source),this.positions=l??p?.map(m=>m.start),this.locations=l&&i?l.map(m=>ud(i,m)):p?.map(m=>ud(m.source,m.start));const h=XI(c?.extensions)?c?.extensions:void 0;this.extensions=(s=d??h)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,cd):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
65
65
|
|
|
66
|
-
`+
|
|
66
|
+
`+tA(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
67
67
|
|
|
68
|
-
`+
|
|
68
|
+
`+vx(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function xx(e){return e===void 0||e.length===0?void 0:e}function dt(e,t,r){return new cd(`Syntax Error: ${r}`,{source:e,positions:[t]})}class nA{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class wx{constructor(t,r,n,o,s,a){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Cx={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},oA=new Set(Object.keys(Cx));function Sx(e){const t=e?.kind;return typeof t=="string"&&oA.has(t)}var Do;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Do||(Do={}));var dd;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(dd||(dd={}));var fe;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(fe||(fe={}));function fd(e){return e===9||e===32}function Ts(e){return e>=48&&e<=57}function kx(e){return e>=97&&e<=122||e>=65&&e<=90}function Px(e){return kx(e)||e===95}function sA(e){return kx(e)||Ts(e)||e===95}function aA(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;a<e.length;++a){var s;const i=e[a],l=iA(i);l!==i.length&&(n=(s=n)!==null&&s!==void 0?s:a,o=a,a!==0&&l<r&&(r=l))}return e.map((a,i)=>i===0?a:a.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function iA(e){let t=0;for(;t<e.length&&fd(e.charCodeAt(t));)++t;return t}function lA(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=n.length===1,s=n.length>1&&n.slice(1).every(h=>h.length===0||fd(h.charCodeAt(0))),a=r.endsWith('\\"""'),i=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=i||l,c=!o||e.length>70||u||s||a;let d="";const p=o&&fd(e.charCodeAt(0));return(c&&!p||s)&&(d+=`
|
|
69
69
|
`),d+=r,(c||u)&&(d+=`
|
|
70
|
-
`),'"""'+d+'"""'}var Y;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(Y||(Y={}));class
|
|
71
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw dt(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function
|
|
72
|
-
`));return e.line+=l.length-1,e.lineStart=o,c}if(u===92&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34&&r.charCodeAt(s+3)===34){i+=r.slice(a,s),a=s+1,s+=4;continue}if(u===10||u===13){i+=r.slice(a,s),l.push(i),u===13&&r.charCodeAt(s+1)===10?s+=2:++s,i="",a=s,o=s;continue}if(_o(u))++s;else if(Ci(r,s))s+=2;else throw dt(e.source,s,`Invalid character within String: ${Dn(e,s)}.`)}throw dt(e.source,s,"Unterminated string.")}function
|
|
70
|
+
`),'"""'+d+'"""'}var Y;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(Y||(Y={}));class uA{constructor(t){const r=new wx(Y.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Y.EOF)do if(t.next)t=t.next;else{const r=dA(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===Y.COMMENT);return t}}function cA(e){return e===Y.BANG||e===Y.DOLLAR||e===Y.AMP||e===Y.PAREN_L||e===Y.PAREN_R||e===Y.DOT||e===Y.SPREAD||e===Y.COLON||e===Y.EQUALS||e===Y.AT||e===Y.BRACKET_L||e===Y.BRACKET_R||e===Y.BRACE_L||e===Y.PIPE||e===Y.BRACE_R}function _o(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ci(e,t){return $x(e.charCodeAt(t))&&Ex(e.charCodeAt(t+1))}function $x(e){return e>=55296&&e<=56319}function Ex(e){return e>=56320&&e<=57343}function Dn(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return Y.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function at(e,t,r,n,o){const s=e.line,a=1+r-e.lineStart;return new wx(t,r,n,s,a,o)}function dA(e,t){const r=e.source.body,n=r.length;let o=t;for(;o<n;){const s=r.charCodeAt(o);switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return fA(e,o);case 33:return at(e,Y.BANG,o,o+1);case 36:return at(e,Y.DOLLAR,o,o+1);case 38:return at(e,Y.AMP,o,o+1);case 40:return at(e,Y.PAREN_L,o,o+1);case 41:return at(e,Y.PAREN_R,o,o+1);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return at(e,Y.SPREAD,o,o+3);break;case 58:return at(e,Y.COLON,o,o+1);case 61:return at(e,Y.EQUALS,o,o+1);case 64:return at(e,Y.AT,o,o+1);case 91:return at(e,Y.BRACKET_L,o,o+1);case 93:return at(e,Y.BRACKET_R,o,o+1);case 123:return at(e,Y.BRACE_L,o,o+1);case 124:return at(e,Y.PIPE,o,o+1);case 125:return at(e,Y.BRACE_R,o,o+1);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?vA(e,o):hA(e,o)}if(Ts(s)||s===45)return pA(e,o,s);if(Px(s))return yA(e,o);throw dt(e.source,o,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:_o(s)||Ci(r,o)?`Unexpected character: ${Dn(e,o)}.`:`Invalid character: ${Dn(e,o)}.`)}return at(e,Y.EOF,n,n)}function fA(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const s=r.charCodeAt(o);if(s===10||s===13)break;if(_o(s))++o;else if(Ci(r,o))o+=2;else break}return at(e,Y.COMMENT,t,o,r.slice(t+1,o))}function pA(e,t,r){const n=e.source.body;let o=t,s=r,a=!1;if(s===45&&(s=n.charCodeAt(++o)),s===48){if(s=n.charCodeAt(++o),Ts(s))throw dt(e.source,o,`Invalid number, unexpected digit after 0: ${Dn(e,o)}.`)}else o=pd(e,o,s),s=n.charCodeAt(o);if(s===46&&(a=!0,s=n.charCodeAt(++o),o=pd(e,o,s),s=n.charCodeAt(o)),(s===69||s===101)&&(a=!0,s=n.charCodeAt(++o),(s===43||s===45)&&(s=n.charCodeAt(++o)),o=pd(e,o,s),s=n.charCodeAt(o)),s===46||Px(s))throw dt(e.source,o,`Invalid number, expected digit but got: ${Dn(e,o)}.`);return at(e,a?Y.FLOAT:Y.INT,t,o,n.slice(t,o))}function pd(e,t,r){if(!Ts(r))throw dt(e.source,t,`Invalid number, expected digit but got: ${Dn(e,t)}.`);const n=e.source.body;let o=t+1;for(;Ts(n.charCodeAt(o));)++o;return o}function hA(e,t){const r=e.source.body,n=r.length;let o=t+1,s=o,a="";for(;o<n;){const i=r.charCodeAt(o);if(i===34)return a+=r.slice(s,o),at(e,Y.STRING,t,o+1,a);if(i===92){a+=r.slice(s,o);const l=r.charCodeAt(o+1)===117?r.charCodeAt(o+2)===123?mA(e,o):gA(e,o):bA(e,o);a+=l.value,o+=l.size,s=o;continue}if(i===10||i===13)break;if(_o(i))++o;else if(Ci(r,o))o+=2;else throw dt(e.source,o,`Invalid character within String: ${Dn(e,o)}.`)}throw dt(e.source,o,"Unterminated string.")}function mA(e,t){const r=e.source.body;let n=0,o=3;for(;o<12;){const s=r.charCodeAt(t+o++);if(s===125){if(o<5||!_o(n))break;return{value:String.fromCodePoint(n),size:o}}if(n=n<<4|Ds(s),n<0)break}throw dt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}function gA(e,t){const r=e.source.body,n=Tx(r,t+2);if(_o(n))return{value:String.fromCodePoint(n),size:6};if($x(n)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const o=Tx(r,t+8);if(Ex(o))return{value:String.fromCodePoint(n,o),size:12}}throw dt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function Tx(e,t){return Ds(e.charCodeAt(t))<<12|Ds(e.charCodeAt(t+1))<<8|Ds(e.charCodeAt(t+2))<<4|Ds(e.charCodeAt(t+3))}function Ds(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function bA(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
71
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw dt(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function vA(e,t){const r=e.source.body,n=r.length;let o=e.lineStart,s=t+3,a=s,i="";const l=[];for(;s<n;){const u=r.charCodeAt(s);if(u===34&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34){i+=r.slice(a,s),l.push(i);const c=at(e,Y.BLOCK_STRING,t,s+3,aA(l).join(`
|
|
72
|
+
`));return e.line+=l.length-1,e.lineStart=o,c}if(u===92&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34&&r.charCodeAt(s+3)===34){i+=r.slice(a,s),a=s+1,s+=4;continue}if(u===10||u===13){i+=r.slice(a,s),l.push(i),u===13&&r.charCodeAt(s+1)===10?s+=2:++s,i="",a=s,o=s;continue}if(_o(u))++s;else if(Ci(r,s))s+=2;else throw dt(e.source,s,`Invalid character within String: ${Dn(e,s)}.`)}throw dt(e.source,s,"Unterminated string.")}function yA(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const s=r.charCodeAt(o);if(sA(s))++o;else break}return at(e,Y.NAME,t,o,r.slice(t,o))}const xA=10,Dx=2;function hd(e){return Si(e,[])}function Si(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return wA(e,t);default:return String(e)}}function wA(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(CA(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Si(n,r)}else if(Array.isArray(e))return kA(e,r);return SA(e,r)}function CA(e){return typeof e.toJSON=="function"}function SA(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Dx?"["+PA(e)+"]":"{ "+r.map(([o,s])=>o+": "+Si(s,t)).join(", ")+" }"}function kA(e,t){if(e.length===0)return"[]";if(t.length>Dx)return"[Array]";const r=Math.min(xA,e.length),n=e.length-r,o=[];for(let s=0;s<r;++s)o.push(Si(e[s],t));return n===1?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function PA(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const $A=globalThis.process&&process.env.NODE_ENV==="production"?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const o=r.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===s){const a=hd(t);throw new Error(`Cannot use ${o} "${a}" from another module or realm.
|
|
73
73
|
|
|
74
74
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
75
75
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -80,18 +80,18 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
80
80
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
81
81
|
versions may have different capabilities and behavior. The data from one
|
|
82
82
|
version used in the function from another could produce confusing and
|
|
83
|
-
spurious results.`)}}return!1};class Dx{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||wi(!1,`Body must be a string. Received: ${hd(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||wi(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||wi(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function $A(e){return PA(e,Dx)}function EA(e,t){const r=new TA(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class TA{constructor(t,r={}){const{lexer:n,...o}=r;if(n)this._lexer=n;else{const s=$A(t)?t:new Dx(t);this._lexer=new lA(s)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(Y.NAME);return this.node(t,{kind:fe.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:fe.DOCUMENT,definitions:this.many(Y.SOF,this.parseDefinition,Y.EOF)})}parseDefinition(){if(this.peek(Y.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===Y.BRACE_L)throw dt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===Y.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw dt(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(r.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(Y.BRACE_L))return this.node(t,{kind:fe.OPERATION_DEFINITION,operation:Do.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseDescription(),n=this.parseOperationType();let o;return this.peek(Y.NAME)&&(o=this.parseName()),this.node(t,{kind:fe.OPERATION_DEFINITION,operation:n,description:r,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(Y.NAME);switch(t.value){case"query":return Do.QUERY;case"mutation":return Do.MUTATION;case"subscription":return Do.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Y.PAREN_L,this.parseVariableDefinition,Y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:fe.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(Y.DOLLAR),this.node(t,{kind:fe.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:fe.SELECTION_SET,selections:this.many(Y.BRACE_L,this.parseSelection,Y.BRACE_R)})}parseSelection(){return this.peek(Y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(Y.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:fe.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Y.PAREN_L,r,Y.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(Y.COLON),this.node(r,{kind:fe.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(Y.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(Y.NAME)?this.node(t,{kind:fe.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:fe.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:fe.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:fe.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case Y.BRACKET_L:return this.parseList(t);case Y.BRACE_L:return this.parseObject(t);case Y.INT:return this.advanceLexer(),this.node(r,{kind:fe.INT,value:r.value});case Y.FLOAT:return this.advanceLexer(),this.node(r,{kind:fe.FLOAT,value:r.value});case Y.STRING:case Y.BLOCK_STRING:return this.parseStringLiteral();case Y.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:fe.BOOLEAN,value:!0});case"false":return this.node(r,{kind:fe.BOOLEAN,value:!1});case"null":return this.node(r,{kind:fe.NULL});default:return this.node(r,{kind:fe.ENUM,value:r.value})}case Y.DOLLAR:if(t)if(this.expectToken(Y.DOLLAR),this._lexer.token.kind===Y.NAME){const n=this._lexer.token.value;throw dt(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:fe.STRING,value:t.value,block:t.kind===Y.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:fe.LIST,values:this.any(Y.BRACKET_L,r,Y.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:fe.OBJECT,fields:this.any(Y.BRACE_L,r,Y.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(Y.COLON),this.node(r,{kind:fe.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(Y.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(Y.AT),this.node(r,{kind:fe.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(Y.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Y.BRACKET_R),r=this.node(t,{kind:fe.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(Y.BANG)?this.node(t,{kind:fe.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:fe.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Y.STRING)||this.peek(Y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(Y.BRACE_L,this.parseOperationTypeDefinition,Y.BRACE_R);return this.node(t,{kind:fe.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(Y.COLON);const n=this.parseNamedType();return this.node(t,{kind:fe.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:fe.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:fe.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Y.BRACE_L,this.parseFieldDefinition,Y.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(Y.COLON);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:fe.FIELD_DEFINITION,description:r,name:n,arguments:o,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(Y.PAREN_L,this.parseInputValueDef,Y.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(Y.COLON);const o=this.parseTypeReference();let s;this.expectOptionalToken(Y.EQUALS)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:fe.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:fe.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:s,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:fe.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(Y.EQUALS)?this.delimitedMany(Y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:fe.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:s})}parseEnumValuesDefinition(){return this.optionalMany(Y.BRACE_L,this.parseEnumValueDefinition,Y.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:fe.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw dt(this._lexer.source,this._lexer.token.start,`${ki(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:fe.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(Y.BRACE_L,this.parseInputValueDef,Y.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===Y.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(Y.BRACE_L,this.parseOperationTypeDefinition,Y.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:fe.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:fe.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:fe.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:fe.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:fe.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:fe.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:fe.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Y.AT);const n=this.parseName(),o=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:fe.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(Y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(dd,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,r=this.expectOptionalToken(Y.AT),n=this.parseName();let o;!r&&this.expectOptionalToken(Y.DOT)&&(o=this.parseName());let s;return(r||o)&&this.expectOptionalToken(Y.PAREN_L)&&(s=this.parseName(),this.expectToken(Y.COLON),this.expectToken(Y.PAREN_R)),r?s?this.node(t,{kind:fe.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:s}):this.node(t,{kind:fe.DIRECTIVE_COORDINATE,name:n}):o?s?this.node(t,{kind:fe.ARGUMENT_COORDINATE,name:n,fieldName:o,argumentName:s}):this.node(t,{kind:fe.MEMBER_COORDINATE,name:n,memberName:o}):this.node(t,{kind:fe.TYPE_COORDINATE,name:n})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new rA(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw dt(this._lexer.source,r.start,`Expected ${_x(t)}, found ${ki(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===Y.NAME&&r.value===t)this.advanceLexer();else throw dt(this._lexer.source,r.start,`Expected "${t}", found ${ki(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===Y.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return dt(this._lexer.source,r.start,`Unexpected ${ki(r)}.`)}any(t,r,n){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==Y.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw dt(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function ki(e){const t=e.value;return _x(e.kind)+(t!=null?` "${t}"`:"")}function _x(e){return uA(e)?`"${e}"`:e}function DA(e){return`"${e.replace(_A,IA)}"`}const _A=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function IA(e){return AA[e.charCodeAt(0)]}const AA=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],NA=Object.freeze({});function MA(e,t,r=wx){const n=new Map;for(const y of Object.values(fe))n.set(y,OA(t,y));let o,s=Array.isArray(e),a=[e],i=-1,l=[],u=e,c,d;const p=[],h=[];do{i++;const y=i===a.length,x=y&&l.length!==0;if(y){if(c=h.length===0?void 0:p[p.length-1],u=d,d=h.pop(),x)if(s){u=u.slice();let C=0;for(const[S,k]of l){const D=S-C;k===null?(u.splice(D,1),C++):u[D]=k}}else{u={...u};for(const[C,S]of l)u[C]=S}i=o.index,a=o.keys,l=o.edits,s=o.inArray,o=o.prev}else if(d){if(c=s?i:a[i],u=d[c],u==null)continue;p.push(c)}let w;if(!Array.isArray(u)){var m,b;Cx(u)||wi(!1,`Invalid AST Node: ${hd(u)}.`);const C=y?(m=n.get(u.kind))===null||m===void 0?void 0:m.leave:(b=n.get(u.kind))===null||b===void 0?void 0:b.enter;if(w=C?.call(t,u,c,d,p,h),w===NA)break;if(w===!1){if(!y){p.pop();continue}}else if(w!==void 0&&(l.push([c,w]),!y))if(Cx(w))u=w;else{p.pop();continue}}if(w===void 0&&x&&l.push([c,u]),y)p.pop();else{var v;o={inArray:s,index:i,keys:a,edits:l,prev:o},s=Array.isArray(u),a=s?u:(v=r[u.kind])!==null&&v!==void 0?v:[],i=-1,l=[],d&&h.push(d),d=u}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function OA(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function jA(e){return MA(e,BA)}const FA=80,BA={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ae(e.definitions,`
|
|
83
|
+
spurious results.`)}}return!1};class _x{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||wi(!1,`Body must be a string. Received: ${hd(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||wi(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||wi(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function EA(e){return $A(e,_x)}function TA(e,t){const r=new DA(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class DA{constructor(t,r={}){const{lexer:n,...o}=r;if(n)this._lexer=n;else{const s=EA(t)?t:new _x(t);this._lexer=new uA(s)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(Y.NAME);return this.node(t,{kind:fe.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:fe.DOCUMENT,definitions:this.many(Y.SOF,this.parseDefinition,Y.EOF)})}parseDefinition(){if(this.peek(Y.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===Y.BRACE_L)throw dt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===Y.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw dt(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(r.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(Y.BRACE_L))return this.node(t,{kind:fe.OPERATION_DEFINITION,operation:Do.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseDescription(),n=this.parseOperationType();let o;return this.peek(Y.NAME)&&(o=this.parseName()),this.node(t,{kind:fe.OPERATION_DEFINITION,operation:n,description:r,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(Y.NAME);switch(t.value){case"query":return Do.QUERY;case"mutation":return Do.MUTATION;case"subscription":return Do.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Y.PAREN_L,this.parseVariableDefinition,Y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:fe.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(Y.DOLLAR),this.node(t,{kind:fe.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:fe.SELECTION_SET,selections:this.many(Y.BRACE_L,this.parseSelection,Y.BRACE_R)})}parseSelection(){return this.peek(Y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(Y.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:fe.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Y.PAREN_L,r,Y.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(Y.COLON),this.node(r,{kind:fe.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(Y.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(Y.NAME)?this.node(t,{kind:fe.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:fe.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:fe.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:fe.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case Y.BRACKET_L:return this.parseList(t);case Y.BRACE_L:return this.parseObject(t);case Y.INT:return this.advanceLexer(),this.node(r,{kind:fe.INT,value:r.value});case Y.FLOAT:return this.advanceLexer(),this.node(r,{kind:fe.FLOAT,value:r.value});case Y.STRING:case Y.BLOCK_STRING:return this.parseStringLiteral();case Y.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:fe.BOOLEAN,value:!0});case"false":return this.node(r,{kind:fe.BOOLEAN,value:!1});case"null":return this.node(r,{kind:fe.NULL});default:return this.node(r,{kind:fe.ENUM,value:r.value})}case Y.DOLLAR:if(t)if(this.expectToken(Y.DOLLAR),this._lexer.token.kind===Y.NAME){const n=this._lexer.token.value;throw dt(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:fe.STRING,value:t.value,block:t.kind===Y.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:fe.LIST,values:this.any(Y.BRACKET_L,r,Y.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:fe.OBJECT,fields:this.any(Y.BRACE_L,r,Y.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(Y.COLON),this.node(r,{kind:fe.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(Y.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(Y.AT),this.node(r,{kind:fe.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(Y.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Y.BRACKET_R),r=this.node(t,{kind:fe.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(Y.BANG)?this.node(t,{kind:fe.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:fe.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Y.STRING)||this.peek(Y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(Y.BRACE_L,this.parseOperationTypeDefinition,Y.BRACE_R);return this.node(t,{kind:fe.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(Y.COLON);const n=this.parseNamedType();return this.node(t,{kind:fe.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:fe.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:fe.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Y.BRACE_L,this.parseFieldDefinition,Y.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(Y.COLON);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:fe.FIELD_DEFINITION,description:r,name:n,arguments:o,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(Y.PAREN_L,this.parseInputValueDef,Y.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(Y.COLON);const o=this.parseTypeReference();let s;this.expectOptionalToken(Y.EQUALS)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:fe.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:fe.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:s,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:fe.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(Y.EQUALS)?this.delimitedMany(Y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:fe.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:s})}parseEnumValuesDefinition(){return this.optionalMany(Y.BRACE_L,this.parseEnumValueDefinition,Y.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:fe.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw dt(this._lexer.source,this._lexer.token.start,`${ki(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:fe.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(Y.BRACE_L,this.parseInputValueDef,Y.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===Y.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(Y.BRACE_L,this.parseOperationTypeDefinition,Y.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:fe.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:fe.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:fe.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:fe.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:fe.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:fe.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:fe.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Y.AT);const n=this.parseName(),o=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:fe.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(Y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(dd,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,r=this.expectOptionalToken(Y.AT),n=this.parseName();let o;!r&&this.expectOptionalToken(Y.DOT)&&(o=this.parseName());let s;return(r||o)&&this.expectOptionalToken(Y.PAREN_L)&&(s=this.parseName(),this.expectToken(Y.COLON),this.expectToken(Y.PAREN_R)),r?s?this.node(t,{kind:fe.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:s}):this.node(t,{kind:fe.DIRECTIVE_COORDINATE,name:n}):o?s?this.node(t,{kind:fe.ARGUMENT_COORDINATE,name:n,fieldName:o,argumentName:s}):this.node(t,{kind:fe.MEMBER_COORDINATE,name:n,memberName:o}):this.node(t,{kind:fe.TYPE_COORDINATE,name:n})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new nA(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw dt(this._lexer.source,r.start,`Expected ${Ix(t)}, found ${ki(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===Y.NAME&&r.value===t)this.advanceLexer();else throw dt(this._lexer.source,r.start,`Expected "${t}", found ${ki(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===Y.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return dt(this._lexer.source,r.start,`Unexpected ${ki(r)}.`)}any(t,r,n){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==Y.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw dt(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function ki(e){const t=e.value;return Ix(e.kind)+(t!=null?` "${t}"`:"")}function Ix(e){return cA(e)?`"${e}"`:e}function _A(e){return`"${e.replace(IA,AA)}"`}const IA=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function AA(e){return NA[e.charCodeAt(0)]}const NA=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],MA=Object.freeze({});function OA(e,t,r=Cx){const n=new Map;for(const y of Object.values(fe))n.set(y,jA(t,y));let o,s=Array.isArray(e),a=[e],i=-1,l=[],u=e,c,d;const p=[],h=[];do{i++;const y=i===a.length,x=y&&l.length!==0;if(y){if(c=h.length===0?void 0:p[p.length-1],u=d,d=h.pop(),x)if(s){u=u.slice();let C=0;for(const[S,k]of l){const D=S-C;k===null?(u.splice(D,1),C++):u[D]=k}}else{u={...u};for(const[C,S]of l)u[C]=S}i=o.index,a=o.keys,l=o.edits,s=o.inArray,o=o.prev}else if(d){if(c=s?i:a[i],u=d[c],u==null)continue;p.push(c)}let w;if(!Array.isArray(u)){var m,b;Sx(u)||wi(!1,`Invalid AST Node: ${hd(u)}.`);const C=y?(m=n.get(u.kind))===null||m===void 0?void 0:m.leave:(b=n.get(u.kind))===null||b===void 0?void 0:b.enter;if(w=C?.call(t,u,c,d,p,h),w===MA)break;if(w===!1){if(!y){p.pop();continue}}else if(w!==void 0&&(l.push([c,w]),!y))if(Sx(w))u=w;else{p.pop();continue}}if(w===void 0&&x&&l.push([c,u]),y)p.pop();else{var v;o={inArray:s,index:i,keys:a,edits:l,prev:o},s=Array.isArray(u),a=s?u:(v=r[u.kind])!==null&&v!==void 0?v:[],i=-1,l=[],d&&h.push(d),d=u}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function jA(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function FA(e){return OA(e,zA)}const BA=80,zA={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ae(e.definitions,`
|
|
84
84
|
|
|
85
85
|
`)},OperationDefinition:{leave(e){const t=md(e.variableDefinitions)?ke(`(
|
|
86
86
|
`,ae(e.variableDefinitions,`
|
|
87
87
|
`),`
|
|
88
88
|
)`):ke("(",ae(e.variableDefinitions,", "),")"),r=ke("",e.description,`
|
|
89
89
|
`)+ae([e.operation,ae([e.name,t]),ae(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:o})=>ke("",o,`
|
|
90
|
-
`)+e+": "+t+ke(" = ",r)+ke(" ",ae(n," "))},SelectionSet:{leave:({selections:e})=>ir(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const s=ke("",e,": ")+t;let a=s+ke("(",ae(r,", "),")");return a.length>
|
|
90
|
+
`)+e+": "+t+ke(" = ",r)+ke(" ",ae(n," "))},SelectionSet:{leave:({selections:e})=>ir(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const s=ke("",e,": ")+t;let a=s+ke("(",ae(r,", "),")");return a.length>BA&&(a=s+ke(`(
|
|
91
91
|
`,Pi(ae(r,`
|
|
92
92
|
`)),`
|
|
93
93
|
)`)),ae([a,ae(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ke(" ",ae(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>ae(["...",ke("on ",e),ae(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o,description:s})=>ke("",s,`
|
|
94
|
-
`)+`fragment ${e}${ke("(",ae(r,", "),")")} on ${t} ${ke("",ae(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?
|
|
94
|
+
`)+`fragment ${e}${ke("(",ae(r,", "),")")} on ${t} ${ke("",ae(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?lA(e):_A(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ae(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ae(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ke("(",ae(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>ke("",e,`
|
|
95
95
|
`)+ae(["schema",ae(t," "),ir(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>ke("",e,`
|
|
96
96
|
`)+ae(["scalar",t,ae(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>ke("",e,`
|
|
97
97
|
`)+ae(["type",t,ke("implements ",ae(r," & ")),ae(n," "),ir(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>ke("",e,`
|
|
@@ -113,9 +113,9 @@ spurious results.`)}}return!1};class Dx{constructor(t,r="GraphQL request",n={lin
|
|
|
113
113
|
`)),`
|
|
114
114
|
}`)}function ke(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Pi(e){return ke(" ",e.replace(/\n/g,`
|
|
115
115
|
`))}function md(e){var t;return(t=e?.some(r=>r.includes(`
|
|
116
|
-
`)))!==null&&t!==void 0?t:!1}const
|
|
116
|
+
`)))!==null&&t!==void 0?t:!1}const Ax="Accept",gd="Content-Type",bd="application/json",Nx="application/graphql-response+json",Mx=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),LA=e=>{const t=e.toLowerCase();return t.includes(Nx)||t.includes(bd)},Ox=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(jx)};if(xi(e))return{_tag:"Single",executionResult:jx(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
117
117
|
Got:
|
|
118
|
-
${String(e)}`)}catch(t){return t}},
|
|
118
|
+
${String(e)}`)}catch(t){return t}},jx=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,r,n;if("errors"in e){if(!xi(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!xi(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!xi(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");n=e.extensions}return{data:r,errors:t,extensions:n}},VA=e=>e._tag==="Batch"?e.executionResults.some(Fx):Fx(e.executionResult),Fx=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Bx=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===fe.OPERATION_DEFINITION,RA=e=>{let t;const r=e.definitions.filter(Bx);return r.length===1&&(t=r[0].name?.value),t},KA=e=>{let t=!1;const r=e.definitions.filter(Bx);return r.length===1&&(t=r[0].operation==="mutation"),t},vd=(e,t)=>{const r=typeof e=="string"||"kind"in e?e:String(e),n=typeof r=="string"?r:FA(r);let o=!1,s;if(t)return{expression:n,isMutation:o,operationName:s};const a=GI(()=>typeof r=="string"?TA(r):r);return a instanceof Error?{expression:n,isMutation:o,operationName:s}:(s=RA(a),o=KA(a),{expression:n,operationName:s,isMutation:o})},yd=JSON,xd=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":mx(e.method??"post"):e.request.hasMutations?"POST":mx(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=await UA(t.method)(t),o=await n.text();let s;try{s=WA(o,n.headers.get(gd),e.fetchOptions.jsonSerializer??yd)}catch(i){s=i}const a={status:n.status,headers:n.headers,body:o};if(!n.ok){if(s instanceof Error)return new Tn({...a},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const i=s._tag==="Batch"?{...s.executionResults,...a}:{...s.executionResult,...a};return new Tn(i,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}if(s instanceof Error)throw s;if(VA(s)&&t.fetchOptions.errorPolicy==="none"){const i=s._tag==="Batch"?{...s.executionResults,...a}:{...s.executionResult,...a};return new Tn(i,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(s._tag){case"Single":return{...a,...zx(t)(s.executionResult)};case"Batch":return{...a,data:s.executionResults.map(zx(t))};default:ld(s)}},zx=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),WA=(e,t,r)=>t&&LA(t)?Ox(r.parse(e)):Ox(e),UA=e=>async t=>{const r=new Headers(t.headers);let n=null,o;r.has(Ax)||r.set(Ax,[Nx,bd].join(", ")),e==="POST"?(o=(t.fetchOptions.jsonSerializer??yd).stringify(HA(t)),typeof o=="string"&&!r.has(gd)&&r.set(gd,bd)):n=qA(t);const s={method:e,headers:r,body:o,...t.fetchOptions};let a=new URL(t.url),i=s;if(t.middleware){const u=await Promise.resolve(t.middleware({...s,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:c,...d}=u;a=new URL(c),i=d}return n&&n.forEach((u,c)=>{a.searchParams.append(c,u)}),await(t.fetch??fetch)(a,i)},HA=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return gx(e.request.query,e.request.variables??[]).map(([t,r])=>({query:t,variables:r}));default:throw ld(e.request)}},qA=e=>{const t=e.fetchOptions.jsonSerializer??yd,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",Mx(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const n=e.request.variables?.map(a=>t.stringify(a))??[],o=e.request.query.map(Mx),s=gx(o,n).map(([a,i])=>({query:a,variables:i}));return r.append("query",t.stringify(s)),r}default:throw ld(e.request)}};class GA{url;requestConfig;constructor(t,r={}){this.url=t,this.requestConfig=r}rawRequest=async(...t)=>{const[r,n,o]=t,s=JI(r,n,o),{headers:a,fetch:i=globalThis.fetch,method:l="POST",requestMiddleware:u,responseMiddleware:c,excludeOperationName:d,...p}=this.requestConfig,{url:h}=this;s.signal!==void 0&&(p.signal=s.signal);const m=vd(s.query,d),b=await xd({url:h,request:{_tag:"Single",document:m,variables:s.variables},headers:{...To(id(a)),...To(s.requestHeaders)},fetch:i,method:l,fetchOptions:p,middleware:u});if(c&&await c(b,{operationName:m.operationName,variables:n,url:this.url}),b instanceof Error)throw b;return b};async request(t,...r){const[n,o]=r,s=ZA(t,n,o),{headers:a,fetch:i=globalThis.fetch,method:l="POST",requestMiddleware:u,responseMiddleware:c,excludeOperationName:d,...p}=this.requestConfig,{url:h}=this;s.signal!==void 0&&(p.signal=s.signal);const m=vd(s.document,d),b=await xd({url:h,request:{_tag:"Single",document:m,variables:s.variables},headers:{...To(id(a)),...To(s.requestHeaders)},fetch:i,method:l,fetchOptions:p,middleware:u});if(c&&await c(b,{operationName:m.operationName,variables:s.variables,url:this.url}),b instanceof Error)throw b;return b.data}async batchRequests(t,r){const n=YI(t,r),{headers:o,excludeOperationName:s,...a}=this.requestConfig;n.signal!==void 0&&(a.signal=n.signal);const i=n.documents.map(({document:p})=>vd(p,s)),l=i.map(({expression:p})=>p),u=i.some(({isMutation:p})=>p),c=n.documents.map(({variables:p})=>p),d=await xd({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:u,variables:c},headers:{...To(id(o)),...To(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:c,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const ZA=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},Le=(e,...t)=>e.reduce((r,n,o)=>`${r}${n}${o in t?String(t[o]):""}`,"");let Lx;function YA(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return Lx=new GA(t,{headers:e}),Lx}function Vx(e,t={}){return YA().request(e,t)}function qt([e,t]){return Vx(e,t)}function Or(e){return(t,r,n)=>{const o=g.useRef(void 0),s=e(t,r,n);g.useEffect(()=>{s.data!==void 0&&(o.current=s.data)},[s.data]);const a=g.useCallback(()=>{o.current=void 0},[]),i=s.data===void 0?o.current:s.data,l=s.data===void 0&&o.current!==void 0;return Object.assign({},s,{data:i,isSticky:l,resetSticky:a})}}const Rx=Le`
|
|
119
119
|
fragment PhoneSelectorPhone on Product {
|
|
120
120
|
slug
|
|
121
121
|
fullName
|
|
@@ -175,8 +175,8 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
175
175
|
status
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
179
|
-
${
|
|
178
|
+
`,JA=Le`
|
|
179
|
+
${Rx}
|
|
180
180
|
|
|
181
181
|
query phoneSelectorPhones($brand: Value) {
|
|
182
182
|
searchProducts(query: {
|
|
@@ -192,7 +192,7 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
`;function
|
|
195
|
+
`;function XA(e){const{data:t,error:r,isLoading:n}=En(e&&e!=="popular"?[JA,{brand:e}]:null,{use:[Or],fetcher:qt});return{phones:t?.searchProducts?.records||[],isLoading:n,error:r}}const QA=Le`
|
|
196
196
|
query phoneSelectorBrands {
|
|
197
197
|
searchBrands(query: {
|
|
198
198
|
where: [
|
|
@@ -207,8 +207,8 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
211
|
-
${
|
|
210
|
+
`,eN=Le`
|
|
211
|
+
${Rx}
|
|
212
212
|
|
|
213
213
|
query phoneSelectorPopularPhones {
|
|
214
214
|
searchProducts(query: {
|
|
@@ -224,10 +224,10 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
`;function eN(){const{data:e,error:t,isLoading:r}=En([XA],{use:[Or],fetcher:qt}),{data:n,error:o,isLoading:s}=En([QA],{use:[Or],fetcher:qt}),a=e?.searchBrands.records.sort((l,u)=>l.rankingConnected-u.rankingConnected)||[];return{popularPhones:n?.searchProducts?.records||[],brands:a,isLoading:r||s,error:t||o}}const Rx=new WeakMap;function $i(e,t,r){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let n=Rx.get(e);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${t}`}function wd(e){return K5()?e.altKey:e.ctrlKey}function Ei(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,s=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return s&&(o=`[data-collection="${CSS.escape(s)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const Kx=new WeakMap;function tN(e){let t=bt();return Kx.set(e,t),t}function rN(e){return Kx.get(e)}const nN=1e3;function Wx(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=g.useRef({search:"",timeout:void 0}).current,s=a=>{let i=oN(a.key);if(!(!i||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&i===" ")){if(i===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=i,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},nN)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function oN(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Cd(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:i=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:m=n,linkBehavior:b="action"}=e,{direction:v}=Ot(),y=ka(),x=I=>{var z;if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(I.target)))return;const F=(q,ee)=>{if(q!=null){if(t.isLink(q)&&b==="selection"&&u&&!wd(I)){Hn.flushSync(()=>{t.setFocusedKey(q,ee)});let ue=Ei(n,q),te=t.getItemProps(q);ue&&y.open(ue,I,te.href,te.routerOptions);return}if(t.setFocusedKey(q,ee),t.isLink(q)&&b==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&!wd(I)&&t.replaceSelection(q)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var B,U,E;let q=t.focusedKey!=null?(B=r.getKeyBelow)===null||B===void 0?void 0:B.call(r,t.focusedKey):(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r);q==null&&s&&(q=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q))}break;case"ArrowUp":if(r.getKeyAbove){var j,T,V;let q=t.focusedKey!=null?(j=r.getKeyAbove)===null||j===void 0?void 0:j.call(r,t.focusedKey):(T=r.getLastKey)===null||T===void 0?void 0:T.call(r);q==null&&s&&(q=(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var K,G,Z;let q=t.focusedKey!=null?(K=r.getKeyLeftOf)===null||K===void 0?void 0:K.call(r,t.focusedKey):null;q==null&&s&&(q=v==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,t.focusedKey):(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ne,X;let q=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;q==null&&s&&(q=v==="rtl"?(ne=r.getLastKey)===null||ne===void 0?void 0:ne.call(r,t.focusedKey):(X=r.getFirstKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let q=r.getFirstKey(t.focusedKey,no(I));t.setFocusedKey(q),q!=null&&(no(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let q=r.getLastKey(t.focusedKey,no(I));t.setFocusedKey(q),q!=null&&(no(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(I.preventDefault(),F(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(I.preventDefault(),F(q))}break;case"a":no(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(I.stopPropagation(),I.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(I.shiftKey)n.current.focus();else{let q=Lt(n.current,{tabbable:!0}),ee,ue;do ue=q.lastChild(),ue&&(ee=ue);while(ue);ee&&(!ee.contains(document.activeElement)||document.activeElement&&!rb(document.activeElement))&&Vt(ee)}break}}},w=g.useRef({top:0,left:0});Ea(m,"scroll",h?void 0:()=>{var I,z,F,B;w.current={top:(F=(I=m.current)===null||I===void 0?void 0:I.scrollTop)!==null&&F!==void 0?F:0,left:(B=(z=m.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&B!==void 0?B:0}});let C=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){var z,F;let E=T=>{T!=null&&(t.setFocusedKey(T),u&&!t.isSelected(T)&&t.replaceSelection(T))},j=I.relatedTarget;var B,U;j&&I.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?E((B=t.lastSelectedKey)!==null&&B!==void 0?B:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):E((U=t.firstSelectedKey)!==null&&U!==void 0?U:(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))}else!h&&m.current&&(m.current.scrollTop=w.current.top,m.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&m.current){let E=Ei(n,t.focusedKey);E instanceof HTMLElement&&(!E.contains(document.activeElement)&&!d&&Vt(E),ys()==="keyboard"&&Zr(E,{containingElement:n.current}))}}},S=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)},k=g.useRef(!1);Ea(n,nT,d?I=>{let{detail:z}=I;I.stopPropagation(),t.setFocused(!0),z?.focusStrategy==="first"&&(k.current=!0)}:void 0),Yg(()=>{if(k.current){var I,z;let F=(z=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&z!==void 0?z:null;if(F==null){let B=xt();O0(n.current),j0(B,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(F),k.current=!1}},[t.collection]),Yg(()=>{t.collection.size>0&&(k.current=!1)},[t.focusedKey]),Ea(n,rT,d?I=>{var z;I.stopPropagation(),t.setFocused(!1),!((z=I.detail)===null||z===void 0)&&z.clearFocusKey&&t.setFocusedKey(null)}:void 0);const D=g.useRef(o),$=g.useRef(!1);g.useEffect(()=>{if(D.current){var I,z;let U=null;var F;o==="first"&&(U=(F=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&F!==void 0?F:null);var B;o==="last"&&(U=(B=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&B!==void 0?B:null);let E=t.selectedKeys;if(E.size){for(let j of E)if(t.canSelectItem(j)){U=j;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!d&&n.current&&Et(n.current),t.collection.size>0&&(D.current=!1,$.current=!0)}});let _=g.useRef(t.focusedKey),N=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||$.current)&&m.current&&n.current){let I=ys(),z=Ei(n,t.focusedKey);if(!(z instanceof HTMLElement))return;(I==="keyboard"||$.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{m.current&&(Qg(m.current,z),I!=="virtual"&&Zr(z,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Et(n.current),_.current=t.focusedKey,$.current=!1}),g.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),Ea(n,"react-aria-focus-scope-restore",I=>{I.preventDefault(),t.setFocused(!0)});let A={onKeyDown:x,onFocus:C,onBlur:S,onMouseDown(I){m.current===I.target&&I.preventDefault()}},{typeSelectProps:M}=Wx({keyboardDelegate:r,selectionManager:t});c||(A=Ce(M,A));let O;d||(O=t.focusedKey==null?0:-1);let L=tN(t.collection);return{collectionProps:Ce(A,{tabIndex:O,"data-collection":L})}}function Ti(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=ka();t=bt(t);let h=E=>{if(E.pointerType==="keyboard"&&wd(E))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let j=r.getItemProps(n);p.open(o.current,E,j.href,j.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):E&&E.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||E&&(no(E)||E.pointerType==="touch"||E.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?O0(o.current):i?i():document.activeElement!==o.current&&o.current&&Et(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),l=l||r.isDisabled(n);let m={};!a&&!l?m={tabIndex:n===r.focusedKey?0:-1,onFocus(E){E.target===o.current&&r.setFocusedKey(n)}}:l&&(m.onMouseDown=E=>{E.preventDefault()});let b=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",y=r.isLink(n)&&d!=="selection"&&d!=="none",x=!l&&r.canSelectItem(n)&&!b&&!v,w=(u||y)&&!l,C=w&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),S=w&&x&&r.selectionBehavior==="replace",k=C||S,D=g.useRef(null),$=k&&x,_=g.useRef(!1),N=g.useRef(!1),A=r.getItemProps(n),M=E=>{if(u){var j;u(),(j=o.current)===null||j===void 0||j.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}y&&o.current&&p.open(o.current,E,A.href,A.routerOptions)},O={ref:o};if(s?(O.onPressStart=E=>{D.current=E.pointerType,_.current=$,E.pointerType==="keyboard"&&(!k||Hx())&&h(E)},c?(O.onPressUp=C?void 0:E=>{E.pointerType==="mouse"&&x&&h(E)},O.onPress=C?M:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&x&&h(E)}):O.onPress=E=>{if(C||S&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!Ux())return;M(E)}else E.pointerType!=="keyboard"&&x&&h(E)}):(O.onPressStart=E=>{D.current=E.pointerType,_.current=$,N.current=C,x&&(E.pointerType==="mouse"&&!C||E.pointerType==="keyboard"&&(!w||Hx()))&&h(E)},O.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&k&&Ux()||E.pointerType==="mouse"&&N.current)&&(k?M(E):x&&h(E))}),m["data-collection"]=rN(r.collection),m["data-key"]=n,O.preventFocusOnPress=a,a&&(O=Ce(O,{onPressStart(E){E.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(E){E.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),A)for(let E of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])A[E]&&(O[E]=Ur(O[E],A[E]));let{pressProps:L,isPressed:I}=jt(O),z=S?E=>{D.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),M(E))}:void 0,{longPressProps:F}=T0({isDisabled:!$,onLongPress(E){E.pointerType==="touch"&&(h(E),r.setSelectionBehavior("toggle"))}}),B=E=>{D.current==="touch"&&_.current&&E.preventDefault()},U=d!=="none"&&r.isLink(n)?E=>{Tr.isOpening||E.preventDefault()}:void 0;return{itemProps:Ce(m,x||C||a&&!l?L:{},$?F:{},{onDoubleClick:z,onDragStartCapture:B,onClick:U,id:t},a?{onMouseDown:E=>E.preventDefault()}:void 0),isPressed:I,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:x,hasAction:k}}function Ux(){let e=window.event;return e?.key==="Enter"}function Hx(){let e=window.event;return e?.key===" "||e?.code==="Space"}class Sd{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?Ei(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),s=n.getBoundingClientRect();return{x:s.left-o.left-r.clientLeft+r.scrollLeft,y:s.top-o.top-r.clientTop+r.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,s;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(s=t?.clientHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class qx{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,s=this.layoutDelegate.getItemRect(o);if(!s||o==null)return null;let a=s;do{if(o=r(o),o==null)break;s=this.layoutDelegate.getItemRect(o)}while(s&&n(a,s)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!ro(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let s=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!ro(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let s=n.getItem(o);if(!s)return null;let a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new Sd(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Sd(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function sN(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:s,layoutDelegate:a}=e,i=Ia({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=g.useMemo(()=>s||new qx({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:i,layoutDelegate:a}),[s,a,r,n,o,i,l]),{collectionProps:c}=Cd({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function aN(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:s}=e,{selectionManager:a,selectedKey:i}=t,l=n===i,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=Ti({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=$i(t,n,"tab"),h=$i(t,n,"tabpanel"),{tabIndex:m}=c,b=t.collection.getItem(n),v=Bt(b?.props,{labelable:!0});delete v.id;let y=Hg(b?.props),{focusableProps:x}=rn({isDisabled:u},r);return{tabProps:Ce(v,x,y,c,{id:p,"aria-selected":l,"aria-disabled":u||void 0,"aria-controls":l?h:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:l,isDisabled:u,isPressed:d}}function iN(e,t,r){let n=M0(r)?void 0:0;var o;const s=$i(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),a=Pa({...e,id:s,"aria-labelledby":$i(t,t?.selectedKey,"tab")});return{tabPanelProps:Ce(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class lN{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var r,n;return this.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let r=t;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r));return r}getPreviousKey(t){let r=t;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r));return r}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o,this.tabDirection=n==="horizontal"}}function uN(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:s,selectionManager:a,disabledKeys:i}=t,{direction:l}=Ot(),u=g.useMemo(()=>new lN(s,l,n,i),[s,i,n,l]),{collectionProps:c}=Cd({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=bt();Rx.set(t,d);let p=Pa({...e,id:d});return{tabListProps:{...Ce(c,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Gx=Se((e,t)=>{var r,n;const{as:o,tabKey:s,destroyInactiveTabPanel:a,state:i,className:l,slots:u,classNames:c,...d}=e,p=o||"div",h=Pe(t),{tabPanelProps:m}=iN({...e,id:String(s)},i,h),{focusProps:b,isFocused:v,isFocusVisible:y}=rt(),x=i.selectedItem,w=i.collection.getItem(s).props.children,C=P(c?.panel,l,(r=x?.props)==null?void 0:r.className),S=s===x?.key;return!w||!S&&a?null:f.jsx(p,{ref:h,"data-focus":v,"data-focus-visible":y,"data-inert":S?void 0:"true",inert:p$(!S),...S&&ie(m,b,d),className:(n=u.panel)==null?void 0:n.call(u,{class:C}),"data-slot":"panel",children:w})});Gx.displayName="HeroUI.TabPanel";var cN=Gx;const Zx=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Yx=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Di=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Yx(r.overflowY,t)||Yx(r.overflowX,t)||(n=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},_i=(e,t,r,n,o,s,a,i)=>s<e&&a>t||s>e&&a<t?0:s<=e&&i<=r||a>=t&&i>=r?s-e-n:a>t&&i<r||s<e&&i>r?a-t+o:0,dN=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Jx=(e,t)=>{var r,n,o,s;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:z=>z!==u;if(!Zx(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;Zx(m)&&d(m);){if(m=dN(m),m===p){h.push(m);break}m!=null&&m===document.body&&Di(m)&&!Di(document.documentElement)||m!=null&&Di(m,c)&&h.push(m)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,v=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:y,scrollY:x}=window,{height:w,width:C,top:S,right:k,bottom:D,left:$}=e.getBoundingClientRect(),{top:_,right:N,bottom:A,left:M}=(z=>{const F=window.getComputedStyle(z);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let O=i==="start"||i==="nearest"?S-_:i==="end"?D+A:S+w/2-_+A,L=l==="center"?$+C/2-M+N:l==="end"?k+N:$-M;const I=[];for(let z=0;z<h.length;z++){const F=h[z],{height:B,width:U,top:E,right:j,bottom:T,left:V}=F.getBoundingClientRect();if(a==="if-needed"&&S>=0&&$>=0&&D<=v&&k<=b&&(F===p&&!Di(F)||S>=E&&D<=T&&$>=V&&k<=j))return I;const K=getComputedStyle(F),G=parseInt(K.borderLeftWidth,10),Z=parseInt(K.borderTopWidth,10),W=parseInt(K.borderRightWidth,10),ne=parseInt(K.borderBottomWidth,10);let X=0,q=0;const ee="offsetWidth"in F?F.offsetWidth-F.clientWidth-G-W:0,ue="offsetHeight"in F?F.offsetHeight-F.clientHeight-Z-ne:0,te="offsetWidth"in F?F.offsetWidth===0?0:U/F.offsetWidth:0,Ee="offsetHeight"in F?F.offsetHeight===0?0:B/F.offsetHeight:0;if(p===F)X=i==="start"?O:i==="end"?O-v:i==="nearest"?_i(x,x+v,v,Z,ne,x+O,x+O+w,w):O-v/2,q=l==="start"?L:l==="center"?L-b/2:l==="end"?L-b:_i(y,y+b,b,G,W,y+L,y+L+C,C),X=Math.max(0,X+x),q=Math.max(0,q+y);else{X=i==="start"?O-E-Z:i==="end"?O-T+ne+ue:i==="nearest"?_i(E,T,B,Z,ne+ue,O,O+w,w):O-(E+B/2)+ue/2,q=l==="start"?L-V-G:l==="center"?L-(V+U/2)+ee/2:l==="end"?L-j+W+ee:_i(V,j,U,G,W+ee,L,L+C,C);const{scrollLeft:ve,scrollTop:oe}=F;X=Ee===0?0:Math.max(0,Math.min(oe+X/Ee,F.scrollHeight-B/Ee+ue)),q=te===0?0:Math.max(0,Math.min(ve+q/te,F.scrollWidth-U/te+ee)),O+=oe-X,L+=ve-q}I.push({el:F,top:X,left:q})}return I},fN=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function pN(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(Jx(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:s}of Jx(e,fN(t)))n.scroll({top:o,left:s,behavior:r})}var Xx=Se((e,t)=>{var r;const{className:n,as:o,item:s,state:a,classNames:i,isDisabled:l,listRef:u,slots:c,shouldSelectOnPressUp:d,tabRef:p,...h}=e,{key:m}=s,b=Pe(t),v=o||(e.href?"a":"button"),y=typeof v=="string",{tabProps:x,isSelected:w,isDisabled:C,isPressed:S}=aN({key:m,isDisabled:l,shouldSelectOnPressUp:d},a,b);e.children==null&&delete x["aria-controls"];const k=l||C,{focusProps:D,isFocused:$,isFocusVisible:_}=rt(),{hoverProps:N,isHovered:A}=vt({isDisabled:k}),M=P(i?.tab,n),O=()=>{!b?.current||!u?.current||pN(b.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:u?.current})};return f.jsx(v,{ref:ru(b,p),"data-disabled":H(C),"data-focus":H($),"data-focus-visible":H(_),"data-hover":H(A),"data-hover-unselected":H((A||S)&&!w),"data-key":m,"data-pressed":H(S),"data-selected":H(w),"data-slot":"tab",...ie(x,k?{}:{...D,...N},Fe(h,{enabled:y,omitPropNames:new Set(["title"]),omitEventNames:new Set(["onClick"])}),{onClick:nr(O,x.onClick)}),className:(r=c.tab)==null?void 0:r.call(c,{class:M}),title:h?.titleValue,type:v==="button"?"button":void 0,children:f.jsx("div",{className:c.tabContent({class:i?.tabContent}),"data-slot":"tabContent",children:s.rendered})})});Xx.displayName="HeroUI.Tab";var hN=Xx;class Qx{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)r(l)};for(let i of t)r(i);let n=null,o=0,s=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&s++,n=l,n.nextKey=void 0;this._size=s;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}}class lr extends Set{constructor(t,r,n){super(t),t instanceof lr?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function mN(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function e1(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:s="all"}=e,a=g.useRef(!1),[,i]=g.useState(!1),l=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>t1(e.selectedKeys),[e.selectedKeys]),p=g.useMemo(()=>t1(e.defaultSelectedKeys,new lr),[e.defaultSelectedKeys]),[h,m]=hr(d,p,e.onSelectionChange),b=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,y]=g.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let x=g.useRef(o);return g.useEffect(()=>{o!==x.current&&(y(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(w){a.current=w,i(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,C="first"){l.current=w,u.current=C,c(w)},selectedKeys:h,setSelectedKeys(w){(n||!mN(w,h))&&m(w)},disabledKeys:b,disabledBehavior:s}}function t1(e,t){return e?e==="all"?"all":new lr(e):t}function r1(e){return null}r1.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:s}=t,a=t.title||t.children,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!i&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:i,"aria-label":t["aria-label"],hasChildNodes:gN(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];g.Children.forEach(s,u=>{l.push({type:"item",element:u})}),yield*l}}}};function gN(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&g.Children.count(e.children)>0)}let n1=r1;class bN{build(t,r){return this.context=r,o1(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(g.isValidElement(r)&&r.type===g.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let s of n)yield*this.getFullNode({value:s,index:o},{renderer:r}),o++}else{let o=[];g.Children.forEach(r,a=>{a&&o.push(a)});let s=0;for(let a of o){let i=this.getFullNode({element:a,index:s},{});for(let l of i)s++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let s=r.value;if(s!=null){var a;let i=(a=s.key)!==null&&a!==void 0?a:s.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(g.isValidElement(t.element)&&t.element.type===g.Fragment){let v=[];g.Children.forEach(t.element.props.children,x=>{v.push(x)});var s;let y=(s=t.index)!==null&&s!==void 0?s:0;for(const x of v)yield*this.getFullNode({element:x,index:y++},r,n,o);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=r.renderer(t.value)}if(g.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let C=a.type;throw new Error(`Unknown element <${C}> in collection.`)}let y=v.getCollectionNode(a.props,this.context);var i;let x=(i=t.index)!==null&&i!==void 0?i:0,w=y.next();for(;!w.done&&w.value;){let C=w.value;t.index=x;var l;let S=(l=C.key)!==null&&l!==void 0?l:null;S==null&&(S=C.element?null:this.getKey(a,t,r,n));let D=[...this.getFullNode({...C,key:S,index:x,wrapper:vN(t.wrapper,C.wrapper)},this.getChildState(r,C),n?`${n}${a.key}`:a.key,o)];for(let $ of D){var u,c;$.value=(c=(u=C.value)!==null&&u!==void 0?u:t.value)!==null&&c!==void 0?c:null,$.value&&this.cache.set($.value,$);var d;if(t.type&&$.type!==t.type)throw new Error(`Unsupported type <${kd($.type)}> in <${kd((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${kd(t.type)}> is supported.`);x++,yield $}w=y.next(D)}return}if(t.key==null||t.type==null)return;let p=this;var h,m;let b={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:o1(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let y of t.childNodes()){y.key!=null&&(y.key=`${b.key}${y.key}`);let x=p.getFullNode({...y,index:v},p.getChildState(r,y),b.key,b);for(let w of x)v++,yield w}})};yield b}constructor(){this.cache=new WeakMap}}function o1(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function vN(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function kd(e){return e[0].toUpperCase()+e.slice(1)}function s1(e,t,r){let n=g.useMemo(()=>new bN,[]),{children:o,items:s,collection:a}=e;return g.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:s},r);return t(l)},[n,o,s,a,r,t])}function ht(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function jr(e){return _s(e,0)}function _s(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function ln(e){let t;for(let r of e)t=r;return t}function Pd(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...a1(e,t),t],o=[...a1(e,r),r],s=n.slice(0,o.length).findIndex((a,i)=>a!==o[i]);return s!==-1?(t=n[s],r=o[s],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function a1(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const i1=new WeakMap;function yN(e){let t=i1.get(e);if(t!=null)return t;let r=0,n=o=>{for(let s of o)s.type==="section"?n(ht(s,e)):s.type==="item"&&r++};return n(e),i1.set(e,r),r}class Ii{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Pd(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Pd(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new lr([r],r,r);else{let a=this.state.selectedKeys;var o;let i=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new lr(a,i,r);var s;for(let l of this.getKeyRange(i,(s=a.currentKey)!==null&&s!==void 0?s:r))n.delete(l);for(let l of this.getKeyRange(r,i))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Pd(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(s),s===r)return o;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new lr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new lr([r],r,r):new lr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new lr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);a?.type==="item"&&t.push(n);var s;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((s=(o=jr(ht(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new lr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Ii(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function $d(e){let{filter:t,layoutDelegate:r}=e,n=e1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=g.useCallback(u=>t?new Qx(t(u)):new Qx(u),[t]),a=g.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=s1(e,s,a),l=g.useMemo(()=>new Ii(i,n,{layoutDelegate:r}),[i,n,r]);return xN(i,l),{collection:i,disabledKeys:o,selectionManager:l}}function xN(e,t){const r=g.useRef(null);g.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(y=>{const x=r.current.getItem(y);return x?.type==="item"?x:null}).filter(y=>y!==null),p=[...e.getKeys()].map(y=>{const x=e.getItem(y);return x?.type==="item"?x:null}).filter(y=>y!==null);var n,o;const h=((n=d?.length)!==null&&n!==void 0?n:0)-((o=p?.length)!==null&&o!==void 0?o:0);var s,a,i;let m=Math.min(h>1?Math.max(((s=c?.index)!==null&&s!==void 0?s:0)-h+1,0):(a=c?.index)!==null&&a!==void 0?a:0,((i=p?.length)!==null&&i!==void 0?i:0)-1),b=null,v=!1;for(;m>=0;){if(!t.isDisabled(p[m].key)){b=p[m];break}if(m<p.length-1&&!v)m++;else{v=!0;var l,u;m>((l=c?.index)!==null&&l!==void 0?l:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function wN(e){var t;let[r,n]=hr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=g.useMemo(()=>r!=null?[r]:[],[r]),{collection:s,disabledKeys:a,selectionManager:i}=$d({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?s.getItem(r):null;return{collection:s,disabledKeys:a,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function CN(e){var t,r;let n=wN({...e,onSelectionChange:e.onSelectionChange?l=>{var u;l!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,l))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:l1(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:s,selectedKey:a}=n,i=g.useRef(a);return g.useEffect(()=>{let l=a;e.selectedKey==null&&(o.isEmpty||l==null||!s.getItem(l))&&(l=l1(s,n.disabledKeys),l!=null&&o.setSelectedKeys([l])),(l!=null&&o.focusedKey==null||!o.isFocused&&l!==i.current)&&o.setFocusedKey(l),i.current=l}),{...n,isDisabled:e.isDisabled||!1}}function l1(e,t){let r=null;if(e){var n,o,s,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(s=a.props)===null||s===void 0)&&s.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function SN(e){var t,r,n;const o=et(),[s,a]=pt(e,Mm.variantKeys),{ref:i,as:l,className:u,classNames:c,children:d,disableCursorAnimation:p,isVertical:h=!1,shouldSelectOnPressUp:m=!0,destroyInactiveTabPanel:b=!0,...v}=s,y=l||"div",x=typeof y=="string",w=Pe(i),C=(r=(t=e?.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,S=(n=a.placement)!=null?n:h?"start":"top",k=h||S==="start"||S==="end"?"vertical":"horizontal",D=CN({children:d,...v}),{tabListProps:$}=uN({...v,orientation:k},D,w),_=g.useMemo(()=>Mm({...a,disableAnimation:C,...h?{placement:"start"}:{}}),[ft(a),C,h]),N=P(c?.base,u),A=g.useMemo(()=>({state:D,slots:_,classNames:c,disableAnimation:C,listRef:w,shouldSelectOnPressUp:m,disableCursorAnimation:p,isDisabled:e?.isDisabled}),[D,_,w,C,p,m,e?.isDisabled,c]),M=g.useCallback(z=>({"data-slot":"base",className:_.base({class:P(N,z?.className)}),...ie(Fe(v,{enabled:x}),z)}),[N,v,_]),O=g.useCallback(z=>({"data-slot":"tabWrapper",className:_.tabWrapper({class:P(c?.tabWrapper,z?.className)}),"data-placement":S,"data-vertical":h||S==="start"||S==="end"?"vertical":"horizontal"}),[c,_,S,h]),L=g.useCallback(z=>({ref:w,"data-slot":"tabList",className:_.tabList({class:P(c?.tabList,z?.className)}),...ie($,z)}),[w,$,c,_]),I=g.useCallback(z=>({"data-slot":"cursor",className:_.cursor({class:P(c?.cursor,z?.className)})}),[c,_]);return{Component:y,domRef:w,state:D,values:A,destroyInactiveTabPanel:b,getBaseProps:M,getTabListProps:L,getWrapperProps:O,getTabCursorProps:I}}var kN=Se(function(t,r){const{Component:n,values:o,state:s,domRef:a,destroyInactiveTabPanel:i,getBaseProps:l,getTabListProps:u,getWrapperProps:c,getTabCursorProps:d}=SN({...t,ref:r}),p={state:s,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,shouldSelectOnPressUp:o.shouldSelectOnPressUp},h=[...s.collection].map(M=>f.jsx(hN,{item:M,...p,...M.props},M.key)),m=t?.variant,b=g.useRef(void 0),v=t?.isVertical,y=g.useRef(void 0),x=t?.placement,w=g.useRef(void 0),C=g.useRef(null),S=s.selectedItem,k=S?.key,D=g.useCallback(M=>m==="underlined"?{left:`${M.left+M.width*.1}px`,top:`${M.top+M.height-2}px`,width:`${M.width*.8}px`,height:""}:{left:`${M.left}px`,top:`${M.top}px`,width:`${M.width}px`,height:`${M.height}px`},[m]),$=g.useCallback(M=>{var O;(m!==b.current||v!==y.current||x!==w.current)&&((O=C.current)==null||O.removeAttribute("data-animated")),M(),b.current=m,y.current=v,w.current=x,requestAnimationFrame(()=>{var L,I;(L=C.current)==null||L.setAttribute("data-animated","true"),(I=C.current)==null||I.setAttribute("data-initialized","true")})},[v,m,x]),_=g.useCallback(M=>{if(!C.current)return;const O={width:M.offsetWidth,height:M.offsetHeight,left:M.offsetLeft,top:M.offsetTop},L=D(O);$(()=>{C.current.style.left=L.left,C.current.style.top=L.top,C.current.style.width=L.width,C.current.style.height=L.height})},[C.current,D,$]),N=g.useCallback(M=>{const O=M[0].contentRect;O.width===0&&O.height===0||_(M[0].target)},[_]);g.useEffect(()=>{var M;const O=(M=a.current)==null?void 0:M.querySelector(`[data-key="${k}"]`);if(!O)return;const L=new ResizeObserver(N);return L.observe(O),()=>L.disconnect()},[a.current,N,k]);const A=g.useMemo(()=>f.jsxs(f.Fragment,{children:[f.jsx("div",{...l(),children:f.jsxs(n,{...u(),children:[!o.disableAnimation&&!o.disableCursorAnimation&&k!=null&&f.jsx("span",{...d(),ref:C}),h]})}),[...s.collection].map(M=>f.jsx(cN,{classNames:o.classNames,destroyInactiveTabPanel:i,slots:o.slots,state:o.state,tabKey:M.key},M.key))]}),[n,l,u,d,h,k,s.collection,o.disableAnimation,o.disableCursorAnimation,o.classNames,o.slots,o.state,i,a,C,m,v]);return"placement"in t||"isVertical"in t?f.jsx("div",{...c(),children:A}):A}),u1=kN,c1=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},d1=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],PN=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},Ai=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},Is=new WeakMap,Ft=[];function $N(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let u=p=>{if(r.has(p)||p.parentElement&&n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of r)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&s(l),d!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)s(p),p=c.nextNode()}},s=l=>{var u;let c=(u=Is.get(l))!=null?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),n.add(l),Is.set(l,c+1))};Ft.length&&Ft[Ft.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...r,...n].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(r.delete(c),n.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?r.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let i={visibleNodes:r,hiddenNodes:n,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Ft.push(i),()=>{a.disconnect();for(let l of n){let u=Is.get(l);u!=null&&(u===1?(l.removeAttribute("aria-hidden"),Is.delete(l)):Is.set(l,u-1))}i===Ft[Ft.length-1]?(Ft.pop(),Ft.length&&Ft[Ft.length-1].observe()):Ft.splice(Ft.indexOf(i),1)}}function EN(e){let t=Ft[Ft.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var TN=n1,Io=TN;function DN({brands:e,selectedBrandSlug:t,onBrandChange:r,classNames:n}){const{t:o}=Oe(),[s,a]=g.useState(t);function i(l){a(l),r(l)}return f.jsxs(u1,{selectedKey:s,color:"primary",size:"sm","aria-label":o("phoneSelector.selectBrand"),classNames:{base:P("w-full",n?.base),...n},children:[f.jsx(Io,{title:o("phoneSelector.popular"),onClick:()=>i("popular")},"popular"),e.map(l=>f.jsx(Io,{title:l.name,onClick:()=>i(l.slug)},l.slug))]})}var _N=n1,_n=_N;const Ed=new WeakMap;function IN(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function AN(e,t){let r=Ed.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${IN(t)}`}function Ni(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:s="label"}=e;t=bt(t);let a=bt(),i={};r?(n=n?`${a} ${n}`:a,i={id:a,htmlFor:s==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Pa({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function Mi(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:s,fieldProps:a}=Ni(e),i=os([!!t,!!r,n,o]),l=os([!!t,!!r,n,o]);return a=Ce(a,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:i},errorMessageProps:{id:l}}}function NN(e,t,r){let n=Bt(e,{labelable:!0}),o=e.selectionBehavior||"toggle",s=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&s==="action"&&(s="override");let{listProps:a}=sN({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:i}=kn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=bt(e.id);Ed.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:c}=Ni({...e,id:l,labelElementType:"span"});return{labelProps:u,listBoxProps:Ce(n,i,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ce(c,a)})}}function MN(e,t,r){var n,o;let{key:s}=e,a=Ed.get(t);var i;let l=(i=e.isDisabled)!==null&&i!==void 0?i:t.selectionManager.isDisabled(s);var u;let c=(u=e.isSelected)!==null&&u!==void 0?u:t.selectionManager.isSelected(s);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:a?.shouldSelectOnPressUp;var h;let m=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:a?.shouldFocusOnHover;var b;let v=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:a?.shouldUseVirtualFocus;var y;let x=(y=e.isVirtualized)!==null&&y!==void 0?y:a?.isVirtualized,w=os(),C=os(),S={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Hr()&&iu()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=w,S["aria-describedby"]=C);let k=t.collection.getItem(s);if(x){let F=Number(k?.index);S["aria-posinset"]=Number.isNaN(F)?void 0:F+1,S["aria-setsize"]=yN(t.collection)}let D=a?.onAction?()=>{var F;return a==null||(F=a.onAction)===null||F===void 0?void 0:F.call(a,s)}:void 0,$=AN(t,s),{itemProps:_,isPressed:N,isFocused:A,hasAction:M,allowsSelection:O}=Ti({selectionManager:t.selectionManager,key:s,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&m,isVirtualized:x,shouldUseVirtualFocus:v,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?Ur(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:a?.linkBehavior,UNSTABLE_itemBehavior:a?.UNSTABLE_itemBehavior,id:$}),{hoverProps:L}=vt({isDisabled:l||!m,onHoverStart(){xo()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),I=Bt(k?.props);delete I.id;let z=Hg(k?.props);return{optionProps:{...S,...Ce(I,_,L,z),id:$},labelProps:{id:w},descriptionProps:{id:C},isFocused:A,isFocusVisible:A&&t.selectionManager.isFocused&&xo(),isSelected:c,isDisabled:l,isPressed:N,allowsSelection:O,hasAction:M}}function ON(e){let{heading:t,"aria-label":r}=e,n=bt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function jN(e){var t;const r=et(),{ref:n,as:o,state:s,variant:a,color:i,onAction:l,children:u,onSelectionChange:c,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:p,className:h,topContent:m,bottomContent:b,emptyContent:v="No items.",hideSelectedIcon:y=!1,hideEmptyContent:x=!1,shouldHighlightOnFocus:w=!1,classNames:C,...S}=e,k=o||"ul",D=typeof k=="string",$=Pe(n),_=$d({...e,children:u,onSelectionChange:c}),N=s||_,{listBoxProps:A}=NN({...e,onAction:l},N,$),M=g.useMemo(()=>i$(),[]),O=P(C?.base,h);return{Component:k,state:N,variant:a,color:i,slots:M,classNames:C,topContent:m,bottomContent:b,emptyContent:v,hideEmptyContent:x,shouldHighlightOnFocus:w,hideSelectedIcon:y,disableAnimation:d,className:h,itemClasses:p,getBaseProps:(F={})=>({ref:$,"data-slot":"base",className:M.base({class:O}),...Fe(S,{enabled:D}),...F}),getListProps:(F={})=>({"data-slot":"list",className:M.list({class:C?.list}),...A,...F}),getEmptyContentProps:(F={})=>({"data-slot":"empty-content",children:v,className:M.emptyContent({class:C?.emptyContent}),...F})}}function FN(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:f.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var BN=700;function zN(){return Qn()||typeof window>"u"?!1:window.screen.width<=BN}function LN(e){var t,r;const n=et(),[o,s]=pt(e,jm.variantKeys),{as:a,item:i,state:l,description:u,startContent:c,endContent:d,isVirtualized:p,selectedIcon:h,className:m,classNames:b,autoFocus:v,onPress:y,onPressUp:x,onPressStart:w,onPressEnd:C,onPressChange:S,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:$=!1,isReadOnly:_=!1,...N}=o,A=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=g.useRef(null),O=a||(e.href?"a":"li"),L=typeof O=="string",{rendered:I,key:z}=i,F=l.disabledKeys.has(z)||e.isDisabled,B=l.selectionManager.selectionMode!=="none",U=zN(),{pressProps:E,isPressed:j}=jt({ref:M,isDisabled:F,onClick:k,onPress:y,onPressUp:x,onPressStart:w,onPressEnd:C,onPressChange:S}),{isHovered:T,hoverProps:V}=vt({isDisabled:F}),{isFocusVisible:K,focusProps:G}=rt({autoFocus:v}),{isFocused:Z,isSelected:W,optionProps:ne,labelProps:X,descriptionProps:q}=MN({key:z,isDisabled:F,"aria-label":o["aria-label"],isVirtualized:p},l,M);let ee=ne;const ue=g.useMemo(()=>jm({...s,isDisabled:F,disableAnimation:A,hasTitleTextChild:typeof I=="string",hasDescriptionTextChild:typeof u=="string"}),[ft(s),F,A,I,u]),te=P(b?.base,m);_&&(ee=w$(ee));const Ee=D&&Z||(U?T||j:T||Z&&!K),ve=(se={})=>({ref:M,...ie(ee,_?{}:ie(G,E),V,Fe(N,{enabled:L}),se),"data-selectable":H(B),"data-focus":H(Z),"data-hover":H(Ee),"data-disabled":H(F),"data-selected":H(W),"data-pressed":H(j),"data-focus-visible":H(K),className:ue.base({class:P(te,se.className)})}),oe=(se={})=>({...ie(X,se),"data-label":H(!0),className:ue.title({class:b?.title})}),pe=(se={})=>({...ie(q,se),className:ue.description({class:b?.description})}),xe=(se={})=>({...ie(se),className:ue.wrapper({class:b?.wrapper})}),he=g.useCallback((se={})=>({"aria-hidden":H(!0),"data-disabled":H(F),className:ue.selectedIcon({class:b?.selectedIcon}),...se}),[F,ue,b]);return{Component:O,domRef:M,slots:ue,classNames:b,isSelectable:B,isSelected:W,isDisabled:F,rendered:I,description:u,startContent:c,endContent:d,selectedIcon:h,hideSelectedIcon:$,disableAnimation:A,getItemProps:ve,getLabelProps:oe,getWrapperProps:xe,getDescriptionProps:pe,getSelectedIconProps:he}}var f1=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:s,isDisabled:a,selectedIcon:i,startContent:l,endContent:u,hideSelectedIcon:c,disableAnimation:d,getItemProps:p,getLabelProps:h,getWrapperProps:m,getDescriptionProps:b,getSelectedIconProps:v}=LN(e),y=g.useMemo(()=>{const x=f.jsx(FN,{disableAnimation:d,isSelected:s});return typeof i=="function"?i({icon:x,isSelected:s,isDisabled:a}):i||x},[i,s,a,d]);return f.jsxs(t,{...p(),children:[l,n?f.jsxs("div",{...m(),children:[f.jsx("span",{...h(),children:r}),f.jsx("span",{...b(),children:n})]}):f.jsx("span",{...h(),children:r}),o&&!c&&f.jsx("span",{...v(),children:y}),u]})};f1.displayName="HeroUI.ListboxItem";var Td=f1;function VN(e){let t=Fe(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function RN(e){const{as:t,className:r,orientation:n,...o}=e;let s=t||"hr";s==="hr"&&n==="vertical"&&(s="div");const{separatorProps:a}=VN({elementType:typeof s=="string"?s:"hr",orientation:n}),i=g.useMemo(()=>f$({orientation:n,className:r}),[n,r]),l=g.useCallback((u={})=>({className:i,role:"separator","data-orientation":n,...a,...o,...u}),[i,n,a,o]);return{Component:s,getDividerProps:l}}var p1=Se((e,t)=>{const{Component:r,getDividerProps:n}=RN({...e});return f.jsx(r,{ref:t,...n()})});p1.displayName="HeroUI.Divider";var Ao=p1,h1=Se(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:s,className:a,classNames:i,hideSelectedIcon:l,showDivider:u=!1,dividerProps:c={},itemClasses:d,title:p,items:h,...m},b)=>{const v=r||"li",y=g.useMemo(()=>l$(),[]),x=P(i?.base,a),w=P(i?.divider,c?.className),{itemProps:C,headingProps:S,groupProps:k}=ON({heading:e.rendered,"aria-label":e["aria-label"]});return f.jsxs(v,{"data-slot":"base",...ie(C,m),className:y.base({class:x}),children:[e.rendered&&f.jsx("span",{...S,className:y.heading({class:i?.heading}),"data-slot":"heading",children:e.rendered}),f.jsxs("ul",{...k,className:y.group({class:i?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:$,props:_}=D;let N=f.jsx(Td,{classNames:d,color:o,disableAnimation:s,hideSelectedIcon:l,item:D,state:t,variant:n,..._},$);return D.wrapper&&(N=D.wrapper(N)),N}),u&&f.jsx(Ao,{as:"li",className:y.divider({class:w}),...c})]})]},e.key)});h1.displayName="HeroUI.ListboxSection";var m1=h1;function No(e,t,r){let n=r.initialDeps??[],o;return()=>{var s,a,i,l;let u;r.key&&((s=r.debug)!=null&&s.call(r))&&(u=Date.now());const c=e();if(!(c.length!==n.length||c.some((h,m)=>n[m]!==h)))return o;n=c;let p;if(r.key&&((a=r.debug)!=null&&a.call(r))&&(p=Date.now()),o=t(...c),r.key&&((i=r.debug)!=null&&i.call(r))){const h=Math.round((Date.now()-u)*100)/100,m=Math.round((Date.now()-p)*100)/100,b=m/16,v=(y,x)=>{for(y=String(y);y.length<x;)y=" "+y;return y};console.info(`%c⏱ ${v(m,5)} /${v(h,5)} ms`,`
|
|
227
|
+
`;function tN(){const{data:e,error:t,isLoading:r}=En([QA],{use:[Or],fetcher:qt}),{data:n,error:o,isLoading:s}=En([eN],{use:[Or],fetcher:qt}),a=e?.searchBrands.records.sort((l,u)=>l.rankingConnected-u.rankingConnected)||[];return{popularPhones:n?.searchProducts?.records||[],brands:a,isLoading:r||s,error:t||o}}const Kx=new WeakMap;function $i(e,t,r){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let n=Kx.get(e);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${t}`}function wd(e){return K5()?e.altKey:e.ctrlKey}function Ei(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,s=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return s&&(o=`[data-collection="${CSS.escape(s)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const Wx=new WeakMap;function rN(e){let t=bt();return Wx.set(e,t),t}function nN(e){return Wx.get(e)}const oN=1e3;function Ux(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=g.useRef({search:"",timeout:void 0}).current,s=a=>{let i=sN(a.key);if(!(!i||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&i===" ")){if(i===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=i,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},oN)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function sN(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Cd(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:i=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:m=n,linkBehavior:b="action"}=e,{direction:v}=Ot(),y=ka(),x=I=>{var z;if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!(!((z=n.current)===null||z===void 0)&&z.contains(I.target)))return;const F=(q,ee)=>{if(q!=null){if(t.isLink(q)&&b==="selection"&&u&&!wd(I)){Hn.flushSync(()=>{t.setFocusedKey(q,ee)});let ue=Ei(n,q),te=t.getItemProps(q);ue&&y.open(ue,I,te.href,te.routerOptions);return}if(t.setFocusedKey(q,ee),t.isLink(q)&&b==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&!wd(I)&&t.replaceSelection(q)}};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var B,U,E;let q=t.focusedKey!=null?(B=r.getKeyBelow)===null||B===void 0?void 0:B.call(r,t.focusedKey):(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r);q==null&&s&&(q=(E=r.getFirstKey)===null||E===void 0?void 0:E.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q))}break;case"ArrowUp":if(r.getKeyAbove){var j,T,V;let q=t.focusedKey!=null?(j=r.getKeyAbove)===null||j===void 0?void 0:j.call(r,t.focusedKey):(T=r.getLastKey)===null||T===void 0?void 0:T.call(r);q==null&&s&&(q=(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var K,G,Z;let q=t.focusedKey!=null?(K=r.getKeyLeftOf)===null||K===void 0?void 0:K.call(r,t.focusedKey):null;q==null&&s&&(q=v==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,t.focusedKey):(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ne,X;let q=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;q==null&&s&&(q=v==="rtl"?(ne=r.getLastKey)===null||ne===void 0?void 0:ne.call(r,t.focusedKey):(X=r.getFirstKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),q!=null&&(I.preventDefault(),F(q,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let q=r.getFirstKey(t.focusedKey,no(I));t.setFocusedKey(q),q!=null&&(no(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let q=r.getLastKey(t.focusedKey,no(I));t.setFocusedKey(q),q!=null&&(no(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):u&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(I.preventDefault(),F(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(I.preventDefault(),F(q))}break;case"a":no(I)&&t.selectionMode==="multiple"&&i!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(I.stopPropagation(),I.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(I.shiftKey)n.current.focus();else{let q=Lt(n.current,{tabbable:!0}),ee,ue;do ue=q.lastChild(),ue&&(ee=ue);while(ue);ee&&(!ee.contains(document.activeElement)||document.activeElement&&!rb(document.activeElement))&&Vt(ee)}break}}},w=g.useRef({top:0,left:0});Ea(m,"scroll",h?void 0:()=>{var I,z,F,B;w.current={top:(F=(I=m.current)===null||I===void 0?void 0:I.scrollTop)!==null&&F!==void 0?F:0,left:(B=(z=m.current)===null||z===void 0?void 0:z.scrollLeft)!==null&&B!==void 0?B:0}});let C=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){var z,F;let E=T=>{T!=null&&(t.setFocusedKey(T),u&&!t.isSelected(T)&&t.replaceSelection(T))},j=I.relatedTarget;var B,U;j&&I.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?E((B=t.lastSelectedKey)!==null&&B!==void 0?B:(z=r.getLastKey)===null||z===void 0?void 0:z.call(r)):E((U=t.firstSelectedKey)!==null&&U!==void 0?U:(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))}else!h&&m.current&&(m.current.scrollTop=w.current.top,m.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&m.current){let E=Ei(n,t.focusedKey);E instanceof HTMLElement&&(!E.contains(document.activeElement)&&!d&&Vt(E),ys()==="keyboard"&&Zr(E,{containingElement:n.current}))}}},S=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)},k=g.useRef(!1);Ea(n,nT,d?I=>{let{detail:z}=I;I.stopPropagation(),t.setFocused(!0),z?.focusStrategy==="first"&&(k.current=!0)}:void 0),Yg(()=>{if(k.current){var I,z;let F=(z=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&z!==void 0?z:null;if(F==null){let B=xt();O0(n.current),j0(B,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(F),k.current=!1}},[t.collection]),Yg(()=>{t.collection.size>0&&(k.current=!1)},[t.focusedKey]),Ea(n,rT,d?I=>{var z;I.stopPropagation(),t.setFocused(!1),!((z=I.detail)===null||z===void 0)&&z.clearFocusKey&&t.setFocusedKey(null)}:void 0);const D=g.useRef(o),$=g.useRef(!1);g.useEffect(()=>{if(D.current){var I,z;let U=null;var F;o==="first"&&(U=(F=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r))!==null&&F!==void 0?F:null);var B;o==="last"&&(U=(B=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r))!==null&&B!==void 0?B:null);let E=t.selectedKeys;if(E.size){for(let j of E)if(t.canSelectItem(j)){U=j;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!d&&n.current&&Et(n.current),t.collection.size>0&&(D.current=!1,$.current=!0)}});let _=g.useRef(t.focusedKey),N=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||$.current)&&m.current&&n.current){let I=ys(),z=Ei(n,t.focusedKey);if(!(z instanceof HTMLElement))return;(I==="keyboard"||$.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{m.current&&(Qg(m.current,z),I!=="virtual"&&Zr(z,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Et(n.current),_.current=t.focusedKey,$.current=!1}),g.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),Ea(n,"react-aria-focus-scope-restore",I=>{I.preventDefault(),t.setFocused(!0)});let A={onKeyDown:x,onFocus:C,onBlur:S,onMouseDown(I){m.current===I.target&&I.preventDefault()}},{typeSelectProps:M}=Ux({keyboardDelegate:r,selectionManager:t});c||(A=Ce(M,A));let O;d||(O=t.focusedKey==null?0:-1);let L=rN(t.collection);return{collectionProps:Ce(A,{tabIndex:O,"data-collection":L})}}function Ti(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=ka();t=bt(t);let h=E=>{if(E.pointerType==="keyboard"&&wd(E))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let j=r.getItemProps(n);p.open(o.current,E,j.href,j.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):E&&E.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||E&&(no(E)||E.pointerType==="touch"||E.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?O0(o.current):i?i():document.activeElement!==o.current&&o.current&&Et(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),l=l||r.isDisabled(n);let m={};!a&&!l?m={tabIndex:n===r.focusedKey?0:-1,onFocus(E){E.target===o.current&&r.setFocusedKey(n)}}:l&&(m.onMouseDown=E=>{E.preventDefault()});let b=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",y=r.isLink(n)&&d!=="selection"&&d!=="none",x=!l&&r.canSelectItem(n)&&!b&&!v,w=(u||y)&&!l,C=w&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),S=w&&x&&r.selectionBehavior==="replace",k=C||S,D=g.useRef(null),$=k&&x,_=g.useRef(!1),N=g.useRef(!1),A=r.getItemProps(n),M=E=>{if(u){var j;u(),(j=o.current)===null||j===void 0||j.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}y&&o.current&&p.open(o.current,E,A.href,A.routerOptions)},O={ref:o};if(s?(O.onPressStart=E=>{D.current=E.pointerType,_.current=$,E.pointerType==="keyboard"&&(!k||qx())&&h(E)},c?(O.onPressUp=C?void 0:E=>{E.pointerType==="mouse"&&x&&h(E)},O.onPress=C?M:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&x&&h(E)}):O.onPress=E=>{if(C||S&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!Hx())return;M(E)}else E.pointerType!=="keyboard"&&x&&h(E)}):(O.onPressStart=E=>{D.current=E.pointerType,_.current=$,N.current=C,x&&(E.pointerType==="mouse"&&!C||E.pointerType==="keyboard"&&(!w||qx()))&&h(E)},O.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&k&&Hx()||E.pointerType==="mouse"&&N.current)&&(k?M(E):x&&h(E))}),m["data-collection"]=nN(r.collection),m["data-key"]=n,O.preventFocusOnPress=a,a&&(O=Ce(O,{onPressStart(E){E.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(E){E.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),A)for(let E of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])A[E]&&(O[E]=Ur(O[E],A[E]));let{pressProps:L,isPressed:I}=jt(O),z=S?E=>{D.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),M(E))}:void 0,{longPressProps:F}=T0({isDisabled:!$,onLongPress(E){E.pointerType==="touch"&&(h(E),r.setSelectionBehavior("toggle"))}}),B=E=>{D.current==="touch"&&_.current&&E.preventDefault()},U=d!=="none"&&r.isLink(n)?E=>{Tr.isOpening||E.preventDefault()}:void 0;return{itemProps:Ce(m,x||C||a&&!l?L:{},$?F:{},{onDoubleClick:z,onDragStartCapture:B,onClick:U,id:t},a?{onMouseDown:E=>E.preventDefault()}:void 0),isPressed:I,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:x,hasAction:k}}function Hx(){let e=window.event;return e?.key==="Enter"}function qx(){let e=window.event;return e?.key===" "||e?.code==="Space"}class Sd{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?Ei(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),s=n.getBoundingClientRect();return{x:s.left-o.left-r.clientLeft+r.scrollLeft,y:s.top-o.top-r.clientTop+r.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,s;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(s=t?.clientHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class Gx{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,s=this.layoutDelegate.getItemRect(o);if(!s||o==null)return null;let a=s;do{if(o=r(o),o==null)break;s=this.layoutDelegate.getItemRect(o)}while(s&&n(a,s)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!ro(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let s=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!ro(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let s=n.getItem(o);if(!s)return null;let a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new Sd(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Sd(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function aN(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:s,layoutDelegate:a}=e,i=Ia({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=g.useMemo(()=>s||new Gx({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:i,layoutDelegate:a}),[s,a,r,n,o,i,l]),{collectionProps:c}=Cd({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function iN(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:s}=e,{selectionManager:a,selectedKey:i}=t,l=n===i,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=Ti({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=$i(t,n,"tab"),h=$i(t,n,"tabpanel"),{tabIndex:m}=c,b=t.collection.getItem(n),v=Bt(b?.props,{labelable:!0});delete v.id;let y=Hg(b?.props),{focusableProps:x}=rn({isDisabled:u},r);return{tabProps:Ce(v,x,y,c,{id:p,"aria-selected":l,"aria-disabled":u||void 0,"aria-controls":l?h:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:l,isDisabled:u,isPressed:d}}function lN(e,t,r){let n=M0(r)?void 0:0;var o;const s=$i(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),a=Pa({...e,id:s,"aria-labelledby":$i(t,t?.selectedKey,"tab")});return{tabPanelProps:Ce(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class uN{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var r,n;return this.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let r=t;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r));return r}getPreviousKey(t){let r=t;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r));return r}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o,this.tabDirection=n==="horizontal"}}function cN(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:s,selectionManager:a,disabledKeys:i}=t,{direction:l}=Ot(),u=g.useMemo(()=>new uN(s,l,n,i),[s,i,n,l]),{collectionProps:c}=Cd({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=bt();Kx.set(t,d);let p=Pa({...e,id:d});return{tabListProps:{...Ce(c,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Zx=Se((e,t)=>{var r,n;const{as:o,tabKey:s,destroyInactiveTabPanel:a,state:i,className:l,slots:u,classNames:c,...d}=e,p=o||"div",h=Pe(t),{tabPanelProps:m}=lN({...e,id:String(s)},i,h),{focusProps:b,isFocused:v,isFocusVisible:y}=nt(),x=i.selectedItem,w=i.collection.getItem(s).props.children,C=P(c?.panel,l,(r=x?.props)==null?void 0:r.className),S=s===x?.key;return!w||!S&&a?null:f.jsx(p,{ref:h,"data-focus":v,"data-focus-visible":y,"data-inert":S?void 0:"true",inert:p$(!S),...S&&ie(m,b,d),className:(n=u.panel)==null?void 0:n.call(u,{class:C}),"data-slot":"panel",children:w})});Zx.displayName="HeroUI.TabPanel";var dN=Zx;const Yx=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Jx=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Di=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Jx(r.overflowY,t)||Jx(r.overflowX,t)||(n=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},_i=(e,t,r,n,o,s,a,i)=>s<e&&a>t||s>e&&a<t?0:s<=e&&i<=r||a>=t&&i>=r?s-e-n:a>t&&i<r||s<e&&i>r?a-t+o:0,fN=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Xx=(e,t)=>{var r,n,o,s;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:z=>z!==u;if(!Yx(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;Yx(m)&&d(m);){if(m=fN(m),m===p){h.push(m);break}m!=null&&m===document.body&&Di(m)&&!Di(document.documentElement)||m!=null&&Di(m,c)&&h.push(m)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,v=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:y,scrollY:x}=window,{height:w,width:C,top:S,right:k,bottom:D,left:$}=e.getBoundingClientRect(),{top:_,right:N,bottom:A,left:M}=(z=>{const F=window.getComputedStyle(z);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let O=i==="start"||i==="nearest"?S-_:i==="end"?D+A:S+w/2-_+A,L=l==="center"?$+C/2-M+N:l==="end"?k+N:$-M;const I=[];for(let z=0;z<h.length;z++){const F=h[z],{height:B,width:U,top:E,right:j,bottom:T,left:V}=F.getBoundingClientRect();if(a==="if-needed"&&S>=0&&$>=0&&D<=v&&k<=b&&(F===p&&!Di(F)||S>=E&&D<=T&&$>=V&&k<=j))return I;const K=getComputedStyle(F),G=parseInt(K.borderLeftWidth,10),Z=parseInt(K.borderTopWidth,10),W=parseInt(K.borderRightWidth,10),ne=parseInt(K.borderBottomWidth,10);let X=0,q=0;const ee="offsetWidth"in F?F.offsetWidth-F.clientWidth-G-W:0,ue="offsetHeight"in F?F.offsetHeight-F.clientHeight-Z-ne:0,te="offsetWidth"in F?F.offsetWidth===0?0:U/F.offsetWidth:0,Ee="offsetHeight"in F?F.offsetHeight===0?0:B/F.offsetHeight:0;if(p===F)X=i==="start"?O:i==="end"?O-v:i==="nearest"?_i(x,x+v,v,Z,ne,x+O,x+O+w,w):O-v/2,q=l==="start"?L:l==="center"?L-b/2:l==="end"?L-b:_i(y,y+b,b,G,W,y+L,y+L+C,C),X=Math.max(0,X+x),q=Math.max(0,q+y);else{X=i==="start"?O-E-Z:i==="end"?O-T+ne+ue:i==="nearest"?_i(E,T,B,Z,ne+ue,O,O+w,w):O-(E+B/2)+ue/2,q=l==="start"?L-V-G:l==="center"?L-(V+U/2)+ee/2:l==="end"?L-j+W+ee:_i(V,j,U,G,W+ee,L,L+C,C);const{scrollLeft:ve,scrollTop:oe}=F;X=Ee===0?0:Math.max(0,Math.min(oe+X/Ee,F.scrollHeight-B/Ee+ue)),q=te===0?0:Math.max(0,Math.min(ve+q/te,F.scrollWidth-U/te+ee)),O+=oe-X,L+=ve-q}I.push({el:F,top:X,left:q})}return I},pN=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function hN(e,t){if(!e.isConnected||!(n=>{let o=n;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;if((n=>typeof n=="object"&&typeof n.behavior=="function")(t))return t.behavior(Xx(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:n,top:o,left:s}of Xx(e,pN(t)))n.scroll({top:o,left:s,behavior:r})}var Qx=Se((e,t)=>{var r;const{className:n,as:o,item:s,state:a,classNames:i,isDisabled:l,listRef:u,slots:c,shouldSelectOnPressUp:d,tabRef:p,...h}=e,{key:m}=s,b=Pe(t),v=o||(e.href?"a":"button"),y=typeof v=="string",{tabProps:x,isSelected:w,isDisabled:C,isPressed:S}=iN({key:m,isDisabled:l,shouldSelectOnPressUp:d},a,b);e.children==null&&delete x["aria-controls"];const k=l||C,{focusProps:D,isFocused:$,isFocusVisible:_}=nt(),{hoverProps:N,isHovered:A}=vt({isDisabled:k}),M=P(i?.tab,n),O=()=>{!b?.current||!u?.current||hN(b.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:u?.current})};return f.jsx(v,{ref:ru(b,p),"data-disabled":H(C),"data-focus":H($),"data-focus-visible":H(_),"data-hover":H(A),"data-hover-unselected":H((A||S)&&!w),"data-key":m,"data-pressed":H(S),"data-selected":H(w),"data-slot":"tab",...ie(x,k?{}:{...D,...N},Fe(h,{enabled:y,omitPropNames:new Set(["title"]),omitEventNames:new Set(["onClick"])}),{onClick:nr(O,x.onClick)}),className:(r=c.tab)==null?void 0:r.call(c,{class:M}),title:h?.titleValue,type:v==="button"?"button":void 0,children:f.jsx("div",{className:c.tabContent({class:i?.tabContent}),"data-slot":"tabContent",children:s.rendered})})});Qx.displayName="HeroUI.Tab";var mN=Qx;class e1{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)r(l)};for(let i of t)r(i);let n=null,o=0,s=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&s++,n=l,n.nextKey=void 0;this._size=s;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}}class lr extends Set{constructor(t,r,n){super(t),t instanceof lr?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function gN(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function t1(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:s="all"}=e,a=g.useRef(!1),[,i]=g.useState(!1),l=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>r1(e.selectedKeys),[e.selectedKeys]),p=g.useMemo(()=>r1(e.defaultSelectedKeys,new lr),[e.defaultSelectedKeys]),[h,m]=hr(d,p,e.onSelectionChange),b=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,y]=g.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let x=g.useRef(o);return g.useEffect(()=>{o!==x.current&&(y(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return a.current},setFocused(w){a.current=w,i(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,C="first"){l.current=w,u.current=C,c(w)},selectedKeys:h,setSelectedKeys(w){(n||!gN(w,h))&&m(w)},disabledKeys:b,disabledBehavior:s}}function r1(e,t){return e?e==="all"?"all":new lr(e):t}function n1(e){return null}n1.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:s}=t,a=t.title||t.children,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!i&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:i,"aria-label":t["aria-label"],hasChildNodes:bN(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];g.Children.forEach(s,u=>{l.push({type:"item",element:u})}),yield*l}}}};function bN(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&g.Children.count(e.children)>0)}let o1=n1;class vN{build(t,r){return this.context=r,s1(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(g.isValidElement(r)&&r.type===g.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let s of n)yield*this.getFullNode({value:s,index:o},{renderer:r}),o++}else{let o=[];g.Children.forEach(r,a=>{a&&o.push(a)});let s=0;for(let a of o){let i=this.getFullNode({element:a,index:s},{});for(let l of i)s++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let s=r.value;if(s!=null){var a;let i=(a=s.key)!==null&&a!==void 0?a:s.id;if(i==null)throw new Error("No key found for item");return i}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(g.isValidElement(t.element)&&t.element.type===g.Fragment){let v=[];g.Children.forEach(t.element.props.children,x=>{v.push(x)});var s;let y=(s=t.index)!==null&&s!==void 0?s:0;for(const x of v)yield*this.getFullNode({element:x,index:y++},r,n,o);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=r.renderer(t.value)}if(g.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let C=a.type;throw new Error(`Unknown element <${C}> in collection.`)}let y=v.getCollectionNode(a.props,this.context);var i;let x=(i=t.index)!==null&&i!==void 0?i:0,w=y.next();for(;!w.done&&w.value;){let C=w.value;t.index=x;var l;let S=(l=C.key)!==null&&l!==void 0?l:null;S==null&&(S=C.element?null:this.getKey(a,t,r,n));let D=[...this.getFullNode({...C,key:S,index:x,wrapper:yN(t.wrapper,C.wrapper)},this.getChildState(r,C),n?`${n}${a.key}`:a.key,o)];for(let $ of D){var u,c;$.value=(c=(u=C.value)!==null&&u!==void 0?u:t.value)!==null&&c!==void 0?c:null,$.value&&this.cache.set($.value,$);var d;if(t.type&&$.type!==t.type)throw new Error(`Unsupported type <${kd($.type)}> in <${kd((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${kd(t.type)}> is supported.`);x++,yield $}w=y.next(D)}return}if(t.key==null||t.type==null)return;let p=this;var h,m;let b={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:s1(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let y of t.childNodes()){y.key!=null&&(y.key=`${b.key}${y.key}`);let x=p.getFullNode({...y,index:v},p.getChildState(r,y),b.key,b);for(let w of x)v++,yield w}})};yield b}constructor(){this.cache=new WeakMap}}function s1(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function yN(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function kd(e){return e[0].toUpperCase()+e.slice(1)}function a1(e,t,r){let n=g.useMemo(()=>new vN,[]),{children:o,items:s,collection:a}=e;return g.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:s},r);return t(l)},[n,o,s,a,r,t])}function ht(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function jr(e){return _s(e,0)}function _s(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function ln(e){let t;for(let r of e)t=r;return t}function Pd(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...i1(e,t),t],o=[...i1(e,r),r],s=n.slice(0,o.length).findIndex((a,i)=>a!==o[i]);return s!==-1?(t=n[s],r=o[s],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function i1(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const l1=new WeakMap;function xN(e){let t=l1.get(e);if(t!=null)return t;let r=0,n=o=>{for(let s of o)s.type==="section"?n(ht(s,e)):s.type==="item"&&r++};return n(e),l1.set(e,r),r}class Ii{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Pd(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Pd(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new lr([r],r,r);else{let a=this.state.selectedKeys;var o;let i=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new lr(a,i,r);var s;for(let l of this.getKeyRange(i,(s=a.currentKey)!==null&&s!==void 0?s:r))n.delete(l);for(let l of this.getKeyRange(r,i))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Pd(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(s),s===r)return o;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new lr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new lr([r],r,r):new lr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new lr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);a?.type==="item"&&t.push(n);var s;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((s=(o=jr(ht(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new lr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Ii(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function $d(e){let{filter:t,layoutDelegate:r}=e,n=t1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=g.useCallback(u=>t?new e1(t(u)):new e1(u),[t]),a=g.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=a1(e,s,a),l=g.useMemo(()=>new Ii(i,n,{layoutDelegate:r}),[i,n,r]);return wN(i,l),{collection:i,disabledKeys:o,selectionManager:l}}function wN(e,t){const r=g.useRef(null);g.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(y=>{const x=r.current.getItem(y);return x?.type==="item"?x:null}).filter(y=>y!==null),p=[...e.getKeys()].map(y=>{const x=e.getItem(y);return x?.type==="item"?x:null}).filter(y=>y!==null);var n,o;const h=((n=d?.length)!==null&&n!==void 0?n:0)-((o=p?.length)!==null&&o!==void 0?o:0);var s,a,i;let m=Math.min(h>1?Math.max(((s=c?.index)!==null&&s!==void 0?s:0)-h+1,0):(a=c?.index)!==null&&a!==void 0?a:0,((i=p?.length)!==null&&i!==void 0?i:0)-1),b=null,v=!1;for(;m>=0;){if(!t.isDisabled(p[m].key)){b=p[m];break}if(m<p.length-1&&!v)m++;else{v=!0;var l,u;m>((l=c?.index)!==null&&l!==void 0?l:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function CN(e){var t;let[r,n]=hr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=g.useMemo(()=>r!=null?[r]:[],[r]),{collection:s,disabledKeys:a,selectionManager:i}=$d({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?s.getItem(r):null;return{collection:s,disabledKeys:a,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function SN(e){var t,r;let n=CN({...e,onSelectionChange:e.onSelectionChange?l=>{var u;l!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,l))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:u1(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:s,selectedKey:a}=n,i=g.useRef(a);return g.useEffect(()=>{let l=a;e.selectedKey==null&&(o.isEmpty||l==null||!s.getItem(l))&&(l=u1(s,n.disabledKeys),l!=null&&o.setSelectedKeys([l])),(l!=null&&o.focusedKey==null||!o.isFocused&&l!==i.current)&&o.setFocusedKey(l),i.current=l}),{...n,isDisabled:e.isDisabled||!1}}function u1(e,t){let r=null;if(e){var n,o,s,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(s=a.props)===null||s===void 0)&&s.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function kN(e){var t,r,n;const o=tt(),[s,a]=pt(e,Mm.variantKeys),{ref:i,as:l,className:u,classNames:c,children:d,disableCursorAnimation:p,isVertical:h=!1,shouldSelectOnPressUp:m=!0,destroyInactiveTabPanel:b=!0,...v}=s,y=l||"div",x=typeof y=="string",w=Pe(i),C=(r=(t=e?.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,S=(n=a.placement)!=null?n:h?"start":"top",k=h||S==="start"||S==="end"?"vertical":"horizontal",D=SN({children:d,...v}),{tabListProps:$}=cN({...v,orientation:k},D,w),_=g.useMemo(()=>Mm({...a,disableAnimation:C,...h?{placement:"start"}:{}}),[ft(a),C,h]),N=P(c?.base,u),A=g.useMemo(()=>({state:D,slots:_,classNames:c,disableAnimation:C,listRef:w,shouldSelectOnPressUp:m,disableCursorAnimation:p,isDisabled:e?.isDisabled}),[D,_,w,C,p,m,e?.isDisabled,c]),M=g.useCallback(z=>({"data-slot":"base",className:_.base({class:P(N,z?.className)}),...ie(Fe(v,{enabled:x}),z)}),[N,v,_]),O=g.useCallback(z=>({"data-slot":"tabWrapper",className:_.tabWrapper({class:P(c?.tabWrapper,z?.className)}),"data-placement":S,"data-vertical":h||S==="start"||S==="end"?"vertical":"horizontal"}),[c,_,S,h]),L=g.useCallback(z=>({ref:w,"data-slot":"tabList",className:_.tabList({class:P(c?.tabList,z?.className)}),...ie($,z)}),[w,$,c,_]),I=g.useCallback(z=>({"data-slot":"cursor",className:_.cursor({class:P(c?.cursor,z?.className)})}),[c,_]);return{Component:y,domRef:w,state:D,values:A,destroyInactiveTabPanel:b,getBaseProps:M,getTabListProps:L,getWrapperProps:O,getTabCursorProps:I}}var PN=Se(function(t,r){const{Component:n,values:o,state:s,domRef:a,destroyInactiveTabPanel:i,getBaseProps:l,getTabListProps:u,getWrapperProps:c,getTabCursorProps:d}=kN({...t,ref:r}),p={state:s,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,shouldSelectOnPressUp:o.shouldSelectOnPressUp},h=[...s.collection].map(M=>f.jsx(mN,{item:M,...p,...M.props},M.key)),m=t?.variant,b=g.useRef(void 0),v=t?.isVertical,y=g.useRef(void 0),x=t?.placement,w=g.useRef(void 0),C=g.useRef(null),S=s.selectedItem,k=S?.key,D=g.useCallback(M=>m==="underlined"?{left:`${M.left+M.width*.1}px`,top:`${M.top+M.height-2}px`,width:`${M.width*.8}px`,height:""}:{left:`${M.left}px`,top:`${M.top}px`,width:`${M.width}px`,height:`${M.height}px`},[m]),$=g.useCallback(M=>{var O;(m!==b.current||v!==y.current||x!==w.current)&&((O=C.current)==null||O.removeAttribute("data-animated")),M(),b.current=m,y.current=v,w.current=x,requestAnimationFrame(()=>{var L,I;(L=C.current)==null||L.setAttribute("data-animated","true"),(I=C.current)==null||I.setAttribute("data-initialized","true")})},[v,m,x]),_=g.useCallback(M=>{if(!C.current)return;const O={width:M.offsetWidth,height:M.offsetHeight,left:M.offsetLeft,top:M.offsetTop},L=D(O);$(()=>{C.current.style.left=L.left,C.current.style.top=L.top,C.current.style.width=L.width,C.current.style.height=L.height})},[C.current,D,$]),N=g.useCallback(M=>{const O=M[0].contentRect;O.width===0&&O.height===0||_(M[0].target)},[_]);g.useEffect(()=>{var M;const O=(M=a.current)==null?void 0:M.querySelector(`[data-key="${k}"]`);if(!O)return;const L=new ResizeObserver(N);return L.observe(O),()=>L.disconnect()},[a.current,N,k]);const A=g.useMemo(()=>f.jsxs(f.Fragment,{children:[f.jsx("div",{...l(),children:f.jsxs(n,{...u(),children:[!o.disableAnimation&&!o.disableCursorAnimation&&k!=null&&f.jsx("span",{...d(),ref:C}),h]})}),[...s.collection].map(M=>f.jsx(dN,{classNames:o.classNames,destroyInactiveTabPanel:i,slots:o.slots,state:o.state,tabKey:M.key},M.key))]}),[n,l,u,d,h,k,s.collection,o.disableAnimation,o.disableCursorAnimation,o.classNames,o.slots,o.state,i,a,C,m,v]);return"placement"in t||"isVertical"in t?f.jsx("div",{...c(),children:A}):A}),c1=PN,d1=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},f1=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],$N=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},Ai=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},Is=new WeakMap,Ft=[];function EN(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let u=p=>{if(r.has(p)||p.parentElement&&n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of r)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&s(l),d!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)s(p),p=c.nextNode()}},s=l=>{var u;let c=(u=Is.get(l))!=null?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),n.add(l),Is.set(l,c+1))};Ft.length&&Ft[Ft.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...r,...n].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(r.delete(c),n.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?r.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let i={visibleNodes:r,hiddenNodes:n,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Ft.push(i),()=>{a.disconnect();for(let l of n){let u=Is.get(l);u!=null&&(u===1?(l.removeAttribute("aria-hidden"),Is.delete(l)):Is.set(l,u-1))}i===Ft[Ft.length-1]?(Ft.pop(),Ft.length&&Ft[Ft.length-1].observe()):Ft.splice(Ft.indexOf(i),1)}}function TN(e){let t=Ft[Ft.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var DN=o1,Io=DN;function _N({brands:e,selectedBrandSlug:t,onBrandChange:r,classNames:n}){const{t:o}=Oe(),[s,a]=g.useState(t);function i(l){a(l),r(l)}return f.jsxs(c1,{selectedKey:s,color:"primary",size:"sm","aria-label":o("phoneSelector.selectBrand"),classNames:{base:P("w-full",n?.base),...n},children:[f.jsx(Io,{title:o("phoneSelector.popular"),onClick:()=>i("popular")},"popular"),e.map(l=>f.jsx(Io,{title:l.name,onClick:()=>i(l.slug)},l.slug))]})}var IN=o1,_n=IN;const Ed=new WeakMap;function AN(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function NN(e,t){let r=Ed.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${AN(t)}`}function Ni(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:s="label"}=e;t=bt(t);let a=bt(),i={};r?(n=n?`${a} ${n}`:a,i={id:a,htmlFor:s==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Pa({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:l}}function Mi(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:s,fieldProps:a}=Ni(e),i=os([!!t,!!r,n,o]),l=os([!!t,!!r,n,o]);return a=Ce(a,{"aria-describedby":[i,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:i},errorMessageProps:{id:l}}}function MN(e,t,r){let n=Bt(e,{labelable:!0}),o=e.selectionBehavior||"toggle",s=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&s==="action"&&(s="override");let{listProps:a}=aN({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:i}=kn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=bt(e.id);Ed.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:c}=Ni({...e,id:l,labelElementType:"span"});return{labelProps:u,listBoxProps:Ce(n,i,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ce(c,a)})}}function ON(e,t,r){var n,o;let{key:s}=e,a=Ed.get(t);var i;let l=(i=e.isDisabled)!==null&&i!==void 0?i:t.selectionManager.isDisabled(s);var u;let c=(u=e.isSelected)!==null&&u!==void 0?u:t.selectionManager.isSelected(s);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:a?.shouldSelectOnPressUp;var h;let m=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:a?.shouldFocusOnHover;var b;let v=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:a?.shouldUseVirtualFocus;var y;let x=(y=e.isVirtualized)!==null&&y!==void 0?y:a?.isVirtualized,w=os(),C=os(),S={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Hr()&&iu()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=w,S["aria-describedby"]=C);let k=t.collection.getItem(s);if(x){let F=Number(k?.index);S["aria-posinset"]=Number.isNaN(F)?void 0:F+1,S["aria-setsize"]=xN(t.collection)}let D=a?.onAction?()=>{var F;return a==null||(F=a.onAction)===null||F===void 0?void 0:F.call(a,s)}:void 0,$=NN(t,s),{itemProps:_,isPressed:N,isFocused:A,hasAction:M,allowsSelection:O}=Ti({selectionManager:t.selectionManager,key:s,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&m,isVirtualized:x,shouldUseVirtualFocus:v,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?Ur(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:a?.linkBehavior,UNSTABLE_itemBehavior:a?.UNSTABLE_itemBehavior,id:$}),{hoverProps:L}=vt({isDisabled:l||!m,onHoverStart(){xo()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),I=Bt(k?.props);delete I.id;let z=Hg(k?.props);return{optionProps:{...S,...Ce(I,_,L,z),id:$},labelProps:{id:w},descriptionProps:{id:C},isFocused:A,isFocusVisible:A&&t.selectionManager.isFocused&&xo(),isSelected:c,isDisabled:l,isPressed:N,allowsSelection:O,hasAction:M}}function jN(e){let{heading:t,"aria-label":r}=e,n=bt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function FN(e){var t;const r=tt(),{ref:n,as:o,state:s,variant:a,color:i,onAction:l,children:u,onSelectionChange:c,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:p,className:h,topContent:m,bottomContent:b,emptyContent:v="No items.",hideSelectedIcon:y=!1,hideEmptyContent:x=!1,shouldHighlightOnFocus:w=!1,classNames:C,...S}=e,k=o||"ul",D=typeof k=="string",$=Pe(n),_=$d({...e,children:u,onSelectionChange:c}),N=s||_,{listBoxProps:A}=MN({...e,onAction:l},N,$),M=g.useMemo(()=>i$(),[]),O=P(C?.base,h);return{Component:k,state:N,variant:a,color:i,slots:M,classNames:C,topContent:m,bottomContent:b,emptyContent:v,hideEmptyContent:x,shouldHighlightOnFocus:w,hideSelectedIcon:y,disableAnimation:d,className:h,itemClasses:p,getBaseProps:(F={})=>({ref:$,"data-slot":"base",className:M.base({class:O}),...Fe(S,{enabled:D}),...F}),getListProps:(F={})=>({"data-slot":"list",className:M.list({class:C?.list}),...A,...F}),getEmptyContentProps:(F={})=>({"data-slot":"empty-content",children:v,className:M.emptyContent({class:C?.emptyContent}),...F})}}function BN(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:f.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var zN=700;function LN(){return Qn()||typeof window>"u"?!1:window.screen.width<=zN}function VN(e){var t,r;const n=tt(),[o,s]=pt(e,jm.variantKeys),{as:a,item:i,state:l,description:u,startContent:c,endContent:d,isVirtualized:p,selectedIcon:h,className:m,classNames:b,autoFocus:v,onPress:y,onPressUp:x,onPressStart:w,onPressEnd:C,onPressChange:S,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:$=!1,isReadOnly:_=!1,...N}=o,A=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=g.useRef(null),O=a||(e.href?"a":"li"),L=typeof O=="string",{rendered:I,key:z}=i,F=l.disabledKeys.has(z)||e.isDisabled,B=l.selectionManager.selectionMode!=="none",U=LN(),{pressProps:E,isPressed:j}=jt({ref:M,isDisabled:F,onClick:k,onPress:y,onPressUp:x,onPressStart:w,onPressEnd:C,onPressChange:S}),{isHovered:T,hoverProps:V}=vt({isDisabled:F}),{isFocusVisible:K,focusProps:G}=nt({autoFocus:v}),{isFocused:Z,isSelected:W,optionProps:ne,labelProps:X,descriptionProps:q}=ON({key:z,isDisabled:F,"aria-label":o["aria-label"],isVirtualized:p},l,M);let ee=ne;const ue=g.useMemo(()=>jm({...s,isDisabled:F,disableAnimation:A,hasTitleTextChild:typeof I=="string",hasDescriptionTextChild:typeof u=="string"}),[ft(s),F,A,I,u]),te=P(b?.base,m);_&&(ee=w$(ee));const Ee=D&&Z||(U?T||j:T||Z&&!K),ve=(se={})=>({ref:M,...ie(ee,_?{}:ie(G,E),V,Fe(N,{enabled:L}),se),"data-selectable":H(B),"data-focus":H(Z),"data-hover":H(Ee),"data-disabled":H(F),"data-selected":H(W),"data-pressed":H(j),"data-focus-visible":H(K),className:ue.base({class:P(te,se.className)})}),oe=(se={})=>({...ie(X,se),"data-label":H(!0),className:ue.title({class:b?.title})}),pe=(se={})=>({...ie(q,se),className:ue.description({class:b?.description})}),xe=(se={})=>({...ie(se),className:ue.wrapper({class:b?.wrapper})}),he=g.useCallback((se={})=>({"aria-hidden":H(!0),"data-disabled":H(F),className:ue.selectedIcon({class:b?.selectedIcon}),...se}),[F,ue,b]);return{Component:O,domRef:M,slots:ue,classNames:b,isSelectable:B,isSelected:W,isDisabled:F,rendered:I,description:u,startContent:c,endContent:d,selectedIcon:h,hideSelectedIcon:$,disableAnimation:A,getItemProps:ve,getLabelProps:oe,getWrapperProps:xe,getDescriptionProps:pe,getSelectedIconProps:he}}var p1=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:s,isDisabled:a,selectedIcon:i,startContent:l,endContent:u,hideSelectedIcon:c,disableAnimation:d,getItemProps:p,getLabelProps:h,getWrapperProps:m,getDescriptionProps:b,getSelectedIconProps:v}=VN(e),y=g.useMemo(()=>{const x=f.jsx(BN,{disableAnimation:d,isSelected:s});return typeof i=="function"?i({icon:x,isSelected:s,isDisabled:a}):i||x},[i,s,a,d]);return f.jsxs(t,{...p(),children:[l,n?f.jsxs("div",{...m(),children:[f.jsx("span",{...h(),children:r}),f.jsx("span",{...b(),children:n})]}):f.jsx("span",{...h(),children:r}),o&&!c&&f.jsx("span",{...v(),children:y}),u]})};p1.displayName="HeroUI.ListboxItem";var Td=p1;function RN(e){let t=Fe(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function KN(e){const{as:t,className:r,orientation:n,...o}=e;let s=t||"hr";s==="hr"&&n==="vertical"&&(s="div");const{separatorProps:a}=RN({elementType:typeof s=="string"?s:"hr",orientation:n}),i=g.useMemo(()=>f$({orientation:n,className:r}),[n,r]),l=g.useCallback((u={})=>({className:i,role:"separator","data-orientation":n,...a,...o,...u}),[i,n,a,o]);return{Component:s,getDividerProps:l}}var h1=Se((e,t)=>{const{Component:r,getDividerProps:n}=KN({...e});return f.jsx(r,{ref:t,...n()})});h1.displayName="HeroUI.Divider";var Ao=h1,m1=Se(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:s,className:a,classNames:i,hideSelectedIcon:l,showDivider:u=!1,dividerProps:c={},itemClasses:d,title:p,items:h,...m},b)=>{const v=r||"li",y=g.useMemo(()=>l$(),[]),x=P(i?.base,a),w=P(i?.divider,c?.className),{itemProps:C,headingProps:S,groupProps:k}=jN({heading:e.rendered,"aria-label":e["aria-label"]});return f.jsxs(v,{"data-slot":"base",...ie(C,m),className:y.base({class:x}),children:[e.rendered&&f.jsx("span",{...S,className:y.heading({class:i?.heading}),"data-slot":"heading",children:e.rendered}),f.jsxs("ul",{...k,className:y.group({class:i?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:$,props:_}=D;let N=f.jsx(Td,{classNames:d,color:o,disableAnimation:s,hideSelectedIcon:l,item:D,state:t,variant:n,..._},$);return D.wrapper&&(N=D.wrapper(N)),N}),u&&f.jsx(Ao,{as:"li",className:y.divider({class:w}),...c})]})]},e.key)});m1.displayName="HeroUI.ListboxSection";var g1=m1;function No(e,t,r){let n=r.initialDeps??[],o;return()=>{var s,a,i,l;let u;r.key&&((s=r.debug)!=null&&s.call(r))&&(u=Date.now());const c=e();if(!(c.length!==n.length||c.some((h,m)=>n[m]!==h)))return o;n=c;let p;if(r.key&&((a=r.debug)!=null&&a.call(r))&&(p=Date.now()),o=t(...c),r.key&&((i=r.debug)!=null&&i.call(r))){const h=Math.round((Date.now()-u)*100)/100,m=Math.round((Date.now()-p)*100)/100,b=m/16,v=(y,x)=>{for(y=String(y);y.length<x;)y=" "+y;return y};console.info(`%c⏱ ${v(m,5)} /${v(h,5)} ms`,`
|
|
228
228
|
font-size: .6rem;
|
|
229
229
|
font-weight: bold;
|
|
230
|
-
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Dd(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const KN=(e,t)=>Math.abs(e-t)<1,WN=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},UN=e=>e,HN=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},qN=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:i,height:l}=a;t({width:Math.round(i),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(a=>{const i=a[0];if(i?.borderBoxSize){const l=i.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},g1={passive:!0},GN=typeof window>"u"?!0:"onscrollend"in window,ZN=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const s=e.options.useScrollendEvent&&GN?()=>{}:WN(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,s(),t(o,u)},i=a(!0),l=a(!1);return l(),r.addEventListener("scroll",i,g1),r.addEventListener("scrollend",l,g1),()=>{r.removeEventListener("scroll",i),r.removeEventListener("scrollend",l)}},YN=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},JN=(e,{adjustments:t=0,behavior:r},n)=>{var o,s;const a=e+t;(s=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class XN{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var s;return(s=n())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=n())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:UN,rangeExtractor:HN,onChange:()=>{},measureElement:YN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=No(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,s=new Map;for(let a=n-1;a>=0;a--){const i=r[a];if(o.has(i.lane))continue;const l=s.get(i.lane);if(l==null||i.end>l.end?s.set(i.lane,i):i.end<l.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,i)=>a.end===i.end?a.index-i.index:a.end-i.end)[0]:void 0},this.getMeasurementOptions=No(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=No(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a},i)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<r;c++){const d=s(c),p=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=p?p.end+this.options.gap:n+o,m=i.get(d),b=typeof m=="number"?m:this.options.estimateSize(c),v=h+b,y=p?p.lane:c%this.options.lanes;u[c]={index:c,start:h,size:b,end:v,key:d,lane:y}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=No(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?QN({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=No(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,s,a)=>s===null||a===null?[]:r({startIndex:s,endIndex:a,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),s=this.measurementsCache[o];if(!s)return;const a=s.key,i=this.elementsCache.get(a);i!==r&&(i&&this.observer.unobserve(i),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,a=n-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",a),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=No(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let s=0,a=r.length;s<a;s++){const i=r[s],l=n[i];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Dd(n[b1(0,n.length-1,o=>Dd(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),s=this.getScrollOffset();n==="auto"&&r>=s+o&&(n="end"),n==="end"&&(r-=o);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const s=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+s-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const i=o.start-this.options.scrollPaddingStart+(o.size-s)/2;switch(n){case"center":return[this.getOffsetForAlignment(i,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(r,n);if(!s)return;const[a,i]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=Dd(this.getOffsetForIndex(r,i));KN(u,this.getScrollOffset())||this.scrollToIndex(r,{align:i,behavior:o})}else this.scrollToIndex(r,{align:i,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const b1=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,s=r(o);if(s<n)e=o+1;else if(s>n)t=o-1;else return o}return e>0?e-1:0};function QN({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,s=b1(0,n,i=>e[i].start,r);let a=s;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:s,endIndex:a}}const v1=typeof document<"u"?At.useLayoutEffect:At.useEffect;function e7(e){const t=At.useReducer(()=>({}),{})[1],r={...e,onChange:(o,s)=>{var a;s?Hn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,s)}},[n]=At.useState(()=>new XN(r));return n.setOptions(r),v1(()=>n._didMount(),[]),v1(()=>n._willUpdate()),n}function y1(e){return e7({observeElementRect:qN,observeElementOffset:ZN,scrollToFn:JN,...e})}function t7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function r7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);t7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var n7=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},o7=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},s7=e=>{var t;const{Component:r,state:n,color:o,variant:s,itemClasses:a,getBaseProps:i,topContent:l,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:p,disableAnimation:h,getEmptyContentProps:m,getListProps:b,scrollShadowProps:v}=e,{virtualization:y}=e;if(!y||!Kr(y)&&!y.maxListboxHeight&&!y.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:x,itemHeight:w}=y,C=Math.min(x,w*n.collection.size),S=g.useRef(null),k=g.useMemo(()=>n7([...n.collection],w),[n.collection,w]),D=y1({count:[...n.collection].length,getScrollElement:()=>S.current,estimateSize:I=>k[I]}),$=D.getVirtualItems(),_=D.getTotalSize(),{getBaseProps:N}=r7({...v}),A=I=>{var z;const F=[...n.collection][I.index];if(!F)return null;const B={color:o,item:F,state:n,variant:s,disableAnimation:h,hideSelectedIcon:d,...F.props},U={position:"absolute",top:0,left:0,width:"100%",height:`${I.size}px`,transform:`translateY(${I.start}px)`};if(F.type==="section")return f.jsx(m1,{...B,itemClasses:a,style:{...U,...B.style}},F.key);let E=f.jsx(Td,{...B,classNames:ie(a,(z=F.props)==null?void 0:z.classNames),shouldHighlightOnFocus:p,style:{...U,...B.style}},F.key);return F.wrapper&&(E=F.wrapper(E)),E},[M,O]=g.useState({isTop:!1,isBottom:!0,isMiddle:!1}),L=f.jsxs(r,{...b(),"data-virtual-scroll-height":_,"data-virtual-scroll-top":(t=S?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!c&&f.jsx("li",{children:f.jsx("div",{...m()})}),f.jsx("div",{...Fe(N()),ref:S,style:{height:x,overflow:"auto"},onScroll:I=>{O(o7(I.target))},children:C>0&&w>0&&f.jsx("div",{style:{height:`${_}px`,width:"100%",position:"relative"},children:$.map(I=>A(I))})})]});return f.jsxs("div",{...i(),children:[l,L,u]})},a7=s7,i7=Se(function(t,r){const{isVirtualized:n,...o}=t,s=jN({...o,ref:r}),{Component:a,state:i,color:l,variant:u,itemClasses:c,getBaseProps:d,topContent:p,bottomContent:h,hideEmptyContent:m,hideSelectedIcon:b,shouldHighlightOnFocus:v,disableAnimation:y,getEmptyContentProps:x,getListProps:w}=s;if(n)return f.jsx(a7,{...t,...s});const C=f.jsxs(a,{...w(),children:[!i.collection.size&&!m&&f.jsx("li",{children:f.jsx("div",{...x()})}),[...i.collection].map(S=>{var k;const D={color:l,item:S,state:i,variant:u,disableAnimation:y,hideSelectedIcon:b,...S.props};if(S.type==="section")return f.jsx(m1,{...D,itemClasses:c},S.key);let $=f.jsx(Td,{...D,classNames:ie(c,(k=S.props)==null?void 0:k.classNames),shouldHighlightOnFocus:v},S.key);return S.wrapper&&($=S.wrapper($)),$})]});return f.jsxs("div",{...d(),children:[p,C,h]})}),_d=i7;function l7(e){var t,r;const n=et(),[o,s]=pt(e,zm.variantKeys),{as:a,children:i,isLoaded:l=!1,className:u,classNames:c,...d}=o,p=a||"div",h=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,m=g.useMemo(()=>zm({...s,disableAnimation:h}),[ft(s),h,i]),b=P(c?.base,u);return{Component:p,children:i,slots:m,classNames:c,getSkeletonProps:(x={})=>({"data-loaded":H(l),className:m.base({class:P(b,x?.className)}),...d}),getContentProps:(x={})=>({className:m.content({class:P(c?.content,x?.className)})})}}var x1=Se((e,t)=>{const{Component:r,children:n,getSkeletonProps:o,getContentProps:s}=l7({...e});return f.jsx(r,{ref:t,...o(),children:f.jsx("div",{...s(),children:n})})});x1.displayName="HeroUI.Skeleton";var Id=x1;function u7({isLoading:e,phones:t,selectedPhoneSlug:r,onPhoneSelect:n,classNames:o}){const s=g.useCallback(a=>{if(a!=="all"){const i=Array.from(a)[0];i&&n(i)}},[n]);return e?f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx("ul",{className:"w-full flex flex-col gap-0.5",children:Array.from({length:10},(a,i)=>f.jsxs("li",{className:"px-2 py-1.5 w-full h-full flex items-center gap-3 rounded-lg",children:[f.jsx(Id,{className:"rounded-full shrink-0 bg-primary-100 w-10 h-10"}),f.jsx(Id,{className:"rounded-lg h-4 w-40 bg-content2"})]},`skeleton-${i}`))})}):f.jsx(_d,{selectionMode:"single",variant:"flat","aria-label":"Kies een telefoon",selectedKeys:r?[r]:[],onSelectionChange:s,classNames:{base:P("flex-1 min-h-0 overflow-y-auto p-0",o?.base),...o},children:t.map(a=>f.jsx(_n,{textValue:a.fullName,children:f.jsxs("div",{className:"flex items-center gap-3",children:[a.productVersion?.media?.main?.url?f.jsx(Ss,{alt:a.productVersion.media.main.altText||a.fullName,src:Rc(a.productVersion.media.main.url,64,64),size:"md",radius:"full",color:"primary",classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}):f.jsx(Ss,{size:"md",radius:"full",color:"primary",showFallback:!0,fallback:f.jsx(eu,{size:24,className:"text-primary"}),classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}),f.jsx("span",{className:"text-sm font-medium",children:a.fullName})]})},a.slug))})}var[c7,Ad]=gn({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),w1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Ad(),d=P(c?.body,o);return f.jsx(i,{ref:l,className:(r=u.body)==null?void 0:r.call(u,{class:d}),...a,children:s})});w1.displayName="HeroUI.CardBody";var C1=w1,S1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Ad(),d=P(c?.footer,o);return f.jsx(i,{ref:l,className:(r=u.footer)==null?void 0:r.call(u,{class:d}),...a,children:s})});S1.displayName="HeroUI.CardFooter";var d7=S1,k1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Ad(),d=P(c?.header,o);return f.jsx(i,{ref:l,className:(r=u.header)==null?void 0:r.call(u,{class:d}),...a,children:s})});k1.displayName="HeroUI.CardHeader";var f7=k1;function p7(e){var t,r,n,o;const s=et(),[a,i]=pt(e,Tm.variantKeys),{ref:l,as:u,children:c,onClick:d,onPress:p,autoFocus:h,className:m,classNames:b,allowTextSelectionOnPress:v=!0,...y}=a,x=Pe(l),w=u||(e.isPressable?"button":"div"),C=typeof w=="string",S=(r=(t=e.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:s?.disableRipple)!=null?o:!1,D=P(b?.base,m),{onClear:$,onPress:_,ripples:N}=My(),A=g.useCallback(V=>{k||S||x.current&&_(V)},[k,S,x,_]),{buttonProps:M,isPressed:O}=di({onPress:nr(p,A),elementType:u,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:v,...y},x),{hoverProps:L,isHovered:I}=vt({isDisabled:!e.isHoverable,...y}),{isFocusVisible:z,isFocused:F,focusProps:B}=rt({autoFocus:h}),U=g.useMemo(()=>Tm({...i,disableAnimation:S}),[ft(i),S]),E=g.useMemo(()=>({slots:U,classNames:b,disableAnimation:S,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[U,b,e.isDisabled,e.isFooterBlurred,S,e.fullWidth]),j=g.useCallback((V={})=>({ref:x,className:U.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":H(I),"data-pressed":H(O),"data-focus":H(F),"data-focus-visible":H(z),"data-disabled":H(e.isDisabled),...ie(e.isPressable?{...M,...B,role:"button"}:{},e.isHoverable?L:{},Fe(y,{enabled:C}),Fe(V))}),[x,U,D,C,e.isPressable,e.isHoverable,e.isDisabled,I,O,z,M,B,L,y]),T=g.useCallback(()=>({ripples:N,onClear:$}),[N,$]);return{context:E,domRef:x,Component:w,classNames:b,children:c,isHovered:I,isPressed:O,disableAnimation:S,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:A,isFocusVisible:z,getCardProps:j,getRippleProps:T}}var P1=Se((e,t)=>{const{children:r,context:n,Component:o,isPressable:s,disableAnimation:a,disableRipple:i,getCardProps:l,getRippleProps:u}=p7({...e,ref:t});return f.jsxs(o,{...l(),children:[f.jsx(c7,{value:n,children:r}),s&&!a&&!i&&f.jsx(Ny,{...u()})]})});P1.displayName="HeroUI.Card";var Nd=P1;function h7(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:s,selectionMode:a}}=$d(e),i=g.useMemo(()=>!e.isLoading&&s.size!==0?Array.from(s).filter(Boolean).filter(u=>!t.getItem(u)):[],[s,t]),l=s.size!==0?Array.from(s).map(u=>t.getItem(u)).filter(Boolean):null;return i.length&&console.warn(`Select: Keys "${i.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:a,selectedKeys:s,setSelectedKeys:o.bind(n),selectedItems:l}}function m7(e){let t=gi(e),[r,n]=g.useState(null),[o,s]=g.useState([]),a=()=>{s([]),t.close()};return{focusStrategy:r,...t,open(u=null){n(u),t.open()},toggle(u=null){n(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{s(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{s(d=>d[c]===u?d.slice(0,c):d)}}}const Md={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$1={...Md,customError:!0,valid:!1},Mo={isInvalid:!1,validationDetails:Md,validationErrors:[]},E1=g.createContext({}),Oi="__formValidationState"+Date.now();function Oo(e){if(e[Oi]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}=e[Oi];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}}return g7(e)}function g7(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:s,validate:a,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:$1}:null,u=g.useMemo(()=>{if(!a||o==null)return null;let N=b7(a,o);return T1(N)},[a,o]);s?.validationDetails.valid&&(s=void 0);let c=g.useContext(E1),d=g.useMemo(()=>n?Array.isArray(n)?n.flatMap(N=>Od(c[N])):Od(c[n]):[],[c,n]),[p,h]=g.useState(c),[m,b]=g.useState(!1);c!==p&&(h(c),b(!1));let v=g.useMemo(()=>T1(m?[]:d),[m,d]),y=g.useRef(Mo),[x,w]=g.useState(Mo),C=g.useRef(Mo),S=()=>{if(!k)return;D(!1);let N=u||s||y.current;jd(N,C.current)||(C.current=N,w(N))},[k,D]=g.useState(!1);return g.useEffect(S),{realtimeValidation:l||v||u||s||Mo,displayValidation:i==="native"?l||v||x:l||v||u||s||x,updateValidation(N){i==="aria"&&!jd(x,N)?w(N):y.current=N},resetValidation(){let N=Mo;jd(N,C.current)||(C.current=N,w(N)),i==="native"&&D(!1),b(!0)},commitValidation(){i==="native"&&D(!0),b(!0)}}}function Od(e){return e?Array.isArray(e)?e:[e]:[]}function b7(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Od(r)}return[]}function T1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:$1}:null}function jd(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function v7(...e){let t=new Set,r=!1,n={...Md};for(let a of e){var o,s;for(let i of a.validationErrors)t.add(i);r||(r=a.isInvalid);for(let i in n)(o=n)[s=i]||(o[s]=a.validationDetails[i])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function y7({validate:e,validationBehavior:t,...r}){const[n,o]=g.useState(!1),[s,a]=g.useState(null),i=m7(r),l=h7({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&i.close()}}),u=Oo({...r,validationBehavior:t,validate:d=>{if(!e)return;const p=Array.from(d);return e(r.selectionMode==="single"?p[0]:p)},value:l.selectedKeys}),c=l.collection.size===0&&r.hideEmptyContent;return{...u,...l,...i,focusStrategy:s,close(){i.close()},open(d=null){c||(a(d),i.open())},toggle(d=null){c||(a(d),i.toggle())},isFocused:n,setFocused:o}}var D1={};D1={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var _1={};_1={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var I1={};I1={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var A1={};A1={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var N1={};N1={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var M1={};M1={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var O1={};O1={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var j1={};j1={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var F1={};F1={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var B1={};B1={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var z1={};z1={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var L1={};L1={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var V1={};V1={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var R1={};R1={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var K1={};K1={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var W1={};W1={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var U1={};U1={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var H1={};H1={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var q1={};q1={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var G1={};G1={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Z1={};Z1={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Y1={};Y1={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var J1={};J1={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var X1={};X1={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Q1={};Q1={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ew={};ew={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var tw={};tw={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var rw={};rw={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var nw={};nw={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var ow={};ow={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var sw={};sw={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var aw={};aw={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var iw={};iw={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var lw={};lw={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var uw={};uw={"ar-AE":D1,"bg-BG":_1,"cs-CZ":I1,"da-DK":A1,"de-DE":N1,"el-GR":M1,"en-US":O1,"es-ES":j1,"et-EE":F1,"fi-FI":B1,"fr-FR":z1,"he-IL":L1,"hr-HR":V1,"hu-HU":R1,"it-IT":K1,"ja-JP":W1,"ko-KR":U1,"lt-LT":H1,"lv-LV":q1,"nb-NO":G1,"nl-NL":Z1,"pl-PL":Y1,"pt-BR":J1,"pt-PT":X1,"ro-RO":Q1,"ru-RU":ew,"sk-SK":tw,"sl-SI":rw,"sr-SP":nw,"sv-SE":ow,"tr-TR":sw,"uk-UA":aw,"zh-CN":iw,"zh-TW":lw};function x7(e){return e&&e.__esModule?e.default:e}function w7(e,t,r){let{type:n="menu",isDisabled:o,trigger:s="press"}=e,a=bt(),{triggerProps:i,overlayProps:l}=F0({type:n},t,r),u=h=>{if(!o&&!(s==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(s==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=Wr(x7(uw),"@react-aria/menu"),{longPressProps:d}=T0({isDisabled:o||s!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(Vt(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(Vt(h.target),t.toggle())}};return delete i.onPress,{menuTriggerProps:{...i,...s==="press"?p:d,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function C7(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,s=Ia({usage:"search",sensitivity:"base"}),a=g.useMemo(()=>new qx(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:i,menuProps:l}=w7({isDisabled:o,type:"listbox"},t,r),u=S=>{if(t.selectionMode==="single")switch(S.key){case"ArrowLeft":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:c}=Wx({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(S){t.setSelectedKeys([S])}}),{isInvalid:d,validationErrors:p,validationDetails:h}=t.displayValidation,{labelProps:m,fieldProps:b,descriptionProps:v,errorMessageProps:y}=Mi({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||p});c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture,i.onPressStart=S=>{S.pointerType!=="touch"&&S.pointerType!=="keyboard"&&!o&&t.toggle(S.pointerType==="virtual"?"first":null)};const x=Bt(e,{labelable:!0}),w=Ce(c,i,b),C=bt();return{labelProps:{...m,onClick:()=>{var S;e.isDisabled||((S=r.current)==null||S.focus(),_c("keyboard"))}},triggerProps:Ce(x,{...w,onKeyDown:Ur(w.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[C,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].join(" "),onFocus(S){t.isFocused||(e.onFocus&&e.onFocus(S),t.setFocused(!0))},onBlur(S){t.isOpen||(e.onBlur&&e.onBlur(S),t.setFocused(!1))}}),valueProps:{id:C},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||(e.onBlur&&e.onBlur(S),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[b["aria-labelledby"],w["aria-label"]&&!b["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:y,isInvalid:d,validationErrors:p,validationDetails:h}}var cw=Symbol("default");function S7(e){const t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(o=>{if(typeof e=="function"){const s=e,a=s(o);return()=>{typeof a=="function"?a():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function jo(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`));if(!t&&!r.slots[cw])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||cw;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function k7(e,t,r){let n=jo(r,e.slot)||{},{ref:o,...s}=n,a=S7(g.useMemo(()=>Ll(t,o),[t,o])),i=ie(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?i.style=l=>{let u=typeof s.style=="function"?s.style(l):s.style,c={...l.defaultStyle,...u},d=typeof e.style=="function"?e.style({...l,defaultStyle:c}):e.style;return{...c,...d}}:i.style={...s.style,...e.style}),[i,a]}var In=g.createContext(null);g.forwardRef(function(t,r){[t,r]=k7(t,r,In);let{validationErrors:n,validationBehavior:o="native",children:s,className:a,...i}=t;const l=g.useMemo(()=>d$({className:a}),[a]);return f.jsx("form",{noValidate:o!=="native",...i,ref:r,className:l,children:f.jsx(In.Provider,{value:{...t,validationBehavior:o},children:f.jsx(E1.Provider,{value:n??{},children:s})})})});var dw=new WeakMap;function P7(e){var t,r,n,o,s,a;const i=et(),{validationBehavior:l}=jo(In)||{},[u,c]=pt(e,Om.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,{ref:p,as:h,label:m,name:b,isLoading:v,selectorIcon:y,isOpen:x,defaultOpen:w,onOpenChange:C,startContent:S,endContent:k,description:D,renderValue:$,onSelectionChange:_,placeholder:N,isVirtualized:A,itemHeight:M=36,maxListboxHeight:O=256,children:L,disallowEmptySelection:I=!1,selectionMode:z="single",spinnerRef:F,scrollRef:B,popoverProps:U={},scrollShadowProps:E={},listboxProps:j={},spinnerProps:T={},validationState:V,onChange:K,onClose:G,className:Z,classNames:W,validationBehavior:ne=(n=l??i?.validationBehavior)!=null?n:"native",hideEmptyContent:X=!1,onClear:q,...ee}=u,ue=Pe(B),te={popoverProps:ie({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},U),scrollShadowProps:ie({ref:ue,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},E),listboxProps:ie({disableAnimation:d},j)},Ee=h||"button",ve=typeof Ee=="string",oe=Pe(p),pe=g.useRef(null),xe=g.useRef(null),he=g.useRef(null);let se=y7({...u,isOpen:x,selectionMode:z,disallowEmptySelection:I,validationBehavior:ne,children:L,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:w,hideEmptyContent:X,onOpenChange:re=>{C?.(re),re||G?.()},onSelectionChange:re=>{_?.(re),K&&typeof K=="function"&&K({target:{...oe.current&&{...oe.current,name:oe.current.name},value:Array.from(re).join(",")}}),se.commitValidation()}});se={...se,...e.isDisabled&&{disabledKeys:new Set([...se.collection.getKeys()])}},$n(()=>{var re;(re=oe.current)!=null&&re.value&&se.setSelectedKeys(new Set([...se.selectedKeys,oe.current.value]))},[oe.current]);const{labelProps:He,triggerProps:ge,valueProps:_e,menuProps:Ke,descriptionProps:qe,errorMessageProps:wt,isInvalid:Ct,validationErrors:Ge,validationDetails:Ne}=C7({...u,disallowEmptySelection:I,isDisabled:e.isDisabled},se,pe),mt=g.useCallback(()=>{var re;se.setSelectedKeys(new Set([])),q?.(),(re=pe.current)==null||re.focus()},[q,se]),{pressProps:St}=jt({isDisabled:!!e?.isDisabled,onPress:mt}),gt=e.isInvalid||V==="invalid"||Ct,{isPressed:er,buttonProps:Je}=di(ge,pe),{focusProps:Kn,isFocused:Lr,isFocusVisible:Wo}=rt(),{focusProps:dr,isFocusVisible:Ie}=rt(),{isHovered:Xe,hoverProps:tr}=vt({isDisabled:e.isDisabled}),It=Ty({labelPlacement:e.labelPlacement,label:m}),Vr=!!N,Sl=It==="outside-left"||It==="outside"||It==="outside-top",Uo=It==="inside",rr=It==="outside-left",kl=e.isClearable,Pl=se.isOpen||Vr||!!((s=se.selectedItems)!=null&&s.length)||!!S||!!k||!!e.isMultiline,Qe=!!((a=se.selectedItems)!=null&&a.length),Ks=!!m,$l=Ks&&(rr||Sl&&Vr),Ws=P(W?.base,Z),Me=g.useMemo(()=>Om({...c,isInvalid:gt,isClearable:kl,labelPlacement:It,disableAnimation:d}),[ft(c),gt,It,d]);Fc({isDisabled:!se.isOpen});const El=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:gt,validationErrors:Ge,validationDetails:Ne}):u.errorMessage||Ge?.join(" "),Us=!!D||!!El,Jh=!!k;g.useEffect(()=>{if(se.isOpen&&he.current&&pe.current){let re=pe.current.getBoundingClientRect(),Un=he.current;Un.style.width=re.width+"px"}},[se.isOpen]);const Xh=g.useCallback((re={})=>({"data-slot":"base","data-filled":H(Pl),"data-has-value":H(Qe),"data-has-label":H(Ks),"data-has-helper":H(Us),"data-has-end-content":H(Jh),"data-invalid":H(gt),"data-has-label-outside":H($l),className:Me.base({class:P(Ws,re.className)}),...re}),[Me,Us,Qe,Ks,$l,Pl,Ws]),Qh=g.useCallback((re={})=>({ref:pe,"data-slot":"trigger","data-open":H(se.isOpen),"data-disabled":H(e?.isDisabled),"data-focus":H(Lr),"data-pressed":H(er),"data-focus-visible":H(Wo),"data-hover":H(Xe),className:Me.trigger({class:W?.trigger}),...ie(Je,Kn,tr,Fe(ee,{enabled:ve}),Fe(re))}),[Me,pe,se.isOpen,W?.trigger,e?.isDisabled,Lr,er,Wo,Xe,Je,Kn,tr,ee,ve]),em=g.useCallback((re={})=>({state:se,triggerRef:pe,selectRef:oe,selectionMode:z,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:K,...re}),[se,z,e?.label,e?.autoComplete,e?.name,e?.isDisabled,pe]),tm=g.useCallback((re={})=>({"data-slot":"label",className:Me.label({class:P(W?.label,re.className)}),...He,...re}),[Me,W?.label,He]),$e=g.useCallback((re={})=>({"data-slot":"value",className:Me.value({class:P(W?.value,re.className)}),..._e,...re}),[Me,W?.value,_e]),Wn=g.useCallback((re={})=>({"data-slot":"listboxWrapper",className:Me.listboxWrapper({class:P(W?.listboxWrapper,re?.className)}),style:{maxHeight:O??256,...re.style},...ie(te.scrollShadowProps,re)}),[Me.listboxWrapper,W?.listboxWrapper,te.scrollShadowProps,O]),cR=(re={})=>{const Un=A??se.collection.size>50;return{state:se,ref:xe,isVirtualized:Un,virtualization:Un?{maxListboxHeight:O,itemHeight:M}:void 0,"data-slot":"listbox",className:Me.listbox({class:P(W?.listbox,re?.className)}),scrollShadowProps:te.scrollShadowProps,...ie(te.listboxProps,re,Ke)}},dR=g.useCallback((re={})=>{var Un,Bk;const CR=ie(te.popoverProps,re);return{state:se,triggerRef:pe,ref:he,"data-slot":"popover",scrollRef:xe,triggerType:"listbox",classNames:{content:Me.popoverContent({class:P(W?.popoverContent,re.className)})},...CR,offset:se.selectedItems&&se.selectedItems.length>0?se.selectedItems.length*1e-8+(((Un=te.popoverProps)==null?void 0:Un.offset)||0):(Bk=te.popoverProps)==null?void 0:Bk.offset}},[Me,W?.popoverContent,te.popoverProps,pe,se,se.selectedItems]),fR=g.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":H(!0),"data-open":H(se.isOpen),className:Me.selectorIcon({class:W?.selectorIcon})}),[Me,W?.selectorIcon,se.isOpen]),pR=g.useCallback((re={})=>({...re,"data-slot":"innerWrapper",className:Me.innerWrapper({class:P(W?.innerWrapper,re?.className)})}),[Me,W?.innerWrapper]),hR=g.useCallback((re={})=>({...re,"data-slot":"helperWrapper",className:Me.helperWrapper({class:P(W?.helperWrapper,re?.className)})}),[Me,W?.helperWrapper]),mR=g.useCallback((re={})=>({...re,...qe,"data-slot":"description",className:Me.description({class:P(W?.description,re?.className)})}),[Me,W?.description]),gR=g.useCallback((re={})=>({...re,"data-slot":"mainWrapper",className:Me.mainWrapper({class:P(W?.mainWrapper,re?.className)})}),[Me,W?.mainWrapper]),bR=g.useCallback((re={})=>({...re,"data-slot":"end-wrapper",className:Me.endWrapper({class:P(W?.endWrapper,re?.className)})}),[Me,W?.endWrapper]),vR=g.useCallback((re={})=>({...re,"data-slot":"end-content",className:Me.endContent({class:P(W?.endContent,re?.className)})}),[Me,W?.endContent]),yR=g.useCallback((re={})=>({...re,...wt,"data-slot":"error-message",className:Me.errorMessage({class:P(W?.errorMessage,re?.className)})}),[Me,wt,W?.errorMessage]),xR=g.useCallback((re={})=>({"aria-hidden":H(!0),"data-slot":"spinner",color:"current",size:"sm",...T,...re,ref:F,className:Me.spinner({class:P(W?.spinner,re?.className)})}),[Me,F,T,W?.spinner]),wR=g.useCallback((re={})=>({...re,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":H(Ie),className:Me.clearButton({class:P(W?.clearButton,re?.className)}),...ie(St,dr)}),[Me,Ie,St,dr,W?.clearButton]);return dw.set(se,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:gt,validationBehavior:ne}),{Component:Ee,domRef:oe,state:se,label:m,name:b,triggerRef:pe,isLoading:v,placeholder:N,startContent:S,endContent:k,description:D,selectorIcon:y,hasHelper:Us,labelPlacement:It,hasPlaceholder:Vr,renderValue:$,selectionMode:z,disableAnimation:d,isOutsideLeft:rr,shouldLabelBeOutside:Sl,shouldLabelBeInside:Uo,isInvalid:gt,errorMessage:El,isClearable:kl,getClearButtonProps:wR,getBaseProps:Xh,getTriggerProps:Qh,getLabelProps:tm,getValueProps:$e,getListboxProps:cR,getPopoverProps:dR,getSpinnerProps:xR,getMainWrapperProps:gR,getListboxWrapperProps:Wn,getHiddenSelectProps:em,getInnerWrapperProps:pR,getHelperWrapperProps:hR,getDescriptionProps:mR,getErrorMessageProps:yR,getSelectorIconProps:fR,getEndWrapperProps:bR,getEndContentProps:vR}}var $7=typeof document<"u"?g.useLayoutEffect:()=>{};function E7(e){const t=g.useRef(null);return $7(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function T7(e,t,r){let n=g.useRef(t),o=E7(()=>{r&&r(n.current)});g.useEffect(()=>{var s;let a=(s=e?.current)==null?void 0:s.form;return a?.addEventListener("reset",o),()=>{a?.removeEventListener("reset",o)}},[e,o])}function ji(e,t,r){let{validationBehavior:n,focus:o}=e;Be(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(_7(r.current))}});let s=g.useRef(!1),a=Pt(()=>{s.current||t.resetValidation()}),i=Pt(u=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&r&&d&&I7(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),_c("keyboard")}u.preventDefault()}),l=Pt(()=>{t.commitValidation()});g.useEffect(()=>{let u=r?.current;if(!u)return;let c=u.form,d=c?.reset;return c&&(c.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(c),s.current=!1}),u.addEventListener("invalid",i),u.addEventListener("change",l),c?.addEventListener("reset",a),()=>{u.removeEventListener("invalid",i),u.removeEventListener("change",l),c?.removeEventListener("reset",a),c&&(c.reset=d)}},[r,n])}function D7(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function _7(e){return{isInvalid:!e.validity.valid,validationDetails:D7(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function I7(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function A7(e,t,r){var n;let o=dw.get(t)||{},{autoComplete:s,name:a=o.name,isDisabled:i=o.isDisabled,selectionMode:l,onChange:u,form:c}=e,{validationBehavior:d,isRequired:p,isInvalid:h}=o,{visuallyHiddenProps:m}=ky();return T7(e.selectRef,t.selectedKeys,t.setSelectedKeys),ji({validationBehavior:d,focus:()=>{var b;return(b=r.current)==null?void 0:b.focus()}},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:c,autoComplete:s,disabled:i,"aria-invalid":h||void 0,"aria-required":p&&d==="aria"||void 0,required:p&&d==="native",name:a,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(b=>String(b)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:b=>{t.setSelectedKeys(b.target.value),u?.(b)}}}}function N7(e){var t;let{state:r,triggerRef:n,selectRef:o,label:s,name:a,isDisabled:i,form:l}=e,{containerProps:u,selectProps:c}=A7({...e,selectRef:o},r,n);return r.collection.size<=300?f.jsx("div",{...u,"data-testid":"hidden-select-container",children:f.jsxs("label",{children:[s,f.jsxs("select",{...c,ref:o,children:[f.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let p=r.collection.getItem(d);if(p?.type==="item")return f.jsx("option",{value:p.key,children:p.textValue},p.key)})]})]})}):a?f.jsx("input",{autoComplete:c.autoComplete,disabled:i,form:l,name:a,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}function M7(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:s,offset:a=7,crossOffset:i=0,scrollRef:l,shouldFlip:u,boundaryElement:c,isDismissable:d=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:h=!0,placement:m="top",containerPadding:b,shouldCloseOnInteractOutside:v,isNonModal:y,isKeyboardDismissDisabled:x,updatePositionDeps:w=[],...C}=e,S=y??!0,k=C.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:$}=Wc({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:d||k,isKeyboardDismissDisabled:x,shouldCloseOnInteractOutside:v||(L=>{var I;return!((I=n.current)!=null&&I.contains(L))}),disableOutsideEvents:!S},o),{overlayProps:_,arrowProps:N,placement:A,updatePosition:M,triggerAnchorPoint:O}=a0({...C,shouldFlip:u,crossOffset:i,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:c,containerPadding:b,placement:d1(m),offset:s?a+3:a,onClose:S&&!k&&h?t.close:()=>{}});return $n(()=>{w.length&&M()},w),g.useEffect(()=>{var L,I;if(t.isOpen&&o.current)return S?EN((L=r?.current)!=null?L:o.current):$N([(I=r?.current)!=null?I:o.current])},[S,t.isOpen,o,r]),{popoverProps:ie(D,_),arrowProps:N,underlayProps:$,placement:A,triggerAnchorPoint:O}}var O7="top";function j7(e){var t,r,n;const o=et(),[s,a]=pt(e,ta.variantKeys),{as:i,ref:l,children:u,state:c,triggerRef:d,scrollRef:p,defaultOpen:h,onOpenChange:m,isOpen:b,isNonModal:v=!0,shouldFlip:y=!0,containerPadding:x=12,shouldBlockScroll:w=!1,isDismissable:C=!0,shouldCloseOnBlur:S,portalContainer:k,updatePositionDeps:D,dialogProps:$,placement:_=O7,triggerType:N="dialog",showArrow:A=!1,offset:M=7,crossOffset:O=0,boundaryElement:L,isKeyboardDismissDisabled:I,shouldCloseOnInteractOutside:z,shouldCloseOnScroll:F,triggerAnchorPoint:B,motionProps:U,className:E,classNames:j,onClose:T,...V}=s,K=i||"div",G=Pe(l),Z=g.useRef(null),W=g.useRef(!1),ne=d||Z,X=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,q=gi({isOpen:b,defaultOpen:h,onOpenChange:Ne=>{m?.(Ne),Ne||T?.()}}),ee=c||q,{popoverProps:ue,underlayProps:te,placement:Ee}=M7({triggerRef:ne,isNonModal:v,popoverRef:G,placement:_,offset:M,scrollRef:p,isDismissable:C,shouldCloseOnBlur:S,boundaryElement:L,crossOffset:O,shouldFlip:y,containerPadding:x,updatePositionDeps:D,isKeyboardDismissDisabled:I,shouldCloseOnScroll:F,shouldCloseOnInteractOutside:z,triggerAnchorPoint:B},ee),ve=g.useMemo(()=>Ee?PN(Ee,_)?Ee:_:null,[Ee,_]),{triggerProps:oe}=F0({type:N},ee,ne),{isFocusVisible:pe,isFocused:xe,focusProps:he}=rt(),se=g.useMemo(()=>ta({...a}),[ft(a)]),He=P(j?.base,E),ge={"--trigger-anchor-point":B?`${B.x}px ${B.y}px`:void 0};Fc({isDisabled:!(w&&ee.isOpen)});const _e=(Ne={})=>({ref:G,...ie(ue,V,Ne),style:ie(ue.style,V.style,Ne.style)}),Ke=(Ne={})=>({"data-slot":"base","data-open":H(ee.isOpen),"data-focus":H(xe),"data-arrow":H(A),"data-focus-visible":H(pe),"data-placement":Ee?Ai(Ee,_):void 0,...ie(he,$,Ne),className:se.base({class:P(He)}),style:{outline:"none",...ge}}),qe=g.useCallback((Ne={})=>({"data-slot":"content","data-open":H(ee.isOpen),"data-arrow":H(A),"data-placement":Ee?Ai(Ee,_):void 0,className:se.content({class:P(j?.content,Ne.className)})}),[se,ee.isOpen,A,ve,_,j,Ee]),wt=g.useCallback(Ne=>{var mt;let St;return Ne.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?St=setTimeout(()=>{W.current=!0},100):W.current=!0,(mt=oe.onPress)==null||mt.call(oe,Ne),()=>{clearTimeout(St)}},[oe?.onPress]),Ct=g.useCallback((Ne={},mt=null)=>{const{isDisabled:St,...gt}=Ne;return{"data-slot":"trigger",...ie({"aria-haspopup":"dialog"},oe,gt),onPress:wt,isDisabled:St,className:se.trigger({class:P(j?.trigger,Ne.className),isTriggerDisabled:St}),ref:Ll(mt,ne)}},[ee,oe,wt,ne]),Ge=g.useCallback((Ne={})=>({"data-slot":"backdrop",className:se.backdrop({class:j?.backdrop}),onClick:mt=>{if(!W.current){mt.preventDefault();return}ee.close(),W.current=!1},...te,...Ne}),[se,ee.isOpen,j,te]);return{state:ee,Component:K,children:u,classNames:j,showArrow:A,triggerRef:ne,placement:ve,isNonModal:v,popoverRef:G,portalContainer:k,isOpen:ee.isOpen,onClose:ee.close,disableAnimation:X,shouldBlockScroll:w,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:U,getBackdropProps:Ge,getPopoverProps:_e,getTriggerProps:Ct,getDialogProps:Ke,getContentProps:qe}}var fw=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),pw=Se(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:s={},...a},i)=>{let l=o;return s.originX!==void 0||s.originY!==void 0?l={...l,transformOrigin:s}:r&&(l={...l,...c1(r==="center"?"top":r)}),n?f.jsx("div",{...a,ref:i,children:e}):f.jsx(mo,{features:fw,children:f.jsx(go.div,{ref:i,animate:"enter",exit:"exit",initial:"initial",style:l,variants:mi.scaleSpringOpacity,...ie(a,t),children:e})})});pw.displayName="HeroUI.FreeSoloPopoverWrapper";var hw=Se(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:s,state:a,placement:i,backdrop:l,portalContainer:u,disableAnimation:c,motionProps:d,isNonModal:p,getPopoverProps:h,getBackdropProps:m,getDialogProps:b,getContentProps:v}=j7({...n,ref:o}),y=At.useRef(null),{dialogProps:x,titleProps:w}=Hy({},y),C=b({...!r&&{ref:y},...x}),S=At.useMemo(()=>l==="transparent"?null:c?f.jsx("div",{...m()}):f.jsx(mo,{features:fw,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.fade,...m()})}),[l,c,m]);return f.jsxs($y,{portalContainer:u,children:[!p&&S,f.jsx(s,{...h(),children:f.jsxs(pw,{disableAnimation:c,motionProps:d,placement:i,tabIndex:-1,transformOrigin:t,...C,children:[!p&&f.jsx(ci,{onDismiss:a.close}),f.jsx("div",{...v(),children:typeof e=="function"?e(w):e}),f.jsx(ci,{onDismiss:a.close})]})})]})});hw.displayName="HeroUI.FreeSoloPopover";var F7=hw;function B7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function z7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);B7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var mw=Se((e,t)=>{const{Component:r,children:n,getBaseProps:o}=z7({...e,ref:t});return f.jsx(r,{...o(),children:n})});mw.displayName="HeroUI.ScrollShadow";var Fd=mw,L7=Se(function(t,r){var n;const{Component:o,state:s,label:a,hasHelper:i,isLoading:l,triggerRef:u,selectorIcon:c=f.jsx(Uy,{}),description:d,errorMessage:p,isInvalid:h,startContent:m,endContent:b,placeholder:v,renderValue:y,shouldLabelBeOutside:x,disableAnimation:w,getBaseProps:C,getLabelProps:S,getTriggerProps:k,getValueProps:D,getListboxProps:$,getPopoverProps:_,getSpinnerProps:N,getMainWrapperProps:A,getInnerWrapperProps:M,getHiddenSelectProps:O,getHelperWrapperProps:L,getListboxWrapperProps:I,getDescriptionProps:z,getErrorMessageProps:F,getSelectorIconProps:B,isClearable:U,getClearButtonProps:E,getEndWrapperProps:j,getEndContentProps:T}=P7({...t,ref:r}),V=a?f.jsx("label",{...S(),children:a}):null,K=g.cloneElement(c,B()),G=g.useMemo(()=>{var ee;return U&&((ee=s.selectedItems)!=null&&ee.length)?f.jsx("span",{...E(),children:f.jsx(Kc,{})}):null},[U,E,(n=s.selectedItems)==null?void 0:n.length]),Z=g.useMemo(()=>G?f.jsxs("div",{...j(),children:[G,b&&f.jsx("span",{...T(),children:b})]}):b&&f.jsx("span",{...T(),children:b}),[G,b,j,T]),W=g.useMemo(()=>{const ee=h&&p;return!i||!(ee||d)?null:f.jsx("div",{...L(),children:ee?f.jsx("div",{...F(),children:p}):f.jsx("div",{...z(),children:d})})},[i,h,p,d,L,F,z]),ne=g.useMemo(()=>{var ee;if(!((ee=s.selectedItems)!=null&&ee.length))return v;if(y&&typeof y=="function"){const ue=[...s.selectedItems].map(te=>({key:te.key,data:te.value,type:te.type,props:te.props,textValue:te.textValue,rendered:te.rendered,"aria-label":te["aria-label"]}));return y(ue)}return s.selectedItems.map(ue=>ue.textValue).join(", ")},[s.selectedItems,y,v]),X=g.useMemo(()=>l?f.jsx(jy,{...N()}):K,[l,K,N]),q=g.useMemo(()=>s.isOpen?f.jsx(F7,{..._(),children:f.jsx(Fd,{...I(),children:f.jsx(_d,{...$()})})}):null,[s.isOpen,_,s,u,I,$]);return f.jsxs("div",{...C(),children:[f.jsx(N7,{...O()}),x?V:null,f.jsxs("div",{...A(),children:[f.jsxs(o,{...k(),children:[x?null:V,f.jsxs("div",{...M(),children:[m,f.jsx("span",{...D(),children:ne}),b&&s.selectedItems&&f.jsx(wo,{elementType:"span",children:","}),Z]}),X]}),W]}),w?q:f.jsx(Wa,{children:q})]})}),As=L7;const V7=Le`
|
|
230
|
+
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Dd(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const WN=(e,t)=>Math.abs(e-t)<1,UN=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},HN=e=>e,qN=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},GN=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:i,height:l}=a;t({width:Math.round(i),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(a=>{const i=a[0];if(i?.borderBoxSize){const l=i.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},b1={passive:!0},ZN=typeof window>"u"?!0:"onscrollend"in window,YN=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const s=e.options.useScrollendEvent&&ZN?()=>{}:UN(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,s(),t(o,u)},i=a(!0),l=a(!1);return l(),r.addEventListener("scroll",i,b1),r.addEventListener("scrollend",l,b1),()=>{r.removeEventListener("scroll",i),r.removeEventListener("scrollend",l)}},JN=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},XN=(e,{adjustments:t=0,behavior:r},n)=>{var o,s;const a=e+t;(s=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class QN{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var s;return(s=n())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=n())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:HN,rangeExtractor:qN,onChange:()=>{},measureElement:JN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=No(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,s=new Map;for(let a=n-1;a>=0;a--){const i=r[a];if(o.has(i.lane))continue;const l=s.get(i.lane);if(l==null||i.end>l.end?s.set(i.lane,i):i.end<l.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,i)=>a.end===i.end?a.index-i.index:a.end-i.end)[0]:void 0},this.getMeasurementOptions=No(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=No(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:a},i)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<r;c++){const d=s(c),p=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=p?p.end+this.options.gap:n+o,m=i.get(d),b=typeof m=="number"?m:this.options.estimateSize(c),v=h+b,y=p?p.lane:c%this.options.lanes;u[c]={index:c,start:h,size:b,end:v,key:d,lane:y}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=No(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?e7({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=No(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,s,a)=>s===null||a===null?[]:r({startIndex:s,endIndex:a,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),s=this.measurementsCache[o];if(!s)return;const a=s.key,i=this.elementsCache.get(a);i!==r&&(i&&this.observer.unobserve(i),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,a=n-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",a),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=No(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let s=0,a=r.length;s<a;s++){const i=r[s],l=n[i];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Dd(n[v1(0,n.length-1,o=>Dd(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),s=this.getScrollOffset();n==="auto"&&r>=s+o&&(n="end"),n==="end"&&(r-=o);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const s=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+s-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const i=o.start-this.options.scrollPaddingStart+(o.size-s)/2;switch(n){case"center":return[this.getOffsetForAlignment(i,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(r,n);if(!s)return;const[a,i]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=Dd(this.getOffsetForIndex(r,i));WN(u,this.getScrollOffset())||this.scrollToIndex(r,{align:i,behavior:o})}else this.scrollToIndex(r,{align:i,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const v1=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,s=r(o);if(s<n)e=o+1;else if(s>n)t=o-1;else return o}return e>0?e-1:0};function e7({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,s=v1(0,n,i=>e[i].start,r);let a=s;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:s,endIndex:a}}const y1=typeof document<"u"?At.useLayoutEffect:At.useEffect;function t7(e){const t=At.useReducer(()=>({}),{})[1],r={...e,onChange:(o,s)=>{var a;s?Hn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,s)}},[n]=At.useState(()=>new QN(r));return n.setOptions(r),y1(()=>n._didMount(),[]),y1(()=>n._willUpdate()),n}function x1(e){return t7({observeElementRect:GN,observeElementOffset:YN,scrollToFn:XN,...e})}function r7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function n7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);r7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var o7=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},s7=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},a7=e=>{var t;const{Component:r,state:n,color:o,variant:s,itemClasses:a,getBaseProps:i,topContent:l,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:p,disableAnimation:h,getEmptyContentProps:m,getListProps:b,scrollShadowProps:v}=e,{virtualization:y}=e;if(!y||!Kr(y)&&!y.maxListboxHeight&&!y.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:x,itemHeight:w}=y,C=Math.min(x,w*n.collection.size),S=g.useRef(null),k=g.useMemo(()=>o7([...n.collection],w),[n.collection,w]),D=x1({count:[...n.collection].length,getScrollElement:()=>S.current,estimateSize:I=>k[I]}),$=D.getVirtualItems(),_=D.getTotalSize(),{getBaseProps:N}=n7({...v}),A=I=>{var z;const F=[...n.collection][I.index];if(!F)return null;const B={color:o,item:F,state:n,variant:s,disableAnimation:h,hideSelectedIcon:d,...F.props},U={position:"absolute",top:0,left:0,width:"100%",height:`${I.size}px`,transform:`translateY(${I.start}px)`};if(F.type==="section")return f.jsx(g1,{...B,itemClasses:a,style:{...U,...B.style}},F.key);let E=f.jsx(Td,{...B,classNames:ie(a,(z=F.props)==null?void 0:z.classNames),shouldHighlightOnFocus:p,style:{...U,...B.style}},F.key);return F.wrapper&&(E=F.wrapper(E)),E},[M,O]=g.useState({isTop:!1,isBottom:!0,isMiddle:!1}),L=f.jsxs(r,{...b(),"data-virtual-scroll-height":_,"data-virtual-scroll-top":(t=S?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!c&&f.jsx("li",{children:f.jsx("div",{...m()})}),f.jsx("div",{...Fe(N()),ref:S,style:{height:x,overflow:"auto"},onScroll:I=>{O(s7(I.target))},children:C>0&&w>0&&f.jsx("div",{style:{height:`${_}px`,width:"100%",position:"relative"},children:$.map(I=>A(I))})})]});return f.jsxs("div",{...i(),children:[l,L,u]})},i7=a7,l7=Se(function(t,r){const{isVirtualized:n,...o}=t,s=FN({...o,ref:r}),{Component:a,state:i,color:l,variant:u,itemClasses:c,getBaseProps:d,topContent:p,bottomContent:h,hideEmptyContent:m,hideSelectedIcon:b,shouldHighlightOnFocus:v,disableAnimation:y,getEmptyContentProps:x,getListProps:w}=s;if(n)return f.jsx(i7,{...t,...s});const C=f.jsxs(a,{...w(),children:[!i.collection.size&&!m&&f.jsx("li",{children:f.jsx("div",{...x()})}),[...i.collection].map(S=>{var k;const D={color:l,item:S,state:i,variant:u,disableAnimation:y,hideSelectedIcon:b,...S.props};if(S.type==="section")return f.jsx(g1,{...D,itemClasses:c},S.key);let $=f.jsx(Td,{...D,classNames:ie(c,(k=S.props)==null?void 0:k.classNames),shouldHighlightOnFocus:v},S.key);return S.wrapper&&($=S.wrapper($)),$})]});return f.jsxs("div",{...d(),children:[p,C,h]})}),_d=l7;function u7(e){var t,r;const n=tt(),[o,s]=pt(e,zm.variantKeys),{as:a,children:i,isLoaded:l=!1,className:u,classNames:c,...d}=o,p=a||"div",h=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,m=g.useMemo(()=>zm({...s,disableAnimation:h}),[ft(s),h,i]),b=P(c?.base,u);return{Component:p,children:i,slots:m,classNames:c,getSkeletonProps:(x={})=>({"data-loaded":H(l),className:m.base({class:P(b,x?.className)}),...d}),getContentProps:(x={})=>({className:m.content({class:P(c?.content,x?.className)})})}}var w1=Se((e,t)=>{const{Component:r,children:n,getSkeletonProps:o,getContentProps:s}=u7({...e});return f.jsx(r,{ref:t,...o(),children:f.jsx("div",{...s(),children:n})})});w1.displayName="HeroUI.Skeleton";var Id=w1;function c7({isLoading:e,phones:t,selectedPhoneSlug:r,onPhoneSelect:n,classNames:o}){const s=g.useCallback(a=>{if(a!=="all"){const i=Array.from(a)[0];i&&n(i)}},[n]);return e?f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx("ul",{className:"w-full flex flex-col gap-0.5",children:Array.from({length:10},(a,i)=>f.jsxs("li",{className:"px-2 py-1.5 w-full h-full flex items-center gap-3 rounded-lg",children:[f.jsx(Id,{className:"rounded-full shrink-0 bg-primary-100 w-10 h-10"}),f.jsx(Id,{className:"rounded-lg h-4 w-40 bg-content2"})]},`skeleton-${i}`))})}):f.jsx(_d,{selectionMode:"single",variant:"flat","aria-label":"Kies een telefoon",selectedKeys:r?[r]:[],onSelectionChange:s,classNames:{base:P("flex-1 min-h-0 overflow-y-auto p-0",o?.base),...o},children:t.map(a=>f.jsx(_n,{textValue:a.fullName,children:f.jsxs("div",{className:"flex items-center gap-3",children:[a.productVersion?.media?.main?.url?f.jsx(Ss,{alt:a.productVersion.media.main.altText||a.fullName,src:Rc(a.productVersion.media.main.url,64,64),size:"md",radius:"full",color:"primary",classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}):f.jsx(Ss,{size:"md",radius:"full",color:"primary",showFallback:!0,fallback:f.jsx(eu,{size:24,className:"text-primary"}),classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}),f.jsx("span",{className:"text-sm font-medium",children:a.fullName})]})},a.slug))})}var[d7,Ad]=gn({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),C1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Ad(),d=P(c?.body,o);return f.jsx(i,{ref:l,className:(r=u.body)==null?void 0:r.call(u,{class:d}),...a,children:s})});C1.displayName="HeroUI.CardBody";var S1=C1,k1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Ad(),d=P(c?.footer,o);return f.jsx(i,{ref:l,className:(r=u.footer)==null?void 0:r.call(u,{class:d}),...a,children:s})});k1.displayName="HeroUI.CardFooter";var f7=k1,P1=Se((e,t)=>{var r;const{as:n,className:o,children:s,...a}=e,i=n||"div",l=Pe(t),{slots:u,classNames:c}=Ad(),d=P(c?.header,o);return f.jsx(i,{ref:l,className:(r=u.header)==null?void 0:r.call(u,{class:d}),...a,children:s})});P1.displayName="HeroUI.CardHeader";var p7=P1;function h7(e){var t,r,n,o;const s=tt(),[a,i]=pt(e,Tm.variantKeys),{ref:l,as:u,children:c,onClick:d,onPress:p,autoFocus:h,className:m,classNames:b,allowTextSelectionOnPress:v=!0,...y}=a,x=Pe(l),w=u||(e.isPressable?"button":"div"),C=typeof w=="string",S=(r=(t=e.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:s?.disableRipple)!=null?o:!1,D=P(b?.base,m),{onClear:$,onPress:_,ripples:N}=My(),A=g.useCallback(V=>{k||S||x.current&&_(V)},[k,S,x,_]),{buttonProps:M,isPressed:O}=di({onPress:nr(p,A),elementType:u,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:v,...y},x),{hoverProps:L,isHovered:I}=vt({isDisabled:!e.isHoverable,...y}),{isFocusVisible:z,isFocused:F,focusProps:B}=nt({autoFocus:h}),U=g.useMemo(()=>Tm({...i,disableAnimation:S}),[ft(i),S]),E=g.useMemo(()=>({slots:U,classNames:b,disableAnimation:S,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[U,b,e.isDisabled,e.isFooterBlurred,S,e.fullWidth]),j=g.useCallback((V={})=>({ref:x,className:U.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":H(I),"data-pressed":H(O),"data-focus":H(F),"data-focus-visible":H(z),"data-disabled":H(e.isDisabled),...ie(e.isPressable?{...M,...B,role:"button"}:{},e.isHoverable?L:{},Fe(y,{enabled:C}),Fe(V))}),[x,U,D,C,e.isPressable,e.isHoverable,e.isDisabled,I,O,z,M,B,L,y]),T=g.useCallback(()=>({ripples:N,onClear:$}),[N,$]);return{context:E,domRef:x,Component:w,classNames:b,children:c,isHovered:I,isPressed:O,disableAnimation:S,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:A,isFocusVisible:z,getCardProps:j,getRippleProps:T}}var $1=Se((e,t)=>{const{children:r,context:n,Component:o,isPressable:s,disableAnimation:a,disableRipple:i,getCardProps:l,getRippleProps:u}=h7({...e,ref:t});return f.jsxs(o,{...l(),children:[f.jsx(d7,{value:n,children:r}),s&&!a&&!i&&f.jsx(Ny,{...u()})]})});$1.displayName="HeroUI.Card";var Nd=$1;function m7(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:s,selectionMode:a}}=$d(e),i=g.useMemo(()=>!e.isLoading&&s.size!==0?Array.from(s).filter(Boolean).filter(u=>!t.getItem(u)):[],[s,t]),l=s.size!==0?Array.from(s).map(u=>t.getItem(u)).filter(Boolean):null;return i.length&&console.warn(`Select: Keys "${i.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:a,selectedKeys:s,setSelectedKeys:o.bind(n),selectedItems:l}}function g7(e){let t=gi(e),[r,n]=g.useState(null),[o,s]=g.useState([]),a=()=>{s([]),t.close()};return{focusStrategy:r,...t,open(u=null){n(u),t.open()},toggle(u=null){n(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{s(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{s(d=>d[c]===u?d.slice(0,c):d)}}}const Md={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},E1={...Md,customError:!0,valid:!1},Mo={isInvalid:!1,validationDetails:Md,validationErrors:[]},T1=g.createContext({}),Oi="__formValidationState"+Date.now();function Oo(e){if(e[Oi]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}=e[Oi];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}}return b7(e)}function b7(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:s,validate:a,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:E1}:null,u=g.useMemo(()=>{if(!a||o==null)return null;let N=v7(a,o);return D1(N)},[a,o]);s?.validationDetails.valid&&(s=void 0);let c=g.useContext(T1),d=g.useMemo(()=>n?Array.isArray(n)?n.flatMap(N=>Od(c[N])):Od(c[n]):[],[c,n]),[p,h]=g.useState(c),[m,b]=g.useState(!1);c!==p&&(h(c),b(!1));let v=g.useMemo(()=>D1(m?[]:d),[m,d]),y=g.useRef(Mo),[x,w]=g.useState(Mo),C=g.useRef(Mo),S=()=>{if(!k)return;D(!1);let N=u||s||y.current;jd(N,C.current)||(C.current=N,w(N))},[k,D]=g.useState(!1);return g.useEffect(S),{realtimeValidation:l||v||u||s||Mo,displayValidation:i==="native"?l||v||x:l||v||u||s||x,updateValidation(N){i==="aria"&&!jd(x,N)?w(N):y.current=N},resetValidation(){let N=Mo;jd(N,C.current)||(C.current=N,w(N)),i==="native"&&D(!1),b(!0)},commitValidation(){i==="native"&&D(!0),b(!0)}}}function Od(e){return e?Array.isArray(e)?e:[e]:[]}function v7(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Od(r)}return[]}function D1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:E1}:null}function jd(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function y7(...e){let t=new Set,r=!1,n={...Md};for(let a of e){var o,s;for(let i of a.validationErrors)t.add(i);r||(r=a.isInvalid);for(let i in n)(o=n)[s=i]||(o[s]=a.validationDetails[i])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function x7({validate:e,validationBehavior:t,...r}){const[n,o]=g.useState(!1),[s,a]=g.useState(null),i=g7(r),l=m7({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&i.close()}}),u=Oo({...r,validationBehavior:t,validate:d=>{if(!e)return;const p=Array.from(d);return e(r.selectionMode==="single"?p[0]:p)},value:l.selectedKeys}),c=l.collection.size===0&&r.hideEmptyContent;return{...u,...l,...i,focusStrategy:s,close(){i.close()},open(d=null){c||(a(d),i.open())},toggle(d=null){c||(a(d),i.toggle())},isFocused:n,setFocused:o}}var _1={};_1={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var I1={};I1={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var A1={};A1={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var N1={};N1={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var M1={};M1={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var O1={};O1={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var j1={};j1={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var F1={};F1={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var B1={};B1={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var z1={};z1={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var L1={};L1={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var V1={};V1={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var R1={};R1={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var K1={};K1={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W1={};W1={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var U1={};U1={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var H1={};H1={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q1={};q1={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var G1={};G1={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z1={};Z1={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Y1={};Y1={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var J1={};J1={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var X1={};X1={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Q1={};Q1={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ew={};ew={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var tw={};tw={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rw={};rw={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var nw={};nw={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ow={};ow={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var sw={};sw={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var aw={};aw={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var iw={};iw={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lw={};lw={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var uw={};uw={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var cw={};cw={"ar-AE":_1,"bg-BG":I1,"cs-CZ":A1,"da-DK":N1,"de-DE":M1,"el-GR":O1,"en-US":j1,"es-ES":F1,"et-EE":B1,"fi-FI":z1,"fr-FR":L1,"he-IL":V1,"hr-HR":R1,"hu-HU":K1,"it-IT":W1,"ja-JP":U1,"ko-KR":H1,"lt-LT":q1,"lv-LV":G1,"nb-NO":Z1,"nl-NL":Y1,"pl-PL":J1,"pt-BR":X1,"pt-PT":Q1,"ro-RO":ew,"ru-RU":tw,"sk-SK":rw,"sl-SI":nw,"sr-SP":ow,"sv-SE":sw,"tr-TR":aw,"uk-UA":iw,"zh-CN":lw,"zh-TW":uw};function w7(e){return e&&e.__esModule?e.default:e}function C7(e,t,r){let{type:n="menu",isDisabled:o,trigger:s="press"}=e,a=bt(),{triggerProps:i,overlayProps:l}=F0({type:n},t,r),u=h=>{if(!o&&!(s==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(s==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=Wr(w7(cw),"@react-aria/menu"),{longPressProps:d}=T0({isDisabled:o||s!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(Vt(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(Vt(h.target),t.toggle())}};return delete i.onPress,{menuTriggerProps:{...i,...s==="press"?p:d,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function S7(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,s=Ia({usage:"search",sensitivity:"base"}),a=g.useMemo(()=>new Gx(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:i,menuProps:l}=C7({isDisabled:o,type:"listbox"},t,r),u=S=>{if(t.selectionMode==="single")switch(S.key){case"ArrowLeft":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{S.preventDefault();const k=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:c}=Ux({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(S){t.setSelectedKeys([S])}}),{isInvalid:d,validationErrors:p,validationDetails:h}=t.displayValidation,{labelProps:m,fieldProps:b,descriptionProps:v,errorMessageProps:y}=Mi({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||p});c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture,i.onPressStart=S=>{S.pointerType!=="touch"&&S.pointerType!=="keyboard"&&!o&&t.toggle(S.pointerType==="virtual"?"first":null)};const x=Bt(e,{labelable:!0}),w=Ce(c,i,b),C=bt();return{labelProps:{...m,onClick:()=>{var S;e.isDisabled||((S=r.current)==null||S.focus(),_c("keyboard"))}},triggerProps:Ce(x,{...w,onKeyDown:Ur(w.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[C,w["aria-labelledby"],w["aria-label"]&&!w["aria-labelledby"]?w.id:null].join(" "),onFocus(S){t.isFocused||(e.onFocus&&e.onFocus(S),t.setFocused(!0))},onBlur(S){t.isOpen||(e.onBlur&&e.onBlur(S),t.setFocused(!1))}}),valueProps:{id:C},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||(e.onBlur&&e.onBlur(S),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[b["aria-labelledby"],w["aria-label"]&&!b["aria-labelledby"]?w.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:y,isInvalid:d,validationErrors:p,validationDetails:h}}var dw=Symbol("default");function k7(e){const t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(o=>{if(typeof e=="function"){const s=e,a=s(o);return()=>{typeof a=="function"?a():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function jo(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`));if(!t&&!r.slots[dw])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||dw;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function P7(e,t,r){let n=jo(r,e.slot)||{},{ref:o,...s}=n,a=k7(g.useMemo(()=>Ll(t,o),[t,o])),i=ie(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?i.style=l=>{let u=typeof s.style=="function"?s.style(l):s.style,c={...l.defaultStyle,...u},d=typeof e.style=="function"?e.style({...l,defaultStyle:c}):e.style;return{...c,...d}}:i.style={...s.style,...e.style}),[i,a]}var In=g.createContext(null);g.forwardRef(function(t,r){[t,r]=P7(t,r,In);let{validationErrors:n,validationBehavior:o="native",children:s,className:a,...i}=t;const l=g.useMemo(()=>d$({className:a}),[a]);return f.jsx("form",{noValidate:o!=="native",...i,ref:r,className:l,children:f.jsx(In.Provider,{value:{...t,validationBehavior:o},children:f.jsx(T1.Provider,{value:n??{},children:s})})})});var fw=new WeakMap;function $7(e){var t,r,n,o,s,a;const i=tt(),{validationBehavior:l}=jo(In)||{},[u,c]=pt(e,Om.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,{ref:p,as:h,label:m,name:b,isLoading:v,selectorIcon:y,isOpen:x,defaultOpen:w,onOpenChange:C,startContent:S,endContent:k,description:D,renderValue:$,onSelectionChange:_,placeholder:N,isVirtualized:A,itemHeight:M=36,maxListboxHeight:O=256,children:L,disallowEmptySelection:I=!1,selectionMode:z="single",spinnerRef:F,scrollRef:B,popoverProps:U={},scrollShadowProps:E={},listboxProps:j={},spinnerProps:T={},validationState:V,onChange:K,onClose:G,className:Z,classNames:W,validationBehavior:ne=(n=l??i?.validationBehavior)!=null?n:"native",hideEmptyContent:X=!1,onClear:q,...ee}=u,ue=Pe(B),te={popoverProps:ie({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},U),scrollShadowProps:ie({ref:ue,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},E),listboxProps:ie({disableAnimation:d},j)},Ee=h||"button",ve=typeof Ee=="string",oe=Pe(p),pe=g.useRef(null),xe=g.useRef(null),he=g.useRef(null);let se=x7({...u,isOpen:x,selectionMode:z,disallowEmptySelection:I,validationBehavior:ne,children:L,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:w,hideEmptyContent:X,onOpenChange:re=>{C?.(re),re||G?.()},onSelectionChange:re=>{_?.(re),K&&typeof K=="function"&&K({target:{...oe.current&&{...oe.current,name:oe.current.name},value:Array.from(re).join(",")}}),se.commitValidation()}});se={...se,...e.isDisabled&&{disabledKeys:new Set([...se.collection.getKeys()])}},$n(()=>{var re;(re=oe.current)!=null&&re.value&&se.setSelectedKeys(new Set([...se.selectedKeys,oe.current.value]))},[oe.current]);const{labelProps:He,triggerProps:ge,valueProps:_e,menuProps:Ke,descriptionProps:qe,errorMessageProps:wt,isInvalid:Ct,validationErrors:Ge,validationDetails:Ne}=S7({...u,disallowEmptySelection:I,isDisabled:e.isDisabled},se,pe),mt=g.useCallback(()=>{var re;se.setSelectedKeys(new Set([])),q?.(),(re=pe.current)==null||re.focus()},[q,se]),{pressProps:St}=jt({isDisabled:!!e?.isDisabled,onPress:mt}),gt=e.isInvalid||V==="invalid"||Ct,{isPressed:er,buttonProps:Xe}=di(ge,pe),{focusProps:Kn,isFocused:Lr,isFocusVisible:Wo}=nt(),{focusProps:dr,isFocusVisible:Ie}=nt(),{isHovered:Qe,hoverProps:tr}=vt({isDisabled:e.isDisabled}),It=Ty({labelPlacement:e.labelPlacement,label:m}),Vr=!!N,Sl=It==="outside-left"||It==="outside"||It==="outside-top",Uo=It==="inside",rr=It==="outside-left",kl=e.isClearable,Pl=se.isOpen||Vr||!!((s=se.selectedItems)!=null&&s.length)||!!S||!!k||!!e.isMultiline,et=!!((a=se.selectedItems)!=null&&a.length),Ks=!!m,$l=Ks&&(rr||Sl&&Vr),Ws=P(W?.base,Z),Me=g.useMemo(()=>Om({...c,isInvalid:gt,isClearable:kl,labelPlacement:It,disableAnimation:d}),[ft(c),gt,It,d]);Fc({isDisabled:!se.isOpen});const El=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:gt,validationErrors:Ge,validationDetails:Ne}):u.errorMessage||Ge?.join(" "),Us=!!D||!!El,Jh=!!k;g.useEffect(()=>{if(se.isOpen&&he.current&&pe.current){let re=pe.current.getBoundingClientRect(),Un=he.current;Un.style.width=re.width+"px"}},[se.isOpen]);const Xh=g.useCallback((re={})=>({"data-slot":"base","data-filled":H(Pl),"data-has-value":H(et),"data-has-label":H(Ks),"data-has-helper":H(Us),"data-has-end-content":H(Jh),"data-invalid":H(gt),"data-has-label-outside":H($l),className:Me.base({class:P(Ws,re.className)}),...re}),[Me,Us,et,Ks,$l,Pl,Ws]),Qh=g.useCallback((re={})=>({ref:pe,"data-slot":"trigger","data-open":H(se.isOpen),"data-disabled":H(e?.isDisabled),"data-focus":H(Lr),"data-pressed":H(er),"data-focus-visible":H(Wo),"data-hover":H(Qe),className:Me.trigger({class:W?.trigger}),...ie(Xe,Kn,tr,Fe(ee,{enabled:ve}),Fe(re))}),[Me,pe,se.isOpen,W?.trigger,e?.isDisabled,Lr,er,Wo,Qe,Xe,Kn,tr,ee,ve]),em=g.useCallback((re={})=>({state:se,triggerRef:pe,selectRef:oe,selectionMode:z,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:K,...re}),[se,z,e?.label,e?.autoComplete,e?.name,e?.isDisabled,pe]),tm=g.useCallback((re={})=>({"data-slot":"label",className:Me.label({class:P(W?.label,re.className)}),...He,...re}),[Me,W?.label,He]),$e=g.useCallback((re={})=>({"data-slot":"value",className:Me.value({class:P(W?.value,re.className)}),..._e,...re}),[Me,W?.value,_e]),Wn=g.useCallback((re={})=>({"data-slot":"listboxWrapper",className:Me.listboxWrapper({class:P(W?.listboxWrapper,re?.className)}),style:{maxHeight:O??256,...re.style},...ie(te.scrollShadowProps,re)}),[Me.listboxWrapper,W?.listboxWrapper,te.scrollShadowProps,O]),cR=(re={})=>{const Un=A??se.collection.size>50;return{state:se,ref:xe,isVirtualized:Un,virtualization:Un?{maxListboxHeight:O,itemHeight:M}:void 0,"data-slot":"listbox",className:Me.listbox({class:P(W?.listbox,re?.className)}),scrollShadowProps:te.scrollShadowProps,...ie(te.listboxProps,re,Ke)}},dR=g.useCallback((re={})=>{var Un,Bk;const CR=ie(te.popoverProps,re);return{state:se,triggerRef:pe,ref:he,"data-slot":"popover",scrollRef:xe,triggerType:"listbox",classNames:{content:Me.popoverContent({class:P(W?.popoverContent,re.className)})},...CR,offset:se.selectedItems&&se.selectedItems.length>0?se.selectedItems.length*1e-8+(((Un=te.popoverProps)==null?void 0:Un.offset)||0):(Bk=te.popoverProps)==null?void 0:Bk.offset}},[Me,W?.popoverContent,te.popoverProps,pe,se,se.selectedItems]),fR=g.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":H(!0),"data-open":H(se.isOpen),className:Me.selectorIcon({class:W?.selectorIcon})}),[Me,W?.selectorIcon,se.isOpen]),pR=g.useCallback((re={})=>({...re,"data-slot":"innerWrapper",className:Me.innerWrapper({class:P(W?.innerWrapper,re?.className)})}),[Me,W?.innerWrapper]),hR=g.useCallback((re={})=>({...re,"data-slot":"helperWrapper",className:Me.helperWrapper({class:P(W?.helperWrapper,re?.className)})}),[Me,W?.helperWrapper]),mR=g.useCallback((re={})=>({...re,...qe,"data-slot":"description",className:Me.description({class:P(W?.description,re?.className)})}),[Me,W?.description]),gR=g.useCallback((re={})=>({...re,"data-slot":"mainWrapper",className:Me.mainWrapper({class:P(W?.mainWrapper,re?.className)})}),[Me,W?.mainWrapper]),bR=g.useCallback((re={})=>({...re,"data-slot":"end-wrapper",className:Me.endWrapper({class:P(W?.endWrapper,re?.className)})}),[Me,W?.endWrapper]),vR=g.useCallback((re={})=>({...re,"data-slot":"end-content",className:Me.endContent({class:P(W?.endContent,re?.className)})}),[Me,W?.endContent]),yR=g.useCallback((re={})=>({...re,...wt,"data-slot":"error-message",className:Me.errorMessage({class:P(W?.errorMessage,re?.className)})}),[Me,wt,W?.errorMessage]),xR=g.useCallback((re={})=>({"aria-hidden":H(!0),"data-slot":"spinner",color:"current",size:"sm",...T,...re,ref:F,className:Me.spinner({class:P(W?.spinner,re?.className)})}),[Me,F,T,W?.spinner]),wR=g.useCallback((re={})=>({...re,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":H(Ie),className:Me.clearButton({class:P(W?.clearButton,re?.className)}),...ie(St,dr)}),[Me,Ie,St,dr,W?.clearButton]);return fw.set(se,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:gt,validationBehavior:ne}),{Component:Ee,domRef:oe,state:se,label:m,name:b,triggerRef:pe,isLoading:v,placeholder:N,startContent:S,endContent:k,description:D,selectorIcon:y,hasHelper:Us,labelPlacement:It,hasPlaceholder:Vr,renderValue:$,selectionMode:z,disableAnimation:d,isOutsideLeft:rr,shouldLabelBeOutside:Sl,shouldLabelBeInside:Uo,isInvalid:gt,errorMessage:El,isClearable:kl,getClearButtonProps:wR,getBaseProps:Xh,getTriggerProps:Qh,getLabelProps:tm,getValueProps:$e,getListboxProps:cR,getPopoverProps:dR,getSpinnerProps:xR,getMainWrapperProps:gR,getListboxWrapperProps:Wn,getHiddenSelectProps:em,getInnerWrapperProps:pR,getHelperWrapperProps:hR,getDescriptionProps:mR,getErrorMessageProps:yR,getSelectorIconProps:fR,getEndWrapperProps:bR,getEndContentProps:vR}}var E7=typeof document<"u"?g.useLayoutEffect:()=>{};function T7(e){const t=g.useRef(null);return E7(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function D7(e,t,r){let n=g.useRef(t),o=T7(()=>{r&&r(n.current)});g.useEffect(()=>{var s;let a=(s=e?.current)==null?void 0:s.form;return a?.addEventListener("reset",o),()=>{a?.removeEventListener("reset",o)}},[e,o])}function ji(e,t,r){let{validationBehavior:n,focus:o}=e;Be(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(I7(r.current))}});let s=g.useRef(!1),a=Pt(()=>{s.current||t.resetValidation()}),i=Pt(u=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&r&&d&&A7(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),_c("keyboard")}u.preventDefault()}),l=Pt(()=>{t.commitValidation()});g.useEffect(()=>{let u=r?.current;if(!u)return;let c=u.form,d=c?.reset;return c&&(c.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(c),s.current=!1}),u.addEventListener("invalid",i),u.addEventListener("change",l),c?.addEventListener("reset",a),()=>{u.removeEventListener("invalid",i),u.removeEventListener("change",l),c?.removeEventListener("reset",a),c&&(c.reset=d)}},[r,n])}function _7(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function I7(e){return{isInvalid:!e.validity.valid,validationDetails:_7(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function A7(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function N7(e,t,r){var n;let o=fw.get(t)||{},{autoComplete:s,name:a=o.name,isDisabled:i=o.isDisabled,selectionMode:l,onChange:u,form:c}=e,{validationBehavior:d,isRequired:p,isInvalid:h}=o,{visuallyHiddenProps:m}=ky();return D7(e.selectRef,t.selectedKeys,t.setSelectedKeys),ji({validationBehavior:d,focus:()=>{var b;return(b=r.current)==null?void 0:b.focus()}},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:c,autoComplete:s,disabled:i,"aria-invalid":h||void 0,"aria-required":p&&d==="aria"||void 0,required:p&&d==="native",name:a,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(b=>String(b)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:b=>{t.setSelectedKeys(b.target.value),u?.(b)}}}}function M7(e){var t;let{state:r,triggerRef:n,selectRef:o,label:s,name:a,isDisabled:i,form:l}=e,{containerProps:u,selectProps:c}=N7({...e,selectRef:o},r,n);return r.collection.size<=300?f.jsx("div",{...u,"data-testid":"hidden-select-container",children:f.jsxs("label",{children:[s,f.jsxs("select",{...c,ref:o,children:[f.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let p=r.collection.getItem(d);if(p?.type==="item")return f.jsx("option",{value:p.key,children:p.textValue},p.key)})]})]})}):a?f.jsx("input",{autoComplete:c.autoComplete,disabled:i,form:l,name:a,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}function O7(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:s,offset:a=7,crossOffset:i=0,scrollRef:l,shouldFlip:u,boundaryElement:c,isDismissable:d=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:h=!0,placement:m="top",containerPadding:b,shouldCloseOnInteractOutside:v,isNonModal:y,isKeyboardDismissDisabled:x,updatePositionDeps:w=[],...C}=e,S=y??!0,k=C.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:$}=Wc({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:d||k,isKeyboardDismissDisabled:x,shouldCloseOnInteractOutside:v||(L=>{var I;return!((I=n.current)!=null&&I.contains(L))}),disableOutsideEvents:!S},o),{overlayProps:_,arrowProps:N,placement:A,updatePosition:M,triggerAnchorPoint:O}=a0({...C,shouldFlip:u,crossOffset:i,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:c,containerPadding:b,placement:f1(m),offset:s?a+3:a,onClose:S&&!k&&h?t.close:()=>{}});return $n(()=>{w.length&&M()},w),g.useEffect(()=>{var L,I;if(t.isOpen&&o.current)return S?TN((L=r?.current)!=null?L:o.current):EN([(I=r?.current)!=null?I:o.current])},[S,t.isOpen,o,r]),{popoverProps:ie(D,_),arrowProps:N,underlayProps:$,placement:A,triggerAnchorPoint:O}}var j7="top";function F7(e){var t,r,n;const o=tt(),[s,a]=pt(e,ta.variantKeys),{as:i,ref:l,children:u,state:c,triggerRef:d,scrollRef:p,defaultOpen:h,onOpenChange:m,isOpen:b,isNonModal:v=!0,shouldFlip:y=!0,containerPadding:x=12,shouldBlockScroll:w=!1,isDismissable:C=!0,shouldCloseOnBlur:S,portalContainer:k,updatePositionDeps:D,dialogProps:$,placement:_=j7,triggerType:N="dialog",showArrow:A=!1,offset:M=7,crossOffset:O=0,boundaryElement:L,isKeyboardDismissDisabled:I,shouldCloseOnInteractOutside:z,shouldCloseOnScroll:F,triggerAnchorPoint:B,motionProps:U,className:E,classNames:j,onClose:T,...V}=s,K=i||"div",G=Pe(l),Z=g.useRef(null),W=g.useRef(!1),ne=d||Z,X=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,q=gi({isOpen:b,defaultOpen:h,onOpenChange:Ne=>{m?.(Ne),Ne||T?.()}}),ee=c||q,{popoverProps:ue,underlayProps:te,placement:Ee}=O7({triggerRef:ne,isNonModal:v,popoverRef:G,placement:_,offset:M,scrollRef:p,isDismissable:C,shouldCloseOnBlur:S,boundaryElement:L,crossOffset:O,shouldFlip:y,containerPadding:x,updatePositionDeps:D,isKeyboardDismissDisabled:I,shouldCloseOnScroll:F,shouldCloseOnInteractOutside:z,triggerAnchorPoint:B},ee),ve=g.useMemo(()=>Ee?$N(Ee,_)?Ee:_:null,[Ee,_]),{triggerProps:oe}=F0({type:N},ee,ne),{isFocusVisible:pe,isFocused:xe,focusProps:he}=nt(),se=g.useMemo(()=>ta({...a}),[ft(a)]),He=P(j?.base,E),ge={"--trigger-anchor-point":B?`${B.x}px ${B.y}px`:void 0};Fc({isDisabled:!(w&&ee.isOpen)});const _e=(Ne={})=>({ref:G,...ie(ue,V,Ne),style:ie(ue.style,V.style,Ne.style)}),Ke=(Ne={})=>({"data-slot":"base","data-open":H(ee.isOpen),"data-focus":H(xe),"data-arrow":H(A),"data-focus-visible":H(pe),"data-placement":Ee?Ai(Ee,_):void 0,...ie(he,$,Ne),className:se.base({class:P(He)}),style:{outline:"none",...ge}}),qe=g.useCallback((Ne={})=>({"data-slot":"content","data-open":H(ee.isOpen),"data-arrow":H(A),"data-placement":Ee?Ai(Ee,_):void 0,className:se.content({class:P(j?.content,Ne.className)})}),[se,ee.isOpen,A,ve,_,j,Ee]),wt=g.useCallback(Ne=>{var mt;let St;return Ne.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?St=setTimeout(()=>{W.current=!0},100):W.current=!0,(mt=oe.onPress)==null||mt.call(oe,Ne),()=>{clearTimeout(St)}},[oe?.onPress]),Ct=g.useCallback((Ne={},mt=null)=>{const{isDisabled:St,...gt}=Ne;return{"data-slot":"trigger",...ie({"aria-haspopup":"dialog"},oe,gt),onPress:wt,isDisabled:St,className:se.trigger({class:P(j?.trigger,Ne.className),isTriggerDisabled:St}),ref:Ll(mt,ne)}},[ee,oe,wt,ne]),Ge=g.useCallback((Ne={})=>({"data-slot":"backdrop",className:se.backdrop({class:j?.backdrop}),onClick:mt=>{if(!W.current){mt.preventDefault();return}ee.close(),W.current=!1},...te,...Ne}),[se,ee.isOpen,j,te]);return{state:ee,Component:K,children:u,classNames:j,showArrow:A,triggerRef:ne,placement:ve,isNonModal:v,popoverRef:G,portalContainer:k,isOpen:ee.isOpen,onClose:ee.close,disableAnimation:X,shouldBlockScroll:w,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:U,getBackdropProps:Ge,getPopoverProps:_e,getTriggerProps:Ct,getDialogProps:Ke,getContentProps:qe}}var pw=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),hw=Se(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:s={},...a},i)=>{let l=o;return s.originX!==void 0||s.originY!==void 0?l={...l,transformOrigin:s}:r&&(l={...l,...d1(r==="center"?"top":r)}),n?f.jsx("div",{...a,ref:i,children:e}):f.jsx(mo,{features:pw,children:f.jsx(go.div,{ref:i,animate:"enter",exit:"exit",initial:"initial",style:l,variants:mi.scaleSpringOpacity,...ie(a,t),children:e})})});hw.displayName="HeroUI.FreeSoloPopoverWrapper";var mw=Se(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:s,state:a,placement:i,backdrop:l,portalContainer:u,disableAnimation:c,motionProps:d,isNonModal:p,getPopoverProps:h,getBackdropProps:m,getDialogProps:b,getContentProps:v}=F7({...n,ref:o}),y=At.useRef(null),{dialogProps:x,titleProps:w}=qy({},y),C=b({...!r&&{ref:y},...x}),S=At.useMemo(()=>l==="transparent"?null:c?f.jsx("div",{...m()}):f.jsx(mo,{features:pw,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.fade,...m()})}),[l,c,m]);return f.jsxs($y,{portalContainer:u,children:[!p&&S,f.jsx(s,{...h(),children:f.jsxs(hw,{disableAnimation:c,motionProps:d,placement:i,tabIndex:-1,transformOrigin:t,...C,children:[!p&&f.jsx(ci,{onDismiss:a.close}),f.jsx("div",{...v(),children:typeof e=="function"?e(w):e}),f.jsx(ci,{onDismiss:a.close})]})})]})});mw.displayName="HeroUI.FreeSoloPopover";var B7=mw;function z7(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:a,updateDeps:i=[]}=e,l=g.useRef(o);g.useEffect(()=>{const u=t?.current;if(!u||!r)return;const c=(h,m,b,v,y)=>{if(o==="auto"){const x=`${v}${Wm(y)}Scroll`;m&&b?(u.dataset[x]="true",u.removeAttribute(`data-${v}-scroll`),u.removeAttribute(`data-${y}-scroll`)):(u.dataset[`${v}Scroll`]=m.toString(),u.dataset[`${y}Scroll`]=b.toString(),u.removeAttribute(`data-${v}-${y}-scroll`))}else{const x=m&&b?"both":m?v:b?y:"none";x!==l.current&&(a?.(x),l.current=x)}},d=()=>{var h,m;const b=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],v=u.querySelector('ul[data-slot="list"]'),y=+((h=v?.getAttribute("data-virtual-scroll-height"))!=null?h:u.scrollHeight),x=+((m=v?.getAttribute("data-virtual-scroll-top"))!=null?m:u.scrollTop);for(const{type:w,prefix:C,suffix:S}of b)if(n===w||n==="both"){const k=w==="vertical"?x>s:u.scrollLeft>s,D=w==="vertical"?x+u.clientHeight+s<y:u.scrollLeft+u.clientWidth+s<u.scrollWidth;c(w,k,D,C,S)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{u.removeAttribute(`data-${h}-scroll`)})};return d(),u.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(u.dataset.topBottomScroll=String(n==="vertical"),u.dataset.leftRightScroll=String(n==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{u.dataset[`${h}Scroll`]=String(o===h)}))),()=>{u.removeEventListener("scroll",d,!0),p()}},[...i,r,o,n,a,t])}function L7(e){var t;const[r,n]=pt(e,ra.variantKeys),{ref:o,as:s,children:a,className:i,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,b=s||"div",v=Pe(o);z7({domRef:v,offset:c,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const y=g.useMemo(()=>ra({...n,className:i}),[ft(n),i]);return{Component:b,styles:y,domRef:v,children:a,getBaseProps:(w={})=>{var C;return{ref:v,className:y,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...w.style},...m,...w}}}}var gw=Se((e,t)=>{const{Component:r,children:n,getBaseProps:o}=L7({...e,ref:t});return f.jsx(r,{...o(),children:n})});gw.displayName="HeroUI.ScrollShadow";var Fd=gw,V7=Se(function(t,r){var n;const{Component:o,state:s,label:a,hasHelper:i,isLoading:l,triggerRef:u,selectorIcon:c=f.jsx(Hy,{}),description:d,errorMessage:p,isInvalid:h,startContent:m,endContent:b,placeholder:v,renderValue:y,shouldLabelBeOutside:x,disableAnimation:w,getBaseProps:C,getLabelProps:S,getTriggerProps:k,getValueProps:D,getListboxProps:$,getPopoverProps:_,getSpinnerProps:N,getMainWrapperProps:A,getInnerWrapperProps:M,getHiddenSelectProps:O,getHelperWrapperProps:L,getListboxWrapperProps:I,getDescriptionProps:z,getErrorMessageProps:F,getSelectorIconProps:B,isClearable:U,getClearButtonProps:E,getEndWrapperProps:j,getEndContentProps:T}=$7({...t,ref:r}),V=a?f.jsx("label",{...S(),children:a}):null,K=g.cloneElement(c,B()),G=g.useMemo(()=>{var ee;return U&&((ee=s.selectedItems)!=null&&ee.length)?f.jsx("span",{...E(),children:f.jsx(Kc,{})}):null},[U,E,(n=s.selectedItems)==null?void 0:n.length]),Z=g.useMemo(()=>G?f.jsxs("div",{...j(),children:[G,b&&f.jsx("span",{...T(),children:b})]}):b&&f.jsx("span",{...T(),children:b}),[G,b,j,T]),W=g.useMemo(()=>{const ee=h&&p;return!i||!(ee||d)?null:f.jsx("div",{...L(),children:ee?f.jsx("div",{...F(),children:p}):f.jsx("div",{...z(),children:d})})},[i,h,p,d,L,F,z]),ne=g.useMemo(()=>{var ee;if(!((ee=s.selectedItems)!=null&&ee.length))return v;if(y&&typeof y=="function"){const ue=[...s.selectedItems].map(te=>({key:te.key,data:te.value,type:te.type,props:te.props,textValue:te.textValue,rendered:te.rendered,"aria-label":te["aria-label"]}));return y(ue)}return s.selectedItems.map(ue=>ue.textValue).join(", ")},[s.selectedItems,y,v]),X=g.useMemo(()=>l?f.jsx(jy,{...N()}):K,[l,K,N]),q=g.useMemo(()=>s.isOpen?f.jsx(B7,{..._(),children:f.jsx(Fd,{...I(),children:f.jsx(_d,{...$()})})}):null,[s.isOpen,_,s,u,I,$]);return f.jsxs("div",{...C(),children:[f.jsx(M7,{...O()}),x?V:null,f.jsxs("div",{...A(),children:[f.jsxs(o,{...k(),children:[x?null:V,f.jsxs("div",{...M(),children:[m,f.jsx("span",{...D(),children:ne}),b&&s.selectedItems&&f.jsx(wo,{elementType:"span",children:","}),Z]}),X]}),W]}),w?q:f.jsx(Wa,{children:q})]})}),As=V7;const R7=Le`
|
|
231
231
|
query phoneSelectorProductVersion($slug: String!, $properties: [InputDistinctProperty!]!) {
|
|
232
232
|
product(slug: $slug) {
|
|
233
233
|
fullName
|
|
@@ -254,7 +254,7 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
`;function Bd(e,t){const r=t?.map(a=>({key:a.key,value:a.option.key})),{data:n,error:o,isLoading:s}=En(e&&r?.length?[V7,{slug:e,properties:r}]:null,{use:[Or],fetcher:qt});return!e||!r?{isLoading:!1,error:null}:{product:n?.product,productVersion:n?.product?.productVersion,isLoading:s,error:o}}var zd,gw;function R7(){if(gw)return zd;gw=1;function e(){this.__data__=[],this.size=0}return zd=e,zd}var Ld,bw;function vw(){if(bw)return Ld;bw=1;function e(t,r){return t===r||t!==t&&r!==r}return Ld=e,Ld}var Vd,yw;function Fi(){if(yw)return Vd;yw=1;var e=vw();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Vd=t,Vd}var Rd,xw;function K7(){if(xw)return Rd;xw=1;var e=Fi(),t=Array.prototype,r=t.splice;function n(o){var s=this.__data__,a=e(s,o);if(a<0)return!1;var i=s.length-1;return a==i?s.pop():r.call(s,a,1),--this.size,!0}return Rd=n,Rd}var Kd,ww;function W7(){if(ww)return Kd;ww=1;var e=Fi();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return Kd=t,Kd}var Wd,Cw;function U7(){if(Cw)return Wd;Cw=1;var e=Fi();function t(r){return e(this.__data__,r)>-1}return Wd=t,Wd}var Ud,Sw;function H7(){if(Sw)return Ud;Sw=1;var e=Fi();function t(r,n){var o=this.__data__,s=e(o,r);return s<0?(++this.size,o.push([r,n])):o[s][1]=n,this}return Ud=t,Ud}var Hd,kw;function Bi(){if(kw)return Hd;kw=1;var e=R7(),t=K7(),r=W7(),n=U7(),o=H7();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var u=a[i];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,Hd=s,Hd}var qd,Pw;function q7(){if(Pw)return qd;Pw=1;var e=Bi();function t(){this.__data__=new e,this.size=0}return qd=t,qd}var Gd,$w;function G7(){if($w)return Gd;$w=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Gd=e,Gd}var Zd,Ew;function Z7(){if(Ew)return Zd;Ew=1;function e(t){return this.__data__.get(t)}return Zd=e,Zd}var Yd,Tw;function Y7(){if(Tw)return Yd;Tw=1;function e(t){return this.__data__.has(t)}return Yd=e,Yd}var Jd,Dw;function _w(){if(Dw)return Jd;Dw=1;var e=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs;return Jd=e,Jd}var Xd,Iw;function Fr(){if(Iw)return Xd;Iw=1;var e=_w(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xd=r,Xd}var Qd,Aw;function zi(){if(Aw)return Qd;Aw=1;var e=Fr(),t=e.Symbol;return Qd=t,Qd}var ef,Nw;function J7(){if(Nw)return ef;Nw=1;var e=zi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function s(a){var i=r.call(a,o),l=a[o];try{a[o]=void 0;var u=!0}catch{}var c=n.call(a);return u&&(i?a[o]=l:delete a[o]),c}return ef=s,ef}var tf,Mw;function X7(){if(Mw)return tf;Mw=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return tf=r,tf}var rf,Ow;function Ns(){if(Ow)return rf;Ow=1;var e=zi(),t=J7(),r=X7(),n="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function a(i){return i==null?i===void 0?o:n:s&&s in Object(i)?t(i):r(i)}return rf=a,rf}var nf,jw;function of(){if(jw)return nf;jw=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return nf=e,nf}var sf,Fw;function Bw(){if(Fw)return sf;Fw=1;var e=Ns(),t=of(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function a(i){if(!t(i))return!1;var l=e(i);return l==n||l==o||l==r||l==s}return sf=a,sf}var af,zw;function Q7(){if(zw)return af;zw=1;var e=Fr(),t=e["__core-js_shared__"];return af=t,af}var lf,Lw;function eM(){if(Lw)return lf;Lw=1;var e=Q7(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return lf=r,lf}var uf,Vw;function Rw(){if(Vw)return uf;Vw=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uf=r,uf}var cf,Kw;function tM(){if(Kw)return cf;Kw=1;var e=Bw(),t=eM(),r=of(),n=Rw(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,i=Object.prototype,l=a.toString,u=i.hasOwnProperty,c=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!r(p)||t(p))return!1;var h=e(p)?c:s;return h.test(n(p))}return cf=d,cf}var df,Ww;function rM(){if(Ww)return df;Ww=1;function e(t,r){return t?.[r]}return df=e,df}var ff,Uw;function Fo(){if(Uw)return ff;Uw=1;var e=tM(),t=rM();function r(n,o){var s=t(n,o);return e(s)?s:void 0}return ff=r,ff}var pf,Hw;function hf(){if(Hw)return pf;Hw=1;var e=Fo(),t=Fr(),r=e(t,"Map");return pf=r,pf}var mf,qw;function Li(){if(qw)return mf;qw=1;var e=Fo(),t=e(Object,"create");return mf=t,mf}var gf,Gw;function nM(){if(Gw)return gf;Gw=1;var e=Li();function t(){this.__data__=e?e(null):{},this.size=0}return gf=t,gf}var bf,Zw;function oM(){if(Zw)return bf;Zw=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return bf=e,bf}var vf,Yw;function sM(){if(Yw)return vf;Yw=1;var e=Li(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(s){var a=this.__data__;if(e){var i=a[s];return i===t?void 0:i}return n.call(a,s)?a[s]:void 0}return vf=o,vf}var yf,Jw;function aM(){if(Jw)return yf;Jw=1;var e=Li(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var s=this.__data__;return e?s[o]!==void 0:r.call(s,o)}return yf=n,yf}var xf,Xw;function iM(){if(Xw)return xf;Xw=1;var e=Li(),t="__lodash_hash_undefined__";function r(n,o){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&o===void 0?t:o,this}return xf=r,xf}var wf,Qw;function lM(){if(Qw)return wf;Qw=1;var e=nM(),t=oM(),r=sM(),n=aM(),o=iM();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var u=a[i];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,wf=s,wf}var Cf,e4;function uM(){if(e4)return Cf;e4=1;var e=lM(),t=Bi(),r=hf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Cf=n,Cf}var Sf,t4;function cM(){if(t4)return Sf;t4=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Sf=e,Sf}var kf,r4;function Vi(){if(r4)return kf;r4=1;var e=cM();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return kf=t,kf}var Pf,n4;function dM(){if(n4)return Pf;n4=1;var e=Vi();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Pf=t,Pf}var $f,o4;function fM(){if(o4)return $f;o4=1;var e=Vi();function t(r){return e(this,r).get(r)}return $f=t,$f}var Ef,s4;function pM(){if(s4)return Ef;s4=1;var e=Vi();function t(r){return e(this,r).has(r)}return Ef=t,Ef}var Tf,a4;function hM(){if(a4)return Tf;a4=1;var e=Vi();function t(r,n){var o=e(this,r),s=o.size;return o.set(r,n),this.size+=o.size==s?0:1,this}return Tf=t,Tf}var Df,i4;function _f(){if(i4)return Df;i4=1;var e=uM(),t=dM(),r=fM(),n=pM(),o=hM();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var u=a[i];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,Df=s,Df}var If,l4;function mM(){if(l4)return If;l4=1;var e=Bi(),t=hf(),r=_f(),n=200;function o(s,a){var i=this.__data__;if(i instanceof e){var l=i.__data__;if(!t||l.length<n-1)return l.push([s,a]),this.size=++i.size,this;i=this.__data__=new r(l)}return i.set(s,a),this.size=i.size,this}return If=o,If}var Af,u4;function c4(){if(u4)return Af;u4=1;var e=Bi(),t=q7(),r=G7(),n=Z7(),o=Y7(),s=mM();function a(i){var l=this.__data__=new e(i);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=s,Af=a,Af}var Nf,d4;function gM(){if(d4)return Nf;d4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Nf=t,Nf}var Mf,f4;function bM(){if(f4)return Mf;f4=1;function e(t){return this.__data__.has(t)}return Mf=e,Mf}var Of,p4;function h4(){if(p4)return Of;p4=1;var e=_f(),t=gM(),r=bM();function n(o){var s=-1,a=o==null?0:o.length;for(this.__data__=new e;++s<a;)this.add(o[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Of=n,Of}var jf,m4;function vM(){if(m4)return jf;m4=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return jf=e,jf}var Ff,g4;function b4(){if(g4)return Ff;g4=1;function e(t,r){return t.has(r)}return Ff=e,Ff}var Bf,v4;function y4(){if(v4)return Bf;v4=1;var e=h4(),t=vM(),r=b4(),n=1,o=2;function s(a,i,l,u,c,d){var p=l&n,h=a.length,m=i.length;if(h!=m&&!(p&&m>h))return!1;var b=d.get(a),v=d.get(i);if(b&&v)return b==i&&v==a;var y=-1,x=!0,w=l&o?new e:void 0;for(d.set(a,i),d.set(i,a);++y<h;){var C=a[y],S=i[y];if(u)var k=p?u(S,C,y,i,a,d):u(C,S,y,a,i,d);if(k!==void 0){if(k)continue;x=!1;break}if(w){if(!t(i,function(D,$){if(!r(w,$)&&(C===D||c(C,D,l,u,d)))return w.push($)})){x=!1;break}}else if(!(C===S||c(C,S,l,u,d))){x=!1;break}}return d.delete(a),d.delete(i),x}return Bf=s,Bf}var zf,x4;function yM(){if(x4)return zf;x4=1;var e=Fr(),t=e.Uint8Array;return zf=t,zf}var Lf,w4;function xM(){if(w4)return Lf;w4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,s){n[++r]=[s,o]}),n}return Lf=e,Lf}var Vf,C4;function Rf(){if(C4)return Vf;C4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return Vf=e,Vf}var Kf,S4;function wM(){if(S4)return Kf;S4=1;var e=zi(),t=yM(),r=vw(),n=y4(),o=xM(),s=Rf(),a=1,i=2,l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Map]",p="[object Number]",h="[object RegExp]",m="[object Set]",b="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,C=w?w.valueOf:void 0;function S(k,D,$,_,N,A,M){switch($){case x:if(k.byteLength!=D.byteLength||k.byteOffset!=D.byteOffset)return!1;k=k.buffer,D=D.buffer;case y:return!(k.byteLength!=D.byteLength||!A(new t(k),new t(D)));case l:case u:case p:return r(+k,+D);case c:return k.name==D.name&&k.message==D.message;case h:case b:return k==D+"";case d:var O=o;case m:var L=_&a;if(O||(O=s),k.size!=D.size&&!L)return!1;var I=M.get(k);if(I)return I==D;_|=i,M.set(k,D);var z=n(O(k),O(D),_,N,A,M);return M.delete(k),z;case v:if(C)return C.call(k)==C.call(D)}return!1}return Kf=S,Kf}var Wf,k4;function CM(){if(k4)return Wf;k4=1;function e(t,r){for(var n=-1,o=r.length,s=t.length;++n<o;)t[s+n]=r[n];return t}return Wf=e,Wf}var Uf,P4;function un(){if(P4)return Uf;P4=1;var e=Array.isArray;return Uf=e,Uf}var Hf,$4;function SM(){if($4)return Hf;$4=1;var e=CM(),t=un();function r(n,o,s){var a=o(n);return t(n)?a:e(a,s(n))}return Hf=r,Hf}var qf,E4;function kM(){if(E4)return qf;E4=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,s=0,a=[];++n<o;){var i=t[n];r(i,n,t)&&(a[s++]=i)}return a}return qf=e,qf}var Gf,T4;function PM(){if(T4)return Gf;T4=1;function e(){return[]}return Gf=e,Gf}var Zf,D4;function $M(){if(D4)return Zf;D4=1;var e=kM(),t=PM(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(i){return n.call(a,i)}))}:t;return Zf=s,Zf}var Yf,_4;function EM(){if(_4)return Yf;_4=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Yf=e,Yf}var Jf,I4;function Ms(){if(I4)return Jf;I4=1;function e(t){return t!=null&&typeof t=="object"}return Jf=e,Jf}var Xf,A4;function TM(){if(A4)return Xf;A4=1;var e=Ns(),t=Ms(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return Xf=n,Xf}var Qf,N4;function M4(){if(N4)return Qf;N4=1;var e=TM(),t=Ms(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!o.call(a,"callee")};return Qf=s,Qf}var Os={exports:{}},ep,O4;function DM(){if(O4)return ep;O4=1;function e(){return!1}return ep=e,ep}Os.exports;var j4;function F4(){return j4||(j4=1,(function(e,t){var r=Fr(),n=DM(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,i=a?r.Buffer:void 0,l=i?i.isBuffer:void 0,u=l||n;e.exports=u})(Os,Os.exports)),Os.exports}var tp,B4;function z4(){if(B4)return tp;B4=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var s=typeof n;return o=o??e,!!o&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return tp=r,tp}var rp,L4;function np(){if(L4)return rp;L4=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return rp=t,rp}var op,V4;function _M(){if(V4)return op;V4=1;var e=Ns(),t=np(),r=Ms(),n="[object Arguments]",o="[object Array]",s="[object Boolean]",a="[object Date]",i="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",d="[object Object]",p="[object RegExp]",h="[object Set]",m="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",D="[object Uint8Array]",$="[object Uint8ClampedArray]",_="[object Uint16Array]",N="[object Uint32Array]",A={};A[x]=A[w]=A[C]=A[S]=A[k]=A[D]=A[$]=A[_]=A[N]=!0,A[n]=A[o]=A[v]=A[s]=A[y]=A[a]=A[i]=A[l]=A[u]=A[c]=A[d]=A[p]=A[h]=A[m]=A[b]=!1;function M(O){return r(O)&&t(O.length)&&!!A[e(O)]}return op=M,op}var sp,R4;function IM(){if(R4)return sp;R4=1;function e(t){return function(r){return t(r)}}return sp=e,sp}var js={exports:{}};js.exports;var K4;function AM(){return K4||(K4=1,(function(e,t){var r=_w(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===n,a=s&&r.process,i=(function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=i})(js,js.exports)),js.exports}var ap,W4;function U4(){if(W4)return ap;W4=1;var e=_M(),t=IM(),r=AM(),n=r&&r.isTypedArray,o=n?t(n):e;return ap=o,ap}var ip,H4;function NM(){if(H4)return ip;H4=1;var e=EM(),t=M4(),r=un(),n=F4(),o=z4(),s=U4(),a=Object.prototype,i=a.hasOwnProperty;function l(u,c){var d=r(u),p=!d&&t(u),h=!d&&!p&&n(u),m=!d&&!p&&!h&&s(u),b=d||p||h||m,v=b?e(u.length,String):[],y=v.length;for(var x in u)(c||i.call(u,x))&&!(b&&(x=="length"||h&&(x=="offset"||x=="parent")||m&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,y)))&&v.push(x);return v}return ip=l,ip}var lp,q4;function MM(){if(q4)return lp;q4=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return lp=t,lp}var up,G4;function OM(){if(G4)return up;G4=1;function e(t,r){return function(n){return t(r(n))}}return up=e,up}var cp,Z4;function jM(){if(Z4)return cp;Z4=1;var e=OM(),t=e(Object.keys,Object);return cp=t,cp}var dp,Y4;function FM(){if(Y4)return dp;Y4=1;var e=MM(),t=jM(),r=Object.prototype,n=r.hasOwnProperty;function o(s){if(!e(s))return t(s);var a=[];for(var i in Object(s))n.call(s,i)&&i!="constructor"&&a.push(i);return a}return dp=o,dp}var fp,J4;function BM(){if(J4)return fp;J4=1;var e=Bw(),t=np();function r(n){return n!=null&&t(n.length)&&!e(n)}return fp=r,fp}var pp,X4;function Q4(){if(X4)return pp;X4=1;var e=NM(),t=FM(),r=BM();function n(o){return r(o)?e(o):t(o)}return pp=n,pp}var hp,eC;function zM(){if(eC)return hp;eC=1;var e=SM(),t=$M(),r=Q4();function n(o){return e(o,r,t)}return hp=n,hp}var mp,tC;function LM(){if(tC)return mp;tC=1;var e=zM(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(s,a,i,l,u,c){var d=i&t,p=e(s),h=p.length,m=e(a),b=m.length;if(h!=b&&!d)return!1;for(var v=h;v--;){var y=p[v];if(!(d?y in a:n.call(a,y)))return!1}var x=c.get(s),w=c.get(a);if(x&&w)return x==a&&w==s;var C=!0;c.set(s,a),c.set(a,s);for(var S=d;++v<h;){y=p[v];var k=s[y],D=a[y];if(l)var $=d?l(D,k,y,a,s,c):l(k,D,y,s,a,c);if(!($===void 0?k===D||u(k,D,i,l,c):$)){C=!1;break}S||(S=y=="constructor")}if(C&&!S){var _=s.constructor,N=a.constructor;_!=N&&"constructor"in s&&"constructor"in a&&!(typeof _=="function"&&_ instanceof _&&typeof N=="function"&&N instanceof N)&&(C=!1)}return c.delete(s),c.delete(a),C}return mp=o,mp}var gp,rC;function VM(){if(rC)return gp;rC=1;var e=Fo(),t=Fr(),r=e(t,"DataView");return gp=r,gp}var bp,nC;function RM(){if(nC)return bp;nC=1;var e=Fo(),t=Fr(),r=e(t,"Promise");return bp=r,bp}var vp,oC;function sC(){if(oC)return vp;oC=1;var e=Fo(),t=Fr(),r=e(t,"Set");return vp=r,vp}var yp,aC;function KM(){if(aC)return yp;aC=1;var e=Fo(),t=Fr(),r=e(t,"WeakMap");return yp=r,yp}var xp,iC;function WM(){if(iC)return xp;iC=1;var e=VM(),t=hf(),r=RM(),n=sC(),o=KM(),s=Ns(),a=Rw(),i="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",d="[object WeakMap]",p="[object DataView]",h=a(e),m=a(t),b=a(r),v=a(n),y=a(o),x=s;return(e&&x(new e(new ArrayBuffer(1)))!=p||t&&x(new t)!=i||r&&x(r.resolve())!=u||n&&x(new n)!=c||o&&x(new o)!=d)&&(x=function(w){var C=s(w),S=C==l?w.constructor:void 0,k=S?a(S):"";if(k)switch(k){case h:return p;case m:return i;case b:return u;case v:return c;case y:return d}return C}),xp=x,xp}var wp,lC;function UM(){if(lC)return wp;lC=1;var e=c4(),t=y4(),r=wM(),n=LM(),o=WM(),s=un(),a=F4(),i=U4(),l=1,u="[object Arguments]",c="[object Array]",d="[object Object]",p=Object.prototype,h=p.hasOwnProperty;function m(b,v,y,x,w,C){var S=s(b),k=s(v),D=S?c:o(b),$=k?c:o(v);D=D==u?d:D,$=$==u?d:$;var _=D==d,N=$==d,A=D==$;if(A&&a(b)){if(!a(v))return!1;S=!0,_=!1}if(A&&!_)return C||(C=new e),S||i(b)?t(b,v,y,x,w,C):r(b,v,D,y,x,w,C);if(!(y&l)){var M=_&&h.call(b,"__wrapped__"),O=N&&h.call(v,"__wrapped__");if(M||O){var L=M?b.value():b,I=O?v.value():v;return C||(C=new e),w(L,I,y,x,C)}}return A?(C||(C=new e),n(b,v,y,x,w,C)):!1}return wp=m,wp}var Cp,uC;function cC(){if(uC)return Cp;uC=1;var e=UM(),t=Ms();function r(n,o,s,a,i){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,s,a,r,i)}return Cp=r,Cp}var Sp,dC;function HM(){if(dC)return Sp;dC=1;var e=c4(),t=cC(),r=1,n=2;function o(s,a,i,l){var u=i.length,c=u,d=!l;if(s==null)return!c;for(s=Object(s);u--;){var p=i[u];if(d&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++u<c;){p=i[u];var h=p[0],m=s[h],b=p[1];if(d&&p[2]){if(m===void 0&&!(h in s))return!1}else{var v=new e;if(l)var y=l(m,b,h,s,a,v);if(!(y===void 0?t(b,m,r|n,l,v):y))return!1}}return!0}return Sp=o,Sp}var kp,fC;function pC(){if(fC)return kp;fC=1;var e=of();function t(r){return r===r&&!e(r)}return kp=t,kp}var Pp,hC;function qM(){if(hC)return Pp;hC=1;var e=pC(),t=Q4();function r(n){for(var o=t(n),s=o.length;s--;){var a=o[s],i=n[a];o[s]=[a,i,e(i)]}return o}return Pp=r,Pp}var $p,mC;function gC(){if(mC)return $p;mC=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return $p=e,$p}var Ep,bC;function GM(){if(bC)return Ep;bC=1;var e=HM(),t=qM(),r=gC();function n(o){var s=t(o);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===o||e(a,o,s)}}return Ep=n,Ep}var Tp,vC;function Dp(){if(vC)return Tp;vC=1;var e=Ns(),t=Ms(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return Tp=n,Tp}var _p,yC;function Ip(){if(yC)return _p;yC=1;var e=un(),t=Dp(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(s,a){if(e(s))return!1;var i=typeof s;return i=="number"||i=="symbol"||i=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return _p=o,_p}var Ap,xC;function ZM(){if(xC)return Ap;xC=1;var e=_f(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var s=function(){var a=arguments,i=o?o.apply(this,a):a[0],l=s.cache;if(l.has(i))return l.get(i);var u=n.apply(this,a);return s.cache=l.set(i,u)||l,u};return s.cache=new(r.Cache||e),s}return r.Cache=e,Ap=r,Ap}var Np,wC;function YM(){if(wC)return Np;wC=1;var e=ZM(),t=500;function r(n){var o=e(n,function(a){return s.size===t&&s.clear(),a}),s=o.cache;return o}return Np=r,Np}var Mp,CC;function JM(){if(CC)return Mp;CC=1;var e=YM(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(t,function(a,i,l,u){s.push(l?u.replace(r,"$1"):i||a)}),s});return Mp=n,Mp}var Op,SC;function XM(){if(SC)return Op;SC=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,s=Array(o);++n<o;)s[n]=r(t[n],n,t);return s}return Op=e,Op}var jp,kC;function QM(){if(kC)return jp;kC=1;var e=zi(),t=XM(),r=un(),n=Dp(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function a(i){if(typeof i=="string")return i;if(r(i))return t(i,a)+"";if(n(i))return s?s.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}return jp=a,jp}var Fp,PC;function e8(){if(PC)return Fp;PC=1;var e=QM();function t(r){return r==null?"":e(r)}return Fp=t,Fp}var Bp,$C;function EC(){if($C)return Bp;$C=1;var e=un(),t=Ip(),r=JM(),n=e8();function o(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return Bp=o,Bp}var zp,TC;function Ri(){if(TC)return zp;TC=1;var e=Dp();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return zp=t,zp}var Lp,DC;function _C(){if(DC)return Lp;DC=1;var e=EC(),t=Ri();function r(n,o){o=e(o,n);for(var s=0,a=o.length;n!=null&&s<a;)n=n[t(o[s++])];return s&&s==a?n:void 0}return Lp=r,Lp}var Vp,IC;function t8(){if(IC)return Vp;IC=1;var e=_C();function t(r,n,o){var s=r==null?void 0:e(r,n);return s===void 0?o:s}return Vp=t,Vp}var Rp,AC;function r8(){if(AC)return Rp;AC=1;function e(t,r){return t!=null&&r in Object(t)}return Rp=e,Rp}var Kp,NC;function n8(){if(NC)return Kp;NC=1;var e=EC(),t=M4(),r=un(),n=z4(),o=np(),s=Ri();function a(i,l,u){l=e(l,i);for(var c=-1,d=l.length,p=!1;++c<d;){var h=s(l[c]);if(!(p=i!=null&&u(i,h)))break;i=i[h]}return p||++c!=d?p:(d=i==null?0:i.length,!!d&&o(d)&&n(h,d)&&(r(i)||t(i)))}return Kp=a,Kp}var Wp,MC;function o8(){if(MC)return Wp;MC=1;var e=r8(),t=n8();function r(n,o){return n!=null&&t(n,o,e)}return Wp=r,Wp}var Up,OC;function s8(){if(OC)return Up;OC=1;var e=cC(),t=t8(),r=o8(),n=Ip(),o=pC(),s=gC(),a=Ri(),i=1,l=2;function u(c,d){return n(c)&&o(d)?s(a(c),d):function(p){var h=t(p,c);return h===void 0&&h===d?r(p,c):e(d,h,i|l)}}return Up=u,Up}var Hp,jC;function a8(){if(jC)return Hp;jC=1;function e(t){return t}return Hp=e,Hp}var qp,FC;function i8(){if(FC)return qp;FC=1;function e(t){return function(r){return r?.[t]}}return qp=e,qp}var Gp,BC;function l8(){if(BC)return Gp;BC=1;var e=_C();function t(r){return function(n){return e(n,r)}}return Gp=t,Gp}var Zp,zC;function u8(){if(zC)return Zp;zC=1;var e=i8(),t=l8(),r=Ip(),n=Ri();function o(s){return r(s)?e(n(s)):t(s)}return Zp=o,Zp}var Yp,LC;function c8(){if(LC)return Yp;LC=1;var e=GM(),t=s8(),r=a8(),n=un(),o=u8();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):o(a)}return Yp=s,Yp}var Jp,VC;function d8(){if(VC)return Jp;VC=1;function e(t,r,n,o){for(var s=t.length,a=n+(o?1:-1);o?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return Jp=e,Jp}var Xp,RC;function f8(){if(RC)return Xp;RC=1;function e(t){return t!==t}return Xp=e,Xp}var Qp,KC;function p8(){if(KC)return Qp;KC=1;function e(t,r,n){for(var o=n-1,s=t.length;++o<s;)if(t[o]===r)return o;return-1}return Qp=e,Qp}var eh,WC;function h8(){if(WC)return eh;WC=1;var e=d8(),t=f8(),r=p8();function n(o,s,a){return s===s?r(o,s,a):e(o,t,a)}return eh=n,eh}var th,UC;function m8(){if(UC)return th;UC=1;var e=h8();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return th=t,th}var rh,HC;function g8(){if(HC)return rh;HC=1;function e(t,r,n){for(var o=-1,s=t==null?0:t.length;++o<s;)if(n(r,t[o]))return!0;return!1}return rh=e,rh}var nh,qC;function b8(){if(qC)return nh;qC=1;function e(){}return nh=e,nh}var oh,GC;function v8(){if(GC)return oh;GC=1;var e=sC(),t=b8(),r=Rf(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(s){return new e(s)}:t;return oh=o,oh}var sh,ZC;function y8(){if(ZC)return sh;ZC=1;var e=h4(),t=m8(),r=g8(),n=b4(),o=v8(),s=Rf(),a=200;function i(l,u,c){var d=-1,p=t,h=l.length,m=!0,b=[],v=b;if(c)m=!1,p=r;else if(h>=a){var y=u?null:o(l);if(y)return s(y);m=!1,p=n,v=new e}else v=u?[]:b;e:for(;++d<h;){var x=l[d],w=u?u(x):x;if(x=c||x!==0?x:0,m&&w===w){for(var C=v.length;C--;)if(v[C]===w)continue e;u&&v.push(w),b.push(x)}else p(v,w,c)||(v!==b&&v.push(w),b.push(x))}return b}return sh=i,sh}var ah,YC;function x8(){if(YC)return ah;YC=1;var e=c8(),t=y8();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return ah=r,ah}var w8=x8();const C8=rm(w8);function ih(e,t){return r=>{const n=r.distinctProperties.find(o=>o.key===e);return!!n&&n.option.slug===t}}function S8(e,t){return e?.map(r=>{const n=C8(r.options.filter(o=>t.some(ih(r.key,o.slug))),"slug");return{...r,options:n}})}function k8(e,t){const r=e?.find(s=>s.key==="color")?.options,o=e?.find(s=>s.key==="internal_storage")?.options?.flatMap(s=>r?.map(a=>({internalStorage:s,color:a}))??[]);return o?o.filter(s=>t.find(a=>ih("internal_storage",s.internalStorage.slug)(a)&&ih("color",s.color.slug)(a)&&["AVAILABLE","AVAILABLE_IF_STOCK"].includes(a.status||""))):[]}function P8(e){return e?[e.sort((t,r)=>t.key==="internal_storage"?-1:r.key==="internal_storage"?1:0).map(t=>t.option.slug).join(":")]:[]}function $8(e,t){return e.split(":").map(r=>{const n=t.find(s=>s.options.some(a=>a.slug===r)),o=n?.options.find(s=>s.slug===r);if(!(!n||!o))return{key:n.key,label:n.label,option:o}}).filter(r=>r!==void 0)}function JC({colorHex:e,storage:t,color:r}){const n=e&&/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),o=n?e:"#E5E7EB",s=[t,r].filter(Boolean).join(" • ")||"";return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-3 h-3 rounded-full shrink-0 border",style:{backgroundColor:o,borderColor:n?`color-mix(in srgb, ${o} 80%, black)`:"#D1D5DB"}}),f.jsx("span",{className:"text-sm text-foreground-600 truncate",children:s})]})}function E8({disabled:e,versions:t,onSelectionChange:r,classNames:n,distinctProperties:o,selectedDistinctProperties:s,selectedPhone:a,ref:i}){const l=S8(o,t),u=k8(l,t),{popoverProps:c}=on(),[d,p]=g.useState(!1),{productVersion:h}=Bd(a?.slug,s);return a?f.jsx(Nd,{className:P("shrink-0 scroll-mt-4",n?.base),ref:i,children:f.jsxs(C1,{className:P("space-y-3 overflow-hidden",n?.cardBody),children:[f.jsxs("div",{className:"flex items-center gap-3",children:[h?.media.main?.url?f.jsx(Ss,{alt:h.media.main.altText||a.fullName,src:Rc(h.media.main.url,64,64),size:"md",radius:"full",color:"primary",classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}):f.jsx(Ss,{size:"md",radius:"full",color:"primary",showFallback:!0,fallback:f.jsx(eu,{size:24,className:"text-primary"}),classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}),f.jsx("span",{className:"text-sm font-medium",children:a.fullName})]}),f.jsx(As,{variant:"bordered",placeholder:"Kies een versie","aria-label":"Kies een telefoon versie",isOpen:d,onOpenChange:m=>m!==d&&p(m),isDisabled:e,popoverProps:c,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:P8(s),radius:"sm",renderValue:m=>m.map(b=>{const v=u.find(y=>[y.internalStorage.slug,y.color.slug].join(":")===b.key);return f.jsx(JC,{colorHex:v?.color?.hex,storage:v?.internalStorage?.label,color:v?.color?.label},b.key)}),classNames:{...n,trigger:P("cursor-pointer border-small",n?.trigger)},children:u.map(m=>{const{color:b,internalStorage:v}=m;if(!b||!v)return null;const y=[v.slug,b.slug].join(":");return f.jsx(_n,{variant:"flat",textValue:`${v.label} • ${b.label}`,onClick:()=>{r($8(y,l||[])),p(!1)},children:f.jsx(JC,{colorHex:b.hex,storage:v.label,color:b.label})},[v.slug,b.slug].join(":"))})})]})}):null}function T8({isOpen:e,onOpenChange:t,onConfirm:r,classNames:n,brandSlug:o,phoneSlug:s,distinctProperties:a}){const{t:i}=Oe(),{popularPhones:l,brands:u}=eN(),{popoverProps:c}=on(),d=g.useRef(null),[p,h]=g.useState(o||"popular"),[m,b]=g.useState(s),[v,y]=g.useState(a);g.useEffect(()=>{e&&(h(o||"popular"),b(s),y(a))},[e,o,s,a]);const x=$=>{b($),y(void 0),setTimeout(()=>{d.current&&d.current.scrollIntoView({behavior:"smooth"})},0)},{phones:w,isLoading:C}=JA(p),k=g.useMemo(()=>[...l,...w],[l,w]).find($=>$.slug===m),D=()=>{const $=v||k?.productVersion?.distinctProperties;!m||!$||r(m,$)};return f.jsx($o,{isOpen:e,onOpenChange:t,placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:c.portalContainer,classNames:{backdrop:P(n?.modal?.backdrop),wrapper:P(n?.modal?.wrapper),base:P("h-[90vh] sm:h-[80vh]",n?.modal?.base),header:P(n?.modal?.header),body:P(n?.modal?.body),footer:P(n?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",n?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:i("phoneSelector.selectPhone")}),f.jsxs(So,{children:[f.jsx(E8,{ref:d,disabled:!k,versions:k?.productVersions||[],distinctProperties:k?.distinctProperties,selectedDistinctProperties:v||k?.productVersion?.distinctProperties,onSelectionChange:y,selectedPhone:k,classNames:n?.variantList}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(DN,{brands:u,selectedBrandSlug:p,onBrandChange:$=>h($),classNames:n?.brandTabs}),f.jsx(u7,{isLoading:C&&p!=="popular",phones:p==="popular"?l:w,selectedPhoneSlug:m,onPhoneSelect:x,classNames:n?.phoneList})]})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium disabled:opacity-50 disabled:pointer-events-none",n?.confirmButton),onPress:D,color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,disabled:!m,children:i("common.confirm")})})]})})}function D8({onChange:e,classNames:t,disabled:r=!1,productSlug:n,selectedDistinctProperties:o=[]}){const{t:s}=Oe(),[a,i]=g.useState(!1),[l,u]=g.useState(n),[c,d]=g.useState(o),{product:p,productVersion:h}=Bd(l,c);g.useEffect(()=>{u(n)},[n]);function m(y,x){u(y),d(x),e?.(y,x),i(!1)}function b(){r||i(!0)}const v=[h?.distinctProperty?.internalStorage?.label,h?.distinctProperty?.color?.label].filter(Boolean).join(" • ");return f.jsxs(f.Fragment,{children:[f.jsx(pi,{disabled:r,onClick:b,selected:!!h,imageUrl:h?.media?.main?.url,imageAlt:h?.media?.main?.altText,title:p?p.fullName:s("phoneSelector.phone"),description:h?v:s("phoneSelector.selectPhone"),Icon:eu}),f.jsx(T8,{isOpen:a,onOpenChange:i,phoneSlug:l,brandSlug:p?.brand.slug,distinctProperties:c,onConfirm:m,classNames:t})]})}function _8(e){const[t,r]=pt(e,Fm.variantKeys),{as:n,title:o,children:s,description:a,onClose:i,isClosable:l,ref:u,icon:c,startContent:d,endContent:p,isVisible:h,isDefaultVisible:m,onVisibleChange:b,closeButtonProps:v={size:"sm"},className:y,classNames:x,...w}=t,[C,S]=hr(h,m??!0,b),D=typeof(n||"div")=="string",$=Pe(u),_=g.useCallback(()=>{S(!1),i?.()},[S,i]),N=P(x?.base,y),A=g.useMemo(()=>Fm({hasContent:!Kr(a)||!Kr(s),...r}),[a,ft(r)]),M=g.useCallback(()=>({"data-visible":H(C),"data-closeable":H(l),"data-has-title":H(!Kr(o)),"data-has-description":H(!Kr(a)),...ie(Fe(w,{enabled:D}),Fe(t)),className:A.base({class:N})}),[A,N]),O=g.useCallback(()=>({className:A.mainWrapper({class:x?.mainWrapper})}),[A,x?.mainWrapper]),L=g.useCallback(()=>({className:A.description({class:x?.description})}),[A,x?.description]),I=g.useCallback(()=>({className:A.title({class:x?.title})}),[A,x?.title]),z=g.useCallback(()=>({...v,className:A.closeButton({class:x?.closeButton})}),[A,x?.closeButton]),F=g.useCallback(()=>({className:A.alertIcon({class:x?.alertIcon})}),[A,x?.alertIcon]),B=g.useCallback(()=>({className:A.iconWrapper({class:x?.iconWrapper})}),[A,x?.iconWrapper]);return{title:o,icon:c,children:s,description:a,isClosable:l,domRef:$,endContent:p,startContent:d,getBaseProps:M,getMainWrapperProps:O,getDescriptionProps:L,getTitleProps:I,color:r.color,getCloseButtonProps:z,handleClose:_,isVisible:C,onClose:i,getAlertIconProps:F,getIconWrapperProps:B}}var XC={primary:Ky,secondary:Ky,success:lI,warning:uI,danger:cI},QC=Se((e,t)=>{const{title:r,icon:n,children:o,description:s,endContent:a,startContent:i,isClosable:l,domRef:u,handleClose:c,getBaseProps:d,getMainWrapperProps:p,getDescriptionProps:h,getTitleProps:m,getCloseButtonProps:b,color:v,isVisible:y,onClose:x,getAlertIconProps:w,getIconWrapperProps:C}=_8({...e,ref:t});if(!y)return null;const S=n&&g.isValidElement(n)?g.cloneElement(n,w()):null,k=XC[v]||XC.primary;return f.jsxs("div",{ref:u,role:"alert",...d(),children:[i,f.jsx("div",{...C(),children:S||f.jsx(k,{...w()})}),f.jsxs("div",{...p(),children:[!Kr(r)&&f.jsx("div",{...m(),children:r}),!Kr(s)&&f.jsx("div",{...h(),children:s}),o]}),a,(l||x)&&f.jsx(Ht,{isIconOnly:!0,"aria-label":"Close",radius:"full",variant:"light",onPress:c,...b(),children:f.jsx(Wy,{height:20,width:20})})]})});QC.displayName="HeroUI.Alert";var lh=QC;const e2=g.createContext({});function I8({children:e,classNames:t={}}){return f.jsx(e2,{value:t,children:e})}function nt(){return g.useContext(e2)}function A8(){const{errorAlert:e}=nt();return f.jsx("div",{className:P(e?.base),children:f.jsx(lh,{color:"danger",variant:"faded",title:"Er is een fout opgetreden",description:"Er ging iets mis bij het laden van de gegevens. Probeer de pagina te vernieuwen.",hideIconWrapper:!0,endContent:f.jsx(Ht,{color:"danger",onPress:()=>window.location.reload(),className:P("font-medium ml-3",e?.button),radius:"full",disableAnimation:!0,disableRipple:!0,children:"Vernieuwen"}),classNames:{base:P(e?.alert?.base),title:P(e?.alert?.title),description:P(e?.alert?.description),mainWrapper:P(e?.alert?.mainWrapper),closeButton:P(e?.alert?.closeButton),iconWrapper:P(e?.alert?.iconWrapper),alertIcon:P(e?.alert?.alertIcon)}})})}class N8 extends g.Component{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){this.props.onError?.(t)}render(){return this.state.hasError?this.props.fallback??f.jsx(A8,{}):this.props.children}}function M8(e,t){const r=new Set(e.map(o=>o.slug)),n=t.filter(o=>!r.has(o.slug));return[...e,...n]}function uh({selectedFilters:e,defaultFilters:t,requiredFilters:r,removedDefaultFilters:n}){const o=t.filter(i=>!n.has(i.slug)),a=[...M8(e,o),...r].reduce((i,l)=>(i.set(l.slug,l),i),new Map);return Array.from(a.values())}const t2=g.createContext({onAction:e=>{}});function O8({children:e,onAction:t}){const r=g.useCallback(n=>t?.(n),[t]);return f.jsx(t2,{value:{onAction:r},children:e})}function Bo(){return g.useContext(t2)}const Gt=2147483647;function Zt(e){if(!e||typeof e!="string")return{to:void 0,from:void 0};const[t,r]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:r}:Number.isNaN(r)?{from:t}:{from:t,to:r}}const r2=g.createContext({activeFilters:[],filterOptions:[],sortOptions:[],distinctProperties:[],setDistinctProperties:e=>{},handleFilterChange:e=>{},handleFilterRemove:e=>{},getActiveFilterValue:e=>[]});function zo(e,t){return e.find(r=>r.slug===t)}function vr(e,t){return e.find(r=>r.slug===t)?.value}const j8=Le`
|
|
257
|
+
`;function Bd(e,t){const r=t?.map(a=>({key:a.key,value:a.option.key})),{data:n,error:o,isLoading:s}=En(e&&r?.length?[R7,{slug:e,properties:r}]:null,{use:[Or],fetcher:qt});return!e||!r?{isLoading:!1,error:null}:{product:n?.product,productVersion:n?.product?.productVersion,isLoading:s,error:o}}var zd,bw;function K7(){if(bw)return zd;bw=1;function e(){this.__data__=[],this.size=0}return zd=e,zd}var Ld,vw;function yw(){if(vw)return Ld;vw=1;function e(t,r){return t===r||t!==t&&r!==r}return Ld=e,Ld}var Vd,xw;function Fi(){if(xw)return Vd;xw=1;var e=yw();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Vd=t,Vd}var Rd,ww;function W7(){if(ww)return Rd;ww=1;var e=Fi(),t=Array.prototype,r=t.splice;function n(o){var s=this.__data__,a=e(s,o);if(a<0)return!1;var i=s.length-1;return a==i?s.pop():r.call(s,a,1),--this.size,!0}return Rd=n,Rd}var Kd,Cw;function U7(){if(Cw)return Kd;Cw=1;var e=Fi();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return Kd=t,Kd}var Wd,Sw;function H7(){if(Sw)return Wd;Sw=1;var e=Fi();function t(r){return e(this.__data__,r)>-1}return Wd=t,Wd}var Ud,kw;function q7(){if(kw)return Ud;kw=1;var e=Fi();function t(r,n){var o=this.__data__,s=e(o,r);return s<0?(++this.size,o.push([r,n])):o[s][1]=n,this}return Ud=t,Ud}var Hd,Pw;function Bi(){if(Pw)return Hd;Pw=1;var e=K7(),t=W7(),r=U7(),n=H7(),o=q7();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var u=a[i];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,Hd=s,Hd}var qd,$w;function G7(){if($w)return qd;$w=1;var e=Bi();function t(){this.__data__=new e,this.size=0}return qd=t,qd}var Gd,Ew;function Z7(){if(Ew)return Gd;Ew=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Gd=e,Gd}var Zd,Tw;function Y7(){if(Tw)return Zd;Tw=1;function e(t){return this.__data__.get(t)}return Zd=e,Zd}var Yd,Dw;function J7(){if(Dw)return Yd;Dw=1;function e(t){return this.__data__.has(t)}return Yd=e,Yd}var Jd,_w;function Iw(){if(_w)return Jd;_w=1;var e=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs;return Jd=e,Jd}var Xd,Aw;function Fr(){if(Aw)return Xd;Aw=1;var e=Iw(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xd=r,Xd}var Qd,Nw;function zi(){if(Nw)return Qd;Nw=1;var e=Fr(),t=e.Symbol;return Qd=t,Qd}var ef,Mw;function X7(){if(Mw)return ef;Mw=1;var e=zi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function s(a){var i=r.call(a,o),l=a[o];try{a[o]=void 0;var u=!0}catch{}var c=n.call(a);return u&&(i?a[o]=l:delete a[o]),c}return ef=s,ef}var tf,Ow;function Q7(){if(Ow)return tf;Ow=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return tf=r,tf}var rf,jw;function Ns(){if(jw)return rf;jw=1;var e=zi(),t=X7(),r=Q7(),n="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function a(i){return i==null?i===void 0?o:n:s&&s in Object(i)?t(i):r(i)}return rf=a,rf}var nf,Fw;function of(){if(Fw)return nf;Fw=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return nf=e,nf}var sf,Bw;function zw(){if(Bw)return sf;Bw=1;var e=Ns(),t=of(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function a(i){if(!t(i))return!1;var l=e(i);return l==n||l==o||l==r||l==s}return sf=a,sf}var af,Lw;function eM(){if(Lw)return af;Lw=1;var e=Fr(),t=e["__core-js_shared__"];return af=t,af}var lf,Vw;function tM(){if(Vw)return lf;Vw=1;var e=eM(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return lf=r,lf}var uf,Rw;function Kw(){if(Rw)return uf;Rw=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uf=r,uf}var cf,Ww;function rM(){if(Ww)return cf;Ww=1;var e=zw(),t=tM(),r=of(),n=Kw(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,i=Object.prototype,l=a.toString,u=i.hasOwnProperty,c=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!r(p)||t(p))return!1;var h=e(p)?c:s;return h.test(n(p))}return cf=d,cf}var df,Uw;function nM(){if(Uw)return df;Uw=1;function e(t,r){return t?.[r]}return df=e,df}var ff,Hw;function Fo(){if(Hw)return ff;Hw=1;var e=rM(),t=nM();function r(n,o){var s=t(n,o);return e(s)?s:void 0}return ff=r,ff}var pf,qw;function hf(){if(qw)return pf;qw=1;var e=Fo(),t=Fr(),r=e(t,"Map");return pf=r,pf}var mf,Gw;function Li(){if(Gw)return mf;Gw=1;var e=Fo(),t=e(Object,"create");return mf=t,mf}var gf,Zw;function oM(){if(Zw)return gf;Zw=1;var e=Li();function t(){this.__data__=e?e(null):{},this.size=0}return gf=t,gf}var bf,Yw;function sM(){if(Yw)return bf;Yw=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return bf=e,bf}var vf,Jw;function aM(){if(Jw)return vf;Jw=1;var e=Li(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(s){var a=this.__data__;if(e){var i=a[s];return i===t?void 0:i}return n.call(a,s)?a[s]:void 0}return vf=o,vf}var yf,Xw;function iM(){if(Xw)return yf;Xw=1;var e=Li(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var s=this.__data__;return e?s[o]!==void 0:r.call(s,o)}return yf=n,yf}var xf,Qw;function lM(){if(Qw)return xf;Qw=1;var e=Li(),t="__lodash_hash_undefined__";function r(n,o){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&o===void 0?t:o,this}return xf=r,xf}var wf,e4;function uM(){if(e4)return wf;e4=1;var e=oM(),t=sM(),r=aM(),n=iM(),o=lM();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var u=a[i];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,wf=s,wf}var Cf,t4;function cM(){if(t4)return Cf;t4=1;var e=uM(),t=Bi(),r=hf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Cf=n,Cf}var Sf,r4;function dM(){if(r4)return Sf;r4=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Sf=e,Sf}var kf,n4;function Vi(){if(n4)return kf;n4=1;var e=dM();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return kf=t,kf}var Pf,o4;function fM(){if(o4)return Pf;o4=1;var e=Vi();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Pf=t,Pf}var $f,s4;function pM(){if(s4)return $f;s4=1;var e=Vi();function t(r){return e(this,r).get(r)}return $f=t,$f}var Ef,a4;function hM(){if(a4)return Ef;a4=1;var e=Vi();function t(r){return e(this,r).has(r)}return Ef=t,Ef}var Tf,i4;function mM(){if(i4)return Tf;i4=1;var e=Vi();function t(r,n){var o=e(this,r),s=o.size;return o.set(r,n),this.size+=o.size==s?0:1,this}return Tf=t,Tf}var Df,l4;function _f(){if(l4)return Df;l4=1;var e=cM(),t=fM(),r=pM(),n=hM(),o=mM();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var u=a[i];this.set(u[0],u[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,Df=s,Df}var If,u4;function gM(){if(u4)return If;u4=1;var e=Bi(),t=hf(),r=_f(),n=200;function o(s,a){var i=this.__data__;if(i instanceof e){var l=i.__data__;if(!t||l.length<n-1)return l.push([s,a]),this.size=++i.size,this;i=this.__data__=new r(l)}return i.set(s,a),this.size=i.size,this}return If=o,If}var Af,c4;function d4(){if(c4)return Af;c4=1;var e=Bi(),t=G7(),r=Z7(),n=Y7(),o=J7(),s=gM();function a(i){var l=this.__data__=new e(i);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=s,Af=a,Af}var Nf,f4;function bM(){if(f4)return Nf;f4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Nf=t,Nf}var Mf,p4;function vM(){if(p4)return Mf;p4=1;function e(t){return this.__data__.has(t)}return Mf=e,Mf}var Of,h4;function m4(){if(h4)return Of;h4=1;var e=_f(),t=bM(),r=vM();function n(o){var s=-1,a=o==null?0:o.length;for(this.__data__=new e;++s<a;)this.add(o[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Of=n,Of}var jf,g4;function yM(){if(g4)return jf;g4=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return jf=e,jf}var Ff,b4;function v4(){if(b4)return Ff;b4=1;function e(t,r){return t.has(r)}return Ff=e,Ff}var Bf,y4;function x4(){if(y4)return Bf;y4=1;var e=m4(),t=yM(),r=v4(),n=1,o=2;function s(a,i,l,u,c,d){var p=l&n,h=a.length,m=i.length;if(h!=m&&!(p&&m>h))return!1;var b=d.get(a),v=d.get(i);if(b&&v)return b==i&&v==a;var y=-1,x=!0,w=l&o?new e:void 0;for(d.set(a,i),d.set(i,a);++y<h;){var C=a[y],S=i[y];if(u)var k=p?u(S,C,y,i,a,d):u(C,S,y,a,i,d);if(k!==void 0){if(k)continue;x=!1;break}if(w){if(!t(i,function(D,$){if(!r(w,$)&&(C===D||c(C,D,l,u,d)))return w.push($)})){x=!1;break}}else if(!(C===S||c(C,S,l,u,d))){x=!1;break}}return d.delete(a),d.delete(i),x}return Bf=s,Bf}var zf,w4;function xM(){if(w4)return zf;w4=1;var e=Fr(),t=e.Uint8Array;return zf=t,zf}var Lf,C4;function wM(){if(C4)return Lf;C4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,s){n[++r]=[s,o]}),n}return Lf=e,Lf}var Vf,S4;function Rf(){if(S4)return Vf;S4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return Vf=e,Vf}var Kf,k4;function CM(){if(k4)return Kf;k4=1;var e=zi(),t=xM(),r=yw(),n=x4(),o=wM(),s=Rf(),a=1,i=2,l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Map]",p="[object Number]",h="[object RegExp]",m="[object Set]",b="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,C=w?w.valueOf:void 0;function S(k,D,$,_,N,A,M){switch($){case x:if(k.byteLength!=D.byteLength||k.byteOffset!=D.byteOffset)return!1;k=k.buffer,D=D.buffer;case y:return!(k.byteLength!=D.byteLength||!A(new t(k),new t(D)));case l:case u:case p:return r(+k,+D);case c:return k.name==D.name&&k.message==D.message;case h:case b:return k==D+"";case d:var O=o;case m:var L=_&a;if(O||(O=s),k.size!=D.size&&!L)return!1;var I=M.get(k);if(I)return I==D;_|=i,M.set(k,D);var z=n(O(k),O(D),_,N,A,M);return M.delete(k),z;case v:if(C)return C.call(k)==C.call(D)}return!1}return Kf=S,Kf}var Wf,P4;function SM(){if(P4)return Wf;P4=1;function e(t,r){for(var n=-1,o=r.length,s=t.length;++n<o;)t[s+n]=r[n];return t}return Wf=e,Wf}var Uf,$4;function un(){if($4)return Uf;$4=1;var e=Array.isArray;return Uf=e,Uf}var Hf,E4;function kM(){if(E4)return Hf;E4=1;var e=SM(),t=un();function r(n,o,s){var a=o(n);return t(n)?a:e(a,s(n))}return Hf=r,Hf}var qf,T4;function PM(){if(T4)return qf;T4=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,s=0,a=[];++n<o;){var i=t[n];r(i,n,t)&&(a[s++]=i)}return a}return qf=e,qf}var Gf,D4;function $M(){if(D4)return Gf;D4=1;function e(){return[]}return Gf=e,Gf}var Zf,_4;function EM(){if(_4)return Zf;_4=1;var e=PM(),t=$M(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(i){return n.call(a,i)}))}:t;return Zf=s,Zf}var Yf,I4;function TM(){if(I4)return Yf;I4=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Yf=e,Yf}var Jf,A4;function Ms(){if(A4)return Jf;A4=1;function e(t){return t!=null&&typeof t=="object"}return Jf=e,Jf}var Xf,N4;function DM(){if(N4)return Xf;N4=1;var e=Ns(),t=Ms(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return Xf=n,Xf}var Qf,M4;function O4(){if(M4)return Qf;M4=1;var e=DM(),t=Ms(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!o.call(a,"callee")};return Qf=s,Qf}var Os={exports:{}},ep,j4;function _M(){if(j4)return ep;j4=1;function e(){return!1}return ep=e,ep}Os.exports;var F4;function B4(){return F4||(F4=1,(function(e,t){var r=Fr(),n=_M(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,i=a?r.Buffer:void 0,l=i?i.isBuffer:void 0,u=l||n;e.exports=u})(Os,Os.exports)),Os.exports}var tp,z4;function L4(){if(z4)return tp;z4=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var s=typeof n;return o=o??e,!!o&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return tp=r,tp}var rp,V4;function np(){if(V4)return rp;V4=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return rp=t,rp}var op,R4;function IM(){if(R4)return op;R4=1;var e=Ns(),t=np(),r=Ms(),n="[object Arguments]",o="[object Array]",s="[object Boolean]",a="[object Date]",i="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",d="[object Object]",p="[object RegExp]",h="[object Set]",m="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",D="[object Uint8Array]",$="[object Uint8ClampedArray]",_="[object Uint16Array]",N="[object Uint32Array]",A={};A[x]=A[w]=A[C]=A[S]=A[k]=A[D]=A[$]=A[_]=A[N]=!0,A[n]=A[o]=A[v]=A[s]=A[y]=A[a]=A[i]=A[l]=A[u]=A[c]=A[d]=A[p]=A[h]=A[m]=A[b]=!1;function M(O){return r(O)&&t(O.length)&&!!A[e(O)]}return op=M,op}var sp,K4;function AM(){if(K4)return sp;K4=1;function e(t){return function(r){return t(r)}}return sp=e,sp}var js={exports:{}};js.exports;var W4;function NM(){return W4||(W4=1,(function(e,t){var r=Iw(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===n,a=s&&r.process,i=(function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=i})(js,js.exports)),js.exports}var ap,U4;function H4(){if(U4)return ap;U4=1;var e=IM(),t=AM(),r=NM(),n=r&&r.isTypedArray,o=n?t(n):e;return ap=o,ap}var ip,q4;function MM(){if(q4)return ip;q4=1;var e=TM(),t=O4(),r=un(),n=B4(),o=L4(),s=H4(),a=Object.prototype,i=a.hasOwnProperty;function l(u,c){var d=r(u),p=!d&&t(u),h=!d&&!p&&n(u),m=!d&&!p&&!h&&s(u),b=d||p||h||m,v=b?e(u.length,String):[],y=v.length;for(var x in u)(c||i.call(u,x))&&!(b&&(x=="length"||h&&(x=="offset"||x=="parent")||m&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,y)))&&v.push(x);return v}return ip=l,ip}var lp,G4;function OM(){if(G4)return lp;G4=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return lp=t,lp}var up,Z4;function jM(){if(Z4)return up;Z4=1;function e(t,r){return function(n){return t(r(n))}}return up=e,up}var cp,Y4;function FM(){if(Y4)return cp;Y4=1;var e=jM(),t=e(Object.keys,Object);return cp=t,cp}var dp,J4;function BM(){if(J4)return dp;J4=1;var e=OM(),t=FM(),r=Object.prototype,n=r.hasOwnProperty;function o(s){if(!e(s))return t(s);var a=[];for(var i in Object(s))n.call(s,i)&&i!="constructor"&&a.push(i);return a}return dp=o,dp}var fp,X4;function zM(){if(X4)return fp;X4=1;var e=zw(),t=np();function r(n){return n!=null&&t(n.length)&&!e(n)}return fp=r,fp}var pp,Q4;function eC(){if(Q4)return pp;Q4=1;var e=MM(),t=BM(),r=zM();function n(o){return r(o)?e(o):t(o)}return pp=n,pp}var hp,tC;function LM(){if(tC)return hp;tC=1;var e=kM(),t=EM(),r=eC();function n(o){return e(o,r,t)}return hp=n,hp}var mp,rC;function VM(){if(rC)return mp;rC=1;var e=LM(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(s,a,i,l,u,c){var d=i&t,p=e(s),h=p.length,m=e(a),b=m.length;if(h!=b&&!d)return!1;for(var v=h;v--;){var y=p[v];if(!(d?y in a:n.call(a,y)))return!1}var x=c.get(s),w=c.get(a);if(x&&w)return x==a&&w==s;var C=!0;c.set(s,a),c.set(a,s);for(var S=d;++v<h;){y=p[v];var k=s[y],D=a[y];if(l)var $=d?l(D,k,y,a,s,c):l(k,D,y,s,a,c);if(!($===void 0?k===D||u(k,D,i,l,c):$)){C=!1;break}S||(S=y=="constructor")}if(C&&!S){var _=s.constructor,N=a.constructor;_!=N&&"constructor"in s&&"constructor"in a&&!(typeof _=="function"&&_ instanceof _&&typeof N=="function"&&N instanceof N)&&(C=!1)}return c.delete(s),c.delete(a),C}return mp=o,mp}var gp,nC;function RM(){if(nC)return gp;nC=1;var e=Fo(),t=Fr(),r=e(t,"DataView");return gp=r,gp}var bp,oC;function KM(){if(oC)return bp;oC=1;var e=Fo(),t=Fr(),r=e(t,"Promise");return bp=r,bp}var vp,sC;function aC(){if(sC)return vp;sC=1;var e=Fo(),t=Fr(),r=e(t,"Set");return vp=r,vp}var yp,iC;function WM(){if(iC)return yp;iC=1;var e=Fo(),t=Fr(),r=e(t,"WeakMap");return yp=r,yp}var xp,lC;function UM(){if(lC)return xp;lC=1;var e=RM(),t=hf(),r=KM(),n=aC(),o=WM(),s=Ns(),a=Kw(),i="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",d="[object WeakMap]",p="[object DataView]",h=a(e),m=a(t),b=a(r),v=a(n),y=a(o),x=s;return(e&&x(new e(new ArrayBuffer(1)))!=p||t&&x(new t)!=i||r&&x(r.resolve())!=u||n&&x(new n)!=c||o&&x(new o)!=d)&&(x=function(w){var C=s(w),S=C==l?w.constructor:void 0,k=S?a(S):"";if(k)switch(k){case h:return p;case m:return i;case b:return u;case v:return c;case y:return d}return C}),xp=x,xp}var wp,uC;function HM(){if(uC)return wp;uC=1;var e=d4(),t=x4(),r=CM(),n=VM(),o=UM(),s=un(),a=B4(),i=H4(),l=1,u="[object Arguments]",c="[object Array]",d="[object Object]",p=Object.prototype,h=p.hasOwnProperty;function m(b,v,y,x,w,C){var S=s(b),k=s(v),D=S?c:o(b),$=k?c:o(v);D=D==u?d:D,$=$==u?d:$;var _=D==d,N=$==d,A=D==$;if(A&&a(b)){if(!a(v))return!1;S=!0,_=!1}if(A&&!_)return C||(C=new e),S||i(b)?t(b,v,y,x,w,C):r(b,v,D,y,x,w,C);if(!(y&l)){var M=_&&h.call(b,"__wrapped__"),O=N&&h.call(v,"__wrapped__");if(M||O){var L=M?b.value():b,I=O?v.value():v;return C||(C=new e),w(L,I,y,x,C)}}return A?(C||(C=new e),n(b,v,y,x,w,C)):!1}return wp=m,wp}var Cp,cC;function dC(){if(cC)return Cp;cC=1;var e=HM(),t=Ms();function r(n,o,s,a,i){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,s,a,r,i)}return Cp=r,Cp}var Sp,fC;function qM(){if(fC)return Sp;fC=1;var e=d4(),t=dC(),r=1,n=2;function o(s,a,i,l){var u=i.length,c=u,d=!l;if(s==null)return!c;for(s=Object(s);u--;){var p=i[u];if(d&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++u<c;){p=i[u];var h=p[0],m=s[h],b=p[1];if(d&&p[2]){if(m===void 0&&!(h in s))return!1}else{var v=new e;if(l)var y=l(m,b,h,s,a,v);if(!(y===void 0?t(b,m,r|n,l,v):y))return!1}}return!0}return Sp=o,Sp}var kp,pC;function hC(){if(pC)return kp;pC=1;var e=of();function t(r){return r===r&&!e(r)}return kp=t,kp}var Pp,mC;function GM(){if(mC)return Pp;mC=1;var e=hC(),t=eC();function r(n){for(var o=t(n),s=o.length;s--;){var a=o[s],i=n[a];o[s]=[a,i,e(i)]}return o}return Pp=r,Pp}var $p,gC;function bC(){if(gC)return $p;gC=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return $p=e,$p}var Ep,vC;function ZM(){if(vC)return Ep;vC=1;var e=qM(),t=GM(),r=bC();function n(o){var s=t(o);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===o||e(a,o,s)}}return Ep=n,Ep}var Tp,yC;function Dp(){if(yC)return Tp;yC=1;var e=Ns(),t=Ms(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return Tp=n,Tp}var _p,xC;function Ip(){if(xC)return _p;xC=1;var e=un(),t=Dp(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(s,a){if(e(s))return!1;var i=typeof s;return i=="number"||i=="symbol"||i=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return _p=o,_p}var Ap,wC;function YM(){if(wC)return Ap;wC=1;var e=_f(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var s=function(){var a=arguments,i=o?o.apply(this,a):a[0],l=s.cache;if(l.has(i))return l.get(i);var u=n.apply(this,a);return s.cache=l.set(i,u)||l,u};return s.cache=new(r.Cache||e),s}return r.Cache=e,Ap=r,Ap}var Np,CC;function JM(){if(CC)return Np;CC=1;var e=YM(),t=500;function r(n){var o=e(n,function(a){return s.size===t&&s.clear(),a}),s=o.cache;return o}return Np=r,Np}var Mp,SC;function XM(){if(SC)return Mp;SC=1;var e=JM(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(t,function(a,i,l,u){s.push(l?u.replace(r,"$1"):i||a)}),s});return Mp=n,Mp}var Op,kC;function QM(){if(kC)return Op;kC=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,s=Array(o);++n<o;)s[n]=r(t[n],n,t);return s}return Op=e,Op}var jp,PC;function e8(){if(PC)return jp;PC=1;var e=zi(),t=QM(),r=un(),n=Dp(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function a(i){if(typeof i=="string")return i;if(r(i))return t(i,a)+"";if(n(i))return s?s.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}return jp=a,jp}var Fp,$C;function t8(){if($C)return Fp;$C=1;var e=e8();function t(r){return r==null?"":e(r)}return Fp=t,Fp}var Bp,EC;function TC(){if(EC)return Bp;EC=1;var e=un(),t=Ip(),r=XM(),n=t8();function o(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return Bp=o,Bp}var zp,DC;function Ri(){if(DC)return zp;DC=1;var e=Dp();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return zp=t,zp}var Lp,_C;function IC(){if(_C)return Lp;_C=1;var e=TC(),t=Ri();function r(n,o){o=e(o,n);for(var s=0,a=o.length;n!=null&&s<a;)n=n[t(o[s++])];return s&&s==a?n:void 0}return Lp=r,Lp}var Vp,AC;function r8(){if(AC)return Vp;AC=1;var e=IC();function t(r,n,o){var s=r==null?void 0:e(r,n);return s===void 0?o:s}return Vp=t,Vp}var Rp,NC;function n8(){if(NC)return Rp;NC=1;function e(t,r){return t!=null&&r in Object(t)}return Rp=e,Rp}var Kp,MC;function o8(){if(MC)return Kp;MC=1;var e=TC(),t=O4(),r=un(),n=L4(),o=np(),s=Ri();function a(i,l,u){l=e(l,i);for(var c=-1,d=l.length,p=!1;++c<d;){var h=s(l[c]);if(!(p=i!=null&&u(i,h)))break;i=i[h]}return p||++c!=d?p:(d=i==null?0:i.length,!!d&&o(d)&&n(h,d)&&(r(i)||t(i)))}return Kp=a,Kp}var Wp,OC;function s8(){if(OC)return Wp;OC=1;var e=n8(),t=o8();function r(n,o){return n!=null&&t(n,o,e)}return Wp=r,Wp}var Up,jC;function a8(){if(jC)return Up;jC=1;var e=dC(),t=r8(),r=s8(),n=Ip(),o=hC(),s=bC(),a=Ri(),i=1,l=2;function u(c,d){return n(c)&&o(d)?s(a(c),d):function(p){var h=t(p,c);return h===void 0&&h===d?r(p,c):e(d,h,i|l)}}return Up=u,Up}var Hp,FC;function i8(){if(FC)return Hp;FC=1;function e(t){return t}return Hp=e,Hp}var qp,BC;function l8(){if(BC)return qp;BC=1;function e(t){return function(r){return r?.[t]}}return qp=e,qp}var Gp,zC;function u8(){if(zC)return Gp;zC=1;var e=IC();function t(r){return function(n){return e(n,r)}}return Gp=t,Gp}var Zp,LC;function c8(){if(LC)return Zp;LC=1;var e=l8(),t=u8(),r=Ip(),n=Ri();function o(s){return r(s)?e(n(s)):t(s)}return Zp=o,Zp}var Yp,VC;function d8(){if(VC)return Yp;VC=1;var e=ZM(),t=a8(),r=i8(),n=un(),o=c8();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):o(a)}return Yp=s,Yp}var Jp,RC;function f8(){if(RC)return Jp;RC=1;function e(t,r,n,o){for(var s=t.length,a=n+(o?1:-1);o?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return Jp=e,Jp}var Xp,KC;function p8(){if(KC)return Xp;KC=1;function e(t){return t!==t}return Xp=e,Xp}var Qp,WC;function h8(){if(WC)return Qp;WC=1;function e(t,r,n){for(var o=n-1,s=t.length;++o<s;)if(t[o]===r)return o;return-1}return Qp=e,Qp}var eh,UC;function m8(){if(UC)return eh;UC=1;var e=f8(),t=p8(),r=h8();function n(o,s,a){return s===s?r(o,s,a):e(o,t,a)}return eh=n,eh}var th,HC;function g8(){if(HC)return th;HC=1;var e=m8();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return th=t,th}var rh,qC;function b8(){if(qC)return rh;qC=1;function e(t,r,n){for(var o=-1,s=t==null?0:t.length;++o<s;)if(n(r,t[o]))return!0;return!1}return rh=e,rh}var nh,GC;function v8(){if(GC)return nh;GC=1;function e(){}return nh=e,nh}var oh,ZC;function y8(){if(ZC)return oh;ZC=1;var e=aC(),t=v8(),r=Rf(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(s){return new e(s)}:t;return oh=o,oh}var sh,YC;function x8(){if(YC)return sh;YC=1;var e=m4(),t=g8(),r=b8(),n=v4(),o=y8(),s=Rf(),a=200;function i(l,u,c){var d=-1,p=t,h=l.length,m=!0,b=[],v=b;if(c)m=!1,p=r;else if(h>=a){var y=u?null:o(l);if(y)return s(y);m=!1,p=n,v=new e}else v=u?[]:b;e:for(;++d<h;){var x=l[d],w=u?u(x):x;if(x=c||x!==0?x:0,m&&w===w){for(var C=v.length;C--;)if(v[C]===w)continue e;u&&v.push(w),b.push(x)}else p(v,w,c)||(v!==b&&v.push(w),b.push(x))}return b}return sh=i,sh}var ah,JC;function w8(){if(JC)return ah;JC=1;var e=d8(),t=x8();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return ah=r,ah}var C8=w8();const S8=rm(C8);function ih(e,t){return r=>{const n=r.distinctProperties.find(o=>o.key===e);return!!n&&n.option.slug===t}}function k8(e,t){return e?.map(r=>{const n=S8(r.options.filter(o=>t.some(ih(r.key,o.slug))),"slug");return{...r,options:n}})}function P8(e,t){const r=e?.find(s=>s.key==="color")?.options,o=e?.find(s=>s.key==="internal_storage")?.options?.flatMap(s=>r?.map(a=>({internalStorage:s,color:a}))??[]);return o?o.filter(s=>t.find(a=>ih("internal_storage",s.internalStorage.slug)(a)&&ih("color",s.color.slug)(a)&&["AVAILABLE","AVAILABLE_IF_STOCK"].includes(a.status||""))):[]}function $8(e){return e?[e.sort((t,r)=>t.key==="internal_storage"?-1:r.key==="internal_storage"?1:0).map(t=>t.option.slug).join(":")]:[]}function E8(e,t){return e.split(":").map(r=>{const n=t.find(s=>s.options.some(a=>a.slug===r)),o=n?.options.find(s=>s.slug===r);if(!(!n||!o))return{key:n.key,label:n.label,option:o}}).filter(r=>r!==void 0)}function XC({colorHex:e,storage:t,color:r}){const n=e&&/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),o=n?e:"#E5E7EB",s=[t,r].filter(Boolean).join(" • ")||"";return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-3 h-3 rounded-full shrink-0 border",style:{backgroundColor:o,borderColor:n?`color-mix(in srgb, ${o} 80%, black)`:"#D1D5DB"}}),f.jsx("span",{className:"text-sm text-foreground-600 truncate",children:s})]})}function T8({disabled:e,versions:t,onSelectionChange:r,classNames:n,distinctProperties:o,selectedDistinctProperties:s,selectedPhone:a,ref:i}){const l=k8(o,t),u=P8(l,t),{popoverProps:c}=on(),[d,p]=g.useState(!1),{productVersion:h}=Bd(a?.slug,s);return a?f.jsx(Nd,{className:P("shrink-0 scroll-mt-4",n?.base),ref:i,children:f.jsxs(S1,{className:P("space-y-3 overflow-hidden",n?.cardBody),children:[f.jsxs("div",{className:"flex items-center gap-3",children:[h?.media.main?.url?f.jsx(Ss,{alt:h.media.main.altText||a.fullName,src:Rc(h.media.main.url,64,64),size:"md",radius:"full",color:"primary",classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}):f.jsx(Ss,{size:"md",radius:"full",color:"primary",showFallback:!0,fallback:f.jsx(eu,{size:24,className:"text-primary"}),classNames:{base:"w-10 h-10 bg-primary-100 shrink-0"}}),f.jsx("span",{className:"text-sm font-medium",children:a.fullName})]}),f.jsx(As,{variant:"bordered",placeholder:"Kies een versie","aria-label":"Kies een telefoon versie",isOpen:d,onOpenChange:m=>m!==d&&p(m),isDisabled:e,popoverProps:c,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:$8(s),radius:"sm",renderValue:m=>m.map(b=>{const v=u.find(y=>[y.internalStorage.slug,y.color.slug].join(":")===b.key);return f.jsx(XC,{colorHex:v?.color?.hex,storage:v?.internalStorage?.label,color:v?.color?.label},b.key)}),classNames:{...n,trigger:P("cursor-pointer border-small",n?.trigger)},children:u.map(m=>{const{color:b,internalStorage:v}=m;if(!b||!v)return null;const y=[v.slug,b.slug].join(":");return f.jsx(_n,{variant:"flat",textValue:`${v.label} • ${b.label}`,onClick:()=>{r(E8(y,l||[])),p(!1)},children:f.jsx(XC,{colorHex:b.hex,storage:v.label,color:b.label})},[v.slug,b.slug].join(":"))})})]})}):null}function D8({isOpen:e,onOpenChange:t,onConfirm:r,classNames:n,brandSlug:o,phoneSlug:s,distinctProperties:a}){const{t:i}=Oe(),{popularPhones:l,brands:u}=tN(),{popoverProps:c}=on(),d=g.useRef(null),[p,h]=g.useState(o||"popular"),[m,b]=g.useState(s),[v,y]=g.useState(a);g.useEffect(()=>{e&&(h(o||"popular"),b(s),y(a))},[e,o,s,a]);const x=$=>{b($),y(void 0),setTimeout(()=>{d.current&&d.current.scrollIntoView({behavior:"smooth"})},0)},{phones:w,isLoading:C}=XA(p),k=g.useMemo(()=>[...l,...w],[l,w]).find($=>$.slug===m),D=()=>{const $=v||k?.productVersion?.distinctProperties;!m||!$||r(m,$)};return f.jsx($o,{isOpen:e,onOpenChange:t,placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:c.portalContainer,classNames:{backdrop:P(n?.modal?.backdrop),wrapper:P(n?.modal?.wrapper),base:P("h-[90vh] sm:h-[80vh]",n?.modal?.base),header:P(n?.modal?.header),body:P(n?.modal?.body),footer:P(n?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",n?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:i("phoneSelector.selectPhone")}),f.jsxs(So,{children:[f.jsx(T8,{ref:d,disabled:!k,versions:k?.productVersions||[],distinctProperties:k?.distinctProperties,selectedDistinctProperties:v||k?.productVersion?.distinctProperties,onSelectionChange:y,selectedPhone:k,classNames:n?.variantList}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(_N,{brands:u,selectedBrandSlug:p,onBrandChange:$=>h($),classNames:n?.brandTabs}),f.jsx(c7,{isLoading:C&&p!=="popular",phones:p==="popular"?l:w,selectedPhoneSlug:m,onPhoneSelect:x,classNames:n?.phoneList})]})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium disabled:opacity-50 disabled:pointer-events-none",n?.confirmButton),onPress:D,color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,disabled:!m,children:i("common.confirm")})})]})})}function _8({onChange:e,classNames:t,disabled:r=!1,productSlug:n,selectedDistinctProperties:o=[]}){const{t:s}=Oe(),{phoneSelectorButton:a}=Ye(),[i,l]=g.useState(!1),[u,c]=g.useState(n),[d,p]=g.useState(o),{product:h,productVersion:m}=Bd(u,d);g.useEffect(()=>{c(n)},[n]);function b(x,w){c(x),p(w),e?.(x,w),l(!1)}function v(){r||l(!0)}const y=[m?.distinctProperty?.internalStorage?.label,m?.distinctProperty?.color?.label].filter(Boolean).join(" • ");return f.jsxs(f.Fragment,{children:[f.jsx(pi,{disabled:r,onClick:v,selected:!!m,imageUrl:m?.media?.main?.url,imageAlt:m?.media?.main?.altText,title:h?h.fullName:s("phoneSelector.phone"),description:m?y:s("phoneSelector.selectPhone"),Icon:eu,classNames:a}),f.jsx(D8,{isOpen:i,onOpenChange:l,phoneSlug:u,brandSlug:h?.brand.slug,distinctProperties:d,onConfirm:b,classNames:t})]})}function I8(e){const[t,r]=pt(e,Fm.variantKeys),{as:n,title:o,children:s,description:a,onClose:i,isClosable:l,ref:u,icon:c,startContent:d,endContent:p,isVisible:h,isDefaultVisible:m,onVisibleChange:b,closeButtonProps:v={size:"sm"},className:y,classNames:x,...w}=t,[C,S]=hr(h,m??!0,b),D=typeof(n||"div")=="string",$=Pe(u),_=g.useCallback(()=>{S(!1),i?.()},[S,i]),N=P(x?.base,y),A=g.useMemo(()=>Fm({hasContent:!Kr(a)||!Kr(s),...r}),[a,ft(r)]),M=g.useCallback(()=>({"data-visible":H(C),"data-closeable":H(l),"data-has-title":H(!Kr(o)),"data-has-description":H(!Kr(a)),...ie(Fe(w,{enabled:D}),Fe(t)),className:A.base({class:N})}),[A,N]),O=g.useCallback(()=>({className:A.mainWrapper({class:x?.mainWrapper})}),[A,x?.mainWrapper]),L=g.useCallback(()=>({className:A.description({class:x?.description})}),[A,x?.description]),I=g.useCallback(()=>({className:A.title({class:x?.title})}),[A,x?.title]),z=g.useCallback(()=>({...v,className:A.closeButton({class:x?.closeButton})}),[A,x?.closeButton]),F=g.useCallback(()=>({className:A.alertIcon({class:x?.alertIcon})}),[A,x?.alertIcon]),B=g.useCallback(()=>({className:A.iconWrapper({class:x?.iconWrapper})}),[A,x?.iconWrapper]);return{title:o,icon:c,children:s,description:a,isClosable:l,domRef:$,endContent:p,startContent:d,getBaseProps:M,getMainWrapperProps:O,getDescriptionProps:L,getTitleProps:I,color:r.color,getCloseButtonProps:z,handleClose:_,isVisible:C,onClose:i,getAlertIconProps:F,getIconWrapperProps:B}}var QC={primary:Wy,secondary:Wy,success:uI,warning:cI,danger:dI},e2=Se((e,t)=>{const{title:r,icon:n,children:o,description:s,endContent:a,startContent:i,isClosable:l,domRef:u,handleClose:c,getBaseProps:d,getMainWrapperProps:p,getDescriptionProps:h,getTitleProps:m,getCloseButtonProps:b,color:v,isVisible:y,onClose:x,getAlertIconProps:w,getIconWrapperProps:C}=I8({...e,ref:t});if(!y)return null;const S=n&&g.isValidElement(n)?g.cloneElement(n,w()):null,k=QC[v]||QC.primary;return f.jsxs("div",{ref:u,role:"alert",...d(),children:[i,f.jsx("div",{...C(),children:S||f.jsx(k,{...w()})}),f.jsxs("div",{...p(),children:[!Kr(r)&&f.jsx("div",{...m(),children:r}),!Kr(s)&&f.jsx("div",{...h(),children:s}),o]}),a,(l||x)&&f.jsx(Ht,{isIconOnly:!0,"aria-label":"Close",radius:"full",variant:"light",onPress:c,...b(),children:f.jsx(Uy,{height:20,width:20})})]})});e2.displayName="HeroUI.Alert";var lh=e2;function A8(){const{errorAlert:e}=Ye();return f.jsx("div",{className:P(e?.base),children:f.jsx(lh,{color:"danger",variant:"faded",title:"Er is een fout opgetreden",description:"Er ging iets mis bij het laden van de gegevens. Probeer de pagina te vernieuwen.",hideIconWrapper:!0,endContent:f.jsx(Ht,{color:"danger",onPress:()=>window.location.reload(),className:P("font-medium ml-3",e?.button),radius:"full",disableAnimation:!0,disableRipple:!0,children:"Vernieuwen"}),classNames:{base:P(e?.alert?.base),title:P(e?.alert?.title),description:P(e?.alert?.description),mainWrapper:P(e?.alert?.mainWrapper),closeButton:P(e?.alert?.closeButton),iconWrapper:P(e?.alert?.iconWrapper),alertIcon:P(e?.alert?.alertIcon)}})})}class N8 extends g.Component{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){this.props.onError?.(t)}render(){return this.state.hasError?this.props.fallback??f.jsx(A8,{}):this.props.children}}function M8(e,t){const r=new Set(e.map(o=>o.slug)),n=t.filter(o=>!r.has(o.slug));return[...e,...n]}function uh({selectedFilters:e,defaultFilters:t,requiredFilters:r,removedDefaultFilters:n}){const o=t.filter(i=>!n.has(i.slug)),a=[...M8(e,o),...r].reduce((i,l)=>(i.set(l.slug,l),i),new Map);return Array.from(a.values())}const t2=g.createContext({onAction:e=>{}});function O8({children:e,onAction:t}){const r=g.useCallback(n=>t?.(n),[t]);return f.jsx(t2,{value:{onAction:r},children:e})}function Bo(){return g.useContext(t2)}const Gt=2147483647;function Zt(e){if(!e||typeof e!="string")return{to:void 0,from:void 0};const[t,r]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:r}:Number.isNaN(r)?{from:t}:{from:t,to:r}}const r2=g.createContext({activeFilters:[],filterOptions:[],sortOptions:[],distinctProperties:[],setDistinctProperties:e=>{},handleFilterChange:e=>{},handleFilterRemove:e=>{},getActiveFilterValue:e=>[]});function zo(e,t){return e.find(r=>r.slug===t)}function vr(e,t){return e.find(r=>r.slug===t)?.value}const j8=Le`
|
|
258
258
|
query pageByPath($path: String) {
|
|
259
259
|
page(path: $path) {
|
|
260
260
|
productCategory
|
|
@@ -842,7 +842,7 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
842
842
|
fixedRank
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
`;function c2(e){const{col:t,ranges:r,values:n}=Y8(e),o=e.operator==="and";if(o&&r)return r.map(s=>({col:t,ranges:[s]}));if(o&&n){if(n.length===0)return[{col:t,values:n}];const s=n[0];if(typeof s=="string")return n.map(a=>({col:t,values:[a]}));if(typeof s=="number")return n.map(a=>({col:t,values:[a]}));if(typeof s=="boolean")return n.map(a=>({col:t,values:[a]}))}return[{col:t,ranges:r,values:n}]}function Y8({col:e,values:t,valueType:r}){return t.length===0?{col:e,values:t}:r==="boolean"?{col:e,values:a2(t)}:(r==="integer"||r==="decimal")&&t.every(s2)?{col:e,ranges:t.map(Zt)}:(r==="integer"||r==="decimal")&&t.every(o2)?{col:e,values:t.map(i2)}:r==="string"?{col:e,values:t}:t.every(V8)?{col:e,values:a2(t)}:t.every(s2)?{col:e,ranges:t.map(Zt)}:t.every(o2)?{col:e,values:t.map(i2)}:{col:e,values:t}}function J8({key:e,col:t,type:r,filter:n=!1,options:o=[]}){const[{values:s,ranges:a}]=c2({col:t,values:o});switch(r){case"max":return[{key:`max_${e}`,metric:Lo.Max,col:t}];case"min":return[{key:`min_${e}`,metric:Lo.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:Lo.Min,col:t},{key:`max_${e}`,metric:Lo.Max,col:t}];case"values":return a?[{key:e,col:t,filter:n,ranges:a}]:s&&s.length>0?[{key:e,col:t,filter:n,include:s}]:[{key:e,col:t,filter:n}]}}class X8{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...c2(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...J8(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:Lo.Cardinality,col:this._groupBy}]:this._aggregations}}}function Q8({filterOptions:e,filterValues:t,limit:r=10,currentProvider:n,distinctProperties:o}){const s=new X8;s.limit(r);const a=vr(t,"sorteren");return a&&s.sort(a),t.forEach(i=>{const l=zo(e,i.slug);if(!l)return;let u;if(["range","min","max"].includes(l.type)&&Array.isArray(i.value)&&i.value.length===2){const[c,d]=i.value;u=[`${c}-${d}`]}else u=(Array.isArray(i.value)?i.value:[i.value]).map(String);s.where({col:l.column,values:u,valueType:l.valueType,operator:l.operator})}),n&&s.where({col:"current_provider",values:[n]}),o&&o.forEach(i=>{s.where({col:"distinct_properties",values:[[i.label.toLowerCase(),i.option.slug].join(":")]})}),s}function yr(){return g.useContext(r2)}function eO(e){const[t,r]=pt(e,Dm.variantKeys),{ref:n,as:o,children:s,avatar:a,startContent:i,endContent:l,onClose:u,classNames:c,className:d,...p}=t,h=o||"div",m=Pe(n),b=P(c?.base,d),v=!!u,y=e.variant==="dot",{focusProps:x,isFocusVisible:w}=rt(),C=g.useMemo(()=>typeof s=="string"&&s?.length===1,[s]),S=g.useMemo(()=>!!a||!!i,[a,i]),k=g.useMemo(()=>!!l||v,[l,v]),D=g.useMemo(()=>Dm({...r,hasStartContent:S,hasEndContent:k,isOneChar:C,isCloseable:v,isCloseButtonFocusVisible:w}),[ft(r),w,S,k,C,v]),{pressProps:$}=jt({isDisabled:!!e?.isDisabled,onPress:u}),_=()=>({ref:m,className:D.base({class:b}),...p}),N=()=>({role:"button",tabIndex:0,className:D.closeButton({class:c?.closeButton}),"aria-label":"close chip",...ie($,x)}),A=O=>g.isValidElement(O)?g.cloneElement(O,{className:D.avatar({class:c?.avatar})}):null,M=O=>g.isValidElement(O)?g.cloneElement(O,{className:P("max-h-[80%]",O.props.className)}):null;return{Component:h,children:s,slots:D,classNames:c,isDot:y,isCloseable:v,startContent:A(a)||M(i),endContent:M(l),getCloseButtonProps:N,getChipProps:_}}var d2=Se((e,t)=>{const{Component:r,children:n,slots:o,classNames:s,isDot:a,isCloseable:i,startContent:l,endContent:u,getCloseButtonProps:c,getChipProps:d}=eO({...e,ref:t}),p=g.useMemo(()=>a&&!l?f.jsx("span",{className:o.dot({class:s?.dot})}):l,[o,l,a]),h=g.useMemo(()=>i?f.jsx("span",{...c(),children:u||f.jsx(Kc,{})}):u,[u,i,c]);return f.jsxs(r,{...d(),children:[p,f.jsx("span",{className:o.content({class:s?.content}),children:n}),h]})});d2.displayName="HeroUI.Chip";var f2=d2;function tO({filter:e,children:t,onRemove:r,classNames:n}){const o=g.useRef(null),s=g.useCallback(()=>r(e),[e,r]),a=g.useCallback(i=>{(i.key==="Delete"||i.key==="Backspace")&&(i.preventDefault(),s())},[s]);return f.jsx(f2,{ref:o,onClose:s,onKeyDown:a,variant:"flat",color:"primary",tabIndex:0,classNames:n,endContent:f.jsx(qE,{size:12}),children:t})}function p2({className:e}){const{activeFilterChips:t}=nt(),{activeFilters:r,filterOptions:n,distinctProperties:o,getActiveFilterValue:s,handleFilterChange:a,handleFilterRemove:i}=yr(),[l]=s("telefoons"),{product:u}=Bd(l,o),c=g.useRef(null),d=g.useCallback(p=>{i(p),p.slug==="telefoons"&&a({slug:"sorteren",value:"relevantie"}),setTimeout(()=>{if(!c.current)return;const h=c.current.querySelectorAll('[tabindex="0"]');h.length>0&&h[0].focus()},0)},[i,a]);return!r||r.length===0||r.every(p=>{const h=zo(n,p.slug);return!h||h.type==="hidden"||p.slug==="sorteren"})?null:f.jsx("fieldset",{ref:c,className:P("flex flex-wrap gap-2",e,t?.container),children:r.map(p=>{const h=zo(n,p.slug);return!h||h.type==="hidden"||p.slug==="sorteren"?null:f.jsx(tO,{filter:p,onRemove:d,classNames:{base:t?.filterChip?.base,content:P("text-sm",t?.filterChip?.content),closeButton:P("pr-1",t?.filterChip?.closeButton)},children:p.slug==="telefoons"&&u?.fullName?u.fullName:W8(p,h)},p.slug)})})}function rO({children:e}){const{t}=Oe(),[r,n]=g.useState(!1),{filterModal:o,filterButton:s}=nt(),{filterOptions:a,activeFilters:i}=yr(),{popoverProps:l}=on(),u=g.useMemo(()=>i.reduce((c,d)=>{const p=zo(a,d.slug);return!p||p.type==="hidden"||d.slug==="sorteren"?c:c+1},0),[i,a]);return f.jsxs(f.Fragment,{children:[f.jsx(Ht,{className:s,onPress:()=>n(!0),color:"primary",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,startContent:f.jsx(Ig,{size:16,className:"stroke-primary-foreground shrink-0"}),endContent:u>0&&f.jsxs("span",{children:["(",u,")"]}),children:t("filters.title")}),f.jsx($o,{isOpen:r,onOpenChange:n,placement:"bottom-center",scrollBehavior:"inside",size:"xl",portalContainer:l.portalContainer,classNames:{backdrop:P(o?.backdrop),wrapper:P(o?.wrapper),base:P(o?.base),header:P("flex items-center gap-1 text-foreground",o?.header),body:P(o?.body),footer:P(o?.footer),closeButton:P("cursor-pointer right-6 top-3.5",o?.closeButton)},children:f.jsx(ko,{children:c=>f.jsxs(f.Fragment,{children:[f.jsxs(Po,{children:[f.jsx(Ig,{size:20,className:"stroke-foreground"}),t("filters.title")]}),f.jsxs(So,{children:[e,f.jsx(D2,{})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",o?.primaryButton),onPress:c,color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("filters.applyFilters")})})]})})})]})}const ch=new WeakMap;function dh(e,t){let r=ch.get(e);if(!r)throw new Error("Unknown slider state");return`${r.id}-${t}`}function nO(e,t,r){let{labelProps:n,fieldProps:o}=Ni(e),s=e.orientation==="vertical";var a;ch.set(t,{id:(a=n.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:i}=Ot(),{addGlobalListener:l,removeGlobalListener:u}=bn();const c=g.useRef(null),d=i==="rtl",p=g.useRef(null),{moveProps:h}=E0({onMoveStart(){p.current=null},onMove({deltaX:y,deltaY:x}){if(!r.current)return;let{height:w,width:C}=r.current.getBoundingClientRect(),S=s?w:C;p.current==null&&c.current!=null&&(p.current=t.getThumbPercent(c.current)*S);let k=s?x:y;if((s||d)&&(k=-k),p.current+=k,c.current!=null&&r.current){const D=oo(p.current/S,0,1);t.setThumbPercent(c.current,D)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let m=g.useRef(void 0),b=(y,x,w,C)=>{if(r.current&&!e.isDisabled&&t.values.every((S,k)=>!t.isThumbDragging(k))){let{height:S,width:k,top:D,left:$}=r.current.getBoundingClientRect(),_=s?S:k,O=((s?C:w)-(s?D:$))/_;(i==="rtl"||s)&&(O=1-O);let L=t.getPercentValue(O),I,z=t.values.findIndex(F=>L-F<0);if(z===0)I=z;else if(z===-1)I=t.values.length-1;else{let F=t.values[z-1],B=t.values[z];Math.abs(F-L)<Math.abs(B-L)?I=z-1:I=z}I>=0&&t.isThumbEditable(I)?(y.preventDefault(),c.current=I,t.setFocusedThumb(I),m.current=x,t.setThumbDragging(c.current,!0),t.setThumbValue(I,L),l(window,"mouseup",v,!1),l(window,"touchend",v,!1),l(window,"pointerup",v,!1)):c.current=null}},v=y=>{var x,w;((w=y.pointerId)!==null&&w!==void 0?w:(x=y.changedTouches)===null||x===void 0?void 0:x[0].identifier)===m.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",v,!1),u(window,"touchend",v,!1),u(window,"pointerup",v,!1))};return"htmlFor"in n&&n.htmlFor&&(delete n.htmlFor,n.onClick=()=>{var y;(y=document.getElementById(dh(t,0)))===null||y===void 0||y.focus(),_c("keyboard")}),{labelProps:n,groupProps:{role:"group",...o},trackProps:Ce({onMouseDown(y){y.button!==0||y.altKey||y.ctrlKey||y.metaKey||b(y,void 0,y.clientX,y.clientY)},onPointerDown(y){y.pointerType==="mouse"&&(y.button!==0||y.altKey||y.ctrlKey||y.metaKey)||b(y,y.pointerId,y.clientX,y.clientY)},onTouchStart(y){b(y,y.changedTouches[0].identifier,y.changedTouches[0].clientX,y.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map((y,x)=>dh(t,x)).join(" "),"aria-live":"off"}}}function oO(e,t){let{index:r=0,isRequired:n,validationState:o,isInvalid:s,trackRef:a,inputRef:i,orientation:l=t.orientation,name:u,form:c}=e,d=e.isDisabled||t.isDisabled,p=l==="vertical",{direction:h}=Ot(),{addGlobalListener:m,removeGlobalListener:b}=bn(),v=ch.get(t);var y;const{labelProps:x,fieldProps:w}=Ni({...e,id:dh(t,r),"aria-labelledby":`${v.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),C=t.values[r],S=g.useCallback(()=>{i.current&&Vt(i.current)},[i]),k=t.focusedThumb===r;g.useEffect(()=>{k&&S()},[k,S]);let D=h==="rtl",$=g.useRef(null),{keyboardProps:_}=P0({onKeyDown(F){let{getThumbMaxValue:B,getThumbMinValue:U,decrementThumb:E,incrementThumb:j,setThumbValue:T,setThumbDragging:V,pageSize:K}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(F.key)){F.continuePropagation();return}switch(F.preventDefault(),V(r,!0),F.key){case"PageUp":j(r,K);break;case"PageDown":E(r,K);break;case"Home":T(r,U(r));break;case"End":T(r,B(r));break}V(r,!1)}}),{moveProps:N}=E0({onMoveStart(){$.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:F,deltaY:B,pointerType:U,shiftKey:E}){const{getThumbPercent:j,setThumbPercent:T,decrementThumb:V,incrementThumb:K,step:G,pageSize:Z}=t;if(!a.current)return;let{width:W,height:ne}=a.current.getBoundingClientRect(),X=p?ne:W;if($.current==null&&($.current=j(r)*X),U==="keyboard")F>0&&D||F<0&&!D||B>0?V(r,E?Z:G):K(r,E?Z:G);else{let q=p?B:F;(p||D)&&(q=-q),$.current+=q,T(r,oo($.current/X,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!d);const{focusableProps:A}=rn(Ce(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),i);let M=g.useRef(void 0),O=F=>{S(),M.current=F,t.setThumbDragging(r,!0),m(window,"mouseup",L,!1),m(window,"touchend",L,!1),m(window,"pointerup",L,!1)},L=F=>{var B,U;((U=F.pointerId)!==null&&U!==void 0?U:(B=F.changedTouches)===null||B===void 0?void 0:B[0].identifier)===M.current&&(S(),t.setThumbDragging(r,!1),b(window,"mouseup",L,!1),b(window,"touchend",L,!1),b(window,"pointerup",L,!1))},I=t.getThumbPercent(r);(p||h==="rtl")&&(I=1-I);let z=d?{}:Ce(_,N,{onMouseDown:F=>{F.button!==0||F.altKey||F.ctrlKey||F.metaKey||O()},onPointerDown:F=>{F.button!==0||F.altKey||F.ctrlKey||F.metaKey||O(F.pointerId)},onTouchStart:F=>{O(F.changedTouches[0].identifier)}});return Ta(i,t.defaultValues[r],F=>{t.setThumbValue(r,F)}),{inputProps:Ce(A,w,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:C,name:u,form:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":n||void 0,"aria-invalid":s||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[v["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[v["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:F=>{t.setThumbValue(r,parseFloat(F.target.value))}}),thumbProps:{...z,style:{position:"absolute",[p?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:k}}function sO(e){const{ref:t,as:r,state:n,index:o,name:s,trackRef:a,className:i,tooltipProps:l,isVertical:u,showTooltip:c,getTooltipValue:d,formatOptions:p,renderThumb:h,...m}=e,b=r||"div",v=Pe(t),y=g.useRef(null),x=sb(p),{thumbProps:w,inputProps:C,isDragging:S,isFocused:k}=oO({index:o,trackRef:a,inputRef:y,name:s,...m},n),{hoverProps:D,isHovered:$}=vt({isDisabled:n.isDisabled}),{focusProps:_,isFocusVisible:N}=rt(),{pressProps:A,isPressed:M}=jt({isDisabled:n.isDisabled});return{Component:b,index:o,showTooltip:c,renderThumb:h,getThumbProps:(z={})=>({ref:v,"data-slot":"thumb","data-hover":H($),"data-pressed":H(M),"data-dragging":H(S),"data-focused":H(k),"data-focus-visible":H(N),"aria-label":z["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...ie(w,A,D,m),className:i,...z}),getTooltipProps:()=>{const z=l?.content?l.content:d?n.values.length===1?d(n.values[o??0]):d(n.values,o??0):n.values[o??0],F=x&&typeof z=="number"?x.format(z):z;return{...l,placement:l?.placement?l?.placement:u?"right":"top",content:l?.content?l?.content:F,updatePositionDeps:[S,$,k,N,F],isOpen:l?.isOpen!==void 0?l?.isOpen:$||S||k||N,role:"tooltip","aria-label":`Current value: ${F}`}},getInputProps:(z={})=>({ref:y,...ie(C,_),...z})}}const aO=1500,h2=500;let An={},iO=0,Fs=!1,Br=null,Nn=null;function lO(e={}){let{delay:t=aO,closeDelay:r=h2}=e,{isOpen:n,open:o,close:s}=gi(e),a=g.useMemo(()=>`${++iO}`,[]),i=g.useRef(null),l=g.useRef(s),u=()=>{An[a]=p},c=()=>{for(let m in An)m!==a&&(An[m](!0),delete An[m])},d=()=>{i.current&&clearTimeout(i.current),i.current=null,c(),u(),Fs=!0,o(),Br&&(clearTimeout(Br),Br=null),Nn&&(clearTimeout(Nn),Nn=null)},p=m=>{m||r<=0?(i.current&&clearTimeout(i.current),i.current=null,l.current()):i.current||(i.current=setTimeout(()=>{i.current=null,l.current()},r)),Br&&(clearTimeout(Br),Br=null),Fs&&(Nn&&clearTimeout(Nn),Nn=setTimeout(()=>{delete An[a],Nn=null,Fs=!1},Math.max(h2,r)))},h=()=>{c(),u(),!n&&!Br&&!Fs?Br=setTimeout(()=>{Br=null,Fs=!0,d()},t):n||d()};return g.useEffect(()=>{l.current=s},[s]),g.useEffect(()=>()=>{i.current&&clearTimeout(i.current),An[a]&&delete An[a]},[a]),{isOpen:n,open:m=>{!m&&t>0&&!i.current?h():d()},close:p}}function uO(e,t){let r=Bt(e,{labelable:!0}),{hoverProps:n}=vt({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Ce(r,n,{role:"tooltip"})}}function cO(e,t,r){let{isDisabled:n,trigger:o,shouldCloseOnPress:s=!0}=e,a=bt(),i=g.useRef(!1),l=g.useRef(!1),u=()=>{(i.current||l.current)&&t.open(l.current)},c=x=>{!i.current&&!l.current&&t.close(x)};g.useEffect(()=>{let x=w=>{r&&r.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",x,!0),()=>{document.removeEventListener("keydown",x,!0)}},[r,t]);let d=()=>{o!=="focus"&&(ys()==="pointer"?i.current=!0:i.current=!1,u())},p=()=>{o!=="focus"&&(l.current=!1,i.current=!1,c())},h=()=>{s&&(l.current=!1,i.current=!1,c(!0))},m=()=>{xo()&&(l.current=!0,u())},b=()=>{l.current=!1,i.current=!1,c(!0)},{hoverProps:v}=vt({isDisabled:n,onHoverStart:d,onHoverEnd:p}),{focusableProps:y}=rn({isDisabled:n,onFocus:m,onBlur:b},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...Ce(y,v,{onPointerDown:h,onKeyDown:h}),tabIndex:void 0},tooltipProps:{id:a}}}function dO(e){var t,r;const n=et(),[o,s]=pt(e,ta.variantKeys),{ref:a,as:i,isOpen:l,content:u,children:c,defaultOpen:d,onOpenChange:p,isDisabled:h,trigger:m,shouldFlip:b=!0,containerPadding:v=12,placement:y="top",delay:x=0,closeDelay:w=500,showArrow:C=!1,offset:S=7,crossOffset:k=0,isDismissable:D,shouldCloseOnBlur:$=!0,portalContainer:_,isKeyboardDismissDisabled:N=!1,updatePositionDeps:A=[],shouldCloseOnInteractOutside:M,className:O,onClose:L,motionProps:I,classNames:z,...F}=o,B=i||"div",U=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,E=lO({delay:x,closeDelay:w,isDisabled:h,defaultOpen:d,isOpen:l,onOpenChange:oe=>{p?.(oe),oe||L?.()}}),j=g.useRef(null),T=g.useRef(null),V=g.useId(),K=E.isOpen&&!h;g.useImperativeHandle(a,()=>YE(T));const{triggerProps:G,tooltipProps:Z}=cO({isDisabled:h,trigger:m},E,j),{tooltipProps:W}=uO({isOpen:K,...ie(o,Z)},E),{overlayProps:ne,placement:X,updatePosition:q}=a0({isOpen:K,targetRef:j,placement:d1(y),overlayRef:T,offset:C?S+3:S,crossOffset:k,shouldFlip:b,containerPadding:v});$n(()=>{A.length&&q()},A);const{overlayProps:ee}=Wc({isOpen:K,onClose:E.close,isDismissable:D,shouldCloseOnBlur:$,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:M},T),ue=g.useMemo(()=>{var oe,pe,xe;return ta({...s,disableAnimation:U,radius:(oe=e?.radius)!=null?oe:"md",size:(pe=e?.size)!=null?pe:"md",shadow:(xe=e?.shadow)!=null?xe:"sm"})},[ft(s),U,e?.radius,e?.size,e?.shadow]),te=g.useCallback((oe={},pe=null)=>({...ie(G,oe),ref:ru(pe,j),"aria-describedby":K?V:void 0}),[G,K,V,E]),Ee=g.useCallback(()=>({ref:T,"data-slot":"base","data-open":H(K),"data-arrow":H(C),"data-disabled":H(h),"data-placement":Ai(X||"top",y),...ie(W,ee,F),style:ie(ne.style,F.style,o.style),className:ue.base({class:z?.base}),id:V}),[ue,K,C,h,X,y,W,ee,F,ne,o,V]),ve=g.useCallback(()=>({"data-slot":"content","data-open":H(K),"data-arrow":H(C),"data-disabled":H(h),"data-placement":Ai(X||"top",y),className:ue.content({class:P(z?.content,O)})}),[ue,K,C,h,X,y,z]);return{Component:B,content:u,children:c,isOpen:K,triggerRef:j,showArrow:C,portalContainer:_,placement:y,disableAnimation:U,isDisabled:h,motionProps:I,getTooltipContentProps:ve,getTriggerProps:te,getTooltipProps:Ee}}var fO=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),m2=Se((e,t)=>{var r;const{Component:n,children:o,content:s,isOpen:a,portalContainer:i,placement:l,disableAnimation:u,motionProps:c,getTriggerProps:d,getTooltipProps:p,getTooltipContentProps:h}=dO({...e,ref:t});let m;try{if(g.Children.count(o)!==1)throw new Error;if(!g.isValidElement(o))m=f.jsx("p",{...d(),children:o});else{const S=o,k=(r=S.props.ref)!=null?r:S.ref;m=g.cloneElement(S,d(S.props,k))}}catch{m=f.jsx("span",{}),Jn("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:v,style:y,...x}=p(),w=f.jsx("div",{ref:b,id:v,style:y,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.scaleSpring,...ie(c,x),style:{...c1(l)},children:f.jsx(n,{...h(),children:s})},`${v}-tooltip-inner`)},`${v}-tooltip-content`);return f.jsxs(f.Fragment,{children:[m,u?a&&f.jsx(V0,{portalContainer:i,children:f.jsx("div",{ref:b,id:v,style:y,...x,children:f.jsx(n,{...h(),children:s})})}):f.jsx(mo,{features:fO,children:f.jsx(Wa,{children:a&&f.jsx(V0,{portalContainer:i,children:w})})})]})});m2.displayName="HeroUI.Tooltip";var pO=m2,g2=Se((e,t)=>{const{Component:r,index:n,renderThumb:o,showTooltip:s,getTooltipProps:a,getThumbProps:i,getInputProps:l}=sO({...e,ref:t}),u={...i(),index:n,children:f.jsx(wo,{children:f.jsx("input",{...l()})})},c=nu({Component:r,props:u,renderCustom:o});return s?f.jsx(pO,{...a(),children:c}):c});g2.displayName="HeroUI.SliderThumb";var hO=g2;const mO=0,gO=100,bO=1;function vO(e){const{isDisabled:t=!1,minValue:r=mO,maxValue:n=gO,numberFormatter:o,step:s=bO,orientation:a="horizontal"}=e;let i=g.useMemo(()=>{let T=(n-r)/10;return T=as(T,0,T+s,s),Math.max(T,s)},[s,n,r]),l=g.useCallback(T=>T?.map((V,K)=>{let G=K===0?r:T[K-1],Z=K===T.length-1?n:T[K+1];return as(V,G,Z,s)}),[r,n,s]),u=g.useMemo(()=>l(v2(e.value)),[e.value,l]),c=g.useMemo(()=>{var T;return l((T=v2(e.defaultValue))!==null&&T!==void 0?T:[r])},[e.defaultValue,r,l]),d=y2(e.value,e.defaultValue,e.onChange),p=y2(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=hr(u,c,d);let[b]=g.useState(h);const[v,y]=g.useState(new Array(h.length).fill(!1)),x=g.useRef(new Array(h.length).fill(!0)),[w,C]=g.useState(void 0),S=g.useRef(h),k=g.useRef(v);let D=T=>{S.current=T,m(T)},$=T=>{k.current=T,y(T)};function _(T){return(T-r)/(n-r)}function N(T){return T===0?r:h[T-1]}function A(T){return T===h.length-1?n:h[T+1]}function M(T){return x.current[T]}function O(T,V){x.current[T]=V}function L(T,V){if(t||!M(T))return;const K=N(T),G=A(T);V=as(V,K,G,s);let Z=b2(S.current,T,V);D(Z)}function I(T,V){if(t||!M(T))return;V&&(S.current=h);const K=k.current[T];k.current=b2(k.current,T,V),$(k.current),p&&K&&!k.current.some(Boolean)&&p(S.current)}function z(T){return o.format(T)}function F(T,V){L(T,U(V))}function B(T){return Math.round((T-r)/s)*s+r}function U(T){const V=T*(n-r)+r;return oo(B(V),r,n)}function E(T,V=1){let K=Math.max(V,s);L(T,as(h[T]+K,r,n,s))}function j(T,V=1){let K=Math.max(V,s);L(T,as(h[T]-K,r,n,s))}return{values:h,defaultValues:e.defaultValue!==void 0?c:b,getThumbValue:T=>h[T],setThumbValue:L,setThumbPercent:F,isThumbDragging:T=>v[T],setThumbDragging:I,focusedThumb:w,setFocusedThumb:C,getThumbPercent:T=>_(h[T]),getValuePercent:_,getThumbValueLabel:T=>z(h[T]),getFormattedValue:z,getThumbMinValue:N,getThumbMaxValue:A,getPercentValue:U,isThumbEditable:M,setThumbEditable:O,incrementThumb:E,decrementThumb:j,step:s,pageSize:i,orientation:a,isDisabled:t}}function b2(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function v2(e){if(e!=null)return Array.isArray(e)?e:[e]}function y2(e,t,r){return n=>{r?.(typeof e=="number"||typeof t=="number"?n[0]:n)}}function yO(e){var t,r,n,o;const s=et(),[a,i]=pt(e,Bl.variantKeys),{ref:l,as:u,name:c,label:d,formatOptions:p,value:h,maxValue:m=100,minValue:b=0,step:v=1,showSteps:y=!1,showTooltip:x=!1,orientation:w="horizontal",marks:C=[],startContent:S,endContent:k,fillOffset:D,className:$,classNames:_,renderThumb:N,renderLabel:A,renderValue:M,onChange:O,onChangeEnd:L,getValue:I,getTooltipValue:z,tooltipValueFormatOptions:F=p,tooltipProps:B={},...U}=a,E=b===m;E&&Jn("Min and max values should not be the same. This may cause unexpected behavior.");const j=u||"div",T=typeof j=="string",V=(r=(t=e?.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,K=Pe(l),G=g.useRef(null),Z=sb(p),{direction:W}=Ot(),ne=g.useCallback(Ie=>Math.min(Math.max(Ie,b),m),[b,m]),X=g.useMemo(()=>{if(E)return b;if(h!==void 0)return Array.isArray(h)?h.map(ne):ne(h)},[h,ne,E,b]),q=vO({...U,value:X,isDisabled:(n=e?.isDisabled)!=null?n:!1,orientation:w,step:v,minValue:b,maxValue:m,numberFormatter:Z,onChange:O,onChangeEnd:L}),ee={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=Bl.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,...B},{groupProps:ue,trackProps:te,labelProps:Ee,outputProps:ve}=nO(e,q,G),{isHovered:oe,hoverProps:pe}=vt({isDisabled:e.isDisabled}),xe=P(_?.base,$),he=w==="vertical",se=C?.length>0,He=D===void 0?q.values.length===1:!1,ge=g.useMemo(()=>Bl({...i,hasMarks:se,disableAnimation:V,hasSingleThumb:He,isVertical:he}),[ft(i),he,V,He,se]),[_e,Ke]=[q.values.length>1?q.getThumbPercent(0):D!==void 0?q.getValuePercent(D):0,q.getThumbPercent(q.values.length-1)].sort(),qe=q.values.length===1?Z.format(q.values[0]):Z.formatRange(q.values[0],q.values[q.values.length-1]),wt=y?Math.floor((m-b)/v)+1:0;return{Component:j,state:q,value:qe,domRef:K,label:d,steps:wt,marks:C,startContent:S,endContent:k,getStepProps:Ie=>{const Xe=q.getValuePercent(Ie*v+b);return{className:ge.step({class:_?.step}),"data-slot":"step","data-in-range":Xe<=Ke&&Xe>=_e,style:{[he?"bottom":W==="rtl"?"right":"left"]:`${Xe*100}%`}}},getBaseProps:(Ie={})=>({ref:K,"data-orientation":q.orientation,"data-slot":"base","data-hover":oe,className:ge.base({class:xe}),...ie(ue,pe,Fe(U,{enabled:T}),Fe(Ie))}),getValue:I,renderLabel:A,renderValue:M,getTrackWrapperProps:(Ie={})=>({"data-slot":"track-wrapper",className:ge.trackWrapper({class:_?.trackWrapper}),...Ie}),getLabelWrapperProps:(Ie={})=>({className:ge.labelWrapper({class:_?.labelWrapper}),"data-slot":"labelWrapper",...Ie}),getLabelProps:(Ie={})=>({"data-slot":"label",className:ge.label({class:_?.label}),children:d,...Ee,...Ie}),getValueProps:(Ie={})=>({"data-slot":"value",className:ge.value({class:_?.value}),children:I&&typeof I=="function"?I(q.values):qe,...ve,...Ie}),getTrackProps:(Ie={})=>{const Xe=(Ke-_e)*100;return{ref:G,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":he,...He?{"data-fill-start":Xe>0,"data-fill-end":Xe==100}:{"data-fill-start":_e==0,"data-fill-end":_e*100+Xe==100},className:ge.track({class:_?.track}),...te,...Ie}},getFillerProps:(Ie={})=>({"data-slot":"filler",className:ge.filler({class:_?.filler}),...Ie,style:{...Ie.style,[he?"bottom":W==="rtl"?"right":"left"]:`${_e*100}%`,...he?{height:`${(Ke-_e)*100}%`}:{width:`${(Ke-_e)*100}%`}}}),getThumbProps:Ie=>({name:c,index:Ie,state:q,trackRef:G,orientation:w,isVertical:he,tooltipProps:ee,getTooltipValue:z,showTooltip:x,renderThumb:N,formatOptions:F,className:ge.thumb({class:_?.thumb})}),getMarkProps:Ie=>{const Xe=q.getValuePercent(Ie.value);return{className:ge.mark({class:_?.mark}),"data-slot":"mark","data-in-range":Xe<=Ke&&Xe>=_e,style:{[he?"bottom":W==="rtl"?"right":"left"]:`${Xe*100}%`},onMouseDown:tr=>tr.stopPropagation(),onPointerDown:tr=>tr.stopPropagation(),onClick:tr=>{if(tr.stopPropagation(),!E)if(q.values.length===1)q.setThumbPercent(0,Xe);else{const It=q.values[0],Vr=q.values[1];Ie.value<It?q.setThumbPercent(0,Xe):Ie.value>Vr?q.setThumbPercent(1,Xe):Math.abs(Ie.value-It)<Math.abs(Ie.value-Vr)?q.setThumbPercent(0,Xe):q.setThumbPercent(1,Xe)}}}},getStartContentProps:(Ie={})=>({"data-slot":"startContent",className:ge.startContent({class:_?.startContent}),...Ie}),getEndContentProps:(Ie={})=>({"data-slot":"endContent",className:ge.endContent({class:_?.endContent}),...Ie})}}var x2=Se((e,t)=>{const{Component:r,state:n,label:o,steps:s,marks:a,startContent:i,endContent:l,getStepProps:u,getBaseProps:c,renderValue:d,renderLabel:p,getTrackWrapperProps:h,getLabelWrapperProps:m,getLabelProps:b,getValueProps:v,getTrackProps:y,getFillerProps:x,getThumbProps:w,getMarkProps:C,getStartContentProps:S,getEndContentProps:k}=yO({...e,ref:t});return f.jsxs(r,{...c(),children:[o&&f.jsxs("div",{...m(),children:[nu({Component:"label",props:b(),renderCustom:p}),nu({Component:"output",props:v(),renderCustom:d})]}),f.jsxs("div",{...h(),children:[i&&f.jsx("div",{...S(),children:i}),f.jsxs("div",{...y(),children:[f.jsx("div",{...x()}),Number.isFinite(s)&&Array.from({length:s},(D,$)=>f.jsx("div",{...u($)},$)),n.values.map((D,$)=>f.jsx(hO,{...w($)},$)),a?.length>0&&a.map((D,$)=>f.jsx("div",{...C(D),children:D.label},$))]}),l&&f.jsx("div",{...k(),children:l})]})]})});x2.displayName="HeroUI.Slider";var fh=x2;function xO({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:a,formatType:i,onChange:l,classNames:u}){const{t:c}=Oe(),{to:d}=Zt(n),[p,h]=g.useState(d??t);return g.useEffect(()=>{n||h(t)},[n,t]),Nr(()=>{const{to:m}=Zt(n);m&&m!==p&&h(m)},[n]),f.jsx(fh,{size:"sm",step:r,hideValue:!0,label:`${c("format.to")} ${ur(p,i)}`,minValue:e,maxValue:s,value:p===t?s:p,onChange:m=>{if(typeof m=="number"){if(m>=s)return h(t);h(cn(m,o))}},onChangeEnd:m=>{if(typeof m=="number"){if(m>=s)return l(`-${t}`);l(`-${cn(m,o)}`)}},marks:a,classNames:{...u,track:P("h-2",u?.track)}})}function wO({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:a,formatType:i,onChange:l,classNames:u}){const{t:c}=Oe(),{from:d}=Zt(n),[p,h]=g.useState(d??e);return g.useEffect(()=>{n||h(e)},[n,e]),Nr(()=>{const{from:m}=Zt(n);m&&m!==p&&h(m)},[n]),f.jsx(fh,{size:"sm",step:r,hideValue:!0,label:`${c("format.startingFrom")} ${ur(p,i)}`,minValue:e,maxValue:s,value:p===t?s:p,onChange:m=>{if(typeof m=="number"){if(m>=s)return h(t);h(cn(m,o))}},onChangeEnd:m=>{if(typeof m=="number"){if(m>=s)return l(`${t}-`);l(`${cn(m,o)}-`)}},marks:a,classNames:{...u,track:P("h-2",u?.track)}})}let CO=Math.round(Math.random()*1e10),SO=0;function kO(e){let t=g.useMemo(()=>e.name||`radio-group-${CO}-${++SO}`,[e.name]);var r;let[n,o]=hr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[s]=g.useState(n),[a,i]=g.useState(null),l=Oo({...e,value:n}),u=p=>{!e.isReadOnly&&!e.isDisabled&&(o(p),l.commitValidation())},c=l.displayValidation.isInvalid;var d;return{...l,name:t,selectedValue:n,defaultSelectedValue:e.value!==void 0?s:(d=e.defaultValue)!==null&&d!==void 0?d:null,setSelectedValue:u,lastFocusedValue:a,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(c?"invalid":null),isInvalid:c}}const w2=new WeakMap;function PO(e,t,r){let{value:n,children:o,"aria-label":s,"aria-labelledby":a,onPressStart:i,onPressEnd:l,onPressChange:u,onPress:c,onPressUp:d,onClick:p}=e;const h=e.isDisabled||t.isDisabled;let m=o!=null,b=s!=null||a!=null;!m&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let v=t.selectedValue===n,y=I=>{I.stopPropagation(),t.setSelectedValue(n)},{pressProps:x,isPressed:w}=jt({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:c,onPressUp:d,onClick:p,isDisabled:h}),{pressProps:C,isPressed:S}=jt({onPressStart:i,onPressEnd:l,onPressChange:u,onPressUp:d,onClick:p,isDisabled:h,onPress(I){var z;c?.(I),t.setSelectedValue(n),(z=r.current)===null||z===void 0||z.focus()}}),{focusableProps:k}=rn(Ce(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),D=Ce(x,k),$=Bt(e,{labelable:!0}),_=-1;t.selectedValue!=null?t.selectedValue===n&&(_=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(_=0),h&&(_=void 0);let{name:N,form:A,descriptionId:M,errorMessageId:O,validationBehavior:L}=w2.get(t);return Ta(r,t.defaultSelectedValue,t.setSelectedValue),ji({validationBehavior:L},t,r),{labelProps:Ce(C,g.useMemo(()=>({onClick:I=>I.preventDefault(),onMouseDown:I=>I.preventDefault()}),[])),inputProps:Ce($,{...D,type:"radio",name:N,form:A,tabIndex:_,disabled:h,required:t.isRequired&&L==="native",checked:v,value:n,onChange:y,"aria-describedby":[e["aria-describedby"],t.isInvalid?O:null,M].filter(Boolean).join(" ")||void 0}),isDisabled:h,isSelected:v,isPressed:w||S}}function $O(e,t){let{name:r,form:n,isReadOnly:o,isRequired:s,isDisabled:a,orientation:i="vertical",validationBehavior:l="aria"}=e,{direction:u}=Ot(),{isInvalid:c,validationErrors:d,validationDetails:p}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:b,errorMessageProps:v}=Mi({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),y=Bt(e,{labelable:!0}),{focusWithinProps:x}=kn({onBlurWithin(S){var k;(k=e.onBlur)===null||k===void 0||k.call(e,S),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),w=S=>{let k;switch(S.key){case"ArrowRight":u==="rtl"&&i!=="vertical"?k="prev":k="next";break;case"ArrowLeft":u==="rtl"&&i!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}S.preventDefault();let D=Lt(S.currentTarget,{from:S.target,accept:_=>_ instanceof kt(_).HTMLInputElement&&_.type==="radio"}),$;k==="next"?($=D.nextNode(),$||(D.currentNode=S.currentTarget,$=D.firstChild())):($=D.previousNode(),$||(D.currentNode=S.currentTarget,$=D.lastChild())),$&&($.focus(),t.setSelectedValue($.value))},C=bt(r);return w2.set(t,{name:C,form:n,descriptionId:b.id,errorMessageId:v.id,validationBehavior:l}),{radioGroupProps:Ce(y,{role:"radiogroup",onKeyDown:w,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":s||void 0,"aria-disabled":a||void 0,"aria-orientation":i,...m,...x}),labelProps:h,descriptionProps:b,errorMessageProps:v,isInvalid:c,validationErrors:d,validationDetails:p}}function EO(e){var t,r;const n=et(),{validationBehavior:o}=jo(In)||{},{as:s,ref:a,classNames:i,children:l,label:u,value:c,name:d,isInvalid:p,validationState:h,validationBehavior:m=(t=o??n?.validationBehavior)!=null?t:"native",size:b="md",color:v="primary",isDisabled:y=!1,disableAnimation:x=(r=n?.disableAnimation)!=null?r:!1,orientation:w="vertical",isRequired:C=!1,isReadOnly:S,errorMessage:k,description:D,className:$,onChange:_,onValueChange:N,...A}=e,M=s||"div",O=typeof M=="string",L=Pe(a),I=g.useMemo(()=>({...A,value:c,name:d,"aria-label":na(A["aria-label"],u),isRequired:C,isReadOnly:S,isInvalid:h==="invalid"||p,orientation:w,validationBehavior:m,onChange:N}),[A,c,d,u,C,S,p,h,m,w,N]),z=kO(I),{labelProps:F,radioGroupProps:B,errorMessageProps:U,descriptionProps:E,isInvalid:j,validationErrors:T,validationDetails:V}=$O(I,z),K=I.isInvalid||j||z.isInvalid,G=g.useMemo(()=>({size:b,color:v,groupState:z,isRequired:C,isInvalid:K,isDisabled:y,disableAnimation:x,onChange:_}),[b,v,C,y,K,_,x,z.name,z.isDisabled,z.isReadOnly,z.isRequired,z.selectedValue,z.lastFocusedValue]),Z=g.useMemo(()=>a$({isRequired:C,isInvalid:K,disableAnimation:x}),[K,C,x]),W=P(i?.base,$),ne=g.useCallback(()=>({ref:L,className:Z.base({class:W}),...ie(B,Fe(A,{enabled:O}))}),[L,Z,W,B,A]),X=g.useCallback(()=>({className:Z.label({class:i?.label}),...F}),[Z,i?.label,F,i?.label]),q=g.useCallback(()=>({className:Z.wrapper({class:i?.wrapper}),role:"presentation","data-orientation":w}),[Z,i?.wrapper,w,Z.wrapper]),ee=g.useCallback((te={})=>({...te,...E,className:Z.description({class:P(i?.description,te?.className)})}),[Z,i?.description,E,Z.description]),ue=g.useCallback((te={})=>({...te,...U,className:Z.errorMessage({class:P(i?.errorMessage,te?.className)})}),[Z,i?.errorMessage,U]);return{Component:M,children:l,label:u,context:G,description:D,isInvalid:K,errorMessage:typeof k=="function"?k({isInvalid:K,validationErrors:T,validationDetails:V}):k||T?.join(" "),getGroupProps:ne,getLabelProps:X,getWrapperProps:q,getDescriptionProps:ee,getErrorMessageProps:ue}}var[TO,DO]=gn({name:"RadioGroupContext",strict:!1}),C2=Se((e,t)=>{const{Component:r,children:n,label:o,context:s,description:a,isInvalid:i,errorMessage:l,getGroupProps:u,getLabelProps:c,getWrapperProps:d,getDescriptionProps:p,getErrorMessageProps:h}=EO({...e,ref:t});return f.jsxs(r,{...u(),children:[o&&f.jsx("span",{...c(),children:o}),f.jsx("div",{...d(),children:f.jsx(TO,{value:s,children:n})}),i&&l?f.jsx("div",{...h(),children:l}):a?f.jsx("div",{...p(),children:a}):null]})});C2.displayName="HeroUI.RadioGroup";var ph=C2;function _O(e){var t,r,n,o,s;const a=et(),i=DO(),{as:l,ref:u,classNames:c,id:d,value:p,children:h,description:m,size:b=(t=i?.size)!=null?t:"md",color:v=(r=i?.color)!=null?r:"primary",isDisabled:y=(n=i?.isDisabled)!=null?n:!1,disableAnimation:x=(s=(o=i?.disableAnimation)!=null?o:a?.disableAnimation)!=null?s:!1,onChange:w=i?.onChange,autoFocus:C=!1,className:S,...k}=e;i&&Vm&&("checked"in k&&Jn('Remove props "checked" if in the Radio.Group.',"Radio"),p===void 0&&Jn('Props "value" must be defined if in the Radio.Group.',"Radio"));const D=l||"label",$=Pe(u),_=g.useRef(null),N=g.useId(),A=g.useId(),M=g.useMemo(()=>{var ve;return(ve=i.isRequired)!=null?ve:!1},[i.isRequired]),O=i.isInvalid,L=g.useMemo(()=>{const ve=[k["aria-describedby"],A].filter(Boolean).join(" ")||void 0;return{id:d,isRequired:M,isDisabled:y,"aria-label":k["aria-label"],"aria-labelledby":k["aria-labelledby"]||N,"aria-describedby":ve}},[d,y,M,m,k["aria-label"],k["aria-labelledby"],k["aria-describedby"],A]),{inputProps:I,isDisabled:z,isSelected:F,isPressed:B}=PO({value:p,children:typeof h=="function"?!0:h,...L},i.groupState,_),{focusProps:U,isFocused:E,isFocusVisible:j}=rt({autoFocus:C}),T=z||I.readOnly,{hoverProps:V,isHovered:K}=vt({isDisabled:T}),G=T?!1:B,Z=g.useMemo(()=>s$({color:v,size:b,isInvalid:O,isDisabled:z,disableAnimation:x}),[v,b,z,O,x]),W=P(c?.base,S),ne=g.useCallback((ve={})=>({...ve,ref:$,className:Z.base({class:P(W,ve?.className)}),"data-disabled":H(z),"data-focus":H(E),"data-focus-visible":H(j),"data-selected":H(F),"data-invalid":H(O),"data-hover":H(K),"data-pressed":H(G),"data-hover-unselected":H(K&&!F),"data-readonly":H(I.readOnly),"aria-required":H(M),...ie(V,k)}),[Z,W,$,z,E,j,F,O,K,G,I.readOnly,M,k]),X=g.useCallback((ve={})=>({...ve,"aria-hidden":!0,className:Z.wrapper({class:P(c?.wrapper,ve.className)})}),[Z,c?.wrapper]),q=g.useCallback((ve={})=>({ref:_,...ie(ve,I,U),className:Z.hiddenInput({class:c?.hiddenInput}),onChange:nr(I.onChange,w)}),[I,U,w]),ee=g.useCallback((ve={})=>({...ve,id:N,className:Z.label({class:c?.label})}),[Z,c?.label,z,F,O]),ue=g.useCallback((ve={})=>({...ve,className:Z.labelWrapper({class:c?.labelWrapper})}),[Z,c?.labelWrapper]),te=g.useCallback((ve={})=>({...ve,className:Z.control({class:c?.control})}),[Z,c?.control]),Ee=g.useCallback((ve={})=>({...ve,id:A,className:Z.description({class:c?.description})}),[Z,c?.description]);return{Component:D,children:h,isSelected:F,isDisabled:z,isInvalid:O,isFocusVisible:j,description:m,getBaseProps:ne,getWrapperProps:X,getInputProps:q,getLabelProps:ee,getLabelWrapperProps:ue,getControlProps:te,getDescriptionProps:Ee}}var S2=Se((e,t)=>{const{Component:r,children:n,description:o,getBaseProps:s,getWrapperProps:a,getInputProps:i,getLabelProps:l,getLabelWrapperProps:u,getControlProps:c,getDescriptionProps:d}=_O({...e,ref:t});return f.jsxs(r,{...s(),children:[f.jsx("input",{...i()}),f.jsx("span",{...a(),children:f.jsx("span",{...c()})}),f.jsxs("div",{...u(),children:[n&&f.jsx("span",{...l(),children:n}),o&&f.jsx("span",{...d(),children:o})]})]})});S2.displayName="HeroUI.Radio";var Bs=S2;function IO({id:e,options:t,value:r,onChange:n,classNames:o}){return f.jsx(ph,{size:"sm",value:r,onValueChange:n,classNames:{base:P(o?.radioGroup?.base),wrapper:P(o?.radioGroup?.wrapper),label:P(o?.radioGroup?.label),description:P(o?.radioGroup?.description),errorMessage:P(o?.radioGroup?.errorMessage)},children:t.map(s=>f.jsx(Bs,{color:"primary",value:s.value,name:s.value,classNames:{base:P(o?.radio?.base),wrapper:P(o?.radio?.wrapper),hiddenInput:P(o?.radio?.hiddenInput),labelWrapper:P("ml-2",o?.radio?.labelWrapper),label:P(o?.radio?.label),control:P(o?.radio?.control),description:P(o?.radio?.description)},children:s.descriptiveName},`${e}-${s.value}`))})}function AO({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:a,formatType:i,onChange:l,classNames:u}){const{from:c,to:d}=Zt(n),[p,h]=g.useState([c??e,d??t]),[m,b]=p;return g.useEffect(()=>{n||h([e,t])},[n,e,t]),Nr(()=>{const{from:v,to:y}=Zt(n);v&&y&&(v!==m||y!==b)&&h([v,y])},[n]),f.jsx(fh,{size:"sm",step:r,hideValue:!0,label:`${ur(m,i)} - ${ur(b,i)}`,minValue:e,maxValue:s,value:p,onChange:v=>{if(!Array.isArray(v))return;const y=cn(v[0],o);if(v[1]>=s)return h([y,t]);h([y,cn(v[1],o)])},onChangeEnd:v=>{if(!Array.isArray(v))return;const y=cn(v[0],o);if(v[1]>=s)return l(`${y}-${t}`);l(`${y}-${cn(v[1],o)}`)},marks:a,classNames:{...u,track:P("h-2",u?.track)}})}function NO(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:s,name:a,form:i,children:l,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:p,onPressStart:h,onPressEnd:m,onPressChange:b,onPress:v,onPressUp:y,onClick:x}=e,w=O=>{O.stopPropagation(),t.setSelected(O.target.checked)},C=l!=null,S=u!=null||c!=null;!C&&!S&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:k,isPressed:D}=jt({onPressStart:h,onPressEnd:m,onPressChange:b,onPress:v,onPressUp:y,onClick:x,isDisabled:n}),{pressProps:$,isPressed:_}=jt({onPressStart:h,onPressEnd:m,onPressChange:b,onPressUp:y,onClick:x,onPress(O){var L;v?.(O),t.toggle(),(L=r.current)===null||L===void 0||L.focus()},isDisabled:n||o}),{focusableProps:N}=rn(e,r),A=Ce(k,N),M=Bt(e,{labelable:!0});return Ta(r,t.defaultSelected,t.setSelected),{labelProps:Ce($,{onClick:O=>O.preventDefault()}),inputProps:Ce(M,{"aria-invalid":p||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:w,disabled:n,...s==null?{}:{value:s},name:a,form:i,type:"checkbox",...A}),isSelected:t.isSelected,isPressed:D||_,isDisabled:n,isReadOnly:o,isInvalid:p||d==="invalid"}}function k2(e,t,r){let n=Oo({...e,value:t.isSelected}),{isInvalid:o,validationErrors:s,validationDetails:a}=n.displayValidation,{labelProps:i,inputProps:l,isSelected:u,isPressed:c,isDisabled:d,isReadOnly:p}=NO({...e,isInvalid:o},t,r);ji(e,n,r);let{isIndeterminate:h,isRequired:m,validationBehavior:b="aria"}=e;g.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)});let{pressProps:v}=jt({isDisabled:d||p,onPress(){let{[Oi]:y}=e,{commitValidation:x}=y||n;x()}});return{labelProps:Ce(i,v,g.useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:{...l,checked:u,"aria-required":m&&b==="aria"||void 0,required:m&&b==="native"},isSelected:u,isPressed:c,isDisabled:d,isReadOnly:p,isInvalid:o,validationErrors:s,validationDetails:a}}const P2=new WeakMap;function MO(e,t){let{isDisabled:r,name:n,form:o,validationBehavior:s="aria"}=e,{isInvalid:a,validationErrors:i,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:p}=Mi({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||i});P2.set(t,{name:n,form:o,descriptionId:d.id,errorMessageId:p.id,validationBehavior:s});let h=Bt(e,{labelable:!0}),{focusWithinProps:m}=kn({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Ce(h,{role:"group","aria-disabled":r||void 0,...c,...m}),labelProps:u,descriptionProps:d,errorMessageProps:p,isInvalid:a,validationErrors:i,validationDetails:l}}function $2(e={}){let{isReadOnly:t}=e,[r,n]=hr(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=g.useState(r);function s(l){t||n(l)}function a(){t||n(!r)}var i;return{isSelected:r,defaultSelected:(i=e.defaultSelected)!==null&&i!==void 0?i:o,setSelected:s,toggle:a}}function OO(e,t,r){const n=$2({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,form:s,descriptionId:a,errorMessageId:i,validationBehavior:l}=P2.get(t);var u;l=(u=e.validationBehavior)!==null&&u!==void 0?u:l;let{realtimeValidation:c}=Oo({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=g.useRef(Mo),p=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};g.useEffect(p);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:c,m=l==="native"?t.displayValidation:h;var b;let v=k2({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||s,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:l,[Oi]:{realtimeValidation:h,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){d.current=y,p()}}},n,r);return{...v,inputProps:{...v.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?i:null,a].filter(Boolean).join(" ")||void 0}}}function jO(e={}){let[t,r]=hr(e.value,e.defaultValue||[],e.onChange),[n]=g.useState(t),o=!!e.isRequired&&t.length===0,s=g.useRef(new Map),a=Oo({...e,value:t}),i=a.displayValidation.isInvalid;var l,u;return{...a,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(d){e.isReadOnly||e.isDisabled||r(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||r(p=>p.includes(d)?p:p.concat(d))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&r(t.filter(p=>p!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?r(t.filter(p=>p!==d)):r(t.concat(d)))},setInvalid(d,p){let h=new Map(s.current);p.isInvalid?h.set(d,p):h.delete(d),s.current=h,a.updateValidation(v7(...h.values()))},validationState:(u=e.validationState)!==null&&u!==void 0?u:i?"invalid":null,isInvalid:i,isRequired:o}}function FO(e){var t,r;const n=et(),{validationBehavior:o}=jo(In)||{},{as:s,ref:a,classNames:i,children:l,label:u,radius:c,value:d,name:p,defaultValue:h,isInvalid:m,validationState:b,size:v="md",color:y="primary",orientation:x="vertical",lineThrough:w=!1,isDisabled:C=!1,validationBehavior:S=(t=o??n?.validationBehavior)!=null?t:"native",disableAnimation:k=(r=n?.disableAnimation)!=null?r:!1,isReadOnly:D,isRequired:$,onValueChange:_,description:N,errorMessage:A,className:M,...O}=e,L=s||"div",I=typeof L=="string",z=Pe(a),F=g.useMemo(()=>({...O,value:d,name:p,"aria-label":na(O["aria-label"],u),defaultValue:h,isRequired:$,isReadOnly:D,orientation:x,validationBehavior:S,isInvalid:b==="invalid"||m,onChange:nr(e.onChange,_)}),[d,p,u,h,$,D,x,_,m,b,S,O["aria-label"],O]),B=jO(F),{labelProps:U,groupProps:E,descriptionProps:j,errorMessageProps:T,validationErrors:V,validationDetails:K}=MO(F,B),G=g.useMemo(()=>({size:v,color:y,radius:c,lineThrough:w,isInvalid:B.isInvalid,isDisabled:C,disableAnimation:k,validationBehavior:S,groupState:B}),[v,y,c,w,C,k,S,B.value,B.isDisabled,B.isReadOnly,B.isInvalid,B.isSelected]),Z=g.useMemo(()=>o$({isRequired:$,isInvalid:B.isInvalid,disableAnimation:k}),[$,B.isInvalid,,k]),W=P(i?.base,M),ne=g.useCallback(()=>({ref:z,className:Z.base({class:W}),...ie(E,Fe(O,{enabled:I}))}),[Z,z,W,E,O]),X=g.useCallback(()=>({className:Z.label({class:i?.label}),...U}),[Z,U,i?.label]),q=g.useCallback(()=>({className:Z.wrapper({class:i?.wrapper}),role:"presentation","data-orientation":x}),[Z,x,i?.wrapper]),ee=g.useCallback((te={})=>({...te,...j,className:Z.description({class:P(i?.description,te?.className)})}),[Z,j,i?.description]),ue=g.useCallback((te={})=>({...te,...T,className:Z.errorMessage({class:P(i?.errorMessage,te?.className)})}),[Z,T,i?.errorMessage]);return{Component:L,children:l,label:u,context:G,description:N,isInvalid:B.isInvalid,errorMessage:typeof A=="function"?A({isInvalid:B.isInvalid,validationErrors:V,validationDetails:K}):A||V?.join(" "),getGroupProps:ne,getLabelProps:X,getWrapperProps:q,getDescriptionProps:ee,getErrorMessageProps:ue}}var[BO,zO]=gn({name:"CheckboxGroupContext",strict:!1}),E2=Se((e,t)=>{const{children:r,context:n,label:o,description:s,isInvalid:a,errorMessage:i,getGroupProps:l,getLabelProps:u,getWrapperProps:c,getDescriptionProps:d,getErrorMessageProps:p}=FO({...e,ref:t});return f.jsxs("div",{...l(),children:[o&&f.jsx("span",{...u(),children:o}),f.jsx("div",{...c(),children:f.jsx(BO,{value:n,children:r})}),a&&i?f.jsx("div",{...p(),children:i}):s?f.jsx("div",{...d(),children:s}):null]})});E2.displayName="HeroUI.CheckboxGroup";var LO=E2;function VO(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...n,children:f.jsx("polyline",{points:"1 9 7 14 15 4"})})}function RO(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:f.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function KO(e){const{isIndeterminate:t,...r}=e,n=t?RO:VO;return f.jsx(n,{...r})}function WO(e={}){var t,r,n,o,s,a,i,l;const u=et(),c=zO(),{validationBehavior:d}=jo(In)||{},p=!!c,{as:h,ref:m,value:b="",children:v,icon:y,name:x,isRequired:w,isReadOnly:C=!1,autoFocus:S=!1,isSelected:k,size:D=(t=c?.size)!=null?t:"md",color:$=(r=c?.color)!=null?r:"primary",radius:_=c?.radius,lineThrough:N=(n=c?.lineThrough)!=null?n:!1,isDisabled:A=(o=c?.isDisabled)!=null?o:!1,disableAnimation:M=(a=(s=c?.disableAnimation)!=null?s:u?.disableAnimation)!=null?a:!1,validationState:O,isInvalid:L=O?O==="invalid":(i=c?.isInvalid)!=null?i:!1,isIndeterminate:I=!1,validationBehavior:z=p?c.validationBehavior:(l=d??u?.validationBehavior)!=null?l:"native",defaultSelected:F,classNames:B,className:U,onValueChange:E,validate:j,...T}=e;c&&Vm&&(k&&Jn("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),F&&Jn("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const V=h||"label",K=g.useRef(null),G=g.useRef(null);let Z=e.onChange;p&&(Z=nr(()=>{c.groupState.resetValidation()},Z));const W=g.useId(),ne=g.useMemo(()=>({name:x,value:b,children:v,autoFocus:S,defaultSelected:F,isIndeterminate:I,isRequired:w,isInvalid:L,isSelected:k,isDisabled:A,isReadOnly:C,"aria-label":na(T["aria-label"],v),"aria-labelledby":T["aria-labelledby"]||W,onChange:E}),[x,b,v,S,F,I,w,L,k,A,C,T["aria-label"],T["aria-labelledby"],W,E]),X=$2(ne),q={isInvalid:L,isRequired:w,validate:j,validationState:O,validationBehavior:z},{inputProps:ee,isSelected:ue,isDisabled:te,isReadOnly:Ee,isPressed:ve,isInvalid:oe}=p?OO({...ne,...q},c.groupState,G):k2({...ne,...q},X,G),pe=te||Ee,xe=O==="invalid"||L||oe,he=pe?!1:ve,{hoverProps:se,isHovered:He}=vt({isDisabled:ee.disabled}),{focusProps:ge,isFocused:_e,isFocusVisible:Ke}=rt({autoFocus:ee.autoFocus}),qe=g.useMemo(()=>n$({color:$,size:D,radius:_,isInvalid:xe,lineThrough:N,isDisabled:te,disableAnimation:M}),[$,D,_,xe,N,te,M]);$n(()=>{if(!G.current)return;const Je=!!G.current.checked;X.setSelected(Je)},[G.current]);const wt=yI(Z),Ct=g.useCallback(Je=>{if(Ee||te){Je.preventDefault();return}wt?.(Je)},[Ee,te,wt]),Ge=P(B?.base,U),Ne=g.useCallback(()=>({ref:K,className:qe.base({class:Ge}),"data-disabled":H(te),"data-selected":H(ue||I),"data-invalid":H(xe),"data-hover":H(He),"data-focus":H(_e),"data-pressed":H(he),"data-readonly":H(ee.readOnly),"data-focus-visible":H(Ke),"data-indeterminate":H(I),...ie(se,T)}),[qe,Ge,te,ue,I,xe,He,_e,he,ee.readOnly,Ke,se,T]),mt=g.useCallback((Je={})=>({...Je,"aria-hidden":!0,className:qe.wrapper({class:P(B?.wrapper,Je?.className)})}),[qe,B?.wrapper]),St=g.useCallback(()=>({ref:ru(G,m),...ie(ee,ge),className:qe.hiddenInput({class:B?.hiddenInput}),onChange:nr(ee.onChange,Ct)}),[ee,ge,Ct,B?.hiddenInput]),gt=g.useCallback(()=>({id:W,className:qe.label({class:B?.label})}),[qe,B?.label,te,ue,xe]),er=g.useCallback(()=>({isSelected:ue,isIndeterminate:I,disableAnimation:M,className:qe.icon({class:B?.icon})}),[qe,B?.icon,ue,I,M]);return{Component:V,icon:y,children:v,isSelected:ue,isDisabled:te,isInvalid:xe,isFocused:_e,isHovered:He,isFocusVisible:Ke,getBaseProps:Ne,getWrapperProps:mt,getInputProps:St,getLabelProps:gt,getIconProps:er}}var T2=Se((e,t)=>{const{Component:r,children:n,icon:o=f.jsx(KO,{}),getBaseProps:s,getWrapperProps:a,getInputProps:i,getIconProps:l,getLabelProps:u}=WO({...e,ref:t}),c=typeof o=="function"?o(l()):g.cloneElement(o,l());return f.jsxs(r,{...s(),children:[f.jsx("input",{...i()}),f.jsx("span",{...a(),children:c}),n&&f.jsx("span",{...u(),children:n})]})});T2.displayName="HeroUI.Checkbox";var hh=T2;const UO=8,mh=6;function HO({id:e,options:t,values:r=[],onChange:n,classNames:o}){const{t:s}=Oe(),[a,i]=g.useState(!1),l=t.length>UO,u=l?t.slice(mh).filter(p=>r.includes(p.value)):[],c=l&&!a?t.slice(0,mh).concat(u):t,d=l?t.length-mh-u.length:0;return f.jsxs(LO,{value:r,onValueChange:n,classNames:{base:P(o?.checkboxGroup?.base),wrapper:P(o?.checkboxGroup?.wrapper),label:P(o?.checkboxGroup?.label),description:P(o?.checkboxGroup?.description),errorMessage:P(o?.checkboxGroup?.errorMessage)},children:[c.map(p=>f.jsx(hh,{color:"primary",value:p.value,name:p.value,classNames:{base:P(o?.checkbox?.base),wrapper:P("rounded-[calc(var(--elements-radius-medium)*0.6)] before:rounded-[calc(var(--elements-radius-medium)*0.6)] after:rounded-[calc(var(--elements-radius-medium)*0.6)]",o?.checkbox?.wrapper),hiddenInput:P(o?.checkbox?.hiddenInput),icon:P(o?.checkbox?.icon),label:P(o?.checkbox?.label)},children:p.name},`${e}-${p.value}`)),l&&d>0&&f.jsxs("button",{type:"button",className:P("text-sm text-primary-600 w-fit cursor-pointer",o?.collapseLink),onClick:()=>i(p=>!p),children:[s("filters.show")," ",a?s("filters.showLess"):`${s("filters.showMore")} (${d})`]})]})}function qO({type:e,id:t,formatType:r,min:n,max:o,value:s,options:a=[],onChange:i,classNames:l}){const u=a.length>0?[n,...a.map(m=>parseInt(m.value,10)),o]:[],c=u.length>1?Math.min(...u.slice(1).map((m,b)=>m-u[b])):1,d=a.length>0&&o===Gt?u[u.length-2]+c:o,p=[{value:n,label:ur(n,r)},{value:d,label:ur(o,r)}],h={base:P(l?.sliderFilter?.base),labelWrapper:P(l?.sliderFilter?.labelWrapper),label:P(l?.sliderFilter?.label),value:P(l?.sliderFilter?.value),step:P(l?.sliderFilter?.step),trackWrapper:P(l?.sliderFilter?.trackWrapper),track:P(l?.sliderFilter?.track),filler:P(l?.sliderFilter?.filler),thumb:P(l?.sliderFilter?.thumb),mark:P("whitespace-nowrap translate-x-0 not-last-of-type:!-left-3 last-of-type:-right-2 last-of-type:!left-auto",l?.sliderFilter?.mark)};switch(e){case"min":return f.jsx(wO,{id:t,formatType:r,min:n,max:o,step:c,value:s,options:u,maxOptionValue:d,marks:p,onChange:i,classNames:h});case"max":return f.jsx(xO,{id:t,formatType:r,min:n,max:o,step:c,value:s,options:u,maxOptionValue:d,marks:p,onChange:i,classNames:h});case"range":return f.jsx(AO,{id:t,formatType:r,min:n,max:o,step:c,value:s,options:u,maxOptionValue:d,marks:p,onChange:i,classNames:h});case"checkbox":return a.length===0||typeof s=="string"?null:f.jsx(HO,{id:t,options:a,values:s,onChange:i,classNames:l?.selectFilter});case"radio":return a.length===0||s&&typeof s!="string"?null:f.jsx(IO,{id:t,options:a,value:s,onChange:i,classNames:l?.radioFilter});default:return null}}function D2(){const{t:e}=Oe(),{filters:t}=nt(),{filterOptions:r,activeFilters:n,handleFilterChange:o}=yr();return r.length===0||r.every(s=>s.type==="hidden")?null:f.jsx("div",{className:P("min-w-60 shrink-0",t?.base),children:f.jsx("div",{className:P("flex flex-col gap-6",t?.filterWrapper),children:r.map(s=>s.type==="hidden"||["sorteren","telefoons"].includes(s.slug)?null:f.jsxs("div",{className:P(t?.filterGroup),children:[f.jsx("div",{className:P("font-bold text-foreground text-base mb-1",t?.filterLabel),children:e(s.column==="tags"?`filterOptions.tags_${s.slug}`:`filterOptions.${s.column}`,{defaultValue:s.name})}),f.jsx(qO,{...s,min:s.min??0,max:s.max??Gt,value:vr(n,s.slug),onChange:a=>o({slug:s.slug,value:a}),classNames:t})]},s.id))})})}const _2=g.createContext({modal:null,setModal:e=>{}});function GO({children:e}){const[t,r]=g.useState(null);return f.jsx(_2,{value:{modal:t,setModal:r},children:e})}function Wi(e){const{modal:t,setModal:r}=g.useContext(_2);return{isOpen:t===e,setModal:r}}/*! js-cookie v3.0.5 | MIT */function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var ZO={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function gh(e,t){function r(o,s,a){if(!(typeof document>"u")){a=Ui({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var l in a)a[l]&&(i+="; "+l,a[l]!==!0&&(i+="="+a[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+i}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},i=0;i<s.length;i++){var l=s[i].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=e.read(u,c),o===c)break}catch{}}return o?a[o]:a}}return Object.create({set:r,get:n,remove:function(o,s){r(o,"",Ui({},s,{expires:-1}))},withAttributes:function(o){return gh(this.converter,Ui({},this.attributes,o))},withConverter:function(o){return gh(Ui({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var I2=gh(ZO,{path:"/"});function bh(e){return JSON.parse(I2.get(e)||"{}")}function vh(e,t,r){I2.set(e,JSON.stringify(t),{...r,path:"/"})}function J(e,t,r){function n(i,l){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),i._zod.traits.has(e))return;i._zod.traits.add(e),t(i,l);const u=a.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){const p=c[d];p in i||(i[p]=u[p].bind(i))}}const o=r?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function a(i){var l;const u=r?.Parent?new s:this;n(u,i),(l=u._zod).deferred??(l.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:i=>r?.Parent&&i instanceof r.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class Vo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class A2 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const N2={};function Mn(e){return N2}function M2(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function yh(e,t){return typeof t=="bigint"?t.toString():t}function xh(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function wh(e){return e==null}function Ch(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const O2=Symbol("evaluating");function ze(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==O2)return n===void 0&&(n=O2,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function On(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function dn(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function j2(e){return JSON.stringify(e)}function YO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const F2="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const JO=xh(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function zs(e){if(Hi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Hi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function B2(e){return zs(e)?{...e}:Array.isArray(e)?[...e]:e}const XO=new Set(["string","number","symbol"]);function qi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fn(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ye(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function QO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function ej(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=dn(e._zod.def,{get shape(){const a={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(a[i]=r.shape[i])}return On(this,"shape",a),a},checks:[]});return fn(e,s)}function tj(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=dn(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete a[i]}return On(this,"shape",a),a},checks:[]});return fn(e,s)}function rj(e,t){if(!zs(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const s=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(s,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=dn(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return On(this,"shape",s),s}});return fn(e,o)}function nj(e,t){if(!zs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=dn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return On(this,"shape",n),n}});return fn(e,r)}function oj(e,t){const r=dn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return On(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return fn(e,r)}function sj(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=dn(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(r)for(const u in r){if(!(u in i))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:i[u]}):i[u])}else for(const u in i)l[u]=e?new e({type:"optional",innerType:i[u]}):i[u];return On(this,"shape",l),l},checks:[]});return fn(t,a)}function aj(e,t,r){const n=dn(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(r)for(const a in r){if(!(a in s))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)s[a]=new e({type:"nonoptional",innerType:o[a]});return On(this,"shape",s),s}});return fn(t,n)}function Ro(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function z2(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Gi(e){return typeof e=="string"?e:e?.message}function jn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Gi(e.inst?._zod.def?.error?.(e))??Gi(t?.error?.(e))??Gi(r.customError?.(e))??Gi(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Sh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ls(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const L2=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,yh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},V2=J("$ZodError",L2),R2=J("$ZodError",L2,{Parent:Error});function ij(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function lj(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>n({issues:a}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)r._errors.push(t(s));else{let a=r,i=0;for(;i<s.path.length;){const l=s.path[i];i===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(s))):a[l]=a[l]||{_errors:[]},a=a[l],i++}}};return n(e),r}const kh=e=>(t,r,n,o)=>{const s=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new Vo;if(a.issues.length){const i=new(o?.Err??e)(a.issues.map(l=>jn(l,s,Mn())));throw F2(i,o?.callee),i}return a.value},Ph=e=>async(t,r,n,o)=>{const s=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){const i=new(o?.Err??e)(a.issues.map(l=>jn(l,s,Mn())));throw F2(i,o?.callee),i}return a.value},Zi=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Vo;return s.issues.length?{success:!1,error:new(e??V2)(s.issues.map(a=>jn(a,o,Mn())))}:{success:!0,data:s.value}},uj=Zi(R2),Yi=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>jn(a,o,Mn())))}:{success:!0,data:s.value}},cj=Yi(R2),dj=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return kh(e)(t,r,o)},fj=e=>(t,r,n)=>kh(e)(t,r,n),pj=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ph(e)(t,r,o)},hj=e=>async(t,r,n)=>Ph(e)(t,r,n),mj=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Zi(e)(t,r,o)},gj=e=>(t,r,n)=>Zi(e)(t,r,n),bj=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Yi(e)(t,r,o)},vj=e=>async(t,r,n)=>Yi(e)(t,r,n),yj=/^[cC][^\s-]{8,}$/,xj=/^[0-9a-z]+$/,wj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cj=/^[0-9a-vA-V]{20}$/,Sj=/^[A-Za-z0-9]{27}$/,kj=/^[a-zA-Z0-9_-]{21}$/,Pj=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$j=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,K2=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ej=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Tj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dj(){return new RegExp(Tj,"u")}const _j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ij=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Aj=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Nj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Mj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,W2=/^[A-Za-z0-9_-]*$/,Oj=/^\+[1-9]\d{6,14}$/,U2="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jj=new RegExp(`^${U2}$`);function H2(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Fj(e){return new RegExp(`^${H2(e)}$`)}function Bj(e){const t=H2({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${U2}T(?:${n})$`)}const zj=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Lj=/^(?:true|false)$/i,Vj=/^[^A-Z]*$/,Rj=/^[^a-z]*$/,xr=J("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Kj=J("$ZodCheckMaxLength",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!wh(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const a=Sh(o);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Wj=J("$ZodCheckMinLength",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!wh(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const a=Sh(o);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Uj=J("$ZodCheckLengthEquals",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!wh(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,s=o.length;if(s===t.length)return;const a=Sh(o),i=s>t.length;n.issues.push({origin:a,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ji=J("$ZodCheckStringFormat",(e,t)=>{var r,n;xr.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Hj=J("$ZodCheckRegex",(e,t)=>{Ji.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qj=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Vj),Ji.init(e,t)}),Gj=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Rj),Ji.init(e,t)}),Zj=J("$ZodCheckIncludes",(e,t)=>{xr.init(e,t);const r=qi(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Yj=J("$ZodCheckStartsWith",(e,t)=>{xr.init(e,t);const r=new RegExp(`^${qi(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Jj=J("$ZodCheckEndsWith",(e,t)=>{xr.init(e,t);const r=new RegExp(`.*${qi(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Xj=J("$ZodCheckOverwrite",(e,t)=>{xr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Qj{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
845
|
+
`;function c2(e){const{col:t,ranges:r,values:n}=Y8(e),o=e.operator==="and";if(o&&r)return r.map(s=>({col:t,ranges:[s]}));if(o&&n){if(n.length===0)return[{col:t,values:n}];const s=n[0];if(typeof s=="string")return n.map(a=>({col:t,values:[a]}));if(typeof s=="number")return n.map(a=>({col:t,values:[a]}));if(typeof s=="boolean")return n.map(a=>({col:t,values:[a]}))}return[{col:t,ranges:r,values:n}]}function Y8({col:e,values:t,valueType:r}){return t.length===0?{col:e,values:t}:r==="boolean"?{col:e,values:a2(t)}:(r==="integer"||r==="decimal")&&t.every(s2)?{col:e,ranges:t.map(Zt)}:(r==="integer"||r==="decimal")&&t.every(o2)?{col:e,values:t.map(i2)}:r==="string"?{col:e,values:t}:t.every(V8)?{col:e,values:a2(t)}:t.every(s2)?{col:e,ranges:t.map(Zt)}:t.every(o2)?{col:e,values:t.map(i2)}:{col:e,values:t}}function J8({key:e,col:t,type:r,filter:n=!1,options:o=[]}){const[{values:s,ranges:a}]=c2({col:t,values:o});switch(r){case"max":return[{key:`max_${e}`,metric:Lo.Max,col:t}];case"min":return[{key:`min_${e}`,metric:Lo.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:Lo.Min,col:t},{key:`max_${e}`,metric:Lo.Max,col:t}];case"values":return a?[{key:e,col:t,filter:n,ranges:a}]:s&&s.length>0?[{key:e,col:t,filter:n,include:s}]:[{key:e,col:t,filter:n}]}}class X8{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...c2(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...J8(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:Lo.Cardinality,col:this._groupBy}]:this._aggregations}}}function Q8({filterOptions:e,filterValues:t,limit:r=10,currentProvider:n,distinctProperties:o}){const s=new X8;s.limit(r);const a=vr(t,"sorteren");return a&&s.sort(a),t.forEach(i=>{const l=zo(e,i.slug);if(!l)return;let u;if(["range","min","max"].includes(l.type)&&Array.isArray(i.value)&&i.value.length===2){const[c,d]=i.value;u=[`${c}-${d}`]}else u=(Array.isArray(i.value)?i.value:[i.value]).map(String);s.where({col:l.column,values:u,valueType:l.valueType,operator:l.operator})}),n&&s.where({col:"current_provider",values:[n]}),o&&o.forEach(i=>{s.where({col:"distinct_properties",values:[[i.label.toLowerCase(),i.option.slug].join(":")]})}),s}function yr(){return g.useContext(r2)}function eO(e){const[t,r]=pt(e,Dm.variantKeys),{ref:n,as:o,children:s,avatar:a,startContent:i,endContent:l,onClose:u,classNames:c,className:d,...p}=t,h=o||"div",m=Pe(n),b=P(c?.base,d),v=!!u,y=e.variant==="dot",{focusProps:x,isFocusVisible:w}=nt(),C=g.useMemo(()=>typeof s=="string"&&s?.length===1,[s]),S=g.useMemo(()=>!!a||!!i,[a,i]),k=g.useMemo(()=>!!l||v,[l,v]),D=g.useMemo(()=>Dm({...r,hasStartContent:S,hasEndContent:k,isOneChar:C,isCloseable:v,isCloseButtonFocusVisible:w}),[ft(r),w,S,k,C,v]),{pressProps:$}=jt({isDisabled:!!e?.isDisabled,onPress:u}),_=()=>({ref:m,className:D.base({class:b}),...p}),N=()=>({role:"button",tabIndex:0,className:D.closeButton({class:c?.closeButton}),"aria-label":"close chip",...ie($,x)}),A=O=>g.isValidElement(O)?g.cloneElement(O,{className:D.avatar({class:c?.avatar})}):null,M=O=>g.isValidElement(O)?g.cloneElement(O,{className:P("max-h-[80%]",O.props.className)}):null;return{Component:h,children:s,slots:D,classNames:c,isDot:y,isCloseable:v,startContent:A(a)||M(i),endContent:M(l),getCloseButtonProps:N,getChipProps:_}}var d2=Se((e,t)=>{const{Component:r,children:n,slots:o,classNames:s,isDot:a,isCloseable:i,startContent:l,endContent:u,getCloseButtonProps:c,getChipProps:d}=eO({...e,ref:t}),p=g.useMemo(()=>a&&!l?f.jsx("span",{className:o.dot({class:s?.dot})}):l,[o,l,a]),h=g.useMemo(()=>i?f.jsx("span",{...c(),children:u||f.jsx(Kc,{})}):u,[u,i,c]);return f.jsxs(r,{...d(),children:[p,f.jsx("span",{className:o.content({class:s?.content}),children:n}),h]})});d2.displayName="HeroUI.Chip";var f2=d2;function tO({filter:e,children:t,onRemove:r,classNames:n}){const o=g.useRef(null),s=g.useCallback(()=>r(e),[e,r]),a=g.useCallback(i=>{(i.key==="Delete"||i.key==="Backspace")&&(i.preventDefault(),s())},[s]);return f.jsx(f2,{ref:o,onClose:s,onKeyDown:a,variant:"flat",color:"primary",tabIndex:0,classNames:n,endContent:f.jsx(qE,{size:12}),children:t})}function p2({className:e}){const{activeFilterChips:t}=Ye(),{activeFilters:r,filterOptions:n,distinctProperties:o,getActiveFilterValue:s,handleFilterChange:a,handleFilterRemove:i}=yr(),[l]=s("telefoons"),{product:u}=Bd(l,o),c=g.useRef(null),d=g.useCallback(p=>{i(p),p.slug==="telefoons"&&a({slug:"sorteren",value:"relevantie"}),setTimeout(()=>{if(!c.current)return;const h=c.current.querySelectorAll('[tabindex="0"]');h.length>0&&h[0].focus()},0)},[i,a]);return!r||r.length===0||r.every(p=>{const h=zo(n,p.slug);return!h||h.type==="hidden"||p.slug==="sorteren"})?null:f.jsx("fieldset",{ref:c,className:P("flex flex-wrap gap-2",e,t?.container),children:r.map(p=>{const h=zo(n,p.slug);return!h||h.type==="hidden"||p.slug==="sorteren"?null:f.jsx(tO,{filter:p,onRemove:d,classNames:{base:t?.filterChip?.base,content:P("text-sm",t?.filterChip?.content),closeButton:P("pr-1",t?.filterChip?.closeButton)},children:p.slug==="telefoons"&&u?.fullName?u.fullName:W8(p,h)},p.slug)})})}function rO({children:e}){const{t}=Oe(),[r,n]=g.useState(!1),{filterModal:o,filterButton:s}=Ye(),{filterOptions:a,activeFilters:i}=yr(),{popoverProps:l}=on(),u=g.useMemo(()=>i.reduce((c,d)=>{const p=zo(a,d.slug);return!p||p.type==="hidden"||d.slug==="sorteren"?c:c+1},0),[i,a]);return f.jsxs(f.Fragment,{children:[f.jsx(Ht,{className:s,onPress:()=>n(!0),color:"primary",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,startContent:f.jsx(Ig,{size:16,className:"stroke-primary-foreground shrink-0"}),endContent:u>0&&f.jsxs("span",{children:["(",u,")"]}),children:t("filters.title")}),f.jsx($o,{isOpen:r,onOpenChange:n,placement:"bottom-center",scrollBehavior:"inside",size:"xl",portalContainer:l.portalContainer,classNames:{backdrop:P(o?.backdrop),wrapper:P(o?.wrapper),base:P(o?.base),header:P("flex items-center gap-1 text-foreground",o?.header),body:P(o?.body),footer:P(o?.footer),closeButton:P("cursor-pointer right-6 top-3.5",o?.closeButton)},children:f.jsx(ko,{children:c=>f.jsxs(f.Fragment,{children:[f.jsxs(Po,{children:[f.jsx(Ig,{size:20,className:"stroke-foreground"}),t("filters.title")]}),f.jsxs(So,{children:[e,f.jsx(D2,{})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",o?.primaryButton),onPress:c,color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("filters.applyFilters")})})]})})})]})}const ch=new WeakMap;function dh(e,t){let r=ch.get(e);if(!r)throw new Error("Unknown slider state");return`${r.id}-${t}`}function nO(e,t,r){let{labelProps:n,fieldProps:o}=Ni(e),s=e.orientation==="vertical";var a;ch.set(t,{id:(a=n.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:i}=Ot(),{addGlobalListener:l,removeGlobalListener:u}=bn();const c=g.useRef(null),d=i==="rtl",p=g.useRef(null),{moveProps:h}=E0({onMoveStart(){p.current=null},onMove({deltaX:y,deltaY:x}){if(!r.current)return;let{height:w,width:C}=r.current.getBoundingClientRect(),S=s?w:C;p.current==null&&c.current!=null&&(p.current=t.getThumbPercent(c.current)*S);let k=s?x:y;if((s||d)&&(k=-k),p.current+=k,c.current!=null&&r.current){const D=oo(p.current/S,0,1);t.setThumbPercent(c.current,D)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let m=g.useRef(void 0),b=(y,x,w,C)=>{if(r.current&&!e.isDisabled&&t.values.every((S,k)=>!t.isThumbDragging(k))){let{height:S,width:k,top:D,left:$}=r.current.getBoundingClientRect(),_=s?S:k,O=((s?C:w)-(s?D:$))/_;(i==="rtl"||s)&&(O=1-O);let L=t.getPercentValue(O),I,z=t.values.findIndex(F=>L-F<0);if(z===0)I=z;else if(z===-1)I=t.values.length-1;else{let F=t.values[z-1],B=t.values[z];Math.abs(F-L)<Math.abs(B-L)?I=z-1:I=z}I>=0&&t.isThumbEditable(I)?(y.preventDefault(),c.current=I,t.setFocusedThumb(I),m.current=x,t.setThumbDragging(c.current,!0),t.setThumbValue(I,L),l(window,"mouseup",v,!1),l(window,"touchend",v,!1),l(window,"pointerup",v,!1)):c.current=null}},v=y=>{var x,w;((w=y.pointerId)!==null&&w!==void 0?w:(x=y.changedTouches)===null||x===void 0?void 0:x[0].identifier)===m.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",v,!1),u(window,"touchend",v,!1),u(window,"pointerup",v,!1))};return"htmlFor"in n&&n.htmlFor&&(delete n.htmlFor,n.onClick=()=>{var y;(y=document.getElementById(dh(t,0)))===null||y===void 0||y.focus(),_c("keyboard")}),{labelProps:n,groupProps:{role:"group",...o},trackProps:Ce({onMouseDown(y){y.button!==0||y.altKey||y.ctrlKey||y.metaKey||b(y,void 0,y.clientX,y.clientY)},onPointerDown(y){y.pointerType==="mouse"&&(y.button!==0||y.altKey||y.ctrlKey||y.metaKey)||b(y,y.pointerId,y.clientX,y.clientY)},onTouchStart(y){b(y,y.changedTouches[0].identifier,y.changedTouches[0].clientX,y.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map((y,x)=>dh(t,x)).join(" "),"aria-live":"off"}}}function oO(e,t){let{index:r=0,isRequired:n,validationState:o,isInvalid:s,trackRef:a,inputRef:i,orientation:l=t.orientation,name:u,form:c}=e,d=e.isDisabled||t.isDisabled,p=l==="vertical",{direction:h}=Ot(),{addGlobalListener:m,removeGlobalListener:b}=bn(),v=ch.get(t);var y;const{labelProps:x,fieldProps:w}=Ni({...e,id:dh(t,r),"aria-labelledby":`${v.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),C=t.values[r],S=g.useCallback(()=>{i.current&&Vt(i.current)},[i]),k=t.focusedThumb===r;g.useEffect(()=>{k&&S()},[k,S]);let D=h==="rtl",$=g.useRef(null),{keyboardProps:_}=P0({onKeyDown(F){let{getThumbMaxValue:B,getThumbMinValue:U,decrementThumb:E,incrementThumb:j,setThumbValue:T,setThumbDragging:V,pageSize:K}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(F.key)){F.continuePropagation();return}switch(F.preventDefault(),V(r,!0),F.key){case"PageUp":j(r,K);break;case"PageDown":E(r,K);break;case"Home":T(r,U(r));break;case"End":T(r,B(r));break}V(r,!1)}}),{moveProps:N}=E0({onMoveStart(){$.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:F,deltaY:B,pointerType:U,shiftKey:E}){const{getThumbPercent:j,setThumbPercent:T,decrementThumb:V,incrementThumb:K,step:G,pageSize:Z}=t;if(!a.current)return;let{width:W,height:ne}=a.current.getBoundingClientRect(),X=p?ne:W;if($.current==null&&($.current=j(r)*X),U==="keyboard")F>0&&D||F<0&&!D||B>0?V(r,E?Z:G):K(r,E?Z:G);else{let q=p?B:F;(p||D)&&(q=-q),$.current+=q,T(r,oo($.current/X,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!d);const{focusableProps:A}=rn(Ce(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),i);let M=g.useRef(void 0),O=F=>{S(),M.current=F,t.setThumbDragging(r,!0),m(window,"mouseup",L,!1),m(window,"touchend",L,!1),m(window,"pointerup",L,!1)},L=F=>{var B,U;((U=F.pointerId)!==null&&U!==void 0?U:(B=F.changedTouches)===null||B===void 0?void 0:B[0].identifier)===M.current&&(S(),t.setThumbDragging(r,!1),b(window,"mouseup",L,!1),b(window,"touchend",L,!1),b(window,"pointerup",L,!1))},I=t.getThumbPercent(r);(p||h==="rtl")&&(I=1-I);let z=d?{}:Ce(_,N,{onMouseDown:F=>{F.button!==0||F.altKey||F.ctrlKey||F.metaKey||O()},onPointerDown:F=>{F.button!==0||F.altKey||F.ctrlKey||F.metaKey||O(F.pointerId)},onTouchStart:F=>{O(F.changedTouches[0].identifier)}});return Ta(i,t.defaultValues[r],F=>{t.setThumbValue(r,F)}),{inputProps:Ce(A,w,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:C,name:u,form:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":n||void 0,"aria-invalid":s||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[v["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[v["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:F=>{t.setThumbValue(r,parseFloat(F.target.value))}}),thumbProps:{...z,style:{position:"absolute",[p?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:k}}function sO(e){const{ref:t,as:r,state:n,index:o,name:s,trackRef:a,className:i,tooltipProps:l,isVertical:u,showTooltip:c,getTooltipValue:d,formatOptions:p,renderThumb:h,...m}=e,b=r||"div",v=Pe(t),y=g.useRef(null),x=sb(p),{thumbProps:w,inputProps:C,isDragging:S,isFocused:k}=oO({index:o,trackRef:a,inputRef:y,name:s,...m},n),{hoverProps:D,isHovered:$}=vt({isDisabled:n.isDisabled}),{focusProps:_,isFocusVisible:N}=nt(),{pressProps:A,isPressed:M}=jt({isDisabled:n.isDisabled});return{Component:b,index:o,showTooltip:c,renderThumb:h,getThumbProps:(z={})=>({ref:v,"data-slot":"thumb","data-hover":H($),"data-pressed":H(M),"data-dragging":H(S),"data-focused":H(k),"data-focus-visible":H(N),"aria-label":z["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...ie(w,A,D,m),className:i,...z}),getTooltipProps:()=>{const z=l?.content?l.content:d?n.values.length===1?d(n.values[o??0]):d(n.values,o??0):n.values[o??0],F=x&&typeof z=="number"?x.format(z):z;return{...l,placement:l?.placement?l?.placement:u?"right":"top",content:l?.content?l?.content:F,updatePositionDeps:[S,$,k,N,F],isOpen:l?.isOpen!==void 0?l?.isOpen:$||S||k||N,role:"tooltip","aria-label":`Current value: ${F}`}},getInputProps:(z={})=>({ref:y,...ie(C,_),...z})}}const aO=1500,h2=500;let An={},iO=0,Fs=!1,Br=null,Nn=null;function lO(e={}){let{delay:t=aO,closeDelay:r=h2}=e,{isOpen:n,open:o,close:s}=gi(e),a=g.useMemo(()=>`${++iO}`,[]),i=g.useRef(null),l=g.useRef(s),u=()=>{An[a]=p},c=()=>{for(let m in An)m!==a&&(An[m](!0),delete An[m])},d=()=>{i.current&&clearTimeout(i.current),i.current=null,c(),u(),Fs=!0,o(),Br&&(clearTimeout(Br),Br=null),Nn&&(clearTimeout(Nn),Nn=null)},p=m=>{m||r<=0?(i.current&&clearTimeout(i.current),i.current=null,l.current()):i.current||(i.current=setTimeout(()=>{i.current=null,l.current()},r)),Br&&(clearTimeout(Br),Br=null),Fs&&(Nn&&clearTimeout(Nn),Nn=setTimeout(()=>{delete An[a],Nn=null,Fs=!1},Math.max(h2,r)))},h=()=>{c(),u(),!n&&!Br&&!Fs?Br=setTimeout(()=>{Br=null,Fs=!0,d()},t):n||d()};return g.useEffect(()=>{l.current=s},[s]),g.useEffect(()=>()=>{i.current&&clearTimeout(i.current),An[a]&&delete An[a]},[a]),{isOpen:n,open:m=>{!m&&t>0&&!i.current?h():d()},close:p}}function uO(e,t){let r=Bt(e,{labelable:!0}),{hoverProps:n}=vt({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Ce(r,n,{role:"tooltip"})}}function cO(e,t,r){let{isDisabled:n,trigger:o,shouldCloseOnPress:s=!0}=e,a=bt(),i=g.useRef(!1),l=g.useRef(!1),u=()=>{(i.current||l.current)&&t.open(l.current)},c=x=>{!i.current&&!l.current&&t.close(x)};g.useEffect(()=>{let x=w=>{r&&r.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",x,!0),()=>{document.removeEventListener("keydown",x,!0)}},[r,t]);let d=()=>{o!=="focus"&&(ys()==="pointer"?i.current=!0:i.current=!1,u())},p=()=>{o!=="focus"&&(l.current=!1,i.current=!1,c())},h=()=>{s&&(l.current=!1,i.current=!1,c(!0))},m=()=>{xo()&&(l.current=!0,u())},b=()=>{l.current=!1,i.current=!1,c(!0)},{hoverProps:v}=vt({isDisabled:n,onHoverStart:d,onHoverEnd:p}),{focusableProps:y}=rn({isDisabled:n,onFocus:m,onBlur:b},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...Ce(y,v,{onPointerDown:h,onKeyDown:h}),tabIndex:void 0},tooltipProps:{id:a}}}function dO(e){var t,r;const n=tt(),[o,s]=pt(e,ta.variantKeys),{ref:a,as:i,isOpen:l,content:u,children:c,defaultOpen:d,onOpenChange:p,isDisabled:h,trigger:m,shouldFlip:b=!0,containerPadding:v=12,placement:y="top",delay:x=0,closeDelay:w=500,showArrow:C=!1,offset:S=7,crossOffset:k=0,isDismissable:D,shouldCloseOnBlur:$=!0,portalContainer:_,isKeyboardDismissDisabled:N=!1,updatePositionDeps:A=[],shouldCloseOnInteractOutside:M,className:O,onClose:L,motionProps:I,classNames:z,...F}=o,B=i||"div",U=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,E=lO({delay:x,closeDelay:w,isDisabled:h,defaultOpen:d,isOpen:l,onOpenChange:oe=>{p?.(oe),oe||L?.()}}),j=g.useRef(null),T=g.useRef(null),V=g.useId(),K=E.isOpen&&!h;g.useImperativeHandle(a,()=>YE(T));const{triggerProps:G,tooltipProps:Z}=cO({isDisabled:h,trigger:m},E,j),{tooltipProps:W}=uO({isOpen:K,...ie(o,Z)},E),{overlayProps:ne,placement:X,updatePosition:q}=a0({isOpen:K,targetRef:j,placement:f1(y),overlayRef:T,offset:C?S+3:S,crossOffset:k,shouldFlip:b,containerPadding:v});$n(()=>{A.length&&q()},A);const{overlayProps:ee}=Wc({isOpen:K,onClose:E.close,isDismissable:D,shouldCloseOnBlur:$,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:M},T),ue=g.useMemo(()=>{var oe,pe,xe;return ta({...s,disableAnimation:U,radius:(oe=e?.radius)!=null?oe:"md",size:(pe=e?.size)!=null?pe:"md",shadow:(xe=e?.shadow)!=null?xe:"sm"})},[ft(s),U,e?.radius,e?.size,e?.shadow]),te=g.useCallback((oe={},pe=null)=>({...ie(G,oe),ref:ru(pe,j),"aria-describedby":K?V:void 0}),[G,K,V,E]),Ee=g.useCallback(()=>({ref:T,"data-slot":"base","data-open":H(K),"data-arrow":H(C),"data-disabled":H(h),"data-placement":Ai(X||"top",y),...ie(W,ee,F),style:ie(ne.style,F.style,o.style),className:ue.base({class:z?.base}),id:V}),[ue,K,C,h,X,y,W,ee,F,ne,o,V]),ve=g.useCallback(()=>({"data-slot":"content","data-open":H(K),"data-arrow":H(C),"data-disabled":H(h),"data-placement":Ai(X||"top",y),className:ue.content({class:P(z?.content,O)})}),[ue,K,C,h,X,y,z]);return{Component:B,content:u,children:c,isOpen:K,triggerRef:j,showArrow:C,portalContainer:_,placement:y,disableAnimation:U,isDisabled:h,motionProps:I,getTooltipContentProps:ve,getTriggerProps:te,getTooltipProps:Ee}}var fO=()=>Promise.resolve().then(()=>Cl).then(e=>e.default),m2=Se((e,t)=>{var r;const{Component:n,children:o,content:s,isOpen:a,portalContainer:i,placement:l,disableAnimation:u,motionProps:c,getTriggerProps:d,getTooltipProps:p,getTooltipContentProps:h}=dO({...e,ref:t});let m;try{if(g.Children.count(o)!==1)throw new Error;if(!g.isValidElement(o))m=f.jsx("p",{...d(),children:o});else{const S=o,k=(r=S.props.ref)!=null?r:S.ref;m=g.cloneElement(S,d(S.props,k))}}catch{m=f.jsx("span",{}),Jn("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:v,style:y,...x}=p(),w=f.jsx("div",{ref:b,id:v,style:y,children:f.jsx(go.div,{animate:"enter",exit:"exit",initial:"exit",variants:mi.scaleSpring,...ie(c,x),style:{...d1(l)},children:f.jsx(n,{...h(),children:s})},`${v}-tooltip-inner`)},`${v}-tooltip-content`);return f.jsxs(f.Fragment,{children:[m,u?a&&f.jsx(V0,{portalContainer:i,children:f.jsx("div",{ref:b,id:v,style:y,...x,children:f.jsx(n,{...h(),children:s})})}):f.jsx(mo,{features:fO,children:f.jsx(Wa,{children:a&&f.jsx(V0,{portalContainer:i,children:w})})})]})});m2.displayName="HeroUI.Tooltip";var pO=m2,g2=Se((e,t)=>{const{Component:r,index:n,renderThumb:o,showTooltip:s,getTooltipProps:a,getThumbProps:i,getInputProps:l}=sO({...e,ref:t}),u={...i(),index:n,children:f.jsx(wo,{children:f.jsx("input",{...l()})})},c=nu({Component:r,props:u,renderCustom:o});return s?f.jsx(pO,{...a(),children:c}):c});g2.displayName="HeroUI.SliderThumb";var hO=g2;const mO=0,gO=100,bO=1;function vO(e){const{isDisabled:t=!1,minValue:r=mO,maxValue:n=gO,numberFormatter:o,step:s=bO,orientation:a="horizontal"}=e;let i=g.useMemo(()=>{let T=(n-r)/10;return T=as(T,0,T+s,s),Math.max(T,s)},[s,n,r]),l=g.useCallback(T=>T?.map((V,K)=>{let G=K===0?r:T[K-1],Z=K===T.length-1?n:T[K+1];return as(V,G,Z,s)}),[r,n,s]),u=g.useMemo(()=>l(v2(e.value)),[e.value,l]),c=g.useMemo(()=>{var T;return l((T=v2(e.defaultValue))!==null&&T!==void 0?T:[r])},[e.defaultValue,r,l]),d=y2(e.value,e.defaultValue,e.onChange),p=y2(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=hr(u,c,d);let[b]=g.useState(h);const[v,y]=g.useState(new Array(h.length).fill(!1)),x=g.useRef(new Array(h.length).fill(!0)),[w,C]=g.useState(void 0),S=g.useRef(h),k=g.useRef(v);let D=T=>{S.current=T,m(T)},$=T=>{k.current=T,y(T)};function _(T){return(T-r)/(n-r)}function N(T){return T===0?r:h[T-1]}function A(T){return T===h.length-1?n:h[T+1]}function M(T){return x.current[T]}function O(T,V){x.current[T]=V}function L(T,V){if(t||!M(T))return;const K=N(T),G=A(T);V=as(V,K,G,s);let Z=b2(S.current,T,V);D(Z)}function I(T,V){if(t||!M(T))return;V&&(S.current=h);const K=k.current[T];k.current=b2(k.current,T,V),$(k.current),p&&K&&!k.current.some(Boolean)&&p(S.current)}function z(T){return o.format(T)}function F(T,V){L(T,U(V))}function B(T){return Math.round((T-r)/s)*s+r}function U(T){const V=T*(n-r)+r;return oo(B(V),r,n)}function E(T,V=1){let K=Math.max(V,s);L(T,as(h[T]+K,r,n,s))}function j(T,V=1){let K=Math.max(V,s);L(T,as(h[T]-K,r,n,s))}return{values:h,defaultValues:e.defaultValue!==void 0?c:b,getThumbValue:T=>h[T],setThumbValue:L,setThumbPercent:F,isThumbDragging:T=>v[T],setThumbDragging:I,focusedThumb:w,setFocusedThumb:C,getThumbPercent:T=>_(h[T]),getValuePercent:_,getThumbValueLabel:T=>z(h[T]),getFormattedValue:z,getThumbMinValue:N,getThumbMaxValue:A,getPercentValue:U,isThumbEditable:M,setThumbEditable:O,incrementThumb:E,decrementThumb:j,step:s,pageSize:i,orientation:a,isDisabled:t}}function b2(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function v2(e){if(e!=null)return Array.isArray(e)?e:[e]}function y2(e,t,r){return n=>{r?.(typeof e=="number"||typeof t=="number"?n[0]:n)}}function yO(e){var t,r,n,o;const s=tt(),[a,i]=pt(e,Bl.variantKeys),{ref:l,as:u,name:c,label:d,formatOptions:p,value:h,maxValue:m=100,minValue:b=0,step:v=1,showSteps:y=!1,showTooltip:x=!1,orientation:w="horizontal",marks:C=[],startContent:S,endContent:k,fillOffset:D,className:$,classNames:_,renderThumb:N,renderLabel:A,renderValue:M,onChange:O,onChangeEnd:L,getValue:I,getTooltipValue:z,tooltipValueFormatOptions:F=p,tooltipProps:B={},...U}=a,E=b===m;E&&Jn("Min and max values should not be the same. This may cause unexpected behavior.");const j=u||"div",T=typeof j=="string",V=(r=(t=e?.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,K=Pe(l),G=g.useRef(null),Z=sb(p),{direction:W}=Ot(),ne=g.useCallback(Ie=>Math.min(Math.max(Ie,b),m),[b,m]),X=g.useMemo(()=>{if(E)return b;if(h!==void 0)return Array.isArray(h)?h.map(ne):ne(h)},[h,ne,E,b]),q=vO({...U,value:X,isDisabled:(n=e?.isDisabled)!=null?n:!1,orientation:w,step:v,minValue:b,maxValue:m,numberFormatter:Z,onChange:O,onChangeEnd:L}),ee={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=Bl.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,...B},{groupProps:ue,trackProps:te,labelProps:Ee,outputProps:ve}=nO(e,q,G),{isHovered:oe,hoverProps:pe}=vt({isDisabled:e.isDisabled}),xe=P(_?.base,$),he=w==="vertical",se=C?.length>0,He=D===void 0?q.values.length===1:!1,ge=g.useMemo(()=>Bl({...i,hasMarks:se,disableAnimation:V,hasSingleThumb:He,isVertical:he}),[ft(i),he,V,He,se]),[_e,Ke]=[q.values.length>1?q.getThumbPercent(0):D!==void 0?q.getValuePercent(D):0,q.getThumbPercent(q.values.length-1)].sort(),qe=q.values.length===1?Z.format(q.values[0]):Z.formatRange(q.values[0],q.values[q.values.length-1]),wt=y?Math.floor((m-b)/v)+1:0;return{Component:j,state:q,value:qe,domRef:K,label:d,steps:wt,marks:C,startContent:S,endContent:k,getStepProps:Ie=>{const Qe=q.getValuePercent(Ie*v+b);return{className:ge.step({class:_?.step}),"data-slot":"step","data-in-range":Qe<=Ke&&Qe>=_e,style:{[he?"bottom":W==="rtl"?"right":"left"]:`${Qe*100}%`}}},getBaseProps:(Ie={})=>({ref:K,"data-orientation":q.orientation,"data-slot":"base","data-hover":oe,className:ge.base({class:xe}),...ie(ue,pe,Fe(U,{enabled:T}),Fe(Ie))}),getValue:I,renderLabel:A,renderValue:M,getTrackWrapperProps:(Ie={})=>({"data-slot":"track-wrapper",className:ge.trackWrapper({class:_?.trackWrapper}),...Ie}),getLabelWrapperProps:(Ie={})=>({className:ge.labelWrapper({class:_?.labelWrapper}),"data-slot":"labelWrapper",...Ie}),getLabelProps:(Ie={})=>({"data-slot":"label",className:ge.label({class:_?.label}),children:d,...Ee,...Ie}),getValueProps:(Ie={})=>({"data-slot":"value",className:ge.value({class:_?.value}),children:I&&typeof I=="function"?I(q.values):qe,...ve,...Ie}),getTrackProps:(Ie={})=>{const Qe=(Ke-_e)*100;return{ref:G,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":he,...He?{"data-fill-start":Qe>0,"data-fill-end":Qe==100}:{"data-fill-start":_e==0,"data-fill-end":_e*100+Qe==100},className:ge.track({class:_?.track}),...te,...Ie}},getFillerProps:(Ie={})=>({"data-slot":"filler",className:ge.filler({class:_?.filler}),...Ie,style:{...Ie.style,[he?"bottom":W==="rtl"?"right":"left"]:`${_e*100}%`,...he?{height:`${(Ke-_e)*100}%`}:{width:`${(Ke-_e)*100}%`}}}),getThumbProps:Ie=>({name:c,index:Ie,state:q,trackRef:G,orientation:w,isVertical:he,tooltipProps:ee,getTooltipValue:z,showTooltip:x,renderThumb:N,formatOptions:F,className:ge.thumb({class:_?.thumb})}),getMarkProps:Ie=>{const Qe=q.getValuePercent(Ie.value);return{className:ge.mark({class:_?.mark}),"data-slot":"mark","data-in-range":Qe<=Ke&&Qe>=_e,style:{[he?"bottom":W==="rtl"?"right":"left"]:`${Qe*100}%`},onMouseDown:tr=>tr.stopPropagation(),onPointerDown:tr=>tr.stopPropagation(),onClick:tr=>{if(tr.stopPropagation(),!E)if(q.values.length===1)q.setThumbPercent(0,Qe);else{const It=q.values[0],Vr=q.values[1];Ie.value<It?q.setThumbPercent(0,Qe):Ie.value>Vr?q.setThumbPercent(1,Qe):Math.abs(Ie.value-It)<Math.abs(Ie.value-Vr)?q.setThumbPercent(0,Qe):q.setThumbPercent(1,Qe)}}}},getStartContentProps:(Ie={})=>({"data-slot":"startContent",className:ge.startContent({class:_?.startContent}),...Ie}),getEndContentProps:(Ie={})=>({"data-slot":"endContent",className:ge.endContent({class:_?.endContent}),...Ie})}}var x2=Se((e,t)=>{const{Component:r,state:n,label:o,steps:s,marks:a,startContent:i,endContent:l,getStepProps:u,getBaseProps:c,renderValue:d,renderLabel:p,getTrackWrapperProps:h,getLabelWrapperProps:m,getLabelProps:b,getValueProps:v,getTrackProps:y,getFillerProps:x,getThumbProps:w,getMarkProps:C,getStartContentProps:S,getEndContentProps:k}=yO({...e,ref:t});return f.jsxs(r,{...c(),children:[o&&f.jsxs("div",{...m(),children:[nu({Component:"label",props:b(),renderCustom:p}),nu({Component:"output",props:v(),renderCustom:d})]}),f.jsxs("div",{...h(),children:[i&&f.jsx("div",{...S(),children:i}),f.jsxs("div",{...y(),children:[f.jsx("div",{...x()}),Number.isFinite(s)&&Array.from({length:s},(D,$)=>f.jsx("div",{...u($)},$)),n.values.map((D,$)=>f.jsx(hO,{...w($)},$)),a?.length>0&&a.map((D,$)=>f.jsx("div",{...C(D),children:D.label},$))]}),l&&f.jsx("div",{...k(),children:l})]})]})});x2.displayName="HeroUI.Slider";var fh=x2;function xO({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:a,formatType:i,onChange:l,classNames:u}){const{t:c}=Oe(),{to:d}=Zt(n),[p,h]=g.useState(d??t);return g.useEffect(()=>{n||h(t)},[n,t]),Nr(()=>{const{to:m}=Zt(n);m&&m!==p&&h(m)},[n]),f.jsx(fh,{size:"sm",step:r,hideValue:!0,label:`${c("format.to")} ${ur(p,i)}`,minValue:e,maxValue:s,value:p===t?s:p,onChange:m=>{if(typeof m=="number"){if(m>=s)return h(t);h(cn(m,o))}},onChangeEnd:m=>{if(typeof m=="number"){if(m>=s)return l(`-${t}`);l(`-${cn(m,o)}`)}},marks:a,classNames:{...u,track:P("h-2",u?.track)}})}function wO({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:a,formatType:i,onChange:l,classNames:u}){const{t:c}=Oe(),{from:d}=Zt(n),[p,h]=g.useState(d??e);return g.useEffect(()=>{n||h(e)},[n,e]),Nr(()=>{const{from:m}=Zt(n);m&&m!==p&&h(m)},[n]),f.jsx(fh,{size:"sm",step:r,hideValue:!0,label:`${c("format.startingFrom")} ${ur(p,i)}`,minValue:e,maxValue:s,value:p===t?s:p,onChange:m=>{if(typeof m=="number"){if(m>=s)return h(t);h(cn(m,o))}},onChangeEnd:m=>{if(typeof m=="number"){if(m>=s)return l(`${t}-`);l(`${cn(m,o)}-`)}},marks:a,classNames:{...u,track:P("h-2",u?.track)}})}let CO=Math.round(Math.random()*1e10),SO=0;function kO(e){let t=g.useMemo(()=>e.name||`radio-group-${CO}-${++SO}`,[e.name]);var r;let[n,o]=hr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[s]=g.useState(n),[a,i]=g.useState(null),l=Oo({...e,value:n}),u=p=>{!e.isReadOnly&&!e.isDisabled&&(o(p),l.commitValidation())},c=l.displayValidation.isInvalid;var d;return{...l,name:t,selectedValue:n,defaultSelectedValue:e.value!==void 0?s:(d=e.defaultValue)!==null&&d!==void 0?d:null,setSelectedValue:u,lastFocusedValue:a,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(c?"invalid":null),isInvalid:c}}const w2=new WeakMap;function PO(e,t,r){let{value:n,children:o,"aria-label":s,"aria-labelledby":a,onPressStart:i,onPressEnd:l,onPressChange:u,onPress:c,onPressUp:d,onClick:p}=e;const h=e.isDisabled||t.isDisabled;let m=o!=null,b=s!=null||a!=null;!m&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let v=t.selectedValue===n,y=I=>{I.stopPropagation(),t.setSelectedValue(n)},{pressProps:x,isPressed:w}=jt({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:c,onPressUp:d,onClick:p,isDisabled:h}),{pressProps:C,isPressed:S}=jt({onPressStart:i,onPressEnd:l,onPressChange:u,onPressUp:d,onClick:p,isDisabled:h,onPress(I){var z;c?.(I),t.setSelectedValue(n),(z=r.current)===null||z===void 0||z.focus()}}),{focusableProps:k}=rn(Ce(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),D=Ce(x,k),$=Bt(e,{labelable:!0}),_=-1;t.selectedValue!=null?t.selectedValue===n&&(_=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(_=0),h&&(_=void 0);let{name:N,form:A,descriptionId:M,errorMessageId:O,validationBehavior:L}=w2.get(t);return Ta(r,t.defaultSelectedValue,t.setSelectedValue),ji({validationBehavior:L},t,r),{labelProps:Ce(C,g.useMemo(()=>({onClick:I=>I.preventDefault(),onMouseDown:I=>I.preventDefault()}),[])),inputProps:Ce($,{...D,type:"radio",name:N,form:A,tabIndex:_,disabled:h,required:t.isRequired&&L==="native",checked:v,value:n,onChange:y,"aria-describedby":[e["aria-describedby"],t.isInvalid?O:null,M].filter(Boolean).join(" ")||void 0}),isDisabled:h,isSelected:v,isPressed:w||S}}function $O(e,t){let{name:r,form:n,isReadOnly:o,isRequired:s,isDisabled:a,orientation:i="vertical",validationBehavior:l="aria"}=e,{direction:u}=Ot(),{isInvalid:c,validationErrors:d,validationDetails:p}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:b,errorMessageProps:v}=Mi({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),y=Bt(e,{labelable:!0}),{focusWithinProps:x}=kn({onBlurWithin(S){var k;(k=e.onBlur)===null||k===void 0||k.call(e,S),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),w=S=>{let k;switch(S.key){case"ArrowRight":u==="rtl"&&i!=="vertical"?k="prev":k="next";break;case"ArrowLeft":u==="rtl"&&i!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}S.preventDefault();let D=Lt(S.currentTarget,{from:S.target,accept:_=>_ instanceof kt(_).HTMLInputElement&&_.type==="radio"}),$;k==="next"?($=D.nextNode(),$||(D.currentNode=S.currentTarget,$=D.firstChild())):($=D.previousNode(),$||(D.currentNode=S.currentTarget,$=D.lastChild())),$&&($.focus(),t.setSelectedValue($.value))},C=bt(r);return w2.set(t,{name:C,form:n,descriptionId:b.id,errorMessageId:v.id,validationBehavior:l}),{radioGroupProps:Ce(y,{role:"radiogroup",onKeyDown:w,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":s||void 0,"aria-disabled":a||void 0,"aria-orientation":i,...m,...x}),labelProps:h,descriptionProps:b,errorMessageProps:v,isInvalid:c,validationErrors:d,validationDetails:p}}function EO(e){var t,r;const n=tt(),{validationBehavior:o}=jo(In)||{},{as:s,ref:a,classNames:i,children:l,label:u,value:c,name:d,isInvalid:p,validationState:h,validationBehavior:m=(t=o??n?.validationBehavior)!=null?t:"native",size:b="md",color:v="primary",isDisabled:y=!1,disableAnimation:x=(r=n?.disableAnimation)!=null?r:!1,orientation:w="vertical",isRequired:C=!1,isReadOnly:S,errorMessage:k,description:D,className:$,onChange:_,onValueChange:N,...A}=e,M=s||"div",O=typeof M=="string",L=Pe(a),I=g.useMemo(()=>({...A,value:c,name:d,"aria-label":na(A["aria-label"],u),isRequired:C,isReadOnly:S,isInvalid:h==="invalid"||p,orientation:w,validationBehavior:m,onChange:N}),[A,c,d,u,C,S,p,h,m,w,N]),z=kO(I),{labelProps:F,radioGroupProps:B,errorMessageProps:U,descriptionProps:E,isInvalid:j,validationErrors:T,validationDetails:V}=$O(I,z),K=I.isInvalid||j||z.isInvalid,G=g.useMemo(()=>({size:b,color:v,groupState:z,isRequired:C,isInvalid:K,isDisabled:y,disableAnimation:x,onChange:_}),[b,v,C,y,K,_,x,z.name,z.isDisabled,z.isReadOnly,z.isRequired,z.selectedValue,z.lastFocusedValue]),Z=g.useMemo(()=>a$({isRequired:C,isInvalid:K,disableAnimation:x}),[K,C,x]),W=P(i?.base,$),ne=g.useCallback(()=>({ref:L,className:Z.base({class:W}),...ie(B,Fe(A,{enabled:O}))}),[L,Z,W,B,A]),X=g.useCallback(()=>({className:Z.label({class:i?.label}),...F}),[Z,i?.label,F,i?.label]),q=g.useCallback(()=>({className:Z.wrapper({class:i?.wrapper}),role:"presentation","data-orientation":w}),[Z,i?.wrapper,w,Z.wrapper]),ee=g.useCallback((te={})=>({...te,...E,className:Z.description({class:P(i?.description,te?.className)})}),[Z,i?.description,E,Z.description]),ue=g.useCallback((te={})=>({...te,...U,className:Z.errorMessage({class:P(i?.errorMessage,te?.className)})}),[Z,i?.errorMessage,U]);return{Component:M,children:l,label:u,context:G,description:D,isInvalid:K,errorMessage:typeof k=="function"?k({isInvalid:K,validationErrors:T,validationDetails:V}):k||T?.join(" "),getGroupProps:ne,getLabelProps:X,getWrapperProps:q,getDescriptionProps:ee,getErrorMessageProps:ue}}var[TO,DO]=gn({name:"RadioGroupContext",strict:!1}),C2=Se((e,t)=>{const{Component:r,children:n,label:o,context:s,description:a,isInvalid:i,errorMessage:l,getGroupProps:u,getLabelProps:c,getWrapperProps:d,getDescriptionProps:p,getErrorMessageProps:h}=EO({...e,ref:t});return f.jsxs(r,{...u(),children:[o&&f.jsx("span",{...c(),children:o}),f.jsx("div",{...d(),children:f.jsx(TO,{value:s,children:n})}),i&&l?f.jsx("div",{...h(),children:l}):a?f.jsx("div",{...p(),children:a}):null]})});C2.displayName="HeroUI.RadioGroup";var ph=C2;function _O(e){var t,r,n,o,s;const a=tt(),i=DO(),{as:l,ref:u,classNames:c,id:d,value:p,children:h,description:m,size:b=(t=i?.size)!=null?t:"md",color:v=(r=i?.color)!=null?r:"primary",isDisabled:y=(n=i?.isDisabled)!=null?n:!1,disableAnimation:x=(s=(o=i?.disableAnimation)!=null?o:a?.disableAnimation)!=null?s:!1,onChange:w=i?.onChange,autoFocus:C=!1,className:S,...k}=e;i&&Vm&&("checked"in k&&Jn('Remove props "checked" if in the Radio.Group.',"Radio"),p===void 0&&Jn('Props "value" must be defined if in the Radio.Group.',"Radio"));const D=l||"label",$=Pe(u),_=g.useRef(null),N=g.useId(),A=g.useId(),M=g.useMemo(()=>{var ve;return(ve=i.isRequired)!=null?ve:!1},[i.isRequired]),O=i.isInvalid,L=g.useMemo(()=>{const ve=[k["aria-describedby"],A].filter(Boolean).join(" ")||void 0;return{id:d,isRequired:M,isDisabled:y,"aria-label":k["aria-label"],"aria-labelledby":k["aria-labelledby"]||N,"aria-describedby":ve}},[d,y,M,m,k["aria-label"],k["aria-labelledby"],k["aria-describedby"],A]),{inputProps:I,isDisabled:z,isSelected:F,isPressed:B}=PO({value:p,children:typeof h=="function"?!0:h,...L},i.groupState,_),{focusProps:U,isFocused:E,isFocusVisible:j}=nt({autoFocus:C}),T=z||I.readOnly,{hoverProps:V,isHovered:K}=vt({isDisabled:T}),G=T?!1:B,Z=g.useMemo(()=>s$({color:v,size:b,isInvalid:O,isDisabled:z,disableAnimation:x}),[v,b,z,O,x]),W=P(c?.base,S),ne=g.useCallback((ve={})=>({...ve,ref:$,className:Z.base({class:P(W,ve?.className)}),"data-disabled":H(z),"data-focus":H(E),"data-focus-visible":H(j),"data-selected":H(F),"data-invalid":H(O),"data-hover":H(K),"data-pressed":H(G),"data-hover-unselected":H(K&&!F),"data-readonly":H(I.readOnly),"aria-required":H(M),...ie(V,k)}),[Z,W,$,z,E,j,F,O,K,G,I.readOnly,M,k]),X=g.useCallback((ve={})=>({...ve,"aria-hidden":!0,className:Z.wrapper({class:P(c?.wrapper,ve.className)})}),[Z,c?.wrapper]),q=g.useCallback((ve={})=>({ref:_,...ie(ve,I,U),className:Z.hiddenInput({class:c?.hiddenInput}),onChange:nr(I.onChange,w)}),[I,U,w]),ee=g.useCallback((ve={})=>({...ve,id:N,className:Z.label({class:c?.label})}),[Z,c?.label,z,F,O]),ue=g.useCallback((ve={})=>({...ve,className:Z.labelWrapper({class:c?.labelWrapper})}),[Z,c?.labelWrapper]),te=g.useCallback((ve={})=>({...ve,className:Z.control({class:c?.control})}),[Z,c?.control]),Ee=g.useCallback((ve={})=>({...ve,id:A,className:Z.description({class:c?.description})}),[Z,c?.description]);return{Component:D,children:h,isSelected:F,isDisabled:z,isInvalid:O,isFocusVisible:j,description:m,getBaseProps:ne,getWrapperProps:X,getInputProps:q,getLabelProps:ee,getLabelWrapperProps:ue,getControlProps:te,getDescriptionProps:Ee}}var S2=Se((e,t)=>{const{Component:r,children:n,description:o,getBaseProps:s,getWrapperProps:a,getInputProps:i,getLabelProps:l,getLabelWrapperProps:u,getControlProps:c,getDescriptionProps:d}=_O({...e,ref:t});return f.jsxs(r,{...s(),children:[f.jsx("input",{...i()}),f.jsx("span",{...a(),children:f.jsx("span",{...c()})}),f.jsxs("div",{...u(),children:[n&&f.jsx("span",{...l(),children:n}),o&&f.jsx("span",{...d(),children:o})]})]})});S2.displayName="HeroUI.Radio";var Bs=S2;function IO({id:e,options:t,value:r,onChange:n,classNames:o}){return f.jsx(ph,{size:"sm",value:r,onValueChange:n,classNames:{base:P(o?.radioGroup?.base),wrapper:P(o?.radioGroup?.wrapper),label:P(o?.radioGroup?.label),description:P(o?.radioGroup?.description),errorMessage:P(o?.radioGroup?.errorMessage)},children:t.map(s=>f.jsx(Bs,{color:"primary",value:s.value,name:s.value,classNames:{base:P(o?.radio?.base),wrapper:P(o?.radio?.wrapper),hiddenInput:P(o?.radio?.hiddenInput),labelWrapper:P("ml-2",o?.radio?.labelWrapper),label:P(o?.radio?.label),control:P(o?.radio?.control),description:P(o?.radio?.description)},children:s.descriptiveName},`${e}-${s.value}`))})}function AO({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:a,formatType:i,onChange:l,classNames:u}){const{from:c,to:d}=Zt(n),[p,h]=g.useState([c??e,d??t]),[m,b]=p;return g.useEffect(()=>{n||h([e,t])},[n,e,t]),Nr(()=>{const{from:v,to:y}=Zt(n);v&&y&&(v!==m||y!==b)&&h([v,y])},[n]),f.jsx(fh,{size:"sm",step:r,hideValue:!0,label:`${ur(m,i)} - ${ur(b,i)}`,minValue:e,maxValue:s,value:p,onChange:v=>{if(!Array.isArray(v))return;const y=cn(v[0],o);if(v[1]>=s)return h([y,t]);h([y,cn(v[1],o)])},onChangeEnd:v=>{if(!Array.isArray(v))return;const y=cn(v[0],o);if(v[1]>=s)return l(`${y}-${t}`);l(`${y}-${cn(v[1],o)}`)},marks:a,classNames:{...u,track:P("h-2",u?.track)}})}function NO(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:s,name:a,form:i,children:l,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:p,onPressStart:h,onPressEnd:m,onPressChange:b,onPress:v,onPressUp:y,onClick:x}=e,w=O=>{O.stopPropagation(),t.setSelected(O.target.checked)},C=l!=null,S=u!=null||c!=null;!C&&!S&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:k,isPressed:D}=jt({onPressStart:h,onPressEnd:m,onPressChange:b,onPress:v,onPressUp:y,onClick:x,isDisabled:n}),{pressProps:$,isPressed:_}=jt({onPressStart:h,onPressEnd:m,onPressChange:b,onPressUp:y,onClick:x,onPress(O){var L;v?.(O),t.toggle(),(L=r.current)===null||L===void 0||L.focus()},isDisabled:n||o}),{focusableProps:N}=rn(e,r),A=Ce(k,N),M=Bt(e,{labelable:!0});return Ta(r,t.defaultSelected,t.setSelected),{labelProps:Ce($,{onClick:O=>O.preventDefault()}),inputProps:Ce(M,{"aria-invalid":p||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:w,disabled:n,...s==null?{}:{value:s},name:a,form:i,type:"checkbox",...A}),isSelected:t.isSelected,isPressed:D||_,isDisabled:n,isReadOnly:o,isInvalid:p||d==="invalid"}}function k2(e,t,r){let n=Oo({...e,value:t.isSelected}),{isInvalid:o,validationErrors:s,validationDetails:a}=n.displayValidation,{labelProps:i,inputProps:l,isSelected:u,isPressed:c,isDisabled:d,isReadOnly:p}=NO({...e,isInvalid:o},t,r);ji(e,n,r);let{isIndeterminate:h,isRequired:m,validationBehavior:b="aria"}=e;g.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)});let{pressProps:v}=jt({isDisabled:d||p,onPress(){let{[Oi]:y}=e,{commitValidation:x}=y||n;x()}});return{labelProps:Ce(i,v,g.useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:{...l,checked:u,"aria-required":m&&b==="aria"||void 0,required:m&&b==="native"},isSelected:u,isPressed:c,isDisabled:d,isReadOnly:p,isInvalid:o,validationErrors:s,validationDetails:a}}const P2=new WeakMap;function MO(e,t){let{isDisabled:r,name:n,form:o,validationBehavior:s="aria"}=e,{isInvalid:a,validationErrors:i,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:p}=Mi({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||i});P2.set(t,{name:n,form:o,descriptionId:d.id,errorMessageId:p.id,validationBehavior:s});let h=Bt(e,{labelable:!0}),{focusWithinProps:m}=kn({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Ce(h,{role:"group","aria-disabled":r||void 0,...c,...m}),labelProps:u,descriptionProps:d,errorMessageProps:p,isInvalid:a,validationErrors:i,validationDetails:l}}function $2(e={}){let{isReadOnly:t}=e,[r,n]=hr(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=g.useState(r);function s(l){t||n(l)}function a(){t||n(!r)}var i;return{isSelected:r,defaultSelected:(i=e.defaultSelected)!==null&&i!==void 0?i:o,setSelected:s,toggle:a}}function OO(e,t,r){const n=$2({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,form:s,descriptionId:a,errorMessageId:i,validationBehavior:l}=P2.get(t);var u;l=(u=e.validationBehavior)!==null&&u!==void 0?u:l;let{realtimeValidation:c}=Oo({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=g.useRef(Mo),p=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};g.useEffect(p);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:c,m=l==="native"?t.displayValidation:h;var b;let v=k2({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||s,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:l,[Oi]:{realtimeValidation:h,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){d.current=y,p()}}},n,r);return{...v,inputProps:{...v.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?i:null,a].filter(Boolean).join(" ")||void 0}}}function jO(e={}){let[t,r]=hr(e.value,e.defaultValue||[],e.onChange),[n]=g.useState(t),o=!!e.isRequired&&t.length===0,s=g.useRef(new Map),a=Oo({...e,value:t}),i=a.displayValidation.isInvalid;var l,u;return{...a,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(d){e.isReadOnly||e.isDisabled||r(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||r(p=>p.includes(d)?p:p.concat(d))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&r(t.filter(p=>p!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?r(t.filter(p=>p!==d)):r(t.concat(d)))},setInvalid(d,p){let h=new Map(s.current);p.isInvalid?h.set(d,p):h.delete(d),s.current=h,a.updateValidation(y7(...h.values()))},validationState:(u=e.validationState)!==null&&u!==void 0?u:i?"invalid":null,isInvalid:i,isRequired:o}}function FO(e){var t,r;const n=tt(),{validationBehavior:o}=jo(In)||{},{as:s,ref:a,classNames:i,children:l,label:u,radius:c,value:d,name:p,defaultValue:h,isInvalid:m,validationState:b,size:v="md",color:y="primary",orientation:x="vertical",lineThrough:w=!1,isDisabled:C=!1,validationBehavior:S=(t=o??n?.validationBehavior)!=null?t:"native",disableAnimation:k=(r=n?.disableAnimation)!=null?r:!1,isReadOnly:D,isRequired:$,onValueChange:_,description:N,errorMessage:A,className:M,...O}=e,L=s||"div",I=typeof L=="string",z=Pe(a),F=g.useMemo(()=>({...O,value:d,name:p,"aria-label":na(O["aria-label"],u),defaultValue:h,isRequired:$,isReadOnly:D,orientation:x,validationBehavior:S,isInvalid:b==="invalid"||m,onChange:nr(e.onChange,_)}),[d,p,u,h,$,D,x,_,m,b,S,O["aria-label"],O]),B=jO(F),{labelProps:U,groupProps:E,descriptionProps:j,errorMessageProps:T,validationErrors:V,validationDetails:K}=MO(F,B),G=g.useMemo(()=>({size:v,color:y,radius:c,lineThrough:w,isInvalid:B.isInvalid,isDisabled:C,disableAnimation:k,validationBehavior:S,groupState:B}),[v,y,c,w,C,k,S,B.value,B.isDisabled,B.isReadOnly,B.isInvalid,B.isSelected]),Z=g.useMemo(()=>o$({isRequired:$,isInvalid:B.isInvalid,disableAnimation:k}),[$,B.isInvalid,,k]),W=P(i?.base,M),ne=g.useCallback(()=>({ref:z,className:Z.base({class:W}),...ie(E,Fe(O,{enabled:I}))}),[Z,z,W,E,O]),X=g.useCallback(()=>({className:Z.label({class:i?.label}),...U}),[Z,U,i?.label]),q=g.useCallback(()=>({className:Z.wrapper({class:i?.wrapper}),role:"presentation","data-orientation":x}),[Z,x,i?.wrapper]),ee=g.useCallback((te={})=>({...te,...j,className:Z.description({class:P(i?.description,te?.className)})}),[Z,j,i?.description]),ue=g.useCallback((te={})=>({...te,...T,className:Z.errorMessage({class:P(i?.errorMessage,te?.className)})}),[Z,T,i?.errorMessage]);return{Component:L,children:l,label:u,context:G,description:N,isInvalid:B.isInvalid,errorMessage:typeof A=="function"?A({isInvalid:B.isInvalid,validationErrors:V,validationDetails:K}):A||V?.join(" "),getGroupProps:ne,getLabelProps:X,getWrapperProps:q,getDescriptionProps:ee,getErrorMessageProps:ue}}var[BO,zO]=gn({name:"CheckboxGroupContext",strict:!1}),E2=Se((e,t)=>{const{children:r,context:n,label:o,description:s,isInvalid:a,errorMessage:i,getGroupProps:l,getLabelProps:u,getWrapperProps:c,getDescriptionProps:d,getErrorMessageProps:p}=FO({...e,ref:t});return f.jsxs("div",{...l(),children:[o&&f.jsx("span",{...u(),children:o}),f.jsx("div",{...c(),children:f.jsx(BO,{value:n,children:r})}),a&&i?f.jsx("div",{...p(),children:i}):s?f.jsx("div",{...d(),children:s}):null]})});E2.displayName="HeroUI.CheckboxGroup";var LO=E2;function VO(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...n,children:f.jsx("polyline",{points:"1 9 7 14 15 4"})})}function RO(e){const{isSelected:t,disableAnimation:r,...n}=e;return f.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:f.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function KO(e){const{isIndeterminate:t,...r}=e,n=t?RO:VO;return f.jsx(n,{...r})}function WO(e={}){var t,r,n,o,s,a,i,l;const u=tt(),c=zO(),{validationBehavior:d}=jo(In)||{},p=!!c,{as:h,ref:m,value:b="",children:v,icon:y,name:x,isRequired:w,isReadOnly:C=!1,autoFocus:S=!1,isSelected:k,size:D=(t=c?.size)!=null?t:"md",color:$=(r=c?.color)!=null?r:"primary",radius:_=c?.radius,lineThrough:N=(n=c?.lineThrough)!=null?n:!1,isDisabled:A=(o=c?.isDisabled)!=null?o:!1,disableAnimation:M=(a=(s=c?.disableAnimation)!=null?s:u?.disableAnimation)!=null?a:!1,validationState:O,isInvalid:L=O?O==="invalid":(i=c?.isInvalid)!=null?i:!1,isIndeterminate:I=!1,validationBehavior:z=p?c.validationBehavior:(l=d??u?.validationBehavior)!=null?l:"native",defaultSelected:F,classNames:B,className:U,onValueChange:E,validate:j,...T}=e;c&&Vm&&(k&&Jn("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),F&&Jn("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const V=h||"label",K=g.useRef(null),G=g.useRef(null);let Z=e.onChange;p&&(Z=nr(()=>{c.groupState.resetValidation()},Z));const W=g.useId(),ne=g.useMemo(()=>({name:x,value:b,children:v,autoFocus:S,defaultSelected:F,isIndeterminate:I,isRequired:w,isInvalid:L,isSelected:k,isDisabled:A,isReadOnly:C,"aria-label":na(T["aria-label"],v),"aria-labelledby":T["aria-labelledby"]||W,onChange:E}),[x,b,v,S,F,I,w,L,k,A,C,T["aria-label"],T["aria-labelledby"],W,E]),X=$2(ne),q={isInvalid:L,isRequired:w,validate:j,validationState:O,validationBehavior:z},{inputProps:ee,isSelected:ue,isDisabled:te,isReadOnly:Ee,isPressed:ve,isInvalid:oe}=p?OO({...ne,...q},c.groupState,G):k2({...ne,...q},X,G),pe=te||Ee,xe=O==="invalid"||L||oe,he=pe?!1:ve,{hoverProps:se,isHovered:He}=vt({isDisabled:ee.disabled}),{focusProps:ge,isFocused:_e,isFocusVisible:Ke}=nt({autoFocus:ee.autoFocus}),qe=g.useMemo(()=>n$({color:$,size:D,radius:_,isInvalid:xe,lineThrough:N,isDisabled:te,disableAnimation:M}),[$,D,_,xe,N,te,M]);$n(()=>{if(!G.current)return;const Xe=!!G.current.checked;X.setSelected(Xe)},[G.current]);const wt=xI(Z),Ct=g.useCallback(Xe=>{if(Ee||te){Xe.preventDefault();return}wt?.(Xe)},[Ee,te,wt]),Ge=P(B?.base,U),Ne=g.useCallback(()=>({ref:K,className:qe.base({class:Ge}),"data-disabled":H(te),"data-selected":H(ue||I),"data-invalid":H(xe),"data-hover":H(He),"data-focus":H(_e),"data-pressed":H(he),"data-readonly":H(ee.readOnly),"data-focus-visible":H(Ke),"data-indeterminate":H(I),...ie(se,T)}),[qe,Ge,te,ue,I,xe,He,_e,he,ee.readOnly,Ke,se,T]),mt=g.useCallback((Xe={})=>({...Xe,"aria-hidden":!0,className:qe.wrapper({class:P(B?.wrapper,Xe?.className)})}),[qe,B?.wrapper]),St=g.useCallback(()=>({ref:ru(G,m),...ie(ee,ge),className:qe.hiddenInput({class:B?.hiddenInput}),onChange:nr(ee.onChange,Ct)}),[ee,ge,Ct,B?.hiddenInput]),gt=g.useCallback(()=>({id:W,className:qe.label({class:B?.label})}),[qe,B?.label,te,ue,xe]),er=g.useCallback(()=>({isSelected:ue,isIndeterminate:I,disableAnimation:M,className:qe.icon({class:B?.icon})}),[qe,B?.icon,ue,I,M]);return{Component:V,icon:y,children:v,isSelected:ue,isDisabled:te,isInvalid:xe,isFocused:_e,isHovered:He,isFocusVisible:Ke,getBaseProps:Ne,getWrapperProps:mt,getInputProps:St,getLabelProps:gt,getIconProps:er}}var T2=Se((e,t)=>{const{Component:r,children:n,icon:o=f.jsx(KO,{}),getBaseProps:s,getWrapperProps:a,getInputProps:i,getIconProps:l,getLabelProps:u}=WO({...e,ref:t}),c=typeof o=="function"?o(l()):g.cloneElement(o,l());return f.jsxs(r,{...s(),children:[f.jsx("input",{...i()}),f.jsx("span",{...a(),children:c}),n&&f.jsx("span",{...u(),children:n})]})});T2.displayName="HeroUI.Checkbox";var hh=T2;const UO=8,mh=6;function HO({id:e,options:t,values:r=[],onChange:n,classNames:o}){const{t:s}=Oe(),[a,i]=g.useState(!1),l=t.length>UO,u=l?t.slice(mh).filter(p=>r.includes(p.value)):[],c=l&&!a?t.slice(0,mh).concat(u):t,d=l?t.length-mh-u.length:0;return f.jsxs(LO,{value:r,onValueChange:n,classNames:{base:P(o?.checkboxGroup?.base),wrapper:P(o?.checkboxGroup?.wrapper),label:P(o?.checkboxGroup?.label),description:P(o?.checkboxGroup?.description),errorMessage:P(o?.checkboxGroup?.errorMessage)},children:[c.map(p=>f.jsx(hh,{color:"primary",value:p.value,name:p.value,classNames:{base:P(o?.checkbox?.base),wrapper:P("rounded-[calc(var(--elements-radius-medium)*0.6)] before:rounded-[calc(var(--elements-radius-medium)*0.6)] after:rounded-[calc(var(--elements-radius-medium)*0.6)]",o?.checkbox?.wrapper),hiddenInput:P(o?.checkbox?.hiddenInput),icon:P(o?.checkbox?.icon),label:P(o?.checkbox?.label)},children:p.name},`${e}-${p.value}`)),l&&d>0&&f.jsxs("button",{type:"button",className:P("text-sm text-primary-600 w-fit cursor-pointer",o?.collapseLink),onClick:()=>i(p=>!p),children:[s("filters.show")," ",a?s("filters.showLess"):`${s("filters.showMore")} (${d})`]})]})}function qO({type:e,id:t,formatType:r,min:n,max:o,value:s,options:a=[],onChange:i,classNames:l}){const u=a.length>0?[n,...a.map(m=>parseInt(m.value,10)),o]:[],c=u.length>1?Math.min(...u.slice(1).map((m,b)=>m-u[b])):1,d=a.length>0&&o===Gt?u[u.length-2]+c:o,p=[{value:n,label:ur(n,r)},{value:d,label:ur(o,r)}],h={base:P(l?.sliderFilter?.base),labelWrapper:P(l?.sliderFilter?.labelWrapper),label:P(l?.sliderFilter?.label),value:P(l?.sliderFilter?.value),step:P(l?.sliderFilter?.step),trackWrapper:P(l?.sliderFilter?.trackWrapper),track:P(l?.sliderFilter?.track),filler:P(l?.sliderFilter?.filler),thumb:P(l?.sliderFilter?.thumb),mark:P("whitespace-nowrap translate-x-0 not-last-of-type:!-left-3 last-of-type:-right-2 last-of-type:!left-auto",l?.sliderFilter?.mark)};switch(e){case"min":return f.jsx(wO,{id:t,formatType:r,min:n,max:o,step:c,value:s,options:u,maxOptionValue:d,marks:p,onChange:i,classNames:h});case"max":return f.jsx(xO,{id:t,formatType:r,min:n,max:o,step:c,value:s,options:u,maxOptionValue:d,marks:p,onChange:i,classNames:h});case"range":return f.jsx(AO,{id:t,formatType:r,min:n,max:o,step:c,value:s,options:u,maxOptionValue:d,marks:p,onChange:i,classNames:h});case"checkbox":return a.length===0||typeof s=="string"?null:f.jsx(HO,{id:t,options:a,values:s,onChange:i,classNames:l?.selectFilter});case"radio":return a.length===0||s&&typeof s!="string"?null:f.jsx(IO,{id:t,options:a,value:s,onChange:i,classNames:l?.radioFilter});default:return null}}function D2(){const{t:e}=Oe(),{filters:t}=Ye(),{filterOptions:r,activeFilters:n,handleFilterChange:o}=yr();return r.length===0||r.every(s=>s.type==="hidden")?null:f.jsx("div",{className:P("min-w-60 shrink-0",t?.base),children:f.jsx("div",{className:P("flex flex-col gap-6",t?.filterWrapper),children:r.map(s=>s.type==="hidden"||["sorteren","telefoons"].includes(s.slug)?null:f.jsxs("div",{className:P(t?.filterGroup),children:[f.jsx("div",{className:P("font-bold text-foreground text-base mb-1",t?.filterLabel),children:e(s.column==="tags"?`filterOptions.tags_${s.slug}`:`filterOptions.${s.column}`,{defaultValue:s.name})}),f.jsx(qO,{...s,min:s.min??0,max:s.max??Gt,value:vr(n,s.slug),onChange:a=>o({slug:s.slug,value:a}),classNames:t})]},s.id))})})}const _2=g.createContext({modal:null,setModal:e=>{}});function GO({children:e}){const[t,r]=g.useState(null);return f.jsx(_2,{value:{modal:t,setModal:r},children:e})}function Wi(e){const{modal:t,setModal:r}=g.useContext(_2);return{isOpen:t===e,setModal:r}}/*! js-cookie v3.0.5 | MIT */function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var ZO={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function gh(e,t){function r(o,s,a){if(!(typeof document>"u")){a=Ui({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var l in a)a[l]&&(i+="; "+l,a[l]!==!0&&(i+="="+a[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+i}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},i=0;i<s.length;i++){var l=s[i].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=e.read(u,c),o===c)break}catch{}}return o?a[o]:a}}return Object.create({set:r,get:n,remove:function(o,s){r(o,"",Ui({},s,{expires:-1}))},withAttributes:function(o){return gh(this.converter,Ui({},this.attributes,o))},withConverter:function(o){return gh(Ui({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var I2=gh(ZO,{path:"/"});function bh(e){return JSON.parse(I2.get(e)||"{}")}function vh(e,t,r){I2.set(e,JSON.stringify(t),{...r,path:"/"})}function J(e,t,r){function n(i,l){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),i._zod.traits.has(e))return;i._zod.traits.add(e),t(i,l);const u=a.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){const p=c[d];p in i||(i[p]=u[p].bind(i))}}const o=r?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function a(i){var l;const u=r?.Parent?new s:this;n(u,i),(l=u._zod).deferred??(l.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:i=>r?.Parent&&i instanceof r.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class Vo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class A2 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const N2={};function Mn(e){return N2}function M2(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function yh(e,t){return typeof t=="bigint"?t.toString():t}function xh(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function wh(e){return e==null}function Ch(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const O2=Symbol("evaluating");function ze(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==O2)return n===void 0&&(n=O2,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function On(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function dn(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function j2(e){return JSON.stringify(e)}function YO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const F2="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const JO=xh(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function zs(e){if(Hi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Hi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function B2(e){return zs(e)?{...e}:Array.isArray(e)?[...e]:e}const XO=new Set(["string","number","symbol"]);function qi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fn(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ye(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function QO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function ej(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=dn(e._zod.def,{get shape(){const a={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(a[i]=r.shape[i])}return On(this,"shape",a),a},checks:[]});return fn(e,s)}function tj(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=dn(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete a[i]}return On(this,"shape",a),a},checks:[]});return fn(e,s)}function rj(e,t){if(!zs(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const s=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(s,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=dn(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return On(this,"shape",s),s}});return fn(e,o)}function nj(e,t){if(!zs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=dn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return On(this,"shape",n),n}});return fn(e,r)}function oj(e,t){const r=dn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return On(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return fn(e,r)}function sj(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=dn(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(r)for(const u in r){if(!(u in i))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:i[u]}):i[u])}else for(const u in i)l[u]=e?new e({type:"optional",innerType:i[u]}):i[u];return On(this,"shape",l),l},checks:[]});return fn(t,a)}function aj(e,t,r){const n=dn(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(r)for(const a in r){if(!(a in s))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)s[a]=new e({type:"nonoptional",innerType:o[a]});return On(this,"shape",s),s}});return fn(t,n)}function Ro(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function z2(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Gi(e){return typeof e=="string"?e:e?.message}function jn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Gi(e.inst?._zod.def?.error?.(e))??Gi(t?.error?.(e))??Gi(r.customError?.(e))??Gi(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Sh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ls(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const L2=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,yh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},V2=J("$ZodError",L2),R2=J("$ZodError",L2,{Parent:Error});function ij(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function lj(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>n({issues:a}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)r._errors.push(t(s));else{let a=r,i=0;for(;i<s.path.length;){const l=s.path[i];i===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(s))):a[l]=a[l]||{_errors:[]},a=a[l],i++}}};return n(e),r}const kh=e=>(t,r,n,o)=>{const s=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new Vo;if(a.issues.length){const i=new(o?.Err??e)(a.issues.map(l=>jn(l,s,Mn())));throw F2(i,o?.callee),i}return a.value},Ph=e=>async(t,r,n,o)=>{const s=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){const i=new(o?.Err??e)(a.issues.map(l=>jn(l,s,Mn())));throw F2(i,o?.callee),i}return a.value},Zi=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Vo;return s.issues.length?{success:!1,error:new(e??V2)(s.issues.map(a=>jn(a,o,Mn())))}:{success:!0,data:s.value}},uj=Zi(R2),Yi=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>jn(a,o,Mn())))}:{success:!0,data:s.value}},cj=Yi(R2),dj=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return kh(e)(t,r,o)},fj=e=>(t,r,n)=>kh(e)(t,r,n),pj=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ph(e)(t,r,o)},hj=e=>async(t,r,n)=>Ph(e)(t,r,n),mj=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Zi(e)(t,r,o)},gj=e=>(t,r,n)=>Zi(e)(t,r,n),bj=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Yi(e)(t,r,o)},vj=e=>async(t,r,n)=>Yi(e)(t,r,n),yj=/^[cC][^\s-]{8,}$/,xj=/^[0-9a-z]+$/,wj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cj=/^[0-9a-vA-V]{20}$/,Sj=/^[A-Za-z0-9]{27}$/,kj=/^[a-zA-Z0-9_-]{21}$/,Pj=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$j=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,K2=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ej=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Tj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dj(){return new RegExp(Tj,"u")}const _j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ij=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Aj=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Nj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Mj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,W2=/^[A-Za-z0-9_-]*$/,Oj=/^\+[1-9]\d{6,14}$/,U2="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jj=new RegExp(`^${U2}$`);function H2(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Fj(e){return new RegExp(`^${H2(e)}$`)}function Bj(e){const t=H2({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${U2}T(?:${n})$`)}const zj=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Lj=/^(?:true|false)$/i,Vj=/^[^A-Z]*$/,Rj=/^[^a-z]*$/,xr=J("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Kj=J("$ZodCheckMaxLength",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!wh(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const a=Sh(o);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Wj=J("$ZodCheckMinLength",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!wh(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const a=Sh(o);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Uj=J("$ZodCheckLengthEquals",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!wh(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,s=o.length;if(s===t.length)return;const a=Sh(o),i=s>t.length;n.issues.push({origin:a,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ji=J("$ZodCheckStringFormat",(e,t)=>{var r,n;xr.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Hj=J("$ZodCheckRegex",(e,t)=>{Ji.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qj=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Vj),Ji.init(e,t)}),Gj=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Rj),Ji.init(e,t)}),Zj=J("$ZodCheckIncludes",(e,t)=>{xr.init(e,t);const r=qi(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Yj=J("$ZodCheckStartsWith",(e,t)=>{xr.init(e,t);const r=new RegExp(`^${qi(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Jj=J("$ZodCheckEndsWith",(e,t)=>{xr.init(e,t);const r=new RegExp(`.*${qi(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Xj=J("$ZodCheckOverwrite",(e,t)=>{xr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Qj{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
846
846
|
`).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),s=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of s)this.content.push(a)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...r,o.join(`
|
|
847
847
|
`))}}const eF={major:4,minor:3,patch:5},it=J("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eF;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const s of o._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,i,l)=>{let u=Ro(a),c;for(const d of i){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(u)continue;const p=a.issues.length,h=d._zod.check(a);if(h instanceof Promise&&l?.async===!1)throw new Vo;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,a.issues.length!==p&&(u||(u=Ro(a,p)))});else{if(a.issues.length===p)continue;u||(u=Ro(a,p))}}return c?c.then(()=>a):a},s=(a,i,l)=>{if(Ro(a))return a.aborted=!0,a;const u=o(i,n,l);if(u instanceof Promise){if(l.async===!1)throw new Vo;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(a,i)=>{if(i.skipChecks)return e._zod.parse(a,i);if(i.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...i,skipChecks:!0});return u instanceof Promise?u.then(c=>s(c,a,i)):s(u,a,i)}const l=e._zod.parse(a,i);if(l instanceof Promise){if(i.async===!1)throw new Vo;return l.then(u=>o(u,n,i))}return o(l,n,i)}}ze(e,"~standard",()=>({validate:o=>{try{const s=uj(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return cj(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),$h=J("$ZodString",(e,t)=>{it.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??zj(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ue=J("$ZodStringFormat",(e,t)=>{Ji.init(e,t),$h.init(e,t)}),tF=J("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=$j),Ue.init(e,t)}),rF=J("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=K2(n))}else t.pattern??(t.pattern=K2());Ue.init(e,t)}),nF=J("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ej),Ue.init(e,t)}),oF=J("$ZodURL",(e,t)=>{Ue.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),sF=J("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Dj()),Ue.init(e,t)}),aF=J("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=kj),Ue.init(e,t)}),iF=J("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=yj),Ue.init(e,t)}),lF=J("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=xj),Ue.init(e,t)}),uF=J("$ZodULID",(e,t)=>{t.pattern??(t.pattern=wj),Ue.init(e,t)}),cF=J("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Cj),Ue.init(e,t)}),dF=J("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Sj),Ue.init(e,t)}),fF=J("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Bj(t)),Ue.init(e,t)}),pF=J("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=jj),Ue.init(e,t)}),hF=J("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Fj(t)),Ue.init(e,t)}),mF=J("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Pj),Ue.init(e,t)}),gF=J("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_j),Ue.init(e,t),e._zod.bag.format="ipv4"}),bF=J("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ij),Ue.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),vF=J("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Aj),Ue.init(e,t)}),yF=J("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Nj),Ue.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[o,s]=n;if(!s)throw new Error;const a=Number(s);if(`${a}`!==s)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function q2(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const xF=J("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Mj),Ue.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{q2(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function wF(e){if(!W2.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return q2(r)}const CF=J("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=W2),Ue.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{wF(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),SF=J("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Oj),Ue.init(e,t)});function kF(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const PF=J("$ZodJWT",(e,t)=>{Ue.init(e,t),e._zod.check=r=>{kF(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),$F=J("$ZodBoolean",(e,t)=>{it.init(e,t),e._zod.pattern=Lj,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}const o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),EF=J("$ZodUnknown",(e,t)=>{it.init(e,t),e._zod.parse=r=>r}),TF=J("$ZodNever",(e,t)=>{it.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function G2(e,t,r){e.issues.length&&t.issues.push(...z2(r,e.issues)),t.value[r]=e.value}const DF=J("$ZodArray",(e,t)=>{it.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const s=[];for(let a=0;a<o.length;a++){const i=o[a],l=t.element._zod.run({value:i,issues:[]},n);l instanceof Promise?s.push(l.then(u=>G2(u,r,a))):G2(l,r,a)}return s.length?Promise.all(s).then(()=>r):r}});function Xi(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...z2(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function Z2(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=QO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Y2(e,t,r,n,o,s){const a=[],i=o.keySet,l=o.catchall._zod,u=l.def.type,c=l.optout==="optional";for(const d in t){if(i.has(d))continue;if(u==="never"){a.push(d);continue}const p=l.run({value:t[d],issues:[]},n);p instanceof Promise?e.push(p.then(h=>Xi(h,r,d,t,c))):Xi(p,r,d,t,c)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}const _F=J("$ZodObject",(e,t)=>{if(it.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const i=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...i};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=xh(()=>Z2(t));ze(e._zod,"propValues",()=>{const i=t.shape,l={};for(const u in i){const c=i[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(const d of c.values)l[u].add(d)}}return l});const o=Hi,s=t.catchall;let a;e._zod.parse=(i,l)=>{a??(a=n.value);const u=i.value;if(!o(u))return i.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),i;i.value={};const c=[],d=a.shape;for(const p of a.keys){const h=d[p],m=h._zod.optout==="optional",b=h._zod.run({value:u[p],issues:[]},l);b instanceof Promise?c.push(b.then(v=>Xi(v,i,p,u,m))):Xi(b,i,p,u,m)}return s?Y2(c,u,i,l,n.value,e):c.length?Promise.all(c).then(()=>i):i}}),IF=J("$ZodObjectJIT",(e,t)=>{_F.init(e,t);const r=e._zod.parse,n=xh(()=>Z2(t)),o=p=>{const h=new Qj(["shape","payload","ctx"]),m=n.value,b=w=>{const C=j2(w);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let y=0;for(const w of m.keys)v[w]=`key_${y++}`;h.write("const newResult = {};");for(const w of m.keys){const C=v[w],S=j2(w),D=p[w]?._zod?.optout==="optional";h.write(`const ${C} = ${b(w)};`),D?h.write(`
|
|
848
848
|
if (${C}.issues.length) {
|
|
@@ -880,11 +880,11 @@ ${String(e)}`)}catch(t){return t}},Ox=e=>{if(typeof e!="object"||e===null)throw
|
|
|
880
880
|
|
|
881
881
|
`)}h.write("payload.value = newResult;"),h.write("return payload;");const x=h.compile();return(w,C)=>x(p,w,C)};let s;const a=Hi,i=!N2.jitless,u=i&&JO.value,c=t.catchall;let d;e._zod.parse=(p,h)=>{d??(d=n.value);const m=p.value;return a(m)?i&&u&&h?.async===!1&&h.jitless!==!0?(s||(s=o(t.shape)),p=s(p,h),c?Y2([],m,p,h,d,e):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function J2(e,t,r,n){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Ro(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(a=>jn(a,n,Mn())))}),t)}const AF=J("$ZodUnion",(e,t)=>{it.init(e,t),ze(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ze(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ze(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ze(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Ch(s.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(r)return n(o,s);let a=!1;const i=[];for(const l of t.options){const u=l._zod.run({value:o.value,issues:[]},s);if(u instanceof Promise)i.push(u),a=!0;else{if(u.issues.length===0)return u;i.push(u)}}return a?Promise.all(i).then(l=>J2(l,o,e,s)):J2(i,o,e,s)}}),NF=J("$ZodIntersection",(e,t)=>{it.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,s=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([l,u])=>X2(r,l,u)):X2(r,s,a)}});function Eh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(zs(e)&&zs(t)){const r=Object.keys(t),n=Object.keys(e).filter(s=>r.indexOf(s)!==-1),o={...e,...t};for(const s of n){const a=Eh(e[s],t[s]);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};o[s]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],s=t[n],a=Eh(o,s);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function X2(e,t,r){const n=new Map;let o;for(const i of t.issues)if(i.code==="unrecognized_keys"){o??(o=i);for(const l of i.keys)n.has(l)||n.set(l,{}),n.get(l).l=!0}else e.issues.push(i);for(const i of r.issues)if(i.code==="unrecognized_keys")for(const l of i.keys)n.has(l)||n.set(l,{}),n.get(l).r=!0;else e.issues.push(i);const s=[...n].filter(([,i])=>i.l&&i.r).map(([i])=>i);if(s.length&&o&&e.issues.push({...o,keys:s}),Ro(e))return e;const a=Eh(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const MF=J("$ZodEnum",(e,t)=>{it.init(e,t);const r=M2(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>XO.has(typeof o)).map(o=>typeof o=="string"?qi(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),OF=J("$ZodTransform",(e,t)=>{it.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new A2(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new Vo;return r.value=o,r}});function Q2(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const e3=J("$ZodOptional",(e,t)=>{it.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ze(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ch(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>Q2(s,r.value)):Q2(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),jF=J("$ZodExactOptional",(e,t)=>{e3.init(e,t),ze(e._zod,"values",()=>t.innerType._zod.values),ze(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),FF=J("$ZodNullable",(e,t)=>{it.init(e,t),ze(e._zod,"optin",()=>t.innerType._zod.optin),ze(e._zod,"optout",()=>t.innerType._zod.optout),ze(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ch(r.source)}|null)$`):void 0}),ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),BF=J("$ZodDefault",(e,t)=>{it.init(e,t),e._zod.optin="optional",ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>t3(s,t)):t3(o,t)}});function t3(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const zF=J("$ZodPrefault",(e,t)=>{it.init(e,t),e._zod.optin="optional",ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),LF=J("$ZodNonOptional",(e,t)=>{it.init(e,t),ze(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>r3(s,e)):r3(o,e)}});function r3(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const VF=J("$ZodCatch",(e,t)=>{it.init(e,t),ze(e._zod,"optin",()=>t.innerType._zod.optin),ze(e._zod,"optout",()=>t.innerType._zod.optout),ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(a=>jn(a,n,Mn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>jn(s,n,Mn()))},input:r.value}),r.issues=[]),r)}}),RF=J("$ZodPipe",(e,t)=>{it.init(e,t),ze(e._zod,"values",()=>t.in._zod.values),ze(e._zod,"optin",()=>t.in._zod.optin),ze(e._zod,"optout",()=>t.out._zod.optout),ze(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const s=t.out._zod.run(r,n);return s instanceof Promise?s.then(a=>Qi(a,t.in,n)):Qi(s,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(s=>Qi(s,t.out,n)):Qi(o,t.out,n)}});function Qi(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const KF=J("$ZodReadonly",(e,t)=>{it.init(e,t),ze(e._zod,"propValues",()=>t.innerType._zod.propValues),ze(e._zod,"values",()=>t.innerType._zod.values),ze(e._zod,"optin",()=>t.innerType?._zod?.optin),ze(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(n3):n3(o)}});function n3(e){return e.value=Object.freeze(e.value),e}const WF=J("$ZodCustom",(e,t)=>{xr.init(e,t),it.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(s=>o3(s,r,n,e));o3(o,r,n,e)}});function o3(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(Ls(o))}}var s3;class UF{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function HF(){return new UF}(s3=globalThis).__zod_globalRegistry??(s3.__zod_globalRegistry=HF());const Vs=globalThis.__zod_globalRegistry;function qF(e,t){return new e({type:"string",...ye(t)})}function GF(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ye(t)})}function a3(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ye(t)})}function ZF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ye(t)})}function YF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ye(t)})}function JF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ye(t)})}function XF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ye(t)})}function QF(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ye(t)})}function eB(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ye(t)})}function tB(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ye(t)})}function rB(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ye(t)})}function nB(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ye(t)})}function oB(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ye(t)})}function sB(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ye(t)})}function aB(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ye(t)})}function iB(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ye(t)})}function lB(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ye(t)})}function uB(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ye(t)})}function cB(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ye(t)})}function dB(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ye(t)})}function fB(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ye(t)})}function pB(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ye(t)})}function hB(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ye(t)})}function mB(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ye(t)})}function gB(e,t){return new e({type:"string",format:"date",check:"string_format",...ye(t)})}function bB(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ye(t)})}function vB(e,t){return new e({type:"string",format:"duration",check:"string_format",...ye(t)})}function yB(e,t){return new e({type:"boolean",...ye(t)})}function xB(e){return new e({type:"unknown"})}function wB(e,t){return new e({type:"never",...ye(t)})}function i3(e,t){return new Kj({check:"max_length",...ye(t),maximum:e})}function el(e,t){return new Wj({check:"min_length",...ye(t),minimum:e})}function l3(e,t){return new Uj({check:"length_equals",...ye(t),length:e})}function CB(e,t){return new Hj({check:"string_format",format:"regex",...ye(t),pattern:e})}function SB(e){return new qj({check:"string_format",format:"lowercase",...ye(e)})}function kB(e){return new Gj({check:"string_format",format:"uppercase",...ye(e)})}function PB(e,t){return new Zj({check:"string_format",format:"includes",...ye(t),includes:e})}function $B(e,t){return new Yj({check:"string_format",format:"starts_with",...ye(t),prefix:e})}function EB(e,t){return new Jj({check:"string_format",format:"ends_with",...ye(t),suffix:e})}function Ko(e){return new Xj({check:"overwrite",tx:e})}function TB(e){return Ko(t=>t.normalize(e))}function DB(){return Ko(e=>e.trim())}function _B(){return Ko(e=>e.toLowerCase())}function IB(){return Ko(e=>e.toUpperCase())}function AB(){return Ko(e=>YO(e))}function NB(e,t,r){return new e({type:"array",element:t,...ye(r)})}function MB(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ye(r)})}function OB(e){const t=jB(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Ls(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(Ls(o))}},e(r.value,r)));return t}function jB(e,t){const r=new xr({check:"custom",...ye(t)});return r._zod.check=e,r}function u3(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Vs,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function yt(e,t,r={path:[],schemaPath:[]}){var n;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);const i=e._zod.toJSONSchema?.();if(i)a.schema=i;else{const c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,c);else{const p=a.schema,h=t.processors[o.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);h(e,t,p,c)}const d=e._zod.parent;d&&(a.ref||(a.ref=d),yt(d,t,c),t.seen.get(d).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&Tt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function c3(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const a of e.seen.entries()){const i=e.metadataRegistry.get(a[0])?.id;if(i){const l=n.get(i);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(i,a[0])}}const o=a=>{const i=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(a[0])?.id,p=e.external.uri??(m=>m);if(d)return{ref:p(d)};const h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${p("__shared")}#/${i}/${h}`}}if(a[1]===r)return{ref:"#"};const u=`#/${i}/`,c=a[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},s=a=>{if(a[1].schema.$ref)return;const i=a[1],{ref:l,defId:u}=o(a);i.def={...i.schema},u&&(i.defId=u);const c=i.schema;for(const d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(const a of e.seen.entries()){const i=a[1];if(i.cycle)throw new Error(`Cycle detected: #/${i.cycle?.join("/")}/<root>
|
|
882
882
|
|
|
883
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const i=a[1];if(t===a[0]){s(a);continue}if(e.external){const u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){s(a);continue}}if(e.metadataRegistry.get(a[0])?.id){s(a);continue}if(i.cycle){s(a);continue}if(i.count>1&&e.reused==="ref"){s(a);continue}}}function d3(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=a=>{const i=e.seen.get(a);if(i.ref===null)return;const l=i.def??i.schema,u={...l},c=i.ref;if(i.ref=null,c){n(c);const p=e.seen.get(c),h=p.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,u),a._zod.parent===c)for(const b in l)b==="$ref"||b==="allOf"||b in u||delete l[b];if(h.$ref)for(const b in l)b==="$ref"||b==="allOf"||b in p.def&&JSON.stringify(l[b])===JSON.stringify(p.def[b])&&delete l[b]}const d=a._zod.parent;if(d&&d!==c){n(d);const p=e.seen.get(d);if(p?.schema.$ref&&(l.$ref=p.schema.$ref,p.def))for(const h in l)h==="$ref"||h==="allOf"||h in p.def&&JSON.stringify(l[h])===JSON.stringify(p.def[h])&&delete l[h]}e.override({zodSchema:a,jsonSchema:l,path:i.path??[]})};for(const a of[...e.seen.entries()].reverse())n(a[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,r.def??r.schema);const s=e.external?.defs??{};for(const a of e.seen.entries()){const i=a[1];i.def&&i.defId&&(s[i.defId]=i.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:tl(t,"input",e.processors),output:tl(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Tt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Tt(n.element,r);if(n.type==="set")return Tt(n.valueType,r);if(n.type==="lazy")return Tt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Tt(n.innerType,r);if(n.type==="intersection")return Tt(n.left,r)||Tt(n.right,r);if(n.type==="record"||n.type==="map")return Tt(n.keyType,r)||Tt(n.valueType,r);if(n.type==="pipe")return Tt(n.in,r)||Tt(n.out,r);if(n.type==="object"){for(const o in n.shape)if(Tt(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(const o of n.options)if(Tt(o,r))return!0;return!1}if(n.type==="tuple"){for(const o of n.items)if(Tt(o,r))return!0;return!!(n.rest&&Tt(n.rest,r))}return!1}const FB=(e,t={})=>r=>{const n=u3({...r,processors:t});return yt(e,n),c3(n,e),d3(n,e)},tl=(e,t,r={})=>n=>{const{libraryOptions:o,target:s}=n??{},a=u3({...o??{},target:s,io:t,processors:r});return yt(e,a),c3(a,e),d3(a,e)},BB={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zB=(e,t,r,n)=>{const o=r;o.type="string";const{minimum:s,maximum:a,format:i,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof a=="number"&&(o.maxLength=a),i&&(o.format=BB[i]??i,o.format===""&&delete o.format,i==="time"&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},LB=(e,t,r,n)=>{r.type="boolean"},VB=(e,t,r,n)=>{r.not={}},RB=(e,t,r,n)=>{},KB=(e,t,r,n)=>{const o=e._zod.def,s=M2(o.entries);s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),r.enum=s},WB=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},UB=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},HB=(e,t,r,n)=>{const o=r,s=e._zod.def,{minimum:a,maximum:i}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof i=="number"&&(o.maxItems=i),o.type="array",o.items=yt(s.element,t,{...n,path:[...n.path,"items"]})},qB=(e,t,r,n)=>{const o=r,s=e._zod.def;o.type="object",o.properties={};const a=s.shape;for(const u in a)o.properties[u]=yt(a[u],t,{...n,path:[...n.path,"properties",u]});const i=new Set(Object.keys(a)),l=new Set([...i].filter(u=>{const c=s.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(o.required=Array.from(l)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=yt(s.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},GB=(e,t,r,n)=>{const o=e._zod.def,s=o.inclusive===!1,a=o.options.map((i,l)=>yt(i,t,{...n,path:[...n.path,s?"oneOf":"anyOf",l]}));s?r.oneOf=a:r.anyOf=a},ZB=(e,t,r,n)=>{const o=e._zod.def,s=yt(o.left,t,{...n,path:[...n.path,"allOf",0]}),a=yt(o.right,t,{...n,path:[...n.path,"allOf",1]}),i=u=>"allOf"in u&&Object.keys(u).length===1,l=[...i(s)?s.allOf:[s],...i(a)?a.allOf:[a]];r.allOf=l},YB=(e,t,r,n)=>{const o=e._zod.def,s=yt(o.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},JB=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType},XB=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},QB=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},ez=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},tz=(e,t,r,n)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;yt(s,t,n);const a=t.seen.get(e);a.ref=s},rz=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType,r.readOnly=!0},f3=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType},nz=J("ZodISODateTime",(e,t)=>{fF.init(e,t),Ye.init(e,t)});function oz(e){return mB(nz,e)}const sz=J("ZodISODate",(e,t)=>{pF.init(e,t),Ye.init(e,t)});function az(e){return gB(sz,e)}const iz=J("ZodISOTime",(e,t)=>{hF.init(e,t),Ye.init(e,t)});function lz(e){return bB(iz,e)}const uz=J("ZodISODuration",(e,t)=>{mF.init(e,t),Ye.init(e,t)});function cz(e){return vB(uz,e)}const Yt=J("ZodError",(e,t)=>{V2.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>lj(e,r)},flatten:{value:r=>ij(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,yh,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,yh,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),dz=kh(Yt),fz=Ph(Yt),pz=Zi(Yt),hz=Yi(Yt),mz=dj(Yt),gz=fj(Yt),bz=pj(Yt),vz=hj(Yt),yz=mj(Yt),xz=gj(Yt),wz=bj(Yt),Cz=vj(Yt),lt=J("ZodType",(e,t)=>(it.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tl(e,"input"),output:tl(e,"output")}}),e.toJSONSchema=FB(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(dn(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>fn(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>dz(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>pz(e,r,n),e.parseAsync=async(r,n)=>fz(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>hz(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>mz(e,r,n),e.decode=(r,n)=>gz(e,r,n),e.encodeAsync=async(r,n)=>bz(e,r,n),e.decodeAsync=async(r,n)=>vz(e,r,n),e.safeEncode=(r,n)=>yz(e,r,n),e.safeDecode=(r,n)=>xz(e,r,n),e.safeEncodeAsync=async(r,n)=>wz(e,r,n),e.safeDecodeAsync=async(r,n)=>Cz(e,r,n),e.refine=(r,n)=>e.check(hL(r,n)),e.superRefine=r=>e.check(mL(r)),e.overwrite=r=>e.check(Ko(r)),e.optional=()=>y3(e),e.exactOptional=()=>tL(e),e.nullable=()=>x3(e),e.nullish=()=>y3(x3(e)),e.nonoptional=r=>iL(e,r),e.array=()=>g3(e),e.or=r=>Zz([e,r]),e.and=r=>Jz(e,r),e.transform=r=>C3(e,Qz(r)),e.default=r=>oL(e,r),e.prefault=r=>aL(e,r),e.catch=r=>uL(e,r),e.pipe=r=>C3(e,r),e.readonly=()=>fL(e),e.describe=r=>{const n=e.clone();return Vs.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Vs.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Vs.get(e);const n=e.clone();return Vs.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),p3=J("_ZodString",(e,t)=>{$h.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>zB(e,n,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(CB(...n)),e.includes=(...n)=>e.check(PB(...n)),e.startsWith=(...n)=>e.check($B(...n)),e.endsWith=(...n)=>e.check(EB(...n)),e.min=(...n)=>e.check(el(...n)),e.max=(...n)=>e.check(i3(...n)),e.length=(...n)=>e.check(l3(...n)),e.nonempty=(...n)=>e.check(el(1,...n)),e.lowercase=n=>e.check(SB(n)),e.uppercase=n=>e.check(kB(n)),e.trim=()=>e.check(DB()),e.normalize=(...n)=>e.check(TB(...n)),e.toLowerCase=()=>e.check(_B()),e.toUpperCase=()=>e.check(IB()),e.slugify=()=>e.check(AB())}),Sz=J("ZodString",(e,t)=>{$h.init(e,t),p3.init(e,t),e.email=r=>e.check(GF(kz,r)),e.url=r=>e.check(QF(Pz,r)),e.jwt=r=>e.check(hB(Lz,r)),e.emoji=r=>e.check(eB($z,r)),e.guid=r=>e.check(a3(h3,r)),e.uuid=r=>e.check(ZF(rl,r)),e.uuidv4=r=>e.check(YF(rl,r)),e.uuidv6=r=>e.check(JF(rl,r)),e.uuidv7=r=>e.check(XF(rl,r)),e.nanoid=r=>e.check(tB(Ez,r)),e.guid=r=>e.check(a3(h3,r)),e.cuid=r=>e.check(rB(Tz,r)),e.cuid2=r=>e.check(nB(Dz,r)),e.ulid=r=>e.check(oB(_z,r)),e.base64=r=>e.check(dB(Fz,r)),e.base64url=r=>e.check(fB(Bz,r)),e.xid=r=>e.check(sB(Iz,r)),e.ksuid=r=>e.check(aB(Az,r)),e.ipv4=r=>e.check(iB(Nz,r)),e.ipv6=r=>e.check(lB(Mz,r)),e.cidrv4=r=>e.check(uB(Oz,r)),e.cidrv6=r=>e.check(cB(jz,r)),e.e164=r=>e.check(pB(zz,r)),e.datetime=r=>e.check(oz(r)),e.date=r=>e.check(az(r)),e.time=r=>e.check(lz(r)),e.duration=r=>e.check(cz(r))});function cr(e){return qF(Sz,e)}const Ye=J("ZodStringFormat",(e,t)=>{Ue.init(e,t),p3.init(e,t)}),kz=J("ZodEmail",(e,t)=>{nF.init(e,t),Ye.init(e,t)}),h3=J("ZodGUID",(e,t)=>{tF.init(e,t),Ye.init(e,t)}),rl=J("ZodUUID",(e,t)=>{rF.init(e,t),Ye.init(e,t)}),Pz=J("ZodURL",(e,t)=>{oF.init(e,t),Ye.init(e,t)}),$z=J("ZodEmoji",(e,t)=>{sF.init(e,t),Ye.init(e,t)}),Ez=J("ZodNanoID",(e,t)=>{aF.init(e,t),Ye.init(e,t)}),Tz=J("ZodCUID",(e,t)=>{iF.init(e,t),Ye.init(e,t)}),Dz=J("ZodCUID2",(e,t)=>{lF.init(e,t),Ye.init(e,t)}),_z=J("ZodULID",(e,t)=>{uF.init(e,t),Ye.init(e,t)}),Iz=J("ZodXID",(e,t)=>{cF.init(e,t),Ye.init(e,t)}),Az=J("ZodKSUID",(e,t)=>{dF.init(e,t),Ye.init(e,t)}),Nz=J("ZodIPv4",(e,t)=>{gF.init(e,t),Ye.init(e,t)}),Mz=J("ZodIPv6",(e,t)=>{bF.init(e,t),Ye.init(e,t)}),Oz=J("ZodCIDRv4",(e,t)=>{vF.init(e,t),Ye.init(e,t)}),jz=J("ZodCIDRv6",(e,t)=>{yF.init(e,t),Ye.init(e,t)}),Fz=J("ZodBase64",(e,t)=>{xF.init(e,t),Ye.init(e,t)}),Bz=J("ZodBase64URL",(e,t)=>{CF.init(e,t),Ye.init(e,t)}),zz=J("ZodE164",(e,t)=>{SF.init(e,t),Ye.init(e,t)}),Lz=J("ZodJWT",(e,t)=>{PF.init(e,t),Ye.init(e,t)}),Vz=J("ZodBoolean",(e,t)=>{$F.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>LB(e,r,n)});function Rz(e){return yB(Vz,e)}const Kz=J("ZodUnknown",(e,t)=>{EF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>RB()});function m3(){return xB(Kz)}const Wz=J("ZodNever",(e,t)=>{TF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>VB(e,r,n)});function Uz(e){return wB(Wz,e)}const Hz=J("ZodArray",(e,t)=>{DF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>HB(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(el(r,n)),e.nonempty=r=>e.check(el(1,r)),e.max=(r,n)=>e.check(i3(r,n)),e.length=(r,n)=>e.check(l3(r,n)),e.unwrap=()=>e.element});function g3(e,t){return NB(Hz,e,t)}const qz=J("ZodObject",(e,t)=>{IF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>qB(e,r,n,o),ze(e,"shape",()=>t.shape),e.keyof=()=>b3(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:m3()}),e.loose=()=>e.clone({...e._zod.def,catchall:m3()}),e.strict=()=>e.clone({...e._zod.def,catchall:Uz()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>rj(e,r),e.safeExtend=r=>nj(e,r),e.merge=r=>oj(e,r),e.pick=r=>ej(e,r),e.omit=r=>tj(e,r),e.partial=(...r)=>sj(v3,e,r[0]),e.required=(...r)=>aj(w3,e,r[0])});function Th(e,t){const r={type:"object",shape:e??{},...ye(t)};return new qz(r)}const Gz=J("ZodUnion",(e,t)=>{AF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>GB(e,r,n,o),e.options=t.options});function Zz(e,t){return new Gz({type:"union",options:e,...ye(t)})}const Yz=J("ZodIntersection",(e,t)=>{NF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ZB(e,r,n,o)});function Jz(e,t){return new Yz({type:"intersection",left:e,right:t})}const Dh=J("ZodEnum",(e,t)=>{MF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>KB(e,n,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const s={};for(const a of n)if(r.has(a))s[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Dh({...t,checks:[],...ye(o),entries:s})},e.exclude=(n,o)=>{const s={...t.entries};for(const a of n)if(r.has(a))delete s[a];else throw new Error(`Key ${a} not found in enum`);return new Dh({...t,checks:[],...ye(o),entries:s})}});function b3(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Dh({type:"enum",entries:r,...ye(t)})}const Xz=J("ZodTransform",(e,t)=>{OF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UB(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new A2(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(Ls(s,r.value,t));else{const a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Ls(a))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(s=>(r.value=s,r)):(r.value=o,r)}});function Qz(e){return new Xz({type:"transform",transform:e})}const v3=J("ZodOptional",(e,t)=>{e3.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>f3(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function y3(e){return new v3({type:"optional",innerType:e})}const eL=J("ZodExactOptional",(e,t)=>{jF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>f3(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function tL(e){return new eL({type:"optional",innerType:e})}const rL=J("ZodNullable",(e,t)=>{FF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>YB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function x3(e){return new rL({type:"nullable",innerType:e})}const nL=J("ZodDefault",(e,t)=>{BF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>XB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function oL(e,t){return new nL({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():B2(t)}})}const sL=J("ZodPrefault",(e,t)=>{zF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>QB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function aL(e,t){return new sL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():B2(t)}})}const w3=J("ZodNonOptional",(e,t)=>{LF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>JB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function iL(e,t){return new w3({type:"nonoptional",innerType:e,...ye(t)})}const lL=J("ZodCatch",(e,t)=>{VF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ez(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uL(e,t){return new lL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const cL=J("ZodPipe",(e,t)=>{RF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>tz(e,r,n,o),e.in=t.in,e.out=t.out});function C3(e,t){return new cL({type:"pipe",in:e,out:t})}const dL=J("ZodReadonly",(e,t)=>{KF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>rz(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function fL(e){return new dL({type:"readonly",innerType:e})}const pL=J("ZodCustom",(e,t)=>{WF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>WB(e,r)});function hL(e,t={}){return MB(pL,e,t)}function mL(e){return OB(e)}const gL=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/i,S3=Th({postcode:cr().trim().min(1,{message:"Dit is een verplicht veld."}).regex(gL,{message:"Geef een geldige postcode op."}).max(6,{message:"De postcode is te lang."}),number:cr().min(1,{message:"Dit is een verplicht veld."}),numberAddon:cr().optional().transform(e=>e??void 0),street:cr().min(1,{message:"Vul de straat in."}),city:cr().min(1,{message:"Vul de woonplaats in."})}),k3=Th({keepCurrentMsisdn:Rz().optional(),currentMsisdn:cr().optional(),currentSubscriptionType:b3(["subscription","prepaid"]).optional(),currentProviderSlug:cr().optional(),currentFixedProviderScope:cr().optional(),currentMobileProviders:g3(Th({scope:cr(),value:cr()})).optional(),customerSegment:cr().nullish(),address:S3.optional()});function _h(){const e=k3.safeParse(bh("mobielnl-profile"));return e.success?e.data:{}}function bL(e){return!!e.address||!!e.currentMsisdn}const vL=Le`
|
|
883
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const i=a[1];if(t===a[0]){s(a);continue}if(e.external){const u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){s(a);continue}}if(e.metadataRegistry.get(a[0])?.id){s(a);continue}if(i.cycle){s(a);continue}if(i.count>1&&e.reused==="ref"){s(a);continue}}}function d3(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=a=>{const i=e.seen.get(a);if(i.ref===null)return;const l=i.def??i.schema,u={...l},c=i.ref;if(i.ref=null,c){n(c);const p=e.seen.get(c),h=p.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,u),a._zod.parent===c)for(const b in l)b==="$ref"||b==="allOf"||b in u||delete l[b];if(h.$ref)for(const b in l)b==="$ref"||b==="allOf"||b in p.def&&JSON.stringify(l[b])===JSON.stringify(p.def[b])&&delete l[b]}const d=a._zod.parent;if(d&&d!==c){n(d);const p=e.seen.get(d);if(p?.schema.$ref&&(l.$ref=p.schema.$ref,p.def))for(const h in l)h==="$ref"||h==="allOf"||h in p.def&&JSON.stringify(l[h])===JSON.stringify(p.def[h])&&delete l[h]}e.override({zodSchema:a,jsonSchema:l,path:i.path??[]})};for(const a of[...e.seen.entries()].reverse())n(a[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,r.def??r.schema);const s=e.external?.defs??{};for(const a of e.seen.entries()){const i=a[1];i.def&&i.defId&&(s[i.defId]=i.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:tl(t,"input",e.processors),output:tl(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Tt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Tt(n.element,r);if(n.type==="set")return Tt(n.valueType,r);if(n.type==="lazy")return Tt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Tt(n.innerType,r);if(n.type==="intersection")return Tt(n.left,r)||Tt(n.right,r);if(n.type==="record"||n.type==="map")return Tt(n.keyType,r)||Tt(n.valueType,r);if(n.type==="pipe")return Tt(n.in,r)||Tt(n.out,r);if(n.type==="object"){for(const o in n.shape)if(Tt(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(const o of n.options)if(Tt(o,r))return!0;return!1}if(n.type==="tuple"){for(const o of n.items)if(Tt(o,r))return!0;return!!(n.rest&&Tt(n.rest,r))}return!1}const FB=(e,t={})=>r=>{const n=u3({...r,processors:t});return yt(e,n),c3(n,e),d3(n,e)},tl=(e,t,r={})=>n=>{const{libraryOptions:o,target:s}=n??{},a=u3({...o??{},target:s,io:t,processors:r});return yt(e,a),c3(a,e),d3(a,e)},BB={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zB=(e,t,r,n)=>{const o=r;o.type="string";const{minimum:s,maximum:a,format:i,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof a=="number"&&(o.maxLength=a),i&&(o.format=BB[i]??i,o.format===""&&delete o.format,i==="time"&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},LB=(e,t,r,n)=>{r.type="boolean"},VB=(e,t,r,n)=>{r.not={}},RB=(e,t,r,n)=>{},KB=(e,t,r,n)=>{const o=e._zod.def,s=M2(o.entries);s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),r.enum=s},WB=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},UB=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},HB=(e,t,r,n)=>{const o=r,s=e._zod.def,{minimum:a,maximum:i}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof i=="number"&&(o.maxItems=i),o.type="array",o.items=yt(s.element,t,{...n,path:[...n.path,"items"]})},qB=(e,t,r,n)=>{const o=r,s=e._zod.def;o.type="object",o.properties={};const a=s.shape;for(const u in a)o.properties[u]=yt(a[u],t,{...n,path:[...n.path,"properties",u]});const i=new Set(Object.keys(a)),l=new Set([...i].filter(u=>{const c=s.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(o.required=Array.from(l)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=yt(s.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},GB=(e,t,r,n)=>{const o=e._zod.def,s=o.inclusive===!1,a=o.options.map((i,l)=>yt(i,t,{...n,path:[...n.path,s?"oneOf":"anyOf",l]}));s?r.oneOf=a:r.anyOf=a},ZB=(e,t,r,n)=>{const o=e._zod.def,s=yt(o.left,t,{...n,path:[...n.path,"allOf",0]}),a=yt(o.right,t,{...n,path:[...n.path,"allOf",1]}),i=u=>"allOf"in u&&Object.keys(u).length===1,l=[...i(s)?s.allOf:[s],...i(a)?a.allOf:[a]];r.allOf=l},YB=(e,t,r,n)=>{const o=e._zod.def,s=yt(o.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},JB=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType},XB=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},QB=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},ez=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},tz=(e,t,r,n)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;yt(s,t,n);const a=t.seen.get(e);a.ref=s},rz=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType,r.readOnly=!0},f3=(e,t,r,n)=>{const o=e._zod.def;yt(o.innerType,t,n);const s=t.seen.get(e);s.ref=o.innerType},nz=J("ZodISODateTime",(e,t)=>{fF.init(e,t),Je.init(e,t)});function oz(e){return mB(nz,e)}const sz=J("ZodISODate",(e,t)=>{pF.init(e,t),Je.init(e,t)});function az(e){return gB(sz,e)}const iz=J("ZodISOTime",(e,t)=>{hF.init(e,t),Je.init(e,t)});function lz(e){return bB(iz,e)}const uz=J("ZodISODuration",(e,t)=>{mF.init(e,t),Je.init(e,t)});function cz(e){return vB(uz,e)}const Yt=J("ZodError",(e,t)=>{V2.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>lj(e,r)},flatten:{value:r=>ij(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,yh,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,yh,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),dz=kh(Yt),fz=Ph(Yt),pz=Zi(Yt),hz=Yi(Yt),mz=dj(Yt),gz=fj(Yt),bz=pj(Yt),vz=hj(Yt),yz=mj(Yt),xz=gj(Yt),wz=bj(Yt),Cz=vj(Yt),lt=J("ZodType",(e,t)=>(it.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tl(e,"input"),output:tl(e,"output")}}),e.toJSONSchema=FB(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(dn(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>fn(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>dz(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>pz(e,r,n),e.parseAsync=async(r,n)=>fz(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>hz(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>mz(e,r,n),e.decode=(r,n)=>gz(e,r,n),e.encodeAsync=async(r,n)=>bz(e,r,n),e.decodeAsync=async(r,n)=>vz(e,r,n),e.safeEncode=(r,n)=>yz(e,r,n),e.safeDecode=(r,n)=>xz(e,r,n),e.safeEncodeAsync=async(r,n)=>wz(e,r,n),e.safeDecodeAsync=async(r,n)=>Cz(e,r,n),e.refine=(r,n)=>e.check(hL(r,n)),e.superRefine=r=>e.check(mL(r)),e.overwrite=r=>e.check(Ko(r)),e.optional=()=>y3(e),e.exactOptional=()=>tL(e),e.nullable=()=>x3(e),e.nullish=()=>y3(x3(e)),e.nonoptional=r=>iL(e,r),e.array=()=>g3(e),e.or=r=>Zz([e,r]),e.and=r=>Jz(e,r),e.transform=r=>C3(e,Qz(r)),e.default=r=>oL(e,r),e.prefault=r=>aL(e,r),e.catch=r=>uL(e,r),e.pipe=r=>C3(e,r),e.readonly=()=>fL(e),e.describe=r=>{const n=e.clone();return Vs.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Vs.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Vs.get(e);const n=e.clone();return Vs.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),p3=J("_ZodString",(e,t)=>{$h.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>zB(e,n,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(CB(...n)),e.includes=(...n)=>e.check(PB(...n)),e.startsWith=(...n)=>e.check($B(...n)),e.endsWith=(...n)=>e.check(EB(...n)),e.min=(...n)=>e.check(el(...n)),e.max=(...n)=>e.check(i3(...n)),e.length=(...n)=>e.check(l3(...n)),e.nonempty=(...n)=>e.check(el(1,...n)),e.lowercase=n=>e.check(SB(n)),e.uppercase=n=>e.check(kB(n)),e.trim=()=>e.check(DB()),e.normalize=(...n)=>e.check(TB(...n)),e.toLowerCase=()=>e.check(_B()),e.toUpperCase=()=>e.check(IB()),e.slugify=()=>e.check(AB())}),Sz=J("ZodString",(e,t)=>{$h.init(e,t),p3.init(e,t),e.email=r=>e.check(GF(kz,r)),e.url=r=>e.check(QF(Pz,r)),e.jwt=r=>e.check(hB(Lz,r)),e.emoji=r=>e.check(eB($z,r)),e.guid=r=>e.check(a3(h3,r)),e.uuid=r=>e.check(ZF(rl,r)),e.uuidv4=r=>e.check(YF(rl,r)),e.uuidv6=r=>e.check(JF(rl,r)),e.uuidv7=r=>e.check(XF(rl,r)),e.nanoid=r=>e.check(tB(Ez,r)),e.guid=r=>e.check(a3(h3,r)),e.cuid=r=>e.check(rB(Tz,r)),e.cuid2=r=>e.check(nB(Dz,r)),e.ulid=r=>e.check(oB(_z,r)),e.base64=r=>e.check(dB(Fz,r)),e.base64url=r=>e.check(fB(Bz,r)),e.xid=r=>e.check(sB(Iz,r)),e.ksuid=r=>e.check(aB(Az,r)),e.ipv4=r=>e.check(iB(Nz,r)),e.ipv6=r=>e.check(lB(Mz,r)),e.cidrv4=r=>e.check(uB(Oz,r)),e.cidrv6=r=>e.check(cB(jz,r)),e.e164=r=>e.check(pB(zz,r)),e.datetime=r=>e.check(oz(r)),e.date=r=>e.check(az(r)),e.time=r=>e.check(lz(r)),e.duration=r=>e.check(cz(r))});function cr(e){return qF(Sz,e)}const Je=J("ZodStringFormat",(e,t)=>{Ue.init(e,t),p3.init(e,t)}),kz=J("ZodEmail",(e,t)=>{nF.init(e,t),Je.init(e,t)}),h3=J("ZodGUID",(e,t)=>{tF.init(e,t),Je.init(e,t)}),rl=J("ZodUUID",(e,t)=>{rF.init(e,t),Je.init(e,t)}),Pz=J("ZodURL",(e,t)=>{oF.init(e,t),Je.init(e,t)}),$z=J("ZodEmoji",(e,t)=>{sF.init(e,t),Je.init(e,t)}),Ez=J("ZodNanoID",(e,t)=>{aF.init(e,t),Je.init(e,t)}),Tz=J("ZodCUID",(e,t)=>{iF.init(e,t),Je.init(e,t)}),Dz=J("ZodCUID2",(e,t)=>{lF.init(e,t),Je.init(e,t)}),_z=J("ZodULID",(e,t)=>{uF.init(e,t),Je.init(e,t)}),Iz=J("ZodXID",(e,t)=>{cF.init(e,t),Je.init(e,t)}),Az=J("ZodKSUID",(e,t)=>{dF.init(e,t),Je.init(e,t)}),Nz=J("ZodIPv4",(e,t)=>{gF.init(e,t),Je.init(e,t)}),Mz=J("ZodIPv6",(e,t)=>{bF.init(e,t),Je.init(e,t)}),Oz=J("ZodCIDRv4",(e,t)=>{vF.init(e,t),Je.init(e,t)}),jz=J("ZodCIDRv6",(e,t)=>{yF.init(e,t),Je.init(e,t)}),Fz=J("ZodBase64",(e,t)=>{xF.init(e,t),Je.init(e,t)}),Bz=J("ZodBase64URL",(e,t)=>{CF.init(e,t),Je.init(e,t)}),zz=J("ZodE164",(e,t)=>{SF.init(e,t),Je.init(e,t)}),Lz=J("ZodJWT",(e,t)=>{PF.init(e,t),Je.init(e,t)}),Vz=J("ZodBoolean",(e,t)=>{$F.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>LB(e,r,n)});function Rz(e){return yB(Vz,e)}const Kz=J("ZodUnknown",(e,t)=>{EF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>RB()});function m3(){return xB(Kz)}const Wz=J("ZodNever",(e,t)=>{TF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>VB(e,r,n)});function Uz(e){return wB(Wz,e)}const Hz=J("ZodArray",(e,t)=>{DF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>HB(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(el(r,n)),e.nonempty=r=>e.check(el(1,r)),e.max=(r,n)=>e.check(i3(r,n)),e.length=(r,n)=>e.check(l3(r,n)),e.unwrap=()=>e.element});function g3(e,t){return NB(Hz,e,t)}const qz=J("ZodObject",(e,t)=>{IF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>qB(e,r,n,o),ze(e,"shape",()=>t.shape),e.keyof=()=>b3(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:m3()}),e.loose=()=>e.clone({...e._zod.def,catchall:m3()}),e.strict=()=>e.clone({...e._zod.def,catchall:Uz()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>rj(e,r),e.safeExtend=r=>nj(e,r),e.merge=r=>oj(e,r),e.pick=r=>ej(e,r),e.omit=r=>tj(e,r),e.partial=(...r)=>sj(v3,e,r[0]),e.required=(...r)=>aj(w3,e,r[0])});function Th(e,t){const r={type:"object",shape:e??{},...ye(t)};return new qz(r)}const Gz=J("ZodUnion",(e,t)=>{AF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>GB(e,r,n,o),e.options=t.options});function Zz(e,t){return new Gz({type:"union",options:e,...ye(t)})}const Yz=J("ZodIntersection",(e,t)=>{NF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ZB(e,r,n,o)});function Jz(e,t){return new Yz({type:"intersection",left:e,right:t})}const Dh=J("ZodEnum",(e,t)=>{MF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>KB(e,n,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const s={};for(const a of n)if(r.has(a))s[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Dh({...t,checks:[],...ye(o),entries:s})},e.exclude=(n,o)=>{const s={...t.entries};for(const a of n)if(r.has(a))delete s[a];else throw new Error(`Key ${a} not found in enum`);return new Dh({...t,checks:[],...ye(o),entries:s})}});function b3(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Dh({type:"enum",entries:r,...ye(t)})}const Xz=J("ZodTransform",(e,t)=>{OF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UB(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new A2(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(Ls(s,r.value,t));else{const a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Ls(a))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(s=>(r.value=s,r)):(r.value=o,r)}});function Qz(e){return new Xz({type:"transform",transform:e})}const v3=J("ZodOptional",(e,t)=>{e3.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>f3(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function y3(e){return new v3({type:"optional",innerType:e})}const eL=J("ZodExactOptional",(e,t)=>{jF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>f3(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function tL(e){return new eL({type:"optional",innerType:e})}const rL=J("ZodNullable",(e,t)=>{FF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>YB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function x3(e){return new rL({type:"nullable",innerType:e})}const nL=J("ZodDefault",(e,t)=>{BF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>XB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function oL(e,t){return new nL({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():B2(t)}})}const sL=J("ZodPrefault",(e,t)=>{zF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>QB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function aL(e,t){return new sL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():B2(t)}})}const w3=J("ZodNonOptional",(e,t)=>{LF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>JB(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function iL(e,t){return new w3({type:"nonoptional",innerType:e,...ye(t)})}const lL=J("ZodCatch",(e,t)=>{VF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ez(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uL(e,t){return new lL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const cL=J("ZodPipe",(e,t)=>{RF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>tz(e,r,n,o),e.in=t.in,e.out=t.out});function C3(e,t){return new cL({type:"pipe",in:e,out:t})}const dL=J("ZodReadonly",(e,t)=>{KF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>rz(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function fL(e){return new dL({type:"readonly",innerType:e})}const pL=J("ZodCustom",(e,t)=>{WF.init(e,t),lt.init(e,t),e._zod.processJSONSchema=(r,n,o)=>WB(e,r)});function hL(e,t={}){return MB(pL,e,t)}function mL(e){return OB(e)}const gL=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/i,S3=Th({postcode:cr().trim().min(1,{message:"Dit is een verplicht veld."}).regex(gL,{message:"Geef een geldige postcode op."}).max(6,{message:"De postcode is te lang."}),number:cr().min(1,{message:"Dit is een verplicht veld."}),numberAddon:cr().optional().transform(e=>e??void 0),street:cr().min(1,{message:"Vul de straat in."}),city:cr().min(1,{message:"Vul de woonplaats in."})}),k3=Th({keepCurrentMsisdn:Rz().optional(),currentMsisdn:cr().optional(),currentSubscriptionType:b3(["subscription","prepaid"]).optional(),currentProviderSlug:cr().optional(),currentFixedProviderScope:cr().optional(),currentMobileProviders:g3(Th({scope:cr(),value:cr()})).optional(),customerSegment:cr().nullish(),address:S3.optional()});function _h(){const e=k3.safeParse(bh("mobielnl-profile"));return e.success?e.data:{}}function bL(e){return!!e.address||!!e.currentMsisdn}const vL=Le`
|
|
884
884
|
mutation addPartnerProfile($data: InputPartnerProfile!) {
|
|
885
885
|
addPartnerProfile(data: $data)
|
|
886
886
|
}
|
|
887
|
-
`;async function yL(e){return(await
|
|
887
|
+
`;async function yL(e){return(await Vx(vL,{data:e}).catch(()=>{}))?.addPartnerProfile}async function Ih(e){const r={..._h(),...e};if(!bL(r))return;const{address:n,currentMsisdn:o}=r,s=await yL({address:n?{postcode:n.postcode,number:n.number,numberAddon:n.numberAddon&&n.numberAddon.length>0?n.numberAddon:void 0}:void 0,currentMsisdn:o});if(s)return vh("mobielnl-ppt",{token:s},{expires:15/1440}),s}function xL(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function wL(e,t,r,n){const o=t.map(u=>u.name).join(" & "),s=o?` • ${o}`:"";if(n)return o.length>0?o:Q.t("combiDeal.selectOtherSubscriptionsOnAddress");if(r==="other")return`${Q.t("combiDeal.otherProvider")}${s}`;const a=r?.split("/")[1],i=e.find(u=>u.slug===a);if(!a||!i)return Q.t("combiDeal.selectHomeProvider");const l=a.includes("internet")?"":` ${Q.t("format.internet")}`;return`${i.name}${l}${s}`}async function CL(){const e=bh("mobielnl-ppt")?.token;return e||Ih()}function SL(e,t){if(!e||e.length===0||!t||t.length===0)return[];const r=new Set(e.map(n=>n.scope));return t.filter(n=>r.has(n.scope)).map(n=>({name:n.provider.name}))}function nl(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}const P3=g.createContext({profile:{},setProfile:e=>{}}),$3=30;function kL(e){const t=k3.safeParse(e);return t.success?(vh("mobielnl-profile",t.data,{expires:$3}),t.data):e}function PL({children:e,initialProfile:t,onProfileChange:r}){const{onAction:n}=Bo(),[o,s]=g.useState({...t,..._h()});Nr(()=>{s({...t,..._h()})},[JSON.stringify(t)]);const{profile:a}=g.useMemo(()=>({profile:o}),[o]),i=g.useCallback(l=>{s(u=>{const c={...u,...l};return r?.(c),kL(c),n({type:"profile_changed",from:u,to:c}),c})},[r,n]);return f.jsx(P3,{value:{profile:a,setProfile:i},children:e})}function zr(){return g.useContext(P3)}function $L(){const[e,t]=g.useState(!1);return Tg(()=>{bh("mobielnl-attribution-tracked")?.tracked===!0||t(!0)}),e?f.jsx("img",{src:`https://www.mobiel.nl/api/pixel?landing-page=${window.location.pathname}`,alt:"",width:1,height:1,className:"invisible",hidden:!0,"aria-hidden":"true",onLoad:()=>vh("mobielnl-attribution-tracked",{tracked:!0},{expires:$3})}):null}function E3(e,t){const r=e.map(n=>({slug:n.scope,name:n.provider.name,imageUrl:n.provider.imageUrl,Icon:void 0}));return[...t==="fixed"?[{name:Q.t("combiDeal.movingOption"),slug:"other/moving",Icon:HE,imageUrl:void 0}]:[],...r,{name:Q.t("combiDeal.otherProvider"),slug:"other",Icon:Ng,imageUrl:void 0}]}const EL=Le`
|
|
888
888
|
query getAllProviders {
|
|
889
889
|
providers {
|
|
890
890
|
slug
|
|
@@ -920,7 +920,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
`;function Ah(e,t=!0){const{data:r}=En(t?[TL,{version:"release",productType:e}]:null,{fetcher:qt});return r?.modificationConfig?{fixedBlocks:r.modificationConfig.fixedBlocks.sort((n,o)=>n.provider.rank-o.provider.rank),otherBlocks:r.modificationConfig.otherBlocks.sort((n,o)=>n.provider.rank-o.provider.rank)}:{fixedBlocks:[],otherBlocks:[]}}function DL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function _L({street:e,city:t,number:r,numberAddon:n}){if(!(!e||!r||!t))return`${e} ${DL(r,n)}, ${t}`}function IL(e){var t,r;const n=et(),[o,s]=pt(e,Lm.variantKeys),{ref:a,as:i,src:l,className:u,classNames:c,loading:d,isBlurred:p,fallbackSrc:h,isLoading:m,disableSkeleton:b=!!h,removeWrapper:v=!1,onError:y,onLoad:x,srcSet:w,sizes:C,crossOrigin:S,...k}=o,D=Dy({src:l,loading:d,onError:y,onLoad:x,ignoreFallback:!1,srcSet:w,sizes:C,crossOrigin:S,shouldBypassImageLoad:i!==void 0}),$=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,_=D==="loaded"&&!m,N=D==="loading"||m,A=e.isZoomed,M=i||"img",O=Pe(a),{w:L,h:I}=g.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),z=(!l||!_)&&!!h,F=N&&!b,B=g.useMemo(()=>Lm({...s,disableAnimation:$,showSkeleton:F}),[ft(s),$,F]),U=P(u,c?.img),E=(V={})=>{const K=P(U,V?.className);return{src:l,ref:O,"data-loaded":H(_),className:B.img({class:K}),loading:d,srcSet:w,sizes:C,crossOrigin:S,...k,style:{...k?.height&&{height:I},...V.style,...k.style}}},j=g.useCallback(()=>{const V=z?{backgroundImage:`url(${h})`}:{};return{className:B.wrapper({class:c?.wrapper}),style:{...V,maxWidth:L}}},[B,z,h,c?.wrapper,L]),T=g.useCallback(()=>({src:l,"aria-hidden":H(!0),className:B.blurredImg({class:c?.blurredImg})}),[B,l,c?.blurredImg]);return{Component:M,domRef:O,slots:B,classNames:c,isBlurred:p,disableSkeleton:b,fallbackSrc:h,removeWrapper:v,isZoomed:A,isLoading:N,getImgProps:E,getWrapperProps:j,getBlurredImgProps:T}}var D3=Se((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:s,isBlurred:a,isZoomed:i,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:p,getBlurredImgProps:h}=IL({...e,ref:t}),m=f.jsx(r,{ref:n,...d()});if(u)return m;const b=f.jsx("div",{className:o.zoomedWrapper({class:s?.zoomedWrapper}),children:m});return a?f.jsxs("div",{...p(),children:[i?b:m,g.cloneElement(m,h())]}):i||!c||l?f.jsxs("div",{...p(),children:[" ",i?b:m]}):m});D3.displayName="HeroUI.Image";var Jt=D3;function AL({productCategory:e}){const{t}=Oe(),{combiDealModal:r}=nt(),{profile:n,setProfile:o}=zr(),{popoverProps:s}=on(),[a]=Co(),{isOpen:i,setModal:l}=Wi("combi-deal"),u=e==="fixed-proposition"?"fixed":"mobile",c=Ah(u),[d,p]=g.useState(!1),h=g.useMemo(()=>E3(c.fixedBlocks,u),[c.fixedBlocks.length]),m=t("format.internet"),b=g.useCallback(({slug:v,name:y})=>v.startsWith("other")||y.toLowerCase().includes("internet")?y:`${y} ${m}`,[m]);return f.jsx($o,{isOpen:i,onOpenChange:v=>l(v?"combi-deal":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:s.portalContainer,classNames:{backdrop:P(r?.modal?.backdrop),wrapper:P(r?.modal?.wrapper),base:P(r?.modal?.base),header:P(r?.modal?.header),body:P(r?.modal?.body),footer:P(r?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",r?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:t("combiDeal.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",r?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",r?.header?.iconWrapper),children:f.jsx(tu,{size:48,className:P("stroke-primary",r?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",r?.header?.title),children:t("combiDeal.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1 max-w-xs",r?.header?.description),children:t("combiDeal.description")})]}),u==="mobile"&&f.jsxs(f.Fragment,{children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.providerSelection?.title),children:t("combiDeal.homeInternet")}),f.jsx(As,{variant:"bordered","aria-label":t("combiDeal.homeInternet"),placeholder:t("combiDeal.selectHomeProvider"),isOpen:d,onOpenChange:v=>v!==d&&p(v),popoverProps:s,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:n.currentFixedProviderScope?[n.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:v=>{const y=h.find(x=>x.slug===v[0]?.key);return y?f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[y.imageUrl&&f.jsx(Jt,{src:a(y.imageUrl,120,60),alt:y.name,width:60,height:30,radius:"none"}),y.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(y.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(y)]}):null},classNames:{...r?.providerSelection?.select,trigger:P("cursor-pointer border-small",r?.providerSelection?.select?.trigger)},children:h.map(v=>f.jsx(_n,{variant:"flat",textValue:v.name,onClick:()=>{o({currentFixedProviderScope:v.slug}),p(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[v.imageUrl&&f.jsx(Jt,{src:a(v.imageUrl,120,60),alt:v.name,width:60,height:30,radius:"none"}),v.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(v.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(v)]})},v.slug))})]}),f.jsxs("div",{className:P("mt-3",r?.otherSubscriptions?.container),children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.otherSubscriptions?.label),children:t("combiDeal.selectOtherSubscriptions")}),f.jsx("p",{className:P("text-sm text-foreground",r?.otherSubscriptions?.description),children:t("combiDeal.otherSubscriptionsDescription")})]}),f.jsx("div",{className:P("w-full border-small px-1 py-2 rounded-small border-default-200",r?.otherSubscriptions?.listboxContainer),children:f.jsx(_d,{selectedKeys:n.currentMobileProviders?.map(v=>v.scope)??[],selectionMode:"multiple",variant:"flat","aria-label":t("combiDeal.otherSubscriptions"),onSelectionChange:v=>o({currentMobileProviders:Array.from(v).map(y=>({scope:y.toString(),value:"1"}))}),classNames:{list:P(r?.otherSubscriptions?.listboxList)},children:c.otherBlocks.map(v=>f.jsx(_n,{title:v.provider.name,description:t(`modificationBlocks.${v.scope}`,{defaultValue:v.description}),startContent:f.jsx(Jt,{src:a(v.provider.imageUrl,120,60),alt:v.provider.name,width:60,height:30,radius:"none",classNames:{wrapper:P("aspect-2/1 shrink-0",r?.otherSubscriptions?.listboxItem?.image)}}),classNames:{base:P(r?.otherSubscriptions?.listboxItem?.base),wrapper:P(r?.otherSubscriptions?.listboxItem?.wrapper),title:P("text-sm font-semibold",r?.otherSubscriptions?.listboxItem?.title),description:P("text-xs",r?.otherSubscriptions?.listboxItem?.description),selectedIcon:P(r?.otherSubscriptions?.listboxItem?.selectedIcon)}},v.scope))})})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",r?.submitButton),onPress:()=>l(null),color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("common.confirm")})})]})})}function NL(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:s=!1,type:a="text",validationBehavior:i="aria"}=e,[l,u]=hr(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rn(e,t),d=Oo({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:b,fieldProps:v,descriptionProps:y,errorMessageProps:x}=Mi({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=Bt(e,{labelable:!0});const C={type:a,pattern:e.pattern};let[S]=g.useState(l);var k;return Ta(t,(k=e.defaultValue)!==null&&k!==void 0?k:S,u),ji(e,d,t),{labelProps:b,inputProps:Ce(w,r==="input"?C:void 0,{disabled:n,readOnly:s,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>u(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:y,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:m}}function ML(e){var t,r,n,o,s,a,i;const l=et(),{validationBehavior:u}=jo(In)||{},[c,d]=pt(e,Im.variantKeys),{ref:p,as:h,type:m,label:b,baseRef:v,wrapperRef:y,description:x,className:w,classNames:C,autoFocus:S,startContent:k,endContent:D,onClear:$,onChange:_,validationState:N,validationBehavior:A=(t=u??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:O=()=>{},...L}=c,I=g.useCallback($e=>{O($e??"")},[O]),[z,F]=g.useState(!1),B=h||"div",U=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,E=Pe(p),j=Pe(v),T=Pe(y),V=Pe(M),[K,G]=hr(c.value,(o=c.defaultValue)!=null?o:"",I),Z=m==="file",W=((i=(a=(s=E?.current)==null?void 0:s.files)==null?void 0:a.length)!=null?i:0)>0,ne=["date","time","month","week","range"].includes(m),X=!Kr(K)||ne||W,q=X||z,ee=m==="hidden",ue=e.isMultiline,te=P(C?.base,w,X?"is-filled":""),Ee=g.useCallback(()=>{var $e;Z?E.current.value="":G(""),$?.(),($e=E.current)==null||$e.focus()},[G,$,Z]);$n(()=>{E.current&&G(E.current.value)},[E.current]);const{labelProps:ve,inputProps:oe,isInvalid:pe,validationErrors:xe,validationDetails:he,descriptionProps:se,errorMessageProps:He}=NL({...e,validationBehavior:A,autoCapitalize:e.autoCapitalize,value:K,"aria-label":e.label?e["aria-label"]:na(e["aria-label"],e.placeholder),inputElementType:ue?"textarea":"input",onChange:G},E);Z&&(delete oe.value,delete oe.onChange);const{isFocusVisible:ge,isFocused:_e,focusProps:Ke}=rt({autoFocus:S,isTextInput:!0}),{isHovered:qe,hoverProps:wt}=vt({isDisabled:!!e?.isDisabled}),{isHovered:Ct,hoverProps:Ge}=vt({isDisabled:!!e?.isDisabled}),{focusProps:Ne,isFocusVisible:mt}=rt(),{focusWithinProps:St}=kn({onFocusWithinChange:F}),{pressProps:gt}=jt({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:Ee}),er=N==="invalid"||pe,Je=Ty({labelPlacement:e.labelPlacement,label:b}),Kn=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:er,validationErrors:xe,validationDetails:he}):c.errorMessage||xe?.join(" "),Lr=!!$||e.isClearable,Wo=!!b||!!x||!!Kn,dr=!!c.placeholder,Ie=!!b,Xe=!!x||!!Kn,tr=Je==="outside-left",It=Je==="outside-top",Vr=Je==="outside"||tr||It,Sl=Je==="inside",Uo=E.current?(!E.current.value||E.current.value===""||!K||K==="")&&dr:!1,rr=!!k,kl=Vr?tr||It||dr||Je==="outside"&&rr:!1,Pl=Je==="outside"&&!dr&&!rr,Qe=g.useMemo(()=>Im({...d,isInvalid:er,labelPlacement:Je,isClearable:Lr,disableAnimation:U}),[ft(d),er,Je,Lr,rr,U]),Ks=g.useCallback(($e={})=>({ref:j,className:Qe.base({class:te}),"data-slot":"base","data-filled":H(X||dr||rr||Uo||Z),"data-filled-within":H(q||dr||rr||Uo||Z),"data-focus-within":H(z),"data-focus-visible":H(ge),"data-readonly":H(e.isReadOnly),"data-focus":H(_e),"data-hover":H(qe||Ct),"data-required":H(e.isRequired),"data-invalid":H(er),"data-disabled":H(e.isDisabled),"data-has-elements":H(Wo),"data-has-helper":H(Xe),"data-has-label":H(Ie),"data-has-value":H(!Uo),"data-hidden":H(ee),...St,...$e}),[Qe,te,X,_e,qe,Ct,er,Xe,Ie,Wo,Uo,rr,z,ge,q,dr,St,ee,e.isReadOnly,e.isRequired,e.isDisabled]),$l=g.useCallback(($e={})=>({"data-slot":"label",className:Qe.label({class:C?.label}),...ie(ve,Ge,$e)}),[Qe,Ct,ve,C?.label]),Ws=g.useCallback($e=>{$e.key==="Escape"&&K&&(Lr||$)&&!e.isReadOnly&&(G(""),$?.())},[K,G,$,Lr,e.isReadOnly]),Me=g.useCallback(($e={})=>({"data-slot":"input","data-filled":H(X),"data-filled-within":H(q),"data-has-start-content":H(rr),"data-has-end-content":H(!!D),"data-type":m,className:Qe.input({class:P(C?.input,X?"is-filled":"",ue?"pe-0":"",m==="password"?"[&::-ms-reveal]:hidden":"")}),...ie(Ke,oe,Fe(L,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(oe))}),$e),"aria-readonly":H(e.isReadOnly),onChange:nr(oe.onChange,_),onKeyDown:nr(oe.onKeyDown,$e.onKeyDown,Ws),ref:E}),[Qe,K,Ke,oe,L,X,q,rr,D,C?.input,e.isReadOnly,e.isRequired,_,Ws]),El=g.useCallback(($e={})=>({ref:T,"data-slot":"input-wrapper","data-hover":H(qe||Ct),"data-focus-visible":H(ge),"data-focus":H(_e),className:Qe.inputWrapper({class:P(C?.inputWrapper,X?"is-filled":"")}),...ie($e,wt),onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},style:{cursor:"text",...$e.style}}),[Qe,qe,Ct,ge,_e,K,C?.inputWrapper]),Us=g.useCallback(($e={})=>({...$e,ref:V,"data-slot":"inner-wrapper",onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},className:Qe.innerWrapper({class:P(C?.innerWrapper,$e?.className)})}),[Qe,C?.innerWrapper]),Jh=g.useCallback(($e={})=>({...$e,"data-slot":"main-wrapper",className:Qe.mainWrapper({class:P(C?.mainWrapper,$e?.className)})}),[Qe,C?.mainWrapper]),Xh=g.useCallback(($e={})=>({...$e,"data-slot":"helper-wrapper",className:Qe.helperWrapper({class:P(C?.helperWrapper,$e?.className)})}),[Qe,C?.helperWrapper]),Qh=g.useCallback(($e={})=>({...$e,...se,"data-slot":"description",className:Qe.description({class:P(C?.description,$e?.className)})}),[Qe,C?.description]),em=g.useCallback(($e={})=>({...$e,...He,"data-slot":"error-message",className:Qe.errorMessage({class:P(C?.errorMessage,$e?.className)})}),[Qe,He,C?.errorMessage]),tm=g.useCallback(($e={})=>({...$e,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":H(mt),className:Qe.clearButton({class:P(C?.clearButton,$e?.className)}),...ie(gt,Ne)}),[Qe,mt,gt,Ne,C?.clearButton]);return{Component:B,classNames:C,domRef:E,label:b,description:x,startContent:k,endContent:D,labelPlacement:Je,isClearable:Lr,hasHelper:Xe,hasStartContent:rr,isLabelOutside:kl,isOutsideLeft:tr,isOutsideTop:It,isLabelOutsideAsPlaceholder:Pl,shouldLabelBeOutside:Vr,shouldLabelBeInside:Sl,hasPlaceholder:dr,isInvalid:er,errorMessage:Kn,getBaseProps:Ks,getLabelProps:$l,getInputProps:Me,getMainWrapperProps:Jh,getInputWrapperProps:El,getInnerWrapperProps:Us,getHelperWrapperProps:Xh,getDescriptionProps:Qh,getErrorMessageProps:em,getClearButtonProps:tm}}var _3=Se((e,t)=>{const{Component:r,label:n,description:o,isClearable:s,startContent:a,endContent:i,labelPlacement:l,hasHelper:u,isOutsideLeft:c,isOutsideTop:d,shouldLabelBeOutside:p,errorMessage:h,isInvalid:m,getBaseProps:b,getLabelProps:v,getInputProps:y,getInnerWrapperProps:x,getInputWrapperProps:w,getMainWrapperProps:C,getHelperWrapperProps:S,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:$}=ML({...e,ref:t}),_=n?f.jsx("label",{...v(),children:n}):null,N=g.useMemo(()=>s?f.jsx("button",{...$(),children:i||f.jsx(Kc,{})}):i,[s,$]),A=g.useMemo(()=>{const L=m&&h;return!u||!(L||o)?null:f.jsx("div",{...S(),children:L?f.jsx("div",{...D(),children:h}):f.jsx("div",{...k(),children:o})})},[u,m,h,o,S,D,k]),M=g.useMemo(()=>f.jsxs("div",{...x(),children:[a,f.jsx("input",{...y()}),N]}),[a,N,y,x]),O=g.useMemo(()=>p?f.jsxs("div",{...C(),children:[f.jsxs("div",{...w(),children:[!c&&!d?_:null,M]}),A]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{...w(),children:[_,M]}),A]}),[l,A,p,_,M,h,o,C,w,D,k]);return f.jsxs(r,{...b(),children:[c||d?_:null,O]})});_3.displayName="HeroUI.Input";var ol=_3;function OL(){const{t:e}=Oe(),{numberPreservationModal:t}=nt(),{isOpen:r,setModal:n}=Wi("number-preservation"),{popoverProps:o,isShadowRoot:s}=on(),[a]=Co(),{profile:i,setProfile:l}=zr(),[u,c]=g.useState(i.currentMsisdn??""),[d,p]=g.useState(),[h,m]=g.useState(!1),b=T3(),y=/^(\+31|0|0031)((6{1}[1-9]{1}[0-9]{7})|97([0-9]{9}))$/.test(u)||u.length===0||u==="",x=e("numberPreservation.otherProvider"),w=g.useMemo(()=>[...b.map(D=>({slug:D.slug,name:D.name,imageUrl:D.imageUrl,Icon:void 0})),{name:x,slug:"other",Icon:Ng,imageUrl:void 0}],[b.length,x]),C=g.useCallback(()=>{u!==i.currentMsisdn&&(Ih({currentMsisdn:u}),l({currentMsisdn:u}))},[u,l,i.currentMsisdn]);g.useEffect(()=>{!i.keepCurrentMsisdn||i.currentSubscriptionType||l({currentSubscriptionType:"subscription"})},[i.keepCurrentMsisdn,i.currentSubscriptionType,l]);const S={base:P("inline-flex m-0 items-center justify-between border-medium border-default-200 hover:border-default-400","flex-row-reverse cursor-pointer rounded-large px-2 sm:px-4 py-3 @max-sm:min-w-full min-w-[calc(50%-0.25rem)] data-[selected=true]:border-primary",t?.options?.button),label:P("font-semibold",t?.options?.buttonLabel),description:P("text-sm",t?.options?.buttonDescription)};return f.jsx($o,{isOpen:r,onOpenChange:k=>n(k?"number-preservation":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("numberPreservation.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx("div",{className:"text-primary text-4xl font-bold size-12 flex items-center justify-center",children:"06"})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("numberPreservation.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("numberPreservation.description")})]}),f.jsxs(ph,{orientation:"horizontal",value:i.keepCurrentMsisdn===void 0?void 0:i.keepCurrentMsisdn?"true":"false",onValueChange:k=>l({keepCurrentMsisdn:k==="true"}),classNames:{wrapper:P("@container",t?.options?.container)},children:[f.jsx(Bs,{value:"true",description:e("numberPreservation.keepCurrentNumber"),classNames:S,children:e("common.yes")}),f.jsx(Bs,{value:"false",description:e("numberPreservation.newNumber"),classNames:S,children:e("common.no")})]}),i.keepCurrentMsisdn&&f.jsxs("div",{className:"mt-3",children:[f.jsx(As,{variant:"bordered","aria-label":e("numberPreservation.currentProvider"),placeholder:e("numberPreservation.selectProvider"),isOpen:h,onOpenChange:k=>k!==h&&m(k),size:"lg",radius:"sm",popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i.currentProviderSlug?[i.currentProviderSlug]:void 0,classNames:{...t?.provider?.select,trigger:P("border-small cursor-pointer",t?.provider?.select?.trigger)},renderValue:k=>{const D=w.find($=>$.slug===k[0]?.key);return D?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[D.imageUrl&&f.jsx(Jt,{src:a(D.imageUrl,120,60),alt:D.name,width:60,height:30,radius:"none"}),D.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(D.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),D.name]}):null},children:w.map(k=>f.jsx(_n,{variant:"flat",textValue:k.name,onClick:()=>{l({currentProviderSlug:k.slug}),m(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[k.imageUrl&&f.jsx(Jt,{src:a(k.imageUrl,120,60),alt:k.name,width:60,height:30,radius:"none"}),k.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(k.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),k.name]})},k.slug))}),f.jsx("div",{className:P("flex flex-col gap-2 my-2",t?.form?.container),children:f.jsx(ol,{variant:"bordered",placeholder:"0612345678",size:"lg",radius:"sm",type:"text",name:"msisdn",color:d?"danger":"default",value:u,onValueChange:k=>{c(k),d&&p(void 0)},onBlur:()=>{if(!y)return p(e("numberPreservation.invalidNumber"));C()},isInvalid:!!d,errorMessage:d,classNames:{inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P(t?.form?.input?.input)}})}),f.jsxs(ph,{orientation:"horizontal",value:i.currentSubscriptionType,onValueChange:k=>l({currentSubscriptionType:k==="subscription"?"subscription":"prepaid"}),size:"sm",classNames:{base:P("justify-between",t?.radioGroup?.base),wrapper:P(t?.radioGroup?.wrapper),label:P(t?.radioGroup?.label),description:P(t?.radioGroup?.description),errorMessage:P(t?.radioGroup?.errorMessage)},children:[f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"subscription",children:e("numberPreservation.subscription")}),f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"prepaid",children:e("numberPreservation.prepaid")})]})]})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",t?.submitButton),onPress:()=>{if(i.keepCurrentMsisdn&&!y)return p(e("numberPreservation.invalidNumber"));s&&C(),n(null)},color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}const jL=Le`
|
|
923
|
+
`;function Ah(e,t=!0){const{data:r}=En(t?[TL,{version:"release",productType:e}]:null,{fetcher:qt});return r?.modificationConfig?{fixedBlocks:r.modificationConfig.fixedBlocks.sort((n,o)=>n.provider.rank-o.provider.rank),otherBlocks:r.modificationConfig.otherBlocks.sort((n,o)=>n.provider.rank-o.provider.rank)}:{fixedBlocks:[],otherBlocks:[]}}function DL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function _L({street:e,city:t,number:r,numberAddon:n}){if(!(!e||!r||!t))return`${e} ${DL(r,n)}, ${t}`}function IL(e){var t,r;const n=tt(),[o,s]=pt(e,Lm.variantKeys),{ref:a,as:i,src:l,className:u,classNames:c,loading:d,isBlurred:p,fallbackSrc:h,isLoading:m,disableSkeleton:b=!!h,removeWrapper:v=!1,onError:y,onLoad:x,srcSet:w,sizes:C,crossOrigin:S,...k}=o,D=Dy({src:l,loading:d,onError:y,onLoad:x,ignoreFallback:!1,srcSet:w,sizes:C,crossOrigin:S,shouldBypassImageLoad:i!==void 0}),$=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,_=D==="loaded"&&!m,N=D==="loading"||m,A=e.isZoomed,M=i||"img",O=Pe(a),{w:L,h:I}=g.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),z=(!l||!_)&&!!h,F=N&&!b,B=g.useMemo(()=>Lm({...s,disableAnimation:$,showSkeleton:F}),[ft(s),$,F]),U=P(u,c?.img),E=(V={})=>{const K=P(U,V?.className);return{src:l,ref:O,"data-loaded":H(_),className:B.img({class:K}),loading:d,srcSet:w,sizes:C,crossOrigin:S,...k,style:{...k?.height&&{height:I},...V.style,...k.style}}},j=g.useCallback(()=>{const V=z?{backgroundImage:`url(${h})`}:{};return{className:B.wrapper({class:c?.wrapper}),style:{...V,maxWidth:L}}},[B,z,h,c?.wrapper,L]),T=g.useCallback(()=>({src:l,"aria-hidden":H(!0),className:B.blurredImg({class:c?.blurredImg})}),[B,l,c?.blurredImg]);return{Component:M,domRef:O,slots:B,classNames:c,isBlurred:p,disableSkeleton:b,fallbackSrc:h,removeWrapper:v,isZoomed:A,isLoading:N,getImgProps:E,getWrapperProps:j,getBlurredImgProps:T}}var D3=Se((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:s,isBlurred:a,isZoomed:i,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:p,getBlurredImgProps:h}=IL({...e,ref:t}),m=f.jsx(r,{ref:n,...d()});if(u)return m;const b=f.jsx("div",{className:o.zoomedWrapper({class:s?.zoomedWrapper}),children:m});return a?f.jsxs("div",{...p(),children:[i?b:m,g.cloneElement(m,h())]}):i||!c||l?f.jsxs("div",{...p(),children:[" ",i?b:m]}):m});D3.displayName="HeroUI.Image";var Jt=D3;function AL({productCategory:e}){const{t}=Oe(),{combiDealModal:r}=Ye(),{profile:n,setProfile:o}=zr(),{popoverProps:s}=on(),[a]=Co(),{isOpen:i,setModal:l}=Wi("combi-deal"),u=e==="fixed-proposition"?"fixed":"mobile",c=Ah(u),[d,p]=g.useState(!1),h=g.useMemo(()=>E3(c.fixedBlocks,u),[c.fixedBlocks.length]),m=t("format.internet"),b=g.useCallback(({slug:v,name:y})=>v.startsWith("other")||y.toLowerCase().includes("internet")?y:`${y} ${m}`,[m]);return f.jsx($o,{isOpen:i,onOpenChange:v=>l(v?"combi-deal":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:s.portalContainer,classNames:{backdrop:P(r?.modal?.backdrop),wrapper:P(r?.modal?.wrapper),base:P(r?.modal?.base),header:P(r?.modal?.header),body:P(r?.modal?.body),footer:P(r?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",r?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:t("combiDeal.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",r?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",r?.header?.iconWrapper),children:f.jsx(tu,{size:48,className:P("stroke-primary",r?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",r?.header?.title),children:t("combiDeal.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1 max-w-xs",r?.header?.description),children:t("combiDeal.description")})]}),u==="mobile"&&f.jsxs(f.Fragment,{children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.providerSelection?.title),children:t("combiDeal.homeInternet")}),f.jsx(As,{variant:"bordered","aria-label":t("combiDeal.homeInternet"),placeholder:t("combiDeal.selectHomeProvider"),isOpen:d,onOpenChange:v=>v!==d&&p(v),popoverProps:s,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:n.currentFixedProviderScope?[n.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:v=>{const y=h.find(x=>x.slug===v[0]?.key);return y?f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[y.imageUrl&&f.jsx(Jt,{src:a(y.imageUrl,120,60),alt:y.name,width:60,height:30,radius:"none"}),y.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(y.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(y)]}):null},classNames:{...r?.providerSelection?.select,trigger:P("cursor-pointer border-small",r?.providerSelection?.select?.trigger)},children:h.map(v=>f.jsx(_n,{variant:"flat",textValue:v.name,onClick:()=>{o({currentFixedProviderScope:v.slug}),p(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",r?.providerSelection?.select?.itemContainer),children:[v.imageUrl&&f.jsx(Jt,{src:a(v.imageUrl,120,60),alt:v.name,width:60,height:30,radius:"none"}),v.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(v.Icon,{size:24,className:P("stroke-primary-500",r?.providerSelection?.select?.icon)})}),b(v)]})},v.slug))})]}),f.jsxs("div",{className:P("mt-3",r?.otherSubscriptions?.container),children:[f.jsx("p",{className:P("text-base font-bold text-foreground",r?.otherSubscriptions?.label),children:t("combiDeal.selectOtherSubscriptions")}),f.jsx("p",{className:P("text-sm text-foreground",r?.otherSubscriptions?.description),children:t("combiDeal.otherSubscriptionsDescription")})]}),f.jsx("div",{className:P("w-full border-small px-1 py-2 rounded-small border-default-200",r?.otherSubscriptions?.listboxContainer),children:f.jsx(_d,{selectedKeys:n.currentMobileProviders?.map(v=>v.scope)??[],selectionMode:"multiple",variant:"flat","aria-label":t("combiDeal.otherSubscriptions"),onSelectionChange:v=>o({currentMobileProviders:Array.from(v).map(y=>({scope:y.toString(),value:"1"}))}),classNames:{list:P(r?.otherSubscriptions?.listboxList)},children:c.otherBlocks.map(v=>f.jsx(_n,{title:v.provider.name,description:t(`modificationBlocks.${v.scope}`,{defaultValue:v.description}),startContent:f.jsx(Jt,{src:a(v.provider.imageUrl,120,60),alt:v.provider.name,width:60,height:30,radius:"none",classNames:{wrapper:P("aspect-2/1 shrink-0",r?.otherSubscriptions?.listboxItem?.image)}}),classNames:{base:P(r?.otherSubscriptions?.listboxItem?.base),wrapper:P(r?.otherSubscriptions?.listboxItem?.wrapper),title:P("text-sm font-semibold",r?.otherSubscriptions?.listboxItem?.title),description:P("text-xs",r?.otherSubscriptions?.listboxItem?.description),selectedIcon:P(r?.otherSubscriptions?.listboxItem?.selectedIcon)}},v.scope))})})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",r?.submitButton),onPress:()=>l(null),color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:t("common.confirm")})})]})})}function NL(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:s=!1,type:a="text",validationBehavior:i="aria"}=e,[l,u]=hr(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rn(e,t),d=Oo({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:b,fieldProps:v,descriptionProps:y,errorMessageProps:x}=Mi({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=Bt(e,{labelable:!0});const C={type:a,pattern:e.pattern};let[S]=g.useState(l);var k;return Ta(t,(k=e.defaultValue)!==null&&k!==void 0?k:S,u),ji(e,d,t),{labelProps:b,inputProps:Ce(w,r==="input"?C:void 0,{disabled:n,readOnly:s,required:o&&i==="native","aria-required":o&&i==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>u(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(g.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:y,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:m}}function ML(e){var t,r,n,o,s,a,i;const l=tt(),{validationBehavior:u}=jo(In)||{},[c,d]=pt(e,Im.variantKeys),{ref:p,as:h,type:m,label:b,baseRef:v,wrapperRef:y,description:x,className:w,classNames:C,autoFocus:S,startContent:k,endContent:D,onClear:$,onChange:_,validationState:N,validationBehavior:A=(t=u??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:O=()=>{},...L}=c,I=g.useCallback($e=>{O($e??"")},[O]),[z,F]=g.useState(!1),B=h||"div",U=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,E=Pe(p),j=Pe(v),T=Pe(y),V=Pe(M),[K,G]=hr(c.value,(o=c.defaultValue)!=null?o:"",I),Z=m==="file",W=((i=(a=(s=E?.current)==null?void 0:s.files)==null?void 0:a.length)!=null?i:0)>0,ne=["date","time","month","week","range"].includes(m),X=!Kr(K)||ne||W,q=X||z,ee=m==="hidden",ue=e.isMultiline,te=P(C?.base,w,X?"is-filled":""),Ee=g.useCallback(()=>{var $e;Z?E.current.value="":G(""),$?.(),($e=E.current)==null||$e.focus()},[G,$,Z]);$n(()=>{E.current&&G(E.current.value)},[E.current]);const{labelProps:ve,inputProps:oe,isInvalid:pe,validationErrors:xe,validationDetails:he,descriptionProps:se,errorMessageProps:He}=NL({...e,validationBehavior:A,autoCapitalize:e.autoCapitalize,value:K,"aria-label":e.label?e["aria-label"]:na(e["aria-label"],e.placeholder),inputElementType:ue?"textarea":"input",onChange:G},E);Z&&(delete oe.value,delete oe.onChange);const{isFocusVisible:ge,isFocused:_e,focusProps:Ke}=nt({autoFocus:S,isTextInput:!0}),{isHovered:qe,hoverProps:wt}=vt({isDisabled:!!e?.isDisabled}),{isHovered:Ct,hoverProps:Ge}=vt({isDisabled:!!e?.isDisabled}),{focusProps:Ne,isFocusVisible:mt}=nt(),{focusWithinProps:St}=kn({onFocusWithinChange:F}),{pressProps:gt}=jt({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:Ee}),er=N==="invalid"||pe,Xe=Ty({labelPlacement:e.labelPlacement,label:b}),Kn=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:er,validationErrors:xe,validationDetails:he}):c.errorMessage||xe?.join(" "),Lr=!!$||e.isClearable,Wo=!!b||!!x||!!Kn,dr=!!c.placeholder,Ie=!!b,Qe=!!x||!!Kn,tr=Xe==="outside-left",It=Xe==="outside-top",Vr=Xe==="outside"||tr||It,Sl=Xe==="inside",Uo=E.current?(!E.current.value||E.current.value===""||!K||K==="")&&dr:!1,rr=!!k,kl=Vr?tr||It||dr||Xe==="outside"&&rr:!1,Pl=Xe==="outside"&&!dr&&!rr,et=g.useMemo(()=>Im({...d,isInvalid:er,labelPlacement:Xe,isClearable:Lr,disableAnimation:U}),[ft(d),er,Xe,Lr,rr,U]),Ks=g.useCallback(($e={})=>({ref:j,className:et.base({class:te}),"data-slot":"base","data-filled":H(X||dr||rr||Uo||Z),"data-filled-within":H(q||dr||rr||Uo||Z),"data-focus-within":H(z),"data-focus-visible":H(ge),"data-readonly":H(e.isReadOnly),"data-focus":H(_e),"data-hover":H(qe||Ct),"data-required":H(e.isRequired),"data-invalid":H(er),"data-disabled":H(e.isDisabled),"data-has-elements":H(Wo),"data-has-helper":H(Qe),"data-has-label":H(Ie),"data-has-value":H(!Uo),"data-hidden":H(ee),...St,...$e}),[et,te,X,_e,qe,Ct,er,Qe,Ie,Wo,Uo,rr,z,ge,q,dr,St,ee,e.isReadOnly,e.isRequired,e.isDisabled]),$l=g.useCallback(($e={})=>({"data-slot":"label",className:et.label({class:C?.label}),...ie(ve,Ge,$e)}),[et,Ct,ve,C?.label]),Ws=g.useCallback($e=>{$e.key==="Escape"&&K&&(Lr||$)&&!e.isReadOnly&&(G(""),$?.())},[K,G,$,Lr,e.isReadOnly]),Me=g.useCallback(($e={})=>({"data-slot":"input","data-filled":H(X),"data-filled-within":H(q),"data-has-start-content":H(rr),"data-has-end-content":H(!!D),"data-type":m,className:et.input({class:P(C?.input,X?"is-filled":"",ue?"pe-0":"",m==="password"?"[&::-ms-reveal]:hidden":"")}),...ie(Ke,oe,Fe(L,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(oe))}),$e),"aria-readonly":H(e.isReadOnly),onChange:nr(oe.onChange,_),onKeyDown:nr(oe.onKeyDown,$e.onKeyDown,Ws),ref:E}),[et,K,Ke,oe,L,X,q,rr,D,C?.input,e.isReadOnly,e.isRequired,_,Ws]),El=g.useCallback(($e={})=>({ref:T,"data-slot":"input-wrapper","data-hover":H(qe||Ct),"data-focus-visible":H(ge),"data-focus":H(_e),className:et.inputWrapper({class:P(C?.inputWrapper,X?"is-filled":"")}),...ie($e,wt),onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},style:{cursor:"text",...$e.style}}),[et,qe,Ct,ge,_e,K,C?.inputWrapper]),Us=g.useCallback(($e={})=>({...$e,ref:V,"data-slot":"inner-wrapper",onClick:Wn=>{E.current&&Wn.currentTarget===Wn.target&&E.current.focus()},className:et.innerWrapper({class:P(C?.innerWrapper,$e?.className)})}),[et,C?.innerWrapper]),Jh=g.useCallback(($e={})=>({...$e,"data-slot":"main-wrapper",className:et.mainWrapper({class:P(C?.mainWrapper,$e?.className)})}),[et,C?.mainWrapper]),Xh=g.useCallback(($e={})=>({...$e,"data-slot":"helper-wrapper",className:et.helperWrapper({class:P(C?.helperWrapper,$e?.className)})}),[et,C?.helperWrapper]),Qh=g.useCallback(($e={})=>({...$e,...se,"data-slot":"description",className:et.description({class:P(C?.description,$e?.className)})}),[et,C?.description]),em=g.useCallback(($e={})=>({...$e,...He,"data-slot":"error-message",className:et.errorMessage({class:P(C?.errorMessage,$e?.className)})}),[et,He,C?.errorMessage]),tm=g.useCallback(($e={})=>({...$e,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":H(mt),className:et.clearButton({class:P(C?.clearButton,$e?.className)}),...ie(gt,Ne)}),[et,mt,gt,Ne,C?.clearButton]);return{Component:B,classNames:C,domRef:E,label:b,description:x,startContent:k,endContent:D,labelPlacement:Xe,isClearable:Lr,hasHelper:Qe,hasStartContent:rr,isLabelOutside:kl,isOutsideLeft:tr,isOutsideTop:It,isLabelOutsideAsPlaceholder:Pl,shouldLabelBeOutside:Vr,shouldLabelBeInside:Sl,hasPlaceholder:dr,isInvalid:er,errorMessage:Kn,getBaseProps:Ks,getLabelProps:$l,getInputProps:Me,getMainWrapperProps:Jh,getInputWrapperProps:El,getInnerWrapperProps:Us,getHelperWrapperProps:Xh,getDescriptionProps:Qh,getErrorMessageProps:em,getClearButtonProps:tm}}var _3=Se((e,t)=>{const{Component:r,label:n,description:o,isClearable:s,startContent:a,endContent:i,labelPlacement:l,hasHelper:u,isOutsideLeft:c,isOutsideTop:d,shouldLabelBeOutside:p,errorMessage:h,isInvalid:m,getBaseProps:b,getLabelProps:v,getInputProps:y,getInnerWrapperProps:x,getInputWrapperProps:w,getMainWrapperProps:C,getHelperWrapperProps:S,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:$}=ML({...e,ref:t}),_=n?f.jsx("label",{...v(),children:n}):null,N=g.useMemo(()=>s?f.jsx("button",{...$(),children:i||f.jsx(Kc,{})}):i,[s,$]),A=g.useMemo(()=>{const L=m&&h;return!u||!(L||o)?null:f.jsx("div",{...S(),children:L?f.jsx("div",{...D(),children:h}):f.jsx("div",{...k(),children:o})})},[u,m,h,o,S,D,k]),M=g.useMemo(()=>f.jsxs("div",{...x(),children:[a,f.jsx("input",{...y()}),N]}),[a,N,y,x]),O=g.useMemo(()=>p?f.jsxs("div",{...C(),children:[f.jsxs("div",{...w(),children:[!c&&!d?_:null,M]}),A]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{...w(),children:[_,M]}),A]}),[l,A,p,_,M,h,o,C,w,D,k]);return f.jsxs(r,{...b(),children:[c||d?_:null,O]})});_3.displayName="HeroUI.Input";var ol=_3;function OL(){const{t:e}=Oe(),{numberPreservationModal:t}=Ye(),{isOpen:r,setModal:n}=Wi("number-preservation"),{popoverProps:o,isShadowRoot:s}=on(),[a]=Co(),{profile:i,setProfile:l}=zr(),[u,c]=g.useState(i.currentMsisdn??""),[d,p]=g.useState(),[h,m]=g.useState(!1),b=T3(),y=/^(\+31|0|0031)((6{1}[1-9]{1}[0-9]{7})|97([0-9]{9}))$/.test(u)||u.length===0||u==="",x=e("numberPreservation.otherProvider"),w=g.useMemo(()=>[...b.map(D=>({slug:D.slug,name:D.name,imageUrl:D.imageUrl,Icon:void 0})),{name:x,slug:"other",Icon:Ng,imageUrl:void 0}],[b.length,x]),C=g.useCallback(()=>{u!==i.currentMsisdn&&(Ih({currentMsisdn:u}),l({currentMsisdn:u}))},[u,l,i.currentMsisdn]);g.useEffect(()=>{!i.keepCurrentMsisdn||i.currentSubscriptionType||l({currentSubscriptionType:"subscription"})},[i.keepCurrentMsisdn,i.currentSubscriptionType,l]);const S={base:P("inline-flex m-0 items-center justify-between border-medium border-default-200 hover:border-default-400","flex-row-reverse cursor-pointer rounded-large px-2 sm:px-4 py-3 @max-sm:min-w-full min-w-[calc(50%-0.25rem)] data-[selected=true]:border-primary",t?.options?.button),label:P("font-semibold",t?.options?.buttonLabel),description:P("text-sm",t?.options?.buttonDescription)};return f.jsx($o,{isOpen:r,onOpenChange:k=>n(k?"number-preservation":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("numberPreservation.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx("div",{className:"text-primary text-4xl font-bold size-12 flex items-center justify-center",children:"06"})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("numberPreservation.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("numberPreservation.description")})]}),f.jsxs(ph,{orientation:"horizontal",value:i.keepCurrentMsisdn===void 0?void 0:i.keepCurrentMsisdn?"true":"false",onValueChange:k=>l({keepCurrentMsisdn:k==="true"}),classNames:{wrapper:P("@container",t?.options?.container)},children:[f.jsx(Bs,{value:"true",description:e("numberPreservation.keepCurrentNumber"),classNames:S,children:e("common.yes")}),f.jsx(Bs,{value:"false",description:e("numberPreservation.newNumber"),classNames:S,children:e("common.no")})]}),i.keepCurrentMsisdn&&f.jsxs("div",{className:"mt-3",children:[f.jsx(As,{variant:"bordered","aria-label":e("numberPreservation.currentProvider"),placeholder:e("numberPreservation.selectProvider"),isOpen:h,onOpenChange:k=>k!==h&&m(k),size:"lg",radius:"sm",popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i.currentProviderSlug?[i.currentProviderSlug]:void 0,classNames:{...t?.provider?.select,trigger:P("border-small cursor-pointer",t?.provider?.select?.trigger)},renderValue:k=>{const D=w.find($=>$.slug===k[0]?.key);return D?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[D.imageUrl&&f.jsx(Jt,{src:a(D.imageUrl,120,60),alt:D.name,width:60,height:30,radius:"none"}),D.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(D.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),D.name]}):null},children:w.map(k=>f.jsx(_n,{variant:"flat",textValue:k.name,onClick:()=>{l({currentProviderSlug:k.slug}),m(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[k.imageUrl&&f.jsx(Jt,{src:a(k.imageUrl,120,60),alt:k.name,width:60,height:30,radius:"none"}),k.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(k.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),k.name]})},k.slug))}),f.jsx("div",{className:P("flex flex-col gap-2 my-2",t?.form?.container),children:f.jsx(ol,{variant:"bordered",placeholder:"0612345678",size:"lg",radius:"sm",type:"text",name:"msisdn",color:d?"danger":"default",value:u,onValueChange:k=>{c(k),d&&p(void 0)},onBlur:()=>{if(!y)return p(e("numberPreservation.invalidNumber"));C()},isInvalid:!!d,errorMessage:d,classNames:{inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P(t?.form?.input?.input)}})}),f.jsxs(ph,{orientation:"horizontal",value:i.currentSubscriptionType,onValueChange:k=>l({currentSubscriptionType:k==="subscription"?"subscription":"prepaid"}),size:"sm",classNames:{base:P("justify-between",t?.radioGroup?.base),wrapper:P(t?.radioGroup?.wrapper),label:P(t?.radioGroup?.label),description:P(t?.radioGroup?.description),errorMessage:P(t?.radioGroup?.errorMessage)},children:[f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"subscription",children:e("numberPreservation.subscription")}),f.jsx(Bs,{className:P("min-w-1/2 text-sm",t?.radioGroup?.radio),value:"prepaid",children:e("numberPreservation.prepaid")})]})]})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",t?.submitButton),onPress:()=>{if(i.keepCurrentMsisdn&&!y)return p(e("numberPreservation.invalidNumber"));s&&C(),n(null)},color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}const jL=Le`
|
|
924
924
|
query postcodeCheck($postcode: String!, $number: Int!, $numberAddon: String!) {
|
|
925
925
|
postcode(postcode: $postcode, number: $number, numberAddon: $numberAddon) {
|
|
926
926
|
address {
|
|
@@ -929,4 +929,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
`;function Nh(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}function FL(e,t,r,n="",o=!1){const[s,a]=g.useState(o),i=Nh(t,500),l=Nh(r,500),u=Nh(n,500),{data:c,isValidating:d,error:p}=ad(i&&l?[jL,{postcode:i,number:parseInt(l,10),numberAddon:u||""}]:null,qt,{revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1}),[h,m]=g.useState(null),b=g.useRef(e);return g.useEffect(()=>{b.current=e},[e]),g.useEffect(()=>{d&&m(null)},[d]),Nr(()=>{if(!(d||!i||!l)){if(p?.response?.errors?.length){if(p.response.errors[0]?.message==="postnl_api_error"){m(Q.t("postcodeCheck.invalidAddressError"));return}m(Q.t("postcodeCheck.invalidAddressError"));return}if(c?.postcode?.address){b.current(c.postcode.address),a(!1),m(null);return}!d&&i&&l&&!p&&!c?.postcode?.address&&m(Q.t("postcodeCheck.invalidAddressError"))}},[c,p,d,i,l]),{manual:s,isLoading:d&&!!i&&!!l,error:h}}function BL(e){const t=e.replace(/[^0-9a-zA-Z]/g,"").toUpperCase();let r="",n="";for(const o of t)/\d/.test(o)&&r.length<4?r+=o:/[A-Z]/.test(o)&&r.length===4&&n.length<2&&(n+=o);return r+n}function zL(){const{t:e}=Oe(),{postcodeCheckModal:t}=nt(),{profile:r,setProfile:n}=zr(),{popoverProps:o}=on(),[s]=Co(),{isOpen:a,setModal:i}=Wi("postcode-check"),[l,u]=g.useState(r.address?.postcode||""),[c,d]=g.useState(r.address?.number||""),[p,h]=g.useState(r.address?.numberAddon||""),[m,b]=g.useState(r.address?.street||""),[v,y]=g.useState(r.address?.city||""),[x,w]=g.useState(!1),C=g.useRef(!!(r.address?.street&&r.address?.city)),S=Ah("fixed"),k=g.useCallback(O=>{O.street!==void 0&&b(O.street),O.city!==void 0&&y(O.city)},[]);Nr(()=>{const O=r.address;u(O?.postcode||""),d(O?.number||""),h(O?.numberAddon||""),b(O?.street||""),y(O?.city||""),C.current=!!(O?.street&&O?.city)},[r.address]);const{manual:D,error:$}=FL(k,l,c,p,C.current);Nr(()=>{!D&&(!l||!c)&&(b(""),y(""))},[l,c,D]);const _=g.useMemo(()=>E3(S.fixedBlocks,"fixed"),[S.fixedBlocks.length]),N={inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P("absolute bottom-1.5",t?.form?.input?.input),label:P("top-1.5",t?.form?.input?.label)},A=g.useCallback(O=>{O.preventDefault();const L=new FormData(O.target),I={...Object.fromEntries(L.entries()),street:m,city:v},{success:z,data:F}=S3.safeParse(I);z&&(Ih({address:F}),n({address:F}),i(null))},[m,v,n,i]),M=g.useCallback(({slug:O,name:L})=>O.startsWith("other")||L.toLowerCase().includes("internet")?L:`${L} Internet`,[]);return f.jsx($o,{isOpen:a,onOpenChange:O=>i(O?"postcode-check":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("postcodeCheck.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx(Ag,{size:48,className:P("stroke-primary",t?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("postcodeCheck.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("postcodeCheck.description")})]}),f.jsxs("form",{id:"postcode-check-form",className:P("flex flex-col gap-2 mb-3",t?.form?.container),onSubmit:A,children:[f.jsx("p",{className:P("text-base font-bold text-foreground",t?.form?.addressLabel),children:"Adres"}),f.jsxs("div",{className:P("flex flex-row gap-2",t?.form?.inputsContainer),children:[f.jsx(ol,{variant:"bordered",placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",value:l,onValueChange:O=>u(BL(O)),classNames:N,maxLength:6,label:e("postcodeCheck.postalCode"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"1",radius:"sm",type:"text",name:"number",value:c,onValueChange:O=>d(O.replace(/\D/g,"")),classNames:N,label:e("postcodeCheck.houseNumber"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"A",radius:"sm",type:"text",name:"numberAddon",value:p,onValueChange:O=>h(O.toUpperCase()),classNames:N,label:e("postcodeCheck.houseNumberAddition")})]}),$&&f.jsx(lh,{color:"danger",variant:"faded",title:$,hideIconWrapper:!0,classNames:t?.form?.errorAlert})]}),f.jsx("p",{className:P("text-base font-bold text-foreground",t?.provider?.label),children:e("postcodeCheck.homeInternet")}),f.jsx(As,{variant:"bordered","aria-label":e("postcodeCheck.homeInternet"),placeholder:e("postcodeCheck.selectProvider"),isOpen:x,onOpenChange:O=>O!==x&&w(O),popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:r.currentFixedProviderScope?[r.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:O=>{const L=_.find(I=>I.slug===O[0]?.key);return L?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[L.imageUrl&&f.jsx(Jt,{src:s(L.imageUrl,120,60),alt:L.name,width:60,height:30,radius:"none"}),L.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(L.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(L)]}):null},classNames:{...t?.provider?.select,trigger:P("cursor-pointer border-small",t?.provider?.select?.trigger)},children:_.map(O=>f.jsx(_n,{variant:"flat",textValue:O.name,onClick:()=>{n({currentFixedProviderScope:O.slug}),w(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[O.imageUrl&&f.jsx(Jt,{src:s(O.imageUrl,120,60),alt:O.name,width:60,height:30,radius:"none"}),O.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(O.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(O)]})},O.slug))})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",t?.submitButton),type:"submit",form:"postcode-check-form",color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}function I3({productCategory:e}){const{t}=Oe(),{profile:r}=zr(),{setModal:n}=Wi(),o=T3(),s=Ah(e==="fixed-proposition"?"fixed":"mobile"),a=SL(r.currentMobileProviders,s.otherBlocks);return f.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[f.jsx("div",{className:"text-base font-bold text-foreground",children:t("profile.personalizeTitle")}),e==="fixed-proposition"?f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.postcodeCheck"),description:r.address?_L(r.address):t("profile.enterPostcode"),selected:r.address!==void 0,onClick:()=>n("postcode-check"),Icon:Ag}),f.jsx(zL,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.numberPreservation"),description:r.keepCurrentMsisdn===void 0?t("profile.askNumberPreservation"):r.keepCurrentMsisdn&&r.currentMsisdn?`${r.currentMsisdn} • ${o.find(i=>i.slug===r.currentProviderSlug)?.name||t("numberPreservation.otherProvider")}`:t("profile.newNumber"),selected:r.keepCurrentMsisdn!==void 0,onClick:()=>n("number-preservation"),avatarName:"0 6"}),f.jsx(OL,{})]}),f.jsx(pi,{title:t("profile.customerBenefit"),description:wL(s.fixedBlocks.map(i=>({slug:i.provider.slug,name:i.provider.name})),a,r.currentFixedProviderScope,e==="fixed-proposition"),selected:e==="fixed-proposition"?r.currentMobileProviders?.some(i=>s.otherBlocks.some(l=>l.scope===i.scope)):s.fixedBlocks.some(i=>i.scope===r.currentFixedProviderScope)||r.currentFixedProviderScope==="other",onClick:()=>n("combi-deal"),Icon:tu}),f.jsx(AL,{productCategory:e})]})}function LL(){const{t:e}=Oe(),[t,r]=g.useState(!1),{sortSelect:n}=nt(),{popoverContent:o,listbox:s,...a}=n||{},{sortOptions:i,handleFilterChange:l,getActiveFilterValue:u}=yr(),{popoverProps:c}=on({classNames:o});return f.jsx(As,{variant:"bordered","aria-label":e("filters.sort"),placeholder:e("filters.sort"),popoverProps:c,selectionMode:"single",disallowEmptySelection:!0,isOpen:t,onOpenChange:d=>d!==t&&r(d),selectedKeys:u("sorteren"),radius:"sm",listboxProps:{itemClasses:s},classNames:{...a,base:P("min-w-1/2 lg:min-w-auto lg:w-[200px]",a?.base),trigger:P("cursor-pointer border-small bg-white",a?.trigger)},children:i.map(d=>f.jsx(_n,{variant:"flat",onClick:()=>{l({slug:"sorteren",value:d.value}),r(!1)},children:e(`sortOptions.${d.value}`,{defaultValue:d.name})},d.value))})}function VL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function me(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Mh(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return me(r,{dashed:!0})}function Fn(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`${Q.t("format.from")} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`:`${e[0].term} ${Q.t("format.month_short",{count:e[0].term})} ${Q.t("format.from").toLowerCase()} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`}function Oh(e){switch(e){case Gt:return Q.t("format.unlimited_short");case 0:return"-";default:return e}}function Rs(e,t){const r=e.minutes!==0?`${Oh(e.minutes)} ${e.minutes===Gt?Q.t("format.minutes_short"):Q.t("format.minutes")}`:void 0,n=e.sms!==0?e.sms===e.minutes?Q.t("format.sms"):`${Oh(e.sms)} ${Q.t("format.sms")}`:void 0,o=e.minutes===Gt&&e.sms===Gt||["minutes","sms"].every(a=>e.sharedCredits?.includes(a)),s=o?" / ":" + ";return!r&&!n?"":o?[r,Q.t("format.sms")].join(s):[r,n].join(s)}function sl(e){switch(e){case 24:return`2 ${Q.t("format.year",{count:2})}`;case 12:return`1 ${Q.t("format.year")}`;case 1:return Q.t("format.monthly");default:return""}}function A3(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Bn(e){const t=sl(e.planVariant.contractTerm);if(e.productType==="fixed"){const s=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} ${Q.t("format.megabitPerSecond")}`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"}];const a=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`;return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"},{title:a,slug:"channels"}]}const r=`${e.content.dataSpeedDown/1e3} ${Q.t("format.megabitPerSecond")}`,n=`${(e.provider.network||"").replace("-netwerk","")} ${A3(e.content.networkGeneration)}`,o=e.content.dataEu?"EU":"NL";return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function Xt(e,t){if(e===Gt)return`${Q.t("format.unlimited_short")} ${t}`;const r=(e/1e3).toString().replace(".",",");return`${t===Q.t("format.gigabyte")?r:e} ${t}`}const jh=["kpn","vodafone","odido"],RL=[{type:"isRetention",rank:1,color:"primary",getDisplayName:e=>Q.t("labels.renewWith",{providerName:e.provider.name}),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&e.planVariant?.contractType==="retention",sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isCheapestPhone",rank:2,color:"primary",getDisplayName:()=>Q.t("labels.cheapestPhone"),isApplicable:(e,t)=>t.isSmartphone&&Number.isFinite(e.creditFee+e.price),sortValue:e=>e.creditFee+e.price,limit:1,sortDirection:"asc"},{type:"isBudget",rank:3,color:"primary",getDisplayName:()=>Q.t("labels.budget"),isApplicable:e=>Number.isFinite(e.tcoPerMonth),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetFiber",rank:4,color:"primary",getDisplayName:()=>Q.t("labels.budgetFiber"),isApplicable:(e,t)=>t.isFixed&&(e.tags.find(r=>r.type==="internet")?.slug||"").includes("glasvezel"),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isCombi",rank:5,color:"primary",getDisplayName:e=>e.provider?.name?Q.t("labels.combi",{providerName:e.provider.name}):Q.t("labels.combiGeneric"),isApplicable:e=>e.key.includes("m"),sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isFastestInternet",rank:6,color:"primary",getDisplayName:()=>Q.t("labels.fastestInternet"),isApplicable:e=>Number.isFinite(e.content?.dataSpeedDown),sortValue:e=>e.content?.dataSpeedDown??0,limit:1,sortDirection:"desc"},{type:"isBudgetOwnNetwork",rank:7,color:"primary",getDisplayName:()=>Q.t("labels.budgetOwnNetwork"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&jh.includes(e.provider?.slug||""),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetNetwork",rank:8,color:"primary",getDisplayName:e=>e.provider?.network?Q.t("labels.budgetNetwork",{network:e.provider.network.replace("-netwerk","")}):Q.t("labels.budgetNetworkGeneric"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&t.budgetNetworkPropositionKeys.includes(e.key),sortValue:e=>e.tcoPerMonth,limit:jh.length,sortDirection:"asc"}];function Fh({propositions:e,productCategory:t,labelColorConfig:r}){const n=t==="fixed-proposition",o=t==="sim-only-proposition",s=t==="smartphone-proposition-extended",a={isFixed:n,isSimOnly:o,isSmartphone:s,budgetNetworkPropositionKeys:o||s?KL(e):[]},i=new Map;for(const u of RL){const c=e.filter(h=>u.isApplicable(h,a));if(c.length===0)continue;const d=[...c].sort((h,m)=>{const b=u.sortValue(h),v=u.sortValue(m);return b===v?0:u.sortDirection==="asc"?b-v:v-b}),p=u.limit==="unlimited"?d.length:u.limit;d.slice(0,p).forEach(h=>{i.has(h.key)||i.set(h.key,{type:u.type,displayName:u.getDisplayName(h),rank:u.rank,color:r[u.type]??u.color})})}return{top:Array.from(i.entries()).map(([u,c])=>{const d=e.find(p=>p.key===u);return d?{...d,label:c}:void 0}).filter(u=>!!u).sort((u,c)=>u.label.rank-c.label.rank).slice(0,3),all:e.map(u=>({...u,label:i.get(u.key)}))}}function KL(e){return jh.map(t=>[...e].filter(r=>(r.provider?.network||"").replace("-netwerk","").toLowerCase()===t).sort((r,n)=>r.tcoPerMonth-n.tcoPerMonth)[0]?.key).filter(t=>!!t)}function WL({channels:e,hdChannels:t,classNames:r}){const{t:n}=Oe();return f.jsxs("div",{className:P("pb-4",r?.base),children:[f.jsx("div",{className:P(r?.description),children:n("detailsModal.channelsDescription",{channelsCount:e?.length})}),f.jsx("ul",{className:P("list-disc list-outside pl-6",r?.list),children:e.map(o=>f.jsx("li",{className:P("list-item",r?.listItem),children:f.jsxs("span",{className:P("flex items-center gap-2",r?.channelContainer),children:[o,t?.includes(o)&&f.jsx(jE,{size:24,className:P("stroke-foreground",r?.hdIcon)})]})},o))})]})}const Bh=new WeakMap;function zh(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function UL(e,t){let r=Bh.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${zh(t)}`}function N3(e,t,r){let n=Bh.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${zh(t)}-${zh(r)}`}function M3(e,t){return[...e.collection.rowHeaderColumnKeys].map(r=>N3(e,t,r)).join(" ")}var O3={};O3={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var j3={};j3={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var F3={};F3={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var B3={};B3={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var z3={};z3={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var L3={};L3={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var V3={};V3={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var R3={};R3={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var K3={};K3={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var W3={};W3={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var U3={};U3={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var H3={};H3={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var q3={};q3={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var G3={};G3={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Z3={};Z3={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Y3={};Y3={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var J3={};J3={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var X3={};X3={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Q3={};Q3={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var eS={};eS={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var tS={};tS={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var rS={};rS={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var nS={};nS={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var oS={};oS={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var sS={};sS={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var aS={};aS={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var iS={};iS={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var lS={};lS={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var uS={};uS={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var cS={};cS={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var dS={};dS={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var fS={};fS={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var pS={};pS={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var hS={};hS={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var al={};al={"ar-AE":O3,"bg-BG":j3,"cs-CZ":F3,"da-DK":B3,"de-DE":z3,"el-GR":L3,"en-US":V3,"es-ES":R3,"et-EE":K3,"fi-FI":W3,"fr-FR":U3,"he-IL":H3,"hr-HR":q3,"hu-HU":G3,"it-IT":Z3,"ja-JP":Y3,"ko-KR":J3,"lt-LT":X3,"lv-LV":Q3,"nb-NO":eS,"nl-NL":tS,"pl-PL":rS,"pt-BR":nS,"pt-PT":oS,"ro-RO":sS,"ru-RU":aS,"sk-SK":iS,"sl-SI":lS,"sr-SP":uS,"sv-SE":cS,"tr-TR":dS,"uk-UA":fS,"zh-CN":pS,"zh-TW":hS};class mS{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,r){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(t,r){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let n=this.collection.getItem(t);if(!n)return null;let o=0;for(let i of ht(n,this.collection)){var s;if(i.colSpan&&i.colSpan+o>r)return(s=i.key)!==null&&s!==void 0?s:null;i.colSpan&&(o=o+i.colSpan-1);var a;if(o===r)return(a=i.key)!==null&&a!==void 0?a:null;o++}return null}getKeyBelow(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findNextKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyAbove(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findPreviousKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=ln(c))===null||n===void 0?void 0:n.key:(o=jr(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index-1):_s(d,r.index+1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))!==null&&u!==void 0?u:null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=jr(c))===null||n===void 0?void 0:n.key:(o=ln(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index+1):_s(d,r.index-1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))!==null&&u!==void 0?u:null}return null}getFirstKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;var a;return(a=(s=jr(ht(u,this.collection)))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findNextKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;var l;n=(l=(i=jr(ht(u,this.collection)))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getLastKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;let c=ht(u,this.collection);var a;return(a=(s=ln(c))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findPreviousKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;let c=ht(u,this.collection);var l;n=(l=(i=ln(c))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getKeyPageAbove(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&r!=null;){var s;if(r=(s=this.getKeyAbove(r))!==null&&s!==void 0?s:null,r==null)break;n=this.layoutDelegate.getItemRect(r)}return r}getKeyPageBelow(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=this.layoutDelegate.getVisibleRect().height,s=Math.min(this.layoutDelegate.getContentSize().height,n.y+o);for(;n&&n.y+n.height<s;){let a=this.getKeyBelow(r);if(a==null)break;n=this.layoutDelegate.getItemRect(a),r=a}return r}getKeyForSearch(t,r){let n=r??null;if(!this.collator)return null;let o=this.collection;if(n=r??this.getFirstKey(),n==null)return null;let s=o.getItem(n);if(!s)return null;var a;s.type==="cell"&&(n=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;n!=null;){let c=o.getItem(n);if(!c)return null;if(c.textValue){let d=c.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){var l,u;return this.isRow(c)&&this.focusMode==="cell"?(u=(l=jr(ht(c,this.collection)))===null||l===void 0?void 0:l.key)!==null&&u!==void 0?u:null:c.key}}n=this.findNextKey(n,d=>d.type==="item"),n==null&&!i&&(n=this.getFirstKey(),i=!0)}return null}constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new HL(t.layout):new Sd(t.ref));var r;this.focusMode=(r=t.focusMode)!==null&&r!==void 0?r:"row"}}class HL{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var r;return((r=this.layout.getLayoutInfo(t))===null||r===void 0?void 0:r.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const Lh=new WeakMap;var gS={};gS={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var bS={};bS={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var vS={};vS={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var yS={};yS={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var xS={};xS={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var wS={};wS={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var CS={};CS={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var SS={};SS={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var kS={};kS={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var PS={};PS={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var $S={};$S={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var ES={};ES={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var TS={};TS={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var DS={};DS={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var _S={};_S={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var IS={};IS={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var AS={};AS={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var NS={};NS={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var MS={};MS={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var OS={};OS={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var jS={};jS={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var FS={};FS={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var BS={};BS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var zS={};zS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var LS={};LS={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var VS={};VS={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var RS={};RS={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var KS={};KS={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var WS={};WS={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var US={};US={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var HS={};HS={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var qS={};qS={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var GS={};GS={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var ZS={};ZS={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var il={};il={"ar-AE":gS,"bg-BG":bS,"cs-CZ":vS,"da-DK":yS,"de-DE":xS,"el-GR":wS,"en-US":CS,"es-ES":SS,"et-EE":kS,"fi-FI":PS,"fr-FR":$S,"he-IL":ES,"hr-HR":TS,"hu-HU":DS,"it-IT":_S,"ja-JP":IS,"ko-KR":AS,"lt-LT":NS,"lv-LV":MS,"nb-NO":OS,"nl-NL":jS,"pl-PL":FS,"pt-BR":BS,"pt-PT":zS,"ro-RO":LS,"ru-RU":VS,"sk-SK":RS,"sl-SI":KS,"sr-SP":WS,"sv-SE":US,"tr-TR":HS,"uk-UA":qS,"zh-CN":GS,"zh-TW":ZS};const YS=7e3;let wr=null;function JS(e,t="assertive",r=YS){wr?wr.announce(e,t,r):(wr=new qL,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?wr.announce(e,t,r):setTimeout(()=>{wr?.isAttached()&&wr?.announce(e,t,r)},100))}class qL{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=YS){var o,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function GL(e){return e&&e.__esModule?e.default:e}function ZL(e,t){let{getRowText:r=i=>{var l,u,c,d;return(d=(l=(u=t.collection).getTextValue)===null||l===void 0?void 0:l.call(u,i))!==null&&d!==void 0?d:(c=t.collection.getItem(i))===null||c===void 0?void 0:c.textValue}}=e,n=Wr(GL(il),"@react-aria/grid"),o=t.selectionManager.rawSelection,s=g.useRef(o),a=g.useCallback(()=>{var i;if(!t.selectionManager.isFocused||o===s.current){s.current=o;return}let l=XS(o,s.current),u=XS(s.current,o),c=t.selectionManager.selectionBehavior==="replace",d=[];if(t.selectionManager.selectedKeys.size===1&&c){let p=t.selectionManager.selectedKeys.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(l.size===1&&u.size===0){let p=l.keys().next().value;if(p!=null){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(u.size===1&&l.size===0){let p=u.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("deselectedItem",{item:h}))}}t.selectionManager.selectionMode==="multiple"&&(d.length===0||o==="all"||o.size>1||s.current==="all"||((i=s.current)===null||i===void 0?void 0:i.size)>1)&&d.push(o==="all"?n.format("selectedAll"):n.format("selectedCount",{count:o.size})),d.length>0&&JS(d.join(" ")),s.current=o},[o,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,n]);Zg(()=>{if(t.selectionManager.isFocused)a();else{let i=requestAnimationFrame(a);return()=>cancelAnimationFrame(i)}},[o,t.selectionManager.isFocused])}function XS(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function YL(e){return e&&e.__esModule?e.default:e}function JL(e){let t=Wr(YL(il),"@react-aria/grid"),r=C_(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,o=g.useMemo(()=>{let a=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,l;return n&&(l=t.format("longPressToSelect")),i==="replace"&&a!=="none"&&e.hasItemActions?l:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return $a(o)}function XL(e,t,r){let{isVirtualized:n,disallowTypeAhead:o,keyboardDelegate:s,focusMode:a,scrollRef:i,getRowText:l,onRowAction:u,onCellAction:c,escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:h}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=Ia({usage:"search",sensitivity:"base"}),{direction:b}=Ot(),v=t.selectionManager.disabledBehavior,y=g.useMemo(()=>s||new mS({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:v,ref:r,direction:b,collator:m,focusMode:a}),[s,t.collection,t.disabledKeys,v,r,b,m,a]),{collectionProps:x}=Cd({ref:r,selectionManager:h,keyboardDelegate:y,isVirtualized:n,scrollRef:i,disallowTypeAhead:o,escapeKeyBehavior:d}),w=bt(e.id);Lh.set(t,{keyboardDelegate:y,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:p});let C=JL({selectionManager:h,hasItemActions:!!(u||c)}),S=Bt(e,{labelable:!0}),k=g.useCallback(N=>{if(h.isFocused){N.currentTarget.contains(N.target)||h.setFocused(!1);return}N.currentTarget.contains(N.target)&&h.setFocused(!0)},[h]),D=g.useMemo(()=>({onBlur:x.onBlur,onFocus:k}),[k,x.onBlur]),$=M0(r,{isDisabled:t.collection.size!==0}),_=Ce(S,{role:"grid",id:w,"aria-multiselectable":h.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?D:x,t.collection.size===0&&{tabIndex:$?-1:0}||void 0,C);return n&&(_["aria-rowcount"]=t.collection.size,_["aria-colcount"]=t.collection.columnCount),ZL({getRowText:l},t),{gridProps:_}}function QL(){return{rowGroupProps:{role:"rowgroup"}}}function eV(e,t,r){var n,o;let{node:s,isVirtualized:a,shouldSelectOnPressUp:i,onAction:l}=e,{actions:u,shouldSelectOnPressUp:c}=Lh.get(t),d=u.onRowAction?()=>{var v;return(v=u.onRowAction)===null||v===void 0?void 0:v.call(u,s.key)}:l,{itemProps:p,...h}=Ti({selectionManager:t.selectionManager,key:s.key,ref:r,isVirtualized:a,shouldSelectOnPressUp:c||i,onAction:d||!(s==null||(n=s.props)===null||n===void 0)&&n.onAction?Ur(s==null||(o=s.props)===null||o===void 0?void 0:o.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(s.key),b={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":h.isDisabled||void 0,...p};return a&&(b["aria-rowindex"]=s.index+1),{rowProps:b,...h}}function QS(e,t,r){let{node:n,isVirtualized:o,focusMode:s="child",shouldSelectOnPressUp:a,onAction:i}=e,{direction:l}=Ot(),{keyboardDelegate:u,actions:{onCellAction:c}}=Lh.get(t),d=g.useRef(null),p=()=>{if(r.current){let w=Lt(r.current);if(s==="child"){if(r.current.contains(document.activeElement)&&r.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?Vh(w):w.firstChild();if(C){Et(C);return}}(d.current!=null&&n.key!==d.current||!r.current.contains(document.activeElement))&&Et(r.current)}},{itemProps:h,isPressed:m}=Ti({selectionManager:t.selectionManager,key:n.key,ref:r,isVirtualized:o,focus:p,shouldSelectOnPressUp:a,onAction:c?()=>c(n.key):i,isDisabled:t.collection.size===0}),b=w=>{if(!w.currentTarget.contains(w.target)||t.isKeyboardNavigationDisabled||!r.current||!document.activeElement)return;let C=Lt(r.current);switch(C.currentNode=document.activeElement,w.key){case"ArrowLeft":{let N=l==="rtl"?C.nextNode():C.previousNode();if(s==="child"&&N===r.current&&(N=null),w.preventDefault(),w.stopPropagation(),N)Et(N),Zr(N,{containingElement:Gr(r.current)});else{var S;if(((S=u.getKeyLeftOf)===null||S===void 0?void 0:S.call(u,n.key))!==n.key){var k;(k=r.current.parentElement)===null||k===void 0||k.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="rtl"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,N=l==="rtl"?C.firstChild():Vh(C),N&&(Et(N),Zr(N,{containingElement:Gr(r.current)})))}break}case"ArrowRight":{let N=l==="rtl"?C.previousNode():C.nextNode();if(s==="child"&&N===r.current&&(N=null),w.preventDefault(),w.stopPropagation(),N)Et(N),Zr(N,{containingElement:Gr(r.current)});else{var D;if(((D=u.getKeyRightOf)===null||D===void 0?void 0:D.call(u,n.key))!==n.key){var $;($=r.current.parentElement)===null||$===void 0||$.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="ltr"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,N=l==="rtl"?Vh(C):C.firstChild(),N&&(Et(N),Zr(N,{containingElement:Gr(r.current)})))}break}case"ArrowUp":case"ArrowDown":if(!w.altKey&&r.current.contains(w.target)){var _;w.stopPropagation(),w.preventDefault(),(_=r.current.parentElement)===null||_===void 0||_.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent))}break}},v=w=>{if(d.current=n.key,w.target!==r.current){xo()||t.selectionManager.setFocusedKey(n.key);return}requestAnimationFrame(()=>{s==="child"&&document.activeElement===r.current&&p()})},y=Ce(h,{role:"gridcell",onKeyDownCapture:b,"aria-colspan":n.colSpan,"aria-colindex":n.colIndex!=null?n.colIndex+1:void 0,colSpan:o?void 0:n.colSpan,onFocus:v});var x;return o&&(y["aria-colindex"]=((x=n.colIndex)!==null&&x!==void 0?x:n.index)+1),a&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=w=>{let C=w.currentTarget,S=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{S!=null&&C.setAttribute("tabindex",S)})}),{gridCellProps:y,isPressed:m}}function Vh(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function tV(e){return e&&e.__esModule?e.default:e}function rV(e,t){let{key:r}=e,n=t.selectionManager,o=bt(),s=!t.selectionManager.canSelectItem(r),a=t.selectionManager.isSelected(r),i=()=>n.toggleSelection(r);const l=Wr(tV(il),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":l.format("select"),isSelected:a,isDisabled:s,onChange:i}}}class nV extends mS{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let n=jr(ht(r,this.collection));if(n)return n.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,r.index)}return super.getKeyBelow(t)}getKeyAbove(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let s=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return s&&s.type==="column"?s.key:null}let n=super.getKeyAbove(t),o=n!=null?this.collection.getItem(n):null;return o&&o.type!=="headerrow"?n:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,o=>o.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level];for(let o of ht(n,this.collection))if(o.type==="column")return o.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,s=>s.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level],o=[...ht(n,this.collection)];for(let s=o.length-1;s>=0;s--){let a=o[s];if(a.type==="column")return a.key}return null}getKeyRightOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r??this.getFirstKey();if(o==null)return null;let s=n.getItem(o);var a;s?.type==="cell"&&(o=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;o!=null;){let l=n.getItem(o);if(!l)return null;if(l.textValue){let u=l.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0)return l.key}for(let u of ht(l,this.collection)){let c=n.columns[u.index];if(n.rowHeaderColumnKeys.has(c.key)&&u.textValue){let d=u.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){let p=r!=null?n.getItem(r):s;return p?.type==="cell"?u.key:l.key}}}o=this.getKeyBelow(o),o==null&&!i&&(o=this.getFirstKey(),i=!0)}return null}}function oV(e){return e&&e.__esModule?e.default:e}function sV(e,t,r){let{keyboardDelegate:n,isVirtualized:o,layoutDelegate:s,layout:a}=e,i=Ia({usage:"search",sensitivity:"base"}),{direction:l}=Ot(),u=t.selectionManager.disabledBehavior,c=g.useMemo(()=>n||new nV({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:u,ref:r,direction:l,collator:i,layoutDelegate:s,layout:a}),[n,t.collection,t.disabledKeys,u,r,l,i,s,a]),d=bt(e.id);Bh.set(t,d);let{gridProps:p}=XL({...e,id:d,keyboardDelegate:c},t,r);o&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ga()&&"expandedKeys"in t&&(p.role="treegrid");let{column:h,direction:m}=t.sortDescriptor||{},b=Wr(oV(al),"@react-aria/table"),v=g.useMemo(()=>{var x,w;let C=(w=(x=t.collection.columns.find(S=>S.key===h))===null||x===void 0?void 0:x.textValue)!==null&&w!==void 0?w:"";return m&&h?b.format(`${m}Sort`,{columnName:C}):void 0},[m,h,t.collection.columns]),y=$a(v);return Zg(()=>{v&&JS(v,"assertive",500)},[v]),{gridProps:Ce(p,y,{"aria-describedby":[y["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function aV(e){return e&&e.__esModule?e.default:e}function ek(e,t,r){var n,o;let{node:s}=e,a=s.props.allowsSorting,{gridCellProps:i}=QS({...e,focusMode:"child"},t,r),l=s.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:u,isPressed:c}=jt({isDisabled:!a||l,onPress(){t.sort(s.key)},ref:r}),{focusableProps:d}=rn({},r),p,h=((n=t.sortDescriptor)===null||n===void 0?void 0:n.column)===s.key,m=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;s.props.allowsSorting&&!ss()&&(p=h?m:"none");let b=Wr(aV(al),"@react-aria/table"),v;a&&(v=`${b.format("sortable")}`,h&&m&&ss()&&(v=`${v}, ${b.format(m)}`));let y=$a(v),x=t.collection.size===0;return g.useEffect(()=>{x&&t.selectionManager.focusedKey===s.key&&t.selectionManager.setFocusedKey(null)},[x,t.selectionManager,s.key]),{columnHeaderProps:{...Ce(d,i,u,y,x?{tabIndex:-1}:null),role:"columnheader",id:UL(t,s.key),"aria-colspan":s.colSpan&&s.colSpan>1?s.colSpan:void 0,"aria-sort":p},isPressed:c}}const tk={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function iV(e,t,r){let{node:n,isVirtualized:o}=e,{rowProps:s,...a}=eV(e,t,r),{direction:i}=Ot();o&&!(ga()&&"expandedKeys"in t)?s["aria-rowindex"]=n.index+1+t.collection.headerRows.length:delete s["aria-rowindex"];let l={};if(ga()&&"expandedKeys"in t){let S=t.keyMap.get(n.key);if(S!=null){var u,c,d,p,h,m;let k=((u=S.props)===null||u===void 0?void 0:u.UNSTABLE_childItems)||((d=S.props)===null||d===void 0||(c=d.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;var b,v,y,x;l={onKeyDown:D=>{(D.key===tk.expand[i]&&t.selectionManager.focusedKey===S.key&&k&&t.expandedKeys!=="all"&&!t.expandedKeys.has(S.key)||D.key===tk.collapse[i]&&t.selectionManager.focusedKey===S.key&&k&&(t.expandedKeys==="all"||t.expandedKeys.has(S.key)))&&(t.toggleKey(S.key),D.stopPropagation())},"aria-expanded":k?t.expandedKeys==="all"||t.expandedKeys.has(n.key):void 0,"aria-level":S.level,"aria-posinset":((b=S.indexOfType)!==null&&b!==void 0?b:0)+1,"aria-setsize":S.level>1?((y=(p=ln((v=(h=t.keyMap.get(S.parentKey))===null||h===void 0?void 0:h.childNodes)!==null&&v!==void 0?v:[]))===null||p===void 0?void 0:p.indexOfType)!==null&&y!==void 0?y:0)+1:((x=(m=ln(t.collection.body.childNodes))===null||m===void 0?void 0:m.indexOfType)!==null&&x!==void 0?x:0)+1}}}let w=G5(n.props),C=a.hasAction?w:{};return{rowProps:{...Ce(s,l,C),"aria-labelledby":M3(t,n.key)},...a}}function lV(e,t,r){let{node:n,isVirtualized:o}=e,s={role:"row"};return o&&!(ga()&&"expandedKeys"in t)&&(s["aria-rowindex"]=n.index+1),{rowProps:s}}function rk(e,t,r){var n;let{gridCellProps:o,isPressed:s}=QS(e,t,r),a=(n=e.node.column)===null||n===void 0?void 0:n.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(o.role="rowheader",o.id=N3(t,e.node.parentKey,a)),{gridCellProps:o,isPressed:s}}function uV(e){return e&&e.__esModule?e.default:e}function cV(e,t){let{key:r}=e;const{checkboxProps:n}=rV(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${M3(t,r)}`}}}function dV(e){let{isEmpty:t,isSelectAll:r,selectionMode:n}=e.selectionManager;return{checkboxProps:{"aria-label":Wr(uV(al),"@react-aria/table").format(n==="single"?"select":"selectAll"),isSelected:r,isDisabled:n!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Rh(){return QL()}var nk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,slots:i,state:l,selectionMode:u,color:c,checkboxesProps:d,disableAnimation:p,classNames:h,...m}=e,b=o||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:a},l,y),{isFocusVisible:w,focusProps:C}=rt(),{checkboxProps:S}=dV(l),k=P(h?.th,s,(r=a.props)==null?void 0:r.className),D=u==="single",{onChange:$,..._}=S;return f.jsx(b,{ref:y,"data-focus-visible":H(w),...ie(x,C,Fe(a.props,{enabled:v}),Fe(m,{enabled:v})),className:(n=i.th)==null?void 0:n.call(i,{class:k}),children:D?f.jsx(wo,{children:S["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:p,onValueChange:$,...ie(d,_)})})});nk.displayName="HeroUI.TableSelectAllCheckbox";var ok=nk;function fV(e){let{collection:t,focusMode:r}=e,n=e.UNSAFE_selectionState||e1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=n.setFocusedKey;n.setFocusedKey=(l,u)=>{if(r==="cell"&&l!=null){let m=t.getItem(l);if(m?.type==="item"){var c,d;let b=ht(m,t);var p,h;u==="last"?l=(p=(c=ln(b))===null||c===void 0?void 0:c.key)!==null&&p!==void 0?p:null:l=(h=(d=jr(b))===null||d===void 0?void 0:d.key)!==null&&h!==void 0?h:null}}s(l,u)};let a=g.useMemo(()=>new Ii(t,n),[t,n]);const i=g.useRef(null);return g.useEffect(()=>{if(n.focusedKey!=null&&i.current&&!t.getItem(n.focusedKey)){const l=i.current.getItem(n.focusedKey),u=l?.parentKey!=null&&(l.type==="cell"||l.type==="rowheader"||l.type==="column")?i.current.getItem(l.parentKey):l;if(!u){n.setFocusedKey(null);return}const c=i.current.rows,d=t.rows,p=c.length-d.length;let h=Math.min(p>1?Math.max(u.index-p+1,0):u.index,d.length-1),m=null;for(;h>=0;){if(!a.isDisabled(d[h].key)&&d[h].type!=="headerrow"){m=d[h];break}h<d.length-1?h++:(h>u.index&&(h=u.index),h--)}if(m){const b=m.hasChildNodes?[...ht(m,t)]:[],v=m.hasChildNodes&&u!==l&&l&&l.index<b.length?b[l.index].key:m.key;n.setFocusedKey(v)}else n.setFocusedKey(null)}i.current=t},[t,a,n,n.focusedKey]),{collection:t,disabledKeys:o,isKeyboardNavigationDisabled:!1,selectionManager:a}}class pV{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t;return(t=[...this.rows][0])===null||t===void 0?void 0:t.key}getLastKey(){var t;let r=[...this.rows];return(t=r[r.length-1])===null||t===void 0?void 0:t.key}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=d=>{let p=this.keyMap.get(d.key);t.visitNode&&(d=t.visitNode(d)),this.keyMap.set(d.key,d);let h=new Set,m=null,b=!1;if(d.type==="item"){var v;for(let S of d.childNodes)if(((v=S.props)===null||v===void 0?void 0:v.colSpan)!==void 0){b=!0;break}}for(let S of d.childNodes){if(S.type==="cell"&&b){var y,x;S.colspan=(y=S.props)===null||y===void 0?void 0:y.colSpan,S.colSpan=(x=S.props)===null||x===void 0?void 0:x.colSpan;var w,C;S.colIndex=m?((w=m.colIndex)!==null&&w!==void 0?w:m.index)+((C=m.colSpan)!==null&&C!==void 0?C:1):S.index}S.type==="cell"&&S.parentKey==null&&(S.parentKey=d.key),h.add(S.key),m?(m.nextKey=S.key,S.prevKey=m.key):S.prevKey=null,r(S),m=S}if(m&&(m.nextKey=null),p)for(let S of p.childNodes)h.has(S.key)||n(S)},n=d=>{this.keyMap.delete(d.key);for(let p of d.childNodes)this.keyMap.get(p.key)===p&&n(p)},o=null;for(let[d,p]of t.items.entries()){var s,a,i,l,u,c;let h={...p,level:(s=p.level)!==null&&s!==void 0?s:0,key:(a=p.key)!==null&&a!==void 0?a:"row-"+d,type:(i=p.type)!==null&&i!==void 0?i:"row",value:(l=p.value)!==null&&l!==void 0?l:null,hasChildNodes:!0,childNodes:[...p.childNodes],rendered:p.rendered,textValue:(u=p.textValue)!==null&&u!==void 0?u:"",index:(c=p.index)!==null&&c!==void 0?c:d};o?(o.nextKey=h.key,h.prevKey=o.key):h.prevKey=null,this.rows.push(h),r(h),o=h}o&&(o.nextKey=null)}}const sk="row-header-column-"+Math.random().toString(36).slice(2);let Kh="row-header-column-"+Math.random().toString(36).slice(2);for(;sk===Kh;)Kh="row-header-column-"+Math.random().toString(36).slice(2);function hV(e,t){if(t.length===0)return[];let r=[],n=new Map;for(let c of t){let d=c.parentKey,p=[c];for(;d;){let h=e.get(d);if(!h)break;if(n.has(h)){var o,s;(s=(o=h).colSpan)!==null&&s!==void 0||(o.colSpan=0),h.colSpan++,h.colspan=h.colSpan;let{column:m,index:b}=n.get(h);if(b>p.length)break;for(let v=b;v<p.length;v++)m.splice(v,0,null);for(let v=p.length;v<m.length;v++)m[v]&&n.has(m[v])&&(n.get(m[v]).index=v)}else h.colSpan=1,h.colspan=1,p.push(h),n.set(h,{column:p,index:p.length-1});d=h.parentKey}r.push(p),c.index=r.length-1}let a=Math.max(...r.map(c=>c.length)),i=Array(a).fill(0).map(()=>[]),l=0;for(let c of r){let d=a-1;for(let p of c){if(p){let h=i[d],m=h.reduce((b,v)=>{var y;return b+((y=v.colSpan)!==null&&y!==void 0?y:1)},0);if(m<l){let b={type:"placeholder",key:"placeholder-"+p.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};h.length>0&&(h[h.length-1].nextKey=b.key,b.prevKey=h[h.length-1].key),h.push(b)}h.length>0&&(h[h.length-1].nextKey=p.key,p.prevKey=h[h.length-1].key),p.level=d,p.colIndex=l,h.push(p)}d--}l++}let u=0;for(let c of i){let d=c.reduce((p,h)=>{var m;return p+((m=h.colSpan)!==null&&m!==void 0?m:1)},0);if(d<t.length){let p={type:"placeholder",key:"placeholder-"+c[c.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:c[c.length-1].key};c.push(p)}u++}return i.map((c,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:c,textValue:""}))}class mV extends pV{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return(n=r?.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return(n=r?.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t,r;return(r=(t=jr(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getLastKey(){var t,r;return(r=(t=ln(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return t===this.body.key?this.body.childNodes:super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return"";if(r.textValue)return r.textValue;let n=this.rowHeaderColumnKeys;if(n){let o=[];for(let s of r.childNodes){let a=this.columns[s.index];if(n.has(a.key)&&s.textValue&&o.push(s.textValue),o.length===n.size)break}return o.join(" ")}return""}constructor(t,r,n){let o=new Set,s=null,a=[];if(n?.showSelectionCheckboxes){let d={type:"column",key:sk,value:null,textValue:"",level:0,index:n?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(d)}if(n?.showDragButtons){let d={type:"column",key:Kh,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(d)}let i=[],l=new Map,u=d=>{switch(d.type){case"body":s=d;break;case"column":l.set(d.key,d),d.hasChildNodes||(a.push(d),d.props.isRowHeader&&o.add(d.key));break;case"item":i.push(d);return}for(let p of d.childNodes)u(p)};for(let d of t)u(d);let c=hV(l,a);if(c.forEach((d,p)=>i.splice(p,0,d)),super({columnCount:a.length,items:i,visitNode:d=>(d.column=a[d.index],d)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=o,this.body=s,this.headerRows=c,this._size=[...s.childNodes].length,this.rowHeaderColumnKeys.size===0){let d=this.columns.find(p=>{var h,m;return!(!((h=p.props)===null||h===void 0)&&h.isDragButtonCell)&&!(!((m=p.props)===null||m===void 0)&&m.isSelectionCell)});d&&this.rowHeaderColumnKeys.add(d.key)}}}const gV={ascending:"descending",descending:"ascending"};function bV(e){let[t,r]=g.useState(!1),{selectionMode:n="none",showSelectionCheckboxes:o,showDragButtons:s}=e,a=g.useMemo(()=>({showSelectionCheckboxes:o&&n!=="none",showDragButtons:s,selectionMode:n,columns:[]}),[e.children,o,n,s]),i=s1(e,g.useCallback(d=>new mV(d,null,a),[a]),a),{disabledKeys:l,selectionManager:u}=fV({...e,collection:i,disabledBehavior:e.disabledBehavior||"selection"});var c;return{collection:i,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:(c=e.sortDescriptor)!==null&&c!==void 0?c:null,isKeyboardNavigationDisabled:i.size===0||t,setKeyboardNavigationDisabled:r,sort(d,p){var h,m;(m=e.onSortChange)===null||m===void 0||m.call(e,{column:d,direction:p??(((h=e.sortDescriptor)===null||h===void 0?void 0:h.column)===d?gV[e.sortDescriptor.direction]:"ascending")})}}}function ak(e){return null}ak.getCollectionNode=function*(t,r){let{children:n,columns:o}=t;if(r.columns=[],typeof n=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let s of o)yield{type:"column",value:s,renderer:n}}else{let s=[];g.Children.forEach(n,a=>{s.push({type:"column",element:a})}),yield*s}};let vV=ak;function ik(e){return null}ik.getCollectionNode=function*(t){let{children:r,items:n}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of n)yield{type:"item",value:o,renderer:r}}else{let o=[];g.Children.forEach(r,s=>{o.push({type:"item",element:s})}),yield*o}}}};let yV=ik;function lk(e){return null}lk.getCollectionNode=function*(t,r){let{title:n,children:o,childColumns:s}=t,a=n||o,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"],l=yield{type:"column",hasChildNodes:!!s||!!n&&g.Children.count(o)>0,rendered:a,textValue:i,props:t,*childNodes(){if(s)for(let c of s)yield{type:"column",value:c};else if(n){let c=[];g.Children.forEach(o,d=>{c.push({type:"column",element:d})}),yield*c}},shouldInvalidate(c){return u(c),!1}},u=c=>{for(let d of l)d.hasChildNodes||c.columns.push(d)};u(r)};let xV=lk;function Wh(e){return null}Wh.getCollectionNode=function*(t,r){let{children:n,textValue:o,UNSTABLE_childItems:s}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(r.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),r.showSelectionCheckboxes&&r.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof n=="function"){for(let a of r.columns)yield{type:"cell",element:n(a.key),key:a.key};if(s)for(let a of s)yield{type:"item",value:a}}else{let a=[],i=[],l=0;if(g.Children.forEach(n,u=>{if(u.type===Wh){if(a.length<r.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");i.push({type:"item",element:u})}else{a.push({type:"cell",element:u});var c;l+=(c=u.props.colSpan)!==null&&c!==void 0?c:1}}),l!==r.columns.length)throw new Error(`Cell count must match column count. Found ${l} cells and ${r.columns.length} columns.`);yield*a,yield*i}},shouldInvalidate(a){return a.columns.length!==r.columns.length||a.columns.some((i,l)=>i.key!==r.columns[l].key)||a.showSelectionCheckboxes!==r.showSelectionCheckboxes||a.showDragButtons!==r.showDragButtons||a.selectionMode!==r.selectionMode}}};let wV=Wh;function uk(e){return null}uk.getCollectionNode=function*(t){let{children:r}=t,n=t.textValue||(typeof r=="string"?r:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:r,textValue:n,"aria-label":t["aria-label"],hasChildNodes:!1}};let CV=uk;function ck(e){var t;const r=et(),[n,o]=pt(e,Nm.variantKeys),{ref:s,as:a,baseRef:i,children:l,className:u,classNames:c,removeWrapper:d=!1,disableAnimation:p=(t=r?.disableAnimation)!=null?t:!1,isKeyboardNavigationDisabled:h=!1,selectionMode:m="none",topContentPlacement:b="inside",bottomContentPlacement:v="inside",selectionBehavior:y=m==="none"?null:"toggle",disabledBehavior:x="selection",showSelectionCheckboxes:w=m==="multiple"&&y!=="replace",BaseComponent:C="div",checkboxesProps:S,topContent:k,bottomContent:D,sortIcon:$,onRowAction:_,onCellAction:N,...A}=n,M=a||"table",O=typeof M=="string",L=Pe(s),I=Pe(i),z=bV({...e,children:l,showSelectionCheckboxes:w});h&&!z.isKeyboardNavigationDisabled&&z.setKeyboardNavigationDisabled(!0);const{collection:F}=z,{layout:B,...U}=e,{gridProps:E}=sV({...U},z,L),j=m!=="none",T=m==="multiple",V=g.useMemo(()=>Nm({...o,isSelectable:j,isMultiSelectable:T}),[ft(o),j,T]),K=P(c?.base,u),G=g.useMemo(()=>{var X;return{state:z,slots:V,isSelectable:j,collection:F,classNames:c,color:e?.color,disableAnimation:p,checkboxesProps:S,isHeaderSticky:(X=e?.isHeaderSticky)!=null?X:!1,selectionMode:m,selectionBehavior:y,disabledBehavior:x,showSelectionCheckboxes:w,onRowAction:_,onCellAction:N}},[V,z,F,j,c,m,y,S,x,p,w,e?.color,e?.isHeaderSticky,_,N]),Z=g.useCallback(X=>({...X,ref:I,className:V.base({class:P(K,X?.className)})}),[K,V]),W=g.useCallback(X=>({...X,ref:I,className:V.wrapper({class:P(c?.wrapper,X?.className)})}),[c?.wrapper,V]),ne=g.useCallback(X=>({...ie(E,Fe(A,{enabled:O}),X),onKeyDownCapture:void 0,ref:L,className:V.table({class:P(c?.table,X?.className)})}),[c?.table,O,V,E,A]);return{BaseComponent:C,Component:M,children:l,state:z,collection:F,values:G,topContent:k,bottomContent:D,removeWrapper:d,topContentPlacement:b,bottomContentPlacement:v,sortIcon:$,getBaseProps:Z,getWrapperProps:W,getTableProps:ne}}var dk=Se((e,t)=>{var r,n,o;const{as:s,className:a,node:i,rowKey:l,slots:u,state:c,classNames:d,...p}=e,h=s||"td",m=typeof h=="string",b=Pe(t),{gridCellProps:v}=rk({node:i},c,b),y=P(d?.td,a,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=rt(),C=c.selectionManager.isSelected(l),S=g.useMemo(()=>{const D=typeof i.rendered;return D!=="object"&&D!=="function"?f.jsx("span",{children:i.rendered}):i.rendered},[i.rendered]),k=((n=i.column)==null?void 0:n.props)||{};return f.jsx(h,{ref:b,"data-focus-visible":H(x),"data-selected":H(C),...ie(v,w,Fe(i.props,{enabled:m}),p),className:(o=u.td)==null?void 0:o.call(u,{align:k.align,class:y}),children:S})});dk.displayName="HeroUI.TableCell";var fk=dk,pk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,rowKey:i,slots:l,state:u,color:c,disableAnimation:d,checkboxesProps:p,selectionMode:h,classNames:m,...b}=e,v=o||"td",y=typeof v=="string",x=Pe(t),{gridCellProps:w}=rk({node:a},u,x),{isFocusVisible:C,focusProps:S}=rt(),{checkboxProps:k}=cV({key:a?.parentKey||a.key},u),D=P(m?.td,s,(r=a.props)==null?void 0:r.className),$=h==="single",{onChange:_,...N}=k,A=u.selectionManager.isSelected(i);return f.jsx(v,{ref:x,"data-focus-visible":H(C),"data-selected":H(A),...ie(w,S,Fe(a.props,{enabled:y}),b),className:(n=l.td)==null?void 0:n.call(l,{class:D}),children:$?f.jsx(wo,{children:k["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:d,onValueChange:_,...ie(p,N)})})});pk.displayName="HeroUI.TableCheckboxCell";var hk=pk,mk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,state:u,isSelectable:c,classNames:d,...p}=e,h=o||(e?.href?"a":"tr"),m=typeof h=="string",b=Pe(t),{rowProps:v}=iV({node:i},u,b),y=P(d?.tr,s,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=rt(),C=u.disabledKeys.has(i.key),S=u.selectionManager.isSelected(i.key),{isHovered:k,hoverProps:D}=vt({isDisabled:C}),{isFirst:$,isLast:_,isMiddle:N,isOdd:A}=g.useMemo(()=>{const M=i.key===u.collection.getFirstKey(),O=i.key===u.collection.getLastKey(),L=!M&&!O,I=i?.index?(i.index+1)%2===0:!1;return{isFirst:M,isLast:O,isMiddle:L,isOdd:I}},[i,u.collection]);return f.jsx(h,{ref:b,"data-disabled":H(C),"data-first":H($),"data-focus-visible":H(x),"data-hover":H(k),"data-last":H(_),"data-middle":H(N),"data-odd":H(A),"data-selected":H(S),...ie(v,w,c?D:{},Fe(i.props,{enabled:m}),p),className:(n=l.tr)==null?void 0:n.call(l,{class:y}),children:a})});mk.displayName="HeroUI.TableRow";var gk=mk,bk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,rowVirtualizer:m,...b}=e,v=n||"tbody",y=typeof v=="string",x=Pe(t),{rowGroupProps:w}=Rh(),C=P(h?.tbody,o),S=i?.body.props,k=S?.isLoading||S?.loadingState==="loading"||S?.loadingState==="loadingMore",D=[...i.body.childNodes],$=m.getVirtualItems();let _,N;return i.size===0&&S.emptyContent&&(_=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!k&&S.emptyContent})})),k&&S.loadingContent&&(N=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:S.loadingContent}),!_&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(v,{ref:x,...ie(w,Fe(S,{enabled:y}),b),className:(r=s.tbody)==null?void 0:r.call(s,{class:C}),"data-empty":H(i.size===0),"data-loading":H(k),children:[$.map((A,M)=>{const O=D[A.index];return O?f.jsx(gk,{classNames:h,isSelectable:l,node:O,slots:s,state:a,style:{transform:`translateY(${A.start-M*A.size}px)`,height:`${A.size}px`},children:[...O.childNodes].map(L=>L.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:L,rowKey:O.key,selectionMode:p,slots:s,state:a},String(L.key)):f.jsx(fk,{classNames:h,node:L,rowKey:O.key,slots:s,state:a},String(L.key)))},String(O.key)):null}),N,_]})});bk.displayName="HeroUI.VirtualizedTableBody";var SV=bk,Uh=e=>typeof e=="number"?`${e}px`:e,vk=Se((e,t)=>{var r,n,o,s,a;const{as:i,className:l,state:u,node:c,slots:d,classNames:p,sortIcon:h,...m}=e,b=i||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:c},u,y),w=P(p?.th,l,(r=c.props)==null?void 0:r.className),{isFocusVisible:C,focusProps:S}=rt(),{isHovered:k,hoverProps:D}=vt({}),{hideHeader:$,align:_,width:N,minWidth:A,maxWidth:M,...O}=c.props,L=O.allowsSorting,I={};N&&(I.width=Uh(N)),A&&(I.minWidth=Uh(A)),M&&(I.maxWidth=Uh(M));const z={"aria-hidden":!0,"data-direction":(n=u.sortDescriptor)==null?void 0:n.direction,"data-visible":H(((o=u.sortDescriptor)==null?void 0:o.column)===c.key),className:(s=d.sortIcon)==null?void 0:s.call(d,{class:p?.sortIcon})},F=typeof h=="function"?h(z):g.isValidElement(h)&&g.cloneElement(h,z);return f.jsxs(b,{ref:y,colSpan:c.colspan,"data-focus-visible":H(C),"data-hover":H(k),"data-sortable":H(L),style:I,...ie(x,S,Fe(O,{enabled:v}),L?D:{},m),className:(a=d.th)==null?void 0:a.call(d,{align:_,class:w}),children:[$?f.jsx(wo,{children:c.rendered}):c.rendered,L&&(F||f.jsx(Uy,{strokeWidth:3,...z}))]})});vk.displayName="HeroUI.TableColumnHeader";var yk=vk,xk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,classNames:u,state:c,...d}=e,p=o||"tr",h=typeof p=="string",m=Pe(t),{rowProps:b}=lV({node:i},c),v=P(u?.tr,s,(r=i.props)==null?void 0:r.className);return f.jsx(p,{ref:m,...ie(b,Fe(i.props,{enabled:h}),d),className:(n=l.tr)==null?void 0:n.call(l,{class:v}),children:a})});xk.displayName="HeroUI.TableHeaderRow";var wk=xk,Ck=g.forwardRef((e,t)=>{var r;const{as:n,className:o,children:s,slots:a,classNames:i,...l}=e,u=n||"thead",c=Pe(t),{rowGroupProps:d}=Rh(),p=P(i?.thead,o);return f.jsx(u,{ref:c,className:(r=a.thead)==null?void 0:r.call(a,{class:p}),...ie(d,l),children:s})});Ck.displayName="HeroUI.TableRowGroup";var Sk=Ck,kk=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,getBaseProps:c,getWrapperProps:d,getTableProps:p}=ck({...e,ref:t}),{rowHeight:h=40,maxTableHeight:m=600}=e,b=g.useCallback(({children:$})=>f.jsx(r,{...d(),ref:x,style:{height:m,display:"block"},children:$}),[d,m]),y=[...o.body.childNodes].length,x=g.useRef(null),[w,C]=g.useState(0),S=g.useRef(null);g.useLayoutEffect(()=>{S.current&&C(S.current.getBoundingClientRect().height)},[S]);const k=y1({count:y,getScrollElement:()=>x.current,estimateSize:()=>h,overscan:5}),D=p();return f.jsxs("div",{...c(),children:[i==="outside"&&a,f.jsx(b,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...D,style:{height:`calc(${k.getTotalSize()+w}px)`,...D.style},children:[f.jsx(Sk,{ref:S,classNames:s.classNames,slots:s.slots,children:o.headerRows.map($=>f.jsx(wk,{classNames:s.classNames,node:$,slots:s.slots,state:s.state,children:[...$.childNodes].map(_=>{var N;return(N=_?.props)!=null&&N.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:_,selectionMode:s.selectionMode,slots:s.slots,state:s.state},_?.key):f.jsx(yk,{classNames:s.classNames,node:_,slots:s.slots,state:s.state},_?.key)})},$?.key))}),f.jsx(SV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,rowVirtualizer:k,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});kk.displayName="HeroUI.VirtualizedTable";var kV=kk,Pk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,...m}=e,b=n||"tbody",v=typeof b=="string",y=Pe(t),{rowGroupProps:x}=Rh(),w=P(h?.tbody,o),C=i?.body.props,S=C?.isLoading||C?.loadingState==="loading"||C?.loadingState==="loadingMore",k=g.useMemo(()=>[...i.body.childNodes].map(_=>f.jsx(gk,{classNames:h,isSelectable:l,node:_,slots:s,state:a,children:[..._.childNodes].map(N=>N.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:N,rowKey:_.key,selectionMode:p,slots:s,state:a},N.key):f.jsx(fk,{classNames:h,node:N,rowKey:_.key,slots:s,state:a},N.key))},_.key)),[i.body.childNodes,h,l,s,a]);let D,$;return i.size===0&&C.emptyContent&&(D=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!S&&C.emptyContent})})),S&&C.loadingContent&&($=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:C.loadingContent}),!D&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(b,{ref:y,...ie(x,Fe(C,{enabled:v}),m),className:(r=s.tbody)==null?void 0:r.call(s,{class:w}),"data-empty":H(i.size===0),"data-loading":H(S),children:[k,$,D]})});Pk.displayName="HeroUI.TableBody";var PV=Pk,$k=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,removeWrapper:c,sortIcon:d,getBaseProps:p,getWrapperProps:h,getTableProps:m}=ck({...e,ref:t}),{isVirtualized:b,rowHeight:v=40,maxTableHeight:y=600}=e,x=b,w=g.useCallback(({children:C})=>c?C:f.jsx(r,{...h(),children:C}),[c,h]);return x?f.jsx(kV,{...e,ref:t,maxTableHeight:y,rowHeight:v}):f.jsxs("div",{...p(),children:[i==="outside"&&a,f.jsx(w,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...m(),children:[f.jsx(Sk,{classNames:s.classNames,slots:s.slots,children:o.headerRows.map(C=>f.jsx(wk,{classNames:s.classNames,node:C,slots:s.slots,state:s.state,children:[...C.childNodes].map(S=>{var k;return(k=S?.props)!=null&&k.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:S,selectionMode:s.selectionMode,slots:s.slots,state:s.state},S?.key):f.jsx(yk,{classNames:s.classNames,node:S,slots:s.slots,sortIcon:d,state:s.state},S?.key)})},C?.key))}),f.jsx(PV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});$k.displayName="HeroUI.Table";var ll=$k,$V=xV,Dt=$V,EV=vV,ul=EV,TV=wV,cl=TV,DV=yV,dl=DV,_V=CV,_t=_V;function IV({proposition:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=nt();function o(s){return{base:P(s,n?.table?.base),wrapper:P(n?.table?.wrapper),table:P("table-fixed border-collapse",n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent p-0 px-0.5",n?.table?.th),td:P("first:pl-0 py-0 px-0.5 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)}}return f.jsxs("div",{className:P("mt-1 border-small border-default-200 rounded-medium p-2",n?.base),children:[f.jsxs(Fd,{orientation:"horizontal",hideScrollBar:!0,children:[f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o(),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.price+e.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(e.price,{symbol:"€"})}),f.jsx(_t,{children:me(e.creditFee,{symbol:"€"})})]})})]}),f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o("mt-4"),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[e.planVariant.contractTerm," ",r("format.month",{count:e.planVariant.contractTerm})]}),f.jsx(_t,{textValue:"0%",children:"0%"})]})})]})]}),f.jsxs("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:[f.jsx(xg,{i18nKey:"creditInfo.creditBundleDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-credit-bundle-description-link")],values:{creditPrice:me(250,{symbol:"€",dashed:!0}),creditProviderName:e.provider.creditProviderName}})," ",f.jsx("button",{type:"button",onClick:()=>{t("/inkomens-en-lastentoets").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink),children:r("detailsModal.moreInformation")})]})]})}function AV(e,t){return e===0?Q.t("format.firstMonth",{count:t}):Q.t("format.thenMonth",{count:t})}function Qt({label:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex justify-between items-center text-sm",r?.container),children:[f.jsx("div",{className:P(r?.label),children:e}),f.jsx("div",{className:P(r?.price),children:t})]})}function Ek({icon:e,title:t,subtitle:r,price:n,classNames:o}){return f.jsxs("div",{className:P("flex justify-between items-center",o?.header),children:[f.jsxs("div",{className:P("flex items-center gap-1",o?.headerContent),children:[f.jsx("div",{className:P(o?.icon),children:e}),f.jsxs("div",{children:[f.jsx("div",{className:P("font-semibold text-sm",o?.title),children:t}),f.jsx("div",{className:P("text-xs text-foreground-500",o?.subtitle),children:r})]})]}),f.jsx("div",{className:P("text-sm font-semibold",o?.price),children:n})]})}function NV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,monthlyFees:a,price:i,creditFee:l,tcoPerMonth:u,handsetCreditMonthlyFee:c,tcoTerm:d,tcoCorrection:p,activationFee:h,cashback:m,productVersion:b,installationFee:v}=e,y=t?.averageSection,x=t?.discountSection;return f.jsxs("div",{className:P("pb-4",t?.base),children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large",y?.container),children:[f.jsx(Ek,{icon:f.jsx(_g,{size:24,className:"stroke-foreground"}),title:n("detailsModal.costPerContractTermTitle"),subtitle:n("detailsModal.costPerContractTermSubtitle"),price:me(u),classNames:{header:y?.header,headerContent:y?.headerContent,icon:y?.icon,title:y?.title,subtitle:y?.subtitle,price:y?.price}}),f.jsx("div",{className:P("text-sm mt-2",y?.monthlyFeesContainer),children:a.map(({fee:w,term:C})=>f.jsx(Qt,{label:`${n("format.monthly")} ${C} x ${me(w,{symbol:"€"})}`,price:me(w*C),classNames:y?.monthlyFee},`${C}-${w}`))}),i!==0&&f.jsx(Qt,{label:n("format.oneTime"),price:me(i),classNames:y?.oneTimeFee}),f.jsx(Qt,{label:`${s.name} ${n("detailsModal.activationFee")}`,price:me(h),classNames:y?.activationFee}),o==="fixed"&&f.jsx(Qt,{label:`${s.name} ${n("detailsModal.installationFee")}`,price:me(v),classNames:y?.installationFee}),m!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:`-${me(m)}`,classNames:y?.cashback}),p!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:me(p),classNames:y?.cashback}),f.jsx(Ao,{orientation:"horizontal",className:P("my-3",y?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalCostsOverTerm",{count:d}),price:me(u*d),classNames:y?.totalCosts})]}),o==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large text-sm mt-3",x?.container),children:[f.jsx(Ek,{icon:f.jsx(tu,{size:24,className:"stroke-foreground"}),title:n("detailsModal.deviceDiscountTitle"),subtitle:n("detailsModal.deviceDiscountSubtitle"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:{header:x?.header,headerContent:x?.headerContent,icon:x?.icon,title:x?.title,subtitle:x?.subtitle,price:x?.price}}),f.jsx(Qt,{label:n("detailsModal.priceWithoutSubscription"),price:me(Number(b?.pricing.sellingPriceInclVat)),classNames:{container:P("my-2",x?.priceWithoutSubscription?.container),label:x?.priceWithoutSubscription?.label,price:x?.priceWithoutSubscription?.price}}),a.map(({fee:w,term:C},S)=>f.jsxs("div",{children:[f.jsx(Qt,{label:n("detailsModal.priceWithSubscription"),price:me(c*C+i),classNames:x?.priceWithSubscription}),f.jsx(Qt,{label:f.jsxs(f.Fragment,{children:[S===a.length-1?n("detailsModal.deviceBundle"):AV(S,C)," ",C," x ",me(c,{symbol:"€"})]}),price:me(c*C),classNames:{container:P(x?.handsetCosts?.container),label:P("pl-4",x?.handsetCosts?.label),price:P(x?.handsetCosts?.price)}})]},`discount-${C}-${w}-${c}-${i}`)),f.jsx(Qt,{label:n("detailsModal.devicePrice"),price:me(i),classNames:{container:P(x?.oneTimeFee?.container),label:P("pl-4",x?.oneTimeFee?.label),price:P(x?.oneTimeFee?.price)}}),f.jsx(Ao,{orientation:"horizontal",className:P("my-3",x?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalDeviceDiscount"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:x?.totalDiscount})]}),f.jsx("div",{className:P("text-xs text-foreground-500 mt-6",t?.creditInfoLabel),children:n("creditInfo.creditBundleTitle")}),f.jsx(IV,{proposition:e,buildClickOutUrl:r})]})]})}function fl({label:e,originalPrice:t,currentPrice:r,hasMonthlyPrice:n=!0,classNames:o}){return f.jsxs("div",{className:P("flex justify-between",o?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",o?.label),children:e}),n&&f.jsxs("div",{className:P("flex items-center gap-2",o?.priceContainer),children:[t&&f.jsx("div",{className:P("line-through text-foreground-400",o?.originalPrice),children:me(t)}),f.jsx("div",{className:P(o?.currentPrice),children:me(r)})]})]})}function Tk({term:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex text-sm text-foreground-400 justify-between",r?.container),children:[f.jsxs("div",{className:P("flex items-center gap-1",r?.label),children:[f.jsx(ME,{size:16,className:P("stroke-foreground-400",r?.icon)}),Q.t("format.afterMonth",{count:e})]}),f.jsx("div",{className:P(r?.price),children:me(t)})]})}function MV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,planVariant:a,bundles:i,monthlyFees:l,price:u,handsetCreditMonthlyFee:c,baseMonthlyFee:d,lifetimeMonthlyFee:p,productVersion:h}=e,m=l[l.length-1].fee,b=d>m?d:m,v=i.filter(_=>!_.contentTypes?.includes("handset_service")),y=v.filter(_=>_.contentTypes?.includes("combi_deal")),x=l&&l[l.length-1].fee!==p,w=l?.reduce((_,N)=>_+N.term,0),C=c>0?d-c:y.length?b-(y[0].baseMonthlyFee||0):b,S=c>0?l[0].fee-c:l[0].fee,k=S!==void 0&&C!==S,D=k?C:void 0,$=k?S:C;return f.jsxs("div",{className:P(t?.base),children:[f.jsxs("div",{className:P("mb-8",t?.monthlySection),children:[f.jsxs("div",{className:P("mb-2",t?.monthlyFeesContainer),children:[f.jsxs("div",{className:P("text-lg font-bold flex justify-between",t?.monthlyPriceHeader?.container),children:[f.jsx("div",{className:P(t?.monthlyPriceHeader?.label),children:n("format.monthly")}),f.jsx("div",{className:P(t?.monthlyPriceHeader?.price),children:me(l[0].fee)})]}),l?.map((_,N)=>{if(N+1===l?.length)return null;const A=l?.slice(0,N+1).reduce((M,O)=>M+O.term,0);return f.jsx(Tk,{term:A,price:l[N+1]?.fee||0,classNames:t?.monthlyFeeTransition},_.term)}),x&&w&&p&&f.jsx(Tk,{term:w,price:p,classNames:t?.lifetimeFee})]}),f.jsx(fl,{label:f.jsxs(f.Fragment,{children:[s.name," ",a.contractType==="retention"?`${n("detailsModal.renewal").toLowerCase()} `:"",sl(a.contractTerm)]}),originalPrice:D,currentPrice:$,classNames:t?.providerContract}),v.map(_=>{const N=_.contentTypes?.includes("combi_deal"),A=N&&_.promotionMonthlyFee||_.baseMonthlyFee||0,M=!N&&_.promotionMonthlyFee!==_.baseMonthlyFee&&_.promotionMonthlyFee||void 0,O=M!==void 0&&A!==M,L=O?A:void 0,I=O?M:A,z=A!==0||M!==void 0&&M!==0;return f.jsx(fl,{label:_.displayName,originalPrice:L,currentPrice:I,hasMonthlyPrice:z,classNames:{container:P("text-sm text-foreground-400",t?.bundle?.container),label:P("pl-4",t?.bundle?.label),priceContainer:t?.bundle?.priceContainer,originalPrice:t?.bundle?.originalPrice,currentPrice:t?.bundle?.currentPrice}},_.displayName)}),c>0&&f.jsx(fl,{label:n("detailsModal.deviceBundle"),currentPrice:c,classNames:{container:P("mt-2",t?.handsetBundle?.container),label:t?.handsetBundle?.label,priceContainer:t?.handsetBundle?.priceContainer,currentPrice:t?.handsetBundle?.currentPrice}}),o==="smartphone"&&f.jsxs(f.Fragment,{children:[f.jsx(Ao,{orientation:"horizontal",className:P("my-4",t?.separator)}),f.jsxs("div",{className:P("text-lg font-bold flex justify-between mb-1",t?.oneTimeSection?.header?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.header?.label),children:n("format.oneTime")}),f.jsx("div",{className:P("flex items-center gap-2",t?.oneTimeSection?.header?.price),children:f.jsx("div",{children:me(u)})})]}),f.jsx(fl,{label:f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.productRow?.label),children:h?.fullName}),currentPrice:u,classNames:t?.oneTimeSection?.productRow})]})]}),f.jsx(NV,{proposition:e,classNames:t?.propositionOverview,buildClickOutUrl:r})]})}function Cr({title:e,rows:t,classNames:r}){return t.length===0?null:f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-semibold",r?.title),children:e}),f.jsxs(ll,{removeWrapper:!0,hideHeader:!0,isCompact:!0,"aria-label":e,classNames:{base:P(r?.table?.base),wrapper:P(r?.table?.wrapper),table:P("table-fixed",r?.table?.table),thead:P(r?.table?.thead),tbody:P(r?.table?.tbody),tr:P("border-b border-default-100",r?.table?.tr),th:P(r?.table?.th),td:P(r?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:"Label"}),f.jsx(Dt,{children:"Waarde"})]}),f.jsx(dl,{children:t.map(n=>f.jsxs(cl,{children:[f.jsx(_t,{children:n.label}),f.jsx(_t,{children:n.value})]},n.key))})]})]})}function OV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),o=e.bundles.filter(c=>c.isExtra),s=e.tags.find(c=>c.type==="internet"),a=e.productType==="fixed"?[{label:n("detailsModal.provider"),value:e.provider.name,key:"provider"},...e.provider.network?[{label:n("detailsModal.networkAdministrator"),value:e.provider.network.replace(/-netwerk/g,""),key:"networktype"}]:[],...s?[{label:n("detailsModal.networkType"),value:n(`fixedInternet.${s.slug}`,{defaultValue:s.label}),key:"networktype"}]:[]]:[{label:n("detailsModal.network"),value:`${e.provider.network?.replace(/-netwerk/g,"")} ${n("detailsModal.network").toLowerCase()}`,key:"network"},{label:n("detailsModal.networkCoverage"),value:e.provider.networkCoverage,key:"networktype"}],i=e.productType==="fixed"?[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"}]:[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"},{label:n("detailsModal.subscriptionType"),value:e.planVariant.name,key:"subscription-type"},{label:n("detailsModal.internet"),value:Xt(e.content.data,n("format.gigabyte")),key:"internet"},{label:n("detailsModal.calling"),value:Xt(e.content.minutes,n("format.minutes")),key:"calling"},{label:n("detailsModal.sms"),value:Xt(e.content.sms,n("format.sms")),key:"sms"},...o.length>0?[{label:n("detailsModal.extras"),value:o.map(c=>c.displayName).join(", "),key:"extras"}]:[]],l=e.productType==="fixed"?[]:[{label:n("detailsModal.networkGeneration"),value:A3(e.content.networkGeneration),key:"network-generation"},{label:n("detailsModal.downloadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedDown/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedDown/1e3," ",n("format.megabitPerSecond")]}),key:"download-speed"},{label:n("detailsModal.uploadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedUp/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedUp/1e3," ",n("format.megabitPerSecond")]}),key:"upload-speed"}],u=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{r(`/${e.provider.termsAndConditionsUrl}`).then(c=>window.open(c,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[n("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Cr,{title:n("detailsModal.network"),rows:a,classNames:t}),f.jsx(Cr,{title:e.productType==="fixed"?n("detailsModal.subscription"):n("detailsModal.bundle"),rows:i,classNames:t}),f.jsx(Cr,{title:n("detailsModal.bundleSpeed"),rows:l,classNames:t}),e.productType==="fixed"&&f.jsx(Cr,{title:n("detailsModal.termsAndConditions"),rows:u,classNames:t})]})}function jV({proposition:e,classNames:t,onChannelsClick:r,buildClickOutUrl:n}){const{t:o}=Oe(),{plan:s,content:a,bundles:i,provider:l,productType:u}=e,{sharedCredits:c}=a,d=Xt(a.dataEu,o("format.gigabyte")),p=Xt(a.minutesEu,o("format.minutes")),h=Xt(a.minutesToEu,o("format.minutes")),m=["data","minutes"].every(w=>c?.includes(w))?"/":"+";if(u==="fixed"){const w=[{label:o("detailsModal.maximumDownloadSpeed"),value:`${a.dataSpeedDown/1e3} ${o("format.megabitPerSecond")}`,key:"download-speed"},{label:o("detailsModal.maximumUploadSpeed"),value:`${a.dataSpeedUp/1e3} ${o("format.megabitPerSecond")}`,key:"upload-speed"}],C=i.filter(S=>S.contentTypes?.includes("tv"))?.length>0?[{label:o("detailsModal.numberOfChannels"),value:f.jsxs("button",{type:"button",onClick:r,className:P("text-primary-600 hover:underline cursor-pointer",t?.link),children:[a.channels.length," (",a.hdChannels.length," HD)"]}),key:"channels"},{label:o("detailsModal.numberOfReceivers"),value:a.receivers,key:"receivers"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Cr,{title:o("detailsModal.internet"),rows:w,classNames:t}),C.length>0&&f.jsx(Cr,{title:o("detailsModal.television"),rows:C,classNames:t})]})}const b=[{label:o("detailsModal.dataExceedance"),value:s.bundleExceedanceDataLimitReached,key:"data-exceedance"},{label:o("detailsModal.bundleExceedanceRates"),value:s.bundleExceedanceRate,key:"exceedance-rate"},{label:o("detailsModal.bundleExceedanceRateCeiling"),value:s.bundleExceedanceRateCeiling,key:"rate-ceiling"},{label:o("detailsModal.bundleExceedanceWarning"),value:s.bundleExceedanceWarning,key:"warning"},{label:o("detailsModal.bundleExceedanceMinutesRounding"),value:s.bundleExceedanceMinutesRounding,key:"minutes-rounding"}],v=[{label:o("detailsModal.upgradeBundle"),value:s.bundleUpgrade,key:"upgrade"},{label:o("detailsModal.downgradeBundle"),value:s.bundleDowngrade,key:"downgrade"}],y=[{label:o("detailsModal.insideEu"),value:a.minutesEu>0?`${d} ${m} ${p}`:d,key:"in-eu"},{label:o("detailsModal.outsideEu"),value:f.jsxs("button",{type:"button",onClick:()=>{n(`/tariefinformatie/${l.slug}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.moreInformation")," ",f.jsx(ts,{size:16})]}),key:"out-eu"},...a.minutesToEu>0?[{label:o("detailsModal.minutesToEu"),value:h,key:"to-eu"}]:[]],x=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{n(`/${e.provider.termsAndConditionsUrl}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Cr,{title:o("detailsModal.outsideBundle"),rows:b,classNames:t}),f.jsx(Cr,{title:o("detailsModal.subscriptionFlexibility"),rows:v,classNames:t}),f.jsx(Cr,{title:o("detailsModal.abroad"),rows:y,classNames:t}),f.jsx(Cr,{title:o("detailsModal.termsAndConditions"),rows:x,classNames:t})]})}function FV(e){const t=[e.provider.name,e.plan?.name];return e.planVariant.contractTerm===24?t.push(`2 ${Q.t("format.year",{count:2})}`):e.planVariant.contractTerm===12&&t.push(`1 ${Q.t("format.year")}`),e.planVariant.contractType==="retention"&&t.push(Q.t("detailsModal.renewal")),Array.from(new Set(t)).join(" ").trim()}function pl({isOpen:e,onOpenChange:t,proposition:r,defaultTab:n="general",buildClickOutUrl:o}){const{t:s}=Oe(),[a,i]=Co(),{results:{detailsModal:l}={}}=nt(),{popoverProps:u}=on(),[c,d]=g.useState(n);if(!r)return null;const p=Xt(r.content.data,s("format.gigabyte")),{sharedCredits:h}=r.content,m=["data","minutes"].every(v=>h?.includes(v))?"/":"+",b=r.tags.find(v=>v.type==="internet");return f.jsx($o,{isOpen:e,onOpenChange:t,placement:"bottom-center",scrollBehavior:"inside",size:"lg",portalContainer:u.portalContainer,classNames:{backdrop:P(l?.modal?.backdrop),wrapper:P(l?.modal?.wrapper),base:P(l?.modal?.base),header:P(l?.modal?.header),body:P(l?.modal?.body),footer:P(l?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",l?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:f.jsx("span",{children:s("detailsModal.title")})}),f.jsxs(So,{onPointerDown:v=>v.stopPropagation(),children:[f.jsxs("div",{className:P("flex items-center gap-2",l?.propositionInfo?.container),children:[r.productType==="smartphone"&&r.productVersion?f.jsx(Jt,{src:a(r.productVersion.media.main?.url||"",64,64),srcSet:i(r.productVersion.media.main?.url||"",64,64),alt:r.productVersion.media.main?.altText||"",width:64,height:64,className:P(l?.propositionInfo?.image)}):f.jsx(Jt,{src:a(r.provider.imageUrl,48,24),srcSet:i(r.provider.imageUrl,48,24),alt:r.provider.name,width:48,height:24,className:P(l?.propositionInfo?.image)}),f.jsxs("div",{className:P("text-sm",l?.propositionInfo?.content),children:[r.productType!=="smartphone"&&f.jsx("div",{className:P("font-semibold",l?.propositionInfo?.name),children:FV(r)}),r.productType==="fixed"?f.jsxs("div",{className:P(l?.propositionInfo?.details),children:[r.content.dataSpeedDown/1e3," ",s("format.megabitPerSecond")," ",b?s(`fixedInternet.${b.slug}`,{defaultValue:b.label}):""]}):f.jsx("div",{className:P(l?.propositionInfo?.details),children:r.content.minutes>0?f.jsxs("div",{children:[f.jsx("span",{children:p})," ",m," ",f.jsxs("span",{children:[Oh(r.content.minutes)," ",s("format.minutes_short")]})]}):f.jsx("div",{children:p})}),r.productType==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("font-semibold",l?.propositionInfo?.productName),children:[r.productVersion?.product.fullName," "]}),f.jsx("div",{className:P("text-xs",l?.propositionInfo?.productProperties),children:r.productVersion?.distinctProperties.map(v=>v.option.label).join(", ")})]})]})]}),f.jsxs(u1,{onPointerDown:v=>v.stopPropagation(),selectedKey:c,radius:"full",color:"primary","aria-label":s("detailsModal.chooseTab"),classNames:{base:P(l?.tabs?.base),tabList:P("relative",l?.tabs?.tabList),tab:P(l?.tabs?.tab),panel:P("h-[60vh]",l?.tabs?.panel),cursor:P(l?.tabs?.cursor)},children:[f.jsx(Io,{title:s("detailsModal.general"),onClick:()=>d("general"),children:f.jsx(OV,{proposition:r,classNames:l?.general,buildClickOutUrl:o})},"general"),f.jsx(Io,{title:r.productType==="fixed"?s("detailsModal.bundles"):s("detailsModal.conditions"),onClick:()=>d("conditions"),children:f.jsx(jV,{proposition:r,classNames:l?.terms,onChannelsClick:()=>d("channels"),buildClickOutUrl:o})},"conditions"),r.productType==="fixed"&&f.jsx(Io,{title:s("detailsModal.channels"),onClick:()=>d("channels"),children:f.jsx(WL,{channels:r.content.channels,hdChannels:r.content.hdChannels,classNames:l?.channels})},"channels"),f.jsx(Io,{title:s("detailsModal.costs"),onClick:()=>d("costs"),children:f.jsx(MV,{proposition:r,classNames:l?.costOverview,buildClickOutUrl:o})},"costs")]})]})]})})}function Dk({label:e,classNames:t}){return f.jsx("div",{className:P("px-4",t?.wrapper),children:f.jsx("div",{className:P("w-full text-background text-xs font-semibold text-center px-4 rounded-t-xl h-6 flex items-center justify-center shadow-small",{"bg-primary":e.color==="primary","bg-secondary":e.color==="secondary","bg-default":e.color==="default","bg-success":e.color==="success","bg-warning":e.color==="warning","bg-danger":e.color==="danger"},t?.text),children:e.displayName})})}function BV({productStockStatus:e,classNames:t}){const{t:r}=Oe(),n=r("propositionCard.availableStockStatus"),o=r("propositionCard.backorderedStockStatus"),s=r("propositionCard.preOrderStockStatus"),a=g.useMemo(()=>{switch(e){case"in_stock":return n;case"backordered":return o;case"preorder":return s;default:return null}},[e,n,o,s]);return a?f.jsxs("div",{className:P("text-center flex items-center justify-center gap-1.5",t?.wrapper),children:[f.jsx("div",{className:P("size-2 rounded-full",{"bg-success":e==="in_stock"||e==="preorder","bg-warning":e==="backordered"},t?.icon)}),f.jsx("span",{className:P("text-sm text-foreground",t?.text),children:a})]}):null}function _k({hasProduct:e,productImageUrl:t,productImageAlt:r,productStockStatus:n,propositionImageUrl:o,propositionImageAlt:s,horizontal:a,classNames:i}){const[l,u]=Co();if(e){const c=a?140:200;return f.jsxs("div",{className:P("flex flex-col gap-2 items-center w-full",i?.phoneImage?.wrapper),children:[t&&r&&f.jsx(Jt,{alt:r,height:c,src:l(t,c,c),srcSet:u(t,c,c),width:c,classNames:{wrapper:P("mx-auto flex shrink-0",i?.phoneImage?.imageWrapper),img:P("aspect-square drop-shadow-lg",i?.phoneImage?.image)}}),f.jsx(BV,{productStockStatus:n,classNames:i?.phoneImage?.stockIndicator})]})}return f.jsx(Jt,{alt:s,height:70,src:l(o,140,70),srcSet:u(o,140,70),width:140,classNames:{wrapper:P("mx-auto flex shrink-0",i?.providerImage?.imageWrapper),img:P("aspect-2/1",i?.providerImage?.image)}})}function Ik({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,tcoPerMonth:n,onInfoClick:o,classNames:s,horizontal:a}){const{t:i}=Oe(),[l,u]=t.split(",");return f.jsxs("div",{className:P("flex flex-col",a&&"items-end text-right",s?.wrapper),children:[e&&f.jsx("div",{className:P("text-sm text-foreground-500 whitespace-nowrap",s?.promotionText),children:e}),f.jsxs("div",{className:P("flex items-end gap-1",s?.monthlyFeeWrapper),children:[f.jsxs("div",{className:P("flex items-start font-extrabold -tracking-[1px] text-foreground h-8 text-[32px] leading-8",s?.monthlyFeeValue),children:[f.jsx("span",{children:l}),f.jsx("span",{className:"font-bold mt-0.5 ml-[3px] text-[22px] leading-8",children:","}),f.jsx("span",{className:"font-bold -mt-[3px] -ml-[3px] text-lg leading-8",children:u})]}),f.jsxs("div",{className:P("text-sm text-foreground leading-none",s?.monthlyFeeLabel),children:["/ ",i("format.month")]})]}),r&&f.jsxs("div",{className:P("text-sm font-semibold text-foreground",s?.oneTimeFee),children:["+ ",f.jsx("span",{children:r})," ",i("propositionCard.oneTimeFee")]}),n&&f.jsxs("div",{className:P("flex items-center gap-1 text-sm mt-1",s?.averagePriceWrapper),children:[f.jsx(_g,{size:16,className:P("text-primary-600",s?.averagePriceIcon)}),f.jsxs("button",{type:"button",className:P("underline underline-offset-4 text-primary-600 cursor-pointer",s?.averagePriceValue),onPointerDown:c=>{c.preventDefault(),c.stopPropagation()},onClick:c=>{c.preventDefault(),c.stopPropagation(),o("costs")},onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),o("costs"))},tabIndex:0,children:[i("format.average_short")," ",n," / ",i("format.month")]})]})]})}function Ak({promotions:e,urgentText:t,classNames:r}){return f.jsxs("div",{className:P("flex flex-col gap-0",r?.base),children:[t&&f.jsx(f2,{classNames:{base:P("mb-1 border-1 text-xs",r?.urgentChip?.base),content:P("font-semibold",r?.urgentChip?.content)},color:"warning",size:"sm",variant:"bordered",children:f.jsx("span",{children:t})}),e.map(n=>f.jsxs("div",{className:P("flex flex-row items-center gap-1 text-sm @xs:text-base leading-none",r?.item),children:[f.jsx(LE,{size:20,className:P("shrink-0 text-success-600",r?.promotionIcon)}),f.jsx("span",{children:n})]},n))]})}function zV({slug:e,size:t=16,className:r}){switch(e){case"contract-term":return f.jsx(VE,{size:t,className:r});case"data-speed-down":return f.jsx(UE,{size:t,className:r});case"provider-network":return f.jsx(FE,{size:t,className:r});case"data-eu":return f.jsx(GE,{size:t,className:r});case"internet-speed":return f.jsx(OE,{size:t,className:r});case"channels":return f.jsx(RE,{size:t,className:r});case"tv-receiver":return f.jsx(KE,{size:t,className:r});default:return null}}function Nk({productTitle:e,propositionTitle:t,propositionSubtitle:r,imageUrl:n,imageAlt:o,hasProduct:s,horizontal:a,propositionSpecifications:i,onInfoClick:l,classNames:u}){const[c,d]=Co(),p=70,h=35;return f.jsxs("div",{className:P("flex flex-col",u?.base),children:[f.jsxs("div",{className:P("flex justify-between gap-3 w-full",a&&"w-fit",u?.titleWrapper),children:[f.jsxs("div",{children:[s&&e&&f.jsx("div",{className:P("text-base leading-tight font-bold @xs:text-xl",u?.phone?.title),children:e}),s&&f.jsxs("div",{className:P("text-sm leading-tight @xs:text-base",u?.phone?.subtitle),children:[t," • ",r]}),!s&&f.jsxs("div",{className:P("flex flex-row items-center gap-1 leading-tight",u?.proposition?.wrapper),children:[f.jsx("span",{className:P("text-xl font-extrabold text-foreground",u?.proposition?.title),children:t}),f.jsxs("span",{className:P(u?.proposition?.subtitle),children:["• ",r]})]})]}),s&&n&&o&&f.jsx(Jt,{alt:o,height:h,src:c(n,p,h),srcSet:d(n,p,h),width:p,classNames:{wrapper:P("flex shrink-0",u?.phone?.providerImageWrapper),img:P("aspect-2/1",u?.phone?.providerImage)}})]}),!s&&i&&f.jsx("div",{className:P("flex flex-wrap items-center gap-x-2 gap-y-1 text-foreground-500",u?.proposition?.specifications?.wrapper),children:i.map(m=>f.jsxs("button",{type:"button",className:P("text-sm flex items-center gap-1 cursor-pointer hover:underline whitespace-nowrap",u?.proposition?.specifications?.item),onPointerDown:b=>{b.preventDefault(),b.stopPropagation()},onClick:b=>{b.preventDefault(),b.stopPropagation(),l?.(m.slug==="channels"?"channels":"general")},children:[f.jsx(zV,{slug:m.slug,className:P(u?.proposition?.specifications?.icon)}),f.jsx("span",{children:m.title})]},m.title))})]})}function Mk({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Nd,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container flex flex-row",w?.card),children:[f.jsx("div",{className:P("p-6 w-fit",w?.horizontalCard?.header),children:f.jsx(_k,{horizontal:!0,hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsx(Ao,{orientation:"vertical",className:P(w?.horizontalCard?.divider)}),f.jsxs("div",{className:P("p-6 flex flex-col gap-3 flex-1 w-fit",w?.horizontalCard?.body),children:[f.jsx(Nk,{horizontal:!0,hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Ak,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsxs("div",{className:P("p-6 pl-0 flex flex-col items-end gap-4 shrink-0 self-end",w?.horizontalCard?.footer),children:[f.jsx(Ik,{horizontal:!0,monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing}),f.jsx(Ht,{className:P("font-medium gap-1 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function LV({label:e,...t}){const{results:{propositionCard:r}={}}=nt();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:{wrapper:r?.label?.wrapper,text:P("w-max",r?.label?.text)}}),f.jsx(Mk,{classNames:r,...t})]}):f.jsx(Mk,{classNames:r,...t})}function Ok({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Nd,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container h-full",w?.card),children:[f.jsx(f7,{className:P("p-3 pt-6 @xs:px-6",w?.verticalCard?.header),children:f.jsx(_k,{hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsxs(C1,{className:P("py-0 px-3 @xs:px-6 gap-2 overflow-hidden",w?.verticalCard?.body),children:[f.jsx(Nk,{hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Ak,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsx(Ao,{className:P("mt-3",w?.verticalCard?.divider)}),f.jsxs(d7,{className:P("flex-col justify-between items-start text-start p-3 @xs:p-6 @xs:pt-3",w?.verticalCard?.footer),children:[f.jsx("div",{className:"w-full",children:f.jsx(Ik,{monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing})}),f.jsx(Ht,{className:P("font-medium gap-1 mt-4 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",fullWidth:!0,disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function VV({label:e,...t}){const{results:{propositionCard:r}={}}=nt();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:r?.label}),f.jsx(Ok,{classNames:r,...t})]}):f.jsx(Ok,{classNames:r,...t})}function zn({horizontal:e,...t}){return e?f.jsx(LV,{...t}):f.jsx(VV,{...t})}function Hh(e,t){if(!t)return e;const r=Math.floor(parseFloat(t));return Number.isNaN(r)||r<=20?e:[...e,`€ ${r},- ${Q.t("propositionCard.deviceDiscount")}`]}function pn(e,t=500,r=7){if(!e)return!1;const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function RV(e){return e.sort((t,r)=>{if(pn(t)&&pn(r)){const n=new Date(t.validUntil),o=new Date(r.validUntil);return n.getTime()===o.getTime()?r.weight-t.weight:n.getTime()-o.getTime()}return pn(t)&&!pn(r)?-1:pn(r)&&!pn(t)?1:r.weight-t.weight})}function Ln(e){const t=RV(e.specialPromotions.filter(l=>l.shortDescription&&!l.shortDescription.includes("toestelkorting")&&l.weight>200)),r=pn(t[0])?t[0]?.shortDescription:null,n=r?t.slice(1):t,o=r?[r]:[],s=n.map(l=>l.shortDescription).filter(l=>!!l),a=e.bundles.flatMap(l=>l.usps);if(e.productType!=="fixed")return[...o,...a,...s];const i=e.bundles.filter(l=>l.contentTypes?.includes("tv")||l.contentTypes?.includes("phone")).map(l=>l.displayName).filter(l=>!!l);return[...o,...i,...a,...s]}function Vn(e){const t=e.filter(n=>pn(n));if(t.length===0)return;const r=Math.min(...t.map(n=>{const o=new Date,s=new Date(n.validUntil);return Math.ceil((s.getTime()-o.getTime())/(1440*60*1e3))}))+1;return Q.t("propositionCard.urgentText",{days:r,count:r})}function hl({isReachingEnd:e,loadMore:t,isValidating:r,className:n}){const{t:o}=Oe();return e?null:f.jsx(Ht,{className:P("font-medium mx-auto text-primary-600 border-primary-600 min-w-[234px] rounded-full",n),onPress:t,color:"primary",variant:"flat",size:"md",disableAnimation:!0,disableRipple:!0,isLoading:r,disabled:r,endContent:!r&&f.jsx(BE,{size:20}),children:o(r?"productResults.loadMore":"productResults.showMoreOffers")})}function KV({size:e,height:t,width:r,className:n,style:o,...s}){return f.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...s,children:[f.jsx("title",{children:"Search Loading Icon"}),f.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),f.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),f.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),f.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),f.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function WV({address:e}){const{t}=Oe(),{results:{postcodeCheckLoading:r}={}}=nt();return f.jsxs("div",{className:P("flex flex-row items-center justify-center md:gap-6 rounded-large bg-white p-4 shadow-md mb-4",r?.base),children:[f.jsx(KV,{className:P("animate-pulse shrink-0 size-20 md:size-[106px]",r?.icon)}),f.jsxs("div",{className:P("max-w-[215px] text-center flex flex-col items-center gap-2",r?.textWrapper),children:[f.jsx("div",{className:P("text-base md:text-xl font-bold leading-none text-foreground",r?.heading),children:t("postcodeCheck.loading")}),f.jsxs("div",{className:P("text-xs md:text-sm text-foreground leading-none",r?.addressText),children:[e.street," ",VL(e.number,e.numberAddon),", ",e.city]})]})]})}function ml(){const{t:e}=Oe(),{results:{resultsNotFound:t}={}}=nt();return f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-bold text-foreground mb-1 lg:hidden",t?.filterChips?.title),children:e("filters.chosenFilters")}),f.jsx(p2,{className:"mb-6 lg:hidden"}),f.jsx(lh,{color:"warning",variant:"faded",title:e("productResults.noResultsTitle"),description:e("productResults.noResultsDescription"),hideIconWrapper:!0,classNames:{base:P(t?.alert?.base),title:P(t?.alert?.title),description:P(t?.alert?.description),mainWrapper:P(t?.alert?.mainWrapper),closeButton:P(t?.alert?.closeButton),iconWrapper:P(t?.alert?.iconWrapper),alertIcon:P(t?.alert?.alertIcon)}})]})}function Rn({count:e,horizontal:t,large:r}){const{results:{skeletonCard:n}={}}=nt();return f.jsx(f.Fragment,{children:Array.from({length:e}).map((o,s)=>f.jsx(Id,{className:P("shadow-small rounded-large",r?"h-140":"h-100",t&&(r?"h-54":"h-46"),n)},s))})}const UV=void 0,qh=Object,jk=e=>e===UV,HV=e=>typeof e=="function",gl=new WeakMap,qV=e=>qh.prototype.toString.call(e),Gh=(e,t)=>e===`[object ${t}]`;let GV=0;const Zh=e=>{const t=typeof e,r=qV(e),n=Gh(r,"Date"),o=Gh(r,"RegExp"),s=Gh(r,"Object");let a,i;if(qh(e)===e&&!n&&!o){if(a=gl.get(e),a)return a;if(a=++GV+"~",gl.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=Zh(e[i])+",";gl.set(e,a)}if(s){a="#";const l=qh.keys(e).sort();for(;!jk(i=l.pop());)jk(e[i])||(a+=i+":"+Zh(e[i])+",");gl.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},ZV=e=>{if(HV(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Zh(e):"",[e,t]},YV=e=>ZV(e?e(0,null):null)[0],Yh=Promise.resolve(),bl=fx(ad,e=>(t,r,n)=>{const o=g.useRef(!1),{cache:s,initialSize:a=1,revalidateAll:i=!1,persistSize:l=!1,revalidateFirstPage:u=!0,revalidateOnMount:c=!1,parallel:d=!1}=n,[,,,p]=br.get(nd);let h;try{h=YV(t),h&&(h=ux+h)}catch{}const[m,b,v]=an(s,h),y=g.useCallback(()=>Te(m()._l)?a:m()._l,[s,h,a]);ma.useSyncExternalStore(g.useCallback($=>h?v(h,()=>{$()}):()=>{},[s,h]),y,y);const x=g.useCallback(()=>{const $=m()._l;return Te($)?a:$},[h,a]),w=g.useRef(x());vi(()=>{if(!o.current){o.current=!0;return}h&&b({_l:l?w.current:x()})},[h,s]);const C=c&&!o.current,S=e(h,async $=>{const _=m()._i,N=m()._r;b({_r:ct});const A=[],M=x(),[O]=an(s,$),L=O().data,I=[];let z=null;for(let F=0;F<M;++F){const[B,U]=Es(t(F,d?null:z));if(!B)break;const[E,j]=an(s,B);let T=E().data;const V=i||_||Te(T)||u&&!F&&!Te(L)||C||L&&!Te(L[F])&&!n.compare(L[F],T);if(r&&(typeof N=="function"?N(T,U):V)){const K=async()=>{if(!(B in p))T=await r(U);else{const Z=p[B];delete p[B],T=await Z}j({data:T,_k:U}),A[F]=T};d?I.push(K):await K()}else A[F]=T;d||(z=T)}return d&&await Promise.all(I.map(F=>F())),b({_i:ct}),A},n),k=g.useCallback(function($,_){const N=typeof _=="boolean"?{revalidate:_}:_||{},A=N.revalidate!==!1;return h?(A&&(Te($)?b({_i:!0,_r:N.revalidate}):b({_i:!1,_r:N.revalidate})),arguments.length?S.mutate($,{...N,revalidate:A}):S.mutate()):Yh},[h,s]),D=g.useCallback($=>{if(!h)return Yh;const[,_]=an(s,h);let N;if(ar($)?N=$(x()):typeof $=="number"&&(N=$),typeof N!="number")return Yh;_({_l:N}),w.current=N;const A=[],[M]=an(s,h);let O=null;for(let L=0;L<N;++L){const[I]=Es(t(L,O)),[z]=an(s,I),F=I?z().data:ct;if(Te(F))return k(M().data);A.push(F),O=F}return k(A)},[h,s,k,x]);return{size:x(),setSize:D,mutate:k,get data(){return S.data},get error(){return S.error},get isValidating(){return S.isValidating},get isLoading(){return S.isLoading}}});function vl(e,t,r,n,o,s,a){if(s&&!s.search?.records?.length)return null;const i=o*n,l={...t,limit:n,offset:i};return[e,{query:l,modificationBlocks:r,...a}]}function JV({query:e,modificationBlocks:t,address:r,pageSize:n}){function o(s,a){return vl(H8,e,t,n,s,a,r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:void 0)}return bl(o,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function XV({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(q8,e,t,r,o,s)}return bl(n,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function QV({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(G8,e,t,r,o,s)}return bl(n,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function eR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(Z8,e,t,r,o,s)}return bl(n,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function yl({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o,distinctProperties:s}){const a=xL(n,o),i=Q8({filterOptions:e,filterValues:t,limit:r,currentProvider:a,distinctProperties:s});switch(n){case"sim-only-proposition":{const l=vr(t,"providers");i.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":"provider");const u=XV({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}case"fixed-proposition":{i.groupBy("provider_data_speed_down");const l=JV({query:i.serialize(),modificationBlocks:nl(n,o),address:o.address,pageSize:r}),{data:u=[],error:c,...d}=l;return{...d,data:u[0],dataArray:u,error:c}}case"smartphone-proposition":{const l=vr(t,"sorteren"),u=vr(t,"providers");i.groupBy(Array.isArray(u)&&u.length===1?"data_and_speed":"provider"),l==="relevantie"&&i.sort("top");const c=QV({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:d=[],error:p,...h}=c;return{...h,data:d[0],dataArray:d,error:p}}case"smartphone-proposition-extended":{const l=vr(t,"sorteren");i.groupBy(l==="relevantie"?"product_provider_slug":"product_slug");const u=eR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}default:return{data:void 0,dataArray:[],isLoading:!1,isValidating:!1,error:void 0,mutate:async()=>{},size:0,setSize:()=>{}}}}function tR(e,t,r,n){const{currentProviderSlug:o,currentFixedProviderScope:s,currentMobileProviders:a}=t,i=new URLSearchParams;if(o&&i.set("huidige-provider",o),s||a&&a.length>0){const c=[s?`${s}:1`:void 0,...a?a.map(d=>`${d.scope}:${d.value}`):[]].filter(Boolean).join(",");i.set("klantvoordeel",c)}r&&i.set("ppt",r);const l=e.startsWith("/")?e:`/${e}`,u=n?n(i).toString():i.toString();return u?`https://www.mobiel.nl${l}?${u}`:`https://www.mobiel.nl${l}`}function xl({addClickoutSearchParams:e}){const{profile:t}=zr();async function r(n){const o=await CL();return tR(n,t,o,e)}return{buildClickOutUrl:r}}function wl({lastPageLength:e,isValidating:t,size:r,setSize:n,activeFilters:o,profile:s,limit:a}){const i=g.useRef("");g.useEffect(()=>{const c=JSON.stringify({activeFilters:o,profile:s});i.current!==c&&i.current!==""&&n(1),i.current=c},[o,s,n]);const l=e===void 0||e===0||e<a;function u(){t||n(r+1)}return{isReachingEnd:l,loadMore:u}}function rR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=nt(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=yr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{data:v,dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,mutate:k,error:D}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:$,loadMore:_}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:n}),N=y.flatMap(I=>I.search.records),{polling:A,validating:M}=v&&"fetchInfo"in v?v.fetchInfo:{polling:!1,validating:!1};if(g.useEffect(()=>{if(!A)return;const I=setInterval(()=>k(),1e3);return()=>clearInterval(I)},[A,k]),Nr(()=>{c.address&&k()},[c.address?.postcode,c.address?.number,c.address?.numberAddon,k]),D)throw new Error(String(D));if(!A&&!w&&N.length===0)return f.jsx(ml,{});const{top:O,all:L}=x?{top:[],all:[]}:Fh({propositions:N,productCategory:e,labelColorConfig:r});return f.jsxs("div",{children:[A&&c.address&&f.jsx(WV,{address:c.address}),f.jsxs("div",{className:P((w||M)&&!A&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):O.map(I=>{if(c.currentFixedProviderScope?.includes(I.provider.slug))return null;const F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:I.label,horizontal:s==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},`top-${I.key}`)})})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):L.map(I=>{const z=c.currentFixedProviderScope?.includes(I.provider.slug),F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:z?{displayName:`Alleen voor nieuwe ${I.provider.name}-klanten`,color:"default"}:I.label,disabled:z,horizontal:o==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},I.key)}),f.jsx(hl,{isReachingEnd:$,loadMore:_,isValidating:w,className:u?.loadMoreButton})]})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:I=>!I&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function nR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=nt(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=yr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{dataArray:v,isLoading:y,isValidating:x,size:w,setSize:C,error:S}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:k,loadMore:D}=wl({lastPageLength:v[v.length-1]?.search.records.length,isValidating:x,size:w,setSize:C,activeFilters:p,profile:c,limit:n});if(S)throw new Error(String(S));const $=v.flatMap(A=>A.search.records);if(!x&&$.length===0)return f.jsx(ml,{});const{top:_,all:N}=y?{top:[],all:[]}:Fh({propositions:$,productCategory:e,labelColorConfig:r});return f.jsxs("div",{className:P(x&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:y?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):_.map(A=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:A}),b(`/aanbieding/${A.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:A,tab:M}),m({proposition:A,tab:M})},label:A.label,horizontal:s==="horizontal",monthlyFee:me(A.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(A.monthlyFees,A.baseMonthlyFee,A.lifetimeMonthlyFee),tcoPerMonth:me(A.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(A.content.data,i("format.gigabyte")),propositionSubtitle:Rs(A.content),propositionImageUrl:A.provider.imageUrl,propositionImageAlt:A.provider.name,propositionSpecifications:Bn(A),urgentText:Vn(A.specialPromotions),specialPromotions:Ln(A),modificationPromotions:A.modificationPromotions},`top-${A.key}`))})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[y?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):N.map(A=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:A}),b(`/aanbieding/${A.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:A,tab:M}),m({proposition:A,tab:M})},label:A.label,horizontal:o==="horizontal",monthlyFee:me(A.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(A.monthlyFees,A.baseMonthlyFee,A.lifetimeMonthlyFee),tcoPerMonth:me(A.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(A.content.data,i("format.gigabyte")),propositionSubtitle:Rs(A.content),propositionImageUrl:A.provider.imageUrl,propositionImageAlt:A.provider.name,propositionSpecifications:Bn(A),urgentText:Vn(A.specialPromotions),specialPromotions:Ln(A),modificationPromotions:A.modificationPromotions},A.key)),f.jsx(hl,{isReachingEnd:k,loadMore:D,isValidating:x,className:u?.loadMoreButton})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:A=>!A&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function Fk({propositions:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=nt();return e.length===0?null:f.jsxs("div",{className:P("mt-4",n?.base),children:[f.jsx("div",{className:P("text-sm font-medium mb-2 text-foreground-500",n?.title),children:r("creditInfo.exampleTitle")}),f.jsx(Fd,{orientation:"horizontal",hideScrollBar:!0,children:f.jsxs(ll,{"aria-label":r("creditInfo.exampleTitle"),removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:{base:P(n?.table?.base),wrapper:P(n?.table?.wrapper),table:P(n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent",n?.table?.th),td:P("first:pl-0 py-0 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.offer")}),f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")}),f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:e.map(o=>f.jsxs(cl,{children:[f.jsxs(_t,{children:[o.productVersion?.product.fullName," + ",o.provider.name]}),f.jsx(_t,{children:me(o.price+o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.price,{symbol:"€"})}),f.jsx(_t,{children:me(o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[o.planVariant.contractTerm," ",r("format.month",{count:o.planVariant.contractTerm})]}),f.jsx(_t,{children:"0%"})]},o.key))})]})}),f.jsx("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:f.jsx(xg,{i18nKey:"creditInfo.generalDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(o=>window.open(o,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-general-description-link")]})})]})}function oR({showTopPropositions:e,labelColorConfig:t,limit:r,propositionCardLayout:n,productCategory:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=nt(),{profile:c}=zr(),{filterOptions:d,activeFilters:p,distinctProperties:h}=yr(),[m,b]=g.useState(null),{buildClickOutUrl:v}=xl({addClickoutSearchParams:a}),{dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,error:k}=yl({filterOptions:d,activeFilters:p,limit:r,productCategory:o,profile:c,distinctProperties:h}),{isReachingEnd:D,loadMore:$}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:r});if(k)throw new Error(String(k));const _=y.flatMap(M=>M.search.records);if(!w&&_.length===0)return f.jsx(ml,{});const{top:N,all:A}=x?{top:[],all:[]}:Fh({propositions:_,productCategory:o,labelColorConfig:t});return f.jsxs("div",{className:P(w&&"opacity-50 pointer-events-none"),children:[e&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):N.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:s==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},`top-${M.key}`))})]}),e&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:r,horizontal:n==="horizontal"}):A.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:n==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},M.key)),f.jsx(hl,{isReachingEnd:D,loadMore:$,isValidating:w,className:u?.loadMoreButton}),f.jsx(Fk,{propositions:_.slice(0,3),buildClickOutUrl:v})]}),m&&f.jsx(pl,{isOpen:!!m,onOpenChange:M=>!M&&b(null),proposition:m.proposition,defaultTab:m.tab,buildClickOutUrl:v})]})}function sR({productCategory:e,limit:t,propositionCardLayout:r,addClickoutSearchParams:n}){const{t:o}=Oe(),{onAction:s}=Bo(),{results:a}=nt(),{profile:i}=zr(),{filterOptions:l,activeFilters:u}=yr(),[c,d]=g.useState(null),{buildClickOutUrl:p}=xl({addClickoutSearchParams:n}),{dataArray:h,isLoading:m,isValidating:b,size:v,setSize:y,error:x}=yl({filterOptions:l,activeFilters:u,limit:t,productCategory:e,profile:i}),{isReachingEnd:w,loadMore:C}=wl({lastPageLength:h[h.length-1]?.search.records.length,isValidating:b,size:v,setSize:y,activeFilters:u,profile:i,limit:t});if(x)throw new Error(String(x));const S=h.flatMap(k=>k.search.records);return!b&&S.length===0?f.jsx(ml,{}):f.jsxs("div",{className:P("gap-4 grid grid-cols-1",r==="vertical"&&"lg:grid-cols-3",b&&"opacity-50 pointer-events-none",a?.allPropositionsGrid),children:[m?f.jsx(Rn,{count:t,horizontal:r==="horizontal",large:!0}):S.map(k=>f.jsx(zn,{onClick:()=>{s({type:"deal_selected",proposition:k}),p(`/aanbieding/${k.key}`).then(D=>window.open(D,"_blank"))},onInfoClick:D=>{s({type:"details_viewed",proposition:k,tab:D}),d({proposition:k,tab:D})},horizontal:r==="horizontal",monthlyFee:me(k.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(k.monthlyFees,k.baseMonthlyFee,k.lifetimeMonthlyFee),tcoPerMonth:me(k.tcoPerMonth,{dashed:!0}),productPrice:me(k.price,{dashed:!0}),productImageAlt:k.productVersion?.media.main?.altText||void 0,productImageUrl:k.productVersion?.media.main?.url||void 0,productStockStatus:k.productVersion?.stock.status,productTitle:`${k.productVersion?.product.brand.name} ${k.productVersion?.product.name}`,propositionTitle:Xt(k.content.data,o("format.gigabyte")),propositionSubtitle:Rs(k.content),propositionImageUrl:k.provider.imageUrl,propositionImageAlt:k.provider.name,propositionSpecifications:Bn(k),urgentText:Vn(k.specialPromotions),specialPromotions:Hh(Ln(k),Mh(k)),modificationPromotions:k.modificationPromotions},k.key)),f.jsxs("div",{className:"flex flex-col gap-2 col-span-full mt-4",children:[f.jsx(hl,{isReachingEnd:w,loadMore:C,isValidating:b,className:a?.loadMoreButton}),f.jsx(Fk,{propositions:S.slice(0,3),buildClickOutUrl:p})]}),c&&f.jsx(pl,{isOpen:!!c,onOpenChange:k=>!k&&d(null),proposition:c.proposition,defaultTab:c.tab,buildClickOutUrl:p})]})}function aR({...e}){const{width:t}=Dg(),{getActiveFilterValue:r}=yr(),n=t<768,o=t>=1024;switch(e.productCategory){case"fixed-proposition":return f.jsx(rR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"smartphone-proposition":return r("telefoons").length===0?f.jsx(sR,{...e,productCategory:"smartphone-proposition-extended",propositionCardLayout:n||o?"vertical":"horizontal"}):f.jsx(oR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"sim-only-proposition":return f.jsx(nR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});default:return null}}function iR({productCategory:e,labelColorConfig:t={},limit:r=12,showTopPropositions:n=!1,addClickoutSearchParams:o}){const{base:s}=nt(),{distinctProperties:a,setDistinctProperties:i,handleFilterChange:l,getActiveFilterValue:u}=yr(),{width:c}=Dg(),d=c>=1024,[p]=e==="smartphone-proposition"?u("telefoons"):[];return f.jsxs("div",{className:P("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",s),children:[f.jsxs("div",{className:"flex flex-col gap-4 empty:hidden",children:[e==="smartphone-proposition"&&f.jsx(D8,{productSlug:p,selectedDistinctProperties:a,onChange:(h,m)=>{l({slug:"telefoons",value:h}),p||l({slug:"sorteren",value:"relevantie"}),i(m)}}),d&&f.jsxs(f.Fragment,{children:[f.jsx(I3,{productCategory:e}),f.jsx(D2,{})]})]}),f.jsxs("div",{className:"col-span-1 lg:col-span-3 space-y-4",children:[f.jsxs("div",{className:"flex flex-row-reverse justify-between items-center gap-2",children:[f.jsx(LL,{}),d?f.jsx(p2,{}):f.jsx(rO,{children:f.jsx(I3,{productCategory:e})})]}),f.jsx(aR,{productCategory:e,addClickoutSearchParams:o,showTopPropositions:u("providers").length!==1&&["relevantie","top"].includes(u("sorteren")[0])&&n,labelColorConfig:t,limit:r})]})]})}function lR({classNames:e,initialSelectedFilters:t,initialProfile:r,onProfileChange:n,onError:o,onAction:s,...a}){return f.jsxs(N8,{onError:o,children:[f.jsx(I8,{classNames:e,children:f.jsx(O8,{onAction:s,children:f.jsx(PL,{initialProfile:r,onProfileChange:n,children:f.jsx(L8,{initialSelectedFilters:t,productCategory:a.productCategory,children:f.jsx(GO,{children:f.jsx(iR,{...a})})})})})}),f.jsx($L,{})]})}var uR=XD;const Cl=Object.freeze(Object.defineProperty({__proto__:null,default:uR},Symbol.toStringTag,{value:"Module"}));Sr.ElementsRoot=DE,Sr.ProductResults=lR,Object.defineProperty(Sr,Symbol.toStringTag,{value:"Module"})}));
|
|
932
|
+
`;function Nh(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}function FL(e,t,r,n="",o=!1){const[s,a]=g.useState(o),i=Nh(t,500),l=Nh(r,500),u=Nh(n,500),{data:c,isValidating:d,error:p}=ad(i&&l?[jL,{postcode:i,number:parseInt(l,10),numberAddon:u||""}]:null,qt,{revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1}),[h,m]=g.useState(null),b=g.useRef(e);return g.useEffect(()=>{b.current=e},[e]),g.useEffect(()=>{d&&m(null)},[d]),Nr(()=>{if(!(d||!i||!l)){if(p?.response?.errors?.length){if(p.response.errors[0]?.message==="postnl_api_error"){m(Q.t("postcodeCheck.invalidAddressError"));return}m(Q.t("postcodeCheck.invalidAddressError"));return}if(c?.postcode?.address){b.current(c.postcode.address),a(!1),m(null);return}!d&&i&&l&&!p&&!c?.postcode?.address&&m(Q.t("postcodeCheck.invalidAddressError"))}},[c,p,d,i,l]),{manual:s,isLoading:d&&!!i&&!!l,error:h}}function BL(e){const t=e.replace(/[^0-9a-zA-Z]/g,"").toUpperCase();let r="",n="";for(const o of t)/\d/.test(o)&&r.length<4?r+=o:/[A-Z]/.test(o)&&r.length===4&&n.length<2&&(n+=o);return r+n}function zL(){const{t:e}=Oe(),{postcodeCheckModal:t}=Ye(),{profile:r,setProfile:n}=zr(),{popoverProps:o}=on(),[s]=Co(),{isOpen:a,setModal:i}=Wi("postcode-check"),[l,u]=g.useState(r.address?.postcode||""),[c,d]=g.useState(r.address?.number||""),[p,h]=g.useState(r.address?.numberAddon||""),[m,b]=g.useState(r.address?.street||""),[v,y]=g.useState(r.address?.city||""),[x,w]=g.useState(!1),C=g.useRef(!!(r.address?.street&&r.address?.city)),S=Ah("fixed"),k=g.useCallback(O=>{O.street!==void 0&&b(O.street),O.city!==void 0&&y(O.city)},[]);Nr(()=>{const O=r.address;u(O?.postcode||""),d(O?.number||""),h(O?.numberAddon||""),b(O?.street||""),y(O?.city||""),C.current=!!(O?.street&&O?.city)},[r.address]);const{manual:D,error:$}=FL(k,l,c,p,C.current);Nr(()=>{!D&&(!l||!c)&&(b(""),y(""))},[l,c,D]);const _=g.useMemo(()=>E3(S.fixedBlocks,"fixed"),[S.fixedBlocks.length]),N={inputWrapper:P("border-small",t?.form?.input?.inputWrapper),input:P("absolute bottom-1.5",t?.form?.input?.input),label:P("top-1.5",t?.form?.input?.label)},A=g.useCallback(O=>{O.preventDefault();const L=new FormData(O.target),I={...Object.fromEntries(L.entries()),street:m,city:v},{success:z,data:F}=S3.safeParse(I);z&&(Ih({address:F}),n({address:F}),i(null))},[m,v,n,i]),M=g.useCallback(({slug:O,name:L})=>O.startsWith("other")||L.toLowerCase().includes("internet")?L:`${L} Internet`,[]);return f.jsx($o,{isOpen:a,onOpenChange:O=>i(O?"postcode-check":null),placement:"bottom-center",size:"lg",scrollBehavior:"inside",portalContainer:o.portalContainer,classNames:{backdrop:P(t?.modal?.backdrop),wrapper:P(t?.modal?.wrapper),base:P(t?.modal?.base),header:P(t?.modal?.header),body:P(t?.modal?.body),footer:P(t?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",t?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:e("postcodeCheck.title")}),f.jsxs(So,{children:[f.jsxs("div",{className:P("flex flex-col items-center justify-center",t?.header?.container),children:[f.jsx("div",{className:P("rounded-full bg-primary-100 p-4 w-fit",t?.header?.iconWrapper),children:f.jsx(Ag,{size:48,className:P("stroke-primary",t?.header?.icon)})}),f.jsx("div",{className:P("text-xl font-bold pt-4 text-foreground",t?.header?.title),children:e("postcodeCheck.title")}),f.jsx("p",{className:P("text-sm text-center text-foreground-500 pt-1",t?.header?.description),children:e("postcodeCheck.description")})]}),f.jsxs("form",{id:"postcode-check-form",className:P("flex flex-col gap-2 mb-3",t?.form?.container),onSubmit:A,children:[f.jsx("p",{className:P("text-base font-bold text-foreground",t?.form?.addressLabel),children:"Adres"}),f.jsxs("div",{className:P("flex flex-row gap-2",t?.form?.inputsContainer),children:[f.jsx(ol,{variant:"bordered",placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",value:l,onValueChange:O=>u(BL(O)),classNames:N,maxLength:6,label:e("postcodeCheck.postalCode"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"1",radius:"sm",type:"text",name:"number",value:c,onValueChange:O=>d(O.replace(/\D/g,"")),classNames:N,label:e("postcodeCheck.houseNumber"),isRequired:!0}),f.jsx(ol,{variant:"bordered",placeholder:"A",radius:"sm",type:"text",name:"numberAddon",value:p,onValueChange:O=>h(O.toUpperCase()),classNames:N,label:e("postcodeCheck.houseNumberAddition")})]}),$&&f.jsx(lh,{color:"danger",variant:"faded",title:$,hideIconWrapper:!0,classNames:t?.form?.errorAlert})]}),f.jsx("p",{className:P("text-base font-bold text-foreground",t?.provider?.label),children:e("postcodeCheck.homeInternet")}),f.jsx(As,{variant:"bordered","aria-label":e("postcodeCheck.homeInternet"),placeholder:e("postcodeCheck.selectProvider"),isOpen:x,onOpenChange:O=>O!==x&&w(O),popoverProps:o,selectionMode:"single",disallowEmptySelection:!0,selectedKeys:r.currentFixedProviderScope?[r.currentFixedProviderScope]:void 0,radius:"sm",size:"lg",renderValue:O=>{const L=_.find(I=>I.slug===O[0]?.key);return L?f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[L.imageUrl&&f.jsx(Jt,{src:s(L.imageUrl,120,60),alt:L.name,width:60,height:30,radius:"none"}),L.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(L.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(L)]}):null},classNames:{...t?.provider?.select,trigger:P("cursor-pointer border-small",t?.provider?.select?.trigger)},children:_.map(O=>f.jsx(_n,{variant:"flat",textValue:O.name,onClick:()=>{n({currentFixedProviderScope:O.slug}),w(!1)},children:f.jsxs("div",{className:P("flex items-center gap-3",t?.provider?.select?.itemContainer),children:[O.imageUrl&&f.jsx(Jt,{src:s(O.imageUrl,120,60),alt:O.name,width:60,height:30,radius:"none"}),O.Icon&&f.jsx("div",{className:"flex h-[28px] w-[56px] items-center justify-center",children:f.jsx(O.Icon,{size:24,className:P("stroke-primary-500",t?.provider?.select?.icon)})}),M(O)]})},O.slug))})]}),f.jsx(Ps,{children:f.jsx(Ht,{className:P("font-medium",t?.submitButton),type:"submit",form:"postcode-check-form",color:"primary",variant:"solid",radius:"full",size:"lg",fullWidth:!0,disableAnimation:!0,disableRipple:!0,children:e("common.confirm")})})]})})}function I3({productCategory:e}){const{t}=Oe(),{profile:r}=zr(),{setModal:n}=Wi(),{profileButton:o}=Ye(),s=T3(),a=Ah(e==="fixed-proposition"?"fixed":"mobile"),i=SL(r.currentMobileProviders,a.otherBlocks);return f.jsxs("div",{className:"flex flex-col gap-3 mb-2",children:[f.jsx("div",{className:"text-base font-bold text-foreground",children:t("profile.personalizeTitle")}),e==="fixed-proposition"?f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.postcodeCheck"),description:r.address?_L(r.address):t("profile.enterPostcode"),selected:r.address!==void 0,onClick:()=>n("postcode-check"),Icon:Ag,classNames:o}),f.jsx(zL,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(pi,{title:t("profile.numberPreservation"),description:r.keepCurrentMsisdn===void 0?t("profile.askNumberPreservation"):r.keepCurrentMsisdn&&r.currentMsisdn?`${r.currentMsisdn} • ${s.find(l=>l.slug===r.currentProviderSlug)?.name||t("numberPreservation.otherProvider")}`:t("profile.newNumber"),selected:r.keepCurrentMsisdn!==void 0,onClick:()=>n("number-preservation"),avatarName:"0 6",classNames:o}),f.jsx(OL,{})]}),f.jsx(pi,{title:t("profile.customerBenefit"),description:wL(a.fixedBlocks.map(l=>({slug:l.provider.slug,name:l.provider.name})),i,r.currentFixedProviderScope,e==="fixed-proposition"),selected:e==="fixed-proposition"?r.currentMobileProviders?.some(l=>a.otherBlocks.some(u=>u.scope===l.scope)):a.fixedBlocks.some(l=>l.scope===r.currentFixedProviderScope)||r.currentFixedProviderScope==="other",onClick:()=>n("combi-deal"),Icon:tu,classNames:o}),f.jsx(AL,{productCategory:e})]})}function LL(){const{t:e}=Oe(),[t,r]=g.useState(!1),{sortSelect:n}=Ye(),{popoverContent:o,listbox:s,...a}=n||{},{sortOptions:i,handleFilterChange:l,getActiveFilterValue:u}=yr(),{popoverProps:c}=on({classNames:o});return f.jsx(As,{variant:"bordered","aria-label":e("filters.sort"),placeholder:e("filters.sort"),popoverProps:c,selectionMode:"single",disallowEmptySelection:!0,isOpen:t,onOpenChange:d=>d!==t&&r(d),selectedKeys:u("sorteren"),radius:"sm",listboxProps:{itemClasses:s},classNames:{...a,base:P("min-w-1/2 lg:min-w-auto lg:w-[200px]",a?.base),trigger:P("cursor-pointer border-small bg-white",a?.trigger)},children:i.map(d=>f.jsx(_n,{variant:"flat",onClick:()=>{l({slug:"sorteren",value:d.value}),r(!1)},children:e(`sortOptions.${d.value}`,{defaultValue:d.name})},d.value))})}function VL(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function me(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Mh(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return me(r,{dashed:!0})}function Fn(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`${Q.t("format.from")} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`:`${e[0].term} ${Q.t("format.month_short",{count:e[0].term})} ${Q.t("format.from").toLowerCase()} ${me(t,{dashed:!0})} ${Q.t("format.for")}:`}function Oh(e){switch(e){case Gt:return Q.t("format.unlimited_short");case 0:return"-";default:return e}}function Rs(e,t){const r=e.minutes!==0?`${Oh(e.minutes)} ${e.minutes===Gt?Q.t("format.minutes_short"):Q.t("format.minutes")}`:void 0,n=e.sms!==0?e.sms===e.minutes?Q.t("format.sms"):`${Oh(e.sms)} ${Q.t("format.sms")}`:void 0,o=e.minutes===Gt&&e.sms===Gt||["minutes","sms"].every(a=>e.sharedCredits?.includes(a)),s=o?" / ":" + ";return!r&&!n?"":o?[r,Q.t("format.sms")].join(s):[r,n].join(s)}function sl(e){switch(e){case 24:return`2 ${Q.t("format.year",{count:2})}`;case 12:return`1 ${Q.t("format.year")}`;case 1:return Q.t("format.monthly");default:return""}}function A3(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Bn(e){const t=sl(e.planVariant.contractTerm);if(e.productType==="fixed"){const s=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} ${Q.t("format.megabitPerSecond")}`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"}];const a=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`;return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"},{title:a,slug:"channels"}]}const r=`${e.content.dataSpeedDown/1e3} ${Q.t("format.megabitPerSecond")}`,n=`${(e.provider.network||"").replace("-netwerk","")} ${A3(e.content.networkGeneration)}`,o=e.content.dataEu?"EU":"NL";return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function Xt(e,t){if(e===Gt)return`${Q.t("format.unlimited_short")} ${t}`;const r=(e/1e3).toString().replace(".",",");return`${t===Q.t("format.gigabyte")?r:e} ${t}`}const jh=["kpn","vodafone","odido"],RL=[{type:"isRetention",rank:1,color:"primary",getDisplayName:e=>Q.t("labels.renewWith",{providerName:e.provider.name}),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&e.planVariant?.contractType==="retention",sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isCheapestPhone",rank:2,color:"primary",getDisplayName:()=>Q.t("labels.cheapestPhone"),isApplicable:(e,t)=>t.isSmartphone&&Number.isFinite(e.creditFee+e.price),sortValue:e=>e.creditFee+e.price,limit:1,sortDirection:"asc"},{type:"isBudget",rank:3,color:"primary",getDisplayName:()=>Q.t("labels.budget"),isApplicable:e=>Number.isFinite(e.tcoPerMonth),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetFiber",rank:4,color:"primary",getDisplayName:()=>Q.t("labels.budgetFiber"),isApplicable:(e,t)=>t.isFixed&&(e.tags.find(r=>r.type==="internet")?.slug||"").includes("glasvezel"),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isCombi",rank:5,color:"primary",getDisplayName:e=>e.provider?.name?Q.t("labels.combi",{providerName:e.provider.name}):Q.t("labels.combiGeneric"),isApplicable:e=>e.key.includes("m"),sortValue:e=>e.tcoPerMonth,limit:"unlimited",sortDirection:"asc"},{type:"isFastestInternet",rank:6,color:"primary",getDisplayName:()=>Q.t("labels.fastestInternet"),isApplicable:e=>Number.isFinite(e.content?.dataSpeedDown),sortValue:e=>e.content?.dataSpeedDown??0,limit:1,sortDirection:"desc"},{type:"isBudgetOwnNetwork",rank:7,color:"primary",getDisplayName:()=>Q.t("labels.budgetOwnNetwork"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&jh.includes(e.provider?.slug||""),sortValue:e=>e.tcoPerMonth,limit:1,sortDirection:"asc"},{type:"isBudgetNetwork",rank:8,color:"primary",getDisplayName:e=>e.provider?.network?Q.t("labels.budgetNetwork",{network:e.provider.network.replace("-netwerk","")}):Q.t("labels.budgetNetworkGeneric"),isApplicable:(e,t)=>(t.isSimOnly||t.isSmartphone)&&t.budgetNetworkPropositionKeys.includes(e.key),sortValue:e=>e.tcoPerMonth,limit:jh.length,sortDirection:"asc"}];function Fh({propositions:e,productCategory:t,labelColorConfig:r}){const n=t==="fixed-proposition",o=t==="sim-only-proposition",s=t==="smartphone-proposition-extended",a={isFixed:n,isSimOnly:o,isSmartphone:s,budgetNetworkPropositionKeys:o||s?KL(e):[]},i=new Map;for(const u of RL){const c=e.filter(h=>u.isApplicable(h,a));if(c.length===0)continue;const d=[...c].sort((h,m)=>{const b=u.sortValue(h),v=u.sortValue(m);return b===v?0:u.sortDirection==="asc"?b-v:v-b}),p=u.limit==="unlimited"?d.length:u.limit;d.slice(0,p).forEach(h=>{i.has(h.key)||i.set(h.key,{type:u.type,displayName:u.getDisplayName(h),rank:u.rank,color:r[u.type]??u.color})})}return{top:Array.from(i.entries()).map(([u,c])=>{const d=e.find(p=>p.key===u);return d?{...d,label:c}:void 0}).filter(u=>!!u).sort((u,c)=>u.label.rank-c.label.rank).slice(0,3),all:e.map(u=>({...u,label:i.get(u.key)}))}}function KL(e){return jh.map(t=>[...e].filter(r=>(r.provider?.network||"").replace("-netwerk","").toLowerCase()===t).sort((r,n)=>r.tcoPerMonth-n.tcoPerMonth)[0]?.key).filter(t=>!!t)}function WL({channels:e,hdChannels:t,classNames:r}){const{t:n}=Oe();return f.jsxs("div",{className:P("pb-4",r?.base),children:[f.jsx("div",{className:P(r?.description),children:n("detailsModal.channelsDescription",{channelsCount:e?.length})}),f.jsx("ul",{className:P("list-disc list-outside pl-6",r?.list),children:e.map(o=>f.jsx("li",{className:P("list-item",r?.listItem),children:f.jsxs("span",{className:P("flex items-center gap-2",r?.channelContainer),children:[o,t?.includes(o)&&f.jsx(jE,{size:24,className:P("stroke-foreground",r?.hdIcon)})]})},o))})]})}const Bh=new WeakMap;function zh(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function UL(e,t){let r=Bh.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${zh(t)}`}function N3(e,t,r){let n=Bh.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${zh(t)}-${zh(r)}`}function M3(e,t){return[...e.collection.rowHeaderColumnKeys].map(r=>N3(e,t,r)).join(" ")}var O3={};O3={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var j3={};j3={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var F3={};F3={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var B3={};B3={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var z3={};z3={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var L3={};L3={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var V3={};V3={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var R3={};R3={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var K3={};K3={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var W3={};W3={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var U3={};U3={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var H3={};H3={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var q3={};q3={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var G3={};G3={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Z3={};Z3={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Y3={};Y3={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var J3={};J3={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var X3={};X3={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Q3={};Q3={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var eS={};eS={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var tS={};tS={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var rS={};rS={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var nS={};nS={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var oS={};oS={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var sS={};sS={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var aS={};aS={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var iS={};iS={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var lS={};lS={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var uS={};uS={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var cS={};cS={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var dS={};dS={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var fS={};fS={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var pS={};pS={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var hS={};hS={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var al={};al={"ar-AE":O3,"bg-BG":j3,"cs-CZ":F3,"da-DK":B3,"de-DE":z3,"el-GR":L3,"en-US":V3,"es-ES":R3,"et-EE":K3,"fi-FI":W3,"fr-FR":U3,"he-IL":H3,"hr-HR":q3,"hu-HU":G3,"it-IT":Z3,"ja-JP":Y3,"ko-KR":J3,"lt-LT":X3,"lv-LV":Q3,"nb-NO":eS,"nl-NL":tS,"pl-PL":rS,"pt-BR":nS,"pt-PT":oS,"ro-RO":sS,"ru-RU":aS,"sk-SK":iS,"sl-SI":lS,"sr-SP":uS,"sv-SE":cS,"tr-TR":dS,"uk-UA":fS,"zh-CN":pS,"zh-TW":hS};class mS{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findPreviousKey(t,r){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(t,r){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let o=this.collection.getItem(n);if(!o)return null;if(!this.isDisabled(o)&&(!r||r(o)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let n=this.collection.getItem(t);if(!n)return null;let o=0;for(let i of ht(n,this.collection)){var s;if(i.colSpan&&i.colSpan+o>r)return(s=i.key)!==null&&s!==void 0?s:null;i.colSpan&&(o=o+i.colSpan-1);var a;if(o===r)return(a=i.key)!==null&&a!==void 0?a:null;o++}return null}getKeyBelow(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findNextKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyAbove(t){let r=t,n=this.collection.getItem(r);if(!n)return null;var o;if(this.isCell(n)&&(r=(o=n.parentKey)!==null&&o!==void 0?o:null),r==null)return null;if(r=this.findPreviousKey(r,s=>s.type==="item"),r!=null){if(this.isCell(n)){let s=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(r,s)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=ln(c))===null||n===void 0?void 0:n.key:(o=jr(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index-1):_s(d,r.index+1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))!==null&&u!==void 0?u:null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){var n,o;let c=ht(r,this.collection);var s;return(s=this.direction==="rtl"?(n=jr(c))===null||n===void 0?void 0:n.key:(o=ln(c))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null}if(this.isCell(r)&&r.parentKey!=null){let c=this.collection.getItem(r.parentKey);if(!c)return null;let d=ht(c,this.collection);var a;let p=(a=this.direction==="rtl"?_s(d,r.index+1):_s(d,r.index-1))!==null&&a!==void 0?a:null;var i;if(p)return(i=p.key)!==null&&i!==void 0?i:null;var l;if(this.focusMode==="row")return(l=r.parentKey)!==null&&l!==void 0?l:null;var u;return(u=this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))!==null&&u!==void 0?u:null}return null}getFirstKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;var a;return(a=(s=jr(ht(u,this.collection)))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findNextKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;var l;n=(l=(i=jr(ht(u,this.collection)))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getLastKey(t,r){let n=t??null,o;if(n!=null){if(o=this.collection.getItem(n),!o)return null;if(this.isCell(o)&&!r&&o.parentKey!=null){var s;let u=this.collection.getItem(o.parentKey);if(!u)return null;let c=ht(u,this.collection);var a;return(a=(s=ln(c))===null||s===void 0?void 0:s.key)!==null&&a!==void 0?a:null}}if(n=this.findPreviousKey(void 0,u=>u.type==="item"),n!=null&&(o&&this.isCell(o)&&r||this.focusMode==="cell")){var i;let u=this.collection.getItem(n);if(!u)return null;let c=ht(u,this.collection);var l;n=(l=(i=ln(c))===null||i===void 0?void 0:i.key)!==null&&l!==void 0?l:null}return n}getKeyPageAbove(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>o&&r!=null;){var s;if(r=(s=this.getKeyAbove(r))!==null&&s!==void 0?s:null,r==null)break;n=this.layoutDelegate.getItemRect(r)}return r}getKeyPageBelow(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let o=this.layoutDelegate.getVisibleRect().height,s=Math.min(this.layoutDelegate.getContentSize().height,n.y+o);for(;n&&n.y+n.height<s;){let a=this.getKeyBelow(r);if(a==null)break;n=this.layoutDelegate.getItemRect(a),r=a}return r}getKeyForSearch(t,r){let n=r??null;if(!this.collator)return null;let o=this.collection;if(n=r??this.getFirstKey(),n==null)return null;let s=o.getItem(n);if(!s)return null;var a;s.type==="cell"&&(n=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;n!=null;){let c=o.getItem(n);if(!c)return null;if(c.textValue){let d=c.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){var l,u;return this.isRow(c)&&this.focusMode==="cell"?(u=(l=jr(ht(c,this.collection)))===null||l===void 0?void 0:l.key)!==null&&u!==void 0?u:null:c.key}}n=this.findNextKey(n,d=>d.type==="item"),n==null&&!i&&(n=this.getFirstKey(),i=!0)}return null}constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new HL(t.layout):new Sd(t.ref));var r;this.focusMode=(r=t.focusMode)!==null&&r!==void 0?r:"row"}}class HL{getContentSize(){return this.layout.getContentSize()}getItemRect(t){var r;return((r=this.layout.getLayoutInfo(t))===null||r===void 0?void 0:r.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(t){this.layout=t}}const Lh=new WeakMap;var gS={};gS={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var bS={};bS={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var vS={};vS={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var yS={};yS={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var xS={};xS={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var wS={};wS={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var CS={};CS={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var SS={};SS={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var kS={};kS={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var PS={};PS={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var $S={};$S={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var ES={};ES={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var TS={};TS={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var DS={};DS={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var _S={};_S={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var IS={};IS={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var AS={};AS={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var NS={};NS={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var MS={};MS={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var OS={};OS={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var jS={};jS={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var FS={};FS={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var BS={};BS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var zS={};zS={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var LS={};LS={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var VS={};VS={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var RS={};RS={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var KS={};KS={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var WS={};WS={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var US={};US={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var HS={};HS={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var qS={};qS={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var GS={};GS={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var ZS={};ZS={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var il={};il={"ar-AE":gS,"bg-BG":bS,"cs-CZ":vS,"da-DK":yS,"de-DE":xS,"el-GR":wS,"en-US":CS,"es-ES":SS,"et-EE":kS,"fi-FI":PS,"fr-FR":$S,"he-IL":ES,"hr-HR":TS,"hu-HU":DS,"it-IT":_S,"ja-JP":IS,"ko-KR":AS,"lt-LT":NS,"lv-LV":MS,"nb-NO":OS,"nl-NL":jS,"pl-PL":FS,"pt-BR":BS,"pt-PT":zS,"ro-RO":LS,"ru-RU":VS,"sk-SK":RS,"sl-SI":KS,"sr-SP":WS,"sv-SE":US,"tr-TR":HS,"uk-UA":qS,"zh-CN":GS,"zh-TW":ZS};const YS=7e3;let wr=null;function JS(e,t="assertive",r=YS){wr?wr.announce(e,t,r):(wr=new qL,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?wr.announce(e,t,r):setTimeout(()=>{wr?.isAttached()&&wr?.announce(e,t,r)},100))}class qL{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=YS){var o,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function GL(e){return e&&e.__esModule?e.default:e}function ZL(e,t){let{getRowText:r=i=>{var l,u,c,d;return(d=(l=(u=t.collection).getTextValue)===null||l===void 0?void 0:l.call(u,i))!==null&&d!==void 0?d:(c=t.collection.getItem(i))===null||c===void 0?void 0:c.textValue}}=e,n=Wr(GL(il),"@react-aria/grid"),o=t.selectionManager.rawSelection,s=g.useRef(o),a=g.useCallback(()=>{var i;if(!t.selectionManager.isFocused||o===s.current){s.current=o;return}let l=XS(o,s.current),u=XS(s.current,o),c=t.selectionManager.selectionBehavior==="replace",d=[];if(t.selectionManager.selectedKeys.size===1&&c){let p=t.selectionManager.selectedKeys.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(l.size===1&&u.size===0){let p=l.keys().next().value;if(p!=null){let h=r(p);h&&d.push(n.format("selectedItem",{item:h}))}}else if(u.size===1&&l.size===0){let p=u.keys().next().value;if(p!=null&&t.collection.getItem(p)){let h=r(p);h&&d.push(n.format("deselectedItem",{item:h}))}}t.selectionManager.selectionMode==="multiple"&&(d.length===0||o==="all"||o.size>1||s.current==="all"||((i=s.current)===null||i===void 0?void 0:i.size)>1)&&d.push(o==="all"?n.format("selectedAll"):n.format("selectedCount",{count:o.size})),d.length>0&&JS(d.join(" ")),s.current=o},[o,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,n]);Zg(()=>{if(t.selectionManager.isFocused)a();else{let i=requestAnimationFrame(a);return()=>cancelAnimationFrame(i)}},[o,t.selectionManager.isFocused])}function XS(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function YL(e){return e&&e.__esModule?e.default:e}function JL(e){let t=Wr(YL(il),"@react-aria/grid"),r=C_(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,o=g.useMemo(()=>{let a=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,l;return n&&(l=t.format("longPressToSelect")),i==="replace"&&a!=="none"&&e.hasItemActions?l:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return $a(o)}function XL(e,t,r){let{isVirtualized:n,disallowTypeAhead:o,keyboardDelegate:s,focusMode:a,scrollRef:i,getRowText:l,onRowAction:u,onCellAction:c,escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:p}=e,{selectionManager:h}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=Ia({usage:"search",sensitivity:"base"}),{direction:b}=Ot(),v=t.selectionManager.disabledBehavior,y=g.useMemo(()=>s||new mS({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:v,ref:r,direction:b,collator:m,focusMode:a}),[s,t.collection,t.disabledKeys,v,r,b,m,a]),{collectionProps:x}=Cd({ref:r,selectionManager:h,keyboardDelegate:y,isVirtualized:n,scrollRef:i,disallowTypeAhead:o,escapeKeyBehavior:d}),w=bt(e.id);Lh.set(t,{keyboardDelegate:y,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:p});let C=JL({selectionManager:h,hasItemActions:!!(u||c)}),S=Bt(e,{labelable:!0}),k=g.useCallback(N=>{if(h.isFocused){N.currentTarget.contains(N.target)||h.setFocused(!1);return}N.currentTarget.contains(N.target)&&h.setFocused(!0)},[h]),D=g.useMemo(()=>({onBlur:x.onBlur,onFocus:k}),[k,x.onBlur]),$=M0(r,{isDisabled:t.collection.size!==0}),_=Ce(S,{role:"grid",id:w,"aria-multiselectable":h.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?D:x,t.collection.size===0&&{tabIndex:$?-1:0}||void 0,C);return n&&(_["aria-rowcount"]=t.collection.size,_["aria-colcount"]=t.collection.columnCount),ZL({getRowText:l},t),{gridProps:_}}function QL(){return{rowGroupProps:{role:"rowgroup"}}}function eV(e,t,r){var n,o;let{node:s,isVirtualized:a,shouldSelectOnPressUp:i,onAction:l}=e,{actions:u,shouldSelectOnPressUp:c}=Lh.get(t),d=u.onRowAction?()=>{var v;return(v=u.onRowAction)===null||v===void 0?void 0:v.call(u,s.key)}:l,{itemProps:p,...h}=Ti({selectionManager:t.selectionManager,key:s.key,ref:r,isVirtualized:a,shouldSelectOnPressUp:c||i,onAction:d||!(s==null||(n=s.props)===null||n===void 0)&&n.onAction?Ur(s==null||(o=s.props)===null||o===void 0?void 0:o.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(s.key),b={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":h.isDisabled||void 0,...p};return a&&(b["aria-rowindex"]=s.index+1),{rowProps:b,...h}}function QS(e,t,r){let{node:n,isVirtualized:o,focusMode:s="child",shouldSelectOnPressUp:a,onAction:i}=e,{direction:l}=Ot(),{keyboardDelegate:u,actions:{onCellAction:c}}=Lh.get(t),d=g.useRef(null),p=()=>{if(r.current){let w=Lt(r.current);if(s==="child"){if(r.current.contains(document.activeElement)&&r.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?Vh(w):w.firstChild();if(C){Et(C);return}}(d.current!=null&&n.key!==d.current||!r.current.contains(document.activeElement))&&Et(r.current)}},{itemProps:h,isPressed:m}=Ti({selectionManager:t.selectionManager,key:n.key,ref:r,isVirtualized:o,focus:p,shouldSelectOnPressUp:a,onAction:c?()=>c(n.key):i,isDisabled:t.collection.size===0}),b=w=>{if(!w.currentTarget.contains(w.target)||t.isKeyboardNavigationDisabled||!r.current||!document.activeElement)return;let C=Lt(r.current);switch(C.currentNode=document.activeElement,w.key){case"ArrowLeft":{let N=l==="rtl"?C.nextNode():C.previousNode();if(s==="child"&&N===r.current&&(N=null),w.preventDefault(),w.stopPropagation(),N)Et(N),Zr(N,{containingElement:Gr(r.current)});else{var S;if(((S=u.getKeyLeftOf)===null||S===void 0?void 0:S.call(u,n.key))!==n.key){var k;(k=r.current.parentElement)===null||k===void 0||k.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="rtl"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,N=l==="rtl"?C.firstChild():Vh(C),N&&(Et(N),Zr(N,{containingElement:Gr(r.current)})))}break}case"ArrowRight":{let N=l==="rtl"?C.previousNode():C.nextNode();if(s==="child"&&N===r.current&&(N=null),w.preventDefault(),w.stopPropagation(),N)Et(N),Zr(N,{containingElement:Gr(r.current)});else{var D;if(((D=u.getKeyRightOf)===null||D===void 0?void 0:D.call(u,n.key))!==n.key){var $;($=r.current.parentElement)===null||$===void 0||$.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent));break}s==="cell"&&l==="ltr"?(Et(r.current),Zr(r.current,{containingElement:Gr(r.current)})):(C.currentNode=r.current,N=l==="rtl"?Vh(C):C.firstChild(),N&&(Et(N),Zr(N,{containingElement:Gr(r.current)})))}break}case"ArrowUp":case"ArrowDown":if(!w.altKey&&r.current.contains(w.target)){var _;w.stopPropagation(),w.preventDefault(),(_=r.current.parentElement)===null||_===void 0||_.dispatchEvent(new KeyboardEvent(w.nativeEvent.type,w.nativeEvent))}break}},v=w=>{if(d.current=n.key,w.target!==r.current){xo()||t.selectionManager.setFocusedKey(n.key);return}requestAnimationFrame(()=>{s==="child"&&document.activeElement===r.current&&p()})},y=Ce(h,{role:"gridcell",onKeyDownCapture:b,"aria-colspan":n.colSpan,"aria-colindex":n.colIndex!=null?n.colIndex+1:void 0,colSpan:o?void 0:n.colSpan,onFocus:v});var x;return o&&(y["aria-colindex"]=((x=n.colIndex)!==null&&x!==void 0?x:n.index)+1),a&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=w=>{let C=w.currentTarget,S=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{S!=null&&C.setAttribute("tabindex",S)})}),{gridCellProps:y,isPressed:m}}function Vh(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function tV(e){return e&&e.__esModule?e.default:e}function rV(e,t){let{key:r}=e,n=t.selectionManager,o=bt(),s=!t.selectionManager.canSelectItem(r),a=t.selectionManager.isSelected(r),i=()=>n.toggleSelection(r);const l=Wr(tV(il),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":l.format("select"),isSelected:a,isDisabled:s,onChange:i}}}class nV extends mS{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let n=jr(ht(r,this.collection));if(n)return n.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,r.index)}return super.getKeyBelow(t)}getKeyAbove(t){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let s=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return s&&s.type==="column"?s.key:null}let n=super.getKeyAbove(t),o=n!=null?this.collection.getItem(n):null;return o&&o.type!=="headerrow"?n:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,o=>o.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level];for(let o of ht(n,this.collection))if(o.type==="column")return o.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,s=>s.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level],o=[...ht(n,this.collection)];for(let s=o.length-1;s>=0;s--){let a=o[s];if(a.type==="column")return a.key}return null}getKeyRightOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r??this.getFirstKey();if(o==null)return null;let s=n.getItem(o);var a;s?.type==="cell"&&(o=(a=s.parentKey)!==null&&a!==void 0?a:null);let i=!1;for(;o!=null;){let l=n.getItem(o);if(!l)return null;if(l.textValue){let u=l.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0)return l.key}for(let u of ht(l,this.collection)){let c=n.columns[u.index];if(n.rowHeaderColumnKeys.has(c.key)&&u.textValue){let d=u.textValue.slice(0,t.length);if(this.collator.compare(d,t)===0){let p=r!=null?n.getItem(r):s;return p?.type==="cell"?u.key:l.key}}}o=this.getKeyBelow(o),o==null&&!i&&(o=this.getFirstKey(),i=!0)}return null}}function oV(e){return e&&e.__esModule?e.default:e}function sV(e,t,r){let{keyboardDelegate:n,isVirtualized:o,layoutDelegate:s,layout:a}=e,i=Ia({usage:"search",sensitivity:"base"}),{direction:l}=Ot(),u=t.selectionManager.disabledBehavior,c=g.useMemo(()=>n||new nV({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:u,ref:r,direction:l,collator:i,layoutDelegate:s,layout:a}),[n,t.collection,t.disabledKeys,u,r,l,i,s,a]),d=bt(e.id);Bh.set(t,d);let{gridProps:p}=XL({...e,id:d,keyboardDelegate:c},t,r);o&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ga()&&"expandedKeys"in t&&(p.role="treegrid");let{column:h,direction:m}=t.sortDescriptor||{},b=Wr(oV(al),"@react-aria/table"),v=g.useMemo(()=>{var x,w;let C=(w=(x=t.collection.columns.find(S=>S.key===h))===null||x===void 0?void 0:x.textValue)!==null&&w!==void 0?w:"";return m&&h?b.format(`${m}Sort`,{columnName:C}):void 0},[m,h,t.collection.columns]),y=$a(v);return Zg(()=>{v&&JS(v,"assertive",500)},[v]),{gridProps:Ce(p,y,{"aria-describedby":[y["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function aV(e){return e&&e.__esModule?e.default:e}function ek(e,t,r){var n,o;let{node:s}=e,a=s.props.allowsSorting,{gridCellProps:i}=QS({...e,focusMode:"child"},t,r),l=s.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:u,isPressed:c}=jt({isDisabled:!a||l,onPress(){t.sort(s.key)},ref:r}),{focusableProps:d}=rn({},r),p,h=((n=t.sortDescriptor)===null||n===void 0?void 0:n.column)===s.key,m=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;s.props.allowsSorting&&!ss()&&(p=h?m:"none");let b=Wr(aV(al),"@react-aria/table"),v;a&&(v=`${b.format("sortable")}`,h&&m&&ss()&&(v=`${v}, ${b.format(m)}`));let y=$a(v),x=t.collection.size===0;return g.useEffect(()=>{x&&t.selectionManager.focusedKey===s.key&&t.selectionManager.setFocusedKey(null)},[x,t.selectionManager,s.key]),{columnHeaderProps:{...Ce(d,i,u,y,x?{tabIndex:-1}:null),role:"columnheader",id:UL(t,s.key),"aria-colspan":s.colSpan&&s.colSpan>1?s.colSpan:void 0,"aria-sort":p},isPressed:c}}const tk={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function iV(e,t,r){let{node:n,isVirtualized:o}=e,{rowProps:s,...a}=eV(e,t,r),{direction:i}=Ot();o&&!(ga()&&"expandedKeys"in t)?s["aria-rowindex"]=n.index+1+t.collection.headerRows.length:delete s["aria-rowindex"];let l={};if(ga()&&"expandedKeys"in t){let S=t.keyMap.get(n.key);if(S!=null){var u,c,d,p,h,m;let k=((u=S.props)===null||u===void 0?void 0:u.UNSTABLE_childItems)||((d=S.props)===null||d===void 0||(c=d.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;var b,v,y,x;l={onKeyDown:D=>{(D.key===tk.expand[i]&&t.selectionManager.focusedKey===S.key&&k&&t.expandedKeys!=="all"&&!t.expandedKeys.has(S.key)||D.key===tk.collapse[i]&&t.selectionManager.focusedKey===S.key&&k&&(t.expandedKeys==="all"||t.expandedKeys.has(S.key)))&&(t.toggleKey(S.key),D.stopPropagation())},"aria-expanded":k?t.expandedKeys==="all"||t.expandedKeys.has(n.key):void 0,"aria-level":S.level,"aria-posinset":((b=S.indexOfType)!==null&&b!==void 0?b:0)+1,"aria-setsize":S.level>1?((y=(p=ln((v=(h=t.keyMap.get(S.parentKey))===null||h===void 0?void 0:h.childNodes)!==null&&v!==void 0?v:[]))===null||p===void 0?void 0:p.indexOfType)!==null&&y!==void 0?y:0)+1:((x=(m=ln(t.collection.body.childNodes))===null||m===void 0?void 0:m.indexOfType)!==null&&x!==void 0?x:0)+1}}}let w=G5(n.props),C=a.hasAction?w:{};return{rowProps:{...Ce(s,l,C),"aria-labelledby":M3(t,n.key)},...a}}function lV(e,t,r){let{node:n,isVirtualized:o}=e,s={role:"row"};return o&&!(ga()&&"expandedKeys"in t)&&(s["aria-rowindex"]=n.index+1),{rowProps:s}}function rk(e,t,r){var n;let{gridCellProps:o,isPressed:s}=QS(e,t,r),a=(n=e.node.column)===null||n===void 0?void 0:n.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(o.role="rowheader",o.id=N3(t,e.node.parentKey,a)),{gridCellProps:o,isPressed:s}}function uV(e){return e&&e.__esModule?e.default:e}function cV(e,t){let{key:r}=e;const{checkboxProps:n}=rV(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${M3(t,r)}`}}}function dV(e){let{isEmpty:t,isSelectAll:r,selectionMode:n}=e.selectionManager;return{checkboxProps:{"aria-label":Wr(uV(al),"@react-aria/table").format(n==="single"?"select":"selectAll"),isSelected:r,isDisabled:n!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Rh(){return QL()}var nk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,slots:i,state:l,selectionMode:u,color:c,checkboxesProps:d,disableAnimation:p,classNames:h,...m}=e,b=o||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:a},l,y),{isFocusVisible:w,focusProps:C}=nt(),{checkboxProps:S}=dV(l),k=P(h?.th,s,(r=a.props)==null?void 0:r.className),D=u==="single",{onChange:$,..._}=S;return f.jsx(b,{ref:y,"data-focus-visible":H(w),...ie(x,C,Fe(a.props,{enabled:v}),Fe(m,{enabled:v})),className:(n=i.th)==null?void 0:n.call(i,{class:k}),children:D?f.jsx(wo,{children:S["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:p,onValueChange:$,...ie(d,_)})})});nk.displayName="HeroUI.TableSelectAllCheckbox";var ok=nk;function fV(e){let{collection:t,focusMode:r}=e,n=e.UNSAFE_selectionState||t1(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=n.setFocusedKey;n.setFocusedKey=(l,u)=>{if(r==="cell"&&l!=null){let m=t.getItem(l);if(m?.type==="item"){var c,d;let b=ht(m,t);var p,h;u==="last"?l=(p=(c=ln(b))===null||c===void 0?void 0:c.key)!==null&&p!==void 0?p:null:l=(h=(d=jr(b))===null||d===void 0?void 0:d.key)!==null&&h!==void 0?h:null}}s(l,u)};let a=g.useMemo(()=>new Ii(t,n),[t,n]);const i=g.useRef(null);return g.useEffect(()=>{if(n.focusedKey!=null&&i.current&&!t.getItem(n.focusedKey)){const l=i.current.getItem(n.focusedKey),u=l?.parentKey!=null&&(l.type==="cell"||l.type==="rowheader"||l.type==="column")?i.current.getItem(l.parentKey):l;if(!u){n.setFocusedKey(null);return}const c=i.current.rows,d=t.rows,p=c.length-d.length;let h=Math.min(p>1?Math.max(u.index-p+1,0):u.index,d.length-1),m=null;for(;h>=0;){if(!a.isDisabled(d[h].key)&&d[h].type!=="headerrow"){m=d[h];break}h<d.length-1?h++:(h>u.index&&(h=u.index),h--)}if(m){const b=m.hasChildNodes?[...ht(m,t)]:[],v=m.hasChildNodes&&u!==l&&l&&l.index<b.length?b[l.index].key:m.key;n.setFocusedKey(v)}else n.setFocusedKey(null)}i.current=t},[t,a,n,n.focusedKey]),{collection:t,disabledKeys:o,isKeyboardNavigationDisabled:!1,selectionManager:a}}class pV{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t;return(t=[...this.rows][0])===null||t===void 0?void 0:t.key}getLastKey(){var t;let r=[...this.rows];return(t=r[r.length-1])===null||t===void 0?void 0:t.key}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=d=>{let p=this.keyMap.get(d.key);t.visitNode&&(d=t.visitNode(d)),this.keyMap.set(d.key,d);let h=new Set,m=null,b=!1;if(d.type==="item"){var v;for(let S of d.childNodes)if(((v=S.props)===null||v===void 0?void 0:v.colSpan)!==void 0){b=!0;break}}for(let S of d.childNodes){if(S.type==="cell"&&b){var y,x;S.colspan=(y=S.props)===null||y===void 0?void 0:y.colSpan,S.colSpan=(x=S.props)===null||x===void 0?void 0:x.colSpan;var w,C;S.colIndex=m?((w=m.colIndex)!==null&&w!==void 0?w:m.index)+((C=m.colSpan)!==null&&C!==void 0?C:1):S.index}S.type==="cell"&&S.parentKey==null&&(S.parentKey=d.key),h.add(S.key),m?(m.nextKey=S.key,S.prevKey=m.key):S.prevKey=null,r(S),m=S}if(m&&(m.nextKey=null),p)for(let S of p.childNodes)h.has(S.key)||n(S)},n=d=>{this.keyMap.delete(d.key);for(let p of d.childNodes)this.keyMap.get(p.key)===p&&n(p)},o=null;for(let[d,p]of t.items.entries()){var s,a,i,l,u,c;let h={...p,level:(s=p.level)!==null&&s!==void 0?s:0,key:(a=p.key)!==null&&a!==void 0?a:"row-"+d,type:(i=p.type)!==null&&i!==void 0?i:"row",value:(l=p.value)!==null&&l!==void 0?l:null,hasChildNodes:!0,childNodes:[...p.childNodes],rendered:p.rendered,textValue:(u=p.textValue)!==null&&u!==void 0?u:"",index:(c=p.index)!==null&&c!==void 0?c:d};o?(o.nextKey=h.key,h.prevKey=o.key):h.prevKey=null,this.rows.push(h),r(h),o=h}o&&(o.nextKey=null)}}const sk="row-header-column-"+Math.random().toString(36).slice(2);let Kh="row-header-column-"+Math.random().toString(36).slice(2);for(;sk===Kh;)Kh="row-header-column-"+Math.random().toString(36).slice(2);function hV(e,t){if(t.length===0)return[];let r=[],n=new Map;for(let c of t){let d=c.parentKey,p=[c];for(;d;){let h=e.get(d);if(!h)break;if(n.has(h)){var o,s;(s=(o=h).colSpan)!==null&&s!==void 0||(o.colSpan=0),h.colSpan++,h.colspan=h.colSpan;let{column:m,index:b}=n.get(h);if(b>p.length)break;for(let v=b;v<p.length;v++)m.splice(v,0,null);for(let v=p.length;v<m.length;v++)m[v]&&n.has(m[v])&&(n.get(m[v]).index=v)}else h.colSpan=1,h.colspan=1,p.push(h),n.set(h,{column:p,index:p.length-1});d=h.parentKey}r.push(p),c.index=r.length-1}let a=Math.max(...r.map(c=>c.length)),i=Array(a).fill(0).map(()=>[]),l=0;for(let c of r){let d=a-1;for(let p of c){if(p){let h=i[d],m=h.reduce((b,v)=>{var y;return b+((y=v.colSpan)!==null&&y!==void 0?y:1)},0);if(m<l){let b={type:"placeholder",key:"placeholder-"+p.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};h.length>0&&(h[h.length-1].nextKey=b.key,b.prevKey=h[h.length-1].key),h.push(b)}h.length>0&&(h[h.length-1].nextKey=p.key,p.prevKey=h[h.length-1].key),p.level=d,p.colIndex=l,h.push(p)}d--}l++}let u=0;for(let c of i){let d=c.reduce((p,h)=>{var m;return p+((m=h.colSpan)!==null&&m!==void 0?m:1)},0);if(d<t.length){let p={type:"placeholder",key:"placeholder-"+c[c.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:u,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:c[c.length-1].key};c.push(p)}u++}return i.map((c,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:c,textValue:""}))}class mV extends pV{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return(n=r?.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return(n=r?.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){var t,r;return(r=(t=jr(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getLastKey(){var t,r;return(r=(t=ln(this.body.childNodes))===null||t===void 0?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return t===this.body.key?this.body.childNodes:super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return"";if(r.textValue)return r.textValue;let n=this.rowHeaderColumnKeys;if(n){let o=[];for(let s of r.childNodes){let a=this.columns[s.index];if(n.has(a.key)&&s.textValue&&o.push(s.textValue),o.length===n.size)break}return o.join(" ")}return""}constructor(t,r,n){let o=new Set,s=null,a=[];if(n?.showSelectionCheckboxes){let d={type:"column",key:sk,value:null,textValue:"",level:0,index:n?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(d)}if(n?.showDragButtons){let d={type:"column",key:Kh,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(d)}let i=[],l=new Map,u=d=>{switch(d.type){case"body":s=d;break;case"column":l.set(d.key,d),d.hasChildNodes||(a.push(d),d.props.isRowHeader&&o.add(d.key));break;case"item":i.push(d);return}for(let p of d.childNodes)u(p)};for(let d of t)u(d);let c=hV(l,a);if(c.forEach((d,p)=>i.splice(p,0,d)),super({columnCount:a.length,items:i,visitNode:d=>(d.column=a[d.index],d)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=o,this.body=s,this.headerRows=c,this._size=[...s.childNodes].length,this.rowHeaderColumnKeys.size===0){let d=this.columns.find(p=>{var h,m;return!(!((h=p.props)===null||h===void 0)&&h.isDragButtonCell)&&!(!((m=p.props)===null||m===void 0)&&m.isSelectionCell)});d&&this.rowHeaderColumnKeys.add(d.key)}}}const gV={ascending:"descending",descending:"ascending"};function bV(e){let[t,r]=g.useState(!1),{selectionMode:n="none",showSelectionCheckboxes:o,showDragButtons:s}=e,a=g.useMemo(()=>({showSelectionCheckboxes:o&&n!=="none",showDragButtons:s,selectionMode:n,columns:[]}),[e.children,o,n,s]),i=a1(e,g.useCallback(d=>new mV(d,null,a),[a]),a),{disabledKeys:l,selectionManager:u}=fV({...e,collection:i,disabledBehavior:e.disabledBehavior||"selection"});var c;return{collection:i,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:(c=e.sortDescriptor)!==null&&c!==void 0?c:null,isKeyboardNavigationDisabled:i.size===0||t,setKeyboardNavigationDisabled:r,sort(d,p){var h,m;(m=e.onSortChange)===null||m===void 0||m.call(e,{column:d,direction:p??(((h=e.sortDescriptor)===null||h===void 0?void 0:h.column)===d?gV[e.sortDescriptor.direction]:"ascending")})}}}function ak(e){return null}ak.getCollectionNode=function*(t,r){let{children:n,columns:o}=t;if(r.columns=[],typeof n=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let s of o)yield{type:"column",value:s,renderer:n}}else{let s=[];g.Children.forEach(n,a=>{s.push({type:"column",element:a})}),yield*s}};let vV=ak;function ik(e){return null}ik.getCollectionNode=function*(t){let{children:r,items:n}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of n)yield{type:"item",value:o,renderer:r}}else{let o=[];g.Children.forEach(r,s=>{o.push({type:"item",element:s})}),yield*o}}}};let yV=ik;function lk(e){return null}lk.getCollectionNode=function*(t,r){let{title:n,children:o,childColumns:s}=t,a=n||o,i=t.textValue||(typeof a=="string"?a:"")||t["aria-label"],l=yield{type:"column",hasChildNodes:!!s||!!n&&g.Children.count(o)>0,rendered:a,textValue:i,props:t,*childNodes(){if(s)for(let c of s)yield{type:"column",value:c};else if(n){let c=[];g.Children.forEach(o,d=>{c.push({type:"column",element:d})}),yield*c}},shouldInvalidate(c){return u(c),!1}},u=c=>{for(let d of l)d.hasChildNodes||c.columns.push(d)};u(r)};let xV=lk;function Wh(e){return null}Wh.getCollectionNode=function*(t,r){let{children:n,textValue:o,UNSTABLE_childItems:s}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(r.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),r.showSelectionCheckboxes&&r.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof n=="function"){for(let a of r.columns)yield{type:"cell",element:n(a.key),key:a.key};if(s)for(let a of s)yield{type:"item",value:a}}else{let a=[],i=[],l=0;if(g.Children.forEach(n,u=>{if(u.type===Wh){if(a.length<r.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");i.push({type:"item",element:u})}else{a.push({type:"cell",element:u});var c;l+=(c=u.props.colSpan)!==null&&c!==void 0?c:1}}),l!==r.columns.length)throw new Error(`Cell count must match column count. Found ${l} cells and ${r.columns.length} columns.`);yield*a,yield*i}},shouldInvalidate(a){return a.columns.length!==r.columns.length||a.columns.some((i,l)=>i.key!==r.columns[l].key)||a.showSelectionCheckboxes!==r.showSelectionCheckboxes||a.showDragButtons!==r.showDragButtons||a.selectionMode!==r.selectionMode}}};let wV=Wh;function uk(e){return null}uk.getCollectionNode=function*(t){let{children:r}=t,n=t.textValue||(typeof r=="string"?r:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:r,textValue:n,"aria-label":t["aria-label"],hasChildNodes:!1}};let CV=uk;function ck(e){var t;const r=tt(),[n,o]=pt(e,Nm.variantKeys),{ref:s,as:a,baseRef:i,children:l,className:u,classNames:c,removeWrapper:d=!1,disableAnimation:p=(t=r?.disableAnimation)!=null?t:!1,isKeyboardNavigationDisabled:h=!1,selectionMode:m="none",topContentPlacement:b="inside",bottomContentPlacement:v="inside",selectionBehavior:y=m==="none"?null:"toggle",disabledBehavior:x="selection",showSelectionCheckboxes:w=m==="multiple"&&y!=="replace",BaseComponent:C="div",checkboxesProps:S,topContent:k,bottomContent:D,sortIcon:$,onRowAction:_,onCellAction:N,...A}=n,M=a||"table",O=typeof M=="string",L=Pe(s),I=Pe(i),z=bV({...e,children:l,showSelectionCheckboxes:w});h&&!z.isKeyboardNavigationDisabled&&z.setKeyboardNavigationDisabled(!0);const{collection:F}=z,{layout:B,...U}=e,{gridProps:E}=sV({...U},z,L),j=m!=="none",T=m==="multiple",V=g.useMemo(()=>Nm({...o,isSelectable:j,isMultiSelectable:T}),[ft(o),j,T]),K=P(c?.base,u),G=g.useMemo(()=>{var X;return{state:z,slots:V,isSelectable:j,collection:F,classNames:c,color:e?.color,disableAnimation:p,checkboxesProps:S,isHeaderSticky:(X=e?.isHeaderSticky)!=null?X:!1,selectionMode:m,selectionBehavior:y,disabledBehavior:x,showSelectionCheckboxes:w,onRowAction:_,onCellAction:N}},[V,z,F,j,c,m,y,S,x,p,w,e?.color,e?.isHeaderSticky,_,N]),Z=g.useCallback(X=>({...X,ref:I,className:V.base({class:P(K,X?.className)})}),[K,V]),W=g.useCallback(X=>({...X,ref:I,className:V.wrapper({class:P(c?.wrapper,X?.className)})}),[c?.wrapper,V]),ne=g.useCallback(X=>({...ie(E,Fe(A,{enabled:O}),X),onKeyDownCapture:void 0,ref:L,className:V.table({class:P(c?.table,X?.className)})}),[c?.table,O,V,E,A]);return{BaseComponent:C,Component:M,children:l,state:z,collection:F,values:G,topContent:k,bottomContent:D,removeWrapper:d,topContentPlacement:b,bottomContentPlacement:v,sortIcon:$,getBaseProps:Z,getWrapperProps:W,getTableProps:ne}}var dk=Se((e,t)=>{var r,n,o;const{as:s,className:a,node:i,rowKey:l,slots:u,state:c,classNames:d,...p}=e,h=s||"td",m=typeof h=="string",b=Pe(t),{gridCellProps:v}=rk({node:i},c,b),y=P(d?.td,a,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=nt(),C=c.selectionManager.isSelected(l),S=g.useMemo(()=>{const D=typeof i.rendered;return D!=="object"&&D!=="function"?f.jsx("span",{children:i.rendered}):i.rendered},[i.rendered]),k=((n=i.column)==null?void 0:n.props)||{};return f.jsx(h,{ref:b,"data-focus-visible":H(x),"data-selected":H(C),...ie(v,w,Fe(i.props,{enabled:m}),p),className:(o=u.td)==null?void 0:o.call(u,{align:k.align,class:y}),children:S})});dk.displayName="HeroUI.TableCell";var fk=dk,pk=Se((e,t)=>{var r,n;const{as:o,className:s,node:a,rowKey:i,slots:l,state:u,color:c,disableAnimation:d,checkboxesProps:p,selectionMode:h,classNames:m,...b}=e,v=o||"td",y=typeof v=="string",x=Pe(t),{gridCellProps:w}=rk({node:a},u,x),{isFocusVisible:C,focusProps:S}=nt(),{checkboxProps:k}=cV({key:a?.parentKey||a.key},u),D=P(m?.td,s,(r=a.props)==null?void 0:r.className),$=h==="single",{onChange:_,...N}=k,A=u.selectionManager.isSelected(i);return f.jsx(v,{ref:x,"data-focus-visible":H(C),"data-selected":H(A),...ie(w,S,Fe(a.props,{enabled:y}),b),className:(n=l.td)==null?void 0:n.call(l,{class:D}),children:$?f.jsx(wo,{children:k["aria-label"]}):f.jsx(hh,{color:c,disableAnimation:d,onValueChange:_,...ie(p,N)})})});pk.displayName="HeroUI.TableCheckboxCell";var hk=pk,mk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,state:u,isSelectable:c,classNames:d,...p}=e,h=o||(e?.href?"a":"tr"),m=typeof h=="string",b=Pe(t),{rowProps:v}=iV({node:i},u,b),y=P(d?.tr,s,(r=i.props)==null?void 0:r.className),{isFocusVisible:x,focusProps:w}=nt(),C=u.disabledKeys.has(i.key),S=u.selectionManager.isSelected(i.key),{isHovered:k,hoverProps:D}=vt({isDisabled:C}),{isFirst:$,isLast:_,isMiddle:N,isOdd:A}=g.useMemo(()=>{const M=i.key===u.collection.getFirstKey(),O=i.key===u.collection.getLastKey(),L=!M&&!O,I=i?.index?(i.index+1)%2===0:!1;return{isFirst:M,isLast:O,isMiddle:L,isOdd:I}},[i,u.collection]);return f.jsx(h,{ref:b,"data-disabled":H(C),"data-first":H($),"data-focus-visible":H(x),"data-hover":H(k),"data-last":H(_),"data-middle":H(N),"data-odd":H(A),"data-selected":H(S),...ie(v,w,c?D:{},Fe(i.props,{enabled:m}),p),className:(n=l.tr)==null?void 0:n.call(l,{class:y}),children:a})});mk.displayName="HeroUI.TableRow";var gk=mk,bk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,rowVirtualizer:m,...b}=e,v=n||"tbody",y=typeof v=="string",x=Pe(t),{rowGroupProps:w}=Rh(),C=P(h?.tbody,o),S=i?.body.props,k=S?.isLoading||S?.loadingState==="loading"||S?.loadingState==="loadingMore",D=[...i.body.childNodes],$=m.getVirtualItems();let _,N;return i.size===0&&S.emptyContent&&(_=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!k&&S.emptyContent})})),k&&S.loadingContent&&(N=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:S.loadingContent}),!_&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(v,{ref:x,...ie(w,Fe(S,{enabled:y}),b),className:(r=s.tbody)==null?void 0:r.call(s,{class:C}),"data-empty":H(i.size===0),"data-loading":H(k),children:[$.map((A,M)=>{const O=D[A.index];return O?f.jsx(gk,{classNames:h,isSelectable:l,node:O,slots:s,state:a,style:{transform:`translateY(${A.start-M*A.size}px)`,height:`${A.size}px`},children:[...O.childNodes].map(L=>L.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:L,rowKey:O.key,selectionMode:p,slots:s,state:a},String(L.key)):f.jsx(fk,{classNames:h,node:L,rowKey:O.key,slots:s,state:a},String(L.key)))},String(O.key)):null}),N,_]})});bk.displayName="HeroUI.VirtualizedTableBody";var SV=bk,Uh=e=>typeof e=="number"?`${e}px`:e,vk=Se((e,t)=>{var r,n,o,s,a;const{as:i,className:l,state:u,node:c,slots:d,classNames:p,sortIcon:h,...m}=e,b=i||"th",v=typeof b=="string",y=Pe(t),{columnHeaderProps:x}=ek({node:c},u,y),w=P(p?.th,l,(r=c.props)==null?void 0:r.className),{isFocusVisible:C,focusProps:S}=nt(),{isHovered:k,hoverProps:D}=vt({}),{hideHeader:$,align:_,width:N,minWidth:A,maxWidth:M,...O}=c.props,L=O.allowsSorting,I={};N&&(I.width=Uh(N)),A&&(I.minWidth=Uh(A)),M&&(I.maxWidth=Uh(M));const z={"aria-hidden":!0,"data-direction":(n=u.sortDescriptor)==null?void 0:n.direction,"data-visible":H(((o=u.sortDescriptor)==null?void 0:o.column)===c.key),className:(s=d.sortIcon)==null?void 0:s.call(d,{class:p?.sortIcon})},F=typeof h=="function"?h(z):g.isValidElement(h)&&g.cloneElement(h,z);return f.jsxs(b,{ref:y,colSpan:c.colspan,"data-focus-visible":H(C),"data-hover":H(k),"data-sortable":H(L),style:I,...ie(x,S,Fe(O,{enabled:v}),L?D:{},m),className:(a=d.th)==null?void 0:a.call(d,{align:_,class:w}),children:[$?f.jsx(wo,{children:c.rendered}):c.rendered,L&&(F||f.jsx(Hy,{strokeWidth:3,...z}))]})});vk.displayName="HeroUI.TableColumnHeader";var yk=vk,xk=Se((e,t)=>{var r,n;const{as:o,className:s,children:a,node:i,slots:l,classNames:u,state:c,...d}=e,p=o||"tr",h=typeof p=="string",m=Pe(t),{rowProps:b}=lV({node:i},c),v=P(u?.tr,s,(r=i.props)==null?void 0:r.className);return f.jsx(p,{ref:m,...ie(b,Fe(i.props,{enabled:h}),d),className:(n=l.tr)==null?void 0:n.call(l,{class:v}),children:a})});xk.displayName="HeroUI.TableHeaderRow";var wk=xk,Ck=g.forwardRef((e,t)=>{var r;const{as:n,className:o,children:s,slots:a,classNames:i,...l}=e,u=n||"thead",c=Pe(t),{rowGroupProps:d}=Rh(),p=P(i?.thead,o);return f.jsx(u,{ref:c,className:(r=a.thead)==null?void 0:r.call(a,{class:p}),...ie(d,l),children:s})});Ck.displayName="HeroUI.TableRowGroup";var Sk=Ck,kk=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,getBaseProps:c,getWrapperProps:d,getTableProps:p}=ck({...e,ref:t}),{rowHeight:h=40,maxTableHeight:m=600}=e,b=g.useCallback(({children:$})=>f.jsx(r,{...d(),ref:x,style:{height:m,display:"block"},children:$}),[d,m]),y=[...o.body.childNodes].length,x=g.useRef(null),[w,C]=g.useState(0),S=g.useRef(null);g.useLayoutEffect(()=>{S.current&&C(S.current.getBoundingClientRect().height)},[S]);const k=x1({count:y,getScrollElement:()=>x.current,estimateSize:()=>h,overscan:5}),D=p();return f.jsxs("div",{...c(),children:[i==="outside"&&a,f.jsx(b,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...D,style:{height:`calc(${k.getTotalSize()+w}px)`,...D.style},children:[f.jsx(Sk,{ref:S,classNames:s.classNames,slots:s.slots,children:o.headerRows.map($=>f.jsx(wk,{classNames:s.classNames,node:$,slots:s.slots,state:s.state,children:[...$.childNodes].map(_=>{var N;return(N=_?.props)!=null&&N.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:_,selectionMode:s.selectionMode,slots:s.slots,state:s.state},_?.key):f.jsx(yk,{classNames:s.classNames,node:_,slots:s.slots,state:s.state},_?.key)})},$?.key))}),f.jsx(SV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,rowVirtualizer:k,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});kk.displayName="HeroUI.VirtualizedTable";var kV=kk,Pk=Se((e,t)=>{var r;const{as:n,className:o,slots:s,state:a,collection:i,isSelectable:l,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:p,classNames:h,...m}=e,b=n||"tbody",v=typeof b=="string",y=Pe(t),{rowGroupProps:x}=Rh(),w=P(h?.tbody,o),C=i?.body.props,S=C?.isLoading||C?.loadingState==="loading"||C?.loadingState==="loadingMore",k=g.useMemo(()=>[...i.body.childNodes].map(_=>f.jsx(gk,{classNames:h,isSelectable:l,node:_,slots:s,state:a,children:[..._.childNodes].map(N=>N.props.isSelectionCell?f.jsx(hk,{checkboxesProps:d,classNames:h,color:u,disableAnimation:c,node:N,rowKey:_.key,selectionMode:p,slots:s,state:a},N.key):f.jsx(fk,{classNames:h,node:N,rowKey:_.key,slots:s,state:a},N.key))},_.key)),[i.body.childNodes,h,l,s,a]);let D,$;return i.size===0&&C.emptyContent&&(D=f.jsx("tr",{role:"row",children:f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper}),colSpan:i.columnCount,role:"gridcell",children:!S&&C.emptyContent})})),S&&C.loadingContent&&($=f.jsxs("tr",{role:"row",children:[f.jsx("td",{className:s?.loadingWrapper({class:h?.loadingWrapper}),colSpan:i.columnCount,role:"gridcell",children:C.loadingContent}),!D&&i.size===0?f.jsx("td",{className:s?.emptyWrapper({class:h?.emptyWrapper})}):null]})),f.jsxs(b,{ref:y,...ie(x,Fe(C,{enabled:v}),m),className:(r=s.tbody)==null?void 0:r.call(s,{class:w}),"data-empty":H(i.size===0),"data-loading":H(S),children:[k,$,D]})});Pk.displayName="HeroUI.TableBody";var PV=Pk,$k=Se((e,t)=>{const{BaseComponent:r,Component:n,collection:o,values:s,topContent:a,topContentPlacement:i,bottomContentPlacement:l,bottomContent:u,removeWrapper:c,sortIcon:d,getBaseProps:p,getWrapperProps:h,getTableProps:m}=ck({...e,ref:t}),{isVirtualized:b,rowHeight:v=40,maxTableHeight:y=600}=e,x=b,w=g.useCallback(({children:C})=>c?C:f.jsx(r,{...h(),children:C}),[c,h]);return x?f.jsx(kV,{...e,ref:t,maxTableHeight:y,rowHeight:v}):f.jsxs("div",{...p(),children:[i==="outside"&&a,f.jsx(w,{children:f.jsxs(f.Fragment,{children:[i==="inside"&&a,f.jsxs(n,{...m(),children:[f.jsx(Sk,{classNames:s.classNames,slots:s.slots,children:o.headerRows.map(C=>f.jsx(wk,{classNames:s.classNames,node:C,slots:s.slots,state:s.state,children:[...C.childNodes].map(S=>{var k;return(k=S?.props)!=null&&k.isSelectionCell?f.jsx(ok,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,color:s.color,disableAnimation:s.disableAnimation,node:S,selectionMode:s.selectionMode,slots:s.slots,state:s.state},S?.key):f.jsx(yk,{classNames:s.classNames,node:S,slots:s.slots,sortIcon:d,state:s.state},S?.key)})},C?.key))}),f.jsx(PV,{checkboxesProps:s.checkboxesProps,classNames:s.classNames,collection:s.collection,color:s.color,disableAnimation:s.disableAnimation,isSelectable:s.isSelectable,selectionMode:s.selectionMode,slots:s.slots,state:s.state})]}),l==="inside"&&u]})}),l==="outside"&&u]})});$k.displayName="HeroUI.Table";var ll=$k,$V=xV,Dt=$V,EV=vV,ul=EV,TV=wV,cl=TV,DV=yV,dl=DV,_V=CV,_t=_V;function IV({proposition:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=Ye();function o(s){return{base:P(s,n?.table?.base),wrapper:P(n?.table?.wrapper),table:P("table-fixed border-collapse",n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent p-0 px-0.5",n?.table?.th),td:P("first:pl-0 py-0 px-0.5 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)}}return f.jsxs("div",{className:P("mt-1 border-small border-default-200 rounded-medium p-2",n?.base),children:[f.jsxs(Fd,{orientation:"horizontal",hideScrollBar:!0,children:[f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o(),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.price+e.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(e.price,{symbol:"€"})}),f.jsx(_t,{children:me(e.creditFee,{symbol:"€"})})]})})]}),f.jsxs(ll,{removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:o("mt-4"),children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:f.jsxs(cl,{children:[f.jsx(_t,{children:me(e.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[e.planVariant.contractTerm," ",r("format.month",{count:e.planVariant.contractTerm})]}),f.jsx(_t,{textValue:"0%",children:"0%"})]})})]})]}),f.jsxs("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:[f.jsx(xg,{i18nKey:"creditInfo.creditBundleDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-credit-bundle-description-link")],values:{creditPrice:me(250,{symbol:"€",dashed:!0}),creditProviderName:e.provider.creditProviderName}})," ",f.jsx("button",{type:"button",onClick:()=>{t("/inkomens-en-lastentoets").then(s=>window.open(s,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink),children:r("detailsModal.moreInformation")})]})]})}function AV(e,t){return e===0?Q.t("format.firstMonth",{count:t}):Q.t("format.thenMonth",{count:t})}function Qt({label:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex justify-between items-center text-sm",r?.container),children:[f.jsx("div",{className:P(r?.label),children:e}),f.jsx("div",{className:P(r?.price),children:t})]})}function Ek({icon:e,title:t,subtitle:r,price:n,classNames:o}){return f.jsxs("div",{className:P("flex justify-between items-center",o?.header),children:[f.jsxs("div",{className:P("flex items-center gap-1",o?.headerContent),children:[f.jsx("div",{className:P(o?.icon),children:e}),f.jsxs("div",{children:[f.jsx("div",{className:P("font-semibold text-sm",o?.title),children:t}),f.jsx("div",{className:P("text-xs text-foreground-500",o?.subtitle),children:r})]})]}),f.jsx("div",{className:P("text-sm font-semibold",o?.price),children:n})]})}function NV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,monthlyFees:a,price:i,creditFee:l,tcoPerMonth:u,handsetCreditMonthlyFee:c,tcoTerm:d,tcoCorrection:p,activationFee:h,cashback:m,productVersion:b,installationFee:v}=e,y=t?.averageSection,x=t?.discountSection;return f.jsxs("div",{className:P("pb-4",t?.base),children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large",y?.container),children:[f.jsx(Ek,{icon:f.jsx(_g,{size:24,className:"stroke-foreground"}),title:n("detailsModal.costPerContractTermTitle"),subtitle:n("detailsModal.costPerContractTermSubtitle"),price:me(u),classNames:{header:y?.header,headerContent:y?.headerContent,icon:y?.icon,title:y?.title,subtitle:y?.subtitle,price:y?.price}}),f.jsx("div",{className:P("text-sm mt-2",y?.monthlyFeesContainer),children:a.map(({fee:w,term:C})=>f.jsx(Qt,{label:`${n("format.monthly")} ${C} x ${me(w,{symbol:"€"})}`,price:me(w*C),classNames:y?.monthlyFee},`${C}-${w}`))}),i!==0&&f.jsx(Qt,{label:n("format.oneTime"),price:me(i),classNames:y?.oneTimeFee}),f.jsx(Qt,{label:`${s.name} ${n("detailsModal.activationFee")}`,price:me(h),classNames:y?.activationFee}),o==="fixed"&&f.jsx(Qt,{label:`${s.name} ${n("detailsModal.installationFee")}`,price:me(v),classNames:y?.installationFee}),m!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:`-${me(m)}`,classNames:y?.cashback}),p!==0&&f.jsx(Qt,{label:n("detailsModal.cashback"),price:me(p),classNames:y?.cashback}),f.jsx(Ao,{orientation:"horizontal",className:P("my-3",y?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalCostsOverTerm",{count:d}),price:me(u*d),classNames:y?.totalCosts})]}),o==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("bg-primary-50 px-3 py-2 rounded-large text-sm mt-3",x?.container),children:[f.jsx(Ek,{icon:f.jsx(tu,{size:24,className:"stroke-foreground"}),title:n("detailsModal.deviceDiscountTitle"),subtitle:n("detailsModal.deviceDiscountSubtitle"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:{header:x?.header,headerContent:x?.headerContent,icon:x?.icon,title:x?.title,subtitle:x?.subtitle,price:x?.price}}),f.jsx(Qt,{label:n("detailsModal.priceWithoutSubscription"),price:me(Number(b?.pricing.sellingPriceInclVat)),classNames:{container:P("my-2",x?.priceWithoutSubscription?.container),label:x?.priceWithoutSubscription?.label,price:x?.priceWithoutSubscription?.price}}),a.map(({fee:w,term:C},S)=>f.jsxs("div",{children:[f.jsx(Qt,{label:n("detailsModal.priceWithSubscription"),price:me(c*C+i),classNames:x?.priceWithSubscription}),f.jsx(Qt,{label:f.jsxs(f.Fragment,{children:[S===a.length-1?n("detailsModal.deviceBundle"):AV(S,C)," ",C," x ",me(c,{symbol:"€"})]}),price:me(c*C),classNames:{container:P(x?.handsetCosts?.container),label:P("pl-4",x?.handsetCosts?.label),price:P(x?.handsetCosts?.price)}})]},`discount-${C}-${w}-${c}-${i}`)),f.jsx(Qt,{label:n("detailsModal.devicePrice"),price:me(i),classNames:{container:P(x?.oneTimeFee?.container),label:P("pl-4",x?.oneTimeFee?.label),price:P(x?.oneTimeFee?.price)}}),f.jsx(Ao,{orientation:"horizontal",className:P("my-3",x?.separator)}),f.jsx(Qt,{label:n("detailsModal.totalDeviceDiscount"),price:me(b?.pricing.sellingPriceInclVat?Number(b.pricing.sellingPriceInclVat)-(l+i):void 0),classNames:x?.totalDiscount})]}),f.jsx("div",{className:P("text-xs text-foreground-500 mt-6",t?.creditInfoLabel),children:n("creditInfo.creditBundleTitle")}),f.jsx(IV,{proposition:e,buildClickOutUrl:r})]})]})}function fl({label:e,originalPrice:t,currentPrice:r,hasMonthlyPrice:n=!0,classNames:o}){return f.jsxs("div",{className:P("flex justify-between",o?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",o?.label),children:e}),n&&f.jsxs("div",{className:P("flex items-center gap-2",o?.priceContainer),children:[t&&f.jsx("div",{className:P("line-through text-foreground-400",o?.originalPrice),children:me(t)}),f.jsx("div",{className:P(o?.currentPrice),children:me(r)})]})]})}function Tk({term:e,price:t,classNames:r}){return f.jsxs("div",{className:P("flex text-sm text-foreground-400 justify-between",r?.container),children:[f.jsxs("div",{className:P("flex items-center gap-1",r?.label),children:[f.jsx(ME,{size:16,className:P("stroke-foreground-400",r?.icon)}),Q.t("format.afterMonth",{count:e})]}),f.jsx("div",{className:P(r?.price),children:me(t)})]})}function MV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),{productType:o,provider:s,planVariant:a,bundles:i,monthlyFees:l,price:u,handsetCreditMonthlyFee:c,baseMonthlyFee:d,lifetimeMonthlyFee:p,productVersion:h}=e,m=l[l.length-1].fee,b=d>m?d:m,v=i.filter(_=>!_.contentTypes?.includes("handset_service")),y=v.filter(_=>_.contentTypes?.includes("combi_deal")),x=l&&l[l.length-1].fee!==p,w=l?.reduce((_,N)=>_+N.term,0),C=c>0?d-c:y.length?b-(y[0].baseMonthlyFee||0):b,S=c>0?l[0].fee-c:l[0].fee,k=S!==void 0&&C!==S,D=k?C:void 0,$=k?S:C;return f.jsxs("div",{className:P(t?.base),children:[f.jsxs("div",{className:P("mb-8",t?.monthlySection),children:[f.jsxs("div",{className:P("mb-2",t?.monthlyFeesContainer),children:[f.jsxs("div",{className:P("text-lg font-bold flex justify-between",t?.monthlyPriceHeader?.container),children:[f.jsx("div",{className:P(t?.monthlyPriceHeader?.label),children:n("format.monthly")}),f.jsx("div",{className:P(t?.monthlyPriceHeader?.price),children:me(l[0].fee)})]}),l?.map((_,N)=>{if(N+1===l?.length)return null;const A=l?.slice(0,N+1).reduce((M,O)=>M+O.term,0);return f.jsx(Tk,{term:A,price:l[N+1]?.fee||0,classNames:t?.monthlyFeeTransition},_.term)}),x&&w&&p&&f.jsx(Tk,{term:w,price:p,classNames:t?.lifetimeFee})]}),f.jsx(fl,{label:f.jsxs(f.Fragment,{children:[s.name," ",a.contractType==="retention"?`${n("detailsModal.renewal").toLowerCase()} `:"",sl(a.contractTerm)]}),originalPrice:D,currentPrice:$,classNames:t?.providerContract}),v.map(_=>{const N=_.contentTypes?.includes("combi_deal"),A=N&&_.promotionMonthlyFee||_.baseMonthlyFee||0,M=!N&&_.promotionMonthlyFee!==_.baseMonthlyFee&&_.promotionMonthlyFee||void 0,O=M!==void 0&&A!==M,L=O?A:void 0,I=O?M:A,z=A!==0||M!==void 0&&M!==0;return f.jsx(fl,{label:_.displayName,originalPrice:L,currentPrice:I,hasMonthlyPrice:z,classNames:{container:P("text-sm text-foreground-400",t?.bundle?.container),label:P("pl-4",t?.bundle?.label),priceContainer:t?.bundle?.priceContainer,originalPrice:t?.bundle?.originalPrice,currentPrice:t?.bundle?.currentPrice}},_.displayName)}),c>0&&f.jsx(fl,{label:n("detailsModal.deviceBundle"),currentPrice:c,classNames:{container:P("mt-2",t?.handsetBundle?.container),label:t?.handsetBundle?.label,priceContainer:t?.handsetBundle?.priceContainer,currentPrice:t?.handsetBundle?.currentPrice}}),o==="smartphone"&&f.jsxs(f.Fragment,{children:[f.jsx(Ao,{orientation:"horizontal",className:P("my-4",t?.separator)}),f.jsxs("div",{className:P("text-lg font-bold flex justify-between mb-1",t?.oneTimeSection?.header?.container),children:[f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.header?.label),children:n("format.oneTime")}),f.jsx("div",{className:P("flex items-center gap-2",t?.oneTimeSection?.header?.price),children:f.jsx("div",{children:me(u)})})]}),f.jsx(fl,{label:f.jsx("div",{className:P("flex items-center gap-1",t?.oneTimeSection?.productRow?.label),children:h?.fullName}),currentPrice:u,classNames:t?.oneTimeSection?.productRow})]})]}),f.jsx(NV,{proposition:e,classNames:t?.propositionOverview,buildClickOutUrl:r})]})}function Cr({title:e,rows:t,classNames:r}){return t.length===0?null:f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-semibold",r?.title),children:e}),f.jsxs(ll,{removeWrapper:!0,hideHeader:!0,isCompact:!0,"aria-label":e,classNames:{base:P(r?.table?.base),wrapper:P(r?.table?.wrapper),table:P("table-fixed",r?.table?.table),thead:P(r?.table?.thead),tbody:P(r?.table?.tbody),tr:P("border-b border-default-100",r?.table?.tr),th:P(r?.table?.th),td:P(r?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:"Label"}),f.jsx(Dt,{children:"Waarde"})]}),f.jsx(dl,{children:t.map(n=>f.jsxs(cl,{children:[f.jsx(_t,{children:n.label}),f.jsx(_t,{children:n.value})]},n.key))})]})]})}function OV({proposition:e,classNames:t,buildClickOutUrl:r}){const{t:n}=Oe(),o=e.bundles.filter(c=>c.isExtra),s=e.tags.find(c=>c.type==="internet"),a=e.productType==="fixed"?[{label:n("detailsModal.provider"),value:e.provider.name,key:"provider"},...e.provider.network?[{label:n("detailsModal.networkAdministrator"),value:e.provider.network.replace(/-netwerk/g,""),key:"networktype"}]:[],...s?[{label:n("detailsModal.networkType"),value:n(`fixedInternet.${s.slug}`,{defaultValue:s.label}),key:"networktype"}]:[]]:[{label:n("detailsModal.network"),value:`${e.provider.network?.replace(/-netwerk/g,"")} ${n("detailsModal.network").toLowerCase()}`,key:"network"},{label:n("detailsModal.networkCoverage"),value:e.provider.networkCoverage,key:"networktype"}],i=e.productType==="fixed"?[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"}]:[{label:n("detailsModal.contractTerm"),value:`${sl(e.planVariant.contractTerm)}${e.planVariant.contractTerm===1?` ${n("detailsModal.contractTermCancelable")}`:""}`,key:"duration"},{label:n("detailsModal.subscriptionType"),value:e.planVariant.name,key:"subscription-type"},{label:n("detailsModal.internet"),value:Xt(e.content.data,n("format.gigabyte")),key:"internet"},{label:n("detailsModal.calling"),value:Xt(e.content.minutes,n("format.minutes")),key:"calling"},{label:n("detailsModal.sms"),value:Xt(e.content.sms,n("format.sms")),key:"sms"},...o.length>0?[{label:n("detailsModal.extras"),value:o.map(c=>c.displayName).join(", "),key:"extras"}]:[]],l=e.productType==="fixed"?[]:[{label:n("detailsModal.networkGeneration"),value:A3(e.content.networkGeneration),key:"network-generation"},{label:n("detailsModal.downloadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedDown/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedDown/1e3," ",n("format.megabitPerSecond")]}),key:"download-speed"},{label:n("detailsModal.uploadSpeed"),value:f.jsxs(f.Fragment,{children:[n("format.maximum")," ",e.content.dataSpeedUp/1e3," ",n("format.megabitPerSecond"),f.jsx("br",{}),n("format.average")," ",e.content.dataAvgSpeedUp/1e3," ",n("format.megabitPerSecond")]}),key:"upload-speed"}],u=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{r(`/${e.provider.termsAndConditionsUrl}`).then(c=>window.open(c,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[n("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Cr,{title:n("detailsModal.network"),rows:a,classNames:t}),f.jsx(Cr,{title:e.productType==="fixed"?n("detailsModal.subscription"):n("detailsModal.bundle"),rows:i,classNames:t}),f.jsx(Cr,{title:n("detailsModal.bundleSpeed"),rows:l,classNames:t}),e.productType==="fixed"&&f.jsx(Cr,{title:n("detailsModal.termsAndConditions"),rows:u,classNames:t})]})}function jV({proposition:e,classNames:t,onChannelsClick:r,buildClickOutUrl:n}){const{t:o}=Oe(),{plan:s,content:a,bundles:i,provider:l,productType:u}=e,{sharedCredits:c}=a,d=Xt(a.dataEu,o("format.gigabyte")),p=Xt(a.minutesEu,o("format.minutes")),h=Xt(a.minutesToEu,o("format.minutes")),m=["data","minutes"].every(w=>c?.includes(w))?"/":"+";if(u==="fixed"){const w=[{label:o("detailsModal.maximumDownloadSpeed"),value:`${a.dataSpeedDown/1e3} ${o("format.megabitPerSecond")}`,key:"download-speed"},{label:o("detailsModal.maximumUploadSpeed"),value:`${a.dataSpeedUp/1e3} ${o("format.megabitPerSecond")}`,key:"upload-speed"}],C=i.filter(S=>S.contentTypes?.includes("tv"))?.length>0?[{label:o("detailsModal.numberOfChannels"),value:f.jsxs("button",{type:"button",onClick:r,className:P("text-primary-600 hover:underline cursor-pointer",t?.link),children:[a.channels.length," (",a.hdChannels.length," HD)"]}),key:"channels"},{label:o("detailsModal.numberOfReceivers"),value:a.receivers,key:"receivers"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Cr,{title:o("detailsModal.internet"),rows:w,classNames:t}),C.length>0&&f.jsx(Cr,{title:o("detailsModal.television"),rows:C,classNames:t})]})}const b=[{label:o("detailsModal.dataExceedance"),value:s.bundleExceedanceDataLimitReached,key:"data-exceedance"},{label:o("detailsModal.bundleExceedanceRates"),value:s.bundleExceedanceRate,key:"exceedance-rate"},{label:o("detailsModal.bundleExceedanceRateCeiling"),value:s.bundleExceedanceRateCeiling,key:"rate-ceiling"},{label:o("detailsModal.bundleExceedanceWarning"),value:s.bundleExceedanceWarning,key:"warning"},{label:o("detailsModal.bundleExceedanceMinutesRounding"),value:s.bundleExceedanceMinutesRounding,key:"minutes-rounding"}],v=[{label:o("detailsModal.upgradeBundle"),value:s.bundleUpgrade,key:"upgrade"},{label:o("detailsModal.downgradeBundle"),value:s.bundleDowngrade,key:"downgrade"}],y=[{label:o("detailsModal.insideEu"),value:a.minutesEu>0?`${d} ${m} ${p}`:d,key:"in-eu"},{label:o("detailsModal.outsideEu"),value:f.jsxs("button",{type:"button",onClick:()=>{n(`/tariefinformatie/${l.slug}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.moreInformation")," ",f.jsx(ts,{size:16})]}),key:"out-eu"},...a.minutesToEu>0?[{label:o("detailsModal.minutesToEu"),value:h,key:"to-eu"}]:[]],x=e.provider.termsAndConditionsUrl?[{label:e.provider.name,value:f.jsxs("button",{type:"button",onClick:()=>{n(`/${e.provider.termsAndConditionsUrl}`).then(w=>window.open(w,"_blank"))},className:P("text-primary-600 hover:underline flex items-center gap-0.5 cursor-pointer",t?.link),children:[o("detailsModal.termsAndConditions")," ",f.jsx(ts,{size:16})]}),key:"terms-conditions"}]:[];return f.jsxs("div",{className:P("text-sm space-y-4 pb-4",t?.base),children:[f.jsx(Cr,{title:o("detailsModal.outsideBundle"),rows:b,classNames:t}),f.jsx(Cr,{title:o("detailsModal.subscriptionFlexibility"),rows:v,classNames:t}),f.jsx(Cr,{title:o("detailsModal.abroad"),rows:y,classNames:t}),f.jsx(Cr,{title:o("detailsModal.termsAndConditions"),rows:x,classNames:t})]})}function FV(e){const t=[e.provider.name,e.plan?.name];return e.planVariant.contractTerm===24?t.push(`2 ${Q.t("format.year",{count:2})}`):e.planVariant.contractTerm===12&&t.push(`1 ${Q.t("format.year")}`),e.planVariant.contractType==="retention"&&t.push(Q.t("detailsModal.renewal")),Array.from(new Set(t)).join(" ").trim()}function pl({isOpen:e,onOpenChange:t,proposition:r,defaultTab:n="general",buildClickOutUrl:o}){const{t:s}=Oe(),[a,i]=Co(),{results:{detailsModal:l}={}}=Ye(),{popoverProps:u}=on(),[c,d]=g.useState(n);if(!r)return null;const p=Xt(r.content.data,s("format.gigabyte")),{sharedCredits:h}=r.content,m=["data","minutes"].every(v=>h?.includes(v))?"/":"+",b=r.tags.find(v=>v.type==="internet");return f.jsx($o,{isOpen:e,onOpenChange:t,placement:"bottom-center",scrollBehavior:"inside",size:"lg",portalContainer:u.portalContainer,classNames:{backdrop:P(l?.modal?.backdrop),wrapper:P(l?.modal?.wrapper),base:P(l?.modal?.base),header:P(l?.modal?.header),body:P(l?.modal?.body),footer:P(l?.modal?.footer),closeButton:P("cursor-pointer right-6 top-3.5",l?.modal?.closeButton)},children:f.jsxs(ko,{children:[f.jsx(Po,{children:f.jsx("span",{children:s("detailsModal.title")})}),f.jsxs(So,{onPointerDown:v=>v.stopPropagation(),children:[f.jsxs("div",{className:P("flex items-center gap-2",l?.propositionInfo?.container),children:[r.productType==="smartphone"&&r.productVersion?f.jsx(Jt,{src:a(r.productVersion.media.main?.url||"",64,64),srcSet:i(r.productVersion.media.main?.url||"",64,64),alt:r.productVersion.media.main?.altText||"",width:64,height:64,className:P(l?.propositionInfo?.image)}):f.jsx(Jt,{src:a(r.provider.imageUrl,48,24),srcSet:i(r.provider.imageUrl,48,24),alt:r.provider.name,width:48,height:24,className:P(l?.propositionInfo?.image)}),f.jsxs("div",{className:P("text-sm",l?.propositionInfo?.content),children:[r.productType!=="smartphone"&&f.jsx("div",{className:P("font-semibold",l?.propositionInfo?.name),children:FV(r)}),r.productType==="fixed"?f.jsxs("div",{className:P(l?.propositionInfo?.details),children:[r.content.dataSpeedDown/1e3," ",s("format.megabitPerSecond")," ",b?s(`fixedInternet.${b.slug}`,{defaultValue:b.label}):""]}):f.jsx("div",{className:P(l?.propositionInfo?.details),children:r.content.minutes>0?f.jsxs("div",{children:[f.jsx("span",{children:p})," ",m," ",f.jsxs("span",{children:[Oh(r.content.minutes)," ",s("format.minutes_short")]})]}):f.jsx("div",{children:p})}),r.productType==="smartphone"&&f.jsxs("div",{children:[f.jsxs("div",{className:P("font-semibold",l?.propositionInfo?.productName),children:[r.productVersion?.product.fullName," "]}),f.jsx("div",{className:P("text-xs",l?.propositionInfo?.productProperties),children:r.productVersion?.distinctProperties.map(v=>v.option.label).join(", ")})]})]})]}),f.jsxs(c1,{onPointerDown:v=>v.stopPropagation(),selectedKey:c,radius:"full",color:"primary","aria-label":s("detailsModal.chooseTab"),classNames:{base:P(l?.tabs?.base),tabList:P("relative",l?.tabs?.tabList),tab:P(l?.tabs?.tab),panel:P("h-[60vh]",l?.tabs?.panel),cursor:P(l?.tabs?.cursor)},children:[f.jsx(Io,{title:s("detailsModal.general"),onClick:()=>d("general"),children:f.jsx(OV,{proposition:r,classNames:l?.general,buildClickOutUrl:o})},"general"),f.jsx(Io,{title:r.productType==="fixed"?s("detailsModal.bundles"):s("detailsModal.conditions"),onClick:()=>d("conditions"),children:f.jsx(jV,{proposition:r,classNames:l?.terms,onChannelsClick:()=>d("channels"),buildClickOutUrl:o})},"conditions"),r.productType==="fixed"&&f.jsx(Io,{title:s("detailsModal.channels"),onClick:()=>d("channels"),children:f.jsx(WL,{channels:r.content.channels,hdChannels:r.content.hdChannels,classNames:l?.channels})},"channels"),f.jsx(Io,{title:s("detailsModal.costs"),onClick:()=>d("costs"),children:f.jsx(MV,{proposition:r,classNames:l?.costOverview,buildClickOutUrl:o})},"costs")]})]})]})})}function Dk({label:e,classNames:t}){return f.jsx("div",{className:P("px-4",t?.wrapper),children:f.jsx("div",{className:P("w-full text-background text-xs font-semibold text-center px-4 rounded-t-xl h-6 flex items-center justify-center shadow-small",{"bg-primary":e.color==="primary","bg-secondary":e.color==="secondary","bg-default":e.color==="default","bg-success":e.color==="success","bg-warning":e.color==="warning","bg-danger":e.color==="danger"},t?.text),children:e.displayName})})}function BV({productStockStatus:e,classNames:t}){const{t:r}=Oe(),n=r("propositionCard.availableStockStatus"),o=r("propositionCard.backorderedStockStatus"),s=r("propositionCard.preOrderStockStatus"),a=g.useMemo(()=>{switch(e){case"in_stock":return n;case"backordered":return o;case"preorder":return s;default:return null}},[e,n,o,s]);return a?f.jsxs("div",{className:P("text-center flex items-center justify-center gap-1.5",t?.wrapper),children:[f.jsx("div",{className:P("size-2 rounded-full",{"bg-success":e==="in_stock"||e==="preorder","bg-warning":e==="backordered"},t?.icon)}),f.jsx("span",{className:P("text-sm text-foreground",t?.text),children:a})]}):null}function _k({hasProduct:e,productImageUrl:t,productImageAlt:r,productStockStatus:n,propositionImageUrl:o,propositionImageAlt:s,horizontal:a,classNames:i}){const[l,u]=Co();if(e){const c=a?140:200;return f.jsxs("div",{className:P("flex flex-col gap-2 items-center w-full",i?.phoneImage?.wrapper),children:[t&&r&&f.jsx(Jt,{alt:r,height:c,src:l(t,c,c),srcSet:u(t,c,c),width:c,classNames:{wrapper:P("mx-auto flex shrink-0",i?.phoneImage?.imageWrapper),img:P("aspect-square drop-shadow-lg",i?.phoneImage?.image)}}),f.jsx(BV,{productStockStatus:n,classNames:i?.phoneImage?.stockIndicator})]})}return f.jsx(Jt,{alt:s,height:70,src:l(o,140,70),srcSet:u(o,140,70),width:140,classNames:{wrapper:P("mx-auto flex shrink-0",i?.providerImage?.imageWrapper),img:P("aspect-2/1",i?.providerImage?.image)}})}function Ik({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,tcoPerMonth:n,onInfoClick:o,classNames:s,horizontal:a}){const{t:i}=Oe(),[l,u]=t.split(",");return f.jsxs("div",{className:P("flex flex-col",a&&"items-end text-right",s?.wrapper),children:[e&&f.jsx("div",{className:P("text-sm text-foreground-500 whitespace-nowrap",s?.promotionText),children:e}),f.jsxs("div",{className:P("flex items-end gap-1",s?.monthlyFeeWrapper),children:[f.jsxs("div",{className:P("flex items-start font-extrabold -tracking-[1px] text-foreground h-8 text-[32px] leading-8",s?.monthlyFeeValue),children:[f.jsx("span",{children:l}),f.jsx("span",{className:"font-bold mt-0.5 ml-[3px] text-[22px] leading-8",children:","}),f.jsx("span",{className:"font-bold -mt-[3px] -ml-[3px] text-lg leading-8",children:u})]}),f.jsxs("div",{className:P("text-sm text-foreground leading-none",s?.monthlyFeeLabel),children:["/ ",i("format.month")]})]}),r&&f.jsxs("div",{className:P("text-sm font-semibold text-foreground",s?.oneTimeFee),children:["+ ",f.jsx("span",{children:r})," ",i("propositionCard.oneTimeFee")]}),n&&f.jsxs("div",{className:P("flex items-center gap-1 text-sm mt-1",s?.averagePriceWrapper),children:[f.jsx(_g,{size:16,className:P("text-primary-600",s?.averagePriceIcon)}),f.jsxs("button",{type:"button",className:P("underline underline-offset-4 text-primary-600 cursor-pointer",s?.averagePriceValue),onPointerDown:c=>{c.preventDefault(),c.stopPropagation()},onClick:c=>{c.preventDefault(),c.stopPropagation(),o("costs")},onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),o("costs"))},tabIndex:0,children:[i("format.average_short")," ",n," / ",i("format.month")]})]})]})}function Ak({promotions:e,urgentText:t,classNames:r}){return f.jsxs("div",{className:P("flex flex-col gap-0",r?.base),children:[t&&f.jsx(f2,{classNames:{base:P("mb-1 border-1 text-xs",r?.urgentChip?.base),content:P("font-semibold",r?.urgentChip?.content)},color:"warning",size:"sm",variant:"bordered",children:f.jsx("span",{children:t})}),e.map(n=>f.jsxs("div",{className:P("flex flex-row items-center gap-1 text-sm @xs:text-base leading-none",r?.item),children:[f.jsx(LE,{size:20,className:P("shrink-0 text-success-600",r?.promotionIcon)}),f.jsx("span",{children:n})]},n))]})}function zV({slug:e,size:t=16,className:r}){switch(e){case"contract-term":return f.jsx(VE,{size:t,className:r});case"data-speed-down":return f.jsx(UE,{size:t,className:r});case"provider-network":return f.jsx(FE,{size:t,className:r});case"data-eu":return f.jsx(GE,{size:t,className:r});case"internet-speed":return f.jsx(OE,{size:t,className:r});case"channels":return f.jsx(RE,{size:t,className:r});case"tv-receiver":return f.jsx(KE,{size:t,className:r});default:return null}}function Nk({productTitle:e,propositionTitle:t,propositionSubtitle:r,imageUrl:n,imageAlt:o,hasProduct:s,horizontal:a,propositionSpecifications:i,onInfoClick:l,classNames:u}){const[c,d]=Co(),p=70,h=35;return f.jsxs("div",{className:P("flex flex-col",u?.base),children:[f.jsxs("div",{className:P("flex justify-between gap-3 w-full",a&&"w-fit",u?.titleWrapper),children:[f.jsxs("div",{children:[s&&e&&f.jsx("div",{className:P("text-base leading-tight font-bold @xs:text-xl",u?.phone?.title),children:e}),s&&f.jsxs("div",{className:P("text-sm leading-tight @xs:text-base",u?.phone?.subtitle),children:[t," • ",r]}),!s&&f.jsxs("div",{className:P("flex flex-row items-center gap-1 leading-tight",u?.proposition?.wrapper),children:[f.jsx("span",{className:P("text-xl font-extrabold text-foreground",u?.proposition?.title),children:t}),f.jsxs("span",{className:P(u?.proposition?.subtitle),children:["• ",r]})]})]}),s&&n&&o&&f.jsx(Jt,{alt:o,height:h,src:c(n,p,h),srcSet:d(n,p,h),width:p,classNames:{wrapper:P("flex shrink-0",u?.phone?.providerImageWrapper),img:P("aspect-2/1",u?.phone?.providerImage)}})]}),!s&&i&&f.jsx("div",{className:P("flex flex-wrap items-center gap-x-2 gap-y-1 text-foreground-500",u?.proposition?.specifications?.wrapper),children:i.map(m=>f.jsxs("button",{type:"button",className:P("text-sm flex items-center gap-1 cursor-pointer hover:underline whitespace-nowrap",u?.proposition?.specifications?.item),onPointerDown:b=>{b.preventDefault(),b.stopPropagation()},onClick:b=>{b.preventDefault(),b.stopPropagation(),l?.(m.slug==="channels"?"channels":"general")},children:[f.jsx(zV,{slug:m.slug,className:P(u?.proposition?.specifications?.icon)}),f.jsx("span",{children:m.title})]},m.title))})]})}function Mk({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Nd,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container flex flex-row",w?.card),children:[f.jsx("div",{className:P("p-6 w-fit",w?.horizontalCard?.header),children:f.jsx(_k,{horizontal:!0,hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsx(Ao,{orientation:"vertical",className:P(w?.horizontalCard?.divider)}),f.jsxs("div",{className:P("p-6 flex flex-col gap-3 flex-1 w-fit",w?.horizontalCard?.body),children:[f.jsx(Nk,{horizontal:!0,hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Ak,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsxs("div",{className:P("p-6 pl-0 flex flex-col items-end gap-4 shrink-0 self-end",w?.horizontalCard?.footer),children:[f.jsx(Ik,{horizontal:!0,monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing}),f.jsx(Ht,{className:P("font-medium gap-1 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function LV({label:e,...t}){const{results:{propositionCard:r}={}}=Ye();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:{wrapper:r?.label?.wrapper,text:P("w-max",r?.label?.text)}}),f.jsx(Mk,{classNames:r,...t})]}):f.jsx(Mk,{classNames:r,...t})}function Ok({onClick:e,onInfoClick:t,disabled:r,productTitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:a,propositionSubtitle:i,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:b,urgentText:v,productStockStatus:y,productPrice:x,classNames:w}){const{t:C}=Oe(),S=!!(n&&o&&s);return f.jsxs(Nd,{as:"div",isDisabled:r,disableRipple:!0,disableAnimation:!0,shadow:"sm",radius:"lg",className:P("@container h-full",w?.card),children:[f.jsx(p7,{className:P("p-3 pt-6 @xs:px-6",w?.verticalCard?.header),children:f.jsx(_k,{hasProduct:S,productImageUrl:o,productImageAlt:s,productStockStatus:y,propositionImageUrl:l,propositionImageAlt:u,classNames:w?.mainImage})}),f.jsxs(S1,{className:P("py-0 px-3 @xs:px-6 gap-2 overflow-hidden",w?.verticalCard?.body),children:[f.jsx(Nk,{hasProduct:S,productTitle:n,propositionTitle:a,propositionSubtitle:i,propositionSpecifications:c,onInfoClick:t,imageUrl:l,imageAlt:u,classNames:w?.propositionHeader}),f.jsx(Ak,{promotions:[...h,...m],urgentText:v,classNames:w?.promotionList})]}),f.jsx(Ao,{className:P("mt-3",w?.verticalCard?.divider)}),f.jsxs(f7,{className:P("flex-col justify-between items-start text-start p-3 @xs:p-6 @xs:pt-3",w?.verticalCard?.footer),children:[f.jsx("div",{className:"w-full",children:f.jsx(Ik,{monthlyFeePromotionText:b,productPrice:x,monthlyFee:d,tcoPerMonth:p,onInfoClick:t,classNames:w?.pricing})}),f.jsx(Ht,{className:P("font-medium gap-1 mt-4 rounded-full",r&&"pointer-events-none",w?.button),color:"secondary",size:"lg",fullWidth:!0,disabled:r,onPress:r?void 0:e,endContent:f.jsx(ts,{size:16}),disableAnimation:!0,disableRipple:!0,children:C("propositionCard.cta")})]})]})}function VV({label:e,...t}){const{results:{propositionCard:r}={}}=Ye();return e?f.jsxs("div",{className:P("flex flex-col",r?.cardWrapper),children:[f.jsx(Dk,{label:e,classNames:r?.label}),f.jsx(Ok,{classNames:r,...t})]}):f.jsx(Ok,{classNames:r,...t})}function zn({horizontal:e,...t}){return e?f.jsx(LV,{...t}):f.jsx(VV,{...t})}function Hh(e,t){if(!t)return e;const r=Math.floor(parseFloat(t));return Number.isNaN(r)||r<=20?e:[...e,`€ ${r},- ${Q.t("propositionCard.deviceDiscount")}`]}function pn(e,t=500,r=7){if(!e)return!1;const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function RV(e){return e.sort((t,r)=>{if(pn(t)&&pn(r)){const n=new Date(t.validUntil),o=new Date(r.validUntil);return n.getTime()===o.getTime()?r.weight-t.weight:n.getTime()-o.getTime()}return pn(t)&&!pn(r)?-1:pn(r)&&!pn(t)?1:r.weight-t.weight})}function Ln(e){const t=RV(e.specialPromotions.filter(l=>l.shortDescription&&!l.shortDescription.includes("toestelkorting")&&l.weight>200)),r=pn(t[0])?t[0]?.shortDescription:null,n=r?t.slice(1):t,o=r?[r]:[],s=n.map(l=>l.shortDescription).filter(l=>!!l),a=e.bundles.flatMap(l=>l.usps);if(e.productType!=="fixed")return[...o,...a,...s];const i=e.bundles.filter(l=>l.contentTypes?.includes("tv")||l.contentTypes?.includes("phone")).map(l=>l.displayName).filter(l=>!!l);return[...o,...i,...a,...s]}function Vn(e){const t=e.filter(n=>pn(n));if(t.length===0)return;const r=Math.min(...t.map(n=>{const o=new Date,s=new Date(n.validUntil);return Math.ceil((s.getTime()-o.getTime())/(1440*60*1e3))}))+1;return Q.t("propositionCard.urgentText",{days:r,count:r})}function hl({isReachingEnd:e,loadMore:t,isValidating:r,className:n}){const{t:o}=Oe();return e?null:f.jsx(Ht,{className:P("font-medium mx-auto text-primary-600 border-primary-600 min-w-[234px] rounded-full",n),onPress:t,color:"primary",variant:"flat",size:"md",disableAnimation:!0,disableRipple:!0,isLoading:r,disabled:r,endContent:!r&&f.jsx(BE,{size:20}),children:o(r?"productResults.loadMore":"productResults.showMoreOffers")})}function KV({size:e,height:t,width:r,className:n,style:o,...s}){return f.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...s,children:[f.jsx("title",{children:"Search Loading Icon"}),f.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),f.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),f.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),f.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),f.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function WV({address:e}){const{t}=Oe(),{results:{postcodeCheckLoading:r}={}}=Ye();return f.jsxs("div",{className:P("flex flex-row items-center justify-center md:gap-6 rounded-large bg-white p-4 shadow-md mb-4",r?.base),children:[f.jsx(KV,{className:P("animate-pulse shrink-0 size-20 md:size-[106px]",r?.icon)}),f.jsxs("div",{className:P("max-w-[215px] text-center flex flex-col items-center gap-2",r?.textWrapper),children:[f.jsx("div",{className:P("text-base md:text-xl font-bold leading-none text-foreground",r?.heading),children:t("postcodeCheck.loading")}),f.jsxs("div",{className:P("text-xs md:text-sm text-foreground leading-none",r?.addressText),children:[e.street," ",VL(e.number,e.numberAddon),", ",e.city]})]})]})}function ml(){const{t:e}=Oe(),{results:{resultsNotFound:t}={}}=Ye();return f.jsxs("div",{children:[f.jsx("div",{className:P("text-base font-bold text-foreground mb-1 lg:hidden",t?.filterChips?.title),children:e("filters.chosenFilters")}),f.jsx(p2,{className:"mb-6 lg:hidden"}),f.jsx(lh,{color:"warning",variant:"faded",title:e("productResults.noResultsTitle"),description:e("productResults.noResultsDescription"),hideIconWrapper:!0,classNames:{base:P(t?.alert?.base),title:P(t?.alert?.title),description:P(t?.alert?.description),mainWrapper:P(t?.alert?.mainWrapper),closeButton:P(t?.alert?.closeButton),iconWrapper:P(t?.alert?.iconWrapper),alertIcon:P(t?.alert?.alertIcon)}})]})}function Rn({count:e,horizontal:t,large:r}){const{results:{skeletonCard:n}={}}=Ye();return f.jsx(f.Fragment,{children:Array.from({length:e}).map((o,s)=>f.jsx(Id,{className:P("shadow-small rounded-large",r?"h-140":"h-100",t&&(r?"h-54":"h-46"),n)},s))})}const UV=void 0,qh=Object,jk=e=>e===UV,HV=e=>typeof e=="function",gl=new WeakMap,qV=e=>qh.prototype.toString.call(e),Gh=(e,t)=>e===`[object ${t}]`;let GV=0;const Zh=e=>{const t=typeof e,r=qV(e),n=Gh(r,"Date"),o=Gh(r,"RegExp"),s=Gh(r,"Object");let a,i;if(qh(e)===e&&!n&&!o){if(a=gl.get(e),a)return a;if(a=++GV+"~",gl.set(e,a),Array.isArray(e)){for(a="@",i=0;i<e.length;i++)a+=Zh(e[i])+",";gl.set(e,a)}if(s){a="#";const l=qh.keys(e).sort();for(;!jk(i=l.pop());)jk(e[i])||(a+=i+":"+Zh(e[i])+",");gl.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},ZV=e=>{if(HV(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Zh(e):"",[e,t]},YV=e=>ZV(e?e(0,null):null)[0],Yh=Promise.resolve(),bl=px(ad,e=>(t,r,n)=>{const o=g.useRef(!1),{cache:s,initialSize:a=1,revalidateAll:i=!1,persistSize:l=!1,revalidateFirstPage:u=!0,revalidateOnMount:c=!1,parallel:d=!1}=n,[,,,p]=br.get(nd);let h;try{h=YV(t),h&&(h=cx+h)}catch{}const[m,b,v]=an(s,h),y=g.useCallback(()=>Te(m()._l)?a:m()._l,[s,h,a]);ma.useSyncExternalStore(g.useCallback($=>h?v(h,()=>{$()}):()=>{},[s,h]),y,y);const x=g.useCallback(()=>{const $=m()._l;return Te($)?a:$},[h,a]),w=g.useRef(x());vi(()=>{if(!o.current){o.current=!0;return}h&&b({_l:l?w.current:x()})},[h,s]);const C=c&&!o.current,S=e(h,async $=>{const _=m()._i,N=m()._r;b({_r:ct});const A=[],M=x(),[O]=an(s,$),L=O().data,I=[];let z=null;for(let F=0;F<M;++F){const[B,U]=Es(t(F,d?null:z));if(!B)break;const[E,j]=an(s,B);let T=E().data;const V=i||_||Te(T)||u&&!F&&!Te(L)||C||L&&!Te(L[F])&&!n.compare(L[F],T);if(r&&(typeof N=="function"?N(T,U):V)){const K=async()=>{if(!(B in p))T=await r(U);else{const Z=p[B];delete p[B],T=await Z}j({data:T,_k:U}),A[F]=T};d?I.push(K):await K()}else A[F]=T;d||(z=T)}return d&&await Promise.all(I.map(F=>F())),b({_i:ct}),A},n),k=g.useCallback(function($,_){const N=typeof _=="boolean"?{revalidate:_}:_||{},A=N.revalidate!==!1;return h?(A&&(Te($)?b({_i:!0,_r:N.revalidate}):b({_i:!1,_r:N.revalidate})),arguments.length?S.mutate($,{...N,revalidate:A}):S.mutate()):Yh},[h,s]),D=g.useCallback($=>{if(!h)return Yh;const[,_]=an(s,h);let N;if(ar($)?N=$(x()):typeof $=="number"&&(N=$),typeof N!="number")return Yh;_({_l:N}),w.current=N;const A=[],[M]=an(s,h);let O=null;for(let L=0;L<N;++L){const[I]=Es(t(L,O)),[z]=an(s,I),F=I?z().data:ct;if(Te(F))return k(M().data);A.push(F),O=F}return k(A)},[h,s,k,x]);return{size:x(),setSize:D,mutate:k,get data(){return S.data},get error(){return S.error},get isValidating(){return S.isValidating},get isLoading(){return S.isLoading}}});function vl(e,t,r,n,o,s,a){if(s&&!s.search?.records?.length)return null;const i=o*n,l={...t,limit:n,offset:i};return[e,{query:l,modificationBlocks:r,...a}]}function JV({query:e,modificationBlocks:t,address:r,pageSize:n}){function o(s,a){return vl(H8,e,t,n,s,a,r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:void 0)}return bl(o,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function XV({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(q8,e,t,r,o,s)}return bl(n,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function QV({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(G8,e,t,r,o,s)}return bl(n,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function eR({query:e,modificationBlocks:t,pageSize:r}){function n(o,s){return vl(Z8,e,t,r,o,s)}return bl(n,qt,{revalidateFirstPage:!1,revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,use:[Or]})}function yl({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o,distinctProperties:s}){const a=xL(n,o),i=Q8({filterOptions:e,filterValues:t,limit:r,currentProvider:a,distinctProperties:s});switch(n){case"sim-only-proposition":{const l=vr(t,"providers");i.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":"provider");const u=XV({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}case"fixed-proposition":{i.groupBy("provider_data_speed_down");const l=JV({query:i.serialize(),modificationBlocks:nl(n,o),address:o.address,pageSize:r}),{data:u=[],error:c,...d}=l;return{...d,data:u[0],dataArray:u,error:c}}case"smartphone-proposition":{const l=vr(t,"sorteren"),u=vr(t,"providers");i.groupBy(Array.isArray(u)&&u.length===1?"data_and_speed":"provider"),l==="relevantie"&&i.sort("top");const c=QV({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:d=[],error:p,...h}=c;return{...h,data:d[0],dataArray:d,error:p}}case"smartphone-proposition-extended":{const l=vr(t,"sorteren");i.groupBy(l==="relevantie"?"product_provider_slug":"product_slug");const u=eR({query:i.serialize(),modificationBlocks:nl(n,o),pageSize:r}),{data:c=[],error:d,...p}=u;return{...p,data:c[0],dataArray:c,error:d}}default:return{data:void 0,dataArray:[],isLoading:!1,isValidating:!1,error:void 0,mutate:async()=>{},size:0,setSize:()=>{}}}}function tR(e,t,r,n){const{currentProviderSlug:o,currentFixedProviderScope:s,currentMobileProviders:a}=t,i=new URLSearchParams;if(o&&i.set("huidige-provider",o),s||a&&a.length>0){const c=[s?`${s}:1`:void 0,...a?a.map(d=>`${d.scope}:${d.value}`):[]].filter(Boolean).join(",");i.set("klantvoordeel",c)}r&&i.set("ppt",r);const l=e.startsWith("/")?e:`/${e}`,u=n?n(i).toString():i.toString();return u?`https://www.mobiel.nl${l}?${u}`:`https://www.mobiel.nl${l}`}function xl({addClickoutSearchParams:e}){const{profile:t}=zr();async function r(n){const o=await CL();return tR(n,t,o,e)}return{buildClickOutUrl:r}}function wl({lastPageLength:e,isValidating:t,size:r,setSize:n,activeFilters:o,profile:s,limit:a}){const i=g.useRef("");g.useEffect(()=>{const c=JSON.stringify({activeFilters:o,profile:s});i.current!==c&&i.current!==""&&n(1),i.current=c},[o,s,n]);const l=e===void 0||e===0||e<a;function u(){t||n(r+1)}return{isReachingEnd:l,loadMore:u}}function rR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=yr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{data:v,dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,mutate:k,error:D}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:$,loadMore:_}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:n}),N=y.flatMap(I=>I.search.records),{polling:A,validating:M}=v&&"fetchInfo"in v?v.fetchInfo:{polling:!1,validating:!1};if(g.useEffect(()=>{if(!A)return;const I=setInterval(()=>k(),1e3);return()=>clearInterval(I)},[A,k]),Nr(()=>{c.address&&k()},[c.address?.postcode,c.address?.number,c.address?.numberAddon,k]),D)throw new Error(String(D));if(!A&&!w&&N.length===0)return f.jsx(ml,{});const{top:O,all:L}=x?{top:[],all:[]}:Fh({propositions:N,productCategory:e,labelColorConfig:r});return f.jsxs("div",{children:[A&&c.address&&f.jsx(WV,{address:c.address}),f.jsxs("div",{className:P((w||M)&&!A&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):O.map(I=>{if(c.currentFixedProviderScope?.includes(I.provider.slug))return null;const F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:I.label,horizontal:s==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},`top-${I.key}`)})})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):L.map(I=>{const z=c.currentFixedProviderScope?.includes(I.provider.slug),F=I.tags.find(B=>B.type==="internet");return f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:I}),b(`/aanbieding/${I.key}`).then(B=>window.open(B,"_blank"))},onInfoClick:B=>{l({type:"details_viewed",proposition:I,tab:B}),m({proposition:I,tab:B})},label:z?{displayName:`Alleen voor nieuwe ${I.provider.name}-klanten`,color:"default"}:I.label,disabled:z,horizontal:o==="horizontal",monthlyFee:me(I.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(I.monthlyFees,I.baseMonthlyFee,I.lifetimeMonthlyFee),tcoPerMonth:me(I.tcoPerMonth,{dashed:!0}),propositionTitle:`${I.content.dataSpeedDown/1e3} ${i("format.megabitPerSecond")}`,propositionSubtitle:F?i(`fixedInternet.${F.slug}`,{defaultValue:F.label}):"",propositionImageUrl:I.provider.imageUrl,propositionImageAlt:I.provider.name,propositionSpecifications:Bn(I),urgentText:Vn(I.specialPromotions),specialPromotions:Ln(I),modificationPromotions:I.modificationPromotions},I.key)}),f.jsx(hl,{isReachingEnd:$,loadMore:_,isValidating:w,className:u?.loadMoreButton})]})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:I=>!I&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function nR({productCategory:e,showTopPropositions:t,labelColorConfig:r,limit:n,propositionCardLayout:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p}=yr(),[h,m]=g.useState(null),{buildClickOutUrl:b}=xl({addClickoutSearchParams:a}),{dataArray:v,isLoading:y,isValidating:x,size:w,setSize:C,error:S}=yl({filterOptions:d,activeFilters:p,limit:n,productCategory:e,profile:c}),{isReachingEnd:k,loadMore:D}=wl({lastPageLength:v[v.length-1]?.search.records.length,isValidating:x,size:w,setSize:C,activeFilters:p,profile:c,limit:n});if(S)throw new Error(String(S));const $=v.flatMap(A=>A.search.records);if(!x&&$.length===0)return f.jsx(ml,{});const{top:_,all:N}=y?{top:[],all:[]}:Fh({propositions:$,productCategory:e,labelColorConfig:r});return f.jsxs("div",{className:P(x&&"opacity-50 pointer-events-none"),children:[t&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:y?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):_.map(A=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:A}),b(`/aanbieding/${A.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:A,tab:M}),m({proposition:A,tab:M})},label:A.label,horizontal:s==="horizontal",monthlyFee:me(A.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(A.monthlyFees,A.baseMonthlyFee,A.lifetimeMonthlyFee),tcoPerMonth:me(A.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(A.content.data,i("format.gigabyte")),propositionSubtitle:Rs(A.content),propositionImageUrl:A.provider.imageUrl,propositionImageAlt:A.provider.name,propositionSpecifications:Bn(A),urgentText:Vn(A.specialPromotions),specialPromotions:Ln(A),modificationPromotions:A.modificationPromotions},`top-${A.key}`))})]}),t&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[y?f.jsx(Rn,{count:n,horizontal:o==="horizontal"}):N.map(A=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:A}),b(`/aanbieding/${A.key}`).then(M=>window.open(M,"_blank"))},onInfoClick:M=>{l({type:"details_viewed",proposition:A,tab:M}),m({proposition:A,tab:M})},label:A.label,horizontal:o==="horizontal",monthlyFee:me(A.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(A.monthlyFees,A.baseMonthlyFee,A.lifetimeMonthlyFee),tcoPerMonth:me(A.tcoPerMonth,{dashed:!0}),propositionTitle:Xt(A.content.data,i("format.gigabyte")),propositionSubtitle:Rs(A.content),propositionImageUrl:A.provider.imageUrl,propositionImageAlt:A.provider.name,propositionSpecifications:Bn(A),urgentText:Vn(A.specialPromotions),specialPromotions:Ln(A),modificationPromotions:A.modificationPromotions},A.key)),f.jsx(hl,{isReachingEnd:k,loadMore:D,isValidating:x,className:u?.loadMoreButton})]}),h&&f.jsx(pl,{isOpen:!!h,onOpenChange:A=>!A&&m(null),proposition:h.proposition,defaultTab:h.tab,buildClickOutUrl:b})]})}function Fk({propositions:e,buildClickOutUrl:t}){const{t:r}=Oe(),{results:{creditInfo:n}={}}=Ye();return e.length===0?null:f.jsxs("div",{className:P("mt-4",n?.base),children:[f.jsx("div",{className:P("text-sm font-medium mb-2 text-foreground-500",n?.title),children:r("creditInfo.exampleTitle")}),f.jsx(Fd,{orientation:"horizontal",hideScrollBar:!0,children:f.jsxs(ll,{"aria-label":r("creditInfo.exampleTitle"),removeWrapper:!0,isCompact:!0,disableAnimation:!0,classNames:{base:P(n?.table?.base),wrapper:P(n?.table?.wrapper),table:P(n?.table?.table),thead:P(n?.table?.thead),tbody:P(n?.table?.tbody),tr:P(n?.table?.tr),th:P("first:pl-0 h-auto text-xs font-normal whitespace-break-spaces bg-transparent",n?.table?.th),td:P("first:pl-0 py-0 text-xs font-medium text-foreground-500 first:whitespace-nowrap",n?.table?.td)},children:[f.jsxs(ul,{children:[f.jsx(Dt,{children:r("creditInfo.offer")}),f.jsx(Dt,{children:r("creditInfo.totalDeviceCost")}),f.jsx(Dt,{children:r("creditInfo.oneTimeFee")}),f.jsx(Dt,{children:r("creditInfo.totalCreditAmount")}),f.jsx(Dt,{children:r("creditInfo.monthlyPayment")}),f.jsx(Dt,{children:r("creditInfo.contractTerm")}),f.jsx(Dt,{children:r("creditInfo.fixedInterest")})]}),f.jsx(dl,{children:e.map(o=>f.jsxs(cl,{children:[f.jsxs(_t,{children:[o.productVersion?.product.fullName," + ",o.provider.name]}),f.jsx(_t,{children:me(o.price+o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.price,{symbol:"€"})}),f.jsx(_t,{children:me(o.creditFee,{symbol:"€"})}),f.jsx(_t,{children:me(o.handsetCreditMonthlyFee||0,{symbol:"€"})}),f.jsxs(_t,{children:[o.planVariant.contractTerm," ",r("format.month",{count:o.planVariant.contractTerm})]}),f.jsx(_t,{children:"0%"})]},o.key))})]})}),f.jsx("p",{className:P("mt-2 text-xs text-foreground-500",n?.description),children:f.jsx(xg,{i18nKey:"creditInfo.generalDescription",components:[f.jsx("button",{type:"button",onClick:()=>{t("/vragen-en-contact/bestellen-betalen/wat-is-de-wet-financieel-toezicht/wet-financieel-toezicht").then(o=>window.open(o,"_blank"))},className:P("text-primary-600 hover:underline cursor-pointer",n?.descriptionLink)},"credit-info-general-description-link")]})})]})}function oR({showTopPropositions:e,labelColorConfig:t,limit:r,propositionCardLayout:n,productCategory:o,topPropositionCardLayout:s,addClickoutSearchParams:a}){const{t:i}=Oe(),{onAction:l}=Bo(),{results:u}=Ye(),{profile:c}=zr(),{filterOptions:d,activeFilters:p,distinctProperties:h}=yr(),[m,b]=g.useState(null),{buildClickOutUrl:v}=xl({addClickoutSearchParams:a}),{dataArray:y,isLoading:x,isValidating:w,size:C,setSize:S,error:k}=yl({filterOptions:d,activeFilters:p,limit:r,productCategory:o,profile:c,distinctProperties:h}),{isReachingEnd:D,loadMore:$}=wl({lastPageLength:y[y.length-1]?.search.records.length,isValidating:w,size:C,setSize:S,activeFilters:p,profile:c,limit:r});if(k)throw new Error(String(k));const _=y.flatMap(M=>M.search.records);if(!w&&_.length===0)return f.jsx(ml,{});const{top:N,all:A}=x?{top:[],all:[]}:Fh({propositions:_,productCategory:o,labelColorConfig:t});return f.jsxs("div",{className:P(w&&"opacity-50 pointer-events-none"),children:[e&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.topPropositionsTitle),children:i("productResults.topPropositionsTitle")}),f.jsx("div",{className:P("gap-4 grid grid-cols-1 mb-8",s==="vertical"&&"lg:grid-cols-3",u?.topPropositionsGrid),children:x?f.jsx(Rn,{count:3,horizontal:s==="horizontal"}):N.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:s==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},`top-${M.key}`))})]}),e&&f.jsx("div",{className:P("text-2xl font-bold text-foreground mb-3",u?.allPropositionsTitle),children:i("productResults.allPropositionsTitle")}),f.jsxs("div",{className:P("gap-4 grid grid-cols-1",u?.allPropositionsGrid),children:[x?f.jsx(Rn,{count:r,horizontal:n==="horizontal"}):A.map(M=>f.jsx(zn,{onClick:()=>{l({type:"deal_selected",proposition:M}),v(`/aanbieding/${M.key}`).then(O=>window.open(O,"_blank"))},onInfoClick:O=>{l({type:"details_viewed",proposition:M,tab:O}),b({proposition:M,tab:O})},label:M.label,horizontal:n==="horizontal",monthlyFee:me(M.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(M.monthlyFees,M.baseMonthlyFee,M.lifetimeMonthlyFee),tcoPerMonth:me(M.tcoPerMonth,{dashed:!0}),productPrice:me(M.price,{dashed:!0}),propositionTitle:Xt(M.content.data,i("format.gigabyte")),propositionSubtitle:Rs(M.content),propositionImageUrl:M.provider.imageUrl,propositionImageAlt:M.provider.name,propositionSpecifications:Bn(M),urgentText:Vn(M.specialPromotions),specialPromotions:Hh(Ln(M),Mh(M)),modificationPromotions:M.modificationPromotions},M.key)),f.jsx(hl,{isReachingEnd:D,loadMore:$,isValidating:w,className:u?.loadMoreButton}),f.jsx(Fk,{propositions:_.slice(0,3),buildClickOutUrl:v})]}),m&&f.jsx(pl,{isOpen:!!m,onOpenChange:M=>!M&&b(null),proposition:m.proposition,defaultTab:m.tab,buildClickOutUrl:v})]})}function sR({productCategory:e,limit:t,propositionCardLayout:r,addClickoutSearchParams:n}){const{t:o}=Oe(),{onAction:s}=Bo(),{results:a}=Ye(),{profile:i}=zr(),{filterOptions:l,activeFilters:u}=yr(),[c,d]=g.useState(null),{buildClickOutUrl:p}=xl({addClickoutSearchParams:n}),{dataArray:h,isLoading:m,isValidating:b,size:v,setSize:y,error:x}=yl({filterOptions:l,activeFilters:u,limit:t,productCategory:e,profile:i}),{isReachingEnd:w,loadMore:C}=wl({lastPageLength:h[h.length-1]?.search.records.length,isValidating:b,size:v,setSize:y,activeFilters:u,profile:i,limit:t});if(x)throw new Error(String(x));const S=h.flatMap(k=>k.search.records);return!b&&S.length===0?f.jsx(ml,{}):f.jsxs("div",{className:P("gap-4 grid grid-cols-1",r==="vertical"&&"lg:grid-cols-3",b&&"opacity-50 pointer-events-none",a?.allPropositionsGrid),children:[m?f.jsx(Rn,{count:t,horizontal:r==="horizontal",large:!0}):S.map(k=>f.jsx(zn,{onClick:()=>{s({type:"deal_selected",proposition:k}),p(`/aanbieding/${k.key}`).then(D=>window.open(D,"_blank"))},onInfoClick:D=>{s({type:"details_viewed",proposition:k,tab:D}),d({proposition:k,tab:D})},horizontal:r==="horizontal",monthlyFee:me(k.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Fn(k.monthlyFees,k.baseMonthlyFee,k.lifetimeMonthlyFee),tcoPerMonth:me(k.tcoPerMonth,{dashed:!0}),productPrice:me(k.price,{dashed:!0}),productImageAlt:k.productVersion?.media.main?.altText||void 0,productImageUrl:k.productVersion?.media.main?.url||void 0,productStockStatus:k.productVersion?.stock.status,productTitle:`${k.productVersion?.product.brand.name} ${k.productVersion?.product.name}`,propositionTitle:Xt(k.content.data,o("format.gigabyte")),propositionSubtitle:Rs(k.content),propositionImageUrl:k.provider.imageUrl,propositionImageAlt:k.provider.name,propositionSpecifications:Bn(k),urgentText:Vn(k.specialPromotions),specialPromotions:Hh(Ln(k),Mh(k)),modificationPromotions:k.modificationPromotions},k.key)),f.jsxs("div",{className:"flex flex-col gap-2 col-span-full mt-4",children:[f.jsx(hl,{isReachingEnd:w,loadMore:C,isValidating:b,className:a?.loadMoreButton}),f.jsx(Fk,{propositions:S.slice(0,3),buildClickOutUrl:p})]}),c&&f.jsx(pl,{isOpen:!!c,onOpenChange:k=>!k&&d(null),proposition:c.proposition,defaultTab:c.tab,buildClickOutUrl:p})]})}function aR({...e}){const{width:t}=Dg(),{getActiveFilterValue:r}=yr(),n=t<768,o=t>=1024;switch(e.productCategory){case"fixed-proposition":return f.jsx(rR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"smartphone-proposition":return r("telefoons").length===0?f.jsx(sR,{...e,productCategory:"smartphone-proposition-extended",propositionCardLayout:n||o?"vertical":"horizontal"}):f.jsx(oR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});case"sim-only-proposition":return f.jsx(nR,{...e,propositionCardLayout:n?"vertical":"horizontal",topPropositionCardLayout:n||o?"vertical":"horizontal"});default:return null}}function iR({productCategory:e,labelColorConfig:t={},limit:r=12,showTopPropositions:n=!1,addClickoutSearchParams:o}){const{base:s,headerWrapper:a}=Ye(),{distinctProperties:i,setDistinctProperties:l,handleFilterChange:u,getActiveFilterValue:c}=yr(),{width:d}=Dg(),p=d>=1024,[h]=e==="smartphone-proposition"?c("telefoons"):[];return f.jsxs("div",{className:P("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",s),children:[f.jsxs("div",{className:"flex flex-col gap-4 empty:hidden",children:[e==="smartphone-proposition"&&f.jsx(_8,{productSlug:h,selectedDistinctProperties:i,onChange:(m,b)=>{u({slug:"telefoons",value:m}),h||u({slug:"sorteren",value:"relevantie"}),l(b)}}),p&&f.jsxs(f.Fragment,{children:[f.jsx(I3,{productCategory:e}),f.jsx(D2,{})]})]}),f.jsxs("div",{className:"col-span-1 lg:col-span-3 space-y-4",children:[f.jsxs("div",{className:P("flex flex-row-reverse justify-between items-center gap-2",a),children:[f.jsx(LL,{}),p?f.jsx(p2,{}):f.jsx(rO,{children:f.jsx(I3,{productCategory:e})})]}),f.jsx(aR,{productCategory:e,addClickoutSearchParams:o,showTopPropositions:c("providers").length!==1&&["relevantie","top"].includes(c("sorteren")[0])&&n,labelColorConfig:t,limit:r})]})]})}function lR({classNames:e,initialSelectedFilters:t,initialProfile:r,onProfileChange:n,onError:o,onAction:s,...a}){return f.jsxs(N8,{onError:o,children:[f.jsx(aI,{classNames:e,children:f.jsx(O8,{onAction:s,children:f.jsx(PL,{initialProfile:r,onProfileChange:n,children:f.jsx(L8,{initialSelectedFilters:t,productCategory:a.productCategory,children:f.jsx(GO,{children:f.jsx(iR,{...a})})})})})}),f.jsx($L,{})]})}var uR=XD;const Cl=Object.freeze(Object.defineProperty({__proto__:null,default:uR},Symbol.toStringTag,{value:"Module"}));Sr.ElementsRoot=DE,Sr.ProductResults=lR,Object.defineProperty(Sr,Symbol.toStringTag,{value:"Module"})}));
|