You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0 lines
118 KiB

2 years ago
  1. (function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Swiper=t()})(this,function(){"use strict";function t(n,t){var s=[],r=0,h,c,e,o;if(n&&!t&&n instanceof f)return n;if(n)if(typeof n=="string")if(e=n.trim(),e.indexOf("<")>=0&&e.indexOf(">")>=0)for(o="div",e.indexOf("<li")===0&&(o="ul"),e.indexOf("<tr")===0&&(o="tbody"),(e.indexOf("<td")===0||e.indexOf("<th")===0)&&(o="tr"),e.indexOf("<tbody")===0&&(o="table"),e.indexOf("<option")===0&&(o="select"),c=u.createElement(o),c.innerHTML=e,r=0;r<c.childNodes.length;r+=1)s.push(c.childNodes[r]);else for(h=t||n[0]!=="#"||n.match(/[ .<>:~]/)?(t||u).querySelectorAll(n.trim()):[u.getElementById(n.trim().split("#")[1])],r=0;r<h.length;r+=1)h[r]&&s.push(h[r]);else if(n.nodeType||n===i||n===u)s.push(n);else if(n.length>0&&n[0].nodeType)for(r=0;r<n.length;r+=1)s.push(n[r]);return new f(s)}function d(n){for(var i=[],t=0;t<n.length;t+=1)i.indexOf(n[t])===-1&&i.push(n[t]);return i}function oi(n){var u=this,r,i,t;if(typeof n=="undefined")return this;for(r=n.split(" "),i=0;i<r.length;i+=1)for(t=0;t<this.length;t+=1)typeof u[t].classList!="undefined"&&u[t].classList.add(r[i]);return this}function si(n){for(var t,r=this,u=n.split(" "),i=0;i<u.length;i+=1)for(t=0;t<this.length;t+=1)typeof r[t].classList!="undefined"&&r[t].classList.remove(u[i]);return this}function hi(n){return this[0]?this[0].classList.contains(n):!1}function ci(n){for(var t,r=this,u=n.split(" "),i=0;i<u.length;i+=1)for(t=0;t<this.length;t+=1)typeof r[t].classList!="undefined"&&r[t].classList.toggle(u[i]);return this}function li(n,t){var f=arguments,u=this,i,r;if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):undefined;for(i=0;i<this.length;i+=1)if(f.length===2)u[i].setAttribute(n,t);else for(r in n)u[i][r]=n[r],u[i].setAttribute(r,n[r]);return this}function ai(n){for(var i=this,t=0;t<this.length;t+=1)i[t].removeAttribute(n);return this}function vi(n,t){var f=this,i,u,r;if(typeof t=="undefined")return(i=this[0],i)?i.dom7ElementDataStorage&&n in i.dom7ElementDataStorage?i.dom7ElementDataStorage[n]:(u=i.getAttribute("data-"+n),u)?u:undefined:undefined;for(r=0;r<this.length;r+=1)i=f[r],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[n]=t;return this}function yi(n){for(var i,r=this,t=0;t<this.length;t+=1)i=r[t].style,i.webkitTransform=n,i.transform=n;return this}function pi(n){var r=this,t,i;for(typeof n!="string"&&(n=n+"ms"),t=0;t<this.length;t+=1)i=r[t].style,i.webkitTransitionDuration=n,i.transitionDuration=n;return this}function wi(){function y(n){var f=n.target,i,e,r;if(f)if(i=n.target.dom7EventData||[],i.indexOf(n)<0&&i.unshift(n),t(f).is(c))u.apply(f,i);else for(e=t(f).parents(),r=0;r<e.length;r+=1)t(e[r]).is(c)&&u.apply(e[r],i)}function p(n){var t=n&&n.target?n.target.dom7EventData||[]:[];t.indexOf(n)<0&&t.unshift(n);u.apply(this,t)}for(var w=this,h,r=[],a=arguments.length,e,i,l,n,o,s;a--;)r[a]=arguments[a];var v=r[0],c=r[1],u=r[2],f=r[3];for(typeof r[1]=="function"&&(h=r,v=h[0],u=h[1],f=h[2],c=undefined),f||(f=!1),e=v.split(" "),l=0;l<this.length;l+=1)if(n=w[l],c)for(i=0;i<e.length;i+=1)s=e[i],n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[s]||(n.dom7LiveListeners[s]=[]),n.dom7LiveListeners[s].push({listener:u,proxyListener:y}),n.addEventListener(s,y,f);else for(i=0;i<e.length;i+=1)o=e[i],n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[o]||(n.dom7Listeners[o]=[]),n.dom7Listeners[o].push({listener:u,proxyListener:p}),n.addEventListener(o,p,f);return this}function bi(){for(var p=this,e,n=[],l=arguments.length,v,s,f,h,t,i,r,c;l--;)n[l]=arguments[l];var y=n[0],a=n[1],o=n[2],u=n[3];for(typeof n[1]=="function"&&(e=n,y=e[0],o=e[1],u=e[2],a=undefined),u||(u=!1),v=y.split(" "),s=0;s<v.length;s+=1)for(f=v[s],h=0;h<this.length;h+=1)for(t=p[h],i=void 0,!a&&t.dom7Listeners?i=t.dom7Listeners[f]:a&&t.dom7LiveListeners&&(i=t.dom7LiveListeners[f]),r=i.length-1;r>=0;r-=1)c=i[r],o&&c.listener===o?(t.removeEventListener(f,c.proxyListener,u),i.splice(r,1)):o||(t.removeEv