diff --git a/dist/assets/index-7c0561ca.css b/dist/assets/index-7c0561ca.css deleted file mode 100644 index 731339f..0000000 --- a/dist/assets/index-7c0561ca.css +++ /dev/null @@ -1 +0,0 @@ -/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}@font-face{font-display:swap;font-family:Open Sans;src:url(/fonts/open-sans-v36-cyrillic_latin-regular.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-display:swap;font-family:Open Sans;src:url(/fonts/open-sans-v36-cyrillic_latin-700.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-display:swap;font-family:Inter;src:url(/fonts/inter-v13-cyrillic_latin-regular.woff2) format("woff2");font-weight:400;font-style:normal}html{position:relative;box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{position:relative;overflow-x:hidden;min-width:320px;min-height:100vh;font-family:Open Sans,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent;font-size:12px;font-weight:400;font-style:normal;line-height:1.2;color:#1c1c1c;background-color:#fff;display:flex;flex-direction:column}main{flex-grow:1;padding-bottom:80px}@media (min-width: 580px){main{padding-bottom:100px}}img,svg{display:block;max-width:100%;height:auto}svg{max-height:100%}button{padding:0;cursor:pointer;border:none;background-color:transparent}a{text-decoration:none;color:inherit}ul{list-style:none;padding:0;margin:0}h1,h2,h3,p,figure,fieldset{margin:0}iframe{border:none}.visually-hidden{position:fixed;transform:scale(0)}.container{padding:0 16px;margin:0 auto}@media (min-width: 580px){.container{padding:0 29px}}@media (min-width: 820px){.container{padding:0 43px}}@media (min-width: 1120px){.container{padding:0 92px}}.error404-title{text-align:center;padding-top:30px;margin-bottom:20px}.error404-text{text-align:center}.error404-link{color:#780096}.header{padding:16px 0;border-bottom:1px solid #EEEFF2}.header__container{display:grid;gap:16px;justify-content:space-between;align-items:center;grid-template-areas:"logo control" "search search"}@media (min-width: 820px){.header__container{grid-template-areas:"logo search control";grid-template-columns:94px 1fr auto;align-items:center}}.header__link-logo{grid-area:logo}.header__logo{width:94px}.header__search{grid-area:search;position:relative;width:100%;height:38px}@media (min-width: 820px){.header__search{max-width:408px;justify-self:center}}@media (min-width: 1120px){.header__search{max-width:514px}}.header__input{width:100%;height:100%;padding:0 40px 0 24px;border-radius:32px;background-color:#eeeff2;border:none}.header__input::placeholder{color:#969eae}.header__input:focus-visible,.header__input:hover{outline:1px solid #DFE3EB}.header__btn{position:absolute;top:50%;transform:translateY(-50%);right:24px;display:block;width:16px;height:16px;border-radius:4px;outline-offset:4px;outline:1px solid transparent}.header__btn:hover,.header__btn:active{color:#780096}.header__btn:focus-visible{color:#780096;outline-color:#780096}.header__control{grid-area:control;justify-self:end;display:flex;align-items:center;gap:16px}.header__link{display:flex;flex-direction:row-reverse;align-items:center;gap:4px;outline:0;transition:.2s ease-in-out}.header__link svg{transition:.2s ease-in-out;fill:#fff}@media (min-width: 580px){.header__link{flex-direction:row}}.header__link:hover,.header__link:active,.header__link:focus-visible{color:#780096}.header__link:hover svg,.header__link:active svg,.header__link:focus-visible svg{fill:#780096}.header__link:hover svg.svg-white,.header__link:active svg.svg-white,.header__link:focus-visible svg.svg-white{color:#fff}.header__link:hover.svg-white,.header__link:active.svg-white,.header__link:focus-visible.svg-white{color:#fff}.header__link-text{display:none}@media (min-width: 580px){.header__link-text{display:block}}.catalog{overflow-x:hidden;padding-top:24px}@media (min-width: 580px){.catalog{padding-top:32px}}@media (min-width: 820px){.catalog{padding-top:40px}}.catalog__container{padding:0}.catalog__list{overflow-x:auto;padding:0 16px;display:flex;gap:4px}@media (min-width: 580px){.catalog__list{padding:0 29px}}@media (min-width: 820px){.catalog__list{padding:0 43px}}@media (min-width: 1120px){.catalog__list{padding:0 92px}}.catalog__link{display:block;border-radius:32px;background-color:#eeeff2;padding:8px 14px 10px;color:#969eae;outline:none;border:1px solid transparent;transition:all .2s ease-in-out;white-space:nowrap}.catalog__link:hover,.catalog__link:focus-visible{border-color:#780096;color:#780096}.catalog__link:active,.catalog__link_active{background-color:#780096;color:#fff}.catalog__link:active:hover,.catalog__link:active:focus-visible,.catalog__link_active:hover,.catalog__link_active:focus-visible{color:#fff}.catalog__link_active{pointer-events:none}.breadcrumbs{padding-top:20px}@media (min-width: 580px){.breadcrumbs{padding-top:24px}}.breadcrumbs__list{display:flex;gap:6px;color:#969eae}.breadcrumbs__item{display:flex;gap:6px}.breadcrumbs__item:last-child .breadcrumbs__separator{display:none}.goods{padding-top:24px}@media (min-width: 580px){.goods{padding-top:32px}}@media (min-width: 820px){.goods{padding-top:40px}}.goods__title{font-size:24px;font-weight:700;margin-bottom:24px}@media (min-width: 580px){.goods__title{font-size:32px}}@media (min-width: 820px){.goods__title{margin-bottom:40px}}.goods__list{display:grid;gap:50px 8px;grid-template-columns:repeat(auto-fit,140px);margin-bottom:32px}.goods__list:last-child{margin-bottom:0}@media (min-width: 580px){.goods__list{gap:65px 10px;grid-template-columns:repeat(auto-fit,230px);margin-bottom:40px}}@media (min-width: 820px){.goods__list{gap:81px 16px;grid-template-columns:repeat(auto-fit,302px)}}.card{position:relative;display:flex;flex-direction:column;height:100%}.card__link_img{display:block;margin-bottom:12px}@media (min-width: 820px){.card__link_img{margin-bottom:16px}}.card__img{width:100%;aspect-ratio:7/6;object-fit:contain;border-radius:16px}@media (min-width: 580px){.card__img{aspect-ratio:23/20}}@media (min-width: 820px){.card__img{aspect-ratio:151/125}}.card__info{margin-bottom:12px;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 580px){.card__info{margin-bottom:20px;flex-direction:row;align-items:flex-start;gap:5px}}@media (min-width: 820px){.card__info{margin-bottom:18px}}.card__title{font-size:12px;font-weight:400;margin-bottom:4px}@media (min-width: 580px){.card__title{font-size:16px;margin-bottom:0}}.card__price{font-size:16px}@media (min-width: 580px){.card__price{font-size:20px;line-height:1.15}}.card__btn{border-radius:32px;border:1px solid #780096;padding:12px 24px;color:#780096;font-size:12px;font-weight:400;text-align:center;width:100%;transition:all .2s ease-in-out}.card__btn:hover{background-color:#9200b7;border-color:#9200b7;color:#fff}.card__btn:focus-visible,.card__btn:active{border-color:#c0f;background-color:transparent}.card__btn_inactive{opacity:.2}.card__favorite{position:absolute;color:#1c1c1c;top:12px;right:12px;outline:0;transition:color .2s ease-in-out}.card__favorite svg{transition:fill .2s ease-in-out;fill:#fff}.card__favorite:hover,.card__favorite:active,.card__favorite:focus-visible,.card__favorite_active{color:#780096}.card__favorite:hover svg,.card__favorite:active svg,.card__favorite:focus-visible svg,.card__favorite_active svg{fill:#780096}.card__favorite:active{color:#c0f}.card__favorite:active svg{fill:#c0f}.product{padding-top:24px}@media (min-width: 580px){.product{padding-top:28px}}@media (min-width: 820px){.product{padding-top:40px}}@media (min-width: 820px){.product__container{display:grid;grid-template-columns:66% 1fr;gap:40px 16px}}.product__title{font-size:24px;font-weight:700;margin-bottom:24px}@media (min-width: 580px){.product__title{font-size:32px}}@media (min-width: 820px){.product__title{grid-column:1/-1;margin-bottom:0}}.product__picture{margin-bottom:32px}@media (min-width: 580px){.product__picture{margin-bottom:40px}}@media (min-width: 820px){.product__picture{grid-column:1/2;margin-bottom:0}}.product__slider-main{position:relative;width:100%;height:74vw;max-height:688px}@media (min-width: 580px){.product__slider-main{margin-bottom:14px;height:92vw}}@media (min-width: 820px){.product__slider-main{height:60vw}}@media (min-width: 1120px){.product__slider-main{height:48vw}}.product__slide{display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:16px}.product__img{width:100%;height:100%;object-fit:contain}.product__arrow{position:absolute;z-index:10;top:50%;transform:translateY(-50%);width:32px;color:#fff6;transition:.2s ease-in-out}.product__arrow:hover{color:#fff}.product__arrow_next{right:16px}@media (min-width: 580px){.product__arrow_next{right:24px}}.product__arrow_prev{left:16px}@media (min-width: 580px){.product__arrow_prev{left:24px}}.product__slider-thumbnails{display:none!important}@media (min-width: 580px){.product__slider-thumbnails{display:block!important;height:22vw;max-height:138px}}@media (min-width: 820px){.product__slider-thumbnails{height:12vw;max-height:120px}}@media (min-width: 1120px){.product__slider-thumbnails{max-height:162px}}.product__thumbnails-slide{border-radius:16px;overflow:hidden}.product__thumbnails-img{width:100%;height:100%;object-fit:cover}@media (min-width: 820px){.product__info{grid-column:2/3}}.product__price{font-size:20px;margin-bottom:12px}.product__article{display:inline-block;padding:4px 8px;border-radius:32px;background-color:#eeeff2;margin-bottom:24px}.product__characteristics-title{font-size:16px;font-weight:400;margin-bottom:12px}.product__characteristics-list{margin-bottom:24px}.product__characteristics-item{padding-bottom:8px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #EEEFF2}.product__characteristics-item:last-child{margin-bottom:0}.product__characteristics-name{color:#969eae}.product__characteristics-value{color:#1c1c1c}.product__btns{display:flex;align-items:center;gap:12px}.product__btn{flex-grow:1;padding:12px 24px;color:#fff;border:1px solid transparent;background-color:#780096;border-radius:32px;outline:0}.product__btn:hover{background-color:#9200b7}.product__btn:focus-visible{border-color:#c0f}.product__favorite{width:16px;height:16px;color:#1c1c1c;outline:0;transition:.2s ease-in-out}.product__favorite svg{fill:#fff;transition:.2s ease-in-out}.product__favorite:hover,.product__favorite:active,.product__favorite_active,.product__favorite:focus-visible{color:#780096}.product__favorite:hover svg,.product__favorite:active svg,.product__favorite_active svg,.product__favorite:focus-visible svg{transition:color .2s ease-in-out;fill:#780096}.cart{padding-top:24px}@media (min-width: 580px){.cart{padding-top:32px}}@media (min-width: 820px){.cart{padding-top:40px}}.cart__container{display:grid;grid-template-areas:"title" "content" "form" "place"}@media (min-width: 820px){.cart__container{grid-template-columns:1fr 302px;gap:40px 30px;grid-template-areas:"title ." "content place" "form form";justify-content:space-between}}@media (min-width: 1080px){.cart__container{grid-template-columns:1fr 408px}}.cart__title{grid-area:title;font-size:24px;font-weight:700;margin-bottom:24px}@media (min-width: 580px){.cart__title{font-size:32px;margin-bottom:24px}}@media (min-width: 820px){.cart__title{margin-bottom:0}}.cart__products{grid-area:content;margin-bottom:24px;display:flex;flex-direction:column;gap:16px}@media (min-width: 820px){.cart__products{margin-bottom:0}}.cart__product{display:grid;align-items:center;gap:4px 8px;grid-template-columns:25vw min-content 1fr;grid-template-rows:min-content min-content 1fr;grid-template-areas:"img title title" "img article article" "img control price"}@media (min-width: 480px){.cart__product{grid-template-columns:120px 1fr max-content;gap:6px 12px;grid-template-areas:"img title price" "img article article" "img control ."}}@media (min-width: 820px){.cart__product{max-width:514px}}.cart__img{grid-area:img;border-radius:16px}.cart__title-product{grid-area:title;font-size:12px;font-style:normal;font-weight:400}@media (min-width: 480px){.cart__title-product{font-size:16px;padding-top:12px}}.cart__price{grid-area:price;color:#1c1c1c}@media (min-width: 480px){.cart__price{align-self:start;justify-self:end;font-size:16px;padding-top:12px}}.cart__article{grid-area:article;color:#969eae;font-size:9px}@media (min-width: 480px){.cart__article{font-size:12px}}.cart__product-control{grid-area:control;justify-self:start;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 11px;border-radius:32px;border:1px solid #eeeff2}@media (min-width: 480px){.cart__product-control{align-self:end}}.cart__product-btn{width:14px;height:14px;line-height:14px;border:1px solid transparent;outline:none}.cart__product-btn:focus-visible{border-color:#780096}.cart__product-count{min-width:14px;text-align:center}.cart__place{grid-area:place;padding-top:25px}@media (min-width: 820px){.cart__place{padding-top:0}}.cart__subtitle{font-size:16px;font-weight:400;margin-bottom:16px}.cart__subtitle_form-order{grid-column:1/-1}@media (min-width: 480px){.cart__subtitle{font-size:20px}}.cart__place-info{display:flex;justify-content:space-between;margin-bottom:32px}@media (min-width: 480px){.cart__place-info{font-size:16px;margin-bottom:40px}}.cart__place-delivery{color:#969eae;font-size:9px;margin-bottom:8px}@media (min-width: 480px){.cart__place-delivery{font-size:12px;margin-bottom:12px}}.cart__place-btn{width:100%;padding:12px 24px;text-align:center;border-radius:32px;border:1px solid transparent;background-color:#780096;color:#fff;transition:background-color,border-color .2s ease-in-out;outline:0}.cart__place-btn:hover{background-color:#9200b7}.cart__place-btn:focus-visible{border-color:#c0f}.cart__place-btn.inactive{border-color:#780096;opacity:.2;background:#780096}.cart__form{grid-area:form;padding-top:30px;padding-bottom:25px}@media (min-width: 580px){.cart__form{padding-top:40px;padding-bottom:40px}}@media (min-width: 820px){.cart__form{padding-bottom:0}}.form-order{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 580px){.form-order{gap:10px 16px;grid-template-columns:1fr 1fr}}@media (min-width: 820px){.form-order{max-width:832px;gap:24px 16px;grid-template-columns:1fr 1fr}}.form-order__fieldset{padding:0;margin:0;border:0}.form-order__fieldset_input{display:grid;grid-template-columns:1fr;gap:8px}@media (min-width: 580px){.form-order__fieldset_input{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:10px}}@media (min-width: 820px){.form-order__fieldset_input{max-width:832px;gap:16px}}.form-order__fieldset_radio{display:flex;flex-direction:column;align-items:start}.form-order__input{border-radius:4px;background-color:#eeeff2;padding:0 14px;width:100%;height:38px;border:1px solid transparent;outline:none}.form-order__input::placeholder{color:#969eae}.form-order__input:hover,.form-order__input:focus-visible{border:1px solid #DFE3EB}.form-order__textarea{min-height:120px;padding:12px 14px;border-radius:4px;background-color:#eeeff2;border:none;resize:vertical;border:1px solid transparent;outline:none}.form-order__textarea::placeholder{color:#969eae}.form-order__textarea:hover,.form-order__textarea:focus-visible{border-color:#dfe3eb}@media (min-width: 580px){.form-order__textarea{grid-column:1/-1}}.form-order__legend{font-size:16px;margin-bottom:12px}.radio{position:relative;display:flex;align-items:center;margin-bottom:8px;font-size:12px;line-height:16px}.radio:last-child{margin-bottom:0}.radio__input{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:2px;margin-right:8px}.radio__input:before{content:"";display:block;width:12px;height:12px;background-color:#fff;border:1px solid black;border-radius:8px}.radio__input:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:4px;background-color:#151515;border-radius:50%;opacity:0}.radio__input:focus-visible{outline:none}.radio__input:focus-visible:before{box-shadow:0 0 10px #78009680}.radio__input:checked:after{opacity:1}.radio__input:hover:not(:disabled):before{box-shadow:0 0 10px #78009680}.radio__input:disabled:before{background-color:#ccc}.order{padding-top:32px}@media (min-width: 580px){.order{padding-top:60px}}.order__container{display:flex;justify-content:center;padding:24px 16px;border-radius:16px;border:1px solid #EEEFF2}@media (min-width: 820px){.order__container{max-width:726px}}@media (min-width: 1120px){.order__container{max-width:832px}}.order__wrapper{width:100%}@media (min-width: 580px){.order__wrapper{max-width:408px}}.order__header{font-size:16px;margin-bottom:8px}@media (min-width: 580px){.order__header{font-size:20px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}}.order__title{font-size:16px;margin-bottom:8px}@media (min-width: 580px){.order__title{font-size:20px;margin-bottom:0}}.order__order-number{display:inline-block;border-radius:32px;background-color:#eeeff2;padding:4px 8px;margin-bottom:20px}@media (min-width: 580px){.order__order-number{margin-bottom:24px}}.order__subtitle{font-size:16px;margin-bottom:12px}.order__list{margin-bottom:24px}.order__item{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:1px solid #EEEFF2;margin-bottom:8px}.order__item:last-child{margin-bottom:0}.order__name{color:#969eae}.order__link{display:block;text-align:center;width:100%;padding:12px 24px;border-radius:32px;border:1px solid transparent;background-color:#780096;color:#fff;transition:background-color,border-color .2s ease-in-out;outline:0}.order__link:hover{background-color:#9200b7}.order__link:focus-visible{border-color:#c0f}.order__link.inactive{border:1px solid #780096;opacity:.2;background:#780096}.footer{background-color:#1c1c1c;color:#f1e9e4;padding:32px 0 40px}@media (min-width: 820px){.footer{padding-top:40px}}.footer__container{display:flex;flex-direction:column;gap:24px}@media (min-width: 580px){.footer__container{display:grid;grid-template-columns:1fr 1fr}}@media (min-width: 820px){.footer__container{gap:32px}}.footer__logo{width:230px}@media (min-width: 580px){.footer__logo{grid-column:1/2}}@media (min-width: 820px){.footer__logo{width:331px}}@media (min-width: 580px){.footer__contacts{grid-column:2/3;justify-self:end}}@media (min-width: 580px){.footer__developer-list{grid-column:1/2}}.footer__developer-item{margin-bottom:8px}.footer__developer-item:last-child{margin-bottom:0}@media (min-width: 580px){.footer__copyright{grid-column:1/2}}.contacts__phone{display:flex;gap:4px;margin-bottom:20px}.contacts__list{display:flex;gap:8px}.pagination{width:200px;margin:0 auto}.pagination__bar{background-color:#eeeff2;height:6px;width:100%;border-radius:3px;margin-bottom:16px}.pagination__bar:after{content:"";display:block;background-color:#780096;height:100%;width:var(--width);border-radius:3px;transition:width .3s ease-in-out}.pagination__arrows{display:flex;justify-content:space-between;align-items:center;width:96px;margin:0 auto}.pagination__number{display:flex;align-items:center;gap:5px} diff --git a/dist/assets/index-ce9443dd.js b/dist/assets/index-ce9443dd.js deleted file mode 100644 index e3e7fe9..0000000 --- a/dist/assets/index-ce9443dd.js +++ /dev/null @@ -1,5 +0,0 @@ -import{g as j,s as be,e as _,c as N,a as V,b as K,d as ne,n as le,f as F,h as Ee,i as ue,j as ye,k as ae,l as xe,m as Z}from"./utils-c118a400.js";function Pe($){let{swiper:e,extendParams:x,on:v,emit:E}=$;x({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let g;const w=j();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const b=w.createElement("div");function f(c,d){const n=e.params.virtual;if(n.cache&&e.virtual.cache[d])return e.virtual.cache[d];let u;return n.renderSlide?(u=n.renderSlide.call(e,c,d),typeof u=="string"&&(b.innerHTML=u,u=b.children[0])):e.isElement?u=N("swiper-slide"):u=N("div",e.params.slideClass),u.setAttribute("data-swiper-slide-index",d),n.renderSlide||(u.innerHTML=c),n.cache&&(e.virtual.cache[d]=u),u}function o(c){const{slidesPerView:d,slidesPerGroup:n,centeredSlides:u,loop:s}=e.params,{addSlidesBefore:r,addSlidesAfter:m}=e.params.virtual,{from:P,to:C,slides:D,slidesGrid:A,offset:M}=e.virtual;e.params.cssMode||e.updateActiveIndex();const X=e.activeIndex||0;let O;e.rtlTranslate?O="right":O=e.isHorizontal()?"left":"top";let I,T;u?(I=Math.floor(d/2)+n+m,T=Math.floor(d/2)+n+r):(I=d+(n-1)+m,T=(s?d:n)+r);let l=X-T,h=X+I;s||(l=Math.max(l,0),h=Math.min(h,D.length-1));let z=(e.slidesGrid[l]||0)-(e.slidesGrid[0]||0);s&&X>=T?(l-=T,u||(z+=e.slidesGrid[0])):s&&X{H.style[O]=`${z-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),E("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:z,from:l,to:h,slides:function(){const Y=[];for(let R=l;R<=h;R+=1)Y.push(D[R]);return Y}()}),e.params.virtual.renderExternalUpdate?y():E("virtualUpdate");return}const L=[],S=[],k=H=>{let Y=H;return H<0?Y=D.length+H:Y>=D.length&&(Y=Y-D.length),Y};if(c)e.slides.filter(H=>H.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(H=>{H.remove()});else for(let H=P;H<=C;H+=1)if(Hh){const Y=k(H);e.slides.filter(R=>R.matches(`.${e.params.slideClass}[data-swiper-slide-index="${Y}"], swiper-slide[data-swiper-slide-index="${Y}"]`)).forEach(R=>{R.remove()})}const B=s?-D.length:0,q=s?D.length*2:D.length;for(let H=B;H=l&&H<=h){const Y=k(H);typeof C>"u"||c?S.push(Y):(H>C&&S.push(Y),H{e.slidesEl.append(f(D[H],H))}),s)for(let H=L.length-1;H>=0;H-=1){const Y=L[H];e.slidesEl.prepend(f(D[Y],Y))}else L.sort((H,Y)=>Y-H),L.forEach(H=>{e.slidesEl.prepend(f(D[H],H))});_(e.slidesEl,".swiper-slide, swiper-slide").forEach(H=>{H.style[O]=`${z-Math.abs(e.cssOverflowAdjustment())}px`}),y()}function i(c){if(typeof c=="object"&&"length"in c)for(let d=0;d{const P=s[m],C=P.getAttribute("data-swiper-slide-index");C&&P.setAttribute("data-swiper-slide-index",parseInt(C,10)+u),r[parseInt(m,10)+u]=P}),e.virtual.cache=r}o(!0),e.slideTo(n,0)}function a(c){if(typeof c>"u"||c===null)return;let d=e.activeIndex;if(Array.isArray(c))for(let n=c.length-1;n>=0;n-=1)e.params.virtual.cache&&(delete e.virtual.cache[c[n]],Object.keys(e.virtual.cache).forEach(u=>{u>c&&(e.virtual.cache[u-1]=e.virtual.cache[u],e.virtual.cache[u-1].setAttribute("data-swiper-slide-index",u-1),delete e.virtual.cache[u])})),e.virtual.slides.splice(c[n],1),c[n]{n>c&&(e.virtual.cache[n-1]=e.virtual.cache[n],e.virtual.cache[n-1].setAttribute("data-swiper-slide-index",n-1),delete e.virtual.cache[n])})),e.virtual.slides.splice(c,1),c{if(!e.params.virtual.enabled)return;let c;if(typeof e.passedParams.virtual.slides>"u"){const d=[...e.slidesEl.children].filter(n=>n.matches(`.${e.params.slideClass}, swiper-slide`));d&&d.length&&(e.virtual.slides=[...d],c=!0,d.forEach((n,u)=>{n.setAttribute("data-swiper-slide-index",u),e.virtual.cache[u]=n,n.remove()}))}c||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,o()}),v("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(g),g=setTimeout(()=>{o()},100)):o())}),v("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&be(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:i,prependSlide:t,removeSlide:a,removeAllSlides:p,update:o})}function Ae($){let{swiper:e,extendParams:x,on:v,emit:E}=$;const g=j(),w=V();e.keyboard={enabled:!1},x({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function b(i){if(!e.enabled)return;const{rtlTranslate:t}=e;let a=i;a.originalEvent&&(a=a.originalEvent);const p=a.keyCode||a.charCode,c=e.params.keyboard.pageUpDown,d=c&&p===33,n=c&&p===34,u=p===37,s=p===39,r=p===38,m=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&s||e.isVertical()&&m||n)||!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&r||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(g.activeElement&&g.activeElement.nodeName&&(g.activeElement.nodeName.toLowerCase()==="input"||g.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(d||n||u||s||r||m)){let P=!1;if(K(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&K(e.el,`.${e.params.slideActiveClass}`).length===0)return;const C=e.el,D=C.clientWidth,A=C.clientHeight,M=w.innerWidth,X=w.innerHeight,O=ne(C);t&&(O.left-=C.scrollLeft);const I=[[O.left,O.top],[O.left+D,O.top],[O.left,O.top+A],[O.left+D,O.top+A]];for(let T=0;T=0&&l[0]<=M&&l[1]>=0&&l[1]<=X){if(l[0]===0&&l[1]===0)continue;P=!0}}if(!P)return}e.isHorizontal()?((d||n||u||s)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((n||s)&&!t||(d||u)&&t)&&e.slideNext(),((d||u)&&!t||(n||s)&&t)&&e.slidePrev()):((d||n||r||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(n||m)&&e.slideNext(),(d||r)&&e.slidePrev()),E("keyPress",p)}}function f(){e.keyboard.enabled||(g.addEventListener("keydown",b),e.keyboard.enabled=!0)}function o(){e.keyboard.enabled&&(g.removeEventListener("keydown",b),e.keyboard.enabled=!1)}v("init",()=>{e.params.keyboard.enabled&&f()}),v("destroy",()=>{e.keyboard.enabled&&o()}),Object.assign(e.keyboard,{enable:f,disable:o})}function Ie($){let{swiper:e,extendParams:x,on:v,emit:E}=$;const g=V();x({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let w,b=F(),f;const o=[];function i(r){let D=0,A=0,M=0,X=0;return"detail"in r&&(A=r.detail),"wheelDelta"in r&&(A=-r.wheelDelta/120),"wheelDeltaY"in r&&(A=-r.wheelDeltaY/120),"wheelDeltaX"in r&&(D=-r.wheelDeltaX/120),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(D=A,A=0),M=D*10,X=A*10,"deltaY"in r&&(X=r.deltaY),"deltaX"in r&&(M=r.deltaX),r.shiftKey&&!M&&(M=X,X=0),(M||X)&&r.deltaMode&&(r.deltaMode===1?(M*=40,X*=40):(M*=800,X*=800)),M&&!D&&(D=M<1?-1:1),X&&!A&&(A=X<1?-1:1),{spinX:D,spinY:A,pixelX:M,pixelY:X}}function t(){e.enabled&&(e.mouseEntered=!0)}function a(){e.enabled&&(e.mouseEntered=!1)}function p(r){return e.params.mousewheel.thresholdDelta&&r.delta=6&&F()-b<60?!0:(r.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),E("scroll",r.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),E("scroll",r.raw)),b=new g.Date().getTime(),!1)}function c(r){const m=e.params.mousewheel;if(r.direction<0){if(e.isEnd&&!e.params.loop&&m.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&m.releaseOnEdges)return!0;return!1}function d(r){let m=r,P=!0;if(!e.enabled||r.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const C=e.params.mousewheel;e.params.cssMode&&m.preventDefault();let D=e.el;e.params.mousewheel.eventsTarget!=="container"&&(D=document.querySelector(e.params.mousewheel.eventsTarget));const A=D&&D.contains(m.target);if(!e.mouseEntered&&!A&&!C.releaseOnEdges)return!0;m.originalEvent&&(m=m.originalEvent);let M=0;const X=e.rtlTranslate?-1:1,O=i(m);if(C.forceToAxis)if(e.isHorizontal())if(Math.abs(O.pixelX)>Math.abs(O.pixelY))M=-O.pixelX*X;else return!0;else if(Math.abs(O.pixelY)>Math.abs(O.pixelX))M=-O.pixelY;else return!0;else M=Math.abs(O.pixelX)>Math.abs(O.pixelY)?-O.pixelX*X:-O.pixelY;if(M===0)return!0;C.invert&&(M=-M);let I=e.getTranslate()+M*C.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),P=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),P&&e.params.nested&&m.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const T={time:F(),delta:Math.abs(M),direction:Math.sign(M),raw:r};o.length>=2&&o.shift();const l=o.length?o[o.length-1]:void 0;if(o.push(T),l?(T.direction!==l.direction||T.delta>l.delta||T.time>l.time+150)&&p(T):p(T),c(T))return!0}else{const T={time:F(),delta:Math.abs(M),direction:Math.sign(M)},l=f&&T.time=e.minTranslate()&&(h=e.minTranslate()),h<=e.maxTranslate()&&(h=e.maxTranslate()),e.setTransition(0),e.setTranslate(h),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!z&&e.isBeginning||!y&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:T.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(w),w=void 0,o.length>=15&&o.shift();const L=o.length?o[o.length-1]:void 0,S=o[0];if(o.push(T),L&&(T.delta>L.delta||T.direction!==L.direction))o.splice(0);else if(o.length>=15&&T.time-S.time<500&&S.delta-T.delta>=1&&T.delta<=6){const k=M>0?.8:.2;f=T,o.splice(0),w=le(()=>{e.slideToClosest(e.params.speed,!0,void 0,k)},0)}w||(w=le(()=>{f=T,o.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(l||E("scroll",m),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),C.releaseOnEdges&&(h===e.minTranslate()||h===e.maxTranslate()))return!0}}return m.preventDefault?m.preventDefault():m.returnValue=!1,!1}function n(r){let m=e.el;e.params.mousewheel.eventsTarget!=="container"&&(m=document.querySelector(e.params.mousewheel.eventsTarget)),m[r]("mouseenter",t),m[r]("mouseleave",a),m[r]("wheel",d)}function u(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",d),!0):e.mousewheel.enabled?!1:(n("addEventListener"),e.mousewheel.enabled=!0,!0)}function s(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,d),!0):e.mousewheel.enabled?(n("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}v("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&s(),e.params.mousewheel.enabled&&u()}),v("destroy",()=>{e.params.cssMode&&u(),e.mousewheel.enabled&&s()}),Object.assign(e.mousewheel,{enable:u,disable:s})}function me($,e,x,v){return $.params.createElements&&Object.keys(v).forEach(E=>{if(!x[E]&&x.auto===!0){let g=_($.el,`.${v[E]}`)[0];g||(g=N("div",v[E]),g.className=v[E],$.el.append(g)),x[E]=g,e[E]=g}}),x}function ze($){let{swiper:e,extendParams:x,on:v,emit:E}=$;x({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const g=d=>(Array.isArray(d)?d:[d]).filter(n=>!!n);function w(d){let n;return d&&typeof d=="string"&&e.isElement&&(n=e.el.querySelector(d),n)?n:(d&&(typeof d=="string"&&(n=[...document.querySelectorAll(d)]),e.params.uniqueNavElements&&typeof d=="string"&&n.length>1&&e.el.querySelectorAll(d).length===1&&(n=e.el.querySelector(d))),d&&!n?d:n)}function b(d,n){const u=e.params.navigation;d=g(d),d.forEach(s=>{s&&(s.classList[n?"add":"remove"](...u.disabledClass.split(" ")),s.tagName==="BUTTON"&&(s.disabled=n),e.params.watchOverflow&&e.enabled&&s.classList[e.isLocked?"add":"remove"](u.lockClass))})}function f(){const{nextEl:d,prevEl:n}=e.navigation;if(e.params.loop){b(n,!1),b(d,!1);return}b(n,e.isBeginning&&!e.params.rewind),b(d,e.isEnd&&!e.params.rewind)}function o(d){d.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),E("navigationPrev"))}function i(d){d.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),E("navigationNext"))}function t(){const d=e.params.navigation;if(e.params.navigation=me(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(d.nextEl||d.prevEl))return;let n=w(d.nextEl),u=w(d.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:u}),n=g(n),u=g(u);const s=(r,m)=>{r&&r.addEventListener("click",m==="next"?i:o),!e.enabled&&r&&r.classList.add(...d.lockClass.split(" "))};n.forEach(r=>s(r,"next")),u.forEach(r=>s(r,"prev"))}function a(){let{nextEl:d,prevEl:n}=e.navigation;d=g(d),n=g(n);const u=(s,r)=>{s.removeEventListener("click",r==="next"?i:o),s.classList.remove(...e.params.navigation.disabledClass.split(" "))};d.forEach(s=>u(s,"next")),n.forEach(s=>u(s,"prev"))}v("init",()=>{e.params.navigation.enabled===!1?c():(t(),f())}),v("toEdge fromEdge lock unlock",()=>{f()}),v("destroy",()=>{a()}),v("enable disable",()=>{let{nextEl:d,prevEl:n}=e.navigation;if(d=g(d),n=g(n),e.enabled){f();return}[...d,...n].filter(u=>!!u).forEach(u=>u.classList.add(e.params.navigation.lockClass))}),v("click",(d,n)=>{let{nextEl:u,prevEl:s}=e.navigation;u=g(u),s=g(s);const r=n.target;if(e.params.navigation.hideOnClick&&!s.includes(r)&&!u.includes(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===r||e.pagination.el.contains(r)))return;let m;u.length?m=u[0].classList.contains(e.params.navigation.hiddenClass):s.length&&(m=s[0].classList.contains(e.params.navigation.hiddenClass)),E(m===!0?"navigationShow":"navigationHide"),[...u,...s].filter(P=>!!P).forEach(P=>P.classList.toggle(e.params.navigation.hiddenClass))}});const p=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),t(),f()},c=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),a()};Object.assign(e.navigation,{enable:p,disable:c,update:f,init:t,destroy:a})}function G($){return $===void 0&&($=""),`.${$.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function De($){let{swiper:e,extendParams:x,on:v,emit:E}=$;const g="swiper-pagination";x({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:s=>s,formatFractionTotal:s=>s,bulletClass:`${g}-bullet`,bulletActiveClass:`${g}-bullet-active`,modifierClass:`${g}-`,currentClass:`${g}-current`,totalClass:`${g}-total`,hiddenClass:`${g}-hidden`,progressbarFillClass:`${g}-progressbar-fill`,progressbarOppositeClass:`${g}-progressbar-opposite`,clickableClass:`${g}-clickable`,lockClass:`${g}-lock`,horizontalClass:`${g}-horizontal`,verticalClass:`${g}-vertical`,paginationDisabledClass:`${g}-disabled`}}),e.pagination={el:null,bullets:[]};let w,b=0;const f=s=>(Array.isArray(s)?s:[s]).filter(r=>!!r);function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function i(s,r){const{bulletActiveClass:m}=e.params.pagination;s&&(s=s[`${r==="prev"?"previous":"next"}ElementSibling`],s&&(s.classList.add(`${m}-${r}`),s=s[`${r==="prev"?"previous":"next"}ElementSibling`],s&&s.classList.add(`${m}-${r}-${r}`)))}function t(s){const r=s.target.closest(G(e.params.pagination.bulletClass));if(!r)return;s.preventDefault();const m=ue(r)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===m)return;const P=e.realIndex,C=e.getSlideIndexByData(m),D=e.getSlideIndexByData(e.realIndex),A=M=>{const X=e.activeIndex;e.loopFix({direction:M,activeSlideIndex:C,slideTo:!1});const O=e.activeIndex;X===O&&e.slideToLoop(P,0,!1,!0)};if(C>e.slides.length-e.loopedSlides)A(C>D?"next":"prev");else if(e.params.centeredSlides){const M=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(e.params.slidesPerView,10));C1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(P=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,P=e.activeIndex||0),r.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const M=e.pagination.bullets;let X,O,I;if(r.dynamicBullets&&(w=Ee(M[0],e.isHorizontal()?"width":"height",!0),m.forEach(T=>{T.style[e.isHorizontal()?"width":"height"]=`${w*(r.dynamicMainBullets+4)}px`}),r.dynamicMainBullets>1&&C!==void 0&&(b+=P-(C||0),b>r.dynamicMainBullets-1?b=r.dynamicMainBullets-1:b<0&&(b=0)),X=Math.max(P-b,0),O=X+(Math.min(M.length,r.dynamicMainBullets)-1),I=(O+X)/2),M.forEach(T=>{const l=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(h=>`${r.bulletActiveClass}${h}`)].map(h=>typeof h=="string"&&h.includes(" ")?h.split(" "):h).flat();T.classList.remove(...l)}),m.length>1)M.forEach(T=>{const l=ue(T);l===P?T.classList.add(...r.bulletActiveClass.split(" ")):e.isElement&&T.setAttribute("part","bullet"),r.dynamicBullets&&(l>=X&&l<=O&&T.classList.add(...`${r.bulletActiveClass}-main`.split(" ")),l===X&&i(T,"prev"),l===O&&i(T,"next"))});else{const T=M[P];if(T&&T.classList.add(...r.bulletActiveClass.split(" ")),e.isElement&&M.forEach((l,h)=>{l.setAttribute("part",h===P?"bullet-active":"bullet")}),r.dynamicBullets){const l=M[X],h=M[O];for(let z=X;z<=O;z+=1)M[z]&&M[z].classList.add(...`${r.bulletActiveClass}-main`.split(" "));i(l,"prev"),i(h,"next")}}if(r.dynamicBullets){const T=Math.min(M.length,r.dynamicMainBullets+4),l=(w*T-w)/2-I*w,h=s?"right":"left";M.forEach(z=>{z.style[e.isHorizontal()?h:"top"]=`${l}px`})}}m.forEach((M,X)=>{if(r.type==="fraction"&&(M.querySelectorAll(G(r.currentClass)).forEach(O=>{O.textContent=r.formatFractionCurrent(P+1)}),M.querySelectorAll(G(r.totalClass)).forEach(O=>{O.textContent=r.formatFractionTotal(A)})),r.type==="progressbar"){let O;r.progressbarOpposite?O=e.isHorizontal()?"vertical":"horizontal":O=e.isHorizontal()?"horizontal":"vertical";const I=(P+1)/A;let T=1,l=1;O==="horizontal"?T=I:l=I,M.querySelectorAll(G(r.progressbarFillClass)).forEach(h=>{h.style.transform=`translate3d(0,0,0) scaleX(${T}) scaleY(${l})`,h.style.transitionDuration=`${e.params.speed}ms`})}r.type==="custom"&&r.renderCustom?(M.innerHTML=r.renderCustom(e,P+1,A),X===0&&E("paginationRender",M)):(X===0&&E("paginationRender",M),E("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](r.lockClass)})}function p(){const s=e.params.pagination;if(o())return;const r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let m=e.pagination.el;m=f(m);let P="";if(s.type==="bullets"){let C=e.params.loop?Math.ceil(r/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>r&&(C=r);for(let D=0;D`}s.type==="fraction"&&(s.renderFraction?P=s.renderFraction.call(e,s.currentClass,s.totalClass):P=` / `),s.type==="progressbar"&&(s.renderProgressbar?P=s.renderProgressbar.call(e,s.progressbarFillClass):P=``),e.pagination.bullets=[],m.forEach(C=>{s.type!=="custom"&&(C.innerHTML=P||""),s.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(G(s.bulletClass)))}),s.type!=="custom"&&E("paginationRender",m[0])}function c(){e.params.pagination=me(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const s=e.params.pagination;if(!s.el)return;let r;typeof s.el=="string"&&e.isElement&&(r=e.el.querySelector(s.el)),!r&&typeof s.el=="string"&&(r=[...document.querySelectorAll(s.el)]),r||(r=s.el),!(!r||r.length===0)&&(e.params.uniqueNavElements&&typeof s.el=="string"&&Array.isArray(r)&&r.length>1&&(r=[...e.el.querySelectorAll(s.el)],r.length>1&&(r=r.filter(m=>K(m,".swiper")[0]===e.el)[0])),Array.isArray(r)&&r.length===1&&(r=r[0]),Object.assign(e.pagination,{el:r}),r=f(r),r.forEach(m=>{s.type==="bullets"&&s.clickable&&m.classList.add(...(s.clickableClass||"").split(" ")),m.classList.add(s.modifierClass+s.type),m.classList.add(e.isHorizontal()?s.horizontalClass:s.verticalClass),s.type==="bullets"&&s.dynamicBullets&&(m.classList.add(`${s.modifierClass}${s.type}-dynamic`),b=0,s.dynamicMainBullets<1&&(s.dynamicMainBullets=1)),s.type==="progressbar"&&s.progressbarOpposite&&m.classList.add(s.progressbarOppositeClass),s.clickable&&m.addEventListener("click",t),e.enabled||m.classList.add(s.lockClass)}))}function d(){const s=e.params.pagination;if(o())return;let r=e.pagination.el;r&&(r=f(r),r.forEach(m=>{m.classList.remove(s.hiddenClass),m.classList.remove(s.modifierClass+s.type),m.classList.remove(e.isHorizontal()?s.horizontalClass:s.verticalClass),s.clickable&&(m.classList.remove(...(s.clickableClass||"").split(" ")),m.removeEventListener("click",t))})),e.pagination.bullets&&e.pagination.bullets.forEach(m=>m.classList.remove(...s.bulletActiveClass.split(" ")))}v("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const s=e.params.pagination;let{el:r}=e.pagination;r=f(r),r.forEach(m=>{m.classList.remove(s.horizontalClass,s.verticalClass),m.classList.add(e.isHorizontal()?s.horizontalClass:s.verticalClass)})}),v("init",()=>{e.params.pagination.enabled===!1?u():(c(),p(),a())}),v("activeIndexChange",()=>{typeof e.snapIndex>"u"&&a()}),v("snapIndexChange",()=>{a()}),v("snapGridLengthChange",()=>{p(),a()}),v("destroy",()=>{d()}),v("enable disable",()=>{let{el:s}=e.pagination;s&&(s=f(s),s.forEach(r=>r.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),v("lock unlock",()=>{a()}),v("click",(s,r)=>{const m=r.target,P=f(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&P&&P.length>0&&!m.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&m===e.navigation.nextEl||e.navigation.prevEl&&m===e.navigation.prevEl))return;const C=P[0].classList.contains(e.params.pagination.hiddenClass);E(C===!0?"paginationShow":"paginationHide"),P.forEach(D=>D.classList.toggle(e.params.pagination.hiddenClass))}});const n=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:s}=e.pagination;s&&(s=f(s),s.forEach(r=>r.classList.remove(e.params.pagination.paginationDisabledClass))),c(),p(),a()},u=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:s}=e.pagination;s&&(s=f(s),s.forEach(r=>r.classList.add(e.params.pagination.paginationDisabledClass))),d()};Object.assign(e.pagination,{enable:n,disable:u,render:p,update:a,init:c,destroy:d})}function Oe($){let{swiper:e,extendParams:x,on:v,emit:E}=$;const g=j();let w=!1,b=null,f=null,o,i,t,a;x({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:T}=e,{dragEl:l,el:h}=I,z=e.params.scrollbar,y=e.params.loop?e.progressLoop:e.progress;let L=i,S=(t-i)*y;T?(S=-S,S>0?(L=i-S,S=0):-S+i>t&&(L=t+S)):S<0?(L=i+S,S=0):S+i>t&&(L=t-S),e.isHorizontal()?(l.style.transform=`translate3d(${S}px, 0, 0)`,l.style.width=`${L}px`):(l.style.transform=`translate3d(0px, ${S}px, 0)`,l.style.height=`${L}px`),z.hide&&(clearTimeout(b),h.style.opacity=1,b=setTimeout(()=>{h.style.opacity=0,h.style.transitionDuration="400ms"},1e3))}function c(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function d(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:T,el:l}=I;T.style.width="",T.style.height="",t=e.isHorizontal()?l.offsetWidth:l.offsetHeight,a=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?i=t*a:i=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?T.style.width=`${i}px`:T.style.height=`${i}px`,a>=1?l.style.display="none":l.style.display="",e.params.scrollbar.hide&&(l.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function n(I){return e.isHorizontal()?I.clientX:I.clientY}function u(I){const{scrollbar:T,rtlTranslate:l}=e,{el:h}=T;let z;z=(n(I)-ne(h)[e.isHorizontal()?"left":"top"]-(o!==null?o:i/2))/(t-i),z=Math.max(Math.min(z,1),0),l&&(z=1-z);const y=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*z;e.updateProgress(y),e.setTranslate(y),e.updateActiveIndex(),e.updateSlidesClasses()}function s(I){const T=e.params.scrollbar,{scrollbar:l,wrapperEl:h}=e,{el:z,dragEl:y}=l;w=!0,o=I.target===y?n(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),h.style.transitionDuration="100ms",y.style.transitionDuration="100ms",u(I),clearTimeout(f),z.style.transitionDuration="0ms",T.hide&&(z.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),E("scrollbarDragStart",I)}function r(I){const{scrollbar:T,wrapperEl:l}=e,{el:h,dragEl:z}=T;w&&(I.preventDefault?I.preventDefault():I.returnValue=!1,u(I),l.style.transitionDuration="0ms",h.style.transitionDuration="0ms",z.style.transitionDuration="0ms",E("scrollbarDragMove",I))}function m(I){const T=e.params.scrollbar,{scrollbar:l,wrapperEl:h}=e,{el:z}=l;w&&(w=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",h.style.transitionDuration=""),T.hide&&(clearTimeout(f),f=le(()=>{z.style.opacity=0,z.style.transitionDuration="400ms"},1e3)),E("scrollbarDragEnd",I),T.snapOnRelease&&e.slideToClosest())}function P(I){const{scrollbar:T,params:l}=e,h=T.el;if(!h)return;const z=h,y=l.passiveListeners?{passive:!1,capture:!1}:!1,L=l.passiveListeners?{passive:!0,capture:!1}:!1;if(!z)return;const S=I==="on"?"addEventListener":"removeEventListener";z[S]("pointerdown",s,y),g[S]("pointermove",r,y),g[S]("pointerup",m,L)}function C(){!e.params.scrollbar.el||!e.scrollbar.el||P("on")}function D(){!e.params.scrollbar.el||!e.scrollbar.el||P("off")}function A(){const{scrollbar:I,el:T}=e;e.params.scrollbar=me(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const l=e.params.scrollbar;if(!l.el)return;let h;typeof l.el=="string"&&e.isElement&&(h=e.el.querySelector(l.el)),!h&&typeof l.el=="string"?h=g.querySelectorAll(l.el):h||(h=l.el),e.params.uniqueNavElements&&typeof l.el=="string"&&h.length>1&&T.querySelectorAll(l.el).length===1&&(h=T.querySelector(l.el)),h.length>0&&(h=h[0]),h.classList.add(e.isHorizontal()?l.horizontalClass:l.verticalClass);let z;h&&(z=h.querySelector(`.${e.params.scrollbar.dragClass}`),z||(z=N("div",e.params.scrollbar.dragClass),h.append(z))),Object.assign(I,{el:h,dragEl:z}),l.draggable&&C(),h&&h.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function M(){const I=e.params.scrollbar,T=e.scrollbar.el;T&&T.classList.remove(e.isHorizontal()?I.horizontalClass:I.verticalClass),D()}v("init",()=>{e.params.scrollbar.enabled===!1?O():(A(),d(),p())}),v("update resize observerUpdate lock unlock",()=>{d()}),v("setTranslate",()=>{p()}),v("setTransition",(I,T)=>{c(T)}),v("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),v("destroy",()=>{M()});const X=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),A(),d(),p()},O=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),M()};Object.assign(e.scrollbar,{enable:X,disable:O,updateSize:d,setTranslate:p,init:A,destroy:M})}function Xe($){let{swiper:e,extendParams:x,on:v}=$;x({parallax:{enabled:!1}});const E="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",g=(f,o)=>{const{rtl:i}=e,t=i?-1:1,a=f.getAttribute("data-swiper-parallax")||"0";let p=f.getAttribute("data-swiper-parallax-x"),c=f.getAttribute("data-swiper-parallax-y");const d=f.getAttribute("data-swiper-parallax-scale"),n=f.getAttribute("data-swiper-parallax-opacity"),u=f.getAttribute("data-swiper-parallax-rotate");if(p||c?(p=p||"0",c=c||"0"):e.isHorizontal()?(p=a,c="0"):(c=a,p="0"),p.indexOf("%")>=0?p=`${parseInt(p,10)*o*t}%`:p=`${p*o*t}px`,c.indexOf("%")>=0?c=`${parseInt(c,10)*o}%`:c=`${c*o}px`,typeof n<"u"&&n!==null){const r=n-(n-1)*(1-Math.abs(o));f.style.opacity=r}let s=`translate3d(${p}, ${c}, 0px)`;if(typeof d<"u"&&d!==null){const r=d-(d-1)*(1-Math.abs(o));s+=` scale(${r})`}if(u&&typeof u<"u"&&u!==null){const r=u*o*-1;s+=` rotate(${r}deg)`}f.style.transform=s},w=()=>{const{el:f,slides:o,progress:i,snapGrid:t,isElement:a}=e,p=_(f,E);e.isElement&&p.push(..._(e.hostEl,E)),p.forEach(c=>{g(c,i)}),o.forEach((c,d)=>{let n=c.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(n+=Math.ceil(d/2)-i*(t.length-1)),n=Math.min(Math.max(n,-1),1),c.querySelectorAll(`${E}, [data-swiper-parallax-rotate]`).forEach(u=>{g(u,n)})})},b=function(f){f===void 0&&(f=e.params.speed);const{el:o,hostEl:i}=e,t=[...o.querySelectorAll(E)];e.isElement&&t.push(...i.querySelectorAll(E)),t.forEach(a=>{let p=parseInt(a.getAttribute("data-swiper-parallax-duration"),10)||f;f===0&&(p=0),a.style.transitionDuration=`${p}ms`})};v("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),v("init",()=>{e.params.parallax.enabled&&w()}),v("setTranslate",()=>{e.params.parallax.enabled&&w()}),v("setTransition",(f,o)=>{e.params.parallax.enabled&&b(o)})}function He($){let{swiper:e,extendParams:x,on:v,emit:E}=$;const g=V();x({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let w=1,b=!1,f,o;const i=[],t={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},a={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},p={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let c=1;Object.defineProperty(e.zoom,"scale",{get(){return c},set(y){if(c!==y){const L=t.imageEl,S=t.slideEl;E("zoomChange",y,L,S)}c=y}});function d(){if(i.length<2)return 1;const y=i[0].pageX,L=i[0].pageY,S=i[1].pageX,k=i[1].pageY;return Math.sqrt((S-y)**2+(k-L)**2)}function n(){if(i.length<2)return{x:null,y:null};const y=t.imageEl.getBoundingClientRect();return[(i[0].pageX+(i[1].pageX-i[0].pageX)/2-y.x-g.scrollX)/w,(i[0].pageY+(i[1].pageY-i[0].pageY)/2-y.y-g.scrollY)/w]}function u(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function s(y){const L=u();return!!(y.target.matches(L)||e.slides.filter(S=>S.contains(y.target)).length>0)}function r(y){const L=`.${e.params.zoom.containerClass}`;return!!(y.target.matches(L)||[...e.hostEl.querySelectorAll(L)].filter(S=>S.contains(y.target)).length>0)}function m(y){if(y.pointerType==="mouse"&&i.splice(0,i.length),!s(y))return;const L=e.params.zoom;if(f=!1,o=!1,i.push(y),!(i.length<2)){if(f=!0,t.scaleStart=d(),!t.slideEl){t.slideEl=y.target.closest(`.${e.params.slideClass}, swiper-slide`),t.slideEl||(t.slideEl=e.slides[e.activeIndex]);let S=t.slideEl.querySelector(`.${L.containerClass}`);if(S&&(S=S.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),t.imageEl=S,S?t.imageWrapEl=K(t.imageEl,`.${L.containerClass}`)[0]:t.imageWrapEl=void 0,!t.imageWrapEl){t.imageEl=void 0;return}t.maxRatio=t.imageWrapEl.getAttribute("data-swiper-zoom")||L.maxRatio}if(t.imageEl){const[S,k]=n();t.originX=S,t.originY=k,t.imageEl.style.transitionDuration="0ms"}b=!0}}function P(y){if(!s(y))return;const L=e.params.zoom,S=e.zoom,k=i.findIndex(B=>B.pointerId===y.pointerId);k>=0&&(i[k]=y),!(i.length<2)&&(o=!0,t.scaleMove=d(),t.imageEl&&(S.scale=t.scaleMove/t.scaleStart*w,S.scale>t.maxRatio&&(S.scale=t.maxRatio-1+(S.scale-t.maxRatio+1)**.5),S.scaleB.pointerId===y.pointerId);k>=0&&i.splice(k,1),!(!f||!o)&&(f=!1,o=!1,t.imageEl&&(S.scale=Math.max(Math.min(S.scale,t.maxRatio),L.minRatio),t.imageEl.style.transitionDuration=`${e.params.speed}ms`,t.imageEl.style.transform=`translate3d(0,0,0) scale(${S.scale})`,w=S.scale,b=!1,S.scale>1&&t.slideEl?t.slideEl.classList.add(`${L.zoomedSlideClass}`):S.scale<=1&&t.slideEl&&t.slideEl.classList.remove(`${L.zoomedSlideClass}`),S.scale===1&&(t.originX=0,t.originY=0,t.slideEl=void 0)))}function D(y){const L=e.device;if(!t.imageEl||a.isTouched)return;L.android&&y.cancelable&&y.preventDefault(),a.isTouched=!0;const S=i.length>0?i[0]:y;a.touchesStart.x=S.pageX,a.touchesStart.y=S.pageY}function A(y){if(!s(y)||!r(y))return;const L=e.zoom;if(!t.imageEl||!a.isTouched||!t.slideEl)return;a.isMoved||(a.width=t.imageEl.offsetWidth,a.height=t.imageEl.offsetHeight,a.startX=ye(t.imageWrapEl,"x")||0,a.startY=ye(t.imageWrapEl,"y")||0,t.slideWidth=t.slideEl.offsetWidth,t.slideHeight=t.slideEl.offsetHeight,t.imageWrapEl.style.transitionDuration="0ms");const S=a.width*L.scale,k=a.height*L.scale;if(S0?i[0].pageX:y.pageX,a.touchesCurrent.y=i.length>0?i[0].pageY:y.pageY,Math.max(Math.abs(a.touchesCurrent.x-a.touchesStart.x),Math.abs(a.touchesCurrent.y-a.touchesStart.y))>5&&(e.allowClick=!1),!a.isMoved&&!b){if(e.isHorizontal()&&(Math.floor(a.minX)===Math.floor(a.startX)&&a.touchesCurrent.xa.touchesStart.x)){a.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(a.minY)===Math.floor(a.startY)&&a.touchesCurrent.ya.touchesStart.y)){a.isTouched=!1;return}}y.cancelable&&y.preventDefault(),y.stopPropagation(),a.isMoved=!0;const q=(L.scale-w)/(t.maxRatio-e.params.zoom.minRatio),{originX:H,originY:Y}=t;a.currentX=a.touchesCurrent.x-a.touchesStart.x+a.startX+q*(a.width-H*2),a.currentY=a.touchesCurrent.y-a.touchesStart.y+a.startY+q*(a.height-Y*2),a.currentXa.maxX&&(a.currentX=a.maxX-1+(a.currentX-a.maxX+1)**.8),a.currentYa.maxY&&(a.currentY=a.maxY-1+(a.currentY-a.maxY+1)**.8),p.prevPositionX||(p.prevPositionX=a.touchesCurrent.x),p.prevPositionY||(p.prevPositionY=a.touchesCurrent.y),p.prevTime||(p.prevTime=Date.now()),p.x=(a.touchesCurrent.x-p.prevPositionX)/(Date.now()-p.prevTime)/2,p.y=(a.touchesCurrent.y-p.prevPositionY)/(Date.now()-p.prevTime)/2,Math.abs(a.touchesCurrent.x-p.prevPositionX)<2&&(p.x=0),Math.abs(a.touchesCurrent.y-p.prevPositionY)<2&&(p.y=0),p.prevPositionX=a.touchesCurrent.x,p.prevPositionY=a.touchesCurrent.y,p.prevTime=Date.now(),t.imageWrapEl.style.transform=`translate3d(${a.currentX}px, ${a.currentY}px,0)`}function M(){const y=e.zoom;if(!t.imageEl)return;if(!a.isTouched||!a.isMoved){a.isTouched=!1,a.isMoved=!1;return}a.isTouched=!1,a.isMoved=!1;let L=300,S=300;const k=p.x*L,B=a.currentX+k,q=p.y*S,H=a.currentY+q;p.x!==0&&(L=Math.abs((B-a.currentX)/p.x)),p.y!==0&&(S=Math.abs((H-a.currentY)/p.y));const Y=Math.max(L,S);a.currentX=B,a.currentY=H;const R=a.width*y.scale,W=a.height*y.scale;a.minX=Math.min(t.slideWidth/2-R/2,0),a.maxX=-a.minX,a.minY=Math.min(t.slideHeight/2-W/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),t.imageWrapEl.style.transitionDuration=`${Y}ms`,t.imageWrapEl.style.transform=`translate3d(${a.currentX}px, ${a.currentY}px,0)`}function X(){const y=e.zoom;t.slideEl&&e.activeIndex!==e.slides.indexOf(t.slideEl)&&(t.imageEl&&(t.imageEl.style.transform="translate3d(0,0,0) scale(1)"),t.imageWrapEl&&(t.imageWrapEl.style.transform="translate3d(0,0,0)"),t.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),y.scale=1,w=1,t.slideEl=void 0,t.imageEl=void 0,t.imageWrapEl=void 0,t.originX=0,t.originY=0)}function O(y){const L=e.zoom,S=e.params.zoom;if(!t.slideEl){y&&y.target&&(t.slideEl=y.target.closest(`.${e.params.slideClass}, swiper-slide`)),t.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?t.slideEl=_(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:t.slideEl=e.slides[e.activeIndex]);let te=t.slideEl.querySelector(`.${S.containerClass}`);te&&(te=te.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),t.imageEl=te,te?t.imageWrapEl=K(t.imageEl,`.${S.containerClass}`)[0]:t.imageWrapEl=void 0}if(!t.imageEl||!t.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),t.slideEl.classList.add(`${S.zoomedSlideClass}`);let k,B,q,H,Y,R,W,U,he,ge,ve,we,ie,re,ce,de,pe,fe;typeof a.touchesStart.x>"u"&&y?(k=y.pageX,B=y.pageY):(k=a.touchesStart.x,B=a.touchesStart.y);const ee=typeof y=="number"?y:null;w===1&&ee&&(k=void 0,B=void 0),L.scale=ee||t.imageWrapEl.getAttribute("data-swiper-zoom")||S.maxRatio,w=ee||t.imageWrapEl.getAttribute("data-swiper-zoom")||S.maxRatio,y&&!(w===1&&ee)?(pe=t.slideEl.offsetWidth,fe=t.slideEl.offsetHeight,q=ne(t.slideEl).left+g.scrollX,H=ne(t.slideEl).top+g.scrollY,Y=q+pe/2-k,R=H+fe/2-B,he=t.imageEl.offsetWidth,ge=t.imageEl.offsetHeight,ve=he*L.scale,we=ge*L.scale,ie=Math.min(pe/2-ve/2,0),re=Math.min(fe/2-we/2,0),ce=-ie,de=-re,W=Y*L.scale,U=R*L.scale,Wce&&(W=ce),Ude&&(U=de)):(W=0,U=0),ee&&L.scale===1&&(t.originX=0,t.originY=0),t.imageWrapEl.style.transitionDuration="300ms",t.imageWrapEl.style.transform=`translate3d(${W}px, ${U}px,0)`,t.imageEl.style.transitionDuration="300ms",t.imageEl.style.transform=`translate3d(0,0,0) scale(${L.scale})`}function I(){const y=e.zoom,L=e.params.zoom;if(!t.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?t.slideEl=_(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:t.slideEl=e.slides[e.activeIndex];let S=t.slideEl.querySelector(`.${L.containerClass}`);S&&(S=S.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),t.imageEl=S,S?t.imageWrapEl=K(t.imageEl,`.${L.containerClass}`)[0]:t.imageWrapEl=void 0}!t.imageEl||!t.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),y.scale=1,w=1,t.imageWrapEl.style.transitionDuration="300ms",t.imageWrapEl.style.transform="translate3d(0,0,0)",t.imageEl.style.transitionDuration="300ms",t.imageEl.style.transform="translate3d(0,0,0) scale(1)",t.slideEl.classList.remove(`${L.zoomedSlideClass}`),t.slideEl=void 0,t.originX=0,t.originY=0)}function T(y){const L=e.zoom;L.scale&&L.scale!==1?I():O(y)}function l(){const y=e.params.passiveListeners?{passive:!0,capture:!1}:!1,L=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:y,activeListenerWithCapture:L}}function h(){const y=e.zoom;if(y.enabled)return;y.enabled=!0;const{passiveListener:L,activeListenerWithCapture:S}=l();e.wrapperEl.addEventListener("pointerdown",m,L),e.wrapperEl.addEventListener("pointermove",P,S),["pointerup","pointercancel","pointerout"].forEach(k=>{e.wrapperEl.addEventListener(k,C,L)}),e.wrapperEl.addEventListener("pointermove",A,S)}function z(){const y=e.zoom;if(!y.enabled)return;y.enabled=!1;const{passiveListener:L,activeListenerWithCapture:S}=l();e.wrapperEl.removeEventListener("pointerdown",m,L),e.wrapperEl.removeEventListener("pointermove",P,S),["pointerup","pointercancel","pointerout"].forEach(k=>{e.wrapperEl.removeEventListener(k,C,L)}),e.wrapperEl.removeEventListener("pointermove",A,S)}v("init",()=>{e.params.zoom.enabled&&h()}),v("destroy",()=>{z()}),v("touchStart",(y,L)=>{e.zoom.enabled&&D(L)}),v("touchEnd",(y,L)=>{e.zoom.enabled&&M()}),v("doubleTap",(y,L)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&T(L)}),v("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&X()}),v("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&X()}),Object.assign(e.zoom,{enable:h,disable:z,in:O,out:I,toggle:T})}function ke($){let{swiper:e,extendParams:x,on:v}=$;x({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function E(o,i){const t=function(){let d,n,u;return(s,r)=>{for(n=-1,d=s.length;d-n>1;)u=d+n>>1,s[u]<=r?n=u:d=u;return d}}();this.x=o,this.y=i,this.lastIndex=o.length-1;let a,p;return this.interpolate=function(d){return d?(p=t(this.x,d),a=p-1,(d-this.x[a])*(this.y[p]-this.y[a])/(this.x[p]-this.x[a])+this.y[a]):0},this}function g(o){e.controller.spline=e.params.loop?new E(e.slidesGrid,o.slidesGrid):new E(e.snapGrid,o.snapGrid)}function w(o,i){const t=e.controller.control;let a,p;const c=e.constructor;function d(n){if(n.destroyed)return;const u=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(g(n),p=-e.controller.spline.interpolate(-u)),(!p||e.params.controller.by==="container")&&(a=(n.maxTranslate()-n.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(a)||!Number.isFinite(a))&&(a=1),p=(u-e.minTranslate())*a+n.minTranslate()),e.params.controller.inverse&&(p=n.maxTranslate()-p),n.updateProgress(p),n.setTranslate(p,e),n.updateActiveIndex(),n.updateSlidesClasses()}if(Array.isArray(t))for(let n=0;n{d.updateAutoHeight()}),ae(d.wrapperEl,()=>{a&&d.transitionEnd()})))}if(Array.isArray(a))for(p=0;p{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const o=document.querySelector(e.params.controller.control);if(o&&o.swiper)e.controller.control=o.swiper;else if(o){const i=t=>{e.controller.control=t.detail[0],e.update(),o.removeEventListener("init",i)};o.addEventListener("init",i)}return}e.controller.control=e.params.controller.control}),v("update",()=>{f()}),v("resize",()=>{f()}),v("observerUpdate",()=>{f()}),v("setTranslate",(o,i,t)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(i,t)}),v("setTransition",(o,i,t)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(i,t)}),Object.assign(e.controller,{setTranslate:w,setTransition:b})}function Ye($){let{swiper:e,extendParams:x,on:v}=$;x({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let E=null;function g(l){const h=E;h.length!==0&&(h.innerHTML="",h.innerHTML=l)}const w=l=>(Array.isArray(l)?l:[l]).filter(h=>!!h);function b(l){l===void 0&&(l=16);const h=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(l).replace(/x/g,h)}function f(l){l=w(l),l.forEach(h=>{h.setAttribute("tabIndex","0")})}function o(l){l=w(l),l.forEach(h=>{h.setAttribute("tabIndex","-1")})}function i(l,h){l=w(l),l.forEach(z=>{z.setAttribute("role",h)})}function t(l,h){l=w(l),l.forEach(z=>{z.setAttribute("aria-roledescription",h)})}function a(l,h){l=w(l),l.forEach(z=>{z.setAttribute("aria-controls",h)})}function p(l,h){l=w(l),l.forEach(z=>{z.setAttribute("aria-label",h)})}function c(l,h){l=w(l),l.forEach(z=>{z.setAttribute("id",h)})}function d(l,h){l=w(l),l.forEach(z=>{z.setAttribute("aria-live",h)})}function n(l){l=w(l),l.forEach(h=>{h.setAttribute("aria-disabled",!0)})}function u(l){l=w(l),l.forEach(h=>{h.setAttribute("aria-disabled",!1)})}function s(l){if(l.keyCode!==13&&l.keyCode!==32)return;const h=e.params.a11y,z=l.target;e.pagination&&e.pagination.el&&(z===e.pagination.el||e.pagination.el.contains(l.target))&&!l.target.matches(G(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&z===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?g(h.lastSlideMessage):g(h.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&z===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?g(h.firstSlideMessage):g(h.prevSlideMessage)),e.pagination&&z.matches(G(e.params.pagination.bulletClass))&&z.click())}function r(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:l,prevEl:h}=e.navigation;h&&(e.isBeginning?(n(h),o(h)):(u(h),f(h))),l&&(e.isEnd?(n(l),o(l)):(u(l),f(l)))}function m(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function P(){return m()&&e.params.pagination.clickable}function C(){const l=e.params.a11y;m()&&e.pagination.bullets.forEach(h=>{e.params.pagination.clickable&&(f(h),e.params.pagination.renderBullet||(i(h,"button"),p(h,l.paginationBulletMessage.replace(/\{\{index\}\}/,ue(h)+1)))),h.matches(G(e.params.pagination.bulletActiveClass))?h.setAttribute("aria-current","true"):h.removeAttribute("aria-current")})}const D=(l,h,z)=>{f(l),l.tagName!=="BUTTON"&&(i(l,"button"),l.addEventListener("keydown",s)),p(l,z),a(l,h)},A=()=>{e.a11y.clicked=!0},M=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},X=l=>{if(e.a11y.clicked)return;const h=l.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!h||!e.slides.includes(h))return;const z=e.slides.indexOf(h)===e.activeIndex,y=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(h);z||y||l.sourceCapabilities&&l.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(h),0))},O=()=>{const l=e.params.a11y;l.itemRoleDescriptionMessage&&t(e.slides,l.itemRoleDescriptionMessage),l.slideRole&&i(e.slides,l.slideRole);const h=e.slides.length;l.slideLabelMessage&&e.slides.forEach((z,y)=>{const L=e.params.loop?parseInt(z.getAttribute("data-swiper-slide-index"),10):y,S=l.slideLabelMessage.replace(/\{\{index\}\}/,L+1).replace(/\{\{slidesLength\}\}/,h);p(z,S)})},I=()=>{const l=e.params.a11y;e.el.append(E);const h=e.el;l.containerRoleDescriptionMessage&&t(h,l.containerRoleDescriptionMessage),l.containerMessage&&p(h,l.containerMessage);const z=e.wrapperEl,y=l.id||z.getAttribute("id")||`swiper-wrapper-${b(16)}`,L=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";c(z,y),d(z,L),O();let{nextEl:S,prevEl:k}=e.navigation?e.navigation:{};S=w(S),k=w(k),S&&S.forEach(B=>D(B,y,l.nextSlideMessage)),k&&k.forEach(B=>D(B,y,l.prevSlideMessage)),P()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(q=>{q.addEventListener("keydown",s)}),e.el.addEventListener("focus",X,!0),e.el.addEventListener("pointerdown",A,!0),e.el.addEventListener("pointerup",M,!0)};function T(){E&&E.remove();let{nextEl:l,prevEl:h}=e.navigation?e.navigation:{};l=w(l),h=w(h),l&&l.forEach(z=>z.removeEventListener("keydown",s)),h&&h.forEach(z=>z.removeEventListener("keydown",s)),P()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(y=>{y.removeEventListener("keydown",s)}),e.el.removeEventListener("focus",X,!0),e.el.removeEventListener("pointerdown",A,!0),e.el.removeEventListener("pointerup",M,!0)}v("beforeInit",()=>{E=N("span",e.params.a11y.notificationClass),E.setAttribute("aria-live","assertive"),E.setAttribute("aria-atomic","true")}),v("afterInit",()=>{e.params.a11y.enabled&&I()}),v("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&O()}),v("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&r()}),v("paginationUpdate",()=>{e.params.a11y.enabled&&C()}),v("destroy",()=>{e.params.a11y.enabled&&T()})}function Be($){let{swiper:e,extendParams:x,on:v}=$;x({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let E=!1,g={};const w=p=>p.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),b=p=>{const c=V();let d;p?d=new URL(p):d=c.location;const n=d.pathname.slice(1).split("/").filter(m=>m!==""),u=n.length,s=n[u-2],r=n[u-1];return{key:s,value:r}},f=(p,c)=>{const d=V();if(!E||!e.params.history.enabled)return;let n;e.params.url?n=new URL(e.params.url):n=d.location;const u=e.slides[c];let s=w(u.getAttribute("data-history"));if(e.params.history.root.length>0){let m=e.params.history.root;m[m.length-1]==="/"&&(m=m.slice(0,m.length-1)),s=`${m}/${p?`${p}/`:""}${s}`}else n.pathname.includes(p)||(s=`${p?`${p}/`:""}${s}`);e.params.history.keepQuery&&(s+=n.search);const r=d.history.state;r&&r.value===s||(e.params.history.replaceState?d.history.replaceState({value:s},null,s):d.history.pushState({value:s},null,s))},o=(p,c,d)=>{if(c)for(let n=0,u=e.slides.length;n{g=b(e.params.url),o(e.params.speed,g.value,!1)},t=()=>{const p=V();if(e.params.history){if(!p.history||!p.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(E=!0,g=b(e.params.url),!g.key&&!g.value){e.params.history.replaceState||p.addEventListener("popstate",i);return}o(0,g.value,e.params.runCallbacksOnInit),e.params.history.replaceState||p.addEventListener("popstate",i)}},a=()=>{const p=V();e.params.history.replaceState||p.removeEventListener("popstate",i)};v("init",()=>{e.params.history.enabled&&t()}),v("destroy",()=>{e.params.history.enabled&&a()}),v("transitionEnd _freeModeNoMomentumRelease",()=>{E&&f(e.params.history.key,e.activeIndex)}),v("slideChange",()=>{E&&e.params.cssMode&&f(e.params.history.key,e.activeIndex)})}function Re($){let{swiper:e,extendParams:x,emit:v,on:E}=$,g=!1;const w=j(),b=V();x({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(a,p){if(e.virtual&&e.params.virtual.enabled){const c=e.slides.filter(n=>n.getAttribute("data-hash")===p)[0];return c?parseInt(c.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(_(e.slidesEl,`.${e.params.slideClass}[data-hash="${p}"], swiper-slide[data-hash="${p}"]`)[0])}}});const f=()=>{v("hashChange");const a=w.location.hash.replace("#",""),p=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],c=p?p.getAttribute("data-hash"):"";if(a!==c){const d=e.params.hashNavigation.getSlideIndex(e,a);if(typeof d>"u"||Number.isNaN(d))return;e.slideTo(d)}},o=()=>{if(!g||!e.params.hashNavigation.enabled)return;const a=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],p=a?a.getAttribute("data-hash")||a.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&b.history&&b.history.replaceState?(b.history.replaceState(null,null,`#${p}`||""),v("hashSet")):(w.location.hash=p||"",v("hashSet"))},i=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;g=!0;const a=w.location.hash.replace("#","");if(a){const c=e.params.hashNavigation.getSlideIndex(e,a);e.slideTo(c||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&b.addEventListener("hashchange",f)},t=()=>{e.params.hashNavigation.watchState&&b.removeEventListener("hashchange",f)};E("init",()=>{e.params.hashNavigation.enabled&&i()}),E("destroy",()=>{e.params.hashNavigation.enabled&&t()}),E("transitionEnd _freeModeNoMomentumRelease",()=>{g&&o()}),E("slideChange",()=>{g&&e.params.cssMode&&o()})}function qe($){let{swiper:e,extendParams:x,on:v,emit:E,params:g}=$;e.autoplay={running:!1,paused:!1,timeLeft:0},x({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let w,b,f=g&&g.autoplay?g.autoplay.delay:3e3,o=g&&g.autoplay?g.autoplay.delay:3e3,i,t=new Date().getTime,a,p,c,d,n,u;function s(y){!e||e.destroyed||!e.wrapperEl||y.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",s),M())}const r=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?a=!0:a&&(o=i,a=!1);const y=e.autoplay.paused?i:t+o-new Date().getTime();e.autoplay.timeLeft=y,E("autoplayTimeLeft",y,y/f),b=requestAnimationFrame(()=>{r()})},m=()=>{let y;return e.virtual&&e.params.virtual.enabled?y=e.slides.filter(S=>S.classList.contains("swiper-slide-active"))[0]:y=e.slides[e.activeIndex],y?parseInt(y.getAttribute("data-swiper-autoplay"),10):void 0},P=y=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(b),r();let L=typeof y>"u"?e.params.autoplay.delay:y;f=e.params.autoplay.delay,o=e.params.autoplay.delay;const S=m();!Number.isNaN(S)&&S>0&&typeof y>"u"&&(L=S,f=S,o=S),i=L;const k=e.params.speed,B=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(k,!0,!0),E("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,k,!0,!0),E("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(k,!0,!0),E("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,k,!0,!0),E("autoplay")),e.params.cssMode&&(t=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return L>0?(clearTimeout(w),w=setTimeout(()=>{B()},L)):requestAnimationFrame(()=>{B()}),L},C=()=>{e.autoplay.running=!0,P(),E("autoplayStart")},D=()=>{e.autoplay.running=!1,clearTimeout(w),cancelAnimationFrame(b),E("autoplayStop")},A=(y,L)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(w),y||(u=!0);const S=()=>{E("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",s):M()};if(e.autoplay.paused=!0,L){n&&(i=e.params.autoplay.delay),n=!1,S();return}i=(i||e.params.autoplay.delay)-(new Date().getTime()-t),!(e.isEnd&&i<0&&!e.params.loop)&&(i<0&&(i=0),S())},M=()=>{e.isEnd&&i<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(t=new Date().getTime(),u?(u=!1,P(i)):P(),e.autoplay.paused=!1,E("autoplayResume"))},X=()=>{if(e.destroyed||!e.autoplay.running)return;const y=j();y.visibilityState==="hidden"&&(u=!0,A(!0)),y.visibilityState==="visible"&&M()},O=y=>{y.pointerType==="mouse"&&(u=!0,!(e.animating||e.autoplay.paused)&&A(!0))},I=y=>{y.pointerType==="mouse"&&e.autoplay.paused&&M()},T=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",O),e.el.addEventListener("pointerleave",I))},l=()=>{e.el.removeEventListener("pointerenter",O),e.el.removeEventListener("pointerleave",I)},h=()=>{j().addEventListener("visibilitychange",X)},z=()=>{j().removeEventListener("visibilitychange",X)};v("init",()=>{e.params.autoplay.enabled&&(T(),h(),t=new Date().getTime(),C())}),v("destroy",()=>{l(),z(),e.autoplay.running&&D()}),v("beforeTransitionStart",(y,L,S)=>{e.destroyed||!e.autoplay.running||(S||!e.params.autoplay.disableOnInteraction?A(!0,!0):D())}),v("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){D();return}p=!0,c=!1,u=!1,d=setTimeout(()=>{u=!0,c=!0,A(!0)},200)}}),v("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(d),clearTimeout(w),e.params.autoplay.disableOnInteraction){c=!1,p=!1;return}c&&e.params.cssMode&&M(),c=!1,p=!1}}),v("slideChange",()=>{e.destroyed||!e.autoplay.running||(n=!0)}),Object.assign(e.autoplay,{start:C,stop:D,pause:A,resume:M})}function Ne($){let{swiper:e,extendParams:x,on:v}=$;x({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let E=!1,g=!1;e.thumbs={swiper:null};function w(){const o=e.thumbs.swiper;if(!o||o.destroyed)return;const i=o.clickedIndex,t=o.clickedSlide;if(t&&t.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof i>"u"||i===null)return;let a;o.params.loop?a=parseInt(o.clickedSlide.getAttribute("data-swiper-slide-index"),10):a=i,e.params.loop?e.slideToLoop(a):e.slideTo(a)}function b(){const{thumbs:o}=e.params;if(E)return!1;E=!0;const i=e.constructor;if(o.swiper instanceof i)e.thumbs.swiper=o.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(xe(o.swiper)){const t=Object.assign({},o.swiper);Object.assign(t,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(t),g=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",w),!0}function f(o){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const t=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():i.params.slidesPerView;let a=1;const p=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(a=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),i.slides.forEach(n=>n.classList.remove(p)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let n=0;n{u.classList.add(p)});else for(let n=0;nm.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];u=i.slides.indexOf(r),s=e.activeIndex>e.previousIndex?"next":"prev"}else u=e.realIndex,s=u>e.previousIndex?"next":"prev";d&&(u+=s==="next"?c:-1*c),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(u)<0&&(i.params.centeredSlides?u>n?u=u-Math.floor(t/2)+1:u=u+Math.floor(t/2)-1:u>n&&i.params.slidesPerGroup,i.slideTo(u,o?0:void 0))}}v("beforeInit",()=>{const{thumbs:o}=e.params;if(!(!o||!o.swiper))if(typeof o.swiper=="string"||o.swiper instanceof HTMLElement){const i=j(),t=()=>{const p=typeof o.swiper=="string"?i.querySelector(o.swiper):o.swiper;if(p&&p.swiper)o.swiper=p.swiper,b(),f(!0);else if(p){const c=d=>{o.swiper=d.detail[0],p.removeEventListener("init",c),b(),f(!0),o.swiper.update(),e.update()};p.addEventListener("init",c)}return p},a=()=>{if(e.destroyed)return;t()||requestAnimationFrame(a)};requestAnimationFrame(a)}else b(),f(!0)}),v("slideChange update resize observerUpdate",()=>{f()}),v("setTransition",(o,i)=>{const t=e.thumbs.swiper;!t||t.destroyed||t.setTransition(i)}),v("beforeDestroy",()=>{const o=e.thumbs.swiper;!o||o.destroyed||g&&o.destroy()}),Object.assign(e.thumbs,{init:b,update:f})}function We($){let{swiper:e,extendParams:x,emit:v,once:E}=$;x({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function g(){if(e.params.cssMode)return;const f=e.getTranslate();e.setTranslate(f),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function w(){if(e.params.cssMode)return;const{touchEventsData:f,touches:o}=e;f.velocities.length===0&&f.velocities.push({position:o[e.isHorizontal()?"startX":"startY"],time:f.touchStartTime}),f.velocities.push({position:o[e.isHorizontal()?"currentX":"currentY"],time:F()})}function b(f){let{currentPos:o}=f;if(e.params.cssMode)return;const{params:i,wrapperEl:t,rtlTranslate:a,snapGrid:p,touchEventsData:c}=e,n=F()-c.touchStartTime;if(o<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(o>-e.maxTranslate()){e.slides.length1){const A=c.velocities.pop(),M=c.velocities.pop(),X=A.position-M.position,O=A.time-M.time;e.velocity=X/O,e.velocity/=2,Math.abs(e.velocity)150||F()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeMode.momentumVelocityRatio,c.velocities.length=0;let u=1e3*i.freeMode.momentumRatio;const s=e.velocity*u;let r=e.translate+s;a&&(r=-r);let m=!1,P;const C=Math.abs(e.velocity)*20*i.freeMode.momentumBounceRatio;let D;if(re.minTranslate())i.freeMode.momentumBounce?(r-e.minTranslate()>C&&(r=e.minTranslate()+C),P=e.minTranslate(),m=!0,c.allowMomentumBounce=!0):r=e.minTranslate(),i.loop&&i.centeredSlides&&(D=!0);else if(i.freeMode.sticky){let A;for(let M=0;M-r){A=M;break}Math.abs(p[A]-r){e.loopFix()}),e.velocity!==0){if(a?u=Math.abs((-r-e.translate)/e.velocity):u=Math.abs((r-e.translate)/e.velocity),i.freeMode.sticky){const A=Math.abs((a?-r:r)-e.translate),M=e.slidesSizesGrid[e.activeIndex];A{!e||e.destroyed||!c.allowMomentumBounce||(v("momentumBounce"),e.setTransition(i.speed),setTimeout(()=>{e.setTranslate(P),ae(t,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(v("_freeModeNoMomentumRelease"),e.updateProgress(r),e.setTransition(u),e.setTranslate(r),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,ae(t,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(r),e.updateActiveIndex(),e.updateSlidesClasses()}else if(i.freeMode.sticky){e.slideToClosest();return}else i.freeMode&&v("_freeModeNoMomentumRelease");(!i.freeMode.momentum||n>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:g,onTouchMove:w,onTouchEnd:b}})}function Fe($){let{swiper:e,extendParams:x,on:v}=$;x({grid:{rows:1,fill:"column"}});let E,g,w,b;const f=()=>{let c=e.params.spaceBetween;return typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*e.size:typeof c=="string"&&(c=parseFloat(c)),c},o=c=>{const{slidesPerView:d}=e.params,{rows:n,fill:u}=e.params.grid;w=Math.floor(c/n),Math.floor(c/n)===c/n?E=c:E=Math.ceil(c/n)*n,d!=="auto"&&u==="row"&&(E=Math.max(E,d*n)),g=E/n},i=(c,d,n,u)=>{const{slidesPerGroup:s}=e.params,r=f(),{rows:m,fill:P}=e.params.grid;let C,D,A;if(P==="row"&&s>1){const M=Math.floor(c/(s*m)),X=c-m*s*M,O=M===0?s:Math.min(Math.ceil((n-M*m*s)/m),s);A=Math.floor(X/O),D=X-A*O+M*s,C=D+A*E/m,d.style.order=C}else P==="column"?(D=Math.floor(c/m),A=c-D*m,(D>w||D===w&&A===m-1)&&(A+=1,A>=m&&(A=0,D+=1))):(A=Math.floor(c/g),D=c-A*g);d.row=A,d.column=D,d.style[u("margin-top")]=A!==0?r&&`${r}px`:""},t=(c,d,n)=>{const{centeredSlides:u,roundLengths:s}=e.params,r=f(),{rows:m}=e.params.grid;if(e.virtualSize=(c+r)*E,e.virtualSize=Math.ceil(e.virtualSize/m)-r,e.wrapperEl.style[n("width")]=`${e.virtualSize+r}px`,u){const P=[];for(let C=0;C{b=e.params.grid&&e.params.grid.rows>1},p=()=>{const{params:c,el:d}=e,n=c.grid&&c.grid.rows>1;b&&!n?(d.classList.remove(`${c.containerModifierClass}grid`,`${c.containerModifierClass}grid-column`),w=1,e.emitContainerClasses()):!b&&n&&(d.classList.add(`${c.containerModifierClass}grid`),c.grid.fill==="column"&&d.classList.add(`${c.containerModifierClass}grid-column`),e.emitContainerClasses()),b=n};v("init",a),v("update",p),e.grid={initSlides:o,updateSlide:i,updateWrapperSize:t}}function Se($){const e=this,{params:x,slidesEl:v}=e;x.loop&&e.loopDestroy();const E=g=>{if(typeof g=="string"){const w=document.createElement("div");w.innerHTML=g,v.append(w.children[0]),w.innerHTML=""}else v.append(g)};if(typeof $=="object"&&"length"in $)for(let g=0;g<$.length;g+=1)$[g]&&E($[g]);else E($);e.recalcSlides(),x.loop&&e.loopCreate(),(!x.observer||e.isElement)&&e.update()}function Me($){const e=this,{params:x,activeIndex:v,slidesEl:E}=e;x.loop&&e.loopDestroy();let g=v+1;const w=b=>{if(typeof b=="string"){const f=document.createElement("div");f.innerHTML=b,E.prepend(f.children[0]),f.innerHTML=""}else E.prepend(b)};if(typeof $=="object"&&"length"in $){for(let b=0;b<$.length;b+=1)$[b]&&w($[b]);g=v+$.length}else w($);e.recalcSlides(),x.loop&&e.loopCreate(),(!x.observer||e.isElement)&&e.update(),e.slideTo(g,0,!1)}function Te($,e){const x=this,{params:v,activeIndex:E,slidesEl:g}=x;let w=E;v.loop&&(w-=x.loopedSlides,x.loopDestroy(),x.recalcSlides());const b=x.slides.length;if($<=0){x.prependSlide(e);return}if($>=b){x.appendSlide(e);return}let f=w>$?w+1:w;const o=[];for(let i=b-1;i>=$;i-=1){const t=x.slides[i];t.remove(),o.unshift(t)}if(typeof e=="object"&&"length"in e){for(let i=0;i$?w+e.length:w}else g.append(e);for(let i=0;i{if(x.params.effect!==e)return;x.classNames.push(`${x.params.containerModifierClass}${e}`),b&&b()&&x.classNames.push(`${x.params.containerModifierClass}3d`);const t=w?w():{};Object.assign(x.params,t),Object.assign(x.originalParams,t)}),v("setTranslate",()=>{x.params.effect===e&&E()}),v("setTransition",(t,a)=>{x.params.effect===e&&g(a)}),v("transitionEnd",()=>{if(x.params.effect===e&&f){if(!o||!o().slideShadows)return;x.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(a=>a.remove())}),f()}});let i;v("virtualUpdate",()=>{x.params.effect===e&&(x.slides.length||(i=!0),requestAnimationFrame(()=>{i&&x.slides&&x.slides.length&&(E(),i=!1)}))})}function se($,e){const x=Z(e);return x!==e&&(x.style.backfaceVisibility="hidden",x.style["-webkit-backface-visibility"]="hidden"),x}function oe($){let{swiper:e,duration:x,transformElements:v,allSlides:E}=$;const{activeIndex:g}=e,w=b=>b.parentElement?b.parentElement:e.slides.filter(o=>o.shadowRoot&&o.shadowRoot===b.parentNode)[0];if(e.params.virtualTranslate&&x!==0){let b=!1,f;E?f=v:f=v.filter(o=>{const i=o.classList.contains("swiper-slide-transform")?w(o):o;return e.getSlideIndex(i)===g}),f.forEach(o=>{ae(o,()=>{if(b||!e||e.destroyed)return;b=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)})})}}function Ve($){let{swiper:e,extendParams:x,on:v}=$;x({fadeEffect:{crossFade:!1}}),J({effect:"fade",swiper:e,on:v,setTranslate:()=>{const{slides:w}=e,b=e.params.fadeEffect;for(let f=0;f{const b=e.slides.map(f=>Z(f));b.forEach(f=>{f.style.transitionDuration=`${w}ms`}),oe({swiper:e,duration:w,transformElements:b,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function je($){let{swiper:e,extendParams:x,on:v}=$;x({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const E=(f,o,i)=>{let t=i?f.querySelector(".swiper-slide-shadow-left"):f.querySelector(".swiper-slide-shadow-top"),a=i?f.querySelector(".swiper-slide-shadow-right"):f.querySelector(".swiper-slide-shadow-bottom");t||(t=N("div",`swiper-slide-shadow-cube swiper-slide-shadow-${i?"left":"top"}`.split(" ")),f.append(t)),a||(a=N("div",`swiper-slide-shadow-cube swiper-slide-shadow-${i?"right":"bottom"}`.split(" ")),f.append(a)),t&&(t.style.opacity=Math.max(-o,0)),a&&(a.style.opacity=Math.max(o,0))};J({effect:"cube",swiper:e,on:v,setTranslate:()=>{const{el:f,wrapperEl:o,slides:i,width:t,height:a,rtlTranslate:p,size:c,browser:d}=e,n=e.params.cubeEffect,u=e.isHorizontal(),s=e.virtual&&e.params.virtual.enabled;let r=0,m;n.shadow&&(u?(m=e.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=N("div","swiper-cube-shadow"),e.wrapperEl.append(m)),m.style.height=`${t}px`):(m=f.querySelector(".swiper-cube-shadow"),m||(m=N("div","swiper-cube-shadow"),f.append(m))));for(let C=0;C-1&&(r=A*90+O*90,p&&(r=-A*90-O*90)),D.style.transform=h,n.slideShadows&&E(D,O,u)}if(o.style.transformOrigin=`50% 50% -${c/2}px`,o.style["-webkit-transform-origin"]=`50% 50% -${c/2}px`,n.shadow)if(u)m.style.transform=`translate3d(0px, ${t/2+n.shadowOffset}px, ${-t/2}px) rotateX(90deg) rotateZ(0deg) scale(${n.shadowScale})`;else{const C=Math.abs(r)-Math.floor(Math.abs(r)/90)*90,D=1.5-(Math.sin(C*2*Math.PI/360)/2+Math.cos(C*2*Math.PI/360)/2),A=n.shadowScale,M=n.shadowScale/D,X=n.shadowOffset;m.style.transform=`scale3d(${A}, 1, ${M}) translate3d(0px, ${a/2+X}px, ${-a/2/M}px) rotateX(-90deg)`}const P=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-c/2:0;o.style.transform=`translate3d(0px,0,${P}px) rotateX(${e.isHorizontal()?0:r}deg) rotateY(${e.isHorizontal()?-r:0}deg)`,o.style.setProperty("--swiper-cube-translate-z",`${P}px`)},setTransition:f=>{const{el:o,slides:i}=e;if(i.forEach(t=>{t.style.transitionDuration=`${f}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(a=>{a.style.transitionDuration=`${f}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const t=o.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${f}ms`)}},recreateShadows:()=>{const f=e.isHorizontal();e.slides.forEach(o=>{const i=Math.max(Math.min(o.progress,1),-1);E(o,i,f)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Q($,e,x){const v=`swiper-slide-shadow${x?`-${x}`:""}${$?` swiper-slide-shadow-${$}`:""}`,E=Z(e);let g=E.querySelector(`.${v.split(" ").join(".")}`);return g||(g=N("div",v.split(" ")),E.append(g)),g}function _e($){let{swiper:e,extendParams:x,on:v}=$;x({flipEffect:{slideShadows:!0,limitRotation:!0}});const E=(f,o)=>{let i=e.isHorizontal()?f.querySelector(".swiper-slide-shadow-left"):f.querySelector(".swiper-slide-shadow-top"),t=e.isHorizontal()?f.querySelector(".swiper-slide-shadow-right"):f.querySelector(".swiper-slide-shadow-bottom");i||(i=Q("flip",f,e.isHorizontal()?"left":"top")),t||(t=Q("flip",f,e.isHorizontal()?"right":"bottom")),i&&(i.style.opacity=Math.max(-o,0)),t&&(t.style.opacity=Math.max(o,0))};J({effect:"flip",swiper:e,on:v,setTranslate:()=>{const{slides:f,rtlTranslate:o}=e,i=e.params.flipEffect;for(let t=0;t{const o=e.slides.map(i=>Z(i));o.forEach(i=>{i.style.transitionDuration=`${f}ms`,i.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${f}ms`})}),oe({swiper:e,duration:f,transformElements:o})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(f=>{let o=f.progress;e.params.flipEffect.limitRotation&&(o=Math.max(Math.min(f.progress,1),-1)),E(f,o)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Ue($){let{swiper:e,extendParams:x,on:v}=$;x({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),J({effect:"coverflow",swiper:e,on:v,setTranslate:()=>{const{width:w,height:b,slides:f,slidesSizesGrid:o}=e,i=e.params.coverflowEffect,t=e.isHorizontal(),a=e.translate,p=t?-a+w/2:-a+b/2,c=t?i.rotate:-i.rotate,d=i.depth;for(let n=0,u=f.length;n0?C:0),y&&(y.style.opacity=-C>0?-C:0)}}},setTransition:w=>{e.slides.map(f=>Z(f)).forEach(f=>{f.style.transitionDuration=`${w}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(o=>{o.style.transitionDuration=`${w}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Ze($){let{swiper:e,extendParams:x,on:v}=$;x({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const E=b=>typeof b=="string"?b:`${b}px`;J({effect:"creative",swiper:e,on:v,setTranslate:()=>{const{slides:b,wrapperEl:f,slidesSizesGrid:o}=e,i=e.params.creativeEffect,{progressMultiplier:t}=i,a=e.params.centeredSlides;if(a){const p=o[0]/2-e.params.slidesOffsetBefore||0;f.style.transform=`translateX(calc(50% - ${p}px))`}for(let p=0;p0&&(C=i.prev,P=!0),r.forEach((T,l)=>{r[l]=`calc(${T}px + (${E(C.translate[l])} * ${Math.abs(n*t)}))`}),m.forEach((T,l)=>{m[l]=C.rotate[l]*Math.abs(n*t)}),c.style.zIndex=-Math.abs(Math.round(d))+b.length;const D=r.join(", "),A=`rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`,M=u<0?`scale(${1+(1-C.scale)*u*t})`:`scale(${1-(1-C.scale)*u*t})`,X=u<0?1+(1-C.opacity)*u*t:1-(1-C.opacity)*u*t,O=`translate3d(${D}) ${A} ${M}`;if(P&&C.shadow||!P){let T=c.querySelector(".swiper-slide-shadow");if(!T&&C.shadow&&(T=Q("creative",c)),T){const l=i.shadowPerProgress?n*(1/i.limitProgress):n;T.style.opacity=Math.min(Math.max(Math.abs(l),0),1)}}const I=se(i,c);I.style.transform=O,I.style.opacity=X,C.origin&&(I.style.transformOrigin=C.origin)}},setTransition:b=>{const f=e.slides.map(o=>Z(o));f.forEach(o=>{o.style.transitionDuration=`${b}ms`,o.querySelectorAll(".swiper-slide-shadow").forEach(i=>{i.style.transitionDuration=`${b}ms`})}),oe({swiper:e,duration:b,transformElements:f,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function Ke($){let{swiper:e,extendParams:x,on:v}=$;x({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),J({effect:"cards",swiper:e,on:v,setTranslate:()=>{const{slides:w,activeIndex:b,rtlTranslate:f}=e,o=e.params.cardsEffect,{startTranslate:i,isTouched:t}=e.touchEventsData,a=f?-e.translate:e.translate;for(let p=0;p0&&n<1&&(t||e.params.cssMode)&&a-1&&(t||e.params.cssMode)&&a>i;if(M||X){const l=(1-Math.abs((Math.abs(n)-.5)/.5))**.5;C+=-28*n*l,P+=-.5*l,D+=96*l,r=`${-25*l*Math.abs(n)}%`}if(n<0?s=`calc(${s}px ${f?"-":"+"} (${D*Math.abs(n)}%))`:n>0?s=`calc(${s}px ${f?"-":"+"} (-${D*Math.abs(n)}%))`:s=`${s}px`,!e.isHorizontal()){const l=r;r=s,s=l}const O=n<0?`${1+(1-P)*n}`:`${1-(1-P)*n}`,I=` - translate3d(${s}, ${r}, ${m}px) - rotateZ(${o.rotate?f?-C:C:0}deg) - scale(${O}) - `;if(o.slideShadows){let l=c.querySelector(".swiper-slide-shadow");l||(l=Q("cards",c)),l&&(l.style.opacity=Math.min(Math.max((Math.abs(n)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(d))+w.length;const T=se(o,c);T.style.transform=I}},setTransition:w=>{const b=e.slides.map(f=>Z(f));b.forEach(f=>{f.style.transitionDuration=`${w}ms`,f.querySelectorAll(".swiper-slide-shadow").forEach(o=>{o.style.transitionDuration=`${w}ms`})}),oe({swiper:e,duration:w,transformElements:b})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}export{Ye as A11y,qe as Autoplay,ke as Controller,Ke as EffectCards,Ue as EffectCoverflow,Ze as EffectCreative,je as EffectCube,Ve as EffectFade,_e as EffectFlip,We as FreeMode,Fe as Grid,Re as HashNavigation,Be as History,Ae as Keyboard,Ge as Manipulation,Ie as Mousewheel,ze as Navigation,De as Pagination,Xe as Parallax,Oe as Scrollbar,Ne as Thumbs,Pe as Virtual,He as Zoom}; diff --git a/dist/assets/index-fdb71334.js b/dist/assets/index-fdb71334.js deleted file mode 100644 index c6da9ed..0000000 --- a/dist/assets/index-fdb71334.js +++ /dev/null @@ -1,128 +0,0 @@ -var _n=Object.defineProperty;var wn=(t,e,n)=>e in t?_n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var k=(t,e,n)=>(wn(t,typeof e!="symbol"?e+"":e,n),n),yn=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var X=(t,e,n)=>(yn(t,e,"read from private field"),n?n.call(t):e.get(t)),pt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var Cn=/([:*])(\w+)/g,En="([^/]+)",vn=/\*/g,Ln="?(?:.*)",bn=/\/\?/g,Sn="/?([^/]+|)",Rn="(?:/^|^)",An="";function xt(t){return t===void 0&&(t="/"),it()?location.pathname+location.search+location.hash:t}function S(t){return t.replace(/\/+$/,"").replace(/^\/+/,"")}function Oe(t){return typeof t=="string"}function On(t){return typeof t=="function"}function Pe(t){return t&&t.indexOf("#")>=0&&t.split("#").pop()||""}function Pn(t,e){return e.length===0||!t?null:t.slice(1,t.length).reduce(function(n,r,s){return n===null&&(n={}),n[e[s]]=decodeURIComponent(r),n},null)}function Te(t){var e=S(t).split(/\?(.*)?$/);return[S(e[0]),e.slice(1).join("")]}function st(t){for(var e={},n=t.split("&"),r=0;r"u"||t[e]===!0}function Tn(t){if(!t)return{};var e=t.split(","),n={},r;return e.forEach(function(s){var i=s.split(":").map(function(o){return o.replace(/(^ +| +$)/g,"")});switch(i[0]){case"historyAPIMethod":n.historyAPIMethod=i[1];break;case"resolveOptionsStrategy":r||(r={}),r.strategy=i[1];break;case"resolveOptionsHash":r||(r={}),r.hash=i[1]==="true";break;case"updateBrowserURL":case"callHandler":case"updateState":case"force":n[i[0]]=i[1]==="true";break}}),r&&(n.resolveOptions=r),n}function it(){return typeof window<"u"}function kn(t,e){return t===void 0&&(t=[]),e===void 0&&(e={}),t.filter(function(n){return n}).forEach(function(n){["before","after","already","leave"].forEach(function(r){n[r]&&(e[r]||(e[r]=[]),e[r].push(n[r]))})}),e}function H(t,e,n){var r=e||{},s=0;(function i(){if(!t[s]){n&&n(r);return}Array.isArray(t[s])?(t.splice.apply(t,[s,1].concat(t[s][0](r)?t[s][1]:t[s][2])),i()):t[s](r,function(o){typeof o>"u"||o===!0?(s+=1,i()):n&&n(r)})})()}H.if=function(t,e,n){return Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]),[t,e,n]};function mt(t,e){typeof t.currentLocationPath>"u"&&(t.currentLocationPath=t.to=xt(t.instance.root)),t.currentLocationPath=t.instance._checkForAHash(t.currentLocationPath),e()}function $e(t,e){for(var n=0;n0?t.matches.length===1?t.matches[0]:t.matches:void 0)}}).concat([function(){return i()}]));return}else i()}}),{},function(){return e()})}function Bn(t,e){t.match.route.hooks&&t.match.route.hooks.before&&Q(t.navigateOptions,"callHooks")?H(t.match.route.hooks.before.map(function(n){return function(s,i){return n(function(o){o===!1?t.instance.__markAsClean(t):i()},t.match)}}).concat([function(){return e()}])):e()}function Fn(t,e){Q(t.navigateOptions,"callHandler")&&t.match.route.handler(t.match),t.instance.updatePageLinks(),e()}function Hn(t,e){t.match.route.hooks&&t.match.route.hooks.after&&Q(t.navigateOptions,"callHooks")&&t.match.route.hooks.after.forEach(function(n){return n(t.match)}),e()}function Un(t,e){var n=t.instance.lastResolved();if(n&&n[0]&&n[0].route===t.match.route&&n[0].url===t.match.url&&n[0].queryString===t.match.queryString){n.forEach(function(r){r.route.hooks&&r.route.hooks.already&&Q(t.navigateOptions,"callHooks")&&r.route.hooks.already.forEach(function(s){return s(t.match)})}),e(!1);return}e()}function In(t,e){var n=t.instance._notFoundRoute;if(n){t.notFoundHandled=!0;var r=Te(t.currentLocationPath),s=r[0],i=r[1],o=Pe(t.to);n.path=S(s);var a={url:n.path,queryString:i,hashString:o,data:null,route:n,params:i!==""?st(i):null};t.matches=[a],t.match=a}e()}function $n(t,e){(!t.resolveOptions||t.resolveOptions.noMatchWarning===!1||typeof t.resolveOptions.noMatchWarning>"u")&&console.warn('Navigo: "'+t.currentLocationPath+`" didn't match any of the registered routes.`),e()}function jn(t,e){t.instance._setCurrent(null),e()}function Bt(t,e){Q(t.navigateOptions,"updateState")&&t.instance._setCurrent(t.matches),e()}var Ft=[Un,Bn,Fn,Hn],_t=[Dt,In,H.if(function(t){var e=t.notFoundHandled;return e},Ft.concat([Bt]),[$n,jn])];function Ge(){return Ge=Object.assign||function(t){for(var e=1;e=0&&(n.hash===!0?u=u.split("#")[1]||"/":u=u.split("#")[0]),u}function _(u){return S(s+"/"+S(u))}function C(u,m,w,L){return u=Oe(u)?_(u):u,{name:L||S(String(u)),path:u,handler:m,hooks:kn(w)}}function f(u,m,w){var L=this;return typeof u=="object"&&!(u instanceof RegExp)?(Object.keys(u).forEach(function(E){if(typeof u[E]=="function")L.on(E,u[E]);else{var B=u[E],_e=B.uses,mn=B.as,gn=B.hooks;o.push(C(E,_e,[d,gn],mn))}}),this):(typeof u=="function"&&(w=m,m=u,u=s),o.push(C(u,m,[d,w])),this)}function g(u,m){if(r.__dirty){r.__waiting.push(function(){return r.resolve(u,m)});return}else r.__dirty=!0;u=u?S(s)+"/"+S(u):void 0;var w={instance:r,to:u,currentLocationPath:u,navigateOptions:{},resolveOptions:Ze({},n,m)};return H([mt,$e,H.if(function(L){var E=L.matches;return E&&E.length>0},wt,_t)],w,je),w.matches?w.matches:!1}function R(u,m){if(r.__dirty){r.__waiting.push(function(){return r.navigate(u,m)});return}else r.__dirty=!0;u=S(s)+"/"+S(u);var w={instance:r,to:u,navigateOptions:m||{},resolveOptions:m&&m.resolveOptions?m.resolveOptions:n,currentLocationPath:p(u)};H([xn,Nn,$e,H.if(function(L){var E=L.matches;return E&&E.length>0},wt,_t),Dn,je],w,je)}function b(u,m,w){var L=Z(u,m);return L!==null?(R(L.replace(new RegExp("^/?"+s),""),w),!0):!1}function v(u){return this.routes=o=o.filter(function(m){return Oe(u)?S(m.path)!==S(u):On(u)?u!==m.handler:String(m.path)!==String(u)}),this}function A(){h&&(this.__popstateListener=function(){r.__freezeListening||g()},window.addEventListener("popstate",this.__popstateListener))}function T(){this.routes=o=[],h&&window.removeEventListener("popstate",this.__popstateListener),this.destroyed=a=!0}function G(u,m){return r._notFoundRoute=C("*",u,[d,m],"__NOT_FOUND__"),this}function z(){if(c)return $().forEach(function(u){if(u.getAttribute("data-navigo")==="false"||u.getAttribute("target")==="_blank"){u.hasListenerAttached&&u.removeEventListener("click",u.navigoHandler);return}u.hasListenerAttached||(u.hasListenerAttached=!0,u.navigoHandler=function(m){if((m.ctrlKey||m.metaKey)&&m.target.tagName.toLowerCase()==="a")return!1;var w=u.getAttribute("href");if(typeof w>"u"||w===null)return!1;if(w.match(/^(http|https)/)&&typeof URL<"u")try{var L=new URL(w);w=L.pathname+L.search}catch{}var E=Tn(u.getAttribute("data-navigo-options"));a||(m.preventDefault(),m.stopPropagation(),r.navigate(S(w),E))},u.addEventListener("click",u.navigoHandler))}),r}function $(){return c?[].slice.call(document.querySelectorAll(n.linksSelector||yt)):[]}function j(u){return"/"+s+"/"+S(u)}function me(u){return d=u,this}function ge(){return i}function Z(u,m,w){var L=o.find(function(_e){return _e.name===u}),E=null;if(L){if(E=L.path,m)for(var B in m)E=E.replace(":"+B,m[B]);E=E.match(/^\//)?E:"/"+E}return E&&w&&!w.includeRoot&&(E=E.replace(new RegExp("^/"+s),"")),E}function un(u){return u.getAttribute("href")}function ht(u){var m=Te(S(u)),w=m[0],L=m[1],E=L===""?null:st(L),B=Pe(u),_e=C(w,function(){},[d],w);return{url:w,queryString:L,hashString:B,route:_e,data:null,params:E}}function dn(){return ht(S(xt(s)).replace(new RegExp("^"+s),""))}function hn(u){var m={instance:r,currentLocationPath:u,to:u,navigateOptions:{},resolveOptions:n};return $e(m,function(){}),m.matches?m.matches:!1}function fn(u,m,w){typeof m<"u"&&(typeof w>"u"||w)&&(m=_(m));var L={instance:r,to:m,currentLocationPath:m};mt(L,function(){}),typeof u=="string"&&(u=typeof w>"u"||w?_(u):u);var E=Nt(L,{name:String(u),path:u,handler:function(){},hooks:{}});return E||!1}function be(u,m,w){return typeof m=="string"&&(m=ft(m)),m?(m.hooks[u]||(m.hooks[u]=[]),m.hooks[u].push(w),function(){m.hooks[u]=m.hooks[u].filter(function(L){return L!==w})}):(console.warn("Route doesn't exists: "+m),function(){})}function ft(u){return typeof u=="string"?o.find(function(m){return m.name===_(u)}):o.find(function(m){return m.handler===u})}function pn(u){u.instance.__dirty=!1,u.instance.__waiting.length>0&&u.instance.__waiting.shift()()}this.root=s,this.routes=o,this.destroyed=a,this.current=i,this.__freezeListening=!1,this.__waiting=[],this.__dirty=!1,this.__markAsClean=pn,this.on=f,this.off=v,this.resolve=g,this.navigate=R,this.navigateByName=b,this.destroy=T,this.notFound=G,this.updatePageLinks=z,this.link=j,this.hooks=me,this.extractGETParameters=function(u){return Te(p(u))},this.lastResolved=ge,this.generate=Z,this.getLinkPath=un,this.match=hn,this.matchLocation=fn,this.getCurrentLocation=dn,this.addBeforeHook=be.bind(this,"before"),this.addAfterHook=be.bind(this,"after"),this.addAlreadyHook=be.bind(this,"already"),this.addLeaveHook=be.bind(this,"leave"),this.getRoute=ft,this._pathToMatchObject=ht,this._clean=S,this._checkForAHash=p,this._setCurrent=function(u){return i=r.current=u},A.call(this),z.call(this)}const Kn="/img/logo.svg";class Ht{constructor(e){this.mainClassName=e}create(){const e=document.createElement("a");e.classList.add(`${this.mainClassName}__link-logo`),e.href="/";const n=document.createElement("img");return n.src=Kn,n.classList.add(`${this.mainClassName}__logo`),n.alt="Логотип мебельного маркета Koff",e.append(n),e}}let qe=null;const Ut=async()=>{if(!qe){const e=await(await fetch("/img/like.svg")).text();qe=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg")}return qe.cloneNode(!0)},W=(t,e)=>{const n=document.createElement("div");return n.classList.add("container"),e&&n.classList.add(e),t.append(n),n},ee=class ee{constructor(){return ee.instance||(ee.instance=this,this.element=document.createElement("header"),this.element.classList.add("header"),this.containerElement=W(this.element,"header__container"),this.isMounted=!1),ee.instance}mount(){if(this.isMounted)return;const e=new Ht("header").create(),n=this.getSearchForm(),r=this.getNavigation();this.changeCount(),this.containerElement.append(e,n,r),document.body.append(this.element),this.isMounted=!0}unmount(){this.element.remove(),this.isMounted=!1}getSearchForm(){const e=document.createElement("form");return e.classList.add("header__search"),e.method="get",e.innerHTML=` - - - `,e.addEventListener("submit",n=>{n.preventDefault();const r=e.search.value.trim();r&&(e.reset(),F.navigate(`/search?q=${r}`))}),e}getNavigation(){const e=document.createElement("nav");e.classList.add("header__control");const n=document.createElement("a");n.classList.add("header__link"),n.href="/favorite";const r=document.createElement("p");r.classList.add("header__link-text"),r.textContent="Избранное",n.prepend(r),Ut().then(a=>{n.append(a)});const s=document.createElement("a");s.classList.add("header__link"),s.href="/cart";const i=document.createElement("span");i.classList.add("header__link-text"),i.textContent="Корзина";const o=document.createElement("span");return o.classList.add("header__count"),o.textContent="(0)",s.append(i,o),s.insertAdjacentHTML("beforeend",` - - - - - - - - - `),e.append(n,s),this.countElement=o,e}changeCount(e){this.countElement.textContent=e?`(${e})`:"(0)"}};k(ee,"instance",null);let ye=ee;const te=class te{constructor(){return te.instance||(te.instance=this,this.element=document.createElement("main"),this.isMounted=!1),te.instance}mount(){this.isMounted||(document.body.append(this.element),this.isMounted=!0)}unmount(){this.element.remove(),this.isMounted=!1}};k(te,"instance",null);let O=te;const ne=class ne{constructor(){return ne.instance||(ne.instance=this,this.element=document.createElement("footer"),this.element.classList.add("footer"),this.containerElement=W(this.element,"footer__container"),this.isMounted=!1),ne.instance}mount(){if(this.isMounted)return;const e=new Ht("footer").create();this.containerElement.append(e),this.containerElement.insertAdjacentHTML("beforeend",this.getHTML()),document.body.append(this.element),this.isMounted=!0}unmount(){this.element.remove(),this.isMounted=!1}getHTML(){return` - - - - `}};k(ne,"instance",null);let Xe=ne;const Ce="https://koff-api.vercel.app/";function It(t,e){return function(){return t.apply(e,arguments)}}const{toString:zn}=Object.prototype,{getPrototypeOf:ot}=Object,Be=(t=>e=>{const n=zn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),I=t=>(t=t.toLowerCase(),e=>Be(e)===t),Fe=t=>e=>typeof e===t,{isArray:pe}=Array,Ee=Fe("undefined");function Vn(t){return t!==null&&!Ee(t)&&t.constructor!==null&&!Ee(t.constructor)&&D(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $t=I("ArrayBuffer");function Jn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$t(t.buffer),e}const Wn=Fe("string"),D=Fe("function"),jt=Fe("number"),He=t=>t!==null&&typeof t=="object",Gn=t=>t===!0||t===!1,Se=t=>{if(Be(t)!=="object")return!1;const e=ot(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Zn=I("Date"),Xn=I("File"),Qn=I("Blob"),Yn=I("FileList"),er=t=>He(t)&&D(t.pipe),tr=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||D(t.append)&&((e=Be(t))==="formdata"||e==="object"&&D(t.toString)&&t.toString()==="[object FormData]"))},nr=I("URLSearchParams"),rr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ve(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pe(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Kt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),zt=t=>!Ee(t)&&t!==Kt;function Qe(){const{caseless:t}=zt(this)&&this||{},e={},n=(r,s)=>{const i=t&&qt(e,s)||s;Se(e[i])&&Se(r)?e[i]=Qe(e[i],r):Se(r)?e[i]=Qe({},r):pe(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r(ve(e,(s,i)=>{n&&D(s)?t[i]=It(s,n):t[i]=s},{allOwnKeys:r}),t),ir=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),or=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},ar=(t,e,n,r)=>{let s,i,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&ot(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},cr=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},lr=t=>{if(!t)return null;if(pe(t))return t;let e=t.length;if(!jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ur=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ot(Uint8Array)),dr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},hr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},fr=I("HTMLFormElement"),pr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ct=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),mr=I("RegExp"),Vt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ve(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},gr=t=>{Vt(t,(e,n)=>{if(D(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(D(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_r=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return pe(t)?r(t):r(String(t).split(e)),n},wr=()=>{},yr=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Ke="abcdefghijklmnopqrstuvwxyz",Et="0123456789",Jt={DIGIT:Et,ALPHA:Ke,ALPHA_DIGIT:Ke+Ke.toUpperCase()+Et},Cr=(t=16,e=Jt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Er(t){return!!(t&&D(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const vr=t=>{const e=new Array(10),n=(r,s)=>{if(He(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=pe(r)?[]:{};return ve(r,(o,a)=>{const d=n(o,s+1);!Ee(d)&&(i[a]=d)}),e[s]=void 0,i}}return r};return n(t,0)},Lr=I("AsyncFunction"),br=t=>t&&(He(t)||D(t))&&D(t.then)&&D(t.catch),l={isArray:pe,isArrayBuffer:$t,isBuffer:Vn,isFormData:tr,isArrayBufferView:Jn,isString:Wn,isNumber:jt,isBoolean:Gn,isObject:He,isPlainObject:Se,isUndefined:Ee,isDate:Zn,isFile:Xn,isBlob:Qn,isRegExp:mr,isFunction:D,isStream:er,isURLSearchParams:nr,isTypedArray:ur,isFileList:Yn,forEach:ve,merge:Qe,extend:sr,trim:rr,stripBOM:ir,inherits:or,toFlatObject:ar,kindOf:Be,kindOfTest:I,endsWith:cr,toArray:lr,forEachEntry:dr,matchAll:hr,isHTMLForm:fr,hasOwnProperty:Ct,hasOwnProp:Ct,reduceDescriptors:Vt,freezeMethods:gr,toObjectSet:_r,toCamelCase:pr,noop:wr,toFiniteNumber:yr,findKey:qt,global:Kt,isContextDefined:zt,ALPHABET:Jt,generateString:Cr,isSpecCompliantForm:Er,toJSONObject:vr,isAsyncFn:Lr,isThenable:br};function y(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}l.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wt=y.prototype,Gt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Gt[t]={value:t}});Object.defineProperties(y,Gt);Object.defineProperty(Wt,"isAxiosError",{value:!0});y.from=(t,e,n,r,s,i)=>{const o=Object.create(Wt);return l.toFlatObject(t,o,function(d){return d!==Error.prototype},a=>a!=="isAxiosError"),y.call(o,t.message,e,n,r,s),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Sr=null;function Ye(t){return l.isPlainObject(t)||l.isArray(t)}function Zt(t){return l.endsWith(t,"[]")?t.slice(0,-2):t}function vt(t,e,n){return t?t.concat(e).map(function(s,i){return s=Zt(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function Rr(t){return l.isArray(t)&&!t.some(Ye)}const Ar=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Ue(t,e,n){if(!l.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,R){return!l.isUndefined(R[g])});const r=n.metaTokens,s=n.visitor||c,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(e);if(!l.isFunction(s))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(l.isDate(f))return f.toISOString();if(!d&&l.isBlob(f))throw new y("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(f)||l.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,R){let b=f;if(f&&!R&&typeof f=="object"){if(l.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(l.isArray(f)&&Rr(f)||(l.isFileList(f)||l.endsWith(g,"[]"))&&(b=l.toArray(f)))return g=Zt(g),b.forEach(function(A,T){!(l.isUndefined(A)||A===null)&&e.append(o===!0?vt([g],T,i):o===null?g:g+"[]",h(A))}),!1}return Ye(f)?!0:(e.append(vt(R,g,i),h(f)),!1)}const p=[],_=Object.assign(Ar,{defaultVisitor:c,convertValue:h,isVisitable:Ye});function C(f,g){if(!l.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));p.push(f),l.forEach(f,function(b,v){(!(l.isUndefined(b)||b===null)&&s.call(e,b,l.isString(v)?v.trim():v,g,_))===!0&&C(b,g?g.concat(v):[v])}),p.pop()}}if(!l.isObject(t))throw new TypeError("data must be an object");return C(t),e}function Lt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function at(t,e){this._pairs=[],t&&Ue(t,this,e)}const Xt=at.prototype;Xt.append=function(e,n){this._pairs.push([e,n])};Xt.toString=function(e){const n=e?function(r){return e.call(this,r,Lt)}:Lt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Or(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qt(t,e,n){if(!e)return t;const r=n&&n.encode||Or,s=n&&n.serialize;let i;if(s?i=s(e,n):i=l.isURLSearchParams(e)?e.toString():new at(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Pr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l.forEach(this.handlers,function(r){r!==null&&e(r)})}}const bt=Pr,Yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tr=typeof URLSearchParams<"u"?URLSearchParams:at,kr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,Nr=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Mr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),U={isBrowser:!0,classes:{URLSearchParams:Tr,FormData:kr,Blob:xr},isStandardBrowserEnv:Nr,isStandardBrowserWebWorkerEnv:Mr,protocols:["http","https","file","blob","url","data"]};function Dr(t,e){return Ue(t,new U.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return U.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Br(t){return l.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Fr(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&l.isArray(s)?s.length:o,d?(l.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!l.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&l.isArray(s[o])&&(s[o]=Fr(s[o])),!a)}if(l.isFormData(t)&&l.isFunction(t.entries)){const n={};return l.forEachEntry(t,(r,s)=>{e(Br(r),s,n,0)}),n}return null}function Hr(t,e,n){if(l.isString(t))try{return(e||JSON.parse)(t),l.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const ct={transitional:Yt,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=l.isObject(e);if(i&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return s&&s?JSON.stringify(en(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dr(e,this.formSerializer).toString();if((a=l.isFileList(e))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ue(a?{"files[]":e}:e,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Hr(e)):e}],transformResponse:[function(e){const n=this.transitional||ct.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&l.isString(e)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?y.from(a,y.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],t=>{ct.headers[t]={}});const lt=ct,Ur=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ir=t=>{const e={};let n,r,s;return t&&t.split(` -`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&Ur[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},St=Symbol("internals");function we(t){return t&&String(t).trim().toLowerCase()}function Re(t){return t===!1||t==null?t:l.isArray(t)?t.map(Re):String(t)}function $r(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const jr=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ze(t,e,n,r,s){if(l.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!l.isString(e)){if(l.isString(r))return e.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(e)}}function qr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Kr(t,e){const n=l.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}class Ie{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(a,d,h){const c=we(d);if(!c)throw new Error("header name must be a non-empty string");const p=l.findKey(s,c);(!p||s[p]===void 0||h===!0||h===void 0&&s[p]!==!1)&&(s[p||d]=Re(a))}const o=(a,d)=>l.forEach(a,(h,c)=>i(h,c,d));return l.isPlainObject(e)||e instanceof this.constructor?o(e,n):l.isString(e)&&(e=e.trim())&&!jr(e)?o(Ir(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=we(e),e){const r=l.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return $r(s);if(l.isFunction(n))return n.call(this,s,r);if(l.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=we(e),e){const r=l.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ze(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(o){if(o=we(o),o){const a=l.findKey(r,o);a&&(!n||ze(r,r[a],a,n))&&(delete r[a],s=!0)}}return l.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||ze(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return l.forEach(this,(s,i)=>{const o=l.findKey(r,i);if(o){n[o]=Re(s),delete n[i];return}const a=e?qr(i):String(i).trim();a!==i&&delete n[i],n[a]=Re(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return l.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&l.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[St]=this[St]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=we(o);r[a]||(Kr(s,o),r[a]=!0)}return l.isArray(e)?e.forEach(i):i(e),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(Ie.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});l.freezeMethods(Ie);const K=Ie;function Ve(t,e){const n=this||lt,r=e||n,s=K.from(r.headers);let i=r.data;return l.forEach(t,function(a){i=a.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function tn(t){return!!(t&&t.__CANCEL__)}function Le(t,e,n){y.call(this,t??"canceled",y.ERR_CANCELED,e,n),this.name="CanceledError"}l.inherits(Le,y,{__CANCEL__:!0});function zr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vr=U.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const d=[];d.push(n+"="+encodeURIComponent(r)),l.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),l.isString(i)&&d.push("path="+i),l.isString(o)&&d.push("domain="+o),a===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Jr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Wr(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function nn(t,e){return t&&!Jr(e)?Wr(t,e):e}const Gr=U.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const a=l.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Zr(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Xr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(d){const h=Date.now(),c=r[i];o||(o=h),n[s]=d,r[s]=h;let p=i,_=0;for(;p!==s;)_+=n[p++],p=p%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),h-o{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,d=r(a),h=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:d||void 0,estimated:d&&o&&h?(o-i)/d:void 0,event:s};c[e?"download":"upload"]=!0,t(c)}}const Qr=typeof XMLHttpRequest<"u",Yr=Qr&&function(t){return new Promise(function(n,r){let s=t.data;const i=K.from(t.headers).normalize(),o=t.responseType;let a;function d(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}let h;l.isFormData(s)&&(U.isStandardBrowserEnv||U.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?l.isString(h=i.getContentType())&&i.setContentType(h.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(t.auth){const f=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+g))}const p=nn(t.baseURL,t.url);c.open(t.method.toUpperCase(),Qt(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function _(){if(!c)return;const f=K.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),R={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:f,config:t,request:c};zr(function(v){n(v),d()},function(v){r(v),d()},R),c=null}if("onloadend"in c?c.onloadend=_:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(_)},c.onabort=function(){c&&(r(new y("Request aborted",y.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const R=t.transitional||Yt;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),r(new y(g,R.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,t,c)),c=null},U.isStandardBrowserEnv){const f=(t.withCredentials||Gr(p))&&t.xsrfCookieName&&Vr.read(t.xsrfCookieName);f&&i.set(t.xsrfHeaderName,f)}s===void 0&&i.setContentType(null),"setRequestHeader"in c&&l.forEach(i.toJSON(),function(g,R){c.setRequestHeader(R,g)}),l.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&o!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",Rt(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Rt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=f=>{c&&(r(!f||f.type?new Le(null,t,c):f),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const C=Zr(p);if(C&&U.protocols.indexOf(C)===-1){r(new y("Unsupported protocol "+C+":",y.ERR_BAD_REQUEST,t));return}c.send(s||null)})},et={http:Sr,xhr:Yr};l.forEach(et,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const At=t=>`- ${t}`,es=t=>l.isFunction(t)||t===null||t===!1,rn={getAdapter:t=>{t=l.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i`adapter ${a} `+(d===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since : -`+i.map(At).join(` -`):" "+At(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:et};function Je(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Le(null,t)}function Ot(t){return Je(t),t.headers=K.from(t.headers),t.data=Ve.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rn.getAdapter(t.adapter||lt.adapter)(t).then(function(r){return Je(t),r.data=Ve.call(t,t.transformResponse,r),r.headers=K.from(r.headers),r},function(r){return tn(r)||(Je(t),r&&r.response&&(r.response.data=Ve.call(t,t.transformResponse,r.response),r.response.headers=K.from(r.response.headers))),Promise.reject(r)})}const Pt=t=>t instanceof K?t.toJSON():t;function fe(t,e){e=e||{};const n={};function r(h,c,p){return l.isPlainObject(h)&&l.isPlainObject(c)?l.merge.call({caseless:p},h,c):l.isPlainObject(c)?l.merge({},c):l.isArray(c)?c.slice():c}function s(h,c,p){if(l.isUndefined(c)){if(!l.isUndefined(h))return r(void 0,h,p)}else return r(h,c,p)}function i(h,c){if(!l.isUndefined(c))return r(void 0,c)}function o(h,c){if(l.isUndefined(c)){if(!l.isUndefined(h))return r(void 0,h)}else return r(void 0,c)}function a(h,c,p){if(p in e)return r(h,c);if(p in t)return r(void 0,h)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(h,c)=>s(Pt(h),Pt(c),!0)};return l.forEach(Object.keys(Object.assign({},t,e)),function(c){const p=d[c]||s,_=p(t[c],e[c],c);l.isUndefined(_)&&p!==a||(n[c]=_)}),n}const sn="1.5.1",ut={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ut[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Tt={};ut.transitional=function(e,n,r){function s(i,o){return"[Axios v"+sn+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Tt[o]&&(Tt[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};function ts(t,e,n){if(typeof t!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const a=t[i],d=a===void 0||o(a,i,t);if(d!==!0)throw new y("option "+i+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const tt={assertOptions:ts,validators:ut},V=tt.validators;class ke{constructor(e){this.defaults=e,this.interceptors={request:new bt,response:new bt}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=fe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&tt.assertOptions(r,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean)},!1),s!=null&&(l.isFunction(s)?n.paramsSerializer={serialize:s}:tt.assertOptions(s,{encode:V.function,serialize:V.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&l.merge(i.common,i[n.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=K.concat(o,i);const a=[];let d=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(d=d&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const h=[];this.interceptors.response.forEach(function(g){h.push(g.fulfilled,g.rejected)});let c,p=0,_;if(!d){const f=[Ot.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,h),_=f.length,c=Promise.resolve(n);p<_;)c=c.then(f[p++],f[p++]);return c}_=a.length;let C=n;for(p=0;p<_;){const f=a[p++],g=a[p++];try{C=f(C)}catch(R){g.call(this,R);break}}try{c=Ot.call(this,C)}catch(f){return Promise.reject(f)}for(p=0,_=h.length;p<_;)c=c.then(h[p++],h[p++]);return c}getUri(e){e=fe(this.defaults,e);const n=nn(e.baseURL,e.url);return Qt(n,e.params,e.paramsSerializer)}}l.forEach(["delete","get","head","options"],function(e){ke.prototype[e]=function(n,r){return this.request(fe(r||{},{method:e,url:n,data:(r||{}).data}))}});l.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,a){return this.request(fe(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ke.prototype[e]=n(),ke.prototype[e+"Form"]=n(!0)});const Ae=ke;class dt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,a){r.reason||(r.reason=new Le(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new dt(function(s){e=s}),cancel:e}}}const ns=dt;function rs(t){return function(n){return t.apply(null,n)}}function ss(t){return l.isObject(t)&&t.isAxiosError===!0}const nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nt).forEach(([t,e])=>{nt[e]=t});const is=nt;function on(t){const e=new Ae(t),n=It(Ae.prototype.request,e);return l.extend(n,Ae.prototype,e,{allOwnKeys:!0}),l.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return on(fe(t,s))},n}const P=on(lt);P.Axios=Ae;P.CanceledError=Le;P.CancelToken=ns;P.isCancel=tn;P.VERSION=sn;P.toFormData=Ue;P.AxiosError=y;P.Cancel=P.CanceledError;P.all=function(e){return Promise.all(e)};P.spread=rs;P.isAxiosError=ss;P.mergeConfig=fe;P.AxiosHeaders=K;P.formToJSON=t=>en(l.isHTMLForm(t)?new FormData(t):t);P.getAdapter=rn.getAdapter;P.HttpStatusCode=is;P.default=P;const Y=P;class an{constructor(e){this.key=e}get(){const e=localStorage.getItem(this.key);return e||null}set(e){typeof e=="object"&&(e=JSON.stringify(e)),localStorage.setItem(this.key,e)}delete(){localStorage.removeItem(this.key)}}const re=class re extends an{constructor(e="favorite"){return re.instance||(super(e),this.favorite=new Set(this.get()),re.instance=this),re.instance}get(){const e=super.get();if(e){const n=JSON.parse(e);if(Array.isArray(n))return n}return[]}add(e){this.favorite.add(e),this.set([...this.favorite])}remove(e){return this.check(e)?(this.favorite.delete(e),this.set([...this.favorite]),!0):!1}check(e){return this.favorite.has(e)}};k(re,"instance");let xe=re;const se=class se extends an{constructor(e="accessKey"){return se.instance||(super(e),se.instance=this),se.instance}};k(se,"instance");let rt=se;var q;class he{constructor(){pt(this,q,Ce);this.accessKeyService=new rt("accessKey"),this.accessKey=this.accessKeyService.get(),this.isDownlodedAccessKey=!1}async getAccessKey(){try{if(!this.accessKey&&!this.isDownlodedAccessKey){this.isDownlodedAccessKey=!0;const e=await Y.get(`${X(this,q)}api/users/accessKey`);this.accessKey=e.data.accessKey,this.accessKeyService.set(this.accessKey),this.isDownlodedAccessKey=!1}}catch(e){this.isDownlodedAccessKey=!1,console.log("error: ",e)}}async getData(e,n={}){try{return(await Y.get(`${X(this,q)}${e}`,{headers:{Authorization:`Bearer ${this.accessKey}`},params:n})).data}catch(r){if(r.response&&r.response.status===401)return this.accessKey=null,this.accessKeyService.delete(),this.getData(e,n);console.log(r)}}async getProducts(e={}){return await this.getData("api/products",e)}async getProductCategories(){return await this.getData("api/productCategories")}async getProductById(e){return await this.getData(`api/products/${e}`)}async postProductToCart(e,n=1){this.accessKey||await this.getAccessKey();try{const r=await Y.post(`${X(this,q)}api/cart/products`,{productId:e,quantity:n},{headers:{Authorization:`Bearer ${this.accessKey}`}});return console.log("response.data: ",r.data),r.data}catch(r){r.response&&r.response.status===401?(this.accessKey=null,this.accessKeyService.delete()):console.error(r)}}async changeQuantityProductToCart(e,n){this.accessKey||await this.getAccessKey(),console.log("В корзину");try{return(await Y.put(`${X(this,q)}api/cart/products`,{productId:e,quantity:n},{headers:{Authorization:`Bearer ${this.accessKey}`}})).data}catch(r){r.response&&r.response.status===401?(this.accessKey=null,this.accessKeyService.delete()):console.error(r)}}async getCart(){return await this.getData("api/cart")}async deleteProductFromCart(e){this.accessKey||await this.getAccessKey(),console.log("В корзину");try{return(await Y.delete(`${X(this,q)}api/cart/products/${e}`,{headers:{Authorization:`Bearer ${this.accessKey}`}})).data}catch(n){n.response&&n.response.status===401?(this.accessKey=null,this.accessKeyService.delete()):console.error(n)}}async postOrder(e){this.accessKey||await this.getAccessKey();try{const n=await Y.post(`${X(this,q)}api/orders`,e,{headers:{Authorization:`Bearer ${this.accessKey}`}});return console.log("response.data: ",n.data),n.data}catch(n){n.response&&n.response.status===401?(this.accessKey=null,this.accessKeyService.delete()):console.error(n)}}async getOrder(e){return await this.getData(`api/orders/${e}`)}}q=new WeakMap;class cn{constructor(e,n){this.text=n,this.className=e}create(e){const n=document.createElement("button");return n.classList.add(this.className),n.dataset.id=e,n.textContent=this.text,n.addEventListener("click",async()=>{const{totalCount:r}=await new he().postProductToCart(e);new ye().changeCount(r),console.log("В корзину")}),n}}class ln{constructor(e){this.className=e,this.favoriteService=new xe}create(e){const n=document.createElement("button");return n.classList.add(this.className),n.dataset.id=e,this.favoriteService.check(e)&&n.classList.add(`${this.className}_active`),Ut().then(r=>{n.append(r)}),n.addEventListener("click",async()=>{this.favoriteService.check(e)?(this.favoriteService.remove(e),n.classList.remove(`${this.className}_active`)):(this.favoriteService.add(e),n.classList.add(`${this.className}_active`))}),n}}class os{constructor({id:e,image:n,title:r,price:s}){this.id=e,this.image=n,this.title=r,this.price=s,this.cardButton=new cn("card__btn","В корзину"),this.likeButton=new ln("card__favorite")}create(){const e=document.createElement("article");e.classList.add("goods__card","card");const n=document.createElement("a");n.classList.add("card__link","card__link_img"),n.href=`/product/${this.id}`;const r=document.createElement("img");r.classList.add("card__img"),r.src=`${Ce}${this.image}`,r.alt=this.title,n.append(r);const s=document.createElement("div");s.classList.add("card__info");const i=document.createElement("h3");i.classList.add("card__title");const o=document.createElement("a");o.classList.add("card__link"),o.href=`/product/${this.id}`,o.textContent=this.title,i.append(o);const a=document.createElement("p");a.classList.add("card__price"),a.innerHTML=`${this.price.toLocaleString()} ₽`,s.append(i,a);const d=this.cardButton.create(this.id),h=this.likeButton.create(this.id);return e.append(n,s,d,h),e}}const ie=class ie{constructor(){return ie.instance||(ie.instance=this,this.element=document.createElement("section"),this.element.classList.add("goods"),this.containerElement=W(this.element),this.isMounted=!1),ie.instance}mount(e,n,r){this.containerElement.innerHTML="";const s=document.createElement("h2");s.textContent=r||"Список товаров",s.className=r?"goods__title":"goods__title visually-hidden",this.containerElement.append(s),this.updateListElem(n),!this.isMounted&&(e.append(this.element),this.isMounted=!0)}unmount(){this.element.remove(),this.isMounted=!1}updateListElem(e=[]){const n=document.createElement("ul");n.classList.add("goods__list");const r=e.map(({id:s,images:[i],name:o,price:a})=>{const d=document.createElement("li");return d.classList.add("goods__item"),d.append(new os({id:s,image:i,title:o,price:a}).create()),d});n.append(...r),this.containerElement.append(n)}};k(ie,"instance",null);let x=ie;const oe=class oe{constructor(){return oe.instance||(oe.instance=this,this.element=document.createElement("nav"),this.element.classList.add("catalog"),this.containerElement=W(this.element,"catalog__container"),this.isMounted=!1,this.linksList=[]),oe.instance}async getData(){this.catalogData=await new he().getProductCategories()}async mount(e){return this.isMounted?this:(this.catalogData||(await this.getData(),this.renederListElem(this.catalogData)),e.prepend(this.element),this.isMounted=!0,this)}unmount(){this.element.remove(),this.isMounted=!1,this.linksList.forEach(e=>e.classList.remove("catalog__link_active"))}renederListElem(e){const n=document.createElement("ul");n.classList.add("catalog__list");const r=e.map(s=>{const i=document.createElement("li");i.classList.add("catalog__item");const o=document.createElement("a");return o.classList.add("catalog__link"),o.href=`/category?slug=${s}`,o.textContent=s,this.linksList.push(o),i.append(o),i});n.append(...r),this.containerElement.append(n)}setActiveLink(e){const n=encodeURIComponent(e);this.linksList.forEach(r=>{const s=new URL(r.href).searchParams.get("slug");encodeURIComponent(s)===n?r.classList.add("catalog__link_active"):r.classList.remove("catalog__link_active")})}};k(oe,"instance",null);let N=oe;const ae=class ae{constructor(){return ae.instance||(ae.instance=this,this.pagination=this.createPagination()),ae.instance}update({currentPage:e,totalPages:n,totalProducts:r,limit:s}){const i=e*s;this.paginationBar.style.setProperty("--width",`calc(${i - - - `,this.paginationRight=document.createElement("a"),this.paginationRight.classList.add("pagination__arrow","pagination__arrow_right"),this.paginationRight.ariaLabel="Пагинация вперед",this.paginationRight.innerHTML=` - - - - `;const r=document.createElement("p");r.classList.add("pagination__number"),this.paginationCurrent=document.createElement("span"),this.paginationCurrent.classList.add("pagination__current");const s=document.createTextNode("из");return this.paginationTotal=document.createElement("span"),this.paginationTotal.classList.add("pagination__total"),r.append(this.paginationCurrent,s,this.paginationTotal),n.append(this.paginationLeft,r,this.paginationRight),e.append(this.paginationBar,n),e}mount(e){return e.append(this.pagination),this}unmount(){this.pagination.remove()}};k(ae,"instance",null);let J=ae;const ce=class ce{constructor(){return ce.instance||(ce.instance=this,this.element=document.createElement("div"),this.element.classList.add("breadcrumbs"),this.containerElement=W(this.element),this.isMounted=!1),ce.instance}checkPrevData(e){let n=!1;return this.prevData||(this.prevData=e),n=e.every((r,s)=>r.text===this.prevData[s].text),this.prevData=e,n}mount(e,n){if(!(this.isMounted&&this.checkPrevData(n))){if(this.isMounted){this.render(n);return}this.render(n),e.append(this.element),this.isMounted=!0,F.updatePageLinks()}}unmount(){this.isMounted=!1,this.element.remove()}render(e){this.containerElement.textContent="";const n=document.createElement("ul");n.classList.add("breadcrumbs__list");const s=[{text:"Главная",href:"/"},...e].map(i=>{const o=document.createElement("li");o.classList.add("breadcrumbs__item");const a=document.createElement("a");a.classList.add("breadcrumbs__link"),a.textContent=i.text,i.href&&(a.href=i.href);const d=document.createElement("span");return d.classList.add("breadcrumbs__separator"),d.innerHTML=">",o.append(a,d),o});n.append(...s),this.containerElement.append(n)}};k(ce,"instance",null);let M=ce;const le=class le{constructor(){return le.instance||(le.instance=this,this.element=document.createElement("section"),this.element.classList.add("product"),this.containerElement=W(this.element,"product__container"),this.isMounted=!1),le.instance}mount(e,n){this.render(n),!this.isMounted&&(e.append(this.element),this.isMounted=!0)}render(e){this.containerElement.innerHTML="";const n=document.createElement("h2");n.classList.add("product__title"),n.textContent=e.name;const r=document.createElement("div");r.classList.add("product__picture");const s=document.createElement("div");s.classList.add("swiper","product__slider-main");const i=document.createElement("div");i.classList.add("swiper-wrapper","product__main-list");const o=e.images.map(b=>{const v=document.createElement("div");v.classList.add("swiper-slide","product__slide");const A=document.createElement("img");return A.classList.add("product__img"),A.src=`${Ce}${b}`,v.append(A),v});if(i.append(...o),s.append(i),r.append(s),e.images.length>1){const b=document.createElement("button");b.classList.add("product__arrow","product__arrow_next"),b.innerHTML=` - - - - - `;const v=document.createElement("button");v.classList.add("product__arrow","product__arrow_prev"),v.innerHTML=` - - - - - `,s.append(b,v);const A=document.createElement("div");A.classList.add("swiper","product__slider-thumbnails");const T=document.createElement("div");T.classList.add("swiper-wrapper","product__thumbnails-list");const G=e.images.map(z=>{const $=document.createElement("div");$.classList.add("swiper-slide","product__thumbnails-slide");const j=document.createElement("img");return j.classList.add("product__thumbnails-img"),j.src=`${Ce}${z}`,$.append(j),$});T.append(...G),A.append(T),r.append(A)}const a=document.createElement("div");a.classList.add("product__info");const d=document.createElement("p");d.classList.add("product__price"),d.textContent=`${e.price.toLocaleString()} ₽`;const h=document.createElement("p");h.classList.add("product__article"),h.textContent=`арт. ${e.article}`;const c=document.createElement("div");c.classList.add("product__characteristics");const p=document.createElement("h3");p.classList.add("product__characteristics-title"),p.textContent="Общие характеристики";const _=document.createElement("ul");_.classList.add("product__characteristics-list");const C=e.characteristics.map(b=>{const v=document.createElement("li");v.classList.add("product__characteristics-item");const A=document.createElement("p");A.classList.add("product__characteristics-name"),A.textContent=b[0];const T=document.createElement("p");return T.classList.add("product__characteristics-value"),T.textContent=b[1],v.append(A,T),v}),f=document.createElement("div");f.classList.add("product__btns");const g=new cn("product__btn","В корзину").create(e.id),R=new ln("product__favorite").create(e.id);f.append(g,R),_.append(...C),c.append(p,_,f),a.append(d,h,c),this.containerElement.append(n,r,a)}unmount(){this.element.remove(),this.isMounted=!1}};k(le,"instance",null);let Ne=le;const as="modulepreload",cs=function(t){return"/"+t},kt={},We=function(e,n,r){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=cs(i),i in kt)return;kt[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const p=s[c];if(p.href===i&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const h=document.createElement("link");if(h.rel=o?"stylesheet":as,o||(h.as="script",h.crossOrigin=""),h.href=i,document.head.appendChild(h),o)return new Promise((c,p)=>{h.addEventListener("load",c),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},ls=()=>{Promise.all([We(()=>import("./index-ce9443dd.js"),["assets/index-ce9443dd.js","assets/utils-c118a400.js"]),We(()=>import("./swiper-77071f86.js"),["assets/swiper-77071f86.js","assets/utils-c118a400.js"]),We(()=>Promise.resolve({}),["assets/swiper-0705b292.css"])]).then(([{Navigation:t,Thumbs:e},{Swiper:n}])=>{try{const r=new n(".product__slider-thumbnails",{spaceBetween:10,slidesPerView:4,freeMode:!0,watchSlidesProgress:!0});new n(".product__slider-main",{modules:[t,e],spaceBetween:10,navigation:{nextEl:".product__arrow_next",prevEl:".product__arrow_prev"},thumbs:{swiper:r}})}catch(r){console.log(r)}})},us=(t,e)=>{let n=0,r=0;return(...s)=>{const i=n;n=Date.now(),i&&n-i<=e&&clearTimeout(r),r=setTimeout(()=>t(...s),e)}},ue=class ue{constructor(){return ue.instance||(ue.instance=this,this.element=document.createElement("section"),this.element.classList.add("cart"),this.containerElement=W(this.element,"cart__container"),this.isMounted=!1,this.debUpdateCart=us(this.updateCart.bind(this),300)),ue.instance}async mount(e,n,r){if(this.isMounted)return;this.containerElement.innerHTML="";const s=document.createElement("h2");s.classList.add("cart__title"),s.textContent=r,this.containerElement.append(s),this.cartData=n,n.products&&n.products.length&&(this.renederProducts(),this.renederPlace(),this.renderForm()),e.append(this.element),this.isMounted=!0}unmount(){this.element.remove(),this.isMounted=!1}updateCart(e,n){console.log(e,n),n===0?(new he().deleteProductFromCart(e),this.cartData.products=this.cartData.products.filter(r=>r.id!==e)):(new he().changeQuantityProductToCart(e,n),this.cartData.products.forEach(r=>{r.id===e&&(r.quantity=n)})),this.cartData.totalPrice=this.cartData.products.reduce((r,s)=>r+s.price*s.quantity,0),this.orderCount.textContent=`${this.cartData.totalCount} товара на сумму:`,this.orderPrice.textContent=`${this.cartData.totalPrice.toLocaleString()} ₽`}renederProducts(){const e=this.cartData.products,n=document.createElement("ul");n.classList.add("cart__products");const r=e.map(s=>{const i=document.createElement("li");i.classList.add("cart__product");const o=document.createElement("img");o.classList.add("cart__img"),o.src=`${Ce}${s.images[0]}`,o.alt=s.name;const a=document.createElement("a");a.classList.add("cart__title-product"),a.href=`/product/${s.id}`,a.textContent=s.name;const d=document.createElement("p");d.classList.add("cart__price"),d.textContent=`${(s.price*s.quantity).toLocaleString()} ₽`;const h=document.createElement("p");h.classList.add("cart__article"),h.textContent=`арт. ${s.article}`;const c=document.createElement("div");c.classList.add("cart__product-control");const p=document.createElement("button");p.classList.add("cart__product-btn"),p.textContent="-";const _=document.createElement("button");_.classList.add("cart__product-btn"),_.textContent="+";const C=document.createElement("p");return C.classList.add("cart__product-count"),C.textContent=s.quantity,p.addEventListener("click",async()=>{if(s.quantity){if(s.quantity--,C.textContent=s.quantity,s.quantity===0){i.remove(),this.debUpdateCart(s.id,s.quantity);return}d.textContent=`${(s.price*s.quantity).toLocaleString()} ₽`,this.debUpdateCart(s.id,s.quantity)}}),_.addEventListener("click",async()=>{s.quantity&&(s.quantity++,C.textContent=s.quantity,d.textContent=`${(s.price*s.quantity).toLocaleString()} ₽`,this.debUpdateCart(s.id,s.quantity))}),c.append(p,C,_),i.append(o,a,d,h,c),i});n.append(...r),this.containerElement.append(n)}renederPlace(){const e=this.cartData.totalCount,n=this.cartData.totalPrice,r=document.createElement("div");r.classList.add("cart__place");const s=document.createElement("h3");s.classList.add("cart__subtitle"),s.textContent="Оформление";const i=document.createElement("div");i.classList.add("cart__place-info"),this.orderCount=document.createElement("p"),this.orderCount.classList.add("cart__place-info"),this.orderCount.textContent=`${e} товара на сумму:`,this.orderPrice=document.createElement("p"),this.orderPrice.classList.add("cart__place-price"),this.orderPrice.textContent=`${n.toLocaleString()} ₽`,i.append(this.orderCount,this.orderPrice);const o=document.createElement("p");o.classList.add("cart__place-delivery"),o.textContent="Доставка 0 ₽";const a=document.createElement("button");a.classList.add("cart__place-btn"),a.type="submit",a.setAttribute("form","order"),a.textContent="Оформить заказ",r.append(s,i,o,a),this.containerElement.append(r)}renderForm(){const e=document.createElement("form");e.classList.add("cart__form","form-order"),e.id="order",e.method="POST",e.innerHTML=` -

Данные для доставки

-
- - - - - -
-
- Доставка - - -
- -
- Оплата - - -
- `,e.addEventListener("submit",async n=>{n.preventDefault();const r=Object.fromEntries(new FormData(e));console.log("data: ",r);const{orderId:s}=await new he().postOrder(r);F.navigate(`/order/${s}`)}),e.addEventListener("change",n=>{n.target.closest(".radio__input_delivery")?e.address.disabled=!1:(e.address.disabled=!0,e.address.value="")}),this.containerElement.append(e)}};k(ue,"instance",null);let Me=ue;const de=class de{constructor(){return de.instance||(de.instance=this,this.element=document.createElement("section"),this.element.classList.add("order"),this.containerElement=W(this.element,"order__container"),this.isMounted=!1),de.instance}mount(e,n){this.isMounted||(this.renderOrder(n),e.append(this.element),this.isMounted=!0)}unmount(){this.element.remove(),this.isMounted=!1}renderOrder(e){const n=document.createElement("div");n.classList.add("order__wrapper");const r=document.createElement("div");r.classList.add("order__header");const s=document.createElement("h2");s.classList.add("order__title"),s.textContent="Заказ успешно размещен";const i=document.createElement("p");i.classList.add("order__total-sum"),i.textContent=`${Number(e.totalPrice).toLocaleString()} ₽`,r.append(s,i);const o=document.createElement("p");o.classList.add("order__order-number"),o.textContent=`№${e.id}`;const a=document.createElement("p");a.classList.add("order__subtitle"),a.textContent="Данные доставки";const d=document.createElement("ul");d.classList.add("order__list");const h=document.createElement("li");h.classList.add("order__item");const c=document.createElement("p");c.classList.add("order__name"),c.textContent="Получатель";const p=document.createElement("p");p.classList.add("order__value"),p.textContent=e.name,h.append(c,p);const _=document.createElement("li");_.classList.add("order__item");const C=document.createElement("p");C.classList.add("order__name"),C.textContent="Телефон";const f=document.createElement("p");f.classList.add("order__value"),f.textContent=e.phone,_.append(C,f);const g=document.createElement("li");g.classList.add("order__item");const R=document.createElement("p");R.classList.add("order__name"),R.textContent="E-mail";const b=document.createElement("p");b.classList.add("order__value"),b.textContent=e.email,g.append(R,b);const v=document.createElement("li");v.classList.add("order__item");const A=document.createElement("p");A.classList.add("order__name"),A.textContent="Адрес доставки";const T=document.createElement("p");T.classList.add("order__value"),T.textContent=e.address,v.style.display=e.deliveryType==="pickup"?"none":"flex",v.append(A,T);const G=document.createElement("li");G.classList.add("order__item");const z=document.createElement("p");z.classList.add("order__name"),z.textContent="Способ оплаты";const $=document.createElement("p");$.classList.add("order__value"),$.textContent=e.paymentType==="cash"?"Наличными при получении":"Картой при получении",G.append(z,$);const j=document.createElement("li");j.classList.add("order__item");const me=document.createElement("p");me.classList.add("order__name"),me.textContent="Способ получения";const ge=document.createElement("p");ge.classList.add("order__value"),ge.textContent=e.deliveryType==="pickup"?"Самовывоз":"Доставка",j.append(me,ge),d.append(h,_,g,v,G,j);const Z=document.createElement("a");Z.classList.add("order__link"),Z.href="/",Z.textContent="На главную",n.append(r,o,a,d,Z),this.containerElement.append(n)}};k(de,"instance",null);let De=de;const F=new qn("/",{linksSelector:'a[href^="/"]'}),ds=async()=>{const t=new he;t.accessKey||await t.getAccessKey(),new ye().mount(),new O().mount(),new Xe().mount(),F.on("/",async()=>{new N().mount(new O().element);const e=await t.getProducts();new x().mount(new O().element,e),F.updatePageLinks()},{leave(e){new x().unmount(),new N().unmount(),e()},already(e){e.route.handler(e)}}).on("/category",async({params:{slug:e,page:n=1}})=>{(await new N().mount(new O().element)).setActiveLink(e),new M().mount(new O().element,[{text:e}]);const{data:r,pagination:s}=await t.getProducts({category:e,page:n});new x().mount(new O().element,r,e),s.totalProducts>s.limit&&new J().mount(new x().containerElement).update(s),F.updatePageLinks()},{leave(e){new M().unmount(),new x().unmount(),new J().unmount(),new N().unmount(),e()},already(e){e.route.handler(e)}}).on("/favorite",async({params:e})=>{console.log("params: ",e),new N().mount(new O().element),new M().mount(new O().element,[{text:"Избранное"}]);const n=new xe().get().join(",");console.log("favorite: ",n);const{data:r,pagination:s}=await t.getProducts({list:n,page:(e==null?void 0:e.page)||1});console.log("products: ",r),new x().mount(new O().element,r,r.length?"Избранное":"В избранном пока нет товаров"),s.totalProducts>s.limit&&new J().mount(new x().containerElement).update(s),F.updatePageLinks()},{leave(e){new x().unmount(),new N().unmount(),new M().unmount(),new J().unmount(),e()},already(e){e.route.handler(e)}}).on("/search",async({params:{q:e}})=>{new N().mount(new O().element),new M().mount(new O().element,[{text:"Поиск"}]);const{data:n,pagination:r}=await t.getProducts({q:e});new x().mount(new O().element,n,n.length?`По запросу "${e}" найдено`:`По запросу "${e}" ничего не найдено`),(r==null?void 0:r.totalProducts)>(r==null?void 0:r.limit)&&new J().mount(new x().containerElement).update(r),F.updatePageLinks()},{leave(e){new x().unmount(),new N().unmount(),new M().unmount(),new J().unmount(),e()},already(e){e.route.handler(e)}}).on("/product/:id",async e=>{console.log(e),new N().mount(new O().element);const n=await t.getProductById(e.data.id);new M().mount(new O().element,[{text:n.category,href:`/category?slug=${n.category}`},{text:n.name}]),new Ne().mount(new O().element,n),ls()},{leave(e){new N().unmount(),new M().unmount(),new Ne().unmount(),e()},already(e){e.route.handler(e)}}).on("/cart",async()=>{new M().mount(new O().element,[{text:"Корзина"}]);const e=await t.getCart();new Me().mount(new O().element,e,e.products.length?"Корзина":"Корзина пуста")},{leave(e){new Me().unmount(),new M().unmount(),e()},already(e){e.route.handler(e)}}).on("/order/:id",async({data:{id:e}})=>{const n=await t.getOrder(e);console.log("data: ",n),new De().mount(new O().element,n[0])},{leave(e){new De().unmount(),e()},already(e){e.route.handler(e)}}).notFound(()=>{new O().element.innerHTML=` -

Страница не найдена

-

Через 5 секунд вы будете перенаправлены - на главную страницу -

- `,setTimeout(()=>{F.navigate("/")},5e3)},{leave(e){new O().element.innerHTML="",e()}}),F.resolve(),await t.getCart().then(e=>{new ye().changeCount(e.totalCount)})};ds(); diff --git a/dist/assets/swiper-0705b292.css b/dist/assets/swiper-0705b292.css deleted file mode 100644 index 6a88a1b..0000000 --- a/dist/assets/swiper-0705b292.css +++ /dev/null @@ -1 +0,0 @@ -@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);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;overflow:clip;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);-webkit-backface-visibility:hidden;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:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.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)}} diff --git a/dist/assets/swiper-77071f86.js b/dist/assets/swiper-77071f86.js deleted file mode 100644 index 4516b10..0000000 --- a/dist/assets/swiper-77071f86.js +++ /dev/null @@ -1 +0,0 @@ -import{o as L,g as V,e as A,i as Q,c as pe,p as G,q as he,a as k,b as me,s as D,h as Z,r as ve,t as ge,j as we,u as re,n as Y,f as B}from"./utils-c118a400.js";let H;function Se(){const i=k(),e=V();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function ne(){return H||(H=Se()),H}let R;function Te(i){let{userAgent:e}=i===void 0?{}:i;const t=ne(),s=k(),n=s.navigator.platform,r=e||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,a=s.screen.height,d=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad).*OS\s([\d_]+)/);const c=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=n==="Win32";let g=n==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&g&&t.touch&&h.indexOf(`${l}x${a}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),g=!1),d&&!f&&(o.os="android",o.android=!0),(u||p||c)&&(o.os="ios",o.ios=!0),o}function xe(i){return i===void 0&&(i={}),R||(R=Te(i)),R}let F;function be(){const i=k();let e=!1;function t(){const s=i.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(t()){const s=String(i.navigator.userAgent);if(s.includes("Version/")){const[n,r]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=n<16||n===16&&r<2}}return{isSafari:e||t(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function ye(){return F||(F=be()),F}function Ee(i){let{swiper:e,on:t,emit:s}=i;const n=k();let r=null,o=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(c=>{o=n.requestAnimationFrame(()=>{const{width:p,height:f}=e;let g=p,h=f;c.forEach(T=>{let{contentBoxSize:m,contentRect:x,target:v}=T;v&&v!==e.el||(g=x?x.width:(m[0]||m).inlineSize,h=x?x.height:(m[0]||m).blockSize)}),(g!==p||h!==f)&&l()})}),r.observe(e.el))},d=()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},u=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){a();return}n.addEventListener("resize",l),n.addEventListener("orientationchange",u)}),t("destroy",()=>{d(),n.removeEventListener("resize",l),n.removeEventListener("orientationchange",u)})}function Pe(i){let{swiper:e,extendParams:t,on:s,emit:n}=i;const r=[],o=k(),l=function(u,c){c===void 0&&(c={});const p=o.MutationObserver||o.WebkitMutationObserver,f=new p(g=>{if(e.__preventObserver__)return;if(g.length===1){n("observerUpdate",g[0]);return}const h=function(){n("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(h):o.setTimeout(h,0)});f.observe(u,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),r.push(f)},a=()=>{if(e.params.observer){if(e.params.observeParents){const u=me(e.hostEl);for(let c=0;c{r.forEach(u=>{u.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",d)}var Me={on(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=t?"unshift":"push";return i.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(i,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,o=new Array(r),l=0;l=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(s=>{typeof e>"u"?t.eventsListeners[s]=[]:t.eventsListeners[s]&&t.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&t.eventsListeners[s].splice(r,1)})}),t},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,t,s;for(var n=arguments.length,r=new Array(n),o=0;o{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(d=>{d.apply(s,[a,...t])}),i.eventsListeners&&i.eventsListeners[a]&&i.eventsListeners[a].forEach(d=>{d.apply(s,t)})}),i}};function Ce(){const i=this;let e,t;const s=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=s.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=s.clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(G(s,"padding-left")||0,10)-parseInt(G(s,"padding-right")||0,10),t=t-parseInt(G(s,"padding-top")||0,10)-parseInt(G(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function Ie(){const i=this;function e(w){return i.isHorizontal()?w:{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"}[w]}function t(w,b){return parseFloat(w.getPropertyValue(e(b))||0)}const s=i.params,{wrapperEl:n,slidesEl:r,size:o,rtlTranslate:l,wrongRTL:a}=i,d=i.virtual&&s.virtual.enabled,u=d?i.virtual.slides.length:i.slides.length,c=A(r,`.${i.params.slideClass}, swiper-slide`),p=d?i.virtual.slides.length:c.length;let f=[];const g=[],h=[];let T=s.slidesOffsetBefore;typeof T=="function"&&(T=s.slidesOffsetBefore.call(i));let m=s.slidesOffsetAfter;typeof m=="function"&&(m=s.slidesOffsetAfter.call(i));const x=i.snapGrid.length,v=i.slidesGrid.length;let S=s.spaceBetween,E=-T,C=0,y=0;if(typeof o>"u")return;typeof S=="string"&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*o:typeof S=="string"&&(S=parseFloat(S)),i.virtualSize=-S,c.forEach(w=>{l?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(D(n,"--swiper-centered-offset-before",""),D(n,"--swiper-centered-offset-after",""));const I=s.grid&&s.grid.rows>1&&i.grid;I&&i.grid.initSlides(p);let M;const oe=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(w=>typeof s.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w1&&f.push(i.virtualSize-o)}if(d&&s.loop){const w=h[0]+S;if(s.slidesPerGroup>1){const b=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/s.slidesPerGroup),P=w*s.slidesPerGroup;for(let O=0;O!s.cssMode||s.loop?!0:P!==c.length-1).forEach(b=>{b.style[w]=`${S}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let w=0;h.forEach(P=>{w+=P+(S||0)}),w-=S;const b=w-o;f=f.map(P=>P<=0?-T:P>b?b+m:P)}if(s.centerInsufficientSlides){let w=0;if(h.forEach(b=>{w+=b+(S||0)}),w-=S,w{f[O]=P-b}),g.forEach((P,O)=>{g[O]=P+b})}}if(Object.assign(i,{slides:c,snapGrid:f,slidesGrid:g,slidesSizesGrid:h}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){D(n,"--swiper-centered-offset-before",`${-f[0]}px`),D(n,"--swiper-centered-offset-after",`${i.size/2-h[h.length-1]/2}px`);const w=-i.snapGrid[0],b=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(P=>P+w),i.slidesGrid=i.slidesGrid.map(P=>P+b)}if(p!==u&&i.emit("slidesLengthChange"),f.length!==x&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),g.length!==v&&i.emit("slidesGridLengthChange"),s.watchSlidesProgress&&i.updateSlidesOffset(),!d&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const w=`${s.containerModifierClass}backface-hidden`,b=i.el.classList.contains(w);p<=s.maxBackfaceHiddenSlides?b||i.el.classList.add(w):b&&i.el.classList.remove(w)}}function ze(i){const e=this,t=[],s=e.virtual&&e.params.virtual.enabled;let n=0,r;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const o=l=>s?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{t.push(l)});else for(r=0;re.slides.length&&!s)break;t.push(o(l))}else t.push(o(e.activeIndex));for(r=0;rn?l:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function Le(){const i=this,e=i.slides,t=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-i;n&&(o=i),s.forEach(a=>{a.classList.remove(t.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=t.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a=0&&f1&&g<=e.size||f<=0&&g>=e.size)&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(a),s[a].classList.add(t.slideVisibleClass)),d.progress=n?-c:c,d.originalProgress=n?-p:p}}function Ae(i){const e=this;if(typeof i>"u"){const u=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*u||0}const t=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:l}=e;const a=r,d=o;if(s===0)n=0,r=!0,o=!0;else{n=(i-e.minTranslate())/s;const u=Math.abs(i-e.minTranslate())<1,c=Math.abs(i-e.maxTranslate())<1;r=u||n<=0,o=c||n>=1,u&&(n=0),c&&(n=1)}if(t.loop){const u=e.getSlideIndexByData(0),c=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[u],f=e.slidesGrid[c],g=e.slidesGrid[e.slidesGrid.length-1],h=Math.abs(i);h>=p?l=(h-p)/g:l=(h+g-f)/g,l>1&&(l-=1)}Object.assign(e,{progress:n,progressLoop:l,isBeginning:r,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),r&&!a&&e.emit("reachBeginning toEdge"),o&&!d&&e.emit("reachEnd toEdge"),(a&&!r||d&&!o)&&e.emit("fromEdge"),e.emit("progress",n)}function Ge(){const i=this,{slides:e,params:t,slidesEl:s,activeIndex:n}=i,r=i.virtual&&t.virtual.enabled,o=a=>A(s,`.${t.slideClass}${a}, swiper-slide${a}`)[0];e.forEach(a=>{a.classList.remove(t.slideActiveClass,t.slideNextClass,t.slidePrevClass)});let l;if(r)if(t.loop){let a=n-i.virtual.slidesBefore;a<0&&(a=i.virtual.slides.length+a),a>=i.virtual.slides.length&&(a-=i.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${n}"]`);else l=e[n];if(l){l.classList.add(t.slideActiveClass);let a=ve(l,`.${t.slideClass}, swiper-slide`)[0];t.loop&&!a&&(a=e[0]),a&&a.classList.add(t.slideNextClass);let d=ge(l,`.${t.slideClass}, swiper-slide`)[0];t.loop&&!d===0&&(d=e[e.length-1]),d&&d.classList.add(t.slidePrevClass)}i.emitSlidesClasses()}const N=(i,e)=>{if(!i||i.destroyed||!i.params)return;const t=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,s=e.closest(t());if(s){let n=s.querySelector(`.${i.params.lazyPreloaderClass}`);!n&&i.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},_=(i,e)=>{if(!i.slides[e])return;const t=i.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},j=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const t=i.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const s=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),n=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const o=n,l=[o-e];l.push(...Array.from({length:e}).map((a,d)=>o+s+d)),i.slides.forEach((a,d)=>{l.includes(a.column)&&_(i,d)});return}const r=n+s-1;if(i.params.rewind||i.params.loop)for(let o=n-e;o<=r+e;o+=1){const l=(o%t+t)%t;(lr)&&_(i,l)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,t-1);o+=1)o!==n&&(o>r||o=e[r]&&s=e[r]&&s=e[r]&&(n=r);return t.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Ve(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:l}=e;let a=i,d;const u=p=>{let f=p-e.virtual.slidesBefore;return f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),f};if(typeof a>"u"&&(a=ke(e)),s.indexOf(t)>=0)d=s.indexOf(t);else{const p=Math.min(n.slidesPerGroupSkip,a);d=p+Math.floor((a-p)/n.slidesPerGroup)}if(d>=s.length&&(d=s.length-1),a===r){d!==l&&(e.snapIndex=d,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=u(a));return}let c;e.virtual&&n.virtual.enabled&&n.loop?c=u(a):e.slides[a]?c=parseInt(e.slides[a].getAttribute("data-swiper-slide-index")||a,10):c=a,Object.assign(e,{previousSnapIndex:l,snapIndex:d,previousRealIndex:o,realIndex:c,previousIndex:r,activeIndex:a}),e.initialized&&j(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==c&&e.emit("realIndexChange"),e.emit("slideChange"))}function De(i,e){const t=this,s=t.params;let n=i.closest(`.${s.slideClass}, swiper-slide`);!n&&t.isElement&&e&&e.length>1&&e.includes(i)&&[...e.slice(e.indexOf(i)+1,e.length)].forEach(l=>{!n&&l.matches&&l.matches(`.${s.slideClass}, swiper-slide`)&&(n=l)});let r=!1,o;if(n){for(let l=0;la?u=a:s&&io?l="next":r=a.length&&(T=a.length-1);const m=-a[T];if(l.normalizeSlideIndex)for(let v=0;v=E&&S=E&&S=E&&(o=v)}if(r.initialized&&o!==c&&(!r.allowSlideNext&&(p?m>r.translate&&m>r.minTranslate():mr.translate&&m>r.maxTranslate()&&(c||0)!==o))return!1;o!==(u||0)&&t&&r.emit("beforeSlideChangeStart"),r.updateProgress(m);let x;if(o>c?x="next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[v?"scrollLeft":"scrollTop"]=S})):f[v?"scrollLeft":"scrollTop"]=S,E&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return re({swiper:r,targetPosition:S,side:v?"left":"top"}),!0;f.scrollTo({[v?"left":"top"]:S,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(m),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(t,x),e===0?r.transitionEnd(t,x):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(S){!r||r.destroyed||S.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(t,x))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Ue(i,e,t,s){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const n=this;let r=i;return n.params.loop&&(n.virtual&&n.params.virtual.enabled?r=r+n.virtual.slidesBefore:r=n.getSlideIndexByData(r)),n.slideTo(r,e,t,s)}function Ke(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n)return s;let l=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(l=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex{s.slideTo(s.activeIndex+a,i,e,t)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,i,e,t):s.slideTo(s.activeIndex+a,i,e,t)}function Je(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:l,enabled:a,animating:d}=s;if(!a)return s;const u=s.virtual&&n.virtual.enabled;if(n.loop){if(d&&!u&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const c=l?s.translate:-s.translate;function p(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const f=p(c),g=r.map(m=>p(m));let h=r[g.indexOf(f)-1];if(typeof h>"u"&&n.cssMode){let m;r.forEach((x,v)=>{f>=x&&(m=v)}),typeof m<"u"&&(h=r[m>0?m-1:m])}let T=0;if(typeof h<"u"&&(T=o.indexOf(h),T<0&&(T=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(T=T-s.slidesPerViewDynamic("previous",!0)+1,T=Math.max(T,0))),n.rewind&&s.isBeginning){const m=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(m,i,e,t)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(T,i,e,t)}),!0;return s.slideTo(T,i,e,t)}function Qe(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,i,e,t)}function Ze(i,e,t,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),l=o+Math.floor((r-o)/n.params.slidesPerGroup),a=n.rtlTranslate?n.translate:-n.translate;if(a>=n.snapGrid[l]){const d=n.snapGrid[l],u=n.snapGrid[l+1];a-d>(u-d)*s&&(r+=n.params.slidesPerGroup)}else{const d=n.snapGrid[l-1],u=n.snapGrid[l];a-d<=(u-d)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,i,e,t)}function et(){const i=this,{params:e,slidesEl:t}=i,s=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let n=i.clickedIndex,r;const o=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;r=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?ni.slides.length-i.loopedSlides+s/2?(i.loopFix(),n=i.getSlideIndex(A(t,`${o}[data-swiper-slide-index="${r}"]`)[0]),Y(()=>{i.slideTo(n)})):i.slideTo(n):n>i.slides.length-s?(i.loopFix(),n=i.getSlideIndex(A(t,`${o}[data-swiper-slide-index="${r}"]`)[0]),Y(()=>{i.slideTo(n)})):i.slideTo(n)}else i.slideTo(n)}var tt={slideTo:qe,slideToLoop:Ue,slideNext:Ke,slidePrev:Je,slideReset:Qe,slideToClosest:Ze,slideToClickedSlide:et};function it(i){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;A(s,`.${t.slideClass}, swiper-slide`).forEach((r,o)=>{r.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:i,direction:t.centeredSlides?void 0:"next"})}function st(i){let{slideRealIndex:e,slideTo:t=!0,direction:s,setTranslate:n,activeSlideIndex:r,byController:o,byMousewheel:l}=i===void 0?{}:i;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:c,slidesEl:p,params:f}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):f.centeredSlides&&a.snapIndex"u"?r=a.getSlideIndex(a.slides.filter(y=>y.classList.contains(f.slideActiveClass))[0]):x=r;const v=s==="next"||!s,S=s==="prev"||!s;let E=0,C=0;if(ra.slides.length-h*2){C=Math.max(r-(a.slides.length-h*2),f.slidesPerGroup);for(let y=0;y{a.slides[y].swiperLoopMoveDOM=!0,p.prepend(a.slides[y]),a.slides[y].swiperLoopMoveDOM=!1}),v&&m.forEach(y=>{a.slides[y].swiperLoopMoveDOM=!0,p.append(a.slides[y]),a.slides[y].swiperLoopMoveDOM=!1}),a.recalcSlides(),f.slidesPerView==="auto"&&a.updateSlides(),f.watchSlidesProgress&&a.updateSlidesOffset(),t){if(T.length>0&&S)if(typeof e>"u"){const y=a.slidesGrid[x],M=a.slidesGrid[x+E]-y;l?a.setTranslate(a.translate-M):(a.slideTo(x+E,0,!1,!0),n&&(a.touches[a.isHorizontal()?"startX":"startY"]+=M,a.touchEventsData.currentTranslate=a.translate))}else n&&(a.slideToLoop(e,0,!1,!0),a.touchEventsData.currentTranslate=a.translate);else if(m.length>0&&v)if(typeof e>"u"){const y=a.slidesGrid[x],M=a.slidesGrid[x-C]-y;l?a.setTranslate(a.translate-M):(a.slideTo(x-C,0,!1,!0),n&&(a.touches[a.isHorizontal()?"startX":"startY"]+=M,a.touchEventsData.currentTranslate=a.translate))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=u,a.allowSlideNext=c,a.controller&&a.controller.control&&!o){const y={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(I=>{!I.destroyed&&I.params.loop&&I.loopFix({...y,slideTo:I.params.slidesPerView===f.slidesPerView?t:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...y,slideTo:a.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}a.emit("loopFix")}function rt(){const i=this,{params:e,slidesEl:t}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const s=[];i.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[r]=n}),i.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{t.append(n)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var nt={loopCreate:it,loopFix:st,loopDestroy:rt};function at(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),t.style.cursor="move",t.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function lt(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var ot={setGrabCursor:at,unsetGrabCursor:lt};function dt(i,e){e===void 0&&(e=this);function t(s){if(!s||s===V()||s===k())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(i);return!n&&!s.getRootNode?null:n||t(s.getRootNode().host)}return t(e)}function ft(i){const e=this,t=V(),s=k(),n=e.touchEventsData;n.evCache.push(i);const{params:r,touches:o,enabled:l}=e;if(!l||!r.simulateTouch&&i.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let a=i;a.originalEvent&&(a=a.originalEvent);let d=a.target;if(r.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(d)||"which"in a&&a.which===3||"button"in a&&a.button>0||n.isTouched&&n.isMoved)return;const u=!!r.noSwipingClass&&r.noSwipingClass!=="",c=i.composedPath?i.composedPath():i.path;u&&a.target&&a.target.shadowRoot&&c&&(d=c[0]);const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,f=!!(a.target&&a.target.shadowRoot);if(r.noSwiping&&(f?dt(p,d):d.closest(p))){e.allowClick=!0;return}if(r.swipeHandler&&!d.closest(r.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const g=o.currentX,h=o.currentY,T=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,m=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(T&&(g<=m||g>=s.innerWidth-m))if(T==="prevent")i.preventDefault();else return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=h,n.touchStartTime=B(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let x=!0;d.matches(n.focusableElements)&&(x=!1,d.nodeName==="SELECT"&&(n.isTouched=!1)),t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==d&&t.activeElement.blur();const v=x&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||v)&&!d.isContentEditable&&a.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",a)}function ct(i){const e=V(),t=this,s=t.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:l}=t;if(!l||!n.simulateTouch&&i.pointerType==="mouse")return;let a=i;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",a);return}const d=s.evCache.findIndex(y=>y.pointerId===a.pointerId);d>=0&&(s.evCache[d]=a);const u=s.evCache.length>1?s.evCache[0]:a,c=u.pageX,p=u.pageY;if(a.preventedByNestedSwiper){r.startX=c,r.startY=p;return}if(!t.allowTouchMove){a.target.matches(s.focusableElements)||(t.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:c,startY:p,prevX:t.touches.currentX,prevY:t.touches.currentY,currentX:c,currentY:p}),s.touchStartTime=B());return}if(n.touchReleaseOnEdges&&!n.loop){if(t.isVertical()){if(pr.startY&&t.translate>=t.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(cr.startX&&t.translate>=t.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,t.allowClick=!1;return}if(s.allowTouchCallbacks&&t.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;r.currentX=c,r.currentY=p;const f=r.currentX-r.startX,g=r.currentY-r.startY;if(t.params.threshold&&Math.sqrt(f**2+g**2)"u"){let y;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:f*f+g*g>=25&&(y=Math.atan2(Math.abs(g),Math.abs(f))*180/Math.PI,s.isScrolling=t.isHorizontal()?y>n.touchAngle:90-y>n.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling||t.zoom&&t.params.zoom&&t.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;t.allowClick=!1,!n.cssMode&&a.cancelable&&a.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&a.stopPropagation();let h=t.isHorizontal()?f:g,T=t.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(h=Math.abs(h)*(o?1:-1),T=Math.abs(T)*(o?1:-1)),r.diff=h,h*=n.touchRatio,o&&(h=-h,T=-T);const m=t.touchesDirection;t.swipeDirection=h>0?"prev":"next",t.touchesDirection=T>0?"prev":"next";const x=t.params.loop&&!n.cssMode,v=t.swipeDirection==="next"&&t.allowSlideNext||t.swipeDirection==="prev"&&t.allowSlidePrev;if(!s.isMoved){if(x&&v&&t.loopFix({direction:t.swipeDirection}),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const y=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(y)}s.allowMomentumBounce=!1,n.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",a)}let S;s.isMoved&&m!==t.touchesDirection&&x&&v&&Math.abs(h)>=1&&(t.loopFix({direction:t.swipeDirection,setTranslate:!0}),S=!0),t.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=h+s.startTranslate;let E=!0,C=n.resistanceRatio;if(n.touchReleaseOnEdges&&(C=0),h>0?(x&&v&&!S&&s.currentTranslate>(n.centeredSlides?t.minTranslate()-t.size/2:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>t.minTranslate()&&(E=!1,n.resistance&&(s.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+s.startTranslate+h)**C))):h<0&&(x&&v&&!S&&s.currentTranslate<(n.centeredSlides?t.maxTranslate()+t.size/2:t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(n.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(h)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&t.freeMode||n.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function ut(i){const e=this,t=e.touchEventsData,s=t.evCache.findIndex(v=>v.pointerId===i.pointerId);if(s>=0&&t.evCache.splice(s,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:n,touches:r,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a||!n.simulateTouch&&i.pointerType==="mouse")return;let d=i;if(d.originalEvent&&(d=d.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",d),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&n.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}n.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=B(),c=u-t.touchStartTime;if(e.allowClick){const v=d.path||d.composedPath&&d.composedPath();e.updateClickedSlide(v&&v[0]||d.target,v),e.emit("tap click",d),c<300&&u-t.lastClickTime<300&&e.emit("doubleTap doubleClick",d)}if(t.lastClickTime=B(),Y(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||r.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let p;if(n.followFinger?p=o?e.translate:-e.translate:p=-t.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}let f=0,g=e.slidesSizesGrid[0];for(let v=0;v=l[v]&&p=l[v]&&(f=v,g=l[l.length-1]-l[l.length-2])}let h=null,T=null;n.rewind&&(e.isBeginning?T=n.virtual&&n.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(h=0));const m=(p-l[f])/g,x=fn.longSwipesMs){if(!n.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=n.longSwipesRatio?e.slideTo(n.rewind&&e.isEnd?h:f+x):e.slideTo(f)),e.swipeDirection==="prev"&&(m>1-n.longSwipesRatio?e.slideTo(f+x):T!==null&&m<0&&Math.abs(m)>n.longSwipesRatio?e.slideTo(T):e.slideTo(f))}else{if(!n.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(d.target===e.navigation.nextEl||d.target===e.navigation.prevEl)?d.target===e.navigation.nextEl?e.slideTo(f+x):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(h!==null?h:f+x),e.swipeDirection==="prev"&&e.slideTo(T!==null?T:f))}}function ee(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=i,o=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const l=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!l?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!o?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=n,i.allowSlideNext=s,i.params.watchOverflow&&r!==i.snapGrid&&i.checkOverflow()}function pt(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function ht(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:s}=i;if(!s)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let n;const r=i.maxTranslate()-i.minTranslate();r===0?n=0:n=(i.translate-i.minTranslate())/r,n!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function mt(i){const e=this;N(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let te=!1;function vt(){}const le=(i,e)=>{const t=V(),{params:s,el:n,wrapperEl:r,device:o}=i,l=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",d=e;n[a]("pointerdown",i.onTouchStart,{passive:!1}),t[a]("pointermove",i.onTouchMove,{passive:!1,capture:l}),t[a]("pointerup",i.onTouchEnd,{passive:!0}),t[a]("pointercancel",i.onTouchEnd,{passive:!0}),t[a]("pointerout",i.onTouchEnd,{passive:!0}),t[a]("pointerleave",i.onTouchEnd,{passive:!0}),t[a]("contextmenu",i.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[a]("click",i.onClick,!0),s.cssMode&&r[a]("scroll",i.onScroll),s.updateOnWindowResize?i[d](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",ee,!0):i[d]("observerUpdate",ee,!0),n[a]("load",i.onLoad,{capture:!0})};function gt(){const i=this,e=V(),{params:t}=i;i.onTouchStart=ft.bind(i),i.onTouchMove=ct.bind(i),i.onTouchEnd=ut.bind(i),t.cssMode&&(i.onScroll=ht.bind(i)),i.onClick=pt.bind(i),i.onLoad=mt.bind(i),te||(e.addEventListener("touchstart",vt),te=!0),le(i,"on")}function wt(){le(this,"off")}var St={attachEvents:gt,detachEvents:wt};const ie=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function Tt(){const i=this,{realIndex:e,initialized:t,params:s,el:n}=i,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=i.getBreakpoint(r,i.params.breakpointsBase,i.el);if(!o||i.currentBreakpoint===o)return;const a=(o in r?r[o]:void 0)||i.originalParams,d=ie(i,s),u=ie(i,a),c=s.enabled;d&&!u?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),i.emitContainerClasses()):!d&&u&&(n.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof a[m]>"u")return;const x=s[m]&&s[m].enabled,v=a[m]&&a[m].enabled;x&&!v&&i[m].disable(),!x&&v&&i[m].enable()});const p=a.direction&&a.direction!==s.direction,f=s.loop&&(a.slidesPerView!==s.slidesPerView||p),g=s.loop;p&&t&&i.changeDirection(),L(i.params,a);const h=i.params.enabled,T=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),c&&!h?i.disable():!c&&h&&i.enable(),i.currentBreakpoint=o,i.emit("_beforeBreakpoint",a),t&&(f?(i.loopDestroy(),i.loopCreate(e),i.updateSlides()):!g&&T?(i.loopCreate(e),i.updateSlides()):g&&!T&&i.loopDestroy()),i.emit("breakpoint",a)}function xt(i,e,t){if(e===void 0&&(e="window"),!i||e==="container"&&!t)return;let s=!1;const n=k(),r=e==="window"?n.innerHeight:t.clientHeight,o=Object.keys(i).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:r*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&t.push(e+n)}):typeof s=="string"&&t.push(e+s)}),t}function Et(){const i=this,{classNames:e,params:t,rtl:s,el:n,device:r}=i,o=yt(["initialized",t.direction,{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:s},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),n.classList.add(...e),i.emitContainerClasses()}function Pt(){const i=this,{el:e,classNames:t}=i;e.classList.remove(...t),i.emitContainerClasses()}var Mt={addClasses:Et,removeClasses:Pt};function Ct(){const i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:s}=t;if(s){const n=i.slides.length-1,r=i.slidesGrid[n]+i.slidesSizesGrid[n]+s*2;i.isLocked=i.size>r}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var It={checkOverflow:Ct},se={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function zt(i,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){L(e,s);return}if(i[n]===!0&&(i[n]={enabled:!0}),n==="navigation"&&i[n]&&i[n].enabled&&!i[n].prevEl&&!i[n].nextEl&&(i[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&i[n]&&i[n].enabled&&!i[n].el&&(i[n].auto=!0),!(n in i&&"enabled"in r)){L(e,s);return}typeof i[n]=="object"&&!("enabled"in i[n])&&(i[n].enabled=!0),i[n]||(i[n]={enabled:!1}),L(e,s)}}const W={eventsEmitter:Me,update:Ne,translate:_e,transition:je,slide:tt,loop:nt,grabCursor:ot,events:St,breakpoints:bt,checkOverflow:It,classes:Mt},X={};class z{constructor(){let e,t;for(var s=arguments.length,n=new Array(s),r=0;r1){const u=[];return o.querySelectorAll(t.el).forEach(c=>{const p=L({},t,{el:c});u.push(new z(p))}),u}const l=this;l.__swiper__=!0,l.support=ne(),l.device=xe({userAgent:t.userAgent}),l.browser=ye(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const a={};l.modules.forEach(u=>{u({params:t,swiper:l,extendParams:zt(t,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const d=L({},se,a);return l.params=L({},d,X,t),l.originalParams=L({},l.params),l.passedParams=L({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach(u=>{l.on(u,l.params.on[u])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.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:l.params.allowSlideNext,allowSlidePrev:l.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:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:t,params:s}=this,n=A(t,`.${s.slideClass}, swiper-slide`),r=Q(n[0]);return Q(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>t.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:t,params:s}=e;e.slides=A(t,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),o=(s.maxTranslate()-n)*e+n;s.translateTo(o,typeof t>"u"?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);t.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const s=this,{params:n,slides:r,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:d}=s;let u=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let c=r[d]?r[d].swiperSlideSize:0,p;for(let f=d+1;fa&&(p=!0));for(let f=d-1;f>=0;f-=1)r[f]&&!p&&(c+=r[f].swiperSlideSize,u+=1,c>a&&(p=!0))}else if(e==="current")for(let c=d+1;c=0;c-=1)o[d]-o[c]{o.complete&&N(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const o=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):A(s,n())[0])();return!o&&t.params.createElements&&(o=pe("div",t.params.wrapperClass),s.append(o),A(s,`.${t.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(t,{el:s,wrapperEl:o,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||G(s,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||G(s,"direction")==="rtl"),wrongRTL:G(o,"display")==="-webkit-box"}),!0}init(e){const t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?N(t,r):r.addEventListener("load",o=>{N(t,o.target)})}),j(t),t.initialized=!0,j(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const s=this,{params:n,el:r,wrapperEl:o,slides:l}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),t&&(s.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),e!==!1&&(s.el.swiper=null,he(s)),s.destroyed=!0),null}static extendDefaults(e){L(X,e)}static get extendedDefaults(){return X}static get defaults(){return se}static installModule(e){z.prototype.__modules__||(z.prototype.__modules__=[]);const t=z.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>z.installModule(t)),z):(z.installModule(e),z)}}Object.keys(W).forEach(i=>{Object.keys(W[i]).forEach(e=>{z.prototype[e]=W[i][e]})});z.use([Ee,Pe]);export{z as Swiper,z as default}; diff --git a/dist/assets/utils-c118a400.js b/dist/assets/utils-c118a400.js deleted file mode 100644 index c757e1e..0000000 --- a/dist/assets/utils-c118a400.js +++ /dev/null @@ -1 +0,0 @@ -function w(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function p(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:w(t[n])&&w(e[n])&&Object.keys(t[n]).length>0&&p(e[n],t[n])})}const E={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 T(){const e=typeof document<"u"?document:{};return p(e,E),e}const v={document:E,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 u(){const e=typeof window<"u"?window:{};return p(e,v),e}function O(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function C(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function M(){return Date.now()}function b(e){const t=u();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function P(e,t){t===void 0&&(t="x");const n=u();let r,i,s;const l=b(e);return n.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.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 d(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function x(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function S(){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,l=i.length;ss?"next":"prev",y=(f,m)=>h==="next"&&f>=m||h==="prev"&&f<=m,g=()=>{o=new Date().getTime(),l===null&&(l=o);const f=Math.max(Math.min((o-l)/a,1),0),m=.5-Math.cos(f*Math.PI)/2;let c=s+m*(n-s);if(y(c,n)&&(c=n),t.wrapperEl.scrollTo({[r]:c}),y(c,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:c})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(g)};g()}function L(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function A(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function _(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function D(e){const t=u(),n=T(),r=e.getBoundingClientRect(),i=n.body,s=e.clientTop||i.clientTop||0,l=e.clientLeft||i.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,a=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-s,left:r.left+a-l}}function I(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 W(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 q(e,t){return u().getComputedStyle(e,null).getPropertyValue(t)}function N(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function B(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 K(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function V(e,t,n){const r=u();return n?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")):e.offsetWidth}export{u as a,B as b,_ as c,D as d,A as e,M as f,T as g,V as h,N as i,P as j,K as k,d as l,L as m,C as n,S as o,q as p,O as q,W as r,j as s,I as t,F as u}; diff --git a/dist/index.html b/dist/index.html index 8fe702e..766ad4f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -9,10 +9,15 @@ Мебельный маркет Koff - - + + + + + + +