@soma-vertical-web/multi-lib 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ "use strict";const x=require("react/jsx-runtime"),kr=require("@soma-vertical-web/core-components"),me=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Bt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:me(0):me(t/100),Ut=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},et=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Lt=(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()}},qt=(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(),Fr=t=>t.replace(/\//g,""),Wt=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,f)=>{var s;f&&(f.sellerId=i.sellerId,f.sellerName=i.sellerName,f.available=!0,f.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:c}}=i.commertialOffer;r.price=l,r.listPrice=u;const p=(s=c==null?void 0:c[0])==null?void 0:s.installments;if(p){const{count:v,value:y}=p[p.length-1];r.installments={count:v,value:y/100}}};let o=!0;const a=t.reduce((i,f)=>{var c;const l={name:f.name,sku:f.itemId,value:((c=f.Tamanho)==null?void 0:c[0])??et(f.nameComplete??f.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=f.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),i.push(l),i},[]);return{...r,sizes:a,allSizesAvailable:o}},Gt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,Ht=(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)},Kt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],Vt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Qt=(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},Jt=({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},Nr=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},Yt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Tr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Gt,formatPriceToCurrency:me,freightParsePrice:Bt,getAspectRatio:Nr,getColorAndSizeFromSkuName:Lt,getDiscountPercent:Ut,getFirstImages:Jt,getProductNameWithoutSku:zt,getSKUName:qt,getSkuInfos:Wt,getThumbImage:Kt,getValidOffer:Ht,removeSlashes:Fr,resizingImg:Vt,setVideoPlay:Yt,splitNameAndSizeFromFullName:et,updatedResizedImg:Qt},Symbol.toStringTag,{value:"Module"})),ft="fuzzy",ut="operator",Cr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),Dr=(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})},Xt=(t,e)=>e?t==="category-1":!1,Mr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),jr=t=>t.type==="TEXT",Br=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Ur=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))}},Lr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),qr=(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||!Xt(i.key,o)).map(i=>jr(i)?Ur(i):Lr(i))},zr=(t,e)=>{const r=t.find(({key:o})=>o===ft)??null,n=t.find(({key:o})=>o===ut)??null;r&&Br(r)&&e.append(ft,r.value),n&&Mr(n)&&e.append(ut,n.value)},Wr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),Gr=(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}=Cr(n);return n==null?void 0:n.filter(a=>!Xt(a.key,o))},Hr=({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:Wr(r),term:o,base:o?"":t,page:a}},Kr=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},Vr=(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 Zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qr(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}const ee={"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"},Jr="_header_9xxjk_57",Yr="_actions_9xxjk_131",Xr="_breadcrumb_9xxjk_142",Zr="_credits_9xxjk_157",en="_pdplinks_9xxjk_185",tn="_similars_9xxjk_212",rn="_sizes_9xxjk_251",nn="_measurementTable_9xxjk_267",on="_measurementHead_9xxjk_280",an="_measurementRows_9xxjk_285",ln="_measurementRowsTitle_9xxjk_302",cn="_measurementRowsText_9xxjk_314",fn="_measurementImage_9xxjk_325",un="_measurementImageContainer_9xxjk_328",sn="_measurementContent_9xxjk_337",pn="_measurementTitle_9xxjk_341",yn="_measurementClose_9xxjk_352",dn="_productref_9xxjk_417",vn="_slideOut_9xxjk_1",mn="_slideIn_9xxjk_1",gn="_content_9xxjk_397",hn="_pdp_9xxjk_185",_n="_divider_9xxjk_575",bn={"bottom-navigation":"_bottom-navigation_9xxjk_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_9xxjk_18","bottom-navigation__header":"_bottom-navigation__header_9xxjk_21","bottom-navigation__header-content":"_bottom-navigation__header-content_9xxjk_26","golden-tag-content":"_golden-tag-content_9xxjk_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_9xxjk_48",header:Jr,"golden-tag":"_golden-tag_9xxjk_45","golden-tag-video":"_golden-tag-video_9xxjk_86","golden-tag-content-text":"_golden-tag-content-text_9xxjk_105",actions:Yr,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:Xr,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:Zr,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:en,"links-wrapper":"_links-wrapper_9xxjk_195",similars:tn,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:rn,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:nn,measurementHead:on,measurementRows:an,measurementRowsTitle:ln,measurementRowsText:cn,measurementImage:fn,measurementImageContainer:un,measurementContent:sn,measurementTitle:pn,measurementClose:yn,"tabs-root-modifier":"_tabs-root-modifier_9xxjk_358","tabs-list-modifier":"_tabs-list-modifier_9xxjk_376","tabs-item-modifier":"_tabs-item-modifier_9xxjk_393","content-wrapper":"_content-wrapper_9xxjk_397",productref:dn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:vn,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:mn,content:gn,pdp:hn,"pdp-main":"_pdp-main_9xxjk_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_9xxjk_501","pdp-main__info":"_pdp-main__info_9xxjk_518","pdp-main__info-main-content":"_pdp-main__info-main-content_9xxjk_533","pdp-main__info-subsection":"_pdp-main__info-subsection_9xxjk_533","subsection-product-info":"_subsection-product-info_9xxjk_544","subsection-similars":"_subsection-similars_9xxjk_547","subsection-sizes":"_subsection-sizes_9xxjk_550","subsection-actions":"_subsection-actions_9xxjk_553","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_9xxjk_557","sections-title":"_sections-title_9xxjk_563",divider:_n,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},Sn=({children:t,data:e,SectionZone:r,className:n})=>{var c,p;const o=((c=e==null?void 0:e.filter(s=>{var v,y;return((y=(v=s.config)==null?void 0:v.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:c.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var v,y;return((y=(v=s.config)==null?void 0:v.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),f=o.slice(1,o.length),l=a.slice(0,1),u=a.slice(1,a.length);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:n,children:[x.jsx("div",{className:ee["responsive-mobile-flex"],children:x.jsx(r,{data:i??[]})}),x.jsx("div",{className:ee["responsive-desktop-flex"],children:x.jsx(r,{data:l??[]})})]}),t,x.jsx("div",{className:ee["responsive-mobile-flex"],children:x.jsx(r,{data:f??[]})}),x.jsx("div",{className:ee["responsive-desktop-flex"],children:x.jsx(r,{data:u??[]})}),x.jsx(kr.Utils.Divider,{})]})};var J=TypeError;const wn={},xn=Object.freeze(Object.defineProperty({__proto__:null,default:wn},Symbol.toStringTag,{value:"Module"})),An=Qr(xn);var tt=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&tt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=tt&&$e&&typeof $e.get=="function"?$e.get:null,pt=tt&&Map.prototype.forEach,rt=typeof Set=="function"&&Set.prototype,Ie=Object.getOwnPropertyDescriptor&&rt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,he=rt&&Ie&&typeof Ie.get=="function"?Ie.get:null,yt=rt&&Set.prototype.forEach,On=typeof WeakMap=="function"&&WeakMap.prototype,te=On?WeakMap.prototype.has:null,Pn=typeof WeakSet=="function"&&WeakSet.prototype,re=Pn?WeakSet.prototype.has:null,En=typeof WeakRef=="function"&&WeakRef.prototype,dt=En?WeakRef.prototype.deref:null,$n=Boolean.prototype.valueOf,In=Object.prototype.toString,Rn=Function.prototype.toString,kn=String.prototype.match,nt=String.prototype.slice,T=String.prototype.replace,Fn=String.prototype.toUpperCase,vt=String.prototype.toLowerCase,er=RegExp.prototype.test,mt=Array.prototype.concat,E=Array.prototype.join,Nn=Array.prototype.slice,gt=Math.floor,Ve=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,tr=Object.prototype.propertyIsEnumerable,ht=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _t(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||er.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-gt(-t):gt(t);if(n!==t){var o=String(n),a=nt.call(e,o.length+1);return T.call(o,r,"$&_")+"."+T.call(T.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(e,r,"$&_")}var Je=An,bt=Je.custom,St=or(bt)?bt:null,rr={__proto__:null,double:'"',single:"'"},Tn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if(I(a,"quoteStyle")&&!I(rr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(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=I(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(I(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(I(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=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 ir(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return f?_t(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return f?_t(e,u):u}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Ye(e)?"[Array]":"[Object]";var p=Xn(a,n);if(typeof o>"u")o=[];else if(ar(o,e)>=0)return"[Circular]";function s(A,N,$){if(N&&(o=Nn.call(o),o.push(N)),$){var X={depth:a.depth};return I(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(A,X,n+1,o)}return t(A,a,n+1,o)}if(typeof e=="function"&&!wt(e)){var v=zn(e),y=se(e,s);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+E.call(y,", ")+" }":"")}if(or(e)){var h=V?T.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qe.call(e);return typeof e=="object"&&!V?Z(h):h}if(Qn(e)){for(var S="<"+vt.call(String(e.nodeName)),w=e.attributes||[],R=0;R<w.length;R++)S+=" "+w[R].name+"="+nr(Cn(w[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+vt.call(String(e.nodeName))+">",S}if(Ye(e)){if(e.length===0)return"[]";var m=se(e,s);return p&&!Yn(m)?"["+Xe(m,p)+"]":"[ "+E.call(m,", ")+" ]"}if(Mn(e)){var k=se(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!tr.call(e,"cause")?"{ ["+String(e)+"] "+E.call(mt.call("[cause]: "+s(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(k,", ")+" }"}if(typeof e=="object"&&i){if(St&&typeof e[St]=="function"&&Je)return Je(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Wn(e)){var D=[];return pt&&pt.call(e,function(A,N){D.push(s(N,e,!0)+" => "+s(A,e))}),xt("Map",ge.call(e),D,p)}if(Kn(e)){var Y=[];return yt&&yt.call(e,function(A){Y.push(s(A,e))}),xt("Set",he.call(e),Y,p)}if(Gn(e))return ke("WeakMap");if(Vn(e))return ke("WeakSet");if(Hn(e))return ke("WeakRef");if(Bn(e))return Z(s(Number(e)));if(Ln(e))return Z(s(Ve.call(e)));if(Un(e))return Z($n.call(e));if(jn(e))return Z(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(!Dn(e)&&!wt(e)){var q=se(e,s),fe=ht?ht(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",F=!fe&&ne&&Object(e)===e&&ne in e?nt.call(C(e),8,-1):M?"Object":"",ue=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",z=ue+(F||M?"["+E.call(mt.call([],F||[],M||[]),": ")+"] ":"");return q.length===0?z+"{}":p?z+"{"+Xe(q,p)+"}":z+"{ "+E.call(q,", ")+" }"}return String(e)};function nr(t,e,r){var n=r.quoteStyle||e,o=rr[n];return o+t+o}function Cn(t){return T.call(String(t),/"/g,"&quot;")}function L(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Ye(t){return C(t)==="[object Array]"&&L(t)}function Dn(t){return C(t)==="[object Date]"&&L(t)}function wt(t){return C(t)==="[object RegExp]"&&L(t)}function Mn(t){return C(t)==="[object Error]"&&L(t)}function jn(t){return C(t)==="[object String]"&&L(t)}function Bn(t){return C(t)==="[object Number]"&&L(t)}function Un(t){return C(t)==="[object Boolean]"&&L(t)}function or(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Qe)return!1;try{return Qe.call(t),!0}catch{}return!1}function Ln(t){if(!t||typeof t!="object"||!Ve)return!1;try{return Ve.call(t),!0}catch{}return!1}var qn=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return qn.call(t,e)}function C(t){return In.call(t)}function zn(t){if(t.name)return t.name;var e=kn.call(Rn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function ar(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 Wn(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{he.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Gn(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{re.call(t,re)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Hn(t){if(!dt||!t||typeof t!="object")return!1;try{return dt.call(t),!0}catch{}return!1}function Kn(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Vn(t){if(!re||!t||typeof t!="object")return!1;try{re.call(t,re);try{te.call(t,te)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Qn(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ir(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ir(nt.call(t,0,e.maxStringLength),e)+n}var o=Tn[e.quoteStyle||"single"];o.lastIndex=0;var a=T.call(T.call(t,o,"\\$1"),/[\x00-\x1f]/g,Jn);return nr(a,"single",e)}function Jn(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":"")+Fn.call(e.toString(16))}function Z(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function xt(t,e,r,n){var o=n?Xe(r,n):E.call(r,", ");return t+" ("+e+") {"+o+"}"}function Yn(t){for(var e=0;e<t.length;e++)if(ar(t[e],`
2
+ `)>=0)return!1;return!0}function Xn(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=E.call(Array(t.indent+1)," ");else return null;return{base:r,prev:E.call(Array(e+1),r)}}function Xe(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+E.call(t,","+r)+`
4
+ `+e.prev}function se(t,e){var r=Ye(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=I(t,o)?e(t[o],t):""}var a=typeof Re=="function"?Re(t):[],i;if(V){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in t)I(t,l)&&(r&&String(Number(l))===l&&l<t.length||V&&i["$"+l]instanceof Symbol||(er.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Re=="function")for(var u=0;u<a.length;u++)tr.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var Zn=Se,eo=J,we=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},to=function(t,e){if(t){var r=we(t,e);return r&&r.value}},ro=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},no=function(t,e){return t?!!we(t,e):!1},oo=function(t,e){if(t)return we(t,e,!0)},ao=function(){var e,r={assert:function(n){if(!r.has(n))throw new eo("Side channel does not contain "+Zn(n))},delete:function(n){var o=e&&e.next,a=oo(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return to(e,n)},has:function(n){return no(e,n)},set:function(n,o){e||(e={next:void 0}),ro(e,n,o)}};return r},lr=Object,io=Error,lo=EvalError,co=RangeError,fo=ReferenceError,uo=SyntaxError,so=URIError,po=Math.abs,yo=Math.floor,vo=Math.max,mo=Math.min,go=Math.pow,ho=Math.round,_o=Number.isNaN||function(e){return e!==e},bo=_o,So=function(e){return bo(e)||e===0?e:e<0?-1:1},wo=Object.getOwnPropertyDescriptor,ye=wo;if(ye)try{ye([],"length")}catch{ye=null}var cr=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var xo=de,Fe,At;function Ao(){return At||(At=1,Fe=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 f=Object.getOwnPropertyDescriptor(e,r);if(f.value!==o||f.enumerable!==!0)return!1}return!0}),Fe}var Ne,Ot;function Oo(){if(Ot)return Ne;Ot=1;var t=typeof Symbol<"u"&&Symbol,e=Ao();return Ne=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ne}var Te,Pt;function fr(){return Pt||(Pt=1,Te=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Te}var Ce,Et;function ur(){if(Et)return Ce;Et=1;var t=lr;return Ce=t.getPrototypeOf||null,Ce}var De,$t;function Po(){if($t)return De;$t=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var c=[],p=0;p<l.length;p+=1)c[p]=l[p];for(var s=0;s<u.length;s+=1)c[s+l.length]=u[s];return c},a=function(l,u){for(var c=[],p=u,s=0;p<l.length;p+=1,s+=1)c[s]=l[p];return c},i=function(f,l){for(var u="",c=0;c<f.length;c+=1)u+=f[c],c+1<f.length&&(u+=l);return u};return De=function(l){var u=this;if(typeof u!="function"||e.apply(u)!==n)throw new TypeError(t+u);for(var c=a(arguments,1),p,s=function(){if(this instanceof p){var w=u.apply(this,o(c,arguments));return Object(w)===w?w:this}return u.apply(l,o(c,arguments))},v=r(0,u.length-c.length),y=[],h=0;h<v;h++)y[h]="$"+h;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(s),u.prototype){var S=function(){};S.prototype=u.prototype,p.prototype=new S,S.prototype=null}return p},De}var Me,It;function xe(){if(It)return Me;It=1;var t=Po();return Me=Function.prototype.bind||t,Me}var ot=Function.prototype.call,je,Rt;function sr(){return Rt||(Rt=1,je=Function.prototype.apply),je}var Eo=typeof Reflect<"u"&&Reflect&&Reflect.apply,$o=xe(),Io=sr(),Ro=ot,ko=Eo,Fo=ko||$o.call(Ro,Io),No=xe(),To=J,Co=ot,Do=Fo,pr=function(e){if(e.length<1||typeof e[0]!="function")throw new To("a function is required");return Do(No,Co,e)},Be,kt;function Mo(){if(kt)return Be;kt=1;var t=pr,e=cr,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 Be=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(f){return a(f==null?f:o(f))}:!1,Be}var Ue,Ft;function jo(){if(Ft)return Ue;Ft=1;var t=fr(),e=ur(),r=Mo();return Ue=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,Ue}var Le,Nt;function Bo(){if(Nt)return Le;Nt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=xe();return Le=r.call(t,e),Le}var d,Uo=lr,Lo=io,qo=lo,zo=co,Wo=fo,Q=uo,K=J,Go=so,Ho=po,Ko=yo,Vo=vo,Qo=mo,Jo=go,Yo=ho,Xo=So,yr=Function,qe=function(t){try{return yr('"use strict"; return ('+t+").constructor;")()}catch{}},ae=cr,Zo=xo,ze=function(){throw new K},ea=ae?function(){try{return arguments.callee,ze}catch{try{return ae(arguments,"callee").get}catch{return ze}}}():ze,W=Oo()(),b=jo(),ta=ur(),ra=fr(),dr=sr(),ie=ot,H={},na=typeof Uint8Array>"u"||!b?d:b(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":W&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Lo,"%eval%":eval,"%EvalError%":qo,"%Float16Array%":typeof Float16Array>"u"?d:Float16Array,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":yr,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":W&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!W||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Uo,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":zo,"%ReferenceError%":Wo,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!W||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":W&&b?b(""[Symbol.iterator]()):d,"%Symbol%":W?Symbol:d,"%SyntaxError%":Q,"%ThrowTypeError%":ea,"%TypedArray%":na,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":Go,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":dr,"%Object.defineProperty%":Zo,"%Object.getPrototypeOf%":ta,"%Math.abs%":Ho,"%Math.floor%":Ko,"%Math.max%":Vo,"%Math.min%":Qo,"%Math.pow%":Jo,"%Math.round%":Yo,"%Math.sign%":Xo,"%Reflect.getPrototypeOf%":ra};if(b)try{null.error}catch(t){var oa=b(b(t));B["%Error.prototype%"]=oa}var aa=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&&b&&(r=b(o.prototype))}return B[e]=r,r},Tt={__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"]},le=xe(),_e=Bo(),ia=le.call(ie,Array.prototype.concat),la=le.call(dr,Array.prototype.splice),Ct=le.call(ie,String.prototype.replace),be=le.call(ie,String.prototype.slice),ca=le.call(ie,RegExp.prototype.exec),fa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ua=/\\(\\)?/g,sa=function(e){var r=be(e,0,1),n=be(e,-1);if(r==="%"&&n!=="%")throw new Q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Q("invalid intrinsic syntax, expected opening `%`");var o=[];return Ct(e,fa,function(a,i,f,l){o[o.length]=f?Ct(l,ua,"$1"):i||a}),o},pa=function(e,r){var n=e,o;if(_e(Tt,n)&&(o=Tt[n],n="%"+o[0]+"%"),_e(B,n)){var a=B[n];if(a===H&&(a=aa(n)),typeof a>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Q("intrinsic "+e+" does not exist!")},at=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(ca(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sa(e),o=n.length>0?n[0]:"",a=pa("%"+o+"%",r),i=a.name,f=a.value,l=!1,u=a.alias;u&&(o=u[0],la(n,ia([0,1],u)));for(var c=1,p=!0;c<n.length;c+=1){var s=n[c],v=be(s,0,1),y=be(s,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new Q("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(l=!0),o+="."+s,i="%"+o+"%",_e(B,i))f=B[i];else if(f!=null){if(!(s in f)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&c+1>=n.length){var h=ae(f,s);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?f=h.get:f=f[s]}else p=_e(f,s),f=f[s];p&&!l&&(B[i]=f)}}return f},vr=at,mr=pr,ya=mr([vr("%String.prototype.indexOf%")]),gr=function(e,r){var n=vr(e,!!r);return typeof n=="function"&&ya(e,".prototype.")>-1?mr([n]):n},da=at,ce=gr,va=Se,ma=J,Dt=da("%Map%",!0),ga=ce("Map.prototype.get",!0),ha=ce("Map.prototype.set",!0),_a=ce("Map.prototype.has",!0),ba=ce("Map.prototype.delete",!0),Sa=ce("Map.prototype.size",!0),hr=!!Dt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new ma("Side channel does not contain "+va(n))},delete:function(n){if(e){var o=ba(e,n);return Sa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return ga(e,n)},has:function(n){return e?_a(e,n):!1},set:function(n,o){e||(e=new Dt),ha(e,n,o)}};return r},wa=at,Ae=gr,xa=Se,pe=hr,Aa=J,G=wa("%WeakMap%",!0),Oa=Ae("WeakMap.prototype.get",!0),Pa=Ae("WeakMap.prototype.set",!0),Ea=Ae("WeakMap.prototype.has",!0),$a=Ae("WeakMap.prototype.delete",!0),Ia=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Aa("Side channel does not contain "+xa(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return $a(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Oa(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Ea(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),Pa(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Ra=J,ka=Se,Fa=ao,Na=hr,Ta=Ia,Ca=Ta||Na||Fa,Da=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ra("Side channel does not contain "+ka(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=Ca()),e.set(n,o)}};return r},Ma=String.prototype.replace,ja=/%20/g,We={RFC1738:"RFC1738",RFC3986:"RFC3986"},it={default:We.RFC3986,formatters:{RFC1738:function(t){return Ma.call(t,ja,"+")},RFC3986:function(t){return String(t)}},RFC1738:We.RFC1738,RFC3986:We.RFC3986},Ba=it,Ge=Object.prototype.hasOwnProperty,j=Array.isArray,O=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Ua=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(j(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},La=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(j(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ge.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 j(e)&&!j(r)&&(o=_r(e,n)),j(e)&&j(r)?(r.forEach(function(a,i){if(Ge.call(e,i)){var f=e[i];f&&typeof f=="object"&&a&&typeof a=="object"?e[i]=t(f,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var f=r[i];return Ge.call(a,i)?a[i]=t(a[i],f,n):a[i]=f,a},o)},qa=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},za=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}},He=1024,Wa=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(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var f="",l=0;l<i.length;l+=He){for(var u=i.length>=He?i.slice(l,l+He):i,c=[],p=0;p<u.length;++p){var s=u.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===Ba.RFC1738&&(s===40||s===41)){c[c.length]=u.charAt(p);continue}if(s<128){c[c.length]=O[s];continue}if(s<2048){c[c.length]=O[192|s>>6]+O[128|s&63];continue}if(s<55296||s>=57344){c[c.length]=O[224|s>>12]+O[128|s>>6&63]+O[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=O[240|s>>18]+O[128|s>>12&63]+O[128|s>>6&63]+O[128|s&63]}f+=c.join("")}return f},Ga=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],f=Object.keys(i),l=0;l<f.length;++l){var u=f[l],c=i[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:u}),n.push(c))}return Ua(r),e},Ha=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ka=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Va=function(e,r){return[].concat(e,r)},Qa=function(e,r){if(j(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},br={arrayToObject:_r,assign:qa,combine:Va,compact:Ga,decode:za,encode:Wa,isBuffer:Ka,isRegExp:Ha,maybeMap:Qa,merge:La},Sr=Da,ve=br,oe=it,Ja=Object.prototype.hasOwnProperty,wr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},P=Array.isArray,Ya=Array.prototype.push,xr=function(t,e){Ya.apply(t,P(e)?e:[e])},Xa=Date.prototype.toISOString,Mt=oe.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Mt,formatter:oe.formatters[Mt],indices:!1,serializeDate:function(e){return Xa.call(e)},skipNulls:!1,strictNullHandling:!1},Za=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ke={},ei=function t(e,r,n,o,a,i,f,l,u,c,p,s,v,y,h,S,w,R){for(var m=e,k=R,D=0,Y=!1;(k=k.get(Ke))!==void 0&&!Y;){var q=k.get(e);if(D+=1,typeof q<"u"){if(q===D)throw new RangeError("Cyclic object value");Y=!0}typeof k.get(Ke)>"u"&&(D=0)}if(typeof c=="function"?m=c(r,m):m instanceof Date?m=v(m):n==="comma"&&P(m)&&(m=ve.maybeMap(m,function(Ee){return Ee instanceof Date?v(Ee):Ee})),m===null){if(i)return u&&!S?u(r,_.encoder,w,"key",y):r;m=""}if(Za(m)||ve.isBuffer(m)){if(u){var fe=S?r:u(r,_.encoder,w,"key",y);return[h(fe)+"="+h(u(m,_.encoder,w,"value",y))]}return[h(r)+"="+h(String(m))]}var M=[];if(typeof m>"u")return M;var F;if(n==="comma"&&P(m))S&&u&&(m=ve.maybeMap(m,u)),F=[{value:m.length>0?m.join(",")||null:void 0}];else if(P(c))F=c;else{var ue=Object.keys(m);F=p?ue.sort(p):ue}var z=l?String(r).replace(/\./g,"%2E"):String(r),A=o&&P(m)&&m.length===1?z+"[]":z;if(a&&P(m)&&m.length===0)return A+"[]";for(var N=0;N<F.length;++N){var $=F[N],X=typeof $=="object"&&$&&typeof $.value<"u"?$.value:m[$];if(!(f&&X===null)){var Pe=s&&l?String($).replace(/\./g,"%2E"):String($),Rr=P(m)?typeof n=="function"?n(A,Pe):A:A+(s?"."+Pe:"["+Pe+"]");R.set(e,D);var ct=Sr();ct.set(Ke,R),xr(M,t(X,Rr,n,o,a,i,f,l,n==="comma"&&S&&P(m)?null:u,c,p,s,v,y,h,S,w,ct))}}return M},ti=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=oe.default;if(typeof e.format<"u"){if(!Ja.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=_.filter;(typeof e.filter=="function"||P(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in wr?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 f=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:f,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}},ri=function(t,e){var r=t,n=ti(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):P(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var f=wr[n.arrayFormat],l=f==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=Sr(),c=0;c<o.length;++c){var p=o[c],s=r[p];n.skipNulls&&s===null||xr(i,ei(s,p,f,l,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,u))}var v=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&"),v.length>0?y+v:""},U=br,Ze=Object.prototype.hasOwnProperty,jt=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:U.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},ni=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Ar=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},oi="utf8=%26%2310003%3B",ai="utf8=%E2%9C%93",ii=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 f=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===ai?u="utf-8":i[l]===oi&&(u="iso-8859-1"),f=l,l=i.length);for(l=0;l<i.length;++l)if(l!==f){var c=i[l],p=c.indexOf("]="),s=p===-1?c.indexOf("="):p+1,v,y;s===-1?(v=r.decoder(c,g.decoder,u,"key"),y=r.strictNullHandling?null:""):(v=r.decoder(c.slice(0,s),g.decoder,u,"key"),y=U.maybeMap(Ar(c.slice(s+1),r,jt(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,u,"value")})),y&&r.interpretNumericEntities&&u==="iso-8859-1"&&(y=ni(String(y))),c.indexOf("[]=")>-1&&(y=jt(y)?[y]:y);var h=Ze.call(n,v);h&&r.duplicates==="combine"?n[v]=U.combine(n[v],y):(!h||r.duplicates==="last")&&(n[v]=y)}return n},li=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:Ar(e,r,o),f=t.length-1;f>=0;--f){var l,u=t[f];if(u==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i);else{l=r.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,s=parseInt(p,10);!r.parseArrays&&p===""?l={0:i}:!isNaN(s)&&u!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(l=[],l[s]=i):p!=="__proto__"&&(l[p]=i)}i=l}return i},ci=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(a),u=l?a.slice(0,l.index):a,c=[];if(u){if(!n.plainObjects&&Ze.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var p=0;n.depth>0&&(l=f.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Ze.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+a.slice(l.index)+"]")}return li(c,r,n,o)}},fi=function(e){if(!e)return g;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"?g.charset:e.charset,n=typeof e.duplicates>"u"?g.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:g.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||U.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:g.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},ui=function(t,e){var r=fi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?ii(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var f=a[i],l=ci(f,n[f],r,typeof t=="string");o=U.merge(o,l,r)}return r.allowSparse===!0?o:U.compact(o)},si=ri,pi=ui,yi=it,di={formats:yi,parse:pi,stringify:si};const vi=Zt(di);async function Oe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${vi.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 lt(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 Or(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Pr(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}`:"",f=new URL(lt(`${t}${i}`,r)),l=await Oe(f,r,o);if(!l.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`),[];const u=await l.json(),c=e.findIndex(p=>p.documentId===u.id);return c!==-1?(e[c]=u,[...e]):[u,...e]}return e}const mi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:lt,fetchCMS:Oe,mergePreviewDocument:Pr,spreadStrapiData:Or},Symbol.toStringTag,{value:"Module"}));async function Er(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Oe(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?Or(a):a}:{status:404,data:[],error:"No data found"}}async function $r(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 f=1,l=0,u=!0;try{do{const c=await Oe(e,{...a,page:f},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));f===1&&(l=c.totalItems),Array.isArray(c==null?void 0:c.data)&&i.push(...c.data),u=!!(c!=null&&c.hasNextPage),f++}while(u&&i.length<l);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const c=await Pr(t,i,a);return{status:c.length>0?200:404,data:c}}return{status:i.length?200:404,data:i}}catch(c){return{status:500,data:[],error:c instanceof Error?c.message:String(c)}}}const gi=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Er,vtexCMSData:$r},Symbol.toStringTag,{value:"Module"}));async function hi({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 Ir(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(lt(t,e));return n!=="vtex"?Er(o,e,r):$r(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const _i=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Ir,getCMSContentType:hi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Sn;exports.addSearchParamsFacets=zr;exports.cms=_i;exports.cmsHelpers=gi;exports.cmsUtils=mi;exports.convertSearchParams=Kr;exports.disableSKU=Gt;exports.fetchContentType=Ir;exports.filterNonCategorySelected=Dr;exports.filterNonRootFacets=Gr;exports.formatPriceToCurrency=me;exports.formattedFacets=qr;exports.freightParsePrice=Bt;exports.getColorAndSizeFromSkuName=Lt;exports.getDefaultExportFromCjs=Zt;exports.getDiscountPercent=Ut;exports.getFirstImages=Jt;exports.getProductNameWithoutSku=zt;exports.getSKUName=qt;exports.getSkuInfos=Wt;exports.getThumbImage=Kt;exports.getValidOffer=Ht;exports.navigateToSearchPage=Vr;exports.parseSearchState=Hr;exports.productHelpers=Tr;exports.resizingImg=Vt;exports.responsive=ee;exports.setVideoPlay=Yt;exports.splitNameAndSizeFromFullName=et;exports.styles=bn;exports.updatedResizedImg=Qt;