@soma-vertical-web/multi-lib 0.0.32 → 0.0.34

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 (53) hide show
  1. package/__vite-browser-external-CpdIDx9o.mjs +79 -0
  2. package/__vite-browser-external-DDWPeg5L.js +1 -0
  3. package/constants.d.ts +32 -0
  4. package/contexts/contexts/search/Facets.d.ts +5 -0
  5. package/contexts/contexts/search/Products.d.ts +5 -0
  6. package/contexts/contexts/search/Root.d.ts +5 -0
  7. package/contexts/contexts/search/Search.d.ts +5 -0
  8. package/contexts/contexts/search/SuggestedTerms.d.ts +5 -0
  9. package/contexts/contexts/search/TopSearches.d.ts +6 -0
  10. package/contexts/index.d.ts +24 -0
  11. package/data/api/fetchVtex.d.ts +2 -1
  12. package/data/api/search/autoCompleteSuggestions/index.d.ts +11 -0
  13. package/data/api/search/crosseling/index.d.ts +91 -0
  14. package/data/api/search/facets/index.d.ts +4 -0
  15. package/data/api/search/index.d.ts +6 -0
  16. package/data/api/search/product/index.d.ts +3 -0
  17. package/data/api/search/searchFetch.d.ts +3 -0
  18. package/data/api/search/suggestedTerms/index.d.ts +12 -0
  19. package/data/api/search/topSearch/index.d.ts +3 -0
  20. package/data/helpers/search/facets.d.ts +48 -0
  21. package/data/helpers/search/index.d.ts +12 -0
  22. package/data/helpers/search/product/index.d.ts +279 -0
  23. package/data/helpers/search/product/utils/canonical.d.ts +1 -0
  24. package/data/helpers/search/product/utils/enhanceSku.d.ts +9 -0
  25. package/data/helpers/search/product/utils/images.d.ts +7 -0
  26. package/data/helpers/search/product/utils/index.d.ts +8 -0
  27. package/data/helpers/search/product/utils/productStock.d.ts +7 -0
  28. package/data/helpers/search/product/utils/propertyValue.d.ts +20 -0
  29. package/data/helpers/search/product/utils/sanitizeHtml.d.ts +18 -0
  30. package/data/helpers/search/product/utils/sku.d.ts +5 -0
  31. package/data/helpers/search/product/utils/slugify.d.ts +1 -0
  32. package/data/helpers/search/root.d.ts +11 -0
  33. package/data/helpers/search/search.d.ts +7 -0
  34. package/index.js +19 -19
  35. package/index.mjs +4336 -3979
  36. package/index2.js +1 -1
  37. package/index2.mjs +891 -400
  38. package/package.json +1 -1
  39. package/server.d.ts +13 -0
  40. package/types/constants.d.ts +9 -15
  41. package/types/contexts/contexts/plp.d.ts +13 -0
  42. package/types/contexts/contexts/search.d.ts +10 -4
  43. package/types/data/api/index.d.ts +5 -2
  44. package/types/data/api/search/facets/index.d.ts +13 -13
  45. package/types/data/api/search/index.d.ts +25 -12
  46. package/types/data/api/search/product/index.d.ts +1 -8
  47. package/types/data/events/index.d.ts +0 -4
  48. package/types/data/helpers/index.d.ts +9 -1
  49. package/types/global/product/index.d.ts +5 -4
  50. package/types/layout/team-components/AddToCart/index.d.ts +2 -2
  51. package/types/layout/team-components/Sort/index.d.ts +2 -3
  52. package/types/data/api/search/autoCompleteSuggestions/index.d.ts +0 -7
  53. package/types/data/api/search/suggestedTerms/index.d.ts +0 -7
