1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[896],{49029:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},18674:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},69877:function(e){var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},35393:function(e,t,n){var r=n(62663),o=n(53816),a=n(58748),i=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(a(o(t).replace(i,"")),e,"")}}},69389:function(e,t,n){var r=n(18674)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},93157:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2757:function(e){var t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",i="\\d+",l="[\\u2700-\\u27bf]",s="["+n+"]",c="[^\\ud800-\\udfff"+o+i+t+n+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+r+"]",p="(?:"+s+"|"+c+")",x="(?:"+f+"|"+c+")",h="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",m="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",g="[\\ufe0e\\ufe0f]?",b=g+v+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,d].join("|")+")"+g+v+")*"),j="(?:"+[l,u,d].join("|")+")"+b,y=RegExp([f+"?"+s+"+"+h+"(?="+[a,f,"$"].join("|")+")",x+"+"+m+"(?="+[a,f+p,"$"].join("|")+")",f+"?"+p+"+"+h,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,j].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},53816:function(e,t,n){var r=n(69389),o=n(79833),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(a,r).replace(i,"")}},21804:function(e,t,n){var r=n(35393)((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));e.exports=r},83608:function(e,t,n){var r=n(69877),o=n(16612),a=n(18601),i=parseFloat,l=Math.min,s=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&o(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=a(e),void 0===t?(t=e,e=0):t=a(t)),e>t){var c=e;e=t,t=c}if(n||e%1||t%1){var u=s();return l(e+u*(t-e+i("1e-"+((u+"").length-1))),t)}return r(e,t)}},58748:function(e,t,n){var r=n(49029),o=n(93157),a=n(79833),i=n(2757);e.exports=function(e,t,n){return e=a(e),void 0===(t=n?void 0:t)?o(e)?i(e):r(e):e.match(t)||[]}},35896:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ee}});var r,o,a=n(47568),i=n(828),l=n(34051),s=n.n(l),c=n(85893),u=n(86010),d=n(10990),f=n(91131),p=n(67294),x=n(55341),h=n.n(x),m=n(5152),v=n.n(m),g=n(60627),b=n(77043),j=n(81136);function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}var w,N=function(e){return p.createElement("svg",y({viewBox:"0 0 18 21",fill:"none"},e),r||(r=p.createElement("path",{d:"M9.766 3.94l-1.374-.002c-3.135-.008-5.857 2.54-5.878 5.625v3.553c0 .74-.094 1.463-.498 2.079l-.27.41c-.409.623.032 1.457.768 1.457h13.153c.736 0 1.175-.834.767-1.456l-.27-.411c-.403-.616-.497-1.34-.497-2.08V9.563c-.038-3.086-2.766-5.615-5.9-5.623v0zm2.136 13.123a2.813 2.813 0 11-5.625 0",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=p.createElement("path",{d:"M9.09 1.125A1.875 1.875 0 0110.965 3v.938h-3.75V3A1.875 1.875 0 019.09 1.125z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))},k=n(30342);function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(this,arguments)}var C=function(e){return p.createElement("svg",Z({viewBox:"0 0 16 16",fill:"none"},e),w||(w=p.createElement("path",{d:"M7.9 7.899a3.79 3.79 0 100-7.58 3.79 3.79 0 000 7.58zm2.526-3.79a2.527 2.527 0 11-5.054 0 2.527 2.527 0 015.054 0zm5.053 10.106c0 1.264-1.263 1.264-1.263 1.264H1.583s-1.264 0-1.264-1.264c0-1.263 1.264-5.053 7.58-5.053 6.317 0 7.58 3.79 7.58 5.053zm-1.263-.005c-.002-.31-.195-1.245-1.051-2.102-.824-.824-2.374-1.683-5.266-1.683-2.893 0-4.442.86-5.265 1.683-.857.857-1.049 1.791-1.051 2.102h12.633z",fill:"#000"})))},O=n(67203),A=n.n(O),E=n(26042),R=n(69396),S=n(99534);function P(e){var t=e.badgeCount,n=void 0===t?0:t,r=e.id,o=e.isActive,a=e.disabled,i=e.onClick,l=e.icon,s=(0,S.Z)(e,["badgeCount","id","isActive","disabled","onClick","icon"]),d=(0,p.useCallback)((function(){return i(r)}),[i,r]);return(0,c.jsxs)("button",(0,R.Z)((0,E.Z)({},s),{className:(0,u.Z)("menu-nav-btn flex invisible items-center justify-center w-[38px] h-[38px] md:w-[47px] md:h-[47px] relative rounded-full border transition-colors duration-50 ease-linear",o?"border-black":"border-transparent",a&&"cursor-not-allowed",!a&&"hover:border-black group-hover:border-black"),onClick:d,children:[l,n>0&&(0,c.jsx)("div",{className:"bg-update text-white absolute flex items-center justify-center h-[22px] aspect-square rounded-full top-0 right-0 text-xs px-0.5",children:Math.min(99,n)})]}))}var z=n(56764),I=function(e,t){return"boolean"===typeof t?t:!e},L=function(e){return(0,p.useReducer)(I,e)},U=n(83608),_=n.n(U),q=n(97334),M=n(10870),T=n(89391),D=n(88873),F=n(46675),G=n(43120),B=n(84104),K=n(3319);function W(){var e=(0,p.useState)(!1),t=e[0],n=e[1],r=(0,p.useRef)(null),o=function(){return n(!0)},a=function(){return n(!1)};return(0,p.useEffect)((function(){var e=r.current;if(e)return e.addEventListener("mouseover",o),e.addEventListener("mouseout",a),function(){e.removeEventListener("mouseover",o),e.removeEventListener("mouseout",a)}}),[r.current]),[r,t]}var H=n(2057),V=n.n(H),Y=function(){var e=(0,p.useState)(0),t=e[0],n=e[1];return{createGradient:(0,p.useCallback)((function(){n(_()(V().length-1))}),[]),gradient:V()[t]}};function Q(e){var t=e.onClose,n=(0,f.Dv)(T.nj),r=n.menu,o=n.newsletterSettings,a=o.email,i=(0,S.Z)(o,["email"]),l="mailto:".concat(a,"?").concat((0,q.stringify)(i));return(0,c.jsxs)("div",{className:"flex-1 h-full flex flex-col gap-8 md:gap-12 justify-between pb-16 mx-6 md:mx-14",children:[(0,c.jsxs)("ul",{className:"flex flex-1 flex-col items-center gap-2 pt-10 md:pt-16",children:[r.links.map((function(e){var n=e._id,r=(0,S.Z)(e,["_id"]);return(0,c.jsx)($,{link:r,onClose:t,className:"menu-fade-up"},n)})),(0,c.jsx)(X,{title:"Brands",className:"menu-fade-up",children:r.brands.map((function(e){var n=e._id,r=(0,S.Z)(e,["_id"]);return(0,c.jsx)($,{link:r,onClose:t},n)}))})]}),(0,c.jsx)(F.Z,{className:"w-full justify-center py-4 text-sm md:text-xs menu-fade-up",withBorder:!0,href:l,target:"_blank",as:"a",children:"Get Heat to your inbox"}),(r.about.length>0||r.socials.length>0)&&(0,c.jsxs)("div",{className:"w-full mx-auto pt-3 grid grid-cols-2 gap-10",children:[(0,c.jsxs)("div",{className:"flex-grow menu-fade-up",children:[(0,c.jsx)(B.ZP,{as:"p",className:"mb-4 opacity-50",children:"Follow"}),(0,c.jsx)("ul",{children:r.socials.map((function(e){return(0,c.jsx)("li",{className:"leading-tight",children:(0,c.jsx)(G.Z,{className:"text-sm hover:opacity-50",to:e.url,showText:!1,
1children:(0,c.jsx)("span",{className:"capitalize",children:e.type})})},e._key)}))})]}),(0,c.jsxs)("div",{className:"flex-grow menu-fade-up",children:[(0,c.jsx)(B.ZP,{as:"p",className:"mb-4 opacity-50",children:"About"}),(0,c.jsx)("ul",{children:r.about.map((function(e){return(0,c.jsx)("li",{className:"leading-tight",children:(0,c.jsx)(G.Z,{className:"text-sm hover:opacity-50",link:e})},e._key)}))})]})]}),(r.copyrightLeft||r.copyrightRight)&&(0,c.jsxs)("div",{className:"w-full mx-auto grid grid-cols-2 gap-x-10 -mt-4 menu-fade-up",children:[(0,c.jsx)("button",{id:"pmLink",className:"col-span-full",children:"Privacy Manager"}),r.copyrightLeft&&(0,c.jsx)("div",{className:"flex-grow",children:(0,c.jsx)(B.ZP,{as:"p",className:"text-[0.5rem] opacity-50",children:r.copyrightLeft.replace("{YEAR}",(new Date).getFullYear())})}),r.copyrightRight&&(0,c.jsx)("div",{className:"flex-grow",children:(0,c.jsx)(B.ZP,{as:"p",className:"text-[0.5rem] opacity-50",children:r.copyrightRight})})]})]})}var X=function(e){var t=e.children,n=e.title,r=e.className,o=(0,p.useRef)(),a=(0,i.Z)(L(!1),2),l=a[0],s=a[1],f=Y(),x=f.gradient,h=f.createGradient,m=(0,i.Z)(W(),2),v=m[0],g=m[1];return(0,p.useEffect)((function(){h()}),[g]),(0,p.useEffect)((function(){d.ZP.to(o.current,{autoAlpha:l?1:0,height:l?"auto":0,ease:"power2.inOut",transformOrigin:"center top",duration:.6})}),[l]),(0,c.jsxs)("li",{className:(0,u.Z)("overflow-y-hidden",r),children:[(0,c.jsxs)("button",{className:(0,u.Z)("menu-nav-item mx-auto flex items-center gap-x-3 px-6 text-[48px] tracking-[-0.05em] leading-[1.3] font-serif text-center rounded-full relative overflow-hidden group isolate"),onClick:s,ref:v,children:[(0,c.jsx)("span",{children:n}),(0,c.jsx)(M.Z,{width:18,className:(0,u.Z)("transition-transform duration-300 ease-out"),style:{transform:"rotateX(".concat(l?"-180deg":"0deg",")")}}),(0,c.jsx)("div",{className:"absolute overflow-hidden w-full h-full top-0 left-0 -z-1 rounded-full md:scale-[0.8] md:group-hover:scale-100 transition-transform duration-300 ease-custom-out",style:{transform:"translateZ(-10px)"},children:g&&(0,c.jsx)(D.Z,{gradient:x,duration:5,animate:!0,className:"invisible group-hover:visible"})})]}),(0,c.jsx)("ul",{ref:o,className:"flex flex-col mt-2 mx-2 items-center gap-2 invisible h-0",children:t})]})},$=function(e){var t=e.link,n=e.onClose,r=e.className,o=Y(),a=o.gradient,l=o.createGradient,s=(0,i.Z)(W(),2),d=s[0],f=s[1];return(0,p.useEffect)((function(){l()}),[f]),(0,c.jsx)("li",{className:(0,u.Z)("overflow-y-hidden",r),children:(0,c.jsxs)(G.Z,{className:(0,u.Z)("menu-nav-item block px-6 text-[48px] tracking-[-0.05em] leading-[1.3] font-serif text-center","rounded-full relative overflow-hidden group whitespace-nowrap isolate"),ref:d,link:t,onClick:n,showText:!1,children:[(0,K.fo)(t),(0,c.jsx)("div",{className:"absolute overflow-hidden w-full h-full top-0 left-0 -z-1 rounded-full md:scale-[0.8] md:group-hover:scale-100 transition-transform duration-300 ease-custom-out",children:f&&(0,c.jsx)(D.Z,{gradient:a,duration:5,className:"invisible group-hover:visible"})})]})})};function J(){var e=(0,g.kq)(),t=(0,f.b9)(z.Vz);return(0,p.useEffect)((function(){e||t(z.FI)}),[e,t]),(0,c.jsxs)("article",{className:"flex-1 h-full flex flex-col gap-8 md:gap-20 px-10 pb-16 justify-between overflow-auto custom-scrollbar",children:["Notifications",(0,c.jsx)("br",{}),"Screen to do!"]})}var ee=n(73935);function te(e){var t=e.show,n=e.onClick,r=(0,p.useRef)();return(0,p.useEffect)((function(){d.ZP.to(r.current,{duration:1,ease:"sine.inOut",opacity:t?1:0,pointerEvents:t?"all":"none"})}),[t]),(0,ee.createPortal)((0,c.jsx)("div",{ref:r,onClick:n,className:"bg-neutral-200 fixed z-menuOverlay inset-0 opacity-0 pointer-events-none"}),document.querySelector("body"))}var ne,re=n(27361),oe=n.n(re),ae=n(21804),ie=n.n(ae),le=n(41609),se=n.n(le),ce=n(57129),ue=n(56358),de=n(47),fe=n(87995);function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}var xe,he=function(e){return p.createElement("svg",pe({viewBox:"0 0 13 13",fill:"none"},e),ne||(ne=p.createElement("path",{d:"M11.937 1.176l-4.93 4.93 5.062 5.06-.888.888-5.061-5.06-4.79 4.789-.799-.8 4.79-4.789L.574 1.448 1.462.56 6.21 5.306l4.93-4.93.798.8z",fill:"
1currentColor"})))};function me(){return me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}var ve=function(e){return p.createElement("svg",me({viewBox:"0 0 21 20",fill:"none"},e),xe||(xe=p.createElement("path",{d:"M19.482 19.237l-4.364-4.257m2.419-5.69a7.948 7.948 0 01-2.422 5.694 8.382 8.382 0 01-5.847 2.358 8.382 8.382 0 01-5.846-2.358A7.948 7.948 0 011 9.29c0-2.136.871-4.184 2.422-5.694a8.382 8.382 0 015.846-2.359 8.38 8.38 0 015.847 2.359 7.948 7.948 0 012.422 5.694z",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round"})))},ge=n(47221),be=n(18281),je=n(15792),ye=n(63383),we=n(25902),Ne=n(76616),ke=n(63722);function Ze(e){var t=e.article,n=t.featuredImages,r=t.title,o=oe()(n,[0]),a=(0,f.b9)(z.tr),i=(0,de.TO)(t),l=null===t||void 0===t?void 0:t.brand,s=(0,ue.dW)(t),u=(0,p.useCallback)((function(){a(!1)}),[]);return(0,c.jsx)(G.Z,{link:t,showText:!1,className:"block hover:opacity-70",onClick:u,children:(0,c.jsxs)("article",{className:"grid grid-cols-5 gap-x-5",children:[(0,c.jsx)("div",{className:"col-span-2 w-full flex items-center",style:{backgroundColor:s},children:(0,c.jsx)(we.Z,{image:o,aspect:1.2,contain:!o.cover,imageSizes:"320px"})}),(0,c.jsxs)("div",{className:"col-span-3 flex flex-col justify-end gap-3",children:[l&&i&&(0,c.jsx)(je.Z,{logoImage:i,className:"h-5 w-auto self-start"}),l&&!i&&(0,c.jsx)(B.$O,{children:null===l||void 0===l?void 0:l.title}),(0,c.jsx)("p",{className:"text-[0.875rem] line-clamp-2",children:r}),(0,c.jsx)("div",{className:"flex items-center",children:(0,c.jsx)(be.Z,{className:"text-xxs w-full",article:t,showBuyNow:!1,max:!0,isSearch:!0})})]})]})})}function Ce(e){var t=e.query,n=e.onClick,r=(0,p.useCallback)((function(){return n(t)}),[n,t]);return(0,c.jsx)("button",{className:"hover:opacity-50 text-left",onClick:r,children:(0,c.jsx)(B.ZP,{className:"block",children:t})})}var Oe=(0,p.forwardRef)((function(e,t){var n=(0,i.Z)((0,f.KO)(ke.lt),2),r=n[0],o=n[1],a=(0,f.Dv)(T.nj).search,l=(0,p.useState)(""),s=l[0],d=l[1],x=(0,i.Z)((0,f.KO)(ke.ln),2),h=x[0],m=x[1],v=(0,f.b9)(z.tr),g=(0,p.useRef)({mounted:!1}),b=(0,p.useRef)(),j=(0,ge.ar)("search"),y=j.baseAtom,w=j.actions,N=w.search,k=w.loadMore;(0,p.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=b.current)||void 0===e||e.focus({preventScroll:!0})}}}),[]);var Z=(0,f.Dv)(y),C=Z.query,O=Z.items,A=Z.index,E=Z.totalPages,R=Z.loading,S=E>A+1,P=(0,fe.y)(N,200,[N]),I=(null===O||void 0===O?void 0:O.length)>0,L=I&&!C,U=!(null===O||void 0===O?void 0:O.length)&&C,_=(0,p.useCallback)((function(e){d(e.target.value)}),[]);(0,p.useEffect)((function(){se()(C)||C.length<3||m(C)}),[C,O,m]),(0,p.useEffect)((function(){r&&g.current.mounted&&(P(s),window.history.replaceState(window.history.state,null,"".concat(window.location.pathname,"?q=").concat(encodeURIComponent(s))))}),[r,P,s]);var q=(0,p.useCallback)((function(){d("")}),[]),M=(0,p.useCallback)((function(){k()}),[k]);(0,p.useEffect)((function(){g.current.mounted=!0}),[]),(0,p.useEffect)((function(){var e,t=null===(e=ce.parse(window.location.search))||void 0===e?void 0:e.q;t&&(v(!0),o(!0),d(t))}),[]),(0,p.useEffect)((function(){r||window.history.replaceState(window.history.state,null,"".concat(window.location.pathname))}),[r]);var D=(0,p.useCallback)((function(){var e;o(!0),null===(e=b.current)||void 0===e||e.focus({preventScroll:!0})}),[]);return(0,c.jsxs)("section",{className:"h-full flex flex-col overflow-hidden",children:[(0,c.jsxs)("form",{className:"flex items-center justify-between px-6 relative",onSubmit:function(e){e.preventDefault()},children:[(0,c.jsx)(ve,{height:18,className:"mx-2 pointer-events-none"}),(0,c.jsx)("input",{type:"text",className:"flex-1 h-[64px] px-3 rounded-menu outline-0 font-mono text-sm placeholder-black uppercase outline-none",onChange:_,placeholder:a.placeholderText,value:s,ref:b}),(0,c.jsx)("button",{type:"button",className:(0,u.Z)("flex items-center justify-center w-8 aspect-square transition-opacity duration-150",s?"hover:opacity-50":"opacity-0 pointer-events-none"),disabled:R,onClick:q,children:(0,c.jsx)(he,{height:13})}),!r&&(0,c.jsx)("button",{className:"absolute inset-0",onClick:D})]}),I&&!L&&(0,c.jsx)("div",{className:"flex-1 overflow-hidden rounded-b-menu",style:{height:"calc(100% - 64px)"},children:(0,c.jsxs)("ul",{className:(0,u.Z)("h-full px-6 rounded-b-menu pb-10",r?"overflow-y-auto":"overflow-hidden"),children:[O.map((function(e){return(0,c.jsx)("li",{className:"py-2 border-b last:border-0",children:(0,c.jsx)(Ze,{article:e})},e._id)})),(0,c.jsx)("li",{children:S&&(0,c.jsx)(ye.Z,{onAppearInView:M,className:"my-4 -mx-6",showGradient:!1})})]})}),L&&(0,c.jsxs)("div",{className:"flex-1 h-full overflow-y-auto px-6 rounded-b-menu",children:[(0,c.jsx)(B.jw,{as:"p",className:"mb-4 opacity-50",children:"Recent"}),(0,c.jsx)("ul",{children:h.map((function(e,t){return(0,c.jsx)("li",{children:(0,c.jsx)(Ce,{query:e,onClick:d})},"".concat(ie()(e),"-").concat(t))}))})]}),U&&(0,c.jsx)("div",{className:"flex-1 h-full overflow-y-auto px-6 rounded-b-menu",children:(0,c.jsx)(Ne.Z,{content:a.emptyResultsCopy})})]})})),Ae=v()((function(){return n.e(8).then(n.bind(n,42008))}),{loading:function(){return(0,c.jsx)("div",{className:"flex-1 h-full flex flex-col gap-6 pt-10 px-4 pb-6 overflow-auto custom-scrollbar"})}});function Ee(){var e,t,n=(0,i.Z)((0,f.KO)(z.tr),2),r=n[0],o=n[1],l=(0,b.ZP)(r),x=(0,p.useRef)(),m=(0,p.useRef)(),v=(0,p.useRef)(),y=(0,p.useRef)(),w=(0,p.useRef)(),Z=(0,i.Z)((0,f.KO)(ke.lt),2),O=Z[0],E=Z[1],R=(0,g.kq)(),S=(0,p.useRef)({menuOpened:!1,searchOpened:!1}),I=(0,g.kP)(),L=null===I||void 0===I||null===(e=I.user)||void 0===e?void 0:e.photoURL;S.current.isSearchOpen=O;var U=(0,p.useCallback)((function(){o(!1)}),[o]),_=(0,i.Z)((0,f.KO)(z.Vz),2),q=_[0],M=_[1],T=(0,p.useCallback)((function(e){M(e),E(!1)}),[E,M]),D=(0,p.useCallback)(function(){var e=(0,a.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:T(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[T]);return(0,p.useEffect)((function(){if(S.current.menuOpened=S.current.menuOpened||r,S.current.menuOpened){d.ZP.set(x.current,{pointerEvents:r?"all":"none",height:"calc(100svh - ".concat(window.innerWidth<768?142:192,"px)")});var e=x.current.querySelectorAll(".menu-nav-btn");d.ZP.set(v.current,{opacity:1});var t=h().getState(v.current,{props:"left,top,width,height,opacity"}),n=window.innerWidth<768?"36px":"45px";d.ZP.set(v.current,{height:r&&O?64:r?"100%":n,width:r?"100%":n,left:r?0:"0.5em",top:r?0:"0.5em"});var o=d.ZP.timeline();return o.add(h().from(t,{duration:.7,ease:"power4.inOut"})),r||o.to(v.current,{opacity:0,duration:.2}),r?(o.to(e,{autoAlpha:1,xPercent:0,stagger:.05,duration:.6,ease:"power2.out"},.3),o.to(m.current,{autoAlpha:1,duration:.6,ease:"power2.out"},S.current.isSearchOpen?.8:.3),o.to(m.current.querySelectorAll(".menu-fade-up"),{autoAlpha:1,y:0,duration:.6,ease:"power2.out",stagger:.05,overwrite:!0},.3)):(o.to(m.current,{autoAlpha:0,duration:S.current.isSearchOpen?.3:.6,ease:"expo.out"},0),o.to(m.current.querySelectorAll(".menu-fade-up"),{autoAlpha:0,y:10,duration:.6,ease:"power2.out",overwrite:!0},0),o.to(e,{autoAlpha:0,xPercent:-100,duration:.4},0),o.eventCallback("onComplete",(function(){M(z.PQ)}))),function(){o.kill()}}}),[M,r]),(0,p.useEffect)((function(){if(S.current.searchOpened=S.current.searchOpened||O,S.current.searchOpened){var e=d.ZP.timeline(),t=h().getState(y.current,{props:"left,top,width,height,opacity"}),n=h().getState(v.current,{props:"height"});d.ZP.set(y.current,{top:O?64:"100%",height:O?"100%":64}),d.ZP.set(v.current,{height:O?64:"100%"}),e.add(h().from(t,{duration:.8,ease:"power4.inOut"})),e.add(h().from(n,{duration:.8,ease:"power4.inOut"}),0)}}),[O]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{ref:(0,j.Z)(x,l),className:"absolute -left-2 -top-2 z-menuContent w-menuSmall max-w-md md:w-96 md:max-w-none pointer-events-none max-h-[44rem]",style:{height:"calc(100vh - 164px)"},children:[(0,c.jsx)("div",{ref:v,className:"absolute top-3 left-2 w-8 h-8 md:w-10 mdLh-10 bg-white rounded-menu opacity-0"}),(0,c.jsxs)("div",{ref:m,className:"relative invisible z-header h-full opacity-0",children:[(0,c.jsxs)("header",{className:"h-[64px] flex justify-end items-center gap-2 px-2",children:[(0,c.jsx)("div",{className:(0,u.Z)("overflow-hidden transition-opacity duration-150 flex-grow ml-28 flex justify-end cursor-pointer group",q!==z.PQ||O?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:function(){return T(z.PQ)},children:(0,c.jsx)(P,{icon:(0,c.jsx)(k.Z,{width:8,className:"rotate-180"}),id:z.PQ,onClick:T,title:"Back"})}),(0,c.jsx)("div",{className:"overflow-hidden",children:(0,c.jsx)(P,{icon:L?(0,c.jsx)("img",{alt:null===I||void 0===I||null===(t=I.user)||void 0===t?void 0:t.displayName,src:L,loading:"lazy",className:"rounded-full p-[2px]"}):(0,c.jsx)(C,{width:16}),id:z.FI,onClick:D,isActive:q===z.FI,title:"Account"})}),(0,c.jsx)("div",{className:"hidden overflow-hidden",children:(0,c.jsx)(P,{icon:(0,c.jsx)(N,{color:R?"black":A().neutral[500],width:16}),id:z.SX,onClick:T,disabled:!R,title:R?"":"You need to be logged in",isActive:q===z.SX})})]}),(0,c.jsxs)("section",{className:"overflow-y-scroll transparent-scrollbar",style:{height:"calc(100% - 92px)"},children:[(q===z.PQ||!q)&&(0,c.jsx)(Q,{onClose:U}),q===z.SX&&(0,c.jsx)(J,{onClose:U}),q===z.FI&&(0,c.jsx)(Ae,{})]}),(0,c.jsx)("div",{ref:y,className:"absolute top-full w-full bg-white z-header rounded-menu h-[64px] translate-y-1",children:(0,c.jsx)(Oe,{ref:w})})]})]}),(0,c.jsx)(te,{onClick:U,show:r})]})}},97334:function(e){!function(){"use strict";var t={721:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,o,a){r=r||"&",o=o||"=";var i={};if("string"!==typeof e||0===e.length)return i;var l=/\+/g;e=e.split(r);var s=1e3;a&&"number"===typeof a.maxKeys&&(s=a.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var d,f,p,x,h=e[u].replace(l,"%20"),m=h.indexOf(o);m>=0?(d=h.substr(0,m),f=h.substr(m+1)):(d=h,f=""),p=decodeURIComponent(d),x=decodeURIComponent(f),t(i,p)?n(i[p])?i[p].push(x):i[p]=[i[p],x]:i[p]=x}return i};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},850:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,i,l){return a=a||"&",i=i||"=",null===e&&(e=void 0),"object"===typeof e?r(o(e),(function(o){var l=encodeURIComponent(t(o))+i;return n(e[o])?r(e[o],(function(e){return l+encodeURIComponent(t(e))})).join(a):l+encodeURIComponent(t(e[o]))})).join(a):l?encodeURIComponent(t(l))+i+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];
1for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//";var o={};!function(){var e=o;e.decode=e.parse=r(721),e.encode=e.stringify=r(850)}(),e.exports=o}()},57129:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function o(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var r,a,i=[];for(a in"string"!==typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!==r&&undefined!==r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;i.push(a+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),i=r(t[2]);null===a||null===i||a in o||(o[a]=i)}return o}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.