@moohng/dui
Version:
基于 Vue 3 的轻量级组件库
1 lines • 97.2 kB
JavaScript
this.preview=function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r=function(e){try{return!!e()}catch(e){return!0}},n=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!o.call({1:2},1)?function(e){var t=a(this,e);return!!t&&t.enumerable}:o},d=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u={}.toString,c=function(e){return u.call(e).slice(8,-1)},p="".split,h=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==c(e)?p.call(e,""):Object(e)}:Object,f=function(e){return h(function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}(e))},v=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!v(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!v(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!v(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!v(s=i.call(e)))return s;throw TypeError("Can't convert object to primitive value")},g={}.hasOwnProperty,y=function(e,t){return g.call(e,t)},w=s.document,S=v(w)&&v(w.createElement),b=!n&&!r((function(){return 7!=Object.defineProperty((e="div",S?w.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),T=Object.getOwnPropertyDescriptor,C={f:n?T:function(e,t){if(e=f(e),t=m(t,!0),b)try{return T(e,t)}catch(e){}if(y(e,t))return d(!l.f.call(e,t),e[t])}},x=/#|\.prototype\./,E=function(e,t){var i=P[M(e)];return i==k||i!=O&&("function"==typeof t?r(t):!!t)},M=E.normalize=function(e){return String(e).replace(x,".").toLowerCase()},P=E.data={},O=E.NATIVE="N",k=E.POLYFILL="P",L=E,B={},A=function(e,t,i){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,s){return e.call(t,i,s)};case 3:return function(i,s,r){return e.call(t,i,s,r)}}return function(){return e.apply(t,arguments)}},z=function(e){if(!v(e))throw TypeError(String(e)+" is not an object");return e},I=Object.defineProperty,_={f:n?I:function(e,t,i){if(z(e),t=m(t,!0),z(i),b)try{return I(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},D=n?function(e,t,i){return _.f(e,t,d(1,i))}:function(e,t,i){return e[t]=i,e},N=C.f,j=function(e){var t=function(t,i,s){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,s)}return e.apply(this,arguments)};return t.prototype=e.prototype,t},G=function(e,t){var i,r,n,o,a,l,d,u,c=e.target,p=e.global,h=e.stat,f=e.proto,v=p?s:h?s[c]:(s[c]||{}).prototype,m=p?B:B[c]||(B[c]={}),g=m.prototype;for(n in t)i=!L(p?n:c+(h?".":"#")+n,e.forced)&&v&&y(v,n),a=m[n],i&&(l=e.noTargetGet?(u=N(v,n))&&u.value:v[n]),o=i&&l?l:t[n],i&&typeof a==typeof o||(d=e.bind&&i?A(o,s):e.wrap&&i?j(o):f&&"function"==typeof o?A(Function.call,o):o,(e.sham||o&&o.sham||a&&a.sham)&&D(d,"sham",!0),m[n]=d,f&&(y(B,r=c+"Prototype")||D(B,r,{}),B[r][n]=o,e.real&&g&&!g[n]&&D(g,n,o)))};G({target:"Array",stat:!0},{isArray:Array.isArray||function(e){return"Array"==c(e)}});var V=B.Array.isArray;function F(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function R(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(i){void 0===e[i]?e[i]=t[i]:F(t[i])&&F(e[i])&&Object.keys(t[i]).length>0&&R(e[i],t[i])}))}var H={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function W(){var e="undefined"!=typeof document?document:{};return R(e,H),e}var $={document:H,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function q(){var e="undefined"!=typeof window?window:{};return R(e,$),e}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function K(e,t,i){return(K=U()?Reflect.construct:function(e,t,i){var s=[null];s.push.apply(s,t);var r=new(Function.bind.apply(e,s));return i&&X(r,i.prototype),r}).apply(null,arguments)}function Z(e){var t="function"==typeof Map?new Map:void 0;return(Z=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,s)}function s(){return K(e,arguments,Y(this).constructor)}return s.prototype=Object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),X(s,e)})(e)}var J=function(e){var t,i;function s(t){var i,s,r;return i=e.call.apply(e,[this].concat(t))||this,s=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i),r=s.__proto__,Object.defineProperty(s,"__proto__",{get:function(){return r},set:function(e){r.__proto__=e}}),i}return i=e,(t=s).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,s}(Z(Array));function Q(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Q(e)):t.push(e)})),t}function ee(e,t){return Array.prototype.filter.call(e,t)}function te(e,t){var i=q(),s=W(),r=[];if(!t&&e instanceof J)return e;if(!e)return new J(r);if("string"==typeof e){var n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){var o="div";0===n.indexOf("<li")&&(o="ul"),0===n.indexOf("<tr")&&(o="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(o="tr"),0===n.indexOf("<tbody")&&(o="table"),0===n.indexOf("<option")&&(o="select");var a=s.createElement(o);a.innerHTML=n;for(var l=0;l<a.childNodes.length;l+=1)r.push(a.childNodes[l])}else r=function(e,t){if("string"!=typeof e)return[e];for(var i=[],s=t.querySelectorAll(e),r=0;r<s.length;r+=1)i.push(s[r]);return i}(e.trim(),t||s)}else if(e.nodeType||e===i||e===s)r.push(e);else if(Array.isArray(e)){if(e instanceof J)return e;r=e}return new J(function(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(r))}te.fn=J.prototype;var ie,se,re,ne={addClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=Q(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,s)})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=Q(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,s)})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=Q(t.map((function(e){return e.split(" ")})));return ee(this,(function(e){return s.filter((function(t){return e.classList.contains(t)})).length>0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=Q(t.map((function(e){return e.split(" ")})));this.forEach((function(e){s.forEach((function(t){e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(var s in e)this[i][s]=e[s],this[i].setAttribute(s,e[s]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},on:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=t[0],r=t[1],n=t[2],o=t[3];function a(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),te(t).is(r))n.apply(t,i);else for(var s=te(t).parents(),o=0;o<s.length;o+=1)te(s[o]).is(r)&&n.apply(s[o],i)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof t[1]&&(s=t[0],n=t[1],o=t[2],r=void 0),o||(o=!1);for(var d,u=s.split(" "),c=0;c<this.length;c+=1){var p=this[c];if(r)for(d=0;d<u.length;d+=1){var h=u[d];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[h]||(p.dom7LiveListeners[h]=[]),p.dom7LiveListeners[h].push({listener:n,proxyListener:a}),p.addEventListener(h,a,o)}else for(d=0;d<u.length;d+=1){var f=u[d];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[f]||(p.dom7Listeners[f]=[]),p.dom7Listeners[f].push({listener:n,proxyListener:l}),p.addEventListener(f,l,o)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var s=t[0],r=t[1],n=t[2],o=t[3];"function"==typeof t[1]&&(s=t[0],n=t[1],o=t[2],r=void 0),o||(o=!1);for(var a=s.split(" "),l=0;l<a.length;l+=1)for(var d=a[l],u=0;u<this.length;u+=1){var c=this[u],p=void 0;if(!r&&c.dom7Listeners?p=c.dom7Listeners[d]:r&&c.dom7LiveListeners&&(p=c.dom7LiveListeners[d]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];n&&f.listener===n||n&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===n?(c.removeEventListener(d,f.proxyListener,o),p.splice(h,1)):n||(c.removeEventListener(d,f.proxyListener,o),p.splice(h,1))}}return this},trigger:function(){for(var e=q(),t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];for(var r=i[0].split(" "),n=i[1],o=0;o<r.length;o+=1)for(var a=r[o],l=0;l<this.length;l+=1){var d=this[l];if(e.CustomEvent){var u=new e.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0});d.dom7EventData=i.filter((function(e,t){return t>0})),d.dispatchEvent(u),d.dom7EventData=[],delete d.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=q();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=q(),t=W(),i=this[0],s=i.getBoundingClientRect(),r=t.body,n=i.clientTop||r.clientTop||0,o=i.clientLeft||r.clientLeft||0,a=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:s.top+a-n,left:s.left+l-o}}return null},css:function(e,t){var i,s=q();if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var r in e)this[i].style[r]=e[r];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},each:function(e){return e?(this.forEach((function(t,i){e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,i,s=q(),r=W(),n=this[0];if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(t=te(e),i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1}if(e===r)return n===r;if(e===s)return n===s;if(e.nodeType||e instanceof J){for(t=e.nodeType?[e]:e,i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(e>t-1)return te([]);if(e<0){var i=t+e;return te(i<0?[]:[this[i]])}return te([this[e]])},append:function(){for(var e,t=W(),i=0;i<arguments.length;i+=1){e=i<0||arguments.length<=i?void 0:arguments[i];for(var s=0;s<this.length;s+=1)if("string"==typeof e){var r=t.createElement("div");for(r.innerHTML=e;r.firstChild;)this[s].appendChild(r.firstChild)}else if(e instanceof J)for(var n=0;n<e.length;n+=1)this[s].appendChild(e[n]);else this[s].appendChild(e)}return this},prepend:function(e){var t,i,s=W();for(t=0;t<this.length;t+=1)if("string"==typeof e){var r=s.createElement("div");for(r.innerHTML=e,i=r.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(r.childNodes[i],this[t].childNodes[0])}else if(e instanceof J)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&te(this[0].nextElementSibling).is(e)?te([this[0].nextElementSibling]):te([]):this[0].nextElementSibling?te([this[0].nextElementSibling]):te([]):te([])},nextAll:function(e){var t=[],i=this[0];if(!i)return te([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;e?te(s).is(e)&&t.push(s):t.push(s),i=s}return te(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&te(t.previousElementSibling).is(e)?te([t.previousElementSibling]):te([]):t.previousElementSibling?te([t.previousElementSibling]):te([])}return te([])},prevAll:function(e){var t=[],i=this[0];if(!i)return te([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;e?te(s).is(e)&&t.push(s):t.push(s),i=s}return te(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?te(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return te(t)},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].parentNode;s;)e?te(s).is(e)&&t.push(s):t.push(s),s=s.parentNode;return te(t)},closest:function(e){var t=this;return void 0===e?te([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].querySelectorAll(e),r=0;r<s.length;r+=1)t.push(s[r]);return te(t)},children:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].children,r=0;r<s.length;r+=1)e&&!te(s[r]).is(e)||t.push(s[r]);return te(t)},filter:function(e){return te(ee(this,e))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function oe(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function ae(){return Date.now()}function le(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function de(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var i=t<0||arguments.length<=t?void 0:arguments[t];if(null!=i)for(var s=Object.keys(Object(i)),r=0,n=s.length;r<n;r+=1){var o=s[r],a=Object.getOwnPropertyDescriptor(i,o);void 0!==a&&a.enumerable&&(le(e[o])&&le(i[o])?de(e[o],i[o]):!le(e[o])&&le(i[o])?(e[o]={},de(e[o],i[o])):e[o]=i[o])}}return e}function ue(e,t){Object.keys(t).forEach((function(i){le(t[i])&&Object.keys(t[i]).forEach((function(s){"function"==typeof t[i][s]&&(t[i][s]=t[i][s].bind(e))})),e[i]=t[i]}))}function ce(){return ie||(ie=function(){var e=q(),t=W();return{touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ie}function pe(e){return void 0===e&&(e={}),se||(se=function(e){var t=(void 0===e?{}:e).userAgent,i=ce(),s=q(),r=s.navigator.platform,n=t||s.navigator.userAgent,o={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,d=n.match(/(Android);?[\s\/]+([\d.]+)?/),u=n.match(/(iPad).*OS\s([\d_]+)/),c=n.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r,f="MacIntel"===r;return!u&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((u=n.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),f=!1),d&&!h&&(o.os="android",o.android=!0),(u||p||c)&&(o.os="ios",o.ios=!0),o}(e)),se}function he(){return re||(re=function(){var e,t=q();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),re}Object.keys(ne).forEach((function(e){te.fn[e]=ne[e]}));var fe={name:"resize",create:function(){var e=this;de(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=q();t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var t=q();t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function ve(){return(ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}var me={attach:function(e,t){void 0===t&&(t={});var i=q(),s=this,r=new(i.MutationObserver||i.WebkitMutationObserver)((function(e){if(1!==e.length){var t=function(){s.emit("observerUpdate",e[0])};i.requestAnimationFrame?i.requestAnimationFrame(t):i.setTimeout(t,0)}else s.emit("observerUpdate",e[0])}));r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),s.observer.observers.push(r)},init:function(){if(this.support.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},ge={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){ue(this,{observer:ve({},me,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}};function ye(e){var t=W(),i=q(),s=this.touchEventsData,r=this.params,n=this.touches;if(!this.animating||!r.preventInteractionOnTransition){var o=e;o.originalEvent&&(o=o.originalEvent);var a=te(o.target);if("wrapper"!==r.touchEventsTarget||a.closest(this.wrapperEl).length)if(s.isTouchEvent="touchstart"===o.type,s.isTouchEvent||!("which"in o)||3!==o.which)if(!(!s.isTouchEvent&&"button"in o&&o.button>0))if(!s.isTouched||!s.isMoved)if(!!r.noSwipingClass&&""!==r.noSwipingClass&&o.target&&o.target.shadowRoot&&e.path&&e.path[0]&&(a=te(e.path[0])),r.noSwiping&&a.closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])this.allowClick=!0;else if(!r.swipeHandler||a.closest(r.swipeHandler)[0]){n.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,n.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;var l=n.currentX,d=n.currentY,u=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,c=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!u||!(l<=c||l>=i.innerWidth-c)){if(de(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=l,n.startY=d,s.touchStartTime=ae(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==o.type){var p=!0;a.is(s.formElements)&&(p=!1),t.activeElement&&te(t.activeElement).is(s.formElements)&&t.activeElement!==a[0]&&t.activeElement.blur();var h=p&&this.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!h||a[0].isContentEditable||o.preventDefault()}this.emit("touchStart",o)}}}}function we(e){var t=W(),i=this.touchEventsData,s=this.params,r=this.touches,n=this.rtlTranslate,o=e;if(o.originalEvent&&(o=o.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===o.type){var a="touchmove"===o.type&&o.targetTouches&&(o.targetTouches[0]||o.changedTouches[0]),l="touchmove"===o.type?a.pageX:o.pageX,d="touchmove"===o.type?a.pageY:o.pageY;if(o.preventedByNestedSwiper)return r.startX=l,void(r.startY=d);if(!this.allowTouchMove)return this.allowClick=!1,void(i.isTouched&&(de(r,{startX:l,startY:d,currentX:l,currentY:d}),i.touchStartTime=ae()));if(i.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(this.isVertical()){if(d<r.startY&&this.translate<=this.maxTranslate()||d>r.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(l<r.startX&&this.translate<=this.maxTranslate()||l>r.startX&&this.translate>=this.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&o.target===t.activeElement&&te(o.target).is(i.formElements))return i.isMoved=!0,void(this.allowClick=!1);if(i.allowTouchCallbacks&&this.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){r.currentX=l,r.currentY=d;var u=r.currentX-r.startX,c=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(c,2))<this.params.threshold)){var p;if(void 0===i.isScrolling)this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:u*u+c*c>=25&&(p=180*Math.atan2(Math.abs(c),Math.abs(u))/Math.PI,i.isScrolling=this.isHorizontal()?p>s.touchAngle:90-p>s.touchAngle);if(i.isScrolling&&this.emit("touchMoveOpposite",o),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){this.allowClick=!1,!s.cssMode&&o.cancelable&&o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),i.isMoved||(s.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!s.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",o)),this.emit("sliderMove",o),i.isMoved=!0;var h=this.isHorizontal()?u:c;r.diff=h,h*=s.touchRatio,n&&(h=-h),this.swipeDirection=h>0?"prev":"next",i.currentTranslate=h+i.startTranslate;var f=!0,v=s.resistanceRatio;if(s.touchReleaseOnEdges&&(v=0),h>0&&i.currentTranslate>this.minTranslate()?(f=!1,s.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+h,v))):h<0&&i.currentTranslate<this.maxTranslate()&&(f=!1,s.resistance&&(i.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-i.startTranslate-h,v))),f&&(o.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(h)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),s.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:ae()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",o)}function Se(e){var t=this,i=t.touchEventsData,s=t.params,r=t.touches,n=t.rtlTranslate,o=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",d),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,c=ae(),p=c-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap click",d),p<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",d)),i.lastClickTime=ae(),oe((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=s.followFinger?n?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var h=i.velocities.pop(),f=i.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<s.freeModeMinimumVelocity&&(t.velocity=0),(m>150||ae()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var g=1e3*s.freeModeMomentumRatio,y=t.velocity*g,w=t.translate+y;n&&(w=-w);var S,b,T=!1,C=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(w<t.maxTranslate())s.freeModeMomentumBounce?(w+t.maxTranslate()<-C&&(w=t.maxTranslate()-C),S=t.maxTranslate(),T=!0,i.allowMomentumBounce=!0):w=t.maxTranslate(),s.loop&&s.centeredSlides&&(b=!0);else if(w>t.minTranslate())s.freeModeMomentumBounce?(w-t.minTranslate()>C&&(w=t.minTranslate()+C),S=t.minTranslate(),T=!0,i.allowMomentumBounce=!0):w=t.minTranslate(),s.loop&&s.centeredSlides&&(b=!0);else if(s.freeModeSticky){for(var x,E=0;E<l.length;E+=1)if(l[E]>-w){x=E;break}w=-(w=Math.abs(l[x]-w)<Math.abs(l[x-1]-w)||"next"===t.swipeDirection?l[x]:l[x-1])}if(b&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(g=n?Math.abs((-w-t.translate)/t.velocity):Math.abs((w-t.translate)/t.velocity),s.freeModeSticky){var M=Math.abs((n?-w:w)-t.translate),P=t.slidesSizesGrid[t.activeIndex];g=M<P?s.speed:M<2*P?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void t.slideToClosest();s.freeModeMomentumBounce&&T?(t.updateProgress(S),t.setTransition(g),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(s.speed),setTimeout((function(){t.setTranslate(S),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(w),t.setTransition(g),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(w),t.updateActiveIndex(),t.updateSlidesClasses()}else if(s.freeModeSticky)return void t.slideToClosest();(!s.freeModeMomentum||p>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var O=0,k=t.slidesSizesGrid[0],L=0;L<a.length;L+=L<s.slidesPerGroupSkip?1:s.slidesPerGroup){var B=L<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==a[L+B]?u>=a[L]&&u<a[L+B]&&(O=L,k=a[L+B]-a[L]):u>=a[L]&&(O=L,k=a[a.length-1]-a[a.length-2])}var A=(u-a[O])/k,z=O<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(p>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(A>=s.longSwipesRatio?t.slideTo(O+z):t.slideTo(O)),"prev"===t.swipeDirection&&(A>1-s.longSwipesRatio?t.slideTo(O+z):t.slideTo(O))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(d.target===t.navigation.nextEl||d.target===t.navigation.prevEl)?d.target===t.navigation.nextEl?t.slideTo(O+z):t.slideTo(O):("next"===t.swipeDirection&&t.slideTo(O+z),"prev"===t.swipeDirection&&t.slideTo(O))}}}function be(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,s=this.allowSlidePrev,r=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}function Te(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Ce(){var e=this.wrapperEl,t=this.rtlTranslate;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=t?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var i=this.maxTranslate()-this.minTranslate();(0===i?0:(this.translate-this.minTranslate())/i)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}var xe=!1;function Ee(){}var Me={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,nested:!1,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,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,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",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 Pe(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var Oe={modular:{useParams:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i];s.params&&de(e,s.params)}))},useModules:function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i],r=e[i]||{};s.on&&t.on&&Object.keys(s.on).forEach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(r)}))}},eventsEmitter:{on:function(e,t,i){var s=this;if("function"!=typeof t)return s;var r=i?"unshift":"push";return e.split(" ").forEach((function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)})),s},once:function(e,t,i){var s=this;if("function"!=typeof t)return s;function r(){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];t.apply(s,n)}return r.__emitterProxy=t,s.on(e,r,i)},onAny:function(e,t){if("function"!=typeof e)return this;var i=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[i](e),this},offAny:function(e){if(!this.eventsAnyListeners)return this;var t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off:function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((function(s,r){(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},emit:function(){var e,t,i,s=this;if(!s.eventsListeners)return s;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];"string"==typeof n[0]||Array.isArray(n[0])?(e=n[0],t=n.slice(1,n.length),i=s):(e=n[0].events,t=n[0].data,i=n[0].context||s),t.unshift(i);var a=Array.isArray(e)?e:e.split(" ");return a.forEach((function(e){s.eventsAnyListeners&&s.eventsAnyListeners.length&&s.eventsAnyListeners.forEach((function(s){s.apply(i,[e].concat(t))})),s.eventsListeners&&s.eventsListeners[e]&&s.eventsListeners[e].forEach((function(e){e.apply(i,t)}))})),s}},update:{updateSize:function(){var e,t,i=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),t=t-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),de(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=q(),t=this.params,i=this.$wrapperEl,s=this.size,r=this.rtlTranslate,n=this.wrongRTL,o=this.virtual&&t.virtual.enabled,a=o?this.virtual.slides.length:this.slides.length,l=i.children("."+this.params.slideClass),d=o?this.virtual.slides.length:l.length,u=[],c=[],p=[];function h(e,i){return!t.cssMode||i!==l.length-1}var f=t.slidesOffsetBefore;"function"==typeof f&&(f=t.slidesOffsetBefore.call(this));var v=t.slidesOffsetAfter;"function"==typeof v&&(v=t.slidesOffsetAfter.call(this));var m=this.snapGrid.length,g=this.slidesGrid.length,y=t.spaceBetween,w=-f,S=0,b=0;if(void 0!==s){var T,C;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),this.virtualSize=-y,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(T=Math.floor(d/t.slidesPerColumn)===d/this.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var x,E=t.slidesPerColumn,M=T/E,P=Math.floor(d/t.slidesPerColumn),O=0;O<d;O+=1){C=0;var k=l.eq(O);if(t.slidesPerColumn>1){var L=void 0,B=void 0,A=void 0;if("row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){var z=Math.floor(O/(t.slidesPerGroup*t.slidesPerColumn)),I=O-t.slidesPerColumn*t.slidesPerGroup*z,_=0===z?t.slidesPerGroup:Math.min(Math.ceil((d-z*E*t.slidesPerGroup)/E),t.slidesPerGroup);L=(B=I-(A=Math.floor(I/_))*_+z*t.slidesPerGroup)+A*T/E,k.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===t.slidesPerColumnFill?(A=O-(B=Math.floor(O/E))*E,(B>P||B===P&&A===E-1)&&(A+=1)>=E&&(A=0,B+=1)):B=O-(A=Math.floor(O/M))*M;k.css("margin-"+(this.isHorizontal()?"top":"left"),0!==A&&t.spaceBetween&&t.spaceBetween+"px")}if("none"!==k.css("display")){if("auto"===t.slidesPerView){var D=e.getComputedStyle(k[0],null),N=k[0].style.transform,j=k[0].style.webkitTransform;if(N&&(k[0].style.transform="none"),j&&(k[0].style.webkitTransform="none"),t.roundLengths)C=this.isHorizontal()?k.outerWidth(!0):k.outerHeight(!0);else if(this.isHorizontal()){var G=parseFloat(D.getPropertyValue("width")||0),V=parseFloat(D.getPropertyValue("padding-left")||0),F=parseFloat(D.getPropertyValue("padding-right")||0),R=parseFloat(D.getPropertyValue("margin-left")||0),H=parseFloat(D.getPropertyValue("margin-right")||0),W=D.getPropertyValue("box-sizing");if(W&&"border-box"===W)C=G+R+H;else{var $=k[0],Y=$.clientWidth;C=G+V+F+R+H+($.offsetWidth-Y)}}else{var X=parseFloat(D.getPropertyValue("height")||0),U=parseFloat(D.getPropertyValue("padding-top")||0),K=parseFloat(D.getPropertyValue("padding-bottom")||0),Z=parseFloat(D.getPropertyValue("margin-top")||0),J=parseFloat(D.getPropertyValue("margin-bottom")||0),Q=D.getPropertyValue("box-sizing");if(Q&&"border-box"===Q)C=X+Z+J;else{var ee=k[0],te=ee.clientHeight;C=X+U+K+Z+J+(ee.offsetHeight-te)}}N&&(k[0].style.transform=N),j&&(k[0].style.webkitTransform=j),t.roundLengths&&(C=Math.floor(C))}else C=(s-(t.slidesPerView-1)*y)/t.slidesPerView,t.roundLengths&&(C=Math.floor(C)),l[O]&&(this.isHorizontal()?l[O].style.width=C+"px":l[O].style.height=C+"px");l[O]&&(l[O].swiperSlideSize=C),p.push(C),t.centeredSlides?(w=w+C/2+S/2+y,0===S&&0!==O&&(w=w-s/2-y),0===O&&(w=w-s/2-y),Math.abs(w)<.001&&(w=0),t.roundLengths&&(w=Math.floor(w)),b%t.slidesPerGroup==0&&u.push(w),c.push(w)):(t.roundLengths&&(w=Math.floor(w)),(b-Math.min(this.params.slidesPerGroupSkip,b))%this.params.slidesPerGroup==0&&u.push(w),c.push(w),w=w+C+y),this.virtualSize+=C+y,S=C,b+=1}}if(this.virtualSize=Math.max(this.virtualSize,s)+v,r&&n&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:this.virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(this.isHorizontal()?i.css({width:this.virtualSize+t.spaceBetween+"px"}):i.css({height:this.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(this.virtualSize=(C+t.spaceBetween)*T,this.virtualSize=Math.ceil(this.virtualSize/t.slidesPerColumn)-t.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+t.spaceBetween+"px"}):i.css({height:this.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){x=[];for(var ie=0;ie<u.length;ie+=1){var se=u[ie];t.roundLengths&&(se=Math.floor(se)),u[ie]<this.virtualSize+u[0]&&x.push(se)}u=x}if(!t.centeredSlides){x=[];for(var re=0;re<u.length;re+=1){var ne=u[re];t.roundLengths&&(ne=Math.floor(ne)),u[re]<=this.virtualSize-s&&x.push(ne)}u=x,Math.floor(this.virtualSize-s)-Math.floor(u[u.length-1])>1&&u.push(this.virtualSize-s)}if(0===u.length&&(u=[0]),0!==t.spaceBetween&&(this.isHorizontal()?r?l.filter(h).css({marginLeft:y+"px"}):l.filter(h).css({marginRight:y+"px"}):l.filter(h).css({marginBottom:y+"px"})),t.centeredSlides&&t.centeredSlidesBounds){var oe=0;p.forEach((function(e){oe+=e+(t.spaceBetween?t.spaceBetween:0)}));var ae=(oe-=t.spaceBetween)-s;u=u.map((function(e){return e<0?-f:e>ae?ae+v:e}))}if(t.centerInsufficientSlides){var le=0;if(p.forEach((function(e){le+=e+(t.spaceBetween?t.spaceBetween:0)})),(le-=t.spaceBetween)<s){var ue=(s-le)/2;u.forEach((function(e,t){u[t]=e-ue})),c.forEach((function(e,t){c[t]=e+ue}))}}de(this,{slides:l,snapGrid:u,slidesGrid:c,slidesSizesGrid:p}),d!==a&&this.emit("slidesLengthChange"),u.length!==m&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),c.length!==g&&this.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=[],s=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)this.visibleSlides.each((function(e){i.push(e)}));else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var r=this.activeIndex+t;if(r>this.slides.length)break;i.push(this.slides.eq(r)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var n=i[t].offsetHeight;s=n>s?n:s}s&&this.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.slides,s=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var r=-e;s&&(r=e),i.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var n=0;n<i.length;n+=1){var o=i[n],a=(r+(t.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var l=-(r-o.swiperSlideOffset),d=l+this.slidesSizesGrid[n];(l>=0&&l<this.size-1||d>1&&d<=this.size||l<=0&&d>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(n),i.eq(n).addClass(t.slideVisibleClass))}o.progress=s?-a:a}this.visibleSlides=te(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxTranslate()-this.minTranslate(),r=this.progress,n=this.isBeginning,o=this.isEnd,a=n,l=o;0===s?(r=0,n=!0,o=!0):(n=(r=(e-this.minTranslate())/s)<=0,o=r>=1),de(this,{progress:r,isBeginning:n,isEnd:o}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&this.updateSlidesProgress(e),n&&!a&&this.emit("reachBeginning toEdge"),o&&!l&&this.emit("reachEnd toEdge"),(a&&!n||l&&!o)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperEl,r=this.activeIndex,n=this.realIndex,o=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=o?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+n+'"]').addClass(i.slideDuplicateActiveClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]').addClass(i.slideDuplicateActiveClass));var a=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===a.length&&(a=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,r=this.snapGrid,n=this.params,o=this.activeIndex,a=this.realIndex,l=this.snapIndex,d=e;if(void 0===d){for(var u=0;u<s.length;u+=1)void 0!==s[u+1]?i>=s[u]&&i<s[u+1]-(s[u+1]-s[u])/2?d=u:i>=s[u]&&i<s[u+1]&&(d=u+1):i>=s[u]&&(d=u);n.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(r.indexOf(i)>=0)t=r.indexOf(i);else{var c=Math.min(n.slidesPerGroupSkip,d);t=c+Math.floor((d-c)/n.slidesPerGroup)}if(t>=r.length&&(t=r.length-1),d!==o){var p=parseInt(this.slides.eq(d).attr("data-swiper-slide-index")||d,10);de(this,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:d}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),a!==p&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=te(e.target).closest("."+t.slideClass)[0],s=!1;if(i)for(var r=0;r<this.slides.length;r+=1)this.slides[r]===i&&(s=!0);if(!i||!s)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(te(i).attr("data-swiper-slide-index"),10):this.clickedIndex=te(i).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,s=this.translate,r=this.$wrapperEl;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;var n=function(e,t){void 0===t&&(t="x");var i,s,r,n=q(),o=n.getComputedStyle(e,null);return n.WebKitCSSMatrix?((s=o.transform||o.webkitTransform).split(",").length>6&&(s=s.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new n.WebKitCSSMatrix("none"===s?"":s)):i=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(s=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(r[0],e);return i&&(n=-n),n||0},setTranslate:function(e,t){var i=this.rtlTranslate,s=this.params,r=this.$wrapperEl,n=this.wrapperEl,o=this.progress,a=0,l=0;this.isHorizontal()?a=i?-e:e:l=e,s.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),s.cssMode?n[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-a:-l:s.virtualTranslate||r.transform("translate3d("+a+"px, "+l+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?a:l;var d=this.maxTranslate()-this.minTranslate();(0===d?0:(e-this.minTranslate())/d)!==o&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);var n=this,o=n.params,a=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var l,d=n.minTranslate(),u=n.maxTranslate();if(l=s&&e>d?d:s&&e<u?u:e,n.updateProgress(l),o.cssMode){var c,p=n.isHorizontal();if(0===t)a[p?"scrollLeft":"scrollTop"]=-l;else if(a.scrollTo)a.scrollTo(((c={})[p?"left":"top"]=-l,c.behavior="smooth",c));else a[p?"scrollLeft":"scrollTop"]=-l;return!0}return 0===t?(n.setTransition(0),n.setTranslate(l),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(l),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListene