@soma-vertical-web/multi-lib 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/ContentTypes/NotFoundPage/NotFoundContent.d.ts +3 -0
- package/cms/server.d.ts +1 -0
- package/data/api/catalog/index.d.ts +1 -0
- package/data/api/catalog/pageInfo/index.d.ts +7 -0
- package/{index-BhiCzrut.mjs → index-3re_PcOZ.mjs} +717 -738
- package/index-5ycwc4R2.mjs +2230 -0
- package/index-BngdrDvh.js +4 -0
- package/index-ByLB8d6o.js +4 -0
- package/{index-D61YFVi9.mjs → index-DjjGiBzS.mjs} +697 -742
- package/index-Rwk0NGoh.js +4 -0
- package/index.js +13 -13
- package/index.mjs +3431 -3348
- package/index2.js +2 -2
- package/index2.mjs +351 -319
- package/layout/index.d.ts +4 -0
- package/layout/template/ErrorTemplate/ErrorTemplate.d.ts +7 -0
- package/layout/template/ErrorTemplate/index.d.ts +1 -0
- package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
- package/layout/template/QuickShop/Composite/Similars.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/NotFoundPage/index.d.ts +6 -1
- package/types/data/api/index.d.ts +13 -0
- package/types/layout/templates/ErrorTemplate/index.d.ts +12 -0
- package/types/layout/templates/QuickShop/index.d.ts +2 -1
- package/cms/ContentTypes/LPLojas/typing.d.ts +0 -33
- package/contexts/contexts/search/QueryFacets.d.ts +0 -5
- package/contexts/contexts/search/QueryProducts.d.ts +0 -5
- package/contexts/contexts/search/RootTank.d.ts +0 -9
- package/index-4tOP7lCS.js +0 -4
- package/index-67k__dSl.mjs +0 -1908
- package/index-BFX4NpXJ.js +0 -4
- package/index-BlwJMBFA.mjs +0 -1890
- package/index-ByhWQJ9Z.mjs +0 -1844
- package/index-CkpbvnLx.mjs +0 -1830
- package/index-CpUjW-m9.mjs +0 -1877
- package/index-D0LSqsck.js +0 -4
- package/index-DZ1MbO8M.js +0 -4
- package/index-Dj1bg0lu.mjs +0 -1826
- package/index-DvhdPe3b.js +0 -4
- package/index-DyKuIyRP.js +0 -4
- package/index-dtcYsqh-.js +0 -4
- package/index-xWhZ_YcF.js +0 -4
- package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +0 -18
- package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +0 -10
- package/layout/template/LPLojas/constant.d.ts +0 -1
- package/layout/template/LPLojas/interfaces.d.ts +0 -18
- package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),an=require("@soma-vertical-web/core-components"),_e=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Kt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:_e(0):_e(t/100),Yt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},at=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Qt=(t,e)=>{if(!t)return{};const[r,n]=t.split(e);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Jt=(t,e="tamanho")=>{if(t.additionalProperty){const[r]=t.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===e?r.value:t.name:""}return t.name},Zt=(t,e)=>t.replace(e,"").trim(),ln=t=>t.replace(/\//g,""),er=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var s;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:f,PaymentOptions:{installmentOptions:u}}=i.commertialOffer;r.price=c,r.listPrice=f;const p=(s=u==null?void 0:u[0])==null?void 0:s.installments;if(p){const{count:d,value:y}=p[p.length-1];r.installments={count:d,value:y/100}}};let o=!0;const a=t.reduce((i,l)=>{var u;const c={name:l.name,sku:l.itemId,value:((u=l.Tamanho)==null?void 0:u[0])??at(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},f=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(c.available=!0,n(p,c)),p.commertialOffer.IsAvailable));return!c.isSellerDefault&&f.length>0&&(c.available=!0,n(f[0],{...c,sellerId:f[0].sellerId,sellerName:f[0].sellerName})),c.available===!1&&(o=!1),i.push(c),i},[]);return{...r,sizes:a,allSizesAvailable:o}},tr=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,rr=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},nr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],or=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},ar=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},ir=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},cn=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},lr=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},un=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:tr,formatPriceToCurrency:_e,freightParsePrice:Kt,getAspectRatio:cn,getColorAndSizeFromSkuName:Qt,getDiscountPercent:Yt,getFirstImages:ir,getProductNameWithoutSku:Zt,getSKUName:Jt,getSkuInfos:er,getThumbImage:nr,getValidOffer:rr,removeSlashes:ln,resizingImg:or,setVideoPlay:lr,splitNameAndSizeFromFullName:at,updatedResizedImg:ar},Symbol.toStringTag,{value:"Module"})),gt="fuzzy",mt="operator",fn=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),sn=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},cr=(t,e)=>e?t==="category-1":!1,pn=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),yn=t=>t.type==="TEXT",dn=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),vn=t=>{const{key:e,name:r,values:n}=t;return{__typename:"FacetBoolean",key:e,label:r,values:n.slice().sort((o,a)=>o.name.localeCompare(a.name))}},hn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),gn=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!cr(i.key,o)).map(i=>yn(i)?vn(i):hn(i))},mn=(t,e)=>{const r=t.find(({key:o})=>o===gt)??null,n=t.find(({key:o})=>o===mt)??null;r&&dn(r)&&e.append(gt,r.value),n&&pn(n)&&e.append(mt,n.value)},Sn=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),_n=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/"),n=t.filter(({value:a})=>!r.includes(decodeURIComponent(a))).map(a=>({...a,value:decodeURIComponent(a.value)})),{isDepartment:o}=fn(n);return n==null?void 0:n.filter(a=>!cr(a.key,o))},En=({pathname:t,searchParams:e},r)=>{const n=e.get("sort")??"",o=e.get("query")??null,a=parseInt(e.get("page")??"1",10);return{sort:n,facets:Sn(r),term:o,base:o?"":t,page:a}},An=t=>{const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{Array.isArray(n)?n.forEach(o=>e.append(r,o)):n!==void 0&&e.append(r,n)}),e},Pn=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Rn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var fr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(fr);var Oe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}})(Oe);var it={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Oe;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(it);var sr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(on,vt){for(var ht in vt)Object.defineProperty(on,ht,{enumerable:!0,get:vt[ht]})}e(t,{ACTION_SUFFIX:function(){return c},APP_DIR_ALIAS:function(){return V},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return F},ESLINT_DEFAULT_DIRS:function(){return en},GSP_NO_RETURNED_VALUE:function(){return Vr},GSSP_COMPONENT_MEMBER_ERROR:function(){return Qr},GSSP_NO_RETURNED_VALUE:function(){return Kr},INSTRUMENTATION_HOOK_FILENAME:function(){return M},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return H},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return h},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return I},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return S},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return Jr},PAGES_DIR_ALIAS:function(){return z},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return re},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return j},RSC_ACTION_ENCRYPTION_ALIAS:function(){return b},RSC_ACTION_PROXY_ALIAS:function(){return C},RSC_ACTION_VALIDATE_ALIAS:function(){return R},RSC_MOD_REF_PROXY_ALIAS:function(){return U},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return zr},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return de},SERVER_PROPS_SSG_CONFLICT:function(){return ne},SERVER_RUNTIME:function(){return tn},SSG_FALLBACK_EXPORT_ERROR:function(){return Zr},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Ce},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return qr},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Yr},WEBPACK_LAYERS:function(){return rn},WEBPACK_RESOURCE_QUERIES:function(){return nn}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",c=".action",f=".json",u=".meta",p=".body",s="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",g="x-next-revalidate-tag-token",S=128,P=256,I=1024,h="_N_T_",T=31536e3,w="middleware",H=`(?:src/)?${w}`,M="instrumentation",z="private-next-pages",F="private-dot-next",N="private-next-root-dir",V="private-next-app-dir",U="private-next-rsc-mod-ref-proxy",R="private-next-rsc-action-validate",C="private-next-rsc-server-reference",b="private-next-rsc-action-encryption",j="private-next-rsc-action-client-wrapper",re="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Ce="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",de="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ne="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",qr="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",zr="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Vr="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Kr="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Yr="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Qr="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Jr='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Zr="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",en=["app","pages","components","lib","src"],tn={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},E={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},rn={...E,GROUP:{serverOnly:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.instrument],clientOnly:[E.serverSideRendering,E.appPagesBrowser],nonClientServerTarget:[E.middleware,E.api],app:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.serverSideRendering,E.appPagesBrowser,E.shared,E.instrument]}},nn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(sr);var pr={},lt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Oe;function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:l}=(0,e.parsePath)(n);return""+o+a+i+l}})(lt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=lt,r=it;function n(o,a,i,l){if(!a||a===i)return o;const c=o.toLowerCase();return!l&&((0,r.pathHasPrefix)(c,"/api")||(0,r.pathHasPrefix)(c,"/"+a.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+a)}})(pr);var yr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}})(yr);var dr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const c=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===c||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(f=>f.toLowerCase()===o))return l}}}})(dr);const On=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),_t=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(On).join(e),bn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>_t(a)).join(","):_t(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},In=({canonical:t,category:e,previousImages:r,seo:n})=>({category:String(e==null?void 0:e.id),title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,alternates:{canonical:t},openGraph:{type:"website",title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,images:Array.isArray(r)?[...r]:[]}}),Tn=({items:t,parent:e,apiUrl:r,find:n})=>{const o=t.find(i=>i.url.replace(r,"")===decodeURIComponent(e.toLowerCase()));return(o==null?void 0:o.children.find(i=>i.name.toLowerCase()===decodeURIComponent(String(n))))??o},wn=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Nn=new Set(["brand","category","department","subcategory","collection","cluster"]),Cn=t=>typeof(t==null?void 0:t.pageType)=="string"&&Nn.has(t==null?void 0:t.pageType.toLowerCase()),Dn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),vr=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(l=>l.commertialOffer.IsAvailable)).length===0||(r==null?void 0:r.find(i=>(i==null?void 0:i.productId)===(n==null?void 0:n.productId)))!==void 0)return r;const a=n.items[0].images.find(i=>e.includes(i.imageLabel));return r.push({slug:`/${n.linkText}/p`,productId:n==null?void 0:n.productId,textureImage:(a==null?void 0:a.imageUrl)??"",textureAlt:(a==null?void 0:a.imageText)??""}),r},[]),$n=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:bn,createSeoCategory:In,findCategory:Tn,formattedSimilars:vr,isCollectionPageType:Cn,notFindCategoryError:wn,responseAdapter:Dn},Symbol.toStringTag,{value:"Module"})),ae={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},xn=({children:t,data:e,SectionZone:r,className:n})=>{var u,p;const o=((u=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:u.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),c=a.slice(0,1),f=a.slice(1,a.length);return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:n,children:[O.jsx("div",{className:ae["responsive-mobile-flex"],children:O.jsx(r,{data:i??[]})}),O.jsx("div",{className:ae["responsive-desktop-flex"],children:O.jsx(r,{data:c??[]})})]}),t,O.jsx("div",{className:ae["responsive-mobile-flex"],children:O.jsx(r,{data:l??[]})}),O.jsx("div",{className:ae["responsive-desktop-flex"],children:O.jsx(r,{data:f??[]})}),O.jsx(an.Utils.Divider,{})]})};var te=TypeError;const Fn={},Ln=Object.freeze(Object.defineProperty({__proto__:null,default:Fn},Symbol.toStringTag,{value:"Module"})),Mn=Rn(Ln);var ct=typeof Map=="function"&&Map.prototype,De=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ee=ct&&De&&typeof De.get=="function"?De.get:null,Et=ct&&Map.prototype.forEach,ut=typeof Set=="function"&&Set.prototype,$e=Object.getOwnPropertyDescriptor&&ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ae=ut&&$e&&typeof $e.get=="function"?$e.get:null,At=ut&&Set.prototype.forEach,Un=typeof WeakMap=="function"&&WeakMap.prototype,ie=Un?WeakMap.prototype.has:null,Bn=typeof WeakSet=="function"&&WeakSet.prototype,le=Bn?WeakSet.prototype.has:null,Gn=typeof WeakRef=="function"&&WeakRef.prototype,Pt=Gn?WeakRef.prototype.deref:null,Hn=Boolean.prototype.valueOf,jn=Object.prototype.toString,kn=Function.prototype.toString,Xn=String.prototype.match,ft=String.prototype.slice,B=String.prototype.replace,Wn=String.prototype.toUpperCase,Rt=String.prototype.toLowerCase,hr=RegExp.prototype.test,Ot=Array.prototype.concat,x=Array.prototype.join,qn=Array.prototype.slice,bt=Math.floor,Ze=typeof BigInt=="function"?BigInt.prototype.valueOf:null,xe=Object.getOwnPropertySymbols,et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ce=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Z||!0)?Symbol.toStringTag:null,gr=Object.prototype.propertyIsEnumerable,It=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Tt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||hr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-bt(-t):bt(t);if(n!==t){var o=String(n),a=ft.call(e,o.length+1);return B.call(o,r,"$&_")+"."+B.call(B.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return B.call(e,r,"$&_")}var tt=Mn,wt=tt.custom,Nt=_r(wt)?wt:null,mr={__proto__:null,double:'"',single:"'"},zn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},be=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(mr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=L(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(L(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ar(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?Tt(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return l?Tt(e,f):f}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return rt(e)?"[Array]":"[Object]";var p=so(a,n);if(typeof o>"u")o=[];else if(Er(o,e)>=0)return"[Circular]";function s(R,C,b){if(C&&(o=qn.call(o),o.push(C)),b){var j={depth:a.depth};return L(a,"quoteStyle")&&(j.quoteStyle=a.quoteStyle),t(R,j,n+1,o)}return t(R,a,n+1,o)}if(typeof e=="function"&&!Ct(e)){var d=ro(e),y=ve(e,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+x.call(y,", ")+" }":"")}if(_r(e)){var g=Z?B.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):et.call(e);return typeof e=="object"&&!Z?oe(g):g}if(co(e)){for(var S="<"+Rt.call(String(e.nodeName)),P=e.attributes||[],I=0;I<P.length;I++)S+=" "+P[I].name+"="+Sr(Vn(P[I].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+Rt.call(String(e.nodeName))+">",S}if(rt(e)){if(e.length===0)return"[]";var h=ve(e,s);return p&&!fo(h)?"["+nt(h,p)+"]":"[ "+x.call(h,", ")+" ]"}if(Yn(e)){var T=ve(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!gr.call(e,"cause")?"{ ["+String(e)+"] "+x.call(Ot.call("[cause]: "+s(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(T,", ")+" }"}if(typeof e=="object"&&i){if(Nt&&typeof e[Nt]=="function"&&tt)return tt(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(no(e)){var w=[];return Et&&Et.call(e,function(R,C){w.push(s(C,e,!0)+" => "+s(R,e))}),Dt("Map",Ee.call(e),w,p)}if(io(e)){var H=[];return At&&At.call(e,function(R){H.push(s(R,e))}),Dt("Set",Ae.call(e),H,p)}if(oo(e))return Fe("WeakMap");if(lo(e))return Fe("WeakSet");if(ao(e))return Fe("WeakRef");if(Jn(e))return oe(s(Number(e)));if(eo(e))return oe(s(Ze.call(e)));if(Zn(e))return oe(Hn.call(e));if(Qn(e))return oe(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof St<"u"&&e===St)return"{ [object globalThis] }";if(!Kn(e)&&!Ct(e)){var M=ve(e,s),z=It?It(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",N=!z&&ce&&Object(e)===e&&ce in e?ft.call(G(e),8,-1):F?"Object":"",V=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=V+(N||F?"["+x.call(Ot.call([],N||[],F||[]),": ")+"] ":"");return M.length===0?U+"{}":p?U+"{"+nt(M,p)+"}":U+"{ "+x.call(M,", ")+" }"}return String(e)};function Sr(t,e,r){var n=r.quoteStyle||e,o=mr[n];return o+t+o}function Vn(t){return B.call(String(t),/"/g,""")}function q(t){return!ce||!(typeof t=="object"&&(ce in t||typeof t[ce]<"u"))}function rt(t){return G(t)==="[object Array]"&&q(t)}function Kn(t){return G(t)==="[object Date]"&&q(t)}function Ct(t){return G(t)==="[object RegExp]"&&q(t)}function Yn(t){return G(t)==="[object Error]"&&q(t)}function Qn(t){return G(t)==="[object String]"&&q(t)}function Jn(t){return G(t)==="[object Number]"&&q(t)}function Zn(t){return G(t)==="[object Boolean]"&&q(t)}function _r(t){if(Z)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!et)return!1;try{return et.call(t),!0}catch{}return!1}function eo(t){if(!t||typeof t!="object"||!Ze)return!1;try{return Ze.call(t),!0}catch{}return!1}var to=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return to.call(t,e)}function G(t){return jn.call(t)}function ro(t){if(t.name)return t.name;var e=Xn.call(kn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Er(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function no(t){if(!Ee||!t||typeof t!="object")return!1;try{Ee.call(t);try{Ae.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function oo(t){if(!ie||!t||typeof t!="object")return!1;try{ie.call(t,ie);try{le.call(t,le)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function ao(t){if(!Pt||!t||typeof t!="object")return!1;try{return Pt.call(t),!0}catch{}return!1}function io(t){if(!Ae||!t||typeof t!="object")return!1;try{Ae.call(t);try{Ee.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function lo(t){if(!le||!t||typeof t!="object")return!1;try{le.call(t,le);try{ie.call(t,ie)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function co(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ar(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ar(ft.call(t,0,e.maxStringLength),e)+n}var o=zn[e.quoteStyle||"single"];o.lastIndex=0;var a=B.call(B.call(t,o,"\\$1"),/[\x00-\x1f]/g,uo);return Sr(a,"single",e)}function uo(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Wn.call(e.toString(16))}function oe(t){return"Object("+t+")"}function Fe(t){return t+" { ? }"}function Dt(t,e,r,n){var o=n?nt(r,n):x.call(r,", ");return t+" ("+e+") {"+o+"}"}function fo(t){for(var e=0;e<t.length;e++)if(Er(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function so(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=x.call(Array(t.indent+1)," ");else return null;return{base:r,prev:x.call(Array(e+1),r)}}function nt(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+x.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function ve(t,e){var r=rt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=L(t,o)?e(t[o],t):""}var a=typeof xe=="function"?xe(t):[],i;if(Z){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)L(t,c)&&(r&&String(Number(c))===c&&c<t.length||Z&&i["$"+c]instanceof Symbol||(hr.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof xe=="function")for(var f=0;f<a.length;f++)gr.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}var po=be,yo=te,Ie=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},vo=function(t,e){if(t){var r=Ie(t,e);return r&&r.value}},ho=function(t,e,r){var n=Ie(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},go=function(t,e){return t?!!Ie(t,e):!1},mo=function(t,e){if(t)return Ie(t,e,!0)},So=function(){var e,r={assert:function(n){if(!r.has(n))throw new yo("Side channel does not contain "+po(n))},delete:function(n){var o=e&&e.next,a=mo(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return vo(e,n)},has:function(n){return go(e,n)},set:function(n,o){e||(e={next:void 0}),ho(e,n,o)}};return r},Pr=Object,_o=Error,Eo=EvalError,Ao=RangeError,Po=ReferenceError,Ro=SyntaxError,Oo=URIError,bo=Math.abs,Io=Math.floor,To=Math.max,wo=Math.min,No=Math.pow,Co=Math.round,Do=Number.isNaN||function(e){return e!==e},$o=Do,xo=function(e){return $o(e)||e===0?e:e<0?-1:1},Fo=Object.getOwnPropertyDescriptor,ge=Fo;if(ge)try{ge([],"length")}catch{ge=null}var Rr=ge,me=Object.defineProperty||!1;if(me)try{me({},"a",{value:1})}catch{me=!1}var Lo=me,Le,$t;function Mo(){return $t||($t=1,Le=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),Le}var Me,xt;function Uo(){if(xt)return Me;xt=1;var t=typeof Symbol<"u"&&Symbol,e=Mo();return Me=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Me}var Ue,Ft;function Or(){return Ft||(Ft=1,Ue=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ue}var Be,Lt;function br(){if(Lt)return Be;Lt=1;var t=Pr;return Be=t.getPrototypeOf||null,Be}var Ge,Mt;function Bo(){if(Mt)return Ge;Mt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,f){for(var u=[],p=0;p<c.length;p+=1)u[p]=c[p];for(var s=0;s<f.length;s+=1)u[s+c.length]=f[s];return u},a=function(c,f){for(var u=[],p=f,s=0;p<c.length;p+=1,s+=1)u[s]=c[p];return u},i=function(l,c){for(var f="",u=0;u<l.length;u+=1)f+=l[u],u+1<l.length&&(f+=c);return f};return Ge=function(c){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var u=a(arguments,1),p,s=function(){if(this instanceof p){var P=f.apply(this,o(u,arguments));return Object(P)===P?P:this}return f.apply(c,o(u,arguments))},d=r(0,f.length-u.length),y=[],g=0;g<d;g++)y[g]="$"+g;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(s),f.prototype){var S=function(){};S.prototype=f.prototype,p.prototype=new S,S.prototype=null}return p},Ge}var He,Ut;function Te(){if(Ut)return He;Ut=1;var t=Bo();return He=Function.prototype.bind||t,He}var je,Bt;function st(){return Bt||(Bt=1,je=Function.prototype.call),je}var ke,Gt;function Ir(){return Gt||(Gt=1,ke=Function.prototype.apply),ke}var Go=typeof Reflect<"u"&&Reflect&&Reflect.apply,Ho=Te(),jo=Ir(),ko=st(),Xo=Go,Wo=Xo||Ho.call(ko,jo),qo=Te(),zo=te,Vo=st(),Ko=Wo,Tr=function(e){if(e.length<1||typeof e[0]!="function")throw new zo("a function is required");return Ko(qo,Vo,e)},Xe,Ht;function Yo(){if(Ht)return Xe;Ht=1;var t=Tr,e=Rr,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&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Xe=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Xe}var We,jt;function Qo(){if(jt)return We;jt=1;var t=Or(),e=br(),r=Yo();return We=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,We}var qe,kt;function Jo(){if(kt)return qe;kt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Te();return qe=r.call(t,e),qe}var v,Zo=Pr,ea=_o,ta=Eo,ra=Ao,na=Po,ee=Ro,J=te,oa=Oo,aa=bo,ia=Io,la=To,ca=wo,ua=No,fa=Co,sa=xo,wr=Function,ze=function(t){try{return wr('"use strict"; return ('+t+").constructor;")()}catch{}},fe=Rr,pa=Lo,Ve=function(){throw new J},ya=fe?function(){try{return arguments.callee,Ve}catch{try{return fe(arguments,"callee").get}catch{return Ve}}}():Ve,K=Uo()(),A=Qo(),da=br(),va=Or(),Nr=Ir(),se=st(),Q={},ha=typeof Uint8Array>"u"||!A?v:A(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":K&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ea,"%eval%":eval,"%EvalError%":ta,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":wr,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!K||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Zo,"%Object.getOwnPropertyDescriptor%":fe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":ra,"%ReferenceError%":na,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!K||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K&&A?A(""[Symbol.iterator]()):v,"%Symbol%":K?Symbol:v,"%SyntaxError%":ee,"%ThrowTypeError%":ya,"%TypedArray%":ha,"%TypeError%":J,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":oa,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":se,"%Function.prototype.apply%":Nr,"%Object.defineProperty%":pa,"%Object.getPrototypeOf%":da,"%Math.abs%":aa,"%Math.floor%":ia,"%Math.max%":la,"%Math.min%":ca,"%Math.pow%":ua,"%Math.round%":fa,"%Math.sign%":sa,"%Reflect.getPrototypeOf%":va};if(A)try{null.error}catch(t){var ga=A(A(t));X["%Error.prototype%"]=ga}var ma=function t(e){var r;if(e==="%AsyncFunction%")r=ze("async function () {}");else if(e==="%GeneratorFunction%")r=ze("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ze("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return X[e]=r,r},Xt={__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"]},pe=Te(),Pe=Jo(),Sa=pe.call(se,Array.prototype.concat),_a=pe.call(Nr,Array.prototype.splice),Wt=pe.call(se,String.prototype.replace),Re=pe.call(se,String.prototype.slice),Ea=pe.call(se,RegExp.prototype.exec),Aa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pa=/\\(\\)?/g,Ra=function(e){var r=Re(e,0,1),n=Re(e,-1);if(r==="%"&&n!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Wt(e,Aa,function(a,i,l,c){o[o.length]=l?Wt(c,Pa,"$1"):i||a}),o},Oa=function(e,r){var n=e,o;if(Pe(Xt,n)&&(o=Xt[n],n="%"+o[0]+"%"),Pe(X,n)){var a=X[n];if(a===Q&&(a=ma(n)),typeof a>"u"&&!r)throw new J("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ee("intrinsic "+e+" does not exist!")},pt=function(e,r){if(typeof e!="string"||e.length===0)throw new J("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new J('"allowMissing" argument must be a boolean');if(Ea(/^%?[^%]*%?$/,e)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ra(e),o=n.length>0?n[0]:"",a=Oa("%"+o+"%",r),i=a.name,l=a.value,c=!1,f=a.alias;f&&(o=f[0],_a(n,Sa([0,1],f)));for(var u=1,p=!0;u<n.length;u+=1){var s=n[u],d=Re(s,0,1),y=Re(s,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new ee("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(c=!0),o+="."+s,i="%"+o+"%",Pe(X,i))l=X[i];else if(l!=null){if(!(s in l)){if(!r)throw new J("base intrinsic for "+e+" exists, but the property is not available.");return}if(fe&&u+1>=n.length){var g=fe(l,s);p=!!g,p&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[s]}else p=Pe(l,s),l=l[s];p&&!c&&(X[i]=l)}}return l},Cr=pt,Dr=Tr,ba=Dr([Cr("%String.prototype.indexOf%")]),$r=function(e,r){var n=Cr(e,!!r);return typeof n=="function"&&ba(e,".prototype.")>-1?Dr([n]):n},Ia=pt,ye=$r,Ta=be,wa=te,qt=Ia("%Map%",!0),Na=ye("Map.prototype.get",!0),Ca=ye("Map.prototype.set",!0),Da=ye("Map.prototype.has",!0),$a=ye("Map.prototype.delete",!0),xa=ye("Map.prototype.size",!0),xr=!!qt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new wa("Side channel does not contain "+Ta(n))},delete:function(n){if(e){var o=$a(e,n);return xa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Na(e,n)},has:function(n){return e?Da(e,n):!1},set:function(n,o){e||(e=new qt),Ca(e,n,o)}};return r},Fa=pt,we=$r,La=be,he=xr,Ma=te,Y=Fa("%WeakMap%",!0),Ua=we("WeakMap.prototype.get",!0),Ba=we("WeakMap.prototype.set",!0),Ga=we("WeakMap.prototype.has",!0),Ha=we("WeakMap.prototype.delete",!0),ja=Y?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Ma("Side channel does not contain "+La(o))},delete:function(o){if(Y&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ha(e,o)}else if(he&&r)return r.delete(o);return!1},get:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?Ua(e,o):r&&r.get(o)},has:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?Ga(e,o):!!r&&r.has(o)},set:function(o,a){Y&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Y),Ba(e,o,a)):he&&(r||(r=he()),r.set(o,a))}};return n}:he,ka=te,Xa=be,Wa=So,qa=xr,za=ja,Va=za||qa||Wa,Ka=function(){var e,r={assert:function(n){if(!r.has(n))throw new ka("Side channel does not contain "+Xa(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=Va()),e.set(n,o)}};return r},Ya=String.prototype.replace,Qa=/%20/g,Ke={RFC1738:"RFC1738",RFC3986:"RFC3986"},yt={default:Ke.RFC3986,formatters:{RFC1738:function(t){return Ya.call(t,Qa,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ke.RFC1738,RFC3986:Ke.RFC3986},Ja=yt,Ye=Object.prototype.hasOwnProperty,k=Array.isArray,D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Za=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(k(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},Fr=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},ei=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(k(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ye.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return k(e)&&!k(r)&&(o=Fr(e,n)),k(e)&&k(r)?(r.forEach(function(a,i){if(Ye.call(e,i)){var l=e[i];l&&typeof l=="object"&&a&&typeof a=="object"?e[i]=t(l,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var l=r[i];return Ye.call(a,i)?a[i]=t(a[i],l,n):a[i]=l,a},o)},ti=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},ri=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Qe=1024,ni=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",c=0;c<i.length;c+=Qe){for(var f=i.length>=Qe?i.slice(c,c+Qe):i,u=[],p=0;p<f.length;++p){var s=f.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===Ja.RFC1738&&(s===40||s===41)){u[u.length]=f.charAt(p);continue}if(s<128){u[u.length]=D[s];continue}if(s<2048){u[u.length]=D[192|s>>6]+D[128|s&63];continue}if(s<55296||s>=57344){u[u.length]=D[224|s>>12]+D[128|s>>6&63]+D[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|f.charCodeAt(p)&1023),u[u.length]=D[240|s>>18]+D[128|s>>12&63]+D[128|s>>6&63]+D[128|s&63]}l+=u.join("")}return l},oi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),c=0;c<l.length;++c){var f=l[c],u=i[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:i,prop:f}),n.push(u))}return Za(r),e},ai=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ii=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},li=function(e,r){return[].concat(e,r)},ci=function(e,r){if(k(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Lr={arrayToObject:Fr,assign:ti,combine:li,compact:oi,decode:ri,encode:ni,isBuffer:ii,isRegExp:ai,maybeMap:ci,merge:ei},Mr=Ka,Se=Lr,ue=yt,ui=Object.prototype.hasOwnProperty,Ur={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},$=Array.isArray,fi=Array.prototype.push,Br=function(t,e){fi.apply(t,$(e)?e:[e])},si=Date.prototype.toISOString,zt=ue.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Se.encode,encodeValuesOnly:!1,filter:void 0,format:zt,formatter:ue.formatters[zt],indices:!1,serializeDate:function(e){return si.call(e)},skipNulls:!1,strictNullHandling:!1},pi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Je={},yi=function t(e,r,n,o,a,i,l,c,f,u,p,s,d,y,g,S,P,I){for(var h=e,T=I,w=0,H=!1;(T=T.get(Je))!==void 0&&!H;){var M=T.get(e);if(w+=1,typeof M<"u"){if(M===w)throw new RangeError("Cyclic object value");H=!0}typeof T.get(Je)>"u"&&(w=0)}if(typeof u=="function"?h=u(r,h):h instanceof Date?h=d(h):n==="comma"&&$(h)&&(h=Se.maybeMap(h,function(ne){return ne instanceof Date?d(ne):ne})),h===null){if(i)return f&&!S?f(r,_.encoder,P,"key",y):r;h=""}if(pi(h)||Se.isBuffer(h)){if(f){var z=S?r:f(r,_.encoder,P,"key",y);return[g(z)+"="+g(f(h,_.encoder,P,"value",y))]}return[g(r)+"="+g(String(h))]}var F=[];if(typeof h>"u")return F;var N;if(n==="comma"&&$(h))S&&f&&(h=Se.maybeMap(h,f)),N=[{value:h.length>0?h.join(",")||null:void 0}];else if($(u))N=u;else{var V=Object.keys(h);N=p?V.sort(p):V}var U=c?String(r).replace(/\./g,"%2E"):String(r),R=o&&$(h)&&h.length===1?U+"[]":U;if(a&&$(h)&&h.length===0)return R+"[]";for(var C=0;C<N.length;++C){var b=N[C],j=typeof b=="object"&&b&&typeof b.value<"u"?b.value:h[b];if(!(l&&j===null)){var re=s&&c?String(b).replace(/\./g,"%2E"):String(b),Ce=$(h)?typeof n=="function"?n(R,re):R:R+(s?"."+re:"["+re+"]");I.set(e,w);var de=Mr();de.set(Je,I),Br(F,t(j,Ce,n,o,a,i,l,c,n==="comma"&&S&&$(h)?null:f,u,p,s,d,y,g,S,P,de))}}return F},di=function(e){if(!e)return _;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||_.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ue.default;if(typeof e.format<"u"){if(!ui.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=ue.formatters[n],a=_.filter;(typeof e.filter=="function"||$(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Ur?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=_.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},vi=function(t,e){var r=t,n=di(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):$(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=Ur[n.arrayFormat],c=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Mr(),u=0;u<o.length;++u){var p=o[u],s=r[p];n.skipNulls&&s===null||Br(i,yi(s,p,l,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var d=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},W=Lr,ot=Object.prototype.hasOwnProperty,Vt=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:W.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},hi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Gr=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},gi="utf8=%26%2310003%3B",mi="utf8=%E2%9C%93",Si=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,c,f=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===mi?f="utf-8":i[c]===gi&&(f="iso-8859-1"),l=c,c=i.length);for(c=0;c<i.length;++c)if(c!==l){var u=i[c],p=u.indexOf("]="),s=p===-1?u.indexOf("="):p+1,d,y;s===-1?(d=r.decoder(u,m.decoder,f,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(u.slice(0,s),m.decoder,f,"key"),y=W.maybeMap(Gr(u.slice(s+1),r,Vt(n[d])?n[d].length:0),function(S){return r.decoder(S,m.decoder,f,"value")})),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=hi(String(y))),u.indexOf("[]=")>-1&&(y=Vt(y)?[y]:y);var g=ot.call(n,d);g&&r.duplicates==="combine"?n[d]=W.combine(n[d],y):(!g||r.duplicates==="last")&&(n[d]=y)}return n},_i=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:Gr(e,r,o),l=t.length-1;l>=0;--l){var c,f=t[l];if(f==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:W.combine([],i);else{c=r.plainObjects?{__proto__:null}:{};var u=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,s=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(s)&&f!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(c=[],c[s]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},Ei=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(a),f=c?a.slice(0,c.index):a,u=[];if(f){if(!n.plainObjects&&ot.call(Object.prototype,f)&&!n.allowPrototypes)return;u.push(f)}for(var p=0;n.depth>0&&(c=l.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&ot.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(c.index)+"]")}return _i(u,r,n,o)}},Ai=function(e){if(!e)return m;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?m.charset:e.charset,n=typeof e.duplicates>"u"?m.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||W.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Pi=function(t,e){var r=Ai(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Si(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Ei(l,n[l],r,typeof t=="string");o=W.merge(o,c,r)}return r.allowSparse===!0?o:W.compact(o)},Ri=vi,Oi=Pi,bi=yt,Ii={formats:bi,parse:Oi,stringify:Ri};const Ti=ur(Ii);async function Ne(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Ti.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function dt(t,e){return!(e!=null&&e.cms)||(e==null?void 0:e.cms)==="vtex"?`https://${e==null?void 0:e.storeId}.myvtex.com/_v/cms/api/${e==null?void 0:e.name}/${t}`:String(new URL(`api/${t}`,process.env.NEXT_PUBLIC_API_URL))}function Hr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function jr(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",l=new URL(dt(`${t}${i}`,r)),c=await Ne(l,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const f=await c.json(),u=e.findIndex(p=>p.documentId===f.id);return u!==-1?(e[u]=f,[...e]):[f,...e]}return e}const wi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:dt,fetchCMS:Ne,mergePreviewDocument:jr,spreadStrapiData:Hr},Symbol.toStringTag,{value:"Module"}));async function kr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Ne(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?Hr(a):a}:{status:404,data:[],error:"No data found"}}async function Xr(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,c=0,f=!0;try{do{const u=await Ne(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(c=u.totalItems),Array.isArray(u==null?void 0:u.data)&&i.push(...u.data),f=!!(u!=null&&u.hasNextPage),l++}while(f&&i.length<c);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const u=await jr(t,i,a);return{status:u.length>0?200:404,data:u}}return{status:i.length?200:404,data:i}}catch(u){return{status:500,data:[],error:u instanceof Error?u.message:String(u)}}}const Ni=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:kr,vtexCMSData:Xr},Symbol.toStringTag,{value:"Module"}));async function Ci({contentType:t,documentId:e,versionId:r,storeId:n,CMS_PROJECT_NAME:o}){const a=e&&e.length?`/${e}`:"",i=r&&r.length?`?versionId=${r}`:"";return fetch(`https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,{cache:"no-cache"})}async function Wr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(dt(t,e));return n!=="vtex"?kr(o,e,r):Xr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Di=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Wr,getCMSContentType:Ci},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=xn;exports.addLocale=pr;exports.addPathPrefix=lt;exports.addSearchParamsFacets=mn;exports.catalogHelpers=$n;exports.cms=Di;exports.cmsHelpers=Ni;exports.cmsUtils=wi;exports.constants=sr;exports.convertSearchParams=An;exports.detectDomainLocale=dr;exports.disableSKU=tr;exports.fetchContentType=Wr;exports.filterNonCategorySelected=sn;exports.filterNonRootFacets=_n;exports.formatPriceToCurrency=_e;exports.formattedFacets=gn;exports.formattedSimilars=vr;exports.freightParsePrice=Kt;exports.getColorAndSizeFromSkuName=Qt;exports.getDefaultExportFromCjs=ur;exports.getDiscountPercent=Yt;exports.getFirstImages=ir;exports.getProductNameWithoutSku=Zt;exports.getSKUName=Jt;exports.getSkuInfos=er;exports.getThumbImage=nr;exports.getValidOffer=rr;exports.navigateToSearchPage=Pn;exports.normalizeLocalePath=yr;exports.parsePath=Oe;exports.parseSearchState=En;exports.pathHasPrefix=it;exports.productHelpers=un;exports.removeTrailingSlash=fr;exports.resizingImg=or;exports.responsive=ae;exports.setVideoPlay=lr;exports.splitNameAndSizeFromFullName=at;exports.updatedResizedImg=ar;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),nn=require("@soma-vertical-web/core-components"),_e=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),zt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:_e(0):_e(t/100),Vt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},ot=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Kt=(t,e)=>{if(!t)return{};const[r,n]=t.split(e);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Yt=(t,e="tamanho")=>{if(t.additionalProperty){const[r]=t.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===e?r.value:t.name:""}return t.name},Qt=(t,e)=>t.replace(e,"").trim(),on=t=>t.replace(/\//g,""),Jt=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var s;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:f,PaymentOptions:{installmentOptions:u}}=i.commertialOffer;r.price=c,r.listPrice=f;const p=(s=u==null?void 0:u[0])==null?void 0:s.installments;if(p){const{count:d,value:y}=p[p.length-1];r.installments={count:d,value:y/100}}};let o=!0;const a=t.reduce((i,l)=>{var u;const c={name:l.name,sku:l.itemId,value:((u=l.Tamanho)==null?void 0:u[0])??ot(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},f=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(c.available=!0,n(p,c)),p.commertialOffer.IsAvailable));return!c.isSellerDefault&&f.length>0&&(c.available=!0,n(f[0],{...c,sellerId:f[0].sellerId,sellerName:f[0].sellerName})),c.available===!1&&(o=!1),i.push(c),i},[]);return{...r,sizes:a,allSizesAvailable:o}},Zt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,er=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},tr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],rr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},nr=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},or=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},an=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},ar=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},ln=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Zt,formatPriceToCurrency:_e,freightParsePrice:zt,getAspectRatio:an,getColorAndSizeFromSkuName:Kt,getDiscountPercent:Vt,getFirstImages:or,getProductNameWithoutSku:Qt,getSKUName:Yt,getSkuInfos:Jt,getThumbImage:tr,getValidOffer:er,removeSlashes:on,resizingImg:rr,setVideoPlay:ar,splitNameAndSizeFromFullName:ot,updatedResizedImg:nr},Symbol.toStringTag,{value:"Module"})),gt="fuzzy",ht="operator",cn=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),un=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},ir=(t,e)=>e?t==="category-1":!1,fn=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),sn=t=>t.type==="TEXT",pn=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),yn=t=>{const{key:e,name:r,values:n}=t;return{__typename:"FacetBoolean",key:e,label:r,values:n.slice().sort((o,a)=>o.name.localeCompare(a.name))}},dn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),vn=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!ir(i.key,o)).map(i=>sn(i)?yn(i):dn(i))},gn=(t,e)=>{const r=t.find(({key:o})=>o===gt)??null,n=t.find(({key:o})=>o===ht)??null;r&&pn(r)&&e.append(gt,r.value),n&&fn(n)&&e.append(ht,n.value)},hn=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),mn=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/"),n=t.filter(({value:a})=>!r.includes(decodeURIComponent(a))).map(a=>({...a,value:decodeURIComponent(a.value)})),{isDepartment:o}=cn(n);return n==null?void 0:n.filter(a=>!ir(a.key,o))},Sn=({pathname:t,searchParams:e},r)=>{const n=e.get("sort")??"",o=e.get("query")??null,a=parseInt(e.get("page")??"1",10);return{sort:n,facets:hn(r),term:o,base:o?"":t,page:a}},_n=t=>{const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{Array.isArray(n)?n.forEach(o=>e.append(r,o)):n!==void 0&&e.append(r,n)}),e},En=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function An(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var cr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(cr);var Oe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}})(Oe);var at={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Oe;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(at);var ur={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(rn,dt){for(var vt in dt)Object.defineProperty(rn,vt,{enumerable:!0,get:dt[vt]})}e(t,{ACTION_SUFFIX:function(){return c},APP_DIR_ALIAS:function(){return V},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return F},ESLINT_DEFAULT_DIRS:function(){return Jr},GSP_NO_RETURNED_VALUE:function(){return qr},GSSP_COMPONENT_MEMBER_ERROR:function(){return Kr},GSSP_NO_RETURNED_VALUE:function(){return zr},INSTRUMENTATION_HOOK_FILENAME:function(){return M},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return H},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return g},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return h},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return I},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return S},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return Yr},PAGES_DIR_ALIAS:function(){return z},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return re},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return j},RSC_ACTION_ENCRYPTION_ALIAS:function(){return b},RSC_ACTION_PROXY_ALIAS:function(){return C},RSC_ACTION_VALIDATE_ALIAS:function(){return R},RSC_MOD_REF_PROXY_ALIAS:function(){return U},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return Wr},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return de},SERVER_PROPS_SSG_CONFLICT:function(){return ne},SERVER_RUNTIME:function(){return Zr},SSG_FALLBACK_EXPORT_ERROR:function(){return Qr},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Ce},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Xr},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Vr},WEBPACK_LAYERS:function(){return en},WEBPACK_RESOURCE_QUERIES:function(){return tn}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",c=".action",f=".json",u=".meta",p=".body",s="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",h="x-next-revalidate-tag-token",S=128,P=256,I=1024,g="_N_T_",T=31536e3,w="middleware",H=`(?:src/)?${w}`,M="instrumentation",z="private-next-pages",F="private-dot-next",N="private-next-root-dir",V="private-next-app-dir",U="private-next-rsc-mod-ref-proxy",R="private-next-rsc-action-validate",C="private-next-rsc-server-reference",b="private-next-rsc-action-encryption",j="private-next-rsc-action-client-wrapper",re="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Ce="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",de="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ne="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Xr="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Wr="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",qr="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",zr="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Vr="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Kr="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Yr='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Qr="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Jr=["app","pages","components","lib","src"],Zr={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},E={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},en={...E,GROUP:{serverOnly:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.instrument],clientOnly:[E.serverSideRendering,E.appPagesBrowser],nonClientServerTarget:[E.middleware,E.api],app:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.serverSideRendering,E.appPagesBrowser,E.shared,E.instrument]}},tn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(ur);var fr={},it={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Oe;function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:l}=(0,e.parsePath)(n);return""+o+a+i+l}})(it);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=it,r=at;function n(o,a,i,l){if(!a||a===i)return o;const c=o.toLowerCase();return!l&&((0,r.pathHasPrefix)(c,"/api")||(0,r.pathHasPrefix)(c,"/"+a.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+a)}})(fr);var sr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}})(sr);var pr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const c=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===c||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(f=>f.toLowerCase()===o))return l}}}})(pr);const Pn=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),St=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Pn).join(e),Rn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>St(a)).join(","):St(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},On=({canonical:t,category:e,previousImages:r,seo:n})=>({category:String(e==null?void 0:e.id),title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,alternates:{canonical:t},openGraph:{type:"website",title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,images:Array.isArray(r)?[...r]:[]}}),bn=({items:t,parent:e,apiUrl:r,find:n})=>{const o=t.find(i=>i.url.replace(r,"")===decodeURIComponent(e.toLowerCase()));return(o==null?void 0:o.children.find(i=>i.name.toLowerCase()===decodeURIComponent(String(n))))??o},In=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Tn=new Set(["brand","category","department","subcategory","collection","cluster"]),wn=t=>typeof(t==null?void 0:t.pageType)=="string"&&Tn.has(t==null?void 0:t.pageType.toLowerCase()),Nn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),yr=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(l=>l.commertialOffer.IsAvailable)).length===0||(r==null?void 0:r.find(i=>(i==null?void 0:i.productId)===(n==null?void 0:n.productId)))!==void 0)return r;const a=n.items[0].images.find(i=>e.includes(i.imageLabel));return r.push({slug:`/${n.linkText}/p`,productId:n==null?void 0:n.productId,textureImage:(a==null?void 0:a.imageUrl)??"",textureAlt:(a==null?void 0:a.imageText)??""}),r},[]),Cn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:Rn,createSeoCategory:On,findCategory:bn,formattedSimilars:yr,isCollectionPageType:wn,notFindCategoryError:In,responseAdapter:Nn},Symbol.toStringTag,{value:"Module"})),ae={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},Dn=({children:t,data:e,SectionZone:r,className:n})=>{var u,p;const o=((u=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:u.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),c=a.slice(0,1),f=a.slice(1,a.length);return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:n,children:[O.jsx("div",{className:ae["responsive-mobile-flex"],children:O.jsx(r,{data:i??[]})}),O.jsx("div",{className:ae["responsive-desktop-flex"],children:O.jsx(r,{data:c??[]})})]}),t,O.jsx("div",{className:ae["responsive-mobile-flex"],children:O.jsx(r,{data:l??[]})}),O.jsx("div",{className:ae["responsive-desktop-flex"],children:O.jsx(r,{data:f??[]})}),O.jsx(nn.Utils.Divider,{})]})};var te=TypeError;const $n={},xn=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),Fn=An(xn);var lt=typeof Map=="function"&&Map.prototype,De=Object.getOwnPropertyDescriptor&<?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ee=lt&&De&&typeof De.get=="function"?De.get:null,_t=lt&&Map.prototype.forEach,ct=typeof Set=="function"&&Set.prototype,$e=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ae=ct&&$e&&typeof $e.get=="function"?$e.get:null,Et=ct&&Set.prototype.forEach,Ln=typeof WeakMap=="function"&&WeakMap.prototype,ie=Ln?WeakMap.prototype.has:null,Mn=typeof WeakSet=="function"&&WeakSet.prototype,le=Mn?WeakSet.prototype.has:null,Un=typeof WeakRef=="function"&&WeakRef.prototype,At=Un?WeakRef.prototype.deref:null,Bn=Boolean.prototype.valueOf,Gn=Object.prototype.toString,Hn=Function.prototype.toString,jn=String.prototype.match,ut=String.prototype.slice,B=String.prototype.replace,kn=String.prototype.toUpperCase,Pt=String.prototype.toLowerCase,dr=RegExp.prototype.test,Rt=Array.prototype.concat,x=Array.prototype.join,Xn=Array.prototype.slice,Ot=Math.floor,Je=typeof BigInt=="function"?BigInt.prototype.valueOf:null,xe=Object.getOwnPropertySymbols,Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ce=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Z||!0)?Symbol.toStringTag:null,vr=Object.prototype.propertyIsEnumerable,bt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function It(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||dr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ot(-t):Ot(t);if(n!==t){var o=String(n),a=ut.call(e,o.length+1);return B.call(o,r,"$&_")+"."+B.call(B.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return B.call(e,r,"$&_")}var et=Fn,Tt=et.custom,wt=mr(Tt)?Tt:null,gr={__proto__:null,double:'"',single:"'"},Wn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},be=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(gr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=L(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(L(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return _r(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?It(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return l?It(e,f):f}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return tt(e)?"[Array]":"[Object]";var p=uo(a,n);if(typeof o>"u")o=[];else if(Sr(o,e)>=0)return"[Circular]";function s(R,C,b){if(C&&(o=Xn.call(o),o.push(C)),b){var j={depth:a.depth};return L(a,"quoteStyle")&&(j.quoteStyle=a.quoteStyle),t(R,j,n+1,o)}return t(R,a,n+1,o)}if(typeof e=="function"&&!Nt(e)){var d=eo(e),y=ve(e,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+x.call(y,", ")+" }":"")}if(mr(e)){var h=Z?B.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ze.call(e);return typeof e=="object"&&!Z?oe(h):h}if(io(e)){for(var S="<"+Pt.call(String(e.nodeName)),P=e.attributes||[],I=0;I<P.length;I++)S+=" "+P[I].name+"="+hr(qn(P[I].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+Pt.call(String(e.nodeName))+">",S}if(tt(e)){if(e.length===0)return"[]";var g=ve(e,s);return p&&!co(g)?"["+rt(g,p)+"]":"[ "+x.call(g,", ")+" ]"}if(Vn(e)){var T=ve(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!vr.call(e,"cause")?"{ ["+String(e)+"] "+x.call(Rt.call("[cause]: "+s(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(T,", ")+" }"}if(typeof e=="object"&&i){if(wt&&typeof e[wt]=="function"&&et)return et(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(to(e)){var w=[];return _t&&_t.call(e,function(R,C){w.push(s(C,e,!0)+" => "+s(R,e))}),Ct("Map",Ee.call(e),w,p)}if(oo(e)){var H=[];return Et&&Et.call(e,function(R){H.push(s(R,e))}),Ct("Set",Ae.call(e),H,p)}if(ro(e))return Fe("WeakMap");if(ao(e))return Fe("WeakSet");if(no(e))return Fe("WeakRef");if(Yn(e))return oe(s(Number(e)));if(Jn(e))return oe(s(Je.call(e)));if(Qn(e))return oe(Bn.call(e));if(Kn(e))return oe(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof mt<"u"&&e===mt)return"{ [object globalThis] }";if(!zn(e)&&!Nt(e)){var M=ve(e,s),z=bt?bt(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",N=!z&&ce&&Object(e)===e&&ce in e?ut.call(G(e),8,-1):F?"Object":"",V=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=V+(N||F?"["+x.call(Rt.call([],N||[],F||[]),": ")+"] ":"");return M.length===0?U+"{}":p?U+"{"+rt(M,p)+"}":U+"{ "+x.call(M,", ")+" }"}return String(e)};function hr(t,e,r){var n=r.quoteStyle||e,o=gr[n];return o+t+o}function qn(t){return B.call(String(t),/"/g,""")}function q(t){return!ce||!(typeof t=="object"&&(ce in t||typeof t[ce]<"u"))}function tt(t){return G(t)==="[object Array]"&&q(t)}function zn(t){return G(t)==="[object Date]"&&q(t)}function Nt(t){return G(t)==="[object RegExp]"&&q(t)}function Vn(t){return G(t)==="[object Error]"&&q(t)}function Kn(t){return G(t)==="[object String]"&&q(t)}function Yn(t){return G(t)==="[object Number]"&&q(t)}function Qn(t){return G(t)==="[object Boolean]"&&q(t)}function mr(t){if(Z)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ze)return!1;try{return Ze.call(t),!0}catch{}return!1}function Jn(t){if(!t||typeof t!="object"||!Je)return!1;try{return Je.call(t),!0}catch{}return!1}var Zn=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return Zn.call(t,e)}function G(t){return Gn.call(t)}function eo(t){if(t.name)return t.name;var e=jn.call(Hn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Sr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function to(t){if(!Ee||!t||typeof t!="object")return!1;try{Ee.call(t);try{Ae.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ro(t){if(!ie||!t||typeof t!="object")return!1;try{ie.call(t,ie);try{le.call(t,le)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function no(t){if(!At||!t||typeof t!="object")return!1;try{return At.call(t),!0}catch{}return!1}function oo(t){if(!Ae||!t||typeof t!="object")return!1;try{Ae.call(t);try{Ee.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function ao(t){if(!le||!t||typeof t!="object")return!1;try{le.call(t,le);try{ie.call(t,ie)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function io(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function _r(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return _r(ut.call(t,0,e.maxStringLength),e)+n}var o=Wn[e.quoteStyle||"single"];o.lastIndex=0;var a=B.call(B.call(t,o,"\\$1"),/[\x00-\x1f]/g,lo);return hr(a,"single",e)}function lo(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+kn.call(e.toString(16))}function oe(t){return"Object("+t+")"}function Fe(t){return t+" { ? }"}function Ct(t,e,r,n){var o=n?rt(r,n):x.call(r,", ");return t+" ("+e+") {"+o+"}"}function co(t){for(var e=0;e<t.length;e++)if(Sr(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function uo(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=x.call(Array(t.indent+1)," ");else return null;return{base:r,prev:x.call(Array(e+1),r)}}function rt(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+x.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function ve(t,e){var r=tt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=L(t,o)?e(t[o],t):""}var a=typeof xe=="function"?xe(t):[],i;if(Z){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)L(t,c)&&(r&&String(Number(c))===c&&c<t.length||Z&&i["$"+c]instanceof Symbol||(dr.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof xe=="function")for(var f=0;f<a.length;f++)vr.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}var fo=be,so=te,Ie=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},po=function(t,e){if(t){var r=Ie(t,e);return r&&r.value}},yo=function(t,e,r){var n=Ie(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},vo=function(t,e){return t?!!Ie(t,e):!1},go=function(t,e){if(t)return Ie(t,e,!0)},ho=function(){var e,r={assert:function(n){if(!r.has(n))throw new so("Side channel does not contain "+fo(n))},delete:function(n){var o=e&&e.next,a=go(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return po(e,n)},has:function(n){return vo(e,n)},set:function(n,o){e||(e={next:void 0}),yo(e,n,o)}};return r},Er=Object,mo=Error,So=EvalError,_o=RangeError,Eo=ReferenceError,Ao=SyntaxError,Po=URIError,Ro=Math.abs,Oo=Math.floor,bo=Math.max,Io=Math.min,To=Math.pow,wo=Math.round,No=Number.isNaN||function(e){return e!==e},Co=No,Do=function(e){return Co(e)||e===0?e:e<0?-1:1},$o=Object.getOwnPropertyDescriptor,he=$o;if(he)try{he([],"length")}catch{he=null}var Ar=he,me=Object.defineProperty||!1;if(me)try{me({},"a",{value:1})}catch{me=!1}var xo=me,Le,Dt;function Fo(){return Dt||(Dt=1,Le=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),Le}var Me,$t;function Lo(){if($t)return Me;$t=1;var t=typeof Symbol<"u"&&Symbol,e=Fo();return Me=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Me}var Ue,xt;function Pr(){return xt||(xt=1,Ue=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ue}var Be,Ft;function Rr(){if(Ft)return Be;Ft=1;var t=Er;return Be=t.getPrototypeOf||null,Be}var Ge,Lt;function Mo(){if(Lt)return Ge;Lt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,f){for(var u=[],p=0;p<c.length;p+=1)u[p]=c[p];for(var s=0;s<f.length;s+=1)u[s+c.length]=f[s];return u},a=function(c,f){for(var u=[],p=f,s=0;p<c.length;p+=1,s+=1)u[s]=c[p];return u},i=function(l,c){for(var f="",u=0;u<l.length;u+=1)f+=l[u],u+1<l.length&&(f+=c);return f};return Ge=function(c){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var u=a(arguments,1),p,s=function(){if(this instanceof p){var P=f.apply(this,o(u,arguments));return Object(P)===P?P:this}return f.apply(c,o(u,arguments))},d=r(0,f.length-u.length),y=[],h=0;h<d;h++)y[h]="$"+h;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(s),f.prototype){var S=function(){};S.prototype=f.prototype,p.prototype=new S,S.prototype=null}return p},Ge}var He,Mt;function Te(){if(Mt)return He;Mt=1;var t=Mo();return He=Function.prototype.bind||t,He}var ft=Function.prototype.call,je,Ut;function Or(){return Ut||(Ut=1,je=Function.prototype.apply),je}var Uo=typeof Reflect<"u"&&Reflect&&Reflect.apply,Bo=Te(),Go=Or(),Ho=ft,jo=Uo,ko=jo||Bo.call(Ho,Go),Xo=Te(),Wo=te,qo=ft,zo=ko,br=function(e){if(e.length<1||typeof e[0]!="function")throw new Wo("a function is required");return zo(Xo,qo,e)},ke,Bt;function Vo(){if(Bt)return ke;Bt=1;var t=br,e=Ar,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&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return ke=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,ke}var Xe,Gt;function Ko(){if(Gt)return Xe;Gt=1;var t=Pr(),e=Rr(),r=Vo();return Xe=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,Xe}var We,Ht;function Yo(){if(Ht)return We;Ht=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Te();return We=r.call(t,e),We}var v,Qo=Er,Jo=mo,Zo=So,ea=_o,ta=Eo,ee=Ao,J=te,ra=Po,na=Ro,oa=Oo,aa=bo,ia=Io,la=To,ca=wo,ua=Do,Ir=Function,qe=function(t){try{return Ir('"use strict"; return ('+t+").constructor;")()}catch{}},fe=Ar,fa=xo,ze=function(){throw new J},sa=fe?function(){try{return arguments.callee,ze}catch{try{return fe(arguments,"callee").get}catch{return ze}}}():ze,K=Lo()(),A=Ko(),pa=Rr(),ya=Pr(),Tr=Or(),se=ft,Q={},da=typeof Uint8Array>"u"||!A?v:A(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":K&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Jo,"%eval%":eval,"%EvalError%":Zo,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":Ir,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!K||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Qo,"%Object.getOwnPropertyDescriptor%":fe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":ea,"%ReferenceError%":ta,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!K||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K&&A?A(""[Symbol.iterator]()):v,"%Symbol%":K?Symbol:v,"%SyntaxError%":ee,"%ThrowTypeError%":sa,"%TypedArray%":da,"%TypeError%":J,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":ra,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":se,"%Function.prototype.apply%":Tr,"%Object.defineProperty%":fa,"%Object.getPrototypeOf%":pa,"%Math.abs%":na,"%Math.floor%":oa,"%Math.max%":aa,"%Math.min%":ia,"%Math.pow%":la,"%Math.round%":ca,"%Math.sign%":ua,"%Reflect.getPrototypeOf%":ya};if(A)try{null.error}catch(t){var va=A(A(t));X["%Error.prototype%"]=va}var ga=function t(e){var r;if(e==="%AsyncFunction%")r=qe("async function () {}");else if(e==="%GeneratorFunction%")r=qe("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=qe("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return X[e]=r,r},jt={__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"]},pe=Te(),Pe=Yo(),ha=pe.call(se,Array.prototype.concat),ma=pe.call(Tr,Array.prototype.splice),kt=pe.call(se,String.prototype.replace),Re=pe.call(se,String.prototype.slice),Sa=pe.call(se,RegExp.prototype.exec),_a=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ea=/\\(\\)?/g,Aa=function(e){var r=Re(e,0,1),n=Re(e,-1);if(r==="%"&&n!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return kt(e,_a,function(a,i,l,c){o[o.length]=l?kt(c,Ea,"$1"):i||a}),o},Pa=function(e,r){var n=e,o;if(Pe(jt,n)&&(o=jt[n],n="%"+o[0]+"%"),Pe(X,n)){var a=X[n];if(a===Q&&(a=ga(n)),typeof a>"u"&&!r)throw new J("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ee("intrinsic "+e+" does not exist!")},st=function(e,r){if(typeof e!="string"||e.length===0)throw new J("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new J('"allowMissing" argument must be a boolean');if(Sa(/^%?[^%]*%?$/,e)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Aa(e),o=n.length>0?n[0]:"",a=Pa("%"+o+"%",r),i=a.name,l=a.value,c=!1,f=a.alias;f&&(o=f[0],ma(n,ha([0,1],f)));for(var u=1,p=!0;u<n.length;u+=1){var s=n[u],d=Re(s,0,1),y=Re(s,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new ee("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(c=!0),o+="."+s,i="%"+o+"%",Pe(X,i))l=X[i];else if(l!=null){if(!(s in l)){if(!r)throw new J("base intrinsic for "+e+" exists, but the property is not available.");return}if(fe&&u+1>=n.length){var h=fe(l,s);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?l=h.get:l=l[s]}else p=Pe(l,s),l=l[s];p&&!c&&(X[i]=l)}}return l},wr=st,Nr=br,Ra=Nr([wr("%String.prototype.indexOf%")]),Cr=function(e,r){var n=wr(e,!!r);return typeof n=="function"&&Ra(e,".prototype.")>-1?Nr([n]):n},Oa=st,ye=Cr,ba=be,Ia=te,Xt=Oa("%Map%",!0),Ta=ye("Map.prototype.get",!0),wa=ye("Map.prototype.set",!0),Na=ye("Map.prototype.has",!0),Ca=ye("Map.prototype.delete",!0),Da=ye("Map.prototype.size",!0),Dr=!!Xt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ia("Side channel does not contain "+ba(n))},delete:function(n){if(e){var o=Ca(e,n);return Da(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ta(e,n)},has:function(n){return e?Na(e,n):!1},set:function(n,o){e||(e=new Xt),wa(e,n,o)}};return r},$a=st,we=Cr,xa=be,ge=Dr,Fa=te,Y=$a("%WeakMap%",!0),La=we("WeakMap.prototype.get",!0),Ma=we("WeakMap.prototype.set",!0),Ua=we("WeakMap.prototype.has",!0),Ba=we("WeakMap.prototype.delete",!0),Ga=Y?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Fa("Side channel does not contain "+xa(o))},delete:function(o){if(Y&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ba(e,o)}else if(ge&&r)return r.delete(o);return!1},get:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?La(e,o):r&&r.get(o)},has:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?Ua(e,o):!!r&&r.has(o)},set:function(o,a){Y&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Y),Ma(e,o,a)):ge&&(r||(r=ge()),r.set(o,a))}};return n}:ge,Ha=te,ja=be,ka=ho,Xa=Dr,Wa=Ga,qa=Wa||Xa||ka,za=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ha("Side channel does not contain "+ja(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=qa()),e.set(n,o)}};return r},Va=String.prototype.replace,Ka=/%20/g,Ve={RFC1738:"RFC1738",RFC3986:"RFC3986"},pt={default:Ve.RFC3986,formatters:{RFC1738:function(t){return Va.call(t,Ka,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ve.RFC1738,RFC3986:Ve.RFC3986},Ya=pt,Ke=Object.prototype.hasOwnProperty,k=Array.isArray,D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Qa=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(k(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},$r=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Ja=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(k(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ke.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return k(e)&&!k(r)&&(o=$r(e,n)),k(e)&&k(r)?(r.forEach(function(a,i){if(Ke.call(e,i)){var l=e[i];l&&typeof l=="object"&&a&&typeof a=="object"?e[i]=t(l,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var l=r[i];return Ke.call(a,i)?a[i]=t(a[i],l,n):a[i]=l,a},o)},Za=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},ei=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Ye=1024,ti=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",c=0;c<i.length;c+=Ye){for(var f=i.length>=Ye?i.slice(c,c+Ye):i,u=[],p=0;p<f.length;++p){var s=f.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===Ya.RFC1738&&(s===40||s===41)){u[u.length]=f.charAt(p);continue}if(s<128){u[u.length]=D[s];continue}if(s<2048){u[u.length]=D[192|s>>6]+D[128|s&63];continue}if(s<55296||s>=57344){u[u.length]=D[224|s>>12]+D[128|s>>6&63]+D[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|f.charCodeAt(p)&1023),u[u.length]=D[240|s>>18]+D[128|s>>12&63]+D[128|s>>6&63]+D[128|s&63]}l+=u.join("")}return l},ri=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),c=0;c<l.length;++c){var f=l[c],u=i[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:i,prop:f}),n.push(u))}return Qa(r),e},ni=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},oi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},ai=function(e,r){return[].concat(e,r)},ii=function(e,r){if(k(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},xr={arrayToObject:$r,assign:Za,combine:ai,compact:ri,decode:ei,encode:ti,isBuffer:oi,isRegExp:ni,maybeMap:ii,merge:Ja},Fr=za,Se=xr,ue=pt,li=Object.prototype.hasOwnProperty,Lr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},$=Array.isArray,ci=Array.prototype.push,Mr=function(t,e){ci.apply(t,$(e)?e:[e])},ui=Date.prototype.toISOString,Wt=ue.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Se.encode,encodeValuesOnly:!1,filter:void 0,format:Wt,formatter:ue.formatters[Wt],indices:!1,serializeDate:function(e){return ui.call(e)},skipNulls:!1,strictNullHandling:!1},fi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Qe={},si=function t(e,r,n,o,a,i,l,c,f,u,p,s,d,y,h,S,P,I){for(var g=e,T=I,w=0,H=!1;(T=T.get(Qe))!==void 0&&!H;){var M=T.get(e);if(w+=1,typeof M<"u"){if(M===w)throw new RangeError("Cyclic object value");H=!0}typeof T.get(Qe)>"u"&&(w=0)}if(typeof u=="function"?g=u(r,g):g instanceof Date?g=d(g):n==="comma"&&$(g)&&(g=Se.maybeMap(g,function(ne){return ne instanceof Date?d(ne):ne})),g===null){if(i)return f&&!S?f(r,_.encoder,P,"key",y):r;g=""}if(fi(g)||Se.isBuffer(g)){if(f){var z=S?r:f(r,_.encoder,P,"key",y);return[h(z)+"="+h(f(g,_.encoder,P,"value",y))]}return[h(r)+"="+h(String(g))]}var F=[];if(typeof g>"u")return F;var N;if(n==="comma"&&$(g))S&&f&&(g=Se.maybeMap(g,f)),N=[{value:g.length>0?g.join(",")||null:void 0}];else if($(u))N=u;else{var V=Object.keys(g);N=p?V.sort(p):V}var U=c?String(r).replace(/\./g,"%2E"):String(r),R=o&&$(g)&&g.length===1?U+"[]":U;if(a&&$(g)&&g.length===0)return R+"[]";for(var C=0;C<N.length;++C){var b=N[C],j=typeof b=="object"&&b&&typeof b.value<"u"?b.value:g[b];if(!(l&&j===null)){var re=s&&c?String(b).replace(/\./g,"%2E"):String(b),Ce=$(g)?typeof n=="function"?n(R,re):R:R+(s?"."+re:"["+re+"]");I.set(e,w);var de=Fr();de.set(Qe,I),Mr(F,t(j,Ce,n,o,a,i,l,c,n==="comma"&&S&&$(g)?null:f,u,p,s,d,y,h,S,P,de))}}return F},pi=function(e){if(!e)return _;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||_.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ue.default;if(typeof e.format<"u"){if(!li.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=ue.formatters[n],a=_.filter;(typeof e.filter=="function"||$(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Lr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=_.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},yi=function(t,e){var r=t,n=pi(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):$(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=Lr[n.arrayFormat],c=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Fr(),u=0;u<o.length;++u){var p=o[u],s=r[p];n.skipNulls&&s===null||Mr(i,si(s,p,l,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var d=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},W=xr,nt=Object.prototype.hasOwnProperty,qt=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:W.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},di=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Ur=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},vi="utf8=%26%2310003%3B",gi="utf8=%E2%9C%93",hi=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,c,f=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===gi?f="utf-8":i[c]===vi&&(f="iso-8859-1"),l=c,c=i.length);for(c=0;c<i.length;++c)if(c!==l){var u=i[c],p=u.indexOf("]="),s=p===-1?u.indexOf("="):p+1,d,y;s===-1?(d=r.decoder(u,m.decoder,f,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(u.slice(0,s),m.decoder,f,"key"),y=W.maybeMap(Ur(u.slice(s+1),r,qt(n[d])?n[d].length:0),function(S){return r.decoder(S,m.decoder,f,"value")})),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=di(String(y))),u.indexOf("[]=")>-1&&(y=qt(y)?[y]:y);var h=nt.call(n,d);h&&r.duplicates==="combine"?n[d]=W.combine(n[d],y):(!h||r.duplicates==="last")&&(n[d]=y)}return n},mi=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:Ur(e,r,o),l=t.length-1;l>=0;--l){var c,f=t[l];if(f==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:W.combine([],i);else{c=r.plainObjects?{__proto__:null}:{};var u=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,s=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(s)&&f!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(c=[],c[s]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},Si=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(a),f=c?a.slice(0,c.index):a,u=[];if(f){if(!n.plainObjects&&nt.call(Object.prototype,f)&&!n.allowPrototypes)return;u.push(f)}for(var p=0;n.depth>0&&(c=l.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&nt.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(c.index)+"]")}return mi(u,r,n,o)}},_i=function(e){if(!e)return m;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?m.charset:e.charset,n=typeof e.duplicates>"u"?m.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||W.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Ei=function(t,e){var r=_i(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?hi(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Si(l,n[l],r,typeof t=="string");o=W.merge(o,c,r)}return r.allowSparse===!0?o:W.compact(o)},Ai=yi,Pi=Ei,Ri=pt,Oi={formats:Ri,parse:Pi,stringify:Ai};const bi=lr(Oi);async function Ne(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${bi.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function yt(t,e){return!(e!=null&&e.cms)||(e==null?void 0:e.cms)==="vtex"?`https://${e==null?void 0:e.storeId}.myvtex.com/_v/cms/api/${e==null?void 0:e.name}/${t}`:String(new URL(`api/${t}`,process.env.NEXT_PUBLIC_API_URL))}function Br(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Gr(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",l=new URL(yt(`${t}${i}`,r)),c=await Ne(l,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const f=await c.json(),u=e.findIndex(p=>p.documentId===f.id);return u!==-1?(e[u]=f,[...e]):[f,...e]}return e}const Ii=Object.freeze(Object.defineProperty({__proto__:null,createUrl:yt,fetchCMS:Ne,mergePreviewDocument:Gr,spreadStrapiData:Br},Symbol.toStringTag,{value:"Module"}));async function Hr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Ne(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?Br(a):a}:{status:404,data:[],error:"No data found"}}async function jr(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,c=0,f=!0;try{do{const u=await Ne(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(c=u.totalItems),Array.isArray(u==null?void 0:u.data)&&i.push(...u.data),f=!!(u!=null&&u.hasNextPage),l++}while(f&&i.length<c);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const u=await Gr(t,i,a);return{status:u.length>0?200:404,data:u}}return{status:i.length?200:404,data:i}}catch(u){return{status:500,data:[],error:u instanceof Error?u.message:String(u)}}}const Ti=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Hr,vtexCMSData:jr},Symbol.toStringTag,{value:"Module"}));async function wi({contentType:t,documentId:e,versionId:r,storeId:n,CMS_PROJECT_NAME:o}){const a=e&&e.length?`/${e}`:"",i=r&&r.length?`?versionId=${r}`:"";return fetch(`https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,{cache:"no-cache"})}async function kr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(yt(t,e));return n!=="vtex"?Hr(o,e,r):jr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Ni=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:kr,getCMSContentType:wi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Dn;exports.addLocale=fr;exports.addPathPrefix=it;exports.addSearchParamsFacets=gn;exports.catalogHelpers=Cn;exports.cms=Ni;exports.cmsHelpers=Ti;exports.cmsUtils=Ii;exports.constants=ur;exports.convertSearchParams=_n;exports.detectDomainLocale=pr;exports.disableSKU=Zt;exports.fetchContentType=kr;exports.filterNonCategorySelected=un;exports.filterNonRootFacets=mn;exports.formatPriceToCurrency=_e;exports.formattedFacets=vn;exports.formattedSimilars=yr;exports.freightParsePrice=zt;exports.getColorAndSizeFromSkuName=Kt;exports.getDefaultExportFromCjs=lr;exports.getDiscountPercent=Vt;exports.getFirstImages=or;exports.getProductNameWithoutSku=Qt;exports.getSKUName=Yt;exports.getSkuInfos=Jt;exports.getThumbImage=tr;exports.getValidOffer=er;exports.navigateToSearchPage=En;exports.normalizeLocalePath=sr;exports.parsePath=Oe;exports.parseSearchState=Sn;exports.pathHasPrefix=at;exports.productHelpers=ln;exports.removeTrailingSlash=cr;exports.resizingImg=rr;exports.responsive=ae;exports.setVideoPlay=ar;exports.splitNameAndSizeFromFullName=ot;exports.updatedResizedImg=nr;
|