1import{s as h,n as c,a as f,b as m,g as l,S as u,u as g,c as b,p as a}from"./GiZdpm3n.js";const v=':host{--swiper-theme-color:#007aff}:host{display:block;margin-left:auto;margin-right:auto;position:relative;z-index:1}.swiper{display:block;height:100%;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;width:100%;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);width:100%;z-index:1}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){display:block;flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){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 ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal ::slotted(swiper-slide):last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical ::slotted(swiper-slide):last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(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 ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(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 ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}',y="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}::slotted(.swiper-slide-shadow){background:#00000026}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(270deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(90deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(0deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(180deg,#00000080,#0000)}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid #0000;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-zoom-container){align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-height:100%;max-width:100%;object-fit:contain}";class S{}const n=typeof window>"u"||typeof HTMLElement>"u"?S:HTMLElement,d=(r,e)=>{if(typeof CSSStyleSheet<"u"&&r.adoptedStyleSheets){const s=new CSSStyleSheet;s.replaceSync(e),r.adoptedStyleSheets=[s]}else{const s=document.createElement("style");s.rel="stylesheet",s.textContent=e,r.appendChild(s)}};class p extends n{constructor(){super(),this.attachShadow({mode:"open"})}cssStyles(){return[v,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` 2`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,s=[...this.querySelectorAll("[slot^=slide-]")].map(i=>parseInt(i.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=s.length?Math.max(...s)+1:0,!!this.rendered){if(this.slideSlots>e)for(let i=e;i<this.slideSlots;i+=1){const t=document.createElement("swiper-slide");t.setAttribute("part",`slide slide-${i+1}`);const o=document.createElement("slot");o.setAttribute("name",`slide-${i+1}`),t.appendChild(o),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(t)}else if(this.slideSlots<e){const i=this.swiper.slides;for(let t=i.length-1;t>=0;t-=1)t>this.slideSlots&&i[t].remove()}}}
2render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&d(this.shadowRoot,e),this.cssLinks().forEach(i=>{if(this.shadowRoot.querySelector(`link[href="${i}"]`))return;const o=document.createElement("link");o.rel="stylesheet",o.href=i,this.shadowRoot.appendChild(o)});const s=document.createElement("div");s.classList.add("swiper"),s.part="container",h(s,` 3 <slot name="container-start"></slot> 4 <div class="swiper-wrapper" part="wrapper"> 5 <slot></slot> 6 ${Array.from({length:this.slideSlots}).map((i,t)=>` 7 <swiper-slide part="slide slide-${t}"> 8 <slot name="slide-${t}"></slot> 9 </swiper-slide> 10 `).join("")} 11 </div> 12 <slot name="container-end"></slot> 13 ${c(this.passedParams)?` 14 <div part="button-prev" class="swiper-button-prev"><slot name="button-prev"></slot></div> 15 <div part="button-next" class="swiper-button-next"><slot name="button-next"></slot></div> 16 `:""} 17 ${f(this.passedParams)?` 18 <div part="pagination" class="swiper-pagination"></div> 19 `:""} 20 ${m(this.passedParams)?` 21 <div part="scrollbar" class="swiper-scrollbar"></div> 22 `:""} 23 `),this.shadowRoot.appendChild(s),this.rendered=!0}initialize(){if(this.swiper&&this.swiper.initialized)return;const{params:e,passedParams:s}=l(this);this.swiperParams=e,this.passedParams=s,delete this.swiperParams.init,this.render(),this.swiper=new u(this.shadowRoot.querySelector(".swiper"),{...e.virtual?{}:{observer:!0},...e,touchEventsTarget:"container",onAny:(i,...t)=>{i==="observerUpdate"&&this.calcSlideSlots();const o=e.eventsPrefix?`${e.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase(),w=new CustomEvent(o,{detail:t,bubbles:i!=="hashChange",cancelable:!0});this.dispatchEvent(w)}})}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(e,s){const{params:i,passedParams:t}=l(this,e,s);this.passedParams=t,this.swiperParams=i,!(this.swiper&&this.swiper.params[e]===s)&&g({swiper:this.swiper,passedParams:this.passedParams,changedParams:[b(e)],...e==="navigation"&&t[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},...e==="pagination"&&t[e]?{paginationEl:".swiper-pagination"}:{},...e==="scrollbar"&&t[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,s,i){this.swiper&&this.swiper.initialized&&(s==="true"&&i===null&&(i=!1),this.updateSwiperOnPropChange(e,i))}static get observedAttributes(){return a.filter(s=>s.includes("_")).map(s=>s.replace(/[A-Z]/g,i=>`-${i}`).replace("_","").toLowerCase())}}a.forEach(r=>{r!=="init"&&(r=r.replace("_",""),Object.defineProperty(p.prototype,r,{configurable:!0,get(){return(this.passedParams||{})[r]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[r]=e,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(r,e)}}))});class x extends n{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(d(this.shadowRoot,y),this.shadowRoot.appendChild(document.createElement("slot")),e){const s=document.createElement("div");s.classList.add("swiper-lazy-preloader"),s.part.add("preloader"),this.shadowRoot.appendChild(s)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}}const k=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",p),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",x))};typeof window<"u"&&(window.SwiperElementRegisterParams=r=>{a.push(...r)});export{p as SwiperContainer,x as SwiperSlide,k as register};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.