(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(48972)}])},37450:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(11720),o=n(15621),i=n(32360),a=n(42352),c=o.renderToString(r.default.createElement(i.Z)),l=o.renderToString(r.default.createElement(a.Z)),s={selector:".custom-carousel",isMobile:!1,slideSelector:".slide",arrowLeftCustomComponent:c,arrowRightCustomComponent:l,arrowLeftCustomAbsoluteStyle:{top:"50%"},arrowRightCustomAbsoluteStyle:{top:"50%"}},u=function(t){d(t),f(t)},d=function(t){var e;return null===(e=null===t||void 0===t?void 0:t.querySelector(".carousel-arrow-right"))||void 0===e?void 0:e.remove()},f=function(t){var e;return null===(e=null===t||void 0===t?void 0:t.querySelector(".carousel-arrow-left"))||void 0===e?void 0:e.remove()},v=n(18561),p=function(t,e){var n=(0,r.useState)(!0),o=n[0],i=n[1],a=(0,r.useState)(!0),d=a[0],f=a[1],p=(0,r.useRef)(0),m=e||s,_=m.selector,h=m.isMobile,g=m.slideSelector,y=m.arrowLeftCustomComponent,C=void 0===y?c:y,w=m.arrowRightCustomComponent,b=void 0===w?l:w,k=m.revalidate,S=(0,r.useCallback)((function(t){var e=t.target;0!==e.scrollLeft?Math.trunc(e.offsetWidth+e.scrollLeft+1)>=Math.trunc(e.scrollWidth)?f(!0):(i(!1),f(!1)):i(!0)}),[]),L=(0,r.useCallback)((function(){var t=document.querySelector(".carousel-arrow-right svg");t&&0===p.current&&(t.style.display="inline-block",p.current++)}),[]),Z=(0,r.useCallback)((function(){var t=document.querySelector(_);t&&f(t.offsetWidth===t.scrollWidth)}),[_]);(0,r.useEffect)((function(){i(!0),f(!1)}),[k]),(0,r.useEffect)((function(){return Z(),window.addEventListener("resize",Z),function(){return window.removeEventListener("resize",Z)}}),[Z,t,_]),(0,r.useEffect)((function(){var t=document.querySelector(_),n=document.querySelector(g),r=document.querySelectorAll(g);if(t&&n)return t.addEventListener("scroll",S),r.forEach((function(t){return t.addEventListener("click",L)})),(0,v.f)(".slick-slider",(function(){var t=document.querySelector(".slick-next"),e=document.querySelector(".slick-prev");t&&e&&(e.innerHTML=C,t.innerHTML=b)})),(0,v.f)(_,(function(){if(t&&n&&h){u(t),t.classList.add("relative");var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=e.arrowLeftCustomAbsoluteStyle,r=e.arrowLeftCustomComponent,o=void 0===r?c:r,i=document.createElement("div");return i.innerHTML=o,i.classList.add("carousel-arrow-left","sticky","w-min-content","z-10"),i.classList.toggle("hidden",t),i.style.top=n.top||"",i.style.bottom=n.bottom||"",i.style.left=n.left||"",i.style.right=n.right||"",i}(o,e),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=e.arrowRightCustomAbsoluteStyle,r=e.arrowRightCustomComponent,o=void 0===r?l:r,i=document.createElement("div");return i.innerHTML=o,i.classList.add("carousel-arrow-right","sticky","w-min-content","z-10"),i.classList.toggle("hidden",t),i.style.top=n.top||"",i.style.bottom=n.bottom||"",i.style.left=n.left||"",i.style.right=n.right||"",i}(d,e);i.onclick=function(){return e=n,void(t.scrollLeft+=e.clientWidth);var e},r.onclick=function(){return e=n,void(t.scrollLeft-=e.clientWidth);var e},t.append(r,i)}else u(t)})),function(){t.removeEventListener("scroll",S),r.forEach((function(t){return t.removeEventListener("click",L)}))}}),[t,null===e||void 0===e?void 0:e.isMobile,o,d,_,k])}},15025:function(t,e,n){"use strict";n.d(e,{S:function(){return a}});var r=n(55464),o=n(11720),i=n(79736);var a=function(t,e,n){var a,c=(0,r.a)("\n query getCMSPage($identifier: String!) {\n cmsPage(identifier: $identifier) {\n title\n identifier\n content\n url_key\n meta_title\n meta_description\n }\n }\n",{identifier:t},e,n),l=c.data,s=c.error,u=c.isValidating;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{threshold:.3},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".smooth";(0,i.A)()&&(t.threshold=.2),o.default.useEffect((function(){var n=new IntersectionObserver((function(t){var e=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){var c=i.value;c.target.classList.toggle("show",c.isIntersecting),c.isIntersecting&&n.unobserve(c.target)}}catch(l){r=!0,o=l}finally{try{e||null==a.return||a.return()}finally{if(r)throw o}}}),t);return document.querySelectorAll(e).forEach((function(t){n.observe(t)})),function(){return n.disconnect()}}),[t,e])}(),{cmsPage:null===l||void 0===l||null===(a=l.data)||void 0===a?void 0:a.cmsPage,isValidating:u,error:s}}},49736:function(t,e,n){"use strict";var r=n(11720);e.Z=function(t){var e=t.isValidating,n=t.currentIdentifier,o=t.targetIdentifier,i=t.sectionClassName;(0,r.useLayoutEffect)((function(){e||n!==o||function(t){var e=document.getElementsByClassName(t),n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var c=i.value,l=!0,s=!1,u=void 0;try{for(var d,f=c.classList[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var v=d.value;if(v.includes("id-")){c.setAttribute("id",v);break}}}catch(p){s=!0,u=p}finally{try{l||null==f.return||f.return()}finally{if(s)throw u}}}}catch(p){r=!0,o=p}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}(i)}),[n,e,i,o])}},48972:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return J},default:function(){return K}});var r=n(97997),o=n(11720),i=n(55184),a=n(1965),c=n(15025),l=n(29815),s=function(t){var e=t.selector,n=t.isLoadingElements,r=t.children,i=(0,o.useState)(),a=i[0],c=i[1];return(0,o.useEffect)((function(){if(!n){var t=document.querySelectorAll(e);c(t)}}),[n]),a?(0,l.Z)(a).map((function(t){var e,n=(0,o.cloneElement)(r);return e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cms-block-id-",n=null;return t.forEach((function(t){t.includes(e)&&(n=t.split(e)[1])})),n}(t.classList,"cms-block-id-"),e&&(n.props.className="".concat(r.props.className," cms-block-id-").concat(e),n.props.cmsBlockId=e),(0,o.createPortal)(n,t)})):null},u=(0,o.memo)(s),d=n(50349),f=n(47568),v=n(20414),p=n(11163),m=n.n(p),_=n(24475),h=n(28485),g=function(){var t=(0,f.Z)((function(t){var e;return(0,v.__generator)(this,(function(n){switch(n.label){case 0:return e=t.cartId,[4,(0,h.J)({query:"\n mutation recoveryCustomerCart($cartId: String!) {\n cart_id: recoveryCustomerCart(cartId: $cartId) {\n cart_id\n }\n }\n",variables:{cartId:e}})];case 1:return[2,n.sent()]}}))}));return function(e){return t.apply(this,arguments)}}(),y=n(69029),C=n(60025),w=n(79736),b=n(9008),k=n.n(b),S=n(49736),L=n(40872),Z=n(26042),x=n(69396),I=function(t){var e=(0,L.Z)({},t);return(0,r.BX)("svg",(0,x.Z)((0,Z.Z)({width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,r.tZ)("path",{d:"M22.5159 3.12426C22.727 3.13081 22.9585 3.1439 23.1219 3.28139C23.3194 3.44507 23.3534 3.72659 23.3602 3.98192C23.4351 6.14242 23.2036 8.30292 22.6725 10.4045C22.5976 10.6991 22.5159 11.0003 22.332 11.2425C21.869 11.8579 20.9634 11.943 20.1735 11.9758C17.7495 12.0609 13.7662 12.1395 11.3489 11.9627C10.7089 11.9169 9.87134 11.9692 9.6875 12.565C9.56493 12.9709 9.87134 13.403 10.2663 13.5863C10.6612 13.7697 11.6349 13.7238 12.0775 13.7369C13.8547 13.7893 19.7582 13.6191 20.6842 13.7435C20.8817 13.7697 21.1609 13.8286 21.3107 13.9792C21.4877 14.1625 21.4877 14.4898 21.3719 14.7059C21.1677 15.0856 19.4722 15.0987 19.1454 15.1118C17.695 15.1903 14.6922 15.2296 13.235 15.2689C12.2205 15.2951 11.2059 15.3344 10.1914 15.3213C9.52408 15.3147 9.35385 15.2296 9.17 15.0987C8.89764 14.9023 8.88402 14.4898 8.68655 13.7893C8.51633 13.1739 6.89576 7.66132 6.45997 6.24063C6.031 4.83302 5.24114 3.13736 3.70909 3.08498C3.4163 3.07843 3.11669 3.13736 2.83071 3.06534C2.55154 2.99987 2.27917 2.73799 2.35407 2.46302C2.39493 2.30589 2.53792 2.19459 2.68091 2.10948C4.02912 1.29766 4.96197 2.05711 6.07866 2.65943C7.42006 3.3796 8.30524 3.22901 9.95986 3.16355C13.6232 3.01951 18.8526 3.00642 22.5159 3.12426Z",stroke:"#696158"}),(0,r.tZ)("path",{d:"M11.7506 19.3543C11.1038 19.4852 10.4705 19.243 10.062 18.765C9.44915 18.0318 9.55128 16.873 10.3548 16.2903C10.9335 15.8713 11.7983 15.9498 12.4043 16.2837C13.8274 17.0759 13.2895 19.0466 11.7506 19.3543Z",stroke:"#696158"}),(0,r.tZ)("path",{d:"M19.9828 19.1709C20.548 18.896 20.8476 18.274 20.8476 17.6782C20.8476 17.4033 20.7863 17.0759 20.6297 16.8402C20.3437 16.4016 19.7513 16.0219 19.2134 15.976C18.6346 15.9302 18.0967 16.107 17.7426 16.5522C17.4294 16.945 17.3001 17.4622 17.409 17.9467C17.6405 18.9942 19.0023 19.6554 19.9828 19.1709Z",stroke:"#696158"})]}))},M=n(24609),E=n.n(M),N=n(13900),P=n.n(N),Y=n(94184),O=n.n(Y),A=n(81378),H=n(84527),T=n(88758),V=n(17325),R=n(14924),q=n(90591),B=n.n(q),j=function(t){var e=t.content;return(0,r.tZ)(a.w,{html:e})},F=function(t){var e=t.setShowCMSBlockContent,n=t.showCMSBlockContent,i=t.cmsBlockContent,c=t.className,l=(0,w.A)(),s=(0,T.iy)(),u=(0,o.useRef)(null);return(0,V.t)(u,(function(){return e(!1)})),function(t,e){var n=(0,o.useState)({}),r=n[0],i=n[1];(0,o.useEffect)((function(){var n=function(n){var o=n.code;r[o]||(i((0,x.Z)((0,Z.Z)({},r),(0,R.Z)({},o,!0))),t.find((function(t){return t===o}))&&e(n))},o=function(){i({})};return document.addEventListener("keydown",n),document.addEventListener("keyup",o),function(){document.removeEventListener("keydown",n),document.removeEventListener("keyup",o)}}),[t,e,r])}(["Escape"],(function(){return e(!1)})),(0,o.useEffect)((function(){l&&n&&(null===s||void 0===s||s.modalOpen((0,r.tZ)(j,{content:i}),(function(){return e(!1)})))}),[n]),(0,o.useEffect)((function(){if(l)return m().events.on("routeChangeStart",(function(){return s.modalClose()})),function(){m().events.off("routeChangeStart",(function(){return s.modalClose()}))}}),[l]),(0,r.tZ)("nav",{className:O()(B().root,n?"inherit":"hidden",c),children:!l&&(0,r.BX)(r.HY,{children:[(0,r.tZ)("div",{"aria-hidden":"true",onClick:function(){return e(!1)},className:B()["close-button"],children:(0,r.tZ)(H.X1,{width:"20",height:"20"})}),(0,r.tZ)("div",{ref:u,className:O()(B()["dropdown-content"],"animate-fade-in-up"),children:(0,r.tZ)("div",{className:B()["dropdown-content-container"],children:(0,r.tZ)(a.w,{html:i})})})]})})};F.displayName="ProductsTooltip";var X=F,W=function(t){var e,n=t.position,i=t.className,a=t.cmsBlockId,c=(0,o.useState)(!1),l=c[0],s=c[1],u=(0,o.useState)(""),d=u[0],f=u[1],v=(0,A.g)([a||""],{revalidateOnMount:!0,revalidateOnFocus:!1}).items;v&&null!==v&&(null===v||void 0===v?void 0:v.length)>0&&void 0!==v[0]&&void 0!==(null===(e=v[0])||void 0===e?void 0:e.content)&&f(v[0].content||"");return(0,r.BX)(r.HY,{children:[(0,r.tZ)(X,{setShowCMSBlockContent:s,showCMSBlockContent:l,cmsBlockContent:d,setCMSBlockContent:f,position:"bottom-left-p15"}),(0,r.tZ)("div",{"aria-hidden":"true",onClick:function(){s(!l)},className:O()(E()["button-outer-expanded"],E()["button-outer"],P()[n],i),children:(0,r.tZ)("div",{className:O()(E()["button-inner-expanded"],E()["button-inner"]),children:(0,r.tZ)(I,{width:"24",height:"20"})})})]})};W.displayName="ProductListIcon";var D=W,$=n(37450),U=n(96753),z=n.n(U),G="home",J=!0;function K(t){var e=t.cmsPageData,n=(0,w.A)(),i=(0,c.S)(G,{revalidateOnFocus:!1,revalidateOnMount:!0,initialData:e}),l=i.cmsPage,s=void 0===l?e:l,f=i.isValidating;(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"hero-banner"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"huincha-promo"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"slide-espacios-de-la-casa"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"banner-dinamico"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"carrusel-exponea"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"titulo-collage"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"collage-inspiracion"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"banner-comercial-1"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"nc-destacada"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"banner-evento-precio"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"banners-nc-colores"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"banner-comercial-2"}),(0,S.Z)({isValidating:f,currentIdentifier:G,targetIdentifier:G,sectionClassName:"banner-tour-virtual"}),(0,$.Z)(f,{isMobile:n,selector:".casaideas-carousel",slideSelector:".casaideas-carousel-slide",arrowLeftCustomAbsoluteStyle:{bottom:"50%",left:"0"},arrowRightCustomAbsoluteStyle:{bottom:"50%",left:"calc(100% - 45px)"}}),function(){var t=(0,p.useRouter)(),e=(0,_.l8)(),n=e.openCartToast,r=e.toggleSidebar;(0,o.useEffect)((function(){if(t.isReady){var e=t.query.retrieveCart;if(e){var o=e.toString();g({cartId:o}).then((function(e){var o,i,a=null===(o=e.data)||void 0===o||null===(i=o.cart_id)||void 0===i?void 0:i.cart_id;localStorage.getItem("cart_id")!=a&&localStorage.setItem("cart_id",a),setTimeout((function(){r(),n("Carrito recuperado con \xe9xito",_.pC.Success)}),1e3),t.replace("/")})).catch((function(t){return console.log(t)}))}}}),[t,t.isReady])}(),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".btn-promo",n=(0,y.IP)(),r=(0,o.useCallback)((function(t){var e=t.querySelector("a");if(e){var r=new URLSearchParams(new URL(e.href).search);return n({type:"PROMOTION_CLICK",data:{items:[{id:r.get("promotionId"),name:r.get("promotionName")}]}}),!1}}),[n]);(0,o.useEffect)((function(){var t=document.querySelectorAll(e);return t.forEach((function(t){t.addEventListener("click",(function(){return r(t)}))})),function(){return t.forEach((function(t){return t.removeEventListener("click",(function(){return r(t)}))}))}}),[r,e,t])}(f);var v=!f&&!!s;return(0,r.BX)(r.HY,{children:[(0,r.BX)(k(),{children:[(0,r.tZ)("link",{"data-react-helmet":"true",rel:"canonical",href:"https://www.casaideas.cl/"}),(0,r.tZ)("link",{"data-react-helmet":"true",rel:"alternate",href:"https://www.casaideas.com/",hrefLang:"x-default"}),(0,r.tZ)("link",{"data-react-helmet":"true",rel:"alternate",href:"https://www.casaideas.cl/",hrefLang:"es-cl"}),(0,r.tZ)("link",{"data-react-helmet":"true",rel:"alternate",href:"https://www.casaideas.com.pe/",hrefLang:"es-pe"}),(0,r.tZ)("link",{"data-react-helmet":"true",rel:"alternate",href:"https://www.casaideas.com.co/",hrefLang:"es-co"}),(0,r.tZ)("link",{"data-react-helmet":"true",rel:"alternate",href:"https://www.casaideas.com.bo/",hrefLang:"es-bo"}),(0,r.tZ)("link",{"data-react-helmet":"true",rel:"alternate",href:"https://www.casaideas-mexico.mx/",hrefLang:"es-mx"})]}),(0,r.BX)("div",{className:z().homepage,children:[(0,r.tZ)(d.HJ,{preloadImages:{images:[null===s||void 0===s?void 0:s.content]},page:d.Gy.HOME,cmsPage:s}),(0,r.tZ)(a.w,{html:(0,C.u)(null===s||void 0===s?void 0:s.content)}),(0,r.tZ)(u,{isLoadingElements:v,selector:".shopping-cart-list",children:(0,r.tZ)(D,{position:"bottom-left-p15"})})]})]})}K.Layout=i.Ar},24609:function(t){t.exports={"button-outer-expanded":"ProductListIcon_button-outer-expanded__dXOCk","width-increase":"ProductListIcon_width-increase__k_4Qu","appear-content":"ProductListIcon_appear-content__7VUKk","button-inner-expanded":"ProductListIcon_button-inner-expanded__UovY4","button-outer":"ProductListIcon_button-outer__GLvYD","button-inner":"ProductListIcon_button-inner__u37sq"}},90591:function(t){t.exports={"dropdown-content":"ProductList_dropdown-content__j7Xf0","dropdown-content-container":"ProductList_dropdown-content-container__f_mI5","close-button":"ProductList_close-button__JBCrW",root:"ProductList_root__bRsDi","select-icon":"ProductList_select-icon___dNRE","dropdown-button":"ProductList_dropdown-button__jDvKt",list:"ProductList_list__F3sgf",item:"ProductList_item__Y2Jg7",save:"ProductList_save__Ylm6L","product-list":"ProductList_product-list__p9Ls0","product-tiny-image":"ProductList_product-tiny-image__nolZV"}},13900:function(t){t.exports={"bottom-left-p15":"Positioning_bottom-left-p15__rXQ3H",glow:"Positioning_glow__nk1GV"}},96753:function(t){t.exports={homepage:"page-styles_homepage__f3fol"}},57649:function(t,e,n){"use strict";n.r(e),n.d(e,{render:function(){return S},renderToStaticMarkup:function(){return S},renderToString:function(){return S},shallowRender:function(){return b}});var r=n(6400),o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,a=/[\s\n\\/='"\0<>]/,c=/^xlink:?./,l=/["&<]/;function s(t){if(!1===l.test(t+=""))return t;for(var e=0,n=0,r="",o="";n(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={},v=/([A-Z])/g;function p(t){var e="";for(var n in t){var r=t[n];null!=r&&""!==r&&(e&&(e+=" "),e+="-"==n[0]?n:f[n]||(f[n]=n.replace(v,"-$1").toLowerCase()),e="number"==typeof r&&!1===o.test(n)?e+": "+r+"px;":e+": "+r+";")}return e||void 0}function m(t,e){return Array.isArray(e)?e.reduce(m,t):null!=e&&!1!==e&&t.push(e),t}function _(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:_,forceUpdate:_,__d:!0,__h:[]}}function g(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var y=[];function C(t,e,n,o,l,f){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t);var v=n.pretty,_=v&&"string"==typeof v?v:"\t";if(Array.isArray(t)){for(var w="",b=0;b0&&(w+="\n"),w+=C(t[b],e,n,o,l,f);return w}if(void 0!==t.constructor)return"";var k,S=t.type,L=t.props,Z=!1;if("function"==typeof S){if(Z=!0,!n.shallow||!o&&!1!==n.renderRootComponent){if(S===r.HY){var x=[];return m(x,t.props.children),C(x,e,n,!1!==n.shallowHighOrder,l,f)}var I,M=t.__c=h(t,e);r.YM.__b&&r.YM.__b(t);var E=r.YM.__r;if(S.prototype&&"function"==typeof S.prototype.render){var N=g(S,e);(M=t.__c=new S(L,N)).__v=t,M._dirty=M.__d=!0,M.props=L,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=N,S.getDerivedStateFromProps?M.state=Object.assign({},M.state,S.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),E&&E(t),I=M.render(M.props,M.state,M.context)}else for(var P=g(S,e),Y=0;M.__d&&Y++<25;)M.__d=!1,E&&E(t),I=S.call(t.__c,L,P);return M.getChildContext&&(e=Object.assign({},e,M.getChildContext())),r.YM.diffed&&r.YM.diffed(t),C(I,e,n,!1!==n.shallowHighOrder,l,f)}S=(k=S).displayName||k!==Function&&k.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=y.length;r--;)if(y[r]===t){n=r;break}n<0&&(n=y.push(t)-1),e="UnnamedComponent"+n}return e}(k)}var O,A,H="<"+S;if(L){var T=Object.keys(L);n&&!0===n.sortAttributes&&T.sort();for(var V=0;V",a.test(S))throw new Error(S+" is not a valid HTML tag name in "+H);var F,X=i.test(S)||n.voidElements&&n.voidElements.test(S),W=[];if(A)v&&d(A)&&(A="\n"+_+u(A,_)),H+=A;else if(null!=O&&m(F=[],O).length){for(var D=v&&~H.indexOf("\n"),$=!1,U=0;U0&&"<"!=G[0];$&&J?W[W.length-1]+=G:W.push(G),$=J}else W.push(G)}}if(v&&D)for(var K=W.length;K--;)W[K]="\n"+_+u(W[K],_)}if(W.length||A)H+=W.join("");else if(n&&n.xml)return H.substring(0,H.length-1)+" />";return!X||F||A?(v&&~H.indexOf("\n")&&(H+="\n"),H=H+""):H=H.replace(/>$/," />"),H}var w={shallow:!0};S.render=S;var b=function(t,e){return S(t,e,w)},k=[];function S(t,e,n){e=e||{};var o=r.YM.__s;r.YM.__s=!0;var i,a=(0,r.h)(r.HY,null);return a.__k=[t],i=n&&(n.pretty||n.voidElements||n.sortAttributes||n.shallow||n.allAttributes||n.xml||n.attributeHook)?C(t,e,n):E(t,e,!1,void 0,a),r.YM.__c&&r.YM.__c(t,k),r.YM.__s=o,k.length=0,i}function L(t){return null==t||"boolean"==typeof t?null:"string"==typeof t||"number"==typeof t||"bigint"==typeof t?(0,r.h)(null,null,t):t}function Z(t,e){return"className"===t?"class":"htmlFor"===t?"for":"defaultValue"===t?"value":"defaultChecked"===t?"checked":"defaultSelected"===t?"selected":e&&c.test(t)?t.toLowerCase().replace(/^xlink:?/,"xlink:"):t}function x(t,e){return"style"===t&&null!=e&&"object"==typeof e?p(e):"a"===t[0]&&"r"===t[1]&&"boolean"==typeof e?String(e):e}var I=Array.isArray,M=Object.assign;function E(t,e,n,o,c){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t);if(I(t)){var l="";c.__k=t;for(var u=0;u",a.test(d))throw new Error(d+" is not a valid HTML tag name in "+C);var S="",N=!1;if(y)S+=y,N=!0;else if("string"==typeof _)S+=s(_),N=!0;else if(I(_)){t.__k=_;for(var P=0;P<_.length;P++){var Y=_[P];if(_[P]=L(Y),null!=Y&&!1!==Y){var O=E(Y,e,"svg"===d||"foreignObject"!==d&&n,o,t);O&&(S+=O,N=!0)}}}else if(null!=_&&!1!==_&&!0!==_){t.__k=[L(_)];var A=E(_,e,"svg"===d||"foreignObject"!==d&&n,o,t);A&&(S+=A,N=!0)}if(r.YM.diffed&&r.YM.diffed(t),t.__=void 0,r.YM.unmount&&r.YM.unmount(t),N)C+=S;else if(i.test(d))return k+" />";return C+""}S.shallowRender=b,e.default=S},15621:function(t,e,n){var r;try{const t=n(57649);r=t.default||t.renderToString||t}catch(o){throw Error('renderToString() error: missing "preact-render-to-string" dependency.')}t.exports={renderToString:r,renderToStaticMarkup:r}}},function(t){t.O(0,[2888,179],(function(){return e=48312,t(t.s=e);var e}));var e=t.O();_N_E=e}]);