PageSourceSearch

https://www.tomthumb.com/home/_next/static/chunks/440601c2-6a4b0f7ff9ca81c6.js

js tomthumb.com collected 2026-10-03 22:10:00 UTC 52,745 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[108],{2670:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.HeroBentoCarouselClient=void 0;var r=v(t(2265)),o=f(t(9772)),i=t(6795),a=t(5484),u=t(3962),c=t(3094),l=f(t(4410)),s=f(t(2352)),d=t(7437);function f(e){return e&&e.__esModule?e:{default:e}}function v(e,n){if("function"==typeof WeakMap)var t=new WeakMap,r=new WeakMap;return(v=function(e,n){if(!n&&e&&e.__esModule)return e;var o,i,a={__proto__:null,default:e};if(null===e||"object"!=E(e)&&"function"!=typeof e)return a;if(o=n?r:t){if(o.has(e))return o.get(e);o.set(e,a)}for(var u in e)"default"!==u&&({}).hasOwnProperty.call(e,u)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(i.get||i.set)?o(a,u,i):a[u]=e[u]);return a})(e,n)}function p(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw i}}}}function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach(function(n){var r,o;r=n,o=t[n],(r=function(e){var n=function(e,n){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=E(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==E(n)?n:n+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function y(){var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",o=t.toStringTag||"@@toStringTag";function i(t,r,o,i){var c=Object.create((r&&r.prototype instanceof u?r:u).prototype);return w(c,"_invoke",function(t,r,o){var i,u,c,l=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return i=n,u=0,c=e,f.n=t,a}};function v(t,r){for(u=t,c=r,n=0;!d&&l&&!o&&n<s.length;n++){var o,i=s[n],v=f.p,p=i[2];t>3?(o=p===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=t<2&&v<i[1])?(u=0,f.v=r,f.n=i[1]):v<p&&(o=t<3||i[0]>r||r>p)&&(i[4]=t,i[5]=r,f.n=p,u=0))}if(o||t>1)return a;throw d=!0,r}return function(o,s,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===s&&v(s,p),u=s,c=p;(n=u<2?e:c)||!d;){i||(u?u<3?(u>1&&(f.n=-1),v(u,c)):f.n=c:f.v=c);try{if(l=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((n=(d=f.n<0)?c:t.call(r,f))!==a)break}catch(n){i=e,u=1,c=n}finally{l=1}}return{value:n,done:d}}}(t,o,i),!0),c}var a={};function u(){}function c(){}function l(){}n=Object.getPrototypeOf;var s=[][r]?n(n([][r]())):(w(n={},r,function(){return this}),n),d=l.prototype=u.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,w(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,w(d,"constructor",l),w(l,"constructor",c),c.displayName="GeneratorFunction",w(l,o,"GeneratorFunction"),w(d),w(d,o,"Generator"),w(d,r,function(){return this}),w(d,"toString",function(){return"[object Generator]"}),(y=function(){return{w:i,m:f}})()}function w(e,n,t,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(w=function(e,n,t,r){function i(n,t){w(e,n,function(e){return this._invoke(n,t,e)})}n?o?o(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t:(i("next",0),i("throw",1),i("return",2))})(e,n,t,r)}function b(e,n,t,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void t(e)}u.done?n(c):Promise.resolve(c).then(r,o)}function S(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function a(e){b(i,r,o,a,u,"next",e)}function u(e){b(i,r,o,a,u,"throw",e)}a(void 0)})}}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;
1!(c=(r=i.call(t)).done)&&(u.push(r.value),u.length!==n);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,n)||_(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,n){if(e){if("string"==typeof e)return M(e,n);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?M(e,n):void 0}}function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var x=n.HeroBentoCarouselClient=function(e){var n=e.items,t=e.banner,f=e.loading,v=void 0!==f&&f,h=e.error,w=e.shimmerCount,b=e.autoplay,_=void 0===b||b,M=e.autoplaySpeed,x=(e.showDots,e.showArrows),k=e.loop,I=e.ariaLabel,T=e.selectedChannel,P=void 0===T?"delivery":T,R=e.onSlideChange,C=e.onCarouselInit,L=e.onAddToCart;e.enableFastSwipe;var j="".concat(t||"").trim().toLowerCase()||"safeway",G="".concat(j,"/home/*/*.*");console.log("=====testing react library version====="),console.log("=====testing react library version 2nd log=====");var O=["topc2","topc3","topc5"];function W(){return"".concat(Math.floor(1e4+9e4*Math.random()))}var B=(0,r.useRef)(null),q=A((0,r.useState)(function(){var e,n;return e=new Set,n={},O.forEach(function(t){for(var r=W();e.has(r);)r=W();e.add(r),n[t]=r}),n}),2),H=q[0];q[1];var N=(0,r.useRef)(!1),D=(0,r.useRef)(!1),F=(0,r.useRef)(!1),V=(0,r.useRef)(new Set),z=(0,r.useRef)(!1),X=(0,r.useRef)(!1),U=(0,r.useRef)(!1),Y=(0,r.useRef)(0),$=(0,r.useRef)(null);(0,r.useRef)(!0);var K=(0,r.useRef)(new Set),J=(0,r.useRef)({}),Q=(0,r.useRef)(!1),Z=(0,r.useRef)(new Set),ee=(0,r.useRef)({}),en=(0,r.useRef)({}),et=(0,r.useRef)(new Set),er=(0,r.useRef)(0);function eo(e,n){if(n){console.warn("[HeroBento][GAM][debug] ".concat(e),n);return}console.warn("[HeroBento][GAM][debug] ".concat(e))}var ei=A((0,r.useState)([]),2),ea=ei[0],eu=ei[1],ec=A((0,r.useState)([]),2),el=ec[0],es=ec[1],ed=A((0,r.useState)(!1),2),ef=ed[0],ev=ed[1],ep=A((0,r.useState)(!0),2),em=ep[0],eh=ep[1],eg=(0,r.useRef)(null),ey=A((0,r.useState)(function(){return"undefined"!=typeof window&&window.innerWidth<768}),2),ew=ey[0],eb=ey[1],eS=A((0,r.useState)(function(){return"undefined"!=typeof window&&window.innerWidth<768?Math.max(0,window.innerWidth-40):null}),2),eE=eS[0],eA=eS[1];function e_(e){return e>=1440?{width:"1048px",height:"514px",borderRadius:"20px"}:e>=1024?{width:"740px",height:"360px",borderRadius:"20px"}:e>=768?{width:"576px",height:"288px",borderRadius:"20px"}:e>=360?{width:"100%",height:"416px",borderRadius:"16px"}:{}}var eM=A((0,r.useState)(function(){return"undefined"!=typeof window?e_(window.innerWidth):{}}),2),ex=eM[0],ek=eM[1],eI=A((0,r.useState)(function(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}),2),eT=eI[0],eP=eI[1],eR=r.default.useMemo(function(){return function(e){if(!e)return[];if("object"===E(e)&&!Array.isArray(e)&&"containerItems"in e)return(e.containerItems||[]).filter(function(e){return(null==e?void 0:e.type)!=="p13n-component-placeholder"}).map(function(e,n){return(0,i.transformBentoItem)(e,n)});if(Array.isArray(e)){if(0===e.length)return[];var n=e.filter(function(e){return(null==e?void 0:e.type)!=="p13n-component-placeholder"});if(0===n.length)return[];var t=n[0];return t&&(t.itemName||"collections"===t.type||t.collectionsImage)?n.map(function(e,n){return(0,i.transformBentoItem)(e,n)}):n}return[]}(n)},[n]),eC=A((0,r.useState)(eR),2),eL=eC[0],ej=eC[1];(0,r.useEffect)(function(){ej(eR),N.current=!1,F.current=!1,V.current.clear(),z.current=!1,X.current=!1,U.current=!1,Y.current=0,$.current&&(clearTimeout($.current),$.current=null),Object.values(J.current).forEach(function(e){clearTimeout(e)}),Object.values(ee.current).forEach(function(e){clearTimeout(e)}),Object.values(en.current).forEach(function(e){clearTimeout(e)}),J.current={},ee.current={},en.current={},et.current.clear(),K.current.clear(),eu([]),es([]),ev(!1),eh(!0)},[eR]),(0,r.useEffect)(function(){if(ef&&0==ea.length){N.current=!0,F.current=!0;return}},[ea,ef]),(0,r.useEffect)(function(){if(ef){if(0===ea.length){eh(!0);return}es(function(e){var n=new Set(e);return ea.forEach(function(e){return n.add(e)}),Array.from(n).sort(function(e,n){return e-n})}),eu([]),eh(!0)}},[ea,eR,ef]);var eG=r.default.useMemo(function(){var e;return e=new Set,eL.map(function(n,t){if("sponsored-GAM"===n.bannerType){var r="".concat(n.pos||"topc2").toLowerCase(),o=H["topc2"===r||"topc3"===r||"topc5"===r?r:"topc2"];(!o||e.has(o))&&(o=function(e){for(var n="".concat(Math.floor(1e4+9e4*Math.random()));e.has(n);)n="".concat(Math.floor(1e4+9e4*Math.random()));return n}(e)),e.add(o);var i=n.pos||"topc2";return g(g({},n),{},{gamProps:g({id:"gamSection_".concat(o),"data-gamid":o,role:"presentation","data-fluid":void 0!==n.fluid?n.fluid:"true","data-runtimecontext":void 0!==n.rc?n.rc:"","data-bannerposition":i,"data-taxonomyid":void 0!==n.txpath?n.txpath:"","data-aisleid":"1_","data-insidecarousel":void 0!==n.insideCarousel?n.insideCarousel:"true","data-lastsponsoredbannerincarousel":void 0!==n.lastSponsoredBannerInCarousel?n.lastSponsoredBannerInCarousel:"false","data-gamfeatureflagvalue":void 0!==n.gamFeatureFlagValue?n.gamFeatureFlagValue:"true","data-adunitpath":G,"data-gamnetworkcode":"prod:22389494054,
1nonprod:22825627079","data-pageid":"home","data-isrestrictedpage":"false","data-restrictedsearchtermlist":"null","data-spapage":"false","data-bannervariation":"HeroBanner"},n.gamProps||{}),gamContainerProps:g({id:"gamcontainer_".concat(o),className:"ab-lazy-function","data-lazy-function":"lazyAdXContent_".concat(o)},n.gamContainerProps||{})})}return n})},[eL,H]),eO=A((0,r.useState)(eG),2),eW=eO[0],eB=eO[1];(0,r.useEffect)(function(){eB(eG)},[eG]),(0,r.useEffect)(function(){if(X.current&&!v&&!em){var e,n=!1;return(e=S(y().m(function e(){return y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,new Promise(function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})});case 1:return e.n=2,new Promise(function(e){return setTimeout(e,120)});case 2:n||eh(!0);case 3:return e.a(2)}},e)})),function(){return e.apply(this,arguments)})(),function(){n=!0}}},[eW,v,em]);var eq=A((0,r.useState)(0),2),eH=eq[0],eN=eq[1],eD=A((0,r.useState)(!0),2),eF=eD[0],eV=eD[1],ez=A((0,r.useState)(!1),2),eX=ez[0],eU=ez[1],eY=A((0,r.useState)(!1),2),e$=eY[0],eK=eY[1],eJ=A((0,r.useState)(!0),2),eQ=eJ[0],eZ=eJ[1],e0=(0,r.useRef)(!1),e1=(0,r.useRef)(!1),e2=(0,r.useRef)(0),e5=(0,r.useRef)(0),e4=(0,r.useRef)(new Set),e3=(0,r.useRef)(!1),e6=(0,r.useRef)(!1),e8=A((0,r.useState)(!1),2),e7=e8[0],e9=e8[1],ne=(0,r.useRef)(null),nn=(0,r.useRef)(!1),nt=(0,r.useRef)(!1);(0,r.useRef)(null),(0,r.useRef)(null);var nr=(0,r.useCallback)(function(){var e=B.current;e&&(e.slickPause(),eV(!1),e0.current=!0)},[]),no=(0,r.useCallback)(function(e){var n;nr(),nn.current=!0,ne.current=null!==(n=e.clientX)&&void 0!==n?n:null,eU(!1)},[nr]),ni=(0,r.useCallback)(function(e){if(nn.current){var n,t=ne.current;null!==t&&Math.abs((null!==(n=e.clientX)&&void 0!==n?n:0)-t)>8&&eU(!0)}},[]),na=(0,r.useCallback)(function(){nn.current=!1,ne.current=null,eU(!1)},[]);(0,r.useEffect)(function(){if("undefined"!=typeof window){var e=function(){nn.current=!1,ne.current=null,eU(!1)};return window.addEventListener("pointerup",e),window.addEventListener("pointercancel",e),function(){window.removeEventListener("pointerup",e),window.removeEventListener("pointercancel",e)}}},[]),(0,r.useEffect)(function(){var e=eg.current;if(e){var n=0,t=0,r=!1,o=function(e){n=e.touches[0].clientX,t=e.touches[0].clientY,r=!1},i=function(e){if(!r){var o=Math.abs(e.touches[0].clientX-n),i=Math.abs(e.touches[0].clientY-t);o<5&&i<5||(r=!0,o>i&&e.preventDefault())}};return e.addEventListener("touchstart",o,{passive:!0}),e.addEventListener("touchmove",i,{passive:!1}),function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchmove",i)}}},[]),(0,r.useEffect)(function(){if("undefined"!=typeof window&&"function"==typeof window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),n=function(){return eP(e.matches)};if(n(),"function"==typeof e.addEventListener)return e.addEventListener("change",n),function(){return e.removeEventListener("change",n)};if("function"==typeof e.addListener)return e.addListener(n),function(){return e.removeListener(n)}}},[]);var nu=(0,r.useRef)(null),nc=(0,r.useRef)(!1),nl=(0,r.useCallback)(function(e){var n;nc.current=!1,nu.current=null!==(n=e.clientX)&&void 0!==n?n:null},[]),ns=(0,r.useCallback)(function(e){var n,t,r,o=nu.current;if(null!==o){var i=(null!==(n=e.clientX)&&void 0!==n?n:0)-o;Math.abs(i)>30&&!nc.current&&(nc.current=!0,nr(),i<0?null===(t=B.current)||void 0===t||t.slickNext():null===(r=B.current)||void 0===r||r.slickPrev())}},[nr]),nd=(0,r.useCallback)(function(){nu.current=null,nc.current=!1},[]),nf=(0,r.useCallback)(function(e){B.current&&("ArrowLeft"===e.key&&(nr(),B.current.slickPrev(),setTimeout(function(){nL()},700)),"ArrowRight"===e.key&&(nr(),B.current.slickNext(),setTimeout(function(){nL()},700)))},[nr]),nv=r.default.useMemo(function(){return eW.map(function(e){return{slide:e,isSponsoredGAM:"sponsored-GAM"===e.bannerType,isValid:"sponsored-GAM"===e.bannerType||(0,c.filterValidBentoSlides)([e],P).length>0}})},[eW,P]),np=r.default.useMemo(function(){return nv.filter(function(e){return!e.isSponsoredGAM&&e.isValid}).map(function(e){return e.slide})},[nv]),nm=r.default.useMemo(function(){return new Set(el)},[el]),nh=r.default.useMemo(function(){return nv.reduce(function(e,n,t){return!n.isValid||n.isSponsoredGAM&&nm.has(t)?e:e+1},0)},[nv,nm]),ng=r.default.useMemo(function(){var e=new Map,n=0;
1return nv.forEach(function(t,r){t.isValid&&(t.isSponsoredGAM&&nm.has(r)||(e.set(r,n),n+=1))}),e},[nv,nm]),ny=r.default.useMemo(function(){return Array.from(ng.keys())},[ng]),nw=r.default.useMemo(function(){var e=ny.length;if(0===e)return"";var n=ny[(eH%e+e)%e],t=ng.get(n),r=nv[n];return"number"==typeof t&&null!=r&&r.slide?(0,c.getSlideAriaLabel)(r.slide,nh,t):""},[eH,ng,nv,nh,ny]);e5.current=nh;var nb=(0,r.useRef)(0),nS=(0,r.useRef)(!1),nE=(0,r.useRef)(function(){return -1}),nA=(0,r.useRef)(function(){return!1}),n_=(0,r.useCallback)(function(e){var n=nv[e];return!n||!n.isValid||!!n.isSponsoredGAM&&nm.has(e)},[nv,nm]),nM=(0,r.useCallback)(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=nv.length;if(0===t)return -1;for(var r=1;r<=t;r++){var o=((e+r*n)%t+t)%t;if(!n_(o))return o}return -1},[nv.length,n_]);nE.current=nM,nA.current=n_,(0,r.useEffect)(function(){if(0!==el.length&&n_(nb.current)){var e,n=nM(nb.current,1);n>=0&&(null===(e=B.current)||void 0===e||null===(e=e.innerSlider)||void 0===e||e.slickGoTo(n,!0))}},[el,n_,nM]),(0,r.useEffect)(function(){var e,n=null===(e=B.current)||void 0===e?void 0:e.innerSlider;if(n&&0!==el.length){n.__origSlideHandler||(n.__origSlideHandler=n.slideHandler);var t=n.__origSlideHandler;return n.slideHandler=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=null!==(a=null===(u=n.state)||void 0===u?void 0:u.slideCount)&&void 0!==a?a:0;if(o>0){var i=(e%o+o)%o;if(nA.current(i)){var a,u,c,l,s=null!==(c=null===(l=n.state)||void 0===l?void 0:l.currentSlide)&&void 0!==c?c:0,d=nE.current(i,e>=s?1:-1);if(d>=0&&d!==i){var f=d;return e>=o?f=o+d:e<0&&(f=d-o),t.call(n,f,r)}}}return t.call(n,e,r)},function(){n.__origSlideHandler&&(n.slideHandler=n.__origSlideHandler,delete n.__origSlideHandler)}}},[el]),(0,r.useEffect)(function(){var e,n=null===(e=B.current)||void 0===e?void 0:e.innerSlider;if(n&&0!==el.length){n.__origSwipeStart||(n.__origSwipeStart=n.swipeStart),n.__origSwipeMove||(n.__origSwipeMove=n.swipeMove),n.__origSwipeEnd||(n.__origSwipeEnd=n.swipeEnd);var t=n.__origSwipeStart,r=n.__origSwipeMove,o=n.__origSwipeEnd,i=!1,a=1,u=0;return n.swipeStart=function(e){return i=!1,u=0,t.call(n,e)},n.swipeMove=function(e){var t,o,c,l,s,d,f=null===(t=n.state)||void 0===t?void 0:t.touchObject;if(!(null!=f&&f.startX)||null==(d=void 0!==e.touches&&e.touches.length>0?e.touches[0].pageX:e.clientX))return r.call(n,e);var v=d-f.startX;if(u=v,5>Math.abs(v))return r.call(n,e);var p=v<0?1:-1,m=null!==(o=null===(c=n.state)||void 0===c?void 0:c.currentSlide)&&void 0!==o?o:0,h=null!==(l=null===(s=n.state)||void 0===s?void 0:s.slideCount)&&void 0!==l?l:0;if(h<=0)return r.call(n,e);if(nA.current(((m+p)%h+h)%h)){i=!0,a=p;return}return i=!1,r.call(n,e)},n.swipeEnd=function(e){if(!i)return o.call(n,e);var t,r,c,l,s,d,f,v,p,m,h=a;i=!1;var g=null!==(t=null===(r=n.state)||void 0===r?void 0:r.currentSlide)&&void 0!==t?t:0,y=null!==(c=null===(l=n.state)||void 0===l?void 0:l.slideCount)&&void 0!==c?c:0,w=null!==(s=null!==(d=null===(f=n.list)||void 0===f?void 0:f.offsetWidth)&&void 0!==d?d:null===(v=n.state)||void 0===v?void 0:v.slideWidth)&&void 0!==s?s:0,b=null!==(p=null===(m=n.props)||void 0===m?void 0:m.touchThreshold)&&void 0!==p?p:5,S=Math.abs(u)>w/b;if(n.setState({dragging:!1,swiping:!1,swipeLeft:null,touchObject:{}}),S&&y>0){var E=nE.current(g,h);if(E>=0&&E!==g){nb.current=E;var A=E;1===h&&E<g?A=y+E:-1===h&&E>g&&(A=E-y),n.slideHandler(A,!1);return}}},function(){n.__origSwipeStart&&(n.swipeStart=n.__origSwipeStart,delete n.__origSwipeStart),n.__origSwipeMove&&(n.swipeMove=n.__origSwipeMove,delete n.__origSwipeMove),n.__origSwipeEnd&&(n.swipeEnd=n.__origSwipeEnd,delete n.__origSwipeEnd)}}},[el]),(0,r.useEffect)(function(){if(ew&&0!==el.length){var e,n=null===(e=B.current)||void 0===e?void 0:e.innerSlider;if(n){var t=requestAnimationFrame(function(){n.onWindowResized()});return function(){return cancelAnimationFrame(t)}}}},[el,ew]),(0,r.useEffect)(function(){if(0!==el.length){var e,n=null===(e=eg.current)||void 0===e?void 0:e.querySelector(".bento-carousel__slides");if(n){var t=function(){var e=n.querySelector(".slick-slide.slick-current");
1if(e&&e.querySelector('[data-gam-hidden="true"]')){var t=nM(nb.current,1);t>=0&&!nS.current&&(nS.current=!0,setTimeout(function(){var e;nS.current=!1,null===(e=B.current)||void 0===e||null===(e=e.innerSlider)||void 0===e||e.slickGoTo(t,!0)},0))}},r=new MutationObserver(function(e){var n,r=m(e);try{for(r.s();!(n=r.n()).done;){var o,i=n.value.target;if(null!==(o=i.classList)&&void 0!==o&&o.contains("slick-slide")&&(i.classList.contains("slick-current")||i.classList.contains("slick-active"))){t();break}}}catch(e){r.e(e)}finally{r.f()}});return r.observe(n,{attributes:!0,attributeFilter:["class"],subtree:!0}),t(),function(){return r.disconnect()}}}},[el,nM]);var nx=(0,r.useRef)(!1);(0,r.useEffect)(function(){if("undefined"!=typeof window&&!nx.current){var e,n=null===(e=window)||void 0===e||null===(e=e.AB)||void 0===e?void 0:e.DATALAYER,t=eg.current;if(null!=n&&n.heroBentoExposureLoaded&&t){var r=[];t.querySelectorAll(".slick-slide:not(.slick-cloned) [data-slide-index]").forEach(function(e){var n,t,o,i,a=null===(n=nv[Number(e.dataset.slideIndex)])||void 0===n?void 0:n.slide,u=null==a||null===(t=a.p13nAdobeMetrics)||void 0===t?void 0:t.msgExperiment;a&&u&&r.push({element:e,info:{msgExperiment:u,title:null===(o=a.headline)||void 0===o?void 0:o.title,subTitle:null===(i=a.headline)||void 0===i?void 0:i.subTitle,promotionId:""}})}),r.length>0&&(n.heroBentoExposureLoaded(r),nx.current=!0)}}},[nv]),(0,r.useEffect)(function(){if(0===nh){0!==eH&&eN(0);return}var e=ny.length;eH>=e&&eN(Math.max(0,e-1))},[eH,nh,ny]),(0,r.useEffect)(function(){var e=B.current;if(e){if(eT||!_||nh<=1){e.slickPause(),eV(!1);return}e0.current||(e.slickPlay(),eV(!0))}},[_,eT,nh]),(0,r.useEffect)(function(){if("undefined"!=typeof document){var e=function(){var e;"visible"===document.visibilityState&&!eT&&_&&!(nh<=1)&&e0.current&&(nt.current||(e0.current=!1,null===(e=B.current)||void 0===e||e.slickPlay(),eV(!0)))};return document.addEventListener("visibilitychange",e),window.addEventListener("pageshow",e),function(){document.removeEventListener("visibilitychange",e),window.removeEventListener("pageshow",e)}}},[_,eT,nh]),(0,r.useEffect)(function(){if("undefined"!=typeof window){var e=function(){var e;nt.current=!0,null===(e=B.current)||void 0===e||e.slickPause(),eV(!1),e0.current=!0},n=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(forced-colors: active)");(n.matches||t.matches)&&e();var r=function(n){n.matches&&e()},o=function(n){n.matches&&e()};"function"==typeof n.addEventListener?(n.addEventListener("change",r),t.addEventListener("change",o)):"function"==typeof n.addListener&&(n.addListener(r),t.addListener(o));var i=0,a=function(){i=Date.now()},u=function(n){if(!nt.current){var t=eg.current;t&&t.contains(n.target)&&Date.now()-i>300&&e()}};return document.addEventListener("pointerdown",a,{capture:!0}),document.addEventListener("focusin",u),function(){"function"==typeof n.removeEventListener?(n.removeEventListener("change",r),t.removeEventListener("change",o)):"function"==typeof n.removeListener&&(n.removeListener(r),t.removeListener(o)),document.removeEventListener("pointerdown",a,{capture:!0}),document.removeEventListener("focusin",u)}}},[]);var nk=v||void 0!==h&&h||0===np.length,nI=r.default.useMemo(function(){return nv.map(function(e,n){var t=e.slide,r=e.isSponsoredGAM;if(!e.isValid)return null;var o=r&&nm.has(n),i=null!==(l=ng.get(n))&&void 0!==l?l:n,u=(0,c.getSlideAriaLabel)(t,nh,i);if(r){var l,s,f,v=t.id||(null===(s=t.gamContainerProps)||void 0===s?void 0:s.id)||(null===(f=t.gamProps)||void 0===f?void 0:f.id)||"sponsored-gam-slide-".concat(n),p=ew?{width:0,minWidth:0,padding:0,margin:0,overflow:"hidden",visibility:"hidden",pointerEvents:"none"}:{visibility:"hidden",pointerEvents:"none"},m=ew&&eE?{width:"".concat(eE,"px"),minWidth:"".concat(eE,"px"),boxSizing:"border-box"}:void 0;return(0,d.jsxs)("div",{className:"bento-carousel__slide-inner","data-slide-index":n,"data-gam-hidden":o?"true":"false",tabIndex:-1,"data-slide-container":"true","data-no-focus":"true",role:"group","aria-roledescription":"slide","aria-label":o?void 0:u,"aria-hidden":o||void 0,"data-sli
1de-aria-label":u,style:o?p:m,children:[ew&&!o&&u?(0,d.jsx)("span",{className:"sr-only",children:u}):null,(0,d.jsx)("div",{className:"pds-card-container--hero hero-bento-focus-color",role:"group",tabIndex:0,children:(0,d.jsxs)("div",{className:"google-adManager hero-banner-unit__injection","data-banner-type":"sponsored-GAM",style:ew&&eE?{width:"100%"}:void 0,children:[(0,d.jsx)("ad-manager",g({},t.gamProps||{})),(0,d.jsx)("div",g({},t.gamContainerProps||{})),(0,d.jsx)("div",{className:"gam-swipe-capture",onPointerDownCapture:nl,onPointerMoveCapture:ns,onPointerUpCapture:nd,onPointerDown:nl,onPointerMove:ns,onPointerUp:nd})]})})]},v)}return(0,d.jsxs)("div",{className:"bento-carousel__slide-inner","data-slide-index":n,role:"group","aria-roledescription":"slide","aria-label":u,"data-slide-aria-label":u,children:[ew&&u?(0,d.jsx)("span",{className:"sr-only",children:u}):null,(0,d.jsx)(a.HeroBentoCard,g(g({},t),{},{slideIndex:n,totalSlides:nh,currentSlide:n,onAddToCart:L,selectedChannel:P,isMobileView:ew}))]},t.id||"slide-".concat(n))}).filter(Boolean)},[nv,nm,nl,ns,nd,ew,eE,ng,nh]);(0,r.useEffect)(function(){if("undefined"!=typeof window&&!nk){if(!ew){eA(null);return}var e=document.querySelector(".bento-carousel__slides");if(e){var n=requestAnimationFrame(function(){var n,t,r=0,o=[];(e.querySelectorAll(".slick-track > .slick-slide").forEach(function(e){var n,t=e.querySelector(".bento-carousel__slide-inner"),i=e.querySelector('[data-banner-type="sponsored-GAM"]')?null:e.querySelector(".pds-card-container--hero");i&&i.offsetWidth>r&&(r=i.offsetWidth);var a=null===(n=e.querySelector('[data-banner-type="sponsored-GAM"]'))||void 0===n?void 0:n.closest(".bento-carousel__slide-inner"),u=e.querySelector("iframe");o.push({dataIndex:e.getAttribute("data-index"),isGam:!!a,isCloned:e.classList.contains("slick-cloned"),slideBox:"".concat(e.offsetWidth,"x").concat(e.offsetHeight),child:t?"".concat(t.offsetWidth,"x").concat(t.offsetHeight):a?"".concat(a.offsetWidth,"x").concat(a.offsetHeight):null,cardBox:i?"".concat(i.offsetWidth,"x").concat(i.offsetHeight):null,iframe:u?"".concat(u.offsetWidth,"x").concat(u.offsetHeight):null})}),r>0)?r+=10:r=Math.max(0,(null!==(n=null===(t=eg.current)||void 0===t?void 0:t.offsetWidth)&&void 0!==n?n:window.innerWidth)-40),eo("mobile-slide-dims",{viewport:window.innerWidth,appliedGamWidth:r,dims:o}),eA(function(e){return e!==r?r:e})});return function(){return cancelAnimationFrame(n)}}}},[ew,nk,ex,nv.length]);var nT=(0,r.useCallback)(function(e){eN(e),eK(!0),null==R||R(e);var n=null===(t=nv.filter(function(e){return e.isValid})[e])||void 0===t?void 0:t.slide;if(n){var t,r,o=(0,c.getBentoSlideTrackingData)(n,e,nh);"undefined"!=typeof window&&null!==(r=window.AB)&&void 0!==r&&null!==(r=r.DATALAYER)&&void 0!==r&&r.trackHeroCanvasView&&window.AB.DATALAYER.trackHeroCanvasView(o)}},[nv,nh,R]),nP=(0,r.useCallback)(function(e,n,t){var r=(0,c.buildBentoImpressionData)(n,t,P);if("products"===r.variant&&(!r.products||0===r.products.length))return!1;var o=function(n){var t,i=null===(t=window.AB)||void 0===t?void 0:t.DATALAYER;i&&"function"==typeof i.setVerticalHeroBannerImpressions?i.setVerticalHeroBannerImpressions(e,r):n<25&&setTimeout(function(){return o(n+1)},200)};return o(0),!0},[P]);(0,r.useEffect)(function(){if("undefined"!=typeof window&&"undefined"!=typeof IntersectionObserver){var e=eg.current;if(e){var n=e.querySelectorAll(".slick-slide:not(.slick-cloned) [data-slide-index]");if(n.length){var t=new IntersectionObserver(function(e,n){e.forEach(function(e){if(e.isIntersecting){var t,r=e.target,o=Number(r.dataset.slideIndex),i=nv[o],a=null==i?void 0:i.slide;if(a&&!i.isSponsoredGAM&&i.isValid){var u="".concat(null!==(t=a.id)&&void 0!==t?t:"","#").concat(o);!e4.current.has(u)&&nP(r,a,o)&&(e4.current.add(u),n.unobserve(r))}}})},{threshold:.5});return n.forEach(function(e){return t.observe(e)}),function(){return t.disconnect()}}}}},[nv,nP]),(0,r.useCallback)(function(){var e=B.current;e&&(eF?e.slickPause():e.slickPlay(),eV(function(e){return!e}))},[eF]);var nR=(0,r.useCallback)(function(e){var n,t;nr(),"prev"===e?null===(n=B.current)||void 0===n||n.slickPrev():null===(t=B.current)||void 0===t||t.slickNext(),setTimeout(function(){nL()},550)},[nr]);function nC(e){if("undefined"!=typeof window&&e)try{var n=nW(e);if(n&&n.src&&n.contentWindow){var t={windowSize:function(e){if(!e3.current)return window.innerWidth;var n,t=e?nG(e):null,r=null==t?void 0:t.closest(".slick-slide"),o=null!==(n=null==r?void 0:r.offsetWidth)&&void 0!==n?n:0;return o>0?o:window.innerWidth}(e)};try{n.contentWindow.postMessage(t,n.src)}catch(e){console.warn("[postMessage] sendWindowSizeToGAM failed",e)}}}catch(e){console.warn("[postMessage] sendWindowSizeToGamIframe exception",e)}}function nL(){if("undefined"!=typeof window){var e=eg.current;if(e){var n=e.querySelector(".slick-slide.slick-current.slick-active");if(n||(n=e.querySelector(".slick-slide.slick-active .pds-card-container--hero")),n){n.setAttribute("tabindex","-1");try{n.focus({preventScroll:!0})}catch(e){n.focus()}var t=n.querySelector(".google-adManager");if(t){var r,o=nj(t);if(null!=o&&o.src)try{null===(r=o.contentWindow)||void 0===r||r.postMessage({handleADA:!0},o.src)}catch(e){}}}}}}function nj(e){if(!e)return null;if("IFRAME"===e.tagName)return e;if(e.shadowRoot){var n=nj(e.shadowRoot);if(n)return n}for(var t=0;t<e.childNodes.length;t++){var r=nj(e.childNodes[t]);if(r)return r}return null}function nG(e){if(!e||"undefined"==typeof document)return null;for(var n=document.querySelectorAll('[id="'.concat(e,'"]')),t=0;t<n.length;t++){var r=n[t],o=r.closest(".slick-slide");if(!o||!o.classList.contains("slick-cloned"))return r}return n[0]||document.getElementById(e)}function nO(e){if(!e)return null;var n=nG(e);if(!n)return null;var t=n.querySelector('div[id^="google_ads_iframe_"][id$="__container__"]');return t?t.querySelector('iframe[id^="google_ads_iframe_"]')||nj(t):null}function nW(e){if(!e)return null;var n=nG(e);if(!n)return null;var t=nO(e);
1if(t)return t;var r=nj(n);if(r)return r;var o=n.querySelector('div[id^="google_ads_iframe_"][id$="__container__"]');if(o){var i=nj(o);if(i)return i}var a=function(e){if(!e||"undefined"==typeof document)return null;var n=nG(e),t=null==n?void 0:n.closest('.google-adManager[data-banner-type="sponsored-GAM"]');if(t)return t;var r=document.querySelector('.google-adManager[data-banner-type="sponsored-GAM"] div[id="'.concat(e,'"]'));return(null==r?void 0:r.closest('.google-adManager[data-banner-type="sponsored-GAM"]'))||null}(e);if(a){var u=nj(a);if(u)return u}return null}function nB(e){return e?eW.findIndex(function(n){if("sponsored-GAM"!==n.bannerType)return!1;var t,r,o=null===(t=n.gamContainerProps)||void 0===t?void 0:t.id;if(o&&o===e)return!0;var i=null===(r=n.gamProps)||void 0===r?void 0:r["data-gamid"];return!!i&&"gamcontainer_".concat(i)===e}):-1}function nq(e){return!!e&&(!!et.current.has(e)||!!nO(e))}function nH(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;if(e){ee.current[e]&&(clearTimeout(ee.current[e]),delete ee.current[e]);var t=Date.now(),r=function(){var o=Date.now()-t;if(!Z.current.has(e)){delete ee.current[e];return}if(nq(e)){delete ee.current[e],et.current.add(e);var i=nB(e);i>=0&&nD(i,!1,e);return}if(o>=n){delete ee.current[e];var a=nO(e),u=nW(e),c=nB(e),l=et.current.has(e);a||u||l||setTimeout(function(){var n=nO(e),t=nW(e),r=et.current.has(e);n||t||r||nD(c,!0,e)},350);return}ee.current[e]=setTimeout(r,180)};ee.current[e]=setTimeout(r,200)}}function nN(e,n,t){if(e){if(en.current[e]){eo("empty-signal already scheduled",g({containerId:e,reason:n},t));return}eo("empty-signal scheduled",g({containerId:e,reason:n,confirmAfterMs:600},t)),en.current[e]=setTimeout(function(){if(delete en.current[e],nq(e)){eo("empty-signal cancelled (iframe detected)",g({containerId:e,reason:n},t));return}nH(e)},600)}}function nD(e,n,t){if(!(e<0)&&"undefined"!=typeof window){var r,o=e>=0&&(null===(r=eW[e])||void 0===r||null===(r=r.gamContainerProps)||void 0===r?void 0:r.id)||"",i="".concat(t||o||"");if(n&&i){var a=!!nW(i),u=et.current.has(i);if(a||u){eo("setSponsoredSlideHidden:skip-hide-valid-container",{index:e,containerId:i,hasIframeNow:a,isConfirmedLoaded:u});return}}es(function(t){var r=t.includes(e);return n?r?t:[].concat(p(t),[e]).sort(function(e,n){return e-n}):r?t.filter(function(n){return n!==e}):t}),eo("setSponsoredSlideHidden:applied",{index:e,shouldHide:n,containerId:i,isMobileView:e3.current,hasIframe:!!nW(i)})}}function nF(){return(nF=S(y().m(function e(){var n,t,r,o,i,a,u,c,l,s,d,f,v,h,g,w,b,A,_,M,x,k;return y().w(function(e){for(;;)switch(e.n){case 0:if(b=function(e){if(!e)return null;if("IFRAME"===e.tagName)return e;if(e.shadowRoot){var n=b(e.shadowRoot);if(n)return n}for(var t=0;t<e.childNodes.length;t++){var r=b(e.childNodes[t]);if(r)return r}return null},s=function(e){var n="".concat((null==e?void 0:e.id)||"").toLowerCase().match(/(topc2|topc3|topc5)_\d+/);return null==n?void 0:n[1]},l=function(e,n){if(e){var t,r,o=document.getElementById(e),i=null==o?void 0:o.parentElement,a=null==i?void 0:i.querySelector("ad-manager"),u=null==a||null===(r=a.getAttribute("data-bannerposition"))||void 0===r?void 0:r.toLowerCase();if("topc2"===u||"topc3"===u||"topc5"===u)return u}var c="".concat(n.pos||(null===(t=n.gamProps)||void 0===t?void 0:t["data-bannerposition"])||"").toLowerCase().trim();if("topc2"===c||"topc3"===c||"topc5"===c)return c},c=function(e,n){if(n){var t,r=document.getElementById(n);if(null!=r&&r.parentElement){var o=r.parentElement.querySelector('div[id^="gamcontainer_"]');
1if(null!=o&&o.id)return o.id}}var i=null===(t=e.gamContainerProps)||void 0===t?void 0:t.id;return"string"==typeof i&&i.length>0?i:void 0},a=function(){return(a=S(y().m(function e(n){var t,r,i=arguments;return y().w(function(e){for(;;)switch(e.n){case 0:if(t=i.length>1&&void 0!==i[1]?i[1]:200,!(n<=0)){e.n=1;break}return e.a(2);case 1:return e.n=2,new Promise(function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})});case 2:r=Date.now();case 3:if(!(Date.now()-r<t)){e.n=6;break}if(!(o().length>=n)){e.n=4;break}return e.a(2);case 4:return e.n=5,new Promise(function(e){return setTimeout(e,50)});case 5:e.n=3;break;case 6:return e.a(2)}},e)}))).apply(this,arguments)},i=function(e){return a.apply(this,arguments)},o=function(){var e=document.querySelectorAll('.google-adManager[data-banner-type="sponsored-GAM"]'),n=[];return e.forEach(function(e){var t=e.querySelector('div[id^="gamcontainer_"]');null!=t&&t.id&&n.push(t.id)}),n},r=function(e,n){try{var t=window.googletag;if(!t||"object"!==E(t)||"function"!=typeof t.pubads||"function"!=typeof t.destroySlots)return;var r=Array.from(new Set(e.filter(Boolean))),o=Array.from(new Set(n.map(function(e){return"".concat(e||"").toLowerCase().trim()}).filter(function(e){return"topc2"===e||"topc3"===e||"topc5"===e})));if(0===r.length&&0===o.length)return;var i=new Set(r),a=t.pubads(),u=("function"==typeof(null==a?void 0:a.getSlots)&&a.getSlots()||[]).filter(function(e){var n="function"==typeof(null==e?void 0:e.getSlotElementId)?e.getSlotElementId():void 0;if(n&&i.has(n))return!0;var t="function"==typeof(null==e?void 0:e.getAdUnitPath)?"".concat(e.getAdUnitPath()||"").toLowerCase():"";return!!t&&0!==o.length&&o.some(function(e){return t.includes("/".concat(e))})});u.length>0&&(t.destroySlots(u),u.forEach(function(e){try{var n="function"==typeof(null==e?void 0:e.getSlotElementId)?e.getSlotElementId():void 0;n&&K.current.delete(n)}catch(e){}}))}catch(t){console.warn("[HeroCanvas][GAM] Failed to batch destroy existing slots for containers",{containerIds:e,bannerPositions:n,error:t})}},"undefined"!=typeof window){e.n=1;break}return e.a(2);case 1:if(eo("runGamProbe:start",{isMobileView:e3.current,viewport:window.innerWidth,sponsoredCount:eW.filter(function(e){return"sponsored-GAM"===e.bannerType}).length,filteredPassApplied:X.current}),n=window.gamParamCall,t=window.slotGenerator,u=eG.filter(function(e){return"sponsored-GAM"===e.bannerType}),!X.current){e.n=2;break}return e.n=2,i(u.length);case 2:d=u.map(function(e){var n,t=null===(n=e.gamProps)||void 0===n?void 0:n.id;return c(e,t)}).filter(function(e){return"string"==typeof e&&e.length>0}),f=u.map(function(e){var n;return"".concat(e.pos||(null===(n=e.gamProps)||void 0===n?void 0:n["data-bannerposition"])||"")}),X.current||r(d,f),Z.current=new Set(d),(v=window.googletag)&&"object"===E(v)&&Array.isArray(v.cmd)&&!Q.current&&(Q.current=!0,v.cmd.push(function(){try{var e="function"==typeof v.pubads?v.pubads():null;if(!e||"function"!=typeof e.addEventListener)return;var n=function(e){if(!e)return"";if(e.startsWith("gamcontainer_"))return e;if(e.startsWith("gamSection_")){var n=e.replace("gamSection_",""),t="gamcontainer_".concat(n);if(document.getElementById(t))return t}var r=document.getElementById(e),o=null==r?void 0:r.closest('.google-adManager[data-banner-type="sponsored-GAM"]'),i=null==o?void 0:o.querySelector('div[id^="gamcontainer_"]');return(null==i?void 0:i.id)||e},t=function(e){if(!e)return!1;var t=n(e);if(Z.current.has(t))return!0;var r=document.getElementById(t)||document.getElementById(e);return!!r&&!!r.closest('.google-adManager[data-banner-type="sponsored-GAM"]')};e.addEventListener("slotResponseReceived",function(e){try{var r=null!=e&&e.slot&&"function"==typeof e.slot.getSlotElementId?e.slot.getSlotElementId():"";if(!r||!t(r))return;var o=n(r);if(!(null!=e&&e.slot&&"function"==typeof e.slot.getResponseInformation&&e.slot.getResponseInformation())){eo("slotResponseReceived:no-response",{slotId:r,containerId:o}),nN(o,"slotResponseReceived-noResponse",{slotId:r});return}eo("slotResponseReceived:has-response",{slotId:r,containerId:o});var i=nB(o);i>=0&&nD(i,!1,o),en.current[o]&&(clearTimeout(en.current[o]),delete en.current[o]),nq(o
1)&&et.current.add(o),nH(o),nC(o)}catch(e){console.warn("[HeroBento][GAM] slotResponseReceived listener failure",e)}}),e.addEventListener("slotRenderEnded",function(e){try{var r=null!=e&&e.slot&&"function"==typeof e.slot.getSlotElementId?e.slot.getSlotElementId():"";if(!r||!t(r))return;var o=n(r);if((null==e?void 0:e.isEmpty)===!0)eo("slotRenderEnded:empty",{slotId:r,containerId:o}),nN(o,"slotRenderEnded-empty",{slotId:r});else{eo("slotRenderEnded:filled",{slotId:r,containerId:o,isEmpty:null==e?void 0:e.isEmpty}),et.current.add(o);var i=nB(o);i>=0&&nD(i,!1,o),en.current[o]&&(clearTimeout(en.current[o]),delete en.current[o]),J.current[o]&&(clearTimeout(J.current[o]),delete J.current[o]),nH(o)}}catch(e){console.warn("[HeroBento][GAM] slotRenderEnded listener failure",e)}}),e.addEventListener("slotOnload",function(e){try{var r=null!=e&&e.slot&&"function"==typeof e.slot.getSlotElementId?e.slot.getSlotElementId():"";if(!r||!t(r))return;var o=n(r);eo("slotOnload",{slotId:r,containerId:o});var i=nB(o);i>=0&&nD(i,!1,o),en.current[o]&&(clearTimeout(en.current[o]),delete en.current[o]),J.current[o]&&(clearTimeout(J.current[o]),delete J.current[o]),ee.current[o]&&(clearTimeout(ee.current[o]),delete ee.current[o]),et.current.add(o),nH(o),nC(o),function(e){if("undefined"!=typeof window&&e)try{var n=nW(e);
1null!=n&&n.src&&n.contentWindow&&n.contentWindow.postMessage({handleADA:!0},n.src)}catch(e){console.warn("[postMessage] sendAdaMessageToGamIframe exception",e)}}(o)}catch(e){console.warn("[HeroBento][GAM] slotOnload listener failure",e)}})}catch(e){console.warn("[HeroBento][GAM] failed to attach pubads listeners",e)}})),h=[],g={},w=eW.map(function(e,n){return"sponsored-GAM"===e.bannerType?n:-1}).filter(function(e){return e>=0}),A=y().m(function e(o){var i,a,d,f,v,S,E,A,_,M,x,k,I,T,P,R,C,L,j,G,O,W;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:I=function(e){function n(e){if(!e)return null;if("IFRAME"===e.tagName)return e;if(e.shadowRoot){var t=n(e.shadowRoot);if(t)return t}for(var r=0;r<e.childNodes.length;r++){var o=n(e.childNodes[r]);if(o)return o}return null}e&&function(){if(e){var t=n(e);if(t&&t.src){var r,o={windowSize:window.innerWidth};try{null===(r=t.contentWindow)||void 0===r||r.postMessage(o,t.src)}catch(e){console.warn("postMessage failed",e)}return}var i=new MutationObserver(function(t,r){var o=n(e);if(o&&o.src){try{null===(i=o.contentWindow)||void 0===i||i.postMessage({windowSize:window.innerWidth},o.src)}catch(e){console.warn("postMessage failed",e)}r.disconnect()}var i,a,u=m(t);try{for(u.s();!(a=u.n()).done;){var c=a.value;if("attributes"===c.type&&"IFRAME"===c.target.tagName){var l,s=c.target;if(s.src){try{null===(l=s.contentWindow)||void 0===l||l.postMessage({windowSize:window.innerWidth},s.src)}catch(e){console.warn("postMessage failed",e)}r.disconnect();return}}}}catch(e){u.e(e)}finally{u.f()}});try{i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src"]})}catch(t){var a=0,u=function(){var t,r=n(e);if(r&&r.src){try{null===(t=r.contentWindow)||void 0===t||t.postMessage({windowSize:window.innerWidth},r.src)}catch(e){console.warn("postMessage failed",e)}return}a++<100&&setTimeout(u,200)};u()}setTimeout(function(){try{i.disconnect()}catch(e){}})}}()},f=(null==(d=(a=u[o]).gamProps?document.getElementById(a.gamProps.id):null)?void 0:d.id)||(null===(i=a.gamProps)||void 0===i?void 0:i.id),(v=c(a,f))&&h.push(v),S=v?eW.findIndex(function(e){var n;return(null===(n=e.gamContainerProps)||void 0===n?void 0:n.id)===v}):-1,E=o<w.length?w[o]:-1,A=S>=0?S:E,v&&A>=0&&(g[v]=A),_=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(v){var t=v,r=function(){var n=document.getElementById(t),r=b(n),i=l(t,a),u=s(r),c=!!r&&!!i&&!!u&&i!==u;if(r&&!c){t&&J.current[t]&&(clearTimeout(J.current[t]),delete J.current[t]),A>=0&&nD(A,!1),z.current&&A>=0&&eu(function(e){return e.filter(function(e){return e!==A})});return}c&&console.warn("[HeroCanvas][GAM] iframe position mismatch in container",{containerId:t,expectedPosition:i,actualPosition:u,iframeId:null==r?void 0:r.id,adId:f}),V.current.has(t)||(V.current.add(t),A>=0&&(J.current[t]&&clearTimeout(J.current[t]),J.current[t]=setTimeout(function(){var e=document.getElementById(t),n=b(e),r=l(t,a),o=s(n),i=!!n&&!!r&&!!o&&r!==o;(!n||i)&&nH(t,1200),delete J.current[t]},800)),z.current&&A>=0&&eu(function(e){return e.includes(A)?e:[].concat(p(e),[A])}),console.warn("[HeroCanvas][GAM] iframe missing in mounted GAM container",{phase:e,carouselIndex:A,gamBannerIndex:o,slideId:a.id,adId:f,containerId:t}))};if(n>0){setTimeout(r,n);return}r()}},M={};try{n&&(M=(null==(x=n(f))?void 0:x.detail)||{})}catch(e){}if(!(!M||0===Object.keys(M).length)){e.n=1;break}return console.warn("[HeroCanvas][GAM] Empty gam detail before slotGenerator",{index:o,adId:f,containerId:v,position:a.pos||(null===(k=a.gamProps)||void 0===k?void 0:k["data-bannerposition"])}),_("empty-gam-detail",200),e.a(2,0);case 1:if(e.p=1,T=(v=c(a,f)||v)?document.getElementById(v):null,!(t&&v&&T)){e.n=4;break}if(R=a.pos||(null===(P=a.gamProps)||void 0===P?void 0:P["data-bannerposition"])||"topc2",!K.current.has(v)){e.n=3;break}if(!b(T)){e.n=2;break}return e.a(2,0);case 2:r([v],[R]),K.current.delete(v);case 3:if(C=R,M.containerId=v,M.divId=v,M.slotElementId=v,M.adContainerId=v,M.isInsideCarousel=!0,M.sizes="fluid",M.bannerPosition=C,M.bannerposition=C,M.position=C,o===u.length-1&&(M.enableSRA=!0),t(M,v),K.current.add(v),L=function(e){I(e)},j=function(e){return!!e&&(!!e.childElementCount&&e.childElementCount>0||!!e.children&&e.children.length>0||"string"==typeof e.innerHTML&&e.innerHTML.trim().length>0||!!e.querySelectorAll&&e.querySelectorAll("*:scope > *").length>0||!!e.shadowRoot&&e.shadowRoot.childElementCount>0)},T&&j(T))L(T),_("children-present",120);else if(T){G=new MutationObserver(function(e,n){var t,r=m(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.addedNodes&&o.addedNodes.length>0){L(T),_("mutation-added-nodes",120),n.disconnect();return}}}catch(e){r.e(e)}finally{r.f()}j(T)&&(L(T),_("mutation-visible-children",120),n.disconnect())});try{G.observe(T,{childList:!0,subtree:!0})}catch(e){O=0,(W=function(){if(j(T)){L(T);return}O++<100&&setTimeout(W,200)})()}setTimeout(function(){try{G.disconnect()}catch(e){}},300)}_("post-slot-generator",120);case 4:e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,null,[[1,5]])}),_=0;case 3:if(!(_<u.length)){e.n=6;break}return e.d(function(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],t=0;if(n)return n.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw TypeError(E(e)+" is not iterable")}(A(_)),4);case 4:if(0!==e.v){e.n=5;break}return e.a(3,5);case 5:_++,e.n=3;break;case 6:h.length>0?(M=function(){var e=[],n=!0;return h.forEach(function(t){if(!et.current.has(t)){var r=document.getElementById(t),o=b(r),i=g[t],a="number"==typeof i&&i>=0?eW[i]:void 0,u=a?l(t,a):void 0,c=s(o),d=!!o&&!!u&&!!c&&u!==c;(!o||d)&&(n=!1),(!o||d)&&"number"==typeof i&&i>=0&&e.push(i)}}),{allReady:n,missingIndexes:Array.from(new Set(e)).sort(function(e,n){return e-n})}},x=Date.now(),k=setInterval(function(){var e=M(),n=e.allReady,t=e.missingIndexes,r=Date.now()-x>=1e4;(n||r)&&(eo("authoritative-scan:resolved",{allReady:n,missingIndexes:t,isTimedOut:r,elapsedMs:Date.now()-x,isMobileView:e3.current,viewport:window.innerWidth,perContainer:h.map(function(e){var n,t,r=document.getElementById(e),o=b(r),i=null==r?void 0:r.closest(".slick-slide");return{containerId:e,hasIframe:!!o,iframeId:null==o?void 0:o.id,containerWidth:null!==(n=null==r?void 0:r.offsetWidth)&&void 0!==n?n:null,slideBoxWidth:null!==(t=null==i?void 0:i.offsetWidth)&&void 0!==t?t:null}})}),clearInterval(k),z.current=!0,eu(t),ev(!0))},250)):(z.current=!0,eu([]),ev(!0));case 7:return e.a(2)}},e)}))).apply(this,arguments)}return(0,r.useEffect)(function(){if(console.log("Running GAM probe check",{gamRan:N.current,loading:v,processedItems:eG}),(!X.current||!U.current)&&(!X.current||em)&&!N.current&&!D.current&&!v){var e,n,t=eW.some(function(e){return"sponsored-GAM"===e.bannerType});if(t){if(e="undefined"!=typeof window?window.googletag:void 0,n="undefined"!=typeof window?window.isConsentCookieEnabled:void 0,e&&"object"===E(e)&&void 0!==e._loaded_&&!1===e._loaded_||n&&"object"===E(n)&&!1===n.functional){N.current=!0,eB(function(e){return e.filter(function(e){return"sponsored-GAM"!==e.bannerType})});return}console.log("Checking GAM probe conditions",{hasCurrentSponsored:t,visibleItems:eW});var r=eW.filter(function(e){return"sponsored-GAM"===e.bannerType}).map(function(e){var n;return null===(n=e.gamContainerProps)||void 0===n?void 0:n.id}).filter(Boolean);if(0!==r.length){var o=null,i=null,a=function(){!F.current&&!D.current&&!N.current&&(!X.current||!U.current)&&r.every(function(e){return document.getElementById(e)})&&(o&&o.disconnect(),i&&clearTimeout(i),D.current=!0,S(y().m(function e(){return y().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,function(){return nF.apply(this,arguments)}();case 1:if(!X.current){e.n=4;break}if(!r.every(function(e){return!!nj(document.getElementById(e))})){e.n=2;break}return U.current=!0,Y.current=0,N.current=!0,e.a(2);case 2:if(!(Y.current<4)){e.n=3;break}return Y.current+=1,U.current=!1,N.current=!1,$.current&&clearTimeout($.current),$.current=setTimeout(function(){F.current||a()},800),e.a(2);case 3:return U.current=!0,N.current=!0,e.a(2);case 4:N.current=!0;case 5:return e.p=5,D.current=!1,e.f(5);case 6:return e.a(2)}},e,null,[[0,,5,6]])}))())};return i=setTimeout(a,120),(o=new MutationObserver(function(){a()})).observe(document.body,{childList:!0,subtree:!0}),function(){o&&o.disconnect(),i&&clearTimeout(i),$.current&&(clearTimeout($.current),$.current=null)}}}}},[eW,v,em]),(0,r.useEffect)(function(){if("undefined"!=typeof window){var e=function(e){var n,t,r=e.data;if(r&&"object"===E(r)&&r.isHeroCanvasCarousel&&r.isSwiped){var o=r.direction;if("left"===o||"right"===o){var i=Date.now();i-er.current<320||(er.current=i,nr(),"left"===o?null===(n=B.current)||void 0===n||n.slickNext():null===(t=B.current)||void 0===t||t.slickPrev(),setTimeout(function(){nL()},550))}}};return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}},[nr]),(0,r.useEffect)(function(){var e=function(){ek(e_(window.innerWidth));var e=window.innerWidth<768;e3.current=e,eb(e),eG.forEach(function(e){if((null==e?void 0:e.bannerType)==="sponsored-GAM"){var n,t,r=null!==(n=e.gamContainerProps)&&void 0!==n&&n.id||null!==(t=e.gamProps)&&void 0!==t&&t["data-gamid"]?"gamcontainer_".concat(e.gamProps["data-gamid"]):void 0;r&&nC(r)}})};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[eG]),(0,r.useEffect)(function(){if("undefined"!=typeof window&&!nk){var e=document.querySelector(".bento-carousel__slides");e&&e.querySelectorAll(".slick-track > .slick-slide").forEach(function(e){if(e.style.margin="0px",e.querySelector('[data-gam-hidden="true"]')){ew&&(e.style.padding="0px",e.style.width="0px");return}if(ew){var n=parseInt(e.getAttribute("data-index")||"0",10),t=nI.length;e.style.padding=0===n||n===t?"8px 8px 0px 16px":n===t-1||-1===n?"8px 0px 0px 0px":"8px 8px 0px 0px",e.style.setProperty("width","auto","important"),e.style.setProperty("touch-action","pan-y","important"),e.style.setProperty("-ms-touch-action","pan-y","important")}else e.style.padding=eX?"8px 0px":"8px"})}},[nI,ew,nk,eX,nh,e7]),(0,r.useEffect)(function(){if("undefined"!=typeof window){var e=document.querySelector(".bento-carousel__slides");if(e){var n="data-hero-orig-tabindex";
1if(nk){e.querySelectorAll("[".concat(n,"]")).forEach(function(e){var t=e.getAttribute(n);"__none__"===t?e.removeAttribute("tabindex"):t&&e.setAttribute("tabindex",t),e.removeAttribute(n)});return}var t=requestAnimationFrame(function(){e.querySelectorAll(".slick-track > .slick-slide").forEach(function(e){var t,r=e.classList.contains("slick-cloned"),o=null===(t=e.querySelector("[data-slide-aria-label]"))||void 0===t?void 0:t.getAttribute("data-slide-aria-label");if(o&&(e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-label",o)),e.querySelector('[data-gam-hidden="true"]')){e.setAttribute("inert",""),e.setAttribute("aria-hidden","true");return}if(ew&&!r){e.setAttribute("aria-hidden","false");return}var i=e.classList.contains("slick-active")&&"true"!==e.getAttribute("aria-hidden");i?e.removeAttribute("inert"):e.setAttribute("inert",""),e.querySelectorAll('a[href], area[href], button, input, select, textarea, iframe, [tabindex], [role="button"], [role="link"]').forEach(function(e){if(i){if(!e.hasAttribute(n))return;var t=e.getAttribute(n);"__none__"===t?e.removeAttribute("tabindex"):t&&e.setAttribute("tabindex",t),e.removeAttribute(n);return}if(!e.hasAttribute(n)){var r=e.getAttribute("tabindex");e.setAttribute(n,null===r?"__none__":r)}e.setAttribute("tabindex","-1")})})});return function(){cancelAnimationFrame(t)}}}},[eH,nI,ew,nk]),(0,d.jsxs)("div",{className:"bento-carousel-container",ref:eg,"aria-label":void 0===I?"Hero Bento Carousel":I,role:"region","data-dragging":!ew&&eX?"true":void 0,onPointerDown:no,onPointerMove:ni,onPointerUp:na,onPointerCancel:na,onFocus:nr,onKeyDown:nf,style:{touchAction:"pan-y",msTouchAction:"pan-y"},children:[ew&&!nk&&nh>1&&eF&&(0,d.jsx)("button",{className:"sr-only",onClick:function(){nr()},"aria-label":"Stop carousel autoplay",tabIndex:e0.current?-1:0,children:"stop carousel autoplay"}),ew&&!nk&&nw?(0,d.jsx)("div",{className:"sr-only","aria-live":"polite","aria-atomic":"true",children:nw}):null,(0,d.jsx)("div",{className:"bento-carousel__slides abs-carousel p-0 slick-initialized slick-slider",children:nk?(0,d.jsx)(u.HeroBentoShimmer,{count:void 0===w?1:w}):(0,d.jsx)(o.default,g(g({ref:B,className:"slick-list draggable"},{dots:!1,arrows:!1,infinite:(void 0===k||k)&&nh>1&&(e7||!ew),slidesToShow:1,autoplay:_&&nh>1&&!eT,autoplaySpeed:void 0===M?4e3:M,pauseOnFocus:!0,pauseOnHover:!0,accessibility:!0,adaptiveHeight:!0,swipe:!0,swipeToSlide:!0,beforeChange:function(e,n){if(0===e&&0!==n&&eZ(!1),!e6.current&&!e1.current){var t=document.querySelector(".slick-track");t&&(t.classList.contains(s.default.slickTrackTransition)?(t.classList.remove(s.default.slickTrackTransition),e1.current=!0):n==e+1?t.classList.add(s.default.slickTrackTransition):e1.current=!0)}eN(n),eK(!0)},afterChange:function(e){e2.current=e,nb.current=e,ew&&!e6.current&&e===nh-1&&(e6.current=!0,e9(!0)),0===e&&eZ(!0),eU(!1),nT(e)},onSwipe:function(){nr()},onInit:function(){null==C||C()},useTransform:!0,cssEase:"ease-in-out",waitForAnimate:!0,draggable:!0,touchMove:!0,touchThreshold:15,responsive:[{breakpoint:768,settings:{centerMode:e$&&(!eQ||e7),centerPadding:e$&&(!eQ||e7)?"20px":"0px",variableWidth:!0}}]}),{},{children:nI}))}),!nk&&nh>1&&(void 0===x||x)&&(0,d.jsx)(l.default,{onPrev:function(){return nR("prev")},onNext:function(){return nR("next")}})]})};n.default=x}}]);

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.