(()=>{var e={1828:e=>{e.exports={setAttributes:function(e,t){Object.keys(t).forEach((n=>e.setAttribute(n,t[n])))},createElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const i=document.createElement(e);return Array.isArray(t)?t.forEach((e=>{i.classList.add(e)})):"string"==typeof t&&i.classList.add(t),Array.isArray(n)?n.forEach((e=>{i.setAttribute(e.name,e.value)})):"object"==typeof n&&i.setAttribute(n.name,n.value),i},toggleInertOnSiblings:(e,t)=>{e&&e.parentElement&&[...e.parentElement?.children].forEach((n=>{n!==e&&"SCRIPT"!==n.tagName&&"NOSCRIPT"!==n.tagName&&"LINK"!==n.tagName&&"onetrust-consent-sdk"!==n.id&&n.toggleAttribute("inert",t)}))}}},6942:(e,t)=>{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t{const t={get(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():""},set(e,t,n,i,r){const l=`${e}=${t}`,a=n?`;domain=${n}`:"",o=i?`;path=${i}`:"",s=r?`;expires=${r}`:"",c=arguments.length>5&&void 0!==arguments[5]&&arguments[5]&&n?";secure":"";document.cookie=l.concat(a,o,s,c)}};e.exports=t},9853:e=>{var t=.1,n="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function r(e,t){return 3*t-6*e}function l(e){return 3*e}function a(e,t,n){return((i(t,n)*e+r(t,n))*e+l(t))*e}function o(e,t,n){return 3*i(t,n)*e*e+2*r(t,n)*e+l(t)}function s(e){return e}e.exports=function(e,i,r,l){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===i&&r===l)return s;for(var c=n?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,r);function d(n){for(var i=0,l=1;10!==l&&c[l]<=n;++l)i+=t;--l;var s=i+(n-c[l])/(c[l+1]-c[l])*t,u=o(s,e,r);return u>=.001?function(e,t,n,i){for(var r=0;r<4;++r){var l=o(t,n,i);if(0===l)return t;t-=(a(t,n,i)-e)/l}return t}(n,s,e,r):0===u?s:function(e,t,n,i,r){var l,o,s=0;do{(l=a(o=t+(n-t)/2,i,r)-e)>0?n=o:t=o}while(Math.abs(l)>1e-7&&++s<10);return o}(n,i,i+t,e,r)}return function(e){return 0===e?0:1===e?1:a(d(e),i,l)}}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var l=t[i]={exports:{}};return e[i](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,i,r,l,a,o,s,c,u,d,h,_={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(t,n,i){var r,l,a,o={};for(a in n)"key"==a?r=n[a]:"ref"==a?l=n[a]:o[a]=n[a];if(arguments.length>2&&(o.children=arguments.length>3?e.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)null==o[a]&&(o[a]=t.defaultProps[a]);return y(t,o,r,l,null)}function y(e,n,r,l,a){var o={type:e,props:n,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(o),o}function x(){return{current:null}}function S(e){return e.children}function k(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;tu&&r.sort(o),e=r.shift(),u=r.length,e.__d&&(i=void 0,a=(l=(n=e).__v).__e,s=[],c=[],n.__P&&((i=g({},l)).__v=l.__v+1,t.vnode&&t.vnode(i),M(n.__P,i,l,n.__n,n.__P.namespaceURI,32&l.__u?[a]:null,s,null==a?w(l):a,!!(32&l.__u),c),i.__v=l.__v,i.__.__k[i.__i]=i,B(s,i,c),i.__e!=a&&E(i)));N.__r=0}function I(e,t,n,i,r,l,a,o,s,c,u){var d,h,p,m,g,b,v=i&&i.__k||f,y=t.length;for(s=L(n,t,v,s,y),d=0;d0?y(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,o=null,-1!=(c=a.__i=A(a,n,s,d))&&(d--,(o=n[c])&&(o.__u|=2)),null==o||null==o.__v?(-1==c&&(r>u?h--:rs?h--:h++,a.__u|=4))):e.__k[l]=null;if(d)for(l=0;l(null==s||2&s.__u?0:1))for(r=n-1,l=n+1;r>=0||l=0){if((s=t[r])&&!(2&s.__u)&&a==s.key&&o==s.type)return r;r--}if(l0?e:m(e)?e.map(R):g({},e)}function z(n,i,r,l,a,o,s,c,u){var d,h,f,p,g,v,y,x=r.props,S=i.props,k=i.type;if("svg"==k?a="http://www.w3.org/2000/svg":"math"==k?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=o)for(d=0;d2&&(s.children=arguments.length>3?e.call(arguments,2):i),y(t.type,s,r||t.key,l||t.ref,null)}function K(e){function t(e){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,$(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+h++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e=f.slice,t={__e:function(e,t,n,i){for(var r,l,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},i=0,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},k.prototype.render=S,r=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(e,t){return e.__v.__b-t.__v.__b},N.__r=0,s=/(PointerCapture)$|Capture$/i,c=0,u=V(!1),d=V(!0),h=0;var j,G,Z,X,J=0,Q=[],Y=t,ee=Y.__b,te=Y.__r,ne=Y.diffed,ie=Y.__c,re=Y.unmount,le=Y.__;function ae(e,t){Y.__h&&Y.__h(G,e,J||t),J=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function oe(e){return J=1,se(we,e)}function se(e,t,n){var i=ae(j++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):we(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=G,!G.__f)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!l||l.call(this,e,t,n);var a=i.__c.props!==e;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),l&&l.call(this,e,t,n)||a};G.__f=!0;var l=G.shouldComponentUpdate,a=G.componentWillUpdate;G.componentWillUpdate=function(e,t,n){if(this.__e){var i=l;l=void 0,r(e,t,n),l=i}a&&a.call(this,e,t,n)},G.shouldComponentUpdate=r}return i.__N||i.__}function ce(e,t){var n=ae(j++,3);!Y.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,G.__H.__h.push(n))}function ue(e,t){var n=ae(j++,4);!Y.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,G.__h.push(n))}function de(e){return J=5,_e((function(){return{current:e}}),[])}function he(e,t,n){J=6,ue((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function _e(e,t){var n=ae(j++,7);return ke(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fe(e,t){return J=8,_e((function(){return e}),t)}function pe(e){var t=G.context[e.__c],n=ae(j++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function me(e,t){Y.useDebugValue&&Y.useDebugValue(t?t(e):e)}function ge(){var e=ae(j++,11);if(!e.__){for(var t=G.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function be(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xe),e.__H.__h.forEach(Se),e.__H.__h=[]}catch(t){e.__H.__h=[],Y.__e(t,e.__v)}}Y.__b=function(e){G=null,ee&&ee(e)},Y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),le&&le(e,t)},Y.__r=function(e){te&&te(e),j=0;var t=(G=e.__c).__H;t&&(Z===G?(t.__h=[],G.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(xe),t.__h.forEach(Se),t.__h=[],j=0)),Z=G},Y.diffed=function(e){ne&&ne(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Q.push(t)&&X===Y.requestAnimationFrame||((X=Y.requestAnimationFrame)||ye)(be)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),Z=G=null},Y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(xe),e.__h=e.__h.filter((function(e){return!e.__||Se(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Y.__e(n,e.__v)}})),ie&&ie(e,t)},Y.unmount=function(e){re&&re(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{xe(e)}catch(e){t=e}})),n.__H=void 0,t&&Y.__e(t,n.__v))};var ve="function"==typeof requestAnimationFrame;function ye(e){var t,n=function(){clearTimeout(i),ve&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ve&&(t=requestAnimationFrame(n))}function xe(e){var t=G,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),G=t}function Se(e){var t=G;e.__c=e.__(),G=t}function ke(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function Ee(e,t){for(var n in t)e[n]=t[n];return e}function $e(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Ne(e,t){var n=t(),i=oe({t:{__:n,u:t}}),r=i[0].t,l=i[1];return ue((function(){r.__=n,r.u=t,Ie(r)&&l({t:r})}),[e,n,t]),ce((function(){return Ie(r)&&l({t:r}),e((function(){Ie(r)&&l({t:r})}))}),[e]),n}function Ie(e){var t,n,i=e.u,r=e.__;try{var l=i();return!((t=r)===(n=l)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function Le(e){e()}function Ce(e){return e}function Te(){return[!1,Le]}var Ae=ue;function Pe(e,t){this.props=e,this.context=t}(Pe.prototype=new k).isPureReactComponent=!0,Pe.prototype.shouldComponentUpdate=function(e,t){return $e(this.props,e)||$e(this.state,t)};var Oe=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Oe&&Oe(e)};var Ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Me(e){function t(t){var n=Ee({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ve,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Be=function(e,t){return null==e?null:T(T(e).map(t))},Re={map:Be,forEach:Be,count:function(e){return e?T(e).length:0},only:function(e){var t=T(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:T},ze=t.__e;t.__e=function(e,t,n,i){if(e.then)for(var r,l=t;l=l.__;)if((r=l.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);ze(e,t,n,i)};var De=t.unmount;function Ue(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Ee({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ue(e,t,n)}))),e}function He(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return He(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function We(){this.__u=0,this.o=null,this.__b=null}function Fe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qe(){this.i=null,this.l=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),De&&De(e)},(We.prototype=new k).__c=function(e,t){var n=t.__c,i=this;null==i.o&&(i.o=[]),i.o.push(n);var r=Fe(i.__v),l=!1,a=function(){l||(l=!0,n.__R=null,r?r(o):o())};n.__R=a;var o=function(){if(! --i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=He(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.o.pop();)t.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},We.prototype.componentWillUnmount=function(){this.o=[]},We.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Ue(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&v(S,null,e.fallback);return r&&(r.__u&=-33),[v(S,null,t.__a?null:e.children),r]};var Ke=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.h.removeChild(e)}}),W(v(je,{context:t.context},e.__v),t.v)}(qe.prototype=new k).__a=function(e){var t=this,n=Fe(t.__v),i=t.l.get(e);return i[0]++,function(r){var l=function(){t.props.revealOrder?(i.push(r),Ke(t,e,i)):r()};n?n(l):l()}},qe.prototype.render=function(e){this.i=null,this.l=new Map;var t=T(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},qe.prototype.componentDidUpdate=qe.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Ke(e,n,t)}))};var Ze="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Xe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Je=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Qe=/[A-Z0-9]/g,Ye="undefined"!=typeof document,et=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var tt=t.event;function nt(){}function it(){return this.cancelBubble}function rt(){return this.defaultPrevented}t.event=function(e){return tt&&(e=tt(e)),e.persist=nt,e.isPropagationStopped=it,e.isDefaultPrevented=rt,e.nativeEvent=e};var lt,at={enumerable:!1,configurable:!0,get:function(){return this.class}},ot=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={},r=-1===n.indexOf("-");for(var l in t){var a=t[l];if(!("value"===l&&"defaultValue"in t&&null==a||Ye&&"children"===l&&"noscript"===n||"class"===l||"className"===l)){var o=l.toLowerCase();"defaultValue"===l&&"value"in t&&null==t.value?l="value":"download"===l&&!0===a?a="":"translate"===o&&"no"===a?a=!1:"o"===o[0]&&"n"===o[1]?"ondoubleclick"===o?l="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||et(t.type)?"onfocus"===o?l="onfocusin":"onblur"===o?l="onfocusout":Je.test(l)&&(l=o):o=l="oninput":r&&Xe.test(l)?l=l.replace(Qe,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===o&&i[l=o]&&(l="oninputCapture"),i[l]=a}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=T(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=T(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",at)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Ze,ot&&ot(e)};var st=t.__r;t.__r=function(e){st&&st(e),lt=e.__c};var ct=t.diffed;t.diffed=function(e){ct&&ct(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),lt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return lt.__n[e.__c].props.value},useCallback:fe,useContext:pe,useDebugValue:me,useDeferredValue:Ce,useEffect:ce,useId:ge,useImperativeHandle:he,useInsertionEffect:Ae,useLayoutEffect:ue,useMemo:_e,useReducer:se,useRef:de,useState:oe,useSyncExternalStore:Ne,useTransition:Te}}};function dt(e){return!!e&&e.$$typeof===Ze}var ht={useState:oe,useId:ge,useReducer:se,useEffect:ce,useLayoutEffect:ue,useInsertionEffect:Ae,useTransition:Te,useDeferredValue:Ce,useSyncExternalStore:Ne,startTransition:Le,useRef:de,useImperativeHandle:he,useMemo:_e,useCallback:fe,useContext:pe,useDebugValue:me,version:"18.3.1",Children:Re,render:function(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(W(null,e),!0)},createPortal:function(e,t){var n=v(Ge,{__v:e,h:t});return n.containerInfo=t,n},createElement:v,createContext:K,createFactory:function(e){return v.bind(null,e)},cloneElement:function(e){return dt(e)?q.apply(null,arguments):e},createRef:x,Fragment:S,isValidElement:dt,isElement:dt,isFragment:function(e){return dt(e)&&e.type===S},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:k,PureComponent:Pe,memo:function(e,t){function n(e){var n=this.props.ref,i=n==e.ref;return!i&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!i:$e(this.props,e)}function i(t){return this.shouldComponentUpdate=n,v(e,t)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i},forwardRef:Me,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:S,Suspense:We,SuspenseList:qe,lazy:function(e){var t,n,i;function r(r){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw t;return v(n,r)}return r.displayName="Lazy",r.__f=!0,r},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut};var _t=0;Array.isArray;function ft(e,n,i,r,l,a){n||(n={});var o,s,c=n;if("ref"in c)for(s in c={},n)"ref"==s?o=n[s]:c[s]=n[s];var u={type:e,props:c,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--_t,__i:-1,__u:0,__source:l,__self:a};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===c[s]&&(c[s]=o[s]);return t.vnode&&t.vnode(u),u}const pt=K({activeTab:void 0,setActiveTab:()=>{},tabs:[],root:null}),mt=({value:e,children:t})=>{const{activeTab:n,setActiveTab:i,tabs:r,root:l}=e;return ft(pt.Provider,{value:{activeTab:n,setActiveTab:i,tabs:r,get root(){return l.current}},children:t})};var gt=pt,bt=n(6942);const vt=({prefix:e="",className:t,viewBox:n="0 0 24 24",ariaHidden:i=!0,children:r,...l})=>ft("svg",{viewBox:n,focusable:"false",width:"24",height:"24",...l,"aria-hidden":i,className:`${e}svg-icon${t?` ${t}`:""}`,children:r});var yt=e=>{const{prefix:t="",viewBox:n="0 0 24 24",paths:i,className:r,modifier:l,ariaHidden:a=!0,...o}=e,s=bt(r,l&&`${t}svg-icon--${l}`);return i?ft(vt,{viewBox:n,prefix:t,...o,className:s,ariaHidden:a,children:i().map(((e,t)=>ht.cloneElement(e,{key:t})))}):null},xt=yt;const St=(e,t)=>e.slice(t).concat(e.slice(0,t)),kt=e=>e?e.props.tabPanelId:void 0,wt=e=>kt(e.find((e=>!e.props.disabled))),Et=e=>kt([...e].reverse().find((e=>!e.props.disabled))),$t=(e,t)=>e.findIndex((({props:{tabPanelId:e}})=>e===t)),Nt="End",It="Home",Lt="ArrowLeft",Ct="ArrowUp",Tt="ArrowRight",At="ArrowDown",Pt="Tab",Ot=(e,t,n,i,r)=>{const l=e.key,a=!!document.querySelector('[dir="rtl"]');a&&(i=[...i].reverse()),l!==Nt&&l!==It&&l!==Tt&&l!==Lt&&l!==Ct&&l!==At||e.preventDefault();let o=t;l===Nt?o=(a?wt:Et)(i):l===It?o=(a?Et:wt)(i):l===Lt?o=((e,t)=>kt(St(e,$t(e,t)).reverse().find((e=>!e.props.disabled))))(i,t):l===Tt&&(o=((e,t)=>kt(St(e,$t(e,t)+1).find((e=>!e.props.disabled))))(i,t));const s=Vt(o,r);if(e.shiftKey||l!==Pt)o&&o!==t&&s&&(n(o),s.focus({preventScroll:!0}));else{const n=Mt(t,r);n&&(e.preventDefault(),n.focus())}},Vt=(e,t=document)=>t.querySelector(`[aria-controls="${e}"]`),Mt=(e,t=document)=>t.querySelector(`#${e}`),Bt=Me(((e,t)=>{const{prefix:n="",ssrIcon:i,disabled:r,className:l,children:a,text:o,tabPanelId:s,onClick:c,onKeyDown:u,...d}=e,h=pe(gt);return ft("button",{disabled:r,ref:t,...d,className:bt(`${n}tabs__tab`,l,h.activeTab===s&&`${n}tabs__tab--active`),onClick:e=>{c&&c(e)||h.setActiveTab(s)},onKeyDown:e=>{u&&u(e)||Ot(e,s,h.setActiveTab,h.tabs,h.root||void 0)},role:"tab","aria-selected":h.activeTab===s,"aria-controls":s,tabIndex:r||h.activeTab!==s?-1:void 0,children:[i&&ft(xt,{prefix:n,paths:i}),o,a]})}));Bt.displayName="Tab";const Rt=Me(((e,t)=>{const{prefix:n="",className:i,title:r,children:l,text:a,tabPanelId:o,...s}=e,c=bt(`${n}tabs__panel`,i),u=pe(gt);return ft("div",{...s,ref:t,tabIndex:-1,className:c,id:o,hidden:u.activeTab!==o,onKeyDown:e=>{u.activeTab&&((e,t,n)=>{const i=Mt(t,n);if("Tab"===e.key&&e.shiftKey&&document.activeElement===i){e.preventDefault();const i=Vt(t,n);i&&i.focus()}})(e,u.activeTab,u.root||void 0)},role:"tabpanel",children:[r&&ft("h2",{className:`${n}tabs__panel-title`,children:r}),a&&ft("p",{children:a}),l&&l]})}));Rt.displayName="TabPanel";const zt=[{tag:"path",att:{d:"M11.0036 14.2499h2v-6h-2v6zm1 1.5c-.6904 0-1.25.5596-1.25 1.25 0 .6903.5596 1.25 1.25 1.25.6903 0 1.25-.5597 1.25-1.25 0-.6904-.5597-1.25-1.25-1.25z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m1.1152 20.5341 10-19h1.7699l10 19-.8849 1.4658h-20l-.885-1.4658zm2.5413-.5342h16.6873l-8.3436-15.853L3.6565 20z"}}],Dt=zt;function Ut(e){return e.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()))}function Ht(e){if(e)return e.map((e=>{return v(e.tag,(t=e.att,Object.entries(t).reduce(((e,[t,n])=>("style"===t&&"string"==typeof n?e.style=n.split(";").reduce(((e,t)=>{const[n,i]=t.split(":");return n&&i&&(e[Ut(n.trim())]=i.trim()),e}),{}):e[Ut(t)]=n,e)),{})),Ht(e.nds));var t}))}var Wt=()=>Ht(Dt);const Ft=["primary","emphasised","secondary","tertiary"],qt=Me(((e,t)=>{const{href:n="",newWindow:i=!1,loadingSrText:r="Loading…",ssrIcon:l,iconOnly:a=!1,prefix:o="",htmlType:s="button",disabled:c=!1,className:u="",onClick:d,text:h="",type:_="secondary",expanding:f=!1,loading:p=!1,iconPosition:m="leading",fluid:g=!1,inverseTheme:b=!1,children:v,expandedOnTouchDevice:y=!1,size:x="medium",staticColour:S=!1,...k}=e,w=e=>{if(c||p||" "!==e.key)return;e.target.click()};let E=_||"secondary";a&&l&&(E=`icon-${E}`),b&&"danger"!==_&&"plain"!==_&&"image-overlay"!==_&&Ft.indexOf(_)>-1&&(E=`${E}-inverse`);const $=bt(`${o}btn__inner`),N="danger"===_?Wt:l,I=N?ft(xt,{className:`${o}btn__icon`,prefix:o,paths:N}):null,L=bt(`${o}btn`,p&&`${o}btn--loading`,"medium"!==x&&`${o}btn--${x}`,!a&&N&&m&&`${o}${m}-icon`,_&&`${o}btn--${E}`,g&&!a&&`${o}btn--fluid`,f&&`${o}btn--expanding`,f&&y&&`${o}btn--touch-device-expanded`,S&&`${o}btn--static-colour`,u),C=e=>{p||c?e.stopPropagation():d&&"function"==typeof d&&d(e)},T=ft("span",{className:$,children:[I,h&&ft("span",{className:`${o}btn__label`,children:h})||null,!p&&v||null,p&&ft("span",{className:`${o}btn__loader`,children:r})||null]});return n?ft("a",{ref:t,className:L,"aria-disabled":!!p||void 0,onClick:C,onKeyUp:w,href:c?void 0:n,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,...k,children:T}):ft("button",{ref:t,className:L,disabled:c,type:s,onClick:C,...k,children:T})}));qt.displayName="Button";var Kt=qt;const jt=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m15.5996 12.0007-5.785 5.7857-1.4143-1.4141 4.3711-4.3716L8.4003 7.629l1.4143-1.4142 5.785 5.7859z"}}],Gt=jt;var Zt=()=>Ht(Gt);const Xt=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m8.4004 12.0007 5.785 5.7857 1.4143-1.4141-4.3711-4.3716 4.3711-4.3717-1.4143-1.4142-5.785 5.7859z"}}],Jt=Xt;var Qt=()=>Ht(Jt),Yt=n(9853);const en=(e,t)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>{e(...i)}),t)}};function tn(e,t,n,i,r=200,l=()=>{}){const a=Date.now(),o=e[t],s=n-o;let c=!1;const u=()=>{const d=Date.now()-a;if(!c){if(d/r>1)return e[t]=n,h(),void l();e[t]=i(d,o,s,r),requestAnimationFrame(u)}},d=()=>{c=!0,h(),l()},h=()=>{e.removeEventListener("wheel",d),e.removeEventListener("touchstart",d)};return e.addEventListener("wheel",d,{passive:!0}),e.addEventListener("touchstart",d,{passive:!0}),u(),d}const nn=(e,t)=>0===e.length?null:Math[t].apply(Math,e),rn=e=>{const{children:t,prefix:n="",id:i="default",className:r,hasNoControls:l=!1,controlBtnType:a="primary",ariaLabelRightBtn:o="See next items",ariaLabelLeftBtn:s="See previous items",role:c,onBtnRightClick:u,onBtnLeftClick:d,rtl:h=!1,slideIndex:_=null,...f}=e,p=de(null),m=de(null),g=ht.useRef({visibleIndexes:[],visibleSlides:[],partiallyVisibleIndexes:[],partiallyVisibleSlides:[]}),[b,v]=oe(!0),[y,x]=oe(!0),[S,k]=oe(!1),[w,E]=oe("positive"),[$,N]=oe(!1),[I,L]=oe(!1),[C,T]=oe(!1),[A,P]=oe({visibleIndexes:[],visibleSlides:[],partiallyVisibleIndexes:[],partiallyVisibleSlides:[]}),[O,V]=oe([]),M=`${n}overflow-carousel__${i}-prev-btn`,B=`${n}overflow-carousel__${i}-next-btn`,R=de([]),z=de([]),D=fe((()=>{if(0===A.visibleIndexes.length&&A.partiallyVisibleIndexes){const e=Number(nn(A.partiallyVisibleIndexes,"max"))+1;return e>O.length-1?O[e-1]:O[e]}return null===O[Number(nn(A.visibleIndexes,"max"))]?O[Number(nn(A.partiallyVisibleIndexes,"max"))]:O[Number(nn(A.visibleIndexes,"max"))+1]}),[A.partiallyVisibleIndexes,A.visibleIndexes,O]),U=fe((()=>{if(0===A.visibleIndexes.length&&A.partiallyVisibleIndexes){const e=Number(nn(A.partiallyVisibleIndexes,"min"))-1;return e<0?O[0]:O[e]}return null===O[Number(nn(A.visibleIndexes,"min"))]?O[Number(nn(A.partiallyVisibleIndexes,"min"))]:O[Number(nn(A.visibleIndexes,"min"))-1]}),[A.partiallyVisibleIndexes,A.visibleIndexes,O]),H=fe((()=>(h?"reversed"===w&&p.current?.scrollLeft===q():0===p.current?.scrollLeft)||A.visibleSlides.indexOf(O[0])>-1),[h,w,A.visibleSlides,O]),W=O[O.length-1],F=fe((()=>A.visibleSlides.indexOf(W)>-1||(h?"reversed"===w&&0===p.current?.scrollLeft:p.current?.scrollLeft===q())),[W,h,w,A.visibleSlides]),q=()=>p.current?p.current.scrollWidth-p.current.offsetWidth:1/0,K=fe((e=>((e,t,n,i)=>{if(!e)return n.offsetLeft+n.getBoundingClientRect().width-i.offsetWidth;switch(t){case"negative":return n.offsetLeft;case"reversed":return i.scrollWidth-i.offsetWidth+n.offsetLeft;default:return-n.offsetLeft}})(h,w,e,p.current)),[h,w]),j=fe((e=>((e,t,n,i)=>{if(!e)return n.offsetLeft;switch(t){case"negative":return n.offsetLeft-i.offsetWidth+n.getBoundingClientRect().width;case"reversed":return i.scrollWidth-2*i.offsetWidth+n.offsetLeft+n.getBoundingClientRect().width;default:return i.offsetWidth-n.offsetLeft-n.getBoundingClientRect().width}})(h,w,e,p.current)),[h,w]),G=(e,t,n,i)=>n*Yt(.4,0,.4,1)(e/i)+t,Z=fe(((e,t)=>{e.forEach((e=>{const n=t&&t.thresholds;n&&e.intersectionRatio>=t.thresholds[1]?-1===R.current.indexOf(e.target)&&R.current.push(e.target):R.current=R.current.filter((t=>t!==e.target)),n&&e.intersectionRatio>=t.thresholds[0]?-1===z.current.indexOf(e.target)&&z.current.push(e.target):z.current=z.current.filter((t=>t!==e.target))})),P({visibleIndexes:R.current.map((e=>O.indexOf(e))),visibleSlides:R.current,partiallyVisibleIndexes:z.current.map((e=>O.indexOf(e))),partiallyVisibleSlides:z.current})}),[O]),X=fe((e=>{null!==p.current&&(k(!0),tn(p.current,"scrollLeft",e,G,200,(()=>{k(!1)})))}),[]),J=fe((e=>{if(S)return;const t=D(),n=U(),i="right"===e&&t?j(t):"right"!==e&&n?K(n):null;h&&i?X(-i):i&&X(i),"right"===e&&u&&u(),"left"===e&&d&&d()}),[j,K,S,D,d,u,U,X]),Q=fe((e=>{if(I)return;const t=e.target;t.parentNode&&t.parentNode.classList.contains(`${n}overflow-carousel__button`)&&(L(!0),N(!1))}),[I,n]),Y=fe((e=>{if(I)return;L(!0);const t=e.target;t.parentNode&&t.parentNode.classList.contains(`${n}overflow-carousel__button`)||N(!0)}),[I,n]),ee=fe(en((()=>{void 0!==A.partiallyVisibleSlides&&0!==A.partiallyVisibleSlides.length&&(v(H),x(F))}),250),[]);ce((()=>{const e=p.current;return e.addEventListener("touchstart",Q,{once:!0,passive:!0}),e.addEventListener("touchmove",Y,{once:!0,passive:!0}),()=>{e.removeEventListener("touchstart",Q),e.removeEventListener("touchmove",Y)}}),[I,Y,Q]),ce((()=>{void 0!==A.partiallyVisibleSlides&&0!==A.partiallyVisibleSlides.length&&(v(H),x(F))}),[A,h,H,F]);const te=fe((()=>{P((e=>(g.current=e,e)))}),[]),ne=fe((e=>{let t=e.target;for(;t.offsetParent&&t.offsetParent!==m.current;)t=t.offsetParent;if(g.current.visibleSlides&&-1!==g.current.visibleSlides.indexOf(t))return;if(!["Tab","ArrowRight","ArrowLeft"].includes(e.key))return;const n=!e.shiftKey&&"Tab"===e.key||"ArrowRight"===e.key&&!h||"ArrowLeft"===e.key&&h?j(t):K(t);X(n*(h?-1:1))}),[j,K,h,X]);ce((()=>{const e=[].slice.call(p.current.children);return e.forEach((e=>!!e&&e.addEventListener("keyup",ne))),e.forEach((e=>!!e&&e.addEventListener("keydown",te))),V(e),window.addEventListener("resize",ee),()=>{window.removeEventListener("resize",ee),e.forEach((e=>!!e&&e.removeEventListener("keyup",ne))),e.forEach((e=>!!e&&e.removeEventListener("keydown",te)))}}),[ht.Children.toArray(t).length,ne,ee,te]),ce((()=>{if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window){const e=new IntersectionObserver(Z,{root:p.current,threshold:[.99,.001],rootMargin:"1px"});return O.forEach((t=>!!t&&e.observe(t))),T(!1),()=>{e.disconnect()}}T(!0)}),[Z,O]),ce((()=>{E((()=>{document.body.insertAdjacentHTML("beforeend","");const e=document.body.lastElementChild,t=e.scrollLeft>0;e.scrollLeft=-1;const n=e.scrollLeft<0,i=n||t,r=n;return document.body.removeChild(e),i&&r?"negative":i&&!r?"reversed":"positive"})())}),[h]),ce((()=>{if(Number.isNaN(Number(_))||0===O.length||null===_)return;const e=Math.max(Math.min(_,O.length-1),0),t=j(O[e]);X(t)}),[O,_,h,j,X]);const ie=`${n}overflow-carousel`;return ft("div",{className:bt(ie,C&&`${ie}--intersection-observer-disabled`,r),ref:m,...f,children:[!l&&!$&&ft(Kt,{id:M,"aria-controls":`${ie}__${i}-prev-btn`,prefix:n,size:"xsmall",iconOnly:!0,inverseTheme:!0,staticColour:!0,ssrIcon:Qt,type:a,"aria-label":s,className:bt(`${ie}__button`,b&&`${ie}__button--hidden`),onClick:()=>J("left")}),ft("div",{className:`${ie}__content`,ref:p,role:c,children:t}),!l&&!$&&ft(Kt,{id:B,"aria-controls":`${ie}__${i}-next-btn`,prefix:n,size:"xsmall",iconOnly:!0,inverseTheme:!0,staticColour:!0,ssrIcon:Zt,type:a,"aria-label":o,className:bt(`${ie}__button`,`${ie}__button--right`,y&&`${ie}__button--hidden`),onClick:()=>J("right")})]})};var ln=e=>{const{prefix:t="",overflowCarouselProps:n,slideIndex:i,onTabChanged:r,rtl:l,defaultActiveTab:a,tabs:o=[],tabPanels:s,className:c,ariaLabel:u,labelledById:d,activeTab:h,subtle:_=!1,...f}=e,p=bt(`${t}tabs`,_&&`${t}tabs--subtle`,c),m=de(null),[g,b]=oe(a||h||(e=>{const t=e.find((e=>e.props&&!e.props.disabled));if(t&&t.props)return t.props.tabPanelId})(o)),v=e=>{r&&r(e),b(e);const t=Vt(e);if(!t)return;const n=t.parentElement;if(!n)return;const{offsetLeft:i,clientWidth:a}=t,{scrollLeft:o,offsetWidth:s}=n;(io+s)&&n.scrollTo({left:t.offsetLeft-(l?s-a:0),behavior:"smooth"})};return ce((()=>{h&&h!==g&&v(h)}),[h,o,r]),ft(mt,{value:{activeTab:h||g,setActiveTab:v,tabs:o,root:m},children:ft("div",{...f,className:p,ref:m,children:[ft("div",{role:"tablist",className:`${t}tabs__list`,"aria-label":u,"aria-labelledby":d,children:ft(rn,{slideIndex:i,rtl:l,prefix:t,...n,children:o})}),s]})})},an=n(8448),on=n.n(an);let sn="";const cn=()=>(""===sn&&(sn=document.getElementById("nav-script-main")?document.getElementById("nav-script-main").getAttribute("data-site-folder"):""),sn);let un="";const dn=/.*\/(cat|p)\/.*-([0-9a-zA-Z_]+)\/?$/,hn=/.*\/([-0-9a-zA-Z_]+-pub[0-9a-zA-Z_]+)\/?$/,_n=/.*\/([a-z0-9]{2})\/([a-z0-9]{2})\/([0-9a-zA-Z_]+-(products+))\/?$/,fn=/.*\/([a-z0-9]{2})\/([a-z0-9]{2})\/(.*)\/([-0-9a-zA-Z_]?)\/?$/,pn=e=>{const t=e?e.split("#").shift().split("?").shift():"";if(dn.test(t))return t.replace(dn,"$2");if(hn.test(t))return t.replace(hn,"$1");const n=t.match(_n);return n?.[4]?n[4]:n?.[3]?n[3]:fn.test(t)?t.replace(fn,"$3"):t},mn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/\/[a-z0-9]{2}\/[a-z0-9]{2}\/cat\/[a-z-]*-products\//.test(e)},gn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/.*\/(p)\/.*-([0-9a-zA-Z_]+)\/?$/.test(e)},bn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/.*\/(cat)\/.*-([0-9a-zA-Z_]+)\/?$/.test(e)},vn=e=>{try{return new URL(e).pathname}catch{return""}},yn=()=>{const e=on().get("nav_state")||"{}";try{return JSON.parse(decodeURIComponent(e))}catch{return{}}};const xn=(e,t)=>{try{sessionStorage&&sessionStorage.setItem(e,t)}catch(e){}},Sn=e=>{try{if(sessionStorage)return sessionStorage.getItem(e)}catch(e){}},kn=e=>{try{sessionStorage&&sessionStorage.removeItem(e)}catch(e){}},wn=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m19.5831 8.1899-5.5499-3.9941-1.1683 1.6233 3.0326 2.1825H8.0982l3.0325-2.1825-1.1683-1.6233L4.4126 8.19l-.416.2994.0001.5125.0023 10 .0003.9998H19.999V8.4892l-.4159-.2993zM5.9969 10.0016H17.999v8H5.9988l-.0019-8zM10 14.0006h3.9999v-2h-4v2z"}}],En=wn;var $n=()=>Ht(En);const Nn=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m12.0002 3.7876 8 5.4819-.0045 10.7303h-6.9955V15.07h-2v4.9298H4V9.2693l8.0002-5.4817zM6 10.3234v7.6764h3.0002V13.07h6v4.9298h2.9963l.0033-7.6766-5.9996-4.1111L6 10.3234z"}}],In=Nn;var Ln=()=>Ht(In);const Cn=()=>"undefined"==typeof window,Tn=()=>!Cn()&&null!==document.querySelector(".bc-breadcrumb"),An=()=>{if(Cn())return["products"];const e=document.querySelectorAll(".bc-breadcrumb__list > li > a");if(0===e.length)return[pn(window.location.pathname)];let t=[];try{const n=Array.from(e).findLast((e=>e.hasAttribute("data-tracking-label"))).getAttribute("data-tracking-label");n&&(t=n.split("|").map((e=>e.trim())))}catch(e){}if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/.*\/([a-z0-9]{2})\/([a-z0-9]{2})\/(rooms)\/([-0-9a-zA-Z_]+)\/?/.test(e)}()){const e=pn(window.location.pathname);t.push(...e.split("/"))}return bn()&&t.push(pn(window.location.pathname)),"box"===t[0]&&(t[0]="products"),t},Pn=()=>On("products")(),On=e=>{let t=[];return()=>{const n=(e=>{let t=Sn(e);if(t){const e=JSON.parse(t);if(e?.data&&e?.expires>Date.now())return e.data}})(`nav-catalog-${e}-slim-${cn()}`);if(n)return Promise.resolve(n);const i=new Promise(((e,n)=>{t.push({resolve:e,reject:n})}));if(1===t.length){const n=Math.random().toString(36).substring(2,12);(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new Promise(((r,l)=>{let a=new XMLHttpRequest;a.open(t,e),n.length>0&&n.forEach((e=>{a.setRequestHeader(e.name,e.value)})),a.onload=()=>{a.status>=200&&a.status<300?r(a.response):l(`${a.status} ${a.statusText}`.trim())},a.onerror=()=>l(`${a.status>0?a.status:""} ${a.statusText}`.trim()),a.send(i)}))})(-1===window.location.pathname.indexOf("/api/preview/")?`https://${document.getElementById("nav-script-main").getAttribute("data-domain")}/${cn()}/meta-data/navigation/catalog-${e}-slim.json?cb=${n}`:document.getElementById("nav-styles").href.replace(/header-footer\/styles\/.*/,`meta-data/navigation/catalog-${e}-slim.json?cb=${n}`)).then((n=>{const i=JSON.parse(n);((e,t,n)=>{const i=new Date;i.setMinutes(i.getMinutes()+n),xn(e,JSON.stringify({expires:i.getTime(),data:t}))})(`nav-catalog-${e}-slim-${cn()}`,i,15),t.forEach((e=>e.resolve(i)))})).catch((e=>{t.forEach((t=>t.reject(e)))})).finally((()=>{t=[]}))}return i}},Vn=()=>Cn()?"":`https://${document.getElementById("nav-script-main").getAttribute("data-domain")}`,Mn=(e,t,n,i,r)=>{const l=e?[...e]:[];n&&l.pop();const a=l.indexOf(t);return-1===a&&l.push(Kn({id:t,url:r})),i>=0&&e.length<3&&l.splice(a,0,i),l.join(" | ")},Bn=e=>e.map((e=>e?pn(e):"")).join(" | "),Rn=(e,t)=>{for(const n of e){const e=Bn([n.link]).split("/").pop();if((n.items?.length>0||mn(n.link))&&e===t)return!0}return!1},zn=e=>`tab-${Bn([e.link]).split("/").pop()}`,Dn={products:"products",rooms:"rooms","now-at-ikea":"new",deals:"offers",ideas:"ideas",services:"customer-service/services"},Un=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];const o=r?"tab-b2b-products":"tab-products",s=r&&"products"===i[0]?"b2b-products":i[0];if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/.*\/([a-z0-9]{2})\/([a-z0-9]{2})\/?$/.test(e)}(n))return o;if(bn(n)&&i?.length&&Rn(e,s))return`tab-${s}`;const c=e=>e?.find((e=>{let{link:t}=e;return i=t,r=n,vn(i)?.toLowerCase().replace(/\/$/,"")===vn(r)?.toLowerCase().replace(/\/$/,"");var i,r})),u=e.filter((e=>!mn(e.link)));for(let e=0;e0)for(let e=0;e0){let e="";if(Object.keys(l).forEach((t=>{const i={sectionThree:"tab-now-at-ikea",sectionFour:"tab-deals",sectionFive:"tab-ideas",sectionSix:"tab-services"},r=(a=l[t].sectionId,`https://${document.getElementById("nav-script-main")?.getAttribute("data-domain")}/${cn()}/${Dn[a]}/`);var a;l[t]&&(l[t].seeAllLink=r),l[t].seeAllLink&&l[t].seeAllLink===n&&(e=i[t]),l[t]?.hotspotLinks?.length>0&&l[t].hotspotLinks.forEach((r=>{r.link===n&&(e=i[t])})),l[t]?.items?.length>0&&l[t].items.forEach((r=>{r.link===n?e=i[t]:r?.subItems&&r.subItems.forEach((r=>{r.link===n&&(e=i[t])}))}))})),e)return e}return t?.length>0&&c(t)?"tab-more":i?.length&&Rn(e,s)?`tab-${s}`:o},Hn=e=>{switch(e){case"products":return $n;case"rooms":return Ln;default:return}},Wn=(e,t)=>-1===e?.indexOf("?")?`${e}?imwidth=${t}`:`${e=e.replace(/(f=[a-zA-Z]+&?)|(imwidth=[0-9]+&?)/g,"")}${e.endsWith("?")?"":"&"}imwidth=${t}`,Fn=(e,t)=>{if("th/th"===e)return!1;return t.split(" ").reduce((function(e,t){return t.length>e.length?t:e}),"").length>17},qn=/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{8}/,Kn=e=>e.id.match(qn)?pn(e.url):e.id;const jn=e=>{if(window.sendEvent)if("beacon"===e.transport_type)try{window.sendEvent(e)}catch(e){}else setTimeout((()=>{try{window.sendEvent(e)}catch(e){}}),0);else window.analyticsQueue=window.analyticsQueue||[],window.analyticsQueue.push(e)},Gn=function(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5?arguments[5]:void 0;const a={event_category:i,event_action:e(),event_label:t,transport_type:n||"",non_interaction:r};return l&&(a.custom=l),a},Zn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;t=t.currentTarget||t;const i=Sn("navOpenDropdownTime"),r=i?Math.round(performance.now()-i):"";xn("navLinkClick",((e,t,n,i,r)=>JSON.stringify({navType:e,pageUrl:t,link:n,timing:"number"==typeof i?i:"",siblings:r||""}))(e,location.href,(e=>{const t=e?.closest("ul")?e?.closest("ul").getAttribute("data-tracking-label"):"",n=e?.closest("a")?e?.closest("a").getAttribute("data-tracking-label"):"",i=n||e?.text?.trim();return t?`${t} | ${i}`:i})(t),r,n)),kn("navOpenDropdownTime")},Xn=e=>{let{items:t}=e;const n=e=>{const t=e.target.closest("a");Zn("Header Links",t)};return ht.createElement("nav",{className:"hnf-simple-navigation"},ht.createElement("ul",null,t.map((e=>ht.createElement("li",null,ht.createElement("a",{class:"hnf-link",href:e.link,"data-tracking-label":Bn([e.link]),onClick:n},e.title))))))},Jn=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m16.415 12.0011-8.0012 8.0007-1.4141-1.4143 6.587-6.5866-6.586-6.5868L8.415 4l8 8.0011z"}}],Qn=Jn;var Yn=()=>Ht(Qn);const ei=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7 12.0009 8.0012-8.0007 1.4142 1.4142-6.587 6.5866 6.5859 6.5868L15 20.002l-8-8.0011z"}}],ti=ei;var ni=()=>Ht(ti);const ii=ht.forwardRef(((e,t)=>{const{prefix:n,barPosition:i,barWidth:r,onClick:l,onMouseDown:a,draggable:o,...s}=e,c=(i-r*i/100)*(100/r),u=bt(`${n}scroll-indicator__bar`,o&&`${n}scroll-indicator__bar-dragging`);return ft("div",{className:bt(`${n}scroll-indicator`,o&&`${n}scroll-indicator--dragging`),onClick:e=>l&&l(e),"aria-hidden":!0,...s,children:r>0&&ft("span",{className:`${n}scroll-indicator__bar-wrapper`,ref:t,children:ft("span",{className:u,style:{width:`${r}%`,transform:`translateX(${c}%)`},onMouseDown:e=>a&&a(e)})})})}));ii.displayName="ScrollIndicator";var ri=ii;const li=e=>{const{prefix:t="",children:n,targetId:i,label:r,className:l,targetReference:a,linkReference:o,onKeyDown:s,...c}=e,u=`${t}skip-content`;return ft(S,{children:[ft("a",{href:`#${i}`,className:bt(`${u}__button`,l),ref:o,onKeyDown:e=>{s&&s(e)," "===e.key&&(e.preventDefault(),e.currentTarget.click())},...c,children:r}),n,n&&ft("span",{id:i,className:bt(`${u}__target`),tabIndex:-1,ref:a})]})};li.displayName="SkipContent";var ai=li;var oi=class extends k{constructor(e){super(e),this.slideRefs=[],this.scroller=null,this.scrollIndicator=null,this.slideToIndex=e=>this.slideRefs.indexOf(e),this.state={isScrolling:!1,currentIndex:e.slideIndex||0,visibleSlides:[],partiallyVisibleSlides:[],targetScroll:0,currentScroll:0,initialized:!1,draggable:!1,prevPosition:0,prevSliderPosition:0,slideShowDragging:!1,intersectionObserverDisabled:!1},e.id&&(this.skipButtonId=`${e.prefix}-carousel__${e.id}-skip-btn`,this.previousBtnId=`${e.prefix}-carousel__${e.id}-prev-btn`,this.nextBtnId=`${e.prefix}-carousel__${e.id}-next-btn`),this._visibleSlides=[],this.visibleIndexes=[],this.partiallyVisibleIndexes=[],this._partiallyVisibleSlides=[],this._visibleSlidesLength=null,this.onKeyUp=this.onKeyUp.bind(this),this.observeSlides=this.observeSlides.bind(this),this.setScrollState=this.setScrollState.bind(this),this.onScrollIndicatorClick=this.onScrollIndicatorClick.bind(this),this.slideRefs=[],this.onButtonClick=this.onButtonClick.bind(this),this.handleScrollBarMouseMove=this.handleScrollBarMouseMove.bind(this),this.handleScrollBarMouseDown=this.handleScrollBarMouseDown.bind(this),this.handleScrollBarMouseUp=this.handleScrollBarMouseUp.bind(this),this.handleSwipe=this.handleSwipe.bind(this),x&&(this.component={current:null},this.slider={current:null})}clamp(e,t,n){return e<=t?t:e>=n?n:e}setScrollState(){this.setState({currentScroll:this.scroller.scrollLeft})}observeSlides(e,t){const n=t&&t.thresholds;e.forEach((e=>{n&&e.intersectionRatio>=t.thresholds[1]?-1===this._visibleSlides.indexOf(e.target)&&this._visibleSlides.push(e.target):this._visibleSlides=this._visibleSlides.filter((t=>t!==e.target)),n&&e.intersectionRatio>=t.thresholds[0]?-1===this._partiallyVisibleSlides.indexOf(e.target)&&this._partiallyVisibleSlides.push(e.target):this._partiallyVisibleSlides=this._partiallyVisibleSlides.filter((t=>t!==e.target)),this.partiallyVisibleIndexes=this._partiallyVisibleSlides.map(this.slideToIndex)})),this.setState({partiallyVisibleSlides:[...this._partiallyVisibleSlides]}),this.debouncedSetVisibilityState&&this.debouncedSetVisibilityState(this._visibleSlides)}_getVisibleMinMax(e,t){return void 0===e||0===e.length?null:Math[t].apply(Math,e)}get maxVisible(){return this._getVisibleMinMax(this.visibleIndexes,"max")}get maxPartiallyVisible(){return this._getVisibleMinMax(this.partiallyVisibleIndexes,"max")}get minVisible(){return this._getVisibleMinMax(this.visibleIndexes,"min")}get minPartiallyVisible(){return this._getVisibleMinMax(this.partiallyVisibleIndexes,"min")}get firstSlide(){return this.slideRefs.length>0?this.slideRefs[0]:null}get lastSlide(){return this.slideRefs.length>0?this.slideRefs[this.lastSlideIndex]:null}get isFirstSlideVisible(){return en((()=>{if(0===this.state.currentScroll)return!0}),100),this._visibleSlides.indexOf(this.firstSlide)>-1}get isLastSlideVisible(){return en((()=>{if(this.state.currentScroll===this.maxScrollWidth)return!0}),100),this._visibleSlides.indexOf(this.lastSlide)>-1}get allSlidesVisible(){return this.isFirstSlideVisible&&this.isLastSlideVisible}get lastSlideIndex(){return this.slideRefs.length-1}get nextSlide(){return null===this.maxVisible?this.maxPartiallyVisible:this.maxVisible+1}get prevSlide(){return null===this.minVisible?this.minPartiallyVisible:this.minVisible-1}get visibleSlidesLength(){return this._visibleSlidesLength?this._visibleSlidesLength:this.clamp(this.state.visibleSlides.length,1,1/0)}get scrollWidth(){return this.scroller?this.scroller.scrollWidth:1/0}get maxScrollWidth(){return this.scroller?this.scrollWidth-this.scroller.offsetWidth:1/0}getPreviousScroll(e){return!this.props.isSlideShow&&this.props.rtl?e.offsetLeft:e.offsetLeft+e.getBoundingClientRect().width-this.scroller.offsetWidth}getNextScroll(e){return!this.props.isSlideShow&&this.props.rtl?e.offsetLeft-this.scroller.offsetWidth+e.getBoundingClientRect().width:e.offsetLeft}onButtonClick(e){if(this.state.isScrolling)return;const t=this.clamp("right"===e?this.nextSlide:this.prevSlide,0,this.lastSlideIndex);this.goToIndex(t,e),"right"===e&&this.props.onBtnRightClick&&this.props.onBtnRightClick(),"left"===e&&this.props.onBtnLeftClick&&this.props.onBtnLeftClick()}goToIndex(e,t="left"){e=this.clamp(e,0,this.lastSlideIndex);const n=this.slideRefs[e];if(!n)return void this.scrollTo(0);let i="right"===t?this.getNextScroll(n):this.getPreviousScroll(n);0===e&&(i=0),this.scrollTo(i)}easing(e,t,n,i){return n*Yt(.4,0,.4,1)(e/i)+t}scrollTo(e){if(this.setState({targetScroll:e}),this.stopObservingSlides(),!this.state.initialized||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return this.scroller.scrollLeft=e,this.startObservingSlides(),void(this.state.initialized||this.setState({initialized:!0}));this.setState({isScrolling:!0}),null!==this.scroller&&tn(this.scroller,"scrollLeft",e,this.easing,200,(()=>{this.setState({isScrolling:!1}),this.startObservingSlides()}))}startObservingSlides(){this.setState({slideShowDragging:!1}),"IntersectionObserver"in window&&"IntersectionObserverEntry"in window?(this.visibleSlideObserver=new IntersectionObserver(this.observeSlides,{root:this.scroller,threshold:[.99,.001],rootMargin:"1px"}),this.slideRefs.forEach((e=>!!e&&this.visibleSlideObserver?.observe(e))),this.setState({intersectionObserverDisabled:!1})):this.setState({intersectionObserverDisabled:!0})}stopObservingSlides(){this.visibleSlideObserver&&this.visibleSlideObserver.disconnect()}onKeyUp(e){let t;if("ArrowLeft"===e.key||"ArrowRight"===e.key){switch(e.preventDefault(),e.key){case"ArrowLeft":t=this.props.rtl?"right":"left";break;case"ArrowRight":t=this.props.rtl?"left":"right";break;default:return}this.onButtonClick(t)}}onScrollIndicatorClick(e){if(!this.scrollIndicator)return;const{children:t=[],isSlideShow:n}=this.props,i=t.length;if(e.target===this.scrollIndicator.childNodes[0])return;const r=this.scrollIndicator.getBoundingClientRect().left,l=this.scrollIndicator.getBoundingClientRect().width,a=100*(e.clientX-r)/l*this.maxScrollWidth/100;if(n){const e=this.maxScrollWidth/(i-1),t=this.maxScrollWidth/i;let n=Math.round(a/e)*e;at*(i-1)&&(n=this.maxScrollWidth),this.scrollTo(this.props.rtl?n-this.maxScrollWidth:n)}else this.scrollTo(this.props.rtl?a-this.maxScrollWidth:a)}adjustSliderPosition(){this.goToIndex(this.state.currentIndex)}handleSwipe(){this.state.slideShowDragging&&requestAnimationFrame((()=>{this.setState({slideShowDragging:!1})}))}handleScrollBarMouseDown(e){this.setState({draggable:!0,prevPosition:e.pageX,prevSliderPosition:this.scroller.scrollLeft,slideShowDragging:!0})}handleScrollBarMouseUp(){this.state.draggable&&this.setState({draggable:!1})}handleScrollBarMouseMove(e){if(!this.state.draggable)return;const t=this.scrollWidth/this.scrollIndicator.scrollWidth;this.scroller.scrollLeft=this.state.prevSliderPosition+(e.pageX-this.state.prevPosition)*t}componentDidMount(){this.resizeEventCallback=en((()=>{this._visibleSlidesLength=this._visibleSlides?this._visibleSlides.length:null,this.props.onResize&&this.props.onResize(),this.stopObservingSlides(),this.startObservingSlides(),this.slideRefs[0]&&this.slideRefs[0].getBoundingClientRect().width*this.slideRefs.length<=this.scroller.offsetWidth&&this.adjustSliderPosition()}),250),window.addEventListener("mousemove",this.handleScrollBarMouseMove),window.addEventListener("mouseup",this.handleScrollBarMouseUp),window.addEventListener("resize",this.resizeEventCallback),this.scroller?.addEventListener("wheel",this.handleSwipe,{passive:!0}),this.scroller?.addEventListener("scroll",this.setScrollState),this.debouncedSetVisibilityState=en((e=>{this._visibleSlidesLength||(this._visibleSlidesLength=e.length),this.setState({visibleSlides:e});const t=e.map(this.slideToIndex);this.visibleIndexes.join(",")!==t.join(",")&&this.props.onVisibleSlideChange&&this.props.onVisibleSlideChange([...t]),this.visibleIndexes=t}),100),this.startObservingSlides(),this.adjustSliderPosition()}componentWillUnmount(){window.removeEventListener("mousemove",this.handleScrollBarMouseMove),window.removeEventListener("mouseup",this.handleScrollBarMouseUp),this.resizeEventCallback&&window.removeEventListener("resize",this.resizeEventCallback),this.scroller?.removeEventListener("wheel",this.handleSwipe),this.scroller?.removeEventListener("scroll",this.setScrollState),this.stopObservingSlides()}componentDidUpdate(e){this.props.slideIndex!==e.slideIndex&&this.goToIndex(this.props.slideIndex),e.children.length!==this.props.children.length&&(this.stopObservingSlides(),this.startObservingSlides(),this.slideRefs.length=0,this.setScrollState())}render(){const{id:e,slideIndex:t=0,hasNoControls:n=!1,children:i=[],prefix:r="",rtl:l,ariaLabelLeftBtn:a="See previous items",ariaLabelRightBtn:o="See next items",controlBtnType:s="primary",onBtnRightClick:c,onBtnLeftClick:u,onResize:d,itemClass:h,contentClass:_,bodyWrapperClass:f,isSlideShow:p,hasNoScrollbar:m,hasSlideCounter:g,className:b,skipButtonText:v="Skip listing",counterText:y="of",onVisibleSlideChange:x,...S}=this.props,{currentScroll:k,isScrolling:w,slideShowDragging:E,draggable:$}=this.state,N=this.isLastSlideVisible,I=this.isFirstSlideVisible,L=this.allSlidesVisible,C=k/this.maxScrollWidth*100,T=null===this.scroller?0:this.scroller.offsetWidth/this.scroller.scrollWidth*100,A=ht.Children.toArray(i).filter((e=>e)),P=(this.visibleIndexes[0]??this.partiallyVisibleIndexes[0])+1,O=A.map(((t,n)=>ft("div",{ref:e=>this.slideRefs[n]=e,className:bt(`${r}carousel-slide`,h),children:t},`${e}-${n}`))),V=bt(`${r}carousel`,b,p&&`${r}carousel__slide-show`,this.state.intersectionObserverDisabled&&`${r}carousel--intersection-observer-disabled`,$&&`${r}carousel--dragging`),M=bt(`${r}carousel__content`,_,!w&&`${r}carousel__content--snap-slide`,E&&`${r}carousel__content--drag-slide`,L&&`${r}carousel__content--single-slide`),B=bt(`${r}carousel__body`,p&&`${r}carousel__body--slide-show`);return ft("div",{className:V,tabIndex:-1,ref:this.component,...S,onKeyUp:this.onKeyUp,children:ft(ai,{prefix:r,label:v,targetId:this.skipButtonId,children:[ft("div",{className:`${r}carousel__wrapper`,children:[!n&&ft(Kt,{id:this.previousBtnId,"aria-controls":`${r}carousel__${e}`,prefix:r,size:"small",iconOnly:!0,ssrIcon:ni,type:s,"aria-label":a,className:bt(`${r}carousel__button`,I&&`${r}carousel__button--hidden`),onClick:()=>this.onButtonClick("left")}),ft("div",{className:M,ref:e=>this.scroller=e,children:ft("div",{className:bt(`${r}carousel__body-wrapper`,f),children:ft("div",{id:`${r}carousel__${e}`,className:B,ref:this.slider,children:O})})}),!n&&ft(Kt,{id:this.nextBtnId,"aria-controls":`${r}carousel__${e}`,prefix:r,size:"small",iconOnly:!0,ssrIcon:Yn,type:s,"aria-label":o,className:bt(`${r}carousel__button`,`${r}carousel__button--right`,N&&`${r}carousel__button--hidden`),onClick:()=>this.onButtonClick("right")})]}),!L&&!m&&ft("div",{className:`${r}carousel__counter--wrapper`,children:[ft(ri,{prefix:r,barPosition:C,barWidth:T,ref:e=>this.scrollIndicator=e,onClick:this.onScrollIndicatorClick,onMouseDown:this.handleScrollBarMouseDown,draggable:this.state.draggable}),g&&!!P&&ft("span",{className:`${r}carousel__counter`,children:`${P} ${y} ${A.length}`})]})]})})}},si=oi;const ci=[{tag:"path",att:{d:"m13 7.83 5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h9v-2h-7V7.83z"}}],ui=ci;var di=()=>Ht(ui);var hi=e=>{const{prefix:t="",className:n,width:i="100%",height:r,inlineBlock:l,tagName:a="div",...o}=e;return ft(a,{style:{width:i,height:r},className:bt(`${t}skeleton`,l&&`${t}skeleton--inline-block`,n),...o})};const _i=e=>{const{label:t,imageUrl:n,url:i,current:r,categoryId:l,productItemClickHandler:a,productKeyDownHandler:o,pageContext:s,menuItemsAreSiblings:c,dropdownEnabled:u,dropdownOpened:d,idx:h}=e,[_,f]=oe(!1),p=n&&ht.createElement("div",{className:_?"hnf-tabs-navigation__card__imagebox":"hnf-tabs-navigation__card__imagebox hnf-tabs-navigation__card__imagebox--loading"},ht.createElement("img",{src:Wn(n,160),alt:"",onLoad:()=>f(!0)})),m=t||ht.createElement(hi,{prefix:"hnf-",width:"110px",height:"22px"});return r?ht.createElement("div",{className:"hnf-tabs-navigation__card hnf-tabs-navigation__card--products"},p,!_&&ht.createElement(hi,{prefix:"hnf-",width:"80px",height:"80px"}),ht.createElement("span",null,m)):i&&l?ht.createElement("a",{href:i?.startsWith("/")?`${Vn()}${i}`:i,className:"hnf-tabs-navigation__card hnf-tabs-navigation__card--products"+(t&&Fn(cn(),t)?" hnf-tabs-navigation__card--wide":""),"data-category-id":l,"data-idx":h,"data-tracking-label":Mn(s,l,c,h,i),role:u?"button":null,"aria-expanded":u?d:null,"aria-controls":u&&d?`hnf-dropdown-${l}`:null,onClick:a||(()=>{jn(Gn((()=>"main_navigation_click"),`products | ${h} | ${pn(i)}`,"beacon","site_navigation"))}),onKeyDown:o},p,!_&&ht.createElement(hi,{prefix:"hnf-",width:"80px",height:"80px"}),ht.createElement("span",null,m)):ht.createElement("a",{href:i,className:"hnf-tabs-navigation__card hnf-tabs-navigation__card--products"},ht.createElement(hi,{prefix:"hnf-",width:"80px",height:"80px"}),ht.createElement("span",null,m))},fi=K({selectedItems:[],setSelectedItems:()=>{},handleChange:()=>{},multiple:!1,value:[],onChange:()=>{}});var pi=e=>{const{multiple:t,value:n,children:i,onChange:r}=e,[l,a]=oe(n||[]),o=fe(((e,n,i)=>{const o=t?n||l.includes(e)?l.filter((t=>t!==e)):[...l,e]:[e];a(o),r&&i&&r(o)}),[t,l,r]);return ce((()=>{n&&a(n)}),[n]),ft(fi.Provider,{value:{selectedItems:l,setSelectedItems:a,handleChange:o,multiple:t,value:n},children:i})};const mi=(e,t)=>{const n=`.${t}list-view-item:not(.${t}list-view-item--disabled)`;return Array.from(e.querySelectorAll(`${n} a, ${n} button, ${n} input, [role="option"]:not(.${t}menu-item--disabled)`))};var gi=(e,t)=>{if(["ArrowUp","ArrowDown","Home","End","Enter"," "].includes(e.key)){e.preventDefault();const n=mi(e.currentTarget,t),i=n.indexOf(e.target);let r;switch(e.key){case"ArrowUp":r=n[Math.max(Math.min(i-1,n.length-1),0)];break;case"ArrowDown":r=n[Math.max(Math.min(i+1,n.length-1),0)];break;case"Home":r=n[0];break;case"End":r=n[n.length-1];break;case"Enter":case" ":e.preventDefault(),e.target.click()}r?.focus()}};const bi=()=>({w:window.innerWidth,h:window.innerHeight}),vi=[];let yi;const xi=()=>{clearTimeout(yi),yi=setTimeout((()=>{const e=bi();vi.forEach((t=>t(e)))}),40)},Si=()=>{clearTimeout(yi),window.removeEventListener("resize",xi)};var ki=e=>{const[t,n]=ht.useState(e&&"undefined"!=typeof window&&bi()||void 0);return ht.useEffect((()=>{if(e){const e=(e=>{if(!e)return bi();const t=bi();return t.w!==e.w||t.h!==e.h?t:void 0})(t);e&&n(e),vi.push(n),1===vi.length&&(Si(),window.addEventListener("resize",xi))}return()=>{let e=vi.indexOf(n);e>-1&&vi.splice(e,1),0===vi.length&&Si()}}),[e]),t};const wi=e=>{const{prefix:t="",children:n,className:i,open:r=!1,footer:l,multiple:a=!0,onChange:o,domFocus:s=!0,ariaLabel:c="Listbox",trigger:u,position:d="left",containerRef:h,..._}=e,f=de(null),p=de(!1),[m,g]=oe(!1),{selectedItems:b}=pe(fi),[v,y]=oe(!r),[x,k]=oe(d),[w,E]=oe("bottom"),$=de(null),N=de(null);he(h,(()=>$.current||N.current),[]);const I=ki(r),L=`${t}list-box`,C=bt(L,`${L}--${x}`,`${L}--${w}`,m&&`${L}--open`,v&&`${L}--closed`,i);ce((()=>{if(m&&f.current&&s&&p.current!==m){const e=mi(f.current,t),n=e.findIndex((e=>b?.includes(e.id)));-1!==n?e[n].focus():e[0]?.focus()}}),[mi,m,s,b]);const T=fe((()=>{if(m&&N.current&&I){const e=N.current.getBoundingClientRect(),t=$.current?.getBoundingClientRect();if(!t?.height)return;const n=t.height,i=I.h-e.bottom,r=e.top;i<=0&&e.height+n+160)&&E("bottom");const l=(({preferredPosition:e,containerWidth:t,triggerLeft:n,triggerRight:i,menuWidth:r})=>{const l=t-n-r>=0,a=t-(t-i)-r>=0;return"left"===e?l?"left":a?"right":e:a?"right":l?"left":e})({preferredPosition:d,containerWidth:document.documentElement.clientWidth,triggerLeft:t.left,triggerRight:t.right,menuWidth:e.width});k(l)}}),[m,d,I]),A=((e,t)=>{let n;return()=>{n||(n=!0,setTimeout((()=>{e(),n=!1}),t))}})(T,200);ce((()=>(document.addEventListener("scroll",A),()=>{document.removeEventListener("scroll",A)})),[A]),ce((()=>{k(d)}),[d]),ce((()=>{p.current=m,T()}),[m]),ce((()=>{g(r),r&&y(!1)}),[r]),ce(T,[T,I]);const P=ft("div",{className:C,onTransitionEnd:e=>{m&&"opacity"!==e.propertyName||e.target!==N.current||y(!0)},ref:N,children:[ft("div",{className:`${L}__body`,ref:f,tabIndex:s?0:void 0,onKeyDown:e=>gi(e,t),role:"listbox","aria-label":c,"aria-multiselectable":a,..._,children:n}),l]});return ft(S,{children:u?ft("div",{className:`${t}list-box__trigger`,ref:$,children:[u,P]}):P})};wi.displayName="ListBoxInternal";var Ei=wi;const $i=e=>{const{children:t,multiple:n,value:i,trigger:r,ariaLabel:l,domFocus:a,onChange:o,open:s,footer:c,prefix:u,className:d,position:h,containerRef:_,...f}=e;return ft(pi,{multiple:n,value:i,onChange:o,children:ft(Ei,{multiple:n,value:i,trigger:r,ariaLabel:l,domFocus:a,onChange:o,open:s,footer:c,prefix:u,className:d,position:h,containerRef:_,...f,children:t})})};$i.displayName="ListBox";var Ni=$i;var Ii=e=>{const{prefix:t="",className:n,media:i,mediaPosition:r="leading",content:l}=e,a=`${t}card`,o=bt(a,"trailing"===r&&`${a}--trailing-media`,n);return ft(S,{children:i?ft("div",{className:o,children:[l,ft("div",{className:`${a}__media`,children:i})]}):l})};const Li=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m20.0008 12.0001-8-8.001-1.4143 1.414L16.1727 11H4v2h12.1723l-5.5868 5.5866 1.4141 1.4142 8.0012-8.0007z"}}],Ci=Li;var Ti=()=>Ht(Ci);const Ai="rgb(var(--colour-neutral-2, 245, 245, 245))",Pi="rgb(var(--colour-neutral-7, 17, 17, 17))",Oi="rgb(var(--colour-elevation-2, 255, 255, 255))",Vi="rgb(var(--colour-static-ikea-brand-blue, 0, 88, 163))",Mi="rgb(var(--colour-static-ikea-family, 0, 124, 193))",Bi="rgb(var(--colour-static-ikea-business-network, 222, 188, 156))",Ri="rgb(var(--colour-commercial-message-new, 202, 80, 8))",zi="rgb(var(--colour-commercial-message-new-lower-price, 204, 0, 8))",Di="rgb(var(--colour-commercial-message-bti-yellow, 255, 219, 0))",Ui="rgb(var(--colour-campaign-sustainability, 0, 133, 62))",Hi="rgb(var(--colour-extended-palette-01, 193, 207, 212))",Wi="rgb(var(--colour-extended-palette-02, 163, 172, 176))",Fi="rgb(var(--colour-extended-palette-03, 140, 221, 255))",qi="rgb(var(--colour-extended-palette-04, 0, 150, 210))",Ki="rgb(var(--colour-extended-palette-05, 0, 89, 128))",ji="rgb(var(--colour-extended-palette-06, 217, 171, 255))",Gi="rgb(var(--colour-extended-palette-07, 107, 61, 153))",Zi="rgb(var(--colour-extended-palette-08, 255, 166, 218))",Xi="rgb(var(--colour-extended-palette-09, 229, 47, 126))",Ji="rgb(var(--colour-extended-palette-10, 255, 174, 102))",Qi="rgb(var(--colour-extended-palette-11, 255, 170, 0))",Yi="rgb(var(--colour-extended-palette-12, 242, 106, 47))",er="rgb(var(--colour-extended-palette-13, 204, 177, 0))",tr="rgb(var(--colour-extended-palette-14, 199, 217, 0))",nr="rgb(var(--colour-extended-palette-15, 122, 181, 29))",ir="rgb(var(--colour-extended-palette-16, 80, 128, 32))",rr="rgb(var(--colour-extended-palette-17, 149, 229, 187))",lr="rgb(var(--colour-extended-palette-18, 0, 153, 133))",ar="rgb(var(--colour-extended-palette-19, 0, 102, 88))",or="rgb(var(--colour-extended-palette-20, 215, 199, 162))",sr="rgb(var(--colour-extended-palette-21, 195, 178, 137))",cr={default:Ai,importantMessage:Pi,inverse:Oi,wayfinding:Vi,lowestPrice:Di,newLowerPrice:zi,new:Ri,IKEAFamily:Mi,sustainability:Ui,IKEABusinessNetwork:Bi,extendedPalette01:Hi,extendedPalette02:Wi,extendedPalette03:Fi,extendedPalette04:qi,extendedPalette05:Ki,extendedPalette06:ji,extendedPalette07:Gi,extendedPalette08:Zi,extendedPalette09:Xi,extendedPalette10:Ji,extendedPalette11:Qi,extendedPalette12:Yi,extendedPalette13:er,extendedPalette14:tr,extendedPalette15:nr,extendedPalette16:ir,extendedPalette17:rr,extendedPalette18:lr,extendedPalette19:ar,extendedPalette20:or,extendedPalette21:sr},ur=["importantMessage","new","sustainability","IKEAFamily","newLowerPrice"],dr=["lowestPrice","IKEABusinessNetwork","extendedPalette01","extendedPalette02","extendedPalette03","extendedPalette04","extendedPalette06","extendedPalette08","extendedPalette09","extendedPalette10","extendedPalette11","extendedPalette12","extendedPalette13","extendedPalette14","extendedPalette15","extendedPalette17","extendedPalette18","extendedPalette20","extendedPalette21"],hr=["wayfinding","extendedPalette05","extendedPalette07","extendedPalette16","extendedPalette19"];var _r=({prefix:e="",id:t,className:n,addOn:i,title:r,subtitle:l="",label:a="",body:o="",children:s,onCardClick:c,simple:u=!1,href:d,linkAttributes:h,theme:_="default",fixed:f,buttonProps:p,buttonType:m,titleHeadingTag:g="h2",contentVerticalAlign:b,...v})=>{const y=`${e}content-card`,x=bt(ur.includes(_)&&`${y}--light-foreground`,hr.includes(_)&&`${y}--static-light-foreground`,dr.includes(_)&&`${y}--static-dark-foreground`),S=bt(y,f&&`${y}--fixed`,u&&`${y}--simple`,!u&&x,"center"===b&&`${y}--${b}`,n),k=bt(`${y}__container`),w=u?{"--content-card-background":"none"}:{"--content-card-background":`${cr[_]}`},E=g,$=ft("div",{className:k,children:[i&&ft("div",{className:`${y}__add-on`,children:i}),a&&ft("span",{className:`${y}__label`,children:a}),ft("a",{href:d,onClick:c,...h,className:`${y}__headers`,"aria-describedby":p?.text?`${t}-cta`:void 0,children:ft(E,{className:`${y}__title`,children:r})}),l&&ft("span",{className:`${y}__subtitle`,children:l}),o&&ft("p",{className:`${y}__body`,children:o}),s]}),N=ft(Kt,p?.text?{...p,prefix:e,className:bt(`${y}__cta`,p.className),tabIndex:-1,"aria-hidden":"true",type:m||"primary",size:"small",id:`${t}-cta`,href:void 0,onClick:void 0,inverseTheme:ur.includes(_)||hr.includes(_),staticColour:dr.includes(_)||hr.includes(_)}:{prefix:e,className:`${y}__cta`,tabIndex:-1,"aria-hidden":"true",type:"primary",iconOnly:!0,size:"small",inverseTheme:"inverse"!==_,staticColour:"inverse"!==_,ssrIcon:Ti}),I=p?.text?ft(Kt,{...p,prefix:e,id:`${t}-cta`,className:bt(`${y}__cta`,p.className),tabIndex:-1,href:void 0,onClick:void 0,"aria-hidden":"true",type:m||"secondary",size:"small"}):ft(xt,{className:`${y}__icon`,prefix:e,paths:Ti});return ft("div",{className:S,...v,style:w,children:[$,ft("div",{className:`${y}__footer`,children:u?I:N})]})};var fr=e=>{const{tagType:t="span",prefix:n="",className:i,ratio:r="standard",children:l,...a}=e;return ft(t,{className:`${bt(`${n}aspect-ratio-box`,r&&`${n}aspect-ratio-box--${r.replace(":","-")}`,i)}`,...a,children:l})};const pr=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m2.1213 2.121 19.7989 19.7991-1.4141 1.4142-3.3345-3.3345H3.0002V5.8284L.7071 3.5353 2.1213 2.121zm13.0503 15.8788-2-2H6.5002l2.6685-4.0029-4.1685-4.1685v10.1714h10.1714z"}},{tag:"path",att:{d:"m6.8284 3.9998 2 2h10.1718v10.1718l2 2V3.9998H6.8284z"}},{tag:"path",att:{d:"M14.0002 9.4998c0 .8284.6716 1.5 1.5 1.5s1.5-.6716 1.5-1.5c0-.8285-.6716-1.5-1.5-1.5s-1.5.6715-1.5 1.5z"}}],mr=pr;var gr=()=>Ht(mr);const br=[{tag:"path",att:{d:"M15.5 11c-.8284 0-1.5-.6716-1.5-1.5S14.6716 8 15.5 8s1.5.6716 1.5 1.5-.6716 1.5-1.5 1.5zM13 15.25l-3-4.5L6.5 16h11L15 12.25l-2 3z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 4v16h18V4H3zm2 14V6h14v12H5z"}}],vr=br;var yr=()=>Ht(vr);var xr=e=>{const{src:t,alt:n,className:i,prefix:r="",srcSet:l,sizes:a,loading:o="lazy",fallback:s=!1,...c}=e,[u,d]=oe(!1),[h,_]=oe(!1),f=de(null),p=bt(`${r}image`,(u||s)&&`${r}image--fallback`,i);ce((()=>{t&&d(!1)}),[t]),ce((()=>{if(f.current&&!h&&!u&&f.current.complete)if(f.current.naturalHeight){const e=new Event("load");f.current.dispatchEvent(e)}else{const e=new Event("error");f.current.dispatchEvent(e)}}),[]);let m=yr;u&&(m=gr);const g=ft("img",{ref:f,className:u||s?void 0:p,onError:e=>{f.current&&(d(!0),c.onError&&c.onError(e))},onLoad:e=>{f.current&&(_(!0),c.onLoad&&c.onLoad(e))},alt:n,src:t,srcSet:l,sizes:a,loading:o,...c});return u||s?ft("span",{className:p,children:[ft(xt,{paths:m,className:`${r}image__icon`,prefix:r}),g]}):g},Sr=xr;const kr=(e,t)=>{const[n,i]=oe((Cn()?null:yn().store?.id||null)||null),[r,l]=oe((Cn()?null:yn().pc?.state||null)||null);if(ce((()=>{const e=window?.ikea?.pubsub?.subscribe("NAVIGATION/STORE_SET",(e=>{e!==n&&i(e)})),t=window?.ikea?.pubsub?.subscribe("NAVIGATION/POSTALCODE_SET",(e=>{e&&e.state&&e.state!==r&&l(e.state)}));return()=>{e?.unsubscribe(),t?.unsubscribe()}}),[n,r]),!e?.length||!t?.length)return null;const a=(new Date).toISOString();let o=t.filter((t=>{let{id:n,start:i,end:r}=t;return e.includes(n)&&a>i&&(!r||a{let{stores:t,states:i}=e;return t.includes(n)||i?.includes(r)}));return o=s.length?s:o.filter((e=>{let{stores:t,states:n}=e;return!t.length&&!n?.length})),o[Math.floor(Math.random()*o.length)]||null},wr=e=>{let{parentTrackingLabel:t,categoryId:n,menuItems:i,localeStrings:r,dropdownKeyDownHandler:l,promotions:a}=e;const o=de(null),s=de(null),c=document.querySelector(".hnf-tabs-navigation"),u=c?.getBoundingClientRect()?.x+48,d=c?.getBoundingClientRect()?.width-96;ue((()=>{const e=o.current.getBoundingClientRect().width,t=document.querySelector(`[data-category-id="${n}"] > span`),i=t?.getBoundingClientRect()?.x,r=i-u-40,l=Math.round(Math.min(Math.max(r,0),d-e)),a=c?.offsetHeight-120;document.documentElement.style.setProperty("--hnf-dropdown-left",`${l}px`),document.documentElement.style.setProperty("--hnf-dropdown-top",`${a}px`)}),[]);const h=i.find((e=>e.id===n)),_=kr(h?.pro||[],a);ce((()=>{s.current.focus()}),[]);const f=e=>{const n=e.target.closest("a"),i=n.closest("ul")?.children.length+1;Zn("Visual Navigation Links",n,i),jn(Gn((()=>"main_navigation_click"),`${t} | ${n.getAttribute("data-tracking-label")}`,"beacon","site_navigation"))};return ht.createElement(Ni,{open:!0,prefix:"hnf-",id:`hnf-dropdown-${n}`,className:"hnf-dropdown","aria-label":`${r.SITE_MENU_SUBMENU_FOR} ${h.name}`},ht.createElement("div",{ref:o},ht.createElement("div",null,ht.createElement("ul",{className:"hnf-dropdown__explore-category"},ht.createElement("li",null,ht.createElement("a",{ref:s,href:`${Vn()}${h.url}`,"data-tracking-label":"1 | all",onClick:f,onKeyDown:l},(p=r.TABS_NAVIGATION_EXPLORE_CATEGORY,m=h.name,p.replace("{{category}}",m?.toLowerCase()||"").replace("{{categoryCapitalised}}",m||"").replace(/\bikea\b/,"IKEA"))))),ht.createElement("ul",{className:h?.subs.length>10?"hnf-dropdown__columns":"hnf-dropdown__column"},h?.subs.map(((e,t)=>ht.createElement("li",null,ht.createElement("a",{href:`${Vn()}${e.url}`,"data-tracking-label":`${t+2} | ${Kn(e)}`,onClick:f,onKeyDown:l},e.name)))))),_?.title&&_?.promotionUrl&&ht.createElement("div",{className:"hnf-dropdown__promo-wrapper"},ht.createElement(Ii,{prefix:"hnf-",content:ht.createElement(_r,{prefix:"hnf-",body:_.body,contentVerticalAlign:"top",fixed:!0,href:_.promotionUrl,theme:_?.background||"default",title:_.title,titleHeadingTag:"h2",onClick:e=>{const n=e.target.closest("a");jn(Gn((()=>"main_navigation_click"),`${t} | ${h?.subs.length+2} | ${n}`.replace(/^products\s\|/,"product_banners |"),"beacon","site_navigation"))},onKeyDown:l}),media:_?.imageUrl&&ht.createElement(fr,{ratio:"16:9",prefix:"hnf-"},ht.createElement(Sr,{alt:"",prefix:"hnf-",src:Wn(_.imageUrl,600)})),mediaPosition:"leading"}))));var p,m},Er=e=>{if(!e)return;const t=[...e.querySelectorAll('a[href], button, input, textarea, select, [tabindex]:not([tabindex="-1"])')].filter((e=>!e.closest('[aria-hidden="true"], [style*="display:none"], [disabled]')&&"none"!==window.getComputedStyle(e,null).display&&"hidden"!==window.getComputedStyle(e,null).visibility));return t.length?{first:t[0],last:t[t.length-1],all:t}:{}},$r=e=>{const t="nav-previousTabsPage",{useDefaultPageContext:n,topCategories:i,localeStrings:r,promotions:l}=e;let{pageContext:a}=e;const[o,s]=oe([]),[c,u]=oe([]),[d,h]=oe({}),[_,f]=oe(""),[p,m]=oe(!0),[g,b]=oe(null),[v,y]=oe(null),[x,S]=oe(null),[k,w]=oe(!1),E=de(["foobar"]),$=e=>{b(null),S(null),document.querySelector(".bc-breadcrumb")&&(document.querySelector(".bc-breadcrumb").style.zIndex="101"),document.removeEventListener("mousedown",N,!0),document.querySelector(".hnf-tabs-navigation .hnf-tabs__panel:not([hidden]) .hnf-carousel")?.classList.remove("hnf-carousel--dropdown-open"),e&&e.focus()},N=e=>{const t=document.querySelector(".hnf-dropdown");t&&!t.contains(e.target)&&(e.target.closest("a")?.classList.contains("hnf-tabs-navigation__card")?document.removeEventListener("mousedown",N,!0):$())},I=e=>{const n=e.target.closest("a");if(!n.getAttribute("role")){jn(Gn((()=>"hierarchy_up"),`products | ${n.getAttribute("data-idx")} | ${pn(n.href)}`,"beacon","site_navigation"));const e=n.closest(".hnf-carousel__body")?.children.length;return Zn("Visual Navigation Links",n,e),void(!c&&xn(t,window.location.href))}jn(Gn((()=>"main_navigation_click"),`products | ${n.getAttribute("data-idx")} | ${pn(n.href)}`,"beacon","site_navigation")),e.preventDefault(),y(n.getAttribute("data-tracking-label")),b(n.getAttribute("data-category-id")),S(n.getAttribute("data-idx")),document.querySelector(".bc-breadcrumb")&&(document.querySelector(".bc-breadcrumb").style.zIndex="99"),xn(t,n.href),document.addEventListener("mousedown",N,!0),document.querySelector(".hnf-tabs-navigation .hnf-tabs__panel:not([hidden]) .hnf-carousel")?.classList.add("hnf-carousel--dropdown-open")},L=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),e.target.click())};n&&(a=["products"]),ce((()=>{if(!p){const e=()=>{document.activeElement.closest("#hnf-carousel__tabs-navigation-products")||document.activeElement.closest(".hnf-dropdown")||kn(t),window.removeEventListener("pagehide",e)};window.addEventListener("pagehide",e)}}),[p]),ce((async()=>{if(a.toString()===E.current.toString())return;E.current=a;const t=((e,t)=>{t.length>0&&"products"!==t[0]&&(t=["products"]);let n,i={subs:[...e],url:`${""===un&&(un=document.querySelector(".hnf-header__logo > a")?.getAttribute("href")||(cn()?`/${cn()}/`:"#")),un}`};for(let e=1;en.id===t[e])),!i){const e=r=>{r.some((r=>{if(r.subs){const l=r.subs.find((e=>e.id===t[t.length-1]));if(l)return n.url=r.url,n.subs=r.subs,i=l,!0;e(r.subs)}}))};if(e(n.subs),i)break}if(i||(i=n),!i.subs||0===i.subs.length){const e=n?.subs.findIndex((e=>e.id===i.id));i.idx=e,i.subs=n?.subs,i.subs?.splice(e,1),i.subs?.filter((e=>e.im)),i.menuItemsAreSiblings=!0}return{current:i,subCategoriesOrSiblings:i.subs?.filter((e=>e.im)),menuItemsAreSiblings:!!i.menuItemsAreSiblings,parentUrl:n?.url}})(e.isBusinessHeader?await On("box")():await Pn(),a);t&&t.subCategoriesOrSiblings?(s(t.subCategoriesOrSiblings),u(t.menuItemsAreSiblings),h(t.current),f(t.parentUrl),w(!0),m(!1)):m(!1)}),[a]);const C=o&&o.map(((e,t)=>ht.createElement(_i,{label:e.name,imageUrl:e.im,url:e.url,key:`hnf-product-card-${t}`,idx:t+1,categoryId:e.id,productItemClickHandler:I,productKeyDownHandler:L,pageContext:a,menuItemsAreSiblings:c,dropdownEnabled:n&&e.subs?.length>0,dropdownOpened:e.id===g}))),T=i?i.map(((e,t)=>ht.createElement(_i,{label:e.name,url:e.url,key:`skeleton-${t}`,idx:t+1}))):[],A=k&&gn();return ht.createElement("div",{className:"hnf-tabs-navigation__container"},!k||a.length>1&&"products"===a[0]&&ht.createElement("div",{className:"hnf-tabs-navigation__current"},_&&ht.createElement("div",{className:"hnf-tabs-navigation__level-up"},ht.createElement(Kt,{iconOnly:!0,ssrIcon:di,size:"small",prefix:"hnf-",type:"secondary",text:r.TABS_NAVIGATION_GO_UP,href:p?"":_,disabled:p,onClick:e=>{const n=Sn(t);if(n&&n!==window.location.href)e.preventDefault(),kn(t),jn(Gn((()=>"back_click"),`${window.location.href} | ${n}`,"beacon","site_navigation")),window.location.href=n;else{const t=e.target.closest("a");jn(Gn((()=>"back_click"),`${window.location.href} | ${t}`,"beacon","site_navigation"))}}})),ht.createElement(_i,{label:p?"":d.name,imageUrl:p?"":d.im,url:A&&d.url,categoryId:A&&d.id,pageContext:A&&a,current:!A,idx:d.idx})),ht.createElement("div",{className:"hnf-tabs-navigation__carousel-wrapper"},ht.createElement(si,{id:"tabs-navigation-products",prefix:"hnf-",ariaLabelLeftBtn:r.TABS_NAVIGATION_SEE_PREVIOUS_ITEMS,ariaLabelRightBtn:r.TABS_NAVIGATION_SEE_NEXT_ITEMS,children:p?T:C,key:p?"carousel-1":"carousel-2",skipButtonText:r.SKIP_LISTING})),g&&ht.createElement(wr,{menuItems:o,parentTrackingLabel:v,categoryId:g,localeStrings:r,dropdownKeyDownHandler:e=>{const t=g;if("Escape"===e.key||"Esc"===e.key)$(document.querySelector(`#hnf-carousel__tabs-navigation-products a[data-category-id="${t}"]`));else if("Tab"===e.key){const n=Er(document.querySelector(".hnf-dropdown .hnf-list-box__body"));if(e.shiftKey&&e.target===n.first)e.preventDefault(),$(document.querySelector(`#hnf-carousel__tabs-navigation-products a[data-category-id="${t}"]`));else if(!e.shiftKey&&e.target===n.last){e.preventDefault();const n=document.querySelector(`#hnf-carousel__tabs-navigation-products a[data-category-id="${t}"]`),i=n?.parentElement?.nextElementSibling?.querySelector("a");$(i||n)}}},key:`dropdown-${g}`,idx:x,promotions:l}))},Nr=e=>{const{current:t,label:n,imageUrl:i,url:r,idx:l,isActive:a}=e,[o,s]=oe(!1);return t?ht.createElement("div",{className:"hnf-tabs-navigation__card hnf-tabs-navigation__card--rooms"},i?ht.createElement(fr,{prefix:"hnf-",ratio:"wide",className:o?"":"hnf-aspect-ratio-box--loading"},ht.createElement("img",{className:"hnf-image",src:Wn(i,300),alt:"",onLoad:()=>s(!0)})):"",!o&&ht.createElement(hi,{prefix:"hnf-",width:"142px",height:"80px"}),ht.createElement("span",null,n)):ht.createElement("a",{href:r,className:"hnf-tabs-navigation__card hnf-tabs-navigation__card--rooms","data-tracking-label":`rooms | ${l} | ${pn(r)}`,onClick:t=>{((e,t)=>{const n=e.target.closest("a"),i=n.closest(".hnf-carousel__body")?.children.length;Zn("Visual Navigation Links",n,i);const r=`rooms | ${t.idx} | ${pn(t.url)}`;jn(Gn((()=>"main_navigation_click"),r,"beacon","site_navigation"))})(t,e)}},i&&a?ht.createElement(fr,{prefix:"hnf-",ratio:"wide",className:o?"":"hnf-aspect-ratio-box--loading"},ht.createElement("img",{className:"hnf-image",src:Wn(i,300),alt:"",onLoad:()=>s(!0)})):"",(!o||!a)&&ht.createElement(hi,{prefix:"hnf-",width:"142px",height:"80px"}),ht.createElement("span",null,n))},Ir=e=>{let{items:t,localeStrings:n,pageContext:i,isActive:r}=e;const[l,a]=oe(!1),[o,s]=oe(!0),[c,u]=oe([]),d=!Cn()&&`/${cn()}/rooms/`,h=i?.length>1&&"rooms"===i[0]&&t.find((e=>((e,t)=>{const n=vn(t);return e.includes(n)})(window.location.pathname.replace(/\/?$/,"/"),e.link)));ce((async()=>{let e=await Pn();s(!1),u(e),a(!0)}),[]);const _=(e,t)=>{for(const n of t){if(n.id===e)return n;if(n.subs){const t=_(e,n.subs);if(t)return t}}},f=e=>{const t=e.target.closest("a");if(!t.getAttribute("role")){const e=t.closest(".hnf-carousel__body")?.children.length;Zn("Visual Navigation Links",t,e),xn("nav-previousTabsPage",window.location.href)}},p=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),e.target.click())},m=t.map(((e,t)=>ht.createElement(Nr,{label:e.title,imageUrl:e.image,url:e.link,key:`rooms-${t}`,idx:t+1,trackingLabel:Bn([e.link]),isActive:r})));let g=[];return i?.length>1&&h&&c.length>0&&(g=h.roomRelatedCategories?.map(((e,t)=>{const n=(l=c,a=t,"cat"===(r=e).type?_(r.id.trim(),l):"manual"===r.type||"pub"===r.type?{name:r.title,im:r.imageNextNav,url:r.url,id:r.id||`${r.type}-${r.url.split("/").pop()}-${a}`}:void 0);var r,l,a;if(n?.name&&n?.im&&n?.url)return ht.createElement(_i,{label:n.name,imageUrl:n.im,url:n.url,key:`hnf-product-card-${t}`,categoryId:n.id,productItemClickHandler:f,productKeyDownHandler:p,pageContext:i,menuItemsAreSiblings:!1,dropdownEnabled:!1})}))),ht.createElement("div",{className:"hnf-tabs-navigation__container"},i?.length>1&&"rooms"===i[0]&&h?ht.createElement("div",{className:"hnf-tabs-navigation__current"},d&&ht.createElement("div",{className:"hnf-tabs-navigation__level-up"},ht.createElement(Kt,{iconOnly:!0,ssrIcon:di,size:"small",prefix:"hnf-",type:"secondary",text:n.TABS_NAVIGATION_GO_UP,href:o?"":d,disabled:o,onClick:()=>{jn(Gn((()=>"tabs_up"),"navigate up one level","beacon","site_navigation"))}})),ht.createElement(Nr,{label:o?"":h?.title,imageUrl:o?"":h?.image,current:!0,idx:h.idx})):null,ht.createElement("div",{className:"hnf-tabs-navigation__carousel-wrapper"},ht.createElement(si,{id:"tabs-navigation-rooms",prefix:"hnf-",ariaLabelLeftBtn:n.TABS_NAVIGATION_SEE_PREVIOUS_ITEMS,ariaLabelRightBtn:n.TABS_NAVIGATION_SEE_NEXT_ITEMS,children:i?.length>1&&"rooms"===i[0]&&h?g:m,key:"rooms-carousel"+(l?"-client":""),skipButtonText:n.SKIP_LISTING})))},Lr=e=>{let{promotion:t,idx:n,parentTrackingLabel:i}=e;const r=`${n?n+" | ":""}${t.promotionUrl}`;return ht.createElement(Ii,{prefix:"hnf-",content:ht.createElement(_r,{prefix:"hnf-",dataTrackingLabel:`${n?n+" | ":""}${t.promotionUrl}`,contentVerticalAlign:"top",fixed:!0,href:t.promotionUrl,theme:t?.background||"default",title:t.title,titleHeadingTag:"h2",onClick:()=>{jn(Gn((()=>"main_navigation_click"),`${i} | ${r}`.replace(/^products\s\|/,"product_banners |"),"beacon","site_navigation"))}}),mediaPosition:"leading"})},Cr=e=>{let{links:t,titleSeeAll:n,seeAllLink:i,linkClickHandler:r,localeStrings:l,title:a}=e;const o=ge();let s=1;return t?.length<1?null:ht.createElement("ul",{className:"hnf-links__hotspot"},i&&ht.createElement("li",{key:`${o}`},ht.createElement("a",{href:i,className:"hnf-link hnf-link--hotspot","data-tracking-label":s+++" | all",onClick:r},n||l.SITE_MENU_SEE_ALL_IN.replace("{{category}}",a))),t.slice(0,3).map(((e,t)=>{let{link:n,title:i}=e;return ht.createElement("li",{key:`${o}-${t}`},ht.createElement("a",{href:n,className:"hnf-link hnf-link--hotspot","data-tracking-label":`${s++} | ${Bn([n])}`,onClick:r},i))})))},Tr=e=>{let{items:t,tabTitle:n,tabUrl:i,dataTrackingLabel:r,localeStrings:l,promotionIds:a,promotions:o,sectionsAndGroupsEnabled:s=!1,hotspotLinks:c,titleSeeAll:u,seeAllLink:d}=e;const h=a?.length?14:19,_=n&&i&&t.length>1?[{title:l.SITE_MENU_SEE_ALL_IN.replace("{{category}}",n),link:i,highlight:!0,dataTrackingLabel:"all"},...t]:t,f=e=>{const t=e.target.closest("a"),n=t.closest(".hnf-tabs-navigation__textlinks")?.querySelectorAll("li")?.length;Zn("Visual Navigation Links",t,n),jn(Gn((()=>"main_navigation_click"),`${r} | ${t.getAttribute("data-tracking-label")}`,"beacon","site_navigation"))},p=kr(a,o);let m=(c?.length?c?.length:0)+1,g=1;const b=p&&p.title&&p.promotionUrl;let v=0,y="";return s&&(c?.length>0&&v++,v+=t.length,b&&v++,y=v>=4?" hnf-tabs-navigation__section--compact":""),ht.createElement("nav",{role:"navigation",className:s?`hnf-tabs-navigation__section${y}`:"hnf-tabs-navigation__textlinks "},s&&c?.length>0&&ht.createElement(Cr,{links:c,title:n,titleSeeAll:u,seeAllLink:d,linkClickHandler:f,localeStrings:l}),s?t.map((e=>ht.createElement("ul",{className:"hnf-links__group","data-tracking-label":`${m++} | ${e.title}`},ht.createElement("li",{className:"hnf-links__group-label"},e.title),e.subItems?.map(((t,n)=>ht.createElement("li",null,ht.createElement("a",{href:t.link,onClick:f,"data-tracking-label":`${m} | ${e.title} | ${n+1} | ${t?.dataTrackingLabel||Bn([t.link])}`,className:e.highlight?"hnf-link hnf-link--highlight":"hnf-link"},t.title))))))):(x=_.slice(0,h),S=5,Array.from({length:Math.ceil(x.length/S)},((e,t)=>x.slice(t*S,t*S+S)))).map((e=>ht.createElement("ul",null,e.map((e=>ht.createElement("li",null,ht.createElement("a",{href:e.link,onClick:f,"data-tracking-label":`${g++} | ${e.dataTrackingLabel||Bn([e.link])}`,className:e.highlight?"hnf-link hnf-link--highlight":"hnf-link"},e.title))))))),b&&v<=5&&ht.createElement("ul",{class:"hnf-tabs-navigation__promo-wrapper"},ht.createElement("li",null,ht.createElement(Lr,{promotion:p,parentTrackingLabel:r,idx:m+1}))));var x,S},Ar=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const[i,r]=oe((Cn()?null:yn().store?.id||null)||null),[l,a]=oe((Cn()?null:yn().pc?.state||null)||null);if(ce((()=>{const e=window?.ikea?.pubsub?.subscribe("NAVIGATION/STORE_SET",(e=>{e!==i&&r(e)})),t=window?.ikea?.pubsub?.subscribe("NAVIGATION/POSTALCODE_SET",(e=>{e&&e.state&&e.state!==l&&a(e.state)}));return()=>{e?.unsubscribe(),t?.unsubscribe()}}),[i,l]),!e?.length||!t?.length)return null;const o=(new Date).toISOString();let s=t.filter((t=>{let{id:n,start:i,end:r}=t;return e.includes(n)&&o>=i&&(!r||o{let{stores:t,states:n}=e;return t.includes(i)||n?.includes(l)})),u=s.filter((e=>{let{stores:t,states:n}=e;return!t.length&&!n?.length})),d=[];for(;d.length{let{combination:t="3:1",dataTrackingLabel:n,hotspotLinks:i,items:r,localeStrings:l,promotionIds:a,promotions:o,tabTitle:s,titleSeeAll:c,seeAllLink:u}=e;t=t.length>0?t:"3:1";const d=Number(t.split(":")[0]),h=Number(t.split(":")[1]);o=Ar(a,o,h);const _=e=>{const t=e.target.closest("a"),i=t.closest(".hnf-tabs-navigation__section")?.querySelectorAll("li")?.length;Zn("Visual Navigation Links",t,i),jn(Gn((()=>"main_navigation_click"),`${n} | ${t.getAttribute("data-tracking-label")}`,"beacon","site_navigation"))};let f=(i?.length?i?.length:0)+1;return ht.createElement("nav",{role:"navigation",className:`hnf-tabs-navigation__section hnf-tabs-navigation__section--${t.replace(":","-")}`},i?.length>0&&ht.createElement(Cr,{links:i,title:s,titleSeeAll:c,seeAllLink:u,linkClickHandler:_,localeStrings:l}),r?.length>0&&r.slice(0,d).map((e=>ht.createElement("ul",{className:"hnf-links__group","data-tracking-label":`${f++} | ${e.title}`},ht.createElement("li",{className:"hnf-links__group-label"},e.title),e.subItems?.map(((t,n)=>ht.createElement("li",null,ht.createElement("a",{href:t.link,onClick:_,"data-tracking-label":`${f} | ${e.title} | ${n+1} | ${t?.dataTrackingLabel||Bn([t.link])}`,className:e.highlight?"hnf-link hnf-link--highlight":"hnf-link"},t.title))))))),o?.length>0&&ht.createElement("ul",{className:"hnf-tabs-navigation__promo-wrapper"},o.slice(0,h).map(((e,t)=>ht.createElement("li",{className:`hnf-tabs-navigation__promotion hnf-tabs-navigation__promotion--${(t+1).toString()}`},ht.createElement(Lr,{promotion:e,parentTrackingLabel:n,idx:f+1}))))))},Or=e=>{const{activeTab:t,businessHeader:n,dynamicPageContext:i,initialActiveTab:r,isClient:l,localeStrings:a,topCategories:o,tabClickHandler:s,useDefaultPageContext:c}=e,u=[],d=[],h=[...n?.primary||[],...n?.secondary||[]].filter((e=>e.items?.length>0||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/\/[a-z0-9]{2}\/[a-z0-9]{2}\/business-store\/[a-z-2]*-products\/?/.test(e)}(e.link)))||[],_=n?.promotions||[];return h.forEach((e=>{const n=Bn([e.link]),l=`tab-${n.split("/").pop()}`;if(u.push(ht.createElement(Bt,{prefix:"hnf-",key:l,text:e.title,tabPanelId:l,onClick:()=>s(l,e.link),ssrIcon:Hn(n)})),"tab-b2b-products"===l&&o?.length>0){const e="tab-b2b-products"===r&&!gn()&&!bn(),n=ht.createElement($r,{useDefaultPageContext:c||!Tn()||r!==t||e,pageContext:i,topCategories:o,localeStrings:a,promotions:_,isBusinessHeader:!0,className:"debug-me"});d.push(ht.createElement(Rt,{prefix:"hnf-",key:l,tabPanelId:l},n))}else d.push(ht.createElement(Rt,{prefix:"hnf-",key:l,tabPanelId:l},ht.createElement(Tr,{items:e.items,tabTitle:e.title,tabUrl:e.link,dataTrackingLabel:Bn([e.link]),localeStrings:a,promotionIds:e.promotionIds,promotions:_})))})),ht.createElement(ln,{prefix:"hnf-",tabs:u,tabPanels:d,defaultActiveTab:t,className:l?null:"hnf-tabs--ssr",key:"tabs-navigation"+(l?"-client":"")})},Vr=e=>{const{siteMenu:t,businessHeader:n,topCategories:i,localeStrings:r,isBusinessHeader:l,promotions:a,promotionsABTestFallback:o,sectionsGroupsExperimentVariation:s}=e,{navigationVersion:c,enableSectionsAndGroups:u}=t,d=An(),[h,_]=oe(!1),[f,p]=oe(d||[]),[m,g]=oe(""),[b,v]=oe(""),[y,x]=oe(!1);let S="default";l?S="business":2.1===c||u?S="2-1":t.primary.some((e=>mn(e.link)||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return/.*\/([a-z0-9]{2})\/([a-z0-9]{2})\/(rooms)\/?$/.test(e)}(e.link)))||(S="simple"),ce((()=>{x(!0);const e=window?`${window.location.origin}${window.location.pathname}`:"";let n="";n="2-1"===S?Un([t?.sectionOne||{},t?.sectionTwo||{}],[],e,d,l,{sectionThree:t?.sectionThree||{},sectionFour:t?.sectionFour||{},sectionFive:t?.sectionFive||{},sectionSix:t?.sectionSix||{}},"2-1"===S):Un([...t?.primary||[],...t?.secondary||[]],t?.tertiary||[],e,d,l,{},"2-1"===S),g(n),v(n)}),[]);const k=(e,t)=>{const n=document.querySelector(".hnf-tabs-navigation");if(!(b!==e||n&&n.classList.contains("hnf-tabs-navigation--delayed")))return"tab-products"!==b&&"tab-b2b-products"!==b||(p(["products"]),_(!0)),void("tab-rooms"===b&&p(["rooms"]));v(e);let i="more"===e?"more":pn(t);"2-1"===S&&(i=e.replace("tab-","")),jn(Gn((()=>"entrypoint_click"),i,"beacon","site_navigation"))};if("simple"===S)return ht.createElement(Xn,{items:[...t?.primary||[],...t?.secondary||[]]});if("business"===S)return ht.createElement(Or,{activeTab:b,businessHeader:n,dynamicPageContext:f,initialActiveTab:m,isClient:y,localeStrings:r,tabClickHandler:k,topCategories:i,useDefaultPageContext:h});const w=[],E=[];let $=[];$="2-1"===S?[t.sectionOne,t.sectionTwo,t.sectionThree,t.sectionFour,t.sectionFive,t.sectionSix].filter(Boolean):[...t?.primary,...t?.secondary].filter((e=>e.items?.length>0||mn(e.link)))||[],$.forEach((e=>{const n="2-1"===S&&e.sectionId?e?.sectionId:Bn([e?.link]),l="2-1"===S&&e.sectionId?`tab-${e?.sectionId}`:`tab-${n.split("/").pop()}`;let c;w.push(ht.createElement(Bt,{prefix:"hnf-",key:l,text:e.title,tabPanelId:l,onClick:()=>k(l,e?.link),ssrIcon:Hn(n)}));const u=Dn[e.sectionId]&&y?`https://${document.getElementById("nav-script-main")?.getAttribute("data-domain")}/${cn()}/${Dn[e.sectionId]}/`:null;if("tab-products"===l){const e="tab-products"===m&&!gn()&&!bn();c=ht.createElement($r,{useDefaultPageContext:h||!Tn()||m!==b||e,pageContext:f,topCategories:i,localeStrings:r,promotions:a})}else c="tab-rooms"===l?"2-1"===S?ht.createElement(Ir,{items:t?.sectionTwo?.items,localeStrings:r,pageContext:f,isActive:b===l}):ht.createElement(Ir,{items:t.roomsMenuItems,localeStrings:r,pageContext:f,isActive:b===l}):"2-1"===S?ht.createElement(Pr,{combination:e?.combination?e.combination:"",frontendVersion:S,items:e.items,hotspotLinks:e.hotspotLinks,titleSeeAll:e.titleSeeAll,seeAllLink:u,tabTitle:e.title,tabUrl:e?.link,dataTrackingLabel:e?.link?Bn([e?.link]):e?.sectionId,localeStrings:r,promotionIds:e.promotionIds,promotions:a}):ht.createElement(Tr,{frontendVersion:S,items:e.items,hotspotLinks:e.hotspotLinks,titleSeeAll:e.titleSeeAll,seeAllLink:u,tabTitle:e.title,tabUrl:e?.link,dataTrackingLabel:e?.link?Bn([e?.link]):e?.sectionId,localeStrings:r,promotionIds:e.promotionIds,promotions:"no_sections"!==s?a:o,sectionsAndGroupsEnabled:"2-1"===S});E.push(ht.createElement(Rt,{prefix:"hnf-",key:l,tabPanelId:l},c))}));const N=("default"===S&&t?.tertiary||[]).filter((e=>"mobileOnly"!==e?.visibility));return N?.length>0&&(w.push(ht.createElement(Bt,{prefix:"hnf-",key:"tab-more",text:r.TABS_NAVIGATION_MORE,tabPanelId:"tab-more",onClick:()=>k("more"),ssrIcon:Hn("more")})),E.push(ht.createElement(Rt,{prefix:"hnf-",key:"tab-more",tabPanelId:"tab-more"},ht.createElement(Tr,{items:N,dataTrackingLabel:"more"})))),ht.createElement(ln,{prefix:"hnf-",tabs:w,tabPanels:E,defaultActiveTab:b,className:y?null:"hnf-tabs--ssr",key:"tabs-navigation"+(y?"-client":"")})};var Mr=n(1828);const Br=document.querySelector(".hnf-tabs-navigation");let Rr=!1;const zr=()=>{const e=Br.querySelector('script[type="text/hydration"]'),t=e&&JSON.parse(e.textContent)||{};F(v(Vr,t),Br),Rr=!0,(()=>{const e=document.querySelector(".bc-breadcrumb"),t=document.querySelector(".hnf-voc-cta--footer, .hnf-footer");if(!e||!t)return;if("en-US"===document.documentElement.lang)return;const n=e.cloneNode(!0);n.classList.add("bc-breadcrumb--footer"),e.classList.add("bc-breadcrumb--hidden");const i=(0,Mr.createElement)("div",["hnf-content-container","hnf-content-container--breadcrumb"]);i.appendChild(n),t.parentNode.insertBefore(i,t)})(),document.querySelector(".bc-breadcrumb")&&document.querySelector(".hnf-tabs-navigation--collapsed")&&!document.querySelector(".hnf-tabs-navigation--pip")&&(document.querySelector(".bc-breadcrumb").style.marginTop="0")};if(Br){if(Br?.getBoundingClientRect().width>0)zr();else{const e=new ResizeObserver((t=>{const n=t[0];n.target?.getBoundingClientRect().width>0&&!Rr&&(zr(),e.disconnect())}));!Rr&&Br&&e.observe(Br)}if(Br.classList.contains("hnf-tabs-navigation--collapsed")){let e=null,t=null;const n=n=>{!Br.classList.contains("hnf-tabs-navigation--collapsed")||n&&document.elementFromPoint(n.pageX,n.pageY)?.matches(".hnf-tabs")||(clearTimeout(e),clearTimeout(t),Br.classList.add("hnf-tabs-navigation--delayed"),e=setTimeout((()=>{Br.classList.remove("hnf-tabs-navigation--collapsed"),t=setTimeout((()=>{Br.classList.remove("hnf-tabs-navigation--delayed")}),350)}),350))},i=()=>{clearTimeout(e),clearTimeout(t),e=setTimeout((()=>{Br.classList.add("hnf-tabs-navigation--collapsed")}),500)};Br.addEventListener("mouseover",n),Br.addEventListener("mouseleave",i),Br.addEventListener("focusin",(()=>{Br.classList.contains("hnf-tabs-navigation--collapsed")&&Br.classList.remove("hnf-tabs-navigation--collapsed")}))}}})()})();