(()=>{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 r=document.createElement(e);return Array.isArray(t)?t.forEach((e=>{r.classList.add(e)})):"string"==typeof t&&r.classList.add(t),Array.isArray(n)?n.forEach((e=>{r.setAttribute(e.name,e.value)})):"object"==typeof n&&r.setAttribute(n.name,n.value),r},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 r={}.hasOwnProperty;function o(){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,r,o){const i=`${e}=${t}`,l=n?`;domain=${n}`:"",a=r?`;path=${r}`:"",c=o?`;expires=${o}`:"",s=arguments.length>5&&void 0!==arguments[5]&&arguments[5]&&n?";secure":"";document.cookie=i.concat(l,a,c,s)}};e.exports=t}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,o,i,l,a,c,s,u,_,f,d={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(t,n,r){var o,i,l,a={};for(l in n)"key"==l?o=n[l]:"ref"==l?i=n[l]:a[l]=n[l];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)null==a[l]&&(a[l]=t.defaultProps[l]);return b(t,a,o,i,null)}function b(e,n,o,i,l){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++r:l,__i:-1,__u:0};return null==l&&null!=t.vnode&&t.vnode(a),a}function k(e){return e.children}function E(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&&o.sort(a),e=o.shift(),u=o.length,e.__d&&(r=void 0,l=(i=(n=e).__v).__e,c=[],s=[],n.__P&&((r=v({},i)).__v=i.__v+1,t.vnode&&t.vnode(r),M(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[l]:null,c,null==l?w(i):l,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,F(c,r,s),r.__e!=l&&C(r)));S.__r=0}function N(e,t,n,r,o,i,l,a,c,s,u){var _,f,h,m,v,y,g=r&&r.__k||p,b=t.length;for(c=L(n,t,g,c,b),_=0;_0?b(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,a=null,-1!=(s=l.__i=O(l,n,c,_))&&(_--,(a=n[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>u?f--:oc?f--:f++,l.__u|=4))):e.__k[i]=null;if(_)for(i=0;i(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i=0){if((c=t[o])&&!(2&c.__u)&&l==c.key&&a==c.type)return o;o--}if(i0?e:m(e)?e.map(D):v({},e)}function I(n,r,o,i,l,a,c,s,u){var _,f,p,h,v,g,b,k=o.props,E=r.props,C=r.type;if("svg"==C?l="http://www.w3.org/2000/svg":"math"==C?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=a)for(_=0;_2&&(c.children=arguments.length>3?e.call(arguments,2):r),b(t.type,c,o||t.key,i||t.ref,null)}e=p.slice,t={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(t){e=t}throw e}},r=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},E.prototype.render=k,o=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,c=/(PointerCapture)$|Capture$/i,s=0,u=R(!1),_=R(!0),f=0;var K,V,j,G,Y=0,Q=[],X=t,Z=X.__b,J=X.__r,ee=X.diffed,te=X.__c,ne=X.unmount,re=X.__;function oe(e,t){X.__h&&X.__h(V,e,Y||t),Y=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ie(e){return Y=1,le(Ee,e)}function le(e,t,n){var r=oe(K++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ee(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=V,!V.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var l=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(l=!0)}})),i&&i.call(this,e,t,n)||l};V.__f=!0;var i=V.shouldComponentUpdate,l=V.componentWillUpdate;V.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}l&&l.call(this,e,t,n)},V.shouldComponentUpdate=o}return r.__N||r.__}function ae(e,t){var n=oe(K++,3);!X.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function ce(e,t){var n=oe(K++,4);!X.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function se(e){return Y=5,_e((function(){return{current:e}}),[])}function ue(e,t,n){Y=6,ce((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=oe(K++,7);return ke(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fe(e,t){return Y=8,_e((function(){return e}),t)}function de(e){var t=V.context[e.__c],n=oe(K++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function pe(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function he(){var e=oe(K++,11);if(!e.__){for(var t=V.__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 me(){for(var e;e=Q.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ge),e.__H.__h.forEach(be),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){V=null,Z&&Z(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),re&&re(e,t)},X.__r=function(e){J&&J(e),K=0;var t=(V=e.__c).__H;t&&(j===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(ge),t.__h.forEach(be),t.__h=[],K=0)),j=V},X.diffed=function(e){ee&&ee(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Q.push(t)&&G===X.requestAnimationFrame||((G=X.requestAnimationFrame)||ye)(me)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),j=V=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ge),e.__h=e.__h.filter((function(e){return!e.__||be(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),te&&te(e,t)},X.unmount=function(e){ne&&ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ge(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var ve="function"==typeof requestAnimationFrame;function ye(e){var t,n=function(){clearTimeout(r),ve&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ve&&(t=requestAnimationFrame(n))}function ge(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function be(e){var t=V;e.__c=e.__(),V=t}function ke(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ee(e,t){return"function"==typeof t?t(e):t}function we(e,t){for(var n in t)e[n]=t[n];return e}function Ce(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function xe(e,t){var n=t(),r=ie({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ce((function(){o.__=n,o.u=t,Se(o)&&i({t:o})}),[e,n,t]),ae((function(){return Se(o)&&i({t:o}),e((function(){Se(o)&&i({t:o})}))}),[e]),n}function Se(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function Ne(e){e()}function Le(e){return e}function Ae(){return[!1,Ne]}var $e=ce;function Oe(e,t){this.props=e,this.context=t}(Oe.prototype=new E).isPureReactComponent=!0,Oe.prototype.shouldComponentUpdate=function(e,t){return Ce(this.props,e)||Ce(this.state,t)};var Te=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Te&&Te(e)};var Pe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Re(e){function t(t){var n=we({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Pe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Me=function(e,t){return null==e?null:$($(e).map(t))},Fe={map:Me,forEach:Me,count:function(e){return e?$(e).length:0},only:function(e){var t=$(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:$},De=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);De(e,t,n,r)};var Ie=t.unmount;function He(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=we({},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 He(e,t,n)}))),e}function Ue(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ue(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 Be(){this.__u=0,this.o=null,this.__b=null}function ze(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function We(){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),Ie&&Ie(e)},(Be.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=ze(r.__v),i=!1,l=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=l;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ue(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},Be.prototype.componentWillUnmount=function(){this.o=[]},Be.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=He(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(k,null,e.fallback);return o&&(o.__u&=-33),[g(k,null,t.__a?null:e.children),o]};var qe=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)}}),z(g(Ke,{context:t.context},e.__v),t.v)}(We.prototype=new E).__a=function(e){var t=this,n=ze(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),qe(t,e,r)):o()};n?n(i):i()}},We.prototype.render=function(e){this.i=null,this.l=new Map;var 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},We.prototype.componentDidUpdate=We.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){qe(e,n,t)}))};var je="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ge=/^(?: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]/,Ye=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Qe=/[A-Z0-9]/g,Xe="undefined"!=typeof document,Ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Je=t.event;function et(){}function tt(){return this.cancelBubble}function nt(){return this.defaultPrevented}t.event=function(e){return Je&&(e=Je(e)),e.persist=et,e.isPropagationStopped=tt,e.isDefaultPrevented=nt,e.nativeEvent=e};var rt,ot={enumerable:!1,configurable:!0,get:function(){return this.class}},it=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Xe&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var a=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===a&&"no"===l?l=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Ze(t.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":Ye.test(i)&&(i=a):a=i="oninput":o&&Ge.test(i)?i=i.replace(Qe,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===a&&r[i=a]&&(i="oninputCapture"),r[i]=l}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=$(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=$(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",ot)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=je,it&&it(e)};var lt=t.__r;t.__r=function(e){lt&<(e),rt=e.__c};var at=t.diffed;t.diffed=function(e){at&&at(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),rt=null};var ct={ReactCurrentDispatcher:{current:{readContext:function(e){return rt.__n[e.__c].props.value},useCallback:fe,useContext:de,useDebugValue:pe,useDeferredValue:Le,useEffect:ae,useId:he,useImperativeHandle:ue,useInsertionEffect:$e,useLayoutEffect:ce,useMemo:_e,useReducer:le,useRef:se,useState:ie,useSyncExternalStore:xe,useTransition:Ae}}};function st(e){return!!e&&e.$$typeof===je}var ut={useState:ie,useId:he,useReducer:le,useEffect:ae,useLayoutEffect:ce,useInsertionEffect:$e,useTransition:Ae,useDeferredValue:Le,useSyncExternalStore:xe,startTransition:Ne,useRef:se,useImperativeHandle:ue,useMemo:_e,useCallback:fe,useContext:de,useDebugValue:pe,version:"18.3.1",Children:Fe,render:function(e,t,n){return null==t.__k&&(t.textContent=""),z(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return W(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(z(null,e),!0)},createPortal:function(e,t){var n=g(Ve,{__v:e,h:t});return n.containerInfo=t,n},createElement:g,createContext:function(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,x(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"+f++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t},createFactory:function(e){return g.bind(null,e)},cloneElement:function(e){return st(e)?q.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:k,isValidElement:st,isElement:st,isFragment:function(e){return st(e)&&e.type===k},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:E,PureComponent:Oe,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Ce(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Re,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:k,Suspense:Be,SuspenseList:We,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return g(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ct};var _t=0;Array.isArray;function ft(e,n,r,o,i,l){n||(n={});var a,c,s=n;if("ref"in s)for(c in s={},n)"ref"==c?a=n[c]:s[c]=n[c];var u={type:e,props:s,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--_t,__i:-1,__u:0,__source:i,__self:l};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return t.vnode&&t.vnode(u),u}var dt=n(6942);const pt=({prefix:e="",className:t,viewBox:n="0 0 24 24",ariaHidden:r=!0,children:o,...i})=>ft("svg",{viewBox:n,focusable:"false",width:"24",height:"24",...i,"aria-hidden":r,className:`${e}svg-icon${t?` ${t}`:""}`,children:o});var ht=e=>{const{prefix:t="",viewBox:n="0 0 24 24",paths:r,className:o,modifier:i,ariaHidden:l=!0,...a}=e,c=dt(o,i&&`${t}svg-icon--${i}`);return r?ft(pt,{viewBox:n,prefix:t,...a,className:c,ariaHidden:l,children:r().map(((e,t)=>ut.cloneElement(e,{key:t})))}):null},mt=ht;const vt=[{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"}}],yt=vt;function gt(e){return e.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()))}function bt(e){if(e)return e.map((e=>{return g(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,r]=t.split(":");return n&&r&&(e[gt(n.trim())]=r.trim()),e}),{}):e[gt(t)]=n,e)),{})),bt(e.nds));var t}))}var kt=()=>bt(yt);const Et=["primary","emphasised","secondary","tertiary"],wt=Re(((e,t)=>{const{href:n="",newWindow:r=!1,loadingSrText:o="Loading…",ssrIcon:i,iconOnly:l=!1,prefix:a="",htmlType:c="button",disabled:s=!1,className:u="",onClick:_,text:f="",type:d="secondary",expanding:p=!1,loading:h=!1,iconPosition:m="leading",fluid:v=!1,inverseTheme:y=!1,children:g,expandedOnTouchDevice:b=!1,size:k="medium",staticColour:E=!1,...w}=e,C=e=>{if(s||h||" "!==e.key)return;e.target.click()};let x=d||"secondary";l&&i&&(x=`icon-${x}`),y&&"danger"!==d&&"plain"!==d&&"image-overlay"!==d&&Et.indexOf(d)>-1&&(x=`${x}-inverse`);const S=dt(`${a}btn__inner`),N="danger"===d?kt:i,L=N?ft(mt,{className:`${a}btn__icon`,prefix:a,paths:N}):null,A=dt(`${a}btn`,h&&`${a}btn--loading`,"medium"!==k&&`${a}btn--${k}`,!l&&N&&m&&`${a}${m}-icon`,d&&`${a}btn--${x}`,v&&!l&&`${a}btn--fluid`,p&&`${a}btn--expanding`,p&&b&&`${a}btn--touch-device-expanded`,E&&`${a}btn--static-colour`,u),$=e=>{h||s?e.stopPropagation():_&&"function"==typeof _&&_(e)},O=ft("span",{className:S,children:[L,f&&ft("span",{className:`${a}btn__label`,children:f})||null,!h&&g||null,h&&ft("span",{className:`${a}btn__loader`,children:o})||null]});return n?ft("a",{ref:t,className:A,"aria-disabled":!!h||void 0,onClick:$,onKeyUp:C,href:s?void 0:n,target:r?"_blank":void 0,rel:r?"noreferrer":void 0,...w,children:O}):ft("button",{ref:t,className:A,disabled:s,type:c,onClick:$,...w,children:O})}));wt.displayName="Button";var Ct=wt;const xt={Enable:"skapa-focus-lock-enable",Disable:"skapa-focus-lock-disable",Escape:"skapa-focus-lock-escape-hotkey"};class St extends Event{constructor(e,t){super(e),this.SkapaFocusLockReference=t}}const Nt=new Set;function Lt(e){return e.parentElement||e.getRootNode()&&e.getRootNode().host}function At(e,t,n){var r;const o=[...e];t&&o.reverse();const i="undefined"!=typeof window;for(let e=0;et.handlePointer(e)))}function Tt(e){e.key,Nt.forEach((t=>t.handleKeyboard(e)))}const Pt=["mousedown","pointerup","touchstart","click"],Rt=["keydown","keyup"],Mt=[xt.Enable,xt.Disable];let Ft=!1;function Dt(e=!0){if(Ft===e)return;if(!e&&Nt.size)return;const t=(e?document.addEventListener:document.removeEventListener).bind(document);Pt.forEach((e=>t(e,Ot,{capture:!0}))),Rt.forEach((e=>t(e,Tt))),Mt.forEach((e=>t(e,$t))),Ft=e}let It=-1;const Ht={cache:new WeakMap};function Ut(){It=-1,Ht.cache=new WeakMap}function Bt(e,t){if(!e)return!1;if(e===t)return!0;const n=Ht.cache;if(n.has(e))return!!n.get(e);-1===It&&(It=requestAnimationFrame(Ut));const{display:r,visibility:o}=window.getComputedStyle(e);if("none"===r||"hidden"===o)return n.set(e,!1),!1;const i=e.parentNode;if(i&&i===t)return n.set(e,!0),!0;if(i&&1===i.nodeType){const r=Bt(i,t);return n.set(e,r),r}if(i&&11===i.nodeType&&"host"in i){const r=Bt(i.host,t);return n.set(e,r),r}return n.set(e,!0),!0}function zt(e=document){if(e.activeElement)return e.activeElement.shadowRoot&&zt(e.activeElement.shadowRoot)||e.activeElement}const Wt="skapa-focus-region-boundary";let qt;function Kt(){return qt||(qt=document.createElement("div"),qt.tabIndex=0,qt.toggleAttribute(Wt,!0),qt.style.position="fixed",qt.style.top="0",qt.style.left="0",qt.style.width="1px"),qt.cloneNode(!0)}const Vt=new Map;function jt(e,t){e.preventDefault(),e.stopImmediatePropagation(),t.focus()}function Gt(e){const t=Vt.get(e);t&&(t.nodes.forEach(((e,n)=>{e.removeEventListener("focusin",t.listeners[n],{capture:!0}),e&&e.isConnected&&e.remove()})),Vt.delete(e))}class Yt extends EventTarget{constructor(e){super(),this.autoFocus=!1,this.passive=!1,this.capturePointerEvents=!0,this.autoFocusReturn=!0,this.__active=!1,this.__disableKeyConfig={key:"Escape",shift:!1,ctrl:!1},this.__shiftKeyDown=!1,this.handleKeyboard=e=>{if(!this.passive){if("keydown"===e.type&&"string"==typeof e.key&&e.key.toLowerCase()===this.__disableKeyConfig.key.toLowerCase()){const{shift:t,ctrl:n}=this.__disableKeyConfig;if(t===e.shiftKey&&n===e.ctrlKey)return this.active=!1,void this.dispatchEvent(new St(xt.Escape,this))}"Shift"===e.key&&(this.__shiftKeyDown="keydown"===e.type)}},this.disconnectedLockWrapper=()=>{const e=!(this.container&&this.container.isConnected);return e&&console.warn("Focus lock feature was not disabled before removing the container from the DOM tree."),e},this.handlePointer=e=>{if(this.passive||!this.capturePointerEvents)return;if(this.disconnectedLockWrapper())return;const t=e.composedPath();t.includes(this.container)||t.find((e=>Element.prototype.isPrototypeOf(e)&&(e.classList.contains("skapa-focus-portal")||(e.getAttribute("role")||"").includes("dialog"))))||this.isElementWithin(t[0])||(e.cancelable&&e.preventDefault(),"click"===e.type&&e.stopImmediatePropagation())},this.enableLock=()=>{this.container.addEventListener("focusout",this.handleFocus),Dt(!0),function(e){const t=e.container;if(t.isConnected&&t.parentNode){Vt.has(e)&&Gt(e);const n=Kt(),r=Kt(),o=function(e){const n=At([t,...Array.from(t.querySelectorAll("*"))],!0,t);n&&jt(e,n)},i=function(e){const n=At([t,...Array.from(t.querySelectorAll("*"))],!1,t);n&&jt(e,n)};n.addEventListener("focusin",o,{capture:!0}),r.addEventListener("focusin",i,{capture:!0}),t.before(n),t.after(r),Vt.set(e,{nodes:[n,r],listeners:[o,i]})}}(this),document.dispatchEvent(new St(xt.Enable,this)),this.captureFocus()},this.disableLock=()=>{Gt(this),Dt(!1),this.container.removeEventListener("focusout",this.handleFocus),this.returnFocus(),document.dispatchEvent(new St(xt.Disable,this))},this.captureFocus=()=>{document.activeElement&&(this._activeElementBeforeFocusLock=zt());const e=this.autoFocus&&this.container.querySelector('*[data-autofocus]:not([tabindex="-1"]):not(:disabled)'),t=At(e?[e]:[this.container,...Array.from(this.container.querySelectorAll("*"))],!1,this.container);t?Xt(t):this.noFocusTargetException()},this.returnFocus=()=>{this.autoFocusReturn&&this._activeElementBeforeFocusLock&&this._activeElementBeforeFocusLock.isConnected&&Xt(this._activeElementBeforeFocusLock)},this.handleFocus=e=>{if(this.passive)return;if(!this.container.isConnected)return;const t=e.relatedTarget&&"nodeType"in e.relatedTarget&&1===e.relatedTarget.nodeType?e.relatedTarget:null;if(t&&!t.hasAttribute(Wt)&&!this.isElementWithin(t)){e.preventDefault();const t=e.composedPath()[0]||At([this.container,...Array.from(this.container.querySelectorAll("*"))],this.__shiftKeyDown,this.container);t?t.focus():this.noFocusTargetException()}},this.isElementWithin=(e,t=this.container)=>{var n;return Boolean(e&&(t.contains(e)||t.shadowRoot&&t.shadowRoot.contains(e)||(null===(n=function(e){if(!e)return;const t=e.getRootNode();return"host"in t?t.host:void 0}(t))||void 0===n?void 0:n.contains(e))||function(e){const t=[e];let n,r=e;for(;n=Lt(r);)t.push(r=n);return t}(e).includes(t)))},this.noFocusTargetException=()=>{console.warn(`Warning! Skapa Focus-lock found no focusable elements on ${this.container}.\nFocus lock remains disabled.`),this.disableLock()},this.container=e}get active(){return this.__active}set active(e){this.__active!==e&&(this.__active=e,e?this.enableLock():this.disableLock())}get disableKey(){return this.__disableKeyConfig}setDisableKey(e){this.__disableKeyConfig=Object.assign({key:"Escape",shift:!1,ctrl:!1},e)}}let Qt=-1;function Xt(e){clearTimeout(Qt),"undefined"!=typeof window&&(Qt=window.setTimeout((()=>{e&&e.isConnected&&e.focus()}),50))}var Zt=e=>{const{prefix:t="",locked:n=!1,autoFocus:r=!1,escapeHotkey:o,capturePointerEvents:i=!0,onEscaped:l,autoFocusReturn:a=!0,children:c,className:s,...u}=e,_=se(null),f=se(),[d,p]=ie(!1),h=`${t}skapa-focus-lock`,m=dt(h,(!n||d)&&`${h}--disabled`,s),v=function(){l&&l(),p(!0)};return ae((()=>{if(_.current){f.current||(f.current=new Yt(_.current));const e=f.current;o&&e.setDisableKey(o),e.capturePointerEvents=i,e.autoFocus=r,e.autoFocusReturn=a,e.active=n}return()=>{f.current&&(f.current.active=!1,p(!1))}}),[]),ae((()=>{const e=f.current;return e&&e.addEventListener(xt.Escape,v),()=>{e&&e.removeEventListener(xt.Escape,v)}}),[l,f.current]),ae((()=>{f.current&&(f.current.active=n),p(!1)}),[n]),ae((()=>{f.current&&(f.current.autoFocus=r)}),[r]),ae((()=>{f.current&&(f.current.autoFocusReturn=a)}),[a]),ae((()=>{f.current&&f.current.setDisableKey(o)}),[o]),ae((()=>{f.current&&(f.current.capturePointerEvents=i)}),[i]),ft("div",{ref:_,className:m,...u,children:c})};const Jt=[],en=e=>{const t=document.body;if(Jt.pop(),0===Jt.length&&t.classList.toString().indexOf(`${e}prevent-scroll-y`)>-1){const n=Number(t.getAttribute("data-skapa--scroll")),r=t.getAttribute("data-skapa--pad");t.classList.remove(`${e}prevent-scroll-y`),t.style.paddingRight=r,window.scrollTo(0,n),t.style.top="",t.removeAttribute("data-skapa--scroll"),t.removeAttribute("data-skapa--pad"),t.style.length||t.removeAttribute("style")}return!0},tn=(e,t)=>{e(!1),t(!0)},nn=(e,t,n)=>{e(!0),t&&(e=>{const t=document.body;if(Jt.push(!0),-1===t.classList.toString().indexOf(`${e}prevent-scroll-y`)){const n=window.pageYOffset||window.scrollY;t.setAttribute("data-skapa--scroll",n.toString());const r=t.style.paddingRight;t.setAttribute("data-skapa--pad",r);let o=t.clientWidth;t.classList.add(`${e}prevent-scroll-y`),o=t.clientWidth-o,t.style.top=`-${n}px`,o&&(t.style.paddingRight=`calc(${r||"0px"} + ${o}px)`),window.scrollTo(0,0)}})(n)};var rn=e=>{const{className:t,visible:n=!1,prefix:r="",children:o,handleCloseBtn:i,focusLockProps:l={},keepContentMounted:a=!1,escapable:c=!0,onModalClosed:s=()=>{},onModalOpened:u=()=>{},onKeyDown:_=()=>{},scrollLock:f=!0,...d}=e,[p,h]=ut.useState(n),[m,v]=ut.useState(!1),y=ut.useRef(-1),g=`${r}modal-wrapper`;ae((()=>{((e,t,n,r,o,i)=>{t!==r&&(t?nn(o,n,e):tn(o,i))})(r,n,f,p,h,v)}),[n]),ae((()=>(n&&nn(h,f,r),()=>{f&&en(r),cancelAnimationFrame(y.current)})),[]);const b=dt(g,p?`${g}--open`:`${g}--close`,t),k=dt(`${g}__backdrop`,`${g}__backdrop--dark`),E=ut.Children.map(o,(e=>ut.cloneElement(e,{open:p,closeBtnClick:i,prefix:r})));return ft("div",{...d,onKeyDown:e=>{_(e),((e,t,n,r,o,i)=>{(!e.target.closest||e.target.closest(`.${t}`)===e.currentTarget)&&n&&"Escape"===e.key&&(r&&r(e),tn(o,i))})(e,g,c,i,h,v)},className:b,tabIndex:-1,children:[ft("div",{className:k,onMouseDown:e=>{((e,t,n)=>{t&&e.target===e.currentTarget&&n(e)})(e,c,i)},onAnimationEnd:e=>{((e,t,n,r,o,i,l,a,c)=>{cancelAnimationFrame(t),n?r&&(t=requestAnimationFrame((()=>{r(e)}))):l&&(i&&en(c),a(!1),o&&(t=requestAnimationFrame((()=>{o(e)}))))})(e,y.current,p,u,s,f,m,v,r)}}),(a||p||m)&&ft(Zt,{prefix:r,autoFocus:!0,onEscaped:i,locked:p,capturePointerEvents:!1,...l,children:E})]})};const on=e=>{if(!e)return!1;return!Boolean(e.querySelectorAll("*[data-autofocus],*[autofocus]").length)};var ln=()=>{const e=se(null),[t,n]=ie(void 0);return ae((()=>{if(e.current){const t=e.current;n(on(t))}}),[]),[t,e]};const an=e=>{const{className:t="",fullSize:n=!1,prefix:r="",children:o,open:i=!1,closeBtnClick:l,header:a,alignment:c="right",preserveAlignment:s=!1,footer:u,size:_="small",describedById:f,labelledById:d,ariaLabel:p,contentAttributes:h,...m}=e,v=dt(`${r}sheets`,`${r}sheets--${_}`,n&&`${r}sheets--mobile-full-size`,"left"===c&&`${r}sheets--mirrored`,s&&`${r}sheets--preserve-alignment`,i?`${r}sheets--enter`:`${r}sheets--close`,t),y=a?ut.cloneElement(a,{closeBtnClick:l,prefix:r}):null,g=u&&ut.cloneElement(u,{prefix:r,closeBtnClick:l,stacked:"small"===_&&u.props.stacked})||null,b=ut.Children.map(o,(e=>ut.isValidElement(e)?ut.cloneElement(e,{prefix:r}):e)),[k,E]=ln();return ft("div",{"aria-describedby":f,"aria-labelledby":d,"aria-label":p,...m,className:v,"aria-modal":"true",role:"dialog",tabIndex:-1,children:[void 0!==k&&y,ft("div",{className:`${r}sheets__content-wrapper`,role:"document",tabIndex:0,...h,ref:E,"data-autofocus":k,children:b}),g]})};const cn=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m12 13.4142 4.9498 4.9497 1.4142-1.4142L13.4142 12l4.9498-4.9498-1.4142-1.4142L12 10.5857 7.0503 5.636 5.636 7.0502 10.5859 12l-4.9497 4.9497 1.4142 1.4142L12 13.4142z"}}],sn=cn;var un=()=>bt(sn);const _n=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m3.999 11.9997 8 8.0011 1.4143-1.4141-5.5859-5.5866H20v-2H7.8273l5.5871-5.5868-1.4142-1.4143-8.0012 8.0007z"}}],fn=_n;var dn=()=>bt(fn);const pn=e=>{const{title:t="",titleId:n="",prefix:r="",className:o="",closeBtnClick:i,ariaCloseTxt:l="Close",backBtnClick:a,ariaBackBtnTxt:c="Back",floating:s=!1,children:u,..._}=e,f=dt(`${r}modal-header__title-wrapper`,!a&&`${r}modal-header__title-wrapper--padded`);return ft("div",{className:dt(`${r}modal-header`,s&&`${r}modal-header--floating-header`,o),..._,children:[ft(Ct,{prefix:r,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:un,onClick:i,className:`${r}modal-header__close`,"aria-label":l}),!s&&(t||u)&&ft("div",{className:f,children:[t&&ft("h2",{id:n,className:`${r}modal-header__title`,children:t}),u]}),a&&ft(Ct,{prefix:r,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:dn,onClick:a,className:`${r}modal-header__back-button`,"aria-label":c})]})};const hn="75em",mn="56.25em",vn="37.5em";const yn={},gn=[],bn=()=>{let e;return e=yn.large.matches?wn.XLARGE:yn.medium.matches?wn.LARGE:yn.small.matches?wn.MEDIUM:wn.SMALL,e},kn=e=>Cn.indexOf(e),En=()=>{let e=bn();gn.forEach((({current:{breakpointStateSetter:t,triggerPoints:n}})=>t((t=>n.find((n=>kn(t){const[t,n]=ut.useState(),r=ut.useRef();return ut.useEffect((()=>(r.current={breakpointStateSetter:n,triggerPoints:e},e.length&&(gn.push(r),1===gn.length&&(yn.small||(yn.small=window.matchMedia(`(min-width: ${vn})`),yn.medium=window.matchMedia(`(min-width: ${mn})`),yn.large=window.matchMedia(`(min-width: ${hn})`),yn.all=[yn.small,yn.medium,yn.large]),yn.all.forEach((e=>yn.small.addEventListener?e.addEventListener("change",En):e.addListener(En)))),n(bn())),()=>{gn.indexOf(r)>-1&&gn.splice(gn.indexOf(r),1),0===gn.length&&(yn.all.forEach((e=>yn.small.removeEventListener?e.removeEventListener("change",En):e.removeListener(En))),yn.all.length=0,delete yn.all,Object.keys(yn).map((e=>delete yn[e])))})),e),t};const Sn=e=>{const{prefix:t="",children:n,closeBtnClick:r=()=>{},renderBorder:o=!1,className:i="",stacked:l=!1,reverse:a=!1,...c}=e;let s=Fe.toArray(n);s.length&&ut.isValidElement(s[0])&&s[0].type===k&&(s=Fe.toArray(s[0].props.children));const u=2===s.filter((e=>"string"!=typeof e)).length,_=xn("sm","md"),f=dt(`${t}modal-footer`,!o&&`${t}modal-footer--borderless`,u&&`${t}modal-footer--dual-action`,l&&`${t}modal-footer--stacked`,i),d=s.map(((e,n)=>{if(ut.isValidElement(e)){const o=e.props.onClick?t=>e.props.onClick&&e.props.onClick(t):e=>r(e);return ut.cloneElement(e,{prefix:t,size:"sm"===_?"small":"medium",key:n,onClick:o})}return e}));return ft("div",{className:f,...c,children:a?d.reverse():d})};const Nn=e=>{const{prefix:t="",children:n,className:r="",...o}=e;return ft("div",{...o,className:dt(`${t}modal-body`,r),children:n})};const Ln=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7467 18.1766C12.9482 19.7737 12.2151 20 12 20c-.2151 0-.9482-.2263-1.7467-1.8234-.3065-.6131-.5745-1.3473-.7831-2.1766h5.0596c-.2086.8293-.4766 1.5635-.7831 2.1766zM14.8885 14h-5.777A17.7354 17.7354 0 0 1 9 12c0-.6949.0392-1.3641.1115-2h5.777c.0723.6359.1115 1.3051.1115 2 0 .6949-.0392 1.3641-.1115 2zm1.6955 2c-.2658 1.2166-.6492 2.307-1.1213 3.2138A8.0347 8.0347 0 0 0 18.9297 16H16.584zm3.164-2H16.9c.0656-.6462.1-1.3151.1-2 0-.6849-.0344-1.3538-.1-2h2.848A8.0156 8.0156 0 0 1 20 12a8.0156 8.0156 0 0 1-.252 2zm-.8183-6a8.035 8.035 0 0 0-3.467-3.2138c.4721.9068.8555 1.9972 1.1213 3.2138h2.3457zm-4.3999 0c-.2086-.8293-.4766-1.5635-.7831-2.1766C12.9482 4.2264 12.2151 4 12 4c-.2151 0-.9482.2263-1.7467 1.8234-.3065.613-.5745 1.3473-.7831 2.1766h5.0596zM7.416 8c.2658-1.2166.6491-2.307 1.1213-3.2138A8.035 8.035 0 0 0 5.0703 8H7.416zm-3.164 2A8.0147 8.0147 0 0 0 4 12c0 .6906.0875 1.3608.252 2H7.1a19.829 19.829 0 0 1-.1-2c0-.6849.0344-1.3538.1-2H4.252zm3.164 6H5.0704a8.0347 8.0347 0 0 0 3.467 3.2138C8.0651 18.307 7.6818 17.2166 7.4161 16zM22 12c0-5.5229-4.4772-10-10-10C6.4771 2 2 6.4771 2 12c0 5.5228 4.4771 10 10 10 5.5228 0 10-4.4772 10-10z"}}],An=Ln;var $n=()=>bt(An);const On=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)},Tn=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0;const l={event_category:r,event_action:e(),event_label:t,transport_type:n||"",non_interaction:o};return i&&(l.custom=i),l};var Pn=n(8448),Rn=n.n(Pn);const Mn=/\.ikea(dt)?\.(com|cn)/,Fn=new RegExp("-(s?[0-9]{8})/?"),Dn=/\/[a-z]{2}\/[a-z]{2}\/?/,In=(e,t,n)=>{let r=e,o=t;if(Mn.test(window.location.host)&&e){const t=(e=>{const t=document.createElement("a");return t.href=e,t.pathname})(e);t&&!t.match(Dn)&&(o=""),r=`${window.location.origin}${t||""}`}return r+o+n},Hn=e=>{let{languages:t,localeStrings:n,ecomMarket:r}=e;const o=e=>{On(Tn((()=>"switch_language"),"switch language in menu","beacon","site_navigation")),function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=location.hostname.split(".");t.shift();const n=`.${t.join(".")}`,r=location.pathname.substr(0,3),o=new Date;o.setFullYear(o.getFullYear()+1),Rn().set("ikeaLangRedirect","1",n.length>1?n:void 0,r,e?o:"")}(),window.location.href=(e=>{const t=window.location.pathname,n=window.location.search;let r;const o=t.match(Fn);return r=o?`p/-${o.filter((e=>e)).pop()}/`:t.substring(7),In(e,r,n)})(e)};return ut.createElement("div",{class:"hnf-localisation-picker"},t?.length>1&&ut.createElement(ut.Fragment,null,ut.createElement("span",{className:"hnf-text--heading-m"},n.LOCALISATION_SELECT_LANGUAGE),ut.createElement("div",{className:"hnf-localisation-picker__languages"},t.map(((e,t)=>ut.createElement(Ct,{prefix:"hnf-",text:e.language,type:"secondary",size:"small",disabled:0===t,onClick:()=>o(e.homeUrl)}))))),ut.createElement("span",{className:"hnf-text--heading-s"},n.LOCALISATION_CURRENT_STORE_HEADING),ut.createElement("a",{class:"hnf-localisation-picker__iconlink",href:"https://www.ikea.com/",onClick:()=>On(Tn((()=>"switch_site"),"switch country in menu","beacon","site_navigation"))},ut.createElement(mt,{paths:$n}),ut.createElement("span",null,n.LOCALISATION_CHANGE_COUNTRY_LINK)),r&&ut.createElement("p",{className:"hnf-localisation-picker__disclaimer"},n.LOCALISATION_CHANGE_COUNTRY_DISCLAIMER))};const Un=e=>{if(" "!==e.key)return!0;e.preventDefault(),e.target.click()};const Bn=e=>{let{languages:t,localeStrings:n,ecomMarket:r,alignment:o}=e;const[i,l]=ie(!1),a=()=>{l(!1)};return ae((()=>{l(!0);const e=document.querySelector(".hnf-utilities__localisation-button");e?.querySelector("a")?.addEventListener("click",(e=>{e.preventDefault(),l(!0)})),e?.addEventListener("keydown",Un),document.querySelector(".hnf-footer")?.addEventListener("click",(e=>{e.target.closest(".hnf-footer__localisation-button")&&(e.preventDefault(),l(!0))})),window.ikea?.pubsub.subscribe("NAVIGATION/CLOSE_MODALS",(()=>{a()}))}),[]),ut.createElement(rn,{prefix:"hnf-",visible:i,handleCloseBtn:a,keepContentMounted:!0,className:"hnf-localisation-picker-modal"},ut.createElement(an,{fullSize:!0,alignment:o,header:ut.createElement(pn,{ariaCloseTxt:n.LOCALISATION_CLOSE_MODAL}),footer:ut.createElement(Sn,{stacked:!0,renderBorder:!0},ut.createElement(Ct,{key:"cancel",text:n.LOCALISATION_CANCEL_MODAL,type:"primary"}))},ut.createElement(Nn,null,ut.createElement(Hn,{languages:t,localeStrings:n,inMobileMenu:!1,ecomMarket:r}))))};var zn=n(1828);const Wn=document.querySelector(".hnf-utilities__localisation-button"),qn=e=>{if(e.target.closest(".hnf-footer")&&!e.target.closest(".hnf-footer__localisation-button"))return;e.preventDefault(),Wn.querySelector("a")?.removeEventListener("click",qn),Wn.querySelector("a")?.removeEventListener("keydown",Un),document.querySelector(".hnf-footer")?.removeEventListener("click",qn);const t=(0,zn.createElement)("div","localisation-picker-wrapper");document.body.appendChild(t);const n=JSON.parse(Wn.getAttribute("data-props"));z(g(Bn,{languages:n.languages,localeStrings:n.localeStrings,ecomMarket:n.ecomMarket,alignment:n.alignment}),t)},Kn=Wn?.querySelector("a");Kn?.addEventListener("click",qn),Kn?.addEventListener("keydown",Un),document.querySelector(".hnf-footer")?.addEventListener("click",qn)})()})();