@soma-vertical-web/multi-lib 0.0.41 → 0.0.43

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.
@@ -0,0 +1,41 @@
1
+ "use strict";var ua=Object.defineProperty;var ca=(e,t,r)=>t in e?ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var nt=(e,t,r)=>ca(e,typeof t!="symbol"?t+"":t,r);const V=require("react/jsx-runtime"),se=require("react"),la=require("react-dom"),he=require("@soma-vertical-web/core-components"),Se=require("idb-keyval"),Jo=require("zustand"),en=require("js-cookie"),ei=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Fr=(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()}},fa=(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},pa=(e,t)=>e.replace(t,"").trim(),da=e=>e.replace(/\//g,""),Ee=({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})},ge={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:a,promotionInfo:o,itemList:i,outsideEcommerceData:s}=e,{availableSizes:u,sizes:h,price:m}=n,g={...r==="view_item"?{currency:ge.configs.currency,value:m,grade_disponivel:u??(h?ti(h):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:m,currency:ge.configs.currency}:{}},d=Le({data:n,customData:{...a,...i,...o},configs:ge.configs});Ee({event:r,data:{...s,ecommerce:{...i,...g,items:[d]}}}),typeof t=="function"&&t(d,g)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:a,customData:o}=e;if(t.length===0)return;const i=t.map(({node:s},u)=>Le({data:{...s},customData:{...r,index:u,...o!=null&&o.item_list_name?{item_list_name:o==null?void 0:o.item_list_name}:n},configs:ge.configs}));Ee({event:"view_item_list",data:{...a,ecommerce:{...o!=null&&o.item_list_name?{item_list_name:o==null?void 0:o.item_list_name}:n,items:i}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:a,price:o},promotionInfo:i,itemList:s,outsideEcommerceData:u}=e;let h=0;const m=r.map(g=>{var y,p,_,E,l,b,w,T,v;const d=a==null?void 0:a.find(S=>(g.productId??g.id)===S.productId);let c={...i,...s};if(d){const S=ni(),M=oi(S,d);M&&(c={...c,...M}),t==="add_to_cart"&&(i||s)&&$r({persistedData:S,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:i,itemList:s}}),t==="remove_from_cart"&&$r({persistedData:S,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}h+=g.price??((_=(p=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:p[0])==null?void 0:_.price)??0;const f=(d==null?void 0:d.size)??Fr((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((E=g.itemOffered)==null?void 0:E.skuName),ge.configs.NAME_SPLIT_SYMBOL).size;return Le({data:g,customData:{...n,...c??{...i,...s},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((l=g.itemOffered)==null?void 0:l.sku),quantity:(n==null?void 0:n.quantity)??g.quantity??1,item_variant2:f,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((v=(T=(w=(b=d==null?void 0:d.offers)==null?void 0:b.offers)==null?void 0:w[0])==null?void 0:T.seller)==null?void 0:v.identifier)??g.seller},configs:ge.configs})});Ee({event:t,data:{...u,ecommerce:{value:o??h,currency:ge.configs.currency,items:m}}})},filterEvent:e=>{var i;const{commonData:t,customData:r,outsideEcommerceData:n}=e,a={},o={};Array.isArray(t==null?void 0:t.selectedFacets)&&((i=t==null?void 0:t.selectedFacets)!=null&&i.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:s,value:u})=>{var g;const h=((g=ge.configs.PLP_FILTERS.find(d=>d.key===s))==null?void 0:g.eventLabel)??s,m=(a==null?void 0:a[h])||[];h==="price_range"&&u.replace(":","-"),a[h]=[...m,u]}),Object.keys(a).forEach(s=>o[s]=a[s].join(", "))),Ee({event:"filter",data:{...n,...o,...r}})},viewCartEvent:e=>{var m,g,d,c,f,y,p,_,E,l;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const a=window.localStorage.getItem("persistedCartEventsData"),o=a?JSON.parse(a):{},i=n.items.map(b=>{const{promotionInfo:w,itemList:T}=o[b.id]??{};return Le({data:{...b,price:b.price/100,listPrice:b.listPrice/100},customData:{...w,...T,item_sku:b.id??b.itemOffered.sku,quantity:b.quantity??1},configs:ge.configs})}),s=(((m=n.totalizers.find(b=>b.name==="Total dos Itens"))==null?void 0:m.value)??0)/100,u=(((g=n.totalizers.find(b=>b.name==="Total dos Descontos"))==null?void 0:g.value)??0)/100,h=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(c=n.marketingData)==null?void 0:c.utmCampaign:(y=String((f=n.openTextField)==null?void 0:f.value))==null?void 0:y.split(" - ")[0];Ee({event:"view_cart",data:{...r,ecommerce:{currency:ge.configs.currency,value:s+u,total_discount:Math.abs(u),cep_preenchido:!!((_=(p=n.shippingData)==null?void 0:p.address)!=null&&_.postalCode),...h?{seller_coupon_name:h}:{},...((E=n.marketingData)==null?void 0:E.coupon)&&{sale_coupon_name:(l=n.marketingData)==null?void 0:l.coupon},subtotal:s,items:i}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ee({event:t,data:{...r}})}},ti=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),ha=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ge.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Le=({data:e,customData:t,configs:r})=>({...ya(e,r==null?void 0:r.MAIN_IMAGE),...ga(e),...ma(e),..._a(e),...t}),ri=()=>{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("_"))??[]:[]},ni=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},oi=(e,t)=>e==null?void 0:e[t],$r=({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)))},ya=(e,t="1")=>{var o,i,s,u,h,m,g,d,c,f,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((i=(o=e.items)==null?void 0:o[0])==null?void 0:i.images)??((s=e.itemOffered)==null?void 0:s.image),a=n==null?void 0:n.find(p=>p.alternateName===t||p.imageLabel===t||p.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((h=e.isVariationOf)==null?void 0:h.productGroupID)??((g=(m=e.itemOffered)==null?void 0:m.isVariationOf)==null?void 0:g.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??ei((d=e.itemOffered)==null?void 0:d.name,ge.configs.NAME_SPLIT_SYMBOL).name,item_brand:((c=e.brand)==null?void 0:c.brandName)??((f=e.brand)==null?void 0:f.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ge.configs.storeUrl}${e.linkText}/p`,item_image:(a==null?void 0:a.url)??(a==null?void 0:a.imageUrl)}},tn=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,ga=e=>{var h,m;const{categories:t,categoriesIds:r}=e,n=t??((h=e.itemOffered)==null?void 0:h.categories),a=r??((m=e.itemOffered)==null?void 0:m.categoriesIds),o=tn(n),i=tn(a),s=o.slice(1,-1).split("/"),u=i.slice(1,-1).split("/");return{item_category:s[0].toLowerCase().includes(ge.configs.categoryOff)?"Bazar":"Coleção",...s[1]&&{item_category2:s[1]},...s.length>2&&{item_category3:s[s.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},ma=e=>{var a,o,i,s,u,h;const t=((a=e.itemOffered)==null?void 0:a.skuName)??((s=(i=(o=e.isVariantOf)==null?void 0:o.hasVariant)==null?void 0:i[0])==null?void 0:s.name)??((h=(u=e.items)==null?void 0:u[0])==null?void 0:h.name),{color:r,size:n}=Fr(t,ge.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},_a=e=>{var u,h;const{price:t,listPrice:r,installments:n}=e,a=t??((u=e.offers)==null?void 0:u.lowPrice)??0,o=r??((h=e.offers)==null?void 0:h.highPrice)??0,i=o?o-a:0,s=i%1===0?i:Number(i.toFixed(2));return{...t&&{price:a??o},...o&&{list_price:o,discount:s},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ge.configs.currency}},ii=()=>{const[e,t]=ri(),[r,n]=e.split("-"),a=r.includes("shop")||r.includes("sale")?r:"";return{page_category:a&&n?n:"",page_departament:a,id:t,name:e}},va=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ge,findDataInPersistedData:oi,getAvailablesSizes:ti,getCategories:ha,getPageCategoryAndDepartmentFromSlug:ii,getPersistedData:ni,getProductListInfoFromHead:ri,pushDatalayer:Ee,updatePersistedData:$r},Symbol.toStringTag,{value:"Module"})),ai=se.createContext({}),ba=({children:e,evtFunctionsConfigs:t})=>{const r=se.useRef({}),n=se.useRef(null),a=se.useRef(null),o=se.useRef({}),i=se.useRef({trigger:!1,index:0}),s=({functionKey:m,data:g,callBack:d,timeout:c=100})=>{window.dataLayer||(window.dataLayer=[]),ge.configs=t;try{typeof ge[m]=="function"&&setTimeout(()=>{var f;g.promotionInfo=r.current,(f=a.current)!=null&&f.item_list_name&&(g.itemList=a.current),ge[m](g,d)},c)}catch(f){Ee({event:"error_event",data:{error_message:(f==null?void 0:f.message)??f}})}},u=({content:m})=>{s({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:m.replace("::",":")}}})},h=({updatePromotionRef:m,promotion:g,index:d})=>{m&&(r.current={...g}),s({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...g,...d!==void 0&&{index:d}}}}})};return V.jsx(ai.Provider,{value:{sendDataLayerEvent:s,triggerSelectItemEventRef:i,promotionEventRef:r,currentLocalRef:n,itemListRef:a,cartProductsFullDataRef:o,handleSelectContent:u,handleSelectPromotionEvent:h},children:e})},si=()=>se.useContext(ai),Ra={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Re=Promise.resolve(!1),kr={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Re,addItem:()=>Re,addSellerCode:()=>Re,addMarketingData:()=>Re,emptyCart:()=>{},removeItem:()=>Re,setIsOpen:()=>{},shipping:()=>Re,shippingUpdate:()=>Re,toggleServiceToProduct:()=>Re,updateItemQuantity:()=>Re,insertProfileEmail:()=>Re,setRecentlyAddedProducts:()=>{}},zr=e=>e===0,ui=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],a=e.match(/\d+/g)??[];for(const o of a){const i=t[Number(o)];i&&(r+=(r?"/":"")+i,n.push(r))}return n},ci=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:a,id:o,uniqueId:i,detailUrl:s,ean:u,imageUrl:h,name:m,listPrice:g,quantity:d,price:c,priceDefinition:f,productCategories:y,productCategoryIds:p,productId:_,refId:E,seller:l,referenceId:b,offerings:w,productRefId:T,skuName:v,sellingPrice:S}=e;return{availability:r,bundleItems:a,referenceId:b,productRefId:T,id:o,ean:u,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:n},categories:ui(p,y),categoriesIds:p,gtin:E,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:h}],name:m,isVariationOf:{name:m,productGroupID:_},sku:o,slug:s,skuName:v},listPrice:g,quantity:d,offerings:w,price:c,priceDefinition:f,sellingPrice:S,seller:l}},li=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},fi=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((a,o)=>{var i,s;return{id:((i=a.itemOffered)==null?void 0:i.sku)??"",index:o,quantity:(r==null?void 0:r.id)===((s=a.itemOffered)==null?void 0:s.sku)?0:a.quantity,seller:a.seller??""}});return{updateItems:n,filterItems:n.filter(a=>a.id!==t)}}return{updateItems:[],filterItems:[]}},pi=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,a)=>{var o,i;return n.id===t?{id:n.id,index:a,quantity:r,seller:n.seller,sku:((o=n.itemOffered)==null?void 0:o.sku)??""}:{id:n.id,index:a,quantity:n.quantity,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}}),di=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Aa=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var a;return((a=n==null?void 0:n.id)==null?void 0:a.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Ea=e=>{const t=e.reduce((a,o)=>{const i=zr(o.price)?0:o.quantity;return a+i},0),r=e.reduce((a,o)=>a+o.price*o.quantity,0),n=e.reduce((a,o)=>a+o.listPrice*o.quantity,0);return{totalItems:t,total:r,subTotal:n}},wa=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(zr(r==null?void 0:r.price)?0:r.quantity),0):0,hi=(e,t)=>{const{items:r,itemMetadata:n,marketingData:a,messages:o,orderFormId:i,openTextField:s,paymentData:u,shippingData:h,totalizers:m}=e;return{id:i,itemMetadata:n,items:Array.isArray(r)?r.map(g=>ci(g,t)):[],marketingData:a,messages:o,openTextField:s,paymentData:u,shippingData:h,totalizers:m}},yi=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Sa=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(a=>a.sku===r);return n?n.name.split(t)[1]:"--"},gi=(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},Pa=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},mi=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),_i=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),vi=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},bi=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Ri=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ai=async(e,t)=>e.then(r=>[...r??[],...t??[]]),be=async(e,t,r,n)=>{const{priority:a="auto",body:o}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:a,method:"POST",body:JSON.stringify(o)}).then(async i=>{const s=await i.json();return r?s:hi(s,n)})},Ei=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Oa=e=>[...Array.isArray(e)?e:[e],"faststore"],wi=e=>{const t=e.get("utm_source")||we("utm_source"),r=e.get("utm_campaign")||we("utm_campaign"),n=e.get("utm_medium")||we("utm_medium"),a=e.get("utmi_cp")||we("utmi_cp"),o=e.get("utmi_pc")||we("utmi_pc"),i=e.get("utmi_p")||we("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...a&&{utmiCampaign:a},...o&&{utmiPart:o},...i&&{utmipage:i}}},we=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},Ca=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Ra,addItemOrder:li,addNotification:Ei,createItemOrder:ci,fetchCartAPI:be,findItemIndex:di,findOptions:Ri,findTotalizerValue:Aa,getCategories:ui,getCode:gi,getQuantity:bi,getRemoveId:mi,getSize:Sa,getTotalItems:wa,getTotalizer:Ea,getUrlParameter:we,getValue:_i,initialState:kr,isGift:zr,marketingTagsBuilder:Oa,mergeOptionsPromise:Ai,mountMarketingData:wi,orderFormValues:hi,promiseDefault:Re,removeQuantity:fi,updateItemSellerExternal:yi,updateOrderFormPromise:vi,updateQuantity:pi,wishlistArray:Pa},Symbol.toStringTag,{value:"Module"})),Ia=()=>{const e=async(c,f)=>be("/api/checkout/order-form/coupon",{body:{orderFormId:c,coupon:f}}),t=async(c,f)=>{if(f){const y=f.includes(" - ")?f.split(" - ")[0]:f,p=await be("/api/checkout/order-form/seller-code",{body:{orderFormId:c,sellerCode:y}},!0);return be("/api/checkout/order-form/attachments",{body:{orderFormId:c,sellerCode:y,sellerName:p instanceof Object&&"name"in p?p==null?void 0:p.name:""}}).then(_=>({..._,openTextField:{...(_==null?void 0:_.openTextField)??{},statusOk:(p==null?void 0:p.ativo)??!1}}))}else return be("/api/checkout/order-form/attachments",{body:{orderFormId:c,sellerCode:"",sellerName:""}})},r=async(c,f)=>be("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:c,marketingData:f}}),n=async(c,f,y)=>be("/api/checkout/order-form/items",{body:{orderFormId:c,orderItems:li(f,y)}}),a=async(c,f,y,p)=>be("/api/checkout/order-form/offerings",{body:{id:f,itemIndex:y,orderFormId:c,remove:p}}),o=async c=>be("/api/checkout/order-form/items/remove-all",{body:{orderFormId:c}}),i=async(c,f="low")=>be("/api/checkout/order-form",{priority:f,body:{orderFormId:c??""}}),s=async(c,f)=>be("/api/checkout/order-form/profile",{body:{orderFormId:c,email:f}}),u=async(c,f,y)=>{const p=fi(f,y);return be("/api/checkout/order-form/items/update",{body:{orderItems:p.updateItems,orderFormId:c}})},h=async(c,f,y)=>be("/api/checkout/order-form/shipping",{body:{orderFormId:c,country:y,postalCode:f}}),m=async(c,f,y)=>be("/api/checkout/order-form/shipping/update",{body:{orderFormId:c,options:f,selectedAddresses:y}}),g=async(c,f,y,p)=>{const _=pi(f,y,p);return be("/api/checkout/order-form/items/update",{body:{orderFormId:c,orderItems:_}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:a,emptyCart:o,getOrderForm:i,insertProfileEmail:s,removeItem:u,shipping:h,shippingUpdate:m,updateItemQuantity:async(c,f,y,p,_)=>g(c,f,y,p).then(E=>E&&Array.isArray(E.items)?yi(E.items,y)?g(c,f,y,_):E:!1)}},Hr="soma::cart",Ce="soma::options",Xe=Jo.create((e,t)=>{const r=Ia(),n=async(a,o,i)=>{e({loading:!0});const s=await vi(a);if(typeof s!="boolean"){e({...s});const u=await Ai(Se.get(Ce),i);return Se.set(Ce,u),_i(s,o).finally(()=>e({loading:!1,options:u}))}return Re};if(typeof window<"u"){const a=async o=>{if(o){const i=await Se.get(Ce).then(h=>Ri(h,o.items));Se.set(Hr,o),Se.set(Ce,i),e({...o,options:i});const s=new URLSearchParams(window.location.search),u=s.get("utm_campaign")||s.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Se.get(Hr).then(o=>r.getOrderForm(o?o.id:"").then(a)),{...kr,addCoupon:async o=>n(()=>r.addCoupon(t().id,o),"marketingData"),addItem:(o,i)=>{n(()=>r.addItem(t().id,t().items,o),"items",i)},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 i=await n(()=>r.removeItem(t().id,t().items,o),"items");return mi(o,i)},shipping:async(o,i="BR")=>n(()=>r.shipping(t().id,o??"",i),"shippingData"),shippingUpdate:async o=>n(()=>{var i;return r.shippingUpdate(t().id,o,(i=t().shippingData)==null?void 0:i.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(o,i,s)=>n(()=>r.giftItem(t().id,o,i,s),"items"),updateItemQuantity:async(o,i,s)=>{const{id:u,items:h}=t();return n(()=>{var m;return r.updateItemQuantity(u,h,o,i,((m=h.find(g=>g.id===o))==null?void 0:m.quantity)??1)},"items",s?[s]:void 0)},insertProfileEmail:async o=>n(()=>r.insertProfileEmail(t().id,o),"clientProfileData"),setIsOpen:o=>e({isOpen:o})}}return kr}),xa=()=>Xe(e=>e),Si=Jo.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Ei(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Pi=()=>Si(e=>e.notifications),Oi=()=>Si(e=>e.actions),Ta=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:Ce,KEY_INDEXED_STORE:Hr,useCartStore:Xe,useGetCartStoreState:xa,useGetNotificationActions:Oi,useGetNotificationsStore:Pi},Symbol.toStringTag,{value:"Module"})),Na=6e3,Ci=se.createContext({}),Ii=({children:e,...t})=>{const{items:r}=Xe(),[n,a]=se.useState([]),o=se.useRef(null),i=se.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(s=>r.find(u=>u.id===s.id)).filter(s=>s!==void 0):[],[r,n]);return se.useEffect(()=>{n.length&&(clearTimeout(o.current??0),o.current=setTimeout(()=>{a([])},Na))},[n]),V.jsx(Ci.Provider,{value:se.useMemo(()=>({...t,setRecentlyAdded:a,recentlyAddedProducts:i}),[t,a,i]),children:e})},ja=()=>{const e=se.useContext(Ci);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class xi{constructor(){nt(this,"events",{});nt(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 Ti=se.createContext({}),La=({children:e,headerConfigs:t,pathname:r,...n})=>{const[a,o]=se.useState(!0),i=r==="/",s=se.useRef(new xi),u=g=>g?{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},h=u(i),m=se.useRef(h);return se.useEffect(()=>{var c;const g=((c=new URLSearchParams(window.location.search))==null?void 0:c.toString())??"";(g.includes("utm_")||g.includes("gclid"))&&(en.get("lastMedias")||en.set("lastMedias",`${g}`,{expires:1/24}));const d=()=>{const f=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(f),p=window.innerWidth<1024||!!f.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const _=document.querySelector('meta[name="viewport"]');_&&_.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}a!==p&&o(p)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[a]),se.useEffect(()=>{const g=u(i);s.current.publish("header:change_variant",g.headerVariant),s.current.publish("header:change_position",g.position),m.current=g},[i]),V.jsx(Ti.Provider,{value:{isMobile:a,mediatorRef:s,currentHeaderConfigsRef:m,...n},children:V.jsx(Ii,{children:e})})},Gr=()=>se.useContext(Ti),Ni=se.createContext({}),Ma=({children:e,...t})=>V.jsx(Ni.Provider,{value:{...t},children:e}),Wr=()=>se.useContext(Ni),rn="fuzzy",nn="operator",qa=e=>({isDepartment:e!=null&&e.length?e[0].key==="category-1":!1}),Da=(e,t)=>{const r=decodeURIComponent(t??"").slice(1).split("/");return e.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const a=n.values;return{...n,values:a.filter(o=>!r.find(i=>i.toLowerCase()===o.value||i.toLowerCase()===o.name.toLowerCase()))}}return n})},ji=(e,t)=>t?e==="category-1":!1,$a=e=>e.key==="operator"&&(e.value==="and"||e.value==="or"),ka=e=>e.type==="TEXT",Ha=e=>e.key==="fuzzy"&&(e.value==="0"||e.value==="1"||e.value==="auto"),Ba=e=>{const{key:t,name:r,values:n}=e;return{__typename:"FacetBoolean",key:t,label:r,values:n.slice().sort((a,o)=>a.name.localeCompare(o.name))}},Ua=({key:e,values:t})=>({__typename:"FacetRange",key:e,values:t}),Fa=(e,t,r)=>{if(!(e instanceof Object)||!("facets"in e))return[];const{facets:n=[]}=e,a=t!=null&&t.length?t[0].key==="category-1":!1;return n.filter(i=>!r||!ji(i.key,a)).map(i=>ka(i)?Ba(i):Ua(i))},za=(e,t)=>{const r=e.find(({key:a})=>a===rn)??null,n=e.find(({key:a})=>a===nn)??null;r&&Ha(r)&&t.append(rn,r.value),n&&$a(n)&&t.append(nn,n.value)},Ga=e=>e.map(t=>{const[r,n]=t.split("/");return{key:r,value:n}}),Wa=(e,t)=>{const r=decodeURIComponent(t??"").slice(1).split("/"),n=e.filter(({value:o})=>!r.includes(decodeURIComponent(o))).map(o=>({...o,value:decodeURIComponent(o.value)})),{isDepartment:a}=qa(n);return n==null?void 0:n.filter(o=>!ji(o.key,a))},Va=({pathname:e,searchParams:t},r)=>{const n=t.get("sort")??"",a=t.get("query")??null,o=parseInt(t.get("page")??"1",10);return{sort:n,facets:Ga(r),term:a,base:a?"":e,page:o}},Ka=e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([r,n])=>{Array.isArray(n)?n.forEach(a=>t.append(r,a)):n!==void 0&&t.append(r,n)}),t},Qa={"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"};var Li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xa(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 a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Br={exports:{}},Ae={};Ae._=Ae._interop_require_default=Ya;function Ya(e){return e&&e.__esModule?e:{default:e}}var Me={exports:{}},ot={},on;function Mi(){return on||(on=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var u in s)Object.defineProperty(i,u,{enumerable:!0,get:s[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return a},assign:function(){return o}});function r(i){const s={};return i.forEach((u,h)=>{typeof s[h]>"u"?s[h]=u:Array.isArray(s[h])?s[h].push(u):s[h]=[s[h],u]}),s}function n(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function a(i){const s=new URLSearchParams;return Object.entries(i).forEach(u=>{let[h,m]=u;Array.isArray(m)?m.forEach(g=>s.append(h,n(g))):s.set(h,n(m))}),s}function o(i){for(var s=arguments.length,u=new Array(s>1?s-1:0),h=1;h<s;h++)u[h-1]=arguments[h];return u.forEach(m=>{Array.from(m.keys()).forEach(g=>i.delete(g)),m.forEach((g,d)=>i.append(d,g))}),i}}(ot)),ot}var it={},Pe={};function qi(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(qi=function(n){return n?r:t})(e)}Pe._=Pe._interop_require_wildcard=Za;function Za(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=qi(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}var an;function Di(){return an||(an=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,h){for(var m in h)Object.defineProperty(u,m,{enumerable:!0,get:h[m]})}t(e,{formatUrl:function(){return o},urlObjectKeys:function(){return i},formatWithValidation:function(){return s}});const n=Pe._(Mi()),a=/https?|ftp|gopher|file/;function o(u){let{auth:h,hostname:m}=u,g=u.protocol||"",d=u.pathname||"",c=u.hash||"",f=u.query||"",y=!1;h=h?encodeURIComponent(h).replace(/%3A/i,":")+"@":"",u.host?y=h+u.host:m&&(y=h+(~m.indexOf(":")?"["+m+"]":m),u.port&&(y+=":"+u.port)),f&&typeof f=="object"&&(f=String(n.urlQueryToSearchParams(f)));let p=u.search||f&&"?"+f||"";return g&&!g.endsWith(":")&&(g+=":"),u.slashes||(!g||a.test(g))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),c&&c[0]!=="#"&&(c="#"+c),p&&p[0]!=="?"&&(p="?"+p),d=d.replace(/[?#]/g,encodeURIComponent),p=p.replace("#","%23"),""+g+y+d+p+c}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(h=>{i.includes(h)||console.warn("Unknown key passed via urlObject into url.format: "+h)}),o(u)}}(it)),it}var at={},sn;function Ja(){return sn||(sn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const a={};return Object.keys(r).forEach(o=>{n.includes(o)||(a[o]=r[o])}),a}}(at)),at}var st={},un;function Ye(){return un||(un=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,w){for(var T in w)Object.defineProperty(b,T,{enumerable:!0,get:w[T]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return i},getURL:function(){return s},getDisplayName:function(){return u},isResSent:function(){return h},normalizeRepeatedSlashes:function(){return m},loadGetInitialProps:function(){return g},SP:function(){return d},ST:function(){return c},DecodeError:function(){return f},NormalizeError:function(){return y},PageNotFoundError:function(){return p},MissingStaticPage:function(){return _},MiddlewareNotFoundError:function(){return E},stringifyError:function(){return l}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(b){let w=!1,T;return function(){for(var v=arguments.length,S=new Array(v),M=0;M<v;M++)S[M]=arguments[M];return w||(w=!0,T=b(...S)),T}}const a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=b=>a.test(b);function i(){const{protocol:b,hostname:w,port:T}=window.location;return b+"//"+w+(T?":"+T:"")}function s(){const{href:b}=window.location,w=i();return b.substring(w.length)}function u(b){return typeof b=="string"?b:b.displayName||b.name||"Unknown"}function h(b){return b.finished||b.headersSent}function m(b){const w=b.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function g(b,w){if(process.env.NODE_ENV!=="production"){var T;if((T=b.prototype)!=null&&T.getInitialProps){const M='"'+u(b)+'.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(M)}}const v=w.res||w.ctx&&w.ctx.res;if(!b.getInitialProps)return w.ctx&&w.Component?{pageProps:await g(w.Component,w.ctx)}:{};const S=await b.getInitialProps(w);if(v&&h(v))return S;if(!S){const M='"'+u(b)+'.getInitialProps()" should resolve to an object. But found "'+S+'" instead.';throw new Error(M)}return process.env.NODE_ENV!=="production"&&Object.keys(S).length===0&&!w.ctx&&console.warn(""+u(b)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),S}const d=typeof performance<"u",c=d&&["mark","measure","getEntriesByName"].every(b=>typeof performance[b]=="function");class f extends Error{}class y extends Error{}class p extends Error{constructor(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class _ extends Error{constructor(w,T){super(),this.message="Failed to load static file for page: "+w+" "+T}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function l(b){return JSON.stringify({message:b.message,stack:b.stack})}}(st)),st}var qe={exports:{}},ut={},cn;function $i(){return cn||(cn=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(/\/$/,"")||"/"}}(ut)),ut}var ct={},ln;function Kr(){return ln||(ln=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("#"),a=r.indexOf("?"),o=a>-1&&(n<0||a<n);return o||n>-1?{pathname:r.substring(0,o?a:n),query:o?r.substring(a,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(ct)),ct}var fn;function Ze(){return fn||(fn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=$i(),n=Kr(),a=o=>{if(!o.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:i,query:s,hash:u}=(0,n.parsePath)(o);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,r.removeTrailingSlash)(i)+s+u:i.endsWith("/")?""+i+s+u:i+"/"+s+u:""+(0,r.removeTrailingSlash)(i)+s+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)}(qe,qe.exports)),qe.exports}var lt={},De={exports:{}},ft={},pn;function ki(){return pn||(pn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Kr();function r(n,a){if(typeof n!="string")return!1;const{pathname:o}=(0,t.parsePath)(n);return o===a||o.startsWith(a+"/")}}(ft)),ft}var dn;function es(){return dn||(dn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=ki(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function a(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)}(De,De.exports)),De.exports}var hn;function Hi(){return hn||(hn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Ye(),r=es();function n(a){if(!(0,t.isAbsoluteUrl)(a))return!0;try{const o=(0,t.getLocationOrigin)(),i=new URL(a,o);return i.origin===o&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(lt)),lt}var pt={},dt={},yn;function ts(){return yn||(yn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a){a===void 0&&(a="/");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 i=o.map(s=>this.children.get(s)._smoosh(""+a+s+"/")).reduce((s,u)=>[...s,...u],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(a+"["+this.slugName+"]/")),!this.placeholder){const s=a==="/"?"/":a.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 ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');i.unshift(s)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(a+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(a+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(a,o,i){if(a.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let s=a[0];if(s.startsWith("[")&&s.endsWith("]")){let m=function(g,d){if(g!==null&&g!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+g+"' !== '"+d+"').");o.forEach(c=>{if(c===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(c.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+c+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),o.push(d)},u=s.slice(1,-1),h=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),h=!0),u.startsWith("...")&&(u=u.substring(3),i=!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(i)if(h){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 "'+a[0]+'" ).');m(this.optionalRestSlugName,u),this.optionalRestSlugName=u,s="[[...]]"}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 "'+a[0]+'").');m(this.restSlugName,u),this.restSlugName=u,s="[...]"}else{if(h)throw new Error('Optional route parameters are not yet supported ("'+a[0]+'").');m(this.slugName,u),this.slugName=u,s="[]"}}this.children.has(s)||this.children.set(s,new t),this.children.get(s)._insert(a.slice(1),o,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const a=new t;return n.forEach(o=>a.insert(o)),a.smoosh()}}(dt)),dt}var ht={},gn;function rs(){return gn||(gn=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)}}(ht)),ht}var mn;function ns(){return mn||(mn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,o){for(var i in o)Object.defineProperty(a,i,{enumerable:!0,get:o[i]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=ts(),n=rs()}(pt)),pt}var yt={},gt={},_n;function os(){return _n||(_n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Ye();function r(n){let{re:a,groups:o}=n;return i=>{const s=a.exec(i);if(!s)return!1;const u=m=>{try{return decodeURIComponent(m)}catch{throw new t.DecodeError("failed to decode param")}},h={};return Object.keys(o).forEach(m=>{const g=o[m],d=s[g.pos];d!==void 0&&(h[m]=~d.indexOf("/")?d.split("/").map(c=>u(c)):g.repeat?[u(d)]:u(d))}),h}}}(gt)),gt}var mt={},_t={},vt={},bt={},vn;function is(){return vn||(vn=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}}(bt)),bt}var Rt={},bn;function as(){return bn||(bn=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(")")}}(Rt)),Rt}var Rn;function ss(){return Rn||(Rn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var u in s)Object.defineProperty(i,u,{enumerable:!0,get:s[u]})}t(e,{normalizeAppPath:function(){return a},normalizeRscPath:function(){return o}});const r=is(),n=as();function a(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((s,u,h,m)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&h===m.length-1?s:s+"/"+u,""))}function o(i,s){return s?i.replace(/\.rsc($|\?)/,"$1"):i}}(vt)),vt}var An;function us(){return An||(An=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var u in s)Object.defineProperty(i,u,{enumerable:!0,get:s[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return a},extractInterceptionRouteInformation:function(){return o}});const r=ss(),n=["(..)(..)","(.)","(..)","(...)"];function a(i){return i.split("/").find(s=>n.find(u=>s.startsWith(u)))!==void 0}function o(i){let s,u,h;for(const m of i.split("/"))if(u=n.find(g=>m.startsWith(g)),u){[s,h]=i.split(u,2);break}if(!s||!u||!h)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,r.normalizeAppPath)(s),u){case"(.)":s==="/"?h=`/${h}`:h=s+"/"+h;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);h=s.split("/").slice(0,-1).concat(h).join("/");break;case"(...)":h="/"+h;break;case"(..)(..)":const m=s.split("/");if(m.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);h=m.slice(0,-2).concat(h).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:h}}}(_t)),_t}var At={},En;function cs(){return En||(En=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(a){return t.test(a)?a.replace(r,"\\$&"):a}}(At)),At}var wn;function ls(){return wn||(wn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var _ in p)Object.defineProperty(y,_,{enumerable:!0,get:p[_]})}t(e,{getRouteRegex:function(){return h},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return f}});const r=us(),n=cs(),a=$i(),o="nxtP",i="nxtI";function s(y){const p=y.startsWith("[")&&y.endsWith("]");p&&(y=y.slice(1,-1));const _=y.startsWith("...");return _&&(y=y.slice(3)),{key:y,repeat:_,optional:p}}function u(y){const p=(0,a.removeTrailingSlash)(y).slice(1).split("/"),_={};let E=1;return{parameterizedRoute:p.map(l=>{const b=r.INTERCEPTION_ROUTE_MARKERS.find(T=>l.startsWith(T)),w=l.match(/\[((?:\[.*\])|.+)\]/);if(b&&w){const{key:T,optional:v,repeat:S}=s(w[1]);return _[T]={pos:E++,repeat:S,optional:v},"/"+(0,n.escapeStringRegexp)(b)+"([^/]+?)"}else if(w){const{key:T,repeat:v,optional:S}=s(w[1]);return _[T]={pos:E++,repeat:v,optional:S},v?S?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(l)}).join(""),groups:_}}function h(y){const{parameterizedRoute:p,groups:_}=u(y);return{re:new RegExp("^"+p+"(?:/)?$"),groups:_}}function m(){let y=0;return()=>{let p="",_=++y;for(;_>0;)p+=String.fromCharCode(97+(_-1)%26),_=Math.floor((_-1)/26);return p}}function g(y){let{getSafeRouteKey:p,segment:_,routeKeys:E,keyPrefix:l}=y;const{key:b,optional:w,repeat:T}=s(_);let v=b.replace(/\W/g,"");l&&(v=""+l+v);let S=!1;return(v.length===0||v.length>30)&&(S=!0),isNaN(parseInt(v.slice(0,1)))||(S=!0),S&&(v=p()),l?E[v]=""+l+b:E[v]=""+b,T?w?"(?:/(?<"+v+">.+?))?":"/(?<"+v+">.+?)":"/(?<"+v+">[^/]+?)"}function d(y,p){const _=(0,a.removeTrailingSlash)(y).slice(1).split("/"),E=m(),l={};return{namedParameterizedRoute:_.map(b=>{const w=r.INTERCEPTION_ROUTE_MARKERS.some(v=>b.startsWith(v)),T=b.match(/\[((?:\[.*\])|.+)\]/);return w&&T?g({getSafeRouteKey:E,segment:T[1],routeKeys:l,keyPrefix:p?i:void 0}):T?g({getSafeRouteKey:E,segment:T[1],routeKeys:l,keyPrefix:p?o:void 0}):"/"+(0,n.escapeStringRegexp)(b)}).join(""),routeKeys:l}}function c(y,p){const _=d(y,p);return{...h(y),namedRegex:"^"+_.namedParameterizedRoute+"(?:/)?$",routeKeys:_.routeKeys}}function f(y,p){const{parameterizedRoute:_}=u(y),{catchAll:E=!0}=p;if(_==="/")return{namedRegex:"^/"+(E?".*":"")+"$"};const{namedParameterizedRoute:l}=d(y,!1);let b=E?"(?:(/.*)?)":"";return{namedRegex:"^"+l+b+"$"}}}(mt)),mt}var Sn;function fs(){return Sn||(Sn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=os(),r=ls();function n(a,o,i){let s="";const u=(0,r.getRouteRegex)(a),h=u.groups,m=(o!==a?(0,t.getRouteMatcher)(u)(o):"")||i;s=a;const g=Object.keys(h);return g.every(d=>{let c=m[d]||"";const{repeat:f,optional:y}=h[d];let p="["+(f?"...":"")+d+"]";return y&&(p=(c?"":"/")+"["+p+"]"),f&&!Array.isArray(c)&&(c=[c]),(y||d in m)&&(s=s.replace(p,f?c.map(_=>encodeURIComponent(_)).join("/"):encodeURIComponent(c))||"/")})||(s=""),{params:g,result:s}}}(yt)),yt}var Pn;function ps(){return Pn||(Pn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return m}});const r=Mi(),n=Di(),a=Ja(),o=Ye(),i=Ze(),s=Hi(),u=ns(),h=fs();function m(g,d,c){let f,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const p=y.match(/^[a-zA-Z]{1,}:\/\//),_=p?y.slice(p[0].length):y;if((_.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+g.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const l=(0,o.normalizeRepeatedSlashes)(_);y=(p?p[0]:"")+l}if(!(0,s.isLocalURL)(y))return c?[y]:y;try{f=new URL(y.startsWith("#")?g.asPath:g.pathname,"http://n")}catch{f=new URL("/","http://n")}try{const l=new URL(y,f);l.pathname=(0,i.normalizePathTrailingSlash)(l.pathname);let b="";if((0,u.isDynamicRoute)(l.pathname)&&l.searchParams&&c){const T=(0,r.searchParamsToUrlQuery)(l.searchParams),{result:v,params:S}=(0,h.interpolateAs)(l.pathname,l.pathname,T);v&&(b=(0,n.formatWithValidation)({pathname:v,hash:l.hash,query:(0,a.omit)(T,S)}))}const w=l.origin===f.origin?l.href.slice(l.origin.length):l.href;return c?[w,b||w]:w}catch{return c?[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)}(Me,Me.exports)),Me.exports}var $e={exports:{}},Et={},wt={},On;function Bi(){return On||(On=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Kr();function r(n,a){if(!n.startsWith("/")||!a)return n;const{pathname:o,query:i,hash:s}=(0,t.parsePath)(n);return""+a+o+i+s}}(wt)),wt}var Cn;function ds(){return Cn||(Cn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Bi(),r=ki();function n(a,o,i,s){if(!o||o===i)return a;const u=a.toLowerCase();return!s&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+o.toLowerCase()))?a:(0,t.addPathPrefix)(a,"/"+o)}}(Et)),Et}var In;function hs(){return In||(In=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Ze(),n=function(a){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(ds().addLocale(a,...i)):a};(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)}($e,$e.exports)),$e.exports}var St={},xn;function Ui(){return xn||(xn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ae._(se).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(St)),St}var Pt={},Tn;function Fi(){return Tn||(Tn=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var g in m)Object.defineProperty(h,g,{enumerable:!0,get:m[g]})}t(e,{CacheStates:function(){return a},AppRouterContext:function(){return o},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return u}});const n=Ae._(se);var a;(function(h){h.LAZY_INITIALIZED="LAZYINITIALIZED",h.DATA_FETCH="DATAFETCH",h.READY="READY"})(a||(a={}));const o=n.default.createContext(null),i=n.default.createContext(null),s=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="AppRouterContext",i.displayName="LayoutRouterContext",s.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(Pt)),Pt}var ke={exports:{}},He={exports:{}},Nn;function zi(){return Nn||(Nn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return a}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(o){let i=Date.now();return self.setTimeout(function(){o({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},a=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)}(He,He.exports)),He.exports}var jn;function ys(){return jn||(jn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return h}});const r=se,n=zi(),a=typeof IntersectionObserver=="function",o=new Map,i=[];function s(m){const g={root:m.root||null,margin:m.rootMargin||""},d=i.find(p=>p.root===g.root&&p.margin===g.margin);let c;if(d&&(c=o.get(d),c))return c;const f=new Map,y=new IntersectionObserver(p=>{p.forEach(_=>{const E=f.get(_.target),l=_.isIntersecting||_.intersectionRatio>0;E&&l&&E(l)})},m);return c={id:g,observer:y,elements:f},i.push(g),o.set(g,c),c}function u(m,g,d){const{id:c,observer:f,elements:y}=s(d);return y.set(m,g),f.observe(m),function(){if(y.delete(m),f.unobserve(m),y.size===0){f.disconnect(),o.delete(c);const _=i.findIndex(E=>E.root===c.root&&E.margin===c.margin);_>-1&&i.splice(_,1)}}}function h(m){let{rootRef:g,rootMargin:d,disabled:c}=m;const f=c||!a,[y,p]=(0,r.useState)(!1),_=(0,r.useRef)(null),E=(0,r.useCallback)(b=>{_.current=b},[]);(0,r.useEffect)(()=>{if(a){if(f||y)return;const b=_.current;if(b&&b.tagName)return u(b,T=>T&&p(T),{root:g==null?void 0:g.current,rootMargin:d})}else if(!y){const b=(0,n.requestIdleCallback)(()=>p(!0));return()=>(0,n.cancelIdleCallback)(b)}},[f,d,g,y,_.current]);const l=(0,r.useCallback)(()=>{p(!1)},[]);return[E,y,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)}(ke,ke.exports)),ke.exports}var Be={exports:{}},Ue={exports:{}},Ot={},Ln;function gs(){return Ln||(Ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let a;const o=r.split("/");return(n||[]).some(i=>o[1]&&o[1].toLowerCase()===i.toLowerCase()?(a=i,o.splice(1,1),r=o.join("/")||"/",!0):!1),{pathname:r,detectedLocale:a}}}(Ot)),Ot}var Mn;function ms(){return Mn||(Mn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,a)=>process.env.__NEXT_I18N_SUPPORT?gs().normalizeLocalePath(n,a):{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)}(Ue,Ue.exports)),Ue.exports}var Fe={exports:{}},Ct={},qn;function _s(){return qn||(qn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,a){if(r){a&&(a=a.toLowerCase());for(const s of r){var o,i;const u=(o=s.domain)==null?void 0:o.split(":")[0].toLowerCase();if(n===u||a===s.defaultLocale.toLowerCase()||(i=s.locales)!=null&&i.some(h=>h.toLowerCase()===a))return s}}}}(Ct)),Ct}var Dn;function vs(){return Dn||(Dn=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,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];if(process.env.__NEXT_I18N_SUPPORT)return _s().detectDomainLocale(...a)};(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)}(Fe,Fe.exports)),Fe.exports}var $n;function bs(){return $n||($n=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=Ze(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function a(o,i,s,u){if(process.env.__NEXT_I18N_SUPPORT){const h=ms().normalizeLocalePath,m=vs().detectDomainLocale,g=i||h(o,s).detectedLocale,d=m(u,void 0,g);if(d){const c="http"+(d.http?"":"s")+"://",f=g===d.defaultLocale?"":"/"+g;return""+c+d.domain+(0,r.normalizePathTrailingSlash)(""+n+f+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)}(Be,Be.exports)),Be.exports}var ze={exports:{}},kn;function Rs(){return kn||(kn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});const r=Bi(),n=Ze(),a=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?i:(0,r.addPathPrefix)(i,a))}(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)}(ze,ze.exports)),ze.exports}var Ge={exports:{}},Hn;function As(){return Hn||(Hn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(g,d){for(var c in d)Object.defineProperty(g,c,{enumerable:!0,get:d[c]})}r(t,{PrefetchKind:function(){return m},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return h}});const n="refresh",a="navigate",o="restore",i="server-patch",s="prefetch",u="fast-refresh",h="server-action";var m;(function(g){g.AUTO="auto",g.FULL="full",g.TEMPORARY="temporary"})(m||(m={})),(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)}(Ge,Ge.exports)),Ge.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});const n=Ae._(se),a=ps(),o=Hi(),i=Di(),s=Ye(),u=hs(),h=Ui(),m=Fi(),g=ys(),d=bs(),c=Rs(),f=As(),y=new Set;function p(T,v,S,M,R,N){if(typeof window>"u"||!N&&!(0,o.isLocalURL)(v))return;if(!M.bypassPrefetchedCheck){const D=typeof M.locale<"u"?M.locale:"locale"in T?T.locale:void 0,j=v+"%"+S+"%"+D;if(y.has(j))return;y.add(j)}const L=N?T.prefetch(v,R):T.prefetch(v,S,M);Promise.resolve(L).catch(D=>{if(process.env.NODE_ENV!=="production")throw D})}function _(T){const S=T.currentTarget.getAttribute("target");return S&&S!=="_self"||T.metaKey||T.ctrlKey||T.shiftKey||T.altKey||T.nativeEvent&&T.nativeEvent.which===2}function E(T,v,S,M,R,N,L,D,j,B){const{nodeName:F}=T.currentTarget;if(F.toUpperCase()==="A"&&(_(T)||!j&&!(0,o.isLocalURL)(S)))return;T.preventDefault();const Y=()=>{const W=L??!0;"beforePopState"in v?v[R?"replace":"push"](S,M,{shallow:N,locale:D,scroll:W}):v[R?"replace":"push"](M||S,{forceOptimisticNavigation:!B,scroll:W})};j?n.default.startTransition(Y):Y()}function l(T){return typeof T=="string"?T:(0,i.formatUrl)(T)}const w=n.default.forwardRef(function(v,S){let M;const{href:R,as:N,children:L,prefetch:D=null,passHref:j,replace:B,shallow:F,scroll:re,locale:Y,onClick:W,onMouseEnter:$,onTouchStart:ne,legacyBehavior:A=!1,...O}=v;M=L,A&&(typeof M=="string"||typeof M=="number")&&(M=n.default.createElement("a",null,M));const x=n.default.useContext(h.RouterContext),U=n.default.useContext(m.AppRouterContext),Z=x??U,K=!x,C=D!==!1,Q=D===null?f.PrefetchKind.AUTO:f.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let te=function(ee){return new Error("Failed prop type: The prop `"+ee.key+"` expects a "+ee.expected+" in `<Link>`, but got `"+ee.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(ee=>{if(ee==="href"&&(v[ee]==null||typeof v[ee]!="string"&&typeof v[ee]!="object"))throw te({key:ee,expected:"`string` or `object`",actual:v[ee]===null?"null":typeof v[ee]})}),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(ee=>{const H=typeof v[ee];if(ee==="as"){if(v[ee]&&H!=="string"&&H!=="object")throw te({key:ee,expected:"`string` or `object`",actual:H})}else if(ee==="locale"){if(v[ee]&&H!=="string")throw te({key:ee,expected:"`string`",actual:H})}else if(ee==="onClick"||ee==="onMouseEnter"||ee==="onTouchStart"){if(v[ee]&&H!=="function")throw te({key:ee,expected:"`function`",actual:H})}else if((ee==="replace"||ee==="scroll"||ee==="shallow"||ee==="passHref"||ee==="prefetch"||ee==="legacyBehavior")&&v[ee]!=null&&H!=="boolean")throw te({key:ee,expected:"`boolean`",actual:H})});const z=n.default.useRef(!1);v.prefetch&&!z.current&&!K&&(z.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"&&K&&!N){let te;if(typeof R=="string"?te=R:typeof R=="object"&&typeof R.pathname=="string"&&(te=R.pathname),te&&te.split("/").some(k=>k.startsWith("[")&&k.endsWith("]")))throw new Error("Dynamic href `"+te+"` 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:G,as:X}=n.default.useMemo(()=>{if(!x){const k=l(R);return{href:k,as:N?l(N):k}}const[te,pe]=(0,a.resolveHref)(x,R,!0);return{href:te,as:N?(0,a.resolveHref)(x,N):pe||te}},[x,R,N]),I=n.default.useRef(G),P=n.default.useRef(X);let J;if(A)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'),$&&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{J=n.default.Children.only(M)}catch{throw M?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 J=n.default.Children.only(M);else if(process.env.NODE_ENV==="development"&&(M==null?void 0:M.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 oe=A?J&&typeof J=="object"&&J.ref:S,[ae,ue,ie]=(0,g.useIntersection)({rootMargin:"200px"}),q=n.default.useCallback(te=>{(P.current!==X||I.current!==G)&&(ie(),P.current=X,I.current=G),ae(te),oe&&(typeof oe=="function"?oe(te):typeof oe=="object"&&(oe.current=te))},[X,oe,G,ie,ae]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&Z&&(!ue||!C||p(Z,G,X,{locale:Y},{kind:Q},K))},[X,G,ue,Y,C,x==null?void 0:x.locale,Z,K,Q]);const de={ref:q,onClick(te){if(process.env.NODE_ENV!=="production"&&!te)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!A&&typeof W=="function"&&W(te),A&&J.props&&typeof J.props.onClick=="function"&&J.props.onClick(te),Z&&(te.defaultPrevented||E(te,Z,G,X,B,F,re,Y,K,C))},onMouseEnter(te){!A&&typeof $=="function"&&$(te),A&&J.props&&typeof J.props.onMouseEnter=="function"&&J.props.onMouseEnter(te),Z&&((!C||process.env.NODE_ENV==="development")&&K||p(Z,G,X,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:Q},K))},onTouchStart(te){!A&&typeof ne=="function"&&ne(te),A&&J.props&&typeof J.props.onTouchStart=="function"&&J.props.onTouchStart(te),Z&&(!C&&K||p(Z,G,X,{locale:Y,priority:!0,bypassPrefetchedCheck:!0},{kind:Q},K))}};if((0,s.isAbsoluteUrl)(X))de.href=X;else if(!A||j||J.type==="a"&&!("href"in J.props)){const te=typeof Y<"u"?Y:x==null?void 0:x.locale,pe=(x==null?void 0:x.isLocaleDomain)&&(0,d.getDomainLocale)(X,te,x==null?void 0:x.locales,x==null?void 0:x.domainLocales);de.href=pe||(0,c.addBasePath)((0,u.addLocale)(X,te,x==null?void 0:x.defaultLocale))}return A?n.default.cloneElement(J,de):n.default.createElement("a",{...O,...de},M)});(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)})(Br,Br.exports);var Es=Br.exports,ws=Es;const Qe=Vr(ws),Ss="_footer__bottom_1o9af_2",Ps="_footer__wrapper_1o9af_10",Os="_footer__main_1o9af_39",Cs="_footer__legalInformation_1o9af_55",Is="_footer__column_1o9af_77",xs="_footer__columnContent_1o9af_87",Ts="_footer__item_1o9af_91",Ns="_footer__itemLink_1o9af_107",js="_footer__columnTitle_1o9af_122",Ls="_footer__columnTitleIcon_1o9af_134",Ms="_footer__iconList_1o9af_147",qs="_footer__itemSmallText_1o9af_157",Ds="_payment_1o9af_168",$s="_footer__iconContainer_1o9af_173",ks="_footer__iconListSubHeader_1o9af_178",Hs="_accordionWrapper_1o9af_200",Bs="_accordionHeader_1o9af_204",Us="_accordionTextWrapper_1o9af_208",fe={footer__bottom:Ss,footer__wrapper:Ps,footer__main:Os,footer__legalInformation:Cs,footer__column:Is,footer__columnContent:xs,footer__item:Ts,footer__itemLink:Ns,footer__columnTitle:js,footer__columnTitleIcon:Ls,footer__iconList:Ms,footer__itemSmallText:qs,payment:Ds,footer__iconContainer:$s,footer__iconListSubHeader:ks,accordionWrapper:Hs,accordionHeader:Bs,accordionTextWrapper:Us,"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 Gi={},Qr={},Ie={};(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)}}})(Ie);var Wi={};(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:a,blurWidth:o,blurHeight:i,blurDataURL:s,objectFit:u}=r;const h=20,m=o?o*40:n,g=i?i*40:a,d=m&&g?"viewBox='0 0 "+m+" "+g+"'":"",c=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='"+h+"'/%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='"+h+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+c+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}})(Wi);var Je={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,o){for(var i in o)Object.defineProperty(a,i,{enumerable:!0,get:o[i]})}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}})(Je);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return c}});const t=Ie,r=Wi,n=Je,a=["lazy","eager",void 0];function o(f){return f.default!==void 0}function i(f){return f.src!==void 0}function s(f){return typeof f=="object"&&(o(f)||i(f))}const u=new Map;let h;function m(f){return typeof f>"u"?f:typeof f=="number"?Number.isFinite(f)?f:NaN:typeof f=="string"&&/^[0-9]+$/.test(f)?parseInt(f,10):NaN}function g(f,y,p){let{deviceSizes:_,allSizes:E}=f;if(p){const b=/(^|\s)(1?\d?\d)vw/g,w=[];for(let T;T=b.exec(p);T)w.push(parseInt(T[2]));if(w.length){const T=Math.min(...w)*.01;return{widths:E.filter(v=>v>=_[0]*T),kind:"w"}}return{widths:E,kind:"w"}}return typeof y!="number"?{widths:_,kind:"w"}:{widths:[...new Set([y,y*2].map(b=>E.find(w=>w>=b)||E[E.length-1]))],kind:"x"}}function d(f){let{config:y,src:p,unoptimized:_,width:E,quality:l,sizes:b,loader:w}=f;if(_)return{src:p,srcSet:void 0,sizes:void 0};const{widths:T,kind:v}=g(y,E,b),S=T.length-1;return{sizes:!b&&v==="w"?"100vw":b,srcSet:T.map((M,R)=>w({config:y,src:p,quality:l,width:M})+" "+(v==="w"?M:R+1)+v).join(", "),src:w({config:y,src:p,quality:l,width:T[S]})}}function c(f,y){let{src:p,sizes:_,unoptimized:E=!1,priority:l=!1,loading:b,className:w,quality:T,width:v,height:S,fill:M=!1,style:R,onLoad:N,onLoadingComplete:L,placeholder:D="empty",blurDataURL:j,fetchPriority:B,layout:F,objectFit:re,objectPosition:Y,lazyBoundary:W,lazyRoot:$,...ne}=f;const{imgConf:A,showAltText:O,blurComplete:x,defaultLoader:U}=y;let Z,K=A||n.imageConfigDefault;if("allSizes"in K)Z=K;else{const k=[...K.deviceSizes,...K.imageSizes].sort((_e,z)=>_e-z),ce=K.deviceSizes.sort((_e,z)=>_e-z);Z={...K,allSizes:k,deviceSizes:ce}}let C=ne.loader||U;delete ne.loader,delete ne.srcSet;const Q="__next_img_default"in C;if(Q){if(Z.loader==="custom")throw new Error('Image with src "'+p+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const k=C;C=ce=>{const{config:_e,...z}=ce;return k(z)}}if(F){F==="fill"&&(M=!0);const k={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ce={responsive:"100vw",fill:"100vw"},_e=k[F];_e&&(R={...R,..._e});const z=ce[F];z&&!_&&(_=z)}let G="",X=m(v),I=m(S),P,J;if(s(p)){const k=o(p)?p.default:p;if(!k.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(k));if(!k.height||!k.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(k));if(P=k.blurWidth,J=k.blurHeight,j=j||k.blurDataURL,G=k.src,!M){if(!X&&!I)X=k.width,I=k.height;else if(X&&!I){const ce=X/k.width;I=Math.round(k.height*ce)}else if(!X&&I){const ce=I/k.height;X=Math.round(k.width*ce)}}}p=typeof p=="string"?p:G;let oe=!l&&(b==="lazy"||typeof b>"u");(!p||p.startsWith("data:")||p.startsWith("blob:"))&&(E=!0,oe=!1),Z.unoptimized&&(E=!0),Q&&p.endsWith(".svg")&&!Z.dangerouslyAllowSVG&&(E=!0),l&&(B="high");const ae=m(T);if(process.env.NODE_ENV!=="production"){if(Z.output==="export"&&Q&&!E)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(!p)E=!0;else if(M){if(v)throw new Error('Image with src "'+p+'" has both "width" and "fill" properties. Only one should be used.');if(S)throw new Error('Image with src "'+p+'" 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 "'+p+'" 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 "'+p+'" 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 "'+p+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof X>"u")throw new Error('Image with src "'+p+'" is missing required "width" property.');if(isNaN(X))throw new Error('Image with src "'+p+'" has invalid "width" property. Expected a numeric value in pixels but received "'+v+'".');if(typeof I>"u")throw new Error('Image with src "'+p+'" is missing required "height" property.');if(isNaN(I))throw new Error('Image with src "'+p+'" has invalid "height" property. Expected a numeric value in pixels but received "'+S+'".')}if(!a.includes(b))throw new Error('Image with src "'+p+'" has invalid "loading" property. Provided "'+b+'" should be one of '+a.map(String).join(",")+".");if(l&&b==="lazy")throw new Error('Image with src "'+p+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(D!=="empty"&&D!=="blur"&&!D.startsWith("data:image/"))throw new Error('Image with src "'+p+'" has invalid "placeholder" property "'+D+'".');if(D!=="empty"&&X&&I&&X*I<1600&&(0,t.warnOnce)('Image with src "'+p+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),D==="blur"&&!j){const k=["jpeg","png","webp","avif"];throw new Error('Image with src "'+p+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
+ Possible solutions:
7
+ - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
+ - Change the "src" property to a static import with one of the supported file types: `+k.join(",")+` (animated images not supported)
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 "'+p+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!E&&!Q){const k=C({config:Z,src:p,width:X||400,quality:ae||75});let ce;try{ce=new URL(k)}catch{}(k===p||ce&&ce.pathname===p&&!ce.search)&&(0,t.warnOnce)('Image with src "'+p+`" 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[k,ce]of Object.entries({layout:F,objectFit:re,objectPosition:Y,lazyBoundary:W,lazyRoot:$}))ce&&(0,t.warnOnce)('Image with src "'+p+'" has legacy prop "'+k+`". Did you forget to run the codemod?
12
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!h&&window.PerformanceObserver){h=new PerformanceObserver(k=>{for(const _e of k.getEntries()){var ce;const z=(_e==null||(ce=_e.element)==null?void 0:ce.src)||"",ee=u.get(z);ee&&!ee.priority&&ee.placeholder==="empty"&&!ee.src.startsWith("data:")&&!ee.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+ee.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{h.observe({type:"largest-contentful-paint",buffered:!0})}catch(k){console.error(k)}}}const ue=Object.assign(M?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:re,objectPosition:Y}:{},O?{}:{color:"transparent"},R),ie=!x&&D!=="empty"?D==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:X,heightInt:I,blurWidth:P,blurHeight:J,blurDataURL:j||"",objectFit:ue.objectFit})+'")':'url("'+D+'")':null;let q=ie?{backgroundSize:ue.objectFit||"cover",backgroundPosition:ue.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ie}:{};process.env.NODE_ENV==="development"&&q.backgroundImage&&D==="blur"&&j!=null&&j.startsWith("/")&&(q.backgroundImage='url("'+j+'")');const de=d({config:Z,src:p,unoptimized:E,width:X,quality:ae,sizes:_,loader:C});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let k;try{k=new URL(de.src)}catch{k=new URL(de.src,window.location.href)}u.set(k.href,{src:p,priority:l,placeholder:D})}return{props:{...ne,loading:oe?"lazy":b,fetchPriority:B,width:X,height:I,decoding:"async",className:w,style:{...ue,...q},sizes:de.sizes,srcSet:de.srcSet,src:de.src},meta:{unoptimized:E,priority:l,placeholder:D,fill:M}}}})(Qr);var Ur={exports:{}},We={exports:{}},It={},Bn;function Fs(){return Bn||(Bn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});const t=se,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,a=r?()=>{}:t.useEffect;function o(i){const{headManager:s,reduceComponentsToState:u}=i;function h(){if(s&&s.mountedInstances){const g=t.Children.toArray(Array.from(s.mountedInstances).filter(Boolean));s.updateHead(u(g,i))}}if(r){var m;s==null||(m=s.mountedInstances)==null||m.add(i.children),h()}return n(()=>{var g;return s==null||(g=s.mountedInstances)==null||g.add(i.children),()=>{var d;s==null||(d=s.mountedInstances)==null||d.delete(i.children)}}),n(()=>(s&&(s._pendingUpdate=h),()=>{s&&(s._pendingUpdate=h)})),a(()=>(s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null),()=>{s&&s._pendingUpdate&&(s._pendingUpdate(),s._pendingUpdate=null)})),null}}(It)),It}var xt={},Un;function zs(){return Un||(Un=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ae._(se).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(xt)),xt}var Tt={},Fn;function Vi(){return Fn||(Fn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ae._(se).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Tt)),Tt}var Nt={},zn;function Gs(){return zn||(zn=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:a=!1,hasQuery:o=!1}=r===void 0?{}:r;return n||a&&o}}(Nt)),Nt}var Gn;function Ws(){return Gn||(Gn=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(E,l){for(var b in l)Object.defineProperty(E,b,{enumerable:!0,get:l[b]})}r(t,{defaultHead:function(){return g},default:function(){return _}});const n=Ae,o=Pe._(se),i=n._(Fs()),s=zs(),u=Vi(),h=Gs(),m=Ie;function g(E){E===void 0&&(E=!1);const l=[o.default.createElement("meta",{charSet:"utf-8"})];return E||l.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),l}function d(E,l){return typeof l=="string"||typeof l=="number"?E:l.type===o.default.Fragment?E.concat(o.default.Children.toArray(l.props.children).reduce((b,w)=>typeof w=="string"||typeof w=="number"?b:b.concat(w),[])):E.concat(l)}const c=["name","httpEquiv","charSet","itemProp"];function f(){const E=new Set,l=new Set,b=new Set,w={};return T=>{let v=!0,S=!1;if(T.key&&typeof T.key!="number"&&T.key.indexOf("$")>0){S=!0;const M=T.key.slice(T.key.indexOf("$")+1);E.has(M)?v=!1:E.add(M)}switch(T.type){case"title":case"base":l.has(T.type)?v=!1:l.add(T.type);break;case"meta":for(let M=0,R=c.length;M<R;M++){const N=c[M];if(T.props.hasOwnProperty(N))if(N==="charSet")b.has(N)?v=!1:b.add(N);else{const L=T.props[N],D=w[N]||new Set;(N!=="name"||!S)&&D.has(L)?v=!1:(D.add(L),w[N]=D)}}break}return v}}function y(E,l){const{inAmpMode:b}=l;return E.reduce(d,[]).reverse().concat(g(b).reverse()).filter(f()).reverse().map((w,T)=>{const v=w.key||T;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!b&&w.type==="link"&&w.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(S=>w.props.href.startsWith(S))){const S={...w.props||{}};return S["data-href"]=S.href,S.href=void 0,S["data-optimized-fonts"]=!0,o.default.cloneElement(w,S)}if(process.env.NODE_ENV==="development")if(w.type==="script"&&w.props.type!=="application/ld+json"){const S=w.props.src?'<script> tag with src="'+w.props.src+'"':"inline <script>";(0,m.warnOnce)("Do not add <script> tags using next/head (see "+S+`). Use next/script instead.
14
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else w.type==="link"&&w.props.rel==="stylesheet"&&(0,m.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+w.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return o.default.cloneElement(w,{key:v})})}function p(E){let{children:l}=E;const b=(0,o.useContext)(s.AmpStateContext),w=(0,o.useContext)(u.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:y,headManager:w,inAmpMode:(0,h.isInAmpMode)(b)},l)}const _=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)}(We,We.exports)),We.exports}var jt={},Wn;function Vs(){return Wn||(Wn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return a}});const r=Ae._(se),n=Je,a=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(a.displayName="ImageConfigContext")}(jt)),jt}var Lt={},Mt={},qt={exports:{}};const Ki={},Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),Qs=Xa(Ks);var Dt={},$t={},kt,Vn;function Qi(){return Vn||(Vn=1,kt=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 a=42;t[r]=a;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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==a||s.enumerable!==!0)return!1}return!0}),kt}var Ht,Kn;function et(){if(Kn)return Ht;Kn=1;var e=Qi();return Ht=function(){return e()&&!!Symbol.toStringTag},Ht}var Bt,Qn;function Xi(){return Qn||(Qn=1,Bt=Object),Bt}var Ut,Xn;function Xs(){return Xn||(Xn=1,Ut=Error),Ut}var Ft,Yn;function Ys(){return Yn||(Yn=1,Ft=EvalError),Ft}var zt,Zn;function Zs(){return Zn||(Zn=1,zt=RangeError),zt}var Gt,Jn;function Js(){return Jn||(Jn=1,Gt=ReferenceError),Gt}var Wt,eo;function Yi(){return eo||(eo=1,Wt=SyntaxError),Wt}var Vt,to;function xe(){return to||(to=1,Vt=TypeError),Vt}var Kt,ro;function eu(){return ro||(ro=1,Kt=URIError),Kt}var Qt,no;function tu(){return no||(no=1,Qt=Math.abs),Qt}var Xt,oo;function ru(){return oo||(oo=1,Xt=Math.floor),Xt}var Yt,io;function nu(){return io||(io=1,Yt=Math.max),Yt}var Zt,ao;function ou(){return ao||(ao=1,Zt=Math.min),Zt}var Jt,so;function iu(){return so||(so=1,Jt=Math.pow),Jt}var er,uo;function au(){return uo||(uo=1,er=Math.round),er}var tr,co;function su(){return co||(co=1,tr=Number.isNaN||function(t){return t!==t}),tr}var rr,lo;function uu(){if(lo)return rr;lo=1;var e=su();return rr=function(r){return e(r)||r===0?r:r<0?-1:1},rr}var nr,fo;function cu(){return fo||(fo=1,nr=Object.getOwnPropertyDescriptor),nr}var or,po;function Oe(){if(po)return or;po=1;var e=cu();if(e)try{e([],"length")}catch{e=null}return or=e,or}var ir,ho;function tt(){if(ho)return ir;ho=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ir=e,ir}var ar,yo;function lu(){if(yo)return ar;yo=1;var e=typeof Symbol<"u"&&Symbol,t=Qi();return ar=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},ar}var sr,go;function Zi(){return go||(go=1,sr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),sr}var ur,mo;function Ji(){if(mo)return ur;mo=1;var e=Xi();return ur=e.getPrototypeOf||null,ur}var cr,_o;function fu(){if(_o)return cr;_o=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",a=function(u,h){for(var m=[],g=0;g<u.length;g+=1)m[g]=u[g];for(var d=0;d<h.length;d+=1)m[d+u.length]=h[d];return m},o=function(u,h){for(var m=[],g=h,d=0;g<u.length;g+=1,d+=1)m[d]=u[g];return m},i=function(s,u){for(var h="",m=0;m<s.length;m+=1)h+=s[m],m+1<s.length&&(h+=u);return h};return cr=function(u){var h=this;if(typeof h!="function"||t.apply(h)!==n)throw new TypeError(e+h);for(var m=o(arguments,1),g,d=function(){if(this instanceof g){var _=h.apply(this,a(m,arguments));return Object(_)===_?_:this}return h.apply(u,a(m,arguments))},c=r(0,h.length-m.length),f=[],y=0;y<c;y++)f[y]="$"+y;if(g=Function("binder","return function ("+i(f,",")+"){ return binder.apply(this,arguments); }")(d),h.prototype){var p=function(){};p.prototype=h.prototype,g.prototype=new p,p.prototype=null}return g},cr}var lr,vo;function Te(){if(vo)return lr;vo=1;var e=fu();return lr=Function.prototype.bind||e,lr}var fr,bo;function Xr(){return bo||(bo=1,fr=Function.prototype.call),fr}var pr,Ro;function Yr(){return Ro||(Ro=1,pr=Function.prototype.apply),pr}var dr,Ao;function pu(){return Ao||(Ao=1,dr=typeof Reflect<"u"&&Reflect&&Reflect.apply),dr}var hr,Eo;function ea(){if(Eo)return hr;Eo=1;var e=Te(),t=Yr(),r=Xr(),n=pu();return hr=n||e.call(r,t),hr}var yr,wo;function Zr(){if(wo)return yr;wo=1;var e=Te(),t=xe(),r=Xr(),n=ea();return yr=function(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return n(e,r,o)},yr}var gr,So;function du(){if(So)return gr;So=1;var e=Zr(),t=Oe(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,o=a.getPrototypeOf;return gr=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(s){return o(s==null?s:a(s))}:!1,gr}var mr,Po;function Jr(){if(Po)return mr;Po=1;var e=Zi(),t=Ji(),r=du();return mr=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,mr}var _r,Oo;function ta(){if(Oo)return _r;Oo=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Te();return _r=r.call(e,t),_r}var vr,Co;function ra(){if(Co)return vr;Co=1;var e,t=Xi(),r=Xs(),n=Ys(),a=Zs(),o=Js(),i=Yi(),s=xe(),u=eu(),h=tu(),m=ru(),g=nu(),d=ou(),c=iu(),f=au(),y=uu(),p=Function,_=function(Q){try{return p('"use strict"; return ('+Q+").constructor;")()}catch{}},E=Oe(),l=tt(),b=function(){throw new s},w=E?function(){try{return arguments.callee,b}catch{try{return E(arguments,"callee").get}catch{return b}}}():b,T=lu()(),v=Jr(),S=Ji(),M=Zi(),R=Yr(),N=Xr(),L={},D=typeof Uint8Array>"u"||!v?e:v(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&v?v([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%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%":p,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&v?v(v([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!v?e:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!v?e:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&v?v(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":w,"%TypedArray%":D,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":R,"%Object.defineProperty%":l,"%Object.getPrototypeOf%":S,"%Math.abs%":h,"%Math.floor%":m,"%Math.max%":g,"%Math.min%":d,"%Math.pow%":c,"%Math.round%":f,"%Math.sign%":y,"%Reflect.getPrototypeOf%":M};if(v)try{null.error}catch(Q){var B=v(v(Q));j["%Error.prototype%"]=B}var F=function Q(G){var X;if(G==="%AsyncFunction%")X=_("async function () {}");else if(G==="%GeneratorFunction%")X=_("function* () {}");else if(G==="%AsyncGeneratorFunction%")X=_("async function* () {}");else if(G==="%AsyncGenerator%"){var I=Q("%AsyncGeneratorFunction%");I&&(X=I.prototype)}else if(G==="%AsyncIteratorPrototype%"){var P=Q("%AsyncGenerator%");P&&v&&(X=v(P.prototype))}return j[G]=X,X},re={__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"]},Y=Te(),W=ta(),$=Y.call(N,Array.prototype.concat),ne=Y.call(R,Array.prototype.splice),A=Y.call(N,String.prototype.replace),O=Y.call(N,String.prototype.slice),x=Y.call(N,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,K=function(G){var X=O(G,0,1),I=O(G,-1);if(X==="%"&&I!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(I==="%"&&X!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var P=[];return A(G,U,function(J,oe,ae,ue){P[P.length]=ae?A(ue,Z,"$1"):oe||J}),P},C=function(G,X){var I=G,P;if(W(re,I)&&(P=re[I],I="%"+P[0]+"%"),W(j,I)){var J=j[I];if(J===L&&(J=F(I)),typeof J>"u"&&!X)throw new s("intrinsic "+G+" exists, but is not available. Please file an issue!");return{alias:P,name:I,value:J}}throw new i("intrinsic "+G+" does not exist!")};return vr=function(G,X){if(typeof G!="string"||G.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof X!="boolean")throw new s('"allowMissing" argument must be a boolean');if(x(/^%?[^%]*%?$/,G)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var I=K(G),P=I.length>0?I[0]:"",J=C("%"+P+"%",X),oe=J.name,ae=J.value,ue=!1,ie=J.alias;ie&&(P=ie[0],ne(I,$([0,1],ie)));for(var q=1,de=!0;q<I.length;q+=1){var te=I[q],pe=O(te,0,1),k=O(te,-1);if((pe==='"'||pe==="'"||pe==="`"||k==='"'||k==="'"||k==="`")&&pe!==k)throw new i("property names with quotes must have matching quotes");if((te==="constructor"||!de)&&(ue=!0),P+="."+te,oe="%"+P+"%",W(j,oe))ae=j[oe];else if(ae!=null){if(!(te in ae)){if(!X)throw new s("base intrinsic for "+G+" exists, but the property is not available.");return}if(E&&q+1>=I.length){var ce=E(ae,te);de=!!ce,de&&"get"in ce&&!("originalValue"in ce.get)?ae=ce.get:ae=ae[te]}else de=W(ae,te),ae=ae[te];de&&!ue&&(j[oe]=ae)}}return ae},vr}var br,Io;function Ne(){if(Io)return br;Io=1;var e=ra(),t=Zr(),r=t([e("%String.prototype.indexOf%")]);return br=function(a,o){var i=e(a,!!o);return typeof i=="function"&&r(a,".prototype.")>-1?t([i]):i},br}var Rr,xo;function hu(){if(xo)return Rr;xo=1;var e=et()(),t=Ne(),r=t("Object.prototype.toString"),n=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},a=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&"length"in s&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&"callee"in s&&r(s.callee)==="[object Function]"},o=function(){return n(arguments)}();return n.isLegacyArguments=a,Rr=o?n:a,Rr}var Ar,To;function yu(){if(To)return Ar;To=1;var e=Ne(),t=et()(),r=ta(),n=Oe(),a;if(t){var o=e("RegExp.prototype.exec"),i={},s=function(){throw i},u={toString:s,valueOf:s};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=s),a=function(d){if(!d||typeof d!="object")return!1;var c=n(d,"lastIndex"),f=c&&r(c,"value");if(!f)return!1;try{o(d,u)}catch(y){return y===i}}}else{var h=e("Object.prototype.toString"),m="[object RegExp]";a=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:h(d)===m}}return Ar=a,Ar}var Er,No;function gu(){if(No)return Er;No=1;var e=Ne(),t=yu(),r=e("RegExp.prototype.exec"),n=xe();return Er=function(o){if(!t(o))throw new n("`regex` must be a RegExp");return function(s){return r(o,s)!==null}},Er}var wr,jo;function mu(){if(jo)return wr;jo=1;var e=Ne(),t=gu(),r=t(/^\s*(?:function)?\*/),n=et()(),a=Jr(),o=e("Object.prototype.toString"),i=e("Function.prototype.toString"),s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return wr=function(m){if(typeof m!="function")return!1;if(r(i(m)))return!0;if(!n){var g=o(m);return g==="[object GeneratorFunction]"}if(!a)return!1;if(typeof u>"u"){var d=s();u=d?a(d):!1}return a(m)===u},wr}var Sr,Lo;function _u(){if(Lo)return Sr;Lo=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(E){E!==n&&(t=null)}else t=null;var a=/^\s*class\b/,o=function(l){try{var b=e.call(l);return a.test(b)}catch{return!1}},i=function(l){try{return o(l)?!1:(e.call(l),!0)}catch{return!1}},s=Object.prototype.toString,u="[object Object]",h="[object Function]",m="[object GeneratorFunction]",g="[object HTMLAllCollection]",d="[object HTML document.all class]",c="[object HTMLCollection]",f=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),p=function(){return!1};if(typeof document=="object"){var _=document.all;s.call(_)===s.call(document.all)&&(p=function(l){if((y||!l)&&(typeof l>"u"||typeof l=="object"))try{var b=s.call(l);return(b===g||b===d||b===c||b===u)&&l("")==null}catch{}return!1})}return Sr=t?function(l){if(p(l))return!0;if(!l||typeof l!="function"&&typeof l!="object")return!1;try{t(l,null,r)}catch(b){if(b!==n)return!1}return!o(l)&&i(l)}:function(l){if(p(l))return!0;if(!l||typeof l!="function"&&typeof l!="object")return!1;if(f)return i(l);if(o(l))return!1;var b=s.call(l);return b!==h&&b!==m&&!/^\[object HTML/.test(b)?!1:i(l)},Sr}var Pr,Mo;function vu(){if(Mo)return Pr;Mo=1;var e=_u(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,h,m){for(var g=0,d=u.length;g<d;g++)r.call(u,g)&&(m==null?h(u[g],g,u):h.call(m,u[g],g,u))},a=function(u,h,m){for(var g=0,d=u.length;g<d;g++)m==null?h(u.charAt(g),g,u):h.call(m,u.charAt(g),g,u)},o=function(u,h,m){for(var g in u)r.call(u,g)&&(m==null?h(u[g],g,u):h.call(m,u[g],g,u))};function i(s){return t.call(s)==="[object Array]"}return Pr=function(u,h,m){if(!e(h))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=m),i(u)?n(u,h,g):typeof u=="string"?a(u,h,g):o(u,h,g)},Pr}var Or,qo;function bu(){return qo||(qo=1,Or=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Or}var Cr,Do;function Ru(){if(Do)return Cr;Do=1;var e=bu(),t=typeof globalThis>"u"?Li:globalThis;return Cr=function(){for(var n=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(n[n.length]=e[a]);return n},Cr}var Ir={exports:{}},xr,$o;function Au(){if($o)return xr;$o=1;var e=tt(),t=Yi(),r=xe(),n=Oe();return xr=function(o,i,s){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="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,h=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,d=!!n&&n(o,i);if(e)e(o,i,{configurable:m===null&&d?d.configurable:!m,enumerable:u===null&&d?d.enumerable:!u,value:s,writable:h===null&&d?d.writable:!h});else if(g||!u&&!h&&!m)o[i]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},xr}var Tr,ko;function Eu(){if(ko)return Tr;ko=1;var e=tt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Tr=t,Tr}var Nr,Ho;function wu(){if(Ho)return Nr;Ho=1;var e=ra(),t=Au(),r=Eu()(),n=Oe(),a=xe(),o=e("%Math.floor%");return Nr=function(s,u){if(typeof s!="function")throw new a("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||o(u)!==u)throw new a("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],m=!0,g=!0;if("length"in s&&n){var d=n(s,"length");d&&!d.configurable&&(m=!1),d&&!d.writable&&(g=!1)}return(m||g||!h)&&(r?t(s,"length",u,!0,!0):t(s,"length",u)),s},Nr}var jr,Bo;function Su(){if(Bo)return jr;Bo=1;var e=Te(),t=Yr(),r=ea();return jr=function(){return r(e,t,arguments)},jr}var Uo;function Pu(){return Uo||(Uo=1,function(e){var t=wu(),r=tt(),n=Zr(),a=Su();e.exports=function(i){var s=n(arguments),u=i.length-(arguments.length-1);return t(s,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(Ir)),Ir.exports}var Lr,Fo;function na(){if(Fo)return Lr;Fo=1;var e=vu(),t=Ru(),r=Pu(),n=Ne(),a=Oe(),o=Jr(),i=n("Object.prototype.toString"),s=et()(),u=typeof globalThis>"u"?Li:globalThis,h=t(),m=n("String.prototype.slice"),g=n("Array.prototype.indexOf",!0)||function(p,_){for(var E=0;E<p.length;E+=1)if(p[E]===_)return E;return-1},d={__proto__:null};s&&a&&o?e(h,function(y){var p=new u[y];if(Symbol.toStringTag in p&&o){var _=o(p),E=a(_,Symbol.toStringTag);if(!E&&_){var l=o(_);E=a(l,Symbol.toStringTag)}d["$"+y]=r(E.get)}}):e(h,function(y){var p=new u[y],_=p.slice||p.set;_&&(d["$"+y]=r(_))});var c=function(p){var _=!1;return e(d,function(E,l){if(!_)try{"$"+E(p)===l&&(_=m(l,1))}catch{}}),_},f=function(p){var _=!1;return e(d,function(E,l){if(!_)try{E(p),_=m(l,1)}catch{}}),_};return Lr=function(p){if(!p||typeof p!="object")return!1;if(!s){var _=m(i(p),8,-1);return g(h,_)>-1?_:_!=="Object"?!1:f(p)}return a?c(p):null},Lr}var Mr,zo;function Ou(){if(zo)return Mr;zo=1;var e=na();return Mr=function(r){return!!e(r)},Mr}var Go;function Cu(){return Go||(Go=1,function(e){var t=hu(),r=mu(),n=na(),a=Ou();function o(q){return q.call.bind(q)}var i=typeof BigInt<"u",s=typeof Symbol<"u",u=o(Object.prototype.toString),h=o(Number.prototype.valueOf),m=o(String.prototype.valueOf),g=o(Boolean.prototype.valueOf);if(i)var d=o(BigInt.prototype.valueOf);if(s)var c=o(Symbol.prototype.valueOf);function f(q,de){if(typeof q!="object")return!1;try{return de(q),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function y(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}e.isPromise=y;function p(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):a(q)||O(q)}e.isArrayBufferView=p;function _(q){return n(q)==="Uint8Array"}e.isUint8Array=_;function E(q){return n(q)==="Uint8ClampedArray"}e.isUint8ClampedArray=E;function l(q){return n(q)==="Uint16Array"}e.isUint16Array=l;function b(q){return n(q)==="Uint32Array"}e.isUint32Array=b;function w(q){return n(q)==="Int8Array"}e.isInt8Array=w;function T(q){return n(q)==="Int16Array"}e.isInt16Array=T;function v(q){return n(q)==="Int32Array"}e.isInt32Array=v;function S(q){return n(q)==="Float32Array"}e.isFloat32Array=S;function M(q){return n(q)==="Float64Array"}e.isFloat64Array=M;function R(q){return n(q)==="BigInt64Array"}e.isBigInt64Array=R;function N(q){return n(q)==="BigUint64Array"}e.isBigUint64Array=N;function L(q){return u(q)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function D(q){return typeof Map>"u"?!1:L.working?L(q):q instanceof Map}e.isMap=D;function j(q){return u(q)==="[object Set]"}j.working=typeof Set<"u"&&j(new Set);function B(q){return typeof Set>"u"?!1:j.working?j(q):q instanceof Set}e.isSet=B;function F(q){return u(q)==="[object WeakMap]"}F.working=typeof WeakMap<"u"&&F(new WeakMap);function re(q){return typeof WeakMap>"u"?!1:F.working?F(q):q instanceof WeakMap}e.isWeakMap=re;function Y(q){return u(q)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function W(q){return Y(q)}e.isWeakSet=W;function $(q){return u(q)==="[object ArrayBuffer]"}$.working=typeof ArrayBuffer<"u"&&$(new ArrayBuffer);function ne(q){return typeof ArrayBuffer>"u"?!1:$.working?$(q):q instanceof ArrayBuffer}e.isArrayBuffer=ne;function A(q){return u(q)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function O(q){return typeof DataView>"u"?!1:A.working?A(q):q instanceof DataView}e.isDataView=O;var x=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(q){return u(q)==="[object SharedArrayBuffer]"}function Z(q){return typeof x>"u"?!1:(typeof U.working>"u"&&(U.working=U(new x)),U.working?U(q):q instanceof x)}e.isSharedArrayBuffer=Z;function K(q){return u(q)==="[object AsyncFunction]"}e.isAsyncFunction=K;function C(q){return u(q)==="[object Map Iterator]"}e.isMapIterator=C;function Q(q){return u(q)==="[object Set Iterator]"}e.isSetIterator=Q;function G(q){return u(q)==="[object Generator]"}e.isGeneratorObject=G;function X(q){return u(q)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=X;function I(q){return f(q,h)}e.isNumberObject=I;function P(q){return f(q,m)}e.isStringObject=P;function J(q){return f(q,g)}e.isBooleanObject=J;function oe(q){return i&&f(q,d)}e.isBigIntObject=oe;function ae(q){return s&&f(q,c)}e.isSymbolObject=ae;function ue(q){return I(q)||P(q)||J(q)||oe(q)||ae(q)}e.isBoxedPrimitive=ue;function ie(q){return typeof Uint8Array<"u"&&(ne(q)||Z(q))}e.isAnyArrayBuffer=ie,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(e,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})}($t)),$t}var qr,Wo;function Iu(){return Wo||(Wo=1,qr=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),qr}var Ve={exports:{}},Vo;function xu(){return Vo||(Vo=1,typeof Object.create=="function"?Ve.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ve.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Ve.exports}var Ko;function Tu(){return Ko||(Ko=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var x=Object.keys(O),U={},Z=0;Z<x.length;Z++)U[x[Z]]=Object.getOwnPropertyDescriptor(O,x[Z]);return U},r=/%[sdj%]/g;e.format=function(A){if(!w(A)){for(var O=[],x=0;x<arguments.length;x++)O.push(i(arguments[x]));return O.join(" ")}for(var x=1,U=arguments,Z=U.length,K=String(A).replace(r,function(Q){if(Q==="%%")return"%";if(x>=Z)return Q;switch(Q){case"%s":return String(U[x++]);case"%d":return Number(U[x++]);case"%j":try{return JSON.stringify(U[x++])}catch{return"[Circular]"}default:return Q}}),C=U[x];x<Z;C=U[++x])E(C)||!M(C)?K+=" "+C:K+=" "+i(C);return K},e.deprecate=function(A,O){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,O).apply(this,arguments)};var x=!1;function U(){if(!x){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),x=!0}return A.apply(this,arguments)}return U};var n={},a=/^$/;if(process.env.NODE_DEBUG){var o=process.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+o+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!n[A])if(a.test(A)){var O=process.pid;n[A]=function(){var x=e.format.apply(e,arguments);console.error("%s %d: %s",A,O,x)}}else n[A]=function(){};return n[A]};function i(A,O){var x={seen:[],stylize:u};return arguments.length>=3&&(x.depth=arguments[2]),arguments.length>=4&&(x.colors=arguments[3]),_(O)?x.showHidden=O:O&&e._extend(x,O),v(x.showHidden)&&(x.showHidden=!1),v(x.depth)&&(x.depth=2),v(x.colors)&&(x.colors=!1),v(x.customInspect)&&(x.customInspect=!0),x.colors&&(x.stylize=s),m(x,A,x.depth)}e.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(A,O){var x=i.styles[O];return x?"\x1B["+i.colors[x][0]+"m"+A+"\x1B["+i.colors[x][1]+"m":A}function u(A,O){return A}function h(A){var O={};return A.forEach(function(x,U){O[x]=!0}),O}function m(A,O,x){if(A.customInspect&&O&&L(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var U=O.inspect(x,A);return w(U)||(U=m(A,U,x)),U}var Z=g(A,O);if(Z)return Z;var K=Object.keys(O),C=h(K);if(A.showHidden&&(K=Object.getOwnPropertyNames(O)),N(O)&&(K.indexOf("message")>=0||K.indexOf("description")>=0))return d(O);if(K.length===0){if(L(O)){var Q=O.name?": "+O.name:"";return A.stylize("[Function"+Q+"]","special")}if(S(O))return A.stylize(RegExp.prototype.toString.call(O),"regexp");if(R(O))return A.stylize(Date.prototype.toString.call(O),"date");if(N(O))return d(O)}var G="",X=!1,I=["{","}"];if(p(O)&&(X=!0,I=["[","]"]),L(O)){var P=O.name?": "+O.name:"";G=" [Function"+P+"]"}if(S(O)&&(G=" "+RegExp.prototype.toString.call(O)),R(O)&&(G=" "+Date.prototype.toUTCString.call(O)),N(O)&&(G=" "+d(O)),K.length===0&&(!X||O.length==0))return I[0]+G+I[1];if(x<0)return S(O)?A.stylize(RegExp.prototype.toString.call(O),"regexp"):A.stylize("[Object]","special");A.seen.push(O);var J;return X?J=c(A,O,x,C,K):J=K.map(function(oe){return f(A,O,x,C,oe,X)}),A.seen.pop(),y(J,G,I)}function g(A,O){if(v(O))return A.stylize("undefined","undefined");if(w(O)){var x="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(x,"string")}if(b(O))return A.stylize(""+O,"number");if(_(O))return A.stylize(""+O,"boolean");if(E(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function c(A,O,x,U,Z){for(var K=[],C=0,Q=O.length;C<Q;++C)Y(O,String(C))?K.push(f(A,O,x,U,String(C),!0)):K.push("");return Z.forEach(function(G){G.match(/^\d+$/)||K.push(f(A,O,x,U,G,!0))}),K}function f(A,O,x,U,Z,K){var C,Q,G;if(G=Object.getOwnPropertyDescriptor(O,Z)||{value:O[Z]},G.get?G.set?Q=A.stylize("[Getter/Setter]","special"):Q=A.stylize("[Getter]","special"):G.set&&(Q=A.stylize("[Setter]","special")),Y(U,Z)||(C="["+Z+"]"),Q||(A.seen.indexOf(G.value)<0?(E(x)?Q=m(A,G.value,null):Q=m(A,G.value,x-1),Q.indexOf(`
16
+ `)>-1&&(K?Q=Q.split(`
17
+ `).map(function(X){return" "+X}).join(`
18
+ `).slice(2):Q=`
19
+ `+Q.split(`
20
+ `).map(function(X){return" "+X}).join(`
21
+ `))):Q=A.stylize("[Circular]","special")),v(C)){if(K&&Z.match(/^\d+$/))return Q;C=JSON.stringify(""+Z),C.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(C=C.slice(1,-1),C=A.stylize(C,"name")):(C=C.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),C=A.stylize(C,"string"))}return C+": "+Q}function y(A,O,x){var U=A.reduce(function(Z,K){return K.indexOf(`
22
+ `)>=0,Z+K.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?x[0]+(O===""?"":O+`
23
+ `)+" "+A.join(`,
24
+ `)+" "+x[1]:x[0]+O+" "+A.join(", ")+" "+x[1]}e.types=Cu();function p(A){return Array.isArray(A)}e.isArray=p;function _(A){return typeof A=="boolean"}e.isBoolean=_;function E(A){return A===null}e.isNull=E;function l(A){return A==null}e.isNullOrUndefined=l;function b(A){return typeof A=="number"}e.isNumber=b;function w(A){return typeof A=="string"}e.isString=w;function T(A){return typeof A=="symbol"}e.isSymbol=T;function v(A){return A===void 0}e.isUndefined=v;function S(A){return M(A)&&j(A)==="[object RegExp]"}e.isRegExp=S,e.types.isRegExp=S;function M(A){return typeof A=="object"&&A!==null}e.isObject=M;function R(A){return M(A)&&j(A)==="[object Date]"}e.isDate=R,e.types.isDate=R;function N(A){return M(A)&&(j(A)==="[object Error]"||A instanceof Error)}e.isError=N,e.types.isNativeError=N;function L(A){return typeof A=="function"}e.isFunction=L;function D(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=D,e.isBuffer=Iu();function j(A){return Object.prototype.toString.call(A)}function B(A){return A<10?"0"+A.toString(10):A.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var A=new Date,O=[B(A.getHours()),B(A.getMinutes()),B(A.getSeconds())].join(":");return[A.getDate(),F[A.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",re(),e.format.apply(e,arguments))},e.inherits=xu(),e._extend=function(A,O){if(!O||!M(O))return A;for(var x=Object.keys(O),U=x.length;U--;)A[x[U]]=O[x[U]];return A};function Y(A,O){return Object.prototype.hasOwnProperty.call(A,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 x=O[W];if(typeof x!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(x,W,{value:x,enumerable:!1,writable:!1,configurable:!0}),x}function x(){for(var U,Z,K=new Promise(function(G,X){U=G,Z=X}),C=[],Q=0;Q<arguments.length;Q++)C.push(arguments[Q]);C.push(function(G,X){G?Z(G):U(X)});try{O.apply(this,C)}catch(G){Z(G)}return K}return Object.setPrototypeOf(x,Object.getPrototypeOf(O)),W&&Object.defineProperty(x,W,{value:x,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(x,t(O))},e.promisify.custom=W;function $(A,O){if(!A){var x=new Error("Promise was rejected with a falsy value");x.reason=A,A=x}return O(A)}function ne(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var x=[],U=0;U<arguments.length;U++)x.push(arguments[U]);var Z=x.pop();if(typeof Z!="function")throw new TypeError("The last argument must be of type Function");var K=this,C=function(){return Z.apply(K,arguments)};A.apply(this,x).then(function(Q){process.nextTick(C.bind(null,null,Q))},function(Q){process.nextTick($.bind(null,Q,C))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(A)),Object.defineProperties(O,t(A)),O}e.callbackify=ne}(Dt)),Dt}var Qo;function Nu(){return Qo||(Qo=1,(()=>{var e={333:(a,o,i)=>{const s=i(137),u=i(179),h=i(13),m=i(719),g=(d,c={})=>{let f=[];if(Array.isArray(d))for(let y of d){let p=g.create(y,c);Array.isArray(p)?f.push(...p):f.push(p)}else f=[].concat(g.create(d,c));return c&&c.expand===!0&&c.nodupes===!0&&(f=[...new Set(f)]),f};g.parse=(d,c={})=>m(d,c),g.stringify=(d,c={})=>s(typeof d=="string"?g.parse(d,c):d,c),g.compile=(d,c={})=>(typeof d=="string"&&(d=g.parse(d,c)),u(d,c)),g.expand=(d,c={})=>{typeof d=="string"&&(d=g.parse(d,c));let f=h(d,c);return c.noempty===!0&&(f=f.filter(Boolean)),c.nodupes===!0&&(f=[...new Set(f)]),f},g.create=(d,c={})=>d===""||d.length<3?[d]:c.expand!==!0?g.compile(d,c):g.expand(d,c),a.exports=g},179:(a,o,i)=>{const s=i(783),u=i(617),h=(m,g={})=>{let d=(c,f={})=>{let y=u.isInvalidBrace(f),p=c.invalid===!0&&g.escapeInvalid===!0,_=y===!0||p===!0,E=g.escapeInvalid===!0?"\\":"",l="";if(c.isOpen===!0||c.isClose===!0)return E+c.value;if(c.type==="open")return _?E+c.value:"(";if(c.type==="close")return _?E+c.value:")";if(c.type==="comma")return c.prev.type==="comma"?"":_?c.value:"|";if(c.value)return c.value;if(c.nodes&&c.ranges>0){let b=u.reduce(c.nodes),w=s(...b,{...g,wrap:!1,toRegex:!0});if(w.length!==0)return b.length>1&&w.length>1?`(${w})`:w}if(c.nodes)for(let b of c.nodes)l+=d(b,c);return l};return d(m)};a.exports=h},457:a=>{a.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:(a,o,i)=>{const s=i(783),u=i(137),h=i(617),m=(d="",c="",f=!1)=>{let y=[];if(d=[].concat(d),c=[].concat(c),!c.length)return d;if(!d.length)return f?h.flatten(c).map(p=>`{${p}}`):c;for(let p of d)if(Array.isArray(p))for(let _ of p)y.push(m(_,c,f));else for(let _ of c)f===!0&&typeof _=="string"&&(_=`{${_}}`),y.push(Array.isArray(_)?m(p,_,f):p+_);return h.flatten(y)},g=(d,c={})=>{let f=c.rangeLimit===void 0?1e3:c.rangeLimit,y=(p,_={})=>{p.queue=[];let E=_,l=_.queue;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,l=E.queue;if(p.invalid||p.dollar){l.push(m(l.pop(),u(p,c)));return}if(p.type==="brace"&&p.invalid!==!0&&p.nodes.length===2){l.push(m(l.pop(),["{}"]));return}if(p.nodes&&p.ranges>0){let v=h.reduce(p.nodes);if(h.exceedsLimit(...v,c.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=s(...v,c);S.length===0&&(S=u(p,c)),l.push(m(l.pop(),S)),p.nodes=[];return}let b=h.encloseBrace(p),w=p.queue,T=p;for(;T.type!=="brace"&&T.type!=="root"&&T.parent;)T=T.parent,w=T.queue;for(let v=0;v<p.nodes.length;v++){let S=p.nodes[v];if(S.type==="comma"&&p.type==="brace"){v===1&&w.push(""),w.push("");continue}if(S.type==="close"){l.push(m(l.pop(),w,b));continue}if(S.value&&S.type!=="open"){w.push(m(w.pop(),S.value));continue}S.nodes&&y(S,p)}return w};return h.flatten(y(d))};a.exports=g},719:(a,o,i)=>{const s=i(137),{MAX_LENGTH:u,CHAR_BACKSLASH:h,CHAR_BACKTICK:m,CHAR_COMMA:g,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:_,CHAR_RIGHT_SQUARE_BRACKET:E,CHAR_DOUBLE_QUOTE:l,CHAR_SINGLE_QUOTE:b,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:T}=i(457),v=(S,M={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let R=M||{},N=typeof R.maxLength=="number"?Math.min(u,R.maxLength):u;if(S.length>N)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${N})`);let L={type:"root",input:S,nodes:[]},D=[L],j=L,B=L,F=0,re=S.length,Y=0,W=0,$;const ne=()=>S[Y++],A=O=>{if(O.type==="text"&&B.type==="dot"&&(B.type="text"),B&&B.type==="text"&&O.type==="text"){B.value+=O.value;return}return j.nodes.push(O),O.parent=j,O.prev=B,B=O,O};for(A({type:"bos"});Y<re;)if(j=D[D.length-1],$=ne(),!($===T||$===w)){if($===h){A({type:"text",value:(M.keepEscaping?$:"")+ne()});continue}if($===E){A({type:"text",value:"\\"+$});continue}if($===_){F++;let O;for(;Y<re&&(O=ne());){if($+=O,O===_){F++;continue}if(O===h){$+=ne();continue}if(O===E&&(F--,F===0))break}A({type:"text",value:$});continue}if($===c){j=A({type:"paren",nodes:[]}),D.push(j),A({type:"text",value:$});continue}if($===f){if(j.type!=="paren"){A({type:"text",value:$});continue}j=D.pop(),A({type:"text",value:$}),j=D[D.length-1];continue}if($===l||$===b||$===m){let O=$,x;for(M.keepQuotes!==!0&&($="");Y<re&&(x=ne());){if(x===h){$+=x+ne();continue}if(x===O){M.keepQuotes===!0&&($+=x);break}$+=x}A({type:"text",value:$});continue}if($===y){W++;let x={type:"brace",open:!0,close:!1,dollar:B.value&&B.value.slice(-1)==="$"||j.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};j=A(x),D.push(j),A({type:"open",value:$});continue}if($===p){if(j.type!=="brace"){A({type:"text",value:$});continue}let O="close";j=D.pop(),j.close=!0,A({type:O,value:$}),W--,j=D[D.length-1];continue}if($===g&&W>0){if(j.ranges>0){j.ranges=0;let O=j.nodes.shift();j.nodes=[O,{type:"text",value:s(j)}]}A({type:"comma",value:$}),j.commas++;continue}if($===d&&W>0&&j.commas===0){let O=j.nodes;if(W===0||O.length===0){A({type:"text",value:$});continue}if(B.type==="dot"){if(j.range=[],B.value+=$,B.type="range",j.nodes.length!==3&&j.nodes.length!==5){j.invalid=!0,j.ranges=0,B.type="text";continue}j.ranges++,j.args=[];continue}if(B.type==="range"){O.pop();let x=O[O.length-1];x.value+=B.value+$,B=x,j.ranges--;continue}A({type:"dot",value:$});continue}A({type:"text",value:$})}do if(j=D.pop(),j.type!=="root"){j.nodes.forEach(U=>{U.nodes||(U.type==="open"&&(U.isOpen=!0),U.type==="close"&&(U.isClose=!0),U.nodes||(U.type="text"),U.invalid=!0)});let O=D[D.length-1],x=O.nodes.indexOf(j);O.nodes.splice(x,1,...j.nodes)}while(D.length>0);return A({type:"eos"}),L};a.exports=v},137:(a,o,i)=>{const s=i(617);a.exports=(u,h={})=>{let m=(g,d={})=>{let c=h.escapeInvalid&&s.isInvalidBrace(d),f=g.invalid===!0&&h.escapeInvalid===!0,y="";if(g.value)return(c||f)&&s.isOpenOrClose(g)?"\\"+g.value:g.value;if(g.value)return g.value;if(g.nodes)for(let p of g.nodes)y+=m(p);return y};return m(u)}},617:(a,o)=>{o.isInteger=i=>typeof i=="number"?Number.isInteger(i):typeof i=="string"&&i.trim()!==""?Number.isInteger(Number(i)):!1,o.find=(i,s)=>i.nodes.find(u=>u.type===s),o.exceedsLimit=(i,s,u=1,h)=>h===!1||!o.isInteger(i)||!o.isInteger(s)?!1:(Number(s)-Number(i))/Number(u)>=h,o.escapeNode=(i,s=0,u)=>{let h=i.nodes[s];h&&(u&&h.type===u||h.type==="open"||h.type==="close")&&h.escaped!==!0&&(h.value="\\"+h.value,h.escaped=!0)},o.encloseBrace=i=>i.type!=="brace"||i.commas>>0+i.ranges>>0?!1:(i.invalid=!0,!0),o.isInvalidBrace=i=>i.type!=="brace"?!1:i.invalid===!0||i.dollar?!0:!(i.commas>>0+i.ranges>>0)||i.open!==!0||i.close!==!0?(i.invalid=!0,!0):!1,o.isOpenOrClose=i=>i.type==="open"||i.type==="close"?!0:i.open===!0||i.close===!0,o.reduce=i=>i.reduce((s,u)=>(u.type==="text"&&s.push(u.value),u.type==="range"&&(u.type="text"),s),[]),o.flatten=(...i)=>{const s=[],u=h=>{for(let m=0;m<h.length;m++){let g=h[m];Array.isArray(g)?u(g):g!==void 0&&s.push(g)}return s};return u(i),s}},783:(a,o,i)=>{/*!
26
+ * fill-range <https://github.com/jonschlinkert/fill-range>
27
+ *
28
+ * Copyright (c) 2014-present, Jon Schlinkert.
29
+ * Licensed under the MIT License.
30
+ */const s=i(837),u=i(492),h=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),m=R=>N=>R===!0?Number(N):String(N),g=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),c=R=>{let N=`${R}`,L=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++L]==="0";);return L>0},f=(R,N,L)=>typeof R=="string"||typeof N=="string"?!0:L.stringify===!0,y=(R,N,L)=>{if(N>0){let D=R[0]==="-"?"-":"";D&&(R=R.slice(1)),R=D+R.padStart(D?N-1:N,"0")}return L===!1?String(R):R},p=(R,N)=>{let L=R[0]==="-"?"-":"";for(L&&(R=R.slice(1),N--);R.length<N;)R="0"+R;return L?"-"+R:R},_=(R,N)=>{R.negatives.sort((F,re)=>F<re?-1:F>re?1:0),R.positives.sort((F,re)=>F<re?-1:F>re?1:0);let L=N.capture?"":"?:",D="",j="",B;return R.positives.length&&(D=R.positives.join("|")),R.negatives.length&&(j=`-(${L}${R.negatives.join("|")})`),D&&j?B=`${D}|${j}`:B=D||j,N.wrap?`(${L}${B})`:B},E=(R,N,L,D)=>{if(L)return u(R,N,{wrap:!1,...D});let j=String.fromCharCode(R);if(R===N)return j;let B=String.fromCharCode(N);return`[${j}-${B}]`},l=(R,N,L)=>{if(Array.isArray(R)){let D=L.wrap===!0,j=L.capture?"":"?:";return D?`(${j}${R.join("|")})`:R.join("|")}return u(R,N,L)},b=(...R)=>new RangeError("Invalid range arguments: "+s.inspect(...R)),w=(R,N,L)=>{if(L.strictRanges===!0)throw b([R,N]);return[]},T=(R,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},v=(R,N,L=1,D={})=>{let j=Number(R),B=Number(N);if(!Number.isInteger(j)||!Number.isInteger(B)){if(D.strictRanges===!0)throw b([R,N]);return[]}j===0&&(j=0),B===0&&(B=0);let F=j>B,re=String(R),Y=String(N),W=String(L);L=Math.max(Math.abs(L),1);let $=c(re)||c(Y)||c(W),ne=$?Math.max(re.length,Y.length,W.length):0,A=$===!1&&f(R,N,D)===!1,O=D.transform||m(A);if(D.toRegex&&L===1)return E(p(R,ne),p(N,ne),!0,D);let x={negatives:[],positives:[]},U=C=>x[C<0?"negatives":"positives"].push(Math.abs(C)),Z=[],K=0;for(;F?j>=B:j<=B;)D.toRegex===!0&&L>1?U(j):Z.push(y(O(j,K),ne,A)),j=F?j-L:j+L,K++;return D.toRegex===!0?L>1?_(x,D):l(Z,null,{wrap:!1,...D}):Z},S=(R,N,L=1,D={})=>{if(!d(R)&&R.length>1||!d(N)&&N.length>1)return w(R,N,D);let j=D.transform||(A=>String.fromCharCode(A)),B=`${R}`.charCodeAt(0),F=`${N}`.charCodeAt(0),re=B>F,Y=Math.min(B,F),W=Math.max(B,F);if(D.toRegex&&L===1)return E(Y,W,!1,D);let $=[],ne=0;for(;re?B>=F:B<=F;)$.push(j(B,ne)),B=re?B-L:B+L,ne++;return D.toRegex===!0?l($,null,{wrap:!1,options:D}):$},M=(R,N,L,D={})=>{if(N==null&&g(R))return[R];if(!g(R)||!g(N))return w(R,N,D);if(typeof L=="function")return M(R,N,1,{transform:L});if(h(L))return M(R,N,0,L);let j={...D};return j.capture===!0&&(j.wrap=!0),L=L||j.step||1,d(L)?d(R)&&d(N)?v(R,N,L,j):S(R,N,Math.max(Math.abs(L),1),j):L!=null&&!h(L)?T(L,j):M(R,N,1,L)};a.exports=M},357:a=>{/*!
31
+ * is-number <https://github.com/jonschlinkert/is-number>
32
+ *
33
+ * Copyright (c) 2014-present, Jon Schlinkert.
34
+ * Released under the MIT License.
35
+ */a.exports=function(o){return typeof o=="number"?o-o===0:typeof o=="string"&&o.trim()!==""?Number.isFinite?Number.isFinite(+o):isFinite(+o):!1}},971:(a,o,i)=>{const s=i(837),u=i(333),h=i(251),m=i(513),g=c=>c===""||c==="./",d=(c,f,y)=>{f=[].concat(f),c=[].concat(c);let p=new Set,_=new Set,E=new Set,l=0,b=v=>{E.add(v.output),y&&y.onResult&&y.onResult(v)};for(let v=0;v<f.length;v++){let S=h(String(f[v]),{...y,onResult:b},!0),M=S.state.negated||S.state.negatedExtglob;M&&l++;for(let R of c){let N=S(R,!0);(M?!N.isMatch:N.isMatch)&&(M?p.add(N.output):(p.delete(N.output),_.add(N.output)))}}let T=(l===f.length?[...E]:[..._]).filter(v=>!p.has(v));if(y&&T.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?f.map(v=>v.replace(/\\/g,"")):f}return T};d.match=d,d.matcher=(c,f)=>h(c,f),d.isMatch=(c,f,y)=>h(f,y)(c),d.any=d.isMatch,d.not=(c,f,y={})=>{f=[].concat(f).map(String);let p=new Set,_=[],l=d(c,f,{...y,onResult:b=>{y.onResult&&y.onResult(b),_.push(b.output)}});for(let b of _)l.includes(b)||p.add(b);return[...p]},d.contains=(c,f,y)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${s.inspect(c)}"`);if(Array.isArray(f))return f.some(p=>d.contains(c,p,y));if(typeof f=="string"){if(g(c)||g(f))return!1;if(c.includes(f)||c.startsWith("./")&&c.slice(2).includes(f))return!0}return d.isMatch(c,f,{...y,contains:!0})},d.matchKeys=(c,f,y)=>{if(!m.isObject(c))throw new TypeError("Expected the first argument to be an object");let p=d(Object.keys(c),f,y),_={};for(let E of p)_[E]=c[E];return _},d.some=(c,f,y)=>{let p=[].concat(c);for(let _ of[].concat(f)){let E=h(String(_),y);if(p.some(l=>E(l)))return!0}return!1},d.every=(c,f,y)=>{let p=[].concat(c);for(let _ of[].concat(f)){let E=h(String(_),y);if(!p.every(l=>E(l)))return!1}return!0},d.all=(c,f,y)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${s.inspect(c)}"`);return[].concat(f).every(p=>h(p,y)(c))},d.capture=(c,f,y)=>{let p=m.isWindows(y),E=h.makeRe(String(c),{...y,capture:!0}).exec(p?m.toPosixSlashes(f):f);if(E)return E.slice(1).map(l=>l===void 0?"":l)},d.makeRe=(...c)=>h.makeRe(...c),d.scan=(...c)=>h.scan(...c),d.parse=(c,f)=>{let y=[];for(let p of[].concat(c||[]))for(let _ of u(String(p),f))y.push(h.parse(_,f));return y},d.braces=(c,f)=>{if(typeof c!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(c)?[c]:u(c,f)},d.braceExpand=(c,f)=>{if(typeof c!="string")throw new TypeError("Expected a string");return d.braces(c,{...f,expand:!0})},a.exports=d},251:(a,o,i)=>{a.exports=i(683)},356:(a,o,i)=>{const s=i(17),u="\\\\/",h=`[^${u}]`,m="\\.",g="\\+",d="\\?",c="\\/",f="(?=.)",y="[^/]",p=`(?:${c}|$)`,_=`(?:^|${c})`,E=`${m}{1,2}${p}`,l=`(?!${m})`,b=`(?!${_}${E})`,w=`(?!${m}{0,1}${p})`,T=`(?!${E})`,v=`[^.${c}]`,S=`${y}*?`,M={DOT_LITERAL:m,PLUS_LITERAL:g,QMARK_LITERAL:d,SLASH_LITERAL:c,ONE_CHAR:f,QMARK:y,END_ANCHOR:p,DOTS_SLASH:E,NO_DOT:l,NO_DOTS:b,NO_DOT_SLASH:w,NO_DOTS_SLASH:T,QMARK_NO_DOT:v,STAR:S,START_ANCHOR:_},R={...M,SLASH_LITERAL:`[${u}]`,QMARK:h,STAR:`${h}*?`,DOTS_SLASH:`${m}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${m})`,NO_DOTS:`(?!(?:^|[${u}])${m}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${m}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${m}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};a.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(L){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${L.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(L){return L===!0?R:M}}},754:(a,o,i)=>{const s=i(356),u=i(513),{MAX_LENGTH:h,POSIX_REGEX_SOURCE:m,REGEX_NON_SPECIAL_CHARS:g,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:c}=s,f=(_,E)=>{if(typeof E.expandRange=="function")return E.expandRange(..._,E);_.sort();const l=`[${_.join("-")}]`;try{new RegExp(l)}catch{return _.map(w=>u.escapeRegex(w)).join("..")}return l},y=(_,E)=>`Missing ${_}: "${E}" - use "\\\\${E}" to match literal characters`,p=(_,E)=>{if(typeof _!="string")throw new TypeError("Expected a string");_=c[_]||_;const l={...E},b=typeof l.maxLength=="number"?Math.min(h,l.maxLength):h;let w=_.length;if(w>b)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${b}`);const T={type:"bos",value:"",output:l.prepend||""},v=[T],S=l.capture?"":"?:",M=u.isWindows(E),R=s.globChars(M),N=s.extglobChars(R),{DOT_LITERAL:L,PLUS_LITERAL:D,SLASH_LITERAL:j,ONE_CHAR:B,DOTS_SLASH:F,NO_DOT:re,NO_DOT_SLASH:Y,NO_DOTS_SLASH:W,QMARK:$,QMARK_NO_DOT:ne,STAR:A,START_ANCHOR:O}=R,x=z=>`(${S}(?:(?!${O}${z.dot?F:L}).)*?)`,U=l.dot?"":re,Z=l.dot?$:ne;let K=l.bash===!0?x(l):A;l.capture&&(K=`(${K})`),typeof l.noext=="boolean"&&(l.noextglob=l.noext);const C={input:_,index:-1,start:0,dot:l.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};_=u.removePrefix(_,C),w=_.length;const Q=[],G=[],X=[];let I=T,P;const J=()=>C.index===w-1,oe=C.peek=(z=1)=>_[C.index+z],ae=C.advance=()=>_[++C.index],ue=()=>_.slice(C.index+1),ie=(z="",ee=0)=>{C.consumed+=z,C.index+=ee},q=z=>{C.output+=z.output!=null?z.output:z.value,ie(z.value)},de=()=>{let z=1;for(;oe()==="!"&&(oe(2)!=="("||oe(3)==="?");)ae(),C.start++,z++;return z%2===0?!1:(C.negated=!0,C.start++,!0)},te=z=>{C[z]++,X.push(z)},pe=z=>{C[z]--,X.pop()},k=z=>{if(I.type==="globstar"){const ee=C.braces>0&&(z.type==="comma"||z.type==="brace"),H=z.extglob===!0||Q.length&&(z.type==="pipe"||z.type==="paren");z.type!=="slash"&&z.type!=="paren"&&!ee&&!H&&(C.output=C.output.slice(0,-I.output.length),I.type="star",I.value="*",I.output=K,C.output+=I.output)}if(Q.length&&z.type!=="paren"&&!N[z.value]&&(Q[Q.length-1].inner+=z.value),(z.value||z.output)&&q(z),I&&I.type==="text"&&z.type==="text"){I.value+=z.value,I.output=(I.output||"")+z.value;return}z.prev=I,v.push(z),I=z},ce=(z,ee)=>{const H={...N[ee],conditions:1,inner:""};H.prev=I,H.parens=C.parens,H.output=C.output;const le=(l.capture?"(":"")+H.open;te("parens"),k({type:z,value:ee,output:C.output?"":B}),k({type:"paren",extglob:!0,value:ae(),output:le}),Q.push(H)},_e=z=>{let ee=z.close+(l.capture?")":"");if(z.type==="negate"){let H=K;z.inner&&z.inner.length>1&&z.inner.includes("/")&&(H=x(l)),(H!==K||J()||/^\)+$/.test(ue()))&&(ee=z.close=`)$))${H}`),z.prev.type==="bos"&&(C.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:P,output:ee}),pe("parens")};if(l.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let z=!1,ee=_.replace(d,(H,le,ye,ve,me,rt)=>ve==="\\"?(z=!0,H):ve==="?"?le?le+ve+(me?$.repeat(me.length):""):rt===0?Z+(me?$.repeat(me.length):""):$.repeat(ye.length):ve==="."?L.repeat(ye.length):ve==="*"?le?le+ve+(me?K:""):K:le?H:`\\${H}`);return z===!0&&(l.unescape===!0?ee=ee.replace(/\\/g,""):ee=ee.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),ee===_&&l.contains===!0?(C.output=_,C):(C.output=u.wrapOutput(ee,C,E),C)}for(;!J();){if(P=ae(),P==="\0")continue;if(P==="\\"){const H=oe();if(H==="/"&&l.bash!==!0||H==="."||H===";")continue;if(!H){P+="\\",k({type:"text",value:P});continue}const le=/^\\+/.exec(ue());let ye=0;if(le&&le[0].length>2&&(ye=le[0].length,C.index+=ye,ye%2!==0&&(P+="\\")),l.unescape===!0?P=ae()||"":P+=ae()||"",C.brackets===0){k({type:"text",value:P});continue}}if(C.brackets>0&&(P!=="]"||I.value==="["||I.value==="[^")){if(l.posix!==!1&&P===":"){const H=I.value.slice(1);if(H.includes("[")&&(I.posix=!0,H.includes(":"))){const le=I.value.lastIndexOf("["),ye=I.value.slice(0,le),ve=I.value.slice(le+2),me=m[ve];if(me){I.value=ye+me,C.backtrack=!0,ae(),!T.output&&v.indexOf(I)===1&&(T.output=B);continue}}}(P==="["&&oe()!==":"||P==="-"&&oe()==="]")&&(P=`\\${P}`),P==="]"&&(I.value==="["||I.value==="[^")&&(P=`\\${P}`),l.posix===!0&&P==="!"&&I.value==="["&&(P="^"),I.value+=P,q({value:P});continue}if(C.quotes===1&&P!=='"'){P=u.escapeRegex(P),I.value+=P,q({value:P});continue}if(P==='"'){C.quotes=C.quotes===1?0:1,l.keepQuotes===!0&&k({type:"text",value:P});continue}if(P==="("){te("parens"),k({type:"paren",value:P});continue}if(P===")"){if(C.parens===0&&l.strictBrackets===!0)throw new SyntaxError(y("opening","("));const H=Q[Q.length-1];if(H&&C.parens===H.parens+1){_e(Q.pop());continue}k({type:"paren",value:P,output:C.parens?")":"\\)"}),pe("parens");continue}if(P==="["){if(l.nobracket===!0||!ue().includes("]")){if(l.nobracket!==!0&&l.strictBrackets===!0)throw new SyntaxError(y("closing","]"));P=`\\${P}`}else te("brackets");k({type:"bracket",value:P});continue}if(P==="]"){if(l.nobracket===!0||I&&I.type==="bracket"&&I.value.length===1){k({type:"text",value:P,output:`\\${P}`});continue}if(C.brackets===0){if(l.strictBrackets===!0)throw new SyntaxError(y("opening","["));k({type:"text",value:P,output:`\\${P}`});continue}pe("brackets");const H=I.value.slice(1);if(I.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(P=`/${P}`),I.value+=P,q({value:P}),l.literalBrackets===!1||u.hasRegexChars(H))continue;const le=u.escapeRegex(I.value);if(C.output=C.output.slice(0,-I.value.length),l.literalBrackets===!0){C.output+=le,I.value=le;continue}I.value=`(${S}${le}|${I.value})`,C.output+=I.value;continue}if(P==="{"&&l.nobrace!==!0){te("braces");const H={type:"brace",value:P,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};G.push(H),k(H);continue}if(P==="}"){const H=G[G.length-1];if(l.nobrace===!0||!H){k({type:"text",value:P,output:P});continue}let le=")";if(H.dots===!0){const ye=v.slice(),ve=[];for(let me=ye.length-1;me>=0&&(v.pop(),ye[me].type!=="brace");me--)ye[me].type!=="dots"&&ve.unshift(ye[me].value);le=f(ve,l),C.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){const ye=C.output.slice(0,H.outputIndex),ve=C.tokens.slice(H.tokensIndex);H.value=H.output="\\{",P=le="\\}",C.output=ye;for(const me of ve)C.output+=me.output||me.value}k({type:"brace",value:P,output:le}),pe("braces"),G.pop();continue}if(P==="|"){Q.length>0&&Q[Q.length-1].conditions++,k({type:"text",value:P});continue}if(P===","){let H=P;const le=G[G.length-1];le&&X[X.length-1]==="braces"&&(le.comma=!0,H="|"),k({type:"comma",value:P,output:H});continue}if(P==="/"){if(I.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",v.pop(),I=T;continue}k({type:"slash",value:P,output:j});continue}if(P==="."){if(C.braces>0&&I.type==="dot"){I.value==="."&&(I.output=L);const H=G[G.length-1];I.type="dots",I.output+=P,I.value+=P,H.dots=!0;continue}if(C.braces+C.parens===0&&I.type!=="bos"&&I.type!=="slash"){k({type:"text",value:P,output:L});continue}k({type:"dot",value:P,output:L});continue}if(P==="?"){if(!(I&&I.value==="(")&&l.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){ce("qmark",P);continue}if(I&&I.type==="paren"){const le=oe();let ye=P;if(le==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(I.value==="("&&!/[!=<:]/.test(le)||le==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${P}`),k({type:"text",value:P,output:ye});continue}if(l.dot!==!0&&(I.type==="slash"||I.type==="bos")){k({type:"qmark",value:P,output:ne});continue}k({type:"qmark",value:P,output:$});continue}if(P==="!"){if(l.noextglob!==!0&&oe()==="("&&(oe(2)!=="?"||!/[!=<:]/.test(oe(3)))){ce("negate",P);continue}if(l.nonegate!==!0&&C.index===0){de();continue}}if(P==="+"){if(l.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){ce("plus",P);continue}if(I&&I.value==="("||l.regex===!1){k({type:"plus",value:P,output:D});continue}if(I&&(I.type==="bracket"||I.type==="paren"||I.type==="brace")||C.parens>0){k({type:"plus",value:P});continue}k({type:"plus",value:D});continue}if(P==="@"){if(l.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){k({type:"at",extglob:!0,value:P,output:""});continue}k({type:"text",value:P});continue}if(P!=="*"){(P==="$"||P==="^")&&(P=`\\${P}`);const H=g.exec(ue());H&&(P+=H[0],C.index+=H[0].length),k({type:"text",value:P});continue}if(I&&(I.type==="globstar"||I.star===!0)){I.type="star",I.star=!0,I.value+=P,I.output=K,C.backtrack=!0,C.globstar=!0,ie(P);continue}let z=ue();if(l.noextglob!==!0&&/^\([^?]/.test(z)){ce("star",P);continue}if(I.type==="star"){if(l.noglobstar===!0){ie(P);continue}const H=I.prev,le=H.prev,ye=H.type==="slash"||H.type==="bos",ve=le&&(le.type==="star"||le.type==="globstar");if(l.bash===!0&&(!ye||z[0]&&z[0]!=="/")){k({type:"star",value:P,output:""});continue}const me=C.braces>0&&(H.type==="comma"||H.type==="brace"),rt=Q.length&&(H.type==="pipe"||H.type==="paren");if(!ye&&H.type!=="paren"&&!me&&!rt){k({type:"star",value:P,output:""});continue}for(;z.slice(0,3)==="/**";){const je=_[C.index+4];if(je&&je!=="/")break;z=z.slice(3),ie("/**",3)}if(H.type==="bos"&&J()){I.type="globstar",I.value+=P,I.output=x(l),C.output=I.output,C.globstar=!0,ie(P);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!ve&&J()){C.output=C.output.slice(0,-(H.output+I.output).length),H.output=`(?:${H.output}`,I.type="globstar",I.output=x(l)+(l.strictSlashes?")":"|$)"),I.value+=P,C.globstar=!0,C.output+=H.output+I.output,ie(P);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&z[0]==="/"){const je=z[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(H.output+I.output).length),H.output=`(?:${H.output}`,I.type="globstar",I.output=`${x(l)}${j}|${j}${je})`,I.value+=P,C.output+=H.output+I.output,C.globstar=!0,ie(P+ae()),k({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&z[0]==="/"){I.type="globstar",I.value+=P,I.output=`(?:^|${j}|${x(l)}${j})`,C.output=I.output,C.globstar=!0,ie(P+ae()),k({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-I.output.length),I.type="globstar",I.output=x(l),I.value+=P,C.output+=I.output,C.globstar=!0,ie(P);continue}const ee={type:"star",value:P,output:K};if(l.bash===!0){ee.output=".*?",(I.type==="bos"||I.type==="slash")&&(ee.output=U+ee.output),k(ee);continue}if(I&&(I.type==="bracket"||I.type==="paren")&&l.regex===!0){ee.output=P,k(ee);continue}(C.index===C.start||I.type==="slash"||I.type==="dot")&&(I.type==="dot"?(C.output+=Y,I.output+=Y):l.dot===!0?(C.output+=W,I.output+=W):(C.output+=U,I.output+=U),oe()!=="*"&&(C.output+=B,I.output+=B)),k(ee)}for(;C.brackets>0;){if(l.strictBrackets===!0)throw new SyntaxError(y("closing","]"));C.output=u.escapeLast(C.output,"["),pe("brackets")}for(;C.parens>0;){if(l.strictBrackets===!0)throw new SyntaxError(y("closing",")"));C.output=u.escapeLast(C.output,"("),pe("parens")}for(;C.braces>0;){if(l.strictBrackets===!0)throw new SyntaxError(y("closing","}"));C.output=u.escapeLast(C.output,"{"),pe("braces")}if(l.strictSlashes!==!0&&(I.type==="star"||I.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${j}?`}),C.backtrack===!0){C.output="";for(const z of C.tokens)C.output+=z.output!=null?z.output:z.value,z.suffix&&(C.output+=z.suffix)}return C};p.fastpaths=(_,E)=>{const l={...E},b=typeof l.maxLength=="number"?Math.min(h,l.maxLength):h,w=_.length;if(w>b)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${b}`);_=c[_]||_;const T=u.isWindows(E),{DOT_LITERAL:v,SLASH_LITERAL:S,ONE_CHAR:M,DOTS_SLASH:R,NO_DOT:N,NO_DOTS:L,NO_DOTS_SLASH:D,STAR:j,START_ANCHOR:B}=s.globChars(T),F=l.dot?L:N,re=l.dot?D:N,Y=l.capture?"":"?:",W={negated:!1,prefix:""};let $=l.bash===!0?".*?":j;l.capture&&($=`(${$})`);const ne=U=>U.noglobstar===!0?$:`(${Y}(?:(?!${B}${U.dot?R:v}).)*?)`,A=U=>{switch(U){case"*":return`${F}${M}${$}`;case".*":return`${v}${M}${$}`;case"*.*":return`${F}${$}${v}${M}${$}`;case"*/*":return`${F}${$}${S}${M}${re}${$}`;case"**":return F+ne(l);case"**/*":return`(?:${F}${ne(l)}${S})?${re}${M}${$}`;case"**/*.*":return`(?:${F}${ne(l)}${S})?${re}${$}${v}${M}${$}`;case"**/.*":return`(?:${F}${ne(l)}${S})?${v}${M}${$}`;default:{const Z=/^(.*?)\.(\w+)$/.exec(U);if(!Z)return;const K=A(Z[1]);return K?K+v+Z[2]:void 0}}},O=u.removePrefix(_,W);let x=A(O);return x&&l.strictSlashes!==!0&&(x+=`${S}?`),x},a.exports=p},683:(a,o,i)=>{const s=i(17),u=i(700),h=i(754),m=i(513),g=i(356),d=f=>f&&typeof f=="object"&&!Array.isArray(f),c=(f,y,p=!1)=>{if(Array.isArray(f)){const S=f.map(R=>c(R,y,p));return R=>{for(const N of S){const L=N(R);if(L)return L}return!1}}const _=d(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!_)throw new TypeError("Expected pattern to be a non-empty string");const E=y||{},l=m.isWindows(y),b=_?c.compileRe(f,y):c.makeRe(f,y,!1,!0),w=b.state;delete b.state;let T=()=>!1;if(E.ignore){const S={...y,ignore:null,onMatch:null,onResult:null};T=c(E.ignore,S,p)}const v=(S,M=!1)=>{const{isMatch:R,match:N,output:L}=c.test(S,b,y,{glob:f,posix:l}),D={glob:f,state:w,regex:b,posix:l,input:S,output:L,match:N,isMatch:R};return typeof E.onResult=="function"&&E.onResult(D),R===!1?(D.isMatch=!1,M?D:!1):T(S)?(typeof E.onIgnore=="function"&&E.onIgnore(D),D.isMatch=!1,M?D:!1):(typeof E.onMatch=="function"&&E.onMatch(D),M?D:!0)};return p&&(v.state=w),v};c.test=(f,y,p,{glob:_,posix:E}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};const l=p||{},b=l.format||(E?m.toPosixSlashes:null);let w=f===_,T=w&&b?b(f):f;return w===!1&&(T=b?b(f):f,w=T===_),(w===!1||l.capture===!0)&&(l.matchBase===!0||l.basename===!0?w=c.matchBase(f,y,p,E):w=y.exec(T)),{isMatch:!!w,match:w,output:T}},c.matchBase=(f,y,p,_=m.isWindows(p))=>(y instanceof RegExp?y:c.makeRe(y,p)).test(s.basename(f)),c.isMatch=(f,y,p)=>c(y,p)(f),c.parse=(f,y)=>Array.isArray(f)?f.map(p=>c.parse(p,y)):h(f,{...y,fastpaths:!1}),c.scan=(f,y)=>u(f,y),c.compileRe=(f,y,p=!1,_=!1)=>{if(p===!0)return f.output;const E=y||{},l=E.contains?"":"^",b=E.contains?"":"$";let w=`${l}(?:${f.output})${b}`;f&&f.negated===!0&&(w=`^(?!${w}).*$`);const T=c.toRegex(w,y);return _===!0&&(T.state=f),T},c.makeRe=(f,y,p=!1,_=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");const E=y||{};let l={negated:!1,fastpaths:!0},b="",w;return f.startsWith("./")&&(f=f.slice(2),b=l.prefix="./"),E.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(w=h.fastpaths(f,y)),w===void 0?(l=h(f,y),l.prefix=b+(l.prefix||"")):l.output=w,c.compileRe(l,y,p,_)},c.toRegex=(f,y)=>{try{const p=y||{};return new RegExp(f,p.flags||(p.nocase?"i":""))}catch(p){if(y&&y.debug===!0)throw p;return/$^/}},c.constants=g,a.exports=c},700:(a,o,i)=>{const s=i(513),{CHAR_ASTERISK:u,CHAR_AT:h,CHAR_BACKWARD_SLASH:m,CHAR_COMMA:g,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:_,CHAR_PLUS:E,CHAR_QUESTION_MARK:l,CHAR_RIGHT_CURLY_BRACE:b,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:T}=i(356),v=R=>R===f||R===m,S=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},M=(R,N)=>{const L=N||{},D=R.length-1,j=L.parts===!0||L.scanToEnd===!0,B=[],F=[],re=[];let Y=R,W=-1,$=0,ne=0,A=!1,O=!1,x=!1,U=!1,Z=!1,K=!1,C=!1,Q=!1,G=!1,X=0,I,P,J={value:"",depth:0,isGlob:!1};const oe=()=>W>=D,ae=()=>Y.charCodeAt(W+1),ue=()=>(I=P,Y.charCodeAt(++W));for(;W<D;){P=ue();let pe;if(P===m){C=J.backslashes=!0,P=ue(),P===y&&(K=!0);continue}if(K===!0||P===y){for(X++;oe()!==!0&&(P=ue());){if(P===m){C=J.backslashes=!0,ue();continue}if(P===y){X++;continue}if(K!==!0&&P===d&&(P=ue())===d){if(A=J.isBrace=!0,x=J.isGlob=!0,G=!0,j===!0)continue;break}if(K!==!0&&P===g){if(A=J.isBrace=!0,x=J.isGlob=!0,G=!0,j===!0)continue;break}if(P===b&&(X--,X===0)){K=!1,A=J.isBrace=!0,G=!0;break}}if(j===!0)continue;break}if(P===f){if(B.push(W),F.push(J),J={value:"",depth:0,isGlob:!1},G===!0)continue;if(I===d&&W===$+1){$+=2;continue}ne=W+1;continue}if(L.noext!==!0&&(P===E||P===h||P===u||P===l||P===c)===!0&&ae()===p){if(x=J.isGlob=!0,U=J.isExtglob=!0,G=!0,j===!0){for(;oe()!==!0&&(P=ue());){if(P===m){C=J.backslashes=!0,P=ue();continue}if(P===w){x=J.isGlob=!0,G=!0;break}}continue}break}if(P===u){if(I===u&&(Z=J.isGlobstar=!0),x=J.isGlob=!0,G=!0,j===!0)continue;break}if(P===l){if(x=J.isGlob=!0,G=!0,j===!0)continue;break}if(P===_){for(;oe()!==!0&&(pe=ue());){if(pe===m){C=J.backslashes=!0,ue();continue}if(pe===T){O=J.isBracket=!0,x=J.isGlob=!0,G=!0;break}}if(j===!0)continue;break}if(L.nonegate!==!0&&P===c&&W===$){Q=J.negated=!0,$++;continue}if(L.noparen!==!0&&P===p){if(x=J.isGlob=!0,j===!0){for(;oe()!==!0&&(P=ue());){if(P===p){C=J.backslashes=!0,P=ue();continue}if(P===w){G=!0;break}}continue}break}if(x===!0){if(G=!0,j===!0)continue;break}}L.noext===!0&&(U=!1,x=!1);let ie=Y,q="",de="";$>0&&(q=Y.slice(0,$),Y=Y.slice($),ne-=$),ie&&x===!0&&ne>0?(ie=Y.slice(0,ne),de=Y.slice(ne)):x===!0?(ie="",de=Y):ie=Y,ie&&ie!==""&&ie!=="/"&&ie!==Y&&v(ie.charCodeAt(ie.length-1))&&(ie=ie.slice(0,-1)),L.unescape===!0&&(de&&(de=s.removeBackslashes(de)),ie&&C===!0&&(ie=s.removeBackslashes(ie)));const te={prefix:q,input:R,start:$,base:ie,glob:de,isBrace:A,isBracket:O,isGlob:x,isExtglob:U,isGlobstar:Z,negated:Q};if(L.tokens===!0&&(te.maxDepth=0,v(P)||F.push(J),te.tokens=F),L.parts===!0||L.tokens===!0){let pe;for(let k=0;k<B.length;k++){const ce=pe?pe+1:$,_e=B[k],z=R.slice(ce,_e);L.tokens&&(k===0&&$!==0?(F[k].isPrefix=!0,F[k].value=q):F[k].value=z,S(F[k]),te.maxDepth+=F[k].depth),(k!==0||z!=="")&&re.push(z),pe=_e}if(pe&&pe+1<R.length){const k=R.slice(pe+1);re.push(k),L.tokens&&(F[F.length-1].value=k,S(F[F.length-1]),te.maxDepth+=F[F.length-1].depth)}te.slashes=B,te.parts=re}return te};a.exports=M},513:(a,o,i)=>{const s=i(17),u=process.platform==="win32",{REGEX_BACKSLASH:h,REGEX_REMOVE_BACKSLASH:m,REGEX_SPECIAL_CHARS:g,REGEX_SPECIAL_CHARS_GLOBAL:d}=i(356);o.isObject=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),o.hasRegexChars=c=>g.test(c),o.isRegexChar=c=>c.length===1&&o.hasRegexChars(c),o.escapeRegex=c=>c.replace(d,"\\$1"),o.toPosixSlashes=c=>c.replace(h,"/"),o.removeBackslashes=c=>c.replace(m,f=>f==="\\"?"":f),o.supportsLookbehinds=()=>{const c=process.version.slice(1).split(".").map(Number);return c.length===3&&c[0]>=9||c[0]===8&&c[1]>=10},o.isWindows=c=>c&&typeof c.windows=="boolean"?c.windows:u===!0||s.sep==="\\",o.escapeLast=(c,f,y)=>{const p=c.lastIndexOf(f,y);return p===-1?c:c[p-1]==="\\"?o.escapeLast(c,f,p-1):`${c.slice(0,p)}\\${c.slice(p)}`},o.removePrefix=(c,f={})=>{let y=c;return y.startsWith("./")&&(y=y.slice(2),f.prefix="./"),y},o.wrapOutput=(c,f={},y={})=>{const p=y.contains?"":"^",_=y.contains?"":"$";let E=`${p}(?:${c})${_}`;return f.negated===!0&&(E=`(?:^(?!${E}).*$)`),E}},492:(a,o,i)=>{/*!
36
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
37
+ *
38
+ * Copyright (c) 2015-present, Jon Schlinkert.
39
+ * Released under the MIT License.
40
+ */const s=i(357),u=(v,S,M)=>{if(s(v)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||v===S)return String(v);if(s(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...M};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let N=String(R.relaxZeros),L=String(R.shorthand),D=String(R.capture),j=String(R.wrap),B=v+":"+S+"="+N+L+D+j;if(u.cache.hasOwnProperty(B))return u.cache[B].result;let F=Math.min(v,S),re=Math.max(v,S);if(Math.abs(F-re)===1){let A=v+"|"+S;return R.capture?`(${A})`:R.wrap===!1?A:`(?:${A})`}let Y=w(v)||w(S),W={min:v,max:S,a:F,b:re},$=[],ne=[];if(Y&&(W.isPadded=Y,W.maxLen=String(W.max).length),F<0){let A=re<0?Math.abs(re):1;ne=d(A,Math.abs(F),W,R),F=W.a=0}return re>=0&&($=d(F,re,W,R)),W.negatives=ne,W.positives=$,W.result=h(ne,$),R.capture===!0?W.result=`(${W.result})`:R.wrap!==!1&&$.length+ne.length>1&&(W.result=`(?:${W.result})`),u.cache[B]=W,W.result};function h(v,S,M){let R=c(v,S,"-",!1)||[],N=c(S,v,"",!1)||[],L=c(v,S,"-?",!0)||[];return R.concat(L).concat(N).join("|")}function m(v,S){let M=1,R=1,N=_(v,M),L=new Set([S]);for(;v<=N&&N<=S;)L.add(N),M+=1,N=_(v,M);for(N=E(S+1,R)-1;v<N&&N<=S;)L.add(N),R+=1,N=E(S+1,R)-1;return L=[...L],L.sort(y),L}function g(v,S,M){if(v===S)return{pattern:v,count:[],digits:0};let R=f(v,S),N=R.length,L="",D=0;for(let j=0;j<N;j++){let[B,F]=R[j];B===F?L+=B:B!=="0"||F!=="9"?L+=b(B,F):D++}return D&&(L+=M.shorthand===!0?"\\d":"[0-9]"),{pattern:L,count:[D],digits:N}}function d(v,S,M,R){let N=m(v,S),L=[],D=v,j;for(let B=0;B<N.length;B++){let F=N[B],re=g(String(D),String(F),R),Y="";if(!M.isPadded&&j&&j.pattern===re.pattern){j.count.length>1&&j.count.pop(),j.count.push(re.count[0]),j.string=j.pattern+l(j.count),D=F+1;continue}M.isPadded&&(Y=T(F,M,R)),re.string=Y+re.pattern+l(re.count),L.push(re),D=F+1,j=re}return L}function c(v,S,M,R,N){let L=[];for(let D of v){let{string:j}=D;!R&&!p(S,"string",j)&&L.push(M+j),R&&p(S,"string",j)&&L.push(M+j)}return L}function f(v,S){let M=[];for(let R=0;R<v.length;R++)M.push([v[R],S[R]]);return M}function y(v,S){return v>S?1:S>v?-1:0}function p(v,S,M){return v.some(R=>R[S]===M)}function _(v,S){return Number(String(v).slice(0,-S)+"9".repeat(S))}function E(v,S){return v-v%Math.pow(10,S)}function l(v){let[S=0,M=""]=v;return M||S>1?`{${S+(M?","+M:"")}}`:""}function b(v,S,M){return`[${v}${S-v===1?"":"-"}${S}]`}function w(v){return/^-?(0+)\d/.test(v)}function T(v,S,M){if(!S.isPadded)return v;let R=Math.abs(S.maxLen-String(v).length),N=M.relaxZeros!==!1;switch(R){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${R}}`:`0{${R}}`}}u.cache={},u.clearCache=()=>u.cache={},a.exports=u},17:a=>{a.exports=Qs},837:a=>{a.exports=Tu()}},t={};function r(a){var o=t[a];if(o!==void 0)return o.exports;var i=t[a]={exports:{}},s=!0;try{e[a](i,i.exports,r),s=!1}finally{s&&delete t[a]}return i.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);qt.exports=n})()),qt.exports}var Xo;function ju(){return Xo||(Xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return a}});const r=Nu();function n(o,i){if(o.protocol!==void 0){const u=i.protocol.slice(0,-1);if(o.protocol!==u)return!1}if(o.port!==void 0&&o.port!==i.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(i.hostname))return!1;var s;return!!(0,r.makeRe)((s=o.pathname)!=null?s:"**").test(i.pathname)}function a(o,i,s){return o.some(u=>s.hostname===u)||i.some(u=>n(u,s))}}(Mt)),Mt}var Yo;function oa(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:a,src:o,width:i,quality:s}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(o||u.push("src"),i||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:o,width:i,quality:s}));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("/")&&(a.domains||a.remotePatterns)){let h;try{h=new URL(o)}catch(m){throw console.error(m),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:m}=ju();if(!m(a.domains,a.remotePatterns,h))throw new Error("Invalid src prop ("+o+') on `next/image`, hostname "'+h.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return a.path+"?url="+encodeURIComponent(o)+"&w="+i+"&q="+(s||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Lt)),Lt}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return E}});const r=Ae,a=Pe._(se),o=r._(la),i=r._(Ws()),s=Qr,u=Je,h=Vs(),m=Ie,g=Ui(),d=r._(oa()),c=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function f(l,b,w,T,v,S){const M=l==null?void 0:l.src;if(!l||l["data-loaded-src"]===M)return;l["data-loaded-src"]=M,("decode"in l?l.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!l.parentElement||!l.isConnected)){if(b!=="empty"&&v(!0),w!=null&&w.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:l});let L=!1,D=!1;w.current({...N,nativeEvent:N,currentTarget:l,target:l,isDefaultPrevented:()=>L,isPropagationStopped:()=>D,persist:()=>{},preventDefault:()=>{L=!0,N.preventDefault()},stopPropagation:()=>{D=!0,N.stopPropagation()}})}if(T!=null&&T.current&&T.current(l),process.env.NODE_ENV!=="production"){const N=new URL(M,"http://n").searchParams.get("url")||M;if(l.getAttribute("data-nimg")==="fill"){if(!S&&(!l.getAttribute("sizes")||l.getAttribute("sizes")==="100vw")&&l.getBoundingClientRect().width/window.innerWidth<.6&&(0,m.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),l.parentElement){const{position:j}=window.getComputedStyle(l.parentElement),B=["absolute","fixed","relative"];B.includes(j)||(0,m.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+j+'" should be one of '+B.map(String).join(",")+".")}l.height===0&&(0,m.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const L=l.height.toString()!==l.getAttribute("height"),D=l.width.toString()!==l.getAttribute("width");(L&&!D||!L&&D)&&(0,m.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(l){const[b,w]=a.version.split("."),T=parseInt(b,10),v=parseInt(w,10);return T>18||T===18&&v>=3?{fetchPriority:l}:{fetchpriority:l}}const p=(0,a.forwardRef)((l,b)=>{let{src:w,srcSet:T,sizes:v,height:S,width:M,decoding:R,className:N,style:L,fetchPriority:D,placeholder:j,loading:B,unoptimized:F,fill:re,onLoadRef:Y,onLoadingCompleteRef:W,setBlurComplete:$,setShowAltText:ne,onLoad:A,onError:O,...x}=l;return a.default.createElement("img",{...x,...y(D),loading:B,width:M,height:S,decoding:R,"data-nimg":re?"fill":"1",className:N,style:L,sizes:v,srcSet:T,src:w,ref:(0,a.useCallback)(U=>{b&&(typeof b=="function"?b(U):typeof b=="object"&&(b.current=U)),U&&(O&&(U.src=U.src),process.env.NODE_ENV!=="production"&&(w||console.error('Image is missing required "src" property:',U),U.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.')),U.complete&&f(U,j,Y,W,$,F))},[w,j,Y,W,$,O,F,b]),onLoad:U=>{const Z=U.currentTarget;f(Z,j,Y,W,$,F)},onError:U=>{ne(!0),j!=="empty"&&$(!0),O&&O(U)}})});function _(l){let{isAppRouter:b,imgAttributes:w}=l;const T={as:"image",imageSrcSet:w.srcSet,imageSizes:w.sizes,crossOrigin:w.crossOrigin,referrerPolicy:w.referrerPolicy,...y(w.fetchPriority)};return b&&o.default.preload?(o.default.preload(w.src,T),null):a.default.createElement(i.default,null,a.default.createElement("link",{key:"__nimg-"+w.src+w.srcSet+w.sizes,rel:"preload",href:w.srcSet?void 0:w.src,...T}))}const E=(0,a.forwardRef)((l,b)=>{const T=!(0,a.useContext)(g.RouterContext),v=(0,a.useContext)(h.ImageConfigContext),S=(0,a.useMemo)(()=>{const W=c||v||u.imageConfigDefault,$=[...W.deviceSizes,...W.imageSizes].sort((A,O)=>A-O),ne=W.deviceSizes.sort((A,O)=>A-O);return{...W,allSizes:$,deviceSizes:ne}},[v]),{onLoad:M,onLoadingComplete:R}=l,N=(0,a.useRef)(M);(0,a.useEffect)(()=>{N.current=M},[M]);const L=(0,a.useRef)(R);(0,a.useEffect)(()=>{L.current=R},[R]);const[D,j]=(0,a.useState)(!1),[B,F]=(0,a.useState)(!1),{props:re,meta:Y}=(0,s.getImgProps)(l,{defaultLoader:d.default,imgConf:S,blurComplete:D,showAltText:B});return a.default.createElement(a.default.Fragment,null,a.default.createElement(p,{...re,unoptimized:Y.unoptimized,placeholder:Y.placeholder,fill:Y.fill,onLoadRef:N,onLoadingCompleteRef:L,setBlurComplete:j,setShowAltText:F,ref:b}),Y.priority?a.default.createElement(_,{isAppRouter:T,imgAttributes:re}):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)})(Ur,Ur.exports);var Lu=Ur.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var g in m)Object.defineProperty(h,g,{enumerable:!0,get:m[g]})}t(e,{unstable_getImgProps:function(){return s},default:function(){return u}});const r=Ae,n=Qr,a=Ie,o=Lu,i=r._(oa()),s=h=>{(0,a.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:m}=(0,n.getImgProps)(h,{defaultLoader:i.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[g,d]of Object.entries(m))d===void 0&&delete m[g];return{props:m}},u=o.Image})(Gi);var Mu=Gi;const Zo=Vr(Mu),qu=({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?V.jsxs(Qe,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:fe["support-item"],children:[e.image&&V.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?V.jsx(Zo,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):V.jsx(he.Icon,{size:"small",name:n})]}):V.jsxs("div",{className:fe["support-item"],children:[e.image&&V.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?V.jsx(Zo,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):V.jsx(he.Icon,{size:"small",name:n})]})},Du=({content:e,CONSTANTS:t})=>V.jsx("div",{className:fe["support-container"],children:e==null?void 0:e.map((r,n)=>V.jsxs("div",{"data-device":r.device,className:fe["support-section"],children:[V.jsxs("div",{className:fe["support-text"],children:[r.title&&V.jsx("h3",{children:r.title}),r.description&&V.jsx("p",{children:r.description})]}),r.items.length&&V.jsx("div",{className:fe["support-items"],"data-gap":r.gap,children:r.items.map((a,o)=>V.jsx(qu,{item:a,CONSTANTS:t},`footer-support-item-${o}`))})]},`footer-support-${n}`))}),$u=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:a,columnAlignItems:o,textAlignContent:i,textAlignItems:s,children:u})=>V.jsx(he.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:a,alignItems:o}},children:V.jsxs(he.TextStructure.DivWrapper,{alignContent:i,alignItems:s,className:fe.footer__column,children:[V.jsxs("div",{className:t?fe.footer__columnTitleIcon:fe.footer__columnTitle,children:[V.jsx(he.Icon,{name:`${t}`,size:"small"}),e&&V.jsx("div",{children:e})]}),V.jsx("div",{className:fe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),ku=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:a,...o})=>V.jsxs(he.Accordion.Wrapper,{className:fe.accordionWrapper,title:"accordion-wrapper",...o,children:[V.jsx(he.Accordion.Header,{id:(o==null?void 0:o.id)??"",className:fe.accordionHeader,closeIndicator:V.jsx(he.Icon,{name:a.arrow_up,size:"medium"}),openIndicator:V.jsx(he.Icon,{name:a.arrow_down,size:"medium"}),title:"accordion-header",children:V.jsx(he.TextStructure.Root,{children:V.jsxs(he.TextStructure.DivWrapper,{className:t?fe.accordionTextWrapper:"",children:[V.jsx(he.Icon,{name:`${t}`,size:"medium"}),V.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),V.jsx(he.Accordion.Body,{title:"accordion-body",children:V.jsx(he.TextStructure.Root,{children:V.jsx(he.TextStructure.DivWrapper,{className:fe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Dr=e=>{const{isMobile:t}=Gr();return t?V.jsx(ku,{...e}):V.jsx($u,{...e})},Ke=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:a,icons:o,iconLink:i,iconSize:s,link:u,paymentDisclaimer:h,paymentTitle:m,rowAlignContent:g,columnAlignContent:d,columnAlignItems:c,textAlignContent:f,textAlignItems:y,...p})=>{let _;const{handleSelectContent:E}=si(),{nextimage:l}=Wr();switch(e){case"menu":_=V.jsx(Qe,{className:fe.footer__itemLink,href:u??"#",prefetch:!1,children:V.jsx("span",{onClick:()=>{E({content:`footer:${n}:${t}`})},children:t})});break;case"payment":_=V.jsxs("div",{className:he.helpers.classNameConcat(fe.payment,fe.footer__itemSmallText),...p,children:[h,V.jsxs("div",{className:he.helpers.classNameConcat(fe.footer__iconContainer,fe.footer__iconListSubHeader),children:[m,V.jsx("div",{className:fe.footer__iconList,children:o==null?void 0:o.map((b,w)=>V.jsx(l,{alt:b,src:`/assets/${b}.svg`,width:s??20,height:s??20},w))})]})]});break;case"social-media":_=V.jsx("div",{className:fe.footer__iconContainer,...p,children:V.jsx("div",{className:fe.footer__iconList,children:i==null?void 0:i.map((b,w)=>V.jsx(Qe,{prefetch:!1,href:b.link??"#",target:"_blank",children:V.jsx(he.Icon,{size:"medium",name:b.icon,onClick:()=>E({content:`footer:redes-sociais:${b.icon}`})})},w))})});break;default:_=V.jsx("div",{className:r,...p,children:t})}return V.jsx(he.TextStructure.Root,{layoutProps:{textRow:{alignContent:g,alignItems:g},columnWrapper:{alignContent:d,alignItems:c}},...p,children:V.jsx(he.TextStructure.DivWrapper,{alignContent:f,alignItems:y,className:he.helpers.classNameConcat(fe.footer__item,r),children:_})})},Hu=({className:e,text:t,...r})=>V.jsx("div",{...r,className:he.helpers.classNameConcat(fe.footer__legalInformation,e),children:V.jsx("span",{children:t})}),ia=()=>{const{nextimage:e}=Wr();return V.jsx("div",{className:fe["footer--stamps"],children:V.jsx(e,{alt:"Empresa B",className:fe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};ia.displayName="Footer.Stamps";const aa=({children:e,legalTextSlot:t,adornment:r,className:n,...a})=>{const{isMobile:o}=Gr(),i=se.Children.toArray(e).filter(Boolean),s=i.length;return V.jsxs("div",{className:fe.footer__main,children:[(r==null?void 0:r.top)&&V.jsx("div",{className:fe.footer__top,children:r==null?void 0:r.top}),s>0&&V.jsx("div",{...a,className:he.helpers.classNameConcat(fe.footer__wrapper,n),children:i.map((u,h)=>V.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${o?1:"fit-content"})`},children:u},h))}),(r==null?void 0:r.bottom)&&V.jsx("div",{className:fe.footer__bottom,children:r.bottom}),t&&V.jsx("div",{className:fe.footer__legalText,children:t})]})};aa.displayName="Footer.Wrapper";const sa=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:a,LEGAL_INFORMATION_TEXT:o,ICONS:i})=>{var s;return V.jsxs(aa,{adornment:a,legalTextSlot:V.jsx(Hu,{text:o}),children:[Array.isArray(e.column)&&e.column.map((u,h)=>V.jsx(Dr,{id:`${h}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:i,children:u.items.map((m,g)=>V.jsx(Ke,{type:"menu",link:m.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:m.text},g))},h)),t&&((s=t.acceptedFlags)==null?void 0:s.length)>0&&V.jsx(Dr,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:i,children:V.jsx(Ke,{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})}),V.jsxs(Dr,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:i,children:[r!=null&&r.subTitle?V.jsx(Ke,{children:r==null?void 0:r.subTitle}):null,V.jsx(Ke,{type:"social-media",iconSize:24,iconLink:n}),V.jsx(ia,{})]})]})};sa.displayName="Footer";exports.EventProvider=ba;exports.Footer=sa;exports.FooterSupport=Du;exports.GlobalProvider=La;exports.Mediator=xi;exports.NextLink=Qe;exports.NextProvider=Ma;exports.UIProvider=Ii;exports._interop_require_default=Ae;exports._interop_require_wildcard=Pe;exports.addSearchParamsFacets=za;exports.cart=Ta;exports.cart$1=Ca;exports.convertSearchParams=Ka;exports.events=va;exports.filterNonCategorySelected=Da;exports.filterNonRootFacets=Wa;exports.findItemIndex=di;exports.formattedFacets=Fa;exports.fs=Ki;exports.getCode=gi;exports.getColorAndSizeFromSkuName=Fr;exports.getDefaultExportFromCjs=Vr;exports.getPageCategoryAndDepartmentFromSlug=ii;exports.getProductNameWithoutSku=pa;exports.getQuantity=bi;exports.getSKUName=fa;exports.mountMarketingData=wi;exports.parseSearchState=Va;exports.removeSlashes=da;exports.requireAppRouterContext_sharedRuntime=Fi;exports.requireHeadManagerContext_sharedRuntime=Vi;exports.requireRequestIdleCallback=zi;exports.responsive=Qa;exports.splitNameAndSizeFromFullName=ei;exports.useCartStore=Xe;exports.useEventContext=si;exports.useGetNotificationActions=Oi;exports.useGetNotificationsStore=Pi;exports.useGlobalContext=Gr;exports.useNextContext=Wr;exports.useUIContext=ja;