diff --git a/assets/Banner1-DDwKL5iZ.png b/assets/Banner1-DDwKL5iZ.png new file mode 100644 index 0000000..60ff050 Binary files /dev/null and b/assets/Banner1-DDwKL5iZ.png differ diff --git a/assets/Banner2-83rkiGIU.png b/assets/Banner2-83rkiGIU.png new file mode 100644 index 0000000..c3fd875 Binary files /dev/null and b/assets/Banner2-83rkiGIU.png differ diff --git a/assets/Banner3-Iok0f4Lz.webp b/assets/Banner3-Iok0f4Lz.webp new file mode 100644 index 0000000..2e87598 Binary files /dev/null and b/assets/Banner3-Iok0f4Lz.webp differ diff --git a/assets/Logo-BeBEg1s_.png b/assets/Logo-BeBEg1s_.png new file mode 100644 index 0000000..195f3bc Binary files /dev/null and b/assets/Logo-BeBEg1s_.png differ diff --git a/assets/PhonesCategory1-B_yITRgA.png b/assets/PhonesCategory1-B_yITRgA.png new file mode 100644 index 0000000..bfd4677 Binary files /dev/null and b/assets/PhonesCategory1-B_yITRgA.png differ diff --git a/assets/PhonesCategory2-BC4M3fZ3.png b/assets/PhonesCategory2-BC4M3fZ3.png new file mode 100644 index 0000000..175ca60 Binary files /dev/null and b/assets/PhonesCategory2-BC4M3fZ3.png differ diff --git a/assets/PhonesCategory3-BYy9d9wt.png b/assets/PhonesCategory3-BYy9d9wt.png new file mode 100644 index 0000000..0158d84 Binary files /dev/null and b/assets/PhonesCategory3-BYy9d9wt.png differ diff --git a/assets/banerPhone-D89YJH_q.png b/assets/banerPhone-D89YJH_q.png new file mode 100644 index 0000000..1f79162 Binary files /dev/null and b/assets/banerPhone-D89YJH_q.png differ diff --git a/assets/banerPhone2-H0pZriSA.png b/assets/banerPhone2-H0pZriSA.png new file mode 100644 index 0000000..c994e30 Binary files /dev/null and b/assets/banerPhone2-H0pZriSA.png differ diff --git a/assets/banerPhone3-BbpatcCZ.png b/assets/banerPhone3-BbpatcCZ.png new file mode 100644 index 0000000..dfcf902 Binary files /dev/null and b/assets/banerPhone3-BbpatcCZ.png differ diff --git a/assets/index-CaYxZ98U.css b/assets/index-CaYxZ98U.css new file mode 100644 index 0000000..350ae89 --- /dev/null +++ b/assets/index-CaYxZ98U.css @@ -0,0 +1 @@ +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap";#_root_lheha_1{min-height:100%;display:flex;flex-direction:column}._main_lheha_14{flex:1 1 auto}._footer_lheha_18{padding:0;text-align:center}._nav_lheha_23{display:flex;flex-direction:column;gap:24px;padding-top:24px;align-items:center;justify-content:flex-start}@media (min-width: 640px){._nav_lheha_23{display:flex;align-items:center;height:48px;gap:0;flex-direction:row;padding-top:0}}@media (min-width: 1200px){._nav_lheha_23{height:64px}}._nav__icon_lheha_46{display:flex;align-items:center;height:100%;position:relative;text-decoration:none;text-transform:uppercase;font-weight:800;font-size:.8571428571rem;line-height:11px;letter-spacing:.04em;color:#89939a;cursor:pointer}._nav__icon_lheha_46:hover{color:#0f0f11}@media (min-width: 640px){._nav__icon_lheha_46:not(:last-child){margin-right:36px}}@media (min-width: 1200px){._nav__icon_lheha_46:not(:last-child){margin-right:64px}}._nav__icon--active_lheha_73:after{content:"";position:absolute;display:block;width:100%;height:3px;bottom:-8px;background-color:#000}@media (min-width: 640px){._nav__icon--active_lheha_73:after{bottom:0}}#_root_umq26_1{min-height:100%;display:flex;flex-direction:column}._main_umq26_14{flex:1 1 auto}._footer_umq26_18{padding:0;text-align:center}._header_umq26_23{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e6e9;position:relative;background-color:#fff;z-index:5}._header__menu_umq26_32{display:flex;align-items:center}._header__logo_umq26_36{width:64px;height:20px;margin-right:32px;margin-left:16px}@media (min-width: 1200px){._header__logo_umq26_36{width:80px;height:28px;margin-right:48px;margin-left:24px}}._header__icons_umq26_50{display:flex}._header__icons--like_umq26_53{display:none;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIXSURBVHgB7ZffbcIwEMbPKUhISOBuEDaACQoTtJ0AOkHZoDABMEHbDdoJSCdoOkEzQWtAPCChuHfgBCv/SNzkqb0XHPu+fD87PicA/PVgWYPNJu9aFnTVpfB98LZb4WZpGg1u1+vQz6uJAXAM37fuGZNjukzQeL4vp5uNeIroRlKyITb7SRocm6/XX4tMALyJjYlLbNpwPhyEvKMGah5TjGMgqBkIIbwYQLK5dKSEV3wMtJQ2Y3CFkr5+Q/Ub1Xygxk3T6BAhQLt9+andyKXZYVLs2SHoDYLOIL5KntI4CZro5Ci3h7nCUgmjyOAgyZwC+19oXJu9rnFSNAdDTWPjPqM9dlwBffaY2NGfUVposxKouc2p6SvNAXq1+u4w7Oxi57vqdLBzABVGu82XwZ7Y7aRt7fenUpNSvkHFQRs0aON50bNqtVwlV2YIrc1pE2qbzeJQfYQeFxfgEYAXdOBmGkLFwRi71i5di2qRDg/VwVstPoaKIlLuTngO4Gk1hRPhA1UGlByq2mYnH3l4LxwA6ABB4+cgl2q1TAhlTvXPj+ZsQQdaCHAMn5beLRsian708CfBePRtyFVy+A2QdSybmKv7iUSAMiHymCcClAGR1zwV4DcQRcwzAUwgipqfBSgCYWKeCyAPhKl5boAsCGqYmhcCSIMIhkzMCwOkQICpuRFACoSRuTFAAIHf/XNsCvwPMDEx/w+KH5UtjIix4KLPAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center;margin:16px;position:relative}@media (min-width: 640px){._header__icons--like_umq26_53{margin:16px;display:block}}@media (min-width: 1200px){._header__icons--like_umq26_53{margin:24px;display:block}}._header__icons--basket_umq26_76{cursor:pointer;display:none;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIGSURBVHgB7VfhVcIwEL5E/OVToxOUCcQJxAnECcAJ1AmACcQJZAPdQJhANrAuIAV+0/gdTUspLUQooO/xvZdHm1zvvuRyXwLRjiEWDZ6cnNeJfIfWgnSHw+9m1miBMoOruhC6sYSjBTRPRIHEY9poqnelVEVr8Uo5ApO59jyvM9dP88EdBH/Ho2M+vMWHb7QC4KtsfDE8+LqELzduI5MfmZk7QXDRXDX4JCJmrLV+DvnA90vSZmYFgryLRvju+/qOcoCUAps5mBRItOL7ISJwdKRKhYL4oC0gvh+iFBweUom2hPE4WA1Gahkib20pqUs5wvepjPRWk/0ZBKiLJWpTjkBFsN85ApJ2DCsCLEynp2d9KNrTMlu2ga0+PlY1soAVAeSvwjywex+W2YY2QtAVWcA2BV74wOqWZYSxWCXJAeVFABURqaHvy2qWHcbuw2et/Q7lRcCIhsvPWOJacExPgZkrzj2PmS53NLKT8AJZgg8lc7DwXmhgo9UMKQ/lhRrXKm5r69e6DLEKPePYNV0OWhltskFDMyOzPbLEr3SAU8EB0HDD0fEgLvehFdPO/EWwTkGMhIufhmlr438o4Z7AnsC2CER1LYS0OslswVINFb0J3w8OIjGbvRVDXj+Jpve1DcEdDPrF8GUmBQmp3QS85DmR+s/IXEAuKEfgSP/CTwtK6tFfwg/WfsAA/Y2d0AAAAABJRU5ErkJggg==);background-size:cover;background-repeat:no-repeat;background-position:center;margin:16px;position:relative}@media (min-width: 640px){._header__icons--basket_umq26_76{margin:16px;display:block}}@media (min-width: 1200px){._header__icons--basket_umq26_76{margin:24px;display:block}}._header__icons--menu_umq26_100{cursor:default;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgB7ZHRDYAgDETvDH9+ABswgo7mZI7gCo6AC5iGAUSECZrwoYkvaS/30UvaAp+HTxtHN5FwmkFjEEUkmma4FVEF5Awp4msAmeciAToEPag3sNavUK/APaVzGZrJR+nQFHkF9OB/4xu4AV7iLjoA2DQJAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center;margin:16px}._header__icons--close_umq26_110{cursor:default;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADYSURBVHgB3VExEoIwELwEH0BnROktM8yodH7FJ+gLiB2dPkk6pIg+AiWlfoCY6DAGPOz1quRud2dvD+Dny3M/nM9WjIVLpS5HDMz5Ys1YMFXqem56tIWgA59Q2HM+Tz7JcWJmO6DU73WgqjIPRiEBAoINx2CcZG+yFgT09iSL1OUQQCqKYqFBJ7rWwppsyFIWootFBVyRFwgnP7fuE6hr0Ni7Wx7WdHcmQLNuJl8FXLK1XVXlAQsWFbB3NqdKuzu3RSZ3I5IDmgElN5PqBgtMylzYmcXAf9UD/vFnSqehSmwAAAAASUVORK5CYII=);background-size:cover;background-repeat:no-repeat;background-position:center;margin:16px}._header__icon--like_umq26_120{position:relative;display:block;border-right:1px solid #e2e6e9;border-left:1px solid #e2e6e9;display:none}@media (min-width: 640px){._header__icon--like_umq26_120{display:block}}._header__icon--menu_umq26_132{display:block;border-right:1px solid #e2e6e9;border-left:1px solid #e2e6e9}._header__icon--basket_umq26_137{cursor:default;position:relative}._header__icon--active_umq26_141:after{content:"";position:absolute;display:block;width:100%;height:3px;background-color:#000;bottom:0}._header__icon--close_umq26_150{display:block;border-right:1px solid #e2e6e9;border-left:1px solid #e2e6e9}._dropdown_umq26_156{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;z-index:4;background-color:#fff;flex-direction:column;justify-content:space-between}._dropdown-content_umq26_168{display:flex;flex-direction:column;align-items:center;padding-top:72px}._dropdown-icons_umq26_174{display:flex;border-top:1px solid #e2e6e9}._dropdown__icons--like_umq26_178{cursor:default;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIXSURBVHgB7ZffbcIwEMbPKUhISOBuEDaACQoTtJ0AOkHZoDABMEHbDdoJSCdoOkEzQWtAPCChuHfgBCv/SNzkqb0XHPu+fD87PicA/PVgWYPNJu9aFnTVpfB98LZb4WZpGg1u1+vQz6uJAXAM37fuGZNjukzQeL4vp5uNeIroRlKyITb7SRocm6/XX4tMALyJjYlLbNpwPhyEvKMGah5TjGMgqBkIIbwYQLK5dKSEV3wMtJQ2Y3CFkr5+Q/Ub1Xygxk3T6BAhQLt9+andyKXZYVLs2SHoDYLOIL5KntI4CZro5Ci3h7nCUgmjyOAgyZwC+19oXJu9rnFSNAdDTWPjPqM9dlwBffaY2NGfUVposxKouc2p6SvNAXq1+u4w7Oxi57vqdLBzABVGu82XwZ7Y7aRt7fenUpNSvkHFQRs0aON50bNqtVwlV2YIrc1pE2qbzeJQfYQeFxfgEYAXdOBmGkLFwRi71i5di2qRDg/VwVstPoaKIlLuTngO4Gk1hRPhA1UGlByq2mYnH3l4LxwA6ABB4+cgl2q1TAhlTvXPj+ZsQQdaCHAMn5beLRsian708CfBePRtyFVy+A2QdSybmKv7iUSAMiHymCcClAGR1zwV4DcQRcwzAUwgipqfBSgCYWKeCyAPhKl5boAsCGqYmhcCSIMIhkzMCwOkQICpuRFACoSRuTFAAIHf/XNsCvwPMDEx/w+KH5UtjIix4KLPAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center;margin:16px 50%;position:relative}._dropdown__icons--basket_umq26_189{cursor:pointer;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIGSURBVHgB7VfhVcIwEL5E/OVToxOUCcQJxAnECcAJ1AmACcQJZAPdQJhANrAuIAV+0/gdTUspLUQooO/xvZdHm1zvvuRyXwLRjiEWDZ6cnNeJfIfWgnSHw+9m1miBMoOruhC6sYSjBTRPRIHEY9poqnelVEVr8Uo5ApO59jyvM9dP88EdBH/Ho2M+vMWHb7QC4KtsfDE8+LqELzduI5MfmZk7QXDRXDX4JCJmrLV+DvnA90vSZmYFgryLRvju+/qOcoCUAps5mBRItOL7ISJwdKRKhYL4oC0gvh+iFBweUom2hPE4WA1Gahkib20pqUs5wvepjPRWk/0ZBKiLJWpTjkBFsN85ApJ2DCsCLEynp2d9KNrTMlu2ga0+PlY1soAVAeSvwjywex+W2YY2QtAVWcA2BV74wOqWZYSxWCXJAeVFABURqaHvy2qWHcbuw2et/Q7lRcCIhsvPWOJacExPgZkrzj2PmS53NLKT8AJZgg8lc7DwXmhgo9UMKQ/lhRrXKm5r69e6DLEKPePYNV0OWhltskFDMyOzPbLEr3SAU8EB0HDD0fEgLvehFdPO/EWwTkGMhIufhmlr438o4Z7AnsC2CER1LYS0OslswVINFb0J3w8OIjGbvRVDXj+Jpve1DcEdDPrF8GUmBQmp3QS85DmR+s/IXEAuKEfgSP/CTwtK6tFfwg/WfsAA/Y2d0AAAAABJRU5ErkJggg==);background-size:cover;background-repeat:no-repeat;background-position:center;margin:16px 50%;position:relative}._dropdown__icon--like_umq26_200{display:block;border-right:1px solid #e2e6e9;width:50%}._dropdown__icon--basket_umq26_205{display:block;width:50%}._dropdown__icon--active_umq26_209:after{content:"";position:absolute;display:block;width:100%;height:3px;background-color:#000}._favProduct-and-product-count_umq26_218{display:flex;justify-content:center;align-items:center;background-color:#4219d0;width:13px;height:13px;border-radius:48px}._favProduct-and-product-count__meaning_umq26_227{font-size:9px;font-weight:700;color:#fff}._favProduct-and-product-count-container_umq26_232{display:flex;justify-content:center;align-items:center;top:-6px;right:-7px;width:15px;height:15px;border-radius:48px;position:absolute;background-color:#fff;overflow:hidden;transform:scale(0);transition:transform .1s ease-in-out}._favProduct-and-product-count-container--visible_umq26_247{transform:scale(1)}.footer{border-top:1px solid #e2e6e9;background-color:#fff}@media (min-width: 640px){.footer{height:96px}}@media (min-width: 1200px){.footer{height:96px;padding:32px 16px}}.footer__container{height:100%;max-width:1200px;margin:0 auto;padding:32px 16px;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 640px){.footer__container{padding:0 24px}}@media (min-width: 640px){.footer__container{flex-direction:row}}.footer__logo{width:200px;display:flex;align-items:center}.footer__logo__img{width:89px;height:30px;cursor:pointer}.footer__button{font-weight:800;font-size:12px;line-height:11px;letter-spacing:4%;color:#89939a;display:flex;align-items:center;width:100%;justify-content:center}@media (min-width: 640px){.footer__button{justify-content:flex-end;margin-bottom:0;width:200px}}.footer__button-text{font-size:.8571428571rem;font-weight:700;line-height:16px}.footer__button-icon{width:32px;height:32px;border-radius:50%;border:1px solid #b4bdc3;display:flex;justify-content:center;align-items:center;margin-left:16px}.footer__button-icon:hover{border:1px solid #0f0f11;cursor:pointer}.footer__button-icon:active{border:1px solid #b4bdc3}.footer__button-icon--arrow{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADKSURBVHgB7ZNLDoIwEIZnJIRnyshJOEJvRrmZ3saV6U5YYVk0UQSBVtkwX9Kkr8n/tWkBGIZhjk4AHuQ5yTSNqW3bG+yNEFQXxbkfmhBlDY443cAQjojKjhFBRlEKXfe4wkY2C4zDfSU2CXyeHBvE3gSidJVYLTAVrvVdmQd4SZIYXSVWCcyF27GPxKLAUrivRPCLcF+JSbKMKvvPh0ZUqrW1RKTea0nO7T3NLYQhkO0vnXyM1lqZ39G8ToELxrz6Zv/veoZhmGPwBL4OYvq5bwTwAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center}.footer__button-icon--arrow:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADASURBVHgB7ZQxDsIgFIZ/qAfwKL1AEzs4Gc/U9kyGpQ6YNM69iicAobGDBhQebn3fRBNev28AAIZhGKaAy3U6qFHXKECCiNJTJyS0rXazX4OIAAEvtAb9248k+lPbDMgkOyAkL4nICviUu/XwEnfUiOSAkPx8bJZvdxh7akRSwDf5CjXiZ0CKvCRC/EtOjYgGqPFe28rMOfJYhJtt3ewttDf6EBlh9hS5x+9db8gisfIBCkrr2j+3IFI6zzAMsw2eAimCIdCgZeAAAAAASUVORK5CYII=)}.nav-footer{display:flex}.nav-footer__wrapper{display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start;gap:16px;margin-top:32px;margin-bottom:32px}@media (min-width: 640px){.nav-footer__wrapper{flex-direction:row;align-items:center}}@media (min-width: 1200px){.nav-footer__wrapper{gap:106px}}.nav-footer__link{text-decoration:none;color:inherit;text-transform:uppercase;font-weight:800;font-size:.8571428571rem;line-height:11px;letter-spacing:.04em;color:#89939a;flex:1;text-align:center}.main{padding-bottom:64px}@media (min-width: 640px){.main{padding-bottom:80px}}.main__title{padding:0 16px;max-width:1200px;margin:24px auto}@media (min-width: 640px){.main__title{padding:0 24px}}.main__slider,.main__categories,.main__banner-slider{scrollbar-width:none}.main__slider::-webkit-scrollbar,.main__categories::-webkit-scrollbar,.main__banner-slider::-webkit-scrollbar{visibility:hidden}.banner-slider__interactive-part{display:flex;align-items:center;gap:16px;height:400px}.banner-slider__button{cursor:pointer;height:100%;font-size:16px;width:32px;border-radius:48px;border:1px solid #b4bdc3;background-color:#fff;box-sizing:border-box}.banner-slider__button:hover{border:1px solid #0f0f11}.banner-slider__button:active{color:#fff;background-color:#0f0f11}.slider__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.slider__title{margin:0}.slider__interactive-part{display:flex;gap:16px}.slider__button{height:32px;width:32px;display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:16px;border-radius:48px;border:1px solid #b4bdc3;background-color:#fff}.slider__button:hover{border:1px solid #0f0f11}.slider__button:active{color:#fff;background-color:#0f0f11}.slider__button--prev{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADKSURBVHgB7ZY9DsIwDIWfQVV/1RpO0iPkZpSb0ZswMmajXVoSsWRgSBsTBvJJGRwpes9D7AckEv/OEYI0DauqKniapgdi07Z86brTag8zK993BwhgxYlocK40YuF2/u7+PCAWSTyJRxWva+6/Ie49B7IM7NbLghUCeI9iM17vZVkQQMrWRFB5XmGenyMC2LQLjImbtInNy0jaxK5tKGli9zqWMhGUByRMBAeSTyZMPdpf4/NeJA9orQei9epe4ReYJNRvSUOJRMLyAmjAbvQJVxwLAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center}.slider__button--next{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADISURBVHgB7ZZLCsIwFEVvFOmX9NmVdAnZWevO7E4cOpLObCetKVIQQUnaZya+Aw/akHAP+RFAEP6dvU/nPCeTpjH1fX9FaLKMqqI4TnNpXdZgYufa8XAALd9KTQ2XhPMS2Gm/JEmsbLx5SsBEUYphuLfYgNcesBJnbgkvgV9IeAtwS6wS4JRYLcAlsUngk4T9b+dT4zLe+R74xjhiemvqEAqtqV5uyLmIygahkHAJDxr++h7gDF/5HlCnrrs1CA0RVbYMBEFg5AEuSm4G6eLsnAAAAABJRU5ErkJggg==);background-size:cover;background-repeat:no-repeat;background-position:center}.slider__item{height:100%}.card :not(:last-child){margin-bottom:8px}.card{background-color:#fff;border:1px solid #e2e6e9;padding:32px;display:flex;flex-direction:column;align-content:center;border-radius:8px;transition:transform 1s;box-sizing:border-box;height:100%}.card:hover{transform:scale(105%)}.card__logo{display:flex;max-height:196px;width:100%;object-fit:contain;align-self:center}.card__logo:hover{cursor:pointer;transition:box-shadow 1.6s,transform .6s;transform:scale(101%)}.card__title{white-space:normal;color:#0f0f11;margin-top:16px;font-size:14px;font-weight:600;min-width:152px}.card__price{margin-top:auto;font-size:22px;font-weight:800;color:#0f0f11}.card__price--discount{font-weight:400;color:#89939a}.card__separator{content:"";border:1px solid #e2e6e9}.card__info{display:flex;flex-direction:column;align-self:center;list-style:none;justify-content:space-between;margin-top:auto;padding:0}.card__item{display:flex;justify-content:space-between;font-size:12px;font-weight:700}.card__item :nth-child(n){margin:0;padding:0}.card__item-name{color:#e2e6e9}.card__item-meaning{color:#0f0f11;white-space:break-spaces;text-align:right}.card__inform{margin-top:auto}.banner-slider__interactive-part{display:flex;align-items:center;gap:16px;height:320px}@media (min-width: 640px){.banner-slider__interactive-part{padding:0 16px;max-width:1200px;margin:0 auto}}@media (min-width: 640px) and (min-width: 640px){.banner-slider__interactive-part{padding:0 24px}}@media (min-width: 640px){.banner-slider__interactive-part{height:189px}}@media (min-width: 1200px){.banner-slider__interactive-part{height:400px}}.banner-slider__button{cursor:pointer;height:100%;font-size:16px;width:32px;border-radius:48px;border:1px solid #b4bdc3;background-color:#fff;box-sizing:border-box;display:none}.banner-slider__button--prev{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADKSURBVHgB7ZY9DsIwDIWfQVV/1RpO0iPkZpSb0ZswMmajXVoSsWRgSBsTBvJJGRwpes9D7AckEv/OEYI0DauqKniapgdi07Z86brTag8zK993BwhgxYlocK40YuF2/u7+PCAWSTyJRxWva+6/Ie49B7IM7NbLghUCeI9iM17vZVkQQMrWRFB5XmGenyMC2LQLjImbtInNy0jaxK5tKGli9zqWMhGUByRMBAeSTyZMPdpf4/NeJA9orQei9epe4ReYJNRvSUOJRMLyAmjAbvQJVxwLAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center;width:16px;height:16px;grid-column:1/2}.banner-slider__button--next{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADISURBVHgB7ZZLCsIwFEVvFOmX9NmVdAnZWevO7E4cOpLObCetKVIQQUnaZya+Aw/akHAP+RFAEP6dvU/nPCeTpjH1fX9FaLKMqqI4TnNpXdZgYufa8XAALd9KTQ2XhPMS2Gm/JEmsbLx5SsBEUYphuLfYgNcesBJnbgkvgV9IeAtwS6wS4JRYLcAlsUngk4T9b+dT4zLe+R74xjhiemvqEAqtqV5uyLmIygahkHAJDxr++h7gDF/5HlCnrrs1CA0RVbYMBEFg5AEuSm4G6eLsnAAAAABJRU5ErkJggg==);background-size:cover;background-repeat:no-repeat;background-position:center;width:16px;height:16px;grid-column:-2/-1}@media (min-width: 640px){.banner-slider__button{display:flex;justify-content:center;align-items:center}}.banner-slider__indicators{display:flex;justify-content:center;margin-top:18px;gap:14px}.banner-slider__indicator{height:4px;width:14px;background-color:#e2e6e9}.banner-slider__indicator--is-active{background-color:#0f0f11}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA) format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#_root_1d5on_1{min-height:100%;display:flex;flex-direction:column}._main_1d5on_14{flex:1 1 auto}._footer_1d5on_18{padding:0;text-align:center}._swiper_1d5on_23{height:100%;width:100%;margin:0;border-radius:8px}._swiper__banner-container_1d5on_29 img{width:100%;height:100%;object-fit:cover}.categorie{grid-column:span 4;text-decoration:none;margin-bottom:32px;transition:transform 1s}.categorie:hover{transform:scale(105%)}@media (min-width: 1200px){.categorie{grid-column:span 8}}.categorie__img{width:100%;height:auto;border-radius:8px}@media (min-width: 1200px){.categorie__img{border-radius:0}}.categorie__title{font-weight:700;font-size:20px;line-height:25px;color:#0f0f11;margin-top:24px}.categorie__text{font-weight:600;font-size:14px;line-height:21px;color:#89939a;margin-top:4px}.categories{padding:0 16px;max-width:1200px;margin:0 auto}@media (min-width: 640px){.categories{padding:0 24px}}.categories__title{margin-top:40px;margin-bottom:24px}.categories__list{margin:0;padding:0;list-style:none;display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr)}@media (min-width: 640px){.categories__list{--columns: 12}}@media (min-width: 1200px){.categories__list{--columns: 24}}#_root_1s403_1{min-height:100%;display:flex;flex-direction:column}._main_1s403_14{flex:1 1 auto}._footer_1s403_18{padding:0;text-align:center}._product-actions-block_1s403_23{display:flex;gap:8px}#_root_4667y_1{min-height:100%;display:flex;flex-direction:column}._main_4667y_14{flex:1 1 auto}._footer_4667y_18{padding:0;text-align:center}._button_4667y_23{cursor:pointer;display:flex;justify-content:center;align-items:center}._button__size--small_4667y_29{height:32px;width:32px;min-width:32px}._button__size--default_4667y_34{height:40px;width:40px;min-width:40px}._button__size--large_4667y_39{height:48px;width:48px;min-width:48px}._button__shape--circle_4667y_44{border-radius:48px}._button__shape--rectangle_4667y_47{border-radius:4px;width:auto;padding:8px}#_root_1ruke_1{min-height:100%;display:flex;flex-direction:column}._main_1ruke_14{flex:1 1 auto}._footer_1ruke_18{padding:0;text-align:center}._button-with-image_1ruke_23{border:1px solid #b4bdc3}._button-with-image__image_1ruke_26{width:16px;height:16px}._button-with-image--selected_1ruke_30{border-color:#e2e6e9}._button-with-image_1ruke_23:hover{border-color:#0f0f11}#_root_1lxu4_1{min-height:100%;display:flex;flex-direction:column}._main_1lxu4_14{flex:1 1 auto}._footer_1lxu4_18{padding:0;text-align:center}._main-button_1lxu4_23{background-color:#4219d0;color:#fff;width:100%;border-radius:48px;border:none;transition:box-shadow,background-color,.1s}._main-button__size--default_1lxu4_31{height:40px}._main-button__size--large_1lxu4_34{height:48px}._main-button--selected_1lxu4_37{background-color:#fff;color:#4219d0;border:1px solid #e2e6e9}._main-button_1lxu4_23:hover{cursor:pointer;box-shadow:0 3px 13px #17203166}._main-button_1lxu4_23:active{color:#4219d0;border:1px solid #e2e6e9;background-color:#fff;box-shadow:none}.main__slider{padding:0 16px;max-width:1200px;margin:56px auto 0}@media (min-width: 640px){.main__slider{padding:0 24px}}.slider__list{display:flex;justify-content:space-between;overflow-x:auto;scroll-behavior:smooth;white-space:nowrap;padding:0;margin:0;list-style:none;column-gap:16px}.slider__list>div{padding:13px}.slider__list::-webkit-scrollbar{display:none}#_root_105s7_1{min-height:100%;display:flex;flex-direction:column}._main_105s7_14{flex:1 1 auto}._footer_105s7_18{padding:0;text-align:center}._swiper-slide_105s7_23{width:100%;height:100%}@media (min-width: 320px){._swiper-slide_105s7_23{width:212px}}@media (min-width: 640px){._swiper-slide_105s7_23{width:237px}}@media (min-width: 1200px){._swiper-slide_105s7_23{width:272px}}._swiper-product__slide_105s7_43{display:flex;flex-grow:1;height:100%;width:100%}#_root_lzrjg_1{min-height:100%;display:flex;flex-direction:column}._main_lzrjg_14{flex:1 1 auto}._footer_lzrjg_18{padding:0;text-align:center}._container_lzrjg_23{padding:24px 16px 0;max-width:1200px;margin:0 auto}@media (min-width: 640px){._container_lzrjg_23{padding:0 24px}}._loading-wrapper_lzrjg_35{display:flex;justify-content:center}._product-content__title_lzrjg_40{margin-top:16px;margin-bottom:32px}@media (min-width: 640px){._product-content__title_lzrjg_40{font-size:2.2857142857rem;margin-bottom:40px}}._product-content__details_lzrjg_50{row-gap:40px;display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr)}@media (min-width: 640px){._product-content__details_lzrjg_50{--columns: 12}}@media (min-width: 1200px){._product-content__details_lzrjg_50{--columns: 24}}._product-content__details--gallery_lzrjg_67,._product-content__details--variants_lzrjg_67,._product-content__details--description_lzrjg_67,._product-content__details--tech-specs_lzrjg_67{grid-column:1/-1}._product-content__details--gallery_lzrjg_67{align-content:center}@media (min-width: 640px){._product-content__details--gallery_lzrjg_67{grid-column:span 7}._product-content__details--variants_lzrjg_67{grid-column:span 5}}@media (min-width: 1200px){._product-content__details--gallery_lzrjg_67,._product-content__details--variants_lzrjg_67,._product-content__details--description_lzrjg_67,._product-content__details--tech-specs_lzrjg_67{grid-column:span 12}}#_root_a4ybj_1{min-height:100%;display:flex;flex-direction:column}._main_a4ybj_14{flex:1 1 auto}._footer_a4ybj_18{padding:0;text-align:center}._loader-block_a4ybj_23{display:flex;justify-content:center}._loader-block__element_a4ybj_27{margin:20px;width:40px;height:40px;border:3px solid #4219d0;border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;animation:_rotation_a4ybj_1 1s linear infinite}._loader-block__element_a4ybj_27:after{content:"";box-sizing:border-box;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;border:3px solid transparent;border-bottom-color:#89939a}@keyframes _rotation_a4ybj_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#_root_fa4s1_1{min-height:100%;display:flex;flex-direction:column}._main_fa4s1_14{flex:1 1 auto}._footer_fa4s1_18{padding:0;text-align:center}._breadcrumbs_fa4s1_23{list-style:none;padding:0;display:flex;align-items:center;gap:8px}@media (min-width: 640px){._breadcrumbs_fa4s1_23{margin:24px 0 16px}}._breadcrumbs_fa4s1_23 ._homeIcon_fa4s1_35,._breadcrumbs_fa4s1_23 ._chevronIcon_fa4s1_36{display:flex;width:16px;height:16px}._label_fa4s1_42{color:#0f0f11;font-size:12px;font-weight:700;line-height:15px;font-family:inherit}._label--product_fa4s1_49{color:#89939a;font-size:12px;font-weight:600;font-family:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._chevronSpan_fa4s1_59{display:flex}#_root_1swvw_1{min-height:100%;display:flex;flex-direction:column}._main_1swvw_14{flex:1 1 auto}._footer_1swvw_18{padding:0;text-align:center}._section_1swvw_23{grid-column:1/-1}@media (min-width: 1200px){._section_1swvw_23{grid-column:1/13}}._descriptionSection_1swvw_32{display:flex;flex-direction:column;gap:16px}._sectionTitle_1swvw_38{color:#0f0f11}@media (min-width: 640px){._sectionTitle_1swvw_38{font-size:22px;line-height:32px;font-weight:800}}._divider_1swvw_49{width:96%;height:1px;background-color:#e2e6e9}._descriptionTitle_1swvw_55{display:flex;align-items:center;gap:8px}@media (min-width: 640px){._descriptionTitle_1swvw_55{color:#0f0f11}}._descriptionText_1swvw_66{color:#89939a;font-weight:500}#_root_1837k_1{min-height:100%;display:flex;flex-direction:column}._main_1837k_14{flex:1 1 auto}._footer_1837k_18{padding:0;text-align:center}._swiper_1837k_23{background-color:#fff;flex-grow:1;flex-shrink:1;max-width:464px;width:100%;max-height:464px;height:90%}._swiper__container_1837k_32 img{width:100%;height:100%;object-fit:contain}._swiper-slide_1837k_38{cursor:grab}._swiper-slide_1837k_38:active{cursor:grabbing}.swiper-pagination{bottom:-15px!important}._swiper-block_1837k_49{display:flex;align-items:center;width:100%;height:100%;gap:16px}@media (min-width: 320px){._swiper-block_1837k_49{flex-direction:column}}@media (min-width: 640px){._swiper-block_1837k_49{flex-direction:row-reverse}}._swiper-block__slides_1837k_66{display:flex;list-style:none;gap:16px;padding:0;margin:0;bottom:0}@media (min-width: 320px){._swiper-block__slides_1837k_66{justify-content:center;flex-direction:row}}@media (min-width: 640px){._swiper-block__slides_1837k_66{flex-direction:column}}._swiper-block__slide_1837k_66{display:flex;flex-direction:column;list-style:none;box-sizing:border-box;border:1px solid #e2e6e9;padding:7px;border-radius:8px;cursor:pointer}@media (min-width: 320px){._swiper-block__slide_1837k_66{width:51px;height:49px}}@media (min-width: 640px){._swiper-block__slide_1837k_66{width:35px;height:35px}}@media (min-width: 1200px){._swiper-block__slide_1837k_66{width:80px;height:80px}}._swiper-block__slide_1837k_66:hover,._swiper-block__slide--is-active_1837k_116{border:1px solid #0f0f11}._swiper-block__slide_1837k_66 img{max-width:100%;max-height:100%;object-fit:contain}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;left:0;top:0;bottom:0;right:0;-webkit-filter:blur(50px);filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right{z-index:0;backface-visibility:hidden}#_root_1p5ez_1{min-height:100%;display:flex;flex-direction:column}._main_1p5ez_14{flex:1 1 auto}._footer_1p5ez_18{padding:0;text-align:center}._section_1p5ez_23{grid-column:1/-1}@media (min-width: 1200px){._section_1p5ez_23{grid-column:14/-1}}._section_1p5ez_23 ._techSpecsSection_1p5ez_31{display:flex;flex-direction:column;gap:16px}._section_1p5ez_23 ._sectionTitle_1p5ez_36{font-size:20px;line-height:26px;font-weight:700;color:#0f0f11}@media (min-width: 640px){._section_1p5ez_23 ._sectionTitle_1p5ez_36{font-size:22px;line-height:32px;font-weight:800}}._section_1p5ez_23 ._divider_1p5ez_49{width:100%;height:1px;background-color:#e2e6e9}._section_1p5ez_23 ._specsList_1p5ez_54{display:flex;flex-direction:column;gap:8px;padding:0}._section_1p5ez_23 ._specs_1p5ez_54{display:flex;justify-content:space-between}._section_1p5ez_23 ._specsKey_1p5ez_64{font-size:14px;font-weight:600;line-height:21px;color:#89939a}._section_1p5ez_23 ._specsValue_1p5ez_70{font-size:14px;font-weight:600;line-height:21px;color:#0f0f11}#_root_1fz8b_1{min-height:100%;display:flex;flex-direction:column}._main_1fz8b_14{flex:1 1 auto}._footer_1fz8b_18{padding:0;text-align:center}._variants-block_1fz8b_23{max-width:320px}._variants-block__price_1fz8b_26{display:flex;align-items:center;gap:8px;margin-bottom:16px}._variants-block__price_1fz8b_26 h2{font-size:2.2857142857rem}._variants-block__price_1fz8b_26 p{color:#89939a;text-decoration:line-through;font-size:1.5714285714rem}._variants-block__line_1fz8b_40{height:1px;background-color:#e2e6e9;margin-top:24px;margin-bottom:24px}._variants-block__info_1fz8b_46{margin-top:32px}._variants-block__info--list_1fz8b_49{display:flex;flex-direction:column;gap:8px;padding:0;list-style:none}._variants-block__info--list-item_1fz8b_56{display:flex;justify-content:space-between}._variants-block__info--title_1fz8b_60{font-size:12px;font-weight:600;line-height:15px;color:#89939a}._variants-block__info--value_1fz8b_66{font-size:12px;font-weight:700;line-height:15px;color:#0f0f11}#_root_6p15w_1{min-height:100%;display:flex;flex-direction:column}._main_6p15w_14{flex:1 1 auto}._footer_6p15w_18{padding:0;text-align:center}._variants-block_6p15w_23{color:#89939a;font-size:.8571428571rem;font-weight:600;line-height:15px}._variants-block__title_6p15w_29{margin-bottom:8px}._variants-block__items_6p15w_32{display:flex;gap:8px;margin-bottom:24px}#_root_1k9ux_1{min-height:100%;display:flex;flex-direction:column}._main_1k9ux_14{flex:1 1 auto}._footer_1k9ux_18{padding:0;text-align:center}._button-with-color_1k9ux_23{border:1px solid #e2e6e9;overflow:hidden;padding:3px}._button-with-color__element_1k9ux_28{width:100%;height:100%;border-radius:50%}._button-with-color__element--selected_1k9ux_33{border-color:#0f0f11}._button-with-color_1k9ux_23:hover{cursor:pointer;border-color:#b4bdc3}#_root_189dg_1{min-height:100%;display:flex;flex-direction:column}._main_189dg_14{flex:1 1 auto}._footer_189dg_18{padding:0;text-align:center}._button-with-text_189dg_23{border:1px solid #e2e6e9;font-weight:600}._button-with-text--selected_189dg_27{border-color:#0f0f11;background-color:#0f0f11;color:#fff}._button-with-text_189dg_23:hover{border-color:#0f0f11}#_root_948fx_1{min-height:100%;display:flex;flex-direction:column}._main_948fx_14{flex:1 1 auto}._footer_948fx_18{padding:0;text-align:center}._back_948fx_23{display:inline-flex;cursor:pointer;margin-top:24px;margin-bottom:16px}._back__img_948fx_29{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADKSURBVHgB7ZY9DsIwDIWfQVV/1RpO0iPkZpSb0ZswMmajXVoSsWRgSBsTBvJJGRwpes9D7AckEv/OEYI0DauqKniapgdi07Z86brTag8zK993BwhgxYlocK40YuF2/u7+PCAWSTyJRxWva+6/Ie49B7IM7NbLghUCeI9iM17vZVkQQMrWRFB5XmGenyMC2LQLjImbtInNy0jaxK5tKGli9zqWMhGUByRMBAeSTyZMPdpf4/NeJA9orQei9epe4ReYJNRvSUOJRMLyAmjAbvQJVxwLAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center}._back__name_948fx_37{font-weight:700;color:#89939a;font-size:12px;line-height:15px;margin-left:4px}#_root_4ikg6_1{min-height:100%;display:flex;flex-direction:column}._main_4ikg6_14{flex:1 1 auto}._footer_4ikg6_18{padding:0;text-align:center}._phones_4ikg6_23{padding:24px 16px 0;max-width:1200px;margin:0 auto}@media (min-width: 640px){._phones_4ikg6_23{padding:0 24px}}._phones__routs_4ikg6_34{display:flex;align-items:center}._phones__routs__home_4ikg6_38{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI0SURBVHgB7VaxNvRAFL6TLCs45P+fIJ7A6nTodFanczwBnsB2SrbT4QnolFapsjqd6HSisgoZ341JTHJWkok4FPudk93Jzc29d+b7MnOJfhmCKsIFwtDa5rFlhd0AoAqoVABye1KKMwxbyuQLIVdQg0+GsMkQSN5G8gsMPd2MubQdZ+JhMBjckQGMCpiZcfeQ6AjDiQ+L7OHHh81TRWw0m5P0+vpyRXWC+Z6d/XeJS8aX6/7vaM87+jP2ZZrKxC7UAAK1FN+eMgXgewt8n2f8mJoDza+ULqy8h1jybQS90YL2EXQhmzyqCjZOSBElEVio94ixk5djqAZ4ycfHJ/eFoE5sE0J01cwfvwoGAQYQ4qmU5MB/Ub23Cl24jtO8xvMBFYG5A4c3ab7zZ/FFnJ2MLu6H6UJkXmIejylSdATmcR2z7lMFqP3iktK62NUpTAqYmnJbjUbEt4LsgYL1qjtcugjCpMRykvRDnD0eJyIcG0t2NZJSHj4/ByvfTc7gr4BjIWY3tr29fW5iQ78CVHxLNcOyaCiNDTLA9LS7DFq8PB/bpr6JZkoXwBqx7UhQucDqMe8Jx0WwqCR0jRRB57gIRhTEgKBOwGnqwAlDAj1ikwxRsQC6whKf6DYsO9uNCyhNwU9hVMCogFEBf6oAPx4IYS1RjeAWD43JWnyPA8tPcumO3DYRld/HKwL9wdNcfJOigNsv0lbiBxCozvkzZ9aDWygcLG0M56lG4PB6wN9hHV1WrXgHoSne9FTuOuIAAAAASUVORK5CYII=);background-size:cover;background-repeat:no-repeat;background-position:center}._phones__routs__array_4ikg6_46{box-sizing:border-box;padding:0 8px;width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADjSURBVHgB7ZZBCsIwEEWntQfwKN1LwS50UzyT6Zkkm7qIUFzXo3iCxGRRQSgyM/nLvFUCTf6jSYYhKhQKAm73+Wgn1xKQmvuhnZ5tVZMLu2axbr4SCLaAr/x+HQdPBiXBFricukcMHtESFQmJ98DEo/gGx7EZ+m4kJWIBtIRKACmhFkBJZAkgJLIFtiTiC+nTq+GsZT/Dv5s0FH7moX4zl+YLpFqQasI6T7ViOB9e3PVZR7AVHn+9keyhFkCEqwVQ4SoBZLhYAB0uEkj9QNj5BRme0PYDkHAx1rk2tWVUKBSAfACbJooMYVsHVwAAAABJRU5ErkJggg==);background-size:cover;background-repeat:no-repeat;background-position:center}._phones__routs__currentPage_4ikg6_56{font-size:12px;font-weight:600;line-height:15px;color:#89939a}._phones__title_4ikg6_62{margin-top:24px;margin-bottom:8px;font-weight:800;font-size:32px;line-height:41px;letter-spacing:-1%;color:#0f0f11}@media (min-width: 640px){._phones__title_4ikg6_62{margin-top:40px;font-size:48px;line-height:56px}}._phones__countModel_4ikg6_78{font-weight:600;font-size:14px;color:#89939a;margin-bottom:16px}._phones__items_4ikg6_84{list-style:none;display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr);row-gap:40px;margin-top:24px;align-items:stretch}@media (min-width: 640px){._phones__items_4ikg6_84{--columns: 12}}@media (min-width: 1200px){._phones__items_4ikg6_84{--columns: 24}}._phones__item_4ikg6_84{grid-column:span 4;height:auto}@media (min-width: 640px){._phones__item_4ikg6_84{grid-column:span 6}}@media (min-width: 640px) and (min-width: 768px){._phones__item_4ikg6_84{grid-column:span 4}}@media (min-width: 1200px){._phones__item_4ikg6_84{grid-column:span 6}}._phones__pagination_4ikg6_123{display:flex;justify-content:center;margin-top:40px;column-gap:16px}._phones__pagination__arr_4ikg6_129{width:36px;height:36px;background-color:#fff;border:1px solid #b4bdc3;border-radius:48px;display:flex;justify-content:center;align-items:center}._phones__pagination__arr_4ikg6_129:not(:disabled){cursor:pointer}._phones__pagination__arr_4ikg6_129:disabled,._phones__pagination__arr_4ikg6_129:disabled:hover{border-color:#e2e6e9}._phones__pagination__arr_4ikg6_129:disabled div[class*=Left]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADpSURBVHgB7Za9DcIwEIUvPwMwinsUiRTQRMyEMxNyEwojRdRhFCaw8RVEgFL47Ff6q5zi/D7LuZOJCoUCkOttPpjJKklNTSCMnS9VTdY37cIisXUQAQ73jvS6qa9fsbXZAv/hYT0Op/0ztr6iDLbCz8dOS/ZIFkCEJwugwpMEkOFiAXS4SMBMD+UbtyDDmeg2dJXb/RS25AlAtEA47Z1P/fnmq+AroUzEP2EYszqM3DU4rPXQdyMlktSGSInkQYSSyBrFCIksAYREtsCWROiQnrsmphbyHuCB9N2ikvcAFGOtkryGCoUC8wZQu4n/6xlQUAAAAABJRU5ErkJggg==)}._phones__pagination__arr_4ikg6_129:disabled div[class*=Right]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADjSURBVHgB7ZZBCsIwEEWntQfwKN1LwS50UzyT6Zkkm7qIUFzXo3iCxGRRQSgyM/nLvFUCTf6jSYYhKhQKAm73+Wgn1xKQmvuhnZ5tVZMLu2axbr4SCLaAr/x+HQdPBiXBFricukcMHtESFQmJ98DEo/gGx7EZ+m4kJWIBtIRKACmhFkBJZAkgJLIFtiTiC+nTq+GsZT/Dv5s0FH7moX4zl+YLpFqQasI6T7ViOB9e3PVZR7AVHn+9keyhFkCEqwVQ4SoBZLhYAB0uEkj9QNj5BRme0PYDkHAx1rk2tWVUKBSAfACbJooMYVsHVwAAAABJRU5ErkJggg==)}._phones__pagination__arr_4ikg6_129:hover{border:1px solid #0f0f11}._phones__pagination__arrLeft_4ikg6_154{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADKSURBVHgB7ZY9DsIwDIWfQVV/1RpO0iPkZpSb0ZswMmajXVoSsWRgSBsTBvJJGRwpes9D7AckEv/OEYI0DauqKniapgdi07Z86brTag8zK993BwhgxYlocK40YuF2/u7+PCAWSTyJRxWva+6/Ie49B7IM7NbLghUCeI9iM17vZVkQQMrWRFB5XmGenyMC2LQLjImbtInNy0jaxK5tKGli9zqWMhGUByRMBAeSTyZMPdpf4/NeJA9orQei9epe4ReYJNRvSUOJRMLyAmjAbvQJVxwLAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center}._phones__pagination__arrRight_4ikg6_162{width:16px;height:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADISURBVHgB7ZZLCsIwFEVvFOmX9NmVdAnZWevO7E4cOpLObCetKVIQQUnaZya+Aw/akHAP+RFAEP6dvU/nPCeTpjH1fX9FaLKMqqI4TnNpXdZgYufa8XAALd9KTQ2XhPMS2Gm/JEmsbLx5SsBEUYphuLfYgNcesBJnbgkvgV9IeAtwS6wS4JRYLcAlsUngk4T9b+dT4zLe+R74xjhiemvqEAqtqV5uyLmIygahkHAJDxr++h7gDF/5HlCnrrs1CA0RVbYMBEFg5AEuSm4G6eLsnAAAAABJRU5ErkJggg==);background-size:cover;background-repeat:no-repeat;background-position:center}._phones__pagination__buttons_4ikg6_170{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:8px}._phones__pagination__button_4ikg6_170{background-color:#fff;width:32px;height:32px;border-radius:16px;border:1px solid #e2e6e9;color:#0f0f11;font-size:14px;font-weight:600;line-height:21px;cursor:pointer}._phones__pagination__button_4ikg6_170:hover{border:1px solid #0f0f11}._phones__pagination__button_current_4ikg6_192{width:32px;height:32px;border-radius:16px;color:#fff;background-color:#0f0f11}._phonesDropdown_4ikg6_200{display:flex}._noResults_4ikg6_204{margin-top:20px}._filtration_4ikg6_208{display:flex;flex-direction:column}@media (min-width: 640px){._filtration_4ikg6_208{flex-direction:row}}#_root_1oucv_1{min-height:100%;display:flex;flex-direction:column}._main_1oucv_14{flex:1 1 auto}._footer_1oucv_18{padding:0;text-align:center}._dropdown_1oucv_23{position:relative;display:inline-block;padding-right:16px}@media (min-width: 1200px){._dropdown_1oucv_23{padding-top:40px}}._dropdown-label_1oucv_33{display:block;color:#89939a;font-size:12px;padding-bottom:4px;font-weight:700px}._dropdown-toggle_1oucv_40{color:#0f0f11;padding:9px 12px;border:1px solid #b4bdc3;cursor:pointer;border-radius:8px;min-width:136px;background-color:#fff;display:flex;justify-content:space-between;align-items:center;text-align:left}@media (min-width: 640px){._dropdown-toggle_1oucv_40{min-width:187px}}@media (min-width: 1200px){._dropdown-toggle_1oucv_40{min-width:176px}}._dropdown-toggle-clicked_1oucv_63,._dropdown-toggle_1oucv_40:hover{border:1px solid #0f0f11}._dropdown-text_1oucv_69{flex-grow:1}._dropdown-arrow_1oucv_72{display:inline-block;width:16px;height:16px;background-size:contain;background-repeat:no-repeat;background-position:center;margin-left:8px}._dropdown-arrow-down_1oucv_81{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADHSURBVHgB7ZRLDsIgEEAH9AAehb1pogvdNJ5JeibDpi4waVzrUTwBCIltTFM+M93OW5GU4b2yAIBhGIbJcLsPB9NbBURq5mXqg+mfSkiwfrN9GTtcAUmcGedjCGADnHC7ce0daExE3BtnJomXH8AGXE7NIxzSYSPm8nhGe96/U/sFFAjXp8NVTuKw1u2x6Wrl4Ud07vxiQG0ERV4dUIqgylEBqYifUFPk6ICliH+wclJAKoIiJwfMI6jy1RhrVe6VYxiGYWr4AtUSh+KCLswDAAAAAElFTkSuQmCC)}._dropdown-arrow-up_1oucv_84{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADASURBVHgB7ZQxDsIgFIZ/qAfwKL1AEzs4Gc/U9kyGpQ6YNM69iicAobGDBhQebn3fRBNev28AAIZhGKaAy3U6qFHXKECCiNJTJyS0rXazX4OIAAEvtAb9248k+lPbDMgkOyAkL4nICviUu/XwEnfUiOSAkPx8bJZvdxh7akRSwDf5CjXiZ0CKvCRC/EtOjYgGqPFe28rMOfJYhJtt3ewttDf6EBlh9hS5x+9db8gisfIBCkrr2j+3IFI6zzAMsw2eAimCIdCgZeAAAAAASUVORK5CYII=)}._dropdown-menu_1oucv_87{position:absolute;min-width:136px;z-index:1;border-radius:8px;cursor:pointer;justify-content:space-between;align-items:center;text-align:left;background-color:#fff;overflow:hidden;box-shadow:0 2px 15px #0000000d;border:#e2e6e9}@media (min-width: 640px){._dropdown-menu_1oucv_87{min-width:187px}}@media (min-width: 1200px){._dropdown-menu_1oucv_87{min-width:176px}}._dropdown-item_1oucv_111{color:#89939a;text-decoration:none;display:block;border:none;width:100%;text-align:left;background:none;cursor:pointer;padding:6px 12px}._dropdown-item_1oucv_111:hover{background-color:#fafbfc;color:#0f0f11}#_root_7dek7_1{min-height:100%;display:flex;flex-direction:column}._main_7dek7_14{flex:1 1 auto}._footer_7dek7_18{padding:0;text-align:center}._dropdown_7dek7_23{position:relative;display:inline-block}@media (min-width: 1200px){._dropdown_7dek7_23{padding-top:40px}}._dropdown-label_7dek7_32{display:block;color:#89939a;font-size:12px;padding-bottom:4px;font-weight:700px}._dropdown-toggle_7dek7_39{color:#0f0f11;padding:9px 12px;border:1px solid #b4bdc3;cursor:pointer;border-radius:8px;min-width:136px;background-color:#fff;display:flex;justify-content:space-between;align-items:center;text-align:left}@media (min-width: 640px){._dropdown-toggle_7dek7_39{min-width:187px}}@media (min-width: 1200px){._dropdown-toggle_7dek7_39{min-width:176px}}._dropdown-toggle-clicked_7dek7_62,._dropdown-toggle_7dek7_39:hover{border:1px solid #0f0f11}._dropdown-text_7dek7_68{flex-grow:1}._dropdown-arrow_7dek7_71{display:inline-block;width:16px;height:16px;background-size:contain;background-repeat:no-repeat;background-position:center;margin-left:8px}._dropdown-arrow-down_7dek7_80{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADHSURBVHgB7ZRLDsIgEEAH9AAehb1pogvdNJ5JeibDpi4waVzrUTwBCIltTFM+M93OW5GU4b2yAIBhGIbJcLsPB9NbBURq5mXqg+mfSkiwfrN9GTtcAUmcGedjCGADnHC7ce0daExE3BtnJomXH8AGXE7NIxzSYSPm8nhGe96/U/sFFAjXp8NVTuKw1u2x6Wrl4Ud07vxiQG0ERV4dUIqgylEBqYifUFPk6ICliH+wclJAKoIiJwfMI6jy1RhrVe6VYxiGYWr4AtUSh+KCLswDAAAAAElFTkSuQmCC)}._dropdown-arrow-up_7dek7_83{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADASURBVHgB7ZQxDsIgFIZ/qAfwKL1AEzs4Gc/U9kyGpQ6YNM69iicAobGDBhQebn3fRBNev28AAIZhGKaAy3U6qFHXKECCiNJTJyS0rXazX4OIAAEvtAb9248k+lPbDMgkOyAkL4nICviUu/XwEnfUiOSAkPx8bJZvdxh7akRSwDf5CjXiZ0CKvCRC/EtOjYgGqPFe28rMOfJYhJtt3ewttDf6EBlh9hS5x+9db8gisfIBCkrr2j+3IFI6zzAMsw2eAimCIdCgZeAAAAAASUVORK5CYII=)}._dropdown-menu_7dek7_86{position:absolute;min-width:136px;z-index:1;border-radius:8px;cursor:pointer;justify-content:space-between;align-items:center;text-align:left;background-color:#fff;overflow:hidden;box-shadow:0 2px 15px #0000000d;border:#e2e6e9}@media (min-width: 640px){._dropdown-menu_7dek7_86{min-width:187px}}@media (min-width: 1200px){._dropdown-menu_7dek7_86{min-width:176px}}._dropdown-item_7dek7_110{color:#89939a;text-decoration:none;display:block;border:none;width:100%;text-align:left;background:none;cursor:pointer;padding:6px 12px}._dropdown-item_7dek7_110:hover{background-color:#fafbfc;color:#0f0f11}#_root_1ktdz_1{min-height:100%;display:flex;flex-direction:column}._main_1ktdz_14{flex:1 1 auto}._footer_1ktdz_18{padding:0;text-align:center}._input-wrapper_1ktdz_23{position:relative;display:flex;padding-top:16px}@media (min-width: 640px){._input-wrapper_1ktdz_23{padding-top:19px;padding-left:16px;min-height:35px}}@media (min-width: 1200px){._input-wrapper_1ktdz_23{padding-top:58px}}._search-icon_1ktdz_41{display:inline-block;width:16px;height:16px;background-size:contain;background-repeat:no-repeat;background-position:center;margin:0 8px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKuSURBVHgB5Ve9ctNAEN6TkvHZk3GUVJQq6XBJh+jSYTro/AakpItdUTI8QZQ3MBV0iC6l6aCKeAEsJ5Mhnkl0fGtO8sWxZJ0QMAPfjMZ3ml3td3v7Z6L/HYIsIaXnb22RLwT5SlGMJ7m8TCZUE5UI7Ox4geM4T4RQA2y9ArEoTdXJxUUSkgVKCXhAmjpHMHxI1RFD/nGSJHEVYVFiHC4WH7D0jdeJUurEcSh3eZouruMRPhWY+tAdnp9/G1EdsPHd3b0pHqWfM7wLNul0u15o6Khud/+IbKGNn2Uf8bz9kK/CQv/QJLGJ+B2A9bFpnGoARgcGiWnZAdwVRR8/od5yMD29AsgSUJm0WnJPCPEQW6mUM5/Pv0frZB1zwxG/XKsRIjmhmkCgDvGz0MdBXhTKmRsIBnoZ2+bzKpg8Z4zeekWxkBOAQI90ykExogYAL4yzNdK1t1YmW1xf36pwn6gZmCX6AZUR4Pqerbm+UwOoEkM5gZubZozaIifguhRnayGcHjUAHVcZvlIZASCmZdqsva8ayAngWielBH7el8qEghX2tYCGlNcVeDiiMgIMdLWRofyafgFcjmmZ1mFRQN4qxSihsZQyABVW9FFOZ/P51SnZG+dWfkx6eEE94JK+mQCj3ZYIFjHgNWr5gS2J1TkC30BJn46L5O8QYC+AxAyqB0sSHa/dbn0pOoVhvA/j77C8l73DPkIj+liZgCZxChIim3IQG+hqog8ive3t1qzTkQl3SS7wrivvQ/aZlO1XkHkJcWl+C7oB9KiIxKaZsK+D0ScLwGtvUP0TMwuKRjS37EM45Gec7i1OMdOBWTYZcRq/h+xz3HkI3WjFi2s9YfW/gFuq7mpmoZrpIXW8LtWgM6ziid8KJlE0Jzr0BwDHDFHezVP/lca3aE7WU/I/jx/tsSsfOyHnOAAAAABJRU5ErkJggg==)}._input-field_1ktdz_52{color:#0f0f11;border:1px solid #b4bdc3;cursor:pointer;border-radius:8px;background-color:#fff;display:flex;justify-content:space-between;align-items:center;text-align:left;margin-right:8px;padding:9px 12px}._input-field_1ktdz_52:hover{border:1px solid #0f0f11}._search-input_1ktdz_69{border:none;outline:none;font-family:Montserrat,sans-serif}._search-input_1ktdz_69:focus{outline:none}._search-button_1ktdz_78{border-radius:48px;color:#fff;background-color:#4219d0;border:none;width:110px;font-weight:700}.cart{padding:0 16px;max-width:1200px;margin:0 auto}@media (min-width: 640px){.cart{padding:0 24px}}.cart__title{font-weight:800;font-size:32px;line-height:41px;letter-spacing:-1%;margin-bottom:32px}@media (min-width: 640px){.cart__title{font-size:48px;line-height:56px}}.cart__empty-message{margin-bottom:32px}.cart__items{display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr);grid-column:1/-1;row-gap:16px}@media (min-width: 640px){.cart__items{--columns: 12}}@media (min-width: 1200px){.cart__items{--columns: 24}}.cart__total-count{border:1px solid #e2e6e9;border-radius:16px;padding:24px;margin-bottom:56px;grid-column:1/-1;display:flex;flex-direction:column;align-items:center}@media (min-width: 1200px){.cart__total-count{grid-column:17/-1;margin-bottom:0;grid-row:1/-1}}.cart__total-count__price{color:#0f0f11;font-weight:800;font-size:32px;letter-spacing:-1%}.cart__total-count__text{color:#89939a;font-weight:600;font-size:14px;line-height:21px}.cart__total-count__line{height:1px;width:100%;background-color:#e2e6e9;margin:16px 0}@media (min-width: 1200px){.cart__total-count__line{margin:25px 0 24px}}.cart__total-count__button-checkout{width:100%;height:48px}.main__button{background-color:#4219d0;color:#fff;font-size:14px;line-height:21px;font-weight:700;border:none;border-radius:48px}#_root_z1txc_1{min-height:100%;display:flex;flex-direction:column}._main_z1txc_14{flex:1 1 auto}._footer_z1txc_18{padding:0;text-align:center}._wide_button_z1txc_23{background-color:#4219d0;color:#fff;border-radius:48px;border:none;transition:box-shadow,background-color,.1s;width:100%;height:40px}._wide_button__title_z1txc_32{font-size:14px;font-weight:700}._wide_button_z1txc_23:hover{box-shadow:0 3px 13px #17203166;cursor:pointer}._wide_button_z1txc_23:active{color:#4219d0;border:1px solid #e2e6e9;background-color:#fff;box-shadow:none}._shake_horizontal_z1txc_47{animation:_shake_horizontal_z1txc_47 .8s cubic-bezier(.455,.03,.515,.955) both}@keyframes _shake_horizontal_z1txc_47{0%,to{transform:translate(0)}10%,15%,30%,35%,50%,55%,70%{background-color:#f12;transform:translate(-10px)}20%,25%,40%,45%,60%,65%{background-color:#fff;transform:translate(10px)}80%{transform:translate(8px)}90%{transform:translate(-8px)}}.cartItem{display:flex;flex-direction:column;justify-content:space-between;border:1px solid #e2e6e9;background-color:#fff;box-sizing:border-box;border-radius:16px;padding:16px;grid-column:1/-1}.cartItem:not(:last-child){margin-bottom:16px}@media (min-width: 640px){.cartItem{padding:24px;flex-direction:row;grid-column:1/-1}}@media (min-width: 1200px){.cartItem{grid-column:1/-10}}.cartItem__close{width:16px;height:16px;margin-right:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEkSURBVHgB7ZZBrsIgEIYHjUGrqTxP4hG4mXibdwy9iUtXys66EUFtUg3gzKAr+yUmDWXyf8HOtAA9Pb/OMHdzNlO6qsaqaZo9MCiqn07Vcj7/c+FX14sVEKlrtWrrlVI6tW+QujEagWqvhXCGIhHChRCms2RTe5N/gT+23WQyFj5e3yVAS1nB+XzaAiHcX6+tPf6TBR4SG4pEPPxgchlZAYoEJxwlgJHghqMFchJSSs0Nv+0HIr6ljHMi2hHU8AD6BFpeT6IkPDAABpcLOMwaBvIJRIbMDeycKBKIPe1+Sm6pw4olkGo16rBiCbzr8xKJtwLYIcOVGH4ivFQiSvd74P5OXxhsbRhWz7XF3wO0IWOtNb471t0l4ODNlzn7b9f39PwGVzrKvAX6lCaRAAAAAElFTkSuQmCC);background-size:cover;background-repeat:no-repeat;background-position:center;border:none;cursor:pointer}.cartItem__image{width:auto;height:66px;margin-right:16px;cursor:pointer}.cartItem__image img{width:100%;height:100%;object-fit:cover}.cartItem__info{flex-grow:1;display:flex;justify-content:space-between;align-items:center;margin-right:16px}.cartItem__name{margin-bottom:8px;max-width:366px}@media (min-width: 640px){.cartItem__name{margin-bottom:0}}.cartItem__details{display:flex;align-items:center}.cartItem__price{color:#0f0f11;font-weight:800;font-size:22px;line-height:30px;margin-right:16px;margin-left:24px}.cartItem__count{display:flex;align-items:center}.cartItem__count--button{cursor:pointer;background-color:#fff;display:block;width:32px;height:32px;border:1px solid #e2e6e9;border-radius:32px;padding:8px;display:flex;align-items:center;justify-content:center}.cartItem__count--button-minus,.cartItem__count--button-plus{width:16px;height:16px}.cartItem__count__number{margin:0 8px;font-size:14px;font-weight:600;line-height:21px}.block__information{display:flex;align-items:center;margin-bottom:16px}@media (min-width: 640px){.block__information{margin-bottom:0}}.block__information a{color:#0f0f11}.block__price{display:flex;justify-content:space-between;align-items:center}.block__price--order{justify-content:flex-end}.not-found{display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr)}@media (min-width: 640px){.not-found{--columns: 12}}@media (min-width: 1200px){.not-found{--columns: 24}}.not-found__container{padding:0 16px;max-width:1200px;grid-column:1/-1}@media (min-width: 640px){.not-found__container{padding:24px 36px}}@media (min-width: 1200px){.not-found__container{padding:56px 152px}}.not-found__title{font-size:1.4285714286rem;font-weight:780;margin-top:16px;margin-bottom:4px;grid-column:1/-1}@media (min-width: 640px){.not-found__title{font-size:2.5rem;margin-top:16px;font-weight:800;margin-bottom:16px}}@media (min-width: 1200px){.not-found__title{color:#0f0f11;font-size:2.5rem;line-height:41px;letter-spacing:-1px;font-weight:800;margin-top:16px;margin-bottom:16px}}.not-found__description{color:#89939a;font-size:1.1428571429rem;font-weight:500;line-height:21px;margin-bottom:14px;grid-column:1/-1}@media (min-width: 640px){.not-found__description{font-size:1.4285714286rem}}@media (min-width: 1200px){.not-found__description{font-size:1.7857142857rem}}.not-found__link{color:#0f0f11;display:inline-block;font-weight:700}#_root_i3cxu_1{min-height:100%;display:flex;flex-direction:column}._main_i3cxu_14{flex:1 1 auto}._footer_i3cxu_18{padding:0;text-align:center}._user_i3cxu_23{padding:0 16px;max-width:1200px;margin:0 auto}@media (min-width: 640px){._user_i3cxu_23{padding:0 24px}}._user__list_i3cxu_33{display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr);list-style:none;margin:40px 0 0;padding:0;row-gap:16px}@media (min-width: 640px){._user__list_i3cxu_33{--columns: 12}}@media (min-width: 1200px){._user__list_i3cxu_33{--columns: 24}}._user__input_i3cxu_54{list-style:none;margin:0;padding:0;display:block;grid-column:1/-1}@media (min-width: 640px){._user__input_i3cxu_54{grid-column:3/-3}}@media (min-width: 1200px){._user__input_i3cxu_54{grid-column:5/-5}}._user__input__title_i3cxu_71{margin-bottom:10px}._user__input__text_i3cxu_74{width:100%;grid-column:1/-1;display:block;box-sizing:border-box;height:24px;font-size:16px;border:1px solid #e2e6e9;border-radius:16px;color:#0f0f11;padding:10px}@media (min-width: 640px){._user__input__text_i3cxu_74{height:36px}}._user__input__text_i3cxu_74:hover{border:1px solid #0f0f11}._user__button_i3cxu_94{grid-column:1/-1;margin-top:40px}@media (min-width: 640px){._user__button_i3cxu_94{grid-column:3/-3}}@media (min-width: 1200px){._user__button_i3cxu_94{grid-column:5/-5}}._user__title_i3cxu_108{font-weight:800;font-size:32px;line-height:41px;letter-spacing:-1%;margin-bottom:32px}@media (min-width: 640px){._user__title_i3cxu_108{font-size:48px;line-height:56px}}._error_i3cxu_122{color:red}._wide_button_i3cxu_126{width:100%;height:36px;background-color:#4219d0;font-size:14px;font-weight:700;color:#fff;border-radius:48px;border:none;transition:box-shadow,background-color,.1s}._wide_button_i3cxu_126:hover{box-shadow:0 3px 13px #17203166;cursor:pointer}._wide_button_i3cxu_126:active{color:#4219d0;border:1px solid #e2e6e9;background-color:#fff;box-shadow:none}._shake_horizontal_i3cxu_148{animation:_shake_horizontal_i3cxu_148 .8s cubic-bezier(.455,.03,.515,.955) both}@keyframes _shake_horizontal_i3cxu_148{0%,to{transform:translate(0)}10%,15%,30%,35%,50%,55%,70%{background-color:#f12;transform:translate(-10px)}20%,25%,40%,45%,60%,65%{background-color:#fff;transform:translate(10px)}80%{transform:translate(8px)}90%{transform:translate(-8px)}}#_root_16bpu_1{min-height:100%;display:flex;flex-direction:column}._main_16bpu_14{flex:1 1 auto}._footer_16bpu_18{padding:0;text-align:center}._order_16bpu_23{padding:0 16px;max-width:1200px;margin:0 auto}@media (min-width: 640px){._order_16bpu_23{padding:0 24px}}._order__title_16bpu_33{font-weight:800;font-size:32px;line-height:41px;letter-spacing:-1%;margin-bottom:32px}@media (min-width: 640px){._order__title_16bpu_33{font-size:48px;line-height:56px}}._order_inf_16bpu_46{display:grid;column-gap:16px;--columns: 4;grid-template-columns:repeat(var(--columns),1fr)}@media (min-width: 640px){._order_inf_16bpu_46{--columns: 12}}@media (min-width: 1200px){._order_inf_16bpu_46{--columns: 24}}._order__items_16bpu_62{grid-column:1/-1}@media (min-width: 1200px){._order__items_16bpu_62{grid-column:1/16}}._order__user_16bpu_70{width:100%;max-width:400px}._order__info_16bpu_74{margin-top:32px}._order__info--list_16bpu_77{display:flex;flex-direction:column;gap:8px;padding:0;list-style:none}._order__info--list-item_16bpu_84{display:flex;justify-content:space-between}._order__info--title_16bpu_88{font-size:12px;font-weight:600;line-height:15px;color:#89939a}._order__info--value_16bpu_94{font-size:12px;font-weight:700;line-height:15px;color:#0f0f11}._order__totalInformation_16bpu_100{border:1px solid #e2e6e9;border-radius:16px;padding:24px;margin-bottom:56px;margin-top:32px;grid-column:1/-1;display:flex;flex-direction:column;align-items:center;background-color:#fafbfc}@media (min-width: 1200px){._order__totalInformation_16bpu_100{grid-column:17/-1;margin-bottom:0;margin-top:0}}._order__totalInformation__price_16bpu_119{color:#0f0f11;font-weight:800;font-size:32px;letter-spacing:-1%}._order__totalInformation__text_16bpu_125{color:#89939a;font-weight:600;font-size:14px;line-height:21px}._order__totalInformation__line_16bpu_131{height:1px;width:100%;background-color:#e2e6e9;margin:16px 0}@media (min-width: 1200px){._order__totalInformation__line_16bpu_131{margin:25px 0 24px}}._order__totalInformation__button-checkout_16bpu_142{width:100%;height:48px}html,body{height:100%;margin:0;padding:0}#root{min-height:100%;display:flex;flex-direction:column}.main{flex:1 1 auto}.footer{padding:0;text-align:center}body,hr,button,h1,h2,h3,h4,h5,h6,p,ul,li,a{margin:0;padding:0;text-decoration:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-block-start:0;padding-block-end:0;padding-inline-start:0;padding-inline-end:0}button{background-color:transparent}html{font-size:14px;font-family:Montserrat,sans-serif}button{font-family:Montserrat,sans-serif}p{font-size:1rem;font-weight:600;line-height:21px}.small{font-size:.8571428571rem;font-weight:700;line-height:15px}.uppercase{font-size:.8571428571rem;font-weight:800;line-height:11px;letter-spacing:.04em;text-transform:uppercase}.button{font-size:1rem;font-weight:700}h1{font-size:2.2857142857rem;line-height:41px;letter-spacing:-.01em;font-weight:800}h2{font-size:1.5714285714rem;line-height:31px;letter-spacing:0;font-weight:800}h3{font-size:1.4285714286rem;line-height:26px;letter-spacing:0;font-weight:700}h4{font-size:1.1428571429rem;line-height:20px;letter-spacing:0;font-weight:700}@media (min-width: 640px){h1{font-size:3.4285714286rem;line-height:56px}h2{font-size:2.2857142857rem;line-height:41px;letter-spacing:-.01em}h3{font-size:1.5714285714rem;line-height:31px;letter-spacing:0;font-weight:800}h4{font-size:1.4285714286rem;line-height:26px}} diff --git a/assets/index-yd_8odcd.js b/assets/index-yd_8odcd.js new file mode 100644 index 0000000..31d0236 --- /dev/null +++ b/assets/index-yd_8odcd.js @@ -0,0 +1,87 @@ +var Xv=Object.defineProperty;var Jv=(e,t,n)=>t in e?Xv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gl=(e,t,n)=>Jv(e,typeof t!="symbol"?t+"":t,n);function Zv(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function ip(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sp={exports:{}},Oo={},op={exports:{}},q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zi=Symbol.for("react.element"),eg=Symbol.for("react.portal"),tg=Symbol.for("react.fragment"),ng=Symbol.for("react.strict_mode"),rg=Symbol.for("react.profiler"),ig=Symbol.for("react.provider"),sg=Symbol.for("react.context"),og=Symbol.for("react.forward_ref"),lg=Symbol.for("react.suspense"),ag=Symbol.for("react.memo"),ug=Symbol.for("react.lazy"),rd=Symbol.iterator;function cg(e){return e===null||typeof e!="object"?null:(e=rd&&e[rd]||e["@@iterator"],typeof e=="function"?e:null)}var lp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ap=Object.assign,up={};function Gr(e,t,n){this.props=e,this.context=t,this.refs=up,this.updater=n||lp}Gr.prototype.isReactComponent={};Gr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cp(){}cp.prototype=Gr.prototype;function Tu(e,t,n){this.props=e,this.context=t,this.refs=up,this.updater=n||lp}var Pu=Tu.prototype=new cp;Pu.constructor=Tu;ap(Pu,Gr.prototype);Pu.isPureReactComponent=!0;var id=Array.isArray,dp=Object.prototype.hasOwnProperty,Au={current:null},fp={key:!0,ref:!0,__self:!0,__source:!0};function pp(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)dp.call(t,r)&&!fp.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ne=O[X];if(0>>1;Xi(Kt,B))tti(Bn,Kt)?(O[X]=Bn,O[tt]=B,X=tt):(O[X]=Kt,O[et]=B,X=et);else if(tti(Bn,B))O[X]=Bn,O[tt]=B,X=tt;else break e}}return F}function i(O,F){var B=O.sortIndex-F.sortIndex;return B!==0?B:O.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,m=3,g=!1,_=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(O){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=O)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function y(O){if(w=!1,p(O),!_)if(n(l)!==null)_=!0,Y(x);else{var F=n(u);F!==null&&te(y,F.startTime-O)}}function x(O,F){_=!1,w&&(w=!1,v(C),C=-1),g=!0;var B=m;try{for(p(F),d=n(l);d!==null&&(!(d.expirationTime>F)||O&&!I());){var X=d.callback;if(typeof X=="function"){d.callback=null,m=d.priorityLevel;var ne=X(d.expirationTime<=F);F=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),p(F)}else r(l);d=n(l)}if(d!==null)var ht=!0;else{var et=n(u);et!==null&&te(y,et.startTime-F),ht=!1}return ht}finally{d=null,m=B,g=!1}}var k=!1,j=null,C=-1,P=5,T=-1;function I(){return!(e.unstable_now()-TO||125X?(O.sortIndex=B,t(u,O),n(l)===null&&O===n(u)&&(w?(v(C),C=-1):w=!0,te(y,B-X))):(O.sortIndex=ne,t(l,O),_||g||(_=!0,Y(x))),O},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(O){var F=m;return function(){var B=m;m=F;try{return O.apply(this,arguments)}finally{m=B}}}})(_p);gp.exports=_p;var xg=gp.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sg=A,ut=xg;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ga=Object.prototype.hasOwnProperty,Eg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,od={},ld={};function Cg(e){return ga.call(ld,e)?!0:ga.call(od,e)?!1:Eg.test(e)?ld[e]=!0:(od[e]=!0,!1)}function kg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tg(e,t,n,r){if(t===null||typeof t>"u"||kg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ze[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Nu=/[\-:]([a-z])/g;function ju(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Nu,ju);ze[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Nu,ju);ze[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Nu,ju);ze[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iu(e,t,n,r){var i=ze.hasOwnProperty(t)?ze[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ui(e):""}function Pg(e){switch(e.tag){case 5:return ui(e.type);case 16:return ui("Lazy");case 13:return ui("Suspense");case 19:return ui("SuspenseList");case 0:case 2:case 15:return e=xl(e.type,!1),e;case 11:return e=xl(e.type.render,!1),e;case 1:return e=xl(e.type,!0),e;default:return""}}function xa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case gr:return"Fragment";case vr:return"Portal";case _a:return"Profiler";case Lu:return"StrictMode";case ya:return"Suspense";case wa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xp:return(e.displayName||"Context")+".Consumer";case wp:return(e._context.displayName||"Context")+".Provider";case Mu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ou:return t=e.displayName||null,t!==null?t:xa(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return xa(e(t))}catch{}}return null}function Ag(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xa(t);case 8:return t===Lu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bg(e){var t=Ep(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function as(e){e._valueTracker||(e._valueTracker=bg(e))}function Cp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sa(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ud(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kp(e,t){t=t.checked,t!=null&&Iu(e,"checked",t,!1)}function Ea(e,t){kp(e,t);var n=Mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ca(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ca(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ca(e,t,n){(t!=="number"||Hs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ci=Array.isArray;function br(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ng=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(e){Ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hi[t]=hi[e]})});function bp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hi.hasOwnProperty(e)&&hi[e]?(""+t).trim():t+"px"}function Np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jg=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pa(e,t){if(t){if(jg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Aa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ba=null;function zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Na=null,Nr=null,jr=null;function pd(e){if(e=ns(e)){if(typeof Na!="function")throw Error(z(280));var t=e.stateNode;t&&(t=$o(t),Na(e.stateNode,e.type,t))}}function jp(e){Nr?jr?jr.push(e):jr=[e]:Nr=e}function Ip(){if(Nr){var e=Nr,t=jr;if(jr=Nr=null,pd(e),t)for(e=0;e>>=0,e===0?32:31-(Vg(e)/Ug|0)|0}var cs=64,ds=4194304;function di(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ks(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=di(a):(s&=o,s!==0&&(r=di(s)))}else o=n&~i,o!==0?r=di(o):s!==0&&(r=di(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function es(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Qg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=vi),Sd=" ",Ed=!1;function Jp(e,t){switch(e){case"keyup":return x_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _r=!1;function E_(e,t){switch(e){case"compositionend":return Zp(t);case"keypress":return t.which!==32?null:(Ed=!0,Sd);case"textInput":return e=t.data,e===Sd&&Ed?null:e;default:return null}}function C_(e,t){if(_r)return e==="compositionend"||!Wu&&Jp(e,t)?(e=qp(),js=Bu=wn=null,_r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pd(n)}}function rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ih(){for(var e=window,t=Hs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hs(e.document)}return t}function Hu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function L_(e){var t=ih(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rh(n.ownerDocument.documentElement,n)){if(r!==null&&Hu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Ad(n,s);var o=Ad(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,yr=null,za=null,_i=null,Ra=!1;function bd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ra||yr==null||yr!==Hs(r)||(r=yr,"selectionStart"in r&&Hu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_i&&zi(_i,r)||(_i=r,r=Js(za,"onSelect"),0Sr||(e.current=Ua[Sr],Ua[Sr]=null,Sr--)}function oe(e,t){Sr++,Ua[Sr]=e.current,e.current=t}var On={},Be=Fn(On),Xe=Fn(!1),Jn=On;function Dr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Je(e){return e=e.childContextTypes,e!=null}function eo(){de(Xe),de(Be)}function zd(e,t,n){if(Be.current!==On)throw Error(z(168));oe(Be,t),oe(Xe,n)}function ph(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,Ag(e)||"Unknown",i));return ve({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Jn=Be.current,oe(Be,e),oe(Xe,Xe.current),!0}function Rd(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=ph(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,de(Xe),de(Be),oe(Be,e)):de(Xe),oe(Xe,n)}var en=null,Bo=!1,Ol=!1;function hh(e){en===null?en=[e]:en.push(e)}function H_(e){Bo=!0,hh(e)}function $n(){if(!Ol&&en!==null){Ol=!0;var e=0,t=ie;try{var n=en;for(ie=1;e>=o,i-=o,tn=1<<32-Nt(t)+i|n<C?(P=j,j=null):P=j.sibling;var T=m(v,j,p[C],y);if(T===null){j===null&&(j=P);break}e&&j&&T.alternate===null&&t(v,j),f=s(T,f,C),k===null?x=T:k.sibling=T,k=T,j=P}if(C===p.length)return n(v,j),fe&&Wn(v,C),x;if(j===null){for(;CC?(P=j,j=null):P=j.sibling;var I=m(v,j,T.value,y);if(I===null){j===null&&(j=P);break}e&&j&&I.alternate===null&&t(v,j),f=s(I,f,C),k===null?x=I:k.sibling=I,k=I,j=P}if(T.done)return n(v,j),fe&&Wn(v,C),x;if(j===null){for(;!T.done;C++,T=p.next())T=d(v,T.value,y),T!==null&&(f=s(T,f,C),k===null?x=T:k.sibling=T,k=T);return fe&&Wn(v,C),x}for(j=r(v,j);!T.done;C++,T=p.next())T=g(j,v,C,T.value,y),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?C:T.key),f=s(T,f,C),k===null?x=T:k.sibling=T,k=T);return e&&j.forEach(function(M){return t(v,M)}),fe&&Wn(v,C),x}function S(v,f,p,y){if(typeof p=="object"&&p!==null&&p.type===gr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ls:e:{for(var x=p.key,k=f;k!==null;){if(k.key===x){if(x=p.type,x===gr){if(k.tag===7){n(v,k.sibling),f=i(k,p.props.children),f.return=v,v=f;break e}}else if(k.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===mn&&$d(x)===k.type){n(v,k.sibling),f=i(k,p.props),f.ref=ni(v,k,p),f.return=v,v=f;break e}n(v,k);break}else t(v,k);k=k.sibling}p.type===gr?(f=Xn(p.props.children,v.mode,y,p.key),f.return=v,v=f):(y=Fs(p.type,p.key,p.props,null,v.mode,y),y.ref=ni(v,f,p),y.return=v,v=y)}return o(v);case vr:e:{for(k=p.key;f!==null;){if(f.key===k)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(v,f.sibling),f=i(f,p.children||[]),f.return=v,v=f;break e}else{n(v,f);break}else t(v,f);f=f.sibling}f=Ul(p,v.mode,y),f.return=v,v=f}return o(v);case mn:return k=p._init,S(v,f,k(p._payload),y)}if(ci(p))return _(v,f,p,y);if(Xr(p))return w(v,f,p,y);_s(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,f!==null&&f.tag===6?(n(v,f.sibling),f=i(f,p),f.return=v,v=f):(n(v,f),f=Vl(p,v.mode,y),f.return=v,v=f),o(v)):n(v,f)}return S}var $r=_h(!0),yh=_h(!1),io=Fn(null),so=null,kr=null,Ku=null;function qu(){Ku=kr=so=null}function Xu(e){var t=io.current;de(io),e._currentValue=t}function Ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t){so=e,Ku=kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Ku!==e)if(e={context:e,memoizedValue:t,next:null},kr===null){if(so===null)throw Error(z(308));kr=e,so.dependencies={lanes:0,firstContext:e}}else kr=kr.next=e;return t}var Yn=null;function Ju(e){Yn===null?Yn=[e]:Yn.push(e)}function wh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ju(t)):(n.next=i.next,i.next=n),t.interleaved=n,un(e,r)}function un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function Zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,un(e,n)}return i=r.interleaved,i===null?(t.next=t,Ju(r)):(t.next=i.next,i.next=t),r.interleaved=t,un(e,n)}function Ls(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}function Bd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oo(e,t,n,r){var i=e.updateQueue;vn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var m=a.lane,g=a.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,w=a;switch(m=t,g=n,w.tag){case 1:if(_=w.payload,typeof _=="function"){d=_.call(g,d,m);break e}d=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=w.payload,m=typeof _=="function"?_.call(g,d,m):_,m==null)break e;d=ve({},d,m);break e;case 2:vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[a]:m.push(a))}else g={eventTime:g,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,o|=m;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;m=a,a=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);tr|=o,e.lanes=o,e.memoizedState=d}}function Vd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rl.transition;Rl.transition={};try{e(!1),t()}finally{ie=n,Rl.transition=r}}function Dh(){return xt().memoizedState}function K_(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fh(e))$h(t,n);else if(n=wh(e,t,n,r),n!==null){var i=We();jt(n,e,r,i),Bh(n,t,r)}}function q_(e,t,n){var r=jn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fh(e))$h(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Lt(a,o)){var l=t.interleaved;l===null?(i.next=i,Ju(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=wh(e,t,i,r),n!==null&&(i=We(),jt(n,e,r,i),Bh(n,t,r))}}function Fh(e){var t=e.alternate;return e===he||t!==null&&t===he}function $h(e,t){yi=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var uo={readContext:wt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},X_={readContext:wt,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Wd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Os(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){return Os(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=K_.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:Ud,useDebugValue:lc,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=Ud(!1),t=e[0];return e=Y_.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,i=Dt();if(fe){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),je===null)throw Error(z(349));er&30||kh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Wd(Ph.bind(null,r,s,e),[e]),r.flags|=2048,Wi(9,Th.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Dt(),t=je.identifierPrefix;if(fe){var n=nn,r=tn;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[$t]=t,e[Fi]=r,Xh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Aa(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;iUr&&(t.flags|=128,r=!0,ri(s,!1),t.lanes=4194304)}else{if(!r)if(e=lo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ri(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!fe)return De(t),null}else 2*ye()-s.renderingStartTime>Ur&&n!==1073741824&&(t.flags|=128,r=!0,ri(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ye(),t.sibling=null,n=pe.current,oe(pe,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function sy(e,t){switch(Qu(t),t.tag){case 1:return Je(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),de(Xe),de(Be),nc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tc(t),null;case 13:if(de(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(pe),null;case 4:return Br(),null;case 10:return Xu(t.type._context),null;case 22:case 23:return pc(),null;case 24:return null;default:return null}}var ws=!1,Fe=!1,oy=typeof WeakSet=="function"?WeakSet:Set,U=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){ge(e,t,r)}}var tf=!1;function ly(e,t){if(Da=qs,e=ih(),Hu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)m=d,d=g;for(;;){if(d===e)break t;if(m===n&&++u===i&&(a=o),m===s&&++c===r&&(l=o),(g=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fa={focusedElem:e,selectionRange:n},qs=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var w=_.memoizedProps,S=_.memoizedState,v=t.stateNode,f=v.getSnapshotBeforeUpdate(t.elementType===t.type?w:Et(t.type,w),S);v.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(y){ge(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return _=tf,tf=!1,_}function wi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&tu(t,n,s)}i=i.next}while(i!==r)}}function Wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function em(e){var t=e.alternate;t!==null&&(e.alternate=null,em(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Fi],delete t[Va],delete t[U_],delete t[W_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function tm(e){return e.tag===5||e.tag===3||e.tag===4}function nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zs));else if(r!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var Me=null,Ct=!1;function hn(e,t,n){for(n=n.child;n!==null;)nm(e,t,n),n=n.sibling}function nm(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(zo,n)}catch{}switch(n.tag){case 5:Fe||Tr(n,t);case 6:var r=Me,i=Ct;Me=null,hn(e,t,n),Me=r,Ct=i,Me!==null&&(Ct?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Ct?(e=Me,n=n.stateNode,e.nodeType===8?Ml(e.parentNode,n):e.nodeType===1&&Ml(e,n),Mi(e)):Ml(Me,n.stateNode));break;case 4:r=Me,i=Ct,Me=n.stateNode.containerInfo,Ct=!0,hn(e,t,n),Me=r,Ct=i;break;case 0:case 11:case 14:case 15:if(!Fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&tu(n,t,o),i=i.next}while(i!==r)}hn(e,t,n);break;case 1:if(!Fe&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,hn(e,t,n),Fe=r):hn(e,t,n);break;default:hn(e,t,n)}}function rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new oy),t.forEach(function(r){var i=vy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uy(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,po=0,Z&6)throw Error(z(331));var i=Z;for(Z|=4,U=e.current;U!==null;){var s=U,o=s.child;if(U.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lye()-dc?qn(e,0):cc|=n),Ze(e,t)}function cm(e,t){t===0&&(e.mode&1?(t=ds,ds<<=1,!(ds&130023424)&&(ds=4194304)):t=1);var n=We();e=un(e,t),e!==null&&(es(e,t,n),Ze(e,n))}function my(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cm(e,n)}function vy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),cm(e,n)}var dm;dm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,ry(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&mh(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zs(e,t),e=t.pendingProps;var i=Dr(t,Be.current);Lr(t,n),i=ic(null,t,r,e,i,n);var s=sc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(s=!0,to(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zu(t),i.updater=Uo,t.stateNode=i,i._reactInternals=t,Ya(t,r,e,n),t=Xa(null,t,r,!0,s,n)):(t.tag=0,fe&&s&&Gu(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=_y(r),e=Et(r,e),i){case 0:t=qa(null,t,r,e,n);break e;case 1:t=Jd(null,t,r,e,n);break e;case 11:t=qd(null,t,r,e,n);break e;case 14:t=Xd(null,t,r,Et(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Et(r,i),qa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Et(r,i),Jd(e,t,r,i,n);case 3:e:{if(Yh(t),e===null)throw Error(z(387));r=t.pendingProps,s=t.memoizedState,i=s.element,xh(e,t),oo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Vr(Error(z(423)),t),t=Zd(e,t,r,n,i);break e}else if(r!==i){i=Vr(Error(z(424)),t),t=Zd(e,t,r,n,i);break e}else for(st=An(t.stateNode.containerInfo.firstChild),lt=t,fe=!0,kt=null,n=yh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fr(),r===i){t=cn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Sh(t),e===null&&Ha(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,$a(r,i)?o=null:s!==null&&$a(r,s)&&(t.flags|=32),Qh(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&Ha(t),null;case 13:return Kh(e,t,n);case 4:return ec(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$r(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Et(r,i),qd(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,oe(io,r._currentValue),r._currentValue=o,s!==null)if(Lt(s.value,o)){if(s.children===i.children&&!Xe.current){t=cn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=sn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ga(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(z(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ga(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Lr(t,n),i=wt(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=Et(r,t.pendingProps),i=Et(r.type,i),Xd(e,t,r,i,n);case 15:return Hh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Et(r,i),zs(e,t),t.tag=1,Je(r)?(e=!0,to(t)):e=!1,Lr(t,n),Vh(t,r,i),Ya(t,r,i,n),Xa(null,t,r,!0,e,n);case 19:return qh(e,t,n);case 22:return Gh(e,t,n)}throw Error(z(156,t.tag))};function fm(e,t){return Fp(e,t)}function gy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,r){return new gy(e,t,n,r)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _y(e){if(typeof e=="function")return mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mu)return 11;if(e===Ou)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fs(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")mc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gr:return Xn(n.children,i,s,t);case Lu:o=8,i|=8;break;case _a:return e=_t(12,n,t,i|2),e.elementType=_a,e.lanes=s,e;case ya:return e=_t(13,n,t,i),e.elementType=ya,e.lanes=s,e;case wa:return e=_t(19,n,t,i),e.elementType=wa,e.lanes=s,e;case Sp:return Go(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wp:o=10;break e;case xp:o=9;break e;case Mu:o=11;break e;case Ou:o=14;break e;case mn:o=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=_t(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Xn(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function Go(e,t,n,r){return e=_t(22,e,r,t),e.elementType=Sp,e.lanes=n,e.stateNode={isHidden:!1},e}function Vl(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Ul(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vc(e,t,n,r,i,s,o,a,l){return e=new yy(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=_t(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zu(s),e}function wy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vm)}catch(e){console.error(e)}}vm(),vp.exports=ft;var ky=vp.exports,gm,ff=ky;gm=ff.createRoot,ff.hydrateRoot;var _m={exports:{}},ym={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var is=A;function Ty(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Py=typeof Object.is=="function"?Object.is:Ty,Ay=is.useSyncExternalStore,by=is.useRef,Ny=is.useEffect,jy=is.useMemo,Iy=is.useDebugValue;ym.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=by(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=jy(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var _=o.value;if(i(_,g))return d=_}return d=g}if(_=d,Py(c,g))return _;var w=r(g);return i!==void 0&&i(_,w)?_:(c=g,d=w)}var u=!1,c,d,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var a=Ay(e,s[0],s[1]);return Ny(function(){o.hasValue=!0,o.value=a},[a]),Iy(a),a};_m.exports=ym;var Ly=_m.exports,ot="default"in va?J:va,pf=Symbol.for("react-redux-context"),hf=typeof globalThis<"u"?globalThis:{};function My(){if(!ot.createContext)return{};const e=hf[pf]??(hf[pf]=new Map);let t=e.get(ot.createContext);return t||(t=ot.createContext(null),e.set(ot.createContext,t)),t}var zn=My(),Oy=()=>{throw new Error("uSES not initialized!")};function wc(e=zn){return function(){return ot.useContext(e)}}var wm=wc(),xm=Oy,zy=e=>{xm=e},Ry=(e,t)=>e===t;function Dy(e=zn){const t=e===zn?wm:wc(e),n=(r,i={})=>{const{equalityFn:s=Ry,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ot.useRef(!0);const m=ot.useCallback({[r.name](_){return r(_)}}[r.name],[r,c,o.stabilityCheck]),g=xm(l.addNestedSub,a.getState,u||a.getState,m,s);return ot.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Fy=Dy();function $y(e){e()}function By(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$y(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var mf={notify(){},get:()=>[]};function Vy(e,t){let n,r=mf,i=0,s=!1;function o(w){c();const S=r.subscribe(w);let v=!1;return()=>{v||(v=!0,S(),d())}}function a(){r.notify()}function l(){_.onStateChange&&_.onStateChange()}function u(){return s}function c(){i++,n||(n=e.subscribe(l),r=By())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=mf)}function m(){s||(s=!0,c())}function g(){s&&(s=!1,d())}const _={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return _}var Uy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wy=typeof navigator<"u"&&navigator.product==="ReactNative",Hy=Uy||Wy?ot.useLayoutEffect:ot.useEffect;function Gy({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:s="once"}){const o=ot.useMemo(()=>{const u=Vy(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:s}},[e,r,i,s]),a=ot.useMemo(()=>e.getState(),[e]);Hy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const l=t||zn;return ot.createElement(l.Provider,{value:o},n)}var Qy=Gy;function Sm(e=zn){const t=e===zn?wm:wc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Yy=Sm();function Ky(e=zn){const t=e===zn?Yy:Sm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Em=Ky();zy(Ly.useSyncExternalStoreWithSelector);function Le(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var qy=typeof Symbol=="function"&&Symbol.observable||"@@observable",vf=qy,Wl=()=>Math.random().toString(36).substring(7).split("").join("."),Xy={INIT:`@@redux/INIT${Wl()}`,REPLACE:`@@redux/REPLACE${Wl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wl()}`},vo=Xy;function xc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Cm(e,t,n){if(typeof e!="function")throw new Error(Le(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Le(1));return n(Cm)(e,t)}let r=e,i=t,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((S,v)=>{o.set(v,S)}))}function c(){if(l)throw new Error(Le(3));return i}function d(S){if(typeof S!="function")throw new Error(Le(4));if(l)throw new Error(Le(5));let v=!0;u();const f=a++;return o.set(f,S),function(){if(v){if(l)throw new Error(Le(6));v=!1,u(),o.delete(f),s=null}}}function m(S){if(!xc(S))throw new Error(Le(7));if(typeof S.type>"u")throw new Error(Le(8));if(typeof S.type!="string")throw new Error(Le(17));if(l)throw new Error(Le(9));try{l=!0,i=r(i,S)}finally{l=!1}return(s=o).forEach(f=>{f()}),S}function g(S){if(typeof S!="function")throw new Error(Le(10));r=S,m({type:vo.REPLACE})}function _(){const S=d;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Le(11));function f(){const y=v;y.next&&y.next(c())}return f(),{unsubscribe:S(f)}},[vf](){return this}}}return m({type:vo.INIT}),{dispatch:m,subscribe:d,getState:c,replaceReducer:g,[vf]:_}}function Jy(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:vo.INIT})>"u")throw new Error(Le(12));if(typeof n(void 0,{type:vo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function km(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw a&&a.type,new Error(Le(14));u[d]=_,l=l||_!==g}return l=l||r.length!==Object.keys(o).length,l?u:o}}function go(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Zy(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(Le(15))};const o={getState:i.getState,dispatch:(l,...u)=>s(l,...u)},a=e.map(l=>l(o));return s=go(...a)(i.dispatch),{...i,dispatch:s}}}function e0(e){return xc(e)&&"type"in e&&typeof e.type=="string"}var Tm=Symbol.for("immer-nothing"),gf=Symbol.for("immer-draftable"),ct=Symbol.for("immer-state");function Tt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Wr=Object.getPrototypeOf;function rr(e){return!!e&&!!e[ct]}function dn(e){var t;return e?Pm(e)||Array.isArray(e)||!!e[gf]||!!((t=e.constructor)!=null&&t[gf])||Jo(e)||Zo(e):!1}var t0=Object.prototype.constructor.toString();function Pm(e){if(!e||typeof e!="object")return!1;const t=Wr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===t0}function _o(e,t){Xo(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Xo(e){const t=e[ct];return t?t.type_:Array.isArray(e)?1:Jo(e)?2:Zo(e)?3:0}function uu(e,t){return Xo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Am(e,t,n){const r=Xo(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function n0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Jo(e){return e instanceof Map}function Zo(e){return e instanceof Set}function Gn(e){return e.copy_||e.base_}function cu(e,t){if(Jo(e))return new Map(e);if(Zo(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Pm(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ct];let i=Reflect.ownKeys(r);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=r0),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Sc(r,!0))),e}function r0(){Tt(2)}function el(e){return Object.isFrozen(e)}var i0={};function ir(e){const t=i0[e];return t||Tt(0,e),t}var Gi;function bm(){return Gi}function s0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _f(e,t){t&&(ir("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function du(e){fu(e),e.drafts_.forEach(o0),e.drafts_=null}function fu(e){e===Gi&&(Gi=e.parent_)}function yf(e){return Gi=s0(Gi,e)}function o0(e){const t=e[ct];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ct].modified_&&(du(t),Tt(4)),dn(e)&&(e=yo(t,e),t.parent_||wo(t,e)),t.patches_&&ir("Patches").generateReplacementPatches_(n[ct].base_,e,t.patches_,t.inversePatches_)):e=yo(t,n,[]),du(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Tm?e:void 0}function yo(e,t,n){if(el(t))return t;const r=t[ct];if(!r)return _o(t,(i,s)=>xf(e,r,t,i,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return wo(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let s=i,o=!1;r.type_===3&&(s=new Set(i),i.clear(),o=!0),_o(s,(a,l)=>xf(e,r,i,a,l,n,o)),wo(e,i,!1),n&&e.patches_&&ir("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function xf(e,t,n,r,i,s,o){if(rr(i)){const a=s&&t&&t.type_!==3&&!uu(t.assigned_,r)?s.concat(r):void 0,l=yo(e,i,a);if(Am(n,r,l),rr(l))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(dn(i)&&!el(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;yo(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&wo(e,i)}}function wo(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Sc(t,n)}function l0(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:bm(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=Ec;n&&(i=[r],s=Qi);const{revoke:o,proxy:a}=Proxy.revocable(i,s);return r.draft_=a,r.revoke_=o,a}var Ec={get(e,t){if(t===ct)return e;const n=Gn(e);if(!uu(n,t))return a0(e,n,t);const r=n[t];return e.finalized_||!dn(r)?r:r===Hl(e.base_,t)?(Gl(e),e.copy_[t]=hu(r,e)):r},has(e,t){return t in Gn(e)},ownKeys(e){return Reflect.ownKeys(Gn(e))},set(e,t,n){const r=Nm(Gn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Hl(Gn(e),t),s=i==null?void 0:i[ct];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(n0(n,i)&&(n!==void 0||uu(e.base_,t)))return!0;Gl(e),pu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Hl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Gl(e),pu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Gn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Tt(11)},getPrototypeOf(e){return Wr(e.base_)},setPrototypeOf(){Tt(12)}},Qi={};_o(Ec,(e,t)=>{Qi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Qi.deleteProperty=function(e,t){return Qi.set.call(this,e,t,void 0)};Qi.set=function(e,t,n){return Ec.set.call(this,e[0],t,n,e[0])};function Hl(e,t){const n=e[ct];return(n?Gn(n):e)[t]}function a0(e,t,n){var i;const r=Nm(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Nm(e,t){if(!(t in e))return;let n=Wr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Wr(n)}}function pu(e){e.modified_||(e.modified_=!0,e.parent_&&pu(e.parent_))}function Gl(e){e.copy_||(e.copy_=cu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var u0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const o=this;return function(l=s,...u){return o.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&Tt(6),r!==void 0&&typeof r!="function"&&Tt(7);let i;if(dn(t)){const s=yf(this),o=hu(t,void 0);let a=!0;try{i=n(o),a=!1}finally{a?du(s):fu(s)}return _f(s,r),wf(i,s)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Tm&&(i=void 0),this.autoFreeze_&&Sc(i,!0),r){const s=[],o=[];ir("Patches").generateReplacementPatches_(t,i,s,o),r(s,o)}return i}else Tt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let r,i;return[this.produce(t,n,(o,a)=>{r=o,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){dn(e)||Tt(8),rr(e)&&(e=c0(e));const t=yf(this),n=hu(e,void 0);return n[ct].isManual_=!0,fu(t),n}finishDraft(e,t){const n=e&&e[ct];(!n||!n.isManual_)&&Tt(9);const{scope_:r}=n;return _f(r,t),wf(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ir("Patches").applyPatches_;return rr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function hu(e,t){const n=Jo(e)?ir("MapSet").proxyMap_(e,t):Zo(e)?ir("MapSet").proxySet_(e,t):l0(e,t);return(t?t.scope_:bm()).drafts_.push(n),n}function c0(e){return rr(e)||Tt(10,e),jm(e)}function jm(e){if(!dn(e)||el(e))return e;const t=e[ct];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cu(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cu(e,!0);return _o(n,(r,i)=>{Am(n,r,jm(i))}),t&&(t.finalized_=!1),n}var dt=new u0,Im=dt.produce;dt.produceWithPatches.bind(dt);dt.setAutoFreeze.bind(dt);dt.setUseStrictShallowCopy.bind(dt);dt.applyPatches.bind(dt);dt.createDraft.bind(dt);dt.finishDraft.bind(dt);function Lm(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var d0=Lm(),f0=Lm,p0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?go:go.apply(null,arguments)},h0=e=>e&&typeof e.match=="function";function Ei(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(at(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>e0(r)&&r.type===e,n}var Mm=class pi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,pi.prototype)}static get[Symbol.species](){return pi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new pi(...t[0].concat(this)):new pi(...t.concat(this))}};function Sf(e){return dn(e)?Im(e,()=>{}):e}function mu(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(at(10));const r=n.insert(t,e);return e.set(t,r),r}function m0(e){return typeof e=="boolean"}var v0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let o=new Mm;return n&&(m0(n)?o.push(d0):o.push(f0(n.extraArgument))),o},g0="RTK_autoBatch",Om=e=>t=>{setTimeout(t,e)},_0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Om(10),y0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,o=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?_0:e.type==="callback"?e.queueNotification:Om(e.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),m=r.subscribe(d);return a.add(c),()=>{m(),a.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[g0]),s=!i,s&&(o||(o=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},w0=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Mm(e);return r&&i.push(y0(typeof r=="object"?r:void 0)),i};function x0(e){const t=v0(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:s=void 0,enhancers:o=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(xc(n))a=km(n);else throw new Error(at(1));let l;typeof r=="function"?l=r(t):l=t();let u=go;i&&(u=p0({trace:!1,...typeof i=="object"&&i}));const c=Zy(...l),d=w0(c);let m=typeof o=="function"?o(d):d();const g=u(...m);return Cm(a,s,g)}function zm(e){const t={},n=[];let r;const i={addCase(s,o){const a=typeof s=="string"?s:s.type;if(!a)throw new Error(at(28));if(a in t)throw new Error(at(29));return t[a]=o,i},addMatcher(s,o){return n.push({matcher:s,reducer:o}),i},addDefaultCase(s){return r=s,i}};return e(i),[t,n,r]}function S0(e){return typeof e=="function"}function E0(e,t){let[n,r,i]=zm(t),s;if(S0(e))s=()=>Sf(e());else{const a=Sf(e);s=()=>a}function o(a=s(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(rr(c)){const g=d(c,l);return g===void 0?c:g}else{if(dn(c))return Im(c,m=>d(m,l));{const m=d(c,l);if(m===void 0){if(c===null)return c;throw new Error(at(9))}return m}}return c},a)}return o.getInitialState=s,o}var C0=(e,t)=>h0(e)?e.match(t):e(t);function k0(...e){return t=>e.some(n=>C0(n,t))}var T0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rm=(e=21)=>{let t="",n=e;for(;n--;)t+=T0[Math.random()*64|0];return t},P0=["name","message","stack","code"],Ql=class{constructor(e,t){gl(this,"_type");this.payload=e,this.meta=t}},Ef=class{constructor(e,t){gl(this,"_type");this.payload=e,this.meta=t}},A0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of P0)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tl=(()=>{function e(t,n,r){const i=Ei(t+"/fulfilled",(l,u,c,d)=>({payload:l,meta:{...d||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),s=Ei(t+"/pending",(l,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:l,requestStatus:"pending"}})),o=Ei(t+"/rejected",(l,u,c,d,m)=>({payload:d,error:(r&&r.serializeError||A0)(l||"Rejected"),meta:{...m||{},arg:c,requestId:u,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function a(l){return(u,c,d)=>{const m=r!=null&&r.idGenerator?r.idGenerator(l):Rm(),g=new AbortController;let _,w;function S(f){w=f,g.abort()}const v=async function(){var y,x;let f;try{let k=(y=r==null?void 0:r.condition)==null?void 0:y.call(r,l,{getState:c,extra:d});if(N0(k)&&(k=await k),k===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const j=new Promise((C,P)=>{_=()=>{P({name:"AbortError",message:w||"Aborted"})},g.signal.addEventListener("abort",_)});u(s(m,l,(x=r==null?void 0:r.getPendingMeta)==null?void 0:x.call(r,{requestId:m,arg:l},{getState:c,extra:d}))),f=await Promise.race([j,Promise.resolve(n(l,{dispatch:u,getState:c,extra:d,requestId:m,signal:g.signal,abort:S,rejectWithValue:(C,P)=>new Ql(C,P),fulfillWithValue:(C,P)=>new Ef(C,P)})).then(C=>{if(C instanceof Ql)throw C;return C instanceof Ef?i(C.payload,m,l,C.meta):i(C,m,l)})])}catch(k){f=k instanceof Ql?o(null,m,l,k.payload,k.meta):o(k,m,l)}finally{_&&g.signal.removeEventListener("abort",_)}return r&&!r.dispatchConditionRejection&&o.match(f)&&f.meta.condition||u(f),f}();return Object.assign(v,{abort:S,requestId:m,arg:l,unwrap(){return v.then(b0)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:i,settled:k0(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function b0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function N0(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var j0=Symbol.for("rtk-slice-createasyncthunk");function I0(e,t){return`${e}/${t}`}function L0({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[j0];return function(i){const{name:s,reducerPath:o=s}=i;if(!s)throw new Error(at(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(O0()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(p,y){const x=typeof p=="string"?p:p.type;if(!x)throw new Error(at(12));if(x in u.sliceCaseReducersByType)throw new Error(at(13));return u.sliceCaseReducersByType[x]=y,c},addMatcher(p,y){return u.sliceMatchers.push({matcher:p,reducer:y}),c},exposeAction(p,y){return u.actionCreators[p]=y,c},exposeCaseReducer(p,y){return u.sliceCaseReducersByName[p]=y,c}};l.forEach(p=>{const y=a[p],x={reducerName:p,type:I0(s,p),createNotation:typeof i.reducers=="function"};R0(y)?F0(x,y,c,t):z0(x,y,c)});function d(){const[p={},y=[],x=void 0]=typeof i.extraReducers=="function"?zm(i.extraReducers):[i.extraReducers],k={...p,...u.sliceCaseReducersByType};return E0(i.initialState,j=>{for(let C in k)j.addCase(C,k[C]);for(let C of u.sliceMatchers)j.addMatcher(C.matcher,C.reducer);for(let C of y)j.addMatcher(C.matcher,C.reducer);x&&j.addDefaultCase(x)})}const m=p=>p,g=new Map;let _;function w(p,y){return _||(_=d()),_(p,y)}function S(){return _||(_=d()),_.getInitialState()}function v(p,y=!1){function x(j){let C=j[p];return typeof C>"u"&&y&&(C=S()),C}function k(j=m){const C=mu(g,y,{insert:()=>new WeakMap});return mu(C,j,{insert:()=>{const P={};for(const[T,I]of Object.entries(i.selectors??{}))P[T]=M0(I,j,S,y);return P}})}return{reducerPath:p,getSelectors:k,get selectors(){return k(x)},selectSlice:x}}const f={name:s,reducer:w,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...v(o),injectInto(p,{reducerPath:y,...x}={}){const k=y??o;return p.inject({reducerPath:k,reducer:w},x),{...f,...v(k,!0)}}};return f}}function M0(e,t,n,r){function i(s,...o){let a=t(s);return typeof a>"u"&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var ar=L0();function O0(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function z0({type:e,reducerName:t,createNotation:n},r,i){let s,o;if("reducer"in r){if(n&&!D0(r))throw new Error(at(17));s=r.reducer,o=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?Ei(e,o):Ei(e))}function R0(e){return e._reducerDefinitionType==="asyncThunk"}function D0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function F0({type:e,reducerName:t},n,r,i){if(!i)throw new Error(at(18));const{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:c}=n,d=i(e,s,c);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:o||Es,pending:a||Es,rejected:l||Es,settled:u||Es})}function Es(){}var $0=e=>"reducerPath"in e&&typeof e.reducerPath=="string",B0=e=>e.flatMap(t=>$0(t)?[[t.reducerPath,t.reducer]]:Object.entries(t)),Cc=Symbol.for("rtk-state-proxy-original"),V0=e=>!!e&&!!e[Cc],U0=new WeakMap,W0=(e,t)=>mu(U0,e,{insert:()=>new Proxy(e,{get:(n,r,i)=>{if(r===Cc)return n;const s=Reflect.get(n,r,i);if(typeof s>"u"){const o=t[r.toString()];if(o){const a=o(void 0,{type:Rm()});if(typeof a>"u")throw new Error(at(24));return a}}return s}})}),H0=e=>{if(!V0(e))throw new Error(at(25));return e[Cc]},G0=(e={})=>e;function Q0(...e){const t=Object.fromEntries(B0(e)),n=()=>Object.keys(t).length?km(t):G0;let r=n();function i(a,l){return r(a,l)}i.withLazyLoadedSlices=()=>i;const s=(a,l={})=>{const{reducerPath:u,reducer:c}=a,d=t[u];return!l.overrideExisting&&d&&d!==c?(typeof process<"u",i):(t[u]=c,r=n(),i)},o=Object.assign(function(l,u){return function(d,...m){return l(W0(u?u(d,...m):d,t),...m)}},{original:H0});return Object.assign(i,{inject:s,selector:o})}function at(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Or=(e=>(e.Phone="phones",e.Tablet="tablets",e.Accessory="accessories",e))(Or||{});const Yi="https://raw.githubusercontent.com/mate-academy/react_phone-catalog/master/public/";function Y0(e){return new Promise(t=>{setTimeout(t,e)})}function nl(e,t=!0){const n=Yi+e+(t?".json":"");return Y0(300).then(()=>fetch(n)).then(r=>r.json())}const Ki=()=>nl("api/phones"),kc=()=>nl("api/tablets"),K0=()=>nl("api/products"),Tc=()=>nl("api/accessories"),q0=(e,t)=>{switch(!0){case e.includes(Or.Phone):return Ki().then(n=>n.find(r=>r.id===t));case e.includes(Or.Tablet):return kc().then(n=>n.find(r=>r.id===t));case e.includes(Or.Accessory):return Tc().then(n=>n.find(r=>r.id===t));default:return Ki().then(n=>n.find(r=>r.id===t))}},X0={accessories:[],isAccessoryLoading:!1,errorOnAccessories:""},$s=tl("accessories/loadAccessories",()=>Tc()),Dm=ar({name:"accessories",initialState:X0,reducers:{setAccessories:(e,t)=>{e.accessories=t.payload}},extraReducers(e){e.addCase($s.pending,t=>{t.isAccessoryLoading=!0}),e.addCase($s.fulfilled,(t,n)=>{t.accessories=n.payload,t.isAccessoryLoading=!1}),e.addCase($s.rejected,t=>{t.errorOnAccessories="error with accessories loading",t.isAccessoryLoading=!1})}});Dm.actions;const J0={phones:[],isPhonesLoading:!1,errorOnPhones:""},Ci=tl("phones/loadPhones",()=>Ki()),Fm=ar({name:"phones",initialState:J0,reducers:{setPhones:(e,t)=>{e.phones=t.payload}},extraReducers(e){e.addCase(Ci.pending,t=>{t.isPhonesLoading=!0}),e.addCase(Ci.fulfilled,(t,n)=>{t.phones=n.payload,t.isPhonesLoading=!1}),e.addCase(Ci.rejected,t=>{t.errorOnPhones="error with phones loading",t.isPhonesLoading=!1})}});Fm.actions;const Z0={products:[],isProductsLoading:!1,errorOnProducts:""},Yl=tl("products/loadProducts",()=>K0()),$m=ar({name:"products",initialState:Z0,reducers:{setProducts:(e,t)=>{e.products=t.payload}},extraReducers(e){e.addCase(Yl.pending,t=>{t.isProductsLoading=!0}),e.addCase(Yl.fulfilled,(t,n)=>{t.products=n.payload,t.isProductsLoading=!1}),e.addCase(Yl.rejected,t=>{t.errorOnProducts="error with products loading",t.isProductsLoading=!1})}});$m.actions;const ew={tablets:[],isTabletsLoading:!1,errorOnTablets:""},Bs=tl("tablets/loadTablets",()=>kc()),Bm=ar({name:"tablets",initialState:ew,reducers:{setTablets:(e,t)=>{e.tablets=t.payload}},extraReducers(e){e.addCase(Bs.pending,t=>{t.isTabletsLoading=!0}),e.addCase(Bs.fulfilled,(t,n)=>{t.tablets=n.payload,t.isTabletsLoading=!1}),e.addCase(Bs.rejected,t=>{t.errorOnTablets="error with tablets loading",t.isTabletsLoading=!1})}});Bm.actions;const tw={cartItems:JSON.parse(localStorage.getItem("cart")||"[]")},Pc=ar({name:"cart",initialState:tw,reducers:{addToCart:(e,t)=>{const n=e.cartItems.find(r=>r.item.id===t.payload.id);n?n.count+=1:e.cartItems.push({item:t.payload,count:1}),localStorage.setItem("cart",JSON.stringify(e.cartItems))},removeFromCart:(e,t)=>{e.cartItems=e.cartItems.filter(n=>n.item.id!==t.payload),localStorage.setItem("cart",JSON.stringify(e.cartItems))},increaseQuantity:(e,t)=>{const n=e.cartItems.find(r=>r.item.id===t.payload);n&&(n.count+=1),localStorage.setItem("cart",JSON.stringify(e.cartItems))},decreaseQuantity:(e,t)=>{const n=e.cartItems.find(r=>r.item.id===t.payload);n&&n.count>1?n.count-=1:e.cartItems=e.cartItems.filter(r=>r.item.id!==t.payload),localStorage.setItem("cart",JSON.stringify(e.cartItems))},clearCart:e=>{e.cartItems=[],localStorage.removeItem("cart")}},selectors:{totalCost:e=>e.cartItems.reduce((t,n)=>t+n.item.priceRegular*n.count,0),totalQuentity:e=>e.cartItems.reduce((t,n)=>t+n.item.priceRegular*n.count,0)}}),{addToCart:nw,removeFromCart:Vm,clearCart:rw,increaseQuantity:iw,decreaseQuantity:sw}=Pc.actions;Pc.reducer;const Um=e=>e.cartItems.reduce((t,n)=>t+n.item.priceDiscount*n.count,0),Wm=e=>e.cartItems.reduce((t,n)=>t+n.count,0),ow={favoriteItems:JSON.parse(localStorage.getItem("favorites")||"[]"),favCount:JSON.parse(localStorage.getItem("favCount")||"0")},Hm=ar({name:"favorites",initialState:ow,reducers:{addToFavorites:(e,t)=>{e.favoriteItems.find(r=>r.id===t.payload.id)!==void 0?(e.favoriteItems=e.favoriteItems.filter(r=>r.id!==t.payload.id),e.favCount-=1):(e.favoriteItems.push(t.payload),e.favCount+=1),localStorage.setItem("favCount",JSON.stringify(e.favCount)),localStorage.setItem("favorites",JSON.stringify(e.favoriteItems))}}}),{addToFavorites:lw}=Hm.actions,aw=()=>{const e=localStorage.getItem("orderCart");return e?JSON.parse(e):[]},uw=()=>{const e=localStorage.getItem("userData");return e?JSON.parse(e):null},cw={user:uw(),cartItems:aw(),totalPrice:0},Ac=ar({name:"order",initialState:cw,reducers:{addToOrder:(e,t)=>{t.payload.forEach(n=>{const r=e.cartItems.find(i=>i.item.id===n.item.id);r?r.count+=n.count:e.cartItems.push(n)}),localStorage.setItem("orderCart",JSON.stringify(e.cartItems))},removeFromOrder:(e,t)=>{e.cartItems=e.cartItems.filter(n=>n.item.id!==t.payload),localStorage.setItem("orderCart",JSON.stringify(e.cartItems))},increaseQuantity:(e,t)=>{const n=e.cartItems.find(r=>r.item.id===t.payload);n&&(n.count+=1),localStorage.setItem("orderCart",JSON.stringify(e.cartItems))},decreaseQuantity:(e,t)=>{const n=e.cartItems.find(r=>r.item.id===t.payload);n&&n.count>1?n.count-=1:e.cartItems=e.cartItems.filter(r=>r.item.id!==t.payload),localStorage.setItem("orderCart",JSON.stringify(e.cartItems))},clearOrder:e=>{e.cartItems=[],localStorage.removeItem("orderCart")},setUser:(e,t)=>{e.user=t.payload,localStorage.setItem("userData",JSON.stringify(t.payload))}},selectors:{totalCost:e=>e.cartItems.reduce((t,n)=>t+n.item.priceRegular*n.count,0),totalQuantity:e=>e.cartItems.reduce((t,n)=>t+n.count,0)}}),{setUser:dw,addToOrder:fw,removeFromOrder:hP,increaseQuantity:mP,decreaseQuantity:vP,clearOrder:gP}=Ac.actions;Ac.reducer;const pw=Q0(Dm,Fm,$m,Bm,Pc,Hm,Ac),hw=x0({reducer:pw});/** + * @remix-run/router v1.19.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vw(){return Math.random().toString(36).substr(2,8)}function kf(e,t){return{usr:e.state,key:e.key,idx:t}}function vu(e,t,n,r){return n===void 0&&(n=null),qi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||vw()})}function xo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ur(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function gw(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Sn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(qi({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=Sn.Pop;let S=c(),v=S==null?null:S-u;u=S,l&&l({action:a,location:w.location,delta:v})}function m(S,v){a=Sn.Push;let f=vu(w.location,S,v);n&&n(f,S),u=c()+1;let p=kf(f,u),y=w.createHref(f);try{o.pushState(p,"",y)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(y)}s&&l&&l({action:a,location:w.location,delta:1})}function g(S,v){a=Sn.Replace;let f=vu(w.location,S,v);n&&n(f,S),u=c();let p=kf(f,u),y=w.createHref(f);o.replaceState(p,"",y),s&&l&&l({action:a,location:w.location,delta:0})}function _(S){let v=i.location.origin!=="null"?i.location.origin:i.location.href,f=typeof S=="string"?S:xo(S);return f=f.replace(/ $/,"%20"),me(v,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,v)}let w={get action(){return a},get location(){return e(i,o)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Cf,d),l=S,()=>{i.removeEventListener(Cf,d),l=null}},createHref(S){return t(i,S)},createURL:_,encodeLocation(S){let v=_(S);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:g,go(S){return o.go(S)}};return w}var Tf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tf||(Tf={}));function _w(e,t,n){return n===void 0&&(n="/"),yw(e,t,n,!1)}function yw(e,t,n,r){let i=typeof t=="string"?ur(t):t,s=Hr(i.pathname||"/",n);if(s==null)return null;let o=Gm(e);ww(o);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ln([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(me(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Gm(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Pw(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Qm(s.path))i(s,o,l)}),t}function Qm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Qm(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function ww(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Aw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xw=/^:[\w-]+$/,Sw=3,Ew=2,Cw=1,kw=10,Tw=-2,Pf=e=>e==="*";function Pw(e,t){let n=e.split("/"),r=n.length;return n.some(Pf)&&(r+=Tw),t&&(r+=Ew),n.filter(i=>!Pf(i)).reduce((i,s)=>i+(xw.test(s)?Sw:s===""?Cw:kw),r)}function Aw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function bw(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a{let{paramName:m,isOptional:g}=c;if(m==="*"){let w=a[d]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const _=a[d];return g&&!_?u[m]=void 0:u[m]=(_||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function Nw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function jw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Hr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Iw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:Lw(n,t):t,search:zw(r),hash:Rw(i)}}function Lw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Kl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Mw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nc(e,t){let n=Mw(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jc(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ur(e):(i=qi({},e),me(!i.pathname||!i.pathname.includes("?"),Kl("?","pathname","search",i)),me(!i.pathname||!i.pathname.includes("#"),Kl("#","pathname","hash",i)),me(!i.search||!i.search.includes("#"),Kl("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),d-=1;i.pathname=m.join("/")}a=d>=0?t[d]:"/"}let l=Iw(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ln=e=>e.join("/").replace(/\/\/+/g,"/"),Ow=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ym=["post","put","patch","delete"];new Set(Ym);const Fw=["get",...Ym];new Set(Fw);/** + * React Router v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),A.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=jc(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ln([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}const Vw=A.createContext(null);function Uw(e){let t=A.useContext(Qt).outlet;return t&&A.createElement(Vw.Provider,{value:e},t)}function Ww(){let{matches:e}=A.useContext(Qt),t=e[e.length-1];return t?t.params:{}}function sl(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=A.useContext(pn),{matches:i}=A.useContext(Qt),{pathname:s}=Yt(),o=JSON.stringify(Nc(i,r.v7_relativeSplatPath));return A.useMemo(()=>jc(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function Hw(e,t){return Gw(e,t)}function Gw(e,t,n,r){Kr()||me(!1);let{navigator:i}=A.useContext(pn),{matches:s}=A.useContext(Qt),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Yt(),c;if(t){var d;let S=typeof t=="string"?ur(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||me(!1),c=S}else c=u;let m=c.pathname||"/",g=m;if(l!=="/"){let S=l.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let _=_w(e,{pathname:g}),w=Xw(_&&_.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Ln([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:Ln([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&w?A.createElement(il.Provider,{value:{location:Xi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Sn.Pop}},w):w}function Qw(){let e=t1(),t=Dw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:i},n):null,null)}const Yw=A.createElement(Qw,null);class Kw extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?A.createElement(Qt.Provider,{value:this.props.routeContext},A.createElement(qm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qw(e){let{routeContext:t,match:n,children:r}=e,i=A.useContext(rl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),A.createElement(Qt.Provider,{value:t},r)}function Xw(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||me(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,m)=>{let g,_=!1,w=null,S=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||Yw,l&&(u<0&&m===0?(_=!0,S=null):u===m&&(_=!0,S=d.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,m+1)),f=()=>{let p;return g?p=w:_?p=S:d.route.Component?p=A.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=c,A.createElement(qw,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?A.createElement(Kw,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:f(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):f()},null)}var Jm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jm||{}),Eo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eo||{});function Jw(e){let t=A.useContext(rl);return t||me(!1),t}function Zw(e){let t=A.useContext(Km);return t||me(!1),t}function e1(e){let t=A.useContext(Qt);return t||me(!1),t}function Zm(e){let t=e1(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function t1(){var e;let t=A.useContext(qm),n=Zw(Eo.UseRouteError),r=Zm(Eo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function n1(){let{router:e}=Jw(Jm.UseNavigateStable),t=Zm(Eo.UseNavigateStable),n=A.useRef(!1);return Xm(()=>{n.current=!0}),A.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Xi({fromRouteId:t},s)))},[e,t])}function r1(e){let{to:t,replace:n,state:r,relative:i}=e;Kr()||me(!1);let{future:s,static:o}=A.useContext(pn),{matches:a}=A.useContext(Qt),{pathname:l}=Yt(),u=qr(),c=jc(t,Nc(a,s.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return A.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function i1(e){return Uw(e.context)}function Ae(e){me(!1)}function s1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Sn.Pop,navigator:s,static:o=!1,future:a}=e;Kr()&&me(!1);let l=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:l,navigator:s,static:o,future:Xi({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=ur(r));let{pathname:c="/",search:d="",hash:m="",state:g=null,key:_="default"}=r,w=A.useMemo(()=>{let S=Hr(c,l);return S==null?null:{location:{pathname:S,search:d,hash:m,state:g,key:_},navigationType:i}},[l,c,d,m,g,_,i]);return w==null?null:A.createElement(pn.Provider,{value:u},A.createElement(il.Provider,{children:n,value:w}))}function o1(e){let{children:t,location:n}=e;return Hw(gu(t),n)}new Promise(()=>{});function gu(e,t){t===void 0&&(t=[]);let n=[];return A.Children.forEach(e,(r,i)=>{if(!A.isValidElement(r))return;let s=[...t,i];if(r.type===A.Fragment){n.push.apply(n,gu(r.props.children,s));return}r.type!==Ae&&me(!1),!r.props.index||!r.props.children||me(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=gu(r.props.children,s)),n.push(o)}),n}/** + * React Router DOM v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function l1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function a1(e,t){return e.button===0&&(!t||t==="_self")&&!l1(e)}const u1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],c1=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],d1="6";try{window.__reactRouterVersion=d1}catch{}const f1=A.createContext({isTransitioning:!1}),p1="startTransition",Af=va[p1];function h1(e){let{basename:t,children:n,future:r,window:i}=e,s=A.useRef();s.current==null&&(s.current=mw({window:i,v5Compat:!0}));let o=s.current,[a,l]=A.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=A.useCallback(d=>{u&&Af?Af(()=>l(d)):l(d)},[l,u]);return A.useLayoutEffect(()=>o.listen(c),[o,c]),A.createElement(s1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const m1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rn=A.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,m=ev(t,u1),{basename:g}=A.useContext(pn),_,w=!1;if(typeof u=="string"&&v1.test(u)&&(_=u,m1))try{let p=new URL(window.location.href),y=u.startsWith("//")?new URL(p.protocol+u):new URL(u),x=Hr(y.pathname,g);y.origin===p.origin&&x!=null?u=x+y.search+y.hash:w=!0}catch{}let S=$w(u,{relative:i}),v=_1(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function f(p){r&&r(p),p.defaultPrevented||v(p)}return A.createElement("a",Co({},m,{href:_||S,onClick:w||s?r:f,ref:n,target:l}))}),it=A.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:a,to:l,unstable_viewTransition:u,children:c}=t,d=ev(t,c1),m=sl(l,{relative:d.relative}),g=Yt(),_=A.useContext(Km),{navigator:w,basename:S}=A.useContext(pn),v=_!=null&&y1(m)&&u===!0,f=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,p=g.pathname,y=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;i||(p=p.toLowerCase(),y=y?y.toLowerCase():null,f=f.toLowerCase()),y&&S&&(y=Hr(y,S)||y);const x=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let k=p===f||!o&&p.startsWith(f)&&p.charAt(x)==="/",j=y!=null&&(y===f||!o&&y.startsWith(f)&&y.charAt(f.length)==="/"),C={isActive:k,isPending:j,isTransitioning:v},P=k?r:void 0,T;typeof s=="function"?T=s(C):T=[s,k?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let I=typeof a=="function"?a(C):a;return A.createElement(Rn,Co({},d,{"aria-current":P,className:T,ref:n,style:I,to:l,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});var _u;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_u||(_u={}));var bf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bf||(bf={}));function g1(e){let t=A.useContext(rl);return t||me(!1),t}function _1(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,l=qr(),u=Yt(),c=sl(e,{relative:o});return A.useCallback(d=>{if(a1(d,n)){d.preventDefault();let m=r!==void 0?r:xo(u)===xo(c);l(e,{replace:m,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,s,o,a])}function y1(e,t){t===void 0&&(t={});let n=A.useContext(f1);n==null&&me(!1);let{basename:r}=g1(_u.useViewTransitionState),i=sl(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Hr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Hr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return So(i.pathname,o)!=null||So(i.pathname,s)!=null}const w1="_root_lheha_1",x1="_main_lheha_14",S1="_footer_lheha_18",E1="_nav_lheha_23",C1="_nav__icon_lheha_46",ql={root:w1,main:x1,footer:S1,nav:E1,nav__icon:C1,"nav__icon--active":"_nav__icon--active_lheha_73"};var tv={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o{const t=({isActive:n})=>Ne(ql.nav__icon,{[ql["nav__icon--active"]]:n});return h.jsxs("div",{className:ql.nav,children:[h.jsx(it,{to:"/",className:t,onClick:e,children:"Home"}),h.jsx(it,{to:"/phones",className:t,onClick:e,children:"Phones"}),h.jsx(it,{to:"/tablets",className:t,onClick:e,children:"Tablets"}),h.jsx(it,{to:"/accessories",className:t,onClick:e,children:"Accessories"})]})},T1="_root_umq26_1",P1="_main_umq26_14",A1="_footer_umq26_18",b1="_header_umq26_23",N1="_header__menu_umq26_32",j1="_header__logo_umq26_36",I1="_header__icons_umq26_50",L1="_dropdown_umq26_156",K={root:T1,main:P1,footer:A1,header:b1,header__menu:N1,header__logo:j1,header__icons:I1,"header__icons--like":"_header__icons--like_umq26_53","header__icons--basket":"_header__icons--basket_umq26_76","header__icons--menu":"_header__icons--menu_umq26_100","header__icons--close":"_header__icons--close_umq26_110","header__icon--like":"_header__icon--like_umq26_120","header__icon--menu":"_header__icon--menu_umq26_132","header__icon--basket":"_header__icon--basket_umq26_137","header__icon--active":"_header__icon--active_umq26_141","header__icon--close":"_header__icon--close_umq26_150",dropdown:L1,"dropdown-content":"_dropdown-content_umq26_168","dropdown-icons":"_dropdown-icons_umq26_174","dropdown__icons--like":"_dropdown__icons--like_umq26_178","dropdown__icons--basket":"_dropdown__icons--basket_umq26_189","dropdown__icon--like":"_dropdown__icon--like_umq26_200","dropdown__icon--basket":"_dropdown__icon--basket_umq26_205","dropdown__icon--active":"_dropdown__icon--active_umq26_209","favProduct-and-product-count":"_favProduct-and-product-count_umq26_218","favProduct-and-product-count__meaning":"_favProduct-and-product-count__meaning_umq26_227","favProduct-and-product-count-container":"_favProduct-and-product-count-container_umq26_232","favProduct-and-product-count-container--visible":"_favProduct-and-product-count-container--visible_umq26_247"},nv="/React.ts-GroupProject/assets/Logo-BeBEg1s_.png",cr=Em,$e=Fy,M1=()=>{const[e,t]=A.useState(window.innerWidth<640),[n,r]=A.useState(!1),{favCount:i}=$e(l=>l.favorites),{cartItems:s}=$e(l=>l.cart),o=s.reduce((l,u)=>l+u.count,0);A.useEffect(()=>{const l=()=>{window.innerWidth>639&&n&&r(!1)};return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[n]),A.useEffect(()=>{const l=()=>{t(window.innerWidth<640)};return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]);const a=()=>{r(!n)};return h.jsxs(h.Fragment,{children:[h.jsxs("header",{className:K.header,children:[h.jsxs("div",{className:K.header__menu,children:[h.jsx(it,{to:"/home",onClick:a,children:h.jsx("img",{className:K.header__logo,src:nv,alt:"Nice Gadgets logo"})}),!e&&h.jsx(Nf,{handleMenuOpen:a})]}),h.jsxs("div",{className:K.header__icons,children:[!e&&h.jsxs(h.Fragment,{children:[h.jsx(it,{to:"/favorites",onClick:a,className:({isActive:l})=>Ne([K["header__icon--like"]],{[K["header__icon--active"]]:l}),children:h.jsx("div",{className:K["header__icons--like"],children:h.jsx("div",{className:Ne(K["favProduct-and-product-count-container"],{[K["favProduct-and-product-count-container--visible"]]:i>0}),children:h.jsx("div",{className:K["favProduct-and-product-count"],children:h.jsx("p",{className:K["favProduct-and-product-count__meaning"],children:i})})})})}),h.jsx(it,{to:"/cart",onClick:a,className:({isActive:l})=>Ne([K["header__icon--basket"]],{[K["header__icon--active"]]:l}),children:h.jsx("div",{className:K["header__icons--basket"],children:h.jsx("div",{className:Ne(K["favProduct-and-product-count-container"],{[K["favProduct-and-product-count-container--visible"]]:o>0}),children:h.jsx("div",{className:K["favProduct-and-product-count"],children:h.jsx("p",{className:K["favProduct-and-product-count__meaning"],children:o})})})})})]}),e&&h.jsx("div",{className:n?K["header__icon--close"]:K["header__icon--menu"],onClick:a,children:h.jsx("div",{className:n?K["header__icons--close"]:K["header__icons--menu"]})})]})]}),e&&n&&h.jsxs("div",{className:K.dropdown,children:[h.jsx("div",{className:K["dropdown-content"],children:h.jsx(Nf,{handleMenuOpen:a})}),h.jsxs("div",{className:K["dropdown-icons"],children:[h.jsx(it,{to:"/favorites",onClick:a,className:({isActive:l})=>Ne([K["dropdown__icon--like"]],{[K["dropdown__icon--active"]]:l}),children:h.jsx("div",{className:K["dropdown__icons--like"],children:h.jsx("div",{className:Ne(K["favProduct-and-product-count-container"],{[K["favProduct-and-product-count-container--visible"]]:i>0}),children:h.jsx("div",{className:K["favProduct-and-product-count"],children:h.jsx("p",{className:K["favProduct-and-product-count__meaning"],children:i})})})})}),h.jsx(it,{to:"/cart",onClick:a,className:({isActive:l})=>Ne([K["dropdown__icon--basket"]],{[K["dropdown__icon--active"]]:l}),children:h.jsx("div",{className:K["dropdown__icons--basket"],children:h.jsx("div",{className:Ne(K["favProduct-and-product-count-container"],{[K["favProduct-and-product-count-container--visible"]]:o>0}),children:h.jsx("div",{className:K["favProduct-and-product-count"],children:h.jsx("p",{className:K["favProduct-and-product-count__meaning"],children:o})})})})})]})]})]})},O1=()=>h.jsx("nav",{className:"nav-footer",children:h.jsxs("div",{className:"nav-footer__wrapper",children:[h.jsx(it,{to:"/github",className:"nav-footer__link",children:"Github"}),h.jsx(it,{to:"/contacts",className:"nav-footer__link",children:"Contacts"}),h.jsx(it,{to:"/rights",className:"nav-footer__link",children:"Rights"})]})}),z1=()=>{const e=()=>{window.scrollTo({top:0,behavior:"smooth"})};return h.jsx("footer",{className:"footer",children:h.jsxs("div",{className:"footer__container",children:[h.jsx("div",{className:"footer__logo",children:h.jsx("img",{className:"footer__logo__img",src:nv,alt:"Nice Gadgets Logo"})}),h.jsx(O1,{}),h.jsxs("div",{className:"footer__button",children:[h.jsx("span",{className:"footer__button-text",children:"Back to top"}),h.jsx("div",{onClick:e,className:"footer__button-icon",children:h.jsx("span",{className:"footer__button-icon--arrow"})})]})]})})},R1=()=>h.jsxs(h.Fragment,{children:[h.jsx(M1,{}),h.jsx("div",{className:"main",children:h.jsx(i1,{})}),h.jsx(z1,{})]});function jf(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Ic(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:jf(t[n])&&jf(e[n])&&Object.keys(t[n]).length>0&&Ic(e[n],t[n])})}const rv={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function It(){const e=typeof document<"u"?document:{};return Ic(e,rv),e}const D1={document:rv,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Qe(){const e=typeof window<"u"?window:{};return Ic(e,D1),e}function F1(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function $1(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function yu(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function ko(){return Date.now()}function B1(e){const t=Qe();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function V1(e,t){t===void 0&&(t="x");const n=Qe();let r,i,s;const o=B1(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function Cs(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function U1(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function rt(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(s)<0);for(let s=0,o=i.length;ss?"next":"prev",c=(m,g)=>u==="next"&&m>=g||u==="prev"&&m<=g,d=()=>{a=new Date().getTime(),o===null&&(o=a);const m=Math.max(Math.min((a-o)/l,1),0),g=.5-Math.cos(m*Math.PI)/2;let _=s+g*(n-s);if(c(_,n)&&(_=n),t.wrapperEl.scrollTo({[r]:_}),c(_,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:_})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function Bt(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function W1(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function To(e){try{console.warn(e);return}catch{}}function En(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:F1(t)),n}function H1(e){const t=Qe(),n=It(),r=e.getBoundingClientRect(),i=n.body,s=e.clientTop||i.clientTop||0,o=e.clientLeft||i.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-s,left:r.left+l-o}}function G1(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Q1(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Cn(e,t){return Qe().getComputedStyle(e,null).getPropertyValue(t)}function Po(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Ao(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function wu(e,t,n){const r=Qe();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function qt(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Y1(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}let Xl;function K1(){const e=Qe(),t=It();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function sv(){return Xl||(Xl=K1()),Xl}let Jl;function q1(e){let{userAgent:t}=e===void 0?{}:e;const n=sv(),r=Qe(),i=r.navigator.platform,s=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),m=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g=i==="Win32";let _=i==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&_&&n.touch&&w.indexOf(`${a}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),_=!1),u&&!g&&(o.os="android",o.android=!0),(c||m||d)&&(o.os="ios",o.ios=!0),o}function ov(e){return e===void 0&&(e={}),Jl||(Jl=q1(e)),Jl}let Zl;function X1(){const e=Qe(),t=ov();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=l<16||l===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),o=s||i&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function J1(){return Zl||(Zl=X1()),Zl}function Z1(e){let{swiper:t,on:n,emit:r}=e;const i=Qe();let s=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(d=>{o=i.requestAnimationFrame(()=>{const{width:m,height:g}=t;let _=m,w=g;d.forEach(S=>{let{contentBoxSize:v,contentRect:f,target:p}=S;p&&p!==t.el||(_=f?f.width:(v[0]||v).inlineSize,w=f?f.height:(v[0]||v).blockSize)}),(_!==m||w!==g)&&a()})}),s.observe(t.el))},u=()=>{o&&i.cancelAnimationFrame(o),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function ex(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const s=[],o=Qe(),a=function(c,d){d===void 0&&(d={});const m=o.MutationObserver||o.WebkitMutationObserver,g=new m(_=>{if(t.__preventObserver__)return;if(_.length===1){i("observerUpdate",_[0]);return}const w=function(){i("observerUpdate",_[0])};o.requestAnimationFrame?o.requestAnimationFrame(w):o.setTimeout(w,0)});g.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:t.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),s.push(g)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=Ao(t.hostEl);for(let d=0;d{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",u)}var tx={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,s=new Array(i),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(u=>{u.apply(r,n)})}),e}};function nx(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Cn(r,"padding-left")||0,10)-parseInt(Cn(r,"padding-right")||0,10),n=n-parseInt(Cn(r,"padding-top")||0,10)-parseInt(Cn(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function rx(){const e=this;function t(T,I){return parseFloat(T.getPropertyValue(e.getDirectionLabel(I))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:s,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=Bt(i,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:c.length;let m=[];const g=[],_=[];let w=n.slidesOffsetBefore;typeof w=="function"&&(w=n.slidesOffsetBefore.call(e));let S=n.slidesOffsetAfter;typeof S=="function"&&(S=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,f=e.slidesGrid.length;let p=n.spaceBetween,y=-w,x=0,k=0;if(typeof s>"u")return;typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*s:typeof p=="string"&&(p=parseFloat(p)),e.virtualSize=-p,c.forEach(T=>{o?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(ks(r,"--swiper-centered-offset-before",""),ks(r,"--swiper-centered-offset-after",""));const j=n.grid&&n.grid.rows>1&&e.grid;j?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C;const P=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(T=>typeof n.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T1&&m.push(e.virtualSize-s)}if(l&&n.loop){const T=_[0]+p;if(n.slidesPerGroup>1){const I=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),M=T*n.slidesPerGroup;for(let N=0;N!n.cssMode||n.loop?!0:M!==c.length-1).forEach(I=>{I.style[T]=`${p}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let T=0;_.forEach(M=>{T+=M+(p||0)}),T-=p;const I=T>s?T-s:0;m=m.map(M=>M<=0?-w:M>I?I+S:M)}if(n.centerInsufficientSlides){let T=0;_.forEach(M=>{T+=M+(p||0)}),T-=p;const I=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(T+I{m[R]=N-M}),g.forEach((N,R)=>{g[R]=N+M})}}if(Object.assign(e,{slides:c,snapGrid:m,slidesGrid:g,slidesSizesGrid:_}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ks(r,"--swiper-centered-offset-before",`${-m[0]}px`),ks(r,"--swiper-centered-offset-after",`${e.size/2-_[_.length-1]/2}px`);const T=-e.snapGrid[0],I=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+T),e.slidesGrid=e.slidesGrid.map(M=>M+I)}if(d!==u&&e.emit("slidesLengthChange"),m.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==f&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const T=`${n.containerModifierClass}backface-hidden`,I=e.el.classList.contains(T);d<=n.maxBackfaceHiddenSlides?I||e.el.classList.add(T):I&&e.el.classList.remove(T)}}function ix(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;st.slides.length&&!r)break;n.push(o(a))}else n.push(o(t.activeIndex));for(s=0;si?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function sx(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ox(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&g<=t.size-t.slidesSizesGrid[l],S=g>=0&&g1&&_<=t.size||g<=0&&_>=t.size;S&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(l)),If(u,S,n.slideVisibleClass),If(u,w,n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-m:m}}function lx(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:o,progressLoop:a}=t;const l=s,u=o;if(r===0)i=0,s=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;s=c||i<=0,o=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[c],g=t.slidesGrid[d],_=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=m?a=(w-m)/_:a=(w+_-g)/_,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}const ea=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ax(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,s=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=d=>Bt(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(s)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else o?(l=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):l=t[i];l&&(o||(c=Q1(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=G1(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(d=>{ea(d,d===l,n.slideActiveClass),ea(d,d===c,n.slideNextClass),ea(d,d===u,n.slidePrevClass)}),e.emitSlidesClasses()}const Vs=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},ta=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},xu=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=i,a=[o-t];a.push(...Array.from({length:t}).map((l,u)=>o+r+u)),e.slides.forEach((l,u)=>{a.includes(l.column)&&ta(e,u)});return}const s=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=s+t;o+=1){const a=(o%n+n)%n;(as)&&ta(e,a)}else for(let o=Math.max(i-t,0);o<=Math.min(s+t,n-1);o+=1)o!==i&&(o>s||o=t[s]&&r=t[s]&&r=t[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function cx(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:o,snapIndex:a}=t;let l=e,u;const c=g=>{let _=g-t.virtual.slidesBefore;return _<0&&(_=t.virtual.slides.length+_),_>=t.virtual.slides.length&&(_-=t.virtual.slides.length),_};if(typeof l>"u"&&(l=ux(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const g=Math.min(i.slidesPerGroupSkip,l);u=g+Math.floor((l-g)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===s&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const d=t.grid&&i.grid&&i.grid.rows>1;let m;if(t.virtual&&i.virtual.enabled&&i.loop)m=c(l);else if(d){const g=t.slides.filter(w=>w.column===l)[0];let _=parseInt(g.getAttribute("data-swiper-slide-index"),10);Number.isNaN(_)&&(_=Math.max(t.slides.indexOf(g),0)),m=Math.floor(_/i.grid.rows)}else if(t.slides[l]){const g=t.slides[l].getAttribute("data-swiper-slide-index");g?m=parseInt(g,10):m=l}else m=l;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:m,previousIndex:s,activeIndex:l}),t.initialized&&xu(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function dx(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let s=!1,o;if(i){for(let a=0;al?c=l:r&&eo?a="next":s"u"&&(t=s.params.speed);const w=Math.min(s.params.slidesPerGroupSkip,o);let S=w+Math.floor((o-w)/s.params.slidesPerGroup);S>=l.length&&(S=l.length-1);const v=-l[S];if(a.normalizeSlideIndex)for(let x=0;x=j&&k=j&&k=j&&(o=x)}if(s.initialized&&o!==d&&(!s.allowSlideNext&&(m?v>s.translate&&v>s.minTranslate():vs.translate&&v>s.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(v);let f;o>d?f="next":o0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{g[x?"scrollLeft":"scrollTop"]=k})):g[x?"scrollLeft":"scrollTop"]=k,p&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return iv({swiper:s,targetPosition:k,side:x?"left":"top"}),!0;g.scrollTo({[x?"left":"top"]:k,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,f),t===0?s.transitionEnd(n,f):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(k){!s||s.destroyed||k.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,f))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Cx(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let a;if(s){const m=o*i.params.grid.rows;a=i.slides.filter(g=>g.getAttribute("data-swiper-slide-index")*1===m)[0].column}else a=i.getSlideIndexByData(o);const l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=l-ag.getAttribute("data-swiper-slide-index")*1===m)[0].column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function kx(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:s,animating:o}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function Tx(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function m(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const g=m(d),_=s.map(v=>m(v));let w=s[_.indexOf(g)-1];if(typeof w>"u"&&i.cssMode){let v;s.forEach((f,p)=>{g>=f&&(v=p)}),typeof v<"u"&&(w=s[v>0?v-1:v])}let S=0;if(typeof w<"u"&&(S=o.indexOf(w),S<0&&(S=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),i.rewind&&r.isBeginning){const v=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(v,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(S,e,t,n)}),!0;return r.slideTo(S,e,t,n)}function Px(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Ax(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let s=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*r&&(s+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)}function bx(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,s;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(Bt(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),yu(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(Bt(n,`${o}[data-swiper-slide-index="${s}"]`)[0]),yu(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var Nx={slideTo:Ex,slideToLoop:Cx,slideNext:kx,slidePrev:Tx,slideReset:Px,slideToClosest:Ax,slideToClickedSlide:bx};function jx(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{Bt(r,`.${n.slideClass}, swiper-slide`).forEach((d,m)=>{d.setAttribute("data-swiper-slide-index",m)})},s=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(s?n.grid.rows:1),a=t.slides.length%o!==0,l=s&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?s=l.getSlideIndex(u.filter(N=>N.classList.contains(g.slideActiveClass))[0]):x=s;const k=r==="next"||!r,j=r==="prev"||!r;let C=0,P=0;const T=f?Math.ceil(u.length/g.grid.rows):u.length,M=(f?u[s].column:s)+(_&&typeof i>"u"?-w/2+.5:0);if(M=0;Y-=1)u[Y].column===W&&p.push(Y)}else p.push(T-R-1)}}else if(M+w>T-v){P=Math.max(M-(T-v*2),S);for(let N=0;N{W.column===R&&y.push(Y)}):y.push(R)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),j&&p.forEach(N=>{u[N].swiperLoopMoveDOM=!0,m.prepend(u[N]),u[N].swiperLoopMoveDOM=!1}),k&&y.forEach(N=>{u[N].swiperLoopMoveDOM=!0,m.append(u[N]),u[N].swiperLoopMoveDOM=!1}),l.recalcSlides(),g.slidesPerView==="auto"?l.updateSlides():f&&(p.length>0&&j||y.length>0&&k)&&l.slides.forEach((N,R)=>{l.grid.updateSlide(R,N,l.slides)}),g.watchSlidesProgress&&l.updateSlidesOffset(),n){if(p.length>0&&j){if(typeof t>"u"){const N=l.slidesGrid[x],W=l.slidesGrid[x+C]-N;a?l.setTranslate(l.translate-W):(l.slideTo(x+Math.ceil(C),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-W,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-W))}else if(i){const N=f?p.length/g.grid.rows:p.length;l.slideTo(l.activeIndex+N,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(y.length>0&&k)if(typeof t>"u"){const N=l.slidesGrid[x],W=l.slidesGrid[x-P]-N;a?l.setTranslate(l.translate-W):(l.slideTo(x-P,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-W,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-W))}else{const N=f?y.length/g.grid.rows:y.length;l.slideTo(l.activeIndex-N,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const N={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(R=>{!R.destroyed&&R.params.loop&&R.loopFix({...N,slideTo:R.params.slidesPerView===g.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...N,slideTo:l.controller.control.params.slidesPerView===g.slidesPerView?n:!1})}l.emit("loopFix")}function Lx(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Mx={loopCreate:jx,loopFix:Ix,loopDestroy:Lx};function Ox(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function zx(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Rx={setGrabCursor:Ox,unsetGrabCursor:zx};function Dx(e,t){t===void 0&&(t=this);function n(r){if(!r||r===It()||r===Qe())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function Lf(e,t,n){const r=Qe(),{params:i}=e,s=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return s&&(n<=o||n>=r.innerWidth-o)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function Fx(e){const t=this,n=It();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Lf(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=t;if(!a||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!W1(l,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,m=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(m?Dx(d,l):l.closest(d))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const g=o.currentX,_=o.currentY;if(!Lf(t,r,g))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=_,i.touchStartTime=ko(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let w=!0;l.matches(i.focusableElements)&&(w=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!l.matches(i.focusableElements))&&n.activeElement.blur();const S=w&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||S)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function $x(e){const t=It(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:o,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(k=>k.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=ko());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(ds.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(cs.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=d;const m=s.currentX-s.startX,g=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(m**2+g**2)"u"){let k;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:m*m+g*g>=25&&(k=Math.atan2(Math.abs(g),Math.abs(m))*180/Math.PI,r.isScrolling=n.isHorizontal()?k>i.touchAngle:90-k>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let _=n.isHorizontal()?m:g,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(_=Math.abs(_)*(o?1:-1),w=Math.abs(w)*(o?1:-1)),s.diff=_,_*=i.touchRatio,o&&(_=-_,w=-w);const S=n.touchesDirection;n.swipeDirection=_>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const v=n.params.loop&&!i.cssMode,f=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(v&&f&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(k)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let p;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&S!==n.touchesDirection&&v&&f&&Math.abs(_)>=1){Object.assign(s,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=_+r.startTranslate;let y=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),_>0?(v&&f&&!p&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+_)**x))):_<0&&(v&&f&&!p&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(_)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Bx(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(x=>x.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=t;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=ko(),m=d-n.touchStartTime;if(t.allowClick){const x=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(x&&x[0]||r.target,x),t.emit("tap click",r),m<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=ko(),yu(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let g;if(o.followFinger?g=l?t.translate:-t.translate:g=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:g});return}const _=g>=-t.maxTranslate()&&!t.params.loop;let w=0,S=t.slidesSizesGrid[0];for(let x=0;x=u[x]&&g=u[x])&&(w=x,S=u[u.length-1]-u[u.length-2])}let v=null,f=null;o.rewind&&(t.isBeginning?f=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const p=(g-u[w])/S,y=wo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(p>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:w+y):t.slideTo(w)),t.swipeDirection==="prev"&&(p>1-o.longSwipesRatio?t.slideTo(w+y):f!==null&&p<0&&Math.abs(p)>o.longSwipesRatio?t.slideTo(f):t.slideTo(w))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(w+y):t.slideTo(w):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:w+y),t.swipeDirection==="prev"&&t.slideTo(f!==null?f:w))}}function Mf(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function Vx(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ux(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Wx(e){const t=this;Vs(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Hx(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const av=(e,t)=>{const n=It(),{params:r,el:i,wrapperEl:s,device:o}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;!i||typeof i=="string"||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Mf,!0):e[u]("observerUpdate",Mf,!0),i[l]("load",e.onLoad,{capture:!0}))};function Gx(){const e=this,{params:t}=e;e.onTouchStart=Fx.bind(e),e.onTouchMove=$x.bind(e),e.onTouchEnd=Bx.bind(e),e.onDocumentTouchStart=Hx.bind(e),t.cssMode&&(e.onScroll=Ux.bind(e)),e.onClick=Vx.bind(e),e.onLoad=Wx.bind(e),av(e,"on")}function Qx(){av(this,"off")}var Yx={attachEvents:Gx,detachEvents:Qx};const Of=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Kx(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in s?s[o]:void 0)||e.originalParams,u=Of(e,r),c=Of(e,l),d=e.params.grabCursor,m=l.grabCursor,g=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!m?e.unsetGrabCursor():!d&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof l[p]>"u")return;const y=r[p]&&r[p].enabled,x=l[p]&&l[p].enabled;y&&!x&&e[p].disable(),!y&&x&&e[p].enable()});const _=l.direction&&l.direction!==r.direction,w=r.loop&&(l.slidesPerView!==r.slidesPerView||_),S=r.loop;_&&n&&e.changeDirection(),rt(e.params,l);const v=e.params.enabled,f=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!v?e.disable():!g&&v&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),n&&(w?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!S&&f?(e.loopCreate(t),e.updateSlides()):S&&!f&&e.loopDestroy()),e.emit("breakpoint",l)}function qx(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=Qe(),s=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function Zx(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:s}=e,o=Jx(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function eS(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var tS={addClasses:Zx,removeClasses:eS};function nS(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var rS={checkOverflow:nS},Su={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function iS(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){rt(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in s)){rt(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),rt(t,r)}}const na={eventsEmitter:tx,update:fx,translate:_x,transition:Sx,slide:Nx,loop:Mx,grabCursor:Rx,events:Yx,breakpoints:Xx,checkOverflow:rS,classes:tS},ra={};let ol=class Jt{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),s=0;s1){const c=[];return o.querySelectorAll(n.el).forEach(d=>{const m=rt({},n,{el:d});c.push(new Jt(m))}),c}const a=this;a.__swiper__=!0,a.support=sv(),a.device=ov({userAgent:n.userAgent}),a.browser=J1(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:iS(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=rt({},Su,l);return a.params=rt({},u,ra,n),a.originalParams=rt({},a.params),a.passedParams=rt({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=Bt(n,`.${r.slideClass}, swiper-slide`),s=Po(i[0]);return Po(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Bt(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=s[u]?Math.ceil(s[u].swiperSlideSize):0,m;for(let g=u+1;gl&&(m=!0));for(let g=u-1;g>=0;g-=1)s[g]&&!m&&(d+=s[g].swiperSlideSize,c+=1,d>l&&(m=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)o[u]-o[d]{o.complete&&Vs(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(o.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):Bt(r,i())[0];return!o&&n.params.createElements&&(o=En("div",n.params.wrapperClass),r.append(o),Bt(r,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Cn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Cn(r,"direction")==="rtl"),wrongRTL:Cn(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?Vs(n,s):s.addEventListener("load",o=>{Vs(n,o.target)})}),xu(n),n.initialized=!0,xu(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:s,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),$1(r)),r.destroyed=!0),null}static extendDefaults(t){rt(ra,t)}static get extendedDefaults(){return ra}static get defaults(){return Su}static installModule(t){Jt.prototype.__modules__||(Jt.prototype.__modules__=[]);const n=Jt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Jt.installModule(n)),Jt):(Jt.installModule(t),Jt)}};Object.keys(na).forEach(e=>{Object.keys(na[e]).forEach(t=>{ol.prototype[t]=na[e][t]})});ol.use([Z1,ex]);const uv=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function sr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function zr(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:sr(t[r])&&sr(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:zr(e[r],t[r]):e[r]=t[r]})}function cv(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function dv(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function fv(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function pv(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function sS(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function oS(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:s,prevEl:o,scrollbarEl:a,paginationEl:l}=e;const u=i.filter(P=>P!=="children"&&P!=="direction"&&P!=="wrapperClass"),{params:c,pagination:d,navigation:m,scrollbar:g,virtual:_,thumbs:w}=t;let S,v,f,p,y,x,k,j;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(S=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(v=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(f=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&g&&!g.el&&(p=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&m&&!m.prevEl&&!m.nextEl&&(y=!0);const C=P=>{t[P]&&(t[P].destroy(),P==="navigation"?(t.isElement&&(t[P].prevEl.remove(),t[P].nextEl.remove()),c[P].prevEl=void 0,c[P].nextEl=void 0,t[P].prevEl=void 0,t[P].nextEl=void 0):(t.isElement&&t[P].el.remove(),c[P].el=void 0,t[P].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?x=!0:!c.loop&&r.loop?k=!0:j=!0),u.forEach(P=>{if(sr(c[P])&&sr(r[P]))Object.assign(c[P],r[P]),(P==="navigation"||P==="pagination"||P==="scrollbar")&&"enabled"in r[P]&&!r[P].enabled&&C(P);else{const T=r[P];(T===!0||T===!1)&&(P==="navigation"||P==="pagination"||P==="scrollbar")?T===!1&&C(P):c[P]=r[P]}}),u.includes("controller")&&!v&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&_&&c.virtual.enabled?(_.slides=n,_.update(!0)):i.includes("virtual")&&_&&c.virtual.enabled&&(n&&(_.slides=n),_.update(!0)),i.includes("children")&&n&&c.loop&&(j=!0),S&&w.init()&&w.update(!0),v&&(t.controller.control=c.controller.control),f&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),p&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),g.init(),g.updateSize(),g.setTranslate()),y&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=t.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),t.el.appendChild(s)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),s&&(c.navigation.nextEl=s),o&&(c.navigation.prevEl=o),m.init(),m.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(x||j)&&t.loopDestroy(),(k||j)&&t.loopCreate(),t.update()}function lS(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};zr(n,Su),n._emitClasses=!0,n.init=!1;const s={},o=uv.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(o.indexOf(l)>=0?sr(e[l])?(n[l]={},i[l]={},zr(n[l],e[l]),zr(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:s,events:r}}function aS(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:s,scrollbarEl:o,swiper:a}=e;cv(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),dv(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),fv(t)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(n)}function uS(e,t,n,r,i){const s=[];if(!t)return s;const o=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return uv.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(sr(e[l])&&sr(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?o(l):(u.forEach(d=>{e[l][d]!==t[l][d]&&o(l)}),c.forEach(d=>{e[l][d]!==t[l][d]&&o(l)}))}else e[l]!==t[l]&&o(l)}),s}const cS=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{hv(n)?t.push(n):n.props&&n.props.children&&mv(n.props.children).forEach(r=>t.push(r))}),t}function dS(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return J.Children.toArray(e).forEach(r=>{if(hv(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=mv(r.props.children);i.length>0?i.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function fS(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:o}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=s&&c<=o&&u.push(t[r(c)]);return u.map((c,d)=>J.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function ki(e,t){return typeof window>"u"?A.useEffect(e,t):A.useLayoutEffect(e,t)}const zf=A.createContext(null),pS=A.createContext(null),ll=A.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:o,...a}=e===void 0?{}:e,l=!1;const[u,c]=A.useState("swiper"),[d,m]=A.useState(null),[g,_]=A.useState(!1),w=A.useRef(!1),S=A.useRef(null),v=A.useRef(null),f=A.useRef(null),p=A.useRef(null),y=A.useRef(null),x=A.useRef(null),k=A.useRef(null),j=A.useRef(null),{params:C,passedParams:P,rest:T,events:I}=lS(a),{slides:M,slots:N}=dS(s),R=()=>{_(!g)};Object.assign(C.on,{_containerClasses(F,B){c(B)}});const W=()=>{Object.assign(C.on,I),l=!0;const F={...C};if(delete F.wrapperClass,v.current=new ol(F),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=M;const B={cache:!1,slides:M,renderExternal:m,renderExternalUpdate:!1};zr(v.current.params.virtual,B),zr(v.current.originalParams.virtual,B)}};S.current||W(),v.current&&v.current.on("_beforeBreakpoint",R);const Y=()=>{l||!I||!v.current||Object.keys(I).forEach(F=>{v.current.on(F,I[F])})},te=()=>{!I||!v.current||Object.keys(I).forEach(F=>{v.current.off(F,I[F])})};A.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",R)}),A.useEffect(()=>{!w.current&&v.current&&(v.current.emitSlidesClasses(),w.current=!0)}),ki(()=>{if(t&&(t.current=S.current),!!S.current)return v.current.destroyed&&W(),aS({el:S.current,nextEl:y.current,prevEl:x.current,paginationEl:k.current,scrollbarEl:j.current,swiper:v.current},C),o&&!v.current.destroyed&&o(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),ki(()=>{Y();const F=uS(P,f.current,M,p.current,B=>B.key);return f.current=P,p.current=M,F.length&&v.current&&!v.current.destroyed&&oS({swiper:v.current,slides:M,passedParams:P,changedParams:F,nextEl:y.current,prevEl:x.current,scrollbarEl:j.current,paginationEl:k.current}),()=>{te()}}),ki(()=>{cS(v.current)},[d]);function O(){return C.virtual?fS(v.current,M,d):M.map((F,B)=>J.cloneElement(F,{swiper:v.current,swiperSlideIndex:B}))}return J.createElement(r,bo({ref:S,className:pv(`${u}${n?` ${n}`:""}`)},T),J.createElement(pS.Provider,{value:v.current},N["container-start"],J.createElement(i,{className:sS(C.wrapperClass)},N["wrapper-start"],O(),N["wrapper-end"]),cv(C)&&J.createElement(J.Fragment,null,J.createElement("div",{ref:x,className:"swiper-button-prev"}),J.createElement("div",{ref:y,className:"swiper-button-next"})),fv(C)&&J.createElement("div",{ref:j,className:"swiper-scrollbar"}),dv(C)&&J.createElement("div",{ref:k,className:"swiper-pagination"}),N["container-end"]))});ll.displayName="Swiper";const Ji=A.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:o,lazy:a,virtualIndex:l,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=A.useRef(null),[m,g]=A.useState("swiper-slide"),[_,w]=A.useState(!1);function S(y,x,k){x===d.current&&g(k)}ki(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!s)){if(s.destroyed){m!=="swiper-slide"&&g("swiper-slide");return}return s.on("_slideClass",S),()=>{s&&s.off("_slideClass",S)}}}),ki(()=>{s&&d.current&&!s.destroyed&&g(s.getSlideClasses(d.current))},[s]);const v={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},f=()=>typeof r=="function"?r(v):r,p=()=>{w(!0)};return J.createElement(n,bo({ref:d,className:pv(`${m}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:p},c),o&&J.createElement(zf.Provider,{value:v},J.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},f(),a&&!_&&J.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&J.createElement(zf.Provider,{value:v},f(),a&&!_&&J.createElement("div",{className:"swiper-lazy-preloader"})))});Ji.displayName="SwiperSlide";const hS="_root_1d5on_1",mS="_main_1d5on_14",vS="_footer_1d5on_18",gS="_swiper_1d5on_23",ia={root:hS,main:mS,footer:vS,swiper:gS,"swiper__banner-container":"_swiper__banner-container_1d5on_29"},_S="/React.ts-GroupProject/assets/Banner1-DDwKL5iZ.png",yS="/React.ts-GroupProject/assets/Banner2-83rkiGIU.png",wS="/React.ts-GroupProject/assets/Banner3-Iok0f4Lz.webp",xS="/React.ts-GroupProject/assets/banerPhone-D89YJH_q.png",SS="/React.ts-GroupProject/assets/banerPhone2-H0pZriSA.png",ES="/React.ts-GroupProject/assets/banerPhone3-BbpatcCZ.png";function Lc(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const s=It(),o=Qe();t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(c){if(!t.enabled)return;const{rtlTranslate:d}=t;let m=c;m.originalEvent&&(m=m.originalEvent);const g=m.keyCode||m.charCode,_=t.params.keyboard.pageUpDown,w=_&&g===33,S=_&&g===34,v=g===37,f=g===39,p=g===38,y=g===40;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&y||S)||!t.allowSlidePrev&&(t.isHorizontal()&&v||t.isVertical()&&p||w))return!1;if(!(m.shiftKey||m.altKey||m.ctrlKey||m.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(w||S||v||f||p||y)){let x=!1;if(Ao(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&Ao(t.el,`.${t.params.slideActiveClass}`).length===0)return;const k=t.el,j=k.clientWidth,C=k.clientHeight,P=o.innerWidth,T=o.innerHeight,I=H1(k);d&&(I.left-=k.scrollLeft);const M=[[I.left,I.top],[I.left+j,I.top],[I.left,I.top+C],[I.left+j,I.top+C]];for(let N=0;N=0&&R[0]<=P&&R[1]>=0&&R[1]<=T){if(R[0]===0&&R[1]===0)continue;x=!0}}if(!x)return}t.isHorizontal()?((w||S||v||f)&&(m.preventDefault?m.preventDefault():m.returnValue=!1),((S||f)&&!d||(w||v)&&d)&&t.slideNext(),((w||v)&&!d||(S||f)&&d)&&t.slidePrev()):((w||S||p||y)&&(m.preventDefault?m.preventDefault():m.returnValue=!1),(S||y)&&t.slideNext(),(w||p)&&t.slidePrev()),i("keyPress",g)}}function l(){t.keyboard.enabled||(s.addEventListener("keydown",a),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(s.removeEventListener("keydown",a),t.keyboard.enabled=!1)}r("init",()=>{t.params.keyboard.enabled&&l()}),r("destroy",()=>{t.keyboard.enabled&&u()}),Object.assign(t.keyboard,{enable:l,disable:u})}function CS(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let s=Bt(e.el,`.${r[i]}`)[0];s||(s=En("div",r[i]),s.className=r[i],e.el.append(s)),n[i]=s,t[i]=s}}),n}function si(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Rf(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:f=>f,formatFractionTotal:f=>f,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let o,a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(f,p){const{bulletActiveClass:y}=t.params.pagination;f&&(f=f[`${p==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${y}-${p}`),f=f[`${p==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${y}-${p}-${p}`)))}function c(f,p,y){if(f=f%y,p=p%y,p===f+1)return"next";if(p===f-1)return"previous"}function d(f){const p=f.target.closest(si(t.params.pagination.bulletClass));if(!p)return;f.preventDefault();const y=Po(p)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===y)return;const x=c(t.realIndex,y,t.slides.length);x==="next"?t.slideNext():x==="previous"?t.slidePrev():t.slideToLoop(y)}else t.slideTo(y)}function m(){const f=t.rtl,p=t.params.pagination;if(l())return;let y=t.pagination.el;y=qt(y);let x,k;const j=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,C=t.params.loop?Math.ceil(j/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(k=t.previousRealIndex||0,x=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(x=t.snapIndex,k=t.previousSnapIndex):(k=t.previousIndex||0,x=t.activeIndex||0),p.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const P=t.pagination.bullets;let T,I,M;if(p.dynamicBullets&&(o=wu(P[0],t.isHorizontal()?"width":"height"),y.forEach(N=>{N.style[t.isHorizontal()?"width":"height"]=`${o*(p.dynamicMainBullets+4)}px`}),p.dynamicMainBullets>1&&k!==void 0&&(a+=x-(k||0),a>p.dynamicMainBullets-1?a=p.dynamicMainBullets-1:a<0&&(a=0)),T=Math.max(x-a,0),I=T+(Math.min(P.length,p.dynamicMainBullets)-1),M=(I+T)/2),P.forEach(N=>{const R=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(W=>`${p.bulletActiveClass}${W}`)].map(W=>typeof W=="string"&&W.includes(" ")?W.split(" "):W).flat();N.classList.remove(...R)}),y.length>1)P.forEach(N=>{const R=Po(N);R===x?N.classList.add(...p.bulletActiveClass.split(" ")):t.isElement&&N.setAttribute("part","bullet"),p.dynamicBullets&&(R>=T&&R<=I&&N.classList.add(...`${p.bulletActiveClass}-main`.split(" ")),R===T&&u(N,"prev"),R===I&&u(N,"next"))});else{const N=P[x];if(N&&N.classList.add(...p.bulletActiveClass.split(" ")),t.isElement&&P.forEach((R,W)=>{R.setAttribute("part",W===x?"bullet-active":"bullet")}),p.dynamicBullets){const R=P[T],W=P[I];for(let Y=T;Y<=I;Y+=1)P[Y]&&P[Y].classList.add(...`${p.bulletActiveClass}-main`.split(" "));u(R,"prev"),u(W,"next")}}if(p.dynamicBullets){const N=Math.min(P.length,p.dynamicMainBullets+4),R=(o*N-o)/2-M*o,W=f?"right":"left";P.forEach(Y=>{Y.style[t.isHorizontal()?W:"top"]=`${R}px`})}}y.forEach((P,T)=>{if(p.type==="fraction"&&(P.querySelectorAll(si(p.currentClass)).forEach(I=>{I.textContent=p.formatFractionCurrent(x+1)}),P.querySelectorAll(si(p.totalClass)).forEach(I=>{I.textContent=p.formatFractionTotal(C)})),p.type==="progressbar"){let I;p.progressbarOpposite?I=t.isHorizontal()?"vertical":"horizontal":I=t.isHorizontal()?"horizontal":"vertical";const M=(x+1)/C;let N=1,R=1;I==="horizontal"?N=M:R=M,P.querySelectorAll(si(p.progressbarFillClass)).forEach(W=>{W.style.transform=`translate3d(0,0,0) scaleX(${N}) scaleY(${R})`,W.style.transitionDuration=`${t.params.speed}ms`})}p.type==="custom"&&p.renderCustom?(P.innerHTML=p.renderCustom(t,x+1,C),T===0&&i("paginationRender",P)):(T===0&&i("paginationRender",P),i("paginationUpdate",P)),t.params.watchOverflow&&t.enabled&&P.classList[t.isLocked?"add":"remove"](p.lockClass)})}function g(){const f=t.params.pagination;if(l())return;const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let y=t.pagination.el;y=qt(y);let x="";if(f.type==="bullets"){let k=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&k>p&&(k=p);for(let j=0;j`}f.type==="fraction"&&(f.renderFraction?x=f.renderFraction.call(t,f.currentClass,f.totalClass):x=` / `),f.type==="progressbar"&&(f.renderProgressbar?x=f.renderProgressbar.call(t,f.progressbarFillClass):x=``),t.pagination.bullets=[],y.forEach(k=>{f.type!=="custom"&&(k.innerHTML=x||""),f.type==="bullets"&&t.pagination.bullets.push(...k.querySelectorAll(si(f.bulletClass)))}),f.type!=="custom"&&i("paginationRender",y[0])}function _(){t.params.pagination=CS(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const f=t.params.pagination;if(!f.el)return;let p;typeof f.el=="string"&&t.isElement&&(p=t.el.querySelector(f.el)),!p&&typeof f.el=="string"&&(p=[...document.querySelectorAll(f.el)]),p||(p=f.el),!(!p||p.length===0)&&(t.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(p)&&p.length>1&&(p=[...t.el.querySelectorAll(f.el)],p.length>1&&(p=p.filter(y=>Ao(y,".swiper")[0]===t.el)[0])),Array.isArray(p)&&p.length===1&&(p=p[0]),Object.assign(t.pagination,{el:p}),p=qt(p),p.forEach(y=>{f.type==="bullets"&&f.clickable&&y.classList.add(...(f.clickableClass||"").split(" ")),y.classList.add(f.modifierClass+f.type),y.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(y.classList.add(`${f.modifierClass}${f.type}-dynamic`),a=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&y.classList.add(f.progressbarOppositeClass),f.clickable&&y.addEventListener("click",d),t.enabled||y.classList.add(f.lockClass)}))}function w(){const f=t.params.pagination;if(l())return;let p=t.pagination.el;p&&(p=qt(p),p.forEach(y=>{y.classList.remove(f.hiddenClass),y.classList.remove(f.modifierClass+f.type),y.classList.remove(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&(y.classList.remove(...(f.clickableClass||"").split(" ")),y.removeEventListener("click",d))})),t.pagination.bullets&&t.pagination.bullets.forEach(y=>y.classList.remove(...f.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const f=t.params.pagination;let{el:p}=t.pagination;p=qt(p),p.forEach(y=>{y.classList.remove(f.horizontalClass,f.verticalClass),y.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?v():(_(),g(),m())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&m()}),r("snapIndexChange",()=>{m()}),r("snapGridLengthChange",()=>{g(),m()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:f}=t.pagination;f&&(f=qt(f),f.forEach(p=>p.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{m()}),r("click",(f,p)=>{const y=p.target,x=qt(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&x&&x.length>0&&!y.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&y===t.navigation.nextEl||t.navigation.prevEl&&y===t.navigation.prevEl))return;const k=x[0].classList.contains(t.params.pagination.hiddenClass);i(k===!0?"paginationShow":"paginationHide"),x.forEach(j=>j.classList.toggle(t.params.pagination.hiddenClass))}});const S=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=qt(f),f.forEach(p=>p.classList.remove(t.params.pagination.paginationDisabledClass))),_(),g(),m()},v=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=qt(f),f.forEach(p=>p.classList.add(t.params.pagination.paginationDisabledClass))),w()};Object.assign(t.pagination,{enable:S,disable:v,render:g,update:m,init:_,destroy:w})}function kS(e){let{swiper:t,extendParams:n,on:r,emit:i,params:s}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,d=new Date().getTime(),m,g,_,w,S,v,f;function p(O){!t||t.destroyed||!t.wrapperEl||O.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",p),!(f||O.detail&&O.detail.bySwiperTouchMove)&&T())}const y=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?m=!0:m&&(u=c,m=!1);const O=t.autoplay.paused?c:d+u-new Date().getTime();t.autoplay.timeLeft=O,i("autoplayTimeLeft",O,O/l),a=requestAnimationFrame(()=>{y()})},x=()=>{let O;return t.virtual&&t.params.virtual.enabled?O=t.slides.filter(B=>B.classList.contains("swiper-slide-active"))[0]:O=t.slides[t.activeIndex],O?parseInt(O.getAttribute("data-swiper-autoplay"),10):void 0},k=O=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),y();let F=typeof O>"u"?t.params.autoplay.delay:O;l=t.params.autoplay.delay,u=t.params.autoplay.delay;const B=x();!Number.isNaN(B)&&B>0&&typeof O>"u"&&(F=B,l=B,u=B),c=F;const X=t.params.speed,ne=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(X,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,X,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(X,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,X,!0,!0),i("autoplay")),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return F>0?(clearTimeout(o),o=setTimeout(()=>{ne()},F)):requestAnimationFrame(()=>{ne()}),F},j=()=>{d=new Date().getTime(),t.autoplay.running=!0,k(),i("autoplayStart")},C=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),i("autoplayStop")},P=(O,F)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),O||(v=!0);const B=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",p):T()};if(t.autoplay.paused=!0,F){S&&(c=t.params.autoplay.delay),S=!1,B();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),B())},T=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),v?(v=!1,k(c)):k(),t.autoplay.paused=!1,i("autoplayResume"))},I=()=>{if(t.destroyed||!t.autoplay.running)return;const O=It();O.visibilityState==="hidden"&&(v=!0,P(!0)),O.visibilityState==="visible"&&T()},M=O=>{O.pointerType==="mouse"&&(v=!0,f=!0,!(t.animating||t.autoplay.paused)&&P(!0))},N=O=>{O.pointerType==="mouse"&&(f=!1,t.autoplay.paused&&T())},R=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",M),t.el.addEventListener("pointerleave",N))},W=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",M),t.el.removeEventListener("pointerleave",N))},Y=()=>{It().addEventListener("visibilitychange",I)},te=()=>{It().removeEventListener("visibilitychange",I)};r("init",()=>{t.params.autoplay.enabled&&(R(),Y(),j())}),r("destroy",()=>{W(),te(),t.autoplay.running&&C()}),r("_freeModeStaticRelease",()=>{(_||v)&&T()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?C():P(!0,!0)}),r("beforeTransitionStart",(O,F,B)=>{t.destroyed||!t.autoplay.running||(B||!t.params.autoplay.disableOnInteraction?P(!0,!0):C())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){C();return}g=!0,_=!1,v=!1,w=setTimeout(()=>{v=!0,_=!0,P(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!g)){if(clearTimeout(w),clearTimeout(o),t.params.autoplay.disableOnInteraction){_=!1,g=!1;return}_&&t.params.cssMode&&T(),_=!1,g=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(S=!0)}),Object.assign(t.autoplay,{start:j,stop:C,pause:P,resume:T})}function TS(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const d=o?o():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),r("setTranslate",()=>{n.params.effect===t&&i()}),r("setTransition",(d,m)=>{n.params.effect===t&&s(m)}),r("transitionEnd",()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach(d=>{d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(m=>m.remove())}),l()}});let c;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(i(),c=!1)}))})}function PS(e){let{swiper:t,extendParams:n,on:r}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(l,u,c)=>{let d=c?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),m=c?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");d||(d=En("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),l.append(d)),m||(m=En("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),l.append(m)),d&&(d.style.opacity=Math.max(-u,0)),m&&(m.style.opacity=Math.max(u,0))};TS({effect:"cube",swiper:t,on:r,setTranslate:()=>{const{el:l,wrapperEl:u,slides:c,width:d,height:m,rtlTranslate:g,size:_,browser:w}=t,S=Y1(t),v=t.params.cubeEffect,f=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let y=0,x;v.shadow&&(f?(x=t.wrapperEl.querySelector(".swiper-cube-shadow"),x||(x=En("div","swiper-cube-shadow"),t.wrapperEl.append(x)),x.style.height=`${d}px`):(x=l.querySelector(".swiper-cube-shadow"),x||(x=En("div","swiper-cube-shadow"),l.append(x))));for(let j=0;j-1&&(y=P*90+M*90,g&&(y=-P*90-M*90)),C.style.transform=Y,v.slideShadows&&i(C,M,f)}if(u.style.transformOrigin=`50% 50% -${_/2}px`,u.style["-webkit-transform-origin"]=`50% 50% -${_/2}px`,v.shadow)if(f)x.style.transform=`translate3d(0px, ${d/2+v.shadowOffset}px, ${-d/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${v.shadowScale})`;else{const j=Math.abs(y)-Math.floor(Math.abs(y)/90)*90,C=1.5-(Math.sin(j*2*Math.PI/360)/2+Math.cos(j*2*Math.PI/360)/2),P=v.shadowScale,T=v.shadowScale/C,I=v.shadowOffset;x.style.transform=`scale3d(${P}, 1, ${T}) translate3d(0px, ${m/2+I}px, ${-m/2/T}px) rotateX(-89.99deg)`}const k=(w.isSafari||w.isWebView)&&w.needPerspectiveFix?-_/2:0;u.style.transform=`translate3d(0px,0,${k}px) rotateX(${S(t.isHorizontal()?0:y)}deg) rotateY(${S(t.isHorizontal()?-y:0)}deg)`,u.style.setProperty("--swiper-cube-translate-z",`${k}px`)},setTransition:l=>{const{el:u,slides:c}=t;if(c.forEach(d=>{d.style.transitionDuration=`${l}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(m=>{m.style.transitionDuration=`${l}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const d=u.querySelector(".swiper-cube-shadow");d&&(d.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=t.isHorizontal();t.slides.forEach(u=>{const c=Math.max(Math.min(u.progress,1),-1);i(u,c,l)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}const AS=()=>{const[e,t]=A.useState(window.innerWidth),[n,r]=A.useState(0),i=A.useRef(),s=[_S,yS,wS],o=[xS,SS,ES],a=u=>{r(u)},l=()=>{t(window.innerWidth)};return A.useEffect(()=>(addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}),[]),h.jsxs("div",{className:"main__banner-slider",children:[h.jsxs("div",{className:"banner-slider__interactive-part",children:[h.jsx("button",{className:"banner-slider__button",onClick:()=>{i.current&&i.current.slidePrev()},children:h.jsx("div",{className:"banner-slider__button--prev"})}),h.jsx(ll,{className:ia.swiper,slidesPerView:1,keyboard:{enabled:!0},loop:!0,modules:[Lc,kS],autoplay:{delay:5e3,disableOnInteraction:!1},onSwiper:u=>{i.current=u},onSlideChange:u=>{a(u.realIndex),u.autoplay.stop(),u.autoplay.start()},children:e>=640?h.jsx(h.Fragment,{children:s.map(u=>h.jsx(Ji,{children:h.jsx("span",{className:ia["swiper__banner-container"],children:h.jsx("img",{src:u,alt:"banner slide"})})},u))}):h.jsx(h.Fragment,{children:o.map(u=>h.jsx(Ji,{children:h.jsx("span",{className:ia["swiper__banner-container"],children:h.jsx("img",{src:u,alt:"banner slide"})})},u))})}),h.jsx("button",{className:"banner-slider__button",onClick:()=>{i.current&&i.current.slideNext()},children:h.jsx("div",{className:"banner-slider__button--next"})})]}),h.jsx("div",{className:"banner-slider__indicators",children:[0,1,2].map(u=>h.jsx("div",{className:Ne("banner-slider__indicator",{"banner-slider__indicator--is-active":u===n})},u))})]})},sa=({img:e,title:t,text:n,link:r})=>h.jsx("div",{className:"categorie",children:h.jsxs(it,{to:r,children:[h.jsx("img",{className:"categorie__img",src:e}),h.jsx("div",{className:"categorie__title",children:t}),h.jsx("div",{className:"categorie__text",children:n})]})}),bS="/React.ts-GroupProject/assets/PhonesCategory1-B_yITRgA.png",NS="/React.ts-GroupProject/assets/PhonesCategory2-BC4M3fZ3.png",jS="/React.ts-GroupProject/assets/PhonesCategory3-BYy9d9wt.png",IS=()=>h.jsxs("div",{className:"categories",children:[h.jsx("h2",{className:"categories__title",children:"Shop by category"}),h.jsxs("ul",{className:"categories__list",children:[h.jsx(sa,{link:"/phones",img:bS,title:"Mobile phones",text:"95 models"}),h.jsx(sa,{link:"/tablets",img:NS,title:"Tablets",text:"24 models"}),h.jsx(sa,{link:"/accessories",img:jS,title:"Accessories",text:"100 models"})]})]}),LS="_root_1s403_1",MS="_main_1s403_14",OS="_footer_1s403_18",zS={root:LS,main:MS,footer:OS,"product-actions-block":"_product-actions-block_1s403_23"},RS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIXSURBVHgB7ZffbcIwEMbPKUhISOBuEDaACQoTtJ0AOkHZoDABMEHbDdoJSCdoOkEzQWtAPCChuHfgBCv/SNzkqb0XHPu+fD87PicA/PVgWYPNJu9aFnTVpfB98LZb4WZpGg1u1+vQz6uJAXAM37fuGZNjukzQeL4vp5uNeIroRlKyITb7SRocm6/XX4tMALyJjYlLbNpwPhyEvKMGah5TjGMgqBkIIbwYQLK5dKSEV3wMtJQ2Y3CFkr5+Q/Ub1Xygxk3T6BAhQLt9+andyKXZYVLs2SHoDYLOIL5KntI4CZro5Ci3h7nCUgmjyOAgyZwC+19oXJu9rnFSNAdDTWPjPqM9dlwBffaY2NGfUVposxKouc2p6SvNAXq1+u4w7Oxi57vqdLBzABVGu82XwZ7Y7aRt7fenUpNSvkHFQRs0aON50bNqtVwlV2YIrc1pE2qbzeJQfYQeFxfgEYAXdOBmGkLFwRi71i5di2qRDg/VwVstPoaKIlLuTngO4Gk1hRPhA1UGlByq2mYnH3l4LxwA6ABB4+cgl2q1TAhlTvXPj+ZsQQdaCHAMn5beLRsian708CfBePRtyFVy+A2QdSybmKv7iUSAMiHymCcClAGR1zwV4DcQRcwzAUwgipqfBSgCYWKeCyAPhKl5boAsCGqYmhcCSIMIhkzMCwOkQICpuRFACoSRuTFAAIHf/XNsCvwPMDEx/w+KH5UtjIix4KLPAAAAAElFTkSuQmCC",DS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADvSURBVHgBtZLbCcIwFIbPiUFQVHQCdQNH8EFtnaIdwVHqBnYD34yXBzcQN9AJvBQRseaYPFhKL7RW/CAQcvi/w0kC8CP42ZwWZqfMpQWEPSnhiJx2tcHK1TVvbfYZkUUAHZKw9wmd1lgcAsF9M7J8AgcJmxG9AwT6zI52LhHaFUO4qDtzLnexcDbn5+3RZZxJu0BY0+TV8oTpuaAgDLGtFp6hIOqyLwxeOIeilHDO6mOxVWNM4UvUc07rQ7EN/sF1OZqpeaw8YUnoNgxh6z2GC3kk4XBMkCWJhhMFaZKkcKogKkkLZ+KtDOe6NGfwT96Rz2ZbpIS4bwAAAABJRU5ErkJggg==",FS="_root_4667y_1",$S="_main_4667y_14",BS="_footer_4667y_18",VS="_button_4667y_23",fr={root:FS,main:$S,footer:BS,button:VS,"button__size--small":"_button__size--small_4667y_29","button__size--default":"_button__size--default_4667y_34","button__size--large":"_button__size--large_4667y_39","button__shape--circle":"_button__shape--circle_4667y_44","button__shape--rectangle":"_button__shape--rectangle_4667y_47"};var bt=(e=>(e.Small="small",e.Default="default",e.Large="large",e))(bt||{}),Ti=(e=>(e.Circle="circle",e.Rectangle="rectangle",e))(Ti||{});const Mc=({children:e,className:t,size:n=bt.Default,shape:r=Ti.Circle,onClick:i=()=>{}})=>h.jsx("button",{className:Ne(fr.button,t,{[fr["button__size--small"]]:n===bt.Small,[fr["button__size--default"]]:n===bt.Default,[fr["button__size--large"]]:n===bt.Large,[fr["button__shape--circle"]]:r===Ti.Circle,[fr["button__shape--rectangle"]]:r===Ti.Rectangle}),onClick:i,children:e}),US="_root_1ruke_1",WS="_main_1ruke_14",HS="_footer_1ruke_18",oa={root:US,main:WS,footer:HS,"button-with-image":"_button-with-image_1ruke_23","button-with-image__image":"_button-with-image__image_1ruke_26","button-with-image--selected":"_button-with-image--selected_1ruke_30"},GS=({path:e,size:t,onClick:n,isSelected:r})=>h.jsx(Mc,{onClick:n,className:Ne(oa["button-with-image"],{[oa["button-with-image--selected"]]:r}),size:t,children:h.jsx("img",{src:e,alt:"",className:oa["button-with-image__image"]})}),QS=({size:e,productId:t,onClick:n})=>{const{favoriteItems:r}=$e(s=>s.favorites),i=r.some(s=>s.id===t);return h.jsx(GS,{onClick:()=>{n()},size:e,path:i?DS:RS,isSelected:i})},YS="_root_1lxu4_1",KS="_main_1lxu4_14",qS="_footer_1lxu4_18",Ts={root:YS,main:KS,footer:qS,"main-button":"_main-button_1lxu4_23","main-button__size--default":"_main-button__size--default_1lxu4_31","main-button__size--large":"_main-button__size--large_1lxu4_34","main-button--selected":"_main-button--selected_1lxu4_37"},XS=({label:e,onClick:t=()=>{},size:n,isSelected:r})=>h.jsx("button",{className:Ne("button",Ts["main-button"],{[Ts["main-button__size--default"]]:n===bt.Default,[Ts["main-button__size--large"]]:n===bt.Large,[Ts["main-button--selected"]]:r}),onClick:t,children:e}),vv=({size:e=bt.Default,item:t})=>{const n=cr(),r=$e(a=>a.cart.cartItems.some(l=>l.item.id===t.id)),i=()=>{t&&n(nw(t))},s=()=>{t&&n(Vm(t.id))},o=()=>{t&&n(lw(t))};return h.jsxs("div",{className:zS["product-actions-block"],children:[h.jsx(XS,{label:r?"In cart":"Add to cart",size:e,isSelected:r,onClick:r?s:i}),h.jsx(QS,{size:e,onClick:o,productId:t.id})]})},gv=({item:e})=>{const{name:t,priceDiscount:n,category:r,images:i,priceRegular:s,screen:o,ram:a,capacity:l,id:u}=e;return h.jsx("li",{className:"slider__item",children:h.jsxs("div",{className:"card",children:[h.jsxs(Rn,{to:`/${r}/${u}`,children:[h.jsx("img",{src:Yi+(Array.isArray(i)?i[0]:i),alt:"phone logo",className:"card__logo"}),h.jsx("p",{className:"card__title",children:t})]}),h.jsxs("div",{className:"card__inform",children:[h.jsxs("p",{className:"card__price",children:["$",n," ",h.jsxs("del",{className:"card__price card__price--discount",children:["$",s]})]}),h.jsx("p",{className:"card__separator"}),h.jsxs("ul",{className:"card__info",children:[h.jsxs("li",{className:"card__item",children:[h.jsx("div",{className:"card__item-name",children:"Screen"}),h.jsx("div",{className:"card__item-meaning",children:o})]}),h.jsxs("li",{className:"card__item",children:[h.jsx("div",{className:"card__item-name",children:"Capacity"}),h.jsx("div",{className:"card__item-meaning",children:l})]}),h.jsxs("li",{className:"card__item",children:[h.jsx("div",{className:"card__item-name",children:"RAM"}),h.jsx("div",{className:"card__item-meaning",children:a})]})]})]}),h.jsx("div",{className:"card__interactive-part",children:h.jsx(vv,{item:e})})]})})},JS="_root_105s7_1",ZS="_main_105s7_14",eE="_footer_105s7_18",Df={root:JS,main:ZS,footer:eE,"swiper-slide":"_swiper-slide_105s7_23","swiper-product__slide":"_swiper-product__slide_105s7_43"},Eu=({sliderTitle:e,productsList:t})=>{const n=A.useRef();return h.jsxs("div",{className:"main__slider",children:[h.jsxs("div",{className:"slider__header",children:[h.jsx("h2",{className:"slider__title",children:e}),h.jsxs("div",{className:"slider__interactive-part",children:[h.jsx("button",{className:"slider__button",onClick:()=>{n.current&&n.current.slidePrev()},children:h.jsx("div",{className:"slider__button--prev"})}),h.jsx("button",{className:"slider__button",onClick:()=>{n.current&&n.current.slideNext()},children:h.jsx("div",{className:"slider__button--next"})})]})]}),h.jsx("ul",{className:"slider__list",children:h.jsx(ll,{slidesPerView:"auto",centeredSlides:!1,spaceBetween:16,keyboard:{enabled:!0},modules:[Lc],onSwiper:r=>n.current=r,breakpoints:{1024:{slidesPerView:4},1200:{slidesPerView:4}},children:t.map(r=>h.jsx(Ji,{className:Df["swiper-slide"],children:h.jsx("span",{className:Df["swiper-product__slide"],children:h.jsx(gv,{item:r})})},r.id+"-slide"))})})]})};function tE(e){return[...e].sort((t,n)=>t.priceDiscount-t.priceRegular-(n.priceDiscount-n.priceRegular))}const nE=()=>{const e=cr(),{phones:t}=$e(r=>r.phones),n=A.useMemo(()=>tE(t),[t]);return A.useEffect(()=>{document.title="Nice Gadgets",e(Ci())},[]),h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"main__title",children:"Welcome to Nice Gadgets store!"}),h.jsxs("div",{className:"main__content",children:[h.jsx(AS,{}),h.jsx(Eu,{sliderTitle:"Brand new models",productsList:t}),h.jsx(IS,{}),h.jsx(Eu,{sliderTitle:"Hot prices",productsList:n})]})]})},rE=()=>h.jsx(h.Fragment,{children:h.jsx(nE,{})}),iE="_root_lzrjg_1",sE="_main_lzrjg_14",oE="_footer_lzrjg_18",lE="_container_lzrjg_23",Ot={root:iE,main:sE,footer:oE,container:lE,"loading-wrapper":"_loading-wrapper_lzrjg_35","product-content__title":"_product-content__title_lzrjg_40","product-content__details":"_product-content__details_lzrjg_50","product-content__details--gallery":"_product-content__details--gallery_lzrjg_67","product-content__details--variants":"_product-content__details--variants_lzrjg_67","product-content__details--description":"_product-content__details--description_lzrjg_67","product-content__details--tech-specs":"_product-content__details--tech-specs_lzrjg_67"},aE="_root_a4ybj_1",uE="_main_a4ybj_14",cE="_footer_a4ybj_18",dE="_rotation_a4ybj_1",Ff={root:aE,main:uE,footer:cE,"loader-block":"_loader-block_a4ybj_23","loader-block__element":"_loader-block__element_a4ybj_27",rotation:dE},al=()=>h.jsx("div",{className:Ff["loader-block"],children:h.jsx("span",{className:Ff["loader-block__element"]})}),fE="_root_fa4s1_1",pE="_main_fa4s1_14",hE="_footer_fa4s1_18",mE="_breadcrumbs_fa4s1_23",vE="_homeIcon_fa4s1_35",gE="_chevronIcon_fa4s1_36",_E="_label_fa4s1_42",yE="_chevronSpan_fa4s1_59",pr={root:fE,main:pE,footer:hE,breadcrumbs:mE,homeIcon:vE,chevronIcon:gE,label:_E,"label--product":"_label--product_fa4s1_49",chevronSpan:yE},wE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI0SURBVHgB7VaxNvRAFL6TLCs45P+fIJ7A6nTodFanczwBnsB2SrbT4QnolFapsjqd6HSisgoZ341JTHJWkok4FPudk93Jzc29d+b7MnOJfhmCKsIFwtDa5rFlhd0AoAqoVABye1KKMwxbyuQLIVdQg0+GsMkQSN5G8gsMPd2MubQdZ+JhMBjckQGMCpiZcfeQ6AjDiQ+L7OHHh81TRWw0m5P0+vpyRXWC+Z6d/XeJS8aX6/7vaM87+jP2ZZrKxC7UAAK1FN+eMgXgewt8n2f8mJoDza+ULqy8h1jybQS90YL2EXQhmzyqCjZOSBElEVio94ixk5djqAZ4ycfHJ/eFoE5sE0J01cwfvwoGAQYQ4qmU5MB/Ub23Cl24jtO8xvMBFYG5A4c3ab7zZ/FFnJ2MLu6H6UJkXmIejylSdATmcR2z7lMFqP3iktK62NUpTAqYmnJbjUbEt4LsgYL1qjtcugjCpMRykvRDnD0eJyIcG0t2NZJSHj4/ByvfTc7gr4BjIWY3tr29fW5iQ78CVHxLNcOyaCiNDTLA9LS7DFq8PB/bpr6JZkoXwBqx7UhQucDqMe8Jx0WwqCR0jRRB57gIRhTEgKBOwGnqwAlDAj1ikwxRsQC6whKf6DYsO9uNCyhNwU9hVMCogFEBf6oAPx4IYS1RjeAWD43JWnyPA8tPcumO3DYRld/HKwL9wdNcfJOigNsv0lbiBxCozvkzZ9aDWygcLG0M56lG4PB6wN9hHV1WrXgHoSne9FTuOuIAAAAASUVORK5CYII=",xE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADjSURBVHgB7ZZBCsIwEEWntQfwKN1LwS50UzyT6Zkkm7qIUFzXo3iCxGRRQSgyM/nLvFUCTf6jSYYhKhQKAm73+Wgn1xKQmvuhnZ5tVZMLu2axbr4SCLaAr/x+HQdPBiXBFricukcMHtESFQmJ98DEo/gGx7EZ+m4kJWIBtIRKACmhFkBJZAkgJLIFtiTiC+nTq+GsZT/Dv5s0FH7moX4zl+YLpFqQasI6T7ViOB9e3PVZR7AVHn+9keyhFkCEqwVQ4SoBZLhYAB0uEkj9QNj5BRme0PYDkHAx1rk2tWVUKBSAfACbJooMYVsHVwAAAABJRU5ErkJggg==",Oc=({product:e})=>{const{pathname:t}=Yt();function n(s){return s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()}const i=e?[{path:`/${e.category}`,label:n(e.category)},{label:e.name}]:t.split("/").filter(Boolean).map((o,a,l)=>({path:`/${l.slice(0,a+1).join("/")}`,label:n(o)}));return h.jsxs("nav",{className:pr.breadcrumbs,children:[h.jsx(Rn,{to:"/",children:h.jsx("img",{src:wE,alt:"home",className:pr.homeIcon,"aria-label":"Home"})}),i.map((s,o)=>h.jsxs(J.Fragment,{children:[h.jsx("p",{className:pr.chevronSpan,children:h.jsx("img",{src:xE,alt:"chevron",className:pr.chevronIcon,"aria-label":"Next"})}),s.path&&oh.jsxs("section",{className:hr.descriptionSection,children:[h.jsx("h3",{className:hr.sectionTitle,children:"About"}),h.jsx("div",{className:hr.divider}),e.map((t,n)=>h.jsxs("article",{className:hr.descriptionSection,children:[h.jsx("h4",{className:hr.descriptionTitle,children:t.title}),h.jsx("p",{className:hr.descriptionText,children:t.text.join(" ")})]},n))]}),IE="_root_1837k_1",LE="_main_1837k_14",ME="_footer_1837k_18",OE="_swiper_1837k_23",zE="_swiper__container_1837k_32",Un={root:IE,main:LE,footer:ME,swiper:OE,swiper__container:zE,"swiper-slide":"_swiper-slide_1837k_38","swiper-block":"_swiper-block_1837k_49","swiper-block__slides":"_swiper-block__slides_1837k_66","swiper-block__slide":"_swiper-block__slide_1837k_66","swiper-block__slide--is-active":"_swiper-block__slide--is-active_1837k_116"},RE=({images:e})=>{const[t,n]=A.useState(0),r=A.useRef(),i=s=>{var o;n(s),(o=r.current)==null||o.slideTo(s)};return ol.use([Rf]),h.jsxs("div",{className:Un["swiper-block"],children:[h.jsx(ll,{className:Un.swiper,pagination:{clickable:!0,dynamicBullets:!0},keyboard:{enabled:!0},modules:[Lc,Rf,PS],effect:"cube",cubeEffect:{shadow:!0,slideShadows:!1,shadowOffset:20,shadowScale:.94},onSwiper:s=>{r.current=s,s.pagination.el&&(s.pagination.el.style.bottom="-20px")},onSlideChange:s=>{n(s.activeIndex)},children:e.map(s=>h.jsx(Ji,{className:Un["swiper-slide"],children:h.jsx("span",{className:Un.swiper__container,children:h.jsx("img",{src:Yi+s,alt:"slide in cube"})})},s))}),h.jsx("ul",{className:Un["swiper-block__slides"],children:e.map((s,o)=>h.jsx("li",{className:Ne(Un["swiper-block__slide"],{[Un["swiper-block__slide--is-active"]]:o===t}),onClick:()=>{i(o)},children:h.jsx("img",{src:Yi+s,alt:"slide"})},o))})]})},DE="_root_1p5ez_1",FE="_main_1p5ez_14",$E="_footer_1p5ez_18",BE="_section_1p5ez_23",VE="_techSpecsSection_1p5ez_31",UE="_sectionTitle_1p5ez_36",WE="_divider_1p5ez_49",HE="_specsList_1p5ez_54",GE="_specs_1p5ez_54",QE="_specsKey_1p5ez_64",YE="_specsValue_1p5ez_70",re={root:DE,main:FE,footer:$E,section:BE,techSpecsSection:VE,sectionTitle:UE,divider:WE,specsList:HE,specs:GE,specsKey:QE,specsValue:YE},KE=({screen:e,resolution:t,processor:n,ram:r,capacity:i,cell:s,camera:o,zoom:a})=>h.jsx("div",{className:re.section,children:h.jsxs("section",{className:re.techSpecsSection,children:[h.jsx("h3",{className:re.sectionTitle,children:"Tech specs"}),h.jsx("div",{className:re.divider}),h.jsxs("ul",{className:re.specsList,children:[h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Screen"}),h.jsx("span",{className:re.specsValue,children:e})]}),h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Resolution"}),h.jsx("span",{className:re.specsValue,children:t})]}),h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Processor"}),h.jsx("span",{className:re.specsValue,children:n})]}),h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Ram"}),h.jsx("span",{className:re.specsValue,children:r})]}),h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Built in memory"}),h.jsx("span",{className:re.specsValue,children:i})]}),o&&h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Camera"}),h.jsx("span",{className:re.specsValue,children:o})]}),a&&h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Zoom"}),h.jsx("span",{className:re.specsValue,children:a})]}),h.jsxs("li",{className:re.specs,children:[h.jsx("strong",{className:re.specsKey,children:"Cell"}),h.jsx("span",{className:re.specsValue,children:s.join(" ")})]})]})]})}),qE="_root_1fz8b_1",XE="_main_1fz8b_14",JE="_footer_1fz8b_18",Pe={root:qE,main:XE,footer:JE,"variants-block":"_variants-block_1fz8b_23","variants-block__price":"_variants-block__price_1fz8b_26","variants-block__line":"_variants-block__line_1fz8b_40","variants-block__info":"_variants-block__info_1fz8b_46","variants-block__info--list":"_variants-block__info--list_1fz8b_49","variants-block__info--list-item":"_variants-block__info--list-item_1fz8b_56","variants-block__info--title":"_variants-block__info--title_1fz8b_60","variants-block__info--value":"_variants-block__info--value_1fz8b_66"},ZE="_root_6p15w_1",eC="_main_6p15w_14",tC="_footer_6p15w_18",la={root:ZE,main:eC,footer:tC,"variants-block":"_variants-block_6p15w_23","variants-block__title":"_variants-block__title_6p15w_29","variants-block__items":"_variants-block__items_6p15w_32"},$f=({title:e,children:t})=>h.jsxs("div",{className:la["variants-block"],children:[h.jsx("h4",{className:`${la["variants-block__title"]} small`,children:e}),h.jsx("div",{className:la["variants-block__items"],children:t})]}),nC="_root_1k9ux_1",rC="_main_1k9ux_14",iC="_footer_1k9ux_18",aa={root:nC,main:rC,footer:iC,"button-with-color":"_button-with-color_1k9ux_23","button-with-color__element":"_button-with-color__element_1k9ux_28","button-with-color__element--selected":"_button-with-color__element--selected_1k9ux_33"},sC="#000000",oC="#A5D6A7",lC="#F9E75B",aC="#FFFFFF",uC="#A57CC5",cC="#FF3B30",dC="#3A3A3C",fC="#003A3E",pC="#D8C29D",hC="#C7C7CC",mC="#FBB1C1",vC="#FF6F61",gC="#1C1C1E",_C="#1C1C1E",yC="#007AFF",wC="#FFC0CB",xC="#4E5452",SC="#A4C8E1",EC="#A5D6A7",CC="#E5E4E2",kC={black:sC,green:oC,yellow:lC,white:aC,purple:uC,red:cC,spacegray:dC,midnightgreen:fC,gold:pC,silver:hC,rosegold:mC,coral:vC,midnight:gC,spaceblack:_C,blue:yC,pink:wC,graphite:xC,sierrablue:SC,skyblue:EC,starlight:CC},TC=({isSelected:e,color:t,onClick:n,size:r})=>h.jsx(Mc,{onClick:n,className:Ne(aa["button-with-color"],{[aa["button-with-color__element--selected"]]:e}),size:r,children:h.jsx("div",{className:aa["button-with-color__element"],style:{backgroundColor:kC[t]}})}),PC="_root_189dg_1",AC="_main_189dg_14",bC="_footer_189dg_18",Bf={root:PC,main:AC,footer:bC,"button-with-text":"_button-with-text_189dg_23","button-with-text--selected":"_button-with-text--selected_189dg_27"},NC=({shape:e,label:t,isSelected:n,size:r,onClick:i})=>h.jsx(Mc,{shape:e,size:r,onClick:i,className:Ne(Bf["button-with-text"],{[Bf["button-with-text--selected"]]:n}),children:t}),jC=({colorsAvailable:e,color:t,screen:n,resolution:r,namespaceId:i,processor:s,capacity:o,ram:a,capacityAvailable:l,priceRegular:u,priceDiscount:c,product:d})=>h.jsxs("div",{className:Pe["variants-block"],children:[h.jsx($f,{title:"Available colors",children:e.map(m=>h.jsx(Rn,{to:`../${[i,o,m].join("-").toLowerCase()}`,children:h.jsx(TC,{size:bt.Small,color:m.replace(" ",""),isSelected:m===t})},m))}),h.jsx("div",{className:Pe["variants-block__line"]}),h.jsx($f,{title:"Select capacity",children:l.map(m=>h.jsx(Rn,{to:`../${[i,m,t].join("-").toLowerCase()}`,children:h.jsx(NC,{size:bt.Small,shape:Ti.Rectangle,label:m,isSelected:m===o})},m))}),h.jsx("div",{className:Pe["variants-block__line"]}),h.jsxs("div",{className:Pe["variants-block__price"],children:[h.jsxs("h2",{children:["$",c]}),h.jsxs("p",{children:["$",u]})]}),h.jsx("div",{className:"variants-block__actions",children:h.jsx(vv,{size:bt.Large,item:d})}),h.jsx("div",{className:Pe["variants-block__info"],children:h.jsxs("ul",{className:Pe["variants-block__info--list"],children:[h.jsxs("li",{className:Pe["variants-block__info--list-item"],children:[h.jsx("strong",{className:Pe["variants-block__info--title"],children:"Screen"}),h.jsx("span",{className:Pe["variants-block__info--value"],children:n})]}),h.jsxs("li",{className:Pe["variants-block__info--list-item"],children:[h.jsx("strong",{className:Pe["variants-block__info--title"],children:"Resolution"}),h.jsx("span",{className:Pe["variants-block__info--value"],children:r})]}),h.jsxs("li",{className:Pe["variants-block__info--list-item"],children:[h.jsx("strong",{className:Pe["variants-block__info--title"],children:"Processor"}),h.jsx("span",{className:Pe["variants-block__info--value"],children:s})]}),h.jsxs("li",{className:Pe["variants-block__info--list-item"],children:[h.jsx("strong",{className:Pe["variants-block__info--title"],children:"Ram"}),h.jsx("span",{className:Pe["variants-block__info--value"],children:a})]})]})})]}),IC="_root_948fx_1",LC="_main_948fx_14",MC="_footer_948fx_18",OC="_back_948fx_23",zC="_back__img_948fx_29",RC="_back__name_948fx_37",ua={root:IC,main:LC,footer:MC,back:OC,back__img:zC,back__name:RC},zc=()=>{const e=qr();return h.jsxs("div",{className:ua.back,children:[h.jsx("div",{className:ua.back__img}),h.jsx("div",{className:ua.back__name,onClick:()=>e(-1),children:"Back"})]})},DC=e=>{switch(!0){case e.includes("/phones/"):return Ki;case e.includes("/tablets/"):return kc;case e.includes("/accessories/"):return Tc;default:return Ki}},FC=()=>{const[e,t]=A.useState([]),{pathname:n}=Yt(),r=A.useMemo(()=>DC(n),[n]);return A.useEffect(()=>{r().then(i=>{t(i.filter(s=>!n.includes(s.id)))})},[]),h.jsx(Eu,{sliderTitle:"You may also like",productsList:e})},ca=()=>{const[e,t]=A.useState(null),[n,r]=A.useState(!0),[i,s]=A.useState(""),{pathname:o}=Yt(),{productId:a}=Ww(),l=window.history.length>1;return A.useEffect(()=>{q0(o,a).then(u=>{u?(document.title=u.name,t(u),window.scrollTo({top:0,behavior:"smooth"})):s("Product was not found")}).catch(()=>{s("Please try again later")}).finally(()=>{r(!1)})},[r,t,a,o]),n?h.jsx("div",{className:Ot["loading-wrapper"],children:h.jsx(al,{})}):e?h.jsxs("div",{className:Ot.container,children:[h.jsx(Oc,{product:e}),l&&h.jsx(zc,{}),h.jsxs("div",{className:Ot["product-content"],children:[h.jsxs("h2",{className:Ot["product-content__title"],children:[e.name," "]}),h.jsxs("div",{className:Ot["product-content__details"],children:[h.jsx("div",{className:Ot["product-content__details--gallery"],children:h.jsx(RE,{images:e.images})}),h.jsx("div",{className:Ot["product-content__details--variants"],children:h.jsx(jC,{capacityAvailable:e.capacityAvailable,colorsAvailable:e.colorsAvailable,priceRegular:e.priceRegular,priceDiscount:e.priceDiscount,screen:e.screen,resolution:e.resolution,processor:e.processor,ram:e.ram,capacity:e.capacity,color:e.color,namespaceId:e.namespaceId,product:e})}),h.jsx("div",{className:Ot["product-content__details--description"],children:h.jsx(jE,{description:e.description})}),h.jsx("div",{className:Ot["product-content__details--tech-specs"],children:h.jsx(KE,{screen:e.screen,resolution:e.resolution,processor:e.processor,ram:e.ram,capacity:e.capacity,cell:e.cell,camera:e.category!==Or.Accessory?e.camera:null,zoom:e.category!==Or.Accessory?e.zoom:null})})]})]}),h.jsx(FC,{})]}):h.jsx("div",{className:Ot.container,children:h.jsx("h2",{children:i})})},$C="_root_4ikg6_1",BC="_main_4ikg6_14",VC="_footer_4ikg6_18",UC="_phones_4ikg6_23",WC="_phones__routs_4ikg6_34",HC="_phones__routs__home_4ikg6_38",GC="_phones__routs__array_4ikg6_46",QC="_phones__routs__currentPage_4ikg6_56",YC="_phones__title_4ikg6_62",KC="_phones__countModel_4ikg6_78",qC="_phones__items_4ikg6_84",XC="_phones__item_4ikg6_84",JC="_phones__pagination_4ikg6_123",ZC="_phones__pagination__arr_4ikg6_129",ek="_phones__pagination__arrLeft_4ikg6_154",tk="_phones__pagination__arrRight_4ikg6_162",nk="_phones__pagination__buttons_4ikg6_170",rk="_phones__pagination__button_4ikg6_170",ik="_phones__pagination__button_current_4ikg6_192",sk="_phonesDropdown_4ikg6_200",ok="_noResults_4ikg6_204",lk="_filtration_4ikg6_208",Ie={root:$C,main:BC,footer:VC,phones:UC,phones__routs:WC,phones__routs__home:HC,phones__routs__array:GC,phones__routs__currentPage:QC,phones__title:YC,phones__countModel:KC,phones__items:qC,phones__item:XC,phones__pagination:JC,phones__pagination__arr:ZC,phones__pagination__arrLeft:ek,phones__pagination__arrRight:tk,phones__pagination__buttons:nk,phones__pagination__button:rk,phones__pagination__button_current:ik,phonesDropdown:sk,noResults:ok,filtration:lk},ak="_root_1oucv_1",uk="_main_1oucv_14",ck="_footer_1oucv_18",dk="_dropdown_1oucv_23",zt={root:ak,main:uk,footer:ck,dropdown:dk,"dropdown-label":"_dropdown-label_1oucv_33","dropdown-toggle":"_dropdown-toggle_1oucv_40","dropdown-toggle-clicked":"_dropdown-toggle-clicked_1oucv_63","dropdown-text":"_dropdown-text_1oucv_69","dropdown-arrow":"_dropdown-arrow_1oucv_72","dropdown-arrow-down":"_dropdown-arrow-down_1oucv_81","dropdown-arrow-up":"_dropdown-arrow-up_1oucv_84","dropdown-menu":"_dropdown-menu_1oucv_87","dropdown-item":"_dropdown-item_1oucv_111"};var _v={exports:{}},oi={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vf;function fk(){if(Vf)return oi;Vf=1;var e=J,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,u){var c,d={},m=null,g=null;u!==void 0&&(m=""+u),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!s.hasOwnProperty(c)&&(d[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:a,key:m,ref:g,props:d,_owner:i.current}}return oi.Fragment=n,oi.jsx=o,oi.jsxs=o,oi}(function(e){e.exports=fk()})(_v);_v.exports.jsx;const yv=(e,t)=>{const n=A.useRef(null);return A.useEffect(()=>{const r=i=>{n.current&&n.current.contains&&!n.current.contains(i.target)&&!pk(t,i.target)&&e&&e(n.current)};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[]),n};function pk(e,t){return!1}const hk=({handleSort:e,initialSortOption:t})=>{var d;const[n,r]=A.useState(!1),[i,s]=A.useState("alphabetical");A.useEffect(()=>{s(t)},[t]);const o=()=>r(!n),a=m=>{s(m),e(m),r(!1)},u=yv(()=>{r(!1)}),c=[{value:"alphabetical",label:"Alphabetically"},{value:"price_asc",label:"Price Ascending"},{value:"price_desc",label:"Price Descending"},{value:"newest",label:"Newest"}];return h.jsxs("div",{ref:u,className:zt.dropdown,children:[h.jsx("span",{className:zt["dropdown-label"],children:"Sort by:"}),h.jsxs("button",{className:`${zt["dropdown-toggle"]} ${n?zt["dropdown-toggle-clicked"]:""}`,onClick:o,children:[h.jsx("span",{className:zt["dropdown-text"],children:(d=c.find(m=>m.value===i))==null?void 0:d.label}),h.jsx("span",{className:`${zt["dropdown-arrow"]} ${n?zt["dropdown-arrow-up"]:zt["dropdown-arrow-down"]}`})]}),n&&h.jsx("div",{className:zt["dropdown-menu"],children:c.map(m=>h.jsx("button",{className:zt["dropdown-item"],onClick:()=>a(m.value),children:m.label},m.value))})]})},mk="_root_7dek7_1",vk="_main_7dek7_14",gk="_footer_7dek7_18",_k="_dropdown_7dek7_23",Rt={root:mk,main:vk,footer:gk,dropdown:_k,"dropdown-label":"_dropdown-label_7dek7_32","dropdown-toggle":"_dropdown-toggle_7dek7_39","dropdown-toggle-clicked":"_dropdown-toggle-clicked_7dek7_62","dropdown-text":"_dropdown-text_7dek7_68","dropdown-arrow":"_dropdown-arrow_7dek7_71","dropdown-arrow-down":"_dropdown-arrow-down_7dek7_80","dropdown-arrow-up":"_dropdown-arrow-up_7dek7_83","dropdown-menu":"_dropdown-menu_7dek7_86","dropdown-item":"_dropdown-item_7dek7_110"},yk=({onSelect:e,initialOption:t})=>{var d;const[n,r]=A.useState(!1),[i,s]=A.useState(t);A.useEffect(()=>{s(t)},[t]);const o=()=>r(!n),a=m=>{s(m),e(m),r(!1)},u=yv(()=>{r(!1)}),c=[{value:4,label:"4 per page"},{value:8,label:"8 per page"},{value:16,label:"16 per page"},{value:"all",label:"Show all"}];return h.jsxs("div",{ref:u,className:Rt.dropdown,children:[h.jsx("span",{className:Rt["dropdown-label"],children:"Show:"}),h.jsxs("button",{className:`${Rt["dropdown-toggle"]} ${n?Rt["dropdown-toggle-clicked"]:""}`,onClick:o,children:[h.jsx("span",{className:Rt["dropdown-text"],children:(d=c.find(m=>m.value===i))==null?void 0:d.label}),h.jsx("span",{className:`${Rt["dropdown-arrow"]} ${n?Rt["dropdown-arrow-up"]:Rt["dropdown-arrow-down"]}`})]}),n&&h.jsx("div",{className:Rt["dropdown-menu"],children:c.map(m=>h.jsx("button",{className:Rt["dropdown-item"],onClick:()=>a(m.value),children:m.label},m.value.toString()))})]})},wk="_root_1ktdz_1",xk="_main_1ktdz_14",Sk="_footer_1ktdz_18",li={root:wk,main:xk,footer:Sk,"input-wrapper":"_input-wrapper_1ktdz_23","search-icon":"_search-icon_1ktdz_41","input-field":"_input-field_1ktdz_52","search-input":"_search-input_1ktdz_69","search-button":"_search-button_1ktdz_78"},Ek=({onSearch:e})=>{const[t,n]=A.useState(""),r=()=>{e(t)},i=s=>{s.key==="Enter"&&r()};return h.jsxs("div",{className:li["input-wrapper"],children:[h.jsxs("div",{className:li["input-field"],children:[h.jsx("span",{className:li["search-icon"]}),h.jsx("input",{className:li["search-input"],type:"text",placeholder:"Type to search...",value:t,onChange:s=>n(s.target.value),onKeyDown:i})]}),h.jsx("button",{className:li["search-button"],onClick:r,children:"Search"})]})};function Ck(e,t){let n=[...e];switch(t){case"alphabetical":return n.sort((r,i)=>r.name.localeCompare(i.name));case"price_asc":return n.sort((r,i)=>r.priceDiscount-i.priceDiscount);case"price_desc":return n.sort((r,i)=>i.priceDiscount-r.priceDiscount);case"newest":return n.sort((r,i)=>i.name.localeCompare(r.name));default:return n}}const ul=({items:e,title:t,isFiltered:n})=>{const r=qr(),i=Yt(),[s,o]=A.useState(1),[a,l]=A.useState("alphabetical"),[u,c]=A.useState(16),[d,m]=A.useState("");A.useEffect(()=>{const C=new URLSearchParams(i.search),P=C.get("sort"),T=C.get("perPage");if(P&&["alphabetical","price_asc","price_desc","newest"].includes(P)&&l(P),T)if(T==="all")c("all");else{const I=Number(T);[4,8,16].includes(I)&&c(I)}},[i.search]);const g=A.useMemo(()=>{let C=Ck(e,a);return d.trim()!==""&&(C=C.filter(P=>P.name.toLowerCase().includes(d.toLowerCase()))),C},[e,a,d]),_=A.useMemo(()=>{let C=g;if(d.trim()!==""&&(C=g.filter(I=>I.name.toLowerCase().includes(d.toLowerCase()))),u==="all")return C;const P=s*u,T=P-u;return C.slice(T,P)},[g,s,u,d]),w=u==="all"?1:Math.ceil(g.length/u),S=()=>{s>1&&o(s-1)},v=()=>{so(C),p=(C,P,T)=>{const I=new URLSearchParams(i.search);I.set("sort",C),P===16?I.delete("perPage"):I.set("perPage",P.toString()),T.trim()!==""?I.set("q",T):I.delete("q"),r(`${i.pathname}?${I.toString()}`,{replace:!0})},y=C=>{l(C),o(1),p(C,u,d)},x=C=>{c(C),o(1),p(a,C,d)},k=C=>{m(C),o(1),p(a,u,C)},j=(C,P)=>{const I=[];I.push(1);for(let R=Math.max(2,C-2);R<=Math.min(P-1,C+2);R++)I.push(R);P>1&&I.push(P);let M=[],N=0;for(let R of I)R-N>1&&M.push("..."),M.push(R),N=R;return M};return h.jsx(h.Fragment,{children:h.jsxs("div",{className:Ie.phones,children:[h.jsx(Oc,{}),h.jsx("div",{className:Ie.phones__title,children:t}),h.jsxs("div",{className:Ie.phones__countModel,children:[g.length," ",g.length===1?"model":"models"]}),n&&h.jsxs("div",{className:Ie.filtration,children:[h.jsxs("div",{className:Ie.phonesDropdown,children:[h.jsx(hk,{handleSort:y,initialSortOption:a}),h.jsx(yk,{onSelect:x,initialOption:u})]}),h.jsx(Ek,{onSearch:k})]}),_.length===0&&n&&h.jsxs("div",{className:Ie.noResults,children:[h.jsx("h2",{children:"No results found"}),h.jsx("p",{children:"Try searching for something else."})]}),_.length>0&&h.jsx("div",{className:Ie.phones__items,children:_.map(C=>h.jsx("div",{className:Ie.phones__item,children:h.jsx(gv,{item:C})},C.id))}),_.length>0&&u!=="all"&&h.jsxs("div",{className:Ie.phones__pagination,children:[h.jsx("button",{className:Ie.phones__pagination__arr,onClick:S,disabled:s===1,children:h.jsx("div",{className:Ie.phones__pagination__arrLeft})}),h.jsx("div",{className:Ie.phones__pagination__buttons,children:j(s,w).map((C,P)=>C==="..."?h.jsx("span",{className:Ie.phones__pagination__ellipsis,children:"..."},P):h.jsx("button",{onClick:()=>f(C),className:s!==C?Ie.phones__pagination__button:Ie.phones__pagination__button_current,children:C},P))}),h.jsx("button",{onClick:v,className:Ie.phones__pagination__arr,disabled:s===w,children:h.jsx("div",{className:Ie.phones__pagination__arrRight})})]})]})})},kk=()=>{const e=cr(),{tablets:t,loading:n}=$e(r=>({tablets:r.tablets.tablets,loading:r.tablets.isTabletsLoading}));return A.useEffect(()=>{e(Bs()),document.title="Tablets"},[e]),n||!t.length?h.jsx(al,{}):h.jsx(h.Fragment,{children:h.jsx(ul,{items:t,title:"Tablets",isFiltered:!0})})},Tk=()=>{const e=cr(),{accessories:t,loading:n}=$e(r=>({accessories:r.accessories.accessories,loading:r.accessories.isAccessoryLoading}));return A.useEffect(()=>{e($s()),document.title="Accessories"},[e]),n||!t.length?h.jsx(al,{}):h.jsx(h.Fragment,{children:h.jsx(ul,{items:t,title:"Accessories",isFiltered:!0})})},Pk="_root_z1txc_1",Ak="_main_z1txc_14",bk="_footer_z1txc_18",Nk="_wide_button_z1txc_23",jk="_wide_button__title_z1txc_32",Ik="_shake_horizontal_z1txc_47",da={root:Pk,main:Ak,footer:bk,wide_button:Nk,wide_button__title:jk,shake_horizontal:Ik};var wv={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Rc={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Lk=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],No={CSS:{},springs:{}};function Vt(e,t,n){return Math.min(Math.max(e,t),n)}function Pi(e,t){return e.indexOf(t)>-1}function fa(e,t){return e.apply(null,t)}var Q={arr:function(e){return Array.isArray(e)},obj:function(e){return Pi(Object.prototype.toString.call(e),"Object")},pth:function(e){return Q.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Q.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return Q.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Q.hex(e)||Q.rgb(e)||Q.hsl(e)},key:function(e){return!wv.hasOwnProperty(e)&&!Rc.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function xv(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function Sv(e,t){var n=xv(e),r=Vt(Q.und(n[0])?1:n[0],.1,100),i=Vt(Q.und(n[1])?100:n[1],.1,100),s=Vt(Q.und(n[2])?10:n[2],.1,100),o=Vt(Q.und(n[3])?0:n[3],.1,100),a=Math.sqrt(i/r),l=s/(2*Math.sqrt(i*r)),u=l<1?a*Math.sqrt(1-l*l):0,c=1,d=l<1?(l*a+-o)/u:-o+a;function m(_){var w=t?t*_/1e3:_;return l<1?w=Math.exp(-w*l*a)*(c*Math.cos(u*w)+d*Math.sin(u*w)):w=(c+d*w)*Math.exp(-w*a),_===0||_===1?_:1-w}function g(){var _=No.springs[e];if(_)return _;for(var w=1/6,S=0,v=0;;)if(S+=w,m(S)===1){if(v++,v>=16)break}else v=0;var f=S*w*1e3;return No.springs[e]=f,f}return t?m:g}function Mk(e){return e===void 0&&(e=10),function(t){return Math.ceil(Vt(t,1e-6,1)*e)*(1/e)}}var Ok=function(){var e=11,t=1/(e-1);function n(c,d){return 1-3*d+3*c}function r(c,d){return 3*d-6*c}function i(c){return 3*c}function s(c,d,m){return((n(d,m)*c+r(d,m))*c+i(d))*c}function o(c,d,m){return 3*n(d,m)*c*c+2*r(d,m)*c+i(d)}function a(c,d,m,g,_){var w,S,v=0;do S=d+(m-d)/2,w=s(S,g,_)-c,w>0?m=S:d=S;while(Math.abs(w)>1e-7&&++v<10);return S}function l(c,d,m,g){for(var _=0;_<4;++_){var w=o(d,m,g);if(w===0)return d;var S=s(d,m,g)-c;d-=S/w}return d}function u(c,d,m,g){if(!(0<=c&&c<=1&&0<=m&&m<=1))return;var _=new Float32Array(e);if(c!==d||m!==g)for(var w=0;w=.001?l(v,k,c,m):j===0?k:a(v,f,f+t,c,m)}return function(v){return c===d&&m===g||v===0||v===1?v:s(S(v),d,g)}}return u}(),Ev=function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var i,s=4;r<((i=Math.pow(2,--s))-1)/11;);return 1/Math.pow(4,3-s)-7.5625*Math.pow((i*3-2)/22-r,2)}},Elastic:function(r,i){r===void 0&&(r=1),i===void 0&&(i=.5);var s=Vt(r,1,10),o=Vt(i,.1,2);return function(a){return a===0||a===1?a:-s*Math.pow(2,10*(a-1))*Math.sin((a-1-o/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/o)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,i){t[r]=function(){return function(s){return Math.pow(s,i+2)}}}),Object.keys(t).forEach(function(r){var i=t[r];e["easeIn"+r]=i,e["easeOut"+r]=function(s,o){return function(a){return 1-i(s,o)(1-a)}},e["easeInOut"+r]=function(s,o){return function(a){return a<.5?i(s,o)(a*2)/2:1-i(s,o)(a*-2+2)/2}},e["easeOutIn"+r]=function(s,o){return function(a){return a<.5?(1-i(s,o)(1-a*2))/2:(i(s,o)(a*2-1)+1)/2}}}),e}();function Dc(e,t){if(Q.fnc(e))return e;var n=e.split("(")[0],r=Ev[n],i=xv(e);switch(n){case"spring":return Sv(e,t);case"cubicBezier":return fa(Ok,i);case"steps":return fa(Mk,i);default:return fa(r,i)}}function Cv(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function cl(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,i=[],s=0;s1&&(_-=1),_<1/6?m+(g-m)*6*_:_<1/2?g:_<2/3?m+(g-m)*(2/3-_)*6:m}var a,l,u;if(r==0)a=l=u=i;else{var c=i<.5?i*(1+r):i+r-i*r,d=2*i-c;a=o(d,c,n+1/3),l=o(d,c,n),u=o(d,c,n-1/3)}return"rgba("+a*255+","+l*255+","+u*255+","+s+")"}function Fk(e){if(Q.rgb(e))return zk(e);if(Q.hex(e))return Rk(e);if(Q.hsl(e))return Dk(e)}function on(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function $k(e){if(Pi(e,"translate")||e==="perspective")return"px";if(Pi(e,"rotate")||Pi(e,"skew"))return"deg"}function ku(e,t){return Q.fnc(e)?e(t.target,t.id,t.total):e}function Ut(e,t){return e.getAttribute(t)}function Bc(e,t,n){var r=on(t);if(Fc([n,"deg","rad","turn"],r))return t;var i=No.CSS[t+n];if(!Q.und(i))return i;var s=100,o=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=s+n;var l=s/o.offsetWidth;a.removeChild(o);var u=l*parseFloat(t);return No.CSS[t+n]=u,u}function kv(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Bc(e,i,n):i}}function Vc(e,t){if(Q.dom(e)&&!Q.inp(e)&&(!Q.nil(Ut(e,t))||Q.svg(e)&&e[t]))return"attribute";if(Q.dom(e)&&Fc(Lk,t))return"transform";if(Q.dom(e)&&t!=="transform"&&kv(e,t))return"css";if(e[t]!=null)return"object"}function Tv(e){if(Q.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,i;i=n.exec(t);)r.set(i[1],i[2]);return r}}function Bk(e,t,n,r){var i=Pi(t,"scale")?1:0+$k(t),s=Tv(e).get(t)||i;return n&&(n.transforms.list.set(t,s),n.transforms.last=t),r?Bc(e,s,r):s}function Uc(e,t,n,r){switch(Vc(e,t)){case"transform":return Bk(e,t,r,n);case"css":return kv(e,t,n);case"attribute":return Ut(e,t);default:return e[t]||0}}function Wc(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=on(e)||0,i=parseFloat(t),s=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return i+s+r;case"-":return i-s+r;case"*":return i*s+r}}function Pv(e,t){if(Q.col(e))return Fk(e);if(/\s/g.test(e))return e;var n=on(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Hc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Vk(e){return Math.PI*2*Ut(e,"r")}function Uk(e){return Ut(e,"width")*2+Ut(e,"height")*2}function Wk(e){return Hc({x:Ut(e,"x1"),y:Ut(e,"y1")},{x:Ut(e,"x2"),y:Ut(e,"y2")})}function Av(e){for(var t=e.points,n=0,r,i=0;i0&&(n+=Hc(r,s)),r=s}return n}function Hk(e){var t=e.points;return Av(e)+Hc(t.getItem(t.numberOfItems-1),t.getItem(0))}function bv(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return Vk(e);case"rect":return Uk(e);case"line":return Wk(e);case"polyline":return Av(e);case"polygon":return Hk(e)}}function Gk(e){var t=bv(e);return e.setAttribute("stroke-dasharray",t),t}function Qk(e){for(var t=e.parentNode;Q.svg(t)&&Q.svg(t.parentNode);)t=t.parentNode;return t}function Nv(e,t){var n=t||{},r=n.el||Qk(e),i=r.getBoundingClientRect(),s=Ut(r,"viewBox"),o=i.width,a=i.height,l=n.viewBox||(s?s.split(" "):[0,0,o,a]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function Yk(e,t){var n=Q.str(e)?Cv(e)[0]:e,r=t||100;return function(i){return{property:i,el:n,svg:Nv(n),totalLength:bv(n)*(r/100)}}}function Kk(e,t,n){function r(c){c===void 0&&(c=0);var d=t+c>=1?t+c:0;return e.el.getPointAtLength(d)}var i=Nv(e.el,e.svg),s=r(),o=r(-1),a=r(1),l=n?1:i.w/i.vW,u=n?1:i.h/i.vH;switch(e.property){case"x":return(s.x-i.x)*l;case"y":return(s.y-i.y)*u;case"angle":return Math.atan2(a.y-o.y,a.x-o.x)*180/Math.PI}}function Wf(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Pv(Q.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Q.str(e)||t?r.split(n):[]}}function Gc(e){var t=e?dl(Q.arr(e)?e.map(Uf):Uf(e)):[];return cl(t,function(n,r,i){return i.indexOf(n)===r})}function jv(e){var t=Gc(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:Tv(n)}}})}function qk(e,t){var n=$c(t);if(/^spring/.test(n.easing)&&(n.duration=Sv(n.easing)),Q.arr(e)){var r=e.length,i=r===2&&!Q.obj(e[0]);i?e={value:e}:Q.fnc(t.duration)||(n.duration=t.duration/r)}var s=Q.arr(e)?e:[e];return s.map(function(o,a){var l=Q.obj(o)&&!Q.pth(o)?o:{value:o};return Q.und(l.delay)&&(l.delay=a?0:t.delay),Q.und(l.endDelay)&&(l.endDelay=a===s.length-1?t.endDelay:0),l}).map(function(o){return fl(o,n)})}function Xk(e){for(var t=cl(dl(e.map(function(s){return Object.keys(s)})),function(s){return Q.key(s)}).reduce(function(s,o){return s.indexOf(o)<0&&s.push(o),s},[]),n={},r=function(s){var o=t[s];n[o]=e.map(function(a){var l={};for(var u in a)Q.key(u)?u==o&&(l.value=a[u]):l[u]=a[u];return l})},i=0;i0&&(e=requestAnimationFrame(n))}function n(i){for(var s=Pt.length,o=0;o0?requestAnimationFrame(n):void 0}function r(){le.suspendWhenDocumentHidden&&(Gf()?e=cancelAnimationFrame(e):(Pt.forEach(function(i){return i._onDocumentVisibility()}),Ov()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t}();function Gf(){return!!document&&document.hidden}function le(e){e===void 0&&(e={});var t=0,n=0,r=0,i,s=0,o=null;function a(f){var p=window.Promise&&new Promise(function(y){return o=y});return f.finished=p,p}var l=rT(e);a(l);function u(){var f=l.direction;f!=="alternate"&&(l.direction=f!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,i.forEach(function(p){return p.reversed=l.reversed})}function c(f){return l.reversed?l.duration-f:f}function d(){t=0,n=c(l.currentTime)*(1/le.speed)}function m(f,p){p&&p.seek(f-p.timelineOffset)}function g(f){if(l.reversePlayback)for(var y=s;y--;)m(f,i[y]);else for(var p=0;p2||(F=Math.round(F*R)/R)),W.push(F)}var ne=N.length;if(!ne)te=W[0];else{te=N[0];for(var ht=0;ht0&&(l.began=!0,w("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,w("loopBegin")),k<=y&&l.currentTime!==0&&_(0),(k>=x&&l.currentTime!==p||!p)&&_(p),k>y&&k=p&&(n=0,S(),l.remaining?(t=r,w("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&u()):(l.paused=!0,l.completed||(l.completed=!0,w("loopComplete"),w("complete"),!l.passThrough&&"Promise"in window&&(o(),a(l)))))}return l.reset=function(){var f=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=f==="reverse",l.remaining=l.loop,i=l.children,s=i.length;for(var p=s;p--;)l.children[p].reset();(l.reversed&&l.loop!==!0||f==="alternate"&&l.loop===1)&&l.remaining++,_(l.reversed?l.duration:0)},l._onDocumentVisibility=d,l.set=function(f,p){return Lv(f,p),l},l.tick=function(f){r=f,t||(t=r),v((r+(n-t))*le.speed)},l.seek=function(f){v(c(f))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Pt.push(l),d(),Ov())},l.reverse=function(){u(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.remove=function(f){var p=Gc(f);zv(p,l)},l.reset(),l.autoplay&&l.play(),l}function Qf(e,t){for(var n=t.length;n--;)Fc(e,t[n].animatable.target)&&t.splice(n,1)}function zv(e,t){var n=t.animations,r=t.children;Qf(e,n);for(var i=r.length;i--;){var s=r[i],o=s.animations;Qf(e,o),!o.length&&!s.children.length&&r.splice(i,1)}!n.length&&!r.length&&t.pause()}function iT(e){for(var t=Gc(e),n=Pt.length;n--;){var r=Pt[n];zv(t,r)}}function sT(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?Dc(t.easing):null,i=t.grid,s=t.axis,o=t.from||0,a=o==="first",l=o==="center",u=o==="last",c=Q.arr(e),d=parseFloat(c?e[0]:e),m=c?parseFloat(e[1]):0,g=on(c?e[1]:e)||0,_=t.start||0+(c?d:0),w=[],S=0;return function(v,f,p){if(a&&(o=0),l&&(o=(p-1)/2),u&&(o=p-1),!w.length){for(var y=0;y-1&&Pt.splice(i,1);function o(m){m.passThrough=!0}for(var a=0;a{},onClickForCancel:r=()=>{},animationSettings:i={},useSucceessAnimation:s=!1,useAnimationForPhoneCard:o=!1,isError:a=!1,animationTimeMS:l=0})=>{const u=A.useRef(null),[c]=A.useState(s?2e3+l:l),d=A.useRef(!1),[m,g]=A.useState(!1),_=A.useRef(null),[w,S]=A.useState(1),[v,f]=A.useState(null),p=()=>{_.current=le({targets:u.current,backgroundColor:"#fff",color:"#31FC56",fontSize:14,fontWeight:600,duration:1e3,keyframes:[{rotateX:-180,translateY:-28},{rotateX:-360,translateY:0}],textShadow:["rgba(0,255, 0, 0.7) 0px 0px 29px"],boxShadow:["rgba(0,0,0,0.9) 0px 0px 0px;",{value:"rgba(0,255, 0, 0.1) 0px 0px 19px",duration:700},{value:"rgba(0,255, 0, 0.9) 0px 0px 29px",duration:300},"rgba(0,255, 0, 0.2) 0px 0px 29px"],easing:"easeInOutQuad",begin:()=>{u.current&&(u.current.textContent="")},complete:()=>{u.current&&(u.current.textContent="Success")}})},y=()=>{switch(S(j=>j+1),w){case 1:{p(),setTimeout(()=>{_.current=le({targets:u.current,backgroundColor:"#fff",color:"#fc0202",fontSize:14,fontWeight:700,duration:500,keyframes:[{opacity:0},{opacity:1}],textShadow:["rgba(255,0, 0, 0.7) 0px 0px 29px"],boxShadow:["rgba(0,0,0,0.9) 0px 0px 0px;",{value:"rgba(255,0, 0, 0.1) 0px 0px 19px",duration:300},{value:"rgba(255,0, 0, 0.9) 0px 0px 29px",duration:200},"rgba(255,0, 0, 0.2) 0px 0px 29px"],easing:"easeInOutQuad",begin:()=>{n(),u.current&&(u.current.textContent="")},complete:()=>{d.current=!1,u.current&&(u.current.textContent="Cancel")}})},c);return}case 2:{_.current=le({targets:u.current,backgroundColor:"#4219d0",color:"#fff",duration:600,fontSize:14,fontWeight:700,keyframes:[{transformScale:3,filterBlur:6},{transformScale:1,filterBlur:0}],textShadow:["rgba(0,0, 0, 0) 0px 0px 0px"],boxShadow:["rgba(0,0,0,0.9) 0px 0px 0px;",{value:"rgba(0, 0, 255, 0.1) 0px 0px 19px",duration:300},{value:"rgba(0, 0, 255, 0.9) 0px 0px 29px",duration:200},{value:"rgba(0, 0, 255, 0.1) 0px 0px 29px",duration:100},"rgba(0,0, 0, 0) 0px 0px 0px"],easing:"easeInOutQuad",begin:()=>{r(),u.current&&(u.current.textContent="")},complete:()=>{d.current=!1,u.current&&(u.current.textContent="Add to cart")}});return}}},x=()=>{g(!0),setTimeout(()=>{g(!1)},800)},k=()=>{if(a){m||x();return}if(!d.current){if(o&&!d.current){d.current=!0,y(),w>=2&&S(1);return}if(s){d.current=!0,p(),d.current===!0&&(d.current=!0,le(i),setTimeout(()=>{d.current=!1,n()},c));return}else{d.current&&(d.current=!0,le(i),setTimeout(()=>{d.current=!1,n()},c));return}}};return A.useEffect(()=>{f(String(Math.random))},[]),h.jsx("button",{ref:u,className:Ne(da.wide_button,{[da.shake_horizontal]:m}),onClick:k,style:{...t},children:h.jsx("p",{className:da.wide_button__title,children:e})},v)},aT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABgSURBVHgB7dGxDYAwDATAd/pEHo0R2ISwCSMwGbKSniBalEgUFg1/jaV389IDREREfyejR4w6w4/VajveFkhJs4gscNSarKUc+ZkHfCSEs5sPJ1DV6T5wYmYbiIiIqOMCiTERCGTj7YwAAAAASUVORK5CYII=",uT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADISURBVHgB7ZXRCcIwEEDvUqH+NI0uVEfoBnYT6xZ+dgRXcAMnkSP96VfOxE9pK4RgabkHIcddAo+EXAAEYc1ofbyEAUtQFKYuywOH4eMGIlEQSZaBgQREC6RCBERgcYHdVOHX23ZOVYj8iRFV5dfPLae+p/tYAceSWpsWEZN2OGa8Wvtqv/N/uwKl3GgepzYYY+owTdWdg5M/pXOImblTCh4wAxF1kBIv2Cz6F6RCBERgMwIEkWQQyTAMzzzfY2hA1tINBGGtvAFKwC0L1khV2AAAAABJRU5ErkJggg==",Rv=({cart:e,isOrder:t=!1})=>{const n=cr(),r=()=>{n(Vm(e.item.id))},i=()=>{n(iw(e.item.id))},s=()=>{n(sw(e.item.id))};return h.jsxs("div",{className:"cartItem",children:[h.jsxs("div",{className:"block__information",children:[!t&&h.jsx("button",{onClick:r,className:"cartItem__close"}),h.jsx("img",{className:"cartItem__image",src:`${Yi}/${e.item.images[0]}`}),h.jsx(Rn,{to:`/${e.item.category}/${e.item.id}`,children:h.jsx("p",{className:"cartItem__name",children:e.item.name})})]}),h.jsxs("div",{className:Ne("block__price",{"block__price--order":t}),children:[h.jsxs("div",{className:"cartItem__count",children:[!t&&h.jsx("button",{className:"cartItem__count--button",onClick:s,children:h.jsx("img",{src:aT,className:"cartItem__count--button-minus"})}),h.jsx("div",{className:"cartItem__count__number",children:e.count}),!t&&h.jsx("button",{className:"cartItem__count--button",onClick:i,children:h.jsx("img",{src:uT,className:"cartItem__count--button-plus"})})]}),h.jsxs("div",{className:"cartItem__price",children:["$",e.item.priceDiscount]}),t&&h.jsxs("div",{className:"cartItem__price",children:["$",e.item.priceDiscount*e.count]})]})]})},cT=()=>{const e=qr(),t=cr(),n=$e(a=>a.cart.cartItems),r=n.length<1,i=$e(a=>Um(a.cart)),s=$e(a=>Wm(a.cart));document.title="Cart";const o=()=>{n.length!==0&&(t(fw(n)),t(rw()),e("/user"))};return h.jsxs("div",{className:"cart",children:[h.jsx(zc,{}),h.jsx("div",{className:"cart__title",children:"Cart"}),n.length===0&&h.jsx("div",{className:"cart__empty-message",children:"Your shopping cart is currently empty"}),h.jsxs("div",{className:"cart__items",children:[n.map(a=>h.jsx(Rv,{cart:a},a.item.id)),h.jsxs("div",{className:"cart__total-count",children:[h.jsxs("div",{className:"cart__total-count__price",children:["$",i]}),h.jsxs("div",{className:"cart__total-count__text",children:["Total for ",s," items"]}),h.jsx("div",{className:"cart__total-count__line"}),h.jsx(lT,{buttonTitle:"Checkout",styleList:{height:48},useSucceessAnimation:!0,isError:r,onClick:o})]})]})]})},dT=()=>(document.title="Page not found",h.jsx("div",{className:"not-found",children:h.jsxs("div",{className:"not-found__container",children:[h.jsx("h2",{className:"not-found__title",children:"404 - Page not found"}),h.jsxs("p",{className:"not-found__description",children:["Sorry, the page you are looking for does not exist. To return to home page, click"," ",h.jsx(Rn,{to:"/",className:"not-found__link",children:"here"}),"."]})]})})),fT=()=>{const e=cr(),{phones:t,loading:n}=$e(r=>({phones:r.phones.phones,loading:r.phones.isPhonesLoading}));return A.useEffect(()=>{e(Ci()),document.title="Phones"},[e]),n||!t.length?h.jsx(al,{}):h.jsx(ul,{items:t,title:"Mobile phones",isFiltered:!0})},pT=()=>{const e=$e(t=>t.favorites);return document.title="Favorites",h.jsx(h.Fragment,{children:h.jsx(ul,{items:e.favoriteItems,title:"Favorites",isFiltered:!1})})};var ss=e=>e.type==="checkbox",Ar=e=>e instanceof Date,Ue=e=>e==null;const Dv=e=>typeof e=="object";var xe=e=>!Ue(e)&&!Array.isArray(e)&&Dv(e)&&!Ar(e),hT=e=>xe(e)&&e.target?ss(e.target)?e.target.checked:e.target.value:e,mT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vT=(e,t)=>e.has(mT(t)),gT=e=>{const t=e.constructor&&e.constructor.prototype;return xe(t)&&t.hasOwnProperty("isPrototypeOf")},Qc=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Qc&&(e instanceof Blob||e instanceof FileList))&&(n||xe(e)))if(t=n?[]:{},!n&&!gT(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=mt(e[r]));else return e;return t}var pl=e=>Array.isArray(e)?e.filter(Boolean):[],_e=e=>e===void 0,H=(e,t,n)=>{if(!t||!xe(e))return n;const r=pl(t.split(/[,[\].]+?/)).reduce((i,s)=>Ue(i)?i:i[s],e);return _e(r)||r===e?_e(e[t])?n:e[t]:r},Ft=e=>typeof e=="boolean",Yc=e=>/^\w*$/.test(e),Fv=e=>pl(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ce=(e,t,n)=>{let r=-1;const i=Yc(t)?[t]:Fv(t),s=i.length,o=s-1;for(;++r{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const o=s;return t._proxyFormState[o]!==At.all&&(t._proxyFormState[o]=!r||At.all),e[o]}});return i},Ye=e=>xe(e)&&!Object.keys(e).length,yT=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return Ye(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(o=>t[o]===At.all)},Us=e=>Array.isArray(e)?e:[e];function wT(e){const t=J.useRef(e);t.current=e,J.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Wt=e=>typeof e=="string",xT=(e,t,n,r,i)=>Wt(e)?(r&&t.watch.add(e),H(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),H(n,s))):(r&&(t.watchAll=!0),n),ST=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Kf=e=>({isOnSubmit:!e||e===At.onSubmit,isOnBlur:e===At.onBlur,isOnChange:e===At.onChange,isOnAll:e===At.all,isOnTouch:e===At.onTouched}),qf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ai=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=H(e,i);if(s){const{_f:o,...a}=s;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Ai(a,t))break}else if(xe(a)&&Ai(a,t))break}}};var ET=(e,t,n)=>{const r=Us(H(e,n));return ce(r,"root",t[n]),ce(e,n,r),e},Kc=e=>e.type==="file",rn=e=>typeof e=="function",jo=e=>{if(!Qc)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ws=e=>Wt(e),qc=e=>e.type==="radio",Io=e=>e instanceof RegExp;const Xf={value:!1,isValid:!1},Jf={value:!0,isValid:!0};var $v=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_e(e[0].attributes.value)?_e(e[0].value)||e[0].value===""?Jf:{value:e[0].value,isValid:!0}:Jf:Xf}return Xf};const Zf={isValid:!1,value:null};var Bv=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Zf):Zf;function ep(e,t,n="validate"){if(Ws(e)||Array.isArray(e)&&e.every(Ws)||Ft(e)&&!e)return{type:n,message:Ws(e)?e:"",ref:t}}var mr=e=>xe(e)&&!Io(e)?e:{value:e,message:""},tp=async(e,t,n,r,i)=>{const{ref:s,refs:o,required:a,maxLength:l,minLength:u,min:c,max:d,pattern:m,validate:g,name:_,valueAsNumber:w,mount:S,disabled:v}=e._f,f=H(t,_);if(!S||v)return{};const p=o?o[0]:s,y=M=>{r&&p.reportValidity&&(p.setCustomValidity(Ft(M)?"":M||""),p.reportValidity())},x={},k=qc(s),j=ss(s),C=k||j,P=(w||Kc(s))&&_e(s.value)&&_e(f)||jo(s)&&s.value===""||f===""||Array.isArray(f)&&!f.length,T=ST.bind(null,_,n,x),I=(M,N,R,W=Xt.maxLength,Y=Xt.minLength)=>{const te=M?N:R;x[_]={type:M?W:Y,message:te,ref:s,...T(M?W:Y,te)}};if(i?!Array.isArray(f)||!f.length:a&&(!C&&(P||Ue(f))||Ft(f)&&!f||j&&!$v(o).isValid||k&&!Bv(o).isValid)){const{value:M,message:N}=Ws(a)?{value:!!a,message:a}:mr(a);if(M&&(x[_]={type:Xt.required,message:N,ref:p,...T(Xt.required,N)},!n))return y(N),x}if(!P&&(!Ue(c)||!Ue(d))){let M,N;const R=mr(d),W=mr(c);if(!Ue(f)&&!isNaN(f)){const Y=s.valueAsNumber||f&&+f;Ue(R.value)||(M=Y>R.value),Ue(W.value)||(N=Ynew Date(new Date().toDateString()+" "+B),O=s.type=="time",F=s.type=="week";Wt(R.value)&&f&&(M=O?te(f)>te(R.value):F?f>R.value:Y>new Date(R.value)),Wt(W.value)&&f&&(N=O?te(f)+M.value,W=!Ue(N.value)&&f.length<+N.value;if((R||W)&&(I(R,M.message,N.message),!n))return y(x[_].message),x}if(m&&!P&&Wt(f)){const{value:M,message:N}=mr(m);if(Io(M)&&!f.match(M)&&(x[_]={type:Xt.pattern,message:N,ref:s,...T(Xt.pattern,N)},!n))return y(N),x}if(g){if(rn(g)){const M=await g(f,t),N=ep(M,p);if(N&&(x[_]={...N,...T(Xt.validate,N.message)},!n))return y(N.message),x}else if(xe(g)){let M={};for(const N in g){if(!Ye(M)&&!n)break;const R=ep(await g[N](f,t),p,N);R&&(M={...R,...T(N,R.message)},y(R.message),n&&(x[_]=M))}if(!Ye(M)&&(x[_]={ref:p,...M},!n))return x}}return y(!0),x};function CT(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},Lo=e=>Ue(e)||!Dv(e);function yn(e,t){if(Lo(e)||Lo(t))return e===t;if(Ar(e)&&Ar(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Ar(s)&&Ar(o)||xe(s)&&xe(o)||Array.isArray(s)&&Array.isArray(o)?!yn(s,o):s!==o)return!1}}return!0}var Vv=e=>e.type==="select-multiple",TT=e=>qc(e)||ss(e),ha=e=>jo(e)&&e.isConnected,Uv=e=>{for(const t in e)if(rn(e[t]))return!0;return!1};function Mo(e,t={}){const n=Array.isArray(e);if(xe(e)||n)for(const r in e)Array.isArray(e[r])||xe(e[r])&&!Uv(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Mo(e[r],t[r])):Ue(e[r])||(t[r]=!0);return t}function Wv(e,t,n){const r=Array.isArray(e);if(xe(e)||r)for(const i in e)Array.isArray(e[i])||xe(e[i])&&!Uv(e[i])?_e(t)||Lo(n[i])?n[i]=Array.isArray(e[i])?Mo(e[i],[]):{...Mo(e[i])}:Wv(e[i],Ue(t)?{}:t[i],n[i]):n[i]=!yn(e[i],t[i]);return n}var Ps=(e,t)=>Wv(e,t,Mo(t)),Hv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>_e(e)?e:t?e===""?NaN:e&&+e:n&&Wt(e)?new Date(e):r?r(e):e;function ma(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Kc(t)?t.files:qc(t)?Bv(e.refs).value:Vv(t)?[...t.selectedOptions].map(({value:n})=>n):ss(t)?$v(e.refs).value:Hv(_e(t.value)?e.ref.value:t.value,e)}var PT=(e,t,n,r)=>{const i={};for(const s of e){const o=H(t,s);o&&ce(i,s,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ai=e=>_e(e)?e:Io(e)?e.source:xe(e)?Io(e.value)?e.value.source:e.value:e;const np="AsyncFunction";var AT=e=>(!e||!e.validate)&&!!(rn(e.validate)&&e.validate.constructor.name===np||xe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===np)),bT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function rp(e,t,n){const r=H(e,n);if(r||Yc(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),o=H(t,s),a=H(e,s);if(o&&!Array.isArray(o)&&n!==s)return{name:n};if(a&&a.type)return{name:s,error:a};i.pop()}return{name:n}}var NT=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,jT=(e,t)=>!pl(H(e,t)).length&&Se(e,t);const IT={mode:At.onSubmit,reValidateMode:At.onChange,shouldFocusError:!0};function LT(e={}){let t={...IT,...e},n={submitCount:0,isDirty:!1,isLoading:rn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=xe(t.defaultValues)||xe(t.values)?mt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:mt(i),o={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:pa(),array:pa(),state:pa()},m=Kf(t.mode),g=Kf(t.reValidateMode),_=t.criteriaMode===At.all,w=E=>b=>{clearTimeout(u),u=setTimeout(E,b)},S=async E=>{if(c.isValid||E){const b=t.resolver?Ye((await C()).errors):await T(r,!0);b!==n.isValid&&d.state.next({isValid:b})}},v=(E,b)=>{(c.isValidating||c.validatingFields)&&((E||Array.from(a.mount)).forEach(L=>{L&&(b?ce(n.validatingFields,L,b):Se(n.validatingFields,L))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Ye(n.validatingFields)}))},f=(E,b=[],L,V,$=!0,D=!0)=>{if(V&&L){if(o.action=!0,D&&Array.isArray(H(r,E))){const G=L(H(r,E),V.argA,V.argB);$&&ce(r,E,G)}if(D&&Array.isArray(H(n.errors,E))){const G=L(H(n.errors,E),V.argA,V.argB);$&&ce(n.errors,E,G),jT(n.errors,E)}if(c.touchedFields&&D&&Array.isArray(H(n.touchedFields,E))){const G=L(H(n.touchedFields,E),V.argA,V.argB);$&&ce(n.touchedFields,E,G)}c.dirtyFields&&(n.dirtyFields=Ps(i,s)),d.state.next({name:E,isDirty:M(E,b),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(s,E,b)},p=(E,b)=>{ce(n.errors,E,b),d.state.next({errors:n.errors})},y=E=>{n.errors=E,d.state.next({errors:n.errors,isValid:!1})},x=(E,b,L,V)=>{const $=H(r,E);if($){const D=H(s,E,_e(L)?H(i,E):L);_e(D)||V&&V.defaultChecked||b?ce(s,E,b?D:ma($._f)):W(E,D),o.mount&&S()}},k=(E,b,L,V,$)=>{let D=!1,G=!1;const ee={name:E},ke=!!(H(r,E)&&H(r,E)._f&&H(r,E)._f.disabled);if(!L||V){c.isDirty&&(G=n.isDirty,n.isDirty=ee.isDirty=M(),D=G!==ee.isDirty);const Te=ke||yn(H(i,E),b);G=!!(!ke&&H(n.dirtyFields,E)),Te||ke?Se(n.dirtyFields,E):ce(n.dirtyFields,E,!0),ee.dirtyFields=n.dirtyFields,D=D||c.dirtyFields&&G!==!Te}if(L){const Te=H(n.touchedFields,E);Te||(ce(n.touchedFields,E,L),ee.touchedFields=n.touchedFields,D=D||c.touchedFields&&Te!==L)}return D&&$&&d.state.next(ee),D?ee:{}},j=(E,b,L,V)=>{const $=H(n.errors,E),D=c.isValid&&Ft(b)&&n.isValid!==b;if(e.delayError&&L?(l=w(()=>p(E,L)),l(e.delayError)):(clearTimeout(u),l=null,L?ce(n.errors,E,L):Se(n.errors,E)),(L?!yn($,L):$)||!Ye(V)||D){const G={...V,...D&&Ft(b)?{isValid:b}:{},errors:n.errors,name:E};n={...n,...G},d.state.next(G)}},C=async E=>{v(E,!0);const b=await t.resolver(s,t.context,PT(E||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(E),b},P=async E=>{const{errors:b}=await C(E);if(E)for(const L of E){const V=H(b,L);V?ce(n.errors,L,V):Se(n.errors,L)}else n.errors=b;return b},T=async(E,b,L={valid:!0})=>{for(const V in E){const $=E[V];if($){const{_f:D,...G}=$;if(D){const ee=a.array.has(D.name),ke=$._f&&AT($._f);ke&&c.validatingFields&&v([V],!0);const Te=await tp($,s,_,t.shouldUseNativeValidation&&!b,ee);if(ke&&c.validatingFields&&v([V]),Te[D.name]&&(L.valid=!1,b))break;!b&&(H(Te,D.name)?ee?ET(n.errors,Te,D.name):ce(n.errors,D.name,Te[D.name]):Se(n.errors,D.name))}!Ye(G)&&await T(G,b,L)}}return L.valid},I=()=>{for(const E of a.unMount){const b=H(r,E);b&&(b._f.refs?b._f.refs.every(L=>!ha(L)):!ha(b._f.ref))&&tt(E)}a.unMount=new Set},M=(E,b)=>(E&&b&&ce(s,E,b),!yn(X(),i)),N=(E,b,L)=>xT(E,a,{...o.mount?s:_e(b)?i:Wt(E)?{[E]:b}:b},L,b),R=E=>pl(H(o.mount?s:i,E,e.shouldUnregister?H(i,E,[]):[])),W=(E,b,L={})=>{const V=H(r,E);let $=b;if(V){const D=V._f;D&&(!D.disabled&&ce(s,E,Hv(b,D)),$=jo(D.ref)&&Ue(b)?"":b,Vv(D.ref)?[...D.ref.options].forEach(G=>G.selected=$.includes(G.value)):D.refs?ss(D.ref)?D.refs.length>1?D.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray($)?!!$.find(ee=>ee===G.value):$===G.value)):D.refs[0]&&(D.refs[0].checked=!!$):D.refs.forEach(G=>G.checked=G.value===$):Kc(D.ref)?D.ref.value="":(D.ref.value=$,D.ref.type||d.values.next({name:E,values:{...s}})))}(L.shouldDirty||L.shouldTouch)&&k(E,$,L.shouldTouch,L.shouldDirty,!0),L.shouldValidate&&B(E)},Y=(E,b,L)=>{for(const V in b){const $=b[V],D=`${E}.${V}`,G=H(r,D);(a.array.has(E)||!Lo($)||G&&!G._f)&&!Ar($)?Y(D,$,L):W(D,$,L)}},te=(E,b,L={})=>{const V=H(r,E),$=a.array.has(E),D=mt(b);ce(s,E,D),$?(d.array.next({name:E,values:{...s}}),(c.isDirty||c.dirtyFields)&&L.shouldDirty&&d.state.next({name:E,dirtyFields:Ps(i,s),isDirty:M(E,D)})):V&&!V._f&&!Ue(D)?Y(E,D,L):W(E,D,L),qf(E,a)&&d.state.next({...n}),d.values.next({name:o.mount?E:void 0,values:{...s}})},O=async E=>{o.mount=!0;const b=E.target;let L=b.name,V=!0;const $=H(r,L),D=()=>b.type?ma($._f):hT(E),G=ee=>{V=Number.isNaN(ee)||yn(ee,H(s,L,ee))};if($){let ee,ke;const Te=D(),Vn=E.type===Yf.BLUR||E.type===Yf.FOCUS_OUT,Yv=!bT($._f)&&!t.resolver&&!H(n.errors,L)&&!$._f.deps||NT(Vn,H(n.touchedFields,L),n.isSubmitted,g,m),ml=qf(L,a,Vn);ce(s,L,Te),Vn?($._f.onBlur&&$._f.onBlur(E),l&&l(0)):$._f.onChange&&$._f.onChange(E);const vl=k(L,Te,Vn,!1),Kv=!Ye(vl)||ml;if(!Vn&&d.values.next({name:L,type:E.type,values:{...s}}),Yv)return c.isValid&&(e.mode==="onBlur"?Vn&&S():S()),Kv&&d.state.next({name:L,...ml?{}:vl});if(!Vn&&ml&&d.state.next({...n}),t.resolver){const{errors:td}=await C([L]);if(G(Te),V){const qv=rp(n.errors,r,L),nd=rp(td,r,qv.name||L);ee=nd.error,L=nd.name,ke=Ye(td)}}else v([L],!0),ee=(await tp($,s,_,t.shouldUseNativeValidation))[L],v([L]),G(Te),V&&(ee?ke=!1:c.isValid&&(ke=await T(r,!0)));V&&($._f.deps&&B($._f.deps),j(L,ke,ee,vl))}},F=(E,b)=>{if(H(n.errors,b)&&E.focus)return E.focus(),1},B=async(E,b={})=>{let L,V;const $=Us(E);if(t.resolver){const D=await P(_e(E)?E:$);L=Ye(D),V=E?!$.some(G=>H(D,G)):L}else E?(V=(await Promise.all($.map(async D=>{const G=H(r,D);return await T(G&&G._f?{[D]:G}:G)}))).every(Boolean),!(!V&&!n.isValid)&&S()):V=L=await T(r);return d.state.next({...!Wt(E)||c.isValid&&L!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:L}:{},errors:n.errors}),b.shouldFocus&&!V&&Ai(r,F,E?$:a.mount),V},X=E=>{const b={...o.mount?s:i};return _e(E)?b:Wt(E)?H(b,E):E.map(L=>H(b,L))},ne=(E,b)=>({invalid:!!H((b||n).errors,E),isDirty:!!H((b||n).dirtyFields,E),error:H((b||n).errors,E),isValidating:!!H(n.validatingFields,E),isTouched:!!H((b||n).touchedFields,E)}),ht=E=>{E&&Us(E).forEach(b=>Se(n.errors,b)),d.state.next({errors:E?n.errors:{}})},et=(E,b,L)=>{const V=(H(r,E,{_f:{}})._f||{}).ref,$=H(n.errors,E)||{},{ref:D,message:G,type:ee,...ke}=$;ce(n.errors,E,{...ke,...b,ref:V}),d.state.next({name:E,errors:n.errors,isValid:!1}),L&&L.shouldFocus&&V&&V.focus&&V.focus()},Kt=(E,b)=>rn(E)?d.values.subscribe({next:L=>E(N(void 0,b),L)}):N(E,b,!0),tt=(E,b={})=>{for(const L of E?Us(E):a.mount)a.mount.delete(L),a.array.delete(L),b.keepValue||(Se(r,L),Se(s,L)),!b.keepError&&Se(n.errors,L),!b.keepDirty&&Se(n.dirtyFields,L),!b.keepTouched&&Se(n.touchedFields,L),!b.keepIsValidating&&Se(n.validatingFields,L),!t.shouldUnregister&&!b.keepDefaultValue&&Se(i,L);d.values.next({values:{...s}}),d.state.next({...n,...b.keepDirty?{isDirty:M()}:{}}),!b.keepIsValid&&S()},Bn=({disabled:E,name:b,field:L,fields:V,value:$})=>{if(Ft(E)&&o.mount||E){const D=E?void 0:_e($)?ma(L?L._f:H(V,b)._f):$;ce(s,b,D),k(b,D,!1,!1,!0)}},hl=(E,b={})=>{let L=H(r,E);const V=Ft(b.disabled)||Ft(e.disabled);return ce(r,E,{...L||{},_f:{...L&&L._f?L._f:{ref:{name:E}},name:E,mount:!0,...b}}),a.mount.add(E),L?Bn({field:L,disabled:Ft(b.disabled)?b.disabled:e.disabled,name:E,value:b.value}):x(E,!0,b.value),{...V?{disabled:b.disabled||e.disabled}:{},...t.progressive?{required:!!b.required,min:ai(b.min),max:ai(b.max),minLength:ai(b.minLength),maxLength:ai(b.maxLength),pattern:ai(b.pattern)}:{},name:E,onChange:O,onBlur:O,ref:$=>{if($){hl(E,b),L=H(r,E);const D=_e($.value)&&$.querySelectorAll&&$.querySelectorAll("input,select,textarea")[0]||$,G=TT(D),ee=L._f.refs||[];if(G?ee.find(ke=>ke===D):D===L._f.ref)return;ce(r,E,{_f:{...L._f,...G?{refs:[...ee.filter(ha),D,...Array.isArray(H(i,E))?[{}]:[]],ref:{type:D.type,name:E}}:{ref:D}}}),x(E,!1,void 0,D)}else L=H(r,E,{}),L._f&&(L._f.mount=!1),(t.shouldUnregister||b.shouldUnregister)&&!(vT(a.array,E)&&o.action)&&a.unMount.add(E)}}},Xc=()=>t.shouldFocusError&&Ai(r,F,a.mount),Gv=E=>{Ft(E)&&(d.state.next({disabled:E}),Ai(r,(b,L)=>{const V=H(r,L);V&&(b.disabled=V._f.disabled||E,Array.isArray(V._f.refs)&&V._f.refs.forEach($=>{$.disabled=V._f.disabled||E}))},0,!1))},Jc=(E,b)=>async L=>{let V;L&&(L.preventDefault&&L.preventDefault(),L.persist&&L.persist());let $=mt(s);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:D,values:G}=await C();n.errors=D,$=G}else await T(r);if(Se(n.errors,"root"),Ye(n.errors)){d.state.next({errors:{}});try{await E($,L)}catch(D){V=D}}else b&&await b({...n.errors},L),Xc(),setTimeout(Xc);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ye(n.errors)&&!V,submitCount:n.submitCount+1,errors:n.errors}),V)throw V},Qv=(E,b={})=>{H(r,E)&&(_e(b.defaultValue)?te(E,mt(H(i,E))):(te(E,b.defaultValue),ce(i,E,mt(b.defaultValue))),b.keepTouched||Se(n.touchedFields,E),b.keepDirty||(Se(n.dirtyFields,E),n.isDirty=b.defaultValue?M(E,mt(H(i,E))):M()),b.keepError||(Se(n.errors,E),c.isValid&&S()),d.state.next({...n}))},Zc=(E,b={})=>{const L=E?mt(E):i,V=mt(L),$=Ye(E),D=$?i:V;if(b.keepDefaultValues||(i=L),!b.keepValues){if(b.keepDirtyValues)for(const G of a.mount)H(n.dirtyFields,G)?ce(D,G,H(s,G)):te(G,H(D,G));else{if(Qc&&_e(E))for(const G of a.mount){const ee=H(r,G);if(ee&&ee._f){const ke=Array.isArray(ee._f.refs)?ee._f.refs[0]:ee._f.ref;if(jo(ke)){const Te=ke.closest("form");if(Te){Te.reset();break}}}}r={}}s=e.shouldUnregister?b.keepDefaultValues?mt(i):{}:mt(D),d.array.next({values:{...D}}),d.values.next({values:{...D}})}a={mount:b.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!b.keepIsValid||!!b.keepDirtyValues,o.watch=!!e.shouldUnregister,d.state.next({submitCount:b.keepSubmitCount?n.submitCount:0,isDirty:$?!1:b.keepDirty?n.isDirty:!!(b.keepDefaultValues&&!yn(E,i)),isSubmitted:b.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:$?{}:b.keepDirtyValues?b.keepDefaultValues&&s?Ps(i,s):n.dirtyFields:b.keepDefaultValues&&E?Ps(i,E):b.keepDirty?n.dirtyFields:{},touchedFields:b.keepTouched?n.touchedFields:{},errors:b.keepErrors?n.errors:{},isSubmitSuccessful:b.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ed=(E,b)=>Zc(rn(E)?E(s):E,b);return{control:{register:hl,unregister:tt,getFieldState:ne,handleSubmit:Jc,setError:et,_executeSchema:C,_getWatch:N,_getDirty:M,_updateValid:S,_removeUnmounted:I,_updateFieldArray:f,_updateDisabledField:Bn,_getFieldArray:R,_reset:Zc,_resetDefaultValues:()=>rn(t.defaultValues)&&t.defaultValues().then(E=>{ed(E,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:E=>{n={...n,...E}},_disableForm:Gv,_subjects:d,_proxyFormState:c,_setErrors:y,get _fields(){return r},get _formValues(){return s},get _state(){return o},set _state(E){o=E},get _defaultValues(){return i},get _names(){return a},set _names(E){a=E},get _formState(){return n},set _formState(E){n=E},get _options(){return t},set _options(E){t={...t,...E}}},trigger:B,register:hl,handleSubmit:Jc,watch:Kt,setValue:te,getValues:X,reset:ed,resetField:Qv,clearErrors:ht,unregister:tt,setError:et,setFocus:(E,b={})=>{const L=H(r,E),V=L&&L._f;if(V){const $=V.refs?V.refs[0]:V.ref;$.focus&&($.focus(),b.shouldSelect&&$.select())}},getFieldState:ne}}function MT(e={}){const t=J.useRef(),n=J.useRef(),[r,i]=J.useState({isDirty:!1,isValidating:!1,isLoading:rn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:rn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...LT(e),formState:r});const s=t.current.control;return s._options=e,wT({subject:s._subjects.state,next:o=>{yT(o,s._proxyFormState,s._updateFormState)&&i({...s._formState})}}),J.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),J.useEffect(()=>{if(s._proxyFormState.isDirty){const o=s._getDirty();o!==r.isDirty&&s._subjects.state.next({isDirty:o})}},[s,r.isDirty]),J.useEffect(()=>{e.values&&!yn(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(o=>({...o}))):s._resetDefaultValues()},[e.values,s]),J.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),J.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),J.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=_T(r,s),t.current}const OT="_root_i3cxu_1",zT="_main_i3cxu_14",RT="_footer_i3cxu_18",DT="_user_i3cxu_23",FT="_user__list_i3cxu_33",$T="_user__input_i3cxu_54",BT="_user__input__title_i3cxu_71",VT="_user__input__text_i3cxu_74",UT="_user__button_i3cxu_94",WT="_user__title_i3cxu_108",HT="_error_i3cxu_122",GT="_wide_button_i3cxu_126",QT="_shake_horizontal_i3cxu_148",ae={root:OT,main:zT,footer:RT,user:DT,user__list:FT,user__input:$T,user__input__title:BT,user__input__text:VT,user__button:UT,user__title:WT,error:HT,wide_button:GT,shake_horizontal:QT},YT=()=>{const e=qr(),t=Em();document.title="Create new user",A.useEffect(()=>{localStorage.getItem("userData")&&e("/order")},[e]);const{register:n,handleSubmit:r,formState:{errors:i}}=MT(),s=o=>{t(dw(o)),e("/order",{replace:!0})};return h.jsxs("div",{className:ae.user,children:[h.jsx(Oc,{}),h.jsx("div",{className:ae.user__title,children:"User page"}),h.jsx("form",{onSubmit:r(s),children:h.jsxs("ul",{className:ae.user__list,children:[h.jsxs("li",{className:ae.user__input,children:[h.jsx("div",{className:ae.user__input__title,children:"Name"}),h.jsx("input",{className:ae.user__input__text,...n("name",{required:"Name is required"})}),i.name&&h.jsx("div",{className:ae.error,children:i.name.message})]}),h.jsxs("li",{className:ae.user__input,children:[h.jsx("div",{className:ae.user__input__title,children:"Surname"}),h.jsx("input",{className:ae.user__input__text,...n("surname",{required:"Surname is required"})}),i.surname&&h.jsx("div",{className:ae.error,children:i.surname.message})]}),h.jsxs("li",{className:ae.user__input,children:[h.jsx("div",{className:ae.user__input__title,children:"Phone"}),h.jsx("input",{className:ae.user__input__text,...n("phone",{required:"Phone is required",pattern:{value:/^\d+$/,message:"Phone must contain only digits"}})}),i.phone&&h.jsx("div",{className:ae.error,children:i.phone.message})]}),h.jsxs("li",{className:ae.user__input,children:[h.jsx("div",{className:ae.user__input__title,children:"Post"}),h.jsx("input",{className:ae.user__input__text,...n("post",{required:"Post is required"})}),i.post&&h.jsx("div",{className:ae.error,children:i.post.message})]}),h.jsxs("li",{className:ae.user__input,children:[h.jsx("div",{className:ae.user__input__title,children:"City"}),h.jsx("input",{className:ae.user__input__text,...n("city",{required:"City is required"})}),i.city&&h.jsx("div",{className:ae.error,children:i.city.message})]}),h.jsx("div",{className:ae.user__button,children:h.jsx("button",{type:"submit",className:ae.wide_button,children:"Save"})})]})})]})},KT="_root_16bpu_1",qT="_main_16bpu_14",XT="_footer_16bpu_18",JT="_order_16bpu_23",ZT="_order__title_16bpu_33",eP="_order_inf_16bpu_46",tP="_order__items_16bpu_62",nP="_order__user_16bpu_70",rP="_order__info_16bpu_74",iP="_order__totalInformation_16bpu_100",sP="_order__totalInformation__price_16bpu_119",oP="_order__totalInformation__text_16bpu_125",lP="_order__totalInformation__line_16bpu_131",se={root:KT,main:qT,footer:XT,order:JT,order__title:ZT,order_inf:eP,order__items:tP,order__user:nP,order__info:rP,"order__info--list":"_order__info--list_16bpu_77","order__info--list-item":"_order__info--list-item_16bpu_84","order__info--title":"_order__info--title_16bpu_88","order__info--value":"_order__info--value_16bpu_94",order__totalInformation:iP,order__totalInformation__price:sP,order__totalInformation__text:oP,order__totalInformation__line:lP,"order__totalInformation__button-checkout":"_order__totalInformation__button-checkout_16bpu_142"},aP=()=>{document.title="Order";const e=$e(i=>i.order.cartItems),t=$e(i=>i.order.user),n=$e(i=>Um(i.order)),r=$e(i=>Wm(i.order));return h.jsxs("div",{className:se.order,children:[h.jsx(zc,{}),h.jsx("div",{className:se.order__title,children:"Order Page"}),e.length===0&&h.jsx("div",{children:"Your order is currently empty"}),h.jsxs("div",{className:se.order_inf,children:[h.jsx("div",{className:se.order__items,children:e.map(i=>h.jsx(Rv,{cart:i,isOrder:!0},i.item.id))}),h.jsxs("div",{className:se.order__totalInformation,children:[h.jsxs("div",{className:se.order__totalInformation__price,children:["$",n]}),h.jsxs("div",{className:se.order__totalInformation__text,children:["Total for ",r," items"]}),h.jsx("div",{className:se.order__user,children:h.jsx("div",{className:se.order__info,children:h.jsxs("ul",{className:se["order__info--list"],children:[h.jsxs("li",{className:se["order__info--list-item"],children:[h.jsx("strong",{className:se["order__info--title"],children:"Name"}),h.jsx("span",{className:se["order__info--value"],children:t==null?void 0:t.name})]}),h.jsxs("li",{className:se["order__info--list-item"],children:[h.jsx("strong",{className:se["order__info--title"],children:"Surname"}),h.jsx("span",{className:se["order__info--value"],children:t==null?void 0:t.surname})]}),h.jsxs("li",{className:se["order__info--list-item"],children:[h.jsx("strong",{className:se["order__info--title"],children:"Phone"}),h.jsx("span",{className:se["order__info--value"],children:t==null?void 0:t.phone})]}),h.jsxs("li",{className:se["order__info--list-item"],children:[h.jsx("strong",{className:se["order__info--title"],children:"Post"}),h.jsx("span",{className:se["order__info--value"],children:t==null?void 0:t.post})]}),h.jsxs("li",{className:se["order__info--list-item"],children:[h.jsx("strong",{className:se["order__info--title"],children:"City"}),h.jsx("span",{className:se["order__info--value"],children:t==null?void 0:t.city})]})]})})}),h.jsx("div",{className:se.order__totalInformation__line})]})]})]})},uP=()=>h.jsx(A.StrictMode,{children:h.jsx(Qy,{store:hw,children:h.jsx(h1,{children:h.jsx(o1,{children:h.jsxs(Ae,{path:"/",element:h.jsx(R1,{}),children:[h.jsx(Ae,{index:!0,element:h.jsx(rE,{})}),h.jsx(Ae,{path:"home",element:h.jsx(r1,{to:"/",replace:!0})}),h.jsxs(Ae,{path:"phones",children:[h.jsx(Ae,{index:!0,element:h.jsx(fT,{})}),h.jsx(Ae,{path:":productId",element:h.jsx(ca,{})})]}),h.jsxs(Ae,{path:"tablets",children:[h.jsx(Ae,{index:!0,element:h.jsx(kk,{})}),h.jsx(Ae,{path:":productId",element:h.jsx(ca,{})})]}),h.jsxs(Ae,{path:"accessories",children:[h.jsx(Ae,{index:!0,element:h.jsx(Tk,{})}),h.jsx(Ae,{path:":productId",element:h.jsx(ca,{})})]}),h.jsx(Ae,{path:"favorites",element:h.jsx(pT,{})}),h.jsx(Ae,{path:"cart",element:h.jsx(cT,{})}),h.jsx(Ae,{path:"user",element:h.jsx(YT,{})}),h.jsx(Ae,{path:"order",element:h.jsx(aP,{})}),h.jsx(Ae,{path:"*",element:h.jsx(dT,{})})]})})})})});gm(document.getElementById("root")).render(h.jsx(uP,{})); diff --git a/call.svg b/call.svg new file mode 100644 index 0000000..587a703 --- /dev/null +++ b/call.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..1160979 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Nice Gadgets + + + + +
+ +