/* copyright (c) federico zivolo 2019 distributed under the mit license (license terms are at http://opensource.org/licenses/mit). */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.popper=t()})(this,function(){'use strict';function e(e){return e&&'[object function]'==={}.tostring.call(e)}function t(e,t){if(1!==e.nodetype)return[];var o=e.ownerdocument.defaultview,n=o.getcomputedstyle(e,null);return t?n[t]:n}function o(e){return'html'===e.nodename?e:e.parentnode||e.host}function n(e){if(!e)return document.body;switch(e.nodename){case'html':case'body':return e.ownerdocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowx,s=i.overflowy;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function r(e){return 11===e?pe:10===e?se:pe||se}function p(e){if(!e)return document.documentelement;for(var o=r(10)?document.body:null,n=e.offsetparent||null;n===o&&e.nextelementsibling;)n=(e=e.nextelementsibling).offsetparent;var i=n&&n.nodename;return i&&'body'!==i&&'html'!==i?-1!==['th','td','table'].indexof(n.nodename)&&'static'===t(n,'position')?p(n):n:e?e.ownerdocument.documentelement:document.documentelement}function s(e){var t=e.nodename;return'body'!==t&&('html'===t||p(e.firstelementchild)===e)}function d(e){return null===e.parentnode?e:d(e.parentnode)}function a(e,t){if(!e||!e.nodetype||!t||!t.nodetype)return document.documentelement;var o=e.comparedocumentposition(t)&node.document_position_following,n=o?e:t,i=o?t:e,r=document.createrange();r.setstart(n,0),r.setend(i,0);var l=r.commonancestorcontainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1=o.clientwidth&&n>=o.clientheight}),l=0a[e]&&!t.escapewithreference&&(n=q(f[o],a[e]-('right'===e?f.width:f.height))),le({},o,n)}};return l.foreach(function(e){var t=-1===['left','top'].indexof(e)?'secondary':'primary';f=fe({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundarieselement:'scrollparent'},keeptogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=z,p=-1!==['top','bottom'].indexof(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!k(e.instance.modifiers,'arrow','keeptogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.queryselector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('warning: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexof(r),l=a?'height':'width',f=a?'top':'left',m=f.tolowercase(),h=a?'left':'top',c=a?'bottom':'right',u=s(i)[l];d[c]-us[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parsefloat(w['margin'+f],10),e=parsefloat(w['border'+f+'width'],10),v=b-e.offsets.popper[m]-y-e;return v=ee(q(s[l]-u,v),0),e.arrowelement=i,e.offsets.arrow=(n={},le(n,m,$(v)),le(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(w(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalplacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundarieselement,e.positionfixed),n=e.placement.split('-')[0],i=t(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ge.flip:p=[n,i];break;case ge.clockwise:p=g(n);break;case ge.counterclockwise:p=g(n,!0);break;default:p=t.behavior;}return p.foreach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=t(n);var a=e.offsets.popper,l=e.offsets.reference,f=z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)f(l.top)||'bottom'===n&&f(a.top)f(o.right),g=f(a.top)f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexof(n),y=!!t.flipvariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u),e=!!t.flipvariationsbycontent&&(w&&'start'===r&&c||w&&'end'===r&&h||!w&&'start'===r&&u||!w&&'end'===r&&g),v=y||e;(m||b||v)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),v&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=fe({},e.offsets.popper,c(e.instance.popper,e.offsets.reference,e.placement)),e=p(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundarieselement:'viewport',flipvariations:!1,flipvariationsbycontent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexof(o),s=-1===['top','left'].indexof(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=t(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!k(e.instance.modifiers,'hide','preventoverflow'))return e;var t=e.offsets.reference,o=d(e.instance.modifiers,function(e){return'preventoverflow'===e.name}).boundaries;if(t.bottomo.right||t.top>o.bottom||t.rightwindow.devicepixelratio||!me),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=b('transform');if(d='bottom'==c?'html'===l.nodename?-l.clientheight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'html'===l.nodename?-l.clientwidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willchange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willchange=c+', '+g}var e={"x-placement":e.placement};return e.attributes=fe({},e,e.attributes),e.styles=fe({},m,e.styles),e.arrowstyles=fe({},e.offsets.arrow,e.arrowstyles),e},gpuacceleration:!0,x:'bottom',y:'right'},applystyle:{order:900,enabled:!0,fn:function(e){return v(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowelement&&object.keys(e.arrowstyles).length&&v(e.arrowelement,e.arrowstyles),e},onload:function(e,t,o,n,i){var r=l(i,t,e,o.positionfixed),p=o(o.placement,r,t,e,o.modifiers.flip.boundarieselement,o.modifiers.flip.padding);return t.setattribute('x-placement',p),v(t,{position:o.positionfixed?'fixed':'absolute'}),o},gpuacceleration:void 0}}},ue}); // /*! * bootstrap v4.3.1 (https://getbootstrap.com/) * copyright 2011-2019 the bootstrap authors (https://github.com/twbs/bootstrap/graphs/contributors) * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jquery,t.popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;nthis._items.length-1||t<0))if(this._issliding)g(this._element).one(q.slid,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=ndocument.documentelement.clientheight;!this._isbodyoverflowing&&t&&(this._element.style.paddingleft=this._scrollbarwidth+"px"),this._isbodyoverflowing&&!t&&(this._element.style.paddingright=this._scrollbarwidth+"px")},t._resetadjustments=function(){this._element.style.paddingleft="",this._element.style.paddingright=""},t._checkscrollbar=function(){var t=document.body.getboundingclientrect();this._isbodyoverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackplacement:"flip",boundary:"scrollparent",sanitize:!0,sanitizefn:null,whitelist:ee},je="show",he="out",re={hide:"hide"+de,hidden:"hidden"+de,show:"show"+de,shown:"shown"+de,inserted:"inserted"+de,click:"click"+de,focusin:"focusin"+de,focusout:"focusout"+de,mouseenter:"mouseenter"+de,mouseleave:"mouseleave"+de},xe="fade",fe="show",ue=".tooltip-inner",we=".arrow",qe="hover",me="focus",ke="click",qe="manual",be=function(){function i(t,e){if("undefined"==typeof u)throw new typeerror("bootstrap's tooltips require popper.js (https://popper.js.org/)");this._isenabled=!0,this._timeout=0,this._hoverstate="",this._activetrigger={},this._popper=null,this.element=t,this.config=this._getconfig(e),this.tip=null,this._setlisteners()}var t=i.prototype;return t.enable=function(){this._isenabled=!0},t.disable=function(){this._isenabled=!1},t.toggleenabled=function(){this._isenabled=!this._isenabled},t.toggle=function(t){if(this._isenabled)if(t){var e=this.constructor.data_key,n=g(t.currenttarget).data(e);n||(n=new this.constructor(t.currenttarget,this._getdelegateconfig()),g(t.currenttarget).data(e,n)),n._activetrigger.click=!n._activetrigger.click,n._iswithactivetrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.gettipelement()).hasclass(fe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){cleartimeout(this._timeout),g.removedata(this.element,this.constructor.data_key),g(this.element).off(this.constructor.event_key),g(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&g(this.tip).remove(),this._isenabled=null,this._timeout=null,this._hoverstate=null,(this._activetrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new error("please use show on visible elements");var t=g.event(this.constructor.event.show);if(this.iswithcontent()&&this._isenabled){g(this.element).trigger(t);var n=_.findshadowroot(this.element),i=g.contains(null!==n?n:this.element.ownerdocument.documentelement,this.element);if(t.isdefaultprevented()||!i)return;var o=this.gettipelement(),r=_.getuid(this.constructor.name);o.setattribute("id",r),this.element.setattribute("aria-describedby",r),this.setcontent(),this.config.animation&&g(o).addclass(xe);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getattachment(s);this.addattachmentclass(a);var l=this._getcontainer();g(o).data(this.constructor.data_key,this),g.contains(this.element.ownerdocument.documentelement,this.tip)||g(o).appendto(l),g(this.element).trigger(this.constructor.event.inserted),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:this._getoffset(),flip:{behavior:this.config.fallbackplacement},arrow:{element:we},preventoverflow:{boundarieselement:this.config.boundary}},oncreate:function(t){t.originalplacement!==t.placement&&e._handlepopperplacementchange(t)},onupdate:function(t){return e._handlepopperplacementchange(t)}}),g(o).addclass(fe),"ontouchstart"in document.documentelement&&g(document.body).children().on("mouseover",null,g.noop);var c=function(){e.config.animation&&e._fixtransition();var t=e._hoverstate;e._hoverstate=null,g(e.element).trigger(e.constructor.event.shown),t===he&&e._leave(null,e)};if(g(this.tip).hasclass(xe)){var h=_.gettransitiondurationfromelement(this.tip);g(this.tip).one(_.transition_end,c).emulatetransitionend(h)}else c()}},t.hide=function(t){var e=this,n=this.gettipelement(),i=g.event(this.constructor.event.hide),o=function(){e._hoverstate!==je&&n.parentnode&&n.parentnode.removechild(n),e._cleantipclass(),e.element.removeattribute("aria-describedby"),g(e.element).trigger(e.constructor.event.hidden),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isdefaultprevented()){if(g(n).removeclass(fe),"ontouchstart"in document.documentelement&&g(document.body).children().off("mouseover",null,g.noop),this._activetrigger[ke]=!1,this._activetrigger[me]=!1,this._activetrigger[qe]=!1,g(this.tip).hasclass(xe)){var r=_.gettransitiondurationfromelement(n);g(n).one(_.transition_end,o).emulatetransitionend(r)}else o();this._hoverstate=""}},t.update=function(){null!==this._popper&&this._popper.scheduleupdate()},t.iswithcontent=function(){return boolean(this.gettitle())},t.addattachmentclass=function(t){g(this.gettipelement()).addclass(ae+"-"+t)},t.gettipelement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setcontent=function(){var t=this.gettipelement();this.setelementcontent(g(t.queryselectorall(ue)),this.gettitle()),g(t).removeclass(xe+" "+fe)},t.setelementcontent=function(t,e){"object"!=typeof e||!e.nodetype&&!e.jquery?this.config.html?(this.config.sanitize&&(e=se(e,this.config.whitelist,this.config.sanitizefn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.gettitle=function(){var t=this.element.getattribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getoffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getcontainer=function(){return!1===this.config.container?document.body:_.iselement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getattachment=function(t){return pe[t.touppercase()]},t._setlisteners=function(){var i=this;this.config.trigger.split(" ").foreach(function(t){if("click"===t)g(i.element).on(i.constructor.event.click,i.config.selector,function(t){return i.toggle(t)});else if(t!==qe){var e=t===qe?i.constructor.event.mouseenter:i.constructor.event.focusin,n=t===qe?i.constructor.event.mouseleave:i.constructor.event.focusout;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixtitle()},t._fixtitle=function(){var t=typeof this.element.getattribute("data-original-title");(this.element.getattribute("title")||"string"!==t)&&(this.element.setattribute("data-original-title",this.element.getattribute("title")||""),this.element.setattribute("title",""))},t._enter=function(t,e){var n=this.constructor.data_key;(e=e||g(t.currenttarget).data(n))||(e=new this.constructor(t.currenttarget,this._getdelegateconfig()),g(t.currenttarget).data(n,e)),t&&(e._activetrigger["focusin"===t.type?me:qe]=!0),g(e.gettipelement()).hasclass(fe)||e._hoverstate===je?e._hoverstate=je:(cleartimeout(e._timeout),e._hoverstate=je,e.config.delay&&e.config.delay.show?e._timeout=settimeout(function(){e._hoverstate===je&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.data_key;(e=e||g(t.currenttarget).data(n))||(e=new this.constructor(t.currenttarget,this._getdelegateconfig()),g(t.currenttarget).data(n,e)),t&&(e._activetrigger["focusout"===t.type?me:qe]=!1),e._iswithactivetrigger()||(cleartimeout(e._timeout),e._hoverstate=he,e.config.delay&&e.config.delay.hide?e._timeout=settimeout(function(){e._hoverstate===he&&e.hide()},e.config.delay.hide):e.hide())},t._iswithactivetrigger=function(){for(var t in this._activetrigger)if(this._activetrigger[t])return!0;return!1},t._getconfig=function(t){var e=g(this.element).data();return object.keys(e).foreach(function(t){-1!==oe.indexof(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.tostring()),"number"==typeof t.content&&(t.content=t.content.tostring()),_.typecheckconfig(be,t,this.constructor.defaulttype),t.sanitize&&(t.template=se(t.template,t.whitelist,t.sanitizefn)),t},t._getdelegateconfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleantipclass=function(){var t=g(this.gettipelement()),e=t.attr("class").match(ne);null!==e&&e.length&&t.removeclass(e.join(""))},t._handlepopperplacementchange=function(t){var e=t.instance;this.tip=e.popper,this._cleantipclass(),this.addattachmentclass(this._getattachment(t.placement))},t._fixtransition=function(){var t=this.gettipelement(),e=this.config.animation;null===t.getattribute("x-placement")&&(g(t).removeclass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jqueryinterface=function(n){return this.each(function(){var t=g(this).data(ie),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(ie,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new typeerror('no method named "'+n+'"');t[n]()}})},s(i,null,[{key:"version",get:function(){return"4.3.1"}},{key:"default",get:function(){return le}},{key:"name",get:function(){return be}},{key:"data_key",get:function(){return ie}},{key:"event",get:function(){return re}},{key:"event_key",get:function(){return de}},{key:"defaulttype",get:function(){return ke}}]),i}();g.fn[be]=be._jqueryinterface,g.fn[be].constructor=be,g.fn[be].noconflict=function(){return g.fn[be]=we,be._jqueryinterface};var ve="popover",ye="bs.popover",ze="."+ye,xe=g.fn[ve],$e="bs-popover",ge=new regexp("(^|\\s)"+$e+"\\s+","g"),je=l({},be.default,{placement:"right",trigger:"click",content:"",template:''}),ze=l({},be.defaulttype,{content:"(string|element|function)"}),tn="fade",en="show",nn=".popover-header",on=".popover-body",rn={hide:"hide"+ze,hidden:"hidden"+ze,show:"show"+ze,shown:"shown"+ze,inserted:"inserted"+ze,click:"click"+ze,focusin:"focusin"+ze,focusout:"focusout"+ze,mouseenter:"mouseenter"+ze,mouseleave:"mouseleave"+ze},sn=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.iswithcontent=function(){return this.gettitle()||this._getcontent()},o.addattachmentclass=function(t){g(this.gettipelement()).addclass($e+"-"+t)},o.gettipelement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setcontent=function(){var t=g(this.gettipelement());this.setelementcontent(t.find(nn),this.gettitle());var e=this._getcontent();"function"==typeof e&&(e=e.call(this.element)),this.setelementcontent(t.find(on),e),t.removeclass(tn+" "+en)},o._getcontent=function(){return this.element.getattribute("data-content")||this.config.content},o._cleantipclass=function(){var t=g(this.gettipelement()),e=t.attr("class").match(ge);null!==e&&0=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t0&&i(e[s],t[s])}))}var s={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 r(){var e="undefined"!=typeof document?document:{};return i(e,s),e}var n={document:s,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 l(){var e="undefined"!=typeof window?window:{};return i(e,n),e}function o(e){return(o=object.setprototypeof?object.getprototypeof:function(e){return e.__proto__||object.getprototypeof(e)})(e)}function d(e,t){return(d=object.setprototypeof||function(e,t){return e.__proto__=t,e})(e,t)}function p(){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 u(e,t,a){return(u=p()?reflect.construct:function(e,t,a){var i=[null];i.push.apply(i,t);var s=new(function.bind.apply(e,i));return a&&d(s,a.prototype),s}).apply(null,arguments)}function c(e){var t="function"==typeof map?new map:void 0;return(c=function(e){if(null===e||(a=e,-1===function.tostring.call(a).indexof("[native code]")))return e;var a;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,i)}function i(){return u(e,arguments,o(this).constructor)}return i.prototype=object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,e)})(e)}var h=function(e){var t,a;function i(t){var a,i,s;return a=e.call.apply(e,[this].concat(t))||this,i=function(e){if(void 0===e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return e}(a),s=i.__proto__,object.defineproperty(i,"__proto__",{get:function(){return s},set:function(e){s.__proto__=e}}),a}return a=e,(t=i).prototype=object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a,i}(c(array));function v(e){void 0===e&&(e=[]);var t=[];return e.foreach((function(e){array.isarray(e)?t.push.apply(t,v(e)):t.push(e)})),t}function f(e,t){return array.prototype.filter.call(e,t)}function m(e,t){var a=l(),i=r(),s=[];if(!t&&e instanceof h)return e;if(!e)return new h(s);if("string"==typeof e){var n=e.trim();if(n.indexof("<")>=0&&n.indexof(">")>=0){var o="div";0===n.indexof("0})).length>0},toggleclass:function(){for(var e=arguments.length,t=new array(e),a=0;a=0;h-=1){var v=c[h];r&&v.listener===r||r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(u.removeeventlistener(d,v.proxylistener,n),c.splice(h,1)):r||(u.removeeventlistener(d,v.proxylistener,n),c.splice(h,1))}}return this},trigger:function(){for(var e=l(),t=arguments.length,a=new array(t),i=0;i0})),p.dispatchevent(u),p.dom7eventdata=[],delete p.dom7eventdata}}return this},transitionend:function(e){var t=this;return e&&t.on("transitionend",(function a(i){i.target===this&&(e.call(this,i),t.off("transitionend",a))})),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=l();return this[0]?e.getcomputedstyle(this[0],null):{}},offset:function(){if(this.length>0){var e=l(),t=r(),a=this[0],i=a.getboundingclientrect(),s=t.body,n=a.clienttop||s.clienttop||0,o=a.clientleft||s.clientleft||0,d=a===e?e.scrolly:a.scrolltop,p=a===e?e.scrollx:a.scrollleft;return{top:i.top+d-n,left:i.left+p-o}}return null},css:function(e,t){var a,i=l();if(1===arguments.length){if("string"!=typeof e){for(a=0;at-1)return m([]);if(e<0){var a=t+e;return m(a<0?[]:[this[a]])}return m([this[e]])},append:function(){for(var e,t=r(),a=0;a=0;a-=1)this[t].insertbefore(s.childnodes[a],this[t].childnodes[0])}else if(e instanceof h)for(a=0;a0?e?this[0].nextelementsibling&&m(this[0].nextelementsibling).is(e)?m([this[0].nextelementsibling]):m([]):this[0].nextelementsibling?m([this[0].nextelementsibling]):m([]):m([])},nextall:function(e){var t=[],a=this[0];if(!a)return m([]);for(;a.nextelementsibling;){var i=a.nextelementsibling;e?m(i).is(e)&&t.push(i):t.push(i),a=i}return m(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previouselementsibling&&m(t.previouselementsibling).is(e)?m([t.previouselementsibling]):m([]):t.previouselementsibling?m([t.previouselementsibling]):m([])}return m([])},prevall:function(e){var t=[],a=this[0];if(!a)return m([]);for(;a.previouselementsibling;){var i=a.previouselementsibling;e?m(i).is(e)&&t.push(i):t.push(i),a=i}return m(t)},parent:function(e){for(var t=[],a=0;a6&&(i=i.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),s=new r.webkitcssmatrix("none"===i?"":i)):a=(s=n.moztransform||n.otransform||n.mstransform||n.mstransform||n.transform||n.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===t&&(i=r.webkitcssmatrix?s.m41:16===a.length?parsefloat(a[12]):parsefloat(a[4])),"y"===t&&(i=r.webkitcssmatrix?s.m42:16===a.length?parsefloat(a[13]):parsefloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"object"===object.prototype.tostring.call(e).slice(8,-1)}function s(e){return"undefined"!=typeof window&&void 0!==window.htmlelement?e instanceof htmlelement:e&&(1===e.nodetype||11===e.nodetype)}function m(){for(var e=object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],a=1;a=0,observer:"mutationobserver"in e||"webkitmutationobserver"in e,passivelistener:function(){var t=!1;try{var a=object.defineproperty({},"passive",{get:function(){t=!0}});e.addeventlistener("testpassivelistener",null,a)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),g}function l(e){return void 0===e&&(e={}),b||(b=function(e){var t=(void 0===e?{}:e).useragent,a=$(),i=l(),s=i.navigator.platform,r=t||i.navigator.useragent,n={ios:!1,android:!1},o=i.screen.width,d=i.screen.height,p=r.match(/(android);?[\s\/]+([\d.]+)?/),u=r.match(/(ipad).*os\s([\d_]+)/),c=r.match(/(ipod)(.*os\s([\d_]+))?/),h=!u&&r.match(/(iphone\sos|ios)\s([\d_]+)/),v="win32"===s,f="macintel"===s;return!u&&f&&a.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexof(o+"x"+d)>=0&&((u=r.match(/(version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),f=!1),p&&!v&&(n.os="android",n.android=!0),(u||h||c)&&(n.os="ios",n.ios=!0),n}(e)),b}function i(){return w||(w=function(){var e,t=l();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)}}()),w}object.keys(y).foreach((function(e){object.defineproperty(m.fn,e,{value:y[e],writable:!0})}));var o={name:"resize",create:function(){var e=this;m(e,{resize:{observer:null,createobserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new resizeobserver((function(t){var a=e.width,i=e.height,s=a,r=i;t.foreach((function(t){var a=t.contentboxsize,i=t.contentrect,n=t.target;n&&n!==e.el||(s=i?i.width:(a[0]||a).inlinesize,r=i?i.height:(a[0]||a).blocksize)})),s===a&&r===i||e.resize.resizehandler()})),e.resize.observer.observe(e.el))},removeobserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},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=l();e.params.resizeobserver&&void 0!==l().resizeobserver?e.resize.createobserver():(t.addeventlistener("resize",e.resize.resizehandler),t.addeventlistener("orientationchange",e.resize.orientationchangehandler))},destroy:function(e){var t=l();e.resize.removeobserver(),t.removeeventlistener("resize",e.resize.resizehandler),t.removeeventlistener("orientationchange",e.resize.orientationchangehandler)}}},a={attach:function(e,t){void 0===t&&(t={});var a=l(),i=this,s=new(a.mutationobserver||a.webkitmutationobserver)((function(e){if(1!==e.length){var t=function(){i.emit("observerupdate",e[0])};a.requestanimationframe?a.requestanimationframe(t):a.settimeout(t,0)}else i.emit("observerupdate",e[0])}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childlist:void 0===t.childlist||t.childlist,characterdata:void 0===t.characterdata||t.characterdata}),i.observer.observers.push(s)},init:function(){var e=this;if(e.support.observer&&e.params.observer){if(e.params.observeparents)for(var t=e.$el.parents(),a=0;a0||s.istouched&&s.ismoved))){!!n.noswipingclass&&""!==n.noswipingclass&&d.target&&d.target.shadowroot&&e.path&&e.path[0]&&(p=m(e.path[0]));var u=n.noswipingselector?n.noswipingselector:"."+n.noswipingclass,c=!(!d.target||!d.target.shadowroot);if(n.noswiping&&(c?function(e,t){return void 0===t&&(t=this),function t(a){return a&&a!==r()&&a!==l()?(a.assignedslot&&(a=a.assignedslot),a.closest(e)||t(a.getrootnode().host)):null}(t)}(u,d.target):p.closest(u)[0]))t.allowclick=!0;else if(!n.swipehandler||p.closest(n.swipehandler)[0]){o.currentx="touchstart"===d.type?d.targettouches[0].pagex:d.pagex,o.currenty="touchstart"===d.type?d.targettouches[0].pagey:d.pagey;var h=o.currentx,v=o.currenty,f=n.edgeswipedetection||n.iosedgeswipedetection,g=n.edgeswipethreshold||n.iosedgeswipethreshold;if(f&&(h<=g||h>=i.innerwidth-g)){if("prevent"!==f)return;e.preventdefault()}if(m(s,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),o.startx=h,o.starty=v,s.touchstarttime=x(),t.allowclick=!0,t.updatesize(),t.swipedirection=void 0,n.threshold>0&&(s.allowthresholdmove=!1),"touchstart"!==d.type){var b=!0;p.is(s.focusableelements)&&(b=!1),a.activeelement&&m(a.activeelement).is(s.focusableelements)&&a.activeelement!==p[0]&&a.activeelement.blur();var w=b&&t.allowtouchmove&&n.touchstartpreventdefault;!n.touchstartforcepreventdefault&&!w||p[0].iscontenteditable||d.preventdefault()}t.emit("touchstart",d)}}}}function g(e){var t=r(),a=this,i=a.toucheventsdata,s=a.params,n=a.touches,l=a.rtltranslate;if(a.enabled){var o=e;if(o.originalevent&&(o=o.originalevent),i.istouched){if(!i.istouchevent||"touchmove"===o.type){var d="touchmove"===o.type&&o.targettouches&&(o.targettouches[0]||o.changedtouches[0]),p="touchmove"===o.type?d.pagex:o.pagex,u="touchmove"===o.type?d.pagey:o.pagey;if(o.preventedbynestedswiper)return n.startx=p,void(n.starty=u);if(!a.allowtouchmove)return a.allowclick=!1,void(i.istouched&&(m(n,{startx:p,starty:u,currentx:p,currenty:u}),i.touchstarttime=x()));if(i.istouchevent&&s.touchreleaseonedges&&!s.loop)if(a.isvertical()){if(un.starty&&a.translate>=a.mintranslate())return i.istouched=!1,void(i.ismoved=!1)}else if(pn.startx&&a.translate>=a.mintranslate())return;if(i.istouchevent&&t.activeelement&&o.target===t.activeelement&&m(o.target).is(i.focusableelements))return i.ismoved=!0,void(a.allowclick=!1);if(i.allowtouchcallbacks&&a.emit("touchmove",o),!(o.targettouches&&o.targettouches.length>1)){n.currentx=p,n.currenty=u;var c=n.currentx-n.startx,h=n.currenty-n.starty;if(!(a.params.threshold&&math.sqrt(math.pow(c,2)+math.pow(h,2))=25&&(v=180*math.atan2(math.abs(h),math.abs(c))/math.pi,i.isscrolling=a.ishorizontal()?v>s.touchangle:90-v>s.touchangle);if(i.isscrolling&&a.emit("touchmoveopposite",o),void 0===i.startmoving&&(n.currentx===n.startx&&n.currenty===n.starty||(i.startmoving=!0)),i.isscrolling)i.istouched=!1;else if(i.startmoving){a.allowclick=!1,!s.cssmode&&o.cancelable&&o.preventdefault(),s.touchmovestoppropagation&&!s.nested&&o.stoppropagation(),i.ismoved||(s.loop&&a.loopfix(),i.starttranslate=a.gettranslate(),a.settransition(0),a.animating&&a.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!s.grabcursor||!0!==a.allowslidenext&&!0!==a.allowslideprev||a.setgrabcursor(!0),a.emit("sliderfirstmove",o)),a.emit("slidermove",o),i.ismoved=!0;var f=a.ishorizontal()?c:h;n.diff=f,f*=s.touchratio,l&&(f=-f),a.swipedirection=f>0?"prev":"next",i.currenttranslate=f+i.starttranslate;var g=!0,b=s.resistanceratio;if(s.touchreleaseonedges&&(b=0),f>0&&i.currenttranslate>a.mintranslate()?(g=!1,s.resistance&&(i.currenttranslate=a.mintranslate()-1+math.pow(-a.mintranslate()+i.starttranslate+f,b))):f<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),a.allowslideprev||a.allowslidenext||(i.currenttranslate=i.starttranslate),s.threshold>0){if(!(math.abs(f)>s.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,n.startx=n.currentx,n.starty=n.currenty,i.currenttranslate=i.starttranslate,void(n.diff=a.ishorizontal()?n.currentx-n.startx:n.currenty-n.starty)}s.followfinger&&!s.cssmode&&((s.freemode||s.watchslidesprogress||s.watchslidesvisibility)&&(a.updateactiveindex(),a.updateslidesclasses()),s.freemode&&(0===i.velocities.length&&i.velocities.push({position:n[a.ishorizontal()?"startx":"starty"],time:i.touchstarttime}),i.velocities.push({position:n[a.ishorizontal()?"currentx":"currenty"],time:x()})),a.updateprogress(i.currenttranslate),a.settranslate(i.currenttranslate))}}}}}else i.startmoving&&i.isscrolling&&a.emit("touchmoveopposite",o)}}function b(e){var t=this,a=t.toucheventsdata,i=t.params,s=t.touches,r=t.rtltranslate,n=t.$wrapperel,l=t.slidesgrid,o=t.snapgrid;if(t.enabled){var d=e;if(d.originalevent&&(d=d.originalevent),a.allowtouchcallbacks&&t.emit("touchend",d),a.allowtouchcallbacks=!1,!a.istouched)return a.ismoved&&i.grabcursor&&t.setgrabcursor(!1),a.ismoved=!1,void(a.startmoving=!1);i.grabcursor&&a.ismoved&&a.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var p,u=x(),c=u-a.touchstarttime;if(t.allowclick&&(t.updateclickedslide(d),t.emit("tap click",d),c<300&&u-a.lastclicktime<300&&t.emit("doubletap doubleclick",d)),a.lastclicktime=x(),e((function(){t.destroyed||(t.allowclick=!0)})),!a.istouched||!a.ismoved||!t.swipedirection||0===s.diff||a.currenttranslate===a.starttranslate)return a.istouched=!1,a.ismoved=!1,void(a.startmoving=!1);if(a.istouched=!1,a.ismoved=!1,a.startmoving=!1,p=i.followfinger?r?t.translate:-t.translate:-a.currenttranslate,!i.cssmode)if(i.freemode){if(p<-t.mintranslate())return void t.slideto(t.activeindex);if(p>-t.maxtranslate())return void(t.slides.length1){var h=a.velocities.pop(),v=a.velocities.pop(),f=h.position-v.position,m=h.time-v.time;t.velocity=f/m,t.velocity/=2,math.abs(t.velocity)150||x()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freemodemomentumvelocityratio,a.velocities.length=0;var g=1e3*i.freemodemomentumratio,b=t.velocity*g,w=t.translate+b;r&&(w=-w);var y,t,c=!1,s=20*math.abs(t.velocity)*i.freemodemomentumbounceratio;if(wt.mintranslate())i.freemodemomentumbounce?(w-t.mintranslate()>s&&(w=t.mintranslate()+s),y=t.mintranslate(),c=!0,a.allowmomentumbounce=!0):w=t.mintranslate(),i.loop&&i.centeredslides&&(t=!0);else if(i.freemodesticky){for(var m,z=0;z-w){m=z;break}w=-(w=math.abs(o[m]-w)=i.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var $=0,l=t.slidessizesgrid[0],i=0;i=l[i]&&p=l[i]&&($=i,l=l[l.length-1]-l[l.length-2])}var a=(p-l[$])/l,d=$i.longswipesms){if(!i.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(a>=i.longswipesratio?t.slideto($+d):t.slideto($)),"prev"===t.swipedirection&&(a>1-i.longswipesratio?t.slideto($+d):t.slideto($))}else{if(!i.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($+d):t.slideto($):("next"===t.swipedirection&&t.slideto($+d),"prev"===t.swipedirection&&t.slideto($))}}}}function h(){var e=this,t=e.params,a=e.el;if(!a||0!==a.offsetwidth){t.breakpoints&&e.setbreakpoint();var i=e.allowslidenext,s=e.allowslideprev,r=e.snapgrid;e.allowslidenext=!0,e.allowslideprev=!0,e.updatesize(),e.updateslides(),e.updateslidesclasses(),("auto"===t.slidesperview||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=s,e.allowslidenext=i,e.params.watchoverflow&&r!==e.snapgrid&&e.checkoverflow()}}function r(e){var t=this;t.enabled&&(t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation())))}function x(){var e=this,t=e.wrapperel,a=e.rtltranslate;if(e.enabled){e.previoustranslate=e.translate,e.ishorizontal()?e.translate=a?t.scrollwidth-t.offsetwidth-t.scrollleft:-t.scrollleft:e.translate=-t.scrolltop,-0===e.translate&&(e.translate=0),e.updateactiveindex(),e.updateslidesclasses();var i=e.maxtranslate()-e.mintranslate();(0===i?0:(e.translate-e.mintranslate())/i)!==e.progress&&e.updateprogress(a?-e.translate:e.translate),e.emit("settranslate",e.translate,!1)}}var y=!1;function v(){}var w={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,cssmode:!1,updateonwindowresize:!0,resizeobserver:!1,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,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,breakpointsbase:"window",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},f={modular:{useparams:function(e){var t=this;t.modules&&object.keys(t.modules).foreach((function(a){var i=t.modules[a];i.params&&m(e,i.params)}))},usemodules:function(e){void 0===e&&(e={});var t=this;t.modules&&object.keys(t.modules).foreach((function(a){var i=t.modules[a],s=e[a]||{};i.on&&t.on&&object.keys(i.on).foreach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(s)}))}},eventsemitter:{on:function(e,t,a){var i=this;if("function"!=typeof t)return i;var s=a?"unshift":"push";return e.split(" ").foreach((function(e){i.eventslisteners[e]||(i.eventslisteners[e]=[]),i.eventslisteners[e][s](t)})),i},once:function(e,t,a){var i=this;if("function"!=typeof t)return i;function s(){i.off(e,s),s.__emitterproxy&&delete s.__emitterproxy;for(var a=arguments.length,r=new array(a),n=0;n=0&&t.eventsanylisteners.splice(a,1),t},off:function(e,t){var a=this;return a.eventslisteners?(e.split(" ").foreach((function(e){void 0===t?a.eventslisteners[e]=[]:a.eventslisteners[e]&&a.eventslisteners[e].foreach((function(i,s){(i===t||i.__emitterproxy&&i.__emitterproxy===t)&&a.eventslisteners[e].splice(s,1)}))})),a):a},emit:function(){var e,t,a,i=this;if(!i.eventslisteners)return i;for(var s=arguments.length,r=new array(s),n=0;n=0&&(w=parsefloat(w.replace("%",""))/100*r),e.virtualsize=-w,n?p.css({marginleft:"",marginbottom:"",margintop:""}):p.css({marginright:"",marginbottom:"",margintop:""}),i.slidespercolumn>1&&(t=math.floor(u/i.slidespercolumn)===u/e.params.slidespercolumn?u:math.ceil(u/i.slidespercolumn)*i.slidespercolumn,"auto"!==i.slidesperview&&"row"===i.slidespercolumnfill&&(t=math.max(t,i.slidesperview*i.slidespercolumn)));for(var s,z,p,k=i.slidespercolumn,$=t/k,l=math.floor(u/i.slidespercolumn),i=0;i1){var a=void 0,d=void 0,n=void 0;if("row"===i.slidespercolumnfill&&i.slidespergroup>1){var g=math.floor(i/(i.slidespergroup*i.slidespercolumn)),b=i-i.slidespercolumn*i.slidespergroup*g,h=0===g?i.slidespergroup:math.min(math.ceil((u-g*k*i.slidespergroup)/k),i.slidespergroup);a=(d=b-(n=math.floor(b/h))*h+g*i.slidespergroup)+n*t/k,o.css({"-webkit-box-ordinal-group":a,"-moz-box-ordinal-group":a,"-ms-flex-order":a,"-webkit-order":a,order:a})}else"column"===i.slidespercolumnfill?(n=i-(d=math.floor(i/k))*k,(d>l||d===l&&n===k-1)&&(n+=1)>=k&&(n=0,d+=1)):d=i-(n=math.floor(i/$))*$;o.css(t("margin-top"),0!==n?i.spacebetween&&i.spacebetween+"px":"")}if("none"!==o.css("display")){if("auto"===i.slidesperview){var r=getcomputedstyle(o[0]),x=o[0].style.transform,y=o[0].style.webkittransform;if(x&&(o[0].style.transform="none"),y&&(o[0].style.webkittransform="none"),i.roundlengths)c=e.ishorizontal()?o.outerwidth(!0):o.outerheight(!0);else{var v=a(r,"width"),w=a(r,"padding-left"),f=a(r,"padding-right"),_=a(r,"margin-left"),q=a(r,"margin-right"),j=r.getpropertyvalue("box-sizing");if(j&&"border-box"===j)c=v+_+q;else{var u=o[0],k=u.clientwidth;c=v+w+f+_+q+(u.offsetwidth-k)}}x&&(o[0].style.transform=x),y&&(o[0].style.webkittransform=y),i.roundlengths&&(c=math.floor(c))}else c=(r-(i.slidesperview-1)*w)/i.slidesperview,i.roundlengths&&(c=math.floor(c)),p[i]&&(p[i].style[t("width")]=c+"px");p[i]&&(p[i].swiperslidesize=c),v.push(c),i.centeredslides?(y=y+c/2+e/2+w,0===e&&0!==i&&(y=y-r/2-w),0===i&&(y=y-r/2-w),math.abs(y)<.001&&(y=0),i.roundlengths&&(y=math.floor(y)),x%i.slidespergroup==0&&c.push(y),h.push(y)):(i.roundlengths&&(y=math.floor(y)),(x-math.min(e.params.slidespergroupskip,x))%e.params.slidespergroup==0&&c.push(y),h.push(y),y=y+c+w),e.virtualsize+=c+w,e=c,x+=1}}if(e.virtualsize=math.max(e.virtualsize,r)+m,n&&l&&("slide"===i.effect||"coverflow"===i.effect)&&s.css({width:e.virtualsize+i.spacebetween+"px"}),i.setwrappersize)s.css(((z={})[t("width")]=e.virtualsize+i.spacebetween+"px",z));if(i.slidespercolumn>1)if(e.virtualsize=(c+i.spacebetween)*t,e.virtualsize=math.ceil(e.virtualsize/i.slidespercolumn)-i.spacebetween,s.css(((p={})[t("width")]=e.virtualsize+i.spacebetween+"px",p)),i.centeredslides){s=[];for(var z=0;z1&&c.push(e.virtualsize-r)}if(0===c.length&&(c=[0]),0!==i.spacebetween){var te,ae=e.ishorizontal()&&n?"marginleft":t("marginright");p.filter((function(e,t){return!i.cssmode||t!==p.length-1})).css(((te={})[ae]=w+"px",te))}if(i.centeredslides&&i.centeredslidesbounds){var ie=0;v.foreach((function(e){ie+=e+(i.spacebetween?i.spacebetween:0)}));var se=(ie-=i.spacebetween)-r;c=c.map((function(e){return e<0?-f:e>se?se+m:e}))}if(i.centerinsufficientslides){var re=0;if(v.foreach((function(e){re+=e+(i.spacebetween?i.spacebetween:0)})),(re-=i.spacebetween)1)if(a.params.centeredslides)a.visibleslides.each((function(e){i.push(e)}));else for(t=0;ta.slides.length&&!s)break;i.push(n(l))}else i.push(n(a.activeindex));for(t=0;tr?o:r}r&&a.$wrapperel.css("height",r+"px")},updateslidesoffset:function(){for(var e=this.slides,t=0;t=0&&d1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleslides.push(l),t.visibleslidesindexes.push(n),i.eq(n).addclass(a.slidevisibleclass))}l.progress=s?-o:o}t.visibleslides=m(t.visibleslides)}},updateprogress:function(e){var t=this;if(void 0===e){var a=t.rtltranslate?-1:1;e=t&&t.translate&&t.translate*a||0}var i=t.params,s=t.maxtranslate()-t.mintranslate(),r=t.progress,n=t.isbeginning,l=t.isend,o=n,d=l;0===s?(r=0,n=!0,l=!0):(n=(r=(e-t.mintranslate())/s)<=0,l=r>=1),m(t,{progress:r,isbeginning:n,isend:l}),(i.watchslidesprogress||i.watchslidesvisibility||i.centeredslides&&i.autoheight)&&t.updateslidesprogress(e),n&&!o&&t.emit("reachbeginning toedge"),l&&!d&&t.emit("reachend toedge"),(o&&!n||d&&!l)&&t.emit("fromedge"),t.emit("progress",r)},updateslidesclasses:function(){var e,t=this,a=t.slides,i=t.params,s=t.$wrapperel,r=t.activeindex,n=t.realindex,l=t.virtual&&i.virtual.enabled;a.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(e=l?t.$wrapperel.find("."+i.slideclass+'[data-swiper-slide-index="'+r+'"]'):a.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 o=e.nextall("."+i.slideclass).eq(0).addclass(i.slidenextclass);i.loop&&0===o.length&&(o=a.eq(0)).addclass(i.slidenextclass);var d=e.prevall("."+i.slideclass).eq(0).addclass(i.slideprevclass);i.loop&&0===d.length&&(d=a.eq(-1)).addclass(i.slideprevclass),i.loop&&(o.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass),d.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass)),t.emitslidesclasses()},updateactiveindex:function(e){var t,a=this,i=a.rtltranslate?a.translate:-a.translate,s=a.slidesgrid,r=a.snapgrid,n=a.params,l=a.activeindex,o=a.realindex,d=a.snapindex,p=e;if(void 0===p){for(var u=0;u=s[u]&&i=s[u]&&i=s[u]&&(p=u);n.normalizeslideindex&&(p<0||void 0===p)&&(p=0)}if(r.indexof(i)>=0)t=r.indexof(i);else{var c=math.min(n.slidespergroupskip,p);t=c+math.floor((p-c)/n.slidespergroup)}if(t>=r.length&&(t=r.length-1),p!==l){var h=parseint(a.slides.eq(p).attr("data-swiper-slide-index")||p,10);m(a,{snapindex:t,realindex:h,previousindex:l,activeindex:p}),a.emit("activeindexchange"),a.emit("snapindexchange"),o!==h&&a.emit("realindexchange"),(a.initialized||a.params.runcallbacksoninit)&&a.emit("slidechange")}else t!==d&&(a.snapindex=t,a.emit("snapindexchange"))},updateclickedslide:function(e){var t,a=this,i=a.params,s=m(e.target).closest("."+i.slideclass)[0],r=!1;if(s)for(var n=0;nd?d:i&&er?"next":is?"next":i=d.length&&(g=d.length-1),(c||o.initialslide||0)===(u||0)&&a&&n.emit("beforeslidechangestart");var b,w=-d[g];if(n.updateprogress(w),o.normalizeslideindex)for(var y=0;y=x&&e=x&&e=x&&(l=y)}if(n.initialized&&l!==c){if(!n.allowslidenext&&wn.translate&&w>n.maxtranslate()&&(c||0)!==l)return!1}if(b=l>c?"next":l=e&&(h=e)})),void 0!==h&&(p=l.indexof(h))<0&&(p=i.activeindex-1),i.slideto(p,e,t,a)},slidereset:function(e,t,a){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideto(this.activeindex,e,t,a)},slidetoclosest:function(e,t,a,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);var s=this,r=s.activeindex,n=math.min(s.params.slidespergroupskip,r),l=n+math.floor((r-n)/s.params.slidespergroup),o=s.rtltranslate?s.translate:-s.translate;if(o>=s.snapgrid[l]){var d=s.snapgrid[l];o-d>(s.snapgrid[l+1]-d)*i&&(r+=s.params.slidespergroup)}else{var p=s.snapgrid[l-1];o-p<=(s.snapgrid[l]-p)*i&&(r-=s.params.slidespergroup)}return r=math.max(r,0),r=math.min(r,s.slidesgrid.length-1),s.slideto(r,e,t,a)},slidetoclickedslide:function(){var e,t=this,a=t.params,i=t.$wrapperel,s="auto"===a.slidesperview?t.slidesperviewdynamic():a.slidesperview,r=t.clickedindex;if(a.loop){if(t.animating)return;e=parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10),a.centeredslides?rt.slides.length-t.loopedslides+s/2?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r):r>t.slides.length-s?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r)}else t.slideto(r)}},loop:{loopcreate:function(){var e=this,t=r(),a=e.params,i=e.$wrapperel;i.children("."+a.slideclass+"."+a.slideduplicateclass).remove();var s=i.children("."+a.slideclass);if(a.loopfillgroupwithblank){var n=a.slidespergroup-s.length%a.slidespergroup;if(n!==a.slidespergroup){for(var l=0;ls.length&&(e.loopedslides=s.length);var d=[],p=[];s.each((function(t,a){var i=m(t);a=s.length-e.loopedslides&&d.push(t),i.attr("data-swiper-slide-index",a)}));for(var u=0;u=0;c-=1)i.prepend(m(d[c].clonenode(!0)).addclass(a.slideduplicateclass))},loopfix:function(){var e=this;e.emit("beforeloopfix");var t,a=e.activeindex,i=e.slides,s=e.loopedslides,r=e.allowslideprev,n=e.allowslidenext,l=e.snapgrid,o=e.rtltranslate;e.allowslideprev=!0,e.allowslidenext=!0;var d=-l[a]-e.gettranslate();if(a=i.length-s){t=-i.length+a+s,t+=s,e.slideto(t,0,!1,!0)&&0!==d&&e.settranslate((o?-e.translate:e.translate)-d)}e.allowslideprev=r,e.allowslidenext=n,e.emit("loopfix")},loopdestroy:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides;t.children("."+a.slideclass+"."+a.slideduplicateclass+",."+a.slideclass+"."+a.slideblankclass).remove(),i.removeattr("data-swiper-slide-index")}},grabcursor:{setgrabcursor:function(e){var t=this;if(!(t.support.touch||!t.params.simulatetouch||t.params.watchoverflow&&t.islocked||t.params.cssmode)){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},unsetgrabcursor:function(){var e=this;e.support.touch||e.params.watchoverflow&&e.islocked||e.params.cssmode||(e.el.style.cursor="")}},manipulation:{appendslide:function(e){var t=this,a=t.$wrapperel,i=t.params;if(i.loop&&t.loopdestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=n)a.appendslide(t);else{for(var l=r>e?r+1:r,o=[],d=n-1;d>=e;d-=1){var p=a.slides.eq(d);p.remove(),o.unshift(p)}if("object"==typeof t&&"length"in t){for(var u=0;ue?r+t.length:r}else i.append(t);for(var c=0;c1,c=p.slidespercolumn>1,h=r.enabled;u&&!c?(n.removeclass(r.containermodifierclass+"multirow "+r.containermodifierclass+"multirow-column"),e.emitcontainerclasses()):!u&&c&&(n.addclass(r.containermodifierclass+"multirow"),(p.slidespercolumnfill&&"column"===p.slidespercolumnfill||!p.slidespercolumnfill&&"column"===r.slidespercolumnfill)&&n.addclass(r.containermodifierclass+"multirow-column"),e.emitcontainerclasses());var v=p.direction&&p.direction!==r.direction,f=r.loop&&(p.slidesperview!==r.slidesperview||v);v&&a&&e.changedirection(),m(e.params,p);var m=e.params.enabled;m(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),h&&!m?e.disable():!h&&m&&e.enable(),e.currentbreakpoint=o,e.emit("_beforebreakpoint",p),f&&a&&(e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(t-s+e.loopedslides,0,!1)),e.emit("breakpoint",p)}}},getbreakpoint:function(e,t,a){if(void 0===t&&(t="window"),e&&("container"!==t||a)){var i=!1,s=l(),r="window"===t?s.innerheight:a.clientheight,n=object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexof("@")){var t=parsefloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));n.sort((function(e,t){return parseint(e.value,10)-parseint(t.value,10)}));for(var o=0;o0&&t.slidesoffsetbefore+t.spacebetween*(e.slides.length-1)+e.slides[0].offsetwidth*e.slides.length;t.slidesoffsetbefore&&t.slidesoffsetafter&&i?e.islocked=i<=e.size:e.islocked=1===e.snapgrid.length,e.allowslidenext=!e.islocked,e.allowslideprev=!e.islocked,a!==e.islocked&&e.emit(e.islocked?"lock":"unlock"),a&&a!==e.islocked&&(e.isend=!1,e.navigation&&e.navigation.update())}},classes:{addclasses:function(){var e,t,a,i=this,s=i.classnames,r=i.params,n=i.rtl,l=i.$el,o=i.device,d=i.support,p=(e=["initialized",r.direction,{"pointer-events":d.pointerevents&&!d.touch},{"free-mode":r.freemode},{autoheight:r.autoheight},{rtl:n},{multirow:r.slidespercolumn>1},{"multirow-column":r.slidespercolumn>1&&"column"===r.slidespercolumnfill},{android:o.android},{ios:o.ios},{"css-mode":r.cssmode}],t=r.containermodifierclass,a=[],e.foreach((function(e){"object"==typeof e?object.keys(e).foreach((function(i){e[i]&&a.push(t+i)})):"string"==typeof e&&a.push(t+e)})),a);s.push.apply(s,p),l.addclass([].concat(s).join(" ")),i.emitcontainerclasses()},removeclasses:function(){var e=this,t=e.$el,a=e.classnames;t.removeclass(a.join(" ")),e.emitcontainerclasses()}},images:{loadimage:function(e,t,a,i,s,r){var n,o=l();function d(){r&&r()}m(e).parent("picture")[0]||e.complete&&s?d():t?((n=new o.image).onload=d,n.onerror=d,i&&(n.sizes=i),a&&(n.srcset=a),t&&(n.src=t)):d()},preloadimages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesloaded&&(e.imagesloaded+=1),e.imagesloaded===e.imagestoload.length&&(e.params.updateonimagesready&&e.update(),e.emit("imagesready")))}e.imagestoload=e.$el.find("img");for(var a=0;a1){var n=[];return m(a.el).each((function(e){var i=m({},a,{el:e});n.push(new t(i))})),n}var l=this;l.__swiper__=!0,l.support=$(),l.device=l({useragent:a.useragent}),l.browser=i(),l.eventslisteners={},l.eventsanylisteners=[],void 0===l.modules&&(l.modules={}),object.keys(l.modules).foreach((function(e){var t=l.modules[e];if(t.params){var i=object.keys(t.params)[0],s=t.params[i];if("object"!=typeof s||null===s)return;if(["navigation","pagination","scrollbar"].indexof(i)>=0&&!0===a[i]&&(a[i]={auto:!0}),!(i in a)||!("enabled"in s))return;!0===a[i]&&(a[i]={enabled:!0}),"object"!=typeof a[i]||"enabled"in a[i]||(a[i].enabled=!0),a[i]||(a[i]={enabled:!1})}}));var o,d,p=m({},w);return l.useparams(p),l.params=m({},p,_,a),l.originalparams=m({},l.params),l.passedparams=m({},a),l.params&&l.params.on&&object.keys(l.params.on).foreach((function(e){l.on(e,l.params.on[e])})),l.params&&l.params.onany&&l.onany(l.params.onany),l.$=m,m(l,{enabled:l.params.enabled,el:e,classnames:[],slides:m(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===l.params.direction},isvertical:function(){return"vertical"===l.params.direction},activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:l.params.allowslidenext,allowslideprev:l.params.allowslideprev,touchevents:(o=["touchstart","touchmove","touchend","touchcancel"],d=["mousedown","mousemove","mouseup"],l.support.pointerevents&&(d=["pointerdown","pointermove","pointerup"]),l.toucheventstouch={start:o[0],move:o[1],end:o[2],cancel:o[3]},l.toucheventsdesktop={start:d[0],move:d[1],end:d[2]},l.support.touch||!l.params.simulatetouch?l.toucheventstouch:l.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:l.params.focusableelements,lastclicktime:x(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:l.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),l.usemodules(),l.emit("_swiper"),l.params.init&&l.init(),l}var a,i,s,n=t.prototype;return n.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabcursor&&e.setgrabcursor(),e.emit("enable"))},n.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabcursor&&e.unsetgrabcursor(),e.emit("disable"))},n.setprogress=function(e,t){var a=this;e=math.min(math.max(e,0),1);var i=a.mintranslate(),s=(a.maxtranslate()-i)*e+i;a.translateto(s,void 0===t?0:t),a.updateactiveindex(),a.updateslidesclasses()},n.emitcontainerclasses=function(){var e=this;if(e.params._emitclasses&&e.el){var t=e.el.classname.split(" ").filter((function(t){return 0===t.indexof("swiper-container")||0===t.indexof(e.params.containermodifierclass)}));e.emit("_containerclasses",t.join(" "))}},n.getslideclasses=function(e){var t=this;return e.classname.split(" ").filter((function(e){return 0===e.indexof("swiper-slide")||0===e.indexof(t.params.slideclass)})).join(" ")},n.emitslidesclasses=function(){var e=this;if(e.params._emitclasses&&e.el){var t=[];e.slides.each((function(a){var i=e.getslideclasses(a);t.push({slideel:a,classnames:i}),e.emit("_slideclass",a,i)})),e.emit("_slideclasses",t)}},n.slidesperviewdynamic=function(){var e=this,t=e.params,a=e.slides,i=e.slidesgrid,s=e.size,r=e.activeindex,n=1;if(t.centeredslides){for(var l,o=a[r].swiperslidesize,d=r+1;ds&&(l=!0));for(var p=r-1;p>=0;p-=1)a[p]&&!l&&(n+=1,(o+=a[p].swiperslidesize)>s&&(l=!0))}else for(var u=r+1;u1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0))||i(),a.watchoverflow&&t!==e.snapgrid&&e.checkoverflow(),e.emit("update")}function i(){var t=e.rtltranslate?-1*e.translate:e.translate,a=math.min(math.max(t,e.maxtranslate()),e.mintranslate());e.settranslate(a),e.updateactiveindex(),e.updateslidesclasses()}},n.changedirection=function(e,t){void 0===t&&(t=!0);var a=this,i=a.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(a.$el.removeclass(""+a.params.containermodifierclass+i).addclass(""+a.params.containermodifierclass+e),a.emitcontainerclasses(),a.params.direction=e,a.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),a.emit("changedirection"),t&&a.update()),a},n.mount=function(e){var t=this;if(t.mounted)return!0;var a=m(e||t.params.el);if(!(e=a[0]))return!1;e.swiper=t;var i=function(){return"."+(t.params.wrapperclass||"").trim().split(" ").join(".")},s=function(){if(e&&e.shadowroot&&e.shadowroot.queryselector){var t=m(e.shadowroot.queryselector(i()));return t.children=function(e){return a.children(e)},t}return a.children(i())}();if(0===s.length&&t.params.createelements){var n=r().createelement("div");s=m(n),n.classname=t.params.wrapperclass,a.append(n),a.children("."+t.params.slideclass).each((function(e){s.append(e)}))}return m(t,{$el:a,el:e,$wrapperel:s,wrapperel:s[0],mounted:!0,rtl:"rtl"===e.dir.tolowercase()||"rtl"===a.css("direction"),rtltranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.tolowercase()||"rtl"===a.css("direction")),wrongrtl:"-webkit-box"===s.css("display")}),!0},n.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeinit"),t.params.breakpoints&&t.setbreakpoint(),t.addclasses(),t.params.loop&&t.loopcreate(),t.updatesize(),t.updateslides(),t.params.watchoverflow&&t.checkoverflow(),t.params.grabcursor&&t.enabled&&t.setgrabcursor(),t.params.preloadimages&&t.preloadimages(),t.params.loop?t.slideto(t.params.initialslide+t.loopedslides,0,t.params.runcallbacksoninit,!1,!0):t.slideto(t.params.initialslide,0,t.params.runcallbacksoninit,!1,!0),t.attachevents(),t.initialized=!0,t.emit("init"),t.emit("afterinit")),t},n.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var a,i=this,s=i.params,r=i.$el,n=i.$wrapperel,l=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforedestroy"),i.initialized=!1,i.detachevents(),s.loop&&i.loopdestroy(),t&&(i.removeclasses(),r.removeattr("style"),n.removeattr("style"),l&&l.length&&l.removeclass([s.slidevisibleclass,s.slideactiveclass,s.slidenextclass,s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),i.emit("destroy"),object.keys(i.eventslisteners).foreach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,a=i,object.keys(a).foreach((function(e){try{a[e]=null}catch(e){}try{delete a[e]}catch(e){}}))),i.destroyed=!0),null},t.extenddefaults=function(e){m(_,e)},t.installmodule=function(e){t.prototype.modules||(t.prototype.modules={});var a=e.name||object.keys(t.prototype.modules).length+"_"+x();t.prototype.modules[a]=e},t.use=function(e){return array.isarray(e)?(e.foreach((function(e){return t.installmodule(e)})),t):(t.installmodule(e),t)},a=t,s=[{key:"extendeddefaults",get:function(){return _}},{key:"defaults",get:function(){return w}}],(i=null)&&e(a.prototype,i),s&&e(a,s),t}();object.keys(f).foreach((function(e){object.keys(f[e]).foreach((function(t){q.prototype[t]=f[e][t]}))})),q.use([o,d]);var j={update:function(e){var t=this,a=t.params,i=a.slidesperview,s=a.slidespergroup,r=a.centeredslides,n=t.params.virtual,l=n.addslidesbefore,o=n.addslidesafter,d=t.virtual,p=d.from,u=d.to,c=d.slides,h=d.slidesgrid,v=d.renderslide,f=d.offset;t.updateactiveindex();var m,g,b,w=t.activeindex||0;m=t.rtltranslate?"right":t.ishorizontal()?"left":"top",r?(g=math.floor(i/2)+s+o,b=math.floor(i/2)+s+l):(g=i+(s-1)+o,b=s+l);var y=math.max((w||0)-b,0),e=math.min((w||0)+g,c.length-1),x=(t.slidesgrid[y]||0)-(t.slidesgrid[0]||0);function t(){t.updateslides(),t.updateprogress(),t.updateslidesclasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(m(t.virtual,{from:y,to:e,offset:x,slidesgrid:t.slidesgrid}),p===y&&u===e&&!e)return t.slidesgrid!==h&&x!==f&&t.slides.css(m,x+"px"),void t.updateprogress();if(t.params.virtual.renderexternal)return t.params.virtual.renderexternal.call(t,{offset:x,from:y,to:e,slides:function(){for(var e=[],t=y;t<=e;t+=1)e.push(c[t]);return e}()}),void(t.params.virtual.renderexternalupdate&&t());var c=[],s=[];if(e)t.$wrapperel.find("."+t.params.slideclass).remove();else for(var z=p;z<=u;z+=1)(ze)&&t.$wrapperel.find("."+t.params.slideclass+'[data-swiper-slide-index="'+z+'"]').remove();for(var p=0;p=y&&p<=e&&(void 0===u||e?s.push(p):(p>u&&s.push(p),p'+e+"");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=s),s},appendslide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var a=0;a=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]0&&0===t.$el.parents("."+t.params.slideactiveclass).length)return;var g=t.$el,b=g[0].clientwidth,w=g[0].clientheight,y=a.innerwidth,e=a.innerheight,x=t.$el.offset();s&&(x.left-=t.$el[0].scrollleft);for(var t=[[x.left,x.top],[x.left+b,x.top],[x.left,x.top+w],[x.left+b,x.top+w]],c=0;c=0&&s[0]<=y&&s[1]>=0&&s[1]<=e){if(0===s[0]&&0===s[1])continue;m=!0}}if(!m)return}t.ishorizontal()?((p||u||c||h)&&(n.preventdefault?n.preventdefault():n.returnvalue=!1),((u||h)&&!s||(p||c)&&s)&&t.slidenext(),((p||c)&&!s||(u||h)&&s)&&t.slideprev()):((p||u||v||f)&&(n.preventdefault?n.preventdefault():n.returnvalue=!1),(u||f)&&t.slidenext(),(p||v)&&t.slideprev()),t.emit("keypress",o)}}},enable:function(){var e=this,t=r();e.keyboard.enabled||(m(t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this,t=r();e.keyboard.enabled&&(m(t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},z={name:"keyboard",params:{keyboard:{enabled:!1,onlyinviewport:!0,pageupdown:!0}},create:function(){z(this,{keyboard:t({enabled:!1},k)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}};var j={lastscrolltime:x(),lasteventbeforesnap:void 0,recentwheelevents:[],event:function(){return l().navigator.useragent.indexof("firefox")>-1?"dommousescroll":function(){var e=r(),t="onwheel",a=t in e;if(!a){var i=e.createelement("div");i.setattribute(t,"return;"),a="function"==typeof i.onwheel}return!a&&e.implementation&&e.implementation.hasfeature&&!0!==e.implementation.hasfeature("","")&&(a=e.implementation.hasfeature("events.wheel","3.0")),a}()?"wheel":"mousewheel"},normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheeldelta"in e&&(a=-e.wheeldelta/120),"wheeldeltay"in e&&(a=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=a,a=0),i=10*t,s=10*a,"deltay"in e&&(s=e.deltay),"deltax"in e&&(i=e.deltax),e.shiftkey&&!i&&(i=s,s=0),(i||s)&&e.deltamode&&(1===e.deltamode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinx:t,spiny:a,pixelx:i,pixely:s}},handlemouseenter:function(){this.enabled&&(this.mouseentered=!0)},handlemouseleave:function(){this.enabled&&(this.mouseentered=!1)},handle:function(e){var t=e,a=this;if(a.enabled){var i=a.params.mousewheel;a.params.cssmode&&t.preventdefault();var s=a.$el;if("container"!==a.params.mousewheel.eventstarget&&(s=m(a.params.mousewheel.eventstarget)),!a.mouseentered&&!s[0].contains(t.target)&&!i.releaseonedges)return!0;t.originalevent&&(t=t.originalevent);var r=0,n=a.rtltranslate?-1:1,l=j.normalize(t);if(i.forcetoaxis)if(a.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;r=-l.pixelx*n}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;r=-l.pixely}else r=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*n:-l.pixely;if(0===r)return!0;i.invert&&(r=-r);var o=a.gettranslate()+r*i.sensitivity;if(o>=a.mintranslate()&&(o=a.mintranslate()),o<=a.maxtranslate()&&(o=a.maxtranslate()),(!!a.params.loop||!(o===a.mintranslate()||o===a.maxtranslate()))&&a.params.nested&&t.stoppropagation(),a.params.freemode){var d={time:x(),delta:math.abs(r),direction:math.sign(r)},p=a.mousewheel.lasteventbeforesnap,u=p&&d.time=a.mintranslate()&&(c=a.mintranslate()),c<=a.maxtranslate()&&(c=a.maxtranslate()),a.settransition(0),a.settranslate(c),a.updateprogress(),a.updateactiveindex(),a.updateslidesclasses(),(!h&&a.isbeginning||!v&&a.isend)&&a.updateslidesclasses(),a.params.freemodesticky){cleartimeout(a.mousewheel.timeout),a.mousewheel.timeout=void 0;var f=a.mousewheel.recentwheelevents;f.length>=15&&f.shift();var g=f.length?f[f.length-1]:void 0,b=f[0];if(f.push(d),g&&(d.delta>g.delta||d.direction!==g.direction))f.splice(0);else if(f.length>=15&&d.time-b.time<500&&b.delta-d.delta>=1&&d.delta<=6){var w=r>0?.8:.2;a.mousewheel.lasteventbeforesnap=d,f.splice(0),a.mousewheel.timeout=e((function(){a.slidetoclosest(a.params.speed,!0,void 0,w)}),0)}a.mousewheel.timeout||(a.mousewheel.timeout=e((function(){a.mousewheel.lasteventbeforesnap=d,f.splice(0),a.slidetoclosest(a.params.speed,!0,void 0,.5)}),500))}if(u||a.emit("scroll",t),a.params.autoplay&&a.params.autoplaydisableoninteraction&&a.autoplay.stop(),c===a.mintranslate()||c===a.maxtranslate())return!0}}else{var y={time:x(),delta:math.abs(r),direction:math.sign(r),raw:e},t=a.mousewheel.recentwheelevents;t.length>=2&&t.shift();var c=t.length?t[t.length-1]:void 0;if(t.push(y),c?(y.direction!==c.direction||y.delta>c.delta||y.time>c.time+150)&&a.mousewheel.animateslider(y):a.mousewheel.animateslider(y),a.mousewheel.releasescroll(y))return!0}return t.preventdefault?t.preventdefault():t.returnvalue=!1,!1}},animateslider:function(e){var t=this,a=l();return!(this.params.mousewheel.thresholddelta&&e.delta=6&&x()-t.mousewheel.lastscrolltime<60||(e.direction<0?t.isend&&!t.params.loop||t.animating||(t.slidenext(),t.emit("scroll",e.raw)):t.isbeginning&&!t.params.loop||t.animating||(t.slideprev(),t.emit("scroll",e.raw)),t.mousewheel.lastscrolltime=(new a.date).gettime(),!1)))},releasescroll:function(e){var t=this,a=t.params.mousewheel;if(e.direction<0){if(t.isend&&!t.params.loop&&a.releaseonedges)return!0}else if(t.isbeginning&&!t.params.loop&&a.releaseonedges)return!0;return!1},enable:function(){var e=this,t=j.event();if(e.params.cssmode)return e.wrapperel.removeeventlistener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var a=e.$el;return"container"!==e.params.mousewheel.eventstarget&&(a=m(e.params.mousewheel.eventstarget)),a.on("mouseenter",e.mousewheel.handlemouseenter),a.on("mouseleave",e.mousewheel.handlemouseleave),a.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this,t=j.event();if(e.params.cssmode)return e.wrapperel.addeventlistener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var a=e.$el;return"container"!==e.params.mousewheel.eventstarget&&(a=m(e.params.mousewheel.eventstarget)),a.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},q={toggleel:function(e,t){e[t?"addclass":"removeclass"](this.params.navigation.disabledclass),e[0]&&"button"===e[0].tagname&&(e[0].disabled=t)},update:function(){var e=this,t=e.params.navigation,a=e.navigation.toggleel;if(!e.params.loop){var i=e.navigation,s=i.$nextel,r=i.$prevel;r&&r.length>0&&(e.isbeginning?a(r,!0):a(r,!1),e.params.watchoverflow&&e.enabled&&r[e.islocked?"addclass":"removeclass"](t.lockclass)),s&&s.length>0&&(e.isend?a(s,!0):a(s,!1),e.params.watchoverflow&&e.enabled&&s[e.islocked?"addclass":"removeclass"](t.lockclass))}},onprevclick:function(e){var t=this;e.preventdefault(),t.isbeginning&&!t.params.loop||t.slideprev()},onnextclick:function(e){var t=this;e.preventdefault(),t.isend&&!t.params.loop||t.slidenext()},init:function(){var e,t,a=this,i=a.params.navigation;(a.params.navigation=k(a.$el,a.params.navigation,a.params.createelements,{nextel:"swiper-button-next",prevel:"swiper-button-prev"}),i.nextel||i.prevel)&&(i.nextel&&(e=m(i.nextel),a.params.uniquenavelements&&"string"==typeof i.nextel&&e.length>1&&1===a.$el.find(i.nextel).length&&(e=a.$el.find(i.nextel))),i.prevel&&(t=m(i.prevel),a.params.uniquenavelements&&"string"==typeof i.prevel&&t.length>1&&1===a.$el.find(i.prevel).length&&(t=a.$el.find(i.prevel))),e&&e.length>0&&e.on("click",a.navigation.onnextclick),t&&t.length>0&&t.on("click",a.navigation.onprevclick),m(a.navigation,{$nextel:e,nextel:e&&e[0],$prevel:t,prevel:t&&t[0]}),a.enabled||(e&&e.addclass(i.lockclass),t&&t.addclass(i.lockclass)))},destroy:function(){var e=this,t=e.navigation,a=t.$nextel,i=t.$prevel;a&&a.length&&(a.off("click",e.navigation.onnextclick),a.removeclass(e.params.navigation.disabledclass)),i&&i.length&&(i.off("click",e.navigation.onprevclick),i.removeclass(e.params.navigation.disabledclass))}},ee={update:function(){var e=this,t=e.rtl,a=e.params.pagination;if(a.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,n=e.params.loop?math.ceil((s-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;if(e.params.loop?((i=math.ceil((e.activeindex-e.loopedslides)/e.params.slidespergroup))>s-1-2*e.loopedslides&&(i-=s-2*e.loopedslides),i>n-1&&(i-=n),i<0&&"bullets"!==e.params.paginationtype&&(i=n+i)):i=void 0!==e.snapindex?e.snapindex:e.activeindex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var l,o,d,p=e.pagination.bullets;if(a.dynamicbullets&&(e.pagination.bulletsize=p.eq(0)[e.ishorizontal()?"outerwidth":"outerheight"](!0),r.css(e.ishorizontal()?"width":"height",e.pagination.bulletsize*(a.dynamicmainbullets+4)+"px"),a.dynamicmainbullets>1&&void 0!==e.previousindex&&(e.pagination.dynamicbulletindex+=i-e.previousindex,e.pagination.dynamicbulletindex>a.dynamicmainbullets-1?e.pagination.dynamicbulletindex=a.dynamicmainbullets-1:e.pagination.dynamicbulletindex<0&&(e.pagination.dynamicbulletindex=0)),l=i-e.pagination.dynamicbulletindex,d=((o=l+(math.min(p.length,a.dynamicmainbullets)-1))+l)/2),p.removeclass(a.bulletactiveclass+" "+a.bulletactiveclass+"-next "+a.bulletactiveclass+"-next-next "+a.bulletactiveclass+"-prev "+a.bulletactiveclass+"-prev-prev "+a.bulletactiveclass+"-main"),r.length>1)p.each((function(e){var t=m(e),s=t.index();s===i&&t.addclass(a.bulletactiveclass),a.dynamicbullets&&(s>=l&&s<=o&&t.addclass(a.bulletactiveclass+"-main"),s===l&&t.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),s===o&&t.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next"))}));else{var u=p.eq(i),c=u.index();if(u.addclass(a.bulletactiveclass),a.dynamicbullets){for(var h=p.eq(l),v=p.eq(o),f=l;f<=o;f+=1)p.eq(f).addclass(a.bulletactiveclass+"-main");if(e.params.loop)if(c>=p.length-a.dynamicmainbullets){for(var g=a.dynamicmainbullets;g>=0;g-=1)p.eq(p.length-g).addclass(a.bulletactiveclass+"-main");p.eq(p.length-a.dynamicmainbullets-1).addclass(a.bulletactiveclass+"-prev")}else h.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),v.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next");else h.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),v.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next")}}if(a.dynamicbullets){var b=math.min(p.length,a.dynamicmainbullets+4),w=(e.pagination.bulletsize*b-e.pagination.bulletsize)/2-d*e.pagination.bulletsize,y=t?"right":"left";p.css(e.ishorizontal()?y:"top",w+"px")}}if("fraction"===a.type&&(r.find(p(a.currentclass)).text(a.formatfractioncurrent(i+1)),r.find(p(a.totalclass)).text(a.formatfractiontotal(n))),"progressbar"===a.type){var e;e=a.progressbaropposite?e.ishorizontal()?"vertical":"horizontal":e.ishorizontal()?"horizontal":"vertical";var x=(i+1)/n,t=1,c=1;"horizontal"===e?t=x:c=x,r.find(p(a.progressbarfillclass)).transform("translate3d(0,0,0) scalex("+t+") scaley("+c+")").transition(e.params.speed)}"custom"===a.type&&a.rendercustom?(r.html(a.rendercustom(e,i+1,n)),e.emit("paginationrender",r[0])):e.emit("paginationupdate",r[0]),e.params.watchoverflow&&e.enabled&&r[e.islocked?"addclass":"removeclass"](a.lockclass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){var r=e.params.loop?math.ceil((a-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;e.params.freemode&&!e.params.loop&&r>a&&(r=a);for(var n=0;n";i.html(s),e.pagination.bullets=i.find(p(t.bulletclass))}"fraction"===t.type&&(s=t.renderfraction?t.renderfraction.call(e,t.currentclass,t.totalclass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderprogressbar?t.renderprogressbar.call(e,t.progressbarfillclass):'',i.html(s)),"custom"!==t.type&&e.emit("paginationrender",e.pagination.$el[0])}},init:function(){var e=this;e.params.pagination=k(e.$el,e.params.pagination,e.params.createelements,{el:"swiper-pagination"});var t=e.params.pagination;if(t.el){var a=m(t.el);0!==a.length&&(e.params.uniquenavelements&&"string"==typeof t.el&&a.length>1&&(a=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&a.addclass(t.clickableclass),a.addclass(t.modifierclass+t.type),"bullets"===t.type&&t.dynamicbullets&&(a.addclass(""+t.modifierclass+t.type+"-dynamic"),e.pagination.dynamicbulletindex=0,t.dynamicmainbullets<1&&(t.dynamicmainbullets=1)),"progressbar"===t.type&&t.progressbaropposite&&a.addclass(t.progressbaroppositeclass),t.clickable&&a.on("click",p(t.bulletclass),(function(t){t.preventdefault();var a=m(this).index()*e.params.slidespergroup;e.params.loop&&(a+=e.loopedslides),e.slideto(a)})),m(e.pagination,{$el:a,el:a[0]}),e.enabled||a.addclass(t.lockclass))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeclass(t.hiddenclass),a.removeclass(t.modifierclass+t.type),e.pagination.bullets&&e.pagination.bullets.removeclass(t.bulletactiveclass),t.clickable&&a.off("click",p(t.bulletclass))}}},te={settranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtltranslate,i=e.progress,s=t.dragsize,r=t.tracksize,n=t.$dragel,l=t.$el,o=e.params.scrollbar,d=s,p=(r-s)*i;a?(p=-p)>0?(d=s-p,p=0):-p+s>r&&(d=r+p):p<0?(d=s+p,p=0):p+s>r&&(d=r-p),e.ishorizontal()?(n.transform("translate3d("+p+"px, 0, 0)"),n[0].style.width=d+"px"):(n.transform("translate3d(0px, "+p+"px, 0)"),n[0].style.height=d+"px"),o.hide&&(cleartimeout(e.scrollbar.timeout),l[0].style.opacity=1,e.scrollbar.timeout=settimeout((function(){l[0].style.opacity=0,l.transition(400)}),1e3))}},settransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragel.transition(e)},updatesize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragel,i=t.$el;a[0].style.width="",a[0].style.height="";var s,r=e.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,n=e.size/e.virtualsize,l=n*(r/e.size);s="auto"===e.params.scrollbar.dragsize?r*n:parseint(e.params.scrollbar.dragsize,10),e.ishorizontal()?a[0].style.width=s+"px":a[0].style.height=s+"px",i[0].style.display=n>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),m(t,{tracksize:r,divider:n,movedivider:l,dragsize:s}),e.params.watchoverflow&&e.enabled&&t.$el[e.islocked?"addclass":"removeclass"](e.params.scrollbar.lockclass)}},getpointerposition:function(e){return this.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clientx:e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clienty:e.clienty},setdragposition:function(e){var t,a=this,i=a.scrollbar,s=a.rtltranslate,r=i.$el,n=i.dragsize,l=i.tracksize,o=i.dragstartpos;t=(i.getpointerposition(e)-r.offset()[a.ishorizontal()?"left":"top"]-(null!==o?o:n/2))/(l-n),t=math.max(math.min(t,1),0),s&&(t=1-t);var d=a.mintranslate()+(a.maxtranslate()-a.mintranslate())*t;a.updateprogress(d),a.settranslate(d),a.updateactiveindex(),a.updateslidesclasses()},ondragstart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el,n=i.$dragel;t.scrollbar.istouched=!0,t.scrollbar.dragstartpos=e.target===n[0]||e.target===n?i.getpointerposition(e)-e.target.getboundingclientrect()[t.ishorizontal()?"left":"top"]:null,e.preventdefault(),e.stoppropagation(),s.transition(100),n.transition(100),i.setdragposition(e),cleartimeout(t.scrollbar.dragtimeout),r.transition(0),a.hide&&r.css("opacity",1),t.params.cssmode&&t.$wrapperel.css("scroll-snap-type","none"),t.emit("scrollbardragstart",e)},ondragmove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperel,s=a.$el,r=a.$dragel;t.scrollbar.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),i.transition(0),s.transition(0),r.transition(0),t.emit("scrollbardragmove",e))},ondragend:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el;t.scrollbar.istouched&&(t.scrollbar.istouched=!1,t.params.cssmode&&(t.$wrapperel.css("scroll-snap-type",""),s.transition("")),a.hide&&(cleartimeout(t.scrollbar.dragtimeout),t.scrollbar.dragtimeout=e((function(){r.css("opacity",0),r.transition(400)}),1e3)),t.emit("scrollbardragend",e),a.snaponrelease&&t.slidetoclosest())},enabledraggable:function(){var e=this;if(e.params.scrollbar.el){var t=r(),a=e.scrollbar,i=e.toucheventstouch,s=e.toucheventsdesktop,n=e.params,l=e.support,o=a.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};o&&(l.touch?(o.addeventlistener(i.start,e.scrollbar.ondragstart,d),o.addeventlistener(i.move,e.scrollbar.ondragmove,d),o.addeventlistener(i.end,e.scrollbar.ondragend,p)):(o.addeventlistener(s.start,e.scrollbar.ondragstart,d),t.addeventlistener(s.move,e.scrollbar.ondragmove,d),t.addeventlistener(s.end,e.scrollbar.ondragend,p)))}},disabledraggable:function(){var e=this;if(e.params.scrollbar.el){var t=r(),a=e.scrollbar,i=e.toucheventstouch,s=e.toucheventsdesktop,n=e.params,l=e.support,o=a.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};o&&(l.touch?(o.removeeventlistener(i.start,e.scrollbar.ondragstart,d),o.removeeventlistener(i.move,e.scrollbar.ondragmove,d),o.removeeventlistener(i.end,e.scrollbar.ondragend,p)):(o.removeeventlistener(s.start,e.scrollbar.ondragstart,d),t.removeeventlistener(s.move,e.scrollbar.ondragmove,d),t.removeeventlistener(s.end,e.scrollbar.ondragend,p)))}},init:function(){var e=this,t=e.scrollbar,a=e.$el;e.params.scrollbar=k(a,e.params.scrollbar,e.params.createelements,{el:"swiper-scrollbar"});var i=e.params.scrollbar;if(i.el){var s=m(i.el);e.params.uniquenavelements&&"string"==typeof i.el&&s.length>1&&1===a.find(i.el).length&&(s=a.find(i.el));var r=s.find("."+e.params.scrollbar.dragclass);0===r.length&&(r=m('
'),s.append(r)),m(t,{$el:s,el:s[0],$dragel:r,dragel:r[0]}),i.draggable&&t.enabledraggable(),s&&s[e.enabled?"removeclass":"addclass"](e.params.scrollbar.lockclass)}},destroy:function(){this.scrollbar.disabledraggable()}},ae={settransform:function(e,t){var a=this.rtl,i=m(e),s=a?-1:1,r=i.attr("data-swiper-parallax")||"0",n=i.attr("data-swiper-parallax-x"),l=i.attr("data-swiper-parallax-y"),o=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(n||l?(n=n||"0",l=l||"0"):this.ishorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexof("%")>=0?parseint(n,10)*t*s+"%":n*t*s+"px",l=l.indexof("%")>=0?parseint(l,10)*t+"%":l*t+"px",null!=d){var p=d-(d-1)*(1-math.abs(t));i[0].style.opacity=p}if(null==o)i.transform("translate3d("+n+", "+l+", 0px)");else{var u=o-(o-1)*(1-math.abs(t));i.transform("translate3d("+n+", "+l+", 0px) scale("+u+")")}},settranslate:function(){var e=this,t=e.$el,a=e.slides,i=e.progress,s=e.snapgrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,i)})),a.each((function(t,a){var r=t.progress;e.params.slidespergroup>1&&"auto"!==e.params.slidesperview&&(r+=math.ceil(a/2)-i*(s.length-1)),r=math.min(math.max(r,-1),1),m(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,r)}))}))},settransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){var a=m(t),i=parseint(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)}))}},ie={getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var t=e.targettouches[0].pagex,a=e.targettouches[0].pagey,i=e.targettouches[1].pagex,s=e.targettouches[1].pagey;return math.sqrt(math.pow(i-t,2)+math.pow(s-a,2))},ongesturestart:function(e){var t=this,a=t.support,i=t.params.zoom,s=t.zoom,r=s.gesture;if(s.fakegesturetouched=!1,s.fakegesturemoved=!1,!a.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;s.fakegesturetouched=!0,r.scalestart=ie.getdistancebetweentouches(e)}r.$slideel&&r.$slideel.length||(r.$slideel=m(e.target).closest("."+t.params.slideclass),0===r.$slideel.length&&(r.$slideel=t.slides.eq(t.activeindex)),r.$imageel=r.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imagewrapel=r.$imageel.parent("."+i.containerclass),r.maxratio=r.$imagewrapel.attr("data-swiper-zoom")||i.maxratio,0!==r.$imagewrapel.length)?(r.$imageel&&r.$imageel.transition(0),t.zoom.isscaling=!0):r.$imageel=void 0},ongesturechange:function(e){var t=this,a=t.support,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!a.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;s.fakegesturemoved=!0,r.scalemove=ie.getdistancebetweentouches(e)}r.$imageel&&0!==r.$imageel.length?(a.gestures?s.scale=e.scale*s.currentscale:s.scale=r.scalemove/r.scalestart*s.currentscale,s.scale>r.maxratio&&(s.scale=r.maxratio-1+math.pow(s.scale-r.maxratio+1,.5)),s.scales.touchesstart.x))return void(s.istouched=!1);if(!t.ishorizontal()&&(math.floor(s.miny)===math.floor(s.starty)&&s.touchescurrent.ys.touchesstart.y))return void(s.istouched=!1)}e.cancelable&&e.preventdefault(),e.stoppropagation(),s.ismoved=!0,s.currentx=s.touchescurrent.x-s.touchesstart.x+s.startx,s.currenty=s.touchescurrent.y-s.touchesstart.y+s.starty,s.currentxs.maxx&&(s.currentx=s.maxx-1+math.pow(s.currentx-s.maxx+1,.8)),s.currentys.maxy&&(s.currenty=s.maxy-1+math.pow(s.currenty-s.maxy+1,.8)),r.prevpositionx||(r.prevpositionx=s.touchescurrent.x),r.prevpositiony||(r.prevpositiony=s.touchescurrent.y),r.prevtime||(r.prevtime=date.now()),r.x=(s.touchescurrent.x-r.prevpositionx)/(date.now()-r.prevtime)/2,r.y=(s.touchescurrent.y-r.prevpositiony)/(date.now()-r.prevtime)/2,math.abs(s.touchescurrent.x-r.prevpositionx)<2&&(r.x=0),math.abs(s.touchescurrent.y-r.prevpositiony)<2&&(r.y=0),r.prevpositionx=s.touchescurrent.x,r.prevpositiony=s.touchescurrent.y,r.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+s.currentx+"px, "+s.currenty+"px,0)")}}},ontouchend:function(){var e=this.zoom,t=e.gesture,a=e.image,i=e.velocity;if(t.$imageel&&0!==t.$imageel.length){if(!a.istouched||!a.ismoved)return a.istouched=!1,void(a.ismoved=!1);a.istouched=!1,a.ismoved=!1;var s=300,r=300,n=i.x*s,l=a.currentx+n,o=i.y*r,d=a.currenty+o;0!==i.x&&(s=math.abs((l-a.currentx)/i.x)),0!==i.y&&(r=math.abs((d-a.currenty)/i.y));var p=math.max(s,r);a.currentx=l,a.currenty=d;var u=a.width*e.scale,c=a.height*e.scale;a.minx=math.min(t.slidewidth/2-u/2,0),a.maxx=-a.minx,a.miny=math.min(t.slideheight/2-c/2,0),a.maxy=-a.miny,a.currentx=math.max(math.min(a.currentx,a.maxx),a.minx),a.currenty=math.max(math.min(a.currenty,a.maxy),a.miny),t.$imagewrapel.transition(p).transform("translate3d("+a.currentx+"px, "+a.currenty+"px,0)")}},ontransitionend:function(){var e=this,t=e.zoom,a=t.gesture;a.$slideel&&e.previousindex!==e.activeindex&&(a.$imageel&&a.$imageel.transform("translate3d(0,0,0) scale(1)"),a.$imagewrapel&&a.$imagewrapel.transform("translate3d(0,0,0)"),t.scale=1,t.currentscale=1,a.$slideel=void 0,a.$imageel=void 0,a.$imagewrapel=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,a,i,s,r,n,o,d,p,u,c,h,v,f,g,b,w=this,y=l(),e=w.zoom,x=w.params.zoom,t=e.gesture,c=e.image;(t.$slideel||(e&&e.target&&(t.$slideel=m(e.target).closest("."+w.params.slideclass)),t.$slideel||(w.params.virtual&&w.params.virtual.enabled&&w.virtual?t.$slideel=w.$wrapperel.children("."+w.params.slideactiveclass):t.$slideel=w.slides.eq(w.activeindex)),t.$imageel=t.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),t.$imagewrapel=t.$imageel.parent("."+x.containerclass)),t.$imageel&&0!==t.$imageel.length&&t.$imagewrapel&&0!==t.$imagewrapel.length)&&(t.$slideel.addclass(""+x.zoomedslideclass),void 0===c.touchesstart.x&&e?(t="touchend"===e.type?e.changedtouches[0].pagex:e.pagex,a="touchend"===e.type?e.changedtouches[0].pagey:e.pagey):(t=c.touchesstart.x,a=c.touchesstart.y),e.scale=t.$imagewrapel.attr("data-swiper-zoom")||x.maxratio,e.currentscale=t.$imagewrapel.attr("data-swiper-zoom")||x.maxratio,e?(g=t.$slideel[0].offsetwidth,b=t.$slideel[0].offsetheight,i=t.$slideel.offset().left+y.scrollx+g/2-t,s=t.$slideel.offset().top+y.scrolly+b/2-a,o=t.$imageel[0].offsetwidth,d=t.$imageel[0].offsetheight,p=o*e.scale,u=d*e.scale,v=-(c=math.min(g/2-p/2,0)),f=-(h=math.min(b/2-u/2,0)),(r=i*e.scale)v&&(r=v),(n=s*e.scale)f&&(n=f)):(r=0,n=0),t.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),t.$imageel.transition(300).transform("translate3d(0,0,0) scale("+e.scale+")"))},out:function(){var e=this,t=e.zoom,a=e.params.zoom,i=t.gesture;i.$slideel||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideel=e.$wrapperel.children("."+e.params.slideactiveclass):i.$slideel=e.slides.eq(e.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imagewrapel=i.$imageel.parent("."+a.containerclass)),i.$imageel&&0!==i.$imageel.length&&i.$imagewrapel&&0!==i.$imagewrapel.length&&(t.scale=1,t.currentscale=1,i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideel.removeclass(""+a.zoomedslideclass),i.$slideel=void 0)},togglegestures:function(e){var t=this,a=t.zoom,i=a.slideselector,s=a.passivelistener;t.$wrapperel[e]("gesturestart",i,a.ongesturestart,s),t.$wrapperel[e]("gesturechange",i,a.ongesturechange,s),t.$wrapperel[e]("gestureend",i,a.ongestureend,s)},enablegestures:function(){this.zoom.gesturesenabled||(this.zoom.gesturesenabled=!0,this.zoom.togglegestures("on"))},disablegestures:function(){this.zoom.gesturesenabled&&(this.zoom.gesturesenabled=!1,this.zoom.togglegestures("off"))},enable:function(){var e=this,t=e.support,a=e.zoom;if(!a.enabled){a.enabled=!0;var i=!("touchstart"!==e.touchevents.start||!t.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},s=!t.passivelistener||{passive:!1,capture:!0},r="."+e.params.slideclass;e.zoom.passivelistener=i,e.zoom.slideselector=r,t.gestures?(e.$wrapperel.on(e.touchevents.start,e.zoom.enablegestures,i),e.$wrapperel.on(e.touchevents.end,e.zoom.disablegestures,i)):"touchstart"===e.touchevents.start&&(e.$wrapperel.on(e.touchevents.start,r,a.ongesturestart,i),e.$wrapperel.on(e.touchevents.move,r,a.ongesturechange,s),e.$wrapperel.on(e.touchevents.end,r,a.ongestureend,i),e.touchevents.cancel&&e.$wrapperel.on(e.touchevents.cancel,r,a.ongestureend,i)),e.$wrapperel.on(e.touchevents.move,"."+e.params.zoom.containerclass,a.ontouchmove,s)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){var a=e.support;e.zoom.enabled=!1;var i=!("touchstart"!==e.touchevents.start||!a.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},s=!a.passivelistener||{passive:!1,capture:!0},r="."+e.params.slideclass;a.gestures?(e.$wrapperel.off(e.touchevents.start,e.zoom.enablegestures,i),e.$wrapperel.off(e.touchevents.end,e.zoom.disablegestures,i)):"touchstart"===e.touchevents.start&&(e.$wrapperel.off(e.touchevents.start,r,t.ongesturestart,i),e.$wrapperel.off(e.touchevents.move,r,t.ongesturechange,s),e.$wrapperel.off(e.touchevents.end,r,t.ongestureend,i),e.touchevents.cancel&&e.$wrapperel.off(e.touchevents.cancel,r,t.ongestureend,i)),e.$wrapperel.off(e.touchevents.move,"."+e.params.zoom.containerclass,t.ontouchmove,s)}}},se={loadinslide:function(e,t){void 0===t&&(t=!0);var a=this,i=a.params.lazy;if(void 0!==e&&0!==a.slides.length){var s=a.virtual&&a.params.virtual.enabled?a.$wrapperel.children("."+a.params.slideclass+'[data-swiper-slide-index="'+e+'"]'):a.slides.eq(e),r=s.find("."+i.elementclass+":not(."+i.loadedclass+"):not(."+i.loadingclass+")");!s.hasclass(i.elementclass)||s.hasclass(i.loadedclass)||s.hasclass(i.loadingclass)||r.push(s[0]),0!==r.length&&r.each((function(e){var r=m(e);r.addclass(i.loadingclass);var n=r.attr("data-background"),l=r.attr("data-src"),o=r.attr("data-srcset"),d=r.attr("data-sizes"),p=r.parent("picture");a.loadimage(r[0],l||n,o,d,!1,(function(){if(null!=a&&a&&(!a||a.params)&&!a.destroyed){if(n?(r.css("background-image",'url("'+n+'")'),r.removeattr("data-background")):(o&&(r.attr("srcset",o),r.removeattr("data-srcset")),d&&(r.attr("sizes",d),r.removeattr("data-sizes")),p.length&&p.children("source").each((function(e){var t=m(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeattr("data-srcset"))})),l&&(r.attr("src",l),r.removeattr("data-src"))),r.addclass(i.loadedclass).removeclass(i.loadingclass),s.find("."+i.preloaderclass).remove(),a.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasclass(a.params.slideduplicateclass)){var u=a.$wrapperel.children('[data-swiper-slide-index="'+e+'"]:not(.'+a.params.slideduplicateclass+")");a.lazy.loadinslide(u.index(),!1)}else{var c=a.$wrapperel.children("."+a.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');a.lazy.loadinslide(c.index(),!1)}}a.emit("lazyimageready",s[0],r[0]),a.params.autoheight&&a.updateautoheight()}})),a.emit("lazyimageload",s[0],r[0])}))}},load:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides,s=e.activeindex,r=e.virtual&&a.virtual.enabled,n=a.lazy,l=a.slidesperview;function o(e){if(r){if(t.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(i[e])return!0;return!1}function d(e){return r?m(e).attr("data-swiper-slide-index"):m(e).index()}if("auto"===l&&(l=0),e.lazy.initialimageloaded||(e.lazy.initialimageloaded=!0),e.params.watchslidesvisibility)t.children("."+a.slidevisibleclass).each((function(t){var a=r?m(t).attr("data-swiper-slide-index"):m(t).index();e.lazy.loadinslide(a)}));else if(l>1)for(var p=s;p1||n.loadprevnextamount&&n.loadprevnextamount>1){for(var u=n.loadprevnextamount,c=l,h=math.min(s+c+math.max(u,c),i.length),v=math.max(s-math.max(c,u),0),f=s+l;f0&&e.lazy.loadinslide(d(b));var w=t.children("."+a.slideprevclass);w.length>0&&e.lazy.loadinslide(d(w))}},checkinviewonload:function(){var e=l(),t=this;if(t&&!t.destroyed){var a=t.params.lazy.scrollingelement?m(t.params.lazy.scrollingelement):m(e),i=a[0]===e,s=i?e.innerwidth:a[0].offsetwidth,r=i?e.innerheight:a[0].offsetheight,n=t.$el.offset(),o=!1;t.rtltranslate&&(n.left-=t.$el[0].scrollleft);for(var d=[[n.left,n.top],[n.left+t.width,n.top],[n.left,n.top+t.height],[n.left+t.width,n.top+t.height]],p=0;p=0&&u[0]<=s&&u[1]>=0&&u[1]<=r){if(0===u[0]&&0===u[1])continue;o=!0}}var c=!("touchstart"!==t.touchevents.start||!t.support.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1};o?(t.lazy.load(),a.off("scroll",t.lazy.checkinviewonload,c)):t.lazy.scrollhandlerattached||(t.lazy.scrollhandlerattached=!0,a.on("scroll",t.lazy.checkinviewonload,c))}}},re={linearspline:function(e,t){var a,i,s,r,n,l=function(e,t){for(i=-1,a=e.length;a-i>1;)e[s=a+i>>1]<=t?i=s:a=s;return a};return this.x=e,this.y=t,this.lastindex=e.length-1,this.interpolate=function(e){return e?(n=l(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getinterpolatefunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new re.linearspline(t.slidesgrid,e.slidesgrid):new re.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){var a,i,s=this,r=s.controller.control,n=s.constructor;function l(e){var t=s.rtltranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getinterpolatefunction(e),i=-s.controller.spline.interpolate(-t)),i&&"container"!==s.params.controller.by||(a=(e.maxtranslate()-e.mintranslate())/(s.maxtranslate()-s.mintranslate()),i=(t-s.mintranslate())*a+e.mintranslate()),s.params.controller.inverse&&(i=e.maxtranslate()-i),e.updateprogress(i),e.settranslate(i,s),e.updateactiveindex(),e.updateslidesclasses()}if(array.isarray(r))for(var o=0;o0&&(e.isbeginning?(e.a11y.disableel(i),e.a11y.makeelnotfocusable(i)):(e.a11y.enableel(i),e.a11y.makeelfocusable(i))),a&&a.length>0&&(e.isend?(e.a11y.disableel(a),e.a11y.makeelnotfocusable(a)):(e.a11y.enableel(a),e.a11y.makeelfocusable(a)))}},updatepagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(a){var i=m(a);e.a11y.makeelfocusable(i),e.params.pagination.renderbullet||(e.a11y.addelrole(i,"button"),e.a11y.addellabel(i,t.paginationbulletmessage.replace(/\{\{index\}\}/,i.index()+1)))}))},init:function(){var e=this,t=e.params.a11y;e.$el.append(e.a11y.liveregion);var a=e.$el;t.containerroledescriptionmessage&&e.a11y.addelroledescription(a,t.containerroledescriptionmessage),t.containermessage&&e.a11y.addellabel(a,t.containermessage);var i=e.$wrapperel,s=i.attr("id")||"swiper-wrapper-"+e.a11y.getrandomnumber(16),r=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";e.a11y.addelid(i,s),e.a11y.addellive(i,r),t.itemroledescriptionmessage&&e.a11y.addelroledescription(m(e.slides),t.itemroledescriptionmessage),e.a11y.addelrole(m(e.slides),t.sliderole);var n,l,o=e.params.loop?e.slides.filter((function(t){return!t.classlist.contains(e.params.slideduplicateclass)})).length:e.slides.length;e.slides.each((function(a,i){var s=m(a),r=e.params.loop?parseint(s.attr("data-swiper-slide-index"),10):i,n=t.slidelabelmessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slideslength\}\}/,o);e.a11y.addellabel(s,n)})),e.navigation&&e.navigation.$nextel&&(n=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(l=e.navigation.$prevel),n&&n.length&&(e.a11y.makeelfocusable(n),"button"!==n[0].tagname&&(e.a11y.addelrole(n,"button"),n.on("keydown",e.a11y.onenterorspacekey)),e.a11y.addellabel(n,t.nextslidemessage),e.a11y.addelcontrols(n,s)),l&&l.length&&(e.a11y.makeelfocusable(l),"button"!==l[0].tagname&&(e.a11y.addelrole(l,"button"),l.on("keydown",e.a11y.onenterorspacekey)),e.a11y.addellabel(l,t.prevslidemessage),e.a11y.addelcontrols(l,s)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",p(e.params.pagination.bulletclass),e.a11y.onenterorspacekey)},destroy:function(){var e,t,a=this;a.a11y.liveregion&&a.a11y.liveregion.length>0&&a.a11y.liveregion.remove(),a.navigation&&a.navigation.$nextel&&(e=a.navigation.$nextel),a.navigation&&a.navigation.$prevel&&(t=a.navigation.$prevel),e&&e.off("keydown",a.a11y.onenterorspacekey),t&&t.off("keydown",a.a11y.onenterorspacekey),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.off("keydown",p(a.params.pagination.bulletclass),a.a11y.onenterorspacekey)}},le={init:function(){var e=this,t=l();if(e.params.history){if(!t.history||!t.history.pushstate)return e.params.history.enabled=!1,void(e.params.hashnavigation.enabled=!0);var a=e.history;a.initialized=!0,a.paths=le.getpathvalues(e.params.url),(a.paths.key||a.paths.value)&&(a.scrolltoslide(0,a.paths.value,e.params.runcallbacksoninit),e.params.history.replacestate||t.addeventlistener("popstate",e.history.sethistorypopstate))}},destroy:function(){var e=l();this.params.history.replacestate||e.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){var e=this;e.history.paths=le.getpathvalues(e.params.url),e.history.scrolltoslide(e.params.speed,e.history.paths.value,!1)},getpathvalues:function(e){var t=l(),a=(e?new url(e):t.location).pathname.slice(1).split("/").filter((function(e){return""!==e})),i=a.length;return{key:a[i-2],value:a[i-1]}},sethistory:function(e,t){var a=this,i=l();if(a.history.initialized&&a.params.history.enabled){var s;s=a.params.url?new url(a.params.url):i.location;var r=a.slides.eq(t),n=le.slugify(r.attr("data-history"));if(a.params.history.root.length>0){var o=a.params.history.root;"/"===o[o.length-1]&&(o=o.slice(0,o.length-1)),n=o+"/"+e+"/"+n}else s.pathname.includes(e)||(n=e+"/"+n);var d=i.history.state;d&&d.value===n||(a.params.history.replacestate?i.history.replacestate({value:n},null,n):i.history.pushstate({value:n},null,n))}},slugify:function(e){return e.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(e,t,a){var i=this;if(t)for(var s=0,r=i.slides.length;s'),i.append(e)),e.css({height:r+"px"})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=m('
'),a.append(e)));for(var v=0;v-1&&(h=90*g+90*y,l&&(h=90*-g-90*y)),f.transform(c),p.slideshadows){var s=u?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),m=u?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===s.length&&(s=m('
'),f.append(s)),0===m.length&&(m=m('
'),f.append(m)),s.length&&(s[0].style.opacity=math.max(-y,0)),m.length&&(m[0].style.opacity=math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+o/2+"px","-moz-transform-origin":"50% 50% -"+o/2+"px","-ms-transform-origin":"50% 50% -"+o/2+"px","transform-origin":"50% 50% -"+o/2+"px"}),p.shadow)if(u)e.transform("translate3d(0px, "+(r/2+p.shadowoffset)+"px, "+-r/2+"px) rotatex(90deg) rotatez(0deg) scale("+p.shadowscale+")");else{var z=math.abs(h)-90*math.floor(math.abs(h)/90),p=1.5-(math.sin(2*z*math.pi/360)/2+math.cos(2*z*math.pi/360)/2),k=p.shadowscale,$=p.shadowscale/p,l=p.shadowoffset;e.transform("scale3d("+k+", 1, "+$+") translate3d(0px, "+(n/2+l)+"px, "+-n/2/$+"px) rotatex(-90deg)")}var i=d.issafari||d.iswebview?-o/2:0;i.transform("translate3d(0px,0,"+i+"px) rotatex("+(t.ishorizontal()?0:h)+"deg) rotatey("+(t.ishorizontal()?-h:0)+"deg)")},settransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeeffect.shadow&&!t.ishorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},ce={settranslate:function(){for(var e=this,t=e.slides,a=e.rtltranslate,i=0;i'),s.append(p)),0===u.length&&(u=m('
'),s.append(u)),p.length&&(p[0].style.opacity=math.max(-r,0)),u.length&&(u[0].style.opacity=math.max(r,0))}s.transform("translate3d("+o+"px, "+d+"px, 0px) rotatex("+l+"deg) rotatey("+n+"deg)")}},settransition:function(e){var t=this,a=t.slides,i=t.activeindex,s=t.$wrapperel;if(a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualtranslate&&0!==e){var r=!1;a.eq(i).transitionend((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkittransitionend","transitionend"],a=0;a'),h.append(s)),0===m.length&&(m=m('
'),h.append(m)),s.length&&(s[0].style.opacity=f>0?f:0),m.length&&(m[0].style.opacity=-f>0?-f:0)}}},settransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ve={init:function(){var e=this,t=e.params.thumbs;if(e.thumbs.initialized)return!1;e.thumbs.initialized=!0;var a=e.constructor;return t.swiper instanceof a?(e.thumbs.swiper=t.swiper,m(e.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),m(e.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):c(t.swiper)&&(e.thumbs.swiper=new a(m({},t.swiper,{watchslidesvisibility:!0,watchslidesprogress:!0,slidetoclickedslide:!1})),e.thumbs.swipercreated=!0),e.thumbs.swiper.$el.addclass(e.params.thumbs.thumbscontainerclass),e.thumbs.swiper.on("tap",e.thumbs.onthumbclick),!0},onthumbclick:function(){var e=this,t=e.thumbs.swiper;if(t){var a=t.clickedindex,i=t.clickedslide;if(!(i&&m(i).hasclass(e.params.thumbs.slidethumbactiveclass)||null==a)){var s;if(s=t.params.loop?parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10):a,e.params.loop){var r=e.activeindex;e.slides.eq(r).hasclass(e.params.slideduplicateclass)&&(e.loopfix(),e._clientleft=e.$wrapperel[0].clientleft,r=e.activeindex);var n=e.slides.eq(r).prevall('[data-swiper-slide-index="'+s+'"]').eq(0).index(),l=e.slides.eq(r).nextall('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===n?l:void 0===l?n:l-r1?p:o:p-ot.previousindex?"next":"prev"}else l=(n=t.realindex)>t.previousindex?"next":"prev";r&&(n+="next"===l?s:-1*s),a.visibleslidesindexes&&a.visibleslidesindexes.indexof(n)<0&&(a.params.centeredslides?n=n>o?n-math.floor(i/2)+1:n+math.floor(i/2)-1:n>o&&a.params.slidespergroup,a.slideto(n,e?0:void 0))}var u=1,c=t.params.thumbs.slidethumbactiveclass;if(t.params.slidesperview>1&&!t.params.centeredslides&&(u=t.params.slidesperview),t.params.thumbs.multipleactivethumbs||(u=1),u=math.floor(u),a.slides.removeclass(c),a.params.loop||a.params.virtual&&a.params.virtual.enabled)for(var h=0;h0&&!m(a).hasclass(e.params.pagination.bulletclass)){if(e.navigation&&(e.navigation.nextel&&a===e.navigation.nextel||e.navigation.prevel&&a===e.navigation.prevel))return;!0===e.pagination.$el.hasclass(e.params.pagination.hiddenclass)?e.emit("paginationshow"):e.emit("paginationhide"),e.pagination.$el.toggleclass(e.params.pagination.hiddenclass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}},create:function(){z(this,{scrollbar:t({istouched:!1,timeout:null,dragtimeout:null},te)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updatesize(),e.scrollbar.settranslate()},update:function(e){e.scrollbar.updatesize()},resize:function(e){e.scrollbar.updatesize()},observerupdate:function(e){e.scrollbar.updatesize()},settranslate:function(e){e.scrollbar.settranslate()},settransition:function(e,t){e.scrollbar.settransition(t)},"enable disable":function(e){var t=e.scrollbar.$el;t&&t[e.enabled?"removeclass":"addclass"](e.params.scrollbar.lockclass)},destroy:function(e){e.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){z(this,{parallax:t({},ae)})},on:{beforeinit:function(e){e.params.parallax.enabled&&(e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settranslate:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settransition:function(e,t){e.params.parallax.enabled&&e.parallax.settransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var e=this;z(e,{zoom:t({enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0}},ie)});var a=1;object.defineproperty(e.zoom,"scale",{get:function(){return a},set:function(t){if(a!==t){var i=e.zoom.gesture.$imageel?e.zoom.gesture.$imageel[0]:void 0,s=e.zoom.gesture.$slideel?e.zoom.gesture.$slideel[0]:void 0;e.emit("zoomchange",t,i,s)}a=t}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchstart:function(e,t){e.zoom.enabled&&e.zoom.ontouchstart(t)},touchend:function(e,t){e.zoom.enabled&&e.zoom.ontouchend(t)},doubletap:function(e,t){!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionend:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.ontransitionend()},slidechange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssmode&&e.zoom.ontransitionend()}}},{name:"lazy",params:{lazy:{checkinview:!1,enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,scrollingelement:"",elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}},create:function(){z(this,{lazy:t({initialimageloaded:!1},se)})},on:{beforeinit:function(e){e.params.lazy.enabled&&e.params.preloadimages&&(e.params.preloadimages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialslide&&(e.params.lazy.checkinview?e.lazy.checkinviewonload():e.lazy.load())},scroll:function(e){e.params.freemode&&!e.params.freemodesticky&&e.lazy.load()},"scrollbardragmove resize _freemodenomomentumrelease":function(e){e.params.lazy.enabled&&e.lazy.load()},transitionstart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadontransitionstart||!e.params.lazy.loadontransitionstart&&!e.lazy.initialimageloaded)&&e.lazy.load()},transitionend:function(e){e.params.lazy.enabled&&!e.params.lazy.loadontransitionstart&&e.lazy.load()},slidechange:function(e){var t=e.params,a=t.lazy,i=t.cssmode,s=t.watchslidesvisibility,r=t.watchslidesprogress,n=t.touchreleaseonedges,l=t.resistanceratio;a.enabled&&(i||(s||r)&&(n||0===l))&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){z(this,{controller:t({control:this.params.controller.control},re)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerupdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},settranslate:function(e,t,a){e.controller.control&&e.controller.settranslate(t,a)},settransition:function(e,t,a){e.controller.control&&e.controller.settransition(t,a)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",slidelabelmessage:"{{index}} / {{slideslength}}",containermessage:null,containerroledescriptionmessage:null,itemroledescriptionmessage:null,sliderole:"group"}},create:function(){z(this,{a11y:t({},ne,{liveregion:m('')})})},on:{afterinit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updatenavigation())},toedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},fromedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},paginationupdate:function(e){e.params.a11y.enabled&&e.a11y.updatepagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,root:"",replacestate:!1,key:"slides"}},create:function(){z(this,{history:t({},le)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},"transitionend _freemodenomomentumrelease":function(e){e.history.initialized&&e.history.sethistory(e.params.history.key,e.activeindex)},slidechange:function(e){e.history.initialized&&e.params.cssmode&&e.history.sethistory(e.params.history.key,e.activeindex)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){z(this,{hashnavigation:t({initialized:!1},oe)})},on:{init:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.init()},destroy:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.destroy()},"transitionend _freemodenomomentumrelease":function(e){e.hashnavigation.initialized&&e.hashnavigation.sethash()},slidechange:function(e){e.hashnavigation.initialized&&e.params.cssmode&&e.hashnavigation.sethash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1,pauseonmouseenter:!1}},create:function(){z(this,{autoplay:t({},de,{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),r().addeventlistener("visibilitychange",e.autoplay.onvisibilitychange),e.autoplay.attachmouseevents())},beforetransitionstart:function(e,t,a){e.autoplay.running&&(a||!e.params.autoplay.disableoninteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderfirstmove:function(e){e.autoplay.running&&(e.params.autoplay.disableoninteraction?e.autoplay.stop():e.autoplay.pause())},touchend:function(e){e.params.cssmode&&e.autoplay.paused&&!e.params.autoplay.disableoninteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.detachmouseevents(),e.autoplay.running&&e.autoplay.stop(),r().removeeventlistener("visibilitychange",e.autoplay.onvisibilitychange)}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){z(this,{fadeeffect:t({},pe)})},on:{beforeinit:function(e){if("fade"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"fade");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};m(e.params,t),m(e.originalparams,t)}},settranslate:function(e){"fade"===e.params.effect&&e.fadeeffect.settranslate()},settransition:function(e,t){"fade"===e.params.effect&&e.fadeeffect.settransition(t)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){z(this,{cubeeffect:t({},ue)})},on:{beforeinit:function(e){if("cube"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"cube"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};m(e.params,t),m(e.originalparams,t)}},settranslate:function(e){"cube"===e.params.effect&&e.cubeeffect.settranslate()},settransition:function(e,t){"cube"===e.params.effect&&e.cubeeffect.settransition(t)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){z(this,{flipeffect:t({},ce)})},on:{beforeinit:function(e){if("flip"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"flip"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};m(e.params,t),m(e.originalparams,t)}},settranslate:function(e){"flip"===e.params.effect&&e.flipeffect.settranslate()},settransition:function(e,t){"flip"===e.params.effect&&e.flipeffect.settransition(t)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideshadows:!0}},create:function(){z(this,{coverfloweffect:t({},he)})},on:{beforeinit:function(e){"coverflow"===e.params.effect&&(e.classnames.push(e.params.containermodifierclass+"coverflow"),e.classnames.push(e.params.containermodifierclass+"3d"),e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},settranslate:function(e){"coverflow"===e.params.effect&&e.coverfloweffect.settranslate()},settransition:function(e,t){"coverflow"===e.params.effect&&e.coverfloweffect.settransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleactivethumbs:!0,autoscrolloffset:0,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){z(this,{thumbs:t({swiper:null,initialized:!1},ve)})},on:{beforeinit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slidechange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerupdate:function(e){e.thumbs.swiper&&e.thumbs.update()},settransition:function(e,t){var a=e.thumbs.swiper;a&&a.settransition(t)},beforedestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swipercreated&&t&&t.destroy()}}}];return q.use(fe),q})); // /* == jquery mousewheel plugin == version: 3.1.12, license: mit license (mit) */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jquery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheeldelta"in g&&(m=g.wheeldelta),"wheeldeltay"in g&&(m=g.wheeldeltay),"wheeldeltax"in g&&(l=-1*g.wheeldeltax),"axis"in g&&g.axis===g.horizontal_axis&&(l=-1*m,m=0),j=0===m?l:m,"deltay"in g&&(m=-1*g.deltay,j=m),"deltax"in g&&(l=g.deltax,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltamode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltamode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=math.max(math.abs(m),math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=math[j>=1?"floor":"ceil"](j/f),l=math[l>=1?"floor":"ceil"](l/f),m=math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeoffset&&this.getboundingclientrect){var s=this.getboundingclientrect();o=b.clientx-s.left,p=b.clienty-s.top}return b.deltax=l,b.deltay=m,b.deltafactor=f,b.offsetx=o,b.offsety=p,b.deltamode=0,h.unshift(b,j,l,m),e&&cleartimeout(e),e=settimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustolddeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","dommousescroll","mozmousepixelscroll"],h="onwheel"in document||document.documentmode>=9?["wheel"]:["mousewheel","dommousescroll","mozmousepixelscroll"],i=array.prototype.slice;if(a.event.fixhooks)for(var j=g.length;j;)a.event.fixhooks[g[--j]]=a.event.mousehooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addeventlistener)for(var c=h.length;c;)this.addeventlistener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getlineheight(this)),a.data(this,"mousewheel-page-height",k.getpageheight(this))},teardown:function(){if(this.removeeventlistener)for(var c=h.length;c;)this.removeeventlistener(h[--c],b,!1);else this.onmousewheel=null;a.removedata(this,"mousewheel-line-height"),a.removedata(this,"mousewheel-page-height")},getlineheight:function(b){var c=a(b),d=c["offsetparent"in a.fn?"offsetparent":"parent"]();return d.length||(d=a("body")),parseint(d.css("fontsize"),10)||parseint(c.css("fontsize"),10)||16},getpageheight:function(b){return a(b).height()},settings:{adjustolddeltas:!0,normalizeoffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); /* == malihu jquery custom scrollbar plugin == version: 3.0.7, license: mit license (mit) */ !function(e,t,a){!function(t){var o="function"==typeof define&&define.amd,n="https:"==a.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js";o||e.event.special.mousewheel||e("head").append(decodeuri("%3cscript src="+n+"//"+i+"%3e%3c/script%3e")),t()}(function(){var o,n="mcustomscrollbar",i="mcs",r=".mcustomscrollbar",l={settop:0,setleft:0,axis:"y",scrollbarposition:"inside",scrollinertia:950,autodraggerlength:!0,alwaysshowscrollbar:0,snapoffset:0,mousewheel:{enable:!0,scrollamount:"auto",axis:"y",deltafactor:"auto",disableover:["select","option","keygen","datalist","textarea"]},scrollbuttons:{scrolltype:"stepless",scrollamount:"auto"},keyboard:{enable:!0,scrolltype:"stepless",scrollamount:"auto"},contenttouchscroll:25,advanced:{autoscrollonfocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateoncontentresize:!0,updateonimageload:!0},theme:"light",callbacks:{ontotalscrolloffset:0,ontotalscrollbackoffset:0,alwaystriggeroffsets:!0}},s=0,c={},d=t.attachevent&&!t.addeventlistener?1:0,u=!1,f=["mcsb_dragger_ondrag","mcsb_scrolltools_ondrag","mcs_img_loaded","mcs_disabled","mcs_destroyed","mcs_no_scrollbar","mcs-autohide","mcs-dir-rtl","mcs_no_scrollbar_y","mcs_no_scrollbar_x","mcs_y_hidden","mcs_x_hidden","mcsb_draggercontainer","mcsb_buttonup","mcsb_buttondown","mcsb_buttonleft","mcsb_buttonright"],h={init:function(t){var t=e.extend(!0,{},l,t),a=m.call(this);if(t.live){var o=t.liveselector||this.selector||r,n=e(o);if("off"===t.live)return void g(o);c[o]=settimeout(function(){n.mcustomscrollbar(t),"once"===t.live&&n.length&&g(o)},500)}else g(o);return t.setwidth=t.set_width?t.set_width:t.setwidth,t.setheight=t.set_height?t.set_height:t.setheight,t.axis=t.horizontalscroll?"x":v(t.axis),t.scrollinertia=t.scrollinertia>0&&t.scrollinertia<17?17:t.scrollinertia,"object"!=typeof t.mousewheel&&1==t.mousewheel&&(t.mousewheel={enable:!0,scrollamount:"auto",axis:"y",preventdefault:!1,deltafactor:"auto",normalizedelta:!1,invert:!1}),t.mousewheel.scrollamount=t.mousewheelpixels?t.mousewheelpixels:t.mousewheel.scrollamount,t.mousewheel.normalizedelta=t.advanced.normalizemousewheeldelta?t.advanced.normalizemousewheeldelta:t.mousewheel.normalizedelta,t.scrollbuttons.scrolltype=x(t.scrollbuttons.scrolltype),p(t),e(a).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++s,opt:t,scrollratio:{y:null,x:null},overflowed:null,contentreset:{y:null,x:null},bindevents:!1,tweenrunning:!1,sequential:{},langdir:a.css("direction"),cboffsets:null,trigger:null});var o=a.data(i),n=o.opt,r=a.data("mcs-axis"),l=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");r&&(n.axis=r),l&&(n.scrollbarposition=l),c&&(n.theme=c,p(n)),_.call(this),e("#mcsb_"+o.idx+"_container img:not(."+f[2]+")").addclass(f[2]),h.update.call(null,a)}})},update:function(t,a){var o=t||m.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),n=o.opt,r=e("#mcsb_"+o.idx+"_container"),l=[e("#mcsb_"+o.idx+"_dragger_vertical"),e("#mcsb_"+o.idx+"_dragger_horizontal")];if(!r.length)return;o.tweenrunning&&q(t),t.hasclass(f[3])&&t.removeclass(f[3]),t.hasclass(f[4])&&t.removeclass(f[4]),c.call(this),w.call(this),"y"===n.axis||n.advanced.autoexpandhorizontalscroll||r.css("width",s(r.children())),o.overflowed=k.call(this),r.call(this),n.autodraggerlength&&y.call(this),b.call(this),o.call(this);var s=[math.abs(r[0].offsettop),math.abs(r[0].offsetleft)];"x"!==n.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?m.call(this):(g(t,s[0].tostring(),{dir:"y",dur:0,overwrite:"none"}),o.contentreset.y=null):(m.call(this),"y"===n.axis?i.call(this):"yx"===n.axis&&o.overflowed[1]&&g(t,s[1].tostring(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?m.call(this):(g(t,s[1].tostring(),{dir:"x",dur:0,overwrite:"none"}),o.contentreset.x=null):(m.call(this),"x"===n.axis?i.call(this):"yx"===n.axis&&o.overflowed[0]&&g(t,s[0].tostring(),{dir:"y",dur:0,overwrite:"none"}))),a&&o&&(2===a&&n.callbacks.onimageload&&"function"==typeof n.callbacks.onimageload?n.callbacks.onimageload.call(this):3===a&&n.callbacks.onselectorchange&&"function"==typeof n.callbacks.onselectorchange?n.callbacks.onselectorchange.call(this):n.callbacks.onupdate&&"function"==typeof n.callbacks.onupdate&&n.callbacks.onupdate.call(this)),n.call(this)}})},scrollto:function(t,a){if("undefined"!=typeof t&&null!=t){var o=m.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var n=o.data(i),r=n.opt,l={trigger:"external",scrollinertia:r.scrollinertia,scrolleasing:"mcseaseinout",movedragger:!1,timeout:60,callbacks:!0,onstart:!0,onupdate:!0,oncomplete:!0},s=e.extend(!0,{},l,a),c=y.call(this,t),d=s.scrollinertia>0&&s.scrollinertia<17?17:s.scrollinertia;c[0]=x.call(this,c[0],"y"),c[1]=x.call(this,c[1],"x"),s.movedragger&&(c[0]*=n.scrollratio.y,c[1]*=n.scrollratio.x),s.dur=d,settimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&n.overflowed[0]&&(s.dir="y",s.overwrite="all",g(o,c[0].tostring(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&n.overflowed[1]&&(s.dir="x",s.overwrite="none",g(o,c[1].tostring(),s))},s.timeout)}})}},stop:function(){var t=m.call(this);return e(t).each(function(){var t=e(this);t.data(i)&&q(t)})},disable:function(t){var a=m.call(this);return e(a).each(function(){var a=e(this);if(a.data(i)){{a.data(i)}n.call(this,"remove"),i.call(this),t&&m.call(this),r.call(this,!0),a.addclass(f[3])}})},destroy:function(){var t=m.call(this);return e(t).each(function(){var a=e(this);if(a.data(i)){var o=a.data(i),r=o.opt,l=e("#mcsb_"+o.idx),s=e("#mcsb_"+o.idx+"_container"),c=e(".mcsb_"+o.idx+"_scrollbar");r.live&&g(r.liveselector||e(t).selector),n.call(this,"remove"),i.call(this),m.call(this),a.removedata(i),$(this,"mcs"),c.remove(),s.find("img."+f[2]).removeclass(f[2]),l.replacewith(s.contents()),a.removeclass(n+" _"+i+"_"+o.idx+" "+f[6]+" "+f[7]+" "+f[5]+" "+f[3]).addclass(f[4])}})}},m=function(){return"object"!=typeof e(this)||e(this).length<1?r:this},p=function(t){var a=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],o=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autodraggerlength=e.inarray(t.theme,a)>-1?!1:t.autodraggerlength,t.autoexpandscrollbar=e.inarray(t.theme,o)>-1?!1:t.autoexpandscrollbar,t.scrollbuttons.enable=e.inarray(t.theme,n)>-1?!1:t.scrollbuttons.enable,t.autohidescrollbar=e.inarray(t.theme,i)>-1?!0:t.autohidescrollbar,t.scrollbarposition=e.inarray(t.theme,r)>-1?"outside":t.scrollbarposition},g=function(e){c[e]&&(cleartimeout(c[e]),$(c,e))},v=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},x=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},_=function(){var t=e(this),a=t.data(i),o=a.opt,r=o.autoexpandscrollbar?" "+f[1]+"_expand":"",l=["
","
"],s="yx"===o.axis?"mcsb_vertical_horizontal":"x"===o.axis?"mcsb_horizontal":"mcsb_vertical",c="yx"===o.axis?l[0]+l[1]:"x"===o.axis?l[1]:l[0],d="yx"===o.axis?"
":"",u=o.autohidescrollbar?" "+f[6]:"",h="x"!==o.axis&&"rtl"===a.langdir?" "+f[7]:"";o.setwidth&&t.css("width",o.setwidth),o.setheight&&t.css("height",o.setheight),o.setleft="y"!==o.axis&&"rtl"===a.langdir?"989999px":o.setleft,t.addclass(n+" _"+i+"_"+a.idx+u+h).wrapinner("
");var m=e("#mcsb_"+a.idx),p=e("#mcsb_"+a.idx+"_container");"y"===o.axis||o.advanced.autoexpandhorizontalscroll||p.css("width",s(p.children())),"outside"===o.scrollbarposition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addclass("mcsb_outside").after(c)):(m.addclass("mcsb_inside").append(c),p.wrap(d)),b.call(this);var g=[e("#mcsb_"+a.idx+"_dragger_vertical"),e("#mcsb_"+a.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},s=function(t){return math.max.apply(math,t.map(function(){return e(this).outerwidth(!0)}).get())},w=function(){var t=e(this),a=t.data(i),o=a.opt,n=e("#mcsb_"+a.idx+"_container");o.advanced.autoexpandhorizontalscroll&&"y"!==o.axis&&n.css({position:"absolute",width:"auto"}).wrap("
").css({width:math.ceil(n[0].getboundingclientrect().right+.4)-math.floor(n[0].getboundingclientrect().left),position:"relative"}).unwrap()},b=function(){var t=e(this),a=t.data(i),o=a.opt,n=e(".mcsb_"+a.idx+"_scrollbar:first"),r=at(o.scrollbuttons.tabindex)?"tabindex='"+o.scrollbuttons.tabindex+"'":"",l=["","","",""],s=["x"===o.axis?l[2]:l[0],"x"===o.axis?l[3]:l[1],l[2],l[3]];o.scrollbuttons.enable&&n.prepend(s[0]).append(s[1]).next(".mcsb_scrolltools").prepend(s[2]).append(s[3])},c=function(){var t=e(this),a=t.data(i),o=e("#mcsb_"+a.idx),n=t.css("max-height")||"none",r=-1!==n.indexof("%"),l=t.css("box-sizing");if("none"!==n){var s=r?t.parent().height()*parseint(n)/100:parseint(n);"border-box"===l&&(s-=t.innerheight()-t.height()+(t.outerheight()-t.innerheight())),o.css("max-height",math.round(s))}},y=function(){var t=e(this),a=t.data(i),o=e("#mcsb_"+a.idx),n=e("#mcsb_"+a.idx+"_container"),r=[e("#mcsb_"+a.idx+"_dragger_vertical"),e("#mcsb_"+a.idx+"_dragger_horizontal")],l=[o.height()/n.outerheight(!1),o.width()/n.outerwidth(!1)],s=[parseint(r[0].css("min-height")),math.round(l[0]*r[0].parent().height()),parseint(r[1].css("min-width")),math.round(l[1]*r[1].parent().width())],c=d&&s[1]o.height(),l>o.width()]},m=function(){var t=e(this),a=t.data(i),o=a.opt,n=e("#mcsb_"+a.idx),r=e("#mcsb_"+a.idx+"_container"),l=[e("#mcsb_"+a.idx+"_dragger_vertical"),e("#mcsb_"+a.idx+"_dragger_horizontal")];if(q(t),("x"!==o.axis&&!a.overflowed[0]||"y"===o.axis&&a.overflowed[0])&&(l[0].add(r).css("top",0),g(t,"_resety")),"y"!==o.axis&&!a.overflowed[1]||"x"===o.axis&&a.overflowed[1]){var s=dx=0;"rtl"===a.langdir&&(s=n.width()-r.outerwidth(!1),dx=math.abs(s/a.scrollratio.x)),r.css("left",s),l[1].css("left",dx),g(t,"_resetx")}},o=function(){function t(){r=settimeout(function(){e.event.special.mousewheel?(cleartimeout(r),a.call(a[0])):t()},100)}var a=e(this),o=a.data(i),n=o.opt;if(!o.bindevents){if(d.call(this),n.contenttouchscroll&&l.call(this),w.call(this),n.mousewheel.enable){var r;t()}z.call(this),u.call(this),n.advanced.autoscrollonfocus&&h.call(this),n.scrollbuttons.enable&&f.call(this),n.keyboard.enable&&q.call(this),o.bindevents=!0}},i=function(){var t=e(this),o=t.data(i),n=o.opt,r=i+"_"+o.idx,l=".mcsb_"+o.idx+"_scrollbar",s=e("#mcsb_"+o.idx+",#mcsb_"+o.idx+"_container,#mcsb_"+o.idx+"_container_wrapper,"+l+" ."+f[12]+",#mcsb_"+o.idx+"_dragger_vertical,#mcsb_"+o.idx+"_dragger_horizontal,"+l+">a"),c=e("#mcsb_"+o.idx+"_container");n.advanced.releasedraggableselectors&&s.add(e(n.advanced.releasedraggableselectors)),o.bindevents&&(e(a).unbind("."+r),s.each(function(){e(this).unbind("."+r)}),cleartimeout(t[0]._focustimeout),$(t[0],"_focustimeout"),cleartimeout(o.sequential.step),$(o.sequential,"step"),cleartimeout(c[0].oncompletetimeout),$(c[0],"oncompletetimeout"),o.bindevents=!1)},r=function(t){var a=e(this),o=a.data(i),n=o.opt,r=e("#mcsb_"+o.idx+"_container_wrapper"),l=r.length?r:e("#mcsb_"+o.idx+"_container"),s=[e("#mcsb_"+o.idx+"_scrollbar_vertical"),e("#mcsb_"+o.idx+"_scrollbar_horizontal")],c=[s[0].find(".mcsb_dragger"),s[1].find(".mcsb_dragger")];"x"!==n.axis&&(o.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeclass(f[8]+" "+f[10])):(n.alwaysshowscrollbar?(2!==n.alwaysshowscrollbar&&c[0].css("display","none"),l.removeclass(f[10])):(s[0].css("display","none"),l.addclass(f[10])),l.addclass(f[8]))),"y"!==n.axis&&(o.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeclass(f[9]+" "+f[11])):(n.alwaysshowscrollbar?(2!==n.alwaysshowscrollbar&&c[1].css("display","none"),l.removeclass(f[11])):(s[1].css("display","none"),l.addclass(f[11])),l.addclass(f[9]))),o.overflowed[0]||o.overflowed[1]?a.removeclass(f[5]):a.addclass(f[5])},e=function(e){var t=e.type;switch(t){case"pointerdown":case"mspointerdown":case"pointermove":case"mspointermove":case"pointerup":case"mspointerup":return[e.originalevent.pagey,e.originalevent.pagex,!1];case"touchstart":case"touchmove":case"touchend":var a=e.originalevent.touches[0]||e.originalevent.changedtouches[0],o=e.originalevent.touches.length||e.originalevent.changedtouches.length;return[a.pagey,a.pagex,o>1];default:return[e.pagey,e.pagex,!1]}},d=function(){function t(e){var t=p.find("iframe");if(t.length){var a=e?"auto":"none";t.css("pointer-events",a)}}function o(e,t,a,o){if(p[0].idletimer=f.scrollinertia<233?250:0,n.attr("id")===m[1])var i="x",r=(n[0].offsetleft-t+o)*c.scrollratio.x;else var i="y",r=(n[0].offsettop-e+a)*c.scrollratio.y;g(s,r.tostring(),{dir:i,drag:!0})}var n,r,l,s=e(this),c=s.data(i),f=c.opt,h=i+"_"+c.idx,m=["mcsb_"+c.idx+"_dragger_vertical","mcsb_"+c.idx+"_dragger_horizontal"],p=e("#mcsb_"+c.idx+"_container"),g=e("#"+m[0]+",#"+m[1]),v=f.advanced.releasedraggableselectors?g.add(e(f.advanced.releasedraggableselectors)):g;g.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" mspointerdown."+h,function(o){if(o.stopimmediatepropagation(),o.preventdefault(),et(o)){u=!0,d&&(a.onselectstart=function(){return!1}),t(!1),q(s),n=e(this);var i=n.offset(),c=e(o)[0]-i.top,h=e(o)[1]-i.left,m=n.height()+i.top,p=n.width()+i.left;m>c&&c>0&&p>h&&h>0&&(r=c,l=h),t(n,"active",f.autoexpandscrollbar)}}).bind("touchmove."+h,function(e){e.stopimmediatepropagation(),e.preventdefault();var t=n.offset(),a=e(e)[0]-t.top,i=e(e)[1]-t.left;o(r,l,a,i)}),e(a).bind("mousemove."+h+" pointermove."+h+" mspointermove."+h,function(e){if(n){var t=n.offset(),a=e(e)[0]-t.top,i=e(e)[1]-t.left;if(r===a)return;o(r,l,a,i)}}).add(v).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" mspointerup."+h,function(){n&&(t(n,"active",f.autoexpandscrollbar),n=null),u=!1,d&&(a.onselectstart=null),t(!0)})},l=function(){function t(e,t){var a=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?a[0]:a[3]:e>60?t>3?a[3]:a[2]:e>30?t>8?a[1]:t>6?a[0]:t>4?t:a[2]:t>8?t:a[3]}function a(e,t,a,o,n,i){e&&g(_,e.tostring(),{dur:t,scrolleasing:a,dir:o,overwrite:n,drag:i})}var n,r,l,s,c,d,f,h,m,p,g,v,x,_=e(this),s=_.data(i),w=s.opt,b=i+"_"+s.idx,c=e("#mcsb_"+s.idx),y=e("#mcsb_"+s.idx+"_container"),b=[e("#mcsb_"+s.idx+"_dragger_vertical"),e("#mcsb_"+s.idx+"_dragger_horizontal")],t=[],k=[],m=0,o="yx"===w.axis?"none":"all",i=[];y.bind("touchstart."+b+" pointerdown."+b+" mspointerdown."+b,function(e){if(!tt(e)||u||e(e)[2])return void(o=0);o=1,v=0,x=0;var t=y.offset();n=e(e)[0]-t.top,r=e(e)[1]-t.left,i=[e(e)[0],e(e)[1]]}).bind("touchmove."+b+" pointermove."+b+" mspointermove."+b,function(e){if(tt(e)&&!u&&!e(e)[2]&&(e.stopimmediatepropagation(),!x||v)){d=k();var t=c.offset(),o=e(e)[0]-t.top,i=e(e)[1]-t.left,l="mcslinearout";if(t.push(o),k.push(i),i[2]=math.abs(e(e)[0]-i[0]),i[3]=math.abs(e(e)[1]-i[1]),s.overflowed[0])var s=b[0].parent().height()-b[0].height(),c=n-o>0&&o-n>-(s*s.scrollratio.y)&&(2*i[3]0&&i-r>-(f*s.scrollratio.x)&&(2*i[2]30)){m=1e3/(f-c);var r="mcseaseout",_=2.5>m,b=_?[t[t.length-2],k[k.length-2]]:[0,0];h=_?[n-b[0],i-b[1]]:[n-l,i-s];var b=[math.abs(h[0]),math.abs(h[1])];m=_?[math.abs(h[0]/4),math.abs(h[1]/4)]:[m,m];var m=[math.abs(y[0].offsettop)-h[0]*t(b[0]/m[0],m[0]),math.abs(y[0].offsetleft)-h[1]*t(b[1]/m[1],m[1])];p="yx"===w.axis?[m[0],m[1]]:"x"===w.axis?[null,m[1]]:[m[0],null],g=[4*b[0]+w.scrollinertia,4*b[1]+w.scrollinertia];var i=parseint(w.contenttouchscroll)||0;p[0]=b[0]>i?p[0]:0,p[1]=b[1]>i?p[1]:0,s.overflowed[0]&&a(p[0],g[0],r,"y",o,!1),s.overflowed[1]&&a(p[1],g[1],r,"x",o,!1)}}})},w=function(){function n(){return t.getselection?t.getselection().tostring():a.selection&&"control"!=a.selection.type?a.selection.createrange().text:0}function r(e,t,a){f.type=a&&l?"stepped":"stepless",f.scrollamount=10,j(s,e,t,"mcslinearout",a?60:null)}var l,s=e(this),c=s.data(i),d=c.opt,f=c.sequential,h=i+"_"+c.idx,m=e("#mcsb_"+c.idx+"_container"),p=m.parent();m.bind("mousedown."+h,function(){o||l||(l=1,u=!0)}).add(a).bind("mousemove."+h,function(e){if(!o&&l&&n()){var t=m.offset(),a=e(e)[0]-t.top+m[0].offsettop,i=e(e)[1]-t.left+m[0].offsetleft;a>0&&a0&&ia?r("on",38):a>p.height()&&r("on",40)),"y"!==d.axis&&c.overflowed[1]&&(0>i?r("on",37):i>p.width()&&r("on",39)))}}).bind("mouseup."+h,function(){o||(l&&(l=0,r("off",null)),u=!1)})},a=function(){function t(e){var t=null;try{var a=e.contentdocument||e.contentwindow.document;t=a.body.innerhtml}catch(o){}return null!==t}var a=e(this),o=a.data(i);if(o){var n=o.opt,r=i+"_"+o.idx,l=e("#mcsb_"+o.idx),s=[e("#mcsb_"+o.idx+"_dragger_vertical"),e("#mcsb_"+o.idx+"_dragger_horizontal")],c=e("#mcsb_"+o.idx+"_container").find("iframe"),u=l;c.length&&c.each(function(){var a=this;t(a)&&(u=u.add(e(a).contents().find("body")))}),u.bind("mousewheel."+r,function(t,i){if(q(a),!p(a,t.target)){var r="auto"!==n.mousewheel.deltafactor?parseint(n.mousewheel.deltafactor):d&&t.deltafactor<100?100:t.deltafactor||100;if("x"===n.axis||"x"===n.mousewheel.axis)var c="x",u=[math.round(r*o.scrollratio.x),parseint(n.mousewheel.scrollamount)],f="auto"!==n.mousewheel.scrollamount?u[1]:u[0]>=l.width()?.9*l.width():u[0],h=math.abs(e("#mcsb_"+o.idx+"_container")[0].offsetleft),m=s[1][0].offsetleft,p=s[1].parent().width()-s[1].width(),g=t.deltax||t.deltay||i;else var c="y",u=[math.round(r*o.scrollratio.y),parseint(n.mousewheel.scrollamount)],f="auto"!==n.mousewheel.scrollamount?u[1]:u[0]>=l.height()?.9*l.height():u[0],h=math.abs(e("#mcsb_"+o.idx+"_container")[0].offsettop),m=s[0][0].offsettop,p=s[0].parent().height()-s[0].height(),g=t.deltay||i;"y"===c&&!o.overflowed[0]||"x"===c&&!o.overflowed[1]||(n.mousewheel.invert&&(g=-g),n.mousewheel.normalizedelta&&(g=0>g?-1:1),(g>0&&0!==m||0>g&&m!==p||n.mousewheel.preventdefault)&&(t.stopimmediatepropagation(),t.preventdefault()),g(a,(h-g*f).tostring(),{dir:c}))}})}},p=function(t,a){var o=a.nodename.tolowercase(),n=t.data(i).opt.mousewheel.disableover,r=["select","textarea"];return e.inarray(o,n)>-1&&!(e.inarray(o,r)>-1&&!e(a).is(":focus"))},z=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,n=e("#mcsb_"+a.idx+"_container"),r=n.parent(),l=e(".mcsb_"+a.idx+"_scrollbar ."+f[12]);l.bind("touchstart."+o+" pointerdown."+o+" mspointerdown."+o,function(){u=!0}).bind("touchend."+o+" pointerup."+o+" mspointerup."+o,function(){u=!1}).bind("click."+o,function(o){if(e(o.target).hasclass(f[12])||e(o.target).hasclass("mcsb_draggerrail")){q(t);var i=e(this),l=i.find(".mcsb_dragger");if(i.parent(".mcsb_scrolltools_horizontal").length>0){if(!a.overflowed[1])return;var s="x",c=o.pagex>l.offset().left?-1:1,d=math.abs(n[0].offsetleft)-.9*c*r.width()}else{if(!a.overflowed[0])return;var s="y",c=o.pagey>l.offset().top?-1:1,d=math.abs(n[0].offsettop)-.9*c*r.height()}g(t,d.tostring(),{dir:s,scrolleasing:"mcseaseinout"})}})},h=function(){var t=e(this),o=t.data(i),n=o.opt,r=i+"_"+o.idx,l=e("#mcsb_"+o.idx+"_container"),s=l.parent();l.bind("focusin."+r,function(){var o=e(a.activeelement),i=l.find(".mcustomscrollbox").length,r=0;o.is(n.advanced.autoscrollonfocus)&&(q(t),cleartimeout(t[0]._focustimeout),t[0]._focustimer=i?(r+17)*i:0,t[0]._focustimeout=settimeout(function(){var e=[ot(o)[0],ot(o)[1]],a=[l[0].offsettop,l[0].offsetleft],i=[a[0]+e[0]>=0&&a[0]+e[0]=0&&a[0]+e[1]a");s.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" mspointerdown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" mspointerup."+r+" mouseout."+r+" pointerout."+r+" mspointerout."+r+" click."+r,function(i){function r(e,a){n.scrollamount=o.snapamount||o.scrollbuttons.scrollamount,j(t,e,a)}if(i.preventdefault(),et(i)){var l=e(this).attr("class");switch(n.type=o.scrollbuttons.scrolltype,i.type){case"mousedown":case"touchstart":case"pointerdown":case"mspointerdown":if("stepped"===n.type)return;u=!0,a.tweenrunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"mspointerup":case"mouseout":case"pointerout":case"mspointerout":if("stepped"===n.type)return;u=!1,n.dir&&r("off",l);break;case"click":if("stepped"!==n.type||a.tweenrunning)return;r("on",l)}}})},q=function(){var t=e(this),o=t.data(i),n=o.opt,r=o.sequential,l=i+"_"+o.idx,s=e("#mcsb_"+o.idx),c=e("#mcsb_"+o.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']";s.attr("tabindex","0").bind("blur."+l+" keydown."+l+" keyup."+l,function(i){function l(e,a){r.type=n.keyboard.scrolltype,r.scrollamount=n.snapamount||n.keyboard.scrollamount,"stepped"===r.type&&o.tweenrunning||j(t,e,a)}switch(i.type){case"blur":o.tweenrunning&&r.dir&&l("off",null);break;case"keydown":case"keyup":var s=i.keycode?i.keycode:i.which,f="on";if("x"!==n.axis&&(38===s||40===s)||"y"!==n.axis&&(37===s||39===s)){if((38===s||40===s)&&!o.overflowed[0]||(37===s||39===s)&&!o.overflowed[1])return;"keyup"===i.type&&(f="off"),e(a.activeelement).is(u)||(i.preventdefault(),i.stopimmediatepropagation(),l(f,s))}else if(33===s||34===s){if((o.overflowed[0]||o.overflowed[1])&&(i.preventdefault(),i.stopimmediatepropagation()),"keyup"===i.type){q(t);var h=34===s?-1:1;if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var m="x",p=math.abs(c[0].offsetleft)-.9*h*d.width();else var m="y",p=math.abs(c[0].offsettop)-.9*h*d.height();g(t,p.tostring(),{dir:m,scrolleasing:"mcseaseinout"})}}else if((35===s||36===s)&&!e(a.activeelement).is(u)&&((o.overflowed[0]||o.overflowed[1])&&(i.preventdefault(),i.stopimmediatepropagation()),"keyup"===i.type)){if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var m="x",p=35===s?math.abs(d.width()-c.outerwidth(!1)):0;else var m="y",p=35===s?math.abs(d.height()-c.outerheight(!1)):0;g(t,p.tostring(),{dir:m,scrolleasing:"mcseaseinout"})}}})},j=function(t,a,o,n,r){function l(e){var a="stepped"!==u.type,o=r?r:e?a?p/1.5:g:1e3/60,i=e?a?7.5:40:2.5,s=[math.abs(h[0].offsettop),math.abs(h[0].offsetleft)],d=[c.scrollratio.y>10?10:c.scrollratio.y,c.scrollratio.x>10?10:c.scrollratio.x],f="x"===u.dir[0]?s[1]+u.dir[1]*d[1]*i:s[0]+u.dir[1]*d[0]*i,m="x"===u.dir[0]?s[1]+u.dir[1]*parseint(u.scrollamount):s[0]+u.dir[1]*parseint(u.scrollamount),v="auto"!==u.scrollamount?m:f,x=n?n:e?a?"mcslinearout":"mcseaseinout":"mcslinear",_=e?!0:!1;return e&&17>o&&(v="x"===u.dir[0]?s[1]:s[0]),g(t,v.tostring(),{dir:u.dir[0],scrolleasing:x,dur:o,oncomplete:_}),e?void(u.dir=!1):(cleartimeout(u.step),void(u.step=settimeout(function(){l()},o)))}function s(){cleartimeout(u.step),$(u,"step"),q(t)}var c=t.data(i),d=c.opt,u=c.sequential,h=e("#mcsb_"+c.idx+"_container"),m="stepped"===u.type?!0:!1,p=d.scrollinertia<26?26:d.scrollinertia,g=d.scrollinertia<1?17:d.scrollinertia;switch(a){case"on":if(u.dir=[o===f[16]||o===f[15]||39===o||37===o?"x":"y",o===f[13]||o===f[15]||38===o||37===o?-1:1],q(t),at(o)&&"stepped"===u.type)return;l(m);break;case"off":s(),(m||c.tweenrunning&&u.dir)&&l(!0)}},y=function(t){var a=e(this).data(i).opt,o=[];return"function"==typeof t&&(t=t()),t instanceof array?o=t.length>1?[t[0],t[1]]:"x"===a.axis?[null,t[0]]:[t[0],null]:(o[0]=t.y?t.y:t.x||"x"===a.axis?null:t,o[1]=t.x?t.x:t.y||"y"===a.axis?null:t),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},x=function(t,a){if(null!=t&&"undefined"!=typeof t){var o=e(this),n=o.data(i),r=n.opt,l=e("#mcsb_"+n.idx+"_container"),s=l.parent(),c=typeof t;a||(a="x"===r.axis?"x":"y");var d="x"===a?l.outerwidth(!1):l.outerheight(!1),u="x"===a?l[0].offsetleft:l[0].offsettop,f="x"===a?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===a?ot(m)[1]:ot(m)[0];case"string":case"number":if(at(t))return math.abs(t);if(-1!==t.indexof("%"))return math.abs(d*parseint(t)/100);if(-1!==t.indexof("-="))return math.abs(u-parseint(t.split("-=")[1]));if(-1!==t.indexof("+=")){var p=u+parseint(t.split("+=")[1]);return p>=0?0:math.abs(p)}if(-1!==t.indexof("px")&&at(t.split("px")[0]))return math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return math.abs(s.height()-l.outerheight(!1));if("right"===t)return math.abs(s.width()-l.outerwidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===a?ot(m)[1]:ot(m)[0]}return e(t).length?"x"===a?ot(e(t))[1]:ot(e(t))[0]:(l.css(f,t),void h.update.call(null,o[0]))}}},n=function(t){function a(){cleartimeout(u[0].autoupdate),u[0].autoupdate=settimeout(function(){return d.advanced.updateonselectorchange&&(m=r(),m!==s)?(l(3),void(s=m)):(d.advanced.updateoncontentresize&&(p=[u.outerheight(!1),u.outerwidth(!1),v.height(),v.width(),_()[0],_()[1]],(p[0]!==w[0]||p[1]!==w[1]||p[2]!==w[2]||p[3]!==w[3]||p[4]!==w[4]||p[5]!==w[5])&&(l(p[0]!==w[0]||p[1]!==w[1]),w=p)),d.advanced.updateonimageload&&(g=o(),g!==b&&(u.find("img").each(function(){n(this)}),b=g)),void((d.advanced.updateonselectorchange||d.advanced.updateoncontentresize||d.advanced.updateonimageload)&&a()))},60)}function o(){var e=0;return d.advanced.updateonimageload&&(e=u.find("img").length),e}function n(t){function a(e,t){return function(){return t.apply(e,arguments)}}function o(){this.onload=null,e(t).addclass(f[2]),l(2)}if(e(t).hasclass(f[2]))return void l();var n=new image;n.onload=a(n,o),n.src=t.src}function r(){d.advanced.updateonselectorchange===!0&&(d.advanced.updateonselectorchange="*");var t=0,a=u.find(d.advanced.updateonselectorchange);return d.advanced.updateonselectorchange&&a.length>0&&a.each(function(){t+=e(this).height()+e(this).width()}),t}function l(e){cleartimeout(u[0].autoupdate),h.update.call(null,s[0],e)}var s=e(this),c=s.data(i),d=c.opt,u=e("#mcsb_"+c.idx+"_container");if(t)return cleartimeout(u[0].autoupdate),void $(u[0],"autoupdate");var m,p,g,v=u.parent(),x=[e("#mcsb_"+c.idx+"_scrollbar_vertical"),e("#mcsb_"+c.idx+"_scrollbar_horizontal")],_=function(){return[x[0].is(":visible")?x[0].outerheight(!0):0,x[1].is(":visible")?x[1].outerwidth(!0):0]},s=r(),w=[u.outerheight(!1),u.outerwidth(!1),v.height(),v.width(),_()[0],_()[1]],b=o();a()},v=function(e,t,a){return math.round(e/t)*t-a},q=function(t){var a=t.data(i),o=e("#mcsb_"+a.idx+"_container,#mcsb_"+a.idx+"_container_wrapper,#mcsb_"+a.idx+"_dragger_vertical,#mcsb_"+a.idx+"_dragger_horizontal");o.each(function(){z.call(this)})},g=function(t,a,o){function n(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaystriggeroffsets||_>=s[0]+b,c.callbacks.alwaystriggeroffsets||-c>=_]}function l(){var e=[h[0].offsettop,h[0].offsetleft],a=[v[0].offsettop,v[0].offsetleft],n=[h.outerheight(!1),h.outerwidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggertop:a[0],draggerleft:a[1],toppct:math.round(100*math.abs(e[0])/(math.abs(n[0])-i[0])),leftpct:math.round(100*math.abs(e[1])/(math.abs(n[1])-i[1])),direction:o.dir}}var s=t.data(i),c=s.opt,d={trigger:"internal",dir:"y",scrolleasing:"mcseaseout",drag:!1,dur:c.scrollinertia,overwrite:"all",callbacks:!0,onstart:!0,onupdate:!0,oncomplete:!0},o=e.extend(d,o),u=[o.dur,o.drag?0:o.dur],f=e("#mcsb_"+s.idx),h=e("#mcsb_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.ontotalscrolloffset?y.call(t,c.callbacks.ontotalscrolloffset):[0,0],g=c.callbacks.ontotalscrollbackoffset?y.call(t,c.callbacks.ontotalscrollbackoffset):[0,0];if(s.trigger=o.trigger,(0!==m.scrolltop()||0!==m.scrollleft())&&(e(".mcsb_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrolltop(0).scrollleft(0)),"_resety"!==a||s.contentreset.y||(n("onoverflowynone")&&c.callbacks.onoverflowynone.call(t[0]),s.contentreset.y=1),"_resetx"!==a||s.contentreset.x||(n("onoverflowxnone")&&c.callbacks.onoverflowxnone.call(t[0]),s.contentreset.x=1),"_resety"!==a&&"_resetx"!==a){switch(!s.contentreset.y&&t[0].mcs||!s.overflowed[0]||(n("onoverflowy")&&c.callbacks.onoverflowy.call(t[0]),s.contentreset.x=null),!s.contentreset.x&&t[0].mcs||!s.overflowed[1]||(n("onoverflowx")&&c.callbacks.onoverflowx.call(t[0]),s.contentreset.x=null),c.snapamount&&(a=v(a,c.snapamount,c.snapoffset)),o.dir){case"x":var v=e("#mcsb_"+s.idx+"_dragger_horizontal"),x="left",_=h[0].offsetleft,s=[f.width()-h.outerwidth(!1),v.parent().width()-v.width()],w=[a,0===a?0:a/s.scrollratio.x],b=p[1],c=g[1],y=b>0?b/s.scrollratio.x:0,b=c>0?c/s.scrollratio.x:0; break;case"y":var v=e("#mcsb_"+s.idx+"_dragger_vertical"),x="top",_=h[0].offsettop,s=[f.height()-h.outerheight(!1),v.parent().height()-v.height()],w=[a,0===a?0:a/s.scrollratio.y],b=p[0],c=g[0],y=b>0?b/s.scrollratio.y:0,b=c>0?c/s.scrollratio.y:0}w[1]<0||0===w[0]&&0===w[1]?w=[0,0]:w[1]>=s[1]?w=[s[0],s[1]]:w[0]=-w[0],t[0].mcs||(l(),n("oninit")&&c.callbacks.oninit.call(t[0])),cleartimeout(h[0].oncompletetimeout),(s.tweenrunning||!(0===_&&w[0]>=0||_===s[0]&&w[0]<=s[0]))&&(j(v[0],x,math.round(w[1]),u[1],o.scrolleasing),j(h[0],x,math.round(w[0]),u[0],o.scrolleasing,o.overwrite,{onstart:function(){o.callbacks&&o.onstart&&!s.tweenrunning&&(n("onscrollstart")&&(l(),c.callbacks.onscrollstart.call(t[0])),s.tweenrunning=!0,t(v),s.cboffsets=r())},onupdate:function(){o.callbacks&&o.onupdate&&n("whilescrolling")&&(l(),c.callbacks.whilescrolling.call(t[0]))},oncomplete:function(){if(o.callbacks&&o.oncomplete){"yx"===c.axis&&cleartimeout(h[0].oncompletetimeout);var e=h[0].idletimer||0;h[0].oncompletetimeout=settimeout(function(){n("onscroll")&&(l(),c.callbacks.onscroll.call(t[0])),n("ontotalscroll")&&w[1]>=s[1]-y&&s.cboffsets[0]&&(l(),c.callbacks.ontotalscroll.call(t[0])),n("ontotalscrollback")&&w[1]<=b&&s.cboffsets[1]&&(l(),c.callbacks.ontotalscrollback.call(t[0])),s.tweenrunning=!1,h[0].idletimer=0,t(v,"hide")},e)}}}))}},j=function(e,a,o,n,i,r,l){function s(){b.stop||(_||p.call(),_=k()-x,c(),_>=b.time&&(b.time=_>b.time?_+h-(_-b.time):_+h-1,b.time<_+1&&(b.time=_+1)),b.time0?(b.currval=f(b.time,s,c,n,i),w[a]=math.round(b.currval)+"px"):w[a]=o+"px",g.call()}function d(){h=1e3/60,b.time=_+h,m=t.requestanimationframe?t.requestanimationframe:function(e){return c(),settimeout(e,.01)},b.id=m(s)}function u(){null!=b.id&&(t.requestanimationframe?t.cancelanimationframe(b.id):cleartimeout(b.id),b.id=null)}function f(e,t,a,o,n){switch(n){case"linear":case"mcslinear":return a*e/o+t;case"mcslinearout":return e/=o,e--,a*math.sqrt(1-e*e)+t;case"easeinoutsmooth":return e/=o/2,1>e?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t);case"easeinoutstrong":return e/=o/2,1>e?a/2*math.pow(2,10*(e-1))+t:(e--,a/2*(-math.pow(2,-10*e)+2)+t);case"easeinout":case"mcseaseinout":return e/=o/2,1>e?a/2*e*e*e+t:(e-=2,a/2*(e*e*e+2)+t);case"easeoutsmooth":return e/=o,e--,-a*(e*e*e*e-1)+t;case"easeoutstrong":return a*(-math.pow(2,-10*e/o)+1)+t;case"easeout":case"mcseaseout":default:var i=(e/=o)*e,r=i*e;return t+a*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mtween||(e._mtween={top:{},left:{}});var h,m,l=l||{},p=l.onstart||function(){},g=l.onupdate||function(){},v=l.oncomplete||function(){},x=k(),_=0,s=e.offsettop,w=e.style,b=e._mtween[a];"left"===a&&(s=e.offsetleft);var c=o-s;b.stop=0,"none"!==r&&u(),d()},k=function(){return t.performance&&t.performance.now?t.performance.now():t.performance&&t.performance.webkitnow?t.performance.webkitnow():date.now?date.now():(new date).gettime()},z=function(){var e=this;e._mtween||(e._mtween={top:{},left:{}});for(var a=["top","left"],o=0;o=0&&o[0]+ot(n)[0]=0&&o[1]+ot(n)[1]b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.ismobile=function(a){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(a)},a.prototype.addevent=function(a,b,c){return null!=a.addeventlistener?a.addeventlistener(b,c,!1):null!=a.attachevent?a.attachevent("on"+b,c):a[b]=c},a.prototype.removeevent=function(a,b,c){return null!=a.removeeventlistener?a.removeeventlistener(b,c,!1):null!=a.detachevent?a.detachevent("on"+b,c):delete a[b]},a.prototype.innerheight=function(){return"innerheight"in window?window.innerheight:document.documentelement.clientheight},a}(),c=this.weakmap||this.mozweakmap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.mutationobserver||this.webkitmutationobserver||this.mozmutationobserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("mutationobserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("wow.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notsupported=!0,a.prototype.observe=function(){},a}()),d=this.getcomputedstyle||function(a){return this.getpropertyvalue=function(b){var c;return"float"===b&&(b="stylefloat"),e.test(b)&&b.replace(e,function(a,b){return b.touppercase()}),(null!=(c=a.currentstyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.wow=function(){function e(a){null==a&&(a={}),this.scrollcallback=f(this.scrollcallback,this),this.scrollhandler=f(this.scrollhandler,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationnamecache=new c}return e.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0,mobile:!0,live:!0},e.prototype.init=function(){var a;return this.element=window.document.documentelement,"interactive"===(a=document.readystate)||"complete"===a?this.start():this.util().addevent(document,"domcontentloaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.queryselectorall("."+this.config.boxclass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetstyle();else{for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applystyle(b,!0);this.util().addevent(window,"scroll",this.scrollhandler),this.util().addevent(window,"resize",this.scrollhandler),this.interval=setinterval(this.scrollcallback,50)}return this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],g.push(function(){var a,b,e,f;for(e=d.addednodes||[],f=[],a=0,b=e.length;b>a;a++)c=e[a],f.push(this.dosync(c));return f}.call(a));return g}}(this)).observe(document.body,{childlist:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeevent(window,"scroll",this.scrollhandler),this.util().removeevent(window,"resize",this.scrollhandler),null!=this.interval?clearinterval(this.interval):void 0},e.prototype.sync=function(){return a.notsupported?this.dosync(this.element):void 0},e.prototype.dosync=function(a){var b,c,d,e,f;if(!this.stopped){if(null==a&&(a=this.element),1!==a.nodetype)return;for(a=a.parentnode||a,e=a.queryselectorall("."+this.config.boxclass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.applystyle(b,!0),this.boxes.push(b),this.all.push(b),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applystyle(a),a.classname=""+a.classname+" "+this.config.animateclass},e.prototype.applystyle=function(a,b){var c,d,e;return d=a.getattribute("data-wow-duration"),c=a.getattribute("data-wow-delay"),e=a.getattribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customstyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestanimationframe"in window?function(a){return window.requestanimationframe(a)}:function(a){return a()}}(),e.prototype.resetstyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setattribute("style","visibility: visible;"));return e},e.prototype.customstyle=function(a,b,c,d,e){return b&&this.cacheanimationname(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorset(a.style,{animationduration:c}),d&&this.vendorset(a.style,{animationdelay:d}),e&&this.vendorset(a.style,{animationiterationcount:e}),this.vendorset(a.style,{animationname:b?"none":this.cachedanimationname(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorset=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charat(0).touppercase()+c.substr(1)]=d);return h}.call(this));return f},e.prototype.vendorcss=function(a,b){var c,e,f,g,h,i;for(e=d(a),c=e.getpropertycssvalue(b),i=this.vendors,g=0,h=i.length;h>g;g++)f=i[g],c=c||e.getpropertycssvalue("-"+f+"-"+b);return c},e.prototype.animationname=function(a){var b;try{b=this.vendorcss(a,"animation-name").csstext}catch(c){b=d(a).getpropertyvalue("animation-name")}return"none"===b?"":b},e.prototype.cacheanimationname=function(a){return this.animationnamecache.set(a,this.animationname(a))},e.prototype.cachedanimationname=function(a){return this.animationnamecache.get(a)},e.prototype.scrollhandler=function(){return this.scrolled=!0},e.prototype.scrollcallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isvisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsettop=function(a){for(var b;void 0===a.offsettop;)a=a.parentnode;for(b=a.offsettop;a=a.offsetparent;)b+=a.offsettop;return b},e.prototype.isvisible=function(a){var b,c,d,e,f;return c=a.getattribute("data-wow-offset")||this.config.offset,f=window.pageyoffset,e=f+math.min(this.element.clientheight,this.util().innerheight())-c,d=this.offsettop(a),b=d+a.clientheight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().ismobile(navigator.useragent)},e}()}).call(this);