const $e=function(){const t=document.createelement("link").rellist;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.queryselectorall('link[rel="modulepreload"]'))i(n);new mutationobserver(n=>{for(const r of n)if(r.type==="childlist")for(const a of r.addednodes)a.tagname==="link"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childlist:!0,subtree:!0});function s(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerpolicy&&(r.referrerpolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?r.credentials="include":n.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=s(n);fetch(n.href,r)}};$e();class se{constructor(){this.handlers_={}}gethandlerkey(t){return"_"+be(t.tostring())}gethandlerscount(t){return t?object.values(t).length:0}on(t,s){const i=this.handlers_[t]||{},n=this.gethandlerkey(s);i[n]=s,this.handlers_[t]=i}once(t,s){this.off(t,s),s.isonce=!0,this.on(t,s)}async emit(t,s){const i=this.handlers_[t];if(this.gethandlerscount(i)){const n=await promise.all(object.values(i).map(a=>{const l=new event(t);l.detail=s;const o=promise.resolve(a(l));return a.isonce&&this.off(t,a),o}));return[n.filter(a=>a===!1).length===0,n]}}off(t,s){let i=this.handlers_[t];if(this.gethandlerscount(i)!==0){if(!s)i=null;else{const n=this.gethandlerkey(s);delete i[n]}this.handlers_[t]=i}}}function be(e){let t=0;if(e.length==0)return t;for(let s=0;s{t(s.detail)})}}class k extends se{constructor(t){super(),this.element=t.element,this.state=new ie(t.defaultstate),this.state.subscribe(s=>{this.update(),this.emit("change",s)})}update(){console.log("cpcomponent update")}}class de extends k{constructor(t){super({element:t.element,defaultstate:{openkeys:t.openkeys||[],selectedkey:t.selectedkey||""}}),this.mode=t.mode||"inline",this.triggersubmenuaction=t.triggersubmenuaction||"click",this.timer,this.delay=300,this.init()}init(){this.items=this.element.queryselectorall("[role=item]"),this.items.foreach((t,s)=>{const i=t.queryselector("[role=menu]");if(!i){t.addeventlistener("click",n=>{n.stoppropagation();const r=t.getattribute("key");console.log(1,r,t),r&&this.select(r)});return}this.triggersubmenuaction==="click"&&t.addeventlistener("click",()=>{console.log(0,t),t.hasattribute("expanded")?this.hidesubmenu(t):this.displaysubmenu(t)}),this.triggersubmenuaction==="hover"&&(i.addeventlistener("mouseover",()=>{this.timer&&cleartimeout(this.timer)}),t.addeventlistener("mouseenter",()=>{this.displaysubmenu(t)}),t.addeventlistener("mouseleave",()=>{this.hidesubmenu(t)}),t.addeventlistener("click",()=>{this.setindex(s)}))}),this.update()}getselectedkey(){return this.state.getitem("selectedkey")}select(t){this.state.setitem("selectedkey",t)}update(){const{openkeys:t,selectedkey:s}=this.state.getdata();this.items.foreach((i,n)=>{const r=i.getattribute("key");t.indexof(r)>=0?i.setattribute("expanded",""):i.removeattribute("expanded"),s===r?i.setattribute("active",""):i.removeattribute("active")})}displaysubmenu(t){const s=t.getattribute("key");if(!s){t.setattribute("expanded","");return}const i=this.state.getitem("openkeys");i.push(s),this.state.setitem("openkeys",i)}hidesubmenu(t){this.timer=settimeout(()=>{const s=t.getattribute("key");if(!s){t.removeattribute("expanded");return}const i=this.state.getitem("openkeys");this.state.setitem("openkeys",i.filter(n=>n!==s))},this.triggersubmenuaction==="hover"?this.delay:0)}}class q extends k{constructor(t){super({element:t.element,defaultstate:{index:t.index||0}}),this.init()}init(){this.tabs=this.element.queryselectorall("[role=tab]"),this.tabs.foreach((t,s)=>{t.addeventlistener("click",()=>{this.setindex(s)})}),this.update()}getindex(){return this.state.getitem("index")}setindex(t){t===this.index||t<0||t>=this.tabs.length||this.state.setitem("index",t)}update(){const t=this.state.getitem("index");this.tabs.foreach((s,i)=>{i===t?s.setattribute("active",""):s.removeattribute("active")})}}class ce extends k{constructor(t){super({element:t.element,defaultstate:{active:t.active||!1}}),this.init()}init(){this.element.addeventlistener("click",()=>{const t=this.state.getitem("active");this.state.setitem("active",!t)}),this.update()}update(){this.state.getitem("active")?this.element.setattribute("active",""):this.element.removeattribute("active")}}function ue(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===object}function ne(e={},t={}){object.keys(t).foreach(s=>{typeof e[s]>"u"?e[s]=t[s]:ue(t[s])&&ue(e[s])&&object.keys(t[s]).length>0&&ne(e[s],t[s])})}const ye={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 b(){const e=typeof document<"u"?document:{};return ne(e,ye),e}const ne={document:ye,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 a(){const e=typeof window<"u"?window:{};return ne(e,ne),e}function fe(e){const t=e.__proto__;object.defineproperty(e,"__proto__",{get(){return t},set(s){t.__proto__=s}})}class g extends array{constructor(t){typeof t=="number"?super(t):(super(...t||[]),fe(this))}}function h(e=[]){const t=[];return e.foreach(s=>{array.isarray(s)?t.push(...h(s)):t.push(s)}),t}function we(e,t){return array.prototype.filter.call(e,t)}function de(e){const t=[];for(let s=0;s=0&&r.indexof(">")>=0){let a="div";r.indexof("s.split(" ")));return this.foreach(s=>{s.classlist.add(...t)}),this}function ge(...e){const t=h(e.map(s=>s.split(" ")));return this.foreach(s=>{s.classlist.remove(...t)}),this}function qe(...e){const t=h(e.map(s=>s.split(" ")));this.foreach(s=>{t.foreach(i=>{s.classlist.toggle(i)})})}function re(...e){const t=h(e.map(s=>s.split(" ")));return we(this,s=>t.filter(i=>s.classlist.contains(i)).length>0).length>0}function ve(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getattribute(e):void 0;for(let s=0;s=0;h-=1){const f=c[h];i&&f.listener===i||i&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===i?(d.removeeventlistener(l,f.proxylistener,n),c.splice(h,1)):i||(d.removeeventlistener(l,f.proxylistener,n),c.splice(h,1))}}}return this}function xe(...e){const t=a(),s=e[0].split(" "),i=e[1];for(let n=0;nc>0),l.dispatchevent(o),l.dom7eventdata=[],delete l.dom7eventdata}}}return this}function qe(e){const t=this;function s(i){i.target===this&&(e.call(this,i),t.off("transitionend",s))}return e&&t.on("transitionend",s),this}function ue(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetwidth+parsefloat(t.getpropertyvalue("margin-right"))+parsefloat(t.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null}function ze(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetheight+parsefloat(t.getpropertyvalue("margin-top"))+parsefloat(t.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null}function je(){if(this.length>0){const e=a(),t=b(),s=this[0],i=s.getboundingclientrect(),n=t.body,r=s.clienttop||n.clienttop||0,a=s.clientleft||n.clientleft||0,l=s===e?e.scrolly:s.scrolltop,o=s===e?e.scrollx:s.scrollleft;return{top:i.top+l-r,left:i.left+o-a}}return null}function et(){const e=a();return this[0]?e.getcomputedstyle(this[0],null):{}}function tt(e,t){const s=a();let i;if(arguments.length===1)if(typeof e=="string"){if(this[0])return s.getcomputedstyle(this[0],null).getpropertyvalue(e)}else{for(i=0;i{e.apply(t,[t,s])}),this):this}function it(e){const t=we(this,e);return b(t)}function nt(e){if(typeof e>"u")return this[0]?this[0].innerhtml:null;for(let t=0;t"u")return this[0]?this[0].textcontent.trim():null;for(let t=0;t"u")return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitmatchesselector)return i.webkitmatchesselector(e);if(i.msmatchesselector)return i.msmatchesselector(e);for(n=b(e),r=0;r"u")return this;const t=this.length;if(e>t-1)return b([]);if(e<0){const s=t+e;return s<0?b([]):b([this[s]])}return b([this[e]])}function dt(...e){let t;const s=b();for(let i=0;i=0;i-=1)this[s].insertbefore(n.childnodes[i],this[s].childnodes[0])}else if(e instanceof g)for(i=0;i0?e?this[0].nextelementsibling&&b(this[0].nextelementsibling).is(e)?b([this[0].nextelementsibling]):b([]):this[0].nextelementsibling?b([this[0].nextelementsibling]):b([]):b([])}function ft(e){const t=[];let s=this[0];if(!s)return b([]);for(;s.nextelementsibling;){const i=s.nextelementsibling;e?b(i).is(e)&&t.push(i):t.push(i),s=i}return b(t)}function pt(e){if(this.length>0){const t=this[0];return e?t.previouselementsibling&&b(t.previouselementsibling).is(e)?b([t.previouselementsibling]):b([]):t.previouselementsibling?b([t.previouselementsibling]):b([])}return b([])}function ht(e){const t=[];let s=this[0];if(!s)return b([]);for(;s.previouselementsibling;){const i=s.previouselementsibling;e?b(i).is(e)&&t.push(i):t.push(i),s=i}return b(t)}function mt(e){const t=[];for(let s=0;s"u"?b([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function bt(e){const t=[];for(let s=0;s{object.defineproperty(b.fn,e,{value:fe[e],writable:!0})});function wt(e){const t=e;object.keys(t).foreach(s=>{try{t[s]=null}catch{}try{delete t[s]}catch{}})}function y(e,t=0){return settimeout(e,t)}function v(){return date.now()}function ct(e){const t=a();let s;return t.getcomputedstyle&&(s=t.getcomputedstyle(e,null)),!s&&e.currentstyle&&(s=e.currentstyle),s||(s=e.style),s}function tt(e,t="x"){const s=a();let i,n,r;const a=ct(e);return s.webkitcssmatrix?(n=a.transform||a.webkittransform,n.split(",").length>6&&(n=n.split(", ").map(l=>l.replace(",",".")).join(", ")),r=new s.webkitcssmatrix(n==="none"?"":n)):(r=a.moztransform||a.otransform||a.mstransform||a.mstransform||a.transform||a.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.tostring().split(",")),t==="x"&&(s.webkitcssmatrix?n=r.m41:i.length===16?n=parsefloat(i[12]):n=parsefloat(i[4])),t==="y"&&(s.webkitcssmatrix?n=r.m42:i.length===16?n=parsefloat(i[13]):n=parsefloat(i[5])),n||0}function w(e){return typeof e=="object"&&e!==null&&e.constructor&&object.prototype.tostring.call(e).slice(8,-1)==="object"}function et(e){return typeof window<"u"&&typeof window.htmlelement<"u"?e instanceof htmlelement:e&&(e.nodetype===1||e.nodetype===11)}function d(...e){const t=object(e[0]),s=["__proto__","constructor","prototype"];for(let i=1;is.indexof(a)<0);for(let a=0,l=r.length;an?"next":"prev",d=(h,f)=>o==="next"&&h>=f||o==="prev"&&h<=f,c=()=>{a=new date().gettime(),r===null&&(r=a);const h=math.max(math.min((a-r)/l,1),0),f=.5-math.cos(h*math.pi)/2;let g=n+f*(t-n);if(d(g,t)&&(g=t),e.wrapperel.scrollto({[s]:g}),d(g,t)){e.wrapperel.style.overflow="hidden",e.wrapperel.style.scrollsnaptype="",settimeout(()=>{e.wrapperel.style.overflow="",e.wrapperel.scrollto({[s]:g})}),i.cancelanimationframe(e.cssmodeframeid);return}e.cssmodeframeid=i.requestanimationframe(c)};c()}let u;function xt(){const e=a(),t=b();return{smoothscroll:t.documentelement&&"scrollbehavior"in t.documentelement.style,touch:!!("ontouchstart"in e||e.documenttouch&&t instanceof e.documenttouch),passivelistener:function(){let i=!1;try{const n=object.defineproperty({},"passive",{get(){i=!0}});e.addeventlistener("testpassivelistener",null,n)}catch{}return i}(),gestures:function(){return"ongesturestart"in e}()}}function te(){return u||(u=xt()),u}let z;function mt({useragent:e}={}){const t=te(),s=a(),i=s.navigator.platform,n=e||s.navigator.useragent,r={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,o=n.match(/(android);?[\s\/]+([\d.]+)?/);let d=n.match(/(ipad).*os\s([\d_]+)/);const c=n.match(/(ipod)(.*os\s([\d_]+))?/),h=!d&&n.match(/(iphone\sos|ios)\s([\d_]+)/),f=i==="win32";let g=i==="macintel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&g&&t.touch&&v.indexof(`${a}x${l}`)>=0&&(d=n.match(/(version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),o&&!f&&(r.os="android",r.android=!0),(d||h||c)&&(r.os="ios",r.ios=!0),r}function kt(e={}){return z||(z=mt(e)),z}let j;function pt(){const e=a();function t(){const s=e.navigator.useragent.tolowercase();return s.indexof("safari")>=0&&s.indexof("chrome")<0&&s.indexof("android")<0}return{issafari:t(),iswebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(e.navigator.useragent)}}function lt(){return j||(j=pt()),j}function ot({swiper:e,on:t,emit:s}){const i=a();let n=null,r=null;const a=()=>{!e||e.destroyed||!e.initialized||(s("beforeresize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(n=new resizeobserver(c=>{r=i.requestanimationframe(()=>{const{width:h,height:f}=e;let g=h,v=f;c.foreach(({contentboxsize:u,contentrect:p,target:s})=>{s&&s!==e.el||(g=p?p.width:(u[0]||u).inlinesize,v=p?p.height:(u[0]||u).blocksize)}),(g!==h||v!==f)&&a()})}),n.observe(e.el))},o=()=>{r&&i.cancelanimationframe(r),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};t("init",()=>{if(e.params.resizeobserver&&typeof i.resizeobserver<"u"){l();return}i.addeventlistener("resize",a),i.addeventlistener("orientationchange",d)}),t("destroy",()=>{o(),i.removeeventlistener("resize",a),i.removeeventlistener("orientationchange",d)})}function at({swiper:e,extendparams:t,on:s,emit:i}){const n=[],r=a(),a=(d,c={})=>{const h=r.mutationobserver||r.webkitmutationobserver,f=new h(g=>{if(g.length===1){i("observerupdate",g[0]);return}const v=function(){i("observerupdate",g[0])};r.requestanimationframe?r.requestanimationframe(v):r.settimeout(v,0)});f.observe(d,{attributes:typeof c.attributes>"u"?!0:c.attributes,childlist:typeof c.childlist>"u"?!0:c.childlist,characterdata:typeof c.characterdata>"u"?!0:c.characterdata}),n.push(f)},l=()=>{if(!!e.params.observer){if(e.params.observeparents){const d=e.$el.parents();for(let c=0;c{n.foreach(d=>{d.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeparents:!1,observeslidechildren:!1}),s("init",l),s("destroy",o)}const $t={on(e,t,s){const i=this;if(!i.eventslisteners||i.destroyed||typeof t!="function")return i;const n=s?"unshift":"push";return e.split(" ").foreach(r=>{i.eventslisteners[r]||(i.eventslisteners[r]=[]),i.eventslisteners[r][n](t)}),i},once(e,t,s){const i=this;if(!i.eventslisteners||i.destroyed||typeof t!="function")return i;function n(...r){i.off(e,n),n.__emitterproxy&&delete n.__emitterproxy,t.apply(i,r)}return n.__emitterproxy=t,i.on(e,n,s)},onany(e,t){const s=this;if(!s.eventslisteners||s.destroyed||typeof e!="function")return s;const i=t?"unshift":"push";return s.eventsanylisteners.indexof(e)<0&&s.eventsanylisteners[i](e),s},offany(e){const t=this;if(!t.eventslisteners||t.destroyed||!t.eventsanylisteners)return t;const s=t.eventsanylisteners.indexof(e);return s>=0&&t.eventsanylisteners.splice(s,1),t},off(e,t){const s=this;return!s.eventslisteners||s.destroyed||!s.eventslisteners||e.split(" ").foreach(i=>{typeof t>"u"?s.eventslisteners[i]=[]:s.eventslisteners[i]&&s.eventslisteners[i].foreach((n,r)=>{(n===t||n.__emitterproxy&&n.__emitterproxy===t)&&s.eventslisteners[i].splice(r,1)})}),s},emit(...e){const t=this;if(!t.eventslisteners||t.destroyed||!t.eventslisteners)return t;let s,i,n;return typeof e[0]=="string"||array.isarray(e[0])?(s=e[0],i=e.slice(1,e.length),n=t):(s=e[0].events,i=e[0].data,n=e[0].context||t),i.unshift(n),(array.isarray(s)?s:s.split(" ")).foreach(a=>{t.eventsanylisteners&&t.eventsanylisteners.length&&t.eventsanylisteners.foreach(l=>{l.apply(n,[a,...i])}),t.eventslisteners&&t.eventslisteners[a]&&t.eventslisteners[a].foreach(l=>{l.apply(n,i)})}),t}};function bt(){const e=this;let t,s;const i=e.$el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=i[0].clientwidth,typeof e.params.height<"u"&&e.params.height!==null?s=e.params.height:s=i[0].clientheight,!(t===0&&e.ishorizontal()||s===0&&e.isvertical())&&(t=t-parseint(i.css("padding-left")||0,10)-parseint(i.css("padding-right")||0,10),s=s-parseint(i.css("padding-top")||0,10)-parseint(i.css("padding-bottom")||0,10),number.isnan(t)&&(t=0),number.isnan(s)&&(s=0),object.assign(e,{width:t,height:s,size:e.ishorizontal()?t:s}))}function it(){const e=this;function t(c){return e.ishorizontal()?c:{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"}[c]}function s(c,t){return parsefloat(c.getpropertyvalue(t(t))||0)}const i=e.params,{$wrapperel:n,size:r,rtltranslate:a,wrongrtl:l}=e,o=e.virtual&&i.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=n.children(`.${e.params.slideclass}`),h=o?e.virtual.slides.length:c.length;let f=[];const g=[],v=[];let u=i.slidesoffsetbefore;typeof u=="function"&&(u=i.slidesoffsetbefore.call(e));let p=i.slidesoffsetafter;typeof p=="function"&&(p=i.slidesoffsetafter.call(e));const s=e.snapgrid.length,y=e.slidesgrid.length;let w=i.spacebetween,e=-u,x=0,o=0;if(typeof r>"u")return;typeof w=="string"&&w.indexof("%")>=0&&(w=parsefloat(w.replace("%",""))/100*r),e.virtualsize=-w,a?c.css({marginleft:"",marginbottom:"",margintop:""}):c.css({marginright:"",marginbottom:"",margintop:""}),i.centeredslides&&i.cssmode&&(j(e.wrapperel,"--swiper-centered-offset-before",""),j(e.wrapperel,"--swiper-centered-offset-after",""));const f=i.grid&&i.grid.rows>1&&e.grid;f&&e.grid.initslides(h);let p;const z=i.slidesperview==="auto"&&i.breakpoints&&object.keys(i.breakpoints).filter(c=>typeof i.breakpoints[c].slidesperview<"u").length>0;for(let c=0;c1&&f.push(e.virtualsize-r)}if(f.length===0&&(f=[0]),i.spacebetween!==0){const c=e.ishorizontal()&&a?"marginleft":t("marginright");c.filter((t,m)=>i.cssmode?m!==c.length-1:!0).css({[c]:`${w}px`})}if(i.centeredslides&&i.centeredslidesbounds){let c=0;v.foreach(m=>{c+=m+(i.spacebetween?i.spacebetween:0)}),c-=i.spacebetween;const t=c-r;f=f.map(m=>m<0?-u:m>t?t+p:m)}if(i.centerinsufficientslides){let c=0;if(v.foreach(t=>{c+=t+(i.spacebetween?i.spacebetween:0)}),c-=i.spacebetween,c{f[i]=m-t}),g.foreach((m,i)=>{g[i]=m+t})}}if(object.assign(e,{slides:c,snapgrid:f,slidesgrid:g,slidessizesgrid:v}),i.centeredslides&&i.cssmode&&!i.centeredslidesbounds){j(e.wrapperel,"--swiper-centered-offset-before",`${-f[0]}px`),j(e.wrapperel,"--swiper-centered-offset-after",`${e.size/2-v[v.length-1]/2}px`);const c=-e.snapgrid[0],t=-e.slidesgrid[0];e.snapgrid=e.snapgrid.map(m=>m+c),e.slidesgrid=e.slidesgrid.map(m=>m+t)}if(h!==d&&e.emit("slideslengthchange"),f.length!==s&&(e.params.watchoverflow&&e.checkoverflow(),e.emit("snapgridlengthchange")),g.length!==y&&e.emit("slidesgridlengthchange"),i.watchslidesprogress&&e.updateslidesoffset(),!o&&!i.cssmode&&(i.effect==="slide"||i.effect==="fade")){const c=`${i.containermodifierclass}backface-hidden`,t=e.$el.hasclass(c);h<=i.maxbackfacehiddenslides?t||e.$el.addclass(c):t&&e.$el.removeclass(c)}}function nt(e){const t=this,s=[],i=t.virtual&&t.params.virtual.enabled;let n=0,r;typeof e=="number"?t.settransition(e):e===!0&&t.settransition(t.params.speed);const a=l=>i?t.slides.filter(o=>parseint(o.getattribute("data-swiper-slide-index"),10)===l)[0]:t.slides.eq(l)[0];if(t.params.slidesperview!=="auto"&&t.params.slidesperview>1)if(t.params.centeredslides)(t.visibleslides||b([])).each(l=>{s.push(l)});else for(r=0;rt.slides.length&&!i)break;s.push(a(l))}else s.push(a(t.activeindex));for(r=0;rn?l:n}(n||n===0)&&t.$wrapperel.css("height",`${n}px`)}function ft(){const e=this,t=e.slides;for(let s=0;s"u"&&t.updateslidesoffset();let a=-e;n&&(a=e),i.removeclass(s.slidevisibleclass),t.visibleslidesindexes=[],t.visibleslides=[];for(let l=0;l=0&&f1&&g<=t.size||f<=0&&g>=t.size)&&(t.visibleslides.push(o),t.visibleslidesindexes.push(l),i.eq(l).addclass(s.slidevisibleclass)),o.progress=n?-c:c,o.originalprogress=n?-h:h}t.visibleslides=b(t.visibleslides)}function zt(e){const t=this;if(typeof e>"u"){const d=t.rtltranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const s=t.params,i=t.maxtranslate()-t.mintranslate();let{progress:n,isbeginning:r,isend:a}=t;const l=r,o=a;i===0?(n=0,r=!0,a=!0):(n=(e-t.mintranslate())/i,r=n<=0,a=n>=1),object.assign(t,{progress:n,isbeginning:r,isend:a}),(s.watchslidesprogress||s.centeredslides&&s.autoheight)&&t.updateslidesprogress(e),r&&!l&&t.emit("reachbeginning toedge"),a&&!o&&t.emit("reachend toedge"),(l&&!r||o&&!a)&&t.emit("fromedge"),t.emit("progress",n)}function _t(){const e=this,{slides:t,params:s,$wrapperel:i,activeindex:n,realindex:r}=e,a=e.virtual&&s.virtual.enabled;t.removeclass(`${s.slideactiveclass} ${s.slidenextclass} ${s.slideprevclass} ${s.slideduplicateactiveclass} ${s.slideduplicatenextclass} ${s.slideduplicateprevclass}`);let l;a?l=e.$wrapperel.find(`.${s.slideclass}[data-swiper-slide-index="${n}"]`):l=t.eq(n),l.addclass(s.slideactiveclass),s.loop&&(l.hasclass(s.slideduplicateclass)?i.children(`.${s.slideclass}:not(.${s.slideduplicateclass})[data-swiper-slide-index="${r}"]`).addclass(s.slideduplicateactiveclass):i.children(`.${s.slideclass}.${s.slideduplicateclass}[data-swiper-slide-index="${r}"]`).addclass(s.slideduplicateactiveclass));let o=l.nextall(`.${s.slideclass}`).eq(0).addclass(s.slidenextclass);s.loop&&o.length===0&&(o=t.eq(0),o.addclass(s.slidenextclass));let d=l.prevall(`.${s.slideclass}`).eq(0).addclass(s.slideprevclass);s.loop&&d.length===0&&(d=t.eq(-1),d.addclass(s.slideprevclass)),s.loop&&(o.hasclass(s.slideduplicateclass)?i.children(`.${s.slideclass}:not(.${s.slideduplicateclass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicatenextclass):i.children(`.${s.slideclass}.${s.slideduplicateclass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicatenextclass),d.hasclass(s.slideduplicateclass)?i.children(`.${s.slideclass}:not(.${s.slideduplicateclass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicateprevclass):i.children(`.${s.slideclass}.${s.slideduplicateclass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicateprevclass)),e.emitslidesclasses()}function gt(e){const t=this,s=t.rtltranslate?t.translate:-t.translate,{slidesgrid:i,snapgrid:n,params:r,activeindex:a,realindex:l,snapindex:o}=t;let d=e,c;if(typeof d>"u"){for(let f=0;f=i[f]&&s=i[f]&&s=i[f]&&(d=f);r.normalizeslideindex&&(d<0||typeof d>"u")&&(d=0)}if(n.indexof(s)>=0)c=n.indexof(s);else{const f=math.min(r.slidespergroupskip,d);c=f+math.floor((d-f)/r.slidespergroup)}if(c>=n.length&&(c=n.length-1),d===a){c!==o&&(t.snapindex=c,t.emit("snapindexchange"));return}const h=parseint(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);object.assign(t,{snapindex:c,realindex:h,previousindex:a,activeindex:d}),t.emit("activeindexchange"),t.emit("snapindexchange"),l!==h&&t.emit("realindexchange"),(t.initialized||t.params.runcallbacksoninit)&&t.emit("slidechange")}function qt(e){const t=this,s=t.params,i=b(e).closest(`.${s.slideclass}`)[0];let n=!1,r;if(i){for(let a=0;ao?c=o:i&&er?a="next":n=o.length&&(p=o.length-1);const s=-o[p];if(l.normalizeslideindex)for(let w=0;w=x&&e=x&&e=x&&(a=w)}if(r.initialized&&a!==h&&(!r.allowslidenext&&sr.translate&&s>r.maxtranslate()&&(h||0)!==a))return!1;a!==(c||0)&&s&&r.emit("beforeslidechangestart"),r.updateprogress(s);let y;if(a>h?y="next":a{r.wrapperel.style.scrollsnaptype="",r._swiperimmediatevirtual=!1})}else{if(!r.support.smoothscroll)return ce({swiper:r,targetposition:e,side:w?"left":"top"}),!0;g.scrollto({[w?"left":"top"]:e,behavior:"smooth"})}return!0}return r.settransition(t),r.settranslate(s),r.updateactiveindex(a),r.updateslidesclasses(),r.emit("beforetransitionstart",t,i),r.transitionstart(s,y),t===0?r.transitionend(s,y):r.animating||(r.animating=!0,r.onslidetowrappertransitionend||(r.onslidetowrappertransitionend=function(e){!r||r.destroyed||e.target===this&&(r.$wrapperel[0].removeeventlistener("transitionend",r.onslidetowrappertransitionend),r.$wrapperel[0].removeeventlistener("webkittransitionend",r.onslidetowrappertransitionend),r.onslidetowrappertransitionend=null,delete r.onslidetowrappertransitionend,r.transitionend(s,y))}),r.$wrapperel[0].addeventlistener("transitionend",r.onslidetowrappertransitionend),r.$wrapperel[0].addeventlistener("webkittransitionend",r.onslidetowrappertransitionend)),!0}function es(e=0,t=this.params.speed,s=!0,i){if(typeof e=="string"){const a=parseint(e,10);if(!isfinite(a))throw new error(`the passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=a}const n=this;let r=e;return n.params.loop&&(r+=n.loopedslides),n.slideto(r,t,s,i)}function ts(e=this.params.speed,t=!0,s){const i=this,{animating:n,enabled:r,params:a}=i;if(!r)return i;let l=a.slidespergroup;a.slidesperview==="auto"&&a.slidespergroup===1&&a.slidespergroupauto&&(l=math.max(i.slidesperviewdynamic("current",!0),1));const o=i.activeindexh(p));let v=a[g.indexof(f)-1];if(typeof v>"u"&&n.cssmode){let p;a.foreach((s,y)=>{f>=s&&(p=y)}),typeof p<"u"&&(v=a[p>0?p-1:p])}let u=0;if(typeof v<"u"&&(u=l.indexof(v),u<0&&(u=i.activeindex-1),n.slidesperview==="auto"&&n.slidespergroup===1&&n.slidespergroupauto&&(u=u-i.slidesperviewdynamic("previous",!0)+1,u=math.max(u,0))),n.rewind&&i.isbeginning){const p=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideto(p,e,t,s)}return i.slideto(u,e,t,s)}function is(e=this.params.speed,t=!0,s){const i=this;return i.slideto(i.activeindex,e,t,s)}function ns(e=this.params.speed,t=!0,s,i=.5){const n=this;let r=n.activeindex;const a=math.min(n.params.slidespergroupskip,r),l=a+math.floor((r-a)/n.params.slidespergroup),o=n.rtltranslate?n.translate:-n.translate;if(o>=n.snapgrid[l]){const d=n.snapgrid[l],c=n.snapgrid[l+1];o-d>(c-d)*i&&(r+=n.params.slidespergroup)}else{const d=n.snapgrid[l-1],c=n.snapgrid[l];o-d<=(c-d)*i&&(r-=n.params.slidespergroup)}return r=math.max(r,0),r=math.min(r,n.slidesgrid.length-1),n.slideto(r,e,t,s)}function rs(){const e=this,{params:t,$wrapperel:s}=e,i=t.slidesperview==="auto"?e.slidesperviewdynamic():t.slidesperview;let n=e.clickedindex,r;if(t.loop){if(e.animating)return;r=parseint(b(e.clickedslide).attr("data-swiper-slide-index"),10),t.centeredslides?ne.slides.length-e.loopedslides+i/2?(e.loopfix(),n=s.children(`.${t.slideclass}[data-swiper-slide-index="${r}"]:not(.${t.slideduplicateclass})`).eq(0).index(),y(()=>{e.slideto(n)})):e.slideto(n):n>e.slides.length-i?(e.loopfix(),n=s.children(`.${t.slideclass}[data-swiper-slide-index="${r}"]:not(.${t.slideduplicateclass})`).eq(0).index(),y(()=>{e.slideto(n)})):e.slideto(n)}else e.slideto(n)}const as={slideto:jt,slidetoloop:es,slidenext:ts,slideprev:ss,slidereset:is,slidetoclosest:ns,slidetoclickedslide:rs};function os(){const e=this,t=b(),{params:s,$wrapperel:i}=e,n=i.children().length>0?b(i.children()[0].parentnode):i;n.children(`.${s.slideclass}.${s.slideduplicateclass}`).remove();let r=n.children(`.${s.slideclass}`);if(s.loopfillgroupwithblank){const o=s.slidespergroup-r.length%s.slidespergroup;if(o!==s.slidespergroup){for(let d=0;dr.length&&e.params.loopedslideslimit&&(e.loopedslides=r.length);const a=[],l=[];r.each((o,d)=>{b(o).attr("data-swiper-slide-index",d)});for(let o=0;o=0;o-=1)n.prepend(b(a[o].clonenode(!0)).addclass(s.slideduplicateclass))}function ls(){const e=this;e.emit("beforeloopfix");const{activeindex:t,slides:s,loopedslides:i,allowslideprev:n,allowslidenext:r,snapgrid:a,rtltranslate:l}=e;let o;e.allowslideprev=!0,e.allowslidenext=!0;const c=-a[t]-e.gettranslate();t=s.length-i&&(o=-s.length+t+i,o+=i,e.slideto(o,0,!1,!0)&&c!==0&&e.settranslate((l?-e.translate:e.translate)-c)),e.allowslideprev=n,e.allowslidenext=r,e.emit("loopfix")}function ds(){const e=this,{$wrapperel:t,params:s,slides:i}=e;t.children(`.${s.slideclass}.${s.slideduplicateclass},.${s.slideclass}.${s.slideblankclass}`).remove(),i.removeattr("data-swiper-slide-index")}const cs={loopcreate:os,loopfix:ls,loopdestroy:ds};function us(e){const t=this;if(t.support.touch||!t.params.simulatetouch||t.params.watchoverflow&&t.islocked||t.params.cssmode)return;const s=t.params.toucheventstarget==="container"?t.el:t.wrapperel;s.style.cursor="move",s.style.cursor=e?"grabbing":"grab"}function fs(){const e=this;e.support.touch||e.params.watchoverflow&&e.islocked||e.params.cssmode||(e[e.params.toucheventstarget==="container"?"el":"wrapperel"].style.cursor="")}const ps={setgrabcursor:us,unsetgrabcursor:fs};function hs(e,t=this){function s(i){if(!i||i===b()||i===a())return null;i.assignedslot&&(i=i.assignedslot);const n=i.closest(e);return!n&&!i.getrootnode?null:n||s(i.getrootnode().host)}return s(t)}function ms(e){const t=this,s=b(),i=a(),n=t.toucheventsdata,{params:r,touches:a,enabled:l}=t;if(!l||t.animating&&r.preventinteractionontransition)return;!t.animating&&r.cssmode&&r.loop&&t.loopfix();let o=e;o.originalevent&&(o=o.originalevent);let d=b(o.target);if(r.toucheventstarget==="wrapper"&&!d.closest(t.wrapperel).length||(n.istouchevent=o.type==="touchstart",!n.istouchevent&&"which"in o&&o.which===3)||!n.istouchevent&&"button"in o&&o.button>0||n.istouched&&n.ismoved)return;const c=!!r.noswipingclass&&r.noswipingclass!=="",h=e.composedpath?e.composedpath():e.path;c&&o.target&&o.target.shadowroot&&h&&(d=b(h[0]));const f=r.noswipingselector?r.noswipingselector:`.${r.noswipingclass}`,g=!!(o.target&&o.target.shadowroot);if(r.noswiping&&(g?hs(f,d[0]):d.closest(f)[0])){t.allowclick=!0;return}if(r.swipehandler&&!d.closest(r.swipehandler)[0])return;a.currentx=o.type==="touchstart"?o.targettouches[0].pagex:o.pagex,a.currenty=o.type==="touchstart"?o.targettouches[0].pagey:o.pagey;const v=a.currentx,u=a.currenty,p=r.edgeswipedetection||r.iosedgeswipedetection,s=r.edgeswipethreshold||r.iosedgeswipethreshold;if(p&&(v<=s||v>=i.innerwidth-s))if(p==="prevent")e.preventdefault();else return;if(object.assign(n,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),a.startx=v,a.starty=u,n.touchstarttime=v(),t.allowclick=!0,t.updatesize(),t.swipedirection=void 0,r.threshold>0&&(n.allowthresholdmove=!1),o.type!=="touchstart"){let y=!0;d.is(n.focusableelements)&&(y=!1,d[0].nodename==="select"&&(n.istouched=!1)),s.activeelement&&b(s.activeelement).is(n.focusableelements)&&s.activeelement!==d[0]&&s.activeelement.blur();const w=y&&t.allowtouchmove&&r.touchstartpreventdefault;(r.touchstartforcepreventdefault||w)&&!d[0].iscontenteditable&&o.preventdefault()}t.params.freemode&&t.params.freemode.enabled&&t.freemode&&t.animating&&!r.cssmode&&t.freemode.ontouchstart(),t.emit("touchstart",o)}function gs(e){const t=b(),s=this,i=s.toucheventsdata,{params:n,touches:r,rtltranslate:a,enabled:l}=s;if(!l)return;let o=e;if(o.originalevent&&(o=o.originalevent),!i.istouched){i.startmoving&&i.isscrolling&&s.emit("touchmoveopposite",o);return}if(i.istouchevent&&o.type!=="touchmove")return;const d=o.type==="touchmove"&&o.targettouches&&(o.targettouches[0]||o.changedtouches[0]),c=o.type==="touchmove"?d.pagex:o.pagex,h=o.type==="touchmove"?d.pagey:o.pagey;if(o.preventedbynestedswiper){r.startx=c,r.starty=h;return}if(!s.allowtouchmove){b(o.target).is(i.focusableelements)||(s.allowclick=!1),i.istouched&&(object.assign(r,{startx:c,starty:h,currentx:c,currenty:h}),i.touchstarttime=v());return}if(i.istouchevent&&n.touchreleaseonedges&&!n.loop){if(s.isvertical()){if(hr.starty&&s.translate>=s.mintranslate()){i.istouched=!1,i.ismoved=!1;return}}else if(cr.startx&&s.translate>=s.mintranslate())return}if(i.istouchevent&&t.activeelement&&o.target===t.activeelement&&b(o.target).is(i.focusableelements)){i.ismoved=!0,s.allowclick=!1;return}if(i.allowtouchcallbacks&&s.emit("touchmove",o),o.targettouches&&o.targettouches.length>1)return;r.currentx=c,r.currenty=h;const f=r.currentx-r.startx,g=r.currenty-r.starty;if(s.params.threshold&&math.sqrt(f**2+g**2)"u"){let s;s.ishorizontal()&&r.currenty===r.starty||s.isvertical()&&r.currentx===r.startx?i.isscrolling=!1:f*f+g*g>=25&&(s=math.atan2(math.abs(g),math.abs(f))*180/math.pi,i.isscrolling=s.ishorizontal()?s>n.touchangle:90-s>n.touchangle)}if(i.isscrolling&&s.emit("touchmoveopposite",o),typeof i.startmoving>"u"&&(r.currentx!==r.startx||r.currenty!==r.starty)&&(i.startmoving=!0),i.isscrolling){i.istouched=!1;return}if(!i.startmoving)return;s.allowclick=!1,!n.cssmode&&o.cancelable&&o.preventdefault(),n.touchmovestoppropagation&&!n.nested&&o.stoppropagation(),i.ismoved||(n.loop&&!n.cssmode&&s.loopfix(),i.starttranslate=s.gettranslate(),s.settransition(0),s.animating&&s.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,n.grabcursor&&(s.allowslidenext===!0||s.allowslideprev===!0)&&s.setgrabcursor(!0),s.emit("sliderfirstmove",o)),s.emit("slidermove",o),i.ismoved=!0;let v=s.ishorizontal()?f:g;r.diff=v,v*=n.touchratio,a&&(v=-v),s.swipedirection=v>0?"prev":"next",i.currenttranslate=v+i.starttranslate;let u=!0,p=n.resistanceratio;if(n.touchreleaseonedges&&(p=0),v>0&&i.currenttranslate>s.mintranslate()?(u=!1,n.resistance&&(i.currenttranslate=s.mintranslate()-1+(-s.mintranslate()+i.starttranslate+v)**p)):v<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),!s.allowslideprev&&!s.allowslidenext&&(i.currenttranslate=i.starttranslate),n.threshold>0)if(math.abs(v)>n.threshold||i.allowthresholdmove){if(!i.allowthresholdmove){i.allowthresholdmove=!0,r.startx=r.currentx,r.starty=r.currenty,i.currenttranslate=i.starttranslate,r.diff=s.ishorizontal()?r.currentx-r.startx:r.currenty-r.starty;return}}else{i.currenttranslate=i.starttranslate;return}!n.followfinger||n.cssmode||((n.freemode&&n.freemode.enabled&&s.freemode||n.watchslidesprogress)&&(s.updateactiveindex(),s.updateslidesclasses()),s.params.freemode&&n.freemode.enabled&&s.freemode&&s.freemode.ontouchmove(),s.updateprogress(i.currenttranslate),s.settranslate(i.currenttranslate))}function vs(e){const t=this,s=t.toucheventsdata,{params:i,touches:n,rtltranslate:r,slidesgrid:a,enabled:l}=t;if(!l)return;let o=e;if(o.originalevent&&(o=o.originalevent),s.allowtouchcallbacks&&t.emit("touchend",o),s.allowtouchcallbacks=!1,!s.istouched){s.ismoved&&i.grabcursor&&t.setgrabcursor(!1),s.ismoved=!1,s.startmoving=!1;return}i.grabcursor&&s.ismoved&&s.istouched&&(t.allowslidenext===!0||t.allowslideprev===!0)&&t.setgrabcursor(!1);const d=v(),c=d-s.touchstarttime;if(t.allowclick){const y=o.path||o.composedpath&&o.composedpath();t.updateclickedslide(y&&y[0]||o.target),t.emit("tap click",o),c<300&&d-s.lastclicktime<300&&t.emit("doubletap doubleclick",o)}if(s.lastclicktime=v(),y(()=>{t.destroyed||(t.allowclick=!0)}),!s.istouched||!s.ismoved||!t.swipedirection||n.diff===0||s.currenttranslate===s.starttranslate){s.istouched=!1,s.ismoved=!1,s.startmoving=!1;return}s.istouched=!1,s.ismoved=!1,s.startmoving=!1;let h;if(i.followfinger?h=r?t.translate:-t.translate:h=-s.currenttranslate,i.cssmode)return;if(t.params.freemode&&i.freemode.enabled){t.freemode.ontouchend({currentpos:h});return}let f=0,g=t.slidessizesgrid[0];for(let y=0;y=a[y]&&h=a[y]&&(f=y,g=a[a.length-1]-a[a.length-2])}let v=null,u=null;i.rewind&&(t.isbeginning?u=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isend&&(v=0));const p=(h-a[f])/g,s=fi.longswipesms){if(!i.longswipes){t.slideto(t.activeindex);return}t.swipedirection==="next"&&(p>=i.longswipesratio?t.slideto(i.rewind&&t.isend?v:f+s):t.slideto(f)),t.swipedirection==="prev"&&(p>1-i.longswipesratio?t.slideto(f+s):u!==null&&p<0&&math.abs(p)>i.longswipesratio?t.slideto(u):t.slideto(f))}else{if(!i.shortswipes){t.slideto(t.activeindex);return}t.navigation&&(o.target===t.navigation.nextel||o.target===t.navigation.prevel)?o.target===t.navigation.nextel?t.slideto(f+s):t.slideto(f):(t.swipedirection==="next"&&t.slideto(v!==null?v:f+s),t.swipedirection==="prev"&&t.slideto(u!==null?u:f))}}function pe(){const e=this,{params:t,el:s}=e;if(s&&s.offsetwidth===0)return;t.breakpoints&&e.setbreakpoint();const{allowslidenext:i,allowslideprev:n,snapgrid:r}=e;e.allowslidenext=!0,e.allowslideprev=!0,e.updatesize(),e.updateslides(),e.updateslidesclasses(),(t.slidesperview==="auto"||t.slidesperview>1)&&e.isend&&!e.isbeginning&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowslideprev=n,e.allowslidenext=i,e.params.watchoverflow&&r!==e.snapgrid&&e.checkoverflow()}function bs(e){const t=this;!t.enabled||t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))}function ss(){const e=this,{wrapperel:t,rtltranslate:s,enabled:i}=e;if(!i)return;e.previoustranslate=e.translate,e.ishorizontal()?e.translate=-t.scrollleft:e.translate=-t.scrolltop,e.translate===0&&(e.translate=0),e.updateactiveindex(),e.updateslidesclasses();let n;const r=e.maxtranslate()-e.mintranslate();r===0?n=0:n=(e.translate-e.mintranslate())/r,n!==e.progress&&e.updateprogress(s?-e.translate:e.translate),e.emit("settranslate",e.translate,!1)}let he=!1;function ys(){}const xe=(e,t)=>{const s=b(),{params:i,touchevents:n,el:r,wrapperel:a,device:l,support:o}=e,d=!!i.nested,c=t==="on"?"addeventlistener":"removeeventlistener",h=t;if(!o.touch)r[c](n.start,e.ontouchstart,!1),s[c](n.move,e.ontouchmove,d),s[c](n.end,e.ontouchend,!1);else{const f=n.start==="touchstart"&&o.passivelistener&&i.passivelisteners?{passive:!0,capture:!1}:!1;r[c](n.start,e.ontouchstart,f),r[c](n.move,e.ontouchmove,o.passivelistener?{passive:!1,capture:d}:d),r[c](n.end,e.ontouchend,f),n.cancel&&r[c](n.cancel,e.ontouchend,f)}(i.preventclicks||i.preventclickspropagation)&&r[c]("click",e.onclick,!0),i.cssmode&&a[c]("scroll",e.onscroll),i.updateonwindowresize?e[h](l.ios||l.android?"resize orientationchange observerupdate":"resize observerupdate",pe,!0):e[h]("observerupdate",pe,!0)};function ws(){const e=this,t=b(),{params:s,support:i}=e;e.ontouchstart=ms.bind(e),e.ontouchmove=gs.bind(e),e.ontouchend=vs.bind(e),s.cssmode&&(e.onscroll=ss.bind(e)),e.onclick=bs.bind(e),i.touch&&!he&&(t.addeventlistener("touchstart",ys),he=!0),xe(e,"on")}function cs(){xe(this,"off")}const ts={attachevents:ws,detachevents:cs},me=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function es(){const e=this,{activeindex:t,initialized:s,loopedslides:i=0,params:n,$el:r}=e,a=n.breakpoints;if(!a||a&&object.keys(a).length===0)return;const l=e.getbreakpoint(a,e.params.breakpointsbase,e.el);if(!l||e.currentbreakpoint===l)return;const d=(l in a?a[l]:void 0)||e.originalparams,c=me(e,n),h=me(e,d),f=n.enabled;c&&!h?(r.removeclass(`${n.containermodifierclass}grid ${n.containermodifierclass}grid-column`),e.emitcontainerclasses()):!c&&h&&(r.addclass(`${n.containermodifierclass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&n.grid.fill==="column")&&r.addclass(`${n.containermodifierclass}grid-column`),e.emitcontainerclasses()),["navigation","pagination","scrollbar"].foreach(p=>{const s=n[p]&&n[p].enabled,y=d[p]&&d[p].enabled;s&&!y&&e[p].disable(),!s&&y&&e[p].enable()});const g=d.direction&&d.direction!==n.direction,v=n.loop&&(d.slidesperview!==n.slidesperview||g);g&&s&&e.changedirection(),d(e.params,d);const u=e.params.enabled;object.assign(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),f&&!u?e.disable():!f&&u&&e.enable(),e.currentbreakpoint=l,e.emit("_beforebreakpoint",d),v&&s&&(e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(t-i+e.loopedslides,0,!1)),e.emit("breakpoint",d)}function xs(e,t="window",s){if(!e||t==="container"&&!s)return;let i=!1;const n=a(),r=t==="window"?n.innerheight:s.clientheight,a=object.keys(e).map(l=>{if(typeof l=="string"&&l.indexof("@")===0){const o=parsefloat(l.substr(1));return{value:r*o,point:l}}return{value:l,point:l}});a.sort((l,o)=>parseint(l.value,10)-parseint(o.value,10));for(let l=0;l{typeof i=="object"?object.keys(i).foreach(n=>{i[n]&&s.push(t+n)}):typeof i=="string"&&s.push(t+i)}),s}function ps(){const e=this,{classnames:t,params:s,rtl:i,$el:n,device:r,support:a}=e,l=ks(["initialized",s.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freemode&&s.freemode.enabled},{autoheight:s.autoheight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&s.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":s.cssmode},{centered:s.cssmode&&s.centeredslides},{"watch-progress":s.watchslidesprogress}],s.containermodifierclass);t.push(...l),n.addclass([...t].join(" ")),e.emitcontainerclasses()}function ls(){const e=this,{$el:t,classnames:s}=e;t.removeclass(s.join(" ")),e.emitcontainerclasses()}const os={addclasses:ps,removeclasses:ls};function as(e,t,s,i,n,r){const a=a();let l;function o(){r&&r()}!b(e).parent("picture")[0]&&(!e.complete||!n)&&t?(l=new a.image,l.onload=o,l.onerror=o,i&&(l.sizes=i),s&&(l.srcset=s),t&&(l.src=t)):o()}function $s(){const e=this;e.imagestoload=e.$el.find("img");function t(){typeof e>"u"||e===null||!e||e.destroyed||(e.imagesloaded!==void 0&&(e.imagesloaded+=1),e.imagesloaded===e.imagestoload.length&&(e.params.updateonimagesready&&e.update(),e.emit("imagesready")))}for(let s=0;sr}else e.islocked=e.snapgrid.length===1;s.allowslidenext===!0&&(e.allowslidenext=!e.islocked),s.allowslideprev===!0&&(e.allowslideprev=!e.islocked),t&&t!==e.islocked&&(e.isend=!1),t!==e.islocked&&e.emit(e.islocked?"lock":"unlock")}const ns={checkoverflow:is},ge={init:!0,direction:"horizontal",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:0,touchmovestoppropagation:!1,touchstartpreventdefault:!0,touchstartforcepreventdefault:!1,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopedslideslimit:!0,loopfillgroupwithblank:!1,looppreventsslide:!0,rewind:!1,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",noswipingselector:null,passivelisteners:!0,maxbackfacehiddenslides:10,containermodifierclass:"swiper-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0,_emitclasses:!1};function fs(e,t){return function(i={}){const n=object.keys(i)[0],r=i[n];if(typeof r!="object"||r===null){d(t,i);return}if(["navigation","pagination","scrollbar"].indexof(n)>=0&&e[n]===!0&&(e[n]={auto:!0}),!(n in e&&"enabled"in r)){d(t,i);return}e[n]===!0&&(e[n]={enabled:!0}),typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),d(t,i)}}const ee={eventsemitter:$t,update:rt,translate:kt,transition:zt,slide:as,loop:cs,grabcursor:ps,events:ts,breakpoints:ms,checkoverflow:ns,classes:os,images:bs},te={};class ${constructor(...t){let s,i;if(t.length===1&&t[0].constructor&&object.prototype.tostring.call(t[0]).slice(8,-1)==="object"?i=t[0]:[s,i]=t,i||(i={}),i=d({},i),s&&!i.el&&(i.el=s),i.el&&b(i.el).length>1){const l=[];return b(i.el).each(o=>{const d=d({},i,{el:o});l.push(new $(d))}),l}const n=this;n.__swiper__=!0,n.support=te(),n.device=kt({useragent:i.useragent}),n.browser=lt(),n.eventslisteners={},n.eventsanylisteners=[],n.modules=[...n.__modules__],i.modules&&array.isarray(i.modules)&&n.modules.push(...i.modules);const r={};n.modules.foreach(l=>{l({swiper:n,extendparams:fs(i,r),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const a=d({},ge,r);return n.params=d({},a,te,i),n.originalparams=d({},n.params),n.passedparams=d({},i),n.params&&n.params.on&&object.keys(n.params.on).foreach(l=>{n.on(l,n.params.on[l])}),n.params&&n.params.onany&&n.onany(n.params.onany),n.$=b,object.assign(n,{enabled:n.params.enabled,el:s,classnames:[],slides:b(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal(){return n.params.direction==="horizontal"},isvertical(){return n.params.direction==="vertical"},activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:n.params.allowslidenext,allowslideprev:n.params.allowslideprev,touchevents:function(){const o=["touchstart","touchmove","touchend","touchcancel"],d=["pointerdown","pointermove","pointerup"];return n.toucheventstouch={start:o[0],move:o[1],end:o[2],cancel:o[3]},n.toucheventsdesktop={start:d[0],move:d[1],end:d[2]},n.support.touch||!n.params.simulatetouch?n.toucheventstouch:n.toucheventsdesktop}(),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:n.params.focusableelements,lastclicktime:v(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:n.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabcursor&&t.setgrabcursor(),t.emit("enable"))}disable(){const t=this;!t.enabled||(t.enabled=!1,t.params.grabcursor&&t.unsetgrabcursor(),t.emit("disable"))}setprogress(t,s){const i=this;t=math.min(math.max(t,0),1);const n=i.mintranslate(),a=(i.maxtranslate()-n)*t+n;i.translateto(a,typeof s>"u"?0:s),i.updateactiveindex(),i.updateslidesclasses()}emitcontainerclasses(){const t=this;if(!t.params._emitclasses||!t.el)return;const s=t.el.classname.split(" ").filter(i=>i.indexof("swiper")===0||i.indexof(t.params.containermodifierclass)===0);t.emit("_containerclasses",s.join(" "))}getslideclasses(t){const s=this;return s.destroyed?"":t.classname.split(" ").filter(i=>i.indexof("swiper-slide")===0||i.indexof(s.params.slideclass)===0).join(" ")}emitslidesclasses(){const t=this;if(!t.params._emitclasses||!t.el)return;const s=[];t.slides.each(i=>{const n=t.getslideclasses(i);s.push({slideel:i,classnames:n}),t.emit("_slideclass",i,n)}),t.emit("_slideclasses",s)}slidesperviewdynamic(t="current",s=!1){const i=this,{params:n,slides:r,slidesgrid:a,slidessizesgrid:l,size:o,activeindex:d}=i;let c=1;if(n.centeredslides){let h=r[d].swiperslidesize,f;for(let g=d+1;go&&(f=!0));for(let g=d-1;g>=0;g-=1)r[g]&&!f&&(h+=r[g].swiperslidesize,c+=1,h>o&&(f=!0))}else if(t==="current")for(let h=d+1;h=0;h-=1)a[d]-a[h]1)&&t.isend&&!t.params.centeredslides?r=t.slideto(t.slides.length-1,0,!1,!0):r=t.slideto(t.activeindex,0,!1,!0),r||n()),i.watchoverflow&&s!==t.snapgrid&&t.checkoverflow(),t.emit("update")}changedirection(t,s=!0){const i=this,n=i.params.direction;return t||(t=n==="horizontal"?"vertical":"horizontal"),t===n||t!=="horizontal"&&t!=="vertical"||(i.$el.removeclass(`${i.params.containermodifierclass}${n}`).addclass(`${i.params.containermodifierclass}${t}`),i.emitcontainerclasses(),i.params.direction=t,i.slides.each(r=>{t==="vertical"?r.style.width="":r.style.height=""}),i.emit("changedirection"),s&&i.update()),i}changelanguagedirection(t){const s=this;s.rtl&&t==="rtl"||!s.rtl&&t==="ltr"||(s.rtl=t==="rtl",s.rtltranslate=s.params.direction==="horizontal"&&s.rtl,s.rtl?(s.$el.addclass(`${s.params.containermodifierclass}rtl`),s.el.dir="rtl"):(s.$el.removeclass(`${s.params.containermodifierclass}rtl`),s.el.dir="ltr"),s.update())}mount(t){const s=this;if(s.mounted)return!0;const i=b(t||s.params.el);if(t=i[0],!t)return!1;t.swiper=s;const n=()=>`.${(s.params.wrapperclass||"").trim().split(" ").join(".")}`;let a=(()=>{if(t&&t.shadowroot&&t.shadowroot.queryselector){const l=b(t.shadowroot.queryselector(n()));return l.children=o=>i.children(o),l}return i.children?i.children(n()):b(i).children(n())})();if(a.length===0&&s.params.createelements){const o=b().createelement("div");a=b(o),o.classname=s.params.wrapperclass,i.append(o),i.children(`.${s.params.slideclass}`).each(d=>{a.append(d)})}return object.assign(s,{$el:i,el:t,$wrapperel:a,wrapperel:a[0],mounted:!0,rtl:t.dir.tolowercase()==="rtl"||i.css("direction")==="rtl",rtltranslate:s.params.direction==="horizontal"&&(t.dir.tolowercase()==="rtl"||i.css("direction")==="rtl"),wrongrtl:a.css("display")==="-webkit-box"}),!0}init(t){const s=this;return s.initialized||s.mount(t)===!1||(s.emit("beforeinit"),s.params.breakpoints&&s.setbreakpoint(),s.addclasses(),s.params.loop&&s.loopcreate(),s.updatesize(),s.updateslides(),s.params.watchoverflow&&s.checkoverflow(),s.params.grabcursor&&s.enabled&&s.setgrabcursor(),s.params.preloadimages&&s.preloadimages(),s.params.loop?s.slideto(s.params.initialslide+s.loopedslides,0,s.params.runcallbacksoninit,!1,!0):s.slideto(s.params.initialslide,0,s.params.runcallbacksoninit,!1,!0),s.attachevents(),s.initialized=!0,s.emit("init"),s.emit("afterinit")),s}destroy(t=!0,s=!0){const i=this,{params:n,$el:r,$wrapperel:a,slides:l}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforedestroy"),i.initialized=!1,i.detachevents(),n.loop&&i.loopdestroy(),s&&(i.removeclasses(),r.removeattr("style"),a.removeattr("style"),l&&l.length&&l.removeclass([n.slidevisibleclass,n.slideactiveclass,n.slidenextclass,n.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),i.emit("destroy"),object.keys(i.eventslisteners).foreach(o=>{i.off(o)}),t!==!1&&(i.$el[0].swiper=null,wt(i)),i.destroyed=!0),null}static extenddefaults(t){d(te,t)}static get extendeddefaults(){return te}static get defaults(){return ge}static installmodule(t){$.prototype.__modules__||($.prototype.__modules__=[]);const s=$.prototype.__modules__;typeof t=="function"&&s.indexof(t)<0&&s.push(t)}static use(t){return array.isarray(t)?(t.foreach(s=>$.installmodule(s)),$):($.installmodule(t),$)}}object.keys(ee).foreach(e=>{object.keys(ee[e]).foreach(t=>{$.prototype[t]=ee[e][t]})});$.use([ot,at]);function me(e,t,s,i){const n=b();return e.params.createelements&&object.keys(i).foreach(r=>{if(!s[r]&&s.auto===!0){let a=e.$el.children(`.${i[r]}`)[0];a||(a=n.createelement("div"),a.classname=i[r],e.$el.append(a)),s[r]=a,t[r]=a}}),s}function r({swiper:e,extendparams:t,on:s,emit:i}){t({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,$nextel:null,prevel:null,$prevel:null};function n(g){let v;return g&&(v=b(g),e.params.uniquenavelements&&typeof g=="string"&&v.length>1&&e.$el.find(g).length===1&&(v=e.$el.find(g))),v}function r(g,v){const u=e.params.navigation;g&&g.length>0&&(g[v?"addclass":"removeclass"](u.disabledclass),g[0]&&g[0].tagname==="button"&&(g[0].disabled=v),e.params.watchoverflow&&e.enabled&&g[e.islocked?"addclass":"removeclass"](u.lockclass))}function a(){if(e.params.loop)return;const{$nextel:g,$prevel:v}=e.navigation;r(v,e.isbeginning&&!e.params.rewind),r(g,e.isend&&!e.params.rewind)}function l(g){g.preventdefault(),!(e.isbeginning&&!e.params.loop&&!e.params.rewind)&&(e.slideprev(),i("navigationprev"))}function o(g){g.preventdefault(),!(e.isend&&!e.params.loop&&!e.params.rewind)&&(e.slidenext(),i("navigationnext"))}function d(){const g=e.params.navigation;if(e.params.navigation=me(e,e.originalparams.navigation,e.params.navigation,{nextel:"swiper-button-next",prevel:"swiper-button-prev"}),!(g.nextel||g.prevel))return;const v=n(g.nextel),u=n(g.prevel);v&&v.length>0&&v.on("click",o),u&&u.length>0&&u.on("click",l),object.assign(e.navigation,{$nextel:v,nextel:v&&v[0],$prevel:u,prevel:u&&u[0]}),e.enabled||(v&&v.addclass(g.lockclass),u&&u.addclass(g.lockclass))}function c(){const{$nextel:g,$prevel:v}=e.navigation;g&&g.length&&(g.off("click",o),g.removeclass(e.params.navigation.disabledclass)),v&&v.length&&(v.off("click",l),v.removeclass(e.params.navigation.disabledclass))}s("init",()=>{e.params.navigation.enabled===!1?f():(d(),a())}),s("toedge fromedge lock unlock",()=>{a()}),s("destroy",()=>{c()}),s("enable disable",()=>{const{$nextel:g,$prevel:v}=e.navigation;g&&g[e.enabled?"removeclass":"addclass"](e.params.navigation.lockclass),v&&v[e.enabled?"removeclass":"addclass"](e.params.navigation.lockclass)}),s("click",(g,v)=>{const{$nextel:u,$prevel:p}=e.navigation,s=v.target;if(e.params.navigation.hideonclick&&!b(s).is(p)&&!b(s).is(u)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;let y;u?y=u.hasclass(e.params.navigation.hiddenclass):p&&(y=p.hasclass(e.params.navigation.hiddenclass)),i(y===!0?"navigationshow":"navigationhide"),u&&u.toggleclass(e.params.navigation.hiddenclass),p&&p.toggleclass(e.params.navigation.hiddenclass)}});const h=()=>{e.$el.removeclass(e.params.navigation.navigationdisabledclass),d(),a()},f=()=>{e.$el.addclass(e.params.navigation.navigationdisabledclass),c()};object.assign(e.navigation,{enable:h,disable:f,update:a,init:d,destroy:c})}function q(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function se({swiper:e,extendparams:t,on:s,emit:i}){const n="swiper-pagination";t({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:u=>u,formatfractiontotal:u=>u,bulletclass:`${n}-bullet`,bulletactiveclass:`${n}-bullet-active`,modifierclass:`${n}-`,currentclass:`${n}-current`,totalclass:`${n}-total`,hiddenclass:`${n}-hidden`,progressbarfillclass:`${n}-progressbar-fill`,progressbaroppositeclass:`${n}-progressbar-opposite`,clickableclass:`${n}-clickable`,lockclass:`${n}-lock`,horizontalclass:`${n}-horizontal`,verticalclass:`${n}-vertical`,paginationdisabledclass:`${n}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let r,a=0;function l(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0}function o(u,p){const{bulletactiveclass:s}=e.params.pagination;u[p]().addclass(`${s}-${p}`)[p]().addclass(`${s}-${p}-${p}`)}function d(){const u=e.rtl,p=e.params.pagination;if(l())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,y=e.pagination.$el;let w;const e=e.params.loop?math.ceil((s-e.loopedslides*2)/e.params.slidespergroup):e.snapgrid.length;if(e.params.loop?(w=math.ceil((e.activeindex-e.loopedslides)/e.params.slidespergroup),w>s-1-e.loopedslides*2&&(w-=s-e.loopedslides*2),w>e-1&&(w-=e),w<0&&e.params.paginationtype!=="bullets"&&(w=e+w)):typeof e.snapindex<"u"?w=e.snapindex:w=e.activeindex||0,p.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const x=e.pagination.bullets;let o,f,p;if(p.dynamicbullets&&(r=x.eq(0)[e.ishorizontal()?"outerwidth":"outerheight"](!0),y.css(e.ishorizontal()?"width":"height",`${r*(p.dynamicmainbullets+4)}px`),p.dynamicmainbullets>1&&e.previousindex!==void 0&&(a+=w-(e.previousindex-e.loopedslides||0),a>p.dynamicmainbullets-1?a=p.dynamicmainbullets-1:a<0&&(a=0)),o=math.max(w-a,0),f=o+(math.min(x.length,p.dynamicmainbullets)-1),p=(f+o)/2),x.removeclass(["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${p.bulletactiveclass}${z}`).join(" ")),y.length>1)x.each(z=>{const c=b(z),t=c.index();t===w&&c.addclass(p.bulletactiveclass),p.dynamicbullets&&(t>=o&&t<=f&&c.addclass(`${p.bulletactiveclass}-main`),t===o&&o(c,"prev"),t===f&&o(c,"next"))});else{const z=x.eq(w),c=z.index();if(z.addclass(p.bulletactiveclass),p.dynamicbullets){const t=x.eq(o),m=x.eq(f);for(let i=o;i<=f;i+=1)x.eq(i).addclass(`${p.bulletactiveclass}-main`);if(e.params.loop)if(c>=x.length){for(let i=p.dynamicmainbullets;i>=0;i-=1)x.eq(x.length-i).addclass(`${p.bulletactiveclass}-main`);x.eq(x.length-p.dynamicmainbullets-1).addclass(`${p.bulletactiveclass}-prev`)}else o(t,"prev"),o(m,"next");else o(t,"prev"),o(m,"next")}}if(p.dynamicbullets){const z=math.min(x.length,p.dynamicmainbullets+4),c=(r*z-r)/2-p*r,t=u?"right":"left";x.css(e.ishorizontal()?t:"top",`${c}px`)}}if(p.type==="fraction"&&(y.find(q(p.currentclass)).text(p.formatfractioncurrent(w+1)),y.find(q(p.totalclass)).text(p.formatfractiontotal(e))),p.type==="progressbar"){let x;p.progressbaropposite?x=e.ishorizontal()?"vertical":"horizontal":x=e.ishorizontal()?"horizontal":"vertical";const o=(w+1)/e;let f=1,p=1;x==="horizontal"?f=o:p=o,y.find(q(p.progressbarfillclass)).transform(`translate3d(0,0,0) scalex(${f}) scaley(${p})`).transition(e.params.speed)}p.type==="custom"&&p.rendercustom?(y.html(p.rendercustom(e,w+1,e)),i("paginationrender",y[0])):i("paginationupdate",y[0]),e.params.watchoverflow&&e.enabled&&y[e.islocked?"addclass":"removeclass"](p.lockclass)}function c(){const u=e.params.pagination;if(l())return;const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el;let y="";if(u.type==="bullets"){let w=e.params.loop?math.ceil((p-e.loopedslides*2)/e.params.slidespergroup):e.snapgrid.length;e.params.freemode&&e.params.freemode.enabled&&!e.params.loop&&w>p&&(w=p);for(let e=0;e`;s.html(y),e.pagination.bullets=s.find(q(u.bulletclass))}u.type==="fraction"&&(u.renderfraction?y=u.renderfraction.call(e,u.currentclass,u.totalclass):y=` / `,s.html(y)),u.type==="progressbar"&&(u.renderprogressbar?y=u.renderprogressbar.call(e,u.progressbarfillclass):y=``,s.html(y)),u.type!=="custom"&&i("paginationrender",e.pagination.$el[0])}function h(){e.params.pagination=me(e,e.originalparams.pagination,e.params.pagination,{el:"swiper-pagination"});const u=e.params.pagination;if(!u.el)return;let p=b(u.el);p.length!==0&&(e.params.uniquenavelements&&typeof u.el=="string"&&p.length>1&&(p=e.$el.find(u.el),p.length>1&&(p=p.filter(s=>b(s).parents(".swiper")[0]===e.el))),u.type==="bullets"&&u.clickable&&p.addclass(u.clickableclass),p.addclass(u.modifierclass+u.type),p.addclass(e.ishorizontal()?u.horizontalclass:u.verticalclass),u.type==="bullets"&&u.dynamicbullets&&(p.addclass(`${u.modifierclass}${u.type}-dynamic`),a=0,u.dynamicmainbullets<1&&(u.dynamicmainbullets=1)),u.type==="progressbar"&&u.progressbaropposite&&p.addclass(u.progressbaroppositeclass),u.clickable&&p.on("click",q(u.bulletclass),function(y){y.preventdefault();let w=b(this).index()*e.params.slidespergroup;e.params.loop&&(w+=e.loopedslides),e.slideto(w)}),object.assign(e.pagination,{$el:p,el:p[0]}),e.enabled||p.addclass(u.lockclass))}function f(){const u=e.params.pagination;if(l())return;const p=e.pagination.$el;p.removeclass(u.hiddenclass),p.removeclass(u.modifierclass+u.type),p.removeclass(e.ishorizontal()?u.horizontalclass:u.verticalclass),e.pagination.bullets&&e.pagination.bullets.removeclass&&e.pagination.bullets.removeclass(u.bulletactiveclass),u.clickable&&p.off("click",q(u.bulletclass))}s("init",()=>{e.params.pagination.enabled===!1?v():(h(),c(),d())}),s("activeindexchange",()=>{(e.params.loop||typeof e.snapindex>"u")&&d()}),s("snapindexchange",()=>{e.params.loop||d()}),s("slideslengthchange",()=>{e.params.loop&&(c(),d())}),s("snapgridlengthchange",()=>{e.params.loop||(c(),d())}),s("destroy",()=>{f()}),s("enable disable",()=>{const{$el:u}=e.pagination;u&&u[e.enabled?"removeclass":"addclass"](e.params.pagination.lockclass)}),s("lock unlock",()=>{d()}),s("click",(u,p)=>{const s=p.target,{$el:y}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideonclick&&y&&y.length>0&&!b(s).hasclass(e.params.pagination.bulletclass)){if(e.navigation&&(e.navigation.nextel&&s===e.navigation.nextel||e.navigation.prevel&&s===e.navigation.prevel))return;const w=y.hasclass(e.params.pagination.hiddenclass);i(w===!0?"paginationshow":"paginationhide"),y.toggleclass(e.params.pagination.hiddenclass)}});const g=()=>{e.$el.removeclass(e.params.pagination.paginationdisabledclass),e.pagination.$el&&e.pagination.$el.removeclass(e.params.pagination.paginationdisabledclass),h(),c(),d()},v=()=>{e.$el.addclass(e.params.pagination.paginationdisabledclass),e.pagination.$el&&e.pagination.$el.addclass(e.params.pagination.paginationdisabledclass),f()};object.assign(e.pagination,{enable:g,disable:v,render:c,update:d,init:h,destroy:f})}function ds({swiper:e,extendparams:t,on:s,emit:i}){let n;e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1,pauseonmouseenter:!1}});function r(){if(!e.size){e.autoplay.running=!1,e.autoplay.paused=!1;return}const u=e.slides.eq(e.activeindex);let p=e.params.autoplay.delay;u.attr("data-swiper-autoplay")&&(p=u.attr("data-swiper-autoplay")||e.params.autoplay.delay),cleartimeout(n),n=y(()=>{let s;e.params.autoplay.reversedirection?e.params.loop?(e.loopfix(),s=e.slideprev(e.params.speed,!0,!0),i("autoplay")):e.isbeginning?e.params.autoplay.stoponlastslide?l():(s=e.slideto(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(s=e.slideprev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopfix(),s=e.slidenext(e.params.speed,!0,!0),i("autoplay")):e.isend?e.params.autoplay.stoponlastslide?l():(s=e.slideto(0,e.params.speed,!0,!0),i("autoplay")):(s=e.slidenext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssmode&&e.autoplay.running||s===!1)&&r()},p)}function a(){return typeof n<"u"||e.autoplay.running?!1:(e.autoplay.running=!0,i("autoplaystart"),r(),!0)}function l(){return!e.autoplay.running||typeof n>"u"?!1:(n&&(cleartimeout(n),n=void 0),e.autoplay.running=!1,i("autoplaystop"),!0)}function o(u){!e.autoplay.running||e.autoplay.paused||(n&&cleartimeout(n),e.autoplay.paused=!0,u===0||!e.params.autoplay.waitfortransition?(e.autoplay.paused=!1,r()):["transitionend","webkittransitionend"].foreach(p=>{e.$wrapperel[0].addeventlistener(p,c)}))}function d(){const u=b();u.visibilitystate==="hidden"&&e.autoplay.running&&o(),u.visibilitystate==="visible"&&e.autoplay.paused&&(r(),e.autoplay.paused=!1)}function c(u){!e||e.destroyed||!e.$wrapperel||u.target===e.$wrapperel[0]&&(["transitionend","webkittransitionend"].foreach(p=>{e.$wrapperel[0].removeeventlistener(p,c)}),e.autoplay.paused=!1,e.autoplay.running?r():l())}function h(){e.params.autoplay.disableoninteraction?l():(i("autoplaypause"),o()),["transitionend","webkittransitionend"].foreach(u=>{e.$wrapperel[0].removeeventlistener(u,c)})}function f(){e.params.autoplay.disableoninteraction||(e.autoplay.paused=!1,i("autoplayresume"),r())}function g(){e.params.autoplay.pauseonmouseenter&&(e.$el.on("mouseenter",h),e.$el.on("mouseleave",f))}function v(){e.$el.off("mouseenter",h),e.$el.off("mouseleave",f)}s("init",()=>{e.params.autoplay.enabled&&(a(),b().addeventlistener("visibilitychange",d),g())}),s("beforetransitionstart",(u,p,s)=>{e.autoplay.running&&(s||!e.params.autoplay.disableoninteraction?e.autoplay.pause(p):l())}),s("sliderfirstmove",()=>{e.autoplay.running&&(e.params.autoplay.disableoninteraction?l():o())}),s("touchend",()=>{e.params.cssmode&&e.autoplay.paused&&!e.params.autoplay.disableoninteraction&&r()}),s("destroy",()=>{v(),e.autoplay.running&&l(),b().removeeventlistener("visibilitychange",d)}),object.assign(e.autoplay,{pause:o,run:r,start:a,stop:l})}const zs={"amazon silk":"amazon_silk","android browser":"android",bada:"bada",blackberry:"blackberry",chrome:"chrome",chromium:"chromium",electron:"electron",epiphany:"epiphany",firefox:"firefox",focus:"focus",generic:"generic","google search":"google_search",googlebot:"googlebot","internet explorer":"ie","k-meleon":"k_meleon",maxthon:"maxthon","microsoft edge":"edge","mz browser":"mz","naver whale browser":"naver",opera:"opera","opera coast":"opera_coast",phantomjs:"phantomjs",puffin:"puffin",qupzilla:"qupzilla",qq:"qq",qqlite:"qqlite",safari:"safari",sailfish:"sailfish","samsung internet for android":"samsung_internet",seamonkey:"seamonkey",sleipnir:"sleipnir",swing:"swing",tizen:"tizen","uc browser":"uc",vivaldi:"vivaldi","webos browser":"webos",wechat:"wechat","yandex browser":"yandex",roku:"roku"},ke={amazon_silk:"amazon silk",android:"android browser",bada:"bada",blackberry:"blackberry",chrome:"chrome",chromium:"chromium",electron:"electron",epiphany:"epiphany",firefox:"firefox",focus:"focus",generic:"generic",googlebot:"googlebot",google_search:"google search",ie:"internet explorer",k_meleon:"k-meleon",maxthon:"maxthon",edge:"microsoft edge",mz:"mz browser",naver:"naver whale browser",opera:"opera",opera_coast:"opera coast",phantomjs:"phantomjs",puffin:"puffin",qupzilla:"qupzilla",qq:"qq browser",qqlite:"qq browser lite",safari:"safari",sailfish:"sailfish",samsung_internet:"samsung internet for android",seamonkey:"seamonkey",sleipnir:"sleipnir",swing:"swing",tizen:"tizen",uc:"uc browser",vivaldi:"vivaldi",webos:"webos browser",wechat:"wechat",yandex:"yandex browser"},l={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},n={windowsphone:"windows phone",windows:"windows",macos:"macos",ios:"ios",android:"android",webos:"webos",blackberry:"blackberry",bada:"bada",tizen:"tizen",linux:"linux",chromeos:"chrome os",playstation4:"playstation 4",roku:"roku"},_={edgehtml:"edgehtml",blink:"blink",trident:"trident",presto:"presto",gecko:"gecko",webkit:"webkit"};class m{static getfirstmatch(t,s){const i=s.match(t);return i&&i.length>0&&i[1]||""}static getsecondmatch(t,s){const i=s.match(t);return i&&i.length>1&&i[2]||""}static matchandreturnconst(t,s,i){if(t.test(s))return i}static getwindowsversionname(t){switch(t){case"nt":return"nt";case"xp":return"xp";case"nt 5.0":return"2000";case"nt 5.1":return"xp";case"nt 5.2":return"2003";case"nt 6.0":return"vista";case"nt 6.1":return"7";case"nt 6.2":return"8";case"nt 6.3":return"8.1";case"nt 10.0":return"10";default:return}}static getmacosversionname(t){const s=t.split(".").splice(0,2).map(i=>parseint(i,10)||0);if(s.push(0),s[0]===10)switch(s[1]){case 5:return"leopard";case 6:return"snow leopard";case 7:return"lion";case 8:return"mountain lion";case 9:return"mavericks";case 10:return"yosemite";case 11:return"el capitan";case 12:return"sierra";case 13:return"high sierra";case 14:return"mojave";case 15:return"catalina";default:return}}static getandroidversionname(t){const s=t.split(".").splice(0,2).map(i=>parseint(i,10)||0);if(s.push(0),!(s[0]===1&&s[1]<5)){if(s[0]===1&&s[1]<6)return"cupcake";if(s[0]===1&&s[1]>=6)return"donut";if(s[0]===2&&s[1]<2)return"eclair";if(s[0]===2&&s[1]===2)return"froyo";if(s[0]===2&&s[1]>2)return"gingerbread";if(s[0]===3)return"honeycomb";if(s[0]===4&&s[1]<1)return"ice cream sandwich";if(s[0]===4&&s[1]<4)return"jelly bean";if(s[0]===4&&s[1]>=4)return"kitkat";if(s[0]===5)return"lollipop";if(s[0]===6)return"marshmallow";if(s[0]===7)return"nougat";if(s[0]===8)return"oreo";if(s[0]===9)return"pie"}}static getversionprecision(t){return t.split(".").length}static compareversions(t,s,i=!1){const n=m.getversionprecision(t),r=m.getversionprecision(s);let a=math.max(n,r),l=0;const o=m.map([t,s],d=>{const c=a-m.getversionprecision(d),h=d+new array(c+1).join(".0");return m.map(h.split("."),f=>new array(20-f.length).join("0")+f).reverse()});for(i&&(l=a-math.min(n,r)),a-=1;a>=l;){if(o[0][a]>o[1][a])return 1;if(o[0][a]===o[1][a]){if(a===l)return 0;a-=1}else if(o[0][a]{i[o]=a[o]})}return t}static getbrowseralias(t){return zs[t]}static getbrowsertypebyalias(t){return ke[t]||""}}const k=/version\/(\d+(\.?_?\d+)+)/i,_s=[{test:[/googlebot/i],describe(e){const t={name:"googlebot"},s=m.getfirstmatch(/googlebot\/(\d+(\.\d+))/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/opera/i],describe(e){const t={name:"opera"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"opera"},s=m.getfirstmatch(/(?:opr|opios)[\s/](\s+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/samsungbrowser/i],describe(e){const t={name:"samsung internet for android"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:samsungbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/whale/i],describe(e){const t={name:"naver whale browser"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/mzbrowser/i],describe(e){const t={name:"mz browser"},s=m.getfirstmatch(/(?:mzbrowser)[\s/](\d+(?:\.\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/focus/i],describe(e){const t={name:"focus"},s=m.getfirstmatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/swing/i],describe(e){const t={name:"swing"},s=m.getfirstmatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/coast/i],describe(e){const t={name:"opera coast"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"opera touch"},s=m.getfirstmatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/yabrowser/i],describe(e){const t={name:"yandex browser"},s=m.getfirstmatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/ucbrowser/i],describe(e){const t={name:"uc browser"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/maxthon|mxios/i],describe(e){const t={name:"maxthon"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/epiphany/i],describe(e){const t={name:"epiphany"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/puffin/i],describe(e){const t={name:"puffin"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sleipnir/i],describe(e){const t={name:"sleipnir"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/k-meleon/i],describe(e){const t={name:"k-meleon"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/micromessenger/i],describe(e){const t={name:"wechat"},s=m.getfirstmatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"qq browser lite":"qq browser"},s=m.getfirstmatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/msie|trident/i],describe(e){const t={name:"internet explorer"},s=m.getfirstmatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/\sedg\//i],describe(e){const t={name:"microsoft edge"},s=m.getfirstmatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"microsoft edge"},s=m.getsecondmatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/vivaldi/i],describe(e){const t={name:"vivaldi"},s=m.getfirstmatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/seamonkey/i],describe(e){const t={name:"seamonkey"},s=m.getfirstmatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/sailfish/i],describe(e){const t={name:"sailfish"},s=m.getfirstmatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return s&&(t.version=s),t}},{test:[/silk/i],describe(e){const t={name:"amazon silk"},s=m.getfirstmatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/phantom/i],describe(e){const t={name:"phantomjs"},s=m.getfirstmatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/slimerjs/i],describe(e){const t={name:"slimerjs"},s=m.getfirstmatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"blackberry"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"webos browser"},s=m.getfirstmatch(k,e)||m.getfirstmatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/bada/i],describe(e){const t={name:"bada"},s=m.getfirstmatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/tizen/i],describe(e){const t={name:"tizen"},s=m.getfirstmatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/qupzilla/i],describe(e){const t={name:"qupzilla"},s=m.getfirstmatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"firefox"},s=m.getfirstmatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/electron/i],describe(e){const t={name:"electron"},s=m.getfirstmatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/miuibrowser/i],describe(e){const t={name:"miui"},s=m.getfirstmatch(/(?:miuibrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/chromium/i],describe(e){const t={name:"chromium"},s=m.getfirstmatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"chrome"},s=m.getfirstmatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/gsa/i],describe(e){const t={name:"google search"},s=m.getfirstmatch(/(?:gsa)\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test(e){const t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe(e){const t={name:"android browser"},s=m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/playstation 4/i],describe(e){const t={name:"playstation 4"},s=m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"safari"},s=m.getfirstmatch(k,e);return s&&(t.version=s),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,s=/^(.*)\/(.*)[ \t]\((.*)/,n=e.search("\\(")!==-1?s:t;return{name:m.getfirstmatch(n,e),version:m.getsecondmatch(n,e)}}}],gs=[{test:[/roku\/dvp/],describe(e){const t=m.getfirstmatch(/roku\/dvp-(\d+\.\d+)/i,e);return{name:n.roku,version:t}}},{test:[/windows phone/i],describe(e){const t=m.getfirstmatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:n.windowsphone,version:t}}},{test:[/windows /i],describe(e){const t=m.getfirstmatch(/windows ((nt|xp)( \d\d?.\d)?)/i,e),s=m.getwindowsversionname(t);return{name:n.windows,version:t,versionname:s}}},{test:[/macintosh(.*?) fxios(.*?)\//],describe(e){const t={name:n.ios},s=m.getsecondmatch(/(version\/)(\d[\d.]+)/,e);return s&&(t.version=s),t}},{test:[/macintosh/i],describe(e){const t=m.getfirstmatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),s=m.getmacosversionname(t),i={name:n.macos,version:t};return s&&(i.versionname=s),i}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=m.getfirstmatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:n.ios,version:t}}},{test(e){const t=!e.test(/like android/i),s=e.test(/android/i);return t&&s},describe(e){const t=m.getfirstmatch(/android[\s/-](\d+(\.\d+)*)/i,e),s=m.getandroidversionname(t),i={name:n.android,version:t};return s&&(i.versionname=s),i}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=m.getfirstmatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),s={name:n.webos};return t&&t.length&&(s.version=t),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=m.getfirstmatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||m.getfirstmatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||m.getfirstmatch(/\bbb(\d+)/i,e);return{name:n.blackberry,version:t}}},{test:[/bada/i],describe(e){const t=m.getfirstmatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:n.bada,version:t}}},{test:[/tizen/i],describe(e){const t=m.getfirstmatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:n.tizen,version:t}}},{test:[/linux/i],describe(){return{name:n.linux}}},{test:[/cros/],describe(){return{name:n.chromeos}}},{test:[/playstation 4/],describe(e){const t=m.getfirstmatch(/playstation 4[/\s](\d+(\.\d+)*)/i,e);return{name:n.playstation4,version:t}}}],qs=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"google"}}},{test:[/huawei/i],describe(e){const t=m.getfirstmatch(/(can-l01)/i,e)&&"nova",s={type:l.mobile,vendor:"huawei"};return t&&(s.model=t),s}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:l.tablet,vendor:"nexus"}}},{test:[/ipad/i],describe(){return{type:l.tablet,vendor:"apple",model:"ipad"}}},{test:[/macintosh(.*?) fxios(.*?)\//],describe(){return{type:l.tablet,vendor:"apple",model:"ipad"}}},{test:[/kftt build/i],describe(){return{type:l.tablet,vendor:"amazon",model:"kindle fire hd 7"}}},{test:[/silk/i],describe(){return{type:l.tablet,vendor:"amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:l.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),s=e.test(/like (ipod|iphone)/i);return t&&!s},describe(e){const t=m.getfirstmatch(/(ipod|iphone)/i,e);return{type:l.mobile,vendor:"apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:l.mobile,vendor:"nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:l.mobile}}},{test(e){return e.getbrowsername(!0)==="blackberry"},describe(){return{type:l.mobile,vendor:"blackberry"}}},{test(e){return e.getbrowsername(!0)==="bada"},describe(){return{type:l.mobile}}},{test(e){return e.getbrowsername()==="windows phone"},describe(){return{type:l.mobile,vendor:"microsoft"}}},{test(e){const t=number(string(e.getosversion()).split(".")[0]);return e.getosname(!0)==="android"&&t>=3},describe(){return{type:l.tablet}}},{test(e){return e.getosname(!0)==="android"},describe(){return{type:l.mobile}}},{test(e){return e.getosname(!0)==="macos"},describe(){return{type:l.desktop,vendor:"apple"}}},{test(e){return e.getosname(!0)==="windows"},describe(){return{type:l.desktop}}},{test(e){return e.getosname(!0)==="linux"},describe(){return{type:l.desktop}}},{test(e){return e.getosname(!0)==="playstation 4"},describe(){return{type:l.tv}}},{test(e){return e.getosname(!0)==="roku"},describe(){return{type:l.tv}}}],rs=[{test(e){return e.getbrowsername(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:_.blink};const s=m.getfirstmatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:_.edgehtml,version:s}}},{test:[/trident/i],describe(e){const t={name:_.trident},s=m.getfirstmatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:_.presto},s=m.getfirstmatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test(e){const t=e.test(/gecko/i),s=e.test(/like gecko/i);return t&&!s},describe(e){const t={name:_.gecko},s=m.getfirstmatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:_.blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:_.webkit},s=m.getfirstmatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return s&&(t.version=s),t}}];class ve{constructor(t,s=!1){if(t==null||t==="")throw new error("useragent parameter can't be empty");this._ua=t,this.parsedresult={},s!==!0&&this.parse()}getua(){return this._ua}test(t){return t.test(this._ua)}parsebrowser(){this.parsedresult.browser={};const t=m.find(_s,s=>{if(typeof s.test=="function")return s.test(this);if(s.test instanceof array)return s.test.some(i=>this.test(i));throw new error("browser's test function is not valid")});return t&&(this.parsedresult.browser=t.describe(this.getua())),this.parsedresult.browser}getbrowser(){return this.parsedresult.browser?this.parsedresult.browser:this.parsebrowser()}getbrowsername(t){return t?string(this.getbrowser().name).tolowercase()||"":this.getbrowser().name||""}getbrowserversion(){return this.getbrowser().version}getos(){return this.parsedresult.os?this.parsedresult.os:this.parseos()}parseos(){this.parsedresult.os={};const t=m.find(gs,s=>{if(typeof s.test=="function")return s.test(this);if(s.test instanceof array)return s.test.some(i=>this.test(i));throw new error("browser's test function is not valid")});return t&&(this.parsedresult.os=t.describe(this.getua())),this.parsedresult.os}getosname(t){const{name:s}=this.getos();return t?string(s).tolowercase()||"":s||""}getosversion(){return this.getos().version}getplatform(){return this.parsedresult.platform?this.parsedresult.platform:this.parseplatform()}getplatformtype(t=!1){const{type:s}=this.getplatform();return t?string(s).tolowercase()||"":s||""}parseplatform(){this.parsedresult.platform={};const t=m.find(qs,s=>{if(typeof s.test=="function")return s.test(this);if(s.test instanceof array)return s.test.some(i=>this.test(i));throw new error("browser's test function is not valid")});return t&&(this.parsedresult.platform=t.describe(this.getua())),this.parsedresult.platform}getengine(){return this.parsedresult.engine?this.parsedresult.engine:this.parseengine()}getenginename(t){return t?string(this.getengine().name).tolowercase()||"":this.getengine().name||""}parseengine(){this.parsedresult.engine={};const t=m.find(rs,s=>{if(typeof s.test=="function")return s.test(this);if(s.test instanceof array)return s.test.some(i=>this.test(i));throw new error("browser's test function is not valid")});return t&&(this.parsedresult.engine=t.describe(this.getua())),this.parsedresult.engine}parse(){return this.parsebrowser(),this.parseos(),this.parseplatform(),this.parseengine(),this}getresult(){return m.assign({},this.parsedresult)}satisfies(t){const s={};let i=0;const n={};let r=0;if(object.keys(t).foreach(l=>{const o=t[l];typeof o=="string"?(n[l]=o,r+=1):typeof o=="object"&&(s[l]=o,i+=1)}),i>0){const l=object.keys(s),o=m.find(l,c=>this.isos(c));if(o){const c=this.satisfies(s[o]);if(c!==void 0)return c}const d=m.find(l,c=>this.isplatform(c));if(d){const c=this.satisfies(s[d]);if(c!==void 0)return c}}if(r>0){const l=object.keys(n),o=m.find(l,d=>this.isbrowser(d,!0));if(o!==void 0)return this.compareversion(n[o])}}isbrowser(t,s=!1){const i=this.getbrowsername().tolowercase();let n=t.tolowercase();const r=m.getbrowsertypebyalias(n);return s&&r&&(n=r.tolowercase()),n===i}compareversion(t){let s=[0],i=t,n=!1;const r=this.getbrowserversion();if(typeof r=="string")return t[0]===">"||t[0]==="<"?(i=t.substr(1),t[1]==="="?(n=!0,i=t.substr(2)):s=[],t[0]===">"?s.push(1):s.push(-1)):t[0]==="="?i=t.substr(1):t[0]==="~"&&(n=!0,i=t.substr(1)),s.indexof(m.compareversions(r,i,n))>-1}isos(t){return this.getosname(!0)===string(t).tolowercase()}isplatform(t){return this.getplatformtype(!0)===string(t).tolowercase()}isengine(t){return this.getenginename(!0)===string(t).tolowercase()}is(t,s=!1){return this.isbrowser(t,s)||this.isos(t)||this.isplatform(t)}some(t=[]){return t.some(s=>this.is(s))}}/*! * bowser - a browser detector * https://github.com/lancedikson/bowser * mit license | (c) dustin diaz 2012-2015 * mit license | (c) denis demchenko 2015-2019 */class vs{static getparser(t,s=!1){if(typeof t!="string")throw new error("useragent should be a string");return new ve(t,s)}static parse(t){return new ve(t).getresult()}static get browser_map(){return ke}static get engine_map(){return _}static get os_map(){return n}static get platforms_map(){return l}}const{parsedresult:be}=vs.getparser(window.navigator.useragent);class hs{constructor(){this.ismobile=be.platform.type==="mobile",this.isdesktop=be.platform.type==="desktop"}run(){this.inittopmenu(),this.inittopmenutoggle(),this.tryinitfloatpanel(),this.initdttopmenu()}inittopmenutoggle(){const t=document.queryselector("#topmenu"),s=document.queryselector("#topmenutoggle");if(!t||!s){console.warn("#topmenu or #topmenutoggle not found");return}new ce({element:s}).on("change",n=>{const{active:r}=n.detail;r?t.setattribute("active",""):t.removeattribute("active")})}initpagenavfixed(){const t=document.queryselector(".topnav[mobile]"),s=document.queryselector(".topnav[desktop]"),i=document.queryselector(".topbanner"),n=document.queryselector(".pagenav"),r=document.queryselector(".pagenavplaceholder"),{height:a,y:l}=i.getboundingclientrect(),{height:o}=n.getboundingclientrect(),d=n.currentstyle||window.getcomputedstyle(n),c=parseint(d.marginbottom.replace("px"));window.addeventlistener("scroll",()=>{window.scrolly>=l?(t.style.display="none",s.style.display="none"):(t.style.display="",s.style.display=""),window.scrolly>=a+l?(n.setattribute("fixed",""),n.style.top=0,r.style.height=o+c+"px"):(n.removeattribute("fixed"),r.style.height=0)})}inittopmenu(){new de({element:document.queryselector("#topmenu")})}initdttopmenu(){new de({element:document.queryselector("#dttopmenu"),triggersubmenuaction:"hover"})}tryinitfloatpanel(){const t=document.queryselector(".floatpanel");if(!t)return;const s=t.queryselector(".toggle"),i=t.queryselector(".group");s&&i&&(i.children.length===0&&s.parentnode.removechild(s),i.setattribute("active",""),new ce({active:!0,element:s}).on("change",a=>{const{active:l}=a.detail;l?i.setattribute("active",""):i.removeattribute("active")}));const n=document.queryselector("#totopbutton");n.addeventlistener("click",()=>{window.scrollto({left:0,top,behavior:"smooth"})}),window.addeventlistener("scroll",()=>{window.scrolly>=600?n.setattribute("active",""):n.removeattribute("active")})}}const ws=`
{hour} {minute} {second}
{year}
{month} {day}
`;class js extends k{constructor(t){super({element:t.element,defaultstate:{date:new date}})}update(){const{yyyy:t,mm:s,dd:i,hh:n,mm:r,ss:a}=ys(this.state.getitem("date")),l=ws.replace("{year}",t).replace("{month}",s).replace("{day}",i).replace("{hour}",n).replace("{minute}",r).replace("{second}",a);this.element.innerhtml=l}run(){setinterval(()=>{this.state.setitem("date",new date)},1e3)}}function ys(e){const t=e.getfullyear();let s=e.getmonth()+1,i=e.getdate(),n=e.gethours(),r=e.getminutes(),a=e.getseconds();return{yyyy:t.tostring(),mm:s<10?`0${s}`:s.tostring(),dd:i<10?`0${i}`:i.tostring(),hh:n<10?`0${n}`:n.tostring(),mm:r<10?`0${r}`:r.tostring(),ss:a<10?`0${a}`:a.tostring()}}class ks extends hs{constructor(){super()}run(){super.run(),this.inittopbanner(),this.initimagenewsswiper(),this.initmanualsection(),this.initnewssection(),this.initbuildsection(),this.initinformationsection(),this.initmembersection(),this.initairlinesearch(),this.initclock()}inittopbanner(){const t=document.queryselector("#bannerswiper");new $(t,{modules:[r],effect:"fade",navigation:{nextel:t.queryselector(".swiper-button-next"),prevel:t.queryselector(".swiper-button-prev")}}),t.queryselectorall(".banner").foreach(i=>{i.queryselector(".cp-block-body")&&i.queryselector(".cp-block-image").classlist.add("mask")})}initimagenewsswiper(){new $("#imagenewsswiper",{modules:[r,se],loop:!0,navigation:{nextel:".swiper-button-next",prevel:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}})}initmanualsection(){const t=document.queryselector("#manualswiper"),s={modules:[ds,r],initialslide:1,centeredslides:!0,navigation:{nextel:document.queryselector("#manualswipernextbutton"),prevel:document.queryselector("#manualswiperprevbutton")}};this.isdesktop&&(s.slidesperview=3);const i=new $(t,s),n=new q({index:i.realindex,element:document.queryselector("#manualtabs")});n.on("change",r=>{const{index:a}=r.detail;i.slideto(a)}),i.on("slidechange",r=>{n.setindex(r.activeindex)})}initnewssection(){const t=document.queryselectorall(".newsswiper");t.foreach((n,r)=>{let a={initialslide:0,modules:[se,r],pagination:{el:n.queryselector(".swiper-pagination"),clickable:!0},navigation:{nextel:n.queryselector(".swiper-button-next"),prevel:n.queryselector(".swiper-button-prev")}};this.isdesktop&&(a={...a,slidesperview:4,spacebetween:24,freemode:!0}),new $(n.queryselector(".swiper"),a)}),new q({index:0,element:document.queryselector("#newstabs")}).on("change",n=>{const{index:r}=n.detail;i(r)}),i(0);function i(n){t.foreach((r,a)=>{a===n?r.setattribute("active",""):r.removeattribute("active")})}}initnewssectionareamargin(){const t=document.queryselector(".newssection"),s=t.queryselector(".cp-section-area");s.style.maxwidth="1200px";const i=t.getboundingclientrect(),n=s.getboundingclientrect(),r=(i.width-n.width)/2;s.style.marginleft=r+"px",s.style.width=i.width-r+"px",s.style.maxwidth="none"}initbuildsection(){const t=document.queryselector("#buildswiper");new $(t,{modules:[se],pagination:{el:t.queryselector(".swiper-pagination"),clickable:!0}}),this.isdesktop&&buildswiper.queryselectorall(".cp-col").foreach(i=>{i.classlist.replace("cp-col-sm-12","cp-col-sm-6")})}initinformationsection(){if(this.isdesktop)return;const t=document.queryselectorall(".infolist");new q({index:0,element:document.queryselector("#infotabs")}).on("change",n=>{const{index:r}=n.detail;i(r)}),i(0);function i(n){t.foreach((r,a)=>{a===n?r.setattribute("active",""):r.removeattribute("active")})}}initmembersection(){const t=document.queryselector(".membersection"),s={modules:[r],navigation:{nextel:t.queryselector(".swiper-button-next"),prevel:t.queryselector(".swiper-button-prev")}};this.isdesktop&&(s.slidesperview=5),new $("#memberswiper",s)}initairlinesearch(){const t=document.queryselector("#airlinesearchform");if(!t){console.warn("#airlinesearchform is not found");return}const s=t.queryselector("[name=flightnumber]"),i=t.queryselector("[name=date]"),n=t.queryselector("[type=submit]");i.addeventlistener("focus",()=>{i.type="date"}),n.addeventlistener("click",async r=>{r.preventdefault();const a=s.value,l=i.value;ie=window.handleairlinesearch||ie,ie({flightnumber:a,date:l})})}initclock(){const t=document.queryselector("#currenttime");if(!t){console.warn("#currenttime is not found");return}new js({element:t}).run()}}function ie(e){const{flightnumber:t,date:s}=e,i=[];if(t||i.push("\u8bf7\u8f93\u5165\u6709\u6548\u7684\u822a\u73ed\u53f7"),s||i.push("\u8bf7\u9009\u62e9\u65e5\u671f"),i.length){alert(i[0]);return}const n=new url(`http://www.variflight.com/flight/fnum/${t}.html`);n.searchparams.set("ae71649a58c77",""),n.searchparams.set("fdate",s.replace(/-/g,"")),window.open(n)}window.addeventlistener("domcontentloaded",()=>{xs()});function xs(){new ks().run()}