@soma-vertical-web/multi-lib 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/cms/ContentTypes/Header/index.d.ts +1 -1
  2. package/cms/ContentTypes/Tipbar/Tipbar.d.ts +3 -0
  3. package/cms/ContentTypes/Tipbar/TipbarScreening.d.ts +3 -0
  4. package/cms/index.d.ts +1 -0
  5. package/cms/server.d.ts +7 -4
  6. package/contexts/contexts/Session.d.ts +5 -0
  7. package/contexts/contexts/header/UserMenuContext.d.ts +6 -0
  8. package/contexts/contexts/plp/PLPContext.d.ts +6 -0
  9. package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +6 -0
  10. package/contexts/hooks/useOnClickOutside.d.ts +3 -0
  11. package/contexts/index.d.ts +8 -0
  12. package/contexts/store/plp.d.ts +3 -0
  13. package/data/helpers/plp/index.d.ts +81 -0
  14. package/index.js +20 -20
  15. package/index.mjs +4277 -3866
  16. package/index2.js +1 -1
  17. package/index2.mjs +261 -243
  18. package/layout/index.d.ts +0 -4
  19. package/layout/team-component/UserMenu/Composite/Content.d.ts +7 -0
  20. package/layout/team-component/UserMenu/Composite/Credits.d.ts +7 -0
  21. package/layout/team-component/UserMenu/Composite/Login.d.ts +10 -0
  22. package/layout/team-component/UserMenu/Composite/Menu.d.ts +7 -0
  23. package/layout/team-component/UserMenu/Composite/Modal.d.ts +7 -0
  24. package/layout/team-component/UserMenu/Composite/Root.d.ts +7 -0
  25. package/layout/team-component/UserMenu/Composite/Tooltip.d.ts +4 -0
  26. package/layout/team-component/UserMenu/UserMenu.d.ts +31 -0
  27. package/layout/team-component/UserMenu/helpers.d.ts +7 -0
  28. package/layout/team-component/UserMenu/index.d.ts +4 -0
  29. package/layout/utils/SessionEvent/index.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/server.d.ts +2 -5
  32. package/style.css +1 -1
  33. package/types/cms/ContentTypes/Tipbar/index.d.ts +9 -0
  34. package/types/contexts/contexts/plp.d.ts +48 -1
  35. package/types/contexts/contexts/session.d.ts +84 -0
  36. package/types/layout/team-components/UserMenu/index.d.ts +60 -0