package/index.js CHANGED
@@ -1,41 +1,41 @@
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 Kt=(e,t,r)=>ol(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),B=require("react"),Ve=require("idb-keyval"),lt=require("zustand"),Mn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),ke=require("draft-js"),st=require("@soma-vertical-web/foundations"),bo=require("@date-fns/tz"),wa=require("react-dom"),il=require("./__vite-browser-external-Cjz79hOw.js"),xo=require("axios"),Xn=B.createContext({}),al=({data:e,children:t})=>s.jsx(Xn.Provider,{value:{tags:e==null?void 0:e.config},children:t}),Qn=()=>{const{tags:e}=B.useContext(Xn),t=B.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 m;return(m=r??[])==null?void 0:m.find(d=>d.id===f.key)}),i=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var m;return(m=r??[])==null?void 0:m.find(d=>d.id===f.key)}),o=e==null?void 0:e.flagPdp;return{commercial:n,institucional:i,flagPdp:o}},[e]);return{tags:e,getAvailableProductTag:t}},ja=({gridScrollBack:e})=>{B.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Pa=B.createContext({}),sl=({children:e,gridScrollBack:t})=>{const r=B.useRef(null);return ja({gridScrollBack:t}),s.jsx(Pa.Provider,{value:{sizesContainerRef:r},children:e})},cl=()=>{const e=B.useContext(Pa);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),Yn=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),Zn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},$t=(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()}},Ia=(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},ll=(e,t)=>e.replace(t,"").trim(),ul=e=>e.replace(/\//g,""),Na=({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 m=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(m){const{count:p,value:h}=m[m.length-1];r.installments={count:p,value:h/100}}};let i=!0;const o=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Zn(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(l.available=!0,n(m,l)),m.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&&(i=!1),a.push(l),a},[]);return{...r,sizes:o,allSizesAvailable:i}},Oa=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Jn=(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)},Ta=e=>e.find(t=>t.imageLabel==="10"),Ma=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ka=(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},La=({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},dl=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},Da=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},fl=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Oa,formatPriceToCurrency:Le,freightParsePrice:Yn,getAspectRatio:dl,getColorAndSizeFromSkuName:$t,getFirstImages:La,getProductNameWithoutSku:ll,getSKUName:Ia,getSkuInfos:Na,getThumbImage:Ta,getValidOffer:Jn,removeSlashes:ul,resizingImg:Ma,setVideoPlay:Da,splitNameAndSizeFromFullName:Zn,updatedResizedImg:ka},Symbol.toStringTag,{value:"Module"})),De=({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:i,promotionInfo:o,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,m={...r==="view_item"?{currency:ve.configs.currency,value:f,grade_disponivel:l??(u?$a(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:ve.configs.currency}:{}},d=bt({data:n,customData:{...i,...a,...o},configs:ve.configs});De({event:r,data:{...c,ecommerce:{...a,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:i,customData:o}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>bt({data:{...c},customData:{...r,index:l,...o!=null&&o.item_list_name?{item_list_name:o==null?void 0:o.item_list_name}:n},configs:ve.configs}));De({event:"view_item_list",data:{...i,ecommerce:{...o!=null&&o.item_list_name?{item_list_name:o==null?void 0:o.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:i,price:o},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(m=>{var y,g,v,A,_,S,C,j,x;const d=i==null?void 0:i.find(P=>(m.productId??m.id)===P.productId);let p={...a,...c};if(d){const P=qa(),D=Ha(P,d);D&&(p={...p,...D}),t==="add_to_cart"&&(a||c)&&kn({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&kn({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=m.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)??$t((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=m.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return bt({data:m,customData:{...n,...p??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=m.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??m.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)??m.seller},configs:ve.configs})});De({event:t,data:{...l,ecommerce:{value:o??u,currency:ve.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,i={},o={};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 m;const u=((m=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:m.eventLabel)??c,f=(i==null?void 0:i[u])||[];u==="price_range"&&l.replace(":","-"),i[u]=[...f,l]}),Object.keys(i).forEach(c=>o[c]=i[c].join(", "))),De({event:"filter",data:{...n,...o,...r}})},viewCartEvent:e=>{var f,m,d,p,h,y,g,v,A,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const i=window.localStorage.getItem("persistedCartEventsData"),o=i?JSON.parse(i):{},a=n.items.map(S=>{const{promotionInfo:C,itemList:j}=o[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=(((f=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((m=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(p=n.marketingData)==null?void 0:p.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];De({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;De({event:t,data:{...r}})}},$a=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),pl=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})=>({...ml(e,r==null?void 0:r.MAIN_IMAGE),...hl(e),...gl(e),...yl(e),...t}),Ba=()=>{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("_"))??[]:[]},qa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ha=(e,t)=>e==null?void 0:e[t],kn=({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)))},ml=(e,t="1")=>{var o,a,c,l,u,f,m,d,p,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(o=e.items)==null?void 0:o[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),i=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)??((m=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Zn((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((p=e.brand)==null?void 0:p.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:(i==null?void 0:i.url)??(i==null?void 0:i.imageUrl)}},Co=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,hl=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),i=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),o=Co(n),a=Co(i),c=o.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]}}},gl=e=>{var i,o,a,c,l,u;const t=((i=e.itemOffered)==null?void 0:i.skuName)??((c=(a=(o=e.isVariantOf)==null?void 0:o.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}=$t(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},yl=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,i=t??((l=e.offers)==null?void 0:l.lowPrice)??0,o=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=o?o-i:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:i??o},...o&&{list_price:o,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},za=()=>{const[e,t]=Ba(),[r,n]=e.split("-"),i=r.includes("shop")||r.includes("sale")?r:"";return{page_category:i&&n?n:"",page_departament:i,id:t,name:e}},_l=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Ha,getAvailablesSizes:$a,getCategories:pl,getPageCategoryAndDepartmentFromSlug:za,getPersistedData:qa,getProductListInfoFromHead:Ba,pushDatalayer:De,updatePersistedData:kn},Symbol.toStringTag,{value:"Module"})),Fa=B.createContext({}),vl=({children:e,evtFunctionsConfigs:t})=>{const r=B.useRef({}),n=B.useRef(null),i=B.useRef(null),o=B.useRef({}),a=B.useRef({trigger:!1,index:0}),c=({functionKey:f,data:m,callBack:d,timeout:p=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[f]=="function"&&setTimeout(()=>{var h;m.promotionInfo=r.current,(h=i.current)!=null&&h.item_list_name&&(m.itemList=i.current),ve[f](m,d)},p)}catch(h){De({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:m,index:d})=>{f&&(r.current={...m}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return s.jsx(Fa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:i,cartProductsFullDataRef:o,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>B.useContext(Fa),Ua=B.createContext({}),bl=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:i})=>{var $,E;const{sendDataLayerEvent:o,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:m}],description:d,["Composição"]:p="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=Qn(),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}=Na({items:u,NAME_SPLIT_SYMBOL:i}),P=Ta(f),D=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:p}],R=((E=$t(($=t.items)==null?void 0:$[0].name,i))==null?void 0:E.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),M=({sku:q,size:F})=>{const{commonData:U,customData:K}=I();o({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return B.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:F}=I();o({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:a.current.index}}}),a.current.trigger=!1}M({})},[]),s.jsx(Ua.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:v,items:u,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:P,images:f,video:m[0],descriptionContent:D,breadcrumbList:A,isKit:r,colorName:R,handleViewItemEvent:M},children:e})},eo=()=>{const e=B.useContext(Ua);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},xl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ie=Promise.resolve(!1),Ln={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ie,addItem:()=>Ie,addSellerCode:()=>Ie,addMarketingData:()=>Ie,emptyCart:()=>{},removeItem:()=>Ie,setIsOpen:()=>{},shipping:()=>Ie,shippingUpdate:()=>Ie,toggleServiceToProduct:()=>Ie,updateItemQuantity:()=>Ie,insertProfileEmail:()=>Ie,setRecentlyAddedProducts:()=>{}},to=e=>e===0,Ga=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],i=e.match(/\d+/g)??[];for(const o of i){const a=t[Number(o)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Wa=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:i,id:o,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:m,quantity:d,price:p,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:S,offerings:C,productRefId:j,skuName:x,sellingPrice:P}=e;return{availability:r,bundleItems:i,referenceId:S,productRefId:j,id:o,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Ga(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:o,slug:c,skuName:x},listPrice:m,quantity:d,offerings:C,price:p,priceDefinition:h,sellingPrice:P,seller:_}},Va=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ka=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((i,o)=>{var a,c;return{id:((a=i.itemOffered)==null?void 0:a.sku)??"",index:o,quantity:(r==null?void 0:r.id)===((c=i.itemOffered)==null?void 0:c.sku)?0:i.quantity,seller:i.seller??""}});return{updateItems:n,filterItems:n.filter(i=>i.id!==t)}}return{updateItems:[],filterItems:[]}},Xa=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,i)=>{var o,a;return n.id===t?{id:n.id,index:i,quantity:r,seller:n.seller,sku:((o=n.itemOffered)==null?void 0:o.sku)??""}:{id:n.id,index:i,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Dn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Cl=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var i;return((i=n==null?void 0:n.id)==null?void 0:i.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Sl=e=>{const t=e.reduce((i,o)=>{const a=to(o.price)?0:o.quantity;return i+a},0),r=e.reduce((i,o)=>i+o.price*o.quantity,0),n=e.reduce((i,o)=>i+o.listPrice*o.quantity,0);return{totalItems:t,total:r,subTotal:n}},Al=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(to(r==null?void 0:r.price)?0:r.quantity),0):0,Qa=(e,t)=>{const{items:r,itemMetadata:n,marketingData:i,messages:o,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(m=>Wa(m,t)):[],marketingData:i,messages:o,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Ya=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Rl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(i=>i.sku===r);return n?n.name.split(t)[1]:"--"},Xe=(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},El=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Za=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Ja=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),es=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ts=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},rs=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],ns=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Re=async(e,t,r,n)=>{const{priority:i="auto",body:o}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:i,method:"POST",body:JSON.stringify(o)}).then(async a=>{const c=await a.json();return r?c:Qa(c,n)})},os=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),wl=e=>[...Array.isArray(e)?e:[e],"faststore"],is=e=>{const t=e.get("utm_source")||He("utm_source"),r=e.get("utm_campaign")||He("utm_campaign"),n=e.get("utm_medium")||He("utm_medium"),i=e.get("utmi_cp")||He("utmi_cp"),o=e.get("utmi_pc")||He("utmi_pc"),a=e.get("utmi_p")||He("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...i&&{utmiCampaign:i},...o&&{utmiPart:o},...a&&{utmipage:a}}},He=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},jl=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:xl,addItemOrder:Va,addNotification:os,createItemOrder:Wa,fetchCartAPI:Re,findItemIndex:Dn,findOptions:rs,findTotalizerValue:Cl,getCategories:Ga,getCode:Xe,getQuantity:ts,getRemoveId:Za,getSize:Rl,getTotalItems:Al,getTotalizer:Sl,getUrlParameter:He,getValue:Ja,initialState:Ln,isGift:to,marketingTagsBuilder:wl,mergeOptionsPromise:ns,mountMarketingData:is,orderFormValues:Qa,promiseDefault:Ie,removeQuantity:Ka,updateItemSellerExternal:Ya,updateOrderFormPromise:es,updateQuantity:Xa,wishlistArray:El},Symbol.toStringTag,{value:"Module"})),Pl=()=>{const e=async(p,h)=>Re("/api/checkout/order-form/coupon",{body:{orderFormId:p,coupon:h}}),t=async(p,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Re("/api/checkout/order-form/seller-code",{body:{orderFormId:p,sellerCode:y}},!0);return Re("/api/checkout/order-form/attachments",{body:{orderFormId:p,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 Re("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:"",sellerName:""}})},r=async(p,h)=>Re("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:p,marketingData:h}}),n=async(p,h,y)=>Re("/api/checkout/order-form/items",{body:{orderFormId:p,orderItems:Va(h,y)}}),i=async(p,h,y,g)=>Re("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:p,remove:g}}),o=async p=>Re("/api/checkout/order-form/items/remove-all",{body:{orderFormId:p}}),a=async(p,h="low")=>Re("/api/checkout/order-form",{priority:h,body:{orderFormId:p??""}}),c=async(p,h)=>Re("/api/checkout/order-form/profile",{body:{orderFormId:p,email:h}}),l=async(p,h,y)=>{const g=Ka(h,y);return Re("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:p}})},u=async(p,h,y)=>Re("/api/checkout/order-form/shipping",{body:{orderFormId:p,country:y,postalCode:h}}),f=async(p,h,y)=>Re("/api/checkout/order-form/shipping/update",{body:{orderFormId:p,options:h,selectedAddresses:y}}),m=async(p,h,y,g)=>{const v=Xa(h,y,g);return Re("/api/checkout/order-form/items/update",{body:{orderFormId:p,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:i,emptyCart:o,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(p,h,y,g,v)=>m(p,h,y,g).then(A=>A&&Array.isArray(A.items)?Ya(A.items,y)?m(p,h,y,v):A:!1)}},$n="soma::cart",ot="soma::options",Qe=lt.create((e,t)=>{const r=Pl(),n=async(i,o,a)=>{e({loading:!0});const c=await es(i);if(typeof c!="boolean"){e({...c});const l=await ns(Ve.get(ot),a);return Ve.set(ot,l),Ja(c,o).finally(()=>e({loading:!1,options:l}))}return Ie};if(typeof window<"u"){const i=async o=>{if(o){const a=await Ve.get(ot).then(u=>rs(u,o.items));Ve.set($n,o),Ve.set(ot,a),e({...o,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 Ve.get($n).then(o=>r.getOrderForm(o?o.id:"").then(i)),{...Ln,addCoupon:async o=>n(()=>r.addCoupon(t().id,o),"marketingData"),addItem:(o,a)=>{n(()=>r.addItem(t().id,t().items,o),"items",a)},addSellerCode:async o=>n(()=>r.addSellerCode(t().id,o),"openTextField"),addMarketingData:async o=>n(()=>r.addMarketingData(t().id,o),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async o=>{const a=await n(()=>r.removeItem(t().id,t().items,o),"items");return Za(o,a)},shipping:async(o,a="BR")=>n(()=>r.shipping(t().id,o??"",a),"shippingData"),shippingUpdate:async o=>n(()=>{var a;return r.shippingUpdate(t().id,o,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(o,a,c)=>n(()=>r.giftItem(t().id,o,a,c),"items"),updateItemQuantity:async(o,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,o,a,((f=u.find(m=>m.id===o))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async o=>n(()=>r.insertProfileEmail(t().id,o),"clientProfileData"),setIsOpen:o=>e({isOpen:o})}}return Ln}),Il=()=>Qe(e=>e),as=lt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>os(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),ss=()=>as(e=>e.notifications),cs=()=>as(e=>e.actions),Nl=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:ot,KEY_INDEXED_STORE:$n,useCartStore:Qe,useGetCartStoreState:Il,useGetNotificationActions:cs,useGetNotificationsStore:ss},Symbol.toStringTag,{value:"Module"})),Ol=6e3,ls=B.createContext({}),us=({children:e,...t})=>{const{items:r}=Qe(),[n,i]=B.useState([]),o=B.useRef(null),a=B.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 B.useEffect(()=>{n.length&&(clearTimeout(o.current??0),o.current=setTimeout(()=>{i([])},Ol))},[n]),s.jsx(ls.Provider,{value:B.useMemo(()=>({...t,setRecentlyAdded:i,recentlyAddedProducts:a}),[t,i,a]),children:e})},ut=()=>{const e=B.useContext(ls);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ds{constructor(){Kt(this,"events",{});Kt(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 fs=B.createContext({}),Tl=({children:e,headerConfigs:t,pathname:r,...n})=>{const[i,o]=B.useState(!0),a=r==="/",c=B.useRef(new ds),l=m=>m?{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=B.useRef(u);return B.useEffect(()=>{var p;const m=((p=new URLSearchParams(window.location.search))==null?void 0:p.toString())??"";(m.includes("utm_")||m.includes("gclid"))&&(Mn.get("lastMedias")||Mn.set("lastMedias",`${m}`,{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")}i!==g&&o(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[i]),B.useEffect(()=>{const m=l(a);c.current.publish("header:change_variant",m.headerVariant),c.current.publish("header:change_position",m.position),f.current=m},[a]),s.jsx(fs.Provider,{value:{isMobile:i,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(us,{children:e})})},Oe=()=>B.useContext(fs),ps=B.createContext({}),Ml=({children:e,...t})=>s.jsx(ps.Provider,{value:{...t},children:e}),Te=()=>B.useContext(ps),Fe=(e,t)=>lt.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:i=>r({value:i}),reset:n}}}),ct={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},dt=new Set,kl=()=>{dt.forEach(e=>{e()})},ms=lt.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})}}}}),Bt=()=>ms(e=>e.value),Be=()=>ms(e=>e.actions),hs=Fe(ct.menuMobileIsOpen,dt),ro=()=>hs(e=>e.value),Ue=()=>hs(e=>e.actions),gs=Fe(ct.searchModalIsOpen,dt),Ll=()=>gs(e=>e.value),no=()=>gs(e=>e.actions),ys=Fe(ct.userMenuIsOpen,dt),Dl=()=>ys(e=>e.value),qt=()=>ys(e=>e.actions),$l=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:kl,useActionsHeaderCategory:Be,useActionsMenuMobileIsOpen:Ue,useActionsSearchModalIsOpen:no,useActionsUserMenuIsOpen:qt,useGetHeaderCategoryStore:Bt,useGetMenuMobileIsOpen:ro,useGetSearchModalIsOpen:Ll,useGetUserMenuIsOpen:Dl},Symbol.toStringTag,{value:"Module"})),Ye={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},et=new Set,Bl=()=>{et.forEach(e=>{e()})},_s=lt.create(e=>{const t=()=>e({value:Ye.selectedSkuInfo});return et.add(t),{value:Ye.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),ql=()=>_s(e=>e.value),Hl=()=>_s(e=>e.actions),vs=Fe(Ye.openLetMeKnow,et),zl=()=>vs(e=>e.value),Fl=()=>vs(e=>e.actions),bs=Fe(Ye.showNotify,et),Ul=()=>bs(e=>e.value),Gl=()=>bs(e=>e.actions),xs=Fe(Ye.showBottomNavigation,et),Wl=()=>xs(e=>e.value),Vl=()=>xs(e=>e.actions),Cs=Fe(Ye.openMeasurements,et),Kl=()=>Cs(e=>e.value),Xl=()=>Cs(e=>e.actions),Ql=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Bl,useActionsPDPOpenLetMeKnow:Fl,useActionsPDPOpenMeasurements:Xl,useActionsPDPSelectedSkuInfo:Hl,useActionsPDPShowBottomNavigation:Vl,useActionsPDPShowNotify:Gl,useGetPDPOpenLetMeKnow:zl,useGetPDPOpenMeasurements:Kl,useGetPDPSelectedSkuInfo:ql,useGetPDPShowBottomNavigation:Wl,useGetPDPShowNotify:Ul},Symbol.toStringTag,{value:"Module"})),Ss=B.createContext({}),Yl=({children:e,headerData:t,...r})=>{var l,u;const n=B.useRef(null),i=B.useRef(null),o=B.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:c}=Oe();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,p=n.current.getAttribute("data-interactiveVariant"),h=d?p: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)}),B.useEffect(()=>{const f=new AbortController,m=b.helpers.throttle(()=>{var p;return(p=a.current)==null?void 0:p.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:f.signal});const d=p=>{var y;(y=p.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(Ss.Provider,{value:{headerData:t,structureRef:i,rootRef:n,tipbarRef:o,...r},children:e})},xe=()=>B.useContext(Ss),As=B.createContext({}),Rs=({children:e})=>{const t=B.useRef(null),r=B.useRef(null),n=ro(),i=B.useCallback(()=>{var o;{const a=(o=t.current)==null?void 0:o.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return B.useEffect(()=>{var o;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(o=r.current)==null?void 0:o.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),B.useEffect(()=>{r.current=document.body},[]),s.jsx(As.Provider,{value:{bodyRef:t,handleCloseSubMenu:i,documentBodyRef:r},children:e})},ft=()=>B.useContext(As),Zl=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Jl=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=e!=null&&e.parentElement?Zl(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(i.width+o),top:n.top+n.height+r}},Es=B.createContext({}),ws=({children:e,delay:t=600,gap:r=20,...n})=>{const[i,o]=B.useState(!1),a=B.useRef(null),[c,l]=B.useState(!1),[u,f]=B.useState({left:0,top:0}),m=B.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{o(!1),l(!1)},t))},[l,o,t]);return B.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),p=window.document.querySelector("#add-to-cart--tooltip");if(d&&p){const{left:h,top:y}=Jl(p,d,r??0);f({left:h,top:y}),l(!1)}},[r,i]),s.jsx(Es.Provider,{value:B.useMemo(()=>({...n,...u,handleClose:m,isLeaving:c,isOpen:i,setIsOpen:o,setIsLeaving:l}),[n,u,m,c,i,o,l]),children:e})},Ge=()=>{const e=B.useContext(Es);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},js=B.createContext({}),eu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Qe(),{setRecentlyAdded:i}=ut(),o=B.useRef(""),a=ss(),{addNotification:c,removeNotification:l}=cs(),{addCoupon:u,addItem:f,addSellerCode:m,addMarketingData:d,emptyCart:p,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;B.useEffect(()=>{const E=Mn.get("lastMedias");if(n.id&&E&&o.current!==E){o.current=E;const q=new URLSearchParams(E),F=is(q);d(F)}},[n,d]);const S=B.useCallback(async(E,q)=>(q==="coupon"?u(E):m(E)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return Xe((z==null?void 0:z[0])??"",E,!!K)}return Xe(String(U.coupon),E,!0)}return Xe("","")}).catch(()=>Promise.resolve({code:400})),[u,m]),C=B.useCallback((E,q,F)=>{const{id:U}=E;_(U,q,F)},[_]),j=B.useCallback((E,q,F=!1)=>{if(!E)return;const{id:U}=E,K=Dn(n.items,U);if(K!==-1&&!F){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;C(E,z,q)}else f({id:U,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});h||i(W=>[...W,E])},[f,C,n.items,h,i]),x=B.useCallback((E,q)=>{if(!E||!Array.isArray(E))return;i(U=>[...U,...E]);const F=E.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=Dn(n.items,K),w=ts(W??1,ne);return{id:K,quantity:w,seller:z}});f(F,q)},[f,n.items,i]),P=B.useCallback(async(E,q,F)=>E?y(E).then(()=>(c(q??`${t}`,F),Xe(E,E))):Promise.resolve(Xe("","Product id required")),[c,y]),D=B.useCallback(()=>{n.items.length>0&&p()},[p,n.items]),R=B.useCallback((E,q="BRA")=>g(E,q),[g]),I=B.useCallback(E=>{E&&v(E)},[v]),M=B.useCallback(async(E,q,F)=>{const U=n.items.findIndex(W=>W.id===E);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),$=B.useCallback(async(E,q)=>_(E,q).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===E);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(js.Provider,{value:B.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:a,clearCart:D,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:P,setIsOpen:n.setIsOpen,shipping:R,shippingUpdateOption:I,toggleGiftItemCart:M,updateItemQuantity:$}),[r,S,j,x,a,D,c,n,l,P,R,I,M,$]),children:e})},We=()=>{const e=B.useContext(js);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},tu={contexts:{addToCart:{hook:Ge,provider:ws},cart:{hook:We,provider:eu},cms:{FlagsAndTags:{context:Xn,hook:Qn,provider:al}},events:{hook:ge,provider:vl},global:{hook:Oe,provider:Tl,mediator:ds},header:{hook:xe,provider:Yl},menuMobile:{hook:ft,provider:Rs},next:{hook:Te,provider:Ml},pdp:{provider:sl,hook:cl},pdpdata:{hook:eo,provider:bl},ui:{hook:ut,provider:us}},hooks:{useBackPDC:ja},stores:{cart:Nl,header:$l,pdp:Ql}};function Ps(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[i,o]=n.trim().split("=");if(i===e)return o}}function Is(e,t,r={}){const i={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let o=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in i)i[a]!==void 0&&(o+=`; ${a}`,a==="expires"?o+=`=${i[a].toUTCString()}`:typeof i[a]=="boolean"?o+=`; ${i[a]?"true":"false"}`:o+=`=${i[a]}`);window.document.cookie=o}const ru=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function nu(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function ou(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Ns=(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),iu=Object.freeze(Object.defineProperty({__proto__:null,debounce:ou,getCookie:Ps,getDaysHoursMinutesSeconds:it,getMilliSeconds:Ns,removeAccentsAndReplaceSpaces:ru,setCookie:Is,throttle:nu},Symbol.toStringTag,{value:"Module"})),au={cart:jl,events:_l,product:fl,utils:iu},oo={helpers:au};var Os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function su(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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Bn={exports:{}},Ee={};Ee._=Ee._interop_require_default=cu;function cu(e){return e&&e.__esModule?e:{default:e}}var xt={exports:{}},Xt={},So;function Ts(){return So||(So=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 i},assign:function(){return o}});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 i(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(m=>c.append(u,n(m))):c.set(u,n(f))}),c}function o(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(m=>a.delete(m)),f.forEach((m,d)=>a.append(d,m))}),a}}(Xt)),Xt}var Qt={},Ze={};function Ms(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ms=function(n){return n?r:t})(e)}Ze._=Ze._interop_require_wildcard=lu;function lu(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ms(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}var Ao;function ks(){return Ao||(Ao=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 o},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=Ze._(Ts()),i=/https?|ftp|gopher|file/;function o(l){let{auth:u,hostname:f}=l,m=l.protocol||"",d=l.pathname||"",p=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 m&&!m.endsWith(":")&&(m+=":"),l.slashes||(!m||i.test(m))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),p&&p[0]!=="#"&&(p="#"+p),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+m+y+d+g+p}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)}),o(l)}}(Qt)),Qt}var Yt={},Ro;function uu(){return Ro||(Ro=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const i={};return Object.keys(r).forEach(o=>{n.includes(o)||(i[o]=r[o])}),i}}(Yt)),Yt}var Zt={},Eo;function zt(){return Eo||(Eo=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 o},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return m},SP:function(){return d},ST:function(){return p},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,P=new Array(x),D=0;D<x;D++)P[D]=arguments[D];return C||(C=!0,j=S(...P)),j}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=S=>i.test(S);function a(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=a();return S.substring(C.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function f(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.getInitialProps){const D='"'+l(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(D)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const P=await S.getInitialProps(C);if(x&&u(x))return P;if(!P){const D='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(D)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!C.ctx&&console.warn(""+l(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",p=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})}}(Zt)),Zt}var Ct={exports:{}},Jt={},wo;function Ls(){return wo||(wo=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(/\/$/,"")||"/"}}(Jt)),Jt}var er={},jo;function io(){return jo||(jo=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("#"),i=r.indexOf("?"),o=i>-1&&(n<0||i<n);return o||n>-1?{pathname:r.substring(0,o?i:n),query:o?r.substring(i,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(er)),er}var Po;function Ft(){return Po||(Po=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});const r=Ls(),n=io(),i=o=>{if(!o.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(o);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)}(Ct,Ct.exports)),Ct.exports}var tr={},St={exports:{}},rr={},Io;function Ds(){return Io||(Io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=io();function r(n,i){if(typeof n!="string")return!1;const{pathname:o}=(0,t.parsePath)(n);return o===i||o.startsWith(i+"/")}}(rr)),rr}var No;function du(){return No||(No=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});const r=Ds(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(o){return(0,r.pathHasPrefix)(o,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)}(St,St.exports)),St.exports}var Oo;function $s(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=zt(),r=du();function n(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const o=(0,t.getLocationOrigin)(),a=new URL(i,o);return a.origin===o&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(tr)),tr}var nr={},or={},To;function fu(){return To||(To=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const o=[...this.children.keys()].sort();this.slugName!==null&&o.splice(o.indexOf("[]"),1),this.restSlugName!==null&&o.splice(o.indexOf("[...]"),1),this.optionalRestSlugName!==null&&o.splice(o.indexOf("[[...]]"),1);const a=o.map(c=>this.children.get(c)._smoosh(""+i+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const c=i==="/"?"/":i.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(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(i,o,a){if(i.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=i[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");o.forEach(p=>{if(p===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),o.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 "'+i[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 "'+i[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(i.slice(1),o,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const i=new t;return n.forEach(o=>i.insert(o)),i.smoosh()}}(or)),or}var ir={},Mo;function pu(){return Mo||(Mo=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)}}(ir)),ir}var ko;function mu(){return ko||(ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,o){for(var a in o)Object.defineProperty(i,a,{enumerable:!0,get:o[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=fu(),n=pu()}(nr)),nr}var ar={},sr={},Lo;function hu(){return Lo||(Lo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=zt();function r(n){let{re:i,groups:o}=n;return a=>{const c=i.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(o).forEach(f=>{const m=o[f],d=c[m.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(p=>l(p)):m.repeat?[l(d)]:l(d))}),u}}}(sr)),sr}var cr={},lr={},ur={},dr={},Do;function gu(){return Do||(Do=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}}(dr)),dr}var fr={},$o;function yu(){return $o||($o=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(")")}}(fr)),fr}var Bo;function _u(){return Bo||(Bo=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 i},normalizeRscPath:function(){return o}});const r=gu(),n=yu();function i(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 o(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(ur)),ur}var qo;function vu(){return qo||(qo=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 i},extractInterceptionRouteInformation:function(){return o}});const r=_u(),n=["(..)(..)","(.)","(..)","(...)"];function i(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function o(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(m=>f.startsWith(m)),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}}}(lr)),lr}var pr={},Ho;function bu(){return Ho||(Ho=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(i){return t.test(i)?i.replace(r,"\\$&"):i}}(pr)),pr}var zo;function xu(){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 u},getNamedRouteRegex:function(){return p},getNamedMiddlewareRegex:function(){return h}});const r=vu(),n=bu(),i=Ls(),o="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,i.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:P}=c(C[1]);return v[j]={pos:A++,repeat:P,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:j,repeat:x,optional:P}=c(C[1]);return v[j]={pos:A++,repeat:x,optional:P},x?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}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 m(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 P=!1;return(x.length===0||x.length>30)&&(P=!0),isNaN(parseInt(x.slice(0,1)))||(P=!0),P&&(x=g()),_?A[x]=""+_+S:A[x]=""+S,j?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,i.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),j=S.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?a:void 0}):j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?o:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function p(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 S=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(cr)),cr}var Fo;function Cu(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=hu(),r=xu();function n(i,o,a){let c="";const l=(0,r.getRouteRegex)(i),u=l.groups,f=(o!==i?(0,t.getRouteMatcher)(l)(o):"")||a;c=i;const m=Object.keys(u);return m.every(d=>{let p=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(p?"":"/")+"["+g+"]"),h&&!Array.isArray(p)&&(p=[p]),(y||d in f)&&(c=c.replace(g,h?p.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(p))||"/")})||(c=""),{params:m,result:c}}}(ar)),ar}var Uo;function Su(){return Uo||(Uo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=Ts(),n=ks(),i=uu(),o=zt(),a=Ft(),c=$s(),l=mu(),u=Cu();function f(m,d,p){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: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,o.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return p?[y]:y;try{h=new URL(y.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&p){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:P}=(0,u.interpolateAs)(_.pathname,_.pathname,j);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,i.omit)(j,P)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return p?[C,S||C]:C}catch{return p?[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 At={exports:{}},mr={},hr={},Go;function Bs(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=io();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:o,query:a,hash:c}=(0,t.parsePath)(n);return""+i+o+a+c}}(hr)),hr}var Wo;function Au(){return Wo||(Wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Bs(),r=Ds();function n(i,o,a,c){if(!o||o===a)return i;const l=i.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+o.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+o)}}(mr)),mr}var Vo;function Ru(){return Vo||(Vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Ft(),n=function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Au().addLocale(i,...a)):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)}(At,At.exports)),At.exports}var gr={},Ko;function qs(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(gr)),gr}var yr={},Xo;function Eu(){return Xo||(Xo=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{CacheStates:function(){return i},AppRouterContext:function(){return o},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Ee._(B);var i;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(i||(i={}));const o=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(yr)),yr}var Rt={exports:{}},Et={exports:{}},Qo;function Hs(){return Qo||(Qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(o,a){for(var c in a)Object.defineProperty(o,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(o){let a=Date.now();return self.setTimeout(function(){o({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(o){return clearTimeout(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 Yo;function wu(){return Yo||(Yo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=B,n=Hs(),i=typeof IntersectionObserver=="function",o=new Map,a=[];function c(f){const m={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===m.root&&g.margin===m.margin);let p;if(d&&(p=o.get(d),p))return p;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 p={id:m,observer:y,elements:h},a.push(m),o.set(m,p),p}function l(f,m,d){const{id:p,observer:h,elements:y}=c(d);return y.set(f,m),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),o.delete(p);const v=a.findIndex(A=>A.root===p.root&&A.margin===p.margin);v>-1&&a.splice(v,1)}}}function u(f){let{rootRef:m,rootMargin:d,disabled:p}=f;const h=p||!i,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(i){if(h||y)return;const S=v.current;if(S&&S.tagName)return l(S,j=>j&&g(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,m,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 wt={exports:{}},jt={exports:{}},_r={},Zo;function ju(){return Zo||(Zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let i;const o=r.split("/");return(n||[]).some(a=>o[1]&&o[1].toLowerCase()===a.toLowerCase()?(i=a,o.splice(1,1),r=o.join("/")||"/",!0):!1),{pathname:r,detectedLocale:i}}}(_r)),_r}var Jo;function Pu(){return Jo||(Jo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,i)=>process.env.__NEXT_I18N_SUPPORT?ju().normalizeLocalePath(n,i):{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)}(jt,jt.exports)),jt.exports}var Pt={exports:{}},vr={},ei;function Iu(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,i){if(r){i&&(i=i.toLowerCase());for(const c of r){var o,a;const l=(o=c.domain)==null?void 0:o.split(":")[0].toLowerCase();if(n===l||i===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===i))return c}}}}(vr)),vr}var ti;function Nu(){return ti||(ti=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,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(process.env.__NEXT_I18N_SUPPORT)return Iu().detectDomainLocale(...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)}(Pt,Pt.exports)),Pt.exports}var ri;function Ou(){return ri||(ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});const r=Ft(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(o,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Pu().normalizeLocalePath,f=Nu().detectDomainLocale,m=a||u(o,c).detectedLocale,d=f(l,void 0,m);if(d){const p="http"+(d.http?"":"s")+"://",h=m===d.defaultLocale?"":"/"+m;return""+p+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+o)}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)}(wt,wt.exports)),wt.exports}var It={exports:{}},ni;function Tu(){return ni||(ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});const r=Bs(),n=Ft(),i=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(It,It.exports)),It.exports}var Nt={exports:{}},oi;function Mu(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,d){for(var p in d)Object.defineProperty(m,p,{enumerable:!0,get:d[p]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return o},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",i="navigate",o="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(m){m.AUTO="auto",m.FULL="full",m.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)}(Nt,Nt.exports)),Nt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Ee._(B),i=Su(),o=$s(),a=ks(),c=zt(),l=Ru(),u=qs(),f=Eu(),m=wu(),d=Ou(),p=Tu(),h=Mu(),y=new Set;function g(j,x,P,D,R,I){if(typeof window>"u"||!I&&!(0,o.isLocalURL)(x))return;if(!D.bypassPrefetchedCheck){const $=typeof D.locale<"u"?D.locale:"locale"in j?j.locale:void 0,E=x+"%"+P+"%"+$;if(y.has(E))return;y.add(E)}const M=I?j.prefetch(x,R):j.prefetch(x,P,D);Promise.resolve(M).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function A(j,x,P,D,R,I,M,$,E,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!E&&!(0,o.isLocalURL)(P)))return;j.preventDefault();const K=()=>{const W=M??!0;"beforePopState"in x?x[R?"replace":"push"](P,D,{shallow:I,locale:$,scroll:W}):x[R?"replace":"push"](D||P,{forceOptimisticNavigation:!q,scroll:W})};E?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,a.formatUrl)(j)}const C=n.default.forwardRef(function(x,P){let D;const{href:R,as:I,children:M,prefetch:$=null,passHref:E,replace:q,shallow:F,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...O}=x;D=M,w&&(typeof D=="string"||typeof D=="number")&&(D=n.default.createElement("a",null,D));const L=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=L??X,Z=!L,T=$!==!1,J=$===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&&!I){let ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.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(!L){const G=_(R);return{href:G,as:I?_(I):G}}const[ie,me]=(0,i.resolveHref)(L,R,!0);return{href:ie,as:I?(0,i.resolveHref)(L,I):me||ie}},[L,R,I]),k=n.default.useRef(Y),N=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+R+'` 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 `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(D)}catch{throw D?new Error("Multiple children were passed to <Link> with `href` of `"+R+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+R+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(D);else if(process.env.NODE_ENV==="development"&&(D==null?void 0:D.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:P,[ce,le,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(N.current!==ee||k.current!==Y)&&(se(),N.current=ee,k.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||!T||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,T,L==null?void 0:L.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 W=="function"&&W(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,T))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!T||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&&(!T&&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||E||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:L==null?void 0:L.locale,me=(L==null?void 0:L.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,L==null?void 0:L.locales,L==null?void 0:L.domainLocales);he.href=me||(0,p.addBasePath)((0,l.addLocale)(ee,ie,L==null?void 0:L.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...O,...he},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)})(Bn,Bn.exports);var ku=Bn.exports,Lu=ku;const je=Ht(Lu),Du=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const i=n.getType(),o=n.getText();let a;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(a=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:o,...a&&{styleText:a}};switch(i){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}r.push(l)}),r},$u=(e,t,r)=>{e.findEntityRanges(n=>{const i=n.getEntity();return i===null?!1:r.getEntity(i).getType()==="LINK"},t)},qn=e=>{const t=new ke.CompositeDecorator([{strategy:$u,component:je}]),r=ke.convertFromRaw(e);return ke.EditorState.createWithContent(r,t)},Bu=e=>ke.convertFromRaw(e),Hn=ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),qu=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:qn,EXTENDED_BLOCK_RENDER_MAP:Hn,GET_CONTENT_STATE:Bu,convertDraftToHTML:Du},Symbol.toStringTag,{value:"Module"})),Je={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},Hu=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const i=t==null?void 0:t.find(f=>{var m,d,p,h;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(p=f.config)==null?void 0:p.seo)==null?void 0:h.slug)===e}),o=i==null?void 0:i.config.responsive.gapCustom,a=i==null?void 0:i.config.responsive.gapSections,c=t==null?void 0:t.find(f=>{var m,d,p,h;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(p=f.config)==null?void 0:p.seo)==null?void 0:h.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return s.jsxs(s.Fragment,{children:[s.jsx(b.Utils.Column,{gap:o&&a?a:n,className:b.helpers.classNameConcat(Je["responsive-desktop-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(i==null?void 0:i.sections)??[]})}),s.jsx(b.Utils.Column,{gap:l&&u?u:n,className:b.helpers.classNameConcat(Je["responsive-mobile-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(c==null?void 0:c.sections)??[]})})]})},Ke=e=>({centro:"center",esquerda:"start",direita:"end"})[e],zu=({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:Hn,editorState:t!=null&&t.textStructureReduced?qn(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:Hn,editorState:t.textStructure?qn(JSON.parse(t.textStructure)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),Fu={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Uu="_textContentWrapper_1bigo_5",Gu="_textContentSection_1bigo_13",zn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Uu,textContentSection:Gu},Wu="_link_w24h0_1",Vu="_wrapper_w24h0_98",Ku="_text_w24h0_106",br={link:Wu,wrapper:Vu,text:Ku},tt=({children:e,adornments:t,className:r,disableUnderline:n,href:i,mode:o,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const m=b.helpers.ValidateProp({fieldTypes:st.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:st.Mode,property:o,fallback:"default"});return s.jsx(je,{...f,className:b.helpers.classNameConcat(br.link,r),href:i&&i.length>0?i:"#","data-size":m,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:s.jsxs("div",{className:br.wrapper,onClick:l,children:[t==null?void 0:t.start,s.jsx("p",{className:br.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},ao=({data:e,ICONS:t})=>{var i;const[r,n]=B.useState(!1);return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(e.textStructureAlignment)},columnWrapper:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(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(o=>!o),size:"small",children:r?"Ver Menos":"Ver Mais"}):s.jsx(s.Fragment,{})},children:s.jsxs(b.Utils.Column,{className:zn.textContentWrapper,style:{alignItems:Ke(e.textStructureAlignment)},children:[s.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ke(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Fu["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx(zu,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(tt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:zn["link-modifier"],adornments:(i=e.textStructureButtonIcon)!=null&&i.length&&e.enableIcon?{end:s.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):s.jsx(s.Fragment,{})]})})},Xu=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],ii=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Qu="_image_lypfr_1",Yu={image:Qu},Zu=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:i}=Te();return s.jsx(i,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Yu.image,t),"data-object-fit":r??"cover"})},Ju=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),Me={Image:Zu,Video:Ju},Fn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[i,o]=B.useState(Ns(new bo.TZDate(Date.now(),r),new bo.TZDate(e,r))),[a,c]=B.useState(!1);B.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(i<=0){clearInterval(u);return}o(i-1e3)},1e3);return()=>{clearInterval(u)}},[i,o,a]);const l=it(i,"days");return a&&i>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:it(i,"hours")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"min",value:it(i,"minutes")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"segs",value:it(i),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},ai={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},si=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:i,...o})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:m,position:d,contentAlignment:p,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Te();return s.jsxs(b.Banner.Container,{...o,children:[s.jsxs(b.Banner.ImageWrapper,{className:ai["banner-image-wrapper-modifier"],style:u?{background:m}:void 0,children:[a&&s.jsx(Me.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&s.jsx(j,{src:C,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:m}})]}),h||S||_?s.jsx(b.Banner.Slot,{...Xu(d??"centro"),className:ai["content-modifier"],style:{textAlign:ii(p)},children:s.jsxs(b.Utils.Column,{gap:"16px",alignItems:ii(p),children:[h&&y==="timer-first"&&s.jsx(Fn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),s.jsx(ao,{data:e.banner,ICONS:i}),h&&y!=="timer-first"&&s.jsx(Fn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},ed={"observer-wrapper":"_observer-wrapper_r43gk_1"};function td(e,t,r){const[n,i]=B.useState(!1),{threshold:o}=r||{};return B.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:o||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const so=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:i=!0,className:o,...a})=>{const c=B.useRef(null),l=td(c,i,r),{sendDataLayerEvent:u}=ge();return B.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),s.jsx("div",{...a,ref:c,className:b.helpers.classNameConcat(ed["observer-wrapper"],o),children:e})},zs=({data:e,className:t,priority:r,creative:n,...i})=>{const{handleSelectPromotionEvent:o,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",m={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=B.useRef(null),p=B.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 s.jsx(so,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:l}}}},observerOptions:{delay:100,...p&&{threshold:.1}},...p&&{callBackWhenVisible:h},children:e.banner.href?s.jsx(je,{href:e.banner.href,onClick:()=>{o({updatePromotionRef:!0,promotion:m,index:l})},children:s.jsx(si,{data:e,videoUrl:p,priority:r,videoRef:d,...i})}):s.jsx(si,{data:e,videoUrl:p,priority:r,videoRef:d,...i})})},Fs=e=>s.jsx(zs,{...e}),rd={Banner:Fs},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"},nd=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Oe(),n=e.config.size??"medium",i=e.config.disableCarouselMobile??!1,{initialize:o,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&&i?"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=>{o(f)},className:b.helpers.classNameConcat(nt["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(b.TextStructure.Root,{children:[s.jsx(b.TextStructure.DivWrapper,{className:nt["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:nt["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,m)=>s.jsx(b.Carousel.Item,{className:nt["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=${m}`))}),!r&&a.totalPages>1?s.jsxs(b.Carousel.Controller,{className:nt["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,{})]})})},od=({data:e,ICONS:t})=>s.jsx("div",{className:b.helpers.classNameConcat(zn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(ao,{data:e,ICONS:t})}),id={Banner:rd,BannerSection:zs,BennefitsBarSection:nd,DataScreening:Hu,SingleBannerSection:Fs,TextContentSection:od,TextContent:ao},ad={Components:id,helpers:qu},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"},Us=({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})})})]});Us.displayName="AddToCart.Card.Name";const Gs=({className:e,listPrice:t,price:r,quantity:n,productId:i,...o})=>{const a=Le(r/100),c=Le(t/100);return s.jsx("div",{...o,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")})})})})};Gs.displayName="AddToCart.Card.PriceQuantity";const sd="_skeleton_12b79_1",cd={skeleton:sd},ld=({style:e})=>s.jsx("div",{style:e,className:cd.skeleton}),Ws=({className:e,productGroupID:t,size:r,texture:n,...i})=>{const{CONSTANTS:{TEXTURE_IMAGE:o,TOGGLE_STYLE_MODIFIER:a}}=Ge(),[c,l]=B.useState(n??"");return B.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 m=f.images.find(d=>o.includes(d.imageLabel));m!=null&&m.imageUrl?l(m.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),s.jsxs("div",{...i,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(Me.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(ld,{})})}),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})]})]})};Ws.displayName="AddToCart.Card.StyleSize";const{helpers:ud}=oo,Vs=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:i,brand:o,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:m}}=Ge(),{size:d}=ud.product.getColorAndSizeFromSkuName(a??i,m);return s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[s.jsx(Us,{brand:o.name,name:i}),s.jsx(Gs,{price:u,listPrice:f,quantity:l,productId:t.id}),s.jsx(Ws,{size:d,texture:r,productGroupID:c})]})};Vs.displayName="AddToCart.Card.Content";const Ks=({image:e,thumbnail:t=!1})=>s.jsx(Me.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Ks.displayName="AddToCart.Card";const Xs=({className:e,item:t,texture:r,thumbnail:n,...i})=>{const{itemOffered:{image:[o]}}=t,a=ka(o.url,{width:200,height:300});return s.jsxs("div",{...i,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[s.jsx(Ks,{image:{alternateName:o.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(Vs,{item:t,texture:r})]})};Xs.displayName="AddToCart.Card";const Qs=({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(ze.Footer,{})]});Qs.displayName="AddToCart.Layout.Content";const Ys=({className:e,...t})=>{var p,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:i}}=Ge(),{cartStore:{totalizers:o},setIsOpen:a}=We(),c=(p=o.find(y=>y.id==="Discounts"))==null?void 0:p.value,l=((h=o.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=o.find(y=>y.id==="Shipping"),m=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Le(m??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:i.footer.bag}),r?s.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:i.footer.keep_buying}):s.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:i.footer.keep_buying})]})};Ys.displayName="AddToCart.Layout.Footer";const Zs=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:i}}=We(),{recentlyAddedProducts:o}=ut(),a=o.length>3?4:o.length;return s.jsxs("div",{...n,className:Pe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(o)&&o.filter((c,l)=>l<a).map(c=>{var u;const l=(u=i==null?void 0:i.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return s.jsx(ze.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Zs.displayName="AddToCart.Layout.Items";const Js=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ge(),{isMobile:i}=Oe();return s.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:Pe["add-to-cart__modal"],isMobile:i??!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})]})};Js.displayName="AddToCart.Modal";const dd=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ge(),i=B.useRef(t);return B.useEffect(()=>{t>i.current&&n(!0),t<i.current&&i.current>=1&&r(),i.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},ec=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:i}=ut(),{isMobile:o}=Oe(),a=i.length>3?4:i.length;return s.jsx(ws,{...n,count:a,isMobile:o,CONSTANTS:r,children:s.jsx(dd,{children:o?s.jsxs(s.Fragment,{children:[s.jsx(ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};ec.displayName="AddToCart.Root";const tc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:o,isLeaving:a,target:c,isOpen:l,top:u}=Ge();return s.jsx(b.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:i,children:t}),id:"add-to-cart--tooltip",className:Pe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:o,size:"medium",position:"top",top:u,children:s.jsx("div",{className:Pe["add-to-cart--tooltip"],ref:c,children:e})})};tc.displayName="AddToCart.Tooltip";const ze={Card:Xs,Content:Qs,Footer:Ys,Items:Zs,Modal:Js,Root:ec,Tooltip:tc},co=({title:e,...t})=>{const{recentlyAddedProducts:r}=ut(),{isMobile:n}=Oe(),i=r.length>3?4:r.length,o=r.length>(i??1),a=r.length>1;return s.jsx(ze.Root,{isMobile:n,count:r.length,component:s.jsx(ze.Content,{title:e,children:s.jsx(ze.Items,{thumbnail:a,children:o&&s.jsx(b.Badge.Count,{count:r.length-i,size:"medium",variant:"secondary"})})}),...t})};co.displayName="AddToCart";const ci={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},fd=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:i,style:o,...a})=>{const c={top:(i==null?void 0:i.top)??0,left:(i==null?void 0:i.left)??0,behavior:(i==null?void 0:i.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(ci["card-modifier"],t),style:{...o,padding:0},children:s.jsxs("button",{className:ci["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},pd=({page:e,data:t})=>{const{pathname:r}=Te(),n=B.useRef(null),{sendDataLayerEvent:i,currentLocalRef:o,itemListRef:a,promotionEventRef:c}=ge();return B.useEffect(()=>{const l=Ps("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);i({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Is("login_event","",{expires:f})}},[]),B.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,m={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:p})=>m[d]=p[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:m,id:d,name:p}=za(),h=p,y=d;l={page_category:"lista_produtos",...m&&{page_departament:m}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},m&&i({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:m}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};o.current=e,i({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Un={exports:{}};function md(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 xr={},Cr={},li;function hd(){return li||(li=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Cr)),Cr}var ui;function gd(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}});const r=Ee._(B),n=hd();function i(h){return h&&h.default?h.default:h}const o=[],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 C=new f(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"&&o.push(A),!c&&typeof window<"u"){const C=g.webpack&&typeof md.resolveWeak=="function"?g.webpack():g.modules;C&&a.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(i(x.loaded),C):null,[C,x])}return S.preload=()=>A(),S.displayName="LoadableComponent",r.default.forwardRef(S)}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 m(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)})}m.preloadAll=()=>new Promise((h,y)=>{d(o).then(h,y)}),m.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=m.preloadReady);const p=m}(xr)),xr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,m){for(var d in m)Object.defineProperty(f,d,{enumerable:!0,get:m[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Ee,i=n._(B),o=n._(gd()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,m){if(delete m.webpack,delete m.modules,!a)return f(m);const d=m.loading;return()=>i.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,m){let d=o.default,p={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 i.default.createElement("p",null,v.message,i.default.createElement("br",null),v.stack)}return null}};f instanceof Promise?p.loader=()=>f:typeof f=="function"?p.loader=f:typeof f=="object"&&(p={...p,...f}),p={...p,...m};const h=p.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return p.loadableGenerated&&(p={...p,...p.loadableGenerated},delete p.loadableGenerated),typeof p.ssr=="boolean"&&!p.ssr?(delete p.webpack,delete p.modules,l(d,p)):d({...p,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)})(Un,Un.exports);var yd=Un.exports,_d=yd;const lo=Ht(_d);var Gn={exports:{}},Sr={},di;function rc(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Sr)),Sr}var Ot={exports:{}},fi;function vd(){return fi||(fi=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 o},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(l){let{type:u,props:f}=l;const m=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")?m[y]=!!f[h]:m.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:p}=f;return p?m.innerHTML=p.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function o(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const m=u.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=f,f===l.nonce&&l.isEqualNode(m)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const m=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<m.length;y++){var p;const v=m[y].nextSibling;(v==null||(p=v.tagName)==null?void 0:p.toLowerCase())===l&&d.push(v)}const h=u.map(i).filter(y=>{for(let g=0,v=d.length;g<v;g++){const A=d[g];if(o(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],m=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),p=[];for(let g=0,v=m.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&&p.push(v)}const y=u.map(i).filter(g=>{for(let v=0,A=p.length;v<A;v++){const _=p[v];if(o(_,g))return p.splice(v,1),!1}return!0});p.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>f.insertBefore(g,m)),m.content=(d-p.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 p=u[d.type]||[];p.push(d),u[d.type]=p});const f=u.title?u.title[0]:null;let m="";if(f){const{children:d}=f.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["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)}(Ot,Ot.exports)),Ot.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=Ee,i=Ze,o=n._(wa),a=i._(B),c=rc(),l=vd(),u=Hs(),f=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=C=>{if(o.default.preinit){C.forEach(j=>{o.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(x=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=x,j.appendChild(P)})}},h=C=>{const{src:j,id:x,onLoad:P=()=>{},onReady:D=null,dangerouslySetInnerHTML:R,children:I="",strategy:M="afterInteractive",onError:$,stylesheets:E}=C,q=x||j;if(q&&m.has(q))return;if(f.has(j)){m.add(q),f.get(j).then(P,$);return}const F=()=>{D&&D(),m.add(q)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),P&&P.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){$&&$(W)});R?(U.innerHTML=R.__html||"",F()):I?(U.textContent=typeof I=="string"?I:Array.isArray(I)?I.join(""):"",F()):j&&(U.src=j,f.set(j,K));for(const[W,z]of Object.entries(C)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}M==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",M),E&&p(E),document.body.appendChild(U)};function y(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");m.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:P=()=>{},onReady:D=null,strategy:R="afterInteractive",onError:I,stylesheets:M,...$}=C,{updateScripts:E,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=j||x;W.current||(D&&ne&&m.has(ne)&&D(),W.current=!0)},[D,j,x]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(R==="afterInteractive"?h(C):R==="lazyOnload"&&g(C),z.current=!0)},[C,R]),(R==="beforeInteractive"||R==="worker")&&(E?(q[R]=(q[R]||[]).concat([{id:j,src:x,onLoad:P,onReady:D,onError:I,...$}]),E(q)):F&&F()?m.add(j||x):F&&!F()&&h(C)),U){if(M&&M.forEach(ne=>{o.default.preinit(ne,{as:"style"})}),R==="beforeInteractive")return x?(o.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));R==="afterInteractive"&&x&&o.default.preload(x,$.integrity?{as:"script",integrity:$.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)})(Gn,Gn.exports);var bd=Gn.exports,xd=bd;const Cd=Ht(xd),Sd=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(Cd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Ad=lo(()=>Promise.resolve(Sd),{ssr:!1}),Rd="_footer__bottom_1o9af_2",Ed="_footer__wrapper_1o9af_10",wd="_footer__main_1o9af_39",jd="_footer__legalInformation_1o9af_55",Pd="_footer__column_1o9af_77",Id="_footer__columnContent_1o9af_87",Nd="_footer__item_1o9af_91",Od="_footer__itemLink_1o9af_107",Td="_footer__columnTitle_1o9af_122",Md="_footer__columnTitleIcon_1o9af_134",kd="_footer__iconList_1o9af_147",Ld="_footer__itemSmallText_1o9af_157",Dd="_payment_1o9af_168",$d="_footer__iconContainer_1o9af_173",Bd="_footer__iconListSubHeader_1o9af_178",qd="_accordionWrapper_1o9af_200",Hd="_accordionHeader_1o9af_204",zd="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Rd,footer__wrapper:Ed,footer__main:wd,footer__legalInformation:jd,footer__column:Pd,footer__columnContent:Id,footer__item:Nd,footer__itemLink:Od,footer__columnTitle:Td,footer__columnTitleIcon:Md,footer__iconList:kd,footer__itemSmallText:Ld,payment:Dd,footer__iconContainer:$d,footer__iconListSubHeader:Bd,accordionWrapper:qd,accordionHeader:Hd,accordionTextWrapper:zd,"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 nc={},uo={},pt={};(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)}}})(pt);var oc={};(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:i,blurWidth:o,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=o?o*40:n,m=a?a*40:i,d=f&&m?"viewBox='0 0 "+f+" "+m+"'":"",p=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='"+p+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(oc);var Ut={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,o){for(var a in o)Object.defineProperty(i,a,{enumerable:!0,get:o[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}})(Ut);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return p}});const t=pt,r=oc,n=Ut,i=["lazy","eager",void 0];function o(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(o(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 m(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}=m(y,A,S),P=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map((D,R)=>C({config:y,src:g,quality:_,width:D})+" "+(x==="w"?D:R+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[P]})}}function p(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:P,fill:D=!1,style:R,onLoad:I,onLoadingComplete:M,placeholder:$="empty",blurDataURL:E,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:O,blurComplete:L,defaultLoader:X}=y;let te,Z=w||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 T=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in T;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=T;T=ue=>{const{config:Ce,...Q}=ue;return G(Q)}}if(F){F==="fill"&&(D=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ce=G[F];Ce&&(R={...R,...Ce});const Q=ue[F];Q&&!v&&(v=Q)}let Y="",ee=f(x),k=f(P),N,re;if(c(g)){const G=o(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(N=G.blurWidth,re=G.blurHeight,E=E||G.blurDataURL,Y=G.src,!D){if(!ee&&!k)ee=G.width,k=G.height;else if(ee&&!k){const ue=ee/G.width;k=Math.round(G.height*ue)}else if(!ee&&k){const ue=k/G.height;ee=Math.round(G.width*ue)}}}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=f(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(D){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(P)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(R!=null&&R.position&&R.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(R!=null&&R.width&&R.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(R!=null&&R.height&&R.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 k>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(k))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+P+'".')}if(!i.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+i.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($!=="empty"&&$!=="blur"&&!$.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+$+'".');if($!=="empty"&&ee&&k&&ee*k<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),$==="blur"&&!E){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
1
+ "use strict";var mu=Object.defineProperty;var hu=(e,t,r)=>t in e?mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xt=(e,t,r)=>hu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),I=require("react"),Ve=require("idb-keyval"),ct=require("zustand"),Mn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Ln=require("./__vite-browser-external-DDWPeg5L.js"),Me=require("draft-js"),at=require("@soma-vertical-web/foundations"),Ao=require("@date-fns/tz"),Na=require("react-dom"),Eo=require("axios"),Yn=I.createContext({}),gu=({data:e,children:t})=>s.jsx(Yn.Provider,{value:{tags:e==null?void 0:e.config},children:t}),Zn=()=>{const{tags:e}=I.useContext(Yn),t=I.useCallback(r=>{var a,c,u,l;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.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}},Ta=({gridScrollBack:e})=>{I.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ka=I.createContext({}),yu=({children:e,gridScrollBack:t})=>{const r=I.useRef(null);return Ta({gridScrollBack:t}),s.jsx(ka.Provider,{value:{sizesContainerRef:r},children:e})},_u=()=>{const e=I.useContext(ka);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),Jn=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),eo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},$t=(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()}},Ma=(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},vu=(e,t)=>e.replace(t,"").trim(),bu=e=>e.replace(/\//g,""),La=({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:u,ListPrice:l,PaymentOptions:{installmentOptions:p}}=a.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((a,c)=>{var p;const u={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??eo(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),a.push(u),a},[]);return{...r,sizes:i,allSizesAvailable:o}},Da=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,to=(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)},$a=e=>e.find(t=>t.imageLabel==="10"),Ba=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},qa=(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},Ha=({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},xu=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},za=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Cu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Da,formatPriceToCurrency:Le,freightParsePrice:Jn,getAspectRatio:xu,getColorAndSizeFromSkuName:$t,getFirstImages:Ha,getProductNameWithoutSku:vu,getSKUName:Ma,getSkuInfos:La,getThumbImage:$a,getValidOffer:to,removeSlashes:bu,resizingImg:Ba,setVideoPlay:za,splitNameAndSizeFromFullName:eo,updatedResizedImg:qa},Symbol.toStringTag,{value:"Module"})),De=({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:u,sizes:l,price:p}=n,f={...r==="view_item"?{currency:ve.configs.currency,value:p,grade_disponivel:u??(l?Fa(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:ve.configs.currency}:{}},d=vt({data:n,customData:{...o,...a,...i},configs:ve.configs});De({event:r,data:{...c,ecommerce:{...a,...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 a=t.map(({node:c},u)=>vt({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}));De({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: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(P=>(f.productId??f.id)===P.productId);let m={...a,...c};if(d){const P=Ga(),$=Wa(P,d);$&&(m={...m,...$}),t==="add_to_cart"&&(a||c)&&Dn({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Dn({persistedData:P,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)??$t((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 vt({data:f,customData:{...n,...m??{...a,...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})});De({event:t,data:{...u,ecommerce:{value:i??l,currency:ve.configs.currency,items:p}}})},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: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(", "))),De({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):{},a=n.items.map(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return vt({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];De({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:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;De({event:t,data:{...r}})}},Fa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Su=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]}:{}}:{}}},vt=({data:e,customData:t,configs:r})=>({...Au(e,r==null?void 0:r.MAIN_IMAGE),...Eu(e),...Ru(e),...wu(e),...t}),Ua=()=>{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("_"))??[]:[]},Ga=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Wa=(e,t)=>e==null?void 0:e[t],Dn=({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)))},Au=(e,t="1")=>{var i,a,c,u,l,p,f,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??((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??eo((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)}},Ro=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Eu=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=Ro(n),a=Ro(o),c=i.slice(1,-1).split("/"),u=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:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},Ru=e=>{var o,i,a,c,u,l;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)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=$t(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},wu=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,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}},Va=()=>{const[e,t]=Ua(),[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}},ju=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Wa,getAvailablesSizes:Fa,getCategories:Su,getPageCategoryAndDepartmentFromSlug:Va,getPersistedData:Ga,getProductListInfoFromHead:Ua,pushDatalayer:De,updatePersistedData:Dn},Symbol.toStringTag,{value:"Module"})),Ka=I.createContext({}),Pu=({children:e,evtFunctionsConfigs:t})=>{const r=I.useRef({}),n=I.useRef(null),o=I.useRef(null),i=I.useRef({}),a=I.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){De({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 s.jsx(Ka.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>I.useContext(Ka),Xa=I.createContext({}),Iu=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,R;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:u,items:l,items:[{images:p,Videos:f}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=Zn(),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}=La({items:l,NAME_SPLIT_SYMBOL:o}),P=$a(p),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((R=$t((B=t.items)==null?void 0:B[0].name,o))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",O=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),M=({sku:q,size:F})=>{const{commonData:U,customData:K}=O();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return I.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:F}=O();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:a.current.index}}}),a.current.trigger=!1}M({})},[]),s.jsx(Xa.Provider,{value:{productData:t,productId:c,productName:u,productReference:h,tag:v,items:l,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:P,images:p,video:f[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:E,handleViewItemEvent:M},children:e})},ro=()=>{const e=I.useContext(Xa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Ou={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ie=Promise.resolve(!1),$n={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ie,addItem:()=>Ie,addSellerCode:()=>Ie,addMarketingData:()=>Ie,emptyCart:()=>{},removeItem:()=>Ie,setIsOpen:()=>{},shipping:()=>Ie,shippingUpdate:()=>Ie,toggleServiceToProduct:()=>Ie,updateItemQuantity:()=>Ie,insertProfileEmail:()=>Ie,setRecentlyAddedProducts:()=>{}},no=e=>e===0,Qa=(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},Ya=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,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:P}=e;return{availability:r,bundleItems:o,referenceId:S,productRefId:j,id:i,ean:u,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Qa(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:P,seller:_}},Za=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ja=(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:[]}},es=(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)??""}}),Bn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Nu=(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},Tu=e=>{const t=e.reduce((o,i)=>{const a=no(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}},ku=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(no(r==null?void 0:r.price)?0:r.quantity),0):0,ts=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:a,openTextField:c,paymentData:u,shippingData:l,totalizers:p}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(f=>Ya(f,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:u,shippingData:l,totalizers:p}},rs=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Mu=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Xe=(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},Lu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},ns=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),os=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),is=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},as=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},ss=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],cs=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:ts(c,n)})},us=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Du=e=>[...Array.isArray(e)?e:[e],"faststore"],ls=e=>{const t=e.get("utm_source")||He("utm_source"),r=e.get("utm_campaign")||He("utm_campaign"),n=e.get("utm_medium")||He("utm_medium"),o=e.get("utmi_cp")||He("utmi_cp"),i=e.get("utmi_pc")||He("utmi_pc"),a=e.get("utmi_p")||He("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},He=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},$u=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Ou,addItemOrder:Za,addNotification:us,createItemOrder:Ya,fetchCartAPI:Ee,findItemIndex:Bn,findOptions:ss,findTotalizerValue:Nu,getCategories:Qa,getCode:Xe,getQuantity:as,getRemoveId:ns,getSize:Mu,getTotalItems:ku,getTotalizer:Tu,getUrlParameter:He,getValue:os,initialState:$n,isGift:no,marketingTagsBuilder:Du,mergeOptionsPromise:cs,mountMarketingData:ls,orderFormValues:ts,promiseDefault:Ie,removeQuantity:Ja,updateItemSellerExternal:rs,updateOrderFormPromise:is,updateQuantity:es,wishlistArray:Lu},Symbol.toStringTag,{value:"Module"})),Bu=()=>{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:Za(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}}),u=async(m,h,y)=>{const g=Ja(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=es(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:u,shipping:l,shippingUpdate:p,updateItemQuantity:async(m,h,y,g,v)=>f(m,h,y,g).then(A=>A&&Array.isArray(A.items)?rs(A.items,y)?f(m,h,y,v):A:!1)}},qn="soma::cart",nt="soma::options",Qe=ct.create((e,t)=>{const r=Bu(),n=async(o,i,a)=>{e({loading:!0});const c=await is(o);if(typeof c!="boolean"){e({...c});const u=await cs(Ve.get(nt),a);return Ve.set(nt,u),os(c,i).finally(()=>e({loading:!1,options:u}))}return Ie};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ve.get(nt).then(l=>ss(l,i.items));Ve.set(qn,i),Ve.set(nt,a),e({...i,options:a});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 Ve.get(qn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...$n,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 ns(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:u,items:l}=t();return n(()=>{var p;return r.updateItemQuantity(u,l,i,a,((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 $n}),qu=()=>Qe(e=>e),ds=ct.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>us(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),fs=()=>ds(e=>e.notifications),ps=()=>ds(e=>e.actions),Hu=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:nt,KEY_INDEXED_STORE:qn,useCartStore:Qe,useGetCartStoreState:qu,useGetNotificationActions:ps,useGetNotificationsStore:fs},Symbol.toStringTag,{value:"Module"})),zu=6e3,ms=I.createContext({}),hs=({children:e,...t})=>{const{items:r}=Qe(),[n,o]=I.useState([]),i=I.useRef(null),a=I.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 I.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},zu))},[n]),s.jsx(ms.Provider,{value:I.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},ut=()=>{const e=I.useContext(ms);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class gs{constructor(){Xt(this,"events",{});Xt(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 ys=I.createContext({}),Fu=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=I.useState(!0),a=r==="/",c=I.useRef(new gs),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(a),p=I.useRef(l);return I.useEffect(()=>{var m;const f=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(Mn.get("lastMedias")||Mn.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]),I.useEffect(()=>{const f=u(a);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[a]),s.jsx(ys.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:s.jsx(hs,{children:e})})},Ne=()=>I.useContext(ys),_s=I.createContext({}),Uu=({children:e,...t})=>s.jsx(_s.Provider,{value:{...t},children:e}),Te=()=>I.useContext(_s),Fe=(e,t)=>ct.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}}}),st={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},lt=new Set,Gu=()=>{lt.forEach(e=>{e()})},vs=ct.create((e,t)=>{const r=()=>e({value:st.category});return lt.add(r),{value:st.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Bt=()=>vs(e=>e.value),Be=()=>vs(e=>e.actions),bs=Fe(st.menuMobileIsOpen,lt),oo=()=>bs(e=>e.value),Ue=()=>bs(e=>e.actions),xs=Fe(st.searchModalIsOpen,lt),Wu=()=>xs(e=>e.value),io=()=>xs(e=>e.actions),Cs=Fe(st.userMenuIsOpen,lt),Vu=()=>Cs(e=>e.value),qt=()=>Cs(e=>e.actions),Ku=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Gu,useActionsHeaderCategory:Be,useActionsMenuMobileIsOpen:Ue,useActionsSearchModalIsOpen:io,useActionsUserMenuIsOpen:qt,useGetHeaderCategoryStore:Bt,useGetMenuMobileIsOpen:oo,useGetSearchModalIsOpen:Wu,useGetUserMenuIsOpen:Vu},Symbol.toStringTag,{value:"Module"})),Ye={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Je=new Set,Xu=()=>{Je.forEach(e=>{e()})},Ss=ct.create(e=>{const t=()=>e({value:Ye.selectedSkuInfo});return Je.add(t),{value:Ye.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Qu=()=>Ss(e=>e.value),Yu=()=>Ss(e=>e.actions),As=Fe(Ye.openLetMeKnow,Je),Zu=()=>As(e=>e.value),Ju=()=>As(e=>e.actions),Es=Fe(Ye.showNotify,Je),el=()=>Es(e=>e.value),tl=()=>Es(e=>e.actions),Rs=Fe(Ye.showBottomNavigation,Je),rl=()=>Rs(e=>e.value),nl=()=>Rs(e=>e.actions),ws=Fe(Ye.openMeasurements,Je),ol=()=>ws(e=>e.value),il=()=>ws(e=>e.actions),al=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Xu,useActionsPDPOpenLetMeKnow:Ju,useActionsPDPOpenMeasurements:il,useActionsPDPSelectedSkuInfo:Yu,useActionsPDPShowBottomNavigation:nl,useActionsPDPShowNotify:tl,useGetPDPOpenLetMeKnow:Zu,useGetPDPOpenMeasurements:ol,useGetPDPSelectedSkuInfo:Qu,useGetPDPShowBottomNavigation:rl,useGetPDPShowNotify:el},Symbol.toStringTag,{value:"Module"})),js=I.createContext({}),sl=({children:e,headerData:t,...r})=>{var u,l;const n=I.useRef(null),o=I.useRef(null),i=I.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:c}=Ne();return(u=a.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=a.current)==null||v.publish("herobanner:change_controllers_variant",h),c.current&&(c.current.headerVariant=h))}),(l=a.current)==null||l.subscribe("header:change_position",p=>{n.current&&(n.current.style.position=p)}),I.useEffect(()=>{const p=new AbortController,f=b.helpers.throttle(()=>{var m;return(m=a.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()}},[]),s.jsx(js.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>I.useContext(js),Ps=I.createContext({}),Is=({children:e})=>{const t=I.useRef(null),r=I.useRef(null),n=oo(),o=I.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 I.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]),I.useEffect(()=>{r.current=document.body},[]),s.jsx(Ps.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},dt=()=>I.useContext(Ps),cl=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},ul=(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?cl(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Os=I.createContext({}),Ns=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=I.useState(!1),a=I.useRef(null),[c,u]=I.useState(!1),[l,p]=I.useState({left:0,top:0}),f=I.useCallback(()=>{u(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return I.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}=ul(m,d,r??0);p({left:h,top:y}),u(!1)}},[r,o]),s.jsx(Os.Provider,{value:I.useMemo(()=>({...n,...l,handleClose:f,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,f,c,o,i,u]),children:e})},Ge=()=>{const e=I.useContext(Os);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Ts=I.createContext({}),ll=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Qe(),{setRecentlyAdded:o}=ut(),i=I.useRef(""),a=fs(),{addNotification:c,removeNotification:u}=ps(),{addCoupon:l,addItem:p,addSellerCode:f,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;I.useEffect(()=>{const R=Mn.get("lastMedias");if(n.id&&R&&i.current!==R){i.current=R;const q=new URLSearchParams(R),F=ls(q);d(F)}},[n,d]);const S=I.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:W}=U,z=String(W??"").split(" - ");return Xe((z==null?void 0:z[0])??"",R,!!K)}return Xe(String(U.coupon),R,!0)}return Xe("","")}).catch(()=>Promise.resolve({code:400})),[l,f]),C=I.useCallback((R,q,F)=>{const{id:U}=R;_(U,q,F)},[_]),j=I.useCallback((R,q,F=!1)=>{if(!R)return;const{id:U}=R,K=Bn(n.items,U);if(K!==-1&&!F){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;C(R,z,q)}else p({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||o(W=>[...W,R])},[p,C,n.items,h,o]),x=I.useCallback((R,q)=>{if(!R||!Array.isArray(R))return;o(U=>[...U,...R]);const F=R.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=Bn(n.items,K),w=as(W??1,ne);return{id:K,quantity:w,seller:z}});p(F,q)},[p,n.items,o]),P=I.useCallback(async(R,q,F)=>R?y(R).then(()=>(c(q??`${t}`,F),Xe(R,R))):Promise.resolve(Xe("","Product id required")),[c,y]),$=I.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=I.useCallback((R,q="BRA")=>g(R,q),[g]),O=I.useCallback(R=>{R&&v(R)},[v]),M=I.useCallback(async(R,q,F)=>{const U=n.items.findIndex(W=>W.id===R);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),B=I.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 s.jsx(Ts.Provider,{value:I.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:a,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:u,removeToCart:P,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:O,toggleGiftItemCart:M,updateItemQuantity:B}),[r,S,j,x,a,$,c,n,u,P,E,O,M,B]),children:e})},We=()=>{const e=I.useContext(Ts);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},ks=I.createContext({}),ao=({children:e,fetch:t})=>{const r=I.useRef(!0),[n,o]=I.useState(null),[i,a]=I.useState(!1);return I.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,a(!0)}})()},[t]),s.jsx(ks.Provider,{value:I.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},so=()=>{const e=I.useContext(ks);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Ms=I.createContext({}),dl=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const a=I.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 s.jsx(Ms.Provider,{value:I.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},Ls=()=>{const e=I.useContext(Ms);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},fl={default_option:"score:desc"},pl={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Ds=I.createContext({}),ml=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=so(),{router:i}=Te(),a=I.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=I.useCallback(()=>{const f=new URLSearchParams;f.set("sort",fl.default_option),f.set("page","1"),i.push(`?${f.toString()}`)},[i]),u=I.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=I.useCallback(f=>{const d=new URLSearchParams(Ln.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 a(f,d)},[a,u,t]),p=I.useCallback(f=>{const d=new URLSearchParams(Ln.convertSearchParams(t));d.set("sort",f.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return s.jsx(Ds.Provider,{value:I.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})},hl=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=Ls();return s.jsx(ao,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:s.jsx(ml,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},gl=()=>{const e=I.useContext(Ds);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},$s=I.createContext({}),yl=({children:e})=>{const{data:t,...r}=so(),[n,o]=I.useState(0),{sendDataLayerEvent:i}=ge();return I.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($s.Provider,{value:I.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:pl,total:n}),[t,r,n]),children:e})},_l=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>s.jsx(ao,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:s.jsx(yl,{state:r,children:e})}),vl=()=>{const e=I.useContext($s);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Bs=I.createContext({}),bl=({children:e,term:t})=>{const[r,n]=I.useState([]),[o,i]=I.useState(!1);return I.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]),s.jsx(Bs.Provider,{value:I.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},xl=({children:e,...t})=>s.jsx(bl,{...t,children:e}),Cl=()=>{const e=I.useContext(Bs);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},qs=I.createContext({searches:[],isLoading:!1,error:null}),Sl=({children:e})=>{const[t,r]=I.useState([]),[n,o]=I.useState(!0),[i,a]=I.useState(null);return I.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){a(u instanceof Error?u.message:"Erro desconhecido")}finally{o(!1)}})()},[]),s.jsx(qs.Provider,{value:I.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Al=()=>{const e=I.useContext(qs);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},El={contexts:{addToCart:{hook:Ge,provider:Ns},cart:{hook:We,provider:ll},cms:{FlagsAndTags:{context:Yn,hook:Zn,provider:gu}},events:{hook:ge,provider:Pu},global:{hook:Ne,provider:Fu,mediator:gs},header:{hook:xe,provider:sl},menuMobile:{hook:dt,provider:Is},next:{hook:Te,provider:Uu},pdp:{provider:yu,hook:_u},pdpdata:{hook:ro,provider:Iu},searchFacets:{hook:gl,provider:hl},searchProducts:{hook:vl,provider:_l},searchRoot:{hook:so,provider:ao},searchSearch:{hook:Ls,provider:dl},searchSuggestedTerms:{hook:Cl,provider:xl},searchTopSearchs:{hook:Al,provider:Sl},ui:{hook:ut,provider:hs}},hooks:{useBackPDC:Ta},stores:{cart:Hu,header:Ku,pdp:al}};function Hs(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 zs(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 Rl=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function wl(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function jl(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Fs=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ot=(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),Pl=Object.freeze(Object.defineProperty({__proto__:null,debounce:jl,getCookie:Hs,getDaysHoursMinutesSeconds:ot,getMilliSeconds:Fs,removeAccentsAndReplaceSpaces:Rl,setCookie:zs,throttle:wl},Symbol.toStringTag,{value:"Module"})),Il={cart:$u,events:ju,product:Cu,utils:Pl},co={helpers:Il};var Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ol(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 Hn={exports:{}},Re={};Re._=Re._interop_require_default=Nl;function Nl(e){return e&&e.__esModule?e:{default:e}}var bt={exports:{}},Qt={},wo;function Gs(){return wo||(wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var u in c)Object.defineProperty(a,u,{enumerable:!0,get:c[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(a){const c={};return a.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(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(u=>{let[l,p]=u;Array.isArray(p)?p.forEach(f=>c.append(l,n(f))):c.set(l,n(p))}),c}function i(a){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=>a.delete(f)),p.forEach((f,d)=>a.append(d,f))}),a}}(Qt)),Qt}var Yt={},xt={},jo;function zt(){if(jo)return xt;jo=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)}xt._=xt._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={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var u=a?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 xt}var Po;function Ws(){return Po||(Po=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 a},formatWithValidation:function(){return c}});const n=zt()._(Gs()),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 a=["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=>{a.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(Yt)),Yt}var Zt={},Io;function Tl(){return Io||(Io=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}}(Zt)),Zt}var Jt={},Oo;function Ft(){return Oo||(Oo=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 a},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,P=new Array(x),$=0;$<x;$++)P[$]=arguments[$];return C||(C=!0,j=S(...P)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=a();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 P=await S.getInitialProps(C);if(x&&l(x))return P;if(!P){const $='"'+u(S)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(P).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"),P}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})}}(Jt)),Jt}var Ct={exports:{}},er={},No;function Vs(){return No||(No=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(/\/$/,"")||"/"}}(er)),er}var tr={},To;function uo(){return To||(To=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:""}}}(tr)),tr}var ko;function Ut(){return ko||(ko=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Vs(),n=uo(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+u:a.endsWith("/")?""+a+c+u:a+"/"+c+u:""+(0,r.removeTrailingSlash)(a)+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)}(Ct,Ct.exports)),Ct.exports}var rr={},St={exports:{}},nr={},Mo;function Ks(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=uo();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(nr)),nr}var Lo;function kl(){return Lo||(Lo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Ks(),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)}(St,St.exports)),St.exports}var Do;function Xs(){return Do||(Do=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Ft(),r=kl();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}}}(rr)),rr}var or={},ir={},$o;function Ml(){return $o||($o=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,u)=>[...c,...u],[]);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 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),a=!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(a)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,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()}}(ir)),ir}var ar={},Bo;function Ll(){return Bo||(Bo=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)}}(ar)),ar}var qo;function Dl(){return qo||(qo=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=Ml(),n=Ll()}(or)),or}var sr={},cr={},Ho;function $l(){return Ho||(Ho=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Ft();function r(n){let{re:o,groups:i}=n;return a=>{const c=o.exec(a);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}}}(cr)),cr}var ur={},lr={},dr={},fr={},zo;function Bl(){return zo||(zo=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}}(fr)),fr}var pr={},Fo;function ql(){return Fo||(Fo=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(")")}}(pr)),pr}var Uo;function Hl(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var u in c)Object.defineProperty(a,u,{enumerable:!0,get:c[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=Bl(),n=ql();function o(a){return(0,r.ensureLeadingSlash)(a.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(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(dr)),dr}var Go;function zl(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var u in c)Object.defineProperty(a,u,{enumerable:!0,get:c[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Hl(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(c=>n.find(u=>c.startsWith(u)))!==void 0}function i(a){let c,u,l;for(const p of a.split("/"))if(u=n.find(f=>p.startsWith(f)),u){[c,l]=a.split(u,2);break}if(!c||!u||!l)throw new Error(`Invalid interception route: ${a}. 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: ${a}. 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: ${a}. 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}}}(lr)),lr}var mr={},Wo;function Fl(){return Wo||(Wo=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}}(mr)),mr}var Vo;function Ul(){return Vo||(Vo=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=zl(),n=Fl(),o=Vs(),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 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:P}=c(C[1]);return v[j]={pos:A++,repeat:P,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:j,repeat:x,optional:P}=c(C[1]);return v[j]={pos:A++,repeat:x,optional:P},x?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}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 P=!1;return(x.length===0||x.length>30)&&(P=!0),isNaN(parseInt(x.slice(0,1)))||(P=!0),P&&(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?a: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+"$"}}}(ur)),ur}var Ko;function Gl(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=$l(),r=Ul();function n(o,i,a){let c="";const u=(0,r.getRouteRegex)(o),l=u.groups,p=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||a;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}}}(sr)),sr}var Xo;function Wl(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=Gs(),n=Ws(),o=Tl(),i=Ft(),a=Ut(),c=Xs(),u=Dl(),l=Gl();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,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:P}=(0,l.interpolateAs)(_.pathname,_.pathname,j);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(j,P)}))}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)}(bt,bt.exports)),bt.exports}var At={exports:{}},hr={},gr={},Qo;function Qs(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=uo();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}}(gr)),gr}var Yo;function Vl(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Qs(),r=Ks();function n(o,i,a,c){if(!i||i===a)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)}}(hr)),hr}var Zo;function Kl(){return Zo||(Zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Ut(),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)(Vl().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)}(At,At.exports)),At.exports}var yr={},Jo;function Ys(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(I).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(yr)),yr}var _r={},ei;function Xl(){return ei||(ei=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 a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return u}});const n=Re._(I);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(_r)),_r}var Et={exports:{}},Rt={exports:{}},ti;function Zs(){return ti||(ti=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)}(Rt,Rt.exports)),Rt.exports}var ri;function Ql(){return ri||(ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=I,n=Zs(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=a.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},a.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=a.findIndex(A=>A.root===m.root&&A.margin===m.margin);v>-1&&a.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)}(Et,Et.exports)),Et.exports}var wt={exports:{}},jt={exports:{}},vr={},ni;function Yl(){return ni||(ni=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}}}(vr)),vr}var oi;function Zl(){return oi||(oi=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?Yl().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)}(jt,jt.exports)),jt.exports}var Pt={exports:{}},br={},ii;function Jl(){return ii||(ii=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 u=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(l=>l.toLowerCase()===o))return c}}}}(br)),br}var ai;function ed(){return ai||(ai=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 Jl().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)}(Pt,Pt.exports)),Pt.exports}var si;function td(){return si||(si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Ut(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,u){if(process.env.__NEXT_I18N_SUPPORT){const l=Zl().normalizeLocalePath,p=ed().detectDomainLocale,f=a||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)}(wt,wt.exports)),wt.exports}var It={exports:{}},ci;function rd(){return ci||(ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Qs(),n=Ut(),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)}(It,It.exports)),It.exports}var Ot={exports:{}},ui;function nd(){return ui||(ui=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 a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",a="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._(I),o=Wl(),i=Xs(),a=Ws(),c=Ft(),u=Kl(),l=Ys(),p=Xl(),f=Ql(),d=td(),m=rd(),h=nd(),y=new Set;function g(j,x,P,$,E,O){if(typeof window>"u"||!O&&!(0,i.isLocalURL)(x))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in j?j.locale:void 0,R=x+"%"+P+"%"+B;if(y.has(R))return;y.add(R)}const M=O?j.prefetch(x,E):j.prefetch(x,P,$);Promise.resolve(M).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function A(j,x,P,$,E,O,M,B,R,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!R&&!(0,i.isLocalURL)(P)))return;j.preventDefault();const K=()=>{const W=M??!0;"beforePopState"in x?x[E?"replace":"push"](P,$,{shallow:O,locale:B,scroll:W}):x[E?"replace":"push"]($||P,{forceOptimisticNavigation:!q,scroll:W})};R?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,a.formatUrl)(j)}const C=n.default.forwardRef(function(x,P){let $;const{href:E,as:O,children:M,prefetch:B=null,passHref:R,replace:q,shallow:F,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...T}=x;$=M,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,k=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&&!O){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:O?_(O):G}}const[ie,me]=(0,o.resolveHref)(D,E,!0);return{href:ie,as:O?(0,o.resolveHref)(D,O):me||ie}},[D,E,O]),L=n.default.useRef(Y),N=n.default.useRef(ee);let re;if(w)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'),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"?`
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:P,[ce,ue,se]=(0,f.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(N.current!==ee||L.current!==Y)&&(se(),N.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||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,ue,K,k,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 W=="function"&&W(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,k))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||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&&(!k&&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)})(Hn,Hn.exports);var od=Hn.exports,id=od;const je=Ht(id),ad=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let a;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(a=c.map(l=>{switch(l){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const u={type:"p",text:i,...a&&{styleText:a}};switch(o){case"header-one":u.type="h1";break;case"header-two":u.type="h2";break;case"header-three":u.type="h3";break;case"unordered-list-item":u.type="li";break;case"ordered-list-item":u.type="li";break;case"blockquote":u.type="blockquote";break;case"code-block":u.type="pre";break;default:u.type="p"}r.push(u)}),r},sd=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},zn=e=>{const t=new Me.CompositeDecorator([{strategy:sd,component:je}]),r=Me.convertFromRaw(e);return Me.EditorState.createWithContent(r,t)},cd=e=>Me.convertFromRaw(e),Fn=Me.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ud=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:zn,EXTENDED_BLOCK_RENDER_MAP:Fn,GET_CONTENT_STATE:cd,convertDraftToHTML:ad},Symbol.toStringTag,{value:"Module"})),Ze={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},ld=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(p=>{var f,d,m,h;return((d=(f=p.config)==null?void 0:f.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(m=p.config)==null?void 0:m.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,a=o==null?void 0:o.config.responsive.gapSections,c=t==null?void 0:t.find(p=>{var f,d,m,h;return((d=(f=p.config)==null?void 0:f.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(m=p.config)==null?void 0:m.seo)==null?void 0:h.slug)===e}),u=c==null?void 0:c.config.responsive.gapCustom,l=c==null?void 0:c.config.responsive.gapSections;return s.jsxs(s.Fragment,{children:[s.jsx(b.Utils.Column,{gap:i&&a?a:n,className:b.helpers.classNameConcat(Ze["responsive-desktop-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),s.jsx(b.Utils.Column,{gap:u&&l?l:n,className:b.helpers.classNameConcat(Ze["responsive-mobile-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(c==null?void 0:c.sections)??[]})})]})},Ke=e=>({centro:"center",esquerda:"start",direita:"end"})[e],dd=({expanded:e,content:t})=>s.jsxs("details",{open:e,children:[t.textStructureReduced?s.jsx("summary",{onClick:r=>r.preventDefault(),children:s.jsx(Me.Editor,{editorKey:"draft-editor-1",blockRenderMap:Fn,editorState:t!=null&&t.textStructureReduced?zn(JSON.parse(t.textStructureReduced)):Me.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{}),t.showTextStructureExpander&&t.textStructure?s.jsx(s.Fragment,{children:s.jsx(Me.Editor,{editorKey:"draft-editor-1",blockRenderMap:Fn,editorState:t.textStructure?zn(JSON.parse(t.textStructure)):Me.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),fd={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},pd="_textContentWrapper_1bigo_5",md="_textContentSection_1bigo_13",Un={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:pd,textContentSection:md},hd="_link_w24h0_1",gd="_wrapper_w24h0_98",yd="_text_w24h0_106",xr={link:hd,wrapper:gd,text:yd},et=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:u,disablePadding:l,...p})=>{const f=b.helpers.ValidateProp({fieldTypes:at.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:at.Mode,property:i,fallback:"default"});return s.jsx(je,{...p,className:b.helpers.classNameConcat(xr.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:s.jsxs("div",{className:xr.wrapper,onClick:u,children:[t==null?void 0:t.start,s.jsx("p",{className:xr.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},lo=({data:e,ICONS:t})=>{var o;const[r,n]=I.useState(!1);return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(e.textStructureAlignment)},columnWrapper:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(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:Un.textContentWrapper,style:{alignItems:Ke(e.textStructureAlignment)},children:[s.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ke(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:fd["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx(dd,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(et,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Un["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,{})]})})},_d=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],li=e=>({centro:"center",esquerda:"start",direita:"end"})[e],vd="_image_lypfr_1",bd={image:vd},xd=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Te();return s.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(bd.image,t),"data-object-fit":r??"cover"})},Cd=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),ke={Image:xd,Video:Cd},Gn=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=I.useState(Fs(new Ao.TZDate(Date.now(),r),new Ao.TZDate(e,r))),[a,c]=I.useState(!1);I.useEffect(()=>{a||c(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,a]);const u=ot(o,"days");return a&&o>0?s.jsxs(b.Timer.Root,{...n,children:[u?s.jsxs(s.Fragment,{children:[s.jsx(b.Timer.Digit,{label:"dias",value:u}),s.jsx(b.Timer.Separator,{})]}):null,s.jsx(b.Timer.Digit,{label:"horas",value:ot(o,"hours")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"min",value:ot(o,"minutes")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"segs",value:ot(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},di={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},fi=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,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}=Te();return s.jsxs(b.Banner.Container,{...i,children:[s.jsxs(b.Banner.ImageWrapper,{className:di["banner-image-wrapper-modifier"],style:l?{background:f}:void 0,children:[a&&s.jsx(ke.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&s.jsx(j,{src:C,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&s.jsx("div",{style:{background:f}})]}),h||S||_?s.jsx(b.Banner.Slot,{..._d(d??"centro"),className:di["content-modifier"],style:{textAlign:li(m)},children:s.jsxs(b.Utils.Column,{gap:"16px",alignItems:li(m),children:[h&&y==="timer-first"&&s.jsx(Gn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),s.jsx(lo,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&s.jsx(Gn,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},Sd={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Ad(e,t,r){const[n,o]=I.useState(!1),{threshold:i}=r||{};return I.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=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 fo=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=I.useRef(null),u=Ad(c,o,r),{sendDataLayerEvent:l}=ge();return I.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),s.jsx("div",{...a,ref:c,className:b.helpers.classNameConcat(Sd["observer-wrapper"],i),children:e})},Js=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:u,componentIndex:l}=e,p=typeof u=="number"?`:${u+1}`:"",f={creative_name:n,creative_slot:`${n}-${a.current}:${l+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=I.useRef(null),m=I.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 s.jsx(fo,{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?s.jsx(je,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:f,index:u})},children:s.jsx(fi,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):s.jsx(fi,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},ec=e=>s.jsx(Js,{...e}),Ed={Banner:ec},rt={"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"},Rd=({data:e,CONSTANTS:t})=>{var l;const{isMobile:r}=Ne(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,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 s.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:s.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:b.helpers.classNameConcat(rt["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(b.TextStructure.Root,{children:[s.jsx(b.TextStructure.DivWrapper,{className:rt["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:rt["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((p,f)=>s.jsx(b.Carousel.Item,{className:rt["card-modifier"],style:u,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:p.icon,size:n==="medium"?"medium":"small"})},children:s.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[s.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?s.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):s.jsx(s.Fragment,{})]})})})},`bennefit=${f}`))}),!r&&a.totalPages>1?s.jsxs(b.Carousel.Controller,{className:rt["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:p=>c==null?void 0:c.navigateTo(p)})]}):s.jsx(s.Fragment,{})]})})},wd=({data:e,ICONS:t})=>s.jsx("div",{className:b.helpers.classNameConcat(Un.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(lo,{data:e,ICONS:t})}),jd={Banner:Ed,BannerSection:Js,BennefitsBarSection:Rd,DataScreening:ld,SingleBannerSection:ec,TextContentSection:wd,TextContent:lo},Pd={Components:jd,helpers:ud},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"},tc=({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})})})]});tc.displayName="AddToCart.Card.Name";const rc=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Le(r/100),c=Le(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")})})})})};rc.displayName="AddToCart.Card.PriceQuantity";const Id="_skeleton_12b79_1",Od={skeleton:Id},Nd=({style:e})=>s.jsx("div",{style:e,className:Od.skeleton}),nc=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Ge(),[c,u]=I.useState(n??"");return I.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]),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(ke.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(Nd,{})})}),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})]})]})};nc.displayName="AddToCart.Card.StyleSize";const{helpers:Td}=co,oc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:u,price:l,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=Ge(),{size:d}=Td.product.getColorAndSizeFromSkuName(a??o,f);return s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[s.jsx(tc,{brand:i.name,name:o}),s.jsx(rc,{price:l,listPrice:p,quantity:u,productId:t.id}),s.jsx(nc,{size:d,texture:r,productGroupID:c})]})};oc.displayName="AddToCart.Card.Content";const ic=({image:e,thumbnail:t=!1})=>s.jsx(ke.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});ic.displayName="AddToCart.Card";const ac=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=qa(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[s.jsx(ic,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(oc,{item:t,texture:r})]})};ac.displayName="AddToCart.Card";const sc=({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(ze.Footer,{})]});sc.displayName="AddToCart.Layout.Content";const cc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ge(),{cartStore:{totalizers:i},setIsOpen:a}=We(),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 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})]})};cc.displayName="AddToCart.Layout.Footer";const uc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=We(),{recentlyAddedProducts:i}=ut(),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,u)=>u<a).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 s.jsx(ze.Card,{item:c,thumbnail:r,texture:u},c.itemOffered.sku)}),e]})};uc.displayName="AddToCart.Layout.Items";const lc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ge(),{isMobile:o}=Ne();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})]})};lc.displayName="AddToCart.Modal";const kd=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ge(),o=I.useRef(t);return I.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})},dc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=ut(),{isMobile:i}=Ne(),a=o.length>3?4:o.length;return s.jsx(Ns,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx(kd,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};dc.displayName="AddToCart.Root";const fc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:u,top:l}=Ge();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:u,left:i,size:"medium",position:"top",top:l,children:s.jsx("div",{className:Pe["add-to-cart--tooltip"],ref:c,children:e})})};fc.displayName="AddToCart.Tooltip";const ze={Card:ac,Content:sc,Footer:cc,Items:uc,Modal:lc,Root:dc,Tooltip:fc},po=({title:e,...t})=>{const{recentlyAddedProducts:r}=ut(),{isMobile:n}=Ne(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(ze.Root,{isMobile:n,count:r.length,component:s.jsx(ze.Content,{title:e,children:s.jsx(ze.Items,{thumbnail:a,children:i&&s.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};po.displayName="AddToCart";const pi={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Md=({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"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return s.jsx(b.Card,{...a,shadow:!0,padding:"small",className:b.helpers.classNameConcat(pi["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:pi["backtotop-btn"],onClick:p,style:{...l},"data-orientation":n,children:[r,e]})})},Ld=({page:e,data:t})=>{const{pathname:r}=Te(),n=I.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return I.useEffect(()=>{const u=Hs("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}}}),zs("login_event","",{expires:p})}},[]),I.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}=Va(),h=m,y=d;u={page_category:"lista_produtos",...f&&{page_departament:f}},a.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={},a.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var Wn={exports:{}};function Dd(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 Cr={},Sr={},mi;function $d(){return mi||(mi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(I).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Sr)),Sr}var hi;function Bd(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(I),n=$d();function o(h){return h&&h.default?h.default:h}const i=[],a=[];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 Dd.resolveWeak=="function"?g.webpack():g.modules;C&&a.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(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const m=f}(Cr)),Cr}(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._(I),i=n._(Bd()),a=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,!a)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)})(Wn,Wn.exports);var qd=Wn.exports,Hd=qd;const mo=Ht(Hd);var Vn={exports:{}},Ar={},gi;function pc(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(I).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Ar)),Ar}var Nt={exports:{}},yi;function zd(){return yi||(yi=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 a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(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)})}:a=(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=>{a(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)}(Nt,Nt.exports)),Nt.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=zt(),i=n._(Na),a=o._(I),c=pc(),u=zd(),l=Zs(),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 P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=x,j.appendChild(P)})}},h=C=>{const{src:j,id:x,onLoad:P=()=>{},onReady:$=null,dangerouslySetInnerHTML:E,children:O="",strategy:M="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(P,B);return}const F=()=>{$&&$(),f.add(q)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),P&&P.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){B&&B(W)});E?(U.innerHTML=E.__html||"",F()):O?(U.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",F()):j&&(U.src=j,p.set(j,K));for(const[W,z]of Object.entries(C)){if(z===void 0||d.includes(W))continue;const ne=u.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}M==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",M),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:P=()=>{},onReady:$=null,strategy:E="afterInteractive",onError:O,stylesheets:M,...B}=C,{updateScripts:R,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=j||x;W.current||($&&ne&&f.has(ne)&&$(),W.current=!0)},[$,j,x]);const z=(0,a.useRef)(!1);if((0,a.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:P,onReady:$,onError:O,...B}]),R(q)):F&&F()?f.add(j||x):F&&!F()&&h(C)),U){if(M&&M.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"}),a.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),a.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)})(Vn,Vn.exports);var Fd=Vn.exports,Ud=Fd;const Gd=Ht(Ud),Wd=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(Gd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Vd=mo(()=>Promise.resolve(Wd),{ssr:!1}),Kd="_footer__bottom_1o9af_2",Xd="_footer__wrapper_1o9af_10",Qd="_footer__main_1o9af_39",Yd="_footer__legalInformation_1o9af_55",Zd="_footer__column_1o9af_77",Jd="_footer__columnContent_1o9af_87",ef="_footer__item_1o9af_91",tf="_footer__itemLink_1o9af_107",rf="_footer__columnTitle_1o9af_122",nf="_footer__columnTitleIcon_1o9af_134",of="_footer__iconList_1o9af_147",af="_footer__itemSmallText_1o9af_157",sf="_payment_1o9af_168",cf="_footer__iconContainer_1o9af_173",uf="_footer__iconListSubHeader_1o9af_178",lf="_accordionWrapper_1o9af_200",df="_accordionHeader_1o9af_204",ff="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Kd,footer__wrapper:Xd,footer__main:Qd,footer__legalInformation:Yd,footer__column:Zd,footer__columnContent:Jd,footer__item:ef,footer__itemLink:tf,footer__columnTitle:rf,footer__columnTitleIcon:nf,footer__iconList:of,footer__itemSmallText:af,payment:sf,footer__iconContainer:cf,footer__iconListSubHeader:uf,accordionWrapper:lf,accordionHeader:df,accordionTextWrapper:ff,"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 mc={},ho={},ft={};(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)}}})(ft);var hc={};(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:u}=r;const l=20,p=i?i*40:n,f=a?a*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"}})(hc);var Gt={};(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}})(Gt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=ft,r=hc,n=Gt,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 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),P=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[P]})}}function m(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:P,fill:$=!1,style:E,onLoad:O,onLoadingComplete:M,placeholder:B="empty",blurDataURL:R,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,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 G=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),le=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:G,deviceSizes:le}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;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=k;k=le=>{const{config:Ce,...Q}=le;return G(Q)}}if(F){F==="fill"&&($=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=G[F];Ce&&(E={...E,...Ce});const Q=le[F];Q&&!v&&(v=Q)}let Y="",ee=p(x),L=p(P),N,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(N=G.blurWidth,re=G.blurHeight,R=R||G.blurDataURL,Y=G.src,!$){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const le=ee/G.width;L=Math.round(G.height*le)}else if(!ee&&L){const le=L/G.height;ee=Math.round(G.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(P)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 "'+P+'".')}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 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
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 G=T({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:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z}))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(D?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},O?{}:{color:"transparent"},R),se=!L&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:k,blurWidth:N,blurHeight:re,blurDataURL:E||"",objectFit:le.objectFit})+'")':'url("'+$+'")':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&&$==="blur"&&E!=null&&E.startsWith("/")&&(H.backgroundImage='url("'+E+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:T});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:$})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:k,decoding:"async",className:C,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:$,fill:D}}}})(uo);var Wn={exports:{}},Tt={exports:{}},Ar={},pi;function Fd(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});const t=B,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,i=r?()=>{}:t.useEffect;function o(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const m=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(m,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var m;return c==null||(m=c.mountedInstances)==null||m.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),i(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Ar)),Ar}var Rr={},mi;function Ud(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Rr)),Rr}var Er={},hi;function Gd(){return hi||(hi=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:i=!1,hasQuery:o=!1}=r===void 0?{}:r;return n||i&&o}}(Er)),Er}var gi;function Wd(){return gi||(gi=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 m},default:function(){return v}});const n=Ee,o=Ze._(B),a=n._(Fd()),c=Ud(),l=rc(),u=Gd(),f=pt;function m(A){A===void 0&&(A=!1);const _=[o.default.createElement("meta",{charSet:"utf-8"})];return A||_.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(A,_){return typeof _=="string"||typeof _=="number"?A:_.type===o.default.Fragment?A.concat(o.default.Children.toArray(_.props.children).reduce((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):A.concat(_)}const p=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,S=new Set,C={};return j=>{let x=!0,P=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){P=!0;const D=j.key.slice(j.key.indexOf("$")+1);A.has(D)?x=!1:A.add(D)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let D=0,R=p.length;D<R;D++){const I=p[D];if(j.props.hasOwnProperty(I))if(I==="charSet")S.has(I)?x=!1:S.add(I);else{const M=j.props[I],$=C[I]||new Set;(I!=="name"||!P)&&$.has(M)?x=!1:($.add(M),C[I]=$)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(m(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(P=>C.props.href.startsWith(P))){const P={...C.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,o.default.cloneElement(C,P)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const P=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+P+`). 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,f.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 o.default.cloneElement(C,{key:x})})}function g(A){let{children:_}=A;const S=(0,o.useContext)(c.AmpStateContext),C=(0,o.useContext)(l.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,u.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)}(Tt,Tt.exports)),Tt.exports}var wr={},yi;function Vd(){return yi||(yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return i}});const r=Ee._(B),n=Ut,i=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(i.displayName="ImageConfigContext")}(wr)),wr}var jr={},Pr={},Ir={exports:{}};const Kd=su(il.__viteBrowserExternal);var Nr={},Or={},Tr,_i;function ic(){return _i||(_i=1,Tr=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 i=42;t[r]=i;for(var o 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!==i||c.enumerable!==!0)return!1}return!0}),Tr}var Mr,vi;function Gt(){if(vi)return Mr;vi=1;var e=ic();return Mr=function(){return e()&&!!Symbol.toStringTag},Mr}var kr,bi;function ac(){return bi||(bi=1,kr=Object),kr}var Lr,xi;function Xd(){return xi||(xi=1,Lr=Error),Lr}var Dr,Ci;function Qd(){return Ci||(Ci=1,Dr=EvalError),Dr}var $r,Si;function Yd(){return Si||(Si=1,$r=RangeError),$r}var Br,Ai;function Zd(){return Ai||(Ai=1,Br=ReferenceError),Br}var qr,Ri;function sc(){return Ri||(Ri=1,qr=SyntaxError),qr}var Hr,Ei;function mt(){return Ei||(Ei=1,Hr=TypeError),Hr}var zr,wi;function Jd(){return wi||(wi=1,zr=URIError),zr}var Fr,ji;function ef(){return ji||(ji=1,Fr=Math.abs),Fr}var Ur,Pi;function tf(){return Pi||(Pi=1,Ur=Math.floor),Ur}var Gr,Ii;function rf(){return Ii||(Ii=1,Gr=Math.max),Gr}var Wr,Ni;function nf(){return Ni||(Ni=1,Wr=Math.min),Wr}var Vr,Oi;function of(){return Oi||(Oi=1,Vr=Math.pow),Vr}var Kr,Ti;function af(){return Ti||(Ti=1,Kr=Math.round),Kr}var Xr,Mi;function sf(){return Mi||(Mi=1,Xr=Number.isNaN||function(t){return t!==t}),Xr}var Qr,ki;function cf(){if(ki)return Qr;ki=1;var e=sf();return Qr=function(r){return e(r)||r===0?r:r<0?-1:1},Qr}var Yr,Li;function lf(){return Li||(Li=1,Yr=Object.getOwnPropertyDescriptor),Yr}var Zr,Di;function rt(){if(Di)return Zr;Di=1;var e=lf();if(e)try{e([],"length")}catch{e=null}return Zr=e,Zr}var Jr,$i;function Wt(){if($i)return Jr;$i=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Jr=e,Jr}var en,Bi;function uf(){if(Bi)return en;Bi=1;var e=typeof Symbol<"u"&&Symbol,t=ic();return en=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},en}var tn,qi;function cc(){return qi||(qi=1,tn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),tn}var rn,Hi;function lc(){if(Hi)return rn;Hi=1;var e=ac();return rn=e.getPrototypeOf||null,rn}var nn,zi;function df(){if(zi)return nn;zi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,u){for(var f=[],m=0;m<l.length;m+=1)f[m]=l[m];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},o=function(l,u){for(var f=[],m=u,d=0;m<l.length;m+=1,d+=1)f[d]=l[m];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 nn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=o(arguments,1),m,d=function(){if(this instanceof m){var v=u.apply(this,i(f,arguments));return Object(v)===v?v:this}return u.apply(l,i(f,arguments))},p=r(0,u.length-f.length),h=[],y=0;y<p;y++)h[y]="$"+y;if(m=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,m.prototype=new g,g.prototype=null}return m},nn}var on,Fi;function ht(){if(Fi)return on;Fi=1;var e=df();return on=Function.prototype.bind||e,on}var an,Ui;function fo(){return Ui||(Ui=1,an=Function.prototype.call),an}var sn,Gi;function po(){return Gi||(Gi=1,sn=Function.prototype.apply),sn}var cn,Wi;function ff(){return Wi||(Wi=1,cn=typeof Reflect<"u"&&Reflect&&Reflect.apply),cn}var ln,Vi;function uc(){if(Vi)return ln;Vi=1;var e=ht(),t=po(),r=fo(),n=ff();return ln=n||e.call(r,t),ln}var un,Ki;function mo(){if(Ki)return un;Ki=1;var e=ht(),t=mt(),r=fo(),n=uc();return un=function(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return n(e,r,o)},un}var dn,Xi;function pf(){if(Xi)return dn;Xi=1;var e=mo(),t=rt(),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__"),i=Object,o=i.getPrototypeOf;return dn=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(c){return o(c==null?c:i(c))}:!1,dn}var fn,Qi;function ho(){if(Qi)return fn;Qi=1;var e=cc(),t=lc(),r=pf();return fn=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,fn}var pn,Yi;function dc(){if(Yi)return pn;Yi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ht();return pn=r.call(e,t),pn}var mn,Zi;function fc(){if(Zi)return mn;Zi=1;var e,t=ac(),r=Xd(),n=Qd(),i=Yd(),o=Zd(),a=sc(),c=mt(),l=Jd(),u=ef(),f=tf(),m=rf(),d=nf(),p=of(),h=af(),y=cf(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=rt(),_=Wt(),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=uf()(),x=ho(),P=lc(),D=cc(),R=po(),I=fo(),M={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),E={__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%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":M,"%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%":i,"%ReferenceError%":o,"%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%":a,"%ThrowTypeError%":C,"%TypedArray%":$,"%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%":I,"%Function.prototype.apply%":R,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":P,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":d,"%Math.pow%":p,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":D};if(x)try{null.error}catch(J){var q=x(x(J));E["%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 k=J("%AsyncGeneratorFunction%");k&&(ee=k.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var N=J("%AsyncGenerator%");N&&x&&(ee=x(N.prototype))}return E[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=ht(),W=dc(),z=K.call(I,Array.prototype.concat),ne=K.call(R,Array.prototype.splice),w=K.call(I,String.prototype.replace),O=K.call(I,String.prototype.slice),L=K.call(I,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=O(Y,0,1),k=O(Y,-1);if(ee==="%"&&k!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var N=[];return w(Y,X,function(re,ae,ce,le){N[N.length]=ce?w(le,te,"$1"):ae||re}),N},T=function(Y,ee){var k=Y,N;if(W(U,k)&&(N=U[k],k="%"+N[0]+"%"),W(E,k)){var re=E[k];if(re===M&&(re=F(k)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:N,name:k,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return mn=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(L(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=Z(Y),N=k.length>0?k[0]:"",re=T("%"+N+"%",ee),ae=re.name,ce=re.value,le=!1,se=re.alias;se&&(N=se[0],ne(k,z([0,1],se)));for(var H=1,he=!0;H<k.length;H+=1){var ie=k[H],me=O(ie,0,1),G=O(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),N+="."+ie,ae="%"+N+"%",W(E,ae))ce=E[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>=k.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&&(E[ae]=ce)}}return ce},mn}var hn,Ji;function gt(){if(Ji)return hn;Ji=1;var e=fc(),t=mo(),r=t([e("%String.prototype.indexOf%")]);return hn=function(i,o){var a=e(i,!!o);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},hn}var gn,ea;function mf(){if(ea)return gn;ea=1;var e=Gt()(),t=gt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},i=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]"},o=function(){return n(arguments)}();return n.isLegacyArguments=i,gn=o?n:i,gn}var yn,ta;function hf(){if(ta)return yn;ta=1;var e=gt(),t=Gt()(),r=dc(),n=rt(),i;if(t){var o=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),i=function(d){if(!d||typeof d!="object")return!1;var p=n(d,"lastIndex"),h=p&&r(p,"value");if(!h)return!1;try{o(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return yn=i,yn}var _n,ra;function gf(){if(ra)return _n;ra=1;var e=gt(),t=hf(),r=e("RegExp.prototype.exec"),n=mt();return _n=function(o){if(!t(o))throw new n("`regex` must be a RegExp");return function(c){return r(o,c)!==null}},_n}var vn,na;function yf(){if(na)return vn;na=1;var e=gt(),t=gf(),r=t(/^\s*(?:function)?\*/),n=Gt()(),i=ho(),o=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return vn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var m=o(f);return m==="[object GeneratorFunction]"}if(!i)return!1;if(typeof l>"u"){var d=c();l=d?i(d):!1}return i(f)===l},vn}var bn,oa;function _f(){if(oa)return bn;oa=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 i=/^\s*class\b/,o=function(_){try{var S=e.call(_);return i.test(S)}catch{return!1}},a=function(_){try{return o(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",m="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[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===m||S===d||S===p||S===l)&&_("")==null}catch{}return!1})}return bn=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!o(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(o(_))return!1;var S=c.call(_);return S!==u&&S!==f&&!/^\[object HTML/.test(S)?!1:a(_)},bn}var xn,ia;function vf(){if(ia)return xn;ia=1;var e=_f(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var m=0,d=l.length;m<d;m++)r.call(l,m)&&(f==null?u(l[m],m,l):u.call(f,l[m],m,l))},i=function(l,u,f){for(var m=0,d=l.length;m<d;m++)f==null?u(l.charAt(m),m,l):u.call(f,l.charAt(m),m,l)},o=function(l,u,f){for(var m in l)r.call(l,m)&&(f==null?u(l[m],m,l):u.call(f,l[m],m,l))};function a(c){return t.call(c)==="[object Array]"}return xn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=f),a(l)?n(l,u,m):typeof l=="string"?i(l,u,m):o(l,u,m)},xn}var Cn,aa;function bf(){return aa||(aa=1,Cn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Cn}var Sn,sa;function xf(){if(sa)return Sn;sa=1;var e=bf(),t=typeof globalThis>"u"?Os:globalThis;return Sn=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},Sn}var An={exports:{}},Rn,ca;function Cf(){if(ca)return Rn;ca=1;var e=Wt(),t=sc(),r=mt(),n=rt();return Rn=function(o,a,c){if(!o||typeof o!="object"&&typeof o!="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,m=arguments.length>6?arguments[6]:!1,d=!!n&&n(o,a);if(e)e(o,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(m||!l&&!u&&!f)o[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Rn}var En,la;function Sf(){if(la)return En;la=1;var e=Wt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},En=t,En}var wn,ua;function Af(){if(ua)return wn;ua=1;var e=fc(),t=Cf(),r=Sf()(),n=rt(),i=mt(),o=e("%Math.floor%");return wn=function(c,l){if(typeof c!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||o(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,m=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(m=!1)}return(f||m||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},wn}var jn,da;function Rf(){if(da)return jn;da=1;var e=ht(),t=po(),r=uc();return jn=function(){return r(e,t,arguments)},jn}var fa;function Ef(){return fa||(fa=1,function(e){var t=Af(),r=Wt(),n=mo(),i=Rf();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:i}):e.exports.apply=i}(An)),An.exports}var Pn,pa;function pc(){if(pa)return Pn;pa=1;var e=vf(),t=xf(),r=Ef(),n=gt(),i=rt(),o=ho(),a=n("Object.prototype.toString"),c=Gt()(),l=typeof globalThis>"u"?Os:globalThis,u=t(),f=n("String.prototype.slice"),m=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&&i&&o?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&o){var v=o(g),A=i(v,Symbol.toStringTag);if(!A&&v){var _=o(v);A=i(_,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 p=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 Pn=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=f(a(g),8,-1);return m(u,v)>-1?v:v!=="Object"?!1:h(g)}return i?p(g):null},Pn}var In,ma;function wf(){if(ma)return In;ma=1;var e=pc();return In=function(r){return!!e(r)},In}var ha;function jf(){return ha||(ha=1,function(e){var t=mf(),r=yf(),n=pc(),i=wf();function o(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=o(Object.prototype.toString),u=o(Number.prototype.valueOf),f=o(String.prototype.valueOf),m=o(Boolean.prototype.valueOf);if(a)var d=o(BigInt.prototype.valueOf);if(c)var p=o(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=i;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):i(H)||O(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 P(H){return n(H)==="Float32Array"}e.isFloat32Array=P;function D(H){return n(H)==="Float64Array"}e.isFloat64Array=D;function R(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=R;function I(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=I;function M(H){return l(H)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function $(H){return typeof Map>"u"?!1:M.working?M(H):H instanceof Map}e.isMap=$;function E(H){return l(H)==="[object Set]"}E.working=typeof Set<"u"&&E(new Set);function q(H){return typeof Set>"u"?!1:E.working?E(H):H instanceof Set}e.isSet=q;function F(H){return l(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 l(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function z(H){return l(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 l(H)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function O(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=O;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof L>"u"?!1:(typeof X.working>"u"&&(X.working=X(new L)),X.working?X(H):H instanceof L)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function T(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=T;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 k(H){return h(H,u)}e.isNumberObject=k;function N(H){return h(H,f)}e.isStringObject=N;function re(H){return h(H,m)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,p)}e.isSymbolObject=ce;function le(H){return k(H)||N(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")}})})}(Or)),Or}var Nn,ga;function Pf(){return ga||(ga=1,Nn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Nn}var Mt={exports:{}},ya;function If(){return ya||(ya=1,typeof Object.create=="function"?Mt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Mt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Mt.exports}var _a;function Nf(){return _a||(_a=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var L=Object.keys(O),X={},te=0;te<L.length;te++)X[L[te]]=Object.getOwnPropertyDescriptor(O,L[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var O=[],L=0;L<arguments.length;L++)O.push(a(arguments[L]));return O.join(" ")}for(var L=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(L>=te)return J;switch(J){case"%s":return String(X[L++]);case"%d":return Number(X[L++]);case"%j":try{return JSON.stringify(X[L++])}catch{return"[Circular]"}default:return J}}),T=X[L];L<te;T=X[++L])A(T)||!D(T)?Z+=" "+T:Z+=" "+a(T);return Z},e.deprecate=function(w,O){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,O).apply(this,arguments)};var L=!1;function X(){if(!L){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),L=!0}return w.apply(this,arguments)}return X};var n={},i=/^$/;if(process.env.NODE_DEBUG){var o=process.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!n[w])if(i.test(w)){var O=process.pid;n[w]=function(){var L=e.format.apply(e,arguments);console.error("%s %d: %s",w,O,L)}}else n[w]=function(){};return n[w]};function a(w,O){var L={seen:[],stylize:l};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),v(O)?L.showHidden=O:O&&e._extend(L,O),x(L.showHidden)&&(L.showHidden=!1),x(L.depth)&&(L.depth=2),x(L.colors)&&(L.colors=!1),x(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=c),f(L,w,L.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(w,O){var L=a.styles[O];return L?"\x1B["+a.colors[L][0]+"m"+w+"\x1B["+a.colors[L][1]+"m":w}function l(w,O){return w}function u(w){var O={};return w.forEach(function(L,X){O[L]=!0}),O}function f(w,O,L){if(w.customInspect&&O&&M(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(L,w);return C(X)||(X=f(w,X,L)),X}var te=m(w,O);if(te)return te;var Z=Object.keys(O),T=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(O)),I(O)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(O);if(Z.length===0){if(M(O)){var J=O.name?": "+O.name:"";return w.stylize("[Function"+J+"]","special")}if(P(O))return w.stylize(RegExp.prototype.toString.call(O),"regexp");if(R(O))return w.stylize(Date.prototype.toString.call(O),"date");if(I(O))return d(O)}var Y="",ee=!1,k=["{","}"];if(g(O)&&(ee=!0,k=["[","]"]),M(O)){var N=O.name?": "+O.name:"";Y=" [Function"+N+"]"}if(P(O)&&(Y=" "+RegExp.prototype.toString.call(O)),R(O)&&(Y=" "+Date.prototype.toUTCString.call(O)),I(O)&&(Y=" "+d(O)),Z.length===0&&(!ee||O.length==0))return k[0]+Y+k[1];if(L<0)return P(O)?w.stylize(RegExp.prototype.toString.call(O),"regexp"):w.stylize("[Object]","special");w.seen.push(O);var re;return ee?re=p(w,O,L,T,Z):re=Z.map(function(ae){return h(w,O,L,T,ae,ee)}),w.seen.pop(),y(re,Y,k)}function m(w,O){if(x(O))return w.stylize("undefined","undefined");if(C(O)){var L="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(L,"string")}if(S(O))return w.stylize(""+O,"number");if(v(O))return w.stylize(""+O,"boolean");if(A(O))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function p(w,O,L,X,te){for(var Z=[],T=0,J=O.length;T<J;++T)K(O,String(T))?Z.push(h(w,O,L,X,String(T),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,O,L,X,Y,!0))}),Z}function h(w,O,L,X,te,Z){var T,J,Y;if(Y=Object.getOwnPropertyDescriptor(O,te)||{value:O[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)||(T="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(L)?J=f(w,Y.value,null):J=f(w,Y.value,L-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=k({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(G)}catch{}(G===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[G,le]of Object.entries({layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z}))le&&(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"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(G=>{for(const Ce of G.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(G){console.error(G)}}}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:N,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:k});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)}u.set(G.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:$}}}})(ho);var Kn={exports:{}},Tt={exports:{}},Er={},_i;function pf(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=I,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:u}=a;function l(){if(c&&c.mountedInstances){const f=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(u(f,a))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(a.children),l()}return n(()=>{var f;return c==null||(f=c.mountedInstances)==null||f.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.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}}(Er)),Er}var Rr={},vi;function mf(){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._(I).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Rr)),Rr}var wr={},bi;function hf(){return bi||(bi=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}}(wr)),wr}var xi;function gf(){return xi||(xi=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=zt()._(I),a=n._(pf()),c=mf(),u=pc(),l=hf(),p=ft;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,P=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){P=!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 O=m[$];if(j.props.hasOwnProperty(O))if(O==="charSet")S.has(O)?x=!1:S.add(O);else{const M=j.props[O],B=C[O]||new Set;(O!=="name"||!P)&&B.has(M)?x=!1:(B.add(M),C[O]=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(P=>C.props.href.startsWith(P))){const P={...C.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,i.default.cloneElement(C,P)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const P=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+P+`). 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(a.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)}(Tt,Tt.exports)),Tt.exports}var jr={},Ci;function yf(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(I),n=Gt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(jr)),jr}var Pr={},Ir={},Or={exports:{}};const _f=Ol(Ln.__viteBrowserExternal);var Nr={},Tr={},kr,Si;function gc(){return Si||(Si=1,kr=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}),kr}var Mr,Ai;function Wt(){if(Ai)return Mr;Ai=1;var e=gc();return Mr=function(){return e()&&!!Symbol.toStringTag},Mr}var Lr,Ei;function yc(){return Ei||(Ei=1,Lr=Object),Lr}var Dr,Ri;function vf(){return Ri||(Ri=1,Dr=Error),Dr}var $r,wi;function bf(){return wi||(wi=1,$r=EvalError),$r}var Br,ji;function xf(){return ji||(ji=1,Br=RangeError),Br}var qr,Pi;function Cf(){return Pi||(Pi=1,qr=ReferenceError),qr}var Hr,Ii;function _c(){return Ii||(Ii=1,Hr=SyntaxError),Hr}var zr,Oi;function pt(){return Oi||(Oi=1,zr=TypeError),zr}var Fr,Ni;function Sf(){return Ni||(Ni=1,Fr=URIError),Fr}var Ur,Ti;function Af(){return Ti||(Ti=1,Ur=Math.abs),Ur}var Gr,ki;function Ef(){return ki||(ki=1,Gr=Math.floor),Gr}var Wr,Mi;function Rf(){return Mi||(Mi=1,Wr=Math.max),Wr}var Vr,Li;function wf(){return Li||(Li=1,Vr=Math.min),Vr}var Kr,Di;function jf(){return Di||(Di=1,Kr=Math.pow),Kr}var Xr,$i;function Pf(){return $i||($i=1,Xr=Math.round),Xr}var Qr,Bi;function If(){return Bi||(Bi=1,Qr=Number.isNaN||function(t){return t!==t}),Qr}var Yr,qi;function Of(){if(qi)return Yr;qi=1;var e=If();return Yr=function(r){return e(r)||r===0?r:r<0?-1:1},Yr}var Zr,Hi;function Nf(){return Hi||(Hi=1,Zr=Object.getOwnPropertyDescriptor),Zr}var Jr,zi;function tt(){if(zi)return Jr;zi=1;var e=Nf();if(e)try{e([],"length")}catch{e=null}return Jr=e,Jr}var en,Fi;function Vt(){if(Fi)return en;Fi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return en=e,en}var tn,Ui;function Tf(){if(Ui)return tn;Ui=1;var e=typeof Symbol<"u"&&Symbol,t=gc();return tn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},tn}var rn,Gi;function vc(){return Gi||(Gi=1,rn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rn}var nn,Wi;function bc(){if(Wi)return nn;Wi=1;var e=yc();return nn=e.getPrototypeOf||null,nn}var on,Vi;function kf(){if(Vi)return on;Vi=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},a=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 on=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 ("+a(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},on}var an,Ki;function mt(){if(Ki)return an;Ki=1;var e=kf();return an=Function.prototype.bind||e,an}var sn,Xi;function go(){return Xi||(Xi=1,sn=Function.prototype.call),sn}var cn,Qi;function yo(){return Qi||(Qi=1,cn=Function.prototype.apply),cn}var un,Yi;function Mf(){return Yi||(Yi=1,un=typeof Reflect<"u"&&Reflect&&Reflect.apply),un}var ln,Zi;function xc(){if(Zi)return ln;Zi=1;var e=mt(),t=yo(),r=go(),n=Mf();return ln=n||e.call(r,t),ln}var dn,Ji;function _o(){if(Ji)return dn;Ji=1;var e=mt(),t=pt(),r=go(),n=xc();return dn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},dn}var fn,ea;function Lf(){if(ea)return fn;ea=1;var e=_o(),t=tt(),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 fn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,fn}var pn,ta;function vo(){if(ta)return pn;ta=1;var e=vc(),t=bc(),r=Lf();return pn=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,pn}var mn,ra;function Cc(){if(ra)return mn;ra=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=mt();return mn=r.call(e,t),mn}var hn,na;function Sc(){if(na)return hn;na=1;var e,t=yc(),r=vf(),n=bf(),o=xf(),i=Cf(),a=_c(),c=pt(),u=Sf(),l=Af(),p=Ef(),f=Rf(),d=wf(),m=jf(),h=Pf(),y=Of(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=tt(),_=Vt(),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=Tf()(),x=vo(),P=bc(),$=vc(),E=yo(),O=go(),M={},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%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":M,"%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%":a,"%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%":O,"%Function.prototype.apply%":E,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":P,"%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 N=J("%AsyncGenerator%");N&&x&&(ee=x(N.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=mt(),W=Cc(),z=K.call(O,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),w=K.call(O,String.prototype.replace),T=K.call(O,String.prototype.slice),D=K.call(O,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 N=[];return w(Y,X,function(re,ae,ce,ue){N[N.length]=ce?w(ue,te,"$1"):ae||re}),N},k=function(Y,ee){var L=Y,N;if(W(U,L)&&(N=U[L],L="%"+N[0]+"%"),W(R,L)){var re=R[L];if(re===M&&(re=F(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:N,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return hn=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),N=L.length>0?L[0]:"",re=k("%"+N+"%",ee),ae=re.name,ce=re.value,ue=!1,se=re.alias;se&&(N=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),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)&&(ue=!0),N+="."+ie,ae="%"+N+"%",W(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=W(ce,ie),ce=ce[ie];he&&!ue&&(R[ae]=ce)}}return ce},hn}var gn,oa;function ht(){if(oa)return gn;oa=1;var e=Sc(),t=_o(),r=t([e("%String.prototype.indexOf%")]);return gn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},gn}var yn,ia;function Df(){if(ia)return yn;ia=1;var e=Wt()(),t=ht(),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,yn=i?n:o,yn}var _n,aa;function $f(){if(aa)return _n;aa=1;var e=ht(),t=Wt()(),r=Cc(),n=tt(),o;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},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===a}}}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 _n=o,_n}var vn,sa;function Bf(){if(sa)return vn;sa=1;var e=ht(),t=$f(),r=e("RegExp.prototype.exec"),n=pt();return vn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},vn}var bn,ca;function qf(){if(ca)return bn;ca=1;var e=ht(),t=Bf(),r=t(/^\s*(?:function)?\*/),n=Wt()(),o=vo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return bn=function(p){if(typeof p!="function")return!1;if(r(a(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},bn}var xn,ua;function Hf(){if(ua)return xn;ua=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}},a=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 xn=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(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var S=c.call(_);return S!==l&&S!==p&&!/^\[object HTML/.test(S)?!1:a(_)},xn}var Cn,la;function zf(){if(la)return Cn;la=1;var e=Hf(),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 a(c){return t.call(c)==="[object Array]"}return Cn=function(u,l,p){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=p),a(u)?n(u,l,f):typeof u=="string"?o(u,l,f):i(u,l,f)},Cn}var Sn,da;function Ff(){return da||(da=1,Sn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Sn}var An,fa;function Uf(){if(fa)return An;fa=1;var e=Ff(),t=typeof globalThis>"u"?Us:globalThis;return An=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},An}var En={exports:{}},Rn,pa;function Gf(){if(pa)return Rn;pa=1;var e=Vt(),t=_c(),r=pt(),n=tt();return Rn=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 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,a);if(e)e(i,a,{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[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Rn}var wn,ma;function Wf(){if(ma)return wn;ma=1;var e=Vt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},wn=t,wn}var jn,ha;function Vf(){if(ha)return jn;ha=1;var e=Sc(),t=Gf(),r=Wf()(),n=tt(),o=pt(),i=e("%Math.floor%");return jn=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},jn}var Pn,ga;function Kf(){if(ga)return Pn;ga=1;var e=mt(),t=yo(),r=xc();return Pn=function(){return r(e,t,arguments)},Pn}var ya;function Xf(){return ya||(ya=1,function(e){var t=Vf(),r=Vt(),n=_o(),o=Kf();e.exports=function(a){var c=n(arguments),u=a.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(En)),En.exports}var In,_a;function Ac(){if(_a)return In;_a=1;var e=zf(),t=Uf(),r=Xf(),n=ht(),o=tt(),i=vo(),a=n("Object.prototype.toString"),c=Wt()(),u=typeof globalThis>"u"?Us: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 In=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=p(a(g),8,-1);return f(l,v)>-1?v:v!=="Object"?!1:h(g)}return o?m(g):null},In}var On,va;function Qf(){if(va)return On;va=1;var e=Ac();return On=function(r){return!!e(r)},On}var ba;function Yf(){return ba||(ba=1,function(e){var t=Df(),r=qf(),n=Ac(),o=Qf();function i(H){return H.call.bind(H)}var a=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(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 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 P(H){return n(H)==="Float32Array"}e.isFloat32Array=P;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function E(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=E;function O(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=O;function M(H){return u(H)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function B(H){return typeof Map>"u"?!1:M.working?M(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 W(H){return K(H)}e.isWeakSet=W;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 k(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=k;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 N(H){return h(H,p)}e.isStringObject=N;function re(H){return h(H,f)}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 ue(H){return L(H)||N(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")}})})}(Tr)),Tr}var Nn,xa;function Zf(){return xa||(xa=1,Nn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Nn}var kt={exports:{}},Ca;function Jf(){return Ca||(Ca=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 Sa;function ep(){return Sa||(Sa=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(a(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}}),k=X[D];D<te;k=X[++D])A(k)||!$(k)?Z+=" "+k:Z+=" "+a(k);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 a(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=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(w,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+w+"\x1B["+a.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&&M(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),k=l(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(T)),O(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(M(T)){var J=T.name?": "+T.name:"";return w.stylize("[Function"+J+"]","special")}if(P(T))return w.stylize(RegExp.prototype.toString.call(T),"regexp");if(E(T))return w.stylize(Date.prototype.toString.call(T),"date");if(O(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),M(T)){var N=T.name?": "+T.name:"";Y=" [Function"+N+"]"}if(P(T)&&(Y=" "+RegExp.prototype.toString.call(T)),E(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),O(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return P(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,k,Z):re=Z.map(function(ae){return h(w,T,D,k,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=[],k=0,J=T.length;k<J;++k)K(T,String(k))?Z.push(h(w,T,D,X,String(k),!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 k,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)||(k="["+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(`
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(T)){if(Z&&te.match(/^\d+$/))return J;T=JSON.stringify(""+te),T.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(T=T.slice(1,-1),T=w.stylize(T,"name")):(T=T.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),T=w.stylize(T,"string"))}return T+": "+J}function y(w,O,L){var X=w.reduce(function(te,Z){return Z.indexOf(`
22
- `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?L[0]+(O===""?"":O+`
21
+ `))):J=w.stylize("[Circular]","special")),x(k)){if(Z&&te.match(/^\d+$/))return J;k=JSON.stringify(""+te),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=w.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=w.stylize(k,"string"))}return k+": "+J}function y(w,T,D){var X=w.reduce(function(te,Z){return Z.indexOf(`
22
+ `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(T===""?"":T+`
23
23
  `)+" "+w.join(`,
24
- `)+" "+L[1]:L[0]+O+" "+w.join(", ")+" "+L[1]}e.types=jf();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 P(w){return D(w)&&E(w)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function D(w){return typeof w=="object"&&w!==null}e.isObject=D;function R(w){return D(w)&&E(w)==="[object Date]"}e.isDate=R,e.types.isDate=R;function I(w){return D(w)&&(E(w)==="[object Error]"||w instanceof Error)}e.isError=I,e.types.isNativeError=I;function M(w){return typeof w=="function"}e.isFunction=M;function $(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=$,e.isBuffer=Pf();function E(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,O=[q(w.getHours()),q(w.getMinutes()),q(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=If(),e._extend=function(w,O){if(!O||!D(O))return w;for(var L=Object.keys(O),X=L.length;X--;)w[L[X]]=O[L[X]];return w};function K(w,O){return Object.prototype.hasOwnProperty.call(w,O)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&O[W]){var L=O[W];if(typeof L!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(L,W,{value:L,enumerable:!1,writable:!1,configurable:!0}),L}function L(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),T=[],J=0;J<arguments.length;J++)T.push(arguments[J]);T.push(function(Y,ee){Y?te(Y):X(ee)});try{O.apply(this,T)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(L,Object.getPrototypeOf(O)),W&&Object.defineProperty(L,W,{value:L,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(L,t(O))},e.promisify.custom=W;function z(w,O){if(!w){var L=new Error("Promise was rejected with a falsy value");L.reason=w,w=L}return O(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var L=[],X=0;X<arguments.length;X++)L.push(arguments[X]);var te=L.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,T=function(){return te.apply(Z,arguments)};w.apply(this,L).then(function(J){process.nextTick(T.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,T))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(w)),Object.defineProperties(O,t(w)),O}e.callbackify=ne}(Nr)),Nr}var va;function Of(){return va||(va=1,(()=>{var e={333:(i,o,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),m=(d,p={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=m.create(y,p);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(m.create(d,p));return p&&p.expand===!0&&p.nodupes===!0&&(h=[...new Set(h)]),h};m.parse=(d,p={})=>f(d,p),m.stringify=(d,p={})=>c(typeof d=="string"?m.parse(d,p):d,p),m.compile=(d,p={})=>(typeof d=="string"&&(d=m.parse(d,p)),l(d,p)),m.expand=(d,p={})=>{typeof d=="string"&&(d=m.parse(d,p));let h=u(d,p);return p.noempty===!0&&(h=h.filter(Boolean)),p.nodupes===!0&&(h=[...new Set(h)]),h},m.create=(d,p={})=>d===""||d.length<3?[d]:p.expand!==!0?m.compile(d,p):m.expand(d,p),i.exports=m},179:(i,o,a)=>{const c=a(783),l=a(617),u=(f,m={})=>{let d=(p,h={})=>{let y=l.isInvalidBrace(h),g=p.invalid===!0&&m.escapeInvalid===!0,v=y===!0||g===!0,A=m.escapeInvalid===!0?"\\":"",_="";if(p.isOpen===!0||p.isClose===!0)return A+p.value;if(p.type==="open")return v?A+p.value:"(";if(p.type==="close")return v?A+p.value:")";if(p.type==="comma")return p.prev.type==="comma"?"":v?p.value:"|";if(p.value)return p.value;if(p.nodes&&p.ranges>0){let S=l.reduce(p.nodes),C=c(...S,{...m,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(p.nodes)for(let S of p.nodes)_+=d(S,p);return _};return d(f)};i.exports=u},457:i=>{i.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:(i,o,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",p="",h=!1)=>{let y=[];if(d=[].concat(d),p=[].concat(p),!p.length)return d;if(!d.length)return h?u.flatten(p).map(g=>`{${g}}`):p;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(f(v,p,h));else for(let v of p)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?f(g,v,h):g+v);return u.flatten(y)},m=(d,p={})=>{let h=p.rangeLimit===void 0?1e3:p.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,p)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=u.reduce(g.nodes);if(u.exceedsLimit(...x,p.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=c(...x,p);P.length===0&&(P=l(g,p)),_.push(f(_.pop(),P)),g.nodes=[];return}let S=u.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 P=g.nodes[x];if(P.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(P.type==="close"){_.push(f(_.pop(),C,S));continue}if(P.value&&P.type!=="open"){C.push(f(C.pop(),P.value));continue}P.nodes&&y(P,g)}return C};return u.flatten(y(d))};i.exports=m},719:(i,o,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:m,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:p,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}=a(457),x=(P,D={})=>{if(typeof P!="string")throw new TypeError("Expected a string");let R=D||{},I=typeof R.maxLength=="number"?Math.min(l,R.maxLength):l;if(P.length>I)throw new SyntaxError(`Input length (${P.length}), exceeds max characters (${I})`);let M={type:"root",input:P,nodes:[]},$=[M],E=M,q=M,F=0,U=P.length,K=0,W=0,z;const ne=()=>P[K++],w=O=>{if(O.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&O.type==="text"){q.value+=O.value;return}return E.nodes.push(O),O.parent=E,O.prev=q,q=O,O};for(w({type:"bos"});K<U;)if(E=$[$.length-1],z=ne(),!(z===j||z===C)){if(z===u){w({type:"text",value:(D.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let O;for(;K<U&&(O=ne());){if(z+=O,O===v){F++;continue}if(O===u){z+=ne();continue}if(O===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===p){E=w({type:"paren",nodes:[]}),$.push(E),w({type:"text",value:z});continue}if(z===h){if(E.type!=="paren"){w({type:"text",value:z});continue}E=$.pop(),w({type:"text",value:z}),E=$[$.length-1];continue}if(z===_||z===S||z===f){let O=z,L;for(D.keepQuotes!==!0&&(z="");K<U&&(L=ne());){if(L===u){z+=L+ne();continue}if(L===O){D.keepQuotes===!0&&(z+=L);break}z+=L}w({type:"text",value:z});continue}if(z===y){W++;let L={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||E.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};E=w(L),$.push(E),w({type:"open",value:z});continue}if(z===g){if(E.type!=="brace"){w({type:"text",value:z});continue}let O="close";E=$.pop(),E.close=!0,w({type:O,value:z}),W--,E=$[$.length-1];continue}if(z===m&&W>0){if(E.ranges>0){E.ranges=0;let O=E.nodes.shift();E.nodes=[O,{type:"text",value:c(E)}]}w({type:"comma",value:z}),E.commas++;continue}if(z===d&&W>0&&E.commas===0){let O=E.nodes;if(W===0||O.length===0){w({type:"text",value:z});continue}if(q.type==="dot"){if(E.range=[],q.value+=z,q.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,q.type="text";continue}E.ranges++,E.args=[];continue}if(q.type==="range"){O.pop();let L=O[O.length-1];L.value+=q.value+z,q=L,E.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(E=$.pop(),E.type!=="root"){E.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 O=$[$.length-1],L=O.nodes.indexOf(E);O.nodes.splice(L,1,...E.nodes)}while($.length>0);return w({type:"eos"}),M};i.exports=x},137:(i,o,a)=>{const c=a(617);i.exports=(l,u={})=>{let f=(m,d={})=>{let p=u.escapeInvalid&&c.isInvalidBrace(d),h=m.invalid===!0&&u.escapeInvalid===!0,y="";if(m.value)return(p||h)&&c.isOpenOrClose(m)?"\\"+m.value:m.value;if(m.value)return m.value;if(m.nodes)for(let g of m.nodes)y+=f(g);return y};return f(l)}},617:(i,o)=>{o.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,o.find=(a,c)=>a.nodes.find(l=>l.type===c),o.exceedsLimit=(a,c,l=1,u)=>u===!1||!o.isInteger(a)||!o.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,o.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)},o.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),o.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,o.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,o.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),o.flatten=(...a)=>{const c=[],l=u=>{for(let f=0;f<u.length;f++){let m=u[f];Array.isArray(m)?l(m):m!==void 0&&c.push(m)}return c};return l(a),c}},783:(i,o,a)=>{/*!
24
+ `)+" "+D[1]:D[0]+T+" "+w.join(", ")+" "+D[1]}e.types=Yf();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 P(w){return $(w)&&R(w)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;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 O(w){return $(w)&&(R(w)==="[object Error]"||w instanceof Error)}e.isError=O,e.types.isNativeError=O;function M(w){return typeof w=="function"}e.isFunction=M;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=Zf();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=Jf(),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 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}),k=[],J=0;J<arguments.length;J++)k.push(arguments[J]);k.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,k)}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 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,k=function(){return te.apply(Z,arguments)};w.apply(this,D).then(function(J){process.nextTick(k.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,k))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(w)),Object.defineProperties(T,t(w)),T}e.callbackify=ne}(Nr)),Nr}var Aa;function tp(){return Aa||(Aa=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),u=a(179),l=a(13),p=a(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,a)=>{const c=a(783),u=a(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,a)=>{const c=a(783),u=a(137),l=a(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 P=c(...x,m);P.length===0&&(P=u(g,m)),_.push(p(_.pop(),P)),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 P=g.nodes[x];if(P.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(P.type==="close"){_.push(p(_.pop(),C,S));continue}if(P.value&&P.type!=="open"){C.push(p(C.pop(),P.value));continue}P.nodes&&y(P,g)}return C};return l.flatten(y(d))};o.exports=f},719:(o,i,a)=>{const c=a(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}=a(457),x=(P,$={})=>{if(typeof P!="string")throw new TypeError("Expected a string");let E=$||{},O=typeof E.maxLength=="number"?Math.min(u,E.maxLength):u;if(P.length>O)throw new SyntaxError(`Input length (${P.length}), exceeds max characters (${O})`);let M={type:"root",input:P,nodes:[]},B=[M],R=M,q=M,F=0,U=P.length,K=0,W=0,z;const ne=()=>P[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){W++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||R.dollar===!0,depth:W,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}),W--,R=B[B.length-1];continue}if(z===f&&W>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&&W>0&&R.commas===0){let T=R.nodes;if(W===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"}),M};o.exports=x},137:(o,i,a)=>{const c=a(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=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(u=>u.type===c),i.exceedsLimit=(a,c,u=1,l)=>l===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(u)>=l,i.escapeNode=(a,c=0,u)=>{let l=a.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=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,u)=>(u.type==="text"&&c.push(u.value),u.type==="range"&&(u.type="text"),c),[]),i.flatten=(...a)=>{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(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=a(837),l=a(492),u=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),f=R=>I=>R===!0?Number(I):String(I),m=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),p=R=>{let I=`${R}`,M=-1;if(I[0]==="-"&&(I=I.slice(1)),I==="0")return!1;for(;I[++M]==="0";);return M>0},h=(R,I,M)=>typeof R=="string"||typeof I=="string"?!0:M.stringify===!0,y=(R,I,M)=>{if(I>0){let $=R[0]==="-"?"-":"";$&&(R=R.slice(1)),R=$+R.padStart($?I-1:I,"0")}return M===!1?String(R):R},g=(R,I)=>{let M=R[0]==="-"?"-":"";for(M&&(R=R.slice(1),I--);R.length<I;)R="0"+R;return M?"-"+R:R},v=(R,I)=>{R.negatives.sort((F,U)=>F<U?-1:F>U?1:0),R.positives.sort((F,U)=>F<U?-1:F>U?1:0);let M=I.capture?"":"?:",$="",E="",q;return R.positives.length&&($=R.positives.join("|")),R.negatives.length&&(E=`-(${M}${R.negatives.join("|")})`),$&&E?q=`${$}|${E}`:q=$||E,I.wrap?`(${M}${q})`:q},A=(R,I,M,$)=>{if(M)return l(R,I,{wrap:!1,...$});let E=String.fromCharCode(R);if(R===I)return E;let q=String.fromCharCode(I);return`[${E}-${q}]`},_=(R,I,M)=>{if(Array.isArray(R)){let $=M.wrap===!0,E=M.capture?"":"?:";return $?`(${E}${R.join("|")})`:R.join("|")}return l(R,I,M)},S=(...R)=>new RangeError("Invalid range arguments: "+c.inspect(...R)),C=(R,I,M)=>{if(M.strictRanges===!0)throw S([R,I]);return[]},j=(R,I)=>{if(I.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},x=(R,I,M=1,$={})=>{let E=Number(R),q=Number(I);if(!Number.isInteger(E)||!Number.isInteger(q)){if($.strictRanges===!0)throw S([R,I]);return[]}E===0&&(E=0),q===0&&(q=0);let F=E>q,U=String(R),K=String(I),W=String(M);M=Math.max(Math.abs(M),1);let z=p(U)||p(K)||p(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(R,I,$)===!1,O=$.transform||f(w);if($.toRegex&&M===1)return A(g(R,ne),g(I,ne),!0,$);let L={negatives:[],positives:[]},X=T=>L[T<0?"negatives":"positives"].push(Math.abs(T)),te=[],Z=0;for(;F?E>=q:E<=q;)$.toRegex===!0&&M>1?X(E):te.push(y(O(E,Z),ne,w)),E=F?E-M:E+M,Z++;return $.toRegex===!0?M>1?v(L,$):_(te,null,{wrap:!1,...$}):te},P=(R,I,M=1,$={})=>{if(!d(R)&&R.length>1||!d(I)&&I.length>1)return C(R,I,$);let E=$.transform||(w=>String.fromCharCode(w)),q=`${R}`.charCodeAt(0),F=`${I}`.charCodeAt(0),U=q>F,K=Math.min(q,F),W=Math.max(q,F);if($.toRegex&&M===1)return A(K,W,!1,$);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(E(q,ne)),q=U?q-M:q+M,ne++;return $.toRegex===!0?_(z,null,{wrap:!1,options:$}):z},D=(R,I,M,$={})=>{if(I==null&&m(R))return[R];if(!m(R)||!m(I))return C(R,I,$);if(typeof M=="function")return D(R,I,1,{transform:M});if(u(M))return D(R,I,0,M);let E={...$};return E.capture===!0&&(E.wrap=!0),M=M||E.step||1,d(M)?d(R)&&d(I)?x(R,I,M,E):P(R,I,Math.max(Math.abs(M),1),E):M!=null&&!u(M)?j(M,E):D(R,I,1,M)};i.exports=D},357:i=>{/*!
30
+ */const c=a(837),u=a(492),l=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),p=E=>O=>E===!0?Number(O):String(O),f=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let O=`${E}`,M=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++M]==="0";);return M>0},h=(E,O,M)=>typeof E=="string"||typeof O=="string"?!0:M.stringify===!0,y=(E,O,M)=>{if(O>0){let B=E[0]==="-"?"-":"";B&&(E=E.slice(1)),E=B+E.padStart(B?O-1:O,"0")}return M===!1?String(E):E},g=(E,O)=>{let M=E[0]==="-"?"-":"";for(M&&(E=E.slice(1),O--);E.length<O;)E="0"+E;return M?"-"+E:E},v=(E,O)=>{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 M=O.capture?"":"?:",B="",R="",q;return E.positives.length&&(B=E.positives.join("|")),E.negatives.length&&(R=`-(${M}${E.negatives.join("|")})`),B&&R?q=`${B}|${R}`:q=B||R,O.wrap?`(${M}${q})`:q},A=(E,O,M,B)=>{if(M)return u(E,O,{wrap:!1,...B});let R=String.fromCharCode(E);if(E===O)return R;let q=String.fromCharCode(O);return`[${R}-${q}]`},_=(E,O,M)=>{if(Array.isArray(E)){let B=M.wrap===!0,R=M.capture?"":"?:";return B?`(${R}${E.join("|")})`:E.join("|")}return u(E,O,M)},S=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),C=(E,O,M)=>{if(M.strictRanges===!0)throw S([E,O]);return[]},j=(E,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},x=(E,O,M=1,B={})=>{let R=Number(E),q=Number(O);if(!Number.isInteger(R)||!Number.isInteger(q)){if(B.strictRanges===!0)throw S([E,O]);return[]}R===0&&(R=0),q===0&&(q=0);let F=R>q,U=String(E),K=String(O),W=String(M);M=Math.max(Math.abs(M),1);let z=m(U)||m(K)||m(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(E,O,B)===!1,T=B.transform||p(w);if(B.toRegex&&M===1)return A(g(E,ne),g(O,ne),!0,B);let D={negatives:[],positives:[]},X=k=>D[k<0?"negatives":"positives"].push(Math.abs(k)),te=[],Z=0;for(;F?R>=q:R<=q;)B.toRegex===!0&&M>1?X(R):te.push(y(T(R,Z),ne,w)),R=F?R-M:R+M,Z++;return B.toRegex===!0?M>1?v(D,B):_(te,null,{wrap:!1,...B}):te},P=(E,O,M=1,B={})=>{if(!d(E)&&E.length>1||!d(O)&&O.length>1)return C(E,O,B);let R=B.transform||(w=>String.fromCharCode(w)),q=`${E}`.charCodeAt(0),F=`${O}`.charCodeAt(0),U=q>F,K=Math.min(q,F),W=Math.max(q,F);if(B.toRegex&&M===1)return A(K,W,!1,B);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(R(q,ne)),q=U?q-M:q+M,ne++;return B.toRegex===!0?_(z,null,{wrap:!1,options:B}):z},$=(E,O,M,B={})=>{if(O==null&&f(E))return[E];if(!f(E)||!f(O))return C(E,O,B);if(typeof M=="function")return $(E,O,1,{transform:M});if(l(M))return $(E,O,0,M);let R={...B};return R.capture===!0&&(R.wrap=!0),M=M||R.step||1,d(M)?d(E)&&d(O)?x(E,O,M,R):P(E,O,Math.max(Math.abs(M),1),R):M!=null&&!l(M)?j(M,R):$(E,O,1,M)};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
- */i.exports=function(o){return typeof o=="number"?o-o===0:typeof o=="string"&&o.trim()!==""?Number.isFinite?Number.isFinite(+o):isFinite(+o):!1}},971:(i,o,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),m=p=>p===""||p==="./",d=(p,h,y)=>{h=[].concat(h),p=[].concat(p);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 P=u(String(h[x]),{...y,onResult:S},!0),D=P.state.negated||P.state.negatedExtglob;D&&_++;for(let R of p){let I=P(R,!0);(D?!I.isMatch:I.isMatch)&&(D?g.add(I.output):(g.delete(I.output),v.add(I.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=(p,h)=>u(p,h),d.isMatch=(p,h,y)=>u(h,y)(p),d.any=d.isMatch,d.not=(p,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(p,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=(p,h,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);if(Array.isArray(h))return h.some(g=>d.contains(p,g,y));if(typeof h=="string"){if(m(p)||m(h))return!1;if(p.includes(h)||p.startsWith("./")&&p.slice(2).includes(h))return!0}return d.isMatch(p,h,{...y,contains:!0})},d.matchKeys=(p,h,y)=>{if(!f.isObject(p))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(p),h,y),v={};for(let A of g)v[A]=p[A];return v},d.some=(p,h,y)=>{let g=[].concat(p);for(let v of[].concat(h)){let A=u(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(p,h,y)=>{let g=[].concat(p);for(let v of[].concat(h)){let A=u(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(p,h,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);return[].concat(h).every(g=>u(g,y)(p))},d.capture=(p,h,y)=>{let g=f.isWindows(y),A=u.makeRe(String(p),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...p)=>u.makeRe(...p),d.scan=(...p)=>u.scan(...p),d.parse=(p,h)=>{let y=[];for(let g of[].concat(p||[]))for(let v of l(String(g),h))y.push(u.parse(v,h));return y},d.braces=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(p)?[p]:l(p,h)},d.braceExpand=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");return d.braces(p,{...h,expand:!0})},i.exports=d},251:(i,o,a)=>{i.exports=a(683)},356:(i,o,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",m="\\+",d="\\?",p="\\/",h="(?=.)",y="[^/]",g=`(?:${p}|$)`,v=`(?:^|${p})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,S=`(?!${v}${A})`,C=`(?!${f}{0,1}${g})`,j=`(?!${A})`,x=`[^.${p}]`,P=`${y}*?`,D={DOT_LITERAL:f,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:p,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:P,START_ANCHOR:v},R={...D,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}]|$)`},I={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"};i.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:I,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(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?R:D}}},754:(i,o,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=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=>l.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=p[v]||v;const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;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],P=_.capture?"":"?:",D=l.isWindows(A),R=c.globChars(D),I=c.extglobChars(R),{DOT_LITERAL:M,PLUS_LITERAL:$,SLASH_LITERAL:E,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:O}=R,L=Q=>`(${P}(?:(?!${O}${Q.dot?F:M}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?L(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const T={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=l.removePrefix(v,T),C=v.length;const J=[],Y=[],ee=[];let k=j,N;const re=()=>T.index===C-1,ae=T.peek=(Q=1)=>v[T.index+Q],ce=T.advance=()=>v[++T.index],le=()=>v.slice(T.index+1),se=(Q="",oe=0)=>{T.consumed+=Q,T.index+=oe},H=Q=>{T.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),T.start++,Q++;return Q%2===0?!1:(T.negated=!0,T.start++,!0)},ie=Q=>{T[Q]++,ee.push(Q)},me=Q=>{T[Q]--,ee.pop()},G=Q=>{if(k.type==="globstar"){const oe=T.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&&(T.output=T.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=Z,T.output+=k.output)}if(J.length&&Q.type!=="paren"&&!I[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),k&&k.type==="text"&&Q.type==="text"){k.value+=Q.value,k.output=(k.output||"")+Q.value;return}Q.prev=k,x.push(Q),k=Q},ue=(Q,oe)=>{const V={...I[oe],conditions:1,inner:""};V.prev=k,V.parens=T.parens,V.output=T.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:T.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=L(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(T.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:N,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Vt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Vt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?M.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?(T.output=v,T):(T.output=l.wrapOutput(oe,T,A),T)}for(;!re();){if(N=ce(),N==="\0")continue;if(N==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){N+="\\",G({type:"text",value:N});continue}const de=/^\\+/.exec(le());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,T.index+=ye,ye%2!==0&&(N+="\\")),_.unescape===!0?N=ce()||"":N+=ce()||"",T.brackets===0){G({type:"text",value:N});continue}}if(T.brackets>0&&(N!=="]"||k.value==="["||k.value==="[^")){if(_.posix!==!1&&N===":"){const V=k.value.slice(1);if(V.includes("[")&&(k.posix=!0,V.includes(":"))){const de=k.value.lastIndexOf("["),ye=k.value.slice(0,de),Ae=k.value.slice(de+2),be=f[Ae];if(be){k.value=ye+be,T.backtrack=!0,ce(),!j.output&&x.indexOf(k)===1&&(j.output=q);continue}}}(N==="["&&ae()!==":"||N==="-"&&ae()==="]")&&(N=`\\${N}`),N==="]"&&(k.value==="["||k.value==="[^")&&(N=`\\${N}`),_.posix===!0&&N==="!"&&k.value==="["&&(N="^"),k.value+=N,H({value:N});continue}if(T.quotes===1&&N!=='"'){N=l.escapeRegex(N),k.value+=N,H({value:N});continue}if(N==='"'){T.quotes=T.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:N});continue}if(N==="("){ie("parens"),G({type:"paren",value:N});continue}if(N===")"){if(T.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&T.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:N,output:T.parens?")":"\\)"}),me("parens");continue}if(N==="["){if(_.nobracket===!0||!le().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));N=`\\${N}`}else ie("brackets");G({type:"bracket",value:N});continue}if(N==="]"){if(_.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){G({type:"text",value:N,output:`\\${N}`});continue}if(T.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:N,output:`\\${N}`});continue}me("brackets");const V=k.value.slice(1);if(k.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(N=`/${N}`),k.value+=N,H({value:N}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(k.value);if(T.output=T.output.slice(0,-k.value.length),_.literalBrackets===!0){T.output+=de,k.value=de;continue}k.value=`(${P}${de}|${k.value})`,T.output+=k.value;continue}if(N==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:N,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};Y.push(V),G(V);continue}if(N==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:N,output:N});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,_),T.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=T.output.slice(0,V.outputIndex),Ae=T.tokens.slice(V.tokensIndex);V.value=V.output="\\{",N=de="\\}",T.output=ye;for(const be of Ae)T.output+=be.output||be.value}G({type:"brace",value:N,output:de}),me("braces"),Y.pop();continue}if(N==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:N});continue}if(N===","){let V=N;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:N,output:V});continue}if(N==="/"){if(k.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",x.pop(),k=j;continue}G({type:"slash",value:N,output:E});continue}if(N==="."){if(T.braces>0&&k.type==="dot"){k.value==="."&&(k.output=M);const V=Y[Y.length-1];k.type="dots",k.output+=N,k.value+=N,V.dots=!0;continue}if(T.braces+T.parens===0&&k.type!=="bos"&&k.type!=="slash"){G({type:"text",value:N,output:M});continue}G({type:"dot",value:N,output:M});continue}if(N==="?"){if(!(k&&k.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("qmark",N);continue}if(k&&k.type==="paren"){const de=ae();let ye=N;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ye=`\\${N}`),G({type:"text",value:N,output:ye});continue}if(_.dot!==!0&&(k.type==="slash"||k.type==="bos")){G({type:"qmark",value:N,output:ne});continue}G({type:"qmark",value:N,output:z});continue}if(N==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ue("negate",N);continue}if(_.nonegate!==!0&&T.index===0){he();continue}}if(N==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("plus",N);continue}if(k&&k.value==="("||_.regex===!1){G({type:"plus",value:N,output:$});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||T.parens>0){G({type:"plus",value:N});continue}G({type:"plus",value:$});continue}if(N==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:N,output:""});continue}G({type:"text",value:N});continue}if(N!=="*"){(N==="$"||N==="^")&&(N=`\\${N}`);const V=m.exec(le());V&&(N+=V[0],T.index+=V[0].length),G({type:"text",value:N});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=N,k.output=Z,T.backtrack=!0,T.globstar=!0,se(N);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",N);continue}if(k.type==="star"){if(_.noglobstar===!0){se(N);continue}const V=k.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:N,output:""});continue}const be=T.braces>0&&(V.type==="comma"||V.type==="brace"),Vt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Vt){G({type:"star",value:N,output:""});continue}for(;Q.slice(0,3)==="/**";){const vt=v[T.index+4];if(vt&&vt!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){k.type="globstar",k.value+=N,k.output=L(_),T.output=k.output,T.globstar=!0,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=L(_)+(_.strictSlashes?")":"|$)"),k.value+=N,T.globstar=!0,T.output+=V.output+k.output,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const vt=Q[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=`${L(_)}${E}|${E}${vt})`,k.value+=N,T.output+=V.output+k.output,T.globstar=!0,se(N+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){k.type="globstar",k.value+=N,k.output=`(?:^|${E}|${L(_)}${E})`,T.output=k.output,T.globstar=!0,se(N+ce()),G({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-k.output.length),k.type="globstar",k.output=L(_),k.value+=N,T.output+=k.output,T.globstar=!0,se(N);continue}const oe={type:"star",value:N,output:Z};if(_.bash===!0){oe.output=".*?",(k.type==="bos"||k.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&_.regex===!0){oe.output=N,G(oe);continue}(T.index===T.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(T.output+=K,k.output+=K):_.dot===!0?(T.output+=W,k.output+=W):(T.output+=X,k.output+=X),ae()!=="*"&&(T.output+=q,k.output+=q)),G(oe)}for(;T.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T.output=l.escapeLast(T.output,"["),me("brackets")}for(;T.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));T.output=l.escapeLast(T.output,"("),me("parens")}for(;T.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));T.output=l.escapeLast(T.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${E}?`}),T.backtrack===!0){T.output="";for(const Q of T.tokens)T.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(T.output+=Q.suffix)}return T};g.fastpaths=(v,A)=>{const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=p[v]||v;const j=l.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:D,DOTS_SLASH:R,NO_DOT:I,NO_DOTS:M,NO_DOTS_SLASH:$,STAR:E,START_ANCHOR:q}=c.globChars(j),F=_.dot?M:I,U=_.dot?$:I,K=_.capture?"":"?:",W={negated:!1,prefix:""};let z=_.bash===!0?".*?":E;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${q}${X.dot?R:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${D}${z}`;case".*":return`${x}${D}${z}`;case"*.*":return`${F}${z}${x}${D}${z}`;case"*/*":return`${F}${z}${P}${D}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${P})?${U}${D}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${P})?${U}${z}${x}${D}${z}`;case"**/.*":return`(?:${F}${ne(_)}${P})?${x}${D}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},O=l.removePrefix(v,W);let L=w(O);return L&&_.strictSlashes!==!0&&(L+=`${P}?`),L},i.exports=g},683:(i,o,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),m=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),p=(h,y,g=!1)=>{if(Array.isArray(h)){const P=h.map(R=>p(R,y,g));return R=>{for(const I of P){const M=I(R);if(M)return M}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),S=v?p.compileRe(h,y):p.makeRe(h,y,!1,!0),C=S.state;delete S.state;let j=()=>!1;if(A.ignore){const P={...y,ignore:null,onMatch:null,onResult:null};j=p(A.ignore,P,g)}const x=(P,D=!1)=>{const{isMatch:R,match:I,output:M}=p.test(P,S,y,{glob:h,posix:_}),$={glob:h,state:C,regex:S,posix:_,input:P,output:M,match:I,isMatch:R};return typeof A.onResult=="function"&&A.onResult($),R===!1?($.isMatch=!1,D?$:!1):j(P)?(typeof A.onIgnore=="function"&&A.onIgnore($),$.isMatch=!1,D?$:!1):(typeof A.onMatch=="function"&&A.onMatch($),D?$:!0)};return g&&(x.state=C),x};p.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?f.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=p.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},p.matchBase=(h,y,g,v=f.isWindows(g))=>(y instanceof RegExp?y:p.makeRe(y,g)).test(c.basename(h)),p.isMatch=(h,y,g)=>p(y,g)(h),p.parse=(h,y)=>Array.isArray(h)?h.map(g=>p.parse(g,y)):u(h,{...y,fastpaths:!1}),p.scan=(h,y)=>l(h,y),p.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=p.toRegex(C,y);return v===!0&&(j.state=h),j},p.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=u.fastpaths(h,y)),C===void 0?(_=u(h,y),_.prefix=S+(_.prefix||"")):_.output=C,p.compileRe(_,y,g,v)},p.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/$^/}},p.constants=m,i.exports=p},700:(i,o,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:m,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,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}=a(356),x=R=>R===h||R===f,P=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},D=(R,I)=>{const M=I||{},$=R.length-1,E=M.parts===!0||M.scanToEnd===!0,q=[],F=[],U=[];let K=R,W=-1,z=0,ne=0,w=!1,O=!1,L=!1,X=!1,te=!1,Z=!1,T=!1,J=!1,Y=!1,ee=0,k,N,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(k=N,K.charCodeAt(++W));for(;W<$;){N=le();let me;if(N===f){T=re.backslashes=!0,N=le(),N===y&&(Z=!0);continue}if(Z===!0||N===y){for(ee++;ae()!==!0&&(N=le());){if(N===f){T=re.backslashes=!0,le();continue}if(N===y){ee++;continue}if(Z!==!0&&N===d&&(N=le())===d){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(Z!==!0&&N===m){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(E===!0)continue;break}if(N===h){if(q.push(W),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(k===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(M.noext!==!0&&(N===A||N===u||N===l||N===_||N===p)===!0&&ce()===g){if(L=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,E===!0){for(;ae()!==!0&&(N=le());){if(N===f){T=re.backslashes=!0,N=le();continue}if(N===C){L=re.isGlob=!0,Y=!0;break}}continue}break}if(N===l){if(k===l&&(te=re.isGlobstar=!0),L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===_){if(L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===v){for(;ae()!==!0&&(me=le());){if(me===f){T=re.backslashes=!0,le();continue}if(me===j){O=re.isBracket=!0,L=re.isGlob=!0,Y=!0;break}}if(E===!0)continue;break}if(M.nonegate!==!0&&N===p&&W===z){J=re.negated=!0,z++;continue}if(M.noparen!==!0&&N===g){if(L=re.isGlob=!0,E===!0){for(;ae()!==!0&&(N=le());){if(N===g){T=re.backslashes=!0,N=le();continue}if(N===C){Y=!0;break}}continue}break}if(L===!0){if(Y=!0,E===!0)continue;break}}M.noext===!0&&(X=!1,L=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&L===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):L===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),M.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&T===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:R,start:z,base:se,glob:he,isBrace:w,isBracket:O,isGlob:L,isExtglob:X,isGlobstar:te,negated:J};if(M.tokens===!0&&(ie.maxDepth=0,x(N)||F.push(re),ie.tokens=F),M.parts===!0||M.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:z,Ce=q[G],Q=R.slice(ue,Ce);M.tokens&&(G===0&&z!==0?(F[G].isPrefix=!0,F[G].value=H):F[G].value=Q,P(F[G]),ie.maxDepth+=F[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<R.length){const G=R.slice(me+1);U.push(G),M.tokens&&(F[F.length-1].value=G,P(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};i.exports=D},513:(i,o,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);o.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),o.hasRegexChars=p=>m.test(p),o.isRegexChar=p=>p.length===1&&o.hasRegexChars(p),o.escapeRegex=p=>p.replace(d,"\\$1"),o.toPosixSlashes=p=>p.replace(u,"/"),o.removeBackslashes=p=>p.replace(f,h=>h==="\\"?"":h),o.supportsLookbehinds=()=>{const p=process.version.slice(1).split(".").map(Number);return p.length===3&&p[0]>=9||p[0]===8&&p[1]>=10},o.isWindows=p=>p&&typeof p.windows=="boolean"?p.windows:l===!0||c.sep==="\\",o.escapeLast=(p,h,y)=>{const g=p.lastIndexOf(h,y);return g===-1?p:p[g-1]==="\\"?o.escapeLast(p,h,g-1):`${p.slice(0,g)}\\${p.slice(g)}`},o.removePrefix=(p,h={})=>{let y=p;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},o.wrapOutput=(p,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${p})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(i,o,a)=>{/*!
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),u=a(333),l=a(251),p=a(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 P=l(String(h[x]),{...y,onResult:S},!0),$=P.state.negated||P.state.negatedExtglob;$&&_++;for(let E of m){let O=P(E,!0);($?!O.isMatch:O.isMatch)&&($?g.add(O.output):(g.delete(O.output),v.add(O.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,a)=>{o.exports=a(683)},356:(o,i,a)=>{const c=a(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}]`,P=`${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:P,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}]|$)`},O={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:O,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(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?E:$}}},754:(o,i,a)=>{const c=a(356),u=a(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],P=_.capture?"":"?:",$=u.isWindows(A),E=c.globChars($),O=c.extglobChars(E),{DOT_LITERAL:M,PLUS_LITERAL:B,SLASH_LITERAL:R,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:T}=E,D=Q=>`(${P}(?:(?!${T}${Q.dot?F:M}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?D(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const k={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,k),C=v.length;const J=[],Y=[],ee=[];let L=j,N;const re=()=>k.index===C-1,ae=k.peek=(Q=1)=>v[k.index+Q],ce=k.advance=()=>v[++k.index],ue=()=>v.slice(k.index+1),se=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},H=Q=>{k.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=k.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&&(k.output=k.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,k.output+=L.output)}if(J.length&&Q.type!=="paren"&&!O[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={...O[oe],conditions:1,inner:""};V.prev=L,V.parens=k.parens,V.output=k.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.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(ue()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:N,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Kt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Kt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?M.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?(k.output=v,k):(k.output=u.wrapOutput(oe,k,A),k)}for(;!re();){if(N=ce(),N==="\0")continue;if(N==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){N+="\\",G({type:"text",value:N});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,k.index+=ye,ye%2!==0&&(N+="\\")),_.unescape===!0?N=ce()||"":N+=ce()||"",k.brackets===0){G({type:"text",value:N});continue}}if(k.brackets>0&&(N!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&N===":"){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,k.backtrack=!0,ce(),!j.output&&x.indexOf(L)===1&&(j.output=q);continue}}}(N==="["&&ae()!==":"||N==="-"&&ae()==="]")&&(N=`\\${N}`),N==="]"&&(L.value==="["||L.value==="[^")&&(N=`\\${N}`),_.posix===!0&&N==="!"&&L.value==="["&&(N="^"),L.value+=N,H({value:N});continue}if(k.quotes===1&&N!=='"'){N=u.escapeRegex(N),L.value+=N,H({value:N});continue}if(N==='"'){k.quotes=k.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:N});continue}if(N==="("){ie("parens"),G({type:"paren",value:N});continue}if(N===")"){if(k.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:N,output:k.parens?")":"\\)"}),me("parens");continue}if(N==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));N=`\\${N}`}else ie("brackets");G({type:"bracket",value:N});continue}if(N==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:N,output:`\\${N}`});continue}if(k.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:N,output:`\\${N}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(N=`/${N}`),L.value+=N,H({value:N}),_.literalBrackets===!1||u.hasRegexChars(V))continue;const de=u.escapeRegex(L.value);if(k.output=k.output.slice(0,-L.value.length),_.literalBrackets===!0){k.output+=de,L.value=de;continue}L.value=`(${P}${de}|${L.value})`,k.output+=L.value;continue}if(N==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:N,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(N==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:N,output:N});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,_),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=k.output.slice(0,V.outputIndex),Ae=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",N=de="\\}",k.output=ye;for(const be of Ae)k.output+=be.output||be.value}G({type:"brace",value:N,output:de}),me("braces"),Y.pop();continue}if(N==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:N});continue}if(N===","){let V=N;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:N,output:V});continue}if(N==="/"){if(L.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",x.pop(),L=j;continue}G({type:"slash",value:N,output:R});continue}if(N==="."){if(k.braces>0&&L.type==="dot"){L.value==="."&&(L.output=M);const V=Y[Y.length-1];L.type="dots",L.output+=N,L.value+=N,V.dots=!0;continue}if(k.braces+k.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:N,output:M});continue}G({type:"dot",value:N,output:M});continue}if(N==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("qmark",N);continue}if(L&&L.type==="paren"){const de=ae();let ye=N;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=`\\${N}`),G({type:"text",value:N,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:N,output:ne});continue}G({type:"qmark",value:N,output:z});continue}if(N==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){le("negate",N);continue}if(_.nonegate!==!0&&k.index===0){he();continue}}if(N==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){le("plus",N);continue}if(L&&L.value==="("||_.regex===!1){G({type:"plus",value:N,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||k.parens>0){G({type:"plus",value:N});continue}G({type:"plus",value:B});continue}if(N==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:N,output:""});continue}G({type:"text",value:N});continue}if(N!=="*"){(N==="$"||N==="^")&&(N=`\\${N}`);const V=f.exec(ue());V&&(N+=V[0],k.index+=V[0].length),G({type:"text",value:N});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=N,L.output=Z,k.backtrack=!0,k.globstar=!0,se(N);continue}let Q=ue();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){le("star",N);continue}if(L.type==="star"){if(_.noglobstar===!0){se(N);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:N,output:""});continue}const be=k.braces>0&&(V.type==="comma"||V.type==="brace"),Kt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Kt){G({type:"star",value:N,output:""});continue}for(;Q.slice(0,3)==="/**";){const _t=v[k.index+4];if(_t&&_t!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=N,L.output=D(_),k.output=L.output,k.globstar=!0,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=N,k.globstar=!0,k.output+=V.output+L.output,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const _t=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${R}|${R}${_t})`,L.value+=N,k.output+=V.output+L.output,k.globstar=!0,se(N+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=N,L.output=`(?:^|${R}|${D(_)}${R})`,k.output=L.output,k.globstar=!0,se(N+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=N,k.output+=L.output,k.globstar=!0,se(N);continue}const oe={type:"star",value:N,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=N,G(oe);continue}(k.index===k.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(k.output+=K,L.output+=K):_.dot===!0?(k.output+=W,L.output+=W):(k.output+=X,L.output+=X),ae()!=="*"&&(k.output+=q,L.output+=q)),G(oe)}for(;k.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=u.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=u.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=u.escapeLast(k.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${R}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};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:P,ONE_CHAR:$,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:M,NO_DOTS_SLASH:B,STAR:R,START_ANCHOR:q}=c.globChars(j),F=_.dot?M:O,U=_.dot?B:O,K=_.capture?"":"?:",W={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}${P}${$}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${P})?${U}${$}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${P})?${U}${z}${x}${$}${z}`;case"**/.*":return`(?:${F}${ne(_)}${P})?${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,W);let D=w(T);return D&&_.strictSlashes!==!0&&(D+=`${P}?`),D},o.exports=g},683:(o,i,a)=>{const c=a(17),u=a(700),l=a(754),p=a(513),f=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const P=h.map(E=>m(E,y,g));return E=>{for(const O of P){const M=O(E);if(M)return M}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 P={...y,ignore:null,onMatch:null,onResult:null};j=m(A.ignore,P,g)}const x=(P,$=!1)=>{const{isMatch:E,match:O,output:M}=m.test(P,S,y,{glob:h,posix:_}),B={glob:h,state:C,regex:S,posix:_,input:P,output:M,match:O,isMatch:E};return typeof A.onResult=="function"&&A.onResult(B),E===!1?(B.isMatch=!1,$?B:!1):j(P)?(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,a)=>{const c=a(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}=a(356),x=E=>E===h||E===p,P=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},$=(E,O)=>{const M=O||{},B=E.length-1,R=M.parts===!0||M.scanToEnd===!0,q=[],F=[],U=[];let K=E,W=-1,z=0,ne=0,w=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,L,N,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=B,ce=()=>K.charCodeAt(W+1),ue=()=>(L=N,K.charCodeAt(++W));for(;W<B;){N=ue();let me;if(N===p){k=re.backslashes=!0,N=ue(),N===y&&(Z=!0);continue}if(Z===!0||N===y){for(ee++;ae()!==!0&&(N=ue());){if(N===p){k=re.backslashes=!0,ue();continue}if(N===y){ee++;continue}if(Z!==!0&&N===d&&(N=ue())===d){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&N===f){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(N===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(N===h){if(q.push(W),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(M.noext!==!0&&(N===A||N===l||N===u||N===_||N===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;ae()!==!0&&(N=ue());){if(N===p){k=re.backslashes=!0,N=ue();continue}if(N===C){D=re.isGlob=!0,Y=!0;break}}continue}break}if(N===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(N===_){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(N===v){for(;ae()!==!0&&(me=ue());){if(me===p){k=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(M.nonegate!==!0&&N===m&&W===z){J=re.negated=!0,z++;continue}if(M.noparen!==!0&&N===g){if(D=re.isGlob=!0,R===!0){for(;ae()!==!0&&(N=ue());){if(N===g){k=re.backslashes=!0,N=ue();continue}if(N===C){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}M.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)),M.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&k===!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(M.tokens===!0&&(ie.maxDepth=0,x(N)||F.push(re),ie.tokens=F),M.parts===!0||M.tokens===!0){let me;for(let G=0;G<q.length;G++){const le=me?me+1:z,Ce=q[G],Q=E.slice(le,Ce);M.tokens&&(G===0&&z!==0?(F[G].isPrefix=!0,F[G].value=H):F[G].value=Q,P(F[G]),ie.maxDepth+=F[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),M.tokens&&(F[F.length-1].value=G,P(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,a)=>{const c=a(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(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,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=a(357),l=(x,P,D)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(P===void 0||x===P)return String(x);if(c(P)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...D};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let I=String(R.relaxZeros),M=String(R.shorthand),$=String(R.capture),E=String(R.wrap),q=x+":"+P+"="+I+M+$+E;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let F=Math.min(x,P),U=Math.max(x,P);if(Math.abs(F-U)===1){let w=x+"|"+P;return R.capture?`(${w})`:R.wrap===!1?w:`(?:${w})`}let K=C(x)||C(P),W={min:x,max:P,a:F,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),W,R),F=W.a=0}return U>=0&&(z=d(F,U,W,R)),W.negatives=ne,W.positives=z,W.result=u(ne,z),R.capture===!0?W.result=`(${W.result})`:R.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(x,P,D){let R=p(x,P,"-",!1)||[],I=p(P,x,"",!1)||[],M=p(x,P,"-?",!0)||[];return R.concat(M).concat(I).join("|")}function f(x,P){let D=1,R=1,I=v(x,D),M=new Set([P]);for(;x<=I&&I<=P;)M.add(I),D+=1,I=v(x,D);for(I=A(P+1,R)-1;x<I&&I<=P;)M.add(I),R+=1,I=A(P+1,R)-1;return M=[...M],M.sort(y),M}function m(x,P,D){if(x===P)return{pattern:x,count:[],digits:0};let R=h(x,P),I=R.length,M="",$=0;for(let E=0;E<I;E++){let[q,F]=R[E];q===F?M+=q:q!=="0"||F!=="9"?M+=S(q,F):$++}return $&&(M+=D.shorthand===!0?"\\d":"[0-9]"),{pattern:M,count:[$],digits:I}}function d(x,P,D,R){let I=f(x,P),M=[],$=x,E;for(let q=0;q<I.length;q++){let F=I[q],U=m(String($),String(F),R),K="";if(!D.isPadded&&E&&E.pattern===U.pattern){E.count.length>1&&E.count.pop(),E.count.push(U.count[0]),E.string=E.pattern+_(E.count),$=F+1;continue}D.isPadded&&(K=j(F,D,R)),U.string=K+U.pattern+_(U.count),M.push(U),$=F+1,E=U}return M}function p(x,P,D,R,I){let M=[];for(let $ of x){let{string:E}=$;!R&&!g(P,"string",E)&&M.push(D+E),R&&g(P,"string",E)&&M.push(D+E)}return M}function h(x,P){let D=[];for(let R=0;R<x.length;R++)D.push([x[R],P[R]]);return D}function y(x,P){return x>P?1:P>x?-1:0}function g(x,P,D){return x.some(R=>R[P]===D)}function v(x,P){return Number(String(x).slice(0,-P)+"9".repeat(P))}function A(x,P){return x-x%Math.pow(10,P)}function _(x){let[P=0,D=""]=x;return D||P>1?`{${P+(D?","+D:"")}}`:""}function S(x,P,D){return`[${x}${P-x===1?"":"-"}${P}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,P,D){if(!P.isPadded)return x;let R=Math.abs(P.maxLen-String(x).length),I=D.relaxZeros!==!1;switch(R){case 0:return"";case 1:return I?"0?":"0";case 2:return I?"0{0,2}":"00";default:return I?`0{0,${R}}`:`0{${R}}`}}l.cache={},l.clearCache=()=>l.cache={},i.exports=l},17:i=>{i.exports=Kd},837:i=>{i.exports=Nf()}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}},c=!0;try{e[i](a,a.exports,r),c=!1}finally{c&&delete t[i]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Ir.exports=n})()),Ir.exports}var ba;function Tf(){return ba||(ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var c in a)Object.defineProperty(o,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return i}});const r=Of();function n(o,a){if(o.protocol!==void 0){const l=a.protocol.slice(0,-1);if(o.protocol!==l)return!1}if(o.port!==void 0&&o.port!==a.port)return!1;if(o.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
- `+JSON.stringify(o));if(!(0,r.makeRe)(o.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=o.pathname)!=null?c:"**").test(a.pathname)}function i(o,a,c){return o.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Pr)),Pr}var xa;function mc(){return xa||(xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:i,src:o,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(o||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:o,width:a,quality:c}));if(o.startsWith("//"))throw new Error('Failed to parse src "'+o+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!o.startsWith("/")&&(i.domains||i.remotePatterns)){let u;try{u=new URL(o)}catch(f){throw console.error(f),new Error('Failed to parse src "'+o+'" 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}=Tf();if(!f(i.domains,i.remotePatterns,u))throw new Error("Invalid src prop ("+o+') 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 i.path+"?url="+encodeURIComponent(o)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(jr)),jr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Ee,i=Ze._(B),o=r._(wa),a=r._(Wd()),c=uo,l=Ut,u=Vd(),f=pt,m=qs(),d=r._(mc()),p=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,x,P){const D=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===D)return;_["data-loaded-src"]=D,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const I=new Event("load");Object.defineProperty(I,"target",{writable:!1,value:_});let M=!1,$=!1;C.current({...I,nativeEvent:I,currentTarget:_,target:_,isDefaultPrevented:()=>M,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{M=!0,I.preventDefault()},stopPropagation:()=>{$=!0,I.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const I=new URL(D,"http://n").searchParams.get("url")||D;if(_.getAttribute("data-nimg")==="fill"){if(!P&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+I+'" 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:E}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(E)||(0,f.warnOnce)('Image with src "'+I+'" has "fill" and parent element with invalid "position". Provided "'+E+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+I+'" 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 M=_.height.toString()!==_.getAttribute("height"),$=_.width.toString()!==_.getAttribute("width");(M&&!$||!M&&$)&&(0,f.warnOnce)('Image with src "'+I+`" 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]=i.version.split("."),j=parseInt(S,10),x=parseInt(C,10);return j>18||j===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,i.forwardRef)((_,S)=>{let{src:C,srcSet:j,sizes:x,height:P,width:D,decoding:R,className:I,style:M,fetchPriority:$,placeholder:E,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:O,...L}=_;return i.default.createElement("img",{...L,...y($),loading:q,width:D,height:P,decoding:R,"data-nimg":U?"fill":"1",className:I,style:M,sizes:x,srcSet:j,src:C,ref:(0,i.useCallback)(X=>{S&&(typeof S=="function"?S(X):typeof S=="object"&&(S.current=X)),X&&(O&&(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,E,K,W,z,F))},[C,E,K,W,z,O,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,E,K,W,z,F)},onError:X=>{ne(!0),E!=="empty"&&z(!0),O&&O(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&&o.default.preload?(o.default.preload(C.src,j),null):i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...j}))}const A=(0,i.forwardRef)((_,S)=>{const j=!(0,i.useContext)(m.RouterContext),x=(0,i.useContext)(u.ImageConfigContext),P=(0,i.useMemo)(()=>{const W=p||x||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,O)=>w-O),ne=W.deviceSizes.sort((w,O)=>w-O);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:D,onLoadingComplete:R}=_,I=(0,i.useRef)(D);(0,i.useEffect)(()=>{I.current=D},[D]);const M=(0,i.useRef)(R);(0,i.useEffect)(()=>{M.current=R},[R]);const[$,E]=(0,i.useState)(!1),[q,F]=(0,i.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:P,blurComplete:$,showAltText:q});return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:I,onLoadingCompleteRef:M,setBlurComplete:E,setShowAltText:F,ref:S}),K.priority?i.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)})(Wn,Wn.exports);var Mf=Wn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Ee,n=uo,i=pt,o=Mf,a=r._(mc()),c=u=>{(0,i.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[m,d]of Object.entries(f))d===void 0&&delete f[m];return{props:f}},l=o.Image})(nc);var kf=nc;const Ca=Ht(kf),Lf=({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(je,{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(Ca,{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(Ca,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]})},Df=({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((i,o)=>s.jsx(Lf,{item:i,CONSTANTS:t},`footer-support-item-${o}`))})]},`footer-support-${n}`))}),$f=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:i,columnAlignItems:o,textAlignContent:a,textAlignItems:c,children:l})=>s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:i,alignItems:o}},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})]})}),Bf=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:i,...o})=>s.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...o,children:[s.jsx(b.Accordion.Header,{id:(o==null?void 0:o.id)??"",className:pe.accordionHeader,closeIndicator:s.jsx(b.Icon,{name:i.arrow_up,size:"medium"}),openIndicator:s.jsx(b.Icon,{name:i.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})})})]}),On=e=>{const{isMobile:t}=Oe();return t?s.jsx(Bf,{...e}):s.jsx($f,{...e})},kt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:i,icons:o,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:m,columnAlignContent:d,columnAlignItems:p,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Te();switch(e){case"menu":v=s.jsx(je,{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:o==null?void 0:o.map((S,C)=>s.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});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((S,C)=>s.jsx(je,{prefetch:!1,href:S.link??"#",target:"_blank",children:s.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=s.jsx("div",{className:r,...g,children:t})}return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:p}},...g,children:s.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},qf=({className:e,text:t,...r})=>s.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),hc=()=>{const{nextimage:e}=Te();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})})};hc.displayName="Footer.Stamps";const gc=({children:e,legalTextSlot:t,adornment:r,className:n,...i})=>{const{isMobile:o}=Oe(),a=B.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",{...i,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>s.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${o?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})]})};gc.displayName="Footer.Wrapper";const yc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:i,LEGAL_INFORMATION_TEXT:o,ICONS:a})=>{var c;return s.jsxs(gc,{adornment:i,legalTextSlot:s.jsx(qf,{text:o}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>s.jsx(On,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,m)=>s.jsx(kt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},m))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(On,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(kt,{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(On,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(kt,{children:r==null?void 0:r.subTitle}):null,s.jsx(kt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(hc,{})]})]})};yc.displayName="Footer";const Hf=Object.freeze(Object.defineProperty({__proto__:null,Footer:yc,FooterSupport:Df},Symbol.toStringTag,{value:"Module"})),go={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},yo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=We(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=xe(),o=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:o,size:"medium",variant:"primary",style:{backgroundColor:"black",display:o>0?"flex":"none"}}),s.jsx(b.Icon,{name:i.header.ICONS.bag,size:"medium"})]})})};yo.displayName="Header.Bag";const yt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(je,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,_c=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Be(),i=o=>{o?n(o):r()};return s.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((o,a)=>s.jsx(yt,{href:o.link,onMouseEnter:()=>i(o.submenuId),onFocus:()=>i(o.submenuId),children:s.jsx(b.Header.CategoryItem,{className:go["btn-header"],value:o.submenuId??null,adornment:{start:s.jsx(b.Icon,{name:o.iconStart}),end:s.jsx(b.Icon,{name:o.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${o.label}`})},children:o.label})},`category-${o.label}-${a}`))})};_c.displayName="Header.Categories";function zf({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=no();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 Ff={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},_o=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:i}=ge(),o=50/e.length;return s.jsx("div",{className:Ff["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(so,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:s.jsxs(je,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),i({updatePromotionRef:!0,promotion:u})},children:[s.jsx(Me.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${o}vw`}),a.label&&s.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};_o.displayName="Menu.Thumbnail";const Vn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},vc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:i}=Te(),{reset:o}=Be(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=xe();return s.jsxs("div",{...n,className:Vn["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var p,h,y;const m=u.listCollapseDesk&&!((p=u.see_all)!=null&&p.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(yt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(o(),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,...m,className:Vn["submenu-categories"],children:u.items.map((g,v)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:s.jsx(tt,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{o(),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&&(o(),a({content:`menu:${u.label??""}:${r.label}`}),i.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"})]})};vc.displayName="Menu.Categories";const bc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return s.jsxs(s.Fragment,{children:[s.jsx("div",{...r,className:Vn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&s.jsx(b.Utils.Divider,{size:"small"})]})};bc.displayName="Menu.MenuRoot";const Uf=lo(()=>Promise.resolve(bc),{ssr:!1}),Tn={Root:Uf,Categories:vc,Thumbnail:_o},xc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Bt(),{reset:n}=Be();return s.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((i,o)=>{const{thumbnails:a,label:c,id:l}=i,u=l===r,f=a==null?void 0:a.some(m=>!!m.srcDesk);return s.jsxs(Tn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[s.jsx(Tn.Categories,{dividerOnRight:!!f,subMenu:i}),Array.isArray(a)&&s.jsx(Tn.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${o}`)})})};xc.displayName="Header.SubMenu";const Cc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return s.jsx(je,{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"})})})};Cc.displayName="Header.WishList";const Sc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:i}=ge(),{reset:o}=Be(),{setValue:a}=qt();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[s.jsx(b.Header.Logo,{style:{width:"100%"},children:s.jsx(je,{href:"/",onMouseEnter:o,children:s.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{i({content:"header:logo"})}})})}),s.jsx(_c,{}),s.jsxs(b.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[s.jsx(zf,{SearchModal:t}),s.jsx(e,{target:r.current,children:s.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),i({content:"header:user_menu"})},className:go["btn-login"],innerRef:r,children:s.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),s.jsx(Cc,{}),s.jsx(yo,{id:"cart-button"})]})]}),s.jsx(xc,{})]})};Sc.displayName="Header.HeaderDesktopWrapper";const Gf="_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:Gf,"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:i,...o})=>s.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?s.jsxs(b.Banner.Container,{...o,className:_e["menu-body-banner-container-modifier"],children:[s.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:s.jsx(Me.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:i?{color:i}:{},children:e})})})})]}):s.jsx("h2",{...o,children:e})});Ac.displayName="Menu.MenuCategories";const Rc=({children:e,link:t})=>{const{reset:r}=Ue();return t?s.jsx(je,{href:t??"#",onClick:r,children:e}):e};Rc.displayName="Menu.MenuCategoriesWrapper";const Ec=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Te(),{reset:n}=Ue(),{handleSelectContent:i}=ge(),{CONSTANTS:o}=xe(),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:o.header.ICONS.add,close:o.header.ICONS.minus},expansivesLabels:{open:o.header.COMPONENT_LIST.listExpandLabel,close:o.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:s.jsx(b.Icon,{name:o.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[s.jsx(yt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),i({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((m,d)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:s.jsx(tt,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{n(),i({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var m;n(),i({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Ec.displayName="Menu.SubMenuSubCategory";const wc=({submenu:e})=>{var o;const t=Bt(),{handleCloseSubMenu:r}=ft(),{reset:n}=Be(),{CONSTANTS:i}=xe();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:i.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(_o,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(o=e==null?void 0:e.subCategories)==null?void 0:o.map((a,c)=>s.jsx(Ec,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};wc.displayName="Menu.SubMenuItem";const jc=()=>{const{headerData:e}=xe(),t=Bt(),{reset:r}=Be(),{bodyRef:n}=ft();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((i,o)=>s.jsx(wc,{submenu:i},`submenu-${i.id}-${o}`))})})};jc.displayName="Menu.SubMenu";const Pc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=Be(),{bodyRef:i}=ft(),{handleSelectContent:o}=ge();return s.jsxs("div",{...t,ref:i,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(Rc,{link:a.submenuId?null:a.link,children:s.jsx(Ac,{onClick:()=>{n(a.submenuId??null),o({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),s.jsx(jc,{})]})};Pc.displayName="Menu.MenuBody";const Ic=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();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})]})};Ic.displayName="Menu.MenuHeaderWrapper";const Nc=({navigationLinks:e})=>{const{reset:t}=Ue(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,i)=>s.jsx(tt,{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},i))}):null};Nc.displayName="Menu.MenuHeaderNavLinks";const Oc=()=>{const{headerData:e}=xe();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Ic,{title:e.title,subtitle:e.subtitle}),s.jsx(Nc,{navigationLinks:e.navigationLinks})]})};Oc.displayName="Menu.MenuHeaderContainer";const Tc=({children:e})=>{const{documentBodyRef:t}=ft(),{CONSTANTS:r}=xe(),n=ro(),{setValue:i}=Ue();return s.jsx(b.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:i,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})})};Tc.displayName="Menu.MenuRoot";const Wf=lo(()=>Promise.resolve(Tc),{ssr:!1}),Dt=({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})]});Dt.displayName="Menu.NavigationBarItem";const Mc=()=>{const{setIsOpen:e}=We(),{reset:t}=Ue(),{setValue:r}=qt(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=xe(),{router:o}=Te();return s.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:i.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[s.jsx(Dt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:i.header.MENU_INFO.login.button_text}),s.jsx(Dt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:i.header.MENU_INFO.bag.button_text}),s.jsx(Dt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.store.button_icon,onClick:()=>{o.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:i.header.MENU_INFO.store.button_text})]})};Mc.displayName="Menu.NavigationBar";const Lt={Root:Wf,NavigationBar:Mc,Header:Oc,Body:Pc},kc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),n=B.useRef(null),{CONSTANTS:i}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:a,MENU_MOB_BTN_SIDE:c="right"}=i.header,{handleSelectContent:l}=ge(),{setValue:u}=no(),{setValue:f}=Ue(),{setValue:m}=qt();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(je,{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:()=>{m(!0),l({content:"header:user_menu"})},innerRef:n,children:s.jsx(b.Icon,{name:a.person,size:"medium"})}),s.jsx(yo,{}),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(Rs,{children:s.jsx(e,{target:n==null?void 0:n.current,children:s.jsxs(Lt.Root,{children:[s.jsx(Lt.Header,{}),s.jsx(Lt.Body,{}),o?s.jsx(Lt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})})]})};kc.displayName="Header.HeaderMobileWrapper";const Lc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:i,rootRef:o,CONSTANTS:a}=xe(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=a;return s.jsx(b.Header.Structure,{innerRef:i,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:go["header-animation"],children:s.jsxs(b.Header.Root,{innerRef:o,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[s.jsx("div",{className:Je["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:s.jsx(kc,{UserMenu:r,SearchModal:n})}),s.jsx("div",{className:Je["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:s.jsx(Sc,{UserMenu:r,SearchModal:n})}),t,s.jsx(co,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Lc.displayName="Header";const Vf="_shippingFreight_6z8rf_6",Kf="_shippingFreight__postalCodeGrid_6z8rf_10",Xf="_shippingFreight__grid_6z8rf_14",Qf="_shippingFreight__grid__title_6z8rf_18",Yf="_shippingFreight__grid__remember_6z8rf_29",Zf="_postalCodeContainer_6z8rf_44",Jf="_deliveryStatusBar__tag_6z8rf_49",ep="_deliveryStatusBarError__tag_6z8rf_66",tp="_deliveryInfo_6z8rf_74",rp="_deliveryInfo__content_6z8rf_78",np="_deliveryInfo__text_6z8rf_84",op="_deliveryInfo__title_6z8rf_89",ip="_deliveryInfo__subtitle_6z8rf_99",ap="_deliveryInfo__tooltipIcon_6z8rf_109",sp="_deliveryInfo__tooltip_6z8rf_109",cp="_freightGrid_6z8rf_148",lp="_freightContainer_6z8rf_155",up="_freightOption__content_6z8rf_160",dp="_freightOption__value_6z8rf_166",fp="_freightOption__title_6z8rf_177",pp="_freightOption__title_item_6z8rf_181",mp="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Vf,shippingFreight__postalCodeGrid:Kf,shippingFreight__grid:Xf,shippingFreight__grid__title:Qf,shippingFreight__grid__remember:Yf,postalCodeContainer:Zf,deliveryStatusBar__tag:Jf,deliveryStatusBarError__tag:ep,deliveryInfo:tp,deliveryInfo__content:rp,deliveryInfo__text:np,deliveryInfo__title:op,deliveryInfo__subtitle:ip,deliveryInfo__tooltipIcon:ap,deliveryInfo__tooltip:sp,freightGrid:cp,freightContainer:lp,freightOption__content:up,freightOption__value:dp,freightOption__title:fp,freightOption__title_item:pp,freightOption__paragraph:mp,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},hp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:i="",labelDescription:o,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=B.useState(!1),f=B.useRef(null),m=()=>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," ",i]}),r&&s.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),o&&s.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:m,onMouseLeave:m,"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:o})]})]})]})},gp=({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})]})})})]})}),yp=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),_p=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),vp=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),Sa=({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]})}),bp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},xp=e=>{var r,n,i;const t=[];return(i=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||i.forEach(o=>{t.push({id:o.id,name:o.name,price:o.price,shippingEstimate:o.shippingEstimate})}),t},Cp=({component:e,parent:t,top:r,left:n,target:i,contentRef:o,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Oe();return s.jsx(s.Fragment,{children:u?s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:o,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:o,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})})},Sp=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:i,setError:o,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var I,M,$,E;const f=Qe(),m=Qe(q=>q.shipping),[d,p]=B.useState(),[h,y]=B.useState(!1),[g,v]=B.useState(!1),[A,_]=B.useState(!1),S=(M=(I=f.shippingData)==null?void 0:I.address)==null?void 0:M.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=B.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?p(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):p(U)},P=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await xo.get(`https://viacep.com.br/ws/${F}/json/`)).data.erro){o&&o(l.messages.cep_not_found),a(!1),v(!0);return}o&&o(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},D=async()=>{y(!0);try{const q=await xo.post("/api/checkout/simulation",{items:[{id:n,quantity:i,seller:t}],country:"BRA",postalCode:C});e(xp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),m(C,"BRA")}},R=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await P({target:{value:C}}),h||(D(),a(!0))};return s.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?s.jsx(Cp,{component:c,isOpen:A,parent:j.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:(E=($=f.shippingData)==null?void 0:$.address)==null?void 0:E.postalCode,label:l.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"&&R()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(b.Button,{onClick:R,size:r,title:"button",children:h?s.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Ap=({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(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})})]}),s.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Rp=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),Ep=({className:e,sellerId:t,skuId:r,quantity:n,size:i,seller:o,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=B.useState(""),[m,d]=B.useState([]),[p,h]=B.useState(""),[y,g]=B.useState(!1),v=_=>f(_),A=_=>{d(_),l({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 s.jsxs(Rp,{className:e,children:[s.jsxs(Ap,{freightConfig:c.freightConfig,children:[s.jsx(vp,{children:s.jsx(Sp,{onUpdateFreightItems:A,skuId:r,quantity:n,size:i,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),p?s.jsx(Sa,{size:i,message:p,setError:h}):m.length>0&&s.jsx(Sa,{size:i,message:c.freightConfig.messages.delivered_by,seller:o})]}),y&&!p?m.length>0&&s.jsxs(yp,{children:[s.jsx(_p,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(gp,{id:_.id,value:Yn({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${bp(_.shippingEstimate)}`,radioValue:u,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(hp,{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]})},Dc=B.createContext({}),wp=({children:e,item:t,index:r,shelfTitle:n,...i})=>{const[o,a]=B.useState(null),c=B.useRef(null),l=B.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),m=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{m("add_to_wishlist")},p=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:o,selectedSkus:[o]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),m("select_item")};return s.jsx(Dc.Provider,{value:B.useMemo(()=>({...i,index:r,item:t,element:c,selectedSku:o,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:p}),[i,t,c,o]),children:e})},Ne=()=>{const e=B.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:i,...o})=>{const{item:{availability:{status:a},image:c}}=Ne();return a?s.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(we.Wrapper,{type:"actions--group",children:[s.jsx(we.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!i&&s.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}=We(),{isMobile:i=!1,selectedSku:o,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ne(),f=()=>{var p;if(!o)return;const d=Jn(o.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:o==null?void 0:o.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(p=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:p.url}),l()},m=o?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&&!o&&!a,size:i?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":m})};Bc.displayName="ProductCard.Actions.BuyButton";const qc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:i,WishListToggle:o}=Ne();return s.jsxs(we.Wrapper,{type:"header",style:{zIndex:i.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,i.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&s.jsx(o,{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,...i})=>{const{element:o,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:m,CONSTANTS:d}=Ne(),p=La({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:o,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[s.jsx(je,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(p)&&p.map(({url:h,alternateName:y},g)=>B.createElement(Me.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(we.Video,{url:u,poster:p[0].url}),t]})};Hc.displayName="ProductCard.Media.Media";const zc=({className:e,callback:t,children:r,...n})=>{const{isMobile:i,item:o,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ne(),{availability:{status:c}}=o;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:i?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(o)},children:a.notify})]})};zc.displayName="ProductCard.OutStock";const Fc=({children:e,className:t="",index:r,isMobile:n=!1,item:i,size:o,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...m})=>s.jsx(wp,{item:i,isMobile:n,outStock:c,order:a,size:o,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:s.jsx("div",{...m,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":o,children:e})});Fc.displayName="ProductCard.Root";const Uc=({disabled:e,label:t,size:r,value:n,onClick:i,...o})=>s.jsxs(b.ToggleSize.Wrapper,{...o,disabled:!1,outOfStock:e,size:r,onClick:i,children:[s.jsx(b.ToggleSize.DisabledAdornment,{}),s.jsx(b.ToggleSize.Text,{children:t})]});Uc.displayName="ProductCard.SizeSelector.Item";const Gc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:i})=>{const{item:o,isMobile:a,setSelectedSku:c,eventDataRef:l}=Ne();n.productId=o.id;const u=Oa(n),f=Ia(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const m=B.useCallback(p=>{const h=r===p?null:p;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=B.useCallback(()=>{if(u&&typeof i=="function"){i(o,n);return}m(n)},[n,i,m,u,o]);return s.jsx(Uc,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};Gc.displayName="ProductCard.SizeSelector.SkuItem";const Wc=({callback:e,className:t="",children:r,setNotify:n,...i})=>{const{isMobile:o,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Ne();return s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":o,children:[s.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>s.jsx(Gc,{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})]})};Wc.displayName="ProductCard.SizeSelector";const Kn=({alt:e="",callback:t,more:r,total:n=4,src:i,url:o,...a})=>s.jsxs(b.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(o)},children:[s.jsx(b.ToggleStyle.DisabledAdornment,{}),s.jsxs(b.ToggleStyle.Texture,{children:[i&&s.jsx(Me.Image,{alt:e??i,src:i,height:34,width:34}),r&&s.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:s.jsxs("p",{children:["+ ",n]})})]})]}),jp=({children:e,callback:t,data:r,total:n=4,size:i,...o})=>{const{index:a}=Ne(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...o,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>s.jsx(Kn,{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:i},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&s.jsx(Kn,{size:i,total:r.length-n,more:!0})]})},Vc=({callback:e,className:t,data:r,images:n=[],findTexture:i,...o})=>{const{CONSTANTS:a}=Ne(),c=i||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return s.jsx(jp,{...o,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&s.jsx(Kn,{active:!0,size:"x-small",src:l.url})})};Vc.displayName="ProductCard.StyleSelector";const Kc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:i,highPrice:o},installments:{count:a,value:c}},eventDataRef:l}=Ne();l.current.priceInfo={price:i,listPrice:o};const u=Le(o,t),f=Le(i,t),m=Le(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 ${m}`,size:"small"}):null]})})})};Kc.displayName="ProductCard.Price";const Xc=({tag:e,className:t})=>{const{item:{name:r}}=Ne();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})})})})]})};Xc.displayName="ProductCard.Title";const Qc=({className:e,url:t,poster:r,...n})=>{const{element:i}=Ne();return B.useEffect(()=>{if(!(i!=null&&i.current))return;const o=i.current,a=o.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(m=>{Da(m.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{o&&(c.observe(o),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,i]),s.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&s.jsx(Me.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})=>s.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:Wc,StyleSelector:Vc,Title:Xc,Video:Qc,Wrapper:Yc},Aa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const i=Ma(e.imageUrl,n.pdp),{nextimage:o}=Te();return s.jsx(o,{src:i,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Pp=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),i=B.useRef(!1);return s.jsx(Me.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{i.current||(i.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Ip={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Zc=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:i})=>{var u,f;const{initialize:o,pagination:a,controller:c,itemsStyles:l}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return s.jsxs(b.Carousel.Root,{innerRef:m=>{o(m)},className:Ip["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:m=>c==null?void 0:c.navigateTo(m)})}),s.jsxs(b.Carousel.Body,{children:[s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Aa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},"PDP_gallery_0"),t&&s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Pp,{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((m,d)=>d===0?null:s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Aa,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},`PDP_gallery_${d}`))]})]})};Zc.displayName="PDP.Carousel";const Np=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=eo(),[i,o]=B.useState({show:!1,initialIndex:0});B.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const a=c=>{o({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Zc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Jc=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=eo(),n=B.useMemo(()=>{const i=r.filter(o=>!e.includes(o.imageLabel));return i.length>0?i:r},[]);return s.jsx(Np,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Jc.displayName="PDP.Gallery";const Op=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Jc},Symbol.toStringTag,{value:"Module"})),Tp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},vo=({size:e,adornment:t,title:r,subtitle:n,supportChildren:i,className:o,Z_INDEX_WAR:a,...c})=>s.jsxs(b.SnackBar.Structure,{...c,size:e,className:b.helpers.classNameConcat(Tp["snackbar-modifier"],o),width:360,style:{zIndex:a.snackbar},children:[s.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),i&&s.jsx(b.SnackBar.Support,{children:i})]});vo.displayName="SnackBar";const el=B.createContext({}),Mp=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,P,D,R;const[n,i]=B.useState(!0),{initialize:o,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:(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:((D=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:D.items)??[]},u=(R=l.content)==null?void 0:R.filter(I=>!I.countDownEndDate||new Date(I.countDownEndDate)>new Date),f=u.length>1,m={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{i(!1)},p=b.helpers.ValidateProp({fieldTypes:st.Mode,property:l.textColorVariant,fallback:"default"});return s.jsx(el.Provider,{value:{isOpen:n,setIsOpen:i,hasCarousel:f,backgroundStyle:m,handleCloseTipbar:d,mode:p,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:o,controller:a,itemsStyles:c},...r},children:t})},qe=()=>B.useContext(el),kp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return s.jsx(Fn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Lp="_tipbar_bt3p0_1",Dp="_tipbar__carousel_bt3p0_15",_t={tipbar:Lp,tipbar__carousel:Dp,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},$p=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:i}=qe(),[o,a]=B.useState({status:!1,showSnackBar:!1}),c=()=>{a({status:!0,showSnackBar:!0})};return B.useEffect(()=>{o.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},i.TIPBAR_CONFIGS.snackbar_timeout)},[o]),s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...n,onClick:c,disabled:o.status,className:_t["tipbar-item__coupon"],children:o.status?"Cupom aplicado":"Aplicar cupom"}),o.showSnackBar&&(t||r)&&s.jsx(vo,{title:t,subtitle:r,Z_INDEX_WAR:i.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},Bp=({title:e,description:t,style:r,mode:n,className:i})=>s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{mode:n,className:i,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})]})}),qp=({className:e,description:t,staticZone:r,title:n,type:i})=>{const{mode:o}=qe();if(i==="countdown")return s.jsx(kp,{dateEnd:r.countDownEndDate,size:"x-small",mode:o});if(i==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:st.Mode,property:r.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:st.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?s.jsx($p,{coupon:r.coupon,mode:a,variant:c,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return s.jsx(Bp,{title:n,description:t,mode:o,className:e})},Hp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:i,CONSTANTS:o}=qe(),a=B.useRef(null),c=(u,f)=>{var m,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(m=i.controller)==null||m.prevPage():(d=i.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=B.useCallback(()=>{if(n&&i.controller){const u=setInterval(()=>{var f;(f=i.controller)==null||f.nextPage()},n);a.current=u}},[n,i]);return B.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),s.jsxs(b.Carousel.Root,{innerRef:u=>{i.initialize(u)},className:_t.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:o.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:o.ICONS.arrow_right})}})]})},Ra=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return s.jsx(b.Button,{title:"fechar tipbar",className:_t["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(b.Icon,{name:r.ICONS.close})}})},zp=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:i,showCarouselArrows:o,slideTranstionTimer:a,handleCloseTipbar:c}=qe(),l=t&&o;return s.jsx("div",{style:i,"data-hasclosebtn":n,className:_t.tipbar,children:t?s.jsxs(s.Fragment,{children:[s.jsx(Hp,{mode:r,showCarouselArrows:l,slideTranstionTimer:a,children:e}),n&&s.jsx(Ra,{handleCloseTipbar:c,showCarouselArrows:l,mode:r})]}):s.jsxs(s.Fragment,{children:[e,n&&s.jsx(Ra,{handleCloseTipbar:c,mode:r})]})})},Fp=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:i}=qe(),o=s.jsx("div",{...r,className:_t["tipbar-item"],children:e});return n?s.jsx(b.Carousel.Item,{style:i.itemsStyles,children:o}):o},tl=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?s.jsx(zp,{children:r.map((n,i)=>{var o;return s.jsx(s.Fragment,{children:s.jsx(yt,{href:n.link,children:s.jsx(Fp,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((o=n==null?void 0:n.items)!=null&&o.length)?n.items.map((a,c)=>s.jsx(qp,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${i}`)})}):null};tl.displayName="TipBar.Root";const rl=({className:e,...t})=>s.jsx(Mp,{...t,children:s.jsx(tl,{className:e})});rl.displayName="TipBar";const Up="_container_1sy8s_16",$e={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Up,"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"},Gp=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:$e["add-itens-to-cart-container"],children:[s.jsxs("div",{className:$e["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:$e["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:$e["add-itens-to-cart-total"],children:s.jsx("span",{children:Yn({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(b.Button,{onClick:t,className:$e["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Wp=e=>e.reduce((t,r)=>{var i;const n=t.find(o=>o.node.id===r.node.id);if(!n)return[...t,r];if((i=n==null?void 0:n.node.isVariantOf)!=null&&i.hasVariant){const o=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;o&&a&&(n.node.isVariantOf.hasVariant=[...o,...a])}return t},[]),Vp=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:i,totalPrice:o}=r;try{if(!e){const{[t]:u,...f}=i;return{...r,totalPrice:o-u.price,products:f}}const a=Jn(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(i[t]){const{price:u}=i[t];return i[t]={...i[t],price:l,id:e.sku,seller:c},{totalPrice:o+l-u,products:{...i}}}return{totalPrice:o+l,products:{...i,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Kp="_carousel_245ib_1",Xp="_shelf__container_245ib_14",Qp="_shelf_without_carousel_245ib_34",at={carousel:Kp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Xp,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Qp},Ea=({title:e})=>s.jsx("div",{className:at.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",Je["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Je["responsive-desktop-flex"]),children:e})]})})}),Yp=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:i}=Oe(),o=r[i?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=b.Carousel.useCarousel({itemsPerPage:o,gap:10,loop:!0,direction:"row"}),f=B.Children.toArray(e).length;return i||f>=4?s.jsxs(b.Carousel.Root,{innerRef:d=>{a(d)},className:at.carousel,children:[s.jsxs("div",{className:at["custom-controllers"],children:[n&&s.jsx(Ea,{title:n}),o<f&&s.jsxs(b.Carousel.Controller,{className:at["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})}})]}),!i&&o>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:B.Children.map(e,(d,p)=>s.jsx(b.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${p}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(Ea,{title:n}),s.jsx("div",{className:at.shelf_without_carousel,children:e})]})},Zp={Shelf:Yp},Jp=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:i})=>{const o=B.useMemo(()=>Wp(r),[r]),{isMobile:a}=Oe(),{addItemsToCart:c}=We(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=Qn(),[f,m]=B.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=o.find(v=>v.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},p=({selectedProduct:h,productId:y})=>{const g=Vp({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});m(g)};return B.useEffect(()=>{if(!t||o.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:o},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),s.jsxs("div",{className:$e.container,ref:n,children:[s.jsx("div",{className:$e["carousel-container"],style:{width:o.length<=3?"max-content":"75%"},children:s.jsx(Zp.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:o.length>=3?2.2:o.length},ICONS:e.ICONS,children:Array.isArray(o)&&o.map(({node:h},y)=>{var A,_,S;const g=u(h.cluster.highlights),{availability:{status:v}}=h;return v?s.jsxs(we.Root,{item:{...h,image:oo.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:i,children:[s.jsx(we.Header,{product:h,tag:g.commercial}),s.jsx(we.Media,{}),s.jsxs(we.Wrapper,{type:"body",children:[s.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}}),s.jsx(we.Actions,{children:s.jsx(we.SizeSelector,{callback:C=>p({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:$e["add-cart-container"],children:s.jsx(Gp,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},em={teamComponents:{AddToCart:co,BackToTop:fd,BuyPackage:Jp,...Hf,FreightCalculation:Ep,Header:Lc,Link:tt,Media:Me,ProductCard:we,TipBar:rl},template:{pdp:Op},utils:{EventCollector:pd,ExternalScripts:Ad,LinkOrNotLink:yt,ObserverWrapper:so,SnackBarComponent:vo}};exports.cms=ad;exports.contexts=tu;exports.data=oo;exports.layout=em;
40
+ */const c=a(357),u=(x,P,$)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(P===void 0||x===P)return String(x);if(c(P)===!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 O=String(E.relaxZeros),M=String(E.shorthand),B=String(E.capture),R=String(E.wrap),q=x+":"+P+"="+O+M+B+R;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let F=Math.min(x,P),U=Math.max(x,P);if(Math.abs(F-U)===1){let w=x+"|"+P;return E.capture?`(${w})`:E.wrap===!1?w:`(?:${w})`}let K=C(x)||C(P),W={min:x,max:P,a:F,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),W,E),F=W.a=0}return U>=0&&(z=d(F,U,W,E)),W.negatives=ne,W.positives=z,W.result=l(ne,z),E.capture===!0?W.result=`(${W.result})`:E.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),u.cache[q]=W,W.result};function l(x,P,$){let E=m(x,P,"-",!1)||[],O=m(P,x,"",!1)||[],M=m(x,P,"-?",!0)||[];return E.concat(M).concat(O).join("|")}function p(x,P){let $=1,E=1,O=v(x,$),M=new Set([P]);for(;x<=O&&O<=P;)M.add(O),$+=1,O=v(x,$);for(O=A(P+1,E)-1;x<O&&O<=P;)M.add(O),E+=1,O=A(P+1,E)-1;return M=[...M],M.sort(y),M}function f(x,P,$){if(x===P)return{pattern:x,count:[],digits:0};let E=h(x,P),O=E.length,M="",B=0;for(let R=0;R<O;R++){let[q,F]=E[R];q===F?M+=q:q!=="0"||F!=="9"?M+=S(q,F):B++}return B&&(M+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:M,count:[B],digits:O}}function d(x,P,$,E){let O=p(x,P),M=[],B=x,R;for(let q=0;q<O.length;q++){let F=O[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),M.push(U),B=F+1,R=U}return M}function m(x,P,$,E,O){let M=[];for(let B of x){let{string:R}=B;!E&&!g(P,"string",R)&&M.push($+R),E&&g(P,"string",R)&&M.push($+R)}return M}function h(x,P){let $=[];for(let E=0;E<x.length;E++)$.push([x[E],P[E]]);return $}function y(x,P){return x>P?1:P>x?-1:0}function g(x,P,$){return x.some(E=>E[P]===$)}function v(x,P){return Number(String(x).slice(0,-P)+"9".repeat(P))}function A(x,P){return x-x%Math.pow(10,P)}function _(x){let[P=0,$=""]=x;return $||P>1?`{${P+($?","+$:"")}}`:""}function S(x,P,$){return`[${x}${P-x===1?"":"-"}${P}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,P,$){if(!P.isPadded)return x;let E=Math.abs(P.maxLen-String(x).length),O=$.relaxZeros!==!1;switch(E){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${E}}`:`0{${E}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=_f},837:o=>{o.exports=ep()}},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);Or.exports=n})()),Or.exports}var Ea;function rp(){return Ea||(Ea=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=tp();function n(i,a){if(i.protocol!==void 0){const u=a.protocol.slice(0,-1);if(i.protocol!==u)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(u=>c.hostname===u)||a.some(u=>n(u,c))}}(Ir)),Ir}var Ra;function Ec(){return Ra||(Ra=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 u=[];if(i||u.push("src"),a||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: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 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}=rp();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="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Pr)),Pr}(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=zt()._(I),i=r._(Na),a=r._(gf()),c=ho,u=Gt,l=yf(),p=ft,f=Ys(),d=r._(Ec()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,x,P){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 O=new Event("load");Object.defineProperty(O,"target",{writable:!1,value:_});let M=!1,B=!1;C.current({...O,nativeEvent:O,currentTarget:_,target:_,isDefaultPrevented:()=>M,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{M=!0,O.preventDefault()},stopPropagation:()=>{B=!0,O.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const O=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!P&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+O+'" 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 "'+O+'" 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 "'+O+'" 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 M=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(M&&!B||!M&&B)&&(0,p.warnOnce)('Image with src "'+O+`" 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:P,width:$,decoding:E,className:O,style:M,fetchPriority:B,placeholder:R,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:P,decoding:E,"data-nimg":U?"fill":"1",className:O,style:M,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,W,z,F))},[C,R,K,W,z,T,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,W,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(a.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),P=(0,o.useMemo)(()=>{const W=m||x||u.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,T)=>w-T),ne=W.deviceSizes.sort((w,T)=>w-T);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:$,onLoadingComplete:E}=_,O=(0,o.useRef)($);(0,o.useEffect)(()=>{O.current=$},[$]);const M=(0,o.useRef)(E);(0,o.useEffect)(()=>{M.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:P,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:O,onLoadingCompleteRef:M,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)})(Kn,Kn.exports);var np=Kn.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=ho,o=ft,i=np,a=r._(Ec()),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:a.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})(mc);var op=mc;const wa=Ht(op),ip=({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(je,{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(wa,{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(wa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]})},ap=({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(ip,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),sp=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:u})=>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:u})]})}),cp=({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})})})]}),Tn=e=>{const{isMobile:t}=Ne();return t?s.jsx(cp,{...e}):s.jsx(sp,{...e})},Mt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,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:_}=Te();switch(e){case"menu":v=s.jsx(je,{className:pe.footer__itemLink,href:u??"#",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:[l,s.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[p,s.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((S,C)=>s.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});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((S,C)=>s.jsx(je,{prefetch:!1,href:S.link??"#",target:"_blank",children:s.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=s.jsx("div",{className:r,...g,children:t})}return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:f,alignItems:f},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})})},up=({className:e,text:t,...r})=>s.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),Rc=()=>{const{nextimage:e}=Te();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})})};Rc.displayName="Footer.Stamps";const wc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Ne(),a=I.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((u,l)=>s.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(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})]})};wc.displayName="Footer.Wrapper";const jc=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(wc,{adornment:o,legalTextSlot:s.jsx(up,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>s.jsx(Tn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:a,children:u.items.map((p,f)=>s.jsx(Mt,{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&&s.jsx(Tn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(Mt,{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(Tn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(Mt,{children:r==null?void 0:r.subTitle}):null,s.jsx(Mt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(Rc,{})]})]})};jc.displayName="Footer";const lp=Object.freeze(Object.defineProperty({__proto__:null,Footer:jc,FooterSupport:ap},Symbol.toStringTag,{value:"Module"})),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}}=We(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),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 gt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(je,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Pc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Be(),o=i=>{i?n(i):r()};return s.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(gt,{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}`))})};Pc.displayName="Header.Categories";function dp({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=io();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 fp={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Co=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:fp["menu-subcategories-container"],children:e.map((a,c)=>{const u=r?a.srcMobile:a.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:u,promotion_name:a.promotion_name};return s.jsx(fo,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:s.jsxs(je,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[s.jsx(ke.Image,{src:u,alt:a.label??u,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 Xn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Ic=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=Te(),{reset:i}=Be(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=xe();return s.jsxs("div",{...n,className:Xn["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:s.jsx(b.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(b.ComponentList.Structure,{children:[s.jsx(gt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),a({content:`menu:${l.label??""}:${r.label??""}`}))},children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{children:l.label})})})}),s.jsx(b.ComponentList.List,{columns:1,...f,className:Xn["submenu-categories"],children:l.items.map((g,v)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:s.jsx(et,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({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)&&s.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),a({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&&s.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};Ic.displayName="Menu.Categories";const Oc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return s.jsxs(s.Fragment,{children:[s.jsx("div",{...r,className:Xn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&s.jsx(b.Utils.Divider,{size:"small"})]})};Oc.displayName="Menu.MenuRoot";const pp=mo(()=>Promise.resolve(Oc),{ssr:!1}),kn={Root:pp,Categories:Ic,Thumbnail:Co},Nc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Bt(),{reset:n}=Be();return s.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:c,id:u}=o,l=u===r,p=a==null?void 0:a.some(f=>!!f.srcDesk);return s.jsxs(kn.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[s.jsx(kn.Categories,{dividerOnRight:!!p,subMenu:o}),Array.isArray(a)&&s.jsx(kn.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${u}-${i}`)})})};Nc.displayName="Header.SubMenu";const Tc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return s.jsx(je,{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"})})})};Tc.displayName="Header.WishList";const kc=({UserMenu:e,SearchModal:t})=>{const r=I.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=Be(),{setValue:a}=qt();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[s.jsx(b.Header.Logo,{style:{width:"100%"},children:s.jsx(je,{href:"/",onMouseEnter:i,children:s.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),s.jsx(Pc,{}),s.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[s.jsx(dp,{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(Tc,{}),s.jsx(xo,{id:"cart-button"})]})]}),s.jsx(Nc,{})]})};kc.displayName="Header.HeaderDesktopWrapper";const mp="_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:mp,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Mc=({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(ke.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})});Mc.displayName="Menu.MenuCategories";const Lc=({children:e,link:t})=>{const{reset:r}=Ue();return t?s.jsx(je,{href:t??"#",onClick:r,children:e}):e};Lc.displayName="Menu.MenuCategoriesWrapper";const Dc=({subcategory:e,submenuLabel:t})=>{var u,l,p;const{router:r}=Te(),{reset:n}=Ue(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),a=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: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(gt,{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((f,d)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:s.jsx(et,{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)&&s.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})]})};Dc.displayName="Menu.SubMenuSubCategory";const $c=({submenu:e})=>{var i;const t=Bt(),{handleCloseSubMenu:r}=dt(),{reset:n}=Be(),{CONSTANTS:o}=xe();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(Dc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};$c.displayName="Menu.SubMenuItem";const Bc=()=>{const{headerData:e}=xe(),t=Bt(),{reset:r}=Be(),{bodyRef:n}=dt();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($c,{submenu:o},`submenu-${o.id}-${i}`))})})};Bc.displayName="Menu.SubMenu";const qc=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=Be(),{bodyRef:o}=dt(),{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 u=a.submenuId?{}:{"data-close":!0};return s.jsx(Lc,{link:a.submenuId?null:a.link,children:s.jsx(Mc,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...u,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),s.jsx(Bc,{})]})};qc.displayName="Menu.MenuBody";const Hc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();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})]})};Hc.displayName="Menu.MenuHeaderWrapper";const zc=({navigationLinks:e})=>{const{reset:t}=Ue(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(et,{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};zc.displayName="Menu.MenuHeaderNavLinks";const Fc=()=>{const{headerData:e}=xe();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Hc,{title:e.title,subtitle:e.subtitle}),s.jsx(zc,{navigationLinks:e.navigationLinks})]})};Fc.displayName="Menu.MenuHeaderContainer";const Uc=({children:e})=>{const{documentBodyRef:t}=dt(),{CONSTANTS:r}=xe(),n=oo(),{setValue:o}=Ue();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})})};Uc.displayName="Menu.MenuRoot";const hp=mo(()=>Promise.resolve(Uc),{ssr:!1}),Dt=({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})]});Dt.displayName="Menu.NavigationBarItem";const Gc=()=>{const{setIsOpen:e}=We(),{reset:t}=Ue(),{setValue:r}=qt(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Te();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(Dt,{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(Dt,{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(Dt,{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})]})};Gc.displayName="Menu.NavigationBar";const Lt={Root:hp,NavigationBar:Gc,Header:Fc,Body:qc},Wc=({UserMenu:e,SearchModal:t})=>{const r=I.useRef(null),n=I.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:a,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:u}=ge(),{setValue:l}=io(),{setValue:p}=Ue(),{setValue:f}=qt();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[c==="left"&&s.jsx(b.Header.SupportItem,{onClick:()=>p(!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(je,{href:"/",children:s.jsx(b.Icon,{name:a.logo,size:"x-large",onClick:()=>{u({content:"header:logo"})}})})}),s.jsxs(b.Header.Support,{children:[s.jsx(b.Header.SupportItem,{onClick:()=>{l(!0),u({content:"header:search"})},children:s.jsx(b.Icon,{name:a.search,size:"medium"})}),s.jsx(b.Header.SupportItem,{onClick:()=>{f(!0),u({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:()=>p(!0),innerRef:r,children:s.jsx(b.Icon,{name:a.menu,size:"medium"})})]})]}),s.jsx(t,{recommendations:!1,trends:!0}),s.jsx(Is,{children:s.jsx(e,{target:n==null?void 0:n.current,children:s.jsxs(Lt.Root,{children:[s.jsx(Lt.Header,{}),s.jsx(Lt.Body,{}),i?s.jsx(Lt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})})]})};Wc.displayName="Header.HeaderMobileWrapper";const Vc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=xe(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:u}}=a;return s.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:u.header},className:bo["header-animation"],children:s.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:u.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[s.jsx("div",{className:Ze["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:u.header_mobile},children:s.jsx(Wc,{UserMenu:r,SearchModal:n})}),s.jsx("div",{className:Ze["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:u.header_desktop},children:s.jsx(kc,{UserMenu:r,SearchModal:n})}),t,s.jsx(po,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Vc.displayName="Header";const gp="_shippingFreight_6z8rf_6",yp="_shippingFreight__postalCodeGrid_6z8rf_10",_p="_shippingFreight__grid_6z8rf_14",vp="_shippingFreight__grid__title_6z8rf_18",bp="_shippingFreight__grid__remember_6z8rf_29",xp="_postalCodeContainer_6z8rf_44",Cp="_deliveryStatusBar__tag_6z8rf_49",Sp="_deliveryStatusBarError__tag_6z8rf_66",Ap="_deliveryInfo_6z8rf_74",Ep="_deliveryInfo__content_6z8rf_78",Rp="_deliveryInfo__text_6z8rf_84",wp="_deliveryInfo__title_6z8rf_89",jp="_deliveryInfo__subtitle_6z8rf_99",Pp="_deliveryInfo__tooltipIcon_6z8rf_109",Ip="_deliveryInfo__tooltip_6z8rf_109",Op="_freightGrid_6z8rf_148",Np="_freightContainer_6z8rf_155",Tp="_freightOption__content_6z8rf_160",kp="_freightOption__value_6z8rf_166",Mp="_freightOption__title_6z8rf_177",Lp="_freightOption__title_item_6z8rf_181",Dp="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:gp,shippingFreight__postalCodeGrid:yp,shippingFreight__grid:_p,shippingFreight__grid__title:vp,shippingFreight__grid__remember:bp,postalCodeContainer:xp,deliveryStatusBar__tag:Cp,deliveryStatusBarError__tag:Sp,deliveryInfo:Ap,deliveryInfo__content:Ep,deliveryInfo__text:Rp,deliveryInfo__title:wp,deliveryInfo__subtitle:jp,deliveryInfo__tooltipIcon:Pp,deliveryInfo__tooltip:Ip,freightGrid:Op,freightContainer:Np,freightOption__content:Tp,freightOption__value:kp,freightOption__title:Mp,freightOption__title_item:Lp,freightOption__paragraph:Dp,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},$p=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[u,l]=I.useState(!1),p=I.useRef(null),f=()=>l(d=>!d);return s.jsxs("div",{className:fe.deliveryInfo,ref:p,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:p.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:f,onMouseLeave:f,"aria-label":"Mostrar descrição",children:[s.jsx("span",{children:s.jsx(b.Icon,{name:a.icons.feedback_help,size:"small"})}),u&&s.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},Bp=({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})]})})})]})}),qp=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),Hp=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),zp=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),ja=({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]})}),Fp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Up=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},Gp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...u})=>{const{isMobile:l}=Ne();return s.jsx(s.Fragment,{children:l?s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...u,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",{...u,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})})},Wp=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:u,toolTipZIndex:l})=>{var O,M,B,R;const p=Qe(),f=Qe(q=>q.shipping),[d,m]=I.useState(),[h,y]=I.useState(!1),[g,v]=I.useState(!1),[A,_]=I.useState(!1),S=(M=(O=p.shippingData)==null?void 0:O.address)==null?void 0:M.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=I.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)},P=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await Eo.get(`https://viacep.com.br/ws/${F}/json/`)).data.erro){i&&i(u.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 Eo.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(Up(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 P({target:{value:C}}),h||($(),a(!0))};return s.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?s.jsx(Gp,{component:c,isOpen:A,parent:j.current,toolTipZIndex:l,freightConfig:u}):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:(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:s.jsx(b.Button,{onClick:E,size:r,title:"button",children:h?s.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},Vp=({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(et,{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})]}),Kp=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),Xp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:u}=ge(),[l,p]=I.useState(""),[f,d]=I.useState([]),[m,h]=I.useState(""),[y,g]=I.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 s.jsxs(Kp,{className:e,children:[s.jsxs(Vp,{freightConfig:c.freightConfig,children:[s.jsx(zp,{children:s.jsx(Wp,{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(ja,{size:o,message:m,setError:h}):f.length>0&&s.jsx(ja,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?f.length>0&&s.jsxs(qp,{children:[s.jsx(Hp,{children:f.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(Bp,{id:_.id,value:Jn({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${Fp(_.shippingEstimate)}`,radioValue:l,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx($p,{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]})},Kc=I.createContext({}),Qp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=I.useState(null),c=I.useRef(null),u=I.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 s.jsx(Kc.Provider,{value:I.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Oe=()=>{const e=I.useContext(Kc);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"},Xc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Oe();return a?s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(we.Wrapper,{type:"actions--group",children:[s.jsx(we.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&s.jsx(we.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Xc.displayName="ProductCard.Actions";const Qc=({className:e,isKit:t,...r})=>{const{addToCart:n}=We(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:u,CONSTANTS:l}=Oe(),p=()=>{var m;if(!i)return;const d=to(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 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:p,children:a?"Avise-me quando chegar":f})};Qc.displayName="ProductCard.Actions.BuyButton";const Yc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Oe();return s.jsxs(we.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"})]})};Yc.displayName="ProductCard.Actions.Header";const Zc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:c,slug:u,video:l},sendSelectItemEvent:p,order:f,CONSTANTS:d}=Oe(),m=Ha({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(je,{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:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>I.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&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&s.jsx(we.Video,{url:l,poster:m[0].url}),t]})};Zc.displayName="ProductCard.Media.Media";const Jc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Oe(),{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})]})};Jc.displayName="ProductCard.OutStock";const eu=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:u,CONSTANTS:l,WishListToggle:p,...f})=>s.jsx(Qp,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:p,children:s.jsx("div",{...f,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});eu.displayName="ProductCard.Root";const tu=({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})]});tu.displayName="ProductCard.SizeSelector.Item";const ru=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:u}=Oe();n.productId=i.id;const l=Da(n),p=Ma(n,"tamanho");!l&&!u.current.availableSkus.includes(p)&&u.current.availableSkus.push(p);const f=I.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=I.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}f(n)},[n,o,f,l,i]);return s.jsx(tu,{active:e,disabled:l,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};ru.displayName="ProductCard.SizeSelector.SkuItem";const nu=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Oe();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((u,l)=>s.jsx(ru,{active:c===u,callback:e,item:u,selectedSku:c,setNotify:n},`size--${l}--${u.sku}`))}),s.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};nu.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(ke.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]})})]})]}),Yp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Oe(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>s.jsx(Qn,{callback:p=>{c.current.trigger=!0,c.current.index=a,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&&s.jsx(Qn,{size:o,total:r.length-n,more:!0})]})},ou=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Oe(),c=o||a.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>c.includes(l.alternateName));return s.jsx(Yp,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&s.jsx(Qn,{active:!0,size:"x-small",src:u.url})})};ou.displayName="ProductCard.StyleSelector";const iu=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,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 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:p!==l?s.jsxs(s.Fragment,{children:[s.jsx(b.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),s.jsx(b.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):s.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&c?s.jsx(b.ProductInfo.Price,{label:"installment",value:`${a}x ${f}`,size:"small"}):null]})})})};iu.displayName="ProductCard.Price";const au=({tag:e,className:t})=>{const{item:{name:r}}=Oe();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})})})})]})};au.displayName="ProductCard.Title";const su=({className:e,url:t,poster:r,...n})=>{const{element:o}=Oe();return I.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(p=>{p.forEach(f=>{za(f.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{a.setAttribute("data-loaded","true")},l=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{c.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),s.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&s.jsx(ke.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};su.displayName="ProductCard.Media.Video";const cu=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});cu.displayName="ProductCard.Wrapper";const we={Actions:Xc,BuyButton:Qc,Header:Yc,Media:Zc,Root:eu,OutStock:Jc,Price:iu,SizeSelector:nu,StyleSelector:ou,Title:au,Video:su,Wrapper:cu},Pa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Ba(e.imageUrl,n.pdp),{nextimage:i}=Te();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Zp=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=I.useRef(!1);return s.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})},Jp={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},uu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,p;const{initialize:i,pagination:a,controller:c,itemsStyles:u}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return s.jsxs(b.Carousel.Root,{innerRef:f=>{i(f)},className:Jp["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:f=>c==null?void 0:c.navigateTo(f)})}),s.jsxs(b.Carousel.Body,{children:[s.jsx(b.Carousel.Item,{style:u,children:s.jsx(Pa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&s.jsx(b.Carousel.Item,{style:u,children:s.jsx(Zp,{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:s.jsx(b.Carousel.Item,{style:u,children:s.jsx(Pa,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};uu.displayName="PDP.Carousel";const em=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=ro(),[o,i]=I.useState({show:!1,initialIndex:0});I.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(uu,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},lu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=ro(),n=I.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(em,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};lu.displayName="PDP.Gallery";const tm=Object.freeze(Object.defineProperty({__proto__:null,Gallery:lu},Symbol.toStringTag,{value:"Module"})),rm={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},So=({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(rm["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})]});So.displayName="SnackBar";const du=I.createContext({}),nm=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,P,$,E;const[n,o]=I.useState(!0),{initialize:i,controller:a,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:(($=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:$.items)??[]},l=(E=u.content)==null?void 0:E.filter(O=>!O.countDownEndDate||new Date(O.countDownEndDate)>new Date),p=l.length>1,f={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},m=b.helpers.ValidateProp({fieldTypes:at.Mode,property:u.textColorVariant,fallback:"default"});return s.jsx(du.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:a,itemsStyles:c},...r},children:t})},qe=()=>I.useContext(du),om=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return s.jsx(Gn,{dateEnd:new Date(e),TIME_ZONE:r,...t})},im="_tipbar_bt3p0_1",am="_tipbar__carousel_bt3p0_15",yt={tipbar:im,tipbar__carousel:am,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},sm=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=qe(),[i,a]=I.useState({status:!1,showSnackBar:!1}),c=()=>{a({status:!0,showSnackBar:!0})};return I.useEffect(()=>{i.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},o.TIPBAR_CONFIGS.snackbar_timeout)},[i]),s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...n,onClick:c,disabled:i.status,className:yt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&s.jsx(So,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},cm=({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})]})}),um=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=qe();if(o==="countdown")return s.jsx(om,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:at.Mode,property:r.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:at.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?s.jsx(sm,{coupon:r.coupon,mode:a,variant:c,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return s.jsx(cm,{title:n,description:t,mode:i,className:e})},lm=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=qe(),a=I.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(),a.current&&(clearInterval(a.current),u())},u=I.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var p;(p=o.controller)==null||p.nextPage()},n);a.current=l}},[n,o]);return I.useEffect(()=>(u(),()=>{a.current&&clearInterval(a.current)}),[n,u]),s.jsxs(b.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:yt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&s.jsx(b.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"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:l=>c(l,"next"),adornment:{start:s.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},Ia=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return s.jsx(b.Button,{title:"fechar tipbar",className:yt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(b.Icon,{name:r.ICONS.close})}})},dm=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:o,showCarouselArrows:i,slideTranstionTimer:a,handleCloseTipbar:c}=qe(),u=t&&i;return s.jsx("div",{style:o,"data-hasclosebtn":n,className:yt.tipbar,children:t?s.jsxs(s.Fragment,{children:[s.jsx(lm,{mode:r,showCarouselArrows:u,slideTranstionTimer:a,children:e}),n&&s.jsx(Ia,{handleCloseTipbar:c,showCarouselArrows:u,mode:r})]}):s.jsxs(s.Fragment,{children:[e,n&&s.jsx(Ia,{handleCloseTipbar:c,mode:r})]})})},fm=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=qe(),i=s.jsx("div",{...r,className:yt["tipbar-item"],children:e});return n?s.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},fu=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?s.jsx(dm,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(gt,{href:n.link,children:s.jsx(fm,{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(um,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};fu.displayName="TipBar.Root";const pu=({className:e,...t})=>s.jsx(nm,{...t,children:s.jsx(fu,{className:e})});pu.displayName="TipBar";const pm="_container_1sy8s_16",$e={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:pm,"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"},mm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:$e["add-itens-to-cart-container"],children:[s.jsxs("div",{className:$e["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:$e["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:$e["add-itens-to-cart-total"],children:s.jsx("span",{children:Jn({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(b.Button,{onClick:t,className:$e["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},hm=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},[]),gm=({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 a=to(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,u=a.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(a){return console.error("Error handling SKU selection:",a),r}},ym="_carousel_245ib_1",_m="_shelf__container_245ib_14",vm="_shelf_without_carousel_245ib_34",it={carousel:ym,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:_m,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:vm},Oa=({title:e})=>s.jsx("div",{className:it.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",Ze["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Ze["responsive-desktop-flex"]),children:e})]})})}),bm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Ne(),i=r[o?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:u,pagination:l}=b.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=I.Children.toArray(e).length;return o||p>=4?s.jsxs(b.Carousel.Root,{innerRef:d=>{a(d)},className:it.carousel,children:[s.jsxs("div",{className:it["custom-controllers"],children:[n&&s.jsx(Oa,{title:n}),i<p&&s.jsxs(b.Carousel.Controller,{className:it["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:l.currentPage,total:l.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),s.jsx(b.Carousel.Body,{children:I.Children.map(e,(d,m)=>s.jsx(b.Carousel.Item,{style:{...u,overflow:"hidden"},children:d},`${n}_${m}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(Oa,{title:n}),s.jsx("div",{className:it.shelf_without_carousel,children:e})]})},xm={Shelf:bm},Cm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=I.useMemo(()=>hm(r),[r]),{isMobile:a}=Ne(),{addItemsToCart:c}=We(),{sendDataLayerEvent:u}=ge(),{getAvailableProductTag:l}=Zn(),[p,f]=I.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=gm({selectedProduct:h,productId:y,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});f(g)};return I.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]),s.jsxs("div",{className:$e.container,ref:n,children:[s.jsx("div",{className:$e["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(xm.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?s.jsxs(we.Root,{item:{...h,image:co.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(we.Header,{product:h,tag:g.commercial}),s.jsx(we.Media,{}),s.jsxs(we.Wrapper,{type:"body",children:[s.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}}),s.jsx(we.Actions,{children:s.jsx(we.SizeSelector,{callback:C=>m({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:$e["add-cart-container"],children:s.jsx(mm,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Sm={teamComponents:{AddToCart:po,BackToTop:Md,BuyPackage:Cm,...lp,FreightCalculation:Xp,Header:Vc,Link:et,Media:ke,ProductCard:we,TipBar:pu},template:{pdp:tm},utils:{EventCollector:Ld,ExternalScripts:Vd,LinkOrNotLink:gt,ObserverWrapper:fo,SnackBarComponent:So}};exports.cms=Pd;exports.contexts=El;exports.data=co;exports.layout=Sm;