package/index.js CHANGED
@@ -1,44 +1,44 @@
1
- "use strict";var Su=Object.defineProperty;var Au=(e,t,r)=>t in e?Su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var er=(e,t,r)=>Au(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),P=require("react"),Ke=require("idb-keyval"),ut=require("zustand"),Hn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Ue=require("./__vite-browser-external-B8mGO3z6.js"),Eu=require("jose"),Ye=require("@soma-vertical-web/foundations"),wo=require("axios"),Ba=require("react-dom"),jo=require("@date-fns/tz"),Te=require("draft-js"),ro=P.createContext({}),Ru=({data:e,children:t})=>a.jsx(ro.Provider,{value:{tags:e==null?void 0:e.config},children:t}),no=()=>{const{tags:e}=P.useContext(ro),t=P.useCallback(r=>{var s,c,u,l;const n=(c=(s=e==null?void 0:e.commercial)==null?void 0:s.items)==null?void 0:c.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),o=(l=(u=e==null?void 0:e.institucional)==null?void 0:u.items)==null?void 0:l.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},qa=({gridScrollBack:e})=>{P.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ha=P.createContext({}),wu=({children:e,gridScrollBack:t})=>{const r=P.useRef(null);return qa({gridScrollBack:t}),a.jsx(Ha.Provider,{value:{sizesContainerRef:r},children:e})},ju=()=>{const e=P.useContext(Ha);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Le=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),oo=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),io=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},zt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},za=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},Pu=(e,t)=>e.replace(t,"").trim(),Iu=e=>e.replace(/\//g,""),Fa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(s,c)=>{var d;c&&(c.sellerId=s.sellerId,c.sellerName=s.sellerName,c.available=!0,c.isSellerDefault=s.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:p}}=s.commertialOffer;r.price=u,r.listPrice=l;const f=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(f){const{count:m,value:h}=f[f.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((s,c)=>{var p;const u={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??io(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=c.sellers.filter(f=>(f.sellerDefault&&f.commertialOffer.IsAvailable&&(u.available=!0,n(f,u)),f.commertialOffer.IsAvailable));return!u.isSellerDefault&&l.length>0&&(u.available=!0,n(l[0],{...u,sellerId:l[0].sellerId,sellerName:l[0].sellerName})),u.available===!1&&(o=!1),s.push(u),s},[]);return{...r,sizes:i,allSizesAvailable:o}},Ua=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,ao=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},Wa=e=>e.find(t=>t.imageLabel==="10"),Ga=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Va=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ka=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Nu=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},Xa=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Ou=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ua,formatPriceToCurrency:Le,freightParsePrice:oo,getAspectRatio:Nu,getColorAndSizeFromSkuName:zt,getFirstImages:Ka,getProductNameWithoutSku:Pu,getSKUName:za,getSkuInfos:Fa,getThumbImage:Wa,getValidOffer:ao,removeSlashes:Iu,resizingImg:Ga,setVideoPlay:Xa,splitNameAndSizeFromFullName:io,updatedResizedImg:Va},Symbol.toStringTag,{value:"Module"})),$e=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},ve={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:s,outsideEcommerceData:c}=e,{availableSizes:u,sizes:l,price:p}=n,f={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:u??(l?Qa(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=bt({data:n,customData:{...o,...s,...i},configs:ve.configs});$e({event:r,data:{...c,ecommerce:{...s,...f,items:[d]}}}),typeof t=="function"&&t(d,f)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const s=t.map(({node:c},u)=>bt({data:{...c},customData:{...r,index:u,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));$e({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:s}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:s,itemList:c,outsideEcommerceData:u}=e;let l=0;const p=r.map(f=>{var y,g,v,A,_,S,C,j,x;const d=o==null?void 0:o.find(I=>(f.productId??f.id)===I.productId);let m={...s,...c};if(d){const I=Za(),$=Ja(I,d);$&&(m={...m,...$}),t==="add_to_cart"&&(s||c)&&zn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:s,itemList:c}}),t==="remove_from_cart"&&zn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=f.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??zt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=f.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return bt({data:f,customData:{...n,...m??{...s,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=f.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??f.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(j=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:x.identifier)??f.seller},configs:ve.configs})});$e({event:t,data:{...u,ecommerce:{value:i??l,currency:ve.configs.currency,items:p}}})},filterEvent:e=>{var s;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((s=t==null?void 0:t.selectedFacets)!=null&&s.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:u})=>{var f;const l=((f=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:f.eventLabel)??c,p=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...p,u]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),$e({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var p,f,d,m,h,y,g,v,A,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},s=n.items.map(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return bt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...j,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),c=(((p=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,u=(((f=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];$e({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:c+u,total_discount:Math.abs(u),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...l?{seller_coupon_name:l}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:s}}})},readyEvents:e=>{const{event:t,readyData:r}=e;$e({event:t,data:{...r}})}},Qa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Tu=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},bt=({data:e,customData:t,configs:r})=>({...Mu(e,r==null?void 0:r.MAIN_IMAGE),...ku(e),...Lu(e),...Du(e),...t}),Ya=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},Za=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ja=(e,t)=>e==null?void 0:e[t],zn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Mu=(e,t="1")=>{var i,s,c,u,l,p,f,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((s=(i=e.items)==null?void 0:i[0])==null?void 0:s.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((f=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:f.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??io((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},Po=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,ku=e=>{var l,p;const{categories:t,categoriesIds:r}=e,n=t??((l=e.itemOffered)==null?void 0:l.categories),o=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=Po(n),s=Po(o),c=i.slice(1,-1).split("/"),u=s.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},Lu=e=>{var o,i,s,c,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(s=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:s[0])==null?void 0:c.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=zt(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Du=e=>{var u,l;const{price:t,listPrice:r,installments:n}=e,o=t??((u=e.offers)==null?void 0:u.lowPrice)??0,i=r??((l=e.offers)==null?void 0:l.highPrice)??0,s=i?i-o:0,c=s%1===0?s:Number(s.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},es=()=>{const[e,t]=Ya(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},$u=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Ja,getAvailablesSizes:Qa,getCategories:Tu,getPageCategoryAndDepartmentFromSlug:es,getPersistedData:Za,getProductListInfoFromHead:Ya,pushDatalayer:$e,updatePersistedData:zn},Symbol.toStringTag,{value:"Module"})),ts=P.createContext({}),Bu=({children:e,evtFunctionsConfigs:t})=>{const r=P.useRef({}),n=P.useRef(null),o=P.useRef(null),i=P.useRef({}),s=P.useRef({trigger:!1,index:0}),c=({functionKey:p,data:f,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[p]=="function"&&setTimeout(()=>{var h;f.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(f.itemList=o.current),ve[p](f,d)},m)}catch(h){$e({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},l=({updatePromotionRef:p,promotion:f,index:d})=>{p&&(r.current={...f}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...f,...d!==void 0&&{index:d}}}}})};return a.jsx(ts.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:s,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>P.useContext(ts),rs=P.createContext({}),qu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,R;const{sendDataLayerEvent:i,triggerSelectItemEventRef:s}=ge(),{productId:c,productName:u,items:l,items:[{images:p,Videos:f}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=no(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:j,allSizesAvailable:x}=Fa({items:l,NAME_SPLIT_SYMBOL:o}),I=Wa(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((R=zt((B=t.items)==null?void 0:B[0].name,o))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),k=({sku:q,size:F})=>{const{commonData:U,customData:K}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return P.useEffect(()=>{if(s.current.trigger){const{commonData:q,customData:F}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:s.current.index}}}),s.current.trigger=!1}k({})},[]),a.jsx(rs.Provider,{value:{productData:t,productId:c,productName:u,productReference:h,tag:v,items:l,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:I,images:p,video:f[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:E,handleViewItemEvent:k},children:e})},so=()=>{const e=P.useContext(rs);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Hu={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ne=Promise.resolve(!1),Fn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ne,addItem:()=>Ne,addSellerCode:()=>Ne,addMarketingData:()=>Ne,emptyCart:()=>{},removeItem:()=>Ne,setIsOpen:()=>{},shipping:()=>Ne,shippingUpdate:()=>Ne,toggleServiceToProduct:()=>Ne,updateItemQuantity:()=>Ne,insertProfileEmail:()=>Ne,setRecentlyAddedProducts:()=>{}},co=e=>e===0,ns=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const s=t[Number(i)];s&&(r+=(r?"/":"")+s,n.push(r))}return n},os=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:s,detailUrl:c,ean:u,imageUrl:l,name:p,listPrice:f,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:S,offerings:C,productRefId:j,skuName:x,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:S,productRefId:j,id:i,ean:u,uniqueId:s,itemOffered:{additionalProperty:[],brand:{name:n},categories:ns(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:l}],name:p,isVariationOf:{name:p,productGroupID:v},sku:i,slug:c,skuName:x},listPrice:f,quantity:d,offerings:C,price:m,priceDefinition:h,sellingPrice:I,seller:_}},is=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},as=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var s,c;return{id:((s=o.itemOffered)==null?void 0:s.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},ss=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,s;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}}),Un=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),zu=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Fu=e=>{const t=e.reduce((o,i)=>{const s=co(i.price)?0:i.quantity;return o+s},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},Uu=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(co(r==null?void 0:r.price)?0:r.quantity),0):0,cs=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:s,openTextField:c,paymentData:u,shippingData:l,totalizers:p}=e;return{id:s,itemMetadata:n,items:Array.isArray(r)?r.map(f=>os(f,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:u,shippingData:l,totalizers:p}},us=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Wu=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Qe=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},Gu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},ls=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),ds=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),fs=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ps=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},ms=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],hs=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async s=>{const c=await s.json();return r?c:cs(c,n)})},gs=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Vu=e=>[...Array.isArray(e)?e:[e],"faststore"],ys=e=>{const t=e.get("utm_source")||ze("utm_source"),r=e.get("utm_campaign")||ze("utm_campaign"),n=e.get("utm_medium")||ze("utm_medium"),o=e.get("utmi_cp")||ze("utmi_cp"),i=e.get("utmi_pc")||ze("utmi_pc"),s=e.get("utmi_p")||ze("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...s&&{utmipage:s}}},ze=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},Ku=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Hu,addItemOrder:is,addNotification:gs,createItemOrder:os,fetchCartAPI:Ee,findItemIndex:Un,findOptions:ms,findTotalizerValue:zu,getCategories:ns,getCode:Qe,getQuantity:ps,getRemoveId:ls,getSize:Wu,getTotalItems:Uu,getTotalizer:Fu,getUrlParameter:ze,getValue:ds,initialState:Fn,isGift:co,marketingTagsBuilder:Vu,mergeOptionsPromise:hs,mountMarketingData:ys,orderFormValues:cs,promiseDefault:Ne,removeQuantity:as,updateItemSellerExternal:us,updateOrderFormPromise:fs,updateQuantity:ss,wishlistArray:Gu},Symbol.toStringTag,{value:"Module"})),Xu=()=>{const e=async(m,h)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(v=>({...v,openTextField:{...(v==null?void 0:v.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>Ee("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:is(h,y)}}),o=async(m,h,y,g)=>Ee("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),s=async(m,h="low")=>Ee("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),u=async(m,h,y)=>{const g=as(h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},l=async(m,h,y)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),p=async(m,h,y)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),f=async(m,h,y,g)=>{const v=ss(h,y,g);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:s,insertProfileEmail:c,removeItem:u,shipping:l,shippingUpdate:p,updateItemQuantity:async(m,h,y,g,v)=>f(m,h,y,g).then(A=>A&&Array.isArray(A.items)?us(A.items,y)?f(m,h,y,v):A:!1)}},Wn="soma::cart",ot="soma::options",Ze=ut.create((e,t)=>{const r=Xu(),n=async(o,i,s)=>{e({loading:!0});const c=await fs(o);if(typeof c!="boolean"){e({...c});const u=await hs(Ke.get(ot),s);return Ke.set(ot,u),ds(c,i).finally(()=>e({loading:!1,options:u}))}return Ne};if(typeof window<"u"){const o=async i=>{if(i){const s=await Ke.get(ot).then(l=>ms(l,i.items));Ke.set(Wn,i),Ke.set(ot,s),e({...i,options:s});const c=new URLSearchParams(window.location.search),u=c.get("utm_campaign")||c.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Ke.get(Wn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Fn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,s)=>{n(()=>r.addItem(t().id,t().items,i),"items",s)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const s=await n(()=>r.removeItem(t().id,t().items,i),"items");return ls(i,s)},shipping:async(i,s="BR")=>n(()=>r.shipping(t().id,i??"",s),"shippingData"),shippingUpdate:async i=>n(()=>{var s;return r.shippingUpdate(t().id,i,(s=t().shippingData)==null?void 0:s.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,s,c)=>n(()=>r.giftItem(t().id,i,s,c),"items"),updateItemQuantity:async(i,s,c)=>{const{id:u,items:l}=t();return n(()=>{var p;return r.updateItemQuantity(u,l,i,s,((p=l.find(f=>f.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Fn}),Qu=()=>Ze(e=>e),_s=ut.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>gs(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),vs=()=>_s(e=>e.notifications),bs=()=>_s(e=>e.actions),Yu=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:ot,KEY_INDEXED_STORE:Wn,useCartStore:Ze,useGetCartStoreState:Qu,useGetNotificationActions:bs,useGetNotificationsStore:vs},Symbol.toStringTag,{value:"Module"})),Zu=6e3,xs=P.createContext({}),Cs=({children:e,...t})=>{const{items:r}=Ze(),[n,o]=P.useState([]),i=P.useRef(null),s=P.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(u=>u.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return P.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Zu))},[n]),a.jsx(xs.Provider,{value:P.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:s}),[t,o,s]),children:e})},lt=()=>{const e=P.useContext(xs);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Ss{constructor(){er(this,"events",{});er(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const As=P.createContext({}),Ju=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=P.useState(!0),s=r==="/",c=P.useRef(new Ss),u=f=>f?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},l=u(s),p=P.useRef(l);return P.useEffect(()=>{var m;const f=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(Hn.get("lastMedias")||Hn.set("lastMedias",`${f}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const v=document.querySelector('meta[name="viewport"]');v&&v.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),P.useEffect(()=>{const f=u(s);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[s]),a.jsx(As.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:a.jsx(Cs,{children:e})})},Ie=()=>P.useContext(As),Es=P.createContext({}),el=({children:e,...t})=>a.jsx(Es.Provider,{value:{...t},children:e}),Me=()=>P.useContext(Es),We=(e,t)=>ut.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ct={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},dt=new Set,tl=()=>{dt.forEach(e=>{e()})},Rs=ut.create((e,t)=>{const r=()=>e({value:ct.category});return dt.add(r),{value:ct.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Ft=()=>Rs(e=>e.value),qe=()=>Rs(e=>e.actions),ws=We(ct.menuMobileIsOpen,dt),uo=()=>ws(e=>e.value),Ge=()=>ws(e=>e.actions),js=We(ct.searchModalIsOpen,dt),rl=()=>js(e=>e.value),lo=()=>js(e=>e.actions),Ps=We(ct.userMenuIsOpen,dt),nl=()=>Ps(e=>e.value),Ut=()=>Ps(e=>e.actions),ol=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:tl,useActionsHeaderCategory:qe,useActionsMenuMobileIsOpen:Ge,useActionsSearchModalIsOpen:lo,useActionsUserMenuIsOpen:Ut,useGetHeaderCategoryStore:Ft,useGetMenuMobileIsOpen:uo,useGetSearchModalIsOpen:rl,useGetUserMenuIsOpen:nl},Symbol.toStringTag,{value:"Module"})),Je={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},et=new Set,il=()=>{et.forEach(e=>{e()})},Is=ut.create(e=>{const t=()=>e({value:Je.selectedSkuInfo});return et.add(t),{value:Je.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),al=()=>Is(e=>e.value),sl=()=>Is(e=>e.actions),Ns=We(Je.openLetMeKnow,et),cl=()=>Ns(e=>e.value),ul=()=>Ns(e=>e.actions),Os=We(Je.showNotify,et),ll=()=>Os(e=>e.value),dl=()=>Os(e=>e.actions),Ts=We(Je.showBottomNavigation,et),fl=()=>Ts(e=>e.value),pl=()=>Ts(e=>e.actions),Ms=We(Je.openMeasurements,et),ml=()=>Ms(e=>e.value),hl=()=>Ms(e=>e.actions),gl=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:il,useActionsPDPOpenLetMeKnow:ul,useActionsPDPOpenMeasurements:hl,useActionsPDPSelectedSkuInfo:sl,useActionsPDPShowBottomNavigation:pl,useActionsPDPShowNotify:dl,useGetPDPOpenLetMeKnow:cl,useGetPDPOpenMeasurements:ml,useGetPDPSelectedSkuInfo:al,useGetPDPShowBottomNavigation:fl,useGetPDPShowNotify:ll},Symbol.toStringTag,{value:"Module"})),ks=P.createContext({}),yl=({children:e,headerData:t,...r})=>{var u,l;const n=P.useRef(null),o=P.useRef(null),i=P.useRef(null),{mediatorRef:s,currentHeaderConfigsRef:c}=Ie();return(u=s.current)==null||u.subscribe("header:change_variant",p=>{var y,g,v;if(p&&c.current&&(c.current.bannerVariant=p),!n.current)return;const d=document.body.scrollTop>0,m=n.current.getAttribute("data-interactiveVariant"),h=d?m:p??((y=c.current)==null?void 0:y.bannerVariant)??"default";h!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=s.current)==null||v.publish("herobanner:change_controllers_variant",h),c.current&&(c.current.headerVariant=h))}),(l=s.current)==null||l.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),P.useEffect(()=>{const p=new AbortController,f=b.helpers.throttle(()=>{var m;return(m=s.current)==null?void 0:m.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:p.signal});const d=m=>{var y;(y=m.target.closest("a"))==null||y.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:p.signal}),n.current.addEventListener("touchend",d,{signal:p.signal})),()=>{p.abort()}},[]),a.jsx(ks.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>P.useContext(ks),Ls=P.createContext({}),Ds=({children:e})=>{const t=P.useRef(null),r=P.useRef(null),n=uo(),o=P.useCallback(()=>{var i;{const s=(i=t.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[]);return P.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const s=(i=r.current)==null?void 0:i.querySelector("dialog");if(s){s.dataset.animation="out";const c=s.children[0];c.dataset.animation="out"}}},[n]),P.useEffect(()=>{r.current=document.body},[]),a.jsx(Ls.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},ft=()=>P.useContext(Ls),_l=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},vl=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?_l(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},$s=P.createContext({}),Bs=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=P.useState(!1),s=P.useRef(null),[c,u]=P.useState(!1),[l,p]=P.useState({left:0,top:0}),f=P.useCallback(()=>{u(!0),typeof window<"u"&&(s.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return P.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=vl(m,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),a.jsx($s.Provider,{value:P.useMemo(()=>({...n,...l,handleClose:f,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,f,c,o,i,u]),children:e})},Ve=()=>{const e=P.useContext($s);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},qs=P.createContext({}),bl=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ze(),{setRecentlyAdded:o}=lt(),i=P.useRef(""),s=vs(),{addNotification:c,removeNotification:u}=bs(),{addCoupon:l,addItem:p,addSellerCode:f,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;P.useEffect(()=>{const R=Hn.get("lastMedias");if(n.id&&R&&i.current!==R){i.current=R;const q=new URLSearchParams(R),F=ys(q);d(F)}},[n,d]);const S=P.useCallback(async(R,q)=>(q==="coupon"?l(R):f(R)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:G}=U,z=String(G??"").split(" - ");return Qe((z==null?void 0:z[0])??"",R,!!K)}return Qe(String(U.coupon),R,!0)}return Qe("","")}).catch(()=>Promise.resolve({code:400})),[l,f]),C=P.useCallback((R,q,F)=>{const{id:U}=R;_(U,q,F)},[_]),j=P.useCallback((R,q,F=!1)=>{if(!R)return;const{id:U}=R,K=Un(n.items,U);if(K!==-1&&!F){const G=Number(n.items[K].quantity),z=n.items[K]?G+1:1;C(R,z,q)}else p({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||o(G=>[...G,R])},[p,C,n.items,h,o]),x=P.useCallback((R,q)=>{if(!R||!Array.isArray(R))return;o(U=>[...U,...R]);const F=R.map(U=>{const{id:K,quantity:G,seller:z}=U,ne=Un(n.items,K),w=ps(G??1,ne);return{id:K,quantity:w,seller:z}});p(F,q)},[p,n.items,o]),I=P.useCallback(async(R,q,F)=>R?y(R).then(()=>(c(q??`${t}`,F),Qe(R,R))):Promise.resolve(Qe("","Product id required")),[c,y]),$=P.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=P.useCallback((R,q="BRA")=>g(R,q),[g]),N=P.useCallback(R=>{R&&v(R)},[v]),k=P.useCallback(async(R,q,F)=>{const U=n.items.findIndex(G=>G.id===R);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),B=P.useCallback(async(R,q)=>_(R,q).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===R);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return a.jsx(qs.Provider,{value:P.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:s,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:u,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:N,toggleGiftItemCart:k,updateItemQuantity:B}),[r,S,j,x,s,$,c,n,u,I,E,N,k,B]),children:e})},He=()=>{const e=P.useContext(qs);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Hs=P.createContext({}),fo=({children:e,fetch:t})=>{const r=P.useRef(!0),[n,o]=P.useState(null),[i,s]=P.useState(!1);return P.useEffect(()=>{(async()=>{r.current=!0;try{const u=await t();if(!u.ok)throw new Error("Failed to fetch data");const l=await u.json();o(l.data),r.current=!1}catch{r.current=!0,s(!0)}})()},[t]),a.jsx(Hs.Provider,{value:P.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},po=()=>{const e=P.useContext(Hs);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},zs=P.createContext({}),xl=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const s=P.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((u,l)=>({key:`category-${l+1}`,value:u})):[]},[r.base,o]);return a.jsx(zs.Provider,{value:P.useMemo(()=>({state:{...r,facets:[...s,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[s,n,t,r]),children:e})},Fs=()=>{const e=P.useContext(zs);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Cl={default_option:"score:desc"},Sl={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Al="Imagem do produto",Us=P.createContext({}),El=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=po(),{router:i}=Me(),s=P.useCallback((f,d)=>{if(d){if(f.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==f.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${f.key}/${f.value}`),i.push(`?${d.toString()}`)}},[i]),c=P.useCallback(()=>{const f=new URLSearchParams;f.set("sort",Cl.default_option),f.set("page","1"),i.push(`?${f.toString()}`)},[i]),u=P.useCallback((f,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==f.key||g!==f.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),l=P.useCallback(f=>{const d=new URLSearchParams(Ue.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===f.key&&y===f.value)return u(f,d)}return s(f,d)},[s,u,t]),p=P.useCallback(f=>{const d=new URLSearchParams(Ue.convertSearchParams(t));d.set("sort",f.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return a.jsx(Us.Provider,{value:P.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:l,onSort:p,searchParams:t}),[n,c,p,l,o,r,t]),children:e})},Rl=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=Fs();return a.jsx(fo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:a.jsx(El,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},wl=()=>{const e=P.useContext(Us);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Ws=P.createContext({}),jl=({children:e})=>{const{data:t,...r}=po(),[n,o]=P.useState(0),{sendDataLayerEvent:i}=ge();return P.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const s=t.pagination.count;s&&Number.isInteger(s)&&o(s)}},[t,i,o]),a.jsx(Ws.Provider,{value:P.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Sl,total:n}),[t,r,n]),children:e})},Pl=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>a.jsx(fo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:a.jsx(jl,{state:r,children:e})}),Il=()=>{const e=P.useContext(Ws);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Gs=P.createContext({}),Nl=({children:e,term:t})=>{const[r,n]=P.useState([]),[o,i]=P.useState(!1);return P.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:u}=await c.json();n((u==null?void 0:u.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),a.jsx(Gs.Provider,{value:P.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},Ol=({children:e,...t})=>a.jsx(Nl,{...t,children:e}),Tl=()=>{const e=P.useContext(Gs);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Vs=P.createContext({searches:[],isLoading:!1,error:null}),Ml=({children:e})=>{const[t,r]=P.useState([]),[n,o]=P.useState(!0),[i,s]=P.useState(null);return P.useEffect(()=>{(async()=>{try{o(!0);const u=await fetch("/api/search/topSearch");if(!u.ok)throw new Error(`Erro ao buscar os dados: ${u.status}`);const l=await u.json();r(l.data.searches||[])}catch(u){s(u instanceof Error?u.message:"Erro desconhecido")}finally{o(!1)}})()},[]),a.jsx(Vs.Provider,{value:P.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},kl=()=>{const e=P.useContext(Vs);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Ll={contexts:{addToCart:{hook:Ve,provider:Bs},cart:{hook:He,provider:bl},cms:{FlagsAndTags:{context:ro,hook:no,provider:Ru}},events:{hook:ge,provider:Bu},global:{hook:Ie,provider:Ju,mediator:Ss},header:{hook:xe,provider:yl},menuMobile:{hook:ft,provider:Ds},next:{hook:Me,provider:el},pdp:{provider:wu,hook:ju},pdpdata:{hook:so,provider:qu},searchFacets:{hook:wl,provider:Rl},searchProducts:{hook:Il,provider:Pl},searchRoot:{hook:po,provider:fo},searchSearch:{hook:Fs,provider:xl},searchSuggestedTerms:{hook:Tl,provider:Ol},searchTopSearchs:{hook:kl,provider:Ml},ui:{hook:lt,provider:Cs}},hooks:{useBackPDC:qa},stores:{cart:Yu,header:ol,pdp:gl}};function Ks(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function Xs(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const s in o)o[s]!==void 0&&(i+=`; ${s}`,s==="expires"?i+=`=${o[s].toUTCString()}`:typeof o[s]=="boolean"?i+=`; ${o[s]?"true":"false"}`:i+=`=${o[s]}`);window.document.cookie=i}const Dl=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function $l(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Bl(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Qs=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,it=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),ql=e=>{const t=Eu.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Hl=["name","email","phone","date","cpf","cep"],Io={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},zl=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Io[e])return!0;const n=t.trim();return Io[e].test(n)},Fl=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Al},Ul=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Hl,debounce:Bl,getAltTextFromUrl:Fl,getAuthenticatedUser:ql,getCookie:Ks,getDaysHoursMinutesSeconds:it,getMilliSeconds:Qs,removeAccentsAndReplaceSpaces:Dl,setCookie:Xs,throttle:$l,validateInput:zl},Symbol.toStringTag,{value:"Module"})),Wl={cart:Ku,events:$u,product:Ou,utils:Ul},mo={helpers:Wl},je={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},Ys=({brand:e,className:t,name:r,...n})=>a.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--name"],t),children:[a.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:a.jsx("p",{className:"typography-style-body-md",children:r})})})]});Ys.displayName="AddToCart.Card.Name";const Zs=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const s=Le(r/100),c=Le(t/100);return a.jsx("div",{...i,className:b.helpers.classNameConcat(je["add-to-cart--card--price-quantity"],e),children:a.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:a.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:a.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?a.jsxs(a.Fragment,{children:[a.jsx(b.ProductInfo.Price,{label:"originalPrice",value:s,size:"small"},"price-list"),a.jsx(b.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):a.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Zs.displayName="AddToCart.Card.PriceQuantity";const Gl="_skeleton_12b79_1",Vl={skeleton:Gl},Kl=({style:e})=>a.jsx("div",{style:e,className:Vl.skeleton}),Xl="_image_lypfr_1",Ql={image:Xl},Yl=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Me();return a.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Ql.image,t),"data-object-fit":r??"cover"})},Zl=({videoRef:e,...t})=>a.jsx("video",{...t,ref:e,children:a.jsx("track",{kind:"captions"})}),ke={Image:Yl,Video:Zl},Js=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:s}}=Ve(),[c,u]=P.useState(n??"");return P.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(l=>l.json()).then(l=>{const p=l.data[0].items[0];if(p){const f=p.images.find(d=>i.includes(d.imageLabel));f!=null&&f.imageUrl?u(f.imageUrl):u(p.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[c,t]),a.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card--style-size"],e),children:[a.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:s,children:a.jsx(b.ToggleStyle.Texture,{children:c?a.jsx(ke.Image,{alt:"",src:c??"",width:164,height:164,style:s}):a.jsx(Kl,{})})}),a.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&a.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[a.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),a.jsx(b.ToggleSize.Text,{children:r})]})]})};Js.displayName="AddToCart.Card.StyleSize";const{helpers:Jl}=mo,ec=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:s,isVariationOf:{productGroupID:c}},quantity:u,price:l,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=Ve(),{size:d}=Jl.product.getColorAndSizeFromSkuName(s??o,f);return a.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--card--content"],e),children:[a.jsx(Ys,{brand:i.name,name:o}),a.jsx(Zs,{price:l,listPrice:p,quantity:u,productId:t.id}),a.jsx(Js,{size:d,texture:r,productGroupID:c})]})};ec.displayName="AddToCart.Card.Content";const tc=({image:e,thumbnail:t=!1})=>a.jsx(ke.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});tc.displayName="AddToCart.Card";const rc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,s=Va(i.url,{width:200,height:300});return a.jsxs("div",{...o,className:b.helpers.classNameConcat(je["add-to-cart--card"],e),children:[a.jsx(tc,{image:{alternateName:i.alternateName||"Produto",url:s||""},thumbnail:n}),!n&&a.jsx(ec,{item:t,texture:r})]})};rc.displayName="AddToCart.Card";const nc=({className:e,children:t,title:r,...n})=>a.jsxs("div",{...n,className:b.helpers.classNameConcat(je["add-to-cart--content"],e),children:[a.jsx("div",{className:je["add-to-cart--content--title"],children:r&&a.jsx("h2",{children:r})}),t,a.jsx(Fe.Footer,{})]});nc.displayName="AddToCart.Layout.Content";const oc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ve(),{cartStore:{totalizers:i},setIsOpen:s}=He(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),f=(u-Math.abs(c??0)+((l==null?void 0:l.value)??0))/100,d=Le(f??0);return a.jsxs("div",{...t,className:b.helpers.classNameConcat(je["add-to-cart--footer"],e),children:[a.jsxs("div",{className:je["add-to-cart--footer--total"],children:[a.jsx("span",{children:"Subtotal:"}),a.jsx("span",{children:d})]}),a.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>s(!0),children:o.footer.bag}),r?a.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):a.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};oc.displayName="AddToCart.Layout.Footer";const ic=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=He(),{recentlyAddedProducts:i}=lt(),s=i.length>3?4:i.length;return a.jsxs("div",{...n,className:je["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,u)=>u<s).map(c=>{var l;const u=(l=o==null?void 0:o.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return a.jsx(Fe.Card,{item:c,thumbnail:r,texture:u},c.itemOffered.sku)}),e]})};ic.displayName="AddToCart.Layout.Items";const ac=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ve(),{isMobile:o}=Ie();return a.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:je["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[a.jsx(b.Modal.Header,{navigation:"top",children:a.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),a.jsx(b.Modal.Body,{children:e})]})};ac.displayName="AddToCart.Modal";const ed=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ve(),o=P.useRef(t);return P.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),a.jsx(a.Fragment,{children:e})},sc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=lt(),{isMobile:i}=Ie(),s=o.length>3?4:o.length;return a.jsx(Bs,{...n,count:s,isMobile:i,CONSTANTS:r,children:a.jsx(ed,{children:i?a.jsxs(a.Fragment,{children:[a.jsx(Fe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):a.jsx(Fe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};sc.displayName="AddToCart.Root";const cc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:s,target:c,isOpen:u,top:l}=Ve();return a.jsx(b.Tooltip.Root,{arrow:"top-right",component:a.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:je["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:s,isOpen:u,left:i,size:"medium",position:"top",top:l,children:a.jsx("div",{className:je["add-to-cart--tooltip"],ref:c,children:e})})};cc.displayName="AddToCart.Tooltip";const Fe={Card:rc,Content:nc,Footer:oc,Items:ic,Modal:ac,Root:sc,Tooltip:cc},ho=({title:e,...t})=>{const{recentlyAddedProducts:r}=lt(),{isMobile:n}=Ie(),o=r.length>3?4:r.length,i=r.length>(o??1),s=r.length>1;return a.jsx(Fe.Root,{isMobile:n,count:r.length,component:a.jsx(Fe.Content,{title:e,children:a.jsx(Fe.Items,{thumbnail:s,children:i&&a.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};ho.displayName="AddToCart";const No={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},td=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...s})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return a.jsx(b.Card,{...s,shadow:!0,padding:"small",className:b.helpers.classNameConcat(No["card-modifier"],t),style:{...i,padding:0},children:a.jsxs("button",{className:No["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})};var uc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Gn={exports:{}},Re={};Re._=Re._interop_require_default=nd;function nd(e){return e&&e.__esModule?e:{default:e}}var xt={exports:{}},tr={},Oo;function lc(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const c={};return s.forEach((u,l)=>{typeof c[l]>"u"?c[l]=u:Array.isArray(c[l])?c[l].push(u):c[l]=[c[l],u]}),c}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const c=new URLSearchParams;return Object.entries(s).forEach(u=>{let[l,p]=u;Array.isArray(p)?p.forEach(f=>c.append(l,n(f))):c.set(l,n(p))}),c}function i(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];return u.forEach(p=>{Array.from(p.keys()).forEach(f=>s.delete(f)),p.forEach((f,d)=>s.append(d,f))}),s}}(tr)),tr}var rr={},Ct={},To;function Gt(){if(To)return Ct;To=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(e=function(i){return i?o:n})(r)}Ct._=Ct._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=e(n);if(o&&o.has(r))return o.get(r);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var u=s?Object.getOwnPropertyDescriptor(r,c):null;u&&(u.get||u.set)?Object.defineProperty(i,c,u):i[c]=r[c]}return i.default=r,o&&o.set(r,i),i}return Ct}var Mo;function dc(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return s},formatWithValidation:function(){return c}});const n=Gt()._(lc()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:p}=u,f=u.protocol||"",d=u.pathname||"",m=u.hash||"",h=u.query||"",y=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",u.host?y=l+u.host:p&&(y=l+(~p.indexOf(":")?"["+p+"]":p),u.port&&(y+=":"+u.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=u.search||h&&"?"+h||"";return f&&!f.endsWith(":")&&(f+=":"),u.slashes||(!f||o.test(f))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+f+y+d+g+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{s.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(rr)),rr}var nr={},ko;function od(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(nr)),nr}var or={},Lo;function Vt(){return Lo||(Lo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var j in C)Object.defineProperty(S,j,{enumerable:!0,get:C[j]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return s},getURL:function(){return c},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return A},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(S){let C=!1,j;return function(){for(var x=arguments.length,I=new Array(x),$=0;$<x;$++)I[$]=arguments[$];return C||(C=!0,j=S(...I)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function s(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=s();return S.substring(C.length)}function u(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function l(S){return S.finished||S.headersSent}function p(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function f(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.getInitialProps){const $='"'+u(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await f(C.Component,C.ctx)}:{};const I=await S.getInitialProps(C);if(x&&l(x))return I;if(!I){const $='"'+u(S)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!C.ctx&&console.warn(""+u(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",m=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(S){return JSON.stringify({message:S.message,stack:S.stack})}}(or)),or}var St={exports:{}},ir={},Do;function fc(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(ir)),ir}var ar={},$o;function go(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(ar)),ar}var Bo;function Kt(){return Bo||(Bo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=fc(),n=go(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:c,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+u:s.endsWith("/")?""+s+c+u:s+"/"+c+u:""+(0,r.removeTrailingSlash)(s)+c+u};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(St,St.exports)),St.exports}var sr={},At={exports:{}},cr={},qo;function pc(){return qo||(qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=go();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(cr)),cr}var Ho;function id(){return Ho||(Ho=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=pc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(At,At.exports)),At.exports}var zo;function mc(){return zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Vt(),r=id();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(sr)),sr}var ur={},lr={},Fo;function ad(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const s=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,u)=>[...c,...u],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');s.unshift(c)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(f,d){if(f!==null&&f!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+f+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=c.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),s=!0),u.startsWith("[")||u.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+u+"').");if(s)if(l){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');p(this.optionalRestSlugName,u),this.optionalRestSlugName=u,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');p(this.restSlugName,u),this.restSlugName=u,c="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');p(this.slugName,u),this.slugName=u,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(lr)),lr}var dr={},Uo;function sd(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(dr)),dr}var Wo;function cd(){return Wo||(Wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=ad(),n=sd()}(ur)),ur}var fr={},pr={},Go;function ud(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Vt();function r(n){let{re:o,groups:i}=n;return s=>{const c=o.exec(s);if(!c)return!1;const u=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(p=>{const f=i[p],d=c[f.pos];d!==void 0&&(l[p]=~d.indexOf("/")?d.split("/").map(m=>u(m)):f.repeat?[u(d)]:u(d))}),l}}}(pr)),pr}var mr={},hr={},gr={},yr={},Vo;function ld(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(yr)),yr}var _r={},Ko;function dd(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(_r)),_r}var Xo;function fd(){return Xo||(Xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=ld(),n=dd();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((c,u,l,p)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===p.length-1?c:c+"/"+u,""))}function i(s,c){return c?s.replace(/\.rsc($|\?)/,"$1"):s}}(gr)),gr}var Qo;function pd(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=fd(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(c=>n.find(u=>c.startsWith(u)))!==void 0}function i(s){let c,u,l;for(const p of s.split("/"))if(u=n.find(f=>p.startsWith(f)),u){[c,l]=s.split(u,2);break}if(!c||!u||!l)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),u){case"(.)":c==="/"?l=`/${l}`:l=c+"/"+l;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);l=c.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);l=p.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:l}}}(hr)),hr}var vr={},Yo;function md(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(vr)),vr}var Zo;function hd(){return Zo||(Zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var v in g)Object.defineProperty(y,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=pd(),n=md(),o=fc(),i="nxtP",s="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const v=y.startsWith("...");return v&&(y=y.slice(3)),{key:y,repeat:v,optional:g}}function u(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),v={};let A=1;return{parameterizedRoute:g.map(_=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(j=>_.startsWith(j)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:j,optional:x,repeat:I}=c(C[1]);return v[j]={pos:A++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:j,repeat:x,optional:I}=c(C[1]);return v[j]={pos:A++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function l(y){const{parameterizedRoute:g,groups:v}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function p(){let y=0;return()=>{let g="",v=++y;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function f(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:S,optional:C,repeat:j}=c(v);let x=S.replace(/\W/g,"");_&&(x=""+_+x);let I=!1;return(x.length===0||x.length>30)&&(I=!0),isNaN(parseInt(x.slice(0,1)))||(I=!0),I&&(x=g()),_?A[x]=""+_+S:A[x]=""+S,j?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=p(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),j=S.match(/\[((?:\[.*\])|.+)\]/);return C&&j?f({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?s:void 0}):j?f({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function m(y,g){const v=d(y,g);return{...l(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=u(y),{catchAll:A=!0}=g;if(v==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let S=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(mr)),mr}var Jo;function gd(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=ud(),r=hd();function n(o,i,s){let c="";const u=(0,r.getRouteRegex)(o),l=u.groups,p=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||s;c=o;const f=Object.keys(l);return f.every(d=>{let m=p[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in p)&&(c=c.replace(g,h?m.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:f,result:c}}}(fr)),fr}var ei;function yd(){return ei||(ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=lc(),n=dc(),o=od(),i=Vt(),s=Kt(),c=mc(),u=cd(),l=gd();function p(f,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+f.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,s.normalizePathTrailingSlash)(_.pathname);let S="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:I}=(0,l.interpolateAs)(_.pathname,_.pathname,j);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(j,I)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return m?[C,S||C]:C}catch{return m?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(xt,xt.exports)),xt.exports}var Et={exports:{}},br={},xr={},ti;function hc(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=go();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:c}=(0,t.parsePath)(n);return""+o+i+s+c}}(xr)),xr}var ri;function _d(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=hc(),r=pc();function n(o,i,s,c){if(!i||i===s)return o;const u=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(br)),br}var ni;function vd(){return ni||(ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Kt(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(_d().addLocale(o,...s)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Et,Et.exports)),Et.exports}var Cr={},oi;function gc(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Cr)),Cr}var Sr={},ii;function bd(){return ii||(ii=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var f in p)Object.defineProperty(l,f,{enumerable:!0,get:p[f]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return u}});const n=Re._(P);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),c=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(Sr)),Sr}var Rt={exports:{}},wt={exports:{}},ai;function yc(){return ai||(ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports}var si;function xd(){return si||(si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=P,n=yc(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=s.find(g=>g.root===f.root&&g.margin===f.margin);let m;if(d&&(m=i.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(v=>{const A=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;A&&_&&A(_)})},p);return m={id:f,observer:y,elements:h},s.push(f),i.set(f,m),m}function u(p,f,d){const{id:m,observer:h,elements:y}=c(d);return y.set(p,f),h.observe(p),function(){if(y.delete(p),h.unobserve(p),y.size===0){h.disconnect(),i.delete(m);const v=s.findIndex(A=>A.root===m.root&&A.margin===m.margin);v>-1&&s.splice(v,1)}}}function l(p){let{rootRef:f,rootMargin:d,disabled:m}=p;const h=m||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const S=v.current;if(S&&S.tagName)return u(S,j=>j&&g(j),{root:f==null?void 0:f.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,f,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[A,y,_]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Rt,Rt.exports)),Rt.exports}var jt={exports:{}},Pt={exports:{}},Ar={},ci;function Cd(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(Ar)),Ar}var ui;function Sd(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?Cd().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Pt,Pt.exports)),Pt.exports}var It={exports:{}},Er={},li;function Ad(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,s;const u=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===c.defaultLocale.toLowerCase()||(s=c.locales)!=null&&s.some(l=>l.toLowerCase()===o))return c}}}}(Er)),Er}var di;function Ed(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Ad().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(It,It.exports)),It.exports}var fi;function Rd(){return fi||(fi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Kt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,c,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Sd().normalizeLocalePath,p=Ed().detectDomainLocale,f=s||l(i,c).detectedLocale,d=p(u,void 0,f);if(d){const m="http"+(d.http?"":"s")+"://",h=f===d.defaultLocale?"":"/"+f;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}var Nt={exports:{}},pi;function wd(){return pi||(pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=hc(),n=Kt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Nt,Nt.exports)),Nt.exports}var Ot={exports:{}},mi;function jd(){return mi||(mi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var m in d)Object.defineProperty(f,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",s="server-patch",c="prefetch",u="fast-refresh",l="server-action";var p;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ot,Ot.exports)),Ot.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Re._(P),o=yd(),i=mc(),s=dc(),c=Vt(),u=vd(),l=gc(),p=bd(),f=xd(),d=Rd(),m=wd(),h=jd(),y=new Set;function g(j,x,I,$,E,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in j?j.locale:void 0,R=x+"%"+I+"%"+B;if(y.has(R))return;y.add(R)}const k=N?j.prefetch(x,E):j.prefetch(x,I,$);Promise.resolve(k).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function v(j){const I=j.currentTarget.getAttribute("target");return I&&I!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function A(j,x,I,$,E,N,k,B,R,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!R&&!(0,i.isLocalURL)(I)))return;j.preventDefault();const K=()=>{const G=k??!0;"beforePopState"in x?x[E?"replace":"push"](I,$,{shallow:N,locale:B,scroll:G}):x[E?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:G})};R?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,s.formatUrl)(j)}const C=n.default.forwardRef(function(x,I){let $;const{href:E,as:N,children:k,prefetch:B=null,passHref:R,replace:q,shallow:F,scroll:U,locale:K,onClick:G,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...T}=x;$=k,w&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(l.RouterContext),X=n.default.useContext(p.AppRouterContext),te=D??X,Z=!D,M=B!==!1,J=B===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(x[oe]==null||typeof x[oe]!="string"&&typeof x[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:x[oe]===null?"null":typeof x[oe]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(oe=>{const V=typeof x[oe];if(oe==="as"){if(x[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(x[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(x[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&x[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);x.prefetch&&!Q.current&&!Z&&(Q.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&Z&&!N){let ie;if(typeof E=="string"?ie=E:typeof E=="object"&&typeof E.pathname=="string"&&(ie=E.pathname),ie&&ie.split("/").some(W=>W.startsWith("[")&&W.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!D){const W=_(E);return{href:W,as:N?_(N):W}}const[ie,me]=(0,o.resolveHref)(D,E,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,E,N]),L=n.default.useRef(Y),O=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){G&&console.warn('"onClick" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
1
+ "use strict";var Nl=Object.defineProperty;var Ol=(e,t,r)=>t in e?Nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jt=(e,t,r)=>Ol(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),R=require("react"),Ke=require("idb-keyval"),tt=require("zustand"),Hn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Te=require("./__vite-browser-external-B8mGO3z6.js"),Tl=require("jose"),Ye=require("@soma-vertical-web/foundations"),Io=require("axios"),za=require("react-dom"),ke=require("draft-js"),No=require("@date-fns/tz"),oo=R.createContext({}),Ml=({data:e,children:t})=>s.jsx(oo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),io=()=>{const{tags:e}=R.useContext(oo),t=R.useCallback(r=>{var a,c,l,u;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),o=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},Ua=({gridScrollBack:e})=>{R.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ga=R.createContext({}),kl=({children:e,gridScrollBack:t})=>{const r=R.useRef(null);return Ua({gridScrollBack:t}),s.jsx(Ga.Provider,{value:{sizesContainerRef:r},children:e})},Ll=()=>{const e=R.useContext(Ga);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},De=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),ao=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:De(0):De(e/100),so=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Ft=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Wa=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},Dl=(e,t)=>e.replace(t,"").trim(),$l=e=>e.replace(/\//g,""),Va=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=l,r.listPrice=u;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??so(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),a.push(l),a},[]);return{...r,sizes:i,allSizesAvailable:o}},Ka=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,co=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},Xa=e=>e.find(t=>t.imageLabel==="10"),Qa=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ya=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Za=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Bl=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},Ja=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},ql=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ka,formatPriceToCurrency:De,freightParsePrice:ao,getAspectRatio:Bl,getColorAndSizeFromSkuName:Ft,getFirstImages:Za,getProductNameWithoutSku:Dl,getSKUName:Wa,getSkuInfos:Va,getThumbImage:Xa,getValidOffer:co,removeSlashes:$l,resizingImg:Qa,setVideoPlay:Ja,splitNameAndSizeFromFullName:so,updatedResizedImg:Ya},Symbol.toStringTag,{value:"Module"})),Be=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},ve={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:ve.configs.currency,value:f,grade_disponivel:l??(u?es(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:ve.configs.currency}:{}},d=xt({data:n,customData:{...o,...a,...i},configs:ve.configs});Be({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>xt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));Be({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,v,A,_,C,x,P,S;const d=o==null?void 0:o.find(I=>(p.productId??p.id)===I.productId);let m={...a,...c};if(d){const I=rs(),$=ns(I,d);$&&(m={...m,...$}),t==="add_to_cart"&&(a||c)&&Fn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Fn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=p.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??Ft((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=p.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return xt({data:p,customData:{...n,...m??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=p.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((S=(P=(x=(C=d==null?void 0:d.offers)==null?void 0:C.offers)==null?void 0:x[0])==null?void 0:P.seller)==null?void 0:S.identifier)??p.seller},configs:ve.configs})});Be({event:t,data:{...l,ecommerce:{value:i??u,currency:ve.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var p;const u=((p=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(o==null?void 0:o[u])||[];u==="price_range"&&l.replace(":","-"),o[u]=[...f,l]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),Be({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,v,A,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},a=n.items.map(C=>{const{promotionInfo:x,itemList:P}=i[C.id]??{};return xt({data:{...C,price:C.price/100,listPrice:C.listPrice/100},customData:{...x,...P,item_sku:C.id??C.itemOffered.sku,quantity:C.quantity??1},configs:ve.configs})}),c=(((f=n.totalizers.find(C=>C.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(C=>C.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];Be({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Be({event:t,data:{...r}})}},es=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Hl=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},xt=({data:e,customData:t,configs:r})=>({...Fl(e,r==null?void 0:r.MAIN_IMAGE),...zl(e),...Ul(e),...Gl(e),...t}),ts=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},rs=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ns=(e,t)=>e==null?void 0:e[t],Fn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Fl=(e,t="1")=>{var i,a,c,l,u,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??so((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},Oo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,zl=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),o=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=Oo(n),a=Oo(o),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},Ul=e=>{var o,i,a,c,l,u;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=Ft(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Gl=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,o=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-o:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},os=()=>{const[e,t]=ts(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},Wl=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:ns,getAvailablesSizes:es,getCategories:Hl,getPageCategoryAndDepartmentFromSlug:os,getPersistedData:rs,getProductListInfoFromHead:ts,pushDatalayer:Be,updatePersistedData:Fn},Symbol.toStringTag,{value:"Module"})),is=R.createContext({}),Vl=({children:e,evtFunctionsConfigs:t})=>{const r=R.useRef({}),n=R.useRef(null),o=R.useRef(null),i=R.useRef({}),a=R.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(p.itemList=o.current),ve[f](p,d)},m)}catch(h){Be({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return s.jsx(is.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>R.useContext(is),as=R.createContext({}),Kl=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,w;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=io(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:C,listPrice:x,sizes:P,allSizesAvailable:S}=Va({items:u,NAME_SPLIT_SYMBOL:o}),I=Xa(f),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((w=Ft((B=t.items)==null?void 0:B[0].name,o))==null?void 0:w.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:P,price:C,listPrice:x,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),k=({sku:q,size:z})=>{const{commonData:U,customData:K}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return R.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}k({})},[]),s.jsx(as.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:v,items:u,sizes:P,allSizesAvailable:S,installments:_,price:C,listPrice:x,thumbImage:I,images:f,video:p[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:E,handleViewItemEvent:k},children:e})},lo=()=>{const e=R.useContext(as);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Xl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Oe=Promise.resolve(!1),zn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Oe,addItem:()=>Oe,addSellerCode:()=>Oe,addMarketingData:()=>Oe,emptyCart:()=>{},removeItem:()=>Oe,setIsOpen:()=>{},shipping:()=>Oe,shippingUpdate:()=>Oe,toggleServiceToProduct:()=>Oe,updateItemQuantity:()=>Oe,insertProfileEmail:()=>Oe,setRecentlyAddedProducts:()=>{}},uo=e=>e===0,ss=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},cs=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:C,offerings:x,productRefId:P,skuName:S,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:C,productRefId:P,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:ss(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:v},sku:i,slug:c,skuName:S},listPrice:p,quantity:d,offerings:x,price:m,priceDefinition:h,sellingPrice:I,seller:_}},ls=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},us=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,c;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},ds=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,a;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Un=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Ql=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Yl=e=>{const t=e.reduce((o,i)=>{const a=uo(i.price)?0:i.quantity;return o+a},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},Zl=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(uo(r==null?void 0:r.price)?0:r.quantity),0):0,fs=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>cs(p,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},ps=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Jl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Qe=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},eu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},ms=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),hs=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),gs=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ys=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},_s=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],vs=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:fs(c,n)})},bs=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),tu=e=>[...Array.isArray(e)?e:[e],"faststore"],xs=e=>{const t=e.get("utm_source")||ze("utm_source"),r=e.get("utm_campaign")||ze("utm_campaign"),n=e.get("utm_medium")||ze("utm_medium"),o=e.get("utmi_cp")||ze("utmi_cp"),i=e.get("utmi_pc")||ze("utmi_pc"),a=e.get("utmi_p")||ze("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},ze=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},ru=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Xl,addItemOrder:ls,addNotification:bs,createItemOrder:cs,fetchCartAPI:Ee,findItemIndex:Un,findOptions:_s,findTotalizerValue:Ql,getCategories:ss,getCode:Qe,getQuantity:ys,getRemoveId:ms,getSize:Jl,getTotalItems:Zl,getTotalizer:Yl,getUrlParameter:ze,getValue:hs,initialState:zn,isGift:uo,marketingTagsBuilder:tu,mergeOptionsPromise:vs,mountMarketingData:xs,orderFormValues:fs,promiseDefault:Oe,removeQuantity:us,updateItemSellerExternal:ps,updateOrderFormPromise:gs,updateQuantity:ds,wishlistArray:eu},Symbol.toStringTag,{value:"Module"})),nu=()=>{const e=async(m,h)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(v=>({...v,openTextField:{...(v==null?void 0:v.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>Ee("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:ls(h,y)}}),o=async(m,h,y,g)=>Ee("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>Ee("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=us(h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const v=ds(h,y,g);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,v)=>p(m,h,y,g).then(A=>A&&Array.isArray(A.items)?ps(A.items,y)?p(m,h,y,v):A:!1)}},Gn="soma::cart",at="soma::options",Ze=tt.create((e,t)=>{const r=nu(),n=async(o,i,a)=>{e({loading:!0});const c=await gs(o);if(typeof c!="boolean"){e({...c});const l=await vs(Ke.get(at),a);return Ke.set(at,l),hs(c,i).finally(()=>e({loading:!1,options:l}))}return Oe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ke.get(at).then(u=>_s(u,i.items));Ke.set(Gn,i),Ke.set(at,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ke.get(Gn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...zn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return ms(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>n(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,i,a,((f=u.find(p=>p.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return zn}),ou=()=>Ze(e=>e),Cs=tt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>bs(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Ss=()=>Cs(e=>e.notifications),As=()=>Cs(e=>e.actions),iu=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:at,KEY_INDEXED_STORE:Gn,useCartStore:Ze,useGetCartStoreState:ou,useGetNotificationActions:As,useGetNotificationsStore:Ss},Symbol.toStringTag,{value:"Module"})),au=6e3,Es=R.createContext({}),Rs=({children:e,...t})=>{const{items:r}=Ze(),[n,o]=R.useState([]),i=R.useRef(null),a=R.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return R.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},au))},[n]),s.jsx(Es.Provider,{value:R.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},dt=()=>{const e=R.useContext(Es);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ws{constructor(){Jt(this,"events",{});Jt(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const js=R.createContext({}),su=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=R.useState(!0),a=r==="/",c=R.useRef(new ws),l=p=>p?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(a),f=R.useRef(u);return R.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Hn.get("lastMedias")||Hn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const v=document.querySelector('meta[name="viewport"]');v&&v.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),R.useEffect(()=>{const p=l(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),s.jsx(js.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(Rs,{children:e})})},we=()=>R.useContext(js),Ps=R.createContext({}),cu=({children:e,...t})=>s.jsx(Ps.Provider,{value:{...t},children:e}),Ne=()=>R.useContext(Ps),Ge=(e,t)=>tt.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ut={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ft=new Set,lu=()=>{ft.forEach(e=>{e()})},Is=tt.create((e,t)=>{const r=()=>e({value:ut.category});return ft.add(r),{value:ut.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),zt=()=>Is(e=>e.value),He=()=>Is(e=>e.actions),Ns=Ge(ut.menuMobileIsOpen,ft),fo=()=>Ns(e=>e.value),We=()=>Ns(e=>e.actions),Os=Ge(ut.searchModalIsOpen,ft),uu=()=>Os(e=>e.value),po=()=>Os(e=>e.actions),Ts=Ge(ut.userMenuIsOpen,ft),du=()=>Ts(e=>e.value),Ut=()=>Ts(e=>e.actions),fu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:lu,useActionsHeaderCategory:He,useActionsMenuMobileIsOpen:We,useActionsSearchModalIsOpen:po,useActionsUserMenuIsOpen:Ut,useGetHeaderCategoryStore:zt,useGetMenuMobileIsOpen:fo,useGetSearchModalIsOpen:uu,useGetUserMenuIsOpen:du},Symbol.toStringTag,{value:"Module"})),Je={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},rt=new Set,pu=()=>{rt.forEach(e=>{e()})},Ms=tt.create(e=>{const t=()=>e({value:Je.selectedSkuInfo});return rt.add(t),{value:Je.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),mu=()=>Ms(e=>e.value),hu=()=>Ms(e=>e.actions),ks=Ge(Je.openLetMeKnow,rt),gu=()=>ks(e=>e.value),yu=()=>ks(e=>e.actions),Ls=Ge(Je.showNotify,rt),_u=()=>Ls(e=>e.value),vu=()=>Ls(e=>e.actions),Ds=Ge(Je.showBottomNavigation,rt),bu=()=>Ds(e=>e.value),xu=()=>Ds(e=>e.actions),$s=Ge(Je.openMeasurements,rt),Cu=()=>$s(e=>e.value),Su=()=>$s(e=>e.actions),Au=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:pu,useActionsPDPOpenLetMeKnow:yu,useActionsPDPOpenMeasurements:Su,useActionsPDPSelectedSkuInfo:hu,useActionsPDPShowBottomNavigation:xu,useActionsPDPShowNotify:vu,useGetPDPOpenLetMeKnow:gu,useGetPDPOpenMeasurements:Cu,useGetPDPSelectedSkuInfo:mu,useGetPDPShowBottomNavigation:bu,useGetPDPShowNotify:_u},Symbol.toStringTag,{value:"Module"})),Bs=R.createContext({}),Eu=({children:e,headerData:t,...r})=>{var l,u;const n=R.useRef(null),o=R.useRef(null),i=R.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:c}=we();return(l=a.current)==null||l.subscribe("header:change_variant",f=>{var y,g,v;if(f&&c.current&&(c.current.bannerVariant=f),!n.current)return;const d=document.body.scrollTop>0,m=n.current.getAttribute("data-interactiveVariant"),h=d?m:f??((y=c.current)==null?void 0:y.bannerVariant)??"default";h!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=a.current)==null||v.publish("herobanner:change_controllers_variant",h),c.current&&(c.current.headerVariant=h))}),(u=a.current)==null||u.subscribe("header:change_position",f=>{n.current&&(n.current.style.position=f)}),R.useEffect(()=>{const f=new AbortController,p=b.helpers.throttle(()=>{var m;return(m=a.current)==null?void 0:m.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",p,{passive:!0,signal:f.signal});const d=m=>{var y;(y=m.target.closest("a"))==null||y.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:f.signal}),n.current.addEventListener("touchend",d,{signal:f.signal})),()=>{f.abort()}},[]),s.jsx(Bs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},be=()=>R.useContext(Bs),qs=R.createContext({}),Hs=({children:e})=>{const t=R.useRef(null),r=R.useRef(null),n=fo(),o=R.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return R.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),R.useEffect(()=>{r.current=document.body},[]),s.jsx(qs.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},pt=()=>R.useContext(qs),Ru=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},wu=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Ru(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Fs=R.createContext({}),zs=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=R.useState(!1),a=R.useRef(null),[c,l]=R.useState(!1),[u,f]=R.useState({left:0,top:0}),p=R.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return R.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=wu(m,d,r??0);f({left:h,top:y}),l(!1)}},[r,o]),s.jsx(Fs.Provider,{value:R.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:l}),[n,u,p,c,o,i,l]),children:e})},Ve=()=>{const e=R.useContext(Fs);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Us=R.createContext({}),ju=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ze(),{setRecentlyAdded:o}=dt(),i=R.useRef(""),a=Ss(),{addNotification:c,removeNotification:l}=As(),{addCoupon:u,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;R.useEffect(()=>{const w=Hn.get("lastMedias");if(n.id&&w&&i.current!==w){i.current=w;const q=new URLSearchParams(w),z=xs(q);d(z)}},[n,d]);const C=R.useCallback(async(w,q)=>(q==="coupon"?u(w):p(w)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,F=String(W??"").split(" - ");return Qe((F==null?void 0:F[0])??"",w,!!K)}return Qe(String(U.coupon),w,!0)}return Qe("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),x=R.useCallback((w,q,z)=>{const{id:U}=w;_(U,q,z)},[_]),P=R.useCallback((w,q,z=!1)=>{if(!w)return;const{id:U}=w,K=Un(n.items,U);if(K!==-1&&!z){const W=Number(n.items[K].quantity),F=n.items[K]?W+1:1;x(w,F,q)}else f({id:U,quantity:(w==null?void 0:w.quantity)??1,seller:w.seller});h||o(W=>[...W,w])},[f,x,n.items,h,o]),S=R.useCallback((w,q)=>{if(!w||!Array.isArray(w))return;o(U=>[...U,...w]);const z=w.map(U=>{const{id:K,quantity:W,seller:F}=U,ne=Un(n.items,K),j=ys(W??1,ne);return{id:K,quantity:j,seller:F}});f(z,q)},[f,n.items,o]),I=R.useCallback(async(w,q,z)=>w?y(w).then(()=>(c(q??`${t}`,z),Qe(w,w))):Promise.resolve(Qe("","Product id required")),[c,y]),$=R.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=R.useCallback((w,q="BRA")=>g(w,q),[g]),N=R.useCallback(w=>{w&&v(w)},[v]),k=R.useCallback(async(w,q,z)=>{const U=n.items.findIndex(W=>W.id===w);return n.items[U]&&U>=0?A(q,U,z??!1):!1},[n.items,A]),B=R.useCallback(async(w,q)=>_(w,q).then(z=>{if(Array.isArray(z)){const U=z.find(K=>K.id===w);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(Us.Provider,{value:R.useMemo(()=>({...r,addCouponSeller:C,addToCart:P,addItemsToCart:S,cartStore:n,notifications:a,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:N,toggleGiftItemCart:k,updateItemQuantity:B}),[r,C,P,S,a,$,c,n,l,I,E,N,k,B]),children:e})},Fe=()=>{const e=R.useContext(Us);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Gs=R.createContext({}),mo=({children:e,fetch:t})=>{const r=R.useRef(!0),[n,o]=R.useState(null),[i,a]=R.useState(!1);return R.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();o(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),s.jsx(Gs.Provider,{value:R.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},ho=()=>{const e=R.useContext(Gs);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Ws=R.createContext({}),Vs=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const a=R.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,o]);return s.jsx(Ws.Provider,{value:R.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},go=()=>{const e=R.useContext(Ws);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Ks={default_option:"score:desc"},Pu={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Iu="Imagem do produto",Xs=R.createContext({}),Nu=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=ho(),{router:i}=Ne(),a=R.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),i.push(`?${d.toString()}`)}},[i]),c=R.useCallback(()=>{const p=new URLSearchParams;p.set("sort",Ks.default_option),p.set("page","1"),i.push(`?${p.toString()}`)},[i]),l=R.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),u=R.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return l(p,d)}return a(p,d)},[a,l,t]),f=R.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));d.set("sort",p.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return s.jsx(Xs.Provider,{value:R.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:f,searchParams:t}),[n,c,f,u,o,r,t]),children:e})},Ou=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=go();return s.jsx(mo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:s.jsx(Nu,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Tu=()=>{const e=R.useContext(Xs);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Qs=R.createContext({}),Mu=({children:e})=>{const{data:t,...r}=ho(),[n,o]=R.useState(0),{sendDataLayerEvent:i}=ge();return R.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&o(a)}},[t,i,o]),s.jsx(Qs.Provider,{value:R.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Pu,total:n}),[t,r,n]),children:e})},ku=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>s.jsx(mo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:s.jsx(Mu,{state:r,children:e})}),Lu=()=>{const e=R.useContext(Qs);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Ys=R.createContext({}),Du=({children:e,term:t})=>{const[r,n]=R.useState([]),[o,i]=R.useState(!1);return R.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),s.jsx(Ys.Provider,{value:R.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},$u=({children:e,...t})=>s.jsx(Du,{...t,children:e}),Bu=()=>{const e=R.useContext(Ys);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Zs=R.createContext({searches:[],isLoading:!1,error:null}),qu=({children:e})=>{const[t,r]=R.useState([]),[n,o]=R.useState(!0),[i,a]=R.useState(null);return R.useEffect(()=>{(async()=>{try{o(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{o(!1)}})()},[]),s.jsx(Zs.Provider,{value:R.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Hu=()=>{const e=R.useContext(Zs);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Js=R.createContext({}),Fu=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:o=24})=>{const{pathname:i}=Ne(),[a,c]=R.useState(!1),l=R.useMemo(()=>{const f=new URL(i,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":Ks.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",p.join(",")),f)},[n,i,r,t]),u=R.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Te.parseSearchState(l,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Te.parseSearchState(l,f)},[l,r]);return s.jsx(Js.Provider,{value:R.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:s.jsx(Vs,{CONSTANTS:{ITEMS_PER_PAGE:o},state:R.useMemo(()=>({...u}),[u]),collectionId:n,children:e})})},zu=()=>{const e=R.useContext(Js);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Wn=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((o,i)=>Wn(o,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Wn(e[o],t[o]))},Uu=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Wn(t[n],e[n])),To=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},Gu=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),Wu=(e,t,r,n=24)=>{const o=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:o,placedBanners:i};const a=t*n*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>o.has(l+h))){for(let m=0;m<c.columns;m++)o.add(l+m);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:o,placedBanners:i}},Mo=(e,t,r,n=24)=>{const{placedBanners:o,taken:i}=Wu(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)i.has(c)||a.push(c),c++;return{banners:o,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},er=(e,t,r=24)=>Array.from({length:e},(n,o)=>{const i=o+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:ec(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Gu())}}),Vu=(e,t)=>[...e,{loading:!1,page:t,pagination:ec(),products:[]}],ec=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Ku=50,Xu=tt.create((e,t)=>{const r=a=>Math.min(a,Ku),n=async(a,c)=>{const l=r(a.page);try{const u=await To({...a,page:l});o(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),o(l,f=>({...f,loading:!1}))}},o=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await n(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var p,d,m;const f=r(Number(a==null?void 0:a.page));e({...c,pages:er(f,void 0,u)});try{const h=await To({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){i({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:er((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:er(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(p=>p.page===f)||(e({...c,pages:Vu(u,f)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),tc=R.createContext({}),Qu=({banners:e,children:t,itemsPerPage:r=24,searchParams:n})=>{const{router:o}=Ne(),{sendDataLayerEvent:i}=ge(),{isMobile:a}=we(),{state:c}=go(),{addPage:l,createPages:u,updateProducts:f,...p}=Xu(),d=a?8:16,m=a?2:4,h=R.useRef(!1),y=R.useRef(c),g=R.useCallback(C=>{C&&"pagination"in C&&i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:C.products}}})},[i]),v=R.useCallback(C=>{if(C.pagination.nextPage===!0){const x=C.page+1,P=Mo(e,x,m,r);l({...c,page:x},P,g)}},[l,e,g,m,r,c]),A=R.useCallback(C=>{C.loading===!1&&f({...c,page:C.page},g)},[g,f,c]),_=R.useCallback(C=>{const x=new URLSearchParams(n);C.page!==Number(x.get("page")??1)&&(x.set("page",String(C.page)),o.replace(`?${x.toString()}`,{scroll:!1}))},[o,n]);return R.useEffect(()=>{const C=!h.current,x=Uu(y.current,c),P=Mo(e,c.page,m);C?u(c,P,g,r):x&&(u(c,P,g,r),y.current=c),h.current=!0},[e,u,g,m,r,c]),s.jsx(tc.Provider,{value:R.useMemo(()=>({...p,addPage:l,addNewPage:v,createPages:u,gap:d,columns:m,updatePage:A,updateProducts:f,updateParamPage:_}),[l,v,u,d,m,p,A,f,_]),children:t})},Yu=()=>{const e=R.useContext(tc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Zu={contexts:{addToCart:{hook:Ve,provider:zs},cart:{hook:Fe,provider:ju},cms:{FlagsAndTags:{context:oo,hook:io,provider:Ml}},events:{hook:ge,provider:Vl},global:{hook:we,provider:su,mediator:ws},header:{hook:be,provider:Eu},menuMobile:{hook:pt,provider:Hs},next:{hook:Ne,provider:cu},pdp:{provider:kl,hook:Ll},plp:{provider:Fu,hook:zu},plpInfinite:{provider:Qu,hook:Yu},pdpdata:{hook:lo,provider:Kl},searchFacets:{hook:Tu,provider:Ou},searchProducts:{hook:Lu,provider:ku},searchRoot:{hook:ho,provider:mo},searchSearch:{hook:go,provider:Vs},searchSuggestedTerms:{hook:Bu,provider:$u},searchTopSearchs:{hook:Hu,provider:qu},ui:{hook:dt,provider:Rs}},hooks:{useBackPDC:Ua},stores:{cart:iu,header:fu,pdp:Au}};function rc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function nc(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in o)o[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${o[a].toUTCString()}`:typeof o[a]=="boolean"?i+=`; ${o[a]?"true":"false"}`:i+=`=${o[a]}`);window.document.cookie=i}const Ju=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function ed(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function td(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const oc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,st=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),rd=e=>{const t=Tl.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},nd=["name","email","phone","date","cpf","cep"],ko={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},od=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ko[e])return!0;const n=t.trim();return ko[e].test(n)},id=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Iu},ad=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:nd,debounce:td,getAltTextFromUrl:id,getAuthenticatedUser:rd,getCookie:rc,getDaysHoursMinutesSeconds:st,getMilliSeconds:oc,removeAccentsAndReplaceSpaces:Ju,setCookie:nc,throttle:ed,validateInput:od},Symbol.toStringTag,{value:"Module"})),sd={cart:ru,events:Wl,product:ql,utils:ad},yo={helpers:sd},Pe={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},ic=({brand:e,className:t,name:r,...n})=>s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--name"],t),children:[s.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:s.jsx("p",{className:"typography-style-body-md",children:r})})})]});ic.displayName="AddToCart.Card.Name";const ac=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=De(r/100),c=De(t/100);return s.jsx("div",{...i,className:b.helpers.classNameConcat(Pe["add-to-cart--card--price-quantity"],e),children:s.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:s.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:s.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?s.jsxs(s.Fragment,{children:[s.jsx(b.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),s.jsx(b.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):s.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};ac.displayName="AddToCart.Card.PriceQuantity";const cd="_skeleton_12b79_1",ld={skeleton:cd},ud=({style:e})=>s.jsx("div",{style:e,className:ld.skeleton}),dd="_image_lypfr_1",fd={image:dd},pd=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Ne();return s.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(fd.image,t),"data-object-fit":r??"cover"})},md=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),Le={Image:pd,Video:md},sc=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Ve(),[c,l]=R.useState(n??"");return R.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const p=f.images.find(d=>i.includes(d.imageLabel));p!=null&&p.imageUrl?l(p.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card--style-size"],e),children:[s.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:a,children:s.jsx(b.ToggleStyle.Texture,{children:c?s.jsx(Le.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(ud,{})})}),s.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&s.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[s.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),s.jsx(b.ToggleSize.Text,{children:r})]})]})};sc.displayName="AddToCart.Card.StyleSize";const{helpers:hd}=yo,cc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=Ve(),{size:d}=hd.product.getColorAndSizeFromSkuName(a??o,p);return s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[s.jsx(ic,{brand:i.name,name:o}),s.jsx(ac,{price:u,listPrice:f,quantity:l,productId:t.id}),s.jsx(sc,{size:d,texture:r,productGroupID:c})]})};cc.displayName="AddToCart.Card.Content";const lc=({image:e,thumbnail:t=!1})=>s.jsx(Le.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});lc.displayName="AddToCart.Card";const uc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Ya(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[s.jsx(lc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(cc,{item:t,texture:r})]})};uc.displayName="AddToCart.Card";const dc=({className:e,children:t,title:r,...n})=>s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--content"],e),children:[s.jsx("div",{className:Pe["add-to-cart--content--title"],children:r&&s.jsx("h2",{children:r})}),t,s.jsx(Ue.Footer,{})]});dc.displayName="AddToCart.Layout.Content";const fc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ve(),{cartStore:{totalizers:i},setIsOpen:a}=Fe(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=i.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=De(p??0);return s.jsxs("div",{...t,className:b.helpers.classNameConcat(Pe["add-to-cart--footer"],e),children:[s.jsxs("div",{className:Pe["add-to-cart--footer--total"],children:[s.jsx("span",{children:"Subtotal:"}),s.jsx("span",{children:d})]}),s.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?s.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):s.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};fc.displayName="AddToCart.Layout.Footer";const pc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Fe(),{recentlyAddedProducts:i}=dt(),a=i.length>3?4:i.length;return s.jsxs("div",{...n,className:Pe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=o==null?void 0:o.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return s.jsx(Ue.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};pc.displayName="AddToCart.Layout.Items";const mc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ve(),{isMobile:o}=we();return s.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:Pe["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[s.jsx(b.Modal.Header,{navigation:"top",children:s.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),s.jsx(b.Modal.Body,{children:e})]})};mc.displayName="AddToCart.Modal";const gd=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ve(),o=R.useRef(t);return R.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},hc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=dt(),{isMobile:i}=we(),a=o.length>3?4:o.length;return s.jsx(zs,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx(gd,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(Ue.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(Ue.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};hc.displayName="AddToCart.Root";const gc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:l,top:u}=Ve();return s.jsx(b.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:Pe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:s.jsx("div",{className:Pe["add-to-cart--tooltip"],ref:c,children:e})})};gc.displayName="AddToCart.Tooltip";const Ue={Card:uc,Content:dc,Footer:fc,Items:pc,Modal:mc,Root:hc,Tooltip:gc},_o=({title:e,...t})=>{const{recentlyAddedProducts:r}=dt(),{isMobile:n}=we(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(Ue.Root,{isMobile:n,count:r.length,component:s.jsx(Ue.Content,{title:e,children:s.jsx(Ue.Items,{thumbnail:a,children:i&&s.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};_o.displayName="AddToCart";const Lo={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},yd=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return s.jsx(b.Card,{...a,shadow:!0,padding:"small",className:b.helpers.classNameConcat(Lo["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:Lo["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})};var yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _d(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Vn={exports:{}},Re={};Re._=Re._interop_require_default=vd;function vd(e){return e&&e.__esModule?e:{default:e}}var Ct={exports:{}},tr={},Do;function _c(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(a){const c={};return a.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(p=>c.append(u,n(p))):c.set(u,n(f))}),c}function i(a){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(tr)),tr}var rr={},et={};function vc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(vc=function(n){return n?r:t})(e)}et._=et._interop_require_wildcard=bd;function bd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=vc(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var $o;function bc(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=et._(_c()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,p=l.protocol||"",d=l.pathname||"",m=l.hash||"",h=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=l.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||o.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(rr)),rr}var nr={},Bo;function xd(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(nr)),nr}var or={},qo;function Wt(){return qo||(qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,x){for(var P in x)Object.defineProperty(C,P,{enumerable:!0,get:x[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return A},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(C){let x=!1,P;return function(){for(var S=arguments.length,I=new Array(S),$=0;$<S;$++)I[$]=arguments[$];return x||(x=!0,P=C(...I)),P}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=C=>o.test(C);function a(){const{protocol:C,hostname:x,port:P}=window.location;return C+"//"+x+(P?":"+P:"")}function c(){const{href:C}=window.location,x=a();return C.substring(x.length)}function l(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function u(C){return C.finished||C.headersSent}function f(C){const x=C.split("?");return x[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(x[1]?"?"+x.slice(1).join("?"):"")}async function p(C,x){if(process.env.NODE_ENV!=="production"){var P;if((P=C.prototype)!=null&&P.getInitialProps){const $='"'+l(C)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const S=x.res||x.ctx&&x.ctx.res;if(!C.getInitialProps)return x.ctx&&x.Component?{pageProps:await p(x.Component,x.ctx)}:{};const I=await C.getInitialProps(x);if(S&&u(S))return I;if(!I){const $='"'+l(C)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!x.ctx&&console.warn(""+l(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",m=d&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(x){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+x}}class v extends Error{constructor(x,P){super(),this.message="Failed to load static file for page: "+x+" "+P}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(C){return JSON.stringify({message:C.message,stack:C.stack})}}(or)),or}var St={exports:{}},ir={},Ho;function xc(){return Ho||(Ho=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(ir)),ir}var ar={},Fo;function vo(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(ar)),ar}var zo;function Vt(){return zo||(zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=xc(),n=vo(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(St,St.exports)),St.exports}var sr={},At={exports:{}},cr={},Uo;function Cc(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=vo();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(cr)),cr}var Go;function Cd(){return Go||(Go=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Cc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(At,At.exports)),At.exports}var Wo;function Sc(){return Wo||(Wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Wt(),r=Cd();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(o,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(sr)),sr}var lr={},ur={},Vo;function Sd(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(o,i,a){if(o.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),a=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(a)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(ur)),ur}var dr={},Ko;function Ad(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(dr)),dr}var Xo;function Ed(){return Xo||(Xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Sd(),n=Ad()}(lr)),lr}var fr={},pr={},Qo;function Rd(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Wt();function r(n){let{re:o,groups:i}=n;return a=>{const c=o.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(f=>{const p=i[f],d=c[p.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(m=>l(m)):p.repeat?[l(d)]:l(d))}),u}}}(pr)),pr}var mr={},hr={},gr={},yr={},Yo;function wd(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(yr)),yr}var _r={},Zo;function jd(){return Zo||(Zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(_r)),_r}var Jo;function Pd(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=wd(),n=jd();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(gr)),gr}var ei;function Id(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Pd(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(p=>f.startsWith(p)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(hr)),hr}var vr={},ti;function Nd(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(vr)),vr}var ri;function Od(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var v in g)Object.defineProperty(y,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=Id(),n=Nd(),o=xc(),i="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const v=y.startsWith("...");return v&&(y=y.slice(3)),{key:y,repeat:v,optional:g}}function l(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),v={};let A=1;return{parameterizedRoute:g.map(_=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(P=>_.startsWith(P)),x=_.match(/\[((?:\[.*\])|.+)\]/);if(C&&x){const{key:P,optional:S,repeat:I}=c(x[1]);return v[P]={pos:A++,repeat:I,optional:S},"/"+(0,n.escapeStringRegexp)(C)+"([^/]+?)"}else if(x){const{key:P,repeat:S,optional:I}=c(x[1]);return v[P]={pos:A++,repeat:S,optional:I},S?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function u(y){const{parameterizedRoute:g,groups:v}=l(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function f(){let y=0;return()=>{let g="",v=++y;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:C,optional:x,repeat:P}=c(v);let S=C.replace(/\W/g,"");_&&(S=""+_+S);let I=!1;return(S.length===0||S.length>30)&&(I=!0),isNaN(parseInt(S.slice(0,1)))||(I=!0),I&&(S=g()),_?A[S]=""+_+C:A[S]=""+C,P?x?"(?:/(?<"+S+">.+?))?":"/(?<"+S+">.+?)":"/(?<"+S+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:v.map(C=>{const x=r.INTERCEPTION_ROUTE_MARKERS.some(S=>C.startsWith(S)),P=C.match(/\[((?:\[.*\])|.+)\]/);return x&&P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(C)}).join(""),routeKeys:_}}function m(y,g){const v=d(y,g);return{...u(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=l(y),{catchAll:A=!0}=g;if(v==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let C=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+C+"$"}}}(mr)),mr}var ni;function Td(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Rd(),r=Od();function n(o,i,a){let c="";const l=(0,r.getRouteRegex)(o),u=l.groups,f=(i!==o?(0,t.getRouteMatcher)(l)(i):"")||a;c=o;const p=Object.keys(u);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(fr)),fr}var oi;function Md(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=_c(),n=bc(),o=xd(),i=Wt(),a=Vt(),c=Sc(),l=Ed(),u=Td();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let C="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const P=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:S,params:I}=(0,u.interpolateAs)(_.pathname,_.pathname,P);S&&(C=(0,n.formatWithValidation)({pathname:S,hash:_.hash,query:(0,o.omit)(P,I)}))}const x=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return m?[x,C||x]:x}catch{return m?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ct,Ct.exports)),Ct.exports}var Et={exports:{}},br={},xr={},ii;function Ac(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=vo();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(n);return""+o+i+a+c}}(xr)),xr}var ai;function kd(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ac(),r=Cc();function n(o,i,a,c){if(!i||i===a)return o;const l=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(br)),br}var si;function Ld(){return si||(si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Vt(),n=function(o){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(kd().addLocale(o,...a)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Et,Et.exports)),Et.exports}var Cr={},ci;function Ec(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Cr)),Cr}var Sr={},li;function Dd(){return li||(li=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Re._(R);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(Sr)),Sr}var Rt={exports:{}},wt={exports:{}},ui;function Rc(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports}var di;function $d(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=R,n=Rc(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=i.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(v=>{const A=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;A&&_&&A(_)})},f);return m={id:p,observer:y,elements:h},a.push(p),i.set(p,m),m}function l(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),i.delete(m);const v=a.findIndex(A=>A.root===m.root&&A.margin===m.margin);v>-1&&a.splice(v,1)}}}function u(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(C=>{v.current=C},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const C=v.current;if(C&&C.tagName)return l(C,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const C=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(C)}},[h,d,p,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[A,y,_]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Rt,Rt.exports)),Rt.exports}var jt={exports:{}},Pt={exports:{}},Ar={},fi;function Bd(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(o=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(Ar)),Ar}var pi;function qd(){return pi||(pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?Bd().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Pt,Pt.exports)),Pt.exports}var It={exports:{}},Er={},mi;function Hd(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===l||o===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===o))return c}}}}(Er)),Er}var hi;function Fd(){return hi||(hi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Hd().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(It,It.exports)),It.exports}var gi;function zd(){return gi||(gi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Vt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=qd().normalizeLocalePath,f=Fd().detectDomainLocale,p=a||u(i,c).detectedLocale,d=f(l,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}var Nt={exports:{}},yi;function Ud(){return yi||(yi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ac(),n=Vt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Nt,Nt.exports)),Nt.exports}var Ot={exports:{}},_i;function Gd(){return _i||(_i=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",o="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ot,Ot.exports)),Ot.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});const n=Re._(R),o=Md(),i=Sc(),a=bc(),c=Wt(),l=Ld(),u=Ec(),f=Dd(),p=$d(),d=zd(),m=Ud(),h=Gd(),y=new Set;function g(P,S,I,$,E,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(S))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in P?P.locale:void 0,w=S+"%"+I+"%"+B;if(y.has(w))return;y.add(w)}const k=N?P.prefetch(S,E):P.prefetch(S,I,$);Promise.resolve(k).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function v(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function A(P,S,I,$,E,N,k,B,w,q){const{nodeName:z}=P.currentTarget;if(z.toUpperCase()==="A"&&(v(P)||!w&&!(0,i.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=k??!0;"beforePopState"in S?S[E?"replace":"push"](I,$,{shallow:N,locale:B,scroll:W}):S[E?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:W})};w?n.default.startTransition(K):K()}function _(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const x=n.default.forwardRef(function(S,I){let $;const{href:E,as:N,children:k,prefetch:B=null,passHref:w,replace:q,shallow:z,scroll:U,locale:K,onClick:W,onMouseEnter:F,onTouchStart:ne,legacyBehavior:j=!1,...T}=S;$=k,j&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,M=B!==!1,J=B===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(S[oe]==null||typeof S[oe]!="string"&&typeof S[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:S[oe]===null?"null":typeof S[oe]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(oe=>{const V=typeof S[oe];if(oe==="as"){if(S[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(S[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(S[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&S[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);S.prefetch&&!Q.current&&!Z&&(Q.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&Z&&!N){let ie;if(typeof E=="string"?ie=E:typeof E=="object"&&typeof E.pathname=="string"&&(ie=E.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=_(E);return{href:G,as:N?_(N):G}}const[ie,me]=(0,o.resolveHref)(D,E,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,E,N]),L=n.default.useRef(Y),O=n.default.useRef(ee);let re;if(j)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
3
  Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+E+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=w?re&&typeof re=="object"&&re.ref:I,[ce,ue,se]=(0,f.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Y)&&(se(),O.current=ee,L.current=Y),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Y,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!M||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,ue,K,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!w&&typeof G=="function"&&G(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,F,U,K,Z,M))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||R||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,u.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Gn,Gn.exports);var Pd=Gn.exports,Id=Pd;const Pe=Wt(Id),yo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},_o=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=He(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),i=r.reduce((s,c)=>s+(c.quantity??0),0);return a.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:a.jsxs(b.Badge.AutoPositioner,{children:[a.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),a.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};_o.displayName="Header.Bag";const pt=({children:e,href:t,...r})=>t&&t!=="#"?a.jsx(Pe,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,_c=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=qe(),o=i=>{i?n(i):r()};return a.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,s)=>a.jsx(pt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:a.jsx(b.Header.CategoryItem,{className:yo["btn-header"],value:i.submenuId??null,adornment:{start:a.jsx(b.Icon,{name:i.iconStart}),end:a.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${s}`))})};_c.displayName="Header.Categories";function Nd({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=lo();return a.jsxs(a.Fragment,{children:[a.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:a.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),a.jsx(e,{recommendations:!1,trends:!0})]})}const Od={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Td={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Md(e,t,r){const[n,o]=P.useState(!1),{threshold:i}=r||{};return P.useEffect(()=>{if(!e.current)return()=>null;let s=null;const c=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){s&&clearTimeout(s),s=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Xt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...s})=>{const c=P.useRef(null),u=Md(c,o,r),{sendDataLayerEvent:l}=ge();return P.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),a.jsx("div",{...s,ref:c,className:b.helpers.classNameConcat(Td["observer-wrapper"],i),children:e})},vo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return a.jsx("div",{className:Od["menu-subcategories-container"],children:e.map((s,c)=>{const u=r?s.srcMobile:s.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:u,promotion_name:s.promotion_name};return a.jsx(Xt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:a.jsxs(Pe,{href:s.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[a.jsx(ke.Image,{src:u,alt:s.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),s.label&&a.jsx("p",{children:s.label})]})},`thumb-${s.label}-${c}`)})})};vo.displayName="Menu.Thumbnail";const Vn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},kd="_link_w24h0_1",Ld="_wrapper_w24h0_98",Dd="_text_w24h0_106",Rr={link:kd,wrapper:Ld,text:Dd},tt=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:s,title:c,onClick:u,disablePadding:l,...p})=>{const f=b.helpers.ValidateProp({fieldTypes:Ye.SizesSmallExtended,property:s,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:i,fallback:"default"});return a.jsx(Pe,{...p,className:b.helpers.classNameConcat(Rr.link,r),href:o&&o.length>0?o:"#","data-size":f,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:a.jsxs("div",{className:Rr.wrapper,onClick:u,children:[t==null?void 0:t.start,a.jsx("p",{className:Rr.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},vc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Me(),{reset:i}=qe(),{handleSelectContent:s}=ge(),{CONSTANTS:c}=xe();return a.jsxs("div",{...n,className:Vn["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,p)=>{var m,h,y;const f=l.listCollapseDesk&&!((m=l.see_all)!=null&&m.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.see_all)!=null&&h.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:a.jsx(b.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(b.ComponentList.Structure,{children:[a.jsx(pt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),s({content:`menu:${l.label??""}:${r.label??""}`}))},children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{children:l.label})})})}),a.jsx(b.ComponentList.List,{columns:1,...f,className:Vn["submenu-categories"],children:l.items.map((g,v)=>a.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:a.jsx(tt,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),s({content:`menu:${l.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=l.see_all)==null?void 0:y.link)&&a.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),s({content:`menu:${l.label??""}:${r.label}`}),o.push(l.see_all.link))},children:l.see_all.link&&l.see_all.label})]},`list-${l.label}-${p}`)}),t&&a.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};vc.displayName="Menu.Categories";var Kn={exports:{}};function $d(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wr={},jr={},hi;function Bd(){return hi||(hi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(jr)),jr}var gi;function qd(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(P),n=Bd();function o(h){return h&&h.default?h.default:h}const i=[],s=[];let c=!1;function u(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function l(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),v=null;function A(){if(!v){const C=new p(h,g);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const C=g.webpack&&typeof $d.resolveWeak=="function"?g.webpack():g.modules;C&&s.push(j=>{for(const x of C)if(j.includes(x))return A()})}function _(){A();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(j=>{C(j)})}function S(C,j){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:v.retry}):x.loaded?r.default.createElement(o(x.loaded),C):null,[C,x])}return S.preload=()=>A(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(h){return l(u,h)}function d(h,y){let g=[];for(;h.length;){let v=h.pop();g.push(v(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}f.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),f.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(s,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const m=f}(wr)),wr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,f){for(var d in f)Object.defineProperty(p,d,{enumerable:!0,get:f[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Re,o=n._(P),i=n._(qd()),s=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function u(p,f){if(delete f.webpack,delete f.modules,!s)return p(f);const d=f.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(p,f){let d=i.default,m={loading:g=>{let{error:v,isLoading:A,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(A)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};p instanceof Promise?m.loader=()=>p:typeof p=="function"?m.loader=p:typeof p=="object"&&(m={...m,...p}),m={...m,...f};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,u(d,m)):d({...m,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Kn,Kn.exports);var Hd=Kn.exports,zd=Hd;const bo=Wt(zd),bc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return a.jsxs(a.Fragment,{children:[a.jsx("div",{...r,className:Vn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&a.jsx(b.Utils.Divider,{size:"small"})]})};bc.displayName="Menu.MenuRoot";const Fd=bo(()=>Promise.resolve(bc),{ssr:!1}),Pr={Root:Fd,Categories:vc,Thumbnail:vo},xc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Ft(),{reset:n}=qe();return a.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:s,label:c,id:u}=o,l=u===r,p=s==null?void 0:s.some(f=>!!f.srcDesk);return a.jsxs(Pr.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[a.jsx(Pr.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(s)&&a.jsx(Pr.Thumbnail,{thumbnails:s,isMobile:!1,category:c,callBack:n})]},`submenu-${u}-${i}`)})})};xc.displayName="Header.SubMenu";const Cc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return a.jsx(Pe,{href:"/favoritos",children:a.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:a.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Cc.displayName="Header.WishList";const Sc=({UserMenu:e,SearchModal:t})=>{const r=P.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=qe(),{setValue:s}=Ut();return a.jsxs(a.Fragment,{children:[a.jsxs(b.Header.Wrapper,{children:[a.jsx(b.Header.Logo,{style:{width:"100%"},children:a.jsx(Pe,{href:"/",onMouseEnter:i,children:a.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),a.jsx(_c,{}),a.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[a.jsx(Nd,{SearchModal:t}),a.jsx(e,{target:r.current,children:a.jsx(b.Header.SupportItem,{onClick:()=>{s(!0),o({content:"header:user_menu"})},className:yo["btn-login"],innerRef:r,children:a.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),a.jsx(Cc,{}),a.jsx(_o,{id:"cart-button"})]})]}),a.jsx(xc,{})]})};Sc.displayName="Header.HeaderDesktopWrapper";const Ud="_divider_1lexj_199",_e={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:Ud,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Ac=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>a.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?a.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[a.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:a.jsx(ke.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),a.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:a.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):a.jsx("h2",{...i,children:e})});Ac.displayName="Menu.MenuCategories";const Ec=({children:e,link:t})=>{const{reset:r}=Ge();return t?a.jsx(Pe,{href:t??"#",onClick:r,children:e}):e};Ec.displayName="Menu.MenuCategoriesWrapper";const Rc=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Me(),{reset:n}=Ge(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),s=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:a.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return a.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[a.jsx(pt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),a.jsx(b.ComponentList.List,{columns:1,...s,className:_e["submenu-categories"],children:e.items.map((f,d)=>a.jsx(b.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:a.jsx(tt,{href:f.link??"#",size:"x-small",title:f.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${f.label}:${t}`})},children:f.label})},`list-item-${f.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&a.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var f;n(),o({content:`menu:${e.label??""}:${t}`}),(f=e.see_all)!=null&&f.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Rc.displayName="Menu.SubMenuSubCategory";const wc=({submenu:e})=>{var i;const t=Ft(),{handleCloseSubMenu:r}=ft(),{reset:n}=qe(),{CONSTANTS:o}=xe();return a.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[a.jsx(b.TextStructure.Root,{adornment:{start:a.jsx(b.Icon,{name:o.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&a.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:a.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),a.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&a.jsx(vo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((s,c)=>a.jsx(Rc,{subcategory:s,submenuLabel:e.label},`list-${s.label}-${c}`))]})};wc.displayName="Menu.SubMenuItem";const jc=()=>{const{headerData:e}=xe(),t=Ft(),{reset:r}=qe(),{bodyRef:n}=ft();return a.jsx(b.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:a.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>a.jsx(wc,{submenu:o},`submenu-${o.id}-${i}`))})})};jc.displayName="Menu.SubMenu";const Pc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=qe(),{bodyRef:o}=ft(),{handleSelectContent:i}=ge();return a.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[a.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((s,c)=>{const u=s.submenuId?{}:{"data-close":!0};return a.jsx(Ec,{link:s.submenuId?null:s.link,children:a.jsx(Ac,{onClick:()=>{n(s.submenuId??null),i({content:`menu:${s.label}`})},mobileBannerSrc:s.mobileBannerSrc,mobileBannerAlt:s.mobileBannerAlt,textColor:s.textColor,...u,children:s.mobileBannerAlt})},`menu-categories-${c}`)})}),a.jsx(jc,{})]})};Pc.displayName="Menu.MenuBody";const Ic=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return a.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{children:[e&&a.jsx("h2",{className:"typography-style-body-md",children:e}),t&&a.jsx("h3",{children:t})]})}),a.jsx(b.Button,{adornment:{end:a.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Ic.displayName="Menu.MenuHeaderWrapper";const Nc=({navigationLinks:e})=>{const{reset:t}=Ge(),{handleSelectContent:r}=ge();return e?a.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>a.jsx(tt,{href:n.link??"#",adornments:{start:n.iconStart&&a.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&a.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};Nc.displayName="Menu.MenuHeaderNavLinks";const Oc=()=>{const{headerData:e}=xe();return a.jsxs("div",{className:_e["menu-header-container"],children:[a.jsx(Ic,{title:e.title,subtitle:e.subtitle}),a.jsx(Nc,{navigationLinks:e.navigationLinks})]})};Oc.displayName="Menu.MenuHeaderContainer";const Tc=({children:e})=>{const{documentBodyRef:t}=ft(),{CONSTANTS:r}=xe(),n=uo(),{setValue:o}=Ge();return a.jsx(b.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:_e["modal-modifier"],children:a.jsx("div",{className:_e["menu-mobile"],children:e})})};Tc.displayName="Menu.MenuRoot";const Wd=bo(()=>Promise.resolve(Tc),{ssr:!1}),Bt=({children:e,...t})=>a.jsxs(a.Fragment,{children:[a.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),a.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Bt.displayName="Menu.NavigationBarItem";const Mc=()=>{const{setIsOpen:e}=He(),{reset:t}=Ge(),{setValue:r}=Ut(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Me();return a.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[a.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),a.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),a.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};Mc.displayName="Menu.NavigationBar";const Tt={Root:Wd,NavigationBar:Mc,Header:Oc,Body:Pc},kc=({UserMenu:e,SearchModal:t})=>{const r=P.useRef(null),n=P.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:s,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:u}=ge(),{setValue:l}=lo(),{setValue:p}=Ge(),{setValue:f}=Ut();return a.jsxs(a.Fragment,{children:[a.jsxs(b.Header.Wrapper,{children:[c==="left"&&a.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:a.jsx(b.Icon,{name:s.menu,size:"medium"})}),a.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:a.jsx(Pe,{href:"/",children:a.jsx(b.Icon,{name:s.logo,size:"x-large",onClick:()=>{u({content:"header:logo"})}})})}),a.jsxs(b.Header.Support,{children:[a.jsx(b.Header.SupportItem,{onClick:()=>{l(!0),u({content:"header:search"})},children:a.jsx(b.Icon,{name:s.search,size:"medium"})}),a.jsx(b.Header.SupportItem,{onClick:()=>{f(!0),u({content:"header:user_menu"})},innerRef:n,children:a.jsx(b.Icon,{name:s.person,size:"medium"})}),a.jsx(_o,{}),c==="right"&&a.jsx(b.Header.SupportItem,{onClick:()=>p(!0),innerRef:r,children:a.jsx(b.Icon,{name:s.menu,size:"medium"})})]})]}),a.jsx(t,{recommendations:!1,trends:!0}),a.jsx(Ds,{children:a.jsx(e,{target:n==null?void 0:n.current,children:a.jsxs(Tt.Root,{children:[a.jsx(Tt.Header,{}),a.jsx(Tt.Body,{}),i?a.jsx(Tt.NavigationBar,{}):a.jsx(a.Fragment,{})]})})})]})};kc.displayName="Header.HeaderMobileWrapper";const Lc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:s}=xe(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:u}}=s;return a.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:yo["header-animation"],children:a.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[a.jsx("div",{className:Ue.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:a.jsx(kc,{UserMenu:r,SearchModal:n})}),a.jsx("div",{className:Ue.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:a.jsx(Sc,{UserMenu:r,SearchModal:n})}),t,a.jsx(ho,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart})]})})};Lc.displayName="Header";const Gd="_shippingFreight_6z8rf_6",Vd="_shippingFreight__postalCodeGrid_6z8rf_10",Kd="_shippingFreight__grid_6z8rf_14",Xd="_shippingFreight__grid__title_6z8rf_18",Qd="_shippingFreight__grid__remember_6z8rf_29",Yd="_postalCodeContainer_6z8rf_44",Zd="_deliveryStatusBar__tag_6z8rf_49",Jd="_deliveryStatusBarError__tag_6z8rf_66",ef="_deliveryInfo_6z8rf_74",tf="_deliveryInfo__content_6z8rf_78",rf="_deliveryInfo__text_6z8rf_84",nf="_deliveryInfo__title_6z8rf_89",of="_deliveryInfo__subtitle_6z8rf_99",af="_deliveryInfo__tooltipIcon_6z8rf_109",sf="_deliveryInfo__tooltip_6z8rf_109",cf="_freightGrid_6z8rf_148",uf="_freightContainer_6z8rf_155",lf="_freightOption__content_6z8rf_160",df="_freightOption__value_6z8rf_166",ff="_freightOption__title_6z8rf_177",pf="_freightOption__title_item_6z8rf_181",mf="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Gd,shippingFreight__postalCodeGrid:Vd,shippingFreight__grid:Kd,shippingFreight__grid__title:Xd,shippingFreight__grid__remember:Qd,postalCodeContainer:Yd,deliveryStatusBar__tag:Zd,deliveryStatusBarError__tag:Jd,deliveryInfo:ef,deliveryInfo__content:tf,deliveryInfo__text:rf,deliveryInfo__title:nf,deliveryInfo__subtitle:of,deliveryInfo__tooltipIcon:af,deliveryInfo__tooltip:sf,freightGrid:cf,freightContainer:uf,freightOption__content:lf,freightOption__value:df,freightOption__title:ff,freightOption__title_item:pf,freightOption__paragraph:mf,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},hf=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:s,toolTipZIndex:c})=>{const[u,l]=P.useState(!1),p=P.useRef(null),f=()=>l(d=>!d);return a.jsxs("div",{className:fe.deliveryInfo,ref:p,children:[a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsx("div",{children:a.jsx("p",{children:s.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),a.jsxs("div",{className:fe.deliveryInfo__content,children:[a.jsx("div",{className:fe.deliveryInfo__icon,children:a.jsx(b.Icon,{name:e,size:"medium"})}),a.jsxs("div",{className:fe.deliveryInfo__text,children:[a.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&a.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&a.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:f,onMouseLeave:f,"aria-label":"Mostrar descrição",children:[a.jsx("span",{children:a.jsx(b.Icon,{name:s.icons.feedback_help,size:"small"})}),u&&a.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},gf=({value:e,title:t,paragraph:r})=>a.jsx("div",{className:fe.freightOption,children:a.jsxs("div",{className:fe.freightOption__content,children:[a.jsx("span",{className:fe.freightOption__value,children:e}),a.jsx("span",{className:fe.freightOption__title,children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[a.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&a.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),yf=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),_f=({children:e})=>a.jsx("div",{className:fe.freightGrid,children:e}),vf=({children:e})=>a.jsx("div",{className:fe.postalCodeContainer,children:e}),yi=({message:e,seller:t="",size:r="small",setError:n})=>a.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:a.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),bf=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},xf=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},Cf=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:s,toolTipZIndex:c=999,...u})=>{const{isMobile:l}=Ie();return a.jsx(a.Fragment,{children:l?a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...u,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):a.jsx(b.Tooltip.Root,{arrow:"bottom",component:a.jsxs("div",{...u,ref:i,children:[e,a.jsx("p",{children:s.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Sf=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:s,component:c,freightConfig:u,toolTipZIndex:l})=>{var N,k,B,R;const p=Ze(),f=Ze(q=>q.shipping),[d,m]=P.useState(),[h,y]=P.useState(!1),[g,v]=P.useState(!1),[A,_]=P.useState(!1),S=(k=(N=p.shippingData)==null?void 0:N.address)==null?void 0:k.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=P.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await wo.get(`https://viacep.com.br/ws/${F}/json/`)).data.erro){i&&i(u.messages.cep_not_found),s(!1),v(!0);return}i&&i(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},$=async()=>{y(!0);try{const q=await wo.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(xf(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),f(C,"BRA")}},E=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:C}}),h||($(),s(!0))};return a.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?a.jsx(Cf,{component:c,isOpen:A,parent:j.current,toolTipZIndex:l,freightConfig:u}):a.jsx(a.Fragment,{}),a.jsx("div",{style:{position:"relative"},children:a.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:a.jsx(b.TextField.Input,{defaultValue:(R=(B=p.shippingData)==null?void 0:B.address)==null?void 0:R.postalCode,label:u.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:a.jsx(b.Button,{onClick:E,size:r,title:"button",children:h?a.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},Af=({children:e,freightConfig:t})=>a.jsxs("div",{className:fe.shippingFreight,children:[a.jsxs("div",{className:fe.shippingFreight__grid,children:[a.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),a.jsx("span",{className:fe.shippingFreight__grid__remember,children:a.jsx(tt,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),a.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Ef=({children:e})=>a.jsx("div",{className:fe.freightContainer,children:e}),Rf=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:s,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=P.useState(""),[f,d]=P.useState([]),[m,h]=P.useState(""),[y,g]=P.useState(!1),v=_=>p(_),A=_=>{d(_),u({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:c.currency||"BRL"}))}}})};return a.jsxs(Ef,{className:e,children:[a.jsxs(Af,{freightConfig:c.freightConfig,children:[a.jsx(vf,{children:a.jsx(Sf,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:s,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?a.jsx(yi,{size:o,message:m,setError:h}):f.length>0&&a.jsx(yi,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?f.length>0&&a.jsxs(yf,{children:[a.jsx(_f,{children:f.filter(({id:_})=>!_.includes("Retirada")).map(_=>a.jsx(gf,{id:_.id,value:oo({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${bf(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?a.jsx(hf,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):a.jsx(a.Fragment,{})]}):null]})},Dc=P.createContext({}),wf=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,s]=P.useState(null),c=P.useRef(null),u=P.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:p}=ge(),f=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{f("add_to_wishlist")},m=()=>{l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...u.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(p.current={item_list_name:n}),f("select_item")};return a.jsx(Dc.Provider,{value:P.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:s,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Oe=()=>{const e=P.useContext(Dc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},$c=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:s},image:c}}=Oe();return s?a.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[a.jsxs(we.Wrapper,{type:"actions--group",children:[a.jsx(we.Price,{}),a.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&a.jsx(we.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};$c.displayName="ProductCard.Actions";const Bc=({className:e,isKit:t,...r})=>{const{addToCart:n}=He(),{isMobile:o=!1,selectedSku:i,outStock:s,item:c,sendAddToCartEvent:u,CONSTANTS:l}=Oe(),p=()=>{var m;if(!i)return;const d=ao(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),u()},f=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return a.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!s,size:o?"medium":"large",variant:s?"secondary":"primary",onClick:s?r.onClick:p,children:s?"Avise-me quando chegar":f})};Bc.displayName="ProductCard.Actions.BuyButton";const qc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Oe();return a.jsxs(we.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?a.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?a.jsx(b.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&a.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};qc.displayName="ProductCard.Actions.Header";const Hc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:s,item:{image:c,slug:u,video:l},sendSelectItemEvent:p,order:f,CONSTANTS:d}=Oe(),m=Ka({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[a.jsx(Pe,{href:`/${u}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(f))},children:a.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>P.createElement(ke.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&s<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&a.jsx(we.Video,{url:l,poster:m[0].url}),t]})};Hc.displayName="ProductCard.Media.Media";const zc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:s}}=Oe(),{availability:{status:c}}=i;return c?null:a.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[a.jsx(b.Tag,{size:"small",variant:"secondary",title:s.disabled,children:s.disabled}),a.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:s.notify})]})};zc.displayName="ProductCard.OutStock";const Fc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:s,outStock:c,shelfTitle:u,CONSTANTS:l,WishListToggle:p,...f})=>a.jsx(wf,{item:o,isMobile:n,outStock:c,order:s,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:p,children:a.jsx("div",{...f,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Fc.displayName="ProductCard.Root";const Uc=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>a.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[a.jsx(b.ToggleSize.DisabledAdornment,{}),a.jsx(b.ToggleSize.Text,{children:t})]});Uc.displayName="ProductCard.SizeSelector.Item";const Wc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:s,setSelectedSku:c,eventDataRef:u}=Oe();n.productId=i.id;const l=Ua(n),p=za(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const f=P.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=P.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}f(n)},[n,o,f,l,i]);return a.jsx(Uc,{active:e,disabled:l,label:p,onClick:()=>d(),size:s?"x-small":"small",value:n})};Wc.displayName="ProductCard.SizeSelector.SkuItem";const Gc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:s}},selectedSku:c}=Oe();return a.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[a.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(s)&&s.map((u,l)=>a.jsx(Wc,{active:c===u,callback:e,item:u,selectedSku:c,setNotify:n},`size--${l}--${u.sku}`))}),a.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};Gc.displayName="ProductCard.SizeSelector";const Xn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...s})=>a.jsxs(b.ToggleStyle.Wrapper,{...s,onClick:()=>{typeof t=="function"&&t(i)},children:[a.jsx(b.ToggleStyle.DisabledAdornment,{}),a.jsxs(b.ToggleStyle.Texture,{children:[o&&a.jsx(ke.Image,{alt:e??o,src:o,height:34,width:34}),r&&a.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:a.jsxs("p",{children:["+ ",n]})})]})]}),jf=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:s}=Oe(),{triggerSelectItemEventRef:c}=ge();return a.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>a.jsx(Xn,{callback:p=>{c.current.trigger=!0,c.current.index=s,typeof t=="function"&&t(p)},src:(u==null?void 0:u.textureImage)??"",alt:u==null?void 0:u.textureAlt,url:u==null?void 0:u.slug,size:o},l)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&a.jsx(Xn,{size:o,total:r.length-n,more:!0})]})},Vc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:s}=Oe(),c=o||s.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>c.includes(l.alternateName));return a.jsx(jf,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&a.jsx(Xn,{active:!0,size:"x-small",src:u.url})})};Vc.displayName="ProductCard.StyleSelector";const Kc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:s,value:c}},eventDataRef:u}=Oe();u.current.priceInfo={price:o,listPrice:i};const l=Le(i,t),p=Le(o,t),f=Le(c??0),d=n?"horizontal":"stacked";return a.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:a.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:a.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[a.jsx(b.ProductInfo.ValuesWrapper,{children:p!==l?a.jsxs(a.Fragment,{children:[a.jsx(b.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),a.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):a.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),s&&s>1&&c?a.jsx(b.ProductInfo.Price,{label:"installment",value:`${s}x ${f}`,size:"small"}):null]})})})};Kc.displayName="ProductCard.Price";const Xc=({tag:e,className:t})=>{const{item:{name:r}}=Oe();return a.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[a.jsx("div",{className:Se["product-card--title--tag"],children:e?a.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?a.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):a.jsx("div",{})}),a.jsx("div",{className:Se["product-card--title--content"],children:r&&a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h3",{children:r})})})})]})};Xc.displayName="ProductCard.Title";const Qc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Oe();return P.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,s=i.querySelector("video");if(s){const c=new IntersectionObserver(p=>{p.forEach(f=>{Xa(f.isIntersecting,s,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{s.setAttribute("data-loaded","true")},l=()=>{i&&(c.observe(i),s.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{c.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),a.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&a.jsx(ke.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Qc.displayName="ProductCard.Media.Video";const Yc=({children:e,className:t,type:r,...n})=>a.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Yc.displayName="ProductCard.Wrapper";const we={Actions:$c,BuyButton:Bc,Header:qc,Media:Hc,Root:Fc,OutStock:zc,Price:Kc,SizeSelector:Gc,StyleSelector:Vc,Title:Xc,Video:Qc,Wrapper:Yc},Pf="_footer__bottom_1o9af_2",If="_footer__wrapper_1o9af_10",Nf="_footer__main_1o9af_39",Of="_footer__legalInformation_1o9af_55",Tf="_footer__column_1o9af_77",Mf="_footer__columnContent_1o9af_87",kf="_footer__item_1o9af_91",Lf="_footer__itemLink_1o9af_107",Df="_footer__columnTitle_1o9af_122",$f="_footer__columnTitleIcon_1o9af_134",Bf="_footer__iconList_1o9af_147",qf="_footer__itemSmallText_1o9af_157",Hf="_payment_1o9af_168",zf="_footer__iconContainer_1o9af_173",Ff="_footer__iconListSubHeader_1o9af_178",Uf="_accordionWrapper_1o9af_200",Wf="_accordionHeader_1o9af_204",Gf="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Pf,footer__wrapper:If,footer__main:Nf,footer__legalInformation:Of,footer__column:Tf,footer__columnContent:Mf,footer__item:kf,footer__itemLink:Lf,footer__columnTitle:Df,footer__columnTitleIcon:$f,footer__iconList:Bf,footer__itemSmallText:qf,payment:Hf,footer__iconContainer:zf,footer__iconListSubHeader:Ff,accordionWrapper:Uf,accordionHeader:Wf,accordionTextWrapper:Gf,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var Zc={},xo={},mt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(mt);var Jc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:s,blurDataURL:c,objectFit:u}=r;const l=20,p=i?i*40:n,f=s?s*40:o,d=p&&f?"viewBox='0 0 "+p+" "+f+"'":"",m=d?"none":u==="contain"?"xMidYMid":u==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Jc);var Qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(Qt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=mt,r=Jc,n=Qt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function s(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(h)||s(h))}const u=new Map;let l;function p(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function f(h,y,g){let{deviceSizes:v,allSizes:A}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let j;j=S.exec(g);j)C.push(parseInt(j[2]));if(C.length){const j=Math.min(...C)*.01;return{widths:A.filter(x=>x>=v[0]*j),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>A.find(C=>C>=S)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:A,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:j,kind:x}=f(y,A,S),I=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map(($,E)=>C({config:y,src:g,quality:_,width:$})+" "+(x==="w"?$:E+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[I]})}}function m(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:I,fill:$=!1,style:E,onLoad:N,onLoadingComplete:k,placeholder:B="empty",blurDataURL:R,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:G,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:T,blurComplete:D,defaultLoader:X}=y;let te,Z=w||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const W=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),le=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:W,deviceSizes:le}}let M=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in M;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const W=M;M=le=>{const{config:Ce,...Q}=le;return W(Q)}}if(F){F==="fill"&&($=!0);const W={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=W[F];Ce&&(E={...E,...Ce});const Q=le[F];Q&&!v&&(v=Q)}let Y="",ee=p(x),L=p(I),O,re;if(c(g)){const W=i(g)?g.default:g;if(!W.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(W));if(!W.height||!W.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(W));if(O=W.blurWidth,re=W.blurHeight,R=R||W.blurDataURL,Y=W.src,!$){if(!ee&&!L)ee=W.width,L=W.height;else if(ee&&!L){const le=ee/W.width;L=Math.round(W.height*le)}else if(!ee&&L){const le=L/W.height;ee=Math.round(W.width*le)}}}g=typeof g=="string"?g:Y;let ae=!_&&(S==="lazy"||typeof S>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(A=!0,ae=!1),te.unoptimized&&(A=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(A=!0),_&&(q="high");const ce=p(j);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!A)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!g)A=!0;else if($){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(E!=null&&E.position&&E.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(E!=null&&E.width&&E.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(E!=null&&E.height&&E.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+o.map(String).join(",")+".");if(_&&S==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!R){const W=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=j?re&&typeof re=="object"&&re.ref:I,[ce,le,se]=(0,p.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Y)&&(se(),O.current=ee,L.current=Y),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Y,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!le||!M||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!j&&typeof W=="function"&&W(ie),j&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,z,U,K,Z,M))},onMouseEnter(ie){!j&&typeof F=="function"&&F(ie),j&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!j&&typeof ne=="function"&&ne(ie),j&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!j||w||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return j?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Vn,Vn.exports);var Wd=Vn.exports,Vd=Wd;const Ie=Gt(Vd),bo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},xo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Fe(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return s.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:s.jsxs(b.Badge.AutoPositioner,{children:[s.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),s.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};xo.displayName="Header.Bag";const mt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(Ie,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,wc=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=He(),o=i=>{i?n(i):r()};return s.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(mt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:s.jsx(b.Header.CategoryItem,{className:bo["btn-header"],value:i.submenuId??null,adornment:{start:s.jsx(b.Icon,{name:i.iconStart}),end:s.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};wc.displayName="Header.Categories";function Kd({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=po();return s.jsxs(s.Fragment,{children:[s.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:s.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),s.jsx(e,{recommendations:!1,trends:!0})]})}const Xd={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Qd={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Yd(e,t,r){const[n,o]=R.useState(!1),{threshold:i}=r||{};return R.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Kt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=R.useRef(null),l=Yd(c,o,r),{sendDataLayerEvent:u}=ge();return R.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),s.jsx("div",{...a,ref:c,className:b.helpers.classNameConcat(Qd["observer-wrapper"],i),children:e})},Co=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:Xd["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return s.jsx(Kt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:s.jsxs(Ie,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:u})},children:[s.jsx(Le.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&s.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Co.displayName="Menu.Thumbnail";const Kn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Zd="_link_w24h0_1",Jd="_wrapper_w24h0_98",ef="_text_w24h0_106",Rr={link:Zd,wrapper:Jd,text:ef},nt=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const p=b.helpers.ValidateProp({fieldTypes:Ye.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:i,fallback:"default"});return s.jsx(Ie,{...f,className:b.helpers.classNameConcat(Rr.link,r),href:o&&o.length>0?o:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:s.jsxs("div",{className:Rr.wrapper,onClick:l,children:[t==null?void 0:t.start,s.jsx("p",{className:Rr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},jc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:o}=Ne(),{reset:i}=He(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=be();return s.jsxs("div",{...n,className:Kn["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var m,h,y;const p=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:s.jsx(b.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(b.ComponentList.Structure,{children:[s.jsx(mt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{children:u.label})})})}),s.jsx(b.ComponentList.List,{columns:1,...p,className:Kn["submenu-categories"],children:u.items.map((g,v)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:s.jsx(nt,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=u.see_all)==null?void 0:y.link)&&s.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),o.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&s.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};jc.displayName="Menu.Categories";var Xn={exports:{}};function tf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wr={},jr={},vi;function rf(){return vi||(vi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(jr)),jr}var bi;function nf(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(R),n=rf();function o(h){return h&&h.default?h.default:h}const i=[],a=[];let c=!1;function l(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function u(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),v=null;function A(){if(!v){const x=new f(h,g);v={getCurrentValue:x.getCurrentValue.bind(x),subscribe:x.subscribe.bind(x),retry:x.retry.bind(x),promise:x.promise.bind(x)}}return v.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const x=g.webpack&&typeof tf.resolveWeak=="function"?g.webpack():g.modules;x&&a.push(P=>{for(const S of x)if(P.includes(S))return A()})}function _(){A();const x=r.default.useContext(n.LoadableContext);x&&Array.isArray(g.modules)&&g.modules.forEach(P=>{x(P)})}function C(x,P){_();const S=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:v.retry}),[]),r.default.useMemo(()=>S.loading||S.error?r.default.createElement(g.loading,{isLoading:S.loading,pastDelay:S.pastDelay,timedOut:S.timedOut,error:S.error,retry:v.retry}):S.loaded?r.default.createElement(o(S.loaded),x):null,[x,S])}return C.preload=()=>A(),C.displayName="LoadableComponent",r.default.forwardRef(C)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(h){return u(l,h)}function d(h,y){let g=[];for(;h.length;){let v=h.pop();g.push(v(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(wr)),wr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Re,o=n._(R),i=n._(nf()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=i.default,m={loading:g=>{let{error:v,isLoading:A,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(A)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,l(d,m)):d({...m,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Xn,Xn.exports);var of=Xn.exports,af=of;const So=Gt(af),Pc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return s.jsxs(s.Fragment,{children:[s.jsx("div",{...r,className:Kn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&s.jsx(b.Utils.Divider,{size:"small"})]})};Pc.displayName="Menu.MenuRoot";const sf=So(()=>Promise.resolve(Pc),{ssr:!1}),Pr={Root:sf,Categories:jc,Thumbnail:Co},Ic=()=>{const{headerData:e,CONSTANTS:t}=be(),r=zt(),{reset:n}=He();return s.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:c,id:l}=o,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return s.jsxs(Pr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[s.jsx(Pr.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(a)&&s.jsx(Pr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};Ic.displayName="Header.SubMenu";const Nc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return s.jsx(Ie,{href:"/favoritos",children:s.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:s.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Nc.displayName="Header.WishList";const Oc=({UserMenu:e,SearchModal:t})=>{const r=R.useRef(null),{CONSTANTS:n}=be(),{handleSelectContent:o}=ge(),{reset:i}=He(),{setValue:a}=Ut();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[s.jsx(b.Header.Logo,{style:{width:"100%"},children:s.jsx(Ie,{href:"/",onMouseEnter:i,children:s.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),s.jsx(wc,{}),s.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[s.jsx(Kd,{SearchModal:t}),s.jsx(e,{target:r.current,children:s.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:bo["btn-login"],innerRef:r,children:s.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),s.jsx(Nc,{}),s.jsx(xo,{id:"cart-button"})]})]}),s.jsx(Ic,{})]})};Oc.displayName="Header.HeaderDesktopWrapper";const cf="_divider_1lexj_199",_e={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:cf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Tc=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>s.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?s.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[s.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:s.jsx(Le.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),s.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:s.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):s.jsx("h2",{...i,children:e})});Tc.displayName="Menu.MenuCategories";const Mc=({children:e,link:t})=>{const{reset:r}=We();return t?s.jsx(Ie,{href:t??"#",onClick:r,children:e}):e};Mc.displayName="Menu.MenuCategoriesWrapper";const kc=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Ne(),{reset:n}=We(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=be(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:s.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[s.jsx(mt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),s.jsx(b.ComponentList.List,{columns:1,...a,className:_e["submenu-categories"],children:e.items.map((p,d)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:s.jsx(nt,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),o({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};kc.displayName="Menu.SubMenuSubCategory";const Lc=({submenu:e})=>{var i;const t=zt(),{handleCloseSubMenu:r}=pt(),{reset:n}=He(),{CONSTANTS:o}=be();return s.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[s.jsx(b.TextStructure.Root,{adornment:{start:s.jsx(b.Icon,{name:o.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&s.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:s.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),s.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&s.jsx(Co,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>s.jsx(kc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Lc.displayName="Menu.SubMenuItem";const Dc=()=>{const{headerData:e}=be(),t=zt(),{reset:r}=He(),{bodyRef:n}=pt();return s.jsx(b.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:s.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>s.jsx(Lc,{submenu:o},`submenu-${o.id}-${i}`))})})};Dc.displayName="Menu.SubMenu";const $c=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=He(),{bodyRef:o}=pt(),{handleSelectContent:i}=ge();return s.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[s.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return s.jsx(Mc,{link:a.submenuId?null:a.link,children:s.jsx(Tc,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),s.jsx(Dc,{})]})};$c.displayName="Menu.MenuBody";const Bc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return s.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{children:[e&&s.jsx("h2",{className:"typography-style-body-md",children:e}),t&&s.jsx("h3",{children:t})]})}),s.jsx(b.Button,{adornment:{end:s.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Bc.displayName="Menu.MenuHeaderWrapper";const qc=({navigationLinks:e})=>{const{reset:t}=We(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(nt,{href:n.link??"#",adornments:{start:n.iconStart&&s.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&s.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};qc.displayName="Menu.MenuHeaderNavLinks";const Hc=()=>{const{headerData:e}=be();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Bc,{title:e.title,subtitle:e.subtitle}),s.jsx(qc,{navigationLinks:e.navigationLinks})]})};Hc.displayName="Menu.MenuHeaderContainer";const Fc=({children:e})=>{const{documentBodyRef:t}=pt(),{CONSTANTS:r}=be(),n=fo(),{setValue:o}=We();return s.jsx(b.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:_e["modal-modifier"],children:s.jsx("div",{className:_e["menu-mobile"],children:e})})};Fc.displayName="Menu.MenuRoot";const lf=So(()=>Promise.resolve(Fc),{ssr:!1}),Bt=({children:e,...t})=>s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),s.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Bt.displayName="Menu.NavigationBarItem";const zc=()=>{const{setIsOpen:e}=Fe(),{reset:t}=We(),{setValue:r}=Ut(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),{router:i}=Ne();return s.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[s.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),s.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),s.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};zc.displayName="Menu.NavigationBar";const Tt={Root:lf,NavigationBar:zc,Header:Hc,Body:$c},Uc=({UserMenu:e,SearchModal:t})=>{const r=R.useRef(null),n=R.useRef(null),{CONSTANTS:o}=be(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:a,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:l}=ge(),{setValue:u}=po(),{setValue:f}=We(),{setValue:p}=Ut();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[c==="left"&&s.jsx(b.Header.SupportItem,{onClick:()=>f(!0),innerRef:r,children:s.jsx(b.Icon,{name:a.menu,size:"medium"})}),s.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:s.jsx(Ie,{href:"/",children:s.jsx(b.Icon,{name:a.logo,size:"x-large",onClick:()=>{l({content:"header:logo"})}})})}),s.jsxs(b.Header.Support,{children:[s.jsx(b.Header.SupportItem,{onClick:()=>{u(!0),l({content:"header:search"})},children:s.jsx(b.Icon,{name:a.search,size:"medium"})}),s.jsx(b.Header.SupportItem,{onClick:()=>{p(!0),l({content:"header:user_menu"})},innerRef:n,children:s.jsx(b.Icon,{name:a.person,size:"medium"})}),s.jsx(xo,{}),c==="right"&&s.jsx(b.Header.SupportItem,{onClick:()=>f(!0),innerRef:r,children:s.jsx(b.Icon,{name:a.menu,size:"medium"})})]})]}),s.jsx(t,{recommendations:!1,trends:!0}),s.jsx(Hs,{children:s.jsx(e,{target:n==null?void 0:n.current,children:s.jsxs(Tt.Root,{children:[s.jsx(Tt.Header,{}),s.jsx(Tt.Body,{}),i?s.jsx(Tt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})})]})};Uc.displayName="Header.HeaderMobileWrapper";const Gc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=be(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=a;return s.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:bo["header-animation"],children:s.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[s.jsx("div",{className:Te.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:s.jsx(Uc,{UserMenu:r,SearchModal:n})}),s.jsx("div",{className:Te.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:s.jsx(Oc,{UserMenu:r,SearchModal:n})}),t,s.jsx(_o,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Gc.displayName="Header";const uf="_shippingFreight_6z8rf_6",df="_shippingFreight__postalCodeGrid_6z8rf_10",ff="_shippingFreight__grid_6z8rf_14",pf="_shippingFreight__grid__title_6z8rf_18",mf="_shippingFreight__grid__remember_6z8rf_29",hf="_postalCodeContainer_6z8rf_44",gf="_deliveryStatusBar__tag_6z8rf_49",yf="_deliveryStatusBarError__tag_6z8rf_66",_f="_deliveryInfo_6z8rf_74",vf="_deliveryInfo__content_6z8rf_78",bf="_deliveryInfo__text_6z8rf_84",xf="_deliveryInfo__title_6z8rf_89",Cf="_deliveryInfo__subtitle_6z8rf_99",Sf="_deliveryInfo__tooltipIcon_6z8rf_109",Af="_deliveryInfo__tooltip_6z8rf_109",Ef="_freightGrid_6z8rf_148",Rf="_freightContainer_6z8rf_155",wf="_freightOption__content_6z8rf_160",jf="_freightOption__value_6z8rf_166",Pf="_freightOption__title_6z8rf_177",If="_freightOption__title_item_6z8rf_181",Nf="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:uf,shippingFreight__postalCodeGrid:df,shippingFreight__grid:ff,shippingFreight__grid__title:pf,shippingFreight__grid__remember:mf,postalCodeContainer:hf,deliveryStatusBar__tag:gf,deliveryStatusBarError__tag:yf,deliveryInfo:_f,deliveryInfo__content:vf,deliveryInfo__text:bf,deliveryInfo__title:xf,deliveryInfo__subtitle:Cf,deliveryInfo__tooltipIcon:Sf,deliveryInfo__tooltip:Af,freightGrid:Ef,freightContainer:Rf,freightOption__content:wf,freightOption__value:jf,freightOption__title:Pf,freightOption__title_item:If,freightOption__paragraph:Nf,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Of=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=R.useState(!1),f=R.useRef(null),p=()=>u(d=>!d);return s.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsx("div",{children:s.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),s.jsxs("div",{className:fe.deliveryInfo__content,children:[s.jsx("div",{className:fe.deliveryInfo__icon,children:s.jsx(b.Icon,{name:e,size:"medium"})}),s.jsxs("div",{className:fe.deliveryInfo__text,children:[s.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&s.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&s.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[s.jsx("span",{children:s.jsx(b.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&s.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},Tf=({value:e,title:t,paragraph:r})=>s.jsx("div",{className:fe.freightOption,children:s.jsxs("div",{className:fe.freightOption__content,children:[s.jsx("span",{className:fe.freightOption__value,children:e}),s.jsx("span",{className:fe.freightOption__title,children:s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[s.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&s.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),Mf=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),kf=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),Lf=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),xi=({message:e,seller:t="",size:r="small",setError:n})=>s.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:s.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),Df=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},$f=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},Bf=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=we();return s.jsx(s.Fragment,{children:u?s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},qf=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,k,B,w;const f=Ze(),p=Ze(q=>q.shipping),[d,m]=R.useState(),[h,y]=R.useState(!1),[g,v]=R.useState(!1),[A,_]=R.useState(!1),C=(k=(N=f.shippingData)==null?void 0:N.address)==null?void 0:k.postalCode,x=!(d!=null&&d.length)&&C?C:d,P=R.useRef(null),S=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await Io.get(`https://viacep.com.br/ws/${z}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),v(!0);return}i&&i(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},$=async()=>{y(!0);try{const q=await Io.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:x});e($f(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),p(x,"BRA")}},E=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:x}}),h||($(),a(!0))};return s.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&A?s.jsx(Bf,{component:c,isOpen:A,parent:P.current,toolTipZIndex:u,freightConfig:l}):s.jsx(s.Fragment,{}),s.jsx("div",{style:{position:"relative"},children:s.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:s.jsx(b.TextField.Input,{defaultValue:(w=(B=f.shippingData)==null?void 0:B.address)==null?void 0:w.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:S,onKeyDown:q=>{q.key==="Enter"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(b.Button,{onClick:E,size:r,title:"button",children:h?s.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Hf=({children:e,freightConfig:t})=>s.jsxs("div",{className:fe.shippingFreight,children:[s.jsxs("div",{className:fe.shippingFreight__grid,children:[s.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),s.jsx("span",{className:fe.shippingFreight__grid__remember,children:s.jsx(nt,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),s.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Ff=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),zf=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=R.useState(""),[p,d]=R.useState([]),[m,h]=R.useState(""),[y,g]=R.useState(!1),v=_=>f(_),A=_=>{d(_),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(C=>({shipping_tier:C.id,delivery_time:C.shippingEstimate.replace("bd",""),flag_pickup:C.name.toLowerCase().includes("retirada")?"true":"false",shipping:C.price,currency:c.currency||"BRL"}))}}})};return s.jsxs(Ff,{className:e,children:[s.jsxs(Hf,{freightConfig:c.freightConfig,children:[s.jsx(Lf,{children:s.jsx(qf,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?s.jsx(xi,{size:o,message:m,setError:h}):p.length>0&&s.jsx(xi,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?p.length>0&&s.jsxs(Mf,{children:[s.jsx(kf,{children:p.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(Tf,{id:_.id,value:ao({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${Df(_.shippingEstimate)}`,radioValue:u,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(Of,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):s.jsx(s.Fragment,{})]}):null]})},Wc=R.createContext({}),Uf=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=R.useState(null),c=R.useRef(null),l=R.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),p=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return s.jsx(Wc.Provider,{value:R.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Me=()=>{const e=R.useContext(Wc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Vc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Me();return a?s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(je.Wrapper,{type:"actions--group",children:[s.jsx(je.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&s.jsx(je.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Vc.displayName="ProductCard.Actions";const Kc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Fe(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Me(),f=()=>{var m;if(!i)return;const d=co(i.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),l()},p=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return s.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};Kc.displayName="ProductCard.Actions.BuyButton";const Xc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Me();return s.jsxs(je.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?s.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?s.jsx(b.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&s.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Xc.displayName="ProductCard.Actions.Header";const Qc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=Me(),m=Za({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[s.jsx(Ie,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>R.createElement(Le.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&s.jsx(je.Video,{url:u,poster:m[0].url}),t]})};Qc.displayName="ProductCard.Media.Media";const Yc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Me(),{availability:{status:c}}=i;return c?null:s.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[s.jsx(b.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),s.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Yc.displayName="ProductCard.OutStock";const Zc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>s.jsx(Uf,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:s.jsx("div",{...p,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Zc.displayName="ProductCard.Root";const Jc=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>s.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[s.jsx(b.ToggleSize.DisabledAdornment,{}),s.jsx(b.ToggleSize.Text,{children:t})]});Jc.displayName="ProductCard.SizeSelector.Item";const el=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Me();n.productId=i.id;const u=Ka(n),f=Wa(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const p=R.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=R.useCallback(()=>{if(u&&typeof o=="function"){o(i,n);return}p(n)},[n,o,p,u,i]);return s.jsx(Jc,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};el.displayName="ProductCard.SizeSelector.SkuItem";const tl=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Me();return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[s.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>s.jsx(el,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),s.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};tl.displayName="ProductCard.SizeSelector";const Qn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>s.jsxs(b.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[s.jsx(b.ToggleStyle.DisabledAdornment,{}),s.jsxs(b.ToggleStyle.Texture,{children:[o&&s.jsx(Le.Image,{alt:e??o,src:o,height:34,width:34}),r&&s.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:s.jsxs("p",{children:["+ ",n]})})]})]}),Gf=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Me(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>s.jsx(Qn,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:o},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&s.jsx(Qn,{size:o,total:r.length-n,more:!0})]})},rl=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Me(),c=o||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return s.jsx(Gf,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&s.jsx(Qn,{active:!0,size:"x-small",src:l.url})})};rl.displayName="ProductCard.StyleSelector";const nl=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Me();l.current.priceInfo={price:o,listPrice:i};const u=De(i,t),f=De(o,t),p=De(c??0),d=n?"horizontal":"stacked";return s.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:s.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:s.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[s.jsx(b.ProductInfo.ValuesWrapper,{children:f!==u?s.jsxs(s.Fragment,{children:[s.jsx(b.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),s.jsx(b.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):s.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?s.jsx(b.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};nl.displayName="ProductCard.Price";const ol=({tag:e,className:t})=>{const{item:{name:r}}=Me();return s.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[s.jsx("div",{className:Se["product-card--title--tag"],children:e?s.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?s.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):s.jsx("div",{})}),s.jsx("div",{className:Se["product-card--title--content"],children:r&&s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h3",{children:r})})})})]})};ol.displayName="ProductCard.Title";const il=({className:e,url:t,poster:r,...n})=>{const{element:o}=Me();return R.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{Ja(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,o]),s.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&s.jsx(Le.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};il.displayName="ProductCard.Media.Video";const al=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});al.displayName="ProductCard.Wrapper";const je={Actions:Vc,BuyButton:Kc,Header:Xc,Media:Qc,Root:Zc,OutStock:Yc,Price:nl,SizeSelector:tl,StyleSelector:rl,Title:ol,Video:il,Wrapper:al},Wf="_footer__bottom_1o9af_2",Vf="_footer__wrapper_1o9af_10",Kf="_footer__main_1o9af_39",Xf="_footer__legalInformation_1o9af_55",Qf="_footer__column_1o9af_77",Yf="_footer__columnContent_1o9af_87",Zf="_footer__item_1o9af_91",Jf="_footer__itemLink_1o9af_107",ep="_footer__columnTitle_1o9af_122",tp="_footer__columnTitleIcon_1o9af_134",rp="_footer__iconList_1o9af_147",np="_footer__itemSmallText_1o9af_157",op="_payment_1o9af_168",ip="_footer__iconContainer_1o9af_173",ap="_footer__iconListSubHeader_1o9af_178",sp="_accordionWrapper_1o9af_200",cp="_accordionHeader_1o9af_204",lp="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Wf,footer__wrapper:Vf,footer__main:Kf,footer__legalInformation:Xf,footer__column:Qf,footer__columnContent:Yf,footer__item:Zf,footer__itemLink:Jf,footer__columnTitle:ep,footer__columnTitleIcon:tp,footer__iconList:rp,footer__itemSmallText:np,payment:op,footer__iconContainer:ip,footer__iconListSubHeader:ap,accordionWrapper:sp,accordionHeader:cp,accordionTextWrapper:lp,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var sl={},Ao={},ht={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(ht);var cl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=i?i*40:n,p=a?a*40:o,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(cl);var Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(Xt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=ht,r=cl,n=Xt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(h)||a(h))}const l=new Map;let u;function f(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function p(h,y,g){let{deviceSizes:v,allSizes:A}=h;if(g){const C=/(^|\s)(1?\d?\d)vw/g,x=[];for(let P;P=C.exec(g);P)x.push(parseInt(P[2]));if(x.length){const P=Math.min(...x)*.01;return{widths:A.filter(S=>S>=v[0]*P),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(C=>A.find(x=>x>=C)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:A,quality:_,sizes:C,loader:x}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:S}=p(y,A,C),I=P.length-1;return{sizes:!C&&S==="w"?"100vw":C,srcSet:P.map(($,E)=>x({config:y,src:g,quality:_,width:$})+" "+(S==="w"?$:E+1)+S).join(", "),src:x({config:y,src:g,quality:_,width:P[I]})}}function m(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:C,className:x,quality:P,width:S,height:I,fill:$=!1,style:E,onLoad:N,onLoadingComplete:k,placeholder:B="empty",blurDataURL:w,fetchPriority:q,layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F,...ne}=h;const{imgConf:j,showAltText:T,blurComplete:D,defaultLoader:X}=y;let te,Z=j||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),ue=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:G,deviceSizes:ue}}let M=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in M;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=M;M=ue=>{const{config:Ce,...Q}=ue;return G(Q)}}if(z){z==="fill"&&($=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ce=G[z];Ce&&(E={...E,...Ce});const Q=ue[z];Q&&!v&&(v=Q)}let Y="",ee=f(S),L=f(I),O,re;if(c(g)){const G=i(g)?g.default:g;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(O=G.blurWidth,re=G.blurHeight,w=w||G.blurDataURL,Y=G.src,!$){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const ue=ee/G.width;L=Math.round(G.height*ue)}else if(!ee&&L){const ue=L/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let ae=!_&&(C==="lazy"||typeof C>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(A=!0,ae=!1),te.unoptimized&&(A=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(A=!0),_&&(q="high");const ce=f(P);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!A)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!g)A=!0;else if($){if(S)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(E!=null&&E.position&&E.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(E!=null&&E.width&&E.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(E!=null&&E.height&&E.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+S+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(C))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+C+'" should be one of '+o.map(String).join(",")+".");if(_&&C==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!w){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
6
  Possible solutions:
7
7
  - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
- - Change the "src" property to a static import with one of the supported file types: `+W.join(",")+` (animated images not supported)
8
+ - Change the "src" property to a static import with one of the supported file types: `+G.join(",")+` (animated images not supported)
9
9
  - Remove the "placeholder" property, effectively no blur effect
10
- Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const W=M({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(W)}catch{}(W===g||le&&le.pathname===g&&!le.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[W,le]of Object.entries({layout:F,objectFit:U,objectPosition:K,lazyBoundary:G,lazyRoot:z}))le&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+W+`". Did you forget to run the codemod?
12
- Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(W=>{for(const Ce of W.getEntries()){var le;const Q=(Ce==null||(le=Ce.element)==null?void 0:le.src)||"",oe=u.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
- Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{l.observe({type:"largest-contentful-paint",buffered:!0})}catch(W){console.error(W)}}}const ue=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},T?{}:{color:"transparent"},E),se=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:R||"",objectFit:ue.objectFit})+'")':'url("'+B+'")':null;let H=se?{backgroundSize:ue.objectFit||"cover",backgroundPosition:ue.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:se}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&B==="blur"&&R!=null&&R.startsWith("/")&&(H.backgroundImage='url("'+R+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let W;try{W=new URL(he.src)}catch{W=new URL(he.src,window.location.href)}u.set(W.href,{src:g,priority:_,placeholder:B})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:L,decoding:"async",className:C,style:{...ue,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:B,fill:$}}}})(xo);var Qn={exports:{}},Mt={exports:{}},Ir={},_i;function Vf(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=P,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(s){const{headManager:c,reduceComponentsToState:u}=s;function l(){if(c&&c.mountedInstances){const f=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(u(f,s))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(s.children),l()}return n(()=>{var f;return c==null||(f=c.mountedInstances)==null||f.add(s.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(s.children)}}),n(()=>(c&&(c._pendingUpdate=l),()=>{c&&(c._pendingUpdate=l)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Ir)),Ir}var Nr={},vi;function Kf(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Nr)),Nr}var Or={},bi;function eu(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(P).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Or)),Or}var Tr={},xi;function Xf(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(Tr)),Tr}var Ci;function Qf(){return Ci||(Ci=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var S in _)Object.defineProperty(A,S,{enumerable:!0,get:_[S]})}r(t,{defaultHead:function(){return f},default:function(){return v}});const n=Re,i=Gt()._(P),s=n._(Vf()),c=Kf(),u=eu(),l=Xf(),p=mt;function f(A){A===void 0&&(A=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return A||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(A,_){return typeof _=="string"||typeof _=="number"?A:_.type===i.default.Fragment?A.concat(i.default.Children.toArray(_.props.children).reduce((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):A.concat(_)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,S=new Set,C={};return j=>{let x=!0,I=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){I=!0;const $=j.key.slice(j.key.indexOf("$")+1);A.has($)?x=!1:A.add($)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let $=0,E=m.length;$<E;$++){const N=m[$];if(j.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?x=!1:S.add(N);else{const k=j.props[N],B=C[N]||new Set;(N!=="name"||!I)&&B.has(k)?x=!1:(B.add(k),C[N]=B)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(f(S).reverse()).filter(h()).reverse().map((C,j)=>{const x=C.key||j;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&C.type==="link"&&C.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>C.props.href.startsWith(I))){const I={...C.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(C,I)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const I=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
14
- See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else C.type==="link"&&C.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+C.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(C,{key:x})})}function g(A){let{children:_}=A;const S=(0,i.useContext)(c.AmpStateContext),C=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(s.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,l.isInAmpMode)(S)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Mt,Mt.exports)),Mt.exports}var Mr={},Si;function Yf(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(P),n=Qt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Mr)),Mr}var kr={},Lr={},Dr={exports:{}};const Zf=rd(Ue.__viteBrowserExternal);var $r={},Br={},qr,Ai;function tu(){return Ai||(Ai=1,qr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),qr}var Hr,Ei;function Yt(){if(Ei)return Hr;Ei=1;var e=tu();return Hr=function(){return e()&&!!Symbol.toStringTag},Hr}var zr,Ri;function ru(){return Ri||(Ri=1,zr=Object),zr}var Fr,wi;function Jf(){return wi||(wi=1,Fr=Error),Fr}var Ur,ji;function ep(){return ji||(ji=1,Ur=EvalError),Ur}var Wr,Pi;function tp(){return Pi||(Pi=1,Wr=RangeError),Wr}var Gr,Ii;function rp(){return Ii||(Ii=1,Gr=ReferenceError),Gr}var Vr,Ni;function nu(){return Ni||(Ni=1,Vr=SyntaxError),Vr}var Kr,Oi;function ht(){return Oi||(Oi=1,Kr=TypeError),Kr}var Xr,Ti;function np(){return Ti||(Ti=1,Xr=URIError),Xr}var Qr,Mi;function op(){return Mi||(Mi=1,Qr=Math.abs),Qr}var Yr,ki;function ip(){return ki||(ki=1,Yr=Math.floor),Yr}var Zr,Li;function ap(){return Li||(Li=1,Zr=Math.max),Zr}var Jr,Di;function sp(){return Di||(Di=1,Jr=Math.min),Jr}var en,$i;function cp(){return $i||($i=1,en=Math.pow),en}var tn,Bi;function up(){return Bi||(Bi=1,tn=Math.round),tn}var rn,qi;function lp(){return qi||(qi=1,rn=Number.isNaN||function(t){return t!==t}),rn}var nn,Hi;function dp(){if(Hi)return nn;Hi=1;var e=lp();return nn=function(r){return e(r)||r===0?r:r<0?-1:1},nn}var on,zi;function fp(){return zi||(zi=1,on=Object.getOwnPropertyDescriptor),on}var an,Fi;function rt(){if(Fi)return an;Fi=1;var e=fp();if(e)try{e([],"length")}catch{e=null}return an=e,an}var sn,Ui;function Zt(){if(Ui)return sn;Ui=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return sn=e,sn}var cn,Wi;function pp(){if(Wi)return cn;Wi=1;var e=typeof Symbol<"u"&&Symbol,t=tu();return cn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},cn}var un,Gi;function ou(){return Gi||(Gi=1,un=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),un}var ln,Vi;function iu(){if(Vi)return ln;Vi=1;var e=ru();return ln=e.getPrototypeOf||null,ln}var dn,Ki;function mp(){if(Ki)return dn;Ki=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var p=[],f=0;f<u.length;f+=1)p[f]=u[f];for(var d=0;d<l.length;d+=1)p[d+u.length]=l[d];return p},i=function(u,l){for(var p=[],f=l,d=0;f<u.length;f+=1,d+=1)p[d]=u[f];return p},s=function(c,u){for(var l="",p=0;p<c.length;p+=1)l+=c[p],p+1<c.length&&(l+=u);return l};return dn=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var p=i(arguments,1),f,d=function(){if(this instanceof f){var v=l.apply(this,o(p,arguments));return Object(v)===v?v:this}return l.apply(u,o(p,arguments))},m=r(0,l.length-p.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(f=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,f.prototype=new g,g.prototype=null}return f},dn}var fn,Xi;function gt(){if(Xi)return fn;Xi=1;var e=mp();return fn=Function.prototype.bind||e,fn}var pn,Qi;function Co(){return Qi||(Qi=1,pn=Function.prototype.call),pn}var mn,Yi;function So(){return Yi||(Yi=1,mn=Function.prototype.apply),mn}var hn,Zi;function hp(){return Zi||(Zi=1,hn=typeof Reflect<"u"&&Reflect&&Reflect.apply),hn}var gn,Ji;function au(){if(Ji)return gn;Ji=1;var e=gt(),t=So(),r=Co(),n=hp();return gn=n||e.call(r,t),gn}var yn,ea;function Ao(){if(ea)return yn;ea=1;var e=gt(),t=ht(),r=Co(),n=au();return yn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yn}var _n,ta;function gp(){if(ta)return _n;ta=1;var e=Ao(),t=rt(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return _n=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,_n}var vn,ra;function Eo(){if(ra)return vn;ra=1;var e=ou(),t=iu(),r=gp();return vn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,vn}var bn,na;function su(){if(na)return bn;na=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=gt();return bn=r.call(e,t),bn}var xn,oa;function cu(){if(oa)return xn;oa=1;var e,t=ru(),r=Jf(),n=ep(),o=tp(),i=rp(),s=nu(),c=ht(),u=np(),l=op(),p=ip(),f=ap(),d=sp(),m=cp(),h=up(),y=dp(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=rt(),_=Zt(),S=function(){throw new c},C=A?function(){try{return arguments.callee,S}catch{try{return A(arguments,"callee").get}catch{return S}}}():S,j=pp()(),x=Eo(),I=iu(),$=ou(),E=So(),N=Co(),k={},B=typeof Uint8Array>"u"||!x?e:x(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&x?x(""[Symbol.iterator]()):e,"%Symbol%":j?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":E,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(x)try{null.error}catch(J){var q=x(x(J));R["%Error.prototype%"]=q}var F=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=v("async function () {}");else if(Y==="%GeneratorFunction%")ee=v("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return R[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=gt(),G=su(),z=K.call(N,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),w=K.call(N,String.prototype.replace),T=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=T(Y,0,1),L=T(Y,-1);if(ee==="%"&&L!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var O=[];return w(Y,X,function(re,ae,ce,ue){O[O.length]=ce?w(ue,te,"$1"):ae||re}),O},M=function(Y,ee){var L=Y,O;if(G(U,L)&&(O=U[L],L="%"+O[0]+"%"),G(R,L)){var re=R[L];if(re===k&&(re=F(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new s("intrinsic "+Y+" does not exist!")};return xn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),ae=re.name,ce=re.value,ue=!1,se=re.alias;se&&(O=se[0],ne(L,z([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),W=T(ie,-1);if((me==='"'||me==="'"||me==="`"||W==='"'||W==="'"||W==="`")&&me!==W)throw new s("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),O+="."+ie,ae="%"+O+"%",G(R,ae))ce=R[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var le=A(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=G(ce,ie),ce=ce[ie];he&&!ue&&(R[ae]=ce)}}return ce},xn}var Cn,ia;function yt(){if(ia)return Cn;ia=1;var e=cu(),t=Ao(),r=t([e("%String.prototype.indexOf%")]);return Cn=function(o,i){var s=e(o,!!i);return typeof s=="function"&&r(o,".prototype.")>-1?t([s]):s},Cn}var Sn,aa;function yp(){if(aa)return Sn;aa=1;var e=Yt()(),t=yt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,Sn=i?n:o,Sn}var An,sa;function _p(){if(sa)return An;sa=1;var e=yt(),t=Yt()(),r=su(),n=rt(),o;if(t){var i=e("RegExp.prototype.exec"),s={},c=function(){throw s},u={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===s}}}else{var l=e("Object.prototype.toString"),p="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===p}}return An=o,An}var En,ca;function vp(){if(ca)return En;ca=1;var e=yt(),t=_p(),r=e("RegExp.prototype.exec"),n=ht();return En=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},En}var Rn,ua;function bp(){if(ua)return Rn;ua=1;var e=yt(),t=vp(),r=t(/^\s*(?:function)?\*/),n=Yt()(),o=Eo(),i=e("Object.prototype.toString"),s=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return Rn=function(p){if(typeof p!="function")return!1;if(r(s(p)))return!0;if(!n){var f=i(p);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=c();u=d?o(d):!1}return o(p)===u},Rn}var wn,la;function xp(){if(la)return wn;la=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(A){A!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var S=e.call(_);return o.test(S)}catch{return!1}},s=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,u="[object Object]",l="[object Function]",p="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;c.call(v)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var S=c.call(_);return(S===f||S===d||S===m||S===u)&&_("")==null}catch{}return!1})}return wn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(S){if(S!==n)return!1}return!i(_)&&s(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return s(_);if(i(_))return!1;var S=c.call(_);return S!==l&&S!==p&&!/^\[object HTML/.test(S)?!1:s(_)},wn}var jn,da;function Cp(){if(da)return jn;da=1;var e=xp(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,p){for(var f=0,d=u.length;f<d;f++)r.call(u,f)&&(p==null?l(u[f],f,u):l.call(p,u[f],f,u))},o=function(u,l,p){for(var f=0,d=u.length;f<d;f++)p==null?l(u.charAt(f),f,u):l.call(p,u.charAt(f),f,u)},i=function(u,l,p){for(var f in u)r.call(u,f)&&(p==null?l(u[f],f,u):l.call(p,u[f],f,u))};function s(c){return t.call(c)==="[object Array]"}return jn=function(u,l,p){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=p),s(u)?n(u,l,f):typeof u=="string"?o(u,l,f):i(u,l,f)},jn}var Pn,fa;function Sp(){return fa||(fa=1,Pn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Pn}var In,pa;function Ap(){if(pa)return In;pa=1;var e=Sp(),t=typeof globalThis>"u"?uc:globalThis;return In=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},In}var Nn={exports:{}},On,ma;function Ep(){if(ma)return On;ma=1;var e=Zt(),t=nu(),r=ht(),n=rt();return On=function(i,s,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,s);if(e)e(i,s,{configurable:p===null&&d?d.configurable:!p,enumerable:u===null&&d?d.enumerable:!u,value:c,writable:l===null&&d?d.writable:!l});else if(f||!u&&!l&&!p)i[s]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},On}var Tn,ha;function Rp(){if(ha)return Tn;ha=1;var e=Zt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Tn=t,Tn}var Mn,ga;function wp(){if(ga)return Mn;ga=1;var e=cu(),t=Ep(),r=Rp()(),n=rt(),o=ht(),i=e("%Math.floor%");return Mn=function(c,u){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],p=!0,f=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(f=!1)}return(p||f||!l)&&(r?t(c,"length",u,!0,!0):t(c,"length",u)),c},Mn}var kn,ya;function jp(){if(ya)return kn;ya=1;var e=gt(),t=So(),r=au();return kn=function(){return r(e,t,arguments)},kn}var _a;function Pp(){return _a||(_a=1,function(e){var t=wp(),r=Zt(),n=Ao(),o=jp();e.exports=function(s){var c=n(arguments),u=s.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Nn)),Nn.exports}var Ln,va;function uu(){if(va)return Ln;va=1;var e=Cp(),t=Ap(),r=Pp(),n=yt(),o=rt(),i=Eo(),s=n("Object.prototype.toString"),c=Yt()(),u=typeof globalThis>"u"?uc:globalThis,l=t(),p=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(g,v){for(var A=0;A<g.length;A+=1)if(g[A]===v)return A;return-1},d={__proto__:null};c&&o&&i?e(l,function(y){var g=new u[y];if(Symbol.toStringTag in g&&i){var v=i(g),A=o(v,Symbol.toStringTag);if(!A&&v){var _=i(v);A=o(_,Symbol.toStringTag)}d["$"+y]=r(A.get)}}):e(l,function(y){var g=new u[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var m=function(g){var v=!1;return e(d,function(A,_){if(!v)try{"$"+A(g)===_&&(v=p(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(A,_){if(!v)try{A(g),v=p(_,1)}catch{}}),v};return Ln=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=p(s(g),8,-1);return f(l,v)>-1?v:v!=="Object"?!1:h(g)}return o?m(g):null},Ln}var Dn,ba;function Ip(){if(ba)return Dn;ba=1;var e=uu();return Dn=function(r){return!!e(r)},Dn}var xa;function Np(){return xa||(xa=1,function(e){var t=yp(),r=bp(),n=uu(),o=Ip();function i(H){return H.call.bind(H)}var s=typeof BigInt<"u",c=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(s)var d=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||T(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function A(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function S(H){return n(H)==="Uint32Array"}e.isUint32Array=S;function C(H){return n(H)==="Int8Array"}e.isInt8Array=C;function j(H){return n(H)==="Int16Array"}e.isInt16Array=j;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function E(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=E;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function k(H){return u(H)==="[object Map]"}k.working=typeof Map<"u"&&k(new Map);function B(H){return typeof Map>"u"?!1:k.working?k(H):H instanceof Map}e.isMap=B;function R(H){return u(H)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function q(H){return typeof Set>"u"?!1:R.working?R(H):H instanceof Set}e.isSet=q;function F(H){return u(H)==="[object WeakMap]"}F.working=typeof WeakMap<"u"&&F(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:F.working?F(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return u(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function G(H){return K(H)}e.isWeakSet=G;function z(H){return u(H)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:z.working?z(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(H){return u(H)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,l)}e.isNumberObject=L;function O(H){return h(H,p)}e.isStringObject=O;function re(H){return h(H,f)}e.isBooleanObject=re;function ae(H){return s&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,m)}e.isSymbolObject=ce;function ue(H){return L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=ue;function se(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Br)),Br}var $n,Ca;function Op(){return Ca||(Ca=1,$n=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),$n}var kt={exports:{}},Sa;function Tp(){return Sa||(Sa=1,typeof Object.create=="function"?kt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:kt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),kt.exports}var Aa;function Mp(){return Aa||(Aa=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var T=[],D=0;D<arguments.length;D++)T.push(s(arguments[D]));return T.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),M=X[D];D<te;M=X[++D])A(M)||!$(M)?Z+=" "+M:Z+=" "+s(M);return Z},e.deprecate=function(w,T){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,T).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return w.apply(this,arguments)}return X};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!n[w])if(o.test(w)){var T=process.pid;n[w]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",w,T,D)}}else n[w]=function(){};return n[w]};function s(w,T){var D={seen:[],stylize:u};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),v(T)?D.showHidden=T:T&&e._extend(D,T),x(D.showHidden)&&(D.showHidden=!1),x(D.depth)&&(D.depth=2),x(D.colors)&&(D.colors=!1),x(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),p(D,w,D.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,T){var D=s.styles[T];return D?"\x1B["+s.colors[D][0]+"m"+w+"\x1B["+s.colors[D][1]+"m":w}function u(w,T){return w}function l(w){var T={};return w.forEach(function(D,X){T[D]=!0}),T}function p(w,T,D){if(w.customInspect&&T&&k(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var X=T.inspect(D,w);return C(X)||(X=p(w,X,D)),X}var te=f(w,T);if(te)return te;var Z=Object.keys(T),M=l(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(k(T)){var J=T.name?": "+T.name:"";return w.stylize("[Function"+J+"]","special")}if(I(T))return w.stylize(RegExp.prototype.toString.call(T),"regexp");if(E(T))return w.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),k(T)){var O=T.name?": "+T.name:"";Y=" [Function"+O+"]"}if(I(T)&&(Y=" "+RegExp.prototype.toString.call(T)),E(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return I(T)?w.stylize(RegExp.prototype.toString.call(T),"regexp"):w.stylize("[Object]","special");w.seen.push(T);var re;return ee?re=m(w,T,D,M,Z):re=Z.map(function(ae){return h(w,T,D,M,ae,ee)}),w.seen.pop(),y(re,Y,L)}function f(w,T){if(x(T))return w.stylize("undefined","undefined");if(C(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(D,"string")}if(S(T))return w.stylize(""+T,"number");if(v(T))return w.stylize(""+T,"boolean");if(A(T))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,T,D,X,te){for(var Z=[],M=0,J=T.length;M<J;++M)K(T,String(M))?Z.push(h(w,T,D,X,String(M),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,T,D,X,Y,!0))}),Z}function h(w,T,D,X,te,Z){var M,J,Y;if(Y=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(M="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(D)?J=p(w,Y.value,null):J=p(w,Y.value,D-1),J.indexOf(`
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const G=M({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const Ce of G.getEntries()){var ue;const Q=(Ce==null||(ue=Ce.element)==null?void 0:ue.src)||"",oe=l.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
+ Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const le=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},T?{}:{color:"transparent"},E),se=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:w||"",objectFit:le.objectFit})+'")':'url("'+B+'")':null;let H=se?{backgroundSize:le.objectFit||"cover",backgroundPosition:le.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:se}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&B==="blur"&&w!=null&&w.startsWith("/")&&(H.backgroundImage='url("'+w+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}l.set(G.href,{src:g,priority:_,placeholder:B})}return{props:{...ne,loading:ae?"lazy":C,fetchPriority:q,width:ee,height:L,decoding:"async",className:x,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:B,fill:$}}}})(Ao);var Yn={exports:{}},Mt={exports:{}},Ir={},Ci;function up(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=R,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(p,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Ir)),Ir}var Nr={},Si;function dp(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Nr)),Nr}var Or={},Ai;function ll(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Or)),Or}var Tr={},Ei;function fp(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(Tr)),Tr}var Ri;function pp(){return Ri||(Ri=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var C in _)Object.defineProperty(A,C,{enumerable:!0,get:_[C]})}r(t,{defaultHead:function(){return p},default:function(){return v}});const n=Re,i=et._(R),a=n._(up()),c=dp(),l=ll(),u=fp(),f=ht;function p(A){A===void 0&&(A=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return A||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(A,_){return typeof _=="string"||typeof _=="number"?A:_.type===i.default.Fragment?A.concat(i.default.Children.toArray(_.props.children).reduce((C,x)=>typeof x=="string"||typeof x=="number"?C:C.concat(x),[])):A.concat(_)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,C=new Set,x={};return P=>{let S=!0,I=!1;if(P.key&&typeof P.key!="number"&&P.key.indexOf("$")>0){I=!0;const $=P.key.slice(P.key.indexOf("$")+1);A.has($)?S=!1:A.add($)}switch(P.type){case"title":case"base":_.has(P.type)?S=!1:_.add(P.type);break;case"meta":for(let $=0,E=m.length;$<E;$++){const N=m[$];if(P.props.hasOwnProperty(N))if(N==="charSet")C.has(N)?S=!1:C.add(N);else{const k=P.props[N],B=x[N]||new Set;(N!=="name"||!I)&&B.has(k)?S=!1:(B.add(k),x[N]=B)}}break}return S}}function y(A,_){const{inAmpMode:C}=_;return A.reduce(d,[]).reverse().concat(p(C).reverse()).filter(h()).reverse().map((x,P)=>{const S=x.key||P;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!C&&x.type==="link"&&x.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>x.props.href.startsWith(I))){const I={...x.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(x,I)}if(process.env.NODE_ENV==="development")if(x.type==="script"&&x.props.type!=="application/ld+json"){const I=x.props.src?'<script> tag with src="'+x.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
14
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else x.type==="link"&&x.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+x.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(x,{key:S})})}function g(A){let{children:_}=A;const C=(0,i.useContext)(c.AmpStateContext),x=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:x,inAmpMode:(0,u.isInAmpMode)(C)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Mt,Mt.exports)),Mt.exports}var Mr={},wi;function mp(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(R),n=Xt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Mr)),Mr}var kr={},Lr={},Dr={exports:{}};const hp=_d(Te.__viteBrowserExternal);var $r={},Br={},qr,ji;function ul(){return ji||(ji=1,qr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),qr}var Hr,Pi;function Qt(){if(Pi)return Hr;Pi=1;var e=ul();return Hr=function(){return e()&&!!Symbol.toStringTag},Hr}var Fr,Ii;function dl(){return Ii||(Ii=1,Fr=Object),Fr}var zr,Ni;function gp(){return Ni||(Ni=1,zr=Error),zr}var Ur,Oi;function yp(){return Oi||(Oi=1,Ur=EvalError),Ur}var Gr,Ti;function _p(){return Ti||(Ti=1,Gr=RangeError),Gr}var Wr,Mi;function vp(){return Mi||(Mi=1,Wr=ReferenceError),Wr}var Vr,ki;function fl(){return ki||(ki=1,Vr=SyntaxError),Vr}var Kr,Li;function gt(){return Li||(Li=1,Kr=TypeError),Kr}var Xr,Di;function bp(){return Di||(Di=1,Xr=URIError),Xr}var Qr,$i;function xp(){return $i||($i=1,Qr=Math.abs),Qr}var Yr,Bi;function Cp(){return Bi||(Bi=1,Yr=Math.floor),Yr}var Zr,qi;function Sp(){return qi||(qi=1,Zr=Math.max),Zr}var Jr,Hi;function Ap(){return Hi||(Hi=1,Jr=Math.min),Jr}var en,Fi;function Ep(){return Fi||(Fi=1,en=Math.pow),en}var tn,zi;function Rp(){return zi||(zi=1,tn=Math.round),tn}var rn,Ui;function wp(){return Ui||(Ui=1,rn=Number.isNaN||function(t){return t!==t}),rn}var nn,Gi;function jp(){if(Gi)return nn;Gi=1;var e=wp();return nn=function(r){return e(r)||r===0?r:r<0?-1:1},nn}var on,Wi;function Pp(){return Wi||(Wi=1,on=Object.getOwnPropertyDescriptor),on}var an,Vi;function ot(){if(Vi)return an;Vi=1;var e=Pp();if(e)try{e([],"length")}catch{e=null}return an=e,an}var sn,Ki;function Yt(){if(Ki)return sn;Ki=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return sn=e,sn}var cn,Xi;function Ip(){if(Xi)return cn;Xi=1;var e=typeof Symbol<"u"&&Symbol,t=ul();return cn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},cn}var ln,Qi;function pl(){return Qi||(Qi=1,ln=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ln}var un,Yi;function ml(){if(Yi)return un;Yi=1;var e=dl();return un=e.getPrototypeOf||null,un}var dn,Zi;function Np(){if(Zi)return dn;Zi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var f=[],p=0;p<l.length;p+=1)f[p]=l[p];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],p=u,d=0;p<l.length;p+=1,d+=1)f[d]=l[p];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return dn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=i(arguments,1),p,d=function(){if(this instanceof p){var v=u.apply(this,o(f,arguments));return Object(v)===v?v:this}return u.apply(l,o(f,arguments))},m=r(0,u.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,p.prototype=new g,g.prototype=null}return p},dn}var fn,Ji;function yt(){if(Ji)return fn;Ji=1;var e=Np();return fn=Function.prototype.bind||e,fn}var pn,ea;function Eo(){return ea||(ea=1,pn=Function.prototype.call),pn}var mn,ta;function Ro(){return ta||(ta=1,mn=Function.prototype.apply),mn}var hn,ra;function Op(){return ra||(ra=1,hn=typeof Reflect<"u"&&Reflect&&Reflect.apply),hn}var gn,na;function hl(){if(na)return gn;na=1;var e=yt(),t=Ro(),r=Eo(),n=Op();return gn=n||e.call(r,t),gn}var yn,oa;function wo(){if(oa)return yn;oa=1;var e=yt(),t=gt(),r=Eo(),n=hl();return yn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yn}var _n,ia;function Tp(){if(ia)return _n;ia=1;var e=wo(),t=ot(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return _n=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,_n}var vn,aa;function jo(){if(aa)return vn;aa=1;var e=pl(),t=ml(),r=Tp();return vn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,vn}var bn,sa;function gl(){if(sa)return bn;sa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=yt();return bn=r.call(e,t),bn}var xn,ca;function yl(){if(ca)return xn;ca=1;var e,t=dl(),r=gp(),n=yp(),o=_p(),i=vp(),a=fl(),c=gt(),l=bp(),u=xp(),f=Cp(),p=Sp(),d=Ap(),m=Ep(),h=Rp(),y=jp(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=ot(),_=Yt(),C=function(){throw new c},x=A?function(){try{return arguments.callee,C}catch{try{return A(arguments,"callee").get}catch{return C}}}():C,P=Ip()(),S=jo(),I=ml(),$=pl(),E=Ro(),N=Eo(),k={},B=typeof Uint8Array>"u"||!S?e:S(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&S?S([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&S?S(S([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!S?e:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!S?e:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&S?S(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%TypedArray%":B,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":E,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(S)try{null.error}catch(J){var q=S(S(J));w["%Error.prototype%"]=q}var z=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=v("async function () {}");else if(Y==="%GeneratorFunction%")ee=v("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&S&&(ee=S(O.prototype))}return w[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=yt(),W=gl(),F=K.call(N,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),j=K.call(N,String.prototype.replace),T=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=T(Y,0,1),L=T(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return j(Y,X,function(re,ae,ce,le){O[O.length]=ce?j(le,te,"$1"):ae||re}),O},M=function(Y,ee){var L=Y,O;if(W(U,L)&&(O=U[L],L="%"+O[0]+"%"),W(w,L)){var re=w[L];if(re===k&&(re=z(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return xn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),ae=re.name,ce=re.value,le=!1,se=re.alias;se&&(O=se[0],ne(L,F([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),G=T(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),O+="."+ie,ae="%"+O+"%",W(w,ae))ce=w[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var ue=A(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(w[ae]=ce)}}return ce},xn}var Cn,la;function _t(){if(la)return Cn;la=1;var e=yl(),t=wo(),r=t([e("%String.prototype.indexOf%")]);return Cn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Cn}var Sn,ua;function Mp(){if(ua)return Sn;ua=1;var e=Qt()(),t=_t(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,Sn=i?n:o,Sn}var An,da;function kp(){if(da)return An;da=1;var e=_t(),t=Qt()(),r=gl(),n=ot(),o;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return An=o,An}var En,fa;function Lp(){if(fa)return En;fa=1;var e=_t(),t=kp(),r=e("RegExp.prototype.exec"),n=gt();return En=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},En}var Rn,pa;function Dp(){if(pa)return Rn;pa=1;var e=_t(),t=Lp(),r=t(/^\s*(?:function)?\*/),n=Qt()(),o=jo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Rn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=i(f);return p==="[object GeneratorFunction]"}if(!o)return!1;if(typeof l>"u"){var d=c();l=d?o(d):!1}return o(f)===l},Rn}var wn,ma;function $p(){if(ma)return wn;ma=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(A){A!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var C=e.call(_);return o.test(C)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;c.call(v)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var C=c.call(_);return(C===p||C===d||C===m||C===l)&&_("")==null}catch{}return!1})}return wn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(C){if(C!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var C=c.call(_);return C!==u&&C!==f&&!/^\[object HTML/.test(C)?!1:a(_)},wn}var jn,ha;function Bp(){if(ha)return jn;ha=1;var e=$p(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var p=0,d=l.length;p<d;p++)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))},o=function(l,u,f){for(var p=0,d=l.length;p<d;p++)f==null?u(l.charAt(p),p,l):u.call(f,l.charAt(p),p,l)},i=function(l,u,f){for(var p in l)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))};function a(c){return t.call(c)==="[object Array]"}return jn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(l)?n(l,u,p):typeof l=="string"?o(l,u,p):i(l,u,p)},jn}var Pn,ga;function qp(){return ga||(ga=1,Pn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Pn}var In,ya;function Hp(){if(ya)return In;ya=1;var e=qp(),t=typeof globalThis>"u"?yc:globalThis;return In=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},In}var Nn={exports:{}},On,_a;function Fp(){if(_a)return On;_a=1;var e=Yt(),t=fl(),r=gt(),n=ot();return On=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(p||!l&&!u&&!f)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},On}var Tn,va;function zp(){if(va)return Tn;va=1;var e=Yt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Tn=t,Tn}var Mn,ba;function Up(){if(ba)return Mn;ba=1;var e=yl(),t=Fp(),r=zp()(),n=ot(),o=gt(),i=e("%Math.floor%");return Mn=function(c,l){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new o("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Mn}var kn,xa;function Gp(){if(xa)return kn;xa=1;var e=yt(),t=Ro(),r=hl();return kn=function(){return r(e,t,arguments)},kn}var Ca;function Wp(){return Ca||(Ca=1,function(e){var t=Up(),r=Yt(),n=wo(),o=Gp();e.exports=function(a){var c=n(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Nn)),Nn.exports}var Ln,Sa;function _l(){if(Sa)return Ln;Sa=1;var e=Bp(),t=Hp(),r=Wp(),n=_t(),o=ot(),i=jo(),a=n("Object.prototype.toString"),c=Qt()(),l=typeof globalThis>"u"?yc:globalThis,u=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,v){for(var A=0;A<g.length;A+=1)if(g[A]===v)return A;return-1},d={__proto__:null};c&&o&&i?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&i){var v=i(g),A=o(v,Symbol.toStringTag);if(!A&&v){var _=i(v);A=o(_,Symbol.toStringTag)}d["$"+y]=r(A.get)}}):e(u,function(y){var g=new l[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var m=function(g){var v=!1;return e(d,function(A,_){if(!v)try{"$"+A(g)===_&&(v=f(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(A,_){if(!v)try{A(g),v=f(_,1)}catch{}}),v};return Ln=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=f(a(g),8,-1);return p(u,v)>-1?v:v!=="Object"?!1:h(g)}return o?m(g):null},Ln}var Dn,Aa;function Vp(){if(Aa)return Dn;Aa=1;var e=_l();return Dn=function(r){return!!e(r)},Dn}var Ea;function Kp(){return Ea||(Ea=1,function(e){var t=Mp(),r=Dp(),n=_l(),o=Vp();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||T(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function A(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function C(H){return n(H)==="Uint32Array"}e.isUint32Array=C;function x(H){return n(H)==="Int8Array"}e.isInt8Array=x;function P(H){return n(H)==="Int16Array"}e.isInt16Array=P;function S(H){return n(H)==="Int32Array"}e.isInt32Array=S;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function E(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=E;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function k(H){return l(H)==="[object Map]"}k.working=typeof Map<"u"&&k(new Map);function B(H){return typeof Map>"u"?!1:k.working?k(H):H instanceof Map}e.isMap=B;function w(H){return l(H)==="[object Set]"}w.working=typeof Set<"u"&&w(new Set);function q(H){return typeof Set>"u"?!1:w.working?w(H):H instanceof Set}e.isSet=q;function z(H){return l(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return l(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function F(H){return l(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function j(H){return l(H)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:j.working?j(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,u)}e.isNumberObject=L;function O(H){return h(H,f)}e.isStringObject=O;function re(H){return h(H,p)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,m)}e.isSymbolObject=ce;function le(H){return L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=le;function se(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Br)),Br}var $n,Ra;function Xp(){return Ra||(Ra=1,$n=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),$n}var kt={exports:{}},wa;function Qp(){return wa||(wa=1,typeof Object.create=="function"?kt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:kt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),kt.exports}var ja;function Yp(){return ja||(ja=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return X},r=/%[sdj%]/g;e.format=function(j){if(!x(j)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(j).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),M=X[D];D<te;M=X[++D])A(M)||!$(M)?Z+=" "+M:Z+=" "+a(M);return Z},e.deprecate=function(j,T){if(typeof process<"u"&&process.noDeprecation===!0)return j;if(typeof process>"u")return function(){return e.deprecate(j,T).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return j.apply(this,arguments)}return X};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!n[j])if(o.test(j)){var T=process.pid;n[j]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",j,T,D)}}else n[j]=function(){};return n[j]};function a(j,T){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),v(T)?D.showHidden=T:T&&e._extend(D,T),S(D.showHidden)&&(D.showHidden=!1),S(D.depth)&&(D.depth=2),S(D.colors)&&(D.colors=!1),S(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,j,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(j,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+j+"\x1B["+a.colors[D][1]+"m":j}function l(j,T){return j}function u(j){var T={};return j.forEach(function(D,X){T[D]=!0}),T}function f(j,T,D){if(j.customInspect&&T&&k(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var X=T.inspect(D,j);return x(X)||(X=f(j,X,D)),X}var te=p(j,T);if(te)return te;var Z=Object.keys(T),M=u(Z);if(j.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(k(T)){var J=T.name?": "+T.name:"";return j.stylize("[Function"+J+"]","special")}if(I(T))return j.stylize(RegExp.prototype.toString.call(T),"regexp");if(E(T))return j.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),k(T)){var O=T.name?": "+T.name:"";Y=" [Function"+O+"]"}if(I(T)&&(Y=" "+RegExp.prototype.toString.call(T)),E(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return I(T)?j.stylize(RegExp.prototype.toString.call(T),"regexp"):j.stylize("[Object]","special");j.seen.push(T);var re;return ee?re=m(j,T,D,M,Z):re=Z.map(function(ae){return h(j,T,D,M,ae,ee)}),j.seen.pop(),y(re,Y,L)}function p(j,T){if(S(T))return j.stylize("undefined","undefined");if(x(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(D,"string")}if(C(T))return j.stylize(""+T,"number");if(v(T))return j.stylize(""+T,"boolean");if(A(T))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function m(j,T,D,X,te){for(var Z=[],M=0,J=T.length;M<J;++M)K(T,String(M))?Z.push(h(j,T,D,X,String(M),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(j,T,D,X,Y,!0))}),Z}function h(j,T,D,X,te,Z){var M,J,Y;if(Y=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Y.get?Y.set?J=j.stylize("[Getter/Setter]","special"):J=j.stylize("[Getter]","special"):Y.set&&(J=j.stylize("[Setter]","special")),K(X,te)||(M="["+te+"]"),J||(j.seen.indexOf(Y.value)<0?(A(D)?J=f(j,Y.value,null):J=f(j,Y.value,D-1),J.indexOf(`
16
16
  `)>-1&&(Z?J=J.split(`
17
17
  `).map(function(ee){return" "+ee}).join(`
18
18
  `).slice(2):J=`
19
19
  `+J.split(`
20
20
  `).map(function(ee){return" "+ee}).join(`
21
- `))):J=w.stylize("[Circular]","special")),x(M)){if(Z&&te.match(/^\d+$/))return J;M=JSON.stringify(""+te),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=w.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=w.stylize(M,"string"))}return M+": "+J}function y(w,T,D){var X=w.reduce(function(te,Z){return Z.indexOf(`
21
+ `))):J=j.stylize("[Circular]","special")),S(M)){if(Z&&te.match(/^\d+$/))return J;M=JSON.stringify(""+te),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=j.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=j.stylize(M,"string"))}return M+": "+J}function y(j,T,D){var X=j.reduce(function(te,Z){return Z.indexOf(`
22
22
  `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(T===""?"":T+`
23
- `)+" "+w.join(`,
24
- `)+" "+D[1]:D[0]+T+" "+w.join(", ")+" "+D[1]}e.types=Np();function g(w){return Array.isArray(w)}e.isArray=g;function v(w){return typeof w=="boolean"}e.isBoolean=v;function A(w){return w===null}e.isNull=A;function _(w){return w==null}e.isNullOrUndefined=_;function S(w){return typeof w=="number"}e.isNumber=S;function C(w){return typeof w=="string"}e.isString=C;function j(w){return typeof w=="symbol"}e.isSymbol=j;function x(w){return w===void 0}e.isUndefined=x;function I(w){return $(w)&&R(w)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(w){return typeof w=="object"&&w!==null}e.isObject=$;function E(w){return $(w)&&R(w)==="[object Date]"}e.isDate=E,e.types.isDate=E;function N(w){return $(w)&&(R(w)==="[object Error]"||w instanceof Error)}e.isError=N,e.types.isNativeError=N;function k(w){return typeof w=="function"}e.isFunction=k;function B(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=B,e.isBuffer=Op();function R(w){return Object.prototype.toString.call(w)}function q(w){return w<10?"0"+w.toString(10):w.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var w=new Date,T=[q(w.getHours()),q(w.getMinutes()),q(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Tp(),e._extend=function(w,T){if(!T||!$(T))return w;for(var D=Object.keys(T),X=D.length;X--;)w[D[X]]=T[D[X]];return w};function K(w,T){return Object.prototype.hasOwnProperty.call(w,T)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&T[G]){var D=T[G];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,M)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),G&&Object.defineProperty(D,G,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=G;function z(w,T){if(!w){var D=new Error("Promise was rejected with a falsy value");D.reason=w,w=D}return T(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,M=function(){return te.apply(Z,arguments)};w.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(w)),Object.defineProperties(T,t(w)),T}e.callbackify=ne}($r)),$r}var Ea;function kp(){return Ea||(Ea=1,(()=>{var e={333:(o,i,s)=>{const c=s(137),u=s(179),l=s(13),p=s(719),f=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=f.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(f.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};f.parse=(d,m={})=>p(d,m),f.stringify=(d,m={})=>c(typeof d=="string"?f.parse(d,m):d,m),f.compile=(d,m={})=>(typeof d=="string"&&(d=f.parse(d,m)),u(d,m)),f.expand=(d,m={})=>{typeof d=="string"&&(d=f.parse(d,m));let h=l(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},f.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?f.compile(d,m):f.expand(d,m),o.exports=f},179:(o,i,s)=>{const c=s(783),u=s(617),l=(p,f={})=>{let d=(m,h={})=>{let y=u.isInvalidBrace(h),g=m.invalid===!0&&f.escapeInvalid===!0,v=y===!0||g===!0,A=f.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return A+m.value;if(m.type==="open")return v?A+m.value:"(";if(m.type==="close")return v?A+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":v?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let S=u.reduce(m.nodes),C=c(...S,{...f,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(m.nodes)for(let S of m.nodes)_+=d(S,m);return _};return d(p)};o.exports=l},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
- `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,s)=>{const c=s(783),u=s(137),l=s(617),p=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?l.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(p(v,m,h));else for(let v of m)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?p(g,v,h):g+v);return l.flatten(y)},f=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,v={})=>{g.queue=[];let A=v,_=v.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,_=A.queue;if(g.invalid||g.dollar){_.push(p(_.pop(),u(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(p(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=l.reduce(g.nodes);if(l.exceedsLimit(...x,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...x,m);I.length===0&&(I=u(g,m)),_.push(p(_.pop(),I)),g.nodes=[];return}let S=l.encloseBrace(g),C=g.queue,j=g;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,C=j.queue;for(let x=0;x<g.nodes.length;x++){let I=g.nodes[x];if(I.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(I.type==="close"){_.push(p(_.pop(),C,S));continue}if(I.value&&I.type!=="open"){C.push(p(C.pop(),I.value));continue}I.nodes&&y(I,g)}return C};return l.flatten(y(d))};o.exports=f},719:(o,i,s)=>{const c=s(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=s(457),x=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let E=$||{},N=typeof E.maxLength=="number"?Math.min(u,E.maxLength):u;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let k={type:"root",input:I,nodes:[]},B=[k],R=k,q=k,F=0,U=I.length,K=0,G=0,z;const ne=()=>I[K++],w=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return R.nodes.push(T),T.parent=R,T.prev=q,q=T,T};for(w({type:"bos"});K<U;)if(R=B[B.length-1],z=ne(),!(z===j||z===C)){if(z===l){w({type:"text",value:($.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let T;for(;K<U&&(T=ne());){if(z+=T,T===v){F++;continue}if(T===l){z+=ne();continue}if(T===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===m){R=w({type:"paren",nodes:[]}),B.push(R),w({type:"text",value:z});continue}if(z===h){if(R.type!=="paren"){w({type:"text",value:z});continue}R=B.pop(),w({type:"text",value:z}),R=B[B.length-1];continue}if(z===_||z===S||z===p){let T=z,D;for($.keepQuotes!==!0&&(z="");K<U&&(D=ne());){if(D===l){z+=D+ne();continue}if(D===T){$.keepQuotes===!0&&(z+=D);break}z+=D}w({type:"text",value:z});continue}if(z===y){G++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||R.dollar===!0,depth:G,commas:0,ranges:0,nodes:[]};R=w(D),B.push(R),w({type:"open",value:z});continue}if(z===g){if(R.type!=="brace"){w({type:"text",value:z});continue}let T="close";R=B.pop(),R.close=!0,w({type:T,value:z}),G--,R=B[B.length-1];continue}if(z===f&&G>0){if(R.ranges>0){R.ranges=0;let T=R.nodes.shift();R.nodes=[T,{type:"text",value:c(R)}]}w({type:"comma",value:z}),R.commas++;continue}if(z===d&&G>0&&R.commas===0){let T=R.nodes;if(G===0||T.length===0){w({type:"text",value:z});continue}if(q.type==="dot"){if(R.range=[],q.value+=z,q.type="range",R.nodes.length!==3&&R.nodes.length!==5){R.invalid=!0,R.ranges=0,q.type="text";continue}R.ranges++,R.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+z,q=D,R.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(R=B.pop(),R.type!=="root"){R.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let T=B[B.length-1],D=T.nodes.indexOf(R);T.nodes.splice(D,1,...R.nodes)}while(B.length>0);return w({type:"eos"}),k};o.exports=x},137:(o,i,s)=>{const c=s(617);o.exports=(u,l={})=>{let p=(f,d={})=>{let m=l.escapeInvalid&&c.isInvalidBrace(d),h=f.invalid===!0&&l.escapeInvalid===!0,y="";if(f.value)return(m||h)&&c.isOpenOrClose(f)?"\\"+f.value:f.value;if(f.value)return f.value;if(f.nodes)for(let g of f.nodes)y+=p(g);return y};return p(u)}},617:(o,i)=>{i.isInteger=s=>typeof s=="number"?Number.isInteger(s):typeof s=="string"&&s.trim()!==""?Number.isInteger(Number(s)):!1,i.find=(s,c)=>s.nodes.find(u=>u.type===c),i.exceedsLimit=(s,c,u=1,l)=>l===!1||!i.isInteger(s)||!i.isInteger(c)?!1:(Number(c)-Number(s))/Number(u)>=l,i.escapeNode=(s,c=0,u)=>{let l=s.nodes[c];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.escaped=!0)},i.encloseBrace=s=>s.type!=="brace"||s.commas>>0+s.ranges>>0?!1:(s.invalid=!0,!0),i.isInvalidBrace=s=>s.type!=="brace"?!1:s.invalid===!0||s.dollar?!0:!(s.commas>>0+s.ranges>>0)||s.open!==!0||s.close!==!0?(s.invalid=!0,!0):!1,i.isOpenOrClose=s=>s.type==="open"||s.type==="close"?!0:s.open===!0||s.close===!0,i.reduce=s=>s.reduce((c,u)=>(u.type==="text"&&c.push(u.value),u.type==="range"&&(u.type="text"),c),[]),i.flatten=(...s)=>{const c=[],u=l=>{for(let p=0;p<l.length;p++){let f=l[p];Array.isArray(f)?u(f):f!==void 0&&c.push(f)}return c};return u(s),c}},783:(o,i,s)=>{/*!
23
+ `)+" "+j.join(`,
24
+ `)+" "+D[1]:D[0]+T+" "+j.join(", ")+" "+D[1]}e.types=Kp();function g(j){return Array.isArray(j)}e.isArray=g;function v(j){return typeof j=="boolean"}e.isBoolean=v;function A(j){return j===null}e.isNull=A;function _(j){return j==null}e.isNullOrUndefined=_;function C(j){return typeof j=="number"}e.isNumber=C;function x(j){return typeof j=="string"}e.isString=x;function P(j){return typeof j=="symbol"}e.isSymbol=P;function S(j){return j===void 0}e.isUndefined=S;function I(j){return $(j)&&w(j)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(j){return typeof j=="object"&&j!==null}e.isObject=$;function E(j){return $(j)&&w(j)==="[object Date]"}e.isDate=E,e.types.isDate=E;function N(j){return $(j)&&(w(j)==="[object Error]"||j instanceof Error)}e.isError=N,e.types.isNativeError=N;function k(j){return typeof j=="function"}e.isFunction=k;function B(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}e.isPrimitive=B,e.isBuffer=Xp();function w(j){return Object.prototype.toString.call(j)}function q(j){return j<10?"0"+j.toString(10):j.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var j=new Date,T=[q(j.getHours()),q(j.getMinutes()),q(j.getSeconds())].join(":");return[j.getDate(),z[j.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Qp(),e._extend=function(j,T){if(!T||!$(T))return j;for(var D=Object.keys(T),X=D.length;X--;)j[D[X]]=T[D[X]];return j};function K(j,T){return Object.prototype.hasOwnProperty.call(j,T)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&T[W]){var D=T[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,M)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=W;function F(j,T){if(!j){var D=new Error("Promise was rejected with a falsy value");D.reason=j,j=D}return T(j)}function ne(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,M=function(){return te.apply(Z,arguments)};j.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(j)),Object.defineProperties(T,t(j)),T}e.callbackify=ne}($r)),$r}var Pa;function Zp(){return Pa||(Pa=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),p=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(p.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>c(typeof d=="string"?p.parse(d,m):d,m),p.compile=(d,m={})=>(typeof d=="string"&&(d=p.parse(d,m)),l(d,m)),p.expand=(d,m={})=>{typeof d=="string"&&(d=p.parse(d,m));let h=u(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},p.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?p.compile(d,m):p.expand(d,m),o.exports=p},179:(o,i,a)=>{const c=a(783),l=a(617),u=(f,p={})=>{let d=(m,h={})=>{let y=l.isInvalidBrace(h),g=m.invalid===!0&&p.escapeInvalid===!0,v=y===!0||g===!0,A=p.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return A+m.value;if(m.type==="open")return v?A+m.value:"(";if(m.type==="close")return v?A+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":v?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let C=l.reduce(m.nodes),x=c(...C,{...p,wrap:!1,toRegex:!0});if(x.length!==0)return C.length>1&&x.length>1?`(${x})`:x}if(m.nodes)for(let C of m.nodes)_+=d(C,m);return _};return d(f)};o.exports=u},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?u.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(f(v,m,h));else for(let v of m)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?f(g,v,h):g+v);return u.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,v={})=>{g.queue=[];let A=v,_=v.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,_=A.queue;if(g.invalid||g.dollar){_.push(f(_.pop(),l(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let S=u.reduce(g.nodes);if(u.exceedsLimit(...S,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...S,m);I.length===0&&(I=l(g,m)),_.push(f(_.pop(),I)),g.nodes=[];return}let C=u.encloseBrace(g),x=g.queue,P=g;for(;P.type!=="brace"&&P.type!=="root"&&P.parent;)P=P.parent,x=P.queue;for(let S=0;S<g.nodes.length;S++){let I=g.nodes[S];if(I.type==="comma"&&g.type==="brace"){S===1&&x.push(""),x.push("");continue}if(I.type==="close"){_.push(f(_.pop(),x,C));continue}if(I.value&&I.type!=="open"){x.push(f(x.pop(),I.value));continue}I.nodes&&y(I,g)}return x};return u.flatten(y(d))};o.exports=p},719:(o,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:C,CHAR_NO_BREAK_SPACE:x,CHAR_ZERO_WIDTH_NOBREAK_SPACE:P}=a(457),S=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let E=$||{},N=typeof E.maxLength=="number"?Math.min(l,E.maxLength):l;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let k={type:"root",input:I,nodes:[]},B=[k],w=k,q=k,z=0,U=I.length,K=0,W=0,F;const ne=()=>I[K++],j=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return w.nodes.push(T),T.parent=w,T.prev=q,q=T,T};for(j({type:"bos"});K<U;)if(w=B[B.length-1],F=ne(),!(F===P||F===x)){if(F===u){j({type:"text",value:($.keepEscaping?F:"")+ne()});continue}if(F===A){j({type:"text",value:"\\"+F});continue}if(F===v){z++;let T;for(;K<U&&(T=ne());){if(F+=T,T===v){z++;continue}if(T===u){F+=ne();continue}if(T===A&&(z--,z===0))break}j({type:"text",value:F});continue}if(F===m){w=j({type:"paren",nodes:[]}),B.push(w),j({type:"text",value:F});continue}if(F===h){if(w.type!=="paren"){j({type:"text",value:F});continue}w=B.pop(),j({type:"text",value:F}),w=B[B.length-1];continue}if(F===_||F===C||F===f){let T=F,D;for($.keepQuotes!==!0&&(F="");K<U&&(D=ne());){if(D===u){F+=D+ne();continue}if(D===T){$.keepQuotes===!0&&(F+=D);break}F+=D}j({type:"text",value:F});continue}if(F===y){W++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||w.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};w=j(D),B.push(w),j({type:"open",value:F});continue}if(F===g){if(w.type!=="brace"){j({type:"text",value:F});continue}let T="close";w=B.pop(),w.close=!0,j({type:T,value:F}),W--,w=B[B.length-1];continue}if(F===p&&W>0){if(w.ranges>0){w.ranges=0;let T=w.nodes.shift();w.nodes=[T,{type:"text",value:c(w)}]}j({type:"comma",value:F}),w.commas++;continue}if(F===d&&W>0&&w.commas===0){let T=w.nodes;if(W===0||T.length===0){j({type:"text",value:F});continue}if(q.type==="dot"){if(w.range=[],q.value+=F,q.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,q.type="text";continue}w.ranges++,w.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+F,q=D,w.ranges--;continue}j({type:"dot",value:F});continue}j({type:"text",value:F})}do if(w=B.pop(),w.type!=="root"){w.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let T=B[B.length-1],D=T.nodes.indexOf(w);T.nodes.splice(D,1,...w.nodes)}while(B.length>0);return j({type:"eos"}),k};o.exports=S},137:(o,i,a)=>{const c=a(617);o.exports=(l,u={})=>{let f=(p,d={})=>{let m=u.escapeInvalid&&c.isInvalidBrace(d),h=p.invalid===!0&&u.escapeInvalid===!0,y="";if(p.value)return(m||h)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(l)}},617:(o,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(l=>l.type===c),i.exceedsLimit=(a,c,l=1,u)=>u===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,i.escapeNode=(a,c=0,l)=>{let u=a.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),i.flatten=(...a)=>{const c=[],l=u=>{for(let f=0;f<u.length;f++){let p=u[f];Array.isArray(p)?l(p):p!==void 0&&c.push(p)}return c};return l(a),c}},783:(o,i,a)=>{/*!
26
26
  * fill-range <https://github.com/jonschlinkert/fill-range>
27
27
  *
28
28
  * Copyright (c) 2014-present, Jon Schlinkert.
29
29
  * Licensed under the MIT License.
30
- */const c=s(837),u=s(492),l=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),p=E=>N=>E===!0?Number(N):String(N),f=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let N=`${E}`,k=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++k]==="0";);return k>0},h=(E,N,k)=>typeof E=="string"||typeof N=="string"?!0:k.stringify===!0,y=(E,N,k)=>{if(N>0){let B=E[0]==="-"?"-":"";B&&(E=E.slice(1)),E=B+E.padStart(B?N-1:N,"0")}return k===!1?String(E):E},g=(E,N)=>{let k=E[0]==="-"?"-":"";for(k&&(E=E.slice(1),N--);E.length<N;)E="0"+E;return k?"-"+E:E},v=(E,N)=>{E.negatives.sort((F,U)=>F<U?-1:F>U?1:0),E.positives.sort((F,U)=>F<U?-1:F>U?1:0);let k=N.capture?"":"?:",B="",R="",q;return E.positives.length&&(B=E.positives.join("|")),E.negatives.length&&(R=`-(${k}${E.negatives.join("|")})`),B&&R?q=`${B}|${R}`:q=B||R,N.wrap?`(${k}${q})`:q},A=(E,N,k,B)=>{if(k)return u(E,N,{wrap:!1,...B});let R=String.fromCharCode(E);if(E===N)return R;let q=String.fromCharCode(N);return`[${R}-${q}]`},_=(E,N,k)=>{if(Array.isArray(E)){let B=k.wrap===!0,R=k.capture?"":"?:";return B?`(${R}${E.join("|")})`:E.join("|")}return u(E,N,k)},S=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),C=(E,N,k)=>{if(k.strictRanges===!0)throw S([E,N]);return[]},j=(E,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},x=(E,N,k=1,B={})=>{let R=Number(E),q=Number(N);if(!Number.isInteger(R)||!Number.isInteger(q)){if(B.strictRanges===!0)throw S([E,N]);return[]}R===0&&(R=0),q===0&&(q=0);let F=R>q,U=String(E),K=String(N),G=String(k);k=Math.max(Math.abs(k),1);let z=m(U)||m(K)||m(G),ne=z?Math.max(U.length,K.length,G.length):0,w=z===!1&&h(E,N,B)===!1,T=B.transform||p(w);if(B.toRegex&&k===1)return A(g(E,ne),g(N,ne),!0,B);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;F?R>=q:R<=q;)B.toRegex===!0&&k>1?X(R):te.push(y(T(R,Z),ne,w)),R=F?R-k:R+k,Z++;return B.toRegex===!0?k>1?v(D,B):_(te,null,{wrap:!1,...B}):te},I=(E,N,k=1,B={})=>{if(!d(E)&&E.length>1||!d(N)&&N.length>1)return C(E,N,B);let R=B.transform||(w=>String.fromCharCode(w)),q=`${E}`.charCodeAt(0),F=`${N}`.charCodeAt(0),U=q>F,K=Math.min(q,F),G=Math.max(q,F);if(B.toRegex&&k===1)return A(K,G,!1,B);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(R(q,ne)),q=U?q-k:q+k,ne++;return B.toRegex===!0?_(z,null,{wrap:!1,options:B}):z},$=(E,N,k,B={})=>{if(N==null&&f(E))return[E];if(!f(E)||!f(N))return C(E,N,B);if(typeof k=="function")return $(E,N,1,{transform:k});if(l(k))return $(E,N,0,k);let R={...B};return R.capture===!0&&(R.wrap=!0),k=k||R.step||1,d(k)?d(E)&&d(N)?x(E,N,k,R):I(E,N,Math.max(Math.abs(k),1),R):k!=null&&!l(k)?j(k,R):$(E,N,1,k)};o.exports=$},357:o=>{/*!
30
+ */const c=a(837),l=a(492),u=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),f=E=>N=>E===!0?Number(N):String(N),p=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let N=`${E}`,k=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++k]==="0";);return k>0},h=(E,N,k)=>typeof E=="string"||typeof N=="string"?!0:k.stringify===!0,y=(E,N,k)=>{if(N>0){let B=E[0]==="-"?"-":"";B&&(E=E.slice(1)),E=B+E.padStart(B?N-1:N,"0")}return k===!1?String(E):E},g=(E,N)=>{let k=E[0]==="-"?"-":"";for(k&&(E=E.slice(1),N--);E.length<N;)E="0"+E;return k?"-"+E:E},v=(E,N)=>{E.negatives.sort((z,U)=>z<U?-1:z>U?1:0),E.positives.sort((z,U)=>z<U?-1:z>U?1:0);let k=N.capture?"":"?:",B="",w="",q;return E.positives.length&&(B=E.positives.join("|")),E.negatives.length&&(w=`-(${k}${E.negatives.join("|")})`),B&&w?q=`${B}|${w}`:q=B||w,N.wrap?`(${k}${q})`:q},A=(E,N,k,B)=>{if(k)return l(E,N,{wrap:!1,...B});let w=String.fromCharCode(E);if(E===N)return w;let q=String.fromCharCode(N);return`[${w}-${q}]`},_=(E,N,k)=>{if(Array.isArray(E)){let B=k.wrap===!0,w=k.capture?"":"?:";return B?`(${w}${E.join("|")})`:E.join("|")}return l(E,N,k)},C=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),x=(E,N,k)=>{if(k.strictRanges===!0)throw C([E,N]);return[]},P=(E,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},S=(E,N,k=1,B={})=>{let w=Number(E),q=Number(N);if(!Number.isInteger(w)||!Number.isInteger(q)){if(B.strictRanges===!0)throw C([E,N]);return[]}w===0&&(w=0),q===0&&(q=0);let z=w>q,U=String(E),K=String(N),W=String(k);k=Math.max(Math.abs(k),1);let F=m(U)||m(K)||m(W),ne=F?Math.max(U.length,K.length,W.length):0,j=F===!1&&h(E,N,B)===!1,T=B.transform||f(j);if(B.toRegex&&k===1)return A(g(E,ne),g(N,ne),!0,B);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;z?w>=q:w<=q;)B.toRegex===!0&&k>1?X(w):te.push(y(T(w,Z),ne,j)),w=z?w-k:w+k,Z++;return B.toRegex===!0?k>1?v(D,B):_(te,null,{wrap:!1,...B}):te},I=(E,N,k=1,B={})=>{if(!d(E)&&E.length>1||!d(N)&&N.length>1)return x(E,N,B);let w=B.transform||(j=>String.fromCharCode(j)),q=`${E}`.charCodeAt(0),z=`${N}`.charCodeAt(0),U=q>z,K=Math.min(q,z),W=Math.max(q,z);if(B.toRegex&&k===1)return A(K,W,!1,B);let F=[],ne=0;for(;U?q>=z:q<=z;)F.push(w(q,ne)),q=U?q-k:q+k,ne++;return B.toRegex===!0?_(F,null,{wrap:!1,options:B}):F},$=(E,N,k,B={})=>{if(N==null&&p(E))return[E];if(!p(E)||!p(N))return x(E,N,B);if(typeof k=="function")return $(E,N,1,{transform:k});if(u(k))return $(E,N,0,k);let w={...B};return w.capture===!0&&(w.wrap=!0),k=k||w.step||1,d(k)?d(E)&&d(N)?S(E,N,k,w):I(E,N,Math.max(Math.abs(k),1),w):k!=null&&!u(k)?P(k,w):$(E,N,1,k)};o.exports=$},357:o=>{/*!
31
31
  * is-number <https://github.com/jonschlinkert/is-number>
32
32
  *
33
33
  * Copyright (c) 2014-present, Jon Schlinkert.
34
34
  * Released under the MIT License.
35
- */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,s)=>{const c=s(837),u=s(333),l=s(251),p=s(513),f=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,v=new Set,A=new Set,_=0,S=x=>{A.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let I=l(String(h[x]),{...y,onResult:S},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let E of m){let N=I(E,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.output)))}}let j=(_===h.length?[...A]:[...v]).filter(x=>!g.has(x));if(y&&j.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return j};d.match=d,d.matcher=(m,h)=>l(m,h),d.isMatch=(m,h,y)=>l(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(m,h,{...y,onResult:S=>{y.onResult&&y.onResult(S),v.push(S.output)}});for(let S of v)_.includes(S)||g.add(S);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(f(m)||f(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!p.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),v={};for(let A of g)v[A]=m[A];return v},d.some=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=l(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=l(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>l(g,y)(m))},d.capture=(m,h,y)=>{let g=p.isWindows(y),A=l.makeRe(String(m),{...y,capture:!0}).exec(g?p.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>l.makeRe(...m),d.scan=(...m)=>l.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let v of u(String(g),h))y.push(l.parse(v,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:u(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,s)=>{o.exports=s(683)},356:(o,i,s)=>{const c=s(17),u="\\\\/",l=`[^${u}]`,p="\\.",f="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,v=`(?:^|${m})`,A=`${p}{1,2}${g}`,_=`(?!${p})`,S=`(?!${v}${A})`,C=`(?!${p}{0,1}${g})`,j=`(?!${A})`,x=`[^.${m}]`,I=`${y}*?`,$={DOT_LITERAL:p,PLUS_LITERAL:f,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:j,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:v},E={...$,SLASH_LITERAL:`[${u}]`,QMARK:l,STAR:`${l}*?`,DOTS_SLASH:`${p}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${u}])${p}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?E:$}}},754:(o,i,s)=>{const c=s(356),u=s(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(v,A)=>{if(typeof A.expandRange=="function")return A.expandRange(...v,A);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(C=>u.escapeRegex(C)).join("..")}return _},y=(v,A)=>`Missing ${v}: "${A}" - use "\\\\${A}" to match literal characters`,g=(v,A)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=m[v]||v;const _={...A},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l;let C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const j={type:"bos",value:"",output:_.prepend||""},x=[j],I=_.capture?"":"?:",$=u.isWindows(A),E=c.globChars($),N=c.extglobChars(E),{DOT_LITERAL:k,PLUS_LITERAL:B,SLASH_LITERAL:R,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:G,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:T}=E,D=Q=>`(${I}(?:(?!${T}${Q.dot?F:k}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?D(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};v=u.removePrefix(v,M),C=v.length;const J=[],Y=[],ee=[];let L=j,O;const re=()=>M.index===C-1,ae=M.peek=(Q=1)=>v[M.index+Q],ce=M.advance=()=>v[++M.index],ue=()=>v.slice(M.index+1),se=(Q="",oe=0)=>{M.consumed+=Q,M.index+=oe},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,ee.push(Q)},me=Q=>{M[Q]--,ee.pop()},W=Q=>{if(L.type==="globstar"){const oe=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&Q.type!=="paren"&&!N[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,x.push(Q),L=Q},le=(Q,oe)=>{const V={...N[oe],conditions:1,inner:""};V.prev=L,V.parens=M.parens,V.output=M.output;const de=(_.capture?"(":"")+V.open;ie("parens"),W({type:Q,value:oe,output:M.output?"":q}),W({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ce=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(_)),(V!==Z||re()||/^\)+$/.test(ue()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:O,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Jt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Jt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?k.repeat(ye.length):Ae==="*"?de?de+Ae+(be?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===v&&_.contains===!0?(M.output=v,M):(M.output=u.wrapOutput(oe,M,A),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){O+="\\",W({type:"text",value:O});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){W({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ae=L.value.slice(de+2),be=p[Ae];if(be){L.value=ye+be,M.backtrack=!0,ce(),!j.output&&x.indexOf(L)===1&&(j.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=u.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&W({type:"text",value:O});continue}if(O==="("){ie("parens"),W({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&M.parens===V.parens+1){Ce(J.pop());continue}W({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");W({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){W({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));W({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||u.hasRegexChars(V))continue;const de=u.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Y.push(V),W(V);continue}if(O==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){W({type:"text",value:O,output:O});continue}let de=")";if(V.dots===!0){const ye=x.slice(),Ae=[];for(let be=ye.length-1;be>=0&&(x.pop(),ye[be].type!=="brace");be--)ye[be].type!=="dots"&&Ae.unshift(ye[be].value);de=h(Ae,_),M.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=M.output.slice(0,V.outputIndex),Ae=M.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",M.output=ye;for(const be of Ae)M.output+=be.output||be.value}W({type:"brace",value:O,output:de}),me("braces"),Y.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,W({type:"text",value:O});continue}if(O===","){let V=O;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),W({type:"comma",value:O,output:V});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",x.pop(),L=j;continue}W({type:"slash",value:O,output:R});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=k);const V=Y[Y.length-1];L.type="dots",L.output+=O,L.value+=O,V.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){W({type:"text",value:O,output:k});continue}W({type:"dot",value:O,output:k});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${O}`),W({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){W({type:"qmark",value:O,output:ne});continue}W({type:"qmark",value:O,output:z});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){le("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("plus",O);continue}if(L&&L.value==="("||_.regex===!1){W({type:"plus",value:O,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){W({type:"plus",value:O});continue}W({type:"plus",value:B});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){W({type:"at",extglob:!0,value:O,output:""});continue}W({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const V=f.exec(ue());V&&(O+=V[0],M.index+=V[0].length),W({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,se(O);continue}let Q=ue();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){le("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const V=L.prev,de=V.prev,ye=V.type==="slash"||V.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||Q[0]&&Q[0]!=="/")){W({type:"star",value:O,output:""});continue}const be=M.braces>0&&(V.type==="comma"||V.type==="brace"),Jt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Jt){W({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const vt=v[M.index+4];if(vt&&vt!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=V.output+L.output,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const vt=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${R}|${R}${vt})`,L.value+=O,M.output+=V.output+L.output,M.globstar=!0,se(O+ce()),W({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${R}|${D(_)}${R})`,M.output=L.output,M.globstar=!0,se(O+ce()),W({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,se(O);continue}const oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),W(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=O,W(oe);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=K,L.output+=K):_.dot===!0?(M.output+=G,L.output+=G):(M.output+=X,L.output+=X),ae()!=="*"&&(M.output+=q,L.output+=q)),W(oe)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=u.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=u.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=u.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${R}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};g.fastpaths=(v,A)=>{const _={...A},S=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=m[v]||v;const j=u.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:E,NO_DOT:N,NO_DOTS:k,NO_DOTS_SLASH:B,STAR:R,START_ANCHOR:q}=c.globChars(j),F=_.dot?k:N,U=_.dot?B:N,K=_.capture?"":"?:",G={negated:!1,prefix:""};let z=_.bash===!0?".*?":R;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${q}${X.dot?E:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${$}${z}`;case".*":return`${x}${$}${z}`;case"*.*":return`${F}${z}${x}${$}${z}`;case"*/*":return`${F}${z}${I}${$}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${I})?${U}${$}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${I})?${U}${z}${x}${$}${z}`;case"**/.*":return`(?:${F}${ne(_)}${I})?${x}${$}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},T=u.removePrefix(v,G);let D=w(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,s)=>{const c=s(17),u=s(700),l=s(754),p=s(513),f=s(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const N of I){const k=N(E);if(k)return k}return!1}}const v=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const A=y||{},_=p.isWindows(y),S=v?m.compileRe(h,y):m.makeRe(h,y,!1,!0),C=S.state;delete S.state;let j=()=>!1;if(A.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};j=m(A.ignore,I,g)}const x=(I,$=!1)=>{const{isMatch:E,match:N,output:k}=m.test(I,S,y,{glob:h,posix:_}),B={glob:h,state:C,regex:S,posix:_,input:I,output:k,match:N,isMatch:E};return typeof A.onResult=="function"&&A.onResult(B),E===!1?(B.isMatch=!1,$?B:!1):j(I)?(typeof A.onIgnore=="function"&&A.onIgnore(B),B.isMatch=!1,$?B:!1):(typeof A.onMatch=="function"&&A.onMatch(B),$?B:!0)};return g&&(x.state=C),x};m.test=(h,y,g,{glob:v,posix:A}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},S=_.format||(A?p.toPosixSlashes:null);let C=h===v,j=C&&S?S(h):h;return C===!1&&(j=S?S(h):h,C=j===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=m.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},m.matchBase=(h,y,g,v=p.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):l(h,{...y,fastpaths:!1}),m.scan=(h,y)=>u(h,y),m.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",S=A.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const j=m.toRegex(C,y);return v===!0&&(j.state=h),j},m.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const A=y||{};let _={negated:!1,fastpaths:!0},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(C=l.fastpaths(h,y)),C===void 0?(_=l(h,y),_.prefix=S+(_.prefix||"")):_.output=C,m.compileRe(_,y,g,v)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=f,o.exports=m},700:(o,i,s)=>{const c=s(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:A,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:j}=s(356),x=E=>E===h||E===p,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},$=(E,N)=>{const k=N||{},B=E.length-1,R=k.parts===!0||k.scanToEnd===!0,q=[],F=[],U=[];let K=E,G=-1,z=0,ne=0,w=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,M=!1,J=!1,Y=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>G>=B,ce=()=>K.charCodeAt(G+1),ue=()=>(L=O,K.charCodeAt(++G));for(;G<B;){O=ue();let me;if(O===p){M=re.backslashes=!0,O=ue(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,ue();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=ue())===d){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&O===f){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(O===h){if(q.push(G),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&G===z+1){z+=2;continue}ne=G+1;continue}if(k.noext!==!0&&(O===A||O===l||O===u||O===_||O===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;ae()!==!0&&(O=ue());){if(O===p){M=re.backslashes=!0,O=ue();continue}if(O===C){D=re.isGlob=!0,Y=!0;break}}continue}break}if(O===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=ue());){if(me===p){M=re.backslashes=!0,ue();continue}if(me===j){T=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(R===!0)continue;break}if(k.nonegate!==!0&&O===m&&G===z){J=re.negated=!0,z++;continue}if(k.noparen!==!0&&O===g){if(D=re.isGlob=!0,R===!0){for(;ae()!==!0&&(O=ue());){if(O===g){M=re.backslashes=!0,O=ue();continue}if(O===C){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}k.noext===!0&&(X=!1,D=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&D===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):D===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),k.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&M===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:E,start:z,base:se,glob:he,isBrace:w,isBracket:T,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(k.tokens===!0&&(ie.maxDepth=0,x(O)||F.push(re),ie.tokens=F),k.parts===!0||k.tokens===!0){let me;for(let W=0;W<q.length;W++){const le=me?me+1:z,Ce=q[W],Q=E.slice(le,Ce);k.tokens&&(W===0&&z!==0?(F[W].isPrefix=!0,F[W].value=H):F[W].value=Q,I(F[W]),ie.maxDepth+=F[W].depth),(W!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<E.length){const W=E.slice(me+1);U.push(W),k.tokens&&(F[F.length-1].value=W,I(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,s)=>{const c=s(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:d}=s(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>f.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(l,"/"),i.removeBackslashes=m=>m.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:u===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${m})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,s)=>{/*!
35
+ */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,v=new Set,A=new Set,_=0,C=S=>{A.add(S.output),y&&y.onResult&&y.onResult(S)};for(let S=0;S<h.length;S++){let I=u(String(h[S]),{...y,onResult:C},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let E of m){let N=I(E,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.output)))}}let P=(_===h.length?[...A]:[...v]).filter(S=>!g.has(S));if(y&&P.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(S=>S.replace(/\\/g,"")):h}return P};d.match=d,d.matcher=(m,h)=>u(m,h),d.isMatch=(m,h,y)=>u(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(m,h,{...y,onResult:C=>{y.onResult&&y.onResult(C),v.push(C.output)}});for(let C of v)_.includes(C)||g.add(C);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),v={};for(let A of g)v[A]=m[A];return v},d.some=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=u(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=u(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>u(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),A=u.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>u.makeRe(...m),d.scan=(...m)=>u.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let v of l(String(g),h))y.push(u.parse(v,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:l(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,v=`(?:^|${m})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,C=`(?!${v}${A})`,x=`(?!${f}{0,1}${g})`,P=`(?!${A})`,S=`[^.${m}]`,I=`${y}*?`,$={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:C,NO_DOT_SLASH:x,NO_DOTS_SLASH:P,QMARK_NO_DOT:S,STAR:I,START_ANCHOR:v},E={...$,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?E:$}}},754:(o,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(v,A)=>{if(typeof A.expandRange=="function")return A.expandRange(...v,A);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(x=>l.escapeRegex(x)).join("..")}return _},y=(v,A)=>`Missing ${v}: "${A}" - use "\\\\${A}" to match literal characters`,g=(v,A)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=m[v]||v;const _={...A},C=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;let x=v.length;if(x>C)throw new SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${C}`);const P={type:"bos",value:"",output:_.prepend||""},S=[P],I=_.capture?"":"?:",$=l.isWindows(A),E=c.globChars($),N=c.extglobChars(E),{DOT_LITERAL:k,PLUS_LITERAL:B,SLASH_LITERAL:w,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:F,QMARK_NO_DOT:ne,STAR:j,START_ANCHOR:T}=E,D=Q=>`(${I}(?:(?!${T}${Q.dot?z:k}).)*?)`,X=_.dot?"":U,te=_.dot?F:ne;let Z=_.bash===!0?D(_):j;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};v=l.removePrefix(v,M),x=v.length;const J=[],Y=[],ee=[];let L=P,O;const re=()=>M.index===x-1,ae=M.peek=(Q=1)=>v[M.index+Q],ce=M.advance=()=>v[++M.index],le=()=>v.slice(M.index+1),se=(Q="",oe=0)=>{M.consumed+=Q,M.index+=oe},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,ee.push(Q)},me=Q=>{M[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&Q.type!=="paren"&&!N[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,S.push(Q),L=Q},ue=(Q,oe)=>{const V={...N[oe],conditions:1,inner:""};V.prev=L,V.parens=M.parens,V.output=M.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:M.output?"":q}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ce=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:O,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,xe,Zt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(xe?F.repeat(xe.length):""):Zt===0?te+(xe?F.repeat(xe.length):""):F.repeat(ye.length):Ae==="."?k.repeat(ye.length):Ae==="*"?de?de+Ae+(xe?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===v&&_.contains===!0?(M.output=v,M):(M.output=l.wrapOutput(oe,M,A),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){O+="\\",G({type:"text",value:O});continue}const de=/^\\+/.exec(le());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){G({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ae=L.value.slice(de+2),xe=f[Ae];if(xe){L.value=ye+xe,M.backtrack=!0,ce(),!P.output&&S.indexOf(L)===1&&(P.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=l.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:O});continue}if(O==="("){ie("parens"),G({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&M.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!le().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");G({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Y.push(V),G(V);continue}if(O==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:O,output:O});continue}let de=")";if(V.dots===!0){const ye=S.slice(),Ae=[];for(let xe=ye.length-1;xe>=0&&(S.pop(),ye[xe].type!=="brace");xe--)ye[xe].type!=="dots"&&Ae.unshift(ye[xe].value);de=h(Ae,_),M.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=M.output.slice(0,V.outputIndex),Ae=M.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",M.output=ye;for(const xe of Ae)M.output+=xe.output||xe.value}G({type:"brace",value:O,output:de}),me("braces"),Y.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:O});continue}if(O===","){let V=O;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:O,output:V});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",S.pop(),L=P;continue}G({type:"slash",value:O,output:w});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=k);const V=Y[Y.length-1];L.type="dots",L.output+=O,L.value+=O,V.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:O,output:k});continue}G({type:"dot",value:O,output:k});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ye=`\\${O}`),G({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:O,output:ne});continue}G({type:"qmark",value:O,output:F});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ue("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("plus",O);continue}if(L&&L.value==="("||_.regex===!1){G({type:"plus",value:O,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){G({type:"plus",value:O});continue}G({type:"plus",value:B});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:O,output:""});continue}G({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const V=p.exec(le());V&&(O+=V[0],M.index+=V[0].length),G({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,se(O);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const V=L.prev,de=V.prev,ye=V.type==="slash"||V.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||Q[0]&&Q[0]!=="/")){G({type:"star",value:O,output:""});continue}const xe=M.braces>0&&(V.type==="comma"||V.type==="brace"),Zt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!xe&&!Zt){G({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const bt=v[M.index+4];if(bt&&bt!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=V.output+L.output,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const bt=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${w}|${w}${bt})`,L.value+=O,M.output+=V.output+L.output,M.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${w}|${D(_)}${w})`,M.output=L.output,M.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,se(O);continue}const oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=O,G(oe);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=K,L.output+=K):_.dot===!0?(M.output+=W,L.output+=W):(M.output+=X,L.output+=X),ae()!=="*"&&(M.output+=q,L.output+=q)),G(oe)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=l.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=l.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=l.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${w}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};g.fastpaths=(v,A)=>{const _={...A},C=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,x=v.length;if(x>C)throw new SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${C}`);v=m[v]||v;const P=l.isWindows(A),{DOT_LITERAL:S,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:E,NO_DOT:N,NO_DOTS:k,NO_DOTS_SLASH:B,STAR:w,START_ANCHOR:q}=c.globChars(P),z=_.dot?k:N,U=_.dot?B:N,K=_.capture?"":"?:",W={negated:!1,prefix:""};let F=_.bash===!0?".*?":w;_.capture&&(F=`(${F})`);const ne=X=>X.noglobstar===!0?F:`(${K}(?:(?!${q}${X.dot?E:S}).)*?)`,j=X=>{switch(X){case"*":return`${z}${$}${F}`;case".*":return`${S}${$}${F}`;case"*.*":return`${z}${F}${S}${$}${F}`;case"*/*":return`${z}${F}${I}${$}${U}${F}`;case"**":return z+ne(_);case"**/*":return`(?:${z}${ne(_)}${I})?${U}${$}${F}`;case"**/*.*":return`(?:${z}${ne(_)}${I})?${U}${F}${S}${$}${F}`;case"**/.*":return`(?:${z}${ne(_)}${I})?${S}${$}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=j(te[1]);return Z?Z+S+te[2]:void 0}}},T=l.removePrefix(v,W);let D=j(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),p=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const N of I){const k=N(E);if(k)return k}return!1}}const v=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const A=y||{},_=f.isWindows(y),C=v?m.compileRe(h,y):m.makeRe(h,y,!1,!0),x=C.state;delete C.state;let P=()=>!1;if(A.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=m(A.ignore,I,g)}const S=(I,$=!1)=>{const{isMatch:E,match:N,output:k}=m.test(I,C,y,{glob:h,posix:_}),B={glob:h,state:x,regex:C,posix:_,input:I,output:k,match:N,isMatch:E};return typeof A.onResult=="function"&&A.onResult(B),E===!1?(B.isMatch=!1,$?B:!1):P(I)?(typeof A.onIgnore=="function"&&A.onIgnore(B),B.isMatch=!1,$?B:!1):(typeof A.onMatch=="function"&&A.onMatch(B),$?B:!0)};return g&&(S.state=x),S};m.test=(h,y,g,{glob:v,posix:A}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},C=_.format||(A?f.toPosixSlashes:null);let x=h===v,P=x&&C?C(h):h;return x===!1&&(P=C?C(h):h,x=P===v),(x===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?x=m.matchBase(h,y,g,A):x=y.exec(P)),{isMatch:!!x,match:x,output:P}},m.matchBase=(h,y,g,v=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):u(h,{...y,fastpaths:!1}),m.scan=(h,y)=>l(h,y),m.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",C=A.contains?"":"$";let x=`${_}(?:${h.output})${C}`;h&&h.negated===!0&&(x=`^(?!${x}).*$`);const P=m.toRegex(x,y);return v===!0&&(P.state=h),P},m.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const A=y||{};let _={negated:!1,fastpaths:!0},C="",x;return h.startsWith("./")&&(h=h.slice(2),C=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(x=u.fastpaths(h,y)),x===void 0?(_=u(h,y),_.prefix=C+(_.prefix||"")):_.output=x,m.compileRe(_,y,g,v)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=p,o.exports=m},700:(o,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:A,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:x,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),S=E=>E===h||E===f,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},$=(E,N)=>{const k=N||{},B=E.length-1,w=k.parts===!0||k.scanToEnd===!0,q=[],z=[],U=[];let K=E,W=-1,F=0,ne=0,j=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,M=!1,J=!1,Y=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=B,ce=()=>K.charCodeAt(W+1),le=()=>(L=O,K.charCodeAt(++W));for(;W<B;){O=le();let me;if(O===f){M=re.backslashes=!0,O=le(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=le());){if(O===f){M=re.backslashes=!0,le();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=le())===d){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(Z!==!0&&O===p){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(O===C&&(ee--,ee===0)){Z=!1,j=re.isBrace=!0,Y=!0;break}}if(w===!0)continue;break}if(O===h){if(q.push(W),z.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===F+1){F+=2;continue}ne=W+1;continue}if(k.noext!==!0&&(O===A||O===u||O===l||O===_||O===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,w===!0){for(;ae()!==!0&&(O=le());){if(O===f){M=re.backslashes=!0,O=le();continue}if(O===x){D=re.isGlob=!0,Y=!0;break}}continue}break}if(O===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=le());){if(me===f){M=re.backslashes=!0,le();continue}if(me===P){T=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(w===!0)continue;break}if(k.nonegate!==!0&&O===m&&W===F){J=re.negated=!0,F++;continue}if(k.noparen!==!0&&O===g){if(D=re.isGlob=!0,w===!0){for(;ae()!==!0&&(O=le());){if(O===g){M=re.backslashes=!0,O=le();continue}if(O===x){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,w===!0)continue;break}}k.noext===!0&&(X=!1,D=!1);let se=K,H="",he="";F>0&&(H=K.slice(0,F),K=K.slice(F),ne-=F),se&&D===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):D===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&S(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),k.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&M===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:E,start:F,base:se,glob:he,isBrace:j,isBracket:T,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(k.tokens===!0&&(ie.maxDepth=0,S(O)||z.push(re),ie.tokens=z),k.parts===!0||k.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:F,Ce=q[G],Q=E.slice(ue,Ce);k.tokens&&(G===0&&F!==0?(z[G].isPrefix=!0,z[G].value=H):z[G].value=Q,I(z[G]),ie.maxDepth+=z[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<E.length){const G=E.slice(me+1);U.push(G),k.tokens&&(z[z.length-1].value=G,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>p.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(u,"/"),i.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${m})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,a)=>{/*!
36
36
  * to-regex-range <https://github.com/micromatch/to-regex-range>
37
37
  *
38
38
  * Copyright (c) 2015-present, Jon Schlinkert.
39
39
  * Released under the MIT License.
40
- */const c=s(357),u=(x,I,$)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||x===I)return String(x);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...$};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let N=String(E.relaxZeros),k=String(E.shorthand),B=String(E.capture),R=String(E.wrap),q=x+":"+I+"="+N+k+B+R;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let F=Math.min(x,I),U=Math.max(x,I);if(Math.abs(F-U)===1){let w=x+"|"+I;return E.capture?`(${w})`:E.wrap===!1?w:`(?:${w})`}let K=C(x)||C(I),G={min:x,max:I,a:F,b:U},z=[],ne=[];if(K&&(G.isPadded=K,G.maxLen=String(G.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),G,E),F=G.a=0}return U>=0&&(z=d(F,U,G,E)),G.negatives=ne,G.positives=z,G.result=l(ne,z),E.capture===!0?G.result=`(${G.result})`:E.wrap!==!1&&z.length+ne.length>1&&(G.result=`(?:${G.result})`),u.cache[q]=G,G.result};function l(x,I,$){let E=m(x,I,"-",!1)||[],N=m(I,x,"",!1)||[],k=m(x,I,"-?",!0)||[];return E.concat(k).concat(N).join("|")}function p(x,I){let $=1,E=1,N=v(x,$),k=new Set([I]);for(;x<=N&&N<=I;)k.add(N),$+=1,N=v(x,$);for(N=A(I+1,E)-1;x<N&&N<=I;)k.add(N),E+=1,N=A(I+1,E)-1;return k=[...k],k.sort(y),k}function f(x,I,$){if(x===I)return{pattern:x,count:[],digits:0};let E=h(x,I),N=E.length,k="",B=0;for(let R=0;R<N;R++){let[q,F]=E[R];q===F?k+=q:q!=="0"||F!=="9"?k+=S(q,F):B++}return B&&(k+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[B],digits:N}}function d(x,I,$,E){let N=p(x,I),k=[],B=x,R;for(let q=0;q<N.length;q++){let F=N[q],U=f(String(B),String(F),E),K="";if(!$.isPadded&&R&&R.pattern===U.pattern){R.count.length>1&&R.count.pop(),R.count.push(U.count[0]),R.string=R.pattern+_(R.count),B=F+1;continue}$.isPadded&&(K=j(F,$,E)),U.string=K+U.pattern+_(U.count),k.push(U),B=F+1,R=U}return k}function m(x,I,$,E,N){let k=[];for(let B of x){let{string:R}=B;!E&&!g(I,"string",R)&&k.push($+R),E&&g(I,"string",R)&&k.push($+R)}return k}function h(x,I){let $=[];for(let E=0;E<x.length;E++)$.push([x[E],I[E]]);return $}function y(x,I){return x>I?1:I>x?-1:0}function g(x,I,$){return x.some(E=>E[I]===$)}function v(x,I){return Number(String(x).slice(0,-I)+"9".repeat(I))}function A(x,I){return x-x%Math.pow(10,I)}function _(x){let[I=0,$=""]=x;return $||I>1?`{${I+($?","+$:"")}}`:""}function S(x,I,$){return`[${x}${I-x===1?"":"-"}${I}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,I,$){if(!I.isPadded)return x;let E=Math.abs(I.maxLen-String(x).length),N=$.relaxZeros!==!1;switch(E){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${E}}`:`0{${E}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=Zf},837:o=>{o.exports=Mp()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}},c=!0;try{e[o](s,s.exports,r),c=!1}finally{c&&delete t[o]}return s.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Dr.exports=n})()),Dr.exports}var Ra;function Lp(){return Ra||(Ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=kp();function n(i,s){if(i.protocol!==void 0){const u=s.protocol.slice(0,-1);if(i.protocol!==u)return!1}if(i.port!==void 0&&i.port!==s.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
- `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(s.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(s.pathname)}function o(i,s,c){return i.some(u=>c.hostname===u)||s.some(u=>n(u,c))}}(Lr)),Lr}var wa;function lu(){return wa||(wa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:s,quality:c}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),s||u.push("width"),u.length>0)throw new Error("Next Image Optimization requires "+u.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:s,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let l;try{l=new URL(i)}catch(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=Lp();if(!p(o.domains,o.remotePatterns,l))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+l.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+s+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(kr)),kr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Re,o=Gt()._(P),i=r._(Ba),s=r._(Qf()),c=xo,u=Qt,l=Yf(),p=mt,f=gc(),d=r._(lu()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,x,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let k=!1,B=!1;C.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>k,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{k=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:R}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(R)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+R+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const k=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(k&&!B||!k&&B)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[S,C]=o.version.split("."),j=parseInt(S,10),x=parseInt(C,10);return j>18||j===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:j,sizes:x,height:I,width:$,decoding:E,className:N,style:k,fetchPriority:B,placeholder:R,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:G,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:I,decoding:E,"data-nimg":U?"fill":"1",className:N,style:k,sizes:x,srcSet:j,src:C,ref:(0,o.useCallback)(X=>{S&&(typeof S=="function"?S(X):typeof S=="object"&&(S.current=X)),X&&(T&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(C||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,R,K,G,z,F))},[C,R,K,G,z,T,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,G,z,F)},onError:X=>{ne(!0),R!=="empty"&&z(!0),T&&T(X)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const j={as:"image",imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:C.crossOrigin,referrerPolicy:C.referrerPolicy,...y(C.fetchPriority)};return S&&i.default.preload?(i.default.preload(C.src,j),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...j}))}const A=(0,o.forwardRef)((_,S)=>{const j=!(0,o.useContext)(f.RouterContext),x=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const G=m||x||u.imageConfigDefault,z=[...G.deviceSizes,...G.imageSizes].sort((w,T)=>w-T),ne=G.deviceSizes.sort((w,T)=>w-T);return{...G,allSizes:z,deviceSizes:ne}},[x]),{onLoad:$,onLoadingComplete:E}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const k=(0,o.useRef)(E);(0,o.useEffect)(()=>{k.current=E},[E]);const[B,R]=(0,o.useState)(!1),[q,F]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:B,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:k,setBlurComplete:R,setShowAltText:F,ref:S}),K.priority?o.default.createElement(v,{isAppRouter:j,imgAttributes:U}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Qn,Qn.exports);var Dp=Qn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var f in p)Object.defineProperty(l,f,{enumerable:!0,get:p[f]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return u}});const r=Re,n=xo,o=mt,i=Dp,s=r._(lu()),c=l=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,n.getImgProps)(l,{defaultLoader:s.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[f,d]of Object.entries(p))d===void 0&&delete p[f];return{props:p}},u=i.Image})(Zc);var $p=Zc;const ja=Wt($p),Bp=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?a.jsxs(Pe,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(ja,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(b.Icon,{size:"small",name:n})]}):a.jsxs("div",{className:pe["support-item"],children:[e.image&&a.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?a.jsx(ja,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):a.jsx(b.Icon,{size:"small",name:n})]})},qp=({content:e,CONSTANTS:t})=>a.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>a.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[a.jsxs("div",{className:pe["support-text"],children:[r.title&&a.jsx("h3",{children:r.title}),r.description&&a.jsx("p",{children:r.description})]}),r.items.length&&a.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>a.jsx(Bp,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Hp=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:s,textAlignItems:c,children:u})=>a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:a.jsxs(b.TextStructure.DivWrapper,{alignContent:s,alignItems:c,className:pe.footer__column,children:[a.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[a.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&a.jsx("div",{children:e})]}),a.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),zp=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>a.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[a.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:a.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:a.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[a.jsx(b.Icon,{name:`${t}`,size:"medium"}),a.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),a.jsx(b.Accordion.Body,{title:"accordion-body",children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Bn=e=>{const{isMobile:t}=Ie();return t?a.jsx(zp,{...e}):a.jsx(Hp,{...e})},Lt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:s,iconSize:c,link:u,paymentDisclaimer:l,paymentTitle:p,rowAlignContent:f,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Me();switch(e){case"menu":v=a.jsx(Pe,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:a.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=a.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,a.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,a.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>a.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});break;case"social-media":v=a.jsx("div",{className:pe.footer__iconContainer,...g,children:a.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((S,C)=>a.jsx(Pe,{prefetch:!1,href:S.link??"#",target:"_blank",children:a.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=a.jsx("div",{className:r,...g,children:t})}return a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:f,alignItems:f},columnWrapper:{alignContent:d,alignItems:m}},...g,children:a.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},Fp=({className:e,text:t,...r})=>a.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:a.jsx("span",{children:t})}),du=()=>{const{nextimage:e}=Me();return a.jsx("div",{className:pe["footer--stamps"],children:a.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};du.displayName="Footer.Stamps";const fu=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Ie(),s=P.Children.toArray(e).filter(Boolean),c=s.length;return a.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&a.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&a.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:s.map((u,l)=>a.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&a.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&a.jsx("div",{className:pe.footer__legalText,children:t})]})};fu.displayName="Footer.Wrapper";const pu=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:s})=>{var c;return a.jsxs(fu,{adornment:o,legalTextSlot:a.jsx(Fp,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>a.jsx(Bn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:s,children:u.items.map((p,f)=>a.jsx(Lt,{type:"menu",link:p.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:p.text},f))},l)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&a.jsx(Bn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:s,children:a.jsx(Lt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),a.jsxs(Bn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:s,children:[r!=null&&r.subTitle?a.jsx(Lt,{children:r==null?void 0:r.subTitle}):null,a.jsx(Lt,{type:"social-media",iconSize:24,iconLink:n}),a.jsx(du,{})]})]})};pu.displayName="Footer";const Up=Object.freeze(Object.defineProperty({__proto__:null,Footer:pu,FooterSupport:qp},Symbol.toStringTag,{value:"Module"})),Pa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Ga(e.imageUrl,n.pdp),{nextimage:i}=Me();return a.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Wp=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=P.useRef(!1);return a.jsx(ke.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Gp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},mu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,p;const{initialize:i,pagination:s,controller:c,itemsStyles:u}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return a.jsxs(b.Carousel.Root,{innerRef:f=>{i(f)},className:Gp["gallery-carousel-modifier"],children:[a.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:a.jsx(b.Carousel.Bullets,{page:s.currentPage,total:e.length,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})}),a.jsxs(b.Carousel.Body,{children:[a.jsx(b.Carousel.Item,{style:u,children:a.jsx(Pa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&a.jsx(b.Carousel.Item,{style:u,children:a.jsx(Wp,{video:t,productName:n,...((l=e[1])==null?void 0:l.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((f,d)=>d===0?null:a.jsx(b.Carousel.Item,{style:u,children:a.jsx(Pa,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};mu.displayName="PDP.Carousel";const Vp=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=so(),[o,i]=P.useState({show:!1,initialIndex:0});P.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const s=c=>{i({show:!0,initialIndex:c})};return a.jsx(a.Fragment,{children:a.jsx(mu,{images:e,video:r,handleZoom:s,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},hu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=so(),n=P.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return a.jsx(Vp,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};hu.displayName="PDP.Gallery";const Kp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:hu},Symbol.toStringTag,{value:"Module"})),gu=P.createContext({}),Xp=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,I,$,E;const[n,o]=P.useState(!0),{initialize:i,controller:s,itemsStyles:c}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),u={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(_=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(C=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(x=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:x.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},l=(E=u.content)==null?void 0:E.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=l.length>1,f={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},m=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:u.textColorVariant,fallback:"default"});return a.jsx(gu.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:p,backgroundStyle:f,handleCloseTipbar:d,mode:m,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:s,itemsStyles:c},...r},children:t})},De=()=>P.useContext(gu),Yn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=P.useState(Qs(new jo.TZDate(Date.now(),r),new jo.TZDate(e,r))),[s,c]=P.useState(!1);P.useEffect(()=>{s||c(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,s]);const u=it(o,"days");return s&&o>0?a.jsxs(b.Timer.Root,{...n,children:[u?a.jsxs(a.Fragment,{children:[a.jsx(b.Timer.Digit,{label:"dias",value:u}),a.jsx(b.Timer.Separator,{})]}):null,a.jsx(b.Timer.Digit,{label:"horas",value:it(o,"hours")}),a.jsx(b.Timer.Separator,{}),a.jsx(b.Timer.Digit,{label:"min",value:it(o,"minutes")}),a.jsx(b.Timer.Separator,{}),a.jsx(b.Timer.Digit,{label:"segs",value:it(o),suppressHydrationWarning:!0})]}):a.jsx(a.Fragment,{})},Qp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=De();return a.jsx(Yn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Yp="_tipbar_bt3p0_1",Zp="_tipbar__carousel_bt3p0_15",_t={tipbar:Yp,tipbar__carousel:Zp,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Jp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},st=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:s,...c})=>a.jsxs(b.SnackBar.Structure,{...c,size:e,className:b.helpers.classNameConcat(Jp["snackbar-modifier"],i),width:360,style:{zIndex:s.snackbar},children:[a.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&a.jsx(b.SnackBar.Support,{children:o})]});st.displayName="SnackBar";const em=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=De(),{addCouponSeller:i,cartStore:s}=He(),[c,u]=P.useState({status:!1,showSnackBar:!1}),[l,p]=P.useState(!1),[f,d]=P.useState(!1),m=async()=>{if(!s.items.length){d(!0);return}(await i(e,"coupon")).code===200?u({status:!0,showSnackBar:!0}):p(!0)};return P.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{u(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),P.useEffect(()=>{l&&setTimeout(()=>{p(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[l]),P.useEffect(()=>{f&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[f]),a.jsxs(a.Fragment,{children:[a.jsx(b.Button,{...n,onClick:m,disabled:c.status,className:_t["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&a.jsx(st,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),l&&a.jsx(st,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),f&&a.jsx(st,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},tm=({title:e,description:t,style:r,mode:n,className:o})=>a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&a.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&a.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),rm=({coupon:e,...t})=>{const{CONSTANTS:r}=De();return a.jsx(b.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},nm=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=De();if(t==="countdown")return a.jsx(Qp,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const s=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:Ye.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?a.jsx(em,{coupon:e.coupon,mode:s,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const s=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?a.jsx(rm,{coupon:e.coupon,mode:s}):null}return a.jsx(tm,{title:o,description:n,mode:i,className:r})},Ia=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=De();return a.jsx(b.Button,{title:"fechar tipbar",className:_t["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:a.jsx(b.Icon,{name:r.ICONS.close})}})},om=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=De(),s=P.useRef(null),c=(l,p)=>{var f,d;l.stopPropagation(),l.preventDefault(),p==="prev"?(f=o.controller)==null||f.prevPage():(d=o.controller)==null||d.nextPage(),s.current&&(clearInterval(s.current),u())},u=P.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);s.current=l}},[n,o]);return P.useEffect(()=>(u(),()=>{s.current&&clearInterval(s.current)}),[n,u]),a.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:_t.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&a.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"prev"),adornment:{start:a.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),a.jsx(b.Carousel.Body,{children:e}),r&&a.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"next"),adornment:{start:a.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},im=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:s,slideTranstionTimer:c,handleCloseTipbar:u}=De(),l=r&&s;return a.jsx("div",{style:i,"data-hasclosebtn":o,className:b.helpers.classNameConcat(_t.tipbar,t),children:r?a.jsxs(a.Fragment,{children:[a.jsx(om,{mode:n,showCarouselArrows:l,slideTranstionTimer:c,children:e}),o&&a.jsx(Ia,{handleCloseTipbar:u,showCarouselArrows:l,mode:n})]}):a.jsxs(a.Fragment,{children:[e,o&&a.jsx(Ia,{handleCloseTipbar:u,mode:n})]})})},am=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=De(),i=a.jsx("div",{...r,className:_t["tipbar-item"],children:e});return n?a.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},yu=({className:e})=>{const{isOpen:t,slices:r}=De();return r.length&&t?a.jsx(im,{children:r.map((n,o)=>{var i;return a.jsx(a.Fragment,{children:a.jsx(pt,{href:n.link,children:a.jsx(am,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((s,c)=>a.jsx(nm,{staticZone:n,type:s.type,title:s.title,description:s.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};yu.displayName="TipBar.Root";const _u=({className:e,...t})=>a.jsx(Xp,{...t,children:a.jsx(yu,{className:e})});_u.displayName="TipBar";const sm="_container_1sy8s_16",Be={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:sm,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},cm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return a.jsxs("div",{className:Be["add-itens-to-cart-container"],children:[a.jsxs("div",{className:Be["add-itens-to-cart-container-values"],children:[a.jsx("div",{className:Be["add-itens-to-cart-qty-products"],children:a.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),a.jsx("div",{className:Be["add-itens-to-cart-total"],children:a.jsx("span",{children:oo({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),a.jsx(b.Button,{onClick:t,className:Be["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},um=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,s=r.node.isVariantOf.hasVariant;i&&s&&(n.node.isVariantOf.hasVariant=[...i,...s])}return t},[]),lm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:l,...p}=o;return{...r,totalPrice:i-l.price,products:p}}const s=ao(e.offers.offers,n);if(!s)return r;const c=s.seller.identifier,u=s.price;if(o[t]){const{price:l}=o[t];return o[t]={...o[t],price:u,id:e.sku,seller:c},{totalPrice:i+u-l,products:{...o}}}return{totalPrice:i+u,products:{...o,[t]:{id:e.sku,price:u,seller:c,productId:t}}}}catch(s){return console.error("Error handling SKU selection:",s),r}},dm="_carousel_245ib_1",fm="_shelf__container_245ib_14",pm="_shelf_without_carousel_245ib_34",at={carousel:dm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:fm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:pm},Na=({title:e})=>a.jsx("div",{className:at.shelf__container,children:e&&a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{children:[a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-body-md",Ue.responsive["responsive-mobile-flex"]),children:e}),a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Ue.responsive["responsive-desktop-flex"]),children:e})]})})}),mm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Ie(),i=r[o?"mobile":"desktop"],{initialize:s,controller:c,itemsStyles:u,pagination:l}=b.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=P.Children.toArray(e).length;return o||p>=4?a.jsxs(b.Carousel.Root,{innerRef:d=>{s(d)},className:at.carousel,children:[a.jsxs("div",{className:at["custom-controllers"],children:[n&&a.jsx(Na,{title:n}),i<p&&a.jsxs(b.Carousel.Controller,{className:at["controllers-arrows-bullets"],children:[a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&a.jsx(b.Carousel.Bullets,{page:l.currentPage,total:l.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),a.jsx(b.Carousel.Body,{children:P.Children.map(e,(d,m)=>a.jsx(b.Carousel.Item,{style:{...u,overflow:"hidden"},children:d},`${n}_${m}`))})]}):a.jsxs(a.Fragment,{children:[n&&a.jsx(Na,{title:n}),a.jsx("div",{className:at.shelf_without_carousel,children:e})]})},hm={Shelf:mm},gm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=P.useMemo(()=>um(r),[r]),{isMobile:s}=Ie(),{addItemsToCart:c}=He(),{sendDataLayerEvent:u}=ge(),{getAvailableProductTag:l}=no(),[p,f]=P.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(p.products);c(h),u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(v=>v.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:p.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=lm({selectedProduct:h,productId:y,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});f(g)};return P.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;u({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),a.jsxs("div",{className:Be.container,ref:n,children:[a.jsx("div",{className:Be["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:a.jsx(hm.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var A,_,S;const g=l(h.cluster.highlights),{availability:{status:v}}=h;return v?a.jsxs(we.Root,{item:{...h,image:mo.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:s,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[a.jsx(we.Header,{product:h,tag:g.commercial}),a.jsx(we.Media,{}),a.jsxs(we.Wrapper,{type:"body",children:[a.jsx(we.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(S=g.institucional)==null?void 0:S.icon}}),a.jsx(we.Actions,{children:a.jsx(we.SizeSelector,{callback:C=>m({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),a.jsx("div",{className:Be["add-cart-container"],children:a.jsx(cm,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},ym=({page:e,data:t})=>{const{pathname:r}=Me(),n=P.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:s,promotionEventRef:c}=ge();return P.useEffect(()=>{const u=Ks("login_event")||"{}",l=JSON.parse(u);if(l.name||l.method){const p=new Date(0);o({functionKey:"readyEvents",data:{event:l.name,readyData:{method:l.method}}}),Xs("login_event","",{expires:p})}},[]),P.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const p=t,f={};if(!p){u={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:m})=>f[d]=m[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:f,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:f,id:d,name:m}=es(),h=m,y=d;u={page_category:"lista_produtos",...f&&{page_departament:f}},s.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},f&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:f}}});break}default:u={page_category:e},c.current={},s.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var Zn={exports:{}},Dt={exports:{}},Oa;function _m(){return Oa||(Oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(u,l){for(var p in l)Object.defineProperty(u,p,{enumerable:!0,get:l[p]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:p}=u;const f=document.createElement(l);for(const h in p){if(!p.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||p[h]===void 0)continue;const y=n[h]||h.toLowerCase();l==="script"&&(y==="async"||y==="defer"||y==="noModule")?f[y]=!!p[h]:f.setAttribute(y,p[h])}const{children:d,dangerouslySetInnerHTML:m}=p;return m?f.innerHTML=m.__html||"":d&&(f.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),f}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const p=l.getAttribute("nonce");if(p&&!u.getAttribute("nonce")){const f=l.cloneNode(!0);return f.setAttribute("nonce",""),f.nonce=p,p===u.nonce&&u.isEqualNode(f)}}return u.isEqualNode(l)}let s;process.env.__NEXT_STRICT_NEXT_HEAD?s=(u,l)=>{const p=document.querySelector("head");if(!p)return;const f=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(u==="meta"){const y=p.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<f.length;y++){var m;const v=f[y].nextSibling;(v==null||(m=v.tagName)==null?void 0:m.toLowerCase())===u&&d.push(v)}const h=l.map(o).filter(y=>{for(let g=0,v=d.length;g<v;g++){const A=d[g];if(i(A,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const v=y.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var A;(A=y.parentNode)==null||A.removeChild(v)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||p.appendChild(v),p.appendChild(y)})}:s=(u,l)=>{const p=document.getElementsByTagName("head")[0],f=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!f){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(f.content),m=[];for(let g=0,v=f.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===u&&m.push(v)}const y=l.map(o).filter(g=>{for(let v=0,A=m.length;v<A;v++){const _=m[v];if(i(_,g))return m.splice(v,1),!1}return!0});m.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>p.insertBefore(g,f)),f.content=(d-m.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:u=>{const l={};u.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const m=l[d.type]||[];m.push(d),l[d.type]=m});const p=l.title?l.title[0]:null;let f="";if(p){const{children:d}=p.props;f=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}f!==document.title&&(document.title=f),["meta","base","link","style","script"].forEach(d=>{s(d,l[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Dt,Dt.exports)),Dt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,j){for(var x in j)Object.defineProperty(C,x,{enumerable:!0,get:j[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return S}});const n=Re,o=Gt(),i=n._(Ba),s=o._(P),c=eu(),u=_m(),l=yc(),p=new Map,f=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=C=>{if(i.default.preinit){C.forEach(j=>{i.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,j.appendChild(I)})}},h=C=>{const{src:j,id:x,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:E,children:N="",strategy:k="afterInteractive",onError:B,stylesheets:R}=C,q=x||j;if(q&&f.has(q))return;if(p.has(j)){f.add(q),p.get(j).then(I,B);return}const F=()=>{$&&$(),f.add(q)},U=document.createElement("script"),K=new Promise((G,z)=>{U.addEventListener("load",function(ne){G(),I&&I.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(G){B&&B(G)});E?(U.innerHTML=E.__html||"",F()):N?(U.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",F()):j&&(U.src=j,p.set(j,K));for(const[G,z]of Object.entries(C)){if(z===void 0||d.includes(G))continue;const ne=u.DOMAttributeNames[G]||G.toLowerCase();U.setAttribute(ne,z)}k==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",k),R&&m(R),document.body.appendChild(U)};function y(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,l.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");f.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:I=()=>{},onReady:$=null,strategy:E="afterInteractive",onError:N,stylesheets:k,...B}=C,{updateScripts:R,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,s.useContext)(c.HeadManagerContext),G=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const ne=j||x;G.current||($&&ne&&f.has(ne)&&$(),G.current=!0)},[$,j,x]);const z=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{z.current||(E==="afterInteractive"?h(C):E==="lazyOnload"&&g(C),z.current=!0)},[C,E]),(E==="beforeInteractive"||E==="worker")&&(R?(q[E]=(q[E]||[]).concat([{id:j,src:x,onLoad:I,onReady:$,onError:N,...B}]),R(q)):F&&F()?f.add(j||x):F&&!F()&&h(C)),U){if(k&&k.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return x?(i.default.preload(x,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));E==="afterInteractive"&&x&&i.default.preload(x,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const S=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Zn,Zn.exports);var vm=Zn.exports,bm=vm;const xm=Wt(bm),Cm=({children:e,ONE_TRUST:t})=>a.jsxs(a.Fragment,{children:[a.jsx(xm,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Sm=bo(()=>Promise.resolve(Cm),{ssr:!1}),vu=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?a.jsx(Pe,{href:n,children:e}):e},Am={teamComponents:{AddToCart:ho,BackToTop:td,BuyPackage:gm,...Up,FreightCalculation:Rf,Header:Lc,Link:tt,Media:ke,ProductCard:we,TipBar:_u},template:{pdp:Kp},utils:{EventCollector:ym,ExternalScripts:Sm,LinkOrNotLink:pt,ObserverWrapper:Xt,SnackBarComponent:st,DraftJsLinkWrapper:vu}},Em=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
40
+ */const c=a(357),l=(S,I,$)=>{if(c(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||S===I)return String(S);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...$};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let N=String(E.relaxZeros),k=String(E.shorthand),B=String(E.capture),w=String(E.wrap),q=S+":"+I+"="+N+k+B+w;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let z=Math.min(S,I),U=Math.max(S,I);if(Math.abs(z-U)===1){let j=S+"|"+I;return E.capture?`(${j})`:E.wrap===!1?j:`(?:${j})`}let K=x(S)||x(I),W={min:S,max:I,a:z,b:U},F=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),z<0){let j=U<0?Math.abs(U):1;ne=d(j,Math.abs(z),W,E),z=W.a=0}return U>=0&&(F=d(z,U,W,E)),W.negatives=ne,W.positives=F,W.result=u(ne,F),E.capture===!0?W.result=`(${W.result})`:E.wrap!==!1&&F.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(S,I,$){let E=m(S,I,"-",!1)||[],N=m(I,S,"",!1)||[],k=m(S,I,"-?",!0)||[];return E.concat(k).concat(N).join("|")}function f(S,I){let $=1,E=1,N=v(S,$),k=new Set([I]);for(;S<=N&&N<=I;)k.add(N),$+=1,N=v(S,$);for(N=A(I+1,E)-1;S<N&&N<=I;)k.add(N),E+=1,N=A(I+1,E)-1;return k=[...k],k.sort(y),k}function p(S,I,$){if(S===I)return{pattern:S,count:[],digits:0};let E=h(S,I),N=E.length,k="",B=0;for(let w=0;w<N;w++){let[q,z]=E[w];q===z?k+=q:q!=="0"||z!=="9"?k+=C(q,z):B++}return B&&(k+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[B],digits:N}}function d(S,I,$,E){let N=f(S,I),k=[],B=S,w;for(let q=0;q<N.length;q++){let z=N[q],U=p(String(B),String(z),E),K="";if(!$.isPadded&&w&&w.pattern===U.pattern){w.count.length>1&&w.count.pop(),w.count.push(U.count[0]),w.string=w.pattern+_(w.count),B=z+1;continue}$.isPadded&&(K=P(z,$,E)),U.string=K+U.pattern+_(U.count),k.push(U),B=z+1,w=U}return k}function m(S,I,$,E,N){let k=[];for(let B of S){let{string:w}=B;!E&&!g(I,"string",w)&&k.push($+w),E&&g(I,"string",w)&&k.push($+w)}return k}function h(S,I){let $=[];for(let E=0;E<S.length;E++)$.push([S[E],I[E]]);return $}function y(S,I){return S>I?1:I>S?-1:0}function g(S,I,$){return S.some(E=>E[I]===$)}function v(S,I){return Number(String(S).slice(0,-I)+"9".repeat(I))}function A(S,I){return S-S%Math.pow(10,I)}function _(S){let[I=0,$=""]=S;return $||I>1?`{${I+($?","+$:"")}}`:""}function C(S,I,$){return`[${S}${I-S===1?"":"-"}${I}]`}function x(S){return/^-?(0+)\d/.test(S)}function P(S,I,$){if(!I.isPadded)return S;let E=Math.abs(I.maxLen-String(S).length),N=$.relaxZeros!==!1;switch(E){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${E}}`:`0{${E}}`}}l.cache={},l.clearCache=()=>l.cache={},o.exports=l},17:o=>{o.exports=hp},837:o=>{o.exports=Yp()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},c=!0;try{e[o](a,a.exports,r),c=!1}finally{c&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Dr.exports=n})()),Dr.exports}var Ia;function Jp(){return Ia||(Ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=Zp();function n(i,a){if(i.protocol!==void 0){const l=a.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
+ `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function o(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Lr)),Lr}var Na;function vl(){return Na||(Na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let u;try{u=new URL(i)}catch(f){throw console.error(f),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:f}=Jp();if(!f(o.domains,o.remotePatterns,u))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(kr)),kr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Re,o=et._(R),i=r._(za),a=r._(pp()),c=Ao,l=Xt,u=mp(),f=ht,p=Ec(),d=r._(vl()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,C,x,P,S,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(C!=="empty"&&S(!0),x!=null&&x.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let k=!1,B=!1;x.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>k,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{k=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(P!=null&&P.current&&P.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:w}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(w)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+w+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const k=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(k&&!B||!k&&B)&&(0,f.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[C,x]=o.version.split("."),P=parseInt(C,10),S=parseInt(x,10);return P>18||P===18&&S>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,C)=>{let{src:x,srcSet:P,sizes:S,height:I,width:$,decoding:E,className:N,style:k,fetchPriority:B,placeholder:w,loading:q,unoptimized:z,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:F,setShowAltText:ne,onLoad:j,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:I,decoding:E,"data-nimg":U?"fill":"1",className:N,style:k,sizes:S,srcSet:P,src:x,ref:(0,o.useCallback)(X=>{C&&(typeof C=="function"?C(X):typeof C=="object"&&(C.current=X)),X&&(T&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(x||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,w,K,W,F,z))},[x,w,K,W,F,T,z,C]),onLoad:X=>{const te=X.currentTarget;h(te,w,K,W,F,z)},onError:X=>{ne(!0),w!=="empty"&&F(!0),T&&T(X)}})});function v(_){let{isAppRouter:C,imgAttributes:x}=_;const P={as:"image",imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:x.crossOrigin,referrerPolicy:x.referrerPolicy,...y(x.fetchPriority)};return C&&i.default.preload?(i.default.preload(x.src,P),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+x.src+x.srcSet+x.sizes,rel:"preload",href:x.srcSet?void 0:x.src,...P}))}const A=(0,o.forwardRef)((_,C)=>{const P=!(0,o.useContext)(p.RouterContext),S=(0,o.useContext)(u.ImageConfigContext),I=(0,o.useMemo)(()=>{const W=m||S||l.imageConfigDefault,F=[...W.deviceSizes,...W.imageSizes].sort((j,T)=>j-T),ne=W.deviceSizes.sort((j,T)=>j-T);return{...W,allSizes:F,deviceSizes:ne}},[S]),{onLoad:$,onLoadingComplete:E}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const k=(0,o.useRef)(E);(0,o.useEffect)(()=>{k.current=E},[E]);const[B,w]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:B,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:k,setBlurComplete:w,setShowAltText:z,ref:C}),K.priority?o.default.createElement(v,{isAppRouter:P,imgAttributes:U}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yn,Yn.exports);var em=Yn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Re,n=Ao,o=ht,i=em,a=r._(vl()),c=u=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},l=i.Image})(sl);var tm=sl;const Oa=Gt(tm),rm=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?s.jsxs(Ie,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Oa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]}):s.jsxs("div",{className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Oa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]})},nm=({content:e,CONSTANTS:t})=>s.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>s.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[s.jsxs("div",{className:pe["support-text"],children:[r.title&&s.jsx("h3",{children:r.title}),r.description&&s.jsx("p",{children:r.description})]}),r.items.length&&s.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>s.jsx(rm,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),om=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:s.jsxs(b.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[s.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[s.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&s.jsx("div",{children:e})]}),s.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),im=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>s.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[s.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:s.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:s.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[s.jsx(b.Icon,{name:`${t}`,size:"medium"}),s.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),s.jsx(b.Accordion.Body,{title:"accordion-body",children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Bn=e=>{const{isMobile:t}=we();return t?s.jsx(im,{...e}):s.jsx(om,{...e})},Lt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Ne();switch(e){case"menu":v=s.jsx(Ie,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:s.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=s.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,s.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,s.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((C,x)=>s.jsx(_,{alt:C,src:`/assets/${C}.svg`,width:c??20,height:c??20},x))})]})]});break;case"social-media":v=s.jsx("div",{className:pe.footer__iconContainer,...g,children:s.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((C,x)=>s.jsx(Ie,{prefetch:!1,href:C.link??"#",target:"_blank",children:s.jsx(b.Icon,{size:"medium",name:C.icon,onClick:()=>A({content:`footer:redes-sociais:${C.icon}`})})},x))})});break;default:v=s.jsx("div",{className:r,...g,children:t})}return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:s.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},am=({className:e,text:t,...r})=>s.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),bl=()=>{const{nextimage:e}=Ne();return s.jsx("div",{className:pe["footer--stamps"],children:s.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};bl.displayName="Footer.Stamps";const xl=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=we(),a=R.Children.toArray(e).filter(Boolean),c=a.length;return s.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&s.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&s.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>s.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&s.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&s.jsx("div",{className:pe.footer__legalText,children:t})]})};xl.displayName="Footer.Wrapper";const Cl=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(xl,{adornment:o,legalTextSlot:s.jsx(am,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>s.jsx(Bn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>s.jsx(Lt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},p))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(Bn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(Lt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),s.jsxs(Bn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(Lt,{children:r==null?void 0:r.subTitle}):null,s.jsx(Lt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(bl,{})]})]})};Cl.displayName="Footer";const sm=Object.freeze(Object.defineProperty({__proto__:null,Footer:Cl,FooterSupport:nm},Symbol.toStringTag,{value:"Module"})),Ta=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Qa(e.imageUrl,n.pdp),{nextimage:i}=Ne();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},cm=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=R.useRef(!1);return s.jsx(Le.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},lm={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Sl=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var u,f;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return s.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:lm["gallery-carousel-modifier"],children:[s.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:s.jsx(b.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),s.jsxs(b.Carousel.Body,{children:[s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ta,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&s.jsx(b.Carousel.Item,{style:l,children:s.jsx(cm,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ta,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Sl.displayName="PDP.Carousel";const um=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=lo(),[o,i]=R.useState({show:!1,initialIndex:0});R.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=c=>{i({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Sl,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Al=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=lo(),n=R.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(um,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Al.displayName="PDP.Gallery";const dm=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Al},Symbol.toStringTag,{value:"Module"})),fm="_container_1sy8s_16",qe={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:fm,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},pm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:qe["add-itens-to-cart-container"],children:[s.jsxs("div",{className:qe["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:qe["add-itens-to-cart-qty-products"],children:s.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),s.jsx("div",{className:qe["add-itens-to-cart-total"],children:s.jsx("span",{children:ao({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(b.Button,{onClick:t,className:qe["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},mm=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(n.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),hm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:u,...f}=o;return{...r,totalPrice:i-u.price,products:f}}const a=co(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(o[t]){const{price:u}=o[t];return o[t]={...o[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...o}}}return{totalPrice:i+l,products:{...o,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},gm="_carousel_245ib_1",ym="_shelf__container_245ib_14",_m="_shelf_without_carousel_245ib_34",ct={carousel:gm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:ym,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:_m},Ma=({title:e})=>s.jsx("div",{className:ct.shelf__container,children:e&&s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{children:[s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-body-md",Te.responsive["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Te.responsive["responsive-desktop-flex"]),children:e})]})})}),vm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=we(),i=r[o?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=b.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=R.Children.toArray(e).length;return o||f>=4?s.jsxs(b.Carousel.Root,{innerRef:d=>{a(d)},className:ct.carousel,children:[s.jsxs("div",{className:ct["custom-controllers"],children:[n&&s.jsx(Ma,{title:n}),i<f&&s.jsxs(b.Carousel.Controller,{className:ct["controllers-arrows-bullets"],children:[s.jsxs(b.Carousel.Arrows,{children:[s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(b.Icon,{name:t.arrow_left})}}),s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(b.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&s.jsx(b.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),s.jsx(b.Carousel.Body,{children:R.Children.map(e,(d,m)=>s.jsx(b.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${m}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(Ma,{title:n}),s.jsx("div",{className:ct.shelf_without_carousel,children:e})]})},bm={Shelf:vm},xm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=R.useMemo(()=>mm(r),[r]),{isMobile:a}=we(),{addItemsToCart:c}=Fe(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=io(),[f,p]=R.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(v=>v.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=hm({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return R.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),s.jsxs("div",{className:qe.container,ref:n,children:[s.jsx("div",{className:qe["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(bm.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var A,_,C;const g=u(h.cluster.highlights),{availability:{status:v}}=h;return v?s.jsxs(je.Root,{item:{...h,image:yo.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[s.jsx(je.Header,{product:h,tag:g.commercial}),s.jsx(je.Media,{}),s.jsxs(je.Wrapper,{type:"body",children:[s.jsx(je.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(C=g.institucional)==null?void 0:C.icon}}),s.jsx(je.Actions,{children:s.jsx(je.SizeSelector,{callback:x=>m({selectedProduct:x,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:qe["add-cart-container"],children:s.jsx(pm,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Cm=({page:e,data:t})=>{const{pathname:r}=Ne(),n=R.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return R.useEffect(()=>{const l=rc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);o({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),nc("login_event","",{expires:f})}},[]),R.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,p={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=os(),h=m,y=d;l={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Zn={exports:{}},Dt={exports:{}},ka;function Sm(){return ka||(ka=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(l){let{type:u,props:f}=l;const p=document.createElement(u);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const v=p[y].nextSibling;(v==null||(m=v.tagName)==null?void 0:m.toLowerCase())===l&&d.push(v)}const h=u.map(o).filter(y=>{for(let g=0,v=d.length;g<v;g++){const A=d[g];if(i(A,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const v=y.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var A;(A=y.parentNode)==null||A.removeChild(v)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(v),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,v=p.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===l&&m.push(v)}const y=u.map(o).filter(g=>{for(let v=0,A=m.length;v<A;v++){const _=m[v];if(i(_,g))return m.splice(v,1),!1}return!0});m.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const m=u[d.type]||[];m.push(d),u[d.type]=m});const f=u.title?u.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(d=>{a(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Dt,Dt.exports)),Dt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(x,P){for(var S in P)Object.defineProperty(x,S,{enumerable:!0,get:P[S]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return C}});const n=Re,o=et,i=n._(za),a=o._(R),c=ll(),l=Sm(),u=Rc(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=x=>{if(i.default.preinit){x.forEach(P=>{i.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;x.forEach(S=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=S,P.appendChild(I)})}},h=x=>{const{src:P,id:S,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:E,children:N="",strategy:k="afterInteractive",onError:B,stylesheets:w}=x,q=S||P;if(q&&p.has(q))return;if(f.has(P)){p.add(q),f.get(P).then(I,B);return}const z=()=>{$&&$(),p.add(q)},U=document.createElement("script"),K=new Promise((W,F)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),z()}),U.addEventListener("error",function(ne){F(ne)})}).catch(function(W){B&&B(W)});E?(U.innerHTML=E.__html||"",z()):N?(U.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",z()):P&&(U.src=P,f.set(P,K));for(const[W,F]of Object.entries(x)){if(F===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,F)}k==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",k),w&&m(w),document.body.appendChild(U)};function y(x){const{strategy:P="afterInteractive"}=x;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(x))}):h(x)}function g(x){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(x)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(x))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const S=P.id||P.getAttribute("src");p.add(S)})}function A(x){x.forEach(y),v()}function _(x){const{id:P,src:S="",onLoad:I=()=>{},onReady:$=null,strategy:E="afterInteractive",onError:N,stylesheets:k,...B}=x,{updateScripts:w,scripts:q,getIsSsr:z,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||S;W.current||($&&ne&&p.has(ne)&&$(),W.current=!0)},[$,P,S]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(E==="afterInteractive"?h(x):E==="lazyOnload"&&g(x),F.current=!0)},[x,E]),(E==="beforeInteractive"||E==="worker")&&(w?(q[E]=(q[E]||[]).concat([{id:P,src:S,onLoad:I,onReady:$,onError:N,...B}]),w(q)):z&&z()?p.add(P||S):z&&!z()&&h(x)),U){if(k&&k.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return S?(i.default.preload(S,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([S])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));E==="afterInteractive"&&S&&i.default.preload(S,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const C=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Zn,Zn.exports);var Am=Zn.exports,Em=Am;const Rm=Gt(Em),wm=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(Rm,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),jm=So(()=>Promise.resolve(wm),{ssr:!1}),Pm={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},lt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...c})=>s.jsxs(b.SnackBar.Structure,{...c,size:e,className:b.helpers.classNameConcat(Pm["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[s.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&s.jsx(b.SnackBar.Support,{children:o})]});lt.displayName="SnackBar";const El=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?s.jsx(Ie,{href:n,children:e}):e},Im={teamComponents:{AddToCart:_o,BackToTop:yd,BuyPackage:xm,...sm,FreightCalculation:zf,Header:Gc,Link:nt,Media:Le,ProductCard:je},template:{pdp:dm},utils:{EventCollector:Cm,ExternalScripts:jm,LinkOrNotLink:mt,ObserverWrapper:Kt,SnackBarComponent:lt,DraftJsLinkWrapper:El}},Nm=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
42
42
  `);return`
43
43
  import type { NextRequest } from 'next/server'
44
44
  import { NextResponse } from 'next/server'
@@ -78,4 +78,4 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
78
78
  ${r}
79
79
  ]
80
80
  }
81
- `},Rm=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Em},Symbol.toStringTag,{value:"Module"})),wm={helpers:Rm},jm=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},qt=e=>{const t=new Te.CompositeDecorator([{strategy:jm,component:vu}]),r=Te.convertFromRaw(e);return Te.EditorState.createWithContent(r,t)},Pm=e=>Te.convertFromRaw(e),Ht=Te.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ta="superior-direita",$t="dentro-inferior-centro",Im="inferior-direita",qn="dentro-inferior-esquerda",bu=e=>({position:e===$t||e===qn?"absolute":"default",shouldRender:[Ta,$t,qn].includes(e)?"top":"bottom",alignItems:[$t].includes(e)?"center":[Ta,Im].includes(e)?"flex-end":"flex-start",left:e===qn?"16px":e===$t?"45%":"unset"}),Nm=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:qt,EXTENDED_BLOCK_RENDER_MAP:Ht,GET_CONTENT_STATE:Pm,controllersPositionsAdapter:bu},Symbol.toStringTag,{value:"Module"})),Xe=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Om=({expanded:e,content:t})=>a.jsxs("details",{open:e,children:[t.textStructureReduced?a.jsx("summary",{onClick:r=>r.preventDefault(),children:a.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t!=null&&t.textStructureReduced?qt(JSON.parse(t.textStructureReduced)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{}),t.showTextStructureExpander&&t.textStructure?a.jsx(a.Fragment,{children:a.jsx(Te.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t.textStructure?qt(JSON.parse(t.textStructure)):Te.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):a.jsx(a.Fragment,{})]}),Jn={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Tm="_textContentWrapper_1bigo_5",Mm="_textContentSection_1bigo_13",eo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Tm,textContentSection:Mm},xu=({data:e,ICONS:t})=>{var o;const[r,n]=P.useState(!1);return a.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)},columnWrapper:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?a.jsx(b.Button,{variant:"tertiary",adornment:{end:a.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):a.jsx(a.Fragment,{})},children:a.jsxs(b.Utils.Column,{className:eo.textContentWrapper,style:{alignItems:Xe(e.textStructureAlignment)},children:[a.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Xe(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Jn["draftjs-text-modifier"],children:e.textStructureReduced?a.jsx(Om,{content:e,expanded:r}):a.jsx(a.Fragment,{})}),e.textStructureButtonLabel?a.jsx(tt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:eo["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:a.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):a.jsx(a.Fragment,{})]})})},km=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],Ma=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ka={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},La=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:s,image:c,imageHref:u,imageOpacity:l,altImage:p,backgroundColor:f,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(u==null?void 0:u.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Me();return a.jsxs(b.Banner.Container,{...i,children:[a.jsxs(b.Banner.ImageWrapper,{className:ka["banner-image-wrapper-modifier"],style:l?{background:f}:void 0,children:[s&&a.jsx(ke.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(s!=null&&s.length)&&a.jsx(j,{src:C,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!c&&!(s!=null&&s.length)&&a.jsx("div",{style:{background:f}})]}),h||S||_?a.jsx(b.Banner.Slot,{...km(d??"centro"),className:ka["content-modifier"],style:{textAlign:Ma(m)},children:a.jsxs(b.Utils.Column,{gap:"16px",alignItems:Ma(m),children:[h&&y==="timer-first"&&a.jsx(Yn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),a.jsx(xu,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&a.jsx(Yn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):a.jsx(a.Fragment,{})]})},Ro=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:s}=ge(),{banner:{promotion_name:c},index:u,componentIndex:l}=e,p=typeof u=="number"?`:${u+1}`:"",f={creative_name:n,creative_slot:`${n}-${s.current}:${l+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=P.useRef(null),m=P.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),A=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),_=A==null?void 0:A.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return a.jsx(Xt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...f,index:u}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?a.jsx(Pe,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:f,index:u})},children:a.jsx(La,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):a.jsx(La,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},Cu=e=>a.jsx(Ro,{...e}),to={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Lm(e,t){const{mediatorRef:r}=Ie();P.useEffect(()=>r.current.subscribe(e,t),[e,t])}const Da=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:s,left:c,isFirst:u,ICONS:l})=>{const[p,f]=P.useState("default");return Lm("herobanner:change_controllers_variant",d=>{u&&f(d.includes("white")?"inverse":"default")}),a.jsxs(b.Carousel.Controller,{className:to["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":s,bottom:"16px",top:"unset",left:c,children:[a.jsxs(b.Carousel.Arrows,{className:to["carrousel-arrows-display-controller"],children:[a.jsx(b.Button,{variant:"tertiary",onClick:e,adornment:{start:a.jsx(b.Icon,{name:l.arrow_left})},mode:p}),a.jsx(b.Button,{variant:"tertiary",onClick:t,adornment:{start:a.jsx(b.Icon,{name:l.arrow_right})},mode:p})]}),a.jsx(b.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:p})]})},Dm=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=Ie();return t.data.first?a.jsx(Xt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):a.jsx(a.Fragment,{children:e})},$m=({data:e,ICONS:t})=>{var f;const{initialize:r,pagination:n,controller:o,itemsStyles:i}=b.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),s=P.useRef(void 0),c=P.useMemo(()=>bu(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),u=P.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(s.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),l=P.useCallback(d=>{clearInterval(s.current),u(),d()},[u]),p=P.useMemo(()=>{var d;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:m=>l(()=>o==null?void 0:o.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,l,o]);return P.useEffect(()=>(u(),()=>clearInterval(s.current)),[u]),a.jsxs(b.Carousel.Root,{innerRef:d=>{r(d)},className:b.helpers.classNameConcat(to["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?a.jsx(Da,{ICONS:t,...p,isFirst:e.data.first}):a.jsx(a.Fragment,{}),a.jsx(b.Carousel.Body,{children:(f=e==null?void 0:e.data)==null?void 0:f.banners.map((d,m)=>a.jsx(b.Carousel.Item,{style:i,children:a.jsx(Dm,{data:e,banner:d,children:a.jsx(Ro,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?a.jsx(Da,{ICONS:t,...p}):a.jsx(a.Fragment,{})]})},Bm={Banner:Cu},nt={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},qm=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=Ie(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:s,controller:c,itemsStyles:u}=b.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(l=e==null?void 0:e.config)==null?void 0:l.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return a.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:a.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(nt["carousel-modifier"],"common-section"),children:[n==="medium"?a.jsxs(b.TextStructure.Root,{children:[a.jsx(b.TextStructure.DivWrapper,{className:nt["carousel-title-modifier"],children:a.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&s.totalPages>1?a.jsx(b.Carousel.Controller,{className:nt["row-controller-modifier"],children:a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):a.jsx(a.Fragment,{})]}):a.jsx(a.Fragment,{}),a.jsx(b.Carousel.Body,{children:e.bennefit.map((p,f)=>a.jsx(b.Carousel.Item,{className:nt["card-modifier"],style:u,children:a.jsx(b.Card,{stroke:!0,padding:"small",children:a.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:a.jsx(b.Icon,{name:p.icon,size:n==="medium"?"medium":"small"})},children:a.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[a.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?a.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):a.jsx(a.Fragment,{})]})})})},`bennefit=${f}`))}),!r&&s.totalPages>1?a.jsxs(b.Carousel.Controller,{className:nt["row-controller-modifier"],children:[a.jsxs(b.Carousel.Arrows,{children:[a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),a.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:a.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),a.jsx(b.Carousel.Bullets,{page:s.currentPage,total:s.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):a.jsx(a.Fragment,{})]})})},Hm=({data:e,ICONS:t})=>a.jsx("div",{className:b.helpers.classNameConcat(eo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:a.jsx(xu,{data:e,ICONS:t})}),$a={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},zm=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=P.useState([]);return a.jsxs(b.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{children:a.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):a.jsx(a.Fragment,{}),(i=e.accordions)==null?void 0:i.map((s,c)=>a.jsxs(b.Accordion.Wrapper,{className:$a["accordion-modifier"],children:[a.jsx(b.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:a.jsx(b.Icon,{name:r.arrow_down}),closeIndicator:a.jsx(b.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(u=>u.includes(c)?u.filter(l=>l!==c):[...u,c]),children:a.jsx(b.TextStructure.Root,{children:a.jsxs(b.TextStructure.DivWrapper,{className:Jn["draftjs-text-modifier"],children:[a.jsx("h3",{className:"typography-style-body-md-strong",children:s.title}),s.subtitle&&s.subtitle.length?a.jsx("h2",{children:s.subtitle}):a.jsx(a.Fragment,{})]})})}),a.jsx(b.Accordion.Body,{children:a.jsx(b.TextStructure.Root,{children:a.jsx(b.TextStructure.DivWrapper,{className:b.helpers.classNameConcat($a["accordion-body-modifier"],Jn["draftjs-text-modifier"]),children:a.jsx(Te.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Ht,editorState:s.text?qt(JSON.parse(s.text)):Te.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Fm={Banner:Bm,BannerSection:Ro,BennefitsBarSection:qm,SingleBannerSection:Cu,TextContentSection:Hm,BannerCarousel:$m,TextAccordionSection:zm},Um={Components:Fm,helpers:Nm};exports.cms=Um;exports.contexts=Ll;exports.data=mo;exports.layout=Am;exports.scripts=wm;
81
+ `},Om=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Nm},Symbol.toStringTag,{value:"Module"})),Tm={helpers:Om},Mm=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},qt=e=>{const t=new ke.CompositeDecorator([{strategy:Mm,component:El}]),r=ke.convertFromRaw(e);return ke.EditorState.createWithContent(r,t)},km=e=>ke.convertFromRaw(e),Ht=ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),La="superior-direita",$t="dentro-inferior-centro",Lm="inferior-direita",qn="dentro-inferior-esquerda",Rl=e=>({position:e===$t||e===qn?"absolute":"default",shouldRender:[La,$t,qn].includes(e)?"top":"bottom",alignItems:[$t].includes(e)?"center":[La,Lm].includes(e)?"flex-end":"flex-start",left:e===qn?"16px":e===$t?"45%":"unset"}),Dm=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:qt,EXTENDED_BLOCK_RENDER_MAP:Ht,GET_CONTENT_STATE:km,controllersPositionsAdapter:Rl},Symbol.toStringTag,{value:"Module"})),Xe=e=>({centro:"center",esquerda:"start",direita:"end"})[e],$m=({expanded:e,content:t})=>s.jsxs("details",{open:e,children:[t.textStructureReduced?s.jsx("summary",{onClick:r=>r.preventDefault(),children:s.jsx(ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t!=null&&t.textStructureReduced?qt(JSON.parse(t.textStructureReduced)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{}),t.showTextStructureExpander&&t.textStructure?s.jsx(s.Fragment,{children:s.jsx(ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t.textStructure?qt(JSON.parse(t.textStructure)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),Jn={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Bm="_textContentWrapper_1bigo_5",qm="_textContentSection_1bigo_13",eo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Bm,textContentSection:qm},wl=({data:e,ICONS:t})=>{var o;const[r,n]=R.useState(!1);return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)},columnWrapper:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?s.jsx(b.Button,{variant:"tertiary",adornment:{end:s.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):s.jsx(s.Fragment,{})},children:s.jsxs(b.Utils.Column,{className:eo.textContentWrapper,style:{alignItems:Xe(e.textStructureAlignment)},children:[s.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Xe(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Jn["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx($m,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(nt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:eo["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:s.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):s.jsx(s.Fragment,{})]})})},Hm=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],Da=e=>({centro:"center",esquerda:"start",direita:"end"})[e],to=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=R.useState(oc(new No.TZDate(Date.now(),r),new No.TZDate(e,r))),[a,c]=R.useState(!1);R.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(o<=0){clearInterval(u);return}i(o-1e3)},1e3);return()=>{clearInterval(u)}},[o,i,a]);const l=st(o,"days");return a&&o>0?s.jsxs(b.Timer.Root,{...n,children:[l?s.jsxs(s.Fragment,{children:[s.jsx(b.Timer.Digit,{label:"dias",value:l}),s.jsx(b.Timer.Separator,{})]}):null,s.jsx(b.Timer.Digit,{label:"horas",value:st(o,"hours")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"min",value:st(o,"minutes")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"segs",value:st(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},$a={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Ba=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:C}=e.banner,x=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=Ne();return s.jsxs(b.Banner.Container,{...i,children:[s.jsxs(b.Banner.ImageWrapper,{className:$a["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&s.jsx(Le.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),x&&!(a!=null&&a.length)&&s.jsx(P,{src:x,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&s.jsx("div",{style:{background:p}})]}),h||C||_?s.jsx(b.Banner.Slot,{...Hm(d??"centro"),className:$a["content-modifier"],style:{textAlign:Da(m)},children:s.jsxs(b.Utils.Column,{gap:"16px",alignItems:Da(m),children:[h&&y==="timer-first"&&s.jsx(to,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),s.jsx(wl,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&s.jsx(to,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},Po=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=R.useRef(null),m=R.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),A=v==null?void 0:v.filter(C=>C.includes("loc")||C.includes("signature")||C.includes("user_id")),_=A==null?void 0:A.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return s.jsx(Kt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:l}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?s.jsx(Ie,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:p,index:l})},children:s.jsx(Ba,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):s.jsx(Ba,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},jl=e=>s.jsx(Po,{...e}),ro={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Fm(e,t){const{mediatorRef:r}=we();R.useEffect(()=>r.current.subscribe(e,t),[e,t])}const qa=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=R.useState("default");return Fm("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),s.jsxs(b.Carousel.Controller,{className:ro["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[s.jsxs(b.Carousel.Arrows,{className:ro["carrousel-arrows-display-controller"],children:[s.jsx(b.Button,{variant:"tertiary",onClick:e,adornment:{start:s.jsx(b.Icon,{name:u.arrow_left})},mode:f}),s.jsx(b.Button,{variant:"tertiary",onClick:t,adornment:{start:s.jsx(b.Icon,{name:u.arrow_right})},mode:f})]}),s.jsx(b.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:f})]})},zm=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=we();return t.data.first?s.jsx(Kt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):s.jsx(s.Fragment,{children:e})},Um=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:o,itemsStyles:i}=b.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=R.useRef(void 0),c=R.useMemo(()=>Rl(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=R.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),u=R.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=R.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>u(()=>o==null?void 0:o.prevPage()),onBulletClick:m=>u(()=>o==null?void 0:o.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,u,o]);return R.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),s.jsxs(b.Carousel.Root,{innerRef:d=>{r(d)},className:b.helpers.classNameConcat(ro["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?s.jsx(qa,{ICONS:t,...f,isFirst:e.data.first}):s.jsx(s.Fragment,{}),s.jsx(b.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>s.jsx(b.Carousel.Item,{style:i,children:s.jsx(zm,{data:e,banner:d,children:s.jsx(Po,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?s.jsx(qa,{ICONS:t,...f}):s.jsx(s.Fragment,{})]})},Gm={Banner:jl},it={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Wm=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=we(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=b.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return s.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:s.jsxs(b.Carousel.Root,{innerRef:f=>{i(f)},className:b.helpers.classNameConcat(it["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(b.TextStructure.Root,{children:[s.jsx(b.TextStructure.DivWrapper,{className:it["carousel-title-modifier"],children:s.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?s.jsx(b.Carousel.Controller,{className:it["row-controller-modifier"],children:s.jsxs(b.Carousel.Arrows,{children:[s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):s.jsx(s.Fragment,{})]}):s.jsx(s.Fragment,{}),s.jsx(b.Carousel.Body,{children:e.bennefit.map((f,p)=>s.jsx(b.Carousel.Item,{className:it["card-modifier"],style:l,children:s.jsx(b.Card,{stroke:!0,padding:"small",children:s.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:s.jsx(b.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:s.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[s.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?s.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):s.jsx(s.Fragment,{})]})})})},`bennefit=${p}`))}),!r&&a.totalPages>1?s.jsxs(b.Carousel.Controller,{className:it["row-controller-modifier"],children:[s.jsxs(b.Carousel.Arrows,{children:[s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),s.jsx(b.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):s.jsx(s.Fragment,{})]})})},Vm=({data:e,ICONS:t})=>s.jsx("div",{className:b.helpers.classNameConcat(eo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(wl,{data:e,ICONS:t})}),Ha={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},Km=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=R.useState([]);return s.jsxs(b.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):s.jsx(s.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>s.jsxs(b.Accordion.Wrapper,{className:Ha["accordion-modifier"],children:[s.jsx(b.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:s.jsx(b.Icon,{name:r.arrow_down}),closeIndicator:s.jsx(b.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{className:Jn["draftjs-text-modifier"],children:[s.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?s.jsx("h2",{children:a.subtitle}):s.jsx(s.Fragment,{})]})})}),s.jsx(b.Accordion.Body,{children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{className:b.helpers.classNameConcat(Ha["accordion-body-modifier"],Jn["draftjs-text-modifier"]),children:s.jsx(ke.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Ht,editorState:a.text?qt(JSON.parse(a.text)):ke.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Pl=R.createContext({}),Xm=({data:e,children:t,...r})=>{var h,y,g,v,A,_,C,x,P,S,I,$,E;const[n,o]=R.useState(!0),{initialize:i,controller:a,itemsStyles:c}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(_=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(x=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:x.backgroundColor,textColorVariant:(S=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:S.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},u=(E=l.content)==null?void 0:E.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{o(!1)},m=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:l.textColorVariant,fallback:"default"});return s.jsx(Pl.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},$e=()=>R.useContext(Pl),Qm=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return s.jsx(to,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Ym="_tipbar_bt3p0_1",Zm="_tipbar__carousel_bt3p0_15",vt={tipbar:Ym,tipbar__carousel:Zm,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Jm=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=$e(),{addCouponSeller:i,cartStore:a}=Fe(),[c,l]=R.useState({status:!1,showSnackBar:!1}),[u,f]=R.useState(!1),[p,d]=R.useState(!1),m=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return R.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),R.useEffect(()=>{u&&setTimeout(()=>{f(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[u]),R.useEffect(()=>{p&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[p]),s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...n,onClick:m,disabled:c.status,className:vt["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&s.jsx(lt,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&s.jsx(lt,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),p&&s.jsx(lt,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},eh=({title:e,description:t,style:r,mode:n,className:o})=>s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&s.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&s.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),th=({coupon:e,...t})=>{const{CONSTANTS:r}=$e();return s.jsx(b.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},rh=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=$e();if(t==="countdown")return s.jsx(Qm,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:Ye.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?s.jsx(Jm,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?s.jsx(th,{coupon:e.coupon,mode:a}):null}return s.jsx(eh,{title:o,description:n,mode:i,className:r})},Fa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return s.jsx(b.Button,{title:"fechar tipbar",className:vt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(b.Icon,{name:r.ICONS.close})}})},nh=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=$e(),a=R.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=o.controller)==null||p.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=R.useCallback(()=>{if(n&&o.controller){const u=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);a.current=u}},[n,o]);return R.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),s.jsxs(b.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:vt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&s.jsx(b.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:s.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),s.jsx(b.Carousel.Body,{children:e}),r&&s.jsx(b.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:s.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},oh=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=$e(),u=r&&a;return s.jsx("div",{style:i,"data-hasclosebtn":o,className:b.helpers.classNameConcat(vt.tipbar,t),children:r?s.jsxs(s.Fragment,{children:[s.jsx(nh,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),o&&s.jsx(Fa,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):s.jsxs(s.Fragment,{children:[e,o&&s.jsx(Fa,{handleCloseTipbar:l,mode:n})]})})},ih=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=s.jsx("div",{...r,className:vt["tipbar-item"],children:e});return n?s.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Il=({className:e})=>{const{isOpen:t,slices:r}=$e();return r.length&&t?s.jsx(oh,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(mt,{href:n.link,children:s.jsx(ih,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,c)=>s.jsx(rh,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};Il.displayName="TipBar.Root";const no=({className:e,...t})=>s.jsx(Xm,{...t,children:s.jsx(Il,{className:e})});no.displayName="TipBar";const ah=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),o=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return s.jsxs("div",{ref:r,className:Te.responsive["responsive-flex"],children:[o?s.jsx("div",{className:Te.responsive["responsive-mobile-flex"],children:s.jsx(no,{data:o,CONSTANTS:e})}):null,n?s.jsx("div",{className:Te.responsive["responsive-desktop-flex"],children:s.jsx(no,{data:n,CONSTANTS:e})}):null]})},sh={Banner:Gm,BannerSection:Po,BennefitsBarSection:Wm,SingleBannerSection:jl,TextContentSection:Vm,BannerCarousel:Um,TextAccordionSection:Km,TipbarScreening:ah},ch={Components:sh,helpers:Dm};exports.cms=ch;exports.contexts=Zu;exports.data=yo;exports.layout=Im;exports.scripts=Tm